@easypost/easy-ui 1.0.0-alpha.112 → 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 +6 -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 +4 -6
- package/types.d.ts +1 -1
- package/types.d.ts.map +1 -1
- package/utilities/Noop.d.ts +1 -1
- package/utilities/Noop.d.ts.map +1 -1
- package/utilities/react.d.ts +1 -1
- package/utilities/react.d.ts.map +1 -1
- package/utilities/react.js +1 -1
- package/utilities/react.mjs +1 -1
- package/utilities/test.d.ts +1 -0
- package/utilities/test.d.ts.map +1 -1
- package/__chunks__/EasyPostLogo-B3Um5vvS.mjs +0 -22
- package/__chunks__/EasyPostLogo-DQt5KlFX.js +0 -21
- package/__chunks__/index-CUcRN4NO.js +0 -311
- package/__chunks__/index-Izk6uvQC.mjs +0 -312
package/ColorPicker/index.mjs
CHANGED
|
@@ -30,6 +30,7 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
+
import { j as jsxRuntimeExports } from "../__chunks__/jsx-runtime-DTpFD6nx.mjs";
|
|
33
34
|
import React__default, { useState, useMemo, useRef, useCallback, useEffect, createContext, forwardRef, useContext } from "react";
|
|
34
35
|
import { a as $64fa3d84918910a7$export$4d86445c2cf5e3, $ as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$2881499e37b75b9a, e as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, f as $64fa3d84918910a7$export$ef03459518577ad4, d as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../__chunks__/utils-C1be5hOp.mjs";
|
|
35
36
|
import { f as $4e85f108e88277b8$export$ebe63fadcdce34ed, g as $4e85f108e88277b8$export$44644b8a16031b5b, h as $4e85f108e88277b8$export$717b2c0a523a0b53, i as $4e85f108e88277b8$export$265015d6dc85bf21 } from "../__chunks__/BaseCollection-BVO0lZBs.mjs";
|
|
@@ -62,7 +63,7 @@ import { a as $6c7bd7858deea686$export$cd11ab140839f11d, $ as $d2e8511e6f209edf$
|
|
|
62
63
|
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "../__chunks__/useEvent-CnahkmoD.mjs";
|
|
63
64
|
import { $ as $2d73ec29415bd339$export$712718f7aec83d5 } from "../__chunks__/useTextField-0Mbs_DmY.mjs";
|
|
64
65
|
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "../__chunks__/useNumberFormatter-dSwO_MBg.mjs";
|
|
65
|
-
import { L as Label, I as InputCaption } from "../__chunks__/InputCaption-
|
|
66
|
+
import { L as Label, I as InputCaption } from "../__chunks__/InputCaption-B8bZH6sX.mjs";
|
|
66
67
|
var $2d805fd52bb48883$exports = {};
|
|
67
68
|
$2d805fd52bb48883$exports = {
|
|
68
69
|
"alpha": `ألفا`,
|
|
@@ -5212,7 +5213,7 @@ const styles$4 = {
|
|
|
5212
5213
|
ColorThumb: ColorThumb$1
|
|
5213
5214
|
};
|
|
5214
5215
|
function ColorThumb2(props) {
|
|
5215
|
-
return
|
|
5216
|
+
return jsxRuntimeExports.jsx($e2b71ec1d6016406$export$a3cc47cee1c1ccc, __spreadProps(__spreadValues({}, props), {
|
|
5216
5217
|
className: classNames(styles$4.ColorThumb, props.className)
|
|
5217
5218
|
}));
|
|
5218
5219
|
}
|
|
@@ -5221,9 +5222,10 @@ const styles$3 = {
|
|
|
5221
5222
|
ColorArea: ColorArea$1
|
|
5222
5223
|
};
|
|
5223
5224
|
function ColorArea2(props) {
|
|
5224
|
-
return
|
|
5225
|
-
className: styles$3.ColorArea
|
|
5226
|
-
|
|
5225
|
+
return jsxRuntimeExports.jsx($0de070065d44825d$export$b2103f68a961418e, __spreadProps(__spreadValues({}, props), {
|
|
5226
|
+
className: styles$3.ColorArea,
|
|
5227
|
+
children: jsxRuntimeExports.jsx(ColorThumb2, {})
|
|
5228
|
+
}));
|
|
5227
5229
|
}
|
|
5228
5230
|
const ColorSlider$1 = "_ColorSlider_2ybsk_4";
|
|
5229
5231
|
const track = "_track_2ybsk_10";
|
|
@@ -5234,40 +5236,45 @@ const styles$2 = {
|
|
|
5234
5236
|
thumb
|
|
5235
5237
|
};
|
|
5236
5238
|
function ColorSlider2(props) {
|
|
5237
|
-
return
|
|
5238
|
-
className: styles$2.ColorSlider
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5239
|
+
return jsxRuntimeExports.jsx($1cca5300a3c2e7f9$export$44fd664bcca5b6fb, __spreadProps(__spreadValues({}, props), {
|
|
5240
|
+
className: styles$2.ColorSlider,
|
|
5241
|
+
children: jsxRuntimeExports.jsx($6f909507e6374d18$export$105594979f116971, {
|
|
5242
|
+
className: styles$2.track,
|
|
5243
|
+
style: ({ defaultStyle }) => ({
|
|
5244
|
+
background: `
|
|
5243
5245
|
${defaultStyle.background},
|
|
5244
5246
|
repeating-conic-gradient(#CCC 0% 25%, white 0% 50%) 50% / 16px 16px
|
|
5245
5247
|
`
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5248
|
+
}),
|
|
5249
|
+
"aria-label": "Hue slider",
|
|
5250
|
+
children: jsxRuntimeExports.jsx(ColorThumb2, {
|
|
5251
|
+
className: styles$2.thumb
|
|
5252
|
+
})
|
|
5253
|
+
})
|
|
5254
|
+
}));
|
|
5251
5255
|
}
|
|
5252
5256
|
const popover = "_popover_1c5tw_4";
|
|
5253
5257
|
const styles$1 = {
|
|
5254
5258
|
popover
|
|
5255
5259
|
};
|
|
5256
5260
|
function ColorPicker(props) {
|
|
5257
|
-
return
|
|
5261
|
+
return jsxRuntimeExports.jsx($2637d3f5efb23186$export$9feb1bc2e5f1ccb3, __spreadValues({}, props));
|
|
5258
5262
|
}
|
|
5259
5263
|
function ColorPickerTrigger({ children }) {
|
|
5260
|
-
return
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5264
|
+
return jsxRuntimeExports.jsxs($de32f1b87079253c$export$2e1e1122cf0cba88, {
|
|
5265
|
+
children: [children, jsxRuntimeExports.jsxs($07b14b47974efb58$export$5b6b19405a83ff9d, {
|
|
5266
|
+
placement: "bottom start",
|
|
5267
|
+
className: styles$1.popover,
|
|
5268
|
+
children: [jsxRuntimeExports.jsx(ColorArea2, {
|
|
5269
|
+
colorSpace: "hsb",
|
|
5270
|
+
xChannel: "saturation",
|
|
5271
|
+
yChannel: "brightness"
|
|
5272
|
+
}), jsxRuntimeExports.jsx(ColorSlider2, {
|
|
5273
|
+
colorSpace: "hsb",
|
|
5274
|
+
channel: "hue"
|
|
5275
|
+
})]
|
|
5276
|
+
})]
|
|
5277
|
+
});
|
|
5271
5278
|
}
|
|
5272
5279
|
ColorPicker.Trigger = ColorPickerTrigger;
|
|
5273
5280
|
function useColorPickerState() {
|
|
@@ -5300,34 +5307,44 @@ const styles = {
|
|
|
5300
5307
|
function ColorPickerInputField(props) {
|
|
5301
5308
|
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"]);
|
|
5302
5309
|
const className = classNames(styles.ColorPickerInput, validationState === "invalid" && styles.error, styles[variationName("size", size)]);
|
|
5303
|
-
return
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5310
|
+
return jsxRuntimeExports.jsx(ColorPicker, __spreadProps(__spreadValues({}, colorPickerProps), {
|
|
5311
|
+
children: jsxRuntimeExports.jsxs($3ada01a82feafb94$export$b865d4358897bb17, {
|
|
5312
|
+
className,
|
|
5313
|
+
isDisabled,
|
|
5314
|
+
isReadOnly,
|
|
5315
|
+
isRequired,
|
|
5316
|
+
isInvalid: validationState === "invalid",
|
|
5317
|
+
autoFocus,
|
|
5318
|
+
"aria-label": ariaLabel,
|
|
5319
|
+
"aria-labelledby": ariaLabelledby,
|
|
5320
|
+
children: [label && jsxRuntimeExports.jsx(Label, {
|
|
5321
|
+
isLabelEmphasized,
|
|
5322
|
+
fieldSize: size,
|
|
5323
|
+
hasError: validationState === "invalid",
|
|
5324
|
+
children: label
|
|
5325
|
+
}), jsxRuntimeExports.jsxs("div", {
|
|
5326
|
+
className: styles.inputContainer,
|
|
5327
|
+
children: [jsxRuntimeExports.jsx("div", {
|
|
5328
|
+
className: styles.swatchContainer,
|
|
5329
|
+
children: isDisabled || isReadOnly ? jsxRuntimeExports.jsx(InputColorSwatch, {}) : jsxRuntimeExports.jsx(ColorPicker.Trigger, {
|
|
5330
|
+
children: jsxRuntimeExports.jsx($d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
|
|
5331
|
+
className: styles.swatchButton,
|
|
5332
|
+
children: jsxRuntimeExports.jsx(InputColorSwatch, {})
|
|
5333
|
+
})
|
|
5334
|
+
})
|
|
5335
|
+
}), jsxRuntimeExports.jsx($3985021b0ad6602f$export$f5b8910cec6cf069, {
|
|
5336
|
+
className: styles.input,
|
|
5337
|
+
placeholder
|
|
5338
|
+
})]
|
|
5339
|
+
}), (helperText || errorText) && jsxRuntimeExports.jsx(InputCaption, {
|
|
5340
|
+
variant: errorText && validationState === "invalid" ? "error" : "helper",
|
|
5341
|
+
children: errorText || helperText
|
|
5342
|
+
})]
|
|
5343
|
+
})
|
|
5344
|
+
}));
|
|
5328
5345
|
}
|
|
5329
5346
|
function InputColorSwatch() {
|
|
5330
|
-
return
|
|
5347
|
+
return jsxRuntimeExports.jsx($251c695a52d94a8d$export$cae13e90592f246a, {
|
|
5331
5348
|
className: styles.swatch,
|
|
5332
5349
|
style: ({ color }) => ({
|
|
5333
5350
|
background: `
|
|
@@ -31,13 +31,14 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
34
|
+
const jsxRuntime = require("../__chunks__/jsx-runtime-CH1d66I3.js");
|
|
34
35
|
const React = require("react");
|
|
35
|
-
const EasyPostLogo = require("../__chunks__/EasyPostLogo-
|
|
36
|
-
const HorizontalStack = require("../__chunks__/HorizontalStack-
|
|
37
|
-
const Text = require("../__chunks__/Text-
|
|
38
|
-
const Icon = require("../__chunks__/Icon-
|
|
36
|
+
const EasyPostLogo = require("../__chunks__/EasyPostLogo-D3WNdZ29.js");
|
|
37
|
+
const HorizontalStack = require("../__chunks__/HorizontalStack-DidoI4Ks.js");
|
|
38
|
+
const Text = require("../__chunks__/Text-C4CEsglh.js");
|
|
39
|
+
const Icon = require("../__chunks__/Icon-BVa5ddiD.js");
|
|
39
40
|
const Button = require("../__chunks__/Button-BpQFyL49.js");
|
|
40
|
-
const Menu = require("../__chunks__/Menu-
|
|
41
|
+
const Menu = require("../__chunks__/Menu-Du8SsMeJ.js");
|
|
41
42
|
const utilities_css = require("../utilities/css.js");
|
|
42
43
|
const useFocusRing = require("../__chunks__/useFocusRing-DbC9E5wC.js");
|
|
43
44
|
const mergeProps = require("../__chunks__/mergeProps-DLPcevok.js");
|
|
@@ -116,11 +117,12 @@ const styles$1 = {
|
|
|
116
117
|
};
|
|
117
118
|
function CustomerPortalLayoutActions(props) {
|
|
118
119
|
const { children } = props;
|
|
119
|
-
return
|
|
120
|
+
return jsxRuntime.jsxRuntimeExports.jsx(HorizontalStack.HorizontalStack, {
|
|
120
121
|
wrap: false,
|
|
121
122
|
gap: "1",
|
|
122
|
-
align: "end"
|
|
123
|
-
|
|
123
|
+
align: "end",
|
|
124
|
+
children
|
|
125
|
+
});
|
|
124
126
|
}
|
|
125
127
|
function CustomerPortalLayoutMenuAction(props) {
|
|
126
128
|
const { accessibilityLabel = "Actions", iconSymbol, children, renderBadge } = props;
|
|
@@ -131,18 +133,25 @@ function CustomerPortalLayoutMenuAction(props) {
|
|
|
131
133
|
const { focusProps, isFocusVisible } = useFocusRing.$f7dceffc5ad7768b$export$4e328f61c538687f({});
|
|
132
134
|
const { hoverProps, isHovered } = useHover.$6179b936705e76d3$export$ae780daf29e6d456({});
|
|
133
135
|
const className = utilities_css.classNames(styles$1.button, isFocusVisible && styles$1.focused, isHovered && styles$1.hovered, isOpen && styles$1.open);
|
|
134
|
-
return
|
|
136
|
+
return jsxRuntime.jsxRuntimeExports.jsxs(Menu.Menu, {
|
|
135
137
|
isOpen,
|
|
136
|
-
onOpenChange: handleOpenChange
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
138
|
+
onOpenChange: handleOpenChange,
|
|
139
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Menu.Menu.Trigger, {
|
|
140
|
+
children: jsxRuntime.jsxRuntimeExports.jsxs(PressableButton, __spreadProps(__spreadValues({
|
|
141
|
+
className
|
|
142
|
+
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(focusProps, hoverProps)), {
|
|
143
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
144
|
+
visuallyHidden: true,
|
|
145
|
+
children: accessibilityLabel
|
|
146
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Icon.Icon, {
|
|
147
|
+
symbol: iconSymbol
|
|
148
|
+
}), renderBadge && jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
149
|
+
className: styles$1.badgeContainer,
|
|
150
|
+
children: renderBadge()
|
|
151
|
+
})]
|
|
152
|
+
}))
|
|
153
|
+
}), children]
|
|
154
|
+
});
|
|
146
155
|
}
|
|
147
156
|
function CustomerPortalLayoutLinkAction(props) {
|
|
148
157
|
const { accessibilityLabel = "Actions", iconSymbol, renderBadge, isSelected } = props;
|
|
@@ -151,44 +160,52 @@ function CustomerPortalLayoutLinkAction(props) {
|
|
|
151
160
|
const { focusProps, isFocusVisible } = useFocusRing.$f7dceffc5ad7768b$export$4e328f61c538687f(props);
|
|
152
161
|
const { hoverProps, isHovered } = useHover.$6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
153
162
|
const className = utilities_css.classNames(styles$1.button, isFocusVisible && styles$1.focused, isHovered && styles$1.hovered, isSelected && styles$1.selected);
|
|
154
|
-
return
|
|
163
|
+
return jsxRuntime.jsxRuntimeExports.jsxs("a", __spreadProps(__spreadValues({
|
|
155
164
|
ref,
|
|
156
165
|
className
|
|
157
166
|
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
158
|
-
"aria-current": isSelected ? "true" : void 0
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
167
|
+
"aria-current": isSelected ? "true" : void 0,
|
|
168
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
169
|
+
visuallyHidden: true,
|
|
170
|
+
children: accessibilityLabel
|
|
171
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Icon.Icon, {
|
|
172
|
+
symbol: iconSymbol
|
|
173
|
+
}), renderBadge && jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
174
|
+
className: styles$1.badgeContainer,
|
|
175
|
+
children: renderBadge()
|
|
176
|
+
})]
|
|
177
|
+
}));
|
|
166
178
|
}
|
|
167
179
|
function CustomerPortalLayoutButtonAction(props) {
|
|
168
180
|
const _a = props, { accessibilityLabel = "Actions", iconSymbol, renderBadge, isSelected } = _a, buttonProps = __objRest(_a, ["accessibilityLabel", "iconSymbol", "renderBadge", "isSelected"]);
|
|
169
181
|
const ref = React.useRef(null);
|
|
170
182
|
const className = utilities_css.classNames(styles$1.button, isSelected && styles$1.selected);
|
|
171
|
-
return
|
|
183
|
+
return jsxRuntime.jsxRuntimeExports.jsxs(Button.$d2b4bc8c273e7be6$export$353f5b6fc5456de1, __spreadProps(__spreadValues({
|
|
172
184
|
ref,
|
|
173
185
|
className,
|
|
174
186
|
"aria-current": isSelected ? "true" : void 0
|
|
175
|
-
}, buttonProps),
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
187
|
+
}, buttonProps), {
|
|
188
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
189
|
+
visuallyHidden: true,
|
|
190
|
+
children: accessibilityLabel
|
|
191
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Icon.Icon, {
|
|
192
|
+
symbol: iconSymbol
|
|
193
|
+
}), renderBadge && jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
194
|
+
className: styles$1.badgeContainer,
|
|
195
|
+
children: renderBadge()
|
|
196
|
+
})]
|
|
197
|
+
}));
|
|
182
198
|
}
|
|
183
199
|
function CustomerPortalLayoutActionBadge(props) {
|
|
184
200
|
const { children } = props;
|
|
185
|
-
return
|
|
186
|
-
className: styles$1.badge
|
|
187
|
-
|
|
201
|
+
return jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
202
|
+
className: styles$1.badge,
|
|
203
|
+
children
|
|
204
|
+
});
|
|
188
205
|
}
|
|
189
206
|
const PressableButton = React.forwardRef((props, ref) => {
|
|
190
207
|
const { pressProps } = usePress.$f6c31cce2adf654f$export$45712eceda6fad21(props);
|
|
191
|
-
return
|
|
208
|
+
return jsxRuntime.jsxRuntimeExports.jsx("button", __spreadProps(__spreadValues({}, pressProps), {
|
|
192
209
|
ref,
|
|
193
210
|
className: utilities_css.classNames(pressProps.className)
|
|
194
211
|
}));
|
|
@@ -224,58 +241,70 @@ function CustomerPortalLayout(props) {
|
|
|
224
241
|
shouldDisplayEasyPostLogo
|
|
225
242
|
};
|
|
226
243
|
}, [mode, shouldDisplayEasyPostLogo]);
|
|
227
|
-
return
|
|
228
|
-
value: context
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
244
|
+
return jsxRuntime.jsxRuntimeExports.jsx(CustomerPortalLayoutContext.Provider, {
|
|
245
|
+
value: context,
|
|
246
|
+
children: jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
247
|
+
className: styles.CustomerPortalLayout,
|
|
248
|
+
children
|
|
249
|
+
})
|
|
250
|
+
});
|
|
232
251
|
}
|
|
233
252
|
function TestModeBanner() {
|
|
234
|
-
return
|
|
235
|
-
className: styles.testModeBanner
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
253
|
+
return jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
254
|
+
className: styles.testModeBanner,
|
|
255
|
+
children: jsxRuntime.jsxRuntimeExports.jsxs(HorizontalStack.HorizontalStack, {
|
|
256
|
+
gap: "1",
|
|
257
|
+
blockAlign: "center",
|
|
258
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Icon.Icon, {
|
|
259
|
+
symbol: Experiment,
|
|
260
|
+
color: "primary.700",
|
|
261
|
+
size: "lg"
|
|
262
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
263
|
+
variant: "subtitle1",
|
|
264
|
+
color: "warning.900",
|
|
265
|
+
children: "This Environment is in Test Mode"
|
|
266
|
+
})]
|
|
267
|
+
})
|
|
268
|
+
});
|
|
247
269
|
}
|
|
248
270
|
function CustomerPortalLayoutHeader(props) {
|
|
249
271
|
const { children } = props;
|
|
250
272
|
const { mode } = useCustomerPortalLayout();
|
|
251
273
|
const isTestMode = mode === "test";
|
|
252
|
-
return
|
|
253
|
-
className: styles.header
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
274
|
+
return jsxRuntime.jsxRuntimeExports.jsxs("header", {
|
|
275
|
+
className: styles.header,
|
|
276
|
+
children: [isTestMode && jsxRuntime.jsxRuntimeExports.jsx(TestModeBanner, {}), jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
277
|
+
className: styles.logoAndActions,
|
|
278
|
+
children
|
|
279
|
+
})]
|
|
280
|
+
});
|
|
257
281
|
}
|
|
258
282
|
function CustomerPortalLayoutLogo(props) {
|
|
259
283
|
const { children } = props;
|
|
260
|
-
return
|
|
261
|
-
className: styles.logo
|
|
262
|
-
|
|
284
|
+
return jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
285
|
+
className: styles.logo,
|
|
286
|
+
children
|
|
287
|
+
});
|
|
263
288
|
}
|
|
264
289
|
function CustomerPortalLayoutLogoContainer(props) {
|
|
265
290
|
const { children } = props;
|
|
266
291
|
const { shouldDisplayEasyPostLogo } = useCustomerPortalLayout();
|
|
267
|
-
return
|
|
292
|
+
return jsxRuntime.jsxRuntimeExports.jsxs(HorizontalStack.HorizontalStack, {
|
|
268
293
|
gap: "1",
|
|
269
294
|
blockAlign: "center",
|
|
270
295
|
align: "start",
|
|
271
|
-
wrap: false
|
|
272
|
-
|
|
296
|
+
wrap: false,
|
|
297
|
+
children: [shouldDisplayEasyPostLogo && jsxRuntime.jsxRuntimeExports.jsx(CustomerPortalLayoutLogo, {
|
|
298
|
+
children: jsxRuntime.jsxRuntimeExports.jsx(EasyPostLogo.EasyPostLogo, {})
|
|
299
|
+
}), children]
|
|
300
|
+
});
|
|
273
301
|
}
|
|
274
302
|
function CustomerPortalLayoutContent(props) {
|
|
275
303
|
const { children } = props;
|
|
276
|
-
return
|
|
277
|
-
className: styles.content
|
|
278
|
-
|
|
304
|
+
return jsxRuntime.jsxRuntimeExports.jsx("main", {
|
|
305
|
+
className: styles.content,
|
|
306
|
+
children
|
|
307
|
+
});
|
|
279
308
|
}
|
|
280
309
|
CustomerPortalLayout.Header = CustomerPortalLayoutHeader;
|
|
281
310
|
CustomerPortalLayout.Logo = CustomerPortalLayoutLogo;
|