@fragment-build/ui 1.14.2 → 2.0.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.
- package/README.md +27 -22
- package/dist/components/base/Accordion.d.ts +2 -2
- package/dist/components/base/Accordion.js +3 -3
- package/dist/components/base/Accordion.js.map +1 -1
- package/dist/components/base/Alert.d.ts +1 -0
- package/dist/components/base/Alert.js +4 -0
- package/dist/components/base/Alert.js.map +1 -0
- package/dist/components/base/Autocomplete.d.ts +3 -3
- package/dist/components/base/Autocomplete.js +4 -4
- package/dist/components/base/Autocomplete.js.map +1 -1
- package/dist/components/base/Avatar.d.ts +2 -2
- package/dist/components/base/Avatar.js +3 -3
- package/dist/components/base/Avatar.js.map +1 -1
- package/dist/components/base/Badge.d.ts +1 -1
- package/dist/components/base/Badge.js +2 -2
- package/dist/components/base/Badge.js.map +1 -1
- package/dist/components/base/Breadcrumbs.d.ts +2 -2
- package/dist/components/base/Breadcrumbs.js +3 -3
- package/dist/components/base/Breadcrumbs.js.map +1 -1
- package/dist/components/base/Button.d.ts +2 -2
- package/dist/components/base/Button.js +3 -3
- package/dist/components/base/Button.js.map +1 -1
- package/dist/components/base/Calendar.d.ts +1 -0
- package/dist/components/base/Calendar.js +4 -0
- package/dist/components/base/Calendar.js.map +1 -0
- package/dist/components/base/Card.d.ts +2 -2
- package/dist/components/base/Card.js +3 -3
- package/dist/components/base/Card.js.map +1 -1
- package/dist/components/base/Checkbox.d.ts +2 -2
- package/dist/components/base/Checkbox.js +3 -3
- package/dist/components/base/Checkbox.js.map +1 -1
- package/dist/components/base/Chip.d.ts +1 -1
- package/dist/components/base/Chip.js +2 -2
- package/dist/components/base/Chip.js.map +1 -1
- package/dist/components/base/CircularProgress.d.ts +1 -1
- package/dist/components/base/CircularProgress.js +2 -2
- package/dist/components/base/CircularProgress.js.map +1 -1
- package/dist/components/base/Code.d.ts +1 -1
- package/dist/components/base/Code.js +2 -2
- package/dist/components/base/Code.js.map +1 -1
- package/dist/components/base/DateInput.d.ts +1 -0
- package/dist/components/base/DateInput.js +4 -0
- package/dist/components/base/DateInput.js.map +1 -0
- package/dist/components/base/DatePicker.d.ts +1 -0
- package/dist/components/base/DatePicker.js +4 -0
- package/dist/components/base/DatePicker.js.map +1 -0
- package/dist/components/base/DateRangePicker.d.ts +1 -0
- package/dist/components/base/DateRangePicker.js +4 -0
- package/dist/components/base/DateRangePicker.js.map +1 -0
- package/dist/components/base/Divider.d.ts +1 -1
- package/dist/components/base/Divider.js +2 -2
- package/dist/components/base/Divider.js.map +1 -1
- package/dist/components/base/Drawer.d.ts +8 -0
- package/dist/components/base/Drawer.js +8 -0
- package/dist/components/base/Drawer.js.map +1 -0
- package/dist/components/base/Dropdown.d.ts +8 -5
- package/dist/components/base/Dropdown.js +6 -6
- package/dist/components/base/Dropdown.js.map +1 -1
- package/dist/components/base/Form.d.ts +0 -0
- package/dist/components/base/Form.js +6 -0
- package/dist/components/base/Form.js.map +1 -0
- package/dist/components/base/Image.d.ts +1 -1
- package/dist/components/base/Image.js +2 -2
- package/dist/components/base/Image.js.map +1 -1
- package/dist/components/base/Input.d.ts +1 -1
- package/dist/components/base/Input.js +2 -2
- package/dist/components/base/Input.js.map +1 -1
- package/dist/components/base/InputOtp.d.ts +1 -0
- package/dist/components/base/InputOtp.js +4 -0
- package/dist/components/base/InputOtp.js.map +1 -0
- package/dist/components/base/Kbd.d.ts +1 -1
- package/dist/components/base/Kbd.js +2 -2
- package/dist/components/base/Kbd.js.map +1 -1
- package/dist/components/base/Link.d.ts +1 -1
- package/dist/components/base/Link.js +2 -2
- package/dist/components/base/Link.js.map +1 -1
- package/dist/components/base/Listbox.d.ts +3 -3
- package/dist/components/base/Listbox.js +4 -4
- package/dist/components/base/Listbox.js.map +1 -1
- package/dist/components/base/Modal.d.ts +8 -5
- package/dist/components/base/Modal.js +6 -6
- package/dist/components/base/Modal.js.map +1 -1
- package/dist/components/base/Navbar.d.ts +7 -7
- package/dist/components/base/Navbar.js +8 -8
- package/dist/components/base/Navbar.js.map +1 -1
- package/dist/components/base/NumberInput.d.ts +1 -0
- package/dist/components/base/NumberInput.js +4 -0
- package/dist/components/base/NumberInput.js.map +1 -0
- package/dist/components/base/Pagination.d.ts +3 -3
- package/dist/components/base/Pagination.js +4 -4
- package/dist/components/base/Pagination.js.map +1 -1
- package/dist/components/base/Popover.d.ts +234 -3
- package/dist/components/base/Popover.js +4 -4
- package/dist/components/base/Popover.js.map +1 -1
- package/dist/components/base/Progress.d.ts +1 -1
- package/dist/components/base/Progress.js +2 -2
- package/dist/components/base/Progress.js.map +1 -1
- package/dist/components/base/Radio.d.ts +2 -2
- package/dist/components/base/Radio.js +3 -3
- package/dist/components/base/Radio.js.map +1 -1
- package/dist/components/base/RangeCalendar.d.ts +1 -0
- package/dist/components/base/RangeCalendar.js +4 -0
- package/dist/components/base/RangeCalendar.js.map +1 -0
- package/dist/components/base/ScrollShadow.d.ts +1 -1
- package/dist/components/base/ScrollShadow.js +2 -2
- package/dist/components/base/ScrollShadow.js.map +1 -1
- package/dist/components/base/Select.d.ts +3 -3
- package/dist/components/base/Select.js +4 -4
- package/dist/components/base/Select.js.map +1 -1
- package/dist/components/base/Skeleton.d.ts +1 -1
- package/dist/components/base/Skeleton.js +2 -2
- package/dist/components/base/Skeleton.js.map +1 -1
- package/dist/components/base/Slider.d.ts +1 -1
- package/dist/components/base/Slider.js +2 -2
- package/dist/components/base/Slider.js.map +1 -1
- package/dist/components/base/Snippet.d.ts +1 -1
- package/dist/components/base/Snippet.js +2 -2
- package/dist/components/base/Snippet.js.map +1 -1
- package/dist/components/base/Spacer.d.ts +1 -1
- package/dist/components/base/Spacer.js +2 -2
- package/dist/components/base/Spacer.js.map +1 -1
- package/dist/components/base/Spinner.d.ts +1 -1
- package/dist/components/base/Spinner.js +2 -2
- package/dist/components/base/Spinner.js.map +1 -1
- package/dist/components/base/Switch.d.ts +1 -1
- package/dist/components/base/Switch.js +2 -2
- package/dist/components/base/Switch.js.map +1 -1
- package/dist/components/base/Table.d.ts +6 -6
- package/dist/components/base/Table.js +7 -7
- package/dist/components/base/Table.js.map +1 -1
- package/dist/components/base/Tabs.d.ts +2 -0
- package/dist/components/base/Tabs.js +5 -0
- package/dist/components/base/Tabs.js.map +1 -0
- package/dist/components/base/Textarea.d.ts +1 -1
- package/dist/components/base/Textarea.js +2 -2
- package/dist/components/base/Textarea.js.map +1 -1
- package/dist/components/base/TimeInput.d.ts +1 -0
- package/dist/components/base/TimeInput.js +4 -0
- package/dist/components/base/TimeInput.js.map +1 -0
- package/dist/components/base/Toast.d.ts +2 -0
- package/dist/components/base/Toast.js +5 -0
- package/dist/components/base/Toast.js.map +1 -0
- package/dist/components/base/Tooltip.d.ts +1 -1
- package/dist/components/base/Tooltip.js +2 -2
- package/dist/components/base/Tooltip.js.map +1 -1
- package/dist/components/base/User.d.ts +1 -1
- package/dist/components/base/User.js +2 -2
- package/dist/components/base/User.js.map +1 -1
- package/dist/components/base/index.d.ts +48 -37
- package/dist/components/base/index.js +48 -37
- package/dist/components/base/index.js.map +1 -1
- package/dist/components/chart/Chart.d.ts +2 -2
- package/dist/components/chart/Chart.js +4 -4
- package/dist/components/chart/Chart.stories.d.ts +2 -2
- package/dist/components/chart/Chart.stories.js +40 -40
- package/dist/components/color-input/ColorInput.d.ts +1 -1
- package/dist/components/color-input/ColorInput.js +1 -1
- package/dist/components/color-input/ColorInput.stories.d.ts +2 -2
- package/dist/components/color-input/ColorInput.stories.js +3 -3
- package/dist/components/color-selector/ColorSelector.d.ts +1 -1
- package/dist/components/color-selector/ColorSelector.js +1 -1
- package/dist/components/color-selector/ColorSelector.stories.d.ts +2 -2
- package/dist/components/color-selector/ColorSelector.stories.js +4 -4
- package/dist/components/grid/Grid.js +1 -1
- package/dist/components/grid/Grid.js.map +1 -1
- package/dist/components/grid/Grid.stories.d.ts +2 -2
- package/dist/components/grid/Grid.stories.js +3 -3
- package/dist/components/multi-switch/MultiSwitch.d.ts +1 -1
- package/dist/components/multi-switch/MultiSwitch.js +2 -2
- package/dist/components/multi-switch/MultiSwitch.js.map +1 -1
- package/dist/components/multi-switch/MultiSwitch.stories.d.ts +2 -2
- package/dist/components/multi-switch/MultiSwitch.stories.js +3 -3
- package/dist/components/theme-switch/ThemeSwitch.d.ts +1 -1
- package/dist/components/theme-switch/ThemeSwitch.js +1 -1
- package/dist/components/theme-switch/ThemeSwitch.stories.d.ts +2 -2
- package/dist/components/theme-switch/ThemeSwitch.stories.js +3 -3
- package/dist/context.d.ts +26 -8
- package/dist/context.js +48 -56
- package/dist/context.js.map +1 -1
- package/dist/fragments/form/Form.d.ts +2 -3
- package/dist/fragments/form/Form.js +7 -6
- package/dist/fragments/form/Form.js.map +1 -1
- package/dist/fragments/form/FormSection.d.ts +1 -1
- package/dist/fragments/form/FormSection.js +4 -3
- package/dist/fragments/form/FormSection.js.map +1 -1
- package/dist/fragments/form/FormSection.stories.d.ts +2 -2
- package/dist/fragments/form/FormSection.stories.js +3 -3
- package/dist/fragments/page/PageHeader.d.ts +1 -1
- package/dist/fragments/page/PageHeader.js +1 -1
- package/dist/fragments/page/PageHeader.js.map +1 -1
- package/dist/fragments/page/PageHeader.stories.d.ts +2 -2
- package/dist/fragments/page/PageHeader.stories.js +4 -4
- package/dist/fragments/shell/Shell.stories.d.ts +2 -2
- package/dist/fragments/shell/Shell.stories.js +90 -86
- package/dist/fragments/shell/Shell.stories.js.map +1 -1
- package/dist/fragments/sidebar/Sidebar.d.ts +1 -1
- package/dist/fragments/sidebar/Sidebar.js +7 -6
- package/dist/fragments/sidebar/Sidebar.js.map +1 -1
- package/dist/fragments/sidebar/Sidebar.stories.d.ts +2 -2
- package/dist/fragments/sidebar/Sidebar.stories.js +57 -53
- package/dist/fragments/sidebar/Sidebar.stories.js.map +1 -1
- package/dist/fragments/sidebar/Sidebar.styles.d.ts +2 -82
- package/dist/fragments/sidebar/Sidebar.styles.js +1 -4
- package/dist/fragments/sidebar/Sidebar.styles.js.map +1 -1
- package/dist/fragments/widget/Widget.js +121 -121
- package/dist/fragments/widget/Widget.js.map +1 -1
- package/dist/fragments/widget/Widget.stories.d.ts +2 -2
- package/dist/fragments/widget/Widget.stories.js +8 -8
- package/dist/fragments/widget/Widget.stories.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/provider.d.ts +3 -3
- package/dist/provider.js +6 -6
- package/dist/provider.js.map +1 -1
- package/dist/tailwind.plugin.d.ts +3 -11
- package/dist/tailwind.plugin.js +3 -20
- package/dist/tailwind.plugin.js.map +1 -1
- package/dist/withFragment.d.ts +1 -1
- package/dist/withFragment.js +4 -4
- package/package.json +26 -32
- package/dist/components/base/Tab.d.ts +0 -2
- package/dist/components/base/Tab.js +0 -5
- package/dist/components/base/Tab.js.map +0 -1
package/dist/context.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createContext } from
|
|
1
|
+
import { createContext } from 'react';
|
|
2
2
|
export const defaultContext = {
|
|
3
3
|
defaults: {
|
|
4
4
|
avatar: {
|
|
@@ -12,7 +12,7 @@ export const defaultContext = {
|
|
|
12
12
|
tabList: 'p-0',
|
|
13
13
|
panel: 'border-t-[1px] border-default-200 pt-6',
|
|
14
14
|
},
|
|
15
|
-
variant:
|
|
15
|
+
variant: 'underlined',
|
|
16
16
|
},
|
|
17
17
|
user: {
|
|
18
18
|
avatarProps: {
|
|
@@ -30,10 +30,10 @@ export const defaultContext = {
|
|
|
30
30
|
area: {
|
|
31
31
|
options: {
|
|
32
32
|
chart: {
|
|
33
|
-
height:
|
|
34
|
-
width:
|
|
35
|
-
type:
|
|
36
|
-
fontFamily:
|
|
33
|
+
height: '100%',
|
|
34
|
+
width: '100%',
|
|
35
|
+
type: 'area',
|
|
36
|
+
fontFamily: 'Inter, sans-serif',
|
|
37
37
|
dropShadow: {
|
|
38
38
|
enabled: false,
|
|
39
39
|
},
|
|
@@ -52,12 +52,12 @@ export const defaultContext = {
|
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
54
|
fill: {
|
|
55
|
-
type:
|
|
55
|
+
type: 'gradient',
|
|
56
56
|
gradient: {
|
|
57
57
|
opacityFrom: 0.55,
|
|
58
58
|
opacityTo: 0,
|
|
59
|
-
shade:
|
|
60
|
-
gradientToColors: [
|
|
59
|
+
shade: '#1C64F2',
|
|
60
|
+
gradientToColors: ['#1C64F2'],
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
dataLabels: {
|
|
@@ -97,7 +97,7 @@ export const defaultContext = {
|
|
|
97
97
|
type: 'line',
|
|
98
98
|
width: '100%',
|
|
99
99
|
height: '100%',
|
|
100
|
-
fontFamily:
|
|
100
|
+
fontFamily: 'Inter, sans-serif',
|
|
101
101
|
dropShadow: {
|
|
102
102
|
enabled: false,
|
|
103
103
|
},
|
|
@@ -143,7 +143,7 @@ export const defaultContext = {
|
|
|
143
143
|
labels: {
|
|
144
144
|
show: true,
|
|
145
145
|
style: {
|
|
146
|
-
fontFamily:
|
|
146
|
+
fontFamily: 'Inter, sans-serif',
|
|
147
147
|
cssClass: 'text-xs font-normal fill-gray-500 dark:fill-gray-400'
|
|
148
148
|
}
|
|
149
149
|
},
|
|
@@ -162,8 +162,8 @@ export const defaultContext = {
|
|
|
162
162
|
column: {
|
|
163
163
|
options: {
|
|
164
164
|
chart: {
|
|
165
|
-
type:
|
|
166
|
-
fontFamily:
|
|
165
|
+
type: 'bar',
|
|
166
|
+
fontFamily: 'Inter, sans-serif',
|
|
167
167
|
toolbar: {
|
|
168
168
|
show: false,
|
|
169
169
|
},
|
|
@@ -171,8 +171,8 @@ export const defaultContext = {
|
|
|
171
171
|
plotOptions: {
|
|
172
172
|
bar: {
|
|
173
173
|
horizontal: false,
|
|
174
|
-
columnWidth:
|
|
175
|
-
borderRadiusApplication:
|
|
174
|
+
columnWidth: '70%',
|
|
175
|
+
borderRadiusApplication: 'end',
|
|
176
176
|
borderRadius: 8,
|
|
177
177
|
},
|
|
178
178
|
},
|
|
@@ -181,15 +181,7 @@ export const defaultContext = {
|
|
|
181
181
|
shared: true,
|
|
182
182
|
intersect: false,
|
|
183
183
|
style: {
|
|
184
|
-
fontFamily:
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
states: {
|
|
188
|
-
hover: {
|
|
189
|
-
filter: {
|
|
190
|
-
type: "darken",
|
|
191
|
-
value: 1,
|
|
192
|
-
},
|
|
184
|
+
fontFamily: 'Inter, sans-serif',
|
|
193
185
|
},
|
|
194
186
|
},
|
|
195
187
|
grid: {
|
|
@@ -212,7 +204,7 @@ export const defaultContext = {
|
|
|
212
204
|
labels: {
|
|
213
205
|
show: true,
|
|
214
206
|
style: {
|
|
215
|
-
fontFamily:
|
|
207
|
+
fontFamily: 'Inter, sans-serif',
|
|
216
208
|
cssClass: 'text-xs font-normal fill-gray-500 dark:fill-gray-400'
|
|
217
209
|
}
|
|
218
210
|
},
|
|
@@ -237,8 +229,8 @@ export const defaultContext = {
|
|
|
237
229
|
sparkline: {
|
|
238
230
|
enabled: false,
|
|
239
231
|
},
|
|
240
|
-
type:
|
|
241
|
-
width:
|
|
232
|
+
type: 'bar',
|
|
233
|
+
width: '100%',
|
|
242
234
|
height: 400,
|
|
243
235
|
toolbar: {
|
|
244
236
|
show: false,
|
|
@@ -250,17 +242,17 @@ export const defaultContext = {
|
|
|
250
242
|
plotOptions: {
|
|
251
243
|
bar: {
|
|
252
244
|
horizontal: true,
|
|
253
|
-
columnWidth:
|
|
254
|
-
borderRadiusApplication:
|
|
245
|
+
columnWidth: '100%',
|
|
246
|
+
borderRadiusApplication: 'end',
|
|
255
247
|
borderRadius: 6,
|
|
256
248
|
dataLabels: {
|
|
257
|
-
position:
|
|
249
|
+
position: 'top',
|
|
258
250
|
},
|
|
259
251
|
},
|
|
260
252
|
},
|
|
261
253
|
legend: {
|
|
262
254
|
show: true,
|
|
263
|
-
position:
|
|
255
|
+
position: 'bottom',
|
|
264
256
|
},
|
|
265
257
|
dataLabels: {
|
|
266
258
|
enabled: false,
|
|
@@ -274,13 +266,13 @@ export const defaultContext = {
|
|
|
274
266
|
labels: {
|
|
275
267
|
show: true,
|
|
276
268
|
style: {
|
|
277
|
-
fontFamily:
|
|
269
|
+
fontFamily: 'Inter, sans-serif',
|
|
278
270
|
},
|
|
279
271
|
formatter: function (value) {
|
|
280
|
-
return
|
|
272
|
+
return '$' + value;
|
|
281
273
|
}
|
|
282
274
|
},
|
|
283
|
-
categories: [
|
|
275
|
+
categories: ['Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
|
284
276
|
axisTicks: {
|
|
285
277
|
show: false,
|
|
286
278
|
},
|
|
@@ -292,7 +284,7 @@ export const defaultContext = {
|
|
|
292
284
|
labels: {
|
|
293
285
|
show: true,
|
|
294
286
|
style: {
|
|
295
|
-
fontFamily:
|
|
287
|
+
fontFamily: 'Inter, sans-serif',
|
|
296
288
|
}
|
|
297
289
|
}
|
|
298
290
|
},
|
|
@@ -310,9 +302,9 @@ export const defaultContext = {
|
|
|
310
302
|
pie: {
|
|
311
303
|
options: {
|
|
312
304
|
chart: {
|
|
313
|
-
height:
|
|
314
|
-
width:
|
|
315
|
-
type:
|
|
305
|
+
height: '100%',
|
|
306
|
+
width: '100%',
|
|
307
|
+
type: 'pie',
|
|
316
308
|
},
|
|
317
309
|
stroke: {
|
|
318
310
|
width: 5,
|
|
@@ -328,7 +320,7 @@ export const defaultContext = {
|
|
|
328
320
|
dataLabels: {
|
|
329
321
|
enabled: true,
|
|
330
322
|
style: {
|
|
331
|
-
fontFamily:
|
|
323
|
+
fontFamily: 'Inter, sans-serif',
|
|
332
324
|
},
|
|
333
325
|
background: {
|
|
334
326
|
enabled: true,
|
|
@@ -344,8 +336,8 @@ export const defaultContext = {
|
|
|
344
336
|
}
|
|
345
337
|
},
|
|
346
338
|
legend: {
|
|
347
|
-
position:
|
|
348
|
-
fontFamily:
|
|
339
|
+
position: 'bottom',
|
|
340
|
+
fontFamily: 'Inter, sans-serif',
|
|
349
341
|
},
|
|
350
342
|
xaxis: {
|
|
351
343
|
axisTicks: {
|
|
@@ -360,9 +352,9 @@ export const defaultContext = {
|
|
|
360
352
|
donut: {
|
|
361
353
|
options: {
|
|
362
354
|
chart: {
|
|
363
|
-
height:
|
|
364
|
-
width:
|
|
365
|
-
type:
|
|
355
|
+
height: '100%',
|
|
356
|
+
width: '100%',
|
|
357
|
+
type: 'donut',
|
|
366
358
|
},
|
|
367
359
|
stroke: {
|
|
368
360
|
width: 5,
|
|
@@ -374,21 +366,21 @@ export const defaultContext = {
|
|
|
374
366
|
show: true,
|
|
375
367
|
name: {
|
|
376
368
|
show: true,
|
|
377
|
-
fontFamily:
|
|
369
|
+
fontFamily: 'Inter, sans-serif',
|
|
378
370
|
offsetY: 20,
|
|
379
371
|
},
|
|
380
372
|
total: {
|
|
381
373
|
showAlways: true,
|
|
382
374
|
show: true,
|
|
383
|
-
fontFamily:
|
|
375
|
+
fontFamily: 'Inter, sans-serif',
|
|
384
376
|
},
|
|
385
377
|
value: {
|
|
386
378
|
show: true,
|
|
387
|
-
fontFamily:
|
|
379
|
+
fontFamily: 'Inter, sans-serif',
|
|
388
380
|
offsetY: -20,
|
|
389
381
|
},
|
|
390
382
|
},
|
|
391
|
-
size:
|
|
383
|
+
size: '80%',
|
|
392
384
|
},
|
|
393
385
|
},
|
|
394
386
|
},
|
|
@@ -401,8 +393,8 @@ export const defaultContext = {
|
|
|
401
393
|
enabled: false,
|
|
402
394
|
},
|
|
403
395
|
legend: {
|
|
404
|
-
position:
|
|
405
|
-
fontFamily:
|
|
396
|
+
position: 'bottom',
|
|
397
|
+
fontFamily: 'Inter, sans-serif',
|
|
406
398
|
},
|
|
407
399
|
xaxis: {
|
|
408
400
|
axisTicks: {
|
|
@@ -417,9 +409,9 @@ export const defaultContext = {
|
|
|
417
409
|
radial: {
|
|
418
410
|
options: {
|
|
419
411
|
chart: {
|
|
420
|
-
height:
|
|
421
|
-
width:
|
|
422
|
-
type:
|
|
412
|
+
height: '100%',
|
|
413
|
+
width: '100%',
|
|
414
|
+
type: 'radialBar',
|
|
423
415
|
sparkline: {
|
|
424
416
|
enabled: true,
|
|
425
417
|
},
|
|
@@ -434,7 +426,7 @@ export const defaultContext = {
|
|
|
434
426
|
},
|
|
435
427
|
hollow: {
|
|
436
428
|
margin: 0,
|
|
437
|
-
size:
|
|
429
|
+
size: '32%',
|
|
438
430
|
}
|
|
439
431
|
},
|
|
440
432
|
},
|
|
@@ -450,8 +442,8 @@ export const defaultContext = {
|
|
|
450
442
|
},
|
|
451
443
|
legend: {
|
|
452
444
|
show: true,
|
|
453
|
-
position:
|
|
454
|
-
fontFamily:
|
|
445
|
+
position: 'bottom',
|
|
446
|
+
fontFamily: 'Inter, sans-serif',
|
|
455
447
|
},
|
|
456
448
|
tooltip: {
|
|
457
449
|
theme: 'dark',
|
package/dist/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAsGtC,MAAM,CAAC,MAAM,cAAc,GAAsB;IAC/C,QAAQ,EAAE;QACR,MAAM,EAAE;YACN,MAAM,EAAE,MAAM;SACf;QACD,KAAK,EAAE;YACL,aAAa,EAAE,IAAI;SACpB;QACD,IAAI,EAAE;YACJ,UAAU,EAAE;gBACV,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,wCAAwC;aAChD;YACD,OAAO,EAAE,YAAY;SACtB;QACD,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,MAAM,EAAE,MAAM;aACf;SACF;QACD,WAAW,EAAE;YACX,OAAO,EAAE,MAAM;SAChB;QACD,MAAM,EAAE;YACN,OAAO,EAAE,MAAM;YACf,MAAM,EAAE,IAA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BACD,MAAM,EAAE;wBACN,IAAI,EAAE,IAAI;wBACV,QAAQ,EAAE,QAAQ;wBAClB,UAAU,EAAE,mBAAmB;qBAChC;oBACD,OAAO,EAAE;wBACP,KAAK,EAAE,MAAM;wBACb,OAAO,EAAE,IAAI;wBACb,CAAC,EAAE;4BACD,IAAI,EAAE,KAAK;yBACZ;qBACF;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,KAAK;qBACZ;iBACF;aACF;SACF;QACD,UAAU,EAAE;YACV,OAAO,EAAE,OAAO;SACjB;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Primary UI component for Form Sections
|
|
3
3
|
*/
|
|
4
|
-
import React from
|
|
5
|
-
interface FormProps extends React.FormHTMLAttributes<HTMLFormElement> {
|
|
4
|
+
import React from 'react';
|
|
5
|
+
export interface FormProps extends React.FormHTMLAttributes<HTMLFormElement> {
|
|
6
6
|
children: React.ReactNode[];
|
|
7
7
|
}
|
|
8
8
|
export declare const Form: React.FC<FormProps>;
|
|
9
|
-
export {};
|
|
@@ -2,16 +2,17 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
/**
|
|
3
3
|
* Primary UI component for Form Sections
|
|
4
4
|
*/
|
|
5
|
-
import React from
|
|
6
|
-
import { tv } from
|
|
7
|
-
import { Divider } from
|
|
5
|
+
import React, { isValidElement } from 'react';
|
|
6
|
+
import { tv } from '@heroui/react';
|
|
7
|
+
import { Divider } from '../../components';
|
|
8
|
+
import { withFragment } from '../../withFragment';
|
|
8
9
|
const form = tv({
|
|
9
10
|
slots: {
|
|
10
11
|
divider: 'my-6',
|
|
11
12
|
},
|
|
12
13
|
});
|
|
13
|
-
export const Form = ({ children, ...props }) => {
|
|
14
|
+
export const Form = withFragment(({ children, ...props }) => {
|
|
14
15
|
const v = form();
|
|
15
|
-
return (_jsx("form", { ...props, children: children.map((child, index) => index === 0 ? child : (_jsxs(React.Fragment, { children: [_jsx(Divider, { className: v.divider() }), child] }, index))) }));
|
|
16
|
-
};
|
|
16
|
+
return (_jsx("form", { ...props, children: children.filter(isValidElement).map((child, index) => index === 0 ? child : (_jsxs(React.Fragment, { children: [_jsx(Divider, { className: v.divider() }), child] }, index))) }));
|
|
17
|
+
}, 'form');
|
|
17
18
|
//# sourceMappingURL=Form.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.js","sourceRoot":"","sources":["../../../src/fragments/form/Form.tsx"],"names":[],"mappings":";AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Form.js","sourceRoot":"","sources":["../../../src/fragments/form/Form.tsx"],"names":[],"mappings":";AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMlD,MAAM,IAAI,GAAG,EAAE,CAAC;IACd,KAAK,EAAE;QACL,OAAO,EAAE,MAAM;KAChB;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,IAAI,GAAwB,YAAY,CAAC,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC/E,MAAM,CAAC,GAAG,IAAI,EAAE,CAAC;IAEjB,OAAO,CACL,kBAAU,KAAK,YACZ,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAC3E,MAAC,KAAK,CAAC,QAAQ,eACb,KAAC,OAAO,IAAC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,GAAI,EAClC,KAAK,KAFa,KAAK,CAGT,CAClB,CAAC,GACG,CACR,CAAC;AACJ,CAAC,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { tv } from
|
|
2
|
+
import { tv } from '@heroui/react';
|
|
3
|
+
import { withFragment } from '../../withFragment';
|
|
3
4
|
const formSection = tv({
|
|
4
5
|
slots: {
|
|
5
6
|
base: '',
|
|
@@ -30,8 +31,8 @@ const formSection = tv({
|
|
|
30
31
|
fullWidth: false,
|
|
31
32
|
},
|
|
32
33
|
});
|
|
33
|
-
export const FormSection = ({ children, title, description, ...props }) => {
|
|
34
|
+
export const FormSection = withFragment(({ children, title, description, ...props }) => {
|
|
34
35
|
const v = formSection(props);
|
|
35
36
|
return (_jsx("div", { className: v.base(), children: _jsxs("div", { className: v.main(), children: [_jsxs("div", { className: v.info(), children: [_jsx("h3", { children: title }), _jsx("div", { className: v.description(), children: description })] }), _jsx("div", { className: v.content(), children: children })] }) }));
|
|
36
|
-
};
|
|
37
|
+
}, 'formSection');
|
|
37
38
|
//# sourceMappingURL=FormSection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormSection.js","sourceRoot":"","sources":["../../../src/fragments/form/FormSection.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FormSection.js","sourceRoot":"","sources":["../../../src/fragments/form/FormSection.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAUlD,MAAM,WAAW,GAAG,EAAE,CAAC;IACrB,KAAK,EAAE;QACL,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,oCAAoC;QAC7C,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,gCAAgC;KAC9C;IACD,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,UAAU,EAAE;gBACV,IAAI,EAAE,aAAa;gBACnB,OAAO,EAAE,4CAA4C;gBACrD,IAAI,EAAE,6BAA6B;aACpC;YACD,QAAQ,EAAE;gBACR,OAAO,EAAE,cAAc;aACxB;SACF;QACD,SAAS,EAAE;YACT,IAAI,EAAE;gBACJ,OAAO,EAAE,eAAe;aACzB;SACF;KACF;IACD,eAAe,EAAE;QACf,SAAS,EAAE,UAAU;QACrB,SAAS,EAAE,KAAK;KACjB;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAA+B,YAAY,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACjH,MAAM,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;IAE7B,OAAO,CACL,cAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,YACtB,eAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,aACtB,eAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,aACtB,uBAAK,KAAK,GAAM,EAChB,cAAK,SAAS,EAAE,CAAC,CAAC,WAAW,EAAE,YAAG,WAAW,GAAO,IAChD,EACN,cAAK,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,YACxB,QAAQ,GACL,IACF,GACF,CACP,CAAC;AACJ,CAAC,EAAE,aAAa,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from
|
|
2
|
-
import { FormSection } from
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { FormSection } from './FormSection';
|
|
3
3
|
declare const meta: Meta<typeof FormSection>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { FormSection } from
|
|
3
|
-
import { Input, Switch } from
|
|
2
|
+
import { FormSection } from './FormSection';
|
|
3
|
+
import { Input, Switch } from '../../components';
|
|
4
4
|
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
|
|
5
5
|
const meta = {
|
|
6
|
-
title:
|
|
6
|
+
title: 'fragments/FormSection',
|
|
7
7
|
component: FormSection,
|
|
8
8
|
tags: ['autodocs'],
|
|
9
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeader.js","sourceRoot":"","sources":["../../../src/fragments/page/PageHeader.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PageHeader.js","sourceRoot":"","sources":["../../../src/fragments/page/PageHeader.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAQnC,MAAM,UAAU,GAAG,EAAE,CAAC;IACpB,KAAK,EAAE;QACL,IAAI,EAAE,mEAAmE;QACzE,WAAW,EAAE,2BAA2B;QACxC,OAAO,EAAE,YAAY;KACtB;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAA8B,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAClG,MAAM,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IAE5B,OAAO,CACL,kBAAQ,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,aACzB,0BACE,uBAAK,KAAK,GAAM,EACf,WAAW,IAAI,YAAG,SAAS,EAAE,CAAC,CAAC,WAAW,EAAE,YAAG,WAAW,GAAK,IAC5D,EACN,cAAK,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,YAAG,QAAQ,GAAO,IACtC,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from
|
|
2
|
-
import { PageHeader } from
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { PageHeader } from './PageHeader';
|
|
3
3
|
declare const meta: Meta<typeof PageHeader>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { PageHeader } from
|
|
3
|
-
import { Button } from
|
|
4
|
-
import { IconPlus, IconTrash } from
|
|
2
|
+
import { PageHeader } from './PageHeader';
|
|
3
|
+
import { Button } from '../../components';
|
|
4
|
+
import { IconPlus, IconTrash } from '@tabler/icons-react';
|
|
5
5
|
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
|
|
6
6
|
const meta = {
|
|
7
|
-
title:
|
|
7
|
+
title: 'fragments/PageHeader',
|
|
8
8
|
component: PageHeader,
|
|
9
9
|
tags: ['autodocs'],
|
|
10
10
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from
|
|
2
|
-
import { Shell } from
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Shell } from './Shell';
|
|
3
3
|
declare const meta: Meta<typeof Shell>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|