brd-ui-kit 0.1.73 → 0.1.76
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/brd-ui-kit.css +1 -1
- package/dist/calendar-B5QCV34E.cjs +2 -0
- package/dist/calendar-B5QCV34E.cjs.map +1 -0
- package/dist/calendar-Ba3kHG6w.js +3112 -0
- package/dist/calendar-Ba3kHG6w.js.map +1 -0
- package/dist/calendar-locale-BHyNJPb2.cjs +2 -0
- package/dist/calendar-locale-BHyNJPb2.cjs.map +1 -0
- package/dist/calendar-locale-DQ9wj0zF.js +592 -0
- package/dist/calendar-locale-DQ9wj0zF.js.map +1 -0
- package/dist/chart-9H_9wEfR.cjs +63 -0
- package/dist/{chart-CgVfpT_X.cjs.map → chart-9H_9wEfR.cjs.map} +1 -1
- package/dist/{chart-D15EtNmb.js → chart-DFbmMKiQ.js} +2956 -2951
- package/dist/{chart-D15EtNmb.js.map → chart-DFbmMKiQ.js.map} +1 -1
- package/dist/components/basic-chart/basic-chart.d.ts +1 -1
- package/dist/components/basic-table/basic-table.d.ts +33 -2
- package/dist/components/basic-table/index.d.ts +1 -1
- package/dist/components/data-table/data-table-actions-column.d.ts +23 -0
- package/dist/components/data-table/data-table-bulk-actions.d.ts +20 -0
- package/dist/components/data-table/data-table-column-visibility.d.ts +17 -0
- package/dist/components/data-table/data-table-editable-column.d.ts +12 -0
- package/dist/components/data-table/data-table-filter.d.ts +12 -0
- package/dist/components/data-table/data-table-row-actions-column.d.ts +53 -0
- package/dist/components/data-table/data-table-select-column.d.ts +2 -0
- package/dist/components/data-table/data-table.d.ts +2 -0
- package/dist/components/data-table/data-table.styles.d.ts +8 -0
- package/dist/components/data-table/index.d.ts +17 -0
- package/dist/components/data-table/use-data-table-editable-rows.d.ts +60 -0
- package/dist/components/data-table.d.ts +2 -0
- package/dist/components/input-field/input-field.d.ts +3 -3
- package/dist/components/input-phone/input-phone.d.ts +4 -4
- package/dist/components/popover-modal/popover-modal.d.ts +4 -4
- package/dist/components/select-field/select-field.d.ts +2 -2
- package/dist/components/textarea-field/index.d.ts +1 -1
- package/dist/components/ui/avatar/avatar.d.ts +7 -7
- package/dist/components/ui/badge/badge.d.ts +2 -2
- package/dist/components/ui/button/button.d.ts +3 -3
- package/dist/components/ui/button/button.styles.d.ts +2 -2
- package/dist/components/ui/calendar/calendar.d.ts +18 -14
- package/dist/components/ui/calendar/calendar.styles.d.ts +60 -2
- package/dist/components/ui/calendar/index.d.ts +3 -2
- package/dist/components/ui/card/card.d.ts +13 -13
- package/dist/components/ui/chart/chart.d.ts +23 -21
- package/dist/components/ui/checkbox/checkbox.d.ts +4 -4
- package/dist/components/ui/combobox/combobox.d.ts +6 -6
- package/dist/components/ui/dialog/dialog.d.ts +11 -11
- package/dist/components/ui/drawer/drawer.d.ts +11 -11
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +102 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.styles.d.ts +9 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +2 -0
- package/dist/components/ui/dropdown-menu.d.ts +2 -0
- package/dist/components/ui/icon/icon-presets.d.ts +5 -5
- package/dist/components/ui/icon/icon.d.ts +5 -4
- package/dist/components/ui/input/input.d.ts +2 -2
- package/dist/components/ui/input-group/input-group.d.ts +7 -7
- package/dist/components/ui/label/label.d.ts +4 -4
- package/dist/components/ui/pagination/pagination.d.ts +11 -10
- package/dist/components/ui/popover/popover.d.ts +8 -8
- package/dist/components/ui/progress/progress.d.ts +4 -4
- package/dist/components/ui/radio-group/radio-group.d.ts +7 -7
- package/dist/components/ui/select/select.d.ts +11 -11
- package/dist/components/ui/select/select.styles.d.ts +2 -2
- package/dist/components/ui/select-calendar-menu/index.d.ts +1 -0
- package/dist/components/ui/select-calendar-menu/select-calendar-menu.d.ts +33 -0
- package/dist/components/ui/select-calendar-menu.d.ts +2 -0
- package/dist/components/ui/separator/separator.d.ts +4 -4
- package/dist/components/ui/switch/switch.d.ts +4 -4
- package/dist/components/ui/table/table.d.ts +17 -17
- package/dist/components/ui/tabs/tabs.d.ts +8 -8
- package/dist/components/ui/toggle/toggle.styles.d.ts +1 -0
- package/dist/components/ui/toggle-group/toggle-group.d.ts +4 -3
- package/dist/components/ui/toggle-group/toggle-group.styles.d.ts +8 -2
- package/dist/components/ui/tooltip/tooltip.d.ts +8 -8
- package/dist/components/ui/typography/typography.d.ts +174 -174
- package/dist/components-app-pagination-app-pagination.cjs +1 -1
- package/dist/components-app-pagination-app-pagination.cjs.map +1 -1
- package/dist/components-app-pagination-app-pagination.js +46 -30
- package/dist/components-app-pagination-app-pagination.js.map +1 -1
- package/dist/components-app-pagination-app-pagination.styles.cjs +2 -2
- package/dist/components-app-pagination-app-pagination.styles.cjs.map +1 -1
- package/dist/components-app-pagination-app-pagination.styles.js +12 -12
- package/dist/components-app-pagination-app-pagination.styles.js.map +1 -1
- package/dist/components-avatar-uploader-avatar-uploader.cjs +2 -2
- package/dist/components-avatar-uploader-avatar-uploader.cjs.map +1 -1
- package/dist/components-avatar-uploader-avatar-uploader.js +37 -36
- package/dist/components-avatar-uploader-avatar-uploader.js.map +1 -1
- package/dist/components-basic-avatar-basic-avatar.cjs +2 -2
- package/dist/components-basic-avatar-basic-avatar.cjs.map +1 -1
- package/dist/components-basic-avatar-basic-avatar.js +7 -5
- package/dist/components-basic-avatar-basic-avatar.js.map +1 -1
- package/dist/components-basic-chart-basic-chart.cjs +2 -2
- package/dist/components-basic-chart-basic-chart.cjs.map +1 -1
- package/dist/components-basic-chart-basic-chart.js +106 -108
- package/dist/components-basic-chart-basic-chart.js.map +1 -1
- package/dist/components-basic-drawer-basic-drawer.cjs +1 -1
- package/dist/components-basic-drawer-basic-drawer.cjs.map +1 -1
- package/dist/components-basic-drawer-basic-drawer.js +13 -14
- package/dist/components-basic-drawer-basic-drawer.js.map +1 -1
- package/dist/components-basic-table-basic-table.cjs +2 -2
- package/dist/components-basic-table-basic-table.cjs.map +1 -1
- package/dist/components-basic-table-basic-table.js +876 -758
- package/dist/components-basic-table-basic-table.js.map +1 -1
- package/dist/components-data-table-data-table-actions-column.cjs +2 -0
- package/dist/components-data-table-data-table-actions-column.cjs.map +1 -0
- package/dist/components-data-table-data-table-actions-column.js +71 -0
- package/dist/components-data-table-data-table-actions-column.js.map +1 -0
- package/dist/components-data-table-data-table-bulk-actions.cjs +2 -0
- package/dist/components-data-table-data-table-bulk-actions.cjs.map +1 -0
- package/dist/components-data-table-data-table-bulk-actions.js +60 -0
- package/dist/components-data-table-data-table-bulk-actions.js.map +1 -0
- package/dist/components-data-table-data-table-column-visibility.cjs +3 -0
- package/dist/components-data-table-data-table-column-visibility.cjs.map +1 -0
- package/dist/components-data-table-data-table-column-visibility.js +100 -0
- package/dist/components-data-table-data-table-column-visibility.js.map +1 -0
- package/dist/components-data-table-data-table-editable-column.cjs +2 -0
- package/dist/components-data-table-data-table-editable-column.cjs.map +1 -0
- package/dist/components-data-table-data-table-editable-column.js +15 -0
- package/dist/components-data-table-data-table-editable-column.js.map +1 -0
- package/dist/components-data-table-data-table-filter.cjs +2 -0
- package/dist/components-data-table-data-table-filter.cjs.map +1 -0
- package/dist/components-data-table-data-table-filter.js +39 -0
- package/dist/components-data-table-data-table-filter.js.map +1 -0
- package/dist/components-data-table-data-table-row-actions-column.cjs +2 -0
- package/dist/components-data-table-data-table-row-actions-column.cjs.map +1 -0
- package/dist/components-data-table-data-table-row-actions-column.js +173 -0
- package/dist/components-data-table-data-table-row-actions-column.js.map +1 -0
- package/dist/components-data-table-data-table-select-column.cjs +2 -0
- package/dist/components-data-table-data-table-select-column.cjs.map +1 -0
- package/dist/components-data-table-data-table-select-column.js +44 -0
- package/dist/components-data-table-data-table-select-column.js.map +1 -0
- package/dist/components-data-table-data-table.cjs +2 -0
- package/dist/components-data-table-data-table.cjs.map +1 -0
- package/dist/components-data-table-data-table.js +37 -0
- package/dist/components-data-table-data-table.js.map +1 -0
- package/dist/components-data-table-data-table.styles.cjs +4 -0
- package/dist/components-data-table-data-table.styles.cjs.map +1 -0
- package/dist/components-data-table-data-table.styles.js +22 -0
- package/dist/components-data-table-data-table.styles.js.map +1 -0
- package/dist/components-data-table-use-data-table-editable-rows.cjs +2 -0
- package/dist/components-data-table-use-data-table-editable-rows.cjs.map +1 -0
- package/dist/components-data-table-use-data-table-editable-rows.js +154 -0
- package/dist/components-data-table-use-data-table-editable-rows.js.map +1 -0
- package/dist/components-data-table.cjs +2 -0
- package/dist/components-data-table.cjs.map +1 -0
- package/dist/components-data-table.js +21 -0
- package/dist/components-data-table.js.map +1 -0
- package/dist/components-files-uploader-files-uploader.cjs.map +1 -1
- package/dist/components-files-uploader-files-uploader.js.map +1 -1
- package/dist/components-input-contact-input-contact.cjs +1 -1
- package/dist/components-input-contact-input-contact.cjs.map +1 -1
- package/dist/components-input-contact-input-contact.js +12 -10
- package/dist/components-input-contact-input-contact.js.map +1 -1
- package/dist/components-input-field-input-field.cjs +1 -1
- package/dist/components-input-field-input-field.cjs.map +1 -1
- package/dist/components-input-field-input-field.js +18 -19
- package/dist/components-input-field-input-field.js.map +1 -1
- package/dist/components-input-password-input-password.cjs +1 -1
- package/dist/components-input-password-input-password.cjs.map +1 -1
- package/dist/components-input-password-input-password.js +8 -6
- package/dist/components-input-password-input-password.js.map +1 -1
- package/dist/components-input-phone-input-phone.cjs.map +1 -1
- package/dist/components-input-phone-input-phone.js.map +1 -1
- package/dist/components-popover-modal-popover-modal.cjs +1 -1
- package/dist/components-popover-modal-popover-modal.cjs.map +1 -1
- package/dist/components-popover-modal-popover-modal.js +53 -35
- package/dist/components-popover-modal-popover-modal.js.map +1 -1
- package/dist/components-select-field-select-field.cjs.map +1 -1
- package/dist/components-select-field-select-field.js.map +1 -1
- package/dist/components-textarea-field-textarea-field.cjs.map +1 -1
- package/dist/components-textarea-field-textarea-field.js.map +1 -1
- package/dist/components-ui-avatar-avatar.cjs +1 -1
- package/dist/components-ui-avatar-avatar.cjs.map +1 -1
- package/dist/components-ui-avatar-avatar.js +12 -13
- package/dist/components-ui-avatar-avatar.js.map +1 -1
- package/dist/components-ui-badge-badge.cjs +1 -1
- package/dist/components-ui-badge-badge.cjs.map +1 -1
- package/dist/components-ui-badge-badge.js +10 -11
- package/dist/components-ui-badge-badge.js.map +1 -1
- package/dist/components-ui-button-button.cjs +1 -1
- package/dist/components-ui-button-button.cjs.map +1 -1
- package/dist/components-ui-button-button.js +10 -11
- package/dist/components-ui-button-button.js.map +1 -1
- package/dist/components-ui-button-button.styles.cjs +18 -8
- package/dist/components-ui-button-button.styles.cjs.map +1 -1
- package/dist/components-ui-button-button.styles.js +49 -33
- package/dist/components-ui-button-button.styles.js.map +1 -1
- package/dist/components-ui-calendar-calendar.cjs +1 -12
- package/dist/components-ui-calendar-calendar.cjs.map +1 -1
- package/dist/components-ui-calendar-calendar.js +12 -3757
- package/dist/components-ui-calendar-calendar.js.map +1 -1
- package/dist/components-ui-calendar-calendar.styles.cjs +17 -13
- package/dist/components-ui-calendar-calendar.styles.cjs.map +1 -1
- package/dist/components-ui-calendar-calendar.styles.js +193 -24
- package/dist/components-ui-calendar-calendar.styles.js.map +1 -1
- package/dist/components-ui-calendar.cjs +1 -1
- package/dist/components-ui-calendar.js +3 -2
- package/dist/components-ui-calendar.js.map +1 -1
- package/dist/components-ui-card-card.cjs +1 -1
- package/dist/components-ui-card-card.cjs.map +1 -1
- package/dist/components-ui-card-card.js +10 -11
- package/dist/components-ui-card-card.js.map +1 -1
- package/dist/components-ui-card-card.styles.cjs +2 -2
- package/dist/components-ui-card-card.styles.cjs.map +1 -1
- package/dist/components-ui-card-card.styles.js +2 -2
- package/dist/components-ui-card-card.styles.js.map +1 -1
- package/dist/components-ui-chart-chart.cjs +1 -1
- package/dist/components-ui-chart-chart.js +1 -1
- package/dist/components-ui-chart.cjs +1 -1
- package/dist/components-ui-chart.js +1 -1
- package/dist/components-ui-checkbox-checkbox.cjs +1 -1
- package/dist/components-ui-checkbox-checkbox.cjs.map +1 -1
- package/dist/components-ui-checkbox-checkbox.js +11 -12
- package/dist/components-ui-checkbox-checkbox.js.map +1 -1
- package/dist/components-ui-combobox-combobox.cjs +5 -5
- package/dist/components-ui-combobox-combobox.cjs.map +1 -1
- package/dist/components-ui-combobox-combobox.js +1477 -1479
- package/dist/components-ui-combobox-combobox.js.map +1 -1
- package/dist/components-ui-dialog-dialog.cjs +1 -1
- package/dist/components-ui-dialog-dialog.cjs.map +1 -1
- package/dist/components-ui-dialog-dialog.js +4 -5
- package/dist/components-ui-dialog-dialog.js.map +1 -1
- package/dist/components-ui-drawer-drawer.cjs +2 -2
- package/dist/components-ui-drawer-drawer.cjs.map +1 -1
- package/dist/components-ui-drawer-drawer.js +16 -19
- package/dist/components-ui-drawer-drawer.js.map +1 -1
- package/dist/components-ui-dropdown-menu-dropdown-menu.cjs +3 -0
- package/dist/components-ui-dropdown-menu-dropdown-menu.cjs.map +1 -0
- package/dist/components-ui-dropdown-menu-dropdown-menu.js +292 -0
- package/dist/components-ui-dropdown-menu-dropdown-menu.js.map +1 -0
- package/dist/components-ui-dropdown-menu-dropdown-menu.styles.cjs +29 -0
- package/dist/components-ui-dropdown-menu-dropdown-menu.styles.cjs.map +1 -0
- package/dist/components-ui-dropdown-menu-dropdown-menu.styles.js +43 -0
- package/dist/components-ui-dropdown-menu-dropdown-menu.styles.js.map +1 -0
- package/dist/components-ui-dropdown-menu.cjs +2 -0
- package/dist/components-ui-dropdown-menu.cjs.map +1 -0
- package/dist/components-ui-dropdown-menu.js +17 -0
- package/dist/components-ui-dropdown-menu.js.map +1 -0
- package/dist/components-ui-field-field.cjs +1 -1
- package/dist/components-ui-field-field.cjs.map +1 -1
- package/dist/components-ui-field-field.js +14 -14
- package/dist/components-ui-field-field.js.map +1 -1
- package/dist/components-ui-icon-icon-presets.cjs +1 -1
- package/dist/components-ui-icon-icon-presets.cjs.map +1 -1
- package/dist/components-ui-icon-icon-presets.js +3 -3
- package/dist/components-ui-icon-icon-presets.js.map +1 -1
- package/dist/components-ui-icon-icon.cjs +1 -1
- package/dist/components-ui-icon-icon.cjs.map +1 -1
- package/dist/components-ui-icon-icon.js +60 -62713
- package/dist/components-ui-icon-icon.js.map +1 -1
- package/dist/components-ui-input-group-input-group.cjs +1 -1
- package/dist/components-ui-input-group-input-group.cjs.map +1 -1
- package/dist/components-ui-input-group-input-group.js +12 -13
- package/dist/components-ui-input-group-input-group.js.map +1 -1
- package/dist/components-ui-input-input.cjs +1 -1
- package/dist/components-ui-input-input.cjs.map +1 -1
- package/dist/components-ui-input-input.js +2 -3
- package/dist/components-ui-input-input.js.map +1 -1
- package/dist/components-ui-label-label.cjs +1 -1
- package/dist/components-ui-label-label.cjs.map +1 -1
- package/dist/components-ui-label-label.js +1 -1
- package/dist/components-ui-label-label.js.map +1 -1
- package/dist/components-ui-pagination-pagination.cjs +2 -1
- package/dist/components-ui-pagination-pagination.cjs.map +1 -1
- package/dist/components-ui-pagination-pagination.js +93 -63
- package/dist/components-ui-pagination-pagination.js.map +1 -1
- package/dist/components-ui-popover-popover.cjs +1 -1
- package/dist/components-ui-popover-popover.cjs.map +1 -1
- package/dist/components-ui-popover-popover.js +36 -31
- package/dist/components-ui-popover-popover.js.map +1 -1
- package/dist/components-ui-popover-popover.styles.cjs.map +1 -1
- package/dist/components-ui-popover-popover.styles.js.map +1 -1
- package/dist/components-ui-progress-progress.cjs +1 -1
- package/dist/components-ui-progress-progress.cjs.map +1 -1
- package/dist/components-ui-progress-progress.js +1 -1
- package/dist/components-ui-progress-progress.js.map +1 -1
- package/dist/components-ui-radio-group-radio-group.cjs +1 -1
- package/dist/components-ui-radio-group-radio-group.cjs.map +1 -1
- package/dist/components-ui-radio-group-radio-group.js +0 -1
- package/dist/components-ui-radio-group-radio-group.js.map +1 -1
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.cjs +2 -0
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.cjs.map +1 -0
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.js +144 -0
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.js.map +1 -0
- package/dist/components-ui-select-calendar-menu.cjs +2 -0
- package/dist/components-ui-select-calendar-menu.cjs.map +1 -0
- package/dist/components-ui-select-calendar-menu.js +5 -0
- package/dist/components-ui-select-calendar-menu.js.map +1 -0
- package/dist/components-ui-select-select.cjs +1 -1
- package/dist/components-ui-select-select.cjs.map +1 -1
- package/dist/components-ui-select-select.js +21 -22
- package/dist/components-ui-select-select.js.map +1 -1
- package/dist/components-ui-select-select.styles.cjs +2 -2
- package/dist/components-ui-select-select.styles.cjs.map +1 -1
- package/dist/components-ui-select-select.styles.js +5 -5
- package/dist/components-ui-select-select.styles.js.map +1 -1
- package/dist/components-ui-separator-separator.cjs +1 -1
- package/dist/components-ui-separator-separator.cjs.map +1 -1
- package/dist/components-ui-separator-separator.js +11 -12
- package/dist/components-ui-separator-separator.js.map +1 -1
- package/dist/components-ui-sonner-sonner.styles.cjs.map +1 -1
- package/dist/components-ui-sonner-sonner.styles.js.map +1 -1
- package/dist/components-ui-switch-switch.cjs +1 -1
- package/dist/components-ui-switch-switch.cjs.map +1 -1
- package/dist/components-ui-switch-switch.js +6 -7
- package/dist/components-ui-switch-switch.js.map +1 -1
- package/dist/components-ui-table-table.cjs +1 -1
- package/dist/components-ui-table-table.cjs.map +1 -1
- package/dist/components-ui-table-table.js +0 -1
- package/dist/components-ui-table-table.js.map +1 -1
- package/dist/components-ui-tabs-tabs.cjs +2 -2
- package/dist/components-ui-tabs-tabs.cjs.map +1 -1
- package/dist/components-ui-tabs-tabs.js +16 -16
- package/dist/components-ui-tabs-tabs.js.map +1 -1
- package/dist/components-ui-toggle-group-toggle-group.cjs +1 -1
- package/dist/components-ui-toggle-group-toggle-group.cjs.map +1 -1
- package/dist/components-ui-toggle-group-toggle-group.js +52 -42
- package/dist/components-ui-toggle-group-toggle-group.js.map +1 -1
- package/dist/components-ui-toggle-group-toggle-group.styles.cjs +1 -17
- package/dist/components-ui-toggle-group-toggle-group.styles.cjs.map +1 -1
- package/dist/components-ui-toggle-group-toggle-group.styles.js +53 -30
- package/dist/components-ui-toggle-group-toggle-group.styles.js.map +1 -1
- package/dist/components-ui-toggle-toggle.styles.cjs +6 -11
- package/dist/components-ui-toggle-toggle.styles.cjs.map +1 -1
- package/dist/components-ui-toggle-toggle.styles.js +16 -18
- package/dist/components-ui-toggle-toggle.styles.js.map +1 -1
- package/dist/components-ui-tooltip-tooltip.cjs +1 -1
- package/dist/components-ui-tooltip-tooltip.cjs.map +1 -1
- package/dist/components-ui-tooltip-tooltip.js +9 -10
- package/dist/components-ui-tooltip-tooltip.js.map +1 -1
- package/dist/components-ui-typography-typography.cjs +1 -1
- package/dist/components-ui-typography-typography.cjs.map +1 -1
- package/dist/components-ui-typography-typography.js +7 -7
- package/dist/components-ui-typography-typography.js.map +1 -1
- package/dist/constants/calendar-locale.d.ts +5 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +9 -2
- package/dist/index.js +223 -188
- package/dist/index.js.map +1 -1
- package/package.json +44 -17
- package/dist/chart-CgVfpT_X.cjs +0 -63
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import "react";
|
|
1
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
3
2
|
import "@radix-ui/react-accessible-icon";
|
|
4
3
|
import "@radix-ui/react-accordion";
|
|
5
4
|
import "@radix-ui/react-alert-dialog";
|
|
@@ -37,7 +36,7 @@ import "@radix-ui/react-tooltip";
|
|
|
37
36
|
import "@radix-ui/react-visually-hidden";
|
|
38
37
|
import { cn as a } from "./lib-utils.js";
|
|
39
38
|
import { Icon as p } from "./components-ui-icon-icon.js";
|
|
40
|
-
import { selectItemIndicatorClassName as u, selectItemClassName as d, selectViewportClassName as N, selectContentClassName as S, selectGroupClassName as f, selectLabelClassName as C, selectScrollButtonClassName as
|
|
39
|
+
import { selectItemIndicatorClassName as u, selectItemClassName as d, selectViewportClassName as N, selectContentClassName as S, selectGroupClassName as f, selectLabelClassName as C, selectScrollButtonClassName as m, selectSeparatorClassName as g, selectIconClassName as I, selectTriggerClassName as h } from "./components-ui-select-select.styles.js";
|
|
41
40
|
function ct({ ...t }) {
|
|
42
41
|
return /* @__PURE__ */ e(
|
|
43
42
|
o.Root,
|
|
@@ -47,7 +46,7 @@ function ct({ ...t }) {
|
|
|
47
46
|
}
|
|
48
47
|
);
|
|
49
48
|
}
|
|
50
|
-
function
|
|
49
|
+
function mt({ className: t, ...r }) {
|
|
51
50
|
return /* @__PURE__ */ e(
|
|
52
51
|
o.Group,
|
|
53
52
|
{
|
|
@@ -57,7 +56,7 @@ function it({ className: t, ...r }) {
|
|
|
57
56
|
}
|
|
58
57
|
);
|
|
59
58
|
}
|
|
60
|
-
function
|
|
59
|
+
function it({ ...t }) {
|
|
61
60
|
return /* @__PURE__ */ e(
|
|
62
61
|
o.Value,
|
|
63
62
|
{
|
|
@@ -66,13 +65,13 @@ function nt({ ...t }) {
|
|
|
66
65
|
}
|
|
67
66
|
);
|
|
68
67
|
}
|
|
69
|
-
function
|
|
68
|
+
function nt({
|
|
70
69
|
className: t,
|
|
71
70
|
size: r = "default",
|
|
72
71
|
children: l,
|
|
73
72
|
...s
|
|
74
73
|
}) {
|
|
75
|
-
return /* @__PURE__ */
|
|
74
|
+
return /* @__PURE__ */ c(
|
|
76
75
|
o.Trigger,
|
|
77
76
|
{
|
|
78
77
|
"data-slot": "select-trigger",
|
|
@@ -92,7 +91,7 @@ function pt({
|
|
|
92
91
|
}
|
|
93
92
|
);
|
|
94
93
|
}
|
|
95
|
-
function
|
|
94
|
+
function pt({
|
|
96
95
|
className: t,
|
|
97
96
|
children: r,
|
|
98
97
|
position: l = "popper",
|
|
@@ -100,7 +99,7 @@ function ut({
|
|
|
100
99
|
sideOffset: i = 10,
|
|
101
100
|
...n
|
|
102
101
|
}) {
|
|
103
|
-
return /* @__PURE__ */ e(o.Portal, { children: /* @__PURE__ */
|
|
102
|
+
return /* @__PURE__ */ e(o.Portal, { children: /* @__PURE__ */ c(
|
|
104
103
|
o.Content,
|
|
105
104
|
{
|
|
106
105
|
"data-slot": "select-content",
|
|
@@ -125,7 +124,7 @@ function ut({
|
|
|
125
124
|
}
|
|
126
125
|
) });
|
|
127
126
|
}
|
|
128
|
-
function
|
|
127
|
+
function ut({ className: t, ...r }) {
|
|
129
128
|
return /* @__PURE__ */ e(
|
|
130
129
|
o.Label,
|
|
131
130
|
{
|
|
@@ -135,8 +134,8 @@ function dt({ className: t, ...r }) {
|
|
|
135
134
|
}
|
|
136
135
|
);
|
|
137
136
|
}
|
|
138
|
-
function
|
|
139
|
-
return /* @__PURE__ */
|
|
137
|
+
function dt({ className: t, children: r, ...l }) {
|
|
138
|
+
return /* @__PURE__ */ c(
|
|
140
139
|
o.Item,
|
|
141
140
|
{
|
|
142
141
|
"data-slot": "select-item",
|
|
@@ -149,7 +148,7 @@ function Nt({ className: t, children: r, ...l }) {
|
|
|
149
148
|
}
|
|
150
149
|
);
|
|
151
150
|
}
|
|
152
|
-
function
|
|
151
|
+
function Nt({ className: t, ...r }) {
|
|
153
152
|
return /* @__PURE__ */ e(
|
|
154
153
|
o.Separator,
|
|
155
154
|
{
|
|
@@ -164,7 +163,7 @@ function b({ className: t, ...r }) {
|
|
|
164
163
|
o.ScrollUpButton,
|
|
165
164
|
{
|
|
166
165
|
"data-slot": "select-scroll-up-button",
|
|
167
|
-
className: a(
|
|
166
|
+
className: a(m, t),
|
|
168
167
|
...r
|
|
169
168
|
}
|
|
170
169
|
);
|
|
@@ -174,21 +173,21 @@ function w({ className: t, ...r }) {
|
|
|
174
173
|
o.ScrollDownButton,
|
|
175
174
|
{
|
|
176
175
|
"data-slot": "select-scroll-down-button",
|
|
177
|
-
className: a(
|
|
176
|
+
className: a(m, t),
|
|
178
177
|
...r
|
|
179
178
|
}
|
|
180
179
|
);
|
|
181
180
|
}
|
|
182
181
|
export {
|
|
183
182
|
ct as Select,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
183
|
+
pt as SelectContent,
|
|
184
|
+
mt as SelectGroup,
|
|
185
|
+
dt as SelectItem,
|
|
186
|
+
ut as SelectLabel,
|
|
188
187
|
w as SelectScrollDownButton,
|
|
189
188
|
b as SelectScrollUpButton,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
189
|
+
Nt as SelectSeparator,
|
|
190
|
+
nt as SelectTrigger,
|
|
191
|
+
it as SelectValue
|
|
193
192
|
};
|
|
194
193
|
//# sourceMappingURL=components-ui-select-select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-select-select.js","sources":["../src/components/ui/select/select.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"components-ui-select-select.js","sources":["../src/components/ui/select/select.tsx"],"sourcesContent":["import type { ComponentProps } from \"react\";\nimport { Select as SelectPrimitive } from \"radix-ui\";\n\nimport { cn } from \"@/lib/utils\";\nimport { Icon } from \"../icon\";\nimport {\n selectContentClassName,\n selectGroupClassName,\n selectIconClassName,\n selectItemClassName,\n selectItemIndicatorClassName,\n selectLabelClassName,\n selectScrollButtonClassName,\n selectSeparatorClassName,\n selectTriggerClassName,\n selectViewportClassName,\n} from \"./select.styles\";\n\ntype SelectProps = ComponentProps<typeof SelectPrimitive.Root>;\ntype SelectGroupProps = ComponentProps<typeof SelectPrimitive.Group>;\ntype SelectValueProps = ComponentProps<typeof SelectPrimitive.Value>;\ntype SelectTriggerProps = ComponentProps<typeof SelectPrimitive.Trigger> & {\n size?: \"sm\" | \"default\";\n};\ntype SelectContentProps = ComponentProps<typeof SelectPrimitive.Content>;\ntype SelectLabelProps = ComponentProps<typeof SelectPrimitive.Label>;\ntype SelectItemProps = ComponentProps<typeof SelectPrimitive.Item>;\ntype SelectSeparatorProps = ComponentProps<typeof SelectPrimitive.Separator>;\ntype SelectScrollUpButtonProps = ComponentProps<typeof SelectPrimitive.ScrollUpButton>;\ntype SelectScrollDownButtonProps = ComponentProps<\n typeof SelectPrimitive.ScrollDownButton\n>;\n\nfunction Select({ ...props }: SelectProps) {\n return (\n <SelectPrimitive.Root\n data-slot=\"select\"\n {...props}\n />\n );\n}\n\nfunction SelectGroup({ className, ...props }: SelectGroupProps) {\n return (\n <SelectPrimitive.Group\n data-slot=\"select-group\"\n className={cn(selectGroupClassName, className)}\n {...props}\n />\n );\n}\n\nfunction SelectValue({ ...props }: SelectValueProps) {\n return (\n <SelectPrimitive.Value\n data-slot=\"select-value\"\n {...props}\n />\n );\n}\n\nfunction SelectTrigger({\n className,\n size = \"default\",\n children,\n ...props\n}: SelectTriggerProps) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n data-size={size}\n className={cn(selectTriggerClassName, className)}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <Icon\n className={selectIconClassName}\n type=\"caret-down\"\n />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n );\n}\n\nfunction SelectContent({\n className,\n children,\n position = \"popper\",\n align = \"center\",\n sideOffset = 10,\n ...props\n}: SelectContentProps) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot=\"select-content\"\n data-align-trigger={position === \"item-aligned\"}\n className={cn(selectContentClassName, position === \"popper\" && \"\", className)}\n position={position}\n align={align}\n sideOffset={sideOffset}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n data-position={position}\n className={cn(selectViewportClassName, position === \"popper\" && \"\")}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n );\n}\n\nfunction SelectLabel({ className, ...props }: SelectLabelProps) {\n return (\n <SelectPrimitive.Label\n data-slot=\"select-label\"\n className={cn(selectLabelClassName, className)}\n {...props}\n />\n );\n}\n\nfunction SelectItem({ className, children, ...props }: SelectItemProps) {\n return (\n <SelectPrimitive.Item\n data-slot=\"select-item\"\n className={cn(selectItemClassName, className)}\n {...props}\n >\n <span className={selectItemIndicatorClassName}>\n <SelectPrimitive.ItemIndicator>\n {/* <CheckIcon className=\"text-primary-text pointer-events-none size-4\" /> */}\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n );\n}\n\nfunction SelectSeparator({ className, ...props }: SelectSeparatorProps) {\n return (\n <SelectPrimitive.Separator\n data-slot=\"select-separator\"\n className={cn(selectSeparatorClassName, className)}\n {...props}\n />\n );\n}\n\nfunction SelectScrollUpButton({ className, ...props }: SelectScrollUpButtonProps) {\n return (\n <SelectPrimitive.ScrollUpButton\n data-slot=\"select-scroll-up-button\"\n className={cn(selectScrollButtonClassName, className)}\n {...props}\n >\n {/* <ChevronUpIcon /> */}\n </SelectPrimitive.ScrollUpButton>\n );\n}\n\nfunction SelectScrollDownButton({ className, ...props }: SelectScrollDownButtonProps) {\n return (\n <SelectPrimitive.ScrollDownButton\n data-slot=\"select-scroll-down-button\"\n className={cn(selectScrollButtonClassName, className)}\n {...props}\n >\n {/* <ChevronDownIcon /> */}\n </SelectPrimitive.ScrollDownButton>\n );\n}\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n type SelectContentProps,\n type SelectGroupProps,\n type SelectItemProps,\n type SelectLabelProps,\n type SelectProps,\n type SelectScrollDownButtonProps,\n type SelectScrollUpButtonProps,\n type SelectSeparatorProps,\n type SelectTriggerProps,\n type SelectValueProps,\n};\n"],"names":["Select","props","jsx","SelectPrimitive","SelectGroup","className","cn","selectGroupClassName","SelectValue","SelectTrigger","size","children","jsxs","selectTriggerClassName","Icon","selectIconClassName","SelectContent","position","align","sideOffset","selectContentClassName","SelectScrollUpButton","selectViewportClassName","SelectScrollDownButton","SelectLabel","selectLabelClassName","SelectItem","selectItemClassName","selectItemIndicatorClassName","SelectSeparator","selectSeparatorClassName","selectScrollButtonClassName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,SAASA,GAAO,EAAE,GAAGC,KAAsB;AACzC,SACE,gBAAAC;AAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACT,GAAGF;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASG,GAAY,EAAE,WAAAC,GAAW,GAAGJ,KAA2B;AAC9D,SACE,gBAAAC;AAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAWG,EAAGC,GAAsBF,CAAS;AAAA,MAC5C,GAAGJ;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASO,GAAY,EAAE,GAAGP,KAA2B;AACnD,SACE,gBAAAC;AAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACT,GAAGF;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASQ,GAAc;AAAA,EACrB,WAAAJ;AAAA,EACA,MAAAK,IAAO;AAAA,EACP,UAAAC;AAAA,EACA,GAAGV;AACL,GAAuB;AACrB,SACE,gBAAAW;AAAA,IAACT,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,aAAWO;AAAA,MACX,WAAWJ,EAAGO,GAAwBR,CAAS;AAAA,MAC9C,GAAGJ;AAAA,MAEH,UAAA;AAAA,QAAAU;AAAA,QACD,gBAAAT,EAACC,EAAgB,MAAhB,EAAqB,SAAO,IAC3B,UAAA,gBAAAD;AAAA,UAACY;AAAA,UAAA;AAAA,YACC,WAAWC;AAAA,YACX,MAAK;AAAA,UAAA;AAAA,QAAA,EACP,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;AAEA,SAASC,GAAc;AAAA,EACrB,WAAAX;AAAA,EACA,UAAAM;AAAA,EACA,UAAAM,IAAW;AAAA,EACX,OAAAC,IAAQ;AAAA,EACR,YAAAC,IAAa;AAAA,EACb,GAAGlB;AACL,GAAuB;AACrB,SACE,gBAAAC,EAACC,EAAgB,QAAhB,EACC,UAAA,gBAAAS;AAAA,IAACT,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,sBAAoBc,MAAa;AAAA,MACjC,WAAWX,EAAGc,GAAwBH,MAAa,YAAY,IAAIZ,CAAS;AAAA,MAC5E,UAAAY;AAAA,MACA,OAAAC;AAAA,MACA,YAAAC;AAAA,MACC,GAAGlB;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAC,EAACmB,GAAA,EAAqB;AAAA,QACtB,gBAAAnB;AAAA,UAACC,EAAgB;AAAA,UAAhB;AAAA,YACC,iBAAec;AAAA,YACf,WAAWX,EAAGgB,GAAyBL,MAAa,YAAY,EAAE;AAAA,YAEjE,UAAAN;AAAA,UAAA;AAAA,QAAA;AAAA,0BAEFY,GAAA,CAAA,CAAuB;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,GAE5B;AAEJ;AAEA,SAASC,GAAY,EAAE,WAAAnB,GAAW,GAAGJ,KAA2B;AAC9D,SACE,gBAAAC;AAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAWG,EAAGmB,GAAsBpB,CAAS;AAAA,MAC5C,GAAGJ;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASyB,GAAW,EAAE,WAAArB,GAAW,UAAAM,GAAU,GAAGV,KAA0B;AACtE,SACE,gBAAAW;AAAA,IAACT,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAWG,EAAGqB,GAAqBtB,CAAS;AAAA,MAC3C,GAAGJ;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAC,EAAC,UAAK,WAAW0B,GACf,4BAACzB,EAAgB,eAAhB,CAAA,CAED,GACF;AAAA,QACA,gBAAAD,EAACC,EAAgB,UAAhB,EAA0B,UAAAQ,EAAA,CAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG1C;AAEA,SAASkB,GAAgB,EAAE,WAAAxB,GAAW,GAAGJ,KAA+B;AACtE,SACE,gBAAAC;AAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAWG,EAAGwB,GAA0BzB,CAAS;AAAA,MAChD,GAAGJ;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASoB,EAAqB,EAAE,WAAAhB,GAAW,GAAGJ,KAAoC;AAChF,SACE,gBAAAC;AAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAWG,EAAGyB,GAA6B1B,CAAS;AAAA,MACnD,GAAGJ;AAAA,IAAA;AAAA,EAAA;AAKV;AAEA,SAASsB,EAAuB,EAAE,WAAAlB,GAAW,GAAGJ,KAAsC;AACpF,SACE,gBAAAC;AAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAWG,EAAGyB,GAA6B1B,CAAS;AAAA,MACnD,GAAGJ;AAAA,IAAA;AAAA,EAAA;AAKV;"}
|
|
@@ -4,12 +4,12 @@ data-placeholder:text-placeholder-text aria-invalid:border-error-text
|
|
|
4
4
|
aria-valid:border-success-text disabled:border-inp-disabled-border
|
|
5
5
|
disabled:bg-disabled-bg disabled:text-disabled-text
|
|
6
6
|
[&[data-disabled]_svg]:text-disabled-text relative flex w-full items-center
|
|
7
|
-
justify-between gap-2 rounded-xl border px-3 py-2.5 text-sm whitespace-nowrap
|
|
7
|
+
justify-between gap-2 rounded-xl border px-3 py-2.5 text-sm whitespace-nowrap cursor-pointer
|
|
8
8
|
transition-colors outline-none select-none focus-visible:ring-0
|
|
9
9
|
disabled:pointer-events-none data-[size=default]:h-10 data-[size=sm]:h-8
|
|
10
10
|
*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex
|
|
11
11
|
*:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5
|
|
12
|
-
[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,s="text-
|
|
12
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,s="text-secondary-text pointer-events-none size-5",a=`border-inp-focus-border bg-primary-bg text-primary-text
|
|
13
13
|
data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2
|
|
14
14
|
data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2
|
|
15
15
|
data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-select-select.styles.cjs","sources":["../src/components/ui/select/select.styles.ts"],"sourcesContent":["export const selectGroupClassName = \"flex flex-col gap-1\";\n\nexport const selectTriggerClassName = `border-inp-default-border bg-primary-bg text-primary-text\nhover:border-inp-hover-border focus-visible:border-inp-focus-border\ndata-placeholder:text-placeholder-text aria-invalid:border-error-text\naria-valid:border-success-text disabled:border-inp-disabled-border\ndisabled:bg-disabled-bg disabled:text-disabled-text\n[&[data-disabled]_svg]:text-disabled-text relative flex w-full items-center\njustify-between gap-2 rounded-xl border px-3 py-2.5 text-sm whitespace-nowrap\ntransition-colors outline-none select-none focus-visible:ring-0\ndisabled:pointer-events-none data-[size=default]:h-10 data-[size=sm]:h-8\n*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex\n*:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5\n[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`;\n\nexport const selectIconClassName = \"text-
|
|
1
|
+
{"version":3,"file":"components-ui-select-select.styles.cjs","sources":["../src/components/ui/select/select.styles.ts"],"sourcesContent":["export const selectGroupClassName = \"flex flex-col gap-1\";\n\nexport const selectTriggerClassName = `border-inp-default-border bg-primary-bg text-primary-text\nhover:border-inp-hover-border focus-visible:border-inp-focus-border\ndata-placeholder:text-placeholder-text aria-invalid:border-error-text\naria-valid:border-success-text disabled:border-inp-disabled-border\ndisabled:bg-disabled-bg disabled:text-disabled-text\n[&[data-disabled]_svg]:text-disabled-text relative flex w-full items-center\njustify-between gap-2 rounded-xl border px-3 py-2.5 text-sm whitespace-nowrap cursor-pointer\ntransition-colors outline-none select-none focus-visible:ring-0\ndisabled:pointer-events-none data-[size=default]:h-10 data-[size=sm]:h-8\n*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex\n*:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5\n[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`;\n\nexport const selectIconClassName = \"text-secondary-text pointer-events-none size-5\";\n\nexport const selectContentClassName = `border-inp-focus-border bg-primary-bg text-primary-text\ndata-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2\ndata-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\ndata-open:animate-in data-open:fade-in-0 data-open:zoom-in-95\ndata-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 relative\nz-50 max-h-63 w-(--radix-select-trigger-width)\nmin-w-(--radix-select-trigger-width)\norigin-(--radix-select-content-transform-origin) overflow-x-hidden\noverflow-y-auto rounded-xl border shadow-[0px_4px_12px_0px_rgba(0,0,0,0.1)]\nduration-100 data-[align-trigger=true]:animate-none`;\n\nexport const selectViewportClassName = `data-[position=popper]:h-(--radix-select-trigger-height)\ndata-[position=popper]:w-full\ndata-[position=popper]:min-w-(--radix-select-trigger-width)`;\n\nexport const selectLabelClassName = \"text-secondary-text px-4 py-2 text-xs\";\n\nexport const selectItemClassName = `text-primary-text data-highlighted:bg-primary-hover-bg\ndata-[state=checked]:bg-primary-hover-bg data-disabled:text-disabled-text relative\nflex w-full cursor-pointer items-center gap-2 px-4 py-2 pr-9 text-sm\noutline-none select-none data-disabled:pointer-events-none\n[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`;\n\nexport const selectItemIndicatorClassName = `pointer-events-none absolute right-3 flex size-4\nitems-center justify-center`;\n\nexport const selectSeparatorClassName =\n \"bg-delicate-border pointer-events-none my-1 h-px\";\n\nexport const selectScrollButtonClassName = `text-secondary-text bg-primary-bg z-10 flex\ncursor-default items-center justify-center py-1\n[&_svg:not([class*='size-'])]:size-4`;\n"],"names":["selectGroupClassName","selectTriggerClassName","selectIconClassName","selectContentClassName","selectViewportClassName","selectLabelClassName","selectItemClassName","selectItemIndicatorClassName","selectSeparatorClassName","selectScrollButtonClassName"],"mappings":"gFAAO,MAAMA,EAAuB,sBAEvBC,EAAyB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mFAazBC,EAAsB,iDAEtBC,EAAyB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qDAWzBC,EAA0B;AAAA;AAAA,6DAI1BC,EAAuB,wCAEvBC,EAAsB;AAAA;AAAA;AAAA;AAAA,mFAMtBC,EAA+B;AAAA,6BAG/BC,EACX,oDAEWC,EAA8B;AAAA;AAAA"}
|
|
@@ -4,12 +4,12 @@ data-placeholder:text-placeholder-text aria-invalid:border-error-text
|
|
|
4
4
|
aria-valid:border-success-text disabled:border-inp-disabled-border
|
|
5
5
|
disabled:bg-disabled-bg disabled:text-disabled-text
|
|
6
6
|
[&[data-disabled]_svg]:text-disabled-text relative flex w-full items-center
|
|
7
|
-
justify-between gap-2 rounded-xl border px-3 py-2.5 text-sm whitespace-nowrap
|
|
7
|
+
justify-between gap-2 rounded-xl border px-3 py-2.5 text-sm whitespace-nowrap cursor-pointer
|
|
8
8
|
transition-colors outline-none select-none focus-visible:ring-0
|
|
9
9
|
disabled:pointer-events-none data-[size=default]:h-10 data-[size=sm]:h-8
|
|
10
10
|
*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex
|
|
11
11
|
*:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5
|
|
12
|
-
[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`, a = "text-
|
|
12
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`, a = "text-secondary-text pointer-events-none size-5", s = `border-inp-focus-border bg-primary-bg text-primary-text
|
|
13
13
|
data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2
|
|
14
14
|
data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2
|
|
15
15
|
data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95
|
|
@@ -20,7 +20,7 @@ origin-(--radix-select-content-transform-origin) overflow-x-hidden
|
|
|
20
20
|
overflow-y-auto rounded-xl border shadow-[0px_4px_12px_0px_rgba(0,0,0,0.1)]
|
|
21
21
|
duration-100 data-[align-trigger=true]:animate-none`, r = `data-[position=popper]:h-(--radix-select-trigger-height)
|
|
22
22
|
data-[position=popper]:w-full
|
|
23
|
-
data-[position=popper]:min-w-(--radix-select-trigger-width)`,
|
|
23
|
+
data-[position=popper]:min-w-(--radix-select-trigger-width)`, o = "text-secondary-text px-4 py-2 text-xs", i = `text-primary-text data-highlighted:bg-primary-hover-bg
|
|
24
24
|
data-[state=checked]:bg-primary-hover-bg data-disabled:text-disabled-text relative
|
|
25
25
|
flex w-full cursor-pointer items-center gap-2 px-4 py-2 pr-9 text-sm
|
|
26
26
|
outline-none select-none data-disabled:pointer-events-none
|
|
@@ -32,9 +32,9 @@ export {
|
|
|
32
32
|
s as selectContentClassName,
|
|
33
33
|
e as selectGroupClassName,
|
|
34
34
|
a as selectIconClassName,
|
|
35
|
-
|
|
35
|
+
i as selectItemClassName,
|
|
36
36
|
n as selectItemIndicatorClassName,
|
|
37
|
-
|
|
37
|
+
o as selectLabelClassName,
|
|
38
38
|
l as selectScrollButtonClassName,
|
|
39
39
|
d as selectSeparatorClassName,
|
|
40
40
|
t as selectTriggerClassName,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-select-select.styles.js","sources":["../src/components/ui/select/select.styles.ts"],"sourcesContent":["export const selectGroupClassName = \"flex flex-col gap-1\";\n\nexport const selectTriggerClassName = `border-inp-default-border bg-primary-bg text-primary-text\nhover:border-inp-hover-border focus-visible:border-inp-focus-border\ndata-placeholder:text-placeholder-text aria-invalid:border-error-text\naria-valid:border-success-text disabled:border-inp-disabled-border\ndisabled:bg-disabled-bg disabled:text-disabled-text\n[&[data-disabled]_svg]:text-disabled-text relative flex w-full items-center\njustify-between gap-2 rounded-xl border px-3 py-2.5 text-sm whitespace-nowrap\ntransition-colors outline-none select-none focus-visible:ring-0\ndisabled:pointer-events-none data-[size=default]:h-10 data-[size=sm]:h-8\n*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex\n*:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5\n[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`;\n\nexport const selectIconClassName = \"text-
|
|
1
|
+
{"version":3,"file":"components-ui-select-select.styles.js","sources":["../src/components/ui/select/select.styles.ts"],"sourcesContent":["export const selectGroupClassName = \"flex flex-col gap-1\";\n\nexport const selectTriggerClassName = `border-inp-default-border bg-primary-bg text-primary-text\nhover:border-inp-hover-border focus-visible:border-inp-focus-border\ndata-placeholder:text-placeholder-text aria-invalid:border-error-text\naria-valid:border-success-text disabled:border-inp-disabled-border\ndisabled:bg-disabled-bg disabled:text-disabled-text\n[&[data-disabled]_svg]:text-disabled-text relative flex w-full items-center\njustify-between gap-2 rounded-xl border px-3 py-2.5 text-sm whitespace-nowrap cursor-pointer\ntransition-colors outline-none select-none focus-visible:ring-0\ndisabled:pointer-events-none data-[size=default]:h-10 data-[size=sm]:h-8\n*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex\n*:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5\n[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`;\n\nexport const selectIconClassName = \"text-secondary-text pointer-events-none size-5\";\n\nexport const selectContentClassName = `border-inp-focus-border bg-primary-bg text-primary-text\ndata-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2\ndata-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\ndata-open:animate-in data-open:fade-in-0 data-open:zoom-in-95\ndata-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 relative\nz-50 max-h-63 w-(--radix-select-trigger-width)\nmin-w-(--radix-select-trigger-width)\norigin-(--radix-select-content-transform-origin) overflow-x-hidden\noverflow-y-auto rounded-xl border shadow-[0px_4px_12px_0px_rgba(0,0,0,0.1)]\nduration-100 data-[align-trigger=true]:animate-none`;\n\nexport const selectViewportClassName = `data-[position=popper]:h-(--radix-select-trigger-height)\ndata-[position=popper]:w-full\ndata-[position=popper]:min-w-(--radix-select-trigger-width)`;\n\nexport const selectLabelClassName = \"text-secondary-text px-4 py-2 text-xs\";\n\nexport const selectItemClassName = `text-primary-text data-highlighted:bg-primary-hover-bg\ndata-[state=checked]:bg-primary-hover-bg data-disabled:text-disabled-text relative\nflex w-full cursor-pointer items-center gap-2 px-4 py-2 pr-9 text-sm\noutline-none select-none data-disabled:pointer-events-none\n[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`;\n\nexport const selectItemIndicatorClassName = `pointer-events-none absolute right-3 flex size-4\nitems-center justify-center`;\n\nexport const selectSeparatorClassName =\n \"bg-delicate-border pointer-events-none my-1 h-px\";\n\nexport const selectScrollButtonClassName = `text-secondary-text bg-primary-bg z-10 flex\ncursor-default items-center justify-center py-1\n[&_svg:not([class*='size-'])]:size-4`;\n"],"names":["selectGroupClassName","selectTriggerClassName","selectIconClassName","selectContentClassName","selectViewportClassName","selectLabelClassName","selectItemClassName","selectItemIndicatorClassName","selectSeparatorClassName","selectScrollButtonClassName"],"mappings":"AAAO,MAAMA,IAAuB,uBAEvBC,IAAyB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oFAazBC,IAAsB,kDAEtBC,IAAyB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sDAWzBC,IAA0B;AAAA;AAAA,8DAI1BC,IAAuB,yCAEvBC,IAAsB;AAAA;AAAA;AAAA;AAAA,oFAMtBC,IAA+B;AAAA,8BAG/BC,IACX,qDAEWC,IAA8B;AAAA;AAAA;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),c=require("@radix-ui/react-separator")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),c=require("@radix-ui/react-separator"),s=require("./lib-utils.cjs");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const a=u(c),i=({className:e,orientation:t="horizontal",decorative:r=!0,ref:o,...n})=>l.jsx(a.Root,{ref:o,decorative:r,orientation:t,className:s.cn("bg-delicate-border shrink-0",t==="horizontal"?"h-px w-full":"h-full w-px",e),...n});i.displayName=a.Root.displayName;exports.Separator=i;
|
|
2
2
|
//# sourceMappingURL=components-ui-separator-separator.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-separator-separator.cjs","sources":["../src/components/ui/separator/separator.tsx"],"sourcesContent":["import * as SeparatorPrimitive from \"@radix-ui/react-separator\";\nimport
|
|
1
|
+
{"version":3,"file":"components-ui-separator-separator.cjs","sources":["../src/components/ui/separator/separator.tsx"],"sourcesContent":["import * as SeparatorPrimitive from \"@radix-ui/react-separator\";\nimport type { ComponentPropsWithoutRef, ComponentRef, Ref } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\ntype SeparatorRef = ComponentRef<typeof SeparatorPrimitive.Root>;\ntype SeparatorProps = ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> & {\n ref?: Ref<SeparatorRef>;\n};\n\nconst Separator = ({\n className,\n orientation = \"horizontal\",\n decorative = true,\n ref,\n ...props\n}: SeparatorProps) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"bg-delicate-border shrink-0\",\n orientation === \"horizontal\" ? \"h-px w-full\" : \"h-full w-px\",\n className,\n )}\n {...props}\n />\n);\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n"],"names":["Separator","className","orientation","decorative","ref","props","jsx","SeparatorPrimitive","cn"],"mappings":"mdAUMA,EAAY,CAAC,CACjB,UAAAC,EACA,YAAAC,EAAc,aACd,WAAAC,EAAa,GACb,IAAAC,EACA,GAAGC,CACL,IACEC,EAAAA,IAACC,EAAmB,KAAnB,CACC,IAAAH,EACA,WAAAD,EACA,YAAAD,EACA,UAAWM,EAAAA,GACT,8BACAN,IAAgB,aAAe,cAAgB,cAC/CD,CAAA,EAED,GAAGI,CAAA,CACN,EAEFL,EAAU,YAAcO,EAAmB,KAAK"}
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "@radix-ui/react-separator";
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
const l = ({
|
|
3
|
+
import { cn as m } from "./lib-utils.js";
|
|
4
|
+
const p = ({
|
|
6
5
|
className: a,
|
|
7
6
|
orientation: o = "horizontal",
|
|
8
7
|
decorative: t = !0,
|
|
9
|
-
ref:
|
|
10
|
-
...
|
|
11
|
-
}) => /* @__PURE__ */
|
|
8
|
+
ref: e,
|
|
9
|
+
...i
|
|
10
|
+
}) => /* @__PURE__ */ l(
|
|
12
11
|
r.Root,
|
|
13
12
|
{
|
|
14
|
-
ref:
|
|
13
|
+
ref: e,
|
|
15
14
|
decorative: t,
|
|
16
15
|
orientation: o,
|
|
17
|
-
className:
|
|
16
|
+
className: m(
|
|
18
17
|
"bg-delicate-border shrink-0",
|
|
19
18
|
o === "horizontal" ? "h-px w-full" : "h-full w-px",
|
|
20
19
|
a
|
|
21
20
|
),
|
|
22
|
-
...
|
|
21
|
+
...i
|
|
23
22
|
}
|
|
24
23
|
);
|
|
25
|
-
|
|
24
|
+
p.displayName = r.Root.displayName;
|
|
26
25
|
export {
|
|
27
|
-
|
|
26
|
+
p as Separator
|
|
28
27
|
};
|
|
29
28
|
//# sourceMappingURL=components-ui-separator-separator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-separator-separator.js","sources":["../src/components/ui/separator/separator.tsx"],"sourcesContent":["import * as SeparatorPrimitive from \"@radix-ui/react-separator\";\nimport
|
|
1
|
+
{"version":3,"file":"components-ui-separator-separator.js","sources":["../src/components/ui/separator/separator.tsx"],"sourcesContent":["import * as SeparatorPrimitive from \"@radix-ui/react-separator\";\nimport type { ComponentPropsWithoutRef, ComponentRef, Ref } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\ntype SeparatorRef = ComponentRef<typeof SeparatorPrimitive.Root>;\ntype SeparatorProps = ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> & {\n ref?: Ref<SeparatorRef>;\n};\n\nconst Separator = ({\n className,\n orientation = \"horizontal\",\n decorative = true,\n ref,\n ...props\n}: SeparatorProps) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"bg-delicate-border shrink-0\",\n orientation === \"horizontal\" ? \"h-px w-full\" : \"h-full w-px\",\n className,\n )}\n {...props}\n />\n);\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n"],"names":["Separator","className","orientation","decorative","ref","props","jsx","SeparatorPrimitive","cn"],"mappings":";;;AAUA,MAAMA,IAAY,CAAC;AAAA,EACjB,WAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,YAAAC,IAAa;AAAA,EACb,KAAAC;AAAA,EACA,GAAGC;AACL,MACE,gBAAAC;AAAA,EAACC,EAAmB;AAAA,EAAnB;AAAA,IACC,KAAAH;AAAA,IACA,YAAAD;AAAA,IACA,aAAAD;AAAA,IACA,WAAWM;AAAA,MACT;AAAA,MACAN,MAAgB,eAAe,gBAAgB;AAAA,MAC/CD;AAAA,IAAA;AAAA,IAED,GAAGI;AAAA,EAAA;AACN;AAEFL,EAAU,cAAcO,EAAmB,KAAK;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-sonner-sonner.styles.cjs","sources":["../src/components/ui/sonner/sonner.styles.ts"],"sourcesContent":["export const toasterClassName = `\n toaster group\n
|
|
1
|
+
{"version":3,"file":"components-ui-sonner-sonner.styles.cjs","sources":["../src/components/ui/sonner/sonner.styles.ts"],"sourcesContent":["export const toasterClassName = `\n toaster group\n`;\n\nexport const toastBaseClassNames = `\n z-50 flex w-full items-center gap-3 border border-delicate-border bg-primary-bg p-4 rounded-xl\n text-sm text-popover-foreground shadow-[0px_4px_18px_0px_rgba(0,0,0,0.15)]\n [&_[data-icon]]:flex [&_[data-icon]]:size-4 [&_[data-icon]]:shrink-0\n [&_[data-icon]]:items-center [&_[data-icon]]:justify-center\n\n data-[type=success]:border-green-500\n data-[type=success]:bg-green-50\n data-[type=success]:text-green-700\n data-[type=success]:[&_[data-description]]:text-green-700\n\n data-[type=error]:border-red-500\n data-[type=error]:bg-red-50\n data-[type=error]:text-red-700\n data-[type=error]:[&_[data-description]]:text-red-700\n\n data-[type=warning]:border-yellow-500\n data-[type=warning]:bg-orange-50\n data-[type=warning]:text-yellow-700\n data-[type=warning]:[&_[data-description]]:text-yellow-700\n\n data-[type=info]:border-blue-500\n data-[type=info]:bg-blue-50\n data-[type=info]:text-blue-700\n data-[type=info]:[&_[data-description]]:text-blue-700\n`;\n\nexport const toastLoadingClassNames = `\n [&_[data-icon]]:order-first\n`;\n\nexport const toastLoaderClassNames = `\n [&.sonner-loader]:!top-auto\n [&.sonner-loader]:!left-auto\n [&.sonner-loader]:!transform-none\n [&.sonner-loader]:!shrink-0\n`;\n"],"names":["toasterClassName","toastBaseClassNames","toastLoadingClassNames","toastLoaderClassNames"],"mappings":"gFAAO,MAAMA,EAAmB;AAAA;AAAA,EAInBC,EAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA2BtBC,EAAyB;AAAA;AAAA,EAIzBC,EAAwB;AAAA;AAAA;AAAA;AAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-sonner-sonner.styles.js","sources":["../src/components/ui/sonner/sonner.styles.ts"],"sourcesContent":["export const toasterClassName = `\n toaster group\n
|
|
1
|
+
{"version":3,"file":"components-ui-sonner-sonner.styles.js","sources":["../src/components/ui/sonner/sonner.styles.ts"],"sourcesContent":["export const toasterClassName = `\n toaster group\n`;\n\nexport const toastBaseClassNames = `\n z-50 flex w-full items-center gap-3 border border-delicate-border bg-primary-bg p-4 rounded-xl\n text-sm text-popover-foreground shadow-[0px_4px_18px_0px_rgba(0,0,0,0.15)]\n [&_[data-icon]]:flex [&_[data-icon]]:size-4 [&_[data-icon]]:shrink-0\n [&_[data-icon]]:items-center [&_[data-icon]]:justify-center\n\n data-[type=success]:border-green-500\n data-[type=success]:bg-green-50\n data-[type=success]:text-green-700\n data-[type=success]:[&_[data-description]]:text-green-700\n\n data-[type=error]:border-red-500\n data-[type=error]:bg-red-50\n data-[type=error]:text-red-700\n data-[type=error]:[&_[data-description]]:text-red-700\n\n data-[type=warning]:border-yellow-500\n data-[type=warning]:bg-orange-50\n data-[type=warning]:text-yellow-700\n data-[type=warning]:[&_[data-description]]:text-yellow-700\n\n data-[type=info]:border-blue-500\n data-[type=info]:bg-blue-50\n data-[type=info]:text-blue-700\n data-[type=info]:[&_[data-description]]:text-blue-700\n`;\n\nexport const toastLoadingClassNames = `\n [&_[data-icon]]:order-first\n`;\n\nexport const toastLoaderClassNames = `\n [&.sonner-loader]:!top-auto\n [&.sonner-loader]:!left-auto\n [&.sonner-loader]:!transform-none\n [&.sonner-loader]:!shrink-0\n`;\n"],"names":["toasterClassName","toastBaseClassNames","toastLoadingClassNames","toastLoaderClassNames"],"mappings":"AAAO,MAAMA,IAAmB;AAAA;AAAA,GAInBC,IAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GA2BtBC,IAAyB;AAAA;AAAA,GAIzBC,IAAwB;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),l=require("@radix-ui/react-switch"),r=require("./lib-utils.cjs"),n=require("./components-ui-switch-switch.styles.cjs");function u(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const i=u(l),a=({className:e,ref:s,...t})=>o.jsx(i.Root,{className:r.cn(n.switchRootClassNames,e),...t,ref:s,children:o.jsx(i.Thumb,{className:r.cn(n.switchThumbClassNames)})});a.displayName=i.Root.displayName;exports.Switch=a;
|
|
2
2
|
//# sourceMappingURL=components-ui-switch-switch.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-switch-switch.cjs","sources":["../src/components/ui/switch/switch.tsx"],"sourcesContent":["import * as SwitchPrimitives from \"@radix-ui/react-switch\";\nimport
|
|
1
|
+
{"version":3,"file":"components-ui-switch-switch.cjs","sources":["../src/components/ui/switch/switch.tsx"],"sourcesContent":["import * as SwitchPrimitives from \"@radix-ui/react-switch\";\nimport type { ComponentPropsWithoutRef, ComponentRef, Ref } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\nimport { switchRootClassNames, switchThumbClassNames } from \"./switch.styles\";\n\ntype SwitchRef = ComponentRef<typeof SwitchPrimitives.Root>;\ntype SwitchProps = ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> & {\n ref?: Ref<SwitchRef>;\n};\n\nconst Switch = ({ className, ref, ...props }: SwitchProps) => (\n <SwitchPrimitives.Root\n className={cn(switchRootClassNames, className)}\n {...props}\n ref={ref}\n >\n <SwitchPrimitives.Thumb className={cn(switchThumbClassNames)} />\n </SwitchPrimitives.Root>\n);\n\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\nexport { Switch };\n"],"names":["Switch","className","ref","props","jsx","SwitchPrimitives","cn","switchRootClassNames","switchThumbClassNames"],"mappings":"sgBAWMA,EAAS,CAAC,CAAE,UAAAC,EAAW,IAAAC,EAAK,GAAGC,KACnCC,EAAAA,IAACC,EAAiB,KAAjB,CACC,UAAWC,EAAAA,GAAGC,EAAAA,qBAAsBN,CAAS,EAC5C,GAAGE,EACJ,IAAAD,EAEA,eAACG,EAAiB,MAAjB,CAAuB,UAAWC,EAAAA,GAAGE,EAAAA,qBAAqB,CAAA,CAAG,CAAA,CAChE,EAGFR,EAAO,YAAcK,EAAiB,KAAK"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import "react";
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "@radix-ui/react-switch";
|
|
4
3
|
import { cn as o } from "./lib-utils.js";
|
|
5
4
|
import { switchThumbClassNames as r, switchRootClassNames as c } from "./components-ui-switch-switch.styles.js";
|
|
6
|
-
const e = ({ className: i, ref: t, ...a }) => /* @__PURE__ */
|
|
7
|
-
|
|
5
|
+
const e = ({ className: i, ref: t, ...a }) => /* @__PURE__ */ m(
|
|
6
|
+
s.Root,
|
|
8
7
|
{
|
|
9
8
|
className: o(c, i),
|
|
10
9
|
...a,
|
|
11
10
|
ref: t,
|
|
12
|
-
children: /* @__PURE__ */ s
|
|
11
|
+
children: /* @__PURE__ */ m(s.Thumb, { className: o(r) })
|
|
13
12
|
}
|
|
14
13
|
);
|
|
15
|
-
e.displayName =
|
|
14
|
+
e.displayName = s.Root.displayName;
|
|
16
15
|
export {
|
|
17
16
|
e as Switch
|
|
18
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-switch-switch.js","sources":["../src/components/ui/switch/switch.tsx"],"sourcesContent":["import * as SwitchPrimitives from \"@radix-ui/react-switch\";\nimport
|
|
1
|
+
{"version":3,"file":"components-ui-switch-switch.js","sources":["../src/components/ui/switch/switch.tsx"],"sourcesContent":["import * as SwitchPrimitives from \"@radix-ui/react-switch\";\nimport type { ComponentPropsWithoutRef, ComponentRef, Ref } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\nimport { switchRootClassNames, switchThumbClassNames } from \"./switch.styles\";\n\ntype SwitchRef = ComponentRef<typeof SwitchPrimitives.Root>;\ntype SwitchProps = ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> & {\n ref?: Ref<SwitchRef>;\n};\n\nconst Switch = ({ className, ref, ...props }: SwitchProps) => (\n <SwitchPrimitives.Root\n className={cn(switchRootClassNames, className)}\n {...props}\n ref={ref}\n >\n <SwitchPrimitives.Thumb className={cn(switchThumbClassNames)} />\n </SwitchPrimitives.Root>\n);\n\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\nexport { Switch };\n"],"names":["Switch","className","ref","props","jsx","SwitchPrimitives","cn","switchRootClassNames","switchThumbClassNames"],"mappings":";;;;AAWA,MAAMA,IAAS,CAAC,EAAE,WAAAC,GAAW,KAAAC,GAAK,GAAGC,QACnC,gBAAAC;AAAA,EAACC,EAAiB;AAAA,EAAjB;AAAA,IACC,WAAWC,EAAGC,GAAsBN,CAAS;AAAA,IAC5C,GAAGE;AAAA,IACJ,KAAAD;AAAA,IAEA,4BAACG,EAAiB,OAAjB,EAAuB,WAAWC,EAAGE,CAAqB,EAAA,CAAG;AAAA,EAAA;AAChE;AAGFR,EAAO,cAAcK,EAAiB,KAAK;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),o=require("./lib-utils.cjs"),s=({ref:a,className:t,...e})=>l.jsx("div",{className:"relative w-full overflow-auto",children:l.jsx("table",{ref:a,className:o.cn("w-full caption-bottom text-sm",t),...e})});s.displayName="Table";const r=({ref:a,className:t,...e})=>l.jsx("thead",{ref:a,className:o.cn("text-primary-text [&_tr]:border-b",t),...e});r.displayName="TableHeader";const d=({ref:a,className:t,...e})=>l.jsx("tbody",{ref:a,className:o.cn(t),...e});d.displayName="TableBody";const b=({ref:a,className:t,...e})=>l.jsx("tfoot",{ref:a,className:o.cn("bg-muted/50 border-t font-medium",t),...e});b.displayName="TableFooter";const c=({ref:a,className:t,clickable:e=!1,onClick:T,...x})=>l.jsx("tr",{ref:a,className:o.cn(`hover:bg-muted/50 data-[state=selected]:bg-muted border-delicate-border border-b
|
|
2
2
|
transition-colors`,e&&"cursor-pointer",t),onClick:e?T:void 0,...x});c.displayName="TableRow";const n=({ref:a,className:t,...e})=>l.jsx("th",{ref:a,className:o.cn(`text-muted-foreground h-10 px-6.25 text-left align-middle font-medium
|
|
3
3
|
[&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-0.5`,t),...e});n.displayName="TableHead";const i=({ref:a,className:t,...e})=>l.jsx("td",{ref:a,className:o.cn(`px-6.25 pt-6 pb-3.5 align-middle [&:has([role=checkbox])]:pr-0
|
|
4
4
|
*:[[role=checkbox]]:translate-y-0.5`,t),...e});i.displayName="TableCell";const m=({ref:a,className:t,...e})=>l.jsx("caption",{ref:a,className:o.cn("text-muted-foreground mt-4 text-sm",t),...e});m.displayName="TableCaption";exports.Table=s;exports.TableBody=d;exports.TableCaption=m;exports.TableCell=i;exports.TableFooter=b;exports.TableHead=n;exports.TableHeader=r;exports.TableRow=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-table-table.cjs","sources":["../src/components/ui/table/table.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"components-ui-table-table.cjs","sources":["../src/components/ui/table/table.tsx"],"sourcesContent":["import type {\n HTMLAttributes,\n RefObject,\n TdHTMLAttributes,\n ThHTMLAttributes,\n} from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst Table = ({\n ref,\n className,\n ...props\n}: HTMLAttributes<HTMLTableElement> & {\n ref?: RefObject<HTMLTableElement | null>;\n}) => (\n <div className=\"relative w-full overflow-auto\">\n <table\n ref={ref}\n className={cn(\"w-full caption-bottom text-sm\", className)}\n {...props}\n />\n </div>\n);\nTable.displayName = \"Table\";\n\nconst TableHeader = ({\n ref,\n className,\n ...props\n}: HTMLAttributes<HTMLTableSectionElement> & {\n ref?: RefObject<HTMLTableSectionElement | null>;\n}) => (\n <thead\n ref={ref}\n className={cn(\"text-primary-text [&_tr]:border-b\", className)}\n {...props}\n />\n);\nTableHeader.displayName = \"TableHeader\";\n\nconst TableBody = ({\n ref,\n className,\n ...props\n}: HTMLAttributes<HTMLTableSectionElement> & {\n ref?: RefObject<HTMLTableSectionElement | null>;\n}) => (\n <tbody\n ref={ref}\n className={cn(className)}\n {...props}\n />\n);\nTableBody.displayName = \"TableBody\";\n\nconst TableFooter = ({\n ref,\n className,\n ...props\n}: HTMLAttributes<HTMLTableSectionElement> & {\n ref?: RefObject<HTMLTableSectionElement | null>;\n}) => (\n <tfoot\n ref={ref}\n className={cn(\"bg-muted/50 border-t font-medium\", className)}\n {...props}\n />\n);\nTableFooter.displayName = \"TableFooter\";\n\nconst TableRow = ({\n ref,\n className,\n clickable = false,\n onClick,\n ...props\n}: HTMLAttributes<HTMLTableRowElement> & {\n ref?: RefObject<HTMLTableRowElement | null>;\n clickable?: boolean;\n}) => (\n <tr\n ref={ref}\n className={cn(\n `hover:bg-muted/50 data-[state=selected]:bg-muted border-delicate-border border-b\n transition-colors`,\n clickable && \"cursor-pointer\",\n className,\n )}\n onClick={clickable ? onClick : undefined}\n {...props}\n />\n);\nTableRow.displayName = \"TableRow\";\n\nconst TableHead = ({\n ref,\n className,\n ...props\n}: ThHTMLAttributes<HTMLTableCellElement> & {\n ref?: RefObject<HTMLTableCellElement | null>;\n}) => (\n <th\n ref={ref}\n className={cn(\n `text-muted-foreground h-10 px-6.25 text-left align-middle font-medium\n [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-0.5`,\n className,\n )}\n {...props}\n />\n);\nTableHead.displayName = \"TableHead\";\n\nconst TableCell = ({\n ref,\n className,\n ...props\n}: TdHTMLAttributes<HTMLTableCellElement> & {\n ref?: RefObject<HTMLTableCellElement | null>;\n}) => (\n <td\n ref={ref}\n className={cn(\n `px-6.25 pt-6 pb-3.5 align-middle [&:has([role=checkbox])]:pr-0\n *:[[role=checkbox]]:translate-y-0.5`,\n className,\n )}\n {...props}\n />\n);\nTableCell.displayName = \"TableCell\";\n\nconst TableCaption = ({\n ref,\n className,\n ...props\n}: HTMLAttributes<HTMLTableCaptionElement> & {\n ref?: RefObject<HTMLTableCaptionElement | null>;\n}) => (\n <caption\n ref={ref}\n className={cn(\"text-muted-foreground mt-4 text-sm\", className)}\n {...props}\n />\n);\nTableCaption.displayName = \"TableCaption\";\n\nexport {\n Table,\n TableBody,\n TableCaption,\n TableCell,\n TableFooter,\n TableHead,\n TableHeader,\n TableRow,\n};\n"],"names":["Table","ref","className","props","jsx","cn","TableHeader","TableBody","TableFooter","TableRow","clickable","onClick","TableHead","TableCell","TableCaption"],"mappings":"kJASMA,EAAQ,CAAC,CACb,IAAAC,EACA,UAAAC,EACA,GAAGC,CACL,IAGEC,EAAAA,IAAC,MAAA,CAAI,UAAU,gCACb,SAAAA,EAAAA,IAAC,QAAA,CACC,IAAAH,EACA,UAAWI,EAAAA,GAAG,gCAAiCH,CAAS,EACvD,GAAGC,CAAA,CACN,CAAA,CACF,EAEFH,EAAM,YAAc,QAEpB,MAAMM,EAAc,CAAC,CACnB,IAAAL,EACA,UAAAC,EACA,GAAGC,CACL,IAGEC,EAAAA,IAAC,QAAA,CACC,IAAAH,EACA,UAAWI,EAAAA,GAAG,oCAAqCH,CAAS,EAC3D,GAAGC,CAAA,CACN,EAEFG,EAAY,YAAc,cAE1B,MAAMC,EAAY,CAAC,CACjB,IAAAN,EACA,UAAAC,EACA,GAAGC,CACL,IAGEC,EAAAA,IAAC,QAAA,CACC,IAAAH,EACA,UAAWI,EAAAA,GAAGH,CAAS,EACtB,GAAGC,CAAA,CACN,EAEFI,EAAU,YAAc,YAExB,MAAMC,EAAc,CAAC,CACnB,IAAAP,EACA,UAAAC,EACA,GAAGC,CACL,IAGEC,EAAAA,IAAC,QAAA,CACC,IAAAH,EACA,UAAWI,EAAAA,GAAG,mCAAoCH,CAAS,EAC1D,GAAGC,CAAA,CACN,EAEFK,EAAY,YAAc,cAE1B,MAAMC,EAAW,CAAC,CAChB,IAAAR,EACA,UAAAC,EACA,UAAAQ,EAAY,GACZ,QAAAC,EACA,GAAGR,CACL,IAIEC,EAAAA,IAAC,KAAA,CACC,IAAAH,EACA,UAAWI,EAAAA,GACT;AAAA,yBAEAK,GAAa,iBACbR,CAAA,EAEF,QAASQ,EAAYC,EAAU,OAC9B,GAAGR,CAAA,CACN,EAEFM,EAAS,YAAc,WAEvB,MAAMG,EAAY,CAAC,CACjB,IAAAX,EACA,UAAAC,EACA,GAAGC,CACL,IAGEC,EAAAA,IAAC,KAAA,CACC,IAAAH,EACA,UAAWI,EAAAA,GACT;AAAA,yEAEAH,CAAA,EAED,GAAGC,CAAA,CACN,EAEFS,EAAU,YAAc,YAExB,MAAMC,EAAY,CAAC,CACjB,IAAAZ,EACA,UAAAC,EACA,GAAGC,CACL,IAGEC,EAAAA,IAAC,KAAA,CACC,IAAAH,EACA,UAAWI,EAAAA,GACT;AAAA,2CAEAH,CAAA,EAED,GAAGC,CAAA,CACN,EAEFU,EAAU,YAAc,YAExB,MAAMC,EAAe,CAAC,CACpB,IAAAb,EACA,UAAAC,EACA,GAAGC,CACL,IAGEC,EAAAA,IAAC,UAAA,CACC,IAAAH,EACA,UAAWI,EAAAA,GAAG,qCAAsCH,CAAS,EAC5D,GAAGC,CAAA,CACN,EAEFW,EAAa,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-table-table.js","sources":["../src/components/ui/table/table.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"components-ui-table-table.js","sources":["../src/components/ui/table/table.tsx"],"sourcesContent":["import type {\n HTMLAttributes,\n RefObject,\n TdHTMLAttributes,\n ThHTMLAttributes,\n} from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst Table = ({\n ref,\n className,\n ...props\n}: HTMLAttributes<HTMLTableElement> & {\n ref?: RefObject<HTMLTableElement | null>;\n}) => (\n <div className=\"relative w-full overflow-auto\">\n <table\n ref={ref}\n className={cn(\"w-full caption-bottom text-sm\", className)}\n {...props}\n />\n </div>\n);\nTable.displayName = \"Table\";\n\nconst TableHeader = ({\n ref,\n className,\n ...props\n}: HTMLAttributes<HTMLTableSectionElement> & {\n ref?: RefObject<HTMLTableSectionElement | null>;\n}) => (\n <thead\n ref={ref}\n className={cn(\"text-primary-text [&_tr]:border-b\", className)}\n {...props}\n />\n);\nTableHeader.displayName = \"TableHeader\";\n\nconst TableBody = ({\n ref,\n className,\n ...props\n}: HTMLAttributes<HTMLTableSectionElement> & {\n ref?: RefObject<HTMLTableSectionElement | null>;\n}) => (\n <tbody\n ref={ref}\n className={cn(className)}\n {...props}\n />\n);\nTableBody.displayName = \"TableBody\";\n\nconst TableFooter = ({\n ref,\n className,\n ...props\n}: HTMLAttributes<HTMLTableSectionElement> & {\n ref?: RefObject<HTMLTableSectionElement | null>;\n}) => (\n <tfoot\n ref={ref}\n className={cn(\"bg-muted/50 border-t font-medium\", className)}\n {...props}\n />\n);\nTableFooter.displayName = \"TableFooter\";\n\nconst TableRow = ({\n ref,\n className,\n clickable = false,\n onClick,\n ...props\n}: HTMLAttributes<HTMLTableRowElement> & {\n ref?: RefObject<HTMLTableRowElement | null>;\n clickable?: boolean;\n}) => (\n <tr\n ref={ref}\n className={cn(\n `hover:bg-muted/50 data-[state=selected]:bg-muted border-delicate-border border-b\n transition-colors`,\n clickable && \"cursor-pointer\",\n className,\n )}\n onClick={clickable ? onClick : undefined}\n {...props}\n />\n);\nTableRow.displayName = \"TableRow\";\n\nconst TableHead = ({\n ref,\n className,\n ...props\n}: ThHTMLAttributes<HTMLTableCellElement> & {\n ref?: RefObject<HTMLTableCellElement | null>;\n}) => (\n <th\n ref={ref}\n className={cn(\n `text-muted-foreground h-10 px-6.25 text-left align-middle font-medium\n [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-0.5`,\n className,\n )}\n {...props}\n />\n);\nTableHead.displayName = \"TableHead\";\n\nconst TableCell = ({\n ref,\n className,\n ...props\n}: TdHTMLAttributes<HTMLTableCellElement> & {\n ref?: RefObject<HTMLTableCellElement | null>;\n}) => (\n <td\n ref={ref}\n className={cn(\n `px-6.25 pt-6 pb-3.5 align-middle [&:has([role=checkbox])]:pr-0\n *:[[role=checkbox]]:translate-y-0.5`,\n className,\n )}\n {...props}\n />\n);\nTableCell.displayName = \"TableCell\";\n\nconst TableCaption = ({\n ref,\n className,\n ...props\n}: HTMLAttributes<HTMLTableCaptionElement> & {\n ref?: RefObject<HTMLTableCaptionElement | null>;\n}) => (\n <caption\n ref={ref}\n className={cn(\"text-muted-foreground mt-4 text-sm\", className)}\n {...props}\n />\n);\nTableCaption.displayName = \"TableCaption\";\n\nexport {\n Table,\n TableBody,\n TableCaption,\n TableCell,\n TableFooter,\n TableHead,\n TableHeader,\n TableRow,\n};\n"],"names":["Table","ref","className","props","jsx","cn","TableHeader","TableBody","TableFooter","TableRow","clickable","onClick","TableHead","TableCell","TableCaption"],"mappings":";;AASA,MAAMA,IAAQ,CAAC;AAAA,EACb,KAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,MAGE,gBAAAC,EAAC,OAAA,EAAI,WAAU,iCACb,UAAA,gBAAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAH;AAAA,IACA,WAAWI,EAAG,iCAAiCH,CAAS;AAAA,IACvD,GAAGC;AAAA,EAAA;AACN,EAAA,CACF;AAEFH,EAAM,cAAc;AAEpB,MAAMM,IAAc,CAAC;AAAA,EACnB,KAAAL;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,MAGE,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAH;AAAA,IACA,WAAWI,EAAG,qCAAqCH,CAAS;AAAA,IAC3D,GAAGC;AAAA,EAAA;AACN;AAEFG,EAAY,cAAc;AAE1B,MAAMC,IAAY,CAAC;AAAA,EACjB,KAAAN;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,MAGE,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAH;AAAA,IACA,WAAWI,EAAGH,CAAS;AAAA,IACtB,GAAGC;AAAA,EAAA;AACN;AAEFI,EAAU,cAAc;AAExB,MAAMC,IAAc,CAAC;AAAA,EACnB,KAAAP;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,MAGE,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAH;AAAA,IACA,WAAWI,EAAG,oCAAoCH,CAAS;AAAA,IAC1D,GAAGC;AAAA,EAAA;AACN;AAEFK,EAAY,cAAc;AAE1B,MAAMC,IAAW,CAAC;AAAA,EAChB,KAAAR;AAAA,EACA,WAAAC;AAAA,EACA,WAAAQ,IAAY;AAAA,EACZ,SAAAC;AAAA,EACA,GAAGR;AACL,MAIE,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAH;AAAA,IACA,WAAWI;AAAA,MACT;AAAA;AAAA,MAEAK,KAAa;AAAA,MACbR;AAAA,IAAA;AAAA,IAEF,SAASQ,IAAYC,IAAU;AAAA,IAC9B,GAAGR;AAAA,EAAA;AACN;AAEFM,EAAS,cAAc;AAEvB,MAAMG,IAAY,CAAC;AAAA,EACjB,KAAAX;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,MAGE,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAH;AAAA,IACA,WAAWI;AAAA,MACT;AAAA;AAAA,MAEAH;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN;AAEFS,EAAU,cAAc;AAExB,MAAMC,IAAY,CAAC;AAAA,EACjB,KAAAZ;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,MAGE,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAH;AAAA,IACA,WAAWI;AAAA,MACT;AAAA;AAAA,MAEAH;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN;AAEFU,EAAU,cAAc;AAExB,MAAMC,IAAe,CAAC;AAAA,EACpB,KAAAb;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,MAGE,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAH;AAAA,IACA,WAAWI,EAAG,sCAAsCH,CAAS;AAAA,IAC5D,GAAGC;AAAA,EAAA;AACN;AAEFW,EAAa,cAAc;"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
focus-visible:ring-offset-2 focus-visible:outline-none`,"data-[orientation=vertical]:flex-1",s),...t});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),T=require("@radix-ui/react-tabs");require("class-variance-authority");const o=require("react"),r=require("./lib-utils.cjs"),c=require("./components-ui-tabs-tabs.styles.cjs");function d(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const a=d(T),l=o.createContext("default"),p=a.Root,u=({ref:e,className:s,variant:t="default",...i})=>n.jsx(l,{value:t,children:n.jsx(a.List,{ref:e,className:r.cn(c.tabsListVariants({variant:t}),s),...i})});u.displayName=a.List.displayName;const b=({ref:e,className:s,variant:t,...i})=>{const f=o.use(l),m=t??f;return n.jsx(a.Trigger,{ref:e,className:r.cn(c.tabsTriggerVariants({variant:m}),s),...i})};b.displayName=a.Trigger.displayName;const g=({ref:e,className:s,...t})=>n.jsx(a.Content,{ref:e,className:r.cn(`text-primary-text focus-visible:ring-ring focus-visible:ring-2
|
|
2
|
+
focus-visible:ring-offset-2 focus-visible:outline-none`,"data-[orientation=vertical]:flex-1",s),...t});g.displayName=a.Content.displayName;exports.Tabs=p;exports.TabsContent=g;exports.TabsList=u;exports.TabsTrigger=b;
|
|
3
3
|
//# sourceMappingURL=components-ui-tabs-tabs.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-tabs-tabs.cjs","sources":["../src/components/ui/tabs/tabs.tsx"],"sourcesContent":["import * as TabsPrimitive from \"@radix-ui/react-tabs\";\nimport { type VariantProps } from \"class-variance-authority\";\nimport
|
|
1
|
+
{"version":3,"file":"components-ui-tabs-tabs.cjs","sources":["../src/components/ui/tabs/tabs.tsx"],"sourcesContent":["import * as TabsPrimitive from \"@radix-ui/react-tabs\";\nimport { type VariantProps } from \"class-variance-authority\";\nimport { createContext, use } from \"react\";\nimport type { ComponentPropsWithoutRef, ComponentRef, RefObject } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\nimport { tabsListVariants, tabsTriggerVariants } from \"./tabs.styles\";\n\ntype TabsVariant = NonNullable<VariantProps<typeof tabsListVariants>[\"variant\"]>;\n\nconst TabsVariantContext = createContext<TabsVariant>(\"default\");\n\nconst Tabs = TabsPrimitive.Root;\n\ntype TabsListProps = ComponentPropsWithoutRef<typeof TabsPrimitive.List> &\n VariantProps<typeof tabsListVariants>;\n\nconst TabsList = ({\n ref,\n className,\n variant = \"default\",\n ...props\n}: TabsListProps & {\n ref?: RefObject<ComponentRef<typeof TabsPrimitive.List> | null>;\n}) => {\n return (\n <TabsVariantContext value={variant as TabsVariant}>\n <TabsPrimitive.List\n ref={ref}\n className={cn(tabsListVariants({ variant }), className)}\n {...props}\n />\n </TabsVariantContext>\n );\n};\nTabsList.displayName = TabsPrimitive.List.displayName;\n\ntype TabsTriggerProps = ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> &\n VariantProps<typeof tabsTriggerVariants>;\n\nconst TabsTrigger = ({\n ref,\n className,\n variant: variantProp,\n ...props\n}: TabsTriggerProps & {\n ref?: RefObject<ComponentRef<typeof TabsPrimitive.Trigger> | null>;\n}) => {\n const contextVariant = use(TabsVariantContext);\n const variant = variantProp ?? contextVariant;\n\n return (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(tabsTriggerVariants({ variant }), className)}\n {...props}\n />\n );\n};\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\nconst TabsContent = ({\n ref,\n className,\n ...props\n}: ComponentPropsWithoutRef<typeof TabsPrimitive.Content> & {\n ref?: RefObject<ComponentRef<typeof TabsPrimitive.Content> | null>;\n}) => {\n return (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\n `text-primary-text focus-visible:ring-ring focus-visible:ring-2\n focus-visible:ring-offset-2 focus-visible:outline-none`,\n \"data-[orientation=vertical]:flex-1\",\n className,\n )}\n {...props}\n />\n );\n};\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n\nexport {\n Tabs,\n TabsContent,\n TabsList,\n TabsTrigger,\n type TabsListProps,\n type TabsTriggerProps,\n};\n"],"names":["TabsVariantContext","createContext","Tabs","TabsPrimitive","TabsList","ref","className","variant","props","jsx","cn","tabsListVariants","TabsTrigger","variantProp","contextVariant","use","tabsTriggerVariants","TabsContent"],"mappings":"6jBAUMA,EAAqBC,EAAAA,cAA2B,SAAS,EAEzDC,EAAOC,EAAc,KAKrBC,EAAW,CAAC,CAChB,IAAAC,EACA,UAAAC,EACA,QAAAC,EAAU,UACV,GAAGC,CACL,IAIIC,EAAAA,IAACT,EAAA,CAAmB,MAAOO,EACzB,SAAAE,EAAAA,IAACN,EAAc,KAAd,CACC,IAAAE,EACA,UAAWK,EAAAA,GAAGC,EAAAA,iBAAiB,CAAE,QAAAJ,CAAA,CAAS,EAAGD,CAAS,EACrD,GAAGE,CAAA,CAAA,EAER,EAGJJ,EAAS,YAAcD,EAAc,KAAK,YAK1C,MAAMS,EAAc,CAAC,CACnB,IAAAP,EACA,UAAAC,EACA,QAASO,EACT,GAAGL,CACL,IAEM,CACJ,MAAMM,EAAiBC,EAAAA,IAAIf,CAAkB,EACvCO,EAAUM,GAAeC,EAE/B,OACEL,EAAAA,IAACN,EAAc,QAAd,CACC,IAAAE,EACA,UAAWK,EAAAA,GAAGM,EAAAA,oBAAoB,CAAE,QAAAT,CAAA,CAAS,EAAGD,CAAS,EACxD,GAAGE,CAAA,CAAA,CAGV,EACAI,EAAY,YAAcT,EAAc,QAAQ,YAEhD,MAAMc,EAAc,CAAC,CACnB,IAAAZ,EACA,UAAAC,EACA,GAAGE,CACL,IAIIC,EAAAA,IAACN,EAAc,QAAd,CACC,IAAAE,EACA,UAAWK,EAAAA,GACT;AAAA,gEAEA,qCACAJ,CAAA,EAED,GAAGE,CAAA,CAAA,EAIVS,EAAY,YAAcd,EAAc,QAAQ"}
|