@servicetitan/anvil2 1.47.1 → 1.48.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/CHANGELOG.md +32 -0
- package/dist/{Alert-BoJUAPue.js → Alert-Cz_w_cw0.js} +4 -4
- package/dist/{Alert-BoJUAPue.js.map → Alert-Cz_w_cw0.js.map} +1 -1
- package/dist/Alert.js +1 -1
- package/dist/{Announcement-DtMAQ0Xc.js → Announcement-C1xSJkl0.js} +4 -4
- package/dist/{Announcement-DtMAQ0Xc.js.map → Announcement-C1xSJkl0.js.map} +1 -1
- package/dist/Announcement.js +1 -1
- package/dist/{AnvilProvider-BhQklhtR.js → AnvilProvider-DDo8ZcIA.js} +4 -4
- package/dist/{AnvilProvider-BhQklhtR.js.map → AnvilProvider-DDo8ZcIA.js.map} +1 -1
- package/dist/AnvilProvider.js +1 -1
- package/dist/{Avatar-C0FuFDK4.js → Avatar-Bbwk2MCy.js} +2 -2
- package/dist/{Avatar-C0FuFDK4.js.map → Avatar-Bbwk2MCy.js.map} +1 -1
- package/dist/{Avatar-BWw31pcL.js → Avatar-VQrimv28.js} +2 -2
- package/dist/{Avatar-BWw31pcL.js.map → Avatar-VQrimv28.js.map} +1 -1
- package/dist/Avatar.js +2 -2
- package/dist/{Badge-DniZR2GC.js → Badge-DOnID5l5.js} +2 -2
- package/dist/{Badge-DniZR2GC.js.map → Badge-DOnID5l5.js.map} +1 -1
- package/dist/Badge.js +1 -1
- package/dist/{Breadcrumbs-0Yx3iLZ8.js → Breadcrumbs-DKqd8VRz.js} +5 -5
- package/dist/{Breadcrumbs-0Yx3iLZ8.js.map → Breadcrumbs-DKqd8VRz.js.map} +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/{Button-Bm-YMdkp.js → Button-DzcOa6iJ.js} +3 -3
- package/dist/{Button-Bm-YMdkp.js.map → Button-DzcOa6iJ.js.map} +1 -1
- package/dist/Button.js +1 -1
- package/dist/{ButtonCompound-BA95JQGP.js → ButtonCompound-Dvr3Fres.js} +2 -2
- package/dist/{ButtonCompound-BA95JQGP.js.map → ButtonCompound-Dvr3Fres.js.map} +1 -1
- package/dist/ButtonCompound.js +1 -1
- package/dist/{ButtonLink-BiFzqDml.js → ButtonLink-DGIRpyK6.js} +3 -3
- package/dist/{ButtonLink-BiFzqDml.js.map → ButtonLink-DGIRpyK6.js.map} +1 -1
- package/dist/ButtonLink.js +1 -1
- package/dist/{ButtonToggle-BO9HLpIW.js → ButtonToggle-Dv6VAm4W.js} +3 -3
- package/dist/{ButtonToggle-BO9HLpIW.js.map → ButtonToggle-Dv6VAm4W.js.map} +1 -1
- package/dist/ButtonToggle.js +1 -1
- package/dist/{Calendar-B3YJQo6Y.js → Calendar-8bP4LsQV.js} +2 -2
- package/dist/{Calendar-B3YJQo6Y.js.map → Calendar-8bP4LsQV.js.map} +1 -1
- package/dist/{Calendar-BE9JCFwy.js → Calendar-NDOcurOz.js} +5 -5
- package/dist/{Calendar-BE9JCFwy.js.map → Calendar-NDOcurOz.js.map} +1 -1
- package/dist/Calendar.js +2 -2
- package/dist/{Card-TyKjI6d8.js → Card-Cyoz-LaD.js} +2 -2
- package/dist/{Card-TyKjI6d8.js.map → Card-Cyoz-LaD.js.map} +1 -1
- package/dist/Card.js +1 -1
- package/dist/{Checkbox-DdDtsKg7.js → Checkbox-BJnt8TFk.js} +2 -2
- package/dist/{Checkbox-DdDtsKg7.js.map → Checkbox-BJnt8TFk.js.map} +1 -1
- package/dist/{Checkbox-Bib3kQcl.js → Checkbox-Bsa1FgoI.js} +5 -5
- package/dist/{Checkbox-Bib3kQcl.js.map → Checkbox-Bsa1FgoI.js.map} +1 -1
- package/dist/Checkbox.js +2 -2
- package/dist/{Chip-DRw9cu1_.js → Chip-BGa1Inb8.js} +4 -4
- package/dist/{Chip-DRw9cu1_.js.map → Chip-BGa1Inb8.js.map} +1 -1
- package/dist/Chip.js +1 -1
- package/dist/{Combobox-BWGxdcGI.js → Combobox-BfqKpX1v.js} +13 -13
- package/dist/{Combobox-BWGxdcGI.js.map → Combobox-BfqKpX1v.js.map} +1 -1
- package/dist/Combobox.js +1 -1
- package/dist/{DataTable-ApkEFfCX.js → DataTable-xUON92DR.js} +302 -132
- package/dist/DataTable-xUON92DR.js.map +1 -0
- package/dist/DataTable.css +86 -83
- package/dist/{DateField-ynB9Nkku.js → DateField-Cm0FIG3Y.js} +6 -6
- package/dist/{DateField-ynB9Nkku.js.map → DateField-Cm0FIG3Y.js.map} +1 -1
- package/dist/DateField.js +1 -1
- package/dist/{DateFieldRange-DwUXExjQ.js → DateFieldRange-CGGqW_cg.js} +6 -6
- package/dist/{DateFieldRange-DwUXExjQ.js.map → DateFieldRange-CGGqW_cg.js.map} +1 -1
- package/dist/DateFieldRange.js +1 -1
- package/dist/{DateFieldSingle-ipxhv1fi.js → DateFieldSingle-BYWuJ3IL.js} +6 -6
- package/dist/{DateFieldSingle-ipxhv1fi.js.map → DateFieldSingle-BYWuJ3IL.js.map} +1 -1
- package/dist/DateFieldSingle.js +1 -1
- package/dist/{DateFieldYearless-BH3Kdx-c.js → DateFieldYearless-BXRgNWzy.js} +2 -2
- package/dist/{DateFieldYearless-BH3Kdx-c.js.map → DateFieldYearless-BXRgNWzy.js.map} +1 -1
- package/dist/DateFieldYearless.js +1 -1
- package/dist/{DaysOfTheWeek-GHPO3u2J.js → DaysOfTheWeek-BIi9dyJP.js} +9 -8
- package/dist/DaysOfTheWeek-BIi9dyJP.js.map +1 -0
- package/dist/DaysOfTheWeek.js +1 -1
- package/dist/{Details-clBN4oi5.js → Details-Bg7QzlOm.js} +3 -3
- package/dist/{Details-clBN4oi5.js.map → Details-Bg7QzlOm.js.map} +1 -1
- package/dist/Details.js +1 -1
- package/dist/{Dialog-Drw33nrV.js → Dialog-fJClGTI6.js} +4 -4
- package/dist/{Dialog-Drw33nrV.js.map → Dialog-fJClGTI6.js.map} +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/{Divider-Dx2AV2jM.js → Divider-DYZFKug1.js} +2 -2
- package/dist/{Divider-Dx2AV2jM.js.map → Divider-DYZFKug1.js.map} +1 -1
- package/dist/Divider.js +1 -1
- package/dist/Dnd.js +1 -1
- package/dist/DndSort.js +5 -5
- package/dist/{Drawer-BDShECnc.js → Drawer-DyHDRTR-.js} +4 -4
- package/dist/{Drawer-BDShECnc.js.map → Drawer-DyHDRTR-.js.map} +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/{EditCard-1KcrWvsY.js → EditCard-LdyduHqX.js} +6 -6
- package/dist/{EditCard-1KcrWvsY.js.map → EditCard-LdyduHqX.js.map} +1 -1
- package/dist/EditCard.js +1 -1
- package/dist/{FieldLabel-NOjvQkOa.js → FieldLabel-DIlzcPIQ.js} +3 -3
- package/dist/{FieldLabel-NOjvQkOa.js.map → FieldLabel-DIlzcPIQ.js.map} +1 -1
- package/dist/FieldLabel.js +1 -1
- package/dist/{FieldMessage-D0Z4yMMm.js → FieldMessage-BbARBii0.js} +2 -2
- package/dist/{FieldMessage-D0Z4yMMm.js.map → FieldMessage-BbARBii0.js.map} +1 -1
- package/dist/FieldMessage.js +1 -1
- package/dist/{Flex-DdOpCJf2.js → Flex-GLF5XRJg.js} +2 -2
- package/dist/{Flex-DdOpCJf2.js.map → Flex-GLF5XRJg.js.map} +1 -1
- package/dist/Flex.js +1 -1
- package/dist/{Grid-M1Gq9b-a.js → Grid-BpAt2zA7.js} +2 -2
- package/dist/{Grid-M1Gq9b-a.js.map → Grid-BpAt2zA7.js.map} +1 -1
- package/dist/Grid.js +1 -1
- package/dist/{Helper-BTXu4PCQ.js → Helper-DHoKHqxV.js} +2 -2
- package/dist/{Helper-BTXu4PCQ.js.map → Helper-DHoKHqxV.js.map} +1 -1
- package/dist/{Icon-CB-34pME.js → Icon-TcJbUdTz.js} +2 -2
- package/dist/{Icon-CB-34pME.js.map → Icon-TcJbUdTz.js.map} +1 -1
- package/dist/Icon.js +1 -1
- package/dist/{InputMask-D1Uushxa.js → InputMask-B6oJlChY.js} +2 -2
- package/dist/{InputMask-D1Uushxa.js.map → InputMask-B6oJlChY.js.map} +1 -1
- package/dist/InputMask.js +1 -1
- package/dist/{Link-BYvAKMcm.js → Link-Br_AJ7Af.js} +3 -3
- package/dist/{Link-BYvAKMcm.js.map → Link-Br_AJ7Af.js.map} +1 -1
- package/dist/Link.js +1 -1
- package/dist/{LinkButton-DFJqMz7w.js → LinkButton-CwiVzaro.js} +2 -2
- package/dist/{LinkButton-DFJqMz7w.js.map → LinkButton-CwiVzaro.js.map} +1 -1
- package/dist/LinkButton.js +1 -1
- package/dist/{ListView-DG9YJ3DU.js → ListView-fBFSagWO.js} +6 -4
- package/dist/ListView-fBFSagWO.js.map +1 -0
- package/dist/ListView.js +1 -1
- package/dist/{Listbox-CMg3B6Nd.js → Listbox-gtZ2Ao_I.js} +5 -5
- package/dist/{Listbox-CMg3B6Nd.js.map → Listbox-gtZ2Ao_I.js.map} +1 -1
- package/dist/Listbox.js +1 -1
- package/dist/{LocalizationProvider-Dgx0sOZg.js → LocalizationProvider-Cqattc3O.js} +2 -2
- package/dist/{LocalizationProvider-Dgx0sOZg.js.map → LocalizationProvider-Cqattc3O.js.map} +1 -1
- package/dist/LocalizationProvider.js +1 -1
- package/dist/{Menu-WuNO2Rbu.js → Menu-CBbUK_sX.js} +4 -4
- package/dist/{Menu-WuNO2Rbu.js.map → Menu-CBbUK_sX.js.map} +1 -1
- package/dist/Menu.js +1 -1
- package/dist/{NumberField-BUo30AOa.js → NumberField-CNskrtsN.js} +9 -8
- package/dist/{NumberField-BUo30AOa.js.map → NumberField-CNskrtsN.js.map} +1 -1
- package/dist/NumberField.js +1 -1
- package/dist/Overflow.js +6 -4
- package/dist/Overflow.js.map +1 -1
- package/dist/{Page-BtkspWJj.js → Page-4VdFrCjy.js} +13 -13
- package/dist/{Page-BtkspWJj.js.map → Page-4VdFrCjy.js.map} +1 -1
- package/dist/Page.js +1 -1
- package/dist/{Pagination-D6y_imDK.js → Pagination-CQjNN1yN.js} +8 -7
- package/dist/{Pagination-D6y_imDK.js.map → Pagination-CQjNN1yN.js.map} +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/{Popover-CSj2mv66.js → Popover--c9PXAVi.js} +3 -3
- package/dist/{Popover-CSj2mv66.js.map → Popover--c9PXAVi.js.map} +1 -1
- package/dist/Popover.js +1 -1
- package/dist/{ProgressBar-BPIta_9F.js → ProgressBar-CXMuhBQV.js} +6 -6
- package/dist/{ProgressBar-BPIta_9F.js.map → ProgressBar-CXMuhBQV.js.map} +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/{Radio-0WGmwHGs.js → Radio-CTYs8JpI.js} +2 -2
- package/dist/{Radio-0WGmwHGs.js.map → Radio-CTYs8JpI.js.map} +1 -1
- package/dist/Radio.js +2 -2
- package/dist/{RadioGroup-BARdP9VP.js → RadioGroup-BVGnsTuG.js} +6 -6
- package/dist/RadioGroup-BVGnsTuG.js.map +1 -0
- package/dist/{SearchField-DTdrOWbb.js → SearchField-DLqva3o3.js} +3 -3
- package/dist/{SearchField-DTdrOWbb.js.map → SearchField-DLqva3o3.js.map} +1 -1
- package/dist/SearchField.js +1 -1
- package/dist/{SegmentedControl-DVSlMI3w.js → SegmentedControl-1OzOQmCp.js} +2 -2
- package/dist/{SegmentedControl-DVSlMI3w.js.map → SegmentedControl-1OzOQmCp.js.map} +1 -1
- package/dist/SegmentedControl.js +1 -1
- package/dist/{SelectCard-Db-CNnMe.js → SelectCard-Dw7zW0UN.js} +4 -4
- package/dist/{SelectCard-Db-CNnMe.js.map → SelectCard-Dw7zW0UN.js.map} +1 -1
- package/dist/SelectCard.js +1 -1
- package/dist/{SelectTrigger-CcCiccEp.js → SelectTrigger-BQNqyG3M.js} +5 -5
- package/dist/{SelectTrigger-CcCiccEp.js.map → SelectTrigger-BQNqyG3M.js.map} +1 -1
- package/dist/SelectTrigger.js +1 -1
- package/dist/{SelectTriggerBase-DtLWrsm7.js → SelectTriggerBase-B-fxog4U.js} +6 -6
- package/dist/{SelectTriggerBase-DtLWrsm7.js.map → SelectTriggerBase-B-fxog4U.js.map} +1 -1
- package/dist/{SideNav-B-rd3esD.js → SideNav-COiPAIph.js} +3 -3
- package/dist/{SideNav-B-rd3esD.js.map → SideNav-COiPAIph.js.map} +1 -1
- package/dist/SideNav.js +1 -1
- package/dist/Skeleton.js +1 -1
- package/dist/{Stepper-CrqRl7BV.js → Stepper-xcgOQzru.js} +4 -4
- package/dist/{Stepper-CrqRl7BV.js.map → Stepper-xcgOQzru.js.map} +1 -1
- package/dist/Stepper.js +1 -1
- package/dist/{Switch-Dt8kun__.js → Switch-mhyHJeex.js} +5 -5
- package/dist/{Switch-Dt8kun__.js.map → Switch-mhyHJeex.js.map} +1 -1
- package/dist/Switch.js +1 -1
- package/dist/{Tab-D8fMPPzs.js → Tab-BISlFW_i.js} +3 -3
- package/dist/{Tab-D8fMPPzs.js.map → Tab-BISlFW_i.js.map} +1 -1
- package/dist/Tab.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/{Text-Bbi-LKog.js → Text-CDzLZl1O.js} +2 -2
- package/dist/{Text-Bbi-LKog.js.map → Text-CDzLZl1O.js.map} +1 -1
- package/dist/Text.js +1 -1
- package/dist/{TextField-BNIVbKWT.js → TextField-CUrYEZR4.js} +2 -2
- package/dist/{TextField-BNIVbKWT.js.map → TextField-CUrYEZR4.js.map} +1 -1
- package/dist/{TextField-gFol8RuR.js → TextField-DPTJjF8V.js} +7 -6
- package/dist/TextField-DPTJjF8V.js.map +1 -0
- package/dist/TextField.js +1 -1
- package/dist/{Textarea-Ddnqj2Qt.js → Textarea-f0jAKcvn.js} +7 -6
- package/dist/{Textarea-Ddnqj2Qt.js.map → Textarea-f0jAKcvn.js.map} +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/{ThemeProvider-Bo2JRqGq.js → ThemeProvider-CUiXHn4p.js} +2 -2
- package/dist/{ThemeProvider-Bo2JRqGq.js.map → ThemeProvider-CUiXHn4p.js.map} +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/{TimeField-Dc0CfW4e.js → TimeField-CGSwrpl0.js} +6 -6
- package/dist/{TimeField-Dc0CfW4e.js.map → TimeField-CGSwrpl0.js.map} +1 -1
- package/dist/TimeField.js +1 -1
- package/dist/Toast.js +2 -2
- package/dist/{Toaster-BGqW3sq1.js → Toaster-C6iB4h0P.js} +2 -2
- package/dist/{Toaster-BGqW3sq1.js.map → Toaster-C6iB4h0P.js.map} +1 -1
- package/dist/{Toaster-DEV2FFN2.js → Toaster-D72xHdfH.js} +26 -27
- package/dist/Toaster-D72xHdfH.js.map +1 -0
- package/dist/Toaster.css +56 -59
- package/dist/{Toolbar-DsBKx1eB.js → Toolbar-CcJa_YpH.js} +20 -20
- package/dist/{Toolbar-DsBKx1eB.js.map → Toolbar-CcJa_YpH.js.map} +1 -1
- package/dist/Toolbar.js +1 -1
- package/dist/{Tooltip-CmsYVHVU.js → Tooltip-BOfdwyTv.js} +2 -2
- package/dist/{Tooltip-CmsYVHVU.js.map → Tooltip-BOfdwyTv.js.map} +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/anvil-fonts.css +30 -0
- package/dist/beta/components/Table/DataTable/DataTable.d.ts +22 -1
- package/dist/beta/components/Table/DataTable/DataTable.test-data.d.ts +1 -0
- package/dist/beta/components/Table/DataTable/internal/DataTableContext.d.ts +1 -2
- package/dist/beta/components/Table/DataTable/internal/DataTablePagination.d.ts +3 -0
- package/dist/beta/components/Table/DataTable/internal/useDataTableContext.d.ts +4 -0
- package/dist/beta/components/Table/DataTable/stories/DataTable.story-data.d.ts +1 -0
- package/dist/beta/components/Table/DataTable/types.d.ts +43 -0
- package/dist/beta/components/Table/createColumnHelper.d.ts +1 -2
- package/dist/beta/components/Table/index.d.ts +1 -0
- package/dist/beta/components/Toolbar/Toolbar.d.ts +2 -2
- package/dist/beta/components/Toolbar/index.d.ts +1 -0
- package/dist/beta.js +4 -4
- package/dist/components/DateFieldRange/internal/useDateFieldRangeConversion.d.ts +1 -1
- package/dist/hooks/useBreakpoint/useBreakpoint.d.ts +32 -0
- package/dist/{index-CVqRZ_4L.js → index-CUVkL0hr.js} +3 -3
- package/dist/{index-CVqRZ_4L.js.map → index-CUVkL0hr.js.map} +1 -1
- package/dist/index.js +70 -69
- package/dist/index.js.map +1 -1
- package/dist/index2.css +0 -30
- package/dist/{useBreakpoint-6KK6MJ9g.js → useBreakpoint-BGCsBhQ7.js} +15 -2
- package/dist/useBreakpoint-BGCsBhQ7.js.map +1 -0
- package/dist/useBreakpoint.js +1 -1
- package/dist/{useLayoutPropsUtil-DLrhehwU.js → useLayoutPropsUtil-C7FVYB8F.js} +5 -46
- package/dist/useLayoutPropsUtil-C7FVYB8F.js.map +1 -0
- package/dist/{utils-wis6GReX.js → utils-CyPyKUVh.js} +2 -2
- package/dist/{utils-wis6GReX.js.map → utils-CyPyKUVh.js.map} +1 -1
- package/package.json +1 -1
- package/dist/DataTable-ApkEFfCX.js.map +0 -1
- package/dist/DaysOfTheWeek-GHPO3u2J.js.map +0 -1
- package/dist/ListView-DG9YJ3DU.js.map +0 -1
- package/dist/RadioGroup-BARdP9VP.js.map +0 -1
- package/dist/TextField-gFol8RuR.js.map +0 -1
- package/dist/Toaster-DEV2FFN2.js.map +0 -1
- package/dist/useBreakpoint-6KK6MJ9g.js.map +0 -1
- package/dist/useLayoutPropsUtil-DLrhehwU.js.map +0 -1
|
@@ -2,6 +2,7 @@ import { ComponentPropsWithoutRef } from 'react';
|
|
|
2
2
|
import { LayoutUtilProps } from '../../../../types';
|
|
3
3
|
import { ColumnDef, CustomTableFooterCellProps, TableRow } from '../types';
|
|
4
4
|
import { TableContainerProps } from '../base/TableContainer';
|
|
5
|
+
import { DataTablePaginationConfig } from './types';
|
|
5
6
|
/**
|
|
6
7
|
* Represents a sorted column configuration for DataTable
|
|
7
8
|
*/
|
|
@@ -24,7 +25,7 @@ export type DataTableProps<T> = LayoutUtilProps & ComponentPropsWithoutRef<"div"
|
|
|
24
25
|
/**
|
|
25
26
|
* The data for the table. Must be an array of objects with an `id` property.
|
|
26
27
|
*/
|
|
27
|
-
data: TableRow<T>[]
|
|
28
|
+
data: TableRow<T>[] | Promise<TableRow<T>[]>;
|
|
28
29
|
/**
|
|
29
30
|
* The columns for the table, created with the `createColumnHelper` factory function.
|
|
30
31
|
*/
|
|
@@ -71,6 +72,12 @@ export type DataTableProps<T> = LayoutUtilProps & ComponentPropsWithoutRef<"div"
|
|
|
71
72
|
* Called when the column sorting state changes. Passes the sorted column.
|
|
72
73
|
*/
|
|
73
74
|
onSort?: (sortedColumn: SortedColumn | undefined) => void;
|
|
75
|
+
/**
|
|
76
|
+
* Pagination configuration. When provided, enables pagination and filters data to show only the current page.
|
|
77
|
+
* When `true`, the default pagination configuration is used.
|
|
78
|
+
* When `false` or `undefined`, no pagination is applied and all data is shown.
|
|
79
|
+
*/
|
|
80
|
+
pagination?: boolean | DataTablePaginationConfig<T>;
|
|
74
81
|
/**
|
|
75
82
|
* The selected row ids.
|
|
76
83
|
*/
|
|
@@ -94,6 +101,7 @@ export type DataTableProps<T> = LayoutUtilProps & ComponentPropsWithoutRef<"div"
|
|
|
94
101
|
* - Row sub-component
|
|
95
102
|
* - Row sub-rows
|
|
96
103
|
* - Default and Strong backgrounds
|
|
104
|
+
* - Pagination support with configurable items per page
|
|
97
105
|
*
|
|
98
106
|
* @param props - The props for the DataTable component
|
|
99
107
|
* @param props.data - The data for the table. Must be an array of objects with an `id` property.
|
|
@@ -108,9 +116,22 @@ export type DataTableProps<T> = LayoutUtilProps & ComponentPropsWithoutRef<"div"
|
|
|
108
116
|
* @param props.onSelectRow - Called when the row selection state changes. Passes the selected row ids.
|
|
109
117
|
* @param props.onSort - Called when the column sorting state changes. Passes the sorted column.
|
|
110
118
|
* @param props.onExpandRow - Called when the row expansion state changes. Passes the expanded row ids.
|
|
119
|
+
* @param props.pagination - Pagination configuration. When provided, enables pagination and filters data to show only the current page. When undefined, all data is shown and no pagination controls are rendered.
|
|
111
120
|
* @param props.selectedRowIds - The selected row ids.
|
|
112
121
|
* @param props.sortedColumn - The sorted column.
|
|
113
122
|
* @param props.style - The style of the table container.
|
|
114
123
|
* @param props.rest - The rest of the props for the DataTable component, spread to the div surrounding the table.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* <DataTable
|
|
127
|
+
* data={tableData}
|
|
128
|
+
* columns={columns}
|
|
129
|
+
* pagination={{
|
|
130
|
+
* itemsPerPage: 25,
|
|
131
|
+
* defaultPageIndex: 0,
|
|
132
|
+
* onPageChange: (pageIndex) => console.log('Page changed to:', pageIndex),
|
|
133
|
+
* showCount: true,
|
|
134
|
+
* }}
|
|
135
|
+
* />
|
|
115
136
|
*/
|
|
116
137
|
export declare function DataTable<T>(props: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,6 +7,7 @@ export type TableStoryData = {
|
|
|
7
7
|
status?: Status[];
|
|
8
8
|
};
|
|
9
9
|
export declare const data: TableRow<TableStoryData>[];
|
|
10
|
+
export declare const longData: TableRow<TableStoryData>[];
|
|
10
11
|
export declare const dataWithEmptyCells: TableRow<TableStoryData>[];
|
|
11
12
|
export declare const dataWithSubRow: TableRow<TableStoryData>[];
|
|
12
13
|
export declare const dataWithSubComponent: TableRow<TableStoryData>[];
|
|
@@ -3,7 +3,7 @@ import { RegisterCellProps } from '../../internal/focus-management/useFocusManag
|
|
|
3
3
|
/**
|
|
4
4
|
* The context type for the table
|
|
5
5
|
*/
|
|
6
|
-
interface DataTableContextType {
|
|
6
|
+
export interface DataTableContextType {
|
|
7
7
|
hoveredColumnId: string | null;
|
|
8
8
|
setHoveredColumnId: (columnId: string | null) => void;
|
|
9
9
|
isOffGridInteractionOccurring: boolean;
|
|
@@ -23,4 +23,3 @@ interface DataTableContextType {
|
|
|
23
23
|
* The context for the table context provider
|
|
24
24
|
*/
|
|
25
25
|
export declare const DataTableContext: import('react').Context<DataTableContextType | undefined>;
|
|
26
|
-
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PaginationProps } from '../../../../..';
|
|
2
|
+
export type DataTablePaginationProps = Pick<PaginationProps, "page" | "itemsPerPage" | "totalItemCount" | "showCount" | "onPageChange">;
|
|
3
|
+
export declare const DataTablePagination: ({ showCount, ...props }: DataTablePaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,6 +15,7 @@ export declare const expandedRowData: TableRow<TableStoryData>[];
|
|
|
15
15
|
export declare const subComponentsData: TableRow<TableStoryData>[];
|
|
16
16
|
export declare const primaryColumns: import('../..').ColumnDef<TableStoryData>[];
|
|
17
17
|
export declare const groupedColumns: import('../..').ColumnDef<TableStoryData>[];
|
|
18
|
+
export declare const columnsWithoutFooter: import('../..').ColumnDef<TableStoryData>[];
|
|
18
19
|
export type Category = "electronics" | "clothing" | "home" | "garden" | "other";
|
|
19
20
|
export type EditableTableStoryData = {
|
|
20
21
|
id: string;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { TableRow } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration for pagination in DataTable
|
|
4
|
+
*/
|
|
5
|
+
export type DataTablePaginationConfig<T> = {
|
|
6
|
+
/**
|
|
7
|
+
* Number of rows displayed per page
|
|
8
|
+
* @default 25
|
|
9
|
+
*/
|
|
10
|
+
rowsPerPage?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Current page index (0-based)
|
|
13
|
+
*/
|
|
14
|
+
currentPageIndex?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Function to get the data for the current page. When used, the data displayed will be
|
|
17
|
+
* fully controlled by the implementor. This is useful for server-side pagination scenarios where
|
|
18
|
+
* the total number of rows may differ from the data array length.
|
|
19
|
+
*/
|
|
20
|
+
loadPageData?: ({ pageIndex, pageSize, }: {
|
|
21
|
+
pageIndex: number;
|
|
22
|
+
pageSize: number;
|
|
23
|
+
}) => TableRow<T>[] | Promise<TableRow<T>[]>;
|
|
24
|
+
/**
|
|
25
|
+
* Default page index for uncontrolled mode (0-based)
|
|
26
|
+
* @default 0
|
|
27
|
+
*/
|
|
28
|
+
defaultPageIndex?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Callback when page changes. Receives the new page index (0-based)
|
|
31
|
+
*/
|
|
32
|
+
onPageChange?: (pageIndex: number) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Whether to display the item count information in pagination
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
|
+
showCount?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Total number of rows across all pages. Falls back to data.length if not provided.
|
|
40
|
+
* Useful for server-side pagination scenarios where totalRowCount may differ from data array length.
|
|
41
|
+
*/
|
|
42
|
+
totalRowCount?: number;
|
|
43
|
+
};
|
|
@@ -4,7 +4,7 @@ import { ColumnDef } from './types';
|
|
|
4
4
|
* Utility type that allows a value to be either the original type or,
|
|
5
5
|
* if it's an array, one of the elements in the array
|
|
6
6
|
*/
|
|
7
|
-
type ValueOrElement<V> = V extends (infer U)[] ? V | U : V;
|
|
7
|
+
export type ValueOrElement<V> = V extends (infer U)[] ? V | U : V;
|
|
8
8
|
/**
|
|
9
9
|
* Factory function to create column helper function for defining Table columns
|
|
10
10
|
*
|
|
@@ -22,4 +22,3 @@ export declare function createColumnHelper<T>(): <K extends keyof T>(id: K | {
|
|
|
22
22
|
label: string;
|
|
23
23
|
}[];
|
|
24
24
|
}) => ColumnDef<T>;
|
|
25
|
-
export {};
|
|
@@ -263,8 +263,8 @@ export declare const Toolbar: import('react').ForwardRefExoticComponent<Omit<imp
|
|
|
263
263
|
* />
|
|
264
264
|
*/
|
|
265
265
|
Filters: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & LayoutUtilProps & {
|
|
266
|
-
filters: import('
|
|
267
|
-
onFilterChange?: (filters: import('
|
|
266
|
+
filters: import('.').Filter[];
|
|
267
|
+
onFilterChange?: (filters: import('.').Filter[]) => void;
|
|
268
268
|
controlledFiltering?: boolean;
|
|
269
269
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
270
270
|
/**
|
|
@@ -7,3 +7,4 @@ export { ToolbarSelect, type ToolbarSelectProps } from './ToolbarSelect';
|
|
|
7
7
|
export { type ToolbarItemAppearance, type ToolbarOverflowTypes } from './types';
|
|
8
8
|
export { ToolbarControlGroup, type ToolbarControlGroupProps, } from './ToolbarControlGroup';
|
|
9
9
|
export { ToolbarSearchField, type ToolbarSearchFieldProps, } from './ToolbarSearchField';
|
|
10
|
+
export { type Filter, type BooleanFilter, type CustomFilter, type SingleSelectFilter, type MultiSelectFilter, type DateFilter, type DateRangeFilter, type FilterValue, type FilterRenderProps, type BaseFilter, } from './Filters/internal/types';
|
package/dist/beta.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { D as DataTable,
|
|
2
|
-
export { T as Toolbar, a as ToolbarButton, c as ToolbarButtonLink, b as ToolbarButtonToggle, e as ToolbarControlGroup, g as ToolbarElement, f as ToolbarSearchField, d as ToolbarSelect } from './Toolbar-
|
|
3
|
-
export { u as useCalendarBetaProps } from './Calendar-
|
|
4
|
-
export { C as Calendar } from './Calendar-
|
|
1
|
+
export { D as DataTable, a as chipsFormatter, c as createColumnHelper, b as currencyFormatter, p as percentFormatter } from './DataTable-xUON92DR.js';
|
|
2
|
+
export { T as Toolbar, a as ToolbarButton, c as ToolbarButtonLink, b as ToolbarButtonToggle, e as ToolbarControlGroup, g as ToolbarElement, f as ToolbarSearchField, d as ToolbarSelect } from './Toolbar-CcJa_YpH.js';
|
|
3
|
+
export { u as useCalendarBetaProps } from './Calendar-NDOcurOz.js';
|
|
4
|
+
export { C as Calendar } from './Calendar-8bP4LsQV.js';
|
|
5
5
|
//# sourceMappingURL=beta.js.map
|
|
@@ -20,7 +20,7 @@ export declare const useDateFieldRangeConversion: (props: DateFieldRangeProps) =
|
|
|
20
20
|
maxDate: DateTime<boolean> | null | undefined;
|
|
21
21
|
unavailable: {
|
|
22
22
|
dates: DateTime<boolean>[] | undefined;
|
|
23
|
-
daysOfWeek: (3 | 1 | 2 | 4 | 5 |
|
|
23
|
+
daysOfWeek: (3 | 1 | 6 | 2 | 4 | 5 | 7)[] | undefined;
|
|
24
24
|
};
|
|
25
25
|
onChange: (change: Omit<DateFieldRangeChange, "startDate" | "endDate"> & {
|
|
26
26
|
startDate: DateTime | null;
|
|
@@ -26,6 +26,30 @@ export type BreakpointReturnProps = {
|
|
|
26
26
|
* Current viewport height
|
|
27
27
|
*/
|
|
28
28
|
innerHeight: number;
|
|
29
|
+
/**
|
|
30
|
+
* True for all breakpoints (mobile-first: xs and above)
|
|
31
|
+
*/
|
|
32
|
+
xs: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* True when viewport width >= 640px (mobile-first: sm and above)
|
|
35
|
+
*/
|
|
36
|
+
sm: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* True when viewport width >= 768px (mobile-first: md and above)
|
|
39
|
+
*/
|
|
40
|
+
md: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* True when viewport width >= 1024px (mobile-first: lg and above)
|
|
43
|
+
*/
|
|
44
|
+
lg: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* True when viewport width >= 1280px (mobile-first: xl and above)
|
|
47
|
+
*/
|
|
48
|
+
xl: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* True when viewport width >= 1536px (mobile-first: xxl and above)
|
|
51
|
+
*/
|
|
52
|
+
xxl: boolean;
|
|
29
53
|
};
|
|
30
54
|
/**
|
|
31
55
|
* Custom hook for detecting current breakpoint and viewport information.
|
|
@@ -33,6 +57,7 @@ export type BreakpointReturnProps = {
|
|
|
33
57
|
* Features:
|
|
34
58
|
* - Detects current breakpoint based on viewport width
|
|
35
59
|
* - Supports all standard breakpoints (xs, sm, md, lg, xl, xxl)
|
|
60
|
+
* - Provides mobile-first boolean props (e.g., `lg` is true for lg, xl, and xxl)
|
|
36
61
|
* - Provides device orientation information
|
|
37
62
|
* - Returns current viewport dimensions
|
|
38
63
|
* - Uses hammer-token breakpoint values for consistency
|
|
@@ -40,6 +65,13 @@ export type BreakpointReturnProps = {
|
|
|
40
65
|
* - Supports optional disable functionality
|
|
41
66
|
* - Uses visualViewport API for accurate measurements
|
|
42
67
|
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```tsx
|
|
70
|
+
* const breakpoint = useBreakpoint();
|
|
71
|
+
* // Mobile-first approach:
|
|
72
|
+
* <div className={cn({ 'p-block-4': breakpoint?.lg })} />
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
43
75
|
* @param props - Optional configuration object
|
|
44
76
|
* @param props.disable - Whether to disable the hook
|
|
45
77
|
* @returns Current breakpoint information or undefined if disabled
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { I as Icon } from './Icon-
|
|
2
|
+
import { I as Icon } from './Icon-TcJbUdTz.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import { c as cx } from './index-tZvMCc77.js';
|
|
6
|
-
import { B as ButtonCompound } from './ButtonCompound-
|
|
6
|
+
import { B as ButtonCompound } from './ButtonCompound-Dvr3Fres.js';
|
|
7
7
|
|
|
8
8
|
import './index.css';const SvgDragIndicator = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" }));
|
|
9
9
|
|
|
@@ -103,4 +103,4 @@ const Dnd = {
|
|
|
103
103
|
};
|
|
104
104
|
|
|
105
105
|
export { Dnd as D, DndSortLine as a, DndHandleButton as b, DndHandle as c, styles as s };
|
|
106
|
-
//# sourceMappingURL=index-
|
|
106
|
+
//# sourceMappingURL=index-CUVkL0hr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-CVqRZ_4L.js","sources":["../../hammer-icon/mdi/round/drag_indicator.svg","../src/components/Dnd/DndHandle.tsx","../src/components/Dnd/DndHandleButton.tsx","../src/components/Dnd/DndSortLine.tsx","../src/components/Dnd/DndZone.tsx","../src/components/Dnd/index.ts"],"sourcesContent":["import * as React from \"react\";\nconst SvgDragIndicator = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"1em\", height: \"1em\", viewBox: \"0 0 24 24\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z\" }));\nexport default SvgDragIndicator;\n","import { Icon } from \"../Icon\";\nimport DragIndicator from \"@servicetitan/hammer-icon/mdi/round/drag_indicator.svg\";\nimport styles from \"./DndHandle.module.scss\";\nimport cx from \"classnames\";\n\n/**\n * Props for the DndHandle component\n */\nexport type DndHandleProps = {\n /**\n * Additional CSS class names to apply to the drag handle.\n */\n className?: string;\n};\n\n/**\n * A reusable drag handle icon component for drag and drop interactions.\n *\n * Features:\n * - Standardized drag indicator icon\n * - Accessible with proper ARIA attributes\n * - Customizable styling through className prop\n * - Consistent visual appearance across applications\n * - Lightweight and performant\n * - Supports all standard HTML element props\n *\n * @example\n * <DndHandle className=\"custom-drag-handle\" />\n */\nexport function DndHandle({ className }: { className?: string }) {\n const handleClasses = cx(styles.handle, className);\n return (\n <Icon svg={DragIndicator} className={handleClasses} role=\"presentation\" />\n );\n}\n","import { ButtonCompound } from \"../ButtonCompound\";\nimport handleStyles from \"./DndHandle.module.scss\";\nimport cx from \"classnames\";\nimport { forwardRef } from \"react\";\nimport { DndHandle } from \"./DndHandle\";\n\n/**\n * Props for the DndHandleButton component\n * @extends React.ComponentPropsWithoutRef<typeof ButtonCompound>\n */\nexport interface DndHandleButtonProps\n extends React.ComponentPropsWithoutRef<typeof ButtonCompound> {\n /**\n * Indicates whether the handle is currently being dragged.\n * @default false\n */\n isActive?: boolean;\n}\n\n/**\n * A reusable drag handle button component for drag and drop functionality.\n *\n * Features:\n * - Interactive button with drag handle icon\n * - Visual feedback for active drag state\n * - Accessible with proper ARIA attributes\n * - Extends ButtonCompound functionality\n * - Customizable styling through className prop\n * - Supports all standard button props\n * - Consistent visual appearance across applications\n *\n * @example\n * <DndHandleButton\n * isActive={isDragging}\n * className=\"custom-handle-button\"\n * onClick={handleClick}\n * />\n */\nexport const DndHandleButton = forwardRef<\n HTMLButtonElement,\n DndHandleButtonProps\n>(({ isActive = false, className, ...props }, ref) => {\n const handleButtonClasses = cx(className, handleStyles[\"handle-button\"], {\n [handleStyles[\"active\"]]: isActive,\n });\n\n return (\n <ButtonCompound\n ref={ref}\n className={handleButtonClasses}\n type=\"button\"\n shape=\"rounded\"\n {...props}\n >\n <DndHandle />\n </ButtonCompound>\n );\n});\n\nDndHandleButton.displayName = \"DndHandleButton\";\n","import cx from \"classnames\";\n\nimport styles from \"./Dnd.module.scss\";\nimport { CSSProperties } from \"react\";\n\n/**\n * Props for the DndSortLine component\n * @extends React.ComponentPropsWithoutRef<\"div\">\n */\nexport type SortLineProps = React.ComponentPropsWithoutRef<\"div\"> & {\n /**\n * The offset of the line from the item. This is a CSS value, typically negative.\n */\n offset: string;\n /**\n * The orientation of the sort - Note this may be counterintuitive, as the line is rendered perpendicular to the sort.\n */\n orientation: \"horizontal\" | \"vertical\";\n /**\n * The position of the line relative to a target item.\n */\n position: \"before\" | \"after\";\n};\n\n/**\n * A visual indicator line that shows where an item will be dropped during drag and drop operations.\n *\n * Features:\n * - Visual feedback for drop positioning\n * - Configurable orientation (horizontal/vertical)\n * - Adjustable positioning (before/after)\n * - Customizable offset for precise placement\n * - Accessible with proper ARIA attributes\n * - Automatic CSS class management\n * - Supports all standard HTML div props\n *\n * @example\n * <DndSortLine\n * offset=\"-10px\"\n * orientation=\"vertical\"\n * position=\"after\"\n * className=\"custom-drop-line\"\n * />\n */\nexport const DndSortLine = ({\n offset,\n orientation,\n position,\n ...rest\n}: SortLineProps) => {\n const classes = cx(\n styles[\"drop-line\"],\n styles[`orientation-${orientation}`],\n styles[`position-${position}`],\n );\n\n return (\n <div\n aria-hidden\n className={classes}\n style={{ \"--drop-line-offset\": offset } as CSSProperties}\n {...rest}\n />\n );\n};\n","import { ElementType, forwardRef, ReactNode } from \"react\";\nimport cx from \"classnames\";\n\nimport styles from \"./Dnd.module.scss\";\n\n/**\n * Props for the DndZone component\n * @extends Omit<React.ComponentPropsWithoutRef<T>, \"el\" | \"ref\">\n */\nexport type DndZoneProps<T extends ElementType = \"div\"> = {\n /**\n * The HTML element type to render. Can be any valid HTML element or React component.\n * @default \"div\"\n */\n el?: T;\n /**\n * The content to be rendered inside the drop zone.\n */\n children?: ReactNode;\n /**\n * Additional CSS class names to apply to the drop zone.\n */\n className?: string;\n /**\n * Indicates whether a draggable item is currently over this drop zone.\n */\n isOver: boolean;\n /**\n * Indicates whether the current drag operation is valid for this drop zone.\n */\n isValid: boolean;\n /**\n * Indicates whether any item is currently being dragged.\n */\n isDragging: boolean;\n} & Omit<React.ComponentPropsWithoutRef<T>, \"el\" | \"ref\">;\n\n/**\n * Base styling component for drop zones that handles visual states and styling.\n *\n * Features:\n * - Configurable HTML element rendering with the 'el' prop\n * - Visual feedback for drag states (over, valid, dragging)\n * - Automatic CSS class management based on drag state\n * - Supports all standard HTML element props\n * - Accessible with proper ARIA attributes\n * - Flexible styling through className prop\n * - Responsive design that adapts to container\n *\n * @example\n * <DndZone\n * isOver={isOver}\n * isValid={isValid}\n * isDragging={isDragging}\n * className=\"custom-drop-zone\"\n * >\n * Drop items here\n * </DndZone>\n */\nexport const DndZone = forwardRef<HTMLDivElement, DndZoneProps<ElementType>>(\n (\n {\n el: Component = \"div\" as ElementType,\n children,\n className,\n isDragging,\n isOver,\n isValid,\n ...rest\n },\n ref,\n ) => {\n const classes = cx(className, {\n [styles[\"drop-zone\"]]: true,\n [styles[\"over-valid\"]]: isDragging && isOver && isValid,\n [styles[\"over-invalid\"]]: isDragging && isOver && !isValid,\n [styles[\"active-not-over\"]]: isDragging && !isOver,\n });\n\n return (\n <Component ref={ref} className={classes} {...rest}>\n {children}\n </Component>\n );\n },\n);\n\nDndZone.displayName = \"DndZoneBase\";\n","import { DndHandle } from \"./DndHandle\";\nimport { DndHandleButton } from \"./DndHandleButton\";\nimport { DndSortLine } from \"./DndSortLine\";\nimport { DndZone } from \"./DndZone\";\n\nexport const Dnd = {\n Handle: DndHandle,\n HandleButton: DndHandleButton,\n SortLine: DndSortLine,\n Zone: DndZone,\n};\n"],"names":["styles","DragIndicator"],"mappings":";;;;;;;AACA,MAAM,gBAAgB,GAAG,CAAC,KAAK,qBAAqB,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,4BAA4B,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,kBAAkB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,qSAAqS,EAAE,CAAC,CAAC;;;;;;;;;;AC4BxgB,SAAS,SAAA,CAAU,EAAE,SAAA,EAAU,EAA2B;AAC/D,EAAA,MAAM,aAAA,GAAgB,EAAA,CAAGA,YAAA,CAAO,MAAA,EAAQ,SAAS,CAAA;AACjD,EAAA,2BACG,IAAA,EAAA,EAAK,GAAA,EAAKC,kBAAe,SAAA,EAAW,aAAA,EAAe,MAAK,cAAA,EAAe,CAAA;AAE5E;;ACIO,MAAM,eAAA,GAAkB,UAAA,CAG7B,CAAC,EAAE,QAAA,GAAW,OAAO,SAAA,EAAW,GAAG,KAAA,EAAM,EAAG,GAAA,KAAQ;AACpD,EAAA,MAAM,mBAAA,GAAsB,EAAA,CAAG,SAAA,EAAW,YAAA,CAAa,eAAe,CAAA,EAAG;AAAA,IACvE,CAAC,YAAA,CAAa,QAAQ,CAAC,GAAG;AAAA,GAC3B,CAAA;AAED,EAAA,uBACE,GAAA;AAAA,IAAC,cAAA;AAAA,IAAA;AAAA,MACC,GAAA;AAAA,MACA,SAAA,EAAW,mBAAA;AAAA,MACX,IAAA,EAAK,QAAA;AAAA,MACL,KAAA,EAAM,SAAA;AAAA,MACL,GAAG,KAAA;AAAA,MAEJ,8BAAC,SAAA,EAAA,EAAU;AAAA;AAAA,GACb;AAEJ,CAAC;AAED,eAAA,CAAgB,WAAA,GAAc,iBAAA;;;;;;;;;;;;;;;;ACfvB,MAAM,cAAc,CAAC;AAAA,EAC1B,MAAA;AAAA,EACA,WAAA;AAAA,EACA,QAAA;AAAA,EACA,GAAG;AACL,CAAA,KAAqB;AACnB,EAAA,MAAM,OAAA,GAAU,EAAA;AAAA,IACd,OAAO,WAAW,CAAA;AAAA,IAClB,MAAA,CAAO,CAAA,YAAA,EAAe,WAAW,CAAA,CAAE,CAAA;AAAA,IACnC,MAAA,CAAO,CAAA,SAAA,EAAY,QAAQ,CAAA,CAAE;AAAA,GAC/B;AAEA,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,aAAA,EAAW,IAAA;AAAA,MACX,SAAA,EAAW,OAAA;AAAA,MACX,KAAA,EAAO,EAAE,oBAAA,EAAsB,MAAA,EAAO;AAAA,MACrC,GAAG;AAAA;AAAA,GACN;AAEJ;;ACLO,MAAM,OAAA,GAAU,UAAA;AAAA,EACrB,CACE;AAAA,IACE,IAAI,SAAA,GAAY,KAAA;AAAA,IAChB,QAAA;AAAA,IACA,SAAA;AAAA,IACA,UAAA;AAAA,IACA,MAAA;AAAA,IACA,OAAA;AAAA,IACA,GAAG;AAAA,KAEL,GAAA,KACG;AACH,IAAA,MAAM,OAAA,GAAU,GAAG,SAAA,EAAW;AAAA,MAC5B,CAAC,MAAA,CAAO,WAAW,CAAC,GAAG,IAAA;AAAA,MACvB,CAAC,MAAA,CAAO,YAAY,CAAC,GAAG,cAAc,MAAA,IAAU,OAAA;AAAA,MAChD,CAAC,MAAA,CAAO,cAAc,CAAC,GAAG,UAAA,IAAc,UAAU,CAAC,OAAA;AAAA,MACnD,CAAC,MAAA,CAAO,iBAAiB,CAAC,GAAG,cAAc,CAAC;AAAA,KAC7C,CAAA;AAED,IAAA,2BACG,SAAA,EAAA,EAAU,GAAA,EAAU,WAAW,OAAA,EAAU,GAAG,MAC1C,QAAA,EACH,CAAA;AAAA,EAEJ;AACF,CAAA;AAEA,OAAA,CAAQ,WAAA,GAAc,aAAA;;AClFf,MAAM,GAAA,GAAM;AAAA,EACjB,MAAA,EAAQ,SAAA;AAAA,EACR,YAAA,EAAc,eAAA;AAAA,EACd,QAAA,EAAU,WAAA;AAAA,EACV,IAAA,EAAM;AACR;;;;"}
|
|
1
|
+
{"version":3,"file":"index-CUVkL0hr.js","sources":["../../hammer-icon/mdi/round/drag_indicator.svg","../src/components/Dnd/DndHandle.tsx","../src/components/Dnd/DndHandleButton.tsx","../src/components/Dnd/DndSortLine.tsx","../src/components/Dnd/DndZone.tsx","../src/components/Dnd/index.ts"],"sourcesContent":["import * as React from \"react\";\nconst SvgDragIndicator = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"1em\", height: \"1em\", viewBox: \"0 0 24 24\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z\" }));\nexport default SvgDragIndicator;\n","import { Icon } from \"../Icon\";\nimport DragIndicator from \"@servicetitan/hammer-icon/mdi/round/drag_indicator.svg\";\nimport styles from \"./DndHandle.module.scss\";\nimport cx from \"classnames\";\n\n/**\n * Props for the DndHandle component\n */\nexport type DndHandleProps = {\n /**\n * Additional CSS class names to apply to the drag handle.\n */\n className?: string;\n};\n\n/**\n * A reusable drag handle icon component for drag and drop interactions.\n *\n * Features:\n * - Standardized drag indicator icon\n * - Accessible with proper ARIA attributes\n * - Customizable styling through className prop\n * - Consistent visual appearance across applications\n * - Lightweight and performant\n * - Supports all standard HTML element props\n *\n * @example\n * <DndHandle className=\"custom-drag-handle\" />\n */\nexport function DndHandle({ className }: { className?: string }) {\n const handleClasses = cx(styles.handle, className);\n return (\n <Icon svg={DragIndicator} className={handleClasses} role=\"presentation\" />\n );\n}\n","import { ButtonCompound } from \"../ButtonCompound\";\nimport handleStyles from \"./DndHandle.module.scss\";\nimport cx from \"classnames\";\nimport { forwardRef } from \"react\";\nimport { DndHandle } from \"./DndHandle\";\n\n/**\n * Props for the DndHandleButton component\n * @extends React.ComponentPropsWithoutRef<typeof ButtonCompound>\n */\nexport interface DndHandleButtonProps\n extends React.ComponentPropsWithoutRef<typeof ButtonCompound> {\n /**\n * Indicates whether the handle is currently being dragged.\n * @default false\n */\n isActive?: boolean;\n}\n\n/**\n * A reusable drag handle button component for drag and drop functionality.\n *\n * Features:\n * - Interactive button with drag handle icon\n * - Visual feedback for active drag state\n * - Accessible with proper ARIA attributes\n * - Extends ButtonCompound functionality\n * - Customizable styling through className prop\n * - Supports all standard button props\n * - Consistent visual appearance across applications\n *\n * @example\n * <DndHandleButton\n * isActive={isDragging}\n * className=\"custom-handle-button\"\n * onClick={handleClick}\n * />\n */\nexport const DndHandleButton = forwardRef<\n HTMLButtonElement,\n DndHandleButtonProps\n>(({ isActive = false, className, ...props }, ref) => {\n const handleButtonClasses = cx(className, handleStyles[\"handle-button\"], {\n [handleStyles[\"active\"]]: isActive,\n });\n\n return (\n <ButtonCompound\n ref={ref}\n className={handleButtonClasses}\n type=\"button\"\n shape=\"rounded\"\n {...props}\n >\n <DndHandle />\n </ButtonCompound>\n );\n});\n\nDndHandleButton.displayName = \"DndHandleButton\";\n","import cx from \"classnames\";\n\nimport styles from \"./Dnd.module.scss\";\nimport { CSSProperties } from \"react\";\n\n/**\n * Props for the DndSortLine component\n * @extends React.ComponentPropsWithoutRef<\"div\">\n */\nexport type SortLineProps = React.ComponentPropsWithoutRef<\"div\"> & {\n /**\n * The offset of the line from the item. This is a CSS value, typically negative.\n */\n offset: string;\n /**\n * The orientation of the sort - Note this may be counterintuitive, as the line is rendered perpendicular to the sort.\n */\n orientation: \"horizontal\" | \"vertical\";\n /**\n * The position of the line relative to a target item.\n */\n position: \"before\" | \"after\";\n};\n\n/**\n * A visual indicator line that shows where an item will be dropped during drag and drop operations.\n *\n * Features:\n * - Visual feedback for drop positioning\n * - Configurable orientation (horizontal/vertical)\n * - Adjustable positioning (before/after)\n * - Customizable offset for precise placement\n * - Accessible with proper ARIA attributes\n * - Automatic CSS class management\n * - Supports all standard HTML div props\n *\n * @example\n * <DndSortLine\n * offset=\"-10px\"\n * orientation=\"vertical\"\n * position=\"after\"\n * className=\"custom-drop-line\"\n * />\n */\nexport const DndSortLine = ({\n offset,\n orientation,\n position,\n ...rest\n}: SortLineProps) => {\n const classes = cx(\n styles[\"drop-line\"],\n styles[`orientation-${orientation}`],\n styles[`position-${position}`],\n );\n\n return (\n <div\n aria-hidden\n className={classes}\n style={{ \"--drop-line-offset\": offset } as CSSProperties}\n {...rest}\n />\n );\n};\n","import { ElementType, forwardRef, ReactNode } from \"react\";\nimport cx from \"classnames\";\n\nimport styles from \"./Dnd.module.scss\";\n\n/**\n * Props for the DndZone component\n * @extends Omit<React.ComponentPropsWithoutRef<T>, \"el\" | \"ref\">\n */\nexport type DndZoneProps<T extends ElementType = \"div\"> = {\n /**\n * The HTML element type to render. Can be any valid HTML element or React component.\n * @default \"div\"\n */\n el?: T;\n /**\n * The content to be rendered inside the drop zone.\n */\n children?: ReactNode;\n /**\n * Additional CSS class names to apply to the drop zone.\n */\n className?: string;\n /**\n * Indicates whether a draggable item is currently over this drop zone.\n */\n isOver: boolean;\n /**\n * Indicates whether the current drag operation is valid for this drop zone.\n */\n isValid: boolean;\n /**\n * Indicates whether any item is currently being dragged.\n */\n isDragging: boolean;\n} & Omit<React.ComponentPropsWithoutRef<T>, \"el\" | \"ref\">;\n\n/**\n * Base styling component for drop zones that handles visual states and styling.\n *\n * Features:\n * - Configurable HTML element rendering with the 'el' prop\n * - Visual feedback for drag states (over, valid, dragging)\n * - Automatic CSS class management based on drag state\n * - Supports all standard HTML element props\n * - Accessible with proper ARIA attributes\n * - Flexible styling through className prop\n * - Responsive design that adapts to container\n *\n * @example\n * <DndZone\n * isOver={isOver}\n * isValid={isValid}\n * isDragging={isDragging}\n * className=\"custom-drop-zone\"\n * >\n * Drop items here\n * </DndZone>\n */\nexport const DndZone = forwardRef<HTMLDivElement, DndZoneProps<ElementType>>(\n (\n {\n el: Component = \"div\" as ElementType,\n children,\n className,\n isDragging,\n isOver,\n isValid,\n ...rest\n },\n ref,\n ) => {\n const classes = cx(className, {\n [styles[\"drop-zone\"]]: true,\n [styles[\"over-valid\"]]: isDragging && isOver && isValid,\n [styles[\"over-invalid\"]]: isDragging && isOver && !isValid,\n [styles[\"active-not-over\"]]: isDragging && !isOver,\n });\n\n return (\n <Component ref={ref} className={classes} {...rest}>\n {children}\n </Component>\n );\n },\n);\n\nDndZone.displayName = \"DndZoneBase\";\n","import { DndHandle } from \"./DndHandle\";\nimport { DndHandleButton } from \"./DndHandleButton\";\nimport { DndSortLine } from \"./DndSortLine\";\nimport { DndZone } from \"./DndZone\";\n\nexport const Dnd = {\n Handle: DndHandle,\n HandleButton: DndHandleButton,\n SortLine: DndSortLine,\n Zone: DndZone,\n};\n"],"names":["styles","DragIndicator"],"mappings":"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"}
|
package/dist/index.js
CHANGED
|
@@ -1,90 +1,91 @@
|
|
|
1
|
-
import './
|
|
2
|
-
export {
|
|
3
|
-
export { A as
|
|
4
|
-
export { A as
|
|
5
|
-
export { A as
|
|
6
|
-
export {
|
|
7
|
-
export { B as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import { B as
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
export { C as
|
|
15
|
-
export { C as
|
|
16
|
-
export { C as
|
|
17
|
-
export { C as
|
|
1
|
+
import './anvil-fonts.css';import './index2.css';/* empty css */
|
|
2
|
+
export { DndSort, DndSortCard, DndSortZone } from './DndSort.js';
|
|
3
|
+
export { A as Alert } from './Alert-Cz_w_cw0.js';
|
|
4
|
+
export { A as Announcement } from './Announcement-C1xSJkl0.js';
|
|
5
|
+
export { A as Avatar } from './Avatar-VQrimv28.js';
|
|
6
|
+
export { A as AvatarGroup } from './Avatar-Bbwk2MCy.js';
|
|
7
|
+
export { B as Badge } from './Badge-DOnID5l5.js';
|
|
8
|
+
export { B as Breadcrumbs, a as BreadcrumbsElement, b as BreadcrumbsLink } from './Breadcrumbs-DKqd8VRz.js';
|
|
9
|
+
import { B as Button } from './Button-DzcOa6iJ.js';
|
|
10
|
+
export { B as ButtonCompound } from './ButtonCompound-Dvr3Fres.js';
|
|
11
|
+
import { B as ButtonLink } from './ButtonLink-DGIRpyK6.js';
|
|
12
|
+
import { B as ButtonToggle } from './ButtonToggle-Dv6VAm4W.js';
|
|
13
|
+
export { a as Calendar, g as CalendarMonth, f as CalendarMonthButton, e as CalendarNext, b as CalendarNow, d as CalendarPrev, c as CalendarYearButton } from './Calendar-NDOcurOz.js';
|
|
14
|
+
export { C as Card } from './Card-Cyoz-LaD.js';
|
|
15
|
+
export { C as Checkbox } from './Checkbox-BJnt8TFk.js';
|
|
16
|
+
export { C as CheckboxGroup } from './Checkbox-Bsa1FgoI.js';
|
|
17
|
+
export { C as Chip } from './Chip-BGa1Inb8.js';
|
|
18
|
+
export { C as Combobox, c as ComboboxContent, a as ComboboxElement, i as ComboboxEmpty, e as ComboboxItem, f as ComboboxItemAddNew, d as ComboboxList, g as ComboboxSearchField, b as ComboboxSelect, h as ComboboxSelectTrigger } from './Combobox-BfqKpX1v.js';
|
|
18
19
|
export { u as useInfiniteCombobox } from './useInfiniteCombobox-WcRgC9p6.js';
|
|
19
|
-
export { D as DateField } from './DateField-
|
|
20
|
-
export { D as DateFieldRange } from './DateFieldRange-
|
|
21
|
-
export { D as DateFieldSingle } from './DateFieldSingle-
|
|
22
|
-
export { D as DateFieldYearless } from './DateFieldYearless-
|
|
23
|
-
export { D as DaysOfTheWeek } from './DaysOfTheWeek-
|
|
24
|
-
export { D as Details, b as DetailsContent, a as DetailsSummary } from './Details-
|
|
25
|
-
export { D as Dialog, a as DialogCancelButton, b as DialogContent, c as DialogFooter, d as DialogHeader } from './Dialog-
|
|
26
|
-
export { D as Divider } from './Divider-
|
|
27
|
-
export { D as Dnd } from './index-
|
|
28
|
-
export { D as Drawer, a as DrawerCancelButton, d as DrawerContent, b as DrawerFooter, c as DrawerHeader } from './Drawer-
|
|
29
|
-
export { E as EditCard } from './EditCard-
|
|
30
|
-
export { F as FieldLabel } from './FieldLabel-
|
|
31
|
-
export { F as FieldMessage } from './FieldMessage-
|
|
32
|
-
import { F as Flex } from './Flex-
|
|
33
|
-
export { G as Grid } from './Grid-
|
|
34
|
-
import { I as Icon } from './Icon-
|
|
35
|
-
export { I as InputMask } from './InputMask-
|
|
20
|
+
export { D as DateField } from './DateField-Cm0FIG3Y.js';
|
|
21
|
+
export { D as DateFieldRange } from './DateFieldRange-CGGqW_cg.js';
|
|
22
|
+
export { D as DateFieldSingle } from './DateFieldSingle-BYWuJ3IL.js';
|
|
23
|
+
export { D as DateFieldYearless } from './DateFieldYearless-BXRgNWzy.js';
|
|
24
|
+
export { D as DaysOfTheWeek } from './DaysOfTheWeek-BIi9dyJP.js';
|
|
25
|
+
export { D as Details, b as DetailsContent, a as DetailsSummary } from './Details-Bg7QzlOm.js';
|
|
26
|
+
export { D as Dialog, a as DialogCancelButton, b as DialogContent, c as DialogFooter, d as DialogHeader } from './Dialog-fJClGTI6.js';
|
|
27
|
+
export { D as Divider } from './Divider-DYZFKug1.js';
|
|
28
|
+
export { D as Dnd } from './index-CUVkL0hr.js';
|
|
29
|
+
export { D as Drawer, a as DrawerCancelButton, d as DrawerContent, b as DrawerFooter, c as DrawerHeader } from './Drawer-DyHDRTR-.js';
|
|
30
|
+
export { E as EditCard } from './EditCard-LdyduHqX.js';
|
|
31
|
+
export { F as FieldLabel } from './FieldLabel-DIlzcPIQ.js';
|
|
32
|
+
export { F as FieldMessage } from './FieldMessage-BbARBii0.js';
|
|
33
|
+
import { F as Flex } from './Flex-GLF5XRJg.js';
|
|
34
|
+
export { G as Grid } from './Grid-BpAt2zA7.js';
|
|
35
|
+
import { I as Icon } from './Icon-TcJbUdTz.js';
|
|
36
|
+
export { I as InputMask } from './InputMask-B6oJlChY.js';
|
|
36
37
|
export { L as Layout, a as LayoutElement, b as LayoutItem } from './Layout-CUUb2PVr.js';
|
|
37
|
-
export { L as Link, u as useLinkStyles } from './Link-
|
|
38
|
-
export { L as LinkButton } from './LinkButton-
|
|
39
|
-
import { L as Listbox } from './Listbox-
|
|
40
|
-
export { a as ListboxOption, b as ListboxOptionGroup } from './Listbox-
|
|
41
|
-
export { L as ListView, a as ListViewOption, b as ListViewOptionCell } from './ListView-
|
|
42
|
-
export { M as Menu, a as MenuItem } from './Menu-
|
|
43
|
-
export { N as NumberField } from './NumberField-
|
|
38
|
+
export { L as Link, u as useLinkStyles } from './Link-Br_AJ7Af.js';
|
|
39
|
+
export { L as LinkButton } from './LinkButton-CwiVzaro.js';
|
|
40
|
+
import { L as Listbox } from './Listbox-gtZ2Ao_I.js';
|
|
41
|
+
export { a as ListboxOption, b as ListboxOptionGroup } from './Listbox-gtZ2Ao_I.js';
|
|
42
|
+
export { L as ListView, a as ListViewOption, b as ListViewOptionCell } from './ListView-fBFSagWO.js';
|
|
43
|
+
export { M as Menu, a as MenuItem } from './Menu-CBbUK_sX.js';
|
|
44
|
+
export { N as NumberField } from './NumberField-CNskrtsN.js';
|
|
44
45
|
export { Overflow, OverflowText } from './Overflow.js';
|
|
45
|
-
export { P as Page } from './Page-
|
|
46
|
-
export { P as Pagination } from './Pagination-
|
|
47
|
-
import { P as Popover } from './Popover
|
|
48
|
-
export { a as PopoverButton, b as PopoverClose, c as PopoverContent, d as PopoverTrigger } from './Popover
|
|
49
|
-
export { P as ProgressBar } from './ProgressBar-
|
|
50
|
-
export { R as Radio } from './Radio-
|
|
51
|
-
export { R as RadioGroup } from './RadioGroup-
|
|
52
|
-
export { S as SearchField } from './SearchField-
|
|
53
|
-
export { S as SegmentedControl, a as SegmentedControlSegment } from './SegmentedControl-
|
|
54
|
-
export { S as SelectCard, a as SelectCardElement, b as SelectCardGroup } from './SelectCard-
|
|
55
|
-
export { S as SelectTrigger } from './SelectTrigger-
|
|
56
|
-
export { S as SideNav, b as SideNavCollapsible, c as SideNavGroup, a as SideNavLink } from './SideNav-
|
|
46
|
+
export { P as Page } from './Page-4VdFrCjy.js';
|
|
47
|
+
export { P as Pagination } from './Pagination-CQjNN1yN.js';
|
|
48
|
+
import { P as Popover } from './Popover--c9PXAVi.js';
|
|
49
|
+
export { a as PopoverButton, b as PopoverClose, c as PopoverContent, d as PopoverTrigger } from './Popover--c9PXAVi.js';
|
|
50
|
+
export { P as ProgressBar } from './ProgressBar-CXMuhBQV.js';
|
|
51
|
+
export { R as Radio } from './Radio-CTYs8JpI.js';
|
|
52
|
+
export { R as RadioGroup } from './RadioGroup-BVGnsTuG.js';
|
|
53
|
+
export { S as SearchField } from './SearchField-DLqva3o3.js';
|
|
54
|
+
export { S as SegmentedControl, a as SegmentedControlSegment } from './SegmentedControl-1OzOQmCp.js';
|
|
55
|
+
export { S as SelectCard, a as SelectCardElement, b as SelectCardGroup } from './SelectCard-Dw7zW0UN.js';
|
|
56
|
+
export { S as SelectTrigger } from './SelectTrigger-BQNqyG3M.js';
|
|
57
|
+
export { S as SideNav, b as SideNavCollapsible, c as SideNavGroup, a as SideNavLink } from './SideNav-COiPAIph.js';
|
|
57
58
|
export { Skeleton, SkeletonCircle, SkeletonPill, SkeletonRectangle, SkeletonText } from './Skeleton.js';
|
|
58
59
|
export { S as Spinner } from './Spinner-xEFwsq8_.js';
|
|
59
60
|
export { S as SrOnly } from './SrOnly-CTsYSuby.js';
|
|
60
|
-
export { S as Stepper, a as StepperFinalPanel, b as StepperList, c as StepperNextButton, d as StepperPanel, e as StepperPrevButton, f as StepperStep } from './Stepper-
|
|
61
|
-
export { S as Switch } from './Switch-
|
|
62
|
-
export { T as Tab, a as TabButton, b as TabList, c as TabPanel } from './Tab-
|
|
63
|
-
export { T as Text } from './Text-
|
|
64
|
-
export { T as Textarea } from './Textarea-
|
|
65
|
-
export { T as TextField } from './TextField-
|
|
66
|
-
export { T as TimeField } from './TimeField-
|
|
67
|
-
export { T as Toaster } from './Toaster-
|
|
68
|
-
export { t as toast } from './Toaster-
|
|
61
|
+
export { S as Stepper, a as StepperFinalPanel, b as StepperList, c as StepperNextButton, d as StepperPanel, e as StepperPrevButton, f as StepperStep } from './Stepper-xcgOQzru.js';
|
|
62
|
+
export { S as Switch } from './Switch-mhyHJeex.js';
|
|
63
|
+
export { T as Tab, a as TabButton, b as TabList, c as TabPanel } from './Tab-BISlFW_i.js';
|
|
64
|
+
export { T as Text } from './Text-CDzLZl1O.js';
|
|
65
|
+
export { T as Textarea } from './Textarea-f0jAKcvn.js';
|
|
66
|
+
export { T as TextField } from './TextField-CUrYEZR4.js';
|
|
67
|
+
export { T as TimeField } from './TimeField-CGSwrpl0.js';
|
|
68
|
+
export { T as Toaster } from './Toaster-C6iB4h0P.js';
|
|
69
|
+
export { t as toast } from './Toaster-D72xHdfH.js';
|
|
69
70
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
70
71
|
import { useContext, createContext, useId, useRef, useCallback, useEffect, forwardRef, useState, useMemo } from 'react';
|
|
71
72
|
import { c as cx } from './index-tZvMCc77.js';
|
|
72
|
-
import { u as useLayoutPropsUtil } from './useLayoutPropsUtil-
|
|
73
|
+
import { u as useLayoutPropsUtil } from './useLayoutPropsUtil-C7FVYB8F.js';
|
|
73
74
|
import { u as useMergeRefs } from './useMergeRefs-Dfmtq9cI.js';
|
|
74
|
-
import { T as Tooltip } from './Tooltip-
|
|
75
|
-
export { a as TooltipContent, b as TooltipTrigger } from './Tooltip-
|
|
75
|
+
import { T as Tooltip } from './Tooltip-BOfdwyTv.js';
|
|
76
|
+
export { a as TooltipContent, b as TooltipTrigger } from './Tooltip-BOfdwyTv.js';
|
|
76
77
|
export { u as useAccessibleColor } from './useAccessibleColor-BYKjkGRg.js';
|
|
77
|
-
export { u as useBreakpoint } from './useBreakpoint-
|
|
78
|
+
export { u as useBreakpoint } from './useBreakpoint-BGCsBhQ7.js';
|
|
78
79
|
export { u as usePrefersColorScheme } from './usePrefersColorScheme-_hT7dK7_.js';
|
|
79
80
|
export { u as useSwipe } from './useSwipe-Cp-CJxLU.js';
|
|
80
81
|
import { useTrackingId } from './useTrackingId.js';
|
|
81
|
-
export { A as AnvilProvider } from './AnvilProvider-
|
|
82
|
+
export { A as AnvilProvider } from './AnvilProvider-DDo8ZcIA.js';
|
|
82
83
|
export { A as AnvilProviderContext } from './AnvilProviderContext-B5CU2cEi.js';
|
|
83
|
-
export { L as LocalizationProvider } from './LocalizationProvider-
|
|
84
|
+
export { L as LocalizationProvider } from './LocalizationProvider-Cqattc3O.js';
|
|
84
85
|
export { L as LocalizationContext, u as useLocalizationContext } from './LocalizationContext-UsmB5mnR.js';
|
|
85
86
|
export { P as PortalProvider } from './PortalProvider-Pa5srbPi.js';
|
|
86
87
|
export { P as PortalProviderContext } from './PortalProviderContext-B28f2L_g.js';
|
|
87
|
-
export { T as ThemeProvider } from './ThemeProvider-
|
|
88
|
+
export { T as ThemeProvider } from './ThemeProvider-CUiXHn4p.js';
|
|
88
89
|
export { u as useTheme } from './useTheme-B4i6a3bM.js';
|
|
89
90
|
export { T as TrackingProvider } from './TrackingProvider-Co4lyoI9.js';
|
|
90
91
|
export { u as useTrackingContext } from './useTrackingContext-C522P4sv.js';
|