@cck-ui/core 0.32.0 → 0.34.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.
Files changed (72) hide show
  1. package/cjs/components/badge/badge.cjs +488 -0
  2. package/cjs/components/badge/badge.cjs.map +1 -0
  3. package/cjs/components/badge/badge.module.cjs +12 -0
  4. package/cjs/components/badge/badge.module.cjs.map +1 -0
  5. package/cjs/components/badge/badge.utils.cjs +27 -0
  6. package/cjs/components/badge/badge.utils.cjs.map +1 -0
  7. package/cjs/components/badge/index.cjs +14 -0
  8. package/cjs/components/badge/index.cjs.map +1 -0
  9. package/cjs/components/card/card-section/card-section.cjs +376 -0
  10. package/cjs/components/card/card-section/card-section.cjs.map +1 -0
  11. package/cjs/components/card/card.cjs +441 -0
  12. package/cjs/components/card/card.cjs.map +1 -0
  13. package/cjs/components/card/card.constant.cjs +7 -0
  14. package/cjs/components/card/card.constant.cjs.map +1 -0
  15. package/cjs/components/card/card.module.cjs +10 -0
  16. package/cjs/components/card/card.module.cjs.map +1 -0
  17. package/cjs/components/card/card.utils.cjs +8 -0
  18. package/cjs/components/card/card.utils.cjs.map +1 -0
  19. package/cjs/components/card/index.cjs +18 -0
  20. package/cjs/components/card/index.cjs.map +1 -0
  21. package/cjs/components/paper/index.cjs +1 -1
  22. package/cjs/components/paper/paper.cjs +1 -1
  23. package/cjs/core/utils/filter-falsy-children/filter-falsy-children.cjs +17 -0
  24. package/cjs/core/utils/filter-falsy-children/filter-falsy-children.cjs.map +1 -0
  25. package/cjs/index.cjs +95 -85
  26. package/cjs/index.cjs.map +1 -1
  27. package/esm/components/badge/badge.mjs +488 -0
  28. package/esm/components/badge/badge.mjs.map +1 -0
  29. package/esm/components/badge/badge.module.mjs +12 -0
  30. package/esm/components/badge/badge.module.mjs.map +1 -0
  31. package/esm/components/badge/badge.utils.mjs +28 -0
  32. package/esm/components/badge/badge.utils.mjs.map +1 -0
  33. package/esm/components/badge/index.mjs +11 -0
  34. package/esm/components/badge/index.mjs.map +1 -0
  35. package/esm/components/card/card-section/card-section.mjs +376 -0
  36. package/esm/components/card/card-section/card-section.mjs.map +1 -0
  37. package/esm/components/card/card.constant.mjs +7 -0
  38. package/esm/components/card/card.constant.mjs.map +1 -0
  39. package/esm/components/card/card.mjs +441 -0
  40. package/esm/components/card/card.mjs.map +1 -0
  41. package/esm/components/card/card.module.mjs +10 -0
  42. package/esm/components/card/card.module.mjs.map +1 -0
  43. package/esm/components/card/card.utils.mjs +9 -0
  44. package/esm/components/card/card.utils.mjs.map +1 -0
  45. package/esm/components/card/index.mjs +15 -0
  46. package/esm/components/card/index.mjs.map +1 -0
  47. package/esm/components/paper/index.mjs +1 -1
  48. package/esm/components/paper/paper.mjs +1 -1
  49. package/esm/core/utils/filter-falsy-children/filter-falsy-children.mjs +17 -0
  50. package/esm/core/utils/filter-falsy-children/filter-falsy-children.mjs.map +1 -0
  51. package/esm/index.mjs +7 -1
  52. package/esm/index.mjs.map +1 -1
  53. package/lib/components/badge/badge.types.d.ts +52 -0
  54. package/lib/components/badge/badge.utils.d.ts +8 -0
  55. package/lib/components/badge/index.d.ts +6 -0
  56. package/lib/components/card/card-section/card-section.types.d.ts +15 -0
  57. package/lib/components/card/card.constant.d.ts +3 -0
  58. package/lib/components/card/card.context.d.ts +5 -0
  59. package/lib/components/card/card.types.d.ts +34 -0
  60. package/lib/components/card/card.utils.d.ts +8 -0
  61. package/lib/components/card/index.d.ts +11 -0
  62. package/lib/components/index.d.ts +2 -0
  63. package/lib/core/styles-api/styles-api.types.d.ts +2 -1
  64. package/lib/core/utils/filter-falsy-children/filter-falsy-children.d.ts +2 -0
  65. package/lib/core/utils/index.d.ts +1 -0
  66. package/package.json +1 -1
  67. package/styles/badge.css +124 -0
  68. package/styles/badge.layer.css +125 -0
  69. package/styles/card.css +89 -0
  70. package/styles/card.layer.css +90 -0
  71. package/styles.css +215 -0
  72. package/styles.layer.css +215 -0
