@janbox/storefront-ui 1.0.19 → 1.0.21
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/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +3 -3
- package/dist/components/svg-loader.jsx +1 -1
- package/dist/components/virtualized-list.d.ts +2 -2
- package/dist/components/virtualized-list.jsx +1 -1
- package/dist/constants/emotion.d.ts +1 -1
- package/dist/constants/emotion.js +1 -1
- package/dist/hooks/index.d.ts +9 -9
- package/dist/hooks/index.js +9 -9
- package/dist/hooks/use-controllable-state.js +1 -1
- package/dist/hooks/use-countdown-timer.js +1 -1
- package/dist/hooks/use-query-params.d.ts +1 -1
- package/dist/hooks/use-query-params.js +1 -1
- package/dist/hooks/use-update-effect/index.js +1 -1
- package/dist/hooks/use-window-screen/index.d.ts +1 -1
- package/dist/hooks/use-window-screen/index.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/accordion/accordion/accordion.d.ts +1 -1
- package/dist/lib/accordion/accordion/accordion.jsx +6 -6
- package/dist/lib/accordion/accordion/helpers.d.ts +1 -1
- package/dist/lib/accordion/accordion/helpers.js +3 -3
- package/dist/lib/accordion/accordion/index.d.ts +3 -3
- package/dist/lib/accordion/accordion/index.js +3 -3
- package/dist/lib/accordion/accordion/types.d.ts +1 -1
- package/dist/lib/accordion/accordion-content/accordion-content.d.ts +1 -1
- package/dist/lib/accordion/accordion-content/accordion-content.jsx +4 -4
- package/dist/lib/accordion/accordion-content/helpers.d.ts +1 -1
- package/dist/lib/accordion/accordion-content/helpers.js +1 -1
- package/dist/lib/accordion/accordion-content/index.d.ts +3 -3
- package/dist/lib/accordion/accordion-content/index.js +3 -3
- package/dist/lib/accordion/accordion-content/types.d.ts +1 -1
- package/dist/lib/accordion/accordion-group/accordion-group.d.ts +1 -1
- package/dist/lib/accordion/accordion-group/accordion-group.jsx +3 -3
- package/dist/lib/accordion/accordion-group/helpers.d.ts +6 -6
- package/dist/lib/accordion/accordion-group/helpers.js +2 -2
- package/dist/lib/accordion/accordion-group/index.d.ts +3 -3
- package/dist/lib/accordion/accordion-group/index.js +3 -3
- package/dist/lib/accordion/accordion-group/types.d.ts +3 -3
- package/dist/lib/accordion/accordion-summary/accordion-summary.d.ts +1 -1
- package/dist/lib/accordion/accordion-summary/accordion-summary.jsx +6 -6
- package/dist/lib/accordion/accordion-summary/helpers.d.ts +1 -1
- package/dist/lib/accordion/accordion-summary/helpers.js +1 -1
- package/dist/lib/accordion/accordion-summary/index.d.ts +3 -3
- package/dist/lib/accordion/accordion-summary/index.js +3 -3
- package/dist/lib/accordion/accordion-summary/types.d.ts +2 -2
- package/dist/lib/accordion/index.d.ts +4 -4
- package/dist/lib/accordion/index.js +4 -4
- package/dist/lib/badge/badge.d.ts +1 -1
- package/dist/lib/badge/badge.jsx +2 -2
- package/dist/lib/badge/helpers.d.ts +1 -1
- package/dist/lib/badge/helpers.js +1 -1
- package/dist/lib/badge/index.d.ts +3 -3
- package/dist/lib/badge/index.js +3 -3
- package/dist/lib/badge/types.d.ts +1 -1
- package/dist/lib/box/box.d.ts +1 -1
- package/dist/lib/box/box.jsx +3 -3
- package/dist/lib/box/helpers.d.ts +1 -1
- package/dist/lib/box/helpers.js +1 -1
- package/dist/lib/box/index.d.ts +3 -3
- package/dist/lib/box/index.js +3 -3
- package/dist/lib/box/types.d.ts +1 -1
- package/dist/lib/breadcrumbs/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/dist/lib/breadcrumbs/breadcrumb-item/breadcrumb-item.jsx +2 -2
- package/dist/lib/breadcrumbs/breadcrumb-item/index.d.ts +2 -2
- package/dist/lib/breadcrumbs/breadcrumb-item/index.js +2 -2
- package/dist/lib/breadcrumbs/breadcrumb-item/types.d.ts +3 -3
- package/dist/lib/breadcrumbs/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/dist/lib/breadcrumbs/breadcrumbs/breadcrumbs.jsx +3 -3
- package/dist/lib/breadcrumbs/breadcrumbs/index.d.ts +1 -1
- package/dist/lib/breadcrumbs/breadcrumbs/index.js +1 -1
- package/dist/lib/breadcrumbs/breadcrumbs/types.d.ts +2 -2
- package/dist/lib/breadcrumbs/index.d.ts +2 -2
- package/dist/lib/breadcrumbs/index.js +2 -2
- package/dist/lib/button/button.d.ts +1 -1
- package/dist/lib/button/button.jsx +6 -6
- package/dist/lib/button/helpers.d.ts +1 -1
- package/dist/lib/button/helpers.js +2 -2
- package/dist/lib/button/index.d.ts +3 -3
- package/dist/lib/button/index.js +3 -3
- package/dist/lib/button/types.d.ts +3 -3
- package/dist/lib/cascader/cascader-floating-content.d.ts +3 -3
- package/dist/lib/cascader/cascader-floating-content.jsx +9 -9
- package/dist/lib/cascader/cascader.d.ts +1 -1
- package/dist/lib/cascader/cascader.jsx +10 -10
- package/dist/lib/cascader/helpers.d.ts +1 -1
- package/dist/lib/cascader/helpers.js +1 -1
- package/dist/lib/cascader/index.d.ts +2 -2
- package/dist/lib/cascader/index.js +2 -2
- package/dist/lib/cascader/types.d.ts +3 -3
- package/dist/lib/checkbox/checkbox.d.ts +1 -1
- package/dist/lib/checkbox/checkbox.jsx +3 -3
- package/dist/lib/checkbox/index.d.ts +2 -2
- package/dist/lib/checkbox/index.js +1 -1
- package/dist/lib/checkbox/types.d.ts +1 -1
- package/dist/lib/chip/chip.d.ts +1 -1
- package/dist/lib/chip/chip.jsx +3 -3
- package/dist/lib/chip/helpers.d.ts +1 -1
- package/dist/lib/chip/helpers.js +1 -1
- package/dist/lib/chip/index.d.ts +3 -3
- package/dist/lib/chip/index.js +3 -3
- package/dist/lib/chip/types.d.ts +1 -1
- package/dist/lib/collapse/collapse.d.ts +1 -1
- package/dist/lib/collapse/index.d.ts +2 -2
- package/dist/lib/collapse/index.js +2 -2
- package/dist/lib/collapse/types.d.ts +1 -1
- package/dist/lib/container/container.d.ts +1 -1
- package/dist/lib/container/container.jsx +2 -2
- package/dist/lib/container/helpers.d.ts +1 -1
- package/dist/lib/container/helpers.js +1 -1
- package/dist/lib/container/index.d.ts +3 -3
- package/dist/lib/container/index.js +3 -3
- package/dist/lib/container/types.d.ts +1 -1
- package/dist/lib/count-up/count-up.d.ts +1 -1
- package/dist/lib/count-up/count-up.jsx +1 -1
- package/dist/lib/count-up/index.d.ts +2 -2
- package/dist/lib/count-up/index.js +2 -2
- package/dist/lib/count-up/types.d.ts +2 -2
- package/dist/lib/countdown-timer/countdown-timer.d.ts +1 -1
- package/dist/lib/countdown-timer/countdown-timer.jsx +1 -1
- package/dist/lib/countdown-timer/index.d.ts +2 -2
- package/dist/lib/countdown-timer/index.js +2 -2
- package/dist/lib/countdown-timer/types.d.ts +1 -1
- package/dist/lib/date-picker/date-picker.d.ts +1 -1
- package/dist/lib/date-picker/date-picker.jsx +9 -9
- package/dist/lib/date-picker/helpers.d.ts +1 -1
- package/dist/lib/date-picker/helpers.js +1 -1
- package/dist/lib/date-picker/index.d.ts +3 -3
- package/dist/lib/date-picker/index.js +3 -3
- package/dist/lib/date-picker/types.d.ts +1 -1
- package/dist/lib/dialog/dialog/dialog.d.ts +1 -1
- package/dist/lib/dialog/dialog/dialog.jsx +3 -3
- package/dist/lib/dialog/dialog/helpers.d.ts +2 -2
- package/dist/lib/dialog/dialog/helpers.js +3 -3
- package/dist/lib/dialog/dialog/index.d.ts +3 -3
- package/dist/lib/dialog/dialog/index.js +3 -3
- package/dist/lib/dialog/dialog/types.d.ts +3 -3
- package/dist/lib/dialog/dialog-body/dialog-body.d.ts +1 -1
- package/dist/lib/dialog/dialog-body/dialog-body.jsx +2 -2
- package/dist/lib/dialog/dialog-body/index.d.ts +2 -2
- package/dist/lib/dialog/dialog-body/index.js +2 -2
- package/dist/lib/dialog/dialog-body/types.d.ts +2 -2
- package/dist/lib/dialog/dialog-close/dialog-close.d.ts +1 -1
- package/dist/lib/dialog/dialog-close/dialog-close.jsx +1 -1
- package/dist/lib/dialog/dialog-close/index.d.ts +2 -2
- package/dist/lib/dialog/dialog-close/index.js +2 -2
- package/dist/lib/dialog/dialog-close/types.d.ts +1 -1
- package/dist/lib/dialog/dialog-footer/dialog-footer.d.ts +1 -1
- package/dist/lib/dialog/dialog-footer/dialog-footer.jsx +1 -1
- package/dist/lib/dialog/dialog-footer/index.d.ts +2 -2
- package/dist/lib/dialog/dialog-footer/index.js +2 -2
- package/dist/lib/dialog/dialog-header/dialog-header.d.ts +1 -1
- package/dist/lib/dialog/dialog-header/dialog-header.jsx +3 -3
- package/dist/lib/dialog/dialog-header/index.d.ts +2 -2
- package/dist/lib/dialog/dialog-header/index.js +2 -2
- package/dist/lib/dialog/index.d.ts +5 -5
- package/dist/lib/dialog/index.js +5 -5
- package/dist/lib/drawer/drawer/drawer.d.ts +1 -1
- package/dist/lib/drawer/drawer/drawer.jsx +2 -2
- package/dist/lib/drawer/drawer/helpers.d.ts +1 -1
- package/dist/lib/drawer/drawer/helpers.js +1 -1
- package/dist/lib/drawer/drawer/index.d.ts +3 -3
- package/dist/lib/drawer/drawer/index.js +3 -3
- package/dist/lib/drawer/drawer/types.d.ts +2 -2
- package/dist/lib/drawer/drawer-close/drawer-close.d.ts +1 -1
- package/dist/lib/drawer/drawer-close/drawer-close.jsx +1 -1
- package/dist/lib/drawer/drawer-close/index.d.ts +2 -2
- package/dist/lib/drawer/drawer-close/index.js +2 -2
- package/dist/lib/drawer/drawer-close/types.d.ts +1 -1
- package/dist/lib/drawer/index.d.ts +2 -2
- package/dist/lib/drawer/index.js +2 -2
- package/dist/lib/filter-panel/checkbox-filter-panel.d.ts +1 -1
- package/dist/lib/filter-panel/checkbox-filter-panel.jsx +5 -5
- package/dist/lib/filter-panel/filter-panel.d.ts +1 -1
- package/dist/lib/filter-panel/filter-panel.jsx +7 -7
- package/dist/lib/filter-panel/index.d.ts +1 -1
- package/dist/lib/filter-panel/index.js +1 -1
- package/dist/lib/filter-panel/input-range-filter-panel.d.ts +1 -1
- package/dist/lib/filter-panel/input-range-filter-panel.jsx +4 -4
- package/dist/lib/filter-panel/input-text-filter-panel.d.ts +1 -1
- package/dist/lib/filter-panel/input-text-filter-panel.jsx +3 -3
- package/dist/lib/filter-panel/radio-filter-panel.d.ts +1 -1
- package/dist/lib/filter-panel/radio-filter-panel.jsx +5 -5
- package/dist/lib/filter-panel/types.d.ts +3 -3
- package/dist/lib/flag/flag.d.ts +1 -1
- package/dist/lib/flag/flag.jsx +2 -2
- package/dist/lib/flag/helpers.d.ts +1 -1
- package/dist/lib/flag/helpers.js +1 -1
- package/dist/lib/flag/index.d.ts +3 -3
- package/dist/lib/flag/index.js +3 -3
- package/dist/lib/flag/types.d.ts +2 -2
- package/dist/lib/flexbox/flex-item/flex-item.d.ts +1 -1
- package/dist/lib/flexbox/flex-item/flex-item.jsx +2 -2
- package/dist/lib/flexbox/flex-item/helpers.d.ts +1 -1
- package/dist/lib/flexbox/flex-item/helpers.js +1 -1
- package/dist/lib/flexbox/flex-item/index.d.ts +3 -3
- package/dist/lib/flexbox/flex-item/index.js +3 -3
- package/dist/lib/flexbox/flex-item/types.d.ts +1 -1
- package/dist/lib/flexbox/flexbox/flexbox.d.ts +1 -1
- package/dist/lib/flexbox/flexbox/flexbox.jsx +3 -3
- package/dist/lib/flexbox/flexbox/helpers.d.ts +1 -1
- package/dist/lib/flexbox/flexbox/helpers.js +1 -1
- package/dist/lib/flexbox/flexbox/index.d.ts +3 -3
- package/dist/lib/flexbox/flexbox/index.js +3 -3
- package/dist/lib/flexbox/flexbox/types.d.ts +1 -1
- package/dist/lib/flexbox/index.d.ts +2 -2
- package/dist/lib/flexbox/index.js +2 -2
- package/dist/lib/floating/floating/floating.jsx +1 -1
- package/dist/lib/floating/floating/index.d.ts +3 -3
- package/dist/lib/floating/floating/index.js +3 -3
- package/dist/lib/floating/floating-close/floating-close.d.ts +1 -1
- package/dist/lib/floating/floating-close/floating-close.jsx +2 -2
- package/dist/lib/floating/floating-close/index.d.ts +2 -2
- package/dist/lib/floating/floating-close/index.js +2 -2
- package/dist/lib/floating/floating-close/types.d.ts +1 -1
- package/dist/lib/floating/floating-content/floating-content.d.ts +1 -1
- package/dist/lib/floating/floating-content/floating-content.jsx +3 -3
- package/dist/lib/floating/floating-content/index.d.ts +2 -2
- package/dist/lib/floating/floating-content/index.js +2 -2
- package/dist/lib/floating/floating-content/types.d.ts +1 -1
- package/dist/lib/floating/floating-trigger/floating-trigger.d.ts +1 -1
- package/dist/lib/floating/floating-trigger/floating-trigger.jsx +1 -1
- package/dist/lib/floating/floating-trigger/index.d.ts +2 -2
- package/dist/lib/floating/floating-trigger/index.js +2 -2
- package/dist/lib/floating/index.d.ts +4 -4
- package/dist/lib/floating/index.js +4 -4
- package/dist/lib/form-helper-text/form-helper-text.d.ts +1 -1
- package/dist/lib/form-helper-text/form-helper-text.jsx +1 -1
- package/dist/lib/form-helper-text/index.d.ts +2 -2
- package/dist/lib/form-helper-text/index.js +2 -2
- package/dist/lib/form-helper-text/types.d.ts +1 -1
- package/dist/lib/form-label/form-label.d.ts +1 -1
- package/dist/lib/form-label/form-label.jsx +1 -1
- package/dist/lib/form-label/index.d.ts +1 -1
- package/dist/lib/form-label/index.js +1 -1
- package/dist/lib/grid/cell/cell.d.ts +1 -1
- package/dist/lib/grid/cell/cell.jsx +2 -2
- package/dist/lib/grid/cell/helpers.d.ts +1 -1
- package/dist/lib/grid/cell/helpers.js +1 -1
- package/dist/lib/grid/cell/index.d.ts +3 -3
- package/dist/lib/grid/cell/index.js +3 -3
- package/dist/lib/grid/cell/types.d.ts +1 -1
- package/dist/lib/grid/grid/grid.d.ts +1 -1
- package/dist/lib/grid/grid/grid.jsx +3 -3
- package/dist/lib/grid/grid/helpers.d.ts +1 -1
- package/dist/lib/grid/grid/helpers.js +1 -1
- package/dist/lib/grid/grid/index.d.ts +3 -3
- package/dist/lib/grid/grid/index.js +3 -3
- package/dist/lib/grid/grid/types.d.ts +1 -1
- package/dist/lib/grid/index.d.ts +2 -2
- package/dist/lib/grid/index.js +2 -2
- package/dist/lib/highlight-words/highlight-words.d.ts +1 -1
- package/dist/lib/highlight-words/highlight-words.jsx +1 -1
- package/dist/lib/highlight-words/index.d.ts +2 -2
- package/dist/lib/highlight-words/index.js +2 -2
- package/dist/lib/highlight-words/types.d.ts +1 -1
- package/dist/lib/icon/helpers.d.ts +1 -1
- package/dist/lib/icon/helpers.js +1 -1
- package/dist/lib/icon/icon.d.ts +1 -1
- package/dist/lib/icon/icon.jsx +3 -3
- package/dist/lib/icon/index.d.ts +3 -3
- package/dist/lib/icon/index.js +3 -3
- package/dist/lib/icon/types.d.ts +1 -1
- package/dist/lib/icon-button/helpers.d.ts +1 -1
- package/dist/lib/icon-button/helpers.js +2 -2
- package/dist/lib/icon-button/icon-button.d.ts +1 -1
- package/dist/lib/icon-button/icon-button.jsx +7 -7
- package/dist/lib/icon-button/index.d.ts +3 -3
- package/dist/lib/icon-button/index.js +3 -3
- package/dist/lib/icon-button/types.d.ts +2 -2
- package/dist/lib/image/helpers.d.ts +1 -1
- package/dist/lib/image/helpers.js +1 -1
- package/dist/lib/image/image.d.ts +1 -1
- package/dist/lib/image/image.jsx +3 -3
- package/dist/lib/image/index.d.ts +3 -3
- package/dist/lib/image/index.js +3 -3
- package/dist/lib/image/types.d.ts +1 -1
- package/dist/lib/index.d.ts +59 -59
- package/dist/lib/index.js +59 -59
- package/dist/lib/input/helpers.d.ts +1 -1
- package/dist/lib/input/helpers.js +2 -2
- package/dist/lib/input/index.d.ts +3 -3
- package/dist/lib/input/index.js +3 -3
- package/dist/lib/input/input.d.ts +1 -1
- package/dist/lib/input/input.jsx +6 -6
- package/dist/lib/input/types.d.ts +2 -2
- package/dist/lib/input-mask/helpers.d.ts +1 -1
- package/dist/lib/input-mask/helpers.js +1 -1
- package/dist/lib/input-mask/index.d.ts +1 -1
- package/dist/lib/input-mask/index.js +1 -1
- package/dist/lib/input-mask/input-mask.d.ts +1 -1
- package/dist/lib/input-mask/input-mask.jsx +5 -5
- package/dist/lib/input-mask/types.d.ts +3 -3
- package/dist/lib/input-number/index.d.ts +1 -1
- package/dist/lib/input-number/index.js +1 -1
- package/dist/lib/input-number/input-number.d.ts +1 -1
- package/dist/lib/input-number/input-number.jsx +4 -4
- package/dist/lib/input-number/types.d.ts +2 -2
- package/dist/lib/input-range/helpers.d.ts +1 -1
- package/dist/lib/input-range/helpers.js +1 -1
- package/dist/lib/input-range/index.d.ts +2 -2
- package/dist/lib/input-range/index.js +2 -2
- package/dist/lib/input-range/input-range.d.ts +1 -1
- package/dist/lib/input-range/input-range.jsx +6 -6
- package/dist/lib/input-range/types.d.ts +3 -3
- package/dist/lib/lightbox/index.d.ts +2 -2
- package/dist/lib/lightbox/index.js +2 -2
- package/dist/lib/lightbox/lightbox.d.ts +1 -1
- package/dist/lib/lightbox/lightbox.jsx +3 -3
- package/dist/lib/lightbox/types.d.ts +2 -2
- package/dist/lib/linear-progress/helpers.d.ts +1 -1
- package/dist/lib/linear-progress/helpers.js +1 -1
- package/dist/lib/linear-progress/index.d.ts +1 -1
- package/dist/lib/linear-progress/index.js +1 -1
- package/dist/lib/linear-progress/linear-progress.d.ts +1 -1
- package/dist/lib/linear-progress/linear-progress.jsx +3 -3
- package/dist/lib/linear-progress/types.d.ts +1 -1
- package/dist/lib/link/helpers.d.ts +1 -1
- package/dist/lib/link/helpers.js +1 -1
- package/dist/lib/link/index.d.ts +3 -3
- package/dist/lib/link/index.js +3 -3
- package/dist/lib/link/link.d.ts +1 -1
- package/dist/lib/link/link.jsx +5 -5
- package/dist/lib/link/types.d.ts +2 -2
- package/dist/lib/loading/block-skeleton/block-skeleton.d.ts +1 -1
- package/dist/lib/loading/block-skeleton/block-skeleton.jsx +2 -2
- package/dist/lib/loading/block-skeleton/index.d.ts +1 -1
- package/dist/lib/loading/block-skeleton/index.js +1 -1
- package/dist/lib/loading/image-skeleton/image-skeleton.d.ts +1 -1
- package/dist/lib/loading/image-skeleton/image-skeleton.jsx +2 -2
- package/dist/lib/loading/image-skeleton/index.d.ts +2 -2
- package/dist/lib/loading/image-skeleton/index.js +2 -2
- package/dist/lib/loading/image-skeleton/types.d.ts +1 -1
- package/dist/lib/loading/index.d.ts +4 -4
- package/dist/lib/loading/index.js +4 -4
- package/dist/lib/loading/loading-overlay/index.d.ts +2 -2
- package/dist/lib/loading/loading-overlay/index.js +2 -2
- package/dist/lib/loading/loading-overlay/loading-overlay.d.ts +1 -1
- package/dist/lib/loading/loading-overlay/loading-overlay.jsx +4 -4
- package/dist/lib/loading/loading-overlay/types.d.ts +1 -1
- package/dist/lib/loading/text-skeleton/index.d.ts +2 -2
- package/dist/lib/loading/text-skeleton/index.js +2 -2
- package/dist/lib/loading/text-skeleton/text-skeleton.d.ts +1 -1
- package/dist/lib/loading/text-skeleton/text-skeleton.jsx +2 -2
- package/dist/lib/loading/text-skeleton/types.d.ts +1 -1
- package/dist/lib/marquee/index.d.ts +2 -2
- package/dist/lib/marquee/index.js +2 -2
- package/dist/lib/marquee/marquee/helpers.d.ts +1 -1
- package/dist/lib/marquee/marquee/helpers.js +1 -1
- package/dist/lib/marquee/marquee/index.d.ts +3 -3
- package/dist/lib/marquee/marquee/index.js +3 -3
- package/dist/lib/marquee/marquee/marquee.d.ts +1 -1
- package/dist/lib/marquee/marquee/marquee.jsx +6 -6
- package/dist/lib/marquee/marquee/types.d.ts +2 -2
- package/dist/lib/marquee/marquee-item/index.d.ts +2 -2
- package/dist/lib/marquee/marquee-item/index.js +2 -2
- package/dist/lib/marquee/marquee-item/marquee-item.d.ts +1 -1
- package/dist/lib/menu/index.d.ts +4 -4
- package/dist/lib/menu/index.js +4 -4
- package/dist/lib/menu/menu/index.d.ts +3 -3
- package/dist/lib/menu/menu/index.js +3 -3
- package/dist/lib/menu/menu/menu.d.ts +1 -1
- package/dist/lib/menu/menu/menu.jsx +2 -2
- package/dist/lib/menu/menu/types.d.ts +1 -1
- package/dist/lib/menu/menu-item/helpers.d.ts +2 -2
- package/dist/lib/menu/menu-item/helpers.js +1 -1
- package/dist/lib/menu/menu-item/index.d.ts +2 -2
- package/dist/lib/menu/menu-item/index.js +2 -2
- package/dist/lib/menu/menu-item/menu-item.d.ts +1 -1
- package/dist/lib/menu/menu-item/menu-item.jsx +5 -5
- package/dist/lib/menu/menu-item/types.d.ts +1 -1
- package/dist/lib/menu/menu-list/index.d.ts +2 -2
- package/dist/lib/menu/menu-list/index.js +2 -2
- package/dist/lib/menu/menu-list/menu-list.d.ts +1 -1
- package/dist/lib/menu/menu-list/menu-list.jsx +3 -3
- package/dist/lib/menu/menu-list/types.d.ts +1 -1
- package/dist/lib/menu/menu-trigger/index.d.ts +2 -2
- package/dist/lib/menu/menu-trigger/index.js +2 -2
- package/dist/lib/menu/menu-trigger/menu-trigger.d.ts +1 -1
- package/dist/lib/menu/menu-trigger/menu-trigger.jsx +1 -1
- package/dist/lib/menu/menu-trigger/types.d.ts +1 -1
- package/dist/lib/multiple-select/helpers.d.ts +1 -1
- package/dist/lib/multiple-select/helpers.js +1 -1
- package/dist/lib/multiple-select/index.d.ts +3 -3
- package/dist/lib/multiple-select/index.js +3 -3
- package/dist/lib/multiple-select/multiple-select.d.ts +1 -1
- package/dist/lib/multiple-select/multiple-select.jsx +10 -10
- package/dist/lib/multiple-select/types.d.ts +3 -3
- package/dist/lib/nav-link/index.d.ts +2 -2
- package/dist/lib/nav-link/index.js +2 -2
- package/dist/lib/nav-link/nav-link.jsx +1 -1
- package/dist/lib/nav-link/types.d.ts +1 -1
- package/dist/lib/notifications/helpers.d.ts +1 -1
- package/dist/lib/notifications/helpers.js +1 -1
- package/dist/lib/notifications/index.d.ts +2 -2
- package/dist/lib/notifications/index.js +2 -2
- package/dist/lib/notifications/notifications.jsx +3 -3
- package/dist/lib/otp-input/index.d.ts +1 -1
- package/dist/lib/otp-input/index.js +1 -1
- package/dist/lib/otp-input/otp-input.d.ts +1 -1
- package/dist/lib/otp-input/otp-input.jsx +3 -3
- package/dist/lib/otp-input/types.d.ts +2 -2
- package/dist/lib/pagination/helpers.d.ts +1 -1
- package/dist/lib/pagination/helpers.js +1 -1
- package/dist/lib/pagination/index.d.ts +3 -3
- package/dist/lib/pagination/index.js +3 -3
- package/dist/lib/pagination/pagination.d.ts +1 -1
- package/dist/lib/pagination/pagination.jsx +6 -6
- package/dist/lib/pagination/types.d.ts +2 -2
- package/dist/lib/phone-input/index.d.ts +2 -2
- package/dist/lib/phone-input/index.js +2 -2
- package/dist/lib/phone-input/phone-input.d.ts +1 -1
- package/dist/lib/phone-input/phone-input.jsx +8 -8
- package/dist/lib/phone-input/types.d.ts +1 -1
- package/dist/lib/popover/index.d.ts +4 -4
- package/dist/lib/popover/index.js +4 -4
- package/dist/lib/popover/popover/helpers.d.ts +1 -1
- package/dist/lib/popover/popover/helpers.js +1 -1
- package/dist/lib/popover/popover/index.d.ts +3 -3
- package/dist/lib/popover/popover/index.js +3 -3
- package/dist/lib/popover/popover/popover.d.ts +1 -1
- package/dist/lib/popover/popover/popover.jsx +2 -2
- package/dist/lib/popover/popover/types.d.ts +1 -1
- package/dist/lib/popover/popover-close/index.d.ts +2 -2
- package/dist/lib/popover/popover-close/index.js +2 -2
- package/dist/lib/popover/popover-close/popover-close.d.ts +1 -1
- package/dist/lib/popover/popover-close/popover-close.jsx +1 -1
- package/dist/lib/popover/popover-close/types.d.ts +1 -1
- package/dist/lib/popover/popover-content/index.d.ts +2 -2
- package/dist/lib/popover/popover-content/index.js +2 -2
- package/dist/lib/popover/popover-content/popover-content.d.ts +1 -1
- package/dist/lib/popover/popover-content/popover-content.jsx +2 -2
- package/dist/lib/popover/popover-content/types.d.ts +1 -1
- package/dist/lib/popover/popover-trigger/index.d.ts +2 -2
- package/dist/lib/popover/popover-trigger/index.js +2 -2
- package/dist/lib/popover/popover-trigger/popover-trigger.d.ts +1 -1
- package/dist/lib/popover/popover-trigger/popover-trigger.jsx +1 -1
- package/dist/lib/popover/popover-trigger/types.d.ts +1 -1
- package/dist/lib/primitive/index.d.ts +2 -2
- package/dist/lib/primitive/index.js +2 -2
- package/dist/lib/primitive/primitive.d.ts +1 -1
- package/dist/lib/primitive/primitive.jsx +1 -1
- package/dist/lib/primitive/types.d.ts +1 -1
- package/dist/lib/progress/index.d.ts +2 -2
- package/dist/lib/progress/index.js +2 -2
- package/dist/lib/progress/progress.d.ts +1 -1
- package/dist/lib/progress/progress.jsx +1 -1
- package/dist/lib/progress/types.d.ts +1 -1
- package/dist/lib/radio-button/helpers.d.ts +1 -1
- package/dist/lib/radio-button/helpers.js +1 -1
- package/dist/lib/radio-button/index.d.ts +3 -3
- package/dist/lib/radio-button/index.js +3 -3
- package/dist/lib/radio-button/radio-button.d.ts +1 -1
- package/dist/lib/radio-button/radio-button.jsx +3 -3
- package/dist/lib/radio-button/types.d.ts +1 -1
- package/dist/lib/select/helpers.d.ts +1 -1
- package/dist/lib/select/helpers.js +1 -1
- package/dist/lib/select/index.d.ts +2 -2
- package/dist/lib/select/index.js +2 -2
- package/dist/lib/select/select.d.ts +1 -1
- package/dist/lib/select/select.jsx +10 -10
- package/dist/lib/select/types.d.ts +3 -3
- package/dist/lib/star-rating/index.d.ts +2 -2
- package/dist/lib/star-rating/index.js +2 -2
- package/dist/lib/star-rating/star-rating.d.ts +1 -1
- package/dist/lib/star-rating/star-rating.jsx +1 -1
- package/dist/lib/star-rating/types.d.ts +1 -1
- package/dist/lib/stepper/index.d.ts +3 -3
- package/dist/lib/stepper/index.js +3 -3
- package/dist/lib/stepper/step.d.ts +1 -1
- package/dist/lib/stepper/step.jsx +2 -2
- package/dist/lib/stepper/stepper.d.ts +1 -1
- package/dist/lib/stepper/stepper.jsx +2 -2
- package/dist/lib/stepper/types.d.ts +1 -1
- package/dist/lib/swiper/index.d.ts +3 -3
- package/dist/lib/swiper/index.js +3 -3
- package/dist/lib/swiper/swiper/helpers.d.ts +1 -1
- package/dist/lib/swiper/swiper/helpers.js +1 -1
- package/dist/lib/swiper/swiper/index.d.ts +3 -3
- package/dist/lib/swiper/swiper/index.js +3 -3
- package/dist/lib/swiper/swiper/swiper.d.ts +1 -1
- package/dist/lib/swiper/swiper/swiper.jsx +3 -3
- package/dist/lib/swiper/swiper/types.d.ts +2 -2
- package/dist/lib/swiper/swiper-dots-paging/index.d.ts +1 -1
- package/dist/lib/swiper/swiper-dots-paging/index.js +1 -1
- package/dist/lib/swiper/swiper-dots-paging/swiper-dots-paging.d.ts +1 -1
- package/dist/lib/swiper/swiper-dots-paging/swiper-dots-paging.jsx +1 -1
- package/dist/lib/swiper/swiper-dots-paging/types.d.ts +2 -2
- package/dist/lib/swiper/swiper-slide/index.d.ts +2 -2
- package/dist/lib/swiper/swiper-slide/index.js +2 -2
- package/dist/lib/swiper/swiper-slide/swiper-slide.d.ts +1 -1
- package/dist/lib/swiper/swiper-slide/swiper-slide.jsx +1 -1
- package/dist/lib/swiper/swiper-slide/types.d.ts +1 -1
- package/dist/lib/switch/index.d.ts +1 -1
- package/dist/lib/switch/index.js +1 -1
- package/dist/lib/switch/switch.d.ts +1 -1
- package/dist/lib/switch/switch.jsx +1 -1
- package/dist/lib/switch/types.d.ts +1 -1
- package/dist/lib/table/index.d.ts +8 -8
- package/dist/lib/table/index.js +8 -8
- package/dist/lib/table/table/index.d.ts +2 -2
- package/dist/lib/table/table/index.js +2 -2
- package/dist/lib/table/table/table.d.ts +1 -1
- package/dist/lib/table/table/table.jsx +1 -1
- package/dist/lib/table/table-body/index.d.ts +2 -2
- package/dist/lib/table/table-body/index.js +2 -2
- package/dist/lib/table/table-body/table-body.d.ts +1 -1
- package/dist/lib/table/table-body/table-body.jsx +1 -1
- package/dist/lib/table/table-body/types.d.ts +1 -1
- package/dist/lib/table/table-cell/index.d.ts +2 -2
- package/dist/lib/table/table-cell/index.js +2 -2
- package/dist/lib/table/table-cell/table-cell.d.ts +1 -1
- package/dist/lib/table/table-footer/index.d.ts +1 -1
- package/dist/lib/table/table-footer/index.js +1 -1
- package/dist/lib/table/table-footer/table-footer.d.ts +1 -1
- package/dist/lib/table/table-head/index.d.ts +2 -2
- package/dist/lib/table/table-head/index.js +2 -2
- package/dist/lib/table/table-head/table-head.d.ts +1 -1
- package/dist/lib/table/table-head/table-head.jsx +1 -1
- package/dist/lib/table/table-head/types.d.ts +1 -1
- package/dist/lib/table/table-row/index.d.ts +2 -2
- package/dist/lib/table/table-row/index.js +2 -2
- package/dist/lib/table/table-row/table-row.d.ts +1 -1
- package/dist/lib/tabs/index.d.ts +5 -5
- package/dist/lib/tabs/index.js +5 -5
- package/dist/lib/tabs/tab/index.d.ts +3 -3
- package/dist/lib/tabs/tab/index.js +3 -3
- package/dist/lib/tabs/tab/tab.d.ts +1 -1
- package/dist/lib/tabs/tab/tab.jsx +2 -2
- package/dist/lib/tabs/tab/types.d.ts +2 -2
- package/dist/lib/tabs/tab-content/index.d.ts +2 -2
- package/dist/lib/tabs/tab-content/index.js +2 -2
- package/dist/lib/tabs/tab-content/tab-content.jsx +2 -2
- package/dist/lib/tabs/tab-indicator/index.d.ts +2 -2
- package/dist/lib/tabs/tab-indicator/index.js +2 -2
- package/dist/lib/tabs/tab-indicator/tab-indicator.jsx +2 -2
- package/dist/lib/tabs/tab-indicator/types.d.ts +1 -1
- package/dist/lib/tabs/tab-list/helpers.d.ts +1 -1
- package/dist/lib/tabs/tab-list/helpers.js +1 -1
- package/dist/lib/tabs/tab-list/index.d.ts +3 -3
- package/dist/lib/tabs/tab-list/index.js +3 -3
- package/dist/lib/tabs/tab-list/tab-list.d.ts +1 -1
- package/dist/lib/tabs/tab-list/tab-list.jsx +6 -6
- package/dist/lib/tabs/tab-list/types.d.ts +1 -1
- package/dist/lib/tabs/tab-panel/helpers.d.ts +1 -1
- package/dist/lib/tabs/tab-panel/helpers.js +1 -1
- package/dist/lib/tabs/tab-panel/index.d.ts +3 -3
- package/dist/lib/tabs/tab-panel/index.js +3 -3
- package/dist/lib/tabs/tab-panel/tab-panel.d.ts +1 -1
- package/dist/lib/tabs/tab-panel/tab-panel.jsx +3 -3
- package/dist/lib/tabs/tab-panel/types.d.ts +1 -1
- package/dist/lib/tabs/tabs/helpers.d.ts +1 -1
- package/dist/lib/tabs/tabs/helpers.js +2 -2
- package/dist/lib/tabs/tabs/index.d.ts +3 -3
- package/dist/lib/tabs/tabs/index.js +3 -3
- package/dist/lib/tabs/tabs/tabs.d.ts +1 -1
- package/dist/lib/tabs/tabs/tabs.jsx +3 -3
- package/dist/lib/tabs/tabs/types.d.ts +4 -4
- package/dist/lib/text/helpers.d.ts +2 -2
- package/dist/lib/text/helpers.js +2 -2
- package/dist/lib/text/index.d.ts +3 -3
- package/dist/lib/text/index.js +3 -3
- package/dist/lib/text/text.d.ts +1 -1
- package/dist/lib/text/text.jsx +3 -3
- package/dist/lib/text/types.d.ts +2 -2
- package/dist/lib/textarea/helpers.d.ts +1 -1
- package/dist/lib/textarea/helpers.js +1 -1
- package/dist/lib/textarea/index.d.ts +3 -3
- package/dist/lib/textarea/index.js +3 -3
- package/dist/lib/textarea/textarea.d.ts +1 -1
- package/dist/lib/textarea/textarea.jsx +5 -5
- package/dist/lib/textarea/types.d.ts +1 -1
- package/dist/lib/time-picker/index.d.ts +2 -2
- package/dist/lib/time-picker/index.js +2 -2
- package/dist/lib/time-picker/time-picker.d.ts +1 -1
- package/dist/lib/time-picker/time-picker.jsx +7 -7
- package/dist/lib/time-picker/types.d.ts +1 -1
- package/dist/lib/tooltip/index.d.ts +2 -2
- package/dist/lib/tooltip/index.js +2 -2
- package/dist/lib/tooltip/tooltip.d.ts +1 -1
- package/dist/lib/tooltip/tooltip.jsx +2 -2
- package/dist/lib/unordered-list/index.d.ts +2 -2
- package/dist/lib/unordered-list/index.js +2 -2
- package/dist/lib/unordered-list/list-item/helpers.d.ts +1 -1
- package/dist/lib/unordered-list/list-item/helpers.js +1 -1
- package/dist/lib/unordered-list/list-item/index.d.ts +3 -3
- package/dist/lib/unordered-list/list-item/index.js +3 -3
- package/dist/lib/unordered-list/list-item/list-item.d.ts +1 -1
- package/dist/lib/unordered-list/list-item/list-item.jsx +2 -2
- package/dist/lib/unordered-list/list-item/types.d.ts +1 -1
- package/dist/lib/unordered-list/unordered-list/helpers.d.ts +1 -1
- package/dist/lib/unordered-list/unordered-list/helpers.js +1 -1
- package/dist/lib/unordered-list/unordered-list/index.d.ts +3 -3
- package/dist/lib/unordered-list/unordered-list/index.js +3 -3
- package/dist/lib/unordered-list/unordered-list/types.d.ts +1 -1
- package/dist/lib/unordered-list/unordered-list/unordered-list.d.ts +1 -1
- package/dist/lib/unordered-list/unordered-list/unordered-list.jsx +2 -2
- package/dist/lib/video/helpers.d.ts +1 -1
- package/dist/lib/video/helpers.js +1 -1
- package/dist/lib/video/index.d.ts +3 -3
- package/dist/lib/video/index.js +3 -3
- package/dist/lib/video/types.d.ts +1 -1
- package/dist/lib/video/video.d.ts +1 -1
- package/dist/lib/video/video.jsx +2 -2
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/index.js +4 -4
- package/dist/theme/provider.jsx +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/common.d.ts +1 -1
- package/dist/utils/common.js +1 -1
- package/dist/utils/index.d.ts +5 -5
- package/dist/utils/index.js +4 -4
- package/dist/utils/query-params.d.ts +1 -1
- package/dist/utils/query-params.js +1 -1
- package/package.json +2 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './svg-loader';
|
|
2
|
-
export * from './scroll-view';
|
|
3
|
-
export * from './virtualized-list';
|
|
1
|
+
export * from './svg-loader.jsx';
|
|
2
|
+
export * from './scroll-view.jsx';
|
|
3
|
+
export * from './virtualized-list.jsx';
|
package/dist/components/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './svg-loader';
|
|
2
|
-
export * from './scroll-view';
|
|
3
|
-
export * from './virtualized-list';
|
|
1
|
+
export * from './svg-loader.jsx';
|
|
2
|
+
export * from './scroll-view.jsx';
|
|
3
|
+
export * from './virtualized-list.jsx';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cloneElement, forwardRef, useId, useMemo } from 'react';
|
|
2
|
-
import { parseSvgString } from '../utils/common';
|
|
2
|
+
import { parseSvgString } from '../utils/common.js';
|
|
3
3
|
export const SvgLoader = forwardRef(({ source, ...props }, ref) => {
|
|
4
4
|
const uniqueId = useId();
|
|
5
5
|
const jsxSvg = useMemo(() => parseSvgString(source, uniqueId), [source, uniqueId]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX, Ref } from 'react';
|
|
2
2
|
import { useVirtualizer, VirtualItem } from '@tanstack/react-virtual';
|
|
3
|
-
import { ScrollViewRef } from './scroll-view';
|
|
4
|
-
import { ShallowMerge } from '../types';
|
|
3
|
+
import { ScrollViewRef } from './scroll-view.jsx';
|
|
4
|
+
import { ShallowMerge } from '../types/index.js';
|
|
5
5
|
type VirtualizedListOptions = Omit<Parameters<typeof useVirtualizer<HTMLDivElement, HTMLDivElement>>[0], 'getScrollElement'>;
|
|
6
6
|
type VirtualizedListProps = ShallowMerge<JSX.IntrinsicElements['div'], {
|
|
7
7
|
RowComponent: React.ComponentType<{
|
|
@@ -2,7 +2,7 @@ import { useRef } from 'react';
|
|
|
2
2
|
import { useMergeRefs } from '@floating-ui/react';
|
|
3
3
|
import { useVirtualizer } from '@tanstack/react-virtual';
|
|
4
4
|
import { motion } from 'motion/react';
|
|
5
|
-
import { ScrollView } from './scroll-view';
|
|
5
|
+
import { ScrollView } from './scroll-view.jsx';
|
|
6
6
|
export const VirtualizedList = ({ RowComponent, options, ref, ...props }) => {
|
|
7
7
|
const scrollRef = useRef(null);
|
|
8
8
|
const mergedRefs = useMergeRefs([scrollRef, ref]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { keyframes } from '@emotion/react';
|
|
2
|
-
import { breakpoint, mediaQuery } from '../theme/screens';
|
|
2
|
+
import { breakpoint, mediaQuery } from '../theme/screens.js';
|
|
3
3
|
export const scrollbarNoneStyle = {
|
|
4
4
|
scrollbarWidth: 'none',
|
|
5
5
|
'&::-webkit-scrollbar': { display: 'none' },
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from "./use-window-screen";
|
|
2
|
-
export * from "./use-hover-line-effect";
|
|
3
|
-
export * from "./use-ripple-effect";
|
|
4
|
-
export * from "./use-controllable-state";
|
|
5
|
-
export * from "./use-countdown-timer";
|
|
6
|
-
export * from "./use-query-params";
|
|
7
|
-
export * from "./use-first-mount-state";
|
|
8
|
-
export * from "./use-update-effect";
|
|
9
|
-
export * from "./use-deep-compare-effect";
|
|
1
|
+
export * from "./use-window-screen/index.js";
|
|
2
|
+
export * from "./use-hover-line-effect/index.js";
|
|
3
|
+
export * from "./use-ripple-effect/index.js";
|
|
4
|
+
export * from "./use-controllable-state.js";
|
|
5
|
+
export * from "./use-countdown-timer.js";
|
|
6
|
+
export * from "./use-query-params.js";
|
|
7
|
+
export * from "./use-first-mount-state/index.js";
|
|
8
|
+
export * from "./use-update-effect/index.js";
|
|
9
|
+
export * from "./use-deep-compare-effect/index.js";
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from "./use-window-screen";
|
|
2
|
-
export * from "./use-hover-line-effect";
|
|
3
|
-
export * from "./use-ripple-effect";
|
|
4
|
-
export * from "./use-controllable-state";
|
|
5
|
-
export * from "./use-countdown-timer";
|
|
6
|
-
export * from "./use-query-params";
|
|
7
|
-
export * from "./use-first-mount-state";
|
|
8
|
-
export * from "./use-update-effect";
|
|
9
|
-
export * from "./use-deep-compare-effect";
|
|
1
|
+
export * from "./use-window-screen/index.js";
|
|
2
|
+
export * from "./use-hover-line-effect/index.js";
|
|
3
|
+
export * from "./use-ripple-effect/index.js";
|
|
4
|
+
export * from "./use-controllable-state.js";
|
|
5
|
+
export * from "./use-countdown-timer.js";
|
|
6
|
+
export * from "./use-query-params.js";
|
|
7
|
+
export * from "./use-first-mount-state/index.js";
|
|
8
|
+
export * from "./use-update-effect/index.js";
|
|
9
|
+
export * from "./use-deep-compare-effect/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useMemo, useRef, useState } from 'react';
|
|
2
2
|
import { isEqual, isUndefined } from 'lodash-es';
|
|
3
|
-
import { useUpdateEffect } from './use-update-effect';
|
|
3
|
+
import { useUpdateEffect } from './use-update-effect/index.js';
|
|
4
4
|
const getIsControlled = (value) => !isUndefined(value);
|
|
5
5
|
export const useControllableState = ({ defaultValue, value, deepCompare = false, }) => {
|
|
6
6
|
const lastControlledValue = useRef(value);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRef, useState } from 'react';
|
|
2
2
|
import dayjs from 'dayjs';
|
|
3
|
-
import { useDeepCompareEffect } from './use-deep-compare-effect';
|
|
3
|
+
import { useDeepCompareEffect } from './use-deep-compare-effect/index.js';
|
|
4
4
|
const getTimeDiff = (end, omit) => {
|
|
5
5
|
const now = dayjs();
|
|
6
6
|
const target = dayjs(end);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback, useMemo, useRef } from 'react';
|
|
2
2
|
import { isNil, isPlainObject, set } from 'lodash-es';
|
|
3
3
|
import { useSearchParams } from 'react-router';
|
|
4
|
-
import { simplifyQueryParams } from '../utils/query-params';
|
|
4
|
+
import { simplifyQueryParams } from '../utils/query-params.js';
|
|
5
5
|
/**
|
|
6
6
|
* Hook để lấy và parse query parameters từ URL
|
|
7
7
|
* @param config Cấu hình cho việc transform và giá trị mặc định
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
|
-
import { useFirstMountState } from '../use-first-mount-state';
|
|
2
|
+
import { useFirstMountState } from '../use-first-mount-state/index.js';
|
|
3
3
|
export const useUpdateEffect = (effect, deps) => {
|
|
4
4
|
const isFirstMount = useFirstMountState();
|
|
5
5
|
useEffect(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect, useMemo, useState } from 'react';
|
|
2
2
|
import { isNil } from 'lodash-es';
|
|
3
|
-
import { isSSR } from '../../constants';
|
|
4
|
-
import { breakpoint, screens } from '../../theme';
|
|
3
|
+
import { isSSR } from '../../constants/index.js';
|
|
4
|
+
import { breakpoint, screens } from '../../theme/index.js';
|
|
5
5
|
export const useWindowScreen = () => {
|
|
6
6
|
const getScreenByWidth = (width) => {
|
|
7
7
|
if (width < breakpoint.sm.minWidth) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './lib';
|
|
1
|
+
export * from './lib/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './lib';
|
|
1
|
+
export * from './lib/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AccordionProps } from "./types";
|
|
1
|
+
import { AccordionProps } from "./types.js";
|
|
2
2
|
export declare const Accordion: (_props: AccordionProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { useCallback, useEffect, useMemo, useRef } from "react";
|
|
3
3
|
import { useMergeRefs } from "@floating-ui/react";
|
|
4
4
|
import { isNil } from "lodash-es";
|
|
5
|
-
import { AccordionContext, getAccordionDataAttributes, getAccordionProps, } from "./helpers";
|
|
6
|
-
import { AccordionDataAttributes } from "./types";
|
|
7
|
-
import { getAccordionGroupDataAttributes } from "../accordion-group";
|
|
8
|
-
import { Booleanish } from "../../../constants";
|
|
9
|
-
import { useControllableState } from "../../../hooks";
|
|
10
|
-
import { mediaQuery } from "../../../theme";
|
|
5
|
+
import { AccordionContext, getAccordionDataAttributes, getAccordionProps, } from "./helpers.js";
|
|
6
|
+
import { AccordionDataAttributes } from "./types.js";
|
|
7
|
+
import { getAccordionGroupDataAttributes } from "../accordion-group/index.js";
|
|
8
|
+
import { Booleanish } from "../../../constants/index.js";
|
|
9
|
+
import { useControllableState } from "../../../hooks/index.js";
|
|
10
|
+
import { mediaQuery } from "../../../theme/index.js";
|
|
11
11
|
export const Accordion = (_props) => {
|
|
12
12
|
const { xs, sm, md, lg, children, open: controlledOpen, defaultOpen = false, onOpenChange: onOpenChangeCallback, ref, ...rest } = getAccordionProps(_props);
|
|
13
13
|
const rootRef = useRef(null);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createContext, useContext } from 'react';
|
|
2
|
-
import { AccordionDataAttributes } from './types';
|
|
3
|
-
import { Booleanish } from '../../../constants';
|
|
4
|
-
import { mergeComponentProps } from '../../../utils';
|
|
2
|
+
import { AccordionDataAttributes } from './types.js';
|
|
3
|
+
import { Booleanish } from '../../../constants/index.js';
|
|
4
|
+
import { mergeComponentProps } from '../../../utils/index.js';
|
|
5
5
|
export const AccordionContext = createContext({});
|
|
6
6
|
export const useAccordionContext = () => useContext(AccordionContext);
|
|
7
7
|
export const getAccordionDataAttributes = (element) => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './accordion';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export * from './helpers';
|
|
1
|
+
export * from './accordion.jsx';
|
|
2
|
+
export * from './types.js';
|
|
3
|
+
export * from './helpers.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './accordion';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export * from './helpers';
|
|
1
|
+
export * from './accordion.jsx';
|
|
2
|
+
export * from './types.js';
|
|
3
|
+
export * from './helpers.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from "react";
|
|
2
|
-
import { PropsWithCSS, ResponsiveDesign, ShallowMerge } from "../../../types";
|
|
2
|
+
import { PropsWithCSS, ResponsiveDesign, ShallowMerge } from "../../../types/index.js";
|
|
3
3
|
export declare enum AccordionDataAttributes {
|
|
4
4
|
OpenState = "data-open"
|
|
5
5
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AccordionContentProps } from './types';
|
|
1
|
+
import { AccordionContentProps } from './types.js';
|
|
2
2
|
export declare const AccordionContent: ({ children, ref, ..._props }: AccordionContentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
|
2
2
|
import { useRef } from 'react';
|
|
3
3
|
import { motion } from 'motion/react';
|
|
4
|
-
import { getAccordionContentProps } from './helpers';
|
|
5
|
-
import { useAccordionContext } from '../accordion/helpers';
|
|
6
|
-
import { useAccordionGroupContext } from '../accordion-group';
|
|
7
|
-
import { mediaQuery } from '../../../theme';
|
|
4
|
+
import { getAccordionContentProps } from './helpers.js';
|
|
5
|
+
import { useAccordionContext } from '../accordion/helpers.js';
|
|
6
|
+
import { useAccordionGroupContext } from '../accordion-group/index.js';
|
|
7
|
+
import { mediaQuery } from '../../../theme/index.js';
|
|
8
8
|
export const AccordionContent = ({ children, ref, ..._props }) => {
|
|
9
9
|
const { accordionContentProps: accordionContentPropsByGroup = {} } = useAccordionGroupContext();
|
|
10
10
|
const { xs, sm, md, lg, containerProps, ...props } = getAccordionContentProps(accordionContentPropsByGroup, _props);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AccordionContentProps } from './types';
|
|
1
|
+
import { AccordionContentProps } from './types.js';
|
|
2
2
|
export declare const getAccordionContentProps: (...extended: Partial<AccordionContentProps>[]) => AccordionContentProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './accordion-content';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export * from './helpers';
|
|
1
|
+
export * from './accordion-content.jsx';
|
|
2
|
+
export * from './types.js';
|
|
3
|
+
export * from './helpers.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './accordion-content';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export * from './helpers';
|
|
1
|
+
export * from './accordion-content.jsx';
|
|
2
|
+
export * from './types.js';
|
|
3
|
+
export * from './helpers.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
2
|
import { HTMLMotionProps } from 'motion/react';
|
|
3
|
-
import { PropsWithCSS, ResponsiveDesign, ShallowMerge } from '../../../types';
|
|
3
|
+
import { PropsWithCSS, ResponsiveDesign, ShallowMerge } from '../../../types/index.js';
|
|
4
4
|
interface AccordionContentExtendedProps extends ResponsiveDesign<PropsWithCSS> {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
containerProps?: HTMLMotionProps<'div'>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AccordionGroupProps } from './types';
|
|
1
|
+
import { AccordionGroupProps } from './types.js';
|
|
2
2
|
export declare const AccordionGroup: import("react").ForwardRefExoticComponent<Omit<AccordionGroupProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
|
2
2
|
import { forwardRef, useMemo, useRef } from 'react';
|
|
3
3
|
import { useMergeRefs } from '@floating-ui/react';
|
|
4
|
-
import { AccordionGroupContext, getAccordionGroupProps } from './helpers';
|
|
5
|
-
import { AccordionGroupDataAttributes } from './types';
|
|
6
|
-
import { mediaQuery } from '../../../theme';
|
|
4
|
+
import { AccordionGroupContext, getAccordionGroupProps } from './helpers.js';
|
|
5
|
+
import { AccordionGroupDataAttributes } from './types.js';
|
|
6
|
+
import { mediaQuery } from '../../../theme/index.js';
|
|
7
7
|
export const AccordionGroup = forwardRef((_props, ref) => {
|
|
8
8
|
const { children, xs, sm, md, lg, openMode = 'multiple', accordionSummaryProps, accordionContentProps, ...rest } = getAccordionGroupProps(_props);
|
|
9
9
|
const rootEl = useRef(null);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { AccordionGroupOpenMode, AccordionGroupProps } from './types';
|
|
2
|
-
import { Nullable } from '../../../types';
|
|
1
|
+
import { AccordionGroupOpenMode, AccordionGroupProps } from './types.js';
|
|
2
|
+
import { Nullable } from '../../../types/index.js';
|
|
3
3
|
export declare const AccordionGroupContext: import("react").Context<Partial<{
|
|
4
|
-
accordionSummaryProps?: Partial<import("
|
|
5
|
-
accordionContentProps?: Partial<import("
|
|
4
|
+
accordionSummaryProps?: Partial<import("../index.js").AccordionSummaryProps>;
|
|
5
|
+
accordionContentProps?: Partial<import("../index.js").AccordionContentProps>;
|
|
6
6
|
}>>;
|
|
7
7
|
export declare const useAccordionGroupContext: () => Partial<{
|
|
8
|
-
accordionSummaryProps?: Partial<import("
|
|
9
|
-
accordionContentProps?: Partial<import("
|
|
8
|
+
accordionSummaryProps?: Partial<import("../index.js").AccordionSummaryProps>;
|
|
9
|
+
accordionContentProps?: Partial<import("../index.js").AccordionContentProps>;
|
|
10
10
|
}>;
|
|
11
11
|
export declare const getAccordionGroupDataAttributes: (element: HTMLElement) => {
|
|
12
12
|
openMode: Nullable<AccordionGroupOpenMode>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext, useContext } from 'react';
|
|
2
|
-
import { AccordionGroupDataAttributes, } from './types';
|
|
3
|
-
import { mergeComponentProps } from '../../../utils';
|
|
2
|
+
import { AccordionGroupDataAttributes, } from './types.js';
|
|
3
|
+
import { mergeComponentProps } from '../../../utils/index.js';
|
|
4
4
|
export const AccordionGroupContext = createContext({});
|
|
5
5
|
export const useAccordionGroupContext = () => useContext(AccordionGroupContext);
|
|
6
6
|
export const getAccordionGroupDataAttributes = (element) => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './accordion-group';
|
|
2
|
-
export * from './helpers';
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * from './accordion-group.jsx';
|
|
2
|
+
export * from './helpers.js';
|
|
3
|
+
export * from './types.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './accordion-group';
|
|
2
|
-
export * from './helpers';
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * from './accordion-group.jsx';
|
|
2
|
+
export * from './helpers.js';
|
|
3
|
+
export * from './types.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { AccordionContentProps } from '../accordion-content';
|
|
3
|
-
import { AccordionSummaryProps } from '../accordion-summary';
|
|
4
|
-
import { PropsWithCSS, ResponsiveDesign, ShallowMerge } from '../../../types';
|
|
2
|
+
import { AccordionContentProps } from '../accordion-content/index.js';
|
|
3
|
+
import { AccordionSummaryProps } from '../accordion-summary/index.js';
|
|
4
|
+
import { PropsWithCSS, ResponsiveDesign, ShallowMerge } from '../../../types/index.js';
|
|
5
5
|
export type AccordionGroupOpenMode = 'single' | 'multiple';
|
|
6
6
|
export type AccordionGroupContextValue = Partial<{
|
|
7
7
|
accordionSummaryProps?: Partial<AccordionSummaryProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AccordionSummaryProps } from './types';
|
|
1
|
+
import { AccordionSummaryProps } from './types.js';
|
|
2
2
|
export declare const AccordionSummary: ({ children, ref, ..._props }: AccordionSummaryProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getAccordionSummaryProps } from './helpers';
|
|
2
|
-
import { Icon } from '../../icon';
|
|
3
|
-
import { useAccordionContext } from '../accordion/helpers';
|
|
4
|
-
import { useAccordionGroupContext } from '../accordion-group';
|
|
5
|
-
import { Booleanish } from '../../../constants';
|
|
6
|
-
import { mediaQuery } from '../../../theme';
|
|
1
|
+
import { getAccordionSummaryProps } from './helpers.js';
|
|
2
|
+
import { Icon } from '../../icon/index.js';
|
|
3
|
+
import { useAccordionContext } from '../accordion/helpers.js';
|
|
4
|
+
import { useAccordionGroupContext } from '../accordion-group/index.js';
|
|
5
|
+
import { Booleanish } from '../../../constants/index.js';
|
|
6
|
+
import { mediaQuery } from '../../../theme/index.js';
|
|
7
7
|
const ExpandIcon = ({ source, position, xs, sm, md, lg }) => {
|
|
8
8
|
const { open } = useAccordionContext();
|
|
9
9
|
const sourceString = open ? source.expanded : source.collapsed;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AccordionSummaryProps } from './types';
|
|
1
|
+
import { AccordionSummaryProps } from './types.js';
|
|
2
2
|
export declare const getAccordionSummaryProps: (...extended: Partial<AccordionSummaryProps>[]) => AccordionSummaryProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './accordion-summary';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export * from './helpers';
|
|
1
|
+
export * from './accordion-summary.jsx';
|
|
2
|
+
export * from './types.js';
|
|
3
|
+
export * from './helpers.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './accordion-summary';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export * from './helpers';
|
|
1
|
+
export * from './accordion-summary.jsx';
|
|
2
|
+
export * from './types.js';
|
|
3
|
+
export * from './helpers.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { IconResponsiveProps } from '../../icon';
|
|
3
|
-
import { PropsWithCSS, ResponsiveDesign, ShallowMerge } from '../../../types';
|
|
2
|
+
import { IconResponsiveProps } from '../../icon/index.js';
|
|
3
|
+
import { PropsWithCSS, ResponsiveDesign, ShallowMerge } from '../../../types/index.js';
|
|
4
4
|
export declare enum AccordionSummaryVariant {
|
|
5
5
|
EndArrow = "end-arrow",
|
|
6
6
|
EndPlusMinus = "end-plus-minus"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './accordion-group';
|
|
2
|
-
export * from './accordion';
|
|
3
|
-
export * from './accordion-summary';
|
|
4
|
-
export * from './accordion-content';
|
|
1
|
+
export * from './accordion-group/index.js';
|
|
2
|
+
export * from './accordion/index.js';
|
|
3
|
+
export * from './accordion-summary/index.js';
|
|
4
|
+
export * from './accordion-content/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './accordion-group';
|
|
2
|
-
export * from './accordion';
|
|
3
|
-
export * from './accordion-summary';
|
|
4
|
-
export * from './accordion-content';
|
|
1
|
+
export * from './accordion-group/index.js';
|
|
2
|
+
export * from './accordion/index.js';
|
|
3
|
+
export * from './accordion-summary/index.js';
|
|
4
|
+
export * from './accordion-content/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const Badge: import("react").ForwardRefExoticComponent<{
|
|
2
2
|
badgeContent?: number | string;
|
|
3
|
-
color?: import("../../types").ColorVariant;
|
|
3
|
+
color?: import("../../types/index.js").ColorVariant;
|
|
4
4
|
} & Omit<import("react").HTMLAttributes<HTMLDivElement>, "color"> & import("react").RefAttributes<HTMLDivElement>>;
|
package/dist/lib/badge/badge.jsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import { isNumber } from 'lodash-es';
|
|
4
|
-
import { getBadgeProps } from './helpers';
|
|
5
|
-
import { getColorShadesByVariant } from '../../utils';
|
|
4
|
+
import { getBadgeProps } from './helpers.js';
|
|
5
|
+
import { getColorShadesByVariant } from '../../utils/index.js';
|
|
6
6
|
export const Badge = forwardRef((_props, ref) => {
|
|
7
7
|
const { children, badgeContent, color = 'primary', ...rest } = getBadgeProps(_props);
|
|
8
8
|
const { main } = getColorShadesByVariant(color);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BadgeProps } from './types';
|
|
1
|
+
import { BadgeProps } from './types.js';
|
|
2
2
|
export declare const getBadgeProps: (extended: BadgeProps) => BadgeProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './badge';
|
|
2
|
-
export * from './helpers';
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * from './badge.jsx';
|
|
2
|
+
export * from './helpers.js';
|
|
3
|
+
export * from './types.js';
|
package/dist/lib/badge/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './badge';
|
|
2
|
-
export * from './helpers';
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * from './badge.jsx';
|
|
2
|
+
export * from './helpers.js';
|
|
3
|
+
export * from './types.js';
|
package/dist/lib/box/box.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BoxProps } from './types';
|
|
1
|
+
import { BoxProps } from './types.js';
|
|
2
2
|
export declare const Box: ({ children, container, ref, ..._props }: BoxProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
package/dist/lib/box/box.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getBoxProps } from './helpers';
|
|
2
|
-
import { containerStyle } from '../../constants/emotion';
|
|
3
|
-
import { mediaQuery } from '../../theme';
|
|
1
|
+
import { getBoxProps } from './helpers.js';
|
|
2
|
+
import { containerStyle } from '../../constants/emotion.js';
|
|
3
|
+
import { mediaQuery } from '../../theme/index.js';
|
|
4
4
|
export const Box = ({ children, container, ref, ..._props }) => {
|
|
5
5
|
const { xs, sm, md, lg, ...rest } = getBoxProps(_props);
|
|
6
6
|
const css = [
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BoxProps } from './types';
|
|
1
|
+
import { BoxProps } from './types.js';
|
|
2
2
|
export declare const getBoxProps: (extended: BoxProps) => BoxProps;
|
package/dist/lib/box/helpers.js
CHANGED
package/dist/lib/box/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './box';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export * from './helpers';
|
|
1
|
+
export * from './box.jsx';
|
|
2
|
+
export * from './types.js';
|
|
3
|
+
export * from './helpers.js';
|
package/dist/lib/box/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './box';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export * from './helpers';
|
|
1
|
+
export * from './box.jsx';
|
|
2
|
+
export * from './types.js';
|
|
3
|
+
export * from './helpers.js';
|
package/dist/lib/box/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { PropsWithCSS, ResponsiveDesign, ShallowMerge } from '../../types';
|
|
2
|
+
import { PropsWithCSS, ResponsiveDesign, ShallowMerge } from '../../types/index.js';
|
|
3
3
|
type BoxExtendedProps = ResponsiveDesign<PropsWithCSS> & {
|
|
4
4
|
container?: boolean;
|
|
5
5
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
|
2
|
-
import { BreadcrumbItemProps } from './types';
|
|
2
|
+
import { BreadcrumbItemProps } from './types.js';
|
|
3
3
|
export declare const BreadcrumbItem: ({ children, icon, ...props }: BreadcrumbItemProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Icon } from '../../icon';
|
|
2
|
-
import { Link } from '../../link';
|
|
1
|
+
import { Icon } from '../../icon/index.js';
|
|
2
|
+
import { Link } from '../../link/index.js';
|
|
3
3
|
export const BreadcrumbItem = ({ children, icon, ...props }) => {
|
|
4
4
|
return (<Link css={{ display: 'flex', width: 'fit-content', alignItems: 'center', gap: '0.375rem' }} {...props}>
|
|
5
5
|
{icon && <Icon {...icon}/>}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './breadcrumb-item';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export * from './breadcrumb-item.jsx';
|
|
2
|
+
export * from './types.js';
|