@easypost/easy-ui 1.0.0-alpha.5 → 1.0.0-alpha.6

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.
Files changed (98) hide show
  1. package/Badge/index.js +16 -16
  2. package/Badge/index.mjs +14 -14
  3. package/Banner/index.js +7 -7
  4. package/Banner/index.mjs +5 -5
  5. package/Button/Button.d.ts +61 -0
  6. package/Button/Button.d.ts.map +1 -1
  7. package/Button/index.js +23 -23
  8. package/Button/index.mjs +20 -20
  9. package/CHANGELOG.md +8 -0
  10. package/Card/index.js +84 -5
  11. package/Card/index.mjs +84 -5
  12. package/Checkbox/index.js +26 -26
  13. package/Checkbox/index.mjs +24 -24
  14. package/CodeBlock/index.js +4 -4
  15. package/CodeBlock/index.mjs +4 -4
  16. package/DropdownButton/DropdownButton.d.ts +48 -0
  17. package/DropdownButton/DropdownButton.d.ts.map +1 -1
  18. package/DropdownButton/index.js +17 -17
  19. package/DropdownButton/index.mjs +15 -15
  20. package/HorizontalGrid/index.js +1 -1
  21. package/HorizontalGrid/index.mjs +1 -1
  22. package/HorizontalStack/index.js +48 -4
  23. package/HorizontalStack/index.mjs +48 -4
  24. package/Icon/Icon.d.ts +51 -0
  25. package/Icon/Icon.d.ts.map +1 -1
  26. package/Icon/index.js +38 -4
  27. package/Icon/index.mjs +38 -4
  28. package/IconButton/IconButton.d.ts +62 -0
  29. package/IconButton/IconButton.d.ts.map +1 -1
  30. package/IconButton/index.js +18 -18
  31. package/IconButton/index.mjs +15 -15
  32. package/InputField/index.js +282 -11
  33. package/InputField/index.mjs +266 -11
  34. package/Menu/index.js +57 -15
  35. package/Menu/index.mjs +58 -16
  36. package/Notification/index.js +1534 -14
  37. package/Notification/index.mjs +1518 -14
  38. package/Provider/index.js +8 -8
  39. package/Provider/index.mjs +8 -8
  40. package/RadioGroup/index.js +24 -24
  41. package/RadioGroup/index.mjs +22 -22
  42. package/Select/index.js +71 -29
  43. package/Select/index.mjs +71 -29
  44. package/SelectorErrorTooltip/index.js +99 -8
  45. package/SelectorErrorTooltip/index.mjs +85 -10
  46. package/Text/index.js +85 -4
  47. package/Text/index.mjs +85 -4
  48. package/TextField/index.js +7 -7
  49. package/TextField/index.mjs +8 -8
  50. package/Textarea/index.js +7 -7
  51. package/Textarea/index.mjs +8 -8
  52. package/Theme/index.js +145 -9
  53. package/Theme/index.mjs +145 -9
  54. package/Toggle/index.js +14 -14
  55. package/Toggle/index.mjs +14 -14
  56. package/Tooltip/index.js +297 -8
  57. package/Tooltip/index.mjs +298 -9
  58. package/UnstyledButton/index.js +3 -3
  59. package/UnstyledButton/index.mjs +3 -3
  60. package/VerticalStack/index.js +3 -3
  61. package/VerticalStack/index.mjs +3 -3
  62. package/__chunks__/{InputIcon-4a8e5243.mjs → InputIcon-2317befd.mjs} +26 -26
  63. package/__chunks__/{InputIcon-70dad3e5.js → InputIcon-d3963cf8.js} +29 -29
  64. package/__chunks__/{import-9c958e32.mjs → import-0561e1ba.mjs} +2 -2
  65. package/__chunks__/{import-fbe7cc7e.mjs → import-19bc38ac.mjs} +26 -26
  66. package/__chunks__/{import-d2e79ac1.mjs → import-29af6941.mjs} +3 -3
  67. package/__chunks__/{import-9581a2dc.js → import-2b302763.js} +43 -1
  68. package/__chunks__/{import-a6cadfe8.mjs → import-3d962a94.mjs} +57 -15
  69. package/__chunks__/{import-d52cd5cf.js → import-8b6c0bc7.js} +1 -1
  70. package/__chunks__/{import-87c465c9.js → import-a2023d8f.js} +1 -1
  71. package/__chunks__/{import-29edaaea.mjs → import-f1f4792a.mjs} +9 -9
  72. package/__chunks__/{UnstyledButton-981cd9af.mjs → index-29d7bca9.mjs} +2 -2
  73. package/__chunks__/{UnstyledButton-5bbb3c5e.js → index-3985350a.js} +1 -1
  74. package/__chunks__/{overlayscrollbars-react.es-c8369a03.mjs → overlayscrollbars-react.es-7f332a3b.mjs} +4 -4
  75. package/__chunks__/{overlayscrollbars-react.es-20563393.js → overlayscrollbars-react.es-f2a0bcff.js} +4 -4
  76. package/__chunks__/{real-module-2f165429.mjs → real-module-515df21d.mjs} +4 -4
  77. package/__chunks__/{useTriggerWidth-9528009c.js → useTriggerWidth-156b038a.js} +48 -6
  78. package/__chunks__/{useTriggerWidth-29becc21.mjs → useTriggerWidth-addcd1d6.mjs} +71 -29
  79. package/package.json +6 -6
  80. package/style.css +1437 -1436
  81. package/__chunks__/Card-2bd533c4.js +0 -85
  82. package/__chunks__/Card-4ad318ba.mjs +0 -86
  83. package/__chunks__/HorizontalStack-65adb570.mjs +0 -50
  84. package/__chunks__/HorizontalStack-f331bfc7.js +0 -49
  85. package/__chunks__/Icon-1a25dcae.js +0 -39
  86. package/__chunks__/Icon-6eb724b4.mjs +0 -40
  87. package/__chunks__/InputField-cc829736.mjs +0 -268
  88. package/__chunks__/InputField-f5072e37.js +0 -283
  89. package/__chunks__/Notification-8d749bd1.mjs +0 -1533
  90. package/__chunks__/Notification-b7a2c277.js +0 -1548
  91. package/__chunks__/SelectorErrorTooltip-4d820c45.mjs +0 -83
  92. package/__chunks__/SelectorErrorTooltip-b7bb5b9d.js +0 -98
  93. package/__chunks__/Text-2efbe1fe.js +0 -86
  94. package/__chunks__/Text-ec2b8d8a.mjs +0 -87
  95. package/__chunks__/Theme-123ba2c3.mjs +0 -147
  96. package/__chunks__/Theme-57f8311c.js +0 -146
  97. package/__chunks__/Tooltip-b4e23b78.mjs +0 -299
  98. package/__chunks__/Tooltip-c5076ca7.js +0 -298
