@kanzo-tech/ui 0.0.1-alpha
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 +60 -0
- package/dist/analytics.d.ts +36 -0
- package/dist/analytics.d.ts.map +1 -0
- package/dist/analytics.js +155 -0
- package/dist/analytics.js.map +1 -0
- package/dist/charts/arrow.d.ts +37 -0
- package/dist/charts/arrow.d.ts.map +1 -0
- package/dist/charts/arrow.js +29 -0
- package/dist/charts/arrow.js.map +1 -0
- package/dist/charts/chart-axes.d.ts +59 -0
- package/dist/charts/chart-axes.d.ts.map +1 -0
- package/dist/charts/chart-axes.js +39 -0
- package/dist/charts/chart-axes.js.map +1 -0
- package/dist/charts/chart-config.d.ts +52 -0
- package/dist/charts/chart-config.d.ts.map +1 -0
- package/dist/charts/chart-config.js +43 -0
- package/dist/charts/chart-config.js.map +1 -0
- package/dist/charts/chart-inputs.d.ts +174 -0
- package/dist/charts/chart-inputs.d.ts.map +1 -0
- package/dist/charts/chart-inputs.js +382 -0
- package/dist/charts/chart-inputs.js.map +1 -0
- package/dist/charts/chart-interactors.d.ts +75 -0
- package/dist/charts/chart-interactors.d.ts.map +1 -0
- package/dist/charts/chart-interactors.js +35 -0
- package/dist/charts/chart-interactors.js.map +1 -0
- package/dist/charts/chart-legend.d.ts +38 -0
- package/dist/charts/chart-legend.d.ts.map +1 -0
- package/dist/charts/chart-legend.js +49 -0
- package/dist/charts/chart-legend.js.map +1 -0
- package/dist/charts/chart-marks.d.ts +124 -0
- package/dist/charts/chart-marks.d.ts.map +1 -0
- package/dist/charts/chart-marks.js +109 -0
- package/dist/charts/chart-marks.js.map +1 -0
- package/dist/charts/chart-root.d.ts +90 -0
- package/dist/charts/chart-root.d.ts.map +1 -0
- package/dist/charts/chart-root.js +162 -0
- package/dist/charts/chart-root.js.map +1 -0
- package/dist/charts/chart-spec.d.ts +126 -0
- package/dist/charts/chart-spec.d.ts.map +1 -0
- package/dist/charts/chart-spec.js +133 -0
- package/dist/charts/chart-spec.js.map +1 -0
- package/dist/charts/chart-stat.d.ts +23 -0
- package/dist/charts/chart-stat.d.ts.map +1 -0
- package/dist/charts/chart-stat.js +24 -0
- package/dist/charts/chart-stat.js.map +1 -0
- package/dist/charts/id-set-client.d.ts +42 -0
- package/dist/charts/id-set-client.d.ts.map +1 -0
- package/dist/charts/id-set-client.js +43 -0
- package/dist/charts/id-set-client.js.map +1 -0
- package/dist/charts/mosaic-provider.d.ts +70 -0
- package/dist/charts/mosaic-provider.d.ts.map +1 -0
- package/dist/charts/mosaic-provider.js +53 -0
- package/dist/charts/mosaic-provider.js.map +1 -0
- package/dist/charts/query-client.d.ts +22 -0
- package/dist/charts/query-client.d.ts.map +1 -0
- package/dist/charts/query-client.js +26 -0
- package/dist/charts/query-client.js.map +1 -0
- package/dist/charts/tokenized-plot.d.ts +26 -0
- package/dist/charts/tokenized-plot.d.ts.map +1 -0
- package/dist/charts/tokenized-plot.js +41 -0
- package/dist/charts/tokenized-plot.js.map +1 -0
- package/dist/charts/use-chart-query.d.ts +30 -0
- package/dist/charts/use-chart-query.d.ts.map +1 -0
- package/dist/charts/use-chart-query.js +19 -0
- package/dist/charts/use-chart-query.js.map +1 -0
- package/dist/composites/CodeEditor.d.ts +64 -0
- package/dist/composites/CodeEditor.d.ts.map +1 -0
- package/dist/composites/CodeEditor.js +521 -0
- package/dist/composites/CodeEditor.js.map +1 -0
- package/dist/composites/MadeWith.d.ts +39 -0
- package/dist/composites/MadeWith.d.ts.map +1 -0
- package/dist/composites/MadeWith.js +30 -0
- package/dist/composites/MadeWith.js.map +1 -0
- package/dist/composites/Preferences.d.ts +155 -0
- package/dist/composites/Preferences.d.ts.map +1 -0
- package/dist/composites/Preferences.js +501 -0
- package/dist/composites/Preferences.js.map +1 -0
- package/dist/composites/Questionnaire.d.ts +215 -0
- package/dist/composites/Questionnaire.d.ts.map +1 -0
- package/dist/composites/Questionnaire.js +422 -0
- package/dist/composites/Questionnaire.js.map +1 -0
- package/dist/composites/SidebarIdentity.d.ts +63 -0
- package/dist/composites/SidebarIdentity.d.ts.map +1 -0
- package/dist/composites/SidebarIdentity.js +103 -0
- package/dist/composites/SidebarIdentity.js.map +1 -0
- package/dist/composites/code-editor-search.d.ts +40 -0
- package/dist/composites/code-editor-search.d.ts.map +1 -0
- package/dist/composites/code-editor-search.js +212 -0
- package/dist/composites/code-editor-search.js.map +1 -0
- package/dist/composites/sidebar.d.ts +129 -0
- package/dist/composites/sidebar.d.ts.map +1 -0
- package/dist/composites/sidebar.js +671 -0
- package/dist/composites/sidebar.js.map +1 -0
- package/dist/composites/theme-notice.d.ts +54 -0
- package/dist/composites/theme-notice.d.ts.map +1 -0
- package/dist/composites/theme-notice.js +19 -0
- package/dist/composites/theme-notice.js.map +1 -0
- package/dist/editor.d.ts +3 -0
- package/dist/editor.d.ts.map +1 -0
- package/dist/editor.js +6 -0
- package/dist/editor.js.map +1 -0
- package/dist/guard-corpus.d.ts +63 -0
- package/dist/guard-corpus.d.ts.map +1 -0
- package/dist/index.d.ts +112 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +696 -0
- package/dist/index.js.map +1 -0
- package/dist/layouts/section.d.ts +166 -0
- package/dist/layouts/section.d.ts.map +1 -0
- package/dist/layouts/section.js +153 -0
- package/dist/layouts/section.js.map +1 -0
- package/dist/layouts/shell.d.ts +128 -0
- package/dist/layouts/shell.d.ts.map +1 -0
- package/dist/layouts/shell.js +107 -0
- package/dist/layouts/shell.js.map +1 -0
- package/dist/lib/cn.d.ts +4 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/cn.js +9 -0
- package/dist/lib/cn.js.map +1 -0
- package/dist/lib/is-active-path.d.ts +13 -0
- package/dist/lib/is-active-path.d.ts.map +1 -0
- package/dist/lib/is-active-path.js +7 -0
- package/dist/lib/is-active-path.js.map +1 -0
- package/dist/lib/theme-tick.d.ts +37 -0
- package/dist/lib/theme-tick.d.ts.map +1 -0
- package/dist/lib/theme-tick.js +30 -0
- package/dist/lib/theme-tick.js.map +1 -0
- package/dist/lib/token-color.d.ts +74 -0
- package/dist/lib/token-color.d.ts.map +1 -0
- package/dist/lib/token-color.js +35 -0
- package/dist/lib/token-color.js.map +1 -0
- package/dist/lib/use-is-mobile.d.ts +2 -0
- package/dist/lib/use-is-mobile.d.ts.map +1 -0
- package/dist/lib/use-is-mobile.js +17 -0
- package/dist/lib/use-is-mobile.js.map +1 -0
- package/dist/shark-parity.divergences.d.ts +104 -0
- package/dist/shark-parity.divergences.d.ts.map +1 -0
- package/dist/simples/FacetFilter.d.ts +57 -0
- package/dist/simples/FacetFilter.d.ts.map +1 -0
- package/dist/simples/FacetFilter.js +167 -0
- package/dist/simples/FacetFilter.js.map +1 -0
- package/dist/simples/FieldArray.d.ts +42 -0
- package/dist/simples/FieldArray.d.ts.map +1 -0
- package/dist/simples/FieldArray.js +76 -0
- package/dist/simples/FieldArray.js.map +1 -0
- package/dist/simples/Link.d.ts +38 -0
- package/dist/simples/Link.d.ts.map +1 -0
- package/dist/simples/Link.js +24 -0
- package/dist/simples/Link.js.map +1 -0
- package/dist/simples/accordion.d.ts +8 -0
- package/dist/simples/accordion.d.ts.map +1 -0
- package/dist/simples/accordion.js +78 -0
- package/dist/simples/accordion.js.map +1 -0
- package/dist/simples/action-bar.d.ts +101 -0
- package/dist/simples/action-bar.d.ts.map +1 -0
- package/dist/simples/action-bar.js +195 -0
- package/dist/simples/action-bar.js.map +1 -0
- package/dist/simples/alert-dialog.d.ts +24 -0
- package/dist/simples/alert-dialog.d.ts.map +1 -0
- package/dist/simples/alert-dialog.js +43 -0
- package/dist/simples/alert-dialog.js.map +1 -0
- package/dist/simples/alert.d.ts +36 -0
- package/dist/simples/alert.d.ts.map +1 -0
- package/dist/simples/alert.js +123 -0
- package/dist/simples/alert.js.map +1 -0
- package/dist/simples/avatar.d.ts +37 -0
- package/dist/simples/avatar.d.ts.map +1 -0
- package/dist/simples/avatar.js +133 -0
- package/dist/simples/avatar.js.map +1 -0
- package/dist/simples/badge.d.ts +66 -0
- package/dist/simples/badge.d.ts.map +1 -0
- package/dist/simples/badge.js +138 -0
- package/dist/simples/badge.js.map +1 -0
- package/dist/simples/breadcrumb.d.ts +19 -0
- package/dist/simples/breadcrumb.d.ts.map +1 -0
- package/dist/simples/breadcrumb.js +107 -0
- package/dist/simples/breadcrumb.js.map +1 -0
- package/dist/simples/button-group.d.ts +19 -0
- package/dist/simples/button-group.d.ts.map +1 -0
- package/dist/simples/button-group.js +69 -0
- package/dist/simples/button-group.js.map +1 -0
- package/dist/simples/button.d.ts +148 -0
- package/dist/simples/button.d.ts.map +1 -0
- package/dist/simples/button.js +157 -0
- package/dist/simples/button.js.map +1 -0
- package/dist/simples/calendar.d.ts +45 -0
- package/dist/simples/calendar.d.ts.map +1 -0
- package/dist/simples/calendar.js +342 -0
- package/dist/simples/calendar.js.map +1 -0
- package/dist/simples/card.d.ts +43 -0
- package/dist/simples/card.d.ts.map +1 -0
- package/dist/simples/card.js +151 -0
- package/dist/simples/card.js.map +1 -0
- package/dist/simples/checkbox.d.ts +25 -0
- package/dist/simples/checkbox.d.ts.map +1 -0
- package/dist/simples/checkbox.js +103 -0
- package/dist/simples/checkbox.js.map +1 -0
- package/dist/simples/client-only.d.ts +3 -0
- package/dist/simples/client-only.d.ts.map +1 -0
- package/dist/simples/client-only.js +7 -0
- package/dist/simples/client-only.js.map +1 -0
- package/dist/simples/clipboard.d.ts +11 -0
- package/dist/simples/clipboard.d.ts.map +1 -0
- package/dist/simples/clipboard.js +99 -0
- package/dist/simples/clipboard.js.map +1 -0
- package/dist/simples/collapsible.d.ts +8 -0
- package/dist/simples/collapsible.d.ts.map +1 -0
- package/dist/simples/collapsible.js +79 -0
- package/dist/simples/collapsible.js.map +1 -0
- package/dist/simples/color-picker.d.ts +62 -0
- package/dist/simples/color-picker.d.ts.map +1 -0
- package/dist/simples/color-picker.js +391 -0
- package/dist/simples/color-picker.js.map +1 -0
- package/dist/simples/combobox.d.ts +66 -0
- package/dist/simples/combobox.d.ts.map +1 -0
- package/dist/simples/combobox.js +230 -0
- package/dist/simples/combobox.js.map +1 -0
- package/dist/simples/command.d.ts +45 -0
- package/dist/simples/command.d.ts.map +1 -0
- package/dist/simples/command.js +180 -0
- package/dist/simples/command.js.map +1 -0
- package/dist/simples/data-list.d.ts +25 -0
- package/dist/simples/data-list.d.ts.map +1 -0
- package/dist/simples/data-list.js +62 -0
- package/dist/simples/data-list.js.map +1 -0
- package/dist/simples/date-picker.d.ts +16 -0
- package/dist/simples/date-picker.d.ts.map +1 -0
- package/dist/simples/date-picker.js +117 -0
- package/dist/simples/date-picker.js.map +1 -0
- package/dist/simples/diagnostic.d.ts +138 -0
- package/dist/simples/diagnostic.d.ts.map +1 -0
- package/dist/simples/diagnostic.js +288 -0
- package/dist/simples/diagnostic.js.map +1 -0
- package/dist/simples/dialog.d.ts +100 -0
- package/dist/simples/dialog.d.ts.map +1 -0
- package/dist/simples/dialog.js +267 -0
- package/dist/simples/dialog.js.map +1 -0
- package/dist/simples/download-trigger.d.ts +3 -0
- package/dist/simples/download-trigger.d.ts.map +1 -0
- package/dist/simples/download-trigger.js +7 -0
- package/dist/simples/download-trigger.js.map +1 -0
- package/dist/simples/editable.d.ts +23 -0
- package/dist/simples/editable.d.ts.map +1 -0
- package/dist/simples/editable.js +70 -0
- package/dist/simples/editable.js.map +1 -0
- package/dist/simples/field.d.ts +58 -0
- package/dist/simples/field.d.ts.map +1 -0
- package/dist/simples/field.js +285 -0
- package/dist/simples/field.js.map +1 -0
- package/dist/simples/file-upload.d.ts +19 -0
- package/dist/simples/file-upload.d.ts.map +1 -0
- package/dist/simples/file-upload.js +192 -0
- package/dist/simples/file-upload.js.map +1 -0
- package/dist/simples/float.d.ts +45 -0
- package/dist/simples/float.d.ts.map +1 -0
- package/dist/simples/float.js +40 -0
- package/dist/simples/float.js.map +1 -0
- package/dist/simples/floating-panel.d.ts +25 -0
- package/dist/simples/floating-panel.d.ts.map +1 -0
- package/dist/simples/floating-panel.js +95 -0
- package/dist/simples/floating-panel.js.map +1 -0
- package/dist/simples/highlight.d.ts +6 -0
- package/dist/simples/highlight.d.ts.map +1 -0
- package/dist/simples/highlight.js +24 -0
- package/dist/simples/highlight.js.map +1 -0
- package/dist/simples/hover-card.d.ts +11 -0
- package/dist/simples/hover-card.d.ts.map +1 -0
- package/dist/simples/hover-card.js +83 -0
- package/dist/simples/hover-card.js.map +1 -0
- package/dist/simples/image-cropper.d.ts +17 -0
- package/dist/simples/image-cropper.d.ts.map +1 -0
- package/dist/simples/image-cropper.js +139 -0
- package/dist/simples/image-cropper.js.map +1 -0
- package/dist/simples/input-group.d.ts +116 -0
- package/dist/simples/input-group.d.ts.map +1 -0
- package/dist/simples/input-group.js +245 -0
- package/dist/simples/input-group.js.map +1 -0
- package/dist/simples/input.d.ts +26 -0
- package/dist/simples/input.d.ts.map +1 -0
- package/dist/simples/input.js +60 -0
- package/dist/simples/input.js.map +1 -0
- package/dist/simples/item.d.ts +72 -0
- package/dist/simples/item.d.ts.map +1 -0
- package/dist/simples/item.js +180 -0
- package/dist/simples/item.js.map +1 -0
- package/dist/simples/json-tree-view.d.ts +7 -0
- package/dist/simples/json-tree-view.d.ts.map +1 -0
- package/dist/simples/json-tree-view.js +71 -0
- package/dist/simples/json-tree-view.js.map +1 -0
- package/dist/simples/kbd.d.ts +25 -0
- package/dist/simples/kbd.d.ts.map +1 -0
- package/dist/simples/kbd.js +50 -0
- package/dist/simples/kbd.js.map +1 -0
- package/dist/simples/listbox.d.ts +46 -0
- package/dist/simples/listbox.d.ts.map +1 -0
- package/dist/simples/listbox.js +218 -0
- package/dist/simples/listbox.js.map +1 -0
- package/dist/simples/menu.d.ts +60 -0
- package/dist/simples/menu.d.ts.map +1 -0
- package/dist/simples/menu.js +294 -0
- package/dist/simples/menu.js.map +1 -0
- package/dist/simples/native-select.d.ts +36 -0
- package/dist/simples/native-select.d.ts.map +1 -0
- package/dist/simples/native-select.js +77 -0
- package/dist/simples/native-select.js.map +1 -0
- package/dist/simples/number-input.d.ts +35 -0
- package/dist/simples/number-input.d.ts.map +1 -0
- package/dist/simples/number-input.js +142 -0
- package/dist/simples/number-input.js.map +1 -0
- package/dist/simples/pagination.d.ts +11 -0
- package/dist/simples/pagination.d.ts.map +1 -0
- package/dist/simples/pagination.js +78 -0
- package/dist/simples/pagination.js.map +1 -0
- package/dist/simples/password-input.d.ts +23 -0
- package/dist/simples/password-input.d.ts.map +1 -0
- package/dist/simples/password-input.js +90 -0
- package/dist/simples/password-input.js.map +1 -0
- package/dist/simples/pin-input.d.ts +30 -0
- package/dist/simples/pin-input.d.ts.map +1 -0
- package/dist/simples/pin-input.js +71 -0
- package/dist/simples/pin-input.js.map +1 -0
- package/dist/simples/popover.d.ts +42 -0
- package/dist/simples/popover.d.ts.map +1 -0
- package/dist/simples/popover.js +188 -0
- package/dist/simples/popover.js.map +1 -0
- package/dist/simples/progress.d.ts +23 -0
- package/dist/simples/progress.d.ts.map +1 -0
- package/dist/simples/progress.js +82 -0
- package/dist/simples/progress.js.map +1 -0
- package/dist/simples/prose.d.ts +17 -0
- package/dist/simples/prose.d.ts.map +1 -0
- package/dist/simples/prose.js +18 -0
- package/dist/simples/prose.js.map +1 -0
- package/dist/simples/radio-group.d.ts +23 -0
- package/dist/simples/radio-group.d.ts.map +1 -0
- package/dist/simples/radio-group.js +149 -0
- package/dist/simples/radio-group.js.map +1 -0
- package/dist/simples/rating.d.ts +10 -0
- package/dist/simples/rating.d.ts.map +1 -0
- package/dist/simples/rating.js +81 -0
- package/dist/simples/rating.js.map +1 -0
- package/dist/simples/resizable.d.ts +16 -0
- package/dist/simples/resizable.d.ts.map +1 -0
- package/dist/simples/resizable.js +57 -0
- package/dist/simples/resizable.js.map +1 -0
- package/dist/simples/scroll-area.d.ts +23 -0
- package/dist/simples/scroll-area.d.ts.map +1 -0
- package/dist/simples/scroll-area.js +88 -0
- package/dist/simples/scroll-area.js.map +1 -0
- package/dist/simples/segment-group.d.ts +27 -0
- package/dist/simples/segment-group.d.ts.map +1 -0
- package/dist/simples/segment-group.js +129 -0
- package/dist/simples/segment-group.js.map +1 -0
- package/dist/simples/select.d.ts +34 -0
- package/dist/simples/select.d.ts.map +1 -0
- package/dist/simples/select.js +258 -0
- package/dist/simples/select.js.map +1 -0
- package/dist/simples/separator.d.ts +12 -0
- package/dist/simples/separator.d.ts.map +1 -0
- package/dist/simples/separator.js +27 -0
- package/dist/simples/separator.js.map +1 -0
- package/dist/simples/sheet.d.ts +94 -0
- package/dist/simples/sheet.d.ts.map +1 -0
- package/dist/simples/sheet.js +172 -0
- package/dist/simples/sheet.js.map +1 -0
- package/dist/simples/show.d.ts +10 -0
- package/dist/simples/show.d.ts.map +1 -0
- package/dist/simples/show.js +9 -0
- package/dist/simples/show.js.map +1 -0
- package/dist/simples/skeleton.d.ts +3 -0
- package/dist/simples/skeleton.d.ts.map +1 -0
- package/dist/simples/skeleton.js +23 -0
- package/dist/simples/skeleton.js.map +1 -0
- package/dist/simples/skip-nav.d.ts +54 -0
- package/dist/simples/skip-nav.d.ts.map +1 -0
- package/dist/simples/skip-nav.js +42 -0
- package/dist/simples/skip-nav.js.map +1 -0
- package/dist/simples/slider.d.ts +29 -0
- package/dist/simples/slider.d.ts.map +1 -0
- package/dist/simples/slider.js +189 -0
- package/dist/simples/slider.js.map +1 -0
- package/dist/simples/spinner.d.ts +2 -0
- package/dist/simples/spinner.d.ts.map +1 -0
- package/dist/simples/spinner.js +20 -0
- package/dist/simples/spinner.js.map +1 -0
- package/dist/simples/stat-tile.d.ts +31 -0
- package/dist/simples/stat-tile.d.ts.map +1 -0
- package/dist/simples/stat-tile.js +64 -0
- package/dist/simples/stat-tile.js.map +1 -0
- package/dist/simples/status.d.ts +48 -0
- package/dist/simples/status.d.ts.map +1 -0
- package/dist/simples/status.js +57 -0
- package/dist/simples/status.js.map +1 -0
- package/dist/simples/steps.d.ts +20 -0
- package/dist/simples/steps.d.ts.map +1 -0
- package/dist/simples/steps.js +171 -0
- package/dist/simples/steps.js.map +1 -0
- package/dist/simples/suggestions.d.ts +43 -0
- package/dist/simples/suggestions.d.ts.map +1 -0
- package/dist/simples/suggestions.js +38 -0
- package/dist/simples/suggestions.js.map +1 -0
- package/dist/simples/swatch.d.ts +73 -0
- package/dist/simples/swatch.d.ts.map +1 -0
- package/dist/simples/swatch.js +35 -0
- package/dist/simples/swatch.js.map +1 -0
- package/dist/simples/switch.d.ts +5 -0
- package/dist/simples/switch.d.ts.map +1 -0
- package/dist/simples/switch.js +71 -0
- package/dist/simples/switch.js.map +1 -0
- package/dist/simples/table.d.ts +55 -0
- package/dist/simples/table.d.ts.map +1 -0
- package/dist/simples/table.js +166 -0
- package/dist/simples/table.js.map +1 -0
- package/dist/simples/tabs.d.ts +55 -0
- package/dist/simples/tabs.d.ts.map +1 -0
- package/dist/simples/tabs.js +133 -0
- package/dist/simples/tabs.js.map +1 -0
- package/dist/simples/tags-input.d.ts +64 -0
- package/dist/simples/tags-input.d.ts.map +1 -0
- package/dist/simples/tags-input.js +228 -0
- package/dist/simples/tags-input.js.map +1 -0
- package/dist/simples/textarea.d.ts +6 -0
- package/dist/simples/textarea.d.ts.map +1 -0
- package/dist/simples/textarea.js +34 -0
- package/dist/simples/textarea.js.map +1 -0
- package/dist/simples/toast.d.ts +20 -0
- package/dist/simples/toast.d.ts.map +1 -0
- package/dist/simples/toast.js +127 -0
- package/dist/simples/toast.js.map +1 -0
- package/dist/simples/toggle-group.d.ts +20 -0
- package/dist/simples/toggle-group.d.ts.map +1 -0
- package/dist/simples/toggle-group.js +82 -0
- package/dist/simples/toggle-group.js.map +1 -0
- package/dist/simples/toggle.d.ts +35 -0
- package/dist/simples/toggle.d.ts.map +1 -0
- package/dist/simples/toggle.js +57 -0
- package/dist/simples/toggle.js.map +1 -0
- package/dist/simples/tooltip.d.ts +8 -0
- package/dist/simples/tooltip.d.ts.map +1 -0
- package/dist/simples/tooltip.js +80 -0
- package/dist/simples/tooltip.js.map +1 -0
- package/dist/simples/tour.d.ts +81 -0
- package/dist/simples/tour.d.ts.map +1 -0
- package/dist/simples/tour.js +253 -0
- package/dist/simples/tour.js.map +1 -0
- package/dist/simples/tree-view.d.ts +64 -0
- package/dist/simples/tree-view.d.ts.map +1 -0
- package/dist/simples/tree-view.js +300 -0
- package/dist/simples/tree-view.js.map +1 -0
- package/dist/styles.css +2 -0
- package/dist/table/data-table-content.d.ts +18 -0
- package/dist/table/data-table-content.d.ts.map +1 -0
- package/dist/table/data-table-content.js +53 -0
- package/dist/table/data-table-content.js.map +1 -0
- package/dist/table/data-table-pagination.d.ts +8 -0
- package/dist/table/data-table-pagination.d.ts.map +1 -0
- package/dist/table/data-table-pagination.js +65 -0
- package/dist/table/data-table-pagination.js.map +1 -0
- package/dist/table/data-table-root.d.ts +10 -0
- package/dist/table/data-table-root.d.ts.map +1 -0
- package/dist/table/data-table-root.js +21 -0
- package/dist/table/data-table-root.js.map +1 -0
- package/dist/table/data-table-toolbar.d.ts +44 -0
- package/dist/table/data-table-toolbar.d.ts.map +1 -0
- package/dist/table/data-table-toolbar.js +87 -0
- package/dist/table/data-table-toolbar.js.map +1 -0
- package/dist/table/select-column.d.ts +16 -0
- package/dist/table/select-column.d.ts.map +1 -0
- package/dist/table/select-column.js +39 -0
- package/dist/table/select-column.js.map +1 -0
- package/dist/table/sortableHeader.d.ts +25 -0
- package/dist/table/sortableHeader.d.ts.map +1 -0
- package/dist/table/sortableHeader.js +43 -0
- package/dist/table/sortableHeader.js.map +1 -0
- package/dist/table/use-data-table.d.ts +40 -0
- package/dist/table/use-data-table.d.ts.map +1 -0
- package/dist/table/use-data-table.js +65 -0
- package/dist/table/use-data-table.js.map +1 -0
- package/dist/table.d.ts +15 -0
- package/dist/table.d.ts.map +1 -0
- package/dist/table.js +22 -0
- package/dist/table.js.map +1 -0
- package/dist/theme/KanzoTheme.d.ts +74 -0
- package/dist/theme/KanzoTheme.d.ts.map +1 -0
- package/dist/theme/KanzoTheme.js +61 -0
- package/dist/theme/KanzoTheme.js.map +1 -0
- package/dist/theme/KanzoThemeProvider.d.ts +144 -0
- package/dist/theme/KanzoThemeProvider.d.ts.map +1 -0
- package/dist/theme/KanzoThemeProvider.js +271 -0
- package/dist/theme/KanzoThemeProvider.js.map +1 -0
- package/dist/theme/theme-context.d.ts +146 -0
- package/dist/theme/theme-context.d.ts.map +1 -0
- package/dist/theme/theme-context.js +18 -0
- package/dist/theme/theme-context.js.map +1 -0
- package/dist/theme/theme-script.d.ts +17 -0
- package/dist/theme/theme-script.d.ts.map +1 -0
- package/dist/theme/theme-script.js +16 -0
- package/dist/theme/theme-script.js.map +1 -0
- package/package.json +201 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Progress as ArkProgress } from '@ark-ui/react/progress';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export declare const useProgress: () => import('@ark-ui/react').UseProgressContext;
|
|
4
|
+
interface ProgressProps extends Omit<React.ComponentProps<typeof ArkProgress.Root>, "value"> {
|
|
5
|
+
/**
|
|
6
|
+
* Shows indeterminate progress
|
|
7
|
+
*
|
|
8
|
+
* @default false
|
|
9
|
+
*/
|
|
10
|
+
indeterminate?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The value of the progress bar
|
|
13
|
+
*
|
|
14
|
+
* @default 0
|
|
15
|
+
*/
|
|
16
|
+
value?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare const Progress: (props: ProgressProps) => React.JSX.Element;
|
|
19
|
+
export declare const ProgressTrack: ({ slot, ...rest }: React.ComponentProps<typeof ArkProgress.Track>) => React.JSX.Element;
|
|
20
|
+
export declare const ProgressRange: ({ slot, ...rest }: React.ComponentProps<typeof ArkProgress.Range>) => React.JSX.Element;
|
|
21
|
+
export declare const ProgressValue: (props: React.ComponentProps<typeof ArkProgress.ValueText>) => React.JSX.Element;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/simples/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,IAAI,WAAW,EAExB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,eAAO,MAAM,WAAW,kDAAqB,CAAC;AAE9C,UAAU,aACR,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACpE;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,sBA+B5C,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,mBAAmB,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,KAAK,CAAC,sBAalE,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,mBAG3B,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,KAAK,CAAC,sBAahD,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,SAAS,CAAC,sBAa1D,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useProgressContext as u, Progress as r } from "@ark-ui/react/progress";
|
|
3
|
+
import { cn as o } from "../lib/cn.js";
|
|
4
|
+
import { FieldLabel as g } from "./field.js";
|
|
5
|
+
const w = u, N = (a) => {
|
|
6
|
+
const {
|
|
7
|
+
value: t,
|
|
8
|
+
orientation: n = "horizontal",
|
|
9
|
+
indeterminate: s = !1,
|
|
10
|
+
className: i,
|
|
11
|
+
children: l,
|
|
12
|
+
slot: d,
|
|
13
|
+
...c
|
|
14
|
+
} = a;
|
|
15
|
+
return /* @__PURE__ */ m(
|
|
16
|
+
r.Root,
|
|
17
|
+
{
|
|
18
|
+
className: o(
|
|
19
|
+
"flex flex-wrap gap-3",
|
|
20
|
+
"data-[orientation=horizontal]:w-full",
|
|
21
|
+
"data-[orientation=vertical]:-scale-y-100",
|
|
22
|
+
i
|
|
23
|
+
),
|
|
24
|
+
orientation: n,
|
|
25
|
+
value: s ? null : t,
|
|
26
|
+
...c,
|
|
27
|
+
"data-slot": d ?? "progress",
|
|
28
|
+
children: [
|
|
29
|
+
l,
|
|
30
|
+
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(f, {}) })
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
}, h = ({ slot: a, ...t }) => /* @__PURE__ */ e(
|
|
35
|
+
r.Track,
|
|
36
|
+
{
|
|
37
|
+
className: o(
|
|
38
|
+
"bg-border",
|
|
39
|
+
"rounded-full",
|
|
40
|
+
"overflow-x-hidden",
|
|
41
|
+
"data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full",
|
|
42
|
+
"data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"
|
|
43
|
+
),
|
|
44
|
+
...t,
|
|
45
|
+
"data-slot": a ?? "progress-track"
|
|
46
|
+
}
|
|
47
|
+
), f = ({
|
|
48
|
+
slot: a,
|
|
49
|
+
...t
|
|
50
|
+
}) => /* @__PURE__ */ e(
|
|
51
|
+
r.Range,
|
|
52
|
+
{
|
|
53
|
+
className: o(
|
|
54
|
+
"bg-primary",
|
|
55
|
+
"transition-all duration-300 ease-out",
|
|
56
|
+
"data-[orientation=horizontal]:h-full",
|
|
57
|
+
"data-[orientation=vertical]:h-full",
|
|
58
|
+
"motion-reduce:animate-none! motion-reduce:transition-none!",
|
|
59
|
+
"data-[state=indeterminate]:w-1/3 data-[state=indeterminate]:animate-indeterminate! data-[state=indeterminate]:duration-100"
|
|
60
|
+
),
|
|
61
|
+
...t,
|
|
62
|
+
"data-slot": a ?? "progress-range"
|
|
63
|
+
}
|
|
64
|
+
), b = (a) => {
|
|
65
|
+
const { className: t, slot: n, ...s } = a;
|
|
66
|
+
return /* @__PURE__ */ e(g, { asChild: !0, children: /* @__PURE__ */ e(
|
|
67
|
+
r.ValueText,
|
|
68
|
+
{
|
|
69
|
+
className: o("ms-auto tabular-nums", t),
|
|
70
|
+
...s,
|
|
71
|
+
"data-slot": n ?? "progress-value"
|
|
72
|
+
}
|
|
73
|
+
) });
|
|
74
|
+
};
|
|
75
|
+
export {
|
|
76
|
+
N as Progress,
|
|
77
|
+
f as ProgressRange,
|
|
78
|
+
h as ProgressTrack,
|
|
79
|
+
b as ProgressValue,
|
|
80
|
+
w as useProgress
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.js","sources":["../../src/simples/progress.tsx"],"sourcesContent":["import {\n Progress as ArkProgress,\n useProgressContext,\n} from \"@ark-ui/react/progress\";\nimport type React from \"react\";\nimport { cn } from \"../lib/cn\";\nimport { FieldLabel } from \"./field\";\n\nexport const useProgress = useProgressContext;\n\ninterface ProgressProps\n extends Omit<React.ComponentProps<typeof ArkProgress.Root>, \"value\"> {\n /**\n * Shows indeterminate progress\n *\n * @default false\n */\n indeterminate?: boolean;\n /**\n * The value of the progress bar\n *\n * @default 0\n */\n value?: number;\n}\n\nexport const Progress = (props: ProgressProps) => {\n const {\n value,\n orientation = \"horizontal\",\n indeterminate = false,\n className,\n children,\n slot,\n ...rest\n } = props;\n\n return (\n <ArkProgress.Root\n className={cn(\n \"flex flex-wrap gap-3\",\n \"data-[orientation=horizontal]:w-full\",\n \"data-[orientation=vertical]:-scale-y-100\",\n className\n )}\n orientation={orientation}\n value={indeterminate ? null : value}\n {...rest}\n data-slot={slot ?? \"progress\"}\n >\n {children}\n\n <ProgressTrack>\n <ProgressRange />\n </ProgressTrack>\n </ArkProgress.Root>\n );\n};\n\nexport const ProgressTrack = (\n { slot, ...rest }: React.ComponentProps<typeof ArkProgress.Track>\n) => (\n <ArkProgress.Track\n className={cn(\n \"bg-border\",\n \"rounded-full\",\n \"overflow-x-hidden\",\n \"data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full\",\n \"data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2\"\n )}\n {...rest}\n data-slot={slot ?? \"progress-track\"}\n />\n);\n\nexport const ProgressRange = ({\n slot,\n ...rest\n}: React.ComponentProps<typeof ArkProgress.Range>) => (\n <ArkProgress.Range\n className={cn(\n \"bg-primary\",\n \"transition-all duration-300 ease-out\",\n \"data-[orientation=horizontal]:h-full\",\n \"data-[orientation=vertical]:h-full\",\n \"motion-reduce:animate-none! motion-reduce:transition-none!\",\n \"data-[state=indeterminate]:w-1/3 data-[state=indeterminate]:animate-indeterminate! data-[state=indeterminate]:duration-100\"\n )}\n {...rest}\n data-slot={slot ?? \"progress-range\"}\n />\n);\n\nexport const ProgressValue = (\n props: React.ComponentProps<typeof ArkProgress.ValueText>\n) => {\n const { className, slot, ...rest } = props;\n\n return (\n <FieldLabel asChild>\n <ArkProgress.ValueText\n className={cn(\"ms-auto tabular-nums\", className)}\n {...rest}\n data-slot={slot ?? \"progress-value\"}\n />\n </FieldLabel>\n );\n};\n"],"names":["useProgress","useProgressContext","Progress","props","value","orientation","indeterminate","className","children","slot","rest","jsxs","ArkProgress","cn","jsx","ProgressTrack","ProgressRange","ProgressValue","FieldLabel"],"mappings":";;;;AAQO,MAAMA,IAAcC,GAkBdC,IAAW,CAACC,MAAyB;AAChD,QAAM;AAAA,IACJ,OAAAC;AAAA,IACA,aAAAC,IAAc;AAAA,IACd,eAAAC,IAAgB;AAAA,IAChB,WAAAC;AAAA,IACA,UAAAC;AAAA,IACA,MAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,IACDP;AAEJ,SACE,gBAAAQ;AAAA,IAACC,EAAY;AAAA,IAAZ;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACAN;AAAA,MAAA;AAAA,MAEF,aAAAF;AAAA,MACA,OAAOC,IAAgB,OAAOF;AAAA,MAC7B,GAAGM;AAAA,MACJ,aAAWD,KAAQ;AAAA,MAElB,UAAA;AAAA,QAAAD;AAAA,QAED,gBAAAM,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACE,GAAA,CAAA,CAAc,EAAA,CACjB;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaD,IAAgB,CAC3B,EAAE,MAAAN,GAAM,GAAGC,QAEX,gBAAAI;AAAA,EAACF,EAAY;AAAA,EAAZ;AAAA,IACC,WAAWC;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,IAED,GAAGH;AAAA,IACJ,aAAWD,KAAQ;AAAA,EAAA;AACrB,GAGWO,IAAgB,CAAC;AAAA,EAC5B,MAAAP;AAAA,EACA,GAAGC;AACL,MACE,gBAAAI;AAAA,EAACF,EAAY;AAAA,EAAZ;AAAA,IACC,WAAWC;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,IAED,GAAGH;AAAA,IACJ,aAAWD,KAAQ;AAAA,EAAA;AACrB,GAGWQ,IAAgB,CAC3Bd,MACG;AACH,QAAM,EAAE,WAAAI,GAAW,MAAAE,GAAM,GAAGC,MAASP;AAErC,SACE,gBAAAW,EAACI,GAAA,EAAW,SAAO,IACjB,UAAA,gBAAAJ;AAAA,IAACF,EAAY;AAAA,IAAZ;AAAA,MACC,WAAWC,EAAG,wBAAwBN,CAAS;AAAA,MAC9C,GAAGG;AAAA,MACJ,aAAWD,KAAQ;AAAA,IAAA;AAAA,EAAA,GAEvB;AAEJ;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ark } from '@ark-ui/react/factory';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Prose — a block of rendered long-form content: markdown, a changelog, an article.
|
|
5
|
+
*
|
|
6
|
+
* It is the ONLY typography component in the library, and that is the whole position. There
|
|
7
|
+
* used to be `Heading` and `Text` atoms with `size` / `weight` / `variant` / `align` /
|
|
8
|
+
* `truncate` props — five styling knobs on a `<span>`, which is styling-by-props competing
|
|
9
|
+
* with the utilities, and precisely the ad-hoc styling a recipe exists to prevent. They
|
|
10
|
+
* also had no consumer anywhere in the library: every component styles its own text, which is
|
|
11
|
+
* what Shark does and what the type scale is actually for.
|
|
12
|
+
*
|
|
13
|
+
* So: chrome styles itself, and `Prose` handles the case utilities cannot — a tree of elements
|
|
14
|
+
* you did not author, arriving from a markdown renderer or a CMS.
|
|
15
|
+
*/
|
|
16
|
+
export declare const Prose: (props: React.ComponentProps<typeof ark.div>) => React.JSX.Element;
|
|
17
|
+
//# sourceMappingURL=prose.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prose.d.ts","sourceRoot":"","sources":["../../src/simples/prose.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,KAAK,GAAI,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,sBAUhE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { ark as m } from "@ark-ui/react/factory";
|
|
3
|
+
import { cn as e } from "../lib/cn.js";
|
|
4
|
+
const i = (o) => {
|
|
5
|
+
const { className: r, slot: s, ...t } = o;
|
|
6
|
+
return /* @__PURE__ */ a(
|
|
7
|
+
m.div,
|
|
8
|
+
{
|
|
9
|
+
className: e("kanzo-prose mx-auto max-w-[65ch]", r),
|
|
10
|
+
...t,
|
|
11
|
+
"data-slot": s ?? "prose"
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
i as Prose
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=prose.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prose.js","sources":["../../src/simples/prose.tsx"],"sourcesContent":["import { ark } from \"@ark-ui/react/factory\";\nimport type React from \"react\";\nimport { cn } from \"../lib/cn\";\n\n/**\n * Prose — a block of rendered long-form content: markdown, a changelog, an article.\n *\n * It is the ONLY typography component in the library, and that is the whole position. There\n * used to be `Heading` and `Text` atoms with `size` / `weight` / `variant` / `align` /\n * `truncate` props — five styling knobs on a `<span>`, which is styling-by-props competing\n * with the utilities, and precisely the ad-hoc styling a recipe exists to prevent. They\n * also had no consumer anywhere in the library: every component styles its own text, which is\n * what Shark does and what the type scale is actually for.\n *\n * So: chrome styles itself, and `Prose` handles the case utilities cannot — a tree of elements\n * you did not author, arriving from a markdown renderer or a CMS.\n */\nexport const Prose = (props: React.ComponentProps<typeof ark.div>) => {\n const { className, slot, ...rest } = props;\n\n return (\n <ark.div\n className={cn(\"kanzo-prose mx-auto max-w-[65ch]\", className)}\n {...rest}\n data-slot={slot ?? \"prose\"}\n />\n );\n};\n"],"names":["Prose","props","className","slot","rest","jsx","ark","cn"],"mappings":";;;AAiBO,MAAMA,IAAQ,CAACC,MAAgD;AACpE,QAAM,EAAE,WAAAC,GAAW,MAAAC,GAAM,GAAGC,MAASH;AAErC,SACE,gBAAAI;AAAA,IAACC,EAAI;AAAA,IAAJ;AAAA,MACC,WAAWC,EAAG,oCAAoCL,CAAS;AAAA,MAC1D,GAAGE;AAAA,MACJ,aAAWD,KAAQ;AAAA,IAAA;AAAA,EAAA;AAGzB;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RadioGroup as ArkRadioGroup } from '@ark-ui/react/radio-group';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export declare const useRadioGroup: () => import('@ark-ui/react').UseRadioGroupContext;
|
|
4
|
+
export interface RadioGroupProps extends React.ComponentProps<typeof ArkRadioGroup.Root> {
|
|
5
|
+
/**
|
|
6
|
+
* Lay the items out as a grid instead of the default column. `"auto"` fits as many
|
|
7
|
+
* card-width tracks as the container allows; a number pins the count.
|
|
8
|
+
*
|
|
9
|
+
* A declared addition to Shark's file, and the whole of what the deleted `CardRadioGroup`
|
|
10
|
+
* added over this compound. Distinct from Ark's `orientation`, which is arrow-key direction
|
|
11
|
+
* and not layout. The count is written to a `--columns` custom property rather than a class,
|
|
12
|
+
* so a responsive count stays CSS and needs no second prop:
|
|
13
|
+
* `columns={1} className="sm:[--columns:2] lg:[--columns:4]"`.
|
|
14
|
+
*/
|
|
15
|
+
columns?: number | "auto";
|
|
16
|
+
}
|
|
17
|
+
export declare const RadioGroup: (props: RadioGroupProps) => React.JSX.Element;
|
|
18
|
+
export declare const RadioGroupItem: (props: React.ComponentProps<typeof ArkRadioGroup.Item>) => React.JSX.Element;
|
|
19
|
+
export declare const RadioGroupCard: (props: React.ComponentProps<typeof ArkRadioGroup.Item>) => React.JSX.Element;
|
|
20
|
+
export declare const RadioGroupIndicator: (props: React.ComponentProps<typeof ArkRadioGroup.ItemControl>) => React.JSX.Element;
|
|
21
|
+
export declare const RadioGroupText: (props: React.ComponentProps<typeof ArkRadioGroup.ItemText>) => React.JSX.Element;
|
|
22
|
+
export declare const RadioGroupLabel: (props: React.ComponentProps<typeof ArkRadioGroup.Label>) => React.JSX.Element;
|
|
23
|
+
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../src/simples/radio-group.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,IAAI,aAAa,EAE5B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,eAAO,MAAM,aAAa,oDAAuB,CAAC;AAElD,MAAM,WAAW,eACf,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC;IACvD;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B;AAgBD,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,sBA8BhD,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,sBAwCvD,CAAC;AAKF,eAAO,MAAM,cAAc,GACzB,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,sBAyCvD,CAAC;AAGF,eAAO,MAAM,mBAAmB,GAC9B,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,WAAW,CAAC,sBAgB9D,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,QAAQ,CAAC,sBAc3D,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,KAAK,CAAC,sBAWxD,CAAC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as i, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
import { useFieldContext as b } from "@ark-ui/react/field";
|
|
4
|
+
import { useRadioGroupContext as m, RadioGroup as o } from "@ark-ui/react/radio-group";
|
|
5
|
+
import { cn as l } from "../lib/cn.js";
|
|
6
|
+
import { FieldLabel as u } from "./field.js";
|
|
7
|
+
const k = m, I = (a) => {
|
|
8
|
+
const { className: d, children: t, columns: e, style: s, slot: n, ...p } = a, r = b();
|
|
9
|
+
return /* @__PURE__ */ i(
|
|
10
|
+
o.Root,
|
|
11
|
+
{
|
|
12
|
+
className: l(
|
|
13
|
+
e === void 0 ? "flex flex-col gap-3" : "grid gap-3",
|
|
14
|
+
e === "auto" && "grid-cols-[repeat(auto-fit,minmax(8.5rem,1fr))]",
|
|
15
|
+
typeof e == "number" && "grid-cols-[repeat(var(--columns),minmax(0,1fr))]",
|
|
16
|
+
"data-invalid:text-destructive dark:data-invalid:text-destructive-foreground",
|
|
17
|
+
d
|
|
18
|
+
),
|
|
19
|
+
disabled: r == null ? void 0 : r.disabled,
|
|
20
|
+
invalid: r == null ? void 0 : r.invalid,
|
|
21
|
+
readOnly: r == null ? void 0 : r.readOnly,
|
|
22
|
+
required: r == null ? void 0 : r.required,
|
|
23
|
+
style: typeof e == "number" ? { "--columns": e, ...s } : s,
|
|
24
|
+
...p,
|
|
25
|
+
"data-slot": n ?? "radio-group",
|
|
26
|
+
children: t
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}, R = (a) => {
|
|
30
|
+
const { tabIndex: d, className: t, children: e, slot: s, ...n } = a;
|
|
31
|
+
return /* @__PURE__ */ c(
|
|
32
|
+
o.Item,
|
|
33
|
+
{
|
|
34
|
+
className: l(
|
|
35
|
+
"inline-flex items-center gap-2",
|
|
36
|
+
"data-disabled:opacity-64",
|
|
37
|
+
t
|
|
38
|
+
),
|
|
39
|
+
...n,
|
|
40
|
+
"data-slot": s ?? "radio-group-item",
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ i(
|
|
43
|
+
o.ItemControl,
|
|
44
|
+
{
|
|
45
|
+
className: l(
|
|
46
|
+
"relative",
|
|
47
|
+
"inline-flex shrink-0 items-center justify-center",
|
|
48
|
+
"size-4",
|
|
49
|
+
"border border-input shadow-xs/5",
|
|
50
|
+
"bg-field",
|
|
51
|
+
"rounded-full",
|
|
52
|
+
"before:size-1.5 before:rounded-full",
|
|
53
|
+
"data-focus-visible:border-primary data-focus-visible:ring-[3px] data-focus-visible:ring-ring data-focus-visible:ring-offset-1 data-focus-visible:ring-offset-background",
|
|
54
|
+
// No border clause here: `data-invalid` below already paints it solid `--destructive`,
|
|
55
|
+
// and the `/64` this used to carry made focus *weaken* the boundary 1.4.11 asks 3:1 of.
|
|
56
|
+
"data-focus-visible:data-invalid:ring-destructive/48",
|
|
57
|
+
"data-invalid:border-destructive data-invalid:text-destructive-foreground data-invalid:ring-[3px] data-invalid:ring-destructive/24",
|
|
58
|
+
"dark:data-invalid:text-destructive-foreground dark:data-invalid:ring-[3px]",
|
|
59
|
+
"data-[state=checked]:bg-primary data-[state=checked]:before:bg-primary-foreground",
|
|
60
|
+
"data-invalid:data-[state=checked]:bg-transparent data-invalid:data-[state=checked]:before:bg-destructive-foreground"
|
|
61
|
+
),
|
|
62
|
+
"data-slot": "radio-group-item-control"
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ i(f, { children: e }),
|
|
66
|
+
/* @__PURE__ */ i(o.ItemHiddenInput, { tabIndex: d })
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
}, G = (a) => {
|
|
71
|
+
const { tabIndex: d, className: t, children: e, slot: s, ...n } = a;
|
|
72
|
+
return /* @__PURE__ */ c(
|
|
73
|
+
o.Item,
|
|
74
|
+
{
|
|
75
|
+
className: l(
|
|
76
|
+
"relative flex cursor-pointer gap-2 rounded-field border border-input bg-transparent p-3 transition-colors",
|
|
77
|
+
// The rest state is the backdrop (`bg-transparent`) and a card can sit anywhere, so no
|
|
78
|
+
// solid and no percentage is right everywhere: a 50% `bg-accent` measures ΔE 0.00 from rest
|
|
79
|
+
// on an accent backdrop and solid `bg-secondary` measures 0.00 on a secondary one — a hover
|
|
80
|
+
// and a selected state a user cannot see, on the surface each is most likely to meet. Both
|
|
81
|
+
// are therefore alpha steps, composited onto whatever is under them.
|
|
82
|
+
//
|
|
83
|
+
// **Selected is the BRAND's step and hover is the neutral's**, which is the half worth not
|
|
84
|
+
// undoing: the border already goes `--primary` when checked, so a neutral fill under a
|
|
85
|
+
// brand border was the one place a tenant's palette stopped at the outline. It is also what
|
|
86
|
+
// the reference does — shadcn's choice card is `border-primary` over a 5% `--primary`.
|
|
87
|
+
//
|
|
88
|
+
// Measured 2026-08-20 over `packages/theme/palettes/*.css` — six documents × two modes ×
|
|
89
|
+
// the six surfaces a card can sit on (background, card, popover, muted, secondary, accent),
|
|
90
|
+
// 72 pairs. Floors, light / dark: rest→hover ΔE 3.34 / 5.32, rest→selected 5.81 / 9.46,
|
|
91
|
+
// hover→selected **1.46 / 3.47**. That last figure is the one to read before changing this:
|
|
92
|
+
// the neutral `base-a5` it replaced measured 2.73 / 3.03 there, so the fill alone separates
|
|
93
|
+
// hover from selected LESS well than it did. **`border-input` → `border-primary` is what
|
|
94
|
+
// carries that step**, and it is a far larger signal than either fill; the fill's own job is
|
|
95
|
+
// rest→selected, which improved. Take the border away and this stops being measured.
|
|
96
|
+
"hover:bg-foreground/14",
|
|
97
|
+
"data-[state=checked]:border-primary data-[state=checked]:bg-primary/17",
|
|
98
|
+
"data-disabled:pointer-events-none data-disabled:opacity-64",
|
|
99
|
+
"has-data-focus-visible:border-primary has-data-focus-visible:ring-[3px] has-data-focus-visible:ring-ring",
|
|
100
|
+
"data-invalid:border-destructive",
|
|
101
|
+
t
|
|
102
|
+
),
|
|
103
|
+
...n,
|
|
104
|
+
"data-slot": s ?? "radio-group-card",
|
|
105
|
+
children: [
|
|
106
|
+
e,
|
|
107
|
+
/* @__PURE__ */ i(o.ItemHiddenInput, { tabIndex: d })
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
}, N = (a) => {
|
|
112
|
+
const { className: d, slot: t, ...e } = a;
|
|
113
|
+
return /* @__PURE__ */ i(
|
|
114
|
+
o.ItemControl,
|
|
115
|
+
{
|
|
116
|
+
className: l(
|
|
117
|
+
"inline-flex size-4 shrink-0 items-center justify-center rounded-full border border-input bg-field shadow-xs/5",
|
|
118
|
+
"before:size-1.5 before:rounded-full",
|
|
119
|
+
"data-[state=checked]:bg-primary data-[state=checked]:before:bg-primary-foreground",
|
|
120
|
+
d
|
|
121
|
+
),
|
|
122
|
+
...e,
|
|
123
|
+
"data-slot": t ?? "radio-group-indicator"
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
}, f = (a) => {
|
|
127
|
+
const { className: d, children: t, slot: e, ...s } = a;
|
|
128
|
+
return /* @__PURE__ */ i(u, { asChild: !0, children: /* @__PURE__ */ i(
|
|
129
|
+
o.ItemText,
|
|
130
|
+
{
|
|
131
|
+
...s,
|
|
132
|
+
"data-slot": e ?? "radio-group-item-text",
|
|
133
|
+
children: t
|
|
134
|
+
}
|
|
135
|
+
) });
|
|
136
|
+
}, C = (a) => {
|
|
137
|
+
const { children: d, slot: t, ...e } = a;
|
|
138
|
+
return /* @__PURE__ */ i(u, { asChild: !0, children: /* @__PURE__ */ i(o.Label, { ...e, "data-slot": t ?? "radio-group-label", children: d }) });
|
|
139
|
+
};
|
|
140
|
+
export {
|
|
141
|
+
I as RadioGroup,
|
|
142
|
+
G as RadioGroupCard,
|
|
143
|
+
N as RadioGroupIndicator,
|
|
144
|
+
R as RadioGroupItem,
|
|
145
|
+
C as RadioGroupLabel,
|
|
146
|
+
f as RadioGroupText,
|
|
147
|
+
k as useRadioGroup
|
|
148
|
+
};
|
|
149
|
+
//# sourceMappingURL=radio-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.js","sources":["../../src/simples/radio-group.tsx"],"sourcesContent":["\"use client\";\n\nimport { type UseFieldContext, useFieldContext } from \"@ark-ui/react/field\";\nimport {\n RadioGroup as ArkRadioGroup,\n useRadioGroupContext,\n} from \"@ark-ui/react/radio-group\";\nimport type React from \"react\";\nimport { cn } from \"../lib/cn\";\nimport { FieldLabel } from \"./field\";\n\nexport const useRadioGroup = useRadioGroupContext;\n\nexport interface RadioGroupProps\n extends React.ComponentProps<typeof ArkRadioGroup.Root> {\n /**\n * Lay the items out as a grid instead of the default column. `\"auto\"` fits as many\n * card-width tracks as the container allows; a number pins the count.\n *\n * A declared addition to Shark's file, and the whole of what the deleted `CardRadioGroup`\n * added over this compound. Distinct from Ark's `orientation`, which is arrow-key direction\n * and not layout. The count is written to a `--columns` custom property rather than a class,\n * so a responsive count stays CSS and needs no second prop:\n * `columns={1} className=\"sm:[--columns:2] lg:[--columns:4]\"`.\n */\n columns?: number | \"auto\";\n}\n\n// Divergence from Shark, declared: Ark 5.37.2's `useRadioGroup` bridges `useFieldsetContext`\n// (disabled/invalid/legend id) but NOT `useFieldContext` — grep `dist/components` and radio-group\n// is one of only two form machines with zero `useFieldContext` imports (Slider is the other; the\n// thirteen single-control machines all have one). Ark's Field docs only claim \"most\" components\n// support the context and there is no upstream issue, so this reads as an unfilled gap, not a\n// decision. Shark neither bridges nor documents it: its docs say \"use the `invalid` prop on\n// RadioGroup\", and its own TanStack example wraps `<Field invalid>` around a RadioGroup that\n// never turns red. We bridge it, so `invalid` is stated once on the Field.\n//\n// State flags only, never `field.ids`: Field addresses ONE control, and a radio group has one\n// hidden input per item, so there is no single id for its label to point at — `FieldSet` +\n// `FieldLegend` remains the right labelling container. Explicit props still win, and with no\n// `Field` ancestor every flag is `undefined`, which Ark strips before it reaches the machine, so\n// the built-in Fieldset bridge is untouched.\nexport const RadioGroup = (props: RadioGroupProps) => {\n const { className, children, columns, style, slot, ...rest } = props;\n\n const field: UseFieldContext | undefined = useFieldContext();\n\n return (\n <ArkRadioGroup.Root\n className={cn(\n columns === undefined ? \"flex flex-col gap-3\" : \"grid gap-3\",\n columns === \"auto\" && \"grid-cols-[repeat(auto-fit,minmax(8.5rem,1fr))]\",\n typeof columns === \"number\" &&\n \"grid-cols-[repeat(var(--columns),minmax(0,1fr))]\",\n \"data-invalid:text-destructive dark:data-invalid:text-destructive-foreground\",\n className\n )}\n disabled={field?.disabled}\n invalid={field?.invalid}\n readOnly={field?.readOnly}\n required={field?.required}\n style={\n typeof columns === \"number\"\n ? ({ \"--columns\": columns, ...style } as React.CSSProperties)\n : style\n }\n {...rest}\n data-slot={slot ?? \"radio-group\"}\n >\n {children}\n </ArkRadioGroup.Root>\n );\n};\n\nexport const RadioGroupItem = (\n props: React.ComponentProps<typeof ArkRadioGroup.Item>\n) => {\n const { tabIndex, className, children, slot, ...rest } = props;\n\n return (\n <ArkRadioGroup.Item\n className={cn(\n \"inline-flex items-center gap-2\",\n \"data-disabled:opacity-64\",\n className\n )}\n {...rest}\n data-slot={slot ?? \"radio-group-item\"}\n >\n <ArkRadioGroup.ItemControl\n className={cn(\n \"relative\",\n \"inline-flex shrink-0 items-center justify-center\",\n \"size-4\",\n \"border border-input shadow-xs/5\",\n \"bg-field\",\n \"rounded-full\",\n \"before:size-1.5 before:rounded-full\",\n \"data-focus-visible:border-primary data-focus-visible:ring-[3px] data-focus-visible:ring-ring data-focus-visible:ring-offset-1 data-focus-visible:ring-offset-background\",\n // No border clause here: `data-invalid` below already paints it solid `--destructive`,\n // and the `/64` this used to carry made focus *weaken* the boundary 1.4.11 asks 3:1 of.\n \"data-focus-visible:data-invalid:ring-destructive/48\",\n \"data-invalid:border-destructive data-invalid:text-destructive-foreground data-invalid:ring-[3px] data-invalid:ring-destructive/24\",\n \"dark:data-invalid:text-destructive-foreground dark:data-invalid:ring-[3px]\",\n \"data-[state=checked]:bg-primary data-[state=checked]:before:bg-primary-foreground\",\n \"data-invalid:data-[state=checked]:bg-transparent data-invalid:data-[state=checked]:before:bg-destructive-foreground\"\n )}\n data-slot=\"radio-group-item-control\"\n />\n\n <RadioGroupText>{children}</RadioGroupText>\n\n <ArkRadioGroup.ItemHiddenInput tabIndex={tabIndex} />\n </ArkRadioGroup.Item>\n );\n};\n\n// A card-shaped option: raw children (compose label/description/preview/indicator yourself),\n// full radio semantics from Ark, the selected look driven by `data-[state=checked]`. This is\n// what \"card radio\" is — the same machine styled as a card, not a separate component.\nexport const RadioGroupCard = (\n props: React.ComponentProps<typeof ArkRadioGroup.Item>\n) => {\n const { tabIndex, className, children, slot, ...rest } = props;\n\n return (\n <ArkRadioGroup.Item\n className={cn(\n \"relative flex cursor-pointer gap-2 rounded-field border border-input bg-transparent p-3 transition-colors\",\n // The rest state is the backdrop (`bg-transparent`) and a card can sit anywhere, so no\n // solid and no percentage is right everywhere: a 50% `bg-accent` measures ΔE 0.00 from rest\n // on an accent backdrop and solid `bg-secondary` measures 0.00 on a secondary one — a hover\n // and a selected state a user cannot see, on the surface each is most likely to meet. Both\n // are therefore alpha steps, composited onto whatever is under them.\n //\n // **Selected is the BRAND's step and hover is the neutral's**, which is the half worth not\n // undoing: the border already goes `--primary` when checked, so a neutral fill under a\n // brand border was the one place a tenant's palette stopped at the outline. It is also what\n // the reference does — shadcn's choice card is `border-primary` over a 5% `--primary`.\n //\n // Measured 2026-08-20 over `packages/theme/palettes/*.css` — six documents × two modes ×\n // the six surfaces a card can sit on (background, card, popover, muted, secondary, accent),\n // 72 pairs. Floors, light / dark: rest→hover ΔE 3.34 / 5.32, rest→selected 5.81 / 9.46,\n // hover→selected **1.46 / 3.47**. That last figure is the one to read before changing this:\n // the neutral `base-a5` it replaced measured 2.73 / 3.03 there, so the fill alone separates\n // hover from selected LESS well than it did. **`border-input` → `border-primary` is what\n // carries that step**, and it is a far larger signal than either fill; the fill's own job is\n // rest→selected, which improved. Take the border away and this stops being measured.\n \"hover:bg-foreground/14\",\n \"data-[state=checked]:border-primary data-[state=checked]:bg-primary/17\",\n \"data-disabled:pointer-events-none data-disabled:opacity-64\",\n \"has-data-focus-visible:border-primary has-data-focus-visible:ring-[3px] has-data-focus-visible:ring-ring\",\n \"data-invalid:border-destructive\",\n className\n )}\n {...rest}\n data-slot={slot ?? \"radio-group-card\"}\n >\n {children}\n <ArkRadioGroup.ItemHiddenInput tabIndex={tabIndex} />\n </ArkRadioGroup.Item>\n );\n};\n\n// The visual radio dot, no semantics of its own — drop it inside a card to show selection.\nexport const RadioGroupIndicator = (\n props: React.ComponentProps<typeof ArkRadioGroup.ItemControl>\n) => {\n const { className, slot, ...rest } = props;\n\n return (\n <ArkRadioGroup.ItemControl\n className={cn(\n \"inline-flex size-4 shrink-0 items-center justify-center rounded-full border border-input bg-field shadow-xs/5\",\n \"before:size-1.5 before:rounded-full\",\n \"data-[state=checked]:bg-primary data-[state=checked]:before:bg-primary-foreground\",\n className\n )}\n {...rest}\n data-slot={slot ?? \"radio-group-indicator\"}\n />\n );\n};\n\nexport const RadioGroupText = (\n props: React.ComponentProps<typeof ArkRadioGroup.ItemText>\n) => {\n const { className, children, slot, ...rest } = props;\n\n return (\n <FieldLabel asChild>\n <ArkRadioGroup.ItemText\n {...rest}\n data-slot={slot ?? \"radio-group-item-text\"}\n >\n {children}\n </ArkRadioGroup.ItemText>\n </FieldLabel>\n );\n};\n\nexport const RadioGroupLabel = (\n props: React.ComponentProps<typeof ArkRadioGroup.Label>\n) => {\n const { children, slot, ...rest } = props;\n\n return (\n <FieldLabel asChild>\n <ArkRadioGroup.Label {...rest} data-slot={slot ?? \"radio-group-label\"}>\n {children}\n </ArkRadioGroup.Label>\n </FieldLabel>\n );\n};\n"],"names":[],"mappings":";;;;;;AAWO;AAgCL;AAIA;AACE;AAAe;AAAd;AACY;AACuC;AAC1B;AAEpB;AACF;AACA;AAAA;AAEe;AACD;AACC;AACA;AAIX;AAEF;AACe;AAElB;AAAA;AAGP;AAKE;AAEA;AACE;AAAe;AAAd;AACY;AACT;AACA;AACA;AAAA;AAEE;AACe;AAEnB;AAAA;AAAe;AAAd;AACY;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAEQ;AAAA;AAAA;AAGc;AAEyB;AAAA;AAAA;AAGzD;AAQE;AAEA;AACE;AAAe;AAAd;AACY;AACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoBA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEE;AACe;AAElB;AAAA;AACkD;AAAA;AAAA;AAGzD;AAME;AAEA;AACE;AAAe;AAAd;AACY;AACT;AACA;AACA;AACA;AAAA;AAEE;AACe;AAAA;AAGzB;AAKE;AAEA;AAEI;AAAe;AAAd;AACK;AACe;AAElB;AAAA;AAIT;AAKE;AAEA;AAOF;;;;;;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RatingGroup as ArkRatingGroup } from '@ark-ui/react/rating-group';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export declare const useRating: () => import('@ark-ui/react').UseRatingGroupContext;
|
|
4
|
+
export declare const RatingContext: (props: ArkRatingGroup.ContextProps) => React.ReactNode;
|
|
5
|
+
export declare const Rating: (props: React.ComponentProps<typeof ArkRatingGroup.Root>) => React.JSX.Element;
|
|
6
|
+
export declare const RatingLabel: (props: React.ComponentProps<typeof ArkRatingGroup.Label>) => React.JSX.Element;
|
|
7
|
+
export declare const RatingControl: (props: React.ComponentProps<typeof ArkRatingGroup.Control>) => React.JSX.Element;
|
|
8
|
+
export declare const RatingItem: (props: React.ComponentProps<typeof ArkRatingGroup.Item>) => React.JSX.Element;
|
|
9
|
+
export declare const RatingHiddenInput: ({ slot, ...rest }: React.ComponentProps<typeof ArkRatingGroup.HiddenInput>) => React.JSX.Element;
|
|
10
|
+
//# sourceMappingURL=rating.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rating.d.ts","sourceRoot":"","sources":["../../src/simples/rating.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,IAAI,cAAc,EAE9B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,eAAO,MAAM,SAAS,qDAAwB,CAAC;AAG/C,eAAO,MAAM,aAAa,yDAAyB,CAAC;AAEpD,eAAO,MAAM,MAAM,GACjB,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,sBAiBxD,CAAC;AAEF,eAAO,MAAM,WAAW,GACtB,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,sBAWzD,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,sBAe3D,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,sBAuCxD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,mBAAmB,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,WAAW,CAAC,sBAG3E,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx as e, jsxs as d, Fragment as c } from "react/jsx-runtime";
|
|
2
|
+
import { RatingGroup as r, useRatingGroupContext as g } from "@ark-ui/react/rating-group";
|
|
3
|
+
import { StarIcon as l } from "lucide-react";
|
|
4
|
+
import { cn as o } from "../lib/cn.js";
|
|
5
|
+
import { FieldLabel as u } from "./field.js";
|
|
6
|
+
const b = g, R = r.Context, v = (t) => {
|
|
7
|
+
const { className: a, children: n, slot: i, ...s } = t;
|
|
8
|
+
return /* @__PURE__ */ e(
|
|
9
|
+
r.Root,
|
|
10
|
+
{
|
|
11
|
+
className: o(
|
|
12
|
+
"flex flex-col gap-2",
|
|
13
|
+
"data-invalid:text-destructive dark:data-invalid:text-destructive-foreground",
|
|
14
|
+
a
|
|
15
|
+
),
|
|
16
|
+
...s,
|
|
17
|
+
"data-slot": i ?? "rating",
|
|
18
|
+
children: n
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}, N = (t) => {
|
|
22
|
+
const { children: a, slot: n, ...i } = t;
|
|
23
|
+
return /* @__PURE__ */ e(u, { asChild: !0, children: /* @__PURE__ */ e(r.Label, { ...i, "data-slot": n ?? "rating-label", children: a }) });
|
|
24
|
+
}, C = (t) => {
|
|
25
|
+
const { className: a, slot: n, ...i } = t;
|
|
26
|
+
return /* @__PURE__ */ e(
|
|
27
|
+
r.Control,
|
|
28
|
+
{
|
|
29
|
+
className: o(
|
|
30
|
+
"inline-flex items-center gap-0.5",
|
|
31
|
+
"data-disabled:pointer-events-none data-disabled:opacity-64",
|
|
32
|
+
a
|
|
33
|
+
),
|
|
34
|
+
...i,
|
|
35
|
+
"data-slot": n ?? "rating-control"
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}, I = (t) => {
|
|
39
|
+
const { className: a, children: n, slot: i, ...s } = t;
|
|
40
|
+
return /* @__PURE__ */ e(
|
|
41
|
+
r.Item,
|
|
42
|
+
{
|
|
43
|
+
className: o(
|
|
44
|
+
"group/rating-item relative",
|
|
45
|
+
"cursor-pointer",
|
|
46
|
+
"rounded-sm",
|
|
47
|
+
"outline-none data-focus-visible:ring-[3px] data-focus-visible:ring-ring",
|
|
48
|
+
"data-readonly:cursor-default",
|
|
49
|
+
"data-disabled:cursor-default",
|
|
50
|
+
a
|
|
51
|
+
),
|
|
52
|
+
...s,
|
|
53
|
+
"data-slot": i ?? "rating-item",
|
|
54
|
+
children: n ?? /* @__PURE__ */ d(c, { children: [
|
|
55
|
+
/* @__PURE__ */ e(l, { "aria-hidden": !0, className: "size-5 text-input" }),
|
|
56
|
+
/* @__PURE__ */ e(
|
|
57
|
+
l,
|
|
58
|
+
{
|
|
59
|
+
"aria-hidden": !0,
|
|
60
|
+
className: o(
|
|
61
|
+
"absolute inset-0 size-5",
|
|
62
|
+
"fill-warning text-warning",
|
|
63
|
+
"opacity-0 group-data-highlighted/rating-item:opacity-100",
|
|
64
|
+
"group-data-half/rating-item:[clip-path:inset(0_50%_0_0)]"
|
|
65
|
+
)
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
] })
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
}, y = ({ slot: t, ...a }) => /* @__PURE__ */ e(r.HiddenInput, { ...a, "data-slot": t ?? "rating-hidden-input" });
|
|
72
|
+
export {
|
|
73
|
+
v as Rating,
|
|
74
|
+
R as RatingContext,
|
|
75
|
+
C as RatingControl,
|
|
76
|
+
y as RatingHiddenInput,
|
|
77
|
+
I as RatingItem,
|
|
78
|
+
N as RatingLabel,
|
|
79
|
+
b as useRating
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=rating.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rating.js","sources":["../../src/simples/rating.tsx"],"sourcesContent":["import {\n RatingGroup as ArkRatingGroup,\n useRatingGroupContext,\n} from \"@ark-ui/react/rating-group\";\nimport { StarIcon } from \"lucide-react\";\nimport type React from \"react\";\nimport { cn } from \"../lib/cn\";\nimport { FieldLabel } from \"./field\";\n\nexport const useRating = useRatingGroupContext;\n\n// Render-prop context used to map the machine's items into styled stars.\nexport const RatingContext = ArkRatingGroup.Context;\n\nexport const Rating = (\n props: React.ComponentProps<typeof ArkRatingGroup.Root>\n) => {\n const { className, children, slot, ...rest } = props;\n\n return (\n <ArkRatingGroup.Root\n className={cn(\n \"flex flex-col gap-2\",\n \"data-invalid:text-destructive dark:data-invalid:text-destructive-foreground\",\n className\n )}\n {...rest}\n data-slot={slot ?? \"rating\"}\n >\n {children}\n </ArkRatingGroup.Root>\n );\n};\n\nexport const RatingLabel = (\n props: React.ComponentProps<typeof ArkRatingGroup.Label>\n) => {\n const { children, slot, ...rest } = props;\n\n return (\n <FieldLabel asChild>\n <ArkRatingGroup.Label {...rest} data-slot={slot ?? \"rating-label\"}>\n {children}\n </ArkRatingGroup.Label>\n </FieldLabel>\n );\n};\n\nexport const RatingControl = (\n props: React.ComponentProps<typeof ArkRatingGroup.Control>\n) => {\n const { className, slot, ...rest } = props;\n\n return (\n <ArkRatingGroup.Control\n className={cn(\n \"inline-flex items-center gap-0.5\",\n \"data-disabled:pointer-events-none data-disabled:opacity-64\",\n className\n )}\n {...rest}\n data-slot={slot ?? \"rating-control\"}\n />\n );\n};\n\nexport const RatingItem = (\n props: React.ComponentProps<typeof ArkRatingGroup.Item>\n) => {\n const { className, children, slot, ...rest } = props;\n\n return (\n <ArkRatingGroup.Item\n className={cn(\n \"group/rating-item relative\",\n \"cursor-pointer\",\n \"rounded-sm\",\n \"outline-none data-focus-visible:ring-[3px] data-focus-visible:ring-ring\",\n \"data-readonly:cursor-default\",\n \"data-disabled:cursor-default\",\n className\n )}\n {...rest}\n data-slot={slot ?? \"rating-item\"}\n >\n {children ?? (\n <>\n {/* The empty star is what says \"out of five\", so it owes the 3:1 that identifies a\n control's unfilled state. Diluted it measured 2.03:1 in light and 2.23 in dark.\n `--input` is the boundary role — the first ramp step that reaches 3:1 — and lands at\n 4.54 and 4.18 while staying well under step 11, which at 9.19 would out-shout the\n filled stars (`--warning`, 3.07 in light). Same duty as a switch's unchecked track. */}\n <StarIcon aria-hidden className=\"size-5 text-input\" />\n <StarIcon\n aria-hidden\n className={cn(\n \"absolute inset-0 size-5\",\n \"fill-warning text-warning\",\n \"opacity-0 group-data-highlighted/rating-item:opacity-100\",\n \"group-data-half/rating-item:[clip-path:inset(0_50%_0_0)]\"\n )}\n />\n </>\n )}\n </ArkRatingGroup.Item>\n );\n};\n\nexport const RatingHiddenInput = (\n { slot, ...rest }: React.ComponentProps<typeof ArkRatingGroup.HiddenInput>\n) => (\n <ArkRatingGroup.HiddenInput {...rest} data-slot={slot ?? \"rating-hidden-input\"} />\n);\n"],"names":["useRating","useRatingGroupContext","RatingContext","ArkRatingGroup","Rating","props","className","children","slot","rest","jsx","cn","RatingLabel","FieldLabel","RatingControl","RatingItem","jsxs","Fragment","StarIcon","RatingHiddenInput"],"mappings":";;;;;AASO,MAAMA,IAAYC,GAGZC,IAAgBC,EAAe,SAE/BC,IAAS,CACpBC,MACG;AACH,QAAM,EAAE,WAAAC,GAAW,UAAAC,GAAU,MAAAC,GAAM,GAAGC,MAASJ;AAE/C,SACE,gBAAAK;AAAA,IAACP,EAAe;AAAA,IAAf;AAAA,MACC,WAAWQ;AAAA,QACT;AAAA,QACA;AAAA,QACAL;AAAA,MAAA;AAAA,MAED,GAAGG;AAAA,MACJ,aAAWD,KAAQ;AAAA,MAElB,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP,GAEaK,IAAc,CACzBP,MACG;AACH,QAAM,EAAE,UAAAE,GAAU,MAAAC,GAAM,GAAGC,MAASJ;AAEpC,SACE,gBAAAK,EAACG,GAAA,EAAW,SAAO,IACjB,4BAACV,EAAe,OAAf,EAAsB,GAAGM,GAAM,aAAWD,KAAQ,gBAChD,UAAAD,GACH,GACF;AAEJ,GAEaO,IAAgB,CAC3BT,MACG;AACH,QAAM,EAAE,WAAAC,GAAW,MAAAE,GAAM,GAAGC,MAASJ;AAErC,SACE,gBAAAK;AAAA,IAACP,EAAe;AAAA,IAAf;AAAA,MACC,WAAWQ;AAAA,QACT;AAAA,QACA;AAAA,QACAL;AAAA,MAAA;AAAA,MAED,GAAGG;AAAA,MACJ,aAAWD,KAAQ;AAAA,IAAA;AAAA,EAAA;AAGzB,GAEaO,IAAa,CACxBV,MACG;AACH,QAAM,EAAE,WAAAC,GAAW,UAAAC,GAAU,MAAAC,GAAM,GAAGC,MAASJ;AAE/C,SACE,gBAAAK;AAAA,IAACP,EAAe;AAAA,IAAf;AAAA,MACC,WAAWQ;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACAL;AAAA,MAAA;AAAA,MAED,GAAGG;AAAA,MACJ,aAAWD,KAAQ;AAAA,MAElB,eACC,gBAAAQ,EAAAC,GAAA,EAME,UAAA;AAAA,QAAA,gBAAAP,EAACQ,GAAA,EAAS,eAAW,IAAC,WAAU,qBAAoB;AAAA,QACpD,gBAAAR;AAAA,UAACQ;AAAA,UAAA;AAAA,YACC,eAAW;AAAA,YACX,WAAWP;AAAA,cACT;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,MACF,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAIR,GAEaQ,IAAoB,CAC/B,EAAE,MAAAX,GAAM,GAAGC,EAAA,MAEX,gBAAAC,EAACP,EAAe,aAAf,EAA4B,GAAGM,GAAM,aAAWD,KAAQ,sBAAA,CAAuB;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Splitter as ArkSplitter } from '@ark-ui/react/splitter';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export declare const useResizable: () => import('@ark-ui/react').UseSplitterContext;
|
|
4
|
+
export declare const Resizable: (props: React.ComponentProps<typeof ArkSplitter.Root>) => React.JSX.Element;
|
|
5
|
+
export declare const ResizablePanel: ({ slot, ...rest }: React.ComponentProps<typeof ArkSplitter.Panel>) => React.JSX.Element;
|
|
6
|
+
interface ResizableResizeTriggerProps extends React.ComponentProps<typeof ArkSplitter.ResizeTrigger> {
|
|
7
|
+
/**
|
|
8
|
+
* Whether to show the handle
|
|
9
|
+
*
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
withHandle?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const ResizableResizeTrigger: (props: ResizableResizeTriggerProps) => React.JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=resizable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../src/simples/resizable.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,IAAI,WAAW,EAExB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,eAAO,MAAM,YAAY,kDAAqB,CAAC;AAE/C,eAAO,MAAM,SAAS,GACpB,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,sBAWrD,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,mBAAmB,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,KAAK,CAAC,sBACO,CAAC;AAE3E,UAAU,2BACR,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,aAAa,CAAC;IAC9D;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,sBAAsB,GAAI,OAAO,2BAA2B,sBAoCxE,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useSplitterContext as n, Splitter as l } from "@ark-ui/react/splitter";
|
|
3
|
+
import { GripVertical as c } from "lucide-react";
|
|
4
|
+
import { cn as s } from "../lib/cn.js";
|
|
5
|
+
const u = n, v = (e) => {
|
|
6
|
+
const { className: t, slot: r, ...i } = e;
|
|
7
|
+
return /* @__PURE__ */ a(
|
|
8
|
+
l.Root,
|
|
9
|
+
{
|
|
10
|
+
className: s("flex size-full", t),
|
|
11
|
+
...i,
|
|
12
|
+
"data-slot": r ?? "resizable"
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}, z = ({ slot: e, ...t }) => /* @__PURE__ */ a(l.Panel, { ...t, "data-slot": e ?? "resizable-panel" }), g = (e) => {
|
|
16
|
+
const { withHandle: t = !1, className: r, slot: i, ...o } = e;
|
|
17
|
+
return /* @__PURE__ */ a(
|
|
18
|
+
l.ResizeTrigger,
|
|
19
|
+
{
|
|
20
|
+
"aria-label": "Resize",
|
|
21
|
+
className: s(
|
|
22
|
+
"relative bg-border",
|
|
23
|
+
"flex w-px items-center justify-center",
|
|
24
|
+
"after:-translate-x-1/2 data-[orientation=vertical]:after:-translate-y-1/2",
|
|
25
|
+
"after:absolute after:inset-s-1/2 after:inset-y-0 after:w-1",
|
|
26
|
+
"focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1",
|
|
27
|
+
"data-[orientation=vertical]:h-px data-[orientation=vertical]:w-full",
|
|
28
|
+
"data-[orientation=vertical]:after:inset-s-0 data-[orientation=vertical]:after:h-1 data-[orientation=vertical]:after:w-full",
|
|
29
|
+
"data-[orientation=vertical]:after:translate-x-0",
|
|
30
|
+
"[&[data-orientation=vertical]>div]:rotate-90",
|
|
31
|
+
r
|
|
32
|
+
),
|
|
33
|
+
...o,
|
|
34
|
+
"data-slot": i ?? "resizable-resize-trigger",
|
|
35
|
+
children: t && /* @__PURE__ */ a(
|
|
36
|
+
"div",
|
|
37
|
+
{
|
|
38
|
+
className: s(
|
|
39
|
+
"z-10",
|
|
40
|
+
"h-4 w-3",
|
|
41
|
+
"flex items-center justify-center",
|
|
42
|
+
"bg-border",
|
|
43
|
+
"rounded-xs border"
|
|
44
|
+
),
|
|
45
|
+
children: /* @__PURE__ */ a(c, { className: "size-2.5" })
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
v as Resizable,
|
|
53
|
+
z as ResizablePanel,
|
|
54
|
+
g as ResizableResizeTrigger,
|
|
55
|
+
u as useResizable
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=resizable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resizable.js","sources":["../../src/simples/resizable.tsx"],"sourcesContent":["import {\n Splitter as ArkSplitter,\n useSplitterContext,\n} from \"@ark-ui/react/splitter\";\nimport { GripVertical } from \"lucide-react\";\nimport type React from \"react\";\nimport { cn } from \"../lib/cn\";\n\nexport const useResizable = useSplitterContext;\n\nexport const Resizable = (\n props: React.ComponentProps<typeof ArkSplitter.Root>\n) => {\n const { className, slot, ...rest } = props;\n\n return (\n <ArkSplitter.Root\n className={cn(\"flex size-full\", className)}\n {...rest}\n data-slot={slot ?? \"resizable\"}\n />\n );\n};\n\nexport const ResizablePanel = (\n { slot, ...rest }: React.ComponentProps<typeof ArkSplitter.Panel>\n) => <ArkSplitter.Panel {...rest} data-slot={slot ?? \"resizable-panel\"} />;\n\ninterface ResizableResizeTriggerProps\n extends React.ComponentProps<typeof ArkSplitter.ResizeTrigger> {\n /**\n * Whether to show the handle\n *\n * @default false\n */\n withHandle?: boolean;\n}\n\nexport const ResizableResizeTrigger = (props: ResizableResizeTriggerProps) => {\n const { withHandle = false, className, slot, ...rest } = props;\n\n return (\n <ArkSplitter.ResizeTrigger\n aria-label=\"Resize\"\n className={cn(\n \"relative bg-border\",\n \"flex w-px items-center justify-center\",\n \"after:-translate-x-1/2 data-[orientation=vertical]:after:-translate-y-1/2\",\n \"after:absolute after:inset-s-1/2 after:inset-y-0 after:w-1\",\n \"focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1\",\n \"data-[orientation=vertical]:h-px data-[orientation=vertical]:w-full\",\n \"data-[orientation=vertical]:after:inset-s-0 data-[orientation=vertical]:after:h-1 data-[orientation=vertical]:after:w-full\",\n \"data-[orientation=vertical]:after:translate-x-0\",\n \"[&[data-orientation=vertical]>div]:rotate-90\",\n className\n )}\n {...rest}\n data-slot={slot ?? \"resizable-resize-trigger\"}\n >\n {withHandle && (\n <div\n className={cn(\n \"z-10\",\n \"h-4 w-3\",\n \"flex items-center justify-center\",\n \"bg-border\",\n \"rounded-xs border\"\n )}\n >\n <GripVertical className=\"size-2.5\" />\n </div>\n )}\n </ArkSplitter.ResizeTrigger>\n );\n};\n"],"names":["useResizable","useSplitterContext","Resizable","props","className","slot","rest","jsx","ArkSplitter","cn","ResizablePanel","ResizableResizeTrigger","withHandle","GripVertical"],"mappings":";;;;AAQO,MAAMA,IAAeC,GAEfC,IAAY,CACvBC,MACG;AACH,QAAM,EAAE,WAAAC,GAAW,MAAAC,GAAM,GAAGC,MAASH;AAErC,SACE,gBAAAI;AAAA,IAACC,EAAY;AAAA,IAAZ;AAAA,MACC,WAAWC,EAAG,kBAAkBL,CAAS;AAAA,MACxC,GAAGE;AAAA,MACJ,aAAWD,KAAQ;AAAA,IAAA;AAAA,EAAA;AAGzB,GAEaK,IAAiB,CAC5B,EAAE,MAAAL,GAAM,GAAGC,EAAA,MACR,gBAAAC,EAACC,EAAY,OAAZ,EAAmB,GAAGF,GAAM,aAAWD,KAAQ,kBAAA,CAAmB,GAY3DM,IAAyB,CAACR,MAAuC;AAC5E,QAAM,EAAE,YAAAS,IAAa,IAAO,WAAAR,GAAW,MAAAC,GAAM,GAAGC,MAASH;AAEzD,SACE,gBAAAI;AAAA,IAACC,EAAY;AAAA,IAAZ;AAAA,MACC,cAAW;AAAA,MACX,WAAWC;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACAL;AAAA,MAAA;AAAA,MAED,GAAGE;AAAA,MACJ,aAAWD,KAAQ;AAAA,MAElB,UAAAO,KACC,gBAAAL;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAWE;AAAA,YACT;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,UAAA;AAAA,UAGF,UAAA,gBAAAF,EAACM,GAAA,EAAa,WAAU,WAAA,CAAW;AAAA,QAAA;AAAA,MAAA;AAAA,IACrC;AAAA,EAAA;AAIR;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ScrollArea as ArkScrollArea } from '@ark-ui/react/scroll-area';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { VariantProps } from 'tailwind-variants';
|
|
4
|
+
export declare const useScrollArea: () => import('@ark-ui/react').UseScrollAreaContext;
|
|
5
|
+
declare const scrollAreaVariants: import('tailwind-variants').TVReturnType<{
|
|
6
|
+
scrollFade: {
|
|
7
|
+
true: string[];
|
|
8
|
+
};
|
|
9
|
+
}, undefined, string[], {
|
|
10
|
+
scrollFade: {
|
|
11
|
+
true: string[];
|
|
12
|
+
};
|
|
13
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
14
|
+
scrollFade: {
|
|
15
|
+
true: string[];
|
|
16
|
+
};
|
|
17
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
18
|
+
interface ScrollAreaProps extends React.ComponentProps<typeof ArkScrollArea.Root>, VariantProps<typeof scrollAreaVariants> {
|
|
19
|
+
}
|
|
20
|
+
export declare const ScrollArea: (props: ScrollAreaProps) => React.JSX.Element;
|
|
21
|
+
export declare const ScrollAreaScrollbar: (props: React.ComponentProps<typeof ArkScrollArea.Scrollbar>) => React.JSX.Element;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=scroll-area.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../src/simples/scroll-area.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,IAAI,aAAa,EAE5B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG1D,eAAO,MAAM,aAAa,oDAAuB,CAAC;AAElD,QAAA,MAAM,kBAAkB;;;;;;;;;;;;qDAuBtB,CAAC;AAEH,UAAU,eACR,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,EACrD,YAAY,CAAC,OAAO,kBAAkB,CAAC;CAAG;AAE9C,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,sBAwBhD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,SAAS,CAAC,sBAkC5D,CAAC"}
|