@easypost/easy-ui 1.0.0-alpha.111 → 1.0.0-alpha.113
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 +13 -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 +283 -217
- 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 +197 -141
- 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-C3vDXJsJ.js} +15 -12
- package/__chunks__/{Button-BsGH6vGC.mjs → Button-Dexauftx.mjs} +16 -13
- package/__chunks__/{Calendar-D09mdpmC.js → Calendar-BEbdigVB.js} +3 -2
- package/__chunks__/{Calendar-BGZysoV0.mjs → Calendar-BOxw8lwX.mjs} +3 -2
- package/__chunks__/{CalendarBase-Bn9o8BdD.mjs → CalendarBase-3a9i7QNo.mjs} +86 -64
- package/__chunks__/{CalendarBase-DHxad3N9.js → CalendarBase-Bx8bdXeT.js} +86 -64
- package/__chunks__/{Card-CJug4GMX.mjs → Card-8778avMv.mjs} +21 -12
- package/__chunks__/{Card-BM2DKiVA.js → Card-DIZFYg6E.js} +21 -12
- package/__chunks__/{Checkbox-BWfY9XqH.mjs → Checkbox-C-NlI-Ym.mjs} +36 -28
- package/__chunks__/{Checkbox-D2-8vvdr.js → Checkbox-DFWhjlaO.js} +36 -28
- package/__chunks__/{CodeSnippet-CIijbclb.js → CodeSnippet-BCOMwE07.js} +16 -12
- package/__chunks__/{CodeSnippet-QpCpkoXv.mjs → CodeSnippet-CWnMHdVu.mjs} +16 -12
- package/__chunks__/{DatePickerBase-CFB0JDQA.mjs → DatePickerBase-C4PwUr9x.mjs} +80 -62
- package/__chunks__/{DatePickerBase-DSPIErms.js → DatePickerBase-XoRply_u.js} +80 -62
- package/__chunks__/EasyPostLogo-D3WNdZ29.js +22 -0
- package/__chunks__/EasyPostLogo-tf6CCEAq.mjs +23 -0
- package/__chunks__/{HelpMenu-CO6kYktc.mjs → HelpMenu-8r0cjx5z.mjs} +30 -21
- package/__chunks__/{HelpMenu-nihaGEVy.js → HelpMenu-DBo_fklD.js} +30 -20
- package/__chunks__/{HorizontalGrid-CAwv7zKY.js → HorizontalGrid-BAvSeg39.js} +5 -3
- package/__chunks__/{HorizontalGrid-Dz8EFgmu.mjs → HorizontalGrid-C4MBFEH-.mjs} +6 -4
- package/__chunks__/{HorizontalStack-CxE8tPx_.mjs → HorizontalStack-BkE82C73.mjs} +6 -4
- package/__chunks__/{HorizontalStack-CXpjASZi.js → HorizontalStack-DidoI4Ks.js} +5 -3
- package/__chunks__/{Icon-W8F9w-jS.js → Icon-BVa5ddiD.js} +11 -10
- package/__chunks__/{Icon-0SN9dbwU.mjs → Icon-DzTns8u5.mjs} +11 -10
- package/__chunks__/{InputCaption-BJO9_Tby.mjs → InputCaption-B8bZH6sX.mjs} +19 -15
- package/__chunks__/{InputCaption-C3Hf9Hvt.js → InputCaption-Dkyn1sg6.js} +19 -15
- package/__chunks__/{InputField-dq5XIhr1.mjs → InputField-BTrYBVAD.mjs} +77 -66
- package/__chunks__/{InputField-CDHznUZd.js → InputField-Dvkk5R1K.js} +77 -66
- package/__chunks__/{InputIcon-Bpg4lyQx.mjs → InputIcon-BLJ6dx_5.mjs} +9 -8
- package/__chunks__/{InputIcon-DdcvN3A4.js → InputIcon-BSIAXX9k.js} +9 -8
- package/__chunks__/{KebabButton-DdzHU7is.js → KebabButton-3FnxY-Fz.js} +15 -8
- package/__chunks__/{KebabButton-Bf1OdC5_.mjs → KebabButton-DSK0ISAn.mjs} +15 -8
- package/__chunks__/{Menu-DHwqwFlg.mjs → Menu-C2F4fvhd.mjs} +88 -70
- package/__chunks__/{Menu-Kfc6nxFP.js → Menu-Du8SsMeJ.js} +88 -70
- package/__chunks__/{Notification-vF_YGVIP.js → Notification-CeJn5Qq1.js} +62 -48
- package/__chunks__/{Notification-BoT3Hm0B.mjs → Notification-CgUT2gv6.mjs} +64 -50
- package/__chunks__/{PillGroup-DjLJ4wVb.mjs → PillGroup-EJ8t8SrT.mjs} +41 -27
- package/__chunks__/{PillGroup-CAHVIlU0.js → PillGroup-rTS853Rr.js} +41 -27
- package/__chunks__/{RadioGroup-CGQKZwDU.js → RadioGroup-BFqH1Csi.js} +58 -40
- package/__chunks__/{RadioGroup-DUu5GEpn.mjs → RadioGroup-DBgIqOkZ.mjs} +58 -40
- package/__chunks__/{RangeCalendar-LPcJB19o.mjs → RangeCalendar-BSsmX9l4.mjs} +3 -2
- package/__chunks__/{RangeCalendar-Ckqj2J9L.js → RangeCalendar-Do2nei5A.js} +3 -2
- package/__chunks__/{SelectOverlay-DptO7xtn.mjs → SelectOverlay-DUIIhF4t.mjs} +62 -51
- package/__chunks__/{SelectOverlay-CmbC4zrD.js → SelectOverlay-DjiJHthj.js} +62 -51
- package/__chunks__/{SelectorErrorTooltip-Dw1Fvd_q.mjs → SelectorErrorTooltip-BC-1JoX3.mjs} +19 -12
- package/__chunks__/{SelectorErrorTooltip-_D8DSBKs.js → SelectorErrorTooltip-BMxbuFiM.js} +19 -11
- package/__chunks__/{Spinner-DOmPV59I.mjs → Spinner-2PFCOK3I.mjs} +17 -13
- package/__chunks__/{Spinner-D0ifPtVV.js → Spinner-Dd68v9QX.js} +16 -12
- package/__chunks__/{Stepper-CX0Mu37p.js → Stepper-BZ90AIx0.js} +47 -36
- package/__chunks__/{Stepper-BEyDIPNJ.mjs → Stepper-q3YNLglj.mjs} +48 -37
- package/__chunks__/{TabNav-vCt_zTvE.mjs → TabNav-BnpNl7tj.mjs} +10 -8
- package/__chunks__/{TabNav-B8aEzVyr.js → TabNav-CLVG0bL2.js} +10 -8
- package/__chunks__/{Tabs-BL8odO0p.js → Tabs-5_61DIBw.js} +46 -37
- package/__chunks__/{Tabs-DJ4aKu11.mjs → Tabs-CtyYEye0.mjs} +47 -38
- package/__chunks__/{Text-CSESKR_s.js → Text-C4CEsglh.js} +5 -4
- package/__chunks__/{Text-YOL3isF4.mjs → Text-u9mYLeWj.mjs} +5 -4
- package/__chunks__/{TextField-D2QhDAdD.mjs → TextField-D1JGaTQv.mjs} +3 -3
- package/__chunks__/{TextField-94cCP805.js → TextField-DE1vPtQm.js} +3 -3
- package/__chunks__/{Theme-BAFk7BvV.mjs → Theme-CyUCrGdN.mjs} +28 -18
- package/__chunks__/{Theme-DqbmY4wy.js → Theme-unLHjjnm.js} +27 -17
- package/__chunks__/{Toggle-D2ucsFxO.js → Toggle-BHzAGPDh.js} +43 -37
- package/__chunks__/{Toggle-CxjLdmzW.mjs → Toggle-DioYP2KQ.mjs} +43 -37
- package/__chunks__/{Tooltip-DAyUY3na.mjs → Tooltip-BKGkKnOx.mjs} +25 -17
- package/__chunks__/{Tooltip-DqpxBjpa.js → Tooltip-COjtKErw.js} +25 -17
- package/__chunks__/{UnstyledButton-DpQ5Ic9D.mjs → UnstyledButton-BCg7eEyP.mjs} +6 -4
- package/__chunks__/{UnstyledButton-BFpQ2Irc.js → UnstyledButton-_YQekhlm.js} +5 -3
- package/__chunks__/{VerticalStack-C2yDQVHD.mjs → VerticalStack-Cbdpucbh.mjs} +6 -4
- package/__chunks__/{VerticalStack-Dzpv3O67.js → VerticalStack-CunLpHRv.js} +5 -3
- package/__chunks__/index-CqNUlUoB.js +217 -0
- package/__chunks__/index-ee-P7jQr.mjs +218 -0
- package/__chunks__/jsx-runtime-CH1d66I3.js +320 -0
- package/__chunks__/jsx-runtime-DTpFD6nx.mjs +321 -0
- package/__chunks__/{useEdgeInterceptors-D_DARZZd.mjs → useEdgeInterceptors-BBmo6MI4.mjs} +17 -14
- package/__chunks__/{useEdgeInterceptors-Ihk8NfjJ.js → useEdgeInterceptors-BLxn3eUi.js} +16 -13
- package/package.json +5 -7
- 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
|
@@ -30,8 +30,8 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
-
const
|
|
34
|
-
const Text = require("./Text-
|
|
33
|
+
const jsxRuntime = require("./jsx-runtime-CH1d66I3.js");
|
|
34
|
+
const Text = require("./Text-C4CEsglh.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,22 +40,26 @@ 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
|
|
44
|
-
className: utilities_css.classNames(InputField_module.styles.label)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
return jsxRuntime.jsxRuntimeExports.jsx(Label$1.$01b77f81d0f07f68$export$b04be29aa201d4f5, __spreadProps(__spreadValues({}, labelProps), {
|
|
44
|
+
className: utilities_css.classNames(InputField_module.styles.label),
|
|
45
|
+
children: jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
46
|
+
variant: textVariant,
|
|
47
|
+
as,
|
|
48
|
+
color,
|
|
49
|
+
children
|
|
50
|
+
})
|
|
51
|
+
}));
|
|
50
52
|
}
|
|
51
53
|
function InputCaption(props) {
|
|
52
54
|
const _a = props, { variant, children } = _a, captionTextProps = __objRest(_a, ["variant", "children"]);
|
|
53
|
-
return
|
|
54
|
-
className: InputField_module.styles.caption
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
return jsxRuntime.jsxRuntimeExports.jsx("div", __spreadProps(__spreadValues({}, captionTextProps), {
|
|
56
|
+
className: InputField_module.styles.caption,
|
|
57
|
+
children: jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
58
|
+
variant: "caption",
|
|
59
|
+
color: variant === "helper" ? "subdued" : "danger",
|
|
60
|
+
children
|
|
61
|
+
})
|
|
62
|
+
}));
|
|
59
63
|
}
|
|
60
64
|
exports.InputCaption = InputCaption;
|
|
61
65
|
exports.Label = Label;
|
|
@@ -17,14 +17,15 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { j as jsxRuntimeExports } from "./jsx-runtime-DTpFD6nx.mjs";
|
|
20
21
|
import * as React from "react";
|
|
21
22
|
import React__default, { useState } from "react";
|
|
22
23
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
23
|
-
import { L as Label, I as InputCaption } from "./InputCaption-
|
|
24
|
-
import { T as Text } from "./Text-
|
|
25
|
-
import { I as Icon } from "./Icon-
|
|
26
|
-
import { U as UnstyledButton } from "./UnstyledButton-
|
|
27
|
-
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-B8bZH6sX.mjs";
|
|
25
|
+
import { T as Text } from "./Text-u9mYLeWj.mjs";
|
|
26
|
+
import { I as Icon } from "./Icon-DzTns8u5.mjs";
|
|
27
|
+
import { U as UnstyledButton } from "./UnstyledButton-BCg7eEyP.mjs";
|
|
28
|
+
import { m as mapIconSize, g as getElementType, a as logWarningsForInvalidPropConfiguration, l as logWarningForMissingAriaLabel, I as InputIcon } from "./InputIcon-BLJ6dx_5.mjs";
|
|
28
29
|
import { s as styles } from "./InputField.module-ClTfhFSB.mjs";
|
|
29
30
|
import { $ as $2d73ec29415bd339$export$712718f7aec83d5 } from "./useTextField-0Mbs_DmY.mjs";
|
|
30
31
|
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-FWU5y5-k.mjs";
|
|
@@ -104,25 +105,29 @@ const VisibilityOff = (_a) => {
|
|
|
104
105
|
};
|
|
105
106
|
function PasswordButton(props) {
|
|
106
107
|
const { hasError = false, inputSize = "md", isDisabled = false, isPasswordVisible = false, toggleVisibility, isInputHovered = false } = props;
|
|
107
|
-
return
|
|
108
|
+
return jsxRuntimeExports.jsxs(UnstyledButton, {
|
|
108
109
|
className: classNames(styles.passwordBtn, isInputHovered && styles.hovered, hasError && styles.passwordBtnError, styles[variationName("passwordBtn", inputSize)]),
|
|
109
110
|
onPress: toggleVisibility,
|
|
110
|
-
isDisabled
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
111
|
+
isDisabled,
|
|
112
|
+
children: [jsxRuntimeExports.jsx(Text, {
|
|
113
|
+
visuallyHidden: true,
|
|
114
|
+
children: "password visibility"
|
|
115
|
+
}), jsxRuntimeExports.jsx(Icon, {
|
|
116
|
+
symbol: isPasswordVisible ? Visibility : VisibilityOff,
|
|
117
|
+
size: mapIconSize(inputSize)
|
|
118
|
+
})]
|
|
119
|
+
});
|
|
117
120
|
}
|
|
118
121
|
function InputText(props) {
|
|
119
122
|
const { alignment = "start", size = "md", text } = props;
|
|
120
|
-
return
|
|
121
|
-
className: classNames(styles.text, alignment === "start" ? styles.textStart : styles.textEnd, styles[variationName("inputTextPlacement", size)])
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
return jsxRuntimeExports.jsx("div", {
|
|
124
|
+
className: classNames(styles.text, alignment === "start" ? styles.textStart : styles.textEnd, styles[variationName("inputTextPlacement", size)]),
|
|
125
|
+
children: jsxRuntimeExports.jsx(Text, {
|
|
126
|
+
variant: size === "sm" ? "body2" : "body1",
|
|
127
|
+
color: alignment === "start" ? "neutral.600" : "neutral.400",
|
|
128
|
+
children: text
|
|
129
|
+
})
|
|
130
|
+
});
|
|
126
131
|
}
|
|
127
132
|
function useInputField(props, ref) {
|
|
128
133
|
const { isMultiline = false } = props;
|
|
@@ -172,53 +177,59 @@ function InputField(props) {
|
|
|
172
177
|
const adjustedSize = smallSizeTextarea ? "md" : size;
|
|
173
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)]);
|
|
174
179
|
const inputType = Component === "textarea" ? void 0 : isTypeAdjustedForPasswordVisibility ? "text" : type;
|
|
175
|
-
return
|
|
176
|
-
className: classNames(styles.root)
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
180
|
+
return jsxRuntimeExports.jsxs("div", {
|
|
181
|
+
className: classNames(styles.root),
|
|
182
|
+
children: [label && jsxRuntimeExports.jsx(Label, __spreadProps(__spreadValues({
|
|
183
|
+
fieldSize: adjustedSize,
|
|
184
|
+
hasError,
|
|
185
|
+
isLabelEmphasized
|
|
186
|
+
}, labelProps), {
|
|
187
|
+
children: label
|
|
188
|
+
})), jsxRuntimeExports.jsxs("div", {
|
|
189
|
+
className: styles.inputIconContainer,
|
|
190
|
+
children: [hasStartIcon && jsxRuntimeExports.jsx(InputIcon, {
|
|
191
|
+
alignment: "start",
|
|
192
|
+
size: adjustedSize,
|
|
193
|
+
isDisabled,
|
|
194
|
+
icon: iconAtStart
|
|
195
|
+
}), hasTextAtStart && jsxRuntimeExports.jsx(InputText, {
|
|
196
|
+
alignment: "start",
|
|
197
|
+
size: adjustedSize,
|
|
198
|
+
text: textAtStart
|
|
199
|
+
}), jsxRuntimeExports.jsx(Component, __spreadProps(__spreadValues(__spreadValues({}, elementProps), hoverProps), {
|
|
200
|
+
className,
|
|
201
|
+
ref,
|
|
202
|
+
type: inputType,
|
|
203
|
+
value,
|
|
204
|
+
required: isRequired,
|
|
205
|
+
disabled: isDisabled,
|
|
206
|
+
placeholder,
|
|
207
|
+
autoFocus,
|
|
208
|
+
defaultValue,
|
|
209
|
+
rows: Component === "textarea" ? rows : void 0
|
|
210
|
+
})), hasTextAtEnd && jsxRuntimeExports.jsx(InputText, {
|
|
211
|
+
alignment: "end",
|
|
212
|
+
size: adjustedSize,
|
|
213
|
+
text: textAtEnd
|
|
214
|
+
}), isPassword ? jsxRuntimeExports.jsx(PasswordButton, {
|
|
215
|
+
isInputHovered,
|
|
216
|
+
hasError,
|
|
217
|
+
inputSize: adjustedSize,
|
|
218
|
+
isDisabled,
|
|
219
|
+
isPasswordVisible,
|
|
220
|
+
toggleVisibility: () => setIsPasswordVisible((prevVisibility) => !prevVisibility)
|
|
221
|
+
}) : hasEndIcon && jsxRuntimeExports.jsx(InputIcon, {
|
|
222
|
+
alignment: "end",
|
|
223
|
+
size: adjustedSize,
|
|
224
|
+
isDisabled,
|
|
225
|
+
icon: iconAtEnd
|
|
226
|
+
})]
|
|
227
|
+
}), (showErrorText || showHelperText) && jsxRuntimeExports.jsx(InputCaption, __spreadProps(__spreadValues({
|
|
228
|
+
variant: showHelperText ? "helper" : "error"
|
|
229
|
+
}, captionProps), {
|
|
230
|
+
children: captionText
|
|
231
|
+
}))]
|
|
232
|
+
});
|
|
222
233
|
}
|
|
223
234
|
export {
|
|
224
235
|
InputField as I
|
|
@@ -18,13 +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("./jsx-runtime-CH1d66I3.js");
|
|
21
22
|
const React = require("react");
|
|
22
23
|
const utilities_css = require("../utilities/css.js");
|
|
23
|
-
const InputCaption = require("./InputCaption-
|
|
24
|
-
const Text = require("./Text-
|
|
25
|
-
const Icon = require("./Icon-
|
|
26
|
-
const UnstyledButton = require("./UnstyledButton-
|
|
27
|
-
const InputIcon = require("./InputIcon-
|
|
24
|
+
const InputCaption = require("./InputCaption-Dkyn1sg6.js");
|
|
25
|
+
const Text = require("./Text-C4CEsglh.js");
|
|
26
|
+
const Icon = require("./Icon-BVa5ddiD.js");
|
|
27
|
+
const UnstyledButton = require("./UnstyledButton-_YQekhlm.js");
|
|
28
|
+
const InputIcon = require("./InputIcon-BSIAXX9k.js");
|
|
28
29
|
const InputField_module = require("./InputField.module-CmwwDXio.js");
|
|
29
30
|
const useTextField = require("./useTextField-BlTYl2ML.js");
|
|
30
31
|
const useHover = require("./useHover-Ck1otl-j.js");
|
|
@@ -121,25 +122,29 @@ const VisibilityOff = (_a) => {
|
|
|
121
122
|
};
|
|
122
123
|
function PasswordButton(props) {
|
|
123
124
|
const { hasError = false, inputSize = "md", isDisabled = false, isPasswordVisible = false, toggleVisibility, isInputHovered = false } = props;
|
|
124
|
-
return
|
|
125
|
+
return jsxRuntime.jsxRuntimeExports.jsxs(UnstyledButton.UnstyledButton, {
|
|
125
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)]),
|
|
126
127
|
onPress: toggleVisibility,
|
|
127
|
-
isDisabled
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
128
|
+
isDisabled,
|
|
129
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
130
|
+
visuallyHidden: true,
|
|
131
|
+
children: "password visibility"
|
|
132
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Icon.Icon, {
|
|
133
|
+
symbol: isPasswordVisible ? Visibility : VisibilityOff,
|
|
134
|
+
size: InputIcon.mapIconSize(inputSize)
|
|
135
|
+
})]
|
|
136
|
+
});
|
|
134
137
|
}
|
|
135
138
|
function InputText(props) {
|
|
136
139
|
const { alignment = "start", size = "md", text } = props;
|
|
137
|
-
return
|
|
138
|
-
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)])
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
return jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
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.jsxRuntimeExports.jsx(Text.Text, {
|
|
143
|
+
variant: size === "sm" ? "body2" : "body1",
|
|
144
|
+
color: alignment === "start" ? "neutral.600" : "neutral.400",
|
|
145
|
+
children: text
|
|
146
|
+
})
|
|
147
|
+
});
|
|
143
148
|
}
|
|
144
149
|
function useInputField(props, ref) {
|
|
145
150
|
const { isMultiline = false } = props;
|
|
@@ -189,52 +194,58 @@ function InputField(props) {
|
|
|
189
194
|
const adjustedSize = smallSizeTextarea ? "md" : size;
|
|
190
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)]);
|
|
191
196
|
const inputType = Component === "textarea" ? void 0 : isTypeAdjustedForPasswordVisibility ? "text" : type;
|
|
192
|
-
return
|
|
193
|
-
className: utilities_css.classNames(InputField_module.styles.root)
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
197
|
+
return jsxRuntime.jsxRuntimeExports.jsxs("div", {
|
|
198
|
+
className: utilities_css.classNames(InputField_module.styles.root),
|
|
199
|
+
children: [label && jsxRuntime.jsxRuntimeExports.jsx(InputCaption.Label, __spreadProps(__spreadValues({
|
|
200
|
+
fieldSize: adjustedSize,
|
|
201
|
+
hasError,
|
|
202
|
+
isLabelEmphasized
|
|
203
|
+
}, labelProps), {
|
|
204
|
+
children: label
|
|
205
|
+
})), jsxRuntime.jsxRuntimeExports.jsxs("div", {
|
|
206
|
+
className: InputField_module.styles.inputIconContainer,
|
|
207
|
+
children: [hasStartIcon && jsxRuntime.jsxRuntimeExports.jsx(InputIcon.InputIcon, {
|
|
208
|
+
alignment: "start",
|
|
209
|
+
size: adjustedSize,
|
|
210
|
+
isDisabled,
|
|
211
|
+
icon: iconAtStart
|
|
212
|
+
}), hasTextAtStart && jsxRuntime.jsxRuntimeExports.jsx(InputText, {
|
|
213
|
+
alignment: "start",
|
|
214
|
+
size: adjustedSize,
|
|
215
|
+
text: textAtStart
|
|
216
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Component, __spreadProps(__spreadValues(__spreadValues({}, elementProps), hoverProps), {
|
|
217
|
+
className,
|
|
218
|
+
ref,
|
|
219
|
+
type: inputType,
|
|
220
|
+
value,
|
|
221
|
+
required: isRequired,
|
|
222
|
+
disabled: isDisabled,
|
|
223
|
+
placeholder,
|
|
224
|
+
autoFocus,
|
|
225
|
+
defaultValue,
|
|
226
|
+
rows: Component === "textarea" ? rows : void 0
|
|
227
|
+
})), hasTextAtEnd && jsxRuntime.jsxRuntimeExports.jsx(InputText, {
|
|
228
|
+
alignment: "end",
|
|
229
|
+
size: adjustedSize,
|
|
230
|
+
text: textAtEnd
|
|
231
|
+
}), isPassword ? jsxRuntime.jsxRuntimeExports.jsx(PasswordButton, {
|
|
232
|
+
isInputHovered,
|
|
233
|
+
hasError,
|
|
234
|
+
inputSize: adjustedSize,
|
|
235
|
+
isDisabled,
|
|
236
|
+
isPasswordVisible,
|
|
237
|
+
toggleVisibility: () => setIsPasswordVisible((prevVisibility) => !prevVisibility)
|
|
238
|
+
}) : hasEndIcon && jsxRuntime.jsxRuntimeExports.jsx(InputIcon.InputIcon, {
|
|
239
|
+
alignment: "end",
|
|
240
|
+
size: adjustedSize,
|
|
241
|
+
isDisabled,
|
|
242
|
+
icon: iconAtEnd
|
|
243
|
+
})]
|
|
244
|
+
}), (showErrorText || showHelperText) && jsxRuntime.jsxRuntimeExports.jsx(InputCaption.InputCaption, __spreadProps(__spreadValues({
|
|
245
|
+
variant: showHelperText ? "helper" : "error"
|
|
246
|
+
}, captionProps), {
|
|
247
|
+
children: captionText
|
|
248
|
+
}))]
|
|
249
|
+
});
|
|
239
250
|
}
|
|
240
251
|
exports.InputField = InputField;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { I as Icon } from "./Icon-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./jsx-runtime-DTpFD6nx.mjs";
|
|
2
|
+
import { I as Icon } from "./Icon-DzTns8u5.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,12 +34,13 @@ function getElementType(isMultiline) {
|
|
|
34
34
|
}
|
|
35
35
|
function InputIcon(props) {
|
|
36
36
|
const { alignment = "start", size = "md", isDisabled = false, icon } = props;
|
|
37
|
-
return
|
|
38
|
-
className: classNames(styles.icon, alignment === "start" ? styles.iconStart : styles.iconEnd, isDisabled && styles.iconDisabled, styles[variationName("inputIconPlacement", size)])
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
return jsxRuntimeExports.jsx("div", {
|
|
38
|
+
className: classNames(styles.icon, alignment === "start" ? styles.iconStart : styles.iconEnd, isDisabled && styles.iconDisabled, styles[variationName("inputIconPlacement", size)]),
|
|
39
|
+
children: jsxRuntimeExports.jsx(Icon, {
|
|
40
|
+
symbol: icon,
|
|
41
|
+
size: mapIconSize(size)
|
|
42
|
+
})
|
|
43
|
+
});
|
|
43
44
|
}
|
|
44
45
|
export {
|
|
45
46
|
InputIcon as I,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
3
|
-
const Icon = require("./Icon-
|
|
2
|
+
const jsxRuntime = require("./jsx-runtime-CH1d66I3.js");
|
|
3
|
+
const Icon = require("./Icon-BVa5ddiD.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,12 +35,13 @@ function getElementType(isMultiline) {
|
|
|
35
35
|
}
|
|
36
36
|
function InputIcon(props) {
|
|
37
37
|
const { alignment = "start", size = "md", isDisabled = false, icon } = props;
|
|
38
|
-
return
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
return jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
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.jsxRuntimeExports.jsx(Icon.Icon, {
|
|
41
|
+
symbol: icon,
|
|
42
|
+
size: mapIconSize(size)
|
|
43
|
+
})
|
|
44
|
+
});
|
|
44
45
|
}
|
|
45
46
|
exports.InputIcon = InputIcon;
|
|
46
47
|
exports.getElementType = getElementType;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
3
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -15,6 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
15
17
|
}
|
|
16
18
|
return a;
|
|
17
19
|
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
18
21
|
var __objRest = (source, exclude) => {
|
|
19
22
|
var target = {};
|
|
20
23
|
for (var prop in source)
|
|
@@ -27,10 +30,11 @@ var __objRest = (source, exclude) => {
|
|
|
27
30
|
}
|
|
28
31
|
return target;
|
|
29
32
|
};
|
|
33
|
+
const jsxRuntime = require("./jsx-runtime-CH1d66I3.js");
|
|
30
34
|
const React = require("react");
|
|
31
|
-
const UnstyledButton = require("./UnstyledButton-
|
|
32
|
-
const Text = require("./Text-
|
|
33
|
-
const Icon = require("./Icon-
|
|
35
|
+
const UnstyledButton = require("./UnstyledButton-_YQekhlm.js");
|
|
36
|
+
const Text = require("./Text-C4CEsglh.js");
|
|
37
|
+
const Icon = require("./Icon-BVa5ddiD.js");
|
|
34
38
|
function _interopNamespaceDefault(e) {
|
|
35
39
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
36
40
|
if (e) {
|
|
@@ -91,13 +95,16 @@ const styles = {
|
|
|
91
95
|
};
|
|
92
96
|
const KebabButton = React.forwardRef((props, inRef) => {
|
|
93
97
|
const _a = props, { accessibilityLabel = "Actions" } = _a, restProps = __objRest(_a, ["accessibilityLabel"]);
|
|
94
|
-
return
|
|
98
|
+
return jsxRuntime.jsxRuntimeExports.jsxs(UnstyledButton.UnstyledButton, __spreadProps(__spreadValues({
|
|
95
99
|
ref: inRef,
|
|
96
100
|
className: styles.KebabButton
|
|
97
|
-
}, restProps),
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
+
}, restProps), {
|
|
102
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
103
|
+
visuallyHidden: true,
|
|
104
|
+
children: accessibilityLabel
|
|
105
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Icon.Icon, {
|
|
106
|
+
symbol: MoreVert
|
|
107
|
+
})]
|
|
101
108
|
}));
|
|
102
109
|
});
|
|
103
110
|
KebabButton.displayName = "KebabButton";
|
|
@@ -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,11 +29,12 @@ var __objRest = (source, exclude) => {
|
|
|
26
29
|
}
|
|
27
30
|
return target;
|
|
28
31
|
};
|
|
32
|
+
import { j as jsxRuntimeExports } from "./jsx-runtime-DTpFD6nx.mjs";
|
|
29
33
|
import * as React from "react";
|
|
30
34
|
import React__default from "react";
|
|
31
|
-
import { U as UnstyledButton } from "./UnstyledButton-
|
|
32
|
-
import { T as Text } from "./Text-
|
|
33
|
-
import { I as Icon } from "./Icon-
|
|
35
|
+
import { U as UnstyledButton } from "./UnstyledButton-BCg7eEyP.mjs";
|
|
36
|
+
import { T as Text } from "./Text-u9mYLeWj.mjs";
|
|
37
|
+
import { I as Icon } from "./Icon-DzTns8u5.mjs";
|
|
34
38
|
var __defProp2 = Object.defineProperty;
|
|
35
39
|
var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
|
|
36
40
|
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
@@ -74,13 +78,16 @@ const styles = {
|
|
|
74
78
|
};
|
|
75
79
|
const KebabButton = React__default.forwardRef((props, inRef) => {
|
|
76
80
|
const _a = props, { accessibilityLabel = "Actions" } = _a, restProps = __objRest(_a, ["accessibilityLabel"]);
|
|
77
|
-
return
|
|
81
|
+
return jsxRuntimeExports.jsxs(UnstyledButton, __spreadProps(__spreadValues({
|
|
78
82
|
ref: inRef,
|
|
79
83
|
className: styles.KebabButton
|
|
80
|
-
}, restProps),
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
+
}, restProps), {
|
|
85
|
+
children: [jsxRuntimeExports.jsx(Text, {
|
|
86
|
+
visuallyHidden: true,
|
|
87
|
+
children: accessibilityLabel
|
|
88
|
+
}), jsxRuntimeExports.jsx(Icon, {
|
|
89
|
+
symbol: MoreVert
|
|
90
|
+
})]
|
|
84
91
|
}));
|
|
85
92
|
});
|
|
86
93
|
KebabButton.displayName = "KebabButton";
|