@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
package/dist/toggle/toggle.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./toggle.module.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { forwardRef as t } from "react";
|
|
5
|
+
import { cn as n, createMachine as r, useMachine as i, useSignals as a } from "@cascivo/core";
|
|
6
6
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
7
|
//#region ../components/src/toggle/toggle.tsx
|
|
8
|
-
var c =
|
|
9
|
-
|
|
10
|
-
let [_, v] = r(
|
|
8
|
+
var c = t(function({ checked: t, defaultChecked: c = !1, onValueChange: l, onChange: u, label: d, size: f = "md", className: p, disabled: m, ...h }, g) {
|
|
9
|
+
a();
|
|
10
|
+
let [_, v] = i(r({
|
|
11
11
|
initial: c ? "on" : "off",
|
|
12
12
|
states: {
|
|
13
13
|
off: { on: { TOGGLE: "on" } },
|
|
14
14
|
on: { on: { TOGGLE: "off" } }
|
|
15
15
|
}
|
|
16
|
-
})), y =
|
|
16
|
+
})), y = t !== void 0, b = y ? t : _.value === "on";
|
|
17
17
|
return /* @__PURE__ */ s("button", {
|
|
18
18
|
type: "button",
|
|
19
19
|
role: "switch",
|
|
@@ -21,7 +21,7 @@ var c = a(function({ checked: a, defaultChecked: c = !1, onValueChange: l, onCha
|
|
|
21
21
|
"data-state": b ? "on" : "off",
|
|
22
22
|
"data-size": f,
|
|
23
23
|
disabled: m,
|
|
24
|
-
className:
|
|
24
|
+
className: n(e.toggle, p),
|
|
25
25
|
onClick: () => {
|
|
26
26
|
y || v("TOGGLE"), (l ?? u)?.(!b);
|
|
27
27
|
},
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./toggle-group.module.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { forwardRef as t } from "react";
|
|
5
|
+
import { cn as n, useControllableSignal as r, useRovingFocus as i, useSignals as a } from "@cascivo/core";
|
|
6
6
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
7
|
//#region ../components/src/toggle-group/toggle-group.tsx
|
|
8
8
|
function c(e, t) {
|
|
9
9
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
10
10
|
}
|
|
11
|
-
var l =
|
|
12
|
-
|
|
13
|
-
let [y, b] =
|
|
11
|
+
var l = t(function({ type: t, value: l, defaultValue: u, onValueChange: d, items: f, orientation: p = "horizontal", size: m = "md", disabled: h = !1, className: g, ..._ }, v) {
|
|
12
|
+
a();
|
|
13
|
+
let [y, b] = r({
|
|
14
14
|
value: l,
|
|
15
|
-
defaultValue: u ?? (
|
|
15
|
+
defaultValue: u ?? (t === "multiple" ? [] : ""),
|
|
16
16
|
onChange: d
|
|
17
|
-
}), x =
|
|
17
|
+
}), x = i({
|
|
18
18
|
orientation: p,
|
|
19
19
|
loop: !0
|
|
20
20
|
}), S = (e) => {
|
|
21
|
-
let
|
|
22
|
-
if (
|
|
23
|
-
let
|
|
24
|
-
b(
|
|
25
|
-
} else b(
|
|
21
|
+
let n = y.value;
|
|
22
|
+
if (t === "multiple") {
|
|
23
|
+
let t = Array.isArray(n) ? n : [];
|
|
24
|
+
b(t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
|
|
25
|
+
} else b(n === e ? "" : e);
|
|
26
26
|
};
|
|
27
27
|
return /* @__PURE__ */ o("div", {
|
|
28
|
-
role:
|
|
28
|
+
role: t === "single" ? "radiogroup" : "group",
|
|
29
29
|
"data-orientation": p,
|
|
30
30
|
"data-size": m,
|
|
31
|
-
className:
|
|
31
|
+
className: n(e.toggleGroup, g),
|
|
32
32
|
ref: v,
|
|
33
33
|
..._,
|
|
34
|
-
children: f.map((
|
|
35
|
-
let
|
|
34
|
+
children: f.map((n, r) => {
|
|
35
|
+
let i = c(y.value, n.value), a = h || n.disabled, { ref: l, ...u } = x.getItemProps(r);
|
|
36
36
|
return /* @__PURE__ */ s("button", {
|
|
37
37
|
type: "button",
|
|
38
|
-
...
|
|
38
|
+
...t === "single" ? {
|
|
39
39
|
role: "radio",
|
|
40
|
-
"aria-checked":
|
|
41
|
-
} : { "aria-pressed":
|
|
40
|
+
"aria-checked": i
|
|
41
|
+
} : { "aria-pressed": i },
|
|
42
42
|
...u,
|
|
43
43
|
ref: l,
|
|
44
|
-
"data-state":
|
|
45
|
-
disabled:
|
|
46
|
-
"aria-label":
|
|
44
|
+
"data-state": i ? "on" : "off",
|
|
45
|
+
disabled: a,
|
|
46
|
+
"aria-label": n.icon && !n.label ? n.value : void 0,
|
|
47
47
|
className: e.item,
|
|
48
|
-
onClick: () => S(
|
|
49
|
-
children: [
|
|
50
|
-
},
|
|
48
|
+
onClick: () => S(n.value),
|
|
49
|
+
children: [n.icon, n.label && /* @__PURE__ */ o("span", { children: n.label })]
|
|
50
|
+
}, n.value);
|
|
51
51
|
})
|
|
52
52
|
});
|
|
53
53
|
});
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./toggletip.module.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { useId as t, useRef as n } from "react";
|
|
5
|
+
import { DismissableLayer as r, cn as i, useAnchorPosition as a, useControllableSignal 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/toggletip/toggletip.tsx
|
|
9
9
|
function f({ trigger: f, children: p, placement: m = "top", defaultOpen: h = !1, open: g, onOpenChange: _, labels: v, className: y }) {
|
|
10
|
-
|
|
11
|
-
let [b, x] =
|
|
10
|
+
s();
|
|
11
|
+
let [b, x] = o({
|
|
12
12
|
...g !== void 0 && { value: g },
|
|
13
13
|
defaultValue: h,
|
|
14
14
|
..._ && { onChange: _ }
|
|
15
|
-
}), S =
|
|
15
|
+
}), S = n(null), C = n(null), w = t(), { anchorStyle: T, floatingStyle: E } = a({
|
|
16
16
|
anchorRef: S,
|
|
17
17
|
floatingRef: C,
|
|
18
18
|
placement: m,
|
|
19
19
|
enabled: b
|
|
20
20
|
});
|
|
21
21
|
return /* @__PURE__ */ d("span", {
|
|
22
|
-
className:
|
|
22
|
+
className: i(e.root, y),
|
|
23
23
|
children: [/* @__PURE__ */ u("button", {
|
|
24
24
|
ref: S,
|
|
25
25
|
type: "button",
|
|
@@ -30,7 +30,7 @@ function f({ trigger: f, children: p, placement: m = "top", defaultOpen: h = !1,
|
|
|
30
30
|
style: T,
|
|
31
31
|
onClick: () => x(!b.value),
|
|
32
32
|
children: f
|
|
33
|
-
}), b.value ? /* @__PURE__ */ u(
|
|
33
|
+
}), b.value ? /* @__PURE__ */ u(r, {
|
|
34
34
|
onDismiss: () => x(!1),
|
|
35
35
|
children: /* @__PURE__ */ u("div", {
|
|
36
36
|
ref: C,
|
package/dist/tooltip/tooltip.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./tooltip.module.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { cloneElement as t, useRef as n } from "react";
|
|
5
|
+
import { createMachine as r, useId as i, useMachine as a, useSignalEffect as o, useSignals as s } from "@cascivo/core";
|
|
6
6
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
7
7
|
//#region ../components/src/tooltip/tooltip.tsx
|
|
8
|
-
var u =
|
|
8
|
+
var u = r({
|
|
9
9
|
initial: "hidden",
|
|
10
10
|
states: {
|
|
11
11
|
hidden: { on: { SHOW: "visible" } },
|
|
12
12
|
visible: { on: { HIDE: "hidden" } }
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
-
function d({ content:
|
|
16
|
-
|
|
17
|
-
let [m, h] =
|
|
15
|
+
function d({ content: r, placement: d = "top", children: f, delay: p = 200 }) {
|
|
16
|
+
s();
|
|
17
|
+
let [m, h] = a(u), g = i("cascivo-tooltip"), _ = i("cascivo-anchor"), v = n(void 0), y = n(null), b = m.value === "visible", x = () => {
|
|
18
18
|
clearTimeout(v.current), v.current = setTimeout(() => h("SHOW"), p);
|
|
19
19
|
}, S = () => {
|
|
20
20
|
clearTimeout(v.current), h("HIDE");
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
o(() => () => clearTimeout(v.current)), o(() => {
|
|
23
23
|
m.value === "visible" ? y.current?.showPopover() : y.current?.hidePopover();
|
|
24
24
|
});
|
|
25
25
|
let C = f, w = C.props, T = {
|
|
@@ -41,7 +41,7 @@ function d({ content: t, placement: d = "top", children: f, delay: p = 200 }) {
|
|
|
41
41
|
};
|
|
42
42
|
return /* @__PURE__ */ l("span", {
|
|
43
43
|
className: e.root,
|
|
44
|
-
children: [
|
|
44
|
+
children: [t(C, T), /* @__PURE__ */ c("span", {
|
|
45
45
|
ref: y,
|
|
46
46
|
popover: "manual",
|
|
47
47
|
role: "tooltip",
|
|
@@ -50,7 +50,7 @@ function d({ content: t, placement: d = "top", children: f, delay: p = 200 }) {
|
|
|
50
50
|
"data-state": b ? "visible" : "hidden",
|
|
51
51
|
"data-anchor": `--tooltip-${_}`,
|
|
52
52
|
className: e.tooltip,
|
|
53
|
-
children:
|
|
53
|
+
children: r
|
|
54
54
|
})]
|
|
55
55
|
});
|
|
56
56
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./tree-view.module.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { useRef as t } from "react";
|
|
5
|
+
import { cn as n, useControllableSignal 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/tree-view/tree-view.tsx
|
|
@@ -24,88 +24,88 @@ function u(e, t) {
|
|
|
24
24
|
function d(e) {
|
|
25
25
|
return e === void 0 ? [] : Array.isArray(e) ? e : e === "" ? [] : [e];
|
|
26
26
|
}
|
|
27
|
-
function f({ items: o, selectionMode: s = "single", selected: l, defaultSelected: f, onSelectChange: h, expanded: g, defaultExpanded: _, onExpandedChange: v, className: y, "aria-label": b }) {
|
|
28
|
-
|
|
29
|
-
let [
|
|
27
|
+
function f({ items: o, selectionMode: s = "single", selected: l, defaultSelected: f, onSelectChange: h, expanded: g, defaultExpanded: _, onExpandedChange: v, className: y, "aria-label": b, ariaLabel: x }) {
|
|
28
|
+
a();
|
|
29
|
+
let [S, C] = r({
|
|
30
30
|
value: g,
|
|
31
31
|
defaultValue: _ ?? [],
|
|
32
32
|
onChange: v
|
|
33
|
-
}), [
|
|
33
|
+
}), [w, T] = r({
|
|
34
34
|
value: l,
|
|
35
35
|
defaultValue: f ?? (s === "multi" ? [] : ""),
|
|
36
36
|
onChange: h
|
|
37
|
-
}),
|
|
38
|
-
if (
|
|
39
|
-
let t = new Set(
|
|
40
|
-
t.add(e),
|
|
41
|
-
}, F = (e) => {
|
|
42
|
-
if (!D.has(e)) return;
|
|
43
|
-
let t = new Set(D);
|
|
44
|
-
t.delete(e), N(t);
|
|
37
|
+
}), E = i(null), D = t(/* @__PURE__ */ new Map()), O = new Set(S.value), k = u(o, O), A = new Map(k.map((e, t) => [e.id, t])), j = d(w.value), M = new Set(j), N = E.value ?? j[0] ?? k[0]?.id ?? null, P = (e) => C([...e]), F = (e) => {
|
|
38
|
+
if (O.has(e)) return;
|
|
39
|
+
let t = new Set(O);
|
|
40
|
+
t.add(e), P(t);
|
|
45
41
|
}, I = (e) => {
|
|
46
|
-
|
|
42
|
+
if (!O.has(e)) return;
|
|
43
|
+
let t = new Set(O);
|
|
44
|
+
t.delete(e), P(t);
|
|
47
45
|
}, L = (e) => {
|
|
46
|
+
E.value = e, D.current.get(e)?.focus();
|
|
47
|
+
}, R = (e) => {
|
|
48
48
|
if (s === "multi") {
|
|
49
|
-
let t = new Set(
|
|
50
|
-
t.has(e) ? t.delete(e) : t.add(e),
|
|
51
|
-
} else
|
|
52
|
-
},
|
|
49
|
+
let t = new Set(M);
|
|
50
|
+
t.has(e) ? t.delete(e) : t.add(e), T([...t]);
|
|
51
|
+
} else T(e);
|
|
52
|
+
}, z = t({
|
|
53
53
|
buffer: "",
|
|
54
54
|
at: 0
|
|
55
|
-
}),
|
|
56
|
-
let n =
|
|
55
|
+
}), B = (e, t) => {
|
|
56
|
+
let n = A.get(t.id);
|
|
57
57
|
if (n === void 0) return;
|
|
58
|
-
let { hasChildren: r, level: i, parentId: a, expanded: s } =
|
|
58
|
+
let { hasChildren: r, level: i, parentId: a, expanded: s } = k[n];
|
|
59
59
|
switch (e.key) {
|
|
60
60
|
case "ArrowDown": {
|
|
61
61
|
e.preventDefault();
|
|
62
|
-
let t =
|
|
63
|
-
t &&
|
|
62
|
+
let t = k[n + 1];
|
|
63
|
+
t && L(t.id);
|
|
64
64
|
break;
|
|
65
65
|
}
|
|
66
66
|
case "ArrowUp": {
|
|
67
67
|
e.preventDefault();
|
|
68
|
-
let t =
|
|
69
|
-
t &&
|
|
68
|
+
let t = k[n - 1];
|
|
69
|
+
t && L(t.id);
|
|
70
70
|
break;
|
|
71
71
|
}
|
|
72
72
|
case "ArrowRight":
|
|
73
|
-
if (e.preventDefault(), r && !s)
|
|
73
|
+
if (e.preventDefault(), r && !s) F(t.id);
|
|
74
74
|
else if (r && s) {
|
|
75
|
-
let e =
|
|
76
|
-
e && e.level > i &&
|
|
75
|
+
let e = k[n + 1];
|
|
76
|
+
e && e.level > i && L(e.id);
|
|
77
77
|
}
|
|
78
78
|
break;
|
|
79
79
|
case "ArrowLeft":
|
|
80
|
-
e.preventDefault(), r && s ?
|
|
80
|
+
e.preventDefault(), r && s ? I(t.id) : a && L(a);
|
|
81
81
|
break;
|
|
82
82
|
case "Home":
|
|
83
|
-
e.preventDefault(),
|
|
83
|
+
e.preventDefault(), k[0] && L(k[0].id);
|
|
84
84
|
break;
|
|
85
85
|
case "End": {
|
|
86
86
|
e.preventDefault();
|
|
87
|
-
let t =
|
|
88
|
-
t &&
|
|
87
|
+
let t = k[k.length - 1];
|
|
88
|
+
t && L(t.id);
|
|
89
89
|
break;
|
|
90
90
|
}
|
|
91
91
|
case "Enter":
|
|
92
92
|
case " ":
|
|
93
|
-
e.preventDefault(),
|
|
93
|
+
e.preventDefault(), R(t.id);
|
|
94
94
|
break;
|
|
95
95
|
default:
|
|
96
96
|
if (e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey) {
|
|
97
|
-
let t =
|
|
97
|
+
let t = z.current, r = Date.now();
|
|
98
98
|
t.buffer = r - t.at > 500 ? e.key : t.buffer + e.key, t.at = r;
|
|
99
|
-
let i = t.buffer.toLowerCase(), a = (e) => typeof e.label == "string" && e.label.toLowerCase().startsWith(i), s = p(o,
|
|
99
|
+
let i = t.buffer.toLowerCase(), a = (e) => typeof e.label == "string" && e.label.toLowerCase().startsWith(i), s = p(o, O), c = [...k.slice(n + 1), ...k.slice(0, n + 1)].find((e) => {
|
|
100
100
|
let t = s.get(e.id);
|
|
101
101
|
return t ? a(t) : !1;
|
|
102
102
|
});
|
|
103
|
-
c &&
|
|
103
|
+
c && L(c.id);
|
|
104
104
|
}
|
|
105
105
|
break;
|
|
106
106
|
}
|
|
107
|
-
},
|
|
108
|
-
let i = !!e.children && e.children.length > 0, a =
|
|
107
|
+
}, V = (e, t, n, r) => {
|
|
108
|
+
let i = !!e.children && e.children.length > 0, a = O.has(e.id), o = M.has(e.id), s = N === e.id, l = e.children?.length ?? 0;
|
|
109
109
|
return /* @__PURE__ */ c(m, {
|
|
110
110
|
node: e,
|
|
111
111
|
level: t,
|
|
@@ -115,20 +115,20 @@ function f({ items: o, selectionMode: s = "single", selected: l, defaultSelected
|
|
|
115
115
|
isExpanded: a,
|
|
116
116
|
isSelected: o,
|
|
117
117
|
isTabbable: s,
|
|
118
|
-
itemRefs:
|
|
119
|
-
onFocusNode: () =>
|
|
120
|
-
onKeyDown: (t) =>
|
|
118
|
+
itemRefs: D,
|
|
119
|
+
onFocusNode: () => E.value = e.id,
|
|
120
|
+
onKeyDown: (t) => B(t, e),
|
|
121
121
|
onActivate: () => {
|
|
122
|
-
|
|
122
|
+
L(e.id), i && (a ? I : F)(e.id), R(e.id);
|
|
123
123
|
},
|
|
124
|
-
children: i && e.children.map((e, n) =>
|
|
124
|
+
children: i && e.children.map((e, n) => V(e, t + 1, n + 1, l))
|
|
125
125
|
}, e.id);
|
|
126
126
|
};
|
|
127
127
|
return /* @__PURE__ */ c("ul", {
|
|
128
128
|
role: "tree",
|
|
129
|
-
"aria-label": b,
|
|
130
|
-
className:
|
|
131
|
-
children: o.map((e, t) =>
|
|
129
|
+
"aria-label": x ?? b,
|
|
130
|
+
className: n(e.tree, y),
|
|
131
|
+
children: o.map((e, t) => V(e, 1, t + 1, o.length))
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
function p(e, t) {
|
package/dist/user/user.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
import { Avatar as e } from "../avatar/avatar.js";
|
|
4
2
|
import t from "./user.module.js";
|
|
5
|
-
import { cn as n } from "@cascivo/core";
|
|
3
|
+
import { cn as n } from "@cascivo/core/pure";
|
|
6
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
7
5
|
//#region ../components/src/user/user.tsx
|
|
8
6
|
function a({ name: a, description: o, avatarProps: s, className: c, children: l, ...u }) {
|
package/dist/user/user.module.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cascivo/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Prebuilt cascivo design system components — use without copying source. @cascivo/themes installs with it; pair with @cascivo/charts (data-viz) and @cascivo/icons. Docs offline: npx @cascivo/docs",
|
|
6
6
|
"keywords": [
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"provenance": true
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@cascivo/core": "^0.
|
|
49
|
-
"@cascivo/i18n": "^0.
|
|
50
|
-
"@cascivo/themes": "^0.4.
|
|
48
|
+
"@cascivo/core": "^0.16.0",
|
|
49
|
+
"@cascivo/i18n": "^0.16.0",
|
|
50
|
+
"@cascivo/themes": "^0.4.10"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@testing-library/jest-dom": "^6.9.1",
|
package/readme.body.md
CHANGED
|
@@ -379,8 +379,8 @@ routing break after adding one of these, check that the import resolves to
|
|
|
379
379
|
|
|
380
380
|
### Layout
|
|
381
381
|
|
|
382
|
+
- **AppFrame** — Full-page application shell with persisted collapsible sidebar. Includes a signal-driven top progress bar with determinate progress, error state, and dismissible error strip.
|
|
382
383
|
- **AppShell** — Sticky-header + full-height side-nav + single-scroll-container layout with an animated, accessible nav toggle.
|
|
383
|
-
- **AppShell** — Full-page application shell with persisted collapsible sidebar. Includes a signal-driven top progress bar with determinate progress, error state, and dismissible error strip.
|
|
384
384
|
- **AspectRatio** — Constrains content to a fixed width-to-height ratio
|
|
385
385
|
- **AuthLayout** — Centered card layout for authentication pages (login, register, forgot password).
|
|
386
386
|
- **AutoGrid** — Media-query-free responsive grid — columns auto-fill based on available space.
|
|
@@ -425,7 +425,7 @@ routing break after adding one of these, check that the import resolves to
|
|
|
425
425
|
- **Boxplot** — Box-and-whisker plot with five-number summary and outlier dots per series.
|
|
426
426
|
- **BubbleChart** — Bubble chart mapping x, y, and size dimensions; radius is area-proportional via sqrt scale.
|
|
427
427
|
- **Bullet** — Bullet chart with background range bands, measure bar, and target tick.
|
|
428
|
-
- **
|
|
428
|
+
- **CalendarHeatmap** — Calendar heatmap — a week-column grid of day cells colored by value (GitHub-style).
|
|
429
429
|
- **Candlestick** — OHLC financial chart — each period a high–low wick and an open↔close body, coloured up/down.
|
|
430
430
|
- **ComboChart** — Combination bar + line chart on shared or dual y-axes.
|
|
431
431
|
- **Funnel** — Vertical conversion funnel — each stage is a trapezoid narrowing toward the next, with optional conversion labels.
|