@cck-ui/core 0.11.0 → 0.12.0
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/cjs/components/alert/alert.cjs +493 -0
- package/cjs/components/alert/alert.cjs.map +1 -0
- package/cjs/components/alert/alert.module.cjs +16 -0
- package/cjs/components/alert/alert.module.cjs.map +1 -0
- package/cjs/components/alert/alert.utils.cjs +21 -0
- package/cjs/components/alert/alert.utils.cjs.map +1 -0
- package/cjs/components/alert/index.cjs +14 -0
- package/cjs/components/alert/index.cjs.map +1 -0
- package/cjs/components/aspect-ratio/aspect-ratio.cjs +1 -1
- package/cjs/components/aspect-ratio/aspect-ratio.cjs.map +1 -1
- package/cjs/components/button/button.cjs +1 -1
- package/cjs/components/close-button/close-button.cjs +434 -0
- package/cjs/components/close-button/close-button.cjs.map +1 -0
- package/cjs/components/close-button/close-button.module.cjs +10 -0
- package/cjs/components/close-button/close-button.module.cjs.map +1 -0
- package/cjs/components/close-button/close-button.utils.cjs +13 -0
- package/cjs/components/close-button/close-button.utils.cjs.map +1 -0
- package/cjs/components/close-button/close-icon.cjs +56 -0
- package/cjs/components/close-button/close-icon.cjs.map +1 -0
- package/cjs/components/close-button/index.cjs +14 -0
- package/cjs/components/close-button/index.cjs.map +1 -0
- package/cjs/index.cjs +57 -50
- package/cjs/index.cjs.map +1 -1
- package/esm/components/alert/alert.mjs +493 -0
- package/esm/components/alert/alert.mjs.map +1 -0
- package/esm/components/alert/alert.module.mjs +16 -0
- package/esm/components/alert/alert.module.mjs.map +1 -0
- package/esm/components/alert/alert.utils.mjs +22 -0
- package/esm/components/alert/alert.utils.mjs.map +1 -0
- package/esm/components/alert/index.mjs +11 -0
- package/esm/components/alert/index.mjs.map +1 -0
- package/esm/components/aspect-ratio/aspect-ratio.mjs +1 -1
- package/esm/components/aspect-ratio/aspect-ratio.mjs.map +1 -1
- package/esm/components/button/button.mjs +1 -1
- package/esm/components/close-button/close-button.mjs +434 -0
- package/esm/components/close-button/close-button.mjs.map +1 -0
- package/esm/components/close-button/close-button.module.mjs +10 -0
- package/esm/components/close-button/close-button.module.mjs.map +1 -0
- package/esm/components/close-button/close-button.utils.mjs +14 -0
- package/esm/components/close-button/close-button.utils.mjs.map +1 -0
- package/esm/components/close-button/close-icon.mjs +56 -0
- package/esm/components/close-button/close-icon.mjs.map +1 -0
- package/esm/components/close-button/index.mjs +11 -0
- package/esm/components/close-button/index.mjs.map +1 -0
- package/esm/index.mjs +7 -2
- package/esm/index.mjs.map +1 -1
- package/lib/components/alert/alert.types.d.ts +42 -0
- package/lib/components/alert/alert.utils.d.ts +7 -0
- package/lib/components/alert/index.d.ts +6 -0
- package/lib/components/close-button/close-button.types.d.ts +39 -0
- package/lib/components/close-button/close-button.utils.d.ts +8 -0
- package/lib/components/close-button/index.d.ts +6 -0
- package/lib/components/index.d.ts +2 -0
- package/package.json +1 -1
- package/styles/alert.css +82 -0
- package/styles/alert.layer.css +83 -0
- package/styles/close-button.css +58 -0
- package/styles/close-button.layer.css +59 -0
- package/styles.css +142 -0
- package/styles.layer.css +142 -0
package/esm/index.mjs
CHANGED
|
@@ -50,8 +50,10 @@ import { resolveClassNames } from "./core/styles-api/use-styles/get-class-name/r
|
|
|
50
50
|
import { resolveStyles } from "./core/styles-api/use-styles/get-style/resolve-styles/resolve-styles.mjs";
|
|
51
51
|
import { FOCUS_CLASS_NAMES } from "./core/styles-api/use-styles/get-class-name/get-global-class-names/get-global-class-names.mjs";
|
|
52
52
|
import { useStyles } from "./core/styles-api/use-styles/use-styles.mjs";
|
|
53
|
-
import { CAspectRatio } from "./components/aspect-ratio/index.mjs";
|
|
54
53
|
import { UnstyledButton } from "./components/unstyled-button/index.mjs";
|
|
54
|
+
import { CCloseButton } from "./components/close-button/index.mjs";
|
|
55
|
+
import { CAlert } from "./components/alert/index.mjs";
|
|
56
|
+
import { CAspectRatio } from "./components/aspect-ratio/index.mjs";
|
|
55
57
|
import { CDefaultLoaders, CLoader } from "./components/loader/index.mjs";
|
|
56
58
|
import { transitions } from "./components/transition/transitions.mjs";
|
|
57
59
|
import { getTransitionProps } from "./components/transition/get-transition-props/get-transition-props.mjs";
|
|
@@ -71,11 +73,13 @@ const INSTALLED_KEY = Symbol("INSTALLED_KEY");
|
|
|
71
73
|
const components = [
|
|
72
74
|
CckConfigProvider,
|
|
73
75
|
CBox,
|
|
76
|
+
CAlert,
|
|
74
77
|
CAspectRatio,
|
|
75
78
|
CButton,
|
|
76
79
|
CButtonGroup,
|
|
77
80
|
CButtonGroupSection,
|
|
78
81
|
CCenter,
|
|
82
|
+
CCloseButton,
|
|
79
83
|
CCol,
|
|
80
84
|
CContainer,
|
|
81
85
|
CGrid,
|
|
@@ -84,6 +88,7 @@ const components = [
|
|
|
84
88
|
CSimpleGrid,
|
|
85
89
|
CSpace,
|
|
86
90
|
CSplitter,
|
|
91
|
+
CSplitterPane,
|
|
87
92
|
CStack,
|
|
88
93
|
CText,
|
|
89
94
|
CTransition,
|
|
@@ -97,6 +102,6 @@ const CckUI = { install(app) {
|
|
|
97
102
|
});
|
|
98
103
|
} };
|
|
99
104
|
//#endregion
|
|
100
|
-
export { CAspectRatio, CBox, CButton, CButtonGroup, CButtonGroupSection, transitions as CCK_TRANSITIONS, CCenter, CCol, CContainer, CDefaultLoaders, CGrid, CGroup, CLoader, CONFIG_KEY, CSimpleGrid, CSpace, CSplitter, CSplitterPane, CStack, CText, CTransition, CckConfigProvider, CckUI, CckUI as default, DEFAULT_THEME, FOCUS_CLASS_NAMES, STYLE_PROPS_DATA, THEME_KEY, UnstyledButton, alpha, camelToKebabCase, colorsTuple, createTheme, createVarsResolver, darken, deepMerge, defaultCssVariablesResolver, defaultVariantColorsResolver, em, extractStyleProps, filterProps, getBaseValue, getBreakpointValue, getCSSColorVariables, getComponentName, getFontSize, getGradient, getLineHeight, getPrimaryShade, getRadius, getShadow, getSize, getSortedBreakpoints, getSpacing, getThemeColor, getTransitionProps, hashStyleProps, isLightColor, isNumber, isNumberLike, isString, isStringNumber, isUndefined, isVirtualColor, keys, luminance, mergeThemeOverrides, normalizeNumberLikeStringProp, numberLikeStringToNumber, parseStyleProps, parseThemeColor, px, rem, resolveClassNames, resolveStyles, responsiveStyleManager, rgb, rgba, stylesToString, toRgba, useCckClassNamesPrefix, useCckColorScheme, useCckCssVariablesResolver, useCckEnv, useCckIsHeadless, useCckStyleNonce, useCckStylesTransform, useCckSxTransform, useCckTheme, useCckWithStaticClasses, useComponentProps, useConfigContext, useProviderColorScheme, useRandomClassName, useStyles, virtualColor, withClasses, withExtend, withInstall, withPropsDefaultSetter, withPropsFactory, withVarsResolver };
|
|
105
|
+
export { CAlert, CAspectRatio, CBox, CButton, CButtonGroup, CButtonGroupSection, transitions as CCK_TRANSITIONS, CCenter, CCloseButton, CCol, CContainer, CDefaultLoaders, CGrid, CGroup, CLoader, CONFIG_KEY, CSimpleGrid, CSpace, CSplitter, CSplitterPane, CStack, CText, CTransition, CckConfigProvider, CckUI, CckUI as default, DEFAULT_THEME, FOCUS_CLASS_NAMES, STYLE_PROPS_DATA, THEME_KEY, UnstyledButton, alpha, camelToKebabCase, colorsTuple, createTheme, createVarsResolver, darken, deepMerge, defaultCssVariablesResolver, defaultVariantColorsResolver, em, extractStyleProps, filterProps, getBaseValue, getBreakpointValue, getCSSColorVariables, getComponentName, getFontSize, getGradient, getLineHeight, getPrimaryShade, getRadius, getShadow, getSize, getSortedBreakpoints, getSpacing, getThemeColor, getTransitionProps, hashStyleProps, isLightColor, isNumber, isNumberLike, isString, isStringNumber, isUndefined, isVirtualColor, keys, luminance, mergeThemeOverrides, normalizeNumberLikeStringProp, numberLikeStringToNumber, parseStyleProps, parseThemeColor, px, rem, resolveClassNames, resolveStyles, responsiveStyleManager, rgb, rgba, stylesToString, toRgba, useCckClassNamesPrefix, useCckColorScheme, useCckCssVariablesResolver, useCckEnv, useCckIsHeadless, useCckStyleNonce, useCckStylesTransform, useCckSxTransform, useCckTheme, useCckWithStaticClasses, useComponentProps, useConfigContext, useProviderColorScheme, useRandomClassName, useStyles, virtualColor, withClasses, withExtend, withInstall, withPropsDefaultSetter, withPropsFactory, withVarsResolver };
|
|
101
106
|
|
|
102
107
|
//# sourceMappingURL=index.mjs.map
|
package/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import type { App, Plugin } from 'vue'\nimport {\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCol,\n CContainer,\n CGrid,\n CGroup,\n CLoader,\n CSimpleGrid,\n CSpace,\n CSplitter,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n} from './components'\nimport { CckConfigProvider, CBox } from './core'\n\nconst INSTALLED_KEY = Symbol('INSTALLED_KEY')\n\nconst components = [\n CckConfigProvider,\n CBox,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCol,\n CContainer,\n CGrid,\n CGroup,\n CLoader,\n CSimpleGrid,\n CSpace,\n CSplitter,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n]\n\nconst CckUI: Plugin = {\n install(app: App) {\n if ((app as any)[INSTALLED_KEY]) {\n return\n }\n ;(app as any)[INSTALLED_KEY] = true\n components.forEach((c) => {\n if (c.name) {\n app.component(c.name, c)\n }\n })\n },\n}\n\nexport default CckUI\nexport { CckUI }\n\nexport * from './components'\nexport * from './core'\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import type { App, Plugin } from 'vue'\nimport {\n CAlert,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CGrid,\n CGroup,\n CLoader,\n CSimpleGrid,\n CSpace,\n CSplitter,\n CSplitterPane,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n} from './components'\nimport { CckConfigProvider, CBox } from './core'\n\nconst INSTALLED_KEY = Symbol('INSTALLED_KEY')\n\nconst components = [\n CckConfigProvider,\n CBox,\n CAlert,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CGrid,\n CGroup,\n CLoader,\n CSimpleGrid,\n CSpace,\n CSplitter,\n CSplitterPane,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n]\n\nconst CckUI: Plugin = {\n install(app: App) {\n if ((app as any)[INSTALLED_KEY]) {\n return\n }\n ;(app as any)[INSTALLED_KEY] = true\n components.forEach((c) => {\n if (c.name) {\n app.component(c.name, c)\n }\n })\n },\n}\n\nexport default CckUI\nexport { CckUI }\n\nexport * from './components'\nexport * from './core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,MAAM,gBAAgB,OAAO,eAAe;AAE5C,MAAM,aAAa;CACjB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,QAAgB,EACpB,QAAQ,KAAU;CAChB,IAAK,IAAY,gBACf;CAED,IAAa,iBAAiB;CAC/B,WAAW,SAAS,MAAM;EACxB,IAAI,EAAE,MACJ,IAAI,UAAU,EAAE,MAAM,CAAC;CAE3B,CAAC;AACH,EACF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { BoxProps, CColor, CRadius, ElementProps, Factory, StylesApiProps } from '../../core';
|
|
2
|
+
export type AlertStylesNames = 'root' | 'body' | 'label' | 'title' | 'icon' | 'wrapper' | 'message' | 'close-button';
|
|
3
|
+
export type AlertVariant = 'default' | 'filled' | 'light' | 'outline' | 'dashed' | 'transparent' | 'white';
|
|
4
|
+
export type AlertCssVariables = {
|
|
5
|
+
root: '--alert-radius' | '--alert-bg' | '--alert-color' | '--alert-bd';
|
|
6
|
+
};
|
|
7
|
+
export interface AlertProps extends BoxProps, StylesApiProps<AlertFactory>, /* @vue-ignore */ ElementProps<'div', 'title'> {
|
|
8
|
+
/**
|
|
9
|
+
* @description Key of `theme.radius` or any valid CSS value to set border-radius
|
|
10
|
+
* @default theme.defaultRadius
|
|
11
|
+
*/
|
|
12
|
+
radius?: CRadius;
|
|
13
|
+
/**
|
|
14
|
+
* @description Key of `theme.colors` or any valid CSS color
|
|
15
|
+
* @default theme.primaryColor
|
|
16
|
+
*/
|
|
17
|
+
color?: CColor;
|
|
18
|
+
/**
|
|
19
|
+
* @description Determines whether close button should be displayed
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
withCloseButton?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @description Called when the close button is clicked
|
|
25
|
+
*/
|
|
26
|
+
onClose?: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* @description Close button `aria-label`
|
|
29
|
+
*/
|
|
30
|
+
closeButtonLabel?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @description If set, adjusts text color based on background color for `filled` variant
|
|
33
|
+
*/
|
|
34
|
+
autoContrast?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export type AlertFactory = Factory<{
|
|
37
|
+
props: AlertProps;
|
|
38
|
+
ref: HTMLDivElement;
|
|
39
|
+
stylesNames: AlertStylesNames;
|
|
40
|
+
vars: AlertCssVariables;
|
|
41
|
+
variant: AlertVariant;
|
|
42
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const varsResolver: import("../..").VarsResolver<{
|
|
2
|
+
props: import("./alert.types").AlertProps;
|
|
3
|
+
ref: HTMLDivElement;
|
|
4
|
+
stylesNames: import("./alert.types").AlertStylesNames;
|
|
5
|
+
vars: import("./alert.types").AlertCssVariables;
|
|
6
|
+
variant: import("./alert.types").AlertVariant;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SFCWithInstallAndClasses } from '../../core';
|
|
2
|
+
import Alert from './alert.vue';
|
|
3
|
+
import classes from './alert.module.css';
|
|
4
|
+
export declare const CAlert: SFCWithInstallAndClasses<typeof Alert, typeof classes>;
|
|
5
|
+
export default CAlert;
|
|
6
|
+
export * from './alert.types';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { BoxProps, CRadius, CSize, PolymorphicFactory, StylesApiProps } from '../../core';
|
|
2
|
+
export type CloseButtonVariant = 'subtle' | 'transparent';
|
|
3
|
+
export type CloseButtonStylesNames = 'root';
|
|
4
|
+
export type CloseButtonCssVariables = {
|
|
5
|
+
root: '--cb-icon-size' | '--cb-size' | '--cb-radius';
|
|
6
|
+
};
|
|
7
|
+
export interface __CloseButtonProps {
|
|
8
|
+
dataDisabled?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* @description Controls width and height of the button. Numbers are converted to rem.
|
|
11
|
+
* @default 'md'
|
|
12
|
+
*/
|
|
13
|
+
size?: CSize | (string & {}) | number;
|
|
14
|
+
/**
|
|
15
|
+
* @description Key of `theme.radius` or any valid CSS value to set border-radius. Numbers are converted to rem.
|
|
16
|
+
* @default theme.defaultRadius
|
|
17
|
+
*/
|
|
18
|
+
radius?: CRadius;
|
|
19
|
+
/**
|
|
20
|
+
* @description Sets `disabled` attribute, assigns disabled styles
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @description `X` icon `width` and `height`
|
|
25
|
+
* @default 70%
|
|
26
|
+
*/
|
|
27
|
+
iconSize?: number | string;
|
|
28
|
+
}
|
|
29
|
+
export interface CloseButtonProps extends __CloseButtonProps, BoxProps, StylesApiProps<CloseButtonFactory> {
|
|
30
|
+
__staticSelector?: string;
|
|
31
|
+
}
|
|
32
|
+
export type CloseButtonFactory = PolymorphicFactory<{
|
|
33
|
+
props: CloseButtonProps;
|
|
34
|
+
defaultComponent: 'button';
|
|
35
|
+
defaultRef: HTMLButtonElement;
|
|
36
|
+
stylesNames: CloseButtonStylesNames;
|
|
37
|
+
variant: CloseButtonVariant;
|
|
38
|
+
vars: CloseButtonCssVariables;
|
|
39
|
+
}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const varsResolver: import("../..").VarsResolver<{
|
|
2
|
+
props: import("./close-button.types").CloseButtonProps;
|
|
3
|
+
defaultComponent: "button";
|
|
4
|
+
defaultRef: HTMLButtonElement;
|
|
5
|
+
stylesNames: import("./close-button.types").CloseButtonStylesNames;
|
|
6
|
+
variant: import("./close-button.types").CloseButtonVariant;
|
|
7
|
+
vars: import("./close-button.types").CloseButtonCssVariables;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SFCWithInstallAndClasses } from '../../core';
|
|
2
|
+
import CloseButton from './close-button.vue';
|
|
3
|
+
import classes from './close-button.module.css';
|
|
4
|
+
export declare const CCloseButton: SFCWithInstallAndClasses<typeof CloseButton, typeof classes>;
|
|
5
|
+
export default CCloseButton;
|
|
6
|
+
export * from './close-button.types';
|
package/package.json
CHANGED
package/styles/alert.css
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
.m_efb192b3 {
|
|
2
|
+
--alert-radius: var(--c-radius-default);
|
|
3
|
+
--alert-bg: var(--c-primary-color-light);
|
|
4
|
+
--alert-bd: calc(0.0625rem * var(--c-scale)) solid transparent;
|
|
5
|
+
--alert-color: var(--c-primary-color-light-color);
|
|
6
|
+
|
|
7
|
+
padding: var(--c-spacing-md) var(--c-spacing-md);
|
|
8
|
+
border-radius: var(--alert-radius);
|
|
9
|
+
position: relative;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
background-color: var(--alert-bg);
|
|
12
|
+
border: var(--alert-bd);
|
|
13
|
+
color: var(--alert-color);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.m_7636d522 {
|
|
17
|
+
display: flex;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.m_efaa4b73 {
|
|
21
|
+
flex: 1;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
gap: var(--c-spacing-xs);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.m_69a4aa7 {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
font-size: var(--c-font-size-sm);
|
|
32
|
+
font-weight: var(--c-font-weight-bold);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.m_69a4aa7:where([data-with-close-button]) {
|
|
36
|
+
padding-inline-end: var(--c-spacing-md);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.m_625a743 {
|
|
40
|
+
display: block;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
text-overflow: ellipsis;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.m_efad4e4a {
|
|
46
|
+
line-height: 1;
|
|
47
|
+
width: calc(1.25rem * var(--c-scale));
|
|
48
|
+
height: calc(1.25rem * var(--c-scale));
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: flex-start;
|
|
52
|
+
margin-inline-end: var(--c-spacing-md);
|
|
53
|
+
margin-top: calc(0.0625rem * var(--c-scale));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.m_50085096 {
|
|
57
|
+
text-overflow: ellipsis;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
font-size: var(--c-font-size-sm);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:where([data-c-color-scheme='light']) .m_50085096 {
|
|
63
|
+
color: var(--c-color-black);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:where([data-c-color-scheme='dark']) .m_50085096 {
|
|
67
|
+
color: var(--c-color-white);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.m_50085096:where([data-variant='filled']) {
|
|
71
|
+
color: var(--alert-color);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.m_50085096:where([data-variant='white']) {
|
|
75
|
+
color: var(--c-color-black);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.m_91af3d78 {
|
|
79
|
+
width: calc(1.25rem * var(--c-scale));
|
|
80
|
+
height: calc(1.25rem * var(--c-scale));
|
|
81
|
+
color: var(--alert-color);
|
|
82
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@layer cck {.m_efb192b3 {
|
|
2
|
+
--alert-radius: var(--c-radius-default);
|
|
3
|
+
--alert-bg: var(--c-primary-color-light);
|
|
4
|
+
--alert-bd: calc(0.0625rem * var(--c-scale)) solid transparent;
|
|
5
|
+
--alert-color: var(--c-primary-color-light-color);
|
|
6
|
+
|
|
7
|
+
padding: var(--c-spacing-md) var(--c-spacing-md);
|
|
8
|
+
border-radius: var(--alert-radius);
|
|
9
|
+
position: relative;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
background-color: var(--alert-bg);
|
|
12
|
+
border: var(--alert-bd);
|
|
13
|
+
color: var(--alert-color);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.m_7636d522 {
|
|
17
|
+
display: flex;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.m_efaa4b73 {
|
|
21
|
+
flex: 1;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
gap: var(--c-spacing-xs);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.m_69a4aa7 {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
font-size: var(--c-font-size-sm);
|
|
32
|
+
font-weight: var(--c-font-weight-bold);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.m_69a4aa7:where([data-with-close-button]) {
|
|
36
|
+
padding-inline-end: var(--c-spacing-md);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.m_625a743 {
|
|
40
|
+
display: block;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
text-overflow: ellipsis;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.m_efad4e4a {
|
|
46
|
+
line-height: 1;
|
|
47
|
+
width: calc(1.25rem * var(--c-scale));
|
|
48
|
+
height: calc(1.25rem * var(--c-scale));
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: flex-start;
|
|
52
|
+
margin-inline-end: var(--c-spacing-md);
|
|
53
|
+
margin-top: calc(0.0625rem * var(--c-scale));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.m_50085096 {
|
|
57
|
+
text-overflow: ellipsis;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
font-size: var(--c-font-size-sm);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:where([data-c-color-scheme='light']) .m_50085096 {
|
|
63
|
+
color: var(--c-color-black);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:where([data-c-color-scheme='dark']) .m_50085096 {
|
|
67
|
+
color: var(--c-color-white);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.m_50085096:where([data-variant='filled']) {
|
|
71
|
+
color: var(--alert-color);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.m_50085096:where([data-variant='white']) {
|
|
75
|
+
color: var(--c-color-black);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.m_91af3d78 {
|
|
79
|
+
width: calc(1.25rem * var(--c-scale));
|
|
80
|
+
height: calc(1.25rem * var(--c-scale));
|
|
81
|
+
color: var(--alert-color);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
.m_504ae648 {
|
|
2
|
+
--cb-size-xs: calc(1.125rem * var(--c-scale));
|
|
3
|
+
--cb-size-sm: calc(1.375rem * var(--c-scale));
|
|
4
|
+
--cb-size-md: calc(1.75rem * var(--c-scale));
|
|
5
|
+
--cb-size-lg: calc(2.125rem * var(--c-scale));
|
|
6
|
+
--cb-size-xl: calc(2.75rem * var(--c-scale));
|
|
7
|
+
|
|
8
|
+
--cb-size: var(--cb-size-md);
|
|
9
|
+
--cb-icon-size: 70%;
|
|
10
|
+
--cb-radius: var(--c-radius-default);
|
|
11
|
+
|
|
12
|
+
line-height: 1;
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
position: relative;
|
|
17
|
+
user-select: none;
|
|
18
|
+
|
|
19
|
+
width: var(--cb-size);
|
|
20
|
+
height: var(--cb-size);
|
|
21
|
+
min-width: var(--cb-size);
|
|
22
|
+
min-height: var(--cb-size);
|
|
23
|
+
border-radius: var(--cb-radius);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:where([data-c-color-scheme='light']) .m_504ae648 {
|
|
27
|
+
color: var(--c-color-gray-7);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where([data-c-color-scheme='dark']) .m_504ae648 {
|
|
31
|
+
color: var(--c-color-dark-1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.m_504ae648[data-disabled],
|
|
35
|
+
.m_504ae648:disabled {
|
|
36
|
+
cursor: not-allowed;
|
|
37
|
+
opacity: 0.6;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (hover: hover) {
|
|
41
|
+
:where([data-c-color-scheme='light']) .m_ef2dc695:where(:not([data-disabled], :disabled)):hover {
|
|
42
|
+
background-color: var(--c-color-gray-0);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:where([data-c-color-scheme='dark']) .m_ef2dc695:where(:not([data-disabled], :disabled)):hover {
|
|
46
|
+
background-color: var(--c-color-dark-6);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@media (hover: none) {
|
|
51
|
+
:where([data-c-color-scheme='light']) .m_ef2dc695:where(:not([data-disabled], :disabled)):active {
|
|
52
|
+
background-color: var(--c-color-gray-0);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:where([data-c-color-scheme='dark']) .m_ef2dc695:where(:not([data-disabled], :disabled)):active {
|
|
56
|
+
background-color: var(--c-color-dark-6);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@layer cck {.m_504ae648 {
|
|
2
|
+
--cb-size-xs: calc(1.125rem * var(--c-scale));
|
|
3
|
+
--cb-size-sm: calc(1.375rem * var(--c-scale));
|
|
4
|
+
--cb-size-md: calc(1.75rem * var(--c-scale));
|
|
5
|
+
--cb-size-lg: calc(2.125rem * var(--c-scale));
|
|
6
|
+
--cb-size-xl: calc(2.75rem * var(--c-scale));
|
|
7
|
+
|
|
8
|
+
--cb-size: var(--cb-size-md);
|
|
9
|
+
--cb-icon-size: 70%;
|
|
10
|
+
--cb-radius: var(--c-radius-default);
|
|
11
|
+
|
|
12
|
+
line-height: 1;
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
position: relative;
|
|
17
|
+
user-select: none;
|
|
18
|
+
|
|
19
|
+
width: var(--cb-size);
|
|
20
|
+
height: var(--cb-size);
|
|
21
|
+
min-width: var(--cb-size);
|
|
22
|
+
min-height: var(--cb-size);
|
|
23
|
+
border-radius: var(--cb-radius);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:where([data-c-color-scheme='light']) .m_504ae648 {
|
|
27
|
+
color: var(--c-color-gray-7);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where([data-c-color-scheme='dark']) .m_504ae648 {
|
|
31
|
+
color: var(--c-color-dark-1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.m_504ae648[data-disabled],
|
|
35
|
+
.m_504ae648:disabled {
|
|
36
|
+
cursor: not-allowed;
|
|
37
|
+
opacity: 0.6;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (hover: hover) {
|
|
41
|
+
:where([data-c-color-scheme='light']) .m_ef2dc695:where(:not([data-disabled], :disabled)):hover {
|
|
42
|
+
background-color: var(--c-color-gray-0);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:where([data-c-color-scheme='dark']) .m_ef2dc695:where(:not([data-disabled], :disabled)):hover {
|
|
46
|
+
background-color: var(--c-color-dark-6);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@media (hover: none) {
|
|
51
|
+
:where([data-c-color-scheme='light']) .m_ef2dc695:where(:not([data-disabled], :disabled)):active {
|
|
52
|
+
background-color: var(--c-color-gray-0);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:where([data-c-color-scheme='dark']) .m_ef2dc695:where(:not([data-disabled], :disabled)):active {
|
|
56
|
+
background-color: var(--c-color-dark-6);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
package/styles.css
CHANGED
|
@@ -882,6 +882,89 @@ fieldset:disabled .c-active:active {
|
|
|
882
882
|
justify-content: center;
|
|
883
883
|
}
|
|
884
884
|
|
|
885
|
+
.m_efb192b3 {
|
|
886
|
+
--alert-radius: var(--c-radius-default);
|
|
887
|
+
--alert-bg: var(--c-primary-color-light);
|
|
888
|
+
--alert-bd: calc(0.0625rem * var(--c-scale)) solid transparent;
|
|
889
|
+
--alert-color: var(--c-primary-color-light-color);
|
|
890
|
+
|
|
891
|
+
padding: var(--c-spacing-md) var(--c-spacing-md);
|
|
892
|
+
border-radius: var(--alert-radius);
|
|
893
|
+
position: relative;
|
|
894
|
+
overflow: hidden;
|
|
895
|
+
background-color: var(--alert-bg);
|
|
896
|
+
border: var(--alert-bd);
|
|
897
|
+
color: var(--alert-color);
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
.m_7636d522 {
|
|
901
|
+
display: flex;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
.m_efaa4b73 {
|
|
905
|
+
flex: 1;
|
|
906
|
+
display: flex;
|
|
907
|
+
flex-direction: column;
|
|
908
|
+
gap: var(--c-spacing-xs);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
.m_69a4aa7 {
|
|
912
|
+
display: flex;
|
|
913
|
+
align-items: center;
|
|
914
|
+
justify-content: space-between;
|
|
915
|
+
font-size: var(--c-font-size-sm);
|
|
916
|
+
font-weight: var(--c-font-weight-bold);
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.m_69a4aa7:where([data-with-close-button]) {
|
|
920
|
+
padding-inline-end: var(--c-spacing-md);
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.m_625a743 {
|
|
924
|
+
display: block;
|
|
925
|
+
overflow: hidden;
|
|
926
|
+
text-overflow: ellipsis;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
.m_efad4e4a {
|
|
930
|
+
line-height: 1;
|
|
931
|
+
width: calc(1.25rem * var(--c-scale));
|
|
932
|
+
height: calc(1.25rem * var(--c-scale));
|
|
933
|
+
display: flex;
|
|
934
|
+
align-items: center;
|
|
935
|
+
justify-content: flex-start;
|
|
936
|
+
margin-inline-end: var(--c-spacing-md);
|
|
937
|
+
margin-top: calc(0.0625rem * var(--c-scale));
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
.m_50085096 {
|
|
941
|
+
text-overflow: ellipsis;
|
|
942
|
+
overflow: hidden;
|
|
943
|
+
font-size: var(--c-font-size-sm);
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
:where([data-c-color-scheme='light']) .m_50085096 {
|
|
947
|
+
color: var(--c-color-black);
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
:where([data-c-color-scheme='dark']) .m_50085096 {
|
|
951
|
+
color: var(--c-color-white);
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
.m_50085096:where([data-variant='filled']) {
|
|
955
|
+
color: var(--alert-color);
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
.m_50085096:where([data-variant='white']) {
|
|
959
|
+
color: var(--c-color-black);
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
.m_91af3d78 {
|
|
963
|
+
width: calc(1.25rem * var(--c-scale));
|
|
964
|
+
height: calc(1.25rem * var(--c-scale));
|
|
965
|
+
color: var(--alert-color);
|
|
966
|
+
}
|
|
967
|
+
|
|
885
968
|
.m_31f351f9 {
|
|
886
969
|
--ar-ratio: 1;
|
|
887
970
|
max-width: 100%;
|
|
@@ -906,6 +989,65 @@ fieldset:disabled .c-active:active {
|
|
|
906
989
|
display: inline-flex;
|
|
907
990
|
}
|
|
908
991
|
|
|
992
|
+
.m_504ae648 {
|
|
993
|
+
--cb-size-xs: calc(1.125rem * var(--c-scale));
|
|
994
|
+
--cb-size-sm: calc(1.375rem * var(--c-scale));
|
|
995
|
+
--cb-size-md: calc(1.75rem * var(--c-scale));
|
|
996
|
+
--cb-size-lg: calc(2.125rem * var(--c-scale));
|
|
997
|
+
--cb-size-xl: calc(2.75rem * var(--c-scale));
|
|
998
|
+
|
|
999
|
+
--cb-size: var(--cb-size-md);
|
|
1000
|
+
--cb-icon-size: 70%;
|
|
1001
|
+
--cb-radius: var(--c-radius-default);
|
|
1002
|
+
|
|
1003
|
+
line-height: 1;
|
|
1004
|
+
display: inline-flex;
|
|
1005
|
+
align-items: center;
|
|
1006
|
+
justify-content: center;
|
|
1007
|
+
position: relative;
|
|
1008
|
+
user-select: none;
|
|
1009
|
+
|
|
1010
|
+
width: var(--cb-size);
|
|
1011
|
+
height: var(--cb-size);
|
|
1012
|
+
min-width: var(--cb-size);
|
|
1013
|
+
min-height: var(--cb-size);
|
|
1014
|
+
border-radius: var(--cb-radius);
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
:where([data-c-color-scheme='light']) .m_504ae648 {
|
|
1018
|
+
color: var(--c-color-gray-7);
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
:where([data-c-color-scheme='dark']) .m_504ae648 {
|
|
1022
|
+
color: var(--c-color-dark-1);
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.m_504ae648[data-disabled],
|
|
1026
|
+
.m_504ae648:disabled {
|
|
1027
|
+
cursor: not-allowed;
|
|
1028
|
+
opacity: 0.6;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
@media (hover: hover) {
|
|
1032
|
+
:where([data-c-color-scheme='light']) .m_ef2dc695:where(:not([data-disabled], :disabled)):hover {
|
|
1033
|
+
background-color: var(--c-color-gray-0);
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
:where([data-c-color-scheme='dark']) .m_ef2dc695:where(:not([data-disabled], :disabled)):hover {
|
|
1037
|
+
background-color: var(--c-color-dark-6);
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
@media (hover: none) {
|
|
1042
|
+
:where([data-c-color-scheme='light']) .m_ef2dc695:where(:not([data-disabled], :disabled)):active {
|
|
1043
|
+
background-color: var(--c-color-gray-0);
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
:where([data-c-color-scheme='dark']) .m_ef2dc695:where(:not([data-disabled], :disabled)):active {
|
|
1047
|
+
background-color: var(--c-color-dark-6);
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
|
|
909
1051
|
.m_b03efeae {
|
|
910
1052
|
--container-size-xs: calc(33.75rem * var(--c-scale));
|
|
911
1053
|
--container-size-sm: calc(45rem * var(--c-scale));
|