@kazee-ds/vue 0.10.2 → 0.11.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 CHANGED
@@ -1,8 +1,8 @@
1
1
  # @kazee-ds/vue
2
2
 
3
- Prepared **0.10.2** centers the check and indeterminate dash of composed `Checkbox.Indicator`. Use React **0.10.3** or Vue **0.10.2** with styles **0.11.0**. These versions are unpublished; see [release status](https://gitlab.com/kazee.indonesia/kazee-design-system/-/blob/main/docs/versions.md).
3
+ Prepared **0.11.0** adds the `enclosed` Tabs variant (folder tabs) and keeps a nested Tabs independent of its ancestor's variant. Use React **0.11.0** or Vue **0.11.0** with styles **0.12.0**. These versions are unpublished; see [release status](https://gitlab.com/kazee.indonesia/kazee-design-system/-/blob/main/docs/versions.md).
4
4
 
5
- The prepared styles **0.11.0** bundle tokens **0.7.0**, which add `--ds-color-text-secondary`: a cool-gray secondary text role (`#6b7090` light, `#9ca0ba` dark) that meets WCAG AA on default, raised and sunken surfaces. Published styles **0.10.3** / tokens **0.6.1** introduced `#DBDBDB` light-theme neutral borders, which remain unchanged.
5
+ The prepared styles **0.12.0** bundle tokens **0.8.0**, which add the `cool-gray-300` palette color (`#B0B3C4`), and style the `enclosed` Tabs variant. Tabs root modifiers are scoped with CSS `@scope`, so nested Tabs keep their own variant (Chrome/Edge 118, Safari 17.4, Firefox 146). Published styles **0.11.0** / tokens **0.7.0** added the AA `--ds-color-text-secondary` text role, which remains unchanged.
6
6
  Accessible Kazee Vue components, including Toast, built on Reka UI and native controls. Requires Vue 3.4+ and ESM.
7
7
 
8
8
  Version **0.10.0** adds Combobox sizing, focus/search and nonempty-selection policies, full-control popovers, and compact and compound Dialog header/footer dividers and builds on controlled selectable Card actions, Avatar/AvatarGroup, expanded Badge, sized/icon Switch, interactive/compact Card, dense controls, input clearing and composable date/time families with native Vue models and slots. Existing compact APIs remain supported. Verify registry availability before installing; use matching local packed artifacts for checkout testing. See [component expansion](https://gitlab.com/kazee.indonesia/kazee-design-system/-/blob/main/docs/component-expansion.md) and [release status](https://gitlab.com/kazee.indonesia/kazee-design-system/-/blob/main/docs/versions.md).
@@ -15,7 +15,7 @@ Version 0.5.3 ignores Toast shortcut events with missing or non-string keys. Nor
15
15
  After the prepared versions are published and verified, public npm installation requires no read token or login. Until then use matching local packed artifacts. Preserve the application's package manager and lockfile.
16
16
 
17
17
  ```sh
18
- npm install --save-exact @kazee-ds/vue@0.10.2 @kazee-ds/styles@0.11.0
18
+ npm install --save-exact @kazee-ds/vue@0.11.0 @kazee-ds/styles@0.12.0
19
19
  ```
20
20
 
21
21
  ## Use
package/dist/index.js CHANGED
@@ -501,6 +501,13 @@ var SelectValue_default = /* @__PURE__ */ defineComponent({
501
501
  }
502
502
  });
503
503
  //#endregion
504
+ //#region src/types.ts
505
+ function tabsVariantClass(variant, orientation) {
506
+ if (!variant || variant === "default") return "tabs--primary";
507
+ if (variant === "enclosed" && orientation === "vertical") return "tabs--secondary";
508
+ return `tabs--${variant}`;
509
+ }
510
+ //#endregion
504
511
  //#region src/TabsRoot.vue
505
512
  var TabsRoot_default = /* @__PURE__ */ defineComponent({
506
513
  inheritAttrs: false,
@@ -541,7 +548,7 @@ var TabsRoot_default = /* @__PURE__ */ defineComponent({
541
548
  }, {
542
549
  class: [
543
550
  "tabs",
544
- `tabs--${__props.variant === "default" ? "primary" : __props.variant ?? "primary"}`,
551
+ unref(tabsVariantClass)(__props.variant, __props.orientation),
545
552
  `tabs--${__props.size ?? "md"}`,
546
553
  `tabs--align-${__props.align ?? "center"}`,
547
554
  __props.fullWidth && "tabs--full-width"
@@ -4935,7 +4942,7 @@ var Tabs_default = /* @__PURE__ */ defineComponent({
4935
4942
  id: __props.id,
4936
4943
  class: unref(partClasses)([
4937
4944
  "tabs",
4938
- `tabs--${__props.variant === "default" ? "primary" : __props.variant}`,
4945
+ unref(tabsVariantClass)(__props.variant, __props.orientation),
4939
4946
  `tabs--align-${__props.align}`,
4940
4947
  __props.fullWidth && "tabs--full-width",
4941
4948
  __props.inset === "none" && "tabs--flush",