@progress/kendo-themes-html 7.0.3-dev.1 → 7.0.3-dev.2
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/cjs/dropzone/dropzone.spec.js +11 -9
- package/dist/cjs/dropzone/templates/dropzone-normal.js +4364 -0
- package/dist/cjs/dropzone/templates/dropzone-with-note.js +4370 -0
- package/dist/cjs/dropzone/tests/dropzone-states.js +4386 -0
- package/dist/cjs/dropzone/tests/dropzone.js +37 -19
- package/dist/cjs/index.js +1886 -1826
- package/dist/cjs/pdf-viewer/tests/pdf-viewer-blank-page.js +28 -21
- package/dist/cjs/spreadsheet/tests/spreadsheet-file-dialogs.js +34 -27
- package/dist/cjs/spreadsheet/tests/spreadsheet-insert-dialogs.js +68 -55
- package/dist/esm/dropzone/dropzone.spec.js +11 -9
- package/dist/esm/dropzone/templates/dropzone-normal.js +4348 -0
- package/dist/esm/dropzone/templates/dropzone-with-note.js +4354 -0
- package/dist/esm/dropzone/tests/dropzone-states.js +4370 -0
- package/dist/esm/dropzone/tests/dropzone.js +34 -16
- package/dist/esm/index.js +1879 -1819
- package/dist/esm/pdf-viewer/tests/pdf-viewer-blank-page.js +26 -19
- package/dist/esm/spreadsheet/tests/spreadsheet-file-dialogs.js +31 -24
- package/dist/esm/spreadsheet/tests/spreadsheet-insert-dialogs.js +63 -50
- package/dist/types/dropzone/dropzone.spec.d.ts +12 -3
- package/dist/types/dropzone/index.d.ts +2 -0
- package/dist/types/dropzone/templates/dropzone-normal.d.ts +1 -0
- package/dist/types/dropzone/templates/dropzone-with-note.d.ts +1 -0
- package/dist/types/dropzone/tests/dropzone-states.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -2
- package/src/dropzone/dropzone.spec.tsx +13 -5
- package/src/dropzone/index.ts +2 -0
- package/src/dropzone/templates/dropzone-normal.tsx +3 -0
- package/src/dropzone/templates/dropzone-with-note.tsx +7 -0
- package/src/dropzone/tests/dropzone-states.tsx +22 -0
- package/src/dropzone/tests/dropzone.tsx +11 -9
- package/src/index.ts +1 -1
- package/src/pdf-viewer/tests/pdf-viewer-blank-page.tsx +2 -2
- package/src/spreadsheet/tests/spreadsheet-file-dialogs.tsx +2 -2
- package/src/spreadsheet/tests/spreadsheet-insert-dialogs.tsx +2 -2
|
@@ -4303,13 +4303,14 @@ var states4 = [
|
|
|
4303
4303
|
];
|
|
4304
4304
|
var defaultProps4 = {
|
|
4305
4305
|
icon: "upload",
|
|
4306
|
-
|
|
4306
|
+
hint: "Drag and drop files here to upload"
|
|
4307
4307
|
};
|
|
4308
4308
|
var Dropzone = (props) => {
|
|
4309
4309
|
const {
|
|
4310
4310
|
hover,
|
|
4311
4311
|
icon = defaultProps4.icon,
|
|
4312
|
-
|
|
4312
|
+
hint = defaultProps4.hint,
|
|
4313
|
+
note,
|
|
4313
4314
|
...other
|
|
4314
4315
|
} = props;
|
|
4315
4316
|
return /* @__PURE__ */ jsx4(
|
|
@@ -4326,31 +4327,48 @@ var Dropzone = (props) => {
|
|
|
4326
4327
|
),
|
|
4327
4328
|
children: /* @__PURE__ */ jsxs("div", { className: "k-dropzone-inner", children: [
|
|
4328
4329
|
icon && /* @__PURE__ */ jsx4(Icon, { icon, className: "k-dropzone-icon", size: "xxxlarge" }),
|
|
4329
|
-
/* @__PURE__ */ jsx4("span", { className: "k-dropzone-hint", children:
|
|
4330
|
-
note && /* @__PURE__ */
|
|
4331
|
-
" ",
|
|
4332
|
-
note,
|
|
4333
|
-
" "
|
|
4334
|
-
] })
|
|
4330
|
+
hint && /* @__PURE__ */ jsx4("span", { className: "k-dropzone-hint", children: hint }),
|
|
4331
|
+
note && /* @__PURE__ */ jsx4("span", { className: "k-dropzone-note", children: note })
|
|
4335
4332
|
] })
|
|
4336
4333
|
}
|
|
4337
4334
|
);
|
|
4338
4335
|
};
|
|
4336
|
+
Dropzone.states = states4;
|
|
4337
|
+
Dropzone.className = DROPZONE_CLASSNAME;
|
|
4338
|
+
Dropzone.defaultProps = defaultProps4;
|
|
4339
|
+
|
|
4340
|
+
// src/dropzone/templates/dropzone-normal.tsx
|
|
4341
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
4342
|
+
var DropzoneNormal = (props) => /* @__PURE__ */ jsx5(Dropzone, { ...props });
|
|
4343
|
+
|
|
4344
|
+
// src/dropzone/templates/dropzone-with-note.tsx
|
|
4345
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
4346
|
+
var DropzoneWithNote = (props) => /* @__PURE__ */ jsx6(
|
|
4347
|
+
Dropzone,
|
|
4348
|
+
{
|
|
4349
|
+
note: "Only JPEG, PNG and SVG files are allowed.",
|
|
4350
|
+
...props
|
|
4351
|
+
}
|
|
4352
|
+
);
|
|
4339
4353
|
|
|
4340
4354
|
// src/dropzone/tests/dropzone.tsx
|
|
4341
|
-
import { Fragment as Fragment4, jsx as
|
|
4342
|
-
var dropzone_default = () => /* @__PURE__ */
|
|
4355
|
+
import { Fragment as Fragment4, jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
4356
|
+
var dropzone_default = () => /* @__PURE__ */ jsx7(Fragment4, { children: /* @__PURE__ */ jsxs2("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: [
|
|
4357
|
+
/* @__PURE__ */ jsxs2("section", { children: [
|
|
4358
|
+
/* @__PURE__ */ jsx7("p", { children: "External dropzone Empty" }),
|
|
4359
|
+
/* @__PURE__ */ jsx7(DropzoneNormal, { hint: false })
|
|
4360
|
+
] }),
|
|
4343
4361
|
/* @__PURE__ */ jsxs2("section", { children: [
|
|
4344
|
-
/* @__PURE__ */
|
|
4345
|
-
/* @__PURE__ */
|
|
4362
|
+
/* @__PURE__ */ jsx7("p", { children: "External dropzone with only Hint" }),
|
|
4363
|
+
/* @__PURE__ */ jsx7(DropzoneNormal, {})
|
|
4346
4364
|
] }),
|
|
4347
4365
|
/* @__PURE__ */ jsxs2("section", { children: [
|
|
4348
|
-
/* @__PURE__ */
|
|
4349
|
-
/* @__PURE__ */
|
|
4366
|
+
/* @__PURE__ */ jsx7("p", { children: "External dropzone with only Note" }),
|
|
4367
|
+
/* @__PURE__ */ jsx7(DropzoneWithNote, { hint: false })
|
|
4350
4368
|
] }),
|
|
4351
4369
|
/* @__PURE__ */ jsxs2("section", { children: [
|
|
4352
|
-
/* @__PURE__ */
|
|
4353
|
-
/* @__PURE__ */
|
|
4370
|
+
/* @__PURE__ */ jsx7("p", { children: "External dropzone with Hind & Note" }),
|
|
4371
|
+
/* @__PURE__ */ jsx7(DropzoneWithNote, {})
|
|
4354
4372
|
] })
|
|
4355
4373
|
] }) });
|
|
4356
4374
|
export {
|