@easypost/easy-ui 1.0.0-alpha.91 → 1.0.0-alpha.93
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 +19 -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/index.js +18 -16
- package/Modal/index.mjs +18 -16
- 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 +26 -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,24 @@
|
|
|
1
1
|
# @easypost/easy-ui
|
|
2
2
|
|
|
3
|
+
## 1.0.0-alpha.93
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 730e13a: feat: support xl size for Modal
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 9523c3d: Allow icons for sm Button and add icons
|
|
12
|
+
- Updated dependencies [9523c3d]
|
|
13
|
+
- @easypost/easy-ui-icons@1.0.0-alpha.49
|
|
14
|
+
|
|
15
|
+
## 1.0.0-alpha.92
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [252b542]
|
|
20
|
+
- @easypost/easy-ui-icons@1.0.0-alpha.48
|
|
21
|
+
|
|
3
22
|
## 1.0.0-alpha.91
|
|
4
23
|
|
|
5
24
|
### 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/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_12m01_4";
|
|
69
|
+
const underlayBox = "_underlayBox_12m01_27";
|
|
70
|
+
const underlayEdge = "_underlayEdge_12m01_35";
|
|
71
|
+
const Modal$1 = "_Modal_12m01_41";
|
|
72
|
+
const header = "_header_12m01_59";
|
|
73
|
+
const stuck = "_stuck_12m01_65";
|
|
74
|
+
const body = "_body_12m01_69";
|
|
75
|
+
const content = "_content_12m01_76";
|
|
76
|
+
const footer = "_footer_12m01_93";
|
|
77
|
+
const closeBtn = "_closeBtn_12m01_110";
|
|
78
|
+
const iconAtEnd = "_iconAtEnd_12m01_124";
|
|
79
|
+
const sizeSm = "_sizeSm_12m01_130";
|
|
80
|
+
const sizeMd = "_sizeMd_12m01_134";
|
|
81
|
+
const sizeLg = "_sizeLg_12m01_138";
|
|
82
|
+
const sizeXl = "_sizeXl_12m01_142";
|
|
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;
|
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_12m01_4";
|
|
67
|
+
const underlayBox = "_underlayBox_12m01_27";
|
|
68
|
+
const underlayEdge = "_underlayEdge_12m01_35";
|
|
69
|
+
const Modal$1 = "_Modal_12m01_41";
|
|
70
|
+
const header = "_header_12m01_59";
|
|
71
|
+
const stuck = "_stuck_12m01_65";
|
|
72
|
+
const body = "_body_12m01_69";
|
|
73
|
+
const content = "_content_12m01_76";
|
|
74
|
+
const footer = "_footer_12m01_93";
|
|
75
|
+
const closeBtn = "_closeBtn_12m01_110";
|
|
76
|
+
const iconAtEnd = "_iconAtEnd_12m01_124";
|
|
77
|
+
const sizeSm = "_sizeSm_12m01_130";
|
|
78
|
+
const sizeMd = "_sizeMd_12m01_134";
|
|
79
|
+
const sizeLg = "_sizeLg_12m01_138";
|
|
80
|
+
const sizeXl = "_sizeXl_12m01_142";
|
|
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;
|
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.93",
|
|
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_12m01_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,22 @@ textarea {
|
|
|
4969
4969
|
display: flex;
|
|
4970
4970
|
flex-direction: column;
|
|
4971
4971
|
}
|
|
4972
|
-
.
|
|
4972
|
+
._underlayBg_12m01_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
4978
|
|
|
4979
|
-
.
|
|
4980
|
-
.
|
|
4979
|
+
._underlayBg_12m01_4,
|
|
4980
|
+
._underlayBg_12m01_4::before {
|
|
4981
4981
|
top: 0;
|
|
4982
4982
|
left: 0;
|
|
4983
4983
|
right: 0;
|
|
4984
4984
|
bottom: 0;
|
|
4985
4985
|
}
|
|
4986
4986
|
|
|
4987
|
-
.
|
|
4987
|
+
._underlayBox_12m01_27 {
|
|
4988
4988
|
position: relative;
|
|
4989
4989
|
display: flex;
|
|
4990
4990
|
flex-direction: column;
|
|
@@ -4992,13 +4992,13 @@ textarea {
|
|
|
4992
4992
|
pointer-events: none;
|
|
4993
4993
|
}
|
|
4994
4994
|
|
|
4995
|
-
.
|
|
4995
|
+
._underlayEdge_12m01_35 {
|
|
4996
4996
|
flex: 0 9 auto;
|
|
4997
4997
|
height: var(--ezui-c-modal-underlay-edge-max-height);
|
|
4998
4998
|
min-height: var(--ezui-c-modal-underlay-edge-min-height);
|
|
4999
4999
|
}
|
|
5000
5000
|
|
|
5001
|
-
.
|
|
5001
|
+
._Modal_12m01_41 {
|
|
5002
5002
|
--ezui-c-modal-max-height: 762px;
|
|
5003
5003
|
--ezui-c-modal-width: 95vw;
|
|
5004
5004
|
flex: 0 1 auto;
|
|
@@ -5016,41 +5016,41 @@ textarea {
|
|
|
5016
5016
|
outline: none;
|
|
5017
5017
|
}
|
|
5018
5018
|
|
|
5019
|
-
.
|
|
5019
|
+
._header_12m01_59 {
|
|
5020
5020
|
margin: 0;
|
|
5021
5021
|
padding: var(--ezui-space-5);
|
|
5022
5022
|
padding-bottom: var(--ezui-space-2);
|
|
5023
5023
|
color: var(--ezui-color-primary-800);
|
|
5024
5024
|
}
|
|
5025
|
-
.
|
|
5025
|
+
._header_12m01_59._stuck_12m01_65 {
|
|
5026
5026
|
box-shadow: var(--ezui-shadow-stuck-from-top);
|
|
5027
5027
|
}
|
|
5028
5028
|
|
|
5029
|
-
.
|
|
5029
|
+
._body_12m01_69 {
|
|
5030
5030
|
overflow: auto;
|
|
5031
5031
|
display: flex;
|
|
5032
5032
|
flex-direction: column;
|
|
5033
5033
|
overscroll-behavior: contain;
|
|
5034
5034
|
}
|
|
5035
5035
|
|
|
5036
|
-
.
|
|
5036
|
+
._content_12m01_76 {
|
|
5037
5037
|
padding: 0 var(--ezui-space-5);
|
|
5038
5038
|
position: relative;
|
|
5039
5039
|
}
|
|
5040
|
-
.
|
|
5040
|
+
._content_12m01_76 [data-intercept] {
|
|
5041
5041
|
position: absolute;
|
|
5042
5042
|
left: 0;
|
|
5043
5043
|
width: 1px;
|
|
5044
5044
|
height: 1px;
|
|
5045
5045
|
}
|
|
5046
|
-
.
|
|
5046
|
+
._content_12m01_76 [data-intercept="header"] {
|
|
5047
5047
|
top: 0;
|
|
5048
5048
|
}
|
|
5049
|
-
.
|
|
5049
|
+
._content_12m01_76 [data-intercept="footer"] {
|
|
5050
5050
|
bottom: 0;
|
|
5051
5051
|
}
|
|
5052
5052
|
|
|
5053
|
-
.
|
|
5053
|
+
._footer_12m01_93 {
|
|
5054
5054
|
display: flex;
|
|
5055
5055
|
flex-direction: column;
|
|
5056
5056
|
justify-content: flex-end;
|
|
@@ -5059,15 +5059,15 @@ textarea {
|
|
|
5059
5059
|
padding-top: var(--ezui-space-3);
|
|
5060
5060
|
}
|
|
5061
5061
|
@media (min-width: 30em) {
|
|
5062
|
-
.
|
|
5062
|
+
._footer_12m01_93 {
|
|
5063
5063
|
flex-direction: row;
|
|
5064
5064
|
}
|
|
5065
5065
|
}
|
|
5066
|
-
.
|
|
5066
|
+
._footer_12m01_93._stuck_12m01_65 {
|
|
5067
5067
|
box-shadow: var(--ezui-shadow-stuck-from-bottom);
|
|
5068
5068
|
}
|
|
5069
5069
|
|
|
5070
|
-
.
|
|
5070
|
+
._closeBtn_12m01_110 {
|
|
5071
5071
|
appearance: none;
|
|
5072
5072
|
margin: 0;
|
|
5073
5073
|
padding: 0;
|
|
@@ -5081,22 +5081,26 @@ textarea {
|
|
|
5081
5081
|
cursor: pointer;
|
|
5082
5082
|
}
|
|
5083
5083
|
|
|
5084
|
-
.
|
|
5084
|
+
._iconAtEnd_12m01_124[data-size="2xl"] {
|
|
5085
5085
|
display: inline-flex;
|
|
5086
5086
|
margin-top: -5px;
|
|
5087
5087
|
margin-bottom: -5px;
|
|
5088
5088
|
}
|
|
5089
5089
|
|
|
5090
|
-
.
|
|
5090
|
+
._sizeSm_12m01_130 {
|
|
5091
5091
|
--ezui-c-modal-max-width: 528px;
|
|
5092
5092
|
}
|
|
5093
5093
|
|
|
5094
|
-
.
|
|
5094
|
+
._sizeMd_12m01_134 {
|
|
5095
5095
|
--ezui-c-modal-max-width: 672px;
|
|
5096
5096
|
}
|
|
5097
5097
|
|
|
5098
|
-
.
|
|
5098
|
+
._sizeLg_12m01_138 {
|
|
5099
5099
|
--ezui-c-modal-max-width: 788px;
|
|
5100
|
+
}
|
|
5101
|
+
|
|
5102
|
+
._sizeXl_12m01_142 {
|
|
5103
|
+
--ezui-c-modal-max-width: 1000px;
|
|
5100
5104
|
}/**
|
|
5101
5105
|
* Do not edit directly, this file was auto-generated.
|
|
5102
5106
|
*/
|