@servicetitan/anvil2 2.0.2 → 2.0.4
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 +28 -0
- package/dist/{Alert-DREZhnU9.js → Alert-DXoEusod.js} +4 -4
- package/dist/{Alert-DREZhnU9.js.map → Alert-DXoEusod.js.map} +1 -1
- package/dist/Alert.js +1 -1
- package/dist/{Announcement-CRaUI73J.js → Announcement-SAypScAu.js} +4 -4
- package/dist/{Announcement-CRaUI73J.js.map → Announcement-SAypScAu.js.map} +1 -1
- package/dist/Announcement.js +1 -1
- package/dist/{AnvilProvider-bEeSKwNj.js → AnvilProvider-C3pjoStP.js} +4 -4
- package/dist/{AnvilProvider-bEeSKwNj.js.map → AnvilProvider-C3pjoStP.js.map} +1 -1
- package/dist/AnvilProvider.js +1 -1
- package/dist/{Avatar-DQN2dNgB.js → Avatar-COMPK7Ym.js} +2 -2
- package/dist/{Avatar-DQN2dNgB.js.map → Avatar-COMPK7Ym.js.map} +1 -1
- package/dist/{Avatar-B4RLfLCS.js → Avatar-DShevhcs.js} +2 -2
- package/dist/{Avatar-B4RLfLCS.js.map → Avatar-DShevhcs.js.map} +1 -1
- package/dist/Avatar.js +2 -2
- package/dist/{Badge-BrysDYfx.js → Badge-CS-CwcOQ.js} +2 -2
- package/dist/{Badge-BrysDYfx.js.map → Badge-CS-CwcOQ.js.map} +1 -1
- package/dist/Badge.js +1 -1
- package/dist/{Breadcrumbs-CsVxbt4N.js → Breadcrumbs-CEVH4s23.js} +5 -5
- package/dist/{Breadcrumbs-CsVxbt4N.js.map → Breadcrumbs-CEVH4s23.js.map} +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/{Button-B__Q1BA5.js → Button-l7pTJdPc.js} +3 -3
- package/dist/{Button-B__Q1BA5.js.map → Button-l7pTJdPc.js.map} +1 -1
- package/dist/Button.js +1 -1
- package/dist/{ButtonCompound-BB_WRzP4.js → ButtonCompound-CX2kHgWe.js} +2 -2
- package/dist/{ButtonCompound-BB_WRzP4.js.map → ButtonCompound-CX2kHgWe.js.map} +1 -1
- package/dist/ButtonCompound.js +1 -1
- package/dist/{ButtonLink-Dy0nfK_C.js → ButtonLink-CRlyK750.js} +3 -3
- package/dist/{ButtonLink-Dy0nfK_C.js.map → ButtonLink-CRlyK750.js.map} +1 -1
- package/dist/ButtonLink.js +1 -1
- package/dist/{ButtonToggle-DVwe4l6m.js → ButtonToggle-BOVP_jEN.js} +3 -3
- package/dist/{ButtonToggle-DVwe4l6m.js.map → ButtonToggle-BOVP_jEN.js.map} +1 -1
- package/dist/ButtonToggle.js +1 -1
- package/dist/{Calendar-BO9QiBJG.js → Calendar-DxLrWESu.js} +2 -2
- package/dist/{Calendar-BO9QiBJG.js.map → Calendar-DxLrWESu.js.map} +1 -1
- package/dist/{Calendar-BFWJ7Rlq.js → Calendar-jO-0jbbt.js} +21 -15
- package/dist/{Calendar-BFWJ7Rlq.js.map → Calendar-jO-0jbbt.js.map} +1 -1
- package/dist/Calendar.js +2 -2
- package/dist/{Card-TovA8Io5.js → Card-DDH7gI8m.js} +2 -2
- package/dist/{Card-TovA8Io5.js.map → Card-DDH7gI8m.js.map} +1 -1
- package/dist/Card.js +1 -1
- package/dist/{Checkbox-BrIThtCS.js → Checkbox-9VbydUcM.js} +6 -6
- package/dist/{Checkbox-BrIThtCS.js.map → Checkbox-9VbydUcM.js.map} +1 -1
- package/dist/{Checkbox-Igz3R72o.js → Checkbox-ZXftLNwB.js} +2 -2
- package/dist/{Checkbox-Igz3R72o.js.map → Checkbox-ZXftLNwB.js.map} +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/{Chip-U9Ly2Ykq.js → Chip-Bc7jiIJ1.js} +4 -4
- package/dist/{Chip-U9Ly2Ykq.js.map → Chip-Bc7jiIJ1.js.map} +1 -1
- package/dist/Chip.js +1 -1
- package/dist/{Combobox-OUK7p5gp.js → Combobox-CNObHLjp.js} +9 -9
- package/dist/{Combobox-OUK7p5gp.js.map → Combobox-CNObHLjp.js.map} +1 -1
- package/dist/Combobox.js +1 -1
- package/dist/{DataTable-BPJeSvOx.js → DataTable-CQpySyDq.js} +154 -29
- package/dist/DataTable-CQpySyDq.js.map +1 -0
- package/dist/{DateFieldRange-CanMYRgZ.js → DateFieldRange-BG86w0pX.js} +9 -9
- package/dist/DateFieldRange-BG86w0pX.js.map +1 -0
- package/dist/DateFieldRange.js +1 -1
- package/dist/{DateFieldSingle-CShe2aHZ.js → DateFieldSingle-Byu_jyye.js} +7 -7
- package/dist/DateFieldSingle-Byu_jyye.js.map +1 -0
- package/dist/DateFieldSingle.js +1 -1
- package/dist/{DateFieldYearless-MBQ233Xa.js → DateFieldYearless-Dw1k3_PY.js} +5 -5
- package/dist/{DateFieldYearless-MBQ233Xa.js.map → DateFieldYearless-Dw1k3_PY.js.map} +1 -1
- package/dist/DateFieldYearless.js +1 -1
- package/dist/{DateFieldYearlessRange-BBtaFzsE.js → DateFieldYearlessRange--plyld10.js} +6 -6
- package/dist/{DateFieldYearlessRange-BBtaFzsE.js.map → DateFieldYearlessRange--plyld10.js.map} +1 -1
- package/dist/DateFieldYearlessRange.js +1 -1
- package/dist/{DaysOfTheWeek-DOsJyEdk.js → DaysOfTheWeek-vE310Rjp.js} +6 -6
- package/dist/{DaysOfTheWeek-DOsJyEdk.js.map → DaysOfTheWeek-vE310Rjp.js.map} +1 -1
- package/dist/DaysOfTheWeek.js +1 -1
- package/dist/{Details-D_Iil6qI.js → Details-BF0-a1by.js} +3 -3
- package/dist/{Details-D_Iil6qI.js.map → Details-BF0-a1by.js.map} +1 -1
- package/dist/Details.js +1 -1
- package/dist/{Dialog-3pjJJiED.js → Dialog-DZPaz84r.js} +7 -6
- package/dist/{Dialog-3pjJJiED.js.map → Dialog-DZPaz84r.js.map} +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/{DialogCancelButton-D0r_OFKS.js → DialogCancelButton-GuN5lgR-.js} +2 -2
- package/dist/{DialogCancelButton-D0r_OFKS.js.map → DialogCancelButton-GuN5lgR-.js.map} +1 -1
- package/dist/DialogContext-DBgtApl9.js.map +1 -1
- package/dist/{Divider-CJvAnDYV.js → Divider-De04mOU6.js} +2 -2
- package/dist/{Divider-CJvAnDYV.js.map → Divider-De04mOU6.js.map} +1 -1
- package/dist/Divider.js +1 -1
- package/dist/Dnd.js +1 -1
- package/dist/DndSort.js +17 -7
- package/dist/DndSort.js.map +1 -1
- package/dist/{Drawer-BPPWM11Z.js → Drawer-pMQOa2jH.js} +9 -10
- package/dist/Drawer-pMQOa2jH.js.map +1 -0
- package/dist/Drawer.js +1 -1
- package/dist/DrawerContext-BSpnzXVZ.js +6 -0
- package/dist/DrawerContext-BSpnzXVZ.js.map +1 -0
- package/dist/DrillDown.js +1 -1
- package/dist/{EditCard-DgHXddkx.js → EditCard-DAiE-Hsc.js} +6 -6
- package/dist/{EditCard-DgHXddkx.js.map → EditCard-DAiE-Hsc.js.map} +1 -1
- package/dist/EditCard.js +1 -1
- package/dist/{FieldDialog-NcMR2ATl.js → FieldDialog-Be54L3E-.js} +381 -18
- package/dist/FieldDialog-Be54L3E-.js.map +1 -0
- package/dist/FieldDialog.css +22 -5
- package/dist/{FieldLabel-EjKzPf0f.js → FieldLabel-DSrHbw9U.js} +3 -3
- package/dist/{FieldLabel-EjKzPf0f.js.map → FieldLabel-DSrHbw9U.js.map} +1 -1
- package/dist/FieldLabel.js +1 -1
- package/dist/{FieldMessage-CRNo4fd5.js → FieldMessage-tEr6rWXS.js} +2 -2
- package/dist/{FieldMessage-CRNo4fd5.js.map → FieldMessage-tEr6rWXS.js.map} +1 -1
- package/dist/FieldMessage.js +1 -1
- package/dist/{Flex-DKS51qTf.js → Flex-CUtXN-C0.js} +2 -2
- package/dist/{Flex-DKS51qTf.js.map → Flex-CUtXN-C0.js.map} +1 -1
- package/dist/Flex.js +1 -1
- package/dist/{Grid-BUmKiLhz.js → Grid-CatFkT0X.js} +2 -2
- package/dist/{Grid-BUmKiLhz.js.map → Grid-CatFkT0X.js.map} +1 -1
- package/dist/Grid.js +1 -1
- package/dist/{Helper-xZuAxaI0.js → Helper-CK-XjpR3.js} +2 -2
- package/dist/{Helper-xZuAxaI0.js.map → Helper-CK-XjpR3.js.map} +1 -1
- package/dist/{Icon-BckjFkbw.js → Icon-Bcil6aBo.js} +2 -2
- package/dist/{Icon-BckjFkbw.js.map → Icon-Bcil6aBo.js.map} +1 -1
- package/dist/Icon.js +1 -1
- package/dist/{InputMask-DS9TWqfO.js → InputMask-DoqWRi3t.js} +2 -2
- package/dist/{InputMask-DS9TWqfO.js.map → InputMask-DoqWRi3t.js.map} +1 -1
- package/dist/InputMask.js +1 -1
- package/dist/{InteractiveCard-CvX95yR4.js → InteractiveCard-OszQGxGw.js} +2 -2
- package/dist/{InteractiveCard-CvX95yR4.js.map → InteractiveCard-OszQGxGw.js.map} +1 -1
- package/dist/InteractiveCard.js +1 -1
- package/dist/{Link-DT8scNJ-.js → Link-B3reiL5f.js} +3 -3
- package/dist/{Link-DT8scNJ-.js.map → Link-B3reiL5f.js.map} +1 -1
- package/dist/Link.js +1 -1
- package/dist/{LinkButton-BMce3lWm.js → LinkButton-D62f2os3.js} +2 -2
- package/dist/{LinkButton-BMce3lWm.js.map → LinkButton-D62f2os3.js.map} +1 -1
- package/dist/LinkButton.js +1 -1
- package/dist/{ListView-CRDUPrbQ.js → ListView-CtRhYAls.js} +3 -3
- package/dist/{ListView-CRDUPrbQ.js.map → ListView-CtRhYAls.js.map} +1 -1
- package/dist/ListView.js +1 -1
- package/dist/{Listbox-BFT6SBf3.js → Listbox-DMyxIokT.js} +5 -5
- package/dist/{Listbox-BFT6SBf3.js.map → Listbox-DMyxIokT.js.map} +1 -1
- package/dist/Listbox.js +1 -1
- package/dist/{LocalizationProvider-u6xdKCBi.js → LocalizationProvider-ay-XWdlo.js} +2 -2
- package/dist/{LocalizationProvider-u6xdKCBi.js.map → LocalizationProvider-ay-XWdlo.js.map} +1 -1
- package/dist/LocalizationProvider.js +1 -1
- package/dist/{Menu-Dh0q__vE.js → Menu-3LIfRdTk.js} +3 -3
- package/dist/{Menu-Dh0q__vE.js.map → Menu-3LIfRdTk.js.map} +1 -1
- package/dist/Menu.js +1 -1
- package/dist/MultiSelectField.js +1 -1
- package/dist/{MultiSelectFieldSync-7nxS5Fdi.js → MultiSelectFieldSync-xj7jXas-.js} +120 -94
- package/dist/MultiSelectFieldSync-xj7jXas-.js.map +1 -0
- package/dist/{NumberField-Dmm1YQNn.js → NumberField-W1k8V5Qq.js} +6 -6
- package/dist/{NumberField-Dmm1YQNn.js.map → NumberField-W1k8V5Qq.js.map} +1 -1
- package/dist/NumberField.js +1 -1
- package/dist/Overflow.js +2 -2
- package/dist/{Page-C5nExhiH.js → Page-vc7zs4tn.js} +16 -16
- package/dist/{Page-C5nExhiH.js.map → Page-vc7zs4tn.js.map} +1 -1
- package/dist/Page.js +1 -1
- package/dist/{Pagination-CimQTC7M.js → Pagination-DIatYUXX.js} +7 -7
- package/dist/{Pagination-CimQTC7M.js.map → Pagination-DIatYUXX.js.map} +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/{Popover-CJLSDpgR.js → Popover-OOLK0hUz.js} +2 -2
- package/dist/{Popover-CJLSDpgR.js.map → Popover-OOLK0hUz.js.map} +1 -1
- package/dist/Popover.js +1 -1
- package/dist/{ProgressBar-CSkAu2F4.js → ProgressBar-HA9RPZfC.js} +6 -6
- package/dist/{ProgressBar-CSkAu2F4.js.map → ProgressBar-HA9RPZfC.js.map} +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/{Radio-CRv09Kbt.js → Radio-31wKzlZ4.js} +6 -6
- package/dist/{Radio-CRv09Kbt.js.map → Radio-31wKzlZ4.js.map} +1 -1
- package/dist/{Radio-D_8PAnkC.js → Radio-BwWDJuLF.js} +2 -2
- package/dist/{Radio-D_8PAnkC.js.map → Radio-BwWDJuLF.js.map} +1 -1
- package/dist/Radio.js +1 -1
- package/dist/{SearchField-0DZvPwPZ.js → SearchField-CoeaOip5.js} +3 -3
- package/dist/{SearchField-0DZvPwPZ.js.map → SearchField-CoeaOip5.js.map} +1 -1
- package/dist/SearchField.js +1 -1
- package/dist/{SegmentedControl-CMBQf7uo.js → SegmentedControl-CzTtiYS9.js} +3 -3
- package/dist/{SegmentedControl-CMBQf7uo.js.map → SegmentedControl-CzTtiYS9.js.map} +1 -1
- package/dist/SegmentedControl.js +1 -1
- package/dist/{SelectCard-B9RLpwtX.js → SelectCard-C91twG1S.js} +5 -5
- package/dist/{SelectCard-B9RLpwtX.js.map → SelectCard-C91twG1S.js.map} +1 -1
- package/dist/SelectCard.js +1 -1
- package/dist/SelectField.js +1 -1
- package/dist/{SelectFieldSync-BsDUUM84.js → SelectFieldSync-BFsJssdD.js} +163 -96
- package/dist/SelectFieldSync-BFsJssdD.js.map +1 -0
- package/dist/{SelectTrigger-DVLdDbfd.js → SelectTrigger-Cxhx9IVo.js} +5 -5
- package/dist/{SelectTrigger-DVLdDbfd.js.map → SelectTrigger-Cxhx9IVo.js.map} +1 -1
- package/dist/SelectTrigger.js +1 -1
- package/dist/{SelectTriggerBase-B3vw_qnJ.js → SelectTriggerBase-aaOWep-V.js} +6 -6
- package/dist/{SelectTriggerBase-B3vw_qnJ.js.map → SelectTriggerBase-aaOWep-V.js.map} +1 -1
- package/dist/{SideNav-DzcESFKB.js → SideNav-CbMGsIPM.js} +3 -3
- package/dist/{SideNav-DzcESFKB.js.map → SideNav-CbMGsIPM.js.map} +1 -1
- package/dist/SideNav.js +1 -1
- package/dist/Skeleton.js +1 -1
- package/dist/{Stepper-DXL6Ikux.js → Stepper-Jv9A3Ned.js} +5 -5
- package/dist/{Stepper-DXL6Ikux.js.map → Stepper-Jv9A3Ned.js.map} +1 -1
- package/dist/Stepper.js +1 -1
- package/dist/{Switch-CkZm45S3.js → Switch-DQICcdAv.js} +5 -5
- package/dist/{Switch-CkZm45S3.js.map → Switch-DQICcdAv.js.map} +1 -1
- package/dist/Switch.js +1 -1
- package/dist/{Tab-8a1qCMFA.js → Tab-CeXt6A_D.js} +4 -4
- package/dist/{Tab-8a1qCMFA.js.map → Tab-CeXt6A_D.js.map} +1 -1
- package/dist/Tab.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/{Text-rR4bxNLd.js → Text-DhheKsns.js} +2 -2
- package/dist/{Text-rR4bxNLd.js.map → Text-DhheKsns.js.map} +1 -1
- package/dist/Text.js +1 -1
- package/dist/{TextField-Bm9ElAU1.js → TextField-CDiiYSlT.js} +4 -4
- package/dist/{TextField-Bm9ElAU1.js.map → TextField-CDiiYSlT.js.map} +1 -1
- package/dist/{TextField-B_ciNx06.js → TextField-CnYxS52Y.js} +2 -2
- package/dist/{TextField-B_ciNx06.js.map → TextField-CnYxS52Y.js.map} +1 -1
- package/dist/TextField.js +1 -1
- package/dist/{Textarea-stXDixWH.js → Textarea-BnHIDj2P.js} +4 -4
- package/dist/{Textarea-stXDixWH.js.map → Textarea-BnHIDj2P.js.map} +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/{ThemeProvider-DyYBQz5m.js → ThemeProvider-BEt_iJgf.js} +5 -5
- package/dist/{ThemeProvider-DyYBQz5m.js.map → ThemeProvider-BEt_iJgf.js.map} +1 -1
- package/dist/ThemeProvider.css +14 -14
- package/dist/ThemeProvider.js +1 -1
- package/dist/{TimeField-BeaCSkdZ.js → TimeField-ChqK40k_.js} +6 -6
- package/dist/{TimeField-BeaCSkdZ.js.map → TimeField-ChqK40k_.js.map} +1 -1
- package/dist/TimeField.js +1 -1
- package/dist/Toast.js +2 -2
- package/dist/{Toaster-99KNznN3.js → Toaster-BlycAc63.js} +15 -9
- package/dist/Toaster-BlycAc63.js.map +1 -0
- package/dist/{Toaster-Br0IeKtP.js → Toaster-DW_bi2L9.js} +2 -2
- package/dist/{Toaster-Br0IeKtP.js.map → Toaster-DW_bi2L9.js.map} +1 -1
- package/dist/{Toolbar-Cjo7eAhI.js → Toolbar-vBomnRKG.js} +21 -21
- package/dist/{Toolbar-Cjo7eAhI.js.map → Toolbar-vBomnRKG.js.map} +1 -1
- package/dist/Toolbar.js +1 -1
- package/dist/{Tooltip-CIsvQwWo.js → Tooltip-CUiAJXak.js} +2 -2
- package/dist/{Tooltip-CIsvQwWo.js.map → Tooltip-CUiAJXak.js.map} +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/{YearlessDateInputWithPicker-BVRZlf9Y.js → YearlessDateInputWithPicker-DZSb8sPf.js} +5 -5
- package/dist/{YearlessDateInputWithPicker-BVRZlf9Y.js.map → YearlessDateInputWithPicker-DZSb8sPf.js.map} +1 -1
- package/dist/beta/components/MultiSelectField/internal/MultiSelectFieldList.d.ts +3 -1
- package/dist/beta/components/MultiSelectField/internal/useComboMultiple.d.ts +13 -6
- package/dist/beta/components/MultiSelectField/stories/MultiSelectField.stories.data.d.ts +10 -1
- package/dist/beta/components/MultiSelectField/types.d.ts +34 -32
- package/dist/beta/components/SelectField/SelectFieldSync.d.ts +11 -1
- package/dist/beta/components/SelectField/internal/FieldListBase.d.ts +27 -0
- package/dist/beta/components/SelectField/internal/SelectFieldList.d.ts +3 -1
- package/dist/beta/components/SelectField/internal/types.d.ts +16 -0
- package/dist/beta/components/SelectField/internal/useCombo.d.ts +8 -3
- package/dist/beta/components/SelectField/internal/useGroupedOptions.d.ts +39 -0
- package/dist/beta/components/SelectField/internal/usePinnedOptions.d.ts +37 -0
- package/dist/beta/components/SelectField/types.d.ts +33 -10
- package/dist/beta/components/Table/columnTypeDefaults.d.ts +51 -0
- package/dist/beta/components/Table/createColumnHelper.d.ts +88 -26
- package/dist/beta/components/Table/index.d.ts +1 -0
- package/dist/beta/components/Table/types.d.ts +188 -19
- package/dist/beta/hooks/useAdaptiveView/index.d.ts +1 -0
- package/dist/beta.js +8 -8
- package/dist/components/Checkbox/internal/Checkbox.d.ts +1 -1
- package/dist/components/DateFieldSingle/internal/utils.d.ts +11 -0
- package/dist/components/Dialog/internal/DialogContext.d.ts +5 -0
- package/dist/components/DndSort/DndSort.d.ts +1 -0
- package/dist/components/Drawer/internal/DrawerContext.d.ts +5 -0
- package/dist/components/FieldLabel/FieldLabel.d.ts +3 -1
- package/dist/{index-DVtI3CrN.js → index-DFvIVS57.js} +3 -3
- package/dist/{index-DVtI3CrN.js.map → index-DFvIVS57.js.map} +1 -1
- package/dist/index.js +64 -64
- package/dist/{primitive-BByug0kD.js → primitive-C3RFDRA8.js} +11 -11
- package/dist/{primitive-BByug0kD.js.map → primitive-C3RFDRA8.js.map} +1 -1
- package/dist/token/core/primitive-variables.scss +10 -10
- package/dist/token/core/primitive.js +10 -10
- package/dist/token/core/primitive.scss +10 -10
- package/dist/token.js +1 -1
- package/dist/{useBreakpoint-BGCsBhQ7.js → useBreakpoint-BP3HZXmh.js} +2 -2
- package/dist/{useBreakpoint-BGCsBhQ7.js.map → useBreakpoint-BP3HZXmh.js.map} +1 -1
- package/dist/useBreakpoint.js +1 -1
- package/dist/{useDrilldown-pzr3387k.js → useDrilldown-lAdB3FFW.js} +4 -4
- package/dist/{useDrilldown-pzr3387k.js.map → useDrilldown-lAdB3FFW.js.map} +1 -1
- package/dist/{useInitialFocus-DfFGsgjO.js → useInitialFocus-nOW12jQ5.js} +20 -17
- package/dist/useInitialFocus-nOW12jQ5.js.map +1 -0
- package/dist/{useLayoutPropsUtil-BlIWftBb.js → useLayoutPropsUtil-loxbyklF.js} +3 -3
- package/dist/{useLayoutPropsUtil-BlIWftBb.js.map → useLayoutPropsUtil-loxbyklF.js.map} +1 -1
- package/dist/{utils-Cj6v6CZ-.js → utils-BHKRoLps.js} +9 -2
- package/dist/utils-BHKRoLps.js.map +1 -0
- package/package.json +5 -5
- package/dist/DataTable-BPJeSvOx.js.map +0 -1
- package/dist/DateFieldRange-CanMYRgZ.js.map +0 -1
- package/dist/DateFieldSingle-CShe2aHZ.js.map +0 -1
- package/dist/Drawer-BPPWM11Z.js.map +0 -1
- package/dist/FieldDialog-NcMR2ATl.js.map +0 -1
- package/dist/MultiSelectFieldSync-7nxS5Fdi.js.map +0 -1
- package/dist/SelectFieldSync-BsDUUM84.js.map +0 -1
- package/dist/Toaster-99KNznN3.js.map +0 -1
- package/dist/useInitialFocus-DfFGsgjO.js.map +0 -1
- package/dist/utils-Cj6v6CZ-.js.map +0 -1
- /package/dist/beta/hooks/{useAdaptiveView.d.ts → useAdaptiveView/useAdaptiveView.d.ts} +0 -0
|
@@ -1,4 +1,131 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { BooleanFormatterOptions, CurrencyFormatterOptions, DateFormatterOptions, DateTimeFormatterOptions, NumberFormatterOptions, PercentFormatterOptions, TimeFormatterOptions } from './formatters';
|
|
3
|
+
/**
|
|
4
|
+
* Column type literals for display configuration.
|
|
5
|
+
* Each type maps to a default formatter and alignment.
|
|
6
|
+
*/
|
|
7
|
+
export type ColumnType = "text" | "number" | "currency" | "percent" | "date" | "dateTime" | "time" | "boolean";
|
|
8
|
+
/**
|
|
9
|
+
* Maps column types to their formatter options.
|
|
10
|
+
* Used for type-safe formatter configuration.
|
|
11
|
+
*/
|
|
12
|
+
export type ColumnTypeOptionsMap = {
|
|
13
|
+
text: undefined;
|
|
14
|
+
number: NumberFormatterOptions;
|
|
15
|
+
currency: CurrencyFormatterOptions;
|
|
16
|
+
percent: PercentFormatterOptions;
|
|
17
|
+
date: DateFormatterOptions;
|
|
18
|
+
dateTime: DateTimeFormatterOptions;
|
|
19
|
+
time: TimeFormatterOptions;
|
|
20
|
+
boolean: BooleanFormatterOptions;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Column type configuration.
|
|
24
|
+
* Can be a simple type string (uses defaults) or an object with custom options.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* // Simple - uses default formatter options
|
|
29
|
+
* type: "currency"
|
|
30
|
+
*
|
|
31
|
+
* // With options - customizes formatter behavior
|
|
32
|
+
* type: { type: "currency", options: { currency: "EUR", locale: "de-DE" } }
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export type ColumnTypeConfig<T extends ColumnType = ColumnType> = T | {
|
|
36
|
+
type: T;
|
|
37
|
+
options: ColumnTypeOptionsMap[T];
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Utility type that extracts the element type from an array type.
|
|
41
|
+
* Used for multiselect options type inference.
|
|
42
|
+
*/
|
|
43
|
+
type ArrayElement<T> = T extends (infer U)[] ? U : never;
|
|
44
|
+
/**
|
|
45
|
+
* Edit mode literals for editable cells.
|
|
46
|
+
*/
|
|
47
|
+
export type EditMode = "text" | "select" | "multiselect";
|
|
48
|
+
/**
|
|
49
|
+
* Base edit configuration shared by all edit modes.
|
|
50
|
+
* @template T - The row data type
|
|
51
|
+
* @template K - The column key
|
|
52
|
+
*/
|
|
53
|
+
type BaseEditConfig<T, K extends keyof T> = {
|
|
54
|
+
/**
|
|
55
|
+
* Callback fired when the cell value is saved.
|
|
56
|
+
* @param value - The new value
|
|
57
|
+
* @param rowId - The id of the row being edited
|
|
58
|
+
*/
|
|
59
|
+
onChange: (value: T[K], rowId: string) => void;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Edit configuration for text mode cells.
|
|
63
|
+
* @template T - The row data type
|
|
64
|
+
* @template K - The column key
|
|
65
|
+
*/
|
|
66
|
+
export type TextEditConfig<T, K extends keyof T> = BaseEditConfig<T, K> & {
|
|
67
|
+
/**
|
|
68
|
+
* Text edit mode - renders an inline text input.
|
|
69
|
+
*/
|
|
70
|
+
mode: "text";
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Edit configuration for select mode cells.
|
|
74
|
+
* @template T - The row data type
|
|
75
|
+
* @template K - The column key
|
|
76
|
+
*/
|
|
77
|
+
export type SelectEditConfig<T, K extends keyof T> = BaseEditConfig<T, K> & {
|
|
78
|
+
/**
|
|
79
|
+
* Select edit mode - renders a dropdown menu.
|
|
80
|
+
*/
|
|
81
|
+
mode: "select";
|
|
82
|
+
/**
|
|
83
|
+
* The options available for selection.
|
|
84
|
+
*/
|
|
85
|
+
options: {
|
|
86
|
+
value: T[K];
|
|
87
|
+
label: string;
|
|
88
|
+
}[];
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Edit configuration for multiselect mode cells.
|
|
92
|
+
* @template T - The row data type
|
|
93
|
+
* @template K - The column key
|
|
94
|
+
*/
|
|
95
|
+
export type MultiselectEditConfig<T, K extends keyof T> = BaseEditConfig<T, K> & {
|
|
96
|
+
/**
|
|
97
|
+
* Multiselect edit mode - renders a searchable multi-select popover.
|
|
98
|
+
*/
|
|
99
|
+
mode: "multiselect";
|
|
100
|
+
/**
|
|
101
|
+
* The options available for selection.
|
|
102
|
+
*/
|
|
103
|
+
options: {
|
|
104
|
+
value: ArrayElement<T[K]>;
|
|
105
|
+
label: string;
|
|
106
|
+
}[];
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Union of all edit configurations.
|
|
110
|
+
* Use with `editConfig` property on column definitions.
|
|
111
|
+
*
|
|
112
|
+
* @template T - The row data type
|
|
113
|
+
* @template K - The column key
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```ts
|
|
117
|
+
* // Text editing
|
|
118
|
+
* editConfig: { mode: "text", onChange: (value, rowId) => save(value, rowId) }
|
|
119
|
+
*
|
|
120
|
+
* // Select editing
|
|
121
|
+
* editConfig: {
|
|
122
|
+
* mode: "select",
|
|
123
|
+
* options: [{ value: "active", label: "Active" }],
|
|
124
|
+
* onChange: (value, rowId) => save(value, rowId)
|
|
125
|
+
* }
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
export type EditConfig<T, K extends keyof T> = TextEditConfig<T, K> | SelectEditConfig<T, K> | MultiselectEditConfig<T, K>;
|
|
2
129
|
/**
|
|
3
130
|
* The type for a table row
|
|
4
131
|
* @extends T
|
|
@@ -37,23 +164,34 @@ export type TableRow<T> = T & {
|
|
|
37
164
|
/**
|
|
38
165
|
* Column definition type for DataTable columns.
|
|
39
166
|
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* - `editMode: "text"` can only be used with string columns
|
|
43
|
-
* - `editMode: "select"` requires options with matching value types
|
|
44
|
-
* - `editMode: "multiselect"` can only be used with array columns
|
|
45
|
-
*
|
|
46
|
-
* Use `createColumnHelper<T>()` to create type-safe column definitions.
|
|
167
|
+
* Use `createColumnHelper<T>()` to create type-safe column definitions with
|
|
168
|
+
* proper type inference for `type`, `editConfig`, and value types.
|
|
47
169
|
*
|
|
48
170
|
* @example
|
|
49
171
|
* ```ts
|
|
50
|
-
* type Data = { name: string;
|
|
172
|
+
* type Data = { name: string; amount: number; tags: string[] };
|
|
51
173
|
* const createColumn = createColumnHelper<Data>();
|
|
52
174
|
*
|
|
53
175
|
* const columns = [
|
|
54
|
-
*
|
|
55
|
-
* createColumn("
|
|
56
|
-
*
|
|
176
|
+
* // Display-only column with type defaults
|
|
177
|
+
* createColumn("amount", { headerLabel: "Amount", type: "currency" }),
|
|
178
|
+
*
|
|
179
|
+
* // Editable column with editConfig
|
|
180
|
+
* createColumn("name", {
|
|
181
|
+
* headerLabel: "Name",
|
|
182
|
+
* type: "text",
|
|
183
|
+
* editConfig: { mode: "text", onChange: (value, rowId) => save(value, rowId) }
|
|
184
|
+
* }),
|
|
185
|
+
*
|
|
186
|
+
* // Multiselect editing
|
|
187
|
+
* createColumn("tags", {
|
|
188
|
+
* headerLabel: "Tags",
|
|
189
|
+
* editConfig: {
|
|
190
|
+
* mode: "multiselect",
|
|
191
|
+
* options: [{ value: "urgent", label: "Urgent" }],
|
|
192
|
+
* onChange: (value, rowId) => save(value, rowId)
|
|
193
|
+
* }
|
|
194
|
+
* }),
|
|
57
195
|
* ];
|
|
58
196
|
* ```
|
|
59
197
|
*/
|
|
@@ -67,19 +205,35 @@ export type ColumnDef<T> = {
|
|
|
67
205
|
*/
|
|
68
206
|
headerLabel: string;
|
|
69
207
|
/**
|
|
70
|
-
* The alignment of the header
|
|
208
|
+
* The alignment of the header and cell content.
|
|
209
|
+
* When using `type`, this is set automatically but can be overridden.
|
|
71
210
|
*/
|
|
72
211
|
align?: "start" | "center" | "end";
|
|
73
212
|
/**
|
|
74
213
|
* Columns of a group column
|
|
75
214
|
*/
|
|
76
215
|
columns?: ColumnDef<T>[];
|
|
216
|
+
/**
|
|
217
|
+
* Configuration for cell editing. Presence enables editing for the column.
|
|
218
|
+
* Consolidates edit mode, options, and onChange into a single object.
|
|
219
|
+
*
|
|
220
|
+
* @example
|
|
221
|
+
* ```ts
|
|
222
|
+
* // Text editing
|
|
223
|
+
* editConfig: { mode: "text", onChange: (value, rowId) => save(value, rowId) }
|
|
224
|
+
*
|
|
225
|
+
* // Select editing
|
|
226
|
+
* editConfig: {
|
|
227
|
+
* mode: "select",
|
|
228
|
+
* options: [{ value: "active", label: "Active" }],
|
|
229
|
+
* onChange: (value, rowId) => save(value, rowId)
|
|
230
|
+
* }
|
|
231
|
+
* ```
|
|
232
|
+
*/
|
|
233
|
+
editConfig?: EditConfig<T, keyof T>;
|
|
77
234
|
/**
|
|
78
235
|
* The edit mode of the cells in the column.
|
|
79
|
-
*
|
|
80
|
-
* - "text": column value must be string
|
|
81
|
-
* - "select": options values must match column value type
|
|
82
|
-
* - "multiselect": column value must be an array
|
|
236
|
+
* @deprecated Use `editConfig` instead. Example: `editConfig: { mode: "text", onChange: ... }`
|
|
83
237
|
*/
|
|
84
238
|
editMode?: "text" | "select" | "multiselect";
|
|
85
239
|
/**
|
|
@@ -96,12 +250,12 @@ export type ColumnDef<T> = {
|
|
|
96
250
|
minWidth?: number;
|
|
97
251
|
/**
|
|
98
252
|
* The function to call when the value of an editable cell is saved.
|
|
99
|
-
*
|
|
253
|
+
* @deprecated Move inside `editConfig`. Example: `editConfig: { mode: "text", onChange: ... }`
|
|
100
254
|
*/
|
|
101
255
|
onChange?: (value: T[keyof T], rowId: string) => void;
|
|
102
256
|
/**
|
|
103
257
|
* The options for the select or multiselect cells.
|
|
104
|
-
*
|
|
258
|
+
* @deprecated Move inside `editConfig`. Example: `editConfig: { mode: "select", options: [...], onChange: ... }`
|
|
105
259
|
*/
|
|
106
260
|
options?: {
|
|
107
261
|
value: T[keyof T];
|
|
@@ -113,7 +267,7 @@ export type ColumnDef<T> = {
|
|
|
113
267
|
pinned?: "left" | "right";
|
|
114
268
|
/**
|
|
115
269
|
* The function to customize how the cell content is rendered.
|
|
116
|
-
*
|
|
270
|
+
* When using `type`, a default renderer is provided but can be overridden.
|
|
117
271
|
*/
|
|
118
272
|
renderCell?: (value: T[keyof T], rowDepth: number) => ReactNode;
|
|
119
273
|
/**
|
|
@@ -125,6 +279,20 @@ export type ColumnDef<T> = {
|
|
|
125
279
|
* When a function, receives values of the column's value type.
|
|
126
280
|
*/
|
|
127
281
|
sortable?: boolean | ((valueA: T[keyof T], valueB: T[keyof T]) => number);
|
|
282
|
+
/**
|
|
283
|
+
* The column type for automatic display configuration.
|
|
284
|
+
* Sets default `renderCell` (formatter) and `align` based on the data type.
|
|
285
|
+
*
|
|
286
|
+
* @example
|
|
287
|
+
* ```ts
|
|
288
|
+
* // Simple - uses default formatter options
|
|
289
|
+
* type: "currency"
|
|
290
|
+
*
|
|
291
|
+
* // With options - customizes formatter behavior
|
|
292
|
+
* type: { type: "currency", options: { currency: "EUR", locale: "de-DE" } }
|
|
293
|
+
* ```
|
|
294
|
+
*/
|
|
295
|
+
type?: ColumnTypeConfig;
|
|
128
296
|
};
|
|
129
297
|
/**
|
|
130
298
|
* The type for a custom table footer cell props
|
|
@@ -139,3 +307,4 @@ export type CustomTableFooterCellProps = {
|
|
|
139
307
|
*/
|
|
140
308
|
colSpan: number;
|
|
141
309
|
};
|
|
310
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useAdaptiveView } from './useAdaptiveView';
|
package/dist/beta.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { D as DataTable, b as booleanFormatter, a as chipsFormatter, c as createColumnHelper, d as currencyFormatter,
|
|
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-
|
|
5
|
-
export { S as SelectField, a as SelectFieldSync } from './SelectFieldSync-
|
|
6
|
-
export { M as MultiSelectField, a as MultiSelectFieldSync } from './MultiSelectFieldSync-
|
|
7
|
-
export { I as InteractiveCard } from './InteractiveCard-
|
|
8
|
-
export { u as useAdaptiveView } from './FieldDialog-
|
|
1
|
+
export { C as COLUMN_TYPE_DEFAULTS, D as DataTable, b as booleanFormatter, a as chipsFormatter, c as createColumnHelper, d as currencyFormatter, h as dateFormatPresets, e as dateFormatter, f as dateTimeFormatter, g as getColumnTypeDefaults, n as numberFormatter, p as percentFormatter, r as resolveColumnTypeConfig, t as timeFormatPresets, i as timeFormatter, y as yearlessDateFormatter } from './DataTable-CQpySyDq.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-vBomnRKG.js';
|
|
3
|
+
export { u as useCalendarBetaProps } from './Calendar-jO-0jbbt.js';
|
|
4
|
+
export { C as Calendar } from './Calendar-DxLrWESu.js';
|
|
5
|
+
export { S as SelectField, a as SelectFieldSync } from './SelectFieldSync-BFsJssdD.js';
|
|
6
|
+
export { M as MultiSelectField, a as MultiSelectFieldSync } from './MultiSelectFieldSync-xj7jXas-.js';
|
|
7
|
+
export { I as InteractiveCard } from './InteractiveCard-OszQGxGw.js';
|
|
8
|
+
export { u as useAdaptiveView } from './FieldDialog-Be54L3E-.js';
|
|
9
9
|
//# sourceMappingURL=beta.js.map
|
|
@@ -80,7 +80,7 @@ export type CheckboxProps = LayoutUtilProps & Omit<ComponentPropsWithoutRef<"inp
|
|
|
80
80
|
* required
|
|
81
81
|
* />
|
|
82
82
|
*/
|
|
83
|
-
export declare const Checkbox: import('react').ForwardRefExoticComponent<LayoutUtilProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange" | "
|
|
83
|
+
export declare const Checkbox: import('react').ForwardRefExoticComponent<LayoutUtilProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange" | "indeterminate" | "onClick"> & {
|
|
84
84
|
/**
|
|
85
85
|
* Controlled state
|
|
86
86
|
* @default false
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { DateTime } from 'luxon';
|
|
2
|
+
/**
|
|
3
|
+
* Converts a JS Date (created with local timezone midnight) to a UTC Luxon DateTime
|
|
4
|
+
* preserving the local date components (year, month, day).
|
|
5
|
+
*
|
|
6
|
+
* This is necessary because maskitoParseDate creates Date objects using
|
|
7
|
+
* `new Date(year, month, day)` which produces midnight in the local timezone.
|
|
8
|
+
* Directly using DateTime.fromJSDate with zone: "utc" can shift the *calendar day*
|
|
9
|
+
* for timezones where local midnight falls on a different UTC date (typically
|
|
10
|
+
* positive-offset zones), which would change the intended date.
|
|
11
|
+
*/
|
|
12
|
+
export declare function jsDateToUtcDateTime(jsDate: Date): DateTime;
|
|
2
13
|
export declare function convertStringToDate(v: string | null | undefined): DateTime | null | undefined;
|
|
3
14
|
export declare function validateDate({ date, constraints, }: {
|
|
4
15
|
date: DateTime | null;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { RefObject, Dispatch, SetStateAction, MouseEvent } from 'react';
|
|
2
|
+
import { OpenCloseTransitionStates } from '../../../internal/hooks/useOpenCloseTransitionStates/useOpenCloseTransitionStates';
|
|
2
3
|
export type DialogContextProps = {
|
|
3
4
|
close: (e?: MouseEvent<HTMLElement>) => void;
|
|
4
5
|
ref?: RefObject<HTMLDialogElement>;
|
|
5
6
|
hasOpenPopover?: boolean;
|
|
6
7
|
setHasOpenPopover?: Dispatch<SetStateAction<boolean | undefined>>;
|
|
7
8
|
headerRef?: RefObject<HTMLElement>;
|
|
9
|
+
/**
|
|
10
|
+
* The current transition state of the dialog.
|
|
11
|
+
*/
|
|
12
|
+
state?: OpenCloseTransitionStates;
|
|
8
13
|
};
|
|
9
14
|
export declare const DialogContext: import('react').Context<DialogContextProps | null>;
|
|
@@ -27,6 +27,7 @@ export type DndSortProps = {
|
|
|
27
27
|
* - Flexible drop event handling
|
|
28
28
|
* - Supports multiple drop zones and draggable items
|
|
29
29
|
* - Visual feedback during drag operations
|
|
30
|
+
* - Works correctly inside animated containers (Drawer, Dialog) by disabling interactions during opening animation while keeping content visible
|
|
30
31
|
*
|
|
31
32
|
* @example
|
|
32
33
|
* <DndSort onDrop={handleDrop}>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MouseEvent, RefObject } from 'react';
|
|
2
|
+
import { OpenCloseTransitionStates } from '../../../internal/hooks/useOpenCloseTransitionStates/useOpenCloseTransitionStates';
|
|
2
3
|
/**
|
|
3
4
|
* Context props for the Drawer component
|
|
4
5
|
*/
|
|
@@ -15,5 +16,9 @@ export type DrawerContextProps = {
|
|
|
15
16
|
* Reference to the drawer header element for sticky content positioning.
|
|
16
17
|
*/
|
|
17
18
|
headerRef?: RefObject<HTMLElement>;
|
|
19
|
+
/**
|
|
20
|
+
* The current transition state of the drawer.
|
|
21
|
+
*/
|
|
22
|
+
state?: OpenCloseTransitionStates;
|
|
18
23
|
};
|
|
19
24
|
export declare const DrawerContext: import('react').Context<DrawerContextProps | null>;
|
|
@@ -23,5 +23,7 @@ type FieldLabelOwnProps<E extends ElementType = ElementType> = {
|
|
|
23
23
|
* Props for the FieldLabel component.
|
|
24
24
|
*/
|
|
25
25
|
export type FieldLabelProps<E extends ElementType = ElementType> = FieldLabelOwnProps<E> & Omit<IntrinsicAttributes<E>, keyof FieldLabelOwnProps>;
|
|
26
|
-
export declare const FieldLabel: <E extends ElementType = "label">(props: FieldLabelProps<E>
|
|
26
|
+
export declare const FieldLabel: <E extends ElementType = "label">(props: FieldLabelProps<E> & {
|
|
27
|
+
ref?: React.Ref<any>;
|
|
28
|
+
}) => JSX.Element;
|
|
27
29
|
export {};
|
|
@@ -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-Bcil6aBo.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import { c as cx } from './index-SvGbrGuT.js';
|
|
6
|
-
import { B as ButtonCompound } from './ButtonCompound-
|
|
6
|
+
import { B as ButtonCompound } from './ButtonCompound-CX2kHgWe.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
|
|
|
@@ -104,4 +104,4 @@ const Dnd = {
|
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
export { Dnd as D, DndSortLine as a, DndHandleButton as b, DndHandle as c, styles as s };
|
|
107
|
-
//# sourceMappingURL=index-
|
|
107
|
+
//# sourceMappingURL=index-DFvIVS57.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-DVtI3CrN.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 (defaults to \"Drag handle\")\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 * aria-label=\"Drag task item\"\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 aria-label=\"Drag handle\"\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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"}
|
|
1
|
+
{"version":3,"file":"index-DFvIVS57.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 (defaults to \"Drag handle\")\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 * aria-label=\"Drag task item\"\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 aria-label=\"Drag handle\"\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,85 +1,85 @@
|
|
|
1
1
|
import './anvil-fonts.css';import './index2.css';/* empty css */
|
|
2
2
|
export { DndSort, DndSortCard, DndSortZone } from './DndSort.js';
|
|
3
|
-
export { A as Alert } from './Alert-
|
|
4
|
-
export { A as Announcement } from './Announcement-
|
|
5
|
-
export { A as Avatar } from './Avatar-
|
|
6
|
-
export { A as AvatarGroup } from './Avatar-
|
|
7
|
-
export { B as Badge } from './Badge-
|
|
8
|
-
export { B as Breadcrumbs } from './Breadcrumbs-
|
|
9
|
-
import { B as Button } from './Button-
|
|
10
|
-
export { B as ButtonCompound } from './ButtonCompound-
|
|
11
|
-
import { B as ButtonLink } from './ButtonLink-
|
|
12
|
-
import { B as ButtonToggle } from './ButtonToggle-
|
|
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-
|
|
14
|
-
export { C as Card } from './Card-
|
|
15
|
-
export { C as Checkbox } from './Checkbox-
|
|
16
|
-
export { C as Chip } from './Chip-
|
|
17
|
-
export { C as Combobox, a as ComboboxElement, c as ComboboxList, b as ComboboxSelect } from './Combobox-
|
|
3
|
+
export { A as Alert } from './Alert-DXoEusod.js';
|
|
4
|
+
export { A as Announcement } from './Announcement-SAypScAu.js';
|
|
5
|
+
export { A as Avatar } from './Avatar-DShevhcs.js';
|
|
6
|
+
export { A as AvatarGroup } from './Avatar-COMPK7Ym.js';
|
|
7
|
+
export { B as Badge } from './Badge-CS-CwcOQ.js';
|
|
8
|
+
export { B as Breadcrumbs } from './Breadcrumbs-CEVH4s23.js';
|
|
9
|
+
import { B as Button } from './Button-l7pTJdPc.js';
|
|
10
|
+
export { B as ButtonCompound } from './ButtonCompound-CX2kHgWe.js';
|
|
11
|
+
import { B as ButtonLink } from './ButtonLink-CRlyK750.js';
|
|
12
|
+
import { B as ButtonToggle } from './ButtonToggle-BOVP_jEN.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-jO-0jbbt.js';
|
|
14
|
+
export { C as Card } from './Card-DDH7gI8m.js';
|
|
15
|
+
export { C as Checkbox } from './Checkbox-ZXftLNwB.js';
|
|
16
|
+
export { C as Chip } from './Chip-Bc7jiIJ1.js';
|
|
17
|
+
export { C as Combobox, a as ComboboxElement, c as ComboboxList, b as ComboboxSelect } from './Combobox-CNObHLjp.js';
|
|
18
18
|
export { u as useInfiniteCombobox } from './useInfiniteCombobox-WcRgC9p6.js';
|
|
19
|
-
export { D as DateFieldRange } from './DateFieldRange-
|
|
20
|
-
export { D as DateFieldSingle } from './DateFieldSingle-
|
|
21
|
-
export { D as DateFieldYearless } from './DateFieldYearless-
|
|
22
|
-
export { D as DateFieldYearlessRange } from './DateFieldYearlessRange
|
|
23
|
-
export { D as DaysOfTheWeek } from './DaysOfTheWeek-
|
|
24
|
-
export { D as Details } from './Details-
|
|
25
|
-
export { D as Dialog } from './Dialog-
|
|
26
|
-
export { D as Divider } from './Divider-
|
|
27
|
-
export { D as Dnd } from './index-
|
|
28
|
-
export { D as Drawer } from './Drawer-
|
|
29
|
-
export { D as DrillDown, b as DrillDownContent, c as DrillDownFooter, a as DrillDownHeader, d as DrillDownNextButton, e as DrillDownPrevButton, u as useDrillDown } from './useDrilldown-
|
|
30
|
-
export { E as EditCard } from './EditCard-
|
|
31
|
-
export { F as FieldLabel } from './FieldLabel-
|
|
32
|
-
export { F as FieldMessage } from './FieldMessage-
|
|
33
|
-
import { F as Flex } from './Flex-
|
|
34
|
-
export { G as Grid } from './Grid-
|
|
35
|
-
import { I as Icon } from './Icon-
|
|
36
|
-
export { I as InputMask } from './InputMask-
|
|
19
|
+
export { D as DateFieldRange } from './DateFieldRange-BG86w0pX.js';
|
|
20
|
+
export { D as DateFieldSingle } from './DateFieldSingle-Byu_jyye.js';
|
|
21
|
+
export { D as DateFieldYearless } from './DateFieldYearless-Dw1k3_PY.js';
|
|
22
|
+
export { D as DateFieldYearlessRange } from './DateFieldYearlessRange--plyld10.js';
|
|
23
|
+
export { D as DaysOfTheWeek } from './DaysOfTheWeek-vE310Rjp.js';
|
|
24
|
+
export { D as Details } from './Details-BF0-a1by.js';
|
|
25
|
+
export { D as Dialog } from './Dialog-DZPaz84r.js';
|
|
26
|
+
export { D as Divider } from './Divider-De04mOU6.js';
|
|
27
|
+
export { D as Dnd } from './index-DFvIVS57.js';
|
|
28
|
+
export { D as Drawer } from './Drawer-pMQOa2jH.js';
|
|
29
|
+
export { D as DrillDown, b as DrillDownContent, c as DrillDownFooter, a as DrillDownHeader, d as DrillDownNextButton, e as DrillDownPrevButton, u as useDrillDown } from './useDrilldown-lAdB3FFW.js';
|
|
30
|
+
export { E as EditCard } from './EditCard-DAiE-Hsc.js';
|
|
31
|
+
export { F as FieldLabel } from './FieldLabel-DSrHbw9U.js';
|
|
32
|
+
export { F as FieldMessage } from './FieldMessage-tEr6rWXS.js';
|
|
33
|
+
import { F as Flex } from './Flex-CUtXN-C0.js';
|
|
34
|
+
export { G as Grid } from './Grid-CatFkT0X.js';
|
|
35
|
+
import { I as Icon } from './Icon-Bcil6aBo.js';
|
|
36
|
+
export { I as InputMask } from './InputMask-DoqWRi3t.js';
|
|
37
37
|
export { L as Layout, a as LayoutElement, b as LayoutItem } from './Layout-DTAU7jS5.js';
|
|
38
|
-
export { L as Link, u as useLinkStyles } from './Link-
|
|
39
|
-
export { L as LinkButton } from './LinkButton-
|
|
40
|
-
import { L as Listbox } from './Listbox-
|
|
41
|
-
export { L as ListView, a as ListViewOption, b as ListViewOptionCell } from './ListView-
|
|
42
|
-
export { M as Menu } from './Menu-
|
|
43
|
-
export { N as NumberField } from './NumberField-
|
|
38
|
+
export { L as Link, u as useLinkStyles } from './Link-B3reiL5f.js';
|
|
39
|
+
export { L as LinkButton } from './LinkButton-D62f2os3.js';
|
|
40
|
+
import { L as Listbox } from './Listbox-DMyxIokT.js';
|
|
41
|
+
export { L as ListView, a as ListViewOption, b as ListViewOptionCell } from './ListView-CtRhYAls.js';
|
|
42
|
+
export { M as Menu } from './Menu-3LIfRdTk.js';
|
|
43
|
+
export { N as NumberField } from './NumberField-W1k8V5Qq.js';
|
|
44
44
|
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 { P as ProgressBar } from './ProgressBar-
|
|
49
|
-
export { R as Radio } from './Radio-
|
|
50
|
-
export { S as SearchField } from './SearchField-
|
|
51
|
-
export { S as SegmentedControl, a as SegmentedControlSegment } from './SegmentedControl-
|
|
52
|
-
export { S as SelectCard } from './SelectCard-
|
|
53
|
-
export { S as SelectTrigger } from './SelectTrigger-
|
|
54
|
-
export { S as SideNav } from './SideNav-
|
|
45
|
+
export { P as Page } from './Page-vc7zs4tn.js';
|
|
46
|
+
export { P as Pagination } from './Pagination-DIatYUXX.js';
|
|
47
|
+
import { P as Popover } from './Popover-OOLK0hUz.js';
|
|
48
|
+
export { P as ProgressBar } from './ProgressBar-HA9RPZfC.js';
|
|
49
|
+
export { R as Radio } from './Radio-BwWDJuLF.js';
|
|
50
|
+
export { S as SearchField } from './SearchField-CoeaOip5.js';
|
|
51
|
+
export { S as SegmentedControl, a as SegmentedControlSegment } from './SegmentedControl-CzTtiYS9.js';
|
|
52
|
+
export { S as SelectCard } from './SelectCard-C91twG1S.js';
|
|
53
|
+
export { S as SelectTrigger } from './SelectTrigger-Cxhx9IVo.js';
|
|
54
|
+
export { S as SideNav } from './SideNav-CbMGsIPM.js';
|
|
55
55
|
export { Skeleton, SkeletonCircle, SkeletonPill, SkeletonRectangle, SkeletonText } from './Skeleton.js';
|
|
56
56
|
export { S as Spinner } from './Spinner-CpEm3Lud.js';
|
|
57
57
|
export { S as SrOnly } from './SrOnly-CrdBTl6E.js';
|
|
58
|
-
export { S as Stepper } from './Stepper-
|
|
59
|
-
export { S as Switch } from './Switch-
|
|
60
|
-
export { T as Tab } from './Tab-
|
|
61
|
-
export { T as Text } from './Text-
|
|
62
|
-
export { T as Textarea } from './Textarea-
|
|
63
|
-
export { T as TextField } from './TextField-
|
|
64
|
-
export { T as TimeField } from './TimeField-
|
|
65
|
-
export { T as Toaster } from './Toaster-
|
|
66
|
-
export { t as toast } from './Toaster-
|
|
58
|
+
export { S as Stepper } from './Stepper-Jv9A3Ned.js';
|
|
59
|
+
export { S as Switch } from './Switch-DQICcdAv.js';
|
|
60
|
+
export { T as Tab } from './Tab-CeXt6A_D.js';
|
|
61
|
+
export { T as Text } from './Text-DhheKsns.js';
|
|
62
|
+
export { T as Textarea } from './Textarea-BnHIDj2P.js';
|
|
63
|
+
export { T as TextField } from './TextField-CnYxS52Y.js';
|
|
64
|
+
export { T as TimeField } from './TimeField-ChqK40k_.js';
|
|
65
|
+
export { T as Toaster } from './Toaster-DW_bi2L9.js';
|
|
66
|
+
export { t as toast } from './Toaster-BlycAc63.js';
|
|
67
67
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
68
68
|
import { useContext, createContext, useId, useRef, useCallback, useEffect, forwardRef, useState, useMemo } from 'react';
|
|
69
69
|
import { c as cx } from './index-SvGbrGuT.js';
|
|
70
|
-
import { u as useLayoutPropsUtil } from './useLayoutPropsUtil-
|
|
70
|
+
import { u as useLayoutPropsUtil } from './useLayoutPropsUtil-loxbyklF.js';
|
|
71
71
|
import { u as useMergeRefs } from './useMergeRefs-Dfmtq9cI.js';
|
|
72
|
-
import { T as Tooltip } from './Tooltip-
|
|
72
|
+
import { T as Tooltip } from './Tooltip-CUiAJXak.js';
|
|
73
73
|
export { u as useAccessibleColor } from './useAccessibleColor-BYKjkGRg.js';
|
|
74
|
-
export { u as useBreakpoint } from './useBreakpoint-
|
|
74
|
+
export { u as useBreakpoint } from './useBreakpoint-BP3HZXmh.js';
|
|
75
75
|
export { u as usePrefersColorScheme } from './usePrefersColorScheme-_hT7dK7_.js';
|
|
76
76
|
export { u as useSwipe } from './useSwipe-Cp-CJxLU.js';
|
|
77
77
|
import { useTrackingId } from './useTrackingId.js';
|
|
78
|
-
export { A as AnvilProvider, a as AnvilProviderContext } from './AnvilProvider-
|
|
79
|
-
export { L as LocalizationProvider } from './LocalizationProvider-
|
|
78
|
+
export { A as AnvilProvider, a as AnvilProviderContext } from './AnvilProvider-C3pjoStP.js';
|
|
79
|
+
export { L as LocalizationProvider } from './LocalizationProvider-ay-XWdlo.js';
|
|
80
80
|
export { L as LocalizationContext, u as useLocalizationContext } from './LocalizationContext-UsmB5mnR.js';
|
|
81
81
|
export { P as PortalProvider, a as PortalProviderContext } from './PortalProvider-Cj_y3gbC.js';
|
|
82
|
-
export { T as ThemeProvider } from './ThemeProvider-
|
|
82
|
+
export { T as ThemeProvider } from './ThemeProvider-BEt_iJgf.js';
|
|
83
83
|
export { u as useTheme } from './useTheme-B4i6a3bM.js';
|
|
84
84
|
export { T as TrackingProvider } from './TrackingProvider-Co4lyoI9.js';
|
|
85
85
|
export { u as useTrackingContext } from './useTrackingContext-C522P4sv.js';
|
|
@@ -3,11 +3,11 @@ const BreakpointMd = { value: "768px" };
|
|
|
3
3
|
const BreakpointLg = { value: "1024px" };
|
|
4
4
|
const BreakpointXl = { value: "1280px" };
|
|
5
5
|
const BreakpointXxl = { value: "1536px" };
|
|
6
|
-
const ColorBlue100 = { value: "#
|
|
7
|
-
const ColorBlue200 = { value: "#
|
|
8
|
-
const ColorBlue300 = { value: "#
|
|
9
|
-
const ColorBlue400 = { value: "#
|
|
10
|
-
const ColorBlue500 = { value: "#
|
|
6
|
+
const ColorBlue100 = { value: "#E0F2FF" };
|
|
7
|
+
const ColorBlue200 = { value: "#B5DEFF" };
|
|
8
|
+
const ColorBlue300 = { value: "#78BBFA" };
|
|
9
|
+
const ColorBlue400 = { value: "#3892F3" };
|
|
10
|
+
const ColorBlue500 = { value: "#0265DC" };
|
|
11
11
|
const ColorBlue600 = { value: "#004491" };
|
|
12
12
|
const ColorNeutral0 = { value: "#ffffff" };
|
|
13
13
|
const ColorNeutral10 = { value: "#fcfcfc" };
|
|
@@ -42,11 +42,11 @@ const ColorYellow300 = { value: "#ffe278" };
|
|
|
42
42
|
const ColorYellow400 = { value: "#ffc902" };
|
|
43
43
|
const ColorYellow500 = { value: "#ffbe00" };
|
|
44
44
|
const ColorYellow600 = { value: "#de9500" };
|
|
45
|
-
const ColorGreen100 = { value: "#
|
|
46
|
-
const ColorGreen200 = { value: "#
|
|
47
|
-
const ColorGreen300 = { value: "#
|
|
48
|
-
const ColorGreen400 = { value: "#
|
|
49
|
-
const ColorGreen500 = { value: "#
|
|
45
|
+
const ColorGreen100 = { value: "#CEF8E0" };
|
|
46
|
+
const ColorGreen200 = { value: "#89ECBC" };
|
|
47
|
+
const ColorGreen300 = { value: "#49CC93" };
|
|
48
|
+
const ColorGreen400 = { value: "#15A46E" };
|
|
49
|
+
const ColorGreen500 = { value: "#007A4D" };
|
|
50
50
|
const ColorGreen600 = { value: "#005132" };
|
|
51
51
|
const ColorCyan100 = { value: "#e3fcff" };
|
|
52
52
|
const ColorCyan200 = { value: "#b1f3fa" };
|
|
@@ -252,4 +252,4 @@ const primitive = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty(
|
|
|
252
252
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
253
253
|
|
|
254
254
|
export { BreakpointXxl as B, Duration as D, BreakpointXl as a, BreakpointLg as b, BreakpointMd as c, BreakpointSm as d, DurationSlow as e, primitive as p };
|
|
255
|
-
//# sourceMappingURL=primitive-
|
|
255
|
+
//# sourceMappingURL=primitive-C3RFDRA8.js.map
|