cleek 2.11.19 → 2.11.21
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/dist/cleek-styles/tiny-tailwind/aspect-ratio.styl +6 -6
- package/dist/cleek-styles/tiny-tailwind/bg-color.styl +161 -161
- package/dist/cleek-styles/tiny-tailwind/border-color.styl +161 -161
- package/dist/cleek-styles/tiny-tailwind/border.styl +63 -63
- package/dist/cleek-styles/tiny-tailwind/flex-direction.styl +8 -8
- package/dist/cleek-styles/tiny-tailwind/flex-grow.styl +10 -10
- package/dist/cleek-styles/tiny-tailwind/font-size.styl +24 -24
- package/dist/cleek-styles/tiny-tailwind/grid.styl +87 -87
- package/dist/cleek-styles/tiny-tailwind/height.styl +96 -96
- package/dist/cleek-styles/tiny-tailwind/inset.styl +328 -328
- package/dist/cleek-styles/tiny-tailwind/leading.styl +28 -28
- package/dist/cleek-styles/tiny-tailwind/object-fit.styl +20 -20
- package/dist/cleek-styles/tiny-tailwind/opacity.styl +30 -30
- package/dist/cleek-styles/tiny-tailwind/pointer-events.styl +4 -4
- package/dist/cleek-styles/tiny-tailwind/shadow.styl +16 -16
- package/dist/cleek-styles/tiny-tailwind/size-constraints.styl +127 -127
- package/dist/cleek-styles/tiny-tailwind/text-color.styl +159 -159
- package/dist/cleek-styles/tiny-tailwind/text-decoration.styl +8 -8
- package/dist/cleek-styles/tiny-tailwind/text-overflow.styl +38 -38
- package/dist/cleek-styles/tiny-tailwind/text-transform.styl +8 -8
- package/dist/cleek-styles/tiny-tailwind/transition.styl +55 -55
- package/dist/cleek-styles/tiny-tailwind/user-select.styl +8 -8
- package/dist/cleek-styles/tiny-tailwind/visibility.styl +4 -4
- package/dist/cleek-styles/tiny-tailwind/z-index.styl +14 -14
- package/dist/main.cjs.js +1 -1
- package/dist/main.css +1 -1
- package/dist/main.es.js +6 -5
- package/dist/types/components/ck-dropdown-button.vue.d.ts +6 -3
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -3637,7 +3637,7 @@ const za = /* @__PURE__ */ q(Ra, [["__scopeId", "data-v-f613ffcb"]]), Wa = { cla
|
|
|
3637
3637
|
const Na = /* @__PURE__ */ q(Oa, [["__scopeId", "data-v-43006e82"]]), Ea = {
|
|
3638
3638
|
key: 0,
|
|
3639
3639
|
class: "extra-actions__container"
|
|
3640
|
-
}, Fa = ["onClick"], ja = { class: "extra-action__name" }, Ha =
|
|
3640
|
+
}, Fa = ["onClick"], ja = { class: "extra-action__name" }, Ha = "main", qa = /* @__PURE__ */ z({
|
|
3641
3641
|
__name: "ck-dropdown-button",
|
|
3642
3642
|
props: {
|
|
3643
3643
|
title: {},
|
|
@@ -3645,6 +3645,7 @@ const Na = /* @__PURE__ */ q(Oa, [["__scopeId", "data-v-43006e82"]]), Ea = {
|
|
|
3645
3645
|
isLoading: { type: Boolean },
|
|
3646
3646
|
tabindex: {},
|
|
3647
3647
|
dropdownButtonActions: {},
|
|
3648
|
+
mainActionId: {},
|
|
3648
3649
|
type: {},
|
|
3649
3650
|
color: {},
|
|
3650
3651
|
textColor: {},
|
|
@@ -3668,8 +3669,8 @@ const Na = /* @__PURE__ */ q(Oa, [["__scopeId", "data-v-43006e82"]]), Ea = {
|
|
|
3668
3669
|
var s;
|
|
3669
3670
|
return !!((s = t.dropdownButtonActions) != null && s.length);
|
|
3670
3671
|
}), a = d(() => {
|
|
3671
|
-
const { dropdownButtonActions: s,
|
|
3672
|
-
return r.value ? { ...
|
|
3672
|
+
const { dropdownButtonActions: s, mainActionId: m, ...i } = t;
|
|
3673
|
+
return r.value ? { ...i, group: "left" } : i;
|
|
3673
3674
|
}), c = d(() => ({
|
|
3674
3675
|
type: t.type,
|
|
3675
3676
|
color: t.color,
|
|
@@ -3680,7 +3681,7 @@ const Na = /* @__PURE__ */ q(Oa, [["__scopeId", "data-v-43006e82"]]), Ea = {
|
|
|
3680
3681
|
group: "right"
|
|
3681
3682
|
}));
|
|
3682
3683
|
function u(s) {
|
|
3683
|
-
l("click", s), l("action", Ha);
|
|
3684
|
+
l("click", s), l("action", t.mainActionId ?? Ha);
|
|
3684
3685
|
}
|
|
3685
3686
|
function p(s) {
|
|
3686
3687
|
l("action", s), n.value = !1;
|
|
@@ -3734,7 +3735,7 @@ const Na = /* @__PURE__ */ q(Oa, [["__scopeId", "data-v-43006e82"]]), Ea = {
|
|
|
3734
3735
|
], 32));
|
|
3735
3736
|
}
|
|
3736
3737
|
});
|
|
3737
|
-
const Ua = /* @__PURE__ */ q(qa, [["__scopeId", "data-v-
|
|
3738
|
+
const Ua = /* @__PURE__ */ q(qa, [["__scopeId", "data-v-1eb3c72d"]]), Ya = {
|
|
3738
3739
|
key: 0,
|
|
3739
3740
|
class: "ck-card__header-title"
|
|
3740
3741
|
}, Ga = { class: "ck-card__body" }, Za = {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Align, AlignVertical, Color, Icon, IconPack, Layout, ButtonType, WidthBreaks } from '../cleek-options/cleek-options.types';
|
|
2
2
|
|
|
3
|
+
type ActionId = string | number | null;
|
|
3
4
|
export interface DropdownButtonAction {
|
|
4
|
-
id:
|
|
5
|
+
id: ActionId;
|
|
5
6
|
name: string;
|
|
6
7
|
}
|
|
7
8
|
declare function __VLS_template(): {
|
|
@@ -13,6 +14,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
13
14
|
isLoading?: boolean;
|
|
14
15
|
tabindex?: number;
|
|
15
16
|
dropdownButtonActions: DropdownButtonAction[];
|
|
17
|
+
mainActionId?: ActionId;
|
|
16
18
|
type?: ButtonType;
|
|
17
19
|
color?: Color;
|
|
18
20
|
textColor?: Color;
|
|
@@ -31,13 +33,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
31
33
|
groupVertical?: AlignVertical;
|
|
32
34
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
33
35
|
click: (event: Event) => void;
|
|
34
|
-
action: (actionId:
|
|
36
|
+
action: (actionId: string) => void;
|
|
35
37
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
36
38
|
title?: string;
|
|
37
39
|
disabled?: boolean;
|
|
38
40
|
isLoading?: boolean;
|
|
39
41
|
tabindex?: number;
|
|
40
42
|
dropdownButtonActions: DropdownButtonAction[];
|
|
43
|
+
mainActionId?: ActionId;
|
|
41
44
|
type?: ButtonType;
|
|
42
45
|
color?: Color;
|
|
43
46
|
textColor?: Color;
|
|
@@ -56,7 +59,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
56
59
|
groupVertical?: AlignVertical;
|
|
57
60
|
}>>> & Readonly<{
|
|
58
61
|
onClick?: (event: Event) => any;
|
|
59
|
-
onAction?: (actionId:
|
|
62
|
+
onAction?: (actionId: string) => any;
|
|
60
63
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
61
64
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
62
65
|
export default _default;
|