@easypost/easy-ui 1.0.0-alpha.112 → 1.0.0-alpha.114
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/AlertBadge/AlertBadge.d.ts +1 -1
- package/AlertBadge/AlertBadge.d.ts.map +1 -1
- package/AlertBadge/index.js +20 -16
- package/AlertBadge/index.mjs +20 -16
- package/Badge/index.js +29 -19
- package/Badge/index.mjs +29 -19
- package/Banner/index.js +19 -12
- package/Banner/index.mjs +19 -12
- package/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/CHANGELOG.md +12 -0
- package/Calendar/index.js +1 -1
- package/Calendar/index.mjs +1 -1
- package/Card/index.js +1 -1
- package/Card/index.mjs +1 -1
- package/CheckableCard/index.js +33 -24
- package/CheckableCard/index.mjs +33 -24
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/CodeBlock/context.d.ts +2 -1
- package/CodeBlock/context.d.ts.map +1 -1
- package/CodeBlock/index.js +81 -59
- package/CodeBlock/index.mjs +81 -59
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/ColorPicker/index.js +71 -54
- package/ColorPicker/index.mjs +71 -54
- package/CustomerPortalLayout/index.js +101 -72
- package/CustomerPortalLayout/index.mjs +101 -72
- package/DataGrid/index.js +229 -173
- package/DataGrid/index.mjs +229 -173
- package/DatePicker/index.js +10 -8
- package/DatePicker/index.mjs +10 -8
- package/DateRangePicker/index.js +10 -8
- package/DateRangePicker/index.mjs +10 -8
- package/Drawer/context.d.ts +2 -2
- package/Drawer/context.d.ts.map +1 -1
- package/Drawer/index.js +99 -78
- package/Drawer/index.mjs +99 -78
- package/Drawer/useIntersectionDetection.d.ts +1 -1
- package/Drawer/useIntersectionDetection.d.ts.map +1 -1
- package/DropdownButton/index.js +15 -7
- package/DropdownButton/index.mjs +16 -8
- package/EmptyStateCard/index.js +53 -33
- package/EmptyStateCard/index.mjs +53 -33
- package/FocusedProductLayout/index.js +104 -76
- package/FocusedProductLayout/index.mjs +104 -76
- package/ForgeLayout/index.js +283 -217
- package/ForgeLayout/index.mjs +284 -218
- package/FormLayout/index.js +38 -24
- package/FormLayout/index.mjs +38 -24
- package/HorizontalGrid/index.js +1 -1
- package/HorizontalGrid/index.mjs +1 -1
- package/HorizontalStack/index.js +1 -1
- package/HorizontalStack/index.mjs +1 -1
- package/Icon/index.js +1 -1
- package/Icon/index.mjs +1 -1
- package/IconButton/index.js +16 -9
- package/IconButton/index.mjs +17 -10
- package/InputField/index.js +1 -1
- package/InputField/index.mjs +1 -1
- package/KebabButton/index.js +1 -1
- package/KebabButton/index.mjs +1 -1
- package/Menu/MenuTrigger.d.ts +1 -1
- package/Menu/MenuTrigger.d.ts.map +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Modal/context.d.ts +3 -3
- package/Modal/context.d.ts.map +1 -1
- package/Modal/index.js +124 -93
- package/Modal/index.mjs +124 -93
- package/Modal/useIntersectionDetection.d.ts +1 -1
- package/Modal/useIntersectionDetection.d.ts.map +1 -1
- package/MultiSelect/MultiSelectDropdown.d.ts +2 -2
- package/MultiSelect/MultiSelectDropdown.d.ts.map +1 -1
- package/MultiSelect/index.js +106 -83
- package/MultiSelect/index.mjs +107 -84
- package/MultiSelect/utilities.d.ts +1 -1
- package/MultiSelect/utilities.d.ts.map +1 -1
- package/MultipageSection/index.js +94 -71
- package/MultipageSection/index.mjs +94 -71
- package/NexusLayout/index.js +136 -102
- package/NexusLayout/index.mjs +136 -102
- package/Notification/NotificationTransition.d.ts +1 -1
- package/Notification/NotificationTransition.d.ts.map +1 -1
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +62 -50
- package/Pagination/index.mjs +63 -51
- package/PillGroup/index.js +1 -1
- package/PillGroup/index.mjs +1 -1
- package/PlanCard/illustrations/Building01/index.js +532 -531
- package/PlanCard/illustrations/Building01/index.mjs +532 -531
- package/PlanCard/illustrations/Building02/index.js +206 -205
- package/PlanCard/illustrations/Building02/index.mjs +206 -205
- package/PlanCard/illustrations/Building03/index.js +773 -772
- package/PlanCard/illustrations/Building03/index.mjs +773 -772
- package/PlanCard/illustrations/Building04/index.js +1528 -1527
- package/PlanCard/illustrations/Building04/index.mjs +1528 -1527
- package/PlanCard/index.js +59 -36
- package/PlanCard/index.mjs +60 -37
- package/ProductLayout/index.js +132 -91
- package/ProductLayout/index.mjs +132 -91
- package/Provider/index.js +18 -14
- package/Provider/index.mjs +18 -14
- package/RadioButtonGroup/index.js +14 -10
- package/RadioButtonGroup/index.mjs +14 -10
- package/RadioGroup/index.js +1 -1
- package/RadioGroup/index.mjs +1 -1
- package/RangeCalendar/index.js +1 -1
- package/RangeCalendar/index.mjs +1 -1
- package/SearchNav/CondensedSearchNav.d.ts.map +1 -1
- package/SearchNav/index.js +197 -141
- package/SearchNav/index.mjs +198 -142
- package/SearchNav/utilities.d.ts +3 -3
- package/SearchNav/utilities.d.ts.map +1 -1
- package/SectionCard/index.js +43 -25
- package/SectionCard/index.mjs +43 -25
- package/Select/index.js +74 -62
- package/Select/index.mjs +74 -62
- package/SelectorErrorTooltip/index.js +1 -1
- package/SelectorErrorTooltip/index.mjs +1 -1
- package/Spinner/index.js +1 -1
- package/Spinner/index.mjs +1 -1
- package/SplitToggleCard/index.js +22 -16
- package/SplitToggleCard/index.mjs +22 -16
- package/Stepper/index.js +1 -1
- package/Stepper/index.mjs +1 -1
- package/TabNav/index.js +1 -1
- package/TabNav/index.mjs +1 -1
- package/TabPanels/index.js +22 -16
- package/TabPanels/index.mjs +24 -18
- package/Tabs/index.js +1 -1
- package/Tabs/index.mjs +1 -1
- package/Text/index.js +1 -1
- package/Text/index.mjs +1 -1
- package/TextField/index.js +1 -1
- package/TextField/index.mjs +1 -1
- package/Textarea/index.js +3 -3
- package/Textarea/index.mjs +3 -3
- package/Theme/index.js +1 -1
- package/Theme/index.mjs +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/ToggleCard/index.js +20 -15
- package/ToggleCard/index.mjs +21 -16
- package/Tooltip/index.js +1 -1
- package/Tooltip/index.mjs +1 -1
- package/UnstyledButton/index.js +1 -1
- package/UnstyledButton/index.mjs +1 -1
- package/VerticalNav/index.js +115 -88
- package/VerticalNav/index.mjs +115 -88
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/{Button-5AuHgwU3.js → Button-CQdi4TMV.js} +15 -12
- package/__chunks__/{Button-BsGH6vGC.mjs → Button-JL1YQxJ5.mjs} +16 -13
- package/__chunks__/{Calendar-D09mdpmC.js → Calendar-C9zdRov0.js} +3 -2
- package/__chunks__/{Calendar-BGZysoV0.mjs → Calendar-DLzAtdfg.mjs} +3 -2
- package/__chunks__/{CalendarBase-Bn9o8BdD.mjs → CalendarBase-DJ38_qK6.mjs} +86 -64
- package/__chunks__/{CalendarBase-DHxad3N9.js → CalendarBase-M-f289w8.js} +86 -64
- package/__chunks__/{Card-CJug4GMX.mjs → Card-BgjWYPVY.mjs} +21 -12
- package/__chunks__/{Card-BM2DKiVA.js → Card-LPIW5drP.js} +21 -12
- package/__chunks__/{Checkbox-D2-8vvdr.js → Checkbox-B_-6lfKk.js} +36 -28
- package/__chunks__/{Checkbox-BWfY9XqH.mjs → Checkbox-DcaO0fC3.mjs} +36 -28
- package/__chunks__/{CodeSnippet-CIijbclb.js → CodeSnippet-25l4r2Gh.js} +16 -12
- package/__chunks__/{CodeSnippet-QpCpkoXv.mjs → CodeSnippet-B3nsMpvq.mjs} +16 -12
- package/__chunks__/{DatePickerBase-CFB0JDQA.mjs → DatePickerBase-BQc8LKWg.mjs} +80 -62
- package/__chunks__/{DatePickerBase-DSPIErms.js → DatePickerBase-BYYfRTEY.js} +80 -62
- package/__chunks__/EasyPostLogo-C9-Q0lSn.js +22 -0
- package/__chunks__/EasyPostLogo-DgIgAGa3.mjs +23 -0
- package/__chunks__/{HelpMenu-CO6kYktc.mjs → HelpMenu-BZRV42ab.mjs} +30 -21
- package/__chunks__/{HelpMenu-nihaGEVy.js → HelpMenu-C2t8KQuU.js} +30 -20
- package/__chunks__/{HorizontalGrid-CAwv7zKY.js → HorizontalGrid-CAoDcmPW.js} +5 -3
- package/__chunks__/{HorizontalGrid-Dz8EFgmu.mjs → HorizontalGrid-DbLeJBt8.mjs} +6 -4
- package/__chunks__/{HorizontalStack-CxE8tPx_.mjs → HorizontalStack-CJavrBHm.mjs} +6 -4
- package/__chunks__/{HorizontalStack-CXpjASZi.js → HorizontalStack-CWdKKY8L.js} +5 -3
- package/__chunks__/{Icon-0SN9dbwU.mjs → Icon-BIpaQJ_I.mjs} +11 -10
- package/__chunks__/{Icon-W8F9w-jS.js → Icon-BRlbo3RF.js} +11 -10
- package/__chunks__/{InputCaption-C3Hf9Hvt.js → InputCaption-CccF4ynE.js} +19 -15
- package/__chunks__/{InputCaption-BJO9_Tby.mjs → InputCaption-DoyGkWQe.mjs} +19 -15
- package/__chunks__/{InputField-dq5XIhr1.mjs → InputField-CAY9O90X.mjs} +77 -66
- package/__chunks__/{InputField-CDHznUZd.js → InputField-DGb4ZDoR.js} +77 -66
- package/__chunks__/{InputIcon-Bpg4lyQx.mjs → InputIcon-CEATdJ1j.mjs} +9 -8
- package/__chunks__/{InputIcon-DdcvN3A4.js → InputIcon-DDKBJ_Tk.js} +9 -8
- package/__chunks__/{KebabButton-Bf1OdC5_.mjs → KebabButton-D-5Mjaj0.mjs} +15 -8
- package/__chunks__/{KebabButton-DdzHU7is.js → KebabButton-TbapERgy.js} +15 -8
- package/__chunks__/{Menu-DHwqwFlg.mjs → Menu-Ci1FGh8B.mjs} +88 -70
- package/__chunks__/{Menu-Kfc6nxFP.js → Menu-MGDv1tob.js} +88 -70
- package/__chunks__/{Notification-vF_YGVIP.js → Notification-DDQHWloB.js} +62 -48
- package/__chunks__/{Notification-BoT3Hm0B.mjs → Notification-DnNx0rb6.mjs} +64 -50
- package/__chunks__/{PillGroup-CAHVIlU0.js → PillGroup-BK8VCf3B.js} +41 -27
- package/__chunks__/{PillGroup-DjLJ4wVb.mjs → PillGroup-DN72MPhg.mjs} +41 -27
- package/__chunks__/{RadioGroup-DUu5GEpn.mjs → RadioGroup-BfKaJnSo.mjs} +58 -40
- package/__chunks__/{RadioGroup-CGQKZwDU.js → RadioGroup-BiCqtR0F.js} +58 -40
- package/__chunks__/{RangeCalendar-LPcJB19o.mjs → RangeCalendar-BdTjX8NT.mjs} +3 -2
- package/__chunks__/{RangeCalendar-Ckqj2J9L.js → RangeCalendar-Dz6LyRYS.js} +3 -2
- package/__chunks__/{SelectOverlay-CmbC4zrD.js → SelectOverlay-Bva0SG8D.js} +62 -51
- package/__chunks__/{SelectOverlay-DptO7xtn.mjs → SelectOverlay-q23ZLLi4.mjs} +62 -51
- package/__chunks__/{SelectorErrorTooltip-_D8DSBKs.js → SelectorErrorTooltip-BNLrFRLN.js} +19 -11
- package/__chunks__/{SelectorErrorTooltip-Dw1Fvd_q.mjs → SelectorErrorTooltip-rO2-k3Gl.mjs} +19 -12
- package/__chunks__/{Spinner-DOmPV59I.mjs → Spinner-COsekFr1.mjs} +17 -13
- package/__chunks__/{Spinner-D0ifPtVV.js → Spinner-vRnrcEz0.js} +16 -12
- package/__chunks__/{Stepper-BEyDIPNJ.mjs → Stepper-DlI-16t-.mjs} +48 -37
- package/__chunks__/{Stepper-CX0Mu37p.js → Stepper-lhcjfVFY.js} +47 -36
- package/__chunks__/{TabNav-vCt_zTvE.mjs → TabNav-BNhQF0b0.mjs} +10 -8
- package/__chunks__/{TabNav-B8aEzVyr.js → TabNav-bVgyfEV7.js} +10 -8
- package/__chunks__/{Tabs-DJ4aKu11.mjs → Tabs-BaROnbKg.mjs} +47 -38
- package/__chunks__/{Tabs-BL8odO0p.js → Tabs-DSngzN9A.js} +46 -37
- package/__chunks__/{Text-YOL3isF4.mjs → Text-D6oT5WJQ.mjs} +5 -4
- package/__chunks__/{Text-CSESKR_s.js → Text-DkzMEqky.js} +5 -4
- package/__chunks__/{TextField-D2QhDAdD.mjs → TextField-818kTElu.mjs} +3 -3
- package/__chunks__/{TextField-94cCP805.js → TextField-DKQVJPP_.js} +3 -3
- package/__chunks__/{Theme-DqbmY4wy.js → Theme-C2nSZUpG.js} +27 -17
- package/__chunks__/{Theme-BAFk7BvV.mjs → Theme-M__gFMM3.mjs} +28 -18
- package/__chunks__/{Toggle-D2ucsFxO.js → Toggle-BmJjrdVn.js} +43 -37
- package/__chunks__/{Toggle-CxjLdmzW.mjs → Toggle-DlDQ7rr2.mjs} +43 -37
- package/__chunks__/{Tooltip-DqpxBjpa.js → Tooltip-BSMvNula.js} +25 -17
- package/__chunks__/{Tooltip-DAyUY3na.mjs → Tooltip-BXRi0h4E.mjs} +25 -17
- package/__chunks__/{UnstyledButton-BFpQ2Irc.js → UnstyledButton-DW8CjaXN.js} +5 -3
- package/__chunks__/{UnstyledButton-DpQ5Ic9D.mjs → UnstyledButton-DxJLvL-G.mjs} +6 -4
- package/__chunks__/{VerticalStack-Dzpv3O67.js → VerticalStack-BHkiocKU.js} +5 -3
- package/__chunks__/{VerticalStack-C2yDQVHD.mjs → VerticalStack-DoMqBfYD.mjs} +6 -4
- package/__chunks__/index-CqNUlUoB.js +217 -0
- package/__chunks__/index-ee-P7jQr.mjs +218 -0
- package/__chunks__/{useEdgeInterceptors-D_DARZZd.mjs → useEdgeInterceptors-OZmGXvtF.mjs} +17 -14
- package/__chunks__/{useEdgeInterceptors-Ihk8NfjJ.js → useEdgeInterceptors-Rb2Hf0v8.js} +16 -13
- package/package.json +4 -6
- package/types.d.ts +1 -1
- package/types.d.ts.map +1 -1
- package/utilities/Noop.d.ts +1 -1
- package/utilities/Noop.d.ts.map +1 -1
- package/utilities/react.d.ts +1 -1
- package/utilities/react.d.ts.map +1 -1
- package/utilities/react.js +1 -1
- package/utilities/react.mjs +1 -1
- package/utilities/test.d.ts +1 -0
- package/utilities/test.d.ts.map +1 -1
- package/__chunks__/EasyPostLogo-B3Um5vvS.mjs +0 -22
- package/__chunks__/EasyPostLogo-DQt5KlFX.js +0 -21
- package/__chunks__/index-CUcRN4NO.js +0 -311
- package/__chunks__/index-Izk6uvQC.mjs +0 -312
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useContext, createContext, useState, useMemo } from "react";
|
|
2
3
|
import { e as ezuiTokens } from "./tokens-BXztpSjv.mjs";
|
|
3
4
|
import { getTokenAliases } from "../utilities/tokens.mjs";
|
|
4
5
|
import { tokenSafeKebabCase } from "../utilities/css.mjs";
|
|
@@ -12,7 +13,9 @@ const invertedColorSchemes = {
|
|
|
12
13
|
inverted: "system"
|
|
13
14
|
};
|
|
14
15
|
function NoopComponent(props) {
|
|
15
|
-
return
|
|
16
|
+
return jsx(Fragment, {
|
|
17
|
+
children: props.children
|
|
18
|
+
});
|
|
16
19
|
}
|
|
17
20
|
const TrackerContext = createContext(0);
|
|
18
21
|
const ThemeContext = createContext(null);
|
|
@@ -29,15 +32,20 @@ function ThemeProvider({ children, colorScheme: colorSchemeFromUser, theme: them
|
|
|
29
32
|
const ColorSchemeContextComponent = isRoot || colorSchemeFromUser ? ColorSchemeContextProvider : NoopComponent;
|
|
30
33
|
const theme = themeFromUser ? themeFromUser : defaultTheme;
|
|
31
34
|
const colorScheme = colorSchemeFromUser ? colorSchemeFromUser : "system";
|
|
32
|
-
return
|
|
33
|
-
value: count
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
return jsx(TrackerContext.Provider, {
|
|
36
|
+
value: count,
|
|
37
|
+
children: jsx(ThemeContextComponent, {
|
|
38
|
+
theme,
|
|
39
|
+
children: jsx(ColorSchemeContextComponent, {
|
|
40
|
+
colorScheme,
|
|
41
|
+
children: jsxs(Fragment, {
|
|
42
|
+
children: [jsx(Style, {
|
|
43
|
+
isRoot
|
|
44
|
+
}), children]
|
|
45
|
+
})
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
|
+
});
|
|
41
49
|
}
|
|
42
50
|
function createTheme(themeCreator) {
|
|
43
51
|
return themeCreator;
|
|
@@ -93,7 +101,7 @@ function Style({ isRoot }) {
|
|
|
93
101
|
}))}
|
|
94
102
|
}`;
|
|
95
103
|
}, [resolvedColorScheme, selector, themeCreator]);
|
|
96
|
-
return
|
|
104
|
+
return jsx("style", {
|
|
97
105
|
id: fingerprint,
|
|
98
106
|
dangerouslySetInnerHTML: {
|
|
99
107
|
__html: css
|
|
@@ -101,9 +109,10 @@ function Style({ isRoot }) {
|
|
|
101
109
|
});
|
|
102
110
|
}
|
|
103
111
|
function ThemeContextProvider({ theme, children }) {
|
|
104
|
-
return
|
|
105
|
-
value: theme
|
|
106
|
-
|
|
112
|
+
return jsx(ThemeContext.Provider, {
|
|
113
|
+
value: theme,
|
|
114
|
+
children
|
|
115
|
+
});
|
|
107
116
|
}
|
|
108
117
|
function ColorSchemeContextProvider({ colorScheme, children }) {
|
|
109
118
|
const parentColorSchemeContext = useContext(ColorSchemeContext);
|
|
@@ -114,9 +123,10 @@ function ColorSchemeContextProvider({ colorScheme, children }) {
|
|
|
114
123
|
resolvedColorScheme
|
|
115
124
|
};
|
|
116
125
|
}, [colorScheme, parentColorSchemeContext]);
|
|
117
|
-
return
|
|
118
|
-
value: colorSchemeContextValue
|
|
119
|
-
|
|
126
|
+
return jsx(ColorSchemeContext.Provider, {
|
|
127
|
+
value: colorSchemeContextValue,
|
|
128
|
+
children
|
|
129
|
+
});
|
|
120
130
|
}
|
|
121
131
|
function getThemeInstanceVariables(theme) {
|
|
122
132
|
return Object.fromEntries(Object.entries(theme).map(([key, value]) => {
|
|
@@ -30,11 +30,12 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
33
34
|
const mergeProps = require("./mergeProps-DLPcevok.js");
|
|
34
35
|
const mergeRefs = require("./mergeRefs-qNwPManW.js");
|
|
35
36
|
const useObjectRef = require("./useObjectRef-Bma_uNHw.js");
|
|
36
37
|
const React = require("react");
|
|
37
|
-
const Text = require("./Text-
|
|
38
|
+
const Text = require("./Text-DkzMEqky.js");
|
|
38
39
|
const utilities_css = require("../utilities/css.js");
|
|
39
40
|
const useToggleState = require("./useToggleState-BYfp0R5h.js");
|
|
40
41
|
const useToggle = require("./useToggle-m_Bxvur2.js");
|
|
@@ -79,25 +80,27 @@ const styles$1 = {
|
|
|
79
80
|
function Switch(props) {
|
|
80
81
|
const { isDisabled, isFocusVisible, isHovered, isSelected, variant } = props;
|
|
81
82
|
const className = utilities_css.classNames(styles$1.Switch, isDisabled && styles$1.disabled, styles$1[utilities_css.variationName("variant", variant)], isFocusVisible && styles$1.focusVisible, isHovered && styles$1.hovered, isSelected && styles$1.selected);
|
|
82
|
-
return
|
|
83
|
-
className
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
83
|
+
return jsxRuntime.jsx("span", {
|
|
84
|
+
className,
|
|
85
|
+
children: jsxRuntime.jsxs("svg", {
|
|
86
|
+
width: 32,
|
|
87
|
+
height: 16,
|
|
88
|
+
"aria-hidden": "true",
|
|
89
|
+
children: [jsxRuntime.jsx("rect", {
|
|
90
|
+
className: styles$1.track,
|
|
91
|
+
x: 0,
|
|
92
|
+
y: 0,
|
|
93
|
+
width: 32,
|
|
94
|
+
height: 16,
|
|
95
|
+
rx: 8
|
|
96
|
+
}), jsxRuntime.jsx("circle", {
|
|
97
|
+
className: styles$1.thumb,
|
|
98
|
+
cx: isSelected ? 32 - 8 : 8,
|
|
99
|
+
cy: 8,
|
|
100
|
+
r: 6
|
|
101
|
+
})]
|
|
102
|
+
})
|
|
103
|
+
});
|
|
101
104
|
}
|
|
102
105
|
const Toggle$1 = "_Toggle_yjfby_4";
|
|
103
106
|
const text = "_text_yjfby_29";
|
|
@@ -140,23 +143,26 @@ const Toggle = React.forwardRef((props, externalRef) => {
|
|
|
140
143
|
const RootComponent = children ? "label" : "span";
|
|
141
144
|
const rootProps = children ? hoverProps : {};
|
|
142
145
|
const inputProps = children ? mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(restProps, inputPropsFromSwitch, focusProps) : mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(restProps, inputPropsFromSwitch, focusProps, hoverProps);
|
|
143
|
-
return
|
|
144
|
-
className
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
146
|
+
return jsxRuntime.jsxs(RootComponent, __spreadProps(__spreadValues({}, rootProps), {
|
|
147
|
+
className,
|
|
148
|
+
children: [jsxRuntime.jsx("input", __spreadProps(__spreadValues({}, inputProps), {
|
|
149
|
+
className: styles.input,
|
|
150
|
+
ref: mergedRef
|
|
151
|
+
})), jsxRuntime.jsx(Switch, {
|
|
152
|
+
isDisabled,
|
|
153
|
+
isFocusVisible,
|
|
154
|
+
isHovered,
|
|
155
|
+
isSelected,
|
|
156
|
+
variant
|
|
157
|
+
}), children && jsxRuntime.jsx("span", {
|
|
158
|
+
className: styles.text,
|
|
159
|
+
children: jsxRuntime.jsx(Text.Text, {
|
|
160
|
+
variant: "body1",
|
|
161
|
+
color: textColor,
|
|
162
|
+
children
|
|
163
|
+
})
|
|
164
|
+
})]
|
|
165
|
+
}));
|
|
160
166
|
});
|
|
161
167
|
Toggle.displayName = "Toggle";
|
|
162
168
|
exports.Toggle = Toggle;
|
|
@@ -29,11 +29,12 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
32
33
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-COnPag8r.mjs";
|
|
33
34
|
import { $ as $5dc95899b306f630$export$c9058316764c140e } from "./mergeRefs-ClQjEiLh.mjs";
|
|
34
35
|
import { $ as $df56164dff5785e2$export$4338b53315abf666 } from "./useObjectRef-77h4G8qk.mjs";
|
|
35
36
|
import React__default, { forwardRef } from "react";
|
|
36
|
-
import { T as Text } from "./Text-
|
|
37
|
+
import { T as Text } from "./Text-D6oT5WJQ.mjs";
|
|
37
38
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
38
39
|
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "./useToggleState-BLVhvfl9.mjs";
|
|
39
40
|
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "./useToggle-THIfY8rz.mjs";
|
|
@@ -78,25 +79,27 @@ const styles$1 = {
|
|
|
78
79
|
function Switch(props) {
|
|
79
80
|
const { isDisabled, isFocusVisible, isHovered, isSelected, variant } = props;
|
|
80
81
|
const className = classNames(styles$1.Switch, isDisabled && styles$1.disabled, styles$1[variationName("variant", variant)], isFocusVisible && styles$1.focusVisible, isHovered && styles$1.hovered, isSelected && styles$1.selected);
|
|
81
|
-
return
|
|
82
|
-
className
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
82
|
+
return jsx("span", {
|
|
83
|
+
className,
|
|
84
|
+
children: jsxs("svg", {
|
|
85
|
+
width: 32,
|
|
86
|
+
height: 16,
|
|
87
|
+
"aria-hidden": "true",
|
|
88
|
+
children: [jsx("rect", {
|
|
89
|
+
className: styles$1.track,
|
|
90
|
+
x: 0,
|
|
91
|
+
y: 0,
|
|
92
|
+
width: 32,
|
|
93
|
+
height: 16,
|
|
94
|
+
rx: 8
|
|
95
|
+
}), jsx("circle", {
|
|
96
|
+
className: styles$1.thumb,
|
|
97
|
+
cx: isSelected ? 32 - 8 : 8,
|
|
98
|
+
cy: 8,
|
|
99
|
+
r: 6
|
|
100
|
+
})]
|
|
101
|
+
})
|
|
102
|
+
});
|
|
100
103
|
}
|
|
101
104
|
const Toggle$1 = "_Toggle_yjfby_4";
|
|
102
105
|
const text = "_text_yjfby_29";
|
|
@@ -139,23 +142,26 @@ const Toggle = forwardRef((props, externalRef) => {
|
|
|
139
142
|
const RootComponent = children ? "label" : "span";
|
|
140
143
|
const rootProps = children ? hoverProps : {};
|
|
141
144
|
const inputProps = children ? $3ef42575df84b30b$export$9d1611c77c2fe928(restProps, inputPropsFromSwitch, focusProps) : $3ef42575df84b30b$export$9d1611c77c2fe928(restProps, inputPropsFromSwitch, focusProps, hoverProps);
|
|
142
|
-
return
|
|
143
|
-
className
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
145
|
+
return jsxs(RootComponent, __spreadProps(__spreadValues({}, rootProps), {
|
|
146
|
+
className,
|
|
147
|
+
children: [jsx("input", __spreadProps(__spreadValues({}, inputProps), {
|
|
148
|
+
className: styles.input,
|
|
149
|
+
ref: mergedRef
|
|
150
|
+
})), jsx(Switch, {
|
|
151
|
+
isDisabled,
|
|
152
|
+
isFocusVisible,
|
|
153
|
+
isHovered,
|
|
154
|
+
isSelected,
|
|
155
|
+
variant
|
|
156
|
+
}), children && jsx("span", {
|
|
157
|
+
className: styles.text,
|
|
158
|
+
children: jsx(Text, {
|
|
159
|
+
variant: "body1",
|
|
160
|
+
color: textColor,
|
|
161
|
+
children
|
|
162
|
+
})
|
|
163
|
+
})]
|
|
164
|
+
}));
|
|
159
165
|
});
|
|
160
166
|
Toggle.displayName = "Toggle";
|
|
161
167
|
export {
|
|
@@ -18,8 +18,9 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
return a;
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
21
22
|
const React = require("react");
|
|
22
|
-
const Text = require("./Text-
|
|
23
|
+
const Text = require("./Text-DkzMEqky.js");
|
|
23
24
|
const utilities_css = require("../utilities/css.js");
|
|
24
25
|
const Overlay = require("./Overlay-BNP_t3v4.js");
|
|
25
26
|
const useFocusVisible = require("./useFocusVisible-BNcpO5Sv.js");
|
|
@@ -250,13 +251,17 @@ function Tooltip(props) {
|
|
|
250
251
|
});
|
|
251
252
|
const tooltipTriggerState = $8796f90736e175cb$export$4d40659c25ecb50b(triggerInputProps);
|
|
252
253
|
const { triggerProps, tooltipProps: tooltipPropsFromTrigger } = $4e1b34546679e357$export$a6da6c504e4bba8b(triggerInputProps, tooltipTriggerState, triggerRef);
|
|
253
|
-
return
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
254
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
255
|
+
children: [React.cloneElement(children, __spreadProps(__spreadValues({}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(triggerProps, children.props)), {
|
|
256
|
+
ref: triggerRef
|
|
257
|
+
})), tooltipTriggerState.isOpen && jsxRuntime.jsx(Overlay.$337b884510726a0d$export$c6fdb837b070b4ff, {
|
|
258
|
+
children: jsxRuntime.jsx(TooltipInner, __spreadProps(__spreadValues({}, props), {
|
|
259
|
+
triggerRef,
|
|
260
|
+
tooltipPropsFromTrigger,
|
|
261
|
+
tooltipTriggerState
|
|
262
|
+
}))
|
|
263
|
+
})]
|
|
264
|
+
});
|
|
260
265
|
}
|
|
261
266
|
function TooltipInner(props) {
|
|
262
267
|
const { content, placement: targetPlacement = DEFAULT_PLACEMENT, triggerRef, tooltipTriggerState, tooltipPropsFromTrigger } = props;
|
|
@@ -276,19 +281,22 @@ function TooltipInner(props) {
|
|
|
276
281
|
React.useLayoutEffect(() => {
|
|
277
282
|
updatePosition();
|
|
278
283
|
}, [content, updatePosition]);
|
|
279
|
-
return
|
|
284
|
+
return jsxRuntime.jsxs("span", __spreadProps(__spreadValues({
|
|
280
285
|
ref: tooltipRef
|
|
281
286
|
}, tooltipProps), {
|
|
282
287
|
className: utilities_css.classNames(styles.Tooltip, placement && styles[placement]),
|
|
283
288
|
"data-placement": placement,
|
|
284
|
-
style
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
289
|
+
style,
|
|
290
|
+
children: [jsxRuntime.jsx("span", {
|
|
291
|
+
className: styles.text,
|
|
292
|
+
children: jsxRuntime.jsx(Text.Text, {
|
|
293
|
+
variant: "subtitle2",
|
|
294
|
+
children: content
|
|
295
|
+
})
|
|
296
|
+
}), jsxRuntime.jsx("span", __spreadValues({
|
|
297
|
+
className: styles.arrow
|
|
298
|
+
}, arrowProps))]
|
|
299
|
+
}));
|
|
292
300
|
}
|
|
293
301
|
exports.$8796f90736e175cb$export$4d40659c25ecb50b = $8796f90736e175cb$export$4d40659c25ecb50b;
|
|
294
302
|
exports.Tooltip = Tooltip;
|
|
@@ -17,8 +17,9 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
20
21
|
import React__default, { useMemo, useRef, useEffect, useLayoutEffect } from "react";
|
|
21
|
-
import { T as Text } from "./Text-
|
|
22
|
+
import { T as Text } from "./Text-D6oT5WJQ.mjs";
|
|
22
23
|
import { getComponentToken, pxToRem, classNames } from "../utilities/css.mjs";
|
|
23
24
|
import { a as $fc909762b330b746$export$61c6a8c84e605fb6, d as $337b884510726a0d$export$c6fdb837b070b4ff } from "./Overlay-Dkjxuk6V.mjs";
|
|
24
25
|
import { v as $507fabe10e71c6fb$export$630ff653c5ada6a9, g as $507fabe10e71c6fb$export$b9b3dfddab17db27 } from "./useFocusVisible-DDvp2PwR.mjs";
|
|
@@ -249,13 +250,17 @@ function Tooltip(props) {
|
|
|
249
250
|
});
|
|
250
251
|
const tooltipTriggerState = $8796f90736e175cb$export$4d40659c25ecb50b(triggerInputProps);
|
|
251
252
|
const { triggerProps, tooltipProps: tooltipPropsFromTrigger } = $4e1b34546679e357$export$a6da6c504e4bba8b(triggerInputProps, tooltipTriggerState, triggerRef);
|
|
252
|
-
return
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
253
|
+
return jsxs(Fragment, {
|
|
254
|
+
children: [React__default.cloneElement(children, __spreadProps(__spreadValues({}, $3ef42575df84b30b$export$9d1611c77c2fe928(triggerProps, children.props)), {
|
|
255
|
+
ref: triggerRef
|
|
256
|
+
})), tooltipTriggerState.isOpen && jsx($337b884510726a0d$export$c6fdb837b070b4ff, {
|
|
257
|
+
children: jsx(TooltipInner, __spreadProps(__spreadValues({}, props), {
|
|
258
|
+
triggerRef,
|
|
259
|
+
tooltipPropsFromTrigger,
|
|
260
|
+
tooltipTriggerState
|
|
261
|
+
}))
|
|
262
|
+
})]
|
|
263
|
+
});
|
|
259
264
|
}
|
|
260
265
|
function TooltipInner(props) {
|
|
261
266
|
const { content, placement: targetPlacement = DEFAULT_PLACEMENT, triggerRef, tooltipTriggerState, tooltipPropsFromTrigger } = props;
|
|
@@ -275,19 +280,22 @@ function TooltipInner(props) {
|
|
|
275
280
|
useLayoutEffect(() => {
|
|
276
281
|
updatePosition();
|
|
277
282
|
}, [content, updatePosition]);
|
|
278
|
-
return
|
|
283
|
+
return jsxs("span", __spreadProps(__spreadValues({
|
|
279
284
|
ref: tooltipRef
|
|
280
285
|
}, tooltipProps), {
|
|
281
286
|
className: classNames(styles.Tooltip, placement && styles[placement]),
|
|
282
287
|
"data-placement": placement,
|
|
283
|
-
style
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
288
|
+
style,
|
|
289
|
+
children: [jsx("span", {
|
|
290
|
+
className: styles.text,
|
|
291
|
+
children: jsx(Text, {
|
|
292
|
+
variant: "subtitle2",
|
|
293
|
+
children: content
|
|
294
|
+
})
|
|
295
|
+
}), jsx("span", __spreadValues({
|
|
296
|
+
className: styles.arrow
|
|
297
|
+
}, arrowProps))]
|
|
298
|
+
}));
|
|
291
299
|
}
|
|
292
300
|
export {
|
|
293
301
|
$8796f90736e175cb$export$4d40659c25ecb50b as $,
|
|
@@ -30,6 +30,7 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
33
34
|
const mergeProps = require("./mergeProps-DLPcevok.js");
|
|
34
35
|
const mergeRefs = require("./mergeRefs-qNwPManW.js");
|
|
35
36
|
const useObjectRef = require("./useObjectRef-Bma_uNHw.js");
|
|
@@ -68,11 +69,12 @@ const UnstyledButton = React.forwardRef((props, inRef) => {
|
|
|
68
69
|
const { buttonProps: elementProps } = useButton.$701a24aa0da5b062$export$ea18c227d4417cc3(__spreadProps(__spreadValues({}, props), {
|
|
69
70
|
elementType: As
|
|
70
71
|
}), ref);
|
|
71
|
-
return
|
|
72
|
+
return jsxRuntime.jsx(As, __spreadProps(__spreadValues({}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(omitReactAriaSpecificProps(restProps), elementProps)), {
|
|
72
73
|
disabled: isDisabled,
|
|
73
74
|
ref: mergedRef,
|
|
74
|
-
className: utilities_css.classNames(styles.UnstyledButton, className)
|
|
75
|
-
|
|
75
|
+
className: utilities_css.classNames(styles.UnstyledButton, className),
|
|
76
|
+
children
|
|
77
|
+
}));
|
|
76
78
|
});
|
|
77
79
|
UnstyledButton.displayName = "UnstyledButton";
|
|
78
80
|
exports.UnstyledButton = UnstyledButton;
|
|
@@ -29,10 +29,11 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
+
import { jsx } from "react/jsx-runtime";
|
|
32
33
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-COnPag8r.mjs";
|
|
33
34
|
import { $ as $5dc95899b306f630$export$c9058316764c140e } from "./mergeRefs-ClQjEiLh.mjs";
|
|
34
35
|
import { $ as $df56164dff5785e2$export$4338b53315abf666 } from "./useObjectRef-77h4G8qk.mjs";
|
|
35
|
-
import
|
|
36
|
+
import { forwardRef, useRef } from "react";
|
|
36
37
|
import { classNames } from "../utilities/css.mjs";
|
|
37
38
|
import { o as omit } from "./omit-CYoLXTjq.mjs";
|
|
38
39
|
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "./useButton-DLOnoEAf.mjs";
|
|
@@ -67,11 +68,12 @@ const UnstyledButton = forwardRef((props, inRef) => {
|
|
|
67
68
|
const { buttonProps: elementProps } = $701a24aa0da5b062$export$ea18c227d4417cc3(__spreadProps(__spreadValues({}, props), {
|
|
68
69
|
elementType: As
|
|
69
70
|
}), ref);
|
|
70
|
-
return
|
|
71
|
+
return jsx(As, __spreadProps(__spreadValues({}, $3ef42575df84b30b$export$9d1611c77c2fe928(omitReactAriaSpecificProps(restProps), elementProps)), {
|
|
71
72
|
disabled: isDisabled,
|
|
72
73
|
ref: mergedRef,
|
|
73
|
-
className: classNames(styles.UnstyledButton, className)
|
|
74
|
-
|
|
74
|
+
className: classNames(styles.UnstyledButton, className),
|
|
75
|
+
children
|
|
76
|
+
}));
|
|
75
77
|
});
|
|
76
78
|
UnstyledButton.displayName = "UnstyledButton";
|
|
77
79
|
export {
|
|
@@ -30,6 +30,7 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
33
34
|
const React = require("react");
|
|
34
35
|
const utilities_css = require("../utilities/css.js");
|
|
35
36
|
const VerticalStack$1 = "_VerticalStack_ele7k_4";
|
|
@@ -44,11 +45,12 @@ const VerticalStack = React.forwardRef((props, ref) => {
|
|
|
44
45
|
const _a = props, { as: As = "div", align, children, gap, inline, inlineAlign, reverseOrder = false } = _a, restProps = __objRest(_a, ["as", "align", "children", "gap", "inline", "inlineAlign", "reverseOrder"]);
|
|
45
46
|
const className = utilities_css.classNames(styles.VerticalStack, (As === "ul" || As === "ol") && styles.listReset, As === "fieldset" && styles.fieldsetReset);
|
|
46
47
|
const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, utilities_css.getResponsiveDesignToken("vertical-stack", "gap", "space", gap)), utilities_css.getComponentToken("vertical-stack", "align", align)), utilities_css.getComponentToken("vertical-stack", "inline-align", inlineAlign)), utilities_css.getComponentToken("vertical-stack", "order", reverseOrder ? "column-reverse" : "column")), utilities_css.getComponentToken("vertical-stack", "display", inline ? "inline-flex" : "flex"));
|
|
47
|
-
return
|
|
48
|
+
return jsxRuntime.jsx(As, __spreadProps(__spreadValues({}, restProps), {
|
|
48
49
|
className,
|
|
49
50
|
style: utilities_css.sanitizeCustomProperties(style),
|
|
50
|
-
ref
|
|
51
|
-
|
|
51
|
+
ref,
|
|
52
|
+
children
|
|
53
|
+
}));
|
|
52
54
|
});
|
|
53
55
|
VerticalStack.displayName = "VerticalStack";
|
|
54
56
|
exports.VerticalStack = VerticalStack;
|
|
@@ -29,7 +29,8 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import
|
|
32
|
+
import { jsx } from "react/jsx-runtime";
|
|
33
|
+
import { forwardRef } from "react";
|
|
33
34
|
import { classNames, getComponentToken, getResponsiveDesignToken, sanitizeCustomProperties } from "../utilities/css.mjs";
|
|
34
35
|
const VerticalStack$1 = "_VerticalStack_ele7k_4";
|
|
35
36
|
const listReset = "_listReset_ele7k_57";
|
|
@@ -43,11 +44,12 @@ const VerticalStack = forwardRef((props, ref) => {
|
|
|
43
44
|
const _a = props, { as: As = "div", align, children, gap, inline, inlineAlign, reverseOrder = false } = _a, restProps = __objRest(_a, ["as", "align", "children", "gap", "inline", "inlineAlign", "reverseOrder"]);
|
|
44
45
|
const className = classNames(styles.VerticalStack, (As === "ul" || As === "ol") && styles.listReset, As === "fieldset" && styles.fieldsetReset);
|
|
45
46
|
const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, getResponsiveDesignToken("vertical-stack", "gap", "space", gap)), getComponentToken("vertical-stack", "align", align)), getComponentToken("vertical-stack", "inline-align", inlineAlign)), getComponentToken("vertical-stack", "order", reverseOrder ? "column-reverse" : "column")), getComponentToken("vertical-stack", "display", inline ? "inline-flex" : "flex"));
|
|
46
|
-
return
|
|
47
|
+
return jsx(As, __spreadProps(__spreadValues({}, restProps), {
|
|
47
48
|
className,
|
|
48
49
|
style: sanitizeCustomProperties(style),
|
|
49
|
-
ref
|
|
50
|
-
|
|
50
|
+
ref,
|
|
51
|
+
children
|
|
52
|
+
}));
|
|
51
53
|
});
|
|
52
54
|
VerticalStack.displayName = "VerticalStack";
|
|
53
55
|
export {
|