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
|
@@ -6,7 +6,7 @@ type Props = {
|
|
|
6
6
|
chartContainer?: React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
7
7
|
config: ChartConfig;
|
|
8
8
|
};
|
|
9
|
-
barChart?: CartesianChartProps<
|
|
9
|
+
barChart?: CartesianChartProps<Record<string, unknown>> & {
|
|
10
10
|
ref?: React.Ref<SVGSVGElement> | undefined;
|
|
11
11
|
};
|
|
12
12
|
cartesianGrid?: React.ComponentProps<typeof CartesianGrid>;
|
|
@@ -1,9 +1,30 @@
|
|
|
1
|
-
import { ColumnDef, ColumnFiltersState, PaginationState, SortingState, Updater } from '@tanstack/react-table';
|
|
1
|
+
import { ColumnDef, ColumnFiltersState, PaginationState, Row, RowSelectionState, SortingState, Table as TanStackTable, Updater, VisibilityState } from '@tanstack/react-table';
|
|
2
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
+
export type DataTableColumnMeta<TData = unknown> = {
|
|
4
|
+
className?: string;
|
|
5
|
+
headClassName?: string;
|
|
6
|
+
cellClassName?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
headStyle?: CSSProperties;
|
|
9
|
+
cellStyle?: CSSProperties;
|
|
10
|
+
editable?: boolean;
|
|
11
|
+
editKey?: Extract<keyof TData, string>;
|
|
12
|
+
editComponent?: "input" | "textarea";
|
|
13
|
+
editClassName?: string;
|
|
14
|
+
editPlaceholder?: string;
|
|
15
|
+
getEditValue?: (row: TData) => string;
|
|
16
|
+
};
|
|
2
17
|
export interface DataTableProps<TData, TValue> {
|
|
3
18
|
columns: ColumnDef<TData, TValue>[];
|
|
4
19
|
data: TData[];
|
|
20
|
+
emptyState?: ReactNode;
|
|
5
21
|
sorting?: SortingState;
|
|
6
22
|
columnFilters?: ColumnFiltersState;
|
|
23
|
+
columnVisibility?: VisibilityState;
|
|
24
|
+
onColumnVisibilityChange?: (updater: Updater<VisibilityState>) => void;
|
|
25
|
+
rowSelection?: RowSelectionState;
|
|
26
|
+
onRowSelectionChange?: (updater: Updater<RowSelectionState>) => void;
|
|
27
|
+
getRowId?: (originalRow: TData, index: number, parent?: Row<TData>) => string;
|
|
7
28
|
pagination?: PaginationState;
|
|
8
29
|
globalFilter?: string;
|
|
9
30
|
setGlobalFilter?: (value: string) => void;
|
|
@@ -12,13 +33,23 @@ export interface DataTableProps<TData, TValue> {
|
|
|
12
33
|
onPaginationChange?: (updater: Updater<PaginationState>) => void;
|
|
13
34
|
rowClickable?: boolean;
|
|
14
35
|
onRowClick?: (row: TData) => void;
|
|
36
|
+
onTableChange?: (table: TanStackTable<TData>) => void;
|
|
37
|
+
editableRowId?: string | null;
|
|
38
|
+
editingValues?: Record<string, string>;
|
|
39
|
+
onEditingValuesChange?: (updater: Updater<Record<string, string>>) => void;
|
|
40
|
+
autoResetPageIndex?: boolean;
|
|
15
41
|
className?: {
|
|
16
42
|
className?: string;
|
|
17
43
|
tableClassName?: string;
|
|
18
44
|
headerClassName?: string;
|
|
19
45
|
rowClassName?: string;
|
|
46
|
+
headRowClassName?: string;
|
|
47
|
+
bodyRowClassName?: string;
|
|
48
|
+
editingRowClassName?: string;
|
|
49
|
+
emptyRowClassName?: string;
|
|
20
50
|
cellClassName?: string;
|
|
21
51
|
headCellClassName?: string;
|
|
52
|
+
emptyCellClassName?: string;
|
|
22
53
|
};
|
|
23
54
|
}
|
|
24
|
-
export declare function BasicTable<TData, TValue>({ columns, data, sorting, columnFilters, pagination, globalFilter, setGlobalFilter, onSortingChange, onColumnFiltersChange, onPaginationChange, rowClickable, onRowClick, className, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
export declare function BasicTable<TData, TValue>({ columns, data, emptyState, sorting, columnFilters, columnVisibility, onColumnVisibilityChange, rowSelection, onRowSelectionChange, getRowId, pagination, globalFilter, setGlobalFilter, onSortingChange, onColumnFiltersChange, onPaginationChange, rowClickable, onRowClick, onTableChange, editableRowId, editingValues, onEditingValuesChange, autoResetPageIndex, className, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { BasicTable, type DataTableProps } from './basic-table';
|
|
1
|
+
export { BasicTable, type DataTableColumnMeta, type DataTableProps } from './basic-table';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ColumnDef, Row } from '@tanstack/react-table';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { DropdownMenuConfigNode } from '../ui/dropdown-menu';
|
|
4
|
+
type DataTableActionsColumnOptions<TData> = {
|
|
5
|
+
id?: string;
|
|
6
|
+
header?: ColumnDef<TData>["header"];
|
|
7
|
+
renderCell?: (ctx: {
|
|
8
|
+
row: Row<TData>;
|
|
9
|
+
data: TData;
|
|
10
|
+
}) => ReactNode;
|
|
11
|
+
trigger?: (ctx: {
|
|
12
|
+
row: Row<TData>;
|
|
13
|
+
data: TData;
|
|
14
|
+
}) => ReactNode;
|
|
15
|
+
menuItems?: DropdownMenuConfigNode[] | ((ctx: {
|
|
16
|
+
row: Row<TData>;
|
|
17
|
+
data: TData;
|
|
18
|
+
}) => DropdownMenuConfigNode[]);
|
|
19
|
+
align?: "start" | "center" | "end";
|
|
20
|
+
ariaLabel?: string;
|
|
21
|
+
};
|
|
22
|
+
export declare function createDataTableActionsColumn<TData>(options?: DataTableActionsColumnOptions<TData>): ColumnDef<TData>;
|
|
23
|
+
export type { DataTableActionsColumnOptions };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Row, Table } from '@tanstack/react-table';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { DropdownMenuConfigNode } from '../ui/dropdown-menu';
|
|
4
|
+
type DataTableBulkActionsContext<TData> = {
|
|
5
|
+
table: Table<TData>;
|
|
6
|
+
selectedRows: Row<TData>[];
|
|
7
|
+
selectedData: TData[];
|
|
8
|
+
count: number;
|
|
9
|
+
clearSelection: () => void;
|
|
10
|
+
};
|
|
11
|
+
type DataTableBulkActionsProps<TData> = {
|
|
12
|
+
table: Table<TData>;
|
|
13
|
+
children?: (ctx: DataTableBulkActionsContext<TData>) => ReactNode;
|
|
14
|
+
trigger?: ReactNode | ((ctx: DataTableBulkActionsContext<TData>) => ReactNode);
|
|
15
|
+
menuItems?: DropdownMenuConfigNode[] | ((ctx: DataTableBulkActionsContext<TData>) => DropdownMenuConfigNode[]);
|
|
16
|
+
onDeleteSelected?: (ctx: DataTableBulkActionsContext<TData>) => void;
|
|
17
|
+
};
|
|
18
|
+
declare function DataTableBulkActions<TData>({ table, children, trigger, menuItems, onDeleteSelected, }: DataTableBulkActionsProps<TData>): import("react/jsx-runtime").JSX.Element | null;
|
|
19
|
+
export { DataTableBulkActions };
|
|
20
|
+
export type { DataTableBulkActionsContext, DataTableBulkActionsProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Table, Updater, VisibilityState } from '@tanstack/react-table';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
type DataTableColumnVisibilityProps<TData> = {
|
|
4
|
+
table: Table<TData>;
|
|
5
|
+
columnVisibility?: VisibilityState;
|
|
6
|
+
onColumnVisibilityChange?: (updater: Updater<VisibilityState>) => void;
|
|
7
|
+
triggerLabel?: string;
|
|
8
|
+
trigger?: ReactNode;
|
|
9
|
+
menuLabel?: string;
|
|
10
|
+
includeColumnIds?: string[];
|
|
11
|
+
excludeColumnIds?: string[];
|
|
12
|
+
align?: "start" | "center" | "end";
|
|
13
|
+
dropdownWidthClassName?: string;
|
|
14
|
+
};
|
|
15
|
+
declare function DataTableColumnVisibility<TData>({ table, columnVisibility, onColumnVisibilityChange, triggerLabel, trigger, menuLabel, includeColumnIds, excludeColumnIds, align, dropdownWidthClassName, }: DataTableColumnVisibilityProps<TData>): import("react/jsx-runtime").JSX.Element | null;
|
|
16
|
+
export { DataTableColumnVisibility };
|
|
17
|
+
export type { DataTableColumnVisibilityProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
2
|
+
import { DataTableColumnMeta } from '../basic-table';
|
|
3
|
+
type DataTableEditableColumnOptions<TData> = {
|
|
4
|
+
editKey?: DataTableColumnMeta<TData>["editKey"];
|
|
5
|
+
editComponent?: DataTableColumnMeta<TData>["editComponent"];
|
|
6
|
+
editClassName?: DataTableColumnMeta<TData>["editClassName"];
|
|
7
|
+
editPlaceholder?: DataTableColumnMeta<TData>["editPlaceholder"];
|
|
8
|
+
getEditValue?: DataTableColumnMeta<TData>["getEditValue"];
|
|
9
|
+
};
|
|
10
|
+
declare function withDataTableEditableColumn<TData, TValue>(column: ColumnDef<TData, TValue>, options?: DataTableEditableColumnOptions<TData>): ColumnDef<TData, TValue>;
|
|
11
|
+
export { withDataTableEditableColumn };
|
|
12
|
+
export type { DataTableEditableColumnOptions };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Table } from '@tanstack/react-table';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { Input } from '../ui/input';
|
|
4
|
+
type DataTableFilterProps<TData> = {
|
|
5
|
+
table: Table<TData>;
|
|
6
|
+
searchableColumnIds?: string[];
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
inputProps?: Omit<ComponentProps<typeof Input>, "value" | "onChange">;
|
|
9
|
+
};
|
|
10
|
+
declare function DataTableFilter<TData>({ table, searchableColumnIds, placeholder, inputProps, }: DataTableFilterProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { DataTableFilter };
|
|
12
|
+
export type { DataTableFilterProps };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ColumnDef, Row } from '@tanstack/react-table';
|
|
2
|
+
import { IconName } from 'phosphor-strokes-icons/by-name';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
type DataTableRowActionContext<TData> = {
|
|
5
|
+
row: Row<TData>;
|
|
6
|
+
data: TData;
|
|
7
|
+
};
|
|
8
|
+
type DataTableRowActionBase = {
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
id?: string;
|
|
11
|
+
};
|
|
12
|
+
type DataTableRowActionLabel = DataTableRowActionBase & {
|
|
13
|
+
label: string;
|
|
14
|
+
type: "label";
|
|
15
|
+
};
|
|
16
|
+
type DataTableRowActionSeparator = DataTableRowActionBase & {
|
|
17
|
+
type: "separator";
|
|
18
|
+
};
|
|
19
|
+
type DataTableRowActionItem<TData> = DataTableRowActionBase & {
|
|
20
|
+
type?: "item";
|
|
21
|
+
label: string;
|
|
22
|
+
icon?: ReactNode;
|
|
23
|
+
iconType?: IconName;
|
|
24
|
+
shortcut?: string;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
readOnly?: boolean;
|
|
27
|
+
alert?: boolean;
|
|
28
|
+
children?: DataTableRowActionNode<TData>[];
|
|
29
|
+
onSelect?: (ctx: DataTableRowActionContext<TData>) => void;
|
|
30
|
+
};
|
|
31
|
+
type DataTableRowActionNode<TData> = DataTableRowActionItem<TData> | DataTableRowActionLabel | DataTableRowActionSeparator;
|
|
32
|
+
type DataTableRowActionsColumnOptions<TData> = {
|
|
33
|
+
id?: string;
|
|
34
|
+
header?: ColumnDef<TData>["header"];
|
|
35
|
+
align?: "start" | "center" | "end";
|
|
36
|
+
editingRowId?: string | null;
|
|
37
|
+
trigger?: (ctx: DataTableRowActionContext<TData>) => ReactNode;
|
|
38
|
+
actions?: DataTableRowActionNode<TData>[] | ((ctx: DataTableRowActionContext<TData>) => DataTableRowActionNode<TData>[]);
|
|
39
|
+
onStartEdit?: (ctx: DataTableRowActionContext<TData>) => void;
|
|
40
|
+
onSaveEdit?: (ctx: DataTableRowActionContext<TData>) => void;
|
|
41
|
+
onCancelEdit?: (ctx: DataTableRowActionContext<TData>) => void;
|
|
42
|
+
onDelete?: (ctx: DataTableRowActionContext<TData>) => void;
|
|
43
|
+
includeDefaultActions?: boolean;
|
|
44
|
+
labels?: {
|
|
45
|
+
cancelAriaLabel?: string;
|
|
46
|
+
delete?: string;
|
|
47
|
+
edit?: string;
|
|
48
|
+
empty?: string;
|
|
49
|
+
saveAriaLabel?: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare function createDataTableRowActionsColumn<TData>(options?: DataTableRowActionsColumnOptions<TData>): ColumnDef<TData>;
|
|
53
|
+
export type { DataTableRowActionContext, DataTableRowActionItem, DataTableRowActionLabel, DataTableRowActionNode, DataTableRowActionSeparator, DataTableRowActionsColumnOptions, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const dataTableContainerClassName = "w-full overflow-hidden rounded-xl border border-delicate-border bg-primary-bg";
|
|
2
|
+
export declare const dataTableTableClassName = "w-full";
|
|
3
|
+
export declare const dataTableHeadRowClassName = "h-13 border-delicate-border hover:bg-transparent data-[state=selected]:bg-transparent";
|
|
4
|
+
export declare const dataTableBodyRowClassName = "h-15 border-delicate-border hover:bg-transparent data-[state=selected]:bg-transparent";
|
|
5
|
+
export declare const dataTableEditingRowClassName = "h-[7.5rem]";
|
|
6
|
+
export declare const dataTableHeadCellClassName: string;
|
|
7
|
+
export declare const dataTableCellClassName: string;
|
|
8
|
+
export declare const dataTableEmptyCellClassName = "h-24 text-center";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { DataTable } from './data-table';
|
|
2
|
+
export type { DataTableColumnMeta, DataTableProps } from '../basic-table';
|
|
3
|
+
export { createDataTableActionsColumn } from './data-table-actions-column';
|
|
4
|
+
export type { DataTableActionsColumnOptions } from './data-table-actions-column';
|
|
5
|
+
export { withDataTableEditableColumn } from './data-table-editable-column';
|
|
6
|
+
export type { DataTableEditableColumnOptions } from './data-table-editable-column';
|
|
7
|
+
export { createDataTableRowActionsColumn } from './data-table-row-actions-column';
|
|
8
|
+
export type { DataTableRowActionContext, DataTableRowActionItem, DataTableRowActionLabel, DataTableRowActionNode, DataTableRowActionSeparator, DataTableRowActionsColumnOptions, } from './data-table-row-actions-column';
|
|
9
|
+
export { DataTableBulkActions } from './data-table-bulk-actions';
|
|
10
|
+
export type { DataTableBulkActionsContext, DataTableBulkActionsProps, } from './data-table-bulk-actions';
|
|
11
|
+
export { DataTableColumnVisibility } from './data-table-column-visibility';
|
|
12
|
+
export type { DataTableColumnVisibilityProps } from './data-table-column-visibility';
|
|
13
|
+
export { DataTableFilter } from './data-table-filter';
|
|
14
|
+
export type { DataTableFilterProps } from './data-table-filter';
|
|
15
|
+
export { createDataTableSelectColumn } from './data-table-select-column';
|
|
16
|
+
export { useDataTableEditableRows } from './use-data-table-editable-rows';
|
|
17
|
+
export type { DataTableRowDeleteEvent, DataTableRowEditCancelEvent, DataTableRowEditSaveEvent, DataTableRowEditStartEvent, DataTableRowsChangeEvent, EditableRowKey, UseDataTableEditableRowsOptions, } from './use-data-table-editable-rows';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
type EditableRowKey<TData> = Extract<keyof TData, string>;
|
|
3
|
+
type EditableValues = Record<string, string>;
|
|
4
|
+
type DataTableRowEditStartEvent<TData> = {
|
|
5
|
+
editableKeys: readonly EditableRowKey<TData>[];
|
|
6
|
+
initialValues: EditableValues;
|
|
7
|
+
row: TData;
|
|
8
|
+
rowId: string;
|
|
9
|
+
};
|
|
10
|
+
type DataTableRowEditCancelEvent<TData> = {
|
|
11
|
+
editingValues: EditableValues;
|
|
12
|
+
row: TData | null;
|
|
13
|
+
rowId: string | null;
|
|
14
|
+
};
|
|
15
|
+
type DataTableRowEditSaveEvent<TData> = {
|
|
16
|
+
editingValues: EditableValues;
|
|
17
|
+
nextRow: TData;
|
|
18
|
+
previousRow: TData;
|
|
19
|
+
rowId: string;
|
|
20
|
+
};
|
|
21
|
+
type DataTableRowDeleteEvent<TData> = {
|
|
22
|
+
row: TData;
|
|
23
|
+
rowId: string;
|
|
24
|
+
};
|
|
25
|
+
type DataTableRowsChangeEvent<TData> = ({
|
|
26
|
+
nextRows: TData[];
|
|
27
|
+
previousRows: TData[];
|
|
28
|
+
type: "edit-save";
|
|
29
|
+
} & DataTableRowEditSaveEvent<TData>) | ({
|
|
30
|
+
nextRows: TData[];
|
|
31
|
+
previousRows: TData[];
|
|
32
|
+
type: "delete";
|
|
33
|
+
} & DataTableRowDeleteEvent<TData>);
|
|
34
|
+
type UseDataTableEditableRowsOptions<TData> = {
|
|
35
|
+
rows: TData[];
|
|
36
|
+
getRowId: (row: TData) => string;
|
|
37
|
+
setRows?: Dispatch<SetStateAction<TData[]>>;
|
|
38
|
+
editingRowId?: string | null;
|
|
39
|
+
onEditingRowIdChange?: (rowId: string | null) => void;
|
|
40
|
+
editingValues?: EditableValues;
|
|
41
|
+
onEditingValuesChange?: Dispatch<SetStateAction<EditableValues>>;
|
|
42
|
+
onRowDelete?: (event: DataTableRowDeleteEvent<TData>) => void;
|
|
43
|
+
onRowEditCancel?: (event: DataTableRowEditCancelEvent<TData>) => void;
|
|
44
|
+
onRowEditSave?: (event: DataTableRowEditSaveEvent<TData>) => void;
|
|
45
|
+
onRowEditStart?: (event: DataTableRowEditStartEvent<TData>) => void;
|
|
46
|
+
onRowsChange?: (event: DataTableRowsChangeEvent<TData>) => void;
|
|
47
|
+
};
|
|
48
|
+
declare function useDataTableEditableRows<TData>({ rows, getRowId, setRows, editingRowId: controlledEditingRowId, onEditingRowIdChange, editingValues: controlledEditingValues, onEditingValuesChange, onRowDelete, onRowEditCancel, onRowEditSave, onRowEditStart, onRowsChange, }: UseDataTableEditableRowsOptions<TData>): {
|
|
49
|
+
autoResetPageIndex: boolean;
|
|
50
|
+
cancelEditingRow: () => void;
|
|
51
|
+
deleteRow: (rowId: string) => void;
|
|
52
|
+
editingRowId: string | null;
|
|
53
|
+
editingValues: EditableValues;
|
|
54
|
+
saveEditingRow: (rowId: string) => void;
|
|
55
|
+
setEditingValues: (updater: SetStateAction<EditableValues>) => void;
|
|
56
|
+
setEditingRowId: (updater: SetStateAction<string | null>) => void;
|
|
57
|
+
startEditingRow: (row: TData, editableKeys: readonly EditableRowKey<TData>[], overrides?: Partial<Record<EditableRowKey<TData>, string>>) => void;
|
|
58
|
+
};
|
|
59
|
+
export { useDataTableEditableRows };
|
|
60
|
+
export type { DataTableRowDeleteEvent, DataTableRowEditCancelEvent, DataTableRowEditSaveEvent, DataTableRowEditStartEvent, DataTableRowsChangeEvent, EditableRowKey, UseDataTableEditableRowsOptions, };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
2
|
export type DateAddon = {
|
|
3
3
|
id: string | number;
|
|
4
4
|
position?: "inline-start" | "inline-end" | "block-start" | "block-end" | null;
|
|
5
|
-
component:
|
|
5
|
+
component: ReactNode;
|
|
6
6
|
};
|
|
7
7
|
type BaseProps = {
|
|
8
8
|
date?: DateAddon[];
|
|
@@ -15,7 +15,7 @@ type BaseProps = {
|
|
|
15
15
|
field?: string;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
type InputFieldProps = BaseProps &
|
|
18
|
+
type InputFieldProps = BaseProps & ComponentPropsWithRef<"input">;
|
|
19
19
|
export declare const InputField: ({ date, isValid, disabled, label, description, classes, ref, ...rest }: InputFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
type InputProps = InputFieldProps;
|
|
21
21
|
export type { InputFieldProps, InputProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type InputPhoneProps = Omit<
|
|
3
|
-
declare const MaskedInputField:
|
|
1
|
+
import { ComponentProps, ForwardRefExoticComponent, RefAttributes, ComponentType } from 'react';
|
|
2
|
+
type InputPhoneProps = Omit<ComponentProps<typeof MaskedInputField>, "inputRef">;
|
|
3
|
+
declare const MaskedInputField: ForwardRefExoticComponent<Omit<{
|
|
4
4
|
[x: string]: unknown;
|
|
5
|
-
}, "ref"> &
|
|
5
|
+
}, "ref"> & RefAttributes<ComponentType<{
|
|
6
6
|
[x: string]: unknown;
|
|
7
7
|
}>>>;
|
|
8
8
|
export declare const InputPhone: (props: InputPhoneProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export type PopoverBasicProps = {
|
|
3
|
-
trigger:
|
|
4
|
-
children:
|
|
3
|
+
trigger: ReactNode;
|
|
4
|
+
children: ReactNode;
|
|
5
5
|
side?: "top" | "right" | "bottom" | "left";
|
|
6
6
|
align?: "start" | "center" | "end";
|
|
7
7
|
className?: string;
|
|
8
8
|
triggerClassName?: string;
|
|
9
9
|
open?: boolean;
|
|
10
10
|
setOpen?: (value: boolean) => void;
|
|
11
|
-
triggerProps?:
|
|
11
|
+
triggerProps?: HTMLAttributes<HTMLElement>;
|
|
12
12
|
};
|
|
13
13
|
export declare function PopoverBasic({ trigger, children, className, triggerClassName, side, align, open, setOpen, triggerProps, }: PopoverBasicProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import {
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
3
|
import { badgeVariants } from '../ui/badge';
|
|
4
4
|
import { ComboboxChipsInput } from '../ui/combobox';
|
|
5
5
|
export type SelectList = {
|
|
@@ -18,7 +18,7 @@ type SelectBaseProps = {
|
|
|
18
18
|
description?: string;
|
|
19
19
|
onChange?: (value: SelectValue) => void;
|
|
20
20
|
};
|
|
21
|
-
type SelectProps = SelectBaseProps & Omit<
|
|
21
|
+
type SelectProps = SelectBaseProps & Omit<ComponentProps<typeof ComboboxChipsInput>, "list" | "onChange">;
|
|
22
22
|
export declare const SelectField: {
|
|
23
23
|
({ list, label, multiple, disabled, isValid, description, onChange, ...rest }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
displayName: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { TextareaField } from './textarea-field';
|
|
2
|
-
export type { TextareaFieldProps
|
|
2
|
+
export type { TextareaFieldProps } from './textarea-field';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Avatar as AvatarPrimitive } from 'radix-ui';
|
|
2
|
-
import
|
|
3
|
-
declare function Avatar({ className, size, ...props }:
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
declare function Avatar({ className, size, ...props }: ComponentProps<typeof AvatarPrimitive.Root> & {
|
|
4
4
|
size?: "default" | "sm" | "lg";
|
|
5
5
|
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function AvatarImage({ className, ...props }:
|
|
7
|
-
declare function AvatarFallback({ className, ...props }:
|
|
8
|
-
declare function AvatarBadge({ className, ...props }:
|
|
9
|
-
declare function AvatarGroup({ className, ...props }:
|
|
10
|
-
declare function AvatarGroupCount({ className, ...props }:
|
|
6
|
+
declare function AvatarImage({ className, ...props }: ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function AvatarFallback({ className, ...props }: ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function AvatarBadge({ className, ...props }: ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function AvatarGroup({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function AvatarGroupCount({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
2
3
|
import { badgeVariants } from './badge.styles';
|
|
3
|
-
|
|
4
|
-
export interface BadgeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "className">, VariantProps<typeof badgeVariants> {
|
|
4
|
+
export interface BadgeProps extends Omit<HTMLAttributes<HTMLDivElement>, "className">, VariantProps<typeof badgeVariants> {
|
|
5
5
|
dotPosition?: "left" | "right";
|
|
6
6
|
classNames?: {
|
|
7
7
|
dotClassName?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { ButtonHTMLAttributes, Ref } from 'react';
|
|
2
3
|
import { buttonVariants } from './button.styles';
|
|
3
|
-
|
|
4
|
-
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
4
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
5
5
|
asChild?: boolean;
|
|
6
|
-
ref?:
|
|
6
|
+
ref?: Ref<HTMLButtonElement>;
|
|
7
7
|
}
|
|
8
8
|
declare const Button: {
|
|
9
9
|
({ className, variant, size, asChild, ref, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClassProp } from 'class-variance-authority/types';
|
|
2
2
|
export declare const buttonVariants: (props?: ({
|
|
3
|
-
variant?: "link" | "primary" | "secondary" | "
|
|
4
|
-
size?: "lg" | "md" | "sm" | "xs" | "default" | "icon-lg" | "icon-md" | "icon-sm" | "icon-xs" | null | undefined;
|
|
3
|
+
variant?: "link" | "primary" | "secondary" | "outlined" | "ghost" | "circle" | "circleGhost" | "square" | "pagination-arrow" | "pagination-page" | null | undefined;
|
|
4
|
+
size?: "lg" | "md" | "sm" | "xs" | "default" | "icon-lg" | "icon-md" | "icon-sm" | "icon-xs" | "pagination" | null | undefined;
|
|
5
5
|
} & ClassProp) | undefined) => string;
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { DayPicker, DayButton } from 'react-day-picker';
|
|
2
3
|
import { Button } from '../button';
|
|
3
|
-
|
|
4
|
-
type
|
|
5
|
-
|
|
4
|
+
type CalendarSize = "sm" | "md" | "lg";
|
|
5
|
+
type CalendarPreset = {
|
|
6
|
+
text: string;
|
|
7
|
+
days: number;
|
|
8
|
+
};
|
|
9
|
+
type Props = ComponentProps<typeof DayPicker> & {
|
|
10
|
+
buttonVariant?: ComponentProps<typeof Button>["variant"];
|
|
11
|
+
size?: CalendarSize;
|
|
6
12
|
classNameWrapper?: string;
|
|
7
13
|
classNameFooter?: string;
|
|
8
|
-
footer?:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
footer?: ReactNode;
|
|
15
|
+
appendFooter?: ReactNode;
|
|
16
|
+
presets?: CalendarPreset[];
|
|
17
|
+
presetBaseDate?: Date;
|
|
18
|
+
onPresetClick?: (preset: CalendarPreset, date: Date) => void;
|
|
13
19
|
};
|
|
14
|
-
declare function Calendar({ className, classNames, classNameWrapper, classNameFooter, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, footer, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
declare function CalendarDayButton({ className, day, modifiers,
|
|
16
|
-
locale?: Partial<Locale>;
|
|
17
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function Calendar({ className, classNames, classNameWrapper, classNameFooter, showOutsideDays, captionLayout, buttonVariant, size, locale, formatters, components, footer, appendFooter, presets, presetBaseDate, onPresetClick, onDayClick, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function CalendarDayButton({ className, day, modifiers, children, ...props }: ComponentProps<typeof DayButton>): import("react/jsx-runtime").JSX.Element;
|
|
18
22
|
export { Calendar, CalendarDayButton };
|
|
19
|
-
export type { Props as CalendarProps };
|
|
23
|
+
export type { CalendarPreset, Props as CalendarProps };
|
|
@@ -1,4 +1,62 @@
|
|
|
1
1
|
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
2
|
+
export declare const calendarTypographyVariantBySize: {
|
|
3
|
+
readonly sm: "body-xxs-regular";
|
|
4
|
+
readonly md: "body-xs-regular";
|
|
5
|
+
readonly lg: "body-md-regular";
|
|
6
|
+
};
|
|
7
|
+
export declare const calendarWrapperClassName = "border-delicate-border !max-w-none hover:bg-transparent rounded-lg border bg-primary-bg !shadow-[0_0.25rem_1.125rem_0_rgb(0_0_0_/_15%)]";
|
|
8
|
+
export declare const calendarContentPaddingVariants: (props?: ({
|
|
9
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
4
10
|
} & ClassProp) | undefined) => string;
|
|
11
|
+
export declare const calendarRootVariants: (props?: ({
|
|
12
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
13
|
+
} & ClassProp) | undefined) => string;
|
|
14
|
+
export declare const calendarMonthsClassName = "relative flex flex-col gap-8 md:flex-row";
|
|
15
|
+
export declare const calendarMonthClassName = "flex w-full flex-col gap-4";
|
|
16
|
+
export declare const calendarNavClassName = "absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1";
|
|
17
|
+
export declare const calendarNavButtonClassName = "hover:bg-primary-hover-bg size-(--cell-size) p-0 select-none aria-disabled:bg-primary-bg";
|
|
18
|
+
export declare const calendarMonthCaptionClassName = "flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)";
|
|
19
|
+
export declare const calendarDropdownsVariants: (props?: ({
|
|
20
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
21
|
+
} & ClassProp) | undefined) => string;
|
|
22
|
+
export declare const calendarDropdownRootClassName = "cn-calendar-dropdown-root relative rounded-sm";
|
|
23
|
+
export declare const calendarDropdownClassName = "absolute inset-0 opacity-0";
|
|
24
|
+
export declare const calendarCaptionLabelVariants: (props?: ({
|
|
25
|
+
layout?: "label" | "dropdown" | null | undefined;
|
|
26
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
27
|
+
} & ClassProp) | undefined) => string;
|
|
28
|
+
export declare const calendarWeekdaysVariants: (props?: ({
|
|
29
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
30
|
+
} & ClassProp) | undefined) => string;
|
|
31
|
+
export declare const calendarWeekdayVariants: (props?: ({
|
|
32
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
33
|
+
} & ClassProp) | undefined) => string;
|
|
34
|
+
export declare const calendarWeekVariants: (props?: ({
|
|
35
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
36
|
+
} & ClassProp) | undefined) => string;
|
|
37
|
+
export declare const calendarWeekNumberHeaderClassName = "size-(--cell-size) shrink-0 select-none";
|
|
38
|
+
export declare const calendarWeekNumberVariants: (props?: ({
|
|
39
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
40
|
+
} & ClassProp) | undefined) => string;
|
|
41
|
+
export declare const calendarDayVariants: (props?: ({
|
|
42
|
+
showWeekNumber?: boolean | null | undefined;
|
|
43
|
+
} & ClassProp) | undefined) => string;
|
|
44
|
+
export declare const calendarRangeStartClassName = "relative isolate z-0 rounded-l-sm after:absolute after:inset-y-0 after:left-full after:w-[calc(var(--calendar-gap-x)/2)] after:bg-tertiary-bg after:content-[''] after:-z-10";
|
|
45
|
+
export declare const calendarRangeMiddleClassName = "relative isolate z-0 rounded-none before:absolute before:inset-y-0 before:right-full before:w-[calc(var(--calendar-gap-x)/2)] before:bg-tertiary-bg before:content-[''] before:-z-10 after:absolute after:inset-y-0 after:left-full after:w-[calc(var(--calendar-gap-x)/2)] after:bg-tertiary-bg after:content-[''] after:-z-10";
|
|
46
|
+
export declare const calendarRangeEndClassName = "relative isolate z-0 rounded-r-sm before:absolute before:inset-y-0 before:right-full before:w-[calc(var(--calendar-gap-x)/2)] before:bg-tertiary-bg before:content-[''] before:-z-10";
|
|
47
|
+
export declare const calendarTodayClassName = "bg-tertiary-bg text-primary-text relative rounded-sm data-[selected=true]:rounded-none";
|
|
48
|
+
export declare const calendarTodayButtonIndicatorClassName = "relative z-0 overflow-visible after:pointer-events-none after:absolute after:bottom-[0.1875rem] after:left-1/2 after:z-[1] after:block after:size-[0.1875rem] after:-translate-x-1/2 after:rounded-full after:bg-primary-text data-[range-start=true]:after:bg-primary-inverse-text data-[range-end=true]:after:bg-primary-inverse-text data-[selected-single=true]:after:bg-primary-inverse-text disabled:after:opacity-40";
|
|
49
|
+
export declare const calendarRangeLastClickedClassName = "data-[last-clicked=true]:[box-shadow:inset_0_0_0_0.125rem_var(--color-inp-default-border)]";
|
|
50
|
+
export declare const calendarOutsideClassName = "text-disabled-text aria-selected:text-disabled-text";
|
|
51
|
+
export declare const calendarDisabledClassName = "text-disabled-text bg-transparent pointer-events-none";
|
|
52
|
+
export declare const calendarHiddenClassName = "invisible";
|
|
53
|
+
export declare const calendarDayButtonClassName = "text-primary-text size-(--cell-size) min-h-(--cell-size)\nmax-h-(--cell-size) min-w-(--cell-size) max-w-(--cell-size) rounded-sm p-0 hover:bg-primary-hover-bg\ndisabled:!bg-transparent disabled:hover:!bg-transparent disabled:text-disabled-text\ndata-[selected-single=true]:bg-primary-inverse-bg\ndata-[selected-single=true]:text-primary-inverse-text\ndata-[range-start=true]:bg-primary-inverse-bg\ndata-[range-start=true]:text-primary-inverse-text\ndata-[range-start=true]:rounded-l-sm\ndata-[range-middle=true]:bg-tertiary-bg\ndata-[range-middle=true]:text-primary-text\ndata-[range-middle=true]:rounded-none\ndata-[range-end=true]:bg-primary-inverse-bg\ndata-[range-end=true]:text-primary-inverse-text\ndata-[range-end=true]:rounded-r-sm";
|
|
54
|
+
export declare const calendarDayTextVariants: (props?: ({
|
|
55
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
56
|
+
} & ClassProp) | undefined) => string;
|
|
57
|
+
export declare const calendarFooterVariants: (props?: ({
|
|
58
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
59
|
+
} & ClassProp) | undefined) => string;
|
|
60
|
+
export declare const calendarIconClassName = "text-primary-text cursor-pointer";
|
|
61
|
+
export declare const calendarWeekNumberCellClassName = "flex size-(--cell-size) items-center justify-center text-center";
|
|
62
|
+
export declare const calendarDayTextClassName = "leading-none";
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { Calendar
|
|
2
|
-
export
|
|
1
|
+
export { Calendar } from './calendar';
|
|
2
|
+
export { localeMode } from '../../../constants/calendar-locale';
|
|
3
|
+
export type { CalendarPreset, CalendarProps } from './calendar';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { HTMLAttributes, RefObject } from 'react';
|
|
1
2
|
import { VariantProps } from 'class-variance-authority';
|
|
2
3
|
import { cardVariants } from './card.styles';
|
|
3
|
-
import * as React from "react";
|
|
4
4
|
declare const Card: {
|
|
5
|
-
({ ref, className, variant, disabled, active, ...props }:
|
|
6
|
-
ref?:
|
|
5
|
+
({ ref, className, variant, disabled, active, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
7
7
|
variant?: VariantProps<typeof cardVariants>["variant"];
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
active?: boolean;
|
|
@@ -11,32 +11,32 @@ declare const Card: {
|
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
13
13
|
declare const CardHeader: {
|
|
14
|
-
({ ref, className, ...props }:
|
|
15
|
-
ref?:
|
|
14
|
+
({ ref, className, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
15
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
16
16
|
}): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
displayName: string;
|
|
18
18
|
};
|
|
19
19
|
declare const CardTitle: {
|
|
20
|
-
({ ref, className, ...props }:
|
|
21
|
-
ref?:
|
|
20
|
+
({ ref, className, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
21
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
22
22
|
}): import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
displayName: string;
|
|
24
24
|
};
|
|
25
25
|
declare const CardDescription: {
|
|
26
|
-
({ ref, className, ...props }:
|
|
27
|
-
ref?:
|
|
26
|
+
({ ref, className, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
27
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
28
28
|
}): import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
displayName: string;
|
|
30
30
|
};
|
|
31
31
|
declare const CardContent: {
|
|
32
|
-
({ ref, className, ...props }:
|
|
33
|
-
ref?:
|
|
32
|
+
({ ref, className, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
33
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
34
34
|
}): import("react/jsx-runtime").JSX.Element;
|
|
35
35
|
displayName: string;
|
|
36
36
|
};
|
|
37
37
|
declare const CardFooter: {
|
|
38
|
-
({ ref, className, ...props }:
|
|
39
|
-
ref?:
|
|
38
|
+
({ ref, className, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
39
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
40
40
|
}): import("react/jsx-runtime").JSX.Element;
|
|
41
41
|
displayName: string;
|
|
42
42
|
};
|