@easypost/easy-ui 1.0.0-alpha.122 → 1.0.0-alpha.123
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/CHANGELOG.md +7 -0
- package/SearchNav/index.js +1 -1
- package/SearchNav/index.mjs +1 -1
- package/Select/index.js +2 -2
- package/Select/index.mjs +2 -2
- package/__chunks__/{SelectOverlay-DpI9vNLw.js → SelectOverlay-Dh126Smn.js} +1 -1
- package/__chunks__/{SelectOverlay-C23EXgqX.mjs → SelectOverlay-K-ZKp0JS.mjs} +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @easypost/easy-ui
|
|
2
2
|
|
|
3
|
+
## 1.0.0-alpha.123
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 04c7aab: Select now keeps its size after you choose a value, so medium and large fields stay the same height instead of shrinking a step
|
|
8
|
+
- bb3e69e: the Select now keeps its size after you choose a value when there is no secondary text. if the selected option has secondary text, it shrinks slightly to match our Figma designs
|
|
9
|
+
|
|
3
10
|
## 1.0.0-alpha.122
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/SearchNav/index.js
CHANGED
|
@@ -39,7 +39,7 @@ const Menu = require("../__chunks__/Menu-MGDv1tob.js");
|
|
|
39
39
|
const Text = require("../__chunks__/Text-DkzMEqky.js");
|
|
40
40
|
const Icon = require("../__chunks__/Icon-BRlbo3RF.js");
|
|
41
41
|
const UnstyledButton = require("../__chunks__/UnstyledButton-DW8CjaXN.js");
|
|
42
|
-
const SelectOverlay = require("../__chunks__/SelectOverlay-
|
|
42
|
+
const SelectOverlay = require("../__chunks__/SelectOverlay-Dh126Smn.js");
|
|
43
43
|
const useTriggerWidth = require("../__chunks__/useTriggerWidth-NhYqZmlX.js");
|
|
44
44
|
const ExpandMore400 = require("../__chunks__/ExpandMore400-CJpvxyJm.js");
|
|
45
45
|
const Close = require("../__chunks__/Close-BQ2IlPyf.js");
|
package/SearchNav/index.mjs
CHANGED
|
@@ -38,7 +38,7 @@ import { M as Menu } from "../__chunks__/Menu-Ci1FGh8B.mjs";
|
|
|
38
38
|
import { T as Text } from "../__chunks__/Text-D6oT5WJQ.mjs";
|
|
39
39
|
import { I as Icon } from "../__chunks__/Icon-BIpaQJ_I.mjs";
|
|
40
40
|
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-DxJLvL-G.mjs";
|
|
41
|
-
import { u as useInternalSelectContext, $ as $bdd25dc72710631f$export$cbd84cdb2e668835, a as $2bc3a590c5373a4e$export$5159ec8b34d4ec12, b as $58aed456727eb0f3$export$e64b2f635402ca43, I as InternalSelectContext, S as SelectOverlay, d as SelectOption } from "../__chunks__/SelectOverlay-
|
|
41
|
+
import { u as useInternalSelectContext, $ as $bdd25dc72710631f$export$cbd84cdb2e668835, a as $2bc3a590c5373a4e$export$5159ec8b34d4ec12, b as $58aed456727eb0f3$export$e64b2f635402ca43, I as InternalSelectContext, S as SelectOverlay, d as SelectOption } from "../__chunks__/SelectOverlay-K-ZKp0JS.mjs";
|
|
42
42
|
import { u as useTriggerWidth } from "../__chunks__/useTriggerWidth-CBghrvjy.mjs";
|
|
43
43
|
import { E as ExpandMore400 } from "../__chunks__/ExpandMore400-CH7GNxqk.mjs";
|
|
44
44
|
import { C as Close } from "../__chunks__/Close-Cq6Q6MN6.mjs";
|
package/Select/index.js
CHANGED
|
@@ -21,7 +21,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21
21
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
22
22
|
const jsxRuntime = require("react/jsx-runtime");
|
|
23
23
|
const React = require("react");
|
|
24
|
-
const SelectOverlay = require("../__chunks__/SelectOverlay-
|
|
24
|
+
const SelectOverlay = require("../__chunks__/SelectOverlay-Dh126Smn.js");
|
|
25
25
|
const utilities_css = require("../utilities/css.js");
|
|
26
26
|
const InputCaption = require("../__chunks__/InputCaption-CccF4ynE.js");
|
|
27
27
|
const Text = require("../__chunks__/Text-DkzMEqky.js");
|
|
@@ -87,7 +87,7 @@ function SelectField(props) {
|
|
|
87
87
|
size,
|
|
88
88
|
children: selectState.selectedItem ? jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
89
89
|
children: [jsxRuntime.jsx(Text.Text, {
|
|
90
|
-
variant: "body2",
|
|
90
|
+
variant: selectedDescription ? "body2" : void 0,
|
|
91
91
|
truncate: true,
|
|
92
92
|
children: selectState.selectedItem.rendered
|
|
93
93
|
}), selectedDescription && jsxRuntime.jsx("span", {
|
package/Select/index.mjs
CHANGED
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
21
21
|
import React__default, { useMemo } from "react";
|
|
22
|
-
import { u as useInternalSelectContext, s as styles, $ as $bdd25dc72710631f$export$cbd84cdb2e668835, a as $2bc3a590c5373a4e$export$5159ec8b34d4ec12, b as $58aed456727eb0f3$export$e64b2f635402ca43, I as InternalSelectContext, S as SelectOverlay, c as SelectSection, d as SelectOption } from "../__chunks__/SelectOverlay-
|
|
22
|
+
import { u as useInternalSelectContext, s as styles, $ as $bdd25dc72710631f$export$cbd84cdb2e668835, a as $2bc3a590c5373a4e$export$5159ec8b34d4ec12, b as $58aed456727eb0f3$export$e64b2f635402ca43, I as InternalSelectContext, S as SelectOverlay, c as SelectSection, d as SelectOption } from "../__chunks__/SelectOverlay-K-ZKp0JS.mjs";
|
|
23
23
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
24
24
|
import { L as Label, I as InputCaption } from "../__chunks__/InputCaption-DoyGkWQe.mjs";
|
|
25
25
|
import { T as Text } from "../__chunks__/Text-D6oT5WJQ.mjs";
|
|
@@ -85,7 +85,7 @@ function SelectField(props) {
|
|
|
85
85
|
size,
|
|
86
86
|
children: selectState.selectedItem ? jsxs(Fragment, {
|
|
87
87
|
children: [jsx(Text, {
|
|
88
|
-
variant: "body2",
|
|
88
|
+
variant: selectedDescription ? "body2" : void 0,
|
|
89
89
|
truncate: true,
|
|
90
90
|
children: selectState.selectedItem.rendered
|
|
91
91
|
}), selectedDescription && jsx("span", {
|
|
@@ -464,7 +464,7 @@ function SelectOptionContent({ item, state }) {
|
|
|
464
464
|
children: jsxRuntime.jsxs("div", {
|
|
465
465
|
className: styles.optionContent,
|
|
466
466
|
children: [jsxRuntime.jsx(Text.Text, {
|
|
467
|
-
variant: "body2",
|
|
467
|
+
variant: description ? "body2" : "body1",
|
|
468
468
|
truncate: true,
|
|
469
469
|
children: item.rendered
|
|
470
470
|
}), description && jsxRuntime.jsx("span", {
|
|
@@ -463,7 +463,7 @@ function SelectOptionContent({ item, state }) {
|
|
|
463
463
|
children: jsxs("div", {
|
|
464
464
|
className: styles.optionContent,
|
|
465
465
|
children: [jsx(Text, {
|
|
466
|
-
variant: "body2",
|
|
466
|
+
variant: description ? "body2" : "body1",
|
|
467
467
|
truncate: true,
|
|
468
468
|
children: item.rendered
|
|
469
469
|
}), description && jsx("span", {
|