@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
package/dist/qr-code/encode.js
CHANGED
|
@@ -1,583 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var e = {
|
|
3
|
-
L: {
|
|
4
|
-
ordinal: 0,
|
|
5
|
-
formatBits: 1
|
|
6
|
-
},
|
|
7
|
-
M: {
|
|
8
|
-
ordinal: 1,
|
|
9
|
-
formatBits: 0
|
|
10
|
-
},
|
|
11
|
-
Q: {
|
|
12
|
-
ordinal: 2,
|
|
13
|
-
formatBits: 3
|
|
14
|
-
},
|
|
15
|
-
H: {
|
|
16
|
-
ordinal: 3,
|
|
17
|
-
formatBits: 2
|
|
18
|
-
}
|
|
19
|
-
}, t = 1, n = 40, r = [
|
|
20
|
-
[
|
|
21
|
-
-1,
|
|
22
|
-
7,
|
|
23
|
-
10,
|
|
24
|
-
15,
|
|
25
|
-
20,
|
|
26
|
-
26,
|
|
27
|
-
18,
|
|
28
|
-
20,
|
|
29
|
-
24,
|
|
30
|
-
30,
|
|
31
|
-
18,
|
|
32
|
-
20,
|
|
33
|
-
24,
|
|
34
|
-
26,
|
|
35
|
-
30,
|
|
36
|
-
22,
|
|
37
|
-
24,
|
|
38
|
-
28,
|
|
39
|
-
30,
|
|
40
|
-
28,
|
|
41
|
-
28,
|
|
42
|
-
28,
|
|
43
|
-
28,
|
|
44
|
-
30,
|
|
45
|
-
30,
|
|
46
|
-
26,
|
|
47
|
-
28,
|
|
48
|
-
30,
|
|
49
|
-
30,
|
|
50
|
-
30,
|
|
51
|
-
30,
|
|
52
|
-
30,
|
|
53
|
-
30,
|
|
54
|
-
30,
|
|
55
|
-
30,
|
|
56
|
-
30,
|
|
57
|
-
30,
|
|
58
|
-
30,
|
|
59
|
-
30,
|
|
60
|
-
30,
|
|
61
|
-
30
|
|
62
|
-
],
|
|
63
|
-
[
|
|
64
|
-
-1,
|
|
65
|
-
10,
|
|
66
|
-
16,
|
|
67
|
-
26,
|
|
68
|
-
18,
|
|
69
|
-
24,
|
|
70
|
-
16,
|
|
71
|
-
18,
|
|
72
|
-
22,
|
|
73
|
-
22,
|
|
74
|
-
26,
|
|
75
|
-
30,
|
|
76
|
-
22,
|
|
77
|
-
22,
|
|
78
|
-
24,
|
|
79
|
-
24,
|
|
80
|
-
28,
|
|
81
|
-
28,
|
|
82
|
-
26,
|
|
83
|
-
26,
|
|
84
|
-
26,
|
|
85
|
-
26,
|
|
86
|
-
28,
|
|
87
|
-
28,
|
|
88
|
-
28,
|
|
89
|
-
28,
|
|
90
|
-
28,
|
|
91
|
-
28,
|
|
92
|
-
28,
|
|
93
|
-
28,
|
|
94
|
-
28,
|
|
95
|
-
28,
|
|
96
|
-
28,
|
|
97
|
-
28,
|
|
98
|
-
28,
|
|
99
|
-
28,
|
|
100
|
-
28,
|
|
101
|
-
28,
|
|
102
|
-
28,
|
|
103
|
-
28,
|
|
104
|
-
28
|
|
105
|
-
],
|
|
106
|
-
[
|
|
107
|
-
-1,
|
|
108
|
-
13,
|
|
109
|
-
22,
|
|
110
|
-
18,
|
|
111
|
-
26,
|
|
112
|
-
18,
|
|
113
|
-
24,
|
|
114
|
-
18,
|
|
115
|
-
22,
|
|
116
|
-
20,
|
|
117
|
-
24,
|
|
118
|
-
28,
|
|
119
|
-
26,
|
|
120
|
-
24,
|
|
121
|
-
20,
|
|
122
|
-
30,
|
|
123
|
-
24,
|
|
124
|
-
28,
|
|
125
|
-
28,
|
|
126
|
-
26,
|
|
127
|
-
30,
|
|
128
|
-
28,
|
|
129
|
-
30,
|
|
130
|
-
30,
|
|
131
|
-
30,
|
|
132
|
-
30,
|
|
133
|
-
28,
|
|
134
|
-
30,
|
|
135
|
-
30,
|
|
136
|
-
30,
|
|
137
|
-
30,
|
|
138
|
-
30,
|
|
139
|
-
30,
|
|
140
|
-
30,
|
|
141
|
-
30,
|
|
142
|
-
30,
|
|
143
|
-
30,
|
|
144
|
-
30,
|
|
145
|
-
30,
|
|
146
|
-
30,
|
|
147
|
-
30
|
|
148
|
-
],
|
|
149
|
-
[
|
|
150
|
-
-1,
|
|
151
|
-
17,
|
|
152
|
-
28,
|
|
153
|
-
22,
|
|
154
|
-
16,
|
|
155
|
-
22,
|
|
156
|
-
28,
|
|
157
|
-
26,
|
|
158
|
-
26,
|
|
159
|
-
24,
|
|
160
|
-
28,
|
|
161
|
-
24,
|
|
162
|
-
28,
|
|
163
|
-
22,
|
|
164
|
-
24,
|
|
165
|
-
24,
|
|
166
|
-
30,
|
|
167
|
-
28,
|
|
168
|
-
28,
|
|
169
|
-
26,
|
|
170
|
-
28,
|
|
171
|
-
30,
|
|
172
|
-
24,
|
|
173
|
-
30,
|
|
174
|
-
30,
|
|
175
|
-
30,
|
|
176
|
-
30,
|
|
177
|
-
30,
|
|
178
|
-
30,
|
|
179
|
-
30,
|
|
180
|
-
30,
|
|
181
|
-
30,
|
|
182
|
-
30,
|
|
183
|
-
30,
|
|
184
|
-
30,
|
|
185
|
-
30,
|
|
186
|
-
30,
|
|
187
|
-
30,
|
|
188
|
-
30,
|
|
189
|
-
30,
|
|
190
|
-
30
|
|
191
|
-
]
|
|
192
|
-
], i = [
|
|
193
|
-
[
|
|
194
|
-
-1,
|
|
195
|
-
1,
|
|
196
|
-
1,
|
|
197
|
-
1,
|
|
198
|
-
1,
|
|
199
|
-
1,
|
|
200
|
-
2,
|
|
201
|
-
2,
|
|
202
|
-
2,
|
|
203
|
-
2,
|
|
204
|
-
4,
|
|
205
|
-
4,
|
|
206
|
-
4,
|
|
207
|
-
4,
|
|
208
|
-
4,
|
|
209
|
-
6,
|
|
210
|
-
6,
|
|
211
|
-
6,
|
|
212
|
-
6,
|
|
213
|
-
7,
|
|
214
|
-
8,
|
|
215
|
-
8,
|
|
216
|
-
9,
|
|
217
|
-
9,
|
|
218
|
-
10,
|
|
219
|
-
12,
|
|
220
|
-
12,
|
|
221
|
-
12,
|
|
222
|
-
13,
|
|
223
|
-
14,
|
|
224
|
-
15,
|
|
225
|
-
16,
|
|
226
|
-
17,
|
|
227
|
-
18,
|
|
228
|
-
19,
|
|
229
|
-
19,
|
|
230
|
-
20,
|
|
231
|
-
21,
|
|
232
|
-
22,
|
|
233
|
-
24,
|
|
234
|
-
25
|
|
235
|
-
],
|
|
236
|
-
[
|
|
237
|
-
-1,
|
|
238
|
-
1,
|
|
239
|
-
1,
|
|
240
|
-
1,
|
|
241
|
-
2,
|
|
242
|
-
2,
|
|
243
|
-
4,
|
|
244
|
-
4,
|
|
245
|
-
4,
|
|
246
|
-
5,
|
|
247
|
-
5,
|
|
248
|
-
5,
|
|
249
|
-
8,
|
|
250
|
-
9,
|
|
251
|
-
9,
|
|
252
|
-
10,
|
|
253
|
-
10,
|
|
254
|
-
11,
|
|
255
|
-
13,
|
|
256
|
-
14,
|
|
257
|
-
16,
|
|
258
|
-
17,
|
|
259
|
-
17,
|
|
260
|
-
18,
|
|
261
|
-
20,
|
|
262
|
-
21,
|
|
263
|
-
23,
|
|
264
|
-
25,
|
|
265
|
-
26,
|
|
266
|
-
28,
|
|
267
|
-
29,
|
|
268
|
-
31,
|
|
269
|
-
33,
|
|
270
|
-
35,
|
|
271
|
-
37,
|
|
272
|
-
38,
|
|
273
|
-
40,
|
|
274
|
-
43,
|
|
275
|
-
45,
|
|
276
|
-
47,
|
|
277
|
-
49
|
|
278
|
-
],
|
|
279
|
-
[
|
|
280
|
-
-1,
|
|
281
|
-
1,
|
|
282
|
-
1,
|
|
283
|
-
2,
|
|
284
|
-
2,
|
|
285
|
-
4,
|
|
286
|
-
4,
|
|
287
|
-
6,
|
|
288
|
-
6,
|
|
289
|
-
8,
|
|
290
|
-
8,
|
|
291
|
-
8,
|
|
292
|
-
10,
|
|
293
|
-
12,
|
|
294
|
-
16,
|
|
295
|
-
12,
|
|
296
|
-
17,
|
|
297
|
-
16,
|
|
298
|
-
18,
|
|
299
|
-
21,
|
|
300
|
-
20,
|
|
301
|
-
23,
|
|
302
|
-
23,
|
|
303
|
-
25,
|
|
304
|
-
27,
|
|
305
|
-
29,
|
|
306
|
-
34,
|
|
307
|
-
34,
|
|
308
|
-
35,
|
|
309
|
-
38,
|
|
310
|
-
40,
|
|
311
|
-
43,
|
|
312
|
-
45,
|
|
313
|
-
48,
|
|
314
|
-
51,
|
|
315
|
-
53,
|
|
316
|
-
56,
|
|
317
|
-
59,
|
|
318
|
-
62,
|
|
319
|
-
65,
|
|
320
|
-
68
|
|
321
|
-
],
|
|
322
|
-
[
|
|
323
|
-
-1,
|
|
324
|
-
1,
|
|
325
|
-
1,
|
|
326
|
-
2,
|
|
327
|
-
4,
|
|
328
|
-
4,
|
|
329
|
-
4,
|
|
330
|
-
5,
|
|
331
|
-
6,
|
|
332
|
-
8,
|
|
333
|
-
8,
|
|
334
|
-
11,
|
|
335
|
-
11,
|
|
336
|
-
16,
|
|
337
|
-
16,
|
|
338
|
-
18,
|
|
339
|
-
16,
|
|
340
|
-
19,
|
|
341
|
-
21,
|
|
342
|
-
25,
|
|
343
|
-
25,
|
|
344
|
-
25,
|
|
345
|
-
34,
|
|
346
|
-
30,
|
|
347
|
-
32,
|
|
348
|
-
35,
|
|
349
|
-
37,
|
|
350
|
-
40,
|
|
351
|
-
42,
|
|
352
|
-
45,
|
|
353
|
-
48,
|
|
354
|
-
51,
|
|
355
|
-
54,
|
|
356
|
-
57,
|
|
357
|
-
60,
|
|
358
|
-
63,
|
|
359
|
-
66,
|
|
360
|
-
70,
|
|
361
|
-
74,
|
|
362
|
-
77,
|
|
363
|
-
81
|
|
364
|
-
]
|
|
365
|
-
];
|
|
366
|
-
function a(e) {
|
|
367
|
-
let t = (16 * e + 128) * e + 64;
|
|
368
|
-
if (e >= 2) {
|
|
369
|
-
let n = Math.floor(e / 7) + 2;
|
|
370
|
-
t -= (25 * n - 10) * n - 55, e >= 7 && (t -= 36);
|
|
371
|
-
}
|
|
372
|
-
return t;
|
|
373
|
-
}
|
|
374
|
-
function o(t, n) {
|
|
375
|
-
let o = e[n].ordinal;
|
|
376
|
-
return Math.floor(a(t) / 8) - r[o][t] * i[o][t];
|
|
377
|
-
}
|
|
378
|
-
function s(e, t) {
|
|
379
|
-
let n = 0;
|
|
380
|
-
for (let r = 7; r >= 0; r--) n = n << 1 ^ (n >>> 7) * 285, n ^= (t >>> r & 1) * e;
|
|
381
|
-
return n & 255;
|
|
382
|
-
}
|
|
383
|
-
function c(e) {
|
|
384
|
-
let t = Array.from({ length: e }).fill(0);
|
|
385
|
-
t[e - 1] = 1;
|
|
386
|
-
let n = 1;
|
|
387
|
-
for (let r = 0; r < e; r++) {
|
|
388
|
-
for (let e = 0; e < t.length; e++) t[e] = s(t[e], n), e + 1 < t.length && (t[e] = t[e] ^ t[e + 1]);
|
|
389
|
-
n = s(n, 2);
|
|
390
|
-
}
|
|
391
|
-
return t;
|
|
392
|
-
}
|
|
393
|
-
function l(e, t) {
|
|
394
|
-
let n = Array.from({ length: t.length }).fill(0);
|
|
395
|
-
for (let r of e) {
|
|
396
|
-
let e = r ^ n.shift();
|
|
397
|
-
n.push(0);
|
|
398
|
-
for (let r = 0; r < n.length; r++) n[r] = n[r] ^ s(t[r], e);
|
|
399
|
-
}
|
|
400
|
-
return n;
|
|
401
|
-
}
|
|
402
|
-
function u(e, t, n) {
|
|
403
|
-
for (let r = t - 1; r >= 0; r--) n.push(e >>> r & 1);
|
|
404
|
-
}
|
|
405
|
-
function d(e, t) {
|
|
406
|
-
let n = [];
|
|
407
|
-
u(4, 4, n);
|
|
408
|
-
let r = t <= 9 ? 8 : 16;
|
|
409
|
-
u(e.length, r, n);
|
|
410
|
-
for (let t of e) u(t, 8, n);
|
|
411
|
-
return n;
|
|
412
|
-
}
|
|
413
|
-
function f(e, t, n) {
|
|
414
|
-
return 4 + (t <= 9 ? 8 : 16) + e * 8 <= o(t, n) * 8;
|
|
415
|
-
}
|
|
416
|
-
function p(t, n, o) {
|
|
417
|
-
let s = e[o].ordinal, u = i[s][n], d = r[s][n], f = Math.floor(a(n) / 8), p = u - f % u, m = Math.floor(f / u), h = [], g = c(d), _ = 0;
|
|
418
|
-
for (let e = 0; e < u; e++) {
|
|
419
|
-
let n = m - d + (e < p ? 0 : 1), r = t.slice(_, _ + n);
|
|
420
|
-
_ += n;
|
|
421
|
-
let i = l(r, g);
|
|
422
|
-
e < p && r.push(0), h.push(r.concat(i));
|
|
423
|
-
}
|
|
424
|
-
let v = [];
|
|
425
|
-
for (let e = 0; e < h[0].length; e++) for (let t = 0; t < h.length; t++) (e !== m - d || t >= p) && v.push(h[t][e]);
|
|
426
|
-
return v;
|
|
427
|
-
}
|
|
428
|
-
function m(e, t, n) {
|
|
429
|
-
let r = d(h(e), t), i = o(t, n) * 8;
|
|
430
|
-
u(0, Math.min(4, i - r.length), r), u(0, (8 - r.length % 8) % 8, r);
|
|
431
|
-
let a = [];
|
|
432
|
-
for (let e = 0; e < r.length; e += 8) {
|
|
433
|
-
let t = 0;
|
|
434
|
-
for (let n = 0; n < 8; n++) t = t << 1 | r[e + n];
|
|
435
|
-
a.push(t);
|
|
436
|
-
}
|
|
437
|
-
for (let e = 236; a.length < i / 8; e ^= 253) a.push(e);
|
|
438
|
-
return a;
|
|
439
|
-
}
|
|
440
|
-
function h(e) {
|
|
441
|
-
return typeof TextEncoder < "u" ? Array.from(new TextEncoder().encode(e)) : Array.from(unescape(encodeURIComponent(e)), (e) => e.charCodeAt(0));
|
|
442
|
-
}
|
|
443
|
-
var g = class {
|
|
444
|
-
size;
|
|
445
|
-
modules;
|
|
446
|
-
isFunction;
|
|
447
|
-
constructor(e) {
|
|
448
|
-
this.size = e * 4 + 17, this.modules = Array.from({ length: this.size }, () => Array.from({ length: this.size }).fill(!1)), this.isFunction = Array.from({ length: this.size }, () => Array.from({ length: this.size }).fill(!1));
|
|
449
|
-
}
|
|
450
|
-
set(e, t, n, r) {
|
|
451
|
-
this.modules[t][e] = n, this.isFunction[t][e] = r;
|
|
452
|
-
}
|
|
453
|
-
drawFinder(e, t) {
|
|
454
|
-
for (let n = -4; n <= 4; n++) for (let r = -4; r <= 4; r++) {
|
|
455
|
-
let i = e + r, a = t + n;
|
|
456
|
-
if (i < 0 || i >= this.size || a < 0 || a >= this.size) continue;
|
|
457
|
-
let o = Math.max(Math.abs(r), Math.abs(n));
|
|
458
|
-
this.set(i, a, o !== 2 && o !== 4, !0);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
drawAlignment(e, t) {
|
|
462
|
-
for (let n = -2; n <= 2; n++) for (let r = -2; r <= 2; r++) this.set(e + r, t + n, Math.max(Math.abs(r), Math.abs(n)) !== 1, !0);
|
|
463
|
-
}
|
|
464
|
-
isFn(e, t) {
|
|
465
|
-
return this.isFunction[t][e];
|
|
466
|
-
}
|
|
467
|
-
};
|
|
468
|
-
function _(e) {
|
|
469
|
-
if (e === 1) return [];
|
|
470
|
-
let t = Math.floor(e / 7) + 2, n = Math.floor((e * 8 + t * 3 + 5) / (t * 4 - 4)) * 2, r = [6];
|
|
471
|
-
for (let i = e * 4 + 10; r.length < t; i -= n) r.splice(1, 0, i);
|
|
472
|
-
return r;
|
|
473
|
-
}
|
|
474
|
-
function v(e, t, n) {
|
|
475
|
-
let r = e.size;
|
|
476
|
-
for (let t = 0; t < r; t++) e.set(6, t, t % 2 == 0, !0), e.set(t, 6, t % 2 == 0, !0);
|
|
477
|
-
e.drawFinder(3, 3), e.drawFinder(r - 4, 3), e.drawFinder(3, r - 4);
|
|
478
|
-
let i = _(t);
|
|
479
|
-
for (let t = 0; t < i.length; t++) for (let n = 0; n < i.length; n++) t === 0 && n === 0 || t === 0 && n === i.length - 1 || t === i.length - 1 && n === 0 || e.drawAlignment(i[t], i[n]);
|
|
480
|
-
y(e, n, 0, !0), b(e, t);
|
|
481
|
-
}
|
|
482
|
-
function y(t, n, r, i) {
|
|
483
|
-
let a = t.size, o = e[n].formatBits << 3 | r, s = o;
|
|
484
|
-
for (let e = 0; e < 10; e++) s = s << 1 ^ (s >>> 9) * 1335;
|
|
485
|
-
let c = (o << 10 | s) ^ 21522, l = (e) => i ? !1 : (c >>> e & 1) != 0;
|
|
486
|
-
for (let e = 0; e <= 5; e++) t.set(8, e, l(e), !0);
|
|
487
|
-
t.set(8, 7, l(6), !0), t.set(8, 8, l(7), !0), t.set(7, 8, l(8), !0);
|
|
488
|
-
for (let e = 9; e < 15; e++) t.set(14 - e, 8, l(e), !0);
|
|
489
|
-
for (let e = 0; e < 8; e++) t.set(a - 1 - e, 8, l(e), !0);
|
|
490
|
-
for (let e = 8; e < 15; e++) t.set(8, a - 15 + e, l(e), !0);
|
|
491
|
-
t.set(8, a - 8, !0, !0);
|
|
492
|
-
}
|
|
493
|
-
function b(e, t) {
|
|
494
|
-
if (t < 7) return;
|
|
495
|
-
let n = t;
|
|
496
|
-
for (let e = 0; e < 12; e++) n = n << 1 ^ (n >>> 11) * 7973;
|
|
497
|
-
let r = t << 12 | n;
|
|
498
|
-
for (let t = 0; t < 18; t++) {
|
|
499
|
-
let n = (r >>> t & 1) != 0, i = e.size - 11 + t % 3, a = Math.floor(t / 3);
|
|
500
|
-
e.set(i, a, n, !0), e.set(a, i, n, !0);
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
function x(e, t) {
|
|
504
|
-
let n = e.size, r = 0;
|
|
505
|
-
for (let i = n - 1; i >= 1; i -= 2) {
|
|
506
|
-
let a = i === 6 ? 5 : i;
|
|
507
|
-
for (let i = 0; i < n; i++) for (let o = 0; o < 2; o++) {
|
|
508
|
-
let s = a - o, c = a + 1 & 2 ? i : n - 1 - i;
|
|
509
|
-
if (!e.isFn(s, c) && r < t.length * 8) {
|
|
510
|
-
let n = (t[r >>> 3] >>> 7 - (r & 7) & 1) != 0;
|
|
511
|
-
e.set(s, c, n, !1), r++;
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
function S(e, t) {
|
|
517
|
-
for (let n = 0; n < e.size; n++) for (let r = 0; r < e.size; r++) {
|
|
518
|
-
if (e.isFn(r, n)) continue;
|
|
519
|
-
let i = !1;
|
|
520
|
-
switch (t) {
|
|
521
|
-
case 0:
|
|
522
|
-
i = (r + n) % 2 == 0;
|
|
523
|
-
break;
|
|
524
|
-
case 1:
|
|
525
|
-
i = n % 2 == 0;
|
|
526
|
-
break;
|
|
527
|
-
case 2:
|
|
528
|
-
i = r % 3 == 0;
|
|
529
|
-
break;
|
|
530
|
-
case 3:
|
|
531
|
-
i = (r + n) % 3 == 0;
|
|
532
|
-
break;
|
|
533
|
-
case 4:
|
|
534
|
-
i = (Math.floor(r / 3) + Math.floor(n / 2)) % 2 == 0;
|
|
535
|
-
break;
|
|
536
|
-
case 5:
|
|
537
|
-
i = r * n % 2 + r * n % 3 == 0;
|
|
538
|
-
break;
|
|
539
|
-
case 6:
|
|
540
|
-
i = (r * n % 2 + r * n % 3) % 2 == 0;
|
|
541
|
-
break;
|
|
542
|
-
case 7:
|
|
543
|
-
i = ((r + n) % 2 + r * n % 3) % 2 == 0;
|
|
544
|
-
break;
|
|
545
|
-
}
|
|
546
|
-
i && (e.modules[n][r] = !e.modules[n][r]);
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
function C(e) {
|
|
550
|
-
let t = e.size, n = 0, r = e.modules;
|
|
551
|
-
for (let e = 0; e < t; e++) {
|
|
552
|
-
let i = !1, a = 0;
|
|
553
|
-
for (let o = 0; o < t; o++) r[e][o] === i ? (a++, a === 5 ? n += 3 : a > 5 && n++) : (i = r[e][o], a = 1);
|
|
554
|
-
}
|
|
555
|
-
for (let e = 0; e < t; e++) {
|
|
556
|
-
let i = !1, a = 0;
|
|
557
|
-
for (let o = 0; o < t; o++) r[o][e] === i ? (a++, a === 5 ? n += 3 : a > 5 && n++) : (i = r[o][e], a = 1);
|
|
558
|
-
}
|
|
559
|
-
for (let e = 0; e < t - 1; e++) for (let i = 0; i < t - 1; i++) {
|
|
560
|
-
let t = r[e][i];
|
|
561
|
-
t === r[e][i + 1] && t === r[e + 1][i] && t === r[e + 1][i + 1] && (n += 3);
|
|
562
|
-
}
|
|
563
|
-
let i = 0;
|
|
564
|
-
for (let e = 0; e < t; e++) for (let n = 0; n < t; n++) r[e][n] && i++;
|
|
565
|
-
let a = t * t, o = Math.ceil(Math.abs(i * 20 - a * 10) / a) - 1;
|
|
566
|
-
return n += o * 10, n;
|
|
567
|
-
}
|
|
568
|
-
function w(e, r = "M") {
|
|
569
|
-
let i = h(e).length, a = t;
|
|
570
|
-
for (; a <= n && !f(i, a, r);) a++;
|
|
571
|
-
if (a > n) throw Error("Data too long for a QR code");
|
|
572
|
-
let o = p(m(e, a, r), a, r), s = new g(a);
|
|
573
|
-
v(s, a, r), x(s, o);
|
|
574
|
-
let c = 0, l = Infinity;
|
|
575
|
-
for (let e = 0; e < 8; e++) {
|
|
576
|
-
S(s, e), y(s, r, e, !1);
|
|
577
|
-
let t = C(s);
|
|
578
|
-
t < l && (l = t, c = e), S(s, e);
|
|
579
|
-
}
|
|
580
|
-
return S(s, c), y(s, r, c, !1), s.modules;
|
|
581
|
-
}
|
|
582
|
-
//#endregion
|
|
583
|
-
export { w as encode };
|
|
1
|
+
var e={L:{ordinal:0,formatBits:1},M:{ordinal:1,formatBits:0},Q:{ordinal:2,formatBits:3},H:{ordinal:3,formatBits:2}},t=1,n=40,r=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],i=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];function a(e){let t=(16*e+128)*e+64;if(e>=2){let n=Math.floor(e/7)+2;t-=(25*n-10)*n-55,e>=7&&(t-=36)}return t}function o(t,n){let o=e[n].ordinal;return Math.floor(a(t)/8)-r[o][t]*i[o][t]}function s(e,t){let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return n&255}function c(e){let t=Array.from({length:e}).fill(0);t[e-1]=1;let n=1;for(let r=0;r<e;r++){for(let e=0;e<t.length;e++)t[e]=s(t[e],n),e+1<t.length&&(t[e]=t[e]^t[e+1]);n=s(n,2)}return t}function l(e,t){let n=Array.from({length:t.length}).fill(0);for(let r of e){let e=r^n.shift();n.push(0);for(let r=0;r<n.length;r++)n[r]=n[r]^s(t[r],e)}return n}function u(e,t,n){for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function d(e,t){let n=[];u(4,4,n);let r=t<=9?8:16;u(e.length,r,n);for(let t of e)u(t,8,n);return n}function f(e,t,n){return 4+(t<=9?8:16)+e*8<=o(t,n)*8}function p(t,n,o){let s=e[o].ordinal,u=i[s][n],d=r[s][n],f=Math.floor(a(n)/8),p=u-f%u,m=Math.floor(f/u),h=[],g=c(d),_=0;for(let e=0;e<u;e++){let n=m-d+(e<p?0:1),r=t.slice(_,_+n);_+=n;let i=l(r,g);e<p&&r.push(0),h.push(r.concat(i))}let v=[];for(let e=0;e<h[0].length;e++)for(let t=0;t<h.length;t++)(e!==m-d||t>=p)&&v.push(h[t][e]);return v}function m(e,t,n){let r=d(h(e),t),i=o(t,n)*8;u(0,Math.min(4,i-r.length),r),u(0,(8-r.length%8)%8,r);let a=[];for(let e=0;e<r.length;e+=8){let t=0;for(let n=0;n<8;n++)t=t<<1|r[e+n];a.push(t)}for(let e=236;a.length<i/8;e^=253)a.push(e);return a}function h(e){return typeof TextEncoder<`u`?Array.from(new TextEncoder().encode(e)):Array.from(unescape(encodeURIComponent(e)),e=>e.charCodeAt(0))}var g=class{size;modules;isFunction;constructor(e){this.size=e*4+17,this.modules=Array.from({length:this.size},()=>Array.from({length:this.size}).fill(!1)),this.isFunction=Array.from({length:this.size},()=>Array.from({length:this.size}).fill(!1))}set(e,t,n,r){this.modules[t][e]=n,this.isFunction[t][e]=r}drawFinder(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=e+r,a=t+n;if(i<0||i>=this.size||a<0||a>=this.size)continue;let o=Math.max(Math.abs(r),Math.abs(n));this.set(i,a,o!==2&&o!==4,!0)}}drawAlignment(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.set(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!==1,!0)}isFn(e,t){return this.isFunction[t][e]}};function _(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=Math.floor((e*8+t*3+5)/(t*4-4))*2,r=[6];for(let i=e*4+10;r.length<t;i-=n)r.splice(1,0,i);return r}function v(e,t,n){let r=e.size;for(let t=0;t<r;t++)e.set(6,t,t%2==0,!0),e.set(t,6,t%2==0,!0);e.drawFinder(3,3),e.drawFinder(r-4,3),e.drawFinder(3,r-4);let i=_(t);for(let t=0;t<i.length;t++)for(let n=0;n<i.length;n++)t===0&&n===0||t===0&&n===i.length-1||t===i.length-1&&n===0||e.drawAlignment(i[t],i[n]);y(e,n,0,!0),b(e,t)}function y(t,n,r,i){let a=t.size,o=e[n].formatBits<<3|r,s=o;for(let e=0;e<10;e++)s=s<<1^(s>>>9)*1335;let c=(o<<10|s)^21522,l=e=>i?!1:(c>>>e&1)!=0;for(let e=0;e<=5;e++)t.set(8,e,l(e),!0);t.set(8,7,l(6),!0),t.set(8,8,l(7),!0),t.set(7,8,l(8),!0);for(let e=9;e<15;e++)t.set(14-e,8,l(e),!0);for(let e=0;e<8;e++)t.set(a-1-e,8,l(e),!0);for(let e=8;e<15;e++)t.set(8,a-15+e,l(e),!0);t.set(8,a-8,!0,!0)}function b(e,t){if(t<7)return;let n=t;for(let e=0;e<12;e++)n=n<<1^(n>>>11)*7973;let r=t<<12|n;for(let t=0;t<18;t++){let n=(r>>>t&1)!=0,i=e.size-11+t%3,a=Math.floor(t/3);e.set(i,a,n,!0),e.set(a,i,n,!0)}}function x(e,t){let n=e.size,r=0;for(let i=n-1;i>=1;i-=2){let a=i===6?5:i;for(let i=0;i<n;i++)for(let o=0;o<2;o++){let s=a-o,c=a+1&2?i:n-1-i;if(!e.isFn(s,c)&&r<t.length*8){let n=(t[r>>>3]>>>7-(r&7)&1)!=0;e.set(s,c,n,!1),r++}}}}function S(e,t){for(let n=0;n<e.size;n++)for(let r=0;r<e.size;r++){if(e.isFn(r,n))continue;let i=!1;switch(t){case 0:i=(r+n)%2==0;break;case 1:i=n%2==0;break;case 2:i=r%3==0;break;case 3:i=(r+n)%3==0;break;case 4:i=(Math.floor(r/3)+Math.floor(n/2))%2==0;break;case 5:i=r*n%2+r*n%3==0;break;case 6:i=(r*n%2+r*n%3)%2==0;break;case 7:i=((r+n)%2+r*n%3)%2==0;break}i&&(e.modules[n][r]=!e.modules[n][r])}}function C(e){let t=e.size,n=0,r=e.modules;for(let e=0;e<t;e++){let i=!1,a=0;for(let o=0;o<t;o++)r[e][o]===i?(a++,a===5?n+=3:a>5&&n++):(i=r[e][o],a=1)}for(let e=0;e<t;e++){let i=!1,a=0;for(let o=0;o<t;o++)r[o][e]===i?(a++,a===5?n+=3:a>5&&n++):(i=r[o][e],a=1)}for(let e=0;e<t-1;e++)for(let i=0;i<t-1;i++){let t=r[e][i];t===r[e][i+1]&&t===r[e+1][i]&&t===r[e+1][i+1]&&(n+=3)}let i=0;for(let e=0;e<t;e++)for(let n=0;n<t;n++)r[e][n]&&i++;let a=t*t,o=Math.ceil(Math.abs(i*20-a*10)/a)-1;return n+=o*10,n}function w(e,r=`M`){let i=h(e).length,a=t;for(;a<=n&&!f(i,a,r);)a++;if(a>n)throw Error(`Data too long for a QR code`);let o=p(m(e,a,r),a,r),s=new g(a);v(s,a,r),x(s,o);let c=0,l=1/0;for(let e=0;e<8;e++){S(s,e),y(s,r,e,!1);let t=C(s);t<l&&(l=t,c=e),S(s,e)}return S(s,c),y(s,r,c,!1),s.modules}export{w as encode};
|
package/dist/qr-code/qr-code.js
CHANGED
|
@@ -1,41 +1 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { encode as e } from "./encode.js";
|
|
4
|
-
import t from "./qr-code.module.js";
|
|
5
|
-
import { cn as n, useSignals as r } from "@cascivo/core";
|
|
6
|
-
import { builtin as i, t as a } from "@cascivo/i18n";
|
|
7
|
-
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
-
//#region ../components/src/qr-code/qr-code.tsx
|
|
9
|
-
var c = 4;
|
|
10
|
-
function l({ value: l, size: u = 128, errorCorrection: d = "M", radius: f, fill: p = "currentColor", background: m = "transparent", label: h, ariaLabel: g, className: _, style: v, ...y }) {
|
|
11
|
-
if (r(), !l) return null;
|
|
12
|
-
let b = e(l, d), x = b.length + c * 2, S = "";
|
|
13
|
-
for (let e = 0; e < b.length; e++) for (let t = 0; t < b.length; t++) b[e][t] && (S += `M${t + c},${e + c}h1v1h-1z`);
|
|
14
|
-
return /* @__PURE__ */ o("div", {
|
|
15
|
-
className: n(t.qrCode, _),
|
|
16
|
-
style: {
|
|
17
|
-
inlineSize: u,
|
|
18
|
-
blockSize: u,
|
|
19
|
-
borderRadius: f,
|
|
20
|
-
...v
|
|
21
|
-
},
|
|
22
|
-
...y,
|
|
23
|
-
children: /* @__PURE__ */ s("svg", {
|
|
24
|
-
className: t.svg,
|
|
25
|
-
role: "img",
|
|
26
|
-
"aria-label": g ?? h ?? a(i.qrCode.label),
|
|
27
|
-
viewBox: `0 0 ${x} ${x}`,
|
|
28
|
-
shapeRendering: "crispEdges",
|
|
29
|
-
children: [/* @__PURE__ */ o("rect", {
|
|
30
|
-
width: x,
|
|
31
|
-
height: x,
|
|
32
|
-
fill: m
|
|
33
|
-
}), /* @__PURE__ */ o("path", {
|
|
34
|
-
d: S,
|
|
35
|
-
fill: p
|
|
36
|
-
})]
|
|
37
|
-
})
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
//#endregion
|
|
41
|
-
export { l as QrCode };
|
|
1
|
+
"use client";import{encode as e}from"./encode.js";import t from"./qr-code.module.js";import{cn as n,useSignals as r}from"@cascivo/core";import{builtin as i,t as a}from"@cascivo/i18n";import{jsx as o,jsxs as s}from"react/jsx-runtime";var c=4;function l({value:l,size:u=128,errorCorrection:d=`M`,radius:f,fill:p=`currentColor`,background:m=`transparent`,label:h,ariaLabel:g,className:_,style:v,...y}){if(r(),!l)return null;let b=e(l,d),x=b.length+c*2,S=``;for(let e=0;e<b.length;e++)for(let t=0;t<b.length;t++)b[e][t]&&(S+=`M${t+c},${e+c}h1v1h-1z`);return o(`div`,{className:n(t.qrCode,_),style:{inlineSize:u,blockSize:u,borderRadius:f,...v},...y,children:s(`svg`,{className:t.svg,role:`img`,"aria-label":g??h??a(i.qrCode.label),viewBox:`0 0 ${x} ${x}`,shapeRendering:`crispEdges`,children:[o(`rect`,{width:x,height:x,fill:m}),o(`path`,{d:S,fill:p})]})})}export{l as QrCode};
|
|
@@ -1,27 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import { useId as t } from "react";
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
//#region ../components/src/radial-progress/radial-progress.tsx
|
|
5
|
-
function r({ value: r, size: i = "md", variant: a = "primary", children: o, className: s, ariaLabel: c, label: l, ...u }) {
|
|
6
|
-
let d = Math.min(100, Math.max(0, r)), f = t(), p = c ?? l;
|
|
7
|
-
return /* @__PURE__ */ n("div", {
|
|
8
|
-
role: "progressbar",
|
|
9
|
-
"aria-valuenow": d,
|
|
10
|
-
"aria-valuemin": 0,
|
|
11
|
-
"aria-valuemax": 100,
|
|
12
|
-
"aria-labelledby": p ?? u["aria-label"] ? void 0 : f,
|
|
13
|
-
className: [e.radialProgress, s].filter(Boolean).join(" "),
|
|
14
|
-
"data-size": i,
|
|
15
|
-
"data-variant": a,
|
|
16
|
-
style: { "--cascivo-radial-progress": d },
|
|
17
|
-
...u,
|
|
18
|
-
...p === void 0 ? {} : { "aria-label": p },
|
|
19
|
-
children: /* @__PURE__ */ n("span", {
|
|
20
|
-
id: f,
|
|
21
|
-
className: e.label,
|
|
22
|
-
children: o ?? `${d}%`
|
|
23
|
-
})
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { r as RadialProgress };
|
|
1
|
+
import e from"./radial-progress.module.js";import{useId as t}from"react";import{jsx as n}from"react/jsx-runtime";function r({value:r,size:i=`md`,variant:a=`primary`,children:o,className:s,ariaLabel:c,label:l,...u}){let d=Math.min(100,Math.max(0,r)),f=t(),p=c??l;return n(`div`,{role:`progressbar`,"aria-valuenow":d,"aria-valuemin":0,"aria-valuemax":100,"aria-labelledby":p??u[`aria-label`]?void 0:f,className:[e.radialProgress,s].filter(Boolean).join(` `),"data-size":i,"data-variant":a,style:{"--cascivo-radial-progress":d},...u,...p===void 0?{}:{"aria-label":p},children:n(`span`,{id:f,className:e.label,children:o??`${d}%`})})}export{r as RadialProgress};
|