@easypost/easy-ui 1.0.0-alpha.4 → 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 (133) hide show
  1. package/Badge/index.js +32 -26
  2. package/Badge/index.mjs +32 -26
  3. package/Banner/index.js +15 -16
  4. package/Banner/index.mjs +15 -16
  5. package/Button/Button.d.ts +61 -0
  6. package/Button/Button.d.ts.map +1 -1
  7. package/Button/index.js +34 -69
  8. package/Button/index.mjs +33 -68
  9. package/CHANGELOG.md +21 -0
  10. package/Card/index.js +84 -5
  11. package/Card/index.mjs +84 -5
  12. package/Checkbox/index.js +84 -72
  13. package/Checkbox/index.mjs +84 -72
  14. package/CodeBlock/index.js +43 -49
  15. package/CodeBlock/index.mjs +43 -49
  16. package/DropdownButton/DropdownButton.d.ts +48 -0
  17. package/DropdownButton/DropdownButton.d.ts.map +1 -1
  18. package/DropdownButton/index.js +29 -101
  19. package/DropdownButton/index.mjs +29 -85
  20. package/HorizontalGrid/index.js +11 -31
  21. package/HorizontalGrid/index.mjs +11 -31
  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 +26 -43
  31. package/IconButton/index.mjs +25 -42
  32. package/InputField/Label.d.ts +2 -2
  33. package/InputField/index.js +282 -10
  34. package/InputField/index.mjs +266 -10
  35. package/InputField/utilities.d.ts +1 -1
  36. package/InputField/utilities.d.ts.map +1 -1
  37. package/Menu/MenuOverlay.d.ts.map +1 -1
  38. package/Menu/index.js +178 -1958
  39. package/Menu/index.mjs +168 -1948
  40. package/Menu/utilities.d.ts +11 -0
  41. package/Menu/utilities.d.ts.map +1 -0
  42. package/Notification/index.js +1534 -14
  43. package/Notification/index.mjs +1518 -14
  44. package/Provider/index.js +15 -15
  45. package/Provider/index.mjs +15 -15
  46. package/RadioGroup/index.js +63 -63
  47. package/RadioGroup/index.mjs +63 -63
  48. package/Select/Select.d.ts +88 -0
  49. package/Select/Select.d.ts.map +1 -0
  50. package/Select/Select.stories.d.ts +17 -0
  51. package/Select/Select.stories.d.ts.map +1 -0
  52. package/Select/Select.test.d.ts +2 -0
  53. package/Select/Select.test.d.ts.map +1 -0
  54. package/Select/SelectContext.d.ts +14 -0
  55. package/Select/SelectContext.d.ts.map +1 -0
  56. package/Select/SelectField.d.ts +62 -0
  57. package/Select/SelectField.d.ts.map +1 -0
  58. package/Select/SelectOption.d.ts +23 -0
  59. package/Select/SelectOption.d.ts.map +1 -0
  60. package/Select/SelectOverlay.d.ts +3 -0
  61. package/Select/SelectOverlay.d.ts.map +1 -0
  62. package/Select/SelectSection.d.ts +22 -0
  63. package/Select/SelectSection.d.ts.map +1 -0
  64. package/Select/SelectTrigger.d.ts +30 -0
  65. package/Select/SelectTrigger.d.ts.map +1 -0
  66. package/Select/index.d.ts +2 -0
  67. package/Select/index.d.ts.map +1 -0
  68. package/Select/index.js +816 -0
  69. package/Select/index.mjs +816 -0
  70. package/SelectorErrorTooltip/index.js +102 -11
  71. package/SelectorErrorTooltip/index.mjs +86 -11
  72. package/Text/index.js +85 -4
  73. package/Text/index.mjs +85 -4
  74. package/TextField/index.js +19 -38
  75. package/TextField/index.mjs +19 -38
  76. package/Textarea/index.js +20 -37
  77. package/Textarea/index.mjs +20 -37
  78. package/Theme/index.js +145 -9
  79. package/Theme/index.mjs +145 -9
  80. package/Toggle/index.js +51 -50
  81. package/Toggle/index.mjs +51 -50
  82. package/Tooltip/index.js +299 -10
  83. package/Tooltip/index.mjs +299 -10
  84. package/UnstyledButton/index.js +4 -4
  85. package/UnstyledButton/index.mjs +3 -3
  86. package/VerticalStack/index.js +13 -47
  87. package/VerticalStack/index.mjs +13 -47
  88. package/__chunks__/ExpandMore400-7c5263a4.mjs +49 -0
  89. package/__chunks__/ExpandMore400-92646971.js +65 -0
  90. package/__chunks__/InputIcon-2317befd.mjs +148 -0
  91. package/__chunks__/InputIcon-d3963cf8.js +147 -0
  92. package/__chunks__/{import-e7f45c7e.mjs → import-0561e1ba.mjs} +3 -3
  93. package/__chunks__/{import-b7971a11.mjs → import-19bc38ac.mjs} +72 -34
  94. package/__chunks__/{import-01299af6.js → import-24a482e1.js} +3 -2
  95. package/__chunks__/{import-baa3cd0c.mjs → import-29af6941.mjs} +4 -3
  96. package/__chunks__/{import-0d1b4d93.js → import-2b302763.js} +193 -141
  97. package/__chunks__/{import-ab878fb6.mjs → import-3d962a94.mjs} +205 -153
  98. package/__chunks__/{import-86330a7c.mjs → import-6a831ca1.mjs} +16 -15
  99. package/__chunks__/{import-7545401a.js → import-8b6c0bc7.js} +3 -3
  100. package/__chunks__/{import-63bf0645.js → import-a1e0f814.js} +47 -9
  101. package/__chunks__/{import-3ab42f86.js → import-a2023d8f.js} +35 -22
  102. package/__chunks__/{import-76076ca6.js → import-dea5a24d.js} +15 -14
  103. package/__chunks__/{import-856e0385.mjs → import-f1f4792a.mjs} +36 -23
  104. package/__chunks__/{UnstyledButton-883f0c6c.mjs → index-29d7bca9.mjs} +17 -42
  105. package/__chunks__/{UnstyledButton-96172ec0.js → index-3985350a.js} +17 -42
  106. package/__chunks__/{overlayscrollbars-react.es-c8369a03.mjs → overlayscrollbars-react.es-7f332a3b.mjs} +4 -4
  107. package/__chunks__/{overlayscrollbars-react.es-20563393.js → overlayscrollbars-react.es-f2a0bcff.js} +4 -4
  108. package/__chunks__/{real-module-e4cd2301.mjs → real-module-515df21d.mjs} +1 -1
  109. package/__chunks__/{real-module-ae2a4342.js → real-module-e36b1436.js} +1 -1
  110. package/__chunks__/useTriggerWidth-156b038a.js +2030 -0
  111. package/__chunks__/useTriggerWidth-addcd1d6.mjs +2031 -0
  112. package/package.json +11 -11
  113. package/style.css +1423 -1196
  114. package/utilities/css.js +14 -58
  115. package/utilities/css.mjs +14 -58
  116. package/__chunks__/Card-7bbd41e0.mjs +0 -110
  117. package/__chunks__/Card-dac53c75.js +0 -109
  118. package/__chunks__/HorizontalStack-a441c63f.mjs +0 -80
  119. package/__chunks__/HorizontalStack-a862839b.js +0 -79
  120. package/__chunks__/Icon-3d00481a.js +0 -44
  121. package/__chunks__/Icon-a75b5201.mjs +0 -45
  122. package/__chunks__/InputField-4fbaae06.js +0 -487
  123. package/__chunks__/InputField-a272f602.mjs +0 -472
  124. package/__chunks__/Notification-b8eafec6.mjs +0 -1456
  125. package/__chunks__/Notification-c5b34eb3.js +0 -1471
  126. package/__chunks__/SelectorErrorTooltip-43c5e29e.js +0 -84
  127. package/__chunks__/SelectorErrorTooltip-b6204987.mjs +0 -69
  128. package/__chunks__/Text-1ae70c19.js +0 -102
  129. package/__chunks__/Text-4ae50d5c.mjs +0 -103
  130. package/__chunks__/Theme-4e498252.mjs +0 -132
  131. package/__chunks__/Theme-751e5575.js +0 -131
  132. package/__chunks__/Tooltip-bd55165e.js +0 -317
  133. package/__chunks__/Tooltip-f7e67b21.mjs +0 -318
