@codeandfunction/callaloo 3.15.3 → 3.16.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 +7 -3
- package/dist/assets/CLFormCharCounter.css +1 -0
- package/dist/assets/CLInputMessages.css +1 -0
- package/dist/chunks/CLA11yButton.vue_vue_type_style_index_0_lang-Cdx5rsou.js +45 -0
- package/dist/chunks/CLButton.vue_vue_type_style_index_0_lang-CrhjC50b.js +128 -0
- package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-DVuAcV5A.js +252 -0
- package/dist/chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-CJ4VrvmR.js +38 -0
- package/dist/chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-fddy-FWI.js +43 -0
- package/dist/chunks/CLHeading.vue_vue_type_style_index_0_lang-DILwNSgn.js +50 -0
- package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-CZB8svPf.js +83 -0
- package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-RMOT1TQk.js +120 -0
- package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-BUgw8Rpy.js +59 -0
- package/dist/chunks/CLNavLink.vue_vue_type_script_setup_true_lang-Ckz9MEj5.js +44 -0
- package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-mkIKVHjg.js +88 -0
- package/dist/chunks/CLProgress.vue_vue_type_style_index_0_lang-CSf7WiNb.js +65 -0
- package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang-E-bZeUWT.js +33 -0
- package/dist/chunks/CLSpinner.vue_vue_type_style_index_0_lang-C8s8K4zb.js +53 -0
- package/dist/chunks/CLText.vue_vue_type_style_index_0_lang-V7LSR7DF.js +46 -0
- package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-DOI4DZGg.js +178 -0
- package/dist/chunks/base-theme-C9_Hz5HW.js +832 -0
- package/dist/chunks/useEsc-C9QIDZ_8.js +19 -0
- package/dist/chunks/useHasSlotContent-DDqs5uK9.js +14 -0
- package/dist/chunks/useTheme-yoEfuNvB.js +417 -0
- package/dist/chunks/utils-C7Yjsqk-.js +25 -0
- package/dist/chunks/utils-DFnkOeYP.js +72 -0
- package/dist/chunks/utils-DTWXs4YX.js +14 -0
- package/dist/chunks/utils-D_WP3vZz.js +29 -0
- package/dist/chunks/utils-Da9LXXQ0.js +28 -0
- package/dist/components/Buttons/CLA11yButton/CLA11yButton.css +1 -0
- package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +6 -0
- package/dist/components/Buttons/CLA11yButton/CLA11yButton.vue.d.ts +2 -2
- package/dist/components/Buttons/CLButton/CLButton.css +1 -0
- package/dist/components/Buttons/CLButton/CLButton.js +6 -0
- package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +7 -7
- package/dist/components/CLIcon/CLIcon.css +1 -0
- package/dist/components/CLIcon/CLIcon.js +6 -0
- package/dist/components/{Assets/CLIcon → CLIcon}/CLIcon.vue.d.ts +1 -1
- package/dist/components/CLTable/CLTable.css +1 -0
- package/dist/components/CLTable/CLTable.js +196 -0
- package/dist/components/{Table → CLTable}/index.d.ts +0 -7
- package/dist/components/Containers/CLCard/CLCard.css +1 -0
- package/dist/components/Containers/CLCard/CLCard.js +6 -0
- package/dist/components/Containers/CLCard/CLCard.vue.d.ts +6 -6
- package/dist/components/Containers/CLCarousel/CLCarousel.css +1 -0
- package/dist/components/Containers/CLCarousel/CLCarousel.js +436 -0
- package/dist/components/Containers/CLCarousel/CLCarousel.vue.d.ts +2 -2
- package/dist/components/Containers/CLCarousel/CLCarouselNavigation.vue.d.ts +1 -1
- package/dist/components/Containers/CLDisclosure/CLDisclosure.css +1 -0
- package/dist/components/Containers/CLDisclosure/CLDisclosure.js +137 -0
- package/dist/components/Containers/CLDisclosure/CLDisclosure.vue.d.ts +3 -3
- package/dist/components/Form/CLCheckbox/CLCheckbox.css +1 -0
- package/dist/components/Form/CLCheckbox/CLCheckbox.js +147 -0
- package/dist/components/Form/CLCheckbox/CLCheckbox.vue.d.ts +4 -4
- package/dist/components/Form/CLFormLabel/CLFormLabel.vue.d.ts +1 -1
- package/dist/components/Form/CLInput/CLInput.css +1 -0
- package/dist/components/Form/CLInput/CLInput.js +378 -0
- package/dist/components/Form/CLInput/CLInput.vue.d.ts +5 -5
- package/dist/components/Form/CLInput/CLInputPill.vue.d.ts +1 -1
- package/dist/components/Form/CLRadioButton/CLRadioButton.css +1 -0
- package/dist/components/Form/CLRadioButton/CLRadioButton.js +132 -0
- package/dist/components/Form/CLRadioButton/CLRadioButton.vue.d.ts +1 -1
- package/dist/components/Form/CLSelect/CLSelect.css +1 -0
- package/dist/components/Form/CLSelect/CLSelect.js +137 -0
- package/dist/components/Form/CLSelect/CLSelect.vue.d.ts +3 -3
- package/dist/components/Form/CLTextArea/CLTextArea.css +1 -0
- package/dist/components/Form/CLTextArea/CLTextArea.js +149 -0
- package/dist/components/Form/CLTextArea/CLTextArea.vue.d.ts +2 -2
- package/dist/components/Form/index.d.ts +5 -9
- package/dist/components/Indicators/CLBadge/CLBadge.css +1 -0
- package/dist/components/Indicators/CLBadge/CLBadge.js +40 -0
- package/dist/components/Indicators/CLBadge/CLBadge.vue.d.ts +1 -1
- package/dist/components/Indicators/CLBanner/CLBanner.css +1 -0
- package/dist/components/Indicators/CLBanner/CLBanner.js +147 -0
- package/dist/components/Indicators/CLBanner/CLBanner.vue.d.ts +3 -3
- package/dist/components/Indicators/CLPill/CLPill.css +1 -0
- package/dist/components/Indicators/CLPill/CLPill.js +6 -0
- package/dist/components/Indicators/CLPill/CLPill.vue.d.ts +3 -3
- package/dist/components/Indicators/CLProgress/CLProgress.css +1 -0
- package/dist/components/Indicators/CLProgress/CLProgress.js +6 -0
- package/dist/components/Indicators/CLProgress/CLProgress.vue.d.ts +2 -2
- package/dist/components/Loading/CLSkeleton/CLSkeleton.css +1 -0
- package/dist/components/Loading/CLSkeleton/CLSkeleton.js +6 -0
- package/dist/components/Loading/CLSkeleton/CLSkeleton.vue.d.ts +1 -1
- package/dist/components/Loading/CLSpinner/CLSpinner.css +1 -0
- package/dist/components/Loading/CLSpinner/CLSpinner.js +6 -0
- package/dist/components/Loading/CLSpinner/CLSpinner.vue.d.ts +1 -1
- package/dist/components/Modals/CLModal/CLModal.css +1 -0
- package/dist/components/Modals/CLModal/CLModal.js +175 -0
- package/dist/components/Modals/CLModal/CLModal.vue.d.ts +2 -2
- package/dist/components/Navigation/CLLink/CLLink.css +1 -0
- package/dist/components/Navigation/CLLink/CLLink.js +6 -0
- package/dist/components/Navigation/CLLink/CLLink.vue.d.ts +2 -2
- package/dist/components/Navigation/CLNavLink/CLNavLink.js +5 -0
- package/dist/components/Navigation/CLNavLink/CLNavLink.vue.d.ts +1 -1
- package/dist/components/Navigation/CLNavSection/CLNavSection.css +1 -0
- package/dist/components/Navigation/CLNavSection/CLNavSection.js +55 -0
- package/dist/components/Navigation/CLNavSection/CLNavSection.vue.d.ts +1 -1
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.css +1 -0
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +1233 -0
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +29 -29
- package/dist/components/Popups/CLToast/CLToast.css +1 -0
- package/dist/components/Popups/CLToast/CLToast.js +6 -0
- package/dist/components/Popups/CLToast/CLToast.vue.d.ts +2 -2
- package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +44 -0
- package/dist/components/Providers/CLThemeProvider/CLThemeProvider.vue.d.ts +27 -0
- package/dist/components/Providers/CLThemeProvider/base-theme.d.ts +22 -0
- package/dist/components/Providers/CLThemeProvider/index.d.ts +6 -0
- package/dist/components/Providers/CLToastProvider/CLToastProvider.js +45 -0
- package/dist/components/Providers/{Toast → CLToastProvider}/CLToastProvider.vue.d.ts +1 -7
- package/dist/components/Providers/CLToastProvider/index.d.ts +4 -0
- package/dist/components/Providers/index.d.ts +2 -6
- package/dist/components/Typography/CLHeading/CLHeading.css +1 -0
- package/dist/components/Typography/CLHeading/CLHeading.js +6 -0
- package/dist/components/Typography/CLText/CLText.css +1 -0
- package/dist/components/Typography/CLText/CLText.js +6 -0
- package/dist/composables/useTheme.d.ts +26 -0
- package/dist/index.d.ts +0 -15
- package/dist/index.js +27 -5899
- package/package.json +124 -13
- package/dist/assets/styles.css +0 -1
- package/dist/components/Assets/index.d.ts +0 -2
- package/dist/components/Form/CLFormCharCounter/index.d.ts +0 -5
- package/dist/components/Form/CLFormLabel/index.d.ts +0 -5
- package/dist/components/Providers/Theme/CLThemeProvider.vue.d.ts +0 -26
- package/dist/components/Providers/Theme/base-theme.d.ts +0 -48
- package/dist/constants.d.ts +0 -22
- package/dist/chunks/{icons.QRYZHNAf.js → icons-QRYZHNAf.js} +0 -0
- package/dist/components/{Assets/CLIcon → CLIcon}/index.d.ts +0 -0
- package/dist/components/{Assets → CLIcon}/utils.d.ts +0 -0
- package/dist/components/{Table → CLTable}/CLTable.vue.d.ts +1 -1
- /package/dist/components/{Table → CLTable}/CLTableBody.vue.d.ts +0 -0
- /package/dist/components/{Table → CLTable}/CLTableCell.vue.d.ts +0 -0
- /package/dist/components/{Table → CLTable}/CLTableFooter.vue.d.ts +0 -0
- /package/dist/components/{Table → CLTable}/CLTableHeader.vue.d.ts +0 -0
- /package/dist/components/{Table → CLTable}/CLTableNestedCell.vue.d.ts +0 -0
- /package/dist/components/{Table → CLTable}/CLTableRow.vue.d.ts +0 -0
- /package/dist/components/{Table → CLTable}/utils.d.ts +0 -0
- /package/dist/components/Providers/{Theme → CLThemeProvider}/utils.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CLBorderRadius, CLColors, CLColorVariants, CLIconNames, CLIconSizes, CLPlacement, CLSizes } from '../../../
|
|
1
|
+
import { CLBorderRadius, CLColors, CLColorVariants, CLIconNames, CLIconSizes, CLPlacement, CLSizes } from '../../../types';
|
|
2
2
|
export interface CLDropdownMenuProps {
|
|
3
3
|
/** Sets the aria-label on the anchor button. */
|
|
4
4
|
buttonAriaLabel: string;
|
|
@@ -54,6 +54,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
|
|
|
54
54
|
iconAfter: CLIconNames;
|
|
55
55
|
iconAfterSize: CLIconSizes;
|
|
56
56
|
iconSize: CLIconSizes;
|
|
57
|
+
isOpen: boolean;
|
|
58
|
+
zIndex: number | string;
|
|
57
59
|
buttonColor: CLColors;
|
|
58
60
|
buttonHeight: string;
|
|
59
61
|
buttonSize: CLSizes;
|
|
@@ -62,25 +64,23 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
|
|
|
62
64
|
containerBordered: boolean;
|
|
63
65
|
containerElevated: boolean;
|
|
64
66
|
contentWidth: string;
|
|
65
|
-
isOpen: boolean;
|
|
66
67
|
placement: CLPlacement;
|
|
67
|
-
zIndex: number | string;
|
|
68
68
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
69
69
|
anchor: ({
|
|
70
70
|
$: import('vue').ComponentInternalInstance;
|
|
71
71
|
$data: {};
|
|
72
72
|
$props: {
|
|
73
73
|
readonly active?: boolean | undefined;
|
|
74
|
-
readonly alignContent?: import('../../../
|
|
74
|
+
readonly alignContent?: import('../../../types').CLAlign | undefined;
|
|
75
75
|
readonly ariaLabel?: string | undefined;
|
|
76
|
-
readonly as?: import('../../../
|
|
76
|
+
readonly as?: import('../../../types').CLButtonTags | undefined;
|
|
77
77
|
readonly borderRadius?: CLBorderRadius | undefined;
|
|
78
78
|
readonly busy?: boolean | undefined;
|
|
79
79
|
readonly color?: CLColors | undefined;
|
|
80
80
|
readonly disabled?: boolean | undefined;
|
|
81
81
|
readonly elevated?: boolean | undefined;
|
|
82
82
|
readonly form?: string | undefined;
|
|
83
|
-
readonly forwardRef?: import('../../../
|
|
83
|
+
readonly forwardRef?: import('../../../types').CLButtonForwardRefFunction | undefined;
|
|
84
84
|
readonly height?: string | undefined;
|
|
85
85
|
readonly href?: string | undefined;
|
|
86
86
|
readonly iconAfter?: CLIconNames | undefined;
|
|
@@ -91,10 +91,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
|
|
|
91
91
|
readonly pill?: boolean | undefined;
|
|
92
92
|
readonly rounded?: boolean | undefined;
|
|
93
93
|
readonly size?: CLSizes | undefined;
|
|
94
|
-
readonly target?: import('../../../
|
|
94
|
+
readonly target?: import('../../../types').CLLinkTarget | undefined;
|
|
95
95
|
readonly testId?: string | undefined;
|
|
96
96
|
readonly title?: string | undefined;
|
|
97
|
-
readonly type?: import('../../../
|
|
97
|
+
readonly type?: import('../../../types').CLButtonTypes | undefined;
|
|
98
98
|
readonly variant?: CLColorVariants | undefined;
|
|
99
99
|
readonly width?: string | undefined;
|
|
100
100
|
readonly wrap?: boolean | undefined;
|
|
@@ -123,26 +123,26 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
|
|
|
123
123
|
form: string;
|
|
124
124
|
variant: CLColorVariants;
|
|
125
125
|
borderRadius: CLBorderRadius;
|
|
126
|
-
|
|
126
|
+
rounded: boolean;
|
|
127
127
|
testId: string;
|
|
128
|
-
type: import('../../../
|
|
128
|
+
type: import('../../../types').CLButtonTypes;
|
|
129
129
|
onClick: (event?: Event) => void;
|
|
130
|
+
target: import('../../../types').CLLinkTarget;
|
|
131
|
+
size: CLSizes;
|
|
132
|
+
href: string;
|
|
133
|
+
active: boolean;
|
|
134
|
+
alignContent: import('../../../types').CLAlign;
|
|
130
135
|
ariaLabel: string;
|
|
136
|
+
as: import('../../../types').CLButtonTags;
|
|
131
137
|
busy: boolean;
|
|
132
|
-
rounded: boolean;
|
|
133
|
-
active: boolean;
|
|
134
|
-
alignContent: import('../../../index.ts').CLAlign;
|
|
135
|
-
as: import('../../../index.ts').CLButtonTags;
|
|
136
138
|
disabled: boolean;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
+
elevated: boolean;
|
|
140
|
+
forwardRef: import('../../../types').CLButtonForwardRefFunction;
|
|
139
141
|
iconAfter: CLIconNames;
|
|
140
142
|
iconBefore: CLIconNames;
|
|
141
143
|
iconAfterSize: CLIconSizes;
|
|
142
144
|
iconSize: CLIconSizes;
|
|
143
145
|
pill: boolean;
|
|
144
|
-
size: CLSizes;
|
|
145
|
-
target: import('../../../index.ts').CLLinkTarget;
|
|
146
146
|
wrap: boolean;
|
|
147
147
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
148
148
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -172,28 +172,28 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
|
|
|
172
172
|
form: string;
|
|
173
173
|
variant: CLColorVariants;
|
|
174
174
|
borderRadius: CLBorderRadius;
|
|
175
|
-
|
|
175
|
+
rounded: boolean;
|
|
176
176
|
testId: string;
|
|
177
|
-
type: import('../../../
|
|
177
|
+
type: import('../../../types').CLButtonTypes;
|
|
178
178
|
onClick: (event?: Event) => void;
|
|
179
|
+
target: import('../../../types').CLLinkTarget;
|
|
180
|
+
size: CLSizes;
|
|
181
|
+
href: string;
|
|
182
|
+
active: boolean;
|
|
183
|
+
alignContent: import('../../../types').CLAlign;
|
|
179
184
|
ariaLabel: string;
|
|
185
|
+
as: import('../../../types').CLButtonTags;
|
|
180
186
|
busy: boolean;
|
|
181
|
-
rounded: boolean;
|
|
182
|
-
active: boolean;
|
|
183
|
-
alignContent: import('../../../index.ts').CLAlign;
|
|
184
|
-
as: import('../../../index.ts').CLButtonTags;
|
|
185
187
|
disabled: boolean;
|
|
186
|
-
|
|
187
|
-
|
|
188
|
+
elevated: boolean;
|
|
189
|
+
forwardRef: import('../../../types').CLButtonForwardRefFunction;
|
|
188
190
|
iconAfter: CLIconNames;
|
|
189
191
|
iconBefore: CLIconNames;
|
|
190
192
|
iconAfterSize: CLIconSizes;
|
|
191
193
|
iconSize: CLIconSizes;
|
|
192
194
|
pill: boolean;
|
|
193
|
-
size: CLSizes;
|
|
194
|
-
target: import('../../../index.ts').CLLinkTarget;
|
|
195
195
|
wrap: boolean;
|
|
196
|
-
}> & Omit<Readonly<import('../../Buttons/CLButton/CLButton.vue').CLButtonProps> & Readonly<{}>, "title" | "color" | "width" | "height" | "form" | "variant" | "borderRadius" | "
|
|
196
|
+
}> & Omit<Readonly<import('../../Buttons/CLButton/CLButton.vue').CLButtonProps> & Readonly<{}>, "title" | "color" | "width" | "height" | "form" | "variant" | "borderRadius" | "rounded" | "testId" | "type" | "onClick" | "target" | "size" | "href" | "active" | "alignContent" | "ariaLabel" | "as" | "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
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--clll-unit-0: 0;--clll-unit-0_5: .125rem;--clll-unit-1: .25rem;--clll-unit-1_5: .375rem;--clll-unit-2: .5rem;--clll-unit-2_5: .625rem;--clll-unit-3: .75rem;--clll-unit-3_5: .875rem;--clll-unit-4: 1rem;--clll-unit-4_5: 1.125rem;--clll-unit-5: 1.25rem;--clll-unit-5_5: 1.375rem;--clll-unit-6: 1.5rem;--clll-unit-6_5: 1.625rem;--clll-unit-7: 1.75rem;--clll-unit-7_5: 1.875rem;--clll-unit-8: 2rem;--clll-unit-8_5: 2.125rem;--clll-unit-9_5: 2.375rem;--clll-unit-10: 2.5rem;--clll-unit-10_5: 2.625rem;--clll-unit-12: 3rem;--clll-unit-14: 3.5rem;--clll-unit-14_5: 3.625rem;--clll-unit-18: 4.5rem}.form-addon-flex{display:flex;align-items:center;justify-content:center;pointer-events:none;user-select:none}.form-addon-flex--left{left:0}.form-addon-flex--right{right:0}.form-addon-flex--icon{z-index:10;box-sizing:border-box}.form-addon-flex--string{position:relative}.form-addon-radius--left-full{border-top-left-radius:var(--clll-rounded-full);border-bottom-left-radius:var(--clll-rounded-full)}.form-addon-radius--right-full{border-top-right-radius:var(--clll-rounded-full);border-bottom-right-radius:var(--clll-rounded-full)}.form-addon-radius--left-lg{border-top-left-radius:var(--clll-rounded-lg);border-bottom-left-radius:var(--clll-rounded-lg)}.form-addon-radius--right-lg{border-top-right-radius:var(--clll-rounded-lg);border-bottom-right-radius:var(--clll-rounded-lg)}.form-addon-radius--left-md{border-top-left-radius:var(--clll-rounded-md);border-bottom-left-radius:var(--clll-rounded-md)}.form-addon-radius--right-md{border-top-right-radius:var(--clll-rounded-md);border-bottom-right-radius:var(--clll-rounded-md)}.form-addon-radius--left-sm{border-top-left-radius:var(--clll-rounded-sm);border-bottom-left-radius:var(--clll-rounded-sm)}.form-addon-radius--right-sm{border-top-right-radius:var(--clll-rounded-sm);border-bottom-right-radius:var(--clll-rounded-sm)}.form-addon-radius--left-xs{border-top-left-radius:var(--clll-rounded-xs);border-bottom-left-radius:var(--clll-rounded-xs)}.form-addon-radius--right-xs{border-top-right-radius:var(--clll-rounded-xs);border-bottom-right-radius:var(--clll-rounded-xs)}.form-addon-radius--left-xl{border-top-left-radius:var(--clll-rounded-xl);border-bottom-left-radius:var(--clll-rounded-xl)}.form-addon-radius--right-xl{border-top-right-radius:var(--clll-rounded-xl);border-bottom-right-radius:var(--clll-rounded-xl)}.form-addon-radius--left-2xl{border-top-left-radius:var(--clll-rounded-2xl);border-bottom-left-radius:var(--clll-rounded-2xl)}.form-addon-radius--right-2xl{border-top-right-radius:var(--clll-rounded-2xl);border-bottom-right-radius:var(--clll-rounded-2xl)}.form-addon-radius--left-3xl{border-top-left-radius:var(--clll-rounded-3xl);border-bottom-left-radius:var(--clll-rounded-3xl)}.form-addon-radius--right-3xl{border-top-right-radius:var(--clll-rounded-3xl);border-bottom-right-radius:var(--clll-rounded-3xl)}.form-addon-radius--left-none{border-top-left-radius:0;border-bottom-left-radius:0}.form-addon-radius--right-none{border-top-right-radius:0;border-bottom-right-radius:0}.form-control-flex{display:inline-flex;align-items:center;justify-content:center;position:relative}.form-counter-flex{display:flex;align-items:center;justify-content:flex-end;max-width:100px;box-sizing:border-box;flex:1;position:relative;pointer-events:none;user-select:none}.form-select-icon-flex{position:absolute;top:0;right:0;height:100%;display:flex;align-items:center;pointer-events:none}:root{--clll-rounded-full: 9999px;--clll-rounded-none: 0;--clll-rounded-xs: var(--clll-unit-1);--clll-rounded-sm: var(--clll-unit-2);--clll-rounded-md: var(--clll-unit-3);--clll-rounded-lg: var(--clll-unit-4);--clll-rounded-xl: var(--clll-unit-5);--clll-rounded-2xl: var(--clll-unit-6);--clll-rounded-3xl: var(--clll-unit-7);--clll-px-xs: var(--clll-unit-1_5);--clll-px-sm: var(--clll-unit-2);--clll-px-md: var(--clll-unit-2_5);--clll-px-lg: var(--clll-unit-3);--clll-px-xl: var(--clll-unit-3_5);--clll-px-2xl: var(--clll-unit-4);--clll-px-3xl: var(--clll-unit-4_5);--clll-px-s-xs: calc(var(--clll-px-xs) * .5);--clll-px-s-sm: calc(var(--clll-px-sm) * .5);--clll-py-xs: calc(var(--clll-unit-1) - 1px);--clll-py-sm: calc(var(--clll-unit-1_5) - 1px);--clll-py-md: calc(var(--clll-unit-2) - 1px);--clll-py-lg: var(--clll-unit-2);--clll-py-xl: var(--clll-unit-2_5);--clll-py-2xl: var(--clll-unit-3);--clll-py-3xl: var(--clll-unit-3_5);--clll-py-4xl: var(--clll-unit-4);--clll-py-s-xs: calc(var(--clll-py-xs) * .5);--clll-z-index-10: 10}.clll-toast{bottom:var(--clll-unit-4);position:fixed;overflow:hidden;width:90%;left:0;right:0;margin-left:auto;margin-right:auto;transform:translateY(100vh);transition-property:all;transition-duration:.3s;transition-timing-function:ease;box-shadow:0 0 var(--clll-unit-3) var(--clll-unit-0_5) #0000001f,0 0 var(--clll-unit-1) var(--clll-unit-0_5) #00000005}@media (min-width: 768px){.clll-toast{width:var(--v1fbbc974)}}@media (min-width: 768px){.clll-toast.clll-toast--bottom-left{left:var(--clll-unit-8);bottom:var(--clll-unit-8);margin-left:0}}@media (min-width: 768px){.clll-toast.clll-toast--bottom-center{left:0;right:0;margin-left:auto;margin-right:auto;bottom:var(--clll-unit-8)}}@media (min-width: 768px){.clll-toast.clll-toast--bottom-right{right:var(--clll-unit-8);bottom:var(--clll-unit-8);margin-right:0}}@media (min-width: 768px){.clll-toast.clll-toast--top-left{left:var(--clll-unit-8);top:var(--clll-unit-8);bottom:auto;transform:translateY(-20vh);margin-left:0}}@media (min-width: 768px){.clll-toast.clll-toast--top-center{left:0;right:0;margin-left:auto;margin-right:auto;top:var(--clll-unit-8);bottom:auto;transform:translateY(-20vh)}}@media (min-width: 768px){.clll-toast.clll-toast--top-right{right:var(--clll-unit-8);top:var(--clll-unit-8);bottom:auto;transform:translateY(-20vh);margin-right:0}}.clll-toast .clll-toast__body{display:flex;align-items:center;padding-top:var(--clll-unit-2_5);padding-left:var(--clll-unit-4);padding-bottom:var(--clll-unit-2_5);padding-right:var(--clll-unit-4)}.clll-toast .clll-toast__body>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-4)}.clll-toast .clll-toast__body .clll-toast__content{display:flex;align-items:center;flex:1 1 0%}.clll-toast .clll-toast__body .clll-toast__content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-4)}.clll-toast .clll-toast__body .clll-toast__content .clll-toast__icon{display:flex;flex-direction:column;align-items:center;padding:var(--clll-unit-2);border-radius:var(--clll-rounded-full)}.clll-toast .clll-toast__body .clll-toast__content .clll-toast__text{flex:1 1 0%}.clll-toast .clll-toast__timer-bar{position:relative;left:0;bottom:0;height:var(--clll-unit-1);transform-origin:left;width:100%;transform:translateZ(0) rotate(0) skew(0) skewY(0) scaleX(0) scaleY(0)}.clll-toast.clll-toast--has-icon .clll-toast__body{padding-top:var(--clll-unit-2);padding-bottom:var(--clll-unit-2)}.clll-toast.clll-toast--has-titleandmessage .clll-toast__body{padding-top:var(--clll-unit-4);padding-bottom:var(--clll-unit-4)}.clll-toast.clll-toast--has-titleandmessage .clll-toast__body .clll-toast__content .clll-toast__text .clll-text--large{font-weight:500}.clll-toast.clll-toast--mounted{transform:translateY(0)}.clll-toast.clll-toast--rounded{border-radius:var(--clll-rounded-sm)}.clll-toast.clll-toast--rounded.clll-toast--rounded-full,.clll-toast.clll-toast--rounded.clll-toast--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-toast.clll-toast--rounded.clll-toast--rounded-lg,.clll-toast.clll-toast--rounded.clll-toast--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-toast.clll-toast--rounded.clll-toast--rounded-md,.clll-toast.clll-toast--rounded.clll-toast--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-toast.clll-toast--rounded.clll-toast--rounded-sm,.clll-toast.clll-toast--rounded.clll-toast--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-toast.clll-toast--rounded.clll-toast--rounded-xs,.clll-toast.clll-toast--rounded.clll-toast--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-toast.clll-toast--rounded.clll-toast--rounded-xl,.clll-toast.clll-toast--rounded.clll-toast--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-toast.clll-toast--rounded.clll-toast--rounded-2xl,.clll-toast.clll-toast--rounded.clll-toast--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-toast.clll-toast--rounded.clll-toast--rounded-3xl,.clll-toast.clll-toast--rounded.clll-toast--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-toast.clll-toast--rounded.clll-toast--rounded-none,.clll-toast.clll-toast--rounded.clll-toast--rounded-none .clll-{border-radius:0}
|
|
@@ -3,10 +3,10 @@ declare const _default: import('vue').DefineComponent<CLToastProps, {}, {}, {},
|
|
|
3
3
|
color: CLColors;
|
|
4
4
|
width: string;
|
|
5
5
|
variant: CLColorVariants;
|
|
6
|
-
testId: string;
|
|
7
6
|
rounded: boolean;
|
|
8
|
-
|
|
7
|
+
testId: string;
|
|
9
8
|
position: CLToastPosition;
|
|
9
|
+
iconSize: CLIconSizes;
|
|
10
10
|
dismissTimer: number;
|
|
11
11
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
12
12
|
elem: HTMLOutputElement;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent as a, watch as o, createBlock as s, openBlock as i, resolveDynamicComponent as m, withCtx as n, renderSlot as d } from "vue";
|
|
2
|
+
import { s as f, a as l, b as c, c as h, d as p } from "../../../chunks/base-theme-C9_Hz5HW.js";
|
|
3
|
+
import { D as k } from "../../../chunks/base-theme-C9_Hz5HW.js";
|
|
4
|
+
const v = /* @__PURE__ */ a({
|
|
5
|
+
__name: "CLThemeProvider",
|
|
6
|
+
props: {
|
|
7
|
+
tag: { default: "div" },
|
|
8
|
+
themeConfig: {}
|
|
9
|
+
},
|
|
10
|
+
setup(r) {
|
|
11
|
+
const t = r;
|
|
12
|
+
return f(t.themeConfig), o(
|
|
13
|
+
() => t.themeConfig?.borderRadius,
|
|
14
|
+
(e) => {
|
|
15
|
+
l(e);
|
|
16
|
+
}
|
|
17
|
+
), o(
|
|
18
|
+
() => t.themeConfig?.colors,
|
|
19
|
+
(e) => {
|
|
20
|
+
e && c(e);
|
|
21
|
+
}
|
|
22
|
+
), o(
|
|
23
|
+
() => t.themeConfig?.darkMode,
|
|
24
|
+
(e) => {
|
|
25
|
+
e !== void 0 && h(e);
|
|
26
|
+
}
|
|
27
|
+
), o(
|
|
28
|
+
() => t.themeConfig?.fontFamily,
|
|
29
|
+
(e) => {
|
|
30
|
+
p(e);
|
|
31
|
+
}
|
|
32
|
+
), (e, C) => (i(), s(m(r.tag), { class: "clll-theme-provider" }, {
|
|
33
|
+
default: n(() => [
|
|
34
|
+
d(e.$slots, "default")
|
|
35
|
+
]),
|
|
36
|
+
_: 3
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
v as CLThemeProvider,
|
|
42
|
+
k as DEFAULT_THEME,
|
|
43
|
+
v as default
|
|
44
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CLThemeConfig } from '../../../index.ts';
|
|
2
|
+
/** The `<CLThemeProvider />` component configures the visual look of your application, it also facilitates the use of custom themes. You should wrap your entire application with it. It will apply the default theme required for all Callaloo components.*/
|
|
3
|
+
interface Props {
|
|
4
|
+
/** An HTML element used as the root element. The default tag used is `<div>`. */
|
|
5
|
+
tag?: string;
|
|
6
|
+
/** A theme configuration object. */
|
|
7
|
+
themeConfig?: CLThemeConfig;
|
|
8
|
+
}
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: any;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
19
|
+
tag: string;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CLBorderRadius, CLColorVariants, CLMode, CLPalette, CLThemeConfig } from '../../../index.ts';
|
|
2
|
+
export declare const DEFAULT_THEME: CLThemeConfig;
|
|
3
|
+
type ColorMap = Record<CLColorVariants, Record<CLMode, ColorModesKeys>>;
|
|
4
|
+
export interface ColorModesKeys {
|
|
5
|
+
bg?: number;
|
|
6
|
+
border?: number;
|
|
7
|
+
borderHover?: number;
|
|
8
|
+
disabled?: number;
|
|
9
|
+
focus?: number;
|
|
10
|
+
hover?: number;
|
|
11
|
+
shadow?: number;
|
|
12
|
+
text?: number;
|
|
13
|
+
textBody?: number;
|
|
14
|
+
textDisabled?: number;
|
|
15
|
+
}
|
|
16
|
+
export declare const COLOR_VARIANTS_MAP: ColorMap;
|
|
17
|
+
export declare const setBorderRadius: (radius?: CLBorderRadius) => void;
|
|
18
|
+
export declare const setColors: (colors: CLPalette) => void;
|
|
19
|
+
export declare const setDarkMode: (enabled: boolean) => void;
|
|
20
|
+
export declare const setFontFamily: (font?: string) => void;
|
|
21
|
+
export declare const setupTheme: (config?: CLThemeConfig) => void;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as CLThemeProviderComponent } from './CLThemeProvider.vue';
|
|
2
|
+
import { DEFAULT_THEME } from './base-theme';
|
|
3
|
+
export { CLThemeProviderComponent as CLThemeProvider };
|
|
4
|
+
export { DEFAULT_THEME };
|
|
5
|
+
export default CLThemeProviderComponent;
|
|
6
|
+
export type CLThemeProvider = InstanceType<typeof CLThemeProviderComponent>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
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";
|
|
2
|
+
import { _ as $ } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-DOI4DZGg.js";
|
|
3
|
+
const x = { class: "clll-toast-provider" }, N = /* @__PURE__ */ L({
|
|
4
|
+
name: "CLToastProvider",
|
|
5
|
+
__name: "CLToastProvider",
|
|
6
|
+
props: {
|
|
7
|
+
dismissTimer: {},
|
|
8
|
+
position: {}
|
|
9
|
+
},
|
|
10
|
+
setup(b) {
|
|
11
|
+
const f = b, a = i(), t = i(), l = i(), s = i(), v = i(), n = i(), c = i(), u = i(), r = i(), d = i(), m = i(), o = i(!1), _ = () => {
|
|
12
|
+
a.value = void 0, t.value = void 0, l.value = void 0, s.value = void 0, v.value = void 0, n.value = void 0, c.value = void 0, u.value = void 0, r.value = void 0, d.value = void 0, m.value = void 0;
|
|
13
|
+
}, C = (e) => {
|
|
14
|
+
_(), a.value = e.actionLabel, t.value = e.color, l.value = e.dismissTimer ?? f.dismissTimer, s.value = e.icon, v.value = e.iconSize, n.value = e.message, c.value = e.onAction, u.value = e.position ?? f.position, r.value = e.title, d.value = e.variant, m.value = e.width, o.value = !0;
|
|
15
|
+
}, h = () => {
|
|
16
|
+
o.value = !1, _();
|
|
17
|
+
};
|
|
18
|
+
return g("clll-toast", {
|
|
19
|
+
visible: o,
|
|
20
|
+
showToast: C,
|
|
21
|
+
hideToast: h
|
|
22
|
+
}), (e, y) => (p(), k("div", x, [
|
|
23
|
+
o.value ? (p(), z(A($), {
|
|
24
|
+
key: 0,
|
|
25
|
+
"action-label": a.value,
|
|
26
|
+
color: t.value,
|
|
27
|
+
"dismiss-timer": l.value,
|
|
28
|
+
icon: s.value,
|
|
29
|
+
"icon-size": v.value,
|
|
30
|
+
message: n.value,
|
|
31
|
+
"on-action": c.value,
|
|
32
|
+
"on-dismiss": h,
|
|
33
|
+
position: u.value,
|
|
34
|
+
title: r.value,
|
|
35
|
+
variant: d.value,
|
|
36
|
+
width: m.value
|
|
37
|
+
}, null, 8, ["action-label", "color", "dismiss-timer", "icon", "icon-size", "message", "on-action", "position", "title", "variant", "width"])) : B("", !0),
|
|
38
|
+
S(e.$slots, "default")
|
|
39
|
+
]));
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
N as CLToastProvider,
|
|
44
|
+
N as default
|
|
45
|
+
};
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CLToastPosition, CLToastProps } from '../../../index.ts';
|
|
1
|
+
import { CLToastPosition } from '../../../index.ts';
|
|
3
2
|
interface Props {
|
|
4
3
|
dismissTimer?: number;
|
|
5
4
|
position?: CLToastPosition;
|
|
6
5
|
}
|
|
7
|
-
export interface CLToastProviderOutput {
|
|
8
|
-
visible: Ref<boolean>;
|
|
9
|
-
showToast: (newToastProps: Omit<CLToastProps, 'onDismiss'>) => void;
|
|
10
|
-
hideToast: () => void;
|
|
11
|
-
}
|
|
12
6
|
declare function __VLS_template(): {
|
|
13
7
|
attrs: Partial<{}>;
|
|
14
8
|
slots: {
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { CLThemeProvider, CLToastProvider };
|
|
4
|
-
export type { CLToastProviderOutput } from './Toast/CLToastProvider.vue';
|
|
5
|
-
export type CLThemeProvider = InstanceType<typeof CLThemeProvider>;
|
|
6
|
-
export type CLToastProvider = InstanceType<typeof CLToastProvider>;
|
|
1
|
+
export { CLThemeProvider } from './CLThemeProvider/index';
|
|
2
|
+
export { CLToastProvider } from './CLToastProvider/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--clll-unit-0: 0;--clll-unit-0_5: .125rem;--clll-unit-1: .25rem;--clll-unit-1_5: .375rem;--clll-unit-2: .5rem;--clll-unit-2_5: .625rem;--clll-unit-3: .75rem;--clll-unit-3_5: .875rem;--clll-unit-4: 1rem;--clll-unit-4_5: 1.125rem;--clll-unit-5: 1.25rem;--clll-unit-5_5: 1.375rem;--clll-unit-6: 1.5rem;--clll-unit-6_5: 1.625rem;--clll-unit-7: 1.75rem;--clll-unit-7_5: 1.875rem;--clll-unit-8: 2rem;--clll-unit-8_5: 2.125rem;--clll-unit-9_5: 2.375rem;--clll-unit-10: 2.5rem;--clll-unit-10_5: 2.625rem;--clll-unit-12: 3rem;--clll-unit-14: 3.5rem;--clll-unit-14_5: 3.625rem;--clll-unit-18: 4.5rem}.form-addon-flex{display:flex;align-items:center;justify-content:center;pointer-events:none;user-select:none}.form-addon-flex--left{left:0}.form-addon-flex--right{right:0}.form-addon-flex--icon{z-index:10;box-sizing:border-box}.form-addon-flex--string{position:relative}.form-addon-radius--left-full{border-top-left-radius:var(--clll-rounded-full);border-bottom-left-radius:var(--clll-rounded-full)}.form-addon-radius--right-full{border-top-right-radius:var(--clll-rounded-full);border-bottom-right-radius:var(--clll-rounded-full)}.form-addon-radius--left-lg{border-top-left-radius:var(--clll-rounded-lg);border-bottom-left-radius:var(--clll-rounded-lg)}.form-addon-radius--right-lg{border-top-right-radius:var(--clll-rounded-lg);border-bottom-right-radius:var(--clll-rounded-lg)}.form-addon-radius--left-md{border-top-left-radius:var(--clll-rounded-md);border-bottom-left-radius:var(--clll-rounded-md)}.form-addon-radius--right-md{border-top-right-radius:var(--clll-rounded-md);border-bottom-right-radius:var(--clll-rounded-md)}.form-addon-radius--left-sm{border-top-left-radius:var(--clll-rounded-sm);border-bottom-left-radius:var(--clll-rounded-sm)}.form-addon-radius--right-sm{border-top-right-radius:var(--clll-rounded-sm);border-bottom-right-radius:var(--clll-rounded-sm)}.form-addon-radius--left-xs{border-top-left-radius:var(--clll-rounded-xs);border-bottom-left-radius:var(--clll-rounded-xs)}.form-addon-radius--right-xs{border-top-right-radius:var(--clll-rounded-xs);border-bottom-right-radius:var(--clll-rounded-xs)}.form-addon-radius--left-xl{border-top-left-radius:var(--clll-rounded-xl);border-bottom-left-radius:var(--clll-rounded-xl)}.form-addon-radius--right-xl{border-top-right-radius:var(--clll-rounded-xl);border-bottom-right-radius:var(--clll-rounded-xl)}.form-addon-radius--left-2xl{border-top-left-radius:var(--clll-rounded-2xl);border-bottom-left-radius:var(--clll-rounded-2xl)}.form-addon-radius--right-2xl{border-top-right-radius:var(--clll-rounded-2xl);border-bottom-right-radius:var(--clll-rounded-2xl)}.form-addon-radius--left-3xl{border-top-left-radius:var(--clll-rounded-3xl);border-bottom-left-radius:var(--clll-rounded-3xl)}.form-addon-radius--right-3xl{border-top-right-radius:var(--clll-rounded-3xl);border-bottom-right-radius:var(--clll-rounded-3xl)}.form-addon-radius--left-none{border-top-left-radius:0;border-bottom-left-radius:0}.form-addon-radius--right-none{border-top-right-radius:0;border-bottom-right-radius:0}.form-control-flex{display:inline-flex;align-items:center;justify-content:center;position:relative}.form-counter-flex{display:flex;align-items:center;justify-content:flex-end;max-width:100px;box-sizing:border-box;flex:1;position:relative;pointer-events:none;user-select:none}.form-select-icon-flex{position:absolute;top:0;right:0;height:100%;display:flex;align-items:center;pointer-events:none}:root{--clll-rounded-full: 9999px;--clll-rounded-none: 0;--clll-rounded-xs: var(--clll-unit-1);--clll-rounded-sm: var(--clll-unit-2);--clll-rounded-md: var(--clll-unit-3);--clll-rounded-lg: var(--clll-unit-4);--clll-rounded-xl: var(--clll-unit-5);--clll-rounded-2xl: var(--clll-unit-6);--clll-rounded-3xl: var(--clll-unit-7);--clll-px-xs: var(--clll-unit-1_5);--clll-px-sm: var(--clll-unit-2);--clll-px-md: var(--clll-unit-2_5);--clll-px-lg: var(--clll-unit-3);--clll-px-xl: var(--clll-unit-3_5);--clll-px-2xl: var(--clll-unit-4);--clll-px-3xl: var(--clll-unit-4_5);--clll-px-s-xs: calc(var(--clll-px-xs) * .5);--clll-px-s-sm: calc(var(--clll-px-sm) * .5);--clll-py-xs: calc(var(--clll-unit-1) - 1px);--clll-py-sm: calc(var(--clll-unit-1_5) - 1px);--clll-py-md: calc(var(--clll-unit-2) - 1px);--clll-py-lg: var(--clll-unit-2);--clll-py-xl: var(--clll-unit-2_5);--clll-py-2xl: var(--clll-unit-3);--clll-py-3xl: var(--clll-unit-3_5);--clll-py-4xl: var(--clll-unit-4);--clll-py-s-xs: calc(var(--clll-py-xs) * .5);--clll-z-index-10: 10}.clll-heading{font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased;margin:0}.clll-heading.clll-heading--pagetitle{font-weight:700;font-size:var(--clll-unit-12);line-height:var(--clll-unit-14_5)}.clll-heading.clll-heading--title{font-weight:600;font-size:var(--clll-unit-8);line-height:var(--clll-unit-10_5)}.clll-heading.clll-heading--section{font-weight:600;font-size:var(--clll-unit-5);line-height:var(--clll-unit-7_5)}.clll-heading.clll-heading--subsection{font-weight:500;font-size:var(--clll-unit-4);line-height:var(--clll-unit-6_5)}.clll-heading.clll-heading--small{font-weight:700;font-size:var(--clll-unit-3);line-height:var(--clll-unit-5)}.clll-heading.clll-heading--medium{font-weight:700;font-size:var(--clll-unit-3_5);line-height:var(--clll-unit-6)}.clll-heading.clll-heading--large{font-weight:700;font-size:var(--clll-unit-4_5);line-height:var(--clll-unit-7)}.clll-heading.clll-heading--xlarge{font-weight:700;font-size:var(--clll-unit-5);line-height:var(--clll-unit-7_5)}.clll-heading.clll-heading--wrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clll-heading.clll-heading--bolder{font-weight:900}.clll-heading.clll-heading--left{text-align:left}.clll-heading.clll-heading--center{text-align:center}.clll-heading.clll-heading--right{text-align:right}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--clll-unit-0: 0;--clll-unit-0_5: .125rem;--clll-unit-1: .25rem;--clll-unit-1_5: .375rem;--clll-unit-2: .5rem;--clll-unit-2_5: .625rem;--clll-unit-3: .75rem;--clll-unit-3_5: .875rem;--clll-unit-4: 1rem;--clll-unit-4_5: 1.125rem;--clll-unit-5: 1.25rem;--clll-unit-5_5: 1.375rem;--clll-unit-6: 1.5rem;--clll-unit-6_5: 1.625rem;--clll-unit-7: 1.75rem;--clll-unit-7_5: 1.875rem;--clll-unit-8: 2rem;--clll-unit-8_5: 2.125rem;--clll-unit-9_5: 2.375rem;--clll-unit-10: 2.5rem;--clll-unit-10_5: 2.625rem;--clll-unit-12: 3rem;--clll-unit-14: 3.5rem;--clll-unit-14_5: 3.625rem;--clll-unit-18: 4.5rem}.form-addon-flex{display:flex;align-items:center;justify-content:center;pointer-events:none;user-select:none}.form-addon-flex--left{left:0}.form-addon-flex--right{right:0}.form-addon-flex--icon{z-index:10;box-sizing:border-box}.form-addon-flex--string{position:relative}.form-addon-radius--left-full{border-top-left-radius:var(--clll-rounded-full);border-bottom-left-radius:var(--clll-rounded-full)}.form-addon-radius--right-full{border-top-right-radius:var(--clll-rounded-full);border-bottom-right-radius:var(--clll-rounded-full)}.form-addon-radius--left-lg{border-top-left-radius:var(--clll-rounded-lg);border-bottom-left-radius:var(--clll-rounded-lg)}.form-addon-radius--right-lg{border-top-right-radius:var(--clll-rounded-lg);border-bottom-right-radius:var(--clll-rounded-lg)}.form-addon-radius--left-md{border-top-left-radius:var(--clll-rounded-md);border-bottom-left-radius:var(--clll-rounded-md)}.form-addon-radius--right-md{border-top-right-radius:var(--clll-rounded-md);border-bottom-right-radius:var(--clll-rounded-md)}.form-addon-radius--left-sm{border-top-left-radius:var(--clll-rounded-sm);border-bottom-left-radius:var(--clll-rounded-sm)}.form-addon-radius--right-sm{border-top-right-radius:var(--clll-rounded-sm);border-bottom-right-radius:var(--clll-rounded-sm)}.form-addon-radius--left-xs{border-top-left-radius:var(--clll-rounded-xs);border-bottom-left-radius:var(--clll-rounded-xs)}.form-addon-radius--right-xs{border-top-right-radius:var(--clll-rounded-xs);border-bottom-right-radius:var(--clll-rounded-xs)}.form-addon-radius--left-xl{border-top-left-radius:var(--clll-rounded-xl);border-bottom-left-radius:var(--clll-rounded-xl)}.form-addon-radius--right-xl{border-top-right-radius:var(--clll-rounded-xl);border-bottom-right-radius:var(--clll-rounded-xl)}.form-addon-radius--left-2xl{border-top-left-radius:var(--clll-rounded-2xl);border-bottom-left-radius:var(--clll-rounded-2xl)}.form-addon-radius--right-2xl{border-top-right-radius:var(--clll-rounded-2xl);border-bottom-right-radius:var(--clll-rounded-2xl)}.form-addon-radius--left-3xl{border-top-left-radius:var(--clll-rounded-3xl);border-bottom-left-radius:var(--clll-rounded-3xl)}.form-addon-radius--right-3xl{border-top-right-radius:var(--clll-rounded-3xl);border-bottom-right-radius:var(--clll-rounded-3xl)}.form-addon-radius--left-none{border-top-left-radius:0;border-bottom-left-radius:0}.form-addon-radius--right-none{border-top-right-radius:0;border-bottom-right-radius:0}.form-control-flex{display:inline-flex;align-items:center;justify-content:center;position:relative}.form-counter-flex{display:flex;align-items:center;justify-content:flex-end;max-width:100px;box-sizing:border-box;flex:1;position:relative;pointer-events:none;user-select:none}.form-select-icon-flex{position:absolute;top:0;right:0;height:100%;display:flex;align-items:center;pointer-events:none}:root{--clll-rounded-full: 9999px;--clll-rounded-none: 0;--clll-rounded-xs: var(--clll-unit-1);--clll-rounded-sm: var(--clll-unit-2);--clll-rounded-md: var(--clll-unit-3);--clll-rounded-lg: var(--clll-unit-4);--clll-rounded-xl: var(--clll-unit-5);--clll-rounded-2xl: var(--clll-unit-6);--clll-rounded-3xl: var(--clll-unit-7);--clll-px-xs: var(--clll-unit-1_5);--clll-px-sm: var(--clll-unit-2);--clll-px-md: var(--clll-unit-2_5);--clll-px-lg: var(--clll-unit-3);--clll-px-xl: var(--clll-unit-3_5);--clll-px-2xl: var(--clll-unit-4);--clll-px-3xl: var(--clll-unit-4_5);--clll-px-s-xs: calc(var(--clll-px-xs) * .5);--clll-px-s-sm: calc(var(--clll-px-sm) * .5);--clll-py-xs: calc(var(--clll-unit-1) - 1px);--clll-py-sm: calc(var(--clll-unit-1_5) - 1px);--clll-py-md: calc(var(--clll-unit-2) - 1px);--clll-py-lg: var(--clll-unit-2);--clll-py-xl: var(--clll-unit-2_5);--clll-py-2xl: var(--clll-unit-3);--clll-py-3xl: var(--clll-unit-3_5);--clll-py-4xl: var(--clll-unit-4);--clll-py-s-xs: calc(var(--clll-py-xs) * .5);--clll-z-index-10: 10}.clll-text{font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased;margin:0;font-weight:400}.clll-text.clll-text--body{font-size:var(--clll-unit-4);line-height:var(--clll-unit-6_5)}.clll-text.clll-text--summary{font-size:var(--clll-unit-3_5);line-height:var(--clll-unit-6)}.clll-text.clll-text--tiny{font-size:var(--clll-unit-2_5);line-height:var(--clll-unit-3_5)}.clll-text.clll-text--small{font-size:var(--clll-unit-3);line-height:var(--clll-unit-5)}.clll-text.clll-text--medium{font-size:var(--clll-unit-3_5);line-height:var(--clll-unit-6)}.clll-text.clll-text--large{font-size:var(--clll-unit-4_5);line-height:var(--clll-unit-7)}.clll-text.clll-text--xlarge{font-size:var(--clll-unit-5);line-height:var(--clll-unit-7_5)}.clll-text.clll-text--wrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clll-text.clll-text--bold{font-weight:700}.clll-text.clll-text--bolder{font-weight:900}.clll-text.clll-text--light{font-weight:300}.clll-text.clll-text--mediumbold{font-weight:500}.clll-text.clll-text--left{text-align:left}.clll-text.clll-text--center{text-align:center}.clll-text.clll-text--right{text-align:right}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { CLBorderRadius, CLPalette } from '../index.ts';
|
|
3
|
+
export interface ThemeState {
|
|
4
|
+
borderRadius: Ref<CLBorderRadius | undefined>;
|
|
5
|
+
colors: Ref<CLPalette>;
|
|
6
|
+
darkMode: Ref<boolean | undefined>;
|
|
7
|
+
fontFamily: Ref<string | undefined>;
|
|
8
|
+
setBorderRadius: (radius?: CLBorderRadius) => void;
|
|
9
|
+
setColors: (colors: CLPalette) => void;
|
|
10
|
+
setDarkMode: (enabled: boolean) => void;
|
|
11
|
+
setFontFamily: (font?: string) => void;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Composable to access the theme state from anywhere in the application.
|
|
15
|
+
* Must be used within a CLThemeProvider component.
|
|
16
|
+
*
|
|
17
|
+
* @returns Theme state object with refs and setter functions
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const theme = useTheme()
|
|
22
|
+
* console.log(theme.darkMode.value)
|
|
23
|
+
* theme.setDarkMode(true)
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare const useTheme: () => ThemeState;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,2 @@
|
|
|
1
1
|
export { CLAlign, CLBorderRadius, CLButtonTypes, CLCardTypes, CLCharCounterLayout, CLColors, CLColorVariants, CLHeadingLevels, CLHeadingTypes, CLIconSizes, CLIconNames, CLInputTypes, CLLinkTarget, CLLoading, CLMessageType, CLMode, CLOrientation, CLOverflow, CLOrder, CLPaginationType, CLPlacement, CLPosition, CLSizes, CLTableTypes, CLTextTypes, CLToastPosition } from './types';
|
|
2
2
|
export type { CLBlockTextHtmlTags, CLButtonTags, CLButtonForwardRefFunction, CLGenericFunction, CLGenericFocusFunction, CLGenericInputFunction, CLInlineTextHtmlTags, CLNavItem, CLOption, CLPalette, CLPaletteKeys, CLShades, CLTextHtmlTags, CLThemeConfig, CLToastProps } from './types';
|
|
3
|
-
export { CLBadge, CLBanner, CLPill, CLProgress } from './components/Indicators';
|
|
4
|
-
export { CLA11yButton, CLButton } from './components/Buttons';
|
|
5
|
-
export { CLCard, CLCarousel, CLDisclosure } from './components/Containers';
|
|
6
|
-
export { CLCheckbox, CLInput, CLRadioButton, CLSelect, CLTextArea } from './components/Form';
|
|
7
|
-
export { CLHeading, CLText } from './components/Typography';
|
|
8
|
-
export { CLIcon } from './components/Assets';
|
|
9
|
-
export { CLLink, CLNavLink, CLNavSection } from './components/Navigation';
|
|
10
|
-
export { CLDropdownMenu, CLToast } from './components/Popups';
|
|
11
|
-
export { CLModal } from './components/Modals';
|
|
12
|
-
export { CLSkeleton, CLSpinner } from './components/Loading';
|
|
13
|
-
export { CLTable, CLTableBody, CLTableCell, CLTableFooter, CLTableHeader, CLTableNestedCell, CLTableRow } from './components/Table';
|
|
14
|
-
export { CLThemeProvider } from './components/Providers';
|
|
15
|
-
export { CLToastProvider, type CLToastProviderOutput } from './components/Providers';
|
|
16
|
-
export { useToast } from './composables/useToast';
|
|
17
|
-
export { DEFAULT_THEME, useTheme } from './components/Providers/Theme/base-theme';
|