@easypost/easy-ui 1.0.0-alpha.92 → 1.0.0-alpha.94
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/Button/Button.d.ts.map +1 -1
- package/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/CHANGELOG.md +18 -0
- package/FocusedProductLayout/index.js +1 -1
- package/FocusedProductLayout/index.mjs +1 -1
- package/Modal/Modal.d.ts +1 -1
- package/Modal/Modal.d.ts.map +1 -1
- package/Modal/Modal.stories.d.ts +1 -0
- package/Modal/Modal.stories.d.ts.map +1 -1
- package/Modal/ModalContainer.d.ts.map +1 -1
- package/Modal/index.js +18 -20
- package/Modal/index.mjs +18 -20
- package/ProductLayout/index.js +1 -1
- package/ProductLayout/index.mjs +1 -1
- package/SearchNav/index.js +1 -1
- package/SearchNav/index.mjs +1 -1
- package/__chunks__/{Button--4bR8jiH.js → Button-852xZ4Ws.js} +6 -3
- package/__chunks__/{Button-DweJ2JfF.mjs → Button-BUkrUXzg.mjs} +6 -3
- package/package.json +2 -2
- package/style.css +29 -22
package/Button/Button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AACpE,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG;IAC1C,mBAAmB;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,qBAAqB;IACrB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,kBAAkB;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,sBAAsB;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,eAAO,MAAM,MAAM;IAnFjB,mBAAmB;YACX,WAAW;IACnB,qBAAqB;cACX,aAAa;IACvB,kBAAkB;WACX,UAAU;IACjB,sBAAsB;iBACT,OAAO;IACpB,6CAA6C;cACnC,OAAO;IACjB,4CAA4C;kBAC9B,UAAU;IACxB,2CAA2C;gBAC/B,UAAU;IACtB,6BAA6B;eAClB,SAAS;IACpB,yBAAyB;WAClB,MAAM;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AACpE,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG;IAC1C,mBAAmB;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,qBAAqB;IACrB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,kBAAkB;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,sBAAsB;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,eAAO,MAAM,MAAM;IAnFjB,mBAAmB;YACX,WAAW;IACnB,qBAAqB;cACX,aAAa;IACvB,kBAAkB;WACX,UAAU;IACjB,sBAAsB;iBACT,OAAO;IACpB,6CAA6C;cACnC,OAAO;IACjB,4CAA4C;kBAC9B,UAAU;IACxB,2CAA2C;gBAC/B,UAAU;IACtB,6BAA6B;eAClB,SAAS;IACpB,yBAAyB;WAClB,MAAM;8BAyHb,CAAC"}
|
package/Button/index.js
CHANGED
package/Button/index.mjs
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @easypost/easy-ui
|
|
2
2
|
|
|
3
|
+
## 1.0.0-alpha.94
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 6166055: feat(Modal): add nesting support
|
|
8
|
+
|
|
9
|
+
## 1.0.0-alpha.93
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 730e13a: feat: support xl size for Modal
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 9523c3d: Allow icons for sm Button and add icons
|
|
18
|
+
- Updated dependencies [9523c3d]
|
|
19
|
+
- @easypost/easy-ui-icons@1.0.0-alpha.49
|
|
20
|
+
|
|
3
21
|
## 1.0.0-alpha.92
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -37,7 +37,7 @@ const HelpMenu = require("../__chunks__/HelpMenu-BWEypFzC.js");
|
|
|
37
37
|
const ArrowBack = require("../__chunks__/ArrowBack-C_LSatif.js");
|
|
38
38
|
const Icon = require("../__chunks__/Icon-W8F9w-jS.js");
|
|
39
39
|
const Text = require("../__chunks__/Text-BXsuDbqc.js");
|
|
40
|
-
const Button = require("../__chunks__/Button
|
|
40
|
+
const Button = require("../__chunks__/Button-852xZ4Ws.js");
|
|
41
41
|
const Stepper = require("../__chunks__/Stepper-DV4cL0T9.js");
|
|
42
42
|
function Content({ children }) {
|
|
43
43
|
return React.createElement("main", null, children);
|
|
@@ -35,7 +35,7 @@ import { H as HelpMenu } from "../__chunks__/HelpMenu-CSrPwH1K.mjs";
|
|
|
35
35
|
import { A as ArrowBack } from "../__chunks__/ArrowBack-BFS-tCpV.mjs";
|
|
36
36
|
import { I as Icon } from "../__chunks__/Icon-0SN9dbwU.mjs";
|
|
37
37
|
import { T as Text } from "../__chunks__/Text-BWjD7__Y.mjs";
|
|
38
|
-
import { B as Button } from "../__chunks__/Button-
|
|
38
|
+
import { B as Button } from "../__chunks__/Button-BUkrUXzg.mjs";
|
|
39
39
|
import { S as Stepper } from "../__chunks__/Stepper-CexdatYw.mjs";
|
|
40
40
|
function Content({ children }) {
|
|
41
41
|
return React__default.createElement("main", null, children);
|
package/Modal/Modal.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ModalHeader } from "./ModalHeader";
|
|
|
5
5
|
import { ModalTrigger } from "./ModalTrigger";
|
|
6
6
|
import { ModalContainer } from "./ModalContainer";
|
|
7
7
|
import { useModalTrigger } from "./context";
|
|
8
|
-
type ModalSize = "sm" | "md" | "lg";
|
|
8
|
+
type ModalSize = "sm" | "md" | "lg" | "xl";
|
|
9
9
|
export type ModalProps = {
|
|
10
10
|
/**
|
|
11
11
|
* Content of the modal.
|
package/Modal/Modal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../src/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,SAAS,EAAmB,MAAM,OAAO,CAAC;AAGtE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAI5C,KAAK,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../src/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,SAAS,EAAmB,MAAM,OAAO,CAAC;AAGtE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAI5C,KAAK,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,qBAqCtC;yBArCe,KAAK;;;;;;AAsErB,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
|
package/Modal/Modal.stories.d.ts
CHANGED
|
@@ -12,4 +12,5 @@ export declare const Size: ModalStory;
|
|
|
12
12
|
export declare const DefaultOpen: ModalTriggerStory;
|
|
13
13
|
export declare const Controlled: ModalTriggerStory;
|
|
14
14
|
export declare const MenuTrigger: ModalTriggerStory;
|
|
15
|
+
export declare const Nested: ModalTriggerStory;
|
|
15
16
|
//# sourceMappingURL=Modal.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.stories.d.ts","sourceRoot":"","sources":["../../src/Modal/Modal.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAQlD,OAAO,EAAE,KAAK,EAAmC,MAAM,SAAS,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAI9C,KAAK,UAAU,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AACzC,KAAK,iBAAiB,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAEvD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAQ5B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,MAAM,EAAE,UAkBpB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UA6CtB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,iBA6B5B,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,UAwBlB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,iBAwBzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,iBAwBxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,iBAyBzB,CAAC"}
|
|
1
|
+
{"version":3,"file":"Modal.stories.d.ts","sourceRoot":"","sources":["../../src/Modal/Modal.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAQlD,OAAO,EAAE,KAAK,EAAmC,MAAM,SAAS,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAI9C,KAAK,UAAU,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AACzC,KAAK,iBAAiB,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAEvD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAQ5B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,MAAM,EAAE,UAkBpB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UA6CtB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,iBA6B5B,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,UAwBlB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,iBAwBzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,iBAwBxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,iBAyBzB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,iBA4FpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalContainer.d.ts","sourceRoot":"","sources":["../../src/Modal/ModalContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,SAAS,
|
|
1
|
+
{"version":3,"file":"ModalContainer.d.ts","sourceRoot":"","sources":["../../src/Modal/ModalContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,SAAS,EAIV,MAAM,OAAO,CAAC;AAMf,KAAK,mBAAmB,GAAG;IACzB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,qBA8CxD"}
|
package/Modal/index.js
CHANGED
|
@@ -34,7 +34,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
34
34
|
const React = require("react");
|
|
35
35
|
const utilities_css = require("../utilities/css.js");
|
|
36
36
|
const utilities_useScrollbar = require("../utilities/useScrollbar.js");
|
|
37
|
-
const Button = require("../__chunks__/Button
|
|
37
|
+
const Button = require("../__chunks__/Button-852xZ4Ws.js");
|
|
38
38
|
const Close = require("../__chunks__/Close-BQ2IlPyf.js");
|
|
39
39
|
const HorizontalStack = require("../__chunks__/HorizontalStack-CXpjASZi.js");
|
|
40
40
|
const Icon = require("../__chunks__/Icon-W8F9w-jS.js");
|
|
@@ -65,20 +65,21 @@ const useModalTrigger = () => {
|
|
|
65
65
|
const modalTriggerContext = useModalTriggerContext();
|
|
66
66
|
return modalTriggerContext.state;
|
|
67
67
|
};
|
|
68
|
-
const underlayBg = "
|
|
69
|
-
const underlayBox = "
|
|
70
|
-
const underlayEdge = "
|
|
71
|
-
const Modal$1 = "
|
|
72
|
-
const header = "
|
|
73
|
-
const stuck = "
|
|
74
|
-
const body = "
|
|
75
|
-
const content = "
|
|
76
|
-
const footer = "
|
|
77
|
-
const closeBtn = "
|
|
78
|
-
const iconAtEnd = "
|
|
79
|
-
const sizeSm = "
|
|
80
|
-
const sizeMd = "
|
|
81
|
-
const sizeLg = "
|
|
68
|
+
const underlayBg = "_underlayBg_1i8y3_4";
|
|
69
|
+
const underlayBox = "_underlayBox_1i8y3_30";
|
|
70
|
+
const underlayEdge = "_underlayEdge_1i8y3_38";
|
|
71
|
+
const Modal$1 = "_Modal_1i8y3_44";
|
|
72
|
+
const header = "_header_1i8y3_62";
|
|
73
|
+
const stuck = "_stuck_1i8y3_68";
|
|
74
|
+
const body = "_body_1i8y3_72";
|
|
75
|
+
const content = "_content_1i8y3_79";
|
|
76
|
+
const footer = "_footer_1i8y3_96";
|
|
77
|
+
const closeBtn = "_closeBtn_1i8y3_113";
|
|
78
|
+
const iconAtEnd = "_iconAtEnd_1i8y3_127";
|
|
79
|
+
const sizeSm = "_sizeSm_1i8y3_133";
|
|
80
|
+
const sizeMd = "_sizeMd_1i8y3_137";
|
|
81
|
+
const sizeLg = "_sizeLg_1i8y3_141";
|
|
82
|
+
const sizeXl = "_sizeXl_1i8y3_145";
|
|
82
83
|
const styles = {
|
|
83
84
|
underlayBg,
|
|
84
85
|
underlayBox,
|
|
@@ -93,7 +94,8 @@ const styles = {
|
|
|
93
94
|
iconAtEnd,
|
|
94
95
|
sizeSm,
|
|
95
96
|
sizeMd,
|
|
96
|
-
sizeLg
|
|
97
|
+
sizeLg,
|
|
98
|
+
sizeXl
|
|
97
99
|
};
|
|
98
100
|
function ModalBody(props) {
|
|
99
101
|
const { children } = props;
|
|
@@ -211,10 +213,6 @@ function ModalTrigger(props) {
|
|
|
211
213
|
function ModalContainer(props) {
|
|
212
214
|
const { children, isDismissable = true, onDismiss = () => {
|
|
213
215
|
} } = props;
|
|
214
|
-
const existingModalTriggerContext = React.useContext(ModalTriggerContext);
|
|
215
|
-
if (existingModalTriggerContext) {
|
|
216
|
-
throw new Error("Modal.Container must be used outside of a Modal.Trigger");
|
|
217
|
-
}
|
|
218
216
|
const childArray = React.Children.toArray(children);
|
|
219
217
|
if (childArray.length > 1) {
|
|
220
218
|
throw new Error("Only a single child can be passed to ModalContainer.");
|
package/Modal/index.mjs
CHANGED
|
@@ -32,7 +32,7 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
import React__default, { createContext, useContext, useMemo, cloneElement, useState, useRef } from "react";
|
|
33
33
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
34
34
|
import { useScrollbar } from "../utilities/useScrollbar.mjs";
|
|
35
|
-
import { B as Button } from "../__chunks__/Button-
|
|
35
|
+
import { B as Button } from "../__chunks__/Button-BUkrUXzg.mjs";
|
|
36
36
|
import { C as Close } from "../__chunks__/Close-Cq6Q6MN6.mjs";
|
|
37
37
|
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-CxE8tPx_.mjs";
|
|
38
38
|
import { I as Icon } from "../__chunks__/Icon-0SN9dbwU.mjs";
|
|
@@ -63,20 +63,21 @@ const useModalTrigger = () => {
|
|
|
63
63
|
const modalTriggerContext = useModalTriggerContext();
|
|
64
64
|
return modalTriggerContext.state;
|
|
65
65
|
};
|
|
66
|
-
const underlayBg = "
|
|
67
|
-
const underlayBox = "
|
|
68
|
-
const underlayEdge = "
|
|
69
|
-
const Modal$1 = "
|
|
70
|
-
const header = "
|
|
71
|
-
const stuck = "
|
|
72
|
-
const body = "
|
|
73
|
-
const content = "
|
|
74
|
-
const footer = "
|
|
75
|
-
const closeBtn = "
|
|
76
|
-
const iconAtEnd = "
|
|
77
|
-
const sizeSm = "
|
|
78
|
-
const sizeMd = "
|
|
79
|
-
const sizeLg = "
|
|
66
|
+
const underlayBg = "_underlayBg_1i8y3_4";
|
|
67
|
+
const underlayBox = "_underlayBox_1i8y3_30";
|
|
68
|
+
const underlayEdge = "_underlayEdge_1i8y3_38";
|
|
69
|
+
const Modal$1 = "_Modal_1i8y3_44";
|
|
70
|
+
const header = "_header_1i8y3_62";
|
|
71
|
+
const stuck = "_stuck_1i8y3_68";
|
|
72
|
+
const body = "_body_1i8y3_72";
|
|
73
|
+
const content = "_content_1i8y3_79";
|
|
74
|
+
const footer = "_footer_1i8y3_96";
|
|
75
|
+
const closeBtn = "_closeBtn_1i8y3_113";
|
|
76
|
+
const iconAtEnd = "_iconAtEnd_1i8y3_127";
|
|
77
|
+
const sizeSm = "_sizeSm_1i8y3_133";
|
|
78
|
+
const sizeMd = "_sizeMd_1i8y3_137";
|
|
79
|
+
const sizeLg = "_sizeLg_1i8y3_141";
|
|
80
|
+
const sizeXl = "_sizeXl_1i8y3_145";
|
|
80
81
|
const styles = {
|
|
81
82
|
underlayBg,
|
|
82
83
|
underlayBox,
|
|
@@ -91,7 +92,8 @@ const styles = {
|
|
|
91
92
|
iconAtEnd,
|
|
92
93
|
sizeSm,
|
|
93
94
|
sizeMd,
|
|
94
|
-
sizeLg
|
|
95
|
+
sizeLg,
|
|
96
|
+
sizeXl
|
|
95
97
|
};
|
|
96
98
|
function ModalBody(props) {
|
|
97
99
|
const { children } = props;
|
|
@@ -209,10 +211,6 @@ function ModalTrigger(props) {
|
|
|
209
211
|
function ModalContainer(props) {
|
|
210
212
|
const { children, isDismissable = true, onDismiss = () => {
|
|
211
213
|
} } = props;
|
|
212
|
-
const existingModalTriggerContext = useContext(ModalTriggerContext);
|
|
213
|
-
if (existingModalTriggerContext) {
|
|
214
|
-
throw new Error("Modal.Container must be used outside of a Modal.Trigger");
|
|
215
|
-
}
|
|
216
214
|
const childArray = React__default.Children.toArray(children);
|
|
217
215
|
if (childArray.length > 1) {
|
|
218
216
|
throw new Error("Only a single child can be passed to ModalContainer.");
|
package/ProductLayout/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var __objRest = (source, exclude) => {
|
|
|
33
33
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
34
34
|
const React = require("react");
|
|
35
35
|
const Menu = require("../__chunks__/Menu-OacI_98l.js");
|
|
36
|
-
const Button = require("../__chunks__/Button
|
|
36
|
+
const Button = require("../__chunks__/Button-852xZ4Ws.js");
|
|
37
37
|
const Icon = require("../__chunks__/Icon-W8F9w-jS.js");
|
|
38
38
|
const Text = require("../__chunks__/Text-BXsuDbqc.js");
|
|
39
39
|
const UnstyledButton = require("../__chunks__/UnstyledButton-DaRYVyfB.js");
|
package/ProductLayout/index.mjs
CHANGED
|
@@ -31,7 +31,7 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
};
|
|
32
32
|
import React__default, { useEffect, createContext, useContext, useCallback, useRef, useMemo } from "react";
|
|
33
33
|
import { M as Menu } from "../__chunks__/Menu-qMqvSorL.mjs";
|
|
34
|
-
import { B as Button } from "../__chunks__/Button-
|
|
34
|
+
import { B as Button } from "../__chunks__/Button-BUkrUXzg.mjs";
|
|
35
35
|
import { I as Icon } from "../__chunks__/Icon-0SN9dbwU.mjs";
|
|
36
36
|
import { T as Text } from "../__chunks__/Text-BWjD7__Y.mjs";
|
|
37
37
|
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-CbCwVIkK.mjs";
|
package/SearchNav/index.js
CHANGED
|
@@ -45,7 +45,7 @@ const Close = require("../__chunks__/Close-BQ2IlPyf.js");
|
|
|
45
45
|
const Menu$1 = require("../__chunks__/Menu-OacI_98l.js");
|
|
46
46
|
const Search$1 = require("../__chunks__/Search-BY7IgEyX.js");
|
|
47
47
|
const HorizontalStack = require("../__chunks__/HorizontalStack-CXpjASZi.js");
|
|
48
|
-
const Button = require("../__chunks__/Button
|
|
48
|
+
const Button = require("../__chunks__/Button-852xZ4Ws.js");
|
|
49
49
|
function _interopNamespaceDefault(e) {
|
|
50
50
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
51
51
|
if (e) {
|
package/SearchNav/index.mjs
CHANGED
|
@@ -44,7 +44,7 @@ import { C as Close } from "../__chunks__/Close-Cq6Q6MN6.mjs";
|
|
|
44
44
|
import { M as Menu$1 } from "../__chunks__/Menu-qMqvSorL.mjs";
|
|
45
45
|
import { S as Search$1 } from "../__chunks__/Search-Cyblmqo5.mjs";
|
|
46
46
|
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-CxE8tPx_.mjs";
|
|
47
|
-
import { B as Button } from "../__chunks__/Button-
|
|
47
|
+
import { B as Button } from "../__chunks__/Button-BUkrUXzg.mjs";
|
|
48
48
|
const nav = "_nav_1sb0u_4";
|
|
49
49
|
const desktop = "_desktop_1sb0u_16";
|
|
50
50
|
const onlyLogoGroup = "_onlyLogoGroup_1sb0u_29";
|
|
@@ -76,8 +76,9 @@ const Button = React.forwardRef((props, inRef) => {
|
|
|
76
76
|
if (bothIconPropsDefined) {
|
|
77
77
|
console.warn("Cannot simultaneously define `iconAtEnd` and `iconAtStart`");
|
|
78
78
|
}
|
|
79
|
-
const canUseIcon = (iconAtEnd2 || iconAtStart2) && !bothIconPropsDefined && variant !== "link"
|
|
79
|
+
const canUseIcon = (iconAtEnd2 || iconAtStart2) && !bothIconPropsDefined && variant !== "link";
|
|
80
80
|
UnstyledButton.logWarningIfInvalidColorVariantCombination(color, variant);
|
|
81
|
+
const iconSize = size === "sm" ? "xs" : "md";
|
|
81
82
|
return React.createElement(UnstyledButton.UnstyledButton, __spreadProps(__spreadValues({
|
|
82
83
|
isDisabled,
|
|
83
84
|
ref: inRef,
|
|
@@ -85,11 +86,13 @@ const Button = React.forwardRef((props, inRef) => {
|
|
|
85
86
|
}, restProps), {
|
|
86
87
|
className: utilities_css.classNames(styles.Button, styles[utilities_css.variationName("color", color)], styles[utilities_css.variationName("variant", variant)], styles[utilities_css.variationName("size", size)], isBlock && styles.block)
|
|
87
88
|
}), iconAtStart2 && canUseIcon && React.createElement(Icon.Icon, {
|
|
88
|
-
symbol: iconAtStart2
|
|
89
|
+
symbol: iconAtStart2,
|
|
90
|
+
size: iconSize
|
|
89
91
|
}), React.createElement("span", {
|
|
90
92
|
className: utilities_css.classNames(iconAtStart2 && canUseIcon && styles.iconAtStart, iconAtEnd2 && canUseIcon && styles.iconAtEnd)
|
|
91
93
|
}, children), iconAtEnd2 && canUseIcon && React.createElement(Icon.Icon, {
|
|
92
|
-
symbol: iconAtEnd2
|
|
94
|
+
symbol: iconAtEnd2,
|
|
95
|
+
size: iconSize
|
|
93
96
|
}));
|
|
94
97
|
});
|
|
95
98
|
Button.displayName = "Button";
|
|
@@ -75,8 +75,9 @@ const Button = forwardRef((props, inRef) => {
|
|
|
75
75
|
if (bothIconPropsDefined) {
|
|
76
76
|
console.warn("Cannot simultaneously define `iconAtEnd` and `iconAtStart`");
|
|
77
77
|
}
|
|
78
|
-
const canUseIcon = (iconAtEnd2 || iconAtStart2) && !bothIconPropsDefined && variant !== "link"
|
|
78
|
+
const canUseIcon = (iconAtEnd2 || iconAtStart2) && !bothIconPropsDefined && variant !== "link";
|
|
79
79
|
logWarningIfInvalidColorVariantCombination(color, variant);
|
|
80
|
+
const iconSize = size === "sm" ? "xs" : "md";
|
|
80
81
|
return React__default.createElement(UnstyledButton, __spreadProps(__spreadValues({
|
|
81
82
|
isDisabled,
|
|
82
83
|
ref: inRef,
|
|
@@ -84,11 +85,13 @@ const Button = forwardRef((props, inRef) => {
|
|
|
84
85
|
}, restProps), {
|
|
85
86
|
className: classNames(styles.Button, styles[variationName("color", color)], styles[variationName("variant", variant)], styles[variationName("size", size)], isBlock && styles.block)
|
|
86
87
|
}), iconAtStart2 && canUseIcon && React__default.createElement(Icon, {
|
|
87
|
-
symbol: iconAtStart2
|
|
88
|
+
symbol: iconAtStart2,
|
|
89
|
+
size: iconSize
|
|
88
90
|
}), React__default.createElement("span", {
|
|
89
91
|
className: classNames(iconAtStart2 && canUseIcon && styles.iconAtStart, iconAtEnd2 && canUseIcon && styles.iconAtEnd)
|
|
90
92
|
}, children), iconAtEnd2 && canUseIcon && React__default.createElement(Icon, {
|
|
91
|
-
symbol: iconAtEnd2
|
|
93
|
+
symbol: iconAtEnd2,
|
|
94
|
+
size: iconSize
|
|
92
95
|
}));
|
|
93
96
|
});
|
|
94
97
|
Button.displayName = "Button";
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easypost/easy-ui",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.94",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"**/*.css"
|
|
6
6
|
],
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@easypost/easy-ui-icons": "1.0.0-alpha.
|
|
8
|
+
"@easypost/easy-ui-icons": "1.0.0-alpha.49",
|
|
9
9
|
"@easypost/easy-ui-tokens": "1.0.0-alpha.16",
|
|
10
10
|
"@react-aria/toast": "^3.0.5",
|
|
11
11
|
"@react-aria/utils": "^3.29.1",
|
package/style.css
CHANGED
|
@@ -4961,7 +4961,7 @@ textarea {
|
|
|
4961
4961
|
}/**
|
|
4962
4962
|
* Do not edit directly, this file was auto-generated.
|
|
4963
4963
|
*/
|
|
4964
|
-
.
|
|
4964
|
+
._underlayBg_1i8y3_4 {
|
|
4965
4965
|
--ezui-c-modal-underlay-edge-max-height: 72px;
|
|
4966
4966
|
--ezui-c-modal-underlay-edge-min-height: 2.5vh;
|
|
4967
4967
|
position: fixed;
|
|
@@ -4969,22 +4969,25 @@ textarea {
|
|
|
4969
4969
|
display: flex;
|
|
4970
4970
|
flex-direction: column;
|
|
4971
4971
|
}
|
|
4972
|
-
.
|
|
4972
|
+
._underlayBg_1i8y3_4::before {
|
|
4973
4973
|
content: "";
|
|
4974
4974
|
position: absolute;
|
|
4975
4975
|
background: var(--ezui-color-primary-800);
|
|
4976
4976
|
opacity: var(--ezui-opacity-underlay);
|
|
4977
4977
|
}
|
|
4978
|
+
._underlayBg_1i8y3_4[aria-hidden=true] {
|
|
4979
|
+
display: none;
|
|
4980
|
+
}
|
|
4978
4981
|
|
|
4979
|
-
.
|
|
4980
|
-
.
|
|
4982
|
+
._underlayBg_1i8y3_4,
|
|
4983
|
+
._underlayBg_1i8y3_4::before {
|
|
4981
4984
|
top: 0;
|
|
4982
4985
|
left: 0;
|
|
4983
4986
|
right: 0;
|
|
4984
4987
|
bottom: 0;
|
|
4985
4988
|
}
|
|
4986
4989
|
|
|
4987
|
-
.
|
|
4990
|
+
._underlayBox_1i8y3_30 {
|
|
4988
4991
|
position: relative;
|
|
4989
4992
|
display: flex;
|
|
4990
4993
|
flex-direction: column;
|
|
@@ -4992,13 +4995,13 @@ textarea {
|
|
|
4992
4995
|
pointer-events: none;
|
|
4993
4996
|
}
|
|
4994
4997
|
|
|
4995
|
-
.
|
|
4998
|
+
._underlayEdge_1i8y3_38 {
|
|
4996
4999
|
flex: 0 9 auto;
|
|
4997
5000
|
height: var(--ezui-c-modal-underlay-edge-max-height);
|
|
4998
5001
|
min-height: var(--ezui-c-modal-underlay-edge-min-height);
|
|
4999
5002
|
}
|
|
5000
5003
|
|
|
5001
|
-
.
|
|
5004
|
+
._Modal_1i8y3_44 {
|
|
5002
5005
|
--ezui-c-modal-max-height: 762px;
|
|
5003
5006
|
--ezui-c-modal-width: 95vw;
|
|
5004
5007
|
flex: 0 1 auto;
|
|
@@ -5016,41 +5019,41 @@ textarea {
|
|
|
5016
5019
|
outline: none;
|
|
5017
5020
|
}
|
|
5018
5021
|
|
|
5019
|
-
.
|
|
5022
|
+
._header_1i8y3_62 {
|
|
5020
5023
|
margin: 0;
|
|
5021
5024
|
padding: var(--ezui-space-5);
|
|
5022
5025
|
padding-bottom: var(--ezui-space-2);
|
|
5023
5026
|
color: var(--ezui-color-primary-800);
|
|
5024
5027
|
}
|
|
5025
|
-
.
|
|
5028
|
+
._header_1i8y3_62._stuck_1i8y3_68 {
|
|
5026
5029
|
box-shadow: var(--ezui-shadow-stuck-from-top);
|
|
5027
5030
|
}
|
|
5028
5031
|
|
|
5029
|
-
.
|
|
5032
|
+
._body_1i8y3_72 {
|
|
5030
5033
|
overflow: auto;
|
|
5031
5034
|
display: flex;
|
|
5032
5035
|
flex-direction: column;
|
|
5033
5036
|
overscroll-behavior: contain;
|
|
5034
5037
|
}
|
|
5035
5038
|
|
|
5036
|
-
.
|
|
5039
|
+
._content_1i8y3_79 {
|
|
5037
5040
|
padding: 0 var(--ezui-space-5);
|
|
5038
5041
|
position: relative;
|
|
5039
5042
|
}
|
|
5040
|
-
.
|
|
5043
|
+
._content_1i8y3_79 [data-intercept] {
|
|
5041
5044
|
position: absolute;
|
|
5042
5045
|
left: 0;
|
|
5043
5046
|
width: 1px;
|
|
5044
5047
|
height: 1px;
|
|
5045
5048
|
}
|
|
5046
|
-
.
|
|
5049
|
+
._content_1i8y3_79 [data-intercept="header"] {
|
|
5047
5050
|
top: 0;
|
|
5048
5051
|
}
|
|
5049
|
-
.
|
|
5052
|
+
._content_1i8y3_79 [data-intercept="footer"] {
|
|
5050
5053
|
bottom: 0;
|
|
5051
5054
|
}
|
|
5052
5055
|
|
|
5053
|
-
.
|
|
5056
|
+
._footer_1i8y3_96 {
|
|
5054
5057
|
display: flex;
|
|
5055
5058
|
flex-direction: column;
|
|
5056
5059
|
justify-content: flex-end;
|
|
@@ -5059,15 +5062,15 @@ textarea {
|
|
|
5059
5062
|
padding-top: var(--ezui-space-3);
|
|
5060
5063
|
}
|
|
5061
5064
|
@media (min-width: 30em) {
|
|
5062
|
-
.
|
|
5065
|
+
._footer_1i8y3_96 {
|
|
5063
5066
|
flex-direction: row;
|
|
5064
5067
|
}
|
|
5065
5068
|
}
|
|
5066
|
-
.
|
|
5069
|
+
._footer_1i8y3_96._stuck_1i8y3_68 {
|
|
5067
5070
|
box-shadow: var(--ezui-shadow-stuck-from-bottom);
|
|
5068
5071
|
}
|
|
5069
5072
|
|
|
5070
|
-
.
|
|
5073
|
+
._closeBtn_1i8y3_113 {
|
|
5071
5074
|
appearance: none;
|
|
5072
5075
|
margin: 0;
|
|
5073
5076
|
padding: 0;
|
|
@@ -5081,22 +5084,26 @@ textarea {
|
|
|
5081
5084
|
cursor: pointer;
|
|
5082
5085
|
}
|
|
5083
5086
|
|
|
5084
|
-
.
|
|
5087
|
+
._iconAtEnd_1i8y3_127[data-size="2xl"] {
|
|
5085
5088
|
display: inline-flex;
|
|
5086
5089
|
margin-top: -5px;
|
|
5087
5090
|
margin-bottom: -5px;
|
|
5088
5091
|
}
|
|
5089
5092
|
|
|
5090
|
-
.
|
|
5093
|
+
._sizeSm_1i8y3_133 {
|
|
5091
5094
|
--ezui-c-modal-max-width: 528px;
|
|
5092
5095
|
}
|
|
5093
5096
|
|
|
5094
|
-
.
|
|
5097
|
+
._sizeMd_1i8y3_137 {
|
|
5095
5098
|
--ezui-c-modal-max-width: 672px;
|
|
5096
5099
|
}
|
|
5097
5100
|
|
|
5098
|
-
.
|
|
5101
|
+
._sizeLg_1i8y3_141 {
|
|
5099
5102
|
--ezui-c-modal-max-width: 788px;
|
|
5103
|
+
}
|
|
5104
|
+
|
|
5105
|
+
._sizeXl_1i8y3_145 {
|
|
5106
|
+
--ezui-c-modal-max-width: 1000px;
|
|
5100
5107
|
}/**
|
|
5101
5108
|
* Do not edit directly, this file was auto-generated.
|
|
5102
5109
|
*/
|