@cascivo/react 0.18.0 → 1.1.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 +9 -7
- package/dist/accordion/accordion.js +1 -114
- package/dist/accordion/accordion.module.js +1 -10
- package/dist/action-sheet/action-sheet.css +1 -1
- package/dist/action-sheet/action-sheet.js +1 -91
- package/dist/action-sheet/action-sheet.module.js +1 -12
- package/dist/alert/alert.js +1 -55
- package/dist/alert/alert.module.js +1 -11
- package/dist/alert-dialog/alert-dialog.css +1 -1
- package/dist/alert-dialog/alert-dialog.js +1 -66
- package/dist/alert-dialog/alert-dialog.module.js +1 -11
- package/dist/app-shell/app-shell.css +1 -1
- package/dist/app-shell/app-shell.js +1 -85
- package/dist/app-shell/app-shell.module.js +1 -12
- package/dist/aspect-ratio/aspect-ratio.js +1 -20
- package/dist/aspect-ratio/aspect-ratio.module.js +1 -6
- package/dist/avatar/avatar.js +1 -57
- package/dist/avatar/avatar.module.js +1 -8
- package/dist/avatar-group/avatar-group.js +1 -24
- package/dist/avatar-group/avatar-group.module.js +1 -6
- package/dist/badge/badge.js +1 -22
- package/dist/badge/badge.module.js +1 -3
- package/dist/blockquote/blockquote.js +1 -16
- package/dist/blockquote/blockquote.module.js +1 -6
- package/dist/bottom-sheet/bottom-sheet.js +1 -111
- package/dist/bottom-sheet/bottom-sheet.module.js +1 -14
- package/dist/brand/logo/logo.css +1 -0
- package/dist/brand/logo/logo.js +1 -0
- package/dist/brand/logo/logo.module.js +2 -0
- package/dist/breadcrumb/breadcrumb.js +1 -28
- package/dist/breadcrumb/breadcrumb.module.js +1 -3
- package/dist/button/button.css +1 -1
- package/dist/button/button.js +1 -35
- package/dist/button/button.module.js +1 -6
- package/dist/button-group/button-group.js +1 -39
- package/dist/button-group/button-group.module.js +1 -3
- package/dist/calendar/calendar-date.js +1 -0
- package/dist/calendar/calendar.css +1 -1
- package/dist/calendar/calendar.js +1 -199
- package/dist/calendar/calendar.module.js +1 -14
- package/dist/card/card.js +1 -53
- package/dist/card/card.module.js +1 -12
- package/dist/carousel/carousel.css +1 -1
- package/dist/carousel/carousel.js +1 -138
- package/dist/carousel/carousel.module.js +1 -13
- package/dist/chat-bubble/chat-bubble.js +1 -31
- package/dist/chat-bubble/chat-bubble.module.js +1 -11
- package/dist/checkbox/checkbox.js +1 -38
- package/dist/checkbox/checkbox.module.js +1 -8
- package/dist/checkbox-card/checkbox-card.css +1 -1
- package/dist/checkbox-card/checkbox-card.js +1 -50
- package/dist/checkbox-card/checkbox-card.module.js +1 -11
- package/dist/code/code.js +1 -14
- package/dist/code/code.module.js +1 -3
- package/dist/code-snippet/code-snippet.js +2 -121
- package/dist/code-snippet/code-snippet.module.js +1 -17
- package/dist/code-snippet/highlight.js +1 -67
- package/dist/collapsible/collapsible.js +1 -47
- package/dist/collapsible/collapsible.module.js +1 -7
- package/dist/color-picker/color-picker.css +1 -1
- package/dist/color-picker/color-picker.js +1 -268
- package/dist/color-picker/color-picker.module.js +1 -18
- package/dist/color-picker/color.js +1 -0
- package/dist/combobox/combobox.css +1 -1
- package/dist/combobox/combobox.js +1 -165
- package/dist/combobox/combobox.module.js +1 -19
- package/dist/combobox/list-nav.js +1 -0
- package/dist/combobox/option-list.js +1 -0
- package/dist/command-menu/command-menu.js +1 -421
- package/dist/command-menu/command-menu.module.js +1 -34
- package/dist/comparison/comparison.js +1 -69
- package/dist/comparison/comparison.module.js +1 -9
- package/dist/contained-list/contained-list.js +1 -41
- package/dist/contained-list/contained-list.module.js +1 -11
- package/dist/context-menu/context-menu.js +1 -93
- package/dist/context-menu/context-menu.module.js +1 -7
- package/dist/copy-button/copy-button.js +1 -60
- package/dist/copy-button/copy-button.module.js +1 -6
- package/dist/data-list/data-list.js +1 -25
- package/dist/data-list/data-list.module.js +1 -8
- package/dist/data-table/column-filter.js +1 -0
- package/dist/data-table/column-layout.js +1 -0
- package/dist/data-table/data-table.css +1 -1
- package/dist/data-table/data-table.js +1 -371
- package/dist/data-table/data-table.module.js +1 -33
- package/dist/data-table/grid-keys.js +1 -0
- package/dist/data-table/row-group.js +1 -0
- package/dist/data-table/row-search.js +1 -0
- package/dist/data-table/row-sort.js +1 -0
- package/dist/data-table/to-csv.js +3 -0
- package/dist/data-table/virtual-window.js +1 -0
- package/dist/date-picker/date-picker.css +1 -1
- package/dist/date-picker/date-picker.js +1 -219
- package/dist/date-picker/date-picker.module.js +1 -23
- package/dist/date-picker/parse-date.js +1 -0
- package/dist/date-range-picker/date-range-picker.js +1 -196
- package/dist/date-range-picker/date-range-picker.module.js +1 -18
- package/dist/dock/dock.css +1 -1
- package/dist/dock/dock.js +1 -34
- package/dist/dock/dock.module.js +1 -8
- package/dist/drawer/drawer.js +1 -96
- package/dist/drawer/drawer.module.js +1 -13
- package/dist/dropdown/dropdown.css +1 -1
- package/dist/dropdown/dropdown.js +1 -107
- package/dist/dropdown/dropdown.module.js +1 -9
- package/dist/editable/editable.js +1 -67
- package/dist/editable/editable.module.js +1 -11
- package/dist/empty-state/empty-state.js +1 -32
- package/dist/empty-state/empty-state.module.js +1 -9
- package/dist/fab/fab.css +1 -1
- package/dist/fab/fab.js +1 -93
- package/dist/fab/fab.module.js +1 -12
- package/dist/field/field.css +1 -1
- package/dist/field/field.js +1 -46
- package/dist/field/field.module.js +1 -7
- package/dist/file-uploader/file-uploader.css +1 -1
- package/dist/file-uploader/file-uploader.js +1 -122
- package/dist/file-uploader/file-uploader.module.js +1 -18
- package/dist/filter/filter.css +1 -1
- package/dist/filter/filter.js +1 -35
- package/dist/filter/filter.module.js +1 -6
- package/dist/form/form.js +1 -95
- package/dist/form/form.module.js +1 -3
- package/dist/header/header.js +1 -44
- package/dist/header/header.module.js +1 -11
- package/dist/header-panel/header-panel.js +1 -72
- package/dist/header-panel/header-panel.module.js +1 -9
- package/dist/heading/heading.css +1 -1
- package/dist/heading/heading.js +1 -22
- package/dist/heading/heading.module.js +1 -3
- package/dist/hover-card/hover-card.css +1 -1
- package/dist/hover-card/hover-card.js +1 -84
- package/dist/hover-card/hover-card.module.js +1 -6
- package/dist/icon-button/icon-button.js +1 -19
- package/dist/icon-button/icon-button.module.js +1 -3
- package/dist/image/image.css +1 -1
- package/dist/image/image.js +1 -64
- package/dist/image/image.module.js +1 -9
- package/dist/index.d.ts +2084 -120
- package/dist/indicator/indicator.js +1 -16
- package/dist/indicator/indicator.module.js +1 -6
- package/dist/infinite-scroll/infinite-scroll.js +1 -49
- package/dist/infinite-scroll/infinite-scroll.module.js +1 -7
- package/dist/inline-loading/inline-loading.js +1 -74
- package/dist/inline-loading/inline-loading.module.js +1 -9
- package/dist/input/input.css +1 -1
- package/dist/input/input.js +1 -55
- package/dist/input/input.module.js +1 -9
- package/dist/input-group/input-group.css +1 -1
- package/dist/input-group/input-group.js +1 -39
- package/dist/input-group/input-group.module.js +1 -9
- package/dist/item/item.js +1 -50
- package/dist/item/item.module.js +1 -10
- package/dist/join/join.js +1 -12
- package/dist/join/join.module.js +1 -3
- package/dist/kbd/kbd.js +1 -14
- package/dist/kbd/kbd.module.js +1 -3
- package/dist/label/label.js +1 -23
- package/dist/label/label.module.js +1 -7
- package/dist/large-title-header/large-title-header.js +1 -38
- package/dist/large-title-header/large-title-header.module.js +1 -12
- package/dist/layouts/src/auto-grid/auto-grid.js +1 -17
- package/dist/layouts/src/auto-grid/auto-grid.module.js +1 -4
- package/dist/layouts/src/center/center.js +1 -16
- package/dist/layouts/src/center/center.module.js +1 -3
- package/dist/layouts/src/columns/columns.js +1 -21
- package/dist/layouts/src/columns/columns.module.js +1 -6
- package/dist/layouts/src/flex/flex.js +1 -20
- package/dist/layouts/src/flex/flex.module.js +1 -3
- package/dist/layouts/src/grid/grid.css +1 -1
- package/dist/layouts/src/grid/grid.js +1 -55
- package/dist/layouts/src/grid/grid.module.js +1 -7
- package/dist/layouts/src/page-header/page-header.js +1 -31
- package/dist/layouts/src/page-header/page-header.module.js +1 -10
- package/dist/layouts/src/spacer/spacer.js +1 -17
- package/dist/layouts/src/spacer/spacer.module.js +1 -3
- package/dist/link/link.css +1 -1
- package/dist/link/link.js +1 -22
- package/dist/link/link.module.js +1 -3
- package/dist/list/list.js +1 -21
- package/dist/list/list.module.js +1 -6
- package/dist/log-viewer/log-viewer.css +1 -1
- package/dist/log-viewer/log-viewer.js +2 -184
- package/dist/log-viewer/log-viewer.module.js +1 -16
- package/dist/menu/menu.js +1 -126
- package/dist/menu/menu.module.js +1 -8
- package/dist/menu-button/menu-button.js +1 -92
- package/dist/menu-button/menu-button.module.js +1 -8
- package/dist/menubar/menubar.js +1 -103
- package/dist/menubar/menubar.module.js +1 -8
- package/dist/modal/modal.css +1 -1
- package/dist/modal/modal.js +1 -76
- package/dist/modal/modal.module.js +1 -12
- package/dist/multi-select/list-nav.js +1 -0
- package/dist/multi-select/multi-select.css +1 -1
- package/dist/multi-select/multi-select.js +1 -106
- package/dist/multi-select/multi-select.module.js +1 -15
- package/dist/multi-select/option-list.js +1 -0
- package/dist/native-select/native-select.css +1 -1
- package/dist/native-select/native-select.js +1 -37
- package/dist/native-select/native-select.module.js +1 -7
- package/dist/navigation-menu/navigation-menu.js +1 -99
- package/dist/navigation-menu/navigation-menu.module.js +1 -10
- package/dist/node/accordion/accordion.js +1 -114
- package/dist/node/accordion/accordion.module.js +1 -10
- package/dist/node/action-sheet/action-sheet.js +1 -91
- package/dist/node/action-sheet/action-sheet.module.js +1 -12
- package/dist/node/alert/alert.js +1 -55
- package/dist/node/alert/alert.module.js +1 -11
- package/dist/node/alert-dialog/alert-dialog.js +1 -66
- package/dist/node/alert-dialog/alert-dialog.module.js +1 -11
- package/dist/node/app-shell/app-shell.js +1 -85
- package/dist/node/app-shell/app-shell.module.js +1 -12
- package/dist/node/aspect-ratio/aspect-ratio.js +1 -20
- package/dist/node/aspect-ratio/aspect-ratio.module.js +1 -6
- package/dist/node/avatar/avatar.js +1 -57
- package/dist/node/avatar/avatar.module.js +1 -8
- package/dist/node/avatar-group/avatar-group.js +1 -24
- package/dist/node/avatar-group/avatar-group.module.js +1 -6
- package/dist/node/badge/badge.js +1 -22
- package/dist/node/badge/badge.module.js +1 -3
- package/dist/node/blockquote/blockquote.js +1 -16
- package/dist/node/blockquote/blockquote.module.js +1 -6
- package/dist/node/bottom-sheet/bottom-sheet.js +1 -111
- package/dist/node/bottom-sheet/bottom-sheet.module.js +1 -14
- package/dist/node/brand/logo/logo.js +1 -0
- package/dist/node/brand/logo/logo.module.js +1 -0
- package/dist/node/breadcrumb/breadcrumb.js +1 -28
- package/dist/node/breadcrumb/breadcrumb.module.js +1 -3
- package/dist/node/button/button.js +1 -35
- package/dist/node/button/button.module.js +1 -6
- package/dist/node/button-group/button-group.js +1 -39
- package/dist/node/button-group/button-group.module.js +1 -3
- package/dist/node/calendar/calendar-date.js +1 -0
- package/dist/node/calendar/calendar.js +1 -199
- package/dist/node/calendar/calendar.module.js +1 -14
- package/dist/node/card/card.js +1 -53
- package/dist/node/card/card.module.js +1 -12
- package/dist/node/carousel/carousel.js +1 -138
- package/dist/node/carousel/carousel.module.js +1 -13
- package/dist/node/chat-bubble/chat-bubble.js +1 -31
- package/dist/node/chat-bubble/chat-bubble.module.js +1 -11
- package/dist/node/checkbox/checkbox.js +1 -38
- package/dist/node/checkbox/checkbox.module.js +1 -8
- package/dist/node/checkbox-card/checkbox-card.js +1 -50
- package/dist/node/checkbox-card/checkbox-card.module.js +1 -11
- package/dist/node/code/code.js +1 -14
- package/dist/node/code/code.module.js +1 -3
- package/dist/node/code-snippet/code-snippet.js +2 -121
- package/dist/node/code-snippet/code-snippet.module.js +1 -17
- package/dist/node/code-snippet/highlight.js +1 -67
- package/dist/node/collapsible/collapsible.js +1 -47
- package/dist/node/collapsible/collapsible.module.js +1 -7
- package/dist/node/color-picker/color-picker.js +1 -268
- package/dist/node/color-picker/color-picker.module.js +1 -18
- package/dist/node/color-picker/color.js +1 -0
- package/dist/node/combobox/combobox.js +1 -165
- package/dist/node/combobox/combobox.module.js +1 -19
- package/dist/node/combobox/list-nav.js +1 -0
- package/dist/node/combobox/option-list.js +1 -0
- package/dist/node/command-menu/command-menu.js +1 -421
- package/dist/node/command-menu/command-menu.module.js +1 -34
- package/dist/node/comparison/comparison.js +1 -69
- package/dist/node/comparison/comparison.module.js +1 -9
- package/dist/node/contained-list/contained-list.js +1 -41
- package/dist/node/contained-list/contained-list.module.js +1 -11
- package/dist/node/context-menu/context-menu.js +1 -93
- package/dist/node/context-menu/context-menu.module.js +1 -7
- package/dist/node/copy-button/copy-button.js +1 -60
- package/dist/node/copy-button/copy-button.module.js +1 -6
- package/dist/node/data-list/data-list.js +1 -25
- package/dist/node/data-list/data-list.module.js +1 -8
- package/dist/node/data-table/column-filter.js +1 -0
- package/dist/node/data-table/column-layout.js +1 -0
- package/dist/node/data-table/data-table.js +1 -371
- package/dist/node/data-table/data-table.module.js +1 -33
- package/dist/node/data-table/grid-keys.js +1 -0
- package/dist/node/data-table/row-group.js +1 -0
- package/dist/node/data-table/row-search.js +1 -0
- package/dist/node/data-table/row-sort.js +1 -0
- package/dist/node/data-table/to-csv.js +3 -0
- package/dist/node/data-table/virtual-window.js +1 -0
- package/dist/node/date-picker/date-picker.js +1 -219
- package/dist/node/date-picker/date-picker.module.js +1 -23
- package/dist/node/date-picker/parse-date.js +1 -0
- package/dist/node/date-range-picker/date-range-picker.js +1 -196
- package/dist/node/date-range-picker/date-range-picker.module.js +1 -18
- package/dist/node/dock/dock.js +1 -34
- package/dist/node/dock/dock.module.js +1 -8
- package/dist/node/drawer/drawer.js +1 -96
- package/dist/node/drawer/drawer.module.js +1 -13
- package/dist/node/dropdown/dropdown.js +1 -107
- package/dist/node/dropdown/dropdown.module.js +1 -9
- package/dist/node/editable/editable.js +1 -67
- package/dist/node/editable/editable.module.js +1 -11
- package/dist/node/empty-state/empty-state.js +1 -32
- package/dist/node/empty-state/empty-state.module.js +1 -9
- package/dist/node/fab/fab.js +1 -93
- package/dist/node/fab/fab.module.js +1 -12
- package/dist/node/field/field.js +1 -46
- package/dist/node/field/field.module.js +1 -7
- package/dist/node/file-uploader/file-uploader.js +1 -122
- package/dist/node/file-uploader/file-uploader.module.js +1 -18
- package/dist/node/filter/filter.js +1 -35
- package/dist/node/filter/filter.module.js +1 -6
- package/dist/node/form/form.js +1 -95
- package/dist/node/form/form.module.js +1 -3
- package/dist/node/header/header.js +1 -44
- package/dist/node/header/header.module.js +1 -11
- package/dist/node/header-panel/header-panel.js +1 -72
- package/dist/node/header-panel/header-panel.module.js +1 -9
- package/dist/node/heading/heading.js +1 -22
- package/dist/node/heading/heading.module.js +1 -3
- package/dist/node/hover-card/hover-card.js +1 -84
- package/dist/node/hover-card/hover-card.module.js +1 -6
- package/dist/node/icon-button/icon-button.js +1 -19
- package/dist/node/icon-button/icon-button.module.js +1 -3
- package/dist/node/image/image.js +1 -64
- package/dist/node/image/image.module.js +1 -9
- package/dist/node/indicator/indicator.js +1 -16
- package/dist/node/indicator/indicator.module.js +1 -6
- package/dist/node/infinite-scroll/infinite-scroll.js +1 -49
- package/dist/node/infinite-scroll/infinite-scroll.module.js +1 -7
- package/dist/node/inline-loading/inline-loading.js +1 -74
- package/dist/node/inline-loading/inline-loading.module.js +1 -9
- package/dist/node/input/input.js +1 -55
- package/dist/node/input/input.module.js +1 -9
- package/dist/node/input-group/input-group.js +1 -39
- package/dist/node/input-group/input-group.module.js +1 -9
- package/dist/node/item/item.js +1 -50
- package/dist/node/item/item.module.js +1 -10
- package/dist/node/join/join.js +1 -12
- package/dist/node/join/join.module.js +1 -3
- package/dist/node/kbd/kbd.js +1 -14
- package/dist/node/kbd/kbd.module.js +1 -3
- package/dist/node/label/label.js +1 -23
- package/dist/node/label/label.module.js +1 -7
- package/dist/node/large-title-header/large-title-header.js +1 -38
- package/dist/node/large-title-header/large-title-header.module.js +1 -12
- package/dist/node/layouts/src/auto-grid/auto-grid.js +1 -17
- package/dist/node/layouts/src/auto-grid/auto-grid.module.js +1 -4
- package/dist/node/layouts/src/center/center.js +1 -16
- package/dist/node/layouts/src/center/center.module.js +1 -3
- package/dist/node/layouts/src/columns/columns.js +1 -21
- package/dist/node/layouts/src/columns/columns.module.js +1 -6
- package/dist/node/layouts/src/flex/flex.js +1 -20
- package/dist/node/layouts/src/flex/flex.module.js +1 -3
- package/dist/node/layouts/src/grid/grid.js +1 -55
- package/dist/node/layouts/src/grid/grid.module.js +1 -7
- package/dist/node/layouts/src/page-header/page-header.js +1 -31
- package/dist/node/layouts/src/page-header/page-header.module.js +1 -10
- package/dist/node/layouts/src/spacer/spacer.js +1 -17
- package/dist/node/layouts/src/spacer/spacer.module.js +1 -3
- package/dist/node/link/link.js +1 -22
- package/dist/node/link/link.module.js +1 -3
- package/dist/node/list/list.js +1 -21
- package/dist/node/list/list.module.js +1 -6
- package/dist/node/log-viewer/log-viewer.js +2 -184
- package/dist/node/log-viewer/log-viewer.module.js +1 -16
- package/dist/node/menu/menu.js +1 -126
- package/dist/node/menu/menu.module.js +1 -8
- package/dist/node/menu-button/menu-button.js +1 -92
- package/dist/node/menu-button/menu-button.module.js +1 -8
- package/dist/node/menubar/menubar.js +1 -103
- package/dist/node/menubar/menubar.module.js +1 -8
- package/dist/node/modal/modal.js +1 -76
- package/dist/node/modal/modal.module.js +1 -12
- package/dist/node/multi-select/list-nav.js +1 -0
- package/dist/node/multi-select/multi-select.js +1 -106
- package/dist/node/multi-select/multi-select.module.js +1 -15
- package/dist/node/multi-select/option-list.js +1 -0
- package/dist/node/native-select/native-select.js +1 -37
- package/dist/node/native-select/native-select.module.js +1 -7
- package/dist/node/navigation-menu/navigation-menu.js +1 -99
- package/dist/node/navigation-menu/navigation-menu.module.js +1 -10
- package/dist/node/notification/notification.js +1 -140
- package/dist/node/notification/notification.module.js +1 -11
- package/dist/node/number-input/number-input.js +1 -147
- package/dist/node/number-input/number-input.module.js +1 -12
- package/dist/node/otp-input/otp-input.js +1 -70
- package/dist/node/otp-input/otp-input.module.js +1 -6
- package/dist/node/overflow-menu/overflow-menu.js +1 -70
- package/dist/node/overflow-menu/overflow-menu.module.js +1 -7
- package/dist/node/pagination/pagination.js +1 -92
- package/dist/node/pagination/pagination.module.js +1 -11
- package/dist/node/password-input/password-input.js +1 -81
- package/dist/node/password-input/password-input.module.js +1 -11
- package/dist/node/popover/popover.js +1 -51
- package/dist/node/popover/popover.module.js +1 -6
- package/dist/node/popover/use-popover.js +1 -55
- package/dist/node/progress/progress.js +1 -16
- package/dist/node/progress/progress.module.js +1 -6
- package/dist/node/progress-bar/progress-bar.js +1 -42
- package/dist/node/progress-bar/progress-bar.module.js +1 -11
- package/dist/node/progress-circle/progress-circle.js +1 -46
- package/dist/node/progress-circle/progress-circle.module.js +1 -9
- package/dist/node/progress-indicator/progress-indicator.js +1 -34
- package/dist/node/progress-indicator/progress-indicator.module.js +1 -10
- package/dist/node/prose/prose.js +1 -13
- package/dist/node/prose/prose.module.js +1 -3
- package/dist/node/pull-to-refresh/pull-to-refresh.js +1 -82
- package/dist/node/pull-to-refresh/pull-to-refresh.module.js +1 -9
- package/dist/node/qr-code/encode.js +1 -583
- package/dist/node/qr-code/qr-code.js +1 -41
- package/dist/node/qr-code/qr-code.module.js +1 -6
- package/dist/node/radial-progress/radial-progress.js +1 -27
- package/dist/node/radial-progress/radial-progress.module.js +1 -6
- package/dist/node/radio/radio.js +1 -48
- package/dist/node/radio/radio.module.js +1 -9
- package/dist/node/radio-card/radio-card.js +1 -64
- package/dist/node/radio-card/radio-card.module.js +1 -11
- package/dist/node/rating-group/rating-group.js +1 -37
- package/dist/node/rating-group/rating-group.module.js +1 -6
- package/dist/node/react/src/index.js +1 -141
- package/dist/node/relative-time/relative-time.js +1 -66
- package/dist/node/relative-time/relative-time.module.js +1 -3
- package/dist/node/reorder-list/reorder-list.js +1 -143
- package/dist/node/reorder-list/reorder-list.module.js +1 -11
- package/dist/node/resizable/resizable.js +1 -80
- package/dist/node/resizable/resizable.module.js +1 -8
- package/dist/node/scroll-area/scroll-area.js +1 -38
- package/dist/node/scroll-area/scroll-area.module.js +1 -3
- package/dist/node/search/search.js +1 -92
- package/dist/node/search/search.module.js +1 -9
- package/dist/node/segmented-control/segmented-control.js +1 -43
- package/dist/node/segmented-control/segmented-control.module.js +1 -6
- package/dist/node/select/select.js +1 -72
- package/dist/node/select/select.module.js +1 -11
- package/dist/node/separator/separator.js +1 -19
- package/dist/node/separator/separator.module.js +1 -3
- package/dist/node/sheet/sheet.js +1 -49
- package/dist/node/sheet/sheet.module.js +1 -9
- package/dist/node/shell-header/shell-header.js +1 -169
- package/dist/node/shell-header/shell-header.module.js +1 -24
- package/dist/node/side-nav/side-nav.js +1 -334
- package/dist/node/side-nav/side-nav.module.js +1 -31
- package/dist/node/skeleton/skeleton.js +1 -23
- package/dist/node/skeleton/skeleton.module.js +1 -7
- package/dist/node/skip-nav/skip-nav.js +1 -28
- package/dist/node/skip-nav/skip-nav.module.js +1 -3
- package/dist/node/slider/slider.js +1 -29
- package/dist/node/slider/slider.module.js +1 -7
- package/dist/node/spinner/spinner.js +1 -18
- package/dist/node/spinner/spinner.module.js +1 -6
- package/dist/node/stack/stack.js +1 -17
- package/dist/node/stack/stack.module.js +1 -6
- package/dist/node/stat/stat.js +1 -41
- package/dist/node/stat/stat.module.js +1 -11
- package/dist/node/status/status.js +1 -25
- package/dist/node/status/status.module.js +1 -7
- package/dist/node/steps/steps.js +1 -35
- package/dist/node/steps/steps.module.js +1 -8
- package/dist/node/structured-list/structured-list.js +1 -102
- package/dist/node/structured-list/structured-list.module.js +1 -12
- package/dist/node/swap/swap.js +1 -36
- package/dist/node/swap/swap.module.js +1 -7
- package/dist/node/swipe-item/swipe-item.js +1 -62
- package/dist/node/swipe-item/swipe-item.module.js +1 -12
- package/dist/node/switcher/switcher.js +1 -32
- package/dist/node/switcher/switcher.module.js +1 -8
- package/dist/node/tabs/tabs.js +1 -98
- package/dist/node/tabs/tabs.module.js +1 -8
- package/dist/node/tag/tag.js +1 -33
- package/dist/node/tag/tag.module.js +1 -6
- package/dist/node/tags-input/tags-input.js +1 -64
- package/dist/node/tags-input/tags-input.module.js +1 -8
- package/dist/node/text/text.js +1 -16
- package/dist/node/text/text.module.js +1 -3
- package/dist/node/textarea/textarea.js +1 -57
- package/dist/node/textarea/textarea.module.js +1 -9
- package/dist/node/tile/tile.js +1 -39
- package/dist/node/tile/tile.module.js +1 -7
- package/dist/node/time-picker/time-picker.js +1 -63
- package/dist/node/time-picker/time-picker.module.js +1 -9
- package/dist/node/timeline/timeline.js +1 -55
- package/dist/node/timeline/timeline.module.js +1 -11
- package/dist/node/toast/toast.js +1 -85
- package/dist/node/toast/toast.module.js +1 -11
- package/dist/node/toc/toc.js +1 -43
- package/dist/node/toc/toc.module.js +1 -3
- package/dist/node/toc/use-toc-from-region.js +1 -18
- package/dist/node/toggle/toggle.js +1 -41
- package/dist/node/toggle/toggle.module.js +1 -8
- package/dist/node/toggle-group/toggle-group.js +1 -55
- package/dist/node/toggle-group/toggle-group.module.js +1 -6
- package/dist/node/toggletip/toggletip.js +1 -49
- package/dist/node/toggletip/toggletip.module.js +1 -7
- package/dist/node/tooltip/tooltip.js +1 -58
- package/dist/node/tooltip/tooltip.module.js +1 -6
- package/dist/node/tree-view/tree-view.js +1 -201
- package/dist/node/tree-view/tree-view.module.js +1 -13
- package/dist/node/user/user.js +1 -35
- package/dist/node/user/user.module.js +1 -9
- package/dist/node/virtual-list/virtual-list.js +1 -40
- package/dist/node/virtual-list/virtual-list.module.js +1 -7
- package/dist/node/visually-hidden/visually-hidden.js +1 -2
- package/dist/node/wheel-picker/wheel-picker.js +1 -84
- package/dist/node/wheel-picker/wheel-picker.module.js +1 -8
- package/dist/notification/notification.js +1 -140
- package/dist/notification/notification.module.js +1 -11
- package/dist/number-input/number-input.js +1 -147
- package/dist/number-input/number-input.module.js +1 -12
- package/dist/otp-input/otp-input.js +1 -70
- package/dist/otp-input/otp-input.module.js +1 -6
- package/dist/overflow-menu/overflow-menu.js +1 -70
- package/dist/overflow-menu/overflow-menu.module.js +1 -7
- package/dist/pagination/pagination.js +1 -92
- package/dist/pagination/pagination.module.js +1 -11
- package/dist/password-input/password-input.js +1 -81
- package/dist/password-input/password-input.module.js +1 -11
- package/dist/popover/popover.js +1 -51
- package/dist/popover/popover.module.js +1 -6
- package/dist/popover/use-popover.js +1 -55
- package/dist/progress/progress.css +1 -1
- package/dist/progress/progress.js +1 -16
- package/dist/progress/progress.module.js +1 -6
- package/dist/progress-bar/progress-bar.css +1 -1
- package/dist/progress-bar/progress-bar.js +1 -42
- package/dist/progress-bar/progress-bar.module.js +1 -11
- package/dist/progress-circle/progress-circle.js +1 -46
- package/dist/progress-circle/progress-circle.module.js +1 -9
- package/dist/progress-indicator/progress-indicator.css +1 -1
- package/dist/progress-indicator/progress-indicator.js +1 -34
- package/dist/progress-indicator/progress-indicator.module.js +1 -10
- package/dist/prose/prose.css +1 -1
- package/dist/prose/prose.js +1 -13
- package/dist/prose/prose.module.js +1 -3
- package/dist/pull-to-refresh/pull-to-refresh.js +1 -82
- package/dist/pull-to-refresh/pull-to-refresh.module.js +1 -9
- package/dist/qr-code/encode.js +1 -583
- package/dist/qr-code/qr-code.js +1 -41
- package/dist/qr-code/qr-code.module.js +1 -6
- package/dist/radial-progress/radial-progress.js +1 -27
- package/dist/radial-progress/radial-progress.module.js +1 -6
- package/dist/radio/radio.js +1 -48
- package/dist/radio/radio.module.js +1 -9
- package/dist/radio-card/radio-card.css +1 -1
- package/dist/radio-card/radio-card.js +1 -64
- package/dist/radio-card/radio-card.module.js +1 -11
- package/dist/rating-group/rating-group.js +1 -37
- package/dist/rating-group/rating-group.module.js +1 -6
- package/dist/react/src/index.js +1 -141
- package/dist/relative-time/relative-time.js +1 -66
- package/dist/relative-time/relative-time.module.js +1 -3
- package/dist/reorder-list/reorder-list.css +1 -1
- package/dist/reorder-list/reorder-list.js +1 -143
- package/dist/reorder-list/reorder-list.module.js +1 -11
- package/dist/resizable/resizable.js +1 -80
- package/dist/resizable/resizable.module.js +1 -8
- package/dist/scroll-area/scroll-area.css +1 -1
- package/dist/scroll-area/scroll-area.js +1 -38
- package/dist/scroll-area/scroll-area.module.js +1 -3
- package/dist/search/search.js +1 -92
- package/dist/search/search.module.js +1 -9
- package/dist/segmented-control/segmented-control.js +1 -43
- package/dist/segmented-control/segmented-control.module.js +1 -6
- package/dist/select/select.js +1 -72
- package/dist/select/select.module.js +1 -11
- package/dist/separator/separator.js +1 -19
- package/dist/separator/separator.module.js +1 -3
- package/dist/sheet/sheet.js +1 -49
- package/dist/sheet/sheet.module.js +1 -9
- package/dist/shell-header/shell-header.css +1 -1
- package/dist/shell-header/shell-header.js +1 -169
- package/dist/shell-header/shell-header.module.js +1 -24
- package/dist/side-nav/side-nav.css +1 -1
- package/dist/side-nav/side-nav.js +1 -334
- package/dist/side-nav/side-nav.module.js +1 -31
- package/dist/skeleton/skeleton.css +1 -1
- package/dist/skeleton/skeleton.js +1 -23
- package/dist/skeleton/skeleton.module.js +1 -7
- package/dist/skip-nav/skip-nav.js +1 -28
- package/dist/skip-nav/skip-nav.module.js +1 -3
- package/dist/slider/slider.js +1 -29
- package/dist/slider/slider.module.js +1 -7
- package/dist/spinner/spinner.css +1 -1
- package/dist/spinner/spinner.js +1 -18
- package/dist/spinner/spinner.module.js +1 -6
- package/dist/stack/stack.js +1 -17
- package/dist/stack/stack.module.js +1 -6
- package/dist/stat/stat.js +1 -41
- package/dist/stat/stat.module.js +1 -11
- package/dist/status/status.css +1 -1
- package/dist/status/status.js +1 -25
- package/dist/status/status.module.js +1 -7
- package/dist/steps/steps.css +1 -1
- package/dist/steps/steps.js +1 -35
- package/dist/steps/steps.module.js +1 -8
- package/dist/structured-list/structured-list.js +1 -102
- package/dist/structured-list/structured-list.module.js +1 -12
- package/dist/styles.css +395 -53
- package/dist/swap/swap.css +1 -1
- package/dist/swap/swap.js +1 -36
- package/dist/swap/swap.module.js +1 -7
- package/dist/swipe-item/swipe-item.js +1 -62
- package/dist/swipe-item/swipe-item.module.js +1 -12
- package/dist/switcher/switcher.js +1 -32
- package/dist/switcher/switcher.module.js +1 -8
- package/dist/tabs/tabs.js +1 -98
- package/dist/tabs/tabs.module.js +1 -8
- package/dist/tag/tag.js +1 -33
- package/dist/tag/tag.module.js +1 -6
- package/dist/tags-input/tags-input.js +1 -64
- package/dist/tags-input/tags-input.module.js +1 -8
- package/dist/text/text.css +1 -1
- package/dist/text/text.js +1 -16
- package/dist/text/text.module.js +1 -3
- package/dist/textarea/textarea.css +1 -1
- package/dist/textarea/textarea.js +1 -57
- package/dist/textarea/textarea.module.js +1 -9
- package/dist/tile/tile.css +1 -1
- package/dist/tile/tile.js +1 -39
- package/dist/tile/tile.module.js +1 -7
- package/dist/time-picker/time-picker.js +1 -63
- package/dist/time-picker/time-picker.module.js +1 -9
- package/dist/timeline/timeline.js +1 -55
- package/dist/timeline/timeline.module.js +1 -11
- package/dist/toast/toast.css +1 -1
- package/dist/toast/toast.js +1 -85
- package/dist/toast/toast.module.js +1 -11
- package/dist/toc/toc.css +1 -1
- package/dist/toc/toc.js +1 -43
- package/dist/toc/toc.module.js +1 -3
- package/dist/toc/use-toc-from-region.js +1 -18
- package/dist/toggle/toggle.js +1 -41
- package/dist/toggle/toggle.module.js +1 -8
- package/dist/toggle-group/toggle-group.js +1 -55
- package/dist/toggle-group/toggle-group.module.js +1 -6
- package/dist/toggletip/toggletip.js +1 -49
- package/dist/toggletip/toggletip.module.js +1 -7
- package/dist/tooltip/tooltip.css +1 -1
- package/dist/tooltip/tooltip.js +1 -58
- package/dist/tooltip/tooltip.module.js +1 -6
- package/dist/tree-view/tree-view.css +1 -1
- package/dist/tree-view/tree-view.js +1 -201
- package/dist/tree-view/tree-view.module.js +1 -13
- package/dist/user/user.js +1 -35
- package/dist/user/user.module.js +1 -9
- package/dist/virtual-list/virtual-list.js +1 -40
- package/dist/virtual-list/virtual-list.module.js +1 -7
- package/dist/visually-hidden/visually-hidden.js +1 -2
- package/dist/wheel-picker/wheel-picker.js +1 -84
- package/dist/wheel-picker/wheel-picker.module.js +1 -8
- package/package.json +4 -4
- package/readme.body.md +7 -5
|
@@ -1,20 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import { cn as t } from "@cascivo/core/pure";
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
//#region ../layouts/src/flex/flex.tsx
|
|
5
|
-
function r({ direction: r = "vertical", gap: i = 4, align: a, justify: o, wrap: s = !1, className: c, style: l, ...u }) {
|
|
6
|
-
return /* @__PURE__ */ n("div", {
|
|
7
|
-
className: t(e.flex, c),
|
|
8
|
-
"data-direction": r,
|
|
9
|
-
"data-wrap": s ? "" : void 0,
|
|
10
|
-
style: {
|
|
11
|
-
"--_flex-gap": `var(--cascivo-space-${i})`,
|
|
12
|
-
...a ? { alignItems: a === "start" || a === "end" ? `flex-${a}` : a } : {},
|
|
13
|
-
...o ? { justifyContent: o === "between" ? "space-between" : o === "start" || o === "end" ? `flex-${o}` : o } : {},
|
|
14
|
-
...l
|
|
15
|
-
},
|
|
16
|
-
...u
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
export { r as Flex };
|
|
1
|
+
import e from"./flex.module.js";import{cn as t}from"@cascivo/core/pure";import{jsx as n}from"react/jsx-runtime";function r({direction:r=`vertical`,gap:i=4,align:a,justify:o,wrap:s=!1,className:c,style:l,...u}){return n(`div`,{className:t(e.flex,c),"data-direction":r,"data-wrap":s?``:void 0,style:{"--_flex-gap":`var(--cascivo-space-${i})`,...a?{alignItems:a===`start`||a===`end`?`flex-${a}`:a}:{},...o?{justifyContent:o===`between`?`space-between`:o===`start`||o===`end`?`flex-${o}`:o}:{},...l},...u})}export{r as Flex};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer cascivo.component{._grid-
|
|
1
|
+
@layer cascivo.component{._grid-container_yt0z5_5{display:grid;container-type:inline-size}._grid_yt0z5_2{grid-template-columns:repeat(var(--_grid-cols,12), minmax(0, 1fr));gap:var(--_grid-gap,var(--cascivo-space-4));align-items:var(--_grid-align,stretch);justify-items:var(--_grid-justify,stretch);min-inline-size:0;display:grid;container-type:inline-size}@container (width<=40rem){._grid_yt0z5_2:not([data-responsive]){grid-template-columns:1fr}}@container (width>=30rem){._grid_yt0z5_2[data-responsive]{grid-template-columns:repeat(var(--_grid-cols-sm,var(--_grid-cols,12)), minmax(0, 1fr))}}@container (width>=40rem){._grid_yt0z5_2[data-responsive]{grid-template-columns:repeat(var(--_grid-cols-md,var(--_grid-cols-sm,var(--_grid-cols,12))), minmax(0, 1fr))}}@container (width>=64rem){._grid_yt0z5_2[data-responsive]{grid-template-columns:repeat(var(--_grid-cols-lg,var(--_grid-cols-md,var(--_grid-cols-sm,var(--_grid-cols,12)))), minmax(0, 1fr))}}@container (width>=80rem){._grid_yt0z5_2[data-responsive]{grid-template-columns:repeat(var(--_grid-cols-xl,var(--_grid-cols-lg,var(--_grid-cols-md,var(--_grid-cols-sm,var(--_grid-cols,12))))), minmax(0, 1fr))}}@supports (grid-template-rows:subgrid){._grid_yt0z5_2[data-align-rows]>*,._grid_yt0z5_2[data-align-rows]>*>[data-cascivo-card]{grid-row:span 3;grid-template-rows:subgrid;row-gap:0;display:grid}}._grid-item_yt0z5_57{grid-column:span var(--_span,1);align-content:stretch;display:grid}@container (width>=30rem){._grid-item_yt0z5_57[data-responsive]{grid-column:span var(--_span-sm,var(--_span,1))}}@container (width>=40rem){._grid-item_yt0z5_57[data-responsive]{grid-column:span var(--_span-md,var(--_span-sm,var(--_span,1)))}}@container (width>=64rem){._grid-item_yt0z5_57[data-responsive]{grid-column:span var(--_span-lg,var(--_span-md,var(--_span-sm,var(--_span,1))))}}@container (width>=80rem){._grid-item_yt0z5_57[data-responsive]{grid-column:span var(--_span-xl,var(--_span-lg,var(--_span-md,var(--_span-sm,var(--_span,1)))))}}}
|
|
@@ -1,55 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import { cn as t } from "@cascivo/core/pure";
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
//#region ../layouts/src/grid/grid.tsx
|
|
5
|
-
function r(e) {
|
|
6
|
-
return typeof e == "object" && !!e;
|
|
7
|
-
}
|
|
8
|
-
function i(e, t) {
|
|
9
|
-
if (t === void 0) return {};
|
|
10
|
-
if (!r(t)) return { [e]: String(t) };
|
|
11
|
-
let n = {};
|
|
12
|
-
t.base !== void 0 && (n[e] = String(t.base));
|
|
13
|
-
for (let r of [
|
|
14
|
-
"sm",
|
|
15
|
-
"md",
|
|
16
|
-
"lg",
|
|
17
|
-
"xl"
|
|
18
|
-
]) {
|
|
19
|
-
let i = t[r];
|
|
20
|
-
i !== void 0 && (n[`${e}-${r}`] = String(i));
|
|
21
|
-
}
|
|
22
|
-
return n;
|
|
23
|
-
}
|
|
24
|
-
function a({ cols: a = 12, gap: o = 4, align: s, justify: c, className: l, style: u, children: d, ...f }) {
|
|
25
|
-
return /* @__PURE__ */ n("div", {
|
|
26
|
-
className: t(e["grid-container"], l),
|
|
27
|
-
style: {
|
|
28
|
-
...i("--_grid-cols", a),
|
|
29
|
-
"--_grid-gap": `var(--cascivo-space-${o})`,
|
|
30
|
-
...s ? { "--_grid-align": s } : {},
|
|
31
|
-
...c ? { "--_grid-justify": c } : {},
|
|
32
|
-
...u
|
|
33
|
-
},
|
|
34
|
-
...f,
|
|
35
|
-
children: /* @__PURE__ */ n("div", {
|
|
36
|
-
className: e.grid,
|
|
37
|
-
"data-responsive": r(a) ? "" : void 0,
|
|
38
|
-
children: d
|
|
39
|
-
})
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
function o({ span: a, className: o, style: s, ...c }) {
|
|
43
|
-
let l = a !== void 0 && r(a);
|
|
44
|
-
return /* @__PURE__ */ n("div", {
|
|
45
|
-
className: t(e["grid-item"], o),
|
|
46
|
-
"data-responsive": l ? "" : void 0,
|
|
47
|
-
style: {
|
|
48
|
-
...i("--_span", a),
|
|
49
|
-
...s
|
|
50
|
-
},
|
|
51
|
-
...c
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
//#endregion
|
|
55
|
-
export { a as Grid, o as GridItem };
|
|
1
|
+
import e from"./grid.module.js";import{cn as t}from"@cascivo/core/pure";import{jsx as n}from"react/jsx-runtime";function r(e){return typeof e==`object`&&!!e}function i(e,t){if(t===void 0)return{};if(!r(t))return{[e]:String(t)};let n={};t.base!==void 0&&(n[e]=String(t.base));for(let r of[`sm`,`md`,`lg`,`xl`]){let i=t[r];i!==void 0&&(n[`${e}-${r}`]=String(i))}return n}function a({cols:a=12,gap:o=4,align:s,justify:c,alignRows:l=!1,className:u,style:d,children:f,...p}){return n(`div`,{className:t(e[`grid-container`],u),style:{...i(`--_grid-cols`,a),"--_grid-gap":`var(--cascivo-space-${o})`,...s?{"--_grid-align":s}:{},...c?{"--_grid-justify":c}:{},...d},...p,children:n(`div`,{className:e.grid,"data-responsive":r(a)?``:void 0,"data-align-rows":l?``:void 0,children:f})})}function o({span:a,className:o,style:s,...c}){let l=a!==void 0&&r(a);return n(`div`,{className:t(e[`grid-item`],o),"data-responsive":l?``:void 0,style:{...i(`--_span`,a),...s},...c})}export{a as Grid,o as GridItem};
|
|
@@ -1,8 +1,2 @@
|
|
|
1
1
|
import './grid.css';
|
|
2
|
-
var e
|
|
3
|
-
"grid-container": "_grid-container_1tchk_5",
|
|
4
|
-
grid: "_grid_1tchk_2",
|
|
5
|
-
"grid-item": "_grid-item_1tchk_55"
|
|
6
|
-
};
|
|
7
|
-
//#endregion
|
|
8
|
-
export { e as default };
|
|
2
|
+
var e={"grid-container":`_grid-container_yt0z5_5`,grid:`_grid_yt0z5_2`,"grid-item":`_grid-item_yt0z5_57`};export{e as default};
|
|
@@ -1,31 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import { cn as t } from "@cascivo/core/pure";
|
|
3
|
-
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
//#region ../layouts/src/page-header/page-header.tsx
|
|
5
|
-
function i({ title: i, description: a, breadcrumb: o, actions: s, className: c }) {
|
|
6
|
-
return /* @__PURE__ */ r("header", {
|
|
7
|
-
className: t(e.header, c),
|
|
8
|
-
children: [
|
|
9
|
-
o && /* @__PURE__ */ n("div", {
|
|
10
|
-
className: e.breadcrumb,
|
|
11
|
-
children: o
|
|
12
|
-
}),
|
|
13
|
-
/* @__PURE__ */ r("div", {
|
|
14
|
-
className: e.row,
|
|
15
|
-
children: [/* @__PURE__ */ n("h1", {
|
|
16
|
-
className: e.title,
|
|
17
|
-
children: i
|
|
18
|
-
}), s && /* @__PURE__ */ n("div", {
|
|
19
|
-
className: e.actions,
|
|
20
|
-
children: s
|
|
21
|
-
})]
|
|
22
|
-
}),
|
|
23
|
-
a && /* @__PURE__ */ n("p", {
|
|
24
|
-
className: e.description,
|
|
25
|
-
children: a
|
|
26
|
-
})
|
|
27
|
-
]
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
31
|
-
export { i as PageHeader };
|
|
1
|
+
import e from"./page-header.module.js";import{cn as t}from"@cascivo/core/pure";import{jsx as n,jsxs as r}from"react/jsx-runtime";function i({title:i,description:a,breadcrumb:o,actions:s,className:c}){return r(`header`,{className:t(e.header,c),children:[o&&n(`div`,{className:e.breadcrumb,children:o}),r(`div`,{className:e.row,children:[n(`h1`,{className:e.title,children:i}),s&&n(`div`,{className:e.actions,children:s})]}),a&&n(`p`,{className:e.description,children:a})]})}export{i as PageHeader};
|
|
@@ -1,11 +1,2 @@
|
|
|
1
1
|
import './page-header.css';
|
|
2
|
-
var e
|
|
3
|
-
header: "_header_18phh_2",
|
|
4
|
-
breadcrumb: "_breadcrumb_18phh_8",
|
|
5
|
-
row: "_row_18phh_12",
|
|
6
|
-
title: "_title_18phh_20",
|
|
7
|
-
actions: "_actions_18phh_28",
|
|
8
|
-
description: "_description_18phh_35"
|
|
9
|
-
};
|
|
10
|
-
//#endregion
|
|
11
|
-
export { e as default };
|
|
2
|
+
var e={header:`_header_18phh_2`,breadcrumb:`_breadcrumb_18phh_8`,row:`_row_18phh_12`,title:`_title_18phh_20`,actions:`_actions_18phh_28`,description:`_description_18phh_35`};export{e as default};
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import { cn as t } from "@cascivo/core/pure";
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
//#region ../layouts/src/spacer/spacer.tsx
|
|
5
|
-
function r({ size: r = 4, className: i, style: a, ...o }) {
|
|
6
|
-
return /* @__PURE__ */ n("div", {
|
|
7
|
-
role: "none",
|
|
8
|
-
className: t(e.spacer, i),
|
|
9
|
-
style: {
|
|
10
|
-
"--_spacer-size": `var(--cascivo-space-${r})`,
|
|
11
|
-
...a
|
|
12
|
-
},
|
|
13
|
-
...o
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
export { r as Spacer };
|
|
1
|
+
import e from"./spacer.module.js";import{cn as t}from"@cascivo/core/pure";import{jsx as n}from"react/jsx-runtime";function r({size:r=4,className:i,style:a,...o}){return n(`div`,{role:`none`,className:t(e.spacer,i),style:{"--_spacer-size":`var(--cascivo-space-${r})`,...a},...o})}export{r as Spacer};
|
package/dist/link/link.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer cascivo.component{.
|
|
1
|
+
@layer cascivo.component{._link_1akb1_2{color:var(--cascivo-link-color,var(--cascivo-color-accent-text));cursor:pointer;border-radius:var(--cascivo-radius-item);text-underline-offset:.2em;transition:color var(--cascivo-duration-150) var(--cascivo-ease-out)}._link_1akb1_2:hover,._link_1akb1_2:active{color:var(--cascivo-color-accent-text-hover)}._link_1akb1_2:focus-visible{box-shadow:var(--cascivo-focus-ring);outline:none}._link_1akb1_2[data-variant=standalone]{font-family:var(--cascivo-font-sans);font-weight:var(--cascivo-font-medium);text-decoration:none}._link_1akb1_2[data-variant=standalone]:hover{text-decoration:underline}._link_1akb1_2[data-variant=standalone][data-size=sm]{font-size:var(--cascivo-text-sm)}._link_1akb1_2[data-variant=standalone][data-size=md]{font-size:var(--cascivo-text-base)}._link_1akb1_2[data-variant=standalone][data-size=lg]{font-size:var(--cascivo-text-lg)}._link_1akb1_2[data-variant=inline]{font:inherit;text-decoration:underline}._link_1akb1_2[data-external]:not(:has(>svg:last-child)):after{content:"↗" / "";margin-inline-start:var(--cascivo-space-1);font-size:.8em}}
|
package/dist/link/link.js
CHANGED
|
@@ -1,22 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import { Slot as t, cn as n } from "@cascivo/core/pure";
|
|
3
|
-
import { forwardRef as r } from "react";
|
|
4
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
-
//#region ../components/src/link/link.tsx
|
|
6
|
-
var a = r(function({ variant: r = "standalone", size: a = "md", external: o = !1, asChild: s = !1, className: c, children: l, ...u }, d) {
|
|
7
|
-
return /* @__PURE__ */ i(s ? t : "a", {
|
|
8
|
-
"data-variant": r,
|
|
9
|
-
"data-size": a,
|
|
10
|
-
"data-external": o || void 0,
|
|
11
|
-
className: n(e.link, c),
|
|
12
|
-
...o ? {
|
|
13
|
-
target: "_blank",
|
|
14
|
-
rel: "noreferrer"
|
|
15
|
-
} : {},
|
|
16
|
-
ref: d,
|
|
17
|
-
...u,
|
|
18
|
-
children: l
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
//#endregion
|
|
22
|
-
export { a as Link };
|
|
1
|
+
import e from"./link.module.js";import{Slot as t,cn as n}from"@cascivo/core/pure";import{forwardRef as r}from"react";import{jsx as i}from"react/jsx-runtime";var a=r(function({variant:r=`standalone`,size:a=`md`,external:o=!1,asChild:s=!1,className:c,children:l,...u},d){return i(s?t:`a`,{"data-variant":r,"data-size":a,"data-external":o||void 0,className:n(e.link,c),...o?{target:`_blank`,rel:`noreferrer`}:{},ref:d,...u,children:l})});export{a as Link};
|
package/dist/link/link.module.js
CHANGED
package/dist/list/list.js
CHANGED
|
@@ -1,21 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import { cn as t } from "@cascivo/core/pure";
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
//#region ../components/src/list/list.tsx
|
|
5
|
-
function r({ as: r = "ul", marker: i, className: a, children: o, ...s }) {
|
|
6
|
-
return /* @__PURE__ */ n(r, {
|
|
7
|
-
"data-marker": i ?? (r === "ol" ? "decimal" : "disc"),
|
|
8
|
-
className: t(e.list, a),
|
|
9
|
-
...s,
|
|
10
|
-
children: o
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
function i({ className: r, children: i, ...a }) {
|
|
14
|
-
return /* @__PURE__ */ n("li", {
|
|
15
|
-
className: t(e.item, r),
|
|
16
|
-
...a,
|
|
17
|
-
children: i
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
//#endregion
|
|
21
|
-
export { r as List, i as ListItem };
|
|
1
|
+
import e from"./list.module.js";import{cn as t}from"@cascivo/core/pure";import{jsx as n}from"react/jsx-runtime";function r({as:r=`ul`,marker:i,className:a,children:o,...s}){return n(r,{"data-marker":i??(r===`ol`?`decimal`:`disc`),className:t(e.list,a),...s,children:o})}function i({className:r,children:i,...a}){return n(`li`,{className:t(e.item,r),...a,children:i})}export{r as List,i as ListItem};
|
package/dist/list/list.module.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer cascivo.component{.
|
|
1
|
+
@layer cascivo.component{._root_18p0l_2{border:1px solid var(--cascivo-color-border);border-radius:var(--cascivo-radius-surface);background-color:var(--cascivo-color-surface);flex-direction:column;display:flex;overflow:clip}._toolbar_18p0l_11{align-items:center;gap:var(--cascivo-space-2);padding-block:var(--cascivo-space-2);padding-inline:var(--cascivo-space-3);border-block-end:1px solid var(--cascivo-color-border);display:flex}._search_18p0l_20{min-inline-size:0;font:inherit;font-size:var(--cascivo-text-sm);color:var(--cascivo-color-text);background-color:var(--cascivo-color-surface-raised);border:1px solid var(--cascivo-color-border);border-radius:var(--cascivo-radius-field);padding-block:var(--cascivo-space-1);padding-inline:var(--cascivo-space-2);flex:0 16rem}._count_18p0l_33{font-size:var(--cascivo-text-sm);color:var(--cascivo-color-text-muted)}._spacer_18p0l_38{flex:auto}._toggle_18p0l_42,._copy_18p0l_43{font:inherit;font-size:var(--cascivo-text-sm);color:var(--cascivo-color-text);background-color:var(--cascivo-color-surface-raised);border:1px solid var(--cascivo-color-border);border-radius:var(--cascivo-radius-button);padding-block:var(--cascivo-space-1);padding-inline:var(--cascivo-space-3);cursor:pointer}:is(._toggle_18p0l_42,._copy_18p0l_43):hover{background-color:var(--cascivo-color-surface)}:is(._toggle_18p0l_42,._copy_18p0l_43):focus-visible{outline:2px solid var(--cascivo-color-accent);outline-offset:2px}._toggle_18p0l_42[aria-pressed=true]{color:var(--cascivo-color-accent-content,var(--cascivo-color-text-on-accent));background-color:var(--cascivo-color-accent);border-color:var(--cascivo-color-accent)}@media (pointer:coarse){._toggle_18p0l_42,._copy_18p0l_43,._search_18p0l_20{min-block-size:var(--cascivo-target-min-coarse,2.75rem)}}._scroll_18p0l_81{font-family:var(--cascivo-font-mono);font-size:var(--cascivo-text-sm);color:var(--cascivo-color-text);background-color:var(--cascivo-color-surface);line-height:1.45;position:relative;overflow:auto}._scroll_18p0l_81:focus-visible{outline:2px solid var(--cascivo-color-accent);outline-offset:-2px}._sizer_18p0l_96{inline-size:100%;position:relative}._line_18p0l_101{padding-inline:var(--cascivo-space-3);white-space:pre;align-items:center;display:flex;position:absolute;inset-inline:0}._line_18p0l_101[data-level=warn]{color:var(--cascivo-color-warning-foreground)}._line_18p0l_101[data-level=error]{color:var(--cascivo-color-destructive-foreground)}._line_18p0l_101[data-level=debug]{color:var(--cascivo-color-text-subtle)}._line_18p0l_101 mark{color:inherit;background-color:var(--cascivo-color-warning-subtle);border-radius:var(--cascivo-radius-indicator)}._ansi_18p0l_128[data-ansi=red]{color:var(--cascivo-color-error)}._ansi_18p0l_128[data-ansi=green]{color:var(--cascivo-color-success)}._ansi_18p0l_128[data-ansi=yellow]{color:var(--cascivo-color-warning)}._ansi_18p0l_128[data-ansi=blue],._ansi_18p0l_128[data-ansi=cyan]{color:var(--cascivo-color-info)}._ansi_18p0l_128[data-ansi=magenta]{color:var(--cascivo-color-accent-text)}._ansi_18p0l_128[data-ansi=black],._ansi_18p0l_128[data-ansi=bright-black]{color:var(--cascivo-color-text-muted)}._empty_18p0l_149{padding-block:var(--cascivo-space-6);padding-inline:var(--cascivo-space-3);text-align:center;color:var(--cascivo-color-text-muted)}}
|
|
@@ -1,184 +1,2 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import e from "./log-viewer.module.js";
|
|
4
|
-
import { Fragment as t } from "react";
|
|
5
|
-
import { VisuallyHidden as n, cn as r, useClipboard as i, useComputed as a, useControllableSignal as o, useResizeObserver as s, useSignal as c, useSignalEffect as l, useSignals as u } from "@cascivo/core";
|
|
6
|
-
import { builtin as d, t as f } from "@cascivo/i18n";
|
|
7
|
-
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
8
|
-
//#region ../components/src/log-viewer/log-viewer.tsx
|
|
9
|
-
var h = {
|
|
10
|
-
30: "black",
|
|
11
|
-
31: "red",
|
|
12
|
-
32: "green",
|
|
13
|
-
33: "yellow",
|
|
14
|
-
34: "blue",
|
|
15
|
-
35: "magenta",
|
|
16
|
-
36: "cyan",
|
|
17
|
-
37: "white",
|
|
18
|
-
90: "bright-black",
|
|
19
|
-
91: "red",
|
|
20
|
-
92: "green",
|
|
21
|
-
93: "yellow",
|
|
22
|
-
94: "blue",
|
|
23
|
-
95: "magenta",
|
|
24
|
-
96: "cyan",
|
|
25
|
-
97: "white"
|
|
26
|
-
};
|
|
27
|
-
function g(e) {
|
|
28
|
-
if (!e.includes("\x1B[")) return [{ text: e }];
|
|
29
|
-
try {
|
|
30
|
-
let t = [], n = /\[([0-9;]*)m/g, r = 0, i, a = !1, o;
|
|
31
|
-
for (; (o = n.exec(e)) !== null;) {
|
|
32
|
-
o.index > r && t.push({
|
|
33
|
-
text: e.slice(r, o.index),
|
|
34
|
-
color: i,
|
|
35
|
-
bold: a
|
|
36
|
-
});
|
|
37
|
-
for (let e of o[1].split(";")) {
|
|
38
|
-
let t = Number(e || "0");
|
|
39
|
-
t === 0 ? (i = void 0, a = !1) : t === 1 ? a = !0 : t === 22 ? a = !1 : h[t] && (i = h[t]);
|
|
40
|
-
}
|
|
41
|
-
r = n.lastIndex;
|
|
42
|
-
}
|
|
43
|
-
return r < e.length && t.push({
|
|
44
|
-
text: e.slice(r),
|
|
45
|
-
color: i,
|
|
46
|
-
bold: a
|
|
47
|
-
}), t.length > 0 ? t : [{ text: e }];
|
|
48
|
-
} catch {
|
|
49
|
-
return [{ text: e }];
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
function _(e, t, n) {
|
|
53
|
-
if (!t) return e;
|
|
54
|
-
let r = e.toLowerCase(), i = t.toLowerCase(), a = [], o = 0, s = r.indexOf(i, o), c = 0;
|
|
55
|
-
for (; s !== -1;) s > o && a.push(e.slice(o, s)), a.push(/* @__PURE__ */ p("mark", { children: e.slice(s, s + i.length) }, `${n}-${c++}`)), o = s + i.length, s = r.indexOf(i, o);
|
|
56
|
-
return o < e.length && a.push(e.slice(o)), a;
|
|
57
|
-
}
|
|
58
|
-
function v(t, n, r) {
|
|
59
|
-
return (n ? g(t.text) : [{ text: t.text }]).map((n, i) => /* @__PURE__ */ p("span", {
|
|
60
|
-
"data-ansi": n.color,
|
|
61
|
-
style: n.bold ? { fontWeight: 700 } : void 0,
|
|
62
|
-
className: n.color ? e.ansi : void 0,
|
|
63
|
-
children: _(n.text, r, `${String(t.id)}-${i}`)
|
|
64
|
-
}, i));
|
|
65
|
-
}
|
|
66
|
-
function y({ lines: h, rowHeight: g = 20, overscan: _ = 8, follow: y, onFollowChange: b, ansi: x = !1, search: S, maxHeight: C = "24rem", labels: w, className: T, ...E }) {
|
|
67
|
-
u();
|
|
68
|
-
let D = {
|
|
69
|
-
searchPlaceholder: w?.searchPlaceholder ?? f(d.logViewer.search),
|
|
70
|
-
follow: w?.follow ?? f(d.logViewer.follow),
|
|
71
|
-
paused: w?.paused ?? f(d.logViewer.paused),
|
|
72
|
-
copy: w?.copy ?? f(d.logViewer.copy),
|
|
73
|
-
copied: w?.copied ?? f(d.logViewer.copied),
|
|
74
|
-
empty: w?.empty ?? f(d.logViewer.empty),
|
|
75
|
-
label: f(d.logViewer.label)
|
|
76
|
-
}, O = c(Array.isArray(h) ? h : []);
|
|
77
|
-
Array.isArray(h) && (O.value = h);
|
|
78
|
-
let k = Array.isArray(h) ? O : h, { ref: A, size: j } = s(), M = c(0), [N, P] = o({
|
|
79
|
-
value: y,
|
|
80
|
-
defaultValue: !0,
|
|
81
|
-
onChange: b
|
|
82
|
-
}), F = c(S ?? ""), { copied: I, copy: L } = i(), R = a(() => {
|
|
83
|
-
let e = k.value, t = e.length, n = j.value?.height ?? 320, r = Math.max(0, t * g - n), i = N.value ? r : M.value, a = Math.floor(i / g), o = Math.ceil(n / g) + _ * 2, s = Math.max(0, a - _), c = Math.min(t, s + o);
|
|
84
|
-
return {
|
|
85
|
-
total: t,
|
|
86
|
-
start: s,
|
|
87
|
-
end: c,
|
|
88
|
-
rows: e.slice(s, c)
|
|
89
|
-
};
|
|
90
|
-
}), z = a(() => {
|
|
91
|
-
let e = F.value.trim().toLowerCase();
|
|
92
|
-
if (!e) return 0;
|
|
93
|
-
let t = 0;
|
|
94
|
-
for (let n of k.value) n.text.toLowerCase().includes(e) && t++;
|
|
95
|
-
return t;
|
|
96
|
-
});
|
|
97
|
-
l(() => {
|
|
98
|
-
if (k.value, !N.value) return;
|
|
99
|
-
let e = A.current;
|
|
100
|
-
e && (e.scrollTop = e.scrollHeight);
|
|
101
|
-
});
|
|
102
|
-
let B = (e) => {
|
|
103
|
-
let t = e.currentTarget;
|
|
104
|
-
M.value = t.scrollTop, P(t.scrollHeight - t.clientHeight - t.scrollTop <= g);
|
|
105
|
-
}, V = R.value, H = F.value.trim();
|
|
106
|
-
return /* @__PURE__ */ m("div", {
|
|
107
|
-
className: r(e.root, T),
|
|
108
|
-
...E,
|
|
109
|
-
children: [
|
|
110
|
-
/* @__PURE__ */ m("div", {
|
|
111
|
-
className: e.toolbar,
|
|
112
|
-
children: [
|
|
113
|
-
/* @__PURE__ */ p("input", {
|
|
114
|
-
type: "search",
|
|
115
|
-
className: e.search,
|
|
116
|
-
placeholder: D.searchPlaceholder,
|
|
117
|
-
"aria-label": D.searchPlaceholder,
|
|
118
|
-
value: F.value,
|
|
119
|
-
onInput: (e) => {
|
|
120
|
-
F.value = e.currentTarget.value;
|
|
121
|
-
}
|
|
122
|
-
}),
|
|
123
|
-
H ? /* @__PURE__ */ p("span", {
|
|
124
|
-
className: e.count,
|
|
125
|
-
"aria-live": "polite",
|
|
126
|
-
children: f(d.logViewer.matches, { count: z.value })
|
|
127
|
-
}) : null,
|
|
128
|
-
/* @__PURE__ */ p("span", { className: e.spacer }),
|
|
129
|
-
/* @__PURE__ */ p("button", {
|
|
130
|
-
type: "button",
|
|
131
|
-
className: e.toggle,
|
|
132
|
-
"aria-pressed": N.value,
|
|
133
|
-
onClick: () => {
|
|
134
|
-
let e = !N.value;
|
|
135
|
-
if (P(e), e) {
|
|
136
|
-
let e = A.current;
|
|
137
|
-
e && (e.scrollTop = e.scrollHeight);
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
children: N.value ? D.follow : D.paused
|
|
141
|
-
}),
|
|
142
|
-
/* @__PURE__ */ p("button", {
|
|
143
|
-
type: "button",
|
|
144
|
-
className: e.copy,
|
|
145
|
-
onClick: () => void L(k.value.map((e) => e.text).join("\n")),
|
|
146
|
-
children: I.value ? D.copied : D.copy
|
|
147
|
-
})
|
|
148
|
-
]
|
|
149
|
-
}),
|
|
150
|
-
/* @__PURE__ */ p("div", {
|
|
151
|
-
ref: A,
|
|
152
|
-
className: e.scroll,
|
|
153
|
-
role: "log",
|
|
154
|
-
"aria-live": "polite",
|
|
155
|
-
"aria-label": D.label,
|
|
156
|
-
tabIndex: 0,
|
|
157
|
-
style: { maxBlockSize: C },
|
|
158
|
-
onScroll: B,
|
|
159
|
-
children: V.total === 0 ? /* @__PURE__ */ p("div", {
|
|
160
|
-
className: e.empty,
|
|
161
|
-
children: D.empty
|
|
162
|
-
}) : /* @__PURE__ */ p("div", {
|
|
163
|
-
className: e.sizer,
|
|
164
|
-
style: { blockSize: V.total * g },
|
|
165
|
-
children: V.rows.map((n, r) => /* @__PURE__ */ p(t, { children: /* @__PURE__ */ p("div", {
|
|
166
|
-
className: e.line,
|
|
167
|
-
"data-level": n.level,
|
|
168
|
-
style: {
|
|
169
|
-
insetBlockStart: (V.start + r) * g,
|
|
170
|
-
blockSize: g
|
|
171
|
-
},
|
|
172
|
-
children: v(n, x, H)
|
|
173
|
-
}) }, n.id))
|
|
174
|
-
})
|
|
175
|
-
}),
|
|
176
|
-
/* @__PURE__ */ p(n, {
|
|
177
|
-
"aria-live": "polite",
|
|
178
|
-
children: f(d.logViewer.lines, { count: V.total })
|
|
179
|
-
})
|
|
180
|
-
]
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
//#endregion
|
|
184
|
-
export { y as LogViewer };
|
|
1
|
+
"use client";import e from"./log-viewer.module.js";import{Fragment as t}from"react";import{VisuallyHidden as n,cn as r,useClipboard as i,useComputed as a,useControllableSignal as o,useResizeObserver as s,useSignal as c,useSignalEffect as l,useSignals as u}from"@cascivo/core";import{builtin as d,t as f}from"@cascivo/i18n";import{jsx as p,jsxs as m}from"react/jsx-runtime";var h={30:`black`,31:`red`,32:`green`,33:`yellow`,34:`blue`,35:`magenta`,36:`cyan`,37:`white`,90:`bright-black`,91:`red`,92:`green`,93:`yellow`,94:`blue`,95:`magenta`,96:`cyan`,97:`white`};function g(e){if(!e.includes(`\x1B[`))return[{text:e}];try{let t=[],n=/\[([0-9;]*)m/g,r=0,i,a=!1,o;for(;(o=n.exec(e))!==null;){o.index>r&&t.push({text:e.slice(r,o.index),color:i,bold:a});for(let e of o[1].split(`;`)){let t=Number(e||`0`);t===0?(i=void 0,a=!1):t===1?a=!0:t===22?a=!1:h[t]&&(i=h[t])}r=n.lastIndex}return r<e.length&&t.push({text:e.slice(r),color:i,bold:a}),t.length>0?t:[{text:e}]}catch{return[{text:e}]}}function _(e,t,n){if(!t)return e;let r=e.toLowerCase(),i=t.toLowerCase(),a=[],o=0,s=r.indexOf(i,o),c=0;for(;s!==-1;)s>o&&a.push(e.slice(o,s)),a.push(p(`mark`,{children:e.slice(s,s+i.length)},`${n}-${c++}`)),o=s+i.length,s=r.indexOf(i,o);return o<e.length&&a.push(e.slice(o)),a}function v(t,n,r){return(n?g(t.text):[{text:t.text}]).map((n,i)=>p(`span`,{"data-ansi":n.color,style:n.bold?{fontWeight:700}:void 0,className:n.color?e.ansi:void 0,children:_(n.text,r,`${String(t.id)}-${i}`)},i))}function y({lines:h,rowHeight:g=20,overscan:_=8,follow:y,onFollowChange:b,ansi:x=!1,search:S,maxHeight:C=`24rem`,labels:w,className:T,...E}){u();let D={searchPlaceholder:w?.searchPlaceholder??f(d.logViewer.search),follow:w?.follow??f(d.logViewer.follow),paused:w?.paused??f(d.logViewer.paused),copy:w?.copy??f(d.logViewer.copy),copied:w?.copied??f(d.logViewer.copied),empty:w?.empty??f(d.logViewer.empty),label:f(d.logViewer.label)},O=c(Array.isArray(h)?h:[]);Array.isArray(h)&&(O.value=h);let k=Array.isArray(h)?O:h,{ref:A,size:j}=s(),M=c(0),[N,P]=o({value:y,defaultValue:!0,onChange:b}),F=c(S??``),{copied:I,copy:L}=i(),R=a(()=>{let e=k.value,t=e.length,n=j.value?.height??320,r=Math.max(0,t*g-n),i=N.value?r:M.value,a=Math.floor(i/g),o=Math.ceil(n/g)+_*2,s=Math.max(0,a-_),c=Math.min(t,s+o);return{total:t,start:s,end:c,rows:e.slice(s,c)}}),z=a(()=>{let e=F.value.trim().toLowerCase();if(!e)return 0;let t=0;for(let n of k.value)n.text.toLowerCase().includes(e)&&t++;return t});l(()=>{if(k.value,!N.value)return;let e=A.current;e&&(e.scrollTop=e.scrollHeight)});let B=e=>{let t=e.currentTarget;M.value=t.scrollTop,P(t.scrollHeight-t.clientHeight-t.scrollTop<=g)},V=R.value,H=F.value.trim();return m(`div`,{className:r(e.root,T),...E,children:[m(`div`,{className:e.toolbar,children:[p(`input`,{type:`search`,className:e.search,placeholder:D.searchPlaceholder,"aria-label":D.searchPlaceholder,value:F.value,onInput:e=>{F.value=e.currentTarget.value}}),H?p(`span`,{className:e.count,"aria-live":`polite`,children:f(d.logViewer.matches,{count:z.value})}):null,p(`span`,{className:e.spacer}),p(`button`,{type:`button`,className:e.toggle,"aria-pressed":N.value,onClick:()=>{let e=!N.value;if(P(e),e){let e=A.current;e&&(e.scrollTop=e.scrollHeight)}},children:N.value?D.follow:D.paused}),p(`button`,{type:`button`,className:e.copy,onClick:()=>void L(k.value.map(e=>e.text).join(`
|
|
2
|
+
`)),children:I.value?D.copied:D.copy})]}),p(`div`,{ref:A,className:e.scroll,role:`log`,"aria-live":`polite`,"aria-label":D.label,tabIndex:0,style:{maxBlockSize:C},onScroll:B,children:V.total===0?p(`div`,{className:e.empty,children:D.empty}):p(`div`,{className:e.sizer,style:{blockSize:V.total*g},children:V.rows.map((n,r)=>p(t,{children:p(`div`,{className:e.line,"data-level":n.level,style:{insetBlockStart:(V.start+r)*g,blockSize:g},children:v(n,x,H)})},n.id))})}),p(n,{"aria-live":`polite`,children:f(d.logViewer.lines,{count:V.total})})]})}export{y as LogViewer};
|
|
@@ -1,17 +1,2 @@
|
|
|
1
1
|
import './log-viewer.css';
|
|
2
|
-
var e
|
|
3
|
-
root: "_root_1mutf_2",
|
|
4
|
-
toolbar: "_toolbar_1mutf_11",
|
|
5
|
-
search: "_search_1mutf_20",
|
|
6
|
-
count: "_count_1mutf_33",
|
|
7
|
-
spacer: "_spacer_1mutf_38",
|
|
8
|
-
toggle: "_toggle_1mutf_42",
|
|
9
|
-
copy: "_copy_1mutf_43",
|
|
10
|
-
scroll: "_scroll_1mutf_81",
|
|
11
|
-
sizer: "_sizer_1mutf_96",
|
|
12
|
-
line: "_line_1mutf_101",
|
|
13
|
-
ansi: "_ansi_1mutf_128",
|
|
14
|
-
empty: "_empty_1mutf_149"
|
|
15
|
-
};
|
|
16
|
-
//#endregion
|
|
17
|
-
export { e as default };
|
|
2
|
+
var e={root:`_root_18p0l_2`,toolbar:`_toolbar_18p0l_11`,search:`_search_18p0l_20`,count:`_count_18p0l_33`,spacer:`_spacer_18p0l_38`,toggle:`_toggle_18p0l_42`,copy:`_copy_18p0l_43`,scroll:`_scroll_18p0l_81`,sizer:`_sizer_18p0l_96`,line:`_line_18p0l_101`,ansi:`_ansi_18p0l_128`,empty:`_empty_18p0l_149`};export{e as default};
|
package/dist/menu/menu.js
CHANGED
|
@@ -1,126 +1 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { usePopover as e } from "../popover/use-popover.js";
|
|
4
|
-
import t from "./menu.module.js";
|
|
5
|
-
import { Children as n, createContext as r, isValidElement as i } from "react";
|
|
6
|
-
import { useSignalEffect as a, useSignals as o, useTypeahead as s } from "@cascivo/core";
|
|
7
|
-
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
|
-
//#region ../components/src/menu/menu.tsx
|
|
9
|
-
var u = r(null);
|
|
10
|
-
function d({ ctx: e, children: n }) {
|
|
11
|
-
o();
|
|
12
|
-
let { popoverRef: r, anchorName: i, isOpen: l } = e, u = () => {
|
|
13
|
-
let e = r.current;
|
|
14
|
-
return e ? Array.from(e.querySelectorAll("[role=\"menuitem\"]:not([aria-disabled=\"true\"])")) : [];
|
|
15
|
-
}, d = (e) => {
|
|
16
|
-
let t = u();
|
|
17
|
-
t.length !== 0 && t[e(t, t.indexOf(document.activeElement))]?.focus();
|
|
18
|
-
}, f = s({ onMatch: (e) => {
|
|
19
|
-
u().find((t) => (t.textContent ?? "").trim().toLowerCase().startsWith(e))?.focus();
|
|
20
|
-
} });
|
|
21
|
-
return a(() => {
|
|
22
|
-
if (!l.value) return;
|
|
23
|
-
let e = r.current;
|
|
24
|
-
e && e.querySelector("[role=\"menuitem\"]:not([aria-disabled=\"true\"])")?.focus();
|
|
25
|
-
}), /* @__PURE__ */ c("div", {
|
|
26
|
-
ref: r,
|
|
27
|
-
popover: "auto",
|
|
28
|
-
role: "menu",
|
|
29
|
-
"data-state": l.value ? "open" : "closed",
|
|
30
|
-
style: { positionAnchor: i },
|
|
31
|
-
className: t.panel,
|
|
32
|
-
onKeyDown: (e) => {
|
|
33
|
-
switch (e.key) {
|
|
34
|
-
case "ArrowDown":
|
|
35
|
-
e.preventDefault(), d((e, t) => t < 0 ? 0 : (t + 1) % e.length);
|
|
36
|
-
break;
|
|
37
|
-
case "ArrowUp":
|
|
38
|
-
e.preventDefault(), d((e, t) => t < 0 ? e.length - 1 : (t - 1 + e.length) % e.length);
|
|
39
|
-
break;
|
|
40
|
-
case "Home":
|
|
41
|
-
e.preventDefault(), d(() => 0);
|
|
42
|
-
break;
|
|
43
|
-
case "End":
|
|
44
|
-
e.preventDefault(), d((e) => e.length - 1);
|
|
45
|
-
break;
|
|
46
|
-
default: f.onKeyDown(e);
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
children: n
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
function f({ children: e }) {
|
|
53
|
-
return /* @__PURE__ */ c(u.Consumer, { children: (t) => {
|
|
54
|
-
if (!t) throw Error("MenuPanel must be inside <Menu>");
|
|
55
|
-
return /* @__PURE__ */ c(d, {
|
|
56
|
-
ctx: t,
|
|
57
|
-
children: e
|
|
58
|
-
});
|
|
59
|
-
} });
|
|
60
|
-
}
|
|
61
|
-
function p() {
|
|
62
|
-
return globalThis.process?.env?.NODE_ENV !== "production";
|
|
63
|
-
}
|
|
64
|
-
function m({ children: t }) {
|
|
65
|
-
let r = e(), a = n.toArray(t), o = a.find((e) => i(e) && e.type === g), s = a.filter((e) => e !== o);
|
|
66
|
-
if (o === void 0 && p()) throw Error("<Menu> requires a <MenuTrigger> child. It is matched by component identity, so it may appear in any order — but it must be a direct child, not wrapped in a fragment or another component.");
|
|
67
|
-
return /* @__PURE__ */ l(u.Provider, {
|
|
68
|
-
value: r,
|
|
69
|
-
children: [o, /* @__PURE__ */ c(f, { children: s })]
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
function h({ ctx: e, children: n, ariaLabel: r, "aria-label": i }) {
|
|
73
|
-
o();
|
|
74
|
-
let { triggerRef: a, toggle: s, anchorName: l, isOpen: u } = e;
|
|
75
|
-
return /* @__PURE__ */ c("button", {
|
|
76
|
-
ref: a,
|
|
77
|
-
type: "button",
|
|
78
|
-
"aria-haspopup": "menu",
|
|
79
|
-
"aria-expanded": u.value,
|
|
80
|
-
"aria-label": r ?? i,
|
|
81
|
-
style: { anchorName: l },
|
|
82
|
-
onClick: s,
|
|
83
|
-
className: t.trigger,
|
|
84
|
-
children: n
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
function g({ children: e, ariaLabel: t, "aria-label": n }) {
|
|
88
|
-
let r = t ?? n;
|
|
89
|
-
return /* @__PURE__ */ c(u.Consumer, { children: (t) => {
|
|
90
|
-
if (!t) throw Error("MenuTrigger must be inside <Menu>");
|
|
91
|
-
return /* @__PURE__ */ c(h, {
|
|
92
|
-
ctx: t,
|
|
93
|
-
...r !== void 0 && { ariaLabel: r },
|
|
94
|
-
children: e
|
|
95
|
-
});
|
|
96
|
-
} });
|
|
97
|
-
}
|
|
98
|
-
function _({ children: e, onSelect: n, disabled: r }) {
|
|
99
|
-
return /* @__PURE__ */ c(u.Consumer, { children: (i) => {
|
|
100
|
-
if (!i) throw Error("MenuItem must be inside <Menu>");
|
|
101
|
-
let { close: a } = i;
|
|
102
|
-
function o() {
|
|
103
|
-
r || (n(), a());
|
|
104
|
-
}
|
|
105
|
-
function s(e) {
|
|
106
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), o());
|
|
107
|
-
}
|
|
108
|
-
return /* @__PURE__ */ c("div", {
|
|
109
|
-
role: "menuitem",
|
|
110
|
-
tabIndex: r ? -1 : 0,
|
|
111
|
-
"aria-disabled": r,
|
|
112
|
-
onClick: o,
|
|
113
|
-
onKeyDown: s,
|
|
114
|
-
className: t.item,
|
|
115
|
-
children: e
|
|
116
|
-
});
|
|
117
|
-
} });
|
|
118
|
-
}
|
|
119
|
-
function v() {
|
|
120
|
-
return /* @__PURE__ */ c("div", {
|
|
121
|
-
role: "separator",
|
|
122
|
-
className: t.separator
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
//#endregion
|
|
126
|
-
export { m as Menu, _ as MenuItem, v as MenuSeparator, g as MenuTrigger };
|
|
1
|
+
"use client";import{usePopover as e}from"../popover/use-popover.js";import t from"./menu.module.js";import{Children as n,createContext as r,isValidElement as i}from"react";import{useSignalEffect as a,useSignals as o,useTypeahead as s}from"@cascivo/core";import{jsx as c,jsxs as l}from"react/jsx-runtime";var u=r(null);function d({ctx:e,children:n}){o();let{popoverRef:r,anchorName:i,isOpen:l}=e,u=()=>{let e=r.current;return e?Array.from(e.querySelectorAll(`[role="menuitem"]:not([aria-disabled="true"])`)):[]},d=e=>{let t=u();t.length!==0&&t[e(t,t.indexOf(document.activeElement))]?.focus()},f=s({onMatch:e=>{u().find(t=>(t.textContent??``).trim().toLowerCase().startsWith(e))?.focus()}});return a(()=>{if(!l.value)return;let e=r.current;e&&e.querySelector(`[role="menuitem"]:not([aria-disabled="true"])`)?.focus()}),c(`div`,{ref:r,popover:`auto`,role:`menu`,"data-state":l.value?`open`:`closed`,style:{positionAnchor:i},className:t.panel,onKeyDown:e=>{switch(e.key){case`ArrowDown`:e.preventDefault(),d((e,t)=>t<0?0:(t+1)%e.length);break;case`ArrowUp`:e.preventDefault(),d((e,t)=>t<0?e.length-1:(t-1+e.length)%e.length);break;case`Home`:e.preventDefault(),d(()=>0);break;case`End`:e.preventDefault(),d(e=>e.length-1);break;default:f.onKeyDown(e)}},children:n})}function f({children:e}){return c(u.Consumer,{children:t=>{if(!t)throw Error(`MenuPanel must be inside <Menu>`);return c(d,{ctx:t,children:e})}})}function p(){return globalThis.process?.env?.NODE_ENV!==`production`}function m({children:t}){let r=e(),a=n.toArray(t),o=a.find(e=>i(e)&&e.type===g),s=a.filter(e=>e!==o);if(o===void 0&&p())throw Error(`<Menu> requires a <MenuTrigger> child. It is matched by component identity, so it may appear in any order — but it must be a direct child, not wrapped in a fragment or another component.`);return l(u.Provider,{value:r,children:[o,c(f,{children:s})]})}function h({ctx:e,children:n,ariaLabel:r,"aria-label":i}){o();let{triggerRef:a,toggle:s,anchorName:l,isOpen:u}=e;return c(`button`,{ref:a,type:`button`,"aria-haspopup":`menu`,"aria-expanded":u.value,"aria-label":r??i,style:{anchorName:l},onClick:s,className:t.trigger,children:n})}function g({children:e,ariaLabel:t,"aria-label":n}){let r=t??n;return c(u.Consumer,{children:t=>{if(!t)throw Error(`MenuTrigger must be inside <Menu>`);return c(h,{ctx:t,...r!==void 0&&{ariaLabel:r},children:e})}})}function _({children:e,onSelect:n,disabled:r}){return c(u.Consumer,{children:i=>{if(!i)throw Error(`MenuItem must be inside <Menu>`);let{close:a}=i;function o(){r||(n(),a())}function s(e){(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),o())}return c(`div`,{role:`menuitem`,tabIndex:r?-1:0,"aria-disabled":r,onClick:o,onKeyDown:s,className:t.item,children:e})}})}function v(){return c(`div`,{role:`separator`,className:t.separator})}export{m as Menu,_ as MenuItem,v as MenuSeparator,g as MenuTrigger};
|
package/dist/menu/menu.module.js
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
import './menu.css';
|
|
2
|
-
var e
|
|
3
|
-
trigger: "_trigger_11vpw_2",
|
|
4
|
-
panel: "_panel_11vpw_25",
|
|
5
|
-
item: "_item_11vpw_69",
|
|
6
|
-
separator: "_separator_11vpw_92"
|
|
7
|
-
};
|
|
8
|
-
//#endregion
|
|
9
|
-
export { e as default };
|
|
2
|
+
var e={trigger:`_trigger_11vpw_2`,panel:`_panel_11vpw_25`,item:`_item_11vpw_69`,separator:`_separator_11vpw_92`};export{e as default};
|