myshell-react-lib 0.1.0

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.
Files changed (151) hide show
  1. package/README.md +268 -0
  2. package/dist/assets/audio-playing.json +3657 -0
  3. package/dist/index.cjs +9654 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.cts +1431 -0
  6. package/dist/index.d.ts +1431 -0
  7. package/dist/index.js +8788 -0
  8. package/dist/index.js.map +1 -0
  9. package/package.json +140 -0
  10. package/src/common/assets/audio-playing.json +3657 -0
  11. package/src/common/constants/constants.ts +24 -0
  12. package/src/common/constants/types/common.ts +10 -0
  13. package/src/common/hooks/useAudioPlayer.tsx +198 -0
  14. package/src/common/hooks/useDevice.ts +26 -0
  15. package/src/common/hooks/useNativeBridge.ts +42 -0
  16. package/src/common/hooks/useNotification.tsx +179 -0
  17. package/src/common/hooks/useWindowWidth.ts +19 -0
  18. package/src/common/utils/common-helper.ts +81 -0
  19. package/src/components/ItemDemo.tsx +15 -0
  20. package/src/components/accordion.tsx +126 -0
  21. package/src/components/alert-dialog.tsx +148 -0
  22. package/src/components/alert.tsx +65 -0
  23. package/src/components/aspect-ratio.tsx +7 -0
  24. package/src/components/audio-player.tsx +58 -0
  25. package/src/components/avatar.tsx +133 -0
  26. package/src/components/badge.tsx +65 -0
  27. package/src/components/button/button.styles.ts +258 -0
  28. package/src/components/button/button.tsx +215 -0
  29. package/src/components/button/icon-button.styles.ts +101 -0
  30. package/src/components/button/icon-button.tsx +100 -0
  31. package/src/components/button/index.tsx +3 -0
  32. package/src/components/button/link-button.tsx +184 -0
  33. package/src/components/cascader.tsx +175 -0
  34. package/src/components/checkbox.tsx +135 -0
  35. package/src/components/command.tsx +155 -0
  36. package/src/components/context-menu.tsx +198 -0
  37. package/src/components/count-down.tsx +83 -0
  38. package/src/components/custom-notification.tsx +95 -0
  39. package/src/components/dialog.tsx +158 -0
  40. package/src/components/drawer.tsx +116 -0
  41. package/src/components/dropdown-menu.tsx +196 -0
  42. package/src/components/energy-progress.tsx +55 -0
  43. package/src/components/form.tsx +201 -0
  44. package/src/components/group.tsx +9 -0
  45. package/src/components/guide.tsx +243 -0
  46. package/src/components/icon.tsx +89 -0
  47. package/src/components/icons/outline/DownIcon.tsx +18 -0
  48. package/src/components/icons/outline/FilterIcon.tsx +21 -0
  49. package/src/components/icons/outline/arrow-left.tsx +16 -0
  50. package/src/components/icons/outline/arrow-up-tray.tsx +16 -0
  51. package/src/components/icons/outline/check-circle.tsx +17 -0
  52. package/src/components/icons/outline/config.tsx +42 -0
  53. package/src/components/icons/outline/pencil-square.tsx +16 -0
  54. package/src/components/icons/outline/trash.tsx +17 -0
  55. package/src/components/icons/outline/window.tsx +16 -0
  56. package/src/components/icons/outline/x-circle.tsx +17 -0
  57. package/src/components/icons/outline/x-mark.tsx +16 -0
  58. package/src/components/icons/solid/audio-playing.tsx +31 -0
  59. package/src/components/icons/solid/caret-down.tsx +14 -0
  60. package/src/components/icons/solid/code.tsx +18 -0
  61. package/src/components/icons/solid/drag.tsx +14 -0
  62. package/src/components/icons/solid/phone.tsx +23 -0
  63. package/src/components/icons/solid/rectangle-group.tsx +14 -0
  64. package/src/components/image.tsx +151 -0
  65. package/src/components/input.tsx +118 -0
  66. package/src/components/label.tsx +26 -0
  67. package/src/components/link.tsx +123 -0
  68. package/src/components/marquee/index.css +15 -0
  69. package/src/components/marquee/marquee.tsx +220 -0
  70. package/src/components/masonry.tsx +138 -0
  71. package/src/components/menubar.tsx +234 -0
  72. package/src/components/mobile/m-tooltip.tsx +34 -0
  73. package/src/components/modal.tsx +561 -0
  74. package/src/components/navigation-bar.tsx +100 -0
  75. package/src/components/number-input.tsx +143 -0
  76. package/src/components/page-content.tsx +16 -0
  77. package/src/components/popover.tsx +191 -0
  78. package/src/components/progress.tsx +80 -0
  79. package/src/components/radio-group.tsx +44 -0
  80. package/src/components/scroll-area.tsx +49 -0
  81. package/src/components/search-bar.tsx +140 -0
  82. package/src/components/secondary-navigation-bar.tsx +307 -0
  83. package/src/components/select.tsx +273 -0
  84. package/src/components/separator.tsx +31 -0
  85. package/src/components/sheet.tsx +143 -0
  86. package/src/components/skeleton.tsx +20 -0
  87. package/src/components/slider.tsx +160 -0
  88. package/src/components/spinner.tsx +48 -0
  89. package/src/components/swiper/index.module.scss +88 -0
  90. package/src/components/swiper/index.tsx +319 -0
  91. package/src/components/switch.tsx +67 -0
  92. package/src/components/tabs.tsx +325 -0
  93. package/src/components/textarea.tsx +71 -0
  94. package/src/components/toast/toast.tsx +182 -0
  95. package/src/components/toast/toaster.tsx +160 -0
  96. package/src/components/toast/use-toast.tsx +248 -0
  97. package/src/components/toggle-group.tsx +64 -0
  98. package/src/components/toggle.tsx +46 -0
  99. package/src/components/tooltip.tsx +283 -0
  100. package/src/components/typography.tsx +437 -0
  101. package/src/index.ts +66 -0
  102. package/src/lib/utils.ts +62 -0
  103. package/src/stories/Accordion.stories.tsx +64 -0
  104. package/src/stories/AccordionItem.stories.tsx +48 -0
  105. package/src/stories/Avatar.stories.ts +58 -0
  106. package/src/stories/Badge.stories.tsx +40 -0
  107. package/src/stories/BannerSwiper.stories.tsx +102 -0
  108. package/src/stories/Button.stories.tsx +543 -0
  109. package/src/stories/Checkbox.stories.tsx +161 -0
  110. package/src/stories/Configure.mdx +341 -0
  111. package/src/stories/CssProperties.mdx +30 -0
  112. package/src/stories/Description.stories.ts +70 -0
  113. package/src/stories/Display.stories.ts +64 -0
  114. package/src/stories/FeaturedSwiper.stories.tsx +6978 -0
  115. package/src/stories/GridSwiper.stories.tsx +1407 -0
  116. package/src/stories/Guide.stories.tsx +247 -0
  117. package/src/stories/Heading.stories.ts +89 -0
  118. package/src/stories/Icon.stories.ts +77 -0
  119. package/src/stories/IconButton.stories.tsx +301 -0
  120. package/src/stories/IconTextButton.stories.ts +59 -0
  121. package/src/stories/Image.stories.ts +55 -0
  122. package/src/stories/Input.stories.tsx +203 -0
  123. package/src/stories/Modal.stories.tsx +144 -0
  124. package/src/stories/NavigationBar.stories.tsx +81 -0
  125. package/src/stories/Notification.stories.tsx +276 -0
  126. package/src/stories/Popover.stories.tsx +100 -0
  127. package/src/stories/SearchBar.stories.ts +43 -0
  128. package/src/stories/SecondaryNavigationBar.stories.tsx +199 -0
  129. package/src/stories/Select.stories.tsx +107 -0
  130. package/src/stories/Separator.stories.tsx +49 -0
  131. package/src/stories/Spinner.stories.tsx +48 -0
  132. package/src/stories/SubHeading.stories.ts +64 -0
  133. package/src/stories/Swich.stories.tsx +69 -0
  134. package/src/stories/Tabs.stories.tsx +90 -0
  135. package/src/stories/Text.stories.ts +78 -0
  136. package/src/stories/Textarea.stories.tsx +155 -0
  137. package/src/stories/Toast.stories.tsx +424 -0
  138. package/src/stories/Tooltip.stories.tsx +244 -0
  139. package/src/stories/ViewAutoSwiper.stories.tsx +1408 -0
  140. package/src/styles/components-dark.scss +212 -0
  141. package/src/styles/components-light.scss +210 -0
  142. package/src/styles/design-dark.scss +330 -0
  143. package/src/styles/design-light.scss +345 -0
  144. package/src/styles/design2-dark.scss +319 -0
  145. package/src/styles/design2-light.scss +364 -0
  146. package/src/styles/font.css +19 -0
  147. package/src/styles/global.scss +251 -0
  148. package/src/styles/md-viewer.scss +155 -0
  149. package/src/styles/new-tokens.scss +255 -0
  150. package/src/styles/tokens.scss +401 -0
  151. package/src/types/scss.d.ts +24 -0
