@easypost/easy-ui 1.0.0-alpha.65 → 1.0.0-alpha.67
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/Badge/index.js +14 -14
- package/Badge/index.mjs +14 -14
- package/Banner/index.js +5 -5
- package/Banner/index.mjs +5 -5
- package/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/CHANGELOG.md +13 -0
- package/Calendar/index.js +1 -1
- package/Calendar/index.mjs +1 -1
- package/Card/index.js +1 -1
- package/Card/index.mjs +1 -1
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +13 -13
- package/CodeBlock/index.mjs +13 -13
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/DataGrid/index.js +57 -57
- package/DataGrid/index.mjs +58 -58
- package/DatePicker/index.js +3 -3
- package/DatePicker/index.mjs +5 -5
- package/DateRangePicker/index.js +3 -3
- package/DateRangePicker/index.mjs +5 -5
- package/Drawer/index.js +18 -18
- package/Drawer/index.mjs +22 -22
- package/DropdownButton/index.js +12 -12
- package/DropdownButton/index.mjs +12 -12
- package/EmptyStateCard/index.js +8 -8
- package/EmptyStateCard/index.mjs +8 -8
- package/FocusedProductLayout/index.js +23 -23
- package/FocusedProductLayout/index.mjs +23 -23
- package/ForgeLayout/index.js +41 -231
- package/ForgeLayout/index.mjs +40 -230
- package/FormLayout/index.js +5 -5
- package/FormLayout/index.mjs +5 -5
- package/HorizontalGrid/index.js +1 -1
- package/HorizontalGrid/index.mjs +1 -1
- package/HorizontalStack/index.js +1 -1
- package/HorizontalStack/index.mjs +1 -1
- package/Icon/index.js +1 -1
- package/Icon/index.mjs +1 -1
- package/IconButton/index.js +12 -12
- package/IconButton/index.mjs +12 -12
- package/InputField/index.js +1 -1
- package/InputField/index.mjs +1 -1
- package/KebabButton/index.js +1 -1
- package/KebabButton/index.mjs +1 -1
- package/Menu/MenuOverlay.d.ts.map +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Menu/utilities.d.ts +3 -0
- package/Menu/utilities.d.ts.map +1 -1
- package/Modal/index.js +19 -19
- package/Modal/index.mjs +23 -23
- package/MultiSelect/MultiSelect.d.ts +123 -0
- package/MultiSelect/MultiSelect.d.ts.map +1 -0
- package/MultiSelect/MultiSelect.stories.d.ts +11 -0
- package/MultiSelect/MultiSelect.stories.d.ts.map +1 -0
- package/MultiSelect/MultiSelect.test.d.ts +2 -0
- package/MultiSelect/MultiSelect.test.d.ts.map +1 -0
- package/MultiSelect/MultiSelectDropdown.d.ts +22 -0
- package/MultiSelect/MultiSelectDropdown.d.ts.map +1 -0
- package/MultiSelect/index.d.ts +2 -0
- package/MultiSelect/index.d.ts.map +1 -0
- package/MultiSelect/index.js +1989 -0
- package/MultiSelect/index.mjs +1974 -0
- package/MultiSelect/utilities.d.ts +3 -0
- package/MultiSelect/utilities.d.ts.map +1 -0
- package/NexusLayout/index.js +28 -28
- package/NexusLayout/index.mjs +28 -28
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +7 -7
- package/Pagination/index.mjs +7 -7
- package/PillGroup/index.js +3 -1681
- package/PillGroup/index.mjs +3 -1681
- package/ProductLayout/index.js +21 -21
- package/ProductLayout/index.mjs +25 -25
- package/Provider/index.js +1 -1
- package/Provider/index.mjs +1 -1
- package/RadioButtonGroup/index.js +3 -3
- package/RadioButtonGroup/index.mjs +3 -3
- package/RadioGroup/index.js +1 -1
- package/RadioGroup/index.mjs +1 -1
- package/RangeCalendar/index.js +1 -1
- package/RangeCalendar/index.mjs +1 -1
- package/SearchNav/index.js +29 -29
- package/SearchNav/index.mjs +29 -29
- package/SectionCard/index.js +7 -7
- package/SectionCard/index.mjs +7 -7
- package/Select/index.js +5 -5
- package/Select/index.mjs +5 -5
- package/SelectorErrorTooltip/index.js +1 -1
- package/SelectorErrorTooltip/index.mjs +1 -1
- package/Spinner/index.js +1 -1
- package/Spinner/index.mjs +1 -1
- package/SplitToggleCard/index.js +4 -4
- package/SplitToggleCard/index.mjs +4 -4
- package/Stepper/index.js +1 -1
- package/Stepper/index.mjs +1 -1
- package/TabNav/index.js +1 -1
- package/TabNav/index.mjs +1 -1
- package/TabPanels/index.js +1 -1
- package/TabPanels/index.mjs +2 -2
- package/Tabs/index.js +1 -1
- package/Tabs/index.mjs +1 -1
- package/Text/index.js +1 -1
- package/Text/index.mjs +1 -1
- package/TextField/index.js +1 -1
- package/TextField/index.mjs +1 -1
- package/Textarea/index.js +1 -1
- package/Textarea/index.mjs +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/ToggleCard/index.js +2 -2
- package/ToggleCard/index.mjs +2 -2
- package/Tooltip/index.js +1 -1
- package/Tooltip/index.mjs +1 -1
- package/VerticalNav/index.js +24 -24
- package/VerticalNav/index.mjs +24 -24
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/{Button-lb6KY-VK.mjs → Button-10mhxReQ.mjs} +18 -18
- package/__chunks__/{Button-CDRssWxC.mjs → Button-BqogJAQ3.mjs} +3 -3
- package/__chunks__/{Button-DXhw-VUb.js → Button-BxncM-fm.js} +18 -18
- package/__chunks__/{Button-BvLvcmfd.js → Button-Y550ybuK.js} +1 -1
- package/__chunks__/{Calendar-ChbA9Ste.mjs → Calendar-D0ysbR2X.mjs} +1 -1
- package/__chunks__/{Calendar-D-oFF4f4.js → Calendar-SdcIIg8-.js} +1 -1
- package/__chunks__/{CalendarBase-oPvH2YM1.js → CalendarBase-Vw2pBuuE.js} +18 -18
- package/__chunks__/{CalendarBase-DC8WR7md.mjs → CalendarBase-ncItGlBS.mjs} +18 -18
- package/__chunks__/{Card-CWv2re8Z.mjs → Card-B1cXTObc.mjs} +12 -12
- package/__chunks__/{Card-CRFM7MOD.js → Card-DaX-ZuLu.js} +12 -12
- package/__chunks__/{Checkbox-B7eahvPN.js → Checkbox-DSYdN5fC.js} +19 -19
- package/__chunks__/{Checkbox-XDmnzjIx.mjs → Checkbox-DdAWbHpa.mjs} +20 -20
- package/__chunks__/{CodeSnippet-CnjYkoJo.mjs → CodeSnippet-BbIqouQg.mjs} +2 -2
- package/__chunks__/{CodeSnippet-FCgb2RfQ.js → CodeSnippet-CPuuHMuI.js} +2 -2
- package/__chunks__/{DatePickerBase-DMmeUEou.js → DatePickerBase-D8v7yMaR.js} +18 -62
- package/__chunks__/{DatePickerBase-B9g5PeHi.mjs → DatePickerBase-DVA3ya0P.mjs} +20 -64
- package/__chunks__/Dialog-CFyC5TFs.js +232 -0
- package/__chunks__/Dialog-DnCSZh3s.mjs +233 -0
- package/__chunks__/{HelpMenu-BjEMVfGE.js → HelpMenu-CJK_EziM.js} +6 -6
- package/__chunks__/{HelpMenu-DWvUM5hz.mjs → HelpMenu-DeTGhGis.mjs} +6 -6
- package/__chunks__/{HorizontalGrid-BZX-WluO.js → HorizontalGrid-BYnV-Dy9.js} +1 -1
- package/__chunks__/{HorizontalGrid-DGrPEAhQ.mjs → HorizontalGrid-N2NkjG0P.mjs} +1 -1
- package/__chunks__/{HorizontalStack--Qc3cVBd.mjs → HorizontalStack-BjMnJAXd.mjs} +1 -1
- package/__chunks__/{HorizontalStack-VtCu2VMx.js → HorizontalStack-DqPlOkSw.js} +1 -1
- package/__chunks__/{Icon-BD88DLNr.mjs → Icon-QpfeMf4x.mjs} +2 -2
- package/__chunks__/{Icon-BDa4XL_V.js → Icon-SeXHAWa2.js} +2 -2
- package/__chunks__/{InputCaption-DYFfypKt.mjs → InputCaption-Bcjaxvqr.mjs} +2 -2
- package/__chunks__/{InputCaption-DKZRO84o.js → InputCaption-peDy98l4.js} +2 -2
- package/__chunks__/{InputField-Bv1SfmUB.mjs → InputField-CmJ6SAKl.mjs} +6 -89
- package/__chunks__/{InputField-C7Ti5JNz.js → InputField-DvSIzId4.js} +6 -89
- package/__chunks__/{InputIcon-VzRxuUky.mjs → InputIcon-BNR3_LeL.mjs} +31 -31
- package/__chunks__/{InputIcon-c-x0Whak.js → InputIcon-szDt09pM.js} +31 -31
- package/__chunks__/{KebabButton-TgeYkgj5.mjs → KebabButton-BcKtZQv2.mjs} +4 -4
- package/__chunks__/{KebabButton-CdlmuIRm.js → KebabButton-C4QJla9Y.js} +4 -4
- package/__chunks__/{Menu-C1Q0RfOp.js → Menu-C45BBC1Y.js} +22 -62
- package/__chunks__/{Menu-BL0okgwD.mjs → Menu-CW11-o2X.mjs} +22 -62
- package/__chunks__/{Notification-CZS59-s8.mjs → Notification-BJKPFSzJ.mjs} +14 -14
- package/__chunks__/{Notification-D7fRjiAH.js → Notification-CxrDF_Pg.js} +14 -14
- package/__chunks__/{Overlay-DyfvFsGi.mjs → Overlay-BEmOdNIB.mjs} +3 -3
- package/__chunks__/PillGroup-BUMKmU-f.js +2061 -0
- package/__chunks__/PillGroup-BtvBL5fM.mjs +2062 -0
- package/__chunks__/{RadioGroup-CYlZvoxh.js → RadioGroup-C0py9A-2.js} +15 -15
- package/__chunks__/{RadioGroup-D3RN5LLn.mjs → RadioGroup-DZXOUSXN.mjs} +16 -16
- package/__chunks__/{RangeCalendar-0Zt6GJAs.js → RangeCalendar-DBiN8Tu8.js} +1 -1
- package/__chunks__/{RangeCalendar-D5t6FuZp.mjs → RangeCalendar-DSEwJpHw.mjs} +1 -1
- package/__chunks__/{SelectOverlay-DAJ9-Wye.mjs → SelectOverlay-Cy3-vsZK.mjs} +29 -189
- package/__chunks__/{SelectOverlay-XRIcujy9.js → SelectOverlay-DBo4MARx.js} +28 -188
- package/__chunks__/{SelectorErrorTooltip-r2APVg60.js → SelectorErrorTooltip-DkECS0nt.js} +4 -4
- package/__chunks__/{SelectorErrorTooltip-BSNUFpGD.mjs → SelectorErrorTooltip-fPBKPgvD.mjs} +4 -4
- package/__chunks__/{Spinner-D9lZ3erf.js → Spinner-BadWfHqn.js} +5 -5
- package/__chunks__/{Spinner-C6CoASxe.mjs → Spinner-BjlaHcou.mjs} +5 -5
- package/__chunks__/{Stepper-BRecUCpd.mjs → Stepper-BB_ESAbw.mjs} +25 -25
- package/__chunks__/{Stepper-D0YDhoPF.js → Stepper-BqgzsSzg.js} +25 -25
- package/__chunks__/{TabNav-BzeG4JrK.mjs → TabNav-D77kh-Xx.mjs} +1 -1
- package/__chunks__/{TabNav-ipa33NIM.js → TabNav-DnnHglAy.js} +1 -1
- package/__chunks__/{Tabs-CsOlVyHJ.mjs → Tabs-C2FPFWA4.mjs} +17 -17
- package/__chunks__/{Tabs-CDUhh-Bz.js → Tabs-Y2WlJlna.js} +17 -17
- package/__chunks__/{Text-CntV2Frc.js → Text-Crcy_R7t.js} +34 -34
- package/__chunks__/{Text-BHyjSBcd.mjs → Text-V-yZP2s7.mjs} +34 -34
- package/__chunks__/{TextField-CBWpUHdy.js → TextField-D847huaI.js} +1 -1
- package/__chunks__/{TextField-Ca_M-pak.mjs → TextField-EkC5gsJ8.mjs} +1 -1
- package/__chunks__/{Toggle-C6ICkaF-.js → Toggle-CQIvcPcu.js} +11 -11
- package/__chunks__/{Toggle-BxtpUTDA.mjs → Toggle-H4aOxdc8.mjs} +11 -11
- package/__chunks__/{Tooltip-BK6l0C3n.mjs → Tooltip-CIS6DQEh.mjs} +10 -10
- package/__chunks__/{Tooltip-cqSETep4.js → Tooltip-DKFYEVdG.js} +8 -8
- package/__chunks__/{VerticalStack-BVtgNZrG.mjs → VerticalStack-Djj29NqV.mjs} +3 -3
- package/__chunks__/{VerticalStack-B7auhieq.js → VerticalStack-DjuWiMXF.js} +3 -3
- package/__chunks__/{useDialog-c-C07qhw.mjs → useDialog-h-MPfyGr.mjs} +1 -1
- package/__chunks__/{useEdgeInterceptors-DrJ9MQmY.mjs → useEdgeInterceptors-CJs5WRkG.mjs} +5 -5
- package/__chunks__/{useEdgeInterceptors-Bvg1fK8h.js → useEdgeInterceptors-ClXj8z7M.js} +5 -5
- package/__chunks__/useFilter-D-K0Oj-7.mjs +65 -0
- package/__chunks__/useFilter-DpnZ54nd.js +64 -0
- package/__chunks__/{useFormValidation-v2O6VL2V.mjs → useFormValidation-B3euLzzR.mjs} +4 -4
- package/__chunks__/useListBoxSection-BlFRlBZy.js +192 -0
- package/__chunks__/useListBoxSection-BsSdeGKp.mjs +193 -0
- package/__chunks__/{useTriggerWidth-CRz8zSDa.mjs → useMenuTrigger-D4pQ727R.mjs} +3 -130
- package/__chunks__/{useTriggerWidth-Dj7C0lza.js → useMenuTrigger-qbIPy-fg.js} +0 -127
- package/__chunks__/useMenuTriggerState-Cf_X36NC.mjs +67 -0
- package/__chunks__/useMenuTriggerState-Dai3rheB.js +66 -0
- package/__chunks__/{useModalOverlay-S0R2uVTX.mjs → useModalOverlay-CkOujl0G.mjs} +1 -1
- package/__chunks__/{useOverlayPosition-BjK7cu6U.mjs → useOverlayPosition-dua8TTSS.mjs} +1 -1
- package/__chunks__/{useOverlayTrigger-DDcXdZOM.mjs → useOverlayTrigger-BS8c6XEz.mjs} +1 -1
- package/__chunks__/{useSelectableItem-D61t76J1.mjs → useSelectableItem-B8l2VAQ8.mjs} +2 -2
- package/__chunks__/{useSelectableList-UkBCcTuC.js → useSelectableList-CzTJAukw.js} +15 -0
- package/__chunks__/{useSelectableList-BdG5I7cy.mjs → useSelectableList-DsUuWr0P.mjs} +18 -3
- package/__chunks__/useTextField-CErFc3WZ.js +106 -0
- package/__chunks__/useTextField-Dd-YTxI4.mjs +107 -0
- package/__chunks__/useTriggerWidth-B-IM2wNY.js +132 -0
- package/__chunks__/useTriggerWidth-CAYuGPNq.mjs +133 -0
- package/__chunks__/{utilities-CaBPUKEB.js → utilities-BDABIMDb.js} +4 -0
- package/__chunks__/{utilities-DASknbaa.mjs → utilities-DpKIaDkW.mjs} +5 -1
- package/__chunks__/{utils-D4ddhsBL.mjs → utils-Dt6xdGol.mjs} +10 -2
- package/__chunks__/{utils-DIF5XAA2.js → utils-eHk7b-OB.js} +8 -0
- package/package.json +2 -2
- package/style.css +1609 -1445
- package/utilities/storybook.d.ts +1 -0
- package/utilities/storybook.d.ts.map +1 -1
|
@@ -31,17 +31,17 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
33
|
const React = require("react");
|
|
34
|
-
const useEdgeInterceptors = require("./useEdgeInterceptors-
|
|
34
|
+
const useEdgeInterceptors = require("./useEdgeInterceptors-ClXj8z7M.js");
|
|
35
35
|
const utilities_css = require("../utilities/css.js");
|
|
36
36
|
const useResizeObserver = require("./useResizeObserver-BsbT3mjh.js");
|
|
37
37
|
const useHover = require("./useHover-BIKwjrCT.js");
|
|
38
38
|
const useFocusRing = require("./useFocusRing-DFRFvht_.js");
|
|
39
39
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
40
40
|
const overlayscrollbarsReact = require("./overlayscrollbars-react-D154NPCl.js");
|
|
41
|
-
const Edge$1 = "
|
|
42
|
-
const sideLeft = "
|
|
43
|
-
const sideRight = "
|
|
44
|
-
const activated = "
|
|
41
|
+
const Edge$1 = "_Edge_1gtgu_5";
|
|
42
|
+
const sideLeft = "_sideLeft_1gtgu_21";
|
|
43
|
+
const sideRight = "_sideRight_1gtgu_28";
|
|
44
|
+
const activated = "_activated_1gtgu_35";
|
|
45
45
|
const styles$2 = {
|
|
46
46
|
Edge: Edge$1,
|
|
47
47
|
sideLeft,
|
|
@@ -129,13 +129,13 @@ function useScrollIntoViewIfNeeded({ isSelected, itemRef }) {
|
|
|
129
129
|
onResize: handleScroll
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
const TabsItem$1 = "
|
|
133
|
-
const tab = "
|
|
134
|
-
const focusVisible = "
|
|
135
|
-
const text = "
|
|
136
|
-
const disabled = "
|
|
137
|
-
const hovered = "
|
|
138
|
-
const selected = "
|
|
132
|
+
const TabsItem$1 = "_TabsItem_1av4z_5";
|
|
133
|
+
const tab = "_tab_1av4z_9";
|
|
134
|
+
const focusVisible = "_focusVisible_1av4z_32";
|
|
135
|
+
const text = "_text_1av4z_44";
|
|
136
|
+
const disabled = "_disabled_1av4z_48";
|
|
137
|
+
const hovered = "_hovered_1av4z_53";
|
|
138
|
+
const selected = "_selected_1av4z_57";
|
|
139
139
|
const styles$1 = {
|
|
140
140
|
TabsItem: TabsItem$1,
|
|
141
141
|
tab,
|
|
@@ -193,11 +193,11 @@ function useScrollbar({ navRef, containerRef }) {
|
|
|
193
193
|
}
|
|
194
194
|
}, [initialize, navRef, containerRef]);
|
|
195
195
|
}
|
|
196
|
-
const Tabs$1 = "
|
|
197
|
-
const nav = "
|
|
198
|
-
const listContainer = "
|
|
199
|
-
const list = "
|
|
200
|
-
const indicator = "
|
|
196
|
+
const Tabs$1 = "_Tabs_wf4ma_5";
|
|
197
|
+
const nav = "_nav_wf4ma_19";
|
|
198
|
+
const listContainer = "_listContainer_wf4ma_25";
|
|
199
|
+
const list = "_list_wf4ma_25";
|
|
200
|
+
const indicator = "_indicator_wf4ma_44";
|
|
201
201
|
const styles = {
|
|
202
202
|
Tabs: Tabs$1,
|
|
203
203
|
nav,
|
|
@@ -17,38 +17,38 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
};
|
|
18
18
|
const React = require("react");
|
|
19
19
|
const utilities_css = require("../utilities/css.js");
|
|
20
|
-
const Text$1 = "
|
|
21
|
-
const heading1 = "
|
|
22
|
-
const heading2 = "
|
|
23
|
-
const heading3 = "
|
|
24
|
-
const heading4 = "
|
|
25
|
-
const heading5 = "
|
|
26
|
-
const subtitle1 = "
|
|
27
|
-
const subtitle2 = "
|
|
28
|
-
const body1 = "
|
|
29
|
-
const body2 = "
|
|
30
|
-
const caption = "
|
|
31
|
-
const caption2 = "
|
|
32
|
-
const caption3 = "
|
|
33
|
-
const overline = "
|
|
34
|
-
const overline2 = "
|
|
35
|
-
const button = "
|
|
36
|
-
const normal = "
|
|
37
|
-
const medium = "
|
|
38
|
-
const semibold = "
|
|
39
|
-
const bold = "
|
|
40
|
-
const truncate = "
|
|
41
|
-
const block = "
|
|
42
|
-
const visuallyHidden = "
|
|
43
|
-
const start = "
|
|
44
|
-
const center = "
|
|
45
|
-
const end = "
|
|
46
|
-
const justify = "
|
|
47
|
-
const numeric = "
|
|
48
|
-
const transformNone = "
|
|
49
|
-
const transformCapitalize = "
|
|
50
|
-
const transformUppercase = "
|
|
51
|
-
const transformLowercase = "
|
|
20
|
+
const Text$1 = "_Text_ktvi2_5";
|
|
21
|
+
const heading1 = "_heading1_ktvi2_13";
|
|
22
|
+
const heading2 = "_heading2_ktvi2_30";
|
|
23
|
+
const heading3 = "_heading3_ktvi2_47";
|
|
24
|
+
const heading4 = "_heading4_ktvi2_64";
|
|
25
|
+
const heading5 = "_heading5_ktvi2_72";
|
|
26
|
+
const subtitle1 = "_subtitle1_ktvi2_80";
|
|
27
|
+
const subtitle2 = "_subtitle2_ktvi2_88";
|
|
28
|
+
const body1 = "_body1_ktvi2_96";
|
|
29
|
+
const body2 = "_body2_ktvi2_104";
|
|
30
|
+
const caption = "_caption_ktvi2_112";
|
|
31
|
+
const caption2 = "_caption2_ktvi2_120";
|
|
32
|
+
const caption3 = "_caption3_ktvi2_128";
|
|
33
|
+
const overline = "_overline_ktvi2_136";
|
|
34
|
+
const overline2 = "_overline2_ktvi2_144";
|
|
35
|
+
const button = "_button_ktvi2_152";
|
|
36
|
+
const normal = "_normal_ktvi2_168";
|
|
37
|
+
const medium = "_medium_ktvi2_172";
|
|
38
|
+
const semibold = "_semibold_ktvi2_176";
|
|
39
|
+
const bold = "_bold_ktvi2_180";
|
|
40
|
+
const truncate = "_truncate_ktvi2_184";
|
|
41
|
+
const block = "_block_ktvi2_190";
|
|
42
|
+
const visuallyHidden = "_visuallyHidden_ktvi2_194";
|
|
43
|
+
const start = "_start_ktvi2_207";
|
|
44
|
+
const center = "_center_ktvi2_211";
|
|
45
|
+
const end = "_end_ktvi2_215";
|
|
46
|
+
const justify = "_justify_ktvi2_219";
|
|
47
|
+
const numeric = "_numeric_ktvi2_227";
|
|
48
|
+
const transformNone = "_transformNone_ktvi2_231";
|
|
49
|
+
const transformCapitalize = "_transformCapitalize_ktvi2_235";
|
|
50
|
+
const transformUppercase = "_transformUppercase_ktvi2_239";
|
|
51
|
+
const transformLowercase = "_transformLowercase_ktvi2_243";
|
|
52
52
|
const styles = {
|
|
53
53
|
Text: Text$1,
|
|
54
54
|
heading1,
|
|
@@ -66,7 +66,7 @@ const styles = {
|
|
|
66
66
|
overline,
|
|
67
67
|
overline2,
|
|
68
68
|
button,
|
|
69
|
-
"small-button": "_small-
|
|
69
|
+
"small-button": "_small-button_ktvi2_160",
|
|
70
70
|
normal,
|
|
71
71
|
medium,
|
|
72
72
|
semibold,
|
|
@@ -78,7 +78,7 @@ const styles = {
|
|
|
78
78
|
center,
|
|
79
79
|
end,
|
|
80
80
|
justify,
|
|
81
|
-
"break": "
|
|
81
|
+
"break": "_break_ktvi2_223",
|
|
82
82
|
numeric,
|
|
83
83
|
transformNone,
|
|
84
84
|
transformCapitalize,
|
|
@@ -16,38 +16,38 @@ var __spreadValues = (a, b) => {
|
|
|
16
16
|
};
|
|
17
17
|
import React__default from "react";
|
|
18
18
|
import { classNames, variationName, getComponentThemeToken, backwardsCompatibleColorToken } from "../utilities/css.mjs";
|
|
19
|
-
const Text$1 = "
|
|
20
|
-
const heading1 = "
|
|
21
|
-
const heading2 = "
|
|
22
|
-
const heading3 = "
|
|
23
|
-
const heading4 = "
|
|
24
|
-
const heading5 = "
|
|
25
|
-
const subtitle1 = "
|
|
26
|
-
const subtitle2 = "
|
|
27
|
-
const body1 = "
|
|
28
|
-
const body2 = "
|
|
29
|
-
const caption = "
|
|
30
|
-
const caption2 = "
|
|
31
|
-
const caption3 = "
|
|
32
|
-
const overline = "
|
|
33
|
-
const overline2 = "
|
|
34
|
-
const button = "
|
|
35
|
-
const normal = "
|
|
36
|
-
const medium = "
|
|
37
|
-
const semibold = "
|
|
38
|
-
const bold = "
|
|
39
|
-
const truncate = "
|
|
40
|
-
const block = "
|
|
41
|
-
const visuallyHidden = "
|
|
42
|
-
const start = "
|
|
43
|
-
const center = "
|
|
44
|
-
const end = "
|
|
45
|
-
const justify = "
|
|
46
|
-
const numeric = "
|
|
47
|
-
const transformNone = "
|
|
48
|
-
const transformCapitalize = "
|
|
49
|
-
const transformUppercase = "
|
|
50
|
-
const transformLowercase = "
|
|
19
|
+
const Text$1 = "_Text_ktvi2_5";
|
|
20
|
+
const heading1 = "_heading1_ktvi2_13";
|
|
21
|
+
const heading2 = "_heading2_ktvi2_30";
|
|
22
|
+
const heading3 = "_heading3_ktvi2_47";
|
|
23
|
+
const heading4 = "_heading4_ktvi2_64";
|
|
24
|
+
const heading5 = "_heading5_ktvi2_72";
|
|
25
|
+
const subtitle1 = "_subtitle1_ktvi2_80";
|
|
26
|
+
const subtitle2 = "_subtitle2_ktvi2_88";
|
|
27
|
+
const body1 = "_body1_ktvi2_96";
|
|
28
|
+
const body2 = "_body2_ktvi2_104";
|
|
29
|
+
const caption = "_caption_ktvi2_112";
|
|
30
|
+
const caption2 = "_caption2_ktvi2_120";
|
|
31
|
+
const caption3 = "_caption3_ktvi2_128";
|
|
32
|
+
const overline = "_overline_ktvi2_136";
|
|
33
|
+
const overline2 = "_overline2_ktvi2_144";
|
|
34
|
+
const button = "_button_ktvi2_152";
|
|
35
|
+
const normal = "_normal_ktvi2_168";
|
|
36
|
+
const medium = "_medium_ktvi2_172";
|
|
37
|
+
const semibold = "_semibold_ktvi2_176";
|
|
38
|
+
const bold = "_bold_ktvi2_180";
|
|
39
|
+
const truncate = "_truncate_ktvi2_184";
|
|
40
|
+
const block = "_block_ktvi2_190";
|
|
41
|
+
const visuallyHidden = "_visuallyHidden_ktvi2_194";
|
|
42
|
+
const start = "_start_ktvi2_207";
|
|
43
|
+
const center = "_center_ktvi2_211";
|
|
44
|
+
const end = "_end_ktvi2_215";
|
|
45
|
+
const justify = "_justify_ktvi2_219";
|
|
46
|
+
const numeric = "_numeric_ktvi2_227";
|
|
47
|
+
const transformNone = "_transformNone_ktvi2_231";
|
|
48
|
+
const transformCapitalize = "_transformCapitalize_ktvi2_235";
|
|
49
|
+
const transformUppercase = "_transformUppercase_ktvi2_239";
|
|
50
|
+
const transformLowercase = "_transformLowercase_ktvi2_243";
|
|
51
51
|
const styles = {
|
|
52
52
|
Text: Text$1,
|
|
53
53
|
heading1,
|
|
@@ -65,7 +65,7 @@ const styles = {
|
|
|
65
65
|
overline,
|
|
66
66
|
overline2,
|
|
67
67
|
button,
|
|
68
|
-
"small-button": "_small-
|
|
68
|
+
"small-button": "_small-button_ktvi2_160",
|
|
69
69
|
normal,
|
|
70
70
|
medium,
|
|
71
71
|
semibold,
|
|
@@ -77,7 +77,7 @@ const styles = {
|
|
|
77
77
|
center,
|
|
78
78
|
end,
|
|
79
79
|
justify,
|
|
80
|
-
"break": "
|
|
80
|
+
"break": "_break_ktvi2_223",
|
|
81
81
|
numeric,
|
|
82
82
|
transformNone,
|
|
83
83
|
transformCapitalize,
|
|
@@ -28,7 +28,7 @@ var __objRest = (source, exclude) => {
|
|
|
28
28
|
return target;
|
|
29
29
|
};
|
|
30
30
|
const React = require("react");
|
|
31
|
-
const InputField = require("./InputField-
|
|
31
|
+
const InputField = require("./InputField-DvSIzId4.js");
|
|
32
32
|
function TextField(props) {
|
|
33
33
|
const _a = props, { type = "text", size = "md", isDisabled = false, isRequired = false, validationState = "valid", isLabelEmphasized = false, autoFocus = false } = _a, restProps = __objRest(_a, ["type", "size", "isDisabled", "isRequired", "validationState", "isLabelEmphasized", "autoFocus"]);
|
|
34
34
|
return React.createElement(InputField.InputField, __spreadValues({
|
|
@@ -27,7 +27,7 @@ var __objRest = (source, exclude) => {
|
|
|
27
27
|
return target;
|
|
28
28
|
};
|
|
29
29
|
import React__default from "react";
|
|
30
|
-
import { I as InputField } from "./InputField-
|
|
30
|
+
import { I as InputField } from "./InputField-CmJ6SAKl.mjs";
|
|
31
31
|
function TextField(props) {
|
|
32
32
|
const _a = props, { type = "text", size = "md", isDisabled = false, isRequired = false, validationState = "valid", isLabelEmphasized = false, autoFocus = false } = _a, restProps = __objRest(_a, ["type", "size", "isDisabled", "isRequired", "validationState", "isLabelEmphasized", "autoFocus"]);
|
|
33
33
|
return React__default.createElement(InputField, __spreadValues({
|
|
@@ -33,7 +33,7 @@ var __objRest = (source, exclude) => {
|
|
|
33
33
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
34
34
|
const mergeRefs = require("./mergeRefs-CQsNYO0P.js");
|
|
35
35
|
const React = require("react");
|
|
36
|
-
const Text = require("./Text-
|
|
36
|
+
const Text = require("./Text-Crcy_R7t.js");
|
|
37
37
|
const utilities_css = require("../utilities/css.js");
|
|
38
38
|
const useToggleState = require("./useToggleState-CdbEMLRz.js");
|
|
39
39
|
const useToggle = require("./useToggle-BfpHeO2F.js");
|
|
@@ -53,13 +53,13 @@ function $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {
|
|
|
53
53
|
isReadOnly
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
const Switch$1 = "
|
|
57
|
-
const focusVisible = "
|
|
58
|
-
const track = "
|
|
59
|
-
const thumb = "
|
|
60
|
-
const hovered = "
|
|
61
|
-
const disabled = "
|
|
62
|
-
const selected = "
|
|
56
|
+
const Switch$1 = "_Switch_j9kkt_5";
|
|
57
|
+
const focusVisible = "_focusVisible_j9kkt_13";
|
|
58
|
+
const track = "_track_j9kkt_25";
|
|
59
|
+
const thumb = "_thumb_j9kkt_29";
|
|
60
|
+
const hovered = "_hovered_j9kkt_33";
|
|
61
|
+
const disabled = "_disabled_j9kkt_33";
|
|
62
|
+
const selected = "_selected_j9kkt_37";
|
|
63
63
|
const styles$1 = {
|
|
64
64
|
Switch: Switch$1,
|
|
65
65
|
focusVisible,
|
|
@@ -92,9 +92,9 @@ function Switch(props) {
|
|
|
92
92
|
r: 6
|
|
93
93
|
})));
|
|
94
94
|
}
|
|
95
|
-
const Toggle$1 = "
|
|
96
|
-
const text = "
|
|
97
|
-
const input = "
|
|
95
|
+
const Toggle$1 = "_Toggle_cy283_5";
|
|
96
|
+
const text = "_text_cy283_25";
|
|
97
|
+
const input = "_input_cy283_26";
|
|
98
98
|
const styles = {
|
|
99
99
|
Toggle: Toggle$1,
|
|
100
100
|
text,
|
|
@@ -32,7 +32,7 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-DSi85raC.mjs";
|
|
33
33
|
import { $ as $5dc95899b306f630$export$c9058316764c140e } from "./mergeRefs-CCV6itCY.mjs";
|
|
34
34
|
import React__default, { forwardRef } from "react";
|
|
35
|
-
import { T as Text } from "./Text-
|
|
35
|
+
import { T as Text } from "./Text-V-yZP2s7.mjs";
|
|
36
36
|
import { classNames } from "../utilities/css.mjs";
|
|
37
37
|
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "./useToggleState-kFojjzgV.mjs";
|
|
38
38
|
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "./useToggle-BDx-p-Zv.mjs";
|
|
@@ -52,13 +52,13 @@ function $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {
|
|
|
52
52
|
isReadOnly
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
const Switch$1 = "
|
|
56
|
-
const focusVisible = "
|
|
57
|
-
const track = "
|
|
58
|
-
const thumb = "
|
|
59
|
-
const hovered = "
|
|
60
|
-
const disabled = "
|
|
61
|
-
const selected = "
|
|
55
|
+
const Switch$1 = "_Switch_j9kkt_5";
|
|
56
|
+
const focusVisible = "_focusVisible_j9kkt_13";
|
|
57
|
+
const track = "_track_j9kkt_25";
|
|
58
|
+
const thumb = "_thumb_j9kkt_29";
|
|
59
|
+
const hovered = "_hovered_j9kkt_33";
|
|
60
|
+
const disabled = "_disabled_j9kkt_33";
|
|
61
|
+
const selected = "_selected_j9kkt_37";
|
|
62
62
|
const styles$1 = {
|
|
63
63
|
Switch: Switch$1,
|
|
64
64
|
focusVisible,
|
|
@@ -91,9 +91,9 @@ function Switch(props) {
|
|
|
91
91
|
r: 6
|
|
92
92
|
})));
|
|
93
93
|
}
|
|
94
|
-
const Toggle$1 = "
|
|
95
|
-
const text = "
|
|
96
|
-
const input = "
|
|
94
|
+
const Toggle$1 = "_Toggle_cy283_5";
|
|
95
|
+
const text = "_text_cy283_25";
|
|
96
|
+
const input = "_input_cy283_26";
|
|
97
97
|
const styles = {
|
|
98
98
|
Toggle: Toggle$1,
|
|
99
99
|
text,
|
|
@@ -18,15 +18,15 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import React__default, { useMemo, useRef, useEffect, useLayoutEffect } from "react";
|
|
21
|
-
import { T as Text } from "./Text-
|
|
21
|
+
import { T as Text } from "./Text-V-yZP2s7.mjs";
|
|
22
22
|
import { getComponentToken, pxToRem, classNames } from "../utilities/css.mjs";
|
|
23
|
-
import {
|
|
23
|
+
import { a as $fc909762b330b746$export$61c6a8c84e605fb6, d as $337b884510726a0d$export$c6fdb837b070b4ff } from "./Overlay-BEmOdNIB.mjs";
|
|
24
24
|
import { $ as $507fabe10e71c6fb$export$630ff653c5ada6a9, b as $507fabe10e71c6fb$export$b9b3dfddab17db27 } from "./useFocusVisible-ng1Hn25t.mjs";
|
|
25
25
|
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-BOYR4wqI.mjs";
|
|
26
26
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928, c as $bdb11010cef70236$export$f680877a34711e37 } from "./mergeProps-DSi85raC.mjs";
|
|
27
27
|
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-CNor_Zjt.mjs";
|
|
28
28
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
29
|
-
import { $ as $2a41e45df1593e64$export$d39e1813b3bdd0e1 } from "./useOverlayPosition-
|
|
29
|
+
import { $ as $2a41e45df1593e64$export$d39e1813b3bdd0e1 } from "./useOverlayPosition-dua8TTSS.mjs";
|
|
30
30
|
const $8796f90736e175cb$var$TOOLTIP_DELAY = 1500;
|
|
31
31
|
const $8796f90736e175cb$var$TOOLTIP_COOLDOWN = 500;
|
|
32
32
|
let $8796f90736e175cb$var$tooltips = {};
|
|
@@ -215,13 +215,13 @@ function $4e1b34546679e357$export$a6da6c504e4bba8b(props, state, ref) {
|
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
|
-
const Tooltip$1 = "
|
|
219
|
-
const text = "
|
|
220
|
-
const arrow = "
|
|
221
|
-
const top = "
|
|
222
|
-
const bottom = "
|
|
223
|
-
const left = "
|
|
224
|
-
const right = "
|
|
218
|
+
const Tooltip$1 = "_Tooltip_1ebzr_5";
|
|
219
|
+
const text = "_text_1ebzr_25";
|
|
220
|
+
const arrow = "_arrow_1ebzr_31";
|
|
221
|
+
const top = "_top_1ebzr_40";
|
|
222
|
+
const bottom = "_bottom_1ebzr_41";
|
|
223
|
+
const left = "_left_1ebzr_45";
|
|
224
|
+
const right = "_right_1ebzr_46";
|
|
225
225
|
const styles = {
|
|
226
226
|
Tooltip: Tooltip$1,
|
|
227
227
|
text,
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
const React = require("react");
|
|
22
|
-
const Text = require("./Text-
|
|
22
|
+
const Text = require("./Text-Crcy_R7t.js");
|
|
23
23
|
const utilities_css = require("../utilities/css.js");
|
|
24
24
|
const Overlay = require("./Overlay-Dmwy9VjC.js");
|
|
25
25
|
const useFocusVisible = require("./useFocusVisible-PBQuklI8.js");
|
|
@@ -216,13 +216,13 @@ function $4e1b34546679e357$export$a6da6c504e4bba8b(props, state, ref) {
|
|
|
216
216
|
}
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
|
-
const Tooltip$1 = "
|
|
220
|
-
const text = "
|
|
221
|
-
const arrow = "
|
|
222
|
-
const top = "
|
|
223
|
-
const bottom = "
|
|
224
|
-
const left = "
|
|
225
|
-
const right = "
|
|
219
|
+
const Tooltip$1 = "_Tooltip_1ebzr_5";
|
|
220
|
+
const text = "_text_1ebzr_25";
|
|
221
|
+
const arrow = "_arrow_1ebzr_31";
|
|
222
|
+
const top = "_top_1ebzr_40";
|
|
223
|
+
const bottom = "_bottom_1ebzr_41";
|
|
224
|
+
const left = "_left_1ebzr_45";
|
|
225
|
+
const right = "_right_1ebzr_46";
|
|
226
226
|
const styles = {
|
|
227
227
|
Tooltip: Tooltip$1,
|
|
228
228
|
text,
|
|
@@ -31,9 +31,9 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
};
|
|
32
32
|
import React__default, { forwardRef } from "react";
|
|
33
33
|
import { classNames, getResponsiveDesignToken, getComponentToken, sanitizeCustomProperties } from "../utilities/css.mjs";
|
|
34
|
-
const VerticalStack$1 = "
|
|
35
|
-
const listReset = "
|
|
36
|
-
const fieldsetReset = "
|
|
34
|
+
const VerticalStack$1 = "_VerticalStack_t7mit_5";
|
|
35
|
+
const listReset = "_listReset_t7mit_58";
|
|
36
|
+
const fieldsetReset = "_fieldsetReset_t7mit_65";
|
|
37
37
|
const styles = {
|
|
38
38
|
VerticalStack: VerticalStack$1,
|
|
39
39
|
listReset,
|
|
@@ -32,9 +32,9 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
};
|
|
33
33
|
const React = require("react");
|
|
34
34
|
const utilities_css = require("../utilities/css.js");
|
|
35
|
-
const VerticalStack$1 = "
|
|
36
|
-
const listReset = "
|
|
37
|
-
const fieldsetReset = "
|
|
35
|
+
const VerticalStack$1 = "_VerticalStack_t7mit_5";
|
|
36
|
+
const listReset = "_listReset_t7mit_58";
|
|
37
|
+
const fieldsetReset = "_fieldsetReset_t7mit_65";
|
|
38
38
|
const styles = {
|
|
39
39
|
VerticalStack: VerticalStack$1,
|
|
40
40
|
listReset,
|
|
@@ -21,7 +21,7 @@ import { b as $bdb11010cef70236$export$b4cc09c592e8fdb8 } from "./mergeProps-DSi
|
|
|
21
21
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
22
22
|
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-BWGCG3W3.mjs";
|
|
23
23
|
import { useRef, useEffect } from "react";
|
|
24
|
-
import {
|
|
24
|
+
import { b as $337b884510726a0d$export$14c98a7594375490 } from "./Overlay-BEmOdNIB.mjs";
|
|
25
25
|
function $40df3f8667284809$export$d55e7ee900f34e93(props, ref) {
|
|
26
26
|
let { role = "dialog" } = props;
|
|
27
27
|
let titleId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React__default, { useRef, useCallback } from "react";
|
|
2
2
|
import { u as useIntersectionDetection } from "./useIntersectionDetection-BvUmtDgl.mjs";
|
|
3
3
|
import { classNames } from "../utilities/css.mjs";
|
|
4
|
-
const interceptor = "
|
|
5
|
-
const top = "
|
|
6
|
-
const bottom = "
|
|
7
|
-
const left = "
|
|
8
|
-
const right = "
|
|
4
|
+
const interceptor = "_interceptor_1dibn_5";
|
|
5
|
+
const top = "_top_1dibn_13";
|
|
6
|
+
const bottom = "_bottom_1dibn_14";
|
|
7
|
+
const left = "_left_1dibn_18";
|
|
8
|
+
const right = "_right_1dibn_19";
|
|
9
9
|
const styles = {
|
|
10
10
|
interceptor,
|
|
11
11
|
top,
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
const React = require("react");
|
|
3
3
|
const useIntersectionDetection = require("./useIntersectionDetection-DI5n4zwA.js");
|
|
4
4
|
const utilities_css = require("../utilities/css.js");
|
|
5
|
-
const interceptor = "
|
|
6
|
-
const top = "
|
|
7
|
-
const bottom = "
|
|
8
|
-
const left = "
|
|
9
|
-
const right = "
|
|
5
|
+
const interceptor = "_interceptor_1dibn_5";
|
|
6
|
+
const top = "_top_1dibn_13";
|
|
7
|
+
const bottom = "_bottom_1dibn_14";
|
|
8
|
+
const left = "_left_1dibn_18";
|
|
9
|
+
const right = "_right_1dibn_19";
|
|
10
10
|
const styles = {
|
|
11
11
|
interceptor,
|
|
12
12
|
top,
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
import { $ as $325a3faab7a68acd$export$a16aca283550c30d } from "./useCollator-B-keb3wA.mjs";
|
|
18
|
+
import { useCallback, useMemo } from "react";
|
|
19
|
+
function $bb77f239b46e8c72$export$3274cf84b703fff(options) {
|
|
20
|
+
let collator = $325a3faab7a68acd$export$a16aca283550c30d(__spreadValues({
|
|
21
|
+
usage: "search"
|
|
22
|
+
}, options));
|
|
23
|
+
let startsWith = useCallback((string, substring) => {
|
|
24
|
+
if (substring.length === 0) return true;
|
|
25
|
+
string = string.normalize("NFC");
|
|
26
|
+
substring = substring.normalize("NFC");
|
|
27
|
+
return collator.compare(string.slice(0, substring.length), substring) === 0;
|
|
28
|
+
}, [
|
|
29
|
+
collator
|
|
30
|
+
]);
|
|
31
|
+
let endsWith = useCallback((string, substring) => {
|
|
32
|
+
if (substring.length === 0) return true;
|
|
33
|
+
string = string.normalize("NFC");
|
|
34
|
+
substring = substring.normalize("NFC");
|
|
35
|
+
return collator.compare(string.slice(-substring.length), substring) === 0;
|
|
36
|
+
}, [
|
|
37
|
+
collator
|
|
38
|
+
]);
|
|
39
|
+
let contains = useCallback((string, substring) => {
|
|
40
|
+
if (substring.length === 0) return true;
|
|
41
|
+
string = string.normalize("NFC");
|
|
42
|
+
substring = substring.normalize("NFC");
|
|
43
|
+
let scan = 0;
|
|
44
|
+
let sliceLen = substring.length;
|
|
45
|
+
for (; scan + sliceLen <= string.length; scan++) {
|
|
46
|
+
let slice = string.slice(scan, scan + sliceLen);
|
|
47
|
+
if (collator.compare(substring, slice) === 0) return true;
|
|
48
|
+
}
|
|
49
|
+
return false;
|
|
50
|
+
}, [
|
|
51
|
+
collator
|
|
52
|
+
]);
|
|
53
|
+
return useMemo(() => ({
|
|
54
|
+
startsWith,
|
|
55
|
+
endsWith,
|
|
56
|
+
contains
|
|
57
|
+
}), [
|
|
58
|
+
startsWith,
|
|
59
|
+
endsWith,
|
|
60
|
+
contains
|
|
61
|
+
]);
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
$bb77f239b46e8c72$export$3274cf84b703fff as $
|
|
65
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
6
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
+
var __spreadValues = (a, b) => {
|
|
8
|
+
for (var prop in b || (b = {}))
|
|
9
|
+
if (__hasOwnProp.call(b, prop))
|
|
10
|
+
__defNormalProp(a, prop, b[prop]);
|
|
11
|
+
if (__getOwnPropSymbols)
|
|
12
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
13
|
+
if (__propIsEnum.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
}
|
|
16
|
+
return a;
|
|
17
|
+
};
|
|
18
|
+
const useCollator = require("./useCollator-DGrSWVh4.js");
|
|
19
|
+
const React = require("react");
|
|
20
|
+
function $bb77f239b46e8c72$export$3274cf84b703fff(options) {
|
|
21
|
+
let collator = useCollator.$325a3faab7a68acd$export$a16aca283550c30d(__spreadValues({
|
|
22
|
+
usage: "search"
|
|
23
|
+
}, options));
|
|
24
|
+
let startsWith = React.useCallback((string, substring) => {
|
|
25
|
+
if (substring.length === 0) return true;
|
|
26
|
+
string = string.normalize("NFC");
|
|
27
|
+
substring = substring.normalize("NFC");
|
|
28
|
+
return collator.compare(string.slice(0, substring.length), substring) === 0;
|
|
29
|
+
}, [
|
|
30
|
+
collator
|
|
31
|
+
]);
|
|
32
|
+
let endsWith = React.useCallback((string, substring) => {
|
|
33
|
+
if (substring.length === 0) return true;
|
|
34
|
+
string = string.normalize("NFC");
|
|
35
|
+
substring = substring.normalize("NFC");
|
|
36
|
+
return collator.compare(string.slice(-substring.length), substring) === 0;
|
|
37
|
+
}, [
|
|
38
|
+
collator
|
|
39
|
+
]);
|
|
40
|
+
let contains = React.useCallback((string, substring) => {
|
|
41
|
+
if (substring.length === 0) return true;
|
|
42
|
+
string = string.normalize("NFC");
|
|
43
|
+
substring = substring.normalize("NFC");
|
|
44
|
+
let scan = 0;
|
|
45
|
+
let sliceLen = substring.length;
|
|
46
|
+
for (; scan + sliceLen <= string.length; scan++) {
|
|
47
|
+
let slice = string.slice(scan, scan + sliceLen);
|
|
48
|
+
if (collator.compare(substring, slice) === 0) return true;
|
|
49
|
+
}
|
|
50
|
+
return false;
|
|
51
|
+
}, [
|
|
52
|
+
collator
|
|
53
|
+
]);
|
|
54
|
+
return React.useMemo(() => ({
|
|
55
|
+
startsWith,
|
|
56
|
+
endsWith,
|
|
57
|
+
contains
|
|
58
|
+
}), [
|
|
59
|
+
startsWith,
|
|
60
|
+
endsWith,
|
|
61
|
+
contains
|
|
62
|
+
]);
|
|
63
|
+
}
|
|
64
|
+
exports.$bb77f239b46e8c72$export$3274cf84b703fff = $bb77f239b46e8c72$export$3274cf84b703fff;
|
|
@@ -255,9 +255,9 @@ function $e93e671b31057976$var$getFirstInvalidInput(form) {
|
|
|
255
255
|
}
|
|
256
256
|
export {
|
|
257
257
|
$e5be200c675c3b3a$export$fc1a364ae1f3ff10 as $,
|
|
258
|
-
$
|
|
259
|
-
$e5be200c675c3b3a$export$
|
|
260
|
-
$e5be200c675c3b3a$export$
|
|
261
|
-
$
|
|
258
|
+
$e93e671b31057976$export$b8473d3665f3a75a as a,
|
|
259
|
+
$e5be200c675c3b3a$export$dad6ae84456c676a as b,
|
|
260
|
+
$e5be200c675c3b3a$export$a763b9476acd3eb as c,
|
|
261
|
+
$e5be200c675c3b3a$export$75ee7c75d68f5b0e as d,
|
|
262
262
|
$e5be200c675c3b3a$export$aca958c65c314e6c as e
|
|
263
263
|
};
|