@cascivo/react 0.13.1 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/accordion/accordion.css +1 -1
- package/dist/accordion/accordion.js +81 -65
- package/dist/accordion/accordion.module.js +6 -9
- package/dist/action-sheet/action-sheet.js +11 -11
- package/dist/action-sheet/action-sheet.module.js +0 -2
- package/dist/alert/alert.module.js +0 -2
- package/dist/alert-dialog/alert-dialog.css +1 -1
- package/dist/alert-dialog/alert-dialog.js +6 -6
- package/dist/alert-dialog/alert-dialog.module.js +7 -9
- package/dist/app-shell/app-shell.js +10 -10
- package/dist/app-shell/app-shell.module.js +0 -2
- package/dist/aspect-ratio/aspect-ratio.js +1 -3
- package/dist/aspect-ratio/aspect-ratio.module.js +0 -2
- package/dist/avatar/avatar.module.js +0 -2
- package/dist/avatar-group/avatar-group.js +1 -3
- package/dist/avatar-group/avatar-group.module.js +0 -2
- package/dist/badge/badge.js +1 -3
- package/dist/badge/badge.module.js +0 -2
- package/dist/blockquote/blockquote.js +1 -3
- package/dist/blockquote/blockquote.module.js +0 -2
- package/dist/bottom-sheet/bottom-sheet.js +12 -12
- package/dist/bottom-sheet/bottom-sheet.module.js +0 -2
- package/dist/breadcrumb/breadcrumb.module.js +0 -2
- package/dist/button/button.js +1 -3
- package/dist/button/button.module.js +0 -2
- package/dist/button-group/button-group.js +6 -6
- package/dist/button-group/button-group.module.js +0 -2
- package/dist/calendar/calendar.module.js +0 -2
- package/dist/card/card.js +1 -3
- package/dist/card/card.module.js +0 -2
- package/dist/carousel/carousel.js +9 -9
- package/dist/carousel/carousel.module.js +0 -2
- package/dist/chat-bubble/chat-bubble.js +0 -2
- package/dist/chat-bubble/chat-bubble.module.js +0 -2
- package/dist/checkbox/checkbox.js +10 -10
- package/dist/checkbox/checkbox.module.js +0 -2
- package/dist/checkbox-card/checkbox-card.js +5 -5
- package/dist/checkbox-card/checkbox-card.module.js +0 -2
- package/dist/code/code.js +1 -3
- package/dist/code/code.module.js +0 -2
- package/dist/code-snippet/code-snippet.module.js +0 -2
- package/dist/code-snippet/highlight.js +0 -2
- package/dist/collapsible/collapsible.css +1 -1
- package/dist/collapsible/collapsible.js +36 -31
- package/dist/collapsible/collapsible.module.js +3 -6
- package/dist/color-picker/color-picker.js +7 -7
- package/dist/color-picker/color-picker.module.js +0 -2
- package/dist/combobox/combobox.css +1 -1
- package/dist/combobox/combobox.js +11 -11
- package/dist/combobox/combobox.module.js +15 -17
- package/dist/command-menu/command-menu.js +113 -113
- package/dist/command-menu/command-menu.module.js +0 -2
- package/dist/comparison/comparison.js +5 -5
- package/dist/comparison/comparison.module.js +0 -2
- package/dist/contained-list/contained-list.module.js +0 -2
- package/dist/context-menu/context-menu.js +6 -6
- package/dist/context-menu/context-menu.module.js +0 -2
- package/dist/copy-button/copy-button.js +7 -7
- package/dist/copy-button/copy-button.module.js +0 -2
- package/dist/data-list/data-list.js +1 -3
- package/dist/data-list/data-list.module.js +0 -2
- package/dist/data-table/data-table.css +1 -1
- package/dist/data-table/data-table.js +164 -164
- package/dist/data-table/data-table.module.js +29 -31
- package/dist/date-picker/date-picker.css +1 -1
- package/dist/date-picker/date-picker.js +24 -24
- package/dist/date-picker/date-picker.module.js +19 -21
- package/dist/date-range-picker/date-range-picker.js +30 -30
- package/dist/date-range-picker/date-range-picker.module.js +0 -2
- package/dist/dock/dock.module.js +0 -2
- package/dist/drawer/drawer.js +11 -11
- package/dist/drawer/drawer.module.js +0 -2
- package/dist/dropdown/dropdown.js +14 -14
- package/dist/dropdown/dropdown.module.js +0 -2
- package/dist/editable/editable.css +1 -1
- package/dist/editable/editable.js +8 -8
- package/dist/editable/editable.module.js +7 -9
- package/dist/empty-state/empty-state.js +1 -3
- package/dist/empty-state/empty-state.module.js +0 -2
- package/dist/fab/fab.js +12 -12
- package/dist/fab/fab.module.js +0 -2
- package/dist/field/field.js +1 -3
- package/dist/field/field.module.js +0 -2
- package/dist/file-uploader/file-uploader.css +1 -1
- package/dist/file-uploader/file-uploader.js +5 -5
- package/dist/file-uploader/file-uploader.module.js +14 -16
- package/dist/filter/filter.module.js +0 -2
- package/dist/form/form.module.js +0 -2
- package/dist/header/header.module.js +0 -2
- package/dist/header-panel/header-panel.js +8 -8
- package/dist/header-panel/header-panel.module.js +0 -2
- package/dist/heading/heading.js +1 -3
- package/dist/heading/heading.module.js +0 -2
- package/dist/hover-card/hover-card.js +18 -18
- package/dist/hover-card/hover-card.module.js +0 -2
- package/dist/icon-button/icon-button.js +1 -3
- package/dist/icon-button/icon-button.module.js +0 -2
- package/dist/image/image.module.js +0 -2
- package/dist/index.d.ts +151 -24
- package/dist/index.js +0 -1
- package/dist/indicator/indicator.js +0 -2
- package/dist/indicator/indicator.module.js +0 -2
- package/dist/inline-loading/inline-loading.js +1 -3
- package/dist/inline-loading/inline-loading.module.js +0 -2
- package/dist/input/input.js +11 -11
- package/dist/input/input.module.js +0 -2
- package/dist/input-group/input-group.js +1 -3
- package/dist/input-group/input-group.module.js +0 -2
- package/dist/item/item.js +1 -3
- package/dist/item/item.module.js +0 -2
- package/dist/join/join.js +0 -2
- package/dist/join/join.module.js +0 -2
- package/dist/kbd/kbd.js +1 -3
- package/dist/kbd/kbd.module.js +0 -2
- package/dist/label/label.js +1 -3
- package/dist/label/label.module.js +0 -2
- package/dist/layouts/src/auto-grid/auto-grid.js +1 -3
- package/dist/layouts/src/auto-grid/auto-grid.module.js +0 -2
- package/dist/layouts/src/center/center.js +1 -3
- package/dist/layouts/src/center/center.module.js +0 -2
- package/dist/layouts/src/columns/columns.js +1 -3
- package/dist/layouts/src/columns/columns.module.js +0 -2
- package/dist/layouts/src/flex/flex.js +1 -3
- package/dist/layouts/src/flex/flex.module.js +0 -2
- package/dist/layouts/src/grid/grid.js +1 -3
- package/dist/layouts/src/grid/grid.module.js +0 -2
- package/dist/layouts/src/page-header/page-header.css +1 -1
- package/dist/layouts/src/page-header/page-header.js +1 -3
- package/dist/layouts/src/page-header/page-header.module.js +6 -8
- package/dist/layouts/src/spacer/spacer.js +1 -3
- package/dist/layouts/src/spacer/spacer.module.js +0 -2
- package/dist/link/link.js +1 -3
- package/dist/link/link.module.js +0 -2
- package/dist/list/list.js +1 -3
- package/dist/list/list.module.js +0 -2
- package/dist/log-viewer/log-viewer.js +15 -15
- package/dist/log-viewer/log-viewer.module.js +0 -2
- package/dist/menu/menu.js +22 -21
- package/dist/menu/menu.module.js +0 -2
- package/dist/menu-button/menu-button.js +8 -8
- package/dist/menu-button/menu-button.module.js +0 -2
- package/dist/menubar/menubar.js +24 -24
- package/dist/menubar/menubar.module.js +0 -2
- package/dist/modal/modal.js +9 -9
- package/dist/modal/modal.module.js +0 -2
- package/dist/multi-select/multi-select.css +1 -1
- package/dist/multi-select/multi-select.js +8 -8
- package/dist/multi-select/multi-select.module.js +11 -13
- package/dist/native-select/native-select.js +1 -3
- package/dist/native-select/native-select.module.js +0 -2
- package/dist/navigation-menu/navigation-menu.js +26 -26
- package/dist/navigation-menu/navigation-menu.module.js +0 -2
- package/dist/node/accordion/accordion.js +81 -65
- package/dist/node/accordion/accordion.module.js +6 -9
- package/dist/node/action-sheet/action-sheet.js +11 -11
- package/dist/node/action-sheet/action-sheet.module.js +0 -2
- package/dist/node/alert/alert.module.js +0 -2
- package/dist/node/alert-dialog/alert-dialog.js +6 -6
- package/dist/node/alert-dialog/alert-dialog.module.js +7 -9
- package/dist/node/app-shell/app-shell.js +10 -10
- package/dist/node/app-shell/app-shell.module.js +0 -2
- package/dist/node/aspect-ratio/aspect-ratio.js +1 -3
- package/dist/node/aspect-ratio/aspect-ratio.module.js +0 -2
- package/dist/node/avatar/avatar.module.js +0 -2
- package/dist/node/avatar-group/avatar-group.js +1 -3
- package/dist/node/avatar-group/avatar-group.module.js +0 -2
- package/dist/node/badge/badge.js +1 -3
- package/dist/node/badge/badge.module.js +0 -2
- package/dist/node/blockquote/blockquote.js +1 -3
- package/dist/node/blockquote/blockquote.module.js +0 -2
- package/dist/node/bottom-sheet/bottom-sheet.js +12 -12
- package/dist/node/bottom-sheet/bottom-sheet.module.js +0 -2
- package/dist/node/breadcrumb/breadcrumb.module.js +0 -2
- package/dist/node/button/button.js +1 -3
- package/dist/node/button/button.module.js +0 -2
- package/dist/node/button-group/button-group.js +6 -6
- package/dist/node/button-group/button-group.module.js +0 -2
- package/dist/node/calendar/calendar.module.js +0 -2
- package/dist/node/card/card.js +1 -3
- package/dist/node/card/card.module.js +0 -2
- package/dist/node/carousel/carousel.js +9 -9
- package/dist/node/carousel/carousel.module.js +0 -2
- package/dist/node/chat-bubble/chat-bubble.js +0 -2
- package/dist/node/chat-bubble/chat-bubble.module.js +0 -2
- package/dist/node/checkbox/checkbox.js +10 -10
- package/dist/node/checkbox/checkbox.module.js +0 -2
- package/dist/node/checkbox-card/checkbox-card.js +5 -5
- package/dist/node/checkbox-card/checkbox-card.module.js +0 -2
- package/dist/node/code/code.js +1 -3
- package/dist/node/code/code.module.js +0 -2
- package/dist/node/code-snippet/code-snippet.module.js +0 -2
- package/dist/node/code-snippet/highlight.js +0 -2
- package/dist/node/collapsible/collapsible.js +36 -31
- package/dist/node/collapsible/collapsible.module.js +3 -6
- package/dist/node/color-picker/color-picker.js +7 -7
- package/dist/node/color-picker/color-picker.module.js +0 -2
- package/dist/node/combobox/combobox.js +11 -11
- package/dist/node/combobox/combobox.module.js +15 -17
- package/dist/node/command-menu/command-menu.js +113 -113
- package/dist/node/command-menu/command-menu.module.js +0 -2
- package/dist/node/comparison/comparison.js +5 -5
- package/dist/node/comparison/comparison.module.js +0 -2
- package/dist/node/contained-list/contained-list.module.js +0 -2
- package/dist/node/context-menu/context-menu.js +6 -6
- package/dist/node/context-menu/context-menu.module.js +0 -2
- package/dist/node/copy-button/copy-button.js +7 -7
- package/dist/node/copy-button/copy-button.module.js +0 -2
- package/dist/node/data-list/data-list.js +1 -3
- package/dist/node/data-list/data-list.module.js +0 -2
- package/dist/node/data-table/data-table.js +164 -164
- package/dist/node/data-table/data-table.module.js +29 -31
- package/dist/node/date-picker/date-picker.js +24 -24
- package/dist/node/date-picker/date-picker.module.js +19 -21
- package/dist/node/date-range-picker/date-range-picker.js +30 -30
- package/dist/node/date-range-picker/date-range-picker.module.js +0 -2
- package/dist/node/dock/dock.module.js +0 -2
- package/dist/node/drawer/drawer.js +11 -11
- package/dist/node/drawer/drawer.module.js +0 -2
- package/dist/node/dropdown/dropdown.js +14 -14
- package/dist/node/dropdown/dropdown.module.js +0 -2
- package/dist/node/editable/editable.js +8 -8
- package/dist/node/editable/editable.module.js +7 -9
- package/dist/node/empty-state/empty-state.js +1 -3
- package/dist/node/empty-state/empty-state.module.js +0 -2
- package/dist/node/fab/fab.js +12 -12
- package/dist/node/fab/fab.module.js +0 -2
- package/dist/node/field/field.js +1 -3
- package/dist/node/field/field.module.js +0 -2
- package/dist/node/file-uploader/file-uploader.js +5 -5
- package/dist/node/file-uploader/file-uploader.module.js +14 -16
- package/dist/node/filter/filter.module.js +0 -2
- package/dist/node/form/form.module.js +0 -2
- package/dist/node/header/header.module.js +0 -2
- package/dist/node/header-panel/header-panel.js +8 -8
- package/dist/node/header-panel/header-panel.module.js +0 -2
- package/dist/node/heading/heading.js +1 -3
- package/dist/node/heading/heading.module.js +0 -2
- package/dist/node/hover-card/hover-card.js +18 -18
- package/dist/node/hover-card/hover-card.module.js +0 -2
- package/dist/node/icon-button/icon-button.js +1 -3
- package/dist/node/icon-button/icon-button.module.js +0 -2
- package/dist/node/image/image.module.js +0 -2
- package/dist/node/index.js +0 -1
- package/dist/node/indicator/indicator.js +0 -2
- package/dist/node/indicator/indicator.module.js +0 -2
- package/dist/node/inline-loading/inline-loading.js +1 -3
- package/dist/node/inline-loading/inline-loading.module.js +0 -2
- package/dist/node/input/input.js +11 -11
- package/dist/node/input/input.module.js +0 -2
- package/dist/node/input-group/input-group.js +1 -3
- package/dist/node/input-group/input-group.module.js +0 -2
- package/dist/node/item/item.js +1 -3
- package/dist/node/item/item.module.js +0 -2
- package/dist/node/join/join.js +0 -2
- package/dist/node/join/join.module.js +0 -2
- package/dist/node/kbd/kbd.js +1 -3
- package/dist/node/kbd/kbd.module.js +0 -2
- package/dist/node/label/label.js +1 -3
- package/dist/node/label/label.module.js +0 -2
- package/dist/node/layouts/src/auto-grid/auto-grid.js +1 -3
- package/dist/node/layouts/src/auto-grid/auto-grid.module.js +0 -2
- package/dist/node/layouts/src/center/center.js +1 -3
- package/dist/node/layouts/src/center/center.module.js +0 -2
- package/dist/node/layouts/src/columns/columns.js +1 -3
- package/dist/node/layouts/src/columns/columns.module.js +0 -2
- package/dist/node/layouts/src/flex/flex.js +1 -3
- package/dist/node/layouts/src/flex/flex.module.js +0 -2
- package/dist/node/layouts/src/grid/grid.js +1 -3
- package/dist/node/layouts/src/grid/grid.module.js +0 -2
- package/dist/node/layouts/src/page-header/page-header.js +1 -3
- package/dist/node/layouts/src/page-header/page-header.module.js +6 -8
- package/dist/node/layouts/src/spacer/spacer.js +1 -3
- package/dist/node/layouts/src/spacer/spacer.module.js +0 -2
- package/dist/node/link/link.js +1 -3
- package/dist/node/link/link.module.js +0 -2
- package/dist/node/list/list.js +1 -3
- package/dist/node/list/list.module.js +0 -2
- package/dist/node/log-viewer/log-viewer.js +15 -15
- package/dist/node/log-viewer/log-viewer.module.js +0 -2
- package/dist/node/menu/menu.js +22 -21
- package/dist/node/menu/menu.module.js +0 -2
- package/dist/node/menu-button/menu-button.js +8 -8
- package/dist/node/menu-button/menu-button.module.js +0 -2
- package/dist/node/menubar/menubar.js +24 -24
- package/dist/node/menubar/menubar.module.js +0 -2
- package/dist/node/modal/modal.js +9 -9
- package/dist/node/modal/modal.module.js +0 -2
- package/dist/node/multi-select/multi-select.js +8 -8
- package/dist/node/multi-select/multi-select.module.js +11 -13
- package/dist/node/native-select/native-select.js +1 -3
- package/dist/node/native-select/native-select.module.js +0 -2
- package/dist/node/navigation-menu/navigation-menu.js +26 -26
- package/dist/node/navigation-menu/navigation-menu.module.js +0 -2
- package/dist/node/notification/notification.js +6 -6
- package/dist/node/notification/notification.module.js +0 -2
- package/dist/node/number-input/number-input.js +7 -7
- package/dist/node/number-input/number-input.module.js +0 -2
- package/dist/node/otp-input/otp-input.js +5 -5
- package/dist/node/otp-input/otp-input.module.js +0 -2
- package/dist/node/overflow-menu/overflow-menu.module.js +0 -2
- package/dist/node/pagination/pagination.module.js +0 -2
- package/dist/node/password-input/password-input.js +8 -8
- package/dist/node/password-input/password-input.module.js +0 -2
- package/dist/node/popover/popover.js +12 -12
- package/dist/node/popover/popover.module.js +0 -2
- package/dist/node/popover/use-popover.js +8 -10
- package/dist/node/progress/progress.js +0 -2
- package/dist/node/progress/progress.module.js +0 -2
- package/dist/node/progress-bar/progress-bar.js +1 -3
- package/dist/node/progress-bar/progress-bar.module.js +0 -2
- package/dist/node/progress-circle/progress-circle.js +1 -3
- package/dist/node/progress-circle/progress-circle.module.js +0 -2
- package/dist/node/progress-indicator/progress-indicator.js +1 -3
- package/dist/node/progress-indicator/progress-indicator.module.js +0 -2
- package/dist/node/prose/prose.js +1 -3
- package/dist/node/prose/prose.module.js +0 -2
- package/dist/node/pull-to-refresh/pull-to-refresh.js +8 -8
- package/dist/node/pull-to-refresh/pull-to-refresh.module.js +0 -2
- package/dist/node/qr-code/encode.js +0 -2
- package/dist/node/qr-code/qr-code.module.js +0 -2
- package/dist/node/radial-progress/radial-progress.js +9 -10
- package/dist/node/radial-progress/radial-progress.module.js +0 -2
- package/dist/node/radio/radio.js +1 -3
- package/dist/node/radio/radio.module.js +0 -2
- package/dist/node/radio-card/radio-card.js +8 -8
- package/dist/node/radio-card/radio-card.module.js +0 -2
- package/dist/node/rating-group/rating-group.module.js +0 -2
- package/dist/node/react/src/index.js +0 -2
- package/dist/node/react/src/theme.js +10 -10
- package/dist/node/relative-time/relative-time.module.js +0 -2
- package/dist/node/resizable/resizable.js +7 -7
- package/dist/node/resizable/resizable.module.js +0 -2
- package/dist/node/scroll-area/scroll-area.js +6 -6
- package/dist/node/scroll-area/scroll-area.module.js +0 -2
- package/dist/node/search/search.js +9 -9
- package/dist/node/search/search.module.js +0 -2
- package/dist/node/segmented-control/segmented-control.module.js +0 -2
- package/dist/node/select/select.js +11 -11
- package/dist/node/select/select.module.js +0 -2
- package/dist/node/separator/separator.js +1 -3
- package/dist/node/separator/separator.module.js +0 -2
- package/dist/node/sheet/sheet.js +4 -4
- package/dist/node/sheet/sheet.module.js +0 -2
- package/dist/node/shell-header/shell-header.js +21 -18
- package/dist/node/shell-header/shell-header.module.js +20 -21
- package/dist/node/side-nav/side-nav.js +37 -37
- package/dist/node/side-nav/side-nav.module.js +0 -2
- package/dist/node/skeleton/skeleton.js +1 -3
- package/dist/node/skeleton/skeleton.module.js +0 -2
- package/dist/node/skip-nav/skip-nav.js +6 -6
- package/dist/node/skip-nav/skip-nav.module.js +0 -2
- package/dist/node/slider/slider.js +1 -3
- package/dist/node/slider/slider.module.js +0 -2
- package/dist/node/spinner/spinner.module.js +0 -2
- package/dist/node/stack/stack.js +0 -2
- package/dist/node/stack/stack.module.js +0 -2
- package/dist/node/stat/stat.js +22 -23
- package/dist/node/stat/stat.module.js +7 -9
- package/dist/node/status/status.js +1 -3
- package/dist/node/status/status.module.js +0 -2
- package/dist/node/steps/steps.module.js +0 -2
- package/dist/node/storage/src/drivers.js +0 -2
- package/dist/node/storage/src/persisted-signal.js +0 -2
- package/dist/node/structured-list/structured-list.js +10 -10
- package/dist/node/structured-list/structured-list.module.js +0 -2
- package/dist/node/swap/swap.js +10 -11
- package/dist/node/swap/swap.module.js +0 -2
- package/dist/node/swipe-item/swipe-item.module.js +0 -2
- package/dist/node/switcher/switcher.module.js +0 -2
- package/dist/node/tabs/tabs.js +38 -38
- package/dist/node/tabs/tabs.module.js +0 -2
- package/dist/node/tag/tag.module.js +0 -2
- package/dist/node/tags-input/tags-input.js +6 -6
- package/dist/node/tags-input/tags-input.module.js +4 -6
- package/dist/node/text/text.js +1 -3
- package/dist/node/text/text.module.js +0 -2
- package/dist/node/textarea/textarea.js +11 -11
- package/dist/node/textarea/textarea.module.js +0 -2
- package/dist/node/tile/tile.module.js +0 -2
- package/dist/node/time-picker/time-picker.js +9 -9
- package/dist/node/time-picker/time-picker.module.js +5 -7
- package/dist/node/timeline/timeline.js +46 -38
- package/dist/node/timeline/timeline.module.js +7 -9
- package/dist/node/toast/toast.js +15 -15
- package/dist/node/toast/toast.module.js +0 -2
- package/dist/node/toc/toc.js +7 -7
- package/dist/node/toc/toc.module.js +0 -2
- package/dist/node/toggle/toggle.js +7 -7
- package/dist/node/toggle/toggle.module.js +0 -2
- package/dist/node/toggle-group/toggle-group.js +25 -25
- package/dist/node/toggle-group/toggle-group.module.js +0 -2
- package/dist/node/toggletip/toggletip.js +7 -7
- package/dist/node/toggletip/toggletip.module.js +0 -2
- package/dist/node/tooltip/tooltip.js +9 -9
- package/dist/node/tooltip/tooltip.module.js +0 -2
- package/dist/node/tree-view/tree-view.js +47 -47
- package/dist/node/tree-view/tree-view.module.js +0 -2
- package/dist/node/user/user.js +1 -3
- package/dist/node/user/user.module.js +0 -2
- package/dist/node/visually-hidden/visually-hidden.js +1 -3
- package/dist/notification/notification.js +6 -6
- package/dist/notification/notification.module.js +0 -2
- package/dist/number-input/number-input.js +7 -7
- package/dist/number-input/number-input.module.js +0 -2
- package/dist/otp-input/otp-input.js +5 -5
- package/dist/otp-input/otp-input.module.js +0 -2
- package/dist/overflow-menu/overflow-menu.module.js +0 -2
- package/dist/pagination/pagination.module.js +0 -2
- package/dist/password-input/password-input.js +8 -8
- package/dist/password-input/password-input.module.js +0 -2
- package/dist/popover/popover.js +12 -12
- package/dist/popover/popover.module.js +0 -2
- package/dist/popover/use-popover.js +8 -10
- package/dist/progress/progress.js +0 -2
- package/dist/progress/progress.module.js +0 -2
- package/dist/progress-bar/progress-bar.js +1 -3
- package/dist/progress-bar/progress-bar.module.js +0 -2
- package/dist/progress-circle/progress-circle.js +1 -3
- package/dist/progress-circle/progress-circle.module.js +0 -2
- package/dist/progress-indicator/progress-indicator.js +1 -3
- package/dist/progress-indicator/progress-indicator.module.js +0 -2
- package/dist/prose/prose.js +1 -3
- package/dist/prose/prose.module.js +0 -2
- package/dist/pull-to-refresh/pull-to-refresh.js +8 -8
- package/dist/pull-to-refresh/pull-to-refresh.module.js +0 -2
- package/dist/qr-code/encode.js +0 -2
- package/dist/qr-code/qr-code.module.js +0 -2
- package/dist/radial-progress/radial-progress.js +9 -10
- package/dist/radial-progress/radial-progress.module.js +0 -2
- package/dist/radio/radio.js +1 -3
- package/dist/radio/radio.module.js +0 -2
- package/dist/radio-card/radio-card.js +8 -8
- package/dist/radio-card/radio-card.module.js +0 -2
- package/dist/rating-group/rating-group.module.js +0 -2
- package/dist/react/src/index.js +0 -2
- package/dist/react/src/theme.js +10 -10
- package/dist/relative-time/relative-time.module.js +0 -2
- package/dist/resizable/resizable.js +7 -7
- package/dist/resizable/resizable.module.js +0 -2
- package/dist/scroll-area/scroll-area.js +6 -6
- package/dist/scroll-area/scroll-area.module.js +0 -2
- package/dist/search/search.js +9 -9
- package/dist/search/search.module.js +0 -2
- package/dist/segmented-control/segmented-control.module.js +0 -2
- package/dist/select/select.js +11 -11
- package/dist/select/select.module.js +0 -2
- package/dist/separator/separator.js +1 -3
- package/dist/separator/separator.module.js +0 -2
- package/dist/sheet/sheet.js +4 -4
- package/dist/sheet/sheet.module.js +0 -2
- package/dist/shell-header/shell-header.css +1 -1
- package/dist/shell-header/shell-header.js +21 -18
- package/dist/shell-header/shell-header.module.js +20 -21
- package/dist/side-nav/side-nav.js +37 -37
- package/dist/side-nav/side-nav.module.js +0 -2
- package/dist/skeleton/skeleton.js +1 -3
- package/dist/skeleton/skeleton.module.js +0 -2
- package/dist/skip-nav/skip-nav.js +6 -6
- package/dist/skip-nav/skip-nav.module.js +0 -2
- package/dist/slider/slider.js +1 -3
- package/dist/slider/slider.module.js +0 -2
- package/dist/spinner/spinner.module.js +0 -2
- package/dist/stack/stack.js +0 -2
- package/dist/stack/stack.module.js +0 -2
- package/dist/stat/stat.css +1 -1
- package/dist/stat/stat.js +22 -23
- package/dist/stat/stat.module.js +7 -9
- package/dist/status/status.js +1 -3
- package/dist/status/status.module.js +0 -2
- package/dist/steps/steps.module.js +0 -2
- package/dist/storage/src/drivers.js +0 -2
- package/dist/storage/src/persisted-signal.js +0 -2
- package/dist/structured-list/structured-list.js +10 -10
- package/dist/structured-list/structured-list.module.js +0 -2
- package/dist/styles.css +15 -15
- package/dist/swap/swap.js +10 -11
- package/dist/swap/swap.module.js +0 -2
- package/dist/swipe-item/swipe-item.module.js +0 -2
- package/dist/switcher/switcher.module.js +0 -2
- package/dist/tabs/tabs.js +38 -38
- package/dist/tabs/tabs.module.js +0 -2
- package/dist/tag/tag.module.js +0 -2
- package/dist/tags-input/tags-input.css +1 -1
- package/dist/tags-input/tags-input.js +6 -6
- package/dist/tags-input/tags-input.module.js +4 -6
- package/dist/text/text.js +1 -3
- package/dist/text/text.module.js +0 -2
- package/dist/textarea/textarea.js +11 -11
- package/dist/textarea/textarea.module.js +0 -2
- package/dist/tile/tile.module.js +0 -2
- package/dist/time-picker/time-picker.css +1 -1
- package/dist/time-picker/time-picker.js +9 -9
- package/dist/time-picker/time-picker.module.js +5 -7
- package/dist/timeline/timeline.css +1 -1
- package/dist/timeline/timeline.js +46 -38
- package/dist/timeline/timeline.module.js +7 -9
- package/dist/toast/toast.js +15 -15
- package/dist/toast/toast.module.js +0 -2
- package/dist/toc/toc.js +7 -7
- package/dist/toc/toc.module.js +0 -2
- package/dist/toggle/toggle.js +7 -7
- package/dist/toggle/toggle.module.js +0 -2
- package/dist/toggle-group/toggle-group.js +25 -25
- package/dist/toggle-group/toggle-group.module.js +0 -2
- package/dist/toggletip/toggletip.js +7 -7
- package/dist/toggletip/toggletip.module.js +0 -2
- package/dist/tooltip/tooltip.js +9 -9
- package/dist/tooltip/tooltip.module.js +0 -2
- package/dist/tree-view/tree-view.js +47 -47
- package/dist/tree-view/tree-view.module.js +0 -2
- package/dist/user/user.js +1 -3
- package/dist/user/user.module.js +0 -2
- package/dist/visually-hidden/visually-hidden.js +1 -3
- package/package.json +4 -4
- package/readme.body.md +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./number-input.module.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { forwardRef as t } from "react";
|
|
5
|
+
import { cn as n, createMachine as r, useMachine as i, useSignal as a, useSignals as o } from "@cascivo/core";
|
|
6
6
|
import { builtin as s, t as c } from "@cascivo/i18n";
|
|
7
7
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
8
|
//#region ../components/src/number-input/number-input.tsx
|
|
9
|
-
var d =
|
|
9
|
+
var d = r({
|
|
10
10
|
initial: "idle",
|
|
11
11
|
states: {
|
|
12
12
|
idle: { on: { FOCUS: "focused" } },
|
|
@@ -31,9 +31,9 @@ function h(e) {
|
|
|
31
31
|
let n = Number(t);
|
|
32
32
|
return Number.isFinite(n) ? n : null;
|
|
33
33
|
}
|
|
34
|
-
var g =
|
|
35
|
-
|
|
36
|
-
let L = O ?? c(s.numberInput.increment), R = k ?? c(s.numberInput.decrement), [z, B] =
|
|
34
|
+
var g = t(function({ value: t, defaultValue: r, onValueChange: g, onChange: _, min: v, max: y, step: b = 1, precision: x, formatOptions: S, label: C, hint: w, error: T, size: E = "md", disabled: D, incrementLabel: O, decrementLabel: k, className: A, id: j, onFocus: M, onBlur: N, onKeyDown: P, ...F }, I) {
|
|
35
|
+
o();
|
|
36
|
+
let L = O ?? c(s.numberInput.increment), R = k ?? c(s.numberInput.decrement), [z, B] = i(d), V = t !== void 0, H = a(r ?? null), U = a(""), W = V ? t : H.value, G = j ?? (C ? `cascade-number-input-${C.toLowerCase().replace(/\s+/g, "-")}` : void 0), K = (e) => {
|
|
37
37
|
V || (H.value = e), U.value = e == null ? "" : String(e), e !== W && (g ?? _)?.(e);
|
|
38
38
|
}, q = () => {
|
|
39
39
|
let e = h(U.value);
|
|
@@ -43,7 +43,7 @@ var g = o(function({ value: n, defaultValue: o, onValueChange: g, onChange: _, m
|
|
|
43
43
|
K(f(m(t + e * b, n), v, y));
|
|
44
44
|
}, Y = z.value === "focused" ? U.value : ((e) => e == null ? "" : S ? new Intl.NumberFormat(void 0, S).format(e) : String(e))(W), X = W != null && y !== void 0 && W >= y, Z = W != null && v !== void 0 && W <= v;
|
|
45
45
|
return /* @__PURE__ */ u("div", {
|
|
46
|
-
className:
|
|
46
|
+
className: n(e.wrapper, A),
|
|
47
47
|
"data-state": T ? "error" : z.value,
|
|
48
48
|
"data-size": E,
|
|
49
49
|
children: [
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./otp-input.module.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { useRef as t } from "react";
|
|
5
|
+
import { cn as n, useSignal as r, useSignals as i } from "@cascivo/core";
|
|
6
6
|
import { builtin as a, t as o } from "@cascivo/i18n";
|
|
7
7
|
import { jsx as s } from "react/jsx-runtime";
|
|
8
8
|
//#region ../components/src/otp-input/otp-input.tsx
|
|
9
9
|
function c({ length: c = 6, value: l, onValueChange: u, disabled: d = !1, type: f = "numeric", className: p, ...m }) {
|
|
10
|
-
|
|
11
|
-
let h =
|
|
10
|
+
i();
|
|
11
|
+
let h = r(Array.from({ length: c }, (e, t) => l[t] ?? "")), g = t([]), _ = Array.from({ length: c }, (e, t) => l[t] ?? "");
|
|
12
12
|
JSON.stringify(h.value) !== JSON.stringify(_) && (h.value = _);
|
|
13
13
|
function v(e) {
|
|
14
14
|
u(e.join("")), h.value = e;
|
|
@@ -39,7 +39,7 @@ function c({ length: c = 6, value: l, onValueChange: u, disabled: d = !1, type:
|
|
|
39
39
|
}
|
|
40
40
|
let C = o(a.otpInput.label);
|
|
41
41
|
return /* @__PURE__ */ s("div", {
|
|
42
|
-
className:
|
|
42
|
+
className: n(e.wrapper, p),
|
|
43
43
|
role: "group",
|
|
44
44
|
"aria-label": C,
|
|
45
45
|
...m,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./password-input.module.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { forwardRef as t, useId as n } from "react";
|
|
5
|
+
import { cn as r, useSignal as i, useSignals as a } from "@cascivo/core";
|
|
6
6
|
import { builtin as o, t as s } from "@cascivo/i18n";
|
|
7
7
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
8
|
//#region ../components/src/password-input/password-input.tsx
|
|
@@ -23,13 +23,13 @@ function u(e) {
|
|
|
23
23
|
][t]
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
var d =
|
|
27
|
-
|
|
28
|
-
let b =
|
|
26
|
+
var d = t(function({ showStrengthMeter: t = !1, size: d = "md", labels: f, className: p, id: m, value: h, defaultValue: g, onChange: _, ...v }, y) {
|
|
27
|
+
a();
|
|
28
|
+
let b = i(!1), x = i(typeof h == "string" ? h : typeof g == "string" ? g : "");
|
|
29
29
|
typeof h == "string" && (x.value = h);
|
|
30
|
-
let S =
|
|
30
|
+
let S = n(), C = m ?? `cascade-password-${S}`, w = t ? u(x.value) : null, T = b.value ? f?.hide ?? s(o.passwordInput.hide) : f?.reveal ?? s(o.passwordInput.reveal), E = w ? f?.strengthLabel ? f.strengthLabel(w.label) : s(o.passwordInput.strengthLabel, { level: w.label }) : void 0;
|
|
31
31
|
return /* @__PURE__ */ l("div", {
|
|
32
|
-
className:
|
|
32
|
+
className: r(e.wrapper, p),
|
|
33
33
|
"data-size": d,
|
|
34
34
|
"data-revealed": b.value ? "" : void 0,
|
|
35
35
|
children: [/* @__PURE__ */ l("div", {
|
|
@@ -57,7 +57,7 @@ var d = i(function({ showStrengthMeter: i = !1, size: d = "md", labels: f, class
|
|
|
57
57
|
"aria-hidden": "true"
|
|
58
58
|
})
|
|
59
59
|
})]
|
|
60
|
-
}),
|
|
60
|
+
}), t && w && /* @__PURE__ */ c("div", {
|
|
61
61
|
className: e["strength-meter"],
|
|
62
62
|
role: "meter",
|
|
63
63
|
"aria-label": E,
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import { usePopover as e } from "./use-popover.js";
|
|
4
4
|
import t from "./popover.module.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { createContext as n } from "react";
|
|
6
|
+
import { Slot as r, useSignals as i } from "@cascivo/core";
|
|
7
7
|
import { jsx as a } from "react/jsx-runtime";
|
|
8
8
|
//#region ../components/src/popover/popover.tsx
|
|
9
|
-
var o =
|
|
9
|
+
var o = n(null);
|
|
10
10
|
function s({ children: t, ...n }) {
|
|
11
11
|
let r = e(n);
|
|
12
12
|
return /* @__PURE__ */ a(o.Provider, {
|
|
@@ -14,15 +14,15 @@ function s({ children: t, ...n }) {
|
|
|
14
14
|
children: t
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
function c({ children: e, asChild:
|
|
18
|
-
|
|
19
|
-
let s =
|
|
20
|
-
return /* @__PURE__ */ a(o.Consumer, { children: (
|
|
21
|
-
if (!
|
|
22
|
-
let { triggerRef:
|
|
17
|
+
function c({ children: e, asChild: n = !1 }) {
|
|
18
|
+
i();
|
|
19
|
+
let s = n ? r : "button";
|
|
20
|
+
return /* @__PURE__ */ a(o.Consumer, { children: (r) => {
|
|
21
|
+
if (!r) throw Error("PopoverTrigger must be used inside <Popover>");
|
|
22
|
+
let { triggerRef: i, toggle: o, anchorName: c, isOpen: l } = r;
|
|
23
23
|
return /* @__PURE__ */ a(s, {
|
|
24
|
-
ref:
|
|
25
|
-
type:
|
|
24
|
+
ref: i,
|
|
25
|
+
type: n ? void 0 : "button",
|
|
26
26
|
"aria-expanded": l.value,
|
|
27
27
|
"aria-haspopup": "dialog",
|
|
28
28
|
style: { anchorName: c },
|
|
@@ -33,7 +33,7 @@ function c({ children: e, asChild: i = !1 }) {
|
|
|
33
33
|
} });
|
|
34
34
|
}
|
|
35
35
|
function l({ children: e, className: n }) {
|
|
36
|
-
return
|
|
36
|
+
return i(), /* @__PURE__ */ a(o.Consumer, { children: (r) => {
|
|
37
37
|
if (!r) throw Error("PopoverContent must be used inside <Popover>");
|
|
38
38
|
let { popoverRef: i, anchorName: o, isOpen: s } = r;
|
|
39
39
|
return /* @__PURE__ */ a("div", {
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { useId as e, useSignal as t, useSignalEffect as n } from "@cascivo/core";
|
|
4
|
-
import { useRef as r } from "react";
|
|
1
|
+
import { useRef as e } from "react";
|
|
2
|
+
import { useId as t, useSignal as n, useSignalEffect as r } from "@cascivo/core";
|
|
5
3
|
//#region ../components/src/popover/use-popover.ts
|
|
6
4
|
var i = typeof CSS < "u" && typeof CSS.supports == "function" && CSS.supports("anchor-name: --cascivo-a");
|
|
7
5
|
function a(a = {}) {
|
|
8
|
-
let o = `--${
|
|
6
|
+
let o = `--${t("cascivo-popover")}`, s = e(null), c = e(null), l = n(a.open ?? !1);
|
|
9
7
|
a.open !== void 0 && (l.value = a.open);
|
|
10
|
-
let u =
|
|
8
|
+
let u = e(a.onOpenChange);
|
|
11
9
|
u.current = a.onOpenChange;
|
|
12
|
-
let d =
|
|
10
|
+
let d = e(a.placement);
|
|
13
11
|
d.current = a.placement;
|
|
14
|
-
let f =
|
|
15
|
-
return f.current = a.offset,
|
|
12
|
+
let f = e(a.offset);
|
|
13
|
+
return f.current = a.offset, r(() => {
|
|
16
14
|
let e = l.value;
|
|
17
15
|
u.current?.(e);
|
|
18
16
|
let t = c.current;
|
|
@@ -30,7 +28,7 @@ function a(a = {}) {
|
|
|
30
28
|
r === "bottom" ? (t.style.top = `${n.bottom + i + window.scrollY}px`, t.style.left = `${n.left + window.scrollX}px`) : r === "top" ? (t.style.top = `${n.top - i + window.scrollY}px`, t.style.left = `${n.left + window.scrollX}px`, t.style.transform = "translateY(-100%)") : r === "left" ? (t.style.top = `${n.top + window.scrollY}px`, t.style.left = `${n.left - i + window.scrollX}px`, t.style.transform = "translateX(-100%)") : r === "right" && (t.style.top = `${n.top + window.scrollY}px`, t.style.left = `${n.right + i + window.scrollX}px`);
|
|
31
29
|
}
|
|
32
30
|
}
|
|
33
|
-
}),
|
|
31
|
+
}), r(() => {
|
|
34
32
|
let e = c.current;
|
|
35
33
|
if (!e) return;
|
|
36
34
|
let t = (e) => {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
import e from "./progress-bar.module.js";
|
|
4
|
-
import { cn as t } from "@cascivo/core";
|
|
2
|
+
import { cn as t } from "@cascivo/core/pure";
|
|
5
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
6
4
|
//#region ../components/src/progress-bar/progress-bar.tsx
|
|
7
5
|
function i({ value: i, max: a = 100, label: o, helperText: s, size: c = "md", status: l = "active", className: u }) {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
import e from "./progress-circle.module.js";
|
|
4
|
-
import { cn as t } from "@cascivo/core";
|
|
2
|
+
import { cn as t } from "@cascivo/core/pure";
|
|
5
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
6
4
|
//#region ../components/src/progress-circle/progress-circle.tsx
|
|
7
5
|
var i = 20, a = 2 * Math.PI * i;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
import e from "./progress-indicator.module.js";
|
|
4
|
-
import { cn as t } from "@cascivo/core";
|
|
2
|
+
import { cn as t } from "@cascivo/core/pure";
|
|
5
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
6
4
|
//#region ../components/src/progress-indicator/progress-indicator.tsx
|
|
7
5
|
function i({ steps: i, currentIndex: a, vertical: o = !1, className: s }) {
|
package/dist/node/prose/prose.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
import e from "./prose.module.js";
|
|
4
|
-
import { cn as t } from "@cascivo/core";
|
|
2
|
+
import { cn as t } from "@cascivo/core/pure";
|
|
5
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
6
4
|
//#region ../components/src/prose/prose.tsx
|
|
7
5
|
function r({ className: r, children: i, ...a }) {
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
import { Spinner as e } from "../spinner/spinner.js";
|
|
4
4
|
import t from "./pull-to-refresh.module.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { useRef as n } from "react";
|
|
6
|
+
import { cn as r, useSignal as i, useSignalEffect as a, useSignals as o } from "@cascivo/core";
|
|
7
7
|
import { builtin as s, t as c } from "@cascivo/i18n";
|
|
8
8
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
9
|
//#region ../components/src/pull-to-refresh/pull-to-refresh.tsx
|
|
10
10
|
var d = .5;
|
|
11
11
|
function f({ onRefresh: f, children: p, threshold: m = 64, disabled: h = !1, labels: g, className: _ }) {
|
|
12
|
-
|
|
13
|
-
let v =
|
|
12
|
+
o();
|
|
13
|
+
let v = n(null), y = i(0), b = i(!1), x = i(!1), S = n(f);
|
|
14
14
|
S.current = f;
|
|
15
|
-
let C =
|
|
15
|
+
let C = n(m);
|
|
16
16
|
C.current = m;
|
|
17
|
-
let w =
|
|
18
|
-
w.current = h,
|
|
17
|
+
let w = n(h);
|
|
18
|
+
w.current = h, a(() => {
|
|
19
19
|
let e = v.current;
|
|
20
20
|
if (!e || typeof window > "u") return;
|
|
21
21
|
let t = 0, n = !1, r = (r) => {
|
|
@@ -41,7 +41,7 @@ function f({ onRefresh: f, children: p, threshold: m = 64, disabled: h = !1, lab
|
|
|
41
41
|
});
|
|
42
42
|
let T = b.value ? m : y.value, E = Math.min(T / m, 1), D = E >= 1, O = b.value ? g?.refreshing ?? c(s.pullToRefresh.refreshing) : D ? g?.release ?? c(s.pullToRefresh.release) : T > 0 ? g?.pull ?? c(s.pullToRefresh.pull) : "", k = { "--_pull": `${T}px` };
|
|
43
43
|
return /* @__PURE__ */ u("div", {
|
|
44
|
-
className:
|
|
44
|
+
className: r(t.root, _),
|
|
45
45
|
style: k,
|
|
46
46
|
children: [
|
|
47
47
|
/* @__PURE__ */ l("div", {
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
import e from "./radial-progress.module.js";
|
|
4
2
|
import { useId as t } from "react";
|
|
5
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
6
4
|
//#region ../components/src/radial-progress/radial-progress.tsx
|
|
7
|
-
function r({ value: r, size: i = "md", variant: a = "primary", children: o, className: s,
|
|
8
|
-
let
|
|
5
|
+
function r({ value: r, size: i = "md", variant: a = "primary", children: o, className: s, ariaLabel: c, ...l }) {
|
|
6
|
+
let u = Math.min(100, Math.max(0, r)), d = t();
|
|
9
7
|
return /* @__PURE__ */ n("div", {
|
|
10
8
|
role: "progressbar",
|
|
11
|
-
"aria-valuenow":
|
|
9
|
+
"aria-valuenow": u,
|
|
12
10
|
"aria-valuemin": 0,
|
|
13
11
|
"aria-valuemax": 100,
|
|
14
|
-
"aria-labelledby": c["aria-label"] ? void 0 :
|
|
12
|
+
"aria-labelledby": c ?? l["aria-label"] ? void 0 : d,
|
|
15
13
|
className: [e.radialProgress, s].filter(Boolean).join(" "),
|
|
16
14
|
"data-size": i,
|
|
17
15
|
"data-variant": a,
|
|
18
|
-
style: { "--cascivo-radial-progress":
|
|
19
|
-
...
|
|
16
|
+
style: { "--cascivo-radial-progress": u },
|
|
17
|
+
...l,
|
|
18
|
+
...c === void 0 ? {} : { "aria-label": c },
|
|
20
19
|
children: /* @__PURE__ */ n("span", {
|
|
21
|
-
id:
|
|
20
|
+
id: d,
|
|
22
21
|
className: e.label,
|
|
23
|
-
children: o ?? `${
|
|
22
|
+
children: o ?? `${u}%`
|
|
24
23
|
})
|
|
25
24
|
});
|
|
26
25
|
}
|
package/dist/node/radio/radio.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
import e from "./radio.module.js";
|
|
4
|
-
import { cn as t } from "@cascivo/core";
|
|
2
|
+
import { cn as t } from "@cascivo/core/pure";
|
|
5
3
|
import { Children as n, cloneElement as r, forwardRef as i, isValidElement as a } from "react";
|
|
6
4
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
5
|
//#region ../components/src/radio/radio.tsx
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./radio-card.module.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { createContext as t, forwardRef as n } from "react";
|
|
5
|
+
import { cn as r } from "@cascivo/core";
|
|
6
6
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
7
|
//#region ../components/src/radio-card/radio-card.tsx
|
|
8
|
-
var o =
|
|
9
|
-
function s({ name:
|
|
8
|
+
var o = t({ name: "" });
|
|
9
|
+
function s({ name: t, label: n, value: a, defaultValue: s, onValueChange: c, children: l, className: u }) {
|
|
10
10
|
return /* @__PURE__ */ i(o.Provider, {
|
|
11
11
|
value: {
|
|
12
|
-
name:
|
|
12
|
+
name: t,
|
|
13
13
|
value: a,
|
|
14
14
|
defaultValue: s,
|
|
15
15
|
onValueChange: c
|
|
16
16
|
},
|
|
17
17
|
children: /* @__PURE__ */ i("div", {
|
|
18
18
|
role: "radiogroup",
|
|
19
|
-
"aria-label":
|
|
20
|
-
className:
|
|
19
|
+
"aria-label": n,
|
|
20
|
+
className: r(e.group, u),
|
|
21
21
|
children: l
|
|
22
22
|
})
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
var c =
|
|
25
|
+
var c = n(function({ value: t, title: n, description: r, disabled: s, hideIndicator: c, ...l }, u) {
|
|
26
26
|
return /* @__PURE__ */ i(o.Consumer, { children: (o) => /* @__PURE__ */ a("label", {
|
|
27
27
|
className: e.card,
|
|
28
28
|
"data-disabled": s || void 0,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { persistedSignal as e } from "../../storage/src/persisted-signal.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { useRef as t } from "react";
|
|
5
|
+
import { useSignalEffect as n, useSignals as r } from "@cascivo/core";
|
|
6
6
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
7
|
//#region src/theme.tsx
|
|
8
8
|
var s = "cascivo-theme", c = "data-theme";
|
|
@@ -44,7 +44,7 @@ function x(e, t) {
|
|
|
44
44
|
n !== null && (n.setAttribute(c, e), d(n, e));
|
|
45
45
|
}
|
|
46
46
|
function S() {
|
|
47
|
-
return
|
|
47
|
+
return r(), [g().value, b];
|
|
48
48
|
}
|
|
49
49
|
function C() {
|
|
50
50
|
return g();
|
|
@@ -52,22 +52,22 @@ function C() {
|
|
|
52
52
|
function w(e) {
|
|
53
53
|
return JSON.stringify(e).replace(/</g, "\\u003c");
|
|
54
54
|
}
|
|
55
|
-
function T({ defaultTheme: e, value:
|
|
56
|
-
let b =
|
|
55
|
+
function T({ defaultTheme: e, value: r, storageKey: l = s, attribute: u = c, target: m, onChange: h, nonce: v, children: y }) {
|
|
56
|
+
let b = t(!1);
|
|
57
57
|
b.current || (b.current = !0, (f === null || p.storageKey !== l) && (p = {
|
|
58
58
|
storageKey: l,
|
|
59
59
|
defaultTheme: e ?? "light",
|
|
60
60
|
explicit: e !== void 0
|
|
61
61
|
}, f = null));
|
|
62
62
|
let x = g();
|
|
63
|
-
|
|
64
|
-
let S =
|
|
65
|
-
return S.current = h,
|
|
63
|
+
r !== void 0 && (x.value = r);
|
|
64
|
+
let S = t(h);
|
|
65
|
+
return S.current = h, n(() => {
|
|
66
66
|
let e = x.value, t = m ? m.current : typeof document < "u" ? document.documentElement : null;
|
|
67
67
|
_ = !0, t?.setAttribute(u, e), d(t, e), S.current?.(e);
|
|
68
|
-
}),
|
|
68
|
+
}), r !== void 0 && !m ? /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a("script", {
|
|
69
69
|
nonce: v,
|
|
70
|
-
dangerouslySetInnerHTML: { __html: `document.documentElement.setAttribute(${w(u)},${w(
|
|
70
|
+
dangerouslySetInnerHTML: { __html: `document.documentElement.setAttribute(${w(u)},${w(r)})` }
|
|
71
71
|
}), y] }) : /* @__PURE__ */ a(i, { children: y });
|
|
72
72
|
}
|
|
73
73
|
function E(e = {}) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./resizable.module.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Children as t, useRef as n } from "react";
|
|
5
|
+
import { cn as r, useControllableSignal as i, useSignal as a, useSignalEffect as o, useSignals as s } from "@cascivo/core";
|
|
6
6
|
import { builtin as c, t as l } from "@cascivo/i18n";
|
|
7
7
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
8
|
//#region ../components/src/resizable/resizable.tsx
|
|
@@ -10,12 +10,12 @@ function f(e, t, n) {
|
|
|
10
10
|
return Math.min(n, Math.max(t, e));
|
|
11
11
|
}
|
|
12
12
|
function p({ children: p, orientation: m = "horizontal", defaultRatio: h = .5, ratio: g, minRatio: _ = .1, maxRatio: v = .9, onRatioChange: y, className: b, label: x }) {
|
|
13
|
-
|
|
14
|
-
let [S, C] =
|
|
13
|
+
s();
|
|
14
|
+
let [S, C] = t.toArray(p), [w, T] = i({
|
|
15
15
|
value: g,
|
|
16
16
|
defaultValue: h,
|
|
17
17
|
onChange: y
|
|
18
|
-
}), E =
|
|
18
|
+
}), E = n(null), D = a(!1), O = (e) => {
|
|
19
19
|
T(f(e, _, v));
|
|
20
20
|
}, k = (e, t) => {
|
|
21
21
|
let n = E.current;
|
|
@@ -23,7 +23,7 @@ function p({ children: p, orientation: m = "horizontal", defaultRatio: h = .5, r
|
|
|
23
23
|
let r = n.getBoundingClientRect();
|
|
24
24
|
return m === "horizontal" ? (e - r.left) / r.width : (t - r.top) / r.height;
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
o(() => {
|
|
27
27
|
if (!D.value) return;
|
|
28
28
|
let e = (e) => O(k(e.clientX, e.clientY)), t = () => {
|
|
29
29
|
D.value = !1;
|
|
@@ -43,7 +43,7 @@ function p({ children: p, orientation: m = "horizontal", defaultRatio: h = .5, r
|
|
|
43
43
|
}, j = x ?? l(c.resizable.handle), M = Math.round(w.value * 100);
|
|
44
44
|
return /* @__PURE__ */ d("div", {
|
|
45
45
|
ref: E,
|
|
46
|
-
className:
|
|
46
|
+
className: r(e.resizable, b),
|
|
47
47
|
"data-orientation": m,
|
|
48
48
|
style: { "--cascivo-resizable-ratio": w.value },
|
|
49
49
|
children: [
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./scroll-area.module.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { useRef as t } from "react";
|
|
5
|
+
import { cn as n, useSignalEffect as r, useSignals as i } from "@cascivo/core";
|
|
6
6
|
import { jsx as a } from "react/jsx-runtime";
|
|
7
7
|
//#region ../components/src/scroll-area/scroll-area.tsx
|
|
8
8
|
function o({ height: o, width: s, orientation: c = "vertical", edges: l = "shadow", className: u, style: d, children: f, ...p }) {
|
|
9
|
-
|
|
10
|
-
let m =
|
|
11
|
-
|
|
9
|
+
i();
|
|
10
|
+
let m = t(null);
|
|
11
|
+
r(() => {
|
|
12
12
|
let e = m.current;
|
|
13
13
|
if (!e) return;
|
|
14
14
|
let t = () => {
|
|
@@ -28,7 +28,7 @@ function o({ height: o, width: s, orientation: c = "vertical", edges: l = "shado
|
|
|
28
28
|
ref: m,
|
|
29
29
|
"data-orientation": c,
|
|
30
30
|
"data-edges": l,
|
|
31
|
-
className:
|
|
31
|
+
className: n(e.root, u),
|
|
32
32
|
style: h,
|
|
33
33
|
...p,
|
|
34
34
|
children: f
|