@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,210 @@
|
|
|
1
|
+
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
+
import { n as _, c as D, $ as E, a as h, b as K } from "./utils-DIMfEPAt.js";
|
|
3
|
+
import P, { useState as F, useRef as N, useMemo as x, forwardRef as B, createContext as S, useContext as M } from "react";
|
|
4
|
+
import { $ as z } from "./useToggleState-Bz5rAf4C.js";
|
|
5
|
+
import { $ as R } from "./useFocusRing-XnR3cZjO.js";
|
|
6
|
+
import { $ as A } from "./useHover-DjIHtjGN.js";
|
|
7
|
+
import { B as v } from "./Button.module-tti8HGxs.js";
|
|
8
|
+
import { c as p } from "./clsx-OuTLNxxd.js";
|
|
9
|
+
import { $ as L } from "./useControlledState-u436Wbp1.js";
|
|
10
|
+
import { $ as G } from "./useButton-B8dB9sot.js";
|
|
11
|
+
import { b as H } from "./FocusScope-CxkURfoc.js";
|
|
12
|
+
import { $ as V } from "./filterDOMProps-D6KHYVBX.js";
|
|
13
|
+
import { $ as k } from "./context-C81gPYvC.js";
|
|
14
|
+
import './assets/ToggleButtonGroup.css';function w(t, e, d) {
|
|
15
|
+
const { isSelected: a } = e, { isPressed: s, buttonProps: l } = G({
|
|
16
|
+
...t,
|
|
17
|
+
onPress: _(e.toggle, t.onPress)
|
|
18
|
+
}, d);
|
|
19
|
+
return {
|
|
20
|
+
isPressed: s,
|
|
21
|
+
isSelected: a,
|
|
22
|
+
isDisabled: t.isDisabled || !1,
|
|
23
|
+
buttonProps: D(l, {
|
|
24
|
+
"aria-pressed": a
|
|
25
|
+
})
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function I(t, e) {
|
|
29
|
+
const { "aria-label": d, "aria-labelledby": a, orientation: s = "horizontal" } = t;
|
|
30
|
+
let [l, n] = F(!1);
|
|
31
|
+
E(() => {
|
|
32
|
+
var o;
|
|
33
|
+
n(!!(e.current && (!((o = e.current.parentElement) === null || o === void 0) && o.closest('[role="toolbar"]'))));
|
|
34
|
+
});
|
|
35
|
+
const { direction: i } = k(), u = i === "rtl" && s === "horizontal";
|
|
36
|
+
let c = H(e);
|
|
37
|
+
const b = (o) => {
|
|
38
|
+
if (o.currentTarget.contains(o.target)) {
|
|
39
|
+
if (s === "horizontal" && o.key === "ArrowRight" || s === "vertical" && o.key === "ArrowDown")
|
|
40
|
+
u ? c.focusPrevious() : c.focusNext();
|
|
41
|
+
else if (s === "horizontal" && o.key === "ArrowLeft" || s === "vertical" && o.key === "ArrowUp")
|
|
42
|
+
u ? c.focusNext() : c.focusPrevious();
|
|
43
|
+
else if (o.key === "Tab") {
|
|
44
|
+
o.stopPropagation(), r.current = document.activeElement, o.shiftKey ? c.focusFirst() : c.focusLast();
|
|
45
|
+
return;
|
|
46
|
+
} else
|
|
47
|
+
return;
|
|
48
|
+
o.stopPropagation(), o.preventDefault();
|
|
49
|
+
}
|
|
50
|
+
}, r = N(null), g = (o) => {
|
|
51
|
+
!o.currentTarget.contains(o.relatedTarget) && !r.current && (r.current = o.target);
|
|
52
|
+
}, $ = (o) => {
|
|
53
|
+
var f;
|
|
54
|
+
if (r.current && !o.currentTarget.contains(o.relatedTarget) && (!((f = e.current) === null || f === void 0) && f.contains(o.target))) {
|
|
55
|
+
var m;
|
|
56
|
+
(m = r.current) === null || m === void 0 || m.focus(), r.current = null;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
return {
|
|
60
|
+
toolbarProps: {
|
|
61
|
+
...V(t, {
|
|
62
|
+
labelable: !0
|
|
63
|
+
}),
|
|
64
|
+
role: l ? "group" : "toolbar",
|
|
65
|
+
"aria-orientation": s,
|
|
66
|
+
"aria-label": d,
|
|
67
|
+
"aria-labelledby": d == null ? a : void 0,
|
|
68
|
+
onKeyDownCapture: l ? void 0 : b,
|
|
69
|
+
onFocusCapture: l ? void 0 : $,
|
|
70
|
+
onBlurCapture: l ? void 0 : g
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function j(t, e, d) {
|
|
75
|
+
let { isDisabled: a } = t, { toolbarProps: s } = I(t, d);
|
|
76
|
+
return {
|
|
77
|
+
groupProps: {
|
|
78
|
+
...s,
|
|
79
|
+
role: e.selectionMode === "single" ? "radiogroup" : s.role,
|
|
80
|
+
"aria-disabled": a
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function U(t, e, d) {
|
|
85
|
+
let a = {
|
|
86
|
+
isSelected: e.selectedKeys.has(t.id),
|
|
87
|
+
setSelected(u) {
|
|
88
|
+
e.setSelected(t.id, u);
|
|
89
|
+
},
|
|
90
|
+
toggle() {
|
|
91
|
+
e.toggleKey(t.id);
|
|
92
|
+
}
|
|
93
|
+
}, { isPressed: s, isSelected: l, isDisabled: n, buttonProps: i } = w({
|
|
94
|
+
...t,
|
|
95
|
+
id: void 0,
|
|
96
|
+
isDisabled: t.isDisabled || e.isDisabled
|
|
97
|
+
}, a, d);
|
|
98
|
+
return e.selectionMode === "single" && (i.role = "radio", i["aria-checked"] = a.isSelected, delete i["aria-pressed"]), {
|
|
99
|
+
isPressed: s,
|
|
100
|
+
isSelected: l,
|
|
101
|
+
isDisabled: n,
|
|
102
|
+
buttonProps: i
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function q(t) {
|
|
106
|
+
let { selectionMode: e = "single", disallowEmptySelection: d, isDisabled: a = !1 } = t, [s, l] = L(x(() => t.selectedKeys ? new Set(t.selectedKeys) : void 0, [
|
|
107
|
+
t.selectedKeys
|
|
108
|
+
]), x(() => t.defaultSelectedKeys ? new Set(t.defaultSelectedKeys) : /* @__PURE__ */ new Set(), [
|
|
109
|
+
t.defaultSelectedKeys
|
|
110
|
+
]), t.onSelectionChange);
|
|
111
|
+
return {
|
|
112
|
+
selectionMode: e,
|
|
113
|
+
isDisabled: a,
|
|
114
|
+
selectedKeys: s,
|
|
115
|
+
setSelectedKeys: l,
|
|
116
|
+
toggleKey(n) {
|
|
117
|
+
let i;
|
|
118
|
+
e === "multiple" ? (i = new Set(s), i.has(n) && (!d || i.size > 1) ? i.delete(n) : i.add(n)) : i = new Set(s.has(n) && !d ? [] : [
|
|
119
|
+
n
|
|
120
|
+
]), l(i);
|
|
121
|
+
},
|
|
122
|
+
setSelected(n, i) {
|
|
123
|
+
i !== s.has(n) && this.toggleKey(n);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
const J = /* @__PURE__ */ S({}), T = /* @__PURE__ */ S(null), O = /* @__PURE__ */ B(function(e, d) {
|
|
128
|
+
[e, d] = h(e, d, J);
|
|
129
|
+
let a = q(e), { groupProps: s } = j(e, a, d), l = K({
|
|
130
|
+
...e,
|
|
131
|
+
values: {
|
|
132
|
+
isDisabled: a.isDisabled,
|
|
133
|
+
state: a
|
|
134
|
+
},
|
|
135
|
+
defaultClassName: "react-aria-ToggleButtonGroup"
|
|
136
|
+
});
|
|
137
|
+
return /* @__PURE__ */ P.createElement("div", {
|
|
138
|
+
...s,
|
|
139
|
+
...l,
|
|
140
|
+
ref: d,
|
|
141
|
+
slot: e.slot || void 0,
|
|
142
|
+
"data-orientation": e.orientation || "horizontal",
|
|
143
|
+
"data-disabled": e.isDisabled || void 0
|
|
144
|
+
}, /* @__PURE__ */ P.createElement(T.Provider, {
|
|
145
|
+
value: a
|
|
146
|
+
}, l.children));
|
|
147
|
+
}), Q = /* @__PURE__ */ S({}), W = /* @__PURE__ */ B(function(e, d) {
|
|
148
|
+
[e, d] = h(e, d, Q);
|
|
149
|
+
let a = M(T), s = z(a && e.id != null ? {
|
|
150
|
+
isSelected: a.selectedKeys.has(e.id),
|
|
151
|
+
onChange(f) {
|
|
152
|
+
a.setSelected(e.id, f);
|
|
153
|
+
}
|
|
154
|
+
} : e), { buttonProps: l, isPressed: n, isSelected: i, isDisabled: u } = a && e.id != null ? U({
|
|
155
|
+
...e,
|
|
156
|
+
id: e.id
|
|
157
|
+
}, a, d) : w({
|
|
158
|
+
...e,
|
|
159
|
+
id: e.id != null ? String(e.id) : void 0
|
|
160
|
+
}, s, d), { focusProps: c, isFocused: b, isFocusVisible: r } = R(e), { hoverProps: g, isHovered: $ } = A(e), o = K({
|
|
161
|
+
...e,
|
|
162
|
+
id: void 0,
|
|
163
|
+
values: {
|
|
164
|
+
isHovered: $,
|
|
165
|
+
isPressed: n,
|
|
166
|
+
isFocused: b,
|
|
167
|
+
isSelected: s.isSelected,
|
|
168
|
+
isFocusVisible: r,
|
|
169
|
+
isDisabled: u,
|
|
170
|
+
state: s
|
|
171
|
+
},
|
|
172
|
+
defaultClassName: "react-aria-ToggleButton"
|
|
173
|
+
});
|
|
174
|
+
return /* @__PURE__ */ P.createElement("button", {
|
|
175
|
+
...D(l, c, g),
|
|
176
|
+
...o,
|
|
177
|
+
ref: d,
|
|
178
|
+
slot: e.slot || void 0,
|
|
179
|
+
"data-focused": b || void 0,
|
|
180
|
+
"data-disabled": u || void 0,
|
|
181
|
+
"data-pressed": n || void 0,
|
|
182
|
+
"data-selected": i || void 0,
|
|
183
|
+
"data-hovered": $ || void 0,
|
|
184
|
+
"data-focus-visible": r || void 0
|
|
185
|
+
});
|
|
186
|
+
}), X = "_group_syep5_4", Y = "_toggleButton_syep5_13", C = {
|
|
187
|
+
group: X,
|
|
188
|
+
toggleButton: Y
|
|
189
|
+
}, fe = ({ ...t }) => /* @__PURE__ */ y(
|
|
190
|
+
W,
|
|
191
|
+
{
|
|
192
|
+
...t,
|
|
193
|
+
className: p(
|
|
194
|
+
v.button,
|
|
195
|
+
v.iconBtn,
|
|
196
|
+
C.toggleButton,
|
|
197
|
+
t.className
|
|
198
|
+
)
|
|
199
|
+
}
|
|
200
|
+
), be = ({ ...t }) => /* @__PURE__ */ y(
|
|
201
|
+
O,
|
|
202
|
+
{
|
|
203
|
+
...t,
|
|
204
|
+
className: p(C.group, t.className)
|
|
205
|
+
}
|
|
206
|
+
);
|
|
207
|
+
export {
|
|
208
|
+
fe as T,
|
|
209
|
+
be as a
|
|
210
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/ToggleButtonGroup.css');const y=require("react/jsx-runtime"),f=require("./utils-BNtZbAib.cjs"),r=require("react"),K=require("./useToggleState-DoIkSQdj.cjs"),T=require("./useFocusRing-CbImDrwF.cjs"),w=require("./useHover-_mv5J4_q.cjs"),v=require("./Button.module-DEQtBYe5.cjs"),D=require("./clsx-C11secjj.cjs"),q=require("./useControlledState-D0L6S_5r.cjs"),C=require("./useButton-cpNi-fY4.cjs"),F=require("./FocusScope-5c9SVBcR.cjs"),M=require("./filterDOMProps-BS2lrgFA.cjs"),E=require("./context-DjwhtgxQ.cjs");function h(t,e,d){const{isSelected:i}=e,{isPressed:o,buttonProps:l}=C.$701a24aa0da5b062$export$ea18c227d4417cc3({...t,onPress:f.$ff5963eb1fccf552$export$e08e3b67e392101e(e.toggle,t.onPress)},d);return{isPressed:o,isSelected:i,isDisabled:t.isDisabled||!1,buttonProps:f.$3ef42575df84b30b$export$9d1611c77c2fe928(l,{"aria-pressed":i})}}function N(t,e){const{"aria-label":d,"aria-labelledby":i,orientation:o="horizontal"}=t;let[l,a]=r.useState(!1);f.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{var s;a(!!(e.current&&(!((s=e.current.parentElement)===null||s===void 0)&&s.closest('[role="toolbar"]'))))});const{direction:n}=E.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),b=n==="rtl"&&o==="horizontal";let u=F.$9bf71ea28793e738$export$c5251b9e124bf29(e);const g=s=>{if(s.currentTarget.contains(s.target)){if(o==="horizontal"&&s.key==="ArrowRight"||o==="vertical"&&s.key==="ArrowDown")b?u.focusPrevious():u.focusNext();else if(o==="horizontal"&&s.key==="ArrowLeft"||o==="vertical"&&s.key==="ArrowUp")b?u.focusNext():u.focusPrevious();else if(s.key==="Tab"){s.stopPropagation(),c.current=document.activeElement,s.shiftKey?u.focusFirst():u.focusLast();return}else return;s.stopPropagation(),s.preventDefault()}},c=r.useRef(null),S=s=>{!s.currentTarget.contains(s.relatedTarget)&&!c.current&&(c.current=s.target)},x=s=>{var $;if(c.current&&!s.currentTarget.contains(s.relatedTarget)&&(!(($=e.current)===null||$===void 0)&&$.contains(s.target))){var P;(P=c.current)===null||P===void 0||P.focus(),c.current=null}};return{toolbarProps:{...M.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),role:l?"group":"toolbar","aria-orientation":o,"aria-label":d,"aria-labelledby":d==null?i:void 0,onKeyDownCapture:l?void 0:g,onFocusCapture:l?void 0:x,onBlurCapture:l?void 0:S}}}function R(t,e,d){let{isDisabled:i}=t,{toolbarProps:o}=N(t,d);return{groupProps:{...o,role:e.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":i}}}function _(t,e,d){let i={isSelected:e.selectedKeys.has(t.id),setSelected(b){e.setSelected(t.id,b)},toggle(){e.toggleKey(t.id)}},{isPressed:o,isSelected:l,isDisabled:a,buttonProps:n}=h({...t,id:void 0,isDisabled:t.isDisabled||e.isDisabled},i,d);return e.selectionMode==="single"&&(n.role="radio",n["aria-checked"]=i.isSelected,delete n["aria-pressed"]),{isPressed:o,isSelected:l,isDisabled:a,buttonProps:n}}function p(t){let{selectionMode:e="single",disallowEmptySelection:d,isDisabled:i=!1}=t,[o,l]=q.$458b0a5536c1a7cf$export$40bfa8c7b0832715(r.useMemo(()=>t.selectedKeys?new Set(t.selectedKeys):void 0,[t.selectedKeys]),r.useMemo(()=>t.defaultSelectedKeys?new Set(t.defaultSelectedKeys):new Set,[t.defaultSelectedKeys]),t.onSelectionChange);return{selectionMode:e,isDisabled:i,selectedKeys:o,setSelectedKeys:l,toggleKey(a){let n;e==="multiple"?(n=new Set(o),n.has(a)&&(!d||n.size>1)?n.delete(a):n.add(a)):n=new Set(o.has(a)&&!d?[]:[a]),l(n)},setSelected(a,n){n!==o.has(a)&&this.toggleKey(a)}}}const z=r.createContext({}),m=r.createContext(null),A=r.forwardRef(function(e,d){[e,d]=f.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,z);let i=p(e),{groupProps:o}=R(e,i,d),l=f.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{isDisabled:i.isDisabled,state:i},defaultClassName:"react-aria-ToggleButtonGroup"});return r.createElement("div",{...o,...l,ref:d,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal","data-disabled":e.isDisabled||void 0},r.createElement(m.Provider,{value:i},l.children))}),G=r.createContext({}),H=r.forwardRef(function(e,d){[e,d]=f.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,G);let i=r.useContext(m),o=K.$3017fa7ffdddec74$export$8042c6c013fd5226(i&&e.id!=null?{isSelected:i.selectedKeys.has(e.id),onChange($){i.setSelected(e.id,$)}}:e),{buttonProps:l,isPressed:a,isSelected:n,isDisabled:b}=i&&e.id!=null?_({...e,id:e.id},i,d):h({...e,id:e.id!=null?String(e.id):void 0},o,d),{focusProps:u,isFocused:g,isFocusVisible:c}=T.$f7dceffc5ad7768b$export$4e328f61c538687f(e),{hoverProps:S,isHovered:x}=w.$6179b936705e76d3$export$ae780daf29e6d456(e),s=f.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,values:{isHovered:x,isPressed:a,isFocused:g,isSelected:o.isSelected,isFocusVisible:c,isDisabled:b,state:o},defaultClassName:"react-aria-ToggleButton"});return r.createElement("button",{...f.$3ef42575df84b30b$export$9d1611c77c2fe928(l,u,S),...s,ref:d,slot:e.slot||void 0,"data-focused":g||void 0,"data-disabled":b||void 0,"data-pressed":a||void 0,"data-selected":n||void 0,"data-hovered":x||void 0,"data-focus-visible":c||void 0})}),L="_group_syep5_4",j="_toggleButton_syep5_13",B={group:L,toggleButton:j},V=({...t})=>y.jsx(H,{...t,className:D.clsx(v.ButtonStyles.button,v.ButtonStyles.iconBtn,B.toggleButton,t.className)}),k=({...t})=>y.jsx(A,{...t,className:D.clsx(B.group,t.className)});exports.ToggleButton=V;exports.ToggleButtonGroup=k;
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import { jsxs as F, jsx as h } from "react/jsx-runtime";
|
|
2
|
+
import { c as N } from "./clsx-OuTLNxxd.js";
|
|
3
|
+
import { d as W, a as j, b as U, e as K, c as V, f as z, $ as Y } from "./OverlayArrow-CDLXPTew.js";
|
|
4
|
+
import { k as q, c as y, e as G, a as J, j as Q, $ as X, b as Z } from "./utils-DIMfEPAt.js";
|
|
5
|
+
import { $ as ee, c as te } from "./useFocusable-C8uh8K4g.js";
|
|
6
|
+
import c, { useContext as E, useState as _, useMemo as L, useRef as m, useEffect as O, forwardRef as re, createContext as M } from "react";
|
|
7
|
+
import oe from "react-dom";
|
|
8
|
+
import { $ as H, r as le, j as ne } from "./useHover-DjIHtjGN.js";
|
|
9
|
+
import { $ as ae } from "./filterDOMProps-D6KHYVBX.js";
|
|
10
|
+
import './assets/Tooltip.css';const w = /* @__PURE__ */ c.createContext(null);
|
|
11
|
+
function ie(t) {
|
|
12
|
+
let { children: r } = t, e = E(w), [n, a] = _(0), i = L(() => ({
|
|
13
|
+
parent: e,
|
|
14
|
+
modalCount: n,
|
|
15
|
+
addModal() {
|
|
16
|
+
a((l) => l + 1), e && e.addModal();
|
|
17
|
+
},
|
|
18
|
+
removeModal() {
|
|
19
|
+
a((l) => l - 1), e && e.removeModal();
|
|
20
|
+
}
|
|
21
|
+
}), [
|
|
22
|
+
e,
|
|
23
|
+
n
|
|
24
|
+
]);
|
|
25
|
+
return /* @__PURE__ */ c.createElement(w.Provider, {
|
|
26
|
+
value: i
|
|
27
|
+
}, r);
|
|
28
|
+
}
|
|
29
|
+
function ce() {
|
|
30
|
+
let t = E(w);
|
|
31
|
+
return {
|
|
32
|
+
modalProviderProps: {
|
|
33
|
+
"aria-hidden": t && t.modalCount > 0 ? !0 : void 0
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function fe(t) {
|
|
38
|
+
let { modalProviderProps: r } = ce();
|
|
39
|
+
return /* @__PURE__ */ c.createElement("div", {
|
|
40
|
+
"data-overlay-container": !0,
|
|
41
|
+
...t,
|
|
42
|
+
...r
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function de(t) {
|
|
46
|
+
return /* @__PURE__ */ c.createElement(ie, null, /* @__PURE__ */ c.createElement(fe, t));
|
|
47
|
+
}
|
|
48
|
+
function ue(t) {
|
|
49
|
+
let r = q(), { portalContainer: e = r ? null : document.body, ...n } = t, { getContainer: a } = W();
|
|
50
|
+
if (!t.portalContainer && a && (e = a()), c.useEffect(() => {
|
|
51
|
+
if (e != null && e.closest("[data-overlay-container]")) throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.");
|
|
52
|
+
}, [
|
|
53
|
+
e
|
|
54
|
+
]), !e) return null;
|
|
55
|
+
let i = /* @__PURE__ */ c.createElement(de, n);
|
|
56
|
+
return /* @__PURE__ */ oe.createPortal(i, e);
|
|
57
|
+
}
|
|
58
|
+
function se(t, r) {
|
|
59
|
+
let e = ae(t, {
|
|
60
|
+
labelable: !0
|
|
61
|
+
}), { hoverProps: n } = H({
|
|
62
|
+
onHoverStart: () => r == null ? void 0 : r.open(!0),
|
|
63
|
+
onHoverEnd: () => r == null ? void 0 : r.close()
|
|
64
|
+
});
|
|
65
|
+
return {
|
|
66
|
+
tooltipProps: y(e, n, {
|
|
67
|
+
role: "tooltip"
|
|
68
|
+
})
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function $e(t, r, e) {
|
|
72
|
+
let { isDisabled: n, trigger: a } = t, i = G(), l = m(!1), o = m(!1), u = () => {
|
|
73
|
+
(l.current || o.current) && r.open(o.current);
|
|
74
|
+
}, f = (g) => {
|
|
75
|
+
!l.current && !o.current && r.close(g);
|
|
76
|
+
};
|
|
77
|
+
O(() => {
|
|
78
|
+
let g = (R) => {
|
|
79
|
+
e && e.current && R.key === "Escape" && (R.stopPropagation(), r.close(!0));
|
|
80
|
+
};
|
|
81
|
+
if (r.isOpen)
|
|
82
|
+
return document.addEventListener("keydown", g, !0), () => {
|
|
83
|
+
document.removeEventListener("keydown", g, !0);
|
|
84
|
+
};
|
|
85
|
+
}, [
|
|
86
|
+
e,
|
|
87
|
+
r
|
|
88
|
+
]);
|
|
89
|
+
let b = () => {
|
|
90
|
+
a !== "focus" && (le() === "pointer" ? l.current = !0 : l.current = !1, u());
|
|
91
|
+
}, v = () => {
|
|
92
|
+
a !== "focus" && (o.current = !1, l.current = !1, f());
|
|
93
|
+
}, x = () => {
|
|
94
|
+
o.current = !1, l.current = !1, f(!0);
|
|
95
|
+
}, T = () => {
|
|
96
|
+
ne() && (o.current = !0, u());
|
|
97
|
+
}, d = () => {
|
|
98
|
+
o.current = !1, l.current = !1, f(!0);
|
|
99
|
+
}, { hoverProps: k } = H({
|
|
100
|
+
isDisabled: n,
|
|
101
|
+
onHoverStart: b,
|
|
102
|
+
onHoverEnd: v
|
|
103
|
+
}), { focusableProps: A } = ee({
|
|
104
|
+
isDisabled: n,
|
|
105
|
+
onFocus: T,
|
|
106
|
+
onBlur: d
|
|
107
|
+
}, e);
|
|
108
|
+
return {
|
|
109
|
+
triggerProps: {
|
|
110
|
+
"aria-describedby": r.isOpen ? i : void 0,
|
|
111
|
+
...y(A, k, {
|
|
112
|
+
onPointerDown: x,
|
|
113
|
+
onKeyDown: x,
|
|
114
|
+
tabIndex: void 0
|
|
115
|
+
})
|
|
116
|
+
},
|
|
117
|
+
tooltipProps: {
|
|
118
|
+
id: i
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
const pe = 1500, D = 500;
|
|
123
|
+
let $ = {}, be = 0, P = !1, s = null, p = null;
|
|
124
|
+
function B(t = {}) {
|
|
125
|
+
let { delay: r = pe, closeDelay: e = D } = t, { isOpen: n, open: a, close: i } = j(t), l = L(() => `${++be}`, []), o = m(null), u = m(i), f = () => {
|
|
126
|
+
$[l] = x;
|
|
127
|
+
}, b = () => {
|
|
128
|
+
for (let d in $) d !== l && ($[d](!0), delete $[d]);
|
|
129
|
+
}, v = () => {
|
|
130
|
+
o.current && clearTimeout(o.current), o.current = null, b(), f(), P = !0, a(), s && (clearTimeout(s), s = null), p && (clearTimeout(p), p = null);
|
|
131
|
+
}, x = (d) => {
|
|
132
|
+
d || e <= 0 ? (o.current && clearTimeout(o.current), o.current = null, u.current()) : o.current || (o.current = setTimeout(() => {
|
|
133
|
+
o.current = null, u.current();
|
|
134
|
+
}, e)), s && (clearTimeout(s), s = null), P && (p && clearTimeout(p), p = setTimeout(() => {
|
|
135
|
+
delete $[l], p = null, P = !1;
|
|
136
|
+
}, Math.max(D, e)));
|
|
137
|
+
}, T = () => {
|
|
138
|
+
b(), f(), !n && !s && !P ? s = setTimeout(() => {
|
|
139
|
+
s = null, P = !0, v();
|
|
140
|
+
}, r) : n || v();
|
|
141
|
+
};
|
|
142
|
+
return O(() => {
|
|
143
|
+
u.current = i;
|
|
144
|
+
}, [
|
|
145
|
+
i
|
|
146
|
+
]), O(() => () => {
|
|
147
|
+
o.current && clearTimeout(o.current), $[l] && delete $[l];
|
|
148
|
+
}, [
|
|
149
|
+
l
|
|
150
|
+
]), {
|
|
151
|
+
isOpen: n,
|
|
152
|
+
open: (d) => {
|
|
153
|
+
!d && r > 0 && !o.current ? T() : v();
|
|
154
|
+
},
|
|
155
|
+
close: x
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
const C = /* @__PURE__ */ M(null), I = /* @__PURE__ */ M(null);
|
|
159
|
+
function me(t) {
|
|
160
|
+
let r = B(t), e = m(null), { triggerProps: n, tooltipProps: a } = $e(t, r, e);
|
|
161
|
+
return /* @__PURE__ */ c.createElement(Q, {
|
|
162
|
+
values: [
|
|
163
|
+
[
|
|
164
|
+
C,
|
|
165
|
+
r
|
|
166
|
+
],
|
|
167
|
+
[
|
|
168
|
+
I,
|
|
169
|
+
{
|
|
170
|
+
...a,
|
|
171
|
+
triggerRef: e
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
]
|
|
175
|
+
}, /* @__PURE__ */ c.createElement(te, {
|
|
176
|
+
...n,
|
|
177
|
+
ref: e
|
|
178
|
+
}, t.children));
|
|
179
|
+
}
|
|
180
|
+
const ve = /* @__PURE__ */ re(function({ UNSTABLE_portalContainer: r, ...e }, n) {
|
|
181
|
+
[e, n] = J(e, n, I);
|
|
182
|
+
let a = E(C), i = B(e), l = e.isOpen != null || e.defaultOpen != null || !a ? i : a, o = U(n, l.isOpen) || e.isExiting || !1;
|
|
183
|
+
return !l.isOpen && !o ? null : /* @__PURE__ */ c.createElement(ue, {
|
|
184
|
+
portalContainer: r
|
|
185
|
+
}, /* @__PURE__ */ c.createElement(xe, {
|
|
186
|
+
...e,
|
|
187
|
+
tooltipRef: n,
|
|
188
|
+
isExiting: o
|
|
189
|
+
}));
|
|
190
|
+
});
|
|
191
|
+
function xe(t) {
|
|
192
|
+
let r = E(C), e = m(null), [n, a] = _(0);
|
|
193
|
+
X(() => {
|
|
194
|
+
e.current && r.isOpen && a(e.current.getBoundingClientRect().width);
|
|
195
|
+
}, [
|
|
196
|
+
r.isOpen,
|
|
197
|
+
e
|
|
198
|
+
]);
|
|
199
|
+
let { overlayProps: i, arrowProps: l, placement: o } = K({
|
|
200
|
+
placement: t.placement || "top",
|
|
201
|
+
targetRef: t.triggerRef,
|
|
202
|
+
overlayRef: t.tooltipRef,
|
|
203
|
+
offset: t.offset,
|
|
204
|
+
crossOffset: t.crossOffset,
|
|
205
|
+
isOpen: r.isOpen,
|
|
206
|
+
arrowSize: n,
|
|
207
|
+
arrowBoundaryOffset: t.arrowBoundaryOffset,
|
|
208
|
+
shouldFlip: t.shouldFlip,
|
|
209
|
+
onClose: () => r.close(!0)
|
|
210
|
+
}), u = V(t.tooltipRef, !!o) || t.isEntering || !1, f = Z({
|
|
211
|
+
...t,
|
|
212
|
+
defaultClassName: "react-aria-Tooltip",
|
|
213
|
+
values: {
|
|
214
|
+
placement: o,
|
|
215
|
+
isEntering: u,
|
|
216
|
+
isExiting: t.isExiting,
|
|
217
|
+
state: r
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
t = y(t, i);
|
|
221
|
+
let { tooltipProps: b } = se(t, r);
|
|
222
|
+
return /* @__PURE__ */ c.createElement("div", {
|
|
223
|
+
...b,
|
|
224
|
+
ref: t.tooltipRef,
|
|
225
|
+
...f,
|
|
226
|
+
style: {
|
|
227
|
+
...i.style,
|
|
228
|
+
...f.style
|
|
229
|
+
},
|
|
230
|
+
"data-placement": o ?? void 0,
|
|
231
|
+
"data-entering": u || void 0,
|
|
232
|
+
"data-exiting": t.isExiting || void 0
|
|
233
|
+
}, /* @__PURE__ */ c.createElement(z.Provider, {
|
|
234
|
+
value: {
|
|
235
|
+
...l,
|
|
236
|
+
placement: o,
|
|
237
|
+
ref: e
|
|
238
|
+
}
|
|
239
|
+
}, f.children));
|
|
240
|
+
}
|
|
241
|
+
const ge = "_tooltip_1l8u8_4", Pe = "_arrow_1l8u8_17", S = {
|
|
242
|
+
tooltip: ge,
|
|
243
|
+
arrow: Pe
|
|
244
|
+
};
|
|
245
|
+
function Se({ children: t, className: r, ...e }) {
|
|
246
|
+
return /* @__PURE__ */ F(
|
|
247
|
+
ve,
|
|
248
|
+
{
|
|
249
|
+
className: N(S.tooltip, r),
|
|
250
|
+
...e,
|
|
251
|
+
children: [
|
|
252
|
+
/* @__PURE__ */ h(Y, { className: S.arrow, children: /* @__PURE__ */ h(
|
|
253
|
+
"svg",
|
|
254
|
+
{
|
|
255
|
+
width: 8,
|
|
256
|
+
height: 8,
|
|
257
|
+
viewBox: "0 0 8 8",
|
|
258
|
+
children: /* @__PURE__ */ h("path", { d: "M0 0 L4 4 L8 0" })
|
|
259
|
+
}
|
|
260
|
+
) }),
|
|
261
|
+
t
|
|
262
|
+
]
|
|
263
|
+
}
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
function _e({
|
|
267
|
+
children: t,
|
|
268
|
+
delay: r = 0,
|
|
269
|
+
...e
|
|
270
|
+
}) {
|
|
271
|
+
return /* @__PURE__ */ h(
|
|
272
|
+
me,
|
|
273
|
+
{
|
|
274
|
+
delay: r,
|
|
275
|
+
...e,
|
|
276
|
+
children: t
|
|
277
|
+
}
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
export {
|
|
281
|
+
Se as T,
|
|
282
|
+
_e as a
|
|
283
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Tooltip.css');const T=require("react/jsx-runtime"),_=require("./clsx-C11secjj.cjs"),x=require("./OverlayArrow-D75k-EMl.cjs"),$=require("./utils-BNtZbAib.cjs"),S=require("./useFocusable-NUVSFcRC.cjs"),o=require("react"),B=require("react-dom"),h=require("./useHover-_mv5J4_q.cjs"),I=require("./filterDOMProps-BS2lrgFA.cjs"),w=o.createContext(null);function j(t){let{children:r}=t,e=o.useContext(w),[a,i]=o.useState(0),c=o.useMemo(()=>({parent:e,modalCount:a,addModal(){i(l=>l+1),e&&e.addModal()},removeModal(){i(l=>l-1),e&&e.removeModal()}}),[e,a]);return o.createElement(w.Provider,{value:c},r)}function A(){let t=o.useContext(w);return{modalProviderProps:{"aria-hidden":t&&t.modalCount>0?!0:void 0}}}function F(t){let{modalProviderProps:r}=A();return o.createElement("div",{"data-overlay-container":!0,...t,...r})}function N(t){return o.createElement(j,null,o.createElement(F,t))}function W(t){let r=$.$b5e257d569688ac6$export$535bd6ca7f90a273(),{portalContainer:e=r?null:document.body,...a}=t,{getContainer:i}=x.$96b38030c423d352$export$9fc1347d4195ccb3();if(!t.portalContainer&&i&&(e=i()),o.useEffect(()=>{if(e!=null&&e.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[e]),!e)return null;let c=o.createElement(N,a);return B.createPortal(c,e)}function k(t,r){let e=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),{hoverProps:a}=h.$6179b936705e76d3$export$ae780daf29e6d456({onHoverStart:()=>r==null?void 0:r.open(!0),onHoverEnd:()=>r==null?void 0:r.close()});return{tooltipProps:$.$3ef42575df84b30b$export$9d1611c77c2fe928(e,a,{role:"tooltip"})}}function U(t,r,e){let{isDisabled:a,trigger:i}=t,c=$.$bdb11010cef70236$export$f680877a34711e37(),l=o.useRef(!1),n=o.useRef(!1),d=()=>{(l.current||n.current)&&r.open(n.current)},u=P=>{!l.current&&!n.current&&r.close(P)};o.useEffect(()=>{let P=y=>{e&&e.current&&y.key==="Escape"&&(y.stopPropagation(),r.close(!0))};if(r.isOpen)return document.addEventListener("keydown",P,!0),()=>{document.removeEventListener("keydown",P,!0)}},[e,r]);let m=()=>{i!=="focus"&&(h.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?l.current=!0:l.current=!1,d())},v=()=>{i!=="focus"&&(n.current=!1,l.current=!1,u())},g=()=>{n.current=!1,l.current=!1,u(!0)},O=()=>{h.$507fabe10e71c6fb$export$b9b3dfddab17db27()&&(n.current=!0,d())},f=()=>{n.current=!1,l.current=!1,u(!0)},{hoverProps:H}=h.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:a,onHoverStart:m,onHoverEnd:v}),{focusableProps:L}=S.$f645667febf57a63$export$4c014de7c8940b4c({isDisabled:a,onFocus:O,onBlur:f},e);return{triggerProps:{"aria-describedby":r.isOpen?c:void 0,...$.$3ef42575df84b30b$export$9d1611c77c2fe928(L,H,{onPointerDown:g,onKeyDown:g,tabIndex:void 0})},tooltipProps:{id:c}}}const K=1500,R=500;let p={},V=0,E=!1,s=null,b=null;function M(t={}){let{delay:r=K,closeDelay:e=R}=t,{isOpen:a,open:i,close:c}=x.$fc909762b330b746$export$61c6a8c84e605fb6(t),l=o.useMemo(()=>`${++V}`,[]),n=o.useRef(null),d=o.useRef(c),u=()=>{p[l]=g},m=()=>{for(let f in p)f!==l&&(p[f](!0),delete p[f])},v=()=>{n.current&&clearTimeout(n.current),n.current=null,m(),u(),E=!0,i(),s&&(clearTimeout(s),s=null),b&&(clearTimeout(b),b=null)},g=f=>{f||e<=0?(n.current&&clearTimeout(n.current),n.current=null,d.current()):n.current||(n.current=setTimeout(()=>{n.current=null,d.current()},e)),s&&(clearTimeout(s),s=null),E&&(b&&clearTimeout(b),b=setTimeout(()=>{delete p[l],b=null,E=!1},Math.max(R,e)))},O=()=>{m(),u(),!a&&!s&&!E?s=setTimeout(()=>{s=null,E=!0,v()},r):a||v()};return o.useEffect(()=>{d.current=c},[c]),o.useEffect(()=>()=>{n.current&&clearTimeout(n.current),p[l]&&delete p[l]},[l]),{isOpen:a,open:f=>{!f&&r>0&&!n.current?O():v()},close:g}}const C=o.createContext(null),q=o.createContext(null);function z(t){let r=M(t),e=o.useRef(null),{triggerProps:a,tooltipProps:i}=U(t,r,e);return o.createElement($.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[C,r],[q,{...i,triggerRef:e}]]},o.createElement(S.$f645667febf57a63$export$13f3202a3e5ddd5,{...a,ref:e},t.children))}const Y=o.forwardRef(function({UNSTABLE_portalContainer:r,...e},a){[e,a]=$.$64fa3d84918910a7$export$29f1550f4b0d4415(e,a,q);let i=o.useContext(C),c=M(e),l=e.isOpen!=null||e.defaultOpen!=null||!i?c:i,n=x.$d3f049242431219c$export$45fda7c47f93fd48(a,l.isOpen)||e.isExiting||!1;return!l.isOpen&&!n?null:o.createElement(W,{portalContainer:r},o.createElement(G,{...e,tooltipRef:a,isExiting:n}))});function G(t){let r=o.useContext(C),e=o.useRef(null),[a,i]=o.useState(0);$.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e.current&&r.isOpen&&i(e.current.getBoundingClientRect().width)},[r.isOpen,e]);let{overlayProps:c,arrowProps:l,placement:n}=x.$2a41e45df1593e64$export$d39e1813b3bdd0e1({placement:t.placement||"top",targetRef:t.triggerRef,overlayRef:t.tooltipRef,offset:t.offset,crossOffset:t.crossOffset,isOpen:r.isOpen,arrowSize:a,arrowBoundaryOffset:t.arrowBoundaryOffset,shouldFlip:t.shouldFlip,onClose:()=>r.close(!0)}),d=x.$d3f049242431219c$export$6d3443f2c48bfc20(t.tooltipRef,!!n)||t.isEntering||!1,u=$.$64fa3d84918910a7$export$4d86445c2cf5e3({...t,defaultClassName:"react-aria-Tooltip",values:{placement:n,isEntering:d,isExiting:t.isExiting,state:r}});t=$.$3ef42575df84b30b$export$9d1611c77c2fe928(t,c);let{tooltipProps:m}=k(t,r);return o.createElement("div",{...m,ref:t.tooltipRef,...u,style:{...c.style,...u.style},"data-placement":n??void 0,"data-entering":d||void 0,"data-exiting":t.isExiting||void 0},o.createElement(x.$44f671af83e7d9e0$export$2de4954e8ae13b9f.Provider,{value:{...l,placement:n,ref:e}},u.children))}const J="_tooltip_1l8u8_4",Q="_arrow_1l8u8_17",D={tooltip:J,arrow:Q};function X({children:t,className:r,...e}){return T.jsxs(Y,{className:_.clsx(D.tooltip,r),...e,children:[T.jsx(x.$44f671af83e7d9e0$export$746d02f47f4d381,{className:D.arrow,children:T.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",children:T.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),t]})}function Z({children:t,delay:r=0,...e}){return T.jsx(z,{delay:r,...e,children:t})}exports.Tooltip=X;exports.TooltipTrigger=Z;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./utils-BNtZbAib.cjs"),o=require("react"),f=require("./useFocusRing-CbImDrwF.cjs"),n={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"};function a(t={}){let{style:e,isFocusable:s}=t,[i,l]=o.useState(!1),{focusWithinProps:c}=f.$9ab94262bd0047c7$export$420e68273165f4ec({isDisabled:!s,onFocusWithinChange:d=>l(d)}),r=o.useMemo(()=>i?e:e?{...n,...e}:n,[i]);return{visuallyHiddenProps:{...c,style:r}}}function $(t){let{children:e,elementType:s="div",isFocusable:i,style:l,...c}=t,{visuallyHiddenProps:r}=a(t);return o.createElement(s,u.$3ef42575df84b30b$export$9d1611c77c2fe928(c,r),e)}exports.$5c3e21d68f1c4674$export$439d29a4e110a164=$;exports.$5c3e21d68f1c4674$export$a966af930f325cab=a;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { c as n } from "./utils-DIMfEPAt.js";
|
|
2
|
+
import d, { useState as u, useMemo as p } from "react";
|
|
3
|
+
import { a as f } from "./useFocusRing-XnR3cZjO.js";
|
|
4
|
+
const a = {
|
|
5
|
+
border: 0,
|
|
6
|
+
clip: "rect(0 0 0 0)",
|
|
7
|
+
clipPath: "inset(50%)",
|
|
8
|
+
height: "1px",
|
|
9
|
+
margin: "-1px",
|
|
10
|
+
overflow: "hidden",
|
|
11
|
+
padding: 0,
|
|
12
|
+
position: "absolute",
|
|
13
|
+
width: "1px",
|
|
14
|
+
whiteSpace: "nowrap"
|
|
15
|
+
};
|
|
16
|
+
function $(t = {}) {
|
|
17
|
+
let { style: e, isFocusable: s } = t, [i, r] = u(!1), { focusWithinProps: o } = f({
|
|
18
|
+
isDisabled: !s,
|
|
19
|
+
onFocusWithinChange: (c) => r(c)
|
|
20
|
+
}), l = p(() => i ? e : e ? {
|
|
21
|
+
...a,
|
|
22
|
+
...e
|
|
23
|
+
} : a, [
|
|
24
|
+
i
|
|
25
|
+
]);
|
|
26
|
+
return {
|
|
27
|
+
visuallyHiddenProps: {
|
|
28
|
+
...o,
|
|
29
|
+
style: l
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function y(t) {
|
|
34
|
+
let { children: e, elementType: s = "div", isFocusable: i, style: r, ...o } = t, { visuallyHiddenProps: l } = $(t);
|
|
35
|
+
return /* @__PURE__ */ d.createElement(s, n(o, l), e);
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
y as $,
|
|
39
|
+
$ as a
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../AccordionItem-BGWiWjxA.cjs");exports.Accordion=o.Accordion;exports.AccordionItem=o.AccordionItem;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { c as r } from "./createLucideIcon-DeWljiyi.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.453.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const o = r("ArrowRight", [
|
|
9
|
+
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
10
|
+
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
11
|
+
]);
|
|
12
|
+
export {
|
|
13
|
+
o as A
|
|
14
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";const e=require("./createLucideIcon-Cg_wkoIA.cjs");/**
|
|
2
|
+
* @license lucide-react v0.453.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const r=e.createLucideIcon("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);exports.ArrowRight=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._root_1t40y_4{--gap: .75rem;--item-padding: 0;--content-padding: .5rem .5rem .5rem 1.85rem;--border: none;--accordion-background: transparent;--accordion-background-hover: transparent;--heading-color: light-dark(#171717, #f2f2f2);font-family:Inter,sans-serif;color:light-dark(#171717,#f2f2f2);width:100%;display:flex;flex-direction:column;gap:var(--gap)}._root_1t40y_4._contained_1t40y_13{--gap: .25rem;--item-padding: .75rem;--content-padding: 1rem;--border-color: light-dark(#737373, #8c8c8c);--border: 1px solid var(--border-color);--accordion-background: light-dark(#f2f2f2, #262626);--accordion-background-hover: light-dark(#e6e6e6, #333333)}._root_1t40y_4._contained_1t40y_13 ._item_1t40y_22._success_1t40y_23{--accordion-background: light-dark(#d5f2d9, light-dark(#f2f2f2, #262626));--accordion-background-hover: light-dark(#bae5c5, light-dark(#e6e6e6, #333333));--icon-color: light-dark(#008d3c, #008d3c);--border-color: light-dark(#008d3c, #008d3c)}._root_1t40y_4._contained_1t40y_13 ._item_1t40y_22._warning_1t40y_30{--accordion-background: light-dark(#ffdfdf, light-dark(#f2f2f2, #262626));--accordion-background-hover: light-dark(#fcc8c8, light-dark(#e6e6e6, #333333));--icon-color: light-dark(#e62323, #e62323);--border-color: light-dark(#e62323, #e62323)}._root_1t40y_4._contained_1t40y_13 ._item_1t40y_22[data-disabled]{--border-color: light-dark(#bfbfbf, #525252)}._root_1t40y_4._uncontained_1t40y_43 ._item_1t40y_22:last-of-type ._content_1t40y_44{padding-bottom:.1px}._root_1t40y_4[data-disabled]{--heading-color: light-dark(#bfbfbf, #525252)}._root_1t40y_4[data-disabled] ._triggerButton_1t40y_52{background:transparent}._item_1t40y_22{background-color:var(--accordion-background);border:var(--border);border-color:var(--border-color)}._trigger_1t40y_52{color:var(--heading-color);border:0;cursor:pointer;margin:0}._trigger_1t40y_52 ._triggerMainContent_1t40y_77{flex:1 0 0;text-align:left}._trigger_1t40y_52 ._triggerMainContent_1t40y_77 ._triggerText_1t40y_81{margin:0;padding:0;color:var(--heading-color)}._trigger_1t40y_52 ._triggerButton_1t40y_52{color:var(--heading-color);width:100%;padding:var(--item-padding);align-items:flex-start;min-height:unset}._trigger_1t40y_52 ._triggerButton_1t40y_52 ._chevronIcon_1t40y_95{transform:rotate(0);transition:transform .3s ease;padding:.125rem 0}._trigger_1t40y_52 ._triggerButton_1t40y_52 ._statusIcon_1t40y_101{color:var(--icon-color);padding:.125rem 0}._trigger_1t40y_52 ._triggerButton_1t40y_52[aria-expanded=true] ._chevronIcon_1t40y_95{transform:rotate(-180deg);transition:transform .3s ease}._trigger_1t40y_52 ._triggerButton_1t40y_52[data-hovered]{background-color:var(--accordion-background-hover)}._panel_1t40y_119[aria-hidden=true]{height:0;transition:.25s cubic-bezier(.16,1,.3,1) allow-discrete;overflow-y:clip}._panel_1t40y_119[aria-hidden=false]{transition:.25s cubic-bezier(.16,1,.3,1) allow-discrete;height:auto;height:calc-size(min-content,size)}._content_1t40y_44{height:auto;padding:var(--content-padding)}._hasBackground_1t40y_136{background-color:light-dark(#ffffff,#171717)}._header_1t40y_140{margin:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._badge_1ot1r_4{font-family:Inter,sans-serif;background-color:#e62323;min-width:.5rem;min-height:.5rem;border-radius:.5rem;font-size:.625rem;color:light-dark(#ffffff,#ffffff)}._badge_1ot1r_4._hasChildren_1ot1r_13{display:flex;align-items:center;justify-content:center;padding:0 .25rem;min-height:1rem}._badgeContainer_1ot1r_22{display:flex;position:relative}._badgeContainer_1ot1r_22 ._badge_1ot1r_4{position:absolute;top:0;right:0;transform:translate(50%,-50%);transform-origin:center left}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._container_1fsfi_4{padding-inline-start:0;font-family:Inter,sans-serif;display:flex;flex-flow:row wrap;gap:.25rem;list-style:none;margin:0}._container_1fsfi_4 li:not(:last-child):after{color:light-dark(#bfbfbf,#525252);content:"/";alt:" ";padding:0 5px}._container_1fsfi_4 li[data-current=true] a{cursor:default}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._button_cz5bk_4{--border-width: 1px;font-family:Inter,sans-serif;font-size:1rem;font-weight:500;padding:calc(.875rem - var(--border-width)) calc(2rem - var(--border-width));line-height:1.25rem;background-color:light-dark(#143c50,#2e7ca5);border:solid var(--border-width) transparent;color:light-dark(#ffffff,#ffffff);cursor:pointer;opacity:1;outline:none;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:.5rem}._button_cz5bk_4[data-focus-visible],._button_cz5bk_4:focus-visible{box-shadow:0 0 0 2px light-dark(white,black),0 0 0 4px light-dark(black,white)}@media (forced-colors: active){._button_cz5bk_4[data-focus-visible],._button_cz5bk_4:focus-visible{outline:3px solid highlight;outline-offset:2px}}._button_cz5bk_4[data-hovered]{background-color:light-dark(#25607f,#25607f)}._button_cz5bk_4[data-pressed]{background-color:light-dark(#2e7ca5,#143c50);outline:none}._button_cz5bk_4[data-disabled]{color:light-dark(#bfbfbf,#525252);cursor:not-allowed;background-color:light-dark(#f2f2f2,#262626)}._secondary_cz5bk_51{color:light-dark(#143c50,#f2f2f2);background-color:light-dark(#ffffff,#171717);border-color:light-dark(light-dark(#143c50,#2e7ca5),#f2f2f2);opacity:1}._secondary_cz5bk_51[data-hovered]{background-color:light-dark(#e6e6e6,#212121)}._secondary_cz5bk_51[data-disabled]{color:light-dark(#bfbfbf,#525252);cursor:not-allowed;background-color:light-dark(#f2f2f2,#262626);border-color:light-dark(#bfbfbf,#525252)}._secondary_cz5bk_51[data-pressed]{background-color:light-dark(#d9d9d9,#262626);border-color:light-dark(#143c50,#f2f2f2)}._tertiary_cz5bk_74{color:light-dark(#143c50,#f2f2f2);background-color:transparent;opacity:1}._tertiary_cz5bk_74[data-hovered]{background-color:light-dark(#e6e6e6,#212121)}._tertiary_cz5bk_74[data-disabled]{color:light-dark(#bfbfbf,#525252);cursor:not-allowed;background-color:#fff}._tertiary_cz5bk_74[data-pressed]{background-color:light-dark(#d9d9d9,#262626)}._iconBtn_cz5bk_94{background-color:transparent;padding:calc(.875rem - var(--border-width));color:light-dark(#171717,#f2f2f2);display:flex;align-items:center}._iconBtn_cz5bk_94[data-hovered]{background-color:light-dark(rgba(0 0 0 / 10%),rgba(255 255 255 / 10%))}._iconBtn_cz5bk_94[data-disabled]{color:light-dark(#bfbfbf,#525252);cursor:not-allowed}._iconBtn_cz5bk_94[data-pressed]{background-color:light-dark(rgba(0 0 0 / 20%),rgba(255 255 255 / 20%))}._iconBtn_cz5bk_94._medium_cz5bk_114{padding:calc(.625rem - var(--border-width))}._danger_cz5bk_119{color:#fff;background-color:light-dark(#e62323,#e62323);opacity:1}._danger_cz5bk_119[data-hovered]{color:#fff;background-color:light-dark(#bc1d1d,#bc1d1d)}._danger_cz5bk_119[data-disabled]{color:light-dark(#bfbfbf,#525252);cursor:not-allowed;background-color:light-dark(#f2f2f2,#262626)}._danger_cz5bk_119[data-pressed]{background-color:light-dark(#7d1313,#7d1313);outline:none}._iconRight_cz5bk_141{flex-direction:row-reverse}._fullwidth_cz5bk_145{width:100%}._medium_cz5bk_114{padding:calc(.625rem - var(--border-width)) calc(1rem - var(--border-width))}@media (forced-colors: active){._primary_cz5bk_155{border-width:2px}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._buttonGroup_fh6r8_4{display:flex;flex-flow:row wrap;gap:.5rem}@media (max-width: 479px){._buttonGroup_fh6r8_4>*{width:100%}}
|
package/assets/Card.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._card_1hl11_4{font-family:Inter,sans-serif;position:relative;background-color:light-dark(#f2f2f2,#262626);border-bottom:1px solid light-dark(#737373,#8c8c8c)}._card_1hl11_4._horizontal_1hl11_10{display:flex;flex-flow:row wrap}._card_1hl11_4:has(._cardLink_1hl11_15:hover){background-color:light-dark(#e6e6e6,#333333)}._cardContent_1hl11_20{padding:1rem;display:flex;flex-direction:column;gap:.5rem 1rem;flex-grow:1}._cardContent_1hl11_20._horizontal_1hl11_10{padding:.5rem 1rem;flex-direction:row;align-items:center;column-gap:1rem}._cardContent_1hl11_20+._cardContent_1hl11_20{padding-top:.5rem}._cardActions_1hl11_39{display:flex;flex-direction:row;gap:.5rem}._cardActions_1hl11_39._horizontal_1hl11_10{margin-left:auto}._cardActionArea_1hl11_49{border:0;padding:0;text-align:unset;background-color:unset;cursor:pointer;width:100%}._cardActionArea_1hl11_49[data-hovered]{background-color:light-dark(rgba(0 0 0 / 10%),rgba(255 255 255 / 10%))}._cardActionArea_1hl11_49[data-pressed]{background-color:light-dark(rgba(0 0 0 / 20%),rgba(255 255 255 / 20%))}._cardActionArea_1hl11_49:focus{outline:none}._cardActionArea_1hl11_49[data-focused]{box-shadow:0 0 0 2px light-dark(white,black),0 0 0 4px light-dark(black,white)}@media (forced-colors: active){._cardActionArea_1hl11_49[data-focused]{outline:2px solid highlight}}._cardActionArea_1hl11_49+._cardContent_1hl11_20{padding-top:.5rem}._cardImage_1hl11_82{max-width:100%;height:auto}._cardImage_1hl11_82._horizontal_1hl11_10{max-width:unset}._cardLink_1hl11_15{display:flex;justify-content:space-between;align-items:center;text-decoration:none}._cardLink_1hl11_15[data-focused],._cardLink_1hl11_15:focus{outline:none;box-shadow:0 0 0 2px light-dark(white,black),0 0 0 4px light-dark(black,white)}@media (forced-colors: active){._cardLink_1hl11_15[data-focused],._cardLink_1hl11_15:focus{outline:2px solid highlight}}._cardLink_1hl11_15:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}._cardLink_1hl11_15 ._cardLinkIcon_1hl11_114{color:light-dark(#171717,#f2f2f2)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._characterCounter_4224k_4{font-size:.875rem;line-height:1.125rem;font-weight:400;font-family:Inter,sans-serif;color:light-dark(#171717,#f2f2f2);text-align:right;grid-area:Count;align-self:flex-end;margin-bottom:.5rem}._characterCounter_4224k_4[data-lonely]{margin-bottom:.25rem}._characterCounter_4224k_4[data-exceeded]{color:light-dark(#e62323,#eb4e4e)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._wrap_lpri7_4{grid-area:Input;display:flex;flex-direction:column;gap:.5rem}._checkboxInner_lpri7_11{width:1rem;height:1rem;box-sizing:border-box;border:1px solid light-dark(#171717,#f2f2f2);transition:all .2s;align-items:center;justify-content:center;display:flex}@media (forced-colors: active){._checkboxInner_lpri7_11{outline:3px solid highlight;outline-offset:-2px}}._checkboxInner_lpri7_11 svg{width:1rem;height:1rem;fill:none;stroke:light-dark(#ffffff,#ffffff);stroke-width:2px;stroke-dasharray:22;stroke-dashoffset:66;transition:all .2s}._checkbox_lpri7_11{font-family:Inter,sans-serif;font-weight:400;gap:.5rem;align-items:center;display:flex;width:max-content;cursor:pointer;color:light-dark(#171717,#f2f2f2);line-height:1.25rem}._checkbox_lpri7_11[data-hovered] div{border-color:light-dark(#25607f,#25607f)}._checkbox_lpri7_11[data-pressed] div{border-color:light-dark(#2e7ca5,#143c50)}._checkbox_lpri7_11[data-focus-visible],._checkbox_lpri7_11:focus-visible{box-shadow:0 0 0 2px light-dark(white,black),0 0 0 4px light-dark(black,white);outline:none}._checkbox_lpri7_11[data-selected] div,._checkbox_lpri7_11[data-indeterminate] div{background:light-dark(#143c50,#2e7ca5);border-color:light-dark(#143c50,#2e7ca5)}._checkbox_lpri7_11[data-invalid] div{border:2px solid light-dark(#e62323,#e62323)}._checkbox_lpri7_11[data-disabled] div{pointer-events:none;border:1px solid light-dark(#bfbfbf,#525252)}._checkbox_lpri7_11[data-selected]:hover div,._checkbox_lpri7_11[data-indeterminate]:hover div{background:light-dark(#25607f,#25607f);border-color:light-dark(#25607f,#25607f)}._checkbox_lpri7_11[data-selected][data-pressed] div,._checkbox_lpri7_11[data-indeterminate][data-pressed] div{border-color:light-dark(#2e7ca5,#143c50);background:light-dark(#2e7ca5,#143c50)}._checkbox_lpri7_11[data-selected] svg,._checkbox_lpri7_11[data-indeterminate] svg{stroke-dashoffset:44}._checkbox_lpri7_11[data-indeterminate] svg{stroke:none;fill:light-dark(#ffffff,#ffffff)}._checkbox_lpri7_11[data-invalid]:hover div{opacity:.5;border-color:light-dark(#e62323,#e62323)}._checkbox_lpri7_11[data-invalid][data-pressed] div{border-color:light-dark(#e62323,#e62323)}._checkbox_lpri7_11[data-disabled]{color:light-dark(#bfbfbf,#525252);cursor:not-allowed}._checkbox_lpri7_11[data-disabled][data-selected] div,._checkbox_lpri7_11[data-disabled][data-indeterminate] div{pointer-events:none;border:none;background:light-dark(#f2f2f2,#262626)}._checkboxGroup_lpri7_127{font-family:Inter,sans-serif;display:flex;flex-direction:column;font-size:1rem;min-width:150px}._checkboxGroup_lpri7_127[data-disabled]{color:light-dark(#bfbfbf,#525252)}@media (max-width: 479px){._checkboxGroup_lpri7_127 ._checkbox_lpri7_11{padding:.875rem 1rem;border:1px solid light-dark(#171717,#f2f2f2);width:auto}._checkboxGroup_lpri7_127 ._checkbox_lpri7_11[data-hovered]{background-color:light-dark(#e6e6e6,#333333)}._checkboxGroup_lpri7_127 ._checkbox_lpri7_11[data-invalid]{border:2px solid light-dark(#e62323,#e62323)}._checkboxGroup_lpri7_127 ._checkbox_lpri7_11[data-disabled]{pointer-events:none;border-color:light-dark(#bfbfbf,#525252)}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._button_1dy1i_1{padding:.685rem}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._combobox_zftmk_4{font-family:Inter,sans-serif;display:flex;flex-direction:column}._combobox_zftmk_4[data-invalid] ._inputField_zftmk_9{border:.125rem solid light-dark(#e62323,#e62323);box-shadow:none}._inputField_zftmk_9{box-sizing:border-box;width:-webkit-fill-available;padding-left:1rem;border:none;border-bottom:1px solid light-dark(#171717,#f2f2f2);border-radius:0;font-size:1rem;color:light-dark(#171717,#f2f2f2);height:3rem;background-color:light-dark(#f2f2f2,#262626)}._inputField_zftmk_9._medium_zftmk_27{height:2.5rem}._inputField_zftmk_9[data-hovered],._inputField_zftmk_9:has(+[data-hovered]){background-color:light-dark(#e6e6e6,#333333)}._inputField_zftmk_9::placeholder{color:light-dark(#a6a6a6,#525252)}._inputField_zftmk_9:focus-visible,._inputField_zftmk_9[data-focus-visible]{outline:none}._inputField_zftmk_9[data-focus-visible]{box-shadow:0 0 0 2px light-dark(white,black),0 0 0 4px light-dark(black,white)}@media (forced-colors: active){._inputField_zftmk_9[data-focus-visible]{outline:3px solid highlight;outline-offset:2px}}._inputField_zftmk_9[data-disabled]{background:light-dark(#f2f2f2,#262626);box-shadow:none;border-bottom:.063rem solid light-dark(#bfbfbf,#525252);cursor:not-allowed}._text_zftmk_62{font-size:.875rem;margin-bottom:.5rem}._wrap_zftmk_67{grid-area:Input;position:relative;gap:.5rem}._button_zftmk_73{display:flex;align-items:center;border:none;padding:.875rem;color:light-dark(#171717,#f2f2f2);background-color:transparent;position:absolute;top:0;right:0;height:3rem;transition:transform .3s ease}._button_zftmk_73._medium_zftmk_27{height:2.5rem;padding:.625rem .875rem}._button_zftmk_73[aria-expanded=true]{transform:rotate(180deg)}._button_zftmk_73[data-disabled]{cursor:not-allowed;color:light-dark(#bfbfbf,#525252)}._button_zftmk_73[data-hovered]{cursor:pointer}._icon_zftmk_105{display:flex;align-items:center;transition:transform .3s ease}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._dateField_1453v_4{font-family:Inter,sans-serif;display:flex;flex-direction:column;align-items:flex-start}._inputField_1453v_11{box-sizing:border-box;width:100%;min-height:3rem;display:flex;justify-content:flex-start;align-items:center;background-color:light-dark(#f2f2f2,#262626);border-bottom:1px solid light-dark(#171717,#f2f2f2);padding:0 1rem}._inputField_1453v_11._medium_1453v_22{min-height:2.5rem}._inputField_1453v_11[data-disabled]{border:none;color:light-dark(#bfbfbf,#525252);cursor:not-allowed}._inputField_1453v_11:hover:not([data-disabled]){background-color:light-dark(#e6e6e6,#333333)}._inputField_1453v_11:has([data-invalid]){border:none;box-shadow:inset 0 0 0 3px light-dark(#e62323,#e62323)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._dateSegment_1lvsj_4{color:light-dark(#171717,#f2f2f2);padding:0 .125rem;text-transform:uppercase}._dateSegment_1lvsj_4[data-disabled]{color:light-dark(#bfbfbf,#525252)}._dateSegment_1lvsj_4:focus-visible,._dateSegment_1lvsj_4[data-focus-visible]{box-shadow:0 0 0 2px light-dark(white,black),0 0 0 4px light-dark(black,white);outline:none}@media (forced-colors: active){._dateSegment_1lvsj_4:focus-visible,._dateSegment_1lvsj_4[data-focus-visible]{outline:1px solid;outline-offset:2px}}._dateSegment_1lvsj_4[data-placeholder]{color:light-dark(#a6a6a6,#525252)}._dateInput_bhs3c_4{display:flex}._dateInput_bhs3c_4 div:focus-visible,._dateInput_bhs3c_4 div[data-focus-visible]{outline:none;box-shadow:0 0 0 2px light-dark(white,black),0 0 0 4px light-dark(black,white)}@media (forced-colors: active){._dateInput_bhs3c_4 div:focus-visible,._dateInput_bhs3c_4 div[data-focus-visible]{outline:3px solid highlight;outline-offset:0}}._dateInput_bhs3c_4 div[data-readonly=true]{color:light-dark(#171717,#f2f2f2);padding:0 2px}._divider_bhs3c_24{color:light-dark(#171717,#f2f2f2)}
|