@@ -0,0 +1,543 @@
1
+ import ArrowsUpDownIcon from '@heroicons/react/24/outline/esm/ArrowsUpDownIcon';
2
+ import type { Meta, StoryObj } from '@storybook/react';
3
+ import React from 'react';
4
+
5
+ import { Button, LinkButton } from '../components/button';
6
+
7
+ // More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
8
+ const meta = {
9
+ title: 'Components/通用/Button-按钮',
10
+ component: Button,
11
+ parameters: {
12
+ // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
13
+ layout: 'centered',
14
+ },
15
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
16
+ tags: ['autodocs'],
17
+
18
+ // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
19
+ args: {
20
+ size: 'lg',
21
+ color: 'default',
22
+ variant: 'primary',
23
+ disabled: false,
24
+ loading: false,
25
+ children: 'Label',
26
+ noStyle: false,
27
+ iconOutBox: false,
28
+ },
29
+ argTypes: {
30
+ // 定义size为select类型的控件
31
+ size: {
32
+ control: 'select',
33
+ description: 'more',
34
+ options: ['sm', 'md', 'lg'],
35
+ },
36
+ variant: {
37
+ control: 'select',
38
+ options: ['primary', 'secondary', 'tertiary', 'link', 'static', 'plain'],
39
+ },
40
+ color: {
41
+ control: 'select',
42
+ options: ['default', 'brand', 'error'],
43
+ },
44
+ iconDirection: {
45
+ control: 'select',
46
+ options: ['left', 'right'],
47
+ },
48
+ iconOutBox: {
49
+ control: 'boolean',
50
+ description: 'icon是否不跟文案在一起,默认在一起',
51
+ },
52
+ isBlock: {
53
+ control: 'boolean',
54
+ description: '是否w-full',
55
+ },
56
+ },
57
+ } satisfies Meta<typeof Button>;
58
+
59
+ export default meta;
60
+ // export const Default: StoryObj<typeof meta> = {
61
+ // // 这里不需要设置 args,因为它会继承 meta 中的 args
62
+ // };
63
+ type Story = StoryObj<typeof meta>;
64
+
65
+ // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
66
+ export const Demo: Story = {
67
+ args: {
68
+ ...meta.args, // 继承默认参数
69
+ },
70
+ render: (args) => {
71
+ const { children } = args;
72
+
73
+ return (
74
+ <div className="min-w-[60vw] w-full p-6 rounded-md flex flex-col space-y-3">
75
+ <div>示例:</div>
76
+
77
+ <div className="flex flex-col space-y-3">
78
+ <div className="grid grid-cols-4 space-x-2 font-medium">
79
+ <div className="flex justify-center" />
80
+ <div className="flex justify-center">lg</div>
81
+ <div className="flex justify-center">md</div>
82
+ <div className="flex justify-center">sm</div>
83
+ </div>
84
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
85
+ <div className="font-semibold text-center">Primary</div>
86
+ <Button {...args} variant="primary" size="lg" className="">
87
+ {children}
88
+ </Button>
89
+ <Button {...args} variant="primary" size="md">
90
+ {children}
91
+ </Button>
92
+ <Button {...args} variant="primary" size="sm">
93
+ {children}
94
+ </Button>
95
+ </div>
96
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
97
+ <div className="font-semibold text-center">Primary(Brand)</div>
98
+ <Button {...args} variant="primary" color="brand" size="lg">
99
+ {children}
100
+ </Button>
101
+ <Button {...args} variant="primary" color="brand" size="md">
102
+ {children}
103
+ </Button>
104
+ <Button {...args} variant="primary" color="brand" size="sm">
105
+ {children}
106
+ </Button>
107
+ </div>
108
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
109
+ <div className="font-semibold text-center">Secondary</div>
110
+ <Button {...args} variant="secondary" size="lg">
111
+ {children}
112
+ </Button>
113
+ <Button {...args} variant="secondary" size="md">
114
+ {children}
115
+ </Button>
116
+ <Button {...args} variant="secondary" size="sm">
117
+ {children}
118
+ </Button>
119
+ </div>
120
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
121
+ <div className="font-semibold text-center">Tertiary</div>
122
+ <Button {...args} variant="tertiary" size="lg">
123
+ {children}
124
+ </Button>
125
+ <Button {...args} variant="tertiary" size="md">
126
+ {children}
127
+ </Button>
128
+ <Button {...args} variant="tertiary" size="sm">
129
+ {children}
130
+ </Button>
131
+ </div>
132
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
133
+ <div className="font-semibold text-center">Primary(Error)</div>
134
+ <Button {...args} variant="primary" color="error" size="lg">
135
+ {children}
136
+ </Button>
137
+ <Button {...args} variant="primary" color="error" size="md">
138
+ {children}
139
+ </Button>
140
+ <Button {...args} variant="primary" color="error" size="sm">
141
+ {children}
142
+ </Button>
143
+ </div>
144
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
145
+ <div className="font-semibold text-center">Secondary(Error)</div>
146
+ <Button {...args} variant="secondary" color="error" size="lg">
147
+ {children}
148
+ </Button>
149
+ <Button {...args} variant="secondary" color="error" size="md">
150
+ {children}
151
+ </Button>
152
+ <Button {...args} variant="secondary" color="error" size="sm">
153
+ {children}
154
+ </Button>
155
+ </div>
156
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
157
+ <div className="font-semibold text-center">Plain</div>
158
+ <Button {...args} variant="plain" size="lg">
159
+ {children}
160
+ </Button>
161
+ <Button {...args} variant="plain" size="md">
162
+ {children}
163
+ </Button>
164
+ <Button {...args} variant="plain" size="sm">
165
+ {children}
166
+ </Button>
167
+ </div>
168
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
169
+ <div className="font-semibold text-center">Plain(Brand)</div>
170
+ <Button {...args} variant="plain" color="brand" size="lg">
171
+ {children}
172
+ </Button>
173
+ <Button {...args} variant="plain" color="brand" size="md">
174
+ {children}
175
+ </Button>
176
+ <Button {...args} variant="plain" color="brand" size="sm">
177
+ {children}
178
+ </Button>
179
+ </div>
180
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
181
+ <div className="font-semibold text-center">Link button</div>
182
+ <LinkButton {...args} size="lg">
183
+ {children}
184
+ </LinkButton>
185
+ <LinkButton {...args} size="md">
186
+ {children}
187
+ </LinkButton>
188
+ <LinkButton {...args} size="sm">
189
+ {children}
190
+ </LinkButton>
191
+ </div>
192
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
193
+ <div className="font-semibold text-center">Static</div>
194
+ <Button {...args} variant="static" size="lg">
195
+ {children}
196
+ </Button>
197
+ <Button {...args} variant="static" size="md">
198
+ {children}
199
+ </Button>
200
+ <Button {...args} variant="static" size="sm">
201
+ {children}
202
+ </Button>
203
+ </div>
204
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center bg-black py-2 rounded-md">
205
+ <div className="font-semibold text-center text-Colors-Text-Static-White">
206
+ Opacity
207
+ </div>
208
+ <Button {...args} variant="opacity" size="lg">
209
+ {children}
210
+ </Button>
211
+ <Button {...args} variant="opacity" size="md">
212
+ {children}
213
+ </Button>
214
+ <Button {...args} variant="opacity" size="sm">
215
+ {children}
216
+ </Button>
217
+ </div>
218
+ <div className="grid grid-cols-4 space-x-2 justify-center items-cente py-2 rounded-md">
219
+ <div className="font-semibold text-center">Solid</div>
220
+ <Button {...args} variant="solid" size="lg">
221
+ {children}
222
+ </Button>
223
+ <Button {...args} variant="solid" size="md">
224
+ {children}
225
+ </Button>
226
+ <Button {...args} variant="solid" size="sm">
227
+ {children}
228
+ </Button>
229
+ </div>
230
+ </div>
231
+
232
+ <div className="pt-10">带icon的button</div>
233
+ <div className="flex flex-col space-y-3">
234
+ <div className="grid grid-cols-4 space-x-2 font-medium">
235
+ <div className="flex justify-center" />
236
+ <div className="flex justify-center">lg</div>
237
+ <div className="flex justify-center">md</div>
238
+ <div className="flex justify-center">sm</div>
239
+ </div>
240
+
241
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
242
+ <div className="font-semibold text-center">Primary</div>
243
+ <Button
244
+ {...args}
245
+ icon={ArrowsUpDownIcon}
246
+ variant="primary"
247
+ size="lg"
248
+ className=""
249
+ >
250
+ {children}
251
+ </Button>
252
+ <Button
253
+ {...args}
254
+ icon={ArrowsUpDownIcon}
255
+ variant="primary"
256
+ size="md"
257
+ >
258
+ {children}
259
+ </Button>
260
+ <Button
261
+ {...args}
262
+ icon={ArrowsUpDownIcon}
263
+ variant="primary"
264
+ size="sm"
265
+ >
266
+ {children}
267
+ </Button>
268
+ </div>
269
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
270
+ <div className="font-semibold text-center">Primary(Brand)</div>
271
+ <Button
272
+ {...args}
273
+ icon={ArrowsUpDownIcon}
274
+ variant="primary"
275
+ color="brand"
276
+ size="lg"
277
+ >
278
+ {children}
279
+ </Button>
280
+ <Button
281
+ {...args}
282
+ icon={ArrowsUpDownIcon}
283
+ variant="primary"
284
+ color="brand"
285
+ size="md"
286
+ >
287
+ {children}
288
+ </Button>
289
+ <Button
290
+ {...args}
291
+ icon={ArrowsUpDownIcon}
292
+ variant="primary"
293
+ color="brand"
294
+ size="sm"
295
+ >
296
+ {children}
297
+ </Button>
298
+ </div>
299
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
300
+ <div className="font-semibold text-center">Secondary</div>
301
+ <Button
302
+ {...args}
303
+ icon={ArrowsUpDownIcon}
304
+ variant="secondary"
305
+ size="lg"
306
+ >
307
+ {children}
308
+ </Button>
309
+ <Button
310
+ {...args}
311
+ icon={ArrowsUpDownIcon}
312
+ variant="secondary"
313
+ size="md"
314
+ >
315
+ {children}
316
+ </Button>
317
+ <Button
318
+ {...args}
319
+ icon={ArrowsUpDownIcon}
320
+ variant="secondary"
321
+ size="sm"
322
+ >
323
+ {children}
324
+ </Button>
325
+ </div>
326
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
327
+ <div className="font-semibold text-center">Tertiary</div>
328
+ <Button
329
+ {...args}
330
+ icon={ArrowsUpDownIcon}
331
+ variant="tertiary"
332
+ size="lg"
333
+ >
334
+ {children}
335
+ </Button>
336
+ <Button
337
+ {...args}
338
+ icon={ArrowsUpDownIcon}
339
+ variant="tertiary"
340
+ size="md"
341
+ >
342
+ {children}
343
+ </Button>
344
+ <Button
345
+ {...args}
346
+ icon={ArrowsUpDownIcon}
347
+ variant="tertiary"
348
+ size="sm"
349
+ >
350
+ {children}
351
+ </Button>
352
+ </div>
353
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
354
+ <div className="font-semibold text-center">Primary(Error)</div>
355
+ <Button
356
+ {...args}
357
+ icon={ArrowsUpDownIcon}
358
+ variant="primary"
359
+ color="error"
360
+ size="lg"
361
+ >
362
+ {children}
363
+ </Button>
364
+ <Button
365
+ {...args}
366
+ icon={ArrowsUpDownIcon}
367
+ variant="primary"
368
+ color="error"
369
+ size="md"
370
+ >
371
+ {children}
372
+ </Button>
373
+ <Button
374
+ {...args}
375
+ icon={ArrowsUpDownIcon}
376
+ variant="primary"
377
+ color="error"
378
+ size="sm"
379
+ >
380
+ {children}
381
+ </Button>
382
+ </div>
383
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
384
+ <div className="font-semibold text-center">Secondary(Error)</div>
385
+ <Button
386
+ {...args}
387
+ icon={ArrowsUpDownIcon}
388
+ variant="secondary"
389
+ color="error"
390
+ size="lg"
391
+ >
392
+ {children}
393
+ </Button>
394
+ <Button
395
+ {...args}
396
+ icon={ArrowsUpDownIcon}
397
+ variant="secondary"
398
+ color="error"
399
+ size="md"
400
+ >
401
+ {children}
402
+ </Button>
403
+ <Button
404
+ {...args}
405
+ icon={ArrowsUpDownIcon}
406
+ variant="secondary"
407
+ color="error"
408
+ size="sm"
409
+ >
410
+ {children}
411
+ </Button>
412
+ </div>
413
+
414
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
415
+ <div className="font-semibold text-center">Static</div>
416
+ <Button
417
+ {...args}
418
+ icon={ArrowsUpDownIcon}
419
+ variant="static"
420
+ size="lg"
421
+ >
422
+ {children}
423
+ </Button>
424
+ <Button
425
+ {...args}
426
+ icon={ArrowsUpDownIcon}
427
+ variant="static"
428
+ size="md"
429
+ >
430
+ {children}
431
+ </Button>
432
+ <Button
433
+ {...args}
434
+ icon={ArrowsUpDownIcon}
435
+ variant="static"
436
+ size="sm"
437
+ >
438
+ {children}
439
+ </Button>
440
+ </div>
441
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center bg-black py-2 rounded-md">
442
+ <div className="font-semibold text-center text-Colors-Text-Static-White">
443
+ Opacity
444
+ </div>
445
+ <Button
446
+ {...args}
447
+ icon={ArrowsUpDownIcon}
448
+ variant="opacity"
449
+ size="lg"
450
+ >
451
+ {children}
452
+ </Button>
453
+ <Button
454
+ {...args}
455
+ icon={ArrowsUpDownIcon}
456
+ variant="opacity"
457
+ size="md"
458
+ >
459
+ {children}
460
+ </Button>
461
+ <Button
462
+ {...args}
463
+ icon={ArrowsUpDownIcon}
464
+ variant="opacity"
465
+ size="sm"
466
+ >
467
+ {children}
468
+ </Button>
469
+ </div>
470
+ <div className="grid grid-cols-4 space-x-2 justify-center items-cente py-2 rounded-md">
471
+ <div className="font-semibold text-center">Solid</div>
472
+ <Button {...args} icon={ArrowsUpDownIcon} variant="solid" size="lg">
473
+ {children}
474
+ </Button>
475
+ <Button {...args} icon={ArrowsUpDownIcon} variant="solid" size="md">
476
+ {children}
477
+ </Button>
478
+ <Button {...args} icon={ArrowsUpDownIcon} variant="solid" size="sm">
479
+ {children}
480
+ </Button>
481
+ </div>
482
+ </div>
483
+ <div className="pt-10">Asset</div>
484
+ <div className="flex flex-col space-y-3">
485
+ <div className="grid grid-cols-4 space-x-2 font-medium">
486
+ <div className="flex justify-center" />
487
+ <div className="flex justify-center">lg</div>
488
+ <div className="flex justify-center">md</div>
489
+ <div className="flex justify-center">sm</div>
490
+ </div>
491
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
492
+ <div className="font-semibold text-center">Primary Coin</div>
493
+ <Button {...args} variant="primary" size="lg" asset="coin">
494
+ {children}
495
+ </Button>
496
+ <Button {...args} variant="primary" size="md" asset="coin">
497
+ {children}
498
+ </Button>
499
+ <Button {...args} variant="primary" size="sm" asset="coin">
500
+ {children}
501
+ </Button>
502
+ </div>
503
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
504
+ <div className="font-semibold text-center">Tertiary Coin</div>
505
+ <Button {...args} variant="tertiary" size="lg" asset="coin">
506
+ {children}
507
+ </Button>
508
+ <Button {...args} variant="tertiary" size="md" asset="coin">
509
+ {children}
510
+ </Button>
511
+ <Button {...args} variant="tertiary" size="sm" asset="coin">
512
+ {children}
513
+ </Button>
514
+ </div>
515
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
516
+ <div className="font-semibold text-center">Secondary Coin</div>
517
+ <Button {...args} variant="secondary" size="lg" asset="coin">
518
+ {children}
519
+ </Button>
520
+ <Button {...args} variant="secondary" size="md" asset="coin">
521
+ {children}
522
+ </Button>
523
+ <Button {...args} variant="secondary" size="sm" asset="coin">
524
+ {children}
525
+ </Button>
526
+ </div>
527
+ <div className="grid grid-cols-4 space-x-2 justify-center items-center">
528
+ <div className="font-semibold text-center">Primary Energy</div>
529
+ <Button {...args} variant="primary" size="lg" asset="energy">
530
+ {children}
531
+ </Button>
532
+ <Button {...args} variant="primary" size="md" asset="energy">
533
+ {children}
534
+ </Button>
535
+ <Button {...args} variant="primary" size="sm" asset="energy">
536
+ {children}
537
+ </Button>
538
+ </div>
539
+ </div>
540
+ </div>
541
+ );
542
+ },
543
+ };