@cascivo/react 1.0.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 +5 -4
- 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 -39
- 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 -272
- 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 -170
- 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 -398
- 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 -224
- 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 -110
- package/dist/dropdown/dropdown.module.js +1 -9
- package/dist/editable/editable.js +1 -76
- 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 -53
- 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 -123
- 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 +772 -25
- 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 -56
- 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 -39
- 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 -272
- 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 -170
- 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 -398
- 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 -224
- 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 -110
- package/dist/node/dropdown/dropdown.module.js +1 -9
- package/dist/node/editable/editable.js +1 -76
- 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 -53
- package/dist/node/field/field.module.js +1 -7
- package/dist/node/file-uploader/file-uploader.js +1 -123
- 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 -56
- 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 -148
- 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 -49
- 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 -96
- 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 -73
- 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 -30
- 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 -68
- 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 -58
- 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 -64
- 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 -42
- 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 -148
- 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 -49
- 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 -96
- 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 -73
- 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 -30
- 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 -68
- 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 -58
- 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 -64
- 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 -42
- 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 +3 -3
- package/readme.body.md +3 -2
|
@@ -1,16 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
//#region ../components/src/indicator/indicator.tsx
|
|
4
|
-
function r({ children: r, overlay: i, placement: a = "top-end", className: o }) {
|
|
5
|
-
return /* @__PURE__ */ n("div", {
|
|
6
|
-
className: [e.indicator, o].filter(Boolean).join(" "),
|
|
7
|
-
"data-placement": a,
|
|
8
|
-
children: [r, /* @__PURE__ */ t("div", {
|
|
9
|
-
className: e.overlay,
|
|
10
|
-
"aria-hidden": !0,
|
|
11
|
-
children: i
|
|
12
|
-
})]
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { r as Indicator };
|
|
1
|
+
import e from"./indicator.module.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";function r({children:r,overlay:i,placement:a=`top-end`,className:o}){return n(`div`,{className:[e.indicator,o].filter(Boolean).join(` `),"data-placement":a,children:[r,t(`div`,{className:e.overlay,"aria-hidden":!0,children:i})]})}export{r as Indicator};
|
|
@@ -1,49 +1 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { Spinner as e } from "../spinner/spinner.js";
|
|
4
|
-
import t from "./infinite-scroll.module.js";
|
|
5
|
-
import { useRef as n } from "react";
|
|
6
|
-
import { cn as r, useSignal as i, useSignalEffect as a, useSignals as o } from "@cascivo/core";
|
|
7
|
-
import { builtin as s, t as c } from "@cascivo/i18n";
|
|
8
|
-
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
|
-
//#region ../components/src/infinite-scroll/infinite-scroll.tsx
|
|
10
|
-
function d({ onLoadMore: d, disabled: f = !1, rootMargin: p = "200px", labels: m, className: h }) {
|
|
11
|
-
o();
|
|
12
|
-
let g = n(null), _ = i(!1), v = n(d);
|
|
13
|
-
v.current = d;
|
|
14
|
-
let y = n(f);
|
|
15
|
-
y.current = f;
|
|
16
|
-
let b = () => {
|
|
17
|
-
_.value || y.current || (_.value = !0, Promise.resolve(v.current()).then(() => {
|
|
18
|
-
_.value = !1;
|
|
19
|
-
}, () => {
|
|
20
|
-
_.value = !1;
|
|
21
|
-
}));
|
|
22
|
-
}, x = n(b);
|
|
23
|
-
return x.current = b, a(() => {
|
|
24
|
-
let e = g.current;
|
|
25
|
-
if (!e || f || typeof IntersectionObserver > "u") return;
|
|
26
|
-
let t = new IntersectionObserver((e) => {
|
|
27
|
-
e.some((e) => e.isIntersecting) && x.current();
|
|
28
|
-
}, { rootMargin: p });
|
|
29
|
-
return t.observe(e), () => t.disconnect();
|
|
30
|
-
}), f ? null : /* @__PURE__ */ l("div", {
|
|
31
|
-
ref: g,
|
|
32
|
-
className: r(t.root, h),
|
|
33
|
-
children: _.value ? /* @__PURE__ */ u("span", {
|
|
34
|
-
className: t.status,
|
|
35
|
-
role: "status",
|
|
36
|
-
children: [/* @__PURE__ */ l(e, {
|
|
37
|
-
size: "sm",
|
|
38
|
-
"aria-hidden": "true"
|
|
39
|
-
}), m?.loading ?? c(s.infiniteScroll.loading)]
|
|
40
|
-
}) : /* @__PURE__ */ l("button", {
|
|
41
|
-
type: "button",
|
|
42
|
-
className: t.button,
|
|
43
|
-
onClick: b,
|
|
44
|
-
children: m?.loadMore ?? c(s.infiniteScroll.loadMore)
|
|
45
|
-
})
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
//#endregion
|
|
49
|
-
export { d as InfiniteScroll };
|
|
1
|
+
"use client";import{Spinner as e}from"../spinner/spinner.js";import t from"./infinite-scroll.module.js";import{useRef as n}from"react";import{cn as r,useSignal as i,useSignalEffect as a,useSignals as o}from"@cascivo/core";import{builtin as s,t as c}from"@cascivo/i18n";import{jsx as l,jsxs as u}from"react/jsx-runtime";function d({onLoadMore:d,disabled:f=!1,rootMargin:p=`200px`,labels:m,className:h}){o();let g=n(null),_=i(!1),v=n(d);v.current=d;let y=n(f);y.current=f;let b=()=>{_.value||y.current||(_.value=!0,Promise.resolve(v.current()).then(()=>{_.value=!1},()=>{_.value=!1}))},x=n(b);return x.current=b,a(()=>{let e=g.current;if(!e||f||typeof IntersectionObserver>`u`)return;let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&x.current()},{rootMargin:p});return t.observe(e),()=>t.disconnect()}),f?null:l(`div`,{ref:g,className:r(t.root,h),children:_.value?u(`span`,{className:t.status,role:`status`,children:[l(e,{size:`sm`,"aria-hidden":`true`}),m?.loading??c(s.infiniteScroll.loading)]}):l(`button`,{type:`button`,className:t.button,onClick:b,children:m?.loadMore??c(s.infiniteScroll.loadMore)})})}export{d as InfiniteScroll};
|
|
@@ -1,8 +1,2 @@
|
|
|
1
1
|
import './infinite-scroll.css';
|
|
2
|
-
var e
|
|
3
|
-
root: "_root_50go8_2",
|
|
4
|
-
status: "_status_50go8_9",
|
|
5
|
-
button: "_button_50go8_17"
|
|
6
|
-
};
|
|
7
|
-
//#endregion
|
|
8
|
-
export { e as default };
|
|
2
|
+
var e={root:`_root_50go8_2`,status:`_status_50go8_9`,button:`_button_50go8_17`};export{e as default};
|
|
@@ -1,74 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "./inline-loading.module.js";
|
|
3
|
-
import { cn as n } from "@cascivo/core/pure";
|
|
4
|
-
import { builtin as r, t as i } from "@cascivo/i18n";
|
|
5
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
-
//#region ../components/src/inline-loading/inline-loading.tsx
|
|
7
|
-
function s(e, t) {
|
|
8
|
-
switch (e) {
|
|
9
|
-
case "active": return t?.active ?? i(r.inlineLoading.active);
|
|
10
|
-
case "finished": return t?.finished ?? i(r.inlineLoading.finished);
|
|
11
|
-
case "error": return t?.error ?? i(r.inlineLoading.error);
|
|
12
|
-
default: return "";
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
function c({ status: n }) {
|
|
16
|
-
return n === "active" ? /* @__PURE__ */ a(e, {
|
|
17
|
-
size: "sm",
|
|
18
|
-
className: t.spinner
|
|
19
|
-
}) : n === "finished" ? /* @__PURE__ */ a("svg", {
|
|
20
|
-
className: t.icon,
|
|
21
|
-
viewBox: "0 0 16 16",
|
|
22
|
-
width: "16",
|
|
23
|
-
height: "16",
|
|
24
|
-
fill: "none",
|
|
25
|
-
"aria-hidden": "true",
|
|
26
|
-
children: /* @__PURE__ */ a("path", {
|
|
27
|
-
d: "M3.5 8.5l3 3 6-7",
|
|
28
|
-
stroke: "currentColor",
|
|
29
|
-
strokeWidth: "1.75",
|
|
30
|
-
strokeLinecap: "round",
|
|
31
|
-
strokeLinejoin: "round"
|
|
32
|
-
})
|
|
33
|
-
}) : n === "error" ? /* @__PURE__ */ o("svg", {
|
|
34
|
-
className: t.icon,
|
|
35
|
-
viewBox: "0 0 16 16",
|
|
36
|
-
width: "16",
|
|
37
|
-
height: "16",
|
|
38
|
-
fill: "none",
|
|
39
|
-
"aria-hidden": "true",
|
|
40
|
-
children: [/* @__PURE__ */ a("path", {
|
|
41
|
-
d: "M8 4.5v4M8 11h.01",
|
|
42
|
-
stroke: "currentColor",
|
|
43
|
-
strokeWidth: "1.75",
|
|
44
|
-
strokeLinecap: "round",
|
|
45
|
-
strokeLinejoin: "round"
|
|
46
|
-
}), /* @__PURE__ */ a("circle", {
|
|
47
|
-
cx: "8",
|
|
48
|
-
cy: "8",
|
|
49
|
-
r: "6.25",
|
|
50
|
-
stroke: "currentColor",
|
|
51
|
-
strokeWidth: "1.5"
|
|
52
|
-
})]
|
|
53
|
-
}) : null;
|
|
54
|
-
}
|
|
55
|
-
function l({ status: e, label: r, labels: i, className: l, ...u }) {
|
|
56
|
-
let d = r ?? s(e, i);
|
|
57
|
-
return /* @__PURE__ */ o("div", {
|
|
58
|
-
role: "status",
|
|
59
|
-
"aria-live": "polite",
|
|
60
|
-
"data-status": e,
|
|
61
|
-
className: n(t["inline-loading"], l),
|
|
62
|
-
...u,
|
|
63
|
-
children: [/* @__PURE__ */ a("span", {
|
|
64
|
-
className: t.indicator,
|
|
65
|
-
"aria-hidden": "true",
|
|
66
|
-
children: /* @__PURE__ */ a(c, { status: e })
|
|
67
|
-
}), d && /* @__PURE__ */ a("span", {
|
|
68
|
-
className: t.label,
|
|
69
|
-
children: d
|
|
70
|
-
})]
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
//#endregion
|
|
74
|
-
export { l as InlineLoading };
|
|
1
|
+
import{Spinner as e}from"../spinner/spinner.js";import t from"./inline-loading.module.js";import{cn as n}from"@cascivo/core/pure";import{builtin as r,t as i}from"@cascivo/i18n";import{jsx as a,jsxs as o}from"react/jsx-runtime";function s(e,t){switch(e){case`active`:return t?.active??i(r.inlineLoading.active);case`finished`:return t?.finished??i(r.inlineLoading.finished);case`error`:return t?.error??i(r.inlineLoading.error);default:return``}}function c({status:n}){return n===`active`?a(e,{size:`sm`,className:t.spinner}):n===`finished`?a(`svg`,{className:t.icon,viewBox:`0 0 16 16`,width:`16`,height:`16`,fill:`none`,"aria-hidden":`true`,children:a(`path`,{d:`M3.5 8.5l3 3 6-7`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`})}):n===`error`?o(`svg`,{className:t.icon,viewBox:`0 0 16 16`,width:`16`,height:`16`,fill:`none`,"aria-hidden":`true`,children:[a(`path`,{d:`M8 4.5v4M8 11h.01`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`}),a(`circle`,{cx:`8`,cy:`8`,r:`6.25`,stroke:`currentColor`,strokeWidth:`1.5`})]}):null}function l({status:e,label:r,labels:i,className:l,...u}){let d=r??s(e,i);return o(`div`,{role:`status`,"aria-live":`polite`,"data-status":e,className:n(t[`inline-loading`],l),...u,children:[a(`span`,{className:t.indicator,"aria-hidden":`true`,children:a(c,{status:e})}),d&&a(`span`,{className:t.label,children:d})]})}export{l as InlineLoading};
|
|
@@ -1,10 +1,2 @@
|
|
|
1
1
|
import './inline-loading.css';
|
|
2
|
-
var e
|
|
3
|
-
"inline-loading": "_inline-loading_h27o5_2",
|
|
4
|
-
indicator: "_indicator_h27o5_20",
|
|
5
|
-
spinner: "_spinner_h27o5_29",
|
|
6
|
-
icon: "_icon_h27o5_33",
|
|
7
|
-
label: "_label_h27o5_46"
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
10
|
-
export { e as default };
|
|
2
|
+
var e={"inline-loading":`_inline-loading_h27o5_2`,indicator:`_indicator_h27o5_20`,spinner:`_spinner_h27o5_29`,icon:`_icon_h27o5_33`,label:`_label_h27o5_46`};export{e as default};
|
package/dist/input/input.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer cascivo.component{.
|
|
1
|
+
@layer cascivo.component{._wrapper_xtv65_2{gap:var(--cascivo-space-1);flex-direction:column;min-inline-size:0;display:flex}._wrapper_xtv65_2[data-size=sm]{--_input-height:var(--cascivo-control-height-sm);--_input-font:var(--cascivo-text-sm);--_input-px:var(--cascivo-space-3)}._wrapper_xtv65_2[data-size=md]{--_input-height:var(--cascivo-control-height-md);--_input-font:var(--cascivo-text-sm);--_input-px:var(--cascivo-space-4)}._wrapper_xtv65_2[data-size=lg]{--_input-height:var(--cascivo-control-height-lg);--_input-font:var(--cascivo-text-base);--_input-px:var(--cascivo-space-4)}._label_xtv65_30{font-family:var(--cascivo-font-sans);font-size:var(--cascivo-text-sm);font-weight:var(--cascivo-font-medium);color:var(--cascivo-color-text);line-height:var(--cascivo-leading-snug)}._input_xtv65_38{width:100%;height:var(--_input-height,2.5rem);padding-inline:var(--_input-px,var(--cascivo-space-4));font-family:var(--cascivo-font-sans);font-size:var(--_input-font,var(--cascivo-text-sm));color:var(--cascivo-color-text);background-color:var(--cascivo-color-surface);border:1px solid var(--cascivo-color-border);border-radius:var(--cascivo-radius-field);transition:border-color var(--cascivo-duration-150) var(--cascivo-ease-out), box-shadow var(--cascivo-duration-150) var(--cascivo-ease-out);outline:none}._input_xtv65_38::placeholder{color:var(--cascivo-color-text-muted)}._input_xtv65_38:hover:not(:disabled):not(:focus){border-color:var(--cascivo-color-border-strong)}._input_xtv65_38:focus{border-color:var(--cascivo-color-accent);box-shadow:var(--cascivo-focus-ring)}._input_xtv65_38:disabled{opacity:.5;cursor:not-allowed;background-color:var(--cascivo-color-bg-subtle)}._wrapper_xtv65_2[data-state=error] ._input_xtv65_38{border-color:var(--cascivo-color-destructive);animation:cascivo-shake var(--cascivo-motion-attention) 1}._wrapper_xtv65_2[data-state=error] ._input_xtv65_38:focus{box-shadow:0 0 0 3px rgb(from var(--cascivo-color-destructive) r g b / .3)}._error_xtv65_88{font-family:var(--cascivo-font-sans);font-size:var(--cascivo-text-sm);color:var(--cascivo-color-destructive);line-height:var(--cascivo-leading-snug)}._hint_xtv65_95{font-family:var(--cascivo-font-sans);font-size:var(--cascivo-text-sm);color:var(--cascivo-color-text-subtle);line-height:var(--cascivo-leading-snug)}@media (pointer:coarse){._wrapper_xtv65_2[data-size=sm] ._input_xtv65_38,._wrapper_xtv65_2[data-size=md] ._input_xtv65_38{min-block-size:var(--cascivo-target-min-coarse,2.75rem)}}}@media (forced-colors:active){._input_xtv65_38{color:fieldtext;background-color:field;border:1px solid fieldtext}._input_xtv65_38:focus{outline-offset:2px;outline:2px solid highlight}}
|
package/dist/input/input.js
CHANGED
|
@@ -1,56 +1 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import e from "./input.module.js";
|
|
4
|
-
import { forwardRef as t } from "react";
|
|
5
|
-
import { cn as n, createMachine as r, useMachine as i } from "@cascivo/core";
|
|
6
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
-
//#region ../components/src/input/input.tsx
|
|
8
|
-
var s = r({
|
|
9
|
-
initial: "idle",
|
|
10
|
-
states: {
|
|
11
|
-
idle: { on: { FOCUS: "focused" } },
|
|
12
|
-
focused: { on: { BLUR: "idle" } }
|
|
13
|
-
}
|
|
14
|
-
}), c = t(function({ label: t, hint: r, error: c, size: l = "md", ariaLabel: u, className: d, id: f, onFocus: p, onBlur: m, ...h }, g) {
|
|
15
|
-
let [_, v] = i(s), y = f ?? (t ? `cascade-input-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0);
|
|
16
|
-
return /* @__PURE__ */ o("div", {
|
|
17
|
-
className: n(e.wrapper, d),
|
|
18
|
-
"data-state": c ? "error" : _.value,
|
|
19
|
-
"data-size": l,
|
|
20
|
-
children: [
|
|
21
|
-
t && /* @__PURE__ */ a("label", {
|
|
22
|
-
className: e.label,
|
|
23
|
-
htmlFor: y,
|
|
24
|
-
children: t
|
|
25
|
-
}),
|
|
26
|
-
/* @__PURE__ */ a("input", {
|
|
27
|
-
ref: g,
|
|
28
|
-
id: y,
|
|
29
|
-
className: e.input,
|
|
30
|
-
"aria-invalid": c ? !0 : void 0,
|
|
31
|
-
"aria-describedby": c ? `${y}-error` : r ? `${y}-hint` : void 0,
|
|
32
|
-
onFocus: (e) => {
|
|
33
|
-
v("FOCUS"), p?.(e);
|
|
34
|
-
},
|
|
35
|
-
onBlur: (e) => {
|
|
36
|
-
v("BLUR"), m?.(e);
|
|
37
|
-
},
|
|
38
|
-
...h,
|
|
39
|
-
"aria-label": h["aria-label"] ?? u
|
|
40
|
-
}),
|
|
41
|
-
c && /* @__PURE__ */ a("span", {
|
|
42
|
-
id: `${y}-error`,
|
|
43
|
-
className: e.error,
|
|
44
|
-
role: "alert",
|
|
45
|
-
children: c
|
|
46
|
-
}),
|
|
47
|
-
!c && r && /* @__PURE__ */ a("span", {
|
|
48
|
-
id: `${y}-hint`,
|
|
49
|
-
className: e.hint,
|
|
50
|
-
children: r
|
|
51
|
-
})
|
|
52
|
-
]
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
//#endregion
|
|
56
|
-
export { c as Input };
|
|
1
|
+
"use client";import e from"./input.module.js";import{forwardRef as t}from"react";import{cn as n,createMachine as r,useMachine as i}from"@cascivo/core";import{jsx as a,jsxs as o}from"react/jsx-runtime";var s=r({initial:`idle`,states:{idle:{on:{FOCUS:`focused`}},focused:{on:{BLUR:`idle`}}}}),c=t(function({label:t,hint:r,error:c,size:l=`md`,ariaLabel:u,className:d,id:f,onFocus:p,onBlur:m,...h},g){let[_,v]=i(s),y=f??(t?`cascade-input-${t.toLowerCase().replace(/\s+/g,`-`)}`:void 0);return o(`div`,{className:n(e.wrapper,d),"data-state":c?`error`:_.value,"data-size":l,children:[t&&a(`label`,{className:e.label,htmlFor:y,children:t}),a(`input`,{ref:g,id:y,className:e.input,"aria-invalid":c?!0:void 0,"aria-describedby":c?`${y}-error`:r?`${y}-hint`:void 0,onFocus:e=>{v(`FOCUS`),p?.(e)},onBlur:e=>{v(`BLUR`),m?.(e)},...h,"aria-label":h[`aria-label`]??u}),c&&a(`span`,{id:`${y}-error`,className:e.error,role:`alert`,children:c}),!c&&r&&a(`span`,{id:`${y}-hint`,className:e.hint,children:r})]})});export{c as Input};
|
|
@@ -1,10 +1,2 @@
|
|
|
1
1
|
import './input.css';
|
|
2
|
-
var e
|
|
3
|
-
wrapper: "_wrapper_swdj6_2",
|
|
4
|
-
label: "_label_swdj6_30",
|
|
5
|
-
input: "_input_swdj6_38",
|
|
6
|
-
error: "_error_swdj6_81",
|
|
7
|
-
hint: "_hint_swdj6_88"
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
10
|
-
export { e as default };
|
|
2
|
+
var e={wrapper:`_wrapper_xtv65_2`,label:`_label_xtv65_30`,input:`_input_xtv65_38`,error:`_error_xtv65_88`,hint:`_hint_xtv65_95`};export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer cascivo.component{._input-
|
|
1
|
+
@layer cascivo.component{._input-group_1rdg5_2{align-items:stretch;width:100%;display:flex}._input-group_1rdg5_2[data-has-prefix] ._input-wrap_1rdg5_8>*{border-start-start-radius:0;border-end-start-radius:0}._input-group_1rdg5_2[data-has-suffix] ._input-wrap_1rdg5_8>*{border-start-end-radius:0;border-end-end-radius:0}._input-group_1rdg5_2[data-has-prefix] ._addon_1rdg5_18[data-position=prefix]{border-inline-end:none;border-start-end-radius:0;border-end-end-radius:0}._input-group_1rdg5_2[data-has-suffix] ._addon_1rdg5_18[data-position=suffix]{border-inline-start:none;border-start-start-radius:0;border-end-start-radius:0}._input-wrap_1rdg5_8{flex:1;min-width:0}._input-wrap_1rdg5_8>*{width:100%}._addon_1rdg5_18{padding-inline:var(--cascivo-space-3);font-family:var(--cascivo-font-sans);font-size:var(--cascivo-text-sm);color:var(--cascivo-color-text-subtle);background-color:var(--cascivo-color-bg-subtle);border:1px solid var(--cascivo-color-border);border-radius:var(--cascivo-radius-field);white-space:nowrap;flex-shrink:0;align-items:center;display:inline-flex}._input-group_1rdg5_2:has(._inline-addon_1rdg5_55){border:1px solid var(--cascivo-color-border);border-radius:var(--cascivo-radius-field,var(--cascivo-radius-control));background:var(--cascivo-color-bg);transition:border-color var(--cascivo-duration-100) ease, box-shadow var(--cascivo-duration-100) ease;align-items:center;display:flex}._input-group_1rdg5_2:has(._inline-addon_1rdg5_55):focus-within{border-color:var(--cascivo-color-accent);box-shadow:var(--cascivo-focus-ring)}._input-group_1rdg5_2:has(._inline-addon_1rdg5_55) ._input-wrap_1rdg5_8 input{box-shadow:none;background:0 0;border:none;outline:none}._inline-addon_1rdg5_55{color:var(--cascivo-color-text-subtle);pointer-events:none;align-items:center;display:inline-flex}._inline-addon_1rdg5_55[data-align=inline-start]{order:-1;padding-inline-start:var(--cascivo-space-3)}._inline-addon_1rdg5_55[data-align=inline-end]{order:1;padding-inline-end:var(--cascivo-space-3)}._inline-addon_1rdg5_55 svg{block-size:1rem;inline-size:1rem}._button-group_1rdg5_101{align-items:stretch;display:inline-flex}._button-group_1rdg5_101>:not(:first-child){border-start-start-radius:0;border-end-start-radius:0;margin-inline-start:-1px}._button-group_1rdg5_101>:not(:last-child){border-start-end-radius:0;border-end-end-radius:0}._button-group_1rdg5_101>:focus-visible{z-index:1;position:relative}}
|
|
@@ -1,39 +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 ../components/src/input-group/input-group.tsx
|
|
5
|
-
function i({ align: r = "inline-start", children: i, className: a, ...o }) {
|
|
6
|
-
return /* @__PURE__ */ n("span", {
|
|
7
|
-
className: t(e["inline-addon"], a),
|
|
8
|
-
"data-align": r,
|
|
9
|
-
"aria-hidden": "true",
|
|
10
|
-
...o,
|
|
11
|
-
children: i
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
function a({ prefix: i, suffix: a, children: o, className: s, ...c }) {
|
|
15
|
-
return /* @__PURE__ */ r("div", {
|
|
16
|
-
className: t(e["input-group"], s),
|
|
17
|
-
"data-has-prefix": i ? "" : void 0,
|
|
18
|
-
"data-has-suffix": a ? "" : void 0,
|
|
19
|
-
...c,
|
|
20
|
-
children: [
|
|
21
|
-
i && /* @__PURE__ */ n("span", {
|
|
22
|
-
className: e.addon,
|
|
23
|
-
"data-position": "prefix",
|
|
24
|
-
children: i
|
|
25
|
-
}),
|
|
26
|
-
/* @__PURE__ */ n("span", {
|
|
27
|
-
className: e["input-wrap"],
|
|
28
|
-
children: o
|
|
29
|
-
}),
|
|
30
|
-
a && /* @__PURE__ */ n("span", {
|
|
31
|
-
className: e.addon,
|
|
32
|
-
"data-position": "suffix",
|
|
33
|
-
children: a
|
|
34
|
-
})
|
|
35
|
-
]
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
//#endregion
|
|
39
|
-
export { a as InputGroup, i as InputGroupAddon };
|
|
1
|
+
import e from"./input-group.module.js";import{cn as t}from"@cascivo/core/pure";import{jsx as n,jsxs as r}from"react/jsx-runtime";function i({align:r=`inline-start`,children:i,className:a,...o}){return n(`span`,{className:t(e[`inline-addon`],a),"data-align":r,"aria-hidden":`true`,...o,children:i})}function a({prefix:i,suffix:a,children:o,className:s,...c}){return r(`div`,{className:t(e[`input-group`],s),"data-has-prefix":i?``:void 0,"data-has-suffix":a?``:void 0,...c,children:[i&&n(`span`,{className:e.addon,"data-position":`prefix`,children:i}),n(`span`,{className:e[`input-wrap`],children:o}),a&&n(`span`,{className:e.addon,"data-position":`suffix`,children:a})]})}export{a as InputGroup,i as InputGroupAddon};
|
|
@@ -1,10 +1,2 @@
|
|
|
1
1
|
import './input-group.css';
|
|
2
|
-
var e
|
|
3
|
-
"input-group": "_input-group_n9tv2_2",
|
|
4
|
-
"input-wrap": "_input-wrap_n9tv2_8",
|
|
5
|
-
addon: "_addon_n9tv2_18",
|
|
6
|
-
"inline-addon": "_inline-addon_n9tv2_55",
|
|
7
|
-
"button-group": "_button-group_n9tv2_101"
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
10
|
-
export { e as default };
|
|
2
|
+
var e={"input-group":`_input-group_1rdg5_2`,"input-wrap":`_input-wrap_1rdg5_8`,addon:`_addon_1rdg5_18`,"inline-addon":`_inline-addon_1rdg5_55`,"button-group":`_button-group_1rdg5_101`};export{e as default};
|
package/dist/item/item.js
CHANGED
|
@@ -1,50 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import { Slot as t, cn as n } from "@cascivo/core/pure";
|
|
3
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
-
//#region ../components/src/item/item.tsx
|
|
5
|
-
function i({ asChild: i = !1, variant: a = "default", size: o = "md", className: s, children: c, ...l }) {
|
|
6
|
-
return /* @__PURE__ */ r(i ? t : "div", {
|
|
7
|
-
"data-variant": a,
|
|
8
|
-
"data-size": o,
|
|
9
|
-
className: n(e.item, s),
|
|
10
|
-
...l,
|
|
11
|
-
children: c
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
function a({ className: t, children: i, ...a }) {
|
|
15
|
-
return /* @__PURE__ */ r("div", {
|
|
16
|
-
className: n(e.media, t),
|
|
17
|
-
...a,
|
|
18
|
-
children: i
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
function o({ className: t, children: i, ...a }) {
|
|
22
|
-
return /* @__PURE__ */ r("div", {
|
|
23
|
-
className: n(e.content, t),
|
|
24
|
-
...a,
|
|
25
|
-
children: i
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
function s({ className: t, children: i, ...a }) {
|
|
29
|
-
return /* @__PURE__ */ r("div", {
|
|
30
|
-
className: n(e.title, t),
|
|
31
|
-
...a,
|
|
32
|
-
children: i
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
function c({ className: t, children: i, ...a }) {
|
|
36
|
-
return /* @__PURE__ */ r("p", {
|
|
37
|
-
className: n(e.description, t),
|
|
38
|
-
...a,
|
|
39
|
-
children: i
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
function l({ className: t, children: i, ...a }) {
|
|
43
|
-
return /* @__PURE__ */ r("div", {
|
|
44
|
-
className: n(e.actions, t),
|
|
45
|
-
...a,
|
|
46
|
-
children: i
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
//#endregion
|
|
50
|
-
export { i as Item, l as ItemActions, o as ItemContent, c as ItemDescription, a as ItemMedia, s as ItemTitle };
|
|
1
|
+
import e from"./item.module.js";import{Slot as t,cn as n}from"@cascivo/core/pure";import{jsx as r}from"react/jsx-runtime";function i({asChild:i=!1,variant:a=`default`,size:o=`md`,className:s,children:c,...l}){return r(i?t:`div`,{"data-variant":a,"data-size":o,className:n(e.item,s),...l,children:c})}function a({className:t,children:i,...a}){return r(`div`,{className:n(e.media,t),...a,children:i})}function o({className:t,children:i,...a}){return r(`div`,{className:n(e.content,t),...a,children:i})}function s({className:t,children:i,...a}){return r(`div`,{className:n(e.title,t),...a,children:i})}function c({className:t,children:i,...a}){return r(`p`,{className:n(e.description,t),...a,children:i})}function l({className:t,children:i,...a}){return r(`div`,{className:n(e.actions,t),...a,children:i})}export{i as Item,l as ItemActions,o as ItemContent,c as ItemDescription,a as ItemMedia,s as ItemTitle};
|
package/dist/item/item.module.js
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
1
|
import './item.css';
|
|
2
|
-
var e
|
|
3
|
-
item: "_item_e9n8e_2",
|
|
4
|
-
media: "_media_e9n8e_32",
|
|
5
|
-
content: "_content_e9n8e_40",
|
|
6
|
-
title: "_title_e9n8e_47",
|
|
7
|
-
description: "_description_e9n8e_53",
|
|
8
|
-
actions: "_actions_e9n8e_60"
|
|
9
|
-
};
|
|
10
|
-
//#endregion
|
|
11
|
-
export { e as default };
|
|
2
|
+
var e={item:`_item_e9n8e_2`,media:`_media_e9n8e_32`,content:`_content_e9n8e_40`,title:`_title_e9n8e_47`,description:`_description_e9n8e_53`,actions:`_actions_e9n8e_60`};export{e as default};
|
package/dist/join/join.js
CHANGED
|
@@ -1,12 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
//#region ../components/src/join/join.tsx
|
|
4
|
-
function n({ children: n, orientation: r = "horizontal", className: i }) {
|
|
5
|
-
return /* @__PURE__ */ t("div", {
|
|
6
|
-
className: [e.join, i].filter(Boolean).join(" "),
|
|
7
|
-
"data-orientation": r,
|
|
8
|
-
children: n
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
12
|
-
export { n as Join };
|
|
1
|
+
import e from"./join.module.js";import{jsx as t}from"react/jsx-runtime";function n({children:n,orientation:r=`horizontal`,className:i}){return t(`div`,{className:[e.join,i].filter(Boolean).join(` `),"data-orientation":r,children:n})}export{n as Join};
|
package/dist/join/join.module.js
CHANGED
package/dist/kbd/kbd.js
CHANGED
|
@@ -1,14 +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/kbd/kbd.tsx
|
|
5
|
-
function r({ size: r = "md", className: i, children: a, ...o }) {
|
|
6
|
-
return /* @__PURE__ */ n("kbd", {
|
|
7
|
-
"data-size": r,
|
|
8
|
-
className: t(e.kbd, i),
|
|
9
|
-
...o,
|
|
10
|
-
children: a
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { r as Kbd };
|
|
1
|
+
import e from"./kbd.module.js";import{cn as t}from"@cascivo/core/pure";import{jsx as n}from"react/jsx-runtime";function r({size:r=`md`,className:i,children:a,...o}){return n(`kbd`,{"data-size":r,className:t(e.kbd,i),...o,children:a})}export{r as Kbd};
|
package/dist/kbd/kbd.module.js
CHANGED
package/dist/label/label.js
CHANGED
|
@@ -1,23 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import { Slot as t, cn as n } from "@cascivo/core/pure";
|
|
3
|
-
import { builtin as r, t as i } from "@cascivo/i18n";
|
|
4
|
-
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
|
-
//#region ../components/src/label/label.tsx
|
|
6
|
-
function c({ asChild: c = !1, required: l = !1, disabled: u = !1, className: d, children: f, labels: p, ...m }) {
|
|
7
|
-
let h = c ? t : "label", g = p?.required ?? i(r.label.required), _ = l ? /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("span", {
|
|
8
|
-
className: e.marker,
|
|
9
|
-
"aria-hidden": "true",
|
|
10
|
-
children: "*"
|
|
11
|
-
}), /* @__PURE__ */ o("span", {
|
|
12
|
-
className: e.srOnly,
|
|
13
|
-
children: g
|
|
14
|
-
})] }) : null;
|
|
15
|
-
return /* @__PURE__ */ o(h, {
|
|
16
|
-
"data-disabled": u ? "" : void 0,
|
|
17
|
-
className: n(e.label, d),
|
|
18
|
-
...m,
|
|
19
|
-
children: _ ? /* @__PURE__ */ s(a, { children: [f, _] }) : f
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
export { c as Label };
|
|
1
|
+
import e from"./label.module.js";import{Slot as t,cn as n}from"@cascivo/core/pure";import{builtin as r,t as i}from"@cascivo/i18n";import{Fragment as a,jsx as o,jsxs as s}from"react/jsx-runtime";function c({asChild:c=!1,required:l=!1,disabled:u=!1,className:d,children:f,labels:p,...m}){let h=c?t:`label`,g=p?.required??i(r.label.required),_=l?s(a,{children:[o(`span`,{className:e.marker,"aria-hidden":`true`,children:`*`}),o(`span`,{className:e.srOnly,children:g})]}):null;return o(h,{"data-disabled":u?``:void 0,className:n(e.label,d),...m,children:_?s(a,{children:[f,_]}):f})}export{c as Label};
|
|
@@ -1,8 +1,2 @@
|
|
|
1
1
|
import './label.css';
|
|
2
|
-
var e
|
|
3
|
-
label: "_label_qztdi_2",
|
|
4
|
-
marker: "_marker_qztdi_18",
|
|
5
|
-
srOnly: "_srOnly_qztdi_23"
|
|
6
|
-
};
|
|
7
|
-
//#endregion
|
|
8
|
-
export { e as default };
|
|
2
|
+
var e={label:`_label_qztdi_2`,marker:`_marker_qztdi_18`,srOnly:`_srOnly_qztdi_23`};export{e as default};
|
|
@@ -1,38 +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 ../components/src/large-title-header/large-title-header.tsx
|
|
5
|
-
function i({ title: i, children: a, leading: o, actions: s, level: c = 1, collapseDistance: l = 48, className: u }) {
|
|
6
|
-
let d = `h${c}`, f = { "--_collapse": `${l}px` };
|
|
7
|
-
return /* @__PURE__ */ r("div", {
|
|
8
|
-
className: t(e.root, u),
|
|
9
|
-
style: f,
|
|
10
|
-
children: [
|
|
11
|
-
/* @__PURE__ */ r("div", {
|
|
12
|
-
className: e.bar,
|
|
13
|
-
children: [
|
|
14
|
-
/* @__PURE__ */ n("div", {
|
|
15
|
-
className: e.slot,
|
|
16
|
-
children: o
|
|
17
|
-
}),
|
|
18
|
-
/* @__PURE__ */ n("span", {
|
|
19
|
-
"aria-hidden": "true",
|
|
20
|
-
className: e.compactTitle,
|
|
21
|
-
children: i
|
|
22
|
-
}),
|
|
23
|
-
/* @__PURE__ */ n("div", {
|
|
24
|
-
className: t(e.slot, e.slotEnd),
|
|
25
|
-
children: s
|
|
26
|
-
})
|
|
27
|
-
]
|
|
28
|
-
}),
|
|
29
|
-
/* @__PURE__ */ n(d, {
|
|
30
|
-
className: e.largeTitle,
|
|
31
|
-
children: i
|
|
32
|
-
}),
|
|
33
|
-
a
|
|
34
|
-
]
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
//#endregion
|
|
38
|
-
export { i as LargeTitleHeader };
|
|
1
|
+
import e from"./large-title-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,children:a,leading:o,actions:s,level:c=1,collapseDistance:l=48,className:u}){let d=`h${c}`,f={"--_collapse":`${l}px`};return r(`div`,{className:t(e.root,u),style:f,children:[r(`div`,{className:e.bar,children:[n(`div`,{className:e.slot,children:o}),n(`span`,{"aria-hidden":`true`,className:e.compactTitle,children:i}),n(`div`,{className:t(e.slot,e.slotEnd),children:s})]}),n(d,{className:e.largeTitle,children:i}),a]})}export{i as LargeTitleHeader};
|
|
@@ -1,13 +1,2 @@
|
|
|
1
1
|
import './large-title-header.css';
|
|
2
|
-
var e
|
|
3
|
-
root: "_root_1fozn_6",
|
|
4
|
-
bar: "_bar_1fozn_12",
|
|
5
|
-
slot: "_slot_1fozn_29",
|
|
6
|
-
slotEnd: "_slotEnd_1fozn_37",
|
|
7
|
-
compactTitle: "_compactTitle_1fozn_41",
|
|
8
|
-
largeTitle: "_largeTitle_1fozn_56",
|
|
9
|
-
"cascivo-large-title-reveal": "_cascivo-large-title-reveal_1fozn_1",
|
|
10
|
-
"cascivo-large-title-hairline": "_cascivo-large-title-hairline_1fozn_1"
|
|
11
|
-
};
|
|
12
|
-
//#endregion
|
|
13
|
-
export { e as default };
|
|
2
|
+
var e={root:`_root_1fozn_6`,bar:`_bar_1fozn_12`,slot:`_slot_1fozn_29`,slotEnd:`_slotEnd_1fozn_37`,compactTitle:`_compactTitle_1fozn_41`,largeTitle:`_largeTitle_1fozn_56`,"cascivo-large-title-reveal":`_cascivo-large-title-reveal_1fozn_1`,"cascivo-large-title-hairline":`_cascivo-large-title-hairline_1fozn_1`};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/auto-grid/auto-grid.tsx
|
|
5
|
-
function r({ min: r = "16rem", gap: i = 4, className: a, style: o, ...s }) {
|
|
6
|
-
return /* @__PURE__ */ n("div", {
|
|
7
|
-
className: t(e["auto-grid"], a),
|
|
8
|
-
style: {
|
|
9
|
-
"--_min": r,
|
|
10
|
-
"--_gap": `var(--cascivo-space-${i})`,
|
|
11
|
-
...o
|
|
12
|
-
},
|
|
13
|
-
...s
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
export { r as AutoGrid };
|
|
1
|
+
import e from"./auto-grid.module.js";import{cn as t}from"@cascivo/core/pure";import{jsx as n}from"react/jsx-runtime";function r({min:r=`16rem`,gap:i=4,className:a,style:o,...s}){return n(`div`,{className:t(e[`auto-grid`],a),style:{"--_min":r,"--_gap":`var(--cascivo-space-${i})`,...o},...s})}export{r as AutoGrid};
|
|
@@ -1,16 +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/center/center.tsx
|
|
5
|
-
function r({ maxWidth: r = "48rem", className: i, style: a, ...o }) {
|
|
6
|
-
return /* @__PURE__ */ n("div", {
|
|
7
|
-
className: t(e.center, i),
|
|
8
|
-
style: {
|
|
9
|
-
"--_center-max": r,
|
|
10
|
-
...a
|
|
11
|
-
},
|
|
12
|
-
...o
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { r as Center };
|
|
1
|
+
import e from"./center.module.js";import{cn as t}from"@cascivo/core/pure";import{jsx as n}from"react/jsx-runtime";function r({maxWidth:r=`48rem`,className:i,style:a,...o}){return n(`div`,{className:t(e.center,i),style:{"--_center-max":r,...a},...o})}export{r as Center};
|
|
@@ -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 ../layouts/src/columns/columns.tsx
|
|
5
|
-
function r({ count: r = 2, gap: i = 4, className: a, style: o, children: s, ...c }) {
|
|
6
|
-
return /* @__PURE__ */ n("div", {
|
|
7
|
-
className: t(e["columns-container"], a),
|
|
8
|
-
style: {
|
|
9
|
-
"--_cols": String(r),
|
|
10
|
-
"--_gap": `var(--cascivo-space-${i})`,
|
|
11
|
-
...o
|
|
12
|
-
},
|
|
13
|
-
...c,
|
|
14
|
-
children: /* @__PURE__ */ n("div", {
|
|
15
|
-
className: e.columns,
|
|
16
|
-
children: s
|
|
17
|
-
})
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
//#endregion
|
|
21
|
-
export { r as Columns };
|
|
1
|
+
import e from"./columns.module.js";import{cn as t}from"@cascivo/core/pure";import{jsx as n}from"react/jsx-runtime";function r({count:r=2,gap:i=4,className:a,style:o,children:s,...c}){return n(`div`,{className:t(e[`columns-container`],a),style:{"--_cols":String(r),"--_gap":`var(--cascivo-space-${i})`,...o},...c,children:n(`div`,{className:e.columns,children:s})})}export{r as Columns};
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import './columns.css';
|
|
2
|
-
var e
|
|
3
|
-
"columns-container": "_columns-container_1efih_2",
|
|
4
|
-
columns: "_columns_1efih_2"
|
|
5
|
-
};
|
|
6
|
-
//#endregion
|
|
7
|
-
export { e as default };
|
|
2
|
+
var e={"columns-container":`_columns-container_1efih_2`,columns:`_columns_1efih_2`};export{e as default};
|