@eightshift/ui-components 1.0.5 → 1.1.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.
- package/README.md +9 -0
- package/dist/{Button-eebLs4cp.js → Button-CbFrFO04.js} +5 -5
- package/dist/{Checkbox-BN0TEda-.js → Checkbox-Cv3pZDHg.js} +12 -16
- package/dist/{ColorSwatch-BrowHhTG.js → ColorSwatch-CNQmCQV8.js} +6 -7
- package/dist/{FieldError-ILxgMZy5.js → FieldError-J1-YPbi6.js} +2 -2
- package/dist/{FocusScope-B9b0VMib.js → FocusScope-Bw-IatMO.js} +79 -153
- package/dist/{GridList-CzpWxJsS.js → GridList-CEzzyr-l.js} +62 -90
- package/dist/{Group-Dkdm2-E7.js → Group-D3Qa6PrV.js} +3 -3
- package/dist/{Input-BJA4rmIo.js → Input-CX_rocyZ.js} +8 -8
- package/dist/{Label-9x5iLJ-Y.js → Label-Bg5O81Wb.js} +1 -1
- package/dist/{ListBox-D3Vr4vvC.js → ListBox-CCWXTj0t.js} +391 -598
- package/dist/{LiveAnnouncer-IsokfWQ5.js → LiveAnnouncer-D8h-3GrG.js} +12 -22
- package/dist/{NumberFormatter-LzoKy975.js → NumberFormatter-U_Gx0UDq.js} +26 -44
- package/dist/{Select-49a62830.esm-CKPmlkza.js → Select-49a62830.esm-BnlXlUnT.js} +92 -166
- package/dist/{SelectionManager-sedvcM-1.js → SelectionManager-XOAt-Ekx.js} +219 -401
- package/dist/{Separator-B6rnDabE.js → Separator-DZeg0KOr.js} +41 -72
- package/dist/{Slider-C5U5N7uM.js → Slider-fULMI0gI.js} +51 -82
- package/dist/{Text-Cyxp9ewv.js → Text-WqetJduR.js} +1 -1
- package/dist/{VisuallyHidden-BPJVSUyp.js → VisuallyHidden-Di1zXprL.js} +8 -11
- package/dist/{ariaHideOutside-ByKBPHmX.js → ariaHideOutside-Zn64-frS.js} +20 -36
- package/dist/assets/style.css +1 -1
- package/dist/assets/wp-font-enhancements.css +1 -1
- package/dist/assets/wp-ui-enhancements.css +1 -1
- package/dist/{button-idVI4jmd.js → button-CD8Q1eok.js} +17 -29
- package/dist/components/animated-visibility/animated-visibility.js +125 -113
- package/dist/components/base-control/base-control.js +3 -9
- package/dist/components/breakpoint-preview/breakpoint-preview.js +51 -108
- package/dist/components/button/button.js +6 -6
- package/dist/components/checkbox/checkbox.js +2 -2
- package/dist/components/color-pickers/color-picker.js +2 -2
- package/dist/components/color-pickers/color-swatch.js +5 -9
- package/dist/components/color-pickers/gradient-editor.js +15 -29
- package/dist/components/color-pickers/solid-color-picker.js +81 -128
- package/dist/components/component-toggle/component-toggle.js +4 -4
- package/dist/components/container-panel/container-panel.js +4 -11
- package/dist/components/draggable-list/draggable-list-item.js +4 -4
- package/dist/components/draggable-list/draggable-list.js +5 -5
- package/dist/components/expandable/expandable.js +45 -57
- package/dist/components/index.js +3 -3
- package/dist/components/input-field/input-field.js +11 -26
- package/dist/components/layout/hstack.js +2 -12
- package/dist/components/layout/vstack.js +2 -12
- package/dist/components/link-input/link-input.js +36 -53
- package/dist/components/list-box/list-box.js +4 -4
- package/dist/components/matrix-align/matrix-align.js +6 -10
- package/dist/components/menu/menu.js +101 -170
- package/dist/components/notice/notice.js +1 -1
- package/dist/components/number-picker/number-picker.js +15 -15
- package/dist/components/option-select/option-select.js +52 -70
- package/dist/components/options-panel/options-panel.js +3 -3
- package/dist/components/placeholders/file-placeholder.js +2 -2
- package/dist/components/placeholders/image-placeholder.js +1 -1
- package/dist/components/placeholders/media-placeholder.js +1 -1
- package/dist/components/popover/popover.js +4 -4
- package/dist/components/radio/radio.js +25 -38
- package/dist/components/repeater/repeater-item.js +6 -17
- package/dist/components/repeater/repeater.js +6 -7
- package/dist/components/responsive/responsive-legacy.js +27 -15
- package/dist/components/responsive/responsive.js +53 -52
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/rich-label/rich-label.js +2 -8
- package/dist/components/select/async-multi-select.js +3 -3
- package/dist/components/select/async-single-select.js +2 -2
- package/dist/components/select/custom-select-default-components.js +2 -2
- package/dist/components/select/multi-select-components.js +2 -2
- package/dist/components/select/multi-select.js +3 -3
- package/dist/components/select/react-select-component-wrappers.js +9 -9
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/styles.js +3 -10
- package/dist/components/slider/column-config-slider.js +4 -4
- package/dist/components/slider/slider.js +5 -8
- package/dist/components/slider/utils.js +2 -6
- package/dist/components/spacer/spacer.js +2 -7
- package/dist/components/tabs/tabs.js +29 -50
- package/dist/components/toggle/switch.js +8 -8
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +8 -22
- package/dist/components/tooltip/tooltip.js +4 -4
- package/dist/{context-BAcFg5GO.js → context-4oSz1ItD.js} +10 -16
- package/dist/{default-i18n-Bk1GxDHz.js → default-i18n-BqwLkgZv.js} +21 -22
- package/dist/{filterDOMProps-DG2RfOUr.js → filterDOMProps-EDDcM64A.js} +1 -3
- package/dist/{focusSafely-B0hyd-S4.js → focusSafely-BS4dllCW.js} +85 -143
- package/dist/icons/generic-color-swatch.js +105 -13
- package/dist/icons/icons.js +31010 -3447
- package/dist/icons/jsx-svg.js +591 -953
- package/dist/{index-BDk0TPWz.js → index-CAPcSs9K.js} +1504 -2087
- package/dist/{index-a301f526.esm-BzTuHLdr.js → index-a301f526.esm-ByOfDxiG.js} +111 -183
- package/dist/index.js +3 -3
- package/dist/{intlStrings-Ctkp0HDc.js → intlStrings-Dxaeitoh.js} +35 -60
- package/dist/{isScrollable-PcyglExV.js → isScrollable-Dh9D9IOd.js} +1 -2
- package/dist/lite-DVmmD_-j.js +7 -0
- package/dist/{multi-select-components-nORKdJ-2.js → multi-select-components-7vKCF8dG.js} +3 -3
- package/dist/{number-rWqELA8W.js → number-CHmNj-oR.js} +3 -6
- package/dist/{popover-o2Q28Ljn.js → popover-Dk2o4S7K.js} +70 -112
- package/dist/{react-select-async.esm-CLj9uZTq.js → react-select-async.esm-5zW9Dv9E.js} +7 -11
- package/dist/{react-select.esm-3tyTZmrx.js → react-select.esm-Bi6uzjbT.js} +3 -3
- package/dist/{textSelection-BRZdHY-4.js → textSelection-exP_9srp.js} +5 -9
- package/dist/{tooltip-T6H9uF-Z.js → tooltip-BRQ4tvZL.js} +64 -111
- package/dist/{useButton-D-xACzEY.js → useButton-DbjDV_33.js} +19 -22
- package/dist/{useEvent-XlYPKgwX.js → useEvent-zvxfEnmK.js} +2 -3
- package/dist/{useFocusRing-CRx_hYC4.js → useFocusRing-SPRI0-SN.js} +1 -1
- package/dist/{useFocusable-CHfpEdlE.js → useFocusable-CLmhO94g.js} +5 -8
- package/dist/{useFormReset-aHn6-wRk.js → useFormReset-BVWgcyGO.js} +2 -3
- package/dist/{useFormValidationState-CdYmOaXI.js → useFormValidationState-CthG9Fbc.js} +20 -38
- package/dist/{useHasTabbableChild-domoFB7A.js → useHasTabbableChild--gkWUICh.js} +2 -2
- package/dist/{useLabel-DVhXVhtH.js → useLabel-g836T8kL.js} +3 -4
- package/dist/{useLabels-C7E5SkOi.js → useLabels-CfOtyOe2.js} +3 -5
- package/dist/{useListData-BelKu4kx.js → useListData-BpYQj7kK.js} +18 -32
- package/dist/{useListState-BRsq7O1C.js → useListState-DnWZa__1.js} +6 -12
- package/dist/{useLocalizedStringFormatter-WsEL47qR.js → useLocalizedStringFormatter-BQCMno9k.js} +12 -21
- package/dist/{useNumberFieldState-ZH2Qyyxh.js → useNumberFieldState-BegO5X6F.js} +75 -132
- package/dist/{useNumberFormatter-mhdYLxWQ.js → useNumberFormatter-DhOGEsEK.js} +2 -2
- package/dist/{usePress-B42RawCH.js → usePress-CScNeV3V.js} +92 -175
- package/dist/{useToggle-CExfZM8x.js → useToggle-6LnpaJ7-.js} +6 -7
- package/dist/{useToggleState-DghG5ImG.js → useToggleState-Cymkpac8.js} +3 -5
- package/dist/utilities/array-helpers.js +1 -1
- package/dist/utilities/index.js +1 -1
- package/dist/utilities/text-helpers.js +20 -20
- package/dist/{utils-DIBzm1e4.js → utils-Dc35LwuT.js} +49 -90
- package/package.json +96 -90
- package/dist/lite-pbIeT7tm.js +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { forwardRef, useContext, useLayoutEffect, useRef, useState, useMemo, useCallback, createContext } from "react";
|
|
3
|
-
import { r as reactDomExports } from "./index-
|
|
3
|
+
import { r as reactDomExports } from "./index-CAPcSs9K.js";
|
|
4
4
|
function _typeof(o) {
|
|
5
5
|
"@babel/helpers - typeof";
|
|
6
6
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
@@ -10,13 +10,11 @@ function _typeof(o) {
|
|
|
10
10
|
}, _typeof(o);
|
|
11
11
|
}
|
|
12
12
|
function toPrimitive(t, r) {
|
|
13
|
-
if ("object" != _typeof(t) || !t)
|
|
14
|
-
return t;
|
|
13
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
15
14
|
var e = t[Symbol.toPrimitive];
|
|
16
15
|
if (void 0 !== e) {
|
|
17
16
|
var i = e.call(t, r || "default");
|
|
18
|
-
if ("object" != _typeof(i))
|
|
19
|
-
return i;
|
|
17
|
+
if ("object" != _typeof(i)) return i;
|
|
20
18
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
21
19
|
}
|
|
22
20
|
return ("string" === r ? String : Number)(t);
|
|
@@ -25,19 +23,13 @@ function toPropertyKey(t) {
|
|
|
25
23
|
var i = toPrimitive(t, "string");
|
|
26
24
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
27
25
|
}
|
|
28
|
-
function _defineProperty(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
writable: true
|
|
36
|
-
});
|
|
37
|
-
} else {
|
|
38
|
-
obj[key] = value;
|
|
39
|
-
}
|
|
40
|
-
return obj;
|
|
26
|
+
function _defineProperty(e, r, t) {
|
|
27
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
28
|
+
value: t,
|
|
29
|
+
enumerable: true,
|
|
30
|
+
configurable: true,
|
|
31
|
+
writable: true
|
|
32
|
+
}) : e[r] = t, e;
|
|
41
33
|
}
|
|
42
34
|
function ownKeys(e, r) {
|
|
43
35
|
var t = Object.keys(e);
|
|
@@ -60,9 +52,8 @@ function _objectSpread2(e) {
|
|
|
60
52
|
}
|
|
61
53
|
return e;
|
|
62
54
|
}
|
|
63
|
-
function _arrayWithHoles(
|
|
64
|
-
if (Array.isArray(
|
|
65
|
-
return arr;
|
|
55
|
+
function _arrayWithHoles(r) {
|
|
56
|
+
if (Array.isArray(r)) return r;
|
|
66
57
|
}
|
|
67
58
|
function _iterableToArrayLimit(r, l) {
|
|
68
59
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -70,96 +61,65 @@ function _iterableToArrayLimit(r, l) {
|
|
|
70
61
|
var e, n, i, u, a = [], f = true, o = false;
|
|
71
62
|
try {
|
|
72
63
|
if (i = (t = t.call(r)).next, 0 === l) {
|
|
73
|
-
if (Object(t) !== t)
|
|
74
|
-
return;
|
|
64
|
+
if (Object(t) !== t) return;
|
|
75
65
|
f = false;
|
|
76
|
-
} else
|
|
77
|
-
for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true)
|
|
78
|
-
;
|
|
66
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true) ;
|
|
79
67
|
} catch (r2) {
|
|
80
68
|
o = true, n = r2;
|
|
81
69
|
} finally {
|
|
82
70
|
try {
|
|
83
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u))
|
|
84
|
-
return;
|
|
71
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
85
72
|
} finally {
|
|
86
|
-
if (o)
|
|
87
|
-
throw n;
|
|
73
|
+
if (o) throw n;
|
|
88
74
|
}
|
|
89
75
|
}
|
|
90
76
|
return a;
|
|
91
77
|
}
|
|
92
78
|
}
|
|
93
|
-
function _arrayLikeToArray(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
arr2[i] = arr[i];
|
|
98
|
-
return arr2;
|
|
79
|
+
function _arrayLikeToArray(r, a) {
|
|
80
|
+
(null == a || a > r.length) && (a = r.length);
|
|
81
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
82
|
+
return n;
|
|
99
83
|
}
|
|
100
|
-
function _unsupportedIterableToArray(
|
|
101
|
-
if (
|
|
102
|
-
return;
|
|
103
|
-
|
|
104
|
-
return _arrayLikeToArray(
|
|
105
|
-
|
|
106
|
-
if (n === "Object" && o.constructor)
|
|
107
|
-
n = o.constructor.name;
|
|
108
|
-
if (n === "Map" || n === "Set")
|
|
109
|
-
return Array.from(o);
|
|
110
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
111
|
-
return _arrayLikeToArray(o, minLen);
|
|
84
|
+
function _unsupportedIterableToArray(r, a) {
|
|
85
|
+
if (r) {
|
|
86
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
87
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
88
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
89
|
+
}
|
|
112
90
|
}
|
|
113
91
|
function _nonIterableRest() {
|
|
114
92
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
115
93
|
}
|
|
116
|
-
function _slicedToArray(
|
|
117
|
-
return _arrayWithHoles(
|
|
94
|
+
function _slicedToArray(r, e) {
|
|
95
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
118
96
|
}
|
|
119
|
-
function _objectWithoutPropertiesLoose(
|
|
120
|
-
if (
|
|
121
|
-
|
|
122
|
-
var
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
if (excluded.indexOf(key) >= 0)
|
|
126
|
-
continue;
|
|
127
|
-
target[key] = source[key];
|
|
128
|
-
}
|
|
97
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
98
|
+
if (null == r) return {};
|
|
99
|
+
var t = {};
|
|
100
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
101
|
+
if (e.indexOf(n) >= 0) continue;
|
|
102
|
+
t[n] = r[n];
|
|
129
103
|
}
|
|
130
|
-
return
|
|
104
|
+
return t;
|
|
131
105
|
}
|
|
132
|
-
function _objectWithoutProperties(
|
|
133
|
-
if (
|
|
134
|
-
|
|
135
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
136
|
-
var key, i;
|
|
106
|
+
function _objectWithoutProperties(e, t) {
|
|
107
|
+
if (null == e) return {};
|
|
108
|
+
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
137
109
|
if (Object.getOwnPropertySymbols) {
|
|
138
|
-
var
|
|
139
|
-
for (
|
|
140
|
-
key = sourceSymbolKeys[i];
|
|
141
|
-
if (excluded.indexOf(key) >= 0)
|
|
142
|
-
continue;
|
|
143
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
144
|
-
continue;
|
|
145
|
-
target[key] = source[key];
|
|
146
|
-
}
|
|
110
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
111
|
+
for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
147
112
|
}
|
|
148
|
-
return
|
|
113
|
+
return i;
|
|
149
114
|
}
|
|
150
115
|
function _extends() {
|
|
151
|
-
_extends = Object.assign ? Object.assign.bind() : function(
|
|
152
|
-
for (var
|
|
153
|
-
var
|
|
154
|
-
for (var
|
|
155
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
156
|
-
target[key] = source[key];
|
|
157
|
-
}
|
|
158
|
-
}
|
|
116
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
117
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
118
|
+
var t = arguments[e];
|
|
119
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
159
120
|
}
|
|
160
|
-
return
|
|
161
|
-
};
|
|
162
|
-
return _extends.apply(this, arguments);
|
|
121
|
+
return n;
|
|
122
|
+
}, _extends.apply(null, arguments);
|
|
163
123
|
}
|
|
164
124
|
function sheetForTag(tag) {
|
|
165
125
|
if (tag.sheet) {
|
|
@@ -482,8 +442,7 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
482
442
|
case 125:
|
|
483
443
|
scanning = 0;
|
|
484
444
|
case 59 + offset:
|
|
485
|
-
if (ampersand == -1)
|
|
486
|
-
characters2 = replace(characters2, /\f/g, "");
|
|
445
|
+
if (ampersand == -1) characters2 = replace(characters2, /\f/g, "");
|
|
487
446
|
if (property > 0 && strlen(characters2) - length2)
|
|
488
447
|
append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
|
|
489
448
|
break;
|
|
@@ -562,8 +521,7 @@ function serialize(children, callback) {
|
|
|
562
521
|
function stringify(element, index2, children, callback) {
|
|
563
522
|
switch (element.type) {
|
|
564
523
|
case LAYER:
|
|
565
|
-
if (element.children.length)
|
|
566
|
-
break;
|
|
524
|
+
if (element.children.length) break;
|
|
567
525
|
case IMPORT:
|
|
568
526
|
case DECLARATION:
|
|
569
527
|
return element.return = element.return || element.value;
|
|
@@ -596,8 +554,7 @@ function rulesheet(callback) {
|
|
|
596
554
|
function memoize(fn) {
|
|
597
555
|
var cache = /* @__PURE__ */ Object.create(null);
|
|
598
556
|
return function(arg) {
|
|
599
|
-
if (cache[arg] === void 0)
|
|
600
|
-
cache[arg] = fn(arg);
|
|
557
|
+
if (cache[arg] === void 0) cache[arg] = fn(arg);
|
|
601
558
|
return cache[arg];
|
|
602
559
|
};
|
|
603
560
|
}
|
|
@@ -657,8 +614,7 @@ var compat = function compat2(element) {
|
|
|
657
614
|
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
|
658
615
|
while (parent.type !== "rule") {
|
|
659
616
|
parent = parent.parent;
|
|
660
|
-
if (!parent)
|
|
661
|
-
return;
|
|
617
|
+
if (!parent) return;
|
|
662
618
|
}
|
|
663
619
|
if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) {
|
|
664
620
|
return;
|
|
@@ -695,8 +651,7 @@ var isIgnoringComment = function isIgnoringComment2(element) {
|
|
|
695
651
|
};
|
|
696
652
|
var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm2(cache) {
|
|
697
653
|
return function(element, index2, children) {
|
|
698
|
-
if (element.type !== "rule" || cache.compat)
|
|
699
|
-
return;
|
|
654
|
+
if (element.type !== "rule" || cache.compat) return;
|
|
700
655
|
var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
|
|
701
656
|
if (unsafePseudoClasses) {
|
|
702
657
|
var isNested = !!element.parent;
|
|
@@ -831,20 +786,17 @@ function prefix(value, length2) {
|
|
|
831
786
|
case 5789:
|
|
832
787
|
case 5021:
|
|
833
788
|
case 4765:
|
|
834
|
-
if (strlen(value) - 1 - length2 > 6)
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2) + value : value;
|
|
843
|
-
}
|
|
789
|
+
if (strlen(value) - 1 - length2 > 6) switch (charat(value, length2 + 1)) {
|
|
790
|
+
case 109:
|
|
791
|
+
if (charat(value, length2 + 4) !== 45) break;
|
|
792
|
+
case 102:
|
|
793
|
+
return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
|
|
794
|
+
case 115:
|
|
795
|
+
return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2) + value : value;
|
|
796
|
+
}
|
|
844
797
|
break;
|
|
845
798
|
case 4949:
|
|
846
|
-
if (charat(value, length2 + 1) !== 115)
|
|
847
|
-
break;
|
|
799
|
+
if (charat(value, length2 + 1) !== 115) break;
|
|
848
800
|
case 6444:
|
|
849
801
|
switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
|
|
850
802
|
case 107:
|
|
@@ -868,36 +820,34 @@ function prefix(value, length2) {
|
|
|
868
820
|
}
|
|
869
821
|
var prefixer = function prefixer2(element, index2, children, callback) {
|
|
870
822
|
if (element.length > -1) {
|
|
871
|
-
if (!element["return"])
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
});
|
|
900
|
-
}
|
|
823
|
+
if (!element["return"]) switch (element.type) {
|
|
824
|
+
case DECLARATION:
|
|
825
|
+
element["return"] = prefix(element.value, element.length);
|
|
826
|
+
break;
|
|
827
|
+
case KEYFRAMES:
|
|
828
|
+
return serialize([copy(element, {
|
|
829
|
+
value: replace(element.value, "@", "@" + WEBKIT)
|
|
830
|
+
})], callback);
|
|
831
|
+
case RULESET:
|
|
832
|
+
if (element.length) return combine(element.props, function(value) {
|
|
833
|
+
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
|
834
|
+
case ":read-only":
|
|
835
|
+
case ":read-write":
|
|
836
|
+
return serialize([copy(element, {
|
|
837
|
+
props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")]
|
|
838
|
+
})], callback);
|
|
839
|
+
case "::placeholder":
|
|
840
|
+
return serialize([copy(element, {
|
|
841
|
+
props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")]
|
|
842
|
+
}), copy(element, {
|
|
843
|
+
props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")]
|
|
844
|
+
}), copy(element, {
|
|
845
|
+
props: [replace(value, /:(plac\w+)/, MS + "input-$1")]
|
|
846
|
+
})], callback);
|
|
847
|
+
}
|
|
848
|
+
return "";
|
|
849
|
+
});
|
|
850
|
+
}
|
|
901
851
|
}
|
|
902
852
|
};
|
|
903
853
|
var defaultStylisPlugins = [prefixer];
|
|
@@ -1012,8 +962,7 @@ var reactIs_production_min = {};
|
|
|
1012
962
|
*/
|
|
1013
963
|
var hasRequiredReactIs_production_min;
|
|
1014
964
|
function requireReactIs_production_min() {
|
|
1015
|
-
if (hasRequiredReactIs_production_min)
|
|
1016
|
-
return reactIs_production_min;
|
|
965
|
+
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
1017
966
|
hasRequiredReactIs_production_min = 1;
|
|
1018
967
|
var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w2 = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
|
|
1019
968
|
function z(a) {
|
|
@@ -1116,8 +1065,7 @@ var reactIs_development = {};
|
|
|
1116
1065
|
*/
|
|
1117
1066
|
var hasRequiredReactIs_development;
|
|
1118
1067
|
function requireReactIs_development() {
|
|
1119
|
-
if (hasRequiredReactIs_development)
|
|
1120
|
-
return reactIs_development;
|
|
1068
|
+
if (hasRequiredReactIs_development) return reactIs_development;
|
|
1121
1069
|
hasRequiredReactIs_development = 1;
|
|
1122
1070
|
if (process.env.NODE_ENV !== "production") {
|
|
1123
1071
|
(function() {
|
|
@@ -1693,11 +1641,9 @@ var getLastPart = function getLastPart2(functionName) {
|
|
|
1693
1641
|
};
|
|
1694
1642
|
var getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine2(line2) {
|
|
1695
1643
|
var match2 = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line2);
|
|
1696
|
-
if (match2)
|
|
1697
|
-
return getLastPart(match2[1]);
|
|
1644
|
+
if (match2) return getLastPart(match2[1]);
|
|
1698
1645
|
match2 = /^([A-Za-z0-9$.]+)@/.exec(line2);
|
|
1699
|
-
if (match2)
|
|
1700
|
-
return getLastPart(match2[1]);
|
|
1646
|
+
if (match2) return getLastPart(match2[1]);
|
|
1701
1647
|
return void 0;
|
|
1702
1648
|
};
|
|
1703
1649
|
var internalReactFunctionNames = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]);
|
|
@@ -1705,17 +1651,13 @@ var sanitizeIdentifier = function sanitizeIdentifier2(identifier2) {
|
|
|
1705
1651
|
return identifier2.replace(/\$/g, "-");
|
|
1706
1652
|
};
|
|
1707
1653
|
var getLabelFromStackTrace = function getLabelFromStackTrace2(stackTrace) {
|
|
1708
|
-
if (!stackTrace)
|
|
1709
|
-
return void 0;
|
|
1654
|
+
if (!stackTrace) return void 0;
|
|
1710
1655
|
var lines = stackTrace.split("\n");
|
|
1711
1656
|
for (var i = 0; i < lines.length; i++) {
|
|
1712
1657
|
var functionName = getFunctionNameFromStackTraceLine(lines[i]);
|
|
1713
|
-
if (!functionName)
|
|
1714
|
-
|
|
1715
|
-
if (
|
|
1716
|
-
break;
|
|
1717
|
-
if (/^[A-Z]/.test(functionName))
|
|
1718
|
-
return sanitizeIdentifier(functionName);
|
|
1658
|
+
if (!functionName) continue;
|
|
1659
|
+
if (internalReactFunctionNames.has(functionName)) break;
|
|
1660
|
+
if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName);
|
|
1719
1661
|
}
|
|
1720
1662
|
return void 0;
|
|
1721
1663
|
};
|
|
@@ -1735,8 +1677,7 @@ var createEmotionProps = function createEmotionProps2(type, props) {
|
|
|
1735
1677
|
newProps[typePropName] = type;
|
|
1736
1678
|
if (process.env.NODE_ENV !== "production" && !!props.css && (typeof props.css !== "object" || typeof props.css.name !== "string" || props.css.name.indexOf("-") === -1)) {
|
|
1737
1679
|
var label = getLabelFromStackTrace(new Error().stack);
|
|
1738
|
-
if (label)
|
|
1739
|
-
newProps[labelPropName] = label;
|
|
1680
|
+
if (label) newProps[labelPropName] = label;
|
|
1740
1681
|
}
|
|
1741
1682
|
return newProps;
|
|
1742
1683
|
};
|
|
@@ -2014,8 +1955,7 @@ var classnames = function classnames2(args) {
|
|
|
2014
1955
|
var cls = "";
|
|
2015
1956
|
for (; i < len; i++) {
|
|
2016
1957
|
var arg = args[i];
|
|
2017
|
-
if (arg == null)
|
|
2018
|
-
continue;
|
|
1958
|
+
if (arg == null) continue;
|
|
2019
1959
|
var toAdd = void 0;
|
|
2020
1960
|
switch (typeof arg) {
|
|
2021
1961
|
case "boolean":
|
|
@@ -2119,13 +2059,10 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
2119
2059
|
globalContext[globalKey] = true;
|
|
2120
2060
|
}
|
|
2121
2061
|
}
|
|
2122
|
-
function _taggedTemplateLiteral(
|
|
2123
|
-
|
|
2124
|
-
raw = strings.slice(0);
|
|
2125
|
-
}
|
|
2126
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
2062
|
+
function _taggedTemplateLiteral(e, t) {
|
|
2063
|
+
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
|
|
2127
2064
|
raw: {
|
|
2128
|
-
value: Object.freeze(
|
|
2065
|
+
value: Object.freeze(t)
|
|
2129
2066
|
}
|
|
2130
2067
|
}));
|
|
2131
2068
|
}
|
|
@@ -2194,8 +2131,7 @@ function isOverflowElement(element) {
|
|
|
2194
2131
|
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !["inline", "contents"].includes(display);
|
|
2195
2132
|
}
|
|
2196
2133
|
function isWebKit() {
|
|
2197
|
-
if (typeof CSS === "undefined" || !CSS.supports)
|
|
2198
|
-
return false;
|
|
2134
|
+
if (typeof CSS === "undefined" || !CSS.supports) return false;
|
|
2199
2135
|
return CSS.supports("-webkit-backdrop-filter", "none");
|
|
2200
2136
|
}
|
|
2201
2137
|
function isLastTraversableNode(node2) {
|
|
@@ -2519,10 +2455,8 @@ function classNames(prefix2, state) {
|
|
|
2519
2455
|
}).join(" ");
|
|
2520
2456
|
}
|
|
2521
2457
|
var cleanValue = function cleanValue2(value) {
|
|
2522
|
-
if (isArray(value))
|
|
2523
|
-
|
|
2524
|
-
if (_typeof(value) === "object" && value !== null)
|
|
2525
|
-
return [value];
|
|
2458
|
+
if (isArray(value)) return value.filter(Boolean);
|
|
2459
|
+
if (_typeof(value) === "object" && value !== null) return [value];
|
|
2526
2460
|
return [];
|
|
2527
2461
|
};
|
|
2528
2462
|
var cleanCommonProps = function cleanCommonProps2(props) {
|
|
@@ -2553,8 +2487,7 @@ var getStyleProps = function getStyleProps2(props, name, classNamesState) {
|
|
|
2553
2487
|
function handleInputChange(inputValue, actionMeta, onInputChange) {
|
|
2554
2488
|
if (onInputChange) {
|
|
2555
2489
|
var _newValue = onInputChange(inputValue, actionMeta);
|
|
2556
|
-
if (typeof _newValue === "string")
|
|
2557
|
-
return _newValue;
|
|
2490
|
+
if (typeof _newValue === "string") return _newValue;
|
|
2558
2491
|
}
|
|
2559
2492
|
return inputValue;
|
|
2560
2493
|
}
|
|
@@ -2584,8 +2517,7 @@ function getScrollParent(element) {
|
|
|
2584
2517
|
var style = getComputedStyle(element);
|
|
2585
2518
|
var excludeStaticParent = style.position === "absolute";
|
|
2586
2519
|
var overflowRx = /(auto|scroll)/;
|
|
2587
|
-
if (style.position === "fixed")
|
|
2588
|
-
return document.documentElement;
|
|
2520
|
+
if (style.position === "fixed") return document.documentElement;
|
|
2589
2521
|
for (var parent = element; parent = parent.parentElement; ) {
|
|
2590
2522
|
style = getComputedStyle(parent);
|
|
2591
2523
|
if (excludeStaticParent && style.position === "static") {
|
|
@@ -2704,8 +2636,7 @@ function getMenuPlacement(_ref) {
|
|
|
2704
2636
|
placement: "bottom",
|
|
2705
2637
|
maxHeight: preferredMaxHeight
|
|
2706
2638
|
};
|
|
2707
|
-
if (!menuEl || !menuEl.offsetParent)
|
|
2708
|
-
return defaultState;
|
|
2639
|
+
if (!menuEl || !menuEl.offsetParent) return defaultState;
|
|
2709
2640
|
var _scrollParent$getBoun = scrollParent.getBoundingClientRect(), scrollHeight = _scrollParent$getBoun.height;
|
|
2710
2641
|
var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(), menuBottom = _menuEl$getBoundingCl.bottom, menuHeight = _menuEl$getBoundingCl.height, menuTop = _menuEl$getBoundingCl.top;
|
|
2711
2642
|
var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(), containerTop = _menuEl$offsetParent$.top;
|
|
@@ -2840,8 +2771,7 @@ var MenuPlacer = function MenuPlacer2(props) {
|
|
|
2840
2771
|
var controlHeight = theme.spacing.controlHeight;
|
|
2841
2772
|
index(function() {
|
|
2842
2773
|
var menuEl = ref.current;
|
|
2843
|
-
if (!menuEl)
|
|
2844
|
-
return;
|
|
2774
|
+
if (!menuEl) return;
|
|
2845
2775
|
var isFixedPosition = menuPosition === "fixed";
|
|
2846
2776
|
var shouldScroll = menuShouldScrollIntoView && !isFixedPosition;
|
|
2847
2777
|
var state = getMenuPlacement({
|
|
@@ -2949,8 +2879,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
2949
2879
|
}, []);
|
|
2950
2880
|
var _useState7 = useState(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
|
|
2951
2881
|
var updateComputedPosition = useCallback(function() {
|
|
2952
|
-
if (!controlElement)
|
|
2953
|
-
return;
|
|
2882
|
+
if (!controlElement) return;
|
|
2954
2883
|
var rect = getBoundingClientObj(controlElement);
|
|
2955
2884
|
var scrollDistance = menuPosition === "fixed" ? 0 : window.pageYOffset;
|
|
2956
2885
|
var offset = rect[placement] + scrollDistance;
|
|
@@ -2982,8 +2911,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
2982
2911
|
menuPortalRef.current = menuPortalElement;
|
|
2983
2912
|
runAutoUpdate();
|
|
2984
2913
|
}, [runAutoUpdate]);
|
|
2985
|
-
if (!appendTo && menuPosition !== "fixed" || !computedPosition)
|
|
2986
|
-
return null;
|
|
2914
|
+
if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
|
|
2987
2915
|
var menuWrapper = jsx("div", _extends({
|
|
2988
2916
|
ref: setMenuPortalElement
|
|
2989
2917
|
}, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnimatedVisibility } from "./components/animated-visibility/animated-visibility.js";
|
|
2
2
|
import { BaseControl } from "./components/base-control/base-control.js";
|
|
3
3
|
import { BreakpointPreview } from "./components/breakpoint-preview/breakpoint-preview.js";
|
|
4
|
-
import { B, a } from "./button-
|
|
4
|
+
import { B, a } from "./button-CD8Q1eok.js";
|
|
5
5
|
import { Checkbox } from "./components/checkbox/checkbox.js";
|
|
6
6
|
import { ComponentToggle } from "./components/component-toggle/component-toggle.js";
|
|
7
7
|
import { ContainerPanel } from "./components/container-panel/container-panel.js";
|
|
@@ -24,7 +24,7 @@ import { MediaPlaceholder } from "./components/placeholders/media-placeholder.js
|
|
|
24
24
|
import { Menu, MenuItem, MenuSection, MenuSeparator, SubMenuItem } from "./components/menu/menu.js";
|
|
25
25
|
import { Notice } from "./components/notice/notice.js";
|
|
26
26
|
import { NumberPicker } from "./components/number-picker/number-picker.js";
|
|
27
|
-
import { P, T } from "./popover-
|
|
27
|
+
import { P, T } from "./popover-Dk2o4S7K.js";
|
|
28
28
|
import { RadioButton, RadioButtonGroup } from "./components/radio/radio.js";
|
|
29
29
|
import { Repeater } from "./components/repeater/repeater.js";
|
|
30
30
|
import { RepeaterItem } from "./components/repeater/repeater-item.js";
|
|
@@ -45,7 +45,7 @@ import { Tab, TabList, TabPanel, Tabs } from "./components/tabs/tabs.js";
|
|
|
45
45
|
import { Toggle } from "./components/toggle/toggle.js";
|
|
46
46
|
import { Switch } from "./components/toggle/switch.js";
|
|
47
47
|
import { ToggleButton } from "./components/toggle-button/toggle-button.js";
|
|
48
|
-
import { D, T as T2 } from "./tooltip-
|
|
48
|
+
import { D, T as T2 } from "./tooltip-BRQ4tvZL.js";
|
|
49
49
|
import { VStack } from "./components/layout/vstack.js";
|
|
50
50
|
import { getColumnConfigOutputText } from "./components/slider/utils.js";
|
|
51
51
|
export {
|