@justin_evo/evo-ui 1.2.0 → 1.2.1
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/LICENSE +21 -21
- package/README.md +70 -70
- package/dist/declarations.d.ts +6 -6
- package/package.json +52 -52
- package/src/Alert/Alert.tsx +49 -49
- package/src/AutoComplete/AutoComplete.tsx +810 -810
- package/src/Badge/Badge.tsx +53 -53
- package/src/Breadcrumb/Breadcrumb.tsx +53 -53
- package/src/Button/Button.tsx +125 -125
- package/src/Card/Card.tsx +257 -257
- package/src/Checkbox/Checkbox.tsx +59 -59
- package/src/CommandPalette/CommandPalette.tsx +185 -185
- package/src/Container/Container.tsx +31 -31
- package/src/Divider/Divider.tsx +31 -31
- package/src/Form/Form.tsx +185 -185
- package/src/Grid/Grid.tsx +66 -66
- package/src/ImageCropper/ImageCropper.tsx +911 -911
- package/src/Input/Input.tsx +74 -74
- package/src/Modal/Modal.tsx +77 -77
- package/src/Nav/Nav.tsx +708 -708
- package/src/Notification/Notification.tsx +1503 -1503
- package/src/Pagination/Pagination.tsx +76 -76
- package/src/Radio/Radio.tsx +69 -69
- package/src/RichTextArea/RichTextArea.tsx +886 -886
- package/src/Select/Select.tsx +515 -515
- package/src/Skeleton/Skeleton.tsx +70 -70
- package/src/Stack/Stack.tsx +52 -52
- package/src/Table/Table.tsx +335 -335
- package/src/Tabs/Tabs.tsx +90 -90
- package/src/Theme/ThemeProvider.tsx +253 -253
- package/src/Theme/ThemeToggle.tsx +79 -79
- package/src/Toggle/Toggle.tsx +48 -48
- package/src/Tooltip/Tooltip.tsx +38 -38
- package/src/TopNav/TopNav.tsx +1163 -1163
- package/src/TreeSelect/TreeSelect.tsx +825 -825
- package/src/css/alert.module.scss +93 -93
- package/src/css/autocomplete.module.scss +416 -416
- package/src/css/badge.module.scss +82 -82
- package/src/css/base/_color.scss +159 -159
- package/src/css/base/_theme.scss +237 -237
- package/src/css/base/_variables.scss +161 -161
- package/src/css/breadcrumb.module.scss +50 -50
- package/src/css/button.module.scss +385 -385
- package/src/css/card.module.scss +217 -217
- package/src/css/checkbox.module.scss +123 -123
- package/src/css/commandpalette.module.scss +211 -211
- package/src/css/container.module.scss +18 -18
- package/src/css/divider.module.scss +41 -41
- package/src/css/form.module.scss +245 -245
- package/src/css/imagecropper.module.scss +397 -397
- package/src/css/input.module.scss +89 -89
- package/src/css/modal.module.scss +105 -105
- package/src/css/nav.module.scss +494 -494
- package/src/css/notification.module.scss +691 -691
- package/src/css/pagination.module.scss +63 -63
- package/src/css/radio.module.scss +89 -89
- package/src/css/richtextarea.module.scss +307 -307
- package/src/css/select.module.scss +525 -525
- package/src/css/skeleton.module.scss +30 -30
- package/src/css/table.module.scss +386 -386
- package/src/css/tabs.module.scss +63 -63
- package/src/css/theme-toggle.module.scss +83 -83
- package/src/css/toggle.module.scss +54 -54
- package/src/css/tooltip.module.scss +97 -97
- package/src/css/topnav.module.scss +568 -568
- package/src/css/treeselect.module.scss +558 -558
- package/src/css/utilities/_borders.scss +111 -111
- package/src/css/utilities/_colors.scss +66 -66
- package/src/css/utilities/_effects.scss +216 -216
- package/src/css/utilities/_layout.scss +181 -181
- package/src/css/utilities/_position.scss +75 -75
- package/src/css/utilities/_sizing.scss +138 -138
- package/src/css/utilities/_spacing.scss +99 -99
- package/src/css/utilities/_typography.scss +121 -121
- package/src/css/utilities/index.scss +24 -24
- package/src/declarations.d.ts +6 -6
- package/src/index.ts +60 -60
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
@use 'base/variables' as *;
|
|
2
|
-
@use 'base/color' as *;
|
|
3
|
-
|
|
4
|
-
.alert {
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: flex-start;
|
|
7
|
-
gap: 0.75rem;
|
|
8
|
-
padding: 1rem;
|
|
9
|
-
border-radius: $radius-md;
|
|
10
|
-
border: 1px solid transparent;
|
|
11
|
-
font-family: $font-sans;
|
|
12
|
-
|
|
13
|
-
&.success {
|
|
14
|
-
background-color: color-mix(in srgb, $evo-success-color 10%, transparent);
|
|
15
|
-
border-color: color-mix(in srgb, $evo-success-color 28%, transparent);
|
|
16
|
-
|
|
17
|
-
.alertIcon { background-color: $evo-success-color; }
|
|
18
|
-
.alertTitle { color: $evo-success-color; }
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&.error {
|
|
22
|
-
background-color: color-mix(in srgb, $evo-danger-color 10%, transparent);
|
|
23
|
-
border-color: color-mix(in srgb, $evo-danger-color 28%, transparent);
|
|
24
|
-
|
|
25
|
-
.alertIcon { background-color: $evo-danger-color; }
|
|
26
|
-
.alertTitle { color: $evo-danger-color; }
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&.warning {
|
|
30
|
-
background-color: color-mix(in srgb, $evo-warning-color 10%, transparent);
|
|
31
|
-
border-color: color-mix(in srgb, $evo-warning-color 28%, transparent);
|
|
32
|
-
|
|
33
|
-
.alertIcon { background-color: $evo-warning-color; }
|
|
34
|
-
.alertTitle { color: $evo-warning-color; }
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&.info {
|
|
38
|
-
background-color: color-mix(in srgb, $evo-info-color 10%, transparent);
|
|
39
|
-
border-color: color-mix(in srgb, $evo-info-color 28%, transparent);
|
|
40
|
-
|
|
41
|
-
.alertIcon { background-color: $evo-info-color; }
|
|
42
|
-
.alertTitle { color: $evo-info-color; }
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.alertIcon {
|
|
47
|
-
display: inline-flex;
|
|
48
|
-
align-items: center;
|
|
49
|
-
justify-content: center;
|
|
50
|
-
width: 1.25rem;
|
|
51
|
-
height: 1.25rem;
|
|
52
|
-
border-radius: 50%;
|
|
53
|
-
color: #fff;
|
|
54
|
-
font-size: $text-xs;
|
|
55
|
-
font-weight: 700;
|
|
56
|
-
flex-shrink: 0;
|
|
57
|
-
margin-top: 0.0625rem;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.alertContent {
|
|
61
|
-
flex: 1;
|
|
62
|
-
min-width: 0;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.alertTitle {
|
|
66
|
-
font-size: $text-sm;
|
|
67
|
-
font-weight: 600;
|
|
68
|
-
margin: 0 0 0.25rem;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.alertDescription {
|
|
72
|
-
font-size: $text-sm;
|
|
73
|
-
color: $color-text-secondary;
|
|
74
|
-
margin: 0;
|
|
75
|
-
line-height: 1.5;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.dismissBtn {
|
|
79
|
-
display: inline-flex;
|
|
80
|
-
align-items: center;
|
|
81
|
-
justify-content: center;
|
|
82
|
-
background: transparent;
|
|
83
|
-
border: none;
|
|
84
|
-
cursor: pointer;
|
|
85
|
-
color: $color-text-muted;
|
|
86
|
-
font-size: $text-xs;
|
|
87
|
-
padding: 0.125rem;
|
|
88
|
-
border-radius: $radius-sm;
|
|
89
|
-
transition: color $transition-fast;
|
|
90
|
-
flex-shrink: 0;
|
|
91
|
-
|
|
92
|
-
&:hover { color: $color-text-primary; }
|
|
93
|
-
}
|
|
1
|
+
@use 'base/variables' as *;
|
|
2
|
+
@use 'base/color' as *;
|
|
3
|
+
|
|
4
|
+
.alert {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
gap: 0.75rem;
|
|
8
|
+
padding: 1rem;
|
|
9
|
+
border-radius: $radius-md;
|
|
10
|
+
border: 1px solid transparent;
|
|
11
|
+
font-family: $font-sans;
|
|
12
|
+
|
|
13
|
+
&.success {
|
|
14
|
+
background-color: color-mix(in srgb, $evo-success-color 10%, transparent);
|
|
15
|
+
border-color: color-mix(in srgb, $evo-success-color 28%, transparent);
|
|
16
|
+
|
|
17
|
+
.alertIcon { background-color: $evo-success-color; }
|
|
18
|
+
.alertTitle { color: $evo-success-color; }
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.error {
|
|
22
|
+
background-color: color-mix(in srgb, $evo-danger-color 10%, transparent);
|
|
23
|
+
border-color: color-mix(in srgb, $evo-danger-color 28%, transparent);
|
|
24
|
+
|
|
25
|
+
.alertIcon { background-color: $evo-danger-color; }
|
|
26
|
+
.alertTitle { color: $evo-danger-color; }
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.warning {
|
|
30
|
+
background-color: color-mix(in srgb, $evo-warning-color 10%, transparent);
|
|
31
|
+
border-color: color-mix(in srgb, $evo-warning-color 28%, transparent);
|
|
32
|
+
|
|
33
|
+
.alertIcon { background-color: $evo-warning-color; }
|
|
34
|
+
.alertTitle { color: $evo-warning-color; }
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.info {
|
|
38
|
+
background-color: color-mix(in srgb, $evo-info-color 10%, transparent);
|
|
39
|
+
border-color: color-mix(in srgb, $evo-info-color 28%, transparent);
|
|
40
|
+
|
|
41
|
+
.alertIcon { background-color: $evo-info-color; }
|
|
42
|
+
.alertTitle { color: $evo-info-color; }
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.alertIcon {
|
|
47
|
+
display: inline-flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
width: 1.25rem;
|
|
51
|
+
height: 1.25rem;
|
|
52
|
+
border-radius: 50%;
|
|
53
|
+
color: #fff;
|
|
54
|
+
font-size: $text-xs;
|
|
55
|
+
font-weight: 700;
|
|
56
|
+
flex-shrink: 0;
|
|
57
|
+
margin-top: 0.0625rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.alertContent {
|
|
61
|
+
flex: 1;
|
|
62
|
+
min-width: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.alertTitle {
|
|
66
|
+
font-size: $text-sm;
|
|
67
|
+
font-weight: 600;
|
|
68
|
+
margin: 0 0 0.25rem;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.alertDescription {
|
|
72
|
+
font-size: $text-sm;
|
|
73
|
+
color: $color-text-secondary;
|
|
74
|
+
margin: 0;
|
|
75
|
+
line-height: 1.5;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.dismissBtn {
|
|
79
|
+
display: inline-flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
background: transparent;
|
|
83
|
+
border: none;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
color: $color-text-muted;
|
|
86
|
+
font-size: $text-xs;
|
|
87
|
+
padding: 0.125rem;
|
|
88
|
+
border-radius: $radius-sm;
|
|
89
|
+
transition: color $transition-fast;
|
|
90
|
+
flex-shrink: 0;
|
|
91
|
+
|
|
92
|
+
&:hover { color: $color-text-primary; }
|
|
93
|
+
}
|