@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.
Files changed (77) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +70 -70
  3. package/dist/declarations.d.ts +6 -6
  4. package/package.json +52 -52
  5. package/src/Alert/Alert.tsx +49 -49
  6. package/src/AutoComplete/AutoComplete.tsx +810 -810
  7. package/src/Badge/Badge.tsx +53 -53
  8. package/src/Breadcrumb/Breadcrumb.tsx +53 -53
  9. package/src/Button/Button.tsx +125 -125
  10. package/src/Card/Card.tsx +257 -257
  11. package/src/Checkbox/Checkbox.tsx +59 -59
  12. package/src/CommandPalette/CommandPalette.tsx +185 -185
  13. package/src/Container/Container.tsx +31 -31
  14. package/src/Divider/Divider.tsx +31 -31
  15. package/src/Form/Form.tsx +185 -185
  16. package/src/Grid/Grid.tsx +66 -66
  17. package/src/ImageCropper/ImageCropper.tsx +911 -911
  18. package/src/Input/Input.tsx +74 -74
  19. package/src/Modal/Modal.tsx +77 -77
  20. package/src/Nav/Nav.tsx +708 -708
  21. package/src/Notification/Notification.tsx +1503 -1503
  22. package/src/Pagination/Pagination.tsx +76 -76
  23. package/src/Radio/Radio.tsx +69 -69
  24. package/src/RichTextArea/RichTextArea.tsx +886 -886
  25. package/src/Select/Select.tsx +515 -515
  26. package/src/Skeleton/Skeleton.tsx +70 -70
  27. package/src/Stack/Stack.tsx +52 -52
  28. package/src/Table/Table.tsx +335 -335
  29. package/src/Tabs/Tabs.tsx +90 -90
  30. package/src/Theme/ThemeProvider.tsx +253 -253
  31. package/src/Theme/ThemeToggle.tsx +79 -79
  32. package/src/Toggle/Toggle.tsx +48 -48
  33. package/src/Tooltip/Tooltip.tsx +38 -38
  34. package/src/TopNav/TopNav.tsx +1163 -1163
  35. package/src/TreeSelect/TreeSelect.tsx +825 -825
  36. package/src/css/alert.module.scss +93 -93
  37. package/src/css/autocomplete.module.scss +416 -416
  38. package/src/css/badge.module.scss +82 -82
  39. package/src/css/base/_color.scss +159 -159
  40. package/src/css/base/_theme.scss +237 -237
  41. package/src/css/base/_variables.scss +161 -161
  42. package/src/css/breadcrumb.module.scss +50 -50
  43. package/src/css/button.module.scss +385 -385
  44. package/src/css/card.module.scss +217 -217
  45. package/src/css/checkbox.module.scss +123 -123
  46. package/src/css/commandpalette.module.scss +211 -211
  47. package/src/css/container.module.scss +18 -18
  48. package/src/css/divider.module.scss +41 -41
  49. package/src/css/form.module.scss +245 -245
  50. package/src/css/imagecropper.module.scss +397 -397
  51. package/src/css/input.module.scss +89 -89
  52. package/src/css/modal.module.scss +105 -105
  53. package/src/css/nav.module.scss +494 -494
  54. package/src/css/notification.module.scss +691 -691
  55. package/src/css/pagination.module.scss +63 -63
  56. package/src/css/radio.module.scss +89 -89
  57. package/src/css/richtextarea.module.scss +307 -307
  58. package/src/css/select.module.scss +525 -525
  59. package/src/css/skeleton.module.scss +30 -30
  60. package/src/css/table.module.scss +386 -386
  61. package/src/css/tabs.module.scss +63 -63
  62. package/src/css/theme-toggle.module.scss +83 -83
  63. package/src/css/toggle.module.scss +54 -54
  64. package/src/css/tooltip.module.scss +97 -97
  65. package/src/css/topnav.module.scss +568 -568
  66. package/src/css/treeselect.module.scss +558 -558
  67. package/src/css/utilities/_borders.scss +111 -111
  68. package/src/css/utilities/_colors.scss +66 -66
  69. package/src/css/utilities/_effects.scss +216 -216
  70. package/src/css/utilities/_layout.scss +181 -181
  71. package/src/css/utilities/_position.scss +75 -75
  72. package/src/css/utilities/_sizing.scss +138 -138
  73. package/src/css/utilities/_spacing.scss +99 -99
  74. package/src/css/utilities/_typography.scss +121 -121
  75. package/src/css/utilities/index.scss +24 -24
  76. package/src/declarations.d.ts +6 -6
  77. 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
+ }