@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.
Files changed (35) hide show
  1. package/dist/cjs/dropzone/dropzone.spec.js +11 -9
  2. package/dist/cjs/dropzone/templates/dropzone-normal.js +4364 -0
  3. package/dist/cjs/dropzone/templates/dropzone-with-note.js +4370 -0
  4. package/dist/cjs/dropzone/tests/dropzone-states.js +4386 -0
  5. package/dist/cjs/dropzone/tests/dropzone.js +37 -19
  6. package/dist/cjs/index.js +1886 -1826
  7. package/dist/cjs/pdf-viewer/tests/pdf-viewer-blank-page.js +28 -21
  8. package/dist/cjs/spreadsheet/tests/spreadsheet-file-dialogs.js +34 -27
  9. package/dist/cjs/spreadsheet/tests/spreadsheet-insert-dialogs.js +68 -55
  10. package/dist/esm/dropzone/dropzone.spec.js +11 -9
  11. package/dist/esm/dropzone/templates/dropzone-normal.js +4348 -0
  12. package/dist/esm/dropzone/templates/dropzone-with-note.js +4354 -0
  13. package/dist/esm/dropzone/tests/dropzone-states.js +4370 -0
  14. package/dist/esm/dropzone/tests/dropzone.js +34 -16
  15. package/dist/esm/index.js +1879 -1819
  16. package/dist/esm/pdf-viewer/tests/pdf-viewer-blank-page.js +26 -19
  17. package/dist/esm/spreadsheet/tests/spreadsheet-file-dialogs.js +31 -24
  18. package/dist/esm/spreadsheet/tests/spreadsheet-insert-dialogs.js +63 -50
  19. package/dist/types/dropzone/dropzone.spec.d.ts +12 -3
  20. package/dist/types/dropzone/index.d.ts +2 -0
  21. package/dist/types/dropzone/templates/dropzone-normal.d.ts +1 -0
  22. package/dist/types/dropzone/templates/dropzone-with-note.d.ts +1 -0
  23. package/dist/types/dropzone/tests/dropzone-states.d.ts +2 -0
  24. package/dist/types/index.d.ts +1 -0
  25. package/package.json +2 -2
  26. package/src/dropzone/dropzone.spec.tsx +13 -5
  27. package/src/dropzone/index.ts +2 -0
  28. package/src/dropzone/templates/dropzone-normal.tsx +3 -0
  29. package/src/dropzone/templates/dropzone-with-note.tsx +7 -0
  30. package/src/dropzone/tests/dropzone-states.tsx +22 -0
  31. package/src/dropzone/tests/dropzone.tsx +11 -9
  32. package/src/index.ts +1 -1
  33. package/src/pdf-viewer/tests/pdf-viewer-blank-page.tsx +2 -2
  34. package/src/spreadsheet/tests/spreadsheet-file-dialogs.tsx +2 -2
  35. package/src/spreadsheet/tests/spreadsheet-insert-dialogs.tsx +2 -2
@@ -4322,13 +4322,14 @@ var states4 = [
4322
4322
  ];
4323
4323
  var defaultProps4 = {
4324
4324
  icon: "upload",
4325
- note: "Only JPEG, PNG and SVG files are allowed."
4325
+ hint: "Drag and drop files here to upload"
4326
4326
  };
4327
4327
  var Dropzone = (props) => {
4328
4328
  const {
4329
4329
  hover,
4330
4330
  icon = defaultProps4.icon,
4331
- note = defaultProps4.note,
4331
+ hint = defaultProps4.hint,
4332
+ note,
4332
4333
  ...other
4333
4334
  } = props;
4334
4335
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
@@ -4345,30 +4346,47 @@ var Dropzone = (props) => {
4345
4346
  ),
4346
4347
  children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "k-dropzone-inner", children: [
4347
4348
  icon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon, className: "k-dropzone-icon", size: "xxxlarge" }),
4348
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-dropzone-hint", children: "Drag and drop files here to upload" }),
4349
- note && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "k-dropzone-note", children: [
4350
- " ",
4351
- note,
4352
- " "
4353
- ] })
4349
+ hint && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-dropzone-hint", children: hint }),
4350
+ note && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-dropzone-note", children: note })
4354
4351
  ] })
4355
4352
  }
4356
4353
  );
4357
4354
  };
4355
+ Dropzone.states = states4;
4356
+ Dropzone.className = DROPZONE_CLASSNAME;
4357
+ Dropzone.defaultProps = defaultProps4;
4358
4358
 
4359
- // src/dropzone/tests/dropzone.tsx
4359
+ // src/dropzone/templates/dropzone-normal.tsx
4360
4360
  var import_jsx_runtime5 = require("react/jsx-runtime");
4361
- var dropzone_default = () => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: [
4362
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("section", { children: [
4363
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { children: "External dropzone" }),
4364
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Dropzone, {})
4361
+ var DropzoneNormal = (props) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Dropzone, { ...props });
4362
+
4363
+ // src/dropzone/templates/dropzone-with-note.tsx
4364
+ var import_jsx_runtime6 = require("react/jsx-runtime");
4365
+ var DropzoneWithNote = (props) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
4366
+ Dropzone,
4367
+ {
4368
+ note: "Only JPEG, PNG and SVG files are allowed.",
4369
+ ...props
4370
+ }
4371
+ );
4372
+
4373
+ // src/dropzone/tests/dropzone.tsx
4374
+ var import_jsx_runtime7 = require("react/jsx-runtime");
4375
+ var dropzone_default = () => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: [
4376
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("section", { children: [
4377
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { children: "External dropzone Empty" }),
4378
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropzoneNormal, { hint: false })
4379
+ ] }),
4380
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("section", { children: [
4381
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { children: "External dropzone with only Hint" }),
4382
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropzoneNormal, {})
4365
4383
  ] }),
4366
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("section", { children: [
4367
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { children: "External dropzone - hover dragging files" }),
4368
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Dropzone, { hover: true })
4384
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("section", { children: [
4385
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { children: "External dropzone with only Note" }),
4386
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropzoneWithNote, { hint: false })
4369
4387
  ] }),
4370
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("section", { children: [
4371
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { children: "External dropzone" }),
4372
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Dropzone, { style: { height: "400px" } })
4388
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("section", { children: [
4389
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { children: "External dropzone with Hind & Note" }),
4390
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropzoneWithNote, {})
4373
4391
  ] })
4374
4392
  ] }) });