@codeandfunction/callaloo 3.16.7 → 3.16.9
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/chunks/{CLA11yButton.vue_vue_type_style_index_0_lang-Drw6jsX_.js → CLA11yButton.vue_vue_type_style_index_0_lang-Cl1pOJvL.js} +2 -2
- package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-CQipGQ26.js → CLButton.vue_vue_type_style_index_0_lang-BiyeNLFr.js} +3 -3
- package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-CAjsSjd9.js → CLCard.vue_vue_type_style_index_0_lang-B7_6uqSs.js} +3 -3
- package/dist/chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-CJ4VrvmR.js +1 -1
- package/dist/chunks/CLHeading.vue_vue_type_style_index_0_lang-nUnSpm32.js +1 -1
- package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js +1 -1
- package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-CtXwFFjZ.js +148 -0
- package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-DCwTmOOz.js +1 -1
- package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-B1MuCUnW.js → CLPill.vue_vue_type_style_index_0_lang-BsGpHn52.js} +3 -3
- package/dist/chunks/{CLProgress.vue_vue_type_style_index_0_lang-DVJDbuDr.js → CLProgress.vue_vue_type_style_index_0_lang-Cqdkf70C.js} +2 -2
- package/dist/chunks/{CLSkeleton.vue_vue_type_style_index_0_lang--LtiFHSO.js → CLSkeleton.vue_vue_type_style_index_0_lang-DT23xe5d.js} +2 -2
- package/dist/chunks/{CLSpinner.vue_vue_type_style_index_0_lang-BQ1w9Ik9.js → CLSpinner.vue_vue_type_style_index_0_lang-DU0dl3yu.js} +2 -2
- package/dist/chunks/CLText.vue_vue_type_style_index_0_lang-BJoS9z9q.js +1 -1
- package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-BNlgk9Fz.js +182 -0
- package/dist/chunks/utils-B_-25pfO.js +85 -0
- package/dist/chunks/utils-BipQQo6V.js +41 -0
- package/dist/chunks/utils-DmkkE-9U.js +24 -0
- package/dist/chunks/utils-DxdFsNHx.js +37 -0
- package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +1 -1
- package/dist/components/Buttons/CLButton/CLButton.css +1 -1
- package/dist/components/Buttons/CLButton/CLButton.js +1 -1
- package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +1 -1
- package/dist/components/Buttons/utils.d.ts +2 -2
- package/dist/components/CLTable/CLTable.js +58 -58
- package/dist/components/CLTable/utils.d.ts +1 -1
- package/dist/components/Containers/CLCard/CLCard.css +1 -1
- package/dist/components/Containers/CLCard/CLCard.js +1 -1
- package/dist/components/Containers/CLCarousel/CLCarousel.js +2 -2
- package/dist/components/Containers/CLDisclosure/CLDisclosure.css +1 -1
- package/dist/components/Containers/CLDisclosure/CLDisclosure.js +23 -23
- package/dist/components/Containers/CLDisclosure/CLDisclosure.vue.d.ts +0 -1
- package/dist/components/Containers/utils.d.ts +2 -2
- package/dist/components/Form/CLCheckbox/CLCheckbox.js +25 -25
- package/dist/components/Form/CLCheckbox/CLCheckbox.vue.d.ts +1 -1
- package/dist/components/Form/CLInput/CLInput.css +1 -1
- package/dist/components/Form/CLInput/CLInput.js +50 -50
- package/dist/components/Form/CLInput/CLInput.vue.d.ts +2 -2
- package/dist/components/Form/CLInput/CLInputPrefix.vue.d.ts +1 -1
- package/dist/components/Form/CLInput/CLInputSuffix.vue.d.ts +1 -1
- package/dist/components/Form/CLRadioButton/CLRadioButton.js +21 -21
- package/dist/components/Form/CLSelect/CLSelect.js +18 -18
- package/dist/components/Form/CLTextArea/CLTextArea.js +13 -13
- package/dist/components/Form/utils.d.ts +6 -6
- package/dist/components/Indicators/CLBadge/CLBadge.js +2 -2
- package/dist/components/Indicators/CLBanner/CLBanner.js +5 -5
- package/dist/components/Indicators/CLPill/CLPill.js +1 -1
- package/dist/components/Indicators/CLProgress/CLProgress.js +1 -1
- package/dist/components/Indicators/utils.d.ts +3 -3
- package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -1
- package/dist/components/Loading/CLSpinner/CLSpinner.js +1 -1
- package/dist/components/Loading/utils.d.ts +1 -1
- package/dist/components/Modals/CLModal/CLModal.js +38 -38
- package/dist/components/Modals/CLModal/CLModal.vue.d.ts +1 -1
- package/dist/components/Modals/utils.d.ts +1 -1
- package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -1
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +3 -3
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +3 -3
- package/dist/components/Popups/CLToast/CLToast.js +1 -1
- package/dist/components/Popups/utils.d.ts +1 -1
- package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +19 -19
- package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
- package/dist/index.js +0 -1
- package/package.json +2 -1
- package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-Bt5xgOT4.js +0 -153
- package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-Bhat3Q9Z.js +0 -182
- package/dist/chunks/utils-CAV1sBee.js +0 -24
- package/dist/chunks/utils-Sqgt8Fa4.js +0 -85
- package/dist/chunks/utils-cOhtsyeB.js +0 -41
- package/dist/chunks/utils-zJwcNHl4.js +0 -37
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLDropdownMenu.css';
|
|
3
3
|
import { computed as V, ref as E, shallowRef as te, watch as ut, getCurrentScope as ee, onScopeDispose as ne, shallowReadonly as q, unref as A, defineComponent as oe, onBeforeUnmount as ie, createElementBlock as Rt, openBlock as At, normalizeClass as dt, createVNode as Ot, createCommentVNode as re, withCtx as Et, createTextVNode as le, toDisplayString as se, normalizeStyle as ce, renderSlot as ae } from "vue";
|
|
4
|
-
import { _ as fe } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { _ as ue } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { _ as fe } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-BiyeNLFr.js";
|
|
5
|
+
import { _ as ue } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-B7_6uqSs.js";
|
|
6
6
|
import { b as de, i as mt } from "../../../chunks/helper--hRjZVm6.js";
|
|
7
7
|
import { useDropdown as me } from "../../../composables/useDropdown.js";
|
|
8
8
|
import { useEsc as he } from "../../../composables/useEsc.js";
|
|
9
9
|
import { CLPlacement as ge, CLIconSizes as Lt, CLIconNames as pe, CLColorVariants as Dt, CLSizes as we, CLColors as Tt } from "../../../index.js";
|
|
10
|
-
const tt = Math.min, W = Math.max, et = Math.round, Q = Math.floor, B = (t) => ({
|
|
10
|
+
import '../../../CLDropdownMenu.css';const tt = Math.min, W = Math.max, et = Math.round, Q = Math.floor, B = (t) => ({
|
|
11
11
|
x: t,
|
|
12
12
|
y: t
|
|
13
13
|
}), ye = {
|
|
@@ -119,7 +119,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
|
|
|
119
119
|
title: string;
|
|
120
120
|
color: CLColors;
|
|
121
121
|
variant: CLColorVariants;
|
|
122
|
-
borderRadius: CLBorderRadius;
|
|
123
122
|
rounded: boolean;
|
|
124
123
|
testId: string;
|
|
125
124
|
type: import('../../../types').CLButtonTypes;
|
|
@@ -134,6 +133,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
|
|
|
134
133
|
alignContent: import('../../../types').CLAlign;
|
|
135
134
|
ariaLabel: string;
|
|
136
135
|
as: import('../../../types').CLButtonTags;
|
|
136
|
+
borderRadius: CLBorderRadius;
|
|
137
137
|
busy: boolean;
|
|
138
138
|
disabled: boolean;
|
|
139
139
|
elevated: boolean;
|
|
@@ -168,7 +168,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
|
|
|
168
168
|
title: string;
|
|
169
169
|
color: CLColors;
|
|
170
170
|
variant: CLColorVariants;
|
|
171
|
-
borderRadius: CLBorderRadius;
|
|
172
171
|
rounded: boolean;
|
|
173
172
|
testId: string;
|
|
174
173
|
type: import('../../../types').CLButtonTypes;
|
|
@@ -183,6 +182,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
|
|
|
183
182
|
alignContent: import('../../../types').CLAlign;
|
|
184
183
|
ariaLabel: string;
|
|
185
184
|
as: import('../../../types').CLButtonTags;
|
|
185
|
+
borderRadius: CLBorderRadius;
|
|
186
186
|
busy: boolean;
|
|
187
187
|
disabled: boolean;
|
|
188
188
|
elevated: boolean;
|
|
@@ -193,7 +193,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
|
|
|
193
193
|
iconSize: CLIconSizes;
|
|
194
194
|
pill: boolean;
|
|
195
195
|
wrap: boolean;
|
|
196
|
-
}> & Omit<Readonly<import('../../Buttons/CLButton/CLButton.vue').CLButtonProps> & Readonly<{}>, "title" | "color" | "variant" | "
|
|
196
|
+
}> & Omit<Readonly<import('../../Buttons/CLButton/CLButton.vue').CLButtonProps> & Readonly<{}>, "title" | "color" | "variant" | "rounded" | "testId" | "type" | "form" | "onClick" | "target" | "width" | "height" | "size" | "href" | "active" | "alignContent" | "ariaLabel" | "as" | "borderRadius" | "busy" | "disabled" | "elevated" | "forwardRef" | "iconAfter" | "iconBefore" | "iconAfterSize" | "iconSize" | "pill" | "wrap"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
197
197
|
$slots: {
|
|
198
198
|
default?(_: {}): any;
|
|
199
199
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLToast.css';
|
|
3
|
-
import { _ as s } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as s } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-BNlgk9Fz.js";
|
|
4
4
|
export {
|
|
5
5
|
s as CLToast,
|
|
6
6
|
s as default
|
|
@@ -9,6 +9,6 @@ export declare const toastTheme: ({ color, variant }: ThemeProps) => {
|
|
|
9
9
|
'--clll-toast-icon-bg': string;
|
|
10
10
|
'--clll-toast-icon-color': string;
|
|
11
11
|
'--clll-toast-timer-bg': string;
|
|
12
|
-
'--clll-toast-theme-radius': string
|
|
12
|
+
'--clll-toast-theme-radius': string;
|
|
13
13
|
};
|
|
14
14
|
export {};
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
|
-
import { defineComponent as i, watch as
|
|
3
|
-
import { s as c, a as h, b as
|
|
2
|
+
import { defineComponent as i, watch as a, createBlock as l, openBlock as r, resolveDynamicComponent as n, normalizeStyle as s, unref as m, withCtx as d, renderSlot as f } from "vue";
|
|
3
|
+
import { s as c, a as h, b as u, c as C, d as g, D as y } from "../../../chunks/base-theme-Bg6XMoeN.js";
|
|
4
4
|
const T = /* @__PURE__ */ i({
|
|
5
5
|
__name: "CLThemeProvider",
|
|
6
6
|
props: {
|
|
7
7
|
tag: { default: "div" },
|
|
8
8
|
themeConfig: {}
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
return c(
|
|
13
|
-
() =>
|
|
10
|
+
setup(t) {
|
|
11
|
+
const o = t;
|
|
12
|
+
return c(o.themeConfig), a(
|
|
13
|
+
() => o.themeConfig?.borderRadius,
|
|
14
14
|
(e) => {
|
|
15
15
|
h(e);
|
|
16
16
|
}
|
|
17
|
-
),
|
|
18
|
-
() =>
|
|
17
|
+
), a(
|
|
18
|
+
() => o.themeConfig?.colors,
|
|
19
19
|
(e) => {
|
|
20
|
-
e &&
|
|
20
|
+
e && u(e);
|
|
21
21
|
}
|
|
22
|
-
),
|
|
23
|
-
() =>
|
|
22
|
+
), a(
|
|
23
|
+
() => o.themeConfig?.darkMode,
|
|
24
24
|
(e) => {
|
|
25
|
-
e !== void 0 &&
|
|
25
|
+
e !== void 0 && C(e);
|
|
26
26
|
}
|
|
27
|
-
),
|
|
28
|
-
() =>
|
|
27
|
+
), a(
|
|
28
|
+
() => o.themeConfig?.fontFamily,
|
|
29
29
|
(e) => {
|
|
30
30
|
g(e);
|
|
31
31
|
}
|
|
32
|
-
), (e,
|
|
32
|
+
), (e, v) => (r(), l(n(t.tag), {
|
|
33
33
|
class: "clll-theme-provider",
|
|
34
|
-
style:
|
|
34
|
+
style: s({ "--clll-font-family": t.themeConfig?.fontFamily || m(y).fontFamily, "--clll-default-radius": t.themeConfig?.borderRadius ? `var(--clll-${t.themeConfig.borderRadius})` : void 0 })
|
|
35
35
|
}, {
|
|
36
|
-
default:
|
|
37
|
-
|
|
36
|
+
default: d(() => [
|
|
37
|
+
f(e.$slots, "default")
|
|
38
38
|
]),
|
|
39
39
|
_: 3
|
|
40
40
|
}, 8, ["style"]));
|
|
@@ -42,6 +42,6 @@ const T = /* @__PURE__ */ i({
|
|
|
42
42
|
});
|
|
43
43
|
export {
|
|
44
44
|
T as CLThemeProvider,
|
|
45
|
-
|
|
45
|
+
y as DEFAULT_THEME,
|
|
46
46
|
T as default
|
|
47
47
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import { defineComponent as L, ref as i, provide as g, createElementBlock as k, openBlock as p, createBlock as z, createCommentVNode as B, renderSlot as S, unref as A } from "vue";
|
|
3
|
-
import { _ as $ } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as $ } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-BNlgk9Fz.js";
|
|
4
4
|
const x = { class: "clll-toast-provider" }, N = /* @__PURE__ */ L({
|
|
5
5
|
name: "CLToastProvider",
|
|
6
6
|
__name: "CLToastProvider",
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import './assets/core.css';
|
|
2
1
|
var t = /* @__PURE__ */ ((r) => (r.Left = "left", r.Center = "center", r.Right = "right", r))(t || {}), l = /* @__PURE__ */ ((r) => (r.Full = "rounded-full", r.Large = "rounded-lg", r.Medium = "rounded-md", r.None = "rounded-none", r.Small = "rounded-sm", r.XL = "rounded-xl", r.XXL = "rounded-2xl", r.XXXL = "rounded-3xl", r.XS = "rounded-xs", r))(l || {}), e = /* @__PURE__ */ ((r) => (r.Button = "button", r.Submit = "submit", r))(e || {}), b = /* @__PURE__ */ ((r) => (r.Tiny = "tiny", r.Small = "small", r.Medium = "medium", r.Large = "large", r.XL = "xlarge", r))(b || {}), a = /* @__PURE__ */ ((r) => (r.Primary = "primary", r.Secondary = "secondary", r.Danger = "danger", r.Info = "info", r.Neutral = "neutral", r.Warning = "warning", r.Success = "success", r))(a || {}), i = /* @__PURE__ */ ((r) => (r.Contrast = "contrast", r.Ghost = "ghost", r.Outline = "outline", r.Soft = "soft", r.Solid = "solid", r.Text = "text", r))(i || {}), d = /* @__PURE__ */ ((r) => (r.Block = "block", r.Inline = "inline", r))(d || {}), u = /* @__PURE__ */ ((r) => (r.H1 = "h1", r.H2 = "h2", r.H3 = "h3", r.H4 = "h4", r.H5 = "h5", r.H6 = "h6", r))(u || {}), g = /* @__PURE__ */ ((r) => (r.Title = "title", r.PageTitle = "pagetitle", r.Section = "section", r.SubSection = "subsection", r.Small = "small", r.Medium = "medium", r.Large = "large", r.XL = "xlarge", r))(g || {}), h = /* @__PURE__ */ ((r) => (r.Tiny = "tiny", r.Small = "small", r.Medium = "medium", r.Large = "large", r.XL = "xlarge", r.XXL = "xxlarge", r.XXXL = "xxxlarge", r.XXXXL = "xxxxlarge", r))(h || {}), o = /* @__PURE__ */ ((r) => (r.Activity = "tabler:activity", r.Adjustments = "tabler:adjustments", r.AdjustmentsHorizontal = "tabler:adjustments-horizontal", r.Ai = "tabler:ai", r.Alarm = "tabler:alarm", r.AlarmPlus = "tabler:alarm-plus", r.AlertSquare = "tabler:alert-square", r.AlertTriangle = "tabler:alert-triangle", r.AlignBoxLeftTop = "tabler:align-box-left-top", r.AlignBoxLeftMiddle = "tabler:align-box-left-middle", r.AlignBoxLeftBottom = "tabler:align-box-left-bottom", r.AlignBoxCenterTop = "tabler:align-box-center-top", r.AlignBoxCenterMiddle = "tabler:align-box-center-middle", r.AlignBoxCenterBottom = "tabler:align-box-center-bottom", r.AlignBoxRightTop = "tabler:align-box-right-top", r.AlignBoxRightMiddle = "tabler:align-box-right-middle", r.AlignBoxRightBottom = "tabler:align-box-right-bottom", r.AlignCenter = "tabler:align-center", r.AlignLeft = "tabler:align-left", r.AlignRight = "tabler:align-right", r.AlignJustified = "tabler:align-justified", r.Apps = "tabler:apps", r.Archive = "tabler:archive", r.ArrowBackUp = "tabler:arrow-back-up", r.ArrowForwardUp = "tabler:arrow-forward-up", r.ArrowsMove = "tabler:arrows-move", r.ArrowBigUpLine = "tabler:arrow-big-up-line", r.ArrowBigDownLine = "tabler:arrow-big-down-line", r.ArrowBack = "tabler:arrow-back", r.ArrowDown = "tabler:arrow-down", r.ArrowForward = "tabler:arrow-forward", r.ArrowLeft = "tabler:arrow-left", r.ArrowRight = "tabler:arrow-right", r.ArrowUp = "tabler:arrow-up", r.ArrowNarrowDown = "tabler:arrow-narrow-down", r.ArrowNarrowLeft = "tabler:arrow-narrow-left", r.ArrowNarrowRight = "tabler:arrow-narrow-right", r.ArrowNarrowUp = "tabler:arrow-narrow-up", r.ArrowsDiagonal = "tabler:arrows-diagonal", r.ArrowsMaximize = "tabler:arrows-maximize", r.ArrowsMinimize = "tabler:arrows-minimize", r.ArrowsSort = "tabler:arrows-sort", r.AtSign = "tabler:at", r.Auth2fa = "tabler:auth-2fa", r.Backspace = "tabler:backspace", r.Bed = "tabler:bed", r.Bell = "tabler:bell", r.BellPlus = "tabler:bell-plus", r.Beach = "tabler:beach", r.Binoculars = "tabler:binoculars", r.Bike = "tabler:bike", r.Book = "tabler:book", r.Bookmark = "tabler:bookmark", r.BorderCorners = "tabler:border-corners", r.BoxMargin = "tabler:box-margin", r.Brush = "tabler:brush", r.BrandApple = "tabler:brand-apple", r.BrandAws = "tabler:brand-aws", r.BrandCloudflare = "tabler:brand-cloudflare", r.BrandFacebook = "tabler:brand-facebook-filled", r.BrandGitlab = "tabler:brand-gitlab", r.BrandGithub = "tabler:brand-github", r.BrandGoogle = "tabler:brand-google-filled", r.BrandInstagram = "tabler:brand-instagram", r.BrandLinkedIn = "tabler:brand-linkedin", r.BrandMastercard = "tabler:brand-mastercard", r.BrandNpm = "tabler:brand-npm", r.BrandNuxt = "tabler:brand-nuxt", r.BrandReact = "tabler:brand-react", r.BrandReactNative = "tabler:brand-react-native", r.BrandSpotify = "tabler:brand-spotify", r.BrandTidal = "tabler:brand-tidal", r.BrandTikTok = "tabler:brand-tiktok", r.BrandTwitter = "tabler:brand-twitter-filled", r.BrandVercel = "tabler:brand-vercel", r.BrandVisa = "tabler:brand-visa", r.BrandVue = "tabler:brand-vue", r.BrandWhatsApp = "tabler:brand-whatsapp", r.BrandX = "tabler:brand-x", r.BrandYouTube = "tabler:brand-youtube-filled", r.BrandWindows = "tabler:brand-windows", r.Briefcase = "tabler:briefcase", r.Briefcase2 = "tabler:briefcase-2", r.Broadcast = "tabler:broadcast", r.Browser = "tabler:browser", r.Building = "tabler:building", r.BuildingAirport = "tabler:building-airport", r.BuildingBank = "tabler:building-bank", r.BuildingCastle = "tabler:building-castle", r.BuildingCarousel = "tabler:building-carousel", r.BuildingChurch = "tabler:building-church", r.BuildingCommunity = "tabler:building-community", r.BuildingCottage = "tabler:building-cottage", r.BuildingStadium = "tabler:building-stadium", r.BuildingStore = "tabler:building-store", r.BuildingSkyscraper = "tabler:building-skyscraper", r.Bug = "tabler:bug", r.Bulb = "tabler:bulb", r.Bus = "tabler:bus", r.BusinessPlan = "tabler:businessplan", r.Calendar = "tabler:calendar", r.CalendarPlus = "tabler:calendar-plus", r.Calculator = "tabler:calculator", r.Camera = "tabler:camera", r.Camper = "tabler:camper", r.Car = "tabler:car", r.CaretDown = "tabler:caret-down", r.CaretLeft = "tabler:caret-left", r.CaretRight = "tabler:caret-right", r.CaretUp = "tabler:caret-up", r.CarouselHorizontal = "tabler:carousel-horizontal", r.ChartBar = "tabler:chart-bar", r.ChartPie = "tabler:chart-pie", r.Check = "tabler:check", r.ChefHat = "tabler:chef-hat", r.ChevronLeft = "tabler:chevron-left", r.ChevronsLeft = "tabler:chevrons-left", r.ChevronRight = "tabler:chevron-right", r.ChevronsRight = "tabler:chevrons-right", r.ChevronUp = "tabler:chevron-up", r.ChevronsUp = "tabler:chevrons-up", r.ChevronDown = "tabler:chevron-down", r.ChevronsDown = "tabler:chevrons-down", r.Circle = "tabler:circle", r.CircleCheck = "tabler:circle-check", r.CircleDot = "tabler:circle-dot", r.CircleMinus = "tabler:circle-minus", r.CircleNumber0 = "tabler:circle-number-0", r.CircleNumber1 = "tabler:circle-number-1", r.CircleNumber2 = "tabler:circle-number-2", r.CircleNumber3 = "tabler:circle-number-3", r.CircleNumber4 = "tabler:circle-number-4", r.CircleNumber5 = "tabler:circle-number-5", r.CircleNumber6 = "tabler:circle-number-6", r.CircleNumber7 = "tabler:circle-number-7", r.CircleNumber8 = "tabler:circle-number-8", r.CircleNumber9 = "tabler:circle-number-9", r.CirclePlus = "tabler:circle-plus", r.Click = "tabler:click", r.ClipboardCopy = "tabler:clipboard-copy", r.ClipboardText = "tabler:clipboard-text", r.Clock = "tabler:clock", r.Clock2 = "tabler:clock-2", r.Cloud = "tabler:cloud", r.CloudCheck = "tabler:cloud-check", r.CloudComputing = "tabler:cloud-computing", r.CloudDataConnection = "tabler:cloud-data-connection", r.CloudDown = "tabler:cloud-down", r.CloudDownload = "tabler:cloud-download", r.CloudUp = "tabler:cloud-up", r.CloudUpload = "tabler:cloud-upload", r.CloudX = "tabler:cloud-x", r.Code = "tabler:code", r.Coin = "tabler:coin", r.Coins = "tabler:coins", r.Columns1 = "tabler:columns-1", r.Columns2 = "tabler:columns-2", r.Columns3 = "tabler:columns-3", r.Command = "tabler:command", r.Components = "tabler:components", r.Confetti = "tabler:confetti", r.Contrast = "tabler:contrast", r.Copy = "tabler:copy", r.CreditCard = "tabler:credit-card", r.Dashboard = "tabler:dashboard", r.Database = "tabler:database", r.DatabaseExport = "tabler:database-export", r.Delete = "tabler:x", r.Devices = "tabler:devices", r.DevicesDollar = "tabler:devices-dollar", r.DeviceDesktop = "tabler:device-desktop", r.DeviceGamepad = "tabler:device-gamepad", r.DeviceMobile = "tabler:device-mobile", r.DeviceTablet = "tabler:device-tablet", r.DeviceTv = "tabler:device-tv", r.Dialpad = "tabler:dialpad", r.DirectionSign = "tabler:direction-sign", r.Download = "tabler:download", r.DragDrop = "tabler:drag-drop", r.EditItem = "tabler:edit-circle", r.EditPencil = "tabler:edit", r.Email = "tabler:mail", r.Equal = "tabler:equal", r.ExternalLink = "tabler:external-link", r.Eye = "tabler:eye", r.EyeOff = "tabler:eye-off", r.Error404 = "tabler:error-404", r.FaceId = "tabler:face-id", r.FileText = "tabler:file-text", r.FileTypeCss = "tabler:file-type-css", r.FileTypeCsv = "tabler:file-type-csv", r.FileTypeHtml = "tabler:file-type-html", r.FileTypePng = "tabler:file-type-png", r.FileTypeJpg = "tabler:file-type-jpg", r.FileTypeJs = "tabler:file-type-js", r.FileTypeJsx = "tabler:file-type-jsx", r.FileTypeSvg = "tabler:file-type-svg", r.FileTypeTs = "tabler:file-type-ts", r.FileTypeVue = "tabler:file-type-vue", r.Filter = "tabler:filter", r.Flag = "tabler:flag", r.Flag2 = "tabler:flag-2", r.Flag3 = "tabler:flag-3", r.Flame = "tabler:flame", r.Folder = "tabler:folder", r.Forms = "tabler:forms", r.Frame = "tabler:frame", r.Gps = "tabler:gps", r.Gift = "tabler:gift", r.Hanger = "tabler:hanger", r.HandStop = "tabler:hand-stop", r.Heading = "tabler:heading", r.Heart = "tabler:heart", r.HeartHandShake = "tabler:heart-handshake", r.Help = "tabler:help", r.HelpCircle = "tabler:help-circle", r.HelpSmall = "tabler:help-small", r.Home = "tabler:home", r.Html = "tabler:html", r.Image = "tabler:photo", r.Inbox = "tabler:inbox", r.InfoCircle = "tabler:info-circle", r.InfoSmall = "tabler:info-small", r.Grill = "tabler:grill", r.GripHorizontal = "tabler:grip-horizontal", r.GripVertical = "tabler:grip-vertical", r.Key = "tabler:key", r.Keyboard = "tabler:keyboard", r.Label = "tabler:label", r.Layers = "tabler:layers-subtract", r.Layout = "tabler:layout", r.LayoutBottomBar = "tabler:layout-bottombar", r.LayoutDashboard = "tabler:layout-dashboard", r.LayoutGrid = "tabler:layout-grid", r.LayoutList = "tabler:layout-list", r.LayoutNavbar = "tabler:layout-navbar", r.LayoutRows = "tabler:layout-rows", r.LayoutSidebar = "tabler:layout-sidebar", r.LayoutSidebarRight = "tabler:layout-sidebar-right", r.Link = "tabler:link", r.List = "tabler:list", r.ListNumbers = "tabler:list-numbers", r.ListTree = "tabler:list-tree", r.LoadBalancer = "tabler:load-balancer", r.Lock = "tabler:lock", r.Location = "tabler:location", r.LogIn = "tabler:login", r.LogOut = "tabler:logout", r.Logs = "tabler:logs", r.Luggage = "tabler:luggage", r.Map = "tabler:map", r.MapPin = "tabler:map-pin", r.MapPinPlus = "tabler:map-pin-plus", r.MapSearch = "tabler:map-search", r.Marquee = "tabler:marquee", r.MarqueeOff = "tabler:marquee-off", r.Mail = "tabler:mail", r.MailPlus = "tabler:mail-plus", r.Maximize = "tabler:maximize", r.Menu = "tabler:menu-2", r.Message = "tabler:message", r.Messages = "tabler:messages", r.MessageDots = "tabler:message-dots", r.MessageOff = "tabler:message-off", r.MessagePlus = "tabler:message-plus", r.MoneyBag = "tabler:moneybag", r.MoodDollar = "tabler:mood-dollar", r.MoodHeart = "tabler:mood-heart", r.MoodKid = "tabler:mood-kid", r.MoodNerd = "tabler:mood-nerd", r.MoodNeutral = "tabler:mood-neutral", r.MoodPuzzled = "tabler:mood-puzzled", r.MoodSadSquint = "tabler:mood-sad-squint", r.MoodSmile = "tabler:mood-smile", r.MoodTongue = "tabler:mood-tongue", r.MoodTongueWink = "tabler:mood-tongue-wink", r.MoodTongueWink2 = "tabler:mood-tongue-wink-2", r.MoodWink2 = "tabler:mood-wink-2", r.MoodWrrr = "tabler:mood-wrrr", r.Moon = "tabler:moon", r.Mouse = "tabler:mouse", r.MoreHorizontal = "tabler:dots", r.MoreVertical = "tabler:dots-vertical", r.Movie = "tabler:movie", r.Music = "tabler:music", r.Notes = "tabler:notes", r.NewSection = "tabler:new-section", r.Palette = "tabler:palette", r.Paint = "tabler:paint", r.Pencil = "tabler:pencil", r.Percentage = "tabler:percentage", r.Photo = "tabler:photo", r.PhotoPlus = "tabler:photo-plus", r.PhotoScan = "tabler:photo-scan", r.Phone = "tabler:phone", r.PigMoney = "tabler:pig-money", r.Pin = "tabler:pin", r.Pinned = "tabler:pinned", r.Plane = "tabler:plane", r.PlusCircle = "tabler:circle-plus", r.Plus = "tabler:plus", r.Pointer = "tabler:pointer", r.Printer = "tabler:printer", r.Progress = "tabler:progress", r.ProgressHelp = "tabler:progress-help", r.QuestionMark = "tabler:question-mark", r.Rectangle = "tabler:rectangle", r.Receipt = "tabler:receipt", r.Receipt2 = "tabler:receipt-2", r.Refresh = "tabler:refresh", r.Restore = "tabler:restore", r.Robot = "tabler:robot", r.RobotFace = "tabler:robot-face", r.Rocket = "tabler:rocket", r.RowInsertTop = "tabler:row-insert-top", r.RowInsertBottom = "tabler:row-insert-bottom", r.RowRemove = "tabler:row-remove", r.Rss = "tabler:rss", r.Run = "tabler:run", r.Sailboat = "tabler:sailboat", r.Scale = "tabler:scale", r.School = "tabler:school", r.Scissors = "tabler:scissors", r.Scoreboard = "tabler:scoreboard", r.Seo = "tabler:seo", r.ShoppingCart = "tabler:shopping-cart", r.ShieldCheck = "tabler:shield-check", r.Search = "tabler:search", r.Section = "tabler:section", r.Select = "tabler:select", r.Server = "tabler:server", r.Server2 = "tabler:server-2", r.Settings = "tabler:settings", r.Share = "tabler:share", r.Share2 = "tabler:share-2", r.Share3 = "tabler:share-3", r.Shirt = "tabler:shirt", r.Sliders = "tabler:adjustments", r.SpeedBoat = "tabler:speedboat", r.Square = "tabler:square", r.SquareCheck = "tabler:square-check", r.SquarePlus = "tabler:square-plus", r.Stack = "tabler:stack", r.Stack2 = "tabler:stack-2", r.Stack3 = "tabler:stack-3", r.Stethoscope = "tabler:stethoscope", r.Sun = "tabler:sun", r.Table = "tabler:table", r.Template = "tabler:template", r.Terminal = "tabler:terminal", r.Terminal2 = "tabler:terminal-2", r.TextSize = "tabler:text-size", r.Ticket = "tabler:ticket", r.Timeline = "tabler:timeline", r.TimelineEvent = "tabler:timeline-event", r.TipJar = "tabler:tip-jar", r.ToolsKitchen = "tabler:tools-kitchen", r.ToolsKitchen2 = "tabler:tools-kitchen-2", r.ToolsKitchen3 = "tabler:tools-kitchen-3", r.Train = "tabler:train", r.Trash = "tabler:trash", r.TrashCan = "tabler:trash", r.TrashOff = "tabler:trash-off", r.TrashX = "tabler:trash-x", r.Trekking = "tabler:trekking", r.Typography = "tabler:typography", r.Upload = "tabler:upload", r.Urgent = "tabler:urgent", r.User = "tabler:user", r.UserCancel = "tabler:user-cancel", r.UserCheck = "tabler:user-check", r.UserPlus = "tabler:user-plus", r.UserQuestion = "tabler:user-question", r.UserX = "tabler:user-x", r.Users = "tabler:users", r.UserCircle = "tabler:user-circle", r.UsersGroup = "tabler:users-group", r.UsersMinus = "tabler:users-minus", r.UsersPlus = "tabler:users-plus", r.UserSquareRounded = "tabler:user-square-rounded", r.Video = "tabler:video", r.Walk = "tabler:walk", r.Wallet = "tabler:wallet", r.Wifi = "tabler:wifi", r.WindowMaximize = "tabler:window-maximize", r.WindowMinimize = "tabler:window-minimize", r.WorldWww = "tabler:world-www", r))(o || {}), p = /* @__PURE__ */ ((r) => (r.Color = "color", r.Date = "date", r.DateTimeLocal = "datetime-local", r.Decimal = "decimal", r.Email = "email", r.Hidden = "hidden", r.File = "file", r.None = "none", r.Number = "number", r.Password = "password", r.Search = "search", r.Tel = "tel", r.Text = "text", r.Time = "time", r.Url = "url", r))(p || {}), f = /* @__PURE__ */ ((r) => (r.Eager = "eager", r.Lazy = "lazy", r))(f || {}), w = /* @__PURE__ */ ((r) => (r.Blank = "_blank", r.Self = "_self", r))(w || {}), k = /* @__PURE__ */ ((r) => (r.Danger = "danger", r.Default = "default", r.Success = "success", r.Warning = "warning", r))(k || {}), v = /* @__PURE__ */ ((r) => (r.Dark = "dark", r.Light = "light", r))(v || {}), B = /* @__PURE__ */ ((r) => (r.After = "after", r.Before = "before", r))(B || {}), x = /* @__PURE__ */ ((r) => (r.Horizontal = "horizontal", r.Vertical = "vertical", r))(x || {}), S = /* @__PURE__ */ ((r) => (r.Auto = "auto", r.Hidden = "hidden", r.Scroll = "scroll", r.Visible = "visible", r))(S || {}), M = /* @__PURE__ */ ((r) => (r.Dots = "dots", r.Hidden = "hidden", r.Inline = "inline", r.Numbered = "numbered", r))(M || {}), A = /* @__PURE__ */ ((r) => (r.Bottom = "bottom", r.BottomEnd = "bottom-end", r.BottomStart = "bottom-start", r.Left = "left", r.LeftEnd = "left-end", r.LeftStart = "left-start", r.Right = "right", r.RightEnd = "right-end", r.RightStart = "right-start", r.Top = "top", r.TopEnd = "top-end", r.TopStart = "top-start", r))(A || {}), y = /* @__PURE__ */ ((r) => (r.Absolute = "absolute", r.Relative = "relative", r))(y || {}), n = /* @__PURE__ */ ((r) => (r.Tiny = "tiny", r.Small = "small", r.Medium = "medium", r.Large = "large", r.XL = "xlarge", r))(n || {}), D = /* @__PURE__ */ ((r) => (r.Condensed = "condensed", r.Default = "default", r.Plain = "plain", r))(D || {}), R = /* @__PURE__ */ ((r) => (r.Body = "body", r.Summary = "summary", r.Tiny = "tiny", r.Small = "small", r.Medium = "medium", r.Large = "large", r.XL = "xlarge", r))(R || {}), F = /* @__PURE__ */ ((r) => (r.TopLeft = "top-left", r.TopCenter = "top-center", r.TopRight = "top-right", r.BottomLeft = "bottom-left", r.BottomCenter = "bottom-center", r.BottomRight = "bottom-right", r))(F || {});
|
|
3
2
|
export {
|
|
4
3
|
t as CLAlign,
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"ui components",
|
|
18
18
|
"vuejs"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.16.
|
|
20
|
+
"version": "3.16.9",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"type": "module",
|
|
23
23
|
"scripts": {
|
|
@@ -219,6 +219,7 @@
|
|
|
219
219
|
"unplugin-auto-import": "^20.2.0",
|
|
220
220
|
"vite": "^7.1.12",
|
|
221
221
|
"vite-plugin-dts": "^4.5.4",
|
|
222
|
+
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
222
223
|
"vite-tsconfig-paths": "^5.1.4",
|
|
223
224
|
"vitest": "4.0.1",
|
|
224
225
|
"vue": "^3.5.18",
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { defineComponent as T, createElementBlock as y, openBlock as L, normalizeClass as D, unref as q, renderSlot as G, Fragment as O, renderList as A, normalizeStyle as R, createElementVNode as z, toDisplayString as F } from "vue";
|
|
2
|
-
import { CLOrientation as V, CLMode as u, CLColorVariants as n, CLColors as E } from "../index.js";
|
|
3
|
-
import { useTheme as B } from "../composables/useTheme.js";
|
|
4
|
-
import { g as k } from "./utils-CS9Gz4oX.js";
|
|
5
|
-
const v = "clll-form-field", K = /* @__PURE__ */ T({
|
|
6
|
-
__name: "CLFormField",
|
|
7
|
-
props: {
|
|
8
|
-
fluid: { type: Boolean },
|
|
9
|
-
hasPill: { type: Boolean },
|
|
10
|
-
hasCharCounter: { type: Boolean },
|
|
11
|
-
orientation: {}
|
|
12
|
-
},
|
|
13
|
-
setup(e) {
|
|
14
|
-
return (i, d) => (L(), y("div", {
|
|
15
|
-
class: D([
|
|
16
|
-
v,
|
|
17
|
-
e.fluid || e.orientation === q(V).Horizontal ? `${v}--fluid` : `${v}--fixed`,
|
|
18
|
-
e.orientation ? `${v}--${e.orientation}` : "",
|
|
19
|
-
e.hasPill ? `${v}--haspill` : "",
|
|
20
|
-
e.hasCharCounter ? `${v}--hascharcounter` : ""
|
|
21
|
-
])
|
|
22
|
-
}, [
|
|
23
|
-
G(i.$slots, "default")
|
|
24
|
-
], 2));
|
|
25
|
-
}
|
|
26
|
-
}), Q = ({ color: e, disabled: i, variant: d }) => {
|
|
27
|
-
const { borderRadius: o, colors: t, darkMode: s } = B(), a = s.value ? u.Dark : u.Light, c = d === n.Ghost, b = k({
|
|
28
|
-
color: e,
|
|
29
|
-
colors: t.value,
|
|
30
|
-
mode: a,
|
|
31
|
-
variant: n.Solid
|
|
32
|
-
}), l = k({
|
|
33
|
-
color: e,
|
|
34
|
-
colors: t.value,
|
|
35
|
-
mode: a,
|
|
36
|
-
variant: n.Outline
|
|
37
|
-
}), r = s.value ? "black" : "white", C = l?.border, f = l?.disabled, m = s.value ? "black" : b?.textDisabled, x = l?.focus, g = l?.focus, h = l?.text, p = l?.textDisabled, $ = S();
|
|
38
|
-
return {
|
|
39
|
-
"--clll-checkbox-bg": c ? "transparent" : r ?? "white",
|
|
40
|
-
"--clll-checkbox-border": c ? "transparent" : C ?? "transparent",
|
|
41
|
-
"--clll-checkbox-disabled-border": f ?? "transparent",
|
|
42
|
-
"--clll-checkbox-disabled-bg": m ?? "transparent",
|
|
43
|
-
"--clll-checkbox-checked-bg": r ?? "white",
|
|
44
|
-
"--clll-checkbox-focus-border": x ?? "transparent",
|
|
45
|
-
"--clll-checkbox-focus-shadow": g ?? "transparent",
|
|
46
|
-
"--clll-checkbox-icon-color": h ?? "inherit",
|
|
47
|
-
"--clll-checkbox-disabled-icon-color": p ?? "transparent",
|
|
48
|
-
"--clll-checkbox-indicator-color": h ?? "inherit",
|
|
49
|
-
"--clll-checkbox-disabled-indicator-color": p ?? "transparent",
|
|
50
|
-
"--clll-checkbox-theme-radius": o.value ? `var(--clll-${o.value})` : void 0,
|
|
51
|
-
"--clll-checkbox-outline-width": c ? "0px" : "2px",
|
|
52
|
-
"--clll-checkbox-required-asterisk-color": $ ?? "red"
|
|
53
|
-
};
|
|
54
|
-
}, U = ({
|
|
55
|
-
color: e,
|
|
56
|
-
disabled: i,
|
|
57
|
-
readonly: d,
|
|
58
|
-
variant: o
|
|
59
|
-
}) => {
|
|
60
|
-
const { borderRadius: t, colors: s, darkMode: a } = B(), c = a.value ? u.Dark : u.Light, b = o === n.Ghost, l = k({
|
|
61
|
-
color: e,
|
|
62
|
-
colors: s.value,
|
|
63
|
-
mode: c,
|
|
64
|
-
variant: n.Solid
|
|
65
|
-
}), r = k({
|
|
66
|
-
color: e,
|
|
67
|
-
colors: s.value,
|
|
68
|
-
mode: c,
|
|
69
|
-
variant: n.Outline
|
|
70
|
-
}), C = a.value ? "black" : "white", f = a.value ? "black" : l?.textDisabled, m = r?.border, x = r?.disabled, g = a.value ? "black" : l?.textDisabled, h = r?.focus, p = r?.focus, $ = r?.text, M = r?.focus, P = S();
|
|
71
|
-
return {
|
|
72
|
-
"--clll-input-bg": b ? "transparent" : C ?? "white",
|
|
73
|
-
"--clll-input-border": b ? "transparent" : m ?? "transparent",
|
|
74
|
-
"--clll-input-disabled-border": x ?? "transparent",
|
|
75
|
-
"--clll-input-disabled-bg": g ?? "transparent",
|
|
76
|
-
"--clll-input-readonly-border": x ?? "transparent",
|
|
77
|
-
"--clll-input-readonly-bg": g ?? "transparent",
|
|
78
|
-
"--clll-input-focus-border": h ?? "transparent",
|
|
79
|
-
"--clll-input-focus-shadow": p ?? "transparent",
|
|
80
|
-
"--clll-input-text": $ ?? "inherit",
|
|
81
|
-
"--clll-input-text-placeholder": M ?? "transparent",
|
|
82
|
-
"--clll-input-grouped-bg": f ?? "transparent",
|
|
83
|
-
"--clll-input-prefix-suffix-color": M ?? "transparent",
|
|
84
|
-
"--clll-input-theme-radius": t.value ? `var(--clll-${t.value})` : void 0,
|
|
85
|
-
"--clll-input-ghost-padding": b ? "0" : void 0,
|
|
86
|
-
"--clll-input-required-asterisk-color": P ?? "red"
|
|
87
|
-
};
|
|
88
|
-
}, N = ({ color: e }) => {
|
|
89
|
-
const { colors: i, darkMode: d } = B(), o = d.value ? u.Dark : u.Light;
|
|
90
|
-
return {
|
|
91
|
-
"--clll-input-message-color": k({
|
|
92
|
-
color: e,
|
|
93
|
-
colors: i.value,
|
|
94
|
-
mode: o,
|
|
95
|
-
variant: n.Outline
|
|
96
|
-
})?.textBody ?? "inherit"
|
|
97
|
-
};
|
|
98
|
-
}, W = ({ color: e, disabled: i, variant: d }) => {
|
|
99
|
-
const { borderRadius: o, colors: t, darkMode: s } = B(), a = s.value ? u.Dark : u.Light, c = d === n.Ghost, b = k({
|
|
100
|
-
color: e,
|
|
101
|
-
colors: t.value,
|
|
102
|
-
mode: a,
|
|
103
|
-
variant: n.Solid
|
|
104
|
-
}), l = k({
|
|
105
|
-
color: e,
|
|
106
|
-
colors: t.value,
|
|
107
|
-
mode: a,
|
|
108
|
-
variant: n.Outline
|
|
109
|
-
}), r = s.value ? "black" : "white", C = l?.border, f = l?.disabled, m = s.value ? "black" : b?.textDisabled, x = l?.focus, g = l?.focus, h = l?.text, p = l?.focus, $ = S();
|
|
110
|
-
return {
|
|
111
|
-
"--clll-select-bg": c ? "transparent" : r ?? "white",
|
|
112
|
-
"--clll-select-border": c ? "transparent" : C ?? "transparent",
|
|
113
|
-
"--clll-select-disabled-border": f ?? "transparent",
|
|
114
|
-
"--clll-select-disabled-bg": m ?? "transparent",
|
|
115
|
-
"--clll-select-focus-border": x ?? "transparent",
|
|
116
|
-
"--clll-select-focus-shadow": g ?? "transparent",
|
|
117
|
-
"--clll-select-text": h ?? "inherit",
|
|
118
|
-
"--clll-select-text-placeholder": p ?? "transparent",
|
|
119
|
-
"--clll-select-icon-color": h ?? "inherit",
|
|
120
|
-
"--clll-select-disabled-icon-color": p ?? "transparent",
|
|
121
|
-
"--clll-select-theme-radius": o.value ? `var(--clll-${o.value})` : void 0,
|
|
122
|
-
"--clll-select-ghost-padding": c ? "0" : void 0,
|
|
123
|
-
"--clll-select-required-asterisk-color": $ ?? "red"
|
|
124
|
-
};
|
|
125
|
-
}, S = () => {
|
|
126
|
-
const { colors: e, darkMode: i } = B();
|
|
127
|
-
return i.value ? e.value.danger?.["400"] : e.value.danger?.["700"];
|
|
128
|
-
}, w = "clll-input__message", X = /* @__PURE__ */ T({
|
|
129
|
-
__name: "CLInputMessages",
|
|
130
|
-
props: {
|
|
131
|
-
id: {},
|
|
132
|
-
messages: {},
|
|
133
|
-
messageType: { default: E.Neutral }
|
|
134
|
-
},
|
|
135
|
-
setup(e) {
|
|
136
|
-
return (i, d) => (L(!0), y(O, null, A(e.messages, (o, t) => (L(), y("span", {
|
|
137
|
-
key: `${e.id}-message-${t}`,
|
|
138
|
-
class: D([w, `${w}--${e.messageType}`]),
|
|
139
|
-
style: R(q(N)({ color: e.messageType }))
|
|
140
|
-
}, [
|
|
141
|
-
z("span", {
|
|
142
|
-
class: D([`${w}__text`])
|
|
143
|
-
}, F(o), 3)
|
|
144
|
-
], 6))), 128));
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
export {
|
|
148
|
-
K as _,
|
|
149
|
-
X as a,
|
|
150
|
-
Q as c,
|
|
151
|
-
U as i,
|
|
152
|
-
W as s
|
|
153
|
-
};
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import { defineComponent as U, ref as v, computed as _, watch as F, onMounted as P, onUnmounted as X, onBeforeUnmount as Z, createElementBlock as C, openBlock as m, normalizeStyle as j, normalizeClass as c, unref as a, createElementVNode as g, createBlock as x, createCommentVNode as b, createVNode as k, withCtx as L, createTextVNode as z, toDisplayString as S, isRef as q } from "vue";
|
|
2
|
-
import { _ as N } from "./CLButton.vue_vue_type_style_index_0_lang-CQipGQ26.js";
|
|
3
|
-
import { _ as G } from "./CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js";
|
|
4
|
-
import { _ as J } from "./CLProgress.vue_vue_type_style_index_0_lang-DVJDbuDr.js";
|
|
5
|
-
import { _ as K } from "./CLText.vue_vue_type_style_index_0_lang-BJoS9z9q.js";
|
|
6
|
-
import { _ as O } from "./CLHeading.vue_vue_type_style_index_0_lang-nUnSpm32.js";
|
|
7
|
-
import { CLMode as R, CLColorVariants as w, CLToastPosition as Q, CLIconSizes as B, CLColors as h, CLHeadingTypes as W, CLTextTypes as I, CLSizes as A, CLIconNames as Y } from "../index.js";
|
|
8
|
-
import { i as E, g as p, a as ee } from "./helper--hRjZVm6.js";
|
|
9
|
-
import { useEsc as te } from "../composables/useEsc.js";
|
|
10
|
-
import { g as oe } from "./utils-CS9Gz4oX.js";
|
|
11
|
-
import { useTheme as ae } from "../composables/useTheme.js";
|
|
12
|
-
const ie = ({ color: e, variant: t }) => {
|
|
13
|
-
const { borderRadius: $, colors: d, darkMode: l } = ae(), i = l.value ? R.Dark : R.Light, n = oe({
|
|
14
|
-
color: e,
|
|
15
|
-
colors: d.value,
|
|
16
|
-
mode: i,
|
|
17
|
-
variant: t
|
|
18
|
-
});
|
|
19
|
-
return {
|
|
20
|
-
"--clll-toast-bg-color": l.value ? "black" : "white",
|
|
21
|
-
"--clll-toast-text-color": n?.text ?? "inherit",
|
|
22
|
-
"--clll-toast-icon-bg": n?.bg ?? "transparent",
|
|
23
|
-
"--clll-toast-icon-color": n?.text ?? "inherit",
|
|
24
|
-
"--clll-toast-timer-bg": n?.textDisabled ?? "transparent",
|
|
25
|
-
"--clll-toast-theme-radius": $.value ? `var(--clll-${$.value})` : void 0
|
|
26
|
-
};
|
|
27
|
-
}, se = ["data-testid"], u = 300, o = "clll-toast", ge = /* @__PURE__ */ U({
|
|
28
|
-
name: "CLToast",
|
|
29
|
-
__name: "CLToast",
|
|
30
|
-
props: {
|
|
31
|
-
actionLabel: {},
|
|
32
|
-
borderRadius: {},
|
|
33
|
-
color: { default: h.Secondary },
|
|
34
|
-
dismissTimer: { default: 5 },
|
|
35
|
-
icon: {},
|
|
36
|
-
iconSize: { default: B.Small },
|
|
37
|
-
message: {},
|
|
38
|
-
onAction: {},
|
|
39
|
-
onDismiss: {},
|
|
40
|
-
position: { default: Q.TopRight },
|
|
41
|
-
rounded: { type: Boolean, default: !0 },
|
|
42
|
-
testId: { default: "clll-toast" },
|
|
43
|
-
title: {},
|
|
44
|
-
variant: { default: w.Soft },
|
|
45
|
-
width: { default: "24rem" }
|
|
46
|
-
},
|
|
47
|
-
setup(e) {
|
|
48
|
-
const t = e, $ = v(), d = v(100), l = v(!1), i = v(), n = v(0), D = _(() => [
|
|
49
|
-
o,
|
|
50
|
-
t.borderRadius ? `${o}--${t.borderRadius}` : "",
|
|
51
|
-
t.dismissTimer ? `${o}--has-timer` : "",
|
|
52
|
-
t.icon ? `${o}--has-icon` : "",
|
|
53
|
-
t.message && !t.title ? `${o}--has-messageonly` : "",
|
|
54
|
-
l.value ? `${o}--mounted` : "",
|
|
55
|
-
t.onAction && t.actionLabel ? `${o}--has-action` : "",
|
|
56
|
-
t.rounded ? `${o}--rounded` : `${o}--box`,
|
|
57
|
-
t.title && !t.message ? `${o}--has-titleonly` : "",
|
|
58
|
-
t.title && t.message ? `${o}--has-titleandmessage` : "",
|
|
59
|
-
`${o}--${t.position}`
|
|
60
|
-
]), y = () => {
|
|
61
|
-
l.value = !1, i.value && (i.value.stop(), i.value.start(u, (r) => {
|
|
62
|
-
Math.min(r, u) === u && (i.value?.stop(), t.onDismiss?.());
|
|
63
|
-
})), V();
|
|
64
|
-
}, H = () => {
|
|
65
|
-
const r = t.dismissTimer * 1e3, s = r / 100;
|
|
66
|
-
i.value?.start(r, (f) => {
|
|
67
|
-
const T = Math.min(f / 100, s);
|
|
68
|
-
d.value = 100 - T / s * 100, T === s && y();
|
|
69
|
-
});
|
|
70
|
-
}, M = () => {
|
|
71
|
-
i.value || (i.value = ee(), i.value.start(100, (r) => {
|
|
72
|
-
Math.min(r, 100) === 100 && (i.value?.stop(), l.value = !0, t?.dismissTimer && i.value?.start(u, (f) => {
|
|
73
|
-
Math.min(f, u) === u && (i.value?.stop(), H());
|
|
74
|
-
}));
|
|
75
|
-
}));
|
|
76
|
-
};
|
|
77
|
-
F(t, () => {
|
|
78
|
-
i.value && (i.value.stop(), i.value = void 0), t?.dismissTimer && M();
|
|
79
|
-
}), P(() => {
|
|
80
|
-
E && (n.value = p() + 1, M());
|
|
81
|
-
}), X(() => {
|
|
82
|
-
E && t?.dismissTimer && i.value && (i.value.stop(), i.value = void 0), l.value = !1, t.onDismiss?.();
|
|
83
|
-
});
|
|
84
|
-
const { clearEventListeners: V } = te({ escHandler: y });
|
|
85
|
-
return Z(() => {
|
|
86
|
-
V();
|
|
87
|
-
}), (r, s) => (m(), C("output", {
|
|
88
|
-
ref_key: "elem",
|
|
89
|
-
ref: $,
|
|
90
|
-
class: c(a(D)),
|
|
91
|
-
"data-testid": e.testId,
|
|
92
|
-
style: j({ zIndex: a(n), "--clll-toast-width": e.width, ...a(ie)({ color: e.color, variant: e.variant }) })
|
|
93
|
-
}, [
|
|
94
|
-
g("div", {
|
|
95
|
-
class: c(`${o}__body`)
|
|
96
|
-
}, [
|
|
97
|
-
g("div", {
|
|
98
|
-
class: c(`${o}__content`)
|
|
99
|
-
}, [
|
|
100
|
-
e.icon ? (m(), C("div", {
|
|
101
|
-
key: 0,
|
|
102
|
-
class: c(`${o}__icon`)
|
|
103
|
-
}, [
|
|
104
|
-
k(a(G), {
|
|
105
|
-
name: e.icon,
|
|
106
|
-
size: e.iconSize
|
|
107
|
-
}, null, 8, ["name", "size"])
|
|
108
|
-
], 2)) : b("", !0),
|
|
109
|
-
g("div", {
|
|
110
|
-
class: c(`${o}__text`)
|
|
111
|
-
}, [
|
|
112
|
-
e.title ? (m(), x(a(O), {
|
|
113
|
-
key: 0,
|
|
114
|
-
color: a(h).Neutral,
|
|
115
|
-
"test-id": `${o}__title`,
|
|
116
|
-
type: a(W).Section
|
|
117
|
-
}, {
|
|
118
|
-
default: L(() => [
|
|
119
|
-
z(S(e.title), 1)
|
|
120
|
-
]),
|
|
121
|
-
_: 1
|
|
122
|
-
}, 8, ["color", "test-id", "type"])) : b("", !0),
|
|
123
|
-
e.message ? (m(), x(a(K), {
|
|
124
|
-
key: 1,
|
|
125
|
-
color: a(h).Neutral,
|
|
126
|
-
"test-id": `${o}__message`,
|
|
127
|
-
type: e.title ? a(I).Medium : a(I).Body
|
|
128
|
-
}, {
|
|
129
|
-
default: L(() => [
|
|
130
|
-
z(S(e.message), 1)
|
|
131
|
-
]),
|
|
132
|
-
_: 1
|
|
133
|
-
}, 8, ["color", "test-id", "type"])) : b("", !0)
|
|
134
|
-
], 2),
|
|
135
|
-
e.onAction && e.actionLabel ? (m(), C("div", {
|
|
136
|
-
key: 1,
|
|
137
|
-
class: c(`${o}__action-button`)
|
|
138
|
-
}, [
|
|
139
|
-
k(a(N), {
|
|
140
|
-
color: e.color,
|
|
141
|
-
"border-radius": e.borderRadius,
|
|
142
|
-
"on-click": e.onAction,
|
|
143
|
-
"test-id": `${o}__action-button`,
|
|
144
|
-
variant: e.variant
|
|
145
|
-
}, {
|
|
146
|
-
default: L(() => [
|
|
147
|
-
z(S(e.actionLabel), 1)
|
|
148
|
-
]),
|
|
149
|
-
_: 1
|
|
150
|
-
}, 8, ["color", "border-radius", "on-click", "test-id", "variant"])
|
|
151
|
-
], 2)) : b("", !0)
|
|
152
|
-
], 2),
|
|
153
|
-
g("div", {
|
|
154
|
-
class: c(`${o}__dismiss-button`)
|
|
155
|
-
}, [
|
|
156
|
-
k(a(N), {
|
|
157
|
-
"aria-label": "Dismiss toast",
|
|
158
|
-
color: a(h).Neutral,
|
|
159
|
-
"border-radius": e.borderRadius,
|
|
160
|
-
"icon-before": a(Y).Delete,
|
|
161
|
-
"icon-size": a(B).Tiny,
|
|
162
|
-
"on-click": y,
|
|
163
|
-
size: a(A).Tiny,
|
|
164
|
-
"test-id": `${o}__dismiss-button`,
|
|
165
|
-
variant: a(w).Text
|
|
166
|
-
}, null, 8, ["color", "border-radius", "icon-before", "icon-size", "size", "test-id", "variant"])
|
|
167
|
-
], 2)
|
|
168
|
-
], 2),
|
|
169
|
-
e.dismissTimer ? (m(), x(a(J), {
|
|
170
|
-
key: 0,
|
|
171
|
-
modelValue: a(d),
|
|
172
|
-
"onUpdate:modelValue": s[0] || (s[0] = (f) => q(d) ? d.value = f : null),
|
|
173
|
-
color: e.color,
|
|
174
|
-
rounded: !1,
|
|
175
|
-
size: a(A).Small
|
|
176
|
-
}, null, 8, ["modelValue", "color", "size"])) : b("", !0)
|
|
177
|
-
], 14, se));
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
export {
|
|
181
|
-
ge as _
|
|
182
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { CLMode as l, CLColors as t, CLColorVariants as n } from "../index.js";
|
|
2
|
-
import { g as c } from "./utils-CS9Gz4oX.js";
|
|
3
|
-
import { useTheme as a } from "../composables/useTheme.js";
|
|
4
|
-
const g = () => {
|
|
5
|
-
const { borderRadius: o, darkMode: r } = a();
|
|
6
|
-
return {
|
|
7
|
-
"--clll-skeleton-bg-color": r.value ? "rgba(0 0 0 / 0.005)" : "rgba(0 0 0 / 0.075)",
|
|
8
|
-
"--clll-skeleton-theme-radius": o.value ? `var(--clll-${o.value})` : void 0
|
|
9
|
-
};
|
|
10
|
-
}, k = ({ color: o = t.Primary }) => {
|
|
11
|
-
const { colors: r, darkMode: e } = a(), s = e.value ? l.Dark : l.Light;
|
|
12
|
-
return {
|
|
13
|
-
"--clll-spinner-color": c({
|
|
14
|
-
color: o,
|
|
15
|
-
colors: r.value,
|
|
16
|
-
mode: s,
|
|
17
|
-
variant: n.Solid
|
|
18
|
-
})?.bg ?? "inherit"
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
k as a,
|
|
23
|
-
g as s
|
|
24
|
-
};
|