@cascivo/react 0.14.0 → 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 +120 -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.module.js +0 -2
- 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 +32 -31
- 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.module.js +0 -2
- 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 +14 -14
- 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 +32 -31
- 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,42 +1,42 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./navigation-menu.module.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { useId as t, useRef as n } from "react";
|
|
5
|
+
import { DismissableLayer as r, Presence as i, cn as a, focusElement as o, getLinkComponent as s, useAnchorPosition as c, useRovingFocus as l, useSignal as u, useSignals as d } from "@cascivo/core";
|
|
6
6
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
7
7
|
//#region ../components/src/navigation-menu/navigation-menu.tsx
|
|
8
|
-
function m({ items:
|
|
9
|
-
|
|
10
|
-
let
|
|
11
|
-
orientation:
|
|
8
|
+
function m({ items: n, "aria-label": r, ariaLabel: i, orientation: o = "horizontal", className: s }) {
|
|
9
|
+
d();
|
|
10
|
+
let c = t(), p = u(null), m = l({
|
|
11
|
+
orientation: o,
|
|
12
12
|
loop: !0
|
|
13
13
|
});
|
|
14
14
|
return /* @__PURE__ */ f("nav", {
|
|
15
|
-
"aria-label":
|
|
16
|
-
className:
|
|
17
|
-
"data-orientation":
|
|
15
|
+
"aria-label": i ?? r,
|
|
16
|
+
className: a(e.nav, s),
|
|
17
|
+
"data-orientation": o,
|
|
18
18
|
children: /* @__PURE__ */ f("ul", {
|
|
19
19
|
role: "list",
|
|
20
20
|
className: e.list,
|
|
21
|
-
children:
|
|
21
|
+
children: n.map((e, t) => /* @__PURE__ */ f(h, {
|
|
22
22
|
item: e,
|
|
23
|
-
baseId:
|
|
24
|
-
openId:
|
|
25
|
-
itemProps:
|
|
23
|
+
baseId: c,
|
|
24
|
+
openId: p,
|
|
25
|
+
itemProps: m.getItemProps(t)
|
|
26
26
|
}, e.id))
|
|
27
27
|
})
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
function h({ item: t, baseId: r, openId:
|
|
31
|
-
|
|
32
|
-
let u =
|
|
30
|
+
function h({ item: t, baseId: r, openId: a, itemProps: l }) {
|
|
31
|
+
d();
|
|
32
|
+
let u = n(null), m = n(null), h = t.content != null, _ = a.value === t.id, v = `${r}-panel-${t.id}`, { anchorStyle: y, floatingStyle: b } = c({
|
|
33
33
|
anchorRef: u,
|
|
34
34
|
floatingRef: m,
|
|
35
35
|
placement: "bottom-start",
|
|
36
36
|
enabled: _
|
|
37
|
-
}), { ref: x, onKeyDown: S, ...C } =
|
|
37
|
+
}), { ref: x, onKeyDown: S, ...C } = l;
|
|
38
38
|
if (!h) {
|
|
39
|
-
let n =
|
|
39
|
+
let n = s();
|
|
40
40
|
return /* @__PURE__ */ f("li", {
|
|
41
41
|
className: e.item,
|
|
42
42
|
children: /* @__PURE__ */ f(n, {
|
|
@@ -62,33 +62,33 @@ function h({ item: t, baseId: r, openId: s, itemProps: c }) {
|
|
|
62
62
|
className: e.trigger,
|
|
63
63
|
style: y,
|
|
64
64
|
onClick: () => {
|
|
65
|
-
|
|
65
|
+
a.value = _ ? null : t.id;
|
|
66
66
|
},
|
|
67
67
|
onKeyDown: (e) => {
|
|
68
|
-
S(e), !e.defaultPrevented && e.key === "Escape" && (
|
|
68
|
+
S(e), !e.defaultPrevented && e.key === "Escape" && (a.value = null);
|
|
69
69
|
},
|
|
70
70
|
...C,
|
|
71
71
|
children: t.label
|
|
72
|
-
}), /* @__PURE__ */ f(
|
|
72
|
+
}), /* @__PURE__ */ f(i, {
|
|
73
73
|
present: _,
|
|
74
74
|
children: /* @__PURE__ */ f(g, {
|
|
75
75
|
panelId: v,
|
|
76
76
|
floatingRef: m,
|
|
77
77
|
floatingStyle: b,
|
|
78
78
|
onClose: () => {
|
|
79
|
-
|
|
79
|
+
a.value = null, o(u.current);
|
|
80
80
|
},
|
|
81
81
|
children: t.content
|
|
82
82
|
})
|
|
83
83
|
})]
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
function g({ panelId:
|
|
87
|
-
return /* @__PURE__ */ f(
|
|
86
|
+
function g({ panelId: t, floatingRef: n, floatingStyle: i, onClose: a, children: o }) {
|
|
87
|
+
return /* @__PURE__ */ f(r, {
|
|
88
88
|
onDismiss: a,
|
|
89
89
|
children: /* @__PURE__ */ f("div", {
|
|
90
|
-
ref:
|
|
91
|
-
id:
|
|
90
|
+
ref: n,
|
|
91
|
+
id: t,
|
|
92
92
|
className: e.panel,
|
|
93
93
|
style: i,
|
|
94
94
|
children: o
|
|
@@ -1,97 +1,113 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./accordion.module.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { jsx as
|
|
4
|
+
import { createContext as t, forwardRef as n, useId as r, useRef as i } from "react";
|
|
5
|
+
import { cn as a, useSignal as o, useSignalEffect as s, useSignals as c } from "@cascivo/core";
|
|
6
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
7
|
//#region ../components/src/accordion/accordion.tsx
|
|
8
|
-
var
|
|
9
|
-
function
|
|
8
|
+
var d = t(null), f = t(null);
|
|
9
|
+
function p(e) {
|
|
10
10
|
return e === void 0 ? [] : Array.isArray(e) ? e : [e];
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
let
|
|
14
|
-
|
|
12
|
+
function m({ type: t = "single", defaultValue: n, value: i, onValueChange: s, className: c, children: u }) {
|
|
13
|
+
let f = r(), m = o(p(i ?? n));
|
|
14
|
+
i !== void 0 && (m.value = p(i));
|
|
15
15
|
let h = {
|
|
16
16
|
open: m,
|
|
17
|
-
baseId:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
baseId: f,
|
|
18
|
+
type: t,
|
|
19
|
+
toggle: (e, n) => {
|
|
20
|
+
let r = m.value, a;
|
|
21
|
+
a = t === "multiple" ? n ? [...new Set([...r, e])] : r.filter((t) => t !== e) : n ? [e] : [], i === void 0 && (m.value = a), s?.(t === "multiple" ? a : a[0] ?? "");
|
|
21
22
|
}
|
|
22
23
|
};
|
|
23
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ l(d.Provider, {
|
|
24
25
|
value: h,
|
|
25
|
-
children: /* @__PURE__ */
|
|
26
|
-
"data-type":
|
|
27
|
-
className:
|
|
28
|
-
children:
|
|
26
|
+
children: /* @__PURE__ */ l("div", {
|
|
27
|
+
"data-type": t,
|
|
28
|
+
className: a(e.accordion, c),
|
|
29
|
+
children: u
|
|
29
30
|
})
|
|
30
31
|
});
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
value: { value:
|
|
35
|
-
children: /* @__PURE__ */
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
function h({ value: e, className: t, children: n, ...r }) {
|
|
34
|
+
return /* @__PURE__ */ l(f.Provider, {
|
|
35
|
+
value: { value: e },
|
|
36
|
+
children: /* @__PURE__ */ l(d.Consumer, { children: (i) => i ? /* @__PURE__ */ l(g, {
|
|
37
|
+
store: i,
|
|
38
|
+
value: e,
|
|
39
|
+
className: t,
|
|
40
|
+
...r,
|
|
41
|
+
children: n
|
|
42
|
+
}) : null })
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function g({ store: t, value: n, className: r, children: o, ...u }) {
|
|
46
|
+
c();
|
|
47
|
+
let d = i(null), f = t.open.value.includes(n);
|
|
48
|
+
return s(() => {
|
|
49
|
+
let e = d.current, r = t.open.value.includes(n);
|
|
50
|
+
e && e.open !== r && (e.open = r);
|
|
51
|
+
}), /* @__PURE__ */ l("details", {
|
|
52
|
+
ref: d,
|
|
53
|
+
open: f,
|
|
54
|
+
...t.type === "single" ? { name: t.baseId } : {},
|
|
55
|
+
"data-value": n,
|
|
56
|
+
"data-state": f ? "open" : "closed",
|
|
57
|
+
className: a(e.item, r),
|
|
58
|
+
onToggle: (e) => {
|
|
59
|
+
let r = e.currentTarget;
|
|
60
|
+
r.open !== t.open.value.includes(n) && t.toggle(n, r.open);
|
|
61
|
+
let i = t.open.value.includes(n);
|
|
62
|
+
r.open !== i && (r.open = i);
|
|
63
|
+
},
|
|
64
|
+
...u,
|
|
65
|
+
children: o
|
|
41
66
|
});
|
|
42
67
|
}
|
|
43
|
-
var
|
|
44
|
-
return /* @__PURE__ */
|
|
68
|
+
var _ = n(function(e, t) {
|
|
69
|
+
return /* @__PURE__ */ l(d.Consumer, { children: (n) => /* @__PURE__ */ l(f.Consumer, { children: (r) => n && r ? /* @__PURE__ */ l(v, {
|
|
45
70
|
store: n,
|
|
46
71
|
item: r,
|
|
47
|
-
|
|
72
|
+
summaryRef: t,
|
|
48
73
|
...e
|
|
49
74
|
}) : null }) });
|
|
50
75
|
});
|
|
51
|
-
function
|
|
52
|
-
|
|
53
|
-
let d =
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
className:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"aria-hidden": "true"
|
|
69
|
-
})]
|
|
70
|
-
})
|
|
76
|
+
function v({ store: t, item: n, className: r, children: i, summaryRef: o, ...s }) {
|
|
77
|
+
c();
|
|
78
|
+
let d = t.open.value.includes(n.value);
|
|
79
|
+
return /* @__PURE__ */ u("summary", {
|
|
80
|
+
id: `${t.baseId}-trigger-${n.value}`,
|
|
81
|
+
"aria-controls": `${t.baseId}-content-${n.value}`,
|
|
82
|
+
"data-state": d ? "open" : "closed",
|
|
83
|
+
className: a(e.trigger, r),
|
|
84
|
+
ref: o,
|
|
85
|
+
...s,
|
|
86
|
+
children: [/* @__PURE__ */ l("h3", {
|
|
87
|
+
className: e.heading,
|
|
88
|
+
children: i
|
|
89
|
+
}), /* @__PURE__ */ l("span", {
|
|
90
|
+
className: e.indicator,
|
|
91
|
+
"aria-hidden": "true"
|
|
92
|
+
})]
|
|
71
93
|
});
|
|
72
94
|
}
|
|
73
|
-
function
|
|
74
|
-
return /* @__PURE__ */
|
|
95
|
+
function y(e) {
|
|
96
|
+
return /* @__PURE__ */ l(d.Consumer, { children: (t) => /* @__PURE__ */ l(f.Consumer, { children: (n) => t && n ? /* @__PURE__ */ l(b, {
|
|
75
97
|
store: t,
|
|
76
98
|
item: n,
|
|
77
99
|
...e
|
|
78
100
|
}) : null }) });
|
|
79
101
|
}
|
|
80
|
-
function
|
|
81
|
-
|
|
82
|
-
let l = n.open.value.includes(i.value);
|
|
83
|
-
return /* @__PURE__ */ s("div", {
|
|
102
|
+
function b({ store: t, item: n, className: r, children: i, ...o }) {
|
|
103
|
+
return /* @__PURE__ */ l("div", {
|
|
84
104
|
role: "region",
|
|
85
|
-
id: `${
|
|
86
|
-
"aria-labelledby": `${
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
children: /* @__PURE__ */ s("div", {
|
|
91
|
-
className: e.contentInner,
|
|
92
|
-
children: o
|
|
93
|
-
})
|
|
105
|
+
id: `${t.baseId}-content-${n.value}`,
|
|
106
|
+
"aria-labelledby": `${t.baseId}-trigger-${n.value}`,
|
|
107
|
+
className: a(e.content, r),
|
|
108
|
+
...o,
|
|
109
|
+
children: i
|
|
94
110
|
});
|
|
95
111
|
}
|
|
96
112
|
//#endregion
|
|
97
|
-
export {
|
|
113
|
+
export { m as Accordion, y as AccordionContent, h as AccordionItem, _ as AccordionTrigger };
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
var e = {
|
|
4
|
-
accordion: "
|
|
5
|
-
item: "
|
|
6
|
-
heading: "
|
|
7
|
-
trigger: "
|
|
8
|
-
indicator: "
|
|
9
|
-
content: "
|
|
10
|
-
contentInner: "_contentInner_9ch4s_77"
|
|
2
|
+
accordion: "_accordion_1t08g_2",
|
|
3
|
+
item: "_item_1t08g_10",
|
|
4
|
+
heading: "_heading_1t08g_16",
|
|
5
|
+
trigger: "_trigger_1t08g_22",
|
|
6
|
+
indicator: "_indicator_1t08g_54",
|
|
7
|
+
content: "_content_1t08g_92"
|
|
11
8
|
};
|
|
12
9
|
//#endregion
|
|
13
10
|
export { e as default };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./action-sheet.module.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { useId as t } from "react";
|
|
5
|
+
import { DismissableLayer as n, FocusScope as r, Portal as i, Presence as a, cn as o, useControllableSignal as s, useRovingFocus as c, useSignals as l } from "@cascivo/core";
|
|
6
6
|
import { builtin as u, t as d } from "@cascivo/i18n";
|
|
7
7
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
8
8
|
//#region ../components/src/action-sheet/action-sheet.tsx
|
|
9
9
|
function m({ open: m, defaultOpen: h, onOpenChange: g, actions: _, title: v, description: y, showCancel: b = !0, labels: x, className: S }) {
|
|
10
|
-
|
|
11
|
-
let [C, w] =
|
|
10
|
+
l();
|
|
11
|
+
let [C, w] = s({
|
|
12
12
|
value: m,
|
|
13
13
|
defaultValue: h ?? !1,
|
|
14
14
|
onChange: g
|
|
15
|
-
}), T =
|
|
15
|
+
}), T = c({
|
|
16
16
|
orientation: "vertical",
|
|
17
17
|
loop: !0
|
|
18
|
-
}), E =
|
|
18
|
+
}), E = t(), D = t(), O = x?.cancel ?? d(u.actionSheet.cancel), k = x?.label ?? d(u.actionSheet.label), A = (e) => {
|
|
19
19
|
e.disabled || (e.onSelect(), w(!1));
|
|
20
20
|
}, j = _.length;
|
|
21
|
-
return /* @__PURE__ */ f(
|
|
21
|
+
return /* @__PURE__ */ f(i, { children: /* @__PURE__ */ f(a, {
|
|
22
22
|
present: C,
|
|
23
23
|
children: /* @__PURE__ */ f("div", {
|
|
24
24
|
className: e.overlay,
|
|
25
|
-
children: /* @__PURE__ */ f(
|
|
25
|
+
children: /* @__PURE__ */ f(n, {
|
|
26
26
|
onDismiss: () => w(!1),
|
|
27
|
-
children: /* @__PURE__ */ f(
|
|
27
|
+
children: /* @__PURE__ */ f(r, {
|
|
28
28
|
trapped: !0,
|
|
29
29
|
restoreFocus: !0,
|
|
30
30
|
autoFocus: !0,
|
|
@@ -33,7 +33,7 @@ function m({ open: m, defaultOpen: h, onOpenChange: g, actions: _, title: v, des
|
|
|
33
33
|
"aria-label": v ? void 0 : k,
|
|
34
34
|
"aria-labelledby": v ? E : void 0,
|
|
35
35
|
"aria-describedby": y ? D : void 0,
|
|
36
|
-
className:
|
|
36
|
+
className: o(e.sheet, S),
|
|
37
37
|
children: [/* @__PURE__ */ p("div", {
|
|
38
38
|
className: e.group,
|
|
39
39
|
children: [(v || y) && /* @__PURE__ */ p("div", {
|
|
@@ -73,7 +73,7 @@ function m({ open: m, defaultOpen: h, onOpenChange: g, actions: _, title: v, des
|
|
|
73
73
|
type: "button",
|
|
74
74
|
role: "menuitem",
|
|
75
75
|
tabIndex: t.tabIndex,
|
|
76
|
-
className:
|
|
76
|
+
className: o(e.item, e.cancel),
|
|
77
77
|
onKeyDown: t.onKeyDown,
|
|
78
78
|
onFocus: t.onFocus,
|
|
79
79
|
onClick: () => w(!1),
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./alert-dialog.module.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { useRef as t } from "react";
|
|
5
|
+
import { focusElement as n, useEffectPropSignal as r, useId as i, useSignalEffect 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/alert-dialog/alert-dialog.tsx
|
|
9
9
|
function u({ open: u, title: d, description: f, onConfirm: p, onCancel: m, labels: h, variant: g = "default" }) {
|
|
10
|
-
let _ =
|
|
10
|
+
let _ = t(null), v = i("cascivo-alert-dialog-title"), y = i("cascivo-alert-dialog-desc"), b = r(u), x = t(null), S = t(m);
|
|
11
11
|
S.current = m;
|
|
12
|
-
let C =
|
|
13
|
-
return C.current = p,
|
|
12
|
+
let C = t(p);
|
|
13
|
+
return C.current = p, a(() => {
|
|
14
14
|
let e = _.current;
|
|
15
15
|
if (e) if (b.value) {
|
|
16
16
|
try {
|
|
17
17
|
e.showPopover();
|
|
18
18
|
} catch {}
|
|
19
|
-
requestAnimationFrame(() =>
|
|
19
|
+
requestAnimationFrame(() => n(x.current));
|
|
20
20
|
} else try {
|
|
21
21
|
e.hidePopover();
|
|
22
22
|
} catch {}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
var e = {
|
|
4
|
-
dialog: "
|
|
5
|
-
content: "
|
|
6
|
-
title: "
|
|
7
|
-
description: "
|
|
8
|
-
actions: "
|
|
9
|
-
cancel: "
|
|
10
|
-
confirm: "
|
|
2
|
+
dialog: "_dialog_zou3k_2",
|
|
3
|
+
content: "_content_zou3k_58",
|
|
4
|
+
title: "_title_zou3k_71",
|
|
5
|
+
description: "_description_zou3k_78",
|
|
6
|
+
actions: "_actions_zou3k_84",
|
|
7
|
+
cancel: "_cancel_zou3k_123",
|
|
8
|
+
confirm: "_confirm_zou3k_124"
|
|
11
9
|
};
|
|
12
10
|
//#endregion
|
|
13
11
|
export { e as default };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./app-shell.module.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { cloneElement as t, isValidElement as n, useRef as r } from "react";
|
|
5
|
+
import { cn as i, useSignal as a, useSignalEffect as o, useSignals as s } from "@cascivo/core";
|
|
6
6
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
7
|
//#region ../components/src/app-shell/app-shell.tsx
|
|
8
8
|
function d({ header: d, nav: f, children: p, footer: m, open: h, defaultOpen: g, onOpenChange: _, className: v, ...y }) {
|
|
9
|
-
|
|
10
|
-
let b = h !== void 0, x =
|
|
9
|
+
s();
|
|
10
|
+
let b = h !== void 0, x = a(h ?? g ?? !0);
|
|
11
11
|
b && (x.value = h);
|
|
12
|
-
let S =
|
|
12
|
+
let S = r(null), C = r(null);
|
|
13
13
|
function w(e) {
|
|
14
14
|
b || (x.value = e), _?.(e);
|
|
15
15
|
}
|
|
16
16
|
function T() {
|
|
17
17
|
typeof document < "u" && (C.current = document.activeElement), w(!x.value);
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
o(() => {
|
|
20
20
|
b || g !== void 0 || typeof window > "u" || typeof window.matchMedia != "function" || window.matchMedia("(max-width: 63.999rem)").matches && (x.value = !1);
|
|
21
|
-
}),
|
|
21
|
+
}), o(() => {
|
|
22
22
|
if (!x.value || typeof document > "u") return;
|
|
23
23
|
let e = (e) => {
|
|
24
24
|
e.key === "Escape" && w(!1);
|
|
25
25
|
};
|
|
26
26
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
27
|
-
}),
|
|
27
|
+
}), o(() => {
|
|
28
28
|
let e = S.current;
|
|
29
29
|
if (e) if (x.value) e.removeAttribute("inert");
|
|
30
30
|
else {
|
|
@@ -33,12 +33,12 @@ function d({ header: d, nav: f, children: p, footer: m, open: h, defaultOpen: g,
|
|
|
33
33
|
t && e.contains(document.activeElement) && t.focus();
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
let E =
|
|
36
|
+
let E = n(d) && f ? t(d, {
|
|
37
37
|
onMenuClick: T,
|
|
38
38
|
menuExpanded: x.value
|
|
39
39
|
}) : d;
|
|
40
40
|
return /* @__PURE__ */ u("div", {
|
|
41
|
-
className:
|
|
41
|
+
className: i(e.shell, v),
|
|
42
42
|
"data-open": x.value,
|
|
43
43
|
...y,
|
|
44
44
|
children: [
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
import e from "./aspect-ratio.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/aspect-ratio/aspect-ratio.tsx
|
|
7
5
|
function r({ ratio: r = 16 / 9, className: i, style: a, children: o, ...s }) {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
import { Avatar as e } from "../avatar/avatar.js";
|
|
4
2
|
import t from "./avatar-group.module.js";
|
|
5
|
-
import { cn as n } from "@cascivo/core";
|
|
3
|
+
import { cn as n } from "@cascivo/core/pure";
|
|
6
4
|
import { Children as r } from "react";
|
|
7
5
|
import { builtin as i, t as a } from "@cascivo/i18n";
|
|
8
6
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
package/dist/node/badge/badge.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
import e from "./badge.module.js";
|
|
4
|
-
import { cn as t, normalizeTone as n } from "@cascivo/core";
|
|
2
|
+
import { cn as t, normalizeTone as n } from "@cascivo/core/pure";
|
|
5
3
|
import { jsx as r } from "react/jsx-runtime";
|
|
6
4
|
//#region ../components/src/badge/badge.tsx
|
|
7
5
|
var i = {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
import e from "./blockquote.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/blockquote/blockquote.tsx
|
|
7
5
|
function i({ cite: i, className: a, children: o, ...s }) {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./bottom-sheet.module.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { useId as t } from "react";
|
|
5
|
+
import { DismissableLayer as n, FocusScope as r, Portal as i, Presence as a, cn as o, useControllableSignal as s, useDraggable as c, useScrollLock as l, useSignals as u } from "@cascivo/core";
|
|
6
6
|
import { builtin as d, t as f } from "@cascivo/i18n";
|
|
7
7
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
8
8
|
//#region ../components/src/bottom-sheet/bottom-sheet.tsx
|
|
9
9
|
var h = 120, g = .6, _ = .1, v = [.5, .92];
|
|
10
10
|
function y({ open: y, defaultOpen: b, onOpenChange: x, snapPoints: S = v, activeSnap: C, defaultSnap: w = 0, onSnapChange: T, title: E, description: D, children: O, labels: k, className: A }) {
|
|
11
|
-
|
|
12
|
-
let [j, M] =
|
|
11
|
+
u();
|
|
12
|
+
let [j, M] = s({
|
|
13
13
|
value: y,
|
|
14
14
|
defaultValue: b ?? !1,
|
|
15
15
|
onChange: x
|
|
16
|
-
}), [N, P] =
|
|
16
|
+
}), [N, P] = s({
|
|
17
17
|
value: C,
|
|
18
18
|
defaultValue: w,
|
|
19
19
|
onChange: T
|
|
20
20
|
});
|
|
21
|
-
|
|
22
|
-
let F = S, I = F[F.length - 1] ?? 1, L = F[0] ?? 0, R = F[Math.min(N.value, F.length - 1)] ?? I, { handleRef: z, offset: B, velocity: V, isDragging: H, reset: U } =
|
|
21
|
+
l(j);
|
|
22
|
+
let F = S, I = F[F.length - 1] ?? 1, L = F[0] ?? 0, R = F[Math.min(N.value, F.length - 1)] ?? I, { handleRef: z, offset: B, velocity: V, isDragging: H, reset: U } = c({
|
|
23
23
|
axis: "y",
|
|
24
24
|
onDragEnd: (e) => {
|
|
25
25
|
let t = typeof window > "u" ? 0 : window.innerHeight, n = V.value.y;
|
|
@@ -33,18 +33,18 @@ function y({ open: y, defaultOpen: b, onOpenChange: x, snapPoints: S = v, active
|
|
|
33
33
|
for (let e = 1; e < F.length; e++) Math.abs((F[e] ?? 0) - r) < Math.abs((F[i] ?? 0) - r) && (i = e);
|
|
34
34
|
P(i);
|
|
35
35
|
}
|
|
36
|
-
}), W =
|
|
36
|
+
}), W = t(), G = t(), K = k?.close ?? f(d.bottomSheet.close), q = k?.handle ?? f(d.bottomSheet.handle), J = `${(1 - R / I) * 100}%`, Y = {
|
|
37
37
|
"--_sheet-height": `${I * 100}dvh`,
|
|
38
38
|
"--_sheet-y": J,
|
|
39
39
|
"--_sheet-drag": `${B.value.y}px`
|
|
40
40
|
};
|
|
41
|
-
return /* @__PURE__ */ p(
|
|
41
|
+
return /* @__PURE__ */ p(i, { children: /* @__PURE__ */ p(a, {
|
|
42
42
|
present: j,
|
|
43
43
|
children: /* @__PURE__ */ p("div", {
|
|
44
44
|
className: e.overlay,
|
|
45
|
-
children: /* @__PURE__ */ p(
|
|
45
|
+
children: /* @__PURE__ */ p(n, {
|
|
46
46
|
onDismiss: () => M(!1),
|
|
47
|
-
children: /* @__PURE__ */ p(
|
|
47
|
+
children: /* @__PURE__ */ p(r, {
|
|
48
48
|
trapped: !0,
|
|
49
49
|
restoreFocus: !0,
|
|
50
50
|
autoFocus: !0,
|
|
@@ -54,7 +54,7 @@ function y({ open: y, defaultOpen: b, onOpenChange: x, snapPoints: S = v, active
|
|
|
54
54
|
"aria-labelledby": E ? W : void 0,
|
|
55
55
|
"aria-describedby": D ? G : void 0,
|
|
56
56
|
"data-dragging": H.value ? "" : void 0,
|
|
57
|
-
className:
|
|
57
|
+
className: o(e.panel, A),
|
|
58
58
|
style: Y,
|
|
59
59
|
children: [/* @__PURE__ */ m("div", {
|
|
60
60
|
className: e.header,
|