@cck-ui/core 0.35.0 → 0.37.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/data-list/data-list-item/data-list-item.cjs +364 -0
- package/cjs/components/data-list/data-list-item/data-list-item.cjs.map +1 -0
- package/cjs/components/data-list/data-list-item-label/data-list-item-label.cjs +367 -0
- package/cjs/components/data-list/data-list-item-label/data-list-item-label.cjs.map +1 -0
- package/cjs/components/data-list/data-list-item-value/data-list-item-value.cjs +367 -0
- package/cjs/components/data-list/data-list-item-value/data-list-item-value.cjs.map +1 -0
- package/cjs/components/data-list/data-list.cjs +421 -0
- package/cjs/components/data-list/data-list.cjs.map +1 -0
- package/cjs/components/data-list/data-list.constant.cjs +7 -0
- package/cjs/components/data-list/data-list.constant.cjs.map +1 -0
- package/cjs/components/data-list/data-list.module.cjs +12 -0
- package/cjs/components/data-list/data-list.module.cjs.map +1 -0
- package/cjs/components/data-list/data-list.utils.cjs +13 -0
- package/cjs/components/data-list/data-list.utils.cjs.map +1 -0
- package/cjs/components/data-list/index.cjs +30 -0
- package/cjs/components/data-list/index.cjs.map +1 -0
- package/cjs/components/indicator/get-position-variables/get-position-variables.cjs +47 -0
- package/cjs/components/indicator/get-position-variables/get-position-variables.cjs.map +1 -0
- package/cjs/components/indicator/index.cjs +14 -0
- package/cjs/components/indicator/index.cjs.map +1 -0
- package/cjs/components/indicator/indicator.cjs +496 -0
- package/cjs/components/indicator/indicator.cjs.map +1 -0
- package/cjs/components/indicator/indicator.module.cjs +11 -0
- package/cjs/components/indicator/indicator.module.cjs.map +1 -0
- package/cjs/components/indicator/indicator.utils.cjs +27 -0
- package/cjs/components/indicator/indicator.utils.cjs.map +1 -0
- package/cjs/index.cjs +75 -63
- package/cjs/index.cjs.map +1 -1
- package/esm/components/data-list/data-list-item/data-list-item.mjs +364 -0
- package/esm/components/data-list/data-list-item/data-list-item.mjs.map +1 -0
- package/esm/components/data-list/data-list-item-label/data-list-item-label.mjs +367 -0
- package/esm/components/data-list/data-list-item-label/data-list-item-label.mjs.map +1 -0
- package/esm/components/data-list/data-list-item-value/data-list-item-value.mjs +367 -0
- package/esm/components/data-list/data-list-item-value/data-list-item-value.mjs.map +1 -0
- package/esm/components/data-list/data-list.constant.mjs +7 -0
- package/esm/components/data-list/data-list.constant.mjs.map +1 -0
- package/esm/components/data-list/data-list.mjs +421 -0
- package/esm/components/data-list/data-list.mjs.map +1 -0
- package/esm/components/data-list/data-list.module.mjs +12 -0
- package/esm/components/data-list/data-list.module.mjs.map +1 -0
- package/esm/components/data-list/data-list.utils.mjs +14 -0
- package/esm/components/data-list/data-list.utils.mjs.map +1 -0
- package/esm/components/data-list/index.mjs +26 -0
- package/esm/components/data-list/index.mjs.map +1 -0
- package/esm/components/indicator/get-position-variables/get-position-variables.mjs +47 -0
- package/esm/components/indicator/get-position-variables/get-position-variables.mjs.map +1 -0
- package/esm/components/indicator/index.mjs +11 -0
- package/esm/components/indicator/index.mjs.map +1 -0
- package/esm/components/indicator/indicator.mjs +496 -0
- package/esm/components/indicator/indicator.mjs.map +1 -0
- package/esm/components/indicator/indicator.module.mjs +11 -0
- package/esm/components/indicator/indicator.module.mjs.map +1 -0
- package/esm/components/indicator/indicator.utils.mjs +27 -0
- package/esm/components/indicator/indicator.utils.mjs.map +1 -0
- package/esm/index.mjs +8 -1
- package/esm/index.mjs.map +1 -1
- package/lib/components/data-list/data-list-item/data-list-item.types.d.ts +10 -0
- package/lib/components/data-list/data-list-item-label/data-list-item-label.types.d.ts +10 -0
- package/lib/components/data-list/data-list-item-value/data-list-item-value.types.d.ts +10 -0
- package/lib/components/data-list/data-list.constant.d.ts +3 -0
- package/lib/components/data-list/data-list.context.d.ts +5 -0
- package/lib/components/data-list/data-list.types.d.ts +50 -0
- package/lib/components/data-list/data-list.utils.d.ts +11 -0
- package/lib/components/data-list/index.d.ts +18 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/components/indicator/get-position-variables/get-position-variables.d.ts +5 -0
- package/lib/components/indicator/index.d.ts +6 -0
- package/lib/components/indicator/indicator.types.d.ts +82 -0
- package/lib/components/indicator/indicator.utils.d.ts +6 -0
- package/package.json +1 -1
- package/styles/data-list.css +54 -0
- package/styles/data-list.layer.css +55 -0
- package/styles/indicator.css +64 -0
- package/styles/indicator.layer.css +65 -0
- package/styles.css +120 -0
- package/styles.layer.css +120 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Properties } from 'csstype';
|
|
2
|
+
import { BoxProps, CSize, CSpacing, ElementProps, Factory, StylesApiProps } from '../../core';
|
|
3
|
+
import { DataListItemLabelStylesNames } from './data-list-item-label/data-list-item-label.types';
|
|
4
|
+
import { DataListItemValueStylesNames } from './data-list-item-value/data-list-item-value.types';
|
|
5
|
+
import { DataListItemStylesNames } from './data-list-item/data-list-item.types';
|
|
6
|
+
import DataListItem from './data-list-item/data-list-item.vue';
|
|
7
|
+
import DataListItemLabel from './data-list-item-label/data-list-item-label.vue';
|
|
8
|
+
import DataListItemValue from './data-list-item-value/data-list-item-value.vue';
|
|
9
|
+
export type DataListStylesNames = 'root' | DataListItemStylesNames | DataListItemLabelStylesNames | DataListItemValueStylesNames;
|
|
10
|
+
export type DataListCssVariables = {
|
|
11
|
+
root: '--data-list-fz' | '--data-list-lh' | '--data-list-gap' | '--data-list-label-width';
|
|
12
|
+
};
|
|
13
|
+
export interface DataListProps extends BoxProps, StylesApiProps<DataListFactory>, /* @vue-ignore */ ElementProps<'div'> {
|
|
14
|
+
/**
|
|
15
|
+
* Controls `font-size` and `line-height`
|
|
16
|
+
* @default 'sm'
|
|
17
|
+
*/
|
|
18
|
+
size?: CSize;
|
|
19
|
+
/**
|
|
20
|
+
* Key of `theme.spacing` or any valid CSS value to set gap between items
|
|
21
|
+
* @default 'sm'
|
|
22
|
+
*/
|
|
23
|
+
gap?: CSpacing;
|
|
24
|
+
/**
|
|
25
|
+
* Controls arrangement of label and value within each item. `horizontal` renders label and value side by side, `vertical` stacks label on top of value
|
|
26
|
+
* @default 'horizontal'
|
|
27
|
+
*/
|
|
28
|
+
orientation?: 'horizontal' | 'vertical';
|
|
29
|
+
/**
|
|
30
|
+
* Adds border between items
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
withDivider?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Controls min-width of the label (dt) element, any valid CSS value
|
|
36
|
+
* @default '120px'
|
|
37
|
+
*/
|
|
38
|
+
labelWidth?: Properties['minWidth'];
|
|
39
|
+
}
|
|
40
|
+
export type DataListFactory = Factory<{
|
|
41
|
+
props: DataListProps;
|
|
42
|
+
ref: HTMLDivElement;
|
|
43
|
+
stylesNames: DataListStylesNames;
|
|
44
|
+
vars: DataListCssVariables;
|
|
45
|
+
staticComponents: {
|
|
46
|
+
Item: typeof DataListItem;
|
|
47
|
+
ItemLabel: typeof DataListItemLabel;
|
|
48
|
+
ItemValue: typeof DataListItemValue;
|
|
49
|
+
};
|
|
50
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const varsResolver: import("../..").VarsResolver<{
|
|
2
|
+
props: import("./data-list.types").DataListProps;
|
|
3
|
+
ref: HTMLDivElement;
|
|
4
|
+
stylesNames: import("./data-list.types").DataListStylesNames;
|
|
5
|
+
vars: import("./data-list.types").DataListCssVariables;
|
|
6
|
+
staticComponents: {
|
|
7
|
+
Item: typeof import("*.vue");
|
|
8
|
+
ItemLabel: typeof import("*.vue");
|
|
9
|
+
ItemValue: typeof import("*.vue");
|
|
10
|
+
};
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SFCWithInstallAndClasses } from '../../core';
|
|
2
|
+
import DataList from './data-list.vue';
|
|
3
|
+
import DataListItem from './data-list-item/data-list-item.vue';
|
|
4
|
+
import DataListItemLabel from './data-list-item-label/data-list-item-label.vue';
|
|
5
|
+
import DataListItemValue from './data-list-item-value/data-list-item-value.vue';
|
|
6
|
+
export declare const CDataListItem: SFCWithInstallAndClasses<typeof DataListItem>;
|
|
7
|
+
export declare const CDataListItemLabel: SFCWithInstallAndClasses<typeof DataListItemLabel>;
|
|
8
|
+
export declare const CDataListItemValue: SFCWithInstallAndClasses<typeof DataListItemValue>;
|
|
9
|
+
export declare const CDataList: SFCWithInstallAndClasses<typeof DataList> & {
|
|
10
|
+
Item: typeof DataListItem;
|
|
11
|
+
Label: typeof DataListItemLabel;
|
|
12
|
+
Value: typeof DataListItemValue;
|
|
13
|
+
};
|
|
14
|
+
export default CDataList;
|
|
15
|
+
export * from './data-list-item/data-list-item.types';
|
|
16
|
+
export * from './data-list-item-label/data-list-item-label.types';
|
|
17
|
+
export * from './data-list-item-value/data-list-item-value.types';
|
|
18
|
+
export * from './data-list.types';
|
|
@@ -15,6 +15,7 @@ export * from './close-button';
|
|
|
15
15
|
export * from './color-swatch';
|
|
16
16
|
export * from './container';
|
|
17
17
|
export * from './copy-button';
|
|
18
|
+
export * from './data-list';
|
|
18
19
|
export * from './divider';
|
|
19
20
|
export * from './empty-state';
|
|
20
21
|
export * from './file-button';
|
|
@@ -23,6 +24,7 @@ export * from './focus-trap';
|
|
|
23
24
|
export * from './grid';
|
|
24
25
|
export * from './group';
|
|
25
26
|
export * from './image';
|
|
27
|
+
export * from './indicator';
|
|
26
28
|
export * from './loader';
|
|
27
29
|
export * from './paper';
|
|
28
30
|
export * from './portal';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IndicatorPosition, IndicatorPositionVariables } from '../indicator.types';
|
|
2
|
+
export declare function getPositionVariables(_position?: IndicatorPosition, offset?: number | {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}): Record<IndicatorPositionVariables, string | undefined>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SFCWithInstallAndClasses } from '../../core';
|
|
2
|
+
import classes from './indicator.module.css';
|
|
3
|
+
import Indicator from './indicator.vue';
|
|
4
|
+
export declare const CIndicator: SFCWithInstallAndClasses<typeof Indicator, typeof classes>;
|
|
5
|
+
export default CIndicator;
|
|
6
|
+
export * from './indicator.types';
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { BoxProps, CColor, CRadius, ElementProps, Factory, StylesApiProps } from '../../core';
|
|
2
|
+
type Position = 'top' | 'middle' | 'bottom';
|
|
3
|
+
type Placement = 'start' | 'center' | 'end';
|
|
4
|
+
export type IndicatorPosition = `${Position}-${Placement}`;
|
|
5
|
+
export type IndicatorPositionVariables = '--indicator-top' | '--indicator-bottom' | '--indicator-left' | '--indicator-right' | '--indicator-translate-x' | '--indicator-translate-y';
|
|
6
|
+
export type IndicatorStylesNames = 'root' | 'indicator';
|
|
7
|
+
export type IndicatorCssVariables = {
|
|
8
|
+
root: '--indicator-color' | '--indicator-text-color' | '--indicator-size' | '--indicator-radius' | '--indicator-z-index' | IndicatorPositionVariables;
|
|
9
|
+
};
|
|
10
|
+
export interface IndicatorProps extends BoxProps, StylesApiProps<IndicatorFactory>, /* @vue-ignore */ ElementProps<'div'> {
|
|
11
|
+
/**
|
|
12
|
+
* Indicator position relative to the target element
|
|
13
|
+
* @default 'top-end'
|
|
14
|
+
*/
|
|
15
|
+
position?: IndicatorPosition;
|
|
16
|
+
/**
|
|
17
|
+
* Distance in pixels to offset the indicator from its default position, useful for elements with border-radius.
|
|
18
|
+
* Can be a number for uniform offset or an object with `x` and `y` properties for separate horizontal and vertical offsets
|
|
19
|
+
* @default 0
|
|
20
|
+
*/
|
|
21
|
+
offset?: number | {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Changes container display from block to inline-block, use when wrapping elements with fixed width
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
inline?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Indicator width and height
|
|
32
|
+
* @default 10
|
|
33
|
+
*/
|
|
34
|
+
size?: number | string;
|
|
35
|
+
/** Label displayed inside the indicator, for example, notification count */
|
|
36
|
+
label?: string | number;
|
|
37
|
+
/**
|
|
38
|
+
* Key of `theme.radius` or any valid CSS value to set `border-radius`
|
|
39
|
+
* @default 100
|
|
40
|
+
*/
|
|
41
|
+
radius?: CRadius;
|
|
42
|
+
/**
|
|
43
|
+
* Key of `theme.colors` or any valid CSS color value
|
|
44
|
+
* @default theme.primaryColor
|
|
45
|
+
*/
|
|
46
|
+
color?: CColor;
|
|
47
|
+
/** Adds border to the root element */
|
|
48
|
+
withBorder?: boolean;
|
|
49
|
+
/** Hides the indicator when set */
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* If set, the indicator has processing animation
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
processing?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Indicator z-index
|
|
58
|
+
* @default 200
|
|
59
|
+
*/
|
|
60
|
+
zIndex?: string;
|
|
61
|
+
/** If set, adjusts text color based on background color */
|
|
62
|
+
autoContrast?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Maximum value to display.
|
|
65
|
+
* If label is a number greater than this value, it will be displayed as `${maxValue}+`.
|
|
66
|
+
* Only works when `label` prop is set as a valid number
|
|
67
|
+
*/
|
|
68
|
+
maxValue?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Determines whether indicator with label `0` should be displayed
|
|
71
|
+
* Only works when `label` prop is set as a valid number
|
|
72
|
+
* @default true
|
|
73
|
+
*/
|
|
74
|
+
showZero?: boolean;
|
|
75
|
+
}
|
|
76
|
+
export type IndicatorFactory = Factory<{
|
|
77
|
+
props: IndicatorProps;
|
|
78
|
+
ref: HTMLDivElement;
|
|
79
|
+
stylesNames: IndicatorStylesNames;
|
|
80
|
+
vars: IndicatorCssVariables;
|
|
81
|
+
}>;
|
|
82
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const varsResolver: import("../..").VarsResolver<{
|
|
2
|
+
props: import("./indicator.types").IndicatorProps;
|
|
3
|
+
ref: HTMLDivElement;
|
|
4
|
+
stylesNames: import("./indicator.types").IndicatorStylesNames;
|
|
5
|
+
vars: import("./indicator.types").IndicatorCssVariables;
|
|
6
|
+
}>;
|
package/package.json
CHANGED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.m_a6a06a4e {
|
|
2
|
+
--data-list-fz: var(--c-font-size-sm);
|
|
3
|
+
--data-list-lh: var(--c-line-height-sm);
|
|
4
|
+
--data-list-gap: var(--c-spacing-sm);
|
|
5
|
+
--data-list-label-width: calc(7.5rem * var(--c-scale));
|
|
6
|
+
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: var(--data-list-gap);
|
|
10
|
+
font-size: var(--data-list-fz);
|
|
11
|
+
line-height: var(--data-list-lh);
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.m_a6a06a4e:where([data-with-divider]) {
|
|
17
|
+
gap: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.m_a69c647f {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
align-items: baseline;
|
|
24
|
+
gap: var(--c-spacing-xs);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.m_a6a06a4e:where([data-orientation='vertical']) > .m_a69c647f {
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
gap: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.m_9c9621b5 {
|
|
33
|
+
color: var(--c-color-dimmed);
|
|
34
|
+
font-size: var(--data-list-fz);
|
|
35
|
+
line-height: var(--data-list-lh);
|
|
36
|
+
min-width: var(--data-list-label-width);
|
|
37
|
+
margin: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.m_a6a06a4e:where([data-orientation='vertical']) .m_9c9621b5 {
|
|
41
|
+
min-width: 100%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.m_9d233432 {
|
|
45
|
+
font-size: var(--data-list-fz);
|
|
46
|
+
line-height: var(--data-list-lh);
|
|
47
|
+
margin: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.m_a6a06a4e:where([data-with-divider]) > .m_a69c647f:where(:not(:first-of-type)) {
|
|
51
|
+
border-top: calc(0.0625rem * var(--c-scale)) solid var(--c-color-default-border);
|
|
52
|
+
padding-top: var(--data-list-gap);
|
|
53
|
+
margin-top: var(--data-list-gap);
|
|
54
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@layer cck {.m_a6a06a4e {
|
|
2
|
+
--data-list-fz: var(--c-font-size-sm);
|
|
3
|
+
--data-list-lh: var(--c-line-height-sm);
|
|
4
|
+
--data-list-gap: var(--c-spacing-sm);
|
|
5
|
+
--data-list-label-width: calc(7.5rem * var(--c-scale));
|
|
6
|
+
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: var(--data-list-gap);
|
|
10
|
+
font-size: var(--data-list-fz);
|
|
11
|
+
line-height: var(--data-list-lh);
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.m_a6a06a4e:where([data-with-divider]) {
|
|
17
|
+
gap: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.m_a69c647f {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
align-items: baseline;
|
|
24
|
+
gap: var(--c-spacing-xs);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.m_a6a06a4e:where([data-orientation='vertical']) > .m_a69c647f {
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
gap: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.m_9c9621b5 {
|
|
33
|
+
color: var(--c-color-dimmed);
|
|
34
|
+
font-size: var(--data-list-fz);
|
|
35
|
+
line-height: var(--data-list-lh);
|
|
36
|
+
min-width: var(--data-list-label-width);
|
|
37
|
+
margin: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.m_a6a06a4e:where([data-orientation='vertical']) .m_9c9621b5 {
|
|
41
|
+
min-width: 100%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.m_9d233432 {
|
|
45
|
+
font-size: var(--data-list-fz);
|
|
46
|
+
line-height: var(--data-list-lh);
|
|
47
|
+
margin: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.m_a6a06a4e:where([data-with-divider]) > .m_a69c647f:where(:not(:first-of-type)) {
|
|
51
|
+
border-top: calc(0.0625rem * var(--c-scale)) solid var(--c-color-default-border);
|
|
52
|
+
padding-top: var(--data-list-gap);
|
|
53
|
+
margin-top: var(--data-list-gap);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
@keyframes m_7c93cd91 {
|
|
2
|
+
0% {
|
|
3
|
+
opacity: 0.6;
|
|
4
|
+
transform: scale(0);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
100% {
|
|
8
|
+
opacity: 0;
|
|
9
|
+
transform: scale(2.8);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.m_20df55e0 {
|
|
14
|
+
--indicator-size: calc(0.625rem * var(--c-scale));
|
|
15
|
+
--indicator-color: var(--c-primary-color-filled);
|
|
16
|
+
|
|
17
|
+
position: relative;
|
|
18
|
+
display: block;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.m_20df55e0:where([data-inline]) {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.m_2b5957d1 {
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: var(--indicator-top);
|
|
28
|
+
left: var(--indicator-left);
|
|
29
|
+
right: var(--indicator-right);
|
|
30
|
+
bottom: var(--indicator-bottom);
|
|
31
|
+
transform: translate(var(--indicator-translate-x), var(--indicator-translate-y));
|
|
32
|
+
min-width: var(--indicator-size);
|
|
33
|
+
height: var(--indicator-size);
|
|
34
|
+
border-radius: var(--indicator-radius, 1000rem);
|
|
35
|
+
z-index: var(--indicator-z-index, 200);
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
font-size: var(--c-font-size-xs);
|
|
40
|
+
background-color: var(--indicator-color);
|
|
41
|
+
color: var(--indicator-text-color, var(--c-color-white));
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.m_2b5957d1::before {
|
|
46
|
+
content: '';
|
|
47
|
+
position: absolute;
|
|
48
|
+
inset: 0;
|
|
49
|
+
background-color: var(--indicator-color);
|
|
50
|
+
border-radius: var(--indicator-radius, 1000rem);
|
|
51
|
+
z-index: -1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.m_2b5957d1:where([data-with-label]) {
|
|
55
|
+
padding-inline: calc(var(--c-spacing-xs) / 2);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.m_2b5957d1:where([data-with-border]) {
|
|
59
|
+
border: 2px solid var(--c-color-body);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.m_2b5957d1[data-processing]::before {
|
|
63
|
+
animation: m_7c93cd91 1000ms linear infinite;
|
|
64
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
@layer cck {@keyframes m_7c93cd91 {
|
|
2
|
+
0% {
|
|
3
|
+
opacity: 0.6;
|
|
4
|
+
transform: scale(0);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
100% {
|
|
8
|
+
opacity: 0;
|
|
9
|
+
transform: scale(2.8);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.m_20df55e0 {
|
|
14
|
+
--indicator-size: calc(0.625rem * var(--c-scale));
|
|
15
|
+
--indicator-color: var(--c-primary-color-filled);
|
|
16
|
+
|
|
17
|
+
position: relative;
|
|
18
|
+
display: block;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.m_20df55e0:where([data-inline]) {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.m_2b5957d1 {
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: var(--indicator-top);
|
|
28
|
+
left: var(--indicator-left);
|
|
29
|
+
right: var(--indicator-right);
|
|
30
|
+
bottom: var(--indicator-bottom);
|
|
31
|
+
transform: translate(var(--indicator-translate-x), var(--indicator-translate-y));
|
|
32
|
+
min-width: var(--indicator-size);
|
|
33
|
+
height: var(--indicator-size);
|
|
34
|
+
border-radius: var(--indicator-radius, 1000rem);
|
|
35
|
+
z-index: var(--indicator-z-index, 200);
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
font-size: var(--c-font-size-xs);
|
|
40
|
+
background-color: var(--indicator-color);
|
|
41
|
+
color: var(--indicator-text-color, var(--c-color-white));
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.m_2b5957d1::before {
|
|
46
|
+
content: '';
|
|
47
|
+
position: absolute;
|
|
48
|
+
inset: 0;
|
|
49
|
+
background-color: var(--indicator-color);
|
|
50
|
+
border-radius: var(--indicator-radius, 1000rem);
|
|
51
|
+
z-index: -1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.m_2b5957d1:where([data-with-label]) {
|
|
55
|
+
padding-inline: calc(var(--c-spacing-xs) / 2);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.m_2b5957d1:where([data-with-border]) {
|
|
59
|
+
border: 2px solid var(--c-color-body);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.m_2b5957d1[data-processing]::before {
|
|
63
|
+
animation: m_7c93cd91 1000ms linear infinite;
|
|
64
|
+
}
|
|
65
|
+
}
|
package/styles.css
CHANGED
|
@@ -1881,6 +1881,61 @@ fieldset:disabled .c-active:active {
|
|
|
1881
1881
|
margin-inline: auto;
|
|
1882
1882
|
}
|
|
1883
1883
|
|
|
1884
|
+
.m_a6a06a4e {
|
|
1885
|
+
--data-list-fz: var(--c-font-size-sm);
|
|
1886
|
+
--data-list-lh: var(--c-line-height-sm);
|
|
1887
|
+
--data-list-gap: var(--c-spacing-sm);
|
|
1888
|
+
--data-list-label-width: calc(7.5rem * var(--c-scale));
|
|
1889
|
+
|
|
1890
|
+
display: flex;
|
|
1891
|
+
flex-direction: column;
|
|
1892
|
+
gap: var(--data-list-gap);
|
|
1893
|
+
font-size: var(--data-list-fz);
|
|
1894
|
+
line-height: var(--data-list-lh);
|
|
1895
|
+
margin: 0;
|
|
1896
|
+
padding: 0;
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
.m_a6a06a4e:where([data-with-divider]) {
|
|
1900
|
+
gap: 0;
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
.m_a69c647f {
|
|
1904
|
+
display: flex;
|
|
1905
|
+
flex-direction: row;
|
|
1906
|
+
align-items: baseline;
|
|
1907
|
+
gap: var(--c-spacing-xs);
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
.m_a6a06a4e:where([data-orientation='vertical']) > .m_a69c647f {
|
|
1911
|
+
flex-direction: column;
|
|
1912
|
+
gap: 0;
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
.m_9c9621b5 {
|
|
1916
|
+
color: var(--c-color-dimmed);
|
|
1917
|
+
font-size: var(--data-list-fz);
|
|
1918
|
+
line-height: var(--data-list-lh);
|
|
1919
|
+
min-width: var(--data-list-label-width);
|
|
1920
|
+
margin: 0;
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
.m_a6a06a4e:where([data-orientation='vertical']) .m_9c9621b5 {
|
|
1924
|
+
min-width: 100%;
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
.m_9d233432 {
|
|
1928
|
+
font-size: var(--data-list-fz);
|
|
1929
|
+
line-height: var(--data-list-lh);
|
|
1930
|
+
margin: 0;
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
.m_a6a06a4e:where([data-with-divider]) > .m_a69c647f:where(:not(:first-of-type)) {
|
|
1934
|
+
border-top: calc(0.0625rem * var(--c-scale)) solid var(--c-color-default-border);
|
|
1935
|
+
padding-top: var(--data-list-gap);
|
|
1936
|
+
margin-top: var(--data-list-gap);
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1884
1939
|
.m_35209716 {
|
|
1885
1940
|
--divider-size-xs: calc(0.0625rem * var(--c-scale));
|
|
1886
1941
|
--divider-size-sm: calc(0.125rem * var(--c-scale));
|
|
@@ -2125,6 +2180,71 @@ fieldset:disabled .c-active:active {
|
|
|
2125
2180
|
border-radius: var(--image-radius, 0);
|
|
2126
2181
|
}
|
|
2127
2182
|
|
|
2183
|
+
@keyframes m_7c93cd91 {
|
|
2184
|
+
0% {
|
|
2185
|
+
opacity: 0.6;
|
|
2186
|
+
transform: scale(0);
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
100% {
|
|
2190
|
+
opacity: 0;
|
|
2191
|
+
transform: scale(2.8);
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
|
|
2195
|
+
.m_20df55e0 {
|
|
2196
|
+
--indicator-size: calc(0.625rem * var(--c-scale));
|
|
2197
|
+
--indicator-color: var(--c-primary-color-filled);
|
|
2198
|
+
|
|
2199
|
+
position: relative;
|
|
2200
|
+
display: block;
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
.m_20df55e0:where([data-inline]) {
|
|
2204
|
+
display: inline-block;
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
.m_2b5957d1 {
|
|
2208
|
+
position: absolute;
|
|
2209
|
+
top: var(--indicator-top);
|
|
2210
|
+
left: var(--indicator-left);
|
|
2211
|
+
right: var(--indicator-right);
|
|
2212
|
+
bottom: var(--indicator-bottom);
|
|
2213
|
+
transform: translate(var(--indicator-translate-x), var(--indicator-translate-y));
|
|
2214
|
+
min-width: var(--indicator-size);
|
|
2215
|
+
height: var(--indicator-size);
|
|
2216
|
+
border-radius: var(--indicator-radius, 1000rem);
|
|
2217
|
+
z-index: var(--indicator-z-index, 200);
|
|
2218
|
+
display: flex;
|
|
2219
|
+
align-items: center;
|
|
2220
|
+
justify-content: center;
|
|
2221
|
+
font-size: var(--c-font-size-xs);
|
|
2222
|
+
background-color: var(--indicator-color);
|
|
2223
|
+
color: var(--indicator-text-color, var(--c-color-white));
|
|
2224
|
+
white-space: nowrap;
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
.m_2b5957d1::before {
|
|
2228
|
+
content: '';
|
|
2229
|
+
position: absolute;
|
|
2230
|
+
inset: 0;
|
|
2231
|
+
background-color: var(--indicator-color);
|
|
2232
|
+
border-radius: var(--indicator-radius, 1000rem);
|
|
2233
|
+
z-index: -1;
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
.m_2b5957d1:where([data-with-label]) {
|
|
2237
|
+
padding-inline: calc(var(--c-spacing-xs) / 2);
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
.m_2b5957d1:where([data-with-border]) {
|
|
2241
|
+
border: 2px solid var(--c-color-body);
|
|
2242
|
+
}
|
|
2243
|
+
|
|
2244
|
+
.m_2b5957d1[data-processing]::before {
|
|
2245
|
+
animation: m_7c93cd91 1000ms linear infinite;
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2128
2248
|
.m_a244865c {
|
|
2129
2249
|
--loader-size-xs: calc(1.125rem * var(--c-scale));
|
|
2130
2250
|
--loader-size-sm: calc(1.375rem * var(--c-scale));
|