@fragment-build/ui 2.1.0 → 2.2.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 (244) hide show
  1. package/{dist/index.js → index.js} +0 -1
  2. package/package.json +25 -25
  3. package/dist/components/base/Accordion.d.ts +0 -2
  4. package/dist/components/base/Accordion.js +0 -5
  5. package/dist/components/base/Accordion.js.map +0 -1
  6. package/dist/components/base/Alert.d.ts +0 -1
  7. package/dist/components/base/Alert.js +0 -4
  8. package/dist/components/base/Alert.js.map +0 -1
  9. package/dist/components/base/Autocomplete.d.ts +0 -3
  10. package/dist/components/base/Autocomplete.js +0 -6
  11. package/dist/components/base/Autocomplete.js.map +0 -1
  12. package/dist/components/base/Avatar.d.ts +0 -2
  13. package/dist/components/base/Avatar.js +0 -5
  14. package/dist/components/base/Avatar.js.map +0 -1
  15. package/dist/components/base/Badge.d.ts +0 -1
  16. package/dist/components/base/Badge.js +0 -4
  17. package/dist/components/base/Badge.js.map +0 -1
  18. package/dist/components/base/Breadcrumbs.d.ts +0 -2
  19. package/dist/components/base/Breadcrumbs.js +0 -5
  20. package/dist/components/base/Breadcrumbs.js.map +0 -1
  21. package/dist/components/base/Button.d.ts +0 -2
  22. package/dist/components/base/Button.js +0 -5
  23. package/dist/components/base/Button.js.map +0 -1
  24. package/dist/components/base/Calendar.d.ts +0 -1
  25. package/dist/components/base/Calendar.js +0 -4
  26. package/dist/components/base/Calendar.js.map +0 -1
  27. package/dist/components/base/Card.d.ts +0 -2
  28. package/dist/components/base/Card.js +0 -5
  29. package/dist/components/base/Card.js.map +0 -1
  30. package/dist/components/base/Checkbox.d.ts +0 -2
  31. package/dist/components/base/Checkbox.js +0 -5
  32. package/dist/components/base/Checkbox.js.map +0 -1
  33. package/dist/components/base/Chip.d.ts +0 -1
  34. package/dist/components/base/Chip.js +0 -4
  35. package/dist/components/base/Chip.js.map +0 -1
  36. package/dist/components/base/CircularProgress.d.ts +0 -1
  37. package/dist/components/base/CircularProgress.js +0 -4
  38. package/dist/components/base/CircularProgress.js.map +0 -1
  39. package/dist/components/base/Code.d.ts +0 -1
  40. package/dist/components/base/Code.js +0 -4
  41. package/dist/components/base/Code.js.map +0 -1
  42. package/dist/components/base/DateInput.d.ts +0 -1
  43. package/dist/components/base/DateInput.js +0 -4
  44. package/dist/components/base/DateInput.js.map +0 -1
  45. package/dist/components/base/DatePicker.d.ts +0 -1
  46. package/dist/components/base/DatePicker.js +0 -4
  47. package/dist/components/base/DatePicker.js.map +0 -1
  48. package/dist/components/base/DateRangePicker.d.ts +0 -1
  49. package/dist/components/base/DateRangePicker.js +0 -4
  50. package/dist/components/base/DateRangePicker.js.map +0 -1
  51. package/dist/components/base/Divider.d.ts +0 -1
  52. package/dist/components/base/Divider.js +0 -4
  53. package/dist/components/base/Divider.js.map +0 -1
  54. package/dist/components/base/Drawer.d.ts +0 -8
  55. package/dist/components/base/Drawer.js +0 -8
  56. package/dist/components/base/Drawer.js.map +0 -1
  57. package/dist/components/base/Dropdown.d.ts +0 -11
  58. package/dist/components/base/Dropdown.js +0 -8
  59. package/dist/components/base/Dropdown.js.map +0 -1
  60. package/dist/components/base/Form.d.ts +0 -0
  61. package/dist/components/base/Form.js +0 -6
  62. package/dist/components/base/Form.js.map +0 -1
  63. package/dist/components/base/Image.d.ts +0 -1
  64. package/dist/components/base/Image.js +0 -4
  65. package/dist/components/base/Image.js.map +0 -1
  66. package/dist/components/base/Input.d.ts +0 -1
  67. package/dist/components/base/Input.js +0 -4
  68. package/dist/components/base/Input.js.map +0 -1
  69. package/dist/components/base/InputOtp.d.ts +0 -1
  70. package/dist/components/base/InputOtp.js +0 -4
  71. package/dist/components/base/InputOtp.js.map +0 -1
  72. package/dist/components/base/Kbd.d.ts +0 -1
  73. package/dist/components/base/Kbd.js +0 -4
  74. package/dist/components/base/Kbd.js.map +0 -1
  75. package/dist/components/base/Link.d.ts +0 -1
  76. package/dist/components/base/Link.js +0 -4
  77. package/dist/components/base/Link.js.map +0 -1
  78. package/dist/components/base/Listbox.d.ts +0 -3
  79. package/dist/components/base/Listbox.js +0 -6
  80. package/dist/components/base/Listbox.js.map +0 -1
  81. package/dist/components/base/Modal.d.ts +0 -8
  82. package/dist/components/base/Modal.js +0 -8
  83. package/dist/components/base/Modal.js.map +0 -1
  84. package/dist/components/base/Navbar.d.ts +0 -7
  85. package/dist/components/base/Navbar.js +0 -10
  86. package/dist/components/base/Navbar.js.map +0 -1
  87. package/dist/components/base/NumberInput.d.ts +0 -1
  88. package/dist/components/base/NumberInput.js +0 -4
  89. package/dist/components/base/NumberInput.js.map +0 -1
  90. package/dist/components/base/Pagination.d.ts +0 -3
  91. package/dist/components/base/Pagination.js +0 -6
  92. package/dist/components/base/Pagination.js.map +0 -1
  93. package/dist/components/base/Popover.d.ts +0 -234
  94. package/dist/components/base/Popover.js +0 -6
  95. package/dist/components/base/Popover.js.map +0 -1
  96. package/dist/components/base/Progress.d.ts +0 -1
  97. package/dist/components/base/Progress.js +0 -4
  98. package/dist/components/base/Progress.js.map +0 -1
  99. package/dist/components/base/Radio.d.ts +0 -2
  100. package/dist/components/base/Radio.js +0 -5
  101. package/dist/components/base/Radio.js.map +0 -1
  102. package/dist/components/base/RangeCalendar.d.ts +0 -1
  103. package/dist/components/base/RangeCalendar.js +0 -4
  104. package/dist/components/base/RangeCalendar.js.map +0 -1
  105. package/dist/components/base/ScrollShadow.d.ts +0 -1
  106. package/dist/components/base/ScrollShadow.js +0 -4
  107. package/dist/components/base/ScrollShadow.js.map +0 -1
  108. package/dist/components/base/Select.d.ts +0 -3
  109. package/dist/components/base/Select.js +0 -6
  110. package/dist/components/base/Select.js.map +0 -1
  111. package/dist/components/base/Skeleton.d.ts +0 -1
  112. package/dist/components/base/Skeleton.js +0 -4
  113. package/dist/components/base/Skeleton.js.map +0 -1
  114. package/dist/components/base/Slider.d.ts +0 -1
  115. package/dist/components/base/Slider.js +0 -4
  116. package/dist/components/base/Slider.js.map +0 -1
  117. package/dist/components/base/Snippet.d.ts +0 -1
  118. package/dist/components/base/Snippet.js +0 -4
  119. package/dist/components/base/Snippet.js.map +0 -1
  120. package/dist/components/base/Spacer.d.ts +0 -1
  121. package/dist/components/base/Spacer.js +0 -4
  122. package/dist/components/base/Spacer.js.map +0 -1
  123. package/dist/components/base/Spinner.d.ts +0 -1
  124. package/dist/components/base/Spinner.js +0 -4
  125. package/dist/components/base/Spinner.js.map +0 -1
  126. package/dist/components/base/Switch.d.ts +0 -1
  127. package/dist/components/base/Switch.js +0 -4
  128. package/dist/components/base/Switch.js.map +0 -1
  129. package/dist/components/base/Table.d.ts +0 -6
  130. package/dist/components/base/Table.js +0 -9
  131. package/dist/components/base/Table.js.map +0 -1
  132. package/dist/components/base/Tabs.d.ts +0 -2
  133. package/dist/components/base/Tabs.js +0 -5
  134. package/dist/components/base/Tabs.js.map +0 -1
  135. package/dist/components/base/Textarea.d.ts +0 -1
  136. package/dist/components/base/Textarea.js +0 -4
  137. package/dist/components/base/Textarea.js.map +0 -1
  138. package/dist/components/base/TimeInput.d.ts +0 -1
  139. package/dist/components/base/TimeInput.js +0 -4
  140. package/dist/components/base/TimeInput.js.map +0 -1
  141. package/dist/components/base/Toast.d.ts +0 -2
  142. package/dist/components/base/Toast.js +0 -5
  143. package/dist/components/base/Toast.js.map +0 -1
  144. package/dist/components/base/Tooltip.d.ts +0 -1
  145. package/dist/components/base/Tooltip.js +0 -4
  146. package/dist/components/base/Tooltip.js.map +0 -1
  147. package/dist/components/base/User.d.ts +0 -1
  148. package/dist/components/base/User.js +0 -4
  149. package/dist/components/base/User.js.map +0 -1
  150. package/dist/components/chart/Chart.d.ts +0 -13
  151. package/dist/components/chart/Chart.js +0 -30
  152. package/dist/components/chart/Chart.js.map +0 -1
  153. package/dist/components/chart/Chart.stories.d.ts +0 -12
  154. package/dist/components/chart/Chart.stories.js +0 -194
  155. package/dist/components/chart/Chart.stories.js.map +0 -1
  156. package/dist/components/charts/ChartCircle.d.ts +0 -18
  157. package/dist/components/charts/ChartCircle.js +0 -18
  158. package/dist/components/charts/ChartCircle.js.map +0 -1
  159. package/dist/components/charts/ChartCircle.stories.d.ts +0 -6
  160. package/dist/components/charts/ChartCircle.stories.js +0 -35
  161. package/dist/components/charts/ChartCircle.stories.js.map +0 -1
  162. package/dist/components/color-input/ColorInput.d.ts +0 -8
  163. package/dist/components/color-input/ColorInput.js +0 -24
  164. package/dist/components/color-input/ColorInput.js.map +0 -1
  165. package/dist/components/color-input/ColorInput.stories.d.ts +0 -7
  166. package/dist/components/color-input/ColorInput.stories.js +0 -21
  167. package/dist/components/color-input/ColorInput.stories.js.map +0 -1
  168. package/dist/components/color-selector/ColorSelector.d.ts +0 -14
  169. package/dist/components/color-selector/ColorSelector.js +0 -16
  170. package/dist/components/color-selector/ColorSelector.js.map +0 -1
  171. package/dist/components/color-selector/ColorSelector.stories.d.ts +0 -8
  172. package/dist/components/color-selector/ColorSelector.stories.js +0 -35
  173. package/dist/components/color-selector/ColorSelector.stories.js.map +0 -1
  174. package/dist/components/grid/Grid.d.ts +0 -8
  175. package/dist/components/grid/Grid.js +0 -28
  176. package/dist/components/grid/Grid.js.map +0 -1
  177. package/dist/components/grid/Grid.stories.d.ts +0 -8
  178. package/dist/components/grid/Grid.stories.js +0 -29
  179. package/dist/components/grid/Grid.stories.js.map +0 -1
  180. package/dist/components/multi-switch/MultiSwitch.d.ts +0 -9
  181. package/dist/components/multi-switch/MultiSwitch.js +0 -31
  182. package/dist/components/multi-switch/MultiSwitch.js.map +0 -1
  183. package/dist/components/multi-switch/MultiSwitch.stories.d.ts +0 -8
  184. package/dist/components/multi-switch/MultiSwitch.stories.js +0 -28
  185. package/dist/components/multi-switch/MultiSwitch.stories.js.map +0 -1
  186. package/dist/components/theme-switch/ThemeSwitch.d.ts +0 -6
  187. package/dist/components/theme-switch/ThemeSwitch.js +0 -16
  188. package/dist/components/theme-switch/ThemeSwitch.js.map +0 -1
  189. package/dist/components/theme-switch/ThemeSwitch.stories.d.ts +0 -6
  190. package/dist/components/theme-switch/ThemeSwitch.stories.js +0 -13
  191. package/dist/components/theme-switch/ThemeSwitch.stories.js.map +0 -1
  192. package/dist/constants.d.ts +0 -12
  193. package/dist/constants.js +0 -13
  194. package/dist/constants.js.map +0 -1
  195. package/dist/context.d.ts +0 -106
  196. package/dist/context.js +0 -467
  197. package/dist/context.js.map +0 -1
  198. package/dist/fragments/form/Form.d.ts +0 -8
  199. package/dist/fragments/form/Form.js +0 -18
  200. package/dist/fragments/form/Form.js.map +0 -1
  201. package/dist/fragments/form/FormSection.d.ts +0 -12
  202. package/dist/fragments/form/FormSection.js +0 -38
  203. package/dist/fragments/form/FormSection.js.map +0 -1
  204. package/dist/fragments/form/FormSection.stories.d.ts +0 -10
  205. package/dist/fragments/form/FormSection.stories.js +0 -53
  206. package/dist/fragments/form/FormSection.stories.js.map +0 -1
  207. package/dist/fragments/page/PageHeader.d.ts +0 -10
  208. package/dist/fragments/page/PageHeader.js +0 -14
  209. package/dist/fragments/page/PageHeader.js.map +0 -1
  210. package/dist/fragments/page/PageHeader.stories.d.ts +0 -8
  211. package/dist/fragments/page/PageHeader.stories.js +0 -33
  212. package/dist/fragments/page/PageHeader.stories.js.map +0 -1
  213. package/dist/fragments/shell/Shell.d.ts +0 -9
  214. package/dist/fragments/shell/Shell.js +0 -6
  215. package/dist/fragments/shell/Shell.js.map +0 -1
  216. package/dist/fragments/shell/Shell.stories.d.ts +0 -10
  217. package/dist/fragments/shell/Shell.stories.js +0 -287
  218. package/dist/fragments/shell/Shell.stories.js.map +0 -1
  219. package/dist/fragments/sidebar/Sidebar.d.ts +0 -49
  220. package/dist/fragments/sidebar/Sidebar.js +0 -93
  221. package/dist/fragments/sidebar/Sidebar.js.map +0 -1
  222. package/dist/fragments/sidebar/Sidebar.stories.d.ts +0 -8
  223. package/dist/fragments/sidebar/Sidebar.stories.js +0 -158
  224. package/dist/fragments/sidebar/Sidebar.stories.js.map +0 -1
  225. package/dist/fragments/sidebar/Sidebar.styles.d.ts +0 -118
  226. package/dist/fragments/sidebar/Sidebar.styles.js +0 -45
  227. package/dist/fragments/sidebar/Sidebar.styles.js.map +0 -1
  228. package/dist/fragments/widget/Widget.d.ts +0 -15
  229. package/dist/fragments/widget/Widget.js +0 -310
  230. package/dist/fragments/widget/Widget.js.map +0 -1
  231. package/dist/fragments/widget/Widget.stories.d.ts +0 -8
  232. package/dist/fragments/widget/Widget.stories.js +0 -47
  233. package/dist/fragments/widget/Widget.stories.js.map +0 -1
  234. package/dist/index.d.ts +0 -66
  235. package/dist/index.js.map +0 -1
  236. package/dist/provider.d.ts +0 -7
  237. package/dist/provider.js +0 -17
  238. package/dist/provider.js.map +0 -1
  239. package/dist/tailwind.plugin.d.ts +0 -3
  240. package/dist/tailwind.plugin.js +0 -53
  241. package/dist/tailwind.plugin.js.map +0 -1
  242. package/dist/withFragment.d.ts +0 -2
  243. package/dist/withFragment.js +0 -21
  244. package/dist/withFragment.js.map +0 -1
