@lifesg/react-design-system 4.0.0-alpha.2 → 4.0.0-alpha.3
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/_virtual/index.js +1 -1
- package/_virtual/index3.js +1 -1
- package/alert/alert.js +1 -1
- package/alert/alert.js.map +1 -1
- package/animations/loading-dots-spinner/loading-dots-spinner.js +1 -1
- package/animations/loading-dots-spinner/loading-dots-spinner.js.map +1 -1
- package/badge/badge.js +1 -1
- package/badge/badge.js.map +1 -1
- package/box-container/box-container.js +1 -1
- package/box-container/box-container.js.map +1 -1
- package/breadcrumb/breadcrumb.js +1 -1
- package/breadcrumb/breadcrumb.js.map +1 -1
- package/button/button.js +1 -1
- package/button/button.js.map +1 -1
- package/button/button.styles.d.ts +1 -0
- package/button/button.styles.js +1 -1
- package/button/button.styles.js.map +1 -1
- package/{cjs/button/button.styles_142m6cx.css → button/button.styles_bcpkzm.css} +2 -1
- package/cjs/_virtual/index.js +1 -1
- package/cjs/_virtual/index3.js +1 -1
- package/cjs/alert/alert.js +1 -1
- package/cjs/alert/alert.js.map +1 -1
- package/cjs/animations/loading-dots-spinner/loading-dots-spinner.js +1 -1
- package/cjs/animations/loading-dots-spinner/loading-dots-spinner.js.map +1 -1
- package/cjs/badge/badge.js +1 -1
- package/cjs/badge/badge.js.map +1 -1
- package/cjs/box-container/box-container.js +1 -1
- package/cjs/box-container/box-container.js.map +1 -1
- package/cjs/breadcrumb/breadcrumb.js +1 -1
- package/cjs/breadcrumb/breadcrumb.js.map +1 -1
- package/cjs/button/button.js +1 -1
- package/cjs/button/button.js.map +1 -1
- package/cjs/button/button.styles.js +1 -1
- package/cjs/button/button.styles.js.map +1 -1
- package/{button/button.styles_142m6cx.css → cjs/button/button.styles_bcpkzm.css} +2 -1
- package/cjs/countdown-timer/countdown-timer.js +1 -1
- package/cjs/countdown-timer/countdown-timer.js.map +1 -1
- package/cjs/countdown-timer/countdown-timer.styles.js +2 -0
- package/cjs/countdown-timer/countdown-timer.styles.js.map +1 -0
- package/cjs/countdown-timer/countdown-timer.styles_k50tkw.css +8 -0
- package/cjs/dashed-border/dashed-border.js +1 -1
- package/cjs/dashed-border/dashed-border.js.map +1 -1
- package/cjs/data-table/data-table.js +1 -1
- package/cjs/data-table/data-table.js.map +1 -1
- package/cjs/data-table/data-table.styles.js +1 -152
- package/cjs/data-table/data-table.styles.js.map +1 -1
- package/cjs/data-table/data-table.styles_1nj2uzq.css +26 -0
- package/cjs/date-input/date-input.js +1 -1
- package/cjs/date-input/date-input.js.map +1 -1
- package/cjs/date-input/date-input.styles.js +2 -0
- package/cjs/date-input/date-input.styles.js.map +1 -0
- package/cjs/date-input/date-input.styles_1r5kcc7.css +1 -0
- package/cjs/date-range-input/date-range-input.js +1 -1
- package/cjs/date-range-input/date-range-input.js.map +1 -1
- package/cjs/date-range-input/date-range-input.styles.js +2 -0
- package/cjs/date-range-input/date-range-input.styles.js.map +1 -0
- package/cjs/date-range-input/date-range-input.styles_1s7ojnj.css +4 -0
- package/cjs/divider/divider.js +1 -1
- package/cjs/divider/divider.js.map +1 -1
- package/cjs/e-signature/e-signature.js +1 -1
- package/cjs/e-signature/e-signature.js.map +1 -1
- package/cjs/e-signature/e-signature.styles.js +18 -18
- package/cjs/e-signature/e-signature.styles.js.map +1 -1
- package/cjs/error-display/error-display-data.js +1 -1
- package/cjs/error-display/error-display-data.js.map +1 -1
- package/cjs/error-display/error-display.js +1 -1
- package/cjs/error-display/error-display.js.map +1 -1
- package/cjs/error-display/helper.js +1 -1
- package/cjs/error-display/helper.js.map +1 -1
- package/cjs/external/lodash/isNumber.js +2 -0
- package/cjs/external/lodash/isNumber.js.map +1 -0
- package/cjs/external/lodash.clonedeep/index.js +1 -1
- package/cjs/external/lottie-colorify/lib/index.js +1 -1
- package/cjs/external/lottie-colorify/lib/index.js.map +1 -1
- package/cjs/external/prop-types/external/react-is/index.js +1 -1
- package/cjs/external/prop-types/index.js +1 -1
- package/cjs/external/prop-types/index.js.map +1 -1
- package/cjs/feedback-rating/feedback-rating-stars-container.js +1 -1
- package/cjs/feedback-rating/feedback-rating-stars-container.js.map +1 -1
- package/cjs/feedback-rating/feedback-rating-stars-container.styles.js +1 -36
- package/cjs/feedback-rating/feedback-rating-stars-container.styles.js.map +1 -1
- package/cjs/feedback-rating/feedback-rating-stars-container.styles_dmi8z9.css +4 -0
- package/cjs/feedback-rating/feedback-rating.js +1 -1
- package/cjs/feedback-rating/feedback-rating.js.map +1 -1
- package/cjs/feedback-rating/feedback-rating.styles.js +1 -37
- package/cjs/feedback-rating/feedback-rating.styles.js.map +1 -1
- package/cjs/feedback-rating/feedback-rating.styles_1kdklb6.css +4 -0
- package/cjs/file-download/file-list-card/file-list-card.js +1 -1
- package/cjs/file-download/file-list-card/file-list-card.js.map +1 -1
- package/cjs/file-upload/dropzone.js +1 -1
- package/cjs/file-upload/dropzone.js.map +1 -1
- package/cjs/file-upload/dropzone.styles.js +1 -34
- package/cjs/file-upload/dropzone.styles.js.map +1 -1
- package/cjs/file-upload/dropzone.styles_1pllsau.css +6 -0
- package/cjs/file-upload/file-item-edit.js +1 -1
- package/cjs/file-upload/file-item-edit.js.map +1 -1
- package/cjs/file-upload/file-item-edit.styles.js +1 -66
- package/cjs/file-upload/file-item-edit.styles.js.map +1 -1
- package/cjs/file-upload/file-item-edit.styles_1qbpbxj.css +10 -0
- package/cjs/file-upload/file-list-item/file-list-item-thumbnail.js +1 -34
- package/cjs/file-upload/file-list-item/file-list-item-thumbnail.js.map +1 -1
- package/cjs/file-upload/file-list-item/file-list-item-thumbnail.styles.js +2 -0
- package/cjs/file-upload/file-list-item/file-list-item-thumbnail.styles.js.map +1 -0
- package/cjs/file-upload/file-list-item/file-list-item-thumbnail.styles_1vrh1ve.css +4 -0
- package/cjs/file-upload/file-list-item/file-list-item.js +1 -1
- package/cjs/file-upload/file-list-item/file-list-item.js.map +1 -1
- package/cjs/file-upload/file-list-item/file-list-item.styles.js +1 -174
- package/cjs/file-upload/file-list-item/file-list-item.styles.js.map +1 -1
- package/cjs/file-upload/file-list-item/file-list-item.styles_y7my2m.css +14 -0
- package/cjs/file-upload/file-list.js +1 -1
- package/cjs/file-upload/file-list.js.map +1 -1
- package/cjs/file-upload/file-list.styles.js +1 -20
- package/cjs/file-upload/file-list.styles.js.map +1 -1
- package/cjs/file-upload/file-list.styles_16vplxk.css +3 -0
- package/cjs/file-upload/file-upload.js +1 -1
- package/cjs/file-upload/file-upload.js.map +1 -1
- package/cjs/file-upload/file-upload.styles.js +1 -40
- package/cjs/file-upload/file-upload.styles.js.map +1 -1
- package/cjs/file-upload/file-upload.styles_9ffwcd.css +8 -0
- package/cjs/filter/addons/filter-item-checkbox.js +1 -1
- package/cjs/filter/addons/filter-item-checkbox.js.map +1 -1
- package/cjs/filter/addons/filter-item-checkbox.styles.js +1 -72
- package/cjs/filter/addons/filter-item-checkbox.styles.js.map +1 -1
- package/cjs/filter/addons/filter-item-checkbox.styles_18l87i2.css +16 -0
- package/cjs/filter/filter-item-page.js +1 -1
- package/cjs/filter/filter-item-page.js.map +1 -1
- package/cjs/filter/filter-item-page.styles.js +1 -7
- package/cjs/filter/filter-item-page.styles.js.map +1 -1
- package/cjs/filter/filter-item-page.styles_17ewfrz.css +1 -0
- package/cjs/filter/filter-item.js +1 -1
- package/cjs/filter/filter-item.js.map +1 -1
- package/cjs/filter/filter-item.styles.js +1 -63
- package/cjs/filter/filter-item.styles.js.map +1 -1
- package/cjs/filter/filter-item.styles_1e3v6qq.css +17 -0
- package/cjs/filter/filter-modal.js +1 -1
- package/cjs/filter/filter-modal.js.map +1 -1
- package/cjs/filter/filter-modal.styles.js +1 -29
- package/cjs/filter/filter-modal.styles.js.map +1 -1
- package/cjs/filter/filter-modal.styles_e0ev97.css +8 -0
- package/cjs/filter/filter-sidebar.js +1 -1
- package/cjs/filter/filter-sidebar.js.map +1 -1
- package/cjs/filter/filter-sidebar.styles.js +1 -23
- package/cjs/filter/filter-sidebar.styles.js.map +1 -1
- package/cjs/filter/filter-sidebar.styles_cwvqql.css +4 -0
- package/cjs/filter/filter.js +1 -1
- package/cjs/filter/filter.js.map +1 -1
- package/cjs/filter/filter.styles.js +1 -26
- package/cjs/filter/filter.styles.js.map +1 -1
- package/cjs/filter/filter.styles_2fmaok.css +5 -0
- package/cjs/form/form-label-addon.js +1 -1
- package/cjs/form/form-label-addon.js.map +1 -1
- package/cjs/form/form-masked-input.js +1 -1
- package/cjs/form/form-masked-input.js.map +1 -1
- package/cjs/form/form-time-range-picker.js +1 -1
- package/cjs/form/form-time-range-picker.js.map +1 -1
- package/cjs/form/index.js.map +1 -1
- package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.js +1 -1
- package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.js.map +1 -1
- package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.styles.js +2 -0
- package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.styles.js.map +1 -0
- package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.styles_vc6y5c.css +75 -0
- package/cjs/fullscreen-image-carousel/stateful-image.js +1 -1
- package/cjs/fullscreen-image-carousel/stateful-image.js.map +1 -1
- package/cjs/fullscreen-image-carousel/stateful-image.styles.js +2 -0
- package/cjs/fullscreen-image-carousel/stateful-image.styles.js.map +1 -0
- package/cjs/fullscreen-image-carousel/stateful-image.styles_1xe8ypm.css +3 -0
- package/cjs/histogram-slider/histogram-slider.js +1 -1
- package/cjs/histogram-slider/histogram-slider.js.map +1 -1
- package/cjs/index.js +1 -1
- package/cjs/input-group/input-group-list-addon.js +1 -1
- package/cjs/input-group/input-group-list-addon.js.map +1 -1
- package/cjs/input-group/input-group-list-addon.styles.js +1 -1
- package/cjs/input-group/input-group-list-addon.styles.js.map +1 -1
- package/{input-group/input-group-list-addon.styles_1my6j2v.css → cjs/input-group/input-group-list-addon.styles_17iuqtw.css} +2 -2
- package/cjs/input-group/input-group.js +1 -1
- package/cjs/input-group/input-group.js.map +1 -1
- package/cjs/input-multi-select/input-multi-select.js +1 -1
- package/cjs/input-multi-select/input-multi-select.js.map +1 -1
- package/cjs/input-nested-multi-select/input-nested-multi-select.js +1 -1
- package/cjs/input-nested-multi-select/input-nested-multi-select.js.map +1 -1
- package/cjs/input-nested-select/input-nested-select.js +1 -1
- package/cjs/input-nested-select/input-nested-select.js.map +1 -1
- package/cjs/input-range-select/input-range-select.js +1 -1
- package/cjs/input-range-select/input-range-select.js.map +1 -1
- package/cjs/input-range-select/input-range-select.styles.js +2 -0
- package/cjs/input-range-select/input-range-select.styles.js.map +1 -0
- package/cjs/input-range-select/input-range-select.styles_adbrbm.css +2 -0
- package/cjs/input-range-slider/input-range-slider.js +1 -1
- package/cjs/input-range-slider/input-range-slider.js.map +1 -1
- package/cjs/input-range-slider/slider-components.js +1 -1
- package/cjs/input-range-slider/slider-components.js.map +1 -1
- package/cjs/input-select/input-select.js +1 -1
- package/cjs/input-select/input-select.js.map +1 -1
- package/cjs/language-switcher/dropdown-panel.js +2 -0
- package/cjs/language-switcher/dropdown-panel.js.map +1 -0
- package/cjs/language-switcher/dropdown-panel.styles.js +2 -0
- package/cjs/language-switcher/dropdown-panel.styles.js.map +1 -0
- package/cjs/language-switcher/dropdown-panel.styles_1z0n7qq.css +4 -0
- package/cjs/language-switcher/dropdown-variant.js +1 -1
- package/cjs/language-switcher/dropdown-variant.js.map +1 -1
- package/cjs/language-switcher/dropdown-variant.styles.js +2 -0
- package/cjs/language-switcher/dropdown-variant.styles.js.map +1 -0
- package/cjs/language-switcher/dropdown-variant.styles_16c4wc1.css +2 -0
- package/cjs/language-switcher/link-container-variant.js +1 -1
- package/cjs/language-switcher/link-container-variant.js.map +1 -1
- package/cjs/language-switcher/link-container-variant.styles.js +2 -0
- package/cjs/language-switcher/link-container-variant.styles.js.map +1 -0
- package/cjs/language-switcher/link-container-variant.styles_1blx9qm.css +5 -0
- package/cjs/layout/col-div.js +1 -1
- package/cjs/layout/col-div.js.map +1 -1
- package/cjs/link-list/components/common.js +1 -1
- package/cjs/link-list/components/common.js.map +1 -1
- package/cjs/link-list/components/link-list-eager.js +1 -1
- package/cjs/link-list/components/link-list-eager.js.map +1 -1
- package/cjs/link-list/components/link-list-lazy.js +1 -1
- package/cjs/link-list/components/link-list-lazy.js.map +1 -1
- package/cjs/link-list/link-list.js +1 -1
- package/cjs/link-list/link-list.js.map +1 -1
- package/cjs/link-list/link-list.styles.js +1 -89
- package/cjs/link-list/link-list.styles.js.map +1 -1
- package/cjs/link-list/link-list.styles_1g33nb4.css +13 -0
- package/cjs/local-nav/local-nav-dropdown/local-nav-dropdown.js +1 -1
- package/cjs/local-nav/local-nav-dropdown/local-nav-dropdown.js.map +1 -1
- package/cjs/local-nav/local-nav-dropdown/local-nav-dropdown.styles.js +1 -100
- package/cjs/local-nav/local-nav-dropdown/local-nav-dropdown.styles.js.map +1 -1
- package/cjs/local-nav/local-nav-dropdown/local-nav-dropdown.styles_ftv36t.css +13 -0
- package/cjs/local-nav/local-nav-menu/local-nav-menu.js +1 -1
- package/cjs/local-nav/local-nav-menu/local-nav-menu.js.map +1 -1
- package/cjs/local-nav/local-nav-menu/local-nav-menu.styles.js +1 -39
- package/cjs/local-nav/local-nav-menu/local-nav-menu.styles.js.map +1 -1
- package/cjs/local-nav/local-nav-menu/local-nav-menu.styles_pq19dh.css +5 -0
- package/cjs/markup/markup.js +1 -1
- package/cjs/markup/markup.js.map +1 -1
- package/cjs/masked-input/masked-input.js +1 -1
- package/cjs/masked-input/masked-input.js.map +1 -1
- package/cjs/masked-input/masked-input.styles.js +2 -0
- package/cjs/masked-input/masked-input.styles.js.map +1 -0
- package/cjs/masked-input/masked-input.styles_4i1qsy.css +16 -0
- package/cjs/menu/menu-content.js +1 -1
- package/cjs/menu/menu-content.js.map +1 -1
- package/cjs/menu/menu-content.styles.js +1 -1
- package/cjs/menu/menu-content.styles.js.map +1 -1
- package/cjs/menu/{menu-content.styles_1b7d6qf.css → menu-content.styles_p7ijll.css} +1 -1
- package/cjs/menu/menu.js +1 -1
- package/cjs/menu/menu.js.map +1 -1
- package/cjs/modal/modal.js +1 -1
- package/cjs/modal/modal.js.map +1 -1
- package/cjs/modal-v2/modal-v2.js +1 -1
- package/cjs/modal-v2/modal-v2.js.map +1 -1
- package/cjs/navbar/brand.js +1 -1
- package/cjs/navbar/brand.js.map +1 -1
- package/cjs/navbar/brand.styles.js +1 -12
- package/cjs/navbar/brand.styles.js.map +1 -1
- package/cjs/navbar/brand.styles_zcgddp.css +1 -0
- package/cjs/navbar/drawer.js +1 -1
- package/cjs/navbar/drawer.js.map +1 -1
- package/cjs/navbar/drawer.styles.js +1 -65
- package/cjs/navbar/drawer.styles.js.map +1 -1
- package/cjs/navbar/drawer.styles_7hnxp5.css +8 -0
- package/cjs/navbar/menu.js +1 -1
- package/cjs/navbar/menu.js.map +1 -1
- package/cjs/navbar/menu.styles.js +1 -34
- package/cjs/navbar/menu.styles.js.map +1 -1
- package/cjs/navbar/menu.styles_gdpqc.css +3 -0
- package/cjs/navbar/navbar-action-buttons.js +1 -1
- package/cjs/navbar/navbar-action-buttons.js.map +1 -1
- package/cjs/navbar/navbar-action-buttons.styles.js +1 -100
- package/cjs/navbar/navbar-action-buttons.styles.js.map +1 -1
- package/cjs/navbar/navbar-action-buttons.styles_1vpm0nk.css +10 -0
- package/cjs/navbar/navbar-items.js +1 -1
- package/cjs/navbar/navbar-items.js.map +1 -1
- package/cjs/navbar/navbar-items.styles.js +1 -114
- package/cjs/navbar/navbar-items.styles.js.map +1 -1
- package/cjs/navbar/navbar-items.styles_i9cunu.css +19 -0
- package/cjs/navbar/navbar-logo-data.js +1 -1
- package/cjs/navbar/navbar-logo-data.js.map +1 -1
- package/cjs/navbar/navbar.js +1 -1
- package/cjs/navbar/navbar.js.map +1 -1
- package/cjs/navbar/navbar.styles.js +1 -79
- package/cjs/navbar/navbar.styles.js.map +1 -1
- package/cjs/navbar/navbar.styles_koy0c7.css +20 -0
- package/cjs/notification-banner/notification-banner.js +1 -1
- package/cjs/notification-banner/notification-banner.js.map +1 -1
- package/cjs/notification-banner/notification-banner.styles.js +1 -111
- package/cjs/notification-banner/notification-banner.styles.js.map +1 -1
- package/cjs/notification-banner/notification-banner.styles_130loac.css +12 -0
- package/cjs/otp-input/otp-input.js +1 -1
- package/cjs/otp-input/otp-input.js.map +1 -1
- package/cjs/otp-input/otp-input.styles.js +1 -22
- package/cjs/otp-input/otp-input.styles.js.map +1 -1
- package/cjs/otp-input/otp-input.styles_5sbutl.css +5 -0
- package/cjs/otp-verification/contact-input-section-styles.js +18 -16
- package/cjs/otp-verification/contact-input-section-styles.js.map +1 -1
- package/cjs/otp-verification/contact-input-section.js +1 -1
- package/cjs/otp-verification/contact-input-section.js.map +1 -1
- package/cjs/otp-verification/verification-section.js +1 -1
- package/cjs/otp-verification/verification-section.js.map +1 -1
- package/cjs/overlay/overlay.js +1 -1
- package/cjs/overlay/overlay.js.map +1 -1
- package/cjs/pagination/pagination.js +1 -1
- package/cjs/pagination/pagination.js.map +1 -1
- package/cjs/popover/index.js +1 -1
- package/{popover-v2 → cjs/popover}/popover-inline/popover-inline.js.map +1 -1
- package/cjs/popover/popover-inline/popover-inline.styles.js +2 -0
- package/{popover-v2 → cjs/popover}/popover-inline/popover-inline.styles.js.map +1 -1
- package/cjs/popover/popover-inline/popover-inline.styles_bkopnt.css +2 -0
- package/cjs/popover/popover-trigger.js +2 -0
- package/cjs/popover/popover-trigger.js.map +1 -0
- package/cjs/popover/popover-trigger.styles.js +2 -0
- package/{popover-v2 → cjs/popover}/popover-trigger.styles.js.map +1 -1
- package/cjs/popover/popover-trigger.styles_8zokig.css +1 -0
- package/cjs/popover/popover.js +1 -1
- package/cjs/popover/popover.js.map +1 -1
- package/cjs/popover/popover.styles.js +1 -74
- package/cjs/popover/popover.styles.js.map +1 -1
- package/cjs/popover/popover.styles_ujnf0h.css +4 -0
- package/cjs/predictive-text-input/predictive-text-input.js +1 -1
- package/cjs/predictive-text-input/predictive-text-input.js.map +1 -1
- package/cjs/progress-indicator/progress-indicator.js +1 -1
- package/cjs/progress-indicator/progress-indicator.js.map +1 -1
- package/cjs/progress-indicator/progress-indicator.styles.js +2 -0
- package/cjs/progress-indicator/progress-indicator.styles.js.map +1 -0
- package/cjs/progress-indicator/progress-indicator.styles_1c038s4.css +8 -0
- package/cjs/schedule/schedule.js +1 -1
- package/cjs/schedule/schedule.js.map +1 -1
- package/cjs/schedule/shared/with-optional-popover.js +1 -1
- package/cjs/schedule/shared/with-optional-popover.js.map +1 -1
- package/cjs/select-histogram/select-histogram.js +1 -1
- package/cjs/select-histogram/select-histogram.js.map +1 -1
- package/cjs/select-histogram/select-histogram.styles.js +1 -37
- package/cjs/select-histogram/select-histogram.styles.js.map +1 -1
- package/cjs/select-histogram/select-histogram.styles_11916eo.css +5 -0
- package/cjs/shared/component-loading-spinner/component-loading-spinner.js +1 -1
- package/cjs/shared/component-loading-spinner/component-loading-spinner.js.map +1 -1
- package/cjs/shared/dropdown-list/dropdown-label.js +1 -1
- package/cjs/shared/dropdown-list/dropdown-label.js.map +1 -1
- package/cjs/shared/dropdown-list/dropdown-list.js +1 -1
- package/cjs/shared/dropdown-list/dropdown-list.js.map +1 -1
- package/cjs/shared/dropdown-list/dropdown-list.styles.js +1 -1
- package/cjs/shared/dropdown-list/dropdown-list.styles.js.map +1 -1
- package/{shared/dropdown-list/dropdown-list.styles_1qveyb9.css → cjs/shared/dropdown-list/dropdown-list.styles_1kt4zhf.css} +3 -6
- package/cjs/shared/dropdown-list/nested-dropdown-list.js +1 -1
- package/cjs/shared/dropdown-list/nested-dropdown-list.js.map +1 -1
- package/cjs/shared/dropdown-wrapper/element-with-dropdown.js +1 -1
- package/cjs/shared/dropdown-wrapper/element-with-dropdown.js.map +1 -1
- package/cjs/shared/fade-wrapper/fade-wrapper.js +1 -1
- package/cjs/shared/fade-wrapper/fade-wrapper.js.map +1 -1
- package/cjs/shared/fade-wrapper/helpers.js +1 -1
- package/cjs/shared/fade-wrapper/helpers.js.map +1 -1
- package/cjs/shared/input-wrapper/input-wrapper.js +1 -1
- package/cjs/shared/input-wrapper/input-wrapper.js.map +1 -1
- package/cjs/shared/input-wrapper/input-wrapper.styles.js +1 -1
- package/cjs/shared/input-wrapper/input-wrapper.styles.js.map +1 -1
- package/cjs/shared/input-wrapper/{input-wrapper.styles_1kc4xhb.css → input-wrapper.styles_19fpzb.css} +3 -0
- package/cjs/shared/internal-calendar/calendar-dropdown.js +1 -1
- package/cjs/shared/internal-calendar/calendar-dropdown.js.map +1 -1
- package/cjs/shared/progress-bar/progress-bar.js +1 -1
- package/cjs/shared/progress-bar/progress-bar.js.map +1 -1
- package/cjs/shared/standalone-date-input/standalone-date-input.js +1 -1
- package/cjs/shared/standalone-date-input/standalone-date-input.js.map +1 -1
- package/cjs/shared/standalone-date-input/standalone-date-input.styles.js +1 -1
- package/cjs/shared/standalone-date-input/standalone-date-input.styles.js.map +1 -1
- package/{shared/standalone-date-input/standalone-date-input.styles_1mqophx.css → cjs/shared/standalone-date-input/standalone-date-input.styles_1m0da43.css} +10 -11
- package/cjs/shared/time-slot/time-slot.js +2 -0
- package/cjs/shared/time-slot/time-slot.js.map +1 -0
- package/cjs/shared/time-slot/time-slot.styles.js +2 -0
- package/cjs/shared/time-slot/time-slot.styles.js.map +1 -0
- package/cjs/shared/time-slot/time-slot.styles_1r9na3f.css +17 -0
- package/cjs/smart-app-banner/smart-app-banner.js +1 -1
- package/cjs/smart-app-banner/smart-app-banner.js.map +1 -1
- package/cjs/smart-app-banner/smart-app-banner.styles.js +1 -93
- package/cjs/smart-app-banner/smart-app-banner.styles.js.map +1 -1
- package/cjs/smart-app-banner/smart-app-banner.styles_m5dtgh.css +16 -0
- package/cjs/tab/tab-link-chain.js +1 -1
- package/cjs/tab/tab-link-chain.js.map +1 -1
- package/cjs/text-list/ordered-list.js +1 -1
- package/cjs/text-list/ordered-list.js.map +1 -1
- package/cjs/text-list/unordered-list.js +1 -1
- package/cjs/text-list/unordered-list.js.map +1 -1
- package/cjs/theme/index.js +1 -1
- package/cjs/theme/theme-provider/breakpoint.js +1 -1
- package/cjs/theme/theme-provider/breakpoint.js.map +1 -1
- package/cjs/theme/tokens/font.js +1 -1
- package/cjs/theme/tokens/font.js.map +1 -1
- package/cjs/theme/utils/css-variable.js +1 -1
- package/cjs/theme/utils/css-variable.js.map +1 -1
- package/cjs/theme/utils/use-media-query.js +2 -0
- package/cjs/theme/utils/use-media-query.js.map +1 -0
- package/cjs/time-range-picker/combobox-picker/combobox-picker.js +1 -1
- package/cjs/time-range-picker/combobox-picker/combobox-picker.js.map +1 -1
- package/cjs/time-range-picker/combobox-picker/combobox-picker.styles.js +1 -6
- package/cjs/time-range-picker/combobox-picker/combobox-picker.styles.js.map +1 -1
- package/cjs/time-range-picker/combobox-picker/combobox-picker.styles_7i9vso.css +1 -0
- package/cjs/time-range-picker/common.styles.js +1 -10
- package/cjs/time-range-picker/common.styles.js.map +1 -1
- package/cjs/time-range-picker/common.styles_1qwp4xa.css +3 -0
- package/cjs/time-range-picker/dial-picker/dial-picker.js +1 -1
- package/cjs/time-range-picker/dial-picker/dial-picker.js.map +1 -1
- package/cjs/time-slot-bar/helper.js +1 -1
- package/cjs/time-slot-bar/helper.js.map +1 -1
- package/cjs/time-slot-bar/time-slot-bar.js +1 -1
- package/cjs/time-slot-bar/time-slot-bar.js.map +1 -1
- package/cjs/time-slot-bar/time-slot-bar.styles.js +1 -127
- package/cjs/time-slot-bar/time-slot-bar.styles.js.map +1 -1
- package/cjs/time-slot-bar/time-slot-bar.styles_wigbyd.css +25 -0
- package/cjs/time-slot-bar/time-slot-divider.js +2 -0
- package/cjs/time-slot-bar/time-slot-divider.js.map +1 -0
- package/cjs/time-slot-bar/time-slot-item.js +2 -0
- package/cjs/time-slot-bar/time-slot-item.js.map +1 -0
- package/cjs/time-slot-bar-week/time-slot-bar-week-days.js +1 -1
- package/cjs/time-slot-bar-week/time-slot-bar-week-days.js.map +1 -1
- package/cjs/time-slot-bar-week/time-slot-bar-week-days.style.js +25 -22
- package/cjs/time-slot-bar-week/time-slot-bar-week-days.style.js.map +1 -1
- package/cjs/time-slot-week-view/time-slot-week-days.js +1 -1
- package/cjs/time-slot-week-view/time-slot-week-days.js.map +1 -1
- package/cjs/time-slot-week-view/time-slot-week-days.style.js +16 -10
- package/cjs/time-slot-week-view/time-slot-week-days.style.js.map +1 -1
- package/cjs/timeline/timeline.js +1 -1
- package/cjs/timeline/timeline.js.map +1 -1
- package/cjs/timeline/timeline.styles.js +2 -0
- package/cjs/timeline/timeline.styles.js.map +1 -0
- package/cjs/timeline/timeline.styles_1wcnzot.css +9 -0
- package/cjs/timetable/const.js +1 -1
- package/cjs/timetable/const.js.map +1 -1
- package/cjs/timetable/timetable-header/timetable-header.js +1 -1
- package/cjs/timetable/timetable-header/timetable-header.js.map +1 -1
- package/cjs/timetable/timetable-header/timetable-header.styles.js +2 -0
- package/cjs/timetable/timetable-header/timetable-header.styles.js.map +1 -0
- package/cjs/timetable/timetable-header/timetable-header.styles_11gl1h4.css +6 -0
- package/cjs/timetable/timetable-row/row-bar.js +1 -1
- package/cjs/timetable/timetable-row/row-bar.js.map +1 -1
- package/cjs/timetable/timetable-row/row-bar.styles.js +2 -0
- package/cjs/timetable/timetable-row/row-bar.styles.js.map +1 -0
- package/cjs/timetable/timetable-row/row-bar.styles_1x0vrsz.css +1 -0
- package/cjs/timetable/timetable-row/row-cell.js +1 -1
- package/cjs/timetable/timetable-row/row-cell.js.map +1 -1
- package/cjs/timetable/timetable-row/row-cell.styles.js +2 -0
- package/cjs/timetable/timetable-row/row-cell.styles.js.map +1 -0
- package/cjs/timetable/timetable-row/row-cell.styles_y1dl5j.css +7 -0
- package/cjs/timetable/timetable-row/with-optional-popover.js +1 -1
- package/cjs/timetable/timetable-row/with-optional-popover.js.map +1 -1
- package/cjs/timetable/timetable.js +1 -1
- package/cjs/timetable/timetable.js.map +1 -1
- package/cjs/timetable/timetable.styles.js +2 -0
- package/cjs/timetable/timetable.styles.js.map +1 -0
- package/cjs/timetable/timetable.styles_7rp8kz.css +46 -0
- package/cjs/toast/toast.js +1 -1
- package/cjs/toast/toast.js.map +1 -1
- package/cjs/toast/toast.styles.js +1 -98
- package/cjs/toast/toast.styles.js.map +1 -1
- package/cjs/toast/toast.styles_ngrlup.css +8 -0
- package/cjs/toggle/toggle.js +1 -1
- package/cjs/toggle/toggle.js.map +1 -1
- package/cjs/typography/typography.js +1 -1
- package/cjs/typography/typography.js.map +1 -1
- package/cjs/uneditable-section/item-section.js +1 -1
- package/cjs/uneditable-section/item-section.js.map +1 -1
- package/cjs/uneditable-section/section-item.js +1 -1
- package/cjs/uneditable-section/section-item.js.map +1 -1
- package/cjs/uneditable-section/section-item.styles.js +1 -63
- package/cjs/uneditable-section/section-item.styles.js.map +1 -1
- package/cjs/uneditable-section/section-item.styles_1dfjzc4.css +9 -0
- package/cjs/uneditable-section/uneditable-section.js +1 -1
- package/cjs/uneditable-section/uneditable-section.js.map +1 -1
- package/cjs/uneditable-section/uneditable-section.styles.js +1 -39
- package/cjs/uneditable-section/uneditable-section.styles.js.map +1 -1
- package/cjs/uneditable-section/uneditable-section.styles_aj9zun.css +8 -0
- package/cjs/unit-number/unit-number-input.js +1 -1
- package/cjs/unit-number/unit-number-input.js.map +1 -1
- package/cjs/unit-number/unit-number-input.styles.js +2 -0
- package/cjs/unit-number/unit-number-input.styles.js.map +1 -0
- package/cjs/unit-number/unit-number-input.styles_8yizj.css +7 -0
- package/cjs/util/styling-helper.js +1 -1
- package/cjs/util/styling-helper.js.map +1 -1
- package/countdown-timer/countdown-timer.js +1 -1
- package/countdown-timer/countdown-timer.js.map +1 -1
- package/countdown-timer/countdown-timer.styles.d.ts +15 -0
- package/countdown-timer/countdown-timer.styles.js +2 -0
- package/countdown-timer/countdown-timer.styles.js.map +1 -0
- package/countdown-timer/countdown-timer.styles_k50tkw.css +8 -0
- package/dashed-border/dashed-border.js +1 -1
- package/dashed-border/dashed-border.js.map +1 -1
- package/data-table/data-table.js +1 -1
- package/data-table/data-table.js.map +1 -1
- package/data-table/data-table.styles.d.ts +30 -83
- package/data-table/data-table.styles.js +1 -152
- package/data-table/data-table.styles.js.map +1 -1
- package/data-table/data-table.styles_1nj2uzq.css +26 -0
- package/date-input/date-input.d.ts +1 -1
- package/date-input/date-input.js +1 -1
- package/date-input/date-input.js.map +1 -1
- package/date-input/date-input.styles.d.ts +1 -0
- package/date-input/date-input.styles.js +2 -0
- package/date-input/date-input.styles.js.map +1 -0
- package/date-input/date-input.styles_1r5kcc7.css +1 -0
- package/date-range-input/date-range-input.js +1 -1
- package/date-range-input/date-range-input.js.map +1 -1
- package/date-range-input/date-range-input.styles.d.ts +5 -0
- package/date-range-input/date-range-input.styles.js +2 -0
- package/date-range-input/date-range-input.styles.js.map +1 -0
- package/date-range-input/date-range-input.styles_1s7ojnj.css +4 -0
- package/divider/divider.d.ts +1 -1
- package/divider/divider.js +1 -1
- package/divider/divider.js.map +1 -1
- package/divider/types.d.ts +1 -2
- package/e-signature/e-signature.js +1 -1
- package/e-signature/e-signature.js.map +1 -1
- package/e-signature/e-signature.styles.js +5 -5
- package/e-signature/e-signature.styles.js.map +1 -1
- package/error-display/error-display-data.d.ts +2 -2
- package/error-display/error-display-data.js +1 -1
- package/error-display/error-display-data.js.map +1 -1
- package/error-display/error-display.js +1 -1
- package/error-display/error-display.js.map +1 -1
- package/error-display/helper.d.ts +1 -1
- package/error-display/helper.js +1 -1
- package/error-display/helper.js.map +1 -1
- package/external/lodash/isNumber.js +2 -0
- package/external/lodash/isNumber.js.map +1 -0
- package/external/lodash.clonedeep/index.js +1 -1
- package/external/lottie-colorify/lib/index.js +1 -1
- package/external/lottie-colorify/lib/index.js.map +1 -1
- package/external/prop-types/external/react-is/index.js +1 -1
- package/external/prop-types/index.js +1 -1
- package/external/prop-types/index.js.map +1 -1
- package/feedback-rating/feedback-rating-stars-container.js +1 -1
- package/feedback-rating/feedback-rating-stars-container.js.map +1 -1
- package/feedback-rating/feedback-rating-stars-container.styles.d.ts +4 -23
- package/feedback-rating/feedback-rating-stars-container.styles.js +1 -36
- package/feedback-rating/feedback-rating-stars-container.styles.js.map +1 -1
- package/feedback-rating/feedback-rating-stars-container.styles_dmi8z9.css +4 -0
- package/feedback-rating/feedback-rating.js +1 -1
- package/feedback-rating/feedback-rating.js.map +1 -1
- package/feedback-rating/feedback-rating.styles.d.ts +4 -4
- package/feedback-rating/feedback-rating.styles.js +1 -37
- package/feedback-rating/feedback-rating.styles.js.map +1 -1
- package/feedback-rating/feedback-rating.styles_1kdklb6.css +4 -0
- package/file-download/file-list-card/file-list-card.js +1 -1
- package/file-download/file-list-card/file-list-card.js.map +1 -1
- package/file-upload/dropzone.js +1 -1
- package/file-upload/dropzone.js.map +1 -1
- package/file-upload/dropzone.styles.d.ts +6 -34
- package/file-upload/dropzone.styles.js +1 -34
- package/file-upload/dropzone.styles.js.map +1 -1
- package/file-upload/dropzone.styles_1pllsau.css +6 -0
- package/file-upload/file-item-edit.js +1 -1
- package/file-upload/file-item-edit.js.map +1 -1
- package/file-upload/file-item-edit.styles.d.ts +8 -48
- package/file-upload/file-item-edit.styles.js +1 -66
- package/file-upload/file-item-edit.styles.js.map +1 -1
- package/file-upload/file-item-edit.styles_1qbpbxj.css +10 -0
- package/file-upload/file-list-item/file-list-item-thumbnail.d.ts +0 -7
- package/file-upload/file-list-item/file-list-item-thumbnail.js +1 -34
- package/file-upload/file-list-item/file-list-item-thumbnail.js.map +1 -1
- package/file-upload/file-list-item/file-list-item-thumbnail.styles.d.ts +4 -0
- package/file-upload/file-list-item/file-list-item-thumbnail.styles.js +2 -0
- package/file-upload/file-list-item/file-list-item-thumbnail.styles.js.map +1 -0
- package/file-upload/file-list-item/file-list-item-thumbnail.styles_1vrh1ve.css +4 -0
- package/file-upload/file-list-item/file-list-item.js +1 -1
- package/file-upload/file-list-item/file-list-item.js.map +1 -1
- package/file-upload/file-list-item/file-list-item.styles.d.ts +14 -170
- package/file-upload/file-list-item/file-list-item.styles.js +1 -174
- package/file-upload/file-list-item/file-list-item.styles.js.map +1 -1
- package/file-upload/file-list-item/file-list-item.styles_y7my2m.css +14 -0
- package/file-upload/file-list.js +1 -1
- package/file-upload/file-list.js.map +1 -1
- package/file-upload/file-list.styles.d.ts +3 -6
- package/file-upload/file-list.styles.js +1 -20
- package/file-upload/file-list.styles.js.map +1 -1
- package/file-upload/file-list.styles_16vplxk.css +3 -0
- package/file-upload/file-upload.js +1 -1
- package/file-upload/file-upload.js.map +1 -1
- package/file-upload/file-upload.styles.d.ts +8 -64
- package/file-upload/file-upload.styles.js +1 -40
- package/file-upload/file-upload.styles.js.map +1 -1
- package/file-upload/file-upload.styles_9ffwcd.css +8 -0
- package/filter/addons/filter-item-checkbox.js +1 -1
- package/filter/addons/filter-item-checkbox.js.map +1 -1
- package/filter/addons/filter-item-checkbox.styles.d.ts +15 -25
- package/filter/addons/filter-item-checkbox.styles.js +1 -72
- package/filter/addons/filter-item-checkbox.styles.js.map +1 -1
- package/filter/addons/filter-item-checkbox.styles_18l87i2.css +16 -0
- package/filter/filter-item-page.js +1 -1
- package/filter/filter-item-page.js.map +1 -1
- package/filter/filter-item-page.styles.d.ts +1 -1
- package/filter/filter-item-page.styles.js +1 -7
- package/filter/filter-item-page.styles.js.map +1 -1
- package/filter/filter-item-page.styles_17ewfrz.css +1 -0
- package/filter/filter-item.d.ts +1 -1
- package/filter/filter-item.js +1 -1
- package/filter/filter-item.js.map +1 -1
- package/filter/filter-item.styles.d.ts +22 -38
- package/filter/filter-item.styles.js +1 -63
- package/filter/filter-item.styles.js.map +1 -1
- package/filter/filter-item.styles_1e3v6qq.css +17 -0
- package/filter/filter-modal.d.ts +1 -1
- package/filter/filter-modal.js +1 -1
- package/filter/filter-modal.js.map +1 -1
- package/filter/filter-modal.styles.d.ts +12 -14
- package/filter/filter-modal.styles.js +1 -29
- package/filter/filter-modal.styles.js.map +1 -1
- package/filter/filter-modal.styles_e0ev97.css +8 -0
- package/filter/filter-sidebar.d.ts +1 -1
- package/filter/filter-sidebar.js +1 -1
- package/filter/filter-sidebar.js.map +1 -1
- package/filter/filter-sidebar.styles.d.ts +4 -4
- package/filter/filter-sidebar.styles.js +1 -23
- package/filter/filter-sidebar.styles.js.map +1 -1
- package/filter/filter-sidebar.styles_cwvqql.css +4 -0
- package/filter/filter.d.ts +3 -3
- package/filter/filter.js +1 -1
- package/filter/filter.js.map +1 -1
- package/filter/filter.styles.d.ts +9 -7
- package/filter/filter.styles.js +1 -26
- package/filter/filter.styles.js.map +1 -1
- package/filter/filter.styles_2fmaok.css +5 -0
- package/form/form-label-addon.js +1 -1
- package/form/form-label-addon.js.map +1 -1
- package/form/form-masked-input.js +1 -1
- package/form/form-masked-input.js.map +1 -1
- package/form/form-time-range-picker.js +1 -1
- package/form/form-time-range-picker.js.map +1 -1
- package/form/index.d.ts +1 -0
- package/form/index.js.map +1 -1
- package/fullscreen-image-carousel/fullscreen-image-carousel.js +1 -1
- package/fullscreen-image-carousel/fullscreen-image-carousel.js.map +1 -1
- package/fullscreen-image-carousel/fullscreen-image-carousel.styles.d.ts +40 -0
- package/fullscreen-image-carousel/fullscreen-image-carousel.styles.js +2 -0
- package/fullscreen-image-carousel/fullscreen-image-carousel.styles.js.map +1 -0
- package/fullscreen-image-carousel/fullscreen-image-carousel.styles_vc6y5c.css +75 -0
- package/fullscreen-image-carousel/stateful-image.js +1 -1
- package/fullscreen-image-carousel/stateful-image.js.map +1 -1
- package/fullscreen-image-carousel/stateful-image.styles.d.ts +8 -0
- package/fullscreen-image-carousel/stateful-image.styles.js +2 -0
- package/fullscreen-image-carousel/stateful-image.styles.js.map +1 -0
- package/fullscreen-image-carousel/stateful-image.styles_1xe8ypm.css +3 -0
- package/histogram-slider/histogram-slider.js +1 -1
- package/histogram-slider/histogram-slider.js.map +1 -1
- package/index.d.ts +0 -11
- package/index.js +1 -1
- package/input-group/input-group-list-addon.js +1 -1
- package/input-group/input-group-list-addon.js.map +1 -1
- package/input-group/input-group-list-addon.styles.d.ts +2 -2
- package/input-group/input-group-list-addon.styles.js +1 -1
- package/input-group/input-group-list-addon.styles.js.map +1 -1
- package/{cjs/input-group/input-group-list-addon.styles_1my6j2v.css → input-group/input-group-list-addon.styles_17iuqtw.css} +2 -2
- package/input-group/input-group.js +1 -1
- package/input-group/input-group.js.map +1 -1
- package/input-multi-select/input-multi-select.js +1 -1
- package/input-multi-select/input-multi-select.js.map +1 -1
- package/input-nested-multi-select/input-nested-multi-select.js +1 -1
- package/input-nested-multi-select/input-nested-multi-select.js.map +1 -1
- package/input-nested-select/input-nested-select.js +1 -1
- package/input-nested-select/input-nested-select.js.map +1 -1
- package/input-range-select/input-range-select.js +1 -1
- package/input-range-select/input-range-select.js.map +1 -1
- package/input-range-select/input-range-select.styles.d.ts +2 -0
- package/input-range-select/input-range-select.styles.js +2 -0
- package/input-range-select/input-range-select.styles.js.map +1 -0
- package/input-range-select/input-range-select.styles_adbrbm.css +2 -0
- package/input-range-slider/input-range-slider.js +1 -1
- package/input-range-slider/input-range-slider.js.map +1 -1
- package/input-range-slider/slider-components.js +1 -1
- package/input-range-slider/slider-components.js.map +1 -1
- package/input-select/input-select.js +1 -1
- package/input-select/input-select.js.map +1 -1
- package/input-select/types.d.ts +1 -1
- package/language-switcher/dropdown-panel.d.ts +13 -0
- package/language-switcher/dropdown-panel.js +2 -0
- package/language-switcher/dropdown-panel.js.map +1 -0
- package/language-switcher/dropdown-panel.styles.d.ts +8 -0
- package/language-switcher/dropdown-panel.styles.js +2 -0
- package/language-switcher/dropdown-panel.styles.js.map +1 -0
- package/language-switcher/dropdown-panel.styles_1z0n7qq.css +4 -0
- package/language-switcher/dropdown-variant.js +1 -1
- package/language-switcher/dropdown-variant.js.map +1 -1
- package/language-switcher/dropdown-variant.styles.d.ts +2 -0
- package/language-switcher/dropdown-variant.styles.js +2 -0
- package/language-switcher/dropdown-variant.styles.js.map +1 -0
- package/language-switcher/dropdown-variant.styles_16c4wc1.css +2 -0
- package/language-switcher/link-container-variant.d.ts +1 -1
- package/language-switcher/link-container-variant.js +1 -1
- package/language-switcher/link-container-variant.js.map +1 -1
- package/language-switcher/link-container-variant.styles.d.ts +5 -0
- package/language-switcher/link-container-variant.styles.js +2 -0
- package/language-switcher/link-container-variant.styles.js.map +1 -0
- package/language-switcher/link-container-variant.styles_1blx9qm.css +5 -0
- package/layout/col-div.js +1 -1
- package/layout/col-div.js.map +1 -1
- package/link-list/components/common.js +1 -1
- package/link-list/components/common.js.map +1 -1
- package/link-list/components/link-list-eager.js +1 -1
- package/link-list/components/link-list-eager.js.map +1 -1
- package/link-list/components/link-list-lazy.js +1 -1
- package/link-list/components/link-list-lazy.js.map +1 -1
- package/link-list/link-list.js +1 -1
- package/link-list/link-list.js.map +1 -1
- package/link-list/link-list.styles.d.ts +13 -113
- package/link-list/link-list.styles.js +1 -89
- package/link-list/link-list.styles.js.map +1 -1
- package/link-list/link-list.styles_1g33nb4.css +13 -0
- package/local-nav/local-nav-dropdown/local-nav-dropdown.js +1 -1
- package/local-nav/local-nav-dropdown/local-nav-dropdown.js.map +1 -1
- package/local-nav/local-nav-dropdown/local-nav-dropdown.styles.d.ts +22 -41
- package/local-nav/local-nav-dropdown/local-nav-dropdown.styles.js +1 -100
- package/local-nav/local-nav-dropdown/local-nav-dropdown.styles.js.map +1 -1
- package/local-nav/local-nav-dropdown/local-nav-dropdown.styles_ftv36t.css +13 -0
- package/local-nav/local-nav-menu/local-nav-menu.js +1 -1
- package/local-nav/local-nav-menu/local-nav-menu.js.map +1 -1
- package/local-nav/local-nav-menu/local-nav-menu.styles.d.ts +5 -26
- package/local-nav/local-nav-menu/local-nav-menu.styles.js +1 -39
- package/local-nav/local-nav-menu/local-nav-menu.styles.js.map +1 -1
- package/local-nav/local-nav-menu/local-nav-menu.styles_pq19dh.css +5 -0
- package/markup/markup.js +1 -1
- package/markup/markup.js.map +1 -1
- package/masked-input/masked-input.js +1 -1
- package/masked-input/masked-input.js.map +1 -1
- package/masked-input/masked-input.styles.d.ts +22 -0
- package/masked-input/masked-input.styles.js +2 -0
- package/masked-input/masked-input.styles.js.map +1 -0
- package/masked-input/masked-input.styles_4i1qsy.css +16 -0
- package/menu/menu-content.js +1 -1
- package/menu/menu-content.js.map +1 -1
- package/menu/menu-content.styles.js +1 -1
- package/menu/menu-content.styles.js.map +1 -1
- package/menu/{menu-content.styles_1b7d6qf.css → menu-content.styles_p7ijll.css} +1 -1
- package/menu/menu.js +1 -1
- package/menu/menu.js.map +1 -1
- package/menu/types.d.ts +2 -2
- package/modal/modal.js +1 -1
- package/modal/modal.js.map +1 -1
- package/modal-v2/modal-v2.js +1 -1
- package/modal-v2/modal-v2.js.map +1 -1
- package/navbar/brand.js +1 -1
- package/navbar/brand.js.map +1 -1
- package/navbar/brand.styles.d.ts +1 -6
- package/navbar/brand.styles.js +1 -12
- package/navbar/brand.styles.js.map +1 -1
- package/navbar/brand.styles_zcgddp.css +1 -0
- package/navbar/drawer.js +1 -1
- package/navbar/drawer.js.map +1 -1
- package/navbar/drawer.styles.d.ts +13 -18
- package/navbar/drawer.styles.js +1 -65
- package/navbar/drawer.styles.js.map +1 -1
- package/navbar/drawer.styles_7hnxp5.css +8 -0
- package/navbar/menu.js +1 -1
- package/navbar/menu.js.map +1 -1
- package/navbar/menu.styles.d.ts +3 -3
- package/navbar/menu.styles.js +1 -34
- package/navbar/menu.styles.js.map +1 -1
- package/navbar/menu.styles_gdpqc.css +3 -0
- package/navbar/navbar-action-buttons.js +1 -1
- package/navbar/navbar-action-buttons.js.map +1 -1
- package/navbar/navbar-action-buttons.styles.d.ts +10 -31
- package/navbar/navbar-action-buttons.styles.js +1 -100
- package/navbar/navbar-action-buttons.styles.js.map +1 -1
- package/navbar/navbar-action-buttons.styles_1vpm0nk.css +10 -0
- package/navbar/navbar-items.js +1 -1
- package/navbar/navbar-items.js.map +1 -1
- package/navbar/navbar-items.styles.d.ts +19 -40
- package/navbar/navbar-items.styles.js +1 -114
- package/navbar/navbar-items.styles.js.map +1 -1
- package/navbar/navbar-items.styles_i9cunu.css +19 -0
- package/navbar/navbar-logo-data.d.ts +2 -2
- package/navbar/navbar-logo-data.js +1 -1
- package/navbar/navbar-logo-data.js.map +1 -1
- package/navbar/navbar.js +1 -1
- package/navbar/navbar.js.map +1 -1
- package/navbar/navbar.styles.d.ts +25 -20
- package/navbar/navbar.styles.js +1 -79
- package/navbar/navbar.styles.js.map +1 -1
- package/navbar/navbar.styles_koy0c7.css +20 -0
- package/notification-banner/notification-banner.d.ts +2 -2
- package/notification-banner/notification-banner.js +1 -1
- package/notification-banner/notification-banner.js.map +1 -1
- package/notification-banner/notification-banner.styles.d.ts +17 -23
- package/notification-banner/notification-banner.styles.js +1 -111
- package/notification-banner/notification-banner.styles.js.map +1 -1
- package/notification-banner/notification-banner.styles_130loac.css +12 -0
- package/otp-input/otp-input.js +1 -1
- package/otp-input/otp-input.js.map +1 -1
- package/otp-input/otp-input.styles.d.ts +5 -23
- package/otp-input/otp-input.styles.js +1 -22
- package/otp-input/otp-input.styles.js.map +1 -1
- package/otp-input/otp-input.styles_5sbutl.css +5 -0
- package/otp-verification/contact-input-section-styles.js +47 -45
- package/otp-verification/contact-input-section-styles.js.map +1 -1
- package/otp-verification/contact-input-section.d.ts +1 -1
- package/otp-verification/contact-input-section.js +1 -1
- package/otp-verification/contact-input-section.js.map +1 -1
- package/otp-verification/internal-types.d.ts +2 -0
- package/otp-verification/verification-section.js +1 -1
- package/otp-verification/verification-section.js.map +1 -1
- package/overlay/overlay.js +1 -1
- package/overlay/overlay.js.map +1 -1
- package/package.json +1 -67
- package/pagination/pagination.js +1 -1
- package/pagination/pagination.js.map +1 -1
- package/popover/index.d.ts +2 -1
- package/popover/index.js +1 -1
- package/popover/popover-inline/popover-inline.js.map +1 -0
- package/popover/popover-inline/popover-inline.styles.js +2 -0
- package/popover/popover-inline/popover-inline.styles.js.map +1 -0
- package/popover/popover-inline/popover-inline.styles_bkopnt.css +2 -0
- package/{popover-v2 → popover}/popover-trigger.d.ts +2 -2
- package/popover/popover-trigger.js +2 -0
- package/popover/popover-trigger.js.map +1 -0
- package/popover/popover-trigger.styles.js +2 -0
- package/popover/popover-trigger.styles.js.map +1 -0
- package/popover/popover-trigger.styles_8zokig.css +1 -0
- package/popover/popover.d.ts +1 -4
- package/popover/popover.js +1 -1
- package/popover/popover.js.map +1 -1
- package/popover/popover.styles.d.ts +10 -11
- package/popover/popover.styles.js +1 -74
- package/popover/popover.styles.js.map +1 -1
- package/popover/popover.styles_ujnf0h.css +4 -0
- package/popover/types.d.ts +48 -10
- package/predictive-text-input/predictive-text-input.js +1 -1
- package/predictive-text-input/predictive-text-input.js.map +1 -1
- package/predictive-text-input/types.d.ts +1 -1
- package/progress-indicator/progress-indicator.d.ts +1 -1
- package/progress-indicator/progress-indicator.js +1 -1
- package/progress-indicator/progress-indicator.js.map +1 -1
- package/progress-indicator/progress-indicator.styles.d.ts +9 -0
- package/progress-indicator/progress-indicator.styles.js +2 -0
- package/progress-indicator/progress-indicator.styles.js.map +1 -0
- package/progress-indicator/progress-indicator.styles_1c038s4.css +8 -0
- package/progress-indicator/types.d.ts +0 -6
- package/schedule/schedule.js +1 -1
- package/schedule/schedule.js.map +1 -1
- package/schedule/shared/with-optional-popover.js +2 -2
- package/schedule/shared/with-optional-popover.js.map +1 -1
- package/schedule/types.d.ts +2 -2
- package/select-histogram/select-histogram.js +1 -1
- package/select-histogram/select-histogram.js.map +1 -1
- package/select-histogram/select-histogram.styles.d.ts +5 -21
- package/select-histogram/select-histogram.styles.js +1 -37
- package/select-histogram/select-histogram.styles.js.map +1 -1
- package/select-histogram/select-histogram.styles_11916eo.css +5 -0
- package/shared/component-loading-spinner/component-loading-spinner.js +1 -1
- package/shared/component-loading-spinner/component-loading-spinner.js.map +1 -1
- package/shared/dropdown-list/dropdown-label.js +1 -1
- package/shared/dropdown-list/dropdown-label.js.map +1 -1
- package/shared/dropdown-list/dropdown-list.js +1 -1
- package/shared/dropdown-list/dropdown-list.js.map +1 -1
- package/shared/dropdown-list/dropdown-list.styles.d.ts +1 -1
- package/shared/dropdown-list/dropdown-list.styles.js +1 -1
- package/shared/dropdown-list/dropdown-list.styles.js.map +1 -1
- package/{cjs/shared/dropdown-list/dropdown-list.styles_1qveyb9.css → shared/dropdown-list/dropdown-list.styles_1kt4zhf.css} +3 -6
- package/shared/dropdown-list/nested-dropdown-list.js +1 -1
- package/shared/dropdown-list/nested-dropdown-list.js.map +1 -1
- package/shared/dropdown-wrapper/element-with-dropdown.js +1 -1
- package/shared/dropdown-wrapper/element-with-dropdown.js.map +1 -1
- package/shared/fade-wrapper/fade-wrapper.js +1 -1
- package/shared/fade-wrapper/fade-wrapper.js.map +1 -1
- package/shared/fade-wrapper/helpers.js +1 -1
- package/shared/fade-wrapper/helpers.js.map +1 -1
- package/shared/input-wrapper/input-wrapper.d.ts +5 -0
- package/shared/input-wrapper/input-wrapper.js +1 -1
- package/shared/input-wrapper/input-wrapper.js.map +1 -1
- package/shared/input-wrapper/input-wrapper.styles.d.ts +3 -0
- package/shared/input-wrapper/input-wrapper.styles.js +1 -1
- package/shared/input-wrapper/input-wrapper.styles.js.map +1 -1
- package/shared/input-wrapper/{input-wrapper.styles_1kc4xhb.css → input-wrapper.styles_19fpzb.css} +3 -0
- package/shared/internal-calendar/calendar-dropdown.js +1 -1
- package/shared/internal-calendar/calendar-dropdown.js.map +1 -1
- package/shared/progress-bar/progress-bar.js +1 -1
- package/shared/progress-bar/progress-bar.js.map +1 -1
- package/shared/standalone-date-input/standalone-date-input.js +1 -1
- package/shared/standalone-date-input/standalone-date-input.js.map +1 -1
- package/shared/standalone-date-input/standalone-date-input.styles.d.ts +0 -1
- package/shared/standalone-date-input/standalone-date-input.styles.js +1 -1
- package/shared/standalone-date-input/standalone-date-input.styles.js.map +1 -1
- package/{cjs/shared/standalone-date-input/standalone-date-input.styles_1mqophx.css → shared/standalone-date-input/standalone-date-input.styles_1m0da43.css} +10 -11
- package/shared/time-slot/index.d.ts +2 -0
- package/shared/time-slot/time-slot.d.ts +17 -0
- package/shared/time-slot/time-slot.js +2 -0
- package/shared/time-slot/time-slot.js.map +1 -0
- package/shared/time-slot/time-slot.styles.d.ts +10 -0
- package/shared/time-slot/time-slot.styles.js +2 -0
- package/shared/time-slot/time-slot.styles.js.map +1 -0
- package/shared/time-slot/time-slot.styles_1r9na3f.css +17 -0
- package/shared/time-slot/types.d.ts +1 -0
- package/smart-app-banner/smart-app-banner.js +1 -1
- package/smart-app-banner/smart-app-banner.js.map +1 -1
- package/smart-app-banner/smart-app-banner.styles.d.ts +21 -85
- package/smart-app-banner/smart-app-banner.styles.js +1 -93
- package/smart-app-banner/smart-app-banner.styles.js.map +1 -1
- package/smart-app-banner/smart-app-banner.styles_m5dtgh.css +16 -0
- package/tab/tab-link-chain.js +1 -1
- package/tab/tab-link-chain.js.map +1 -1
- package/text-list/ordered-list.js +1 -1
- package/text-list/ordered-list.js.map +1 -1
- package/text-list/unordered-list.js +1 -1
- package/text-list/unordered-list.js.map +1 -1
- package/theme/index.js +1 -1
- package/theme/styles/pa.css +176 -0
- package/theme/theme-provider/breakpoint.js +1 -1
- package/theme/theme-provider/breakpoint.js.map +1 -1
- package/theme/tokens/font.js +1 -1
- package/theme/tokens/font.js.map +1 -1
- package/theme/utils/css-variable.d.ts +14 -0
- package/theme/utils/css-variable.js +1 -1
- package/theme/utils/css-variable.js.map +1 -1
- package/theme/utils/index.d.ts +1 -1
- package/theme/utils/use-media-query.d.ts +24 -0
- package/theme/utils/use-media-query.js +2 -0
- package/theme/utils/use-media-query.js.map +1 -0
- package/time-range-picker/combobox-picker/combobox-picker.js +1 -1
- package/time-range-picker/combobox-picker/combobox-picker.js.map +1 -1
- package/time-range-picker/combobox-picker/combobox-picker.styles.d.ts +1 -1
- package/time-range-picker/combobox-picker/combobox-picker.styles.js +1 -6
- package/time-range-picker/combobox-picker/combobox-picker.styles.js.map +1 -1
- package/time-range-picker/combobox-picker/combobox-picker.styles_7i9vso.css +1 -0
- package/time-range-picker/common.styles.d.ts +3 -3
- package/time-range-picker/common.styles.js +1 -10
- package/time-range-picker/common.styles.js.map +1 -1
- package/time-range-picker/common.styles_1qwp4xa.css +3 -0
- package/time-range-picker/dial-picker/dial-picker.js +1 -1
- package/time-range-picker/dial-picker/dial-picker.js.map +1 -1
- package/time-slot-bar/helper.d.ts +1 -0
- package/time-slot-bar/helper.js +1 -1
- package/time-slot-bar/helper.js.map +1 -1
- package/time-slot-bar/time-slot-bar.js +1 -1
- package/time-slot-bar/time-slot-bar.js.map +1 -1
- package/time-slot-bar/time-slot-bar.styles.d.ts +37 -99
- package/time-slot-bar/time-slot-bar.styles.js +1 -127
- package/time-slot-bar/time-slot-bar.styles.js.map +1 -1
- package/time-slot-bar/time-slot-bar.styles_wigbyd.css +25 -0
- package/time-slot-bar/time-slot-divider.d.ts +8 -0
- package/time-slot-bar/time-slot-divider.js +2 -0
- package/time-slot-bar/time-slot-divider.js.map +1 -0
- package/time-slot-bar/time-slot-item.d.ts +13 -0
- package/time-slot-bar/time-slot-item.js +2 -0
- package/time-slot-bar/time-slot-item.js.map +1 -0
- package/time-slot-bar/types.d.ts +7 -8
- package/time-slot-bar-week/time-slot-bar-week-days.js +1 -1
- package/time-slot-bar-week/time-slot-bar-week-days.js.map +1 -1
- package/time-slot-bar-week/time-slot-bar-week-days.style.d.ts +2 -13
- package/time-slot-bar-week/time-slot-bar-week-days.style.js +20 -17
- package/time-slot-bar-week/time-slot-bar-week-days.style.js.map +1 -1
- package/time-slot-week-view/time-slot-week-days.js +1 -1
- package/time-slot-week-view/time-slot-week-days.js.map +1 -1
- package/time-slot-week-view/time-slot-week-days.style.d.ts +1 -11
- package/time-slot-week-view/time-slot-week-days.style.js +14 -8
- package/time-slot-week-view/time-slot-week-days.style.js.map +1 -1
- package/timeline/timeline.js +1 -1
- package/timeline/timeline.js.map +1 -1
- package/timeline/timeline.styles.d.ts +15 -0
- package/timeline/timeline.styles.js +2 -0
- package/timeline/timeline.styles.js.map +1 -0
- package/timeline/timeline.styles_1wcnzot.css +9 -0
- package/timetable/const.js +1 -1
- package/timetable/const.js.map +1 -1
- package/timetable/timetable-header/timetable-header.js +1 -1
- package/timetable/timetable-header/timetable-header.js.map +1 -1
- package/timetable/timetable-header/timetable-header.styles.d.ts +6 -0
- package/timetable/timetable-header/timetable-header.styles.js +2 -0
- package/timetable/timetable-header/timetable-header.styles.js.map +1 -0
- package/timetable/timetable-header/timetable-header.styles_11gl1h4.css +6 -0
- package/timetable/timetable-row/row-bar.js +1 -1
- package/timetable/timetable-row/row-bar.js.map +1 -1
- package/timetable/timetable-row/row-bar.styles.d.ts +1 -0
- package/timetable/timetable-row/row-bar.styles.js +2 -0
- package/timetable/timetable-row/row-bar.styles.js.map +1 -0
- package/timetable/timetable-row/row-bar.styles_1x0vrsz.css +1 -0
- package/timetable/timetable-row/row-cell.js +1 -1
- package/timetable/timetable-row/row-cell.js.map +1 -1
- package/timetable/timetable-row/row-cell.styles.d.ts +14 -0
- package/timetable/timetable-row/row-cell.styles.js +2 -0
- package/timetable/timetable-row/row-cell.styles.js.map +1 -0
- package/timetable/timetable-row/row-cell.styles_y1dl5j.css +7 -0
- package/timetable/timetable-row/with-optional-popover.js +1 -1
- package/timetable/timetable-row/with-optional-popover.js.map +1 -1
- package/timetable/timetable.js +1 -1
- package/timetable/timetable.js.map +1 -1
- package/timetable/timetable.styles.d.ts +41 -0
- package/timetable/timetable.styles.js +2 -0
- package/timetable/timetable.styles.js.map +1 -0
- package/timetable/timetable.styles_7rp8kz.css +46 -0
- package/timetable/types.d.ts +6 -7
- package/toast/toast.d.ts +1 -1
- package/toast/toast.js +1 -1
- package/toast/toast.js.map +1 -1
- package/toast/toast.styles.d.ts +8 -51
- package/toast/toast.styles.js +1 -98
- package/toast/toast.styles.js.map +1 -1
- package/toast/toast.styles_ngrlup.css +8 -0
- package/toggle/toggle.js +1 -1
- package/toggle/toggle.js.map +1 -1
- package/typography/index.js +1 -1
- package/typography/typography.js +1 -1
- package/typography/typography.js.map +1 -1
- package/uneditable-section/index.d.ts +1 -1
- package/uneditable-section/item-section.d.ts +1 -1
- package/uneditable-section/item-section.js +1 -1
- package/uneditable-section/item-section.js.map +1 -1
- package/uneditable-section/section-item.js +1 -1
- package/uneditable-section/section-item.js.map +1 -1
- package/uneditable-section/section-item.styles.d.ts +9 -22
- package/uneditable-section/section-item.styles.js +1 -63
- package/uneditable-section/section-item.styles.js.map +1 -1
- package/uneditable-section/section-item.styles_1dfjzc4.css +9 -0
- package/uneditable-section/uneditable-section.d.ts +1 -1
- package/uneditable-section/uneditable-section.js +1 -1
- package/uneditable-section/uneditable-section.js.map +1 -1
- package/uneditable-section/uneditable-section.styles.d.ts +8 -52
- package/uneditable-section/uneditable-section.styles.js +1 -39
- package/uneditable-section/uneditable-section.styles.js.map +1 -1
- package/uneditable-section/uneditable-section.styles_aj9zun.css +8 -0
- package/unit-number/unit-number-input.js +1 -1
- package/unit-number/unit-number-input.js.map +1 -1
- package/unit-number/unit-number-input.styles.d.ts +7 -0
- package/unit-number/unit-number-input.styles.js +2 -0
- package/unit-number/unit-number-input.styles.js.map +1 -0
- package/unit-number/unit-number-input.styles_8yizj.css +7 -0
- package/util/styling-helper.js +1 -1
- package/util/styling-helper.js.map +1 -1
- package/v3_theme/index.d.ts +39 -13
- package/v3_theme/types.d.ts +2 -2
- package/_virtual/react-responsive.js +0 -2
- package/_virtual/react-responsive.js.map +0 -1
- package/cjs/_virtual/react-responsive.js +0 -2
- package/cjs/_virtual/react-responsive.js.map +0 -1
- package/cjs/countdown-timer/countdown-timer.style.js +0 -58
- package/cjs/countdown-timer/countdown-timer.style.js.map +0 -1
- package/cjs/date-input/date-input.style.js +0 -4
- package/cjs/date-input/date-input.style.js.map +0 -1
- package/cjs/date-range-input/date-range-input.style.js +0 -17
- package/cjs/date-range-input/date-range-input.style.js.map +0 -1
- package/cjs/external/react-responsive/dist/react-responsive.js +0 -65
- package/cjs/external/react-responsive/dist/react-responsive.js.map +0 -1
- package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.style.js +0 -298
- package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.style.js.map +0 -1
- package/cjs/fullscreen-image-carousel/stateful-image.style.js +0 -13
- package/cjs/fullscreen-image-carousel/stateful-image.style.js.map +0 -1
- package/cjs/input-range-select/input-range-select.style.js +0 -36
- package/cjs/input-range-select/input-range-select.style.js.map +0 -1
- package/cjs/language-switcher/dropdown-variant.style.js +0 -62
- package/cjs/language-switcher/dropdown-variant.style.js.map +0 -1
- package/cjs/language-switcher/link-container-variant.style.js +0 -51
- package/cjs/language-switcher/link-container-variant.style.js.map +0 -1
- package/cjs/masked-input/masked-input.style.js +0 -87
- package/cjs/masked-input/masked-input.style.js.map +0 -1
- package/cjs/masonry/index.js +0 -2
- package/cjs/masonry/index.js.map +0 -1
- package/cjs/masonry/masonry.js +0 -2
- package/cjs/masonry/masonry.js.map +0 -1
- package/cjs/masonry/masonry.style.js +0 -42
- package/cjs/masonry/masonry.style.js.map +0 -1
- package/cjs/popover/popover-hoc.js +0 -2
- package/cjs/popover/popover-hoc.js.map +0 -1
- package/cjs/popover-v2/index.js +0 -2
- package/cjs/popover-v2/index.js.map +0 -1
- package/cjs/popover-v2/popover-inline/popover-inline.js.map +0 -1
- package/cjs/popover-v2/popover-inline/popover-inline.styles.js +0 -2
- package/cjs/popover-v2/popover-inline/popover-inline.styles.js.map +0 -1
- package/cjs/popover-v2/popover-inline/popover-inline.styles_ziag9c.css +0 -2
- package/cjs/popover-v2/popover-trigger.js +0 -2
- package/cjs/popover-v2/popover-trigger.js.map +0 -1
- package/cjs/popover-v2/popover-trigger.styles.js +0 -2
- package/cjs/popover-v2/popover-trigger.styles.js.map +0 -1
- package/cjs/popover-v2/popover-trigger.styles_1yq7ffk.css +0 -1
- package/cjs/popover-v2/popover.js +0 -2
- package/cjs/popover-v2/popover.js.map +0 -1
- package/cjs/popover-v2/popover.styles.js +0 -2
- package/cjs/popover-v2/popover.styles.js.map +0 -1
- package/cjs/popover-v2/popover.styles_lslc72.css +0 -4
- package/cjs/progress-indicator/progress-indicator.style.js +0 -39
- package/cjs/progress-indicator/progress-indicator.style.js.map +0 -1
- package/cjs/theme/utils/media-query.js +0 -2
- package/cjs/theme/utils/media-query.js.map +0 -1
- package/cjs/timeline/timeline.style.js +0 -100
- package/cjs/timeline/timeline.style.js.map +0 -1
- package/cjs/timetable/timetable-header/timetable-header.style.js +0 -28
- package/cjs/timetable/timetable-header/timetable-header.style.js.map +0 -1
- package/cjs/timetable/timetable-row/row-bar.style.js +0 -5
- package/cjs/timetable/timetable-row/row-bar.style.js.map +0 -1
- package/cjs/timetable/timetable-row/row-cell.style.js +0 -53
- package/cjs/timetable/timetable-row/row-cell.style.js.map +0 -1
- package/cjs/timetable/timetable.style.js +0 -172
- package/cjs/timetable/timetable.style.js.map +0 -1
- package/cjs/tooltip/index.js +0 -2
- package/cjs/tooltip/index.js.map +0 -1
- package/cjs/tooltip/tooltip-hoc.js +0 -2
- package/cjs/tooltip/tooltip-hoc.js.map +0 -1
- package/cjs/tooltip/tooltip.js +0 -2
- package/cjs/tooltip/tooltip.js.map +0 -1
- package/cjs/tooltip/tooltip.styles.js +0 -192
- package/cjs/tooltip/tooltip.styles.js.map +0 -1
- package/cjs/unit-number/unit-number-input.style.js +0 -27
- package/cjs/unit-number/unit-number-input.style.js.map +0 -1
- package/cjs/v2_color/color.js +0 -2
- package/cjs/v2_color/color.js.map +0 -1
- package/cjs/v2_color/index.js +0 -2
- package/cjs/v2_color/index.js.map +0 -1
- package/cjs/v2_design-token/design-token.js +0 -2
- package/cjs/v2_design-token/design-token.js.map +0 -1
- package/cjs/v2_design-token/index.js +0 -2
- package/cjs/v2_design-token/index.js.map +0 -1
- package/cjs/v2_layout/col-div.js +0 -2
- package/cjs/v2_layout/col-div.js.map +0 -1
- package/cjs/v2_layout/col-div.style.js +0 -17
- package/cjs/v2_layout/col-div.style.js.map +0 -1
- package/cjs/v2_layout/container.js +0 -49
- package/cjs/v2_layout/container.js.map +0 -1
- package/cjs/v2_layout/content.js +0 -2
- package/cjs/v2_layout/content.js.map +0 -1
- package/cjs/v2_layout/index.js +0 -2
- package/cjs/v2_layout/index.js.map +0 -1
- package/cjs/v2_layout/section.js +0 -20
- package/cjs/v2_layout/section.js.map +0 -1
- package/cjs/v2_media/index.js +0 -2
- package/cjs/v2_media/index.js.map +0 -1
- package/cjs/v2_media/media.js +0 -2
- package/cjs/v2_media/media.js.map +0 -1
- package/cjs/v2_spec/color-spec/base-color-set.js +0 -2
- package/cjs/v2_spec/color-spec/base-color-set.js.map +0 -1
- package/cjs/v2_spec/color-spec/bookingsg-color-set.js +0 -2
- package/cjs/v2_spec/color-spec/bookingsg-color-set.js.map +0 -1
- package/cjs/v2_spec/color-spec/ccube-color-set.js +0 -2
- package/cjs/v2_spec/color-spec/ccube-color-set.js.map +0 -1
- package/cjs/v2_spec/color-spec/mylegacy-color-set.js +0 -2
- package/cjs/v2_spec/color-spec/mylegacy-color-set.js.map +0 -1
- package/cjs/v2_spec/color-spec/oneservice-color-set.js +0 -2
- package/cjs/v2_spec/color-spec/oneservice-color-set.js.map +0 -1
- package/cjs/v2_spec/color-spec/rbs-color-set.js +0 -2
- package/cjs/v2_spec/color-spec/rbs-color-set.js.map +0 -1
- package/cjs/v2_spec/design-token-spec/base-design-token-set.js +0 -8
- package/cjs/v2_spec/design-token-spec/base-design-token-set.js.map +0 -1
- package/cjs/v2_spec/design-token-spec/rbs-design-token-set.js +0 -8
- package/cjs/v2_spec/design-token-spec/rbs-design-token-set.js.map +0 -1
- package/cjs/v2_spec/media-spec.js +0 -2
- package/cjs/v2_spec/media-spec.js.map +0 -1
- package/cjs/v2_spec/text-spec/base-plus-jakarta-sans-text-style-set.js +0 -2
- package/cjs/v2_spec/text-spec/base-plus-jakarta-sans-text-style-set.js.map +0 -1
- package/cjs/v2_spec/text-spec/base-text-style-set.js +0 -2
- package/cjs/v2_spec/text-spec/base-text-style-set.js.map +0 -1
- package/cjs/v2_spec/text-spec/font-spec.js +0 -2
- package/cjs/v2_spec/text-spec/font-spec.js.map +0 -1
- package/cjs/v2_spec/text-spec/oneservice-text-style-set.js +0 -2
- package/cjs/v2_spec/text-spec/oneservice-text-style-set.js.map +0 -1
- package/cjs/v2_text/helper.js +0 -31
- package/cjs/v2_text/helper.js.map +0 -1
- package/cjs/v2_text/index.js +0 -2
- package/cjs/v2_text/index.js.map +0 -1
- package/cjs/v2_text/text-style.js +0 -2
- package/cjs/v2_text/text-style.js.map +0 -1
- package/cjs/v2_text/text.js +0 -107
- package/cjs/v2_text/text.js.map +0 -1
- package/cjs/v2_text/types.js +0 -2
- package/cjs/v2_text/types.js.map +0 -1
- package/cjs/v2_text-list/index.js +0 -2
- package/cjs/v2_text-list/index.js.map +0 -1
- package/cjs/v2_text-list/ordered-list.js +0 -2
- package/cjs/v2_text-list/ordered-list.js.map +0 -1
- package/cjs/v2_text-list/text-list.styles.js +0 -62
- package/cjs/v2_text-list/text-list.styles.js.map +0 -1
- package/cjs/v2_text-list/unordered-list.js +0 -2
- package/cjs/v2_text-list/unordered-list.js.map +0 -1
- package/cjs/v2_theme/color-theme-helper.js +0 -2
- package/cjs/v2_theme/color-theme-helper.js.map +0 -1
- package/cjs/v2_theme/design-token-helper.js +0 -2
- package/cjs/v2_theme/design-token-helper.js.map +0 -1
- package/cjs/v2_theme/helper.js +0 -2
- package/cjs/v2_theme/helper.js.map +0 -1
- package/cjs/v2_theme/index.js +0 -2
- package/cjs/v2_theme/index.js.map +0 -1
- package/cjs/v2_theme/text-theme-helper.js +0 -2
- package/cjs/v2_theme/text-theme-helper.js.map +0 -1
- package/cjs/v2_theme/types.js +0 -2
- package/cjs/v2_theme/types.js.map +0 -1
- package/cjs/v2_transition/index.js +0 -2
- package/cjs/v2_transition/index.js.map +0 -1
- package/cjs/v3_theme/components/specs/a11yplayground-component-token-set.js +0 -2
- package/cjs/v3_theme/components/specs/a11yplayground-component-token-set.js.map +0 -1
- package/cjs/v3_theme/components/specs/default-component-token-set.js +0 -2
- package/cjs/v3_theme/components/specs/default-component-token-set.js.map +0 -1
- package/cjs/v3_theme/components/specs/lifesg-component-token-set.js +0 -2
- package/cjs/v3_theme/components/specs/lifesg-component-token-set.js.map +0 -1
- package/cjs/v3_theme/components/specs/pa-component-token-set.js +0 -2
- package/cjs/v3_theme/components/specs/pa-component-token-set.js.map +0 -1
- package/cjs/v3_theme/components/specs/smgs-component-token-set.js +0 -2
- package/cjs/v3_theme/components/specs/smgs-component-token-set.js.map +0 -1
- package/cjs/v3_theme/components/specs/spf-component-token-set.js +0 -2
- package/cjs/v3_theme/components/specs/spf-component-token-set.js.map +0 -1
- package/cjs/v3_theme/components/theme-helper.js +0 -2
- package/cjs/v3_theme/components/theme-helper.js.map +0 -1
- package/countdown-timer/countdown-timer.style.d.ts +0 -42
- package/countdown-timer/countdown-timer.style.js +0 -58
- package/countdown-timer/countdown-timer.style.js.map +0 -1
- package/date-input/date-input.style.d.ts +0 -1
- package/date-input/date-input.style.js +0 -4
- package/date-input/date-input.style.js.map +0 -1
- package/date-range-input/date-range-input.style.d.ts +0 -8
- package/date-range-input/date-range-input.style.js +0 -17
- package/date-range-input/date-range-input.style.js.map +0 -1
- package/external/react-responsive/dist/react-responsive.js +0 -65
- package/external/react-responsive/dist/react-responsive.js.map +0 -1
- package/fullscreen-image-carousel/fullscreen-image-carousel.style.d.ts +0 -116
- package/fullscreen-image-carousel/fullscreen-image-carousel.style.js +0 -298
- package/fullscreen-image-carousel/fullscreen-image-carousel.style.js.map +0 -1
- package/fullscreen-image-carousel/stateful-image.style.d.ts +0 -7
- package/fullscreen-image-carousel/stateful-image.style.js +0 -13
- package/fullscreen-image-carousel/stateful-image.style.js.map +0 -1
- package/input-range-select/input-range-select.style.d.ts +0 -3
- package/input-range-select/input-range-select.style.js +0 -36
- package/input-range-select/input-range-select.style.js.map +0 -1
- package/language-switcher/dropdown-variant.style.d.ts +0 -11
- package/language-switcher/dropdown-variant.style.js +0 -62
- package/language-switcher/dropdown-variant.style.js.map +0 -1
- package/language-switcher/link-container-variant.style.d.ts +0 -8
- package/language-switcher/link-container-variant.style.js +0 -51
- package/language-switcher/link-container-variant.style.js.map +0 -1
- package/masked-input/masked-input.style.d.ts +0 -48
- package/masked-input/masked-input.style.js +0 -87
- package/masked-input/masked-input.style.js.map +0 -1
- package/masonry/index.d.ts +0 -1
- package/masonry/index.js +0 -2
- package/masonry/index.js.map +0 -1
- package/masonry/masonry.d.ts +0 -7
- package/masonry/masonry.js +0 -2
- package/masonry/masonry.js.map +0 -1
- package/masonry/masonry.style.d.ts +0 -6
- package/masonry/masonry.style.js +0 -42
- package/masonry/masonry.style.js.map +0 -1
- package/masonry/types.d.ts +0 -32
- package/popover/popover-hoc.d.ts +0 -4
- package/popover/popover-hoc.js +0 -2
- package/popover/popover-hoc.js.map +0 -1
- package/popover-v2/index.d.ts +0 -4
- package/popover-v2/index.js +0 -2
- package/popover-v2/index.js.map +0 -1
- package/popover-v2/popover-inline/popover-inline.styles.js +0 -2
- package/popover-v2/popover-inline/popover-inline.styles_ziag9c.css +0 -2
- package/popover-v2/popover-trigger.js +0 -2
- package/popover-v2/popover-trigger.js.map +0 -1
- package/popover-v2/popover-trigger.styles.js +0 -2
- package/popover-v2/popover-trigger.styles_1yq7ffk.css +0 -1
- package/popover-v2/popover.d.ts +0 -2
- package/popover-v2/popover.js +0 -2
- package/popover-v2/popover.js.map +0 -1
- package/popover-v2/popover.styles.d.ts +0 -10
- package/popover-v2/popover.styles.js +0 -2
- package/popover-v2/popover.styles.js.map +0 -1
- package/popover-v2/popover.styles_lslc72.css +0 -4
- package/popover-v2/types.d.ts +0 -59
- package/progress-indicator/progress-indicator.style.d.ts +0 -47
- package/progress-indicator/progress-indicator.style.js +0 -39
- package/progress-indicator/progress-indicator.style.js.map +0 -1
- package/theme/utils/media-query.d.ts +0 -6
- package/theme/utils/media-query.js +0 -2
- package/theme/utils/media-query.js.map +0 -1
- package/timeline/timeline.style.d.ts +0 -55
- package/timeline/timeline.style.js +0 -100
- package/timeline/timeline.style.js.map +0 -1
- package/timetable/timetable-header/timetable-header.style.d.ts +0 -31
- package/timetable/timetable-header/timetable-header.style.js +0 -28
- package/timetable/timetable-header/timetable-header.style.js.map +0 -1
- package/timetable/timetable-row/row-bar.style.d.ts +0 -1
- package/timetable/timetable-row/row-bar.style.js +0 -5
- package/timetable/timetable-row/row-bar.style.js.map +0 -1
- package/timetable/timetable-row/row-cell.style.d.ts +0 -60
- package/timetable/timetable-row/row-cell.style.js +0 -53
- package/timetable/timetable-row/row-cell.style.js.map +0 -1
- package/timetable/timetable.style.d.ts +0 -102
- package/timetable/timetable.style.js +0 -172
- package/timetable/timetable.style.js.map +0 -1
- package/tooltip/index.d.ts +0 -3
- package/tooltip/index.js +0 -2
- package/tooltip/index.js.map +0 -1
- package/tooltip/tooltip-hoc.d.ts +0 -3
- package/tooltip/tooltip-hoc.js +0 -2
- package/tooltip/tooltip-hoc.js.map +0 -1
- package/tooltip/tooltip.d.ts +0 -3
- package/tooltip/tooltip.js +0 -2
- package/tooltip/tooltip.js.map +0 -1
- package/tooltip/tooltip.styles.d.ts +0 -10
- package/tooltip/tooltip.styles.js +0 -192
- package/tooltip/tooltip.styles.js.map +0 -1
- package/tooltip/types.d.ts +0 -22
- package/unit-number/unit-number-input.style.d.ts +0 -52
- package/unit-number/unit-number-input.style.js +0 -27
- package/unit-number/unit-number-input.style.js.map +0 -1
- package/v2_color/color.d.ts +0 -5
- package/v2_color/color.js +0 -2
- package/v2_color/color.js.map +0 -1
- package/v2_color/index.d.ts +0 -2
- package/v2_color/index.js +0 -2
- package/v2_color/index.js.map +0 -1
- package/v2_color/types.d.ts +0 -62
- package/v2_design-token/design-token.d.ts +0 -23
- package/v2_design-token/design-token.js +0 -2
- package/v2_design-token/design-token.js.map +0 -1
- package/v2_design-token/index.d.ts +0 -2
- package/v2_design-token/index.js +0 -2
- package/v2_design-token/index.js.map +0 -1
- package/v2_design-token/types.d.ts +0 -28
- package/v2_layout/col-div.d.ts +0 -4
- package/v2_layout/col-div.js +0 -2
- package/v2_layout/col-div.js.map +0 -1
- package/v2_layout/col-div.style.d.ts +0 -9
- package/v2_layout/col-div.style.js +0 -17
- package/v2_layout/col-div.style.js.map +0 -1
- package/v2_layout/container.d.ts +0 -4
- package/v2_layout/container.js +0 -49
- package/v2_layout/container.js.map +0 -1
- package/v2_layout/content.d.ts +0 -4
- package/v2_layout/content.js +0 -2
- package/v2_layout/content.js.map +0 -1
- package/v2_layout/index.d.ts +0 -8
- package/v2_layout/index.js +0 -2
- package/v2_layout/index.js.map +0 -1
- package/v2_layout/section.d.ts +0 -4
- package/v2_layout/section.js +0 -20
- package/v2_layout/section.js.map +0 -1
- package/v2_layout/types.d.ts +0 -66
- package/v2_media/index.d.ts +0 -2
- package/v2_media/index.js +0 -2
- package/v2_media/index.js.map +0 -1
- package/v2_media/media.d.ts +0 -8
- package/v2_media/media.js +0 -2
- package/v2_media/media.js.map +0 -1
- package/v2_media/types.d.ts +0 -20
- package/v2_spec/color-spec/base-color-set.d.ts +0 -2
- package/v2_spec/color-spec/base-color-set.js +0 -2
- package/v2_spec/color-spec/base-color-set.js.map +0 -1
- package/v2_spec/color-spec/bookingsg-color-set.d.ts +0 -2
- package/v2_spec/color-spec/bookingsg-color-set.js +0 -2
- package/v2_spec/color-spec/bookingsg-color-set.js.map +0 -1
- package/v2_spec/color-spec/ccube-color-set.d.ts +0 -2
- package/v2_spec/color-spec/ccube-color-set.js +0 -2
- package/v2_spec/color-spec/ccube-color-set.js.map +0 -1
- package/v2_spec/color-spec/mylegacy-color-set.d.ts +0 -2
- package/v2_spec/color-spec/mylegacy-color-set.js +0 -2
- package/v2_spec/color-spec/mylegacy-color-set.js.map +0 -1
- package/v2_spec/color-spec/oneservice-color-set.d.ts +0 -2
- package/v2_spec/color-spec/oneservice-color-set.js +0 -2
- package/v2_spec/color-spec/oneservice-color-set.js.map +0 -1
- package/v2_spec/color-spec/rbs-color-set.d.ts +0 -2
- package/v2_spec/color-spec/rbs-color-set.js +0 -2
- package/v2_spec/color-spec/rbs-color-set.js.map +0 -1
- package/v2_spec/design-token-spec/base-design-token-set.d.ts +0 -2
- package/v2_spec/design-token-spec/base-design-token-set.js +0 -8
- package/v2_spec/design-token-spec/base-design-token-set.js.map +0 -1
- package/v2_spec/design-token-spec/rbs-design-token-set.d.ts +0 -2
- package/v2_spec/design-token-spec/rbs-design-token-set.js +0 -8
- package/v2_spec/design-token-spec/rbs-design-token-set.js.map +0 -1
- package/v2_spec/media-spec.d.ts +0 -2
- package/v2_spec/media-spec.js +0 -2
- package/v2_spec/media-spec.js.map +0 -1
- package/v2_spec/text-spec/base-plus-jakarta-sans-text-style-set.d.ts +0 -2
- package/v2_spec/text-spec/base-plus-jakarta-sans-text-style-set.js +0 -2
- package/v2_spec/text-spec/base-plus-jakarta-sans-text-style-set.js.map +0 -1
- package/v2_spec/text-spec/base-text-style-set.d.ts +0 -2
- package/v2_spec/text-spec/base-text-style-set.js +0 -2
- package/v2_spec/text-spec/base-text-style-set.js.map +0 -1
- package/v2_spec/text-spec/font-spec.d.ts +0 -15
- package/v2_spec/text-spec/font-spec.js +0 -2
- package/v2_spec/text-spec/font-spec.js.map +0 -1
- package/v2_spec/text-spec/oneservice-text-style-set.d.ts +0 -2
- package/v2_spec/text-spec/oneservice-text-style-set.js +0 -2
- package/v2_spec/text-spec/oneservice-text-style-set.js.map +0 -1
- package/v2_spec/text-spec/types.d.ts +0 -4
- package/v2_text/helper.d.ts +0 -7
- package/v2_text/helper.js +0 -31
- package/v2_text/helper.js.map +0 -1
- package/v2_text/index.d.ts +0 -4
- package/v2_text/index.js +0 -2
- package/v2_text/index.js.map +0 -1
- package/v2_text/text-style.d.ts +0 -5
- package/v2_text/text-style.js +0 -2
- package/v2_text/text-style.js.map +0 -1
- package/v2_text/text.d.ts +0 -22
- package/v2_text/text.js +0 -107
- package/v2_text/text.js.map +0 -1
- package/v2_text/types.d.ts +0 -44
- package/v2_text/types.js +0 -2
- package/v2_text/types.js.map +0 -1
- package/v2_text-list/index.d.ts +0 -6
- package/v2_text-list/index.js +0 -2
- package/v2_text-list/index.js.map +0 -1
- package/v2_text-list/ordered-list.d.ts +0 -3
- package/v2_text-list/ordered-list.js +0 -2
- package/v2_text-list/ordered-list.js.map +0 -1
- package/v2_text-list/text-list.styles.d.ts +0 -13
- package/v2_text-list/text-list.styles.js +0 -62
- package/v2_text-list/text-list.styles.js.map +0 -1
- package/v2_text-list/types.d.ts +0 -26
- package/v2_text-list/unordered-list.d.ts +0 -3
- package/v2_text-list/unordered-list.js +0 -2
- package/v2_text-list/unordered-list.js.map +0 -1
- package/v2_theme/color-theme-helper.d.ts +0 -1
- package/v2_theme/color-theme-helper.js +0 -2
- package/v2_theme/color-theme-helper.js.map +0 -1
- package/v2_theme/design-token-helper.d.ts +0 -2
- package/v2_theme/design-token-helper.js +0 -2
- package/v2_theme/design-token-helper.js.map +0 -1
- package/v2_theme/helper.d.ts +0 -16
- package/v2_theme/helper.js +0 -2
- package/v2_theme/helper.js.map +0 -1
- package/v2_theme/index.d.ts +0 -8
- package/v2_theme/index.js +0 -2
- package/v2_theme/index.js.map +0 -1
- package/v2_theme/text-theme-helper.d.ts +0 -1
- package/v2_theme/text-theme-helper.js +0 -2
- package/v2_theme/text-theme-helper.js.map +0 -1
- package/v2_theme/types.d.ts +0 -48
- package/v2_theme/types.js +0 -2
- package/v2_theme/types.js.map +0 -1
- package/v2_transition/index.d.ts +0 -5
- package/v2_transition/index.js +0 -2
- package/v2_transition/index.js.map +0 -1
- package/v3_theme/components/specs/a11yplayground-component-token-set.js +0 -2
- package/v3_theme/components/specs/a11yplayground-component-token-set.js.map +0 -1
- package/v3_theme/components/specs/default-component-token-set.js +0 -2
- package/v3_theme/components/specs/default-component-token-set.js.map +0 -1
- package/v3_theme/components/specs/lifesg-component-token-set.js +0 -2
- package/v3_theme/components/specs/lifesg-component-token-set.js.map +0 -1
- package/v3_theme/components/specs/pa-component-token-set.js +0 -2
- package/v3_theme/components/specs/pa-component-token-set.js.map +0 -1
- package/v3_theme/components/specs/smgs-component-token-set.js +0 -2
- package/v3_theme/components/specs/smgs-component-token-set.js.map +0 -1
- package/v3_theme/components/specs/spf-component-token-set.js +0 -2
- package/v3_theme/components/specs/spf-component-token-set.js.map +0 -1
- package/v3_theme/components/theme-helper.js +0 -2
- package/v3_theme/components/theme-helper.js.map +0 -1
- /package/cjs/{popover-v2 → popover}/popover-inline/popover-inline.js +0 -0
- /package/{popover-v2 → popover}/popover-inline/index.d.ts +0 -0
- /package/{popover-v2 → popover}/popover-inline/popover-inline.d.ts +0 -0
- /package/{popover-v2 → popover}/popover-inline/popover-inline.js +0 -0
- /package/{popover-v2 → popover}/popover-inline/popover-inline.styles.d.ts +0 -0
- /package/{popover-v2 → popover}/popover-trigger.styles.d.ts +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{commonjsGlobal as r}from"../../../_virtual/_commonjsHelpers.js";import{__exports as e}from"../../../_virtual/
|
|
1
|
+
import{commonjsGlobal as r}from"../../../_virtual/_commonjsHelpers.js";import{__exports as e}from"../../../_virtual/index.js";import{l as o}from"../../lodash.clonedeep/index.js";var t=r&&r.__spreadArrays||function(){for(var r=0,e=0,o=arguments.length;e<o;e++)r+=arguments[e].length;var t=Array(r),n=0;for(e=0;e<o;e++)for(var a=arguments[e],f=0,u=a.length;f<u;f++,n++)t[n]=a[f];return t},n=r&&r.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0});var a=e.getColors=e.flatten=e.replaceColor=e.colorify=void 0,f=n(o);e.colorify=function(r,e){void 0===r&&(r=[]);for(var o=[],t=0,n=r;t<n.length;t++){var a=n[t];o.push(u(a))}return i(o,f.default(e))};var u=function(r){if("string"==typeof r&&r.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i)){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);if(!e)throw new Error("Color can be only hex or rgb array (ex. [10,20,30])");return[Math.round(parseInt(e[1],16)/255*1e3)/1e3,Math.round(parseInt(e[2],16)/255*1e3)/1e3,Math.round(parseInt(e[3],16)/255*1e3)/1e3]}if("object"==typeof r&&3===r.length&&r.every((function(r){return r>=0&&r<=255})))return[Math.round(r[0]/255*1e3)/1e3,Math.round(r[1]/255*1e3)/1e3,Math.round(r[2]/255*1e3)/1e3];if(r)throw new Error("Color can be only hex or rgb array (ex. [10,20,30])")},s=function(r){return Math.round(1e3*r)/1e3};e.replaceColor=function(r,e,o){var n=u(r),a=u(e);if(!n||!a)throw new Error("Proper colors must be used for both source and target");return function r(e,o,n){if(n.s&&Array.isArray(n.s)&&4===n.s.length)e[0]===n.s[0]&&e[1]===n.s[1]&&e[2]===n.s[2]&&(n.s=t(o,[1]));else if(n.c&&n.c.k)Array.isArray(n.c.k)&&"number"!=typeof n.c.k[0]?r(e,o,n.c.k):e[0]===s(n.c.k[0])&&e[1]===s(n.c.k[1])&&e[2]===s(n.c.k[2])&&(n.c.k=o);else for(var a in n)"object"==typeof n[a]&&r(e,o,n[a]);return n}(n,a,f.default(o))};var c=e.flatten=function(r,e){var o=u(r);if(!o)throw new Error("Proper colors must be used for target");return function r(e,o){if(o.s&&Array.isArray(o.s)&&4===o.s.length)o.s=t(e,[1]);else if(o.c&&o.c.k)Array.isArray(o.c.k)&&"number"!=typeof o.c.k[0]?r(e,o.c.k):o.c.k=e;else for(var n in o)"object"==typeof o[n]&&r(e,o[n]);return o}(o,f.default(e))},i=function(r,e){var o=0;return function r(e,n){for(var a in n.s&&Array.isArray(n.s)&&4===n.s.length?(e[o]&&(n.s=t(e[o],[1])),o++):n.c&&n.c.k&&(Array.isArray(n.c.k)&&"number"!=typeof n.c.k[0]?r(e,n.c.k):(e[o]&&(n.c.k=e[o]),o++)),n)"object"==typeof n[a]&&r(e,n[a]);return n}(r,e)};a=e.getColors=function(r){var e=[];return function r(o){if(o.s&&Array.isArray(o.s)&&4===o.s.length)e.push((n=o.s,[Math.round(255*n[0]),Math.round(255*n[1]),Math.round(255*n[2]),n[3]]));else if(o.c&&o.c.k)Array.isArray(o.c.k)&&"number"!=typeof o.c.k[0]?r(o.c.k):e.push(function(r){return[Math.round(255*r[0]),Math.round(255*r[1]),Math.round(255*r[2])]}(o.c.k));else for(var t in o)"object"==typeof o[t]&&r(o[t]);var n;return e}(r),e};export{e as default,c as flatten,a as getColors};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../node_modules/lottie-colorify/lib/index.js"],"sourcesContent":["\"use strict\";\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getColors = exports.flatten = exports.replaceColor = exports.colorify = void 0;\nvar lodash_clonedeep_1 = __importDefault(require(\"lodash.clonedeep\"));\nexports.colorify = function (destColors, lottie) {\n if (destColors === void 0) { destColors = []; }\n var modifiedColors = [];\n for (var _i = 0, destColors_1 = destColors; _i < destColors_1.length; _i++) {\n var color = destColors_1[_i];\n modifiedColors.push(convertColorToLottieColor(color));\n }\n var newLottie = modifyColors(modifiedColors, lodash_clonedeep_1.default(lottie));\n return newLottie;\n};\nvar convertColorToLottieColor = function (color) {\n if (typeof color === 'string' && color.match(/^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i)) {\n var result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(color);\n if (!result) {\n throw new Error('Color can be only hex or rgb array (ex. [10,20,30])');\n }\n return [\n Math.round((parseInt(result[1], 16) / 255) * 1000) / 1000,\n Math.round((parseInt(result[2], 16) / 255) * 1000) / 1000,\n Math.round((parseInt(result[3], 16) / 255) * 1000) / 1000,\n ];\n }\n else if (typeof color === 'object' && color.length === 3 && color.every(function (item) { return item >= 0 && item <= 255; })) {\n return [\n Math.round((color[0] / 255) * 1000) / 1000,\n Math.round((color[1] / 255) * 1000) / 1000,\n Math.round((color[2] / 255) * 1000) / 1000,\n ];\n }\n else if (!color) {\n return undefined;\n }\n else {\n throw new Error('Color can be only hex or rgb array (ex. [10,20,30])');\n }\n};\nvar round = function (n) { return Math.round(n * 1000) / 1000; };\nexports.replaceColor = function (sourceColor, targetColor, lottieObj) {\n var genSourceLottieColor = convertColorToLottieColor(sourceColor);\n var genTargetLottieColor = convertColorToLottieColor(targetColor);\n if (!genSourceLottieColor || !genTargetLottieColor) {\n throw new Error('Proper colors must be used for both source and target');\n }\n function doReplace(sourceLottieColor, targetLottieColor, obj) {\n if (obj.s && Array.isArray(obj.s) && obj.s.length === 4) {\n if (sourceLottieColor[0] === obj.s[0] && sourceLottieColor[1] === obj.s[1] && sourceLottieColor[2] === obj.s[2]) {\n obj.s = __spreadArrays(targetLottieColor, [1]);\n }\n }\n else if (obj.c && obj.c.k) {\n if (Array.isArray(obj.c.k) && typeof obj.c.k[0] !== 'number') {\n doReplace(sourceLottieColor, targetLottieColor, obj.c.k);\n }\n else if (sourceLottieColor[0] === round(obj.c.k[0]) &&\n sourceLottieColor[1] === round(obj.c.k[1]) &&\n sourceLottieColor[2] === round(obj.c.k[2])) {\n obj.c.k = targetLottieColor;\n }\n }\n else {\n for (var key in obj) {\n if (typeof obj[key] === 'object') {\n doReplace(sourceLottieColor, targetLottieColor, obj[key]);\n }\n }\n }\n return obj;\n }\n return doReplace(genSourceLottieColor, genTargetLottieColor, lodash_clonedeep_1.default(lottieObj));\n};\nexports.flatten = function (targetColor, lottieObj) {\n var genTargetLottieColor = convertColorToLottieColor(targetColor);\n if (!genTargetLottieColor) {\n throw new Error('Proper colors must be used for target');\n }\n function doFlatten(targetLottieColor, obj) {\n if (obj.s && Array.isArray(obj.s) && obj.s.length === 4) {\n obj.s = __spreadArrays(targetLottieColor, [1]);\n }\n else if (obj.c && obj.c.k) {\n if (Array.isArray(obj.c.k) && typeof obj.c.k[0] !== 'number') {\n doFlatten(targetLottieColor, obj.c.k);\n }\n else {\n obj.c.k = targetLottieColor;\n }\n }\n else {\n for (var key in obj) {\n if (typeof obj[key] === 'object') {\n doFlatten(targetLottieColor, obj[key]);\n }\n }\n }\n return obj;\n }\n return doFlatten(genTargetLottieColor, lodash_clonedeep_1.default(lottieObj));\n};\nvar modifyColors = function (colorsArray, lottieObj) {\n var i = 0;\n function doModify(colors, obj) {\n if (obj.s && Array.isArray(obj.s) && obj.s.length === 4) {\n if (colors[i]) {\n obj.s = __spreadArrays(colors[i], [1]);\n }\n i++;\n }\n else if (obj.c && obj.c.k) {\n if (Array.isArray(obj.c.k) && typeof obj.c.k[0] !== 'number') {\n doModify(colors, obj.c.k);\n }\n else {\n if (colors[i]) {\n obj.c.k = colors[i];\n }\n i++;\n }\n }\n for (var key in obj) {\n if (typeof obj[key] === 'object') {\n doModify(colors, obj[key]);\n }\n }\n return obj;\n }\n return doModify(colorsArray, lottieObj);\n};\nvar convertLottieColorToRgb = function (lottieColor) {\n return [Math.round(lottieColor[0] * 255), Math.round(lottieColor[1] * 255), Math.round(lottieColor[2] * 255)];\n};\nvar convertLottieColorToRgba = function (lottieColor) {\n return [\n Math.round(lottieColor[0] * 255),\n Math.round(lottieColor[1] * 255),\n Math.round(lottieColor[2] * 255),\n lottieColor[3],\n ];\n};\nexports.getColors = function (lottieObj) {\n var res = [];\n function doGet(obj) {\n if (obj.s && Array.isArray(obj.s) && obj.s.length === 4) {\n res.push(convertLottieColorToRgba(obj.s));\n }\n else if (obj.c && obj.c.k) {\n if (Array.isArray(obj.c.k) && typeof obj.c.k[0] !== 'number') {\n doGet(obj.c.k);\n }\n else {\n res.push(convertLottieColorToRgb(obj.c.k));\n }\n }\n else {\n for (var key in obj) {\n if (typeof obj[key] === 'object') {\n doGet(obj[key]);\n }\n }\n }\n return res;\n }\n doGet(lottieObj);\n return res;\n};\n"],"names":["__spreadArrays","this","s","i","il","arguments","length","r","Array","k","a","j","jl","__importDefault","mod","__esModule","default","Object","defineProperty","lib","value","getColors","replaceColor","colorify","lodash_clonedeep_1","require$$0","destColors","lottie","modifiedColors","_i","destColors_1","color","push","convertColorToLottieColor","modifyColors","match","result","exec","Error","Math","round","parseInt","every","item","n","sourceColor","targetColor","lottieObj","genSourceLottieColor","genTargetLottieColor","doReplace","sourceLottieColor","targetLottieColor","obj","isArray","c","key","flatten","doFlatten","colorsArray","doModify","colors","res","doGet","lottieColor","convertLottieColorToRgb"],"mappings":"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","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../node_modules/lottie-colorify/lib/index.js"],"sourcesContent":["\"use strict\";\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getColors = exports.flatten = exports.replaceColor = exports.colorify = void 0;\nvar lodash_clonedeep_1 = __importDefault(require(\"lodash.clonedeep\"));\nexports.colorify = function (destColors, lottie) {\n if (destColors === void 0) { destColors = []; }\n var modifiedColors = [];\n for (var _i = 0, destColors_1 = destColors; _i < destColors_1.length; _i++) {\n var color = destColors_1[_i];\n modifiedColors.push(convertColorToLottieColor(color));\n }\n var newLottie = modifyColors(modifiedColors, lodash_clonedeep_1.default(lottie));\n return newLottie;\n};\nvar convertColorToLottieColor = function (color) {\n if (typeof color === 'string' && color.match(/^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i)) {\n var result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(color);\n if (!result) {\n throw new Error('Color can be only hex or rgb array (ex. [10,20,30])');\n }\n return [\n Math.round((parseInt(result[1], 16) / 255) * 1000) / 1000,\n Math.round((parseInt(result[2], 16) / 255) * 1000) / 1000,\n Math.round((parseInt(result[3], 16) / 255) * 1000) / 1000,\n ];\n }\n else if (typeof color === 'object' && color.length === 3 && color.every(function (item) { return item >= 0 && item <= 255; })) {\n return [\n Math.round((color[0] / 255) * 1000) / 1000,\n Math.round((color[1] / 255) * 1000) / 1000,\n Math.round((color[2] / 255) * 1000) / 1000,\n ];\n }\n else if (!color) {\n return undefined;\n }\n else {\n throw new Error('Color can be only hex or rgb array (ex. [10,20,30])');\n }\n};\nvar round = function (n) { return Math.round(n * 1000) / 1000; };\nexports.replaceColor = function (sourceColor, targetColor, lottieObj) {\n var genSourceLottieColor = convertColorToLottieColor(sourceColor);\n var genTargetLottieColor = convertColorToLottieColor(targetColor);\n if (!genSourceLottieColor || !genTargetLottieColor) {\n throw new Error('Proper colors must be used for both source and target');\n }\n function doReplace(sourceLottieColor, targetLottieColor, obj) {\n if (obj.s && Array.isArray(obj.s) && obj.s.length === 4) {\n if (sourceLottieColor[0] === obj.s[0] && sourceLottieColor[1] === obj.s[1] && sourceLottieColor[2] === obj.s[2]) {\n obj.s = __spreadArrays(targetLottieColor, [1]);\n }\n }\n else if (obj.c && obj.c.k) {\n if (Array.isArray(obj.c.k) && typeof obj.c.k[0] !== 'number') {\n doReplace(sourceLottieColor, targetLottieColor, obj.c.k);\n }\n else if (sourceLottieColor[0] === round(obj.c.k[0]) &&\n sourceLottieColor[1] === round(obj.c.k[1]) &&\n sourceLottieColor[2] === round(obj.c.k[2])) {\n obj.c.k = targetLottieColor;\n }\n }\n else {\n for (var key in obj) {\n if (typeof obj[key] === 'object') {\n doReplace(sourceLottieColor, targetLottieColor, obj[key]);\n }\n }\n }\n return obj;\n }\n return doReplace(genSourceLottieColor, genTargetLottieColor, lodash_clonedeep_1.default(lottieObj));\n};\nexports.flatten = function (targetColor, lottieObj) {\n var genTargetLottieColor = convertColorToLottieColor(targetColor);\n if (!genTargetLottieColor) {\n throw new Error('Proper colors must be used for target');\n }\n function doFlatten(targetLottieColor, obj) {\n if (obj.s && Array.isArray(obj.s) && obj.s.length === 4) {\n obj.s = __spreadArrays(targetLottieColor, [1]);\n }\n else if (obj.c && obj.c.k) {\n if (Array.isArray(obj.c.k) && typeof obj.c.k[0] !== 'number') {\n doFlatten(targetLottieColor, obj.c.k);\n }\n else {\n obj.c.k = targetLottieColor;\n }\n }\n else {\n for (var key in obj) {\n if (typeof obj[key] === 'object') {\n doFlatten(targetLottieColor, obj[key]);\n }\n }\n }\n return obj;\n }\n return doFlatten(genTargetLottieColor, lodash_clonedeep_1.default(lottieObj));\n};\nvar modifyColors = function (colorsArray, lottieObj) {\n var i = 0;\n function doModify(colors, obj) {\n if (obj.s && Array.isArray(obj.s) && obj.s.length === 4) {\n if (colors[i]) {\n obj.s = __spreadArrays(colors[i], [1]);\n }\n i++;\n }\n else if (obj.c && obj.c.k) {\n if (Array.isArray(obj.c.k) && typeof obj.c.k[0] !== 'number') {\n doModify(colors, obj.c.k);\n }\n else {\n if (colors[i]) {\n obj.c.k = colors[i];\n }\n i++;\n }\n }\n for (var key in obj) {\n if (typeof obj[key] === 'object') {\n doModify(colors, obj[key]);\n }\n }\n return obj;\n }\n return doModify(colorsArray, lottieObj);\n};\nvar convertLottieColorToRgb = function (lottieColor) {\n return [Math.round(lottieColor[0] * 255), Math.round(lottieColor[1] * 255), Math.round(lottieColor[2] * 255)];\n};\nvar convertLottieColorToRgba = function (lottieColor) {\n return [\n Math.round(lottieColor[0] * 255),\n Math.round(lottieColor[1] * 255),\n Math.round(lottieColor[2] * 255),\n lottieColor[3],\n ];\n};\nexports.getColors = function (lottieObj) {\n var res = [];\n function doGet(obj) {\n if (obj.s && Array.isArray(obj.s) && obj.s.length === 4) {\n res.push(convertLottieColorToRgba(obj.s));\n }\n else if (obj.c && obj.c.k) {\n if (Array.isArray(obj.c.k) && typeof obj.c.k[0] !== 'number') {\n doGet(obj.c.k);\n }\n else {\n res.push(convertLottieColorToRgb(obj.c.k));\n }\n }\n else {\n for (var key in obj) {\n if (typeof obj[key] === 'object') {\n doGet(obj[key]);\n }\n }\n }\n return res;\n }\n doGet(lottieObj);\n return res;\n};\n"],"names":["__spreadArrays","this","s","i","il","arguments","length","r","Array","k","a","j","jl","__importDefault","mod","__esModule","default","Object","defineProperty","lib","value","getColors","replaceColor","colorify","lodash_clonedeep_1","require$$0","destColors","lottie","modifiedColors","_i","destColors_1","color","push","convertColorToLottieColor","modifyColors","match","result","exec","Error","Math","round","parseInt","every","item","n","sourceColor","targetColor","lottieObj","genSourceLottieColor","genTargetLottieColor","doReplace","sourceLottieColor","targetLottieColor","obj","isArray","c","key","flatten","doFlatten","colorsArray","doModify","colors","res","doGet","lottieColor","convertLottieColorToRgb"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__module as r}from"../../../../_virtual/
|
|
1
|
+
import{__module as r}from"../../../../_virtual/index4.js";import{__require as e}from"./cjs/react-is.production.min.js";import{__require as o}from"./cjs/react-is.development.js";var s;function t(){return s||(s=1,"production"===process.env.NODE_ENV?r.exports=e():r.exports=o()),r.exports}export{t as __require};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{getDefaultExportFromCjs as r}from"../../_virtual/_commonjsHelpers.js";import{__module as e}from"../../_virtual/
|
|
1
|
+
import{getDefaultExportFromCjs as r}from"../../_virtual/_commonjsHelpers.js";import{__module as e}from"../../_virtual/index2.js";import{__require as o}from"./external/react-is/index.js";import{__require as s}from"./factoryWithTypeCheckers.js";import{__require as i}from"./factoryWithThrowingShims.js";if("production"!==process.env.NODE_ENV){var t=o();e.exports=s()(t.isElement,!0)}else e.exports=i()();var m=r(e.exports);export{m as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../node_modules/prop-types/index.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"],"names":["process","env","NODE_ENV","ReactIs","require$$0","propTypesModule","exports","require$$1","isElement","require$$2"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../node_modules/prop-types/index.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"],"names":["process","env","NODE_ENV","ReactIs","require$$0","propTypesModule","exports","require$$1","isElement","require$$2"],"mappings":"6SAOA,GAA6B,eAAzBA,QAAQC,IAAIC,SAA2B,CACzC,IAAIC,EAAUC,IAKdC,EAAAC,QAAiBC,IAAqCJ,EAAQK,WADpC,EAE5B,MAGEH,EAAAC,QAAiBG","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as a,Fragment as r,jsx as e}from"react/jsx-runtime";import{useRef as
|
|
1
|
+
import{jsxs as a,Fragment as r,jsx as e}from"react/jsx-runtime";import{StarIcon as i}from"@lifesg/react-icons/star";import{StarFillIcon as t}from"@lifesg/react-icons/star-fill";import n from"clsx";import{useRef as s,useState as o}from"react";import{VisuallyHidden as c}from"../shared/accessibility/index.js";import{container as l,containerIsFocused as m,label as d,star as f}from"./feedback-rating-stars-container.styles.js";import{StarContainerData as u}from"./feedback-rating-stars-container-data.js";const p=p=>{const{ariaLabelledBy:b,ariaDescribedBy:g,rating:h,onRatingChange:y}=p,v=u.MAX_STAR,x=Math.min(Math.max(null!=h?h:0,0),v),j=s(null),[k,N]=o(!1),A=a=>e(a<=x?t:i,{"aria-hidden":!0,className:f});return a(r,{children:[e(c,{children:e("input",{ref:j,type:"range",min:0,max:v,step:1,value:x,"aria-labelledby":b,"aria-describedby":g,"aria-valuetext":`${x} star${1===x?"":"s"}`,onChange:a=>{y(Number(a.target.value))},onFocus:()=>{N(!0)},onBlur:()=>{N(!1)}})}),e("div",{"aria-hidden":!0,className:n(l,k&&m),children:[...Array(v)].map(((a,r)=>{const i=r+1;return e("div",{className:d,"data-testid":`feedback-rating-star-${i}`,onClick:()=>(a=>{var r;y(a),null===(r=j.current)||void 0===r||r.focus()})(i),children:A(i)},i)}))})]})};export{p as FeedbackRatingStarsContainer};
|
|
2
2
|
//# sourceMappingURL=feedback-rating-stars-container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feedback-rating-stars-container.js","sources":["../../src/feedback-rating/feedback-rating-stars-container.tsx"],"sourcesContent":["import type { ChangeEvent } from \"react\";\nimport { useRef, useState } from \"react\";\n\nimport { VisuallyHidden } from \"../shared/accessibility\";\nimport
|
|
1
|
+
{"version":3,"file":"feedback-rating-stars-container.js","sources":["../../src/feedback-rating/feedback-rating-stars-container.tsx"],"sourcesContent":["import { StarIcon } from \"@lifesg/react-icons/star\";\nimport { StarFillIcon } from \"@lifesg/react-icons/star-fill\";\nimport clsx from \"clsx\";\nimport type { ChangeEvent } from \"react\";\nimport { useRef, useState } from \"react\";\n\nimport { VisuallyHidden } from \"../shared/accessibility\";\nimport * as styles from \"./feedback-rating-stars-container.styles\";\nimport { StarContainerData } from \"./feedback-rating-stars-container-data\";\n\ninterface FeedbackRatingStarsContainerProps {\n ariaLabelledBy: string;\n ariaDescribedBy: string;\n rating: number;\n onRatingChange: (value: number) => void;\n}\n\nexport const FeedbackRatingStarsContainer = (\n props: FeedbackRatingStarsContainerProps\n): JSX.Element => {\n // =========================================================================\n // CONST, STATE, REF\n // =========================================================================\n const { ariaLabelledBy, ariaDescribedBy, rating, onRatingChange } = props;\n const maxRating = StarContainerData.MAX_STAR;\n const currentRating = Math.min(Math.max(rating ?? 0, 0), maxRating);\n const inputRef = useRef<HTMLInputElement>(null);\n const [isFocused, setIsFocused] = useState(false);\n\n // =========================================================================\n // EVENT HANDLERS\n // =========================================================================\n const handleStarSelection = (starIndex: number) => {\n onRatingChange(starIndex);\n inputRef.current?.focus();\n };\n\n const handleRangeChange = (event: ChangeEvent<HTMLInputElement>) => {\n onRatingChange(Number(event.target.value));\n };\n\n const handleFocus = () => {\n setIsFocused(true);\n };\n\n const handleBlur = () => {\n setIsFocused(false);\n };\n\n // =========================================================================\n // RENDER FUNCTIONS\n // =========================================================================\n const getAriaValueText = () => {\n return `${currentRating} star${currentRating === 1 ? \"\" : \"s\"}`;\n };\n\n const renderStar = (starIndex: number) => {\n if (starIndex <= currentRating) {\n return <StarFillIcon aria-hidden className={styles.star} />;\n }\n\n return <StarIcon aria-hidden className={styles.star} />;\n };\n\n const renderRatings = () => {\n return [...Array(maxRating)].map((_star, index) => {\n const starIndex = index + 1;\n\n return (\n <div\n key={starIndex}\n className={styles.label}\n data-testid={`feedback-rating-star-${starIndex}`}\n onClick={() => handleStarSelection(starIndex)}\n >\n {renderStar(starIndex)}\n </div>\n );\n });\n };\n\n return (\n <>\n <VisuallyHidden>\n <input\n ref={inputRef}\n type=\"range\"\n min={0}\n max={maxRating}\n step={1}\n value={currentRating}\n aria-labelledby={ariaLabelledBy}\n aria-describedby={ariaDescribedBy}\n aria-valuetext={getAriaValueText()}\n onChange={handleRangeChange}\n onFocus={handleFocus}\n onBlur={handleBlur}\n />\n </VisuallyHidden>\n <div\n aria-hidden\n className={clsx(\n styles.container,\n isFocused && styles.containerIsFocused\n )}\n >\n {renderRatings()}\n </div>\n </>\n );\n};\n"],"names":["FeedbackRatingStarsContainer","props","ariaLabelledBy","ariaDescribedBy","rating","onRatingChange","maxRating","StarContainerData","MAX_STAR","currentRating","Math","min","max","inputRef","useRef","isFocused","setIsFocused","useState","renderStar","starIndex","_jsx","StarFillIcon","StarIcon","className","styles.star","_jsxs","_Fragment","children","VisuallyHidden","ref","type","step","value","onChange","event","Number","target","onFocus","onBlur","clsx","styles.container","styles.containerIsFocused","Array","map","_star","index","styles.label","onClick","_a","current","focus","handleStarSelection"],"mappings":"ufAiBO,MAAMA,EACTC,IAKA,MAAMC,eAAEA,EAAcC,gBAAEA,EAAeC,OAAEA,EAAMC,eAAEA,GAAmBJ,EAC9DK,EAAYC,EAAkBC,SAC9BC,EAAgBC,KAAKC,IAAID,KAAKE,IAAIR,QAAAA,EAAU,EAAG,GAAIE,GACnDO,EAAWC,EAAyB,OACnCC,EAAWC,GAAgBC,GAAS,GA6BrCC,EAAcC,GAELC,EADPD,GAAaV,EACLY,EAGJC,EAHgB,CAAA,eAAA,EAAaC,UAAWC,IAuBpD,OACIC,EAAAC,EAAA,CAAAC,SAAA,CACIP,EAACQ,YACGR,EAAA,QAAA,CACIS,IAAKhB,EACLiB,KAAK,QACLnB,IAAK,EACLC,IAAKN,EACLyB,KAAM,EACNC,MAAOvB,EAAa,kBACHP,EAAc,mBACbC,mBAvCvB,GAAGM,SAAuC,IAAlBA,EAAsB,GAAK,MAyC9CwB,SAzDWC,IACvB7B,EAAe8B,OAAOD,EAAME,OAAOJ,OAAO,EAyD9BK,QAtDI,KAChBrB,GAAa,EAAK,EAsDNsB,OAnDG,KACftB,GAAa,EAAM,MAqDfI,EAAA,MAAA,CAAA,eAAA,EAEIG,UAAWgB,EACPC,EACAzB,GAAa0B,YAtClB,IAAIC,MAAMpC,IAAYqC,KAAI,CAACC,EAAOC,KACrC,MAAM1B,EAAY0B,EAAQ,EAE1B,OACIzB,EAAA,MAAA,CAEIG,UAAWuB,EAAY,cACV,wBAAwB3B,IACrC4B,QAAS,IAzCG,CAAC5B,UACzBd,EAAec,GACC,QAAhB6B,EAAAnC,EAASoC,eAAO,IAAAD,GAAAA,EAAEE,OAAO,EAuCEC,CAAoBhC,GAAUQ,SAE5CT,EAAWC,IALPA,EAMH,QAgCX"}
|
|
@@ -1,23 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
6
|
-
}, never>>> & string & Omit<{
|
|
7
|
-
(props: import("react").SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
}, keyof import("react").Component<any, {}, any>>;
|
|
10
|
-
export declare const StarFilled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
|
|
11
|
-
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
12
|
-
}, never> & Partial<Pick<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
|
|
13
|
-
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
14
|
-
}, never>>> & string & Omit<{
|
|
15
|
-
(props: import("react").SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
displayName: string;
|
|
17
|
-
}, keyof import("react").Component<any, {}, any>>;
|
|
18
|
-
export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
19
|
-
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$isFocused"> & {
|
|
20
|
-
$isFocused: boolean;
|
|
21
|
-
}, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$isFocused"> & {
|
|
22
|
-
$isFocused: boolean;
|
|
23
|
-
}, never>>> & string;
|
|
1
|
+
export declare const star: import("@linaria/core").LinariaClassName;
|
|
2
|
+
export declare const label: import("@linaria/core").LinariaClassName;
|
|
3
|
+
export declare const container: import("@linaria/core").LinariaClassName;
|
|
4
|
+
export declare const containerIsFocused: import("@linaria/core").LinariaClassName;
|
|
@@ -1,37 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
position: absolute;
|
|
3
|
-
opacity: 0;
|
|
4
|
-
width: 0;
|
|
5
|
-
height: 0;
|
|
6
|
-
`;const c=o`
|
|
7
|
-
width: 2.75rem;
|
|
8
|
-
height: 2.75rem;
|
|
9
|
-
color: ${r["icon-primary"]};
|
|
10
|
-
`,p=e(i)`
|
|
11
|
-
${c}
|
|
12
|
-
`,l=e(t)`
|
|
13
|
-
${c}
|
|
14
|
-
`,d=e.div`
|
|
15
|
-
margin: 0 ${n["spacing-8"]};
|
|
16
|
-
line-height: 0;
|
|
17
|
-
display: flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
|
|
21
|
-
${s.MaxWidth.md} {
|
|
22
|
-
margin: 0 ${n["spacing-8"]};
|
|
23
|
-
}
|
|
24
|
-
`,$=e.div`
|
|
25
|
-
display: flex;
|
|
26
|
-
justify-content: center;
|
|
27
|
-
margin: ${n["spacing-8"]} ${n["spacing-16"]};
|
|
28
|
-
border-radius: ${a.sm};
|
|
29
|
-
outline: none;
|
|
30
|
-
|
|
31
|
-
${({$isFocused:i})=>i&&o`
|
|
32
|
-
outline: ${m["width-020"]} ${m.solid}
|
|
33
|
-
${r["icon-primary"]};
|
|
34
|
-
outline-offset: 2px;
|
|
35
|
-
`}
|
|
36
|
-
`;export{$ as Container,d as Label,l as StarFilled,p as StarUnfilled};
|
|
1
|
+
import"./feedback-rating-stars-container.styles_dmi8z9.css";const s="sk1h6mz",t="lg72zyg",c="c1w9ub4z",e="chyiool";export{c as container,e as containerIsFocused,t as label,s as star};
|
|
37
2
|
//# sourceMappingURL=feedback-rating-stars-container.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feedback-rating-stars-container.styles.js","sources":["../../src/feedback-rating/feedback-rating-stars-container.styles.
|
|
1
|
+
{"version":3,"file":"feedback-rating-stars-container.styles.js","sources":["../../src/feedback-rating/feedback-rating-stars-container.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport { Border, Colour, Radius, Spacing } from \"../theme\";\n\nexport const star = css`\n width: 2.75rem;\n height: 2.75rem;\n color: ${Colour[\"icon-primary\"]};\n`;\n\nexport const label = css`\n margin: 0 ${Spacing[\"spacing-8\"]};\n line-height: 0;\n display: flex;\n align-items: center;\n cursor: pointer;\n`;\n\nexport const container = css`\n display: flex;\n justify-content: center;\n margin: ${Spacing[\"spacing-8\"]} ${Spacing[\"spacing-16\"]};\n border-radius: ${Radius[\"sm\"]};\n outline: none;\n`;\n\nexport const containerIsFocused = css`\n outline: ${Border[\"width-020\"]} ${Border[\"solid\"]} ${Colour[\"icon-primary\"]};\n outline-offset: 2px;\n`;\n"],"names":["star","label","container","containerIsFocused"],"mappings":"2FAIO,MAAMA,EAAI,UAMJC,EAAK,UAQLC,EAAS,WAQTC,EAAkB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
.sk1h6mz{width:2.75rem;height:2.75rem;color:var(--fds-colour-icon-primary);}
|
|
2
|
+
.lg72zyg{margin:0 var(--fds-spacing-8);line-height:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;}
|
|
3
|
+
.c1w9ub4z{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;margin:var(--fds-spacing-8) var(--fds-spacing-16);border-radius:var(--fds-radius-sm);outline:none;}
|
|
4
|
+
.chyiool{outline:var(--fds-border-width-020) var(--fds-border-style-solid) var(--fds-colour-icon-primary);outline-offset:2px;}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as i}from"../_virtual/_tslib.js";import{jsxs as
|
|
1
|
+
import{__rest as i}from"../_virtual/_tslib.js";import{jsxs as t,jsx as r}from"react/jsx-runtime";import a from"clsx";import{useState as e,useRef as n,useEffect as s}from"react";import{Button as o}from"../button/button.js";import{VisuallyHidden as l}from"../shared/accessibility/index.js";import{Typography as m}from"../typography/index.js";import"../util/calendar-helper.js";import"../external/dayjs/dayjs.min.js";import{useId as d}from"../util/simple-id-generator.js";import"../util/string-helper.js";import"@react-aria/live-announcer";import{mainContainer as c,image as p,childContainer as u,submitButton as b}from"./feedback-rating.styles.js";import{FeedbackRatingData as g}from"./feedback-rating-data.js";import{FeedbackRatingStarsContainer as f}from"./feedback-rating-stars-container.js";const h=h=>{const{imgSrc:j,buttonLabel:y,description:N,rating:v,onRatingChange:x,onSubmit:L,className:S,id:k,"data-testid":C}=h,D=i(h,["imgSrc","buttonLabel","description","rating","onRatingChange","onSubmit","className","id","data-testid"]),[E,T]=e(!1),_=n(null),B=d(),M=`${B}-description`,R=null!=j?j:g.IMG,A=null!=N?N:g.DEFAULT_DESCRIPTION,I=null!=y?y:g.DEFAULT_BUTTON_LABEL,O=!v;s((()=>{var i;T(!1),(null===(i=_.current)||void 0===i?void 0:i.complete)&&0===_.current.naturalWidth&&T(!0)}),[R]);return t("div",Object.assign({role:"group","aria-labelledby":B,className:a(c,S),id:k,"data-testid":C},D,{children:[R&&!E&&r("img",{ref:_,className:p,"data-testid":"feedback-banner-image",src:R,alt:"",onError:()=>{T(!0)}}),t("div",{className:u,children:[r(m.HeadingSM,{as:"h2",id:B,weight:"semibold",children:A}),r(f,{ariaLabelledBy:B,ariaDescribedBy:M,rating:v,onRatingChange:x}),r(l,{id:M,children:"Minimum, 1 star. Maximum, 5 stars."}),r(o,{className:b,disabled:O,focusableWhenDisabled:!0,onClick:L,type:"button",children:I})]})]}))};export{h as FeedbackRating};
|
|
2
2
|
//# sourceMappingURL=feedback-rating.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feedback-rating.js","sources":["../../src/feedback-rating/feedback-rating.tsx"],"sourcesContent":["import { VisuallyHidden } from \"../shared/accessibility\";\nimport { Typography } from \"../typography\";\nimport { useId } from \"../util\";\nimport
|
|
1
|
+
{"version":3,"file":"feedback-rating.js","sources":["../../src/feedback-rating/feedback-rating.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { useEffect, useRef, useState } from \"react\";\n\nimport { Button } from \"../button\";\nimport { VisuallyHidden } from \"../shared/accessibility\";\nimport { Typography } from \"../typography\";\nimport { useId } from \"../util\";\nimport * as styles from \"./feedback-rating.styles\";\nimport { FeedbackRatingData } from \"./feedback-rating-data\";\nimport { FeedbackRatingStarsContainer } from \"./feedback-rating-stars-container\";\nimport type { FeedbackRatingProps } from \"./types\";\n\nexport const FeedbackRating = (props: FeedbackRatingProps): JSX.Element => {\n // =========================================================================\n // CONST, STATE, REF\n // =========================================================================\n const {\n imgSrc,\n buttonLabel,\n description,\n rating,\n onRatingChange,\n onSubmit,\n className,\n id,\n \"data-testid\": testId,\n ...otherProps\n } = props;\n const [hasImageError, setHasImageError] = useState(false);\n const imgRef = useRef<HTMLImageElement>(null);\n const internalId = useId();\n const descriptionId = `${internalId}-description`;\n const bannerSrc = imgSrc ?? FeedbackRatingData.IMG;\n const componentDescription =\n description ?? FeedbackRatingData.DEFAULT_DESCRIPTION;\n const resolvedButtonLabel =\n buttonLabel ?? FeedbackRatingData.DEFAULT_BUTTON_LABEL;\n const isSubmitDisabled = !rating;\n\n useEffect(() => {\n setHasImageError(false);\n\n if (imgRef.current?.complete && imgRef.current.naturalWidth === 0) {\n setHasImageError(true);\n }\n }, [bannerSrc]);\n\n const handleImgError = () => {\n setHasImageError(true);\n };\n\n return (\n <div\n role=\"group\"\n aria-labelledby={internalId}\n className={clsx(styles.mainContainer, className)}\n id={id}\n data-testid={testId}\n {...otherProps}\n >\n {bannerSrc && !hasImageError && (\n <img\n ref={imgRef}\n className={styles.image}\n data-testid=\"feedback-banner-image\"\n src={bannerSrc}\n alt=\"\"\n onError={handleImgError}\n />\n )}\n <div className={styles.childContainer}>\n <Typography.HeadingSM as=\"h2\" id={internalId} weight=\"semibold\">\n {componentDescription}\n </Typography.HeadingSM>\n <FeedbackRatingStarsContainer\n ariaLabelledBy={internalId}\n ariaDescribedBy={descriptionId}\n rating={rating}\n onRatingChange={onRatingChange}\n />\n <VisuallyHidden id={descriptionId}>\n Minimum, 1 star. Maximum, 5 stars.\n </VisuallyHidden>\n <Button\n className={styles.submitButton}\n disabled={isSubmitDisabled}\n focusableWhenDisabled\n onClick={onSubmit}\n type=\"button\"\n >\n {resolvedButtonLabel}\n </Button>\n </div>\n </div>\n );\n};\n"],"names":["FeedbackRating","props","imgSrc","buttonLabel","description","rating","onRatingChange","onSubmit","className","id","testId","otherProps","__rest","hasImageError","setHasImageError","useState","imgRef","useRef","internalId","useId","descriptionId","bannerSrc","FeedbackRatingData","IMG","componentDescription","DEFAULT_DESCRIPTION","resolvedButtonLabel","DEFAULT_BUTTON_LABEL","isSubmitDisabled","useEffect","_a","current","complete","naturalWidth","_jsxs","Object","assign","role","clsx","styles.mainContainer","children","_jsx","ref","styles.image","src","alt","onError","styles.childContainer","Typography","HeadingSM","as","weight","FeedbackRatingStarsContainer","ariaLabelledBy","ariaDescribedBy","VisuallyHidden","Button","styles.submitButton","disabled","focusableWhenDisabled","onClick","type"],"mappings":"yxBAYO,MAAMA,EAAkBC,IAI3B,MAAMC,OACFA,EAAMC,YACNA,EAAWC,YACXA,EAAWC,OACXA,EAAMC,eACNA,EAAcC,SACdA,EAAQC,UACRA,EAASC,GACTA,EACA,cAAeC,GAEfT,EADGU,EAAUC,EACbX,EAXE,CAAA,SAAA,cAAA,cAAA,SAAA,iBAAA,WAAA,YAAA,KAAA,iBAYCY,EAAeC,GAAoBC,GAAS,GAC7CC,EAASC,EAAyB,MAClCC,EAAaC,IACbC,EAAgB,GAAGF,gBACnBG,EAAYnB,QAAAA,EAAUoB,EAAmBC,IACzCC,EACFpB,QAAAA,EAAekB,EAAmBG,oBAChCC,EACFvB,QAAAA,EAAemB,EAAmBK,qBAChCC,GAAoBvB,EAE1BwB,GAAU,WACNf,GAAiB,YAEbgB,EAAAd,EAAOe,8BAASC,WAA4C,IAAhChB,EAAOe,QAAQE,cAC3CnB,GAAiB,EACrB,GACD,CAACO,IAMJ,OACIa,EAAA,MAAAC,OAAAC,OAAA,CACIC,KAAK,QAAO,kBACKnB,EACjBV,UAAW8B,EAAKC,EAAsB/B,GACtCC,GAAIA,gBACSC,GACTC,EAAU,CAAA6B,SAAA,CAEbnB,IAAcR,GACX4B,EAAA,MAAA,CACIC,IAAK1B,EACLR,UAAWmC,EAAY,cACX,wBACZC,IAAKvB,EACLwB,IAAI,GACJC,QApBO,KACnBhC,GAAiB,EAAK,IAsBlBoB,EAAA,MAAA,CAAK1B,UAAWuC,EAAqBP,SAAA,CACjCC,EAACO,EAAWC,UAAS,CAACC,GAAG,KAAKzC,GAAIS,EAAYiC,OAAO,WAAUX,SAC1DhB,IAELiB,EAACW,EAA4B,CACzBC,eAAgBnC,EAChBoC,gBAAiBlC,EACjBf,OAAQA,EACRC,eAAgBA,IAEpBmC,EAACc,EAAc,CAAC9C,GAAIW,EAAaoB,SAAA,uCAGjCC,EAACe,EAAM,CACHhD,UAAWiD,EACXC,SAAU9B,EACV+B,uBAAqB,EACrBC,QAASrD,EACTsD,KAAK,kBAEJnC,UAGP"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
1
|
+
export declare const image: import("@linaria/core").LinariaClassName;
|
|
2
|
+
export declare const mainContainer: import("@linaria/core").LinariaClassName;
|
|
3
|
+
export declare const childContainer: import("@linaria/core").LinariaClassName;
|
|
4
|
+
export declare const submitButton: import("@linaria/core").LinariaClassName;
|
|
@@ -1,38 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
width: 9.5rem;
|
|
3
|
-
height: 9.5rem;
|
|
4
|
-
margin: 0 1rem;
|
|
5
|
-
${t.MaxWidth.md} {
|
|
6
|
-
width: 5.5rem;
|
|
7
|
-
height: 5.5rem;
|
|
8
|
-
margin: 0;
|
|
9
|
-
}
|
|
10
|
-
`,d=e.div`
|
|
11
|
-
border-top: 1px solid ${i.border};
|
|
12
|
-
border-bottom: 1px solid ${i.border};
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: row;
|
|
15
|
-
align-items: center;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
width: 100%;
|
|
18
|
-
padding: 1rem 3rem;
|
|
19
|
-
${t.MaxWidth.md} {
|
|
20
|
-
padding: 2rem 0 1rem;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
}
|
|
23
|
-
`,o=e.div`
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
align-items: center;
|
|
27
|
-
margin: 1rem 1rem;
|
|
28
|
-
width: 100%;
|
|
29
|
-
text-align: center;
|
|
30
|
-
${t.MaxWidth.md} {
|
|
31
|
-
margin: 1rem 1.25rem;
|
|
32
|
-
max-width: calc(100% - 2.5rem);
|
|
33
|
-
}
|
|
34
|
-
`,n=e(r.Default)`
|
|
35
|
-
margin-top: 1rem;
|
|
36
|
-
width: 100%;
|
|
37
|
-
`;export{o as ChildContainer,m as Image,d as MainContainer,n as SubmitButton};
|
|
1
|
+
import"./feedback-rating.styles_1kdklb6.css";const e="i1kvxt6e",t="m12gz8bh",s="c2of6av",a="sopm87z";export{s as childContainer,e as image,t as mainContainer,a as submitButton};
|
|
38
2
|
//# sourceMappingURL=feedback-rating.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feedback-rating.styles.js","sources":["../../src/feedback-rating/feedback-rating.styles.
|
|
1
|
+
{"version":3,"file":"feedback-rating.styles.js","sources":["../../src/feedback-rating/feedback-rating.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport { Border, Colour, MediaQuery } from \"../theme\";\n\nexport const image = css`\n width: 9.5rem;\n height: 9.5rem;\n margin: 0 1rem;\n ${MediaQuery.MaxWidth.md} {\n width: 5.5rem;\n height: 5.5rem;\n margin: 0;\n }\n`;\n\nexport const mainContainer = css`\n border-top: ${Border[\"width-010\"]} ${Border.solid} ${Colour.border};\n border-bottom: ${Border[\"width-010\"]} ${Border.solid} ${Colour.border};\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n width: 100%;\n padding: 1rem 3rem;\n ${MediaQuery.MaxWidth.md} {\n padding: 2rem 0 1rem;\n flex-direction: column;\n }\n`;\n\nexport const childContainer = css`\n display: flex;\n flex-direction: column;\n align-items: center;\n margin: 1rem 1rem;\n width: 100%;\n text-align: center;\n ${MediaQuery.MaxWidth.md} {\n margin: 1rem 1.25rem;\n max-width: calc(100% - 2.5rem);\n }\n`;\n\nexport const submitButton = css`\n margin-top: 1rem;\n width: 100%;\n`;\n"],"names":["image","mainContainer","childContainer","submitButton"],"mappings":"4EAIO,MAAMA,EAAK,WAWLC,EAAa,WAebC,EAAc,UAadC,EAAY"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
.i1kvxt6e{width:9.5rem;height:9.5rem;margin:0 1rem;}:where(body.fds-breakpoint-md-max) .i1kvxt6e{width:5.5rem;height:5.5rem;margin:0;}
|
|
2
|
+
.m12gz8bh{border-top:var(--fds-border-width-010) var(--fds-border-style-solid) var(--fds-colour-border);border-bottom:var(--fds-border-width-010) var(--fds-border-style-solid) var(--fds-colour-border);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;width:100%;padding:1rem 3rem;}:where(body.fds-breakpoint-md-max) .m12gz8bh{padding:2rem 0 1rem;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
|
|
3
|
+
.c2of6av{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:1rem 1rem;width:100%;text-align:center;}:where(body.fds-breakpoint-md-max) .c2of6av{margin:1rem 1.25rem;max-width:calc(100% - 2.5rem);}
|
|
4
|
+
.sopm87z{margin-top:1rem;width:100%;}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__awaiter as e}from"../../_virtual/_tslib.js";import{jsx as t,jsxs as r,Fragment as i}from"react/jsx-runtime";import{DownloadIcon as n}from"@lifesg/react-icons";import{memo as o,useState as
|
|
1
|
+
import{__awaiter as e}from"../../_virtual/_tslib.js";import{jsx as t,jsxs as r,Fragment as i}from"react/jsx-runtime";import{DownloadIcon as n}from"@lifesg/react-icons";import{memo as o,useState as l,useRef as a,useEffect as m}from"react";import{FileUploadHelper as s}from"../../file-upload/helper.js";import"../../theme/theme-provider/index.js";import"../../theme/theme-provider/context.js";import"../../theme/tokens/border.js";import"../../theme/tokens/colour.js";import"../../theme/tokens/font.js";import"../../theme/tokens/media-query.js";import"../../util/calendar-helper.js";import"../../external/dayjs/dayjs.min.js";import"../../util/simple-id-generator.js";import{StringHelper as d}from"../../util/string-helper.js";import"@react-aria/live-announcer";import{useMaxWidthMediaQuery as c}from"../../theme/utils/use-media-query.js";import*as h from"./file-list-card.styles.js";const{ActionContainer:u,Box:p,ContentSection:f,DesktopErrorMessage:g,ErrorIcon:j,ExtendedNameSection:y,FileSizeSection:b,IconButton:w,Item:x,ItemNameText:S,MobileErrorMessage:T,NameSection:v,Thumbnail:k,ThumbnailContainer:I}=h,$=o((({fileItem:o,onDownload:h})=>{const{id:$,name:C,size:z,errorMessage:D,thumbnailImageDataUrl:E,truncateText:M=!0,ready:B=!0}=o,[N,q]=l(!1),[F,_]=l(!1),A=s.formatFileSizeDisplay(z),L=c("sm"),[R,U]=l(),G=a(null);m((()=>{G.current&&U(L?H(C):C)}),[C,L]);const H=e=>{if(!M)return e;const t=G&&G.current?G.current.getBoundingClientRect().width:0;return d.truncateTwoLines(e,t,16,1.5)},J=()=>r(i,{children:[t(S,{ref:G,children:R}),F&&r(g,{children:[t(j,{}),D||"Something went wrong"]})]});return t(x,{"data-testid":$,children:r(p,{onClick:()=>e(void 0,void 0,void 0,(function*(){if(B&&!N){q(!0);try{_(!1),yield h(o)}catch(e){_(!0)}finally{q(!1)}}})),$error:F,children:[(()=>{let e;return e=r(i,E?{children:[t(I,{"data-testid":`${$}-thumbnail`,children:t(k,{"data-testid":`${$}-thumbnail-image`,src:E})}),r(y,{children:[t(v,{children:J()}),t(b,{children:A||"-"}),F&&r(T,{children:[t(j,{}),D||"Something went wrong"]})]})]}:{children:[t(v,{children:J()}),t(b,{children:A||"-"}),F&&r(T,{children:[t(j,{}),D||"Something went wrong"]})]}),t(f,{$hasThumbnail:!!E,children:e})})(),t(u,{children:t(w,{"data-testid":`${$}-download-button`,type:"button",styleType:"light",sizeType:"small","aria-label":`download ${C}`,loading:N||!B,icon:t(n,{})})})]})})}));export{$ as FileListCard};
|
|
2
2
|
//# sourceMappingURL=file-list-card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-list-card.js","sources":["../../../src/file-download/file-list-card/file-list-card.tsx"],"sourcesContent":["import { DownloadIcon } from \"@lifesg/react-icons\";\nimport { memo,
|
|
1
|
+
{"version":3,"file":"file-list-card.js","sources":["../../../src/file-download/file-list-card/file-list-card.tsx"],"sourcesContent":["import { DownloadIcon } from \"@lifesg/react-icons\";\nimport { memo, useEffect, useRef, useState } from \"react\";\n\nimport { FileUploadHelper } from \"../../file-upload/helper\";\nimport { useMaxWidthMediaQuery } from \"../../theme\";\nimport { StringHelper } from \"../../util\";\nimport * as styles from \"./file-list-card.styles\";\nimport type { FileListItemProps } from \"./types\";\n\nconst {\n ActionContainer,\n Box,\n ContentSection,\n DesktopErrorMessage,\n ErrorIcon,\n ExtendedNameSection,\n FileSizeSection,\n IconButton,\n Item,\n ItemNameText,\n MobileErrorMessage,\n NameSection,\n Thumbnail,\n ThumbnailContainer,\n} = styles;\n\nconst Component = ({ fileItem, onDownload }: FileListItemProps) => {\n // =========================================================================\n // CONST, STATE, REFS\n // =========================================================================\n const {\n id,\n name,\n size,\n errorMessage,\n thumbnailImageDataUrl,\n truncateText = true,\n ready = true,\n } = fileItem;\n\n // Local variables\n const [isLoading, setIsLoading] = useState<boolean>(false);\n const [isError, setIsError] = useState<boolean>(false);\n const fileSize = FileUploadHelper.formatFileSizeDisplay(size);\n const isMobile = useMaxWidthMediaQuery(\"sm\");\n const [displayText, setDisplayText] = useState<string>();\n const containerRef = useRef<HTMLDivElement>(null);\n\n // =========================================================================\n // EFFECTS\n // =========================================================================\n useEffect(() => {\n if (!containerRef.current) return;\n if (isMobile) {\n setDisplayText(getTruncatedText(name));\n } else {\n setDisplayText(name);\n }\n }, [name, isMobile]);\n\n // =========================================================================\n // EVENT HANDLERS\n // =========================================================================\n const handleDownload = async () => {\n if (!ready || isLoading) {\n return;\n }\n\n setIsLoading(true);\n try {\n setIsError(false);\n await onDownload(fileItem);\n } catch {\n setIsError(true);\n } finally {\n setIsLoading(false);\n }\n };\n\n // =========================================================================\n // HELPER FUNCTIONS\n // =========================================================================\n const getTruncatedText = (value: string) => {\n if (!truncateText) return value;\n\n const widthOfElement =\n containerRef && containerRef.current\n ? containerRef.current.getBoundingClientRect().width\n : 0;\n\n return StringHelper.truncateTwoLines(value, widthOfElement, 16, 1.5);\n };\n\n // =========================================================================\n // RENDER FUNCTIONS\n // =========================================================================\n const renderNameDescription = () => (\n <>\n <ItemNameText ref={containerRef}>{displayText}</ItemNameText>\n {isError && (\n <DesktopErrorMessage>\n <ErrorIcon />\n {errorMessage ? errorMessage : \"Something went wrong\"}\n </DesktopErrorMessage>\n )}\n </>\n );\n\n const renderWithThumbnail = (thumbnailSrc: string) => (\n <>\n <ThumbnailContainer data-testid={`${id}-thumbnail`}>\n <Thumbnail\n data-testid={`${id}-thumbnail-image`}\n src={thumbnailSrc}\n />\n </ThumbnailContainer>\n <ExtendedNameSection>\n <NameSection>{renderNameDescription()}</NameSection>\n <FileSizeSection>{fileSize ? fileSize : \"-\"}</FileSizeSection>\n {isError && (\n <MobileErrorMessage>\n <ErrorIcon />\n {errorMessage ? errorMessage : \"Something went wrong\"}\n </MobileErrorMessage>\n )}\n </ExtendedNameSection>\n </>\n );\n\n const renderDefault = () => (\n <>\n <NameSection>{renderNameDescription()}</NameSection>\n <FileSizeSection>{fileSize ? fileSize : \"-\"}</FileSizeSection>\n {isError && (\n <MobileErrorMessage>\n <ErrorIcon />\n {errorMessage ? errorMessage : \"Something went wrong\"}\n </MobileErrorMessage>\n )}\n </>\n );\n\n const renderContents = () => {\n let content: JSX.Element;\n\n if (thumbnailImageDataUrl) {\n content = renderWithThumbnail(thumbnailImageDataUrl);\n } else {\n content = renderDefault();\n }\n\n return (\n <ContentSection $hasThumbnail={!!thumbnailImageDataUrl}>\n {content}\n </ContentSection>\n );\n };\n\n const renderActions = () => {\n return (\n <ActionContainer>\n <IconButton\n data-testid={`${id}-download-button`}\n type=\"button\"\n styleType=\"light\"\n sizeType=\"small\"\n aria-label={`download ${name}`}\n loading={isLoading || !ready}\n icon={<DownloadIcon />}\n />\n </ActionContainer>\n );\n };\n\n return (\n <Item data-testid={id}>\n <Box onClick={handleDownload} $error={isError}>\n {renderContents()}\n {renderActions()}\n </Box>\n </Item>\n );\n};\n\nexport const FileListCard = memo(Component);\n"],"names":["ActionContainer","Box","ContentSection","DesktopErrorMessage","ErrorIcon","ExtendedNameSection","FileSizeSection","IconButton","Item","ItemNameText","MobileErrorMessage","NameSection","Thumbnail","ThumbnailContainer","styles","FileListCard","memo","fileItem","onDownload","id","name","size","errorMessage","thumbnailImageDataUrl","truncateText","ready","isLoading","setIsLoading","useState","isError","setIsError","fileSize","FileUploadHelper","formatFileSizeDisplay","isMobile","useMaxWidthMediaQuery","displayText","setDisplayText","containerRef","useRef","useEffect","current","getTruncatedText","value","widthOfElement","getBoundingClientRect","width","StringHelper","truncateTwoLines","renderNameDescription","_jsxs","_jsx","ref","children","onClick","__awaiter","_a","$error","content","_Fragment","src","$hasThumbnail","renderContents","type","styleType","sizeType","loading","icon","DownloadIcon"],"mappings":"g3BASA,MAAMA,gBACFA,EAAeC,IACfA,EAAGC,eACHA,EAAcC,oBACdA,EAAmBC,UACnBA,EAASC,oBACTA,EAAmBC,gBACnBA,EAAeC,WACfA,EAAUC,KACVA,EAAIC,aACJA,EAAYC,mBACZA,EAAkBC,YAClBA,EAAWC,UACXA,EAASC,mBACTA,GACAC,EAgKSC,EAAeC,GA9JV,EAAGC,WAAUC,iBAI3B,MAAMC,GACFA,EAAEC,KACFA,EAAIC,KACJA,EAAIC,aACJA,EAAYC,sBACZA,EAAqBC,aACrBA,GAAe,EAAIC,MACnBA,GAAQ,GACRR,GAGGS,EAAWC,GAAgBC,GAAkB,IAC7CC,EAASC,GAAcF,GAAkB,GAC1CG,EAAWC,EAAiBC,sBAAsBZ,GAClDa,EAAWC,EAAsB,OAChCC,EAAaC,GAAkBT,IAChCU,EAAeC,EAAuB,MAK5CC,GAAU,KACDF,EAAaG,SAEdJ,EADAH,EACeQ,EAAiBtB,GAEjBA,EACnB,GACD,CAACA,EAAMc,IAKV,MAmBMQ,EAAoBC,IACtB,IAAKnB,EAAc,OAAOmB,EAE1B,MAAMC,EACFN,GAAgBA,EAAaG,QACvBH,EAAaG,QAAQI,wBAAwBC,MAC7C,EAEV,OAAOC,EAAaC,iBAAiBL,EAAOC,EAAgB,GAAI,IAAI,EAMlEK,EAAwB,IAC1BC,eACIC,EAAC1C,EAAY,CAAC2C,IAAKd,EAAYe,SAAGjB,IACjCP,GACGqB,EAAC/C,aACGgD,EAAC/C,MACAkB,GAA8B,6BAwE/C,OACI6B,EAAC3C,EAAI,CAAA,cAAcW,EAAEkC,SACjBH,EAACjD,EAAG,CAACqD,QAjHU,IAAWC,OAAA,OAAA,OAAA,GAAA,YAC9B,GAAK9B,IAASC,EAAd,CAIAC,GAAa,GACb,IACIG,GAAW,SACLZ,EAAWD,EACrB,CAAE,MAAAuC,GACE1B,GAAW,EACf,SACIH,GAAa,EACjB,CAVA,CAWJ,IAmGoC8B,OAAU5B,EAAOwB,SAAA,CAlC9B,MACnB,IAAIK,EAQJ,OALIA,EArCJR,EAAAS,EAoCIpC,EApCJ,CAAA8B,SAAA,CACIF,EAACtC,EAAkB,CAAA,cAAc,GAAGM,uBAChCgC,EAACvC,EAAS,CAAA,cACO,GAAGO,oBAChByC,IAiCsBrC,MA9B9B2B,EAAC7C,EAAmB,CAAAgD,SAAA,CAChBF,EAACxC,EAAW,CAAA0C,SAAEJ,MACdE,EAAC7C,EAAe,CAAA+C,SAAEtB,GAAsB,MACvCF,GACGqB,EAACxC,EAAkB,CAAA2C,SAAA,CACfF,EAAC/C,EAAS,CAAA,GACTkB,GAA8B,+BAQ/C,CAAA+B,SAAA,CACIF,EAACxC,EAAW,CAAA0C,SAAEJ,MACdE,EAAC7C,EAAe,CAAA+C,SAAEtB,GAAsB,MACvCF,GACGqB,EAACxC,EAAkB,CAAA2C,SAAA,CACfF,EAAC/C,EAAS,CAAA,GACTkB,GAA8B,6BAgBvC6B,EAACjD,EAAc,CAAA2D,gBAAkBtC,EAAqB8B,SACjDK,GACY,EAuBZI,GAjBLX,EAACnD,YACGmD,EAAC5C,iBACgB,GAAGY,oBAChB4C,KAAK,SACLC,UAAU,QACVC,SAAS,QAAO,aACJ,YAAY7C,IACxB8C,QAASxC,IAAcD,EACvB0C,KAAMhB,EAACiB,cAYZ"}
|
package/file-upload/dropzone.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{forwardRef as
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{CloudArrowUpFillIcon as t}from"@lifesg/react-icons/cloud-arrow-up-fill";import o from"clsx";import{forwardRef as i,useRef as s,useImperativeHandle as a}from"react";import{useDropzone as m}from"../external/react-dropzone/dist/es/index.js";import{DashedBorder as n}from"../dashed-border/dashed-border.js";import"../theme/theme-provider/index.js";import"../theme/theme-provider/context.js";import{Border as d}from"../theme/tokens/border.js";import{Colour as l}from"../theme/tokens/colour.js";import"../theme/tokens/font.js";import"../theme/tokens/media-query.js";import{Radius as p}from"../theme/tokens/radius.js";import"../util/calendar-helper.js";import"../external/dayjs/dayjs.min.js";import"../util/simple-id-generator.js";import"../util/string-helper.js";import"@react-aria/live-announcer";import"../theme/utils/use-media-query.js";import{Typography as c}from"../typography/index.js";import{container as u,containerWithDashedBorder as h,hiddenInput as j,dragOverlay as f,overlayIcon as b,overlayText as g}from"./dropzone.styles.js";const y=i((({children:i,accept:y,capture:k,multiple:x,id:N,className:v,name:D,border:w,disabled:z,onChange:C,"data-testid":O},q)=>{const A=s(null),{getRootProps:B,isDragActive:F}=m({onDrop:C,noClick:!0,disabled:z});a(q,(()=>Object.assign(Object.assign({},A.current),{openFileDialog:()=>{A.current&&(A.current.value="",A.current.click())}})));return e(n,Object.assign({id:N,"data-testid":O||"dropzone",enabled:w,thickness:d["width-040"],radius:p.sm,colour:l.border,className:o(u,w&&h,v)},B(),{children:[r("input",{type:"file",name:D,ref:A,tabIndex:-1,"aria-hidden":!0,className:j,accept:y,capture:k,multiple:x,"data-testid":O?`${O}-input`:"dropzone-input",onChange:e=>{e.target.files&&C(Array.from(e.target.files))}}),i,F&&e(n,{colour:l["border-primary"],thickness:d["width-040"],radius:p.sm,enabled:w,backgroundColor:l["bg-primary-subtler"],className:f,children:[r(t,{className:b}),r(c.BodyMD,{className:g,weight:"semibold",children:"Drop files here"})]})]}))}));export{y as FileUploadDropzone};
|
|
2
2
|
//# sourceMappingURL=dropzone.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropzone.js","sources":["../../src/file-upload/dropzone.tsx"],"sourcesContent":["import type React from \"react\";\nimport { forwardRef, useImperativeHandle, useRef } from \"react\";\nimport { useDropzone } from \"react-dropzone\";\n\nimport { Border, Colour, Radius } from \"../theme\";\nimport {
|
|
1
|
+
{"version":3,"file":"dropzone.js","sources":["../../src/file-upload/dropzone.tsx"],"sourcesContent":["import { CloudArrowUpFillIcon } from \"@lifesg/react-icons/cloud-arrow-up-fill\";\nimport clsx from \"clsx\";\nimport type React from \"react\";\nimport { forwardRef, useImperativeHandle, useRef } from \"react\";\nimport { useDropzone } from \"react-dropzone\";\n\nimport { DashedBorder } from \"../dashed-border\";\nimport { Border, Colour, Radius } from \"../theme\";\nimport { Typography } from \"../typography\";\nimport * as styles from \"./dropzone.styles\";\nimport type { FileInputProps } from \"./types\";\n\nexport interface DropzoneElement extends HTMLInputElement {\n openFileDialog: () => void;\n}\n\ninterface Props extends FileInputProps {\n children: React.ReactNode;\n id: string;\n border: boolean;\n onChange: (files: File[]) => void;\n}\n\nconst Component = (\n {\n children,\n accept,\n capture,\n multiple,\n id,\n className,\n name,\n border,\n disabled,\n onChange,\n \"data-testid\": testId,\n }: Props,\n ref: React.Ref<DropzoneElement>\n) => {\n // =========================================================================\n // CONST, STATE, REFS\n // =========================================================================\n const inputRef = useRef<HTMLInputElement>(null);\n const { getRootProps, isDragActive } = useDropzone({\n onDrop: onChange,\n noClick: true,\n disabled,\n });\n\n useImperativeHandle(ref, () => ({\n ...inputRef.current!,\n openFileDialog: () => {\n if (inputRef.current) {\n inputRef.current.value = \"\"; // Reset the input to enable same file upload\n inputRef.current.click();\n }\n },\n }));\n\n // =========================================================================\n // EVENT HANDLERS\n // =========================================================================\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n if (event.target.files) {\n onChange(Array.from(event.target.files));\n }\n };\n\n // =========================================================================\n // RENDER FUNCTIONS\n // =========================================================================\n const renderDragOverlay = () => (\n <DashedBorder\n colour={Colour[\"border-primary\"]}\n thickness={Border[\"width-040\"]}\n radius={Radius[\"sm\"]}\n enabled={border}\n backgroundColor={Colour[\"bg-primary-subtler\"]}\n className={styles.dragOverlay}\n >\n <CloudArrowUpFillIcon className={styles.overlayIcon} />\n <Typography.BodyMD className={styles.overlayText} weight=\"semibold\">\n Drop files here\n </Typography.BodyMD>\n </DashedBorder>\n );\n\n return (\n <DashedBorder\n id={id}\n data-testid={testId || \"dropzone\"}\n enabled={border}\n thickness={Border[\"width-040\"]}\n radius={Radius[\"sm\"]}\n colour={Colour[\"border\"]}\n className={clsx(\n styles.container,\n border && styles.containerWithDashedBorder,\n className\n )}\n {...getRootProps()}\n >\n <input\n type=\"file\"\n name={name}\n ref={inputRef}\n tabIndex={-1}\n aria-hidden\n className={styles.hiddenInput}\n accept={accept}\n capture={capture}\n multiple={multiple}\n data-testid={testId ? `${testId}-input` : \"dropzone-input\"}\n onChange={handleChange}\n />\n {children}\n {isDragActive && renderDragOverlay()}\n </DashedBorder>\n );\n};\n\nexport const FileUploadDropzone = forwardRef(Component);\n"],"names":["FileUploadDropzone","forwardRef","children","accept","capture","multiple","id","className","name","border","disabled","onChange","testId","ref","inputRef","useRef","getRootProps","isDragActive","useDropzone","onDrop","noClick","useImperativeHandle","Object","assign","current","openFileDialog","value","click","_jsxs","DashedBorder","enabled","thickness","Border","radius","Radius","colour","Colour","clsx","styles.container","styles.containerWithDashedBorder","_jsx","type","tabIndex","styles.hiddenInput","event","target","files","Array","from","backgroundColor","styles.dragOverlay","CloudArrowUpFillIcon","styles.overlayIcon","Typography","BodyMD","styles.overlayText","weight"],"mappings":"mkCAuBA,MAkGaA,EAAqBC,GAlGhB,EAEVC,WACAC,SACAC,UACAC,WACAC,KACAC,YACAC,OACAC,SACAC,WACAC,WACA,cAAeC,GAEnBC,KAKA,MAAMC,EAAWC,EAAyB,OACpCC,aAAEA,EAAYC,aAAEA,GAAiBC,EAAY,CAC/CC,OAAQR,EACRS,SAAS,EACTV,aAGJW,EAAoBR,GAAK,IAAMS,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACxBT,EAASU,SAAQ,CACpBC,eAAgB,KACRX,EAASU,UACTV,EAASU,QAAQE,MAAQ,GACzBZ,EAASU,QAAQG,QACrB,MAgCR,OACIC,EAACC,EAAYP,OAAAC,OAAA,CACTjB,GAAIA,EAAE,cACOM,GAAU,WACvBkB,QAASrB,EACTsB,UAAWC,EAAO,aAClBC,OAAQC,EAAW,GACnBC,OAAQC,EAAe,OACvB7B,UAAW8B,EACPC,EACA7B,GAAU8B,EACVhC,IAEAS,IAAc,CAAAd,SAAA,CAElBsC,EAAA,QAAA,CACIC,KAAK,OACLjC,KAAMA,EACNK,IAAKC,EACL4B,UAAU,mBAEVnC,UAAWoC,EACXxC,OAAQA,EACRC,QAASA,EACTC,SAAUA,EAAQ,cACLO,EAAS,GAAGA,UAAiB,iBAC1CD,SAnDUiC,IACdA,EAAMC,OAAOC,OACbnC,EAASoC,MAAMC,KAAKJ,EAAMC,OAAOC,OACrC,IAkDK5C,EACAe,GA5CLW,EAACC,EAAY,CACTM,OAAQC,EAAO,kBACfL,UAAWC,EAAO,aAClBC,OAAQC,EAAW,GACnBJ,QAASrB,EACTwC,gBAAiBb,EAAO,sBACxB7B,UAAW2C,EAAkBhD,SAAA,CAE7BsC,EAACW,EAAoB,CAAC5C,UAAW6C,IACjCZ,EAACa,EAAWC,OAAM,CAAC/C,UAAWgD,EAAoBC,OAAO,WAAUtD,SAAA,0BAoCxD"}
|
|
@@ -1,34 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const OverlayText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<any, "ref"> & {
|
|
8
|
-
weight?: import("..").TypographyWeight | undefined;
|
|
9
|
-
inline?: boolean | undefined;
|
|
10
|
-
paragraph?: boolean | undefined;
|
|
11
|
-
maxLines?: number | undefined;
|
|
12
|
-
as?: import("react").ElementType<any> | undefined;
|
|
13
|
-
} & import("react").RefAttributes<HTMLParagraphElement>, never> & Partial<Pick<Omit<any, "ref"> & {
|
|
14
|
-
weight?: import("..").TypographyWeight | undefined;
|
|
15
|
-
inline?: boolean | undefined;
|
|
16
|
-
paragraph?: boolean | undefined;
|
|
17
|
-
maxLines?: number | undefined;
|
|
18
|
-
as?: import("react").ElementType<any> | undefined;
|
|
19
|
-
} & import("react").RefAttributes<HTMLParagraphElement>, never>>> & string & Omit<(props: Omit<any, "ref"> & {
|
|
20
|
-
weight?: import("..").TypographyWeight | undefined;
|
|
21
|
-
inline?: boolean | undefined;
|
|
22
|
-
paragraph?: boolean | undefined;
|
|
23
|
-
maxLines?: number | undefined;
|
|
24
|
-
as?: import("react").ElementType<any> | undefined;
|
|
25
|
-
} & import("react").RefAttributes<HTMLParagraphElement>) => React.ReactElement | null, keyof import("react").Component<any, {}, any>>;
|
|
26
|
-
export declare const OverlayIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
|
|
27
|
-
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
28
|
-
}, never> & Partial<Pick<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
|
|
29
|
-
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
30
|
-
}, never>>> & string & Omit<{
|
|
31
|
-
(props: import("react").SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
displayName: string;
|
|
33
|
-
}, keyof import("react").Component<any, {}, any>>;
|
|
34
|
-
export {};
|
|
1
|
+
export declare const container: import("@linaria/core").LinariaClassName;
|
|
2
|
+
export declare const containerWithDashedBorder: import("@linaria/core").LinariaClassName;
|
|
3
|
+
export declare const hiddenInput: import("@linaria/core").LinariaClassName;
|
|
4
|
+
export declare const dragOverlay: import("@linaria/core").LinariaClassName;
|
|
5
|
+
export declare const overlayText: import("@linaria/core").LinariaClassName;
|
|
6
|
+
export declare const overlayIcon: import("@linaria/core").LinariaClassName;
|