@codeandfunction/callaloo 3.15.1 → 3.15.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.
package/dist/types.d.ts CHANGED
@@ -44,6 +44,10 @@ export declare enum CLColorVariants {
44
44
  Solid = "solid",
45
45
  Text = "text"
46
46
  }
47
+ export declare enum CLCharCounterLayout {
48
+ Block = "block",
49
+ Inline = "inline"
50
+ }
47
51
  export type CLButtonForwardRefFunction = (elem: HTMLButtonElement) => void;
48
52
  export type CLGenericFunction = (event?: Event) => void;
49
53
  export type CLGenericFocusFunction = (event: FocusEvent) => void;
@@ -15,5 +15,6 @@ export declare const debounce: (fn: () => void, ms?: number) => (this: any, ...a
15
15
  export declare const getMaxZIndex: () => number;
16
16
  export declare const isBrowser: boolean;
17
17
  export declare const isDarkMode: () => boolean;
18
+ export declare const isString: (str: unknown) => str is string;
18
19
  export declare const isNodeEmpty: (elem: HTMLElement | null) => boolean;
19
20
  export {};
package/package.json CHANGED
@@ -17,13 +17,12 @@
17
17
  "ui components",
18
18
  "vuejs"
19
19
  ],
20
- "version": "3.15.1",
20
+ "version": "3.15.3",
21
21
  "license": "MIT",
22
22
  "type": "module",
23
23
  "scripts": {
24
24
  "build": "pnpm export:icons && vite build",
25
25
  "build:storybook": "pnpm export:icons && pnpm storybook build",
26
- "bundle-analyze": "npx vite-bundle-analyzer dist/index.js",
27
26
  "coverage": "vitest run --coverage",
28
27
  "export:icons": "npx tsx scripts/export-icons.ts",
29
28
  "export:meta": "npx tsx scripts/export-meta.ts",
@@ -33,6 +32,7 @@
33
32
  "lint:prettier": "prettier --check 'src/**/*.{ts,vue}'",
34
33
  "package": "npm pack",
35
34
  "publish": "pnpm semantic-release",
35
+ "size": "size-limit",
36
36
  "start": "pnpm export:icons && storybook dev -p 4400 --no-open",
37
37
  "test": "vitest --run --passWithNoTests",
38
38
  "test:watch": "vitest",
@@ -64,6 +64,9 @@
64
64
  "@semantic-release/changelog": "^6.0.3",
65
65
  "@semantic-release/git": "^10.0.1",
66
66
  "@semantic-release/gitlab": "^13.2.6",
67
+ "@size-limit/esbuild": "^11.2.0",
68
+ "@size-limit/esbuild-why": "^11.2.0",
69
+ "@size-limit/preset-small-lib": "^11.0.0",
67
70
  "@storybook/addon-a11y": "^9.1.9",
68
71
  "@storybook/addon-docs": "^9.1.9",
69
72
  "@storybook/cli": "^9.1.9",
@@ -93,13 +96,13 @@
93
96
  "rollup-plugin-visualizer": "^6.0.4",
94
97
  "sass": "^1.89.2",
95
98
  "semantic-release": "^24.2.7",
99
+ "size-limit": "^11.0.0",
96
100
  "storybook": "^9.1.9",
97
101
  "storybook-addon-deep-controls": "^0.9.5",
98
102
  "stylis": "^4.3.6",
99
103
  "tsx": "^4.20.6",
100
104
  "unplugin-auto-import": "^19.3.0",
101
105
  "vite": "^6.3.6",
102
- "vite-bundle-analyzer": "^1.2.3",
103
106
  "vite-plugin-dts": "^4.5.4",
104
107
  "vite-tsconfig-paths": "^5.1.4",
105
108
  "vitest": "3.2.4",
@@ -116,5 +119,17 @@
116
119
  "sideEffects": [
117
120
  "dist/*",
118
121
  "*.css"
122
+ ],
123
+ "size-limit": [
124
+ {
125
+ "name": "Full library (exported)",
126
+ "path": "dist/index.js",
127
+ "limit": "210 KB"
128
+ },
129
+ {
130
+ "name": "Styles (exported)",
131
+ "path": "dist/assets/styles.css",
132
+ "limit": "180 KB"
133
+ }
119
134
  ]
120
135
  }
package/dist/stats.json DELETED
@@ -1,41 +0,0 @@
1
- [
2
- {
3
- "filename": "index.js",
4
- "label": "index.js",
5
- "parsedSize": 0,
6
- "mapSize": 0,
7
- "gzipSize": 0,
8
- "brotliSize": 0,
9
- "source": [],
10
- "isAsset": true,
11
- "isEntry": true,
12
- "imports": [
13
- "vue",
14
- "chunks/icons.QRYZHNAf.js"
15
- ]
16
- },
17
- {
18
- "filename": "chunks/icons.QRYZHNAf.js",
19
- "label": "chunks/icons.QRYZHNAf.js",
20
- "parsedSize": 0,
21
- "mapSize": 0,
22
- "gzipSize": 0,
23
- "brotliSize": 0,
24
- "source": [],
25
- "isAsset": true,
26
- "isEntry": false,
27
- "imports": []
28
- },
29
- {
30
- "filename": "assets/styles.css",
31
- "label": "assets/styles.css",
32
- "parsedSize": 181074,
33
- "mapSize": 0,
34
- "gzipSize": 13382,
35
- "brotliSize": 10408,
36
- "source": [],
37
- "isAsset": true,
38
- "isEntry": false,
39
- "imports": []
40
- }
41
- ]