@cscfi/csc-ui 4.0.0-alpha.3 → 4.0.0-alpha.5
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/csc-ui.js +6238 -5865
- package/dist/custom-elements.json +655 -99
- package/dist/docs/c-popover/usage.md +25 -0
- package/dist/docs/c-progress-bar/usage.md +23 -0
- package/dist/docs/c-progress-circle/usage.md +25 -0
- package/dist/docs/c-radio/usage.md +27 -0
- package/dist/docs/c-radio-group/usage.md +67 -0
- package/dist/docs/c-spinner/usage.md +21 -0
- package/dist/docs/c-tooltip/usage.md +28 -0
- package/dist/styles/css/tailwind-theme.css +30 -0
- package/dist/styles/css/tokens.css +90 -13
- package/dist/vscode.css-custom-data.json +69 -10
- package/dist/vscode.html-custom-data.json +134 -18
- package/dist/web-types.json +383 -73
- package/dist-types/components/c-alert/CAlert.vue.d.ts +10 -3
- package/dist-types/components/c-menu/CMenu.vue.d.ts +3 -3
- package/dist-types/components/c-menu-item/CMenuItem.vue.d.ts +29 -3
- package/dist-types/components/c-popover/CPopover.vue.d.ts +34 -0
- package/dist-types/components/c-progress-circle/CProgressCircle.vue.d.ts +32 -0
- package/dist-types/components/c-radio/CRadio.vue.d.ts +0 -10
- package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +8 -46
- package/dist-types/components/c-tooltip/CTooltip.vue.d.ts +39 -0
- package/dist-types/index.d.ts +4 -1
- package/dist-types/shared/FieldMessage.vue.d.ts +21 -0
- package/dist-types/shared/positionArea.d.ts +13 -0
- package/dist-types/tag-name-map.d.ts +145 -27
- package/dist-types/types.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The alert types that
|
|
3
|
-
*
|
|
2
|
+
* The alert types that carry a status family's accent colour; `default` uses
|
|
3
|
+
* the brand primary. Every type renders its status icon.
|
|
4
4
|
*/
|
|
5
5
|
export type CAlertIconType = 'error' | 'info' | 'success' | 'warning';
|
|
6
6
|
export interface CAlertProps {
|
|
7
|
+
/**
|
|
8
|
+
* Show a dismiss button. The alert only emits `dismiss` — removing it from
|
|
9
|
+
* the page stays the consumer's job.
|
|
10
|
+
*/
|
|
11
|
+
dismissible?: boolean;
|
|
7
12
|
/**
|
|
8
13
|
* Type of the alert
|
|
9
14
|
*
|
|
@@ -13,13 +18,15 @@ export interface CAlertProps {
|
|
|
13
18
|
}
|
|
14
19
|
/**
|
|
15
20
|
* Type of the alert. `default` — equivalently, omitting the attribute —
|
|
16
|
-
* renders the
|
|
21
|
+
* renders the brand-primary look; the four status types carry their status
|
|
22
|
+
* family's colours.
|
|
17
23
|
*/
|
|
18
24
|
export type CAlertType = 'default' | CAlertIconType;
|
|
19
25
|
declare const _default: typeof __VLS_export;
|
|
20
26
|
export default _default;
|
|
21
27
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CAlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CAlertProps> & Readonly<{}>, {
|
|
22
28
|
type: CAlertType;
|
|
29
|
+
dismissible: boolean;
|
|
23
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
24
31
|
title?: (props: {}) => any;
|
|
25
32
|
} & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import type { CPlacement } from '../../types';
|
|
1
2
|
interface CMenuProps {
|
|
2
3
|
/** Distance from the trigger to the panel, in pixels. Defaults to `0`. */
|
|
3
4
|
distance?: number | string;
|
|
4
5
|
/** Whether the menu is open. Two-way: emits `change:open`. */
|
|
5
6
|
open?: boolean;
|
|
6
7
|
/** Preferred placement of the panel relative to the trigger. */
|
|
7
|
-
position?:
|
|
8
|
+
position?: CPlacement;
|
|
8
9
|
}
|
|
9
|
-
type Placement = 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
|
|
10
10
|
declare var __VLS_1: {}, __VLS_3: {};
|
|
11
11
|
type __VLS_Slots = {} & {
|
|
12
12
|
trigger?: (props: typeof __VLS_1) => any;
|
|
@@ -16,7 +16,7 @@ type __VLS_Slots = {} & {
|
|
|
16
16
|
declare const __VLS_base: import("vue").DefineComponent<CMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CMenuProps> & Readonly<{}>, {
|
|
17
17
|
open: boolean;
|
|
18
18
|
distance: number | string;
|
|
19
|
-
position:
|
|
19
|
+
position: CPlacement;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
22
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
interface CMenuItemProps {
|
|
2
|
+
/**
|
|
3
|
+
* Marks the item as the currently selected choice: renders the trailing
|
|
4
|
+
* indicator icon and stamps `role="menuitemradio"` + `aria-checked`. Leave
|
|
5
|
+
* unset for regular command items — only a true/false value marks the item
|
|
6
|
+
* as a selectable choice. The state is consumer-owned: the menu emits
|
|
7
|
+
* `select` as usual and never toggles this itself. Distinct from the
|
|
8
|
+
* keyboard highlight (the `data-active` attribute the controlling menu
|
|
9
|
+
* moves between rows).
|
|
10
|
+
*/
|
|
11
|
+
active?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* SVG path for the trailing indicator shown while `active`; defaults to a
|
|
14
|
+
* check mark.
|
|
15
|
+
*
|
|
16
|
+
* @freeform SVG path data
|
|
17
|
+
*/
|
|
18
|
+
activeIcon?: string;
|
|
2
19
|
/** Marks the action as destructive (renders in the error colour). */
|
|
3
20
|
danger?: boolean;
|
|
4
21
|
/** Disables the item — it is skipped by keyboard nav and emits no select. */
|
|
5
22
|
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* SVG path for a leading icon rendered before the item's content.
|
|
25
|
+
*
|
|
26
|
+
* @freeform SVG path data
|
|
27
|
+
*/
|
|
28
|
+
icon?: string;
|
|
6
29
|
/**
|
|
7
30
|
* Value reported in the menu's `select` event when this item is chosen.
|
|
8
31
|
*
|
|
@@ -10,19 +33,22 @@ interface CMenuItemProps {
|
|
|
10
33
|
*/
|
|
11
34
|
value?: string;
|
|
12
35
|
}
|
|
13
|
-
declare var
|
|
36
|
+
declare var __VLS_6: {}, __VLS_13: {};
|
|
14
37
|
type __VLS_Slots = {} & {
|
|
15
|
-
default?: (props: typeof
|
|
38
|
+
default?: (props: typeof __VLS_6) => any;
|
|
16
39
|
} & {
|
|
17
|
-
submenu?: (props: typeof
|
|
40
|
+
submenu?: (props: typeof __VLS_13) => any;
|
|
18
41
|
};
|
|
19
42
|
declare const __VLS_base: import("vue").DefineComponent<CMenuItemProps, {
|
|
20
43
|
closeSubmenu: () => void;
|
|
21
44
|
openSubmenu: () => void;
|
|
22
45
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CMenuItemProps> & Readonly<{}>, {
|
|
46
|
+
icon: string;
|
|
23
47
|
value: string;
|
|
24
48
|
disabled: boolean;
|
|
49
|
+
active: boolean;
|
|
25
50
|
danger: boolean;
|
|
51
|
+
activeIcon: string;
|
|
26
52
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
53
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
54
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { CPlacement } from '../../types';
|
|
2
|
+
export interface CPopoverProps {
|
|
3
|
+
/** Distance from the trigger to the panel, in pixels. Defaults to `0`. */
|
|
4
|
+
distance?: number | string;
|
|
5
|
+
/**
|
|
6
|
+
* Heading rendered at the top of the panel, doubling as its accessible
|
|
7
|
+
* name. Without it, set `aria-label` on the host. Named `heading`, not
|
|
8
|
+
* `title`: a `title` attribute on the host would trigger the browser's
|
|
9
|
+
* native tooltip and collides with `HTMLElement.title`.
|
|
10
|
+
* @freeform
|
|
11
|
+
*/
|
|
12
|
+
heading?: string;
|
|
13
|
+
/** Whether the popover is open. Two-way: emits `change:open`. */
|
|
14
|
+
open?: boolean;
|
|
15
|
+
/** Preferred placement of the panel relative to the trigger. */
|
|
16
|
+
position?: CPlacement;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CPopoverProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CPopoverProps> & Readonly<{}>, {
|
|
21
|
+
heading: string;
|
|
22
|
+
open: boolean;
|
|
23
|
+
distance: number | string;
|
|
24
|
+
position: CPlacement;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
26
|
+
trigger?: (props: {}) => any;
|
|
27
|
+
} & {
|
|
28
|
+
default?: (props: {}) => any;
|
|
29
|
+
}>;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface CProgressCircleProps {
|
|
2
|
+
/**
|
|
3
|
+
* Diameter of the circle in pixels
|
|
4
|
+
*/
|
|
5
|
+
size?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Progress value in percentage (0 to 100)
|
|
8
|
+
*/
|
|
9
|
+
value?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Stroke width of the track in pixels; the value arc draws at half this
|
|
12
|
+
* width, inset within the track
|
|
13
|
+
*/
|
|
14
|
+
width?: number;
|
|
15
|
+
}
|
|
16
|
+
declare var __VLS_1: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
default?: (props: typeof __VLS_1) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<CProgressCircleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CProgressCircleProps> & Readonly<{}>, {
|
|
21
|
+
value: number;
|
|
22
|
+
width: number;
|
|
23
|
+
size: number;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
interface CRadioProps {
|
|
2
|
-
/**
|
|
3
|
-
* Set option as checked
|
|
4
|
-
*
|
|
5
|
-
* @seeded from csc-ui — verify
|
|
6
|
-
*/
|
|
7
|
-
checked?: boolean;
|
|
8
2
|
/**
|
|
9
3
|
* Disable the radio button
|
|
10
|
-
*
|
|
11
|
-
* @seeded from csc-ui — verify
|
|
12
4
|
*/
|
|
13
5
|
disabled?: boolean;
|
|
14
6
|
/**
|
|
15
7
|
* Radio button value
|
|
16
8
|
*
|
|
17
|
-
* @seeded from csc-ui — verify
|
|
18
9
|
* @freeform
|
|
19
10
|
*/
|
|
20
11
|
value?: string;
|
|
@@ -26,7 +17,6 @@ type __VLS_Slots = {} & {
|
|
|
26
17
|
declare const __VLS_base: import("vue").DefineComponent<CRadioProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CRadioProps> & Readonly<{}>, {
|
|
27
18
|
value: string;
|
|
28
19
|
disabled: boolean;
|
|
29
|
-
checked: boolean;
|
|
30
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
21
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
22
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
interface CRadioGroupProps {
|
|
2
2
|
/**
|
|
3
3
|
* Disable the radio group
|
|
4
|
-
*
|
|
5
|
-
* @seeded from csc-ui — verify
|
|
6
4
|
*/
|
|
7
5
|
disabled?: boolean;
|
|
8
6
|
/**
|
|
@@ -13,88 +11,52 @@ interface CRadioGroupProps {
|
|
|
13
11
|
errorMessage?: string;
|
|
14
12
|
/**
|
|
15
13
|
* Hide the hint and error messages
|
|
16
|
-
*
|
|
17
|
-
* @seeded from csc-ui — verify
|
|
18
14
|
*/
|
|
19
15
|
hideDetails?: boolean;
|
|
20
16
|
/**
|
|
21
17
|
* Hint text for the input
|
|
22
18
|
*
|
|
23
|
-
* @seeded from csc-ui — verify
|
|
24
19
|
* @freeform
|
|
25
20
|
*/
|
|
26
21
|
hint?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Id of the element
|
|
29
|
-
*
|
|
30
|
-
* @seeded from csc-ui — verify
|
|
31
|
-
* @freeform
|
|
32
|
-
*/
|
|
33
|
-
hostId?: string;
|
|
34
22
|
/**
|
|
35
23
|
* Display radio buttons inline
|
|
36
|
-
*
|
|
37
|
-
* @seeded from csc-ui — verify
|
|
38
24
|
*/
|
|
39
25
|
inline?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Radio group items
|
|
42
|
-
*
|
|
43
|
-
* @seeded from csc-ui — verify
|
|
44
|
-
*/
|
|
45
|
-
items?: RadioItem[];
|
|
46
26
|
/**
|
|
47
27
|
* Label of the radio group
|
|
48
28
|
*
|
|
49
|
-
* @seeded from csc-ui — verify
|
|
50
29
|
* @freeform
|
|
51
30
|
*/
|
|
52
31
|
label?: string;
|
|
53
32
|
/**
|
|
54
33
|
* Set as required
|
|
55
|
-
*
|
|
56
|
-
* @seeded from csc-ui — verify
|
|
57
34
|
*/
|
|
58
35
|
required?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Return the whole item object
|
|
61
|
-
*
|
|
62
|
-
* @seeded from csc-ui — verify
|
|
63
|
-
*/
|
|
64
|
-
returnObject?: boolean;
|
|
65
36
|
/**
|
|
66
37
|
* Set the validity of the input
|
|
67
|
-
*
|
|
68
|
-
* @seeded from csc-ui — verify
|
|
69
38
|
*/
|
|
70
39
|
valid?: boolean;
|
|
71
40
|
/**
|
|
72
|
-
* Value of the radio group
|
|
73
|
-
*
|
|
74
|
-
* @seeded from csc-ui — verify
|
|
41
|
+
* Value of the radio group; matched against each radio's `value` by strict
|
|
42
|
+
* string equality
|
|
75
43
|
*/
|
|
76
|
-
value?: null |
|
|
77
|
-
}
|
|
78
|
-
interface RadioItem {
|
|
79
|
-
disabled?: boolean;
|
|
80
|
-
name: string;
|
|
81
|
-
value: number | string;
|
|
44
|
+
value?: null | string;
|
|
82
45
|
}
|
|
83
|
-
declare var __VLS_7: {};
|
|
46
|
+
declare var __VLS_7: {}, __VLS_9: {};
|
|
84
47
|
type __VLS_Slots = {} & {
|
|
85
|
-
|
|
48
|
+
label?: (props: typeof __VLS_7) => any;
|
|
49
|
+
} & {
|
|
50
|
+
default?: (props: typeof __VLS_9) => any;
|
|
86
51
|
};
|
|
87
52
|
declare const __VLS_base: import("vue").DefineComponent<CRadioGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CRadioGroupProps> & Readonly<{}>, {
|
|
88
53
|
label: string;
|
|
89
|
-
value: null |
|
|
54
|
+
value: null | string;
|
|
90
55
|
disabled: boolean;
|
|
91
56
|
errorMessage: string;
|
|
92
57
|
hideDetails: boolean;
|
|
93
58
|
hint: string;
|
|
94
|
-
hostId: string;
|
|
95
|
-
items: RadioItem[];
|
|
96
59
|
required: boolean;
|
|
97
|
-
returnObject: boolean;
|
|
98
60
|
valid: boolean;
|
|
99
61
|
inline: boolean;
|
|
100
62
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { CPlacement } from '../../types';
|
|
2
|
+
export interface CTooltipProps {
|
|
3
|
+
/**
|
|
4
|
+
* Delay before the tooltip shows on hover, in milliseconds. Keyboard focus
|
|
5
|
+
* shows the tooltip immediately, regardless of this value. Defaults to
|
|
6
|
+
* `400`.
|
|
7
|
+
*/
|
|
8
|
+
delay?: number | string;
|
|
9
|
+
/** Distance from the trigger to the tooltip, in pixels. Defaults to `4`. */
|
|
10
|
+
distance?: number | string;
|
|
11
|
+
/** Whether the tooltip is open. Two-way: emits `change:open`. */
|
|
12
|
+
open?: boolean;
|
|
13
|
+
/** Preferred placement of the tooltip relative to the trigger. */
|
|
14
|
+
position?: CPlacement;
|
|
15
|
+
/**
|
|
16
|
+
* The tooltip text. Overridden by the `content` slot when that is
|
|
17
|
+
* populated.
|
|
18
|
+
* @freeform
|
|
19
|
+
*/
|
|
20
|
+
text?: string;
|
|
21
|
+
}
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CTooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CTooltipProps> & Readonly<{}>, {
|
|
25
|
+
text: string;
|
|
26
|
+
open: boolean;
|
|
27
|
+
distance: number | string;
|
|
28
|
+
position: CPlacement;
|
|
29
|
+
delay: number | string;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
31
|
+
trigger?: (props: {}) => any;
|
|
32
|
+
} & {
|
|
33
|
+
content?: (props: {}) => any;
|
|
34
|
+
}>;
|
|
35
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
package/dist-types/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export type { CIconButtonProps, CIconButtonSize, } from './components/c-icon-but
|
|
|
8
8
|
export type { CLoginCardActionsAlign, CLoginCardActionsJustify, CLoginCardActionsProps, } from './components/c-login-card-actions/CLoginCardActions.vue';
|
|
9
9
|
export type { CLoginCardBlendMode, CLoginCardProps, } from './components/c-login-card/CLoginCard.vue';
|
|
10
10
|
export type { CPaginationOptions, CPaginationProps, CPaginationSize, } from './components/c-pagination/CPagination.vue';
|
|
11
|
+
export type { CPopoverProps } from './components/c-popover/CPopover.vue';
|
|
12
|
+
export type { CProgressCircleProps } from './components/c-progress-circle/CProgressCircle.vue';
|
|
11
13
|
export type { CStatusProps, CStatusType, } from './components/c-status/CStatus.vue';
|
|
12
14
|
export type { CTabButtonsProps, CTabButtonsSize, } from './components/c-tab-buttons/CTabButtons.vue';
|
|
13
15
|
export type { CTabsJustify, CTabsProps } from './components/c-tabs/CTabs.vue';
|
|
@@ -16,10 +18,11 @@ export type { CTagsProps, CTagsSize } from './components/c-tags/CTags.vue';
|
|
|
16
18
|
export type { CTextFieldAutocapitalize, CTextFieldProps, CTextFieldType, } from './components/c-text-field/CTextField.vue';
|
|
17
19
|
export type { CToastProps } from './components/c-toast/CToast.vue';
|
|
18
20
|
export type { CToastsHorizontal, CToastsProps, CToastsVertical, } from './components/c-toasts/CToasts.vue';
|
|
21
|
+
export type { CTooltipProps } from './components/c-tooltip/CTooltip.vue';
|
|
19
22
|
export type * from './tag-name-map';
|
|
20
23
|
export { applyTheme, resetTheme, themeToCss } from './theme/applyTheme';
|
|
21
24
|
export type { Family, ThemeSeeds } from './theme/applyTheme';
|
|
22
|
-
export type { CFieldSize, CSelectItem, CToastMessage, CToastType, } from './types';
|
|
25
|
+
export type { CFieldSize, CPlacement, CSelectItem, CToastMessage, CToastType, } from './types';
|
|
23
26
|
export { h } from 'vue';
|
|
24
27
|
export type { VNode, VNodeChild } from 'vue';
|
|
25
28
|
/**
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface FieldMessageProps {
|
|
2
|
+
/** Consumer-supplied text shown in place of the hint while invalid. */
|
|
3
|
+
errorMessage?: string;
|
|
4
|
+
/** Suppress the whole message area (no reserved height either). */
|
|
5
|
+
hideDetails?: boolean;
|
|
6
|
+
/** Neutral helper text shown while valid (or when no error message is supplied). */
|
|
7
|
+
hint?: string;
|
|
8
|
+
/** Part name stamped on the message area (`message` unless the host reserves it). */
|
|
9
|
+
part?: string;
|
|
10
|
+
/** Host control's validity; `false` switches to the error message when one is supplied. */
|
|
11
|
+
valid?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<FieldMessageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldMessageProps> & Readonly<{}>, {
|
|
14
|
+
part: string;
|
|
15
|
+
errorMessage: string;
|
|
16
|
+
hideDetails: boolean;
|
|
17
|
+
hint: string;
|
|
18
|
+
valid: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CPlacement } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* `CPlacement` → CSS `position-area`, shared by the anchor-positioned overlay
|
|
4
|
+
* components (`c-menu`, `c-tooltip`, `c-popover`; ADR-0008). Native flip/shift
|
|
5
|
+
* comes from each component's `position-try-fallbacks` escape-hatch rule.
|
|
6
|
+
*/
|
|
7
|
+
export declare const POSITION_AREA: Record<CPlacement, string>;
|
|
8
|
+
/**
|
|
9
|
+
* The logical axis of a placement's side — the axis the trigger→panel gap
|
|
10
|
+
* margin is applied on (both sides, so the gap survives the position-try
|
|
11
|
+
* flip fallbacks).
|
|
12
|
+
*/
|
|
13
|
+
export declare const placementAxis: (position: CPlacement) => "block" | "inline";
|