@octans/ui 1.2.0 → 1.4.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.
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Which `--octans-*` tokens each component names in its own source.
3
+ *
4
+ * Drives the Theme Builder's component filter, so you can ask "what does Badge
5
+ * actually read?" instead of guessing from a token's name. Includes tokens a
6
+ * component OVERRIDES as well as ones it reads — both are reasons a change to
7
+ * that token shows up in that component.
8
+ */
9
+ export declare const TOKEN_USAGE: Record<string, string[]>;
10
+ /** Component names that read at least one token, sorted. */
11
+ export declare const TOKEN_USAGE_COMPONENTS: string[];
@@ -8,7 +8,7 @@
8
8
  * Keep it in sync when adding a token. `tokens.test.ts` fails if the stylesheet
9
9
  * and this registry drift apart, so it cannot rot silently.
10
10
  */
11
- export type TokenKind = 'color' | 'shadow' | 'radius' | 'font';
11
+ export type TokenKind = 'color' | 'shadow' | 'radius' | 'font' | 'length' | 'percent';
12
12
  export interface TokenDefinition {
13
13
  /** Token name without the `--octans-` prefix. */
14
14
  name: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@octans/ui",
3
- "version": "1.2.0",
4
- "description": "A Vue 3 component library accessible, themeable UI primitives and application shell components.",
3
+ "version": "1.4.0",
4
+ "description": "A Vue 3 component library \u2014 accessible, themeable UI primitives and application shell components.",
5
5
  "keywords": [
6
6
  "vue",
7
7
  "vue3",
@@ -46,6 +46,30 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
+ "scripts": {
50
+ "dev": "pnpm storybook",
51
+ "storybook": "storybook dev -p 6006",
52
+ "build-storybook": "storybook build",
53
+ "build-site": "storybook build --output-dir site-dist/storybook && node scripts/build-site.mjs",
54
+ "type-check": "vue-tsc --noEmit -p tsconfig.app.json",
55
+ "test": "vitest run",
56
+ "test:watch": "vitest",
57
+ "test:coverage": "vitest run --coverage",
58
+ "check:contrast": "node scripts/check-contrast.mjs",
59
+ "lint": "eslint .",
60
+ "lint:fix": "eslint . --fix",
61
+ "format": "prettier --write src/ .storybook/ scripts/ *.ts *.js",
62
+ "format:check": "prettier --check src/ .storybook/ scripts/ *.ts *.js",
63
+ "icons:bundle": "node scripts/build-icon-bundle.mjs",
64
+ "check:icons": "node scripts/check-icon-bundle.mjs",
65
+ "tokens:usage": "node scripts/build-token-usage.mjs",
66
+ "check:tokens": "node scripts/build-token-usage.mjs --check",
67
+ "build": "pnpm run build-lib",
68
+ "build-lib": "vp build --config vite.config-lib.ts && vp build --config vite.config-umd.ts",
69
+ "verify": "pnpm run lint && pnpm run type-check && pnpm run test && pnpm run check:contrast && pnpm run check:icons && pnpm run check:tokens && pnpm run build-lib",
70
+ "prepublishOnly": "pnpm run verify",
71
+ "tag": "package-version-git-tag --push"
72
+ },
49
73
  "dependencies": {
50
74
  "@floating-ui/dom": "^1.8.0",
51
75
  "@iconify/vue": "^5.0.1",
@@ -99,25 +123,5 @@
99
123
  "engines": {
100
124
  "node": ">=24"
101
125
  },
102
- "scripts": {
103
- "dev": "pnpm storybook",
104
- "storybook": "storybook dev -p 6006",
105
- "build-storybook": "storybook build",
106
- "build-site": "storybook build --output-dir site-dist/storybook && node scripts/build-site.mjs",
107
- "type-check": "vue-tsc --noEmit -p tsconfig.app.json",
108
- "test": "vitest run",
109
- "test:watch": "vitest",
110
- "test:coverage": "vitest run --coverage",
111
- "check:contrast": "node scripts/check-contrast.mjs",
112
- "lint": "eslint .",
113
- "lint:fix": "eslint . --fix",
114
- "format": "prettier --write src/ .storybook/ scripts/ *.ts *.js",
115
- "format:check": "prettier --check src/ .storybook/ scripts/ *.ts *.js",
116
- "icons:bundle": "node scripts/build-icon-bundle.mjs",
117
- "check:icons": "node scripts/check-icon-bundle.mjs",
118
- "build": "pnpm run build-lib",
119
- "build-lib": "vp build --config vite.config-lib.ts && vp build --config vite.config-umd.ts",
120
- "verify": "pnpm run lint && pnpm run type-check && pnpm run test && pnpm run check:contrast && pnpm run check:icons && pnpm run build-lib",
121
- "tag": "package-version-git-tag --push"
122
- }
123
- }
126
+ "packageManager": "pnpm@11.6.0"
127
+ }