@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.
Files changed (113) hide show
  1. package/README.md +163 -19
  2. package/dist/accordion.d.mts +1 -1
  3. package/dist/action-sheet.d.mts +1 -1
  4. package/dist/alert-dialog.d.mts +1 -1
  5. package/dist/{announcer-CLnZULic.d.mts → announcer-CR3nMpAS.d.mts} +26 -26
  6. package/dist/announcer.d.mts +1 -1
  7. package/dist/autocomplete.d.mts +1 -1
  8. package/dist/avatar.d.mts +1 -1
  9. package/dist/badge.d.mts +1 -1
  10. package/dist/banner.d.mts +1 -1
  11. package/dist/block-ui.d.mts +1 -1
  12. package/dist/blockquote.d.mts +1 -1
  13. package/dist/{breadcrumb-aITc0VLc.d.mts → breadcrumb-SsZSEerN.d.mts} +1 -1
  14. package/dist/breadcrumb.d.mts +1 -1
  15. package/dist/{button-VVxUavbS.mjs → button-Cc-XkuJl.mjs} +25 -4
  16. package/dist/button.d.mts +2 -2
  17. package/dist/button.mjs +1 -1
  18. package/dist/calendar.d.mts +1 -1
  19. package/dist/callout.d.mts +1 -1
  20. package/dist/card.d.mts +1 -1
  21. package/dist/catalog.d.mts +9 -5
  22. package/dist/catalog.mjs +16 -11
  23. package/dist/chart.d.mts +1 -1
  24. package/dist/checkbox.d.mts +1 -1
  25. package/dist/code.d.mts +1 -1
  26. package/dist/collapsible.d.mts +1 -1
  27. package/dist/color-picker.d.mts +1 -1
  28. package/dist/combobox.d.mts +1 -1
  29. package/dist/command-palette.d.mts +1 -1
  30. package/dist/component-button.css +1 -1
  31. package/dist/confirm.d.mts +1 -1
  32. package/dist/context-menu.d.mts +1 -1
  33. package/dist/copy-button.d.mts +1 -1
  34. package/dist/date-range-picker.d.mts +1 -1
  35. package/dist/dialog.d.mts +1 -1
  36. package/dist/direction.d.mts +1 -1
  37. package/dist/drawer.d.mts +1 -1
  38. package/dist/dropdown-menu.d.mts +1 -1
  39. package/dist/duration-field.d.mts +1 -1
  40. package/dist/empty-state.d.mts +1 -1
  41. package/dist/{field-B2btyUqL.d.mts → field-CVbrh-Mx.d.mts} +1 -1
  42. package/dist/field.d.mts +1 -1
  43. package/dist/fieldset.d.mts +1 -1
  44. package/dist/file-upload.d.mts +1 -1
  45. package/dist/floating-action-button.d.mts +1 -1
  46. package/dist/focus-visible.d.mts +1 -1
  47. package/dist/{form-wizard-mErOrBg3.d.mts → form-wizard-D_B-Cydo.d.mts} +2 -2
  48. package/dist/form-wizard.d.mts +1 -1
  49. package/dist/fullscreen-button.d.mts +1 -1
  50. package/dist/heading.d.mts +1 -1
  51. package/dist/hover-card.d.mts +1 -1
  52. package/dist/icon-button.d.mts +1 -1
  53. package/dist/icon.d.mts +1 -1
  54. package/dist/{button-DuC3YHRk.d.mts → index-BpOePbCq.d.mts} +41 -12
  55. package/dist/index.d.mts +11 -11
  56. package/dist/index.mjs +1 -1
  57. package/dist/{input-C0fgeRnS.d.mts → input-D4Zvmf67.d.mts} +2 -2
  58. package/dist/input.d.mts +1 -1
  59. package/dist/kbd.d.mts +1 -1
  60. package/dist/landmark.d.mts +1 -1
  61. package/dist/list.d.mts +1 -1
  62. package/dist/listbox.d.mts +1 -1
  63. package/dist/locale.d.mts +1 -1
  64. package/dist/media-preferences.d.mts +1 -1
  65. package/dist/menu.d.mts +1 -1
  66. package/dist/menubar.d.mts +1 -1
  67. package/dist/month-picker.d.mts +1 -1
  68. package/dist/native-select.d.mts +1 -1
  69. package/dist/navigation-rail.d.mts +1 -1
  70. package/dist/notification-center.d.mts +1 -1
  71. package/dist/pager.d.mts +1 -1
  72. package/dist/pagination.d.mts +1 -1
  73. package/dist/popconfirm.d.mts +1 -1
  74. package/dist/popover.d.mts +1 -1
  75. package/dist/print-button.d.mts +1 -1
  76. package/dist/progress-bar.d.mts +1 -1
  77. package/dist/radio-group.d.mts +1 -1
  78. package/dist/{range-calendar-DCzPwZCi.d.mts → range-calendar-Ck_L_GjZ.d.mts} +2 -2
  79. package/dist/range-calendar.d.mts +1 -1
  80. package/dist/resolver.d.mts +1 -1
  81. package/dist/resolver.mjs +104 -104
  82. package/dist/scroll-area.d.mts +1 -1
  83. package/dist/{search-field-Biw9vApG.d.mts → search-field-DzW31UHM.d.mts} +2 -2
  84. package/dist/search-field.d.mts +1 -1
  85. package/dist/select.d.mts +1 -1
  86. package/dist/share-button.d.mts +1 -1
  87. package/dist/sidebar.d.mts +1 -1
  88. package/dist/split-button.d.mts +1 -1
  89. package/dist/splitter.d.mts +1 -1
  90. package/dist/status-light.d.mts +1 -1
  91. package/dist/stepper.d.mts +1 -1
  92. package/dist/surface.d.mts +1 -1
  93. package/dist/switch.d.mts +1 -1
  94. package/dist/tabs.d.mts +1 -1
  95. package/dist/tags-input.d.mts +1 -1
  96. package/dist/text.d.mts +1 -1
  97. package/dist/{textarea-4eIDNcvv.d.mts → textarea-D7V5lLPX.d.mts} +2 -2
  98. package/dist/textarea.d.mts +1 -1
  99. package/dist/toggle.d.mts +1 -1
  100. package/dist/tooltip.d.mts +1 -1
  101. package/dist/tour.d.mts +1 -1
  102. package/dist/tree.d.mts +1 -1
  103. package/dist/week-picker.d.mts +1 -1
  104. package/package.json +2 -2
  105. package/registry/files/{families/actions → components}/button/button.vue +12 -44
  106. package/registry/files/{families/actions/button/examples/button-basic.vue → components/button/examples/basic.vue} +3 -3
  107. package/registry/files/components/button/index.ts +11 -0
  108. package/registry/files/components/button/styles.css +272 -0
  109. package/registry/files/components/button/types.ts +76 -0
  110. package/registry/registry.json +26 -20
  111. package/registry/files/families/actions/button/button-visual.css +0 -119
  112. package/registry/files/families/actions/button/button.ts +0 -4
  113. /package/registry/files/{families/actions/button/button-keyboard.ts → components/button/keyboard.ts} +0 -0