@@ -1,12 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- import { Chart } from './Chart';
3
- declare const meta: Meta<typeof Chart>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Area: Story;
7
- export declare const Line: Story;
8
- export declare const Column: Story;
9
- export declare const Bar: Story;
10
- export declare const Pie: Story;
11
- export declare const Donut: Story;
12
- export declare const Radial: Story;
@@ -1,194 +0,0 @@
1
- import { Chart } from './Chart';
2
- // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
3
- const meta = {
4
- title: 'components/Chart',
5
- component: Chart,
6
- tags: ['autodocs'],
7
- };
8
- export default meta;
9
- // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
10
- export const Area = {
11
- args: {
12
- type: 'area',
13
- height: '500px',
14
- options: {
15
- xaxis: {
16
- categories: ['01 February', '02 February', '03 February', '04 February', '05 February', '06 February', '07 February'],
17
- }
18
- },
19
- series: [
20
- {
21
- name: 'New users',
22
- data: [6500, 6418, 6456, 6526, 6356, 6456],
23
- color: '#1A56DB',
24
- },
25
- ],
26
- },
27
- };
28
- export const Line = {
29
- args: {
30
- type: 'line',
31
- height: '500px',
32
- series: [
33
- {
34
- name: 'Clicks',
35
- data: [6500, 6418, 6456, 6526, 6356, 6456],
36
- color: '#1A56DB',
37
- },
38
- {
39
- name: 'CPC',
40
- data: [6456, 6356, 6526, 6332, 6418, 6500],
41
- color: '#7E3AF2',
42
- },
43
- ],
44
- },
45
- };
46
- export const Column = {
47
- args: {
48
- type: 'column',
49
- height: '500px',
50
- series: [
51
- {
52
- name: 'Organic',
53
- color: '#1A56DB',
54
- data: [
55
- { x: 'Mon', y: 231 },
56
- { x: 'Tue', y: 122 },
57
- { x: 'Wed', y: 63 },
58
- { x: 'Thu', y: 421 },
59
- { x: 'Fri', y: 122 },
60
- { x: 'Sat', y: 323 },
61
- { x: 'Sun', y: 111 },
62
- ],
63
- },
64
- {
65
- name: 'Social media',
66
- color: '#FDBA8C',
67
- data: [
68
- { x: 'Mon', y: 232 },
69
- { x: 'Tue', y: 113 },
70
- { x: 'Wed', y: 341 },
71
- { x: 'Thu', y: 224 },
72
- { x: 'Fri', y: 522 },
73
- { x: 'Sat', y: 411 },
74
- { x: 'Sun', y: 243 },
75
- ],
76
- },
77
- ],
78
- },
79
- };
80
- export const Bar = {
81
- args: {
82
- type: 'bar',
83
- height: '500px',
84
- options: {
85
- tooltip: {
86
- y: {
87
- formatter: function (value) {
88
- return '$' + value;
89
- }
90
- }
91
- },
92
- },
93
- series: [
94
- {
95
- name: 'Income',
96
- color: '#31C48D',
97
- data: [1420, 1620, 1820, 1420, 1650, 2120],
98
- },
99
- {
100
- name: 'Expense',
101
- data: [788, 810, 866, 788, 1100, 1200],
102
- color: '#F05252',
103
- }
104
- ]
105
- },
106
- };
107
- export const Pie = {
108
- args: {
109
- type: 'pie',
110
- height: '500px',
111
- options: {
112
- labels: ['Direct', 'Organic search', 'Referrals'],
113
- yaxis: {
114
- labels: {
115
- formatter: function (value) {
116
- return value + '%';
117
- },
118
- },
119
- },
120
- xaxis: {
121
- labels: {
122
- formatter: function (value) {
123
- return value + '%';
124
- },
125
- },
126
- }
127
- },
128
- series: [52.8, 26.8, 20.4],
129
- },
130
- };
131
- export const Donut = {
132
- args: {
133
- type: 'donut',
134
- height: '500px',
135
- options: {
136
- labels: ['Direct', 'Sponsor', 'Affiliate', 'Email marketing'],
137
- plotOptions: {
138
- pie: {
139
- donut: {
140
- labels: {
141
- total: {
142
- label: 'Unique visitors',
143
- formatter: function (w) {
144
- const sum = w.globals.seriesTotals.reduce((a, b) => {
145
- return a + b;
146
- }, 0);
147
- return '$' + sum + 'k';
148
- },
149
- },
150
- value: {
151
- formatter: function (value) {
152
- return value + 'k';
153
- },
154
- }
155
- }
156
- }
157
- }
158
- },
159
- yaxis: {
160
- labels: {
161
- formatter: function (value) {
162
- return value + 'k';
163
- },
164
- },
165
- },
166
- xaxis: {
167
- labels: {
168
- formatter: function (value) {
169
- return value + 'k';
170
- },
171
- },
172
- },
173
- },
174
- series: [35.1, 23.5, 2.4, 5.4],
175
- },
176
- };
177
- export const Radial = {
178
- args: {
179
- type: 'radial',
180
- height: '500px',
181
- options: {
182
- labels: ['Done', 'In progress', 'To do'],
183
- yaxis: {
184
- labels: {
185
- formatter: function (value) {
186
- return value + '%';
187
- }
188
- }
189
- }
190
- },
191
- series: [90, 85, 70],
192
- },
193
- };
194
- //# sourceMappingURL=Chart.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Chart.stories.js","sourceRoot":"","sources":["../../../src/components/chart/Chart.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,qGAAqG;AACrG,MAAM,IAAI,GAAuB;IAC/B,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,KAAK;IAChB,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,8FAA8F;AAC9F,MAAM,CAA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C,CAAA;oCACL,OAAO,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;gCACxB,CAAC;6BACF;4BACD,KAAK,EAAE;gCACL,SAAS,EAAE,UAAU,KAAK;oCACxB,OAAO,KAAK,GAAG,GAAG,CAAA;gCACpB,CAAC;6BACF;yBACF;qBACF;iBACF;aACF;YACD,KAAK,EAAE;gBACL,MAAM,EAAE;oBACN,SAAS,EAAE,UAAU,KAAK;wBACxB,OAAO,KAAK,GAAG,GAAG,CAAA;oBACpB,CAAC;iBACF;aACF;YACD,KAAK,EAAE;gBACL,MAAM,EAAE;oBACN,SAAS,EAAE,UAAU,KAAK;wBACxB,OAAO,KAAK,GAAI,GAAG,CAAA;oBACrB,CAAC;iBACF;aACF;SACF;QACD,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC;KAC/B;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAU;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;QACf,OAAO,EAAE;YACP,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC;YACxC,KAAK,EAAE;gBACL,MAAM,EAAE;oBACN,SAAS,EAAE,UAAU,KAAK;wBACxB,OAAO,KAAK,GAAG,GAAG,CAAC;oBACrB,CAAC;iBACF;aACF;SACF;QACD,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;KACrB;CACF,CAAC"}
@@ -1,18 +0,0 @@
1
- /**
2
- * Primary UI component for Dashboard Charts
3
- */
4
- import React from 'react';
5
- import type { ButtonProps } from "@heroui/button";
6
- interface ChartData {
7
- name: string;
8
- [key: string]: string | number;
9
- }
10
- export interface ChartCircleProps {
11
- color: ButtonProps["color"];
12
- categories: string[];
13
- chartData: ChartData[];
14
- width?: number | string;
15
- height?: number | string;
16
- }
17
- export declare const ChartCircle: React.FC<ChartCircleProps>;
18
- export {};
@@ -1,18 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ResponsiveContainer, PieChart, Pie, Tooltip, Cell } from "recharts";
3
- ;
4
- ;
5
- const formatTotal = (total) => {
6
- return total >= 1000 ? `${(total / 1000).toFixed(1)}K` : total;
7
- };
8
- export const ChartCircle = ({ categories, color, chartData, width, height }) => {
9
- return (_jsx(ResponsiveContainer, { className: "[&_.recharts-surface]:outline-hidden", width: width, height: height, children: _jsxs(PieChart, { accessibilityLayer: true, margin: { top: 0, right: 0, left: 0, bottom: 0 }, children: [_jsx(Tooltip, { content: ({ label, payload }) => (_jsxs("div", { className: "rounded-medium bg-background text-tiny shadow-small flex h-8 min-w-[120px] items-center gap-x-2 px-1", children: [_jsx("span", { className: "text-foreground font-medium", children: label }), payload?.map((p, index) => {
10
- const name = p.name;
11
- const value = p.value;
12
- const category = categories.find((c) => c.toLowerCase() === name) ?? name;
13
- return (_jsxs("div", { className: "flex w-full items-center gap-x-2", children: [_jsx("div", { className: "h-2 w-2 flex-none rounded-full", style: {
14
- backgroundColor: p.payload.fill,
15
- } }), _jsxs("div", { className: "text-default-700 flex w-full items-center justify-between gap-x-2 pr-1 text-xs", children: [_jsx("span", { className: "text-default-500", children: category }), _jsx("span", { className: "text-default-700 font-mono font-medium", children: formatTotal(value) })] })] }, `${index}-${name}`));
16
- })] })), cursor: false }), _jsx(Pie, { animationDuration: 1000, animationEasing: "ease", data: chartData, dataKey: "value", innerRadius: "68%", nameKey: "name", paddingAngle: -20, strokeWidth: 0, children: chartData.map((_, index) => (_jsx(Cell, { fill: `hsl(var(--heroui-${color}-${(index + 1) * 200}))` }, `cell-${index}`))) })] }) }));
17
- };
18
- //# sourceMappingURL=ChartCircle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChartCircle.js","sourceRoot":"","sources":["../../../src/components/charts/ChartCircle.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,GAAG,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AC1C,KAAK,EAAE;gDACL,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI;6CAChC,GACD,EACF,eAAK,SAAS,EAAC,gFAAgF,aAC7F,eAAM,SAAS,EAAC,kBAAkB,YAAE,QAAQ,GAAQ,EACpD,eAAM,SAAS,EAAC,wCAAwC,YACrD,WAAW,CAAC,KAAe,CAAC,GACxB,IACH,KAZE,GAAG,KAAK,IAAI,IAAI,EAAE,CAatB,CACP,CAAC;4BACJ,CAAC,CAAC,IACE,CACP,EACD,MAAM,EAAE,KAAK,GACb,EACF,KAAC,GAAG,IACF,iBAAiB,EAAE,IAAI,EACvB,eAAe,EAAC,MAAM,EACtB,IAAI,EAAE,SAAS,EACf,OAAO,EAAC,OAAO,EACf,WAAW,EAAC,KAAK,EACjB,OAAO,EAAC,MAAM,EACd,YAAY,EAAE,CAAC,EAAE,EACjB,WAAW,EAAE,CAAC,YAEb,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CAC3B,KAAC,IAAI,IAEH,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,GAAG,IAAI,IADnD,QAAQ,KAAK,EAAE,CAEpB,CACH,CAAC,GACE,IACG,GACS,CACvB,CAAC;AACJ,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- import { ChartCircle } from './ChartCircle';
3
- declare const meta: Meta<typeof ChartCircle>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Default: Story;
@@ -1,35 +0,0 @@
1
- import { ChartCircle } from './ChartCircle';
2
- // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
3
- const meta = {
4
- title: 'components/ChartCircle',
5
- component: ChartCircle,
6
- tags: ['autodocs'],
7
- };
8
- export default meta;
9
- // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
10
- export const Default = {
11
- args: {
12
- height: 500,
13
- color: "primary",
14
- categories: ["Chrome", "Safari", "Firefox", "Edge"],
15
- chartData: [
16
- {
17
- name: "Chrome",
18
- value: 350
19
- },
20
- {
21
- name: "Safari",
22
- value: 280
23
- },
24
- {
25
- name: "Firefox",
26
- value: 220
27
- },
28
- {
29
- name: "Edge",
30
- value: 150
31
- }
32
- ],
33
- },
34
- };
35
- //# sourceMappingURL=ChartCircle.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChartCircle.stories.js","sourceRoot":"","sources":["../../../src/components/charts/ChartCircle.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qGAAqG;AACrG,MAAM,IAAI,GAA6B;IACrC,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,8FAA8F;AAC9F,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,MAAM,EAAE,GAAG;QACX,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC;QACnD,SAAS,EAAE;YACT;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,GAAG;aACX;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,GAAG;aACX;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,GAAG;aACX;YACD;gBACE,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,GAAG;aACX;SACF;KACF;CACF,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { InputProps } from '@heroui/input';
2
- /**
3
- * Primary UI component for selecting a color
4
- */
5
- export interface ColorInputProps extends InputProps {
6
- placeholderValue?: string;
7
- }
8
- export declare const ColorInput: React.FC<ColorInputProps>;
@@ -1,24 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useEffect, useMemo, useState } from 'react';
3
- import { Avatar } from '../base/Avatar';
4
- import { Input } from '../base/Input';
5
- import { withFragment } from '../../withFragment';
6
- ;
7
- export const ColorInput = withFragment(({ defaultValue, placeholderValue, label = 'Color', errorMessage = 'Please enter a valid color in hex format e.g. #f3f or #ff33ff', onValueChange, isInvalid, value: controlledValue, placeholder, ...rest }) => {
8
- const [value, setValue] = useState(controlledValue || defaultValue);
9
- useEffect(() => onValueChange && onValueChange(value || ''), [value, onValueChange]);
10
- useEffect(() => setValue(controlledValue), [controlledValue]);
11
- const validateHexColor = (value) => value.match(/^#(?:[0-9a-fA-F]{3}){1,2}$/i);
12
- const invalid = useMemo(() => {
13
- if (!value)
14
- return false;
15
- return validateHexColor(value) && !isInvalid ? false : true;
16
- }, [value, isInvalid]);
17
- const handleOnChange = (e) => {
18
- if (rest.onChange)
19
- rest.onChange(e);
20
- setValue(e.currentTarget.value);
21
- };
22
- return (_jsx(Input, { ...rest, label: label, type: "text", value: value, onValueChange: setValue, isInvalid: invalid, errorMessage: invalid && errorMessage, placeholder: placeholder || placeholderValue, endContent: (_jsx(Avatar, { as: "button", size: "sm", showFallback: true, fallback: (_jsx("input", { type: "color", className: "w-full h-full opacity-0 cursor-pointer", value: placeholderValue && !value ? placeholderValue : value, onChange: handleOnChange })), style: { backgroundColor: value || placeholderValue }, classNames: { base: 'shrink-0 self-center -mb-0.5', fallback: 'w-full h-full' } })) }));
23
- }, 'colorInput');
24
- //# sourceMappingURL=ColorInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ColorInput.js","sourceRoot":"","sources":["../../../src/components/color-input/ColorInput.tsx"],"names":[],"mappings":";AACA,OAAO,EAAe,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAA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A,IAAI,EACR,KAAK,EAAE,KAAK,EACZ,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,QAAQ,EACvB,SAAS,EAAE,OAAO,EAClB,YAAY,EAAE,OAAO,IAAI,YAAY,EACrC,WAAW,EAAE,WAAW,IAAI,gBAAgB,EAC5C,UAAU,EAAE,CACV,KAAC,MAAM,IACL,EAAE,EAAC,QAAQ,EACX,IAAI,EAAC,IAAI,EACT,YAAY,QACZ,QAAQ,EAAE,CACR,gBACE,IAAI,EAAC,OAAO,EACZ,SAAS,EAAC,wCAAwC,EAClD,KAAK,EAAE,gBAAgB,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK,EAC5D,QAAQ,EAAE,cAAc,GACxB,CACH,EACD,KAAK,EAAE,EAAE,eAAe,EAAE,KAAK,IAAI,gBAAgB,EAAE,EACrD,UAAU,EAAE,EAAE,IAAI,EAAE,8BAA8B,EAAE,QAAQ,EAAE,eAAe,EAAE,GAC/E,CACH,GACD,CACH,CAAC;AACJ,CAAC,EAAE,YAAY,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- import { ColorInput } from './ColorInput';
3
- declare const meta: Meta<typeof ColorInput>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Primary: Story;
7
- export declare const PlaceholderValue: Story;
@@ -1,21 +0,0 @@
1
- import { ColorInput } from './ColorInput';
2
- // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
3
- const meta = {
4
- title: 'components/ColorInput',
5
- component: ColorInput,
6
- tags: ['autodocs'],
7
- };
8
- export default meta;
9
- // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
10
- export const Primary = {
11
- args: {
12
- onValueChange: console.log,
13
- },
14
- };
15
- export const PlaceholderValue = {
16
- args: {
17
- onValueChange: console.log,
18
- placeholderValue: '#7d7d7d',
19
- },
20
- };
21
- //# sourceMappingURL=ColorInput.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ColorInput.stories.js","sourceRoot":"","sources":["../../../src/components/color-input/ColorInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,qGAAqG;AACrG,MAAM,IAAI,GAA4B;IACpC,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,8FAA8F;AAC9F,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,aAAa,EAAE,OAAO,CAAC,GAAG;KAC3B;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAU;IACrC,IAAI,EAAE;QACJ,aAAa,EAAE,OAAO,CAAC,GAAG;QAC1B,gBAAgB,EAAE,SAAS;KAC5B;CACF,CAAC"}
@@ -1,14 +0,0 @@
1
- import type { AvatarProps } from '@heroui/avatar';
2
- /**
3
- * Primary UI component for selecting a color
4
- */
5
- export interface ColorSelectorProps {
6
- values: string[];
7
- value?: string;
8
- defaultValue?: string;
9
- onValueChange: (color: string) => void;
10
- color?: AvatarProps['color'];
11
- size?: AvatarProps['size'];
12
- icon?: React.ReactNode;
13
- }
14
- export declare const ColorSelector: React.FC<ColorSelectorProps>;
@@ -1,16 +0,0 @@
1
- import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
- import { useEffect, useState } from 'react';
3
- import { Avatar } from '../base/Avatar';
4
- import { Button } from '../base/Button';
5
- import { withFragment } from '../../withFragment';
6
- export const ColorSelector = withFragment(({ values, value: controlledValue, defaultValue, onValueChange, icon, ...rest }) => {
7
- const [value, setValue] = useState(defaultValue && values.includes(defaultValue) ? defaultValue : values[0]);
8
- useEffect(() => onValueChange(value), [value, onValueChange]);
9
- useEffect(() => {
10
- if (!controlledValue)
11
- return;
12
- setValue(controlledValue);
13
- }, [controlledValue]);
14
- return (_jsx("div", { className: "flex gap-3", children: values.map((color) => (_jsx(Button, { radius: "full", size: rest.size, isIconOnly: true, disableRipple: true, className: "overflow-visible", children: _jsx(Avatar, { showFallback: true, fallback: value === color && icon ? icon : _jsx(_Fragment, {}), style: { backgroundColor: color }, classNames: { base: 'shrink-0' }, isBordered: value === color, onClick: () => setValue(color), ...rest }) }))) }));
15
- }, 'colorSelector');
16
- //# sourceMappingURL=ColorSelector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ColorSelector.js","sourceRoot":"","sources":["../../../src/components/color-selector/ColorSelector.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAiBlD,MAAM,CAAC,MAAM,aAAa,GAAiC,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACzJ,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,YAAY,IAAI,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAE7G,SAAS,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC;IAE9D,SAAS,CAAC,GAAG,EAAE;QACb,IAAG,CAAC,eAAe;YAAE,OAAO;QAC5B,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC5B,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,OAAO,CACL,cAAK,SAAS,EAAC,YAAY,YACxB,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACrB,KAAC,MAAM,IAAC,MAAM,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,UAAU,QAAC,aAAa,QAAC,SAAS,EAAC,kBAAkB,YAC1F,KAAC,MAAM,IACL,YAAY,QACZ,QAAQ,EAAE,KAAK,KAAK,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,mBAAK,EAChD,KAAK,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,EACjC,UAAU,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAChC,UAAU,EAAE,KAAK,KAAK,KAAK,EAC3B,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,KAC1B,IAAI,GACR,GACK,CACV,CAAC,GACE,CACP,CAAC;AACJ,CAAC,EAAE,eAAe,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- import { ColorSelector } from './ColorSelector';
3
- declare const meta: Meta<typeof ColorSelector>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Primary: Story;
7
- export declare const WithIcon: Story;
8
- export declare const Small: Story;
@@ -1,35 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { ColorSelector } from './ColorSelector';
3
- import { IconCheck } from '@tabler/icons-react';
4
- // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
5
- const meta = {
6
- title: 'components/ColorSelector',
7
- component: ColorSelector,
8
- tags: ['autodocs'],
9
- };
10
- export default meta;
11
- // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
12
- export const Primary = {
13
- args: {
14
- values: ['red', 'green', 'blue'],
15
- onValueChange: console.log,
16
- color: 'primary',
17
- },
18
- };
19
- export const WithIcon = {
20
- args: {
21
- values: ['red', 'green', 'blue'],
22
- onValueChange: console.log,
23
- color: 'primary',
24
- icon: _jsx(IconCheck, { size: 24, stroke: 1.5 })
25
- },
26
- };
27
- export const Small = {
28
- args: {
29
- values: ['red', 'green', 'blue'],
30
- onValueChange: console.log,
31
- color: 'primary',
32
- size: 'sm',
33
- },
34
- };
35
- //# sourceMappingURL=ColorSelector.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ColorSelector.stories.js","sourceRoot":"","sources":["../../../src/components/color-selector/ColorSelector.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,qGAAqG;AACrG,MAAM,IAAI,GAA+B;IACvC,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,aAAa;IACxB,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,8FAA8F;AAC9F,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,MAAM,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QAChC,aAAa,EAAE,OAAO,CAAC,GAAG;QAC1B,KAAK,EAAE,SAAS;KACjB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE;QACJ,MAAM,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QAChC,aAAa,EAAE,OAAO,CAAC,GAAG;QAC1B,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,KAAC,SAAS,IAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,GAAI;KAC3C;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAU;IAC1B,IAAI,EAAE;QACJ,MAAM,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QAChC,aAAa,EAAE,OAAO,CAAC,GAAG;QAC1B,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,IAAI;KACX;CACF,CAAC"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Primary UI component for selecting a color
3
- */
4
- export interface GridProps {
5
- children: React.ReactNode;
6
- size: 'sm' | 'md' | 'lg';
7
- }
8
- export declare const Grid: React.FC<GridProps>;
@@ -1,28 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { tv } from 'tailwind-variants';
3
- const grid = tv({
4
- slots: {
5
- base: 'grid gap-6 grid-flow-row-dense',
6
- },
7
- variants: {
8
- size: {
9
- sm: {
10
- base: 'grid-cols-1'
11
- },
12
- md: {
13
- base: 'grid-cols-1 lg:grid-cols-2'
14
- },
15
- lg: {
16
- base: 'grid-cols-1 lg:grid-cols-2 2xl:grid-cols-3'
17
- }
18
- }
19
- },
20
- defaultVariants: {
21
- size: 'md',
22
- },
23
- });
24
- export const Grid = ({ children, ...props }) => {
25
- const { base } = grid(props);
26
- return _jsx("div", { className: base(), children: children });
27
- };
28
- //# sourceMappingURL=Grid.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Grid.js","sourceRoot":"","sources":["../../../src/components/grid/Grid.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAWvC,MAAM,IAAI,GAAG,EAAE,CAAC;IACd,KAAK,EAAE;QACL,IAAI,EAAE,gCAAgC;KACvC;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,EAAE,EAAE;gBACF,IAAI,EAAE,aAAa;aACpB;YACD,EAAE,EAAE;gBACF,IAAI,EAAE,4BAA4B;aACnC;YACD,EAAE,EAAE;gBACF,IAAI,EAAE,4CAA4C;aACnD;SACF;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,IAAI;KACX;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,IAAI,GAAwB,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAClE,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IAE7B,OAAO,cAAK,SAAS,EAAE,IAAI,EAAE,YAAG,QAAQ,GAAO,CAAC;AAClD,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- import { Grid } from './Grid';
3
- declare const meta: Meta<typeof Grid>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Small: Story;
7
- export declare const Medium: Story;
8
- export declare const Large: Story;
@@ -1,29 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Grid } from './Grid';
3
- // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
4
- const meta = {
5
- title: 'components/Grid',
6
- component: Grid,
7
- tags: ['autodocs'],
8
- };
9
- export default meta;
10
- // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
11
- export const Small = {
12
- args: {
13
- size: 'sm',
14
- children: (_jsxs(_Fragment, { children: [_jsx("div", { style: { backgroundColor: 'lightblue', height: '250px' } }), _jsx("div", { style: { backgroundColor: 'lightblue', height: '250px' } }), _jsx("div", { style: { backgroundColor: 'lightblue', height: '250px' } }), _jsx("div", { style: { backgroundColor: 'lightblue', height: '250px' } }), _jsx("div", { style: { backgroundColor: 'lightblue', height: '250px' } })] })),
15
- },
16
- };
17
- export const Medium = {
18
- args: {
19
- size: 'md',
20
- children: (_jsxs(_Fragment, { children: [_jsx("div", { style: { backgroundColor: 'lightblue', height: '250px' } }), _jsx("div", { style: { backgroundColor: 'lightblue', height: '250px' } }), _jsx("div", { style: { backgroundColor: 'lightblue', height: '250px' } }), _jsx("div", { style: { backgroundColor: 'lightblue', height: '250px' } }), _jsx("div", { style: { backgroundColor: 'lightblue', height: '250px' } })] })),
21
- },
22
- };
23
- export const Large = {
24
- args: {
25
- size: 'lg',
26
- children: (_jsxs(_Fragment, { children: [_jsx("div", { style: { backgroundColor: 'lightblue', height: '250px' } }), _jsx("div", { style: { backgroundColor: 'lightblue', height: '250px' } }), _jsx("div", { style: { backgroundColor: 'lightblue', height: '250px' } }), _jsx("div", { style: { backgroundColor: 'lightblue', height: '250px' } }), _jsx("div", { style: { backgroundColor: 'lightblue', height: '250px' } })] })),
27
- },
28
- };
29
- //# sourceMappingURL=Grid.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Grid.stories.js","sourceRoot":"","sources":["../../../src/components/grid/Grid.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,qGAAqG;AACrG,MAAM,IAAI,GAAsB;IAC9B,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,IAAI;IACf,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,8FAA8F;AAC9F,MAAM,CAAC,MAAM,KAAK,GAAU;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,CACR,8BACE,cAAK,KAAK,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAQ,EACrE,cAAK,KAAK,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAQ,EACrE,cAAK,KAAK,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAQ,EACrE,cAAK,KAAK,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAQ,EACrE,cAAK,KAAK,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAQ,IACpE,CACJ;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAU;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,CACR,8BACE,cAAK,KAAK,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAQ,EACrE,cAAK,KAAK,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAQ,EACrE,cAAK,KAAK,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAQ,EACrE,cAAK,KAAK,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAQ,EACrE,cAAK,KAAK,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAQ,IACpE,CACJ;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAU;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,CACR,8BACE,cAAK,KAAK,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAQ,EACrE,cAAK,KAAK,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAQ,EACrE,cAAK,KAAK,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAQ,EACrE,cAAK,KAAK,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAQ,EACrE,cAAK,KAAK,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAQ,IACpE,CACJ;KACF;CACF,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { ButtonGroupProps } from '@heroui/button';
2
- /**
3
- * Primary UI component for selecting a color
4
- */
5
- export interface MultiSwitchProps extends Omit<ButtonGroupProps, 'className'> {
6
- defaultValue?: number;
7
- onValueChange: (value: number) => void;
8
- }
9
- export declare const MultiSwitch: import("react").ForwardRefExoticComponent<Omit<MultiSwitchProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,31 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { forwardRef, useEffect, useState } from 'react';
3
- import { Button, ButtonGroup } from '../base/Button';
4
- import { withFragment } from '../../withFragment';
5
- import { IconCheck, IconSlash, IconX } from '@tabler/icons-react';
6
- import { tv } from 'tailwind-variants';
7
- const multiSwitch = tv({
8
- slots: {
9
- button: 'min-w-0',
10
- },
11
- variants: {
12
- size: {
13
- sm: {
14
- button: 'px-3'
15
- },
16
- md: {
17
- button: 'px-4'
18
- },
19
- lg: {
20
- button: 'px-5'
21
- }
22
- }
23
- },
24
- });
25
- export const MultiSwitch = withFragment(forwardRef(({ defaultValue, onValueChange, size = 'md', ...props }, ref) => {
26
- const [value, setValue] = useState(defaultValue ?? 0);
27
- const { button } = multiSwitch({ size });
28
- useEffect(() => onValueChange && onValueChange(value), [value, onValueChange]);
29
- return (_jsxs(_Fragment, { children: [_jsx("input", { ref: ref, value: value, type: "number", className: "hidden", min: 0, max: 2, required: true }), _jsxs(ButtonGroup, { size: size, ...props, children: [_jsx(Button, { className: button(), onPress: () => setValue(0), ...value === 0 ? { color: 'danger' } : {}, children: _jsx(IconX, { size: 20 }) }), _jsx(Button, { className: button(), onPress: () => setValue(1), ...value === 1 ? { color: 'default', variant: 'solid' } : {}, children: _jsx(IconSlash, { size: 20 }) }), _jsx(Button, { className: button(), onPress: () => setValue(2), ...value === 2 ? { color: 'success' } : {}, children: _jsx(IconCheck, { size: 20 }) })] })] }));
30
- }), 'multiSwitch');
31
- //# sourceMappingURL=MultiSwitch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MultiSwitch.js","sourceRoot":"","sources":["../../../src/components/multi-switch/MultiSwitch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAA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AE,IAAI,KAAM,KAAK,aAChC,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAM,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,YAAE,KAAC,KAAK,IAAC,IAAI,EAAE,EAAE,GAAI,GAAS,EACjI,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAM,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,YAAE,KAAC,SAAS,IAAC,IAAI,EAAE,EAAE,GAAI,GAAS,EACxJ,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAM,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,YAAE,KAAC,SAAS,IAAC,IAAI,EAAE,EAAE,GAAI,GAAS,IAC1H,IACb,CACJ,CAAC;AACJ,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- import { MultiSwitch } from './MultiSwitch';
3
- declare const meta: Meta<typeof MultiSwitch>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Small: Story;
7
- export declare const Medium: Story;
8
- export declare const Large: Story;