@codeandfunction/callaloo 2.0.0 → 2.1.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/dist/assets/styles.css +1 -0
- package/dist/components/Assets/CLIcon.vue.d.ts +16 -0
- package/dist/components/Assets/index.d.ts +3 -0
- package/dist/components/Assets/utils.d.ts +6 -0
- package/dist/components/Buttons/CLA11yButton.vue.d.ts +39 -0
- package/dist/components/Buttons/CLButton.vue.d.ts +258 -0
- package/dist/components/Buttons/index.d.ts +5 -0
- package/dist/components/Buttons/utils.d.ts +8 -0
- package/dist/components/Containers/CLCard.vue.d.ts +48 -0
- package/dist/components/Containers/CLDisclosure.vue.d.ts +78 -0
- package/dist/components/Containers/Carousel/CLCarousel.vue.d.ts +59 -0
- package/dist/components/Containers/Carousel/CLCarouselNavigation.vue.d.ts +21 -0
- package/dist/components/Containers/Carousel/CLCarouselSlide.vue.d.ts +17 -0
- package/dist/components/Containers/index.d.ts +9 -0
- package/dist/components/Containers/utils.d.ts +8 -0
- package/dist/components/Form/CLCheckbox.vue.d.ts +54 -0
- package/dist/components/Form/CLFormField.vue.d.ts +23 -0
- package/dist/components/Form/CLInput.vue.d.ts +87 -0
- package/dist/components/Form/CLInputMessages.vue.d.ts +10 -0
- package/dist/components/Form/CLRadioButton.vue.d.ts +54 -0
- package/dist/components/Form/CLSelect.vue.d.ts +60 -0
- package/dist/components/Form/CLTextArea.vue.d.ts +79 -0
- package/dist/components/Form/index.d.ts +11 -0
- package/dist/components/Form/utils.d.ts +12 -0
- package/dist/components/Indicators/CLBadge.vue.d.ts +24 -0
- package/dist/components/Indicators/CLBanner.vue.d.ts +13 -0
- package/dist/components/Indicators/CLPill.vue.d.ts +29 -0
- package/dist/components/Indicators/index.d.ts +7 -0
- package/dist/components/Indicators/utils.d.ts +9 -0
- package/dist/components/Loading/CLSkeleton.vue.d.ts +20 -0
- package/dist/components/Loading/CLSpinner.vue.d.ts +21 -0
- package/dist/components/Loading/index.d.ts +5 -0
- package/dist/components/Loading/utils.d.ts +6 -0
- package/dist/components/Modals/CLModal.vue.d.ts +46 -0
- package/dist/components/Modals/index.d.ts +3 -0
- package/dist/components/Modals/utils.d.ts +1 -0
- package/dist/components/Navigation/CLLink.vue.d.ts +45 -0
- package/dist/components/Navigation/CLNavLink.vue.d.ts +43 -0
- package/dist/components/Navigation/CLNavSection.vue.d.ts +17 -0
- package/dist/components/Navigation/index.d.ts +7 -0
- package/dist/components/Navigation/utils.d.ts +7 -0
- package/dist/components/Popups/CLDropdownMenu.vue.d.ts +543 -0
- package/dist/components/Popups/CLToast.vue.d.ts +13 -0
- package/dist/components/Popups/index.d.ts +5 -0
- package/dist/components/Popups/utils.d.ts +7 -0
- package/dist/components/Table/CLTable.vue.d.ts +46 -0
- package/dist/components/Table/CLTableBody.vue.d.ts +17 -0
- package/dist/components/Table/CLTableCell.vue.d.ts +41 -0
- package/dist/components/Table/CLTableFooter.vue.d.ts +17 -0
- package/dist/components/Table/CLTableHeader.vue.d.ts +17 -0
- package/dist/components/Table/CLTableNestedCell.vue.d.ts +20 -0
- package/dist/components/Table/CLTableRow.vue.d.ts +22 -0
- package/dist/components/Table/index.d.ts +15 -0
- package/dist/components/Table/utils.d.ts +1 -0
- package/dist/components/Theme/CLThemeProvider.vue.d.ts +28 -0
- package/dist/components/Theme/base-theme.d.ts +41 -0
- package/dist/components/Theme/index.d.ts +3 -0
- package/dist/components/Theme/utils.d.ts +38 -0
- package/dist/components/Typography/CLHeading.vue.d.ts +63 -0
- package/dist/components/Typography/CLText.vue.d.ts +86 -0
- package/dist/components/Typography/index.d.ts +5 -0
- package/dist/components/Typography/utils.d.ts +6 -0
- package/dist/composables/useDropdown.d.ts +14 -0
- package/dist/composables/useEsc.d.ts +9 -0
- package/dist/composables/useHasSlotContent.d.ts +1 -0
- package/dist/constants.d.ts +22 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +5287 -0
- package/dist/types.d.ts +586 -0
- package/dist/utils/helper.d.ts +16 -0
- package/package.json +3 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLTableSectionElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLTableSectionElement>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface Props {
|
|
2
|
+
truncate?: boolean;
|
|
3
|
+
}
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CLGenericFunction } from '../../index';
|
|
2
|
+
export interface Props {
|
|
3
|
+
/** The function to call when the row is clicked. */
|
|
4
|
+
onClick?: CLGenericFunction;
|
|
5
|
+
}
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: HTMLTableRowElement;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableRowElement>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as CLTable } from './CLTable.vue';
|
|
2
|
+
import { default as CLTableBody } from './CLTableBody.vue';
|
|
3
|
+
import { default as CLTableCell } from './CLTableCell.vue';
|
|
4
|
+
import { default as CLTableFooter } from './CLTableFooter.vue';
|
|
5
|
+
import { default as CLTableHeader } from './CLTableHeader.vue';
|
|
6
|
+
import { default as CLTableNestedCell } from './CLTableNestedCell.vue';
|
|
7
|
+
import { default as CLTableRow } from './CLTableRow.vue';
|
|
8
|
+
export { CLTable, CLTableBody, CLTableCell, CLTableFooter, CLTableHeader, CLTableNestedCell, CLTableRow, };
|
|
9
|
+
export type CLTable = InstanceType<typeof CLTable>;
|
|
10
|
+
export type CLTableBody = InstanceType<typeof CLTableBody>;
|
|
11
|
+
export type CLTableCell = InstanceType<typeof CLTableCell>;
|
|
12
|
+
export type CLTableFooter = InstanceType<typeof CLTableFooter>;
|
|
13
|
+
export type CLTableHeader = InstanceType<typeof CLTableHeader>;
|
|
14
|
+
export type CLTableNestedCell = InstanceType<typeof CLTableNestedCell>;
|
|
15
|
+
export type CLTableRow = InstanceType<typeof CLTableRow>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tableTheme: () => string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CLThemeConfig } from '../../index';
|
|
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
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
+
/** An HTML element used as the root element. The default tag used is `<div>`. */
|
|
5
|
+
tag: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
/** A theme configuration object. */
|
|
10
|
+
themeConfig: {
|
|
11
|
+
type: PropType<CLThemeConfig>;
|
|
12
|
+
};
|
|
13
|
+
}>, () => globalThis.VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
16
|
+
/** An HTML element used as the root element. The default tag used is `<div>`. */
|
|
17
|
+
tag: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
/** A theme configuration object. */
|
|
22
|
+
themeConfig: {
|
|
23
|
+
type: PropType<CLThemeConfig>;
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{}>, {
|
|
26
|
+
tag: string;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { CLColorVariants, CLMode, CLPalette, CLThemeConfig } from '../../index';
|
|
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
|
+
textDisabled?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const COLOR_VARIANTS_MAP: ColorMap;
|
|
16
|
+
export declare const setupTheme: (config?: CLThemeConfig) => void;
|
|
17
|
+
export declare const useTheme: () => {
|
|
18
|
+
colors: globalThis.Ref<{
|
|
19
|
+
primary?: import('../../types').Shades | undefined;
|
|
20
|
+
secondary?: import('../../types').Shades | undefined;
|
|
21
|
+
neutral?: import('../../types').Shades | undefined;
|
|
22
|
+
danger?: import('../../types').Shades | undefined;
|
|
23
|
+
warning?: import('../../types').Shades | undefined;
|
|
24
|
+
success?: import('../../types').Shades | undefined;
|
|
25
|
+
info?: import('../../types').Shades | undefined;
|
|
26
|
+
}, CLPalette | {
|
|
27
|
+
primary?: import('../../types').Shades | undefined;
|
|
28
|
+
secondary?: import('../../types').Shades | undefined;
|
|
29
|
+
neutral?: import('../../types').Shades | undefined;
|
|
30
|
+
danger?: import('../../types').Shades | undefined;
|
|
31
|
+
warning?: import('../../types').Shades | undefined;
|
|
32
|
+
success?: import('../../types').Shades | undefined;
|
|
33
|
+
info?: import('../../types').Shades | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
darkMode: globalThis.Ref<boolean | undefined, boolean | undefined>;
|
|
36
|
+
fontFamily: globalThis.Ref<string | undefined, string | undefined>;
|
|
37
|
+
setColors: (colors: CLPalette) => void;
|
|
38
|
+
setDarkMode: (enabled: boolean) => void;
|
|
39
|
+
setFontFamily: (font?: string) => void;
|
|
40
|
+
};
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CLColors, CLColorVariants, CLMode, CLPalette } from '../../index';
|
|
2
|
+
export declare const baseContentBox: () => string;
|
|
3
|
+
interface BaseFormElementProps {
|
|
4
|
+
backgroundColor?: string;
|
|
5
|
+
borderColor?: string;
|
|
6
|
+
placeholderColor?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const baseFormElement: ({ backgroundColor, borderColor, placeholderColor }: BaseFormElementProps) => string;
|
|
9
|
+
export declare const css: (template: TemplateStringsArray, ...args: any[]) => string;
|
|
10
|
+
export declare const cx: (...classNames: any[]) => string;
|
|
11
|
+
interface FocusProps {
|
|
12
|
+
borderColor?: string;
|
|
13
|
+
outlineWidth?: string;
|
|
14
|
+
outlineOffset?: string;
|
|
15
|
+
outlineColor?: string;
|
|
16
|
+
shadowWidth?: string;
|
|
17
|
+
shadowColor?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const focusTheme: ({ borderColor, outlineWidth, outlineOffset, outlineColor, shadowWidth, shadowColor }: FocusProps) => string;
|
|
20
|
+
interface GetColorsArgs {
|
|
21
|
+
color: CLColors;
|
|
22
|
+
colors: CLPalette;
|
|
23
|
+
mode: CLMode;
|
|
24
|
+
variant: CLColorVariants;
|
|
25
|
+
}
|
|
26
|
+
interface GetColorsReturn {
|
|
27
|
+
bg?: string;
|
|
28
|
+
border?: string;
|
|
29
|
+
borderHover?: string;
|
|
30
|
+
disabled?: string;
|
|
31
|
+
focus?: string;
|
|
32
|
+
hover?: string;
|
|
33
|
+
shadow?: string;
|
|
34
|
+
text?: string;
|
|
35
|
+
textDisabled?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const getColorValues: ({ color, colors, mode, variant }: GetColorsArgs) => GetColorsReturn | undefined;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { CLAlign, CLHeadingLevels, CLHeadingTypes, CLColors } from '../../index';
|
|
2
|
+
/**
|
|
3
|
+
* The `<CLHeading />` component renders text as a heading element.
|
|
4
|
+
*/
|
|
5
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
6
|
+
/** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
|
|
7
|
+
align: {
|
|
8
|
+
type: PropType<CLAlign>;
|
|
9
|
+
default: CLAlign;
|
|
10
|
+
};
|
|
11
|
+
/** Set the heading level. The property can be one of `CLHeadingLevels`, e.g. `CLHeadingLevels.H1` */
|
|
12
|
+
level: {
|
|
13
|
+
type: PropType<CLHeadingLevels>;
|
|
14
|
+
};
|
|
15
|
+
/** Sets a custom ID used for unit tests. */
|
|
16
|
+
testId: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
/** Set the color of the heading. The property can be one of `CLColors`, e.g. `CLColors.Neutral` */
|
|
21
|
+
color: {
|
|
22
|
+
type: PropType<CLColors>;
|
|
23
|
+
default: CLColors;
|
|
24
|
+
};
|
|
25
|
+
/** Set the type of the heading. The property can be one of `CLHeadingTypes`, e.g. `CLHeadingTypes.Title` */
|
|
26
|
+
type: {
|
|
27
|
+
type: PropType<CLHeadingTypes>;
|
|
28
|
+
default: CLHeadingTypes;
|
|
29
|
+
};
|
|
30
|
+
}>, {}, {}, {}, {
|
|
31
|
+
getLevel(): CLHeadingLevels;
|
|
32
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
33
|
+
/** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
|
|
34
|
+
align: {
|
|
35
|
+
type: PropType<CLAlign>;
|
|
36
|
+
default: CLAlign;
|
|
37
|
+
};
|
|
38
|
+
/** Set the heading level. The property can be one of `CLHeadingLevels`, e.g. `CLHeadingLevels.H1` */
|
|
39
|
+
level: {
|
|
40
|
+
type: PropType<CLHeadingLevels>;
|
|
41
|
+
};
|
|
42
|
+
/** Sets a custom ID used for unit tests. */
|
|
43
|
+
testId: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
/** Set the color of the heading. The property can be one of `CLColors`, e.g. `CLColors.Neutral` */
|
|
48
|
+
color: {
|
|
49
|
+
type: PropType<CLColors>;
|
|
50
|
+
default: CLColors;
|
|
51
|
+
};
|
|
52
|
+
/** Set the type of the heading. The property can be one of `CLHeadingTypes`, e.g. `CLHeadingTypes.Title` */
|
|
53
|
+
type: {
|
|
54
|
+
type: PropType<CLHeadingTypes>;
|
|
55
|
+
default: CLHeadingTypes;
|
|
56
|
+
};
|
|
57
|
+
}>> & Readonly<{}>, {
|
|
58
|
+
color: CLColors;
|
|
59
|
+
testId: string;
|
|
60
|
+
type: CLHeadingTypes;
|
|
61
|
+
align: CLAlign;
|
|
62
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
63
|
+
export default _default;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { CLAlign, CLTextHtmlTags, CLTextTypes, CLColors } from '../../index';
|
|
2
|
+
/**
|
|
3
|
+
* The `<CLText />` component renders a text element.
|
|
4
|
+
*/
|
|
5
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
6
|
+
/** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
|
|
7
|
+
align: {
|
|
8
|
+
type: PropType<CLAlign>;
|
|
9
|
+
default: CLAlign;
|
|
10
|
+
};
|
|
11
|
+
/** Set the HTML tag of the text element. The property can be one of `CLTextHtmlTags`, e.g. `p`. */
|
|
12
|
+
as: {
|
|
13
|
+
type: PropType<CLTextHtmlTags>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
/** Set the text color. The property can be one of `CLColors`, e.g. `CLColors.Neutral`. */
|
|
17
|
+
color: {
|
|
18
|
+
type: PropType<CLColors>;
|
|
19
|
+
default: CLColors;
|
|
20
|
+
};
|
|
21
|
+
/** Rendered a bolded text. */
|
|
22
|
+
label: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
/** Set the text type. The property can be one of `CLTextTypes`, e.g. `Body`. */
|
|
27
|
+
type: {
|
|
28
|
+
type: PropType<CLTextTypes>;
|
|
29
|
+
default: CLTextTypes;
|
|
30
|
+
};
|
|
31
|
+
/** Sets a custom ID used for unit tests. */
|
|
32
|
+
testId: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
/** When set to `true`, truncate the text if it overflows its container. */
|
|
37
|
+
truncate: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
42
|
+
/** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
|
|
43
|
+
align: {
|
|
44
|
+
type: PropType<CLAlign>;
|
|
45
|
+
default: CLAlign;
|
|
46
|
+
};
|
|
47
|
+
/** Set the HTML tag of the text element. The property can be one of `CLTextHtmlTags`, e.g. `p`. */
|
|
48
|
+
as: {
|
|
49
|
+
type: PropType<CLTextHtmlTags>;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
/** Set the text color. The property can be one of `CLColors`, e.g. `CLColors.Neutral`. */
|
|
53
|
+
color: {
|
|
54
|
+
type: PropType<CLColors>;
|
|
55
|
+
default: CLColors;
|
|
56
|
+
};
|
|
57
|
+
/** Rendered a bolded text. */
|
|
58
|
+
label: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
/** Set the text type. The property can be one of `CLTextTypes`, e.g. `Body`. */
|
|
63
|
+
type: {
|
|
64
|
+
type: PropType<CLTextTypes>;
|
|
65
|
+
default: CLTextTypes;
|
|
66
|
+
};
|
|
67
|
+
/** Sets a custom ID used for unit tests. */
|
|
68
|
+
testId: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
/** When set to `true`, truncate the text if it overflows its container. */
|
|
73
|
+
truncate: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
}>> & Readonly<{}>, {
|
|
78
|
+
color: CLColors;
|
|
79
|
+
label: boolean;
|
|
80
|
+
testId: string;
|
|
81
|
+
type: CLTextTypes;
|
|
82
|
+
align: CLAlign;
|
|
83
|
+
as: CLTextHtmlTags;
|
|
84
|
+
truncate: boolean;
|
|
85
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
86
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
interface Props {
|
|
3
|
+
triggerRef?: Ref<HTMLButtonElement | undefined>;
|
|
4
|
+
dropdownRef?: Ref<HTMLElement | undefined>;
|
|
5
|
+
openDropdownHandler?: () => void;
|
|
6
|
+
closeDropdownHandler?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const useDropdown: ({ triggerRef, dropdownRef, openDropdownHandler, closeDropdownHandler, }: Props) => {
|
|
9
|
+
open: Ref<boolean, boolean>;
|
|
10
|
+
toggleDropdown: () => void;
|
|
11
|
+
closeDropdown: () => void;
|
|
12
|
+
clearEventListeners: () => void;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useHasSlotContent: (name?: string) => globalThis.ComputedRef<boolean>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CLIconSizes, CLTextTypes } from './index';
|
|
2
|
+
export declare const DecoratorIconSize: {
|
|
3
|
+
tiny: CLIconSizes;
|
|
4
|
+
small: CLIconSizes;
|
|
5
|
+
medium: CLIconSizes;
|
|
6
|
+
large: CLIconSizes;
|
|
7
|
+
xlarge: CLIconSizes;
|
|
8
|
+
};
|
|
9
|
+
export declare const InputLabelSizes: {
|
|
10
|
+
tiny: CLTextTypes;
|
|
11
|
+
small: CLTextTypes;
|
|
12
|
+
medium: CLTextTypes;
|
|
13
|
+
large: CLTextTypes;
|
|
14
|
+
xlarge: CLTextTypes;
|
|
15
|
+
};
|
|
16
|
+
export declare const LabelSizes: {
|
|
17
|
+
tiny: CLTextTypes;
|
|
18
|
+
small: CLTextTypes;
|
|
19
|
+
medium: CLTextTypes;
|
|
20
|
+
large: CLTextTypes;
|
|
21
|
+
xlarge: CLTextTypes;
|
|
22
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { Align as CLAlign, BorderRadius as CLBorderRadius, ButtonTypes as CLButtonTypes, CardTypes as CLCardTypes, Colors as CLColors, ColorVariants as CLColorVariants, HeadingLevels as CLHeadingLevels, HeadingTypes as CLHeadingTypes, IconSizes as CLIconSizes, IconNames as CLIconNames, InputTypes as CLInputTypes, LinkTarget as CLLinkTarget, Loading as CLLoading, Mode as CLMode, Orientation as CLOrientation, Order as CLOrder, PaginationType as CLPaginationType, Placement as CLPlacement, Position as CLPosition, Sizes as CLSizes, TableTypes as CLTableTypes, TextTypes as CLTextTypes } from './types';
|
|
2
|
+
export type { BannerProps as CLBannerProps, CardProps as CLCardProps, GenericFunction as CLGenericFunction, GenericFocusFunction as CLGenericFocusFunction, NavItem as CLNavItem, Palette as CLPalette, Option as CLOption, ThemeConfig as CLThemeConfig, TextHtmlTags as CLTextHtmlTags, ToastProps as CLToastProps } from './types';
|
|
3
|
+
export { CLBadge, CLBanner, CLPill } from './components/Indicators';
|
|
4
|
+
export { CLA11yButton, CLButton } from './components/Buttons';
|
|
5
|
+
export { CLCard, CLCarousel, CLCarouselSlide, 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/Theme';
|
|
15
|
+
export { DEFAULT_THEME, useTheme } from './components/Theme/base-theme';
|