ropav 0.1.8 → 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.
- package/README.md +13 -4
- package/dist/base.css +570 -773
- package/dist/calendar.css +45 -34
- package/dist/calendar.js +108 -83
- package/dist/color-input.css +3 -7
- package/dist/color-picker.css +2 -6
- package/dist/color-swatch.css +2 -6
- package/dist/combobox.css +5 -5
- package/dist/componentColors.js +29 -25
- package/dist/components/alert/types.d.ts +1 -1
- package/dist/components/avatar/types.d.ts +1 -1
- package/dist/components/badge/types.d.ts +1 -1
- package/dist/components/calendar/index.d.ts +1 -1
- package/dist/components/calendar/types.d.ts +3 -0
- package/dist/components/date-picker/index.d.ts +1 -1
- package/dist/components/date-picker/types.d.ts +3 -1
- package/dist/components/pagination/types.d.ts +1 -1
- package/dist/components/progress/types.d.ts +1 -1
- package/dist/components/segmented-control/types.d.ts +1 -1
- package/dist/components/slider/types.d.ts +1 -1
- package/dist/components/slider/useSlider.d.ts +1 -1
- package/dist/components/slider/useSliderPointer.d.ts +15 -0
- package/dist/components/slider/useSliderValueState.d.ts +1 -0
- package/dist/components/toast/types.d.ts +1 -1
- package/dist/components/toolbar/index.d.ts +3 -0
- package/dist/components/toolbar/index.js +2 -0
- package/dist/components/toolbar/toolbar.d.ts +24 -0
- package/dist/components/toolbar/types.d.ts +12 -0
- package/dist/components/toolbar/useToolbar.d.ts +7 -0
- package/dist/date-picker.css +9 -9
- package/dist/date-picker.js +4 -2
- package/dist/dropdown-menu.css +7 -7
- package/dist/field.css +1 -1
- package/dist/focusNavigation.js +12 -6
- package/dist/hover-card.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/modal.css +1 -1
- package/dist/multi-select.css +5 -5
- package/dist/pagination.css +1 -1
- package/dist/popover.css +2 -2
- package/dist/select.css +5 -5
- package/dist/slider.css +80 -71
- package/dist/slider.js +91 -16
- package/dist/tabs.css +3 -3
- package/dist/tags-input.css +1 -1
- package/dist/textarea.css +1 -1
- package/dist/toast.css +1 -1
- package/dist/toolbar.css +15 -0
- package/dist/toolbar.js +143 -0
- package/dist/tooltip.css +1 -1
- package/dist/utils/componentColors.d.ts +2 -4
- package/dist/utils/dom/focusNavigation.d.ts +4 -1
- package/docs/code-architecture.md +30 -1
- package/docs/public-styles-api.md +11 -6
- package/docs/releasing.md +39 -0
- package/package.json +52 -39
- package/src/styles/_mixins.scss +2 -6
- package/src/styles/_tokens.scss +4 -833
- package/src/styles/generated/showcase.html +274 -0
- package/src/styles/generated/tokens.css +592 -0
- package/src/styles/generated/tokens.md +583 -0
- package/src/styles/generated/tokens.scss +1134 -0
- package/tokens/manifest.json +6164 -0
- package/docs/public-tokens.md +0 -685
- package/src/styles/_variables.scss +0 -243
- package/src/styles/styles-manifest.json +0 -5244
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ropav",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"packageManager": "pnpm@11.17.0",
|
|
7
6
|
"engines": {
|
|
8
7
|
"node": "^20.19.0 || ^22.13.0 || >=24.0.0"
|
|
9
8
|
},
|
|
@@ -11,7 +10,8 @@
|
|
|
11
10
|
"dist",
|
|
12
11
|
"docs",
|
|
13
12
|
"src/styles/**/*.scss",
|
|
14
|
-
"src/styles/
|
|
13
|
+
"src/styles/generated",
|
|
14
|
+
"tokens/manifest.json"
|
|
15
15
|
],
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"module": "./dist/index.js",
|
|
@@ -213,6 +213,10 @@
|
|
|
213
213
|
"types": "./dist/components/toast/index.d.ts",
|
|
214
214
|
"import": "./dist/components/toast/index.js"
|
|
215
215
|
},
|
|
216
|
+
"./toolbar": {
|
|
217
|
+
"types": "./dist/components/toolbar/index.d.ts",
|
|
218
|
+
"import": "./dist/components/toolbar/index.js"
|
|
219
|
+
},
|
|
216
220
|
"./tooltip": {
|
|
217
221
|
"types": "./dist/components/tooltip/index.d.ts",
|
|
218
222
|
"import": "./dist/components/tooltip/index.js"
|
|
@@ -222,40 +226,10 @@
|
|
|
222
226
|
"import": "./dist/unplugin-icons.js"
|
|
223
227
|
},
|
|
224
228
|
"./base.css": "./dist/base.css",
|
|
225
|
-
"./styles-manifest": "./
|
|
226
|
-
"./styles-manifest.json": "./
|
|
229
|
+
"./styles-manifest": "./tokens/manifest.json",
|
|
230
|
+
"./styles-manifest.json": "./tokens/manifest.json",
|
|
227
231
|
"./scss/*.scss": "./src/styles/*.scss"
|
|
228
232
|
},
|
|
229
|
-
"scripts": {
|
|
230
|
-
"dev": "pnpm run storybook",
|
|
231
|
-
"publication:sync": "node scripts/sync-package-publication.mjs --write",
|
|
232
|
-
"publication:check": "node scripts/sync-package-publication.mjs --check",
|
|
233
|
-
"publication:verify": "node scripts/verify-package-publication.mjs",
|
|
234
|
-
"tokens:build": "style-dictionary build --config scripts/tokens.config.mjs --silent",
|
|
235
|
-
"tokens:check": "node scripts/check-tokens.mjs",
|
|
236
|
-
"typecheck": "vue-tsc -b tsconfig.app.json tsconfig.node.json tsconfig.test.json",
|
|
237
|
-
"typecheck:storybook": "vue-tsc -p tsconfig.storybook.json --noEmit",
|
|
238
|
-
"lint": "oxlint",
|
|
239
|
-
"lint:fix": "oxlint --fix",
|
|
240
|
-
"format": "oxfmt",
|
|
241
|
-
"format:check": "oxfmt --check",
|
|
242
|
-
"test": "vitest run --project=unit --project=tooling",
|
|
243
|
-
"test:consumer-types:built": "tsc -p tests/fixtures/consumer-types/tsconfig.bundler.json && tsc -p tests/fixtures/consumer-types/tsconfig.nodenext.json",
|
|
244
|
-
"test:bundle:built": "node scripts/check-package-bundle.mjs",
|
|
245
|
-
"test:consumer-fixture:built": "node tests/fixtures/consumer-app/check.mjs && vue-tsc -p tests/fixtures/consumer-app/tsconfig.json --noEmit && vite build --config tests/fixtures/consumer-app/vite.config.ts && node tests/fixtures/consumer-app/assertions.mjs",
|
|
246
|
-
"test:package": "pnpm run build && pnpm run publication:verify && pnpm run test:bundle:built && pnpm run test:consumer-types:built && pnpm run test:consumer-fixture:built",
|
|
247
|
-
"test:watch": "vitest --project=unit --project=tooling",
|
|
248
|
-
"test:typecheck": "vitest run --project=unit --project=tooling --typecheck",
|
|
249
|
-
"test:storybook": "vitest run --project=storybook-light --project=storybook-dark",
|
|
250
|
-
"build": "pnpm run publication:check && pnpm run tokens:build && pnpm run tokens:check && pnpm run typecheck && vite build",
|
|
251
|
-
"verify": "pnpm run lint && pnpm run format:check && pnpm run typecheck:storybook && pnpm run test && pnpm run test:storybook && pnpm run test:package",
|
|
252
|
-
"prepublishOnly": "pnpm run verify",
|
|
253
|
-
"preview": "vite preview",
|
|
254
|
-
"storybook": "pnpm run tokens:build && storybook dev -p 6006 --no-open",
|
|
255
|
-
"build-storybook": "pnpm run tokens:build && pnpm run tokens:check && pnpm run typecheck:storybook && storybook build",
|
|
256
|
-
"changelog": "conventional-changelog -p conventionalcommits -i CHANGELOG.md -o CHANGELOG.md",
|
|
257
|
-
"release": "pnpm run verify && bumpp --git-check --all --commit \"chore(release): v%s\" --tag \"v%s\" --execute \"pnpm run changelog\""
|
|
258
|
-
},
|
|
259
233
|
"peerDependencies": {
|
|
260
234
|
"@vue/compiler-vapor": "3.6.0-rc.2",
|
|
261
235
|
"unplugin-icons": "^23.0.1",
|
|
@@ -282,11 +256,12 @@
|
|
|
282
256
|
"@types/node": "^26.1.1",
|
|
283
257
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
284
258
|
"@vitest/browser-playwright": "^4.1.10",
|
|
259
|
+
"@vue/compiler-sfc": "3.6.0-rc.2",
|
|
285
260
|
"@vue/compiler-vapor": "3.6.0-rc.2",
|
|
286
261
|
"@vue/tsconfig": "^0.9.1",
|
|
287
|
-
"bumpp": "^12.
|
|
288
|
-
"conventional-changelog": "^
|
|
289
|
-
"conventional-changelog-conventionalcommits": "^
|
|
262
|
+
"bumpp": "^12.1.1",
|
|
263
|
+
"conventional-changelog": "^7.1.0",
|
|
264
|
+
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
290
265
|
"jsdom": "^29.1.1",
|
|
291
266
|
"oxfmt": "^0.60.0",
|
|
292
267
|
"oxlint": "^1.75.0",
|
|
@@ -296,6 +271,7 @@
|
|
|
296
271
|
"storybook-addon-pseudo-states": "^10.5.3",
|
|
297
272
|
"style-dictionary": "5.5.0",
|
|
298
273
|
"typescript": "~6.0.3",
|
|
274
|
+
"umberkit": "0.0.1",
|
|
299
275
|
"unplugin-icons": "^23.0.1",
|
|
300
276
|
"vite": "^8.1.5",
|
|
301
277
|
"vite-plugin-dts": "^5.0.3",
|
|
@@ -306,5 +282,42 @@
|
|
|
306
282
|
"repository": {
|
|
307
283
|
"type": "git",
|
|
308
284
|
"url": "https://github.com/daopk/ropav"
|
|
285
|
+
},
|
|
286
|
+
"devEngines": {
|
|
287
|
+
"runtime": {
|
|
288
|
+
"name": "node",
|
|
289
|
+
"version": ">=24.7.0",
|
|
290
|
+
"onFail": "error"
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"scripts": {
|
|
294
|
+
"dev": "pnpm run storybook",
|
|
295
|
+
"lint": "oxlint .",
|
|
296
|
+
"lint:fix": "oxlint . --fix",
|
|
297
|
+
"format": "oxfmt",
|
|
298
|
+
"format:check": "oxfmt --check",
|
|
299
|
+
"changelog": "node scripts/changelog.mjs",
|
|
300
|
+
"release": "test -z \"$(git status --porcelain)\" && bumpp --commit \"chore(release): v{version}\" --tag \"v{version}\" --execute \"pnpm run changelog\"",
|
|
301
|
+
"test:workspace": "node --test tests/*.test.mjs",
|
|
302
|
+
"publication:sync": "node scripts/sync-package-publication.mjs --write",
|
|
303
|
+
"publication:check": "node scripts/sync-package-publication.mjs --check",
|
|
304
|
+
"publication:verify": "node scripts/verify-package-publication.mjs",
|
|
305
|
+
"tokens:build": "umberkit generate && umberkit build",
|
|
306
|
+
"tokens:check": "umberkit check",
|
|
307
|
+
"typecheck": "vue-tsc -b tsconfig.app.json tsconfig.node.json tsconfig.test.json",
|
|
308
|
+
"typecheck:storybook": "vue-tsc -p tsconfig.storybook.json --noEmit",
|
|
309
|
+
"test": "pnpm run tokens:emit && vitest run --project=unit --project=tooling",
|
|
310
|
+
"test:consumer-types:built": "tsc -p tests/fixtures/consumer-types/tsconfig.bundler.json && tsc -p tests/fixtures/consumer-types/tsconfig.nodenext.json",
|
|
311
|
+
"test:bundle:built": "node scripts/check-package-bundle.mjs",
|
|
312
|
+
"test:consumer-fixture:built": "node tests/fixtures/consumer-app/check.mjs && vue-tsc -p tests/fixtures/consumer-app/tsconfig.json --noEmit && vite build --config tests/fixtures/consumer-app/vite.config.ts && node tests/fixtures/consumer-app/assertions.mjs",
|
|
313
|
+
"test:package": "pnpm run build && pnpm run publication:verify && pnpm run test:bundle:built && pnpm run test:consumer-types:built && pnpm run test:consumer-fixture:built",
|
|
314
|
+
"test:watch": "pnpm run tokens:emit && vitest --project=unit --project=tooling",
|
|
315
|
+
"test:storybook": "pnpm run tokens:emit && vitest run --project=storybook-light --project=storybook-dark",
|
|
316
|
+
"build": "pnpm run publication:check && pnpm run tokens:check && pnpm run tokens:emit && pnpm run typecheck && vite build",
|
|
317
|
+
"verify": "pnpm run lint && pnpm run format:check && pnpm run test:workspace && pnpm run typecheck:storybook && pnpm run test && pnpm run test:storybook && pnpm run test:package",
|
|
318
|
+
"preview": "vite preview",
|
|
319
|
+
"storybook": "pnpm run tokens:emit && storybook dev -p 6006 --no-open",
|
|
320
|
+
"build-storybook": "pnpm run tokens:emit && pnpm run typecheck:storybook && storybook build",
|
|
321
|
+
"tokens:emit": "umberkit build"
|
|
309
322
|
}
|
|
310
|
-
}
|
|
323
|
+
}
|
package/src/styles/_mixins.scss
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
|
|
3
|
-
$rp-component-colors:
|
|
4
|
-
'dark', 'gray', 'red', 'pink', 'grape', 'violet', 'indigo', 'blue', 'cyan', 'teal', 'green',
|
|
5
|
-
'lime', 'yellow', 'orange';
|
|
1
|
+
@use 'generated/tokens.scss' as *;
|
|
6
2
|
|
|
7
3
|
@mixin flex-center {
|
|
8
4
|
display: inline-flex;
|
|
@@ -96,7 +92,7 @@ $rp-component-colors:
|
|
|
96
92
|
}
|
|
97
93
|
|
|
98
94
|
@mixin menu-surface(
|
|
99
|
-
$z-index: $z-index-dropdown,
|
|
95
|
+
$z-index: $rp-z-index-dropdown,
|
|
100
96
|
$surface: var(--rp-color-default),
|
|
101
97
|
$radius: var(--rp-radius-lg)
|
|
102
98
|
) {
|