@codeandfunction/callaloo 3.12.0 → 3.12.2
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 -1
- package/dist/components/Assets/{CLIcon.vue.d.ts → CLIcon/CLIcon.vue.d.ts} +4 -3
- package/dist/components/Assets/CLIcon/index.d.ts +4 -0
- package/dist/components/Assets/index.d.ts +1 -2
- package/dist/components/Assets/utils.d.ts +1 -1
- package/dist/components/Buttons/{CLA11yButton.vue.d.ts → CLA11yButton/CLA11yButton.vue.d.ts} +8 -17
- package/dist/components/Buttons/CLA11yButton/index.d.ts +4 -0
- package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +99 -0
- package/dist/components/Buttons/CLButton/index.d.ts +4 -0
- package/dist/components/Buttons/index.d.ts +2 -4
- package/dist/components/Buttons/utils.d.ts +1 -1
- package/dist/components/Containers/CLCard/CLCard.vue.d.ts +105 -0
- package/dist/components/Containers/CLCard/index.d.ts +4 -0
- package/dist/components/Containers/{Carousel → CLCarousel}/CLCarousel.vue.d.ts +9 -20
- package/dist/components/Containers/CLCarousel/CLCarouselNavigation.vue.d.ts +37 -0
- package/dist/components/Containers/CLCarousel/index.d.ts +11 -0
- package/dist/components/Containers/CLDisclosure/CLDisclosure.vue.d.ts +70 -0
- package/dist/components/Containers/CLDisclosure/index.d.ts +4 -0
- package/dist/components/Containers/index.d.ts +3 -9
- package/dist/components/Containers/utils.d.ts +1 -1
- package/dist/components/Form/{CLCheckbox.vue.d.ts → CLCheckbox/CLCheckbox.vue.d.ts} +26 -13
- package/dist/components/Form/CLCheckbox/index.d.ts +4 -0
- package/dist/components/Form/CLFormField.vue.d.ts +1 -1
- package/dist/components/Form/{CLInput.vue.d.ts → CLInput/CLInput.vue.d.ts} +42 -17
- package/dist/components/Form/CLInput/index.d.ts +4 -0
- package/dist/components/Form/CLInputMessages.vue.d.ts +1 -1
- package/dist/components/Form/{CLRadioButton.vue.d.ts → CLRadioButton/CLRadioButton.vue.d.ts} +9 -9
- package/dist/components/Form/CLRadioButton/index.d.ts +4 -0
- package/dist/components/Form/{CLSelect.vue.d.ts → CLSelect/CLSelect.vue.d.ts} +9 -9
- package/dist/components/Form/CLSelect/index.d.ts +4 -0
- package/dist/components/Form/{CLTextArea.vue.d.ts → CLTextArea/CLTextArea.vue.d.ts} +18 -18
- package/dist/components/Form/CLTextArea/index.d.ts +4 -0
- package/dist/components/Form/index.d.ts +5 -10
- package/dist/components/Form/utils.d.ts +1 -1
- package/dist/components/Indicators/{CLBadge.vue.d.ts → CLBadge/CLBadge.vue.d.ts} +6 -6
- package/dist/components/Indicators/CLBadge/index.d.ts +4 -0
- package/dist/components/Indicators/CLBanner/CLBanner.vue.d.ts +49 -0
- package/dist/components/Indicators/CLBanner/index.d.ts +4 -0
- package/dist/components/Indicators/{CLPill.vue.d.ts → CLPill/CLPill.vue.d.ts} +4 -4
- package/dist/components/Indicators/CLPill/index.d.ts +4 -0
- package/dist/components/Indicators/CLProgress/CLProgress.vue.d.ts +32 -0
- package/dist/components/Indicators/CLProgress/index.d.ts +4 -0
- package/dist/components/Indicators/index.d.ts +4 -9
- package/dist/components/Indicators/utils.d.ts +1 -1
- package/dist/components/Loading/{CLSkeleton.vue.d.ts → CLSkeleton/CLSkeleton.vue.d.ts} +3 -3
- package/dist/components/Loading/CLSkeleton/index.d.ts +4 -0
- package/dist/components/Loading/{CLSpinner.vue.d.ts → CLSpinner/CLSpinner.vue.d.ts} +4 -4
- package/dist/components/Loading/CLSpinner/index.d.ts +4 -0
- package/dist/components/Loading/index.d.ts +2 -4
- package/dist/components/Loading/utils.d.ts +1 -1
- package/dist/components/Modals/{CLModal.vue.d.ts → CLModal/CLModal.vue.d.ts} +16 -24
- package/dist/components/Modals/CLModal/index.d.ts +4 -0
- package/dist/components/Modals/index.d.ts +1 -2
- package/dist/components/Navigation/{CLLink.vue.d.ts → CLLink/CLLink.vue.d.ts} +6 -14
- package/dist/components/Navigation/CLLink/index.d.ts +4 -0
- package/dist/components/Navigation/{CLNavLink.vue.d.ts → CLNavLink/CLNavLink.vue.d.ts} +10 -14
- package/dist/components/Navigation/CLNavLink/index.d.ts +4 -0
- package/dist/components/Navigation/{CLNavSection.vue.d.ts → CLNavSection/CLNavSection.vue.d.ts} +3 -3
- package/dist/components/Navigation/CLNavSection/index.d.ts +4 -0
- package/dist/components/Navigation/index.d.ts +3 -6
- package/dist/components/Navigation/utils.d.ts +1 -1
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +204 -0
- package/dist/components/Popups/CLDropdownMenu/index.d.ts +4 -0
- package/dist/components/Popups/{CLToast.vue.d.ts → CLToast/CLToast.vue.d.ts} +1 -1
- package/dist/components/Popups/CLToast/index.d.ts +4 -0
- package/dist/components/Popups/index.d.ts +2 -5
- package/dist/components/Popups/utils.d.ts +1 -1
- package/dist/components/{Theme → Providers/Theme}/CLThemeProvider.vue.d.ts +1 -1
- package/dist/components/{Theme → Providers/Theme}/base-theme.d.ts +15 -15
- package/dist/components/{Theme → Providers/Theme}/utils.d.ts +1 -1
- package/dist/components/Providers/Toast/CLToastProvider.vue.d.ts +2 -2
- package/dist/components/Providers/index.d.ts +3 -1
- package/dist/components/Table/CLTable.vue.d.ts +6 -14
- package/dist/components/Table/CLTableCell.vue.d.ts +9 -17
- package/dist/components/Table/CLTableNestedCell.vue.d.ts +5 -12
- package/dist/components/Table/CLTableRow.vue.d.ts +5 -13
- package/dist/components/Table/index.d.ts +32 -15
- package/dist/components/Typography/CLHeading/CLHeading.vue.d.ts +33 -0
- package/dist/components/Typography/CLHeading/index.d.ts +4 -0
- package/dist/components/Typography/CLText/CLText.vue.d.ts +43 -0
- package/dist/components/Typography/CLText/index.d.ts +4 -0
- package/dist/components/Typography/index.d.ts +2 -5
- package/dist/components/Typography/utils.d.ts +1 -1
- package/dist/composables/useDropdown.d.ts +1 -1
- package/dist/composables/useToast.d.ts +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3544 -3659
- package/dist/types.d.ts +73 -172
- package/package.json +11 -9
- package/dist/components/Buttons/CLButton.vue.d.ts +0 -288
- package/dist/components/Containers/CLCard.vue.d.ts +0 -51
- package/dist/components/Containers/CLDisclosure.vue.d.ts +0 -77
- package/dist/components/Containers/Carousel/CLCarouselNavigation.vue.d.ts +0 -22
- package/dist/components/Indicators/CLBanner.vue.d.ts +0 -13
- package/dist/components/Indicators/Progress/CLProgress.vue.d.ts +0 -45
- package/dist/components/Popups/CLDropdownMenu.vue.d.ts +0 -595
- package/dist/components/Theme/index.d.ts +0 -3
- package/dist/components/Typography/CLHeading.vue.d.ts +0 -85
- package/dist/components/Typography/CLText.vue.d.ts +0 -119
- /package/dist/components/Containers/{Carousel → CLCarousel}/CLCarouselSlide.vue.d.ts +0 -0
|
@@ -1,15 +1,32 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { default as CLTableComponent } from './CLTable.vue';
|
|
2
|
+
import { default as CLTableBodyComponent } from './CLTableBody.vue';
|
|
3
|
+
import { default as CLTableCellComponent } from './CLTableCell.vue';
|
|
4
|
+
import { default as CLTableFooterComponent } from './CLTableFooter.vue';
|
|
5
|
+
import { default as CLTableHeaderComponent } from './CLTableHeader.vue';
|
|
6
|
+
import { default as CLTableNestedCellComponent } from './CLTableNestedCell.vue';
|
|
7
|
+
import { default as CLTableRowComponent } from './CLTableRow.vue';
|
|
8
|
+
declare const CLTable: typeof CLTableComponent & {
|
|
9
|
+
Body: typeof CLTableBodyComponent;
|
|
10
|
+
Cell: typeof CLTableCellComponent;
|
|
11
|
+
Footer: typeof CLTableFooterComponent;
|
|
12
|
+
Header: typeof CLTableHeaderComponent;
|
|
13
|
+
NestedCell: typeof CLTableNestedCellComponent;
|
|
14
|
+
Row: typeof CLTableRowComponent;
|
|
15
|
+
};
|
|
16
|
+
export { CLTable };
|
|
17
|
+
export default CLTable;
|
|
18
|
+
export { CLTableBodyComponent as CLTableBody, CLTableCellComponent as CLTableCell, CLTableFooterComponent as CLTableFooter, CLTableHeaderComponent as CLTableHeader, CLTableNestedCellComponent as CLTableNestedCell, CLTableRowComponent as CLTableRow };
|
|
19
|
+
export type CLTable = InstanceType<typeof CLTableComponent & {
|
|
20
|
+
Body: typeof CLTableBodyComponent;
|
|
21
|
+
Cell: typeof CLTableCellComponent;
|
|
22
|
+
Footer: typeof CLTableFooterComponent;
|
|
23
|
+
Header: typeof CLTableHeaderComponent;
|
|
24
|
+
NestedCell: typeof CLTableNestedCellComponent;
|
|
25
|
+
Row: typeof CLTableRowComponent;
|
|
26
|
+
}>;
|
|
27
|
+
export type CLTableBody = InstanceType<typeof CLTableBodyComponent>;
|
|
28
|
+
export type CLTableCell = InstanceType<typeof CLTableCellComponent>;
|
|
29
|
+
export type CLTableFooter = InstanceType<typeof CLTableFooterComponent>;
|
|
30
|
+
export type CLTableHeader = InstanceType<typeof CLTableHeaderComponent>;
|
|
31
|
+
export type CLTableNestedCell = InstanceType<typeof CLTableNestedCellComponent>;
|
|
32
|
+
export type CLTableRow = InstanceType<typeof CLTableRowComponent>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CLAlign, CLColors, CLHeadingLevels, CLHeadingTypes } from '../../../index.ts';
|
|
2
|
+
export interface CLHeadingProps {
|
|
3
|
+
/** Set the horizontal alignment of content */
|
|
4
|
+
align?: CLAlign;
|
|
5
|
+
/** Render text with a font-weight of 900 */
|
|
6
|
+
bolder?: boolean;
|
|
7
|
+
/** Set the color of the heading */
|
|
8
|
+
color?: CLColors;
|
|
9
|
+
/** Set the heading level */
|
|
10
|
+
level?: CLHeadingLevels;
|
|
11
|
+
/** Test ID for testing purposes */
|
|
12
|
+
testId?: string;
|
|
13
|
+
/** When set to `true`, truncate the text if it overflows its container */
|
|
14
|
+
truncate?: boolean;
|
|
15
|
+
/** Set the type of the heading */
|
|
16
|
+
type?: CLHeadingTypes;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CLHeadingProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLHeadingProps> & Readonly<{}>, {
|
|
19
|
+
color: CLColors;
|
|
20
|
+
testId: string;
|
|
21
|
+
type: CLHeadingTypes;
|
|
22
|
+
align: CLAlign;
|
|
23
|
+
bolder: boolean;
|
|
24
|
+
truncate: boolean;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
26
|
+
default?(_: {}): any;
|
|
27
|
+
}>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { CLAlign, CLTextHtmlTags, CLTextTypes, CLColors } from '../../../index.ts';
|
|
2
|
+
export interface CLTextProps {
|
|
3
|
+
/** Set the horizontal alignment of content */
|
|
4
|
+
align?: CLAlign;
|
|
5
|
+
/** Set the HTML tag of the text element */
|
|
6
|
+
as?: CLTextHtmlTags;
|
|
7
|
+
/** Render text with a font-weight of 700 */
|
|
8
|
+
bold?: boolean;
|
|
9
|
+
/** Render text with a font-weight of 900 */
|
|
10
|
+
bolder?: boolean;
|
|
11
|
+
/** Set the text color */
|
|
12
|
+
color?: CLColors;
|
|
13
|
+
/** Render text with a font-weight of 300 */
|
|
14
|
+
light?: boolean;
|
|
15
|
+
/** Render text with a font-weight of 500 */
|
|
16
|
+
medium?: boolean;
|
|
17
|
+
/** Test ID for testing purposes */
|
|
18
|
+
testId?: string;
|
|
19
|
+
/** When set to `true`, truncate the text if it overflows its container */
|
|
20
|
+
truncate?: boolean;
|
|
21
|
+
/** Set the text type */
|
|
22
|
+
type?: CLTextTypes;
|
|
23
|
+
}
|
|
24
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CLTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLTextProps> & Readonly<{}>, {
|
|
25
|
+
medium: boolean;
|
|
26
|
+
color: CLColors;
|
|
27
|
+
light: boolean;
|
|
28
|
+
testId: string;
|
|
29
|
+
type: CLTextTypes;
|
|
30
|
+
bold: boolean;
|
|
31
|
+
align: CLAlign;
|
|
32
|
+
as: CLTextHtmlTags;
|
|
33
|
+
bolder: boolean;
|
|
34
|
+
truncate: boolean;
|
|
35
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
36
|
+
default?(_: {}): any;
|
|
37
|
+
}>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { CLHeading, CLText };
|
|
4
|
-
export type CLHeading = InstanceType<typeof CLHeading>;
|
|
5
|
-
export type CLText = InstanceType<typeof CLText>;
|
|
1
|
+
export { CLHeading } from './CLHeading';
|
|
2
|
+
export { CLText } from './CLText';
|
|
@@ -5,7 +5,7 @@ interface Props {
|
|
|
5
5
|
openDropdownHandler?: () => void;
|
|
6
6
|
closeDropdownHandler?: () => void;
|
|
7
7
|
}
|
|
8
|
-
export declare const useDropdown: ({ triggerRef, dropdownRef, openDropdownHandler, closeDropdownHandler
|
|
8
|
+
export declare const useDropdown: ({ triggerRef, dropdownRef, openDropdownHandler, closeDropdownHandler }: Props) => {
|
|
9
9
|
open: Ref<boolean, boolean>;
|
|
10
10
|
toggleDropdown: () => void;
|
|
11
11
|
closeDropdown: () => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type {
|
|
1
|
+
export { CLAlign, CLBorderRadius, CLButtonTypes, CLCardTypes, CLColors, CLColorVariants, CLHeadingLevels, CLHeadingTypes, CLIconSizes, CLIconNames, CLInputTypes, CLLinkTarget, CLLoading, CLMessageType, CLMode, CLOrientation, CLOrder, CLPaginationType, CLPlacement, CLPosition, CLSizes, CLTableTypes, CLTextTypes, CLToastPosition } from './types';
|
|
2
|
+
export type { CLBlockTextHtmlTags, CLButtonTags, CLButtonForwardRefFunction, CLGenericFunction, CLGenericFocusFunction, CLGenericInputFunction, CLInlineTextHtmlTags, CLNavItem, CLOption, CLPalette, CLPaletteKeys, CLShades, CLTextHtmlTags, CLThemeConfig, CLToastProps } from './types';
|
|
3
3
|
export { CLBadge, CLBanner, CLPill, CLProgress } from './components/Indicators';
|
|
4
4
|
export { CLA11yButton, CLButton } from './components/Buttons';
|
|
5
|
-
export { CLCard, CLCarousel,
|
|
5
|
+
export { CLCard, CLCarousel, CLDisclosure } from './components/Containers';
|
|
6
6
|
export { CLCheckbox, CLInput, CLRadioButton, CLSelect, CLTextArea } from './components/Form';
|
|
7
7
|
export { CLHeading, CLText } from './components/Typography';
|
|
8
8
|
export { CLIcon } from './components/Assets';
|
|
@@ -11,7 +11,7 @@ export { CLDropdownMenu, CLToast } from './components/Popups';
|
|
|
11
11
|
export { CLModal } from './components/Modals';
|
|
12
12
|
export { CLSkeleton, CLSpinner } from './components/Loading';
|
|
13
13
|
export { CLTable, CLTableBody, CLTableCell, CLTableFooter, CLTableHeader, CLTableNestedCell, CLTableRow } from './components/Table';
|
|
14
|
-
export { CLThemeProvider } from './components/
|
|
14
|
+
export { CLThemeProvider } from './components/Providers';
|
|
15
15
|
export { CLToastProvider, type CLToastProviderOutput } from './components/Providers';
|
|
16
16
|
export { useToast } from './composables/useToast';
|
|
17
|
-
export { DEFAULT_THEME, useTheme } from './components/Theme/base-theme';
|
|
17
|
+
export { DEFAULT_THEME, useTheme } from './components/Providers/Theme/base-theme';
|