@codeandfunction/callaloo 3.15.1 → 3.15.3

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.
@@ -0,0 +1,24 @@
1
+ import { CLCharCounterLayout, CLColors, CLSizes } from '../../../index.ts';
2
+ export interface CLFormCharCounterProps {
3
+ /** Color for styling */
4
+ color?: CLColors;
5
+ /** CSS prefix for component-specific styling */
6
+ cssPrefix?: string;
7
+ /** Current character count */
8
+ currentLength: number;
9
+ /** Layout style - inline or block */
10
+ layout?: CLCharCounterLayout;
11
+ /** Maximum allowed characters */
12
+ maxLength: number;
13
+ /** Size for styling */
14
+ size?: CLSizes;
15
+ /** Test ID for testing purposes */
16
+ testId?: string;
17
+ }
18
+ declare const _default: import('vue').DefineComponent<CLFormCharCounterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLFormCharCounterProps> & Readonly<{}>, {
19
+ color: CLColors;
20
+ testId: string;
21
+ size: CLSizes;
22
+ layout: CLCharCounterLayout;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
24
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { default as CLFormCharCounterComponent } from './CLFormCharCounter.vue';
2
+ export { CLFormCharCounterComponent as CLFormCharCounter };
3
+ export default CLFormCharCounterComponent;
4
+ export type CLFormCharCounter = InstanceType<typeof CLFormCharCounterComponent>;
5
+ export type { CLFormCharCounterProps } from './CLFormCharCounter.vue';
@@ -0,0 +1,22 @@
1
+ import { CLSizes } from '../../../index.ts';
2
+ export interface CLFormLabelProps {
3
+ /** CSS prefix for component-specific styling (e.g., 'clll-input', 'clll-textarea') */
4
+ cssPrefix?: string;
5
+ /** The form element ID this label is for */
6
+ htmlFor: string;
7
+ /** The label text to display */
8
+ label: string;
9
+ /** Whether the form element is required */
10
+ required?: boolean;
11
+ /** Size variant to match form element size */
12
+ size?: CLSizes;
13
+ /** Test ID for testing purposes */
14
+ testId?: string;
15
+ }
16
+ declare const _default: import('vue').DefineComponent<CLFormLabelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLFormLabelProps> & Readonly<{}>, {
17
+ testId: string;
18
+ required: boolean;
19
+ size: CLSizes;
20
+ cssPrefix: string;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
22
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { default as CLFormLabelComponent } from './CLFormLabel.vue';
2
+ export { CLFormLabelComponent as CLFormLabel };
3
+ export default CLFormLabelComponent;
4
+ export type CLFormLabel = InstanceType<typeof CLFormLabelComponent>;
5
+ export type { CLFormLabelProps } from './CLFormLabel.vue';
@@ -110,13 +110,13 @@ declare const _default: import('vue').DefineComponent<{
110
110
  readonly: boolean;
111
111
  messages: string[];
112
112
  messageType: CLColors;
113
+ maxLength: number;
114
+ grouped: boolean;
115
+ suffix: string | CLIconNames;
113
116
  autoComplete: boolean;
114
117
  charCounter: boolean;
115
- grouped: boolean;
116
- maxLength: number;
117
118
  minLength: number;
118
119
  spellCheck: boolean;
119
- suffix: string | CLIconNames;
120
120
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
121
121
  'input-elem': HTMLInputElement;
122
122
  }, HTMLDivElement>;
@@ -0,0 +1,29 @@
1
+ import { CLSizes } from '../../../index.ts';
2
+ export interface CLInputColorToolsProps {
3
+ /** Whether color was copied */
4
+ copied?: boolean;
5
+ /** Initial color value for reset */
6
+ initialValue?: string;
7
+ /** Current color value */
8
+ modelValue?: string | number;
9
+ /** Size for buttons and icons */
10
+ size?: CLSizes;
11
+ /** Test ID for testing purposes */
12
+ testId?: string;
13
+ }
14
+ declare const _default: import('vue').DefineComponent<CLInputColorToolsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ copy: () => any;
16
+ reset: (value: string | number | undefined) => any;
17
+ "update:copied": (copied: boolean) => any;
18
+ }, string, import('vue').PublicProps, Readonly<CLInputColorToolsProps> & Readonly<{
19
+ onCopy?: (() => any) | undefined;
20
+ onReset?: ((value: string | number | undefined) => any) | undefined;
21
+ "onUpdate:copied"?: ((copied: boolean) => any) | undefined;
22
+ }>, {
23
+ testId: string;
24
+ size: CLSizes;
25
+ modelValue: string | number;
26
+ copied: boolean;
27
+ initialValue: string;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
29
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { CLColors } from '../../../index.ts';
2
+ export interface CLInputPillProps {
3
+ /** Color of the pill */
4
+ color?: CLColors;
5
+ /** The pill label text */
6
+ label: string;
7
+ /** Test ID for testing purposes */
8
+ testId?: string;
9
+ }
10
+ declare const _default: import('vue').DefineComponent<CLInputPillProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLInputPillProps> & Readonly<{}>, {
11
+ color: CLColors;
12
+ testId: string;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
14
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { CLIconNames, CLSizes } from '../../../index.ts';
2
+ export interface CLInputPrefixProps {
3
+ /** The border radius size to apply to the prefix */
4
+ borderRadius?: string;
5
+ /** Whether input is grouped */
6
+ grouped?: boolean;
7
+ /** The prefix content - icon name or text string */
8
+ prefix: string | CLIconNames;
9
+ /** Size for icon rendering */
10
+ size?: CLSizes;
11
+ /** Test ID for testing purposes */
12
+ testId?: string;
13
+ }
14
+ declare const _default: import('vue').DefineComponent<CLInputPrefixProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLInputPrefixProps> & Readonly<{}>, {
15
+ borderRadius: string;
16
+ testId: string;
17
+ size: CLSizes;
18
+ grouped: boolean;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
20
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { CLIconNames, CLSizes } from '../../../index.ts';
2
+ export interface CLInputSuffixProps {
3
+ /** The border radius size to apply to the suffix */
4
+ borderRadius?: string;
5
+ /** Whether input is grouped */
6
+ grouped?: boolean;
7
+ /** The suffix content - icon name or text string */
8
+ suffix: string | CLIconNames;
9
+ /** Size for icon rendering */
10
+ size?: CLSizes;
11
+ /** Test ID for testing purposes */
12
+ testId?: string;
13
+ }
14
+ declare const _default: import('vue').DefineComponent<CLInputSuffixProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLInputSuffixProps> & Readonly<{}>, {
15
+ borderRadius: string;
16
+ testId: string;
17
+ size: CLSizes;
18
+ grouped: boolean;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
20
+ export default _default;
@@ -1,4 +1,19 @@
1
1
  import { default as CLInputComponent } from './CLInput.vue';
2
- export { CLInputComponent as CLInput };
3
- export default CLInputComponent;
4
- export type CLInput = InstanceType<typeof CLInputComponent>;
2
+ import { default as CLInputPrefixComponent } from './CLInputPrefix.vue';
3
+ import { default as CLInputSuffixComponent } from './CLInputSuffix.vue';
4
+ import { default as CLInputPillComponent } from './CLInputPill.vue';
5
+ import { default as CLInputColorToolsComponent } from './CLInputColorTools.vue';
6
+ declare const CLInput: typeof CLInputComponent & {
7
+ Prefix: typeof CLInputPrefixComponent;
8
+ Suffix: typeof CLInputSuffixComponent;
9
+ Pill: typeof CLInputPillComponent;
10
+ ColorTools: typeof CLInputColorToolsComponent;
11
+ };
12
+ export { CLInput };
13
+ export default CLInput;
14
+ export type CLInput = InstanceType<typeof CLInput>;
15
+ export type CLInputPrefix = InstanceType<typeof CLInputPrefixComponent>;
16
+ export type CLInputSuffix = InstanceType<typeof CLInputSuffixComponent>;
17
+ export type CLInputPill = InstanceType<typeof CLInputPillComponent>;
18
+ export type CLInputColorTools = InstanceType<typeof CLInputColorToolsComponent>;
19
+ export type { CLInputProps } from './CLInput.vue';
@@ -24,6 +24,12 @@ export interface CLSelectProps {
24
24
  messageType?: CLColors;
25
25
  /** A string representing name of the select. The name is submitted along with the select value when the form it belongs to is submitted. */
26
26
  name: string;
27
+ /** A callback function which handles when the select loses focus. */
28
+ onBlur?: CLGenericFocusFunction;
29
+ /** A callback function which handles when the select is clicked. */
30
+ onChange?: CLGenericFunction;
31
+ /** A callback function which handles when the select gains focus. */
32
+ onFocus?: CLGenericFocusFunction;
27
33
  /** Sets the label position to be above or to the left of the form element. The property can be one of `CLOrientation` */
28
34
  orientation?: CLOrientation;
29
35
  /** A list of options */
@@ -40,12 +46,6 @@ export interface CLSelectProps {
40
46
  testId?: string;
41
47
  /** Sets the color variant. The property can be one of `CLColorVariants.Outline | CLColorVariants.Ghost`, e.g `CLColorVariants.Outline`. */
42
48
  variant?: CLColorVariants.Outline | CLColorVariants.Ghost;
43
- /** A callback function which handles when the select loses focus. */
44
- onBlur?: CLGenericFocusFunction;
45
- /** A callback function which handles when the select is clicked. */
46
- onChange?: CLGenericFunction;
47
- /** A callback function which handles when the select gains focus. */
48
- onFocus?: CLGenericFocusFunction;
49
49
  }
50
50
  declare const _default: import('vue').DefineComponent<{
51
51
  modelValue?: string | number | null;
@@ -1,6 +1,9 @@
1
1
  import { CLCheckbox } from './CLCheckbox';
2
+ import { CLFormCharCounter } from './CLFormCharCounter';
3
+ import { CLFormLabel } from './CLFormLabel';
2
4
  import { CLInput } from './CLInput';
3
5
  import { CLRadioButton } from './CLRadioButton';
4
6
  import { CLSelect } from './CLSelect';
5
7
  import { CLTextArea } from './CLTextArea';
6
- export { CLCheckbox, CLInput, CLRadioButton, CLSelect, CLTextArea };
8
+ export { CLCheckbox, CLFormCharCounter, CLFormLabel, CLInput, CLRadioButton, CLSelect, CLTextArea };
9
+ export type { CLInputColorTools, CLInputPill, CLInputPrefix, CLInputSuffix } from './CLInput';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { CLAlign, CLBorderRadius, CLButtonTypes, CLCardTypes, CLColors, CLColorVariants, CLHeadingLevels, CLHeadingTypes, CLIconSizes, CLIconNames, CLInputTypes, CLLinkTarget, CLLoading, CLMessageType, CLMode, CLOrientation, CLOverflow, CLOrder, CLPaginationType, CLPlacement, CLPosition, CLSizes, CLTableTypes, CLTextTypes, CLToastPosition } from './types';
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
3
  export { CLBadge, CLBanner, CLPill, CLProgress } from './components/Indicators';
4
4
  export { CLA11yButton, CLButton } from './components/Buttons';