@galaxy-io/dls 1.4.1 → 1.4.2
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/dist/chips/Chip.js +2 -7
- package/dist/inputs/SwitcherInput.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme/variants/dark.js +18 -18
- package/dist/theme/variants/light.js +39 -39
- package/package.json +1 -1
package/dist/chips/Chip.js
CHANGED
|
@@ -46,11 +46,7 @@ var _exp4 = () => ({ theme, $variant, $noBackground }) => {
|
|
|
46
46
|
if ($noBackground) return "transparent";
|
|
47
47
|
return match($variant).with("PRIMARY", () => theme.color.background.primary).with("PRIMARY_ALT", () => theme.color.background.primaryAlt).with("SECONDARY", () => theme.color.background.secondary).with("TERTIARY", () => theme.color.background.tertiary).with("SUCCESS", () => theme.color.background.success).with("WARNING", () => theme.color.background.warning).with("ERROR", () => theme.color.background.error).with("PINK", () => theme.color.background.pink).with("ORANGE", () => theme.color.background.orange).with("YELLOW", () => theme.color.background.yellow).with("LIME", () => theme.color.background.lime).with("BLUE", () => theme.color.background.blue).with("PURPLE", () => theme.color.background.purple).with("TEAL", () => theme.color.background.teal).exhaustive();
|
|
48
48
|
};
|
|
49
|
-
var _exp5 = () => ({
|
|
50
|
-
if (!$isActive) return match($variant).with("SUCCESS", () => theme.color.border.success).with("WARNING", () => theme.color.border.warning).with("ERROR", () => theme.color.border.error).with("PINK", () => theme.color.border.pink).with("ORANGE", () => theme.color.border.orange).with("YELLOW", () => theme.color.border.yellow).with("LIME", () => theme.color.border.lime).with("BLUE", () => theme.color.border.blue).with("PURPLE", () => theme.color.border.purple).with("TEAL", () => theme.color.border.teal).otherwise(() => theme.color.border.primary);
|
|
51
|
-
return match($variant).with("PRIMARY", () => theme.color.icon.primary).with("PRIMARY_ALT", () => theme.color.icon.primaryAlt).with("SECONDARY", () => theme.color.icon.secondary).with("TERTIARY", () => theme.color.icon.tertiary).with("SUCCESS", () => theme.color.icon.success).with("WARNING", () => theme.color.icon.warning).with("ERROR", () => theme.color.icon.error).with("PINK", () => theme.color.icon.pink).with("ORANGE", () => theme.color.icon.orange).with("YELLOW", () => theme.color.icon.yellow).with("LIME", () => theme.color.icon.lime).with("BLUE", () => theme.color.icon.blue).with("PURPLE", () => theme.color.icon.purple).with("TEAL", () => theme.color.icon.teal).exhaustive();
|
|
52
|
-
};
|
|
53
|
-
var _exp6 = () => ({ $isPill }) => $isPill ? "200px" : "4px";
|
|
49
|
+
var _exp5 = () => ({ $isPill }) => $isPill ? "200px" : "4px";
|
|
54
50
|
var StyledChip = withTheme(/*#__PURE__*/ styled("div")({
|
|
55
51
|
name: "StyledChip",
|
|
56
52
|
class: "shdcix9",
|
|
@@ -60,8 +56,7 @@ var StyledChip = withTheme(/*#__PURE__*/ styled("div")({
|
|
|
60
56
|
"shdcix9-1": [_exp2()],
|
|
61
57
|
"shdcix9-2": [_exp3()],
|
|
62
58
|
"shdcix9-3": [_exp4()],
|
|
63
|
-
"shdcix9-4": [_exp5()]
|
|
64
|
-
"shdcix9-5": [_exp6()]
|
|
59
|
+
"shdcix9-4": [_exp5()]
|
|
65
60
|
}
|
|
66
61
|
}));
|
|
67
62
|
var CHIP_SIZE_TO_SHIMMER_HEIGHT = {
|
|
@@ -31,7 +31,7 @@ var SwitcherInput = ({ items, selectedId }) => {
|
|
|
31
31
|
onClick: item.onClick,
|
|
32
32
|
$isSelected: item.id === selectedId,
|
|
33
33
|
children: /* @__PURE__ */ jsx(Text, {
|
|
34
|
-
weight: TextWeight.MEDIUM,
|
|
34
|
+
weight: item.id === selectedId ? TextWeight.MEDIUM : TextWeight.REGULAR,
|
|
35
35
|
cursor: "pointer",
|
|
36
36
|
children: item.label
|
|
37
37
|
})
|
package/dist/styles.css
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
.s1yc7aow{position:relative;height:var(--s1yc7aow-0);width:100%;background-color:var(--s1yc7aow-1);border:0.5px solid var(--s1yc7aow-2);border-radius:4px;overflow:hidden;}
|
|
49
49
|
.p1sc05jm{position:absolute;top:0;left:0;height:100%;width:var(--p1sc05jm-0);background-color:var(--p1sc05jm-1);-webkit-animation:var(--p1sc05jm-2);animation:var(--p1sc05jm-2);-webkit-transition:width 0.075s ease-in-out;transition:width 0.075s ease-in-out;}@-webkit-keyframes pulse-p1sc05jm{0%,100%{opacity:0.9;}50%{opacity:0.6;}}@keyframes pulse-p1sc05jm{0%,100%{opacity:0.9;}50%{opacity:0.6;}}
|
|
50
50
|
.slaxlp8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-flex-basis:auto;-ms-flex-preferred-size:auto;flex-basis:auto;min-width:140px;background-color:var(--slaxlp8-0);padding:12px 16px;border:0.5px solid var(--slaxlp8-1);border-radius:5px;}
|
|
51
|
-
.shdcix9{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;gap:4px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;min-width:16px;cursor:var(--shdcix9-0)
|
|
51
|
+
.shdcix9{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;gap:4px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;min-width:16px;cursor:var(--shdcix9-0);height:var(--shdcix9-1);padding:var(--shdcix9-2);background-color:var(--shdcix9-3);border-radius:var(--shdcix9-4);}
|
|
52
52
|
.szfsuud{margin-left:0.5px;}.szfsuud>span{display:inline-block;-webkit-animation:ellipsisPulse-szfsuud var(--szfsuud-0) infinite ease-in-out both;animation:ellipsisPulse-szfsuud var(--szfsuud-0) infinite ease-in-out both;-webkit-animation-play-state:var(--szfsuud-1);animation-play-state:var(--szfsuud-1);}.szfsuud>span:nth-child(1){-webkit-animation-delay:0s;animation-delay:0s;}.szfsuud>span:nth-child(2){-webkit-animation-delay:0.2s;animation-delay:0.2s;}.szfsuud>span:nth-child(3){-webkit-animation-delay:0.4s;animation-delay:0.4s;}@-webkit-keyframes ellipsisPulse-szfsuud{0%,80%,100%{opacity:0.5;}40%{opacity:1;}}@keyframes ellipsisPulse-szfsuud{0%,80%,100%{opacity:0.5;}40%{opacity:1;}}
|
|
53
53
|
.s1p67zkf{display:inline-block;background:linear-gradient(
|
|
54
54
|
90deg,
|
|
@@ -23,20 +23,20 @@ var GALAXY_DARK_COLOR = {
|
|
|
23
23
|
galaxyAlt: "#3075FF"
|
|
24
24
|
},
|
|
25
25
|
background: {
|
|
26
|
-
base: "#
|
|
26
|
+
base: "#141415",
|
|
27
27
|
baseAlt: "#ffffff",
|
|
28
|
-
primary: "#
|
|
28
|
+
primary: "#161617",
|
|
29
29
|
primaryAlt: "#fafafa",
|
|
30
|
-
secondary: "#
|
|
30
|
+
secondary: "#1c1c1d",
|
|
31
31
|
secondaryAlt: "#f0f0f0",
|
|
32
|
-
tertiary: "#
|
|
32
|
+
tertiary: "#1a1a1b",
|
|
33
33
|
tertiaryAlt: "#f5f5f5",
|
|
34
34
|
success: "#1d3329",
|
|
35
|
-
successAlt: "#
|
|
35
|
+
successAlt: "#2f8f64",
|
|
36
36
|
warning: "#3f2e19",
|
|
37
|
-
warningAlt: "#
|
|
37
|
+
warningAlt: "#c4882a",
|
|
38
38
|
error: "#3d1f24",
|
|
39
|
-
errorAlt: "#
|
|
39
|
+
errorAlt: "#d63d4e",
|
|
40
40
|
pink: "#361c23",
|
|
41
41
|
pinkAlt: "#f8e6f7",
|
|
42
42
|
orange: "#3d2a12",
|
|
@@ -51,25 +51,25 @@ var GALAXY_DARK_COLOR = {
|
|
|
51
51
|
tealAlt: "#e6f7f9",
|
|
52
52
|
purple: "#272442",
|
|
53
53
|
purpleAlt: "#f2f0ff",
|
|
54
|
-
disabled: "#
|
|
54
|
+
disabled: "#1c1c1d",
|
|
55
55
|
disabledAlt: "#ffffff",
|
|
56
56
|
galaxy: "#005EFF",
|
|
57
57
|
galaxyAlt: "#3075FF"
|
|
58
58
|
},
|
|
59
59
|
border: {
|
|
60
|
-
primary: "#
|
|
61
|
-
secondary: "#
|
|
62
|
-
tertiary: "#
|
|
63
|
-
selected: "#
|
|
60
|
+
primary: "#2b2b2c",
|
|
61
|
+
secondary: "#39393a",
|
|
62
|
+
tertiary: "#49494a",
|
|
63
|
+
selected: "#787879",
|
|
64
64
|
success: "#3aa175",
|
|
65
|
-
warning: "#
|
|
66
|
-
error: "#
|
|
67
|
-
disabled: "#
|
|
65
|
+
warning: "#b98a2e",
|
|
66
|
+
error: "#c94e55",
|
|
67
|
+
disabled: "#2d2d2e",
|
|
68
68
|
pink: "#a8527e",
|
|
69
69
|
orange: "#b3722e",
|
|
70
70
|
yellow: "#a09b3f",
|
|
71
71
|
lime: "#d5f2a7",
|
|
72
|
-
blue: "#
|
|
72
|
+
blue: "#4c9eff",
|
|
73
73
|
teal: "#3a8a8f",
|
|
74
74
|
purple: "#b7b1f1",
|
|
75
75
|
galaxy: "#005EFF",
|
|
@@ -84,8 +84,8 @@ var GALAXY_DARK_COLOR = {
|
|
|
84
84
|
tertiaryAlt: "#000000",
|
|
85
85
|
success: "#4cb782",
|
|
86
86
|
warning: "#ffb265",
|
|
87
|
-
error: "#
|
|
88
|
-
pink: "#
|
|
87
|
+
error: "#f6525c",
|
|
88
|
+
pink: "#f3a8e5",
|
|
89
89
|
orange: "#ffd2a8",
|
|
90
90
|
yellow: "#fff7aa",
|
|
91
91
|
lime: "#d5f2a7",
|
|
@@ -8,7 +8,7 @@ var GALAXY_LIGHT_COLOR = {
|
|
|
8
8
|
tertiary: "#9e9e9e",
|
|
9
9
|
tertiaryAlt: "#868686",
|
|
10
10
|
success: "#4cb782",
|
|
11
|
-
warning: "#
|
|
11
|
+
warning: "#ca8404",
|
|
12
12
|
error: "#e53f4f",
|
|
13
13
|
pink: "#ff4595",
|
|
14
14
|
orange: "#e99243",
|
|
@@ -19,24 +19,24 @@ var GALAXY_LIGHT_COLOR = {
|
|
|
19
19
|
teal: "#20b2a5",
|
|
20
20
|
purple: "#b080f3",
|
|
21
21
|
disabled: "#b8b8b8",
|
|
22
|
-
galaxy: "#
|
|
23
|
-
galaxyAlt: "#
|
|
22
|
+
galaxy: "#005EFF",
|
|
23
|
+
galaxyAlt: "#004BD1"
|
|
24
24
|
},
|
|
25
25
|
background: {
|
|
26
26
|
base: "#ffffff",
|
|
27
|
-
baseAlt: "#
|
|
28
|
-
primary: "#
|
|
29
|
-
primaryAlt: "#
|
|
30
|
-
secondary: "#
|
|
31
|
-
secondaryAlt: "#
|
|
32
|
-
tertiary: "#
|
|
33
|
-
tertiaryAlt: "#
|
|
27
|
+
baseAlt: "#141415",
|
|
28
|
+
primary: "#fafafb",
|
|
29
|
+
primaryAlt: "#161617",
|
|
30
|
+
secondary: "#f1f1f2",
|
|
31
|
+
secondaryAlt: "#1c1c1d",
|
|
32
|
+
tertiary: "#f6f6f7",
|
|
33
|
+
tertiaryAlt: "#1a1a1b",
|
|
34
34
|
success: "#e3f6ec",
|
|
35
|
-
successAlt: "#
|
|
36
|
-
warning: "#
|
|
37
|
-
warningAlt: "#
|
|
35
|
+
successAlt: "#2f8f64",
|
|
36
|
+
warning: "#fdeec6",
|
|
37
|
+
warningAlt: "#cf8c10",
|
|
38
38
|
error: "#fce8ec",
|
|
39
|
-
errorAlt: "#
|
|
39
|
+
errorAlt: "#d63d4e",
|
|
40
40
|
pink: "#f8e6f7",
|
|
41
41
|
pinkAlt: "#361c23",
|
|
42
42
|
orange: "#fdefdc",
|
|
@@ -52,28 +52,28 @@ var GALAXY_LIGHT_COLOR = {
|
|
|
52
52
|
purple: "#f2f0ff",
|
|
53
53
|
purpleAlt: "#272442",
|
|
54
54
|
disabled: "#ffffff",
|
|
55
|
-
disabledAlt: "#
|
|
56
|
-
galaxy: "#
|
|
57
|
-
galaxyAlt: "#
|
|
55
|
+
disabledAlt: "#1c1c1d",
|
|
56
|
+
galaxy: "#005EFF",
|
|
57
|
+
galaxyAlt: "#004BD1"
|
|
58
58
|
},
|
|
59
59
|
border: {
|
|
60
|
-
primary: "#
|
|
61
|
-
secondary: "#
|
|
62
|
-
tertiary: "#
|
|
63
|
-
selected: "#
|
|
60
|
+
primary: "#d2d2d4",
|
|
61
|
+
secondary: "#dadadc",
|
|
62
|
+
tertiary: "#e2e2e4",
|
|
63
|
+
selected: "#d8d8da",
|
|
64
64
|
success: "#62c796",
|
|
65
|
-
warning: "#
|
|
66
|
-
error: "#
|
|
67
|
-
disabled: "#
|
|
65
|
+
warning: "#efae3c",
|
|
66
|
+
error: "#e2555f",
|
|
67
|
+
disabled: "#e8e8e9",
|
|
68
68
|
pink: "#f57bb0",
|
|
69
69
|
orange: "#e2a65c",
|
|
70
70
|
yellow: "#d4cc6a",
|
|
71
71
|
lime: "#9cca55",
|
|
72
|
-
blue: "#
|
|
72
|
+
blue: "#4c9eff",
|
|
73
73
|
teal: "#4cc2b7",
|
|
74
74
|
purple: "#b080f3",
|
|
75
|
-
galaxy: "#
|
|
76
|
-
galaxyAlt: "#
|
|
75
|
+
galaxy: "#005EFF",
|
|
76
|
+
galaxyAlt: "#004BD1"
|
|
77
77
|
},
|
|
78
78
|
icon: {
|
|
79
79
|
primary: "#101010",
|
|
@@ -82,19 +82,19 @@ var GALAXY_LIGHT_COLOR = {
|
|
|
82
82
|
secondaryAlt: "#acacac",
|
|
83
83
|
tertiary: "#9e9e9e",
|
|
84
84
|
tertiaryAlt: "#868686",
|
|
85
|
-
success: "#
|
|
86
|
-
warning: "#
|
|
87
|
-
error: "#
|
|
88
|
-
pink: "#
|
|
89
|
-
orange: "#
|
|
90
|
-
yellow: "#
|
|
91
|
-
lime: "#
|
|
92
|
-
blue: "#
|
|
93
|
-
teal: "#
|
|
94
|
-
purple: "#
|
|
85
|
+
success: "#7ccfaa",
|
|
86
|
+
warning: "#f7a928",
|
|
87
|
+
error: "#f6525c",
|
|
88
|
+
pink: "#f77fb4",
|
|
89
|
+
orange: "#eeab72",
|
|
90
|
+
yellow: "#d9cf74",
|
|
91
|
+
lime: "#b3d67d",
|
|
92
|
+
blue: "#7dabff",
|
|
93
|
+
teal: "#5cc6bb",
|
|
94
|
+
purple: "#c4a1f5",
|
|
95
95
|
disabled: "#b8b8b8",
|
|
96
|
-
galaxy: "#
|
|
97
|
-
galaxyAlt: "#
|
|
96
|
+
galaxy: "#005EFF",
|
|
97
|
+
galaxyAlt: "#004BD1"
|
|
98
98
|
},
|
|
99
99
|
opacity: {
|
|
100
100
|
bw100: "rgba(255, 255, 255, 1)",
|