@progress/kendo-themes-html 5.12.1-dev.2 → 5.12.1-dev.3
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.
|
@@ -0,0 +1,611 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b ||= {})
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
26
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
27
|
+
}) : x)(function(x) {
|
|
28
|
+
if (typeof require !== "undefined")
|
|
29
|
+
return require.apply(this, arguments);
|
|
30
|
+
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
31
|
+
});
|
|
32
|
+
var __objRest = (source, exclude) => {
|
|
33
|
+
var target = {};
|
|
34
|
+
for (var prop in source)
|
|
35
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36
|
+
target[prop] = source[prop];
|
|
37
|
+
if (source != null && __getOwnPropSymbols)
|
|
38
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
39
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
40
|
+
target[prop] = source[prop];
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
};
|
|
44
|
+
var __copyProps = (to, from, except, desc) => {
|
|
45
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
46
|
+
for (let key of __getOwnPropNames(from))
|
|
47
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
48
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
49
|
+
}
|
|
50
|
+
return to;
|
|
51
|
+
};
|
|
52
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
53
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
54
|
+
mod
|
|
55
|
+
));
|
|
56
|
+
|
|
57
|
+
// src/editor/tests/editor-image-editor.tsx
|
|
58
|
+
var import_react = __toESM(__require("react"));
|
|
59
|
+
var import_client = __toESM(__require("react-dom/client"));
|
|
60
|
+
|
|
61
|
+
// src/textbox/textbox.tsx
|
|
62
|
+
var React12 = __toESM(__require("react"));
|
|
63
|
+
|
|
64
|
+
// src/utils/classNames.ts
|
|
65
|
+
var classNames = (...args) => {
|
|
66
|
+
const result = {};
|
|
67
|
+
const addLeafKeys = (arg) => {
|
|
68
|
+
typeof arg === "object" ? Object.keys(arg).forEach((key) => {
|
|
69
|
+
result[key] = arg[key];
|
|
70
|
+
}) : result[arg] = true;
|
|
71
|
+
};
|
|
72
|
+
const addKeys = (list) => list.filter((arg) => arg !== true && Boolean(arg)).map(
|
|
73
|
+
(arg) => Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg)
|
|
74
|
+
);
|
|
75
|
+
addKeys(args);
|
|
76
|
+
return Object.keys(result).map((key) => result[key] && key || null).filter((el) => el !== null).join(" ");
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
// src/utils/theme.ts
|
|
80
|
+
var kendoThemeMaps = {
|
|
81
|
+
sizeMap: {
|
|
82
|
+
small: "sm",
|
|
83
|
+
medium: "md",
|
|
84
|
+
large: "lg"
|
|
85
|
+
},
|
|
86
|
+
roundedMap: {
|
|
87
|
+
small: "sm",
|
|
88
|
+
medium: "md",
|
|
89
|
+
large: "lg"
|
|
90
|
+
},
|
|
91
|
+
calloutMap: {
|
|
92
|
+
top: "n",
|
|
93
|
+
bottom: "s",
|
|
94
|
+
left: "w",
|
|
95
|
+
right: "e"
|
|
96
|
+
},
|
|
97
|
+
orientationMap: {
|
|
98
|
+
vertical: "vstack",
|
|
99
|
+
horizontal: "hstack"
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
// src/input/input.tsx
|
|
104
|
+
var React = __toESM(__require("react"));
|
|
105
|
+
var Input = class extends React.Component {
|
|
106
|
+
render() {
|
|
107
|
+
const {
|
|
108
|
+
className,
|
|
109
|
+
children,
|
|
110
|
+
size,
|
|
111
|
+
rounded,
|
|
112
|
+
fillMode,
|
|
113
|
+
hover,
|
|
114
|
+
focus,
|
|
115
|
+
valid,
|
|
116
|
+
invalid,
|
|
117
|
+
required,
|
|
118
|
+
loading,
|
|
119
|
+
disabled
|
|
120
|
+
} = this.props;
|
|
121
|
+
return /* @__PURE__ */ React.createElement(
|
|
122
|
+
"span",
|
|
123
|
+
{
|
|
124
|
+
className: classNames(
|
|
125
|
+
className,
|
|
126
|
+
"k-input",
|
|
127
|
+
{
|
|
128
|
+
[`k-input-${kendoThemeMaps.sizeMap[size] || size}`]: size,
|
|
129
|
+
[`k-input-${fillMode}`]: fillMode,
|
|
130
|
+
[`k-rounded-${kendoThemeMaps.roundedMap[rounded] || rounded}`]: rounded,
|
|
131
|
+
"k-hover": hover,
|
|
132
|
+
"k-focus": focus,
|
|
133
|
+
"k-valid": valid,
|
|
134
|
+
"k-invalid": invalid,
|
|
135
|
+
"k-required": required,
|
|
136
|
+
"k-disabled": disabled,
|
|
137
|
+
"k-loading": loading
|
|
138
|
+
}
|
|
139
|
+
)
|
|
140
|
+
},
|
|
141
|
+
children
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
Input.defaultProps = {
|
|
146
|
+
size: "medium",
|
|
147
|
+
rounded: "medium",
|
|
148
|
+
fillMode: "solid"
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
// src/input/picker.tsx
|
|
152
|
+
var React2 = __toESM(__require("react"));
|
|
153
|
+
var Picker = class extends React2.Component {
|
|
154
|
+
render() {
|
|
155
|
+
const {
|
|
156
|
+
children,
|
|
157
|
+
className,
|
|
158
|
+
style,
|
|
159
|
+
size,
|
|
160
|
+
rounded,
|
|
161
|
+
fillMode,
|
|
162
|
+
hover,
|
|
163
|
+
focus,
|
|
164
|
+
valid,
|
|
165
|
+
invalid,
|
|
166
|
+
required,
|
|
167
|
+
loading,
|
|
168
|
+
disabled
|
|
169
|
+
} = this.props;
|
|
170
|
+
return /* @__PURE__ */ React2.createElement(
|
|
171
|
+
"span",
|
|
172
|
+
{
|
|
173
|
+
className: classNames(
|
|
174
|
+
className,
|
|
175
|
+
"k-picker",
|
|
176
|
+
{
|
|
177
|
+
[`k-picker-${kendoThemeMaps.sizeMap[size] || size}`]: size,
|
|
178
|
+
[`k-picker-${fillMode}`]: fillMode,
|
|
179
|
+
[`k-rounded-${kendoThemeMaps.roundedMap[rounded] || rounded}`]: rounded,
|
|
180
|
+
"k-hover": hover,
|
|
181
|
+
"k-focus": focus,
|
|
182
|
+
"k-valid": valid,
|
|
183
|
+
"k-invalid": invalid,
|
|
184
|
+
"k-required": required,
|
|
185
|
+
"k-disabled": disabled,
|
|
186
|
+
"k-loading": loading
|
|
187
|
+
}
|
|
188
|
+
),
|
|
189
|
+
style
|
|
190
|
+
},
|
|
191
|
+
children
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
Picker.defaultProps = {
|
|
196
|
+
size: "medium",
|
|
197
|
+
rounded: "medium",
|
|
198
|
+
fillMode: "solid"
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
// src/input/input-clear-value.tsx
|
|
202
|
+
var React4 = __toESM(__require("react"));
|
|
203
|
+
|
|
204
|
+
// src/icon/icon.tsx
|
|
205
|
+
var React3 = __toESM(__require("react"));
|
|
206
|
+
var Icon = class extends React3.Component {
|
|
207
|
+
render() {
|
|
208
|
+
const {
|
|
209
|
+
className,
|
|
210
|
+
style,
|
|
211
|
+
name,
|
|
212
|
+
size,
|
|
213
|
+
rotate,
|
|
214
|
+
flip
|
|
215
|
+
} = this.props;
|
|
216
|
+
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, name && /* @__PURE__ */ React3.createElement(
|
|
217
|
+
"span",
|
|
218
|
+
{
|
|
219
|
+
className: classNames(
|
|
220
|
+
className,
|
|
221
|
+
"k-icon",
|
|
222
|
+
{
|
|
223
|
+
[`k-i-${name}`]: name,
|
|
224
|
+
[`k-icon-${size}`]: size,
|
|
225
|
+
[`k-rotate-${rotate}`]: rotate,
|
|
226
|
+
[`k-flip-${flip}`]: flip
|
|
227
|
+
}
|
|
228
|
+
),
|
|
229
|
+
style
|
|
230
|
+
}
|
|
231
|
+
));
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
// src/input/input-clear-value.tsx
|
|
236
|
+
var InputClearValue = class extends React4.Component {
|
|
237
|
+
render() {
|
|
238
|
+
const {
|
|
239
|
+
readonly,
|
|
240
|
+
loading,
|
|
241
|
+
disabled,
|
|
242
|
+
value
|
|
243
|
+
} = this.props;
|
|
244
|
+
if (disabled || readonly || loading || !value) {
|
|
245
|
+
return /* @__PURE__ */ React4.createElement(React4.Fragment, null);
|
|
246
|
+
}
|
|
247
|
+
return /* @__PURE__ */ React4.createElement("span", { className: "k-clear-value" }, /* @__PURE__ */ React4.createElement(Icon, { name: "x" }));
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
// src/input/input-inner-input.tsx
|
|
252
|
+
var React5 = __toESM(__require("react"));
|
|
253
|
+
var InputInnerInput = class extends React5.Component {
|
|
254
|
+
render() {
|
|
255
|
+
const {
|
|
256
|
+
type,
|
|
257
|
+
value,
|
|
258
|
+
placeholder,
|
|
259
|
+
autocomplete
|
|
260
|
+
} = this.props;
|
|
261
|
+
return /* @__PURE__ */ React5.createElement(
|
|
262
|
+
"input",
|
|
263
|
+
{
|
|
264
|
+
type,
|
|
265
|
+
className: "k-input-inner",
|
|
266
|
+
placeholder,
|
|
267
|
+
autoComplete: autocomplete,
|
|
268
|
+
defaultValue: value
|
|
269
|
+
}
|
|
270
|
+
);
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
InputInnerInput.defaultProps = {
|
|
274
|
+
type: "text",
|
|
275
|
+
autocomplete: "off",
|
|
276
|
+
value: "",
|
|
277
|
+
placeholder: ""
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
// src/input/input-inner-span.tsx
|
|
281
|
+
var React6 = __toESM(__require("react"));
|
|
282
|
+
|
|
283
|
+
// src/input/input-inner-textarea.tsx
|
|
284
|
+
var React7 = __toESM(__require("react"));
|
|
285
|
+
var InputInnerTextarea = class extends React7.Component {
|
|
286
|
+
render() {
|
|
287
|
+
const {
|
|
288
|
+
value,
|
|
289
|
+
className,
|
|
290
|
+
placeholder,
|
|
291
|
+
rows
|
|
292
|
+
} = this.props;
|
|
293
|
+
return /* @__PURE__ */ React7.createElement(
|
|
294
|
+
"textarea",
|
|
295
|
+
{
|
|
296
|
+
className: classNames("k-input-inner", className),
|
|
297
|
+
placeholder,
|
|
298
|
+
rows
|
|
299
|
+
},
|
|
300
|
+
value
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
InputInnerTextarea.defaultProps = {
|
|
305
|
+
value: "",
|
|
306
|
+
placeholder: ""
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
// src/input/input-loading-icon.tsx
|
|
310
|
+
var React8 = __toESM(__require("react"));
|
|
311
|
+
var InputLoadingIcon = class extends React8.Component {
|
|
312
|
+
render() {
|
|
313
|
+
const {
|
|
314
|
+
loading,
|
|
315
|
+
disabled
|
|
316
|
+
} = this.props;
|
|
317
|
+
if (disabled || !loading) {
|
|
318
|
+
return /* @__PURE__ */ React8.createElement(React8.Fragment, null);
|
|
319
|
+
}
|
|
320
|
+
return /* @__PURE__ */ React8.createElement(Icon, { className: "k-input-loading-icon", name: "loading" });
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
// src/input/input-validation-icon.tsx
|
|
325
|
+
var React9 = __toESM(__require("react"));
|
|
326
|
+
var InputValidationIcon = class extends React9.Component {
|
|
327
|
+
render() {
|
|
328
|
+
const {
|
|
329
|
+
valid,
|
|
330
|
+
invalid,
|
|
331
|
+
loading,
|
|
332
|
+
disabled
|
|
333
|
+
} = this.props;
|
|
334
|
+
const iconName = invalid ? "warning" : "check";
|
|
335
|
+
const renderValidationIcon = Boolean(valid || invalid);
|
|
336
|
+
if (disabled || loading || !renderValidationIcon) {
|
|
337
|
+
return /* @__PURE__ */ React9.createElement(React9.Fragment, null);
|
|
338
|
+
}
|
|
339
|
+
return /* @__PURE__ */ React9.createElement(Icon, { className: "k-input-validation-icon", name: iconName });
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
// src/input/input-prefix.tsx
|
|
344
|
+
var React10 = __toESM(__require("react"));
|
|
345
|
+
var InputPrefix = class extends React10.Component {
|
|
346
|
+
render() {
|
|
347
|
+
const {
|
|
348
|
+
className,
|
|
349
|
+
children
|
|
350
|
+
} = this.props;
|
|
351
|
+
if (!children) {
|
|
352
|
+
return /* @__PURE__ */ React10.createElement(React10.Fragment, null);
|
|
353
|
+
}
|
|
354
|
+
return /* @__PURE__ */ React10.createElement(
|
|
355
|
+
"span",
|
|
356
|
+
{
|
|
357
|
+
className: classNames(
|
|
358
|
+
className,
|
|
359
|
+
"k-input-prefix"
|
|
360
|
+
)
|
|
361
|
+
},
|
|
362
|
+
children
|
|
363
|
+
);
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
// src/input/input-suffix.tsx
|
|
368
|
+
var React11 = __toESM(__require("react"));
|
|
369
|
+
var InputSuffix = class extends React11.Component {
|
|
370
|
+
render() {
|
|
371
|
+
const {
|
|
372
|
+
className,
|
|
373
|
+
children
|
|
374
|
+
} = this.props;
|
|
375
|
+
if (!children) {
|
|
376
|
+
return /* @__PURE__ */ React11.createElement(React11.Fragment, null);
|
|
377
|
+
}
|
|
378
|
+
return /* @__PURE__ */ React11.createElement(
|
|
379
|
+
"span",
|
|
380
|
+
{
|
|
381
|
+
className: classNames(
|
|
382
|
+
className,
|
|
383
|
+
"k-input-suffix"
|
|
384
|
+
)
|
|
385
|
+
},
|
|
386
|
+
children
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
// src/textbox/textbox.tsx
|
|
392
|
+
var Textbox = class extends React12.Component {
|
|
393
|
+
render() {
|
|
394
|
+
const {
|
|
395
|
+
className,
|
|
396
|
+
prefix,
|
|
397
|
+
suffix,
|
|
398
|
+
value,
|
|
399
|
+
placeholder,
|
|
400
|
+
size,
|
|
401
|
+
rounded,
|
|
402
|
+
fillMode,
|
|
403
|
+
hover,
|
|
404
|
+
focus,
|
|
405
|
+
valid,
|
|
406
|
+
invalid,
|
|
407
|
+
required,
|
|
408
|
+
loading,
|
|
409
|
+
disabled,
|
|
410
|
+
showClearButton
|
|
411
|
+
} = this.props;
|
|
412
|
+
return /* @__PURE__ */ React12.createElement(
|
|
413
|
+
Input,
|
|
414
|
+
{
|
|
415
|
+
size,
|
|
416
|
+
rounded,
|
|
417
|
+
fillMode,
|
|
418
|
+
hover,
|
|
419
|
+
focus,
|
|
420
|
+
valid,
|
|
421
|
+
invalid,
|
|
422
|
+
required,
|
|
423
|
+
loading,
|
|
424
|
+
disabled,
|
|
425
|
+
className: classNames(className, "k-textbox")
|
|
426
|
+
},
|
|
427
|
+
/* @__PURE__ */ React12.createElement(InputPrefix, null, prefix),
|
|
428
|
+
/* @__PURE__ */ React12.createElement(InputInnerInput, { placeholder, value }),
|
|
429
|
+
/* @__PURE__ */ React12.createElement(InputSuffix, null, suffix),
|
|
430
|
+
/* @__PURE__ */ React12.createElement(InputValidationIcon, __spreadValues({}, this.props)),
|
|
431
|
+
/* @__PURE__ */ React12.createElement(InputLoadingIcon, __spreadValues({}, this.props)),
|
|
432
|
+
showClearButton && /* @__PURE__ */ React12.createElement(InputClearValue, __spreadValues({}, this.props))
|
|
433
|
+
);
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
Textbox.defaultProps = {
|
|
437
|
+
showClearButton: true
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
// src/window/window.tsx
|
|
441
|
+
var React15 = __toESM(__require("react"));
|
|
442
|
+
|
|
443
|
+
// src/action-buttons/action-buttons.tsx
|
|
444
|
+
var React13 = __toESM(__require("react"));
|
|
445
|
+
var ActionButtons = class extends React13.Component {
|
|
446
|
+
render() {
|
|
447
|
+
const _a = this.props, {
|
|
448
|
+
children,
|
|
449
|
+
className,
|
|
450
|
+
alignment,
|
|
451
|
+
orientation
|
|
452
|
+
} = _a, htmlAttributes = __objRest(_a, [
|
|
453
|
+
"children",
|
|
454
|
+
"className",
|
|
455
|
+
"alignment",
|
|
456
|
+
"orientation"
|
|
457
|
+
]);
|
|
458
|
+
return /* @__PURE__ */ React13.createElement(
|
|
459
|
+
"div",
|
|
460
|
+
__spreadProps(__spreadValues({}, htmlAttributes), {
|
|
461
|
+
className: classNames(
|
|
462
|
+
"k-actions",
|
|
463
|
+
{
|
|
464
|
+
[`k-actions-${alignment}`]: alignment,
|
|
465
|
+
[`k-actions-${orientation}`]: orientation
|
|
466
|
+
},
|
|
467
|
+
className
|
|
468
|
+
)
|
|
469
|
+
}),
|
|
470
|
+
children
|
|
471
|
+
);
|
|
472
|
+
}
|
|
473
|
+
};
|
|
474
|
+
ActionButtons.defaultProps = {
|
|
475
|
+
alignment: "start",
|
|
476
|
+
orientation: "horizontal"
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
// src/button/button.tsx
|
|
480
|
+
var React14 = __toESM(__require("react"));
|
|
481
|
+
var Button = class extends React14.Component {
|
|
482
|
+
render() {
|
|
483
|
+
const _a = this.props, {
|
|
484
|
+
children,
|
|
485
|
+
className,
|
|
486
|
+
iconClassName,
|
|
487
|
+
text,
|
|
488
|
+
icon,
|
|
489
|
+
size,
|
|
490
|
+
rounded,
|
|
491
|
+
fillMode,
|
|
492
|
+
themeColor,
|
|
493
|
+
hover,
|
|
494
|
+
focus,
|
|
495
|
+
active,
|
|
496
|
+
selected,
|
|
497
|
+
disabled,
|
|
498
|
+
showArrow,
|
|
499
|
+
arrowIconName
|
|
500
|
+
} = _a, htmlAttributes = __objRest(_a, [
|
|
501
|
+
"children",
|
|
502
|
+
"className",
|
|
503
|
+
"iconClassName",
|
|
504
|
+
"text",
|
|
505
|
+
"icon",
|
|
506
|
+
"size",
|
|
507
|
+
"rounded",
|
|
508
|
+
"fillMode",
|
|
509
|
+
"themeColor",
|
|
510
|
+
"hover",
|
|
511
|
+
"focus",
|
|
512
|
+
"active",
|
|
513
|
+
"selected",
|
|
514
|
+
"disabled",
|
|
515
|
+
"showArrow",
|
|
516
|
+
"arrowIconName"
|
|
517
|
+
]);
|
|
518
|
+
const hasIcon = icon !== void 0;
|
|
519
|
+
const hasChildren = children !== void 0;
|
|
520
|
+
return /* @__PURE__ */ React14.createElement(
|
|
521
|
+
"button",
|
|
522
|
+
__spreadProps(__spreadValues({
|
|
523
|
+
style: this.props.style
|
|
524
|
+
}, htmlAttributes), {
|
|
525
|
+
dir: this.props.dir,
|
|
526
|
+
className: classNames(
|
|
527
|
+
className,
|
|
528
|
+
"k-button",
|
|
529
|
+
{
|
|
530
|
+
[`k-button-${kendoThemeMaps.sizeMap[size] || size}`]: size,
|
|
531
|
+
[`k-button-${fillMode}`]: fillMode,
|
|
532
|
+
[`k-button-${fillMode}-${themeColor}`]: Boolean(fillMode && themeColor),
|
|
533
|
+
[`k-rounded-${kendoThemeMaps.roundedMap[rounded] || rounded}`]: rounded,
|
|
534
|
+
"k-icon-button": !text && !hasChildren && hasIcon,
|
|
535
|
+
"k-hover": hover,
|
|
536
|
+
"k-focus": focus,
|
|
537
|
+
"k-active": active,
|
|
538
|
+
"k-selected": selected,
|
|
539
|
+
"k-disabled": disabled
|
|
540
|
+
}
|
|
541
|
+
)
|
|
542
|
+
}),
|
|
543
|
+
icon && /* @__PURE__ */ React14.createElement(Icon, { className: classNames(iconClassName, "k-button-icon"), name: icon }),
|
|
544
|
+
text ? /* @__PURE__ */ React14.createElement(React14.Fragment, null, text && /* @__PURE__ */ React14.createElement("span", { className: "k-button-text" }, text), children) : children && /* @__PURE__ */ React14.createElement("span", { className: "k-button-text" }, children),
|
|
545
|
+
showArrow && /* @__PURE__ */ React14.createElement("span", { className: "k-menu-button-arrow k-button-arrow" }, /* @__PURE__ */ React14.createElement(Icon, { name: arrowIconName }))
|
|
546
|
+
);
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
Button.defaultProps = {
|
|
550
|
+
size: "medium",
|
|
551
|
+
rounded: "medium",
|
|
552
|
+
fillMode: "solid",
|
|
553
|
+
themeColor: "base",
|
|
554
|
+
showArrow: false,
|
|
555
|
+
arrowIconName: "arrow-s"
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
// src/window/window.tsx
|
|
559
|
+
var Window = class extends React15.Component {
|
|
560
|
+
render() {
|
|
561
|
+
const {
|
|
562
|
+
className,
|
|
563
|
+
children,
|
|
564
|
+
title,
|
|
565
|
+
actions,
|
|
566
|
+
minimized,
|
|
567
|
+
themeColor,
|
|
568
|
+
actionButtons,
|
|
569
|
+
actionButtonsAlign
|
|
570
|
+
} = this.props;
|
|
571
|
+
return /* @__PURE__ */ React15.createElement(
|
|
572
|
+
"div",
|
|
573
|
+
{
|
|
574
|
+
className: classNames(
|
|
575
|
+
"k-window",
|
|
576
|
+
{
|
|
577
|
+
"k-window-minimized": minimized,
|
|
578
|
+
[`k-window-${themeColor}`]: themeColor
|
|
579
|
+
},
|
|
580
|
+
className
|
|
581
|
+
)
|
|
582
|
+
},
|
|
583
|
+
(title !== void 0 || actions) && /* @__PURE__ */ React15.createElement("div", { className: "k-window-titlebar" }, title !== void 0 && /* @__PURE__ */ React15.createElement("span", { className: "k-window-title" }, title), actions && /* @__PURE__ */ React15.createElement(React15.Fragment, null, /* @__PURE__ */ React15.createElement("div", { className: "k-window-titlebar-actions" }, actions.map(
|
|
584
|
+
(actionName) => /* @__PURE__ */ React15.createElement(Button, { key: actionName, icon: actionName, fillMode: "flat", className: "k-window-titlebar-action" })
|
|
585
|
+
)))),
|
|
586
|
+
/* @__PURE__ */ React15.createElement("div", { className: classNames(
|
|
587
|
+
"k-window-content",
|
|
588
|
+
{
|
|
589
|
+
"k-hidden": minimized
|
|
590
|
+
}
|
|
591
|
+
) }, children),
|
|
592
|
+
actionButtons && /* @__PURE__ */ React15.createElement(ActionButtons, { alignment: actionButtonsAlign, className: "k-window-actions" }, /* @__PURE__ */ React15.createElement(Button, null, "Cancel"), /* @__PURE__ */ React15.createElement(Button, { themeColor: "primary" }, "Update"))
|
|
593
|
+
);
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
// src/editor/tests/editor-image-editor.tsx
|
|
598
|
+
var root = import_client.default.createRoot(
|
|
599
|
+
document.getElementById("app")
|
|
600
|
+
);
|
|
601
|
+
var styles = `
|
|
602
|
+
.k-window {
|
|
603
|
+
width: 100%;
|
|
604
|
+
position: relative;
|
|
605
|
+
}
|
|
606
|
+
`;
|
|
607
|
+
root.render(
|
|
608
|
+
/* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("style", null, styles), /* @__PURE__ */ import_react.default.createElement("div", { id: "test-area", className: "k-d-grid k-grid-cols-2" }, /* @__PURE__ */ import_react.default.createElement("span", null, "Find Window"), /* @__PURE__ */ import_react.default.createElement("span", null), /* @__PURE__ */ import_react.default.createElement("section", null, /* @__PURE__ */ import_react.default.createElement(Window, { title: "Insert Image", actions: ["close"], actionButtons: true, actionButtonsAlign: "end" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "k-form k-form-md k-form-horizontal" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "k-form-field" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "k-form-label" }, /* @__PURE__ */ import_react.default.createElement("label", null, "Web address:")), /* @__PURE__ */ import_react.default.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ import_react.default.createElement(Textbox, { showClearButton: false }))), /* @__PURE__ */ import_react.default.createElement("div", { className: "k-form-field" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "k-form-label" }, /* @__PURE__ */ import_react.default.createElement("label", null, "Alternate text:")), /* @__PURE__ */ import_react.default.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ import_react.default.createElement(Textbox, { showClearButton: false }))), /* @__PURE__ */ import_react.default.createElement("div", { className: "k-form-field" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "k-form-label" }, /* @__PURE__ */ import_react.default.createElement("label", null, "Width:")), /* @__PURE__ */ import_react.default.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ import_react.default.createElement(Textbox, { showClearButton: false }))), /* @__PURE__ */ import_react.default.createElement("div", { className: "k-form-field" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "k-form-label" }, /* @__PURE__ */ import_react.default.createElement("label", null, "Height:")), /* @__PURE__ */ import_react.default.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ import_react.default.createElement(Textbox, { showClearButton: false }))))))))
|
|
609
|
+
);
|
|
610
|
+
})();
|
|
611
|
+
//# sourceMappingURL=editor-image-editor.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/editor/tests/editor-image-editor.tsx", "../../../src/textbox/textbox.tsx", "../../../src/utils/classNames.ts", "../../../src/utils/theme.ts", "../../../src/input/input.tsx", "../../../src/input/picker.tsx", "../../../src/input/input-clear-value.tsx", "../../../src/icon/icon.tsx", "../../../src/input/input-inner-input.tsx", "../../../src/input/input-inner-span.tsx", "../../../src/input/input-inner-textarea.tsx", "../../../src/input/input-loading-icon.tsx", "../../../src/input/input-validation-icon.tsx", "../../../src/input/input-prefix.tsx", "../../../src/input/input-suffix.tsx", "../../../src/window/window.tsx", "../../../src/action-buttons/action-buttons.tsx", "../../../src/button/button.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport ReactDOM from 'react-dom/client';\nimport { Textbox } from '../../textbox';\nimport { Window } from '../../window';\n\nconst root = ReactDOM.createRoot(\n document.getElementById('app') as HTMLElement\n);\n\nconst styles = `\n .k-window {\n width: 100%;\n position: relative;\n }\n`;\n\nroot.render(\n <>\n <style>{styles}</style>\n <div id=\"test-area\" className=\"k-d-grid k-grid-cols-2\">\n\n <span>Find Window</span>\n <span></span>\n\n <section>\n <Window title=\"Insert Image\" actions={[ 'close' ]} actionButtons actionButtonsAlign=\"end\">\n <div className=\"k-form k-form-md k-form-horizontal\">\n <div className=\"k-form-field\">\n <div className=\"k-form-label\">\n <label>Web address:</label>\n </div>\n <div className=\"k-form-field-wrap\">\n <Textbox showClearButton={false} />\n </div>\n </div>\n <div className=\"k-form-field\">\n <div className=\"k-form-label\">\n <label>Alternate text:</label>\n </div>\n <div className=\"k-form-field-wrap\">\n <Textbox showClearButton={false} />\n </div>\n </div>\n <div className=\"k-form-field\">\n <div className=\"k-form-label\">\n <label>Width:</label>\n </div>\n <div className=\"k-form-field-wrap\">\n <Textbox showClearButton={false} />\n </div>\n </div>\n <div className=\"k-form-field\">\n <div className=\"k-form-label\">\n <label>Height:</label>\n </div>\n <div className=\"k-form-field-wrap\">\n <Textbox showClearButton={false} />\n </div>\n </div>\n </div>\n </Window>\n </section>\n\n </div>\n </>\n);\n", "import * as React from 'react';\nimport { classNames } from '../utils';\nimport {\n Input,\n InputPrefix,\n InputSuffix,\n InputInnerInput,\n InputClearValue,\n InputLoadingIcon,\n InputValidationIcon\n} from '../input';\n\nexport interface TextboxProps {\n className?: string;\n prefix?: React.ReactNode;\n suffix?: React.ReactNode;\n type?: string;\n value?: string;\n placeholder?: string;\n autocomplete?: string;\n size?: null | 'small' | 'medium' | 'large';\n rounded?: null | 'small' | 'medium' | 'large' | 'full';\n fillMode?: null | 'solid' | 'outline' | 'flat';\n hover?: boolean;\n focus?: boolean;\n valid?: boolean;\n invalid?: boolean\n required?: boolean;\n loading?: boolean;\n disabled?: boolean;\n showClearButton?: boolean;\n}\n\nexport class Textbox extends React.Component<TextboxProps> {\n\n static defaultProps = {\n showClearButton: true\n };\n\n render() {\n const {\n className,\n prefix,\n suffix,\n value,\n placeholder,\n size,\n rounded,\n fillMode,\n hover,\n focus,\n valid,\n invalid,\n required,\n loading,\n disabled,\n showClearButton\n } = this.props;\n\n return (\n <Input\n size={size}\n rounded={rounded}\n fillMode={fillMode}\n hover={hover}\n focus={focus}\n valid={valid}\n invalid={invalid}\n required={required}\n loading={loading}\n disabled={disabled}\n className={classNames(className, 'k-textbox')}\n >\n <InputPrefix>{prefix}</InputPrefix>\n <InputInnerInput placeholder={placeholder} value={value} />\n <InputSuffix>{suffix}</InputSuffix>\n <InputValidationIcon {...this.props} />\n <InputLoadingIcon {...this.props} />\n { showClearButton && <InputClearValue {...this.props} /> }\n </Input>\n );\n }\n}\n", "/* eslint-disable no-return-assign */\nexport const classNames = (...args): string => {\n const result = {};\n\n const addLeafKeys = (arg) => {\n (typeof arg === 'object'\n ? Object.keys(arg).forEach((key) => {\n result[key] = arg[key];\n })\n : (result[arg] = true)\n );\n };\n\n const addKeys = (list) =>\n list\n .filter((arg) => arg !== true && Boolean(arg))\n .map((arg: any) =>\n (Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg))\n );\n\n addKeys(args);\n\n return Object.keys(result)\n .map((key) => (result[key] && key) || null)\n .filter((el) => el !== null)\n .join(' ');\n};\n", "export interface KendoThemeMaps {\n sizeMap: Record<Exclude<any, null>, string>;\n roundedMap: Record<Exclude<any, null>, string>;\n calloutMap: Record<Exclude<any, null>, string>;\n orientationMap: Record<Exclude<any, null>, string>;\n}\n\nexport const kendoThemeMaps: KendoThemeMaps = {\n sizeMap: {\n small: 'sm',\n medium: 'md',\n large: 'lg'\n },\n roundedMap: {\n small: 'sm',\n medium: 'md',\n large: 'lg'\n },\n calloutMap: {\n top: 'n',\n bottom: 's',\n left: 'w',\n right: 'e'\n },\n orientationMap: {\n vertical: 'vstack',\n horizontal: 'hstack',\n },\n};\n", "import * as React from 'react';\nimport { classNames, kendoThemeMaps } from '../utils';\n\nexport interface InputProps {\n children?: React.ReactNode;\n className?: string;\n size?: null | 'small' | 'medium' | 'large';\n rounded?: null | 'small' | 'medium' | 'large' | 'full';\n fillMode?: null | 'solid' | 'outline' | 'flat';\n hover?: boolean;\n focus?: boolean;\n valid?: boolean;\n invalid?: boolean;\n required?: boolean;\n loading?: boolean;\n disabled?: boolean;\n}\n\nexport class Input extends React.Component<InputProps> {\n\n static defaultProps = {\n size: 'medium',\n rounded: 'medium',\n fillMode: 'solid'\n };\n\n render() {\n const {\n className,\n children,\n size,\n rounded,\n fillMode,\n hover,\n focus,\n valid,\n invalid,\n required,\n loading,\n disabled,\n } = this.props;\n\n return (\n <span\n className={classNames(\n className,\n 'k-input',\n {\n [`k-input-${kendoThemeMaps.sizeMap[size!] || size}`]: size,\n [`k-input-${fillMode}`]: fillMode,\n [`k-rounded-${kendoThemeMaps.roundedMap[rounded!] || rounded}`]: rounded,\n 'k-hover': hover,\n 'k-focus': focus,\n 'k-valid': valid,\n 'k-invalid': invalid,\n 'k-required': required,\n 'k-disabled': disabled,\n 'k-loading': loading\n }\n )}>\n {children}\n </span>\n );\n }\n}\n", "import * as React from 'react';\nimport { classNames, kendoThemeMaps } from '../utils';\n\nexport interface PickerProps {\n children?: React.ReactNode;\n className?: string;\n style?: React.CSSProperties;\n size: null | 'small' | 'medium' | 'large';\n rounded: null | 'small' | 'medium' | 'large' | 'full';\n fillMode: null | 'solid' | 'outline' | 'flat';\n hover?: boolean;\n focus?: boolean;\n valid?: boolean;\n invalid?: boolean;\n required?: boolean;\n loading?: boolean;\n disabled?: boolean;\n}\n\nexport class Picker extends React.Component<PickerProps> {\n\n static defaultProps = {\n size: 'medium',\n rounded: 'medium',\n fillMode: 'solid'\n };\n\n render() {\n const {\n children,\n className,\n style,\n size,\n rounded,\n fillMode,\n hover,\n focus,\n valid,\n invalid,\n required,\n loading,\n disabled\n } = this.props;\n\n return (\n <span\n className={classNames(\n className,\n 'k-picker',\n {\n [`k-picker-${kendoThemeMaps.sizeMap[size!] || size}`]: size,\n [`k-picker-${fillMode}`]: fillMode,\n [`k-rounded-${kendoThemeMaps.roundedMap[rounded!] || rounded}`]: rounded,\n 'k-hover': hover,\n 'k-focus': focus,\n 'k-valid': valid,\n 'k-invalid': invalid,\n 'k-required': required,\n 'k-disabled': disabled,\n 'k-loading': loading\n }\n )}\n style={style}>\n {children}\n </span>\n );\n }\n}\n", "import * as React from 'react';\nimport { Icon } from '../icon';\n\nexport interface InputClearValueProps {\n className?: string;\n value?: string;\n readonly?: boolean;\n loading?: boolean;\n disabled?: boolean;\n}\n\nexport class InputClearValue extends React.Component<InputClearValueProps> {\n\n render() {\n const {\n readonly,\n loading,\n disabled,\n value\n } = this.props;\n\n if (disabled || readonly || loading || !value ) {\n return <></>;\n }\n\n return (\n <span className=\"k-clear-value\">\n <Icon name=\"x\" />\n </span>\n );\n }\n}\n", "import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface IconProps {\n className?: string;\n style?: React.CSSProperties;\n name?: string;\n size?: null | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';\n rotate?: null | '0' | '45' | '90' | '135' | '180' | '225' | '270' | '315';\n flip?: null | 'v' | 'h';\n}\n\nexport class Icon extends React.Component<IconProps> {\n\n render() {\n const {\n className,\n style,\n name,\n size,\n rotate,\n flip\n } = this.props;\n\n return (\n <>\n { name &&\n <span\n className={classNames(\n className,\n 'k-icon',\n {\n [`k-i-${name}`]: name,\n [`k-icon-${size}`]: size,\n [`k-rotate-${rotate}`]: rotate,\n [`k-flip-${flip}`]: flip\n }\n )}\n style={style}>\n </span>\n }\n </>\n );\n }\n}\n", "import * as React from 'react';\n\nexport interface InputInnerInputProps {\n className?: string;\n value?: string;\n type?: string;\n placeholder?: string;\n autocomplete?: string;\n}\n\nexport class InputInnerInput extends React.Component<InputInnerInputProps> {\n\n static defaultProps = {\n type: 'text',\n autocomplete: 'off',\n value: '',\n placeholder: ''\n };\n\n render() {\n const {\n type,\n value,\n placeholder,\n autocomplete\n } = this.props;\n\n return (\n <input\n type={type}\n className=\"k-input-inner\"\n placeholder={placeholder}\n autoComplete={autocomplete}\n defaultValue={value} />\n );\n }\n}\n", "import * as React from 'react';\nimport { Icon } from '../icon';\n\nexport interface InputInnerSpanProps {\n value?: string;\n placeholder?: string;\n showValue?: boolean;\n valueIcon?: React.ReactNode;\n valueIconName?: string;\n}\n\nexport class InputInnerSpan extends React.Component<InputInnerSpanProps> {\n\n render() {\n const {\n value,\n placeholder,\n valueIcon,\n showValue,\n valueIconName\n } = this.props;\n\n return (\n <span className=\"k-input-inner\">\n {valueIcon}\n {!valueIcon && valueIconName && <Icon className=\"k-input-value-icon\" name={valueIconName} />}\n {showValue && !value && placeholder}\n {showValue && value && <span className=\"k-input-value-text\">{value}</span>}\n </span>\n );\n }\n}\n", "import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface InputInnerTextareaProps {\n className?: string;\n value?: string;\n placeholder?: string;\n rows?: number;\n}\n\nexport class InputInnerTextarea extends React.Component<InputInnerTextareaProps> {\n\n static defaultProps = {\n value: '',\n placeholder: ''\n };\n\n render() {\n const {\n value,\n className,\n placeholder,\n rows\n } = this.props;\n\n return (\n <textarea\n className={classNames( 'k-input-inner', className )}\n placeholder={placeholder}\n rows={rows}>\n {value}\n </textarea>\n );\n }\n}\n", "import * as React from 'react';\nimport { Icon } from '../icon';\n\nexport interface InputLoadingIconProps {\n className?: string;\n loading?: boolean;\n disabled?: boolean;\n}\n\nexport class InputLoadingIcon extends React.Component<InputLoadingIconProps> {\n\n render() {\n const {\n loading,\n disabled\n } = this.props;\n\n if (disabled || !loading) {\n return <></>;\n }\n\n return (\n <Icon className=\"k-input-loading-icon\" name=\"loading\" />\n );\n }\n}\n", "import * as React from 'react';\nimport { Icon } from '../icon';\n\nexport interface InputValidationIconProps {\n className?: string;\n valid?: boolean;\n invalid?: boolean;\n loading?: boolean;\n disabled?: boolean;\n}\n\nexport class InputValidationIcon extends React.Component<InputValidationIconProps> {\n\n render() {\n const {\n valid,\n invalid,\n loading,\n disabled\n } = this.props;\n\n const iconName = invalid ? 'warning' : 'check';\n const renderValidationIcon = Boolean( valid || invalid );\n\n if (disabled || loading || !renderValidationIcon) {\n return <></>;\n }\n\n return (\n <Icon className=\"k-input-validation-icon\" name={iconName} />\n );\n }\n}\n", "import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface InputPrefixProps {\n children?: React.ReactNode;\n className?: string;\n}\n\nexport class InputPrefix extends React.Component<InputPrefixProps> {\n\n render() {\n const {\n className,\n children,\n } = this.props;\n\n if (!children) {\n return <></>;\n }\n\n return (\n <span\n className={classNames(\n className,\n 'k-input-prefix'\n )}>\n {children}\n </span>\n );\n }\n}\n", "import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface InputSuffixProps {\n children?: React.ReactNode;\n className?: string;\n}\n\nexport class InputSuffix extends React.Component<InputSuffixProps> {\n\n render() {\n const {\n className,\n children\n } = this.props;\n\n if (!children) {\n return <></>;\n }\n\n return (\n <span\n className={classNames(\n className,\n 'k-input-suffix'\n )}>\n {children}\n </span>\n );\n }\n}\n", "import * as React from 'react';\nimport { ActionButtons } from '../action-buttons';\nimport { Button } from '../button';\nimport { classNames } from '../utils';\n\nexport interface WindowProps {\n children?: React.ReactNode;\n className?: string;\n title?: string;\n actions?: string[];\n minimized?: boolean;\n themeColor?: null | 'primary' | 'dark' | 'light';\n actionButtons?: boolean;\n actionButtonsAlign?: \"start\" | \"end\" | \"center\" | \"stretched\"\n}\n\nexport class Window extends React.Component<WindowProps> {\n\n render() {\n const {\n className,\n children,\n title,\n actions,\n minimized,\n themeColor,\n actionButtons,\n actionButtonsAlign,\n } = this.props;\n\n\n return (\n <div\n className={classNames(\n \"k-window\",\n {\n \"k-window-minimized\": minimized,\n [`k-window-${themeColor}`]: themeColor,\n },\n className\n )}>\n\n {(title !== undefined || actions) &&\n <div className=\"k-window-titlebar\">\n {title !== undefined && <span className=\"k-window-title\">{title}</span>}\n {actions && <>\n <div className=\"k-window-titlebar-actions\">\n {actions.map(actionName =>\n <Button key={actionName} icon={actionName} fillMode=\"flat\" className=\"k-window-titlebar-action\"></Button>\n )}\n </div>\n </>}\n </div>\n }\n <div className={classNames(\n \"k-window-content\",\n {\n \"k-hidden\": minimized\n }\n )}>\n {children}\n </div>\n {actionButtons &&\n <ActionButtons alignment={actionButtonsAlign} className=\"k-window-actions\">\n <Button>Cancel</Button>\n <Button themeColor=\"primary\">Update</Button>\n </ActionButtons>\n }\n </div>\n );\n }\n}\n", "import * as React from 'react';\nimport { ButtonProps } from '../button';\nimport { classNames } from '../utils';\n\nexport interface ActionButtonsProps {\n children?: React.ReactElement<ButtonProps>|React.ReactElement<ButtonProps>[];\n className?: string;\n alignment?: 'start' | 'center' | 'end' | 'stretched';\n orientation?: 'horizontal' | 'vertical';\n}\n\nexport class ActionButtons extends React.Component<ActionButtonsProps> {\n\n static defaultProps = {\n alignment: 'start',\n orientation: 'horizontal'\n };\n\n render() {\n const {\n children,\n className,\n alignment,\n orientation,\n ...htmlAttributes\n } = this.props;\n\n return (\n <div\n {...htmlAttributes}\n className={classNames(\n 'k-actions',\n {\n [`k-actions-${alignment}`]: alignment,\n [`k-actions-${orientation}`]: orientation\n },\n className\n )}>\n {children}\n </div>\n );\n }\n}\n", "import * as React from 'react';\nimport { classNames, kendoThemeMaps } from '../utils';\nimport { Icon } from '../icon/';\n\nexport interface ButtonProps {\n children?: React.ReactNode;\n className?: string;\n dir?: string;\n style?: React.CSSProperties;\n iconClassName?: string;\n text?: string;\n icon?: string;\n size?: null | 'small' | 'medium' | 'large';\n rounded: null | 'small' | 'medium' | 'large' | 'full';\n fillMode?: null | 'solid' | 'outline' | 'flat' | 'link' | 'clear';\n themeColor?: null | 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse';\n hover?: boolean;\n focus?: boolean;\n active?: boolean;\n selected?: boolean;\n disabled?: boolean;\n showArrow?: boolean;\n arrowIconName?: string;\n}\n\nexport class Button extends React.Component<ButtonProps> {\n\n static defaultProps = {\n size: 'medium',\n rounded: 'medium',\n fillMode: 'solid',\n themeColor: 'base',\n showArrow: false,\n arrowIconName: 'arrow-s'\n };\n\n render() {\n const {\n children,\n className,\n iconClassName,\n text,\n icon,\n size,\n rounded,\n fillMode,\n themeColor,\n hover,\n focus,\n active,\n selected,\n disabled,\n showArrow,\n arrowIconName,\n ...htmlAttributes\n } = this.props;\n\n const hasIcon = (icon !== undefined);\n const hasChildren = children !== undefined;\n\n return (\n <button\n style={this.props.style}\n {...htmlAttributes}\n dir={this.props.dir}\n className={classNames(\n className,\n 'k-button',\n {\n [`k-button-${kendoThemeMaps.sizeMap[size!] || size}`]: size,\n [`k-button-${fillMode}`]: fillMode,\n [`k-button-${fillMode}-${themeColor}`]: Boolean(fillMode && themeColor),\n [`k-rounded-${kendoThemeMaps.roundedMap[rounded!] || rounded}`]: rounded,\n 'k-icon-button': !text && !hasChildren && hasIcon,\n 'k-hover': hover,\n 'k-focus': focus,\n 'k-active': active,\n 'k-selected': selected,\n 'k-disabled': disabled\n }\n )}>\n {icon && <Icon className={classNames(iconClassName, 'k-button-icon')} name={icon} />}\n\n {text\n ?\n <>\n {text && <span className=\"k-button-text\">{text}</span>}\n {children}\n </>\n : children && <span className=\"k-button-text\">{children}</span>\n }\n\n {showArrow && <span className=\"k-menu-button-arrow k-button-arrow\"><Icon name={arrowIconName} /></span>}\n </button>\n );\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAkB;AAClB,sBAAqB;;;ACDrB,MAAAA,UAAuB;;;ACChB,MAAM,aAAa,IAAI,SAAiB;AAC3C,UAAM,SAAS,CAAC;AAEhB,UAAM,cAAc,CAAC,QAAQ;AACzB,MAAC,OAAO,QAAQ,WACV,OAAO,KAAK,GAAG,EAAE,QAAQ,CAAC,QAAQ;AAChC,eAAO,OAAO,IAAI;AAAA,MACtB,CAAC,IACE,OAAO,OAAO;AAAA,IAEzB;AAEA,UAAM,UAAU,CAAC,SACb,KACK,OAAO,CAAC,QAAQ,QAAQ,QAAQ,QAAQ,GAAG,CAAC,EAC5C;AAAA,MAAI,CAAC,QACD,MAAM,QAAQ,GAAG,IAAI,QAAQ,GAAG,IAAI,YAAY,GAAG;AAAA,IACxD;AAER,YAAQ,IAAI;AAEZ,WAAO,OAAO,KAAK,MAAM,EACpB,IAAI,CAAC,QAAS,OAAO,QAAQ,OAAQ,IAAI,EACzC,OAAO,CAAC,OAAO,OAAO,IAAI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React", "React", "React", "React", "React", "React", "React", "React", "React", "React", "ReactDOM", "React"]
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-themes-html",
|
|
3
3
|
"description": "A collection of HTML helpers used for developing Kendo UI themes",
|
|
4
|
-
"version": "5.12.1-dev.
|
|
4
|
+
"version": "5.12.1-dev.3",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/react": "^18.0.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "8c82f49a750901799f12f09ca977f65b74ff9577"
|
|
47
47
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ReactDOM from 'react-dom/client';
|
|
3
|
+
import { Textbox } from '../../textbox';
|
|
4
|
+
import { Window } from '../../window';
|
|
5
|
+
|
|
6
|
+
const root = ReactDOM.createRoot(
|
|
7
|
+
document.getElementById('app') as HTMLElement
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
const styles = `
|
|
11
|
+
.k-window {
|
|
12
|
+
width: 100%;
|
|
13
|
+
position: relative;
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
|
|
17
|
+
root.render(
|
|
18
|
+
<>
|
|
19
|
+
<style>{styles}</style>
|
|
20
|
+
<div id="test-area" className="k-d-grid k-grid-cols-2">
|
|
21
|
+
|
|
22
|
+
<span>Find Window</span>
|
|
23
|
+
<span></span>
|
|
24
|
+
|
|
25
|
+
<section>
|
|
26
|
+
<Window title="Insert Image" actions={[ 'close' ]} actionButtons actionButtonsAlign="end">
|
|
27
|
+
<div className="k-form k-form-md k-form-horizontal">
|
|
28
|
+
<div className="k-form-field">
|
|
29
|
+
<div className="k-form-label">
|
|
30
|
+
<label>Web address:</label>
|
|
31
|
+
</div>
|
|
32
|
+
<div className="k-form-field-wrap">
|
|
33
|
+
<Textbox showClearButton={false} />
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
<div className="k-form-field">
|
|
37
|
+
<div className="k-form-label">
|
|
38
|
+
<label>Alternate text:</label>
|
|
39
|
+
</div>
|
|
40
|
+
<div className="k-form-field-wrap">
|
|
41
|
+
<Textbox showClearButton={false} />
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
<div className="k-form-field">
|
|
45
|
+
<div className="k-form-label">
|
|
46
|
+
<label>Width:</label>
|
|
47
|
+
</div>
|
|
48
|
+
<div className="k-form-field-wrap">
|
|
49
|
+
<Textbox showClearButton={false} />
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<div className="k-form-field">
|
|
53
|
+
<div className="k-form-label">
|
|
54
|
+
<label>Height:</label>
|
|
55
|
+
</div>
|
|
56
|
+
<div className="k-form-field-wrap">
|
|
57
|
+
<Textbox showClearButton={false} />
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</Window>
|
|
62
|
+
</section>
|
|
63
|
+
|
|
64
|
+
</div>
|
|
65
|
+
</>
|
|
66
|
+
);
|