@@ -0,0 +1,6 @@
1
+ import { SFCWithInstallAndClasses } from '../../core';
2
+ import classes from './badge.module.css';
3
+ import Badge from './badge.vue';
4
+ export declare const CBadge: SFCWithInstallAndClasses<typeof Badge, typeof classes>;
5
+ export default CBadge;
6
+ export * from './badge.types';
@@ -0,0 +1,15 @@
1
+ import { BoxProps, CompoundStylesApiProps, PolymorphicFactory } from '../../../core';
2
+ export type CardSectionStylesNames = 'section';
3
+ export interface CardSectionProps extends BoxProps, CompoundStylesApiProps<CardSectionFactory> {
4
+ /** Adds border to the root element */
5
+ withBorder?: boolean;
6
+ /** If set, the section inherits padding from the parent `Card` */
7
+ inheritPadding?: boolean;
8
+ }
9
+ export type CardSectionFactory = PolymorphicFactory<{
10
+ props: CardSectionProps;
11
+ defaultRef: HTMLDivElement;
12
+ defaultComponent: 'div';
13
+ stylesNames: CardSectionStylesNames;
14
+ compound: true;
15
+ }>;
@@ -0,0 +1,3 @@
1
+ import { InjectionKey } from 'vue';
2
+ import { CardContextValue } from './card.context';
3
+ export declare const CARD_CONTEXT_KEY: InjectionKey<CardContextValue>;
@@ -0,0 +1,5 @@
1
+ import { GetStylesApi } from '../../core';
2
+ import { CardFactory } from './card.types';
3
+ export interface CardContextValue {
4
+ getStyles: GetStylesApi<CardFactory>;
5
+ }
@@ -0,0 +1,34 @@
1
+ import { BoxProps, CRadius, CShadow, CSpacing, PolymorphicFactory, StylesApiProps } from '../../core';
2
+ export type CardStylesNames = 'root' | 'section';
3
+ export type CardCssVariables = {
4
+ root: '--card-padding';
5
+ };
6
+ export interface CardProps extends BoxProps, StylesApiProps<CardFactory> {
7
+ /** Key of `theme.shadows` or any valid CSS value to set `box-shadow` */
8
+ shadow?: CShadow;
9
+ /**
10
+ * Key of `theme.radius` or any valid CSS value to set border-radius, numbers are converted to rem
11
+ * @default theme.defaultRadius
12
+ */
13
+ radius?: CRadius;
14
+ /** Adds border to the card */
15
+ withBorder?: boolean;
16
+ /**
17
+ * Key of `theme.spacing` or any valid CSS value to set padding
18
+ * @default 'md'
19
+ */
20
+ padding?: CSpacing;
21
+ /**
22
+ * Card orientation
23
+ * @default 'vertical'
24
+ */
25
+ orientation?: 'horizontal' | 'vertical';
26
+ }
27
+ export type CardFactory = PolymorphicFactory<{
28
+ props: CardProps;
29
+ defaultRef: HTMLDivElement;
30
+ defaultComponent: 'div';
31
+ stylesNames: CardStylesNames;
32
+ vars: CardCssVariables;
33
+ staticComponents: {};
34
+ }>;
@@ -0,0 +1,8 @@
1
+ export declare const varsResolver: import("../..").VarsResolver<{
2
+ props: import("./card.types").CardProps;
3
+ defaultRef: HTMLDivElement;
4
+ defaultComponent: "div";
5
+ stylesNames: import("./card.types").CardStylesNames;
6
+ vars: import("./card.types").CardCssVariables;
7
+ staticComponents: {};
8
+ }>;
@@ -0,0 +1,11 @@
1
+ import { SFCWithInstallAndClasses } from '../../core';
2
+ import CardSection from './card-section/card-section.vue';
3
+ import classes from './card.module.css';
4
+ import Card from './card.vue';
5
+ export declare const CCardSection: SFCWithInstallAndClasses<typeof CardSection>;
6
+ export declare const CCard: SFCWithInstallAndClasses<typeof Card, typeof classes> & {
7
+ Section: typeof CardSection;
8
+ };
9
+ export default CCard;
10
+ export * from './card-section/card-section.types';
11
+ export * from './card.types';
@@ -5,9 +5,11 @@ export * from './anchor';
5
5
  export * from './aspect-ratio';
