@servicetitan/anvil2 2.2.0 → 2.3.0
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 +18 -0
- package/dist/{Alert-DXoEusod.js → Alert-D9mBPs6z.js} +2 -2
- package/dist/{Alert-DXoEusod.js.map → Alert-D9mBPs6z.js.map} +1 -1
- package/dist/Alert.js +1 -1
- package/dist/{Announcement-SAypScAu.js → Announcement-B34cD6BC.js} +2 -2
- package/dist/{Announcement-SAypScAu.js.map → Announcement-B34cD6BC.js.map} +1 -1
- package/dist/Announcement.js +1 -1
- package/dist/{Button-l7pTJdPc.js → Button-DrNDkO2f.js} +2 -2
- package/dist/{Button-l7pTJdPc.js.map → Button-DrNDkO2f.js.map} +1 -1
- package/dist/Button.css +50 -50
- package/dist/Button.js +1 -1
- package/dist/Button.module-DwCq9XU0.js +26 -0
- package/dist/Button.module-DwCq9XU0.js.map +1 -0
- package/dist/{ButtonCompound-CX2kHgWe.js → ButtonCompound-D9VTKcL4.js} +2 -2
- package/dist/{ButtonCompound-CX2kHgWe.js.map → ButtonCompound-D9VTKcL4.js.map} +1 -1
- package/dist/ButtonCompound.js +1 -1
- package/dist/{ButtonLink-CRlyK750.js → ButtonLink-DDtrmbVM.js} +3 -2
- package/dist/ButtonLink-DDtrmbVM.js.map +1 -0
- package/dist/ButtonLink.js +1 -1
- package/dist/{ButtonToggle-BOVP_jEN.js → ButtonToggle-DrFewgOG.js} +3 -3
- package/dist/{ButtonToggle-BOVP_jEN.js.map → ButtonToggle-DrFewgOG.js.map} +1 -1
- package/dist/ButtonToggle.js +1 -1
- package/dist/{Calendar-oNlBgZKB.js → Calendar-CkgpKD7Q.js} +2 -2
- package/dist/{Calendar-oNlBgZKB.js.map → Calendar-CkgpKD7Q.js.map} +1 -1
- package/dist/{Calendar-D0CczOpQ.js → Calendar-CtkL4zYU.js} +3 -3
- package/dist/{Calendar-D0CczOpQ.js.map → Calendar-CtkL4zYU.js.map} +1 -1
- package/dist/Calendar.js +2 -2
- package/dist/{Checkbox-DuzAqrE7.js → Checkbox-CFgjreAl.js} +2 -2
- package/dist/{Checkbox-DuzAqrE7.js.map → Checkbox-CFgjreAl.js.map} +1 -1
- package/dist/{Checkbox-DIY-6agd.js → Checkbox-CxjZpzPp.js} +3 -3
- package/dist/{Checkbox-DIY-6agd.js.map → Checkbox-CxjZpzPp.js.map} +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/{Combobox-CSGn20KQ.js → Combobox-B6saoDAP.js} +4 -4
- package/dist/{Combobox-CSGn20KQ.js.map → Combobox-B6saoDAP.js.map} +1 -1
- package/dist/Combobox.js +1 -1
- package/dist/{DataTable-D30sE1Xt.js → DataTable-NzX8SCYT.js} +42 -12
- package/dist/{DataTable-D30sE1Xt.js.map → DataTable-NzX8SCYT.js.map} +1 -1
- package/dist/DataTable.css +9 -5
- package/dist/{DateFieldRange-DBOiqaML.js → DateFieldRange-DgGgNSzN.js} +4 -4
- package/dist/{DateFieldRange-DBOiqaML.js.map → DateFieldRange-DgGgNSzN.js.map} +1 -1
- package/dist/DateFieldRange.js +1 -1
- package/dist/{DateFieldSingle-C4hU55MP.js → DateFieldSingle-BR4nJNVl.js} +4 -4
- package/dist/{DateFieldSingle-C4hU55MP.js.map → DateFieldSingle-BR4nJNVl.js.map} +1 -1
- package/dist/DateFieldSingle.js +1 -1
- package/dist/{DateFieldYearless-BXkUiHIR.js → DateFieldYearless-mqvM2uVP.js} +4 -4
- package/dist/{DateFieldYearless-BXkUiHIR.js.map → DateFieldYearless-mqvM2uVP.js.map} +1 -1
- package/dist/DateFieldYearless.js +1 -1
- package/dist/{DateFieldYearlessRange-CGffFnVT.js → DateFieldYearlessRange-CLuyUoGF.js} +4 -4
- package/dist/{DateFieldYearlessRange-CGffFnVT.js.map → DateFieldYearlessRange-CLuyUoGF.js.map} +1 -1
- package/dist/DateFieldYearlessRange.js +1 -1
- package/dist/{DaysOfTheWeek-DJEDopC9.js → DaysOfTheWeek-D-WPj18i.js} +3 -3
- package/dist/{DaysOfTheWeek-DJEDopC9.js.map → DaysOfTheWeek-D-WPj18i.js.map} +1 -1
- package/dist/DaysOfTheWeek.js +1 -1
- package/dist/{Dialog-BbsZMnCA.js → Dialog-yA2jYtgv.js} +4 -4
- package/dist/{Dialog-BbsZMnCA.js.map → Dialog-yA2jYtgv.js.map} +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/{DialogCancelButton-GuN5lgR-.js → DialogCancelButton-BfI9K4a4.js} +2 -2
- package/dist/{DialogCancelButton-GuN5lgR-.js.map → DialogCancelButton-BfI9K4a4.js.map} +1 -1
- package/dist/Dnd.js +1 -1
- package/dist/DndSort.js +2 -2
- package/dist/{Drawer-Dhq76ot3.js → Drawer-Dt4dqAxQ.js} +4 -4
- package/dist/{Drawer-Dhq76ot3.js.map → Drawer-Dt4dqAxQ.js.map} +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/DrillDown.js +1 -1
- package/dist/{EditCard-DAiE-Hsc.js → EditCard-CH-JE4ba.js} +2 -2
- package/dist/{EditCard-DAiE-Hsc.js.map → EditCard-CH-JE4ba.js.map} +1 -1
- package/dist/EditCard.js +1 -1
- package/dist/{FieldDialog-CAuhkCZY.js → FieldDialog-BghhsL2B.js} +121 -36
- package/dist/FieldDialog-BghhsL2B.js.map +1 -0
- package/dist/FieldMessage-OeP_xSUE.js +132 -0
- package/dist/FieldMessage-OeP_xSUE.js.map +1 -0
- package/dist/FieldMessage.js +1 -1
- package/dist/{Helper-PNGm_U2X.js → Helper-B2UrgJvr.js} +2 -2
- package/dist/{Helper-PNGm_U2X.js.map → Helper-B2UrgJvr.js.map} +1 -1
- package/dist/{InputMask-Ds0W2fKy.js → InputMask-B7ZnJoR5.js} +2 -2
- package/dist/{InputMask-Ds0W2fKy.js.map → InputMask-B7ZnJoR5.js.map} +1 -1
- package/dist/InputMask.js +1 -1
- package/dist/{ListView-MMmJDM--.js → ListView-CN8zu-cq.js} +2 -2
- package/dist/{ListView-MMmJDM--.js.map → ListView-CN8zu-cq.js.map} +1 -1
- package/dist/ListView.js +1 -1
- package/dist/{Menu-3LIfRdTk.js → Menu-CpRnsr0v.js} +2 -2
- package/dist/{Menu-3LIfRdTk.js.map → Menu-CpRnsr0v.js.map} +1 -1
- package/dist/Menu.js +1 -1
- package/dist/MultiSelectField.js +1 -1
- package/dist/{MultiSelectFieldSync-Bey99LzJ.js → MultiSelectFieldSync-ChDuxvhE.js} +876 -255
- package/dist/MultiSelectFieldSync-ChDuxvhE.js.map +1 -0
- package/dist/{NumberField-CDkEUfXW.js → NumberField-ecubQsaf.js} +4 -4
- package/dist/{NumberField-CDkEUfXW.js.map → NumberField-ecubQsaf.js.map} +1 -1
- package/dist/NumberField.js +1 -1
- package/dist/{Page-BVxybI-j.js → Page-CkcnGPPK.js} +8 -8
- package/dist/{Page-BVxybI-j.js.map → Page-CkcnGPPK.js.map} +1 -1
- package/dist/Page.js +1 -1
- package/dist/{Pagination-DIatYUXX.js → Pagination-DO9NORlw.js} +4 -4
- package/dist/{Pagination-DIatYUXX.js.map → Pagination-DO9NORlw.js.map} +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/{Popover-4C5IVk8T.js → Popover-D_BmwIOW.js} +3 -3
- package/dist/{Popover-4C5IVk8T.js.map → Popover-D_BmwIOW.js.map} +1 -1
- package/dist/Popover.js +1 -1
- package/dist/{ProgressBar-BGwp-qnf.js → ProgressBar-CBhVZIzK.js} +2 -2
- package/dist/{ProgressBar-BGwp-qnf.js.map → ProgressBar-CBhVZIzK.js.map} +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/{Radio-D7hNws2b.js → Radio-BMFwnzyz.js} +2 -2
- package/dist/{Radio-D7hNws2b.js.map → Radio-BMFwnzyz.js.map} +1 -1
- package/dist/{Radio-BRcpSu-d.js → Radio-DtYoRq3m.js} +3 -3
- package/dist/{Radio-BRcpSu-d.js.map → Radio-DtYoRq3m.js.map} +1 -1
- package/dist/Radio.js +1 -1
- package/dist/{SearchField-CoeaOip5.js → SearchField-CtdtcrVV.js} +12 -4
- package/dist/SearchField-CtdtcrVV.js.map +1 -0
- package/dist/SearchField.js +1 -1
- package/dist/{SelectCard-Bag44PmE.js → SelectCard-yWBNnm7t.js} +32 -8
- package/dist/SelectCard-yWBNnm7t.js.map +1 -0
- package/dist/SelectCard.js +1 -1
- package/dist/SelectField.js +1 -1
- package/dist/SelectFieldSync-DfP3eETZ.js +1248 -0
- package/dist/SelectFieldSync-DfP3eETZ.js.map +1 -0
- package/dist/{SelectTrigger-DgsvUfyl.js → SelectTrigger-Cs5CGc4D.js} +2 -2
- package/dist/{SelectTrigger-DgsvUfyl.js.map → SelectTrigger-Cs5CGc4D.js.map} +1 -1
- package/dist/SelectTrigger.js +1 -1
- package/dist/{SelectTriggerBase-OxfNqdIq.js → SelectTriggerBase-Cs827tDp.js} +3 -3
- package/dist/{SelectTriggerBase-OxfNqdIq.js.map → SelectTriggerBase-Cs827tDp.js.map} +1 -1
- package/dist/{Stepper-D8lkCP8Y.js → Stepper-CzVKDg-N.js} +2 -2
- package/dist/{Stepper-D8lkCP8Y.js.map → Stepper-CzVKDg-N.js.map} +1 -1
- package/dist/Stepper.js +1 -1
- package/dist/{Switch-D0zwZCg4.js → Switch-CEmjmSiL.js} +2 -2
- package/dist/{Switch-D0zwZCg4.js.map → Switch-CEmjmSiL.js.map} +1 -1
- package/dist/Switch.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/{TextField-Dfzn2HeL.js → TextField-D9VWORek.js} +2 -2
- package/dist/{TextField-Dfzn2HeL.js.map → TextField-D9VWORek.js.map} +1 -1
- package/dist/{TextField-BycenT6H.js → TextField-atI4M79b.js} +3 -3
- package/dist/{TextField-BycenT6H.js.map → TextField-atI4M79b.js.map} +1 -1
- package/dist/TextField.css +29 -25
- package/dist/TextField.js +1 -1
- package/dist/TextField.module-BP-hDP5m.js +22 -0
- package/dist/TextField.module-BP-hDP5m.js.map +1 -0
- package/dist/{Textarea-BwbwJP6z.js → Textarea-D-kPIsIN.js} +2 -2
- package/dist/{Textarea-BwbwJP6z.js.map → Textarea-D-kPIsIN.js.map} +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/{TimeField-B0WSzSfJ.js → TimeField-CbdxhawY.js} +3 -3
- package/dist/{TimeField-B0WSzSfJ.js.map → TimeField-CbdxhawY.js.map} +1 -1
- package/dist/TimeField.js +1 -1
- package/dist/Toast.js +2 -2
- package/dist/{Toaster-9Q_yaKGu.js → Toaster-B652KIzq.js} +4 -4
- package/dist/{Toaster-9Q_yaKGu.js.map → Toaster-B652KIzq.js.map} +1 -1
- package/dist/{Toaster-DHo8dnWH.js → Toaster-Bisc1mlh.js} +2 -2
- package/dist/{Toaster-DHo8dnWH.js.map → Toaster-Bisc1mlh.js.map} +1 -1
- package/dist/{Toolbar-CVOenuCF.js → Toolbar-4VdevLJd.js} +78 -64
- package/dist/Toolbar-4VdevLJd.js.map +1 -0
- package/dist/Toolbar.css +37 -55
- package/dist/Toolbar.js +1 -1
- package/dist/{YearlessDateInputWithPicker-ztozRk-X.js → YearlessDateInputWithPicker-BADNBDmy.js} +3 -3
- package/dist/{YearlessDateInputWithPicker-ztozRk-X.js.map → YearlessDateInputWithPicker-BADNBDmy.js.map} +1 -1
- package/dist/beta/components/MultiSelectField/MultiSelectField.d.ts +1 -10
- package/dist/beta/components/MultiSelectField/internal/MultiSelectFieldComboboxMode.d.ts +5 -0
- package/dist/beta/components/MultiSelectField/internal/MultiSelectFieldInput.d.ts +0 -2
- package/dist/beta/components/MultiSelectField/internal/MultiSelectFieldList.d.ts +3 -7
- package/dist/beta/components/MultiSelectField/internal/MultiSelectFieldSelectMode.d.ts +6 -0
- package/dist/beta/components/MultiSelectField/internal/MultiSelectFieldTrigger.d.ts +30 -0
- package/dist/beta/components/MultiSelectField/internal/types.d.ts +67 -0
- package/dist/beta/components/MultiSelectField/internal/useChipLayout.d.ts +19 -0
- package/dist/beta/components/MultiSelectField/internal/useComboMultiple.d.ts +1 -2
- package/dist/beta/components/MultiSelectField/internal/useSelectModeMultiple.d.ts +40 -0
- package/dist/beta/components/MultiSelectField/internal/useToggleSelection.d.ts +21 -0
- package/dist/beta/components/MultiSelectField/types.d.ts +7 -0
- package/dist/beta/components/SelectField/internal/FieldDialog/FieldDialog.d.ts +1 -1
- package/dist/beta/components/SelectField/internal/FieldListBase.d.ts +3 -4
- package/dist/beta/components/SelectField/internal/SelectFieldComboboxMode.d.ts +6 -0
- package/dist/beta/components/SelectField/internal/SelectFieldInput.d.ts +0 -2
- package/dist/beta/components/SelectField/internal/SelectFieldLabel.d.ts +4 -3
- package/dist/beta/components/SelectField/internal/SelectFieldList.d.ts +3 -7
- package/dist/beta/components/SelectField/internal/SelectFieldListItem.d.ts +2 -4
- package/dist/beta/components/SelectField/internal/SelectFieldSelectMode.d.ts +6 -0
- package/dist/beta/components/SelectField/internal/SelectFieldTrigger.d.ts +27 -0
- package/dist/beta/components/SelectField/internal/buildDownshiftItems.d.ts +22 -0
- package/dist/beta/components/SelectField/internal/types.d.ts +57 -0
- package/dist/beta/components/SelectField/internal/useCombo.d.ts +1 -5
- package/dist/beta/components/SelectField/internal/useProcessedOptions.d.ts +19 -0
- package/dist/beta/components/SelectField/internal/useSelectMode.d.ts +34 -0
- package/dist/beta/components/SelectField/types.d.ts +7 -0
- package/dist/beta/components/Table/DataTable/DataTable.d.ts +9 -2
- package/dist/beta/components/Table/DataTable/types.d.ts +20 -0
- package/dist/beta/components/Toolbar/Toolbar.d.ts +17 -7
- package/dist/beta/components/Toolbar/ToolbarButton.d.ts +0 -1
- package/dist/beta/components/Toolbar/ToolbarButtonLink.d.ts +0 -1
- package/dist/beta/components/Toolbar/ToolbarButtonToggle.d.ts +0 -1
- package/dist/beta/components/Toolbar/ToolbarSearchField.d.ts +2 -3
- package/dist/beta/components/Toolbar/ToolbarSelect.d.ts +0 -1
- package/dist/beta/components/Toolbar/internal/{ToolbarOverflowContext.d.ts → ToolbarContext.d.ts} +14 -5
- package/dist/beta/components/Toolbar/internal/utils/test.d.ts +5 -3
- package/dist/beta/components/Toolbar/types.d.ts +5 -1
- package/dist/beta.js +7 -7
- package/dist/components/ButtonLink/ButtonLink.d.ts +3 -3
- package/dist/components/SearchField/SearchField.d.ts +8 -26
- package/dist/components/SearchField/internal/SearchField.d.ts +73 -0
- package/dist/components/Toolbar/Toolbar.d.ts +11 -5
- package/dist/components/Toolbar/ToolbarButton.d.ts +0 -1
- package/dist/components/Toolbar/ToolbarButtonLink.d.ts +0 -1
- package/dist/components/Toolbar/ToolbarButtonToggle.d.ts +0 -1
- package/dist/components/Toolbar/ToolbarSelect.d.ts +0 -1
- package/dist/components/Toolbar/internal/{ToolbarOverflowContext.d.ts → ToolbarContext.d.ts} +14 -5
- package/dist/components/Toolbar/internal/utils/test.d.ts +5 -3
- package/dist/components/Toolbar/types.d.ts +5 -1
- package/dist/{index-DFvIVS57.js → index-ClUtwV8V.js} +2 -2
- package/dist/{index-DFvIVS57.js.map → index-ClUtwV8V.js.map} +1 -1
- package/dist/{index.esm-K9kxJhLx.js → index.esm-BZV0wNKZ.js} +1 -2
- package/dist/{index.esm-K9kxJhLx.js.map → index.esm-BZV0wNKZ.js.map} +1 -1
- package/dist/index.js +80 -69
- package/dist/index.js.map +1 -1
- package/dist/index2.css +17 -23
- package/dist/{match-sorter.esm-B3vwg1-X.js → match-sorter.esm-adzV1NDp.js} +2 -2
- package/dist/{match-sorter.esm-B3vwg1-X.js.map → match-sorter.esm-adzV1NDp.js.map} +1 -1
- package/dist/{useDrilldown-jbU4Cs5l.js → useDrilldown-C8TRwNE9.js} +3 -3
- package/dist/{useDrilldown-jbU4Cs5l.js.map → useDrilldown-C8TRwNE9.js.map} +1 -1
- package/dist/{useInitialFocus-BRRbylek.js → useInitialFocus-CdoVwSbr.js} +2 -2
- package/dist/{useInitialFocus-BRRbylek.js.map → useInitialFocus-CdoVwSbr.js.map} +1 -1
- package/package.json +3 -2
- package/dist/Button.module-Ck7VrMqw.js +0 -26
- package/dist/Button.module-Ck7VrMqw.js.map +0 -1
- package/dist/ButtonLink-CRlyK750.js.map +0 -1
- package/dist/FieldDialog-CAuhkCZY.js.map +0 -1
- package/dist/FieldMessage-DS0COrjp.js +0 -132
- package/dist/FieldMessage-DS0COrjp.js.map +0 -1
- package/dist/MultiSelectFieldSync-Bey99LzJ.js.map +0 -1
- package/dist/SearchField-CoeaOip5.js.map +0 -1
- package/dist/SelectCard-Bag44PmE.js.map +0 -1
- package/dist/SelectFieldSync-CigqXq3T.js +0 -763
- package/dist/SelectFieldSync-CigqXq3T.js.map +0 -1
- package/dist/TextField.module-pD1felN8.js +0 -20
- package/dist/TextField.module-pD1felN8.js.map +0 -1
- package/dist/Toolbar-CVOenuCF.js.map +0 -1
|
@@ -1,4 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { TableRow } from '../types';
|
|
3
|
+
import { Svg } from '../../../../types';
|
|
4
|
+
/**
|
|
5
|
+
* Configuration for the empty state displayed when the DataTable has no data
|
|
6
|
+
*/
|
|
7
|
+
export type DataTableEmptyState = {
|
|
8
|
+
/**
|
|
9
|
+
* Optional SVG illustration component to display.
|
|
10
|
+
* Pass a single SVG component, or an object with `light` and `dark` properties
|
|
11
|
+
* to display different illustrations based on the user's color scheme preference.
|
|
12
|
+
*/
|
|
13
|
+
svg?: Svg | {
|
|
14
|
+
light?: Svg;
|
|
15
|
+
dark?: Svg;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Optional content to display below the illustration
|
|
19
|
+
*/
|
|
20
|
+
content?: ReactNode;
|
|
21
|
+
};
|
|
2
22
|
/**
|
|
3
23
|
* Configuration for pagination in DataTable
|
|
4
24
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ToolbarOverflowTypes } from './types';
|
|
1
|
+
import { ToolbarOverflowTypes, ToolbarSize } from './types';
|
|
2
2
|
import { ComponentPropsWithoutRef, ReactElement } from 'react';
|
|
3
3
|
import { LayoutUtilProps } from '../../../types';
|
|
4
4
|
/**
|
|
@@ -25,6 +25,11 @@ export type ToolbarProps = ComponentPropsWithoutRef<"div"> & LayoutUtilProps & {
|
|
|
25
25
|
* Additional items to display in the overflow menu
|
|
26
26
|
*/
|
|
27
27
|
additionalItems?: ReactElement[];
|
|
28
|
+
/**
|
|
29
|
+
* Size of toolbar items
|
|
30
|
+
* @default xsmall
|
|
31
|
+
*/
|
|
32
|
+
size?: ToolbarSize;
|
|
28
33
|
};
|
|
29
34
|
/**
|
|
30
35
|
* Toolbar component for grouping related interactive elements with anvil2 tracking.
|
|
@@ -71,6 +76,11 @@ export declare const ToolbarElement: import('react').ForwardRefExoticComponent<O
|
|
|
71
76
|
* Additional items to display in the overflow menu
|
|
72
77
|
*/
|
|
73
78
|
additionalItems?: ReactElement[];
|
|
79
|
+
/**
|
|
80
|
+
* Size of toolbar items
|
|
81
|
+
* @default xsmall
|
|
82
|
+
*/
|
|
83
|
+
size?: ToolbarSize;
|
|
74
84
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
75
85
|
/**
|
|
76
86
|
* Toolbar component for grouping related interactive elements.
|
|
@@ -129,6 +139,11 @@ export declare const Toolbar: import('react').ForwardRefExoticComponent<Omit<imp
|
|
|
129
139
|
* Additional items to display in the overflow menu
|
|
130
140
|
*/
|
|
131
141
|
additionalItems?: ReactElement[];
|
|
142
|
+
/**
|
|
143
|
+
* Size of toolbar items
|
|
144
|
+
* @default xsmall
|
|
145
|
+
*/
|
|
146
|
+
size?: ToolbarSize;
|
|
132
147
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
133
148
|
/**
|
|
134
149
|
* ToolbarButton component for standard clickable actions within a toolbar with anvil2 tracking.
|
|
@@ -139,7 +154,6 @@ export declare const Toolbar: import('react').ForwardRefExoticComponent<Omit<imp
|
|
|
139
154
|
* - Automatic tooltip for icon-only buttons
|
|
140
155
|
* - Overflow menu support
|
|
141
156
|
* - Accessibility enforcement for aria-labels
|
|
142
|
-
* - Small size optimized for toolbar layout
|
|
143
157
|
* - Ghost and primary appearance options
|
|
144
158
|
* - Automatic tracking ID generation for analytics
|
|
145
159
|
*
|
|
@@ -161,7 +175,6 @@ export declare const Toolbar: import('react').ForwardRefExoticComponent<Omit<imp
|
|
|
161
175
|
* - Consistent styling with other toolbar items
|
|
162
176
|
* - Overflow menu support
|
|
163
177
|
* - Accessibility enforcement for aria-labels
|
|
164
|
-
* - Small size optimized for toolbar layout
|
|
165
178
|
* - Ghost and primary appearance options
|
|
166
179
|
* - Automatic tracking ID generation for analytics
|
|
167
180
|
*
|
|
@@ -178,7 +191,6 @@ export declare const Toolbar: import('react').ForwardRefExoticComponent<Omit<imp
|
|
|
178
191
|
* - Consistent styling with other toolbar items
|
|
179
192
|
* - Overflow menu support
|
|
180
193
|
* - Accessibility enforcement for aria-labels
|
|
181
|
-
* - Small size optimized for toolbar layout
|
|
182
194
|
* - Ghost and primary appearance options
|
|
183
195
|
* - Automatic tracking ID generation for analytics
|
|
184
196
|
*
|
|
@@ -196,7 +208,6 @@ export declare const Toolbar: import('react').ForwardRefExoticComponent<Omit<imp
|
|
|
196
208
|
* - Controlled and uncontrolled usage patterns
|
|
197
209
|
* - Automatic overflow menu integration
|
|
198
210
|
* - Accessibility support with proper ARIA labels
|
|
199
|
-
* - Small size optimized for toolbar layout
|
|
200
211
|
* - Ghost and primary appearance options
|
|
201
212
|
* - Dropdown arrow icon indicator
|
|
202
213
|
* - Listbox integration for keyboard navigation
|
|
@@ -287,11 +298,10 @@ export declare const Toolbar: import('react').ForwardRefExoticComponent<Omit<imp
|
|
|
287
298
|
"aria-label"?: string;
|
|
288
299
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
289
300
|
/**
|
|
290
|
-
* ToolbarSearchField component renders a
|
|
301
|
+
* ToolbarSearchField component renders a search field for use in toolbars.
|
|
291
302
|
*
|
|
292
303
|
* Features:
|
|
293
304
|
* - Renders a search field styled for toolbar usage
|
|
294
|
-
* - Always uses small size for compact layout
|
|
295
305
|
* - Supports all SearchField props except size
|
|
296
306
|
* - Integrates with toolbar layouts and accessibility
|
|
297
307
|
*
|
|
@@ -26,7 +26,6 @@ export type ToolbarButtonProps = WithAriaLabelEnforcement<ToolbarButtonBaseProps
|
|
|
26
26
|
* - Automatic tooltip for icon-only buttons
|
|
27
27
|
* - Overflow menu support
|
|
28
28
|
* - Accessibility enforcement for aria-labels
|
|
29
|
-
* - Small size optimized for toolbar layout
|
|
30
29
|
* - Ghost and primary appearance options
|
|
31
30
|
*
|
|
32
31
|
* @example
|
|
@@ -27,7 +27,6 @@ export type ToolbarButtonLinkProps = WithAriaLabelEnforcement<ToolbarButtonLinkB
|
|
|
27
27
|
* - Automatic tooltip for icon-only links
|
|
28
28
|
* - Overflow menu support
|
|
29
29
|
* - Accessibility enforcement for aria-labels
|
|
30
|
-
* - Small size optimized for toolbar layout
|
|
31
30
|
* - Ghost and primary appearance options
|
|
32
31
|
* - Proper anchor element semantics
|
|
33
32
|
*
|
|
@@ -26,7 +26,6 @@ export type ToolbarButtonToggleProps = WithAriaLabelEnforcement<ToolbarButtonTog
|
|
|
26
26
|
* - Automatic tooltip for icon-only toggles
|
|
27
27
|
* - Overflow menu support
|
|
28
28
|
* - Accessibility enforcement for aria-labels
|
|
29
|
-
* - Small size optimized for toolbar layout
|
|
30
29
|
* - Visual feedback for toggle state
|
|
31
30
|
* - Proper ARIA attributes for toggle semantics
|
|
32
31
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SearchFieldProps } from '../../../components/SearchField';
|
|
1
|
+
import { SearchFieldProps } from '../../../components/SearchField/internal/SearchField';
|
|
2
2
|
/**
|
|
3
3
|
* Props for the ToolbarSearchField component
|
|
4
4
|
*
|
|
@@ -6,11 +6,10 @@ import { SearchFieldProps } from '../../../components/SearchField';
|
|
|
6
6
|
*/
|
|
7
7
|
export type ToolbarSearchFieldProps = Omit<SearchFieldProps, "size">;
|
|
8
8
|
/**
|
|
9
|
-
* ToolbarSearchField component renders a
|
|
9
|
+
* ToolbarSearchField component renders a search field for use in toolbars.
|
|
10
10
|
*
|
|
11
11
|
* Features:
|
|
12
12
|
* - Renders a search field styled for toolbar usage
|
|
13
|
-
* - Always uses small size for compact layout
|
|
14
13
|
* - Supports all SearchField props except size
|
|
15
14
|
* - Integrates with toolbar layouts and accessibility
|
|
16
15
|
*
|
|
@@ -44,7 +44,6 @@ export type ToolbarSelectProps<T = Record<string, unknown>> = Omit<React.Compone
|
|
|
44
44
|
* - Controlled and uncontrolled usage patterns
|
|
45
45
|
* - Automatic overflow menu integration
|
|
46
46
|
* - Accessibility support with proper ARIA labels
|
|
47
|
-
* - Small size optimized for toolbar layout
|
|
48
47
|
* - Ghost and primary appearance options
|
|
49
48
|
* - Dropdown arrow icon indicator
|
|
50
49
|
* - Listbox integration for keyboard navigation
|
package/dist/beta/components/Toolbar/internal/{ToolbarOverflowContext.d.ts → ToolbarContext.d.ts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
import { ToolbarItemProps, ToolbarOverflowTypes } from '../types';
|
|
2
|
+
import { ToolbarItemProps, ToolbarOverflowTypes, ToolbarSize } from '../types';
|
|
3
3
|
/**
|
|
4
|
-
* Context for sharing toolbar state with child components
|
|
4
|
+
* Context for sharing toolbar state with child components
|
|
5
5
|
*/
|
|
6
|
-
export type
|
|
6
|
+
export type ToolbarContextProps = {
|
|
7
7
|
/**
|
|
8
8
|
* Array of toolbar items that should appear in the overflow menu
|
|
9
9
|
*/
|
|
@@ -28,8 +28,17 @@ export type ToolbarOverFlowContextProps = {
|
|
|
28
28
|
* Overflow behavior type (wrap or collapse)
|
|
29
29
|
*/
|
|
30
30
|
overflow: ToolbarOverflowTypes;
|
|
31
|
+
/**
|
|
32
|
+
* Size of toolbar child components
|
|
33
|
+
*/
|
|
34
|
+
size: ToolbarSize;
|
|
31
35
|
};
|
|
32
36
|
/**
|
|
33
|
-
* Context for managing toolbar overflow
|
|
37
|
+
* Context for managing toolbar state including overflow and size
|
|
38
|
+
*/
|
|
39
|
+
export declare const ToolbarContext: import('react').Context<ToolbarContextProps>;
|
|
40
|
+
/**
|
|
41
|
+
* Hook to access the toolbar size from context
|
|
42
|
+
* @returns The current toolbar size
|
|
34
43
|
*/
|
|
35
|
-
export declare const
|
|
44
|
+
export declare const useToolbarSize: () => ToolbarSize;
|
|
@@ -3,7 +3,7 @@ import { ToolbarOverflowTypes } from '../../types';
|
|
|
3
3
|
export declare const withOverflowItemContext: (children: ReactNode, isInOverflowMenu?: boolean) => import('react').FunctionComponentElement<import('react').ProviderProps<{
|
|
4
4
|
isInOverflowMenu: boolean;
|
|
5
5
|
}>>;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const createMockToolbarContext: (overrides?: {}) => {
|
|
7
7
|
overflowItems: never[];
|
|
8
8
|
orderedIds: never[];
|
|
9
9
|
addItem: import('vitest').Mock<(...args: any[]) => any>;
|
|
@@ -12,8 +12,9 @@ export declare const createMockOverflowContext: (overrides?: {}) => {
|
|
|
12
12
|
current: HTMLDivElement;
|
|
13
13
|
};
|
|
14
14
|
overflow: ToolbarOverflowTypes;
|
|
15
|
+
size: "xsmall";
|
|
15
16
|
};
|
|
16
|
-
export declare const
|
|
17
|
+
export declare const withToolbarContext: (children: ReactNode, contextValue?: {
|
|
17
18
|
overflowItems: never[];
|
|
18
19
|
orderedIds: never[];
|
|
19
20
|
addItem: import('vitest').Mock<(...args: any[]) => any>;
|
|
@@ -22,7 +23,8 @@ export declare const withToolbarOverflowContext: (children: ReactNode, contextVa
|
|
|
22
23
|
current: HTMLDivElement;
|
|
23
24
|
};
|
|
24
25
|
overflow: ToolbarOverflowTypes;
|
|
25
|
-
|
|
26
|
+
size: "xsmall";
|
|
27
|
+
}) => import('react').FunctionComponentElement<import('react').ProviderProps<import('../ToolbarContext').ToolbarContextProps>>;
|
|
26
28
|
export declare const mockIntersectionObserver: import('vitest').Mock<(...args: any[]) => any>;
|
|
27
29
|
export declare const observerMap: Map<any, any>;
|
|
28
30
|
export declare const createIntersectionEntry: (element: Element, isIntersecting: boolean) => IntersectionObserverEntry;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { ButtonAppearance } from '../../../types';
|
|
1
|
+
import { ButtonAppearance, Size } from '../../../types';
|
|
2
2
|
import { IconProps } from '../../../components/Icon';
|
|
3
3
|
import { ToolbarButtonProps } from './ToolbarButton';
|
|
4
4
|
import { ToolbarButtonLinkProps } from './ToolbarButtonLink';
|
|
5
5
|
import { ToolbarButtonToggleProps } from './ToolbarButtonToggle';
|
|
6
6
|
import { ToolbarSelectProps } from './ToolbarSelect';
|
|
7
|
+
/**
|
|
8
|
+
* Toolbar size options
|
|
9
|
+
*/
|
|
10
|
+
export type ToolbarSize = Extract<Size, "xsmall" | "small" | "medium" | "large">;
|
|
7
11
|
/**
|
|
8
12
|
* Toolbar overflow options
|
|
9
13
|
*/
|
package/dist/beta.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
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-
|
|
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-NzX8SCYT.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-4VdevLJd.js';
|
|
3
|
+
export { u as useCalendarBetaProps } from './Calendar-CtkL4zYU.js';
|
|
4
|
+
export { C as Calendar } from './Calendar-CkgpKD7Q.js';
|
|
5
|
+
export { S as SelectField, a as SelectFieldSync } from './SelectFieldSync-DfP3eETZ.js';
|
|
6
|
+
export { M as MultiSelectField, a as MultiSelectFieldSync } from './MultiSelectFieldSync-ChDuxvhE.js';
|
|
7
7
|
export { I as InteractiveCard } from './InteractiveCard-OszQGxGw.js';
|
|
8
|
-
export { u as useAdaptiveView } from './FieldDialog-
|
|
8
|
+
export { u as useAdaptiveView } from './FieldDialog-BghhsL2B.js';
|
|
9
9
|
//# sourceMappingURL=beta.js.map
|
|
@@ -21,7 +21,7 @@ export type ButtonLinkProps = LayoutUtilProps & ComponentPropsWithoutRef<"a"> &
|
|
|
21
21
|
* The size of the button link.
|
|
22
22
|
* @default medium
|
|
23
23
|
*/
|
|
24
|
-
size?: Extract<Size, "small" | "medium" | "large">;
|
|
24
|
+
size?: Extract<Size, "xsmall" | "small" | "medium" | "large">;
|
|
25
25
|
/**
|
|
26
26
|
* The icons of the button link.
|
|
27
27
|
*/
|
|
@@ -46,7 +46,7 @@ DataTrackingId;
|
|
|
46
46
|
*
|
|
47
47
|
* Features:
|
|
48
48
|
* - Multiple visual appearances (primary, secondary, ghost, danger variants)
|
|
49
|
-
* -
|
|
49
|
+
* - Four size options (xsmall, small, medium, large)
|
|
50
50
|
* - Loading state with spinner animation
|
|
51
51
|
* - Icon support (before, after, or icon-only)
|
|
52
52
|
* - Full accessibility support with proper ARIA attributes
|
|
@@ -77,7 +77,7 @@ export declare const ButtonLink: import('react').ForwardRefExoticComponent<Layou
|
|
|
77
77
|
* The size of the button link.
|
|
78
78
|
* @default medium
|
|
79
79
|
*/
|
|
80
|
-
size?: Extract<Size, "small" | "medium" | "large">;
|
|
80
|
+
size?: Extract<Size, "xsmall" | "small" | "medium" | "large">;
|
|
81
81
|
/**
|
|
82
82
|
* The icons of the button link.
|
|
83
83
|
*/
|
|
@@ -1,26 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SearchFieldProps as CoreSearchFieldProps } from './internal/SearchField';
|
|
2
|
+
import { DistributiveOmit } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Props for the SearchField component
|
|
5
5
|
* @extends Omit<ComponentPropsWithoutRef<"input">, "size" | "prefix" | "required" | "children">
|
|
6
6
|
* @extends LayoutUtilProps
|
|
7
7
|
*/
|
|
8
|
-
export type SearchFieldProps =
|
|
8
|
+
export type SearchFieldProps = DistributiveOmit<CoreSearchFieldProps, "size"> & {
|
|
9
9
|
/**
|
|
10
10
|
* Size of the search field
|
|
11
11
|
* @default "medium"
|
|
12
12
|
*/
|
|
13
|
-
size?: Extract<
|
|
14
|
-
|
|
15
|
-
* Whether the search field is disabled
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Callback when the clear button is clicked or activated via keyboard (Enter/Space)
|
|
21
|
-
*/
|
|
22
|
-
onClear?: () => void;
|
|
23
|
-
} & DataTrackingId;
|
|
13
|
+
size?: Extract<CoreSearchFieldProps["size"], "small" | "medium" | "large">;
|
|
14
|
+
};
|
|
24
15
|
/**
|
|
25
16
|
* SearchField component for text input with search functionality.
|
|
26
17
|
*
|
|
@@ -55,19 +46,10 @@ export type SearchFieldProps = Omit<ComponentPropsWithoutRef<"input">, "size" |
|
|
|
55
46
|
* disabled={isLoading}
|
|
56
47
|
* />
|
|
57
48
|
*/
|
|
58
|
-
export declare const SearchField: import('react').ForwardRefExoticComponent<Omit<
|
|
49
|
+
export declare const SearchField: import('react').ForwardRefExoticComponent<Omit<CoreSearchFieldProps, "size"> & {
|
|
59
50
|
/**
|
|
60
51
|
* Size of the search field
|
|
61
52
|
* @default "medium"
|
|
62
53
|
*/
|
|
63
|
-
size?: Extract<
|
|
64
|
-
|
|
65
|
-
* Whether the search field is disabled
|
|
66
|
-
* @default false
|
|
67
|
-
*/
|
|
68
|
-
disabled?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Callback when the clear button is clicked or activated via keyboard (Enter/Space)
|
|
71
|
-
*/
|
|
72
|
-
onClear?: () => void;
|
|
73
|
-
} & DataTrackingId & import('react').RefAttributes<HTMLInputElement>>;
|
|
54
|
+
size?: Extract<CoreSearchFieldProps["size"], "small" | "medium" | "large">;
|
|
55
|
+
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { DataTrackingId, LayoutUtilProps, Size } from '../../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the SearchField component
|
|
5
|
+
* @extends Omit<ComponentPropsWithoutRef<"input">, "size" | "prefix" | "required" | "children">
|
|
6
|
+
* @extends LayoutUtilProps
|
|
7
|
+
*/
|
|
8
|
+
export type SearchFieldProps = Omit<ComponentPropsWithoutRef<"input">, "size" | "prefix" | "required" | "children"> & LayoutUtilProps & {
|
|
9
|
+
/**
|
|
10
|
+
* Size of the search field
|
|
11
|
+
* @default "medium"
|
|
12
|
+
*/
|
|
13
|
+
size?: Extract<Size, "xsmall" | "small" | "medium" | "large">;
|
|
14
|
+
/**
|
|
15
|
+
* Whether the search field is disabled
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Callback when the clear button is clicked or activated via keyboard (Enter/Space)
|
|
21
|
+
*/
|
|
22
|
+
onClear?: () => void;
|
|
23
|
+
} & DataTrackingId;
|
|
24
|
+
/**
|
|
25
|
+
* SearchField component for text input with search functionality.
|
|
26
|
+
*
|
|
27
|
+
* Features:
|
|
28
|
+
* - Search icon prefix for visual clarity
|
|
29
|
+
* - Clear button that appears when input has value
|
|
30
|
+
* - Arrow key navigation between input and clear button (Right arrow to clear button, Left arrow back to input)
|
|
31
|
+
* - Clear button activated with Enter/Space keys
|
|
32
|
+
* - Focus returns to input after clearing
|
|
33
|
+
* - Multiple size variants (xsmall, small, medium, large)
|
|
34
|
+
* - Controlled and uncontrolled modes
|
|
35
|
+
* - Disabled and read-only states
|
|
36
|
+
* - Accessibility support with proper ARIA attributes
|
|
37
|
+
* - Layout utility props for positioning and spacing
|
|
38
|
+
* - Automatic value detection for clear button visibility
|
|
39
|
+
* - Search-specific input type and autocomplete settings
|
|
40
|
+
* - Screen reader support with placeholder announcements
|
|
41
|
+
* - Automatic tracking ID generation for analytics
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* <SearchField
|
|
45
|
+
* placeholder="Search users..."
|
|
46
|
+
* onChange={(e) => setSearchTerm(e.target.value)}
|
|
47
|
+
* onClear={() => setSearchTerm("")}
|
|
48
|
+
* />
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* <SearchField
|
|
52
|
+
* size="large"
|
|
53
|
+
* value={searchValue}
|
|
54
|
+
* onChange={(e) => setSearchValue(e.target.value)}
|
|
55
|
+
* disabled={isLoading}
|
|
56
|
+
* />
|
|
57
|
+
*/
|
|
58
|
+
export declare const SearchField: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size" | "children" | "prefix" | "required"> & LayoutUtilProps & {
|
|
59
|
+
/**
|
|
60
|
+
* Size of the search field
|
|
61
|
+
* @default "medium"
|
|
62
|
+
*/
|
|
63
|
+
size?: Extract<Size, "xsmall" | "small" | "medium" | "large">;
|
|
64
|
+
/**
|
|
65
|
+
* Whether the search field is disabled
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Callback when the clear button is clicked or activated via keyboard (Enter/Space)
|
|
71
|
+
*/
|
|
72
|
+
onClear?: () => void;
|
|
73
|
+
} & DataTrackingId & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ToolbarOverflowTypes } from './types';
|
|
1
|
+
import { ToolbarOverflowTypes, ToolbarSize } from './types';
|
|
2
2
|
import { ComponentPropsWithoutRef, ReactElement } from 'react';
|
|
3
3
|
import { LayoutUtilProps } from '../../types';
|
|
4
4
|
/**
|
|
@@ -25,6 +25,11 @@ export type ToolbarProps = ComponentPropsWithoutRef<"div"> & LayoutUtilProps & {
|
|
|
25
25
|
* Additional items to display in the overflow menu
|
|
26
26
|
*/
|
|
27
27
|
additionalItems?: ReactElement[];
|
|
28
|
+
/**
|
|
29
|
+
* Size of toolbar items
|
|
30
|
+
* @default xsmall
|
|
31
|
+
*/
|
|
32
|
+
size?: ToolbarSize;
|
|
28
33
|
};
|
|
29
34
|
/**
|
|
30
35
|
* Toolbar component for grouping related interactive elements.
|
|
@@ -69,6 +74,11 @@ export declare const Toolbar: import('react').ForwardRefExoticComponent<Omit<imp
|
|
|
69
74
|
* Additional items to display in the overflow menu
|
|
70
75
|
*/
|
|
71
76
|
additionalItems?: ReactElement[];
|
|
77
|
+
/**
|
|
78
|
+
* Size of toolbar items
|
|
79
|
+
* @default xsmall
|
|
80
|
+
*/
|
|
81
|
+
size?: ToolbarSize;
|
|
72
82
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
73
83
|
/**
|
|
74
84
|
* ToolbarButton component for standard clickable actions within a toolbar with anvil2 tracking.
|
|
@@ -79,7 +89,6 @@ export declare const Toolbar: import('react').ForwardRefExoticComponent<Omit<imp
|
|
|
79
89
|
* - Automatic tooltip for icon-only buttons
|
|
80
90
|
* - Overflow menu support
|
|
81
91
|
* - Accessibility enforcement for aria-labels
|
|
82
|
-
* - Small size optimized for toolbar layout
|
|
83
92
|
* - Ghost and primary appearance options
|
|
84
93
|
* - Automatic tracking ID generation for analytics
|
|
85
94
|
*
|
|
@@ -101,7 +110,6 @@ export declare const Toolbar: import('react').ForwardRefExoticComponent<Omit<imp
|
|
|
101
110
|
* - Consistent styling with other toolbar items
|
|
102
111
|
* - Overflow menu support
|
|
103
112
|
* - Accessibility enforcement for aria-labels
|
|
104
|
-
* - Small size optimized for toolbar layout
|
|
105
113
|
* - Ghost and primary appearance options
|
|
106
114
|
* - Automatic tracking ID generation for analytics
|
|
107
115
|
*
|
|
@@ -118,7 +126,6 @@ export declare const Toolbar: import('react').ForwardRefExoticComponent<Omit<imp
|
|
|
118
126
|
* - Consistent styling with other toolbar items
|
|
119
127
|
* - Overflow menu support
|
|
120
128
|
* - Accessibility enforcement for aria-labels
|
|
121
|
-
* - Small size optimized for toolbar layout
|
|
122
129
|
* - Ghost and primary appearance options
|
|
123
130
|
* - Automatic tracking ID generation for analytics
|
|
124
131
|
*
|
|
@@ -136,7 +143,6 @@ export declare const Toolbar: import('react').ForwardRefExoticComponent<Omit<imp
|
|
|
136
143
|
* - Controlled and uncontrolled usage patterns
|
|
137
144
|
* - Automatic overflow menu integration
|
|
138
145
|
* - Accessibility support with proper ARIA labels
|
|
139
|
-
* - Small size optimized for toolbar layout
|
|
140
146
|
* - Ghost and primary appearance options
|
|
141
147
|
* - Dropdown arrow icon indicator
|
|
142
148
|
* - Listbox integration for keyboard navigation
|
|
@@ -30,7 +30,6 @@ export type ToolbarButtonProps = WithAriaLabelEnforcement<ToolbarButtonBaseProps
|
|
|
30
30
|
* - Automatic tooltip for icon-only buttons
|
|
31
31
|
* - Overflow menu support
|
|
32
32
|
* - Accessibility enforcement for aria-labels
|
|
33
|
-
* - Small size optimized for toolbar layout
|
|
34
33
|
* - Ghost and primary appearance options
|
|
35
34
|
*
|
|
36
35
|
* @example
|
|
@@ -27,7 +27,6 @@ export type ToolbarButtonLinkProps = WithAriaLabelEnforcement<ToolbarButtonLinkB
|
|
|
27
27
|
* - Automatic tooltip for icon-only links
|
|
28
28
|
* - Overflow menu support
|
|
29
29
|
* - Accessibility enforcement for aria-labels
|
|
30
|
-
* - Small size optimized for toolbar layout
|
|
31
30
|
* - Ghost and primary appearance options
|
|
32
31
|
* - Proper anchor element semantics
|
|
33
32
|
*
|
|
@@ -21,7 +21,6 @@ export type ToolbarButtonToggleProps = WithAriaLabelEnforcement<ToolbarButtonTog
|
|
|
21
21
|
* - Automatic tooltip for icon-only toggles
|
|
22
22
|
* - Overflow menu support
|
|
23
23
|
* - Accessibility enforcement for aria-labels
|
|
24
|
-
* - Small size optimized for toolbar layout
|
|
25
24
|
* - Visual feedback for toggle state
|
|
26
25
|
* - Proper ARIA attributes for toggle semantics
|
|
27
26
|
*
|
|
@@ -44,7 +44,6 @@ export type ToolbarSelectProps<T = Record<string, unknown>> = Omit<React.Compone
|
|
|
44
44
|
* - Controlled and uncontrolled usage patterns
|
|
45
45
|
* - Automatic overflow menu integration
|
|
46
46
|
* - Accessibility support with proper ARIA labels
|
|
47
|
-
* - Small size optimized for toolbar layout
|
|
48
47
|
* - Ghost and primary appearance options
|
|
49
48
|
* - Dropdown arrow icon indicator
|
|
50
49
|
* - Listbox integration for keyboard navigation
|
package/dist/components/Toolbar/internal/{ToolbarOverflowContext.d.ts → ToolbarContext.d.ts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
import { ToolbarItemProps, ToolbarOverflowTypes } from '../types';
|
|
2
|
+
import { ToolbarItemProps, ToolbarOverflowTypes, ToolbarSize } from '../types';
|
|
3
3
|
/**
|
|
4
|
-
* Context for sharing toolbar state with child components
|
|
4
|
+
* Context for sharing toolbar state with child components
|
|
5
5
|
*/
|
|
6
|
-
export type
|
|
6
|
+
export type ToolbarContextProps = {
|
|
7
7
|
/**
|
|
8
8
|
* Array of toolbar items that should appear in the overflow menu
|
|
9
9
|
*/
|
|
@@ -28,8 +28,17 @@ export type ToolbarOverFlowContextProps = {
|
|
|
28
28
|
* Overflow behavior type (wrap or collapse)
|
|
29
29
|
*/
|
|
30
30
|
overflow: ToolbarOverflowTypes;
|
|
31
|
+
/**
|
|
32
|
+
* Size of toolbar child components
|
|
33
|
+
*/
|
|
34
|
+
size: ToolbarSize;
|
|
31
35
|
};
|
|
32
36
|
/**
|
|
33
|
-
* Context for managing toolbar overflow
|
|
37
|
+
* Context for managing toolbar state including overflow and size
|
|
38
|
+
*/
|
|
39
|
+
export declare const ToolbarContext: import('react').Context<ToolbarContextProps>;
|
|
40
|
+
/**
|
|
41
|
+
* Hook to access the toolbar size from context
|
|
42
|
+
* @returns The current toolbar size
|
|
34
43
|
*/
|
|
35
|
-
export declare const
|
|
44
|
+
export declare const useToolbarSize: () => ToolbarSize;
|
|
@@ -3,7 +3,7 @@ import { ToolbarOverflowTypes } from '../../types';
|
|
|
3
3
|
export declare const withOverflowItemContext: (children: ReactNode, isInOverflowMenu?: boolean) => import('react').FunctionComponentElement<import('react').ProviderProps<{
|
|
4
4
|
isInOverflowMenu: boolean;
|
|
5
5
|
}>>;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const createMockToolbarContext: (overrides?: {}) => {
|
|
7
7
|
overflowItems: never[];
|
|
8
8
|
orderedIds: never[];
|
|
9
9
|
addItem: import('vitest').Mock<(...args: any[]) => any>;
|
|
@@ -12,8 +12,9 @@ export declare const createMockOverflowContext: (overrides?: {}) => {
|
|
|
12
12
|
current: HTMLDivElement;
|
|
13
13
|
};
|
|
14
14
|
overflow: ToolbarOverflowTypes;
|
|
15
|
+
size: "xsmall";
|
|
15
16
|
};
|
|
16
|
-
export declare const
|
|
17
|
+
export declare const withToolbarContext: (children: ReactNode, contextValue?: {
|
|
17
18
|
overflowItems: never[];
|
|
18
19
|
orderedIds: never[];
|
|
19
20
|
addItem: import('vitest').Mock<(...args: any[]) => any>;
|
|
@@ -22,7 +23,8 @@ export declare const withToolbarOverflowContext: (children: ReactNode, contextVa
|
|
|
22
23
|
current: HTMLDivElement;
|
|
23
24
|
};
|
|
24
25
|
overflow: ToolbarOverflowTypes;
|
|
25
|
-
|
|
26
|
+
size: "xsmall";
|
|
27
|
+
}) => import('react').FunctionComponentElement<import('react').ProviderProps<import('../ToolbarContext').ToolbarContextProps>>;
|
|
26
28
|
export declare const mockIntersectionObserver: import('vitest').Mock<(...args: any[]) => any>;
|
|
27
29
|
export declare const observerMap: Map<any, any>;
|
|
28
30
|
export declare const createIntersectionEntry: (element: Element, isIntersecting: boolean) => IntersectionObserverEntry;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { ButtonAppearance } from '../../types';
|
|
1
|
+
import { ButtonAppearance, Size } from '../../types';
|
|
2
2
|
import { IconProps } from '../Icon';
|
|
3
3
|
import { ToolbarButtonProps } from './ToolbarButton';
|
|
4
4
|
import { ToolbarButtonLinkProps } from './ToolbarButtonLink';
|
|
5
5
|
import { ToolbarButtonToggleProps } from './ToolbarButtonToggle';
|
|
6
6
|
import { ToolbarSelectProps } from './ToolbarSelect';
|
|
7
|
+
/**
|
|
8
|
+
* Toolbar size options
|
|
9
|
+
*/
|
|
10
|
+
export type ToolbarSize = Extract<Size, "xsmall" | "small" | "medium" | "large">;
|
|
7
11
|
/**
|
|
8
12
|
* Toolbar overflow options
|
|
9
13
|
*/
|
|
@@ -3,7 +3,7 @@ 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-D9VTKcL4.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-ClUtwV8V.js.map
|