@midas-ds/components 10.1.1 → 10.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/AccordionItem-BGWiWjxA.cjs +1 -0
- package/AccordionItem-ChHpW8EW.js +320 -0
- package/BadgeContainer-DM8TdyMT.js +37 -0
- package/BadgeContainer-I1XA3OCl.cjs +1 -0
- package/Breadcrumbs-CwDUNIqF.js +250 -0
- package/Breadcrumbs-DtjJ1UmU.cjs +1 -0
- package/Button-BoJl6JGM.cjs +1 -0
- package/Button-Csih3v23.js +38 -0
- package/Button-DjBChs7s.js +340 -0
- package/Button-htW9qIsS.cjs +1 -0
- package/Button.module-DEQtBYe5.cjs +1 -0
- package/Button.module-tti8HGxs.js +14 -0
- package/ButtonGroup-DUqW5dzM.cjs +1 -0
- package/ButtonGroup-DvVvear6.js +22 -0
- package/CHANGELOG.md +68 -0
- package/Card-0G0mj9q5.cjs +1 -0
- package/Card-yrtGzt70.js +131 -0
- package/CharacterCounter-BL_nZHya.js +22 -0
- package/CharacterCounter-CHcTDHO-.cjs +1 -0
- package/Checkbox-5HINZdGu.js +263 -0
- package/Checkbox-DqcPg5hz.cjs +1 -0
- package/CheckboxGroup-BBrSMuDY.cjs +1 -0
- package/CheckboxGroup-CLgixk2p.js +243 -0
- package/Collection-BIDsXNhi.cjs +1 -0
- package/Collection-Brgjpkne.js +576 -0
- package/ColorSchemeSwitch-BpzQ7g0b.js +106 -0
- package/ColorSchemeSwitch-C-qWuqkU.cjs +16 -0
- package/ComboBox-CVDyp2a-.js +1379 -0
- package/ComboBox-CWJUg9Xx.cjs +1 -0
- package/DateField-DeDhiYnW.cjs +1 -0
- package/DateField-DhU3q-rG.js +47 -0
- package/DateInputDivider-ADvOavHw.cjs +1 -0
- package/DateInputDivider-CF4xWsMT.js +2904 -0
- package/DateRangePicker-BsAHhy99.cjs +6 -0
- package/DateRangePicker-ziD1_k1W.js +881 -0
- package/Dialog-B8GTYbvu.cjs +1 -0
- package/Dialog-BOrYdX50.cjs +1 -0
- package/Dialog-CXNu48AC.js +208 -0
- package/Dialog-D14MbJ7o.js +1633 -0
- package/DragAndDrop-DNth776R.cjs +1 -0
- package/DragAndDrop-o3ruz_SR.js +60 -0
- package/Dropdown-CJ6My6EI.cjs +6 -0
- package/Dropdown-Df58j43I.js +84 -0
- package/FieldError-CAcjosk_.js +46 -0
- package/FieldError-CKBb2-mp.cjs +1 -0
- package/FileUpload-CxCOtyB9.cjs +2 -0
- package/FileUpload-D6qoEAjn.js +2373 -0
- package/FocusScope-5c9SVBcR.cjs +1 -0
- package/FocusScope-CxkURfoc.js +625 -0
- package/Form-BuOomA4T.cjs +1 -0
- package/Form-CXcEMuBf.js +5 -0
- package/Grid--OhtgCo6.js +27 -0
- package/Grid-DVQtOcu9.cjs +1 -0
- package/GridItem-DlbSdRmB.js +246 -0
- package/GridItem-XgHmZWXY.cjs +1 -0
- package/Group-B6EslsHZ.js +44 -0
- package/Group-CgiqQHH1.cjs +1 -0
- package/Heading-BFtiin0g.js +46 -0
- package/Heading-mHhCbGjY.cjs +1 -0
- package/Hidden-BxRZGdEW.cjs +1 -0
- package/Hidden-C9KWUR7b.js +34 -0
- package/InfoBanner-BLM-TJJ6.js +83 -0
- package/InfoBanner-C2kTIsrB.cjs +1 -0
- package/Input-BTzwcf72.js +41 -0
- package/Input-DKSAYvsw.cjs +1 -0
- package/Label-7Ybb99CE.cjs +1 -0
- package/Label-BwJrdqEE.js +70 -0
- package/Layout-1g6bMH62.cjs +16 -0
- package/Layout-Ey8flY7E.js +468 -0
- package/Link-B88l_oaE.cjs +6 -0
- package/Link-BQhauBuw.cjs +1 -0
- package/Link-DX5BbBnn.js +59 -0
- package/Link-yNO2-sqx.js +71 -0
- package/LinkButton-CBpGLETx.cjs +6 -0
- package/LinkButton-o6uS1XsR.js +69 -0
- package/ListBox-DP9M4H6R.cjs +1 -0
- package/ListBox-GnVK_Pdq.js +529 -0
- package/ListBoxButton-DPBrtXyv.cjs +1 -0
- package/ListBoxButton-D_J3jlP0.js +15 -0
- package/ListBoxSection-BGaigBnG.cjs +1 -0
- package/ListBoxSection-C0BGnpB4.js +1058 -0
- package/ListKeyboardDelegate-DNI8GQtX.js +167 -0
- package/ListKeyboardDelegate-DTg9h4v6.cjs +1 -0
- package/Logo-BIrOEINM.js +133 -0
- package/Logo-DT2_2O43.cjs +1 -0
- package/OverlayArrow-CDLXPTew.js +506 -0
- package/OverlayArrow-D75k-EMl.cjs +1 -0
- package/Popover-BGGXeD54.js +38 -0
- package/Popover-CqNWzPf-.cjs +1 -0
- package/ProgressBar-DMSg-Prr.js +53 -0
- package/ProgressBar-Jbg28j2a.cjs +1 -0
- package/RSPContexts-BW2SEIqe.js +11 -0
- package/RSPContexts-D8hmBfGm.cjs +1 -0
- package/Radio-BwqrdhQE.cjs +1 -0
- package/Radio-Cz29wPXd.js +311 -0
- package/RangeCalendar-BehUaydF.cjs +11 -0
- package/RangeCalendar-RAlAHlNL.js +1683 -0
- package/SearchField-CxMwDeUM.cjs +6 -0
- package/SearchField-IlvZ3Kh6.js +362 -0
- package/Select-2q1iSzAX.cjs +1 -0
- package/Select-BVQZtoi9.js +646 -0
- package/SelectionManager-B4ORduja.js +1032 -0
- package/SelectionManager-CwYux2h3.cjs +1 -0
- package/Separator-Cu9fYKUM.js +59 -0
- package/Separator-DECIYLtZ.cjs +1 -0
- package/Skeleton-BAwbfKBW.cjs +1 -0
- package/Skeleton-BePDRmrO.js +40 -0
- package/Spinner-D31SXm-U.js +41 -0
- package/Spinner-P35rvvsl.cjs +6 -0
- package/Table-B40CGLT-.cjs +16 -0
- package/Table-F4oYBtUM.js +2447 -0
- package/Tabs-B4oZJkZG.js +404 -0
- package/Tabs-DA2qXhzb.cjs +1 -0
- package/Tag-DPAGmcMK.cjs +1 -0
- package/Tag-Du7GvSv2.js +745 -0
- package/Text-3MNwRMpI.cjs +1 -0
- package/Text-B2K-BJKQ.cjs +1 -0
- package/Text-BoXuUVVH.js +15 -0
- package/Text-jWWg0B20.js +32 -0
- package/TextArea-C7JZ_pQd.cjs +1 -0
- package/TextArea-XeBCSyzl.js +191 -0
- package/TextField-BgNdhZi_.cjs +1 -0
- package/TextField-C-hTPukq.js +119 -0
- package/TextField.module-BcpPBWnD.js +13 -0
- package/TextField.module-Dw5Rtn9y.cjs +1 -0
- package/Toast-AbDA1BOs.cjs +1 -0
- package/Toast-Btg21Xge.js +989 -0
- package/ToggleButtonGroup-B5yz1tm2.js +210 -0
- package/ToggleButtonGroup-BFDoj0P6.cjs +1 -0
- package/Tooltip-CMLs7WMw.js +283 -0
- package/Tooltip-DeBuBKhS.cjs +1 -0
- package/VisuallyHidden-CLWHbz2n.cjs +1 -0
- package/VisuallyHidden-ZCYf65q4.js +40 -0
- package/accordion/index.cjs +1 -0
- package/accordion/index.js +5 -0
- package/arrow-right-Dg8sttFO.js +14 -0
- package/arrow-right-QJ2gXPKQ.cjs +6 -0
- package/assets/AccordionItem.css +1 -0
- package/assets/BadgeContainer.css +1 -0
- package/assets/Breadcrumbs.css +1 -0
- package/assets/Button.css +1 -0
- package/assets/ButtonGroup.css +1 -0
- package/assets/Card.css +1 -0
- package/assets/CharacterCounter.css +1 -0
- package/assets/Checkbox.css +1 -0
- package/assets/ColorSchemeSwitch.css +1 -0
- package/assets/ComboBox.css +1 -0
- package/assets/DateField.css +1 -0
- package/assets/DateInputDivider.css +1 -0
- package/assets/DateRangePicker.css +1 -0
- package/assets/Dialog.css +1 -0
- package/assets/Dropdown.css +1 -0
- package/assets/FieldError.css +1 -0
- package/assets/FileUpload.css +1 -0
- package/assets/GridItem.css +1 -0
- package/assets/Heading.css +1 -0
- package/assets/InfoBanner.css +1 -0
- package/assets/Label.css +1 -0
- package/assets/Layout.css +1 -0
- package/assets/Link.css +1 -0
- package/assets/LinkButton.css +1 -0
- package/assets/ListBoxSection.css +1 -0
- package/assets/Logo.css +1 -0
- package/assets/Popover.css +1 -0
- package/assets/ProgressBar.css +1 -0
- package/assets/Radio.css +1 -0
- package/assets/RangeCalendar.css +1 -0
- package/assets/SearchField.css +1 -0
- package/assets/Select.css +1 -0
- package/assets/Skeleton.css +1 -0
- package/assets/Spinner.css +1 -0
- package/assets/Table.css +1 -0
- package/assets/Tabs.css +1 -0
- package/assets/Tag.css +1 -0
- package/assets/Text.css +1 -0
- package/assets/TextField.css +1 -0
- package/assets/Toast.css +1 -0
- package/assets/ToggleButtonGroup.css +1 -0
- package/assets/Tooltip.css +1 -0
- package/badge/index.cjs +1 -0
- package/badge/index.js +5 -0
- package/breadcrumbs/index.cjs +1 -0
- package/breadcrumbs/index.js +4 -0
- package/button/index.cjs +1 -0
- package/button/index.js +6 -0
- package/calendar/CalendarHeader.d.ts +2 -1
- package/calendar/index.cjs +1 -0
- package/calendar/index.js +5 -0
- package/card/index.cjs +1 -0
- package/card/index.js +10 -0
- package/character-counter/index.cjs +1 -0
- package/character-counter/index.js +4 -0
- package/check-CLF6Yxza.js +11 -0
- package/check-D_KoootC.cjs +6 -0
- package/checkbox/Checkbox.d.ts +2 -2
- package/checkbox/CheckboxGroup.d.ts +8 -8
- package/checkbox/CheckboxGroupFieldError.d.ts +8 -0
- package/checkbox/CheckboxGroupItem.d.ts +3 -0
- package/checkbox/CheckboxInner.d.ts +2 -0
- package/checkbox/SingleCheckbox.d.ts +3 -0
- package/checkbox/context.d.ts +3 -0
- package/checkbox/index.cjs +1 -0
- package/checkbox/index.d.ts +2 -1
- package/checkbox/index.js +6 -0
- package/checkbox/intl/translations.json.d.ts +35 -0
- package/checkbox/types.d.ts +14 -0
- package/checkbox/useSelectAll.d.ts +7 -0
- package/chevron-down-Cd1bkzXT.js +13 -0
- package/chevron-down-jl83cllc.cjs +6 -0
- package/circle-check-B9HYcH7Z.js +26 -0
- package/circle-check-BGo8gML8.cjs +11 -0
- package/clsx-C11secjj.cjs +1 -0
- package/clsx-OuTLNxxd.js +16 -0
- package/color-scheme-switch/index.cjs +1 -0
- package/color-scheme-switch/index.js +4 -0
- package/combobox/ComboBox.d.ts +3 -1
- package/combobox/index.cjs +1 -0
- package/combobox/index.js +7 -0
- package/common/types.d.ts +2 -0
- package/context-C81gPYvC.js +80 -0
- package/context-DjwhtgxQ.cjs +1 -0
- package/createLucideIcon-Cg_wkoIA.cjs +21 -0
- package/createLucideIcon-DeWljiyi.js +79 -0
- package/date-field/DateField.d.ts +3 -0
- package/date-field/index.cjs +1 -0
- package/date-field/index.js +8 -0
- package/date-picker/DatePicker.d.ts +3 -0
- package/date-picker/DateRangePicker.d.ts +3 -0
- package/date-picker/index.cjs +1 -0
- package/date-picker/index.js +5 -0
- package/dropdown/index.cjs +1 -0
- package/dropdown/index.js +5 -0
- package/field-error/FieldError.d.ts +4 -1
- package/field-error/index.cjs +1 -0
- package/field-error/index.js +4 -0
- package/file-upload/FileUpload.d.ts +3 -0
- package/file-upload/index.cjs +1 -0
- package/file-upload/index.js +4 -0
- package/filterDOMProps-BS2lrgFA.cjs +1 -0
- package/filterDOMProps-D6KHYVBX.js +24 -0
- package/getScrollParent-BhFcYrwL.js +9 -0
- package/getScrollParent-DDJu9WHU.cjs +1 -0
- package/grid/Grid.d.ts +15 -4
- package/grid/GridItem.d.ts +31 -2
- package/grid/index.cjs +1 -0
- package/grid/index.d.ts +2 -2
- package/grid/index.js +8 -0
- package/heading/index.cjs +1 -0
- package/heading/index.js +4 -0
- package/index-CGRFP4CC.js +120 -0
- package/index-Dsz3aiWt.cjs +17 -0
- package/index.cjs +1 -169
- package/index.d.ts +1 -1
- package/index.js +129 -29979
- package/inertValue-B3AFhVG4.cjs +1 -0
- package/inertValue-B7loUihk.js +8 -0
- package/info-BZwphdye.js +15 -0
- package/info-CIEIENo6.cjs +6 -0
- package/info-banner/index.cjs +1 -0
- package/info-banner/index.js +4 -0
- package/label/InfoPopover.d.ts +9 -0
- package/label/LabelWrapper.d.ts +11 -0
- package/label/index.cjs +1 -0
- package/label/index.d.ts +1 -0
- package/label/index.js +4 -0
- package/layout/index.cjs +1 -0
- package/layout/index.js +8 -0
- package/link/index.cjs +1 -0
- package/link/index.js +6 -0
- package/link-button/index.cjs +1 -0
- package/link-button/index.js +6 -0
- package/list-box/index.cjs +1 -0
- package/list-box/index.js +9 -0
- package/logo/index.cjs +1 -0
- package/logo/index.js +4 -0
- package/modal/index.cjs +1 -0
- package/modal/index.js +6 -0
- package/number-BE8InLgI.js +6 -0
- package/number-E0x3H9cL.cjs +1 -0
- package/package.json +4 -4
- package/popover/Popover.d.ts +7 -0
- package/popover/index.cjs +1 -0
- package/popover/index.d.ts +1 -0
- package/popover/index.js +4 -0
- package/progress-bar/index.cjs +1 -0
- package/progress-bar/index.js +4 -0
- package/radio/Radio.d.ts +3 -0
- package/radio/index.cjs +1 -0
- package/radio/index.js +5 -0
- package/scrollIntoView-C8doLzDd.cjs +1 -0
- package/scrollIntoView-Hwb_aaNf.js +87 -0
- package/search-field/index.cjs +1 -0
- package/search-field/index.js +4 -0
- package/select/index.cjs +1 -0
- package/select/index.js +4 -0
- package/skeleton/Skeleton.d.ts +5 -0
- package/skeleton/index.cjs +1 -0
- package/skeleton/index.js +4 -0
- package/spinner/index.cjs +1 -0
- package/spinner/index.js +4 -0
- package/square-arrow-out-up-right-BkyqV2PN.js +15 -0
- package/square-arrow-out-up-right-V4Gd08uI.cjs +6 -0
- package/table/Table.d.ts +7 -1
- package/table/index.cjs +1 -0
- package/table/index.js +9 -0
- package/tabs/index.cjs +1 -0
- package/tabs/index.js +4 -0
- package/tag/index.cjs +1 -0
- package/tag/index.js +5 -0
- package/text/index.cjs +1 -0
- package/text/index.js +4 -0
- package/textfield/TextFieldBase.d.ts +2 -0
- package/textfield/index.cjs +1 -0
- package/textfield/index.js +7 -0
- package/theme/index.cjs +1 -0
- package/theme/index.d.ts +4 -0
- package/{theme.js → theme/index.js} +2 -2
- package/theme/tokens.d.ts +10 -0
- package/toast/index.cjs +1 -0
- package/toast/index.js +9 -0
- package/toggle-button/index.cjs +1 -0
- package/toggle-button/index.js +5 -0
- package/tokens-p6pg1Cea.cjs +1 -0
- package/{tokens-C0U7hdoO.js → tokens-xp-7KMK7.js} +18 -8
- package/tooltip/index.cjs +1 -0
- package/tooltip/index.js +5 -0
- package/triangle-alert-DJW8U7jL.cjs +6 -0
- package/triangle-alert-wxyxspAl.js +21 -0
- package/useButton-B8dB9sot.js +47 -0
- package/useButton-cpNi-fY4.cjs +1 -0
- package/useControlledState-D0L6S_5r.cjs +1 -0
- package/useControlledState-u436Wbp1.js +30 -0
- package/useDateFormatter-CnxoJ4jF.cjs +1 -0
- package/useDateFormatter-EHm4auIg.js +1571 -0
- package/useEvent-DxBxMX2V.cjs +1 -0
- package/useEvent-IsD2Awnh.js +21 -0
- package/useField-CXKYU74k.cjs +1 -0
- package/useField-DvpGZkw_.js +35 -0
- package/useFilter-BTgDWHVx.cjs +1 -0
- package/useFilter-CUq74PQ2.js +35 -0
- package/useFocusRing-CbImDrwF.cjs +1 -0
- package/useFocusRing-XnR3cZjO.js +82 -0
- package/useFocusable-C8uh8K4g.js +125 -0
- package/useFocusable-NUVSFcRC.cjs +1 -0
- package/useFormValidation-BIGzfO9h.js +215 -0
- package/useFormValidation-ClximP89.cjs +1 -0
- package/useHasTabbableChild-C-1mZUQe.js +34 -0
- package/useHasTabbableChild-DCBTulUQ.cjs +1 -0
- package/useHighlightSelectionDescription-CnBDT86u.js +567 -0
- package/useHighlightSelectionDescription-CzYucm61.cjs +1 -0
- package/useHover-DjIHtjGN.js +490 -0
- package/useHover-_mv5J4_q.cjs +1 -0
- package/useLabels-BDwkBYbE.js +17 -0
- package/useLabels-BLOfc6Y-.cjs +1 -0
- package/useListState-Bx8u4IFG.cjs +1 -0
- package/useListState-CrZFZffI.js +132 -0
- package/useLocalizedStringFormatter-BKoxGZf1.js +96 -0
- package/useLocalizedStringFormatter-BsxLt89S.cjs +1 -0
- package/useLocalizedStringFormatter-D3JQyjb4.js +21 -0
- package/useLocalizedStringFormatter-ioacM-Yt.cjs +1 -0
- package/useObserveElement-BdI4zgd7.js +27 -0
- package/useObserveElement-MhzEsCkX.cjs +1 -0
- package/usePress-0AjDbW9R.cjs +7 -0
- package/usePress-CNjmDzap.js +542 -0
- package/useSingleSelectListState-0AGHxvy3.js +34 -0
- package/useSingleSelectListState-Cl3KV5E1.cjs +1 -0
- package/useTextField--czJtyNd.cjs +1 -0
- package/useTextField-Cw-33OP_.js +86 -0
- package/useToggleState-Bz5rAf4C.js +18 -0
- package/useToggleState-DoIkSQdj.cjs +1 -0
- package/useUpdateEffect-C5YQs_1w.cjs +1 -0
- package/useUpdateEffect-CCDx8D4X.js +13 -0
- package/utils-BNtZbAib.cjs +1 -0
- package/utils-DIMfEPAt.js +308 -0
- package/x-H8Zrx8-x.cjs +6 -0
- package/x-JK7i-TQC.js +14 -0
- package/flex/Flex.d.ts +0 -17
- package/flex/FlexItem.d.ts +0 -15
- package/flex/index.d.ts +0 -2
- package/index.css +0 -1
- package/theme.cjs +0 -1
- package/tokens-COoF1t17.cjs +0 -1
- /package/{global.css → assets/global.css} +0 -0
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import { e as h, c as F, a as E, h as j, b as A } from "./utils-DIMfEPAt.js";
|
|
2
|
+
import { $ as C } from "./Hidden-C9KWUR7b.js";
|
|
3
|
+
import m, { useMemo as _, createContext as L, forwardRef as B, useRef as S, useEffect as H } from "react";
|
|
4
|
+
import { $ as R } from "./number-BE8InLgI.js";
|
|
5
|
+
import { $ as I } from "./filterDOMProps-D6KHYVBX.js";
|
|
6
|
+
import { $ as K } from "./useLabels-BDwkBYbE.js";
|
|
7
|
+
import { $ as U } from "./context-C81gPYvC.js";
|
|
8
|
+
import { $ as Z } from "./useButton-B8dB9sot.js";
|
|
9
|
+
import { $ as k } from "./useFocusRing-XnR3cZjO.js";
|
|
10
|
+
import { $ as z } from "./useHover-DjIHtjGN.js";
|
|
11
|
+
let P = /* @__PURE__ */ new Map(), x = !1;
|
|
12
|
+
try {
|
|
13
|
+
x = new Intl.NumberFormat("de-DE", {
|
|
14
|
+
signDisplay: "exceptZero"
|
|
15
|
+
}).resolvedOptions().signDisplay === "exceptZero";
|
|
16
|
+
} catch {
|
|
17
|
+
}
|
|
18
|
+
let v = !1;
|
|
19
|
+
try {
|
|
20
|
+
v = new Intl.NumberFormat("de-DE", {
|
|
21
|
+
style: "unit",
|
|
22
|
+
unit: "degree"
|
|
23
|
+
}).resolvedOptions().style === "unit";
|
|
24
|
+
} catch {
|
|
25
|
+
}
|
|
26
|
+
const O = {
|
|
27
|
+
degree: {
|
|
28
|
+
narrow: {
|
|
29
|
+
default: "°",
|
|
30
|
+
"ja-JP": " 度",
|
|
31
|
+
"zh-TW": "度",
|
|
32
|
+
"sl-SI": " °"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
class G {
|
|
37
|
+
/** Formats a number value as a string, according to the locale and options provided to the constructor. */
|
|
38
|
+
format(e) {
|
|
39
|
+
let t = "";
|
|
40
|
+
if (!x && this.options.signDisplay != null ? t = W(this.numberFormatter, this.options.signDisplay, e) : t = this.numberFormatter.format(e), this.options.style === "unit" && !v) {
|
|
41
|
+
var r;
|
|
42
|
+
let { unit: i, unitDisplay: n = "short", locale: l } = this.resolvedOptions();
|
|
43
|
+
if (!i) return t;
|
|
44
|
+
let o = (r = O[i]) === null || r === void 0 ? void 0 : r[n];
|
|
45
|
+
t += o[l] || o.default;
|
|
46
|
+
}
|
|
47
|
+
return t;
|
|
48
|
+
}
|
|
49
|
+
/** Formats a number to an array of parts such as separators, digits, punctuation, and more. */
|
|
50
|
+
formatToParts(e) {
|
|
51
|
+
return this.numberFormatter.formatToParts(e);
|
|
52
|
+
}
|
|
53
|
+
/** Formats a number range as a string. */
|
|
54
|
+
formatRange(e, t) {
|
|
55
|
+
if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(e, t);
|
|
56
|
+
if (t < e) throw new RangeError("End date must be >= start date");
|
|
57
|
+
return `${this.format(e)} – ${this.format(t)}`;
|
|
58
|
+
}
|
|
59
|
+
/** Formats a number range as an array of parts. */
|
|
60
|
+
formatRangeToParts(e, t) {
|
|
61
|
+
if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(e, t);
|
|
62
|
+
if (t < e) throw new RangeError("End date must be >= start date");
|
|
63
|
+
let r = this.numberFormatter.formatToParts(e), i = this.numberFormatter.formatToParts(t);
|
|
64
|
+
return [
|
|
65
|
+
...r.map((n) => ({
|
|
66
|
+
...n,
|
|
67
|
+
source: "startRange"
|
|
68
|
+
})),
|
|
69
|
+
{
|
|
70
|
+
type: "literal",
|
|
71
|
+
value: " – ",
|
|
72
|
+
source: "shared"
|
|
73
|
+
},
|
|
74
|
+
...i.map((n) => ({
|
|
75
|
+
...n,
|
|
76
|
+
source: "endRange"
|
|
77
|
+
}))
|
|
78
|
+
];
|
|
79
|
+
}
|
|
80
|
+
/** Returns the resolved formatting options based on the values passed to the constructor. */
|
|
81
|
+
resolvedOptions() {
|
|
82
|
+
let e = this.numberFormatter.resolvedOptions();
|
|
83
|
+
return !x && this.options.signDisplay != null && (e = {
|
|
84
|
+
...e,
|
|
85
|
+
signDisplay: this.options.signDisplay
|
|
86
|
+
}), !v && this.options.style === "unit" && (e = {
|
|
87
|
+
...e,
|
|
88
|
+
style: "unit",
|
|
89
|
+
unit: this.options.unit,
|
|
90
|
+
unitDisplay: this.options.unitDisplay
|
|
91
|
+
}), e;
|
|
92
|
+
}
|
|
93
|
+
constructor(e, t = {}) {
|
|
94
|
+
this.numberFormatter = J(e, t), this.options = t;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function J(a, e = {}) {
|
|
98
|
+
let { numberingSystem: t } = e;
|
|
99
|
+
if (t && a.includes("-nu-") && (a.includes("-u-") || (a += "-u-"), a += `-nu-${t}`), e.style === "unit" && !v) {
|
|
100
|
+
var r;
|
|
101
|
+
let { unit: l, unitDisplay: o = "short" } = e;
|
|
102
|
+
if (!l) throw new Error('unit option must be provided with style: "unit"');
|
|
103
|
+
if (!(!((r = O[l]) === null || r === void 0) && r[o])) throw new Error(`Unsupported unit ${l} with unitDisplay = ${o}`);
|
|
104
|
+
e = {
|
|
105
|
+
...e,
|
|
106
|
+
style: "decimal"
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
let i = a + (e ? Object.entries(e).sort((l, o) => l[0] < o[0] ? -1 : 1).join() : "");
|
|
110
|
+
if (P.has(i)) return P.get(i);
|
|
111
|
+
let n = new Intl.NumberFormat(a, e);
|
|
112
|
+
return P.set(i, n), n;
|
|
113
|
+
}
|
|
114
|
+
function W(a, e, t) {
|
|
115
|
+
if (e === "auto") return a.format(t);
|
|
116
|
+
if (e === "never") return a.format(Math.abs(t));
|
|
117
|
+
{
|
|
118
|
+
let r = !1;
|
|
119
|
+
if (e === "always" ? r = t > 0 || Object.is(t, 0) : e === "exceptZero" && (Object.is(t, -0) || Object.is(t, 0) ? t = Math.abs(t) : r = t > 0), r) {
|
|
120
|
+
let i = a.format(-t), n = a.format(t), l = i.replace(n, "").replace(/\u200e|\u061C/, "");
|
|
121
|
+
return [
|
|
122
|
+
...l
|
|
123
|
+
].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), i.replace(n, "!!!").replace(l, "+").replace("!!!", n);
|
|
124
|
+
} else return a.format(t);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function Y(a = {}) {
|
|
128
|
+
let { locale: e } = U();
|
|
129
|
+
return _(() => new G(e, a), [
|
|
130
|
+
e,
|
|
131
|
+
a
|
|
132
|
+
]);
|
|
133
|
+
}
|
|
134
|
+
const V = 7e3;
|
|
135
|
+
let s = null;
|
|
136
|
+
function D(a, e = "assertive", t = V) {
|
|
137
|
+
s ? s.announce(a, e, t) : (s = new q(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? s.announce(a, e, t) : setTimeout(() => {
|
|
138
|
+
s != null && s.isAttached() && (s == null || s.announce(a, e, t));
|
|
139
|
+
}, 100));
|
|
140
|
+
}
|
|
141
|
+
function be(a) {
|
|
142
|
+
s && s.clear(a);
|
|
143
|
+
}
|
|
144
|
+
class q {
|
|
145
|
+
isAttached() {
|
|
146
|
+
var e;
|
|
147
|
+
return (e = this.node) === null || e === void 0 ? void 0 : e.isConnected;
|
|
148
|
+
}
|
|
149
|
+
createLog(e) {
|
|
150
|
+
let t = document.createElement("div");
|
|
151
|
+
return t.setAttribute("role", "log"), t.setAttribute("aria-live", e), t.setAttribute("aria-relevant", "additions"), t;
|
|
152
|
+
}
|
|
153
|
+
destroy() {
|
|
154
|
+
this.node && (document.body.removeChild(this.node), this.node = null);
|
|
155
|
+
}
|
|
156
|
+
announce(e, t = "assertive", r = V) {
|
|
157
|
+
var i, n;
|
|
158
|
+
if (!this.node) return;
|
|
159
|
+
let l = document.createElement("div");
|
|
160
|
+
typeof e == "object" ? (l.setAttribute("role", "img"), l.setAttribute("aria-labelledby", e["aria-labelledby"])) : l.textContent = e, t === "assertive" ? (i = this.assertiveLog) === null || i === void 0 || i.appendChild(l) : (n = this.politeLog) === null || n === void 0 || n.appendChild(l), e !== "" && setTimeout(() => {
|
|
161
|
+
l.remove();
|
|
162
|
+
}, r);
|
|
163
|
+
}
|
|
164
|
+
clear(e) {
|
|
165
|
+
this.node && ((!e || e === "assertive") && this.assertiveLog && (this.assertiveLog.innerHTML = ""), (!e || e === "polite") && this.politeLog && (this.politeLog.innerHTML = ""));
|
|
166
|
+
}
|
|
167
|
+
constructor() {
|
|
168
|
+
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
|
|
169
|
+
border: 0,
|
|
170
|
+
clip: "rect(0 0 0 0)",
|
|
171
|
+
clipPath: "inset(50%)",
|
|
172
|
+
height: "1px",
|
|
173
|
+
margin: "-1px",
|
|
174
|
+
overflow: "hidden",
|
|
175
|
+
padding: 0,
|
|
176
|
+
position: "absolute",
|
|
177
|
+
width: "1px",
|
|
178
|
+
whiteSpace: "nowrap"
|
|
179
|
+
}), this.assertiveLog = this.createLog("assertive"), this.node.appendChild(this.assertiveLog), this.politeLog = this.createLog("polite"), this.node.appendChild(this.politeLog), document.body.prepend(this.node));
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
function Q(a) {
|
|
183
|
+
let { id: e, label: t, "aria-labelledby": r, "aria-label": i, labelElementType: n = "label" } = a;
|
|
184
|
+
e = h(e);
|
|
185
|
+
let l = h(), o = {};
|
|
186
|
+
t ? (r = r ? `${l} ${r}` : l, o = {
|
|
187
|
+
id: l,
|
|
188
|
+
htmlFor: n === "label" ? e : void 0
|
|
189
|
+
}) : !r && !i && process.env.NODE_ENV !== "production" && console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");
|
|
190
|
+
let d = K({
|
|
191
|
+
id: e,
|
|
192
|
+
"aria-label": i,
|
|
193
|
+
"aria-labelledby": r
|
|
194
|
+
});
|
|
195
|
+
return {
|
|
196
|
+
labelProps: o,
|
|
197
|
+
fieldProps: d
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
function X(a) {
|
|
201
|
+
let { value: e = 0, minValue: t = 0, maxValue: r = 100, valueLabel: i, isIndeterminate: n, formatOptions: l = {
|
|
202
|
+
style: "percent"
|
|
203
|
+
} } = a, o = I(a, {
|
|
204
|
+
labelable: !0
|
|
205
|
+
}), { labelProps: d, fieldProps: f } = Q({
|
|
206
|
+
...a,
|
|
207
|
+
// Progress bar is not an HTML input element so it
|
|
208
|
+
// shouldn't be labeled by a <label> element.
|
|
209
|
+
labelElementType: "span"
|
|
210
|
+
});
|
|
211
|
+
e = R(e, t, r);
|
|
212
|
+
let $ = (e - t) / (r - t), b = Y(l);
|
|
213
|
+
if (!n && !i) {
|
|
214
|
+
let u = l.style === "percent" ? $ : e;
|
|
215
|
+
i = b.format(u);
|
|
216
|
+
}
|
|
217
|
+
return {
|
|
218
|
+
progressBarProps: F(o, {
|
|
219
|
+
...f,
|
|
220
|
+
"aria-valuenow": n ? void 0 : e,
|
|
221
|
+
"aria-valuemin": t,
|
|
222
|
+
"aria-valuemax": r,
|
|
223
|
+
"aria-valuetext": n ? void 0 : i,
|
|
224
|
+
role: "progressbar"
|
|
225
|
+
}),
|
|
226
|
+
labelProps: d
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
const N = /* @__PURE__ */ L({}), $e = /* @__PURE__ */ C(function(e, t) {
|
|
230
|
+
[e, t] = E(e, t, N);
|
|
231
|
+
let { elementType: r = "label", ...i } = e;
|
|
232
|
+
return /* @__PURE__ */ m.createElement(r, {
|
|
233
|
+
className: "react-aria-Label",
|
|
234
|
+
...i,
|
|
235
|
+
ref: t
|
|
236
|
+
});
|
|
237
|
+
}), M = /* @__PURE__ */ L(null), me = /* @__PURE__ */ B(function(e, t) {
|
|
238
|
+
[e, t] = E(e, t, M);
|
|
239
|
+
let { value: r = 0, minValue: i = 0, maxValue: n = 100, isIndeterminate: l = !1 } = e;
|
|
240
|
+
r = R(r, i, n);
|
|
241
|
+
let [o, d] = j(!e["aria-label"] && !e["aria-labelledby"]), { progressBarProps: f, labelProps: $ } = X({
|
|
242
|
+
...e,
|
|
243
|
+
label: d
|
|
244
|
+
}), b = l ? void 0 : (r - i) / (n - i) * 100, u = A({
|
|
245
|
+
...e,
|
|
246
|
+
defaultClassName: "react-aria-ProgressBar",
|
|
247
|
+
values: {
|
|
248
|
+
percentage: b,
|
|
249
|
+
valueText: f["aria-valuetext"],
|
|
250
|
+
isIndeterminate: l
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
return /* @__PURE__ */ m.createElement("div", {
|
|
254
|
+
...f,
|
|
255
|
+
...u,
|
|
256
|
+
ref: t,
|
|
257
|
+
slot: e.slot || void 0
|
|
258
|
+
}, /* @__PURE__ */ m.createElement(N.Provider, {
|
|
259
|
+
value: {
|
|
260
|
+
...$,
|
|
261
|
+
ref: o,
|
|
262
|
+
elementType: "span"
|
|
263
|
+
}
|
|
264
|
+
}, u.children));
|
|
265
|
+
}), ee = /* @__PURE__ */ new Set([
|
|
266
|
+
"form",
|
|
267
|
+
"formAction",
|
|
268
|
+
"formEncType",
|
|
269
|
+
"formMethod",
|
|
270
|
+
"formNoValidate",
|
|
271
|
+
"formTarget",
|
|
272
|
+
"name",
|
|
273
|
+
"value"
|
|
274
|
+
]), te = /* @__PURE__ */ L({}), pe = /* @__PURE__ */ C(function(e, t) {
|
|
275
|
+
[e, t] = E(e, t, te), e = ae(e);
|
|
276
|
+
let r = e, { isPending: i } = r, { buttonProps: n, isPressed: l } = Z(e, t), { focusProps: o, isFocused: d, isFocusVisible: f } = k(e), { hoverProps: $, isHovered: b } = z({
|
|
277
|
+
...e,
|
|
278
|
+
isDisabled: e.isDisabled || i
|
|
279
|
+
}), u = {
|
|
280
|
+
isHovered: b,
|
|
281
|
+
isPressed: (r.isPressed || l) && !i,
|
|
282
|
+
isFocused: d,
|
|
283
|
+
isFocusVisible: f,
|
|
284
|
+
isDisabled: e.isDisabled || !1,
|
|
285
|
+
isPending: i ?? !1
|
|
286
|
+
}, w = A({
|
|
287
|
+
...e,
|
|
288
|
+
values: u,
|
|
289
|
+
defaultClassName: "react-aria-Button"
|
|
290
|
+
}), p = h(n.id), y = h(), c = n["aria-labelledby"];
|
|
291
|
+
i && (c ? c = `${c} ${y}` : n["aria-label"] && (c = `${p} ${y}`));
|
|
292
|
+
let g = S(i);
|
|
293
|
+
return H(() => {
|
|
294
|
+
let T = {
|
|
295
|
+
"aria-labelledby": c || p
|
|
296
|
+
};
|
|
297
|
+
(!g.current && d && i || g.current && d && !i) && D(T, "assertive"), g.current = i;
|
|
298
|
+
}, [
|
|
299
|
+
i,
|
|
300
|
+
d,
|
|
301
|
+
c,
|
|
302
|
+
p
|
|
303
|
+
]), /* @__PURE__ */ m.createElement("button", {
|
|
304
|
+
...I(e, {
|
|
305
|
+
propNames: ee
|
|
306
|
+
}),
|
|
307
|
+
...F(n, o, $),
|
|
308
|
+
...w,
|
|
309
|
+
type: n.type === "submit" && i ? "button" : n.type,
|
|
310
|
+
id: p,
|
|
311
|
+
ref: t,
|
|
312
|
+
"aria-labelledby": c,
|
|
313
|
+
slot: e.slot || void 0,
|
|
314
|
+
"aria-disabled": i ? "true" : n["aria-disabled"],
|
|
315
|
+
"data-disabled": e.isDisabled || void 0,
|
|
316
|
+
"data-pressed": u.isPressed || void 0,
|
|
317
|
+
"data-hovered": b || void 0,
|
|
318
|
+
"data-focused": d || void 0,
|
|
319
|
+
"data-pending": i || void 0,
|
|
320
|
+
"data-focus-visible": f || void 0
|
|
321
|
+
}, /* @__PURE__ */ m.createElement(M.Provider, {
|
|
322
|
+
value: {
|
|
323
|
+
id: y
|
|
324
|
+
}
|
|
325
|
+
}, w.children));
|
|
326
|
+
});
|
|
327
|
+
function ae(a) {
|
|
328
|
+
return a.isPending && (a.onPress = void 0, a.onPressStart = void 0, a.onPressEnd = void 0, a.onPressChange = void 0, a.onPressUp = void 0, a.onKeyDown = void 0, a.onKeyUp = void 0, a.onClick = void 0, a.href = void 0), a;
|
|
329
|
+
}
|
|
330
|
+
export {
|
|
331
|
+
pe as $,
|
|
332
|
+
Q as a,
|
|
333
|
+
N as b,
|
|
334
|
+
me as c,
|
|
335
|
+
$e as d,
|
|
336
|
+
te as e,
|
|
337
|
+
D as f,
|
|
338
|
+
G as g,
|
|
339
|
+
be as h
|
|
340
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const d=require("./utils-BNtZbAib.cjs"),D=require("./Hidden-BxRZGdEW.cjs"),f=require("react"),F=require("./number-E0x3H9cL.cjs"),C=require("./filterDOMProps-BS2lrgFA.cjs"),M=require("./useLabels-BLOfc6Y-.cjs"),q=require("./context-DjwhtgxQ.cjs"),j=require("./useButton-cpNi-fY4.cjs"),B=require("./useFocusRing-CbImDrwF.cjs"),H=require("./useHover-_mv5J4_q.cjs");let g=new Map,P=!1;try{P=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let v=!1;try{v=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const R={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class A{format(e){let t="";if(!P&&this.options.signDisplay!=null?t=_(this.numberFormatter,this.options.signDisplay,e):t=this.numberFormatter.format(e),this.options.style==="unit"&&!v){var i;let{unit:r,unitDisplay:n="short",locale:l}=this.resolvedOptions();if(!r)return t;let o=(i=R[r])===null||i===void 0?void 0:i[n];t+=o[l]||o.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let i=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...i.map(n=>({...n,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(n=>({...n,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!P&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!v&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=S(e,t),this.options=t}}function S(a,e={}){let{numberingSystem:t}=e;if(t&&a.includes("-nu-")&&(a.includes("-u-")||(a+="-u-"),a+=`-nu-${t}`),e.style==="unit"&&!v){var i;let{unit:l,unitDisplay:o="short"}=e;if(!l)throw new Error('unit option must be provided with style: "unit"');if(!(!((i=R[l])===null||i===void 0)&&i[o]))throw new Error(`Unsupported unit ${l} with unitDisplay = ${o}`);e={...e,style:"decimal"}}let r=a+(e?Object.entries(e).sort((l,o)=>l[0]<o[0]?-1:1).join():"");if(g.has(r))return g.get(r);let n=new Intl.NumberFormat(a,e);return g.set(r,n),n}function _(a,e,t){if(e==="auto")return a.format(t);if(e==="never")return a.format(Math.abs(t));{let i=!1;if(e==="always"?i=t>0||Object.is(t,0):e==="exceptZero"&&(Object.is(t,-0)||Object.is(t,0)?t=Math.abs(t):i=t>0),i){let r=a.format(-t),n=a.format(t),l=r.replace(n,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),r.replace(n,"!!!").replace(l,"+").replace("!!!",n)}else return a.format(t)}}function K(a={}){let{locale:e}=q.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7();return f.useMemo(()=>new A(e,a),[e,a])}const O=7e3;let s=null;function E(a,e="assertive",t=O){s?s.announce(a,e,t):(s=new Z,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?s.announce(a,e,t):setTimeout(()=>{s!=null&&s.isAttached()&&(s==null||s.announce(a,e,t))},100))}function U(a){s&&s.clear(a)}class Z{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",i=O){var r,n;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,t==="assertive"?(r=this.assertiveLog)===null||r===void 0||r.appendChild(l):(n=this.politeLog)===null||n===void 0||n.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},i)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function I(a){let{id:e,label:t,"aria-labelledby":i,"aria-label":r,labelElementType:n="label"}=a;e=d.$bdb11010cef70236$export$f680877a34711e37(e);let l=d.$bdb11010cef70236$export$f680877a34711e37(),o={};t?(i=i?`${l} ${i}`:l,o={id:l,htmlFor:n==="label"?e:void 0}):!i&&!r&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=M.$313b98861ee5dd6c$export$d6875122194c7b44({id:e,"aria-label":r,"aria-labelledby":i});return{labelProps:o,fieldProps:c}}function k(a){let{value:e=0,minValue:t=0,maxValue:i=100,valueLabel:r,isIndeterminate:n,formatOptions:l={style:"percent"}}=a,o=C.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{labelable:!0}),{labelProps:c,fieldProps:u}=I({...a,labelElementType:"span"});e=F.$9446cca9a3875146$export$7d15b64cf5a3a4c4(e,t,i);let m=(e-t)/(i-t),p=K(l);if(!n&&!r){let b=l.style==="percent"?m:e;r=p.format(b)}return{progressBarProps:d.$3ef42575df84b30b$export$9d1611c77c2fe928(o,{...u,"aria-valuenow":n?void 0:e,"aria-valuemin":t,"aria-valuemax":i,"aria-valuetext":n?void 0:r,role:"progressbar"}),labelProps:c}}const L=f.createContext({}),z=D.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,t){[e,t]=d.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,L);let{elementType:i="label",...r}=e;return f.createElement(i,{className:"react-aria-Label",...r,ref:t})}),V=f.createContext(null),G=f.forwardRef(function(e,t){[e,t]=d.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,V);let{value:i=0,minValue:r=0,maxValue:n=100,isIndeterminate:l=!1}=e;i=F.$9446cca9a3875146$export$7d15b64cf5a3a4c4(i,r,n);let[o,c]=d.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:u,labelProps:m}=k({...e,label:c}),p=l?void 0:(i-r)/(n-r)*100,b=d.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:p,valueText:u["aria-valuetext"],isIndeterminate:l}});return f.createElement("div",{...u,...b,ref:t,slot:e.slot||void 0},f.createElement(L.Provider,{value:{...m,ref:o,elementType:"span"}},b.children))}),J=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),N=f.createContext({}),W=D.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,t){[e,t]=d.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,N),e=Y(e);let i=e,{isPending:r}=i,{buttonProps:n,isPressed:l}=j.$701a24aa0da5b062$export$ea18c227d4417cc3(e,t),{focusProps:o,isFocused:c,isFocusVisible:u}=B.$f7dceffc5ad7768b$export$4e328f61c538687f(e),{hoverProps:m,isHovered:p}=H.$6179b936705e76d3$export$ae780daf29e6d456({...e,isDisabled:e.isDisabled||r}),b={isHovered:p,isPressed:(i.isPressed||l)&&!r,isFocused:c,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:r??!1},w=d.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:b,defaultClassName:"react-aria-Button"}),h=d.$bdb11010cef70236$export$f680877a34711e37(n.id),y=d.$bdb11010cef70236$export$f680877a34711e37(),$=n["aria-labelledby"];r&&($?$=`${$} ${y}`:n["aria-label"]&&($=`${h} ${y}`));let x=f.useRef(r);return f.useEffect(()=>{let T={"aria-labelledby":$||h};(!x.current&&c&&r||x.current&&c&&!r)&&E(T,"assertive"),x.current=r},[r,c,$,h]),f.createElement("button",{...C.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{propNames:J}),...d.$3ef42575df84b30b$export$9d1611c77c2fe928(n,o,m),...w,type:n.type==="submit"&&r?"button":n.type,id:h,ref:t,"aria-labelledby":$,slot:e.slot||void 0,"aria-disabled":r?"true":n["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":b.isPressed||void 0,"data-hovered":p||void 0,"data-focused":c||void 0,"data-pending":r||void 0,"data-focus-visible":u||void 0},f.createElement(V.Provider,{value:{id:y}},w.children))});function Y(a){return a.isPending&&(a.onPress=void 0,a.onPressStart=void 0,a.onPressEnd=void 0,a.onPressChange=void 0,a.onPressUp=void 0,a.onKeyDown=void 0,a.onKeyUp=void 0,a.onClick=void 0,a.href=void 0),a}exports.$01b77f81d0f07f68$export$75b6ee27786ba447=L;exports.$01b77f81d0f07f68$export$b04be29aa201d4f5=z;exports.$0393f8ab869a0f1a$export$c17561cb55d4db30=G;exports.$319e236875307eab$export$a9b970dcc4ae71a9=E;exports.$319e236875307eab$export$d10ae4f68404609a=U;exports.$488c6ddbf4ef74c2$export$cc77c4ff7e8673c5=A;exports.$d191a55c9702f145$export$8467354a121f1b9f=I;exports.$d2b4bc8c273e7be6$export$24d547caef80ccd1=N;exports.$d2b4bc8c273e7be6$export$353f5b6fc5456de1=W;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Button.css');const t="_button_cz5bk_4",n="_secondary_cz5bk_51",c="_tertiary_cz5bk_74",_="_iconBtn_cz5bk_94",o="_medium_cz5bk_114",i="_danger_cz5bk_119",r="_iconRight_cz5bk_141",s="_fullwidth_cz5bk_145",e="_primary_cz5bk_155",a={button:t,secondary:n,tertiary:c,iconBtn:_,medium:o,danger:i,iconRight:r,fullwidth:s,primary:e};exports.ButtonStyles=a;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import './assets/Button.css';const t = "_button_cz5bk_4", n = "_secondary_cz5bk_51", c = "_tertiary_cz5bk_74", _ = "_iconBtn_cz5bk_94", o = "_medium_cz5bk_114", i = "_danger_cz5bk_119", r = "_iconRight_cz5bk_141", s = "_fullwidth_cz5bk_145", e = "_primary_cz5bk_155", a = {
|
|
2
|
+
button: t,
|
|
3
|
+
secondary: n,
|
|
4
|
+
tertiary: c,
|
|
5
|
+
iconBtn: _,
|
|
6
|
+
medium: o,
|
|
7
|
+
danger: i,
|
|
8
|
+
iconRight: r,
|
|
9
|
+
fullwidth: s,
|
|
10
|
+
primary: e
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
a as B
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/ButtonGroup.css');const s=require("react/jsx-runtime"),n=require("./clsx-C11secjj.cjs"),e="_buttonGroup_fh6r8_4",c={buttonGroup:e},l=({children:t,className:o,"aria-label":r,...u})=>s.jsx("div",{role:"group","aria-label":r,className:n.clsx(c.buttonGroup,o),...u,children:t});exports.ButtonGroup=l;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { c as a } from "./clsx-OuTLNxxd.js";
|
|
3
|
+
import './assets/ButtonGroup.css';const n = "_buttonGroup_fh6r8_4", p = {
|
|
4
|
+
buttonGroup: n
|
|
5
|
+
}, b = ({
|
|
6
|
+
children: o,
|
|
7
|
+
className: t,
|
|
8
|
+
"aria-label": r,
|
|
9
|
+
...u
|
|
10
|
+
}) => /* @__PURE__ */ s(
|
|
11
|
+
"div",
|
|
12
|
+
{
|
|
13
|
+
role: "group",
|
|
14
|
+
"aria-label": r,
|
|
15
|
+
className: a(p.buttonGroup, t),
|
|
16
|
+
...u,
|
|
17
|
+
children: o
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
export {
|
|
21
|
+
b as B
|
|
22
|
+
};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,71 @@
|
|
|
1
|
+
## 10.3.0 (2025-06-25)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **popover:** new component popover ([#672](https://github.com/migrationsverket/midas/pull/672))
|
|
6
|
+
|
|
7
|
+
### 🩹 Fixes
|
|
8
|
+
|
|
9
|
+
- **combobox:** select the previous value on click ([b2440e9d2b](https://github.com/migrationsverket/midas/commit/b2440e9d2b))
|
|
10
|
+
|
|
11
|
+
### 💅 Refactors
|
|
12
|
+
|
|
13
|
+
- ♻️ checkbox ([#640](https://github.com/migrationsverket/midas/pull/640))
|
|
14
|
+
|
|
15
|
+
### 🧪 Tests updated
|
|
16
|
+
|
|
17
|
+
- **grid:** remove a11y test bypass ([ca09acfd1c](https://github.com/migrationsverket/midas/commit/ca09acfd1c))
|
|
18
|
+
- opt-in for chromatic on PRs ([#675](https://github.com/migrationsverket/midas/pull/675))
|
|
19
|
+
- remove storybook background transiton ([a7b633dca8](https://github.com/migrationsverket/midas/commit/a7b633dca8))
|
|
20
|
+
|
|
21
|
+
## 10.2.0 (2025-06-18)
|
|
22
|
+
|
|
23
|
+
### 🚀 Features
|
|
24
|
+
|
|
25
|
+
- **theme:** new color tokens for skeleton ([#663](https://github.com/migrationsverket/midas/pull/663))
|
|
26
|
+
- **skeleton:** add prop for use on layer01 backgrounds ([#655](https://github.com/migrationsverket/midas/pull/655))
|
|
27
|
+
- **grid:** new grid v2 📏 ([#656](https://github.com/migrationsverket/midas/pull/656))
|
|
28
|
+
- **table:** add size prop ([6f3cc36071](https://github.com/migrationsverket/midas/commit/6f3cc36071))
|
|
29
|
+
- **calendar:** extend calendar with state for disabled ([#635](https://github.com/migrationsverket/midas/pull/635))
|
|
30
|
+
|
|
31
|
+
### 🩹 Fixes
|
|
32
|
+
|
|
33
|
+
- css syntax errors for media queries ([d4935c1e57](https://github.com/migrationsverket/midas/commit/d4935c1e57))
|
|
34
|
+
- **calendar:** change text color for day button on hover ([#651](https://github.com/migrationsverket/midas/pull/651))
|
|
35
|
+
- **textfield:** remove `height:100%` on wrapper ([dccd5bdd09](https://github.com/migrationsverket/midas/commit/dccd5bdd09))
|
|
36
|
+
|
|
37
|
+
### 💅 Refactors
|
|
38
|
+
|
|
39
|
+
- **field-error:** make component usable without context ([9ce07e9444](https://github.com/migrationsverket/midas/commit/9ce07e9444))
|
|
40
|
+
|
|
41
|
+
### 📖 Documentation changes
|
|
42
|
+
|
|
43
|
+
- grid improvements ([5b0db59cd0](https://github.com/migrationsverket/midas/commit/5b0db59cd0))
|
|
44
|
+
- new get started pages ([fc4eb7851c](https://github.com/migrationsverket/midas/commit/fc4eb7851c))
|
|
45
|
+
- **table:** update docs on medium size ([c70a1ff4df](https://github.com/migrationsverket/midas/commit/c70a1ff4df))
|
|
46
|
+
- add release notes for 10.1.1 ([154ab05ae6](https://github.com/migrationsverket/midas/commit/154ab05ae6))
|
|
47
|
+
|
|
48
|
+
### 🔧 Maintenance
|
|
49
|
+
|
|
50
|
+
- chunk bundle with rollup ([80e3b0c949](https://github.com/migrationsverket/midas/commit/80e3b0c949))
|
|
51
|
+
- format css ([9c9e48254f](https://github.com/migrationsverket/midas/commit/9c9e48254f))
|
|
52
|
+
- **components:** add command to watch for typescript errors ([aeebaffc55](https://github.com/migrationsverket/midas/commit/aeebaffc55))
|
|
53
|
+
- **search-field:** add column id type to story ([12a8b9af66](https://github.com/migrationsverket/midas/commit/12a8b9af66))
|
|
54
|
+
- **deps-dev:** bump brace-expansion ([4cdfd0e167](https://github.com/migrationsverket/midas/commit/4cdfd0e167))
|
|
55
|
+
- run storybook tests in pipeline temporary ([730680d696](https://github.com/migrationsverket/midas/commit/730680d696))
|
|
56
|
+
|
|
57
|
+
### 🧪 Tests updated
|
|
58
|
+
|
|
59
|
+
- **table:** add chromatic modes ([7081f8adac](https://github.com/migrationsverket/midas/commit/7081f8adac))
|
|
60
|
+
- **table:** await queries ([7e18645ead](https://github.com/migrationsverket/midas/commit/7e18645ead))
|
|
61
|
+
- **table:** test medium size prop ([073b317cc8](https://github.com/migrationsverket/midas/commit/073b317cc8))
|
|
62
|
+
- **calendar:** bypass a11y tests on disabled stories ([d1ce956cb5](https://github.com/migrationsverket/midas/commit/d1ce956cb5))
|
|
63
|
+
|
|
64
|
+
### 🎨 Styles
|
|
65
|
+
|
|
66
|
+
- **link-button:** change chevron icon to arrow icon ([#647](https://github.com/migrationsverket/midas/pull/647))
|
|
67
|
+
- **table:** adjust paddings and heights ([b84828bfd7](https://github.com/migrationsverket/midas/commit/b84828bfd7))
|
|
68
|
+
|
|
1
69
|
## 10.1.1 (2025-06-09)
|
|
2
70
|
|
|
3
71
|
### 🩹 Fixes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Card.css');const a=require("react/jsx-runtime"),o=require("./clsx-C11secjj.cjs"),l=require("react"),u=require("./Heading-mHhCbGjY.cjs"),C=require("./Button-htW9qIsS.cjs"),x=require("./Link-BQhauBuw.cjs"),_=require("./arrow-right-QJ2gXPKQ.cjs");function h(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(c,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return c.default=e,Object.freeze(c)}const s=h(l),m="_card_1hl11_4",A="_horizontal_1hl11_10",g="_cardLink_1hl11_15",I="_cardContent_1hl11_20",j="_cardActions_1hl11_39",b="_cardActionArea_1hl11_49",f="_cardImage_1hl11_82",k="_cardLinkIcon_1hl11_114",n={card:m,horizontal:A,cardLink:g,cardContent:I,cardActions:j,cardActionArea:b,cardImage:f,cardLinkIcon:k},i=s.createContext({horizontal:void 0,titleId:void 0}),z=({horizontal:e,className:c,children:t,...r})=>{const d=`card-title-${s.useId()}`;return a.jsx(i.Provider,{value:{horizontal:e,titleId:d},children:a.jsx("div",{...r,className:o.clsx(n.card,e&&n.horizontal,c),children:t})})},L=({children:e,...c})=>{const{horizontal:t}=s.useContext(i);return a.jsx("div",{...c,className:o.clsx(n.cardContent,t&&n.horizontal),children:e})},p=({elementType:e="h2",children:c})=>{const{horizontal:t,titleId:r}=s.useContext(i);return a.jsx(u.Heading,{level:t?5:3,elementType:e,isExpressive:t,className:o.clsx(n.cardTitle,t&&n.horizontal),id:r,children:c})},v=({children:e,...c})=>{const{horizontal:t}=s.useContext(i);return a.jsx("div",{...c,className:o.clsx(n.cardActions,t&&n.horizontal),children:e})},N=({children:e,className:c,...t})=>{const{titleId:r}=s.useContext(i);return a.jsx(C.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{...t,"aria-labelledby":r,className:o.clsx(n.cardActionArea,c),children:e})},q=({as:e="img",className:c,...t})=>a.jsx(e,{...t,className:o.clsx(n.cardImage,c)}),$=({children:e,as:c,...t})=>{const r=c||x.$4f118338184dc1d9$export$a6c7ac8248d6e38a;return a.jsxs(r,{...t,className:o.clsx(n.cardLink,t.className),children:[e,a.jsx(_.ArrowRight,{className:n.cardLinkIcon,size:24})]})};exports.Card=z;exports.CardActionArea=N;exports.CardActions=v;exports.CardContent=L;exports.CardImage=q;exports.CardLink=$;exports.CardTitle=p;
|
package/Card-yrtGzt70.js
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { c as n } from "./clsx-OuTLNxxd.js";
|
|
3
|
+
import * as e from "react";
|
|
4
|
+
import { H as m } from "./Heading-BFtiin0g.js";
|
|
5
|
+
import { $ as _ } from "./Button-DjBChs7s.js";
|
|
6
|
+
import { $ as h } from "./Link-yNO2-sqx.js";
|
|
7
|
+
import { A as C } from "./arrow-right-Dg8sttFO.js";
|
|
8
|
+
import './assets/Card.css';const A = "_card_1hl11_4", I = "_horizontal_1hl11_10", p = "_cardLink_1hl11_15", u = "_cardContent_1hl11_20", x = "_cardActions_1hl11_39", f = "_cardActionArea_1hl11_49", z = "_cardImage_1hl11_82", k = "_cardLinkIcon_1hl11_114", r = {
|
|
9
|
+
card: A,
|
|
10
|
+
horizontal: I,
|
|
11
|
+
cardLink: p,
|
|
12
|
+
cardContent: u,
|
|
13
|
+
cardActions: x,
|
|
14
|
+
cardActionArea: f,
|
|
15
|
+
cardImage: z,
|
|
16
|
+
cardLinkIcon: k
|
|
17
|
+
}, d = e.createContext({
|
|
18
|
+
horizontal: void 0,
|
|
19
|
+
titleId: void 0
|
|
20
|
+
}), y = ({
|
|
21
|
+
horizontal: t,
|
|
22
|
+
className: o,
|
|
23
|
+
children: a,
|
|
24
|
+
...s
|
|
25
|
+
}) => {
|
|
26
|
+
const i = `card-title-${e.useId()}`;
|
|
27
|
+
return /* @__PURE__ */ c(d.Provider, { value: { horizontal: t, titleId: i }, children: /* @__PURE__ */ c(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
...s,
|
|
31
|
+
className: n(
|
|
32
|
+
r.card,
|
|
33
|
+
t && r.horizontal,
|
|
34
|
+
o
|
|
35
|
+
),
|
|
36
|
+
children: a
|
|
37
|
+
}
|
|
38
|
+
) });
|
|
39
|
+
}, H = ({
|
|
40
|
+
children: t,
|
|
41
|
+
...o
|
|
42
|
+
}) => {
|
|
43
|
+
const { horizontal: a } = e.useContext(d);
|
|
44
|
+
return /* @__PURE__ */ c(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
...o,
|
|
48
|
+
className: n(r.cardContent, a && r.horizontal),
|
|
49
|
+
children: t
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}, R = ({
|
|
53
|
+
elementType: t = "h2",
|
|
54
|
+
children: o
|
|
55
|
+
}) => {
|
|
56
|
+
const { horizontal: a, titleId: s } = e.useContext(d);
|
|
57
|
+
return /* @__PURE__ */ c(
|
|
58
|
+
m,
|
|
59
|
+
{
|
|
60
|
+
level: a ? 5 : 3,
|
|
61
|
+
elementType: t,
|
|
62
|
+
isExpressive: a,
|
|
63
|
+
className: n(r.cardTitle, a && r.horizontal),
|
|
64
|
+
id: s,
|
|
65
|
+
children: o
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}, T = ({
|
|
69
|
+
children: t,
|
|
70
|
+
...o
|
|
71
|
+
}) => {
|
|
72
|
+
const { horizontal: a } = e.useContext(d);
|
|
73
|
+
return /* @__PURE__ */ c(
|
|
74
|
+
"div",
|
|
75
|
+
{
|
|
76
|
+
...o,
|
|
77
|
+
className: n(r.cardActions, a && r.horizontal),
|
|
78
|
+
children: t
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
}, w = ({ children: t, className: o, ...a }) => {
|
|
82
|
+
const { titleId: s } = e.useContext(d);
|
|
83
|
+
return /* @__PURE__ */ c(
|
|
84
|
+
_,
|
|
85
|
+
{
|
|
86
|
+
...a,
|
|
87
|
+
"aria-labelledby": s,
|
|
88
|
+
className: n(r.cardActionArea, o),
|
|
89
|
+
children: t
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}, E = ({
|
|
93
|
+
as: t = "img",
|
|
94
|
+
className: o,
|
|
95
|
+
...a
|
|
96
|
+
}) => /* @__PURE__ */ c(
|
|
97
|
+
t,
|
|
98
|
+
{
|
|
99
|
+
...a,
|
|
100
|
+
className: n(r.cardImage, o)
|
|
101
|
+
}
|
|
102
|
+
), P = ({
|
|
103
|
+
children: t,
|
|
104
|
+
as: o,
|
|
105
|
+
...a
|
|
106
|
+
}) => /* @__PURE__ */ l(
|
|
107
|
+
o || h,
|
|
108
|
+
{
|
|
109
|
+
...a,
|
|
110
|
+
className: n(r.cardLink, a.className),
|
|
111
|
+
children: [
|
|
112
|
+
t,
|
|
113
|
+
/* @__PURE__ */ c(
|
|
114
|
+
C,
|
|
115
|
+
{
|
|
116
|
+
className: r.cardLinkIcon,
|
|
117
|
+
size: 24
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
export {
|
|
124
|
+
y as C,
|
|
125
|
+
H as a,
|
|
126
|
+
R as b,
|
|
127
|
+
T as c,
|
|
128
|
+
w as d,
|
|
129
|
+
E as e,
|
|
130
|
+
P as f
|
|
131
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { a as f } from "./utils-DIMfEPAt.js";
|
|
4
|
+
import { $ as i } from "./Input-BTzwcf72.js";
|
|
5
|
+
import './assets/CharacterCounter.css';const m = "_characterCounter_4224k_4", h = {
|
|
6
|
+
characterCounter: m
|
|
7
|
+
}, l = d.forwardRef((t, c) => {
|
|
8
|
+
[t] = f(t, c, i);
|
|
9
|
+
const { maxLength: r, value: e, isLonely: n } = t, { length: a } = (e == null ? void 0 : e.toString()) ?? "", o = r !== void 0;
|
|
10
|
+
return /* @__PURE__ */ s(
|
|
11
|
+
"span",
|
|
12
|
+
{
|
|
13
|
+
className: h.characterCounter,
|
|
14
|
+
"data-exceeded": o && a > r || void 0,
|
|
15
|
+
"data-lonely": n || void 0,
|
|
16
|
+
children: o ? `${a} / ${r}` : a
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
l as C
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/CharacterCounter.css');const s=require("react/jsx-runtime"),u=require("react"),i=require("./utils-BNtZbAib.cjs"),d=require("./Input-DKSAYvsw.cjs");function f(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=f(u),h="_characterCounter_4224k_4",b={characterCounter:h},g=l.forwardRef((e,n)=>{[e]=i.$64fa3d84918910a7$export$29f1550f4b0d4415(e,n,d.$3985021b0ad6602f$export$37fb8590cf2c088c);const{maxLength:t,value:r,isLonely:o}=e,{length:c}=(r==null?void 0:r.toString())??"",a=t!==void 0;return s.jsx("span",{className:b.characterCounter,"data-exceeded":a&&c>t||void 0,"data-lonely":o||void 0,children:a?`${c} / ${t}`:c})});exports.CharacterCounter=g;
|