6
6
  export * from './avatar';
7
7
  export * from './background-image';
8
+ export * from './badge';
8
9
  export * from './breadcrumbs';
9
10
  export * from './burger';
10
11
  export * from './button';
12
+ export * from './card';
11
13
  export * from './center';
12
14
  export * from './close-button';
13
15
  export * from './container';
@@ -3,6 +3,7 @@ import { CStyleProp } from '../box';
3
3
  import type { FactoryPayload } from '../factory';
4
4
  import type { CTheme } from '../config-provider';
5
5
  import { PartialVarsResolver } from './create-vars-resolver/create-vars-resolver';
6
+ import { MaybeRefOrGetter } from 'vue';
6
7
  export type Styles<Payload extends FactoryPayload> = StylesApiRecord<Payload, Properties>;
7
8
  export type ClassNames<Payload extends FactoryPayload> = StylesApiRecord<Payload, string>;
8
9
  export type ClassNamesArray<Payload extends FactoryPayload> = (StylesApiRecord<Payload, string> | undefined)[];
@@ -11,7 +12,7 @@ export type Attributes<Payload extends FactoryPayload> = Payload['stylesNames']
11
12
  } : never;
12
13
  export type StylesRecord<StylesNames extends string, Payload> = Partial<Record<StylesNames, Payload>>;
