@octans/ui 1.3.0 → 1.5.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.
- package/dist/components/Card/CardSection.vue.d.ts +35 -0
- package/dist/components/Filters/Filters.vue.d.ts +2 -9
- package/dist/components/Sheet/Sheet.vue.d.ts +3 -4
- package/dist/components/Sheet/types.d.ts +24 -5
- package/dist/style.css +1 -1
- package/dist/ui.js +346 -188
- package/dist/ui.umd.js +4 -4
- package/dist/utils/tokenUsage.d.ts +11 -0
- package/dist/utils/tokens.d.ts +1 -1
- package/package.json +4 -2
|
@@ -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[];
|
package/dist/utils/tokens.d.ts
CHANGED
|
@@ -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' | 'length';
|
|
11
|
+
export type TokenKind = 'color' | 'shadow' | 'radius' | 'font' | 'length' | 'percent' | 'duration' | 'keyword';
|
|
12
12
|
export interface TokenDefinition {
|
|
13
13
|
/** Token name without the `--octans-` prefix. */
|
|
14
14
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octans/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "A Vue 3 component library \u2014 accessible, themeable UI primitives and application shell components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -62,9 +62,11 @@
|
|
|
62
62
|
"format:check": "prettier --check src/ .storybook/ scripts/ *.ts *.js",
|
|
63
63
|
"icons:bundle": "node scripts/build-icon-bundle.mjs",
|
|
64
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",
|
|
65
67
|
"build": "pnpm run build-lib",
|
|
66
68
|
"build-lib": "vp build --config vite.config-lib.ts && vp build --config vite.config-umd.ts",
|
|
67
|
-
"verify": "pnpm run lint && pnpm run type-check && pnpm run test && pnpm run check:contrast && pnpm run check:icons && pnpm run build-lib",
|
|
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",
|
|
68
70
|
"prepublishOnly": "pnpm run verify",
|
|
69
71
|
"tag": "package-version-git-tag --push"
|
|
70
72
|
},
|