@easypost/easy-ui 1.0.0-alpha.113 → 1.0.0-alpha.115
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 +11 -9
- package/AlertBadge/index.mjs +11 -9
- package/Badge/index.js +12 -12
- package/Badge/index.mjs +12 -12
- package/Banner/index.js +7 -7
- package/Banner/index.mjs +7 -7
- 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 +14 -14
- package/CheckableCard/index.mjs +14 -14
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +30 -30
- package/CodeBlock/index.mjs +30 -30
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/ColorPicker/index.js +24 -24
- package/ColorPicker/index.mjs +24 -24
- package/CustomerPortalLayout/index.js +36 -36
- package/CustomerPortalLayout/index.mjs +36 -36
- package/DataGrid/index.js +78 -78
- package/DataGrid/index.mjs +78 -78
- package/DatePicker/index.js +6 -6
- package/DatePicker/index.mjs +6 -6
- package/DateRangePicker/index.js +6 -6
- package/DateRangePicker/index.mjs +6 -6
- package/Drawer/index.js +24 -24
- package/Drawer/index.mjs +24 -24
- package/DropdownButton/index.js +7 -7
- package/DropdownButton/index.mjs +7 -7
- package/EmptyStateCard/index.js +18 -18
- package/EmptyStateCard/index.mjs +18 -18
- package/FocusedProductLayout/index.js +38 -38
- package/FocusedProductLayout/index.mjs +38 -38
- package/ForgeLayout/index.js +91 -91
- package/ForgeLayout/index.mjs +92 -92
- package/FormLayout/index.js +11 -11
- package/FormLayout/index.mjs +11 -11
- 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 +7 -7
- package/IconButton/index.mjs +7 -7
- 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/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Modal/index.js +39 -39
- package/Modal/index.mjs +39 -39
- package/MultiSelect/index.js +30 -30
- package/MultiSelect/index.mjs +31 -31
- package/MultipageSection/index.js +28 -28
- package/MultipageSection/index.mjs +28 -28
- package/NexusLayout/index.js +44 -44
- package/NexusLayout/index.mjs +44 -44
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +21 -21
- package/Pagination/index.mjs +21 -21
- package/PillGroup/index.js +1 -1
- package/PillGroup/index.mjs +1 -1
- package/PlanCard/illustrations/Building01/index.js +88 -88
- package/PlanCard/illustrations/Building01/index.mjs +88 -88
- package/PlanCard/illustrations/Building02/index.js +33 -33
- package/PlanCard/illustrations/Building02/index.mjs +33 -33
- package/PlanCard/illustrations/Building03/index.js +120 -120
- package/PlanCard/illustrations/Building03/index.mjs +120 -120
- package/PlanCard/illustrations/Building04/index.js +236 -236
- package/PlanCard/illustrations/Building04/index.mjs +236 -236
- package/PlanCard/index.js +17 -17
- package/PlanCard/index.mjs +17 -17
- package/ProductLayout/index.js +48 -48
- package/ProductLayout/index.mjs +48 -48
- package/Provider/index.js +7 -7
- package/Provider/index.mjs +7 -7
- package/RadioButtonGroup/index.js +5 -5
- package/RadioButtonGroup/index.mjs +5 -5
- 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/index.js +70 -70
- package/SearchNav/index.mjs +71 -71
- package/SectionCard/index.js +16 -16
- package/SectionCard/index.mjs +16 -16
- package/Select/index.js +20 -20
- package/Select/index.mjs +20 -20
- 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 +11 -11
- package/SplitToggleCard/index.mjs +11 -11
- 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 +7 -7
- package/TabPanels/index.mjs +7 -7
- 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 +7 -7
- package/ToggleCard/index.mjs +7 -7
- 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 +39 -39
- package/VerticalNav/index.mjs +39 -39
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/{Button-C3vDXJsJ.js → Button-CQdi4TMV.js} +7 -7
- package/__chunks__/{Button-Dexauftx.mjs → Button-JL1YQxJ5.mjs} +7 -7
- package/__chunks__/{Calendar-BEbdigVB.js → Calendar-C9zdRov0.js} +3 -3
- package/__chunks__/{Calendar-BOxw8lwX.mjs → Calendar-DLzAtdfg.mjs} +3 -3
- package/__chunks__/{CalendarBase-3a9i7QNo.mjs → CalendarBase-DJ38_qK6.mjs} +32 -32
- package/__chunks__/{CalendarBase-Bx8bdXeT.js → CalendarBase-M-f289w8.js} +32 -32
- package/__chunks__/{Card-8778avMv.mjs → Card-BgjWYPVY.mjs} +5 -5
- package/__chunks__/{Card-DIZFYg6E.js → Card-LPIW5drP.js} +5 -5
- package/__chunks__/{Checkbox-DFWhjlaO.js → Checkbox-B_-6lfKk.js} +14 -14
- package/__chunks__/{Checkbox-C-NlI-Ym.mjs → Checkbox-DcaO0fC3.mjs} +14 -14
- package/__chunks__/{CodeSnippet-BCOMwE07.js → CodeSnippet-25l4r2Gh.js} +5 -5
- package/__chunks__/{CodeSnippet-CWnMHdVu.mjs → CodeSnippet-B3nsMpvq.mjs} +5 -5
- package/__chunks__/{DatePickerBase-C4PwUr9x.mjs → DatePickerBase-BQc8LKWg.mjs} +30 -30
- package/__chunks__/{DatePickerBase-XoRply_u.js → DatePickerBase-BYYfRTEY.js} +30 -30
- package/__chunks__/{EasyPostLogo-D3WNdZ29.js → EasyPostLogo-C9-Q0lSn.js} +5 -5
- package/__chunks__/{EasyPostLogo-tf6CCEAq.mjs → EasyPostLogo-DgIgAGa3.mjs} +5 -5
- package/__chunks__/{HelpMenu-8r0cjx5z.mjs → HelpMenu-BZRV42ab.mjs} +14 -14
- package/__chunks__/{HelpMenu-DBo_fklD.js → HelpMenu-C2t8KQuU.js} +14 -14
- package/__chunks__/{HorizontalGrid-BAvSeg39.js → HorizontalGrid-CAoDcmPW.js} +2 -2
- package/__chunks__/{HorizontalGrid-C4MBFEH-.mjs → HorizontalGrid-DbLeJBt8.mjs} +2 -2
- package/__chunks__/{HorizontalStack-BkE82C73.mjs → HorizontalStack-CJavrBHm.mjs} +2 -2
- package/__chunks__/{HorizontalStack-DidoI4Ks.js → HorizontalStack-CWdKKY8L.js} +2 -2
- package/__chunks__/{Icon-DzTns8u5.mjs → Icon-BIpaQJ_I.mjs} +3 -3
- package/__chunks__/{Icon-BVa5ddiD.js → Icon-BRlbo3RF.js} +3 -3
- package/__chunks__/{InputCaption-Dkyn1sg6.js → InputCaption-CccF4ynE.js} +6 -6
- package/__chunks__/{InputCaption-B8bZH6sX.mjs → InputCaption-DoyGkWQe.mjs} +6 -6
- package/__chunks__/{InputField-BTrYBVAD.mjs → InputField-CAY9O90X.mjs} +21 -21
- package/__chunks__/{InputField-Dvkk5R1K.js → InputField-DGb4ZDoR.js} +21 -21
- package/__chunks__/{InputIcon-BLJ6dx_5.mjs → InputIcon-CEATdJ1j.mjs} +4 -4
- package/__chunks__/{InputIcon-BSIAXX9k.js → InputIcon-DDKBJ_Tk.js} +4 -4
- package/__chunks__/{KebabButton-DSK0ISAn.mjs → KebabButton-D-5Mjaj0.mjs} +7 -7
- package/__chunks__/{KebabButton-3FnxY-Fz.js → KebabButton-TbapERgy.js} +7 -7
- package/__chunks__/{Menu-C2F4fvhd.mjs → Menu-Ci1FGh8B.mjs} +29 -29
- package/__chunks__/{Menu-Du8SsMeJ.js → Menu-MGDv1tob.js} +29 -29
- package/__chunks__/{Notification-CeJn5Qq1.js → Notification-DDQHWloB.js} +21 -21
- package/__chunks__/{Notification-CgUT2gv6.mjs → Notification-DnNx0rb6.mjs} +21 -21
- package/__chunks__/{PillGroup-rTS853Rr.js → PillGroup-BK8VCf3B.js} +14 -14
- package/__chunks__/{PillGroup-EJ8t8SrT.mjs → PillGroup-DN72MPhg.mjs} +14 -14
- package/__chunks__/{RadioGroup-DBgIqOkZ.mjs → RadioGroup-BfKaJnSo.mjs} +19 -19
- package/__chunks__/{RadioGroup-BFqH1Csi.js → RadioGroup-BiCqtR0F.js} +19 -19
- package/__chunks__/{RangeCalendar-BSsmX9l4.mjs → RangeCalendar-BdTjX8NT.mjs} +3 -3
- package/__chunks__/{RangeCalendar-Do2nei5A.js → RangeCalendar-Dz6LyRYS.js} +3 -3
- package/__chunks__/{SelectOverlay-DjiJHthj.js → SelectOverlay-Bva0SG8D.js} +20 -20
- package/__chunks__/{SelectOverlay-DUIIhF4t.mjs → SelectOverlay-q23ZLLi4.mjs} +20 -20
- package/__chunks__/{SelectorErrorTooltip-BMxbuFiM.js → SelectorErrorTooltip-BNLrFRLN.js} +8 -8
- package/__chunks__/{SelectorErrorTooltip-BC-1JoX3.mjs → SelectorErrorTooltip-rO2-k3Gl.mjs} +8 -8
- package/__chunks__/{Spinner-2PFCOK3I.mjs → Spinner-COsekFr1.mjs} +7 -7
- package/__chunks__/{Spinner-Dd68v9QX.js → Spinner-vRnrcEz0.js} +7 -7
- package/__chunks__/{Stepper-q3YNLglj.mjs → Stepper-DlI-16t-.mjs} +17 -17
- package/__chunks__/{Stepper-BZ90AIx0.js → Stepper-lhcjfVFY.js} +17 -17
- package/__chunks__/{TabNav-BnpNl7tj.mjs → TabNav-BNhQF0b0.mjs} +4 -4
- package/__chunks__/{TabNav-CLVG0bL2.js → TabNav-bVgyfEV7.js} +4 -4
- package/__chunks__/{Tabs-CtyYEye0.mjs → Tabs-BaROnbKg.mjs} +14 -14
- package/__chunks__/{Tabs-5_61DIBw.js → Tabs-DSngzN9A.js} +14 -14
- package/__chunks__/{Text-u9mYLeWj.mjs → Text-D6oT5WJQ.mjs} +2 -2
- package/__chunks__/{Text-C4CEsglh.js → Text-DkzMEqky.js} +2 -2
- package/__chunks__/{TextField-D1JGaTQv.mjs → TextField-818kTElu.mjs} +3 -3
- package/__chunks__/{TextField-DE1vPtQm.js → TextField-DKQVJPP_.js} +3 -3
- package/__chunks__/{Theme-unLHjjnm.js → Theme-C2nSZUpG.js} +10 -10
- package/__chunks__/{Theme-CyUCrGdN.mjs → Theme-M__gFMM3.mjs} +10 -10
- package/__chunks__/{Toggle-BHzAGPDh.js → Toggle-BmJjrdVn.js} +11 -11
- package/__chunks__/{Toggle-DioYP2KQ.mjs → Toggle-DlDQ7rr2.mjs} +11 -11
- package/__chunks__/{Tooltip-COjtKErw.js → Tooltip-BSMvNula.js} +9 -9
- package/__chunks__/{Tooltip-BKGkKnOx.mjs → Tooltip-BXRi0h4E.mjs} +9 -9
- package/__chunks__/{UnstyledButton-_YQekhlm.js → UnstyledButton-DW8CjaXN.js} +2 -2
- package/__chunks__/{UnstyledButton-BCg7eEyP.mjs → UnstyledButton-DxJLvL-G.mjs} +2 -2
- package/__chunks__/{VerticalStack-CunLpHRv.js → VerticalStack-BHkiocKU.js} +2 -2
- package/__chunks__/{VerticalStack-Cbdpucbh.mjs → VerticalStack-DoMqBfYD.mjs} +2 -2
- package/__chunks__/{useEdgeInterceptors-BBmo6MI4.mjs → useEdgeInterceptors-OZmGXvtF.mjs} +6 -6
- package/__chunks__/{useEdgeInterceptors-BLxn3eUi.js → useEdgeInterceptors-Rb2Hf0v8.js} +6 -6
- package/package.json +1 -1
- package/__chunks__/jsx-runtime-CH1d66I3.js +0 -320
- package/__chunks__/jsx-runtime-DTpFD6nx.mjs +0 -321
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { I as Icon } from "./Icon-
|
|
4
|
-
import { M as Menu } from "./Menu-
|
|
5
|
-
import { T as Text } from "./Text-
|
|
6
|
-
import { U as UnstyledButton } from "./UnstyledButton-
|
|
3
|
+
import { I as Icon } from "./Icon-BIpaQJ_I.mjs";
|
|
4
|
+
import { M as Menu } from "./Menu-Ci1FGh8B.mjs";
|
|
5
|
+
import { T as Text } from "./Text-D6oT5WJQ.mjs";
|
|
6
|
+
import { U as UnstyledButton } from "./UnstyledButton-DxJLvL-G.mjs";
|
|
7
7
|
var __defProp$1 = Object.defineProperty;
|
|
8
8
|
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
9
9
|
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
@@ -88,26 +88,26 @@ const styles = {
|
|
|
88
88
|
};
|
|
89
89
|
function HelpMenu(props) {
|
|
90
90
|
const { items, onAction } = props;
|
|
91
|
-
return
|
|
92
|
-
children: [
|
|
93
|
-
children:
|
|
91
|
+
return jsxs(Menu, {
|
|
92
|
+
children: [jsx(Menu.Trigger, {
|
|
93
|
+
children: jsx(UnstyledButton, {
|
|
94
94
|
className: styles.button,
|
|
95
|
-
children:
|
|
95
|
+
children: jsxs("span", {
|
|
96
96
|
className: styles.buttonContent,
|
|
97
|
-
children: [
|
|
97
|
+
children: [jsx(Icon, {
|
|
98
98
|
symbol: Support
|
|
99
|
-
}),
|
|
99
|
+
}), jsx(Text, {
|
|
100
100
|
variant: "subtitle1",
|
|
101
101
|
children: "Help"
|
|
102
|
-
}),
|
|
102
|
+
}), jsx("span", {
|
|
103
103
|
className: styles.arrow,
|
|
104
|
-
children:
|
|
104
|
+
children: jsx(Icon, {
|
|
105
105
|
symbol: ArrowDropDown
|
|
106
106
|
})
|
|
107
107
|
})]
|
|
108
108
|
})
|
|
109
109
|
})
|
|
110
|
-
}),
|
|
110
|
+
}), jsx(Menu.Overlay, {
|
|
111
111
|
onAction,
|
|
112
112
|
placement: "bottom right",
|
|
113
113
|
children: items
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const jsxRuntime = require("
|
|
2
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const Icon = require("./Icon-
|
|
5
|
-
const Menu = require("./Menu-
|
|
6
|
-
const Text = require("./Text-
|
|
7
|
-
const UnstyledButton = require("./UnstyledButton-
|
|
4
|
+
const Icon = require("./Icon-BRlbo3RF.js");
|
|
5
|
+
const Menu = require("./Menu-MGDv1tob.js");
|
|
6
|
+
const Text = require("./Text-DkzMEqky.js");
|
|
7
|
+
const UnstyledButton = require("./UnstyledButton-DW8CjaXN.js");
|
|
8
8
|
function _interopNamespaceDefault(e) {
|
|
9
9
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
10
10
|
if (e) {
|
|
@@ -106,26 +106,26 @@ const styles = {
|
|
|
106
106
|
};
|
|
107
107
|
function HelpMenu(props) {
|
|
108
108
|
const { items, onAction } = props;
|
|
109
|
-
return jsxRuntime.
|
|
110
|
-
children: [jsxRuntime.
|
|
111
|
-
children: jsxRuntime.
|
|
109
|
+
return jsxRuntime.jsxs(Menu.Menu, {
|
|
110
|
+
children: [jsxRuntime.jsx(Menu.Menu.Trigger, {
|
|
111
|
+
children: jsxRuntime.jsx(UnstyledButton.UnstyledButton, {
|
|
112
112
|
className: styles.button,
|
|
113
|
-
children: jsxRuntime.
|
|
113
|
+
children: jsxRuntime.jsxs("span", {
|
|
114
114
|
className: styles.buttonContent,
|
|
115
|
-
children: [jsxRuntime.
|
|
115
|
+
children: [jsxRuntime.jsx(Icon.Icon, {
|
|
116
116
|
symbol: Support
|
|
117
|
-
}), jsxRuntime.
|
|
117
|
+
}), jsxRuntime.jsx(Text.Text, {
|
|
118
118
|
variant: "subtitle1",
|
|
119
119
|
children: "Help"
|
|
120
|
-
}), jsxRuntime.
|
|
120
|
+
}), jsxRuntime.jsx("span", {
|
|
121
121
|
className: styles.arrow,
|
|
122
|
-
children: jsxRuntime.
|
|
122
|
+
children: jsxRuntime.jsx(Icon.Icon, {
|
|
123
123
|
symbol: ArrowDropDown
|
|
124
124
|
})
|
|
125
125
|
})]
|
|
126
126
|
})
|
|
127
127
|
})
|
|
128
|
-
}), jsxRuntime.
|
|
128
|
+
}), jsxRuntime.jsx(Menu.Menu.Overlay, {
|
|
129
129
|
onAction,
|
|
130
130
|
placement: "bottom right",
|
|
131
131
|
children: items
|
|
@@ -15,7 +15,7 @@ var __spreadValues = (a, b) => {
|
|
|
15
15
|
}
|
|
16
16
|
return a;
|
|
17
17
|
};
|
|
18
|
-
const jsxRuntime = require("
|
|
18
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
19
19
|
const React = require("react");
|
|
20
20
|
const utilities_css = require("../utilities/css.js");
|
|
21
21
|
function formatHorizontalGrid(columns) {
|
|
@@ -52,7 +52,7 @@ const styles = {
|
|
|
52
52
|
const HorizontalGrid = React.forwardRef((props, ref) => {
|
|
53
53
|
const { alignItems, as: As = "div", children, columns, gap, inline } = props;
|
|
54
54
|
const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, utilities_css.getResponsiveValue("horizontal-grid", "grid-template-columns", formatHorizontalGrid(columns))), utilities_css.getResponsiveDesignToken("horizontal-grid", "gap", "space", gap)), utilities_css.getComponentToken("horizontal-grid", "align-items", alignItems)), utilities_css.getComponentToken("horizontal-grid", "display", inline ? "inline-grid" : "grid"));
|
|
55
|
-
return jsxRuntime.
|
|
55
|
+
return jsxRuntime.jsx(As, {
|
|
56
56
|
className: styles.HorizontalGrid,
|
|
57
57
|
style,
|
|
58
58
|
ref,
|
|
@@ -14,7 +14,7 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import {
|
|
17
|
+
import { jsx } from "react/jsx-runtime";
|
|
18
18
|
import { forwardRef } from "react";
|
|
19
19
|
import { getComponentToken, getResponsiveDesignToken, getResponsiveValue } from "../utilities/css.mjs";
|
|
20
20
|
function formatHorizontalGrid(columns) {
|
|
@@ -51,7 +51,7 @@ const styles = {
|
|
|
51
51
|
const HorizontalGrid = forwardRef((props, ref) => {
|
|
52
52
|
const { alignItems, as: As = "div", children, columns, gap, inline } = props;
|
|
53
53
|
const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, getResponsiveValue("horizontal-grid", "grid-template-columns", formatHorizontalGrid(columns))), getResponsiveDesignToken("horizontal-grid", "gap", "space", gap)), getComponentToken("horizontal-grid", "align-items", alignItems)), getComponentToken("horizontal-grid", "display", inline ? "inline-grid" : "grid"));
|
|
54
|
-
return
|
|
54
|
+
return jsx(As, {
|
|
55
55
|
className: styles.HorizontalGrid,
|
|
56
56
|
style,
|
|
57
57
|
ref,
|
|
@@ -29,7 +29,7 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import {
|
|
32
|
+
import { jsx } from "react/jsx-runtime";
|
|
33
33
|
import { forwardRef } from "react";
|
|
34
34
|
import { getComponentToken, getResponsiveDesignToken } from "../utilities/css.mjs";
|
|
35
35
|
const HorizontalStack$1 = "_HorizontalStack_1wor8_4";
|
|
@@ -39,7 +39,7 @@ const styles = {
|
|
|
39
39
|
const HorizontalStack = forwardRef((props, ref) => {
|
|
40
40
|
const _a = props, { as: As = "div", align, blockAlign, gap, wrap = true, children, inline } = _a, restProps = __objRest(_a, ["as", "align", "blockAlign", "gap", "wrap", "children", "inline"]);
|
|
41
41
|
const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, getResponsiveDesignToken("horizontal-stack", "gap", "space", gap)), getComponentToken("horizontal-stack", "align", align)), getComponentToken("horizontal-stack", "block-align", blockAlign)), getComponentToken("horizontal-stack", "wrap", wrap ? "wrap" : "nowrap")), getComponentToken("horizontal-stack", "display", inline ? "inline-flex" : "flex"));
|
|
42
|
-
return
|
|
42
|
+
return jsx(As, __spreadProps(__spreadValues({}, restProps), {
|
|
43
43
|
className: styles.HorizontalStack,
|
|
44
44
|
style,
|
|
45
45
|
ref,
|
|
@@ -30,7 +30,7 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
-
const jsxRuntime = require("
|
|
33
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
34
34
|
const React = require("react");
|
|
35
35
|
const utilities_css = require("../utilities/css.js");
|
|
36
36
|
const HorizontalStack$1 = "_HorizontalStack_1wor8_4";
|
|
@@ -40,7 +40,7 @@ const styles = {
|
|
|
40
40
|
const HorizontalStack = React.forwardRef((props, ref) => {
|
|
41
41
|
const _a = props, { as: As = "div", align, blockAlign, gap, wrap = true, children, inline } = _a, restProps = __objRest(_a, ["as", "align", "blockAlign", "gap", "wrap", "children", "inline"]);
|
|
42
42
|
const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, utilities_css.getResponsiveDesignToken("horizontal-stack", "gap", "space", gap)), utilities_css.getComponentToken("horizontal-stack", "align", align)), utilities_css.getComponentToken("horizontal-stack", "block-align", blockAlign)), utilities_css.getComponentToken("horizontal-stack", "wrap", wrap ? "wrap" : "nowrap")), utilities_css.getComponentToken("horizontal-stack", "display", inline ? "inline-flex" : "flex"));
|
|
43
|
-
return jsxRuntime.
|
|
43
|
+
return jsxRuntime.jsx(As, __spreadProps(__spreadValues({}, restProps), {
|
|
44
44
|
className: styles.HorizontalStack,
|
|
45
45
|
style,
|
|
46
46
|
ref,
|
|
@@ -14,7 +14,7 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import {
|
|
17
|
+
import { jsx } from "react/jsx-runtime";
|
|
18
18
|
import { getResponsiveDesignToken, getComponentThemeToken, backwardsCompatibleColorToken } from "../utilities/css.mjs";
|
|
19
19
|
const Icon$1 = "_Icon_1en2n_4";
|
|
20
20
|
const symbol = "_symbol_1en2n_68";
|
|
@@ -24,10 +24,10 @@ const styles = {
|
|
|
24
24
|
};
|
|
25
25
|
function Icon({ symbol: Symbol2, size = "md", color, accessibilityLabel }) {
|
|
26
26
|
const style = __spreadValues(__spreadValues({}, getComponentThemeToken("icon", "color", "color", backwardsCompatibleColorToken(color))), getResponsiveDesignToken("icon", "size", "size.icon", size));
|
|
27
|
-
return
|
|
27
|
+
return jsx("span", {
|
|
28
28
|
className: styles.Icon,
|
|
29
29
|
style,
|
|
30
|
-
children:
|
|
30
|
+
children: jsx(Symbol2, {
|
|
31
31
|
className: styles.symbol,
|
|
32
32
|
focusable: "false",
|
|
33
33
|
role: "img",
|
|
@@ -15,7 +15,7 @@ var __spreadValues = (a, b) => {
|
|
|
15
15
|
}
|
|
16
16
|
return a;
|
|
17
17
|
};
|
|
18
|
-
const jsxRuntime = require("
|
|
18
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
19
19
|
const utilities_css = require("../utilities/css.js");
|
|
20
20
|
const Icon$1 = "_Icon_1en2n_4";
|
|
21
21
|
const symbol = "_symbol_1en2n_68";
|
|
@@ -25,10 +25,10 @@ const styles = {
|
|
|
25
25
|
};
|
|
26
26
|
function Icon({ symbol: Symbol2, size = "md", color, accessibilityLabel }) {
|
|
27
27
|
const style = __spreadValues(__spreadValues({}, utilities_css.getComponentThemeToken("icon", "color", "color", utilities_css.backwardsCompatibleColorToken(color))), utilities_css.getResponsiveDesignToken("icon", "size", "size.icon", size));
|
|
28
|
-
return jsxRuntime.
|
|
28
|
+
return jsxRuntime.jsx("span", {
|
|
29
29
|
className: styles.Icon,
|
|
30
30
|
style,
|
|
31
|
-
children: jsxRuntime.
|
|
31
|
+
children: jsxRuntime.jsx(Symbol2, {
|
|
32
32
|
className: styles.symbol,
|
|
33
33
|
focusable: "false",
|
|
34
34
|
role: "img",
|
|
@@ -30,8 +30,8 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
-
const jsxRuntime = require("
|
|
34
|
-
const Text = require("./Text-
|
|
33
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
34
|
+
const Text = require("./Text-DkzMEqky.js");
|
|
35
35
|
const InputField_module = require("./InputField.module-CmwwDXio.js");
|
|
36
36
|
const utilities_css = require("../utilities/css.js");
|
|
37
37
|
const Label$1 = require("./Label-B6GdFt8f.js");
|
|
@@ -40,9 +40,9 @@ function Label(props) {
|
|
|
40
40
|
const textVariant = isLabelEmphasized ? "subtitle1" : fieldSize === "sm" ? "body2" : "body1";
|
|
41
41
|
const as = isLabelEmphasized ? "strong" : "span";
|
|
42
42
|
const color = hasError ? "danger" : void 0;
|
|
43
|
-
return jsxRuntime.
|
|
43
|
+
return jsxRuntime.jsx(Label$1.$01b77f81d0f07f68$export$b04be29aa201d4f5, __spreadProps(__spreadValues({}, labelProps), {
|
|
44
44
|
className: utilities_css.classNames(InputField_module.styles.label),
|
|
45
|
-
children: jsxRuntime.
|
|
45
|
+
children: jsxRuntime.jsx(Text.Text, {
|
|
46
46
|
variant: textVariant,
|
|
47
47
|
as,
|
|
48
48
|
color,
|
|
@@ -52,9 +52,9 @@ function Label(props) {
|
|
|
52
52
|
}
|
|
53
53
|
function InputCaption(props) {
|
|
54
54
|
const _a = props, { variant, children } = _a, captionTextProps = __objRest(_a, ["variant", "children"]);
|
|
55
|
-
return jsxRuntime.
|
|
55
|
+
return jsxRuntime.jsx("div", __spreadProps(__spreadValues({}, captionTextProps), {
|
|
56
56
|
className: InputField_module.styles.caption,
|
|
57
|
-
children: jsxRuntime.
|
|
57
|
+
children: jsxRuntime.jsx(Text.Text, {
|
|
58
58
|
variant: "caption",
|
|
59
59
|
color: variant === "helper" ? "subdued" : "danger",
|
|
60
60
|
children
|
|
@@ -29,8 +29,8 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import {
|
|
33
|
-
import { T as Text } from "./Text-
|
|
32
|
+
import { jsx } from "react/jsx-runtime";
|
|
33
|
+
import { T as Text } from "./Text-D6oT5WJQ.mjs";
|
|
34
34
|
import { s as styles } from "./InputField.module-ClTfhFSB.mjs";
|
|
35
35
|
import { classNames } from "../utilities/css.mjs";
|
|
36
36
|
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "./Label-LpYJUKnw.mjs";
|
|
@@ -39,9 +39,9 @@ function Label(props) {
|
|
|
39
39
|
const textVariant = isLabelEmphasized ? "subtitle1" : fieldSize === "sm" ? "body2" : "body1";
|
|
40
40
|
const as = isLabelEmphasized ? "strong" : "span";
|
|
41
41
|
const color = hasError ? "danger" : void 0;
|
|
42
|
-
return
|
|
42
|
+
return jsx($01b77f81d0f07f68$export$b04be29aa201d4f5, __spreadProps(__spreadValues({}, labelProps), {
|
|
43
43
|
className: classNames(styles.label),
|
|
44
|
-
children:
|
|
44
|
+
children: jsx(Text, {
|
|
45
45
|
variant: textVariant,
|
|
46
46
|
as,
|
|
47
47
|
color,
|
|
@@ -51,9 +51,9 @@ function Label(props) {
|
|
|
51
51
|
}
|
|
52
52
|
function InputCaption(props) {
|
|
53
53
|
const _a = props, { variant, children } = _a, captionTextProps = __objRest(_a, ["variant", "children"]);
|
|
54
|
-
return
|
|
54
|
+
return jsx("div", __spreadProps(__spreadValues({}, captionTextProps), {
|
|
55
55
|
className: styles.caption,
|
|
56
|
-
children:
|
|
56
|
+
children: jsx(Text, {
|
|
57
57
|
variant: "caption",
|
|
58
58
|
color: variant === "helper" ? "subdued" : "danger",
|
|
59
59
|
children
|
|
@@ -17,15 +17,15 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import {
|
|
20
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
21
21
|
import * as React from "react";
|
|
22
22
|
import React__default, { useState } from "react";
|
|
23
23
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
24
|
-
import { L as Label, I as InputCaption } from "./InputCaption-
|
|
25
|
-
import { T as Text } from "./Text-
|
|
26
|
-
import { I as Icon } from "./Icon-
|
|
27
|
-
import { U as UnstyledButton } from "./UnstyledButton-
|
|
28
|
-
import { m as mapIconSize, g as getElementType, a as logWarningsForInvalidPropConfiguration, l as logWarningForMissingAriaLabel, I as InputIcon } from "./InputIcon-
|
|
24
|
+
import { L as Label, I as InputCaption } from "./InputCaption-DoyGkWQe.mjs";
|
|
25
|
+
import { T as Text } from "./Text-D6oT5WJQ.mjs";
|
|
26
|
+
import { I as Icon } from "./Icon-BIpaQJ_I.mjs";
|
|
27
|
+
import { U as UnstyledButton } from "./UnstyledButton-DxJLvL-G.mjs";
|
|
28
|
+
import { m as mapIconSize, g as getElementType, a as logWarningsForInvalidPropConfiguration, l as logWarningForMissingAriaLabel, I as InputIcon } from "./InputIcon-CEATdJ1j.mjs";
|
|
29
29
|
import { s as styles } from "./InputField.module-ClTfhFSB.mjs";
|
|
30
30
|
import { $ as $2d73ec29415bd339$export$712718f7aec83d5 } from "./useTextField-0Mbs_DmY.mjs";
|
|
31
31
|
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-FWU5y5-k.mjs";
|
|
@@ -105,14 +105,14 @@ const VisibilityOff = (_a) => {
|
|
|
105
105
|
};
|
|
106
106
|
function PasswordButton(props) {
|
|
107
107
|
const { hasError = false, inputSize = "md", isDisabled = false, isPasswordVisible = false, toggleVisibility, isInputHovered = false } = props;
|
|
108
|
-
return
|
|
108
|
+
return jsxs(UnstyledButton, {
|
|
109
109
|
className: classNames(styles.passwordBtn, isInputHovered && styles.hovered, hasError && styles.passwordBtnError, styles[variationName("passwordBtn", inputSize)]),
|
|
110
110
|
onPress: toggleVisibility,
|
|
111
111
|
isDisabled,
|
|
112
|
-
children: [
|
|
112
|
+
children: [jsx(Text, {
|
|
113
113
|
visuallyHidden: true,
|
|
114
114
|
children: "password visibility"
|
|
115
|
-
}),
|
|
115
|
+
}), jsx(Icon, {
|
|
116
116
|
symbol: isPasswordVisible ? Visibility : VisibilityOff,
|
|
117
117
|
size: mapIconSize(inputSize)
|
|
118
118
|
})]
|
|
@@ -120,9 +120,9 @@ function PasswordButton(props) {
|
|
|
120
120
|
}
|
|
121
121
|
function InputText(props) {
|
|
122
122
|
const { alignment = "start", size = "md", text } = props;
|
|
123
|
-
return
|
|
123
|
+
return jsx("div", {
|
|
124
124
|
className: classNames(styles.text, alignment === "start" ? styles.textStart : styles.textEnd, styles[variationName("inputTextPlacement", size)]),
|
|
125
|
-
children:
|
|
125
|
+
children: jsx(Text, {
|
|
126
126
|
variant: size === "sm" ? "body2" : "body1",
|
|
127
127
|
color: alignment === "start" ? "neutral.600" : "neutral.400",
|
|
128
128
|
children: text
|
|
@@ -177,26 +177,26 @@ function InputField(props) {
|
|
|
177
177
|
const adjustedSize = smallSizeTextarea ? "md" : size;
|
|
178
178
|
const className = classNames(styles.input, isInputHovered && styles.hovered, Component === "textarea" && styles.textArea, isPassword && styles.passwordInput, hasError && styles.errorInput, hasStartIcon && styles.iconStartInput, hasEndIcon && styles.iconEndInput, hasTextAtStart && styles.textStartInput, hasTextAtEnd && styles.textEndInput, styles[variationName("inputSize", adjustedSize)]);
|
|
179
179
|
const inputType = Component === "textarea" ? void 0 : isTypeAdjustedForPasswordVisibility ? "text" : type;
|
|
180
|
-
return
|
|
180
|
+
return jsxs("div", {
|
|
181
181
|
className: classNames(styles.root),
|
|
182
|
-
children: [label &&
|
|
182
|
+
children: [label && jsx(Label, __spreadProps(__spreadValues({
|
|
183
183
|
fieldSize: adjustedSize,
|
|
184
184
|
hasError,
|
|
185
185
|
isLabelEmphasized
|
|
186
186
|
}, labelProps), {
|
|
187
187
|
children: label
|
|
188
|
-
})),
|
|
188
|
+
})), jsxs("div", {
|
|
189
189
|
className: styles.inputIconContainer,
|
|
190
|
-
children: [hasStartIcon &&
|
|
190
|
+
children: [hasStartIcon && jsx(InputIcon, {
|
|
191
191
|
alignment: "start",
|
|
192
192
|
size: adjustedSize,
|
|
193
193
|
isDisabled,
|
|
194
194
|
icon: iconAtStart
|
|
195
|
-
}), hasTextAtStart &&
|
|
195
|
+
}), hasTextAtStart && jsx(InputText, {
|
|
196
196
|
alignment: "start",
|
|
197
197
|
size: adjustedSize,
|
|
198
198
|
text: textAtStart
|
|
199
|
-
}),
|
|
199
|
+
}), jsx(Component, __spreadProps(__spreadValues(__spreadValues({}, elementProps), hoverProps), {
|
|
200
200
|
className,
|
|
201
201
|
ref,
|
|
202
202
|
type: inputType,
|
|
@@ -207,24 +207,24 @@ function InputField(props) {
|
|
|
207
207
|
autoFocus,
|
|
208
208
|
defaultValue,
|
|
209
209
|
rows: Component === "textarea" ? rows : void 0
|
|
210
|
-
})), hasTextAtEnd &&
|
|
210
|
+
})), hasTextAtEnd && jsx(InputText, {
|
|
211
211
|
alignment: "end",
|
|
212
212
|
size: adjustedSize,
|
|
213
213
|
text: textAtEnd
|
|
214
|
-
}), isPassword ?
|
|
214
|
+
}), isPassword ? jsx(PasswordButton, {
|
|
215
215
|
isInputHovered,
|
|
216
216
|
hasError,
|
|
217
217
|
inputSize: adjustedSize,
|
|
218
218
|
isDisabled,
|
|
219
219
|
isPasswordVisible,
|
|
220
220
|
toggleVisibility: () => setIsPasswordVisible((prevVisibility) => !prevVisibility)
|
|
221
|
-
}) : hasEndIcon &&
|
|
221
|
+
}) : hasEndIcon && jsx(InputIcon, {
|
|
222
222
|
alignment: "end",
|
|
223
223
|
size: adjustedSize,
|
|
224
224
|
isDisabled,
|
|
225
225
|
icon: iconAtEnd
|
|
226
226
|
})]
|
|
227
|
-
}), (showErrorText || showHelperText) &&
|
|
227
|
+
}), (showErrorText || showHelperText) && jsx(InputCaption, __spreadProps(__spreadValues({
|
|
228
228
|
variant: showHelperText ? "helper" : "error"
|
|
229
229
|
}, captionProps), {
|
|
230
230
|
children: captionText
|
|
@@ -18,14 +18,14 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
return a;
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
-
const jsxRuntime = require("
|
|
21
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
22
22
|
const React = require("react");
|
|
23
23
|
const utilities_css = require("../utilities/css.js");
|
|
24
|
-
const InputCaption = require("./InputCaption-
|
|
25
|
-
const Text = require("./Text-
|
|
26
|
-
const Icon = require("./Icon-
|
|
27
|
-
const UnstyledButton = require("./UnstyledButton-
|
|
28
|
-
const InputIcon = require("./InputIcon-
|
|
24
|
+
const InputCaption = require("./InputCaption-CccF4ynE.js");
|
|
25
|
+
const Text = require("./Text-DkzMEqky.js");
|
|
26
|
+
const Icon = require("./Icon-BRlbo3RF.js");
|
|
27
|
+
const UnstyledButton = require("./UnstyledButton-DW8CjaXN.js");
|
|
28
|
+
const InputIcon = require("./InputIcon-DDKBJ_Tk.js");
|
|
29
29
|
const InputField_module = require("./InputField.module-CmwwDXio.js");
|
|
30
30
|
const useTextField = require("./useTextField-BlTYl2ML.js");
|
|
31
31
|
const useHover = require("./useHover-Ck1otl-j.js");
|
|
@@ -122,14 +122,14 @@ const VisibilityOff = (_a) => {
|
|
|
122
122
|
};
|
|
123
123
|
function PasswordButton(props) {
|
|
124
124
|
const { hasError = false, inputSize = "md", isDisabled = false, isPasswordVisible = false, toggleVisibility, isInputHovered = false } = props;
|
|
125
|
-
return jsxRuntime.
|
|
125
|
+
return jsxRuntime.jsxs(UnstyledButton.UnstyledButton, {
|
|
126
126
|
className: utilities_css.classNames(InputField_module.styles.passwordBtn, isInputHovered && InputField_module.styles.hovered, hasError && InputField_module.styles.passwordBtnError, InputField_module.styles[utilities_css.variationName("passwordBtn", inputSize)]),
|
|
127
127
|
onPress: toggleVisibility,
|
|
128
128
|
isDisabled,
|
|
129
|
-
children: [jsxRuntime.
|
|
129
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
130
130
|
visuallyHidden: true,
|
|
131
131
|
children: "password visibility"
|
|
132
|
-
}), jsxRuntime.
|
|
132
|
+
}), jsxRuntime.jsx(Icon.Icon, {
|
|
133
133
|
symbol: isPasswordVisible ? Visibility : VisibilityOff,
|
|
134
134
|
size: InputIcon.mapIconSize(inputSize)
|
|
135
135
|
})]
|
|
@@ -137,9 +137,9 @@ function PasswordButton(props) {
|
|
|
137
137
|
}
|
|
138
138
|
function InputText(props) {
|
|
139
139
|
const { alignment = "start", size = "md", text } = props;
|
|
140
|
-
return jsxRuntime.
|
|
140
|
+
return jsxRuntime.jsx("div", {
|
|
141
141
|
className: utilities_css.classNames(InputField_module.styles.text, alignment === "start" ? InputField_module.styles.textStart : InputField_module.styles.textEnd, InputField_module.styles[utilities_css.variationName("inputTextPlacement", size)]),
|
|
142
|
-
children: jsxRuntime.
|
|
142
|
+
children: jsxRuntime.jsx(Text.Text, {
|
|
143
143
|
variant: size === "sm" ? "body2" : "body1",
|
|
144
144
|
color: alignment === "start" ? "neutral.600" : "neutral.400",
|
|
145
145
|
children: text
|
|
@@ -194,26 +194,26 @@ function InputField(props) {
|
|
|
194
194
|
const adjustedSize = smallSizeTextarea ? "md" : size;
|
|
195
195
|
const className = utilities_css.classNames(InputField_module.styles.input, isInputHovered && InputField_module.styles.hovered, Component === "textarea" && InputField_module.styles.textArea, isPassword && InputField_module.styles.passwordInput, hasError && InputField_module.styles.errorInput, hasStartIcon && InputField_module.styles.iconStartInput, hasEndIcon && InputField_module.styles.iconEndInput, hasTextAtStart && InputField_module.styles.textStartInput, hasTextAtEnd && InputField_module.styles.textEndInput, InputField_module.styles[utilities_css.variationName("inputSize", adjustedSize)]);
|
|
196
196
|
const inputType = Component === "textarea" ? void 0 : isTypeAdjustedForPasswordVisibility ? "text" : type;
|
|
197
|
-
return jsxRuntime.
|
|
197
|
+
return jsxRuntime.jsxs("div", {
|
|
198
198
|
className: utilities_css.classNames(InputField_module.styles.root),
|
|
199
|
-
children: [label && jsxRuntime.
|
|
199
|
+
children: [label && jsxRuntime.jsx(InputCaption.Label, __spreadProps(__spreadValues({
|
|
200
200
|
fieldSize: adjustedSize,
|
|
201
201
|
hasError,
|
|
202
202
|
isLabelEmphasized
|
|
203
203
|
}, labelProps), {
|
|
204
204
|
children: label
|
|
205
|
-
})), jsxRuntime.
|
|
205
|
+
})), jsxRuntime.jsxs("div", {
|
|
206
206
|
className: InputField_module.styles.inputIconContainer,
|
|
207
|
-
children: [hasStartIcon && jsxRuntime.
|
|
207
|
+
children: [hasStartIcon && jsxRuntime.jsx(InputIcon.InputIcon, {
|
|
208
208
|
alignment: "start",
|
|
209
209
|
size: adjustedSize,
|
|
210
210
|
isDisabled,
|
|
211
211
|
icon: iconAtStart
|
|
212
|
-
}), hasTextAtStart && jsxRuntime.
|
|
212
|
+
}), hasTextAtStart && jsxRuntime.jsx(InputText, {
|
|
213
213
|
alignment: "start",
|
|
214
214
|
size: adjustedSize,
|
|
215
215
|
text: textAtStart
|
|
216
|
-
}), jsxRuntime.
|
|
216
|
+
}), jsxRuntime.jsx(Component, __spreadProps(__spreadValues(__spreadValues({}, elementProps), hoverProps), {
|
|
217
217
|
className,
|
|
218
218
|
ref,
|
|
219
219
|
type: inputType,
|
|
@@ -224,24 +224,24 @@ function InputField(props) {
|
|
|
224
224
|
autoFocus,
|
|
225
225
|
defaultValue,
|
|
226
226
|
rows: Component === "textarea" ? rows : void 0
|
|
227
|
-
})), hasTextAtEnd && jsxRuntime.
|
|
227
|
+
})), hasTextAtEnd && jsxRuntime.jsx(InputText, {
|
|
228
228
|
alignment: "end",
|
|
229
229
|
size: adjustedSize,
|
|
230
230
|
text: textAtEnd
|
|
231
|
-
}), isPassword ? jsxRuntime.
|
|
231
|
+
}), isPassword ? jsxRuntime.jsx(PasswordButton, {
|
|
232
232
|
isInputHovered,
|
|
233
233
|
hasError,
|
|
234
234
|
inputSize: adjustedSize,
|
|
235
235
|
isDisabled,
|
|
236
236
|
isPasswordVisible,
|
|
237
237
|
toggleVisibility: () => setIsPasswordVisible((prevVisibility) => !prevVisibility)
|
|
238
|
-
}) : hasEndIcon && jsxRuntime.
|
|
238
|
+
}) : hasEndIcon && jsxRuntime.jsx(InputIcon.InputIcon, {
|
|
239
239
|
alignment: "end",
|
|
240
240
|
size: adjustedSize,
|
|
241
241
|
isDisabled,
|
|
242
242
|
icon: iconAtEnd
|
|
243
243
|
})]
|
|
244
|
-
}), (showErrorText || showHelperText) && jsxRuntime.
|
|
244
|
+
}), (showErrorText || showHelperText) && jsxRuntime.jsx(InputCaption.InputCaption, __spreadProps(__spreadValues({
|
|
245
245
|
variant: showHelperText ? "helper" : "error"
|
|
246
246
|
}, captionProps), {
|
|
247
247
|
children: captionText
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { I as Icon } from "./Icon-
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { I as Icon } from "./Icon-BIpaQJ_I.mjs";
|
|
3
3
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
4
4
|
import { s as styles } from "./InputField.module-ClTfhFSB.mjs";
|
|
5
5
|
function mapIconSize(size) {
|
|
@@ -34,9 +34,9 @@ function getElementType(isMultiline) {
|
|
|
34
34
|
}
|
|
35
35
|
function InputIcon(props) {
|
|
36
36
|
const { alignment = "start", size = "md", isDisabled = false, icon } = props;
|
|
37
|
-
return
|
|
37
|
+
return jsx("div", {
|
|
38
38
|
className: classNames(styles.icon, alignment === "start" ? styles.iconStart : styles.iconEnd, isDisabled && styles.iconDisabled, styles[variationName("inputIconPlacement", size)]),
|
|
39
|
-
children:
|
|
39
|
+
children: jsx(Icon, {
|
|
40
40
|
symbol: icon,
|
|
41
41
|
size: mapIconSize(size)
|
|
42
42
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const jsxRuntime = require("
|
|
3
|
-
const Icon = require("./Icon-
|
|
2
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
+
const Icon = require("./Icon-BRlbo3RF.js");
|
|
4
4
|
const utilities_css = require("../utilities/css.js");
|
|
5
5
|
const InputField_module = require("./InputField.module-CmwwDXio.js");
|
|
6
6
|
function mapIconSize(size) {
|
|
@@ -35,9 +35,9 @@ function getElementType(isMultiline) {
|
|
|
35
35
|
}
|
|
36
36
|
function InputIcon(props) {
|
|
37
37
|
const { alignment = "start", size = "md", isDisabled = false, icon } = props;
|
|
38
|
-
return jsxRuntime.
|
|
38
|
+
return jsxRuntime.jsx("div", {
|
|
39
39
|
className: utilities_css.classNames(InputField_module.styles.icon, alignment === "start" ? InputField_module.styles.iconStart : InputField_module.styles.iconEnd, isDisabled && InputField_module.styles.iconDisabled, InputField_module.styles[utilities_css.variationName("inputIconPlacement", size)]),
|
|
40
|
-
children: jsxRuntime.
|
|
40
|
+
children: jsxRuntime.jsx(Icon.Icon, {
|
|
41
41
|
symbol: icon,
|
|
42
42
|
size: mapIconSize(size)
|
|
43
43
|
})
|
|
@@ -29,12 +29,12 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import {
|
|
32
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
33
33
|
import * as React from "react";
|
|
34
34
|
import React__default from "react";
|
|
35
|
-
import { U as UnstyledButton } from "./UnstyledButton-
|
|
36
|
-
import { T as Text } from "./Text-
|
|
37
|
-
import { I as Icon } from "./Icon-
|
|
35
|
+
import { U as UnstyledButton } from "./UnstyledButton-DxJLvL-G.mjs";
|
|
36
|
+
import { T as Text } from "./Text-D6oT5WJQ.mjs";
|
|
37
|
+
import { I as Icon } from "./Icon-BIpaQJ_I.mjs";
|
|
38
38
|
var __defProp2 = Object.defineProperty;
|
|
39
39
|
var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
|
|
40
40
|
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
@@ -78,14 +78,14 @@ const styles = {
|
|
|
78
78
|
};
|
|
79
79
|
const KebabButton = React__default.forwardRef((props, inRef) => {
|
|
80
80
|
const _a = props, { accessibilityLabel = "Actions" } = _a, restProps = __objRest(_a, ["accessibilityLabel"]);
|
|
81
|
-
return
|
|
81
|
+
return jsxs(UnstyledButton, __spreadProps(__spreadValues({
|
|
82
82
|
ref: inRef,
|
|
83
83
|
className: styles.KebabButton
|
|
84
84
|
}, restProps), {
|
|
85
|
-
children: [
|
|
85
|
+
children: [jsx(Text, {
|
|
86
86
|
visuallyHidden: true,
|
|
87
87
|
children: accessibilityLabel
|
|
88
|
-
}),
|
|
88
|
+
}), jsx(Icon, {
|
|
89
89
|
symbol: MoreVert
|
|
90
90
|
})]
|
|
91
91
|
}));
|
|
@@ -30,11 +30,11 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
-
const jsxRuntime = require("
|
|
33
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
34
34
|
const React = require("react");
|
|
35
|
-
const UnstyledButton = require("./UnstyledButton-
|
|
36
|
-
const Text = require("./Text-
|
|
37
|
-
const Icon = require("./Icon-
|
|
35
|
+
const UnstyledButton = require("./UnstyledButton-DW8CjaXN.js");
|
|
36
|
+
const Text = require("./Text-DkzMEqky.js");
|
|
37
|
+
const Icon = require("./Icon-BRlbo3RF.js");
|
|
38
38
|
function _interopNamespaceDefault(e) {
|
|
39
39
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
40
40
|
if (e) {
|
|
@@ -95,14 +95,14 @@ const styles = {
|
|
|
95
95
|
};
|
|
96
96
|
const KebabButton = React.forwardRef((props, inRef) => {
|
|
97
97
|
const _a = props, { accessibilityLabel = "Actions" } = _a, restProps = __objRest(_a, ["accessibilityLabel"]);
|
|
98
|
-
return jsxRuntime.
|
|
98
|
+
return jsxRuntime.jsxs(UnstyledButton.UnstyledButton, __spreadProps(__spreadValues({
|
|
99
99
|
ref: inRef,
|
|
100
100
|
className: styles.KebabButton
|
|
101
101
|
}, restProps), {
|
|
102
|
-
children: [jsxRuntime.
|
|
102
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
103
103
|
visuallyHidden: true,
|
|
104
104
|
children: accessibilityLabel
|
|
105
|
-
}), jsxRuntime.
|
|
105
|
+
}), jsxRuntime.jsx(Icon.Icon, {
|
|
106
106
|
symbol: MoreVert
|
|
107
107
|
})]
|
|
108
108
|
}));
|