@vizejs/ui 0.710.0 → 0.712.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 +163 -19
- package/dist/accordion.d.mts +1 -1
- package/dist/action-sheet.d.mts +1 -1
- package/dist/alert-dialog.d.mts +1 -1
- package/dist/{announcer-CLnZULic.d.mts → announcer-CR3nMpAS.d.mts} +26 -26
- package/dist/announcer.d.mts +1 -1
- package/dist/autocomplete.d.mts +1 -1
- package/dist/avatar.d.mts +1 -1
- package/dist/badge.d.mts +1 -1
- package/dist/banner.d.mts +1 -1
- package/dist/block-ui.d.mts +1 -1
- package/dist/blockquote.d.mts +1 -1
- package/dist/{breadcrumb-aITc0VLc.d.mts → breadcrumb-SsZSEerN.d.mts} +1 -1
- package/dist/breadcrumb.d.mts +1 -1
- package/dist/{button-VVxUavbS.mjs → button-Cc-XkuJl.mjs} +25 -4
- package/dist/button.d.mts +2 -2
- package/dist/button.mjs +1 -1
- package/dist/calendar.d.mts +1 -1
- package/dist/callout.d.mts +1 -1
- package/dist/card.d.mts +1 -1
- package/dist/catalog.d.mts +9 -5
- package/dist/catalog.mjs +16 -11
- package/dist/chart.d.mts +1 -1
- package/dist/checkbox.d.mts +1 -1
- package/dist/code.d.mts +1 -1
- package/dist/collapsible.d.mts +1 -1
- package/dist/color-picker.d.mts +1 -1
- package/dist/combobox.d.mts +1 -1
- package/dist/command-palette.d.mts +1 -1
- package/dist/component-button.css +1 -1
- package/dist/confirm.d.mts +1 -1
- package/dist/context-menu.d.mts +1 -1
- package/dist/copy-button.d.mts +1 -1
- package/dist/date-range-picker.d.mts +1 -1
- package/dist/dialog.d.mts +1 -1
- package/dist/direction.d.mts +1 -1
- package/dist/drawer.d.mts +1 -1
- package/dist/dropdown-menu.d.mts +1 -1
- package/dist/duration-field.d.mts +1 -1
- package/dist/empty-state.d.mts +1 -1
- package/dist/{field-B2btyUqL.d.mts → field-CVbrh-Mx.d.mts} +1 -1
- package/dist/field.d.mts +1 -1
- package/dist/fieldset.d.mts +1 -1
- package/dist/file-upload.d.mts +1 -1
- package/dist/floating-action-button.d.mts +1 -1
- package/dist/focus-visible.d.mts +1 -1
- package/dist/{form-wizard-mErOrBg3.d.mts → form-wizard-D_B-Cydo.d.mts} +2 -2
- package/dist/form-wizard.d.mts +1 -1
- package/dist/fullscreen-button.d.mts +1 -1
- package/dist/heading.d.mts +1 -1
- package/dist/hover-card.d.mts +1 -1
- package/dist/icon-button.d.mts +1 -1
- package/dist/icon.d.mts +1 -1
- package/dist/{button-DuC3YHRk.d.mts → index-BpOePbCq.d.mts} +41 -12
- package/dist/index.d.mts +11 -11
- package/dist/index.mjs +1 -1
- package/dist/{input-C0fgeRnS.d.mts → input-D4Zvmf67.d.mts} +2 -2
- package/dist/input.d.mts +1 -1
- package/dist/kbd.d.mts +1 -1
- package/dist/landmark.d.mts +1 -1
- package/dist/list.d.mts +1 -1
- package/dist/listbox.d.mts +1 -1
- package/dist/locale.d.mts +1 -1
- package/dist/media-preferences.d.mts +1 -1
- package/dist/menu.d.mts +1 -1
- package/dist/menubar.d.mts +1 -1
- package/dist/month-picker.d.mts +1 -1
- package/dist/native-select.d.mts +1 -1
- package/dist/navigation-rail.d.mts +1 -1
- package/dist/notification-center.d.mts +1 -1
- package/dist/pager.d.mts +1 -1
- package/dist/pagination.d.mts +1 -1
- package/dist/popconfirm.d.mts +1 -1
- package/dist/popover.d.mts +1 -1
- package/dist/print-button.d.mts +1 -1
- package/dist/progress-bar.d.mts +1 -1
- package/dist/radio-group.d.mts +1 -1
- package/dist/{range-calendar-DCzPwZCi.d.mts → range-calendar-Ck_L_GjZ.d.mts} +2 -2
- package/dist/range-calendar.d.mts +1 -1
- package/dist/resolver.d.mts +1 -1
- package/dist/resolver.mjs +104 -104
- package/dist/scroll-area.d.mts +1 -1
- package/dist/{search-field-Biw9vApG.d.mts → search-field-DzW31UHM.d.mts} +2 -2
- package/dist/search-field.d.mts +1 -1
- package/dist/select.d.mts +1 -1
- package/dist/share-button.d.mts +1 -1
- package/dist/sidebar.d.mts +1 -1
- package/dist/split-button.d.mts +1 -1
- package/dist/splitter.d.mts +1 -1
- package/dist/status-light.d.mts +1 -1
- package/dist/stepper.d.mts +1 -1
- package/dist/surface.d.mts +1 -1
- package/dist/switch.d.mts +1 -1
- package/dist/tabs.d.mts +1 -1
- package/dist/tags-input.d.mts +1 -1
- package/dist/text.d.mts +1 -1
- package/dist/{textarea-4eIDNcvv.d.mts → textarea-D7V5lLPX.d.mts} +2 -2
- package/dist/textarea.d.mts +1 -1
- package/dist/toggle.d.mts +1 -1
- package/dist/tooltip.d.mts +1 -1
- package/dist/tour.d.mts +1 -1
- package/dist/tree.d.mts +1 -1
- package/dist/week-picker.d.mts +1 -1
- package/package.json +2 -2
- package/registry/files/{families/actions → components}/button/button.vue +12 -44
- package/registry/files/{families/actions/button/examples/button-basic.vue → components/button/examples/basic.vue} +3 -3
- package/registry/files/components/button/index.ts +11 -0
- package/registry/files/components/button/styles.css +272 -0
- package/registry/files/components/button/types.ts +76 -0
- package/registry/registry.json +26 -20
- package/registry/files/families/actions/button/button-visual.css +0 -119
- package/registry/files/families/actions/button/button.ts +0 -4
- /package/registry/files/{families/actions/button/button-keyboard.ts → components/button/keyboard.ts} +0 -0
package/registry/registry.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"registryKind": "vize-lib",
|
|
4
4
|
"package": {
|
|
5
5
|
"name": "@vizejs/ui",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.712.0"
|
|
7
7
|
},
|
|
8
8
|
"kind": "ui",
|
|
9
9
|
"filesDirectory": "files",
|
|
@@ -1352,31 +1352,37 @@
|
|
|
1352
1352
|
"button primitive"
|
|
1353
1353
|
],
|
|
1354
1354
|
"packageSubpath": "./button",
|
|
1355
|
-
"entry": "
|
|
1355
|
+
"entry": "components/button/index.ts",
|
|
1356
1356
|
"files": [
|
|
1357
1357
|
{
|
|
1358
|
-
"path": "
|
|
1358
|
+
"path": "components/button/button.vue",
|
|
1359
|
+
"role": "component",
|
|
1360
|
+
"sha256": "45f91a1f553f16d66d0f7ac480c8d35e8ed25ea2c90b4f684b25f666d43edbb2",
|
|
1361
|
+
"size": 3161
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
"path": "components/button/index.ts",
|
|
1365
|
+
"role": "entry",
|
|
1366
|
+
"sha256": "b12f5a8e75f095fd285947a2e2473a78c6ac3ed3847c2d5c07df8c14b6eafacb",
|
|
1367
|
+
"size": 259
|
|
1368
|
+
},
|
|
1369
|
+
{
|
|
1370
|
+
"path": "components/button/keyboard.ts",
|
|
1359
1371
|
"role": "module",
|
|
1360
1372
|
"sha256": "a34ca324cbec6eef9401862e9b044f0bc316f9dbbdefa10bbc7762710467f010",
|
|
1361
1373
|
"size": 776
|
|
1362
1374
|
},
|
|
1363
1375
|
{
|
|
1364
|
-
"path": "
|
|
1376
|
+
"path": "components/button/styles.css",
|
|
1365
1377
|
"role": "style",
|
|
1366
|
-
"sha256": "
|
|
1367
|
-
"size":
|
|
1378
|
+
"sha256": "3089213cd36aaaccc105012225d924bd55ae573511275739227fd96b468b9c90",
|
|
1379
|
+
"size": 9184
|
|
1368
1380
|
},
|
|
1369
1381
|
{
|
|
1370
|
-
"path": "
|
|
1371
|
-
"role": "
|
|
1372
|
-
"sha256": "
|
|
1373
|
-
"size":
|
|
1374
|
-
},
|
|
1375
|
-
{
|
|
1376
|
-
"path": "families/actions/button/button.vue",
|
|
1377
|
-
"role": "component",
|
|
1378
|
-
"sha256": "23b6474ed4106bfb9e4a55ccd1507286c978df263f419798b40810062ef628df",
|
|
1379
|
-
"size": 3805
|
|
1382
|
+
"path": "components/button/types.ts",
|
|
1383
|
+
"role": "module",
|
|
1384
|
+
"sha256": "69ada94e51e789bc85aef31efc7b63f9dede53ca32d6a5a173b51e51b6a49675",
|
|
1385
|
+
"size": 1887
|
|
1380
1386
|
}
|
|
1381
1387
|
],
|
|
1382
1388
|
"registryDependencies": [
|
|
@@ -1389,14 +1395,14 @@
|
|
|
1389
1395
|
"kind": "peer"
|
|
1390
1396
|
}
|
|
1391
1397
|
],
|
|
1392
|
-
"contentHash": "
|
|
1398
|
+
"contentHash": "efd360b11fbb19091c30e4557ecf332f6252154aaaad07da74b11b88dd04b6dc",
|
|
1393
1399
|
"examples": [
|
|
1394
1400
|
{
|
|
1395
|
-
"path": "
|
|
1401
|
+
"path": "components/button/examples/basic.vue",
|
|
1396
1402
|
"title": "Basic",
|
|
1397
1403
|
"description": "Native buttons showing press handling, a loading state, and a disabled action.",
|
|
1398
|
-
"sha256": "
|
|
1399
|
-
"size":
|
|
1404
|
+
"sha256": "fef1a53e81fe1bf96307dbf810427882ee896a501568d4a2e8a794b478439379",
|
|
1405
|
+
"size": 605
|
|
1400
1406
|
}
|
|
1401
1407
|
]
|
|
1402
1408
|
},
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/* Optional visual treatment. Button's JavaScript and authored markup remain headless. */
|
|
2
|
-
@layer vize.preset {
|
|
3
|
-
/* Theme boundaries must not inherit another palette's component overrides. */
|
|
4
|
-
:where([data-vize-theme], :host([data-vize-theme])) {
|
|
5
|
-
--vize-ui-button-radius: initial;
|
|
6
|
-
--vize-ui-button-shadow: initial;
|
|
7
|
-
--vize-ui-button-letter-spacing: initial;
|
|
8
|
-
--vize-ui-button-fill: initial;
|
|
9
|
-
--vize-ui-button-ink: initial;
|
|
10
|
-
--vize-ui-button-height: initial;
|
|
11
|
-
--vize-ui-button-padding-inline: initial;
|
|
12
|
-
--vize-ui-button-font-family: initial;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
:where([data-vize-theme~="atelier"], :host([data-vize-theme~="atelier"])) {
|
|
16
|
-
--vize-ui-button-radius: var(--vize-ui-radius-md);
|
|
17
|
-
--vize-ui-button-shadow: var(--vize-ui-elevation-raised);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:where([data-vize-theme~="paper"], :host([data-vize-theme~="paper"])) {
|
|
21
|
-
--vize-ui-button-radius: 0.1875rem;
|
|
22
|
-
--vize-ui-button-shadow: none;
|
|
23
|
-
--vize-ui-button-letter-spacing: 0.025em;
|
|
24
|
-
--vize-ui-button-fill: var(--vize-ui-color-text);
|
|
25
|
-
--vize-ui-button-ink: var(--vize-ui-color-canvas);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
:where([data-vize-theme~="signal"], :host([data-vize-theme~="signal"])) {
|
|
29
|
-
--vize-ui-button-radius: 0.125rem;
|
|
30
|
-
--vize-ui-button-shadow: none;
|
|
31
|
-
--vize-ui-button-letter-spacing: 0.01em;
|
|
32
|
-
--vize-ui-button-height: var(--vize-ui-size-control-sm);
|
|
33
|
-
--vize-ui-button-padding-inline: var(--vize-ui-space-md);
|
|
34
|
-
--vize-ui-button-font-family: var(--vize-ui-type-family-mono);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
:where([data-vize-ui="button"]) {
|
|
38
|
-
appearance: none;
|
|
39
|
-
display: inline-flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
justify-content: center;
|
|
42
|
-
gap: var(--vize-ui-space-sm);
|
|
43
|
-
min-block-size: var(--vize-ui-button-height, var(--vize-ui-size-control-md));
|
|
44
|
-
padding-inline: var(--vize-ui-button-padding-inline, var(--vize-ui-space-lg));
|
|
45
|
-
border: var(--vize-ui-border-width-thin) solid
|
|
46
|
-
var(--vize-ui-button-fill, var(--vize-ui-color-accent));
|
|
47
|
-
border-radius: var(--vize-ui-button-radius, var(--vize-ui-radius-md));
|
|
48
|
-
background-color: var(--vize-ui-button-fill, var(--vize-ui-color-accent));
|
|
49
|
-
color: var(--vize-ui-button-ink, var(--vize-ui-color-accent-contrast));
|
|
50
|
-
box-shadow: var(--vize-ui-button-shadow, var(--vize-ui-elevation-raised));
|
|
51
|
-
font-family: var(--vize-ui-button-font-family, var(--vize-ui-type-family-sans));
|
|
52
|
-
font-size: var(--vize-ui-type-size-sm);
|
|
53
|
-
font-weight: var(--vize-ui-type-weight-medium);
|
|
54
|
-
line-height: var(--vize-ui-type-leading-tight);
|
|
55
|
-
letter-spacing: var(--vize-ui-button-letter-spacing, 0);
|
|
56
|
-
text-align: center;
|
|
57
|
-
text-decoration: none;
|
|
58
|
-
white-space: nowrap;
|
|
59
|
-
cursor: pointer;
|
|
60
|
-
touch-action: manipulation;
|
|
61
|
-
transition-property: background-color, border-color, box-shadow, translate;
|
|
62
|
-
transition-duration: var(--vize-ui-motion-duration-fast, 120ms);
|
|
63
|
-
transition-timing-function: var(--vize-ui-motion-ease-standard, ease-out);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
:where([data-vize-ui="button"]:hover:not(:disabled):not([aria-disabled="true"])) {
|
|
67
|
-
background-color: color-mix(
|
|
68
|
-
in oklab,
|
|
69
|
-
var(--vize-ui-button-fill, var(--vize-ui-color-accent)) 89%,
|
|
70
|
-
var(--vize-ui-color-text)
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
:where([data-vize-ui="button"]:active:not(:disabled):not([aria-disabled="true"])) {
|
|
75
|
-
translate: 0 1px;
|
|
76
|
-
box-shadow: none;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
:where([data-vize-ui="button"]:focus-visible) {
|
|
80
|
-
outline: var(--vize-ui-focus-ring-width) solid var(--vize-ui-focus-ring-color);
|
|
81
|
-
outline-offset: var(--vize-ui-focus-ring-offset);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
:where([data-vize-ui="button"]:disabled, [data-vize-ui="button"][aria-disabled="true"]) {
|
|
85
|
-
opacity: var(--vize-ui-opacity-disabled);
|
|
86
|
-
cursor: default;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
:where([data-vize-ui="button"][data-state="loading"]) {
|
|
90
|
-
cursor: progress;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@layer vize.policy {
|
|
95
|
-
@media (prefers-reduced-motion: reduce) {
|
|
96
|
-
:where([data-vize-ui="button"]) {
|
|
97
|
-
transition-duration: 0ms;
|
|
98
|
-
translate: none;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
@media (forced-colors: active) {
|
|
103
|
-
:where([data-vize-ui="button"]) {
|
|
104
|
-
background-color: ButtonFace;
|
|
105
|
-
border-color: ButtonBorder;
|
|
106
|
-
color: ButtonText;
|
|
107
|
-
box-shadow: none;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
:where([data-vize-ui="button"]:focus-visible) {
|
|
111
|
-
outline-color: Highlight;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
:where([data-vize-ui="button"]:disabled, [data-vize-ui="button"][aria-disabled="true"]) {
|
|
115
|
-
color: GrayText;
|
|
116
|
-
opacity: 1;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
/package/registry/files/{families/actions/button/button-keyboard.ts → components/button/keyboard.ts}
RENAMED
|
File without changes
|