@duskmoon-dev/components 0.1.2 → 0.2.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.
Files changed (41) hide show
  1. package/README.md +1 -0
  2. package/dist/classes/app.d.ts +2 -2
  3. package/dist/classes/auto-complete.d.ts +4 -2
  4. package/dist/classes/checkbox.d.ts +9 -5
  5. package/dist/classes/color-picker.d.ts +2 -1
  6. package/dist/classes/dm-drawer.d.ts +1 -1
  7. package/dist/classes/dm-toolbar.d.ts +1 -1
  8. package/dist/classes/index.js +35 -22
  9. package/dist/components/alert/index.js +3 -3
  10. package/dist/components/app/index.js +3 -10
  11. package/dist/components/auto-complete/AutoComplete.types.d.ts +2 -0
  12. package/dist/components/auto-complete/index.js +14 -8
  13. package/dist/components/cascader/index.js +10 -1
  14. package/dist/components/checkbox/index.js +10 -21
  15. package/dist/components/col/index.d.ts +1 -1
  16. package/dist/components/collapse/index.js +3 -1
  17. package/dist/components/color-picker/index.js +6 -2
  18. package/dist/components/date-picker/DatePicker.types.d.ts +4 -1
  19. package/dist/components/date-picker/index.js +1 -2
  20. package/dist/components/descriptions/index.js +10 -1
  21. package/dist/components/dm-date-picker/index.js +1 -2
  22. package/dist/components/dm-drawer/index.js +1 -3
  23. package/dist/components/dm-page-header/index.js +1 -3
  24. package/dist/components/dm-pro-table/index.js +6 -6
  25. package/dist/components/dm-pro-table-inner/index.js +5 -3
  26. package/dist/components/dm-query/index.js +11 -4
  27. package/dist/components/dm-search/index.js +5 -3
  28. package/dist/components/dm-table/index.js +5 -3
  29. package/dist/components/dm-toolbar/index.js +1 -3
  30. package/dist/components/dm-tree/index.js +3 -1
  31. package/dist/components/mentions/index.js +1 -7
  32. package/dist/components/popover/index.d.ts +1 -1
  33. package/dist/components/tour/index.js +4 -1
  34. package/dist/components/transfer/index.js +7 -6
  35. package/dist/components/typography/index.js +1 -7
  36. package/dist/generated/version.d.ts +1 -0
  37. package/dist/index.js +93 -80
  38. package/dist/infrastructure.d.ts +1 -1
  39. package/dist/infrastructure.js +5 -1
  40. package/dist/styles.css +5442 -0
  41. package/package.json +33 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duskmoon-dev/components",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -402,19 +402,44 @@
402
402
  "README.md"
403
403
  ],
404
404
  "scripts": {
405
- "build": "rm -rf dist && bun run build:js && bun run build:types && bun run build:css",
405
+ "build": "bun run sync:version && rm -rf dist && bun run build:js && bun run build:types && bun run build:css",
406
406
  "build:js": "bun run build.ts",
407
407
  "build:types": "tsc -p tsconfig.build.json --emitDeclarationOnly",
408
- "build:css": "mkdir -p dist && cp node_modules/@duskmoon-dev/core/dist/index.css dist/styles.css",
409
- "test": "bun test --preload ../../test/setup.ts",
410
- "test:a11y": "bun test --preload ../../test/setup.ts src/**/*.test.tsx",
411
- "typecheck": "tsc --noEmit",
408
+ "build:css": "bun run scripts/build-css.ts",
409
+ "test": "bun run sync:version && bun test --preload ../../test/setup.ts",
410
+ "test:a11y": "bun run sync:version && bun test --preload ../../test/setup.ts src/**/*.test.tsx",
411
+ "typecheck": "bun run sync:version && tsc --noEmit",
412
412
  "parity:components": "bun run scripts/check-component-parity.ts",
413
- "size": "bundlesize"
413
+ "sync:version": "bun run scripts/sync-version.ts",
414
+ "size": "GITHUB_TOKEN= BUNDLESIZE_GITHUB_TOKEN= github_token= bundlesize_github_token= bundlesize"
414
415
  },
415
416
  "bundlesize": [
416
417
  {
417
- "path": "./dist/**/*.js",
418
+ "path": "./dist/index.js",
419
+ "maxSize": "120 kB"
420
+ },
421
+ {
422
+ "path": "./dist/chunk-*.js",
423
+ "maxSize": "100 kB"
424
+ },
425
+ {
426
+ "path": "./dist/infrastructure.js",
427
+ "maxSize": "100 kB"
428
+ },
429
+ {
430
+ "path": "./dist/classes/**/*.js",
431
+ "maxSize": "100 kB"
432
+ },
433
+ {
434
+ "path": "./dist/components/**/*.js",
435
+ "maxSize": "100 kB"
436
+ },
437
+ {
438
+ "path": "./dist/theme/**/*.js",
439
+ "maxSize": "100 kB"
440
+ },
441
+ {
442
+ "path": "./dist/utils/**/*.js",
418
443
  "maxSize": "100 kB"
419
444
  }
420
445
  ],