@midas-ds/components 10.1.1 → 10.2.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-DZT76sWu.js +320 -0
- package/AccordionItem-Z_c9MpAM.cjs +1 -0
- package/BadgeContainer-D3RtqcPF.js +37 -0
- package/BadgeContainer-DeUgqGqb.cjs +1 -0
- package/Breadcrumbs-CmZXtTiS.js +250 -0
- package/Breadcrumbs-Cx09jwZZ.cjs +1 -0
- package/Button-CbFRzRrF.js +38 -0
- package/Button-DnhqHU01.cjs +1 -0
- package/Button-ZOQy9Ivu.js +78 -0
- package/Button-iSiWjocA.cjs +1 -0
- package/Button.module-CMMhIrkn.js +14 -0
- package/Button.module-DO5s9hOk.cjs +1 -0
- package/ButtonGroup-DUqW5dzM.cjs +1 -0
- package/ButtonGroup-DvVvear6.js +22 -0
- package/CHANGELOG.md +48 -0
- package/Card-C0BFW3wJ.cjs +1 -0
- package/Card-CaKKKv9k.js +131 -0
- package/CharacterCounter-CPGdboVJ.js +22 -0
- package/CharacterCounter-CrY8QRuY.cjs +1 -0
- package/Checkbox-CvFsn_FL.js +380 -0
- package/Checkbox-DSxGAJX2.cjs +1 -0
- package/CheckboxGroup-Bk9DPq4I.cjs +1 -0
- package/CheckboxGroup-Dij9zKlF.js +54 -0
- package/Collection-C5ONNBqd.js +576 -0
- package/Collection-Csx3L9gh.cjs +1 -0
- package/ColorSchemeSwitch-CbAWIJCg.js +106 -0
- package/ColorSchemeSwitch-JRrCyYVv.cjs +16 -0
- package/ComboBox-BCaqPEIH.js +1375 -0
- package/ComboBox-gveQKHU3.cjs +1 -0
- package/DateField-CAQlzuDD.js +46 -0
- package/DateField-deVVFwKA.cjs +1 -0
- package/DateInputDivider-DnUxETEC.cjs +1 -0
- package/DateInputDivider-Dx8n1Lxp.js +2908 -0
- package/DateRangePicker-BmBvwqo6.js +881 -0
- package/DateRangePicker-BzfitoK0.cjs +6 -0
- package/Dialog-Bd5hK360.cjs +1 -0
- package/Dialog-Bxx8cBEq.js +208 -0
- package/Dialog-CYxThuMl.js +1609 -0
- package/Dialog-CwTEAujZ.cjs +1 -0
- package/DragAndDrop-CSwmPhxC.js +60 -0
- package/DragAndDrop-HvycSrKY.cjs +1 -0
- package/Dropdown-CaGon9OR.cjs +6 -0
- package/Dropdown-nkjzsVYX.js +84 -0
- package/FieldError-BZw8UzBk.cjs +1 -0
- package/FieldError-CZikNDxX.js +28 -0
- package/FieldError-DqdfJ3fs.cjs +1 -0
- package/FieldError-Dv3bBEjh.js +23 -0
- package/FileUpload-DYRZ0M9F.cjs +2 -0
- package/FileUpload-ULwcYDxs.js +2372 -0
- package/FocusScope-DwIqdYpQ.js +625 -0
- package/FocusScope-NaPbvuuS.cjs +1 -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-CeSsSQVC.js +44 -0
- package/Group-CgiqQHH1.cjs +1 -0
- package/Heading-BY5-QN4S.js +46 -0
- package/Heading-DoJAtYZf.cjs +1 -0
- package/Hidden-B5ir3Lei.js +34 -0
- package/Hidden-BxRZGdEW.cjs +1 -0
- package/InfoBanner-BS-dAfzO.cjs +1 -0
- package/InfoBanner-CVIBFSWx.js +82 -0
- package/Input-D8Ku_FQz.js +41 -0
- package/Input-DKSAYvsw.cjs +1 -0
- package/Label-C9ivwkAd.js +21 -0
- package/Label-CUV21CAv.cjs +1 -0
- package/Label-DkDOsmUF.js +16 -0
- package/Label-IMWAyoKb.cjs +1 -0
- package/Layout-BWeHHnqU.cjs +16 -0
- package/Layout-CCt_2L1k.js +468 -0
- package/Link-B-nus-FT.js +71 -0
- package/Link-DsnCtNeI.cjs +6 -0
- package/Link-SHMbeyIP.cjs +1 -0
- package/Link-uFowN4qv.js +59 -0
- package/LinkButton-CuBilDML.js +69 -0
- package/LinkButton-CymMrcGL.cjs +6 -0
- package/ListBox-CDOsQChA.cjs +1 -0
- package/ListBox-DOi_y_Lt.js +530 -0
- package/ListBoxButton-CFeNhJhr.cjs +1 -0
- package/ListBoxButton-O6zN3P4W.js +15 -0
- package/ListBoxSection-C1aLKL9p.js +1058 -0
- package/ListBoxSection-DGCP6xpf.cjs +1 -0
- package/ListKeyboardDelegate-BqMETvPv.cjs +1 -0
- package/ListKeyboardDelegate-DNOzQ8nc.js +158 -0
- package/LiveAnnouncer-B6177m92.js +51 -0
- package/LiveAnnouncer-CwEWPU8b.cjs +1 -0
- package/LocalizedStringFormatter-C0C54hjf.cjs +1 -0
- package/LocalizedStringFormatter-D-4Qyql0.js +77 -0
- package/Logo-BIrOEINM.js +133 -0
- package/Logo-DT2_2O43.cjs +1 -0
- package/NumberFormatter-DewVDY5w.cjs +1 -0
- package/NumberFormatter-DgOUVrge.js +119 -0
- package/OverlayArrow-D75k-EMl.cjs +1 -0
- package/OverlayArrow-DorA4Rbr.js +506 -0
- package/PressResponder-C06O3Z5P.cjs +1 -0
- package/PressResponder-CVEg5kND.js +33 -0
- package/ProgressBar-Bkw9zavs.cjs +1 -0
- package/ProgressBar-CEX2WNoW.js +77 -0
- package/ProgressBar-Dqh3ftSP.cjs +1 -0
- package/ProgressBar-gmAzSsrz.js +53 -0
- package/RSPContexts-BW2SEIqe.js +11 -0
- package/RSPContexts-D8hmBfGm.cjs +1 -0
- package/Radio-CDKrvQe4.cjs +1 -0
- package/Radio-_ukSkxPT.js +311 -0
- package/RangeCalendar-cbCKBPZv.cjs +11 -0
- package/RangeCalendar-uXwoBL-O.js +1685 -0
- package/SearchField-6yBGiojX.cjs +6 -0
- package/SearchField-DYl2uo7o.js +362 -0
- package/Select-CpHjd1tp.cjs +1 -0
- package/Select-PvCqY7Lp.js +646 -0
- package/SelectionManager-6H88Cv6B.js +1033 -0
- package/SelectionManager-C5NGBzvz.cjs +1 -0
- package/Separator-LYnFqh4L.js +60 -0
- package/Separator-nPra6kD-.cjs +1 -0
- package/Skeleton-BAwbfKBW.cjs +1 -0
- package/Skeleton-BePDRmrO.js +40 -0
- package/Spinner-D31SXm-U.js +41 -0
- package/Spinner-DAJtfxqJ.cjs +6 -0
- package/Table-B_N7wUmA.js +2451 -0
- package/Table-D9vNc_y-.cjs +16 -0
- package/Tabs-Ct6D83aR.js +404 -0
- package/Tabs-Dtcl2oK2.cjs +1 -0
- package/Tag-CVFkzg3s.cjs +1 -0
- package/Tag-g6HN-YCv.js +748 -0
- package/Text-3MNwRMpI.cjs +1 -0
- package/Text-B2K-BJKQ.cjs +1 -0
- package/Text-BN-g1iWi.js +32 -0
- package/Text-B_H68Tvq.js +15 -0
- package/TextArea-DSiQ578a.js +206 -0
- package/TextArea-cVyGBRbL.cjs +1 -0
- package/TextField-B70CL2qz.cjs +1 -0
- package/TextField-DBaRuNj7.js +119 -0
- package/TextField.module-BcpPBWnD.js +13 -0
- package/TextField.module-Dw5Rtn9y.cjs +1 -0
- package/Toast-CjpldAI8.js +988 -0
- package/Toast-DrkOGy4d.cjs +1 -0
- package/ToggleButtonGroup-BuU_6dYe.cjs +1 -0
- package/ToggleButtonGroup-Ceh9_yBM.js +210 -0
- package/Tooltip-BAIjaYax.js +283 -0
- package/Tooltip-CiWg4zIC.cjs +1 -0
- package/VisuallyHidden-CtXvK_Tw.cjs +1 -0
- package/VisuallyHidden-D-4z1VgU.js +40 -0
- package/accordion/index.cjs +1 -0
- package/accordion/index.js +5 -0
- package/arrow-right-Cw48o2oW.cjs +6 -0
- package/arrow-right-Dg8sttFO.js +14 -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/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-Dw9c62O4.cjs +6 -0
- package/checkbox/index.cjs +1 -0
- package/checkbox/index.js +6 -0
- package/chevron-down-C2E7aZ3N.cjs +6 -0
- package/chevron-down-Cd1bkzXT.js +13 -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/index.cjs +1 -0
- package/combobox/index.js +7 -0
- package/common/types.d.ts +2 -0
- package/context-B8cn10po.js +80 -0
- package/context-DjwhtgxQ.cjs +1 -0
- package/createLucideIcon-DAY4oS-S.cjs +21 -0
- package/createLucideIcon-DeWljiyi.js +79 -0
- package/date-field/index.cjs +1 -0
- package/date-field/index.js +8 -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/index.cjs +1 -0
- package/file-upload/index.js +4 -0
- package/filterDOMProps-BS2lrgFA.cjs +1 -0
- package/filterDOMProps-D6KHYVBX.js +24 -0
- package/focusSafely-Bqfo_DH7.cjs +1 -0
- package/focusSafely-C48ucRUz.js +56 -0
- package/getScrollParent-DuKmPmUa.cjs +1 -0
- package/getScrollParent-Ru2U2LlM.js +9 -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-BSMrH_Du.js +120 -0
- package/index-D97L3EBk.cjs +17 -0
- package/index.cjs +1 -169
- package/index.d.ts +0 -1
- package/index.js +127 -29979
- package/inertValue-B7loUihk.js +8 -0
- package/inertValue-BWmZ1afe.cjs +1 -0
- package/info-DkzVqB8I.js +38 -0
- package/info-DlzSeKbc.cjs +16 -0
- package/info-banner/index.cjs +1 -0
- package/info-banner/index.js +4 -0
- package/label/index.cjs +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/progress-bar/index.cjs +1 -0
- package/progress-bar/index.js +4 -0
- package/radio/index.cjs +1 -0
- package/radio/index.js +5 -0
- package/scrollIntoView-ClEACHUk.js +57 -0
- package/scrollIntoView-DRSoJp89.cjs +1 -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-BCAO2eJs.cjs +6 -0
- package/square-arrow-out-up-right-BkyqV2PN.js +15 -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/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-C0lvfCYH.cjs +6 -0
- package/triangle-alert-wxyxspAl.js +21 -0
- package/useButton-B1Fa-6qE.cjs +1 -0
- package/useButton-C-Lq7CNY.js +47 -0
- package/useCollator-C_ozeWLo.cjs +1 -0
- package/useCollator-CgZcHC8N.js +11 -0
- package/useControlledState-D0L6S_5r.cjs +1 -0
- package/useControlledState-u436Wbp1.js +30 -0
- package/useDateFormatter-C53Uxdli.js +1571 -0
- package/useDateFormatter-g2maMTGH.cjs +1 -0
- package/useDescription-CVKhFa3c.js +32 -0
- package/useDescription-DmQYSEES.cjs +1 -0
- package/useEvent-CjkbBniY.cjs +1 -0
- package/useEvent-Cyd2ZL0c.js +21 -0
- package/useField-B1RU0GKs.cjs +1 -0
- package/useField-BPMAlIbU.js +35 -0
- package/useFilter-ChIbnALW.js +35 -0
- package/useFilter-CtIwF2qW.cjs +1 -0
- package/useFocusRing-BDGH3lpn.js +82 -0
- package/useFocusRing-CbImDrwF.cjs +1 -0
- package/useFocusable-CaedRTpB.js +74 -0
- package/useFocusable-CuPQ7Cm5.cjs +1 -0
- package/useFormValidation-ClximP89.cjs +1 -0
- package/useFormValidation-R8hQIjWP.js +215 -0
- package/useHasTabbableChild-DgphNvnk.cjs +1 -0
- package/useHasTabbableChild-DsD9AJwE.js +34 -0
- package/useHighlightSelectionDescription-BizKjvPU.cjs +1 -0
- package/useHighlightSelectionDescription-DFfcgbUj.js +567 -0
- package/useHover-_mv5J4_q.cjs +1 -0
- package/useHover-qRAon4nS.js +490 -0
- package/useLabel-DDdAJ1JO.js +23 -0
- package/useLabel-m_S5xkHy.cjs +1 -0
- package/useLabels-BLOfc6Y-.cjs +1 -0
- package/useLabels-BZjoZA1Z.js +17 -0
- package/useListState-Ca2-uZMO.cjs +1 -0
- package/useListState-DFQ9d-uE.js +132 -0
- package/useLocalizedStringFormatter-D07YB2e1.js +22 -0
- package/useLocalizedStringFormatter-u9SJaOwk.cjs +1 -0
- package/useObserveElement-BdI4zgd7.js +27 -0
- package/useObserveElement-BzEr5D32.cjs +1 -0
- package/usePress-BFa6cT9o.cjs +7 -0
- package/usePress-CUJ3pMOw.js +542 -0
- package/useSingleSelectListState-C-nB8cug.js +34 -0
- package/useSingleSelectListState-MGNxUTum.cjs +1 -0
- package/useTextField-5OZQPyOW.js +86 -0
- package/useTextField-CtUDWsUl.cjs +1 -0
- package/useToggleState-Bz5rAf4C.js +18 -0
- package/useToggleState-DoIkSQdj.cjs +1 -0
- package/useUpdateEffect-CCDx8D4X.js +13 -0
- package/useUpdateEffect-sk3kiVGz.cjs +1 -0
- package/utils-BNtZbAib.cjs +1 -0
- package/utils-HNTsIwux.js +308 -0
- package/x-CvxiAZTW.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,78 @@
|
|
|
1
|
+
import { a as D, b as F, c as P, d as E } from "./utils-HNTsIwux.js";
|
|
2
|
+
import { $ as V } from "./ProgressBar-CEX2WNoW.js";
|
|
3
|
+
import { $ as v } from "./LiveAnnouncer-B6177m92.js";
|
|
4
|
+
import { $ as C } from "./Hidden-B5ir3Lei.js";
|
|
5
|
+
import { $ as H } from "./filterDOMProps-D6KHYVBX.js";
|
|
6
|
+
import x, { createContext as w, useRef as B, useEffect as N } from "react";
|
|
7
|
+
import { $ as S } from "./useButton-C-Lq7CNY.js";
|
|
8
|
+
import { $ as T } from "./useFocusRing-BDGH3lpn.js";
|
|
9
|
+
import { $ as A } from "./useHover-qRAon4nS.js";
|
|
10
|
+
const I = /* @__PURE__ */ new Set([
|
|
11
|
+
"form",
|
|
12
|
+
"formAction",
|
|
13
|
+
"formEncType",
|
|
14
|
+
"formMethod",
|
|
15
|
+
"formNoValidate",
|
|
16
|
+
"formTarget",
|
|
17
|
+
"name",
|
|
18
|
+
"value"
|
|
19
|
+
]), K = /* @__PURE__ */ w({}), J = /* @__PURE__ */ C(function(e, n) {
|
|
20
|
+
[e, n] = D(e, n, K), e = L(e);
|
|
21
|
+
let b = e, { isPending: d } = b, { buttonProps: i, isPressed: g } = S(e, n), { focusProps: y, isFocused: s, isFocusVisible: c } = T(e), { hoverProps: h, isHovered: l } = A({
|
|
22
|
+
...e,
|
|
23
|
+
isDisabled: e.isDisabled || d
|
|
24
|
+
}), $ = {
|
|
25
|
+
isHovered: l,
|
|
26
|
+
isPressed: (b.isPressed || g) && !d,
|
|
27
|
+
isFocused: s,
|
|
28
|
+
isFocusVisible: c,
|
|
29
|
+
isDisabled: e.isDisabled || !1,
|
|
30
|
+
isPending: d ?? !1
|
|
31
|
+
}, u = F({
|
|
32
|
+
...e,
|
|
33
|
+
values: $,
|
|
34
|
+
defaultClassName: "react-aria-Button"
|
|
35
|
+
}), r = P(i.id), f = P(), t = i["aria-labelledby"];
|
|
36
|
+
d && (t ? t = `${t} ${f}` : i["aria-label"] && (t = `${r} ${f}`));
|
|
37
|
+
let o = B(d);
|
|
38
|
+
return N(() => {
|
|
39
|
+
let m = {
|
|
40
|
+
"aria-labelledby": t || r
|
|
41
|
+
};
|
|
42
|
+
!o.current && s && d ? v(m, "assertive") : o.current && s && !d && v(m, "assertive"), o.current = d;
|
|
43
|
+
}, [
|
|
44
|
+
d,
|
|
45
|
+
s,
|
|
46
|
+
t,
|
|
47
|
+
r
|
|
48
|
+
]), /* @__PURE__ */ x.createElement("button", {
|
|
49
|
+
...H(e, {
|
|
50
|
+
propNames: I
|
|
51
|
+
}),
|
|
52
|
+
...E(i, y, h),
|
|
53
|
+
...u,
|
|
54
|
+
type: i.type === "submit" && d ? "button" : i.type,
|
|
55
|
+
id: r,
|
|
56
|
+
ref: n,
|
|
57
|
+
"aria-labelledby": t,
|
|
58
|
+
slot: e.slot || void 0,
|
|
59
|
+
"aria-disabled": d ? "true" : i["aria-disabled"],
|
|
60
|
+
"data-disabled": e.isDisabled || void 0,
|
|
61
|
+
"data-pressed": $.isPressed || void 0,
|
|
62
|
+
"data-hovered": l || void 0,
|
|
63
|
+
"data-focused": s || void 0,
|
|
64
|
+
"data-pending": d || void 0,
|
|
65
|
+
"data-focus-visible": c || void 0
|
|
66
|
+
}, /* @__PURE__ */ x.createElement(V.Provider, {
|
|
67
|
+
value: {
|
|
68
|
+
id: f
|
|
69
|
+
}
|
|
70
|
+
}, u.children));
|
|
71
|
+
});
|
|
72
|
+
function L(a) {
|
|
73
|
+
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;
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
J as $,
|
|
77
|
+
K as a
|
|
78
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),t=require("./Button.module-DO5s9hOk.cjs"),y=require("./Button-DnhqHU01.cjs"),d=require("./clsx-C11secjj.cjs"),B=({variant:e="primary",fullwidth:u,className:o,iconPlacement:i,size:c="large",icon:n,iconSize:l,...s})=>r.jsx(y.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{className:d.clsx(t.ButtonStyles.button,e==="primary"&&t.ButtonStyles.primary,e==="secondary"&&t.ButtonStyles.secondary,e==="tertiary"&&t.ButtonStyles.tertiary,e==="danger"&&t.ButtonStyles.danger,e==="icon"&&t.ButtonStyles.iconBtn,u&&t.ButtonStyles.fullwidth,c==="medium"&&t.ButtonStyles.medium,i==="right"&&t.ButtonStyles.iconRight,o),...s,children:r.jsxs(r.Fragment,{children:[n&&r.jsx(n,{"aria-hidden":!0,size:l??20}),s.children]})});exports.Button=B;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import './assets/Button.css';const t = "_button_1rwlo_4", o = "_secondary_1rwlo_49", n = "_tertiary_1rwlo_72", r = "_iconBtn_1rwlo_93", _ = "_danger_1rwlo_114", i = "_iconRight_1rwlo_136", c = "_fullwidth_1rwlo_140", l = "_medium_1rwlo_144", s = "_primary_1rwlo_150", e = {
|
|
2
|
+
button: t,
|
|
3
|
+
secondary: o,
|
|
4
|
+
tertiary: n,
|
|
5
|
+
iconBtn: r,
|
|
6
|
+
danger: _,
|
|
7
|
+
iconRight: i,
|
|
8
|
+
fullwidth: c,
|
|
9
|
+
medium: l,
|
|
10
|
+
primary: s
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
e as B
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Button.css');const t="_button_1rwlo_4",o="_secondary_1rwlo_49",n="_tertiary_1rwlo_72",r="_iconBtn_1rwlo_93",_="_danger_1rwlo_114",i="_iconRight_1rwlo_136",c="_fullwidth_1rwlo_140",l="_medium_1rwlo_144",s="_primary_1rwlo_150",e={button:t,secondary:o,tertiary:n,iconBtn:r,danger:_,iconRight:i,fullwidth:c,medium:l,primary:s};exports.ButtonStyles=e;
|
|
@@ -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,51 @@
|
|
|
1
|
+
## 10.2.0 (2025-06-18)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **theme:** new color tokens for skeleton ([#663](https://github.com/migrationsverket/midas/pull/663))
|
|
6
|
+
- **skeleton:** add prop for use on layer01 backgrounds ([#655](https://github.com/migrationsverket/midas/pull/655))
|
|
7
|
+
- **grid:** new grid v2 📏 ([#656](https://github.com/migrationsverket/midas/pull/656))
|
|
8
|
+
- **table:** add size prop ([6f3cc36071](https://github.com/migrationsverket/midas/commit/6f3cc36071))
|
|
9
|
+
- **calendar:** extend calendar with state for disabled ([#635](https://github.com/migrationsverket/midas/pull/635))
|
|
10
|
+
|
|
11
|
+
### 🩹 Fixes
|
|
12
|
+
|
|
13
|
+
- css syntax errors for media queries ([d4935c1e57](https://github.com/migrationsverket/midas/commit/d4935c1e57))
|
|
14
|
+
- **calendar:** change text color for day button on hover ([#651](https://github.com/migrationsverket/midas/pull/651))
|
|
15
|
+
- **textfield:** remove `height:100%` on wrapper ([dccd5bdd09](https://github.com/migrationsverket/midas/commit/dccd5bdd09))
|
|
16
|
+
|
|
17
|
+
### 💅 Refactors
|
|
18
|
+
|
|
19
|
+
- **field-error:** make component usable without context ([9ce07e9444](https://github.com/migrationsverket/midas/commit/9ce07e9444))
|
|
20
|
+
|
|
21
|
+
### 📖 Documentation changes
|
|
22
|
+
|
|
23
|
+
- grid improvements ([5b0db59cd0](https://github.com/migrationsverket/midas/commit/5b0db59cd0))
|
|
24
|
+
- new get started pages ([fc4eb7851c](https://github.com/migrationsverket/midas/commit/fc4eb7851c))
|
|
25
|
+
- **table:** update docs on medium size ([c70a1ff4df](https://github.com/migrationsverket/midas/commit/c70a1ff4df))
|
|
26
|
+
- add release notes for 10.1.1 ([154ab05ae6](https://github.com/migrationsverket/midas/commit/154ab05ae6))
|
|
27
|
+
|
|
28
|
+
### 🔧 Maintenance
|
|
29
|
+
|
|
30
|
+
- chunk bundle with rollup ([80e3b0c949](https://github.com/migrationsverket/midas/commit/80e3b0c949))
|
|
31
|
+
- format css ([9c9e48254f](https://github.com/migrationsverket/midas/commit/9c9e48254f))
|
|
32
|
+
- **components:** add command to watch for typescript errors ([aeebaffc55](https://github.com/migrationsverket/midas/commit/aeebaffc55))
|
|
33
|
+
- **search-field:** add column id type to story ([12a8b9af66](https://github.com/migrationsverket/midas/commit/12a8b9af66))
|
|
34
|
+
- **deps-dev:** bump brace-expansion ([4cdfd0e167](https://github.com/migrationsverket/midas/commit/4cdfd0e167))
|
|
35
|
+
- run storybook tests in pipeline temporary ([730680d696](https://github.com/migrationsverket/midas/commit/730680d696))
|
|
36
|
+
|
|
37
|
+
### 🧪 Tests updated
|
|
38
|
+
|
|
39
|
+
- **table:** add chromatic modes ([7081f8adac](https://github.com/migrationsverket/midas/commit/7081f8adac))
|
|
40
|
+
- **table:** await queries ([7e18645ead](https://github.com/migrationsverket/midas/commit/7e18645ead))
|
|
41
|
+
- **table:** test medium size prop ([073b317cc8](https://github.com/migrationsverket/midas/commit/073b317cc8))
|
|
42
|
+
- **calendar:** bypass a11y tests on disabled stories ([d1ce956cb5](https://github.com/migrationsverket/midas/commit/d1ce956cb5))
|
|
43
|
+
|
|
44
|
+
### 🎨 Styles
|
|
45
|
+
|
|
46
|
+
- **link-button:** change chevron icon to arrow icon ([#647](https://github.com/migrationsverket/midas/pull/647))
|
|
47
|
+
- **table:** adjust paddings and heights ([b84828bfd7](https://github.com/migrationsverket/midas/commit/b84828bfd7))
|
|
48
|
+
|
|
1
49
|
## 10.1.1 (2025-06-09)
|
|
2
50
|
|
|
3
51
|
### 🩹 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-DoJAtYZf.cjs"),C=require("./Button-DnhqHU01.cjs"),x=require("./Link-SHMbeyIP.cjs"),_=require("./arrow-right-Cw48o2oW.cjs");function h(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(c,t,n.get?n:{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",b="_cardActions_1hl11_39",j="_cardActionArea_1hl11_49",f="_cardImage_1hl11_82",k="_cardLinkIcon_1hl11_114",r={card:m,horizontal:A,cardLink:g,cardContent:I,cardActions:b,cardActionArea:j,cardImage:f,cardLinkIcon:k},i=s.createContext({horizontal:void 0,titleId:void 0}),z=({horizontal:e,className:c,children:t,...n})=>{const d=`card-title-${s.useId()}`;return a.jsx(i.Provider,{value:{horizontal:e,titleId:d},children:a.jsx("div",{...n,className:o.clsx(r.card,e&&r.horizontal,c),children:t})})},L=({children:e,...c})=>{const{horizontal:t}=s.useContext(i);return a.jsx("div",{...c,className:o.clsx(r.cardContent,t&&r.horizontal),children:e})},$=({elementType:e="h2",children:c})=>{const{horizontal:t,titleId:n}=s.useContext(i);return a.jsx(u.Heading,{level:t?5:3,elementType:e,isExpressive:t,className:o.clsx(r.cardTitle,t&&r.horizontal),id:n,children:c})},p=({children:e,...c})=>{const{horizontal:t}=s.useContext(i);return a.jsx("div",{...c,className:o.clsx(r.cardActions,t&&r.horizontal),children:e})},v=({children:e,className:c,...t})=>{const{titleId:n}=s.useContext(i);return a.jsx(C.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{...t,"aria-labelledby":n,className:o.clsx(r.cardActionArea,c),children:e})},N=({as:e="img",className:c,...t})=>a.jsx(e,{...t,className:o.clsx(r.cardImage,c)}),q=({children:e,as:c,...t})=>{const n=c||x.$4f118338184dc1d9$export$a6c7ac8248d6e38a;return a.jsxs(n,{...t,className:o.clsx(r.cardLink,t.className),children:[e,a.jsx(_.ArrowRight,{className:r.cardLinkIcon,size:24})]})};exports.Card=z;exports.CardActionArea=v;exports.CardActions=p;exports.CardContent=L;exports.CardImage=N;exports.CardLink=q;exports.CardTitle=$;
|
package/Card-CaKKKv9k.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-BY5-QN4S.js";
|
|
5
|
+
import { $ as _ } from "./Button-ZOQy9Ivu.js";
|
|
6
|
+
import { $ as h } from "./Link-B-nus-FT.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", $ = "_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: $
|
|
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-HNTsIwux.js";
|
|
4
|
+
import { $ as i } from "./Input-D8Ku_FQz.js";
|
|
5
|
+
import './assets/CharacterCounter.css';const $ = "_characterCounter_4224k_4", m = {
|
|
6
|
+
characterCounter: $
|
|
7
|
+
}, l = d.forwardRef((t, c) => {
|
|
8
|
+
[t] = f(t, c, i);
|
|
9
|
+
const { maxLength: r, value: a, isLonely: n } = t, { length: e } = (a == null ? void 0 : a.toString()) ?? "", o = r !== void 0;
|
|
10
|
+
return /* @__PURE__ */ s(
|
|
11
|
+
"span",
|
|
12
|
+
{
|
|
13
|
+
className: m.characterCounter,
|
|
14
|
+
"data-exceeded": o && e > r || void 0,
|
|
15
|
+
"data-lonely": n || void 0,
|
|
16
|
+
children: o ? `${e} / ${r}` : e
|
|
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),$="_characterCounter_4224k_4",b={characterCounter:$},h=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=h;
|