@equal-experts/kuat-vue 0.12.0 → 0.13.1
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 +3 -1
- package/agent-docs/AGENTS.md +10 -0
- package/agent-docs/README.md +17 -0
- package/agent-docs/bundle-manifest.json +63 -0
- package/agent-docs/components/_template.md +21 -0
- package/agent-docs/components/button-group.md +27 -0
- package/agent-docs/components/button.md +50 -0
- package/agent-docs/components/components.manifest.json +20 -0
- package/agent-docs/components/kuat-header.md +27 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/LOADING.md +166 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/accessibility.md +444 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/brand.md +99 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/content/README.md +28 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/content/formatting.md +93 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/content/numbers.md +69 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/content/punctuation.md +75 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/content/voice-and-tone.md +263 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/content/writing-style.md +91 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/design/README.md +28 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/design/borders.md +159 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/design/colours.md +173 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/design/design-language.md +116 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/design/spacing.md +130 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/design/typography.md +155 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/logo.md +151 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/marketing/content/README.md +26 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/marketing/content/blog-posts.md +33 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/marketing/content/marketing-content.md +65 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/marketing/content/seo.md +44 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/marketing/emails.md +74 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/marketing/scenarios/README.md +18 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/marketing/scenarios/marketing-pages.md +368 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/marketing/website.md +169 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/DEPRECATIONS.md +28 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/README.md +65 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/accessibility.md +402 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/component-decision-tree.md +263 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/component-registry.md +68 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/content/README.md +29 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/content/actions.md +51 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/content/confirmations.md +57 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/content/empty-states.md +43 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/content/errors.md +54 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/content/forms.md +74 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/content/product-content.md +138 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/design.md +207 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/emails.md +71 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/review-checklist.md +57 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/review-context.md +44 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/scenarios/README.md +82 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/scenarios/authentication.md +303 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/scenarios/dashboards.md +313 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/scenarios/documentation.md +333 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/scenarios/forms.md +361 -0
- package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/technical.md +488 -0
- package/agent-docs/kuat-docs/rules/README.md +148 -0
- package/agent-docs/kuat-docs/rules/design/layouts.md +394 -0
- package/agent-docs/kuat-docs/rules/scenarios/README.md +83 -0
- package/agent-docs/kuat-docs/rules/scenarios/authentication.md +301 -0
- package/agent-docs/kuat-docs/rules/scenarios/dashboards.md +314 -0
- package/agent-docs/kuat-docs/rules/scenarios/documentation.md +333 -0
- package/agent-docs/kuat-docs/rules/scenarios/forms.md +359 -0
- package/agent-docs/kuat-docs/rules/scenarios/marketing-pages.md +367 -0
- package/agent-docs/manifest.json +9 -0
- package/agent-docs/rules/LOADING-consumer.md +27 -0
- package/dist/{AccordionTrigger-BRz5PzEd.js → AccordionTrigger-BGVFRlgt.js} +1 -1
- package/dist/{AlertDialogTrigger.vue_vue_type_script_setup_true_lang-CK1Um8CY.js → AlertDialogTrigger.vue_vue_type_script_setup_true_lang-DosgAcSM.js} +1 -1
- package/dist/{KuatSelect.vue_vue_type_script_setup_true_lang-DP66U_wg.js → KuatSelect.vue_vue_type_script_setup_true_lang-CT1xn9gs.js} +1 -1
- package/dist/accordion.js +1 -1
- package/dist/alert-dialog.js +1 -1
- package/dist/button-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/components/ui/icon-button/IconButton.vue.d.ts +62 -0
- package/dist/components/ui/icon-button/constants.d.ts +13 -0
- package/dist/components/ui/icon-button/index.d.ts +14 -0
- package/dist/components/ui/kuat-header/KuatHeader.vue.d.ts +7 -6
- package/dist/components/ui/kuat-header/constants.d.ts +79 -0
- package/dist/components/ui/kuat-header/index.d.ts +3 -2
- package/dist/components/ui/kuat-header/kuat-header.logic.d.ts +29 -0
- package/dist/components/ui/select/KuatSelect.vue.d.ts +2 -2
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +1 -1
- package/dist/{constants-Ils7NSfg.js → constants-BZKku54w.js} +1 -1
- package/dist/{constants-BpzIL1jq.js → constants-DC1CCNlp.js} +1 -1
- package/dist/{constants-D_fYMnOg.js → constants-DWBWMp2p.js} +1 -1
- package/dist/icon-button.d.ts +3 -0
- package/dist/icon-button.js +12 -0
- package/dist/index-OELvcT-N.js +54 -0
- package/dist/{index-iz_NZI-V.js → index-Tp80OeHH.js} +1 -1
- package/dist/index-lZY__1xm.js +76 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1188 -392
- package/dist/radio.js +1 -1
- package/dist/select.js +1 -1
- package/dist/style.css +1 -1
- package/dist/switch.js +1 -1
- package/dist/toggle-group.js +1 -1
- package/package.json +8 -2
- package/dist/index-A7umpmtg.js +0 -37
|
@@ -1,4 +1,83 @@
|
|
|
1
|
+
import { Component, VNode } from 'vue';
|
|
2
|
+
|
|
1
3
|
export declare const KUAT_HEADER_VARIANTS: readonly ["default", "bold"];
|
|
2
4
|
export type KuatHeaderVariant = (typeof KUAT_HEADER_VARIANTS)[number];
|
|
5
|
+
export declare const KUAT_HEADER_LOCKUP_VARIANTS: readonly ["default", "demo"];
|
|
6
|
+
export type KuatHeaderLockupVariant = (typeof KUAT_HEADER_LOCKUP_VARIANTS)[number];
|
|
3
7
|
export declare const EE_LOGO_TEXT_COLORS: readonly ["grey", "white"];
|
|
4
8
|
export type EELogoTextColor = (typeof EE_LOGO_TEXT_COLORS)[number];
|
|
9
|
+
export declare const KUAT_HEADER_APP_SWITCHER_EMPTY: readonly ["hide", "message"];
|
|
10
|
+
export type KuatHeaderAppSwitcherEmpty = (typeof KUAT_HEADER_APP_SWITCHER_EMPTY)[number];
|
|
11
|
+
export interface KuatHeaderApp {
|
|
12
|
+
id: string;
|
|
13
|
+
label: string;
|
|
14
|
+
href: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
icon?: Component | VNode;
|
|
17
|
+
}
|
|
18
|
+
export interface KuatHeaderAppSwitcherLabels {
|
|
19
|
+
trigger?: string;
|
|
20
|
+
nav?: string;
|
|
21
|
+
title?: string;
|
|
22
|
+
teaserTitle?: string;
|
|
23
|
+
teaserDescription?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface KuatHeaderAppSwitcherConfig {
|
|
26
|
+
apps: KuatHeaderApp[];
|
|
27
|
+
loading?: boolean;
|
|
28
|
+
empty?: KuatHeaderAppSwitcherEmpty;
|
|
29
|
+
emptyMessage?: string;
|
|
30
|
+
linkTarget?: string;
|
|
31
|
+
labels?: KuatHeaderAppSwitcherLabels;
|
|
32
|
+
onOpen?: () => void;
|
|
33
|
+
onSelect?: (app: KuatHeaderApp) => void;
|
|
34
|
+
}
|
|
35
|
+
export interface KuatHeaderAccountItem {
|
|
36
|
+
label: string;
|
|
37
|
+
href: string;
|
|
38
|
+
icon?: Component | VNode;
|
|
39
|
+
}
|
|
40
|
+
export interface KuatHeaderAccountMobileTier {
|
|
41
|
+
heading: string;
|
|
42
|
+
subtitle?: string;
|
|
43
|
+
items: KuatHeaderAccountItem[];
|
|
44
|
+
}
|
|
45
|
+
export interface KuatHeaderAccountLabels {
|
|
46
|
+
teaserTitle?: string;
|
|
47
|
+
teaserDescription?: string;
|
|
48
|
+
nav?: string;
|
|
49
|
+
title?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface KuatHeaderAccountConfig {
|
|
52
|
+
items: KuatHeaderAccountItem[];
|
|
53
|
+
mobile?: KuatHeaderAccountMobileTier;
|
|
54
|
+
labels?: KuatHeaderAccountLabels;
|
|
55
|
+
}
|
|
56
|
+
export interface KuatHeaderLockupConfig {
|
|
57
|
+
variant: KuatHeaderLockupVariant;
|
|
58
|
+
}
|
|
59
|
+
export interface KuatHeaderSubItem {
|
|
60
|
+
label: string;
|
|
61
|
+
url: string;
|
|
62
|
+
}
|
|
63
|
+
export interface KuatHeaderNavItem extends KuatHeaderSubItem {
|
|
64
|
+
items?: KuatHeaderSubItem[];
|
|
65
|
+
}
|
|
66
|
+
/** @deprecated Use `KuatHeaderAccountItem` with `href`. */
|
|
67
|
+
export interface KuatHeaderActionItem {
|
|
68
|
+
label: string;
|
|
69
|
+
url: string;
|
|
70
|
+
icon?: Component | VNode;
|
|
71
|
+
items?: KuatHeaderSubItem[];
|
|
72
|
+
}
|
|
73
|
+
/** @deprecated Use `KuatHeaderAccountMobileTier` via `account.mobile`. */
|
|
74
|
+
export interface KuatHeaderMobileAccountItem {
|
|
75
|
+
label: string;
|
|
76
|
+
href: string;
|
|
77
|
+
}
|
|
78
|
+
/** @deprecated Use `KuatHeaderAccountMobileTier` via `account.mobile`. */
|
|
79
|
+
export interface KuatHeaderMobileAccount {
|
|
80
|
+
heading: string;
|
|
81
|
+
subtitle?: string;
|
|
82
|
+
items: KuatHeaderMobileAccountItem[];
|
|
83
|
+
}
|
|
@@ -4,8 +4,9 @@ import { KuatHeaderVariant } from './constants';
|
|
|
4
4
|
export { default as KuatHeader } from './KuatHeader.vue';
|
|
5
5
|
export { default as EELogo } from './EELogo.vue';
|
|
6
6
|
export { cn };
|
|
7
|
-
export { KUAT_HEADER_VARIANTS, EE_LOGO_TEXT_COLORS } from './constants';
|
|
8
|
-
export
|
|
7
|
+
export { KUAT_HEADER_VARIANTS, KUAT_HEADER_LOCKUP_VARIANTS, EE_LOGO_TEXT_COLORS, KUAT_HEADER_APP_SWITCHER_EMPTY, } from './constants';
|
|
8
|
+
export { shouldShowAppSwitcher, resolveAppSwitcherLabels, resolveAppSwitcherEmptyMessage, resolveAccountLabels, shouldShowAccountMobileTier, hasStructuredAccount, resolveHeaderLockup, resolveMobileSheetAriaLabel, resolveDesktopAccountMenuItems, shouldUseDesktopAccountDropdown, } from './kuat-header.logic';
|
|
9
|
+
export type { KuatHeaderVariant, KuatHeaderLockupVariant, EELogoTextColor, KuatHeaderApp, KuatHeaderAppSwitcherConfig, KuatHeaderAppSwitcherLabels, KuatHeaderAppSwitcherEmpty, KuatHeaderAccountItem, KuatHeaderAccountConfig, KuatHeaderAccountMobileTier, KuatHeaderAccountLabels, KuatHeaderLockupConfig, KuatHeaderSubItem, KuatHeaderNavItem, KuatHeaderActionItem, KuatHeaderMobileAccount, KuatHeaderMobileAccountItem, } from './constants';
|
|
9
10
|
export type KuatHeaderVariants = {
|
|
10
11
|
variant?: KuatHeaderVariant;
|
|
11
12
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { KuatHeaderAccountConfig, KuatHeaderAppSwitcherConfig, KuatHeaderAppSwitcherLabels, KuatHeaderLockupConfig, KuatHeaderLockupVariant, KuatHeaderSubItem } from './constants';
|
|
2
|
+
|
|
3
|
+
export declare function shouldShowAppSwitcher(config?: KuatHeaderAppSwitcherConfig): boolean;
|
|
4
|
+
export declare function resolveAppSwitcherLabels(config?: KuatHeaderAppSwitcherConfig): Required<KuatHeaderAppSwitcherLabels>;
|
|
5
|
+
export declare function resolveAppSwitcherEmptyMessage(config?: KuatHeaderAppSwitcherConfig): string;
|
|
6
|
+
export declare function shouldShowAccountMobileTier(account?: KuatHeaderAccountConfig): boolean;
|
|
7
|
+
export declare function hasStructuredAccount(account?: KuatHeaderAccountConfig): boolean;
|
|
8
|
+
export declare function resolveDesktopAccountMenuItems(account?: KuatHeaderAccountConfig): KuatHeaderSubItem[];
|
|
9
|
+
export declare function shouldUseDesktopAccountDropdown(account?: KuatHeaderAccountConfig): boolean;
|
|
10
|
+
export declare function resolveAccountLabels(account?: KuatHeaderAccountConfig): {
|
|
11
|
+
teaserTitle: string;
|
|
12
|
+
teaserDescription: string;
|
|
13
|
+
nav: string;
|
|
14
|
+
title: string;
|
|
15
|
+
};
|
|
16
|
+
export type HeaderLockupMode = "hidden" | "custom" | "builtin";
|
|
17
|
+
export declare function resolveHeaderLockup(options: {
|
|
18
|
+
logo?: unknown | null;
|
|
19
|
+
lockup?: KuatHeaderLockupConfig;
|
|
20
|
+
}): {
|
|
21
|
+
mode: HeaderLockupMode;
|
|
22
|
+
lockupVariant: KuatHeaderLockupVariant;
|
|
23
|
+
};
|
|
24
|
+
export declare function resolveMobileSheetAriaLabel(options: {
|
|
25
|
+
mobileMenuAriaLabel?: string;
|
|
26
|
+
showAppSwitcher: boolean;
|
|
27
|
+
hasStructuredNavigation: boolean;
|
|
28
|
+
hasAccountMobileTier: boolean;
|
|
29
|
+
}): string;
|
|
@@ -71,11 +71,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
71
71
|
placeholder: string;
|
|
72
72
|
items: SelectItems;
|
|
73
73
|
position: "item-aligned" | "popper";
|
|
74
|
-
|
|
74
|
+
invalid: boolean;
|
|
75
75
|
prepend: string;
|
|
76
|
+
maxHeight: number | string;
|
|
76
77
|
decoration: string;
|
|
77
78
|
lines: SelectLines;
|
|
78
|
-
invalid: boolean;
|
|
79
79
|
emptyText: string;
|
|
80
80
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
81
81
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
@@ -41,10 +41,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
41
41
|
}>>> & Readonly<{}>, {
|
|
42
42
|
label: string;
|
|
43
43
|
size: SelectSize;
|
|
44
|
+
invalid: boolean;
|
|
44
45
|
prepend: string;
|
|
45
46
|
decoration: string;
|
|
46
47
|
lines: SelectLines;
|
|
47
|
-
invalid: boolean;
|
|
48
48
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
49
49
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
50
50
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import { defineComponent as b, mergeModels as v, useModel as V, useAttrs as S, c
|
|
|
2
2
|
import { c as A } from "./utils-DLUjLwnh.js";
|
|
3
3
|
import { _ as E, c as N, a as k, d as M, b as P } from "./FieldTitle.vue_vue_type_script_setup_true_lang-Bu8UIwRT.js";
|
|
4
4
|
import { SwitchRoot as D, SwitchThumb as F } from "reka-ui";
|
|
5
|
-
import { r as L } from "./index-
|
|
5
|
+
import { r as L } from "./index-OELvcT-N.js";
|
|
6
6
|
const U = /* @__PURE__ */ b({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "Switch",
|
|
@@ -3,7 +3,7 @@ import { c as A } from "./utils-DLUjLwnh.js";
|
|
|
3
3
|
import { _ as T, c as M, a as N, d as O, b as P } from "./FieldTitle.vue_vue_type_script_setup_true_lang-Bu8UIwRT.js";
|
|
4
4
|
import { CheckboxRoot as D, CheckboxIndicator as F } from "reka-ui";
|
|
5
5
|
import { Check as L, Minus as U } from "lucide-vue-next";
|
|
6
|
-
import { r as q } from "./index-
|
|
6
|
+
import { r as q } from "./index-OELvcT-N.js";
|
|
7
7
|
const w = /* @__PURE__ */ k({
|
|
8
8
|
inheritAttrs: !1,
|
|
9
9
|
__name: "Checkbox",
|
|
@@ -2,7 +2,7 @@ import { defineComponent as m, createBlock as u, openBlock as p, unref as a, mer
|
|
|
2
2
|
import { useForwardPropsEmits as x, RadioGroupRoot as E, RadioGroupItem as T, RadioGroupIndicator as w } from "reka-ui";
|
|
3
3
|
import { c as y } from "./utils-DLUjLwnh.js";
|
|
4
4
|
import { _ as D, c as G, a as N, d as P, b as S } from "./FieldTitle.vue_vue_type_script_setup_true_lang-Bu8UIwRT.js";
|
|
5
|
-
import { r as k } from "./index-
|
|
5
|
+
import { r as k } from "./index-OELvcT-N.js";
|
|
6
6
|
const j = /* @__PURE__ */ m({
|
|
7
7
|
__name: "RadioGroup",
|
|
8
8
|
props: {
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { cn } from './lib/utils';
|
|
2
|
+
export { IconButton, iconButtonVariants, ICON_BUTTON_SIZES, ICON_BUTTON_ROUNDNESS, ICON_BUTTON_VARIANT_DEFAULT_ALIAS, ICON_BUTTON_SIZE_SM_ALIAS, ICON_BUTTON_SIZE_LG_ALIAS, } from './components/ui/icon-button';
|
|
3
|
+
export type { IconButtonVariants, IconButtonSize, IconButtonRoundness, } from './components/ui/icon-button';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { c as N } from "./utils-DLUjLwnh.js";
|
|
2
|
+
import { a, I as O, d as S, c as s, b as A, _ as o, i as t } from "./index-lZY__1xm.js";
|
|
3
|
+
export {
|
|
4
|
+
a as ICON_BUTTON_ROUNDNESS,
|
|
5
|
+
O as ICON_BUTTON_SIZES,
|
|
6
|
+
S as ICON_BUTTON_SIZE_LG_ALIAS,
|
|
7
|
+
s as ICON_BUTTON_SIZE_SM_ALIAS,
|
|
8
|
+
A as ICON_BUTTON_VARIANT_DEFAULT_ALIAS,
|
|
9
|
+
o as IconButton,
|
|
10
|
+
N as cn,
|
|
11
|
+
t as iconButtonVariants
|
|
12
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { computed as s, watch as l, isRef as i, reactive as u, unref as f, toRefs as a, toValue as d } from "vue";
|
|
2
|
+
const v = typeof window < "u" && typeof document < "u";
|
|
3
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4
|
+
const p = Object.prototype.toString, w = (e) => p.call(e) === "[object Object]", g = () => {
|
|
5
|
+
};
|
|
6
|
+
function b(e) {
|
|
7
|
+
return Array.isArray(e) ? e : [e];
|
|
8
|
+
}
|
|
9
|
+
function y(e) {
|
|
10
|
+
return i(e) ? u(new Proxy({}, {
|
|
11
|
+
get(n, t, r) {
|
|
12
|
+
return f(Reflect.get(e.value, t, r));
|
|
13
|
+
},
|
|
14
|
+
set(n, t, r) {
|
|
15
|
+
return i(e.value[t]) && !i(r) ? e.value[t].value = r : e.value[t] = r, !0;
|
|
16
|
+
},
|
|
17
|
+
deleteProperty(n, t) {
|
|
18
|
+
return Reflect.deleteProperty(e.value, t);
|
|
19
|
+
},
|
|
20
|
+
has(n, t) {
|
|
21
|
+
return Reflect.has(e.value, t);
|
|
22
|
+
},
|
|
23
|
+
ownKeys() {
|
|
24
|
+
return Object.keys(e.value);
|
|
25
|
+
},
|
|
26
|
+
getOwnPropertyDescriptor() {
|
|
27
|
+
return {
|
|
28
|
+
enumerable: !0,
|
|
29
|
+
configurable: !0
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
})) : u(e);
|
|
33
|
+
}
|
|
34
|
+
function m(e) {
|
|
35
|
+
return y(s(e));
|
|
36
|
+
}
|
|
37
|
+
function h(e, ...n) {
|
|
38
|
+
const t = n.flat(), r = t[0];
|
|
39
|
+
return m(() => Object.fromEntries(typeof r == "function" ? Object.entries(a(e)).filter(([o, c]) => !r(d(c), o)) : Object.entries(a(e)).filter((o) => !t.includes(o[0]))));
|
|
40
|
+
}
|
|
41
|
+
function P(e, n, t) {
|
|
42
|
+
return l(e, n, {
|
|
43
|
+
...t,
|
|
44
|
+
immediate: !0
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
w as a,
|
|
49
|
+
v as i,
|
|
50
|
+
g as n,
|
|
51
|
+
h as r,
|
|
52
|
+
b as t,
|
|
53
|
+
P as w
|
|
54
|
+
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as s, createElementBlock as f, openBlock as n, normaliz
|
|
|
2
2
|
import { c as r } from "./utils-DLUjLwnh.js";
|
|
3
3
|
import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import { Separator as B, Primitive as v } from "reka-ui";
|
|
5
|
-
import { r as _ } from "./index-
|
|
5
|
+
import { r as _ } from "./index-OELvcT-N.js";
|
|
6
6
|
const g = ["data-orientation"], b = /* @__PURE__ */ s({
|
|
7
7
|
__name: "ButtonGroup",
|
|
8
8
|
props: {
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { defineComponent as f, computed as n, createBlock as m, openBlock as v, unref as i, normalizeClass as b, withCtx as _, renderSlot as I } from "vue";
|
|
2
|
+
import { Primitive as N } from "reka-ui";
|
|
3
|
+
import { c as o } from "./utils-DLUjLwnh.js";
|
|
4
|
+
const O = /* @__PURE__ */ f({
|
|
5
|
+
__name: "IconButton",
|
|
6
|
+
props: {
|
|
7
|
+
variant: { default: "primary" },
|
|
8
|
+
size: { default: "regular" },
|
|
9
|
+
color: { default: "ee-blue" },
|
|
10
|
+
roundness: { default: "default" },
|
|
11
|
+
type: { default: "button" },
|
|
12
|
+
class: {},
|
|
13
|
+
asChild: { type: Boolean },
|
|
14
|
+
as: { default: "button" }
|
|
15
|
+
},
|
|
16
|
+
setup(t) {
|
|
17
|
+
const e = t;
|
|
18
|
+
function u(r) {
|
|
19
|
+
return r === "default" ? "primary" : r ?? "primary";
|
|
20
|
+
}
|
|
21
|
+
function l(r) {
|
|
22
|
+
return r === "sm" ? "small" : r === "lg" ? "large" : r ?? "regular";
|
|
23
|
+
}
|
|
24
|
+
const a = n(() => u(e.variant)), s = n(() => l(e.size)), c = n(() => a.value === "destructive"), d = n(() => {
|
|
25
|
+
if (!e.asChild && e.as === "button")
|
|
26
|
+
return e.type;
|
|
27
|
+
});
|
|
28
|
+
return (r, y) => (v(), m(i(N), {
|
|
29
|
+
as: t.as,
|
|
30
|
+
"as-child": t.asChild,
|
|
31
|
+
type: d.value,
|
|
32
|
+
class: b(
|
|
33
|
+
i(o)(
|
|
34
|
+
"button",
|
|
35
|
+
"icon-button",
|
|
36
|
+
`button--variant-${a.value}`,
|
|
37
|
+
c.value ? [] : `button--color-${t.color}`,
|
|
38
|
+
`icon-button--size-${s.value}`,
|
|
39
|
+
`icon-button--roundness-${t.roundness}`,
|
|
40
|
+
e.class
|
|
41
|
+
)
|
|
42
|
+
)
|
|
43
|
+
}, {
|
|
44
|
+
default: _(() => [
|
|
45
|
+
I(r.$slots, "default")
|
|
46
|
+
]),
|
|
47
|
+
_: 3
|
|
48
|
+
}, 8, ["as", "as-child", "type", "class"]));
|
|
49
|
+
}
|
|
50
|
+
}), B = "default", A = ["mini", "small", "regular", "large"], $ = "sm", h = "lg", U = ["default", "round"];
|
|
51
|
+
function S(t) {
|
|
52
|
+
return t === "default" ? "primary" : t ?? "primary";
|
|
53
|
+
}
|
|
54
|
+
function T(t) {
|
|
55
|
+
return t === "sm" ? "small" : t === "lg" ? "large" : t ?? "regular";
|
|
56
|
+
}
|
|
57
|
+
function D(t) {
|
|
58
|
+
const e = S((t == null ? void 0 : t.variant) ?? "primary"), u = T((t == null ? void 0 : t.size) ?? "regular"), l = (t == null ? void 0 : t.color) ?? "ee-blue", a = (t == null ? void 0 : t.roundness) ?? "default", c = e === "destructive" ? "" : `button--color-${l}`;
|
|
59
|
+
return o(
|
|
60
|
+
"button",
|
|
61
|
+
"icon-button",
|
|
62
|
+
`button--variant-${e}`,
|
|
63
|
+
c,
|
|
64
|
+
`icon-button--size-${u}`,
|
|
65
|
+
`icon-button--roundness-${a}`
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
A as I,
|
|
70
|
+
O as _,
|
|
71
|
+
U as a,
|
|
72
|
+
B as b,
|
|
73
|
+
$ as c,
|
|
74
|
+
h as d,
|
|
75
|
+
D as i
|
|
76
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,10 @@ export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants
|
|
|
4
4
|
export type { ButtonGroupVariants } from './components/ui/button-group';
|
|
5
5
|
export { ContentCard } from './components/ui/content-card';
|
|
6
6
|
export { KuatHeader, kuatHeaderVariants, EELogo } from './components/ui/kuat-header';
|
|
7
|
-
export type { KuatHeaderVariants } from './components/ui/kuat-header';
|
|
7
|
+
export type { KuatHeaderVariants, KuatHeaderVariant, KuatHeaderLockupVariant, KuatHeaderApp, KuatHeaderAppSwitcherConfig, KuatHeaderAccountConfig, KuatHeaderAccountItem, KuatHeaderNavItem, KuatHeaderLockupConfig, KuatHeaderMobileAccount, KuatHeaderMobileAccountItem, } from './components/ui/kuat-header';
|
|
8
|
+
export { shouldShowAppSwitcher, resolveAppSwitcherLabels, resolveHeaderLockup, } from './components/ui/kuat-header';
|
|
9
|
+
export { IconButton, iconButtonVariants, ICON_BUTTON_SIZES, ICON_BUTTON_ROUNDNESS, ICON_BUTTON_VARIANT_DEFAULT_ALIAS, ICON_BUTTON_SIZE_SM_ALIAS, ICON_BUTTON_SIZE_LG_ALIAS, } from './components/ui/icon-button';
|
|
10
|
+
export type { IconButtonVariants, IconButtonSize, IconButtonRoundness, } from './components/ui/icon-button';
|
|
8
11
|
export { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, } from './components/ui/carousel';
|
|
9
12
|
export type { CarouselItemBasis, CarouselResponsiveBasis, CarouselOrientation, CarouselApi, CarouselEventHandler, CarouselEventHandlers, } from './components/ui/carousel';
|
|
10
13
|
export { KuatCarousel, KuatCarouselContent, KuatCarouselItem, KuatCarouselPrevious, KuatCarouselNext, } from './components/ui/kuat-carousel';
|