@eightshift/ui-components 4.0.0 → 5.0.0

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 (144) hide show
  1. package/package.json +101 -101
  2. package/dist/Button-CvzGKGCo.js +0 -185
  3. package/dist/Collection-ddre1L5v.js +0 -2332
  4. package/dist/Color-MV5kBVXr.js +0 -2452
  5. package/dist/ColorSwatch-BqQfVu4L.js +0 -64
  6. package/dist/ComboBox-jQ-dk95U.js +0 -1906
  7. package/dist/Dialog-DX1aiYyE.js +0 -2300
  8. package/dist/FieldError-52GVSGgC.js +0 -42
  9. package/dist/FocusScope-Cri5BFRz.js +0 -831
  10. package/dist/Form-Cq3fu75_.js +0 -5
  11. package/dist/Group-_emcIVxI.js +0 -48
  12. package/dist/Heading-B2153VXe.js +0 -16
  13. package/dist/Hidden-rE6uR-lr.js +0 -41
  14. package/dist/Input-BxpFEIXV.js +0 -133
  15. package/dist/Label-icmbmNdI.js +0 -17
  16. package/dist/List-BYNHbol3.js +0 -593
  17. package/dist/ListBox-mJ4nQaL7.js +0 -581
  18. package/dist/NumberFormatter-DA8u1Ot7.js +0 -140
  19. package/dist/OverlayArrow-BB0CWwdq.js +0 -629
  20. package/dist/RSPContexts-2lR5GG9p.js +0 -14
  21. package/dist/Select-aab027f3.esm--EmXjiL3.js +0 -2469
  22. package/dist/Separator-D9moUgP8.js +0 -322
  23. package/dist/Slider-rz2XRMGm.js +0 -853
  24. package/dist/Text-DVSAPY-K.js +0 -16
  25. package/dist/VisuallyHidden-f9zX67a_.js +0 -48
  26. package/dist/_commonjsHelpers-CUmg6egw.js +0 -6
  27. package/dist/assets/index.css +0 -37
  28. package/dist/assets/style-admin.css +0 -5255
  29. package/dist/assets/style-editor.css +0 -5255
  30. package/dist/assets/style.css +0 -5261
  31. package/dist/assets/wp-font-enhancements.css +0 -8
  32. package/dist/assets/wp-ui-enhancements.css +0 -299
  33. package/dist/components/animated-visibility/animated-visibility.js +0 -105
  34. package/dist/components/base-control/base-control.js +0 -86
  35. package/dist/components/breakpoint-preview/breakpoint-preview.js +0 -161
  36. package/dist/components/button/button.js +0 -387
  37. package/dist/components/checkbox/checkbox.js +0 -320
  38. package/dist/components/color-pickers/color-picker.js +0 -272
  39. package/dist/components/color-pickers/color-swatch.js +0 -58
  40. package/dist/components/color-pickers/gradient-editor.js +0 -534
  41. package/dist/components/color-pickers/solid-color-picker.js +0 -1567
  42. package/dist/components/component-toggle/component-toggle.js +0 -158
  43. package/dist/components/container-panel/container-panel.js +0 -131
  44. package/dist/components/draggable/draggable-context.js +0 -5
  45. package/dist/components/draggable/draggable-handle.js +0 -46
  46. package/dist/components/draggable/draggable.js +0 -6207
  47. package/dist/components/draggable-list/draggable-list-context.js +0 -5
  48. package/dist/components/draggable-list/draggable-list-item.js +0 -77
  49. package/dist/components/draggable-list/draggable-list.js +0 -151
  50. package/dist/components/expandable/expandable.js +0 -342
  51. package/dist/components/index.js +0 -137
  52. package/dist/components/input-field/input-field.js +0 -231
  53. package/dist/components/item-collection/item-collection.js +0 -59
  54. package/dist/components/layout/hstack.js +0 -30
  55. package/dist/components/layout/vstack.js +0 -30
  56. package/dist/components/link-input/link-input.js +0 -293
  57. package/dist/components/matrix-align/matrix-align.js +0 -134
  58. package/dist/components/menu/menu.js +0 -285
  59. package/dist/components/modal/modal.js +0 -305
  60. package/dist/components/notice/notice.js +0 -123
  61. package/dist/components/number-picker/number-picker.js +0 -292
  62. package/dist/components/option-select/option-select.js +0 -264
  63. package/dist/components/options-panel/options-panel.js +0 -158
  64. package/dist/components/placeholders/file-placeholder.js +0 -42
  65. package/dist/components/placeholders/image-placeholder.js +0 -88
  66. package/dist/components/placeholders/media-placeholder.js +0 -63
  67. package/dist/components/popover/popover.js +0 -207
  68. package/dist/components/radio/radio.js +0 -579
  69. package/dist/components/repeater/repeater-context.js +0 -5
  70. package/dist/components/repeater/repeater-item.js +0 -119
  71. package/dist/components/repeater/repeater.js +0 -280
  72. package/dist/components/responsive/mini-responsive.js +0 -498
  73. package/dist/components/responsive/responsive-legacy.js +0 -343
  74. package/dist/components/responsive/responsive.js +0 -580
  75. package/dist/components/responsive-preview/responsive-preview.js +0 -123
  76. package/dist/components/rich-label/rich-label.js +0 -66
  77. package/dist/components/select/async-multi-select.js +0 -157
  78. package/dist/components/select/async-single-select.js +0 -137
  79. package/dist/components/select/custom-select-default-components.js +0 -38
  80. package/dist/components/select/multi-select-components.js +0 -8
  81. package/dist/components/select/multi-select.js +0 -151
  82. package/dist/components/select/react-select-component-wrappers.js +0 -90
  83. package/dist/components/select/shared.js +0 -26
  84. package/dist/components/select/single-select.js +0 -131
  85. package/dist/components/select/styles.js +0 -49
  86. package/dist/components/select/v2/async-select.js +0 -297
  87. package/dist/components/select/v2/shared.js +0 -24
  88. package/dist/components/select/v2/single-select.js +0 -990
  89. package/dist/components/slider/column-config-slider.js +0 -210
  90. package/dist/components/slider/slider.js +0 -343
  91. package/dist/components/slider/utils.js +0 -84
  92. package/dist/components/spacer/spacer.js +0 -97
  93. package/dist/components/tabs/tabs.js +0 -702
  94. package/dist/components/toggle/switch.js +0 -155
  95. package/dist/components/toggle/toggle.js +0 -64
  96. package/dist/components/toggle-button/toggle-button.js +0 -324
  97. package/dist/components/tooltip/tooltip.js +0 -525
  98. package/dist/context-D2KUdwNL.js +0 -92
  99. package/dist/default-i18n-CT_oS1Fy.js +0 -922
  100. package/dist/filterDOMProps-EDDcM64A.js +0 -28
  101. package/dist/icons/block-icon.js +0 -42
  102. package/dist/icons/generic-color-swatch.js +0 -113
  103. package/dist/icons/icons.js +0 -30371
  104. package/dist/icons/index.js +0 -11
  105. package/dist/icons/jsx-svg.js +0 -50
  106. package/dist/index-641ee5b8.esm-BPz6U6sJ.js +0 -3137
  107. package/dist/index-BKGQ6jGS.js +0 -44
  108. package/dist/index-BYHhzLf-.js +0 -444
  109. package/dist/index.js +0 -139
  110. package/dist/lite-DVmmD_-j.js +0 -7
  111. package/dist/modifiers.esm-BuJQPI1X.js +0 -31
  112. package/dist/multi-select-components-BlZZoNXC.js +0 -3744
  113. package/dist/number-GajL10e1.js +0 -36
  114. package/dist/react-jsx-parser.min-DZCiis5V.js +0 -11753
  115. package/dist/react-select-async.esm-CwUoej5h.js +0 -107
  116. package/dist/react-select.esm-DcwYxadV.js +0 -15
  117. package/dist/style-admin.js +0 -1
  118. package/dist/style-editor.js +0 -1
  119. package/dist/style.js +0 -1
  120. package/dist/textSelection-0UUS8Yfg.js +0 -46
  121. package/dist/useButton-BpOKDWEN.js +0 -71
  122. package/dist/useEvent-B0b-6KBr.js +0 -23
  123. package/dist/useFocusRing-CV5l3lf6.js +0 -107
  124. package/dist/useFormReset-C5OggHsw.js +0 -22
  125. package/dist/useFormValidation-DhDNSjws.js +0 -224
  126. package/dist/useHover-DwDr6ozG.js +0 -900
  127. package/dist/useLabel-D7HkNEHT.js +0 -27
  128. package/dist/useLabels-D8cxd1Z8.js +0 -23
  129. package/dist/useListState-UGlN5-7P.js +0 -161
  130. package/dist/useLocalizedStringFormatter-CFP1YZWQ.js +0 -121
  131. package/dist/useNumberField-CEAj7Mrj.js +0 -1204
  132. package/dist/useNumberFormatter-321rAb4J.js +0 -13
  133. package/dist/usePress-DNW8qpY6.js +0 -664
  134. package/dist/useSingleSelectListState-DC0wWTUM.js +0 -38
  135. package/dist/useToggle-BrpmSOB-.js +0 -59
  136. package/dist/useToggleState-CmQX3SoX.js +0 -19
  137. package/dist/utilities/array-helpers.js +0 -56
  138. package/dist/utilities/debounce-throttle.js +0 -123
  139. package/dist/utilities/es-dash.js +0 -376
  140. package/dist/utilities/index.js +0 -27
  141. package/dist/utilities/text-helpers.js +0 -136
  142. package/dist/utils-DkCSC521.js +0 -370
  143. package/dist/wp/wp-font-enhancements.js +0 -1
  144. package/dist/wp/wp-ui-enhancements.js +0 -1
