mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 07:41:43 -05:00
📎 Remove unused example simple_button component
This commit is contained in:
parent
a624a10c85
commit
c181887266
6 changed files with 0 additions and 57 deletions
|
@ -6,14 +6,12 @@
|
|||
|
||||
(ns app.main.ui.ds
|
||||
(:require
|
||||
[app.main.ui.ds.buttons.simple-button :refer [simple-button]]
|
||||
[app.main.ui.ds.foundations.icon :refer [icon* icon-list]]
|
||||
[app.main.ui.ds.storybook :as sb]))
|
||||
|
||||
(def default
|
||||
"A export used for storybook"
|
||||
#js {:Icon icon*
|
||||
:SimpleButton simple-button
|
||||
;; meta / misc
|
||||
:meta #js {:icons icon-list}
|
||||
:storybook #js {:StoryWrapper sb/story-wrapper* :IconGrid sb/icon-grid*}})
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
(ns app.main.ui.ds.buttons.simple-button
|
||||
(:require-macros [app.main.style :as stl])
|
||||
(:require
|
||||
[rumext.v2 :as mf]))
|
||||
|
||||
(mf/defc simple-button
|
||||
{::mf/wrap-props false}
|
||||
[{:keys [on-click children]}]
|
||||
[:button {:on-click on-click :class (stl/css :button)} children])
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
import { Canvas, Meta } from '@storybook/blocks';
|
||||
import * as SimpleButtonStories from "./simple_button.stories"
|
||||
|
||||
<Meta of={SimpleButtonStories} />
|
||||
|
||||
# Lorem ipsum
|
||||
|
||||
This is an example of **markdown** docs within storybook, for the component `<SimpleButton>`.
|
||||
|
||||
Here's how we can render a simple button:
|
||||
|
||||
<Canvas of={SimpleButtonStories.Default} />
|
|
@ -1,7 +0,0 @@
|
|||
@use "../colors.scss" as *;
|
||||
|
||||
.button {
|
||||
appearance: none;
|
||||
border: 0;
|
||||
background: var(--color-accent-primary);
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
import * as React from "react";
|
||||
|
||||
import Components from "@target/components";
|
||||
|
||||
export default {
|
||||
title: "Buttons/Simple Button",
|
||||
component: Components.SimpleButton,
|
||||
};
|
||||
|
||||
export const Default = {
|
||||
render: () => (
|
||||
<Components.StoryWrapper>
|
||||
<Components.SimpleButton>Simple Button</Components.SimpleButton>
|
||||
</Components.StoryWrapper>
|
||||
),
|
||||
};
|
|
@ -1,10 +0,0 @@
|
|||
import { expect, test } from 'vitest'
|
||||
|
||||
test('use jsdom in this test file', () => {
|
||||
const element = document.createElement('div')
|
||||
expect(element).not.toBeNull()
|
||||
})
|
||||
|
||||
test('adds 1 + 2 to equal 3', () => {
|
||||
expect(1 +2).toBe(3)
|
||||
});
|
Loading…
Add table
Reference in a new issue