@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
package/SectionCard/index.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -14,6 +16,7 @@ var __spreadValues = (a, b) => {
|
|
|
14
16
|
}
|
|
15
17
|
return a;
|
|
16
18
|
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
17
20
|
var __objRest = (source, exclude) => {
|
|
18
21
|
var target = {};
|
|
19
22
|
for (var prop in source)
|
|
@@ -26,12 +29,12 @@ var __objRest = (source, exclude) => {
|
|
|
26
29
|
}
|
|
27
30
|
return target;
|
|
28
31
|
};
|
|
29
|
-
import
|
|
32
|
+
import { jsx } from "react/jsx-runtime";
|
|
30
33
|
import { l as lodashExports } from "../__chunks__/lodash-B19QVK6q.mjs";
|
|
31
|
-
import { p as pickCardAreaProps, C as Card } from "../__chunks__/Card-
|
|
32
|
-
import { T as Text } from "../__chunks__/Text-
|
|
33
|
-
import { V as VerticalStack } from "../__chunks__/VerticalStack-
|
|
34
|
-
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-
|
|
34
|
+
import { p as pickCardAreaProps, C as Card } from "../__chunks__/Card-BgjWYPVY.mjs";
|
|
35
|
+
import { T as Text } from "../__chunks__/Text-D6oT5WJQ.mjs";
|
|
36
|
+
import { V as VerticalStack } from "../__chunks__/VerticalStack-DoMqBfYD.mjs";
|
|
37
|
+
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-CJavrBHm.mjs";
|
|
35
38
|
const header = "_header_1wo2q_4";
|
|
36
39
|
const controls = "_controls_1wo2q_17";
|
|
37
40
|
const tabs = "_tabs_1wo2q_21";
|
|
@@ -44,52 +47,67 @@ function SectionCard(props) {
|
|
|
44
47
|
const _a = props, { children } = _a, cardProps = __objRest(_a, ["children"]);
|
|
45
48
|
const cardAreaProps = pickCardAreaProps(props);
|
|
46
49
|
const cardContainerProps = lodashExports.omit(cardProps, Object.keys(cardAreaProps));
|
|
47
|
-
return
|
|
50
|
+
return jsx(SectionCardContainer, __spreadProps(__spreadValues({}, cardContainerProps), {
|
|
51
|
+
children: jsx(SectionCardArea, __spreadProps(__spreadValues({}, cardAreaProps), {
|
|
52
|
+
children
|
|
53
|
+
}))
|
|
54
|
+
}));
|
|
48
55
|
}
|
|
49
56
|
function SectionCardContainer(props) {
|
|
50
57
|
const _a = props, { children } = _a, cardContainerProps = __objRest(_a, ["children"]);
|
|
51
|
-
return
|
|
58
|
+
return jsx(Card.Container, __spreadProps(__spreadValues({
|
|
52
59
|
as: "section",
|
|
53
60
|
variant: "solid",
|
|
54
61
|
boxShadow: "2",
|
|
55
62
|
borderRadius: "lg"
|
|
56
|
-
}, cardContainerProps),
|
|
63
|
+
}, cardContainerProps), {
|
|
64
|
+
children: jsx(VerticalStack, {
|
|
65
|
+
children
|
|
66
|
+
})
|
|
67
|
+
}));
|
|
57
68
|
}
|
|
58
69
|
function SectionCardArea(props) {
|
|
59
70
|
const _a = props, { children } = _a, cardAreaProps = __objRest(_a, ["children"]);
|
|
60
|
-
return
|
|
71
|
+
return jsx(Card.Area, __spreadProps(__spreadValues({
|
|
61
72
|
padding: "3"
|
|
62
|
-
}, cardAreaProps),
|
|
63
|
-
|
|
64
|
-
|
|
73
|
+
}, cardAreaProps), {
|
|
74
|
+
children: jsx(VerticalStack, {
|
|
75
|
+
gap: "2",
|
|
76
|
+
children
|
|
77
|
+
})
|
|
78
|
+
}));
|
|
65
79
|
}
|
|
66
80
|
function SectionCardHeader(props) {
|
|
67
|
-
return
|
|
68
|
-
className: styles.header
|
|
69
|
-
|
|
81
|
+
return jsx("div", {
|
|
82
|
+
className: styles.header,
|
|
83
|
+
children: props.children
|
|
84
|
+
});
|
|
70
85
|
}
|
|
71
86
|
function SectionCardControls(props) {
|
|
72
|
-
return
|
|
73
|
-
className: styles.controls
|
|
74
|
-
|
|
87
|
+
return jsx("div", {
|
|
88
|
+
className: styles.controls,
|
|
89
|
+
children: props.children
|
|
90
|
+
});
|
|
75
91
|
}
|
|
76
92
|
function SectionCardActions(props) {
|
|
77
|
-
return
|
|
93
|
+
return jsx(HorizontalStack, {
|
|
78
94
|
align: "end",
|
|
79
|
-
gap: "1"
|
|
80
|
-
|
|
95
|
+
gap: "1",
|
|
96
|
+
children: props.children
|
|
97
|
+
});
|
|
81
98
|
}
|
|
82
99
|
function SectionCardTitle(props) {
|
|
83
|
-
return
|
|
100
|
+
return jsx(Text, __spreadValues({
|
|
84
101
|
variant: "heading5",
|
|
85
102
|
as: "h2"
|
|
86
103
|
}, props));
|
|
87
104
|
}
|
|
88
105
|
function SectionCardTabs(props) {
|
|
89
106
|
const { children } = props;
|
|
90
|
-
return
|
|
91
|
-
className: styles.tabs
|
|
92
|
-
|
|
107
|
+
return jsx("div", {
|
|
108
|
+
className: styles.tabs,
|
|
109
|
+
children
|
|
110
|
+
});
|
|
93
111
|
}
|
|
94
112
|
SectionCard.Container = SectionCardContainer;
|
|
95
113
|
SectionCard.Area = SectionCardArea;
|
package/Select/index.js
CHANGED
|
@@ -19,38 +19,42 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
22
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
22
23
|
const React = require("react");
|
|
23
|
-
const SelectOverlay = require("../__chunks__/SelectOverlay-
|
|
24
|
+
const SelectOverlay = require("../__chunks__/SelectOverlay-Bva0SG8D.js");
|
|
24
25
|
const utilities_css = require("../utilities/css.js");
|
|
25
|
-
const InputCaption = require("../__chunks__/InputCaption-
|
|
26
|
-
const Text = require("../__chunks__/Text-
|
|
26
|
+
const InputCaption = require("../__chunks__/InputCaption-CccF4ynE.js");
|
|
27
|
+
const Text = require("../__chunks__/Text-DkzMEqky.js");
|
|
27
28
|
const ExpandMore400 = require("../__chunks__/ExpandMore400-CJpvxyJm.js");
|
|
28
|
-
const UnstyledButton = require("../__chunks__/UnstyledButton-
|
|
29
|
-
const InputIcon = require("../__chunks__/InputIcon-
|
|
29
|
+
const UnstyledButton = require("../__chunks__/UnstyledButton-DW8CjaXN.js");
|
|
30
|
+
const InputIcon = require("../__chunks__/InputIcon-DDKBJ_Tk.js");
|
|
30
31
|
const useTriggerWidth = require("../__chunks__/useTriggerWidth-NhYqZmlX.js");
|
|
31
32
|
function SelectTrigger(props) {
|
|
32
33
|
const { size = "md", valueProps, iconAtStart, hasError, isDisabled, children } = props;
|
|
33
34
|
const { triggerProps, triggerRef, selectState } = SelectOverlay.useInternalSelectContext();
|
|
34
35
|
const hasStartIcon = !!iconAtStart;
|
|
35
36
|
const className = utilities_css.classNames(SelectOverlay.styles.selectField, SelectOverlay.styles.selectFieldIconEnd, selectState.isOpen && SelectOverlay.styles.listboxOpen, hasError && SelectOverlay.styles.selectFieldError, hasStartIcon && SelectOverlay.styles.selectFieldIconStart, SelectOverlay.styles[utilities_css.variationName("selectSize", size)]);
|
|
36
|
-
return
|
|
37
|
-
className: SelectOverlay.styles.selectFieldIconContainer
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
37
|
+
return jsxRuntime.jsxs("div", {
|
|
38
|
+
className: SelectOverlay.styles.selectFieldIconContainer,
|
|
39
|
+
children: [hasStartIcon && jsxRuntime.jsx(InputIcon.InputIcon, {
|
|
40
|
+
alignment: "start",
|
|
41
|
+
icon: iconAtStart,
|
|
42
|
+
size,
|
|
43
|
+
isDisabled
|
|
44
|
+
}), jsxRuntime.jsx(UnstyledButton.UnstyledButton, __spreadProps(__spreadValues({}, triggerProps), {
|
|
45
|
+
ref: triggerRef,
|
|
46
|
+
className,
|
|
47
|
+
children: jsxRuntime.jsx("span", __spreadProps(__spreadValues({}, valueProps), {
|
|
48
|
+
className: SelectOverlay.styles.selectFieldText,
|
|
49
|
+
children
|
|
50
|
+
}))
|
|
51
|
+
})), jsxRuntime.jsx(InputIcon.InputIcon, {
|
|
52
|
+
alignment: "end",
|
|
53
|
+
icon: ExpandMore400.ExpandMore400,
|
|
54
|
+
size,
|
|
55
|
+
isDisabled
|
|
56
|
+
})]
|
|
57
|
+
});
|
|
54
58
|
}
|
|
55
59
|
function SelectField(props) {
|
|
56
60
|
const { isDisabled = false, validationState = "valid", isLabelEmphasized = false, size = "md", label, errorText, helperText, placeholder, iconAtStart, labelProps, valueProps, errorTextProps, helperTextProps } = props;
|
|
@@ -60,28 +64,35 @@ function SelectField(props) {
|
|
|
60
64
|
const showHelperText = !showErrorText && helperText;
|
|
61
65
|
const captionProps = showHelperText ? helperTextProps : errorTextProps;
|
|
62
66
|
const captionText = showHelperText ? helperText : errorText;
|
|
63
|
-
return
|
|
64
|
-
className: utilities_css.classNames(SelectOverlay.styles.fieldRoot)
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
67
|
+
return jsxRuntime.jsxs("div", {
|
|
68
|
+
className: utilities_css.classNames(SelectOverlay.styles.fieldRoot),
|
|
69
|
+
children: [label && jsxRuntime.jsx(InputCaption.Label, __spreadProps(__spreadValues({
|
|
70
|
+
fieldSize: size,
|
|
71
|
+
hasError,
|
|
72
|
+
isLabelEmphasized
|
|
73
|
+
}, labelProps), {
|
|
74
|
+
children: label
|
|
75
|
+
})), jsxRuntime.jsx(SelectOverlay.$bdd25dc72710631f$export$cbd84cdb2e668835, {
|
|
76
|
+
isDisabled,
|
|
77
|
+
state: selectState,
|
|
78
|
+
triggerRef,
|
|
79
|
+
label
|
|
80
|
+
}), jsxRuntime.jsx(SelectTrigger, {
|
|
81
|
+
valueProps,
|
|
82
|
+
iconAtStart,
|
|
83
|
+
hasError,
|
|
84
|
+
isDisabled,
|
|
85
|
+
size,
|
|
86
|
+
children: selectState.selectedItem ? selectState.selectedItem.rendered : jsxRuntime.jsx(Text.Text, {
|
|
87
|
+
color: "neutral.600",
|
|
88
|
+
children: placeholder
|
|
89
|
+
})
|
|
90
|
+
}), (showErrorText || showHelperText) && jsxRuntime.jsx(InputCaption.InputCaption, __spreadProps(__spreadValues({
|
|
91
|
+
variant: showHelperText ? "helper" : "error"
|
|
92
|
+
}, captionProps), {
|
|
93
|
+
children: captionText
|
|
94
|
+
}))]
|
|
95
|
+
});
|
|
85
96
|
}
|
|
86
97
|
function Select(props) {
|
|
87
98
|
const { isDisabled, validationState, isLabelEmphasized, size = "md", "aria-label": ariaLabel, label, errorText, helperText, placeholder, iconAtStart } = props;
|
|
@@ -100,23 +111,24 @@ function Select(props) {
|
|
|
100
111
|
triggerWidth
|
|
101
112
|
};
|
|
102
113
|
}, [triggerProps, listBoxPropsFromSelect, selectState, triggerWidth]);
|
|
103
|
-
return
|
|
104
|
-
value: context
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
114
|
+
return jsxRuntime.jsxs(SelectOverlay.InternalSelectContext.Provider, {
|
|
115
|
+
value: context,
|
|
116
|
+
children: [jsxRuntime.jsx(SelectField, {
|
|
117
|
+
isDisabled,
|
|
118
|
+
validationState,
|
|
119
|
+
isLabelEmphasized,
|
|
120
|
+
size,
|
|
121
|
+
label,
|
|
122
|
+
errorText,
|
|
123
|
+
helperText,
|
|
124
|
+
placeholder,
|
|
125
|
+
iconAtStart,
|
|
126
|
+
labelProps,
|
|
127
|
+
valueProps,
|
|
128
|
+
helperTextProps,
|
|
129
|
+
errorTextProps
|
|
130
|
+
}), jsxRuntime.jsx(SelectOverlay.SelectOverlay, {})]
|
|
131
|
+
});
|
|
120
132
|
}
|
|
121
133
|
Select.Section = SelectOverlay.SelectSection;
|
|
122
134
|
Select.Option = SelectOverlay.SelectOption;
|
package/Select/index.mjs
CHANGED
|
@@ -17,38 +17,42 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
20
21
|
import React__default, { useMemo } from "react";
|
|
21
|
-
import { u as useInternalSelectContext, s as styles, $ as $bdd25dc72710631f$export$cbd84cdb2e668835, a as $2bc3a590c5373a4e$export$5159ec8b34d4ec12, b as $58aed456727eb0f3$export$e64b2f635402ca43, I as InternalSelectContext, S as SelectOverlay, c as SelectSection, d as SelectOption } from "../__chunks__/SelectOverlay-
|
|
22
|
+
import { u as useInternalSelectContext, s as styles, $ as $bdd25dc72710631f$export$cbd84cdb2e668835, a as $2bc3a590c5373a4e$export$5159ec8b34d4ec12, b as $58aed456727eb0f3$export$e64b2f635402ca43, I as InternalSelectContext, S as SelectOverlay, c as SelectSection, d as SelectOption } from "../__chunks__/SelectOverlay-q23ZLLi4.mjs";
|
|
22
23
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
23
|
-
import { L as Label, I as InputCaption } from "../__chunks__/InputCaption-
|
|
24
|
-
import { T as Text } from "../__chunks__/Text-
|
|
24
|
+
import { L as Label, I as InputCaption } from "../__chunks__/InputCaption-DoyGkWQe.mjs";
|
|
25
|
+
import { T as Text } from "../__chunks__/Text-D6oT5WJQ.mjs";
|
|
25
26
|
import { E as ExpandMore400 } from "../__chunks__/ExpandMore400-CH7GNxqk.mjs";
|
|
26
|
-
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-
|
|
27
|
-
import { I as InputIcon, l as logWarningForMissingAriaLabel } from "../__chunks__/InputIcon-
|
|
27
|
+
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-DxJLvL-G.mjs";
|
|
28
|
+
import { I as InputIcon, l as logWarningForMissingAriaLabel } from "../__chunks__/InputIcon-CEATdJ1j.mjs";
|
|
28
29
|
import { u as useTriggerWidth } from "../__chunks__/useTriggerWidth-CBghrvjy.mjs";
|
|
29
30
|
function SelectTrigger(props) {
|
|
30
31
|
const { size = "md", valueProps, iconAtStart, hasError, isDisabled, children } = props;
|
|
31
32
|
const { triggerProps, triggerRef, selectState } = useInternalSelectContext();
|
|
32
33
|
const hasStartIcon = !!iconAtStart;
|
|
33
34
|
const className = classNames(styles.selectField, styles.selectFieldIconEnd, selectState.isOpen && styles.listboxOpen, hasError && styles.selectFieldError, hasStartIcon && styles.selectFieldIconStart, styles[variationName("selectSize", size)]);
|
|
34
|
-
return
|
|
35
|
-
className: styles.selectFieldIconContainer
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
35
|
+
return jsxs("div", {
|
|
36
|
+
className: styles.selectFieldIconContainer,
|
|
37
|
+
children: [hasStartIcon && jsx(InputIcon, {
|
|
38
|
+
alignment: "start",
|
|
39
|
+
icon: iconAtStart,
|
|
40
|
+
size,
|
|
41
|
+
isDisabled
|
|
42
|
+
}), jsx(UnstyledButton, __spreadProps(__spreadValues({}, triggerProps), {
|
|
43
|
+
ref: triggerRef,
|
|
44
|
+
className,
|
|
45
|
+
children: jsx("span", __spreadProps(__spreadValues({}, valueProps), {
|
|
46
|
+
className: styles.selectFieldText,
|
|
47
|
+
children
|
|
48
|
+
}))
|
|
49
|
+
})), jsx(InputIcon, {
|
|
50
|
+
alignment: "end",
|
|
51
|
+
icon: ExpandMore400,
|
|
52
|
+
size,
|
|
53
|
+
isDisabled
|
|
54
|
+
})]
|
|
55
|
+
});
|
|
52
56
|
}
|
|
53
57
|
function SelectField(props) {
|
|
54
58
|
const { isDisabled = false, validationState = "valid", isLabelEmphasized = false, size = "md", label, errorText, helperText, placeholder, iconAtStart, labelProps, valueProps, errorTextProps, helperTextProps } = props;
|
|
@@ -58,28 +62,35 @@ function SelectField(props) {
|
|
|
58
62
|
const showHelperText = !showErrorText && helperText;
|
|
59
63
|
const captionProps = showHelperText ? helperTextProps : errorTextProps;
|
|
60
64
|
const captionText = showHelperText ? helperText : errorText;
|
|
61
|
-
return
|
|
62
|
-
className: classNames(styles.fieldRoot)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
65
|
+
return jsxs("div", {
|
|
66
|
+
className: classNames(styles.fieldRoot),
|
|
67
|
+
children: [label && jsx(Label, __spreadProps(__spreadValues({
|
|
68
|
+
fieldSize: size,
|
|
69
|
+
hasError,
|
|
70
|
+
isLabelEmphasized
|
|
71
|
+
}, labelProps), {
|
|
72
|
+
children: label
|
|
73
|
+
})), jsx($bdd25dc72710631f$export$cbd84cdb2e668835, {
|
|
74
|
+
isDisabled,
|
|
75
|
+
state: selectState,
|
|
76
|
+
triggerRef,
|
|
77
|
+
label
|
|
78
|
+
}), jsx(SelectTrigger, {
|
|
79
|
+
valueProps,
|
|
80
|
+
iconAtStart,
|
|
81
|
+
hasError,
|
|
82
|
+
isDisabled,
|
|
83
|
+
size,
|
|
84
|
+
children: selectState.selectedItem ? selectState.selectedItem.rendered : jsx(Text, {
|
|
85
|
+
color: "neutral.600",
|
|
86
|
+
children: placeholder
|
|
87
|
+
})
|
|
88
|
+
}), (showErrorText || showHelperText) && jsx(InputCaption, __spreadProps(__spreadValues({
|
|
89
|
+
variant: showHelperText ? "helper" : "error"
|
|
90
|
+
}, captionProps), {
|
|
91
|
+
children: captionText
|
|
92
|
+
}))]
|
|
93
|
+
});
|
|
83
94
|
}
|
|
84
95
|
function Select(props) {
|
|
85
96
|
const { isDisabled, validationState, isLabelEmphasized, size = "md", "aria-label": ariaLabel, label, errorText, helperText, placeholder, iconAtStart } = props;
|
|
@@ -98,23 +109,24 @@ function Select(props) {
|
|
|
98
109
|
triggerWidth
|
|
99
110
|
};
|
|
100
111
|
}, [triggerProps, listBoxPropsFromSelect, selectState, triggerWidth]);
|
|
101
|
-
return
|
|
102
|
-
value: context
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
112
|
+
return jsxs(InternalSelectContext.Provider, {
|
|
113
|
+
value: context,
|
|
114
|
+
children: [jsx(SelectField, {
|
|
115
|
+
isDisabled,
|
|
116
|
+
validationState,
|
|
117
|
+
isLabelEmphasized,
|
|
118
|
+
size,
|
|
119
|
+
label,
|
|
120
|
+
errorText,
|
|
121
|
+
helperText,
|
|
122
|
+
placeholder,
|
|
123
|
+
iconAtStart,
|
|
124
|
+
labelProps,
|
|
125
|
+
valueProps,
|
|
126
|
+
helperTextProps,
|
|
127
|
+
errorTextProps
|
|
128
|
+
}), jsx(SelectOverlay, {})]
|
|
129
|
+
});
|
|
118
130
|
}
|
|
119
131
|
Select.Section = SelectSection;
|
|
120
132
|
Select.Option = SelectOption;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const SelectorErrorTooltip = require("../__chunks__/SelectorErrorTooltip-
|
|
3
|
+
const SelectorErrorTooltip = require("../__chunks__/SelectorErrorTooltip-BNLrFRLN.js");
|
|
4
4
|
exports.SelectorErrorTooltip = SelectorErrorTooltip.SelectorErrorTooltip;
|
package/Spinner/index.js
CHANGED
package/Spinner/index.mjs
CHANGED
package/SplitToggleCard/index.js
CHANGED
|
@@ -28,23 +28,29 @@ var __objRest = (source, exclude) => {
|
|
|
28
28
|
return target;
|
|
29
29
|
};
|
|
30
30
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
31
|
-
const
|
|
32
|
-
const Card = require("../__chunks__/Card-
|
|
33
|
-
const HorizontalGrid = require("../__chunks__/HorizontalGrid-
|
|
34
|
-
const HorizontalStack = require("../__chunks__/HorizontalStack-
|
|
35
|
-
const Toggle = require("../__chunks__/Toggle-
|
|
31
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
32
|
+
const Card = require("../__chunks__/Card-LPIW5drP.js");
|
|
33
|
+
const HorizontalGrid = require("../__chunks__/HorizontalGrid-CAoDcmPW.js");
|
|
34
|
+
const HorizontalStack = require("../__chunks__/HorizontalStack-CWdKKY8L.js");
|
|
35
|
+
const Toggle = require("../__chunks__/Toggle-BmJjrdVn.js");
|
|
36
36
|
const SplitToggleCard = (props) => {
|
|
37
37
|
const _a = props, { children } = _a, toggleProps = __objRest(_a, ["children"]);
|
|
38
|
-
return
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
return jsxRuntime.jsx(Card.Card.Container, {
|
|
39
|
+
children: jsxRuntime.jsxs(HorizontalGrid.HorizontalGrid, {
|
|
40
|
+
columns: ["80px", "1fr"],
|
|
41
|
+
children: [jsxRuntime.jsx(Card.Card.Area, {
|
|
42
|
+
background: "secondary",
|
|
43
|
+
padding: "3",
|
|
44
|
+
children: jsxRuntime.jsx(HorizontalStack.HorizontalStack, {
|
|
45
|
+
align: "center",
|
|
46
|
+
children: jsxRuntime.jsx(Toggle.Toggle, __spreadValues({}, toggleProps))
|
|
47
|
+
})
|
|
48
|
+
}), jsxRuntime.jsx(Card.Card.Area, {
|
|
49
|
+
background: "primary",
|
|
50
|
+
padding: "2",
|
|
51
|
+
children
|
|
52
|
+
})]
|
|
53
|
+
})
|
|
54
|
+
});
|
|
49
55
|
};
|
|
50
56
|
exports.SplitToggleCard = SplitToggleCard;
|
|
@@ -26,24 +26,30 @@ var __objRest = (source, exclude) => {
|
|
|
26
26
|
}
|
|
27
27
|
return target;
|
|
28
28
|
};
|
|
29
|
-
import
|
|
30
|
-
import { C as Card } from "../__chunks__/Card-
|
|
31
|
-
import { H as HorizontalGrid } from "../__chunks__/HorizontalGrid-
|
|
32
|
-
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-
|
|
33
|
-
import { T as Toggle } from "../__chunks__/Toggle-
|
|
29
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
30
|
+
import { C as Card } from "../__chunks__/Card-BgjWYPVY.mjs";
|
|
31
|
+
import { H as HorizontalGrid } from "../__chunks__/HorizontalGrid-DbLeJBt8.mjs";
|
|
32
|
+
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-CJavrBHm.mjs";
|
|
33
|
+
import { T as Toggle } from "../__chunks__/Toggle-DlDQ7rr2.mjs";
|
|
34
34
|
const SplitToggleCard = (props) => {
|
|
35
35
|
const _a = props, { children } = _a, toggleProps = __objRest(_a, ["children"]);
|
|
36
|
-
return
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
36
|
+
return jsx(Card.Container, {
|
|
37
|
+
children: jsxs(HorizontalGrid, {
|
|
38
|
+
columns: ["80px", "1fr"],
|
|
39
|
+
children: [jsx(Card.Area, {
|
|
40
|
+
background: "secondary",
|
|
41
|
+
padding: "3",
|
|
42
|
+
children: jsx(HorizontalStack, {
|
|
43
|
+
align: "center",
|
|
44
|
+
children: jsx(Toggle, __spreadValues({}, toggleProps))
|
|
45
|
+
})
|
|
46
|
+
}), jsx(Card.Area, {
|
|
47
|
+
background: "primary",
|
|
48
|
+
padding: "2",
|
|
49
|
+
children
|
|
50
|
+
})]
|
|
51
|
+
})
|
|
52
|
+
});
|
|
47
53
|
};
|
|
48
54
|
export {
|
|
49
55
|
SplitToggleCard
|
package/Stepper/index.js
CHANGED
package/Stepper/index.mjs
CHANGED
package/TabNav/index.js
CHANGED
package/TabNav/index.mjs
CHANGED