@g4rcez/components 4.0.1 → 4.1.1
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/ai/SKILL.md +233 -0
- package/ai/docs/Alert.md +166 -0
- package/ai/docs/AnimatedList.md +206 -0
- package/ai/docs/Autocomplete.md +221 -0
- package/ai/docs/Button.md +182 -0
- package/ai/docs/Calendar.md +185 -0
- package/ai/docs/Card.md +178 -0
- package/ai/docs/Checkbox.md +194 -0
- package/ai/docs/CommandPalette.md +275 -0
- package/ai/docs/DatePicker.md +152 -0
- package/ai/docs/Dropdown.md +195 -0
- package/{dist/ai → ai}/docs/Empty.md +41 -44
- package/{dist/ai → ai}/docs/Expand.md +40 -54
- package/ai/docs/FileUpload.md +218 -0
- package/{dist/ai → ai}/docs/Form.md +35 -29
- package/{dist/ai → ai}/docs/FormReset.md +37 -37
- package/{dist/ai → ai}/docs/Heading.md +4 -6
- package/ai/docs/Input.md +212 -0
- package/ai/docs/InputField.md +170 -0
- package/ai/docs/List.md +208 -0
- package/ai/docs/Menu.md +168 -0
- package/ai/docs/Modal.md +273 -0
- package/ai/docs/MultiSelect.md +177 -0
- package/ai/docs/Notifications.md +231 -0
- package/ai/docs/PageCalendar.md +262 -0
- package/{dist/ai → ai}/docs/Polymorph.md +25 -41
- package/{dist/ai → ai}/docs/Progress.md +55 -51
- package/{dist/ai → ai}/docs/Radiobox.md +49 -41
- package/{dist/ai → ai}/docs/RenderOnView.md +26 -32
- package/{dist/ai → ai}/docs/Resizable.md +60 -65
- package/ai/docs/Select.md +284 -0
- package/{dist/ai → ai}/docs/Shortcut.md +14 -14
- package/{dist/ai → ai}/docs/Skeleton.md +56 -60
- package/{dist/ai → ai}/docs/Slider.md +26 -49
- package/{dist/ai → ai}/docs/Slot.md +15 -17
- package/{dist/ai → ai}/docs/Spinner.md +17 -15
- package/{dist/ai → ai}/docs/Stats.md +44 -42
- package/ai/docs/Step.md +159 -0
- package/{dist/ai → ai}/docs/Switch.md +44 -54
- package/ai/docs/Table.md +286 -0
- package/ai/docs/Tabs.md +191 -0
- package/ai/docs/Tag.md +222 -0
- package/{dist/ai → ai}/docs/TaskList.md +40 -50
- package/ai/docs/Textarea.md +144 -0
- package/ai/docs/Timeline.md +212 -0
- package/{dist/ai → ai}/docs/Toolbar.md +46 -46
- package/ai/docs/Tooltip.md +231 -0
- package/ai/docs/Typography.md +187 -0
- package/ai/docs/Wizard.md +208 -0
- package/ai/docs/index.md +183 -0
- package/dist/autocomplete-DcTNOwyg.js +393 -0
- package/dist/autocomplete-DcTNOwyg.js.map +1 -0
- package/dist/{calendar-B5lSd0ID.js → calendar-BJMHRoy2.js} +104 -105
- package/dist/calendar-BJMHRoy2.js.map +1 -0
- package/dist/components/core/button.js +10 -10
- package/dist/components/core/button.js.map +1 -1
- package/dist/components/core/tag.js +4 -4
- package/dist/components/core/tag.js.map +1 -1
- package/dist/components/display/alert.js +48 -46
- package/dist/components/display/alert.js.map +1 -1
- package/dist/components/display/calendar.js +6 -6
- package/dist/components/display/card.js +2 -2
- package/dist/components/display/card.js.map +1 -1
- package/dist/components/display/list.js +1 -1
- package/dist/components/display/list.js.map +1 -1
- package/dist/components/display/notifications.js +3 -3
- package/dist/components/display/stats.js +1 -1
- package/dist/components/display/tabs.js +2 -2
- package/dist/components/display/timeline.js +1 -1
- package/dist/components/floating/dropdown.js +25 -17
- package/dist/components/floating/dropdown.js.map +1 -1
- package/dist/components/floating/expand.js +7 -7
- package/dist/components/floating/expand.js.map +1 -1
- package/dist/components/floating/menu.js +10 -10
- package/dist/components/floating/menu.js.map +1 -1
- package/dist/components/floating/modal.js +106 -102
- package/dist/components/floating/modal.js.map +1 -1
- package/dist/components/floating/tooltip.js +14 -14
- package/dist/components/floating/tooltip.js.map +1 -1
- package/dist/components/form/autocomplete.js +6 -6
- package/dist/components/form/checkbox.js +1 -1
- package/dist/components/form/date-picker.js +5 -5
- package/dist/components/form/file-upload.js +2 -2
- package/dist/components/form/form.js.map +1 -1
- package/dist/components/form/input.js +1 -1
- package/dist/components/form/radiobox.js +1 -1
- package/dist/components/form/select.js +3 -3
- package/dist/components/form/switch.js +2 -2
- package/dist/components/form/switch.js.map +1 -1
- package/dist/components/table/table.js +3 -3
- package/dist/{date-picker-DwNo22lx.js → date-picker-Bnl07nd8.js} +8 -6
- package/dist/date-picker-Bnl07nd8.js.map +1 -0
- package/dist/{dom-Dl8XH0CK.js → dom-CyQHY7ID.js} +66 -61
- package/dist/dom-CyQHY7ID.js.map +1 -0
- package/dist/{file-upload-Brf2NkLr.js → file-upload-93d5DR4q.js} +139 -129
- package/dist/file-upload-93d5DR4q.js.map +1 -0
- package/dist/{floating-ui.react-QNHG9W4N.js → floating-ui.react-M2PGXLDp.js} +8 -8
- package/dist/floating-ui.react-M2PGXLDp.js.map +1 -0
- package/dist/{fns-D2eyJKd5.js → fns-C7Dt27Qd.js} +2 -2
- package/dist/fns-C7Dt27Qd.js.map +1 -0
- package/dist/index-BJ1ayTam.js +126 -0
- package/dist/index-BJ1ayTam.js.map +1 -0
- package/dist/index-C-PuFUZi.js.map +1 -1
- package/dist/{index-BelDtX5M.js → index-DDeQW0JW.js} +399 -404
- package/dist/index-DDeQW0JW.js.map +1 -0
- package/dist/index-DE4shK8D.js +215 -0
- package/dist/index-DE4shK8D.js.map +1 -0
- package/dist/{index-DJSMaZR4.js → index-DlJ_2RBL.js} +2 -2
- package/dist/index-DlJ_2RBL.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.esm-BaIwleSE.js.map +1 -1
- package/dist/index.js +2826 -2765
- package/dist/index.js.map +1 -1
- package/dist/{input-CrGrSnUt.js → input-_MVxmIpu.js} +116 -114
- package/dist/input-_MVxmIpu.js.map +1 -0
- package/dist/{input-field-5vYcz5tT.js → input-field-CDCOODOl.js} +63 -47
- package/dist/input-field-CDCOODOl.js.map +1 -0
- package/dist/notifications-Dp0ydKJS.js +2576 -0
- package/dist/notifications-Dp0ydKJS.js.map +1 -0
- package/dist/polymorph-B5n9fs_K.js.map +1 -1
- package/dist/preset/plugin.tailwind.d.ts.map +1 -1
- package/dist/preset/plugin.tailwind.js +20 -18
- package/dist/preset/preset.tailwind.js +24 -25
- package/dist/preset/src/styles/common.js +6 -3
- package/dist/preset/src/styles/dark.d.ts.map +1 -1
- package/dist/preset/src/styles/dark.js +9 -5
- package/dist/preset/src/styles/design-tokens.js +68 -89
- package/dist/preset/src/styles/light.d.ts.map +1 -1
- package/dist/preset/src/styles/light.js +9 -5
- package/dist/preset/src/styles/theme.js +7 -4
- package/dist/preset/src/styles/theme.types.d.ts +2 -1
- package/dist/preset/src/styles/theme.types.d.ts.map +1 -1
- package/dist/preset/src/styles/theme.types.js +2 -1
- package/dist/skeleton-BjJobYYf.js +24 -0
- package/dist/skeleton-BjJobYYf.js.map +1 -0
- package/dist/slot-CRyweuj0.js.map +1 -1
- package/dist/styles/common.js +6 -3
- package/dist/styles/dark.d.ts.map +1 -1
- package/dist/styles/dark.js +9 -5
- package/dist/styles/design-tokens.js +68 -89
- package/dist/styles/light.d.ts.map +1 -1
- package/dist/styles/light.js +9 -5
- package/dist/styles/theme.js +7 -4
- package/dist/styles/theme.types.d.ts +2 -1
- package/dist/styles/theme.types.d.ts.map +1 -1
- package/dist/styles/theme.types.js +2 -1
- package/dist/tabs-B0g7YtQv.js +123 -0
- package/dist/tabs-B0g7YtQv.js.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -0
- package/dist/{context-BFXNJVn2.js → use-translations-DSltA7H_.js} +38 -30
- package/dist/use-translations-DSltA7H_.js.map +1 -0
- package/package.json +101 -88
- package/dist/ai/SKILL.md +0 -266
- package/dist/ai/docs/Alert.md +0 -167
- package/dist/ai/docs/AnimatedList.md +0 -205
- package/dist/ai/docs/Autocomplete.md +0 -225
- package/dist/ai/docs/Button.md +0 -182
- package/dist/ai/docs/Calendar.md +0 -219
- package/dist/ai/docs/Card.md +0 -174
- package/dist/ai/docs/Checkbox.md +0 -199
- package/dist/ai/docs/CommandPalette.md +0 -293
- package/dist/ai/docs/DatePicker.md +0 -171
- package/dist/ai/docs/Dropdown.md +0 -223
- package/dist/ai/docs/FileUpload.md +0 -225
- package/dist/ai/docs/Input.md +0 -237
- package/dist/ai/docs/InputField.md +0 -170
- package/dist/ai/docs/List.md +0 -205
- package/dist/ai/docs/Menu.md +0 -166
- package/dist/ai/docs/Modal.md +0 -280
- package/dist/ai/docs/MultiSelect.md +0 -196
- package/dist/ai/docs/Notifications.md +0 -231
- package/dist/ai/docs/PageCalendar.md +0 -271
- package/dist/ai/docs/Select.md +0 -284
- package/dist/ai/docs/Step.md +0 -159
- package/dist/ai/docs/Table.md +0 -298
- package/dist/ai/docs/Tabs.md +0 -191
- package/dist/ai/docs/Tag.md +0 -224
- package/dist/ai/docs/Textarea.md +0 -167
- package/dist/ai/docs/Timeline.md +0 -210
- package/dist/ai/docs/Tooltip.md +0 -231
- package/dist/ai/docs/TransferList.md +0 -142
- package/dist/ai/docs/Typography.md +0 -187
- package/dist/ai/docs/Wizard.md +0 -213
- package/dist/ai/docs/index.md +0 -183
- package/dist/autocomplete-Cn9Z2hLq.js +0 -375
- package/dist/autocomplete-Cn9Z2hLq.js.map +0 -1
- package/dist/calendar-B5lSd0ID.js.map +0 -1
- package/dist/components/core/button.d.ts +0 -77
- package/dist/components/core/button.d.ts.map +0 -1
- package/dist/components/core/heading.d.ts +0 -3
- package/dist/components/core/heading.d.ts.map +0 -1
- package/dist/components/core/polymorph.d.ts +0 -10
- package/dist/components/core/polymorph.d.ts.map +0 -1
- package/dist/components/core/render-on-view.d.ts +0 -7
- package/dist/components/core/render-on-view.d.ts.map +0 -1
- package/dist/components/core/resizable.d.ts +0 -3
- package/dist/components/core/resizable.d.ts.map +0 -1
- package/dist/components/core/slot.d.ts +0 -16
- package/dist/components/core/slot.d.ts.map +0 -1
- package/dist/components/core/tag.d.ts +0 -35
- package/dist/components/core/tag.d.ts.map +0 -1
- package/dist/components/core/typography.d.ts +0 -24
- package/dist/components/core/typography.d.ts.map +0 -1
- package/dist/components/display/alert.d.ts +0 -28
- package/dist/components/display/alert.d.ts.map +0 -1
- package/dist/components/display/calendar.d.ts +0 -42
- package/dist/components/display/calendar.d.ts.map +0 -1
- package/dist/components/display/card.d.ts +0 -29
- package/dist/components/display/card.d.ts.map +0 -1
- package/dist/components/display/empty.d.ts +0 -8
- package/dist/components/display/empty.d.ts.map +0 -1
- package/dist/components/display/list.d.ts +0 -16
- package/dist/components/display/list.d.ts.map +0 -1
- package/dist/components/display/notifications.d.ts +0 -27
- package/dist/components/display/notifications.d.ts.map +0 -1
- package/dist/components/display/progress.d.ts +0 -13
- package/dist/components/display/progress.d.ts.map +0 -1
- package/dist/components/display/shortcut.d.ts +0 -4
- package/dist/components/display/shortcut.d.ts.map +0 -1
- package/dist/components/display/skeleton.d.ts +0 -12
- package/dist/components/display/skeleton.d.ts.map +0 -1
- package/dist/components/display/spinner.d.ts +0 -5
- package/dist/components/display/spinner.d.ts.map +0 -1
- package/dist/components/display/stats.d.ts +0 -12
- package/dist/components/display/stats.d.ts.map +0 -1
- package/dist/components/display/step.d.ts +0 -24
- package/dist/components/display/step.d.ts.map +0 -1
- package/dist/components/display/tabs.d.ts +0 -24
- package/dist/components/display/tabs.d.ts.map +0 -1
- package/dist/components/display/timeline.d.ts +0 -10
- package/dist/components/display/timeline.d.ts.map +0 -1
- package/dist/components/floating/command-palette.d.ts +0 -49
- package/dist/components/floating/command-palette.d.ts.map +0 -1
- package/dist/components/floating/dropdown.d.ts +0 -15
- package/dist/components/floating/dropdown.d.ts.map +0 -1
- package/dist/components/floating/expand.d.ts +0 -11
- package/dist/components/floating/expand.d.ts.map +0 -1
- package/dist/components/floating/menu.d.ts +0 -52
- package/dist/components/floating/menu.d.ts.map +0 -1
- package/dist/components/floating/modal.d.ts +0 -60
- package/dist/components/floating/modal.d.ts.map +0 -1
- package/dist/components/floating/toolbar.d.ts +0 -6
- package/dist/components/floating/toolbar.d.ts.map +0 -1
- package/dist/components/floating/tooltip.d.ts +0 -17
- package/dist/components/floating/tooltip.d.ts.map +0 -1
- package/dist/components/floating/wizard.d.ts +0 -26
- package/dist/components/floating/wizard.d.ts.map +0 -1
- package/dist/components/form/autocomplete.d.ts +0 -16
- package/dist/components/form/autocomplete.d.ts.map +0 -1
- package/dist/components/form/checkbox.d.ts +0 -12
- package/dist/components/form/checkbox.d.ts.map +0 -1
- package/dist/components/form/date-picker.d.ts +0 -10
- package/dist/components/form/date-picker.d.ts.map +0 -1
- package/dist/components/form/file-upload.d.ts +0 -15
- package/dist/components/form/file-upload.d.ts.map +0 -1
- package/dist/components/form/form.d.ts +0 -3
- package/dist/components/form/form.d.ts.map +0 -1
- package/dist/components/form/formReset.d.ts +0 -2
- package/dist/components/form/formReset.d.ts.map +0 -1
- package/dist/components/form/free-text.d.ts +0 -11
- package/dist/components/form/free-text.d.ts.map +0 -1
- package/dist/components/form/input-field.d.ts +0 -34
- package/dist/components/form/input-field.d.ts.map +0 -1
- package/dist/components/form/input.d.ts +0 -52
- package/dist/components/form/input.d.ts.map +0 -1
- package/dist/components/form/multi-select.d.ts +0 -19
- package/dist/components/form/multi-select.d.ts.map +0 -1
- package/dist/components/form/radiobox.d.ts +0 -7
- package/dist/components/form/radiobox.d.ts.map +0 -1
- package/dist/components/form/select.d.ts +0 -13
- package/dist/components/form/select.d.ts.map +0 -1
- package/dist/components/form/slider.d.ts +0 -7
- package/dist/components/form/slider.d.ts.map +0 -1
- package/dist/components/form/switch.d.ts +0 -9
- package/dist/components/form/switch.d.ts.map +0 -1
- package/dist/components/form/task-list.d.ts +0 -3
- package/dist/components/form/task-list.d.ts.map +0 -1
- package/dist/components/form/textarea.d.ts +0 -6
- package/dist/components/form/textarea.d.ts.map +0 -1
- package/dist/components/form/transfer-list.d.ts +0 -14
- package/dist/components/form/transfer-list.d.ts.map +0 -1
- package/dist/components/form/transfer-list.js +0 -55
- package/dist/components/form/transfer-list.js.map +0 -1
- package/dist/components/index.d.ts +0 -46
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/page-calendar/calendar-header.d.ts +0 -16
- package/dist/components/page-calendar/calendar-header.d.ts.map +0 -1
- package/dist/components/page-calendar/day-view.d.ts +0 -12
- package/dist/components/page-calendar/day-view.d.ts.map +0 -1
- package/dist/components/page-calendar/event-pill.d.ts +0 -9
- package/dist/components/page-calendar/event-pill.d.ts.map +0 -1
- package/dist/components/page-calendar/index.d.ts +0 -4
- package/dist/components/page-calendar/index.d.ts.map +0 -1
- package/dist/components/page-calendar/month-view.d.ts +0 -11
- package/dist/components/page-calendar/month-view.d.ts.map +0 -1
- package/dist/components/page-calendar/page-calendar.d.ts +0 -18
- package/dist/components/page-calendar/page-calendar.d.ts.map +0 -1
- package/dist/components/page-calendar/page-calendar.types.d.ts +0 -18
- package/dist/components/page-calendar/page-calendar.types.d.ts.map +0 -1
- package/dist/components/page-calendar/page-calendar.utils.d.ts +0 -24
- package/dist/components/page-calendar/page-calendar.utils.d.ts.map +0 -1
- package/dist/components/page-calendar/week-view.d.ts +0 -11
- package/dist/components/page-calendar/week-view.d.ts.map +0 -1
- package/dist/components/table/filter.d.ts +0 -42
- package/dist/components/table/filter.d.ts.map +0 -1
- package/dist/components/table/group.d.ts +0 -17
- package/dist/components/table/group.d.ts.map +0 -1
- package/dist/components/table/index.d.ts +0 -20
- package/dist/components/table/index.d.ts.map +0 -1
- package/dist/components/table/inner-table.d.ts +0 -29
- package/dist/components/table/inner-table.d.ts.map +0 -1
- package/dist/components/table/metadata.d.ts +0 -4
- package/dist/components/table/metadata.d.ts.map +0 -1
- package/dist/components/table/pagination.d.ts +0 -3
- package/dist/components/table/pagination.d.ts.map +0 -1
- package/dist/components/table/row.d.ts +0 -12
- package/dist/components/table/row.d.ts.map +0 -1
- package/dist/components/table/sort.d.ts +0 -28
- package/dist/components/table/sort.d.ts.map +0 -1
- package/dist/components/table/table-lib.d.ts +0 -135
- package/dist/components/table/table-lib.d.ts.map +0 -1
- package/dist/components/table/table.context.d.ts +0 -10
- package/dist/components/table/table.context.d.ts.map +0 -1
- package/dist/components/table/thead.d.ts +0 -9
- package/dist/components/table/thead.d.ts.map +0 -1
- package/dist/config/context.d.ts +0 -21
- package/dist/config/context.d.ts.map +0 -1
- package/dist/config/default-translations.d.ts +0 -90
- package/dist/config/default-translations.d.ts.map +0 -1
- package/dist/config/default-tweaks.d.ts +0 -13
- package/dist/config/default-tweaks.d.ts.map +0 -1
- package/dist/constants.d.ts +0 -3
- package/dist/constants.d.ts.map +0 -1
- package/dist/context-BFXNJVn2.js.map +0 -1
- package/dist/date-picker-DwNo22lx.js.map +0 -1
- package/dist/dom-Dl8XH0CK.js.map +0 -1
- package/dist/file-upload-Brf2NkLr.js.map +0 -1
- package/dist/floating-ui.react-QNHG9W4N.js.map +0 -1
- package/dist/fns-D2eyJKd5.js.map +0 -1
- package/dist/hooks/use-click-outside.d.ts +0 -3
- package/dist/hooks/use-click-outside.d.ts.map +0 -1
- package/dist/hooks/use-color-parser.d.ts +0 -2
- package/dist/hooks/use-color-parser.d.ts.map +0 -1
- package/dist/hooks/use-components-provider.d.ts +0 -15
- package/dist/hooks/use-components-provider.d.ts.map +0 -1
- package/dist/hooks/use-debounce.d.ts +0 -5
- package/dist/hooks/use-debounce.d.ts.map +0 -1
- package/dist/hooks/use-floating-ref.d.ts +0 -2
- package/dist/hooks/use-floating-ref.d.ts.map +0 -1
- package/dist/hooks/use-form.d.ts +0 -394
- package/dist/hooks/use-form.d.ts.map +0 -1
- package/dist/hooks/use-hover.d.ts +0 -3
- package/dist/hooks/use-hover.d.ts.map +0 -1
- package/dist/hooks/use-input-id.d.ts +0 -4
- package/dist/hooks/use-input-id.d.ts.map +0 -1
- package/dist/hooks/use-is-coarse-device.d.ts +0 -2
- package/dist/hooks/use-is-coarse-device.d.ts.map +0 -1
- package/dist/hooks/use-locale.d.ts +0 -3
- package/dist/hooks/use-locale.d.ts.map +0 -1
- package/dist/hooks/use-media-query.d.ts +0 -2
- package/dist/hooks/use-media-query.d.ts.map +0 -1
- package/dist/hooks/use-on-event.d.ts +0 -4
- package/dist/hooks/use-on-event.d.ts.map +0 -1
- package/dist/hooks/use-parent.d.ts +0 -3
- package/dist/hooks/use-parent.d.ts.map +0 -1
- package/dist/hooks/use-preferences.d.ts +0 -2
- package/dist/hooks/use-preferences.d.ts.map +0 -1
- package/dist/hooks/use-previous.d.ts +0 -2
- package/dist/hooks/use-previous.d.ts.map +0 -1
- package/dist/hooks/use-reactive.d.ts +0 -2
- package/dist/hooks/use-reactive.d.ts.map +0 -1
- package/dist/hooks/use-remove-scroll.d.ts +0 -4
- package/dist/hooks/use-remove-scroll.d.ts.map +0 -1
- package/dist/hooks/use-resize-observer.d.ts +0 -2
- package/dist/hooks/use-resize-observer.d.ts.map +0 -1
- package/dist/hooks/use-stable-ref.d.ts +0 -2
- package/dist/hooks/use-stable-ref.d.ts.map +0 -1
- package/dist/hooks/use-swipe.d.ts +0 -8
- package/dist/hooks/use-swipe.d.ts.map +0 -1
- package/dist/hooks/use-translations.d.ts +0 -88
- package/dist/hooks/use-translations.d.ts.map +0 -1
- package/dist/hooks/use-tweaks.d.ts +0 -3
- package/dist/hooks/use-tweaks.d.ts.map +0 -1
- package/dist/hooks/use-window-size.d.ts +0 -5
- package/dist/hooks/use-window-size.d.ts.map +0 -1
- package/dist/index-BelDtX5M.js.map +0 -1
- package/dist/index-DJSMaZR4.js.map +0 -1
- package/dist/index-Z-fZHxfJ.js +0 -335
- package/dist/index-Z-fZHxfJ.js.map +0 -1
- package/dist/index.d.ts +0 -22
- package/dist/index.d.ts.map +0 -1
- package/dist/input-CrGrSnUt.js.map +0 -1
- package/dist/input-field-5vYcz5tT.js.map +0 -1
- package/dist/lib/combi-keys.d.ts +0 -15
- package/dist/lib/combi-keys.d.ts.map +0 -1
- package/dist/lib/dict.d.ts +0 -12
- package/dist/lib/dict.d.ts.map +0 -1
- package/dist/lib/dom.d.ts +0 -19
- package/dist/lib/dom.d.ts.map +0 -1
- package/dist/lib/fns.d.ts +0 -11
- package/dist/lib/fns.d.ts.map +0 -1
- package/dist/lib/fzf.d.ts +0 -16
- package/dist/lib/fzf.d.ts.map +0 -1
- package/dist/lib/keyboard-area.d.ts +0 -16
- package/dist/lib/keyboard-area.d.ts.map +0 -1
- package/dist/notifications-cUdVPs-B.js +0 -2786
- package/dist/notifications-cUdVPs-B.js.map +0 -1
- package/dist/skeleton-D75GFBV6.js +0 -10
- package/dist/skeleton-D75GFBV6.js.map +0 -1
- package/dist/tabs-S00a8qq8.js +0 -106
- package/dist/tabs-S00a8qq8.js.map +0 -1
- package/dist/types.d.ts +0 -26
- package/dist/types.d.ts.map +0 -1
- package/dist/use-translations-BwLKTrZv.js +0 -10
- package/dist/use-translations-BwLKTrZv.js.map +0 -1
|
@@ -27,11 +27,11 @@ A pre-built table-cell skeleton with `h-6 w-10/12 animate-pulse rounded bg-muted
|
|
|
27
27
|
|
|
28
28
|
A configurable block skeleton.
|
|
29
29
|
|
|
30
|
-
| Prop
|
|
31
|
-
|
|
32
|
-
| `className` | `string`
|
|
33
|
-
| `as`
|
|
34
|
-
| `style`
|
|
30
|
+
| Prop | Type | Default | Description |
|
|
31
|
+
| ----------- | ------------------- | -------- | --------------------------------------- |
|
|
32
|
+
| `className` | `string` | — | Override or extend dimensions and shape |
|
|
33
|
+
| `as` | `React.ElementType` | `"span"` | Polymorphic root element |
|
|
34
|
+
| `style` | `CSSProperties` | — | Inline styles (e.g. dynamic `width`) |
|
|
35
35
|
|
|
36
36
|
Default appearance: `block h-8 w-32 animate-pulse rounded bg-muted`.
|
|
37
37
|
|
|
@@ -39,18 +39,18 @@ Default appearance: `block h-8 w-32 animate-pulse rounded bg-muted`.
|
|
|
39
39
|
|
|
40
40
|
A vertical list of randomized-width `Skeleton` lines.
|
|
41
41
|
|
|
42
|
-
| Prop
|
|
43
|
-
|
|
44
|
-
| `rows`
|
|
45
|
-
| `className` | `string` | —
|
|
42
|
+
| Prop | Type | Default | Description |
|
|
43
|
+
| ----------- | -------- | ------- | ------------------------------------------- |
|
|
44
|
+
| `rows` | `number` | — | Number of skeleton lines to render |
|
|
45
|
+
| `className` | `string` | — | Additional classes for the `<ul>` container |
|
|
46
46
|
|
|
47
47
|
## Design Tokens
|
|
48
48
|
|
|
49
49
|
Tokens this component reads. Customize by overriding these CSS variables in your theme.
|
|
50
50
|
|
|
51
|
-
| Token
|
|
52
|
-
|
|
53
|
-
| `bg-muted` | `--muted`
|
|
51
|
+
| Token | CSS Variable | Purpose |
|
|
52
|
+
| ---------- | ------------ | ---------------------------------------------------- |
|
|
53
|
+
| `bg-muted` | `--muted` | Pulse animation background for all skeleton variants |
|
|
54
54
|
|
|
55
55
|
## Examples
|
|
56
56
|
|
|
@@ -58,19 +58,25 @@ Tokens this component reads. Customize by overriding these CSS variables in your
|
|
|
58
58
|
|
|
59
59
|
```tsx
|
|
60
60
|
function TableSkeleton() {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
61
|
+
return (
|
|
62
|
+
<table className="w-full">
|
|
63
|
+
<tbody>
|
|
64
|
+
{Array.from({ length: 5 }).map((_, index) => (
|
|
65
|
+
<tr key={index} className="border-b border-border">
|
|
66
|
+
<td className="py-3 px-4">
|
|
67
|
+
<SkeletonCell />
|
|
68
|
+
</td>
|
|
69
|
+
<td className="py-3 px-4">
|
|
70
|
+
<SkeletonCell />
|
|
71
|
+
</td>
|
|
72
|
+
<td className="py-3 px-4">
|
|
73
|
+
<SkeletonCell />
|
|
74
|
+
</td>
|
|
75
|
+
</tr>
|
|
76
|
+
))}
|
|
77
|
+
</tbody>
|
|
78
|
+
</table>
|
|
79
|
+
);
|
|
74
80
|
}
|
|
75
81
|
```
|
|
76
82
|
|
|
@@ -78,20 +84,20 @@ function TableSkeleton() {
|
|
|
78
84
|
|
|
79
85
|
```tsx
|
|
80
86
|
function CardSkeleton() {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
87
|
+
return (
|
|
88
|
+
<div className="rounded-card border border-card-border bg-card-background p-6 space-y-4">
|
|
89
|
+
<Skeleton className="h-4 w-3/4" />
|
|
90
|
+
<div className="space-y-2">
|
|
91
|
+
<SkeletonCell />
|
|
92
|
+
<SkeletonCell />
|
|
93
|
+
<Skeleton className="h-2 w-1/2" />
|
|
94
|
+
</div>
|
|
95
|
+
<div className="flex gap-2">
|
|
96
|
+
<Skeleton className="h-8 w-20" />
|
|
97
|
+
<Skeleton className="h-8 w-16" />
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
);
|
|
95
101
|
}
|
|
96
102
|
```
|
|
97
103
|
|
|
@@ -105,15 +111,7 @@ function CardSkeleton() {
|
|
|
105
111
|
|
|
106
112
|
```tsx
|
|
107
113
|
function DataSection({ data, loading }: { data?: Item; loading: boolean }) {
|
|
108
|
-
|
|
109
|
-
<div>
|
|
110
|
-
{loading ? (
|
|
111
|
-
<Skeleton className="h-6 w-full" />
|
|
112
|
-
) : (
|
|
113
|
-
<p>{data?.name}</p>
|
|
114
|
-
)}
|
|
115
|
-
</div>
|
|
116
|
-
);
|
|
114
|
+
return <div>{loading ? <Skeleton className="h-6 w-full" /> : <p>{data?.name}</p>}</div>;
|
|
117
115
|
}
|
|
118
116
|
```
|
|
119
117
|
|
|
@@ -121,15 +119,15 @@ function DataSection({ data, loading }: { data?: Item; loading: boolean }) {
|
|
|
121
119
|
|
|
122
120
|
```tsx
|
|
123
121
|
function UserRowSkeleton() {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
122
|
+
return (
|
|
123
|
+
<div className="flex items-center gap-3">
|
|
124
|
+
<Skeleton className="size-10 rounded-full" />
|
|
125
|
+
<div className="flex-1 space-y-1">
|
|
126
|
+
<SkeletonCell />
|
|
127
|
+
<Skeleton className="h-2 w-1/3" />
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
);
|
|
133
131
|
}
|
|
134
132
|
```
|
|
135
133
|
|
|
@@ -155,9 +153,7 @@ function UserRowSkeleton() {
|
|
|
155
153
|
- Consider `aria-label="Loading content"` on the skeleton container for additional context.
|
|
156
154
|
|
|
157
155
|
```tsx
|
|
158
|
-
<div aria-live="polite">
|
|
159
|
-
{loading ? <SkeletonCell /> : <ActualContent />}
|
|
160
|
-
</div>
|
|
156
|
+
<div aria-live="polite">{loading ? <SkeletonCell /> : <ActualContent />}</div>
|
|
161
157
|
```
|
|
162
158
|
|
|
163
159
|
## Notes
|
|
@@ -21,27 +21,27 @@ import { Slider } from "@g4rcez/components";
|
|
|
21
21
|
|
|
22
22
|
`Slider` accepts all props from `@base-ui/react/slider` Root, plus:
|
|
23
23
|
|
|
24
|
-
| Prop
|
|
25
|
-
|
|
26
|
-
| `tooltip`
|
|
27
|
-
| `value`
|
|
28
|
-
| `defaultValue` | `number[]` | `[0]`
|
|
29
|
-
| `min`
|
|
30
|
-
| `max`
|
|
31
|
-
| `step`
|
|
32
|
-
| `className`
|
|
24
|
+
| Prop | Type | Default | Description |
|
|
25
|
+
| -------------- | ---------- | ------- | ---------------------------------------------------------------------- |
|
|
26
|
+
| `tooltip` | `boolean` | `false` | Shows a tooltip with the current value above the thumb while dragging. |
|
|
27
|
+
| `value` | `number[]` | — | Controlled value(s). |
|
|
28
|
+
| `defaultValue` | `number[]` | `[0]` | Initial value(s) for uncontrolled usage. |
|
|
29
|
+
| `min` | `number` | `0` | Minimum value. |
|
|
30
|
+
| `max` | `number` | `100` | Maximum value. |
|
|
31
|
+
| `step` | `number` | `1` | Increment between selectable values. |
|
|
32
|
+
| `className` | `string` | — | Additional classes applied to the control track wrapper. |
|
|
33
33
|
|
|
34
34
|
## Design Tokens
|
|
35
35
|
|
|
36
36
|
Tokens this component reads. Customize by overriding these CSS variables in your theme.
|
|
37
37
|
|
|
38
|
-
| Token
|
|
39
|
-
|
|
40
|
-
| `bg-background`
|
|
41
|
-
| `bg-primary`
|
|
42
|
-
| `border-input-border`
|
|
43
|
-
| `bg-input-switch`
|
|
44
|
-
| `focus-within:ring-primary` | `--primary`
|
|
38
|
+
| Token | CSS Variable | Purpose |
|
|
39
|
+
| --------------------------- | ---------------- | --------------------------------- |
|
|
40
|
+
| `bg-background` | `--background` | Track background (unfilled area) |
|
|
41
|
+
| `bg-primary` | `--primary` | Indicator fill (filled area) |
|
|
42
|
+
| `border-input-border` | `--input-border` | Thumb border color |
|
|
43
|
+
| `bg-input-switch` | `--input-switch` | Thumb fill color (checked/active) |
|
|
44
|
+
| `focus-within:ring-primary` | `--primary` | Focus ring on thumb |
|
|
45
45
|
|
|
46
46
|
## Variants
|
|
47
47
|
|
|
@@ -61,14 +61,7 @@ Two values in `defaultValue` render two thumbs that define a range.
|
|
|
61
61
|
import { Slider } from "@g4rcez/components";
|
|
62
62
|
|
|
63
63
|
export default function VolumeControl() {
|
|
64
|
-
|
|
65
|
-
<Slider
|
|
66
|
-
min={0}
|
|
67
|
-
max={100}
|
|
68
|
-
defaultValue={[50]}
|
|
69
|
-
onChange={(value) => console.log(value)}
|
|
70
|
-
/>
|
|
71
|
-
);
|
|
64
|
+
return <Slider min={0} max={100} defaultValue={[50]} onChange={(value) => console.log(value)} />;
|
|
72
65
|
}
|
|
73
66
|
```
|
|
74
67
|
|
|
@@ -78,14 +71,7 @@ export default function VolumeControl() {
|
|
|
78
71
|
import { Slider } from "@g4rcez/components";
|
|
79
72
|
|
|
80
73
|
export default function PriceRangeFilter() {
|
|
81
|
-
|
|
82
|
-
<Slider
|
|
83
|
-
min={0}
|
|
84
|
-
max={1000}
|
|
85
|
-
defaultValue={[200, 800]}
|
|
86
|
-
tooltip
|
|
87
|
-
/>
|
|
88
|
-
);
|
|
74
|
+
return <Slider min={0} max={1000} defaultValue={[200, 800]} tooltip />;
|
|
89
75
|
}
|
|
90
76
|
```
|
|
91
77
|
|
|
@@ -96,23 +82,14 @@ import { useState } from "react";
|
|
|
96
82
|
import { Slider } from "@g4rcez/components";
|
|
97
83
|
|
|
98
84
|
export default function SteppedSlider() {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
value={value}
|
|
108
|
-
tooltip
|
|
109
|
-
onValueChange={setValue}
|
|
110
|
-
/>
|
|
111
|
-
<span className="text-sm text-muted-foreground">
|
|
112
|
-
Current: {value[0].toFixed(1)}
|
|
113
|
-
</span>
|
|
114
|
-
</div>
|
|
115
|
-
);
|
|
85
|
+
const [value, setValue] = useState([0.5]);
|
|
86
|
+
|
|
87
|
+
return (
|
|
88
|
+
<div className="flex flex-col gap-base">
|
|
89
|
+
<Slider min={0} max={1} step={0.1} value={value} tooltip onValueChange={setValue} />
|
|
90
|
+
<span className="text-sm text-muted-foreground">Current: {value[0].toFixed(1)}</span>
|
|
91
|
+
</div>
|
|
92
|
+
);
|
|
116
93
|
}
|
|
117
94
|
```
|
|
118
95
|
|
|
@@ -19,28 +19,28 @@ import { Slot, Slottable } from "@g4rcez/components";
|
|
|
19
19
|
|
|
20
20
|
## Exports
|
|
21
21
|
|
|
22
|
-
| Export
|
|
23
|
-
|
|
24
|
-
| `Slot`
|
|
25
|
-
| `Slottable`
|
|
26
|
-
| `createSlot(ownerName)`
|
|
27
|
-
| `createSlottable(ownerName)` | Factory to create a named `Slottable`
|
|
22
|
+
| Export | Description |
|
|
23
|
+
| ---------------------------- | ------------------------------------------------------------------------------ |
|
|
24
|
+
| `Slot` | Merges props into the single child element |
|
|
25
|
+
| `Slottable` | Marks which child is the slot target when the component has internal structure |
|
|
26
|
+
| `createSlot(ownerName)` | Factory to create a named `Slot` (for building design-system components) |
|
|
27
|
+
| `createSlottable(ownerName)` | Factory to create a named `Slottable` |
|
|
28
28
|
|
|
29
29
|
## Props
|
|
30
30
|
|
|
31
31
|
### Slot
|
|
32
32
|
|
|
33
|
-
| Prop
|
|
34
|
-
|
|
35
|
-
| `children` | `React.ReactNode`
|
|
36
|
-
| `ref`
|
|
37
|
-
| `...props` | `React.HTMLAttributes<HTMLElement>` | -
|
|
33
|
+
| Prop | Type | Default | Description |
|
|
34
|
+
| ---------- | ----------------------------------- | ------- | ------------------------------------------------------------------ |
|
|
35
|
+
| `children` | `React.ReactNode` | - | A single valid React element that will receive all of Slot's props |
|
|
36
|
+
| `ref` | `React.ForwardedRef<HTMLElement>` | - | Forwarded to the child element |
|
|
37
|
+
| `...props` | `React.HTMLAttributes<HTMLElement>` | - | Props merged into the child |
|
|
38
38
|
|
|
39
39
|
### Slottable
|
|
40
40
|
|
|
41
|
-
| Prop
|
|
42
|
-
|
|
43
|
-
| `children` | `React.ReactNode` | -
|
|
41
|
+
| Prop | Type | Default | Description |
|
|
42
|
+
| ---------- | ----------------- | ------- | ---------------------------------------- |
|
|
43
|
+
| `children` | `React.ReactNode` | - | The element to render as the slot target |
|
|
44
44
|
|
|
45
45
|
## Design Tokens
|
|
46
46
|
|
|
@@ -133,9 +133,7 @@ Both handlers are called when both the `Slot` and the child define the same even
|
|
|
133
133
|
|
|
134
134
|
```tsx
|
|
135
135
|
<Slot onClick={() => console.log("slot handler")}>
|
|
136
|
-
|
|
137
|
-
Click me
|
|
138
|
-
</button>
|
|
136
|
+
<button onClick={() => console.log("child handler")}>Click me</button>
|
|
139
137
|
</Slot>
|
|
140
138
|
// Logs: "child handler", then "slot handler"
|
|
141
139
|
```
|
|
@@ -21,9 +21,9 @@ import { Spinner, Loading } from "@g4rcez/components";
|
|
|
21
21
|
|
|
22
22
|
### Spinner
|
|
23
23
|
|
|
24
|
-
| Prop
|
|
25
|
-
|
|
26
|
-
| `className` | `string` | —
|
|
24
|
+
| Prop | Type | Default | Description |
|
|
25
|
+
| ----------- | -------- | ------- | ------------------------------------------------------ |
|
|
26
|
+
| `className` | `string` | — | Additional classes to customize size, color, or border |
|
|
27
27
|
|
|
28
28
|
Default appearance: `size-12 border-4 border-background border-b-primary animate-spin rounded-full`.
|
|
29
29
|
|
|
@@ -35,10 +35,10 @@ No props. Renders a centered `Spinner` inside a `flex h-full w-full items-center
|
|
|
35
35
|
|
|
36
36
|
Tokens this component reads. Customize by overriding these CSS variables in your theme.
|
|
37
37
|
|
|
38
|
-
| Token
|
|
39
|
-
|
|
38
|
+
| Token | CSS Variable | Purpose |
|
|
39
|
+
| ------------------- | -------------- | --------------------------- |
|
|
40
40
|
| `border-background` | `--background` | Inactive spinner ring color |
|
|
41
|
-
| `border-b-primary`
|
|
41
|
+
| `border-b-primary` | `--primary` | Active spinner arc color |
|
|
42
42
|
|
|
43
43
|
## Examples
|
|
44
44
|
|
|
@@ -51,7 +51,9 @@ Tokens this component reads. Customize by overriding these CSS variables in your
|
|
|
51
51
|
### Full-Container Loading State
|
|
52
52
|
|
|
53
53
|
```tsx
|
|
54
|
-
{
|
|
54
|
+
{
|
|
55
|
+
isLoading ? <Loading /> : <Content />;
|
|
56
|
+
}
|
|
55
57
|
```
|
|
56
58
|
|
|
57
59
|
### Custom Size
|
|
@@ -64,8 +66,8 @@ Tokens this component reads. Customize by overriding these CSS variables in your
|
|
|
64
66
|
|
|
65
67
|
```tsx
|
|
66
68
|
<button type="submit" disabled={isSubmitting} className="flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-button">
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
{isSubmitting && <Spinner className="size-4 border-2 border-primary-foreground border-b-transparent" />}
|
|
70
|
+
{isSubmitting ? "Saving…" : "Save"}
|
|
69
71
|
</button>
|
|
70
72
|
```
|
|
71
73
|
|
|
@@ -75,10 +77,10 @@ Tokens this component reads. Customize by overriding these CSS variables in your
|
|
|
75
77
|
import { Card } from "@g4rcez/components/card";
|
|
76
78
|
|
|
77
79
|
<Card title="Analytics">
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
</Card
|
|
80
|
+
<div className="h-64 flex items-center justify-center">
|
|
81
|
+
<Spinner />
|
|
82
|
+
</div>
|
|
83
|
+
</Card>;
|
|
82
84
|
```
|
|
83
85
|
|
|
84
86
|
### Lazy Component Fallback
|
|
@@ -88,8 +90,8 @@ import { Suspense } from "react";
|
|
|
88
90
|
import { Loading } from "@g4rcez/components";
|
|
89
91
|
|
|
90
92
|
<Suspense fallback={<Loading />}>
|
|
91
|
-
|
|
92
|
-
</Suspense
|
|
93
|
+
<HeavyComponent />
|
|
94
|
+
</Suspense>;
|
|
93
95
|
```
|
|
94
96
|
|
|
95
97
|
## Do
|
|
@@ -19,27 +19,27 @@ import { Stats } from "@g4rcez/components/stats";
|
|
|
19
19
|
|
|
20
20
|
## Props
|
|
21
21
|
|
|
22
|
-
| Prop
|
|
23
|
-
|
|
24
|
-
| `title`
|
|
25
|
-
| `Icon`
|
|
26
|
-
| `iconContainer` | `string`
|
|
27
|
-
| `footer`
|
|
28
|
-
| `children`
|
|
22
|
+
| Prop | Type | Default | Description |
|
|
23
|
+
| --------------- | --------------------------------- | ------- | ---------------------------------------------------- |
|
|
24
|
+
| `title` | `Label` | — | Metric label displayed above the value |
|
|
25
|
+
| `Icon` | `React.FC<{ className: string }>` | — | Icon component to display (Phosphor recommended) |
|
|
26
|
+
| `iconContainer` | `string` | — | Additional classes for the icon background container |
|
|
27
|
+
| `footer` | `React.ReactElement` | — | Optional footer area for trend data or context |
|
|
28
|
+
| `children` | `React.ReactNode` | — | The metric value (e.g. a number, formatted string) |
|
|
29
29
|
|
|
30
30
|
## Design Tokens
|
|
31
31
|
|
|
32
32
|
Tokens this component reads. Customize by overriding these CSS variables in your theme.
|
|
33
33
|
|
|
34
|
-
| Token
|
|
35
|
-
|
|
36
|
-
| `bg-card-background`
|
|
37
|
-
| `border-card-border`
|
|
38
|
-
| `rounded-card`
|
|
39
|
-
| `shadow-shadow-card`
|
|
40
|
-
| `bg-primary`
|
|
41
|
-
| `text-primary-foreground` | `--primary-foreground` | Icon color (default)
|
|
42
|
-
| `divide-card-border`
|
|
34
|
+
| Token | CSS Variable | Purpose |
|
|
35
|
+
| ------------------------- | ---------------------- | ----------------------------------- |
|
|
36
|
+
| `bg-card-background` | `--card-background` | Card surface |
|
|
37
|
+
| `border-card-border` | `--card-border` | Card border and divider |
|
|
38
|
+
| `rounded-card` | `--radius-card` | Corner radius |
|
|
39
|
+
| `shadow-shadow-card` | `--shadow-card` | Card drop shadow |
|
|
40
|
+
| `bg-primary` | `--primary` | Icon container background (default) |
|
|
41
|
+
| `text-primary-foreground` | `--primary-foreground` | Icon color (default) |
|
|
42
|
+
| `divide-card-border` | `--card-border` | Divider between header and footer |
|
|
43
43
|
|
|
44
44
|
## Examples
|
|
45
45
|
|
|
@@ -49,8 +49,8 @@ Tokens this component reads. Customize by overriding these CSS variables in your
|
|
|
49
49
|
import { UsersIcon } from "@phosphor-icons/react";
|
|
50
50
|
|
|
51
51
|
<Stats title="Active Users" Icon={UsersIcon}>
|
|
52
|
-
|
|
53
|
-
</Stats
|
|
52
|
+
1,234
|
|
53
|
+
</Stats>;
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
### With Footer Trend
|
|
@@ -59,18 +59,18 @@ import { UsersIcon } from "@phosphor-icons/react";
|
|
|
59
59
|
import { TrendUpIcon, CurrencyDollarIcon } from "@phosphor-icons/react";
|
|
60
60
|
|
|
61
61
|
<Stats
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
62
|
+
title="Revenue"
|
|
63
|
+
Icon={CurrencyDollarIcon}
|
|
64
|
+
iconContainer="bg-success"
|
|
65
|
+
footer={
|
|
66
|
+
<div className="flex items-center gap-1 text-success text-sm font-medium">
|
|
67
|
+
<TrendUpIcon size={14} />
|
|
68
|
+
<span>+12% from last month</span>
|
|
69
|
+
</div>
|
|
70
|
+
}
|
|
71
71
|
>
|
|
72
|
-
|
|
73
|
-
</Stats
|
|
72
|
+
$45,200.00
|
|
73
|
+
</Stats>;
|
|
74
74
|
```
|
|
75
75
|
|
|
76
76
|
### Custom Icon Container Theme
|
|
@@ -78,13 +78,9 @@ import { TrendUpIcon, CurrencyDollarIcon } from "@phosphor-icons/react";
|
|
|
78
78
|
```tsx
|
|
79
79
|
import { WarningCircleIcon } from "@phosphor-icons/react";
|
|
80
80
|
|
|
81
|
-
<Stats
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
iconContainer="bg-danger"
|
|
85
|
-
>
|
|
86
|
-
0.3%
|
|
87
|
-
</Stats>
|
|
81
|
+
<Stats title="Error Rate" Icon={WarningCircleIcon} iconContainer="bg-danger">
|
|
82
|
+
0.3%
|
|
83
|
+
</Stats>;
|
|
88
84
|
```
|
|
89
85
|
|
|
90
86
|
### Dashboard Grid
|
|
@@ -93,10 +89,16 @@ import { WarningCircleIcon } from "@phosphor-icons/react";
|
|
|
93
89
|
import { UsersIcon, ClockIcon, TargetIcon } from "@phosphor-icons/react";
|
|
94
90
|
|
|
95
91
|
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
92
|
+
<Stats title="Users" Icon={UsersIcon}>
|
|
93
|
+
1.2k
|
|
94
|
+
</Stats>
|
|
95
|
+
<Stats title="Sessions" Icon={ClockIcon}>
|
|
96
|
+
450
|
|
97
|
+
</Stats>
|
|
98
|
+
<Stats title="Conversion" Icon={TargetIcon}>
|
|
99
|
+
3.2%
|
|
100
|
+
</Stats>
|
|
101
|
+
</div>;
|
|
100
102
|
```
|
|
101
103
|
|
|
102
104
|
### With Skeleton Loading
|
|
@@ -106,8 +108,8 @@ import { ChartBarIcon } from "@phosphor-icons/react";
|
|
|
106
108
|
import { Skeleton } from "@g4rcez/components";
|
|
107
109
|
|
|
108
110
|
<Stats title="Page Views" Icon={ChartBarIcon}>
|
|
109
|
-
|
|
110
|
-
</Stats
|
|
111
|
+
{isLoading ? <Skeleton className="h-9 w-24" /> : "48,301"}
|
|
112
|
+
</Stats>;
|
|
111
113
|
```
|
|
112
114
|
|
|
113
115
|
## Do
|