agroptima-design-system 1.0.6-beta.4 → 1.0.6
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/package.json +1 -1
- package/src/atoms/Alert/Alert.scss +3 -11
- package/src/atoms/Select/Select.scss +1 -1
- package/src/atoms/Select/SelectTrigger.tsx +2 -1
- package/src/generic/themes.css +0 -3
- package/src/stories/{Alert.stories.tsx → Alert.stories.ts} +0 -10
- package/src/stories/CardMenu.stories.tsx +1 -1
- package/src/stories/Changelog.mdx +3 -1
package/package.json
CHANGED
|
@@ -21,18 +21,10 @@
|
|
|
21
21
|
justify-content: flex-start;
|
|
22
22
|
align-items: flex-start;
|
|
23
23
|
gap: config.$space-2x;
|
|
24
|
+
}
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
a {
|
|
29
|
-
color: var(--alert-link-color);
|
|
30
|
-
|
|
31
|
-
&:hover:not(:disabled) {
|
|
32
|
-
color: var(--alert-link-hover-color);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
26
|
+
.text {
|
|
27
|
+
@include typography.body-regular-primary;
|
|
36
28
|
}
|
|
37
29
|
|
|
38
30
|
.icon {
|
|
@@ -39,7 +39,7 @@ $elements-space: config.$space-2x;
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
&.primary {
|
|
42
|
-
|
|
42
|
+
.select-container.disabled {
|
|
43
43
|
border: 1px solid var(--neutral-color-400);
|
|
44
44
|
background: var(--neutral-color-50);
|
|
45
45
|
@include mixins.icon-color(var(--neutral-color-400));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
import { classNames } from '../../utils/classNames'
|
|
2
3
|
import { IconButton } from '../Button'
|
|
3
4
|
import { Icon } from '../Icon'
|
|
4
5
|
|
|
@@ -34,7 +35,7 @@ export function SelectTrigger({
|
|
|
34
35
|
onClear(event)
|
|
35
36
|
}
|
|
36
37
|
return (
|
|
37
|
-
<div className=
|
|
38
|
+
<div className={classNames('select-container', { disabled })}>
|
|
38
39
|
<button
|
|
39
40
|
id={id}
|
|
40
41
|
ref={buttonRef}
|
package/src/generic/themes.css
CHANGED
|
@@ -69,16 +69,6 @@ export const Success: Story = {
|
|
|
69
69
|
parameters: figmaPrimaryDesign,
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
export const SuccessWithLink: Story = {
|
|
73
|
-
render: () => (
|
|
74
|
-
<Alert
|
|
75
|
-
id="success-alert"
|
|
76
|
-
variant="success"
|
|
77
|
-
text={<a href="http://fakelink.com">Go to another castle</a>}
|
|
78
|
-
/>
|
|
79
|
-
),
|
|
80
|
-
} as unknown as Story
|
|
81
|
-
|
|
82
72
|
export const SuccessWithFadeOut: Story = {
|
|
83
73
|
args: {
|
|
84
74
|
id: 'success-alert',
|