@@ -1,44 +0,0 @@
1
- import { c as clsx } from "./utils-DkCSC521.js";
2
- const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
3
- const cx = clsx;
4
- const cva = (base, config) => (props) => {
5
- var _config_compoundVariants;
6
- if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
7
- const { variants, defaultVariants } = config;
8
- const getVariantClassNames = Object.keys(variants).map((variant) => {
9
- const variantProp = props === null || props === void 0 ? void 0 : props[variant];
10
- const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
11
- if (variantProp === null) return null;
12
- const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
13
- return variants[variant][variantKey];
14
- });
15
- const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
16
- let [key, value] = param;
17
- if (value === void 0) {
18
- return acc;
19
- }
20
- acc[key] = value;
21
- return acc;
22
- }, {});
23
- const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
24
- let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
25
- return Object.entries(compoundVariantOptions).every((param2) => {
26
- let [key, value] = param2;
27
- return Array.isArray(value) ? value.includes({
28
- ...defaultVariants,
29
- ...propsWithoutUndefined
30
- }[key]) : {
31
- ...defaultVariants,
32
- ...propsWithoutUndefined
33
- }[key] === value;
34
- }) ? [
35
- ...acc,
36
- cvClass,
37
- cvClassName
38
- ] : acc;
39
- }, []);
40
- return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
41
- };
42
- export {
43
- cva as c
44
- };
@@ -1,444 +0,0 @@
1
- import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.js";
2
- import React__default from "react";
3
- var reactDom = { exports: {} };
4
- var reactDom_production = {};
5
- /**
6
- * @license React
7
- * react-dom.production.js
8
- *
9
- * Copyright (c) Meta Platforms, Inc. and affiliates.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */
14
- var hasRequiredReactDom_production;
15
- function requireReactDom_production() {
16
- if (hasRequiredReactDom_production) return reactDom_production;
17
- hasRequiredReactDom_production = 1;
18
- var React = React__default;
19
- function formatProdErrorMessage(code) {
20
- var url = "https://react.dev/errors/" + code;
21
- if (1 < arguments.length) {
22
- url += "?args[]=" + encodeURIComponent(arguments[1]);
23
- for (var i = 2; i < arguments.length; i++)
24
- url += "&args[]=" + encodeURIComponent(arguments[i]);
25
- }
26
- return "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
27
- }
28
- function noop() {
29
- }
30
- var Internals = {
31
- d: {
32
- f: noop,
33
- r: function() {
34
- throw Error(formatProdErrorMessage(522));
35
- },
36
- D: noop,
37
- C: noop,
38
- L: noop,
39
- m: noop,
40
- X: noop,
41
- S: noop,
42
- M: noop
43
- },
44
- p: 0,
45
- findDOMNode: null
46
- }, REACT_PORTAL_TYPE = Symbol.for("react.portal");
47
- function createPortal$1(children, containerInfo, implementation) {
48
- var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
49
- return {
50
- $$typeof: REACT_PORTAL_TYPE,
51
- key: null == key ? null : "" + key,
52
- children,
53
- containerInfo,
54
- implementation
55
- };
56
- }
57
- var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
58
- function getCrossOriginStringAs(as, input) {
59
- if ("font" === as) return "";
60
- if ("string" === typeof input)
61
- return "use-credentials" === input ? input : "";
62
- }
63
- reactDom_production.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
64
- reactDom_production.createPortal = function(children, container) {
65
- var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
66
- if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType)
67
- throw Error(formatProdErrorMessage(299));
68
- return createPortal$1(children, container, null, key);
69
- };
70
- reactDom_production.flushSync = function(fn) {
71
- var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
72
- try {
73
- if (ReactSharedInternals.T = null, Internals.p = 2, fn) return fn();
74
- } finally {
75
- ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f();
76
- }
77
- };
78
- reactDom_production.preconnect = function(href, options) {
79
- "string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options));
80
- };
81
- reactDom_production.prefetchDNS = function(href) {
82
- "string" === typeof href && Internals.d.D(href);
83
- };
84
- reactDom_production.preinit = function(href, options) {
85
- if ("string" === typeof href && options && "string" === typeof options.as) {
86
- var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0;
87
- "style" === as ? Internals.d.S(
88
- href,
89
- "string" === typeof options.precedence ? options.precedence : void 0,
90
- {
91
- crossOrigin,
92
- integrity,
93
- fetchPriority
94
- }
95
- ) : "script" === as && Internals.d.X(href, {
96
- crossOrigin,
97
- integrity,
98
- fetchPriority,
99
- nonce: "string" === typeof options.nonce ? options.nonce : void 0
100
- });
101
- }
102
- };
103
- reactDom_production.preinitModule = function(href, options) {
104
- if ("string" === typeof href)
105
- if ("object" === typeof options && null !== options) {
106
- if (null == options.as || "script" === options.as) {
107
- var crossOrigin = getCrossOriginStringAs(
108
- options.as,
109
- options.crossOrigin
110
- );
111
- Internals.d.M(href, {
112
- crossOrigin,
113
- integrity: "string" === typeof options.integrity ? options.integrity : void 0,
114
- nonce: "string" === typeof options.nonce ? options.nonce : void 0
115
- });
116
- }
117
- } else null == options && Internals.d.M(href);
118
- };
119
- reactDom_production.preload = function(href, options) {
120
- if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) {
121
- var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
122
- Internals.d.L(href, as, {
123
- crossOrigin,
124
- integrity: "string" === typeof options.integrity ? options.integrity : void 0,
125
- nonce: "string" === typeof options.nonce ? options.nonce : void 0,
126
- type: "string" === typeof options.type ? options.type : void 0,
127
- fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0,
128
- referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0,
129
- imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
130
- imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0,
131
- media: "string" === typeof options.media ? options.media : void 0
132
- });
133
- }
134
- };
135
- reactDom_production.preloadModule = function(href, options) {
136
- if ("string" === typeof href)
137
- if (options) {
138
- var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
139
- Internals.d.m(href, {
140
- as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
141
- crossOrigin,
142
- integrity: "string" === typeof options.integrity ? options.integrity : void 0
143
- });
144
- } else Internals.d.m(href);
145
- };
146
- reactDom_production.requestFormReset = function(form) {
147
- Internals.d.r(form);
148
- };
149
- reactDom_production.unstable_batchedUpdates = function(fn, a) {
150
- return fn(a);
151
- };
152
- reactDom_production.useFormState = function(action, initialState, permalink) {
153
- return ReactSharedInternals.H.useFormState(action, initialState, permalink);
154
- };
155
- reactDom_production.useFormStatus = function() {
156
- return ReactSharedInternals.H.useHostTransitionStatus();
157
- };
158
- reactDom_production.version = "19.0.0";
159
- return reactDom_production;
160
- }
161
- var reactDom_development = {};
162
- /**
163
- * @license React
164
- * react-dom.development.js
165
- *
166
- * Copyright (c) Meta Platforms, Inc. and affiliates.
167
- *
168
- * This source code is licensed under the MIT license found in the
169
- * LICENSE file in the root directory of this source tree.
170
- */
171
- var hasRequiredReactDom_development;
172
- function requireReactDom_development() {
173
- if (hasRequiredReactDom_development) return reactDom_development;
174
- hasRequiredReactDom_development = 1;
175
- "production" !== process.env.NODE_ENV && function() {
176
- function noop() {
177
- }
178
- function testStringCoercion(value) {
179
- return "" + value;
180
- }
181
- function createPortal$1(children, containerInfo, implementation) {
182
- var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
183
- try {
184
- testStringCoercion(key);
185
- var JSCompiler_inline_result = false;
186
- } catch (e) {
187
- JSCompiler_inline_result = true;
188
- }
189
- JSCompiler_inline_result && (console.error(
190
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
191
- "function" === typeof Symbol && Symbol.toStringTag && key[Symbol.toStringTag] || key.constructor.name || "Object"
192
- ), testStringCoercion(key));
193
- return {
194
- $$typeof: REACT_PORTAL_TYPE,
195
- key: null == key ? null : "" + key,
196
- children,
197
- containerInfo,
198
- implementation
199
- };
200
- }
201
- function getCrossOriginStringAs(as, input) {
202
- if ("font" === as) return "";
203
- if ("string" === typeof input)
204
- return "use-credentials" === input ? input : "";
205
- }
206
- function getValueDescriptorExpectingObjectForWarning(thing) {
207
- return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : 'something with type "' + typeof thing + '"';
208
- }
209
- function getValueDescriptorExpectingEnumForWarning(thing) {
210
- return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : "string" === typeof thing ? JSON.stringify(thing) : "number" === typeof thing ? "`" + thing + "`" : 'something with type "' + typeof thing + '"';
211
- }
212
- function resolveDispatcher() {
213
- var dispatcher = ReactSharedInternals.H;
214
- null === dispatcher && console.error(
215
- "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
216
- );
217
- return dispatcher;
218
- }
219
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
220
- var React = React__default, Internals = {
221
- d: {
222
- f: noop,
223
- r: function() {
224
- throw Error(
225
- "Invalid form element. requestFormReset must be passed a form that was rendered by React."
226
- );
227
- },
228
- D: noop,
229
- C: noop,
230
- L: noop,
231
- m: noop,
232
- X: noop,
233
- S: noop,
234
- M: noop
235
- },
236
- p: 0,
237
- findDOMNode: null
238
- }, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
239
- "function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error(
240
- "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
241
- );
242
- reactDom_development.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
243
- reactDom_development.createPortal = function(children, container) {
244
- var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
245
- if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType)
246
- throw Error("Target container is not a DOM element.");
247
- return createPortal$1(children, container, null, key);
248
- };
249
- reactDom_development.flushSync = function(fn) {
250
- var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
251
- try {
252
- if (ReactSharedInternals.T = null, Internals.p = 2, fn)
253
- return fn();
254
- } finally {
255
- ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f() && console.error(
256
- "flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
257
- );
258
- }
259
- };
260
- reactDom_development.preconnect = function(href, options) {
261
- "string" === typeof href && href ? null != options && "object" !== typeof options ? console.error(
262
- "ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
263
- getValueDescriptorExpectingEnumForWarning(options)
264
- ) : null != options && "string" !== typeof options.crossOrigin && console.error(
265
- "ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
266
- getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
267
- ) : console.error(
268
- "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
269
- getValueDescriptorExpectingObjectForWarning(href)
270
- );
271
- "string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options));
272
- };
273
- reactDom_development.prefetchDNS = function(href) {
274
- if ("string" !== typeof href || !href)
275
- console.error(
276
- "ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
277
- getValueDescriptorExpectingObjectForWarning(href)
278
- );
279
- else if (1 < arguments.length) {
280
- var options = arguments[1];
281
- "object" === typeof options && options.hasOwnProperty("crossOrigin") ? console.error(
282
- "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
283
- getValueDescriptorExpectingEnumForWarning(options)
284
- ) : console.error(
285
- "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
286
- getValueDescriptorExpectingEnumForWarning(options)
287
- );
288
- }
289
- "string" === typeof href && Internals.d.D(href);
290
- };
291
- reactDom_development.preinit = function(href, options) {
292
- "string" === typeof href && href ? null == options || "object" !== typeof options ? console.error(
293
- "ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
294
- getValueDescriptorExpectingEnumForWarning(options)
295
- ) : "style" !== options.as && "script" !== options.as && console.error(
296
- 'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
297
- getValueDescriptorExpectingEnumForWarning(options.as)
298
- ) : console.error(
299
- "ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
300
- getValueDescriptorExpectingObjectForWarning(href)
301
- );
302
- if ("string" === typeof href && options && "string" === typeof options.as) {
303
- var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0;
304
- "style" === as ? Internals.d.S(
305
- href,
306
- "string" === typeof options.precedence ? options.precedence : void 0,
307
- {
308
- crossOrigin,
309
- integrity,
310
- fetchPriority
311
- }
312
- ) : "script" === as && Internals.d.X(href, {
313
- crossOrigin,
314
- integrity,
315
- fetchPriority,
316
- nonce: "string" === typeof options.nonce ? options.nonce : void 0
317
- });
318
- }
319
- };
320
- reactDom_development.preinitModule = function(href, options) {
321
- var encountered = "";
322
- "string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
323
- void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "script" !== options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingEnumForWarning(options.as) + ".");
324
- if (encountered)
325
- console.error(
326
- "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
327
- encountered
328
- );
329
- else
330
- switch (encountered = options && "string" === typeof options.as ? options.as : "script", encountered) {
331
- case "script":
332
- break;
333
- default:
334
- encountered = getValueDescriptorExpectingEnumForWarning(encountered), console.error(
335
- 'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
336
- encountered,
337
- href
338
- );
339
- }
340
- if ("string" === typeof href)
341
- if ("object" === typeof options && null !== options) {
342
- if (null == options.as || "script" === options.as)
343
- encountered = getCrossOriginStringAs(
344
- options.as,
345
- options.crossOrigin
346
- ), Internals.d.M(href, {
347
- crossOrigin: encountered,
348
- integrity: "string" === typeof options.integrity ? options.integrity : void 0,
349
- nonce: "string" === typeof options.nonce ? options.nonce : void 0
350
- });
351
- } else null == options && Internals.d.M(href);
352
- };
353
- reactDom_development.preload = function(href, options) {
354
- var encountered = "";
355
- "string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
356
- null == options || "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : "string" === typeof options.as && options.as || (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".");
357
- encountered && console.error(
358
- 'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
359
- encountered
360
- );
361
- if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) {
362
- encountered = options.as;
363
- var crossOrigin = getCrossOriginStringAs(
364
- encountered,
365
- options.crossOrigin
366
- );
367
- Internals.d.L(href, encountered, {
368
- crossOrigin,
369
- integrity: "string" === typeof options.integrity ? options.integrity : void 0,
370
- nonce: "string" === typeof options.nonce ? options.nonce : void 0,
371
- type: "string" === typeof options.type ? options.type : void 0,
372
- fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0,
373
- referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0,
374
- imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
375
- imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0,
376
- media: "string" === typeof options.media ? options.media : void 0
377
- });
378
- }
379
- };
380
- reactDom_development.preloadModule = function(href, options) {
381
- var encountered = "";
382
- "string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
383
- void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "string" !== typeof options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".");
384
- encountered && console.error(
385
- 'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
386
- encountered
387
- );
388
- "string" === typeof href && (options ? (encountered = getCrossOriginStringAs(
389
- options.as,
390
- options.crossOrigin
391
- ), Internals.d.m(href, {
392
- as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
393
- crossOrigin: encountered,
394
- integrity: "string" === typeof options.integrity ? options.integrity : void 0
395
- })) : Internals.d.m(href));
396
- };
397
- reactDom_development.requestFormReset = function(form) {
398
- Internals.d.r(form);
399
- };
400
- reactDom_development.unstable_batchedUpdates = function(fn, a) {
401
- return fn(a);
402
- };
403
- reactDom_development.useFormState = function(action, initialState, permalink) {
404
- return resolveDispatcher().useFormState(action, initialState, permalink);
405
- };
406
- reactDom_development.useFormStatus = function() {
407
- return resolveDispatcher().useHostTransitionStatus();
408
- };
409
- reactDom_development.version = "19.0.0";
410
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
411
- }();
412
- return reactDom_development;
413
- }
414
- var hasRequiredReactDom;
415
- function requireReactDom() {
416
- if (hasRequiredReactDom) return reactDom.exports;
417
- hasRequiredReactDom = 1;
418
- function checkDCE() {
419
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
420
- return;
421
- }
422
- if (process.env.NODE_ENV !== "production") {
423
- throw new Error("^_^");
424
- }
425
- try {
426
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
427
- } catch (err) {
428
- console.error(err);
429
- }
430
- }
431
- if (process.env.NODE_ENV === "production") {
432
- checkDCE();
433
- reactDom.exports = requireReactDom_production();
434
- } else {
435
- reactDom.exports = requireReactDom_development();
436
- }
437
- return reactDom.exports;
438
- }
439
- var reactDomExports = requireReactDom();
440
- const $dbSRa$reactdom = /* @__PURE__ */ getDefaultExportFromCjs(reactDomExports);
441
- export {
442
- $dbSRa$reactdom as $,
443
- reactDomExports as r
444
- };
package/dist/index.js DELETED
@@ -1,139 +0,0 @@
1
- import { AnimatedVisibility } from "./components/animated-visibility/animated-visibility.js";
2
- import { BaseControl } from "./components/base-control/base-control.js";
3
- import { BreakpointPreview } from "./components/breakpoint-preview/breakpoint-preview.js";
4
- import { Button, ButtonGroup } from "./components/button/button.js";
5
- import { Checkbox } from "./components/checkbox/checkbox.js";
6
- import { ComponentToggle } from "./components/component-toggle/component-toggle.js";
7
- import { ContainerPanel } from "./components/container-panel/container-panel.js";
8
- import { ColorSwatch } from "./components/color-pickers/color-swatch.js";
9
- import { ColorPicker } from "./components/color-pickers/color-picker.js";
10
- import { ColumnConfigSlider, ColumnConfigSliderOutput } from "./components/slider/column-config-slider.js";
11
- import { DraggableList } from "./components/draggable-list/draggable-list.js";
12
- import { DraggableListItem, DraggableListItemHandle } from "./components/draggable-list/draggable-list-item.js";
13
- import { DraggableContext } from "./components/draggable/draggable-context.js";
14
- import { Draggable } from "./components/draggable/draggable.js";
15
- import { DraggableHandle } from "./components/draggable/draggable-handle.js";
16
- import { Expandable } from "./components/expandable/expandable.js";
17
- import { FilePlaceholder } from "./components/placeholders/file-placeholder.js";
18
- import { GradientEditor } from "./components/color-pickers/gradient-editor.js";
19
- import { HStack } from "./components/layout/hstack.js";
20
- import { RichLabel } from "./components/rich-label/rich-label.js";
21
- import { InputField } from "./components/input-field/input-field.js";
22
- import { ImagePlaceholder } from "./components/placeholders/image-placeholder.js";
23
- import { ItemCollection } from "./components/item-collection/item-collection.js";
24
- import { LinkInput } from "./components/link-input/link-input.js";
25
- import { MatrixAlign } from "./components/matrix-align/matrix-align.js";
26
- import { MediaPlaceholder } from "./components/placeholders/media-placeholder.js";
27
- import { Menu, MenuItem, MenuSection, MenuSeparator, SubMenuItem } from "./components/menu/menu.js";
28
- import { MiniResponsive } from "./components/responsive/mini-responsive.js";
29
- import { Notice } from "./components/notice/notice.js";
30
- import { NumberPicker } from "./components/number-picker/number-picker.js";
31
- import { Popover, TriggeredPopover } from "./components/popover/popover.js";
32
- import { RadioButton, RadioButtonGroup } from "./components/radio/radio.js";
33
- import { Repeater } from "./components/repeater/repeater.js";
34
- import { RepeaterItem } from "./components/repeater/repeater-item.js";
35
- import { Responsive } from "./components/responsive/responsive.js";
36
- import { ResponsiveLegacy } from "./components/responsive/responsive-legacy.js";
37
- import { ResponsivePreview } from "./components/responsive-preview/responsive-preview.js";
38
- import { AsyncMultiSelect } from "./components/select/async-multi-select.js";
39
- import { AsyncSelect } from "./components/select/async-single-select.js";
40
- import { __ExperimentalAsyncSelect } from "./components/select/v2/async-select.js";
41
- import { __ExperimentalSelect } from "./components/select/v2/single-select.js";
42
- import { Modal } from "./components/modal/modal.js";
43
- import { MultiSelect } from "./components/select/multi-select.js";
44
- import { RSClearIndicator, RSDropdownIndicator, RSMultiValue, RSMultiValueContainer, RSMultiValueLabel, RSMultiValueRemove, RSOption, RSSingleValue } from "./components/select/react-select-component-wrappers.js";
45
- import { OptionSelect } from "./components/option-select/option-select.js";
46
- import { OptionsPanel, OptionsPanelHeader, OptionsPanelIntro, OptionsPanelSection } from "./components/options-panel/options-panel.js";
47
- import { Select } from "./components/select/single-select.js";
48
- import { Slider } from "./components/slider/slider.js";
49
- import { SolidColorPicker } from "./components/color-pickers/solid-color-picker.js";
50
- import { Spacer } from "./components/spacer/spacer.js";
51
- import { Tab, TabList, TabPanel, Tabs } from "./components/tabs/tabs.js";
52
- import { Toggle } from "./components/toggle/toggle.js";
53
- import { Switch } from "./components/toggle/switch.js";
54
- import { ToggleButton } from "./components/toggle-button/toggle-button.js";
55
- import { DecorativeTooltip, Tooltip } from "./components/tooltip/tooltip.js";
56
- import { VStack } from "./components/layout/vstack.js";
57
- import { getColumnConfigOutputText } from "./components/slider/utils.js";
58
- export {
59
- AnimatedVisibility,
60
- AsyncMultiSelect,
61
- AsyncSelect,
62
- BaseControl,
63
- BreakpointPreview,
64
- Button,
65
- ButtonGroup,
66
- Checkbox,
67
- ColorPicker,
68
- ColorSwatch,
69
- ColumnConfigSlider,
70
- ColumnConfigSliderOutput,
71
- ComponentToggle,
72
- ContainerPanel,
73
- DecorativeTooltip,
74
- Draggable,
75
- DraggableContext,
76
- DraggableHandle,
77
- DraggableList,
78
- DraggableListItem,
79
- DraggableListItemHandle,
80
- Expandable,
81
- FilePlaceholder,
82
- GradientEditor,
83
- HStack,
84
- ImagePlaceholder,
85
- InputField,
86
- ItemCollection,
87
- LinkInput,
88
- MatrixAlign,
89
- MediaPlaceholder,
90
- Menu,
91
- MenuItem,
92
- MenuSection,
93
- MenuSeparator,
94
- MiniResponsive,
95
- Modal,
96
- MultiSelect,
97
- Notice,
98
- NumberPicker,
99
- OptionSelect,
100
- OptionsPanel,
101
- OptionsPanelHeader,
102
- OptionsPanelIntro,
103
- OptionsPanelSection,
104
- Popover,
105
- RSClearIndicator,
106
- RSDropdownIndicator,
107
- RSMultiValue,
108
- RSMultiValueContainer,
109
- RSMultiValueLabel,
110
- RSMultiValueRemove,
111
- RSOption,
112
- RSSingleValue,
113
- RadioButton,
114
- RadioButtonGroup,
115
- Repeater,
116
- RepeaterItem,
117
- Responsive,
118
- ResponsiveLegacy,
119
- ResponsivePreview,
120
- RichLabel,
121
- Select,
122
- Slider,
123
- SolidColorPicker,
124
- Spacer,
125
- SubMenuItem,
126
- Switch,
127
- Tab,
128
- TabList,
129
- TabPanel,
130
- Tabs,
131
- Toggle,
132
- ToggleButton,
133
- Tooltip,
134
- TriggeredPopover,
135
- VStack,
136
- __ExperimentalAsyncSelect,
137
- __ExperimentalSelect,
138
- getColumnConfigOutputText
139
- };
@@ -1,7 +0,0 @@
1
- function clsx() {
2
- for (var t, r = 0, e = "", n = arguments.length; r < n; r++) (t = arguments[r]) && "string" == typeof t && (e += (e && " ") + t);
3
- return e;
4
- }
5
- export {
6
- clsx as c
7
- };
@@ -1,31 +0,0 @@
1
- import "react";
2
- function restrictToBoundingRect(transform, rect, boundingRect) {
3
- const value = {
4
- ...transform
5
- };
6
- if (rect.top + transform.y <= boundingRect.top) {
7
- value.y = boundingRect.top - rect.top;
8
- } else if (rect.bottom + transform.y >= boundingRect.top + boundingRect.height) {
9
- value.y = boundingRect.top + boundingRect.height - rect.bottom;
10
- }
11
- if (rect.left + transform.x <= boundingRect.left) {
12
- value.x = boundingRect.left - rect.left;
13
- } else if (rect.right + transform.x >= boundingRect.left + boundingRect.width) {
14
- value.x = boundingRect.left + boundingRect.width - rect.right;
15
- }
16
- return value;
17
- }
18
- const restrictToParentElement = (_ref) => {
19
- let {
20
- containerNodeRect,
21
- draggingNodeRect,
22
- transform
23
- } = _ref;
24
- if (!draggingNodeRect || !containerNodeRect) {
25
- return transform;
26
- }
27
- return restrictToBoundingRect(transform, draggingNodeRect, containerNodeRect);
28
- };
29
- export {
30
- restrictToParentElement as r
31
- };