13
14
  export interface GetStylesApiOptions {
14
- className?: string;
15
+ className?: MaybeRefOrGetter<string | undefined>;
15
16
  style?: CStyleProp;
16
17
  focusable?: boolean;
17
18
  active?: boolean;
@@ -0,0 +1,2 @@
1
+ import { VNode } from 'vue';
2
+ export declare function filterFalsyChildren(children: unknown): VNode[];
@@ -1,5 +1,6 @@
1
1
  export { deepMerge } from './deep-merge/deep-merge';
2
2
  export { camelToKebabCase } from './camel-to-kebab-case/camel-to-kebab-case';
3
+ export { filterFalsyChildren } from './filter-falsy-children/filter-falsy-children';
3
4
  export { filterProps } from './filter-props/filter-props';
4
5
  export { getBaseValue } from './get-base-value/get-base-value';
5
6
  export { getBreakpointValue } from './get-breakpoint-value/get-breakpoint-value';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cck-ui/core",
3
- "version": "0.32.0",
3
+ "version": "0.34.0",
4
4
  "description": "Vue component library focused on usability, accessibility and developer experience",
5
5
  "homepage": "https://cck-ui.jackatlas.xyz",
6
6
  "license": "ISC",
@@ -0,0 +1,124 @@
1
+ .m_bdabd4cc {
2
+ --badge-height-xs: calc(1rem * var(--c-scale));
3
+ --badge-height-sm: calc(1.125rem * var(--c-scale));
4
+ --badge-height-md: calc(1.25rem * var(--c-scale));
5
+ --badge-height-lg: calc(1.625rem * var(--c-scale));
6
+ --badge-height-xl: calc(2rem * var(--c-scale));
7
+
8
+ --badge-fz-xs: calc(0.5625rem * var(--c-scale));
9
+ --badge-fz-sm: calc(0.625rem * var(--c-scale));
10
+ --badge-fz-md: calc(0.6875rem * var(--c-scale));
11
+ --badge-fz-lg: calc(0.8125rem * var(--c-scale));
12
+ --badge-fz-xl: calc(1rem * var(--c-scale));
13
+
14
+ --badge-padding-x-xs: calc(0.375rem * var(--c-scale));
15
+ --badge-padding-x-sm: calc(0.5rem * var(--c-scale));
16
+ --badge-padding-x-md: calc(0.625rem * var(--c-scale));
17
+ --badge-padding-x-lg: calc(0.75rem * var(--c-scale));
18
+ --badge-padding-x-xl: calc(1rem * var(--c-scale));
19
+
20
+ --badge-height: var(--badge-height-md);
21
+ --badge-fz: var(--badge-fz-md);
22
+ --badge-padding-x: var(--badge-padding-x-md);
23
+ --badge-radius: calc(62.5rem * var(--c-scale));
24
+ --badge-lh: calc(var(--badge-height) - calc(0.125rem * var(--c-scale)));
25
+ --badge-border-width: calc(0.0625rem * var(--c-scale));
26
+
27
+ -webkit-tap-highlight-color: transparent;
28
+ font-size: var(--badge-fz);
29
+ border-radius: var(--badge-radius);
30
+ height: var(--badge-height);
31
+ line-height: var(--badge-lh);
32
+ text-decoration: none;
33
+ padding: 0 var(--badge-padding-x);
34
+ display: inline-grid;
35
+ align-items: center;
36
+ justify-content: center;
37
+ width: fit-content;
38
+ text-transform: uppercase;
39
+ font-weight: var(--c-font-weight-bold);
40
+ letter-spacing: calc(0.015625rem * var(--c-scale));
41
+ cursor: default;
42
+ text-overflow: ellipsis;
43
+ overflow: hidden;
44
+ color: var(--badge-color, var(--c-color-default-color));
45
+ background: var(--badge-bg, var(--c-color-default));
46
+ border: var(--badge-bd, var(--badge-border-width) solid var(--c-color-default-border));
47
+ }
48
+
49
+ .m_bdabd4cc:where([data-with-left-section], [data-variant='dot']) {
50
+ grid-template-columns: auto 1fr;
51
+ }
52
+
53
+ .m_bdabd4cc:where([data-with-right-section]) {
54
+ grid-template-columns: 1fr auto;
55
+ }
56
+
57
+ .m_bdabd4cc:where(
58
+ [data-with-left-section][data-with-right-section],
59
+ [data-variant='dot'][data-with-right-section]
60
+ ) {
61
+ grid-template-columns: auto 1fr auto;
62
+ }
63
+
64
+ .m_bdabd4cc:where([data-block]) {
65
+ display: flex;
66
+ width: 100%;
67
+ }
68
+
69
+ .m_bdabd4cc:where([data-circle]) {
70
+ padding-inline: calc(0.125rem * var(--c-scale));
71
+ display: flex;
72
+ width: var(--badge-height);
73
+ }
74
+
75
+ .m_3745665d {
76
+ --badge-dot-size: calc(var(--badge-height) / 3.4);
77
+ }
78
+
79
+ :where([data-c-color-scheme='light']) .m_3745665d {
80
+ background-color: var(--c-color-white);
81
+ border-color: var(--c-color-gray-4);
82
+ color: var(--c-color-black);
83
+ }
84
+
85
+ :where([data-c-color-scheme='dark']) .m_3745665d {
86
+ background-color: var(--c-color-dark-5);
87
+ border-color: var(--c-color-dark-5);
88
+ color: var(--c-color-white);
89
+ }
90
+
91
+ .m_3745665d::before {
92
+ content: '';
93
+ display: block;
94
+ width: var(--badge-dot-size);
95
+ height: var(--badge-dot-size);
96
+ border-radius: var(--badge-dot-size);
97
+ background-color: var(--badge-dot-color);
98
+ margin-inline-end: var(--badge-dot-size);
99
+ }
100
+
101
+ .m_f773a84a {
102
+ white-space: nowrap;
103
+ overflow: hidden;
104
+ text-overflow: ellipsis;
105
+ text-align: center;
106
+ cursor: inherit;
107
+ }
108
+
109
+ .m_625eaabb {
110
+ --badge-section-margin: calc(var(--c-spacing-xs) / 2);
111
+
112
+ display: inline-flex;
113
+ justify-content: center;
114
+ align-items: center;
115
+ max-height: calc(var(--badge-height) - var(--badge-border-width) * 2);
116
+ }
117
+
118
+ .m_625eaabb:where([data-position='left']) {
119
+ margin-inline-end: var(--badge-section-margin);
120
+ }
121
+
122
+ .m_625eaabb:where([data-position='right']) {
123
+ margin-inline-start: var(--badge-section-margin);
124
+ }
@@ -0,0 +1,125 @@
1
+ @layer cck {.m_bdabd4cc {
2
+ --badge-height-xs: calc(1rem * var(--c-scale));
3
+ --badge-height-sm: calc(1.125rem * var(--c-scale));
4
+ --badge-height-md: calc(1.25rem * var(--c-scale));
5
+ --badge-height-lg: calc(1.625rem * var(--c-scale));
6
+ --badge-height-xl: calc(2rem * var(--c-scale));
7
+
8
+ --badge-fz-xs: calc(0.5625rem * var(--c-scale));
9
+ --badge-fz-sm: calc(0.625rem * var(--c-scale));
10
+ --badge-fz-md: calc(0.6875rem * var(--c-scale));
11
+ --badge-fz-lg: calc(0.8125rem * var(--c-scale));
12
+ --badge-fz-xl: calc(1rem * var(--c-scale));
13
+
14
+ --badge-padding-x-xs: calc(0.375rem * var(--c-scale));
15
+ --badge-padding-x-sm: calc(0.5rem * var(--c-scale));
16
+ --badge-padding-x-md: calc(0.625rem * var(--c-scale));
17
+ --badge-padding-x-lg: calc(0.75rem * var(--c-scale));
18
+ --badge-padding-x-xl: calc(1rem * var(--c-scale));
19
+
20
+ --badge-height: var(--badge-height-md);
21
+ --badge-fz: var(--badge-fz-md);
22
+ --badge-padding-x: var(--badge-padding-x-md);
23
+ --badge-radius: calc(62.5rem * var(--c-scale));
24
+ --badge-lh: calc(var(--badge-height) - calc(0.125rem * var(--c-scale)));
25
+ --badge-border-width: calc(0.0625rem * var(--c-scale));
26
+
27
+ -webkit-tap-highlight-color: transparent;
28
+ font-size: var(--badge-fz);
29
+ border-radius: var(--badge-radius);
30
+ height: var(--badge-height);
31
+ line-height: var(--badge-lh);
32
+ text-decoration: none;
33
+ padding: 0 var(--badge-padding-x);
34
+ display: inline-grid;
35
+ align-items: center;
36
+ justify-content: center;
37
+ width: fit-content;
38
+ text-transform: uppercase;
39
+ font-weight: var(--c-font-weight-bold);
40
+ letter-spacing: calc(0.015625rem * var(--c-scale));
41
+ cursor: default;
42
+ text-overflow: ellipsis;
43
+ overflow: hidden;
44
+ color: var(--badge-color, var(--c-color-default-color));
45
+ background: var(--badge-bg, var(--c-color-default));
46
+ border: var(--badge-bd, var(--badge-border-width) solid var(--c-color-default-border));
47
+ }
48
+
49
+ .m_bdabd4cc:where([data-with-left-section], [data-variant='dot']) {
50
+ grid-template-columns: auto 1fr;
51
+ }
52
+
53
+ .m_bdabd4cc:where([data-with-right-section]) {
54
+ grid-template-columns: 1fr auto;
55
+ }
56
+
57
+ .m_bdabd4cc:where(
58
+ [data-with-left-section][data-with-right-section],
59
+ [data-variant='dot'][data-with-right-section]
60
+ ) {
61
+ grid-template-columns: auto 1fr auto;
62
+ }
63
+
64
+ .m_bdabd4cc:where([data-block]) {
65
+ display: flex;
66
+ width: 100%;
67
+ }
68
+
69
+ .m_bdabd4cc:where([data-circle]) {
70
+ padding-inline: calc(0.125rem * var(--c-scale));
71
+ display: flex;
72
+ width: var(--badge-height);
73
+ }
74
+
75
+ .m_3745665d {
76
+ --badge-dot-size: calc(var(--badge-height) / 3.4);
77
+ }
78
+
79
+ :where([data-c-color-scheme='light']) .m_3745665d {
80
+ background-color: var(--c-color-white);
81
+ border-color: var(--c-color-gray-4);
82
+ color: var(--c-color-black);
83
+ }
84
+
85
+ :where([data-c-color-scheme='dark']) .m_3745665d {
86
+ background-color: var(--c-color-dark-5);
87
+ border-color: var(--c-color-dark-5);
88
+ color: var(--c-color-white);
89
+ }
90
+
91
+ .m_3745665d::before {
92
+ content: '';
93
+ display: block;
94
+ width: var(--badge-dot-size);
95
+ height: var(--badge-dot-size);
96
+ border-radius: var(--badge-dot-size);
97
+ background-color: var(--badge-dot-color);
98
+ margin-inline-end: var(--badge-dot-size);
99
+ }
100
+
101
+ .m_f773a84a {
102
+ white-space: nowrap;
103
+ overflow: hidden;
104
+ text-overflow: ellipsis;
105
+ text-align: center;
106
+ cursor: inherit;
107
+ }
108
+
109
+ .m_625eaabb {
110
+ --badge-section-margin: calc(var(--c-spacing-xs) / 2);
111
+
112
+ display: inline-flex;
113
+ justify-content: center;
114
+ align-items: center;
115
+ max-height: calc(var(--badge-height) - var(--badge-border-width) * 2);
116
+ }
117
+
118
+ .m_625eaabb:where([data-position='left']) {
119
+ margin-inline-end: var(--badge-section-margin);
120
+ }
121
+
122
+ .m_625eaabb:where([data-position='right']) {
123
+ margin-inline-start: var(--badge-section-margin);
124
+ }
125
+ }
@@ -0,0 +1,89 @@
1
+ .m_6ea3917f {
2
+ --card-padding: var(--c-spacing-md);
3
+
4
+ position: relative;
5
+ overflow: hidden;
6
+ display: flex;
7
+ padding: var(--card-padding);
8
+ color: var(--c-color-text);
9
+ }
10
+
11
+ .m_6ea3917f:where([data-orientation='horizontal']) {
12
+ flex-direction: row;
13
+ }
14
+
15
+ .m_6ea3917f:where([data-orientation='vertical']) {
16
+ flex-direction: column;
17
+ }
18
+
19
+ :where([data-c-color-scheme='light']) .m_6ea3917f {
20
+ background-color: var(--c-color-white);
21
+ }
22
+
23
+ :where([data-c-color-scheme='dark']) .m_6ea3917f {
24
+ background-color: var(--c-color-dark-6);
25
+ }
26
+
27
+ .m_4fcecd28 {
28
+ display: block;
29
+ margin-inline: calc(var(--card-padding) * -1);
30
+ }
31
+
32
+ :where([data-c-color-scheme='light']) .m_4fcecd28 {
33
+ --border-color: var(--c-color-gray-3);
34
+ }
35
+
36
+ :where([data-c-color-scheme='dark']) .m_4fcecd28 {
37
+ --border-color: var(--c-color-dark-4);
38
+ }
39
+
40
+ .m_4fcecd28:where([data-orientation='vertical']):first-child {
41
+ margin-top: calc(var(--card-padding) * -1);
42
+ border-top: none !important;
43
+ }
44
+
45
+ .m_4fcecd28:where([data-orientation='vertical']):last-child {
46
+ margin-bottom: calc(var(--card-padding) * -1);
47
+ border-bottom: none !important;
48
+ }
49
+
50
+ .m_4fcecd28:where([data-orientation='vertical'])[data-inherit-padding] {
51
+ padding-inline: var(--card-padding);
52
+ }
53
+
54
+ .m_4fcecd28:where([data-orientation='vertical'])[data-with-border] {
55
+ border-top: 1px solid var(--border-color);
56
+ border-bottom: 1px solid var(--border-color);
57
+ }
58
+
59
+ .m_4fcecd28:where([data-orientation='vertical']) + .m_4fcecd28:where([data-orientation='vertical']) {
60
+ border-top: none !important;
61
+ }
62
+
63
+ .m_4fcecd28:where([data-orientation='horizontal']) {
64
+ margin-block: calc(var(--card-padding) * -1);
65
+ margin-inline: 0;
66
+ }
67
+
68
+ .m_4fcecd28:where([data-orientation='horizontal']):first-child {
69
+ margin-inline-start: calc(var(--card-padding) * -1);
70
+ border-inline-start: none !important;
71
+ }
72
+
73
+ .m_4fcecd28:where([data-orientation='horizontal']):last-child {
74
+ margin-inline-end: calc(var(--card-padding) * -1);
75
+ border-inline-end: none !important;
76
+ }
77
+
78
+ .m_4fcecd28:where([data-orientation='horizontal'])[data-inherit-padding] {
79
+ padding-block: var(--card-padding);
80
+ }
81
+
82
+ .m_4fcecd28:where([data-orientation='horizontal'])[data-with-border] {
83
+ border-inline-start: 1px solid var(--border-color);
84
+ border-inline-end: 1px solid var(--border-color);
85
+ }
86
+
87
+ .m_4fcecd28:where([data-orientation='horizontal']) + .m_4fcecd28:where([data-orientation='horizontal']) {
88
+ border-inline-start: none !important;
89
+ }
@@ -0,0 +1,90 @@
1
+ @layer cck {.m_6ea3917f {
2
+ --card-padding: var(--c-spacing-md);
3
+
4
+ position: relative;
5
+ overflow: hidden;
6
+ display: flex;
7
+ padding: var(--card-padding);
8
+ color: var(--c-color-text);
9
+ }
10
+
11
+ .m_6ea3917f:where([data-orientation='horizontal']) {
12
+ flex-direction: row;
13
+ }
14
+
15
+ .m_6ea3917f:where([data-orientation='vertical']) {
16
+ flex-direction: column;
17
+ }
18
+
19
+ :where([data-c-color-scheme='light']) .m_6ea3917f {
20
+ background-color: var(--c-color-white);
21
+ }
22
+
23
+ :where([data-c-color-scheme='dark']) .m_6ea3917f {
24
+ background-color: var(--c-color-dark-6);
25
+ }
26
+
27
+ .m_4fcecd28 {
28
+ display: block;
29
+ margin-inline: calc(var(--card-padding) * -1);
30
+ }
31
+
32
+ :where([data-c-color-scheme='light']) .m_4fcecd28 {
33
+ --border-color: var(--c-color-gray-3);
34
+ }
35
+
36
+ :where([data-c-color-scheme='dark']) .m_4fcecd28 {
37
+ --border-color: var(--c-color-dark-4);
38
+ }
39
+
40
+ .m_4fcecd28:where([data-orientation='vertical']):first-child {
41
+ margin-top: calc(var(--card-padding) * -1);
42
+ border-top: none !important;
43
+ }
44
+
45
+ .m_4fcecd28:where([data-orientation='vertical']):last-child {
46
+ margin-bottom: calc(var(--card-padding) * -1);
47
+ border-bottom: none !important;
48
+ }
49
+
50
+ .m_4fcecd28:where([data-orientation='vertical'])[data-inherit-padding] {
51
+ padding-inline: var(--card-padding);
52
+ }
53
+
54
+ .m_4fcecd28:where([data-orientation='vertical'])[data-with-border] {
55
+ border-top: 1px solid var(--border-color);
56
+ border-bottom: 1px solid var(--border-color);
57
+ }
58
+
59
+ .m_4fcecd28:where([data-orientation='vertical']) + .m_4fcecd28:where([data-orientation='vertical']) {
60
+ border-top: none !important;
61
+ }
62
+
63
+ .m_4fcecd28:where([data-orientation='horizontal']) {
64
+ margin-block: calc(var(--card-padding) * -1);
65
+ margin-inline: 0;
66
+ }
67
+
68
+ .m_4fcecd28:where([data-orientation='horizontal']):first-child {
69
+ margin-inline-start: calc(var(--card-padding) * -1);
70
+ border-inline-start: none !important;
71
+ }
72
+
73
+ .m_4fcecd28:where([data-orientation='horizontal']):last-child {
74
+ margin-inline-end: calc(var(--card-padding) * -1);
75
+ border-inline-end: none !important;
76
+ }
77
+
78
+ .m_4fcecd28:where([data-orientation='horizontal'])[data-inherit-padding] {
79
+ padding-block: var(--card-padding);
80
+ }
81
+
82
+ .m_4fcecd28:where([data-orientation='horizontal'])[data-with-border] {
83
+ border-inline-start: 1px solid var(--border-color);
84
+ border-inline-end: 1px solid var(--border-color);
85
+ }
86
+
87
+ .m_4fcecd28:where([data-orientation='horizontal']) + .m_4fcecd28:where([data-orientation='horizontal']) {
88
+ border-inline-start: none !important;
89
+ }
90
+ }