@g4rcez/components 4.0.2 → 4.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/SKILL.md +120 -153
- package/ai/docs/Alert.md +47 -48
- package/ai/docs/AnimatedList.md +88 -87
- package/ai/docs/Autocomplete.md +102 -106
- package/ai/docs/Button.md +33 -33
- package/ai/docs/Calendar.md +67 -101
- package/ai/docs/Card.md +59 -55
- package/ai/docs/Checkbox.md +77 -82
- package/ai/docs/CommandPalette.md +154 -172
- package/ai/docs/DatePicker.md +45 -64
- package/ai/docs/Dropdown.md +98 -126
- package/ai/docs/Empty.md +41 -44
- package/ai/docs/Expand.md +40 -54
- package/ai/docs/FileUpload.md +102 -109
- package/ai/docs/Form.md +35 -29
- package/ai/docs/FormReset.md +37 -37
- package/ai/docs/Heading.md +4 -6
- package/ai/docs/Input.md +73 -98
- package/ai/docs/InputField.md +67 -67
- package/ai/docs/List.md +88 -85
- package/ai/docs/Menu.md +62 -60
- package/ai/docs/Modal.md +129 -136
- package/ai/docs/MultiSelect.md +65 -84
- package/ai/docs/Notifications.md +96 -96
- package/ai/docs/PageCalendar.md +88 -97
- package/ai/docs/Polymorph.md +25 -41
- package/ai/docs/Progress.md +55 -51
- package/ai/docs/Radiobox.md +49 -41
- package/ai/docs/RenderOnView.md +26 -32
- package/ai/docs/Resizable.md +60 -65
- package/ai/docs/Select.md +158 -158
- package/ai/docs/Shortcut.md +14 -14
- package/ai/docs/Skeleton.md +56 -60
- package/ai/docs/Slider.md +26 -49
- package/ai/docs/Slot.md +15 -17
- package/ai/docs/Spinner.md +17 -15
- package/ai/docs/Stats.md +44 -42
- package/ai/docs/Step.md +60 -60
- package/ai/docs/Switch.md +44 -54
- package/ai/docs/Table.md +124 -136
- package/ai/docs/Tabs.md +90 -90
- package/ai/docs/Tag.md +63 -65
- package/ai/docs/TaskList.md +40 -50
- package/ai/docs/Textarea.md +47 -70
- package/ai/docs/Timeline.md +98 -96
- package/ai/docs/Toolbar.md +46 -46
- package/ai/docs/Tooltip.md +103 -103
- package/ai/docs/Typography.md +55 -55
- package/ai/docs/Wizard.md +104 -109
- package/ai/docs/index.md +116 -116
- 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.d.ts.map +1 -1
- package/dist/components/core/button.js +10 -10
- package/dist/components/core/button.js.map +1 -1
- package/dist/components/core/button.jsx +79 -0
- package/dist/components/core/heading.jsx +4 -0
- package/dist/components/core/polymorph.d.ts +1 -1
- package/dist/components/core/polymorph.d.ts.map +1 -1
- package/dist/components/core/polymorph.jsx +5 -0
- package/dist/components/core/render-on-view.jsx +31 -0
- package/dist/components/core/resizable.jsx +51 -0
- package/dist/components/core/slot.d.ts.map +1 -1
- package/dist/components/core/slot.jsx +156 -0
- package/dist/components/core/tag.d.ts +1 -1
- package/dist/components/core/tag.d.ts.map +1 -1
- package/dist/components/core/tag.js +4 -4
- package/dist/components/core/tag.js.map +1 -1
- package/dist/components/core/tag.jsx +51 -0
- package/dist/components/core/typography.jsx +18 -0
- package/dist/components/display/alert.d.ts +1 -1
- package/dist/components/display/alert.d.ts.map +1 -1
- package/dist/components/display/alert.js +48 -46
- package/dist/components/display/alert.js.map +1 -1
- package/dist/components/display/alert.jsx +61 -0
- package/dist/components/display/calendar.js +6 -6
- package/dist/components/display/calendar.jsx +299 -0
- package/dist/components/display/card.js +2 -2
- package/dist/components/display/card.js.map +1 -1
- package/dist/components/display/card.jsx +43 -0
- package/dist/components/display/empty.jsx +11 -0
- package/dist/components/display/list.js +1 -1
- package/dist/components/display/list.js.map +1 -1
- package/dist/components/display/list.jsx +81 -0
- package/dist/components/display/notifications.d.ts +1 -1
- package/dist/components/display/notifications.d.ts.map +1 -1
- package/dist/components/display/notifications.js +3 -3
- package/dist/components/display/notifications.jsx +126 -0
- package/dist/components/display/progress.jsx +11 -0
- package/dist/components/display/shortcut.jsx +23 -0
- package/dist/components/display/skeleton.d.ts.map +1 -1
- package/dist/components/display/skeleton.jsx +19 -0
- package/dist/components/display/spinner.d.ts.map +1 -1
- package/dist/components/display/spinner.jsx +11 -0
- package/dist/components/display/stats.js +1 -1
- package/dist/components/display/stats.jsx +20 -0
- package/dist/components/display/step.jsx +131 -0
- package/dist/components/display/tabs.d.ts +1 -1
- package/dist/components/display/tabs.d.ts.map +1 -1
- package/dist/components/display/tabs.js +2 -2
- package/dist/components/display/tabs.jsx +125 -0
- package/dist/components/display/timeline.js +1 -1
- package/dist/components/display/timeline.jsx +25 -0
- package/dist/components/floating/command-palette.d.ts.map +1 -1
- package/dist/components/floating/command-palette.jsx +197 -0
- package/dist/components/floating/dropdown.d.ts.map +1 -1
- package/dist/components/floating/dropdown.js +25 -17
- package/dist/components/floating/dropdown.js.map +1 -1
- package/dist/components/floating/dropdown.jsx +56 -0
- package/dist/components/floating/expand.js +7 -7
- package/dist/components/floating/expand.js.map +1 -1
- package/dist/components/floating/expand.jsx +44 -0
- package/dist/components/floating/menu.js +10 -10
- package/dist/components/floating/menu.js.map +1 -1
- package/dist/components/floating/menu.jsx +147 -0
- package/dist/components/floating/modal.d.ts +4 -4
- package/dist/components/floating/modal.d.ts.map +1 -1
- package/dist/components/floating/modal.js +106 -102
- package/dist/components/floating/modal.js.map +1 -1
- package/dist/components/floating/modal.jsx +301 -0
- package/dist/components/floating/toolbar.jsx +5 -0
- package/dist/components/floating/tooltip.d.ts.map +1 -1
- package/dist/components/floating/tooltip.js +14 -14
- package/dist/components/floating/tooltip.js.map +1 -1
- package/dist/components/floating/tooltip.jsx +58 -0
- package/dist/components/floating/wizard.jsx +161 -0
- package/dist/components/form/autocomplete.d.ts.map +1 -1
- package/dist/components/form/autocomplete.js +6 -6
- package/dist/components/form/autocomplete.jsx +278 -0
- package/dist/components/form/checkbox.js +1 -1
- package/dist/components/form/checkbox.jsx +12 -0
- package/dist/components/form/date-picker.d.ts.map +1 -1
- package/dist/components/form/date-picker.js +5 -5
- package/dist/components/form/date-picker.jsx +115 -0
- package/dist/components/form/file-upload.d.ts.map +1 -1
- package/dist/components/form/file-upload.js +2 -2
- package/dist/components/form/file-upload.jsx +134 -0
- package/dist/components/form/form.js.map +1 -1
- package/dist/components/form/form.jsx +10 -0
- package/dist/components/form/formReset.jsx +17 -0
- package/dist/components/form/free-text.d.ts.map +1 -1
- package/dist/components/form/free-text.jsx +41 -0
- package/dist/components/form/input-field.d.ts +11 -11
- package/dist/components/form/input-field.d.ts.map +1 -1
- package/dist/components/form/input-field.jsx +58 -0
- package/dist/components/form/input.js +1 -1
- package/dist/components/form/input.jsx +36 -0
- package/dist/components/form/multi-select.d.ts.map +1 -1
- package/dist/components/form/multi-select.jsx +336 -0
- package/dist/components/form/radiobox.js +1 -1
- package/dist/components/form/radiobox.jsx +6 -0
- package/dist/components/form/select.js +3 -3
- package/dist/components/form/select.jsx +42 -0
- package/dist/components/form/slider.jsx +45 -0
- package/dist/components/form/switch.js +2 -2
- package/dist/components/form/switch.js.map +1 -1
- package/dist/components/form/switch.jsx +46 -0
- package/dist/components/form/task-list.jsx +26 -0
- package/dist/components/form/textarea.jsx +12 -0
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +44 -0
- package/dist/components/page-calendar/calendar-header.jsx +83 -0
- package/dist/components/page-calendar/day-view.jsx +94 -0
- package/dist/components/page-calendar/event-pill.d.ts.map +1 -1
- package/dist/components/page-calendar/event-pill.jsx +25 -0
- package/dist/components/page-calendar/index.js +2 -0
- package/dist/components/page-calendar/month-view.jsx +46 -0
- package/dist/components/page-calendar/page-calendar.jsx +41 -0
- package/dist/components/page-calendar/page-calendar.types.js +1 -0
- package/dist/components/page-calendar/page-calendar.utils.js +93 -0
- package/dist/components/page-calendar/week-view.jsx +71 -0
- package/dist/components/table/filter.jsx +141 -0
- package/dist/components/table/group.jsx +68 -0
- package/dist/components/table/index.d.ts +2 -3
- package/dist/components/table/index.d.ts.map +1 -1
- package/dist/components/table/index.jsx +60 -0
- package/dist/components/table/inner-table.d.ts +2 -3
- package/dist/components/table/inner-table.d.ts.map +1 -1
- package/dist/components/table/inner-table.jsx +102 -0
- package/dist/components/table/metadata.jsx +36 -0
- package/dist/components/table/pagination.d.ts +3 -1
- package/dist/components/table/pagination.d.ts.map +1 -1
- package/dist/components/table/pagination.jsx +74 -0
- package/dist/components/table/row.d.ts +4 -5
- package/dist/components/table/row.d.ts.map +1 -1
- package/dist/components/table/row.jsx +49 -0
- package/dist/components/table/sort.d.ts.map +1 -1
- package/dist/components/table/sort.jsx +109 -0
- package/dist/components/table/table-lib.d.ts +1 -1
- package/dist/components/table/table-lib.d.ts.map +1 -1
- package/dist/components/table/table-lib.js +83 -0
- package/dist/components/table/table.context.jsx +4 -0
- package/dist/components/table/table.js +3 -3
- package/dist/components/table/thead.jsx +103 -0
- package/dist/config/context.js +12 -0
- package/dist/config/default-translations.d.ts +4 -0
- package/dist/config/default-translations.d.ts.map +1 -1
- package/dist/config/default-translations.jsx +87 -0
- package/dist/config/default-tweaks.js +4 -0
- package/dist/constants.js +2 -0
- 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/hooks/use-click-outside.js +17 -0
- package/dist/hooks/use-color-parser.js +9 -0
- package/dist/hooks/use-components-provider.jsx +22 -0
- package/dist/hooks/use-debounce.d.ts +3 -3
- package/dist/hooks/use-debounce.d.ts.map +1 -1
- package/dist/hooks/use-debounce.js +12 -0
- package/dist/hooks/use-floating-ref.js +6 -0
- package/dist/hooks/use-form.d.ts +14 -13
- package/dist/hooks/use-form.d.ts.map +1 -1
- package/dist/hooks/use-form.js +563 -0
- package/dist/hooks/use-hover.js +18 -0
- package/dist/hooks/use-input-id.js +5 -0
- package/dist/hooks/use-is-coarse-device.js +12 -0
- package/dist/hooks/use-locale.js +10 -0
- package/dist/hooks/use-media-query.js +25 -0
- package/dist/hooks/use-on-event.js +7 -0
- package/dist/hooks/use-parent.js +21 -0
- package/dist/hooks/use-preferences.js +23 -0
- package/dist/hooks/use-previous.js +9 -0
- package/dist/hooks/use-reactive.js +9 -0
- package/dist/hooks/use-remove-scroll.d.ts.map +1 -1
- package/dist/hooks/use-remove-scroll.js +48 -0
- package/dist/hooks/use-resize-observer.js +17 -0
- package/dist/hooks/use-stable-ref.js +9 -0
- package/dist/hooks/use-swipe.js +17 -0
- package/dist/hooks/use-translations.d.ts +4 -0
- package/dist/hooks/use-translations.d.ts.map +1 -1
- package/dist/hooks/use-translations.js +9 -0
- package/dist/hooks/use-tweaks.js +9 -0
- package/dist/hooks/use-window-size.js +14 -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 +20 -8177
- 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/lib/combi-keys.js +60 -0
- package/dist/lib/dict.d.ts +1 -4
- package/dist/lib/dict.d.ts.map +1 -1
- package/dist/lib/dict.js +28 -0
- package/dist/lib/dom.d.ts +3 -2
- package/dist/lib/dom.d.ts.map +1 -1
- package/dist/lib/dom.js +66 -0
- package/dist/lib/fns.js +46 -0
- package/dist/lib/fzf.d.ts.map +1 -1
- package/dist/lib/fzf.js +115 -0
- package/dist/lib/keyboard-area.js +14 -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/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +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 +99 -86
- package/ai/docs/TransferList.md +0 -142
- 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/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/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/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/input-CrGrSnUt.js.map +0 -1
- package/dist/input-field-5vYcz5tT.js.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/use-translations-BwLKTrZv.js +0 -10
- package/dist/use-translations-BwLKTrZv.js.map +0 -1
package/ai/docs/Wizard.md
CHANGED
|
@@ -21,40 +21,40 @@ import { Wizard } from "@g4rcez/components";
|
|
|
21
21
|
|
|
22
22
|
### Wizard
|
|
23
23
|
|
|
24
|
-
| Prop
|
|
25
|
-
|
|
26
|
-
| `active`
|
|
27
|
-
| `steps`
|
|
28
|
-
| `onClose`
|
|
29
|
-
| `onFinish` | `() => void`
|
|
30
|
-
| `onChange` | `(index: number) => void`
|
|
31
|
-
| `labels`
|
|
24
|
+
| Prop | Type | Default | Description |
|
|
25
|
+
| ---------- | ---------------------------------------------------------------------- | ------- | -------------------------------------------------- |
|
|
26
|
+
| `active` | `boolean` | `false` | Controls whether the wizard is visible |
|
|
27
|
+
| `steps` | `WizardStep[]` | — | Ordered array of step configurations |
|
|
28
|
+
| `onClose` | `() => void` | — | Callback when the user skips or dismisses the tour |
|
|
29
|
+
| `onFinish` | `() => void` | — | Callback when the last step is completed |
|
|
30
|
+
| `onChange` | `(index: number) => void` | — | Callback fired when the step index changes |
|
|
31
|
+
| `labels` | `{ next?: string; skip?: string; finish?: string; previous?: string }` | — | Override button labels |
|
|
32
32
|
|
|
33
33
|
### WizardStep
|
|
34
34
|
|
|
35
|
-
| Prop
|
|
36
|
-
|
|
37
|
-
| `element`
|
|
38
|
-
| `title`
|
|
39
|
-
| `description` | `React.ReactNode`
|
|
40
|
-
| `side`
|
|
41
|
-
| `onEnter`
|
|
42
|
-
| `onNext`
|
|
43
|
-
| `onPrevious`
|
|
35
|
+
| Prop | Type | Default | Description |
|
|
36
|
+
| ------------- | ------------------------------------------------------- | ---------- | ------------------------------------------------------- |
|
|
37
|
+
| `element` | `string \| Element \| React.RefObject<Element \| null>` | — | Target element: CSS selector, DOM element, or React ref |
|
|
38
|
+
| `title` | `React.ReactNode` | — | Step title displayed in the tooltip |
|
|
39
|
+
| `description` | `React.ReactNode` | — | Step body content |
|
|
40
|
+
| `side` | `Placement` | `"bottom"` | Tooltip placement relative to the target element |
|
|
41
|
+
| `onEnter` | `() => void` | — | Called when this step becomes active |
|
|
42
|
+
| `onNext` | `() => void` | — | Called before advancing to the next step |
|
|
43
|
+
| `onPrevious` | `() => void` | — | Called before going back to the previous step |
|
|
44
44
|
|
|
45
45
|
## Design Tokens
|
|
46
46
|
|
|
47
47
|
Tokens this component reads. Customize by overriding these CSS variables in your theme.
|
|
48
48
|
|
|
49
|
-
| Token
|
|
50
|
-
|
|
51
|
-
| `text-floating-overlay`
|
|
52
|
-
| `bg-floating-background` | `--floating-background` | Step tooltip surface background
|
|
53
|
-
| `border-floating-border` | `--floating-border`
|
|
54
|
-
| `z-wizard`
|
|
55
|
-
| `z-floating`
|
|
56
|
-
| `text-muted-foreground`
|
|
57
|
-
| `text-foreground`
|
|
49
|
+
| Token | CSS Variable | Purpose |
|
|
50
|
+
| ------------------------ | ----------------------- | ------------------------------------------- |
|
|
51
|
+
| `text-floating-overlay` | `--floating-overlay` | SVG mask fill color (`/70` opacity applied) |
|
|
52
|
+
| `bg-floating-background` | `--floating-background` | Step tooltip surface background |
|
|
53
|
+
| `border-floating-border` | `--floating-border` | Step tooltip border and footer divider |
|
|
54
|
+
| `z-wizard` | `--z-wizard` | Z-index for the overlay layer |
|
|
55
|
+
| `z-floating` | `--z-floating` | Z-index for the step tooltip |
|
|
56
|
+
| `text-muted-foreground` | `--muted-foreground` | Step counter and skip button text |
|
|
57
|
+
| `text-foreground` | `--foreground` | Skip button hover text |
|
|
58
58
|
|
|
59
59
|
## Examples
|
|
60
60
|
|
|
@@ -66,38 +66,38 @@ import { Wizard } from "@g4rcez/components";
|
|
|
66
66
|
import { Button } from "@g4rcez/components/button";
|
|
67
67
|
|
|
68
68
|
function OnboardingTour() {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
69
|
+
const [active, setActive] = useState(false);
|
|
70
|
+
|
|
71
|
+
const steps = [
|
|
72
|
+
{
|
|
73
|
+
element: "#create-button",
|
|
74
|
+
title: "Create something new",
|
|
75
|
+
description: "Use this button to create a new project.",
|
|
76
|
+
side: "bottom" as const,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
element: "#notifications-bell",
|
|
80
|
+
title: "Stay up to date",
|
|
81
|
+
description: "Check here for the latest updates.",
|
|
82
|
+
side: "left" as const,
|
|
83
|
+
},
|
|
84
|
+
];
|
|
85
|
+
|
|
86
|
+
return (
|
|
87
|
+
<>
|
|
88
|
+
<Button onClick={() => setActive(true)}>Start Tour</Button>
|
|
89
|
+
|
|
90
|
+
<Wizard
|
|
91
|
+
active={active}
|
|
92
|
+
steps={steps}
|
|
93
|
+
onClose={() => setActive(false)}
|
|
94
|
+
onFinish={() => {
|
|
95
|
+
setActive(false);
|
|
96
|
+
console.log("Tour complete");
|
|
97
|
+
}}
|
|
98
|
+
/>
|
|
99
|
+
</>
|
|
100
|
+
);
|
|
101
101
|
}
|
|
102
102
|
```
|
|
103
103
|
|
|
@@ -109,32 +109,27 @@ import { Wizard } from "@g4rcez/components";
|
|
|
109
109
|
import { Button } from "@g4rcez/components/button";
|
|
110
110
|
|
|
111
111
|
function RefTour() {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
onClose={() => setActive(false)}
|
|
134
|
-
labels={{ finish: "Got it!", skip: "No thanks" }}
|
|
135
|
-
/>
|
|
136
|
-
</>
|
|
137
|
-
);
|
|
112
|
+
const [active, setActive] = useState(false);
|
|
113
|
+
const buttonRef = useRef<HTMLButtonElement>(null);
|
|
114
|
+
|
|
115
|
+
const steps = [
|
|
116
|
+
{
|
|
117
|
+
element: buttonRef,
|
|
118
|
+
title: "Action Button",
|
|
119
|
+
description: "Click here to perform the primary action.",
|
|
120
|
+
side: "right" as const,
|
|
121
|
+
},
|
|
122
|
+
];
|
|
123
|
+
|
|
124
|
+
return (
|
|
125
|
+
<>
|
|
126
|
+
<Button ref={buttonRef} theme="primary">
|
|
127
|
+
Primary Action
|
|
128
|
+
</Button>
|
|
129
|
+
|
|
130
|
+
<Wizard active={active} steps={steps} onClose={() => setActive(false)} labels={{ finish: "Got it!", skip: "No thanks" }} />
|
|
131
|
+
</>
|
|
132
|
+
);
|
|
138
133
|
}
|
|
139
134
|
```
|
|
140
135
|
|
|
@@ -142,19 +137,19 @@ function RefTour() {
|
|
|
142
137
|
|
|
143
138
|
```tsx
|
|
144
139
|
const steps = [
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
140
|
+
{
|
|
141
|
+
element: "#dashboard-chart",
|
|
142
|
+
title: "Your Analytics",
|
|
143
|
+
description: "This chart shows activity for the last 30 days.",
|
|
144
|
+
onEnter: () => console.log("User reached analytics step"),
|
|
145
|
+
onNext: () => console.log("User advancing past analytics"),
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
element: "#export-button",
|
|
149
|
+
title: "Export Data",
|
|
150
|
+
description: "Download your data at any time.",
|
|
151
|
+
side: "left" as const,
|
|
152
|
+
},
|
|
158
153
|
];
|
|
159
154
|
```
|
|
160
155
|
|
|
@@ -162,16 +157,16 @@ const steps = [
|
|
|
162
157
|
|
|
163
158
|
```tsx
|
|
164
159
|
<Wizard
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
160
|
+
active={active}
|
|
161
|
+
steps={steps}
|
|
162
|
+
onClose={() => setActive(false)}
|
|
163
|
+
onFinish={() => setActive(false)}
|
|
164
|
+
labels={{
|
|
165
|
+
next: "Continue",
|
|
166
|
+
previous: "Back",
|
|
167
|
+
skip: "Skip tour",
|
|
168
|
+
finish: "Done",
|
|
169
|
+
}}
|
|
175
170
|
/>
|
|
176
171
|
```
|
|
177
172
|
|
|
@@ -200,8 +195,8 @@ const steps = [
|
|
|
200
195
|
|
|
201
196
|
## Data Attributes
|
|
202
197
|
|
|
203
|
-
| Attribute
|
|
204
|
-
|
|
198
|
+
| Attribute | Applied to | Description |
|
|
199
|
+
| ------------------------- | --------------------- | ---------------------------------- |
|
|
205
200
|
| `data-component="wizard"` | Main wizard container | Identifies the wizard overlay root |
|
|
206
201
|
|
|
207
202
|
## Notes
|
package/ai/docs/index.md
CHANGED
|
@@ -9,148 +9,148 @@ package: "@g4rcez/components"
|
|
|
9
9
|
A design system library built on React, Tailwind CSS, and design tokens.
|
|
10
10
|
|
|
11
11
|
**Installation:**
|
|
12
|
+
|
|
12
13
|
```bash
|
|
13
14
|
npm install @g4rcez/components
|
|
14
15
|
```
|
|
15
16
|
|
|
16
17
|
**Setup:**
|
|
18
|
+
|
|
17
19
|
```tsx
|
|
18
20
|
import "@g4rcez/components/index.css";
|
|
19
21
|
```
|
|
20
22
|
|
|
21
23
|
## All Components
|
|
22
24
|
|
|
23
|
-
| Component
|
|
24
|
-
|
|
25
|
-
| Button
|
|
26
|
-
| Tag
|
|
27
|
-
| Heading
|
|
28
|
-
| Polymorph
|
|
29
|
-
| RenderOnView
|
|
30
|
-
| Resizable
|
|
31
|
-
| Slot
|
|
32
|
-
| Typography
|
|
33
|
-
| Alert
|
|
34
|
-
| AnimatedList
|
|
35
|
-
| Calendar
|
|
36
|
-
| Card
|
|
37
|
-
| Empty
|
|
38
|
-
| List
|
|
39
|
-
| Notifications
|
|
40
|
-
| Progress
|
|
41
|
-
| Shortcut
|
|
42
|
-
| Skeleton
|
|
43
|
-
| Spinner
|
|
44
|
-
| Stats
|
|
45
|
-
| Step
|
|
46
|
-
| Tabs
|
|
47
|
-
| Timeline
|
|
48
|
-
| Autocomplete
|
|
49
|
-
| Checkbox
|
|
50
|
-
| DatePicker
|
|
51
|
-
| FileUpload
|
|
52
|
-
| Form
|
|
53
|
-
| FormReset
|
|
54
|
-
| Input
|
|
55
|
-
| InputField
|
|
56
|
-
| MultiSelect
|
|
57
|
-
| Radiobox
|
|
58
|
-
| Select
|
|
59
|
-
| Slider
|
|
60
|
-
| Switch
|
|
61
|
-
| TaskList
|
|
62
|
-
| Textarea
|
|
63
|
-
|
|
|
64
|
-
|
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
-
|
|
|
71
|
-
|
|
|
72
|
-
|
|
|
73
|
-
| PageCalendar | Calendar | `import { PageCalendar } from "@g4rcez/components"` | Full-page calendar with month, week, and day views |
|
|
25
|
+
| Component | Category | Import | Description |
|
|
26
|
+
| -------------- | -------- | ------------------------------------------------------------------ | ------------------------------------------------------------------------- |
|
|
27
|
+
| Button | Core | `import { Button } from "@g4rcez/components/button"` | Versatile button with multiple variants, sizes, and polymorphic rendering |
|
|
28
|
+
| Tag | Core | `import { Tag } from "@g4rcez/components/tag"` | Label/badge for metadata, status, and categorization |
|
|
29
|
+
| Heading | Core | `import { Heading } from "@g4rcez/components"` | Semantic heading with consistent typography tokens |
|
|
30
|
+
| Polymorph | Core | `import { Polymorph } from "@g4rcez/components"` | Polymorphic base component for rendering as any HTML element |
|
|
31
|
+
| RenderOnView | Core | `import { RenderOnView } from "@g4rcez/components"` | Lazy-renders children when they scroll into the viewport |
|
|
32
|
+
| Resizable | Core | `import { Resizable } from "@g4rcez/components"` | Drag-to-resize panel container |
|
|
33
|
+
| Slot | Core | `import { Slot } from "@g4rcez/components"` | Render-prop slot for component composition |
|
|
34
|
+
| Typography | Core | `import { Typography } from "@g4rcez/components"` | Body text component with semantic token styling |
|
|
35
|
+
| Alert | Display | `import { Alert } from "@g4rcez/components/alert"` | Dismissible alert for messages, warnings, and status updates |
|
|
36
|
+
| AnimatedList | Display | `import { AnimatedList } from "@g4rcez/components"` | List with enter/exit animation for dynamic items |
|
|
37
|
+
| Calendar | Display | `import { Calendar } from "@g4rcez/components/calendar"` | Inline date picker calendar |
|
|
38
|
+
| Card | Display | `import { Card } from "@g4rcez/components/card"` | Surface container with card tokens and elevation |
|
|
39
|
+
| Empty | Display | `import { Empty } from "@g4rcez/components"` | Empty state placeholder with optional icon and action |
|
|
40
|
+
| List | Display | `import { List } from "@g4rcez/components/list"` | Virtualized scrollable list for large data sets |
|
|
41
|
+
| Notifications | Display | `import { Notifications } from "@g4rcez/components/notifications"` | Toast notification system with queue management |
|
|
42
|
+
| Progress | Display | `import { Progress } from "@g4rcez/components"` | Progress bar with themed fill |
|
|
43
|
+
| Shortcut | Display | `import { Shortcut } from "@g4rcez/components"` | Keyboard shortcut badge display |
|
|
44
|
+
| Skeleton | Display | `import { Skeleton } from "@g4rcez/components"` | Loading placeholder with pulse animation |
|
|
45
|
+
| Spinner | Display | `import { Spinner } from "@g4rcez/components"` | Animated loading spinner |
|
|
46
|
+
| Stats | Display | `import { Stats } from "@g4rcez/components/stats"` | Metric/statistics display with label and value |
|
|
47
|
+
| Step | Display | `import { Step } from "@g4rcez/components"` | Multi-step wizard progress indicator |
|
|
48
|
+
| Tabs | Display | `import { Tabs } from "@g4rcez/components/tabs"` | Tabbed navigation with panel switching |
|
|
49
|
+
| Timeline | Display | `import { Timeline } from "@g4rcez/components/timeline"` | Vertical event timeline with themed markers |
|
|
50
|
+
| Autocomplete | Form | `import { Autocomplete } from "@g4rcez/components/autocomplete"` | Text input with dropdown suggestions |
|
|
51
|
+
| Checkbox | Form | `import { Checkbox } from "@g4rcez/components/checkbox"` | Checkbox with indeterminate support |
|
|
52
|
+
| DatePicker | Form | `import { DatePicker } from "@g4rcez/components/date-picker"` | Date input with calendar popover |
|
|
53
|
+
| FileUpload | Form | `import { FileUpload } from "@g4rcez/components/file-upload"` | Drag-and-drop file upload with preview |
|
|
54
|
+
| Form | Form | `import { Form } from "@g4rcez/components/form"` | Form wrapper with Zod validation and field management |
|
|
55
|
+
| FormReset | Form | `import { FormReset } from "@g4rcez/components"` | Reset button wired to the nearest Form context |
|
|
56
|
+
| Input | Form | `import { Input } from "@g4rcez/components/input"` | Text input with mask, prefix/suffix, and error states |
|
|
57
|
+
| InputField | Form | `import { InputField } from "@g4rcez/components"` | Input with label, helper text, and error message |
|
|
58
|
+
| MultiSelect | Form | `import { MultiSelect } from "@g4rcez/components"` | Multi-value select with search and tag display |
|
|
59
|
+
| Radiobox | Form | `import { Radiobox } from "@g4rcez/components/radiobox"` | Styled radio button group |
|
|
60
|
+
| Select | Form | `import { Select } from "@g4rcez/components/select"` | Dropdown select with search and virtual scroll |
|
|
61
|
+
| Slider | Form | `import { Slider } from "@g4rcez/components"` | Range slider input |
|
|
62
|
+
| Switch | Form | `import { Switch } from "@g4rcez/components/switch"` | Toggle switch for boolean values |
|
|
63
|
+
| TaskList | Form | `import { TaskList } from "@g4rcez/components/task-list"` | Checklist with completion tracking |
|
|
64
|
+
| Textarea | Form | `import { Textarea } from "@g4rcez/components"` | Multi-line text input with auto-resize |
|
|
65
|
+
| CommandPalette | Floating | `import { CommandPalette } from "@g4rcez/components"` | Spotlight-style command palette with keyboard navigation |
|
|
66
|
+
| Dropdown | Floating | `import { Dropdown } from "@g4rcez/components/dropdown"` | Floating dropdown menu anchored to a trigger |
|
|
67
|
+
| Expand | Floating | `import { Expand } from "@g4rcez/components/expand"` | Collapsible accordion/expand panel |
|
|
68
|
+
| Menu | Floating | `import { Menu } from "@g4rcez/components/menu"` | Context menu or navigation menu |
|
|
69
|
+
| Modal | Floating | `import { Modal } from "@g4rcez/components/modal"` | Dialog overlay with focus trap and scroll lock |
|
|
70
|
+
| Toolbar | Floating | `import { Toolbar } from "@g4rcez/components"` | Grouped action bar with button slots |
|
|
71
|
+
| Tooltip | Floating | `import { Tooltip } from "@g4rcez/components/tooltip"` | Hover tooltip with floating positioning |
|
|
72
|
+
| Wizard | Floating | `import { Wizard } from "@g4rcez/components"` | Multi-step guided flow overlay |
|
|
73
|
+
| Table | Table | `import { Table } from "@g4rcez/components/table"` | Feature-rich data table with sorting, filtering, and virtualization |
|
|
74
|
+
| PageCalendar | Calendar | `import { PageCalendar } from "@g4rcez/components"` | Full-page calendar with month, week, and day views |
|
|
74
75
|
|
|
75
76
|
---
|
|
76
77
|
|
|
77
78
|
## Core
|
|
78
79
|
|
|
79
|
-
| Component
|
|
80
|
-
|
|
81
|
-
| Button
|
|
82
|
-
| Tag
|
|
83
|
-
| Heading
|
|
84
|
-
| Polymorph
|
|
85
|
-
| RenderOnView | `import { RenderOnView } from "@g4rcez/components"`
|
|
86
|
-
| Resizable
|
|
87
|
-
| Slot
|
|
88
|
-
| Typography
|
|
80
|
+
| Component | Import | Description |
|
|
81
|
+
| ------------ | ---------------------------------------------------- | ------------------------------------------------------------------------- |
|
|
82
|
+
| Button | `import { Button } from "@g4rcez/components/button"` | Versatile button with multiple variants, sizes, and polymorphic rendering |
|
|
83
|
+
| Tag | `import { Tag } from "@g4rcez/components/tag"` | Label/badge for metadata, status, and categorization |
|
|
84
|
+
| Heading | `import { Heading } from "@g4rcez/components"` | Semantic heading with consistent typography tokens |
|
|
85
|
+
| Polymorph | `import { Polymorph } from "@g4rcez/components"` | Polymorphic base component for rendering as any HTML element |
|
|
86
|
+
| RenderOnView | `import { RenderOnView } from "@g4rcez/components"` | Lazy-renders children when they scroll into the viewport |
|
|
87
|
+
| Resizable | `import { Resizable } from "@g4rcez/components"` | Drag-to-resize panel container |
|
|
88
|
+
| Slot | `import { Slot } from "@g4rcez/components"` | Render-prop slot for component composition |
|
|
89
|
+
| Typography | `import { Typography } from "@g4rcez/components"` | Body text component with semantic token styling |
|
|
89
90
|
|
|
90
91
|
## Display
|
|
91
92
|
|
|
92
|
-
| Component
|
|
93
|
-
|
|
94
|
-
| Alert
|
|
95
|
-
| AnimatedList
|
|
96
|
-
| Calendar
|
|
97
|
-
| Card
|
|
98
|
-
| Empty
|
|
99
|
-
| List
|
|
100
|
-
| Notifications | `import { Notifications } from "@g4rcez/components/notifications"` | Toast notification system with queue management
|
|
101
|
-
| Progress
|
|
102
|
-
| Shortcut
|
|
103
|
-
| Skeleton
|
|
104
|
-
| Spinner
|
|
105
|
-
| Stats
|
|
106
|
-
| Step
|
|
107
|
-
| Tabs
|
|
108
|
-
| Timeline
|
|
93
|
+
| Component | Import | Description |
|
|
94
|
+
| ------------- | ------------------------------------------------------------------ | ------------------------------------------------------------ |
|
|
95
|
+
| Alert | `import { Alert } from "@g4rcez/components/alert"` | Dismissible alert for messages, warnings, and status updates |
|
|
96
|
+
| AnimatedList | `import { AnimatedList } from "@g4rcez/components"` | List with enter/exit animation for dynamic items |
|
|
97
|
+
| Calendar | `import { Calendar } from "@g4rcez/components/calendar"` | Inline date picker calendar |
|
|
98
|
+
| Card | `import { Card } from "@g4rcez/components/card"` | Surface container with card tokens and elevation |
|
|
99
|
+
| Empty | `import { Empty } from "@g4rcez/components"` | Empty state placeholder with optional icon and action |
|
|
100
|
+
| List | `import { List } from "@g4rcez/components/list"` | Virtualized scrollable list for large data sets |
|
|
101
|
+
| Notifications | `import { Notifications } from "@g4rcez/components/notifications"` | Toast notification system with queue management |
|
|
102
|
+
| Progress | `import { Progress } from "@g4rcez/components"` | Progress bar with themed fill |
|
|
103
|
+
| Shortcut | `import { Shortcut } from "@g4rcez/components"` | Keyboard shortcut badge display |
|
|
104
|
+
| Skeleton | `import { Skeleton } from "@g4rcez/components"` | Loading placeholder with pulse animation |
|
|
105
|
+
| Spinner | `import { Spinner } from "@g4rcez/components"` | Animated loading spinner |
|
|
106
|
+
| Stats | `import { Stats } from "@g4rcez/components/stats"` | Metric/statistics display with label and value |
|
|
107
|
+
| Step | `import { Step } from "@g4rcez/components"` | Multi-step wizard progress indicator |
|
|
108
|
+
| Tabs | `import { Tabs } from "@g4rcez/components/tabs"` | Tabbed navigation with panel switching |
|
|
109
|
+
| Timeline | `import { Timeline } from "@g4rcez/components/timeline"` | Vertical event timeline with themed markers |
|
|
109
110
|
|
|
110
111
|
## Form
|
|
111
112
|
|
|
112
|
-
| Component
|
|
113
|
-
|
|
114
|
-
| Autocomplete | `import { Autocomplete } from "@g4rcez/components/autocomplete"`
|
|
115
|
-
| Checkbox
|
|
116
|
-
| DatePicker
|
|
117
|
-
| FileUpload
|
|
118
|
-
| Form
|
|
119
|
-
| FormReset
|
|
120
|
-
| Input
|
|
121
|
-
| InputField
|
|
122
|
-
| MultiSelect
|
|
123
|
-
| Radiobox
|
|
124
|
-
| Select
|
|
125
|
-
| Slider
|
|
126
|
-
| Switch
|
|
127
|
-
| TaskList
|
|
128
|
-
| Textarea
|
|
129
|
-
| TransferList | `import { TransferList } from "@g4rcez/components/transfer-list"` | Dual-pane list for moving items between sets |
|
|
113
|
+
| Component | Import | Description |
|
|
114
|
+
| ------------ | ----------------------------------------------------------------- | ----------------------------------------------------- |
|
|
115
|
+
| Autocomplete | `import { Autocomplete } from "@g4rcez/components/autocomplete"` | Text input with dropdown suggestions |
|
|
116
|
+
| Checkbox | `import { Checkbox } from "@g4rcez/components/checkbox"` | Checkbox with indeterminate support |
|
|
117
|
+
| DatePicker | `import { DatePicker } from "@g4rcez/components/date-picker"` | Date input with calendar popover |
|
|
118
|
+
| FileUpload | `import { FileUpload } from "@g4rcez/components/file-upload"` | Drag-and-drop file upload with preview |
|
|
119
|
+
| Form | `import { Form } from "@g4rcez/components/form"` | Form wrapper with Zod validation and field management |
|
|
120
|
+
| FormReset | `import { FormReset } from "@g4rcez/components"` | Reset button wired to the nearest Form context |
|
|
121
|
+
| Input | `import { Input } from "@g4rcez/components/input"` | Text input with mask, prefix/suffix, and error states |
|
|
122
|
+
| InputField | `import { InputField } from "@g4rcez/components"` | Input with label, helper text, and error message |
|
|
123
|
+
| MultiSelect | `import { MultiSelect } from "@g4rcez/components"` | Multi-value select with search and tag display |
|
|
124
|
+
| Radiobox | `import { Radiobox } from "@g4rcez/components/radiobox"` | Styled radio button group |
|
|
125
|
+
| Select | `import { Select } from "@g4rcez/components/select"` | Dropdown select with search and virtual scroll |
|
|
126
|
+
| Slider | `import { Slider } from "@g4rcez/components"` | Range slider input |
|
|
127
|
+
| Switch | `import { Switch } from "@g4rcez/components/switch"` | Toggle switch for boolean values |
|
|
128
|
+
| TaskList | `import { TaskList } from "@g4rcez/components/task-list"` | Checklist with completion tracking |
|
|
129
|
+
| Textarea | `import { Textarea } from "@g4rcez/components"` | Multi-line text input with auto-resize |
|
|
130
130
|
|
|
131
131
|
## Floating
|
|
132
132
|
|
|
133
|
-
| Component
|
|
134
|
-
|
|
135
|
-
| CommandPalette | `import { CommandPalette } from "@g4rcez/components"`
|
|
136
|
-
| Dropdown
|
|
137
|
-
| Expand
|
|
138
|
-
| Menu
|
|
139
|
-
| Modal
|
|
140
|
-
| Toolbar
|
|
141
|
-
| Tooltip
|
|
142
|
-
| Wizard
|
|
133
|
+
| Component | Import | Description |
|
|
134
|
+
| -------------- | -------------------------------------------------------- | -------------------------------------------------------- |
|
|
135
|
+
| CommandPalette | `import { CommandPalette } from "@g4rcez/components"` | Spotlight-style command palette with keyboard navigation |
|
|
136
|
+
| Dropdown | `import { Dropdown } from "@g4rcez/components/dropdown"` | Floating dropdown menu anchored to a trigger |
|
|
137
|
+
| Expand | `import { Expand } from "@g4rcez/components/expand"` | Collapsible accordion/expand panel |
|
|
138
|
+
| Menu | `import { Menu } from "@g4rcez/components/menu"` | Context menu or navigation menu |
|
|
139
|
+
| Modal | `import { Modal } from "@g4rcez/components/modal"` | Dialog overlay with focus trap and scroll lock |
|
|
140
|
+
| Toolbar | `import { Toolbar } from "@g4rcez/components"` | Grouped action bar with button slots |
|
|
141
|
+
| Tooltip | `import { Tooltip } from "@g4rcez/components/tooltip"` | Hover tooltip with floating positioning |
|
|
142
|
+
| Wizard | `import { Wizard } from "@g4rcez/components"` | Multi-step guided flow overlay |
|
|
143
143
|
|
|
144
144
|
## Table
|
|
145
145
|
|
|
146
|
-
| Component | Import
|
|
147
|
-
|
|
148
|
-
| Table
|
|
146
|
+
| Component | Import | Description |
|
|
147
|
+
| --------- | -------------------------------------------------- | ------------------------------------------------------------------- |
|
|
148
|
+
| Table | `import { Table } from "@g4rcez/components/table"` | Feature-rich data table with sorting, filtering, and virtualization |
|
|
149
149
|
|
|
150
150
|
## Calendar
|
|
151
151
|
|
|
152
|
-
| Component
|
|
153
|
-
|
|
152
|
+
| Component | Import | Description |
|
|
153
|
+
| ------------ | --------------------------------------------------- | -------------------------------------------------- |
|
|
154
154
|
| PageCalendar | `import { PageCalendar } from "@g4rcez/components"` | Full-page calendar with month, week, and day views |
|
|
155
155
|
|
|
156
156
|
---
|
|
@@ -161,10 +161,10 @@ All components use CSS custom properties for theming. Override in your `@theme`
|
|
|
161
161
|
|
|
162
162
|
```css
|
|
163
163
|
@theme {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
164
|
+
--primary: oklch(0.6 0.2 250); /* primary color */
|
|
165
|
+
--danger: oklch(0.6 0.2 30); /* danger/error color */
|
|
166
|
+
--button-primary-bg: var(--primary);
|
|
167
|
+
--button-primary-text: var(--primary-foreground);
|
|
168
168
|
}
|
|
169
169
|
```
|
|
170
170
|
|
|
@@ -179,5 +179,5 @@ See individual component docs for the full token list per component.
|
|
|
179
179
|
import "@g4rcez/components/index.css";
|
|
180
180
|
|
|
181
181
|
// 2. Apply theme class on your root element
|
|
182
|
-
<div className="light"> ... </div
|
|
182
|
+
<div className="light"> ... </div>; // or "dark"
|
|
183
183
|
```
|