@caspeco/casper-ui-library 11.4.0 → 12.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 -5
- package/dist/components/accordion/accordion-item.js +11 -11
- package/dist/components/accordion/accordion-panel.js +4 -4
- package/dist/components/accordion/accordion.js +4 -4
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/alert.js +14 -14
- package/dist/components/alert/helper.d.ts +3 -3
- package/dist/components/alert/helper.d.ts.map +1 -1
- package/dist/components/alert/helper.js +1 -1
- package/dist/components/badge/badge.js +19 -19
- package/dist/components/badge/helper.d.ts +3 -3
- package/dist/components/badge/helper.d.ts.map +1 -1
- package/dist/components/badge/helper.js +1 -1
- package/dist/components/box/box.composition.d.ts.map +1 -1
- package/dist/components/box/box.js +3 -3
- package/dist/components/breadcrumbs/breadcrumb-item.js +4 -4
- package/dist/components/breadcrumbs/breadcrumb-link.js +3 -3
- package/dist/components/breadcrumbs/breadcrumbs.js +25 -25
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +6 -6
- package/dist/components/checkbox/checkbox-icon.js +3 -3
- package/dist/components/checkbox/checkbox.js +8 -8
- package/dist/components/checkbox-group/checkbox-group.js +3 -3
- package/dist/components/collapsible/collapsible.d.ts +1 -1
- package/dist/components/collapsible/collapsible.d.ts.map +1 -1
- package/dist/components/collapsible/collapsible.js +31 -30
- package/dist/components/collapsible/collapsible.translations.d.ts +6 -0
- package/dist/components/collapsible/collapsible.translations.d.ts.map +1 -0
- package/dist/components/collapsible/collapsible.translations.js +54 -0
- package/dist/components/collapsible/types.d.ts +0 -6
- package/dist/components/collapsible/types.d.ts.map +1 -1
- package/dist/components/combobox/combobox-button.d.ts +1 -1
- package/dist/components/combobox/combobox-button.d.ts.map +1 -1
- package/dist/components/combobox/combobox-button.js +67 -65
- package/dist/components/combobox/combobox-item.js +9 -9
- package/dist/components/combobox/combobox-menu.d.ts.map +1 -1
- package/dist/components/combobox/combobox-menu.js +96 -95
- package/dist/components/combobox/combobox-recipe.js +1 -1
- package/dist/components/combobox/combobox.d.ts +1 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/combobox.js +91 -91
- package/dist/components/combobox/combobox.translations.d.ts +10 -0
- package/dist/components/combobox/combobox.translations.d.ts.map +1 -0
- package/dist/components/combobox/combobox.translations.js +102 -0
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.d.ts.map +1 -1
- package/dist/components/combobox/types.d.ts +0 -15
- package/dist/components/combobox/types.d.ts.map +1 -1
- package/dist/components/date-picker/base-date-picker.d.ts +1 -1
- package/dist/components/date-picker/base-date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/base-date-picker.js +164 -163
- package/dist/components/date-picker/date-multi-picker.d.ts +1 -1
- package/dist/components/date-picker/date-multi-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-multi-picker.js +20 -21
- package/dist/components/date-picker/date-picker-date-cell.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker-date-cell.js +27 -27
- package/dist/components/date-picker/date-picker-header.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker-header.js +83 -115
- package/dist/components/date-picker/date-picker-week-cell.js +5 -5
- package/dist/components/date-picker/date-picker.composition.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.d.ts +1 -1
- package/dist/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.js +20 -21
- package/dist/components/date-picker/date-picker.translations.d.ts +6 -0
- package/dist/components/date-picker/date-picker.translations.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.translations.js +54 -0
- package/dist/components/date-picker/date-range-picker.d.ts +1 -1
- package/dist/components/date-picker/date-range-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-range-picker.js +15 -16
- package/dist/components/date-picker/date-week-picker.d.ts +1 -1
- package/dist/components/date-picker/date-week-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-week-picker.js +13 -14
- package/dist/components/date-picker/types.d.ts +4 -10
- package/dist/components/date-picker/types.d.ts.map +1 -1
- package/dist/components/divider/divider.d.ts.map +1 -1
- package/dist/components/divider/divider.js +4 -4
- package/dist/components/drawer/drawer.js +6 -6
- package/dist/components/drawer/inline-drawer.js +5 -5
- package/dist/components/fieldset/fieldset-error-text.js +3 -3
- package/dist/components/fieldset/fieldset-helper-text.js +3 -3
- package/dist/components/fieldset/fieldset-legend.js +3 -3
- package/dist/components/fieldset/fieldset.js +3 -3
- package/dist/components/flex/flex.js +3 -3
- package/dist/components/form-control/form-control.js +3 -3
- package/dist/components/form-control/form-error-message.js +3 -3
- package/dist/components/form-control/form-helper-text.js +3 -3
- package/dist/components/form-control/form-label.d.ts.map +1 -1
- package/dist/components/form-control/form-label.js +6 -6
- package/dist/components/grid/grid-item.js +3 -3
- package/dist/components/grid/grid.js +3 -3
- package/dist/components/heading/heading.d.ts.map +1 -1
- package/dist/components/heading/heading.js +5 -5
- package/dist/components/highlight/highlight.js +4 -4
- package/dist/components/icon/create-icon.d.ts +2 -2
- package/dist/components/icon/create-icon.d.ts.map +1 -1
- package/dist/components/icon/create-icon.js +8 -8
- package/dist/components/icon/icon.composition.d.ts.map +1 -1
- package/dist/components/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/icon-button/icon-button.js +5 -5
- package/dist/components/image/image.js +3 -3
- package/dist/components/image-upload/image-upload-dropzone.d.ts +1 -3
- package/dist/components/image-upload/image-upload-dropzone.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-dropzone.js +76 -75
- package/dist/components/image-upload/image-upload-icons.js +11 -11
- package/dist/components/image-upload/image-upload-modal.d.ts +2 -3
- package/dist/components/image-upload/image-upload-modal.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-modal.js +70 -70
- package/dist/components/image-upload/image-upload.d.ts +1 -1
- package/dist/components/image-upload/image-upload.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload.js +44 -45
- package/dist/components/image-upload/image-upload.translations.d.ts +12 -0
- package/dist/components/image-upload/image-upload.translations.d.ts.map +1 -0
- package/dist/components/image-upload/image-upload.translations.js +126 -0
- package/dist/components/image-upload/types.d.ts +0 -3
- package/dist/components/image-upload/types.d.ts.map +1 -1
- package/dist/components/input/helper.js +1 -1
- package/dist/components/input/input-recipe.js +1 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/input.js +6 -6
- package/dist/components/link/link.js +3 -3
- package/dist/components/list/list-item.js +3 -3
- package/dist/components/list/list.d.ts.map +1 -1
- package/dist/components/list/list.js +4 -4
- package/dist/components/menu/menu-box-button.js +4 -4
- package/dist/components/menu/menu-button.js +4 -4
- package/dist/components/menu/menu-divider.js +1 -1
- package/dist/components/menu/menu-group.d.ts.map +1 -1
- package/dist/components/menu/menu-group.js +12 -12
- package/dist/components/menu/menu-icon-button.js +4 -4
- package/dist/components/menu/menu-item.d.ts.map +1 -1
- package/dist/components/menu/menu-item.js +8 -8
- package/dist/components/menu/menu-list.js +3 -3
- package/dist/components/menu/menu-recipe.d.ts.map +1 -1
- package/dist/components/menu/menu-recipe.js +1 -1
- package/dist/components/menu/menu.js +4 -4
- package/dist/components/message/message.js +9 -9
- package/dist/components/modal/modal-body.js +3 -3
- package/dist/components/modal/modal-close-button.js +6 -6
- package/dist/components/modal/modal-footer.js +3 -3
- package/dist/components/modal/modal-header.js +3 -3
- package/dist/components/modal/modal.composition.d.ts.map +1 -1
- package/dist/components/modal/modal.js +8 -8
- package/dist/components/navigation-list/navigation-list-item.js +13 -13
- package/dist/components/navigation-list/navigation-list.js +4 -4
- package/dist/components/paginator/paginator-recipe.d.ts.map +1 -1
- package/dist/components/paginator/paginator-recipe.js +3 -3
- package/dist/components/paginator/paginator.composition.d.ts.map +1 -1
- package/dist/components/paginator/paginator.d.ts +1 -4
- package/dist/components/paginator/paginator.d.ts.map +1 -1
- package/dist/components/paginator/paginator.js +31 -30
- package/dist/components/paginator/paginator.translations.d.ts +7 -0
- package/dist/components/paginator/paginator.translations.d.ts.map +1 -0
- package/dist/components/paginator/paginator.translations.js +66 -0
- package/dist/components/phone-input/country-data.d.ts +2 -2
- package/dist/components/phone-input/country-data.d.ts.map +1 -1
- package/dist/components/phone-input/country-list.js +6 -6
- package/dist/components/phone-input/country-selector.d.ts +1 -4
- package/dist/components/phone-input/country-selector.d.ts.map +1 -1
- package/dist/components/phone-input/country-selector.js +86 -84
- package/dist/components/phone-input/phone-input-helpers.d.ts +4 -5
- package/dist/components/phone-input/phone-input-helpers.d.ts.map +1 -1
- package/dist/components/phone-input/phone-input-helpers.js +33 -34
- package/dist/components/phone-input/phone-input.d.ts +1 -1
- package/dist/components/phone-input/phone-input.d.ts.map +1 -1
- package/dist/components/phone-input/phone-input.js +38 -38
- package/dist/components/phone-input/phone-input.translations.d.ts +10 -0
- package/dist/components/phone-input/phone-input.translations.d.ts.map +1 -0
- package/dist/components/phone-input/phone-input.translations.js +102 -0
- package/dist/components/phone-input/types.d.ts +0 -3
- package/dist/components/phone-input/types.d.ts.map +1 -1
- package/dist/components/phone-input/use-phone-input.d.ts +0 -3
- package/dist/components/phone-input/use-phone-input.d.ts.map +1 -1
- package/dist/components/phone-input/use-phone-input.js +82 -81
- package/dist/components/quantity-button/quantity-button.composition.d.ts.map +1 -1
- package/dist/components/quantity-button/quantity-button.d.ts.map +1 -1
- package/dist/components/quantity-button/quantity-button.js +13 -13
- package/dist/components/radio/hover-styles.js +1 -1
- package/dist/components/radio/radio-group-recipe.js +1 -1
- package/dist/components/radio/radio-group.js +4 -4
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/radio.d.ts.map +1 -1
- package/dist/components/radio/radio.js +15 -15
- package/dist/components/radio-card/hover-styles.js +1 -1
- package/dist/components/radio-card/radio-card-group.d.ts.map +1 -1
- package/dist/components/radio-card/radio-card-group.js +4 -4
- package/dist/components/radio-card/radio-card.d.ts +1 -1
- package/dist/components/radio-card/radio-card.js +10 -10
- package/dist/components/rich-text-editor/index.d.ts +1 -1
- package/dist/components/rich-text-editor/index.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-context.d.ts +0 -2
- package/dist/components/rich-text-editor/rich-text-editor-context.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-control.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-control.js +130 -129
- package/dist/components/rich-text-editor/rich-text-editor-recipe.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-recipe.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.js +23 -26
- package/dist/components/rich-text-editor/{translations.d.ts → rich-text-editor.translations.d.ts} +3 -5
- package/dist/components/rich-text-editor/rich-text-editor.translations.d.ts.map +1 -0
- package/dist/components/rich-text-editor/rich-text-editor.translations.js +234 -0
- package/dist/components/rich-text-editor/rich-text-renderer.js +4 -4
- package/dist/components/rich-text-editor/types.d.ts +0 -2
- package/dist/components/rich-text-editor/types.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +6 -6
- package/dist/components/select/select-recipe.js +1 -1
- package/dist/components/select/select.js +6 -6
- package/dist/components/skeleton/skeleton-text.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton-text.js +4 -4
- package/dist/components/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton.js +4 -4
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/components/spinner/spinner.js +6 -6
- package/dist/components/stack/stack.d.ts +1 -1
- package/dist/components/stack/stack.js +3 -3
- package/dist/components/stepper/step-context.d.ts +4 -4
- package/dist/components/stepper/step-context.d.ts.map +1 -1
- package/dist/components/stepper/step.d.ts.map +1 -1
- package/dist/components/stepper/step.js +28 -28
- package/dist/components/stepper/stepper.js +9 -9
- package/dist/components/stepper/types.d.ts +4 -4
- package/dist/components/stepper/types.d.ts.map +1 -1
- package/dist/components/switch/hover-styles.js +1 -1
- package/dist/components/switch/switch.js +6 -6
- package/dist/components/table/table-cell.d.ts +1 -3
- package/dist/components/table/table-cell.d.ts.map +1 -1
- package/dist/components/table/table-cell.js +44 -47
- package/dist/components/table/table-column-resize-handle.d.ts.map +1 -1
- package/dist/components/table/table-column-resize-handle.js +23 -22
- package/dist/components/table/table-content.d.ts.map +1 -1
- package/dist/components/table/table-content.js +82 -80
- package/dist/components/table/table-context-provider.d.ts +1 -4
- package/dist/components/table/table-context-provider.d.ts.map +1 -1
- package/dist/components/table/table-context-provider.js +137 -140
- package/dist/components/table/table-drag-accessibility.d.ts +3 -3
- package/dist/components/table/table-drag-accessibility.d.ts.map +1 -1
- package/dist/components/table/table-drag-accessibility.js +10 -14
- package/dist/components/table/table-filter.d.ts.map +1 -1
- package/dist/components/table/table-filter.js +60 -60
- package/dist/components/table/table-header-dropdown.d.ts +0 -2
- package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
- package/dist/components/table/table-header-dropdown.js +29 -28
- package/dist/components/table/table-header-row.d.ts.map +1 -1
- package/dist/components/table/table-header-row.js +56 -59
- package/dist/components/table/table-recipe.js +1 -1
- package/dist/components/table/table-row-drag-handle.d.ts +1 -3
- package/dist/components/table/table-row-drag-handle.d.ts.map +1 -1
- package/dist/components/table/table-row-drag-handle.js +11 -10
- package/dist/components/table/table-row-expand-toggle-button.d.ts +1 -3
- package/dist/components/table/table-row-expand-toggle-button.d.ts.map +1 -1
- package/dist/components/table/table-row-expand-toggle-button.js +10 -9
- package/dist/components/table/table-row.d.ts.map +1 -1
- package/dist/components/table/table-row.js +5 -6
- package/dist/components/table/table-sorted-reorder-prompt.d.ts +1 -3
- package/dist/components/table/table-sorted-reorder-prompt.d.ts.map +1 -1
- package/dist/components/table/table-sorted-reorder-prompt.js +29 -28
- package/dist/components/table/table-toolbar-actions.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-actions.js +4 -4
- package/dist/components/table/table-toolbar-add-button.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-add-button.js +4 -4
- package/dist/components/table/table-toolbar-settings.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-settings.js +110 -108
- package/dist/components/table/table-toolbar.d.ts.map +1 -1
- package/dist/components/table/table-toolbar.js +14 -14
- package/dist/components/table/table.composition.d.ts.map +1 -1
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +31 -32
- package/dist/components/table/table.translations.d.ts +45 -0
- package/dist/components/table/table.translations.d.ts.map +1 -0
- package/dist/components/table/table.translations.js +522 -0
- package/dist/components/table/types.d.ts +0 -5
- package/dist/components/table/types.d.ts.map +1 -1
- package/dist/components/tabs/tab-list.js +3 -3
- package/dist/components/tabs/tab-panel.js +3 -3
- package/dist/components/tabs/tab-panels.js +3 -3
- package/dist/components/tabs/tab-with-image.js +11 -11
- package/dist/components/tabs/tab.js +4 -4
- package/dist/components/tabs/tabs-recipe.js +1 -1
- package/dist/components/tabs/tabs.js +3 -3
- package/dist/components/tabs/types.d.ts +2 -2
- package/dist/components/tabs/types.d.ts.map +1 -1
- package/dist/components/tag/tag-recipe.js +5 -5
- package/dist/components/tag/tag.js +28 -28
- package/dist/components/text/text.d.ts.map +1 -1
- package/dist/components/text/text.js +5 -5
- package/dist/components/textarea/textarea-recipe.js +1 -1
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/toaster/toast-store.d.ts +2 -2
- package/dist/components/toaster/toast-store.d.ts.map +1 -1
- package/dist/components/toaster/toaster.js +10 -10
- package/dist/components/toggle-button/toggle-button.js +3 -3
- package/dist/components/toggle-button/use-button-children.js +11 -11
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +10 -10
- package/dist/index.js +404 -402
- package/dist/node_modules/libphonenumber-js/metadata.mobile.json.js +13 -19
- package/dist/test-utils/render-with-theme.d.ts +5 -1
- package/dist/test-utils/render-with-theme.d.ts.map +1 -1
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/locale-provider.d.ts +9 -0
- package/dist/theme/locale-provider.d.ts.map +1 -0
- package/dist/theme/locale-provider.js +14 -0
- package/dist/theme/locale-provider.spec.d.ts +2 -0
- package/dist/theme/locale-provider.spec.d.ts.map +1 -0
- package/dist/theme/theme-casper-ui.d.ts.map +1 -1
- package/dist/theme/theme-casper-ui.js +1 -1
- package/dist/theme/theme-locale.d.ts +7 -0
- package/dist/theme/theme-locale.d.ts.map +1 -0
- package/dist/theme/theme-locale.js +8 -0
- package/dist/theme/theme-provider.d.ts +4 -1
- package/dist/theme/theme-provider.d.ts.map +1 -1
- package/dist/theme/theme-provider.js +30 -25
- package/dist/theme/theme-style-props.d.ts +25 -25
- package/dist/theme/theme-style-props.d.ts.map +1 -1
- package/dist/theme/theme-types.d.ts +46 -10
- package/dist/theme/theme-types.d.ts.map +1 -1
- package/dist/theme/theme-types.js +2 -2
- package/dist/theme/theme-types.spec.d.ts +2 -0
- package/dist/theme/theme-types.spec.d.ts.map +1 -0
- package/dist/theme/theme.d.ts.map +1 -1
- package/dist/theme/theme.js +1 -1
- package/dist/theme/translations.d.ts +14 -0
- package/dist/theme/translations.d.ts.map +1 -0
- package/dist/theme/translations.js +10 -0
- package/dist/theme/translations.spec.d.ts +2 -0
- package/dist/theme/translations.spec.d.ts.map +1 -0
- package/package.json +6 -6
- package/dist/components/collapsible/translations.d.ts +0 -32
- package/dist/components/collapsible/translations.d.ts.map +0 -1
- package/dist/components/collapsible/translations.js +0 -30
- package/dist/components/combobox/translations.d.ts +0 -9
- package/dist/components/combobox/translations.d.ts.map +0 -1
- package/dist/components/combobox/translations.js +0 -57
- package/dist/components/image-upload/translations.d.ts +0 -73
- package/dist/components/image-upload/translations.d.ts.map +0 -1
- package/dist/components/image-upload/translations.js +0 -66
- package/dist/components/paginator/translations.d.ts +0 -9
- package/dist/components/paginator/translations.d.ts.map +0 -1
- package/dist/components/paginator/translations.js +0 -36
- package/dist/components/phone-input/translations.d.ts +0 -60
- package/dist/components/phone-input/translations.d.ts.map +0 -1
- package/dist/components/phone-input/translations.js +0 -54
- package/dist/components/rich-text-editor/translations.d.ts.map +0 -1
- package/dist/components/rich-text-editor/translations.js +0 -120
- package/dist/components/table/translations.d.ts +0 -308
- package/dist/components/table/translations.d.ts.map +0 -1
- package/dist/components/table/translations.js +0 -267
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { ThemeRadius as t, ThemeSpace as n } from "../../theme/theme-types.js";
|
|
3
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
+
import { AspectRatio as a, Box as o, Flex as s, Image as c, VisuallyHidden as l, useMediaQuery as u, useSlotRecipe as d, useTabsContext as f } from "@chakra-ui/react";
|
|
5
5
|
//#region lib/components/tabs/tab-with-image.tsx
|
|
6
6
|
var p = e();
|
|
7
7
|
function m(e) {
|
|
8
8
|
let m = (0, p.c)(30), { value: h, imgAlt: g, imgSrc: _, children: v, isDisabled: y } = e, b;
|
|
9
9
|
m[0] === Symbol.for("react.memo_cache_sentinel") ? (b = ["(min-width: 48em)"], m[0] = b) : b = m[0];
|
|
10
|
-
let [x] =
|
|
10
|
+
let [x] = u(b), S = x ? "96px" : "72px", C = f(), w;
|
|
11
11
|
m[1] !== C || m[2] !== h ? (w = C.getTriggerProps({ value: h }), m[1] = C, m[2] = h, m[3] = w) : w = m[3];
|
|
12
12
|
let T = w, E;
|
|
13
13
|
m[4] === Symbol.for("react.memo_cache_sentinel") ? (E = { key: "tabs" }, m[4] = E) : E = m[4];
|
|
14
|
-
let D =
|
|
14
|
+
let D = d(E), O = x ? "md" : "sm", k;
|
|
15
15
|
m[5] !== O || m[6] !== D ? (k = D({
|
|
16
16
|
variant: "default",
|
|
17
17
|
size: O
|
|
18
18
|
}), m[5] = O, m[6] = D, m[7] = k) : k = m[7];
|
|
19
19
|
let A = k, j;
|
|
20
|
-
m[8] === v ? j = m[9] : (j = /* @__PURE__ */
|
|
20
|
+
m[8] === v ? j = m[9] : (j = /* @__PURE__ */ r(l, { children: v }), m[8] = v, m[9] = j);
|
|
21
21
|
let M;
|
|
22
|
-
m[10] !== S || m[11] !== g || m[12] !== _ ? (M = /* @__PURE__ */
|
|
22
|
+
m[10] !== S || m[11] !== g || m[12] !== _ ? (M = /* @__PURE__ */ r(c, {
|
|
23
23
|
src: _,
|
|
24
24
|
alt: g,
|
|
25
25
|
h: S,
|
|
@@ -28,7 +28,7 @@ function m(e) {
|
|
|
28
28
|
borderRadius: t.Medium
|
|
29
29
|
}), m[10] = S, m[11] = g, m[12] = _, m[13] = M) : M = m[13];
|
|
30
30
|
let N;
|
|
31
|
-
m[14] !== S || m[15] !== M ? (N = /* @__PURE__ */
|
|
31
|
+
m[14] !== S || m[15] !== M ? (N = /* @__PURE__ */ r(a, {
|
|
32
32
|
ratio: 1,
|
|
33
33
|
maxWidth: S,
|
|
34
34
|
minWidth: S,
|
|
@@ -36,7 +36,7 @@ function m(e) {
|
|
|
36
36
|
children: M
|
|
37
37
|
}), m[14] = S, m[15] = M, m[16] = N) : N = m[16];
|
|
38
38
|
let P = T["aria-selected"] ? !0 : void 0, F = y ? !0 : void 0, I;
|
|
39
|
-
m[17] !== v || m[18] !== A.trigger || m[19] !== F || m[20] !== P ? (I = /* @__PURE__ */
|
|
39
|
+
m[17] !== v || m[18] !== A.trigger || m[19] !== F || m[20] !== P ? (I = /* @__PURE__ */ r(o, {
|
|
40
40
|
outline: "none",
|
|
41
41
|
css: A.trigger,
|
|
42
42
|
"data-selected": P,
|
|
@@ -44,14 +44,14 @@ function m(e) {
|
|
|
44
44
|
children: v
|
|
45
45
|
}), m[17] = v, m[18] = A.trigger, m[19] = F, m[20] = P, m[21] = I) : I = m[21];
|
|
46
46
|
let L;
|
|
47
|
-
m[22] !== I || m[23] !== N ? (L = /* @__PURE__ */
|
|
47
|
+
m[22] !== I || m[23] !== N ? (L = /* @__PURE__ */ i(s, {
|
|
48
48
|
direction: "column",
|
|
49
49
|
align: "center",
|
|
50
50
|
role: "group",
|
|
51
51
|
children: [N, I]
|
|
52
52
|
}), m[22] = I, m[23] = N, m[24] = L) : L = m[24];
|
|
53
53
|
let R;
|
|
54
|
-
return m[25] !== y || m[26] !== L || m[27] !== j || m[28] !== T ? (R = /* @__PURE__ */
|
|
54
|
+
return m[25] !== y || m[26] !== L || m[27] !== j || m[28] !== T ? (R = /* @__PURE__ */ i("button", {
|
|
55
55
|
...T,
|
|
56
56
|
disabled: y,
|
|
57
57
|
children: [j, L]
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
2
|
import { CustomTabWithImage as t } from "./tab-with-image.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { Tabs as r } from "@chakra-ui/react";
|
|
5
5
|
//#region lib/components/tabs/tab.tsx
|
|
6
6
|
var i = e();
|
|
7
7
|
function a(e) {
|
|
8
8
|
let a = (0, i.c)(18), o, s, c, l, u, d;
|
|
9
9
|
if (a[0] === e ? (o = a[1], s = a[2], c = a[3], l = a[4], u = a[5], d = a[6]) : ({imgSrc: l, imgAlt: s, imgFallbackColor: c, children: o, isDisabled: u, ...d} = e, a[0] = e, a[1] = o, a[2] = s, a[3] = c, a[4] = l, a[5] = u, a[6] = d), l) {
|
|
10
10
|
let e;
|
|
11
|
-
return a[7] !== o || a[8] !== s || a[9] !== c || a[10] !== l || a[11] !== u || a[12] !== d ? (e = /* @__PURE__ */
|
|
11
|
+
return a[7] !== o || a[8] !== s || a[9] !== c || a[10] !== l || a[11] !== u || a[12] !== d ? (e = /* @__PURE__ */ n(t, {
|
|
12
12
|
imgAlt: s,
|
|
13
13
|
imgSrc: l,
|
|
14
14
|
imgFallbackColor: c,
|
|
@@ -18,7 +18,7 @@ function a(e) {
|
|
|
18
18
|
}), a[7] = o, a[8] = s, a[9] = c, a[10] = l, a[11] = u, a[12] = d, a[13] = e) : e = a[13], e;
|
|
19
19
|
}
|
|
20
20
|
let f;
|
|
21
|
-
return a[14] !== o || a[15] !== u || a[16] !== d ? (f = /* @__PURE__ */ r
|
|
21
|
+
return a[14] !== o || a[15] !== u || a[16] !== d ? (f = /* @__PURE__ */ n(r.Trigger, {
|
|
22
22
|
disabled: u,
|
|
23
23
|
...d,
|
|
24
24
|
children: o
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ThemeBorderToken as e, ThemeColorToken as t, ThemeFontSizeToken as n, ThemeFontToken as r, ThemeRadiusToken as i } from "../../theme/theme-tokens.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ThemeColor as a, ThemeSpace as o } from "../../theme/theme-types.js";
|
|
3
3
|
import { defineSlotRecipe as s } from "@chakra-ui/react";
|
|
4
4
|
import { tabsAnatomy as c } from "@chakra-ui/react/anatomy";
|
|
5
5
|
//#region lib/components/tabs/tabs-recipe.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { Tabs as n } from "@chakra-ui/react";
|
|
4
4
|
//#region lib/components/tabs/tabs.tsx
|
|
5
5
|
var r = e();
|
|
6
6
|
function i(e) {
|
|
@@ -12,7 +12,7 @@ function i(e) {
|
|
|
12
12
|
md: "md"
|
|
13
13
|
}, i[6] = d) : d = i[6];
|
|
14
14
|
let f;
|
|
15
|
-
return i[7] !== a || i[8] !== o || i[9] !== s || i[10] !== c || i[11] !== u ? (f = /* @__PURE__ */ n
|
|
15
|
+
return i[7] !== a || i[8] !== o || i[9] !== s || i[10] !== c || i[11] !== u ? (f = /* @__PURE__ */ t(n.Root, {
|
|
16
16
|
variant: u,
|
|
17
17
|
fitted: o,
|
|
18
18
|
lazyMount: s,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ThemeColor, ThemeStyleProps } from '../../theme/index.js';
|
|
2
2
|
import { BoxProps, Tabs as ChakraTabs } from '@chakra-ui/react';
|
|
3
3
|
export type TabListProps = Pick<ChakraTabs.ListProps, "children"> & ThemeStyleProps;
|
|
4
4
|
export type TabPanelsProps = Pick<BoxProps, "children"> & ThemeStyleProps;
|
|
@@ -15,7 +15,7 @@ type CustomTabProps = {
|
|
|
15
15
|
imgAlt?: string | undefined;
|
|
16
16
|
/** Color to use for an image fallback.
|
|
17
17
|
* Is set as background color for a placeholder box seen until image is loaded. */
|
|
18
|
-
imgFallbackColor?:
|
|
18
|
+
imgFallbackColor?: ThemeColor | undefined;
|
|
19
19
|
};
|
|
20
20
|
type ConditionalTabProps = {
|
|
21
21
|
imgSrc: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAErE,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG,eAAe,CAAC;AAEpF,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG,eAAe,CAAC;AAE1E,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,eAAe,CAAC;AAElG,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,GAAG,cAAc,GAAG,eAAe,GAAG,OAAO,CAAC,GAC1G,eAAe,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAG7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEH,KAAK,cAAc,GAAG;IACrB,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,2FAA2F;IAC3F,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;sFACkF;IAClF,gBAAgB,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,KAAK,mBAAmB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,MAAM,CAAC,EAAE,SAAS,CAAC;IAAC,MAAM,CAAC,EAAE,SAAS,CAAA;CAAE,CAAC;AAE3G,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,GAAG,OAAO,CAAC,GACzE,eAAe,GACf,cAAc,GACd,mBAAmB,GAAG;IAErB,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ThemeColor as e, ThemeFont as t, ThemeFontSize as n, ThemeIconSize as r, ThemeRadius as i, ThemeSpace as a } from "../../theme/theme-types.js";
|
|
2
2
|
import { defineSlotRecipe as o } from "@chakra-ui/react";
|
|
3
3
|
import { tagAnatomy as s } from "@chakra-ui/react/anatomy";
|
|
4
4
|
//#region lib/components/tag/tag-recipe.ts
|
|
@@ -161,7 +161,7 @@ var d = o({
|
|
|
161
161
|
textWrap: "unset",
|
|
162
162
|
mx: a.XSmall,
|
|
163
163
|
letterSpacing: "0.0125em",
|
|
164
|
-
font:
|
|
164
|
+
font: t.Body
|
|
165
165
|
},
|
|
166
166
|
closeTrigger: {
|
|
167
167
|
opacity: "0.48",
|
|
@@ -182,7 +182,7 @@ var d = o({
|
|
|
182
182
|
width: r.Small
|
|
183
183
|
}
|
|
184
184
|
},
|
|
185
|
-
label: { fontSize:
|
|
185
|
+
label: { fontSize: n.Small },
|
|
186
186
|
closeTrigger: {
|
|
187
187
|
boxSize: r.Small,
|
|
188
188
|
"& svg": { boxSize: r.Small }
|
|
@@ -198,7 +198,7 @@ var d = o({
|
|
|
198
198
|
width: r.Medium
|
|
199
199
|
}
|
|
200
200
|
},
|
|
201
|
-
label: { fontSize:
|
|
201
|
+
label: { fontSize: n.Medium },
|
|
202
202
|
closeTrigger: {
|
|
203
203
|
boxSize: r.Medium,
|
|
204
204
|
"& svg": { boxSize: r.Medium }
|
|
@@ -214,7 +214,7 @@ var d = o({
|
|
|
214
214
|
width: r.Medium
|
|
215
215
|
}
|
|
216
216
|
},
|
|
217
|
-
label: { fontSize:
|
|
217
|
+
label: { fontSize: n.Medium },
|
|
218
218
|
closeTrigger: {
|
|
219
219
|
boxSize: r.Medium,
|
|
220
220
|
"& svg": { boxSize: r.Medium }
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
2
|
import { CloseIcon as t } from "../icon/icons/close-icon.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
+
import { Tag as a, TagLabel as o } from "@chakra-ui/react";
|
|
5
5
|
//#region lib/components/tag/tag.tsx
|
|
6
6
|
var s = e();
|
|
7
7
|
function c(e) {
|
|
8
8
|
let c = (0, s.c)(33), l, u, d, f, p, m, h, g, _, v, y;
|
|
9
9
|
c[0] === e ? (l = c[1], u = c[2], d = c[3], f = c[4], p = c[5], m = c[6], h = c[7], g = c[8], _ = c[9], v = c[10], y = c[11]) : ({children: d, icon: f, onClose: m, ariaLabel: u, prepend: h, size: v, variant: y, solid: _, isDisabled: p, append: l, ...g} = e, c[0] = e, c[1] = l, c[2] = u, c[3] = d, c[4] = f, c[5] = p, c[6] = m, c[7] = h, c[8] = g, c[9] = _, c[10] = v, c[11] = y);
|
|
10
10
|
let b = v === void 0 ? "xs" : v, x = y === void 0 ? "neutral" : y, S = f, C = _ ? `${x}Solid` : x, w;
|
|
11
|
-
c[12] === S ? w = c[13] : (w = S && /* @__PURE__ */
|
|
11
|
+
c[12] === S ? w = c[13] : (w = S && /* @__PURE__ */ r(S, { className: "tag-icon" }), c[12] = S, c[13] = w);
|
|
12
12
|
let T;
|
|
13
|
-
c[14] === h ? T = c[15] : (T = h && /* @__PURE__ */
|
|
13
|
+
c[14] === h ? T = c[15] : (T = h && /* @__PURE__ */ r(n, { children: h }), c[14] = h, c[15] = T);
|
|
14
14
|
let E;
|
|
15
|
-
c[16] === d ? E = c[17] : (E = /* @__PURE__ */
|
|
15
|
+
c[16] === d ? E = c[17] : (E = /* @__PURE__ */ r(o, {
|
|
16
16
|
display: "flex",
|
|
17
17
|
alignContent: "center",
|
|
18
18
|
children: d
|
|
19
19
|
}), c[16] = d, c[17] = E);
|
|
20
20
|
let D;
|
|
21
|
-
c[18] === l ? D = c[19] : (D = l && /* @__PURE__ */
|
|
21
|
+
c[18] === l ? D = c[19] : (D = l && /* @__PURE__ */ r(n, { children: l }), c[18] = l, c[19] = D);
|
|
22
22
|
let O;
|
|
23
|
-
c[20] !== u || c[21] !== p || c[22] !== m ? (O = m && /* @__PURE__ */ a
|
|
23
|
+
c[20] !== u || c[21] !== p || c[22] !== m ? (O = m && /* @__PURE__ */ r(a.CloseTrigger, {
|
|
24
24
|
"aria-label": u,
|
|
25
25
|
disabled: p,
|
|
26
26
|
color: "inherit",
|
|
27
27
|
onClick: m,
|
|
28
|
-
children: /* @__PURE__ */
|
|
28
|
+
children: /* @__PURE__ */ r(t, {})
|
|
29
29
|
}), c[20] = u, c[21] = p, c[22] = m, c[23] = O) : O = c[23];
|
|
30
30
|
let k;
|
|
31
|
-
return c[24] !== g || c[25] !== C || c[26] !== b || c[27] !== w || c[28] !== T || c[29] !== E || c[30] !== D || c[31] !== O ? (k = /* @__PURE__ */
|
|
31
|
+
return c[24] !== g || c[25] !== C || c[26] !== b || c[27] !== w || c[28] !== T || c[29] !== E || c[30] !== D || c[31] !== O ? (k = /* @__PURE__ */ i(a.Root, {
|
|
32
32
|
size: b,
|
|
33
33
|
variant: C,
|
|
34
34
|
...g,
|
|
@@ -42,79 +42,79 @@ function c(e) {
|
|
|
42
42
|
}), c[24] = g, c[25] = C, c[26] = b, c[27] = w, c[28] = T, c[29] = E, c[30] = D, c[31] = O, c[32] = k) : k = c[32], k;
|
|
43
43
|
}
|
|
44
44
|
var l = Object.assign(c, {
|
|
45
|
-
Neutral: (e) => /* @__PURE__ */
|
|
45
|
+
Neutral: (e) => /* @__PURE__ */ r(c, {
|
|
46
46
|
...e,
|
|
47
47
|
variant: "neutral"
|
|
48
48
|
}),
|
|
49
|
-
Primary: (e) => /* @__PURE__ */
|
|
49
|
+
Primary: (e) => /* @__PURE__ */ r(c, {
|
|
50
50
|
...e,
|
|
51
51
|
variant: "primary"
|
|
52
52
|
}),
|
|
53
|
-
Secondary: (e) => /* @__PURE__ */
|
|
53
|
+
Secondary: (e) => /* @__PURE__ */ r(c, {
|
|
54
54
|
...e,
|
|
55
55
|
variant: "secondary"
|
|
56
56
|
}),
|
|
57
|
-
Success: (e) => /* @__PURE__ */
|
|
57
|
+
Success: (e) => /* @__PURE__ */ r(c, {
|
|
58
58
|
...e,
|
|
59
59
|
variant: "success"
|
|
60
60
|
}),
|
|
61
|
-
Error: (e) => /* @__PURE__ */
|
|
61
|
+
Error: (e) => /* @__PURE__ */ r(c, {
|
|
62
62
|
...e,
|
|
63
63
|
variant: "error"
|
|
64
64
|
}),
|
|
65
|
-
Warning: (e) => /* @__PURE__ */
|
|
65
|
+
Warning: (e) => /* @__PURE__ */ r(c, {
|
|
66
66
|
...e,
|
|
67
67
|
variant: "warning"
|
|
68
68
|
}),
|
|
69
|
-
Info: (e) => /* @__PURE__ */
|
|
69
|
+
Info: (e) => /* @__PURE__ */ r(c, {
|
|
70
70
|
...e,
|
|
71
71
|
variant: "info"
|
|
72
72
|
}),
|
|
73
|
-
Muted: (e) => /* @__PURE__ */
|
|
73
|
+
Muted: (e) => /* @__PURE__ */ r(c, {
|
|
74
74
|
...e,
|
|
75
75
|
variant: "muted"
|
|
76
76
|
}),
|
|
77
|
-
Strong: (e) => /* @__PURE__ */
|
|
77
|
+
Strong: (e) => /* @__PURE__ */ r(c, {
|
|
78
78
|
...e,
|
|
79
79
|
variant: "strong"
|
|
80
80
|
}),
|
|
81
|
-
PickerBerry: (e) => /* @__PURE__ */
|
|
81
|
+
PickerBerry: (e) => /* @__PURE__ */ r(c, {
|
|
82
82
|
...e,
|
|
83
83
|
variant: "pickerBerry"
|
|
84
84
|
}),
|
|
85
|
-
PickerCoral: (e) => /* @__PURE__ */
|
|
85
|
+
PickerCoral: (e) => /* @__PURE__ */ r(c, {
|
|
86
86
|
...e,
|
|
87
87
|
variant: "pickerCoral"
|
|
88
88
|
}),
|
|
89
|
-
PickerFlamingo: (e) => /* @__PURE__ */
|
|
89
|
+
PickerFlamingo: (e) => /* @__PURE__ */ r(c, {
|
|
90
90
|
...e,
|
|
91
91
|
variant: "pickerFlamingo"
|
|
92
92
|
}),
|
|
93
|
-
PickerFog: (e) => /* @__PURE__ */
|
|
93
|
+
PickerFog: (e) => /* @__PURE__ */ r(c, {
|
|
94
94
|
...e,
|
|
95
95
|
variant: "pickerFog"
|
|
96
96
|
}),
|
|
97
|
-
PickerHoney: (e) => /* @__PURE__ */
|
|
97
|
+
PickerHoney: (e) => /* @__PURE__ */ r(c, {
|
|
98
98
|
...e,
|
|
99
99
|
variant: "pickerHoney"
|
|
100
100
|
}),
|
|
101
|
-
PickerLemon: (e) => /* @__PURE__ */
|
|
101
|
+
PickerLemon: (e) => /* @__PURE__ */ r(c, {
|
|
102
102
|
...e,
|
|
103
103
|
variant: "pickerLemon"
|
|
104
104
|
}),
|
|
105
|
-
PickerLime: (e) => /* @__PURE__ */
|
|
105
|
+
PickerLime: (e) => /* @__PURE__ */ r(c, {
|
|
106
106
|
...e,
|
|
107
107
|
variant: "pickerLime"
|
|
108
108
|
}),
|
|
109
|
-
PickerOlive: (e) => /* @__PURE__ */
|
|
109
|
+
PickerOlive: (e) => /* @__PURE__ */ r(c, {
|
|
110
110
|
...e,
|
|
111
111
|
variant: "pickerOlive"
|
|
112
112
|
}),
|
|
113
|
-
PickerPlum: (e) => /* @__PURE__ */
|
|
113
|
+
PickerPlum: (e) => /* @__PURE__ */ r(c, {
|
|
114
114
|
...e,
|
|
115
115
|
variant: "pickerPlum"
|
|
116
116
|
}),
|
|
117
|
-
PickerSky: (e) => /* @__PURE__ */
|
|
117
|
+
PickerSky: (e) => /* @__PURE__ */ r(c, {
|
|
118
118
|
...e,
|
|
119
119
|
variant: "pickerSky"
|
|
120
120
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../lib/components/text/text.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../lib/components/text/text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AACzE,OAAO,EAAsB,KAAK,SAAS,IAAI,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEzF,KAAK,gBAAgB,GAAG;IACvB,gEAAgE;IAChE,EAAE,CAAC,EAAE,GAAG,GAAG,MAAM,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAG3C,UAAU,CAAC,EAAE,eAAe,CAAC,gBAAgB,CAAC,CAAC;IAC/C,SAAS,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IACzC,KAAK,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;CAC1C,CAAC;AAEF,KAAK,oBAAoB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;AAE9D,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,oBAAoB,GAAG,gBAAgB,CAAC;AAElF;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,EACpB,EAAQ,EACR,UAA2B,EAC3B,QAA+B,EAC/B,UAAqB,EACrB,KAAK,EACL,QAAQ,EACR,UAAU,EACV,SAAS,EACT,KAAK,EACL,MAAM,EACN,WAAW,EACX,GAAG,KAAK,EACR,EAAE,SAAS,+BAkBX"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { ThemeFont as t, ThemeFontSize as n } from "../../theme/theme-types.js";
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
import { Text as i } from "@chakra-ui/react";
|
|
5
5
|
//#region lib/components/text/text.tsx
|
|
6
6
|
var a = e();
|
|
7
7
|
function o(e) {
|
|
8
8
|
let o = (0, a.c)(26), s, c, l, u, d, f, p, m, h, g, _, v;
|
|
9
9
|
o[0] === e ? (s = o[1], c = o[2], l = o[3], u = o[4], d = o[5], f = o[6], p = o[7], m = o[8], h = o[9], g = o[10], _ = o[11], v = o[12]) : ({as: h, fontFamily: g, fontSize: _, fontWeight: v, color: u, children: l, decoration: d, noOfLines: p, align: s, casing: c, isTruncated: f, ...m} = e, o[0] = e, o[1] = s, o[2] = c, o[3] = l, o[4] = u, o[5] = d, o[6] = f, o[7] = p, o[8] = m, o[9] = h, o[10] = g, o[11] = _, o[12] = v);
|
|
10
|
-
let y = h === void 0 ? "p" : h, b = g === void 0 ?
|
|
11
|
-
return o[13] !== s || o[14] !== y || o[15] !== c || o[16] !== l || o[17] !== u || o[18] !== d || o[19] !== b || o[20] !== x || o[21] !== S || o[22] !== f || o[23] !== p || o[24] !== m ? (C = /* @__PURE__ */ i
|
|
10
|
+
let y = h === void 0 ? "p" : h, b = g === void 0 ? t.Body : g, x = _ === void 0 ? n.Medium : _, S = v === void 0 ? "normal" : v, C;
|
|
11
|
+
return o[13] !== s || o[14] !== y || o[15] !== c || o[16] !== l || o[17] !== u || o[18] !== d || o[19] !== b || o[20] !== x || o[21] !== S || o[22] !== f || o[23] !== p || o[24] !== m ? (C = /* @__PURE__ */ r(i, {
|
|
12
12
|
as: y,
|
|
13
13
|
fontFamily: b,
|
|
14
14
|
fontSize: x,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isTouchScreenDevice as e } from "../../theme/theme-helper.js";
|
|
2
2
|
import { ThemeBorderToken as t, ThemeColorToken as n, ThemeFontToken as r, ThemeRadiusToken as i, ThemeSpaceToken as a } from "../../theme/theme-tokens.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor as o } from "../../theme/theme-types.js";
|
|
4
4
|
import { defineRecipe as s } from "@chakra-ui/react";
|
|
5
5
|
//#region lib/components/textarea/textarea-recipe.ts
|
|
6
6
|
var c = {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
2
|
import t from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { Textarea as r } from "@chakra-ui/react";
|
|
5
5
|
//#region lib/components/textarea/textarea.tsx
|
|
6
6
|
var i = e(), a = t.forwardRef((e, t) => {
|
|
7
7
|
let a = (0, i.c)(13), o, s, c, l, u;
|
|
8
8
|
a[0] === e ? (o = a[1], s = a[2], c = a[3], l = a[4], u = a[5]) : ({isDisabled: o, isReadOnly: s, isRequired: c, resize: l, ...u} = e, a[0] = e, a[1] = o, a[2] = s, a[3] = c, a[4] = l, a[5] = u);
|
|
9
9
|
let d;
|
|
10
|
-
return a[6] !== o || a[7] !== s || a[8] !== c || a[9] !== t || a[10] !== l || a[11] !== u ? (d = /* @__PURE__ */ r
|
|
10
|
+
return a[6] !== o || a[7] !== s || a[8] !== c || a[9] !== t || a[10] !== l || a[11] !== u ? (d = /* @__PURE__ */ n(r, {
|
|
11
11
|
resize: l,
|
|
12
12
|
ref: t,
|
|
13
13
|
disabled: o,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AlertType } from '../alert/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { ThemeSpace } from '../../theme/index.js';
|
|
3
3
|
import { ConditionalValue, CreateToasterReturn } from '@chakra-ui/react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
export type ShowToastOptions = {
|
|
@@ -14,7 +14,7 @@ export type ShowToastOptions = {
|
|
|
14
14
|
* Distance from the bottom of the screen to the toast.
|
|
15
15
|
* Defaults to 48px on larger screens and 8px on smaller screens.
|
|
16
16
|
*/
|
|
17
|
-
distanceToBottom?: ConditionalValue<
|
|
17
|
+
distanceToBottom?: ConditionalValue<ThemeSpace | (string & {})>;
|
|
18
18
|
/** Duration in milliseconds for which the toast is visible. Set to `null` for indefinite duration. */
|
|
19
19
|
duration?: number | null;
|
|
20
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast-store.d.ts","sourceRoot":"","sources":["../../../lib/components/toaster/toast-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toast-store.d.ts","sourceRoot":"","sources":["../../../lib/components/toaster/toast-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAEN,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,gBAAgB,GAAG;IAC9B,uDAAuD;IACvD,WAAW,EAAE,SAAS,CAAC;IACvB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;kEAC8D;IAC9D,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC;IAEhE,sGAAsG;IACtG,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE,gBAAgB,QAgBnG;AAGD,eAAO,MAAM,UAAU,EAAE,mBASvB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ThemeShadow as t, ThemeSpace as n } from "../../theme/theme-types.js";
|
|
3
3
|
import { Alert as r } from "../alert/alert.js";
|
|
4
4
|
import { toastStore as i } from "./toast-store.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
6
|
+
import { Portal as o, Toast as s, Toaster as c } from "@chakra-ui/react";
|
|
7
7
|
//#region lib/components/toaster/toaster.tsx
|
|
8
8
|
var l = e(), u = () => {
|
|
9
9
|
let e = (0, l.c)(2), u;
|
|
@@ -12,20 +12,20 @@ var l = e(), u = () => {
|
|
|
12
12
|
md: "560px"
|
|
13
13
|
}, e[0] = u) : u = e[0];
|
|
14
14
|
let f = u, p = d, m;
|
|
15
|
-
return e[1] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */
|
|
15
|
+
return e[1] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ a(o, { children: /* @__PURE__ */ a(c, {
|
|
16
16
|
toaster: i,
|
|
17
17
|
children: (e) => {
|
|
18
|
-
let { id:
|
|
19
|
-
return /* @__PURE__ */
|
|
18
|
+
let { id: o, title: c, description: l, type: u, closable: d, meta: m } = e, h = d === void 0 || d;
|
|
19
|
+
return /* @__PURE__ */ a(s.Root, {
|
|
20
20
|
width: f,
|
|
21
21
|
padding: n.Small,
|
|
22
22
|
pb: p(m),
|
|
23
|
-
children: /* @__PURE__ */
|
|
24
|
-
title:
|
|
23
|
+
children: /* @__PURE__ */ a(r, {
|
|
24
|
+
title: c,
|
|
25
25
|
type: m?.alertType ?? u,
|
|
26
|
-
onClose: h ? () => i.remove(
|
|
26
|
+
onClose: h ? () => i.remove(o) : void 0,
|
|
27
27
|
boxShadow: t.Small,
|
|
28
|
-
children: /* @__PURE__ */
|
|
28
|
+
children: /* @__PURE__ */ a(s.Description, { children: l })
|
|
29
29
|
})
|
|
30
30
|
});
|
|
31
31
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
2
|
import { useButtonChildren as t } from "./use-button-children.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { Button as r } from "@chakra-ui/react";
|
|
5
5
|
//#region lib/components/toggle-button/toggle-button.tsx
|
|
6
6
|
var i = e();
|
|
7
7
|
function a(e) {
|
|
@@ -11,7 +11,7 @@ function a(e) {
|
|
|
11
11
|
c = t, o = n, l = r, s = d, a[0] = e, a[1] = o, a[2] = s, a[3] = c, a[4] = l;
|
|
12
12
|
} else o = a[1], s = a[2], c = a[3], l = a[4];
|
|
13
13
|
let u = c !== void 0 && c, d = l === void 0 ? "outline" : l, f = t(e), p = d === "ghost" ? "toggleGhost" : "toggle", m;
|
|
14
|
-
return a[5] !== f || a[6] !== p || a[7] !== o || a[8] !== u || a[9] !== s ? (m = /* @__PURE__ */ r
|
|
14
|
+
return a[5] !== f || a[6] !== p || a[7] !== o || a[8] !== u || a[9] !== s ? (m = /* @__PURE__ */ n(r, {
|
|
15
15
|
"aria-pressed": u,
|
|
16
16
|
type: "button",
|
|
17
17
|
variant: p,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { ThemeFontSize as t } from "../../theme/theme-types.js";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
import { Flex as i, Text as a, useBreakpointValue as o } from "@chakra-ui/react";
|
|
5
5
|
//#region lib/components/toggle-button/use-button-children.tsx
|
|
6
6
|
var s = e(), c = ["md", "lg"];
|
|
7
7
|
function l(e) {
|
|
@@ -9,27 +9,27 @@ function l(e) {
|
|
|
9
9
|
l[0] === p ? m = l[1] : (m = typeof p == "string" || p === void 0 ? { base: p } : p, l[0] = p, l[1] = m);
|
|
10
10
|
let h;
|
|
11
11
|
l[2] === Symbol.for("react.memo_cache_sentinel") ? (h = { ssr: !1 }, l[2] = h) : h = l[2];
|
|
12
|
-
let g =
|
|
12
|
+
let g = o(m, h), _ = g && c.includes(g);
|
|
13
13
|
if (f && _) {
|
|
14
14
|
let e;
|
|
15
|
-
l[3] === d ? e = l[4] : (e = /* @__PURE__ */ a
|
|
16
|
-
let
|
|
17
|
-
l[5] === f ?
|
|
15
|
+
l[3] === d ? e = l[4] : (e = /* @__PURE__ */ n(a, { children: d }), l[3] = d, l[4] = e);
|
|
16
|
+
let o;
|
|
17
|
+
l[5] === f ? o = l[6] : (o = /* @__PURE__ */ n(a, {
|
|
18
18
|
fontSize: t.XSmall,
|
|
19
19
|
textOverflow: "ellipsis",
|
|
20
20
|
whiteSpace: "nowrap",
|
|
21
21
|
overflow: "hidden",
|
|
22
22
|
width: "100%",
|
|
23
23
|
children: f
|
|
24
|
-
}), l[5] = f, l[6] =
|
|
24
|
+
}), l[5] = f, l[6] = o);
|
|
25
25
|
let s;
|
|
26
|
-
return l[7] !== e || l[8] !==
|
|
26
|
+
return l[7] !== e || l[8] !== o ? (s = /* @__PURE__ */ r(i, {
|
|
27
27
|
"aria-hidden": "true",
|
|
28
28
|
flexDirection: "column",
|
|
29
29
|
alignItems: "center",
|
|
30
30
|
overflow: "hidden",
|
|
31
|
-
children: [e,
|
|
32
|
-
}), l[7] = e, l[8] =
|
|
31
|
+
children: [e, o]
|
|
32
|
+
}), l[7] = e, l[8] = o, l[9] = s) : s = l[9], s;
|
|
33
33
|
}
|
|
34
34
|
return d;
|
|
35
35
|
}
|
|
@@ -12,6 +12,6 @@ export type TooltipProps = Pick<ChakraTooltip.RootProps, "children" | "disabled"
|
|
|
12
12
|
* @see Docs https://caspeco.github.io/casper-ui-library/components/tooltip
|
|
13
13
|
* @see WAI-ARIA https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/
|
|
14
14
|
*/
|
|
15
|
-
export declare function Tooltip(props: TooltipProps): string | number | bigint | boolean |
|
|
15
|
+
export declare function Tooltip(props: TooltipProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { ThemeColor as t, ThemeFont as n, ThemeFontSize as r, ThemeRadius as i, ThemeSpace as a } from "../../theme/theme-types.js";
|
|
3
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
4
|
+
import { Portal as l, Tooltip as u } from "@chakra-ui/react";
|
|
5
5
|
//#region lib/components/tooltip/tooltip.tsx
|
|
6
6
|
var d = e();
|
|
7
7
|
function f(e) {
|
|
8
8
|
let f = (0, d.c)(25), p, m, h, g, _, v, y, b;
|
|
9
9
|
f[0] === e ? (p = f[1], m = f[2], h = f[3], g = f[4], _ = f[5], v = f[6], y = f[7], b = f[8]) : ({children: p, label: h, placement: _, p: v, fontSize: y, fontFamily: b, disabled: m, ...g} = e, f[0] = e, f[1] = p, f[2] = m, f[3] = h, f[4] = g, f[5] = _, f[6] = v, f[7] = y, f[8] = b);
|
|
10
|
-
let x = _ === void 0 ? "bottom" : _, S = v === void 0 ? a.Small : v, C = y === void 0 ?
|
|
10
|
+
let x = _ === void 0 ? "bottom" : _, S = v === void 0 ? a.Small : v, C = y === void 0 ? r.Small : y, w = b === void 0 ? n.Body : b;
|
|
11
11
|
if (m) return p;
|
|
12
12
|
let T;
|
|
13
13
|
f[9] === x ? T = f[10] : (T = { placement: x }, f[9] = x, f[10] = T);
|
|
14
14
|
let E;
|
|
15
|
-
f[11] === p ? E = f[12] : (E = /* @__PURE__ */
|
|
15
|
+
f[11] === p ? E = f[12] : (E = /* @__PURE__ */ s(u.Trigger, {
|
|
16
16
|
asChild: !0,
|
|
17
|
-
children: /* @__PURE__ */
|
|
17
|
+
children: /* @__PURE__ */ s("span", { children: p })
|
|
18
18
|
}), f[11] = p, f[12] = E);
|
|
19
19
|
let D;
|
|
20
20
|
f[13] === Symbol.for("react.memo_cache_sentinel") ? (D = { "--tooltip-bg": t.OnSurface }, f[13] = D) : D = f[13];
|
|
21
21
|
let O;
|
|
22
|
-
f[14] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */
|
|
22
|
+
f[14] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ s(u.Arrow, {
|
|
23
23
|
css: { "--arrow-size": a.Small },
|
|
24
|
-
children: /* @__PURE__ */
|
|
24
|
+
children: /* @__PURE__ */ s(u.ArrowTip, {})
|
|
25
25
|
}), f[14] = O) : O = f[14];
|
|
26
26
|
let k;
|
|
27
|
-
f[15] !== w || f[16] !== C || f[17] !== h || f[18] !== S ? (k = /* @__PURE__ */ l
|
|
27
|
+
f[15] !== w || f[16] !== C || f[17] !== h || f[18] !== S ? (k = /* @__PURE__ */ s(l, { children: /* @__PURE__ */ s(u.Positioner, { children: /* @__PURE__ */ c(u.Content, {
|
|
28
28
|
p: S,
|
|
29
29
|
borderRadius: i.Medium,
|
|
30
30
|
fontSize: C,
|
|
@@ -34,7 +34,7 @@ function f(e) {
|
|
|
34
34
|
children: [O, h]
|
|
35
35
|
}) }) }), f[15] = w, f[16] = C, f[17] = h, f[18] = S, f[19] = k) : k = f[19];
|
|
36
36
|
let A;
|
|
37
|
-
return f[20] !== g || f[21] !== T || f[22] !== E || f[23] !== k ? (A = /* @__PURE__ */
|
|
37
|
+
return f[20] !== g || f[21] !== T || f[22] !== E || f[23] !== k ? (A = /* @__PURE__ */ s(o, { children: /* @__PURE__ */ c(u.Root, {
|
|
38
38
|
positioning: T,
|
|
39
39
|
...g,
|
|
40
40
|
children: [E, k]
|