@kazee-ds/vue 0.7.0 → 0.8.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 +2 -2
- package/dist/index.js +25 -7
- package/dist/index.js.map +1 -1
- package/dist/types/Card.vue.d.ts +1 -0
- package/dist/types/CardAction.vue.d.ts +3 -1
- package/dist/types/CardRoot.vue.d.ts +1 -0
- package/dist/types/card-types.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Accessible Kazee Vue components, including Toast, built on Reka UI and native controls. Requires Vue 3.4+ and ESM.
|
|
4
4
|
|
|
5
|
-
Version **0.
|
|
5
|
+
Version **0.8.0** adds controlled selectable Card actions and builds on 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).
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Version 0.5.3 ignores Toast shortcut events with missing or non-string keys. Normal shortcuts and scoped Escape dismissal remain available.
|
|
@@ -12,7 +12,7 @@ Version 0.5.3 ignores Toast shortcut events with missing or non-string keys. Nor
|
|
|
12
12
|
Public npm installation requires no read token or login. Preserve the application's package manager and lockfile.
|
|
13
13
|
|
|
14
14
|
```sh
|
|
15
|
-
npm install --save-exact @kazee-ds/vue@0.
|
|
15
|
+
npm install --save-exact @kazee-ds/vue@0.8.0 @kazee-ds/styles@0.8.0
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Use
|
package/dist/index.js
CHANGED
|
@@ -755,8 +755,12 @@ var CardAction_default = /* @__PURE__ */ defineComponent({
|
|
|
755
755
|
href: {},
|
|
756
756
|
target: {},
|
|
757
757
|
rel: {},
|
|
758
|
-
onPress: {
|
|
758
|
+
onPress: {},
|
|
759
759
|
disabled: { type: Boolean },
|
|
760
|
+
selected: {
|
|
761
|
+
type: Boolean,
|
|
762
|
+
default: void 0
|
|
763
|
+
},
|
|
760
764
|
actionLabel: {},
|
|
761
765
|
actionLabelledBy: {},
|
|
762
766
|
actionClassName: {}
|
|
@@ -775,7 +779,8 @@ var CardAction_default = /* @__PURE__ */ defineComponent({
|
|
|
775
779
|
tabindex: props.disabled ? -1 : void 0,
|
|
776
780
|
...props.href ? {} : {
|
|
777
781
|
type: "button",
|
|
778
|
-
disabled: props.disabled
|
|
782
|
+
disabled: props.disabled,
|
|
783
|
+
"aria-pressed": props.selected
|
|
779
784
|
},
|
|
780
785
|
onClick: (event) => {
|
|
781
786
|
if (props.disabled) event.preventDefault();
|
|
@@ -801,6 +806,10 @@ var CardRoot_default = /* @__PURE__ */ defineComponent({
|
|
|
801
806
|
rel: {},
|
|
802
807
|
onPress: {},
|
|
803
808
|
disabled: { type: Boolean },
|
|
809
|
+
selected: {
|
|
810
|
+
type: Boolean,
|
|
811
|
+
default: void 0
|
|
812
|
+
},
|
|
804
813
|
actionLabel: {},
|
|
805
814
|
actionLabelledBy: {},
|
|
806
815
|
actionClassName: {},
|
|
@@ -815,7 +824,8 @@ var CardRoot_default = /* @__PURE__ */ defineComponent({
|
|
|
815
824
|
class: normalizeClass(["card", __props.classNames?.root]),
|
|
816
825
|
"data-density": __props.density,
|
|
817
826
|
"data-interactive": !!(__props.href || __props.onPress) || void 0,
|
|
818
|
-
"data-disabled": __props.disabled || void 0
|
|
827
|
+
"data-disabled": __props.disabled || void 0,
|
|
828
|
+
"data-selected": __props.selected || void 0
|
|
819
829
|
}, {
|
|
820
830
|
default: withCtx(() => [createVNode(CardAction_default, mergeProps(_ctx.$props, {
|
|
821
831
|
"action-class-name": [__props.classNames?.action, __props.actionClassName].filter(Boolean).join(" "),
|
|
@@ -835,7 +845,8 @@ var CardRoot_default = /* @__PURE__ */ defineComponent({
|
|
|
835
845
|
"class",
|
|
836
846
|
"data-density",
|
|
837
847
|
"data-interactive",
|
|
838
|
-
"data-disabled"
|
|
848
|
+
"data-disabled",
|
|
849
|
+
"data-selected"
|
|
839
850
|
]);
|
|
840
851
|
};
|
|
841
852
|
}
|
|
@@ -3739,7 +3750,8 @@ var NumberField_default = /* @__PURE__ */ defineComponent({
|
|
|
3739
3750
|
var _hoisted_1$29 = [
|
|
3740
3751
|
"data-density",
|
|
3741
3752
|
"data-interactive",
|
|
3742
|
-
"data-disabled"
|
|
3753
|
+
"data-disabled",
|
|
3754
|
+
"data-selected"
|
|
3743
3755
|
];
|
|
3744
3756
|
var _hoisted_2$18 = ["data-align", "data-divided"];
|
|
3745
3757
|
var _hoisted_3$14 = ["data-flush"];
|
|
@@ -3755,6 +3767,10 @@ var Card_default = /* @__PURE__ */ defineComponent({
|
|
|
3755
3767
|
rel: {},
|
|
3756
3768
|
onPress: {},
|
|
3757
3769
|
disabled: { type: Boolean },
|
|
3770
|
+
selected: {
|
|
3771
|
+
type: Boolean,
|
|
3772
|
+
default: void 0
|
|
3773
|
+
},
|
|
3758
3774
|
actionLabel: {},
|
|
3759
3775
|
actionLabelledBy: {},
|
|
3760
3776
|
actionClassName: {},
|
|
@@ -3771,14 +3787,16 @@ var Card_default = /* @__PURE__ */ defineComponent({
|
|
|
3771
3787
|
class: normalizeClass(unref(partClasses)("card", _ctx.$props.classNames?.root)),
|
|
3772
3788
|
"data-density": __props.density,
|
|
3773
3789
|
"data-interactive": !!(__props.href || __props.onPress) || void 0,
|
|
3774
|
-
"data-disabled": __props.disabled || void 0
|
|
3790
|
+
"data-disabled": __props.disabled || void 0,
|
|
3791
|
+
"data-selected": __props.selected || void 0
|
|
3775
3792
|
}, [
|
|
3776
3793
|
createVNode(CardAction_default, mergeProps({
|
|
3777
3794
|
href: __props.href,
|
|
3778
3795
|
target: __props.target,
|
|
3779
3796
|
rel: __props.rel,
|
|
3780
3797
|
onPress: __props.onPress,
|
|
3781
|
-
disabled: __props.disabled
|
|
3798
|
+
disabled: __props.disabled,
|
|
3799
|
+
selected: __props.selected
|
|
3782
3800
|
}, {
|
|
3783
3801
|
"action-class-name": [__props.classNames?.action, __props.actionClassName].filter(Boolean).join(" "),
|
|
3784
3802
|
"action-labelled-by": __props.actionLabelledBy ?? _ctx.$attrs["aria-labelledby"],
|