@@ -1,13 +1,285 @@
1
1
  "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
+ var __spreadValues = (a, b) => {
10
+ for (var prop in b || (b = {}))
11
+ if (__hasOwnProp.call(b, prop))
12
+ __defNormalProp(a, prop, b[prop]);
13
+ if (__getOwnPropSymbols)
14
+ for (var prop of __getOwnPropSymbols(b)) {
15
+ if (__propIsEnum.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ }
18
+ return a;
19
+ };
20
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2
21
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const InputField = require("../__chunks__/InputField-4fbaae06.js");
4
- require("react");
5
- require("../utilities/css.js");
6
- require("../__chunks__/Text-1ae70c19.js");
7
- require("../__chunks__/Icon-3d00481a.js");
8
- require("../__chunks__/UnstyledButton-96172ec0.js");
9
- require("../__chunks__/import-63bf0645.js");
22
+ const React = require("react");
23
+ const utilities_css = require("../utilities/css.js");
24
+ const InputIcon = require("../__chunks__/InputIcon-d3963cf8.js");
25
+ const Text_index = require("../Text/index.js");
26
+ const Icon_index = require("../Icon/index.js");
27
+ const UnstyledButton_index = require("../__chunks__/index-3985350a.js");
28
+ const _import$2 = require("../__chunks__/import-a1e0f814.js");
29
+ const _import$1 = require("../__chunks__/import-24a482e1.js");
30
+ const _import = require("../__chunks__/import-2b302763.js");
10
31
  require("../__chunks__/omit-fca26542.js");
11
- require("../__chunks__/import-0d1b4d93.js");
12
- require("../__chunks__/import-01299af6.js");
13
- exports.InputField = InputField.InputField;
32
+ function _interopNamespaceDefault(e) {
33
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
34
+ if (e) {
35
+ for (const k in e) {
36
+ if (k !== "default") {
37
+ const d = Object.getOwnPropertyDescriptor(e, k);
38
+ Object.defineProperty(n, k, d.get ? d : {
39
+ enumerable: true,
40
+ get: () => e[k]
41
+ });
42
+ }
43
+ }
44
+ }
45
+ n.default = e;
46
+ return Object.freeze(n);
47
+ }
48
+ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
49
+ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
50
+ let { inputElementType = "input", isDisabled = false, isRequired = false, isReadOnly = false, validationState, type = "text", onChange = () => {
51
+ } } = props;
52
+ let { focusableProps } = _import.$e6afbd83fe6ebbd2$export$4c014de7c8940b4c(props, ref);
53
+ let { labelProps, fieldProps, descriptionProps, errorMessageProps } = _import$1.$2baaea4c71418dea$export$294aa081a6c6f55d(props);
54
+ let domProps = _import$2.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
55
+ labelable: true
56
+ });
57
+ const inputOnlyProps = {
58
+ type,
59
+ pattern: props.pattern
60
+ };
61
+ return {
62
+ labelProps,
63
+ inputProps: _import$2.$3ef42575df84b30b$export$9d1611c77c2fe928(domProps, inputElementType === "input" && inputOnlyProps, __spreadValues(__spreadValues({
64
+ disabled: isDisabled,
65
+ readOnly: isReadOnly,
66
+ "aria-required": isRequired || void 0,
67
+ "aria-invalid": validationState === "invalid" || void 0,
68
+ "aria-errormessage": props["aria-errormessage"],
69
+ "aria-activedescendant": props["aria-activedescendant"],
70
+ "aria-autocomplete": props["aria-autocomplete"],
71
+ "aria-haspopup": props["aria-haspopup"],
72
+ value: props.value,
73
+ defaultValue: props.value ? void 0 : props.defaultValue,
74
+ onChange: (e) => onChange(e.target.value),
75
+ autoComplete: props.autoComplete,
76
+ maxLength: props.maxLength,
77
+ minLength: props.minLength,
78
+ name: props.name,
79
+ placeholder: props.placeholder,
80
+ inputMode: props.inputMode,
81
+ // Clipboard events
82
+ onCopy: props.onCopy,
83
+ onCut: props.onCut,
84
+ onPaste: props.onPaste,
85
+ // Composition events
86
+ onCompositionEnd: props.onCompositionEnd,
87
+ onCompositionStart: props.onCompositionStart,
88
+ onCompositionUpdate: props.onCompositionUpdate,
89
+ // Selection events
90
+ onSelect: props.onSelect,
91
+ // Input events
92
+ onBeforeInput: props.onBeforeInput,
93
+ onInput: props.onInput
94
+ }, focusableProps), fieldProps)),
95
+ descriptionProps,
96
+ errorMessageProps
97
+ };
98
+ }
99
+ var __defProp$1 = Object.defineProperty;
100
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
101
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
102
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
103
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, {
104
+ enumerable: true,
105
+ configurable: true,
106
+ writable: true,
107
+ value
108
+ }) : obj[key] = value;
109
+ var __spreadValues$1 = (a, b) => {
110
+ for (var prop in b || (b = {}))
111
+ if (__hasOwnProp$1.call(b, prop))
112
+ __defNormalProp$1(a, prop, b[prop]);
113
+ if (__getOwnPropSymbols$1)
114
+ for (var prop of __getOwnPropSymbols$1(b)) {
115
+ if (__propIsEnum$1.call(b, prop))
116
+ __defNormalProp$1(a, prop, b[prop]);
117
+ }
118
+ return a;
119
+ };
120
+ var __objRest$1 = (source, exclude) => {
121
+ var target = {};
122
+ for (var prop in source)
123
+ if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
124
+ target[prop] = source[prop];
125
+ if (source != null && __getOwnPropSymbols$1)
126
+ for (var prop of __getOwnPropSymbols$1(source)) {
127
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
128
+ target[prop] = source[prop];
129
+ }
130
+ return target;
131
+ };
132
+ const Visibility = (_a) => {
133
+ var _b = _a, { title, titleId } = _b, props = __objRest$1(_b, ["title", "titleId"]);
134
+ return React__namespace.createElement("svg", __spreadValues$1({
135
+ xmlns: "http://www.w3.org/2000/svg",
136
+ viewBox: "0 -960 960 960",
137
+ "aria-labelledby": titleId
138
+ }, props), title ? React__namespace.createElement("title", {
139
+ id: titleId
140
+ }, title) : null, React__namespace.createElement("path", {
141
+ 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"
142
+ }));
143
+ };
144
+ var __defProp2 = Object.defineProperty;
145
+ var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
146
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
147
+ var __propIsEnum2 = Object.prototype.propertyIsEnumerable;
148
+ var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, {
149
+ enumerable: true,
150
+ configurable: true,
151
+ writable: true,
152
+ value
153
+ }) : obj[key] = value;
154
+ var __spreadValues2 = (a, b) => {
155
+ for (var prop in b || (b = {}))
156
+ if (__hasOwnProp2.call(b, prop))
157
+ __defNormalProp2(a, prop, b[prop]);
158
+ if (__getOwnPropSymbols2)
159
+ for (var prop of __getOwnPropSymbols2(b)) {
160
+ if (__propIsEnum2.call(b, prop))
161
+ __defNormalProp2(a, prop, b[prop]);
162
+ }
163
+ return a;
164
+ };
165
+ var __objRest = (source, exclude) => {
166
+ var target = {};
167
+ for (var prop in source)
168
+ if (__hasOwnProp2.call(source, prop) && exclude.indexOf(prop) < 0)
169
+ target[prop] = source[prop];
170
+ if (source != null && __getOwnPropSymbols2)
171
+ for (var prop of __getOwnPropSymbols2(source)) {
172
+ if (exclude.indexOf(prop) < 0 && __propIsEnum2.call(source, prop))
173
+ target[prop] = source[prop];
174
+ }
175
+ return target;
176
+ };
177
+ const VisibilityOff = (_a) => {
178
+ var _b = _a, { title, titleId } = _b, props = __objRest(_b, ["title", "titleId"]);
179
+ return React__namespace.createElement("svg", __spreadValues2({
180
+ xmlns: "http://www.w3.org/2000/svg",
181
+ viewBox: "0 -960 960 960",
182
+ "aria-labelledby": titleId
183
+ }, props), title ? React__namespace.createElement("title", {
184
+ id: titleId
185
+ }, title) : null, React__namespace.createElement("path", {
186
+ 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"
187
+ }));
188
+ };
189
+ function PasswordButton(props) {
190
+ const { hasError = false, inputSize = "md", isDisabled = false, isPasswordVisible = false, toggleVisibility, isInputHovered = false } = props;
191
+ return React.createElement(UnstyledButton_index.UnstyledButton, {
192
+ className: utilities_css.classNames(InputIcon.styles.passwordBtn, isInputHovered && InputIcon.styles.hovered, hasError && InputIcon.styles.passwordBtnError, InputIcon.styles[utilities_css.variationName("passwordBtn", inputSize)]),
193
+ onPress: toggleVisibility,
194
+ isDisabled
195
+ }, React.createElement(Text_index.Text, {
196
+ visuallyHidden: true
197
+ }, "password visibility"), React.createElement(Icon_index.Icon, {
198
+ symbol: isPasswordVisible ? Visibility : VisibilityOff,
199
+ size: InputIcon.mapIconSize(inputSize)
200
+ }));
201
+ }
202
+ function useInputField(props, ref) {
203
+ const { isMultiline = false } = props;
204
+ const { labelProps, inputProps, descriptionProps: helperTextProps, errorMessageProps: errorTextProps } = $2d73ec29415bd339$export$712718f7aec83d5(__spreadProps(__spreadValues({}, props), {
205
+ inputElementType: InputIcon.getElementType(isMultiline)
206
+ }), ref);
207
+ let elementProps = {};
208
+ if (isMultiline) {
209
+ elementProps = inputProps;
210
+ } else {
211
+ elementProps = inputProps;
212
+ }
213
+ return {
214
+ labelProps,
215
+ elementProps,
216
+ helperTextProps,
217
+ errorTextProps
218
+ };
219
+ }
220
+ function InputField(props) {
221
+ 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;
222
+ const [isPasswordVisible, setIsPasswordVisible] = React.useState(false);
223
+ const ref = React.useRef(null);
224
+ const { labelProps, elementProps, helperTextProps, errorTextProps } = useInputField(props, ref);
225
+ const { isHovered: isInputHovered, hoverProps } = _import.$6179b936705e76d3$export$ae780daf29e6d456(props);
226
+ const Component = InputIcon.getElementType(isMultiline);
227
+ const bothIconPropsDefined = !!iconAtEnd && !!iconAtStart;
228
+ const smallSizeTextarea = size === "sm" && Component === "textarea";
229
+ const definedIconsWithTextarea = (!!iconAtEnd || !!iconAtStart) && Component === "textarea";
230
+ InputIcon.logWarningsForInvalidPropConfiguration(bothIconPropsDefined, smallSizeTextarea, definedIconsWithTextarea);
231
+ const isPassword = type === "password";
232
+ const hasError = validationState === "invalid";
233
+ const showErrorText = hasError && errorText;
234
+ const showHelperText = !showErrorText && helperText;
235
+ const canUseIcon = !bothIconPropsDefined && !isPassword && !definedIconsWithTextarea;
236
+ const hasStartIcon = canUseIcon && iconAtStart;
237
+ const hasEndIcon = canUseIcon && iconAtEnd;
238
+ const isTypeAdjustedForPasswordVisibility = isPassword && isPasswordVisible;
239
+ const captionProps = showHelperText ? helperTextProps : errorTextProps;
240
+ const captionText = showHelperText ? helperText : errorText;
241
+ const adjustedSize = smallSizeTextarea ? "md" : size;
242
+ const className = utilities_css.classNames(InputIcon.styles.input, isInputHovered && InputIcon.styles.hovered, Component === "textarea" && InputIcon.styles.textArea, isPassword && InputIcon.styles.passwordInput, hasError && InputIcon.styles.errorInput, hasStartIcon && InputIcon.styles.iconStartInput, hasEndIcon && InputIcon.styles.iconEndInput, InputIcon.styles[utilities_css.variationName("inputSize", adjustedSize)]);
243
+ const inputType = Component === "textarea" ? void 0 : isTypeAdjustedForPasswordVisibility ? "text" : type;
244
+ return React.createElement("div", {
245
+ className: utilities_css.classNames(InputIcon.styles.root)
246
+ }, React.createElement(InputIcon.Label, __spreadValues({
247
+ isLabelVisuallyHidden,
248
+ fieldSize: adjustedSize,
249
+ hasError,
250
+ isLabelEmphasized
251
+ }, labelProps), label), React.createElement("div", {
252
+ className: InputIcon.styles.inputIconContainer
253
+ }, hasStartIcon && React.createElement(InputIcon.InputIcon, {
254
+ alignment: "start",
255
+ size: adjustedSize,
256
+ isDisabled,
257
+ icon: iconAtStart
258
+ }), React.createElement(Component, __spreadProps(__spreadValues(__spreadValues({}, elementProps), hoverProps), {
259
+ className,
260
+ ref,
261
+ type: inputType,
262
+ value,
263
+ required: isRequired,
264
+ disabled: isDisabled,
265
+ placeholder,
266
+ autoFocus,
267
+ defaultValue,
268
+ rows: Component === "textarea" ? rows : void 0
269
+ })), isPassword ? React.createElement(PasswordButton, {
270
+ isInputHovered,
271
+ hasError,
272
+ inputSize: adjustedSize,
273
+ isDisabled,
274
+ isPasswordVisible,
275
+ toggleVisibility: () => setIsPasswordVisible((prevVisibility) => !prevVisibility)
276
+ }) : hasEndIcon && React.createElement(InputIcon.InputIcon, {
277
+ alignment: "end",
278
+ size: adjustedSize,
279
+ isDisabled,
280
+ icon: iconAtEnd
281
+ })), (showErrorText || showHelperText) && React.createElement(InputIcon.InputCaption, __spreadValues({
282
+ variant: showHelperText ? "helper" : "error"
283
+ }, captionProps), captionText));
284
+ }
285
+ exports.InputField = InputField;
@@ -1,13 +1,269 @@
1
- import { I } from "../__chunks__/InputField-a272f602.mjs";
2
- import "react";
3
- import "../utilities/css.mjs";
4
- import "../__chunks__/Text-4ae50d5c.mjs";
5
- import "../__chunks__/Icon-a75b5201.mjs";
6
- import "../__chunks__/UnstyledButton-883f0c6c.mjs";
7
- import "../__chunks__/import-b7971a11.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";
8
30
  import "../__chunks__/omit-f17deb8f.mjs";
