@dao-style/core 1.0.0-beta.5 → 1.0.0-beta.7

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.
@@ -1,4 +1,4 @@
1
- import { Mutable } from 'utility-types';
1
+ import type { Mutable } from '../../utils/types';
2
2
  export type DefaultWidthType = string | number;
3
3
  export interface DaoTableColumn {
4
4
  id: string;
@@ -14,3 +14,6 @@ export type GetSlots<T> = T extends {
14
14
  } ? InstanceType<T>['$slots'] : {
15
15
  slotText: SlotFn;
16
16
  };
17
+ export type Mutable<T> = {
18
+ -readonly [P in keyof T]: T[P];
19
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dao-style/core",
3
- "version": "1.0.0-beta.5",
3
+ "version": "1.0.0-beta.7",
4
4
  "scripts": {
5
5
  "dev": "npm run dev:docs",
6
6
  "dev:docs": "vitepress dev docs",
@@ -77,7 +77,6 @@
77
77
  "tailwindcss": "~3.2.0",
78
78
  "tslib": "^2.4.1",
79
79
  "typescript": "^4.9.4",
80
- "utility-types": "^3.10.0",
81
80
  "vite": "^4.0.3",
82
81
  "vite-plugin-svg-icons": "^2.0.1",
83
82
  "vitepress": "^1.0.0-alpha.33",
@@ -100,16 +99,16 @@
100
99
  "volar.d.ts",
101
100
  "scripts/transform-variable.mjs"
102
101
  ],
103
- "main": "./dist/dao-style.cjs.js",
104
- "module": "./dist/dao-style.es.mjs",
102
+ "main": "./dist/dao-style.js",
103
+ "module": "./dist/dao-style.mjs",
105
104
  "types": "./dist/index.d.ts",
106
105
  "workspaces": [
107
106
  "docs"
108
107
  ],
109
108
  "exports": {
110
109
  ".": {
111
- "import": "./dist/dao-style.es.mjs",
112
- "require": "./dist/dao-style.cjs.js"
110
+ "import": "./dist/dao-style.mjs",
111
+ "require": "./dist/dao-style.js"
113
112
  },
114
113
  "./*": "./*"
115
114
  }
File without changes
File without changes