@justin_evo/evo-ui 1.1.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/README.md +3 -3
- package/dist/TopNav/TopNav.d.ts +19 -0
- package/dist/declarations.d.ts +6 -6
- package/dist/evo-ui.css +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +3301 -3197
- 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 -869
- 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 -994
- 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 -120
- 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 -396
- 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,63 +1,63 @@
|
|
|
1
|
-
@use 'base/variables' as *;
|
|
2
|
-
@use 'base/color' as *;
|
|
3
|
-
|
|
4
|
-
.pagination {
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
gap: 0.25rem;
|
|
8
|
-
font-family: $font-sans;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.pageBtn {
|
|
12
|
-
display: inline-flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
min-width: 2rem;
|
|
16
|
-
height: 2rem;
|
|
17
|
-
padding: 0 0.375rem;
|
|
18
|
-
font-size: $text-sm;
|
|
19
|
-
font-weight: 500;
|
|
20
|
-
color: $color-text-secondary;
|
|
21
|
-
background: $color-surface;
|
|
22
|
-
border: 1px solid $color-border;
|
|
23
|
-
border-radius: $radius-sm;
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
transition: background-color $transition-fast, color $transition-fast, border-color $transition-fast;
|
|
26
|
-
|
|
27
|
-
&:hover:not(:disabled) {
|
|
28
|
-
background-color: $color-surface-hover;
|
|
29
|
-
color: $color-text-primary;
|
|
30
|
-
border-color: $color-border-strong;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&:disabled {
|
|
34
|
-
opacity: 0.4;
|
|
35
|
-
cursor: not-allowed;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.activePage {
|
|
40
|
-
background-color: $evo-primary-color;
|
|
41
|
-
border-color: $evo-primary-color;
|
|
42
|
-
color: $evo-primary-fg;
|
|
43
|
-
|
|
44
|
-
&:hover:not(:disabled) {
|
|
45
|
-
background-color: $evo-primary-hover;
|
|
46
|
-
border-color: $evo-primary-hover;
|
|
47
|
-
color: $evo-primary-fg;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.navBtn {
|
|
52
|
-
font-size: $text-base;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.ellipsis {
|
|
56
|
-
display: inline-flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
justify-content: center;
|
|
59
|
-
min-width: 2rem;
|
|
60
|
-
height: 2rem;
|
|
61
|
-
font-size: $text-sm;
|
|
62
|
-
color: $color-text-muted;
|
|
63
|
-
}
|
|
1
|
+
@use 'base/variables' as *;
|
|
2
|
+
@use 'base/color' as *;
|
|
3
|
+
|
|
4
|
+
.pagination {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
gap: 0.25rem;
|
|
8
|
+
font-family: $font-sans;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.pageBtn {
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
min-width: 2rem;
|
|
16
|
+
height: 2rem;
|
|
17
|
+
padding: 0 0.375rem;
|
|
18
|
+
font-size: $text-sm;
|
|
19
|
+
font-weight: 500;
|
|
20
|
+
color: $color-text-secondary;
|
|
21
|
+
background: $color-surface;
|
|
22
|
+
border: 1px solid $color-border;
|
|
23
|
+
border-radius: $radius-sm;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
transition: background-color $transition-fast, color $transition-fast, border-color $transition-fast;
|
|
26
|
+
|
|
27
|
+
&:hover:not(:disabled) {
|
|
28
|
+
background-color: $color-surface-hover;
|
|
29
|
+
color: $color-text-primary;
|
|
30
|
+
border-color: $color-border-strong;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:disabled {
|
|
34
|
+
opacity: 0.4;
|
|
35
|
+
cursor: not-allowed;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.activePage {
|
|
40
|
+
background-color: $evo-primary-color;
|
|
41
|
+
border-color: $evo-primary-color;
|
|
42
|
+
color: $evo-primary-fg;
|
|
43
|
+
|
|
44
|
+
&:hover:not(:disabled) {
|
|
45
|
+
background-color: $evo-primary-hover;
|
|
46
|
+
border-color: $evo-primary-hover;
|
|
47
|
+
color: $evo-primary-fg;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.navBtn {
|
|
52
|
+
font-size: $text-base;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ellipsis {
|
|
56
|
+
display: inline-flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
min-width: 2rem;
|
|
60
|
+
height: 2rem;
|
|
61
|
+
font-size: $text-sm;
|
|
62
|
+
color: $color-text-muted;
|
|
63
|
+
}
|
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
@use 'base/variables' as *;
|
|
2
|
-
@use 'base/color' as *;
|
|
3
|
-
|
|
4
|
-
.group {
|
|
5
|
-
border: none;
|
|
6
|
-
padding: 0;
|
|
7
|
-
margin: 0;
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
gap: 0.5rem;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.groupLabel {
|
|
14
|
-
font-size: $text-sm;
|
|
15
|
-
font-weight: 600;
|
|
16
|
-
color: $color-text-primary;
|
|
17
|
-
margin-bottom: 0.125rem;
|
|
18
|
-
font-family: $font-sans;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.radio {
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
|
|
25
|
-
&.disabled {
|
|
26
|
-
opacity: 0.5;
|
|
27
|
-
pointer-events: none;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.input {
|
|
32
|
-
position: absolute;
|
|
33
|
-
opacity: 0;
|
|
34
|
-
width: 0;
|
|
35
|
-
height: 0;
|
|
36
|
-
pointer-events: none;
|
|
37
|
-
|
|
38
|
-
&:checked + .label .radiomark {
|
|
39
|
-
border-color: $evo-primary-color;
|
|
40
|
-
|
|
41
|
-
&::after {
|
|
42
|
-
opacity: 1;
|
|
43
|
-
transform: scale(1);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&:focus-visible + .label .radiomark {
|
|
48
|
-
outline: 2px solid $evo-primary-focus;
|
|
49
|
-
outline-offset: 2px;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.label {
|
|
54
|
-
display: flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
gap: 0.5rem;
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
font-family: $font-sans;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.radiomark {
|
|
62
|
-
position: relative;
|
|
63
|
-
display: inline-flex;
|
|
64
|
-
align-items: center;
|
|
65
|
-
justify-content: center;
|
|
66
|
-
width: 1rem;
|
|
67
|
-
height: 1rem;
|
|
68
|
-
border: 2px solid $color-border;
|
|
69
|
-
border-radius: 50%;
|
|
70
|
-
background: $color-surface;
|
|
71
|
-
transition: border-color $transition-fast;
|
|
72
|
-
flex-shrink: 0;
|
|
73
|
-
|
|
74
|
-
&::after {
|
|
75
|
-
content: '';
|
|
76
|
-
width: 0.375rem;
|
|
77
|
-
height: 0.375rem;
|
|
78
|
-
border-radius: 50%;
|
|
79
|
-
background: $evo-primary-color;
|
|
80
|
-
opacity: 0;
|
|
81
|
-
transform: scale(0.3);
|
|
82
|
-
transition: opacity $transition-fast, transform $transition-spring;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.labelText {
|
|
87
|
-
font-size: $text-sm;
|
|
88
|
-
color: $color-text-primary;
|
|
89
|
-
}
|
|
1
|
+
@use 'base/variables' as *;
|
|
2
|
+
@use 'base/color' as *;
|
|
3
|
+
|
|
4
|
+
.group {
|
|
5
|
+
border: none;
|
|
6
|
+
padding: 0;
|
|
7
|
+
margin: 0;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: 0.5rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.groupLabel {
|
|
14
|
+
font-size: $text-sm;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
color: $color-text-primary;
|
|
17
|
+
margin-bottom: 0.125rem;
|
|
18
|
+
font-family: $font-sans;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.radio {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
|
|
25
|
+
&.disabled {
|
|
26
|
+
opacity: 0.5;
|
|
27
|
+
pointer-events: none;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.input {
|
|
32
|
+
position: absolute;
|
|
33
|
+
opacity: 0;
|
|
34
|
+
width: 0;
|
|
35
|
+
height: 0;
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
|
|
38
|
+
&:checked + .label .radiomark {
|
|
39
|
+
border-color: $evo-primary-color;
|
|
40
|
+
|
|
41
|
+
&::after {
|
|
42
|
+
opacity: 1;
|
|
43
|
+
transform: scale(1);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:focus-visible + .label .radiomark {
|
|
48
|
+
outline: 2px solid $evo-primary-focus;
|
|
49
|
+
outline-offset: 2px;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.label {
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
gap: 0.5rem;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
font-family: $font-sans;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.radiomark {
|
|
62
|
+
position: relative;
|
|
63
|
+
display: inline-flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
width: 1rem;
|
|
67
|
+
height: 1rem;
|
|
68
|
+
border: 2px solid $color-border;
|
|
69
|
+
border-radius: 50%;
|
|
70
|
+
background: $color-surface;
|
|
71
|
+
transition: border-color $transition-fast;
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
|
|
74
|
+
&::after {
|
|
75
|
+
content: '';
|
|
76
|
+
width: 0.375rem;
|
|
77
|
+
height: 0.375rem;
|
|
78
|
+
border-radius: 50%;
|
|
79
|
+
background: $evo-primary-color;
|
|
80
|
+
opacity: 0;
|
|
81
|
+
transform: scale(0.3);
|
|
82
|
+
transition: opacity $transition-fast, transform $transition-spring;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.labelText {
|
|
87
|
+
font-size: $text-sm;
|
|
88
|
+
color: $color-text-primary;
|
|
89
|
+
}
|