9
- import "../__chunks__/import-ab878fb6.mjs";
10
- import "../__chunks__/import-baa3cd0c.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
+ }
11
267
  export {
12
- I as InputField
268
+ InputField
13
269
  };
@@ -1,5 +1,5 @@
1
1
  import { InputSize } from "./InputField";
2
- /** Small textfield needs xs icon */
2
+ /** Small fields need xs icon */
3
3
  export declare function mapIconSize(size: InputSize): "md" | "xs";
4
4
  export declare function logWarningsForInvalidPropConfiguration(bothIconPropsDefined: boolean, smallSizeTextarea: boolean, definedIconsWithTextarea: boolean): void;
5
5
  export declare function getElementType(isMultiline: boolean): "input" | "textarea";
@@ -1 +1 @@
1
- {"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../src/InputField/utilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,oCAAoC;AACpC,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,eAO1C;AAED,wBAAgB,sCAAsC,CACpD,oBAAoB,EAAE,OAAO,EAC7B,iBAAiB,EAAE,OAAO,EAC1B,wBAAwB,EAAE,OAAO,QAalC;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,OAAO,wBAElD"}
1
+ {"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../src/InputField/utilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,gCAAgC;AAChC,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,eAO1C;AAED,wBAAgB,sCAAsC,CACpD,oBAAoB,EAAE,OAAO,EAC7B,iBAAiB,EAAE,OAAO,EAC1B,wBAAwB,EAAE,OAAO,QAalC;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,OAAO,wBAElD"}
@@ -1 +1 @@
1
- {"version":3,"file":"MenuOverlay.d.ts","sourceRoot":"","sources":["../../src/Menu/MenuOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAGL,SAAS,EAIV,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,cAAc,EAIf,MAAM,kBAAkB,CAAC;AAgB1B,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN,aAAa,GACb,cAAc,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;AAEpC,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;IAChC,gCAAgC;IAChC,QAAQ,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAEhC,8GAA8G;IAC9G,YAAY,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;IAE7B,wDAAwD;IACxD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,uDAAuD;IACvD,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAE9B,iFAAiF;IACjF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;;OAGG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,4BAMvE"}
1
+ {"version":3,"file":"MenuOverlay.d.ts","sourceRoot":"","sources":["../../src/Menu/MenuOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAGL,SAAS,EAIV,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAkBlD,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN,aAAa,GACb,cAAc,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;AAEpC,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;IAChC,gCAAgC;IAChC,QAAQ,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAEhC,8GAA8G;IAC9G,YAAY,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;IAE7B,wDAAwD;IACxD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,uDAAuD;IACvD,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAE9B,iFAAiF;IACjF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;;OAGG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,4BAMvE"}