@wix/editor-react-components 1.2764.0 → 1.2766.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/dist/site/components/AccordionComponent/component.js +80 -3
- package/dist/site/components/AccordionComponent/manifest.js +1 -1
- package/dist/site/components/AudioPlayer/component.js +4 -3
- package/dist/site/components/AudioPlayer/manifest.js +1 -1
- package/dist/site/components/BoxContainer/component.js +2 -2
- package/dist/site/components/Breadcrumbs/component.js +3 -3
- package/dist/site/components/Breadcrumbs/manifest.js +1 -1
- package/dist/site/components/Button/component.js +1 -1
- package/dist/site/components/Button/manifest.js +1 -1
- package/dist/site/components/Checkbox/component.js +3 -4
- package/dist/site/components/CheckboxGroup/component.js +3 -4
- package/dist/site/components/CollapsibleText/component.js +2 -2
- package/dist/site/components/CollapsibleText/manifest.js +1 -1
- package/dist/site/components/DatePicker/component.js +7 -7
- package/dist/site/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/site/components/Dropdown/Dropdown.types.d.ts +22 -89
- package/dist/site/components/Dropdown/component.js +205 -873
- package/dist/site/components/Dropdown/constants.d.ts +26 -168
- package/dist/site/components/Dropdown/css.css +52 -462
- package/dist/site/components/Dropdown/manifest.js +338 -441
- package/dist/site/components/GoogleMap/manifest.js +1 -1
- package/dist/site/components/HTMLComponent/manifest.js +1 -1
- package/dist/site/components/HeadingTextBlock/component.js +2 -2
- package/dist/site/components/HipaaIcon/component.js +1 -1
- package/dist/site/components/Image3/component.js +1 -1
- package/dist/site/components/ImageReveal/component.js +2 -2
- package/dist/site/components/LegacyAppWidget/component.js +1 -1
- package/dist/site/components/LegacyContainer/component.js +1 -1
- package/dist/site/components/LegacyMultiStateBox/component.js +2 -2
- package/dist/site/components/Line/component.js +1 -1
- package/dist/site/components/Line/manifest.js +39 -3
- package/dist/site/components/LinkBar/manifest.js +1 -1
- package/dist/site/components/Lottie/component.js +1 -1
- package/dist/site/components/Lottie/manifest.js +1 -1
- package/dist/site/components/MarkdownBlock/component.js +1 -1
- package/dist/site/components/Menu/component.js +3 -3
- package/dist/site/components/Menu/manifest.js +1 -1
- package/dist/site/components/MultiStateBox/manifest.js +1 -1
- package/dist/site/components/RadioButtons/component.js +3 -4
- package/dist/site/components/ShareButtons/component.js +1 -1
- package/dist/site/components/ShareButtons/manifest.js +1 -1
- package/dist/site/components/Slideshow/component.js +1 -1
- package/dist/site/components/Slideshow/manifest.js +1 -1
- package/dist/site/components/Tabs/manifest.js +1 -1
- package/dist/site/components/TestComp/manifest.js +1 -1
- package/dist/site/components/TextBox/component.js +2 -3
- package/dist/site/components/TextEffects3d/component.js +1 -1
- package/dist/site/components/TextEffectsBauhaus/component.js +1 -1
- package/dist/site/components/TextEffectsGlass/component.js +1 -1
- package/dist/site/components/TextEffectsGlitch/component.js +1 -1
- package/dist/site/components/TextEffectsLetterPress/component.js +1 -1
- package/dist/site/components/TextEffectsMatrix/component.js +1 -1
- package/dist/site/components/TextEffectsNeonSign/component.js +1 -1
- package/dist/site/components/TextEffectsNoisy/component.js +1 -1
- package/dist/site/components/TextEffectsOutlineOut/component.js +1 -1
- package/dist/site/components/TextEffectsRetro/component.js +1 -1
- package/dist/site/components/TextEffectsShook/component.js +1 -1
- package/dist/site/components/TextEffectsSticker/component.js +1 -1
- package/dist/site/components/TextEffectsStriped/component.js +1 -1
- package/dist/site/components/TextInput/TextInput.d.ts +3 -7
- package/dist/site/components/TextInput/TextInput.types.d.ts +38 -105
- package/dist/site/components/TextInput/component.js +104 -780
- package/dist/site/components/TextInput/component.preview.d.ts +1 -4
- package/dist/site/components/TextInput/constants.d.ts +17 -65
- package/dist/site/components/TextInput/css.css +25 -223
- package/dist/site/components/TextInput/manifest.js +181 -367
- package/dist/site/components/TimePicker/component.js +7 -8
- package/dist/site/components/chunks/AnimatedIcon.js +1 -1
- package/dist/site/components/chunks/Button.js +1055 -466
- package/dist/site/components/chunks/Button2.js +486 -0
- package/dist/site/components/chunks/DismissSmall.js +7727 -1
- package/dist/site/components/chunks/Group.js +46 -970
- package/dist/site/components/chunks/I18nProvider.js +125 -0
- package/dist/site/components/chunks/Input.js +369 -0
- package/dist/site/components/chunks/Link.js +1 -1
- package/dist/site/components/chunks/RequiredIndicator.js +4 -0
- package/dist/site/components/chunks/ResponsiveBox.js +1 -1
- package/dist/site/components/chunks/ResponsiveContainer.js +1 -1
- package/dist/site/components/chunks/TextEffectsShared.js +1 -1
- package/dist/site/components/chunks/VisuallyHidden.js +1 -1
- package/dist/site/components/chunks/a11y.js +4 -5
- package/dist/site/components/chunks/constants3.js +23 -63
- package/dist/site/components/chunks/constants36.js +31 -148
- package/dist/site/components/chunks/filterDOMProps.js +18 -139
- package/dist/site/components/chunks/index10.js +3 -2020
- package/dist/site/components/chunks/index11.js +31118 -232
- package/dist/site/components/chunks/index12.js +3 -31191
- package/dist/site/components/chunks/index13.js +44 -3
- package/dist/site/components/chunks/index3.js +1 -1
- package/dist/site/components/chunks/index4.js +1 -1
- package/dist/site/components/chunks/index5.js +1 -1
- package/dist/site/components/chunks/index7.js +67 -3
- package/dist/site/components/chunks/index8.js +2020 -3
- package/dist/site/components/chunks/index9.js +232 -60
- package/dist/site/components/chunks/isObjectLike.js +15 -5
- package/dist/site/components/chunks/manifestSdkMixins.js +4 -17
- package/dist/site/components/chunks/parseHtml.js +1 -1
- package/dist/site/components/chunks/parseSvg.js +1 -1
- package/dist/site/components/chunks/staticService.js +1 -1
- package/dist/site/components/chunks/useConsentPolicyProps.js +1 -1
- package/dist/site/components/chunks/useLocalizedStringFormatter.js +1 -1
- package/package.json +2 -2
- package/dist/site/components/Dropdown/component.preview.d.ts +0 -9
- package/dist/site/components/Dropdown/components/DropdownChips.d.ts +0 -8
- package/dist/site/components/Dropdown/components/DropdownList.d.ts +0 -20
- package/dist/site/components/Dropdown/components/DropdownTrigger.d.ts +0 -22
- package/dist/site/components/Dropdown/dropdownUtils.d.ts +0 -22
- package/dist/site/components/Dropdown/hooks/useChipOverflow.d.ts +0 -9
- package/dist/site/components/Dropdown/hooks/useDropdownQuery.d.ts +0 -15
- package/dist/site/components/Dropdown/hooks/useDropdownSelection.d.ts +0 -16
- package/dist/site/components/TextInput/TextInput.viewer.constants.d.ts +0 -24
- package/dist/site/components/TextInput/sdk.d.ts +0 -4
- package/dist/site/components/TextInput/sdk.js +0 -91
- package/dist/site/components/TextInput/utils.d.ts +0 -9
- package/dist/site/components/chunks/DateField.js +0 -6762
- package/dist/site/components/chunks/InfoCircleSmall.js +0 -7
- package/dist/site/components/chunks/NumberFormatter.js +0 -140
- package/dist/site/components/chunks/Tooltip.js +0 -1334
- package/dist/site/components/chunks/_baseSlice.js +0 -43
- package/dist/site/components/chunks/index14.js +0 -46
- package/dist/site/components/chunks/isArray.js +0 -12
- package/dist/site/components/chunks/isArrayLike.js +0 -88
|
@@ -1,69 +1,241 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
var cjs$2 = {};
|
|
2
|
+
var cjs$1;
|
|
3
|
+
var hasRequiredCjs$2;
|
|
4
|
+
function requireCjs$2() {
|
|
5
|
+
if (hasRequiredCjs$2) return cjs$1;
|
|
6
|
+
hasRequiredCjs$2 = 1;
|
|
7
|
+
var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
|
|
8
|
+
var NEWLINE_REGEX = /\n/g;
|
|
9
|
+
var WHITESPACE_REGEX = /^\s*/;
|
|
10
|
+
var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
|
|
11
|
+
var COLON_REGEX = /^:\s*/;
|
|
12
|
+
var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
|
|
13
|
+
var SEMICOLON_REGEX = /^[;\s]*/;
|
|
14
|
+
var TRIM_REGEX = /^\s+|\s+$/g;
|
|
15
|
+
var NEWLINE = "\n";
|
|
16
|
+
var FORWARD_SLASH = "/";
|
|
17
|
+
var ASTERISK = "*";
|
|
18
|
+
var EMPTY_STRING = "";
|
|
19
|
+
var TYPE_COMMENT = "comment";
|
|
20
|
+
var TYPE_DECLARATION = "declaration";
|
|
21
|
+
function index(style, options) {
|
|
22
|
+
if (typeof style !== "string") {
|
|
23
|
+
throw new TypeError("First argument must be a string");
|
|
24
|
+
}
|
|
25
|
+
if (!style) return [];
|
|
26
|
+
options = options || {};
|
|
27
|
+
var lineno = 1;
|
|
28
|
+
var column = 1;
|
|
29
|
+
function updatePosition(str) {
|
|
30
|
+
var lines = str.match(NEWLINE_REGEX);
|
|
31
|
+
if (lines) lineno += lines.length;
|
|
32
|
+
var i = str.lastIndexOf(NEWLINE);
|
|
33
|
+
column = ~i ? str.length - i : column + str.length;
|
|
34
|
+
}
|
|
35
|
+
function position() {
|
|
36
|
+
var start = { line: lineno, column };
|
|
37
|
+
return function(node) {
|
|
38
|
+
node.position = new Position(start);
|
|
39
|
+
whitespace();
|
|
40
|
+
return node;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function Position(start) {
|
|
44
|
+
this.start = start;
|
|
45
|
+
this.end = { line: lineno, column };
|
|
46
|
+
this.source = options.source;
|
|
47
|
+
}
|
|
48
|
+
Position.prototype.content = style;
|
|
49
|
+
function error(msg) {
|
|
50
|
+
var err = new Error(
|
|
51
|
+
options.source + ":" + lineno + ":" + column + ": " + msg
|
|
52
|
+
);
|
|
53
|
+
err.reason = msg;
|
|
54
|
+
err.filename = options.source;
|
|
55
|
+
err.line = lineno;
|
|
56
|
+
err.column = column;
|
|
57
|
+
err.source = style;
|
|
58
|
+
if (options.silent) ;
|
|
59
|
+
else {
|
|
60
|
+
throw err;
|
|
24
61
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
62
|
+
}
|
|
63
|
+
function match(re) {
|
|
64
|
+
var m = re.exec(style);
|
|
65
|
+
if (!m) return;
|
|
66
|
+
var str = m[0];
|
|
67
|
+
updatePosition(str);
|
|
68
|
+
style = style.slice(str.length);
|
|
69
|
+
return m;
|
|
70
|
+
}
|
|
71
|
+
function whitespace() {
|
|
72
|
+
match(WHITESPACE_REGEX);
|
|
73
|
+
}
|
|
74
|
+
function comments(rules) {
|
|
75
|
+
var c;
|
|
76
|
+
rules = rules || [];
|
|
77
|
+
while (c = comment()) {
|
|
78
|
+
if (c !== false) {
|
|
79
|
+
rules.push(c);
|
|
37
80
|
}
|
|
38
|
-
var classes = "";
|
|
39
|
-
for (var key in arg) {
|
|
40
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
41
|
-
classes = appendClass(classes, key);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return classes;
|
|
45
81
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
82
|
+
return rules;
|
|
83
|
+
}
|
|
84
|
+
function comment() {
|
|
85
|
+
var pos = position();
|
|
86
|
+
if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;
|
|
87
|
+
var i = 2;
|
|
88
|
+
while (EMPTY_STRING != style.charAt(i) && (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))) {
|
|
89
|
+
++i;
|
|
90
|
+
}
|
|
91
|
+
i += 2;
|
|
92
|
+
if (EMPTY_STRING === style.charAt(i - 1)) {
|
|
93
|
+
return error("End of comment missing");
|
|
94
|
+
}
|
|
95
|
+
var str = style.slice(2, i - 2);
|
|
96
|
+
column += 2;
|
|
97
|
+
updatePosition(str);
|
|
98
|
+
style = style.slice(i);
|
|
99
|
+
column += 2;
|
|
100
|
+
return pos({
|
|
101
|
+
type: TYPE_COMMENT,
|
|
102
|
+
comment: str
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
function declaration() {
|
|
106
|
+
var pos = position();
|
|
107
|
+
var prop = match(PROPERTY_REGEX);
|
|
108
|
+
if (!prop) return;
|
|
109
|
+
comment();
|
|
110
|
+
if (!match(COLON_REGEX)) return error("property missing ':'");
|
|
111
|
+
var val = match(VALUE_REGEX);
|
|
112
|
+
var ret = pos({
|
|
113
|
+
type: TYPE_DECLARATION,
|
|
114
|
+
property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
|
|
115
|
+
value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
|
|
116
|
+
});
|
|
117
|
+
match(SEMICOLON_REGEX);
|
|
118
|
+
return ret;
|
|
119
|
+
}
|
|
120
|
+
function declarations() {
|
|
121
|
+
var decls = [];
|
|
122
|
+
comments(decls);
|
|
123
|
+
var decl;
|
|
124
|
+
while (decl = declaration()) {
|
|
125
|
+
if (decl !== false) {
|
|
126
|
+
decls.push(decl);
|
|
127
|
+
comments(decls);
|
|
52
128
|
}
|
|
53
|
-
return value + newClass;
|
|
54
129
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
130
|
+
return decls;
|
|
131
|
+
}
|
|
132
|
+
whitespace();
|
|
133
|
+
return declarations();
|
|
134
|
+
}
|
|
135
|
+
function trim(str) {
|
|
136
|
+
return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
|
|
137
|
+
}
|
|
138
|
+
cjs$1 = index;
|
|
139
|
+
return cjs$1;
|
|
140
|
+
}
|
|
141
|
+
var hasRequiredCjs$1;
|
|
142
|
+
function requireCjs$1() {
|
|
143
|
+
if (hasRequiredCjs$1) return cjs$2;
|
|
144
|
+
hasRequiredCjs$1 = 1;
|
|
145
|
+
var __importDefault = cjs$2 && cjs$2.__importDefault || function(mod) {
|
|
146
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
147
|
+
};
|
|
148
|
+
Object.defineProperty(cjs$2, "__esModule", { value: true });
|
|
149
|
+
cjs$2.default = StyleToObject;
|
|
150
|
+
const inline_style_parser_1 = __importDefault(requireCjs$2());
|
|
151
|
+
function StyleToObject(style, iterator) {
|
|
152
|
+
let styleObject = null;
|
|
153
|
+
if (!style || typeof style !== "string") {
|
|
154
|
+
return styleObject;
|
|
155
|
+
}
|
|
156
|
+
const declarations = (0, inline_style_parser_1.default)(style);
|
|
157
|
+
const hasIterator = typeof iterator === "function";
|
|
158
|
+
declarations.forEach((declaration) => {
|
|
159
|
+
if (declaration.type !== "declaration") {
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
const { property, value } = declaration;
|
|
163
|
+
if (hasIterator) {
|
|
164
|
+
iterator(property, value, declaration);
|
|
165
|
+
} else if (value) {
|
|
166
|
+
styleObject = styleObject || {};
|
|
167
|
+
styleObject[property] = value;
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
return styleObject;
|
|
171
|
+
}
|
|
172
|
+
return cjs$2;
|
|
173
|
+
}
|
|
174
|
+
var utilities = {};
|
|
175
|
+
var hasRequiredUtilities;
|
|
176
|
+
function requireUtilities() {
|
|
177
|
+
if (hasRequiredUtilities) return utilities;
|
|
178
|
+
hasRequiredUtilities = 1;
|
|
179
|
+
Object.defineProperty(utilities, "__esModule", { value: true });
|
|
180
|
+
utilities.camelCase = void 0;
|
|
181
|
+
var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9_-]+$/;
|
|
182
|
+
var HYPHEN_REGEX = /-([a-z])/g;
|
|
183
|
+
var NO_HYPHEN_REGEX = /^[^-]+$/;
|
|
184
|
+
var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
|
|
185
|
+
var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
|
|
186
|
+
var skipCamelCase = function(property) {
|
|
187
|
+
return !property || NO_HYPHEN_REGEX.test(property) || CUSTOM_PROPERTY_REGEX.test(property);
|
|
188
|
+
};
|
|
189
|
+
var capitalize = function(match, character) {
|
|
190
|
+
return character.toUpperCase();
|
|
191
|
+
};
|
|
192
|
+
var trimHyphen = function(match, prefix) {
|
|
193
|
+
return "".concat(prefix, "-");
|
|
194
|
+
};
|
|
195
|
+
var camelCase = function(property, options) {
|
|
196
|
+
if (options === void 0) {
|
|
197
|
+
options = {};
|
|
198
|
+
}
|
|
199
|
+
if (skipCamelCase(property)) {
|
|
200
|
+
return property;
|
|
201
|
+
}
|
|
202
|
+
property = property.toLowerCase();
|
|
203
|
+
if (options.reactCompat) {
|
|
204
|
+
property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
|
|
205
|
+
} else {
|
|
206
|
+
property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
|
|
207
|
+
}
|
|
208
|
+
return property.replace(HYPHEN_REGEX, capitalize);
|
|
209
|
+
};
|
|
210
|
+
utilities.camelCase = camelCase;
|
|
211
|
+
return utilities;
|
|
212
|
+
}
|
|
213
|
+
var cjs;
|
|
214
|
+
var hasRequiredCjs;
|
|
215
|
+
function requireCjs() {
|
|
216
|
+
if (hasRequiredCjs) return cjs;
|
|
217
|
+
hasRequiredCjs = 1;
|
|
218
|
+
var __importDefault = cjs && cjs.__importDefault || function(mod) {
|
|
219
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
220
|
+
};
|
|
221
|
+
var style_to_object_1 = __importDefault(requireCjs$1());
|
|
222
|
+
var utilities_1 = requireUtilities();
|
|
223
|
+
function StyleToJS(style, options) {
|
|
224
|
+
var output = {};
|
|
225
|
+
if (!style || typeof style !== "string") {
|
|
226
|
+
return output;
|
|
227
|
+
}
|
|
228
|
+
(0, style_to_object_1.default)(style, function(property, value) {
|
|
229
|
+
if (property && value) {
|
|
230
|
+
output[(0, utilities_1.camelCase)(property, options)] = value;
|
|
60
231
|
}
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
|
|
232
|
+
});
|
|
233
|
+
return output;
|
|
234
|
+
}
|
|
235
|
+
StyleToJS.default = StyleToJS;
|
|
236
|
+
cjs = StyleToJS;
|
|
237
|
+
return cjs;
|
|
64
238
|
}
|
|
65
|
-
var classnamesExports = requireClassnames();
|
|
66
|
-
const cn = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
|
67
239
|
export {
|
|
68
|
-
|
|
240
|
+
requireCjs as r
|
|
69
241
|
};
|
|
@@ -29,6 +29,15 @@ function require_Symbol() {
|
|
|
29
29
|
_Symbol = Symbol;
|
|
30
30
|
return _Symbol;
|
|
31
31
|
}
|
|
32
|
+
var isArray_1;
|
|
33
|
+
var hasRequiredIsArray;
|
|
34
|
+
function requireIsArray() {
|
|
35
|
+
if (hasRequiredIsArray) return isArray_1;
|
|
36
|
+
hasRequiredIsArray = 1;
|
|
37
|
+
var isArray = Array.isArray;
|
|
38
|
+
isArray_1 = isArray;
|
|
39
|
+
return isArray_1;
|
|
40
|
+
}
|
|
32
41
|
var _getRawTag;
|
|
33
42
|
var hasRequired_getRawTag;
|
|
34
43
|
function require_getRawTag() {
|
|
@@ -101,9 +110,10 @@ function requireIsObjectLike() {
|
|
|
101
110
|
return isObjectLike_1;
|
|
102
111
|
}
|
|
103
112
|
export {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
113
|
+
requireIsObjectLike as a,
|
|
114
|
+
require_Symbol as b,
|
|
115
|
+
requireIsArray as c,
|
|
116
|
+
require_root as d,
|
|
117
|
+
require_freeGlobal as e,
|
|
118
|
+
require_baseGetTag as r
|
|
109
119
|
};
|
|
@@ -2,7 +2,6 @@ import { D as DATA } from "./chunk-EVX7ZUBD.js";
|
|
|
2
2
|
import { D as DomEventType } from "./types.impl.js";
|
|
3
3
|
const MANIFEST_DEFAULT_FUNCTION_DISPLAY_NAMES = {
|
|
4
4
|
onChange: "On Change",
|
|
5
|
-
onInput: "On Input",
|
|
6
5
|
onClick: "On Click",
|
|
7
6
|
onDblClick: "On Double Click",
|
|
8
7
|
onFocus: "On Focus",
|
|
@@ -32,17 +31,6 @@ function manifestChangeable(names = {}) {
|
|
|
32
31
|
)
|
|
33
32
|
};
|
|
34
33
|
}
|
|
35
|
-
function manifestInputable(names = {}) {
|
|
36
|
-
const payload = {
|
|
37
|
-
parameters: [{ domEvent: DomEventType.CHANGE }]
|
|
38
|
-
};
|
|
39
|
-
return {
|
|
40
|
-
onInput: manifestFunction(
|
|
41
|
-
names.onInput ?? MANIFEST_DEFAULT_FUNCTION_DISPLAY_NAMES.onInput,
|
|
42
|
-
payload
|
|
43
|
-
)
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
34
|
function manifestClickable(names = {}) {
|
|
47
35
|
const payload = {
|
|
48
36
|
parameters: [{ domEvent: DomEventType.POINTER }]
|
|
@@ -116,10 +104,9 @@ function manifestMediaProgress(names = {}) {
|
|
|
116
104
|
}
|
|
117
105
|
export {
|
|
118
106
|
manifestChangeable as a,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
manifestMediaProgress as f,
|
|
107
|
+
manifestMouseHover as b,
|
|
108
|
+
manifestClickable as c,
|
|
109
|
+
manifestPlayable as d,
|
|
110
|
+
manifestMediaProgress as e,
|
|
124
111
|
manifestFocusable as m
|
|
125
112
|
};
|
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
import React__default, { useState, useEffect, useMemo } from "react";
|
|
4
4
|
import { c as clsx } from "./clsx.js";
|
|
5
5
|
import { a as getDataAttributes } from "./dataUtils.js";
|
|
6
|
-
import { a as activateBySpaceOrEnterButton,
|
|
6
|
+
import { a as activateBySpaceOrEnterButton, e as getTabIndexAttribute } from "./a11y.js";
|
|
7
7
|
import * as __rspack_external_react_dom_7136dc57 from "react-dom";
|
|
8
8
|
import __rspack_external_react_dom_7136dc57__default from "react-dom";
|
|
9
9
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider.js";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
const $a747a10fe70a57da$var$localeSymbol = Symbol.for("react-aria.i18n.locale");
|
|
4
4
|
const $a747a10fe70a57da$var$stringsSymbol = Symbol.for("react-aria.i18n.strings");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2766.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -222,5 +222,5 @@
|
|
|
222
222
|
"registry": "https://registry.npmjs.org/",
|
|
223
223
|
"access": "public"
|
|
224
224
|
},
|
|
225
|
-
"falconPackageHash": "
|
|
225
|
+
"falconPackageHash": "d729b1629ca4df7e51e5943c8d669ea752ee8df8b6af33c7f3bc5eef"
|
|
226
226
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ResolveManifestOverrides } from '../../../utils/ResolveManifestOverrides';
|
|
3
|
-
import { DropdownProps } from './Dropdown.types';
|
|
4
|
-
type DropdownPreviewProps = DropdownProps & {
|
|
5
|
-
previewChips?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export default function DropdownPreview(props: DropdownPreviewProps): React.JSX.Element;
|
|
8
|
-
export declare const resolveManifestOverrides: ResolveManifestOverrides;
|
|
9
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { DropdownItem } from '../dropdownUtils';
|
|
3
|
-
export declare const DropdownChips: ({ items, inputControl, removeItemLabel, chipClassName, }: {
|
|
4
|
-
items: Array<DropdownItem>;
|
|
5
|
-
inputControl: React.ReactNode;
|
|
6
|
-
removeItemLabel: string;
|
|
7
|
-
chipClassName?: string;
|
|
8
|
-
}) => React.ReactElement;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { DropdownItem } from '../dropdownUtils';
|
|
3
|
-
import { DropdownElementProps } from '../Dropdown.types';
|
|
4
|
-
type DropdownListProps = {
|
|
5
|
-
optionItems: Array<DropdownItem>;
|
|
6
|
-
filterItem: (item: DropdownItem, typed: string) => boolean;
|
|
7
|
-
inputValue: string;
|
|
8
|
-
limit: number;
|
|
9
|
-
isGrid: boolean;
|
|
10
|
-
isSearchable: boolean;
|
|
11
|
-
columns: number;
|
|
12
|
-
inline: boolean;
|
|
13
|
-
isMultiple: boolean;
|
|
14
|
-
hasInput: boolean;
|
|
15
|
-
hasQuery: boolean;
|
|
16
|
-
popoverContainer: HTMLDivElement | null;
|
|
17
|
-
elementProps?: DropdownElementProps;
|
|
18
|
-
};
|
|
19
|
-
export declare const DropdownList: ({ optionItems, filterItem, inputValue, limit, isGrid, isSearchable, columns, inline, isMultiple, hasInput, hasQuery, popoverContainer, elementProps, }: DropdownListProps) => React.ReactElement;
|
|
20
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { DropdownItem } from '../dropdownUtils';
|
|
3
|
-
import { DropdownElementProps } from '../Dropdown.types';
|
|
4
|
-
type DropdownTriggerProps = {
|
|
5
|
-
isMultiple: boolean;
|
|
6
|
-
isSearchable: boolean;
|
|
7
|
-
clearable: boolean;
|
|
8
|
-
selectedLabel: string;
|
|
9
|
-
selectedItems: Array<DropdownItem>;
|
|
10
|
-
placeholder: string;
|
|
11
|
-
ariaLabel: string | undefined;
|
|
12
|
-
labelId: string | undefined;
|
|
13
|
-
clearLabel: string;
|
|
14
|
-
removeItemLabel: string;
|
|
15
|
-
describedById: string | undefined;
|
|
16
|
-
isInvalid: boolean;
|
|
17
|
-
onFocus: (event: React.FocusEvent) => void;
|
|
18
|
-
onBlur: (event: React.FocusEvent) => void;
|
|
19
|
-
elementProps?: DropdownElementProps;
|
|
20
|
-
};
|
|
21
|
-
export declare const DropdownTrigger: ({ isMultiple, isSearchable, clearable, selectedLabel, selectedItems, placeholder, ariaLabel, labelId, clearLabel, removeItemLabel, describedById, isInvalid, onFocus, onBlur, elementProps, }: DropdownTriggerProps) => React.ReactElement;
|
|
22
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DropdownFilter, DropdownOption, DropdownProps } from './Dropdown.types';
|
|
2
|
-
/** An option normalized for base-ui: a stable key plus its value and label. */
|
|
3
|
-
export type DropdownItem = {
|
|
4
|
-
key: string;
|
|
5
|
-
value: string;
|
|
6
|
-
label: string;
|
|
7
|
-
};
|
|
8
|
-
/** Reads a value string from a selection item: a bare string or `{ value }`. */
|
|
9
|
-
export declare const readOptionValue: (item: unknown) => string | null;
|
|
10
|
-
/** Drops blank-label options and assigns stable index keys. */
|
|
11
|
-
export declare const toOptionItems: (options: Array<DropdownOption>) => Array<DropdownItem>;
|
|
12
|
-
/** Normalizes the bound `value` (string, `string[]`, or `{ value }[]`) to values. */
|
|
13
|
-
export declare const readSelectedValues: (rawValue: unknown, isMultiple: boolean) => Array<string>;
|
|
14
|
-
/** Builds the per-item match used to filter the list against the typed query. */
|
|
15
|
-
export declare const createFilterItem: (params: {
|
|
16
|
-
customFilter?: DropdownFilter;
|
|
17
|
-
isSearchable: boolean;
|
|
18
|
-
isMultiple: boolean;
|
|
19
|
-
inline: boolean;
|
|
20
|
-
}) => (item: DropdownItem, typed: string) => boolean;
|
|
21
|
-
export declare const emitChange: (onChange: NonNullable<DropdownProps["onChange"]>, value: string | Array<string>) => void;
|
|
22
|
-
export declare const emitInput: (onInput: NonNullable<DropdownProps["onInput"]>, value: string) => void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns how many of `count` chips fit on one row of `ref`, leaving room for a
|
|
3
|
-
* "+N" counter. Renders all chips first (to measure them), then caps; re-runs on
|
|
4
|
-
* selection change and container resize. Falls back to `count` when it can't
|
|
5
|
-
* measure (e.g. SSR / not yet laid out).
|
|
6
|
-
*/
|
|
7
|
-
export declare const useChipOverflow: (ref: {
|
|
8
|
-
current: HTMLElement | null;
|
|
9
|
-
}, count: number) => number;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DropdownProps } from '../Dropdown.types';
|
|
2
|
-
export declare const useDropdownQuery: (params: {
|
|
3
|
-
boundInputValue: string | undefined;
|
|
4
|
-
boundOpen: boolean | undefined;
|
|
5
|
-
isMultiple: boolean;
|
|
6
|
-
selectedKey: string | null;
|
|
7
|
-
selectedOptionLabel: string;
|
|
8
|
-
onInput: NonNullable<DropdownProps["onInput"]>;
|
|
9
|
-
}) => {
|
|
10
|
-
inputValue: string;
|
|
11
|
-
handleInputValueChange: (next: string) => void;
|
|
12
|
-
hasQuery: boolean;
|
|
13
|
-
isOpen: boolean;
|
|
14
|
-
setIsOpen: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
15
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DropdownProps } from '../Dropdown.types';
|
|
2
|
-
import { DropdownItem } from '../dropdownUtils';
|
|
3
|
-
export declare const useDropdownSelection: (params: {
|
|
4
|
-
optionItems: Array<DropdownItem>;
|
|
5
|
-
selectedValues: Array<string>;
|
|
6
|
-
isMultiple: boolean;
|
|
7
|
-
isApplyMode: boolean;
|
|
8
|
-
onChange: NonNullable<DropdownProps["onChange"]>;
|
|
9
|
-
}) => {
|
|
10
|
-
selectedKeys: string[];
|
|
11
|
-
selectedItems: DropdownItem[];
|
|
12
|
-
selectedKey: string;
|
|
13
|
-
selectedOptionLabel: string;
|
|
14
|
-
handleSelectionChange: (keys: Array<string>) => void;
|
|
15
|
-
handleApply: () => void;
|
|
16
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare const TranslationKeys: {
|
|
2
|
-
readonly NAMESPACE: "Text_Input";
|
|
3
|
-
readonly PHONE_FORMAT_LENGTH_VALIDATION_ERROR: "text_input_phone_format_length_validation_error";
|
|
4
|
-
readonly PHONE_FORMAT_LENGTH_VALIDATION_ERROR_DEFAULT: "Please enter a phone number with {digits} digits";
|
|
5
|
-
readonly PHONE_FORMAT_DEFAULT_VALIDATION_ERROR: "text_input_phone_format_default_validation_error";
|
|
6
|
-
readonly PHONE_FORMAT_DEFAULT_VALIDATION_ERROR_DEFAULT: "Please enter between 4 to 17 digits. You can include hyphens (-) or start with a (+), e.g., 555-123-4567 or +(222)987654321";
|
|
7
|
-
readonly PHONE_FORMAT_COMPLEX_PHONE_DEFAULT_VALIDATION_ERROR: "text_input_phone_format_complex_phone_default_validation_error";
|
|
8
|
-
readonly PHONE_FORMAT_COMPLEX_PHONE_DEFAULT_VALIDATION_ERROR_DEFAULT: "Please enter between 4 to 17 digits. You can include dividers (-), e.g., 555-123-4567.";
|
|
9
|
-
readonly INLINE_ERROR_MESSAGE_DEFAULT_ERROR_MESSAGE: "Text_Input_On_Stage_Error_Text_Label";
|
|
10
|
-
};
|
|
11
|
-
export declare const textTypeToName: {
|
|
12
|
-
readonly email: "email";
|
|
13
|
-
readonly url: "url";
|
|
14
|
-
readonly tel: "phone";
|
|
15
|
-
readonly text: undefined;
|
|
16
|
-
readonly password: undefined;
|
|
17
|
-
readonly number: undefined;
|
|
18
|
-
readonly search: undefined;
|
|
19
|
-
};
|
|
20
|
-
type SPFields = 'textPadding' | 'labelMargin' | 'labelPadding' | 'inputHeight';
|
|
21
|
-
type StyleFields = SPFields | 'textAlignment';
|
|
22
|
-
export declare const migratedSPFields: Array<SPFields>;
|
|
23
|
-
export declare const migratedFields: Array<StyleFields>;
|
|
24
|
-
export {};
|