@feminab/box-ui 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/main.ts +40 -2
- package/dist/@interfaces/Badge.d.d.ts.map +1 -1
- package/dist/@interfaces/Button.d.d.ts.map +1 -1
- package/dist/@interfaces/Color.d.d.ts.map +1 -1
- package/dist/@interfaces/IButtonItem.d.d.ts.map +1 -1
- package/dist/@interfaces/ISubNavItem.d.d.ts.map +1 -1
- package/dist/@interfaces/MobileNavProps.d.d.ts.map +1 -1
- package/dist/@interfaces/NavItem.d.d.ts.map +1 -1
- package/dist/@interfaces/Pagination.d.d.ts.map +1 -1
- package/dist/@interfaces/Select.d.d.ts.map +1 -1
- package/dist/@interfaces/SideNavProps.d.d.ts.map +1 -1
- package/dist/@interfaces/TextInput.d.d.ts.map +1 -1
- package/dist/@interfaces/index.d.ts.map +1 -1
- package/dist/Badge.d.ts.map +1 -1
- package/dist/Button.d.ts.map +1 -1
- package/dist/ButtonGroup.d.ts.map +1 -1
- package/dist/ColorBox.d.ts.map +1 -1
- package/dist/Header.d.ts.map +1 -1
- package/dist/Nav/MobileNav.d.ts.map +1 -1
- package/dist/Nav/NavItem.d.ts.map +1 -1
- package/dist/Nav/SideNav.d.ts.map +1 -1
- package/dist/Nav/SubNavItem.d.ts.map +1 -1
- package/dist/Paginate.d.ts.map +1 -1
- package/dist/Select.d.ts.map +1 -1
- package/dist/StoryLayout.d.ts.map +1 -1
- package/dist/TextInput.d.ts.map +1 -1
- package/dist/Typography.d.ts.map +1 -1
- package/dist/box-ui.cjs.development.js +17 -11
- package/dist/box-ui.cjs.development.js.map +1 -1
- package/dist/box-ui.cjs.production.min.js +1 -1
- package/dist/box-ui.cjs.production.min.js.map +1 -1
- package/dist/box-ui.esm.js +17 -11
- package/dist/box-ui.esm.js.map +1 -1
- package/dist/data/colors.d.ts.map +1 -1
- package/dist/data/countries.d.ts.map +1 -1
- package/dist/data/images/index.d.ts.map +1 -1
- package/dist/data/index.d.ts.map +1 -1
- package/dist/data/navItems.d.ts.map +1 -1
- package/dist/data/options.d.ts.map +1 -1
- package/dist/data/prices.d.ts.map +1 -1
- package/dist/hooks/useIconClassName.d.ts.map +1 -1
- package/dist/hooks/useIconProps.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/jest.config.d.ts +9 -0
- package/dist/jest.config.d.ts.map +1 -0
- package/dist/reportWebVitals.d.ts.map +1 -1
- package/dist/setupTests.d.ts.map +1 -1
- package/dist/stories/Badge.stories.d.ts +3 -4
- package/dist/stories/Badge.stories.d.ts.map +1 -1
- package/dist/stories/Button.stories.d.ts +3 -4
- package/dist/stories/Button.stories.d.ts.map +1 -1
- package/dist/stories/ButtonGroup.stories.d.ts +4 -4
- package/dist/stories/ButtonGroup.stories.d.ts.map +1 -1
- package/dist/stories/Colors.stories.d.ts +3 -3
- package/dist/stories/Colors.stories.d.ts.map +1 -1
- package/dist/stories/MobileNav.stories.d.ts +3 -4
- package/dist/stories/MobileNav.stories.d.ts.map +1 -1
- package/dist/stories/Paginate.stories.d.ts +3 -4
- package/dist/stories/Paginate.stories.d.ts.map +1 -1
- package/dist/stories/Select.stories.d.ts +3 -4
- package/dist/stories/Select.stories.d.ts.map +1 -1
- package/dist/stories/SideNav.stories.d.ts +3 -4
- package/dist/stories/SideNav.stories.d.ts.map +1 -1
- package/dist/stories/TextInput.stories.d.ts +3 -4
- package/dist/stories/TextInput.stories.d.ts.map +1 -1
- package/dist/stories/Typography.stories.d.ts +4 -4
- package/dist/stories/Typography.stories.d.ts.map +1 -1
- package/dist/utils/IconWrapper.d.ts +8 -0
- package/dist/utils/IconWrapper.d.ts.map +1 -0
- package/jest.config.js +13 -0
- package/jest.setup.ts +3 -0
- package/netlify.toml +3 -0
- package/package.json +24 -26
- package/src/Nav/MobileNav.tsx +2 -0
- package/src/Nav/SideNav.tsx +1 -0
- package/src/Paginate.tsx +2 -0
- package/src/Select.tsx +1 -1
- package/src/TextInput.tsx +23 -27
- package/src/index.js +1 -1
- package/src/stories/Badge.stories.tsx +6 -8
- package/src/stories/Button.stories.tsx +21 -8
- package/src/stories/ButtonGroup.stories.tsx +48 -48
- package/src/stories/Colors.stories.tsx +2 -4
- package/src/stories/MobileNav.stories.tsx +29 -19
- package/src/stories/Paginate.stories.tsx +36 -35
- package/src/stories/Select.stories.tsx +46 -43
- package/src/stories/SideNav.stories.tsx +18 -19
- package/src/stories/TextInput.stories.tsx +81 -71
- package/src/stories/Typography.stories.tsx +2 -4
- package/src/styles/global.css +1 -181
- package/src/tests/Badge.test.tsx +48 -0
- package/src/tests/Button.test.tsx +69 -0
- package/src/tests/ButtonGroup.test.tsx +51 -0
- package/src/tests/MobileNav.test.tsx +66 -0
- package/src/tests/Paginate.test.tsx +86 -0
- package/src/tests/Select.test.tsx +63 -0
- package/src/tests/SideNav.test.tsx +43 -0
- package/src/tests/TextInput.test.tsx +42 -0
- package/src/tests/Typography.test.tsx +41 -0
- package/src/tests/__snapshots__/Badge.test.tsx.snap +13 -0
- package/src/tests/__snapshots__/Button.test.tsx.snap +106 -0
- package/src/tests/__snapshots__/ButtonGroup.test.tsx.snap +228 -0
- package/src/tests/__snapshots__/Paginate.test.tsx.snap +580 -0
- package/src/tests/__snapshots__/Select.test.tsx.snap +119 -0
- package/src/tests/__snapshots__/TextInput.test.tsx.snap +323 -0
- package/src/utils/IconWrapper.tsx +11 -0
- package/storybook-static/{125.65b26339.iframe.bundle.js → 125.df7cc93e.iframe.bundle.js} +3 -3
- package/storybook-static/125.df7cc93e.iframe.bundle.js.map +1 -0
- package/storybook-static/13.d4c3993e.iframe.bundle.js +2 -0
- package/storybook-static/161.f5193502.iframe.bundle.js +2 -0
- package/storybook-static/167.89fa6ac2.iframe.bundle.js +1 -0
- package/storybook-static/294.eccdc80d.iframe.bundle.js +1 -0
- package/storybook-static/314.c9f9245e.iframe.bundle.js +2 -0
- package/storybook-static/364.1cfcaebe.iframe.bundle.js +1 -0
- package/storybook-static/735.c396ee77.iframe.bundle.js +2 -0
- package/storybook-static/742.52c662a4.iframe.bundle.js +1 -0
- package/storybook-static/{844.aec20bdb.iframe.bundle.js → 844.3bb89aad.iframe.bundle.js} +3 -3
- package/storybook-static/844.3bb89aad.iframe.bundle.js.map +1 -0
- package/storybook-static/936.c827da74.iframe.bundle.js +1 -0
- package/storybook-static/961.c3df469f.iframe.bundle.js +2 -0
- package/storybook-static/iframe.html +3 -3
- package/storybook-static/main.179173d1.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/storybook-static/{runtime~main.295ddda4.iframe.bundle.js → runtime~main.70344601.iframe.bundle.js} +1 -1
- package/storybook-static/static/css/main.08036cd2.css.map +1 -1
- package/storybook-static/stories-Badge-stories.a924d6d5.iframe.bundle.js +1 -0
- package/storybook-static/stories-Button-stories.a3c88a14.iframe.bundle.js +1 -0
- package/storybook-static/stories-ButtonGroup-stories.2c74e4c4.iframe.bundle.js +1 -0
- package/storybook-static/stories-Colors-stories.424256b4.iframe.bundle.js +2 -0
- package/storybook-static/stories-Configure-mdx.46ebbf59.iframe.bundle.js +1 -0
- package/storybook-static/stories-Header-stories.df09e844.iframe.bundle.js +2 -0
- package/storybook-static/stories-MobileNav-stories.eb9a0ca6.iframe.bundle.js +1 -0
- package/storybook-static/stories-Page-stories.ab66c885.iframe.bundle.js +2 -0
- package/storybook-static/stories-Paginate-stories.086f736a.iframe.bundle.js +1 -0
- package/storybook-static/stories-Select-stories.4c04edb3.iframe.bundle.js +1 -0
- package/storybook-static/stories-SideNav-stories.272a4362.iframe.bundle.js +1 -0
- package/storybook-static/stories-TextInput-stories.cfa81131.iframe.bundle.js +1 -0
- package/storybook-static/stories-Typography-stories.a31da7ce.iframe.bundle.js +2 -0
- package/tailwind.config.js +1 -1
- package/tsconfig.json +6 -3
- package/tsdx.config.js +14 -0
- package/dist/Page.d.ts +0 -3
- package/dist/Page.d.ts.map +0 -1
- package/dist/stories/Header.stories.d.ts +0 -20
- package/dist/stories/Header.stories.d.ts.map +0 -1
- package/dist/stories/Page.stories.d.ts +0 -14
- package/dist/stories/Page.stories.d.ts.map +0 -1
- package/src/Page.tsx +0 -72
- package/src/stories/Configure.mdx +0 -364
- package/src/stories/Header.stories.ts +0 -33
- package/src/stories/Page.stories.ts +0 -32
- package/storybook-static/125.65b26339.iframe.bundle.js.map +0 -1
- package/storybook-static/13.0638081a.iframe.bundle.js +0 -2
- package/storybook-static/161.a19908ac.iframe.bundle.js +0 -2
- package/storybook-static/167.3fa3a909.iframe.bundle.js +0 -1
- package/storybook-static/294.ce38f65c.iframe.bundle.js +0 -1
- package/storybook-static/314.568bd9af.iframe.bundle.js +0 -2
- package/storybook-static/364.0b18ef67.iframe.bundle.js +0 -1
- package/storybook-static/735.1625d9f4.iframe.bundle.js +0 -2
- package/storybook-static/742.597501f6.iframe.bundle.js +0 -1
- package/storybook-static/844.aec20bdb.iframe.bundle.js.map +0 -1
- package/storybook-static/936.fd850a3f.iframe.bundle.js +0 -1
- package/storybook-static/961.0e5457c5.iframe.bundle.js +0 -2
- package/storybook-static/main.069281cf.iframe.bundle.js +0 -1
- package/storybook-static/stories-Badge-stories.484f7206.iframe.bundle.js +0 -1
- package/storybook-static/stories-Button-stories.5e29be85.iframe.bundle.js +0 -1
- package/storybook-static/stories-ButtonGroup-stories.cc89968c.iframe.bundle.js +0 -1
- package/storybook-static/stories-Colors-stories.f892dc75.iframe.bundle.js +0 -2
- package/storybook-static/stories-Configure-mdx.81346d97.iframe.bundle.js +0 -1
- package/storybook-static/stories-Header-stories.cf691094.iframe.bundle.js +0 -2
- package/storybook-static/stories-MobileNav-stories.f04cccdd.iframe.bundle.js +0 -1
- package/storybook-static/stories-Page-stories.0c9aa29d.iframe.bundle.js +0 -2
- package/storybook-static/stories-Paginate-stories.3b161781.iframe.bundle.js +0 -1
- package/storybook-static/stories-Select-stories.7556ae0d.iframe.bundle.js +0 -1
- package/storybook-static/stories-SideNav-stories.093fac6a.iframe.bundle.js +0 -1
- package/storybook-static/stories-TextInput-stories.6d3e15c6.iframe.bundle.js +0 -1
- package/storybook-static/stories-Typography-stories.6640f7ac.iframe.bundle.js +0 -2
- /package/storybook-static/{125.65b26339.iframe.bundle.js.LICENSE.txt → 125.df7cc93e.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{13.0638081a.iframe.bundle.js.LICENSE.txt → 13.d4c3993e.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{161.a19908ac.iframe.bundle.js.LICENSE.txt → 161.f5193502.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{314.568bd9af.iframe.bundle.js.LICENSE.txt → 314.c9f9245e.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{735.1625d9f4.iframe.bundle.js.LICENSE.txt → 735.c396ee77.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{844.aec20bdb.iframe.bundle.js.LICENSE.txt → 844.3bb89aad.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{961.0e5457c5.iframe.bundle.js.LICENSE.txt → 961.c3df469f.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{stories-Colors-stories.f892dc75.iframe.bundle.js.LICENSE.txt → stories-Colors-stories.424256b4.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{stories-Header-stories.cf691094.iframe.bundle.js.LICENSE.txt → stories-Header-stories.df09e844.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{stories-Page-stories.0c9aa29d.iframe.bundle.js.LICENSE.txt → stories-Page-stories.ab66c885.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{stories-Typography-stories.6640f7ac.iframe.bundle.js.LICENSE.txt → stories-Typography-stories.a31da7ce.iframe.bundle.js.LICENSE.txt} +0 -0
@@ -0,0 +1,106 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`📘 Button Storybook Stories renders Default button 1`] = `
|
4
|
+
<div>
|
5
|
+
<div
|
6
|
+
class="-m-4"
|
7
|
+
>
|
8
|
+
<div
|
9
|
+
class="flex inline-flex flex-row space-x-2 p-4"
|
10
|
+
>
|
11
|
+
<button
|
12
|
+
class="btn-base btn-md btn-primary btn-primary-hover btn-primary-focus shadow-grayDark"
|
13
|
+
type="button"
|
14
|
+
>
|
15
|
+
Primary
|
16
|
+
</button>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
`;
|
21
|
+
|
22
|
+
exports[`📘 Button Storybook Stories renders all button sizes 1`] = `
|
23
|
+
<div>
|
24
|
+
<div
|
25
|
+
class="-m-4"
|
26
|
+
>
|
27
|
+
<div
|
28
|
+
class="flex inline-flex flex-row space-x-2 p-4"
|
29
|
+
>
|
30
|
+
<button
|
31
|
+
class="btn-base btn-sm btn-primary btn-primary-hover btn-primary-focus shadow-grayDark"
|
32
|
+
type="button"
|
33
|
+
>
|
34
|
+
sm
|
35
|
+
</button>
|
36
|
+
<button
|
37
|
+
class="btn-base btn-md btn-primary btn-primary-hover btn-primary-focus shadow-grayDark"
|
38
|
+
type="button"
|
39
|
+
>
|
40
|
+
md
|
41
|
+
</button>
|
42
|
+
<button
|
43
|
+
class="btn-base btn-lg btn-primary btn-primary-hover btn-primary-focus shadow-grayDark"
|
44
|
+
type="button"
|
45
|
+
>
|
46
|
+
lg
|
47
|
+
</button>
|
48
|
+
<button
|
49
|
+
class="btn-base btn-xl btn-primary btn-primary-hover btn-primary-focus shadow-grayDark"
|
50
|
+
type="button"
|
51
|
+
>
|
52
|
+
xl
|
53
|
+
</button>
|
54
|
+
<button
|
55
|
+
class="btn-base btn-2xl btn-primary btn-primary-hover btn-primary-focus shadow-grayDark"
|
56
|
+
type="button"
|
57
|
+
>
|
58
|
+
2xl
|
59
|
+
</button>
|
60
|
+
</div>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
`;
|
64
|
+
|
65
|
+
exports[`📘 Button Storybook Stories renders all button variants 1`] = `
|
66
|
+
<div>
|
67
|
+
<div
|
68
|
+
class="-m-4"
|
69
|
+
>
|
70
|
+
<div
|
71
|
+
class="flex inline-flex flex-row space-x-2 p-4"
|
72
|
+
>
|
73
|
+
<button
|
74
|
+
class="btn-base btn-md btn-primary btn-primary-hover btn-primary-focus shadow-grayDark"
|
75
|
+
type="button"
|
76
|
+
>
|
77
|
+
Primary
|
78
|
+
</button>
|
79
|
+
<button
|
80
|
+
class="btn-base btn-md btn-secondary btn-secondary-hover btn-secondary-focus shadow-grayDark"
|
81
|
+
type="button"
|
82
|
+
>
|
83
|
+
Secondary
|
84
|
+
</button>
|
85
|
+
<button
|
86
|
+
class="btn-base btn-md btn-secondaryGray btn-secondaryGray-hover btn-secondaryGray-focus shadow-grayDark"
|
87
|
+
type="button"
|
88
|
+
>
|
89
|
+
Secondary Gray
|
90
|
+
</button>
|
91
|
+
<button
|
92
|
+
class="btn-base btn-md btn-tertiary btn-tertiary-hover btn-tertiary-focus shadow-grayDark"
|
93
|
+
type="button"
|
94
|
+
>
|
95
|
+
Tertiary
|
96
|
+
</button>
|
97
|
+
<button
|
98
|
+
class="btn-base btn-md btn-tertiaryGray btn-tertiaryGray-hover btn-tertiaryGray-focus shadow-grayDark"
|
99
|
+
type="button"
|
100
|
+
>
|
101
|
+
Tertiary Gray
|
102
|
+
</button>
|
103
|
+
</div>
|
104
|
+
</div>
|
105
|
+
</div>
|
106
|
+
`;
|
@@ -0,0 +1,228 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`📘 ButtonGroup Storybook Stories renders IconButtonGroup with icons 1`] = `
|
4
|
+
<div>
|
5
|
+
<div
|
6
|
+
class="-m-4"
|
7
|
+
>
|
8
|
+
<div
|
9
|
+
class="p-4"
|
10
|
+
>
|
11
|
+
<div>
|
12
|
+
<button
|
13
|
+
class="inline-flex whitespace-nowrap items-center h-10 px-4 font-medium text-center text-sm focus:outline-none hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-700 dark:text-white border border-gray-300 dark:border-gray-500 rounded-l-lg bg-gray-50 dark:bg-gray-700"
|
14
|
+
>
|
15
|
+
<svg
|
16
|
+
fill="none"
|
17
|
+
height="20"
|
18
|
+
stroke="currentColor"
|
19
|
+
stroke-linecap="round"
|
20
|
+
stroke-linejoin="round"
|
21
|
+
stroke-width="2"
|
22
|
+
viewBox="0 0 24 24"
|
23
|
+
width="20"
|
24
|
+
xmlns="http://www.w3.org/2000/svg"
|
25
|
+
>
|
26
|
+
<line
|
27
|
+
x1="8"
|
28
|
+
x2="21"
|
29
|
+
y1="6"
|
30
|
+
y2="6"
|
31
|
+
/>
|
32
|
+
<line
|
33
|
+
x1="8"
|
34
|
+
x2="21"
|
35
|
+
y1="12"
|
36
|
+
y2="12"
|
37
|
+
/>
|
38
|
+
<line
|
39
|
+
x1="8"
|
40
|
+
x2="21"
|
41
|
+
y1="18"
|
42
|
+
y2="18"
|
43
|
+
/>
|
44
|
+
<line
|
45
|
+
x1="3"
|
46
|
+
x2="3.01"
|
47
|
+
y1="6"
|
48
|
+
y2="6"
|
49
|
+
/>
|
50
|
+
<line
|
51
|
+
x1="3"
|
52
|
+
x2="3.01"
|
53
|
+
y1="12"
|
54
|
+
y2="12"
|
55
|
+
/>
|
56
|
+
<line
|
57
|
+
x1="3"
|
58
|
+
x2="3.01"
|
59
|
+
y1="18"
|
60
|
+
y2="18"
|
61
|
+
/>
|
62
|
+
</svg>
|
63
|
+
</button>
|
64
|
+
<button
|
65
|
+
class="inline-flex whitespace-nowrap items-center h-10 px-4 font-medium text-center text-sm focus:outline-none hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-700 dark:text-white border border-gray-300 dark:border-gray-500 rounded-r-lg"
|
66
|
+
>
|
67
|
+
<svg
|
68
|
+
fill="none"
|
69
|
+
height="20"
|
70
|
+
stroke="currentColor"
|
71
|
+
stroke-linecap="round"
|
72
|
+
stroke-linejoin="round"
|
73
|
+
stroke-width="2"
|
74
|
+
viewBox="0 0 24 24"
|
75
|
+
width="20"
|
76
|
+
xmlns="http://www.w3.org/2000/svg"
|
77
|
+
>
|
78
|
+
<rect
|
79
|
+
height="7"
|
80
|
+
width="7"
|
81
|
+
x="3"
|
82
|
+
y="3"
|
83
|
+
/>
|
84
|
+
<rect
|
85
|
+
height="7"
|
86
|
+
width="7"
|
87
|
+
x="14"
|
88
|
+
y="3"
|
89
|
+
/>
|
90
|
+
<rect
|
91
|
+
height="7"
|
92
|
+
width="7"
|
93
|
+
x="14"
|
94
|
+
y="14"
|
95
|
+
/>
|
96
|
+
<rect
|
97
|
+
height="7"
|
98
|
+
width="7"
|
99
|
+
x="3"
|
100
|
+
y="14"
|
101
|
+
/>
|
102
|
+
</svg>
|
103
|
+
</button>
|
104
|
+
</div>
|
105
|
+
</div>
|
106
|
+
</div>
|
107
|
+
</div>
|
108
|
+
`;
|
109
|
+
|
110
|
+
exports[`📘 ButtonGroup Storybook Stories renders LabelButtonGroup 1`] = `
|
111
|
+
<div>
|
112
|
+
<div
|
113
|
+
class="-m-4"
|
114
|
+
>
|
115
|
+
<div
|
116
|
+
class="p-4"
|
117
|
+
>
|
118
|
+
<div>
|
119
|
+
<button
|
120
|
+
class="inline-flex whitespace-nowrap items-center h-10 px-4 font-medium text-center text-sm focus:outline-none hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-700 dark:text-white border border-gray-300 dark:border-gray-500 rounded-l-lg"
|
121
|
+
>
|
122
|
+
Leading
|
123
|
+
</button>
|
124
|
+
<button
|
125
|
+
class="inline-flex whitespace-nowrap items-center h-10 px-4 font-medium text-center text-sm focus:outline-none hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-700 dark:text-white border border-gray-300 dark:border-gray-500 bg-gray-50 dark:bg-gray-700 border-r-0"
|
126
|
+
>
|
127
|
+
Middle
|
128
|
+
</button>
|
129
|
+
<button
|
130
|
+
class="inline-flex whitespace-nowrap items-center h-10 px-4 font-medium text-center text-sm focus:outline-none hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-700 dark:text-white border border-gray-300 dark:border-gray-500 rounded-r-lg"
|
131
|
+
>
|
132
|
+
Trailing
|
133
|
+
</button>
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
</div>
|
137
|
+
</div>
|
138
|
+
`;
|
139
|
+
|
140
|
+
exports[`📘 ButtonGroup Storybook Stories renders LabelIconButtonGroup 1`] = `
|
141
|
+
<div>
|
142
|
+
<div
|
143
|
+
class="-m-4"
|
144
|
+
>
|
145
|
+
<div
|
146
|
+
class="p-4"
|
147
|
+
>
|
148
|
+
<div>
|
149
|
+
<button
|
150
|
+
class="inline-flex whitespace-nowrap items-center h-10 px-4 font-medium text-center text-sm focus:outline-none hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-700 dark:text-white border border-gray-300 dark:border-gray-500 rounded-l-lg"
|
151
|
+
>
|
152
|
+
<span>
|
153
|
+
<svg
|
154
|
+
class="mr-2"
|
155
|
+
fill="none"
|
156
|
+
height="20"
|
157
|
+
stroke="currentColor"
|
158
|
+
stroke-linecap="round"
|
159
|
+
stroke-linejoin="round"
|
160
|
+
stroke-width="2"
|
161
|
+
viewBox="0 0 24 24"
|
162
|
+
width="20"
|
163
|
+
xmlns="http://www.w3.org/2000/svg"
|
164
|
+
>
|
165
|
+
<circle
|
166
|
+
cx="12"
|
167
|
+
cy="12"
|
168
|
+
r="10"
|
169
|
+
/>
|
170
|
+
</svg>
|
171
|
+
</span>
|
172
|
+
First
|
173
|
+
</button>
|
174
|
+
<button
|
175
|
+
class="inline-flex whitespace-nowrap items-center h-10 px-4 font-medium text-center text-sm focus:outline-none hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-700 dark:text-white border border-gray-300 dark:border-gray-500 bg-gray-50 dark:bg-gray-700 border-r-0"
|
176
|
+
>
|
177
|
+
<span>
|
178
|
+
<svg
|
179
|
+
class="mr-2"
|
180
|
+
fill="none"
|
181
|
+
height="20"
|
182
|
+
stroke="currentColor"
|
183
|
+
stroke-linecap="round"
|
184
|
+
stroke-linejoin="round"
|
185
|
+
stroke-width="2"
|
186
|
+
viewBox="0 0 24 24"
|
187
|
+
width="20"
|
188
|
+
xmlns="http://www.w3.org/2000/svg"
|
189
|
+
>
|
190
|
+
<circle
|
191
|
+
cx="12"
|
192
|
+
cy="12"
|
193
|
+
r="10"
|
194
|
+
/>
|
195
|
+
</svg>
|
196
|
+
</span>
|
197
|
+
Second
|
198
|
+
</button>
|
199
|
+
<button
|
200
|
+
class="inline-flex whitespace-nowrap items-center h-10 px-4 font-medium text-center text-sm focus:outline-none hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-700 dark:text-white border border-gray-300 dark:border-gray-500 rounded-r-lg"
|
201
|
+
>
|
202
|
+
<span>
|
203
|
+
<svg
|
204
|
+
class="mr-2"
|
205
|
+
fill="none"
|
206
|
+
height="20"
|
207
|
+
stroke="currentColor"
|
208
|
+
stroke-linecap="round"
|
209
|
+
stroke-linejoin="round"
|
210
|
+
stroke-width="2"
|
211
|
+
viewBox="0 0 24 24"
|
212
|
+
width="20"
|
213
|
+
xmlns="http://www.w3.org/2000/svg"
|
214
|
+
>
|
215
|
+
<circle
|
216
|
+
cx="12"
|
217
|
+
cy="12"
|
218
|
+
r="10"
|
219
|
+
/>
|
220
|
+
</svg>
|
221
|
+
</span>
|
222
|
+
Third
|
223
|
+
</button>
|
224
|
+
</div>
|
225
|
+
</div>
|
226
|
+
</div>
|
227
|
+
</div>
|
228
|
+
`;
|