@akad/design-system 1.0.0-alpha.1 → 1.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/core.css +1 -1
- package/package.json +1 -1
- package/react/react-lib.js +631 -715
- package/react/react-lib.umd.cjs +3 -3
- package/react/src/components/atoms/Button/Button.d.ts +1 -1
- package/react/src/components/atoms/Button/Button.stories.d.ts +3 -3
- package/react/src/components/atoms/Caption/Caption.d.ts +1 -1
- package/react/src/components/atoms/Caption/Caption.stories.d.ts +2 -2
- package/react/src/components/atoms/Card/Card.stories.d.ts +4 -4
- package/react/src/components/atoms/Checkbox/Checkbox.d.ts +1 -1
- package/react/src/components/atoms/Checkbox/Checkbox.stories.d.ts +4 -4
- package/react/src/components/atoms/Heading/Heading.d.ts +1 -1
- package/react/src/components/atoms/Heading/Heading.stories.d.ts +9 -9
- package/react/src/components/atoms/HorizontalRule/HorizontalRule.stories.d.ts +2 -2
- package/react/src/components/atoms/Icon/Icon.d.ts +1 -1
- package/react/src/components/atoms/Icon/Icon.stories.d.ts +3 -3
- package/react/src/components/atoms/Input/Input.stories.d.ts +2 -2
- package/react/src/components/atoms/Loading/Loading.stories.d.ts +2 -2
- package/react/src/components/atoms/Option/Option.d.ts +1 -1
- package/react/src/components/atoms/Option/Option.stories.d.ts +2 -2
- package/react/src/components/atoms/Paragraph/Paragraph.d.ts +1 -1
- package/react/src/components/atoms/Paragraph/Paragraph.stories.d.ts +4 -4
- package/react/src/components/atoms/Progress/Progress.stories.d.ts +2 -2
- package/react/src/components/atoms/Select/Select.d.ts +1 -1
- package/react/src/components/atoms/Select/Select.stories.d.ts +2 -2
- package/react/src/components/atoms/Subtitle/Subtitle.stories.d.ts +4 -4
- package/react/src/components/atoms/TextArea/TextArea.stories.d.ts +3 -3
- package/react/src/components/atoms/Tooltip/Tooltip.d.ts +1 -1
- package/react/src/components/atoms/Tooltip/Tooltip.stories.d.ts +7 -7
- package/react/src/components/bosons/Container/Container.d.ts +1 -1
- package/react/src/components/bosons/Container/Container.stories.d.ts +3 -3
- package/react/src/components/bosons/FlexLayout/FlexLayout.stories.d.ts +4 -4
- package/react/src/components/bosons/GridLayout/GridLayout.stories.d.ts +3 -3
- package/react/src/components/bosons/Spacer/Spacer.stories.d.ts +2 -2
- package/react/src/components/bosons/Wrapper/Wrapper.stories.d.ts +3 -3
- package/react/src/components/molecules/Accordion/Accordion.d.ts +1 -1
- package/react/src/components/molecules/Accordion/Accordion.stories.d.ts +2 -2
- package/react/src/components/molecules/ActiveTags/ActiveTags.stories.d.ts +2 -2
- package/react/src/components/molecules/EditableSelect/EditableSelect.stories.d.ts +3 -3
- package/react/src/components/molecules/Indicator/Indicator.stories.d.ts +2 -2
- package/react/src/components/molecules/InlineEditable/InlineEditable.d.ts +1 -1
- package/react/src/components/molecules/InlineEditable/InlineEditable.stories.d.ts +8 -8
- package/react/src/components/molecules/Modal/Modal.d.ts +1 -1
- package/react/src/components/molecules/Modal/Modal.stories.d.ts +5 -5
- package/react/src/components/molecules/Notification/Notification.stories.d.ts +52 -52
- package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.stories.d.ts +3 -3
- package/react/src/components/molecules/Stepper/Stepper.stories.d.ts +2 -2
- package/react/src/components/molecules/Table/Table.stories.d.ts +2 -2
- package/react/src/components/molecules/Tabs/Tab.d.ts +1 -1
- package/react/src/components/molecules/Tabs/Tabs.stories.d.ts +2 -2
- package/react/src/components/molecules/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/react/src/components/organisms/NotificationList/NotificationList.d.ts +1 -1
- package/react/src/components/organisms/NotificationList/NotificationList.stories.d.ts +2 -2
- package/scss/core/base/reset.scss +0 -1
- package/scss/core/components/atoms/heading.scss +1 -0
- package/scss/core/components/molecules/accordion.scss +1 -1
- package/scss/core/components/molecules/notification.scss +1 -1
- package/scss/core/helpers/borders.scss +21 -3
- package/scss/core/helpers/colors.scss +33 -6
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { DsInlineEditableProps } from '.';
|
|
2
1
|
import { Meta } from '@storybook/react';
|
|
2
|
+
import { DsInlineEditableProps } from '.';
|
|
3
3
|
|
|
4
4
|
declare const ComponentProps: Meta;
|
|
5
5
|
export default ComponentProps;
|
|
6
6
|
export declare const Default: {
|
|
7
|
-
render: import('
|
|
7
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsInlineEditableProps>;
|
|
8
8
|
args: {
|
|
9
9
|
name: string;
|
|
10
|
-
value?: string
|
|
11
|
-
prefix?: string
|
|
12
|
-
sufix?: string
|
|
13
|
-
min?: string
|
|
14
|
-
max?: string
|
|
15
|
-
onChangeHandler?: (
|
|
10
|
+
value?: string;
|
|
11
|
+
prefix?: string;
|
|
12
|
+
sufix?: string;
|
|
13
|
+
min?: string;
|
|
14
|
+
max?: string;
|
|
15
|
+
onChangeHandler?: (event: React.FormEvent<HTMLInputElement>) => void;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DsModalProps } from '.';
|
|
2
1
|
import { Meta } from '@storybook/react';
|
|
2
|
+
import { DsModalProps } from '.';
|
|
3
3
|
|
|
4
4
|
declare const componentProps: Meta;
|
|
5
5
|
export default componentProps;
|
|
6
6
|
export declare const Default: {
|
|
7
|
-
render: import('
|
|
7
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsModalProps>;
|
|
8
8
|
args: {
|
|
9
9
|
onClose: import('@storybook/addon-actions').HandlerFunction;
|
|
10
10
|
isModalOpen: boolean;
|
|
@@ -12,7 +12,7 @@ export declare const Default: {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
export declare const ModalSquared: {
|
|
15
|
-
render: import('
|
|
15
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsModalProps>;
|
|
16
16
|
args: {
|
|
17
17
|
variant: string;
|
|
18
18
|
onClose: import('@storybook/addon-actions').HandlerFunction;
|
|
@@ -20,7 +20,7 @@ export declare const ModalSquared: {
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
export declare const ModalWithButtons: {
|
|
23
|
-
render: import('
|
|
23
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsModalProps>;
|
|
24
24
|
args: {
|
|
25
25
|
cancelBtnText: string;
|
|
26
26
|
confirmBtnText: string;
|
|
@@ -32,7 +32,7 @@ export declare const ModalWithButtons: {
|
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
export declare const ModalSquaredWithButtons: {
|
|
35
|
-
render: import('
|
|
35
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsModalProps>;
|
|
36
36
|
args: {
|
|
37
37
|
variant: string;
|
|
38
38
|
cancelBtnText: string;
|
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
import { DsNotificationProps } from './Notification';
|
|
2
1
|
import { Meta } from '@storybook/react';
|
|
2
|
+
import { DsNotificationProps } from './Notification';
|
|
3
3
|
|
|
4
4
|
declare const ComponentProps: Meta;
|
|
5
5
|
export default ComponentProps;
|
|
6
6
|
export declare const Default: {
|
|
7
|
-
render: import('
|
|
7
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsNotificationProps>;
|
|
8
8
|
args: {
|
|
9
|
-
className?: string
|
|
10
|
-
type?: string
|
|
11
|
-
variant?: string
|
|
9
|
+
className?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
variant?: string;
|
|
12
12
|
id: string;
|
|
13
13
|
children?: import('react').ReactNode;
|
|
14
14
|
message?: import('react').ReactNode;
|
|
15
|
-
autoClose?: boolean
|
|
16
|
-
autoCloseTimer?: number
|
|
17
|
-
dismissible?: boolean
|
|
18
|
-
elevation?: number
|
|
19
|
-
progressBar?: boolean
|
|
20
|
-
testId?: string
|
|
21
|
-
handleClose?: (
|
|
15
|
+
autoClose?: boolean;
|
|
16
|
+
autoCloseTimer?: number;
|
|
17
|
+
dismissible?: boolean;
|
|
18
|
+
elevation?: number;
|
|
19
|
+
progressBar?: boolean;
|
|
20
|
+
testId?: string;
|
|
21
|
+
handleClose?: (event: React.MouseEvent) => void;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
export declare const NotificationSuccess: {
|
|
25
|
-
render: import('
|
|
25
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsNotificationProps>;
|
|
26
26
|
args: {
|
|
27
27
|
type: string;
|
|
28
|
-
className?: string
|
|
29
|
-
variant?: string
|
|
28
|
+
className?: string;
|
|
29
|
+
variant?: string;
|
|
30
30
|
id: string;
|
|
31
31
|
children?: import('react').ReactNode;
|
|
32
32
|
message?: import('react').ReactNode;
|
|
33
|
-
autoClose?: boolean
|
|
34
|
-
autoCloseTimer?: number
|
|
35
|
-
dismissible?: boolean
|
|
36
|
-
elevation?: number
|
|
37
|
-
progressBar?: boolean
|
|
38
|
-
testId?: string
|
|
39
|
-
handleClose?: (
|
|
33
|
+
autoClose?: boolean;
|
|
34
|
+
autoCloseTimer?: number;
|
|
35
|
+
dismissible?: boolean;
|
|
36
|
+
elevation?: number;
|
|
37
|
+
progressBar?: boolean;
|
|
38
|
+
testId?: string;
|
|
39
|
+
handleClose?: (event: React.MouseEvent) => void;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
export declare const NotificationDanger: {
|
|
43
|
-
render: import('
|
|
43
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsNotificationProps>;
|
|
44
44
|
args: {
|
|
45
45
|
type: string;
|
|
46
|
-
className?: string
|
|
47
|
-
variant?: string
|
|
46
|
+
className?: string;
|
|
47
|
+
variant?: string;
|
|
48
48
|
id: string;
|
|
49
49
|
children?: import('react').ReactNode;
|
|
50
50
|
message?: import('react').ReactNode;
|
|
51
|
-
autoClose?: boolean
|
|
52
|
-
autoCloseTimer?: number
|
|
53
|
-
dismissible?: boolean
|
|
54
|
-
elevation?: number
|
|
55
|
-
progressBar?: boolean
|
|
56
|
-
testId?: string
|
|
57
|
-
handleClose?: (
|
|
51
|
+
autoClose?: boolean;
|
|
52
|
+
autoCloseTimer?: number;
|
|
53
|
+
dismissible?: boolean;
|
|
54
|
+
elevation?: number;
|
|
55
|
+
progressBar?: boolean;
|
|
56
|
+
testId?: string;
|
|
57
|
+
handleClose?: (event: React.MouseEvent) => void;
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
60
|
export declare const NotificationWarning: {
|
|
61
|
-
render: import('
|
|
61
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsNotificationProps>;
|
|
62
62
|
args: {
|
|
63
63
|
type: string;
|
|
64
|
-
className?: string
|
|
65
|
-
variant?: string
|
|
64
|
+
className?: string;
|
|
65
|
+
variant?: string;
|
|
66
66
|
id: string;
|
|
67
67
|
children?: import('react').ReactNode;
|
|
68
68
|
message?: import('react').ReactNode;
|
|
69
|
-
autoClose?: boolean
|
|
70
|
-
autoCloseTimer?: number
|
|
71
|
-
dismissible?: boolean
|
|
72
|
-
elevation?: number
|
|
73
|
-
progressBar?: boolean
|
|
74
|
-
testId?: string
|
|
75
|
-
handleClose?: (
|
|
69
|
+
autoClose?: boolean;
|
|
70
|
+
autoCloseTimer?: number;
|
|
71
|
+
dismissible?: boolean;
|
|
72
|
+
elevation?: number;
|
|
73
|
+
progressBar?: boolean;
|
|
74
|
+
testId?: string;
|
|
75
|
+
handleClose?: (event: React.MouseEvent) => void;
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
78
|
export declare const NotificationInfo: {
|
|
79
|
-
render: import('
|
|
79
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsNotificationProps>;
|
|
80
80
|
args: {
|
|
81
81
|
type: string;
|
|
82
|
-
className?: string
|
|
83
|
-
variant?: string
|
|
82
|
+
className?: string;
|
|
83
|
+
variant?: string;
|
|
84
84
|
id: string;
|
|
85
85
|
children?: import('react').ReactNode;
|
|
86
86
|
message?: import('react').ReactNode;
|
|
87
|
-
autoClose?: boolean
|
|
88
|
-
autoCloseTimer?: number
|
|
89
|
-
dismissible?: boolean
|
|
90
|
-
elevation?: number
|
|
91
|
-
progressBar?: boolean
|
|
92
|
-
testId?: string
|
|
93
|
-
handleClose?: (
|
|
87
|
+
autoClose?: boolean;
|
|
88
|
+
autoCloseTimer?: number;
|
|
89
|
+
dismissible?: boolean;
|
|
90
|
+
elevation?: number;
|
|
91
|
+
progressBar?: boolean;
|
|
92
|
+
testId?: string;
|
|
93
|
+
handleClose?: (event: React.MouseEvent) => void;
|
|
94
94
|
};
|
|
95
95
|
};
|
package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.stories.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ThemeProviderProps } from '../ThemeProvider';
|
|
2
|
-
import { DsPasswordConfirmationProps } from '.';
|
|
3
1
|
import { Meta } from '@storybook/react';
|
|
2
|
+
import { DsPasswordConfirmationProps } from '.';
|
|
3
|
+
import { ThemeProviderProps } from '../ThemeProvider';
|
|
4
4
|
|
|
5
5
|
declare const ComponentProps: Meta;
|
|
6
6
|
export default ComponentProps;
|
|
7
7
|
export declare const Default: {
|
|
8
|
-
render: import('
|
|
8
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ThemeProviderProps & DsPasswordConfirmationProps>;
|
|
9
9
|
args: {
|
|
10
10
|
onChange: import('@storybook/addon-actions').HandlerFunction;
|
|
11
11
|
validationList: import('./PasswordConfirmation.config').PasswordConfirmationValidationItem[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DsStepperProps } from './Stepper';
|
|
2
1
|
import { Meta } from '@storybook/react';
|
|
2
|
+
import { DsStepperProps } from './Stepper';
|
|
3
3
|
|
|
4
4
|
declare const componentProps: Meta;
|
|
5
5
|
export default componentProps;
|
|
6
6
|
export declare const Default: {
|
|
7
|
-
render: import('
|
|
7
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsStepperProps>;
|
|
8
8
|
args: {
|
|
9
9
|
selectedStep: number;
|
|
10
10
|
steps: ({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DsTableRowProps } from './Table.config';
|
|
2
1
|
import { Meta } from '@storybook/react';
|
|
2
|
+
import { DsTableRowProps } from './Table.config';
|
|
3
3
|
|
|
4
4
|
declare const componentProps: Meta;
|
|
5
5
|
export default componentProps;
|
|
6
6
|
export declare const Default: {
|
|
7
|
-
render: import('
|
|
7
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsTableRowProps>;
|
|
8
8
|
args: {
|
|
9
9
|
columns: import('.').DsTableColumnsProps[];
|
|
10
10
|
data: import('.').DsTableCoverageItem[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DsTabsProps } from './Tabs';
|
|
2
1
|
import { Meta } from '@storybook/react';
|
|
2
|
+
import { DsTabsProps } from './Tabs';
|
|
3
3
|
|
|
4
4
|
declare const componentProps: Meta;
|
|
5
5
|
export default componentProps;
|
|
6
6
|
export declare const Default: {
|
|
7
|
-
render: import('
|
|
7
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsTabsProps>;
|
|
8
8
|
args: {
|
|
9
9
|
color: import('../../../main').TabsColor;
|
|
10
10
|
selectedTab: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DsNotificationListProps } from '.';
|
|
2
1
|
import { Meta } from '@storybook/react';
|
|
2
|
+
import { DsNotificationListProps } from '.';
|
|
3
3
|
|
|
4
4
|
declare const ComponentProps: Meta;
|
|
5
5
|
export default ComponentProps;
|
|
6
6
|
export declare const Default: {
|
|
7
|
-
render: import('
|
|
7
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsNotificationListProps>;
|
|
8
8
|
args: {
|
|
9
9
|
notifications: ({
|
|
10
10
|
id: `${string}-${string}-${string}-${string}-${string}`;
|
|
@@ -28,12 +28,24 @@ $neutral-scale: (
|
|
|
28
28
|
// Generate primary/secondary border utilities
|
|
29
29
|
@each $variant in $brand-color-shades {
|
|
30
30
|
.border-color__primary--#{$variant} {
|
|
31
|
-
|
|
31
|
+
// Use base variable for 'default', suffixed variable for others
|
|
32
|
+
@if $variant == 'default' {
|
|
33
|
+
border-color: var(--color__primary);
|
|
34
|
+
} @else {
|
|
35
|
+
border-color: var(--color__primary--#{$variant});
|
|
36
|
+
}
|
|
37
|
+
|
|
32
38
|
border-left-style: solid;
|
|
33
39
|
border-left-width: $spacing--quark;
|
|
34
40
|
}
|
|
35
41
|
.border-color__secondary--#{$variant} {
|
|
36
|
-
|
|
42
|
+
// Use base variable for 'default', suffixed variable for others
|
|
43
|
+
@if $variant == 'default' {
|
|
44
|
+
border-color: var(--color__secondary);
|
|
45
|
+
} @else {
|
|
46
|
+
border-color: var(--color__secondary--#{$variant});
|
|
47
|
+
}
|
|
48
|
+
|
|
37
49
|
border-left-style: solid;
|
|
38
50
|
border-left-width: $spacing--quark;
|
|
39
51
|
}
|
|
@@ -72,7 +84,13 @@ $neutral-scale: (
|
|
|
72
84
|
@each $semantic in ('success', 'warning', 'danger', 'info') {
|
|
73
85
|
@each $variant in $semantic-color-shades {
|
|
74
86
|
.border-color__#{$semantic}--#{$variant} {
|
|
75
|
-
|
|
87
|
+
// Use base variable for 'default', suffixed variable for others
|
|
88
|
+
@if $variant == 'default' {
|
|
89
|
+
border-color: var(--color__#{$semantic});
|
|
90
|
+
} @else {
|
|
91
|
+
border-color: var(--color__#{$semantic}--#{$variant});
|
|
92
|
+
}
|
|
93
|
+
|
|
76
94
|
border-left-style: solid;
|
|
77
95
|
border-left-width: $spacing--quark;
|
|
78
96
|
}
|
|
@@ -33,10 +33,19 @@ $neutral-scale: (
|
|
|
33
33
|
// Generate primary utilities
|
|
34
34
|
@each $variant in $brand-color-shades {
|
|
35
35
|
.color__primary--#{$variant} {
|
|
36
|
-
|
|
36
|
+
// Use base variable for 'default', suffixed variable for others
|
|
37
|
+
@if $variant == 'default' {
|
|
38
|
+
color: var(--color__primary);
|
|
39
|
+
} @else {
|
|
40
|
+
color: var(--color__primary--#{$variant});
|
|
41
|
+
}
|
|
37
42
|
}
|
|
38
43
|
.bg-color__primary--#{$variant} {
|
|
39
|
-
|
|
44
|
+
@if $variant == 'default' {
|
|
45
|
+
background-color: var(--color__primary);
|
|
46
|
+
} @else {
|
|
47
|
+
background-color: var(--color__primary--#{$variant});
|
|
48
|
+
}
|
|
40
49
|
|
|
41
50
|
// Automatic contrast color (maintains old-default behavior)
|
|
42
51
|
@if index(('darker', 'dark', 'default'), $variant) {
|
|
@@ -60,10 +69,19 @@ $neutral-scale: (
|
|
|
60
69
|
// Generate secondary utilities
|
|
61
70
|
@each $variant in $brand-color-shades {
|
|
62
71
|
.color__secondary--#{$variant} {
|
|
63
|
-
|
|
72
|
+
// Use base variable for 'default', suffixed variable for others
|
|
73
|
+
@if $variant == 'default' {
|
|
74
|
+
color: var(--color__secondary);
|
|
75
|
+
} @else {
|
|
76
|
+
color: var(--color__secondary--#{$variant});
|
|
77
|
+
}
|
|
64
78
|
}
|
|
65
79
|
.bg-color__secondary--#{$variant} {
|
|
66
|
-
|
|
80
|
+
@if $variant == 'default' {
|
|
81
|
+
background-color: var(--color__secondary);
|
|
82
|
+
} @else {
|
|
83
|
+
background-color: var(--color__secondary--#{$variant});
|
|
84
|
+
}
|
|
67
85
|
|
|
68
86
|
// Automatic contrast color (maintains old-default behavior)
|
|
69
87
|
@if index(('darker', 'dark', 'default'), $variant) {
|
|
@@ -124,10 +142,19 @@ $neutral-scale: (
|
|
|
124
142
|
@each $semantic in ('success', 'warning', 'danger', 'info') {
|
|
125
143
|
@each $variant in $semantic-color-shades {
|
|
126
144
|
.color__#{$semantic}--#{$variant} {
|
|
127
|
-
|
|
145
|
+
// Use base variable for 'default', suffixed variable for others
|
|
146
|
+
@if $variant == 'default' {
|
|
147
|
+
color: var(--color__#{$semantic});
|
|
148
|
+
} @else {
|
|
149
|
+
color: var(--color__#{$semantic}--#{$variant});
|
|
150
|
+
}
|
|
128
151
|
}
|
|
129
152
|
.bg-color__#{$semantic}--#{$variant} {
|
|
130
|
-
|
|
153
|
+
@if $variant == 'default' {
|
|
154
|
+
background-color: var(--color__#{$semantic});
|
|
155
|
+
} @else {
|
|
156
|
+
background-color: var(--color__#{$semantic}--#{$variant});
|
|
157
|
+
}
|
|
131
158
|
|
|
132
159
|
// Automatic contrast color (maintains old-default behavior)
|
|
133
160
|
@if $semantic == 'success' or $semantic == 'danger' or $semantic == 'info'
|