@@ -3,7 +3,7 @@
3
3
  "registryKind": "vize-lib",
4
4
  "package": {
5
5
  "name": "@vizejs/ui",
6
- "version": "0.710.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": "families/actions/button/button.ts",
1355
+ "entry": "components/button/index.ts",
1356
1356
  "files": [
1357
1357
  {
1358
- "path": "families/actions/button/button-keyboard.ts",
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": "families/actions/button/button-visual.css",
1376
+ "path": "components/button/styles.css",
1365
1377
  "role": "style",
1366
- "sha256": "c7d0f30fba93f9bb6ba389064454c74180ee08c83865511874e6dd2497213c1b",
1367
- "size": 4318
1378
+ "sha256": "3089213cd36aaaccc105012225d924bd55ae573511275739227fd96b468b9c90",
1379
+ "size": 9184
1368
1380
  },
1369
1381
  {
1370
- "path": "families/actions/button/button.ts",
1371
- "role": "entry",
1372
- "sha256": "8d9b61f6bb96b4464a2c2d455ec602e55e7379ed278ce034229dc1d561601e2e",
1373
- "size": 152
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": "f9271cb234fdb4da7e7624bd8bb590096bacd7ab141e27fff9092ce2a0cf66ab",
1398
+ "contentHash": "efd360b11fbb19091c30e4557ecf332f6252154aaaad07da74b11b88dd04b6dc",
1393
1399
  "examples": [
1394
1400
  {
1395
- "path": "families/actions/button/examples/button-basic.vue",
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": "a0a9193b2b7c3b3e4c0f2d6109bebf0dbcd7ac729f971afac53635292eb91eee",
1399
- "size": 543
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
- }
@@ -1,4 +0,0 @@
1
- export * from "./button-keyboard.ts";
2
-
3
- /** Accessible, unstyled button with polymorphic rendering. */
4
- export { default as Button } from "./button.vue";