@d4gger/design-system 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{components/controlGroup/ControlGroup.cjs → _internal/floatingLayer.cjs} +11 -26
- package/dist/_internal/floatingLayer.cjs.map +7 -0
- package/dist/_internal/floatingLayer.d.cts +28 -0
- package/dist/_internal/floatingLayer.d.cts.map +1 -0
- package/dist/_internal/floatingLayer.d.mts +28 -0
- package/dist/_internal/floatingLayer.d.mts.map +1 -0
- package/dist/_internal/floatingLayer.d.ts +28 -0
- package/dist/_internal/floatingLayer.d.ts.map +1 -0
- package/dist/_internal/floatingLayer.js +11 -0
- package/dist/_internal/floatingLayer.js.map +7 -0
- package/dist/components/banner/Banner.cjs +105 -0
- package/dist/components/banner/Banner.cjs.map +7 -0
- package/dist/components/banner/Banner.d.cts +27 -0
- package/dist/components/banner/Banner.d.cts.map +1 -0
- package/dist/components/banner/Banner.d.mts +27 -0
- package/dist/components/banner/Banner.d.mts.map +1 -0
- package/dist/components/banner/Banner.d.ts +27 -0
- package/dist/components/banner/Banner.d.ts.map +1 -0
- package/dist/components/banner/Banner.js +80 -0
- package/dist/components/banner/Banner.js.map +7 -0
- package/dist/components/{controlGroup/controlGroup.props.cjs → banner/banner.props.cjs} +23 -16
- package/dist/components/banner/banner.props.cjs.map +7 -0
- package/dist/components/banner/banner.props.d.cts +32 -0
- package/dist/components/banner/banner.props.d.cts.map +1 -0
- package/dist/components/banner/banner.props.d.mts +32 -0
- package/dist/components/banner/banner.props.d.mts.map +1 -0
- package/dist/components/banner/banner.props.d.ts +32 -0
- package/dist/components/banner/banner.props.d.ts.map +1 -0
- package/dist/components/banner/banner.props.js +27 -0
- package/dist/components/banner/banner.props.js.map +7 -0
- package/dist/components/banner.css +60 -0
- package/dist/components/button-group.css +25 -0
- package/dist/components/button.css +9 -0
- package/dist/components/card.css +3 -0
- package/dist/components/carousel/Carousel.cjs +109 -39
- package/dist/components/carousel/Carousel.cjs.map +3 -3
- package/dist/components/carousel/Carousel.d.cts.map +1 -1
- package/dist/components/carousel/Carousel.d.mts.map +1 -1
- package/dist/components/carousel/Carousel.d.ts.map +1 -1
- package/dist/components/carousel/Carousel.js +111 -41
- package/dist/components/carousel/Carousel.js.map +3 -3
- package/dist/components/carousel.css +93 -26
- package/dist/components/chart/Chart.cjs +61 -11
- package/dist/components/chart/Chart.cjs.map +2 -2
- package/dist/components/chart/Chart.d.cts.map +1 -1
- package/dist/components/chart/Chart.d.mts.map +1 -1
- package/dist/components/chart/Chart.d.ts.map +1 -1
- package/dist/components/chart/Chart.js +62 -11
- package/dist/components/chart/Chart.js.map +2 -2
- package/dist/components/chart.css +10 -1
- package/dist/components/checkbox.css +14 -0
- package/dist/components/combobox/Combobox.cjs +3 -1
- package/dist/components/combobox/Combobox.cjs.map +2 -2
- package/dist/components/combobox/Combobox.d.cts.map +1 -1
- package/dist/components/combobox/Combobox.d.mts.map +1 -1
- package/dist/components/combobox/Combobox.d.ts.map +1 -1
- package/dist/components/combobox/Combobox.js +3 -1
- package/dist/components/combobox/Combobox.js.map +2 -2
- package/dist/components/combobox.css +5 -1
- package/dist/components/command/Command.cjs +1 -1
- package/dist/components/command/Command.cjs.map +2 -2
- package/dist/components/command/Command.js +1 -1
- package/dist/components/command/Command.js.map +2 -2
- package/dist/components/context-menu.css +1 -1
- package/dist/components/copy-field.css +18 -0
- package/dist/components/copyField/CopyField.cjs +3 -3
- package/dist/components/copyField/CopyField.cjs.map +2 -2
- package/dist/components/copyField/CopyField.d.cts.map +1 -1
- package/dist/components/copyField/CopyField.d.mts.map +1 -1
- package/dist/components/copyField/CopyField.d.ts.map +1 -1
- package/dist/components/copyField/CopyField.js +3 -3
- package/dist/components/copyField/CopyField.js.map +2 -2
- package/dist/components/data-list.css +19 -4
- package/dist/components/data-table.css +190 -0
- package/dist/components/dataTable/DataTable.cjs +193 -68
- package/dist/components/dataTable/DataTable.cjs.map +3 -3
- package/dist/components/dataTable/DataTable.d.cts +29 -1
- package/dist/components/dataTable/DataTable.d.cts.map +1 -1
- package/dist/components/dataTable/DataTable.d.mts +29 -1
- package/dist/components/dataTable/DataTable.d.mts.map +1 -1
- package/dist/components/dataTable/DataTable.d.ts +29 -1
- package/dist/components/dataTable/DataTable.d.ts.map +1 -1
- package/dist/components/dataTable/DataTable.js +193 -68
- package/dist/components/dataTable/DataTable.js.map +2 -2
- package/dist/components/dataTable/DataTableContext.cjs +41 -0
- package/dist/components/dataTable/DataTableContext.cjs.map +7 -0
- package/dist/components/dataTable/DataTableContext.d.cts +23 -0
- package/dist/components/dataTable/DataTableContext.d.cts.map +1 -0
- package/dist/components/dataTable/DataTableContext.d.mts +23 -0
- package/dist/components/dataTable/DataTableContext.d.mts.map +1 -0
- package/dist/components/dataTable/DataTableContext.d.ts +23 -0
- package/dist/components/dataTable/DataTableContext.d.ts.map +1 -0
- package/dist/components/dataTable/DataTableContext.js +11 -0
- package/dist/components/dataTable/DataTableContext.js.map +7 -0
- package/dist/components/dataTable/DataTablePagination.cjs +72 -47
- package/dist/components/dataTable/DataTablePagination.cjs.map +2 -2
- package/dist/components/dataTable/DataTablePagination.d.cts +5 -1
- package/dist/components/dataTable/DataTablePagination.d.cts.map +1 -1
- package/dist/components/dataTable/DataTablePagination.d.mts +5 -1
- package/dist/components/dataTable/DataTablePagination.d.mts.map +1 -1
- package/dist/components/dataTable/DataTablePagination.d.ts +5 -1
- package/dist/components/dataTable/DataTablePagination.d.ts.map +1 -1
- package/dist/components/dataTable/DataTablePagination.js +75 -47
- package/dist/components/dataTable/DataTablePagination.js.map +2 -2
- package/dist/components/dataTable/DataTableToolbar.cjs +122 -93
- package/dist/components/dataTable/DataTableToolbar.cjs.map +2 -2
- package/dist/components/dataTable/DataTableToolbar.d.cts +6 -5
- package/dist/components/dataTable/DataTableToolbar.d.cts.map +1 -1
- package/dist/components/dataTable/DataTableToolbar.d.mts +6 -5
- package/dist/components/dataTable/DataTableToolbar.d.mts.map +1 -1
- package/dist/components/dataTable/DataTableToolbar.d.ts +6 -5
- package/dist/components/dataTable/DataTableToolbar.d.ts.map +1 -1
- package/dist/components/dataTable/DataTableToolbar.js +123 -94
- package/dist/components/dataTable/DataTableToolbar.js.map +2 -2
- package/dist/components/dataTable/dataTable.export.cjs +83 -0
- package/dist/components/dataTable/dataTable.export.cjs.map +7 -0
- package/dist/components/dataTable/dataTable.export.d.cts +11 -0
- package/dist/components/dataTable/dataTable.export.d.cts.map +1 -0
- package/dist/components/dataTable/dataTable.export.d.mts +11 -0
- package/dist/components/dataTable/dataTable.export.d.mts.map +1 -0
- package/dist/components/dataTable/dataTable.export.d.ts +11 -0
- package/dist/components/dataTable/dataTable.export.d.ts.map +1 -0
- package/dist/components/dataTable/dataTable.export.js +63 -0
- package/dist/components/dataTable/dataTable.export.js.map +7 -0
- package/dist/components/dataTable/dataTable.props.cjs +23 -1
- package/dist/components/dataTable/dataTable.props.cjs.map +2 -2
- package/dist/components/dataTable/dataTable.props.d.cts +21 -1
- package/dist/components/dataTable/dataTable.props.d.cts.map +1 -1
- package/dist/components/dataTable/dataTable.props.d.mts +21 -1
- package/dist/components/dataTable/dataTable.props.d.mts.map +1 -1
- package/dist/components/dataTable/dataTable.props.d.ts +21 -1
- package/dist/components/dataTable/dataTable.props.d.ts.map +1 -1
- package/dist/components/dataTable/dataTable.props.js +23 -1
- package/dist/components/dataTable/dataTable.props.js.map +2 -2
- package/dist/components/dialog/Dialog.cjs +2 -1
- package/dist/components/dialog/Dialog.cjs.map +2 -2
- package/dist/components/dialog/Dialog.d.cts.map +1 -1
- package/dist/components/dialog/Dialog.d.mts.map +1 -1
- package/dist/components/dialog/Dialog.d.ts.map +1 -1
- package/dist/components/dialog/Dialog.js +2 -1
- package/dist/components/dialog/Dialog.js.map +2 -2
- package/dist/components/dropdown-menu.css +1 -1
- package/dist/components/empty-state.css +5 -0
- package/dist/components/fileUpload/FileUpload.cjs +10 -1
- package/dist/components/fileUpload/FileUpload.cjs.map +2 -2
- package/dist/components/fileUpload/FileUpload.d.cts +1 -0
- package/dist/components/fileUpload/FileUpload.d.cts.map +1 -1
- package/dist/components/fileUpload/FileUpload.d.mts +1 -0
- package/dist/components/fileUpload/FileUpload.d.mts.map +1 -1
- package/dist/components/fileUpload/FileUpload.d.ts +1 -0
- package/dist/components/fileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/fileUpload/FileUpload.js +10 -1
- package/dist/components/fileUpload/FileUpload.js.map +2 -2
- package/dist/components/filter-bar.css +380 -8
- package/dist/components/filterBar/FilterBar.cjs +630 -1
- package/dist/components/filterBar/FilterBar.cjs.map +2 -2
- package/dist/components/filterBar/FilterBar.d.cts +132 -2
- package/dist/components/filterBar/FilterBar.d.cts.map +1 -1
- package/dist/components/filterBar/FilterBar.d.mts +132 -2
- package/dist/components/filterBar/FilterBar.d.mts.map +1 -1
- package/dist/components/filterBar/FilterBar.d.ts +132 -2
- package/dist/components/filterBar/FilterBar.d.ts.map +1 -1
- package/dist/components/filterBar/FilterBar.js +631 -2
- package/dist/components/filterBar/FilterBar.js.map +2 -2
- package/dist/components/floating-panel.css +1 -1
- package/dist/components/fontProvider/FontProvider.cjs +1 -1
- package/dist/components/fontProvider/FontProvider.cjs.map +1 -1
- package/dist/components/fontProvider/FontProvider.js +1 -1
- package/dist/components/fontProvider/FontProvider.js.map +1 -1
- package/dist/components/icon/Icon.cjs +25 -2
- package/dist/components/icon/Icon.cjs.map +2 -2
- package/dist/components/icon/Icon.d.cts +29 -1
- package/dist/components/icon/Icon.d.cts.map +1 -1
- package/dist/components/icon/Icon.d.mts +29 -1
- package/dist/components/icon/Icon.d.mts.map +1 -1
- package/dist/components/icon/Icon.d.ts +29 -1
- package/dist/components/icon/Icon.d.ts.map +1 -1
- package/dist/components/icon/Icon.js +33 -2
- package/dist/components/icon/Icon.js.map +2 -2
- package/dist/components/icon/icons.cjs +16 -0
- package/dist/components/icon/icons.cjs.map +2 -2
- package/dist/components/icon/icons.d.cts +40 -0
- package/dist/components/icon/icons.d.cts.map +1 -1
- package/dist/components/icon/icons.d.mts +40 -0
- package/dist/components/icon/icons.d.mts.map +1 -1
- package/dist/components/icon/icons.d.ts +40 -0
- package/dist/components/icon/icons.d.ts.map +1 -1
- package/dist/components/icon/icons.js +16 -0
- package/dist/components/icon/icons.js.map +2 -2
- package/dist/components/icon-button.css +29 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.cjs.map +2 -2
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.cts.map +1 -1
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.d.mts.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/item/Item.cjs +1 -1
- package/dist/components/item/Item.cjs.map +2 -2
- package/dist/components/item/Item.js +1 -1
- package/dist/components/item/Item.js.map +2 -2
- package/dist/components/item.css +12 -1
- package/dist/components/marquee/Marquee.cjs +1 -1
- package/dist/components/marquee/Marquee.cjs.map +2 -2
- package/dist/components/marquee/Marquee.js +1 -1
- package/dist/components/marquee/Marquee.js.map +2 -2
- package/dist/components/marquee.css +6 -0
- package/dist/components/menu/Menu.cjs +3 -1
- package/dist/components/menu/Menu.cjs.map +2 -2
- package/dist/components/menu/Menu.d.cts.map +1 -1
- package/dist/components/menu/Menu.d.mts.map +1 -1
- package/dist/components/menu/Menu.d.ts.map +1 -1
- package/dist/components/menu/Menu.js +3 -1
- package/dist/components/menu/Menu.js.map +2 -2
- package/dist/components/menubar.css +1 -1
- package/dist/components/metric.css +5 -0
- package/dist/components/pagination/Pagination.cjs +143 -17
- package/dist/components/pagination/Pagination.cjs.map +2 -2
- package/dist/components/pagination/Pagination.d.cts +64 -4
- package/dist/components/pagination/Pagination.d.cts.map +1 -1
- package/dist/components/pagination/Pagination.d.mts +64 -4
- package/dist/components/pagination/Pagination.d.mts.map +1 -1
- package/dist/components/pagination/Pagination.d.ts +64 -4
- package/dist/components/pagination/Pagination.d.ts.map +1 -1
- package/dist/components/pagination/Pagination.js +143 -17
- package/dist/components/pagination/Pagination.js.map +2 -2
- package/dist/components/pagination.css +50 -8
- package/dist/components/phoneInput/PhoneInput.cjs +18 -13
- package/dist/components/phoneInput/PhoneInput.cjs.map +2 -2
- package/dist/components/phoneInput/PhoneInput.d.cts.map +1 -1
- package/dist/components/phoneInput/PhoneInput.d.mts.map +1 -1
- package/dist/components/phoneInput/PhoneInput.d.ts.map +1 -1
- package/dist/components/phoneInput/PhoneInput.js +19 -14
- package/dist/components/phoneInput/PhoneInput.js.map +2 -2
- package/dist/components/popover/Popover.cjs +2 -1
- package/dist/components/popover/Popover.cjs.map +2 -2
- package/dist/components/popover/Popover.d.cts.map +1 -1
- package/dist/components/popover/Popover.d.mts.map +1 -1
- package/dist/components/popover/Popover.d.ts.map +1 -1
- package/dist/components/popover/Popover.js +2 -1
- package/dist/components/popover/Popover.js.map +2 -2
- package/dist/components/prose.css +1 -1
- package/dist/components/qr-code.css +5 -15
- package/dist/components/radio-group.css +19 -0
- package/dist/components/radioGroup/RadioGroup.cjs +3 -2
- package/dist/components/radioGroup/RadioGroup.cjs.map +2 -2
- package/dist/components/radioGroup/RadioGroup.d.cts.map +1 -1
- package/dist/components/radioGroup/RadioGroup.d.mts.map +1 -1
- package/dist/components/radioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/components/radioGroup/RadioGroup.js +3 -2
- package/dist/components/radioGroup/RadioGroup.js.map +2 -2
- package/dist/components/radioGroup/radioGroup.props.cjs +1 -1
- package/dist/components/radioGroup/radioGroup.props.cjs.map +2 -2
- package/dist/components/radioGroup/radioGroup.props.d.cts +1 -1
- package/dist/components/radioGroup/radioGroup.props.d.mts +1 -1
- package/dist/components/radioGroup/radioGroup.props.d.ts +1 -1
- package/dist/components/radioGroup/radioGroup.props.js +1 -1
- package/dist/components/radioGroup/radioGroup.props.js.map +2 -2
- package/dist/components/rating.css +12 -0
- package/dist/components/result.css +2 -1
- package/dist/components/richTextEditor/RichTextEditor.cjs +11 -3
- package/dist/components/richTextEditor/RichTextEditor.cjs.map +2 -2
- package/dist/components/richTextEditor/RichTextEditor.d.cts.map +1 -1
- package/dist/components/richTextEditor/RichTextEditor.d.mts.map +1 -1
- package/dist/components/richTextEditor/RichTextEditor.d.ts.map +1 -1
- package/dist/components/richTextEditor/RichTextEditor.js +11 -3
- package/dist/components/richTextEditor/RichTextEditor.js.map +2 -2
- package/dist/components/segmented-control.css +80 -4
- package/dist/components/segmentedControl/SegmentedControl.cjs +18 -5
- package/dist/components/segmentedControl/SegmentedControl.cjs.map +2 -2
- package/dist/components/segmentedControl/SegmentedControl.d.cts.map +1 -1
- package/dist/components/segmentedControl/SegmentedControl.d.mts.map +1 -1
- package/dist/components/segmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/components/segmentedControl/SegmentedControl.js +18 -5
- package/dist/components/segmentedControl/SegmentedControl.js.map +2 -2
- package/dist/components/segmentedControl/segmentedControl.props.cjs +10 -0
- package/dist/components/segmentedControl/segmentedControl.props.cjs.map +2 -2
- package/dist/components/segmentedControl/segmentedControl.props.d.cts +9 -0
- package/dist/components/segmentedControl/segmentedControl.props.d.cts.map +1 -1
- package/dist/components/segmentedControl/segmentedControl.props.d.mts +9 -0
- package/dist/components/segmentedControl/segmentedControl.props.d.mts.map +1 -1
- package/dist/components/segmentedControl/segmentedControl.props.d.ts +9 -0
- package/dist/components/segmentedControl/segmentedControl.props.d.ts.map +1 -1
- package/dist/components/segmentedControl/segmentedControl.props.js +10 -0
- package/dist/components/segmentedControl/segmentedControl.props.js.map +2 -2
- package/dist/components/select/Select.cjs +3 -1
- package/dist/components/select/Select.cjs.map +2 -2
- package/dist/components/select/Select.d.cts.map +1 -1
- package/dist/components/select/Select.d.mts.map +1 -1
- package/dist/components/select/Select.d.ts.map +1 -1
- package/dist/components/select/Select.js +3 -1
- package/dist/components/select/Select.js.map +2 -2
- package/dist/components/select.css +1 -1
- package/dist/components/sonner.css +1 -1
- package/dist/components/sortableList/SortableList.cjs +8 -2
- package/dist/components/sortableList/SortableList.cjs.map +2 -2
- package/dist/components/sortableList/SortableList.d.cts.map +1 -1
- package/dist/components/sortableList/SortableList.d.mts.map +1 -1
- package/dist/components/sortableList/SortableList.d.ts.map +1 -1
- package/dist/components/sortableList/SortableList.js +8 -2
- package/dist/components/sortableList/SortableList.js.map +2 -2
- package/dist/components/stat-card.css +2 -0
- package/dist/components/table/Table.cjs +3 -2
- package/dist/components/table/Table.cjs.map +2 -2
- package/dist/components/table/Table.d.cts.map +1 -1
- package/dist/components/table/Table.d.mts.map +1 -1
- package/dist/components/table/Table.d.ts.map +1 -1
- package/dist/components/table/Table.js +3 -2
- package/dist/components/table/Table.js.map +2 -2
- package/dist/components/table/table.props.cjs +6 -0
- package/dist/components/table/table.props.cjs.map +2 -2
- package/dist/components/table/table.props.d.cts +5 -0
- package/dist/components/table/table.props.d.cts.map +1 -1
- package/dist/components/table/table.props.d.mts +5 -0
- package/dist/components/table/table.props.d.mts.map +1 -1
- package/dist/components/table/table.props.d.ts +5 -0
- package/dist/components/table/table.props.d.ts.map +1 -1
- package/dist/components/table/table.props.js +6 -0
- package/dist/components/table/table.props.js.map +2 -2
- package/dist/components/table.css +20 -13
- package/dist/components/tabs.css +10 -0
- package/dist/components/timeline.css +54 -18
- package/dist/components/toast.css +33 -1
- package/dist/components/toggle-group.css +5 -0
- package/dist/components.css +1 -2
- package/dist/docs/README.md +1 -1
- package/dist/docs/component-contract.md +4 -4
- package/dist/docs/component-index.json +9 -9
- package/dist/docs/components/banner.md +152 -0
- package/dist/docs/components/button-group.md +4 -3
- package/dist/docs/components/button.md +2 -2
- package/dist/docs/components/card.md +1 -0
- package/dist/docs/components/carousel.md +55 -32
- package/dist/docs/components/chart.md +25 -7
- package/dist/docs/components/checkbox.md +4 -0
- package/dist/docs/components/combobox.md +3 -1
- package/dist/docs/components/command.md +2 -2
- package/dist/docs/components/copy-field.md +2 -2
- package/dist/docs/components/data-list.md +15 -3
- package/dist/docs/components/data-table.md +98 -17
- package/dist/docs/components/dialog.md +4 -0
- package/dist/docs/components/dropdown-menu.md +2 -1
- package/dist/docs/components/empty-state.md +3 -1
- package/dist/docs/components/file-upload.md +1 -0
- package/dist/docs/components/filter-bar.md +193 -8
- package/dist/docs/components/floating-panel.md +8 -8
- package/dist/docs/components/icon-button.md +4 -1
- package/dist/docs/components/item.md +18 -13
- package/dist/docs/components/marquee.md +2 -2
- package/dist/docs/components/menu.md +4 -1
- package/dist/docs/components/metric.md +4 -1
- package/dist/docs/components/pagination.md +88 -17
- package/dist/docs/components/pills.md +1 -1
- package/dist/docs/components/popover.md +2 -0
- package/dist/docs/components/prose.md +5 -1
- package/dist/docs/components/qr-code.md +14 -13
- package/dist/docs/components/radio-group.md +5 -2
- package/dist/docs/components/rating.md +2 -0
- package/dist/docs/components/result.md +6 -0
- package/dist/docs/components/segmented-control.md +7 -2
- package/dist/docs/components/select.md +3 -2
- package/dist/docs/components/sidebar.md +3 -1
- package/dist/docs/components/sonner.md +1 -1
- package/dist/docs/components/sortable-list.md +2 -0
- package/dist/docs/components/stat-card.md +5 -4
- package/dist/docs/components/stepper.md +1 -0
- package/dist/docs/components/table.md +14 -5
- package/dist/docs/components/tag.md +4 -2
- package/dist/docs/components/timeline.md +9 -5
- package/dist/docs/components/toast.md +1 -1
- package/dist/docs/components/toggle-group.md +2 -1
- package/dist/fonts.css +1 -1
- package/dist/generated/tokens.cjs +1 -1
- package/dist/generated/tokens.cjs.map +1 -1
- package/dist/generated/tokens.js +1 -1
- package/dist/generated/tokens.js.map +1 -1
- package/dist/motion.css +18 -3
- package/dist/styles.css +1249 -292
- package/dist/tokens.css +21 -15
- package/package.json +1 -1
- package/dist/components/control-group.css +0 -142
- package/dist/components/controlGroup/ControlGroup.cjs.map +0 -7
- package/dist/components/controlGroup/ControlGroup.d.cts +0 -16
- package/dist/components/controlGroup/ControlGroup.d.cts.map +0 -1
- package/dist/components/controlGroup/ControlGroup.d.mts +0 -16
- package/dist/components/controlGroup/ControlGroup.d.mts.map +0 -1
- package/dist/components/controlGroup/ControlGroup.d.ts +0 -16
- package/dist/components/controlGroup/ControlGroup.d.ts.map +0 -1
- package/dist/components/controlGroup/ControlGroup.js +0 -26
- package/dist/components/controlGroup/ControlGroup.js.map +0 -7
- package/dist/components/controlGroup/controlGroup.props.cjs.map +0 -7
- package/dist/components/controlGroup/controlGroup.props.d.cts +0 -18
- package/dist/components/controlGroup/controlGroup.props.d.cts.map +0 -1
- package/dist/components/controlGroup/controlGroup.props.d.mts +0 -18
- package/dist/components/controlGroup/controlGroup.props.d.mts.map +0 -1
- package/dist/components/controlGroup/controlGroup.props.d.ts +0 -18
- package/dist/components/controlGroup/controlGroup.props.d.ts.map +0 -1
- package/dist/components/controlGroup/controlGroup.props.js +0 -20
- package/dist/components/controlGroup/controlGroup.props.js.map +0 -7
- package/dist/docs/components/control-group.md +0 -261
|
@@ -62,6 +62,12 @@ SortableListHandle.displayName = "SortableListHandle";
|
|
|
62
62
|
const SortableListOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ...props, ref, className: (0, import_classnames.default)("dsx-sortable-list__overlay", className) }));
|
|
63
63
|
SortableListOverlay.displayName = "SortableListOverlay";
|
|
64
64
|
const SortableListRoot = React.forwardRef(({ ids, disabledIds = [], onReorder, announcements, className, children, ...props }, ref) => {
|
|
65
|
+
const rootRef = React.useRef(null);
|
|
66
|
+
const mergedRootRef = React.useCallback((node) => {
|
|
67
|
+
rootRef.current = node;
|
|
68
|
+
if (typeof ref === "function") ref(node);
|
|
69
|
+
else if (ref) ref.current = node;
|
|
70
|
+
}, [ref]);
|
|
65
71
|
const [activeId, setActiveId] = React.useState(null);
|
|
66
72
|
const [message, setMessage] = React.useState("");
|
|
67
73
|
const sensors = (0, import_core.useSensors)((0, import_core.useSensor)(import_core.PointerSensor), (0, import_core.useSensor)(import_core.TouchSensor), (0, import_core.useSensor)(import_core.KeyboardSensor, { coordinateGetter: import_sortable.sortableKeyboardCoordinates }));
|
|
@@ -80,10 +86,10 @@ const SortableListRoot = React.forwardRef(({ ids, disabledIds = [], onReorder, a
|
|
|
80
86
|
setMessage(announcements?.moved?.(event.active.id, from, to) ?? `Moved item ${String(event.active.id)} from position ${from + 1} to ${to + 1}`);
|
|
81
87
|
onReorder?.({ ids: next, activeIndex: from, overIndex: to });
|
|
82
88
|
const escapedId = globalThis.CSS?.escape?.(String(event.active.id)) ?? String(event.active.id).replace(/["\\]/g, "\\$&");
|
|
83
|
-
requestAnimationFrame(() =>
|
|
89
|
+
requestAnimationFrame(() => rootRef.current?.querySelector(`[data-sortable-id="${escapedId}"] .dsx-sortable-list__handle`)?.focus());
|
|
84
90
|
};
|
|
85
91
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.DndContext, { sensors, collisionDetection: import_core.closestCenter, onDragStart: handleStart, onDragCancel: () => setActiveId(null), onDragEnd: handleEnd, children: [
|
|
86
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sortable.SortableContext, { items: ids, strategy: import_sortable.verticalListSortingStrategy, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ...props, ref, className: (0, import_classnames.default)("dsx-sortable-list", className), role: props.role ?? "list", children: React.Children.map(children, (child) => React.isValidElement(child) ? React.cloneElement(child, { "data-sortable-id": String(child.props.id), disabled: child.props.disabled || disabledIds.includes(child.props.id), role: child.props.role ?? "listitem" }) : child) }) }),
|
|
92
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sortable.SortableContext, { items: ids, strategy: import_sortable.verticalListSortingStrategy, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ...props, ref: mergedRootRef, className: (0, import_classnames.default)("dsx-sortable-list", className), role: props.role ?? "list", children: React.Children.map(children, (child) => React.isValidElement(child) ? React.cloneElement(child, { "data-sortable-id": String(child.props.id), disabled: child.props.disabled || disabledIds.includes(child.props.id), role: child.props.role ?? "listitem" }) : child) }) }),
|
|
87
93
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_VisuallyHidden.VisuallyHidden, { "aria-live": "assertive", children: message }),
|
|
88
94
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.DragOverlay, { children: activeId == null ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SortableListOverlay, { children: activeContent }) })
|
|
89
95
|
] });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/sortableList/SortableList.tsx"],
|
|
4
|
-
"sourcesContent": ["'use client'\nimport * as React from 'react'\nimport classNames from 'classnames'\nimport { DndContext, DragOverlay, KeyboardSensor, PointerSensor, TouchSensor, closestCenter, useSensor, useSensors, type DragEndEvent, type DragStartEvent } from '@dnd-kit/core'\nimport { SortableContext, arrayMove, sortableKeyboardCoordinates, useSortable, verticalListSortingStrategy } from '@dnd-kit/sortable'\nimport { CSS as TransformCSS } from '@dnd-kit/utilities'\n\nimport { VisuallyHidden } from '../visuallyHidden/VisuallyHidden'\n\nimport type {\n SortableId,\n SortableListItemProps,\n SortableListRootProps,\n} from './sortableList.props'\n\nconst SortableContextValue = React.createContext<{ attributes?: ReturnType<typeof useSortable>['attributes']; listeners?: ReturnType<typeof useSortable>['listeners'] }>({})\nconst SortableListItem = React.forwardRef<HTMLDivElement, SortableListItemProps>(({ id, disabled, className, style, children, ...props }, ref) => {\n const sortable = useSortable({ id, disabled })\n const mergedRef = (node: HTMLDivElement | null) => { sortable.setNodeRef(node); if (typeof ref === 'function') ref(node); else if (ref) ref.current = node }\n return <SortableContextValue.Provider value={{ attributes: sortable.attributes, listeners: sortable.listeners }}><div {...props} ref={mergedRef} className={classNames('dsx-sortable-list__item', className)} data-disabled={disabled || undefined} data-dragging={sortable.isDragging || undefined} style={{ ...style, transform: TransformCSS.Transform.toString(sortable.transform), transition: sortable.transition }}>{children}</div></SortableContextValue.Provider>\n})\nSortableListItem.displayName = 'SortableListItem'\n\nconst SortableListHandle = React.forwardRef<HTMLButtonElement, React.ButtonHTMLAttributes<HTMLButtonElement>>(({ className, children = '\u22EE\u22EE', ...props }, ref) => {\n const context = React.useContext(SortableContextValue)\n return <button {...props} {...context.attributes} {...context.listeners} ref={ref} type=\"button\" className={classNames('dsx-sortable-list__handle', className)} aria-label={props['aria-label'] ?? 'Reorder item'}>{children}</button>\n})\nSortableListHandle.displayName = 'SortableListHandle'\nconst SortableListOverlay = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => <div {...props} ref={ref} className={classNames('dsx-sortable-list__overlay', className)} />)\nSortableListOverlay.displayName = 'SortableListOverlay'\n\nconst SortableListRoot = React.forwardRef<HTMLDivElement, SortableListRootProps>(({ ids, disabledIds = [], onReorder, announcements, className, children, ...props }, ref) => {\n const [activeId, setActiveId] = React.useState<SortableId | null>(null)\n const [message, setMessage] = React.useState('')\n const sensors = useSensors(useSensor(PointerSensor), useSensor(TouchSensor), useSensor(KeyboardSensor, { coordinateGetter: sortableKeyboardCoordinates }))\n const handleStart = (event: DragStartEvent) => setActiveId(event.active.id)\n const activeChild = React.Children.toArray(children).find(\n (child) => React.isValidElement(child) && (child.props as SortableListItemProps).id === activeId,\n )\n const activeContent = React.isValidElement<{ children?: React.ReactNode }>(activeChild)\n ? activeChild.props.children\n : activeId == null ? null : String(activeId)\n const handleEnd = (event: DragEndEvent) => {\n setActiveId(null)\n if (!event.over || event.active.id === event.over.id) return\n const from = ids.indexOf(event.active.id); const to = ids.indexOf(event.over.id)\n if (from < 0 || to < 0 || disabledIds.includes(event.active.id) || disabledIds.includes(event.over.id)) return\n const next = arrayMove(ids, from, to)\n setMessage(announcements?.moved?.(event.active.id, from, to) ?? `Moved item ${String(event.active.id)} from position ${from + 1} to ${to + 1}`)\n onReorder?.({ ids: next, activeIndex: from, overIndex: to })\n const escapedId = globalThis.CSS?.escape?.(String(event.active.id)) ?? String(event.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M,EAAE;AACpC,eAAW,eAAe,QAAQ,MAAM,OAAO,IAAI,MAAM,EAAE,KAAK,cAAc,OAAO,MAAM,OAAO,EAAE,CAAC,kBAAkB,OAAO,CAAC,OAAO,KAAK,CAAC,EAAE;AAC9I,gBAAY,EAAE,KAAK,MAAM,aAAa,MAAM,WAAW,GAAG,CAAC;AAC3D,UAAM,YAAY,WAAW,KAAK,SAAS,OAAO,MAAM,OAAO,EAAE,CAAC,KAAK,OAAO,MAAM,OAAO,EAAE,EAAE,QAAQ,UAAU,MAAM;AACvH,0BAAsB,MAAM,SAAS,cAA2B,sBAAsB,SAAS,
|
|
4
|
+
"sourcesContent": ["'use client'\nimport * as React from 'react'\nimport classNames from 'classnames'\nimport { DndContext, DragOverlay, KeyboardSensor, PointerSensor, TouchSensor, closestCenter, useSensor, useSensors, type DragEndEvent, type DragStartEvent } from '@dnd-kit/core'\nimport { SortableContext, arrayMove, sortableKeyboardCoordinates, useSortable, verticalListSortingStrategy } from '@dnd-kit/sortable'\nimport { CSS as TransformCSS } from '@dnd-kit/utilities'\n\nimport { VisuallyHidden } from '../visuallyHidden/VisuallyHidden'\n\nimport type {\n SortableId,\n SortableListItemProps,\n SortableListRootProps,\n} from './sortableList.props'\n\nconst SortableContextValue = React.createContext<{ attributes?: ReturnType<typeof useSortable>['attributes']; listeners?: ReturnType<typeof useSortable>['listeners'] }>({})\nconst SortableListItem = React.forwardRef<HTMLDivElement, SortableListItemProps>(({ id, disabled, className, style, children, ...props }, ref) => {\n const sortable = useSortable({ id, disabled })\n const mergedRef = (node: HTMLDivElement | null) => { sortable.setNodeRef(node); if (typeof ref === 'function') ref(node); else if (ref) ref.current = node }\n return <SortableContextValue.Provider value={{ attributes: sortable.attributes, listeners: sortable.listeners }}><div {...props} ref={mergedRef} className={classNames('dsx-sortable-list__item', className)} data-disabled={disabled || undefined} data-dragging={sortable.isDragging || undefined} style={{ ...style, transform: TransformCSS.Transform.toString(sortable.transform), transition: sortable.transition }}>{children}</div></SortableContextValue.Provider>\n})\nSortableListItem.displayName = 'SortableListItem'\n\nconst SortableListHandle = React.forwardRef<HTMLButtonElement, React.ButtonHTMLAttributes<HTMLButtonElement>>(({ className, children = '\u22EE\u22EE', ...props }, ref) => {\n const context = React.useContext(SortableContextValue)\n return <button {...props} {...context.attributes} {...context.listeners} ref={ref} type=\"button\" className={classNames('dsx-sortable-list__handle', className)} aria-label={props['aria-label'] ?? 'Reorder item'}>{children}</button>\n})\nSortableListHandle.displayName = 'SortableListHandle'\nconst SortableListOverlay = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => <div {...props} ref={ref} className={classNames('dsx-sortable-list__overlay', className)} />)\nSortableListOverlay.displayName = 'SortableListOverlay'\n\nconst SortableListRoot = React.forwardRef<HTMLDivElement, SortableListRootProps>(({ ids, disabledIds = [], onReorder, announcements, className, children, ...props }, ref) => {\n const rootRef = React.useRef<HTMLDivElement | null>(null)\n const mergedRootRef = React.useCallback((node: HTMLDivElement | null) => {\n rootRef.current = node\n if (typeof ref === 'function') ref(node)\n else if (ref) ref.current = node\n }, [ref])\n const [activeId, setActiveId] = React.useState<SortableId | null>(null)\n const [message, setMessage] = React.useState('')\n const sensors = useSensors(useSensor(PointerSensor), useSensor(TouchSensor), useSensor(KeyboardSensor, { coordinateGetter: sortableKeyboardCoordinates }))\n const handleStart = (event: DragStartEvent) => setActiveId(event.active.id)\n const activeChild = React.Children.toArray(children).find(\n (child) => React.isValidElement(child) && (child.props as SortableListItemProps).id === activeId,\n )\n const activeContent = React.isValidElement<{ children?: React.ReactNode }>(activeChild)\n ? activeChild.props.children\n : activeId == null ? null : String(activeId)\n const handleEnd = (event: DragEndEvent) => {\n setActiveId(null)\n if (!event.over || event.active.id === event.over.id) return\n const from = ids.indexOf(event.active.id); const to = ids.indexOf(event.over.id)\n if (from < 0 || to < 0 || disabledIds.includes(event.active.id) || disabledIds.includes(event.over.id)) return\n const next = arrayMove(ids, from, to)\n setMessage(announcements?.moved?.(event.active.id, from, to) ?? `Moved item ${String(event.active.id)} from position ${from + 1} to ${to + 1}`)\n onReorder?.({ ids: next, activeIndex: from, overIndex: to })\n const escapedId = globalThis.CSS?.escape?.(String(event.active.id)) ?? String(event.active.id).replace(/[\"\\\\]/g, '\\\\$&')\n requestAnimationFrame(() => rootRef.current?.querySelector<HTMLElement>(`[data-sortable-id=\"${escapedId}\"] .dsx-sortable-list__handle`)?.focus())\n }\n return <DndContext sensors={sensors} collisionDetection={closestCenter} onDragStart={handleStart} onDragCancel={() => setActiveId(null)} onDragEnd={handleEnd}><SortableContext items={ids} strategy={verticalListSortingStrategy}><div {...props} ref={mergedRootRef} className={classNames('dsx-sortable-list', className)} role={props.role ?? 'list'}>{React.Children.map(children, (child) => React.isValidElement(child) ? React.cloneElement(child as React.ReactElement<Record<string, unknown>>, { 'data-sortable-id': String((child.props as SortableListItemProps).id), disabled: (child.props as SortableListItemProps).disabled || disabledIds.includes((child.props as SortableListItemProps).id), role: (child.props as SortableListItemProps).role ?? 'listitem' }) : child)}</div></SortableContext><VisuallyHidden aria-live=\"assertive\">{message}</VisuallyHidden><DragOverlay>{activeId == null ? null : <SortableListOverlay>{activeContent}</SortableListOverlay>}</DragOverlay></DndContext>\n})\nSortableListRoot.displayName = 'SortableList'\n\nconst SortableList = Object.assign(SortableListRoot, { Root: SortableListRoot, Item: SortableListItem, Handle: SortableListHandle, Overlay: SortableListOverlay })\nexport { SortableList, SortableListHandle, SortableListItem, SortableListOverlay, SortableListRoot }\nexport type {\n SortableId,\n SortableListChange,\n SortableListItemProps,\n SortableListRootProps,\n} from './sortableList.props'\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,YAAuB;AACvB,wBAAuB;AACvB,kBAAkK;AAClK,sBAAkH;AAClH,uBAAoC;AAEpC,4BAA+B;AAYoF;AAJnH,MAAM,uBAAuB,M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
1
|
-
{"version":3,"file":"SortableList.d.cts","sourceRoot":"","sources":["../../../src/components/sortableList/SortableList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,OAAO,KAAK,EAEV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,sBAAsB,CAAA;AAG7B,QAAA,MAAM,gBAAgB,8FAIpB,CAAA;AAGF,QAAA,MAAM,kBAAkB,yHAGtB,CAAA;AAEF,QAAA,MAAM,mBAAmB,6GAAyM,CAAA;AAGlO,QAAA,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"SortableList.d.cts","sourceRoot":"","sources":["../../../src/components/sortableList/SortableList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,OAAO,KAAK,EAEV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,sBAAsB,CAAA;AAG7B,QAAA,MAAM,gBAAgB,8FAIpB,CAAA;AAGF,QAAA,MAAM,kBAAkB,yHAGtB,CAAA;AAEF,QAAA,MAAM,mBAAmB,6GAAyM,CAAA;AAGlO,QAAA,MAAM,gBAAgB,8FA6BpB,CAAA;AAGF,QAAA,MAAM,YAAY;;;;;CAAgJ,CAAA;AAClK,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,CAAA;AACpG,YAAY,EACV,UAAU,EACV,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,sBAAsB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortableList.d.mts","sourceRoot":"","sources":["../../../src/components/sortableList/SortableList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,OAAO,KAAK,EAEV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,sBAAsB,CAAA;AAG7B,QAAA,MAAM,gBAAgB,8FAIpB,CAAA;AAGF,QAAA,MAAM,kBAAkB,yHAGtB,CAAA;AAEF,QAAA,MAAM,mBAAmB,6GAAyM,CAAA;AAGlO,QAAA,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"SortableList.d.mts","sourceRoot":"","sources":["../../../src/components/sortableList/SortableList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,OAAO,KAAK,EAEV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,sBAAsB,CAAA;AAG7B,QAAA,MAAM,gBAAgB,8FAIpB,CAAA;AAGF,QAAA,MAAM,kBAAkB,yHAGtB,CAAA;AAEF,QAAA,MAAM,mBAAmB,6GAAyM,CAAA;AAGlO,QAAA,MAAM,gBAAgB,8FA6BpB,CAAA;AAGF,QAAA,MAAM,YAAY;;;;;CAAgJ,CAAA;AAClK,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,CAAA;AACpG,YAAY,EACV,UAAU,EACV,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,sBAAsB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortableList.d.ts","sourceRoot":"","sources":["../../../src/components/sortableList/SortableList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,OAAO,KAAK,EAEV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,sBAAsB,CAAA;AAG7B,QAAA,MAAM,gBAAgB,8FAIpB,CAAA;AAGF,QAAA,MAAM,kBAAkB,yHAGtB,CAAA;AAEF,QAAA,MAAM,mBAAmB,6GAAyM,CAAA;AAGlO,QAAA,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"SortableList.d.ts","sourceRoot":"","sources":["../../../src/components/sortableList/SortableList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,OAAO,KAAK,EAEV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,sBAAsB,CAAA;AAG7B,QAAA,MAAM,gBAAgB,8FAIpB,CAAA;AAGF,QAAA,MAAM,kBAAkB,yHAGtB,CAAA;AAEF,QAAA,MAAM,mBAAmB,6GAAyM,CAAA;AAGlO,QAAA,MAAM,gBAAgB,8FA6BpB,CAAA;AAGF,QAAA,MAAM,YAAY;;;;;CAAgJ,CAAA;AAClK,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,CAAA;AACpG,YAAY,EACV,UAAU,EACV,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,sBAAsB,CAAA"}
|
|
@@ -25,6 +25,12 @@ SortableListHandle.displayName = "SortableListHandle";
|
|
|
25
25
|
const SortableListOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ...props, ref, className: classNames("dsx-sortable-list__overlay", className) }));
|
|
26
26
|
SortableListOverlay.displayName = "SortableListOverlay";
|
|
27
27
|
const SortableListRoot = React.forwardRef(({ ids, disabledIds = [], onReorder, announcements, className, children, ...props }, ref) => {
|
|
28
|
+
const rootRef = React.useRef(null);
|
|
29
|
+
const mergedRootRef = React.useCallback((node) => {
|
|
30
|
+
rootRef.current = node;
|
|
31
|
+
if (typeof ref === "function") ref(node);
|
|
32
|
+
else if (ref) ref.current = node;
|
|
33
|
+
}, [ref]);
|
|
28
34
|
const [activeId, setActiveId] = React.useState(null);
|
|
29
35
|
const [message, setMessage] = React.useState("");
|
|
30
36
|
const sensors = useSensors(useSensor(PointerSensor), useSensor(TouchSensor), useSensor(KeyboardSensor, { coordinateGetter: sortableKeyboardCoordinates }));
|
|
@@ -43,10 +49,10 @@ const SortableListRoot = React.forwardRef(({ ids, disabledIds = [], onReorder, a
|
|
|
43
49
|
setMessage(announcements?.moved?.(event.active.id, from, to) ?? `Moved item ${String(event.active.id)} from position ${from + 1} to ${to + 1}`);
|
|
44
50
|
onReorder?.({ ids: next, activeIndex: from, overIndex: to });
|
|
45
51
|
const escapedId = globalThis.CSS?.escape?.(String(event.active.id)) ?? String(event.active.id).replace(/["\\]/g, "\\$&");
|
|
46
|
-
requestAnimationFrame(() =>
|
|
52
|
+
requestAnimationFrame(() => rootRef.current?.querySelector(`[data-sortable-id="${escapedId}"] .dsx-sortable-list__handle`)?.focus());
|
|
47
53
|
};
|
|
48
54
|
return /* @__PURE__ */ jsxs(DndContext, { sensors, collisionDetection: closestCenter, onDragStart: handleStart, onDragCancel: () => setActiveId(null), onDragEnd: handleEnd, children: [
|
|
49
|
-
/* @__PURE__ */ jsx(SortableContext, { items: ids, strategy: verticalListSortingStrategy, children: /* @__PURE__ */ jsx("div", { ...props, ref, className: classNames("dsx-sortable-list", className), role: props.role ?? "list", children: React.Children.map(children, (child) => React.isValidElement(child) ? React.cloneElement(child, { "data-sortable-id": String(child.props.id), disabled: child.props.disabled || disabledIds.includes(child.props.id), role: child.props.role ?? "listitem" }) : child) }) }),
|
|
55
|
+
/* @__PURE__ */ jsx(SortableContext, { items: ids, strategy: verticalListSortingStrategy, children: /* @__PURE__ */ jsx("div", { ...props, ref: mergedRootRef, className: classNames("dsx-sortable-list", className), role: props.role ?? "list", children: React.Children.map(children, (child) => React.isValidElement(child) ? React.cloneElement(child, { "data-sortable-id": String(child.props.id), disabled: child.props.disabled || disabledIds.includes(child.props.id), role: child.props.role ?? "listitem" }) : child) }) }),
|
|
50
56
|
/* @__PURE__ */ jsx(VisuallyHidden, { "aria-live": "assertive", children: message }),
|
|
51
57
|
/* @__PURE__ */ jsx(DragOverlay, { children: activeId == null ? null : /* @__PURE__ */ jsx(SortableListOverlay, { children: activeContent }) })
|
|
52
58
|
] });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/sortableList/SortableList.tsx"],
|
|
4
|
-
"sourcesContent": ["'use client'\nimport * as React from 'react'\nimport classNames from 'classnames'\nimport { DndContext, DragOverlay, KeyboardSensor, PointerSensor, TouchSensor, closestCenter, useSensor, useSensors, type DragEndEvent, type DragStartEvent } from '@dnd-kit/core'\nimport { SortableContext, arrayMove, sortableKeyboardCoordinates, useSortable, verticalListSortingStrategy } from '@dnd-kit/sortable'\nimport { CSS as TransformCSS } from '@dnd-kit/utilities'\n\nimport { VisuallyHidden } from '../visuallyHidden/VisuallyHidden'\n\nimport type {\n SortableId,\n SortableListItemProps,\n SortableListRootProps,\n} from './sortableList.props'\n\nconst SortableContextValue = React.createContext<{ attributes?: ReturnType<typeof useSortable>['attributes']; listeners?: ReturnType<typeof useSortable>['listeners'] }>({})\nconst SortableListItem = React.forwardRef<HTMLDivElement, SortableListItemProps>(({ id, disabled, className, style, children, ...props }, ref) => {\n const sortable = useSortable({ id, disabled })\n const mergedRef = (node: HTMLDivElement | null) => { sortable.setNodeRef(node); if (typeof ref === 'function') ref(node); else if (ref) ref.current = node }\n return <SortableContextValue.Provider value={{ attributes: sortable.attributes, listeners: sortable.listeners }}><div {...props} ref={mergedRef} className={classNames('dsx-sortable-list__item', className)} data-disabled={disabled || undefined} data-dragging={sortable.isDragging || undefined} style={{ ...style, transform: TransformCSS.Transform.toString(sortable.transform), transition: sortable.transition }}>{children}</div></SortableContextValue.Provider>\n})\nSortableListItem.displayName = 'SortableListItem'\n\nconst SortableListHandle = React.forwardRef<HTMLButtonElement, React.ButtonHTMLAttributes<HTMLButtonElement>>(({ className, children = '\u22EE\u22EE', ...props }, ref) => {\n const context = React.useContext(SortableContextValue)\n return <button {...props} {...context.attributes} {...context.listeners} ref={ref} type=\"button\" className={classNames('dsx-sortable-list__handle', className)} aria-label={props['aria-label'] ?? 'Reorder item'}>{children}</button>\n})\nSortableListHandle.displayName = 'SortableListHandle'\nconst SortableListOverlay = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => <div {...props} ref={ref} className={classNames('dsx-sortable-list__overlay', className)} />)\nSortableListOverlay.displayName = 'SortableListOverlay'\n\nconst SortableListRoot = React.forwardRef<HTMLDivElement, SortableListRootProps>(({ ids, disabledIds = [], onReorder, announcements, className, children, ...props }, ref) => {\n const [activeId, setActiveId] = React.useState<SortableId | null>(null)\n const [message, setMessage] = React.useState('')\n const sensors = useSensors(useSensor(PointerSensor), useSensor(TouchSensor), useSensor(KeyboardSensor, { coordinateGetter: sortableKeyboardCoordinates }))\n const handleStart = (event: DragStartEvent) => setActiveId(event.active.id)\n const activeChild = React.Children.toArray(children).find(\n (child) => React.isValidElement(child) && (child.props as SortableListItemProps).id === activeId,\n )\n const activeContent = React.isValidElement<{ children?: React.ReactNode }>(activeChild)\n ? activeChild.props.children\n : activeId == null ? null : String(activeId)\n const handleEnd = (event: DragEndEvent) => {\n setActiveId(null)\n if (!event.over || event.active.id === event.over.id) return\n const from = ids.indexOf(event.active.id); const to = ids.indexOf(event.over.id)\n if (from < 0 || to < 0 || disabledIds.includes(event.active.id) || disabledIds.includes(event.over.id)) return\n const next = arrayMove(ids, from, to)\n setMessage(announcements?.moved?.(event.active.id, from, to) ?? `Moved item ${String(event.active.id)} from position ${from + 1} to ${to + 1}`)\n onReorder?.({ ids: next, activeIndex: from, overIndex: to })\n const escapedId = globalThis.CSS?.escape?.(String(event.active.id)) ?? String(event.active.id).replace(/[\"\\\\]/g, '\\\\$&')\n requestAnimationFrame(() =>
|
|
5
|
-
"mappings": ";AACA,YAAY,WAAW;AACvB,OAAO,gBAAgB;AACvB,SAAS,YAAY,aAAa,gBAAgB,eAAe,aAAa,eAAe,WAAW,kBAA0D;AAClK,SAAS,iBAAiB,WAAW,6BAA6B,aAAa,mCAAmC;AAClH,SAAS,OAAO,oBAAoB;AAEpC,SAAS,sBAAsB;AAYoF,
|
|
4
|
+
"sourcesContent": ["'use client'\nimport * as React from 'react'\nimport classNames from 'classnames'\nimport { DndContext, DragOverlay, KeyboardSensor, PointerSensor, TouchSensor, closestCenter, useSensor, useSensors, type DragEndEvent, type DragStartEvent } from '@dnd-kit/core'\nimport { SortableContext, arrayMove, sortableKeyboardCoordinates, useSortable, verticalListSortingStrategy } from '@dnd-kit/sortable'\nimport { CSS as TransformCSS } from '@dnd-kit/utilities'\n\nimport { VisuallyHidden } from '../visuallyHidden/VisuallyHidden'\n\nimport type {\n SortableId,\n SortableListItemProps,\n SortableListRootProps,\n} from './sortableList.props'\n\nconst SortableContextValue = React.createContext<{ attributes?: ReturnType<typeof useSortable>['attributes']; listeners?: ReturnType<typeof useSortable>['listeners'] }>({})\nconst SortableListItem = React.forwardRef<HTMLDivElement, SortableListItemProps>(({ id, disabled, className, style, children, ...props }, ref) => {\n const sortable = useSortable({ id, disabled })\n const mergedRef = (node: HTMLDivElement | null) => { sortable.setNodeRef(node); if (typeof ref === 'function') ref(node); else if (ref) ref.current = node }\n return <SortableContextValue.Provider value={{ attributes: sortable.attributes, listeners: sortable.listeners }}><div {...props} ref={mergedRef} className={classNames('dsx-sortable-list__item', className)} data-disabled={disabled || undefined} data-dragging={sortable.isDragging || undefined} style={{ ...style, transform: TransformCSS.Transform.toString(sortable.transform), transition: sortable.transition }}>{children}</div></SortableContextValue.Provider>\n})\nSortableListItem.displayName = 'SortableListItem'\n\nconst SortableListHandle = React.forwardRef<HTMLButtonElement, React.ButtonHTMLAttributes<HTMLButtonElement>>(({ className, children = '\u22EE\u22EE', ...props }, ref) => {\n const context = React.useContext(SortableContextValue)\n return <button {...props} {...context.attributes} {...context.listeners} ref={ref} type=\"button\" className={classNames('dsx-sortable-list__handle', className)} aria-label={props['aria-label'] ?? 'Reorder item'}>{children}</button>\n})\nSortableListHandle.displayName = 'SortableListHandle'\nconst SortableListOverlay = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => <div {...props} ref={ref} className={classNames('dsx-sortable-list__overlay', className)} />)\nSortableListOverlay.displayName = 'SortableListOverlay'\n\nconst SortableListRoot = React.forwardRef<HTMLDivElement, SortableListRootProps>(({ ids, disabledIds = [], onReorder, announcements, className, children, ...props }, ref) => {\n const rootRef = React.useRef<HTMLDivElement | null>(null)\n const mergedRootRef = React.useCallback((node: HTMLDivElement | null) => {\n rootRef.current = node\n if (typeof ref === 'function') ref(node)\n else if (ref) ref.current = node\n }, [ref])\n const [activeId, setActiveId] = React.useState<SortableId | null>(null)\n const [message, setMessage] = React.useState('')\n const sensors = useSensors(useSensor(PointerSensor), useSensor(TouchSensor), useSensor(KeyboardSensor, { coordinateGetter: sortableKeyboardCoordinates }))\n const handleStart = (event: DragStartEvent) => setActiveId(event.active.id)\n const activeChild = React.Children.toArray(children).find(\n (child) => React.isValidElement(child) && (child.props as SortableListItemProps).id === activeId,\n )\n const activeContent = React.isValidElement<{ children?: React.ReactNode }>(activeChild)\n ? activeChild.props.children\n : activeId == null ? null : String(activeId)\n const handleEnd = (event: DragEndEvent) => {\n setActiveId(null)\n if (!event.over || event.active.id === event.over.id) return\n const from = ids.indexOf(event.active.id); const to = ids.indexOf(event.over.id)\n if (from < 0 || to < 0 || disabledIds.includes(event.active.id) || disabledIds.includes(event.over.id)) return\n const next = arrayMove(ids, from, to)\n setMessage(announcements?.moved?.(event.active.id, from, to) ?? `Moved item ${String(event.active.id)} from position ${from + 1} to ${to + 1}`)\n onReorder?.({ ids: next, activeIndex: from, overIndex: to })\n const escapedId = globalThis.CSS?.escape?.(String(event.active.id)) ?? String(event.active.id).replace(/[\"\\\\]/g, '\\\\$&')\n requestAnimationFrame(() => rootRef.current?.querySelector<HTMLElement>(`[data-sortable-id=\"${escapedId}\"] .dsx-sortable-list__handle`)?.focus())\n }\n return <DndContext sensors={sensors} collisionDetection={closestCenter} onDragStart={handleStart} onDragCancel={() => setActiveId(null)} onDragEnd={handleEnd}><SortableContext items={ids} strategy={verticalListSortingStrategy}><div {...props} ref={mergedRootRef} className={classNames('dsx-sortable-list', className)} role={props.role ?? 'list'}>{React.Children.map(children, (child) => React.isValidElement(child) ? React.cloneElement(child as React.ReactElement<Record<string, unknown>>, { 'data-sortable-id': String((child.props as SortableListItemProps).id), disabled: (child.props as SortableListItemProps).disabled || disabledIds.includes((child.props as SortableListItemProps).id), role: (child.props as SortableListItemProps).role ?? 'listitem' }) : child)}</div></SortableContext><VisuallyHidden aria-live=\"assertive\">{message}</VisuallyHidden><DragOverlay>{activeId == null ? null : <SortableListOverlay>{activeContent}</SortableListOverlay>}</DragOverlay></DndContext>\n})\nSortableListRoot.displayName = 'SortableList'\n\nconst SortableList = Object.assign(SortableListRoot, { Root: SortableListRoot, Item: SortableListItem, Handle: SortableListHandle, Overlay: SortableListOverlay })\nexport { SortableList, SortableListHandle, SortableListItem, SortableListOverlay, SortableListRoot }\nexport type {\n SortableId,\n SortableListChange,\n SortableListItemProps,\n SortableListRootProps,\n} from './sortableList.props'\n"],
|
|
5
|
+
"mappings": ";AACA,YAAY,WAAW;AACvB,OAAO,gBAAgB;AACvB,SAAS,YAAY,aAAa,gBAAgB,eAAe,aAAa,eAAe,WAAW,kBAA0D;AAClK,SAAS,iBAAiB,WAAW,6BAA6B,aAAa,mCAAmC;AAClH,SAAS,OAAO,oBAAoB;AAEpC,SAAS,sBAAsB;AAYoF,cAwC1G,YAxC0G;AAJnH,MAAM,uBAAuB,MAAM,cAAsI,CAAC,CAAC;AAC3K,MAAM,mBAAmB,MAAM,WAAkD,CAAC,EAAE,IAAI,UAAU,WAAW,OAAO,UAAU,GAAG,MAAM,GAAG,QAAQ;AAChJ,QAAM,WAAW,YAAY,EAAE,IAAI,SAAS,CAAC;AAC7C,QAAM,YAAY,CAAC,SAAgC;AAAE,aAAS,WAAW,IAAI;AAAG,QAAI,OAAO,QAAQ,WAAY,KAAI,IAAI;AAAA,aAAY,IAAK,KAAI,UAAU;AAAA,EAAK;AAC3J,SAAO,oBAAC,qBAAqB,UAArB,EAA8B,OAAO,EAAE,YAAY,SAAS,YAAY,WAAW,SAAS,UAAU,GAAG,8BAAC,SAAK,GAAG,OAAO,KAAK,W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OAAO,KAAK,UAAU,6BAA6B,8BAAC,SAAK,GAAG,OAAO,KAAK,eAAe,WAAW,WAAW,qBAAqB,SAAS,GAAG,MAAM,MAAM,QAAQ,QAAS,gBAAM,SAAS,IAAI,UAAU,CAAC,UAAU,MAAM,eAAe,KAAK,IAAI,MAAM,aAAa,OAAsD,EAAE,oBAAoB,OAAQ,MAAM,MAAgC,EAAE,GAAG,UAAW,MAAM,MAAgC,YAAY,YAAY,SAAU,MAAM,MAAgC,EAAE,GAAG,MAAO,MAAM,MAAgC,QAAQ,WAAW,CAAC,IAAI,KAAK,GAAE,GAAM;AAAA,IAAkB,oBAAC,kBAAe,aAAU,aAAa,mBAAQ;AAAA,IAAiB,oBAAC,eAAa,sBAAY,OAAO,OAAO,oBAAC,uBAAqB,yBAAc,GAAuB;AAAA,KAAc;AACx8B,CAAC;AACD,iBAAiB,cAAc;AAE/B,MAAM,eAAe,OAAO,OAAO,kBAAkB,EAAE,MAAM,kBAAkB,MAAM,kBAAkB,QAAQ,oBAAoB,SAAS,oBAAoB,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -49,7 +49,7 @@ var import_ScrollArea = require("../scrollArea/ScrollArea");
|
|
|
49
49
|
var import_table = require("./table.props");
|
|
50
50
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
51
51
|
const TableRoot = React.forwardRef((props, forwardedRef) => {
|
|
52
|
-
const { asChild, className, size = "md", variant = "surface", layout = "auto", wrapScrollArea = false, ...tableProps } = (0, import_extractProps.extractProps)(props, import_table.tablePropDefs);
|
|
52
|
+
const { asChild, className, size = "md", variant = "surface", layout = "auto", separator = "rules", wrapScrollArea = false, ...tableProps } = (0, import_extractProps.extractProps)(props, import_table.tablePropDefs);
|
|
53
53
|
const Comp = asChild ? import_react_slot.Slot : "table";
|
|
54
54
|
const tableElement = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
55
55
|
Comp,
|
|
@@ -60,7 +60,8 @@ const TableRoot = React.forwardRef((props, forwardedRef) => {
|
|
|
60
60
|
"data-slot": "table",
|
|
61
61
|
"data-size": size,
|
|
62
62
|
"data-variant": variant,
|
|
63
|
-
"data-layout": layout
|
|
63
|
+
"data-layout": layout,
|
|
64
|
+
"data-separator": separator
|
|
64
65
|
}
|
|
65
66
|
);
|
|
66
67
|
if (wrapScrollArea) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/table/Table.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react'\nimport classNames from 'classnames'\nimport { Slot } from '@radix-ui/react-slot'\n\nimport { extractProps } from '../../_internal/helpers/extractProps'\nimport { ScrollArea } from '../scrollArea/ScrollArea'\nimport {\n tableBodyPropDefs,\n tableCaptionPropDefs,\n tableCellPropDefs,\n tableFooterPropDefs,\n tableHeadPropDefs,\n tableHeaderPropDefs,\n tablePropDefs,\n tableRowPropDefs,\n} from './table.props'\n\nimport type { GetPropDefTypes } from '../../_internal/props/propDef'\n\ntype TableOwnProps = GetPropDefTypes<typeof tablePropDefs>\ntype TableCaptionOwnProps = GetPropDefTypes<typeof tableCaptionPropDefs>\ntype TableHeaderOwnProps = GetPropDefTypes<typeof tableHeaderPropDefs>\ntype TableBodyOwnProps = GetPropDefTypes<typeof tableBodyPropDefs>\ntype TableFooterOwnProps = GetPropDefTypes<typeof tableFooterPropDefs>\ntype TableRowOwnProps = GetPropDefTypes<typeof tableRowPropDefs>\ntype TableHeadOwnProps = GetPropDefTypes<typeof tableHeadPropDefs>\ntype TableCellOwnProps = GetPropDefTypes<typeof tableCellPropDefs>\n\ninterface TableProps extends React.TableHTMLAttributes<HTMLTableElement>, TableOwnProps {}\ninterface TableCaptionProps extends React.HTMLAttributes<HTMLTableCaptionElement>, TableCaptionOwnProps {}\ninterface TableHeaderProps extends React.HTMLAttributes<HTMLTableSectionElement>, TableHeaderOwnProps {}\ninterface TableBodyProps extends React.HTMLAttributes<HTMLTableSectionElement>, TableBodyOwnProps {}\ninterface TableFooterProps extends React.HTMLAttributes<HTMLTableSectionElement>, TableFooterOwnProps {}\ninterface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement>, TableRowOwnProps {}\ninterface TableHeadProps extends React.ThHTMLAttributes<HTMLTableCellElement>, TableHeadOwnProps {}\ninterface TableCellProps extends Omit<React.TdHTMLAttributes<HTMLTableCellElement>, 'width'>, TableCellOwnProps {}\n\nconst TableRoot = React.forwardRef<HTMLTableElement, TableProps>((props, forwardedRef) => {\n const { asChild, className, size = 'md', variant = 'surface', layout = 'auto', wrapScrollArea = false, ...tableProps } = extractProps(props, tablePropDefs)\n const Comp = asChild ? Slot : 'table'\n\n const tableElement = (\n <Comp\n {...tableProps}\n ref={forwardedRef}\n className={classNames('dsx-table', className)}\n data-slot=\"table\"\n data-size={size}\n data-variant={variant}\n data-layout={layout}\n />\n )\n\n if (wrapScrollArea) {\n return (\n <ScrollArea viewportClassName=\"dsx-table__scroll-viewport\">\n {tableElement}\n </ScrollArea>\n )\n }\n\n return tableElement\n})\nTableRoot.displayName = 'Table'\n\nconst TableCaption = React.forwardRef<HTMLTableCaptionElement, TableCaptionProps>((props, forwardedRef) => {\n const { asChild, className, ...captionProps } = extractProps(props, tableCaptionPropDefs)\n const Comp = asChild ? Slot : 'caption'\n\n return (\n <Comp\n {...captionProps}\n ref={forwardedRef}\n className={classNames('dsx-table__caption', className)}\n data-slot=\"table-caption\"\n />\n )\n})\nTableCaption.displayName = 'TableCaption'\n\nconst TableHeader = React.forwardRef<HTMLTableSectionElement, TableHeaderProps>((props, forwardedRef) => {\n const { asChild, className, ...headerProps } = extractProps(props, tableHeaderPropDefs)\n const Comp = asChild ? Slot : 'thead'\n\n return <Comp {...headerProps} ref={forwardedRef} className={classNames('dsx-table__header', className)} data-slot=\"table-header\" />\n})\nTableHeader.displayName = 'TableHeader'\n\nconst TableBody = React.forwardRef<HTMLTableSectionElement, TableBodyProps>((props, forwardedRef) => {\n const { asChild, className, ...bodyProps } = extractProps(props, tableBodyPropDefs)\n const Comp = asChild ? Slot : 'tbody'\n\n return <Comp {...bodyProps} ref={forwardedRef} className={classNames('dsx-table__body', className)} data-slot=\"table-body\" />\n})\nTableBody.displayName = 'TableBody'\n\nconst TableFooter = React.forwardRef<HTMLTableSectionElement, TableFooterProps>((props, forwardedRef) => {\n const { asChild, className, ...footerProps } = extractProps(props, tableFooterPropDefs)\n const Comp = asChild ? Slot : 'tfoot'\n\n return <Comp {...footerProps} ref={forwardedRef} className={classNames('dsx-table__footer', className)} data-slot=\"table-footer\" />\n})\nTableFooter.displayName = 'TableFooter'\n\nconst TableRow = React.forwardRef<HTMLTableRowElement, TableRowProps>((props, forwardedRef) => {\n const { asChild, align, className, ...rowProps } = extractProps(props, tableRowPropDefs)\n const Comp = asChild ? Slot : 'tr'\n\n return (\n <Comp\n {...rowProps}\n ref={forwardedRef}\n className={classNames('dsx-table__row', className)}\n data-slot=\"table-row\"\n data-align={align}\n />\n )\n})\nTableRow.displayName = 'TableRow'\n\nconst TableHead = React.forwardRef<HTMLTableCellElement, TableHeadProps>((props, forwardedRef) => {\n const { asChild, className, ...headProps } = extractProps(props, tableHeadPropDefs)\n const Comp = asChild ? Slot : 'th'\n\n return <Comp {...headProps} ref={forwardedRef} className={classNames('dsx-table__head', className)} data-slot=\"table-head\" />\n})\nTableHead.displayName = 'TableHead'\n\nconst TableCell = React.forwardRef<HTMLTableCellElement, TableCellProps>((props, forwardedRef) => {\n const { asChild, className, justify, padding, width, ...cellProps } = extractProps(props, tableCellPropDefs)\n const Comp = asChild ? Slot : 'td'\n\n return (\n <Comp\n {...cellProps}\n ref={forwardedRef}\n className={classNames('dsx-table__cell', className)}\n data-slot=\"table-cell\"\n data-justify={justify}\n data-width={width}\n data-padding={padding}\n />\n )\n})\nTableCell.displayName = 'TableCell'\n\ntype TableSortDirection = 'asc' | 'desc'\n\ninterface TableColumnHeaderCellProps extends TableHeadProps {\n sortable?: boolean\n sorted?: TableSortDirection\n}\n\nconst TableColumnHeaderCell = React.forwardRef<HTMLTableCellElement, TableColumnHeaderCellProps>((props, forwardedRef) => {\n const { sortable = false, sorted, className, ...headProps } = props\n const ariaSort = sortable ? (sorted ? (sorted === 'asc' ? 'ascending' : 'descending') : 'none') : undefined\n\n return (\n <TableHead\n ref={forwardedRef}\n className={classNames('dsx-table__column-header-cell', className)}\n role={sortable ? 'columnheader' : undefined}\n aria-sort={ariaSort}\n data-sortable={sortable || undefined}\n data-sorted={sorted || undefined}\n {...headProps}\n />\n )\n})\nTableColumnHeaderCell.displayName = 'TableColumnHeaderCell'\n\ninterface TableRowHeaderCellProps extends TableCellProps {}\n\nconst TableRowHeaderCell = React.forwardRef<HTMLTableCellElement, TableRowHeaderCellProps>((props, forwardedRef) => {\n const { asChild, className, ...cellProps } = extractProps(props, tableCellPropDefs)\n const Comp = asChild ? Slot : 'th'\n\n return (\n <Comp\n {...cellProps}\n ref={forwardedRef}\n scope=\"row\"\n className={classNames('dsx-table__cell dsx-table__row-header-cell', className)}\n data-slot=\"table-row-header-cell\"\n />\n )\n})\nTableRowHeaderCell.displayName = 'TableRowHeaderCell'\n\nconst Table: typeof TableRoot & {\n Caption: typeof TableCaption\n Header: typeof TableHeader\n Body: typeof TableBody\n Footer: typeof TableFooter\n Row: typeof TableRow\n Head: typeof TableHead\n Cell: typeof TableCell\n ColumnHeaderCell: typeof TableColumnHeaderCell\n RowHeaderCell: typeof TableRowHeaderCell\n} = Object.assign(TableRoot, {\n Caption: TableCaption,\n Header: TableHeader,\n Body: TableBody,\n Footer: TableFooter,\n Row: TableRow,\n Head: TableHead,\n Cell: TableCell,\n ColumnHeaderCell: TableColumnHeaderCell,\n RowHeaderCell: TableRowHeaderCell,\n})\n\nexport { Table, TableBody, TableCaption, TableCell, TableColumnHeaderCell, TableFooter, TableHead, TableHeader, TableRowHeaderCell, TableRoot, TableRow }\nexport type { TableBodyProps, TableCaptionProps, TableCellProps, TableColumnHeaderCellProps, TableFooterProps, TableHeadProps, TableHeaderProps, TableProps, TableRowProps, TableRowHeaderCellProps }\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAuB;AACvB,wBAAuB;AACvB,wBAAqB;AAErB,0BAA6B;AAC7B,wBAA2B;AAC3B,mBASO;AA2BH;AALJ,MAAM,YAAY,MAAM,WAAyC,CAAC,OAAO,iBAAiB;AACxF,QAAM,EAAE,SAAS,WAAW,OAAO,MAAM,UAAU,WAAW,SAAS,QAAQ,iBAAiB,OAAO,GAAG,WAAW,QAAI,kCAAa,OAAO,0BAAa;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react'\nimport classNames from 'classnames'\nimport { Slot } from '@radix-ui/react-slot'\n\nimport { extractProps } from '../../_internal/helpers/extractProps'\nimport { ScrollArea } from '../scrollArea/ScrollArea'\nimport {\n tableBodyPropDefs,\n tableCaptionPropDefs,\n tableCellPropDefs,\n tableFooterPropDefs,\n tableHeadPropDefs,\n tableHeaderPropDefs,\n tablePropDefs,\n tableRowPropDefs,\n} from './table.props'\n\nimport type { GetPropDefTypes } from '../../_internal/props/propDef'\n\ntype TableOwnProps = GetPropDefTypes<typeof tablePropDefs>\ntype TableCaptionOwnProps = GetPropDefTypes<typeof tableCaptionPropDefs>\ntype TableHeaderOwnProps = GetPropDefTypes<typeof tableHeaderPropDefs>\ntype TableBodyOwnProps = GetPropDefTypes<typeof tableBodyPropDefs>\ntype TableFooterOwnProps = GetPropDefTypes<typeof tableFooterPropDefs>\ntype TableRowOwnProps = GetPropDefTypes<typeof tableRowPropDefs>\ntype TableHeadOwnProps = GetPropDefTypes<typeof tableHeadPropDefs>\ntype TableCellOwnProps = GetPropDefTypes<typeof tableCellPropDefs>\n\ninterface TableProps extends React.TableHTMLAttributes<HTMLTableElement>, TableOwnProps {}\ninterface TableCaptionProps extends React.HTMLAttributes<HTMLTableCaptionElement>, TableCaptionOwnProps {}\ninterface TableHeaderProps extends React.HTMLAttributes<HTMLTableSectionElement>, TableHeaderOwnProps {}\ninterface TableBodyProps extends React.HTMLAttributes<HTMLTableSectionElement>, TableBodyOwnProps {}\ninterface TableFooterProps extends React.HTMLAttributes<HTMLTableSectionElement>, TableFooterOwnProps {}\ninterface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement>, TableRowOwnProps {}\ninterface TableHeadProps extends React.ThHTMLAttributes<HTMLTableCellElement>, TableHeadOwnProps {}\ninterface TableCellProps extends Omit<React.TdHTMLAttributes<HTMLTableCellElement>, 'width'>, TableCellOwnProps {}\n\nconst TableRoot = React.forwardRef<HTMLTableElement, TableProps>((props, forwardedRef) => {\n const { asChild, className, size = 'md', variant = 'surface', layout = 'auto', separator = 'rules', wrapScrollArea = false, ...tableProps } = extractProps(props, tablePropDefs)\n const Comp = asChild ? Slot : 'table'\n\n const tableElement = (\n <Comp\n {...tableProps}\n ref={forwardedRef}\n className={classNames('dsx-table', className)}\n data-slot=\"table\"\n data-size={size}\n data-variant={variant}\n data-layout={layout}\n data-separator={separator}\n />\n )\n\n if (wrapScrollArea) {\n return (\n <ScrollArea viewportClassName=\"dsx-table__scroll-viewport\">\n {tableElement}\n </ScrollArea>\n )\n }\n\n return tableElement\n})\nTableRoot.displayName = 'Table'\n\nconst TableCaption = React.forwardRef<HTMLTableCaptionElement, TableCaptionProps>((props, forwardedRef) => {\n const { asChild, className, ...captionProps } = extractProps(props, tableCaptionPropDefs)\n const Comp = asChild ? Slot : 'caption'\n\n return (\n <Comp\n {...captionProps}\n ref={forwardedRef}\n className={classNames('dsx-table__caption', className)}\n data-slot=\"table-caption\"\n />\n )\n})\nTableCaption.displayName = 'TableCaption'\n\nconst TableHeader = React.forwardRef<HTMLTableSectionElement, TableHeaderProps>((props, forwardedRef) => {\n const { asChild, className, ...headerProps } = extractProps(props, tableHeaderPropDefs)\n const Comp = asChild ? Slot : 'thead'\n\n return <Comp {...headerProps} ref={forwardedRef} className={classNames('dsx-table__header', className)} data-slot=\"table-header\" />\n})\nTableHeader.displayName = 'TableHeader'\n\nconst TableBody = React.forwardRef<HTMLTableSectionElement, TableBodyProps>((props, forwardedRef) => {\n const { asChild, className, ...bodyProps } = extractProps(props, tableBodyPropDefs)\n const Comp = asChild ? Slot : 'tbody'\n\n return <Comp {...bodyProps} ref={forwardedRef} className={classNames('dsx-table__body', className)} data-slot=\"table-body\" />\n})\nTableBody.displayName = 'TableBody'\n\nconst TableFooter = React.forwardRef<HTMLTableSectionElement, TableFooterProps>((props, forwardedRef) => {\n const { asChild, className, ...footerProps } = extractProps(props, tableFooterPropDefs)\n const Comp = asChild ? Slot : 'tfoot'\n\n return <Comp {...footerProps} ref={forwardedRef} className={classNames('dsx-table__footer', className)} data-slot=\"table-footer\" />\n})\nTableFooter.displayName = 'TableFooter'\n\nconst TableRow = React.forwardRef<HTMLTableRowElement, TableRowProps>((props, forwardedRef) => {\n const { asChild, align, className, ...rowProps } = extractProps(props, tableRowPropDefs)\n const Comp = asChild ? Slot : 'tr'\n\n return (\n <Comp\n {...rowProps}\n ref={forwardedRef}\n className={classNames('dsx-table__row', className)}\n data-slot=\"table-row\"\n data-align={align}\n />\n )\n})\nTableRow.displayName = 'TableRow'\n\nconst TableHead = React.forwardRef<HTMLTableCellElement, TableHeadProps>((props, forwardedRef) => {\n const { asChild, className, ...headProps } = extractProps(props, tableHeadPropDefs)\n const Comp = asChild ? Slot : 'th'\n\n return <Comp {...headProps} ref={forwardedRef} className={classNames('dsx-table__head', className)} data-slot=\"table-head\" />\n})\nTableHead.displayName = 'TableHead'\n\nconst TableCell = React.forwardRef<HTMLTableCellElement, TableCellProps>((props, forwardedRef) => {\n const { asChild, className, justify, padding, width, ...cellProps } = extractProps(props, tableCellPropDefs)\n const Comp = asChild ? Slot : 'td'\n\n return (\n <Comp\n {...cellProps}\n ref={forwardedRef}\n className={classNames('dsx-table__cell', className)}\n data-slot=\"table-cell\"\n data-justify={justify}\n data-width={width}\n data-padding={padding}\n />\n )\n})\nTableCell.displayName = 'TableCell'\n\ntype TableSortDirection = 'asc' | 'desc'\n\ninterface TableColumnHeaderCellProps extends TableHeadProps {\n sortable?: boolean\n sorted?: TableSortDirection\n}\n\nconst TableColumnHeaderCell = React.forwardRef<HTMLTableCellElement, TableColumnHeaderCellProps>((props, forwardedRef) => {\n const { sortable = false, sorted, className, ...headProps } = props\n const ariaSort = sortable ? (sorted ? (sorted === 'asc' ? 'ascending' : 'descending') : 'none') : undefined\n\n return (\n <TableHead\n ref={forwardedRef}\n className={classNames('dsx-table__column-header-cell', className)}\n role={sortable ? 'columnheader' : undefined}\n aria-sort={ariaSort}\n data-sortable={sortable || undefined}\n data-sorted={sorted || undefined}\n {...headProps}\n />\n )\n})\nTableColumnHeaderCell.displayName = 'TableColumnHeaderCell'\n\ninterface TableRowHeaderCellProps extends TableCellProps {}\n\nconst TableRowHeaderCell = React.forwardRef<HTMLTableCellElement, TableRowHeaderCellProps>((props, forwardedRef) => {\n const { asChild, className, ...cellProps } = extractProps(props, tableCellPropDefs)\n const Comp = asChild ? Slot : 'th'\n\n return (\n <Comp\n {...cellProps}\n ref={forwardedRef}\n scope=\"row\"\n className={classNames('dsx-table__cell dsx-table__row-header-cell', className)}\n data-slot=\"table-row-header-cell\"\n />\n )\n})\nTableRowHeaderCell.displayName = 'TableRowHeaderCell'\n\nconst Table: typeof TableRoot & {\n Caption: typeof TableCaption\n Header: typeof TableHeader\n Body: typeof TableBody\n Footer: typeof TableFooter\n Row: typeof TableRow\n Head: typeof TableHead\n Cell: typeof TableCell\n ColumnHeaderCell: typeof TableColumnHeaderCell\n RowHeaderCell: typeof TableRowHeaderCell\n} = Object.assign(TableRoot, {\n Caption: TableCaption,\n Header: TableHeader,\n Body: TableBody,\n Footer: TableFooter,\n Row: TableRow,\n Head: TableHead,\n Cell: TableCell,\n ColumnHeaderCell: TableColumnHeaderCell,\n RowHeaderCell: TableRowHeaderCell,\n})\n\nexport { Table, TableBody, TableCaption, TableCell, TableColumnHeaderCell, TableFooter, TableHead, TableHeader, TableRowHeaderCell, TableRoot, TableRow }\nexport type { TableBodyProps, TableCaptionProps, TableCellProps, TableColumnHeaderCellProps, TableFooterProps, TableHeadProps, TableHeaderProps, TableProps, TableRowProps, TableRowHeaderCellProps }\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAuB;AACvB,wBAAuB;AACvB,wBAAqB;AAErB,0BAA6B;AAC7B,wBAA2B;AAC3B,mBASO;AA2BH;AALJ,MAAM,YAAY,MAAM,WAAyC,CAAC,OAAO,iBAAiB;AACxF,QAAM,EAAE,SAAS,WAAW,OAAO,MAAM,UAAU,WAAW,SAAS,QAAQ,YAAY,SAAS,iBAAiB,OAAO,GAAG,WAAW,QAAI,kCAAa,OAAO,0BAAa;AAC/K,QAAM,OAAO,UAAU,yBAAO;AAE9B,QAAM,eACJ;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,KAAK;AAAA,MACL,eAAW,kBAAAA,SAAW,aAAa,SAAS;AAAA,MAC5C,aAAU;AAAA,MACV,aAAW;AAAA,MACX,gBAAc;AAAA,MACd,eAAa;AAAA,MACb,kBAAgB;AAAA;AAAA,EAClB;AAGF,MAAI,gBAAgB;AAClB,WACE,4CAAC,gCAAW,mBAAkB,8BAC3B,wBACH;AAAA,EAEJ;AAEA,SAAO;AACT,CAAC;AACD,UAAU,cAAc;AAExB,MAAM,eAAe,MAAM,WAAuD,CAAC,OAAO,iBAAiB;AACzG,QAAM,EAAE,SAAS,WAAW,GAAG,aAAa,QAAI,kCAAa,OAAO,iCAAoB;AACxF,QAAM,OAAO,UAAU,yBAAO;AAE9B,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,KAAK;AAAA,MAC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AqB,MAAM,WAA0D,CAAC,OAAO,iBAAiB;AAClH,QAAM,EAAE,SAAS,WAAW,GAAG,UAAU,QAAI,kCAAa,OAAO,8BAAiB;AAClF,QAAM,OAAO,UAAU,yBAAO;AAE9B,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,KAAK;AAAA,MACL,OAAM;AAAA,MACN,eAAW,kBAAAA,SAAW,8CAA8C,SAAS;AAAA,MAC7E,aAAU;AAAA;AAAA,EACZ;AAEJ,CAAC;AACD,mBAAmB,cAAc;AAEjC,MAAM,QAUF,OAAO,OAAO,WAAW;AAAA,EAC3B,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,KAAK;AAAA,EACL,MAAM;AAAA,EACN,MAAM;AAAA,EACN,kBAAkB;AAAA,EAClB,eAAe;AACjB,CAAC;",
|
|
6
6
|
"names": ["classNames"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.cts","sourceRoot":"","sources":["../../../src/components/table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EACjB,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAEpE,KAAK,aAAa,GAAG,eAAe,CAAC,OAAO,aAAa,CAAC,CAAA;AAC1D,KAAK,oBAAoB,GAAG,eAAe,CAAC,OAAO,oBAAoB,CAAC,CAAA;AACxE,KAAK,mBAAmB,GAAG,eAAe,CAAC,OAAO,mBAAmB,CAAC,CAAA;AACtE,KAAK,iBAAiB,GAAG,eAAe,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAClE,KAAK,mBAAmB,GAAG,eAAe,C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C1B,GAAG,EAAE,OAAO,QAAQ,CAAA;IACpB,IAAI,EAAE,OAAO,SAAS,CAAA;IACtB,IAAI,EAAE,OAAO,SAAS,CAAA;IACtB,gBAAgB,EAAE,OAAO,qBAAqB,CAAA;IAC9C,aAAa,EAAE,OAAO,kBAAkB,CAAA;CAWxC,CAAA;AAEF,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,qBAAqB,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,kBAAkB,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAA;AACzJ,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,0BAA0B,EAAE,gBAAgB,EAAE,cAAc,EAAE,gBAAgB,EAAE,UAAU,EAAE,aAAa,EAAE,uBAAuB,EAAE,CAAA"}
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./table.props.js";
|
|
16
16
|
import { jsx } from "react/jsx-runtime";
|
|
17
17
|
const TableRoot = React.forwardRef((props, forwardedRef) => {
|
|
18
|
-
const { asChild, className, size = "md", variant = "surface", layout = "auto", wrapScrollArea = false, ...tableProps } = extractProps(props, tablePropDefs);
|
|
18
|
+
const { asChild, className, size = "md", variant = "surface", layout = "auto", separator = "rules", wrapScrollArea = false, ...tableProps } = extractProps(props, tablePropDefs);
|
|
19
19
|
const Comp = asChild ? Slot : "table";
|
|
20
20
|
const tableElement = /* @__PURE__ */ jsx(
|
|
21
21
|
Comp,
|
|
@@ -26,7 +26,8 @@ const TableRoot = React.forwardRef((props, forwardedRef) => {
|
|
|
26
26
|
"data-slot": "table",
|
|
27
27
|
"data-size": size,
|
|
28
28
|
"data-variant": variant,
|
|
29
|
-
"data-layout": layout
|
|
29
|
+
"data-layout": layout,
|
|
30
|
+
"data-separator": separator
|
|
30
31
|
}
|
|
31
32
|
);
|
|
32
33
|
if (wrapScrollArea) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/table/Table.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react'\nimport classNames from 'classnames'\nimport { Slot } from '@radix-ui/react-slot'\n\nimport { extractProps } from '../../_internal/helpers/extractProps'\nimport { ScrollArea } from '../scrollArea/ScrollArea'\nimport {\n tableBodyPropDefs,\n tableCaptionPropDefs,\n tableCellPropDefs,\n tableFooterPropDefs,\n tableHeadPropDefs,\n tableHeaderPropDefs,\n tablePropDefs,\n tableRowPropDefs,\n} from './table.props'\n\nimport type { GetPropDefTypes } from '../../_internal/props/propDef'\n\ntype TableOwnProps = GetPropDefTypes<typeof tablePropDefs>\ntype TableCaptionOwnProps = GetPropDefTypes<typeof tableCaptionPropDefs>\ntype TableHeaderOwnProps = GetPropDefTypes<typeof tableHeaderPropDefs>\ntype TableBodyOwnProps = GetPropDefTypes<typeof tableBodyPropDefs>\ntype TableFooterOwnProps = GetPropDefTypes<typeof tableFooterPropDefs>\ntype TableRowOwnProps = GetPropDefTypes<typeof tableRowPropDefs>\ntype TableHeadOwnProps = GetPropDefTypes<typeof tableHeadPropDefs>\ntype TableCellOwnProps = GetPropDefTypes<typeof tableCellPropDefs>\n\ninterface TableProps extends React.TableHTMLAttributes<HTMLTableElement>, TableOwnProps {}\ninterface TableCaptionProps extends React.HTMLAttributes<HTMLTableCaptionElement>, TableCaptionOwnProps {}\ninterface TableHeaderProps extends React.HTMLAttributes<HTMLTableSectionElement>, TableHeaderOwnProps {}\ninterface TableBodyProps extends React.HTMLAttributes<HTMLTableSectionElement>, TableBodyOwnProps {}\ninterface TableFooterProps extends React.HTMLAttributes<HTMLTableSectionElement>, TableFooterOwnProps {}\ninterface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement>, TableRowOwnProps {}\ninterface TableHeadProps extends React.ThHTMLAttributes<HTMLTableCellElement>, TableHeadOwnProps {}\ninterface TableCellProps extends Omit<React.TdHTMLAttributes<HTMLTableCellElement>, 'width'>, TableCellOwnProps {}\n\nconst TableRoot = React.forwardRef<HTMLTableElement, TableProps>((props, forwardedRef) => {\n const { asChild, className, size = 'md', variant = 'surface', layout = 'auto', wrapScrollArea = false, ...tableProps } = extractProps(props, tablePropDefs)\n const Comp = asChild ? Slot : 'table'\n\n const tableElement = (\n <Comp\n {...tableProps}\n ref={forwardedRef}\n className={classNames('dsx-table', className)}\n data-slot=\"table\"\n data-size={size}\n data-variant={variant}\n data-layout={layout}\n />\n )\n\n if (wrapScrollArea) {\n return (\n <ScrollArea viewportClassName=\"dsx-table__scroll-viewport\">\n {tableElement}\n </ScrollArea>\n )\n }\n\n return tableElement\n})\nTableRoot.displayName = 'Table'\n\nconst TableCaption = React.forwardRef<HTMLTableCaptionElement, TableCaptionProps>((props, forwardedRef) => {\n const { asChild, className, ...captionProps } = extractProps(props, tableCaptionPropDefs)\n const Comp = asChild ? Slot : 'caption'\n\n return (\n <Comp\n {...captionProps}\n ref={forwardedRef}\n className={classNames('dsx-table__caption', className)}\n data-slot=\"table-caption\"\n />\n )\n})\nTableCaption.displayName = 'TableCaption'\n\nconst TableHeader = React.forwardRef<HTMLTableSectionElement, TableHeaderProps>((props, forwardedRef) => {\n const { asChild, className, ...headerProps } = extractProps(props, tableHeaderPropDefs)\n const Comp = asChild ? Slot : 'thead'\n\n return <Comp {...headerProps} ref={forwardedRef} className={classNames('dsx-table__header', className)} data-slot=\"table-header\" />\n})\nTableHeader.displayName = 'TableHeader'\n\nconst TableBody = React.forwardRef<HTMLTableSectionElement, TableBodyProps>((props, forwardedRef) => {\n const { asChild, className, ...bodyProps } = extractProps(props, tableBodyPropDefs)\n const Comp = asChild ? Slot : 'tbody'\n\n return <Comp {...bodyProps} ref={forwardedRef} className={classNames('dsx-table__body', className)} data-slot=\"table-body\" />\n})\nTableBody.displayName = 'TableBody'\n\nconst TableFooter = React.forwardRef<HTMLTableSectionElement, TableFooterProps>((props, forwardedRef) => {\n const { asChild, className, ...footerProps } = extractProps(props, tableFooterPropDefs)\n const Comp = asChild ? Slot : 'tfoot'\n\n return <Comp {...footerProps} ref={forwardedRef} className={classNames('dsx-table__footer', className)} data-slot=\"table-footer\" />\n})\nTableFooter.displayName = 'TableFooter'\n\nconst TableRow = React.forwardRef<HTMLTableRowElement, TableRowProps>((props, forwardedRef) => {\n const { asChild, align, className, ...rowProps } = extractProps(props, tableRowPropDefs)\n const Comp = asChild ? Slot : 'tr'\n\n return (\n <Comp\n {...rowProps}\n ref={forwardedRef}\n className={classNames('dsx-table__row', className)}\n data-slot=\"table-row\"\n data-align={align}\n />\n )\n})\nTableRow.displayName = 'TableRow'\n\nconst TableHead = React.forwardRef<HTMLTableCellElement, TableHeadProps>((props, forwardedRef) => {\n const { asChild, className, ...headProps } = extractProps(props, tableHeadPropDefs)\n const Comp = asChild ? Slot : 'th'\n\n return <Comp {...headProps} ref={forwardedRef} className={classNames('dsx-table__head', className)} data-slot=\"table-head\" />\n})\nTableHead.displayName = 'TableHead'\n\nconst TableCell = React.forwardRef<HTMLTableCellElement, TableCellProps>((props, forwardedRef) => {\n const { asChild, className, justify, padding, width, ...cellProps } = extractProps(props, tableCellPropDefs)\n const Comp = asChild ? Slot : 'td'\n\n return (\n <Comp\n {...cellProps}\n ref={forwardedRef}\n className={classNames('dsx-table__cell', className)}\n data-slot=\"table-cell\"\n data-justify={justify}\n data-width={width}\n data-padding={padding}\n />\n )\n})\nTableCell.displayName = 'TableCell'\n\ntype TableSortDirection = 'asc' | 'desc'\n\ninterface TableColumnHeaderCellProps extends TableHeadProps {\n sortable?: boolean\n sorted?: TableSortDirection\n}\n\nconst TableColumnHeaderCell = React.forwardRef<HTMLTableCellElement, TableColumnHeaderCellProps>((props, forwardedRef) => {\n const { sortable = false, sorted, className, ...headProps } = props\n const ariaSort = sortable ? (sorted ? (sorted === 'asc' ? 'ascending' : 'descending') : 'none') : undefined\n\n return (\n <TableHead\n ref={forwardedRef}\n className={classNames('dsx-table__column-header-cell', className)}\n role={sortable ? 'columnheader' : undefined}\n aria-sort={ariaSort}\n data-sortable={sortable || undefined}\n data-sorted={sorted || undefined}\n {...headProps}\n />\n )\n})\nTableColumnHeaderCell.displayName = 'TableColumnHeaderCell'\n\ninterface TableRowHeaderCellProps extends TableCellProps {}\n\nconst TableRowHeaderCell = React.forwardRef<HTMLTableCellElement, TableRowHeaderCellProps>((props, forwardedRef) => {\n const { asChild, className, ...cellProps } = extractProps(props, tableCellPropDefs)\n const Comp = asChild ? Slot : 'th'\n\n return (\n <Comp\n {...cellProps}\n ref={forwardedRef}\n scope=\"row\"\n className={classNames('dsx-table__cell dsx-table__row-header-cell', className)}\n data-slot=\"table-row-header-cell\"\n />\n )\n})\nTableRowHeaderCell.displayName = 'TableRowHeaderCell'\n\nconst Table: typeof TableRoot & {\n Caption: typeof TableCaption\n Header: typeof TableHeader\n Body: typeof TableBody\n Footer: typeof TableFooter\n Row: typeof TableRow\n Head: typeof TableHead\n Cell: typeof TableCell\n ColumnHeaderCell: typeof TableColumnHeaderCell\n RowHeaderCell: typeof TableRowHeaderCell\n} = Object.assign(TableRoot, {\n Caption: TableCaption,\n Header: TableHeader,\n Body: TableBody,\n Footer: TableFooter,\n Row: TableRow,\n Head: TableHead,\n Cell: TableCell,\n ColumnHeaderCell: TableColumnHeaderCell,\n RowHeaderCell: TableRowHeaderCell,\n})\n\nexport { Table, TableBody, TableCaption, TableCell, TableColumnHeaderCell, TableFooter, TableHead, TableHeader, TableRowHeaderCell, TableRoot, TableRow }\nexport type { TableBodyProps, TableCaptionProps, TableCellProps, TableColumnHeaderCellProps, TableFooterProps, TableHeadProps, TableHeaderProps, TableProps, TableRowProps, TableRowHeaderCellProps }\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;AACvB,OAAO,gBAAgB;AACvB,SAAS,YAAY;AAErB,SAAS,oBAAoB;AAC7B,SAAS,kBAAkB;AAC3B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AA2BH;AALJ,MAAM,YAAY,MAAM,WAAyC,CAAC,OAAO,iBAAiB;AACxF,QAAM,EAAE,SAAS,WAAW,OAAO,MAAM,UAAU,WAAW,SAAS,QAAQ,iBAAiB,OAAO,GAAG,WAAW,IAAI,aAAa,OAAO,aAAa;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react'\nimport classNames from 'classnames'\nimport { Slot } from '@radix-ui/react-slot'\n\nimport { extractProps } from '../../_internal/helpers/extractProps'\nimport { ScrollArea } from '../scrollArea/ScrollArea'\nimport {\n tableBodyPropDefs,\n tableCaptionPropDefs,\n tableCellPropDefs,\n tableFooterPropDefs,\n tableHeadPropDefs,\n tableHeaderPropDefs,\n tablePropDefs,\n tableRowPropDefs,\n} from './table.props'\n\nimport type { GetPropDefTypes } from '../../_internal/props/propDef'\n\ntype TableOwnProps = GetPropDefTypes<typeof tablePropDefs>\ntype TableCaptionOwnProps = GetPropDefTypes<typeof tableCaptionPropDefs>\ntype TableHeaderOwnProps = GetPropDefTypes<typeof tableHeaderPropDefs>\ntype TableBodyOwnProps = GetPropDefTypes<typeof tableBodyPropDefs>\ntype TableFooterOwnProps = GetPropDefTypes<typeof tableFooterPropDefs>\ntype TableRowOwnProps = GetPropDefTypes<typeof tableRowPropDefs>\ntype TableHeadOwnProps = GetPropDefTypes<typeof tableHeadPropDefs>\ntype TableCellOwnProps = GetPropDefTypes<typeof tableCellPropDefs>\n\ninterface TableProps extends React.TableHTMLAttributes<HTMLTableElement>, TableOwnProps {}\ninterface TableCaptionProps extends React.HTMLAttributes<HTMLTableCaptionElement>, TableCaptionOwnProps {}\ninterface TableHeaderProps extends React.HTMLAttributes<HTMLTableSectionElement>, TableHeaderOwnProps {}\ninterface TableBodyProps extends React.HTMLAttributes<HTMLTableSectionElement>, TableBodyOwnProps {}\ninterface TableFooterProps extends React.HTMLAttributes<HTMLTableSectionElement>, TableFooterOwnProps {}\ninterface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement>, TableRowOwnProps {}\ninterface TableHeadProps extends React.ThHTMLAttributes<HTMLTableCellElement>, TableHeadOwnProps {}\ninterface TableCellProps extends Omit<React.TdHTMLAttributes<HTMLTableCellElement>, 'width'>, TableCellOwnProps {}\n\nconst TableRoot = React.forwardRef<HTMLTableElement, TableProps>((props, forwardedRef) => {\n const { asChild, className, size = 'md', variant = 'surface', layout = 'auto', separator = 'rules', wrapScrollArea = false, ...tableProps } = extractProps(props, tablePropDefs)\n const Comp = asChild ? Slot : 'table'\n\n const tableElement = (\n <Comp\n {...tableProps}\n ref={forwardedRef}\n className={classNames('dsx-table', className)}\n data-slot=\"table\"\n data-size={size}\n data-variant={variant}\n data-layout={layout}\n data-separator={separator}\n />\n )\n\n if (wrapScrollArea) {\n return (\n <ScrollArea viewportClassName=\"dsx-table__scroll-viewport\">\n {tableElement}\n </ScrollArea>\n )\n }\n\n return tableElement\n})\nTableRoot.displayName = 'Table'\n\nconst TableCaption = React.forwardRef<HTMLTableCaptionElement, TableCaptionProps>((props, forwardedRef) => {\n const { asChild, className, ...captionProps } = extractProps(props, tableCaptionPropDefs)\n const Comp = asChild ? Slot : 'caption'\n\n return (\n <Comp\n {...captionProps}\n ref={forwardedRef}\n className={classNames('dsx-table__caption', className)}\n data-slot=\"table-caption\"\n />\n )\n})\nTableCaption.displayName = 'TableCaption'\n\nconst TableHeader = React.forwardRef<HTMLTableSectionElement, TableHeaderProps>((props, forwardedRef) => {\n const { asChild, className, ...headerProps } = extractProps(props, tableHeaderPropDefs)\n const Comp = asChild ? Slot : 'thead'\n\n return <Comp {...headerProps} ref={forwardedRef} className={classNames('dsx-table__header', className)} data-slot=\"table-header\" />\n})\nTableHeader.displayName = 'TableHeader'\n\nconst TableBody = React.forwardRef<HTMLTableSectionElement, TableBodyProps>((props, forwardedRef) => {\n const { asChild, className, ...bodyProps } = extractProps(props, tableBodyPropDefs)\n const Comp = asChild ? Slot : 'tbody'\n\n return <Comp {...bodyProps} ref={forwardedRef} className={classNames('dsx-table__body', className)} data-slot=\"table-body\" />\n})\nTableBody.displayName = 'TableBody'\n\nconst TableFooter = React.forwardRef<HTMLTableSectionElement, TableFooterProps>((props, forwardedRef) => {\n const { asChild, className, ...footerProps } = extractProps(props, tableFooterPropDefs)\n const Comp = asChild ? Slot : 'tfoot'\n\n return <Comp {...footerProps} ref={forwardedRef} className={classNames('dsx-table__footer', className)} data-slot=\"table-footer\" />\n})\nTableFooter.displayName = 'TableFooter'\n\nconst TableRow = React.forwardRef<HTMLTableRowElement, TableRowProps>((props, forwardedRef) => {\n const { asChild, align, className, ...rowProps } = extractProps(props, tableRowPropDefs)\n const Comp = asChild ? Slot : 'tr'\n\n return (\n <Comp\n {...rowProps}\n ref={forwardedRef}\n className={classNames('dsx-table__row', className)}\n data-slot=\"table-row\"\n data-align={align}\n />\n )\n})\nTableRow.displayName = 'TableRow'\n\nconst TableHead = React.forwardRef<HTMLTableCellElement, TableHeadProps>((props, forwardedRef) => {\n const { asChild, className, ...headProps } = extractProps(props, tableHeadPropDefs)\n const Comp = asChild ? Slot : 'th'\n\n return <Comp {...headProps} ref={forwardedRef} className={classNames('dsx-table__head', className)} data-slot=\"table-head\" />\n})\nTableHead.displayName = 'TableHead'\n\nconst TableCell = React.forwardRef<HTMLTableCellElement, TableCellProps>((props, forwardedRef) => {\n const { asChild, className, justify, padding, width, ...cellProps } = extractProps(props, tableCellPropDefs)\n const Comp = asChild ? Slot : 'td'\n\n return (\n <Comp\n {...cellProps}\n ref={forwardedRef}\n className={classNames('dsx-table__cell', className)}\n data-slot=\"table-cell\"\n data-justify={justify}\n data-width={width}\n data-padding={padding}\n />\n )\n})\nTableCell.displayName = 'TableCell'\n\ntype TableSortDirection = 'asc' | 'desc'\n\ninterface TableColumnHeaderCellProps extends TableHeadProps {\n sortable?: boolean\n sorted?: TableSortDirection\n}\n\nconst TableColumnHeaderCell = React.forwardRef<HTMLTableCellElement, TableColumnHeaderCellProps>((props, forwardedRef) => {\n const { sortable = false, sorted, className, ...headProps } = props\n const ariaSort = sortable ? (sorted ? (sorted === 'asc' ? 'ascending' : 'descending') : 'none') : undefined\n\n return (\n <TableHead\n ref={forwardedRef}\n className={classNames('dsx-table__column-header-cell', className)}\n role={sortable ? 'columnheader' : undefined}\n aria-sort={ariaSort}\n data-sortable={sortable || undefined}\n data-sorted={sorted || undefined}\n {...headProps}\n />\n )\n})\nTableColumnHeaderCell.displayName = 'TableColumnHeaderCell'\n\ninterface TableRowHeaderCellProps extends TableCellProps {}\n\nconst TableRowHeaderCell = React.forwardRef<HTMLTableCellElement, TableRowHeaderCellProps>((props, forwardedRef) => {\n const { asChild, className, ...cellProps } = extractProps(props, tableCellPropDefs)\n const Comp = asChild ? Slot : 'th'\n\n return (\n <Comp\n {...cellProps}\n ref={forwardedRef}\n scope=\"row\"\n className={classNames('dsx-table__cell dsx-table__row-header-cell', className)}\n data-slot=\"table-row-header-cell\"\n />\n )\n})\nTableRowHeaderCell.displayName = 'TableRowHeaderCell'\n\nconst Table: typeof TableRoot & {\n Caption: typeof TableCaption\n Header: typeof TableHeader\n Body: typeof TableBody\n Footer: typeof TableFooter\n Row: typeof TableRow\n Head: typeof TableHead\n Cell: typeof TableCell\n ColumnHeaderCell: typeof TableColumnHeaderCell\n RowHeaderCell: typeof TableRowHeaderCell\n} = Object.assign(TableRoot, {\n Caption: TableCaption,\n Header: TableHeader,\n Body: TableBody,\n Footer: TableFooter,\n Row: TableRow,\n Head: TableHead,\n Cell: TableCell,\n ColumnHeaderCell: TableColumnHeaderCell,\n RowHeaderCell: TableRowHeaderCell,\n})\n\nexport { Table, TableBody, TableCaption, TableCell, TableColumnHeaderCell, TableFooter, TableHead, TableHeader, TableRowHeaderCell, TableRoot, TableRow }\nexport type { TableBodyProps, TableCaptionProps, TableCellProps, TableColumnHeaderCellProps, TableFooterProps, TableHeadProps, TableHeaderProps, TableProps, TableRowProps, TableRowHeaderCellProps }\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;AACvB,OAAO,gBAAgB;AACvB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B,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,KAAK;AAAA,EACL,MAAM;AAAA,EACN,MAAM;AAAA,EACN,kBAAkB;AAAA,EAClB,eAAe;AACjB,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -33,6 +33,7 @@ var import_propDef = require("../../_internal/props/propDef");
|
|
|
33
33
|
const tableSizes = ["sm", "md", "lg"];
|
|
34
34
|
const tableVariants = ["surface", "ghost"];
|
|
35
35
|
const tableLayouts = ["auto", "fixed"];
|
|
36
|
+
const tableSeparators = ["rules", "grid"];
|
|
36
37
|
const rowAlignValues = ["start", "center", "end"];
|
|
37
38
|
const cellJustifyValues = ["start", "center", "end"];
|
|
38
39
|
const cellWidthValues = ["auto", "full"];
|
|
@@ -54,6 +55,11 @@ const tablePropDefs = {
|
|
|
54
55
|
values: tableLayouts,
|
|
55
56
|
default: "auto"
|
|
56
57
|
},
|
|
58
|
+
separator: {
|
|
59
|
+
type: "enum",
|
|
60
|
+
values: tableSeparators,
|
|
61
|
+
default: "rules"
|
|
62
|
+
},
|
|
57
63
|
wrapScrollArea: {
|
|
58
64
|
type: "boolean",
|
|
59
65
|
default: false
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/table/table.props.ts"],
|
|
4
|
-
"sourcesContent": ["import { asChildPropDef } from '../../_internal/props/asChild.prop'\nimport { spaceScaleValues } from '../../_internal/props/propDef'\n\nimport type { PropDef } from '../../_internal/props/propDef'\n\nconst tableSizes = ['sm', 'md', 'lg'] as const\nconst tableVariants = ['surface', 'ghost'] as const\nconst tableLayouts = ['auto', 'fixed'] as const\nconst rowAlignValues = ['start', 'center', 'end'] as const\nconst cellJustifyValues = ['start', 'center', 'end'] as const\nconst cellWidthValues = ['auto', 'full'] as const\nconst cellPaddingValues = ['none', ...spaceScaleValues] as const\n\nconst tablePropDefs = {\n ...asChildPropDef,\n size: {\n type: 'enum',\n values: tableSizes,\n default: 'md',\n },\n variant: {\n type: 'enum',\n values: tableVariants,\n default: 'surface',\n },\n layout: {\n type: 'enum',\n values: tableLayouts,\n default: 'auto',\n },\n wrapScrollArea: {\n type: 'boolean',\n default: false,\n },\n} satisfies {\n asChild: PropDef\n size: PropDef<(typeof tableSizes)[number]>\n variant: PropDef<(typeof tableVariants)[number]>\n layout: PropDef<(typeof tableLayouts)[number]>\n wrapScrollArea: PropDef\n}\n\nconst tableCaptionPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableHeaderPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableBodyPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableFooterPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableRowPropDefs = {\n ...asChildPropDef,\n align: {\n type: 'enum',\n values: rowAlignValues,\n default: undefined,\n },\n} satisfies {\n asChild: PropDef\n align: PropDef<(typeof rowAlignValues)[number]>\n}\n\nconst tableHeadPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableCellPropDefs = {\n ...asChildPropDef,\n justify: {\n type: 'enum',\n values: cellJustifyValues,\n default: undefined,\n },\n width: {\n type: 'enum | string',\n values: cellWidthValues,\n default: undefined,\n },\n padding: {\n type: 'enum | string',\n values: cellPaddingValues,\n default: undefined,\n },\n} satisfies {\n asChild: PropDef\n justify: PropDef<(typeof cellJustifyValues)[number]>\n width: PropDef<(typeof cellWidthValues)[number]>\n padding: PropDef<(typeof cellPaddingValues)[number]>\n}\n\nexport {\n tableBodyPropDefs,\n tableCaptionPropDefs,\n tableCellPropDefs,\n tableFooterPropDefs,\n tableHeadPropDefs,\n tableHeaderPropDefs,\n tablePropDefs,\n tableRowPropDefs,\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAA+B;AAC/B,qBAAiC;AAIjC,MAAM,aAAa,CAAC,MAAM,MAAM,IAAI;AACpC,MAAM,gBAAgB,CAAC,WAAW,OAAO;AACzC,MAAM,eAAe,CAAC,QAAQ,OAAO;AACrC,MAAM,iBAAiB,CAAC,SAAS,UAAU,KAAK;AAChD,MAAM,oBAAoB,CAAC,SAAS,UAAU,KAAK;AACnD,MAAM,kBAAkB,CAAC,QAAQ,MAAM;AACvC,MAAM,oBAAoB,CAAC,QAAQ,GAAG,+BAAgB;AAEtD,MAAM,gBAAgB;AAAA,EACpB,GAAG;AAAA,EACH,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,gBAAgB;AAAA,IACd,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AACF;
|
|
4
|
+
"sourcesContent": ["import { asChildPropDef } from '../../_internal/props/asChild.prop'\nimport { spaceScaleValues } from '../../_internal/props/propDef'\n\nimport type { PropDef } from '../../_internal/props/propDef'\n\nconst tableSizes = ['sm', 'md', 'lg'] as const\nconst tableVariants = ['surface', 'ghost'] as const\nconst tableLayouts = ['auto', 'fixed'] as const\nconst tableSeparators = ['rules', 'grid'] as const\nconst rowAlignValues = ['start', 'center', 'end'] as const\nconst cellJustifyValues = ['start', 'center', 'end'] as const\nconst cellWidthValues = ['auto', 'full'] as const\nconst cellPaddingValues = ['none', ...spaceScaleValues] as const\n\nconst tablePropDefs = {\n ...asChildPropDef,\n size: {\n type: 'enum',\n values: tableSizes,\n default: 'md',\n },\n variant: {\n type: 'enum',\n values: tableVariants,\n default: 'surface',\n },\n layout: {\n type: 'enum',\n values: tableLayouts,\n default: 'auto',\n },\n separator: {\n type: 'enum',\n values: tableSeparators,\n default: 'rules',\n },\n wrapScrollArea: {\n type: 'boolean',\n default: false,\n },\n} satisfies {\n asChild: PropDef\n size: PropDef<(typeof tableSizes)[number]>\n variant: PropDef<(typeof tableVariants)[number]>\n layout: PropDef<(typeof tableLayouts)[number]>\n separator: PropDef<(typeof tableSeparators)[number]>\n wrapScrollArea: PropDef\n}\n\nconst tableCaptionPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableHeaderPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableBodyPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableFooterPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableRowPropDefs = {\n ...asChildPropDef,\n align: {\n type: 'enum',\n values: rowAlignValues,\n default: undefined,\n },\n} satisfies {\n asChild: PropDef\n align: PropDef<(typeof rowAlignValues)[number]>\n}\n\nconst tableHeadPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableCellPropDefs = {\n ...asChildPropDef,\n justify: {\n type: 'enum',\n values: cellJustifyValues,\n default: undefined,\n },\n width: {\n type: 'enum | string',\n values: cellWidthValues,\n default: undefined,\n },\n padding: {\n type: 'enum | string',\n values: cellPaddingValues,\n default: undefined,\n },\n} satisfies {\n asChild: PropDef\n justify: PropDef<(typeof cellJustifyValues)[number]>\n width: PropDef<(typeof cellWidthValues)[number]>\n padding: PropDef<(typeof cellPaddingValues)[number]>\n}\n\nexport {\n tableBodyPropDefs,\n tableCaptionPropDefs,\n tableCellPropDefs,\n tableFooterPropDefs,\n tableHeadPropDefs,\n tableHeaderPropDefs,\n tablePropDefs,\n tableRowPropDefs,\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA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B,GAAG;AAAA,EACH,SAAS;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,OAAO;AAAA,IACL,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -14,6 +14,11 @@ declare const tablePropDefs: {
|
|
|
14
14
|
values: readonly ["auto", "fixed"];
|
|
15
15
|
default: "auto";
|
|
16
16
|
};
|
|
17
|
+
separator: {
|
|
18
|
+
type: "enum";
|
|
19
|
+
values: readonly ["rules", "grid"];
|
|
20
|
+
default: "rules";
|
|
21
|
+
};
|
|
17
22
|
wrapScrollArea: {
|
|
18
23
|
type: "boolean";
|
|
19
24
|
default: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.props.d.cts","sourceRoot":"","sources":["../../../src/components/table/table.props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.props.d.cts","sourceRoot":"","sources":["../../../src/components/table/table.props.ts"],"names":[],"mappings":"AAcA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiClB,CAAA;AAED,QAAA,MAAM,oBAAoB;;;;;CAIzB,CAAA;AAED,QAAA,MAAM,mBAAmB;;;;;CAIxB,CAAA;AAED,QAAA,MAAM,iBAAiB;;;;;CAItB,CAAA;AAED,QAAA,MAAM,mBAAmB;;;;;CAIxB,CAAA;AAED,QAAA,MAAM,gBAAgB;;;;;;;;;;CAUrB,CAAA;AAED,QAAA,MAAM,iBAAiB;;;;;CAItB,CAAA;AAED,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;CAsBtB,CAAA;AAED,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,GACjB,CAAA"}
|
|
@@ -14,6 +14,11 @@ declare const tablePropDefs: {
|
|
|
14
14
|
values: readonly ["auto", "fixed"];
|
|
15
15
|
default: "auto";
|
|
16
16
|
};
|
|
17
|
+
separator: {
|
|
18
|
+
type: "enum";
|
|
19
|
+
values: readonly ["rules", "grid"];
|
|
20
|
+
default: "rules";
|
|
21
|
+
};
|
|
17
22
|
wrapScrollArea: {
|
|
18
23
|
type: "boolean";
|
|
19
24
|
default: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.props.d.mts","sourceRoot":"","sources":["../../../src/components/table/table.props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.props.d.mts","sourceRoot":"","sources":["../../../src/components/table/table.props.ts"],"names":[],"mappings":"AAcA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiClB,CAAA;AAED,QAAA,MAAM,oBAAoB;;;;;CAIzB,CAAA;AAED,QAAA,MAAM,mBAAmB;;;;;CAIxB,CAAA;AAED,QAAA,MAAM,iBAAiB;;;;;CAItB,CAAA;AAED,QAAA,MAAM,mBAAmB;;;;;CAIxB,CAAA;AAED,QAAA,MAAM,gBAAgB;;;;;;;;;;CAUrB,CAAA;AAED,QAAA,MAAM,iBAAiB;;;;;CAItB,CAAA;AAED,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;CAsBtB,CAAA;AAED,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,GACjB,CAAA"}
|
|
@@ -14,6 +14,11 @@ declare const tablePropDefs: {
|
|
|
14
14
|
values: readonly ["auto", "fixed"];
|
|
15
15
|
default: "auto";
|
|
16
16
|
};
|
|
17
|
+
separator: {
|
|
18
|
+
type: "enum";
|
|
19
|
+
values: readonly ["rules", "grid"];
|
|
20
|
+
default: "rules";
|
|
21
|
+
};
|
|
17
22
|
wrapScrollArea: {
|
|
18
23
|
type: "boolean";
|
|
19
24
|
default: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.props.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.props.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.props.ts"],"names":[],"mappings":"AAcA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiClB,CAAA;AAED,QAAA,MAAM,oBAAoB;;;;;CAIzB,CAAA;AAED,QAAA,MAAM,mBAAmB;;;;;CAIxB,CAAA;AAED,QAAA,MAAM,iBAAiB;;;;;CAItB,CAAA;AAED,QAAA,MAAM,mBAAmB;;;;;CAIxB,CAAA;AAED,QAAA,MAAM,gBAAgB;;;;;;;;;;CAUrB,CAAA;AAED,QAAA,MAAM,iBAAiB;;;;;CAItB,CAAA;AAED,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;CAsBtB,CAAA;AAED,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,GACjB,CAAA"}
|
|
@@ -3,6 +3,7 @@ import { spaceScaleValues } from "../../_internal/props/propDef.js";
|
|
|
3
3
|
const tableSizes = ["sm", "md", "lg"];
|
|
4
4
|
const tableVariants = ["surface", "ghost"];
|
|
5
5
|
const tableLayouts = ["auto", "fixed"];
|
|
6
|
+
const tableSeparators = ["rules", "grid"];
|
|
6
7
|
const rowAlignValues = ["start", "center", "end"];
|
|
7
8
|
const cellJustifyValues = ["start", "center", "end"];
|
|
8
9
|
const cellWidthValues = ["auto", "full"];
|
|
@@ -24,6 +25,11 @@ const tablePropDefs = {
|
|
|
24
25
|
values: tableLayouts,
|
|
25
26
|
default: "auto"
|
|
26
27
|
},
|
|
28
|
+
separator: {
|
|
29
|
+
type: "enum",
|
|
30
|
+
values: tableSeparators,
|
|
31
|
+
default: "rules"
|
|
32
|
+
},
|
|
27
33
|
wrapScrollArea: {
|
|
28
34
|
type: "boolean",
|
|
29
35
|
default: false
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/table/table.props.ts"],
|
|
4
|
-
"sourcesContent": ["import { asChildPropDef } from '../../_internal/props/asChild.prop'\nimport { spaceScaleValues } from '../../_internal/props/propDef'\n\nimport type { PropDef } from '../../_internal/props/propDef'\n\nconst tableSizes = ['sm', 'md', 'lg'] as const\nconst tableVariants = ['surface', 'ghost'] as const\nconst tableLayouts = ['auto', 'fixed'] as const\nconst rowAlignValues = ['start', 'center', 'end'] as const\nconst cellJustifyValues = ['start', 'center', 'end'] as const\nconst cellWidthValues = ['auto', 'full'] as const\nconst cellPaddingValues = ['none', ...spaceScaleValues] as const\n\nconst tablePropDefs = {\n ...asChildPropDef,\n size: {\n type: 'enum',\n values: tableSizes,\n default: 'md',\n },\n variant: {\n type: 'enum',\n values: tableVariants,\n default: 'surface',\n },\n layout: {\n type: 'enum',\n values: tableLayouts,\n default: 'auto',\n },\n wrapScrollArea: {\n type: 'boolean',\n default: false,\n },\n} satisfies {\n asChild: PropDef\n size: PropDef<(typeof tableSizes)[number]>\n variant: PropDef<(typeof tableVariants)[number]>\n layout: PropDef<(typeof tableLayouts)[number]>\n wrapScrollArea: PropDef\n}\n\nconst tableCaptionPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableHeaderPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableBodyPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableFooterPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableRowPropDefs = {\n ...asChildPropDef,\n align: {\n type: 'enum',\n values: rowAlignValues,\n default: undefined,\n },\n} satisfies {\n asChild: PropDef\n align: PropDef<(typeof rowAlignValues)[number]>\n}\n\nconst tableHeadPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableCellPropDefs = {\n ...asChildPropDef,\n justify: {\n type: 'enum',\n values: cellJustifyValues,\n default: undefined,\n },\n width: {\n type: 'enum | string',\n values: cellWidthValues,\n default: undefined,\n },\n padding: {\n type: 'enum | string',\n values: cellPaddingValues,\n default: undefined,\n },\n} satisfies {\n asChild: PropDef\n justify: PropDef<(typeof cellJustifyValues)[number]>\n width: PropDef<(typeof cellWidthValues)[number]>\n padding: PropDef<(typeof cellPaddingValues)[number]>\n}\n\nexport {\n tableBodyPropDefs,\n tableCaptionPropDefs,\n tableCellPropDefs,\n tableFooterPropDefs,\n tableHeadPropDefs,\n tableHeaderPropDefs,\n tablePropDefs,\n tableRowPropDefs,\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,sBAAsB;AAC/B,SAAS,wBAAwB;AAIjC,MAAM,aAAa,CAAC,MAAM,MAAM,IAAI;AACpC,MAAM,gBAAgB,CAAC,WAAW,OAAO;AACzC,MAAM,eAAe,CAAC,QAAQ,OAAO;AACrC,MAAM,iBAAiB,CAAC,SAAS,UAAU,KAAK;AAChD,MAAM,oBAAoB,CAAC,SAAS,UAAU,KAAK;AACnD,MAAM,kBAAkB,CAAC,QAAQ,MAAM;AACvC,MAAM,oBAAoB,CAAC,QAAQ,GAAG,gBAAgB;AAEtD,MAAM,gBAAgB;AAAA,EACpB,GAAG;AAAA,EACH,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,gBAAgB;AAAA,IACd,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AACF;
|
|
4
|
+
"sourcesContent": ["import { asChildPropDef } from '../../_internal/props/asChild.prop'\nimport { spaceScaleValues } from '../../_internal/props/propDef'\n\nimport type { PropDef } from '../../_internal/props/propDef'\n\nconst tableSizes = ['sm', 'md', 'lg'] as const\nconst tableVariants = ['surface', 'ghost'] as const\nconst tableLayouts = ['auto', 'fixed'] as const\nconst tableSeparators = ['rules', 'grid'] as const\nconst rowAlignValues = ['start', 'center', 'end'] as const\nconst cellJustifyValues = ['start', 'center', 'end'] as const\nconst cellWidthValues = ['auto', 'full'] as const\nconst cellPaddingValues = ['none', ...spaceScaleValues] as const\n\nconst tablePropDefs = {\n ...asChildPropDef,\n size: {\n type: 'enum',\n values: tableSizes,\n default: 'md',\n },\n variant: {\n type: 'enum',\n values: tableVariants,\n default: 'surface',\n },\n layout: {\n type: 'enum',\n values: tableLayouts,\n default: 'auto',\n },\n separator: {\n type: 'enum',\n values: tableSeparators,\n default: 'rules',\n },\n wrapScrollArea: {\n type: 'boolean',\n default: false,\n },\n} satisfies {\n asChild: PropDef\n size: PropDef<(typeof tableSizes)[number]>\n variant: PropDef<(typeof tableVariants)[number]>\n layout: PropDef<(typeof tableLayouts)[number]>\n separator: PropDef<(typeof tableSeparators)[number]>\n wrapScrollArea: PropDef\n}\n\nconst tableCaptionPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableHeaderPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableBodyPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableFooterPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableRowPropDefs = {\n ...asChildPropDef,\n align: {\n type: 'enum',\n values: rowAlignValues,\n default: undefined,\n },\n} satisfies {\n asChild: PropDef\n align: PropDef<(typeof rowAlignValues)[number]>\n}\n\nconst tableHeadPropDefs = {\n ...asChildPropDef,\n} satisfies {\n asChild: PropDef\n}\n\nconst tableCellPropDefs = {\n ...asChildPropDef,\n justify: {\n type: 'enum',\n values: cellJustifyValues,\n default: undefined,\n },\n width: {\n type: 'enum | string',\n values: cellWidthValues,\n default: undefined,\n },\n padding: {\n type: 'enum | string',\n values: cellPaddingValues,\n default: undefined,\n },\n} satisfies {\n asChild: PropDef\n justify: PropDef<(typeof cellJustifyValues)[number]>\n width: PropDef<(typeof cellWidthValues)[number]>\n padding: PropDef<(typeof cellPaddingValues)[number]>\n}\n\nexport {\n tableBodyPropDefs,\n tableCaptionPropDefs,\n tableCellPropDefs,\n tableFooterPropDefs,\n tableHeadPropDefs,\n tableHeaderPropDefs,\n tablePropDefs,\n tableRowPropDefs,\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,sBAAsB;AAC/B,SAAS,wBAAwB;AAIjC,MAAM,aAAa,CAAC,MAAM,MAAM,IAAI;AACpC,MAAM,gBAAgB,CAAC,WAAW,OAAO;AACzC,MAAM,eAAe,CAAC,QAAQ,OAAO;AACrC,MAAM,kBAAkB,CAAC,SAAS,MAAM;AACxC,MAAM,iBAAiB,CAAC,SAAS,UAAU,KAAK;AAChD,MAAM,oBAAoB,CAAC,SAAS,UAAU,KAAK;AACnD,MAAM,kBAAkB,CAAC,QAAQ,MAAM;AACvC,MAAM,oBAAoB,CAAC,QAAQ,GAAG,gBAAgB;AAEtD,MAAM,gBAAgB;AAAA,EACpB,GAAG;AAAA,EACH,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,WAAW;AAAA,IACT,MAAM;AAAA,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