@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
package/CodeBlock/index.js
CHANGED
|
@@ -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,21 +17,23 @@ var __spreadValues = (a, b) => {
|
|
|
15
17
|
}
|
|
16
18
|
return a;
|
|
17
19
|
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
18
21
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
22
|
+
const jsxRuntime = require("../__chunks__/jsx-runtime-CH1d66I3.js");
|
|
19
23
|
const React = require("react");
|
|
20
|
-
const CodeSnippet = require("../__chunks__/CodeSnippet-
|
|
21
|
-
const HorizontalStack = require("../__chunks__/HorizontalStack-
|
|
24
|
+
const CodeSnippet = require("../__chunks__/CodeSnippet-BCOMwE07.js");
|
|
25
|
+
const HorizontalStack = require("../__chunks__/HorizontalStack-DidoI4Ks.js");
|
|
22
26
|
const utilities_css = require("../utilities/css.js");
|
|
23
27
|
const utilities_react = require("../utilities/react.js");
|
|
24
|
-
const Icon = require("../__chunks__/Icon-
|
|
25
|
-
const Text = require("../__chunks__/Text-
|
|
26
|
-
const Tooltip = require("../__chunks__/Tooltip-
|
|
28
|
+
const Icon = require("../__chunks__/Icon-BVa5ddiD.js");
|
|
29
|
+
const Text = require("../__chunks__/Text-C4CEsglh.js");
|
|
30
|
+
const Tooltip = require("../__chunks__/Tooltip-COjtKErw.js");
|
|
27
31
|
const useHover = require("../__chunks__/useHover-Ck1otl-j.js");
|
|
28
32
|
const useFocus = require("../__chunks__/useFocus-D_NKNXdi.js");
|
|
29
33
|
const mergeProps = require("../__chunks__/mergeProps-DLPcevok.js");
|
|
30
34
|
const ExpandMore400 = require("../__chunks__/ExpandMore400-CJpvxyJm.js");
|
|
31
|
-
const Menu = require("../__chunks__/Menu-
|
|
32
|
-
const UnstyledButton = require("../__chunks__/UnstyledButton-
|
|
35
|
+
const Menu = require("../__chunks__/Menu-Du8SsMeJ.js");
|
|
36
|
+
const UnstyledButton = require("../__chunks__/UnstyledButton-_YQekhlm.js");
|
|
33
37
|
function _interopNamespaceDefault(e) {
|
|
34
38
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
35
39
|
if (e) {
|
|
@@ -232,18 +236,21 @@ function CopyButton({ text }) {
|
|
|
232
236
|
tooltipState.close();
|
|
233
237
|
}, [clipboard, text, tooltipState]);
|
|
234
238
|
const content = clipboard.copied ? "Copied!" : "Copy code block";
|
|
235
|
-
return
|
|
236
|
-
key: content,
|
|
239
|
+
return jsxRuntime.jsxRuntimeExports.jsx(Tooltip.Tooltip, {
|
|
237
240
|
isOpen: tooltipState.isOpen || clipboard.copied,
|
|
238
|
-
content
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
241
|
+
content,
|
|
242
|
+
children: jsxRuntime.jsxRuntimeExports.jsxs("button", __spreadProps(__spreadValues({
|
|
243
|
+
className: styles$1.CopyButton,
|
|
244
|
+
onClick: handlePress
|
|
245
|
+
}, triggerProps), {
|
|
246
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
247
|
+
visuallyHidden: true,
|
|
248
|
+
children: "Copy code"
|
|
249
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Icon.Icon, {
|
|
250
|
+
symbol: ContentCopy
|
|
251
|
+
})]
|
|
252
|
+
}))
|
|
253
|
+
}, content);
|
|
247
254
|
}
|
|
248
255
|
CopyButton.displayName = "CopyButton";
|
|
249
256
|
function useCopyButtonTooltipState() {
|
|
@@ -269,20 +276,29 @@ function LanguageMenu(props) {
|
|
|
269
276
|
const language2 = key;
|
|
270
277
|
onChange(language2);
|
|
271
278
|
}, [onChange]);
|
|
272
|
-
return
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
279
|
+
return jsxRuntime.jsxRuntimeExports.jsxs(Menu.Menu, {
|
|
280
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Menu.Menu.Trigger, {
|
|
281
|
+
children: jsxRuntime.jsxRuntimeExports.jsx(UnstyledButton.UnstyledButton, {
|
|
282
|
+
children: jsxRuntime.jsxRuntimeExports.jsxs(HorizontalStack.HorizontalStack, {
|
|
283
|
+
blockAlign: "center",
|
|
284
|
+
gap: "1",
|
|
285
|
+
wrap: false,
|
|
286
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
287
|
+
variant: "body1",
|
|
288
|
+
children: CodeSnippet.friendlySnippetLanguageNames[language]
|
|
289
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Icon.Icon, {
|
|
290
|
+
symbol: ExpandMore400.ExpandMore400
|
|
291
|
+
})]
|
|
292
|
+
})
|
|
293
|
+
})
|
|
294
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Menu.Menu.Overlay, {
|
|
295
|
+
maxItemsUntilScroll: Infinity,
|
|
296
|
+
onAction: handleMenuAction,
|
|
297
|
+
children: languages.map((language2) => jsxRuntime.jsxRuntimeExports.jsx(Menu.Menu.Item, {
|
|
298
|
+
children: CodeSnippet.friendlySnippetLanguageNames[language2]
|
|
299
|
+
}, language2))
|
|
300
|
+
})]
|
|
301
|
+
});
|
|
286
302
|
}
|
|
287
303
|
const CodeBlock$1 = "_CodeBlock_w5hab_4";
|
|
288
304
|
const header = "_header_w5hab_12";
|
|
@@ -302,31 +318,35 @@ function CodeBlockHeader(props) {
|
|
|
302
318
|
const { children, color = "neutral", hideCopy = false } = props;
|
|
303
319
|
const { snippet, languages, language, onLanguageChange } = CodeSnippet.useCodeBlock();
|
|
304
320
|
const className = utilities_css.classNames(styles.header, styles[utilities_css.variationName("color", color)]);
|
|
305
|
-
return
|
|
306
|
-
className
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
321
|
+
return jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
322
|
+
className,
|
|
323
|
+
children: jsxRuntime.jsxRuntimeExports.jsxs(HorizontalStack.HorizontalStack, {
|
|
324
|
+
align: "space-between",
|
|
325
|
+
gap: "2",
|
|
326
|
+
wrap: false,
|
|
327
|
+
blockAlign: "start",
|
|
328
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx("span", {
|
|
329
|
+
className: styles.headerTitle,
|
|
330
|
+
children
|
|
331
|
+
}), jsxRuntime.jsxRuntimeExports.jsxs(HorizontalStack.HorizontalStack, {
|
|
332
|
+
gap: "2",
|
|
333
|
+
wrap: false,
|
|
334
|
+
children: [languages.length > 1 && jsxRuntime.jsxRuntimeExports.jsx(LanguageMenu, {
|
|
335
|
+
languages,
|
|
336
|
+
language,
|
|
337
|
+
onChange: onLanguageChange
|
|
338
|
+
}), languages.length > 1 && !hideCopy && jsxRuntime.jsxRuntimeExports.jsx("span", {
|
|
339
|
+
className: styles.divider
|
|
340
|
+
}), !hideCopy && jsxRuntime.jsxRuntimeExports.jsx(CopyButton, {
|
|
341
|
+
text: snippet.props.code
|
|
342
|
+
})]
|
|
343
|
+
})]
|
|
344
|
+
})
|
|
345
|
+
});
|
|
326
346
|
}
|
|
327
347
|
CodeBlockHeader.displayName = "CodeBlock.Header";
|
|
328
348
|
function CodeBlockSnippet(props) {
|
|
329
|
-
return
|
|
349
|
+
return jsxRuntime.jsxRuntimeExports.jsx(CodeSnippet.CodeSnippet, __spreadValues({}, props));
|
|
330
350
|
}
|
|
331
351
|
CodeBlockSnippet.displayName = "CodeBlock.Snippet";
|
|
332
352
|
function CodeBlock(props) {
|
|
@@ -359,11 +379,13 @@ function CodeBlock(props) {
|
|
|
359
379
|
onLanguageChange
|
|
360
380
|
};
|
|
361
381
|
}, [languages, snippet, language, onLanguageChange]);
|
|
362
|
-
return
|
|
363
|
-
value: context
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
382
|
+
return jsxRuntime.jsxRuntimeExports.jsx(CodeSnippet.CodeBlockContext.Provider, {
|
|
383
|
+
value: context,
|
|
384
|
+
children: jsxRuntime.jsxRuntimeExports.jsxs("div", {
|
|
385
|
+
className: styles.CodeBlock,
|
|
386
|
+
children: [header2, snippet]
|
|
387
|
+
})
|
|
388
|
+
});
|
|
367
389
|
}
|
|
368
390
|
CodeBlock.displayName = "CodeBlock";
|
|
369
391
|
CodeBlock.Header = CodeBlockHeader;
|
package/CodeBlock/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,21 +16,23 @@ var __spreadValues = (a, b) => {
|
|
|
14
16
|
}
|
|
15
17
|
return a;
|
|
16
18
|
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { j as jsxRuntimeExports } from "../__chunks__/jsx-runtime-DTpFD6nx.mjs";
|
|
17
21
|
import * as React from "react";
|
|
18
22
|
import React__default, { useCallback, useMemo } from "react";
|
|
19
|
-
import { f as friendlySnippetLanguageNames, a as CodeBlockContext, u as useCodeBlock, C as CodeSnippet } from "../__chunks__/CodeSnippet-
|
|
20
|
-
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-
|
|
23
|
+
import { f as friendlySnippetLanguageNames, a as CodeBlockContext, u as useCodeBlock, C as CodeSnippet } from "../__chunks__/CodeSnippet-CWnMHdVu.mjs";
|
|
24
|
+
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-BkE82C73.mjs";
|
|
21
25
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
22
26
|
import { filterChildrenByDisplayName } from "../utilities/react.mjs";
|
|
23
|
-
import { I as Icon } from "../__chunks__/Icon-
|
|
24
|
-
import { T as Text } from "../__chunks__/Text-
|
|
25
|
-
import { T as Tooltip, $ as $8796f90736e175cb$export$4d40659c25ecb50b } from "../__chunks__/Tooltip-
|
|
27
|
+
import { I as Icon } from "../__chunks__/Icon-DzTns8u5.mjs";
|
|
28
|
+
import { T as Text } from "../__chunks__/Text-u9mYLeWj.mjs";
|
|
29
|
+
import { T as Tooltip, $ as $8796f90736e175cb$export$4d40659c25ecb50b } from "../__chunks__/Tooltip-BKGkKnOx.mjs";
|
|
26
30
|
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../__chunks__/useHover-FWU5y5-k.mjs";
|
|
27
31
|
import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "../__chunks__/useFocus-u61kyYs8.mjs";
|
|
28
32
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../__chunks__/mergeProps-COnPag8r.mjs";
|
|
29
33
|
import { E as ExpandMore400 } from "../__chunks__/ExpandMore400-CH7GNxqk.mjs";
|
|
30
|
-
import { M as Menu } from "../__chunks__/Menu-
|
|
31
|
-
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-
|
|
34
|
+
import { M as Menu } from "../__chunks__/Menu-C2F4fvhd.mjs";
|
|
35
|
+
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-BCg7eEyP.mjs";
|
|
32
36
|
var __defProp2 = Object.defineProperty;
|
|
33
37
|
var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
|
|
34
38
|
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
@@ -214,18 +218,21 @@ function CopyButton({ text }) {
|
|
|
214
218
|
tooltipState.close();
|
|
215
219
|
}, [clipboard, text, tooltipState]);
|
|
216
220
|
const content = clipboard.copied ? "Copied!" : "Copy code block";
|
|
217
|
-
return
|
|
218
|
-
key: content,
|
|
221
|
+
return jsxRuntimeExports.jsx(Tooltip, {
|
|
219
222
|
isOpen: tooltipState.isOpen || clipboard.copied,
|
|
220
|
-
content
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
223
|
+
content,
|
|
224
|
+
children: jsxRuntimeExports.jsxs("button", __spreadProps(__spreadValues({
|
|
225
|
+
className: styles$1.CopyButton,
|
|
226
|
+
onClick: handlePress
|
|
227
|
+
}, triggerProps), {
|
|
228
|
+
children: [jsxRuntimeExports.jsx(Text, {
|
|
229
|
+
visuallyHidden: true,
|
|
230
|
+
children: "Copy code"
|
|
231
|
+
}), jsxRuntimeExports.jsx(Icon, {
|
|
232
|
+
symbol: ContentCopy
|
|
233
|
+
})]
|
|
234
|
+
}))
|
|
235
|
+
}, content);
|
|
229
236
|
}
|
|
230
237
|
CopyButton.displayName = "CopyButton";
|
|
231
238
|
function useCopyButtonTooltipState() {
|
|
@@ -251,20 +258,29 @@ function LanguageMenu(props) {
|
|
|
251
258
|
const language2 = key;
|
|
252
259
|
onChange(language2);
|
|
253
260
|
}, [onChange]);
|
|
254
|
-
return
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
261
|
+
return jsxRuntimeExports.jsxs(Menu, {
|
|
262
|
+
children: [jsxRuntimeExports.jsx(Menu.Trigger, {
|
|
263
|
+
children: jsxRuntimeExports.jsx(UnstyledButton, {
|
|
264
|
+
children: jsxRuntimeExports.jsxs(HorizontalStack, {
|
|
265
|
+
blockAlign: "center",
|
|
266
|
+
gap: "1",
|
|
267
|
+
wrap: false,
|
|
268
|
+
children: [jsxRuntimeExports.jsx(Text, {
|
|
269
|
+
variant: "body1",
|
|
270
|
+
children: friendlySnippetLanguageNames[language]
|
|
271
|
+
}), jsxRuntimeExports.jsx(Icon, {
|
|
272
|
+
symbol: ExpandMore400
|
|
273
|
+
})]
|
|
274
|
+
})
|
|
275
|
+
})
|
|
276
|
+
}), jsxRuntimeExports.jsx(Menu.Overlay, {
|
|
277
|
+
maxItemsUntilScroll: Infinity,
|
|
278
|
+
onAction: handleMenuAction,
|
|
279
|
+
children: languages.map((language2) => jsxRuntimeExports.jsx(Menu.Item, {
|
|
280
|
+
children: friendlySnippetLanguageNames[language2]
|
|
281
|
+
}, language2))
|
|
282
|
+
})]
|
|
283
|
+
});
|
|
268
284
|
}
|
|
269
285
|
const CodeBlock$1 = "_CodeBlock_w5hab_4";
|
|
270
286
|
const header = "_header_w5hab_12";
|
|
@@ -284,31 +300,35 @@ function CodeBlockHeader(props) {
|
|
|
284
300
|
const { children, color = "neutral", hideCopy = false } = props;
|
|
285
301
|
const { snippet, languages, language, onLanguageChange } = useCodeBlock();
|
|
286
302
|
const className = classNames(styles.header, styles[variationName("color", color)]);
|
|
287
|
-
return
|
|
288
|
-
className
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
303
|
+
return jsxRuntimeExports.jsx("div", {
|
|
304
|
+
className,
|
|
305
|
+
children: jsxRuntimeExports.jsxs(HorizontalStack, {
|
|
306
|
+
align: "space-between",
|
|
307
|
+
gap: "2",
|
|
308
|
+
wrap: false,
|
|
309
|
+
blockAlign: "start",
|
|
310
|
+
children: [jsxRuntimeExports.jsx("span", {
|
|
311
|
+
className: styles.headerTitle,
|
|
312
|
+
children
|
|
313
|
+
}), jsxRuntimeExports.jsxs(HorizontalStack, {
|
|
314
|
+
gap: "2",
|
|
315
|
+
wrap: false,
|
|
316
|
+
children: [languages.length > 1 && jsxRuntimeExports.jsx(LanguageMenu, {
|
|
317
|
+
languages,
|
|
318
|
+
language,
|
|
319
|
+
onChange: onLanguageChange
|
|
320
|
+
}), languages.length > 1 && !hideCopy && jsxRuntimeExports.jsx("span", {
|
|
321
|
+
className: styles.divider
|
|
322
|
+
}), !hideCopy && jsxRuntimeExports.jsx(CopyButton, {
|
|
323
|
+
text: snippet.props.code
|
|
324
|
+
})]
|
|
325
|
+
})]
|
|
326
|
+
})
|
|
327
|
+
});
|
|
308
328
|
}
|
|
309
329
|
CodeBlockHeader.displayName = "CodeBlock.Header";
|
|
310
330
|
function CodeBlockSnippet(props) {
|
|
311
|
-
return
|
|
331
|
+
return jsxRuntimeExports.jsx(CodeSnippet, __spreadValues({}, props));
|
|
312
332
|
}
|
|
313
333
|
CodeBlockSnippet.displayName = "CodeBlock.Snippet";
|
|
314
334
|
function CodeBlock(props) {
|
|
@@ -341,11 +361,13 @@ function CodeBlock(props) {
|
|
|
341
361
|
onLanguageChange
|
|
342
362
|
};
|
|
343
363
|
}, [languages, snippet, language, onLanguageChange]);
|
|
344
|
-
return
|
|
345
|
-
value: context
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
364
|
+
return jsxRuntimeExports.jsx(CodeBlockContext.Provider, {
|
|
365
|
+
value: context,
|
|
366
|
+
children: jsxRuntimeExports.jsxs("div", {
|
|
367
|
+
className: styles.CodeBlock,
|
|
368
|
+
children: [header2, snippet]
|
|
369
|
+
})
|
|
370
|
+
});
|
|
349
371
|
}
|
|
350
372
|
CodeBlock.displayName = "CodeBlock";
|
|
351
373
|
CodeBlock.Header = CodeBlockHeader;
|
package/CodeSnippet/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const CodeSnippet = require("../__chunks__/CodeSnippet-
|
|
3
|
+
const CodeSnippet = require("../__chunks__/CodeSnippet-BCOMwE07.js");
|
|
4
4
|
exports.CodeSnippet = CodeSnippet.CodeSnippet;
|
package/CodeSnippet/index.mjs
CHANGED
package/ColorPicker/index.js
CHANGED
|
@@ -32,6 +32,7 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
return target;
|
|
33
33
|
};
|
|
34
34
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
35
|
+
const jsxRuntime = require("../__chunks__/jsx-runtime-CH1d66I3.js");
|
|
35
36
|
const React = require("react");
|
|
36
37
|
const utils = require("../__chunks__/utils-CRWC8dEm.js");
|
|
37
38
|
const BaseCollection = require("../__chunks__/BaseCollection-BFCqPRBy.js");
|
|
@@ -64,7 +65,7 @@ const useSpinButton = require("../__chunks__/useSpinButton-BtlaFD9D.js");
|
|
|
64
65
|
const useEvent = require("../__chunks__/useEvent-D3eKExds.js");
|
|
65
66
|
const useTextField = require("../__chunks__/useTextField-BlTYl2ML.js");
|
|
66
67
|
const useNumberFormatter = require("../__chunks__/useNumberFormatter-BCYp6Is8.js");
|
|
67
|
-
const InputCaption = require("../__chunks__/InputCaption-
|
|
68
|
+
const InputCaption = require("../__chunks__/InputCaption-Dkyn1sg6.js");
|
|
68
69
|
var $2d805fd52bb48883$exports = {};
|
|
69
70
|
$2d805fd52bb48883$exports = {
|
|
70
71
|
"alpha": `ألفا`,
|
|
@@ -5214,7 +5215,7 @@ const styles$4 = {
|
|
|
5214
5215
|
ColorThumb: ColorThumb$1
|
|
5215
5216
|
};
|
|
5216
5217
|
function ColorThumb2(props) {
|
|
5217
|
-
return
|
|
5218
|
+
return jsxRuntime.jsxRuntimeExports.jsx($e2b71ec1d6016406$export$a3cc47cee1c1ccc, __spreadProps(__spreadValues({}, props), {
|
|
5218
5219
|
className: utilities_css.classNames(styles$4.ColorThumb, props.className)
|
|
5219
5220
|
}));
|
|
5220
5221
|
}
|
|
@@ -5223,9 +5224,10 @@ const styles$3 = {
|
|
|
5223
5224
|
ColorArea: ColorArea$1
|
|
5224
5225
|
};
|
|
5225
5226
|
function ColorArea2(props) {
|
|
5226
|
-
return
|
|
5227
|
-
className: styles$3.ColorArea
|
|
5228
|
-
|
|
5227
|
+
return jsxRuntime.jsxRuntimeExports.jsx($0de070065d44825d$export$b2103f68a961418e, __spreadProps(__spreadValues({}, props), {
|
|
5228
|
+
className: styles$3.ColorArea,
|
|
5229
|
+
children: jsxRuntime.jsxRuntimeExports.jsx(ColorThumb2, {})
|
|
5230
|
+
}));
|
|
5229
5231
|
}
|
|
5230
5232
|
const ColorSlider$1 = "_ColorSlider_2ybsk_4";
|
|
5231
5233
|
const track = "_track_2ybsk_10";
|
|
@@ -5236,40 +5238,45 @@ const styles$2 = {
|
|
|
5236
5238
|
thumb
|
|
5237
5239
|
};
|
|
5238
5240
|
function ColorSlider2(props) {
|
|
5239
|
-
return
|
|
5240
|
-
className: styles$2.ColorSlider
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5241
|
+
return jsxRuntime.jsxRuntimeExports.jsx($1cca5300a3c2e7f9$export$44fd664bcca5b6fb, __spreadProps(__spreadValues({}, props), {
|
|
5242
|
+
className: styles$2.ColorSlider,
|
|
5243
|
+
children: jsxRuntime.jsxRuntimeExports.jsx($6f909507e6374d18$export$105594979f116971, {
|
|
5244
|
+
className: styles$2.track,
|
|
5245
|
+
style: ({ defaultStyle }) => ({
|
|
5246
|
+
background: `
|
|
5245
5247
|
${defaultStyle.background},
|
|
5246
5248
|
repeating-conic-gradient(#CCC 0% 25%, white 0% 50%) 50% / 16px 16px
|
|
5247
5249
|
`
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5250
|
+
}),
|
|
5251
|
+
"aria-label": "Hue slider",
|
|
5252
|
+
children: jsxRuntime.jsxRuntimeExports.jsx(ColorThumb2, {
|
|
5253
|
+
className: styles$2.thumb
|
|
5254
|
+
})
|
|
5255
|
+
})
|
|
5256
|
+
}));
|
|
5253
5257
|
}
|
|
5254
5258
|
const popover = "_popover_1c5tw_4";
|
|
5255
5259
|
const styles$1 = {
|
|
5256
5260
|
popover
|
|
5257
5261
|
};
|
|
5258
5262
|
function ColorPicker(props) {
|
|
5259
|
-
return
|
|
5263
|
+
return jsxRuntime.jsxRuntimeExports.jsx($2637d3f5efb23186$export$9feb1bc2e5f1ccb3, __spreadValues({}, props));
|
|
5260
5264
|
}
|
|
5261
5265
|
function ColorPickerTrigger({ children }) {
|
|
5262
|
-
return
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5266
|
+
return jsxRuntime.jsxRuntimeExports.jsxs(Dialog.$de32f1b87079253c$export$2e1e1122cf0cba88, {
|
|
5267
|
+
children: [children, jsxRuntime.jsxRuntimeExports.jsxs(Dialog.$07b14b47974efb58$export$5b6b19405a83ff9d, {
|
|
5268
|
+
placement: "bottom start",
|
|
5269
|
+
className: styles$1.popover,
|
|
5270
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(ColorArea2, {
|
|
5271
|
+
colorSpace: "hsb",
|
|
5272
|
+
xChannel: "saturation",
|
|
5273
|
+
yChannel: "brightness"
|
|
5274
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(ColorSlider2, {
|
|
5275
|
+
colorSpace: "hsb",
|
|
5276
|
+
channel: "hue"
|
|
5277
|
+
})]
|
|
5278
|
+
})]
|
|
5279
|
+
});
|
|
5273
5280
|
}
|
|
5274
5281
|
ColorPicker.Trigger = ColorPickerTrigger;
|
|
5275
5282
|
function useColorPickerState() {
|
|
@@ -5302,34 +5309,44 @@ const styles = {
|
|
|
5302
5309
|
function ColorPickerInputField(props) {
|
|
5303
5310
|
const _a = props, { size = "md", validationState, errorText, helperText, label, isLabelEmphasized, isDisabled, isReadOnly, isRequired, placeholder, autoFocus, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby } = _a, colorPickerProps = __objRest(_a, ["size", "validationState", "errorText", "helperText", "label", "isLabelEmphasized", "isDisabled", "isReadOnly", "isRequired", "placeholder", "autoFocus", "aria-label", "aria-labelledby"]);
|
|
5304
5311
|
const className = utilities_css.classNames(styles.ColorPickerInput, validationState === "invalid" && styles.error, styles[utilities_css.variationName("size", size)]);
|
|
5305
|
-
return
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5312
|
+
return jsxRuntime.jsxRuntimeExports.jsx(ColorPicker, __spreadProps(__spreadValues({}, colorPickerProps), {
|
|
5313
|
+
children: jsxRuntime.jsxRuntimeExports.jsxs($3ada01a82feafb94$export$b865d4358897bb17, {
|
|
5314
|
+
className,
|
|
5315
|
+
isDisabled,
|
|
5316
|
+
isReadOnly,
|
|
5317
|
+
isRequired,
|
|
5318
|
+
isInvalid: validationState === "invalid",
|
|
5319
|
+
autoFocus,
|
|
5320
|
+
"aria-label": ariaLabel,
|
|
5321
|
+
"aria-labelledby": ariaLabelledby,
|
|
5322
|
+
children: [label && jsxRuntime.jsxRuntimeExports.jsx(InputCaption.Label, {
|
|
5323
|
+
isLabelEmphasized,
|
|
5324
|
+
fieldSize: size,
|
|
5325
|
+
hasError: validationState === "invalid",
|
|
5326
|
+
children: label
|
|
5327
|
+
}), jsxRuntime.jsxRuntimeExports.jsxs("div", {
|
|
5328
|
+
className: styles.inputContainer,
|
|
5329
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
5330
|
+
className: styles.swatchContainer,
|
|
5331
|
+
children: isDisabled || isReadOnly ? jsxRuntime.jsxRuntimeExports.jsx(InputColorSwatch, {}) : jsxRuntime.jsxRuntimeExports.jsx(ColorPicker.Trigger, {
|
|
5332
|
+
children: jsxRuntime.jsxRuntimeExports.jsx(Button.$d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
|
|
5333
|
+
className: styles.swatchButton,
|
|
5334
|
+
children: jsxRuntime.jsxRuntimeExports.jsx(InputColorSwatch, {})
|
|
5335
|
+
})
|
|
5336
|
+
})
|
|
5337
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Input.$3985021b0ad6602f$export$f5b8910cec6cf069, {
|
|
5338
|
+
className: styles.input,
|
|
5339
|
+
placeholder
|
|
5340
|
+
})]
|
|
5341
|
+
}), (helperText || errorText) && jsxRuntime.jsxRuntimeExports.jsx(InputCaption.InputCaption, {
|
|
5342
|
+
variant: errorText && validationState === "invalid" ? "error" : "helper",
|
|
5343
|
+
children: errorText || helperText
|
|
5344
|
+
})]
|
|
5345
|
+
})
|
|
5346
|
+
}));
|
|
5330
5347
|
}
|
|
5331
5348
|
function InputColorSwatch() {
|
|
5332
|
-
return
|
|
5349
|
+
return jsxRuntime.jsxRuntimeExports.jsx($251c695a52d94a8d$export$cae13e90592f246a, {
|
|
5333
5350
|
className: styles.swatch,
|
|
5334
5351
|
style: ({ color }) => ({
|
|
5335
5352
|
background: `
|