@servicetitan/anvil2 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/{Avatar-CCnbKkCm.js → Avatar-BckUfs1N.js} +48 -46
- package/dist/{Avatar-CCnbKkCm.js.map → Avatar-BckUfs1N.js.map} +1 -1
- package/dist/Avatar-ChybzixS.js +35 -0
- package/dist/Avatar-ChybzixS.js.map +1 -0
- package/dist/Avatar.js +2 -2
- package/dist/Breadcrumbs-C_WK9Yul.js +107 -0
- package/dist/Breadcrumbs-C_WK9Yul.js.map +1 -0
- package/dist/Breadcrumbs.js +1 -1
- package/dist/{Calendar-C1U2npPP.js → Calendar-BTStJPV1.js} +2 -2
- package/dist/{Calendar-C1U2npPP.js.map → Calendar-BTStJPV1.js.map} +1 -1
- package/dist/{Calendar-SGlTt-bs.js → Calendar-Frpv5rRY.js} +129 -118
- package/dist/Calendar-Frpv5rRY.js.map +1 -0
- package/dist/Calendar.css +51 -51
- package/dist/Calendar.js +2 -2
- package/dist/Checkbox-CTZdZym4.js +52 -0
- package/dist/Checkbox-CTZdZym4.js.map +1 -0
- package/dist/{Checkbox-CtKUNeyu.js → Checkbox-Drgai_lS.js} +3 -3
- package/dist/{Checkbox-CtKUNeyu.js.map → Checkbox-Drgai_lS.js.map} +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/{Chip-DjTAR0va.js → Chip-CVyEctAz.js} +2 -2
- package/dist/{Chip-DjTAR0va.js.map → Chip-CVyEctAz.js.map} +1 -1
- package/dist/Chip.js +1 -1
- package/dist/{Combobox-By8-34bw.js → Combobox-BRtfrYyZ.js} +185 -182
- package/dist/{Combobox-By8-34bw.js.map → Combobox-BRtfrYyZ.js.map} +1 -1
- package/dist/Combobox.js +1 -1
- package/dist/{DataTable-BYOS6icI.js → DataTable-BmVPjMMg.js} +667 -622
- package/dist/DataTable-BmVPjMMg.js.map +1 -0
- package/dist/{DateFieldRange-C8Uzrboc.js → DateFieldRange-D9DtlkSQ.js} +19 -5
- package/dist/DateFieldRange-D9DtlkSQ.js.map +1 -0
- package/dist/DateFieldRange.js +1 -1
- package/dist/{DateFieldSingle-DrhLIjlK.js → DateFieldSingle-CkdeCUJv.js} +7 -7
- package/dist/{DateFieldSingle-DrhLIjlK.js.map → DateFieldSingle-CkdeCUJv.js.map} +1 -1
- package/dist/DateFieldSingle.js +1 -1
- package/dist/{DateFieldYearless-DbivK4Hm.js → DateFieldYearless-b81ZcYdp.js} +3 -3
- package/dist/{DateFieldYearless-DbivK4Hm.js.map → DateFieldYearless-b81ZcYdp.js.map} +1 -1
- package/dist/DateFieldYearless.js +1 -1
- package/dist/{DateFieldYearlessRange-BEqJe4Uf.js → DateFieldYearlessRange-ClAFzIDD.js} +3 -3
- package/dist/{DateFieldYearlessRange-BEqJe4Uf.js.map → DateFieldYearlessRange-ClAFzIDD.js.map} +1 -1
- package/dist/DateFieldYearlessRange.js +1 -1
- package/dist/{DaysOfTheWeek-BR32AA32.js → DaysOfTheWeek-2Zeh79oR.js} +3 -3
- package/dist/{DaysOfTheWeek-BR32AA32.js.map → DaysOfTheWeek-2Zeh79oR.js.map} +1 -1
- package/dist/DaysOfTheWeek.js +1 -1
- package/dist/{Details-Dxq_v3Qg.js → Details-CZOIpNP_.js} +8 -8
- package/dist/Details-CZOIpNP_.js.map +1 -0
- package/dist/Details.js +1 -1
- package/dist/{Dialog-CGhwkwvq.js → Dialog-CloZWa1Q.js} +71 -71
- package/dist/Dialog-CloZWa1Q.js.map +1 -0
- package/dist/Dialog.js +1 -1
- package/dist/{Drawer-DA4iAgt-.js → Drawer-CfkoH081.js} +84 -84
- package/dist/Drawer-CfkoH081.js.map +1 -0
- package/dist/Drawer.js +1 -1
- package/dist/DrillDown.js +1 -1
- package/dist/{FieldLabel-DbMosKtd.js → FieldLabel-CQ5QGTVq.js} +2 -2
- package/dist/{FieldLabel-DbMosKtd.js.map → FieldLabel-CQ5QGTVq.js.map} +1 -1
- package/dist/FieldLabel.js +1 -1
- package/dist/Grid-DeYIx5k4.js +149 -0
- package/dist/Grid-DeYIx5k4.js.map +1 -0
- package/dist/Grid.js +1 -1
- package/dist/{InputMask-HjaNCb73.js → InputMask-CI4Q5UwG.js} +3 -3
- package/dist/{InputMask-HjaNCb73.js.map → InputMask-CI4Q5UwG.js.map} +1 -1
- package/dist/InputMask.js +1 -1
- package/dist/{Layout-VfhlilMG.js → Layout-CISAxILX.js} +34 -33
- package/dist/Layout-CISAxILX.js.map +1 -0
- package/dist/Layout.js +1 -1
- package/dist/List--KhCpjZn.js +103 -0
- package/dist/List--KhCpjZn.js.map +1 -0
- package/dist/List.js +1 -1
- package/dist/{ListView-mujFK6mQ.js → ListView-DAbBuss4.js} +6 -6
- package/dist/ListView-DAbBuss4.js.map +1 -0
- package/dist/ListView.js +1 -1
- package/dist/{Listbox-BtAgBDRS.js → Listbox-D_T55BFX.js} +5 -4
- package/dist/Listbox-D_T55BFX.js.map +1 -0
- package/dist/Listbox.js +1 -1
- package/dist/{Menu-BXsmCP20.js → Menu-CRoJYJ53.js} +366 -365
- package/dist/Menu-CRoJYJ53.js.map +1 -0
- package/dist/Menu.js +1 -1
- package/dist/MultiSelectField.js +1 -1
- package/dist/{MultiSelectFieldSync-DGpGgu8q.js → MultiSelectFieldSync-CSOitvtu.js} +5 -5
- package/dist/{MultiSelectFieldSync-DGpGgu8q.js.map → MultiSelectFieldSync-CSOitvtu.js.map} +1 -1
- package/dist/MultiSelectMenu.js +1 -1
- package/dist/{MultiSelectMenuSync-DiLddJDw.js → MultiSelectMenuSync-62OeGmkz.js} +29 -9
- package/dist/MultiSelectMenuSync-62OeGmkz.js.map +1 -0
- package/dist/{NumberField-svhZp1kB.js → NumberField-CHBXBMSj.js} +2 -2
- package/dist/{NumberField-svhZp1kB.js.map → NumberField-CHBXBMSj.js.map} +1 -1
- package/dist/NumberField.js +1 -1
- package/dist/Overflow.css +27 -26
- package/dist/Overflow.js +11 -11
- package/dist/{Page-Be029Dij.js → Page-DtSjnBJL.js} +217 -205
- package/dist/Page-DtSjnBJL.js.map +1 -0
- package/dist/Page.css +78 -76
- package/dist/Page.js +1 -1
- package/dist/{Pagination-BAwqfl_2.js → Pagination-CbBte3GQ.js} +17 -15
- package/dist/Pagination-CbBte3GQ.js.map +1 -0
- package/dist/Pagination.js +1 -1
- package/dist/Popover-CQhLSNYR.js +537 -0
- package/dist/Popover-CQhLSNYR.js.map +1 -0
- package/dist/{Popover-D0qSKZ1J.js → Popover-Rha0q-Pv.js} +354 -354
- package/dist/Popover-Rha0q-Pv.js.map +1 -0
- package/dist/Popover.js +1 -1
- package/dist/{ProgressBar-JpRDW5vG.js → ProgressBar-DEaMqbM-.js} +2 -2
- package/dist/{ProgressBar-JpRDW5vG.js.map → ProgressBar-DEaMqbM-.js.map} +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/{Radio-BQg7exDG.js → Radio-Bw2LDl9G.js} +3 -3
- package/dist/{Radio-BQg7exDG.js.map → Radio-Bw2LDl9G.js.map} +1 -1
- package/dist/Radio-CCvu8mbI.js +60 -0
- package/dist/Radio-CCvu8mbI.js.map +1 -0
- package/dist/Radio.js +1 -1
- package/dist/{SegmentedControl-7fDLhgvh.js → SegmentedControl-BAi4pnFe.js} +79 -75
- package/dist/{SegmentedControl-7fDLhgvh.js.map → SegmentedControl-BAi4pnFe.js.map} +1 -1
- package/dist/SegmentedControl.js +1 -1
- package/dist/SelectCard-ZaAD0wR1.js +325 -0
- package/dist/SelectCard-ZaAD0wR1.js.map +1 -0
- package/dist/SelectCard.js +1 -1
- package/dist/SelectField.js +1 -1
- package/dist/{SelectFieldLabel-Dr8HeW3N.js → SelectFieldLabel-EJCXA02B.js} +2 -2
- package/dist/{SelectFieldLabel-Dr8HeW3N.js.map → SelectFieldLabel-EJCXA02B.js.map} +1 -1
- package/dist/{SelectFieldSync-CJ2Ie_v1.js → SelectFieldSync-DA54WXOk.js} +4 -4
- package/dist/{SelectFieldSync-CJ2Ie_v1.js.map → SelectFieldSync-DA54WXOk.js.map} +1 -1
- package/dist/SelectMenu.js +1 -1
- package/dist/{SelectMenuSync-CJA_coqD.js → SelectMenuSync-BQaSTcaN.js} +29 -9
- package/dist/SelectMenuSync-BQaSTcaN.js.map +1 -0
- package/dist/{SelectOptions-Bf4xsFek.js → SelectOptions-D-DzWmKE.js} +2 -2
- package/dist/{SelectOptions-Bf4xsFek.js.map → SelectOptions-D-DzWmKE.js.map} +1 -1
- package/dist/{SelectTrigger-ObsnAKNp.js → SelectTrigger-DWyRndmY.js} +3 -3
- package/dist/{SelectTrigger-ObsnAKNp.js.map → SelectTrigger-DWyRndmY.js.map} +1 -1
- package/dist/SelectTrigger.js +1 -1
- package/dist/{SelectTriggerBase-DKfOL2RJ.js → SelectTriggerBase-B6aZd2a6.js} +3 -3
- package/dist/{SelectTriggerBase-DKfOL2RJ.js.map → SelectTriggerBase-B6aZd2a6.js.map} +1 -1
- package/dist/{SideNav-KksbSQn7.js → SideNav-CxHemV3H.js} +127 -125
- package/dist/{SideNav-KksbSQn7.js.map → SideNav-CxHemV3H.js.map} +1 -1
- package/dist/SideNav.js +1 -1
- package/dist/{Stepper-Dt8_ImvJ.js → Stepper-CQUXV6P4.js} +156 -156
- package/dist/{Stepper-Dt8_ImvJ.js.map → Stepper-CQUXV6P4.js.map} +1 -1
- package/dist/Stepper.js +1 -1
- package/dist/{Tab-DO7LaUbw.js → Tab-BGGNcz9S.js} +225 -221
- package/dist/Tab-BGGNcz9S.js.map +1 -0
- package/dist/Tab.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/{TextField-BW8sJAls.js → TextField-CMv9CpBq.js} +2 -2
- package/dist/{TextField-BW8sJAls.js.map → TextField-CMv9CpBq.js.map} +1 -1
- package/dist/{TextField-DeHpgPag.js → TextField-o8zvVFDk.js} +2 -2
- package/dist/{TextField-DeHpgPag.js.map → TextField-o8zvVFDk.js.map} +1 -1
- package/dist/TextField.js +1 -1
- package/dist/{Textarea-DyqdMTvQ.js → Textarea-B4bBvO8c.js} +2 -2
- package/dist/{Textarea-DyqdMTvQ.js.map → Textarea-B4bBvO8c.js.map} +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/{TimeField-Dc0Y1JD-.js → TimeField-BEgnjk4R.js} +4 -4
- package/dist/{TimeField-Dc0Y1JD-.js.map → TimeField-BEgnjk4R.js.map} +1 -1
- package/dist/TimeField.js +1 -1
- package/dist/Toast.js +2 -2
- package/dist/{Toaster-b0-Ub3yt.js → Toaster-6_LVKok2.js} +2 -2
- package/dist/{Toaster-b0-Ub3yt.js.map → Toaster-6_LVKok2.js.map} +1 -1
- package/dist/{Toaster-DikGo_hR.js → Toaster-B38WlKC7.js} +2 -2
- package/dist/{Toaster-DikGo_hR.js.map → Toaster-B38WlKC7.js.map} +1 -1
- package/dist/{Toolbar-DAuz4Gs2.js → Toolbar-0EKhrvZN.js} +148 -147
- package/dist/{Toolbar-DAuz4Gs2.js.map → Toolbar-0EKhrvZN.js.map} +1 -1
- package/dist/Toolbar.js +1 -1
- package/dist/{Tooltip-Bupqao9B.js → Tooltip-BHwSTwsv.js} +224 -226
- package/dist/Tooltip-BHwSTwsv.js.map +1 -0
- package/dist/Tooltip.js +1 -1
- package/dist/{YearlessDateInputWithPicker-DFi08TLG.js → YearlessDateInputWithPicker-BC4lRuny.js} +3 -3
- package/dist/{YearlessDateInputWithPicker-DFi08TLG.js.map → YearlessDateInputWithPicker-BC4lRuny.js.map} +1 -1
- package/dist/beta/components/MultiSelectMenu/types.d.ts +15 -0
- package/dist/beta/components/SelectMenu/internal/useMenuInteraction.d.ts +3 -1
- package/dist/beta/components/SelectMenu/types.d.ts +15 -0
- package/dist/beta/components/Table/DataTable/DataTable.d.ts +2 -15
- package/dist/beta/components/Table/DataTable/internal/editable-cells/DataTableEditableMultiselectAsyncCell.d.ts +35 -0
- package/dist/beta/components/Table/DataTable/internal/editable-cells/DataTableEditableMultiselectCell.d.ts +4 -3
- package/dist/beta/components/Table/DataTable/internal/editable-cells/DataTableEditableSelectAsyncCell.d.ts +7 -0
- package/dist/beta/components/Table/DataTable/internal/editable-cells/useEditableMenuCell.d.ts +34 -0
- package/dist/beta/components/Table/DataTable/internal/util/getTanStackColumnDef.d.ts +2 -4
- package/dist/beta/components/Table/DataTable/types.d.ts +18 -1
- package/dist/beta/components/Table/createColumnHelper.d.ts +23 -68
- package/dist/beta/components/Table/types.d.ts +218 -42
- package/dist/beta/components/Toolbar/Toolbar.d.ts +168 -41
- package/dist/beta.js +9 -9
- package/dist/components/Avatar/Avatar.d.ts +14 -0
- package/dist/components/Calendar/Calendar.d.ts +84 -26
- package/dist/components/Combobox/Combobox.d.ts +172 -1
- package/dist/components/Dialog/Dialog.d.ts +96 -28
- package/dist/components/DrillDown/DrillDown.d.ts +7 -1
- package/dist/components/Layout/Layout.d.ts +52 -44
- package/dist/components/ListView/ListView.d.ts +5 -5
- package/dist/components/Listbox/Listbox.d.ts +5 -23
- package/dist/components/Menu/Menu.d.ts +1 -4
- package/dist/components/Toolbar/Toolbar.d.ts +3 -1
- package/dist/{floating-ui.react-C_s3_nEb.js → floating-ui.react-aKYfs-aw.js} +2 -2
- package/dist/{floating-ui.react-C_s3_nEb.js.map → floating-ui.react-aKYfs-aw.js.map} +1 -1
- package/dist/{index.esm-BZV0wNKZ.js → index.esm-K9kxJhLx.js} +2 -1
- package/dist/{index.esm-BZV0wNKZ.js.map → index.esm-K9kxJhLx.js.map} +1 -1
- package/dist/index.js +126 -126
- package/dist/index.js.map +1 -1
- package/dist/{syncFilterUtils-vt8ldsES.js → syncFilterUtils-B03Pc941.js} +191 -191
- package/dist/{syncFilterUtils-vt8ldsES.js.map → syncFilterUtils-B03Pc941.js.map} +1 -1
- package/dist/{useDrilldown-wwXRpNgb.js → useDrilldown-BW2XkUcK.js} +41 -39
- package/dist/{useDrilldown-wwXRpNgb.js.map → useDrilldown-BW2XkUcK.js.map} +1 -1
- package/dist/{useInitialFocus-CdoVwSbr.js → useInitialFocus-BRRbylek.js} +2 -2
- package/dist/{useInitialFocus-CdoVwSbr.js.map → useInitialFocus-BRRbylek.js.map} +1 -1
- package/dist/{useMenuInteraction-zR_78KQC.js → useMenuInteraction-BwZ2ORo9.js} +8 -3
- package/dist/useMenuInteraction-BwZ2ORo9.js.map +1 -0
- package/dist/{useToggleSelection-BdXW3Zg3.js → useToggleSelection-Dip0eimQ.js} +2 -2
- package/dist/{useToggleSelection-BdXW3Zg3.js.map → useToggleSelection-Dip0eimQ.js.map} +1 -1
- package/package.json +3 -3
- package/dist/Avatar--CnTAnfD.js +0 -35
- package/dist/Avatar--CnTAnfD.js.map +0 -1
- package/dist/Breadcrumbs-3Y7jnj-F.js +0 -105
- package/dist/Breadcrumbs-3Y7jnj-F.js.map +0 -1
- package/dist/Calendar-SGlTt-bs.js.map +0 -1
- package/dist/Checkbox-CjEKa5Iv.js +0 -50
- package/dist/Checkbox-CjEKa5Iv.js.map +0 -1
- package/dist/DataTable-BYOS6icI.js.map +0 -1
- package/dist/DateFieldRange-C8Uzrboc.js.map +0 -1
- package/dist/Details-Dxq_v3Qg.js.map +0 -1
- package/dist/Dialog-CGhwkwvq.js.map +0 -1
- package/dist/Drawer-DA4iAgt-.js.map +0 -1
- package/dist/Grid-ONcUpb__.js +0 -147
- package/dist/Grid-ONcUpb__.js.map +0 -1
- package/dist/Layout-VfhlilMG.js.map +0 -1
- package/dist/List-CJZjElAQ.js +0 -101
- package/dist/List-CJZjElAQ.js.map +0 -1
- package/dist/ListView-mujFK6mQ.js.map +0 -1
- package/dist/Listbox-BtAgBDRS.js.map +0 -1
- package/dist/Menu-BXsmCP20.js.map +0 -1
- package/dist/MultiSelectMenuSync-DiLddJDw.js.map +0 -1
- package/dist/Page-Be029Dij.js.map +0 -1
- package/dist/Pagination-BAwqfl_2.js.map +0 -1
- package/dist/Popover-D0qSKZ1J.js.map +0 -1
- package/dist/Popover-DxZF6lbJ.js +0 -535
- package/dist/Popover-DxZF6lbJ.js.map +0 -1
- package/dist/Radio-BOq9UkpC.js +0 -60
- package/dist/Radio-BOq9UkpC.js.map +0 -1
- package/dist/SelectCard-cu4MBuh8.js +0 -320
- package/dist/SelectCard-cu4MBuh8.js.map +0 -1
- package/dist/SelectMenuSync-CJA_coqD.js.map +0 -1
- package/dist/Tab-DO7LaUbw.js.map +0 -1
- package/dist/Tooltip-Bupqao9B.js.map +0 -1
- package/dist/useMenuInteraction-zR_78KQC.js.map +0 -1
|
@@ -57,7 +57,7 @@ export type ToolbarProps = ComponentPropsWithoutRef<"div"> & LayoutUtilProps & {
|
|
|
57
57
|
* />
|
|
58
58
|
* </Toolbar>
|
|
59
59
|
*/
|
|
60
|
-
export declare const
|
|
60
|
+
export declare const Toolbar: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & LayoutUtilProps & {
|
|
61
61
|
/**
|
|
62
62
|
* Description of the content this toolbar is associated with, used for accessibility
|
|
63
63
|
*/
|
|
@@ -81,46 +81,173 @@ export declare const ToolbarElement: import('react').ForwardRefExoticComponent<O
|
|
|
81
81
|
* @default xsmall
|
|
82
82
|
*/
|
|
83
83
|
size?: ToolbarSize;
|
|
84
|
-
} & import('react').RefAttributes<HTMLDivElement
|
|
85
|
-
/**
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
84
|
+
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
85
|
+
/**
|
|
86
|
+
* ToolbarButton component for standard clickable actions within a toolbar with anvil2 tracking.
|
|
87
|
+
*
|
|
88
|
+
* Features:
|
|
89
|
+
* - Designed specifically for toolbar integration
|
|
90
|
+
* - Consistent styling with other toolbar items
|
|
91
|
+
* - Automatic tooltip for icon-only buttons
|
|
92
|
+
* - Overflow menu support
|
|
93
|
+
* - Accessibility enforcement for aria-labels
|
|
94
|
+
* - Ghost and primary appearance options
|
|
95
|
+
* - Automatic tracking ID generation for analytics
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* <Toolbar.Button icon={BoldIcon} aria-label="Bold text" />
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* <Toolbar.Button appearance="primary">
|
|
102
|
+
* Save
|
|
103
|
+
* </Toolbar.Button>
|
|
104
|
+
*/
|
|
105
|
+
Button: import('react').ForwardRefExoticComponent<import('./ToolbarButton').ToolbarButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
106
|
+
/**
|
|
107
|
+
* ToolbarButtonToggle component for toggleable actions within a toolbar with anvil2 tracking.
|
|
108
|
+
*
|
|
109
|
+
* Features:
|
|
110
|
+
* - Toggle state management
|
|
111
|
+
* - Designed specifically for toolbar integration
|
|
112
|
+
* - Consistent styling with other toolbar items
|
|
113
|
+
* - Overflow menu support
|
|
114
|
+
* - Accessibility enforcement for aria-labels
|
|
115
|
+
* - Ghost and primary appearance options
|
|
116
|
+
* - Automatic tracking ID generation for analytics
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* <Toolbar.ButtonToggle icon={BoldIcon} aria-label="Bold" checked={isBold} />
|
|
120
|
+
*/
|
|
121
|
+
ButtonToggle: import('react').ForwardRefExoticComponent<import('./ToolbarButtonToggle').ToolbarButtonToggleProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
122
|
+
/**
|
|
123
|
+
* ToolbarButtonLink component for link actions within a toolbar with anvil2 tracking.
|
|
124
|
+
*
|
|
125
|
+
* Features:
|
|
126
|
+
* - Link functionality with href support
|
|
127
|
+
* - Designed specifically for toolbar integration
|
|
128
|
+
* - Consistent styling with other toolbar items
|
|
129
|
+
* - Overflow menu support
|
|
130
|
+
* - Accessibility enforcement for aria-labels
|
|
131
|
+
* - Ghost and primary appearance options
|
|
132
|
+
* - Automatic tracking ID generation for analytics
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* <Toolbar.ButtonLink href="/help">
|
|
136
|
+
* Help
|
|
137
|
+
* </Toolbar.ButtonLink>
|
|
138
|
+
*/
|
|
139
|
+
ButtonLink: import('react').ForwardRefExoticComponent<import('./ToolbarButtonLink').ToolbarButtonLinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
140
|
+
/**
|
|
141
|
+
* ToolbarSelect component provides a dropdown selector within a toolbar with anvil2 tracking.
|
|
142
|
+
*
|
|
143
|
+
* Features:
|
|
144
|
+
* - Dropdown menu with selectable options
|
|
145
|
+
* - Controlled and uncontrolled usage patterns
|
|
146
|
+
* - Automatic overflow menu integration
|
|
147
|
+
* - Accessibility support with proper ARIA labels
|
|
148
|
+
* - Ghost and primary appearance options
|
|
149
|
+
* - Dropdown arrow icon indicator
|
|
150
|
+
* - Listbox integration for keyboard navigation
|
|
151
|
+
* - Automatic tracking ID generation for analytics
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* <Toolbar.Select
|
|
155
|
+
* items={fontOptions}
|
|
156
|
+
* selected="arial"
|
|
157
|
+
* accessibleLabel="Font family"
|
|
158
|
+
* onChange={(id) => setFont(id)}
|
|
159
|
+
* />
|
|
160
|
+
*/
|
|
161
|
+
Select: import('react').ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "children"> & LayoutUtilProps & {
|
|
162
|
+
appearance?: import('../../..').ButtonAppearance;
|
|
163
|
+
size?: Extract<import('../../..').Size, "xsmall" | "small" | "medium" | "large">;
|
|
164
|
+
loading?: boolean;
|
|
165
|
+
} & {
|
|
166
|
+
children?: ComponentPropsWithoutRef<"button">["children"];
|
|
167
|
+
icon?: import('../../..').IconProps["svg"] | {
|
|
168
|
+
after: import('../../..').IconProps["svg"];
|
|
169
|
+
} | {
|
|
170
|
+
before: import('../../..').IconProps["svg"];
|
|
171
|
+
};
|
|
172
|
+
} & import('../../..').DataTrackingId & import('react').RefAttributes<HTMLButtonElement>, "ref"> | Omit<Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "children"> & LayoutUtilProps & {
|
|
173
|
+
appearance?: import('../../..').ButtonAppearance;
|
|
174
|
+
size?: Extract<import('../../..').Size, "xsmall" | "small" | "medium" | "large">;
|
|
175
|
+
loading?: boolean;
|
|
176
|
+
} & {
|
|
177
|
+
children?: never;
|
|
178
|
+
icon?: import('../../..').IconProps["svg"];
|
|
179
|
+
} & import('../../..').DataTrackingId & import('react').RefAttributes<HTMLButtonElement>, "ref">, "onChange" | "appearance"> & {
|
|
180
|
+
appearance?: import('./types').ToolbarItemAppearance;
|
|
181
|
+
onChange?: (optionId: string) => void;
|
|
182
|
+
selected?: string;
|
|
183
|
+
items: (Record<string, unknown> & {
|
|
184
|
+
id: string;
|
|
185
|
+
} & {
|
|
186
|
+
label: string;
|
|
187
|
+
disabled?: boolean;
|
|
188
|
+
})[];
|
|
189
|
+
accessibleLabel: string;
|
|
190
|
+
} & import('../../..').DataTrackingId & import('react').RefAttributes<HTMLButtonElement>>;
|
|
191
|
+
/**
|
|
192
|
+
* FilterGroup component displays a group of filters with toggles and a clear button.
|
|
193
|
+
* Also contains the FilterDrawer for additional filter options.
|
|
194
|
+
*
|
|
195
|
+
* Features:
|
|
196
|
+
* - Renders filter toggles and popovers for all filter types
|
|
197
|
+
* - Supports controlled and uncontrolled filtering
|
|
198
|
+
* - Integrates with FilterDrawer for batch filter editing
|
|
199
|
+
* - Provides a clear all filters button
|
|
200
|
+
* - Handles overflow and hidden filters
|
|
201
|
+
* - Shares filter state via context for child components
|
|
202
|
+
* - Supports boolean, custom, single-select, multi-select, date, and date range filter types
|
|
203
|
+
* - Date filters include calendar popup for easy selection
|
|
204
|
+
* - Date range filters support start and end date selection
|
|
205
|
+
*
|
|
206
|
+
* @example
|
|
207
|
+
* <Toolbar.Filters
|
|
208
|
+
* filters={filters}
|
|
209
|
+
* onFilterChange={handleFilter}
|
|
210
|
+
* controlledFiltering={true}
|
|
211
|
+
* />
|
|
212
|
+
*/
|
|
213
|
+
Filters: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & LayoutUtilProps & {
|
|
214
|
+
filters: import('.').Filter[];
|
|
215
|
+
onFilterChange?: (filters: import('.').Filter[]) => void;
|
|
216
|
+
controlledFiltering?: boolean;
|
|
217
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
218
|
+
/**
|
|
219
|
+
* ToolbarControlGroup component provides a flex container for grouping related toolbar controls.
|
|
220
|
+
* Can be used for filters, buttons, or other toolbar items.
|
|
221
|
+
*
|
|
222
|
+
* Features:
|
|
223
|
+
* - Groups related toolbar controls in a flex container
|
|
224
|
+
* - Supports accessibility with aria-label
|
|
225
|
+
* - Handles overflow and wrapping based on toolbar context
|
|
226
|
+
* - Integrates with layout utilities for spacing and alignment
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
* <Toolbar.ControlGroup aria-label="Formatting controls">
|
|
230
|
+
* <Toolbar.Button icon={BoldIcon} aria-label="Bold" />
|
|
231
|
+
* <Toolbar.Button icon={ItalicIcon} aria-label="Italic" />
|
|
232
|
+
* </Toolbar.ControlGroup>
|
|
233
|
+
*/
|
|
234
|
+
ControlGroup: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & LayoutUtilProps & {
|
|
235
|
+
"aria-label"?: string;
|
|
236
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
237
|
+
/**
|
|
238
|
+
* ToolbarSearchField component renders a search field for use in toolbars.
|
|
239
|
+
*
|
|
240
|
+
* Features:
|
|
241
|
+
* - Renders a search field styled for toolbar usage
|
|
242
|
+
* - Supports all SearchField props except size
|
|
243
|
+
* - Integrates with toolbar layouts and accessibility
|
|
244
|
+
*
|
|
245
|
+
* @example
|
|
246
|
+
* <Toolbar.Search placeholder="Search..." />
|
|
247
|
+
*/
|
|
248
|
+
Search: import('react').ForwardRefExoticComponent<import('./ToolbarSearchField').ToolbarSearchFieldProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
249
|
+
};
|
|
250
|
+
export declare const ToolbarElement: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & LayoutUtilProps & {
|
|
124
251
|
/**
|
|
125
252
|
* Description of the content this toolbar is associated with, used for accessibility
|
|
126
253
|
*/
|
package/dist/beta.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
7
|
-
export { S as SelectMenu, a as SelectMenuSync } from './SelectMenuSync-
|
|
8
|
-
export { M as MultiSelectMenu, a as MultiSelectMenuSync } from './MultiSelectMenuSync-
|
|
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-BmVPjMMg.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-0EKhrvZN.js';
|
|
3
|
+
export { u as useCalendarBetaProps } from './Calendar-Frpv5rRY.js';
|
|
4
|
+
export { C as Calendar } from './Calendar-BTStJPV1.js';
|
|
5
|
+
export { S as SelectField, a as SelectFieldSync } from './SelectFieldSync-DA54WXOk.js';
|
|
6
|
+
export { M as MultiSelectField, a as MultiSelectFieldSync } from './MultiSelectFieldSync-CSOitvtu.js';
|
|
7
|
+
export { S as SelectMenu, a as SelectMenuSync } from './SelectMenuSync-BQaSTcaN.js';
|
|
8
|
+
export { M as MultiSelectMenu, a as MultiSelectMenuSync } from './MultiSelectMenuSync-62OeGmkz.js';
|
|
9
9
|
export { I as InteractiveCard } from './InteractiveCard-GTYbR6Xy.js';
|
|
10
|
-
export { u as useAdaptiveView } from './syncFilterUtils-
|
|
10
|
+
export { u as useAdaptiveView } from './syncFilterUtils-B03Pc941.js';
|
|
11
11
|
//# sourceMappingURL=beta.js.map
|
|
@@ -15,6 +15,20 @@ import { DistributiveOmit } from '../../types';
|
|
|
15
15
|
export type AvatarProps = DistributiveOmit<CoreAvatarProps, "size"> & {
|
|
16
16
|
size?: Extract<CoreAvatarProps["size"], "small" | "medium" | "large">;
|
|
17
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* Avatar component for displaying user avatars with initials or images.
|
|
20
|
+
*
|
|
21
|
+
* Features:
|
|
22
|
+
* - Displays user initials when no image is provided
|
|
23
|
+
* - Supports custom colors and sizes
|
|
24
|
+
* - Shows online/offline status
|
|
25
|
+
* - Fully accessible with screen reader support
|
|
26
|
+
* - Automatic image fallback handling
|
|
27
|
+
* - Automatic tracking ID generation for analytics
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* <Avatar name="John Doe" size="medium" status="online" />
|
|
31
|
+
*/
|
|
18
32
|
export declare const Avatar: import('react').ForwardRefExoticComponent<Omit<CoreAvatarProps, "size"> & {
|
|
19
33
|
size?: Extract<CoreAvatarProps["size"], "small" | "medium" | "large">;
|
|
20
34
|
} & import('react').RefAttributes<HTMLSpanElement>> & {
|
|
@@ -142,32 +142,6 @@ export type CalendarProps = LayoutUtilProps & (CalendarSingleProps | CalendarRan
|
|
|
142
142
|
* maxDate="2024-12-31"
|
|
143
143
|
* />
|
|
144
144
|
*/
|
|
145
|
-
export declare const CalendarElement: import('react').ForwardRefExoticComponent<CalendarProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
146
|
-
/**
|
|
147
|
-
* Calendar component for viewing and selecting a date or range of dates.
|
|
148
|
-
*
|
|
149
|
-
* Features:
|
|
150
|
-
* - Single date and date range selection modes
|
|
151
|
-
* - Month and year navigation with header buttons
|
|
152
|
-
* - Configurable start day (Sunday or Monday)
|
|
153
|
-
* - Date range restrictions with min/max dates
|
|
154
|
-
* - Unavailable dates and days of week support
|
|
155
|
-
* - Locale and timezone customization
|
|
156
|
-
* - Full accessibility support with ARIA attributes
|
|
157
|
-
* - Keyboard navigation support
|
|
158
|
-
* - Responsive design with automatic width detection
|
|
159
|
-
* - Month and year selection views
|
|
160
|
-
* - Today button for quick navigation
|
|
161
|
-
* - Data tracking integration for analytics
|
|
162
|
-
*
|
|
163
|
-
* @example
|
|
164
|
-
* <Calendar
|
|
165
|
-
* value="2024-01-15"
|
|
166
|
-
* onSelection={({ value }) => console.log('Selected:', value)}
|
|
167
|
-
* minDate="2024-01-01"
|
|
168
|
-
* maxDate="2024-12-31"
|
|
169
|
-
* />
|
|
170
|
-
*/
|
|
171
145
|
export declare const Calendar: import('react').ForwardRefExoticComponent<CalendarProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
172
146
|
/**
|
|
173
147
|
* Calendar.Now component for navigating to today's date.
|
|
@@ -252,4 +226,88 @@ export declare const Calendar: import('react').ForwardRefExoticComponent<Calenda
|
|
|
252
226
|
*/
|
|
253
227
|
YearButton: import('react').ForwardRefExoticComponent<import('./CalendarYearButton').CalendarYearButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
254
228
|
};
|
|
229
|
+
export declare const CalendarElement: import('react').ForwardRefExoticComponent<CalendarProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
230
|
+
/**
|
|
231
|
+
* Calendar.Now component for navigating to today's date.
|
|
232
|
+
*
|
|
233
|
+
* Features:
|
|
234
|
+
* - Quick navigation to current date
|
|
235
|
+
* - Accessible button with proper ARIA labels
|
|
236
|
+
* - Integrates with calendar context
|
|
237
|
+
* - Data tracking integration for analytics
|
|
238
|
+
*
|
|
239
|
+
* @example
|
|
240
|
+
* <Calendar.Now />
|
|
241
|
+
*/
|
|
242
|
+
Now: import('react').ForwardRefExoticComponent<{
|
|
243
|
+
onClick?: (e: import('react').MouseEvent<HTMLButtonElement>, date: string | null) => void;
|
|
244
|
+
onClickFixed?: import('react').MouseEventHandler<HTMLButtonElement> | undefined;
|
|
245
|
+
} & Omit<import('..').ButtonProps, "onClick"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
246
|
+
/**
|
|
247
|
+
* Calendar.Month component for displaying the month grid.
|
|
248
|
+
*
|
|
249
|
+
* Features:
|
|
250
|
+
* - Displays calendar days in a table format
|
|
251
|
+
* - Handles day selection and navigation
|
|
252
|
+
* - Supports range selection mode
|
|
253
|
+
* - Accessible with proper ARIA attributes
|
|
254
|
+
* - Data tracking integration for analytics
|
|
255
|
+
*
|
|
256
|
+
* @example
|
|
257
|
+
* <Calendar.Month />
|
|
258
|
+
*/
|
|
259
|
+
Month: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & import('react').RefAttributes<HTMLTableElement>>;
|
|
260
|
+
/**
|
|
261
|
+
* Calendar.Next component for navigating to the next month.
|
|
262
|
+
*
|
|
263
|
+
* Features:
|
|
264
|
+
* - Navigation to next month
|
|
265
|
+
* - Accessible button with proper ARIA labels
|
|
266
|
+
* - Integrates with calendar context
|
|
267
|
+
* - Data tracking integration for analytics
|
|
268
|
+
*
|
|
269
|
+
* @example
|
|
270
|
+
* <Calendar.Next />
|
|
271
|
+
*/
|
|
272
|
+
Next: import('react').ForwardRefExoticComponent<import('..').ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
273
|
+
/**
|
|
274
|
+
* Calendar.Prev component for navigating to the previous month.
|
|
275
|
+
*
|
|
276
|
+
* Features:
|
|
277
|
+
* - Navigation to previous month
|
|
278
|
+
* - Accessible button with proper ARIA labels
|
|
279
|
+
* - Integrates with calendar context
|
|
280
|
+
* - Data tracking integration for analytics
|
|
281
|
+
*
|
|
282
|
+
* @example
|
|
283
|
+
* <Calendar.Prev />
|
|
284
|
+
*/
|
|
285
|
+
Prev: import('react').ForwardRefExoticComponent<import('..').ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
286
|
+
/**
|
|
287
|
+
* Calendar.MonthButton component for switching to month selection view.
|
|
288
|
+
*
|
|
289
|
+
* Features:
|
|
290
|
+
* - Switches calendar to month selection mode
|
|
291
|
+
* - Accessible button with proper ARIA labels
|
|
292
|
+
* - Integrates with calendar context
|
|
293
|
+
* - Data tracking integration for analytics
|
|
294
|
+
*
|
|
295
|
+
* @example
|
|
296
|
+
* <Calendar.MonthButton />
|
|
297
|
+
*/
|
|
298
|
+
MonthButton: import('react').ForwardRefExoticComponent<import('./CalendarMonthButton').CalendarMonthButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
299
|
+
/**
|
|
300
|
+
* Calendar.YearButton component for switching to year selection view.
|
|
301
|
+
*
|
|
302
|
+
* Features:
|
|
303
|
+
* - Switches calendar to year selection mode
|
|
304
|
+
* - Accessible button with proper ARIA labels
|
|
305
|
+
* - Integrates with calendar context
|
|
306
|
+
* - Data tracking integration for analytics
|
|
307
|
+
*
|
|
308
|
+
* @example
|
|
309
|
+
* <Calendar.YearButton />
|
|
310
|
+
*/
|
|
311
|
+
YearButton: import('react').ForwardRefExoticComponent<import('./CalendarYearButton').CalendarYearButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
312
|
+
};
|
|
255
313
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComboboxProps } from './ComboboxTypes';
|
|
2
|
-
export declare const ComboboxElement: <Item>(props: ComboboxProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
|
3
2
|
/**
|
|
4
3
|
* Combobox component for selecting items with search and filtering capabilities.
|
|
5
4
|
*
|
|
@@ -209,3 +208,175 @@ export declare const Combobox: (<Item>(props: ComboboxProps<Item>) => import("re
|
|
|
209
208
|
*/
|
|
210
209
|
Empty: <Item = any>({ children, }: import('./ComboboxEmpty').ComboboxEmptyProps) => import("react/jsx-runtime").JSX.Element;
|
|
211
210
|
};
|
|
211
|
+
export declare const ComboboxElement: (<Item>(props: ComboboxProps<Item>) => import("react/jsx-runtime").JSX.Element) & {
|
|
212
|
+
/**
|
|
213
|
+
* ComboboxSelect component for selecting items from a predefined list.
|
|
214
|
+
*
|
|
215
|
+
* Features:
|
|
216
|
+
* - Single and multiple item selection from predefined options
|
|
217
|
+
* - Dropdown-style selection interface
|
|
218
|
+
* - Grouping support with custom group labels and sorting
|
|
219
|
+
* - Loading states with spinner indicators
|
|
220
|
+
* - Disabled and read-only states
|
|
221
|
+
* - Customizable popover behavior and positioning
|
|
222
|
+
* - Full accessibility support with ARIA attributes
|
|
223
|
+
* - Keyboard navigation support
|
|
224
|
+
* - Layout utility props for positioning and spacing
|
|
225
|
+
* - Automatic tracking ID generation for analytics
|
|
226
|
+
*
|
|
227
|
+
* @example
|
|
228
|
+
* <Combobox.Select
|
|
229
|
+
* items={items}
|
|
230
|
+
* itemToString={(item) => item.name}
|
|
231
|
+
* onChange={setSelectedItem}
|
|
232
|
+
* >
|
|
233
|
+
* <Combobox.SelectTrigger label="Select an item" />
|
|
234
|
+
* <Combobox.Content>
|
|
235
|
+
* {({ items }) => (
|
|
236
|
+
* <Combobox.List>
|
|
237
|
+
* {items.map((item, i) => (
|
|
238
|
+
* <Combobox.Item key={item.id} item={item} index={i}>
|
|
239
|
+
* {item.name}
|
|
240
|
+
* </Combobox.Item>
|
|
241
|
+
* ))}
|
|
242
|
+
* </Combobox.List>
|
|
243
|
+
* )}
|
|
244
|
+
* </Combobox.Content>
|
|
245
|
+
* </Combobox.Select>
|
|
246
|
+
*/
|
|
247
|
+
Select: <Item>(props: import('./ComboboxTypes').ComboboxSelectProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
|
248
|
+
/**
|
|
249
|
+
* ComboboxSearchField component for the search input field.
|
|
250
|
+
*
|
|
251
|
+
* Features:
|
|
252
|
+
* - Search input with clear button functionality
|
|
253
|
+
* - Supports multiple selection with chip display
|
|
254
|
+
* - Handles keyboard navigation and accessibility
|
|
255
|
+
* - Integrates with combobox state management
|
|
256
|
+
* - Supports custom styling and layout
|
|
257
|
+
* - Manages focus and blur events
|
|
258
|
+
* - Enhanced prefix support for icons and avatars
|
|
259
|
+
* - Automatic tracking ID generation for analytics
|
|
260
|
+
*
|
|
261
|
+
* @example
|
|
262
|
+
* <Combobox.SearchField
|
|
263
|
+
* label="Search users"
|
|
264
|
+
* placeholder="Type to search..."
|
|
265
|
+
* prefix={{ icon: { svg: SearchIcon } }}
|
|
266
|
+
* />
|
|
267
|
+
*/
|
|
268
|
+
SearchField: ({ prefix: prefixProp, ...props }: import('./ComboboxTypes').ComboboxSearchFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
269
|
+
/**
|
|
270
|
+
* ComboboxSelectTrigger component for the select trigger field.
|
|
271
|
+
*
|
|
272
|
+
* Features:
|
|
273
|
+
* - Select input with dropdown trigger
|
|
274
|
+
* - Supports single selection display
|
|
275
|
+
* - Handles keyboard navigation and accessibility
|
|
276
|
+
* - Integrates with combobox state management
|
|
277
|
+
* - Supports custom styling and layout
|
|
278
|
+
* - Manages focus and blur events
|
|
279
|
+
* - Enhanced prefix support for icons and avatars
|
|
280
|
+
* - Automatic tracking ID generation for analytics
|
|
281
|
+
*
|
|
282
|
+
* @example
|
|
283
|
+
* <Combobox.SelectTrigger
|
|
284
|
+
* label="Select user"
|
|
285
|
+
* placeholder="Choose a user..."
|
|
286
|
+
* prefix={{ avatar: { name: "User" } }}
|
|
287
|
+
* />
|
|
288
|
+
*/
|
|
289
|
+
SelectTrigger: ({ prefix: prefixProp, ...props }: import('./ComboboxTypes').ComboboxSelectTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
290
|
+
/**
|
|
291
|
+
* ComboboxContent component for rendering the content area of a combobox.
|
|
292
|
+
*
|
|
293
|
+
* Features:
|
|
294
|
+
* - Supports both popover and inline rendering modes
|
|
295
|
+
* - Provides render props pattern for flexible content rendering
|
|
296
|
+
* - Handles grouped items with proper ARIA labels
|
|
297
|
+
* - Integrates with combobox state management
|
|
298
|
+
* - Supports custom styling and layout
|
|
299
|
+
* - Manages focus and blur events for popover behavior
|
|
300
|
+
*
|
|
301
|
+
* @example
|
|
302
|
+
* <Combobox.Content>
|
|
303
|
+
* {({ items }) => (
|
|
304
|
+
* <Combobox.List>
|
|
305
|
+
* {items.map((item, index) => (
|
|
306
|
+
* <Combobox.Item key={item.id} item={item} index={index}>
|
|
307
|
+
* {item.name}
|
|
308
|
+
* </Combobox.Item>
|
|
309
|
+
* ))}
|
|
310
|
+
* </Combobox.List>
|
|
311
|
+
* )}
|
|
312
|
+
* </Combobox.Content>
|
|
313
|
+
*/
|
|
314
|
+
Content: <Item = any>({ children, className, disablePopover, ...rest }: import('./ComboboxContent').ComboboxContentProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
|
315
|
+
/**
|
|
316
|
+
* ComboboxList component for rendering the list of items.
|
|
317
|
+
*
|
|
318
|
+
* Features:
|
|
319
|
+
* - Renders list of items with proper accessibility
|
|
320
|
+
* - Supports both single and multiple selection modes
|
|
321
|
+
* - Loading state with spinner
|
|
322
|
+
* - Empty state handling
|
|
323
|
+
* - Automatic tracking ID generation for analytics
|
|
324
|
+
*
|
|
325
|
+
* @example
|
|
326
|
+
* <Combobox.List>
|
|
327
|
+
* {items.map((item, i) => (
|
|
328
|
+
* <Combobox.Item key={item.id} item={item} index={i}>
|
|
329
|
+
* {item.name}
|
|
330
|
+
* </Combobox.Item>
|
|
331
|
+
* ))}
|
|
332
|
+
* </Combobox.List>
|
|
333
|
+
*/
|
|
334
|
+
List: <Item = any>({ children, className, ...rest }: import('./ComboboxList').ComboboxListProps) => import("react/jsx-runtime").JSX.Element;
|
|
335
|
+
/**
|
|
336
|
+
* ComboboxItem component for rendering individual items in the list.
|
|
337
|
+
*
|
|
338
|
+
* Features:
|
|
339
|
+
* - Individual item rendering with proper accessibility
|
|
340
|
+
* - Support for disabled state
|
|
341
|
+
* - Custom content rendering
|
|
342
|
+
* - Automatic tracking ID generation for analytics
|
|
343
|
+
*
|
|
344
|
+
* @example
|
|
345
|
+
* <Combobox.Item item={item} index={index}>
|
|
346
|
+
* <Flex direction="column">
|
|
347
|
+
* <Text>{item.name}</Text>
|
|
348
|
+
* <Text size="small" subdued>{item.description}</Text>
|
|
349
|
+
* </Flex>
|
|
350
|
+
* </Combobox.Item>
|
|
351
|
+
*/
|
|
352
|
+
Item: <Item = any>(props: import('./ComboboxTypes').ComboboxItemProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
|
353
|
+
/**
|
|
354
|
+
* ComboboxItemAddNew component for rendering an "Add New" option.
|
|
355
|
+
*
|
|
356
|
+
* Features:
|
|
357
|
+
* - "Add New" option that appears when no exact match is found
|
|
358
|
+
* - Customizable content rendering
|
|
359
|
+
* - Callback when selected
|
|
360
|
+
* - Automatic tracking ID generation for analytics
|
|
361
|
+
*
|
|
362
|
+
* @example
|
|
363
|
+
* <Combobox.ItemAddNew onSelection={(inputValue) => addNewItem(inputValue)}>
|
|
364
|
+
* Add "{inputValue}" as new item
|
|
365
|
+
* </Combobox.ItemAddNew>
|
|
366
|
+
*/
|
|
367
|
+
ItemAddNew: <Item = any>(props: import('./ComboboxTypes').ComboboxItemAddNewProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
|
368
|
+
/**
|
|
369
|
+
* ComboboxEmpty component for rendering content when no items are available.
|
|
370
|
+
*
|
|
371
|
+
* Features:
|
|
372
|
+
* - Renders content when list is empty
|
|
373
|
+
* - Customizable empty state message
|
|
374
|
+
* - Automatic tracking ID generation for analytics
|
|
375
|
+
*
|
|
376
|
+
* @example
|
|
377
|
+
* <Combobox.Empty>
|
|
378
|
+
* <Text>No items found. Try adjusting your search.</Text>
|
|
379
|
+
* </Combobox.Empty>
|
|
380
|
+
*/
|
|
381
|
+
Empty: <Item = any>({ children, }: import('./ComboboxEmpty').ComboboxEmptyProps) => import("react/jsx-runtime").JSX.Element;
|
|
382
|
+
};
|