@@ -1,14 +1,269 @@
1
- import { I } from "../__chunks__/InputField-cc829736.mjs";
2
- import "react";
3
- import "../utilities/css.mjs";
4
- import "../__chunks__/InputIcon-4a8e5243.mjs";
5
- import "../__chunks__/Text-ec2b8d8a.mjs";
6
- import "../__chunks__/Icon-6eb724b4.mjs";
7
- import "../__chunks__/UnstyledButton-981cd9af.mjs";
8
- import "../__chunks__/import-fbe7cc7e.mjs";
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ import * as React from "react";
21
+ import React__default, { useState } from "react";
22
+ import { classNames, variationName } from "../utilities/css.mjs";
23
+ import { s as styles, m as mapIconSize, g as getElementType, l as logWarningsForInvalidPropConfiguration, L as Label, I as InputIcon, a as InputCaption } from "../__chunks__/InputIcon-2317befd.mjs";
24
+ import { Text } from "../Text/index.mjs";
25
+ import { Icon } from "../Icon/index.mjs";
26
+ import { U as UnstyledButton } from "../__chunks__/index-29d7bca9.mjs";
27
+ import { d as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, a as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../__chunks__/import-19bc38ac.mjs";
28
+ import { $ as $2baaea4c71418dea$export$294aa081a6c6f55d } from "../__chunks__/import-29af6941.mjs";
29
+ import { a as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c, f as $6179b936705e76d3$export$ae780daf29e6d456 } from "../__chunks__/import-3d962a94.mjs";
9
30
  import "../__chunks__/omit-f17deb8f.mjs";
10
- import "../__chunks__/import-a6cadfe8.mjs";
11
- import "../__chunks__/import-d2e79ac1.mjs";
31
+ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
32
+ let { inputElementType = "input", isDisabled = false, isRequired = false, isReadOnly = false, validationState, type = "text", onChange = () => {
33
+ } } = props;
34
+ let { focusableProps } = $e6afbd83fe6ebbd2$export$4c014de7c8940b4c(props, ref);
35
+ let { labelProps, fieldProps, descriptionProps, errorMessageProps } = $2baaea4c71418dea$export$294aa081a6c6f55d(props);
36
+ let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
37
+ labelable: true
38
+ });
39
+ const inputOnlyProps = {
40
+ type,
41
+ pattern: props.pattern
42
+ };
43
+ return {
44
+ labelProps,
45
+ inputProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, inputElementType === "input" && inputOnlyProps, __spreadValues(__spreadValues({
46
+ disabled: isDisabled,
47
+ readOnly: isReadOnly,
48
+ "aria-required": isRequired || void 0,
49
+ "aria-invalid": validationState === "invalid" || void 0,
50
+ "aria-errormessage": props["aria-errormessage"],
51
+ "aria-activedescendant": props["aria-activedescendant"],
52
+ "aria-autocomplete": props["aria-autocomplete"],
53
+ "aria-haspopup": props["aria-haspopup"],
54
+ value: props.value,
55
+ defaultValue: props.value ? void 0 : props.defaultValue,
56
+ onChange: (e) => onChange(e.target.value),
57
+ autoComplete: props.autoComplete,
58
+ maxLength: props.maxLength,
59
+ minLength: props.minLength,
60
+ name: props.name,
61
+ placeholder: props.placeholder,
62
+ inputMode: props.inputMode,
63
+ // Clipboard events
64
+ onCopy: props.onCopy,
65
+ onCut: props.onCut,
66
+ onPaste: props.onPaste,
67
+ // Composition events
68
+ onCompositionEnd: props.onCompositionEnd,
69
+ onCompositionStart: props.onCompositionStart,
70
+ onCompositionUpdate: props.onCompositionUpdate,
71
+ // Selection events
72
+ onSelect: props.onSelect,
73
+ // Input events
74
+ onBeforeInput: props.onBeforeInput,
75
+ onInput: props.onInput
76
+ }, focusableProps), fieldProps)),
77
+ descriptionProps,
78
+ errorMessageProps
79
+ };
80
+ }
81
+ var __defProp$1 = Object.defineProperty;
82
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
83
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
84
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
85
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, {
86
+ enumerable: true,
87
+ configurable: true,
88
+ writable: true,
89
+ value
90
+ }) : obj[key] = value;
91
+ var __spreadValues$1 = (a, b) => {
92
+ for (var prop in b || (b = {}))
93
+ if (__hasOwnProp$1.call(b, prop))
94
+ __defNormalProp$1(a, prop, b[prop]);
95
+ if (__getOwnPropSymbols$1)
96
+ for (var prop of __getOwnPropSymbols$1(b)) {
97
+ if (__propIsEnum$1.call(b, prop))
98
+ __defNormalProp$1(a, prop, b[prop]);
99
+ }
100
+ return a;
101
+ };
102
+ var __objRest$1 = (source, exclude) => {
103
+ var target = {};
104
+ for (var prop in source)
105
+ if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
106
+ target[prop] = source[prop];
107
+ if (source != null && __getOwnPropSymbols$1)
108
+ for (var prop of __getOwnPropSymbols$1(source)) {
109
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
110
+ target[prop] = source[prop];
111
+ }
112
+ return target;
113
+ };
114
+ const Visibility = (_a) => {
115
+ var _b = _a, { title, titleId } = _b, props = __objRest$1(_b, ["title", "titleId"]);
116
+ return React.createElement("svg", __spreadValues$1({
117
+ xmlns: "http://www.w3.org/2000/svg",
118
+ viewBox: "0 -960 960 960",
119
+ "aria-labelledby": titleId
120
+ }, props), title ? React.createElement("title", {
121
+ id: titleId
122
+ }, title) : null, React.createElement("path", {
123
+ d: "M480.208-344.232q64.638 0 110.099-45.669 45.461-45.67 45.461-110.307 0-64.638-45.669-110.099-45.67-45.461-110.307-45.461-64.638 0-110.099 45.669-45.461 45.67-45.461 110.307 0 64.638 45.669 110.099 45.67 45.461 110.307 45.461Zm-.511-44.922q-46.312 0-78.428-32.418-32.115-32.419-32.115-78.731t32.418-78.428q32.419-32.115 78.731-32.115t78.428 32.418q32.115 32.419 32.115 78.731t-32.418 78.428q-32.419 32.115-78.731 32.115Zm.358 169.153q-137.593 0-249.823-77.038Q118.001-374.078 61.54-500q56.461-125.922 168.637-202.961 112.175-77.038 249.768-77.038 137.593 0 249.823 77.038Q841.999-625.922 898.46-500q-56.461 125.922-168.637 202.961-112.175 77.038-249.768 77.038ZM480-500Zm-.169 234.615q119.246 0 218.823-63.769Q798.23-392.923 850.461-500 798.23-607.077 698.822-670.846q-99.408-63.769-218.653-63.769-119.246 0-218.823 63.769Q161.77-607.077 108.924-500q52.846 107.077 152.254 170.846 99.408 63.769 218.653 63.769Z"
124
+ }));
125
+ };
126
+ var __defProp2 = Object.defineProperty;
127
+ var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
128
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
129
+ var __propIsEnum2 = Object.prototype.propertyIsEnumerable;
130
+ var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, {
131
+ enumerable: true,
132
+ configurable: true,
133
+ writable: true,
134
+ value
135
+ }) : obj[key] = value;
136
+ var __spreadValues2 = (a, b) => {
137
+ for (var prop in b || (b = {}))
138
+ if (__hasOwnProp2.call(b, prop))
139
+ __defNormalProp2(a, prop, b[prop]);
140
+ if (__getOwnPropSymbols2)
141
+ for (var prop of __getOwnPropSymbols2(b)) {
142
+ if (__propIsEnum2.call(b, prop))
143
+ __defNormalProp2(a, prop, b[prop]);
144
+ }
145
+ return a;
146
+ };
147
+ var __objRest = (source, exclude) => {
148
+ var target = {};
149
+ for (var prop in source)
150
+ if (__hasOwnProp2.call(source, prop) && exclude.indexOf(prop) < 0)
151
+ target[prop] = source[prop];
152
+ if (source != null && __getOwnPropSymbols2)
153
+ for (var prop of __getOwnPropSymbols2(source)) {
154
+ if (exclude.indexOf(prop) < 0 && __propIsEnum2.call(source, prop))
155
+ target[prop] = source[prop];
156
+ }
157
+ return target;
158
+ };
159
+ const VisibilityOff = (_a) => {
160
+ var _b = _a, { title, titleId } = _b, props = __objRest(_b, ["title", "titleId"]);
161
+ return React.createElement("svg", __spreadValues2({
162
+ xmlns: "http://www.w3.org/2000/svg",
163
+ viewBox: "0 -960 960 960",
164
+ "aria-labelledby": titleId
165
+ }, props), title ? React.createElement("title", {
166
+ id: titleId
167
+ }, title) : null, React.createElement("path", {
168
+ d: "m620.153-434.386-34.768-34.768q21.384-67.539-28.539-111.461-49.923-43.923-107.692-24.77l-34.768-34.768q13.538-7.923 30.307-11.769T480-655.768q65.23 0 110.499 45.269Q635.768-565.23 635.768-500q0 18.538-4.154 35.999-4.153 17.462-11.461 29.615Zm127.846 126.692-31.153-29.999q45.923-34.077 80.692-75.884 34.769-41.808 52.923-86.423-50-108.307-148.461-171.461-98.462-63.154-214.693-63.154-38.538 0-78.114 7.038-39.577 7.039-65.346 16.885l-34.846-35.461q33.462-14.461 81.423-24.153 47.961-9.693 93.422-9.693 134.538 0 248.038 76.115Q845.383-627.769 898.46-500q-24.461 57.461-62.192 105.653-37.731 48.192-88.269 86.653Zm59.923 216.769-161.845-160q-30.769 13.616-74.384 22.27-43.616 8.654-91.693 8.654-137.538 0-250.768-76.115Q116.001-372.231 61.54-500q21.539-52.385 59.154-101.115 37.616-48.731 87.077-89.115L85.233-812.384l31.999-32.615L837.691-124.54l-29.769 33.615ZM238.77-658.231q-37.384 26.231-74.961 71-37.578 44.769-54.885 87.231 50.615 108.307 150.807 171.461 100.192 63.154 225.961 63.154 37.231 0 73.655-5.731 36.423-5.731 52.423-14.115l-70.924-70.924q-10.615 5.385-28.346 8.654t-32.5 3.269q-64.615 0-110.192-44.961Q324.232-434.154 324.232-500q0-15 3.269-31.923t8.654-28.923l-97.385-97.385ZM531.462-517Zm-105.999 53.384Z"
169
+ }));
170
+ };
171
+ function PasswordButton(props) {
172
+ const { hasError = false, inputSize = "md", isDisabled = false, isPasswordVisible = false, toggleVisibility, isInputHovered = false } = props;
173
+ return React__default.createElement(UnstyledButton, {
174
+ className: classNames(styles.passwordBtn, isInputHovered && styles.hovered, hasError && styles.passwordBtnError, styles[variationName("passwordBtn", inputSize)]),
175
+ onPress: toggleVisibility,
176
+ isDisabled
177
+ }, React__default.createElement(Text, {
178
+ visuallyHidden: true
179
+ }, "password visibility"), React__default.createElement(Icon, {
180
+ symbol: isPasswordVisible ? Visibility : VisibilityOff,
181
+ size: mapIconSize(inputSize)
182
+ }));
183
+ }
184
+ function useInputField(props, ref) {
185
+ const { isMultiline = false } = props;
186
+ const { labelProps, inputProps, descriptionProps: helperTextProps, errorMessageProps: errorTextProps } = $2d73ec29415bd339$export$712718f7aec83d5(__spreadProps(__spreadValues({}, props), {
187
+ inputElementType: getElementType(isMultiline)
188
+ }), ref);
189
+ let elementProps = {};
190
+ if (isMultiline) {
191
+ elementProps = inputProps;
192
+ } else {
193
+ elementProps = inputProps;
194
+ }
195
+ return {
196
+ labelProps,
197
+ elementProps,
198
+ helperTextProps,
199
+ errorTextProps
200
+ };
201
+ }
202
+ function InputField(props) {
203
+ const { isMultiline = false, type = "text", size = "md", isLabelVisuallyHidden = false, isDisabled = false, isRequired = false, validationState = "valid", isLabelEmphasized = false, autoFocus = false, label, errorText, helperText, placeholder, value, defaultValue, iconAtStart, iconAtEnd, rows } = props;
204
+ const [isPasswordVisible, setIsPasswordVisible] = useState(false);
205
+ const ref = React__default.useRef(null);
206
+ const { labelProps, elementProps, helperTextProps, errorTextProps } = useInputField(props, ref);
207
+ const { isHovered: isInputHovered, hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456(props);
208
+ const Component = getElementType(isMultiline);
209
+ const bothIconPropsDefined = !!iconAtEnd && !!iconAtStart;
210
+ const smallSizeTextarea = size === "sm" && Component === "textarea";
211
+ const definedIconsWithTextarea = (!!iconAtEnd || !!iconAtStart) && Component === "textarea";
212
+ logWarningsForInvalidPropConfiguration(bothIconPropsDefined, smallSizeTextarea, definedIconsWithTextarea);
213
+ const isPassword = type === "password";
214
+ const hasError = validationState === "invalid";
215
+ const showErrorText = hasError && errorText;
216
+ const showHelperText = !showErrorText && helperText;
217
+ const canUseIcon = !bothIconPropsDefined && !isPassword && !definedIconsWithTextarea;
218
+ const hasStartIcon = canUseIcon && iconAtStart;
219
+ const hasEndIcon = canUseIcon && iconAtEnd;
220
+ const isTypeAdjustedForPasswordVisibility = isPassword && isPasswordVisible;
221
+ const captionProps = showHelperText ? helperTextProps : errorTextProps;
222
+ const captionText = showHelperText ? helperText : errorText;
223
+ const adjustedSize = smallSizeTextarea ? "md" : size;
224
+ const className = classNames(styles.input, isInputHovered && styles.hovered, Component === "textarea" && styles.textArea, isPassword && styles.passwordInput, hasError && styles.errorInput, hasStartIcon && styles.iconStartInput, hasEndIcon && styles.iconEndInput, styles[variationName("inputSize", adjustedSize)]);
225
+ const inputType = Component === "textarea" ? void 0 : isTypeAdjustedForPasswordVisibility ? "text" : type;
226
+ return React__default.createElement("div", {
227
+ className: classNames(styles.root)
228
+ }, React__default.createElement(Label, __spreadValues({
229
+ isLabelVisuallyHidden,
230
+ fieldSize: adjustedSize,
231
+ hasError,
232
+ isLabelEmphasized
233
+ }, labelProps), label), React__default.createElement("div", {
234
+ className: styles.inputIconContainer
235
+ }, hasStartIcon && React__default.createElement(InputIcon, {
236
+ alignment: "start",
237
+ size: adjustedSize,
238
+ isDisabled,
239
+ icon: iconAtStart
240
+ }), React__default.createElement(Component, __spreadProps(__spreadValues(__spreadValues({}, elementProps), hoverProps), {
241
+ className,
242
+ ref,
243
+ type: inputType,
244
+ value,
245
+ required: isRequired,
246
+ disabled: isDisabled,
247
+ placeholder,
248
+ autoFocus,
249
+ defaultValue,
250
+ rows: Component === "textarea" ? rows : void 0
251
+ })), isPassword ? React__default.createElement(PasswordButton, {
252
+ isInputHovered,
253
+ hasError,
254
+ inputSize: adjustedSize,
255
+ isDisabled,
256
+ isPasswordVisible,
257
+ toggleVisibility: () => setIsPasswordVisible((prevVisibility) => !prevVisibility)
258
+ }) : hasEndIcon && React__default.createElement(InputIcon, {
259
+ alignment: "end",
260
+ size: adjustedSize,
261
+ isDisabled,
262
+ icon: iconAtEnd
263
+ })), (showErrorText || showHelperText) && React__default.createElement(InputCaption, __spreadValues({
264
+ variant: showHelperText ? "helper" : "error"
265
+ }, captionProps), captionText));
266
+ }
12
267
  export {
13
- I as InputField
268
+ InputField
14
269
  };
package/Menu/index.js CHANGED
@@ -5,6 +5,11 @@ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
5
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
+ var __knownSymbol = (name, symbol) => {
9
+ if (symbol = Symbol[name])
10
+ return symbol;
11
+ throw Error("Symbol." + name + " is not defined");
12
+ };
8
13
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
14
  var __spreadValues = (a, b) => {
10
15
  for (var prop in b || (b = {}))
@@ -30,22 +35,59 @@ var __objRest = (source, exclude) => {
30
35
  }
31
36
  return target;
32
37
  };
38
+ var __await = function(promise, isYieldStar) {
39
+ this[0] = promise;
40
+ this[1] = isYieldStar;
41
+ };
42
+ var __yieldStar = (value) => {
43
+ var obj = value[__knownSymbol("asyncIterator")];
44
+ var isAwait = false;
45
+ var method;
46
+ var it = {};
47
+ if (obj == null) {
48
+ obj = value[__knownSymbol("iterator")]();
49
+ method = (k) => it[k] = (x) => obj[k](x);
50
+ } else {
51
+ obj = obj.call(value);
52
+ method = (k) => it[k] = (v) => {
53
+ if (isAwait) {
54
+ isAwait = false;
55
+ if (k === "throw")
56
+ throw v;
57
+ return v;
58
+ }
59
+ isAwait = true;
60
+ return {
61
+ done: false,
62
+ value: new __await(new Promise((resolve) => {
63
+ var x = obj[k](v);
64
+ if (!(x instanceof Object))
65
+ throw TypeError("Object expected");
66
+ resolve(x);
67
+ }), 1)
68
+ };
69
+ };
70
+ }
71
+ return it[__knownSymbol("iterator")] = () => it, method("next"), "throw" in obj ? method("throw") : it.throw = (x) => {
72
+ throw x;
73
+ }, "return" in obj && method("return"), it;
74
+ };
33
75
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
34
76
  const React = require("react");
35
77
  const omit = require("../__chunks__/omit-fca26542.js");
36
- const Text = require("../__chunks__/Text-2efbe1fe.js");
37
- const useTriggerWidth = require("../__chunks__/useTriggerWidth-9528009c.js");
78
+ const Text_index = require("../Text/index.js");
79
+ const useTriggerWidth = require("../__chunks__/useTriggerWidth-156b038a.js");
38
80
  const _import$1 = require("../__chunks__/import-a1e0f814.js");
39
- const overlayscrollbarsReact_es = require("../__chunks__/overlayscrollbars-react.es-20563393.js");
81
+ const overlayscrollbarsReact_es = require("../__chunks__/overlayscrollbars-react.es-f2a0bcff.js");
40
82
  const _import = require("../__chunks__/import-dea5a24d.js");
41
- const _import$2 = require("../__chunks__/import-87c465c9.js");
83
+ const _import$2 = require("../__chunks__/import-a2023d8f.js");
42
84
  require("../utilities/css.js");
43
- require("../__chunks__/import-9581a2dc.js");
85
+ require("../__chunks__/import-2b302763.js");
44
86
  require("../__chunks__/real-module-e36b1436.js");
45
87
  require("react-dom");
46
88
  class $05ca4cd7c4a5a999$export$863faf230ee2118a {
47
89
  *[Symbol.iterator]() {
48
- yield* this.iterable;
90
+ yield* __yieldStar(this.iterable);
49
91
  }
50
92
  get size() {
51
93
  return this.keyMap.size;
@@ -156,14 +198,14 @@ function noop() {
156
198
  }
157
199
  var noop_1 = noop;
158
200
  const noop$1 = /* @__PURE__ */ omit.getDefaultExportFromCjs(noop_1);
159
- const underlay = "_underlay_1sr2v_5";
160
- const root = "_root_1sr2v_10";
161
- const menu = "_menu_1sr2v_60";
162
- const menuList = "_menuList_1sr2v_65";
163
- const sectionList = "_sectionList_1sr2v_66";
164
- const itemContent = "_itemContent_1sr2v_72";
165
- const separator = "_separator_1sr2v_73";
166
- const item = "_item_1sr2v_72";
201
+ const underlay = "_underlay_b3g9a_5";
202
+ const root = "_root_b3g9a_10";
203
+ const menu = "_menu_b3g9a_60";
204
+ const menuList = "_menuList_b3g9a_65";
205
+ const sectionList = "_sectionList_b3g9a_66";
206
+ const itemContent = "_itemContent_b3g9a_72";
207
+ const separator = "_separator_b3g9a_73";
208
+ const item = "_item_b3g9a_72";
167
209
  const styles = {
168
210
  underlay,
169
211
  root,
@@ -194,7 +236,7 @@ function MenuItemContent({ item: item2, state }) {
194
236
  "data-is-selected": isSelected
195
237
  }), React.createElement("div", {
196
238
  className: styles.itemContent
197
- }, React.createElement(Text.Text, {
239
+ }, React.createElement(Text_index.Text, {
198
240
  variant: "body1",
199
241
  truncate: true
200
242
  }, item2.rendered)));
package/Menu/index.mjs CHANGED
@@ -4,6 +4,11 @@ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
4
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
6
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __knownSymbol = (name, symbol) => {
8
+ if (symbol = Symbol[name])
9
+ return symbol;
10
+ throw Error("Symbol." + name + " is not defined");
11
+ };
7
12
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
13
  var __spreadValues = (a, b) => {
9
14
  for (var prop in b || (b = {}))
@@ -29,21 +34,58 @@ var __objRest = (source, exclude) => {
29
34
  }
30
35
  return target;
31
36
  };
37
+ var __await = function(promise, isYieldStar) {
38
+ this[0] = promise;
39
+ this[1] = isYieldStar;
40
+ };
41
+ var __yieldStar = (value) => {
42
+ var obj = value[__knownSymbol("asyncIterator")];
43
+ var isAwait = false;
44
+ var method;
45
+ var it = {};
46
+ if (obj == null) {
47
+ obj = value[__knownSymbol("iterator")]();
48
+ method = (k) => it[k] = (x) => obj[k](x);
49
+ } else {
50
+ obj = obj.call(value);
51
+ method = (k) => it[k] = (v) => {
52
+ if (isAwait) {
53
+ isAwait = false;
54
+ if (k === "throw")
55
+ throw v;
56
+ return v;
57
+ }
58
+ isAwait = true;
59
+ return {
60
+ done: false,
61
+ value: new __await(new Promise((resolve) => {
62
+ var x = obj[k](v);
63
+ if (!(x instanceof Object))
64
+ throw TypeError("Object expected");
65
+ resolve(x);
66
+ }), 1)
67
+ };
68
+ };
69
+ }
70
+ return it[__knownSymbol("iterator")] = () => it, method("next"), "throw" in obj ? method("throw") : it.throw = (x) => {
71
+ throw x;
72
+ }, "return" in obj && method("return"), it;
73
+ };
32
74
  import React__default, { useMemo, useCallback, useEffect, createContext, useContext } from "react";
33
75
  import { g as getDefaultExportFromCjs, o as omit } from "../__chunks__/omit-f17deb8f.mjs";
34
- import { T as Text } from "../__chunks__/Text-ec2b8d8a.mjs";
35
- import { f as $7af3f5b51489e0b5$export$253fe78d46329472, g as $7613b1592d41b092$export$6cd28814d92fa9c9, h as $d496c0a20b6e58ec$export$6c8a5aaad13c9852, j as $c1d7fb2ec91bae71$export$6d08773d2e66f8f2, p as $a2e5df62f93c7633$export$9d32628fc2aea7da, k as $9fc4852771d079eb$export$6e2c8f0811a474ce, q as $3e5eb2498db5b506$export$73f7a44322579622, l as $f4b273590fab9f93$export$52210f68a14655d0, r as $d5336fe17ce95402$export$38eaa17faae8f579, m as getUnmergedPopoverStyles, s as DEFAULT_MAX_ITEMS_UNTIL_SCROLL, o as DEFAULT_PLACEMENT, D as DEFAULT_WIDTH, O as OVERLAY_PADDING_FROM_CONTAINER, I as ITEM_HEIGHT, Y as Y_PADDING_INSIDE_OVERLAY, n as OVERLAY_OFFSET, i as $a28c903ee9ad8dc5$export$79fefeb1c2091ac3, d as $168583247155ddda$export$dc9c12ed27dd1b49, u as useTriggerWidth } from "../__chunks__/useTriggerWidth-29becc21.mjs";
36
- import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../__chunks__/import-fbe7cc7e.mjs";
37
- import { S } from "../__chunks__/overlayscrollbars-react.es-c8369a03.mjs";
76
+ import { Text } from "../Text/index.mjs";
77
+ import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852, c as $c1d7fb2ec91bae71$export$6d08773d2e66f8f2, d as $a2e5df62f93c7633$export$9d32628fc2aea7da, e as $9fc4852771d079eb$export$6e2c8f0811a474ce, f as $3e5eb2498db5b506$export$73f7a44322579622, g as $f4b273590fab9f93$export$52210f68a14655d0, h as $d5336fe17ce95402$export$38eaa17faae8f579, i as getUnmergedPopoverStyles, D as DEFAULT_MAX_ITEMS_UNTIL_SCROLL, j as DEFAULT_PLACEMENT, k as DEFAULT_WIDTH, O as OVERLAY_PADDING_FROM_CONTAINER, I as ITEM_HEIGHT, Y as Y_PADDING_INSIDE_OVERLAY, l as OVERLAY_OFFSET, m as $a28c903ee9ad8dc5$export$79fefeb1c2091ac3, n as $168583247155ddda$export$dc9c12ed27dd1b49, u as useTriggerWidth } from "../__chunks__/useTriggerWidth-addcd1d6.mjs";
78
+ import { a as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../__chunks__/import-19bc38ac.mjs";
79
+ import { S } from "../__chunks__/overlayscrollbars-react.es-7f332a3b.mjs";
38
80
  import { $ as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../__chunks__/import-6a831ca1.mjs";
39
- import { a as $f2f8a6077418541e$export$542a6fd13ac93354, b as $f57aed4a881a3485$export$b47c3594eab58386, c as $86ea4cb521eb2e37$export$2317d149ed6f78c4 } from "../__chunks__/import-29edaaea.mjs";
81
+ import { b as $f2f8a6077418541e$export$542a6fd13ac93354, c as $f57aed4a881a3485$export$b47c3594eab58386, d as $86ea4cb521eb2e37$export$2317d149ed6f78c4 } from "../__chunks__/import-f1f4792a.mjs";
40
82
  import "../utilities/css.mjs";
41
- import "../__chunks__/import-a6cadfe8.mjs";
42
- import "../__chunks__/real-module-2f165429.mjs";
83
+ import "../__chunks__/import-3d962a94.mjs";
84
+ import "../__chunks__/real-module-515df21d.mjs";
43
85
  import "react-dom";
44
86
  class $05ca4cd7c4a5a999$export$863faf230ee2118a {
45
87
  *[Symbol.iterator]() {
46
- yield* this.iterable;
88
+ yield* __yieldStar(this.iterable);
47
89
  }
48
90
  get size() {
49
91
  return this.keyMap.size;
@@ -154,14 +196,14 @@ function noop() {
154
196
  }
155
197
  var noop_1 = noop;
156
198
  const noop$1 = /* @__PURE__ */ getDefaultExportFromCjs(noop_1);
157
- const underlay = "_underlay_1sr2v_5";
158
- const root = "_root_1sr2v_10";
159
- const menu = "_menu_1sr2v_60";
160
- const menuList = "_menuList_1sr2v_65";
161
- const sectionList = "_sectionList_1sr2v_66";
162
- const itemContent = "_itemContent_1sr2v_72";
163
- const separator = "_separator_1sr2v_73";
164
- const item = "_item_1sr2v_72";
199
+ const underlay = "_underlay_b3g9a_5";
200
+ const root = "_root_b3g9a_10";
201
+ const menu = "_menu_b3g9a_60";
202
+ const menuList = "_menuList_b3g9a_65";
203
+ const sectionList = "_sectionList_b3g9a_66";
204
+ const itemContent = "_itemContent_b3g9a_72";
205
+ const separator = "_separator_b3g9a_73";
206
+ const item = "_item_b3g9a_72";
165
207
  const styles = {
166
208
  underlay,
167
209
  root,