@kazee-ds/vue 0.10.1 → 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.1** compacts DateRangePicker: the visible heading, repeated range summary, calendar-side presets and Today shortcut are removed. Period shortcuts belong in a linked Select. Use React **0.10.2** or Vue **0.10.1** with styles **0.10.3**. 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.10.3** bundle tokens **0.6.1**, using `#DBDBDB` for light-theme neutral/default and hover borders. Dark theme and focus/error/selected state colors retain their own roles.
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.1 @kazee-ds/styles@0.10.3
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"
@@ -569,7 +576,10 @@ var CheckboxIndicator_default = /* @__PURE__ */ defineComponent({
569
576
  const props = __props;
570
577
  const { forwardRef } = useForwardExpose();
571
578
  return (_ctx, _cache) => {
572
- return openBlock(), createBlock(unref(CheckboxIndicator), mergeProps({ ref: unref(forwardRef) }, {
579
+ return openBlock(), createBlock(unref(CheckboxIndicator), mergeProps({
580
+ ref: unref(forwardRef),
581
+ class: "checkbox__indicator"
582
+ }, {
573
583
  ...props,
574
584
  ..._ctx.$attrs
575
585
  }), {
@@ -4932,7 +4942,7 @@ var Tabs_default = /* @__PURE__ */ defineComponent({
4932
4942
  id: __props.id,
4933
4943
  class: unref(partClasses)([
4934
4944
  "tabs",
4935
- `tabs--${__props.variant === "default" ? "primary" : __props.variant}`,
4945
+ unref(tabsVariantClass)(__props.variant, __props.orientation),
4936
4946
  `tabs--align-${__props.align}`,
4937
4947
  __props.fullWidth && "tabs--full-width",
4938
4948
  __props.inset === "none" && "tabs--flush",