platformscode-new-react 0.0.4 → 0.0.5

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 (63) hide show
  1. package/dist/style.css +1 -1
  2. package/package.json +4 -1
  3. package/.editorconfig +0 -15
  4. package/.prettierrc.json +0 -13
  5. package/src/assets/styles/abstracts/_functions.scss +0 -3
  6. package/src/assets/styles/abstracts/_mixins.scss +0 -60
  7. package/src/assets/styles/abstracts/_variables.scss +0 -46
  8. package/src/assets/styles/abstracts/variables/_colors.scss +0 -145
  9. package/src/assets/styles/abstracts/variables/_radius.scss +0 -19
  10. package/src/assets/styles/abstracts/variables/_shadows.scss +0 -9
  11. package/src/assets/styles/abstracts/variables/_spacing.scss +0 -35
  12. package/src/assets/styles/abstracts/variables/_widths.scss +0 -306
  13. package/src/assets/styles/base/_animation.scss +0 -0
  14. package/src/assets/styles/base/_base.scss +0 -29
  15. package/src/assets/styles/base/_typography.scss +0 -73
  16. package/src/assets/styles/base/_utilities.scss +0 -260
  17. package/src/assets/styles/components/_accordions.scss +0 -184
  18. package/src/assets/styles/components/_avatar.scss +0 -87
  19. package/src/assets/styles/components/_breadcrumbs.scss +0 -63
  20. package/src/assets/styles/components/_btns.scss +0 -815
  21. package/src/assets/styles/components/_card.scss +0 -91
  22. package/src/assets/styles/components/_checkbox.scss +0 -241
  23. package/src/assets/styles/components/_content-switcher.scss +0 -108
  24. package/src/assets/styles/components/_data-table.scss +0 -155
  25. package/src/assets/styles/components/_date-picker.scss +0 -257
  26. package/src/assets/styles/components/_dropdown.scss +0 -479
  27. package/src/assets/styles/components/_featured-icons.scss +0 -127
  28. package/src/assets/styles/components/_file-upload.scss +0 -164
  29. package/src/assets/styles/components/_icons.scss +0 -3
  30. package/src/assets/styles/components/_inline-alert.scss +0 -166
  31. package/src/assets/styles/components/_input.scss +0 -473
  32. package/src/assets/styles/components/_links.scss +0 -130
  33. package/src/assets/styles/components/_list.scss +0 -130
  34. package/src/assets/styles/components/_loading.scss +0 -135
  35. package/src/assets/styles/components/_menu.scss +0 -85
  36. package/src/assets/styles/components/_modals.scss +0 -108
  37. package/src/assets/styles/components/_notification-toast.scss +0 -177
  38. package/src/assets/styles/components/_notifications.scss +0 -139
  39. package/src/assets/styles/components/_pagination.scss +0 -79
  40. package/src/assets/styles/components/_progress-indicator.scss +0 -230
  41. package/src/assets/styles/components/_radio.scss +0 -183
  42. package/src/assets/styles/components/_rating.scss +0 -77
  43. package/src/assets/styles/components/_shadows.scss +0 -23
  44. package/src/assets/styles/components/_structured-list.scss +0 -95
  45. package/src/assets/styles/components/_switch.scss +0 -192
  46. package/src/assets/styles/components/_tabs.scss +0 -231
  47. package/src/assets/styles/components/_tag.scss +0 -191
  48. package/src/assets/styles/components/_textarea.scss +0 -294
  49. package/src/assets/styles/components/_tooltip.scss +0 -257
  50. package/src/assets/styles/layout/_footer.scss +0 -186
  51. package/src/assets/styles/layout/_grid.scss +0 -73
  52. package/src/assets/styles/layout/_header.scss +0 -0
  53. package/src/assets/styles/layout/_layouts.scss +0 -33
  54. package/src/assets/styles/layout/_nav-header.scss +0 -449
  55. package/src/assets/styles/layout/_sidepanel.scss +0 -340
  56. package/src/assets/styles/layout/_table-of-content.scss +0 -179
  57. package/src/assets/styles/main.scss +0 -54
  58. package/src/assets/styles/themes/_dark.scss +0 -416
  59. package/src/assets/styles/themes/_light.scss +0 -404
  60. package/src/components.ts +0 -132
  61. package/src/index.ts +0 -2
  62. package/tsconfig.json +0 -32
  63. package/vite.config.ts +0 -44
@@ -1,91 +0,0 @@
1
- .card {
2
- max-width: 350px;
3
- padding: var(--spacing-xl, 16px);
4
- flex-direction: column;
5
- align-items: flex-start;
6
- gap: var(--spacing-3xl, 24px);
7
- border-radius: var(--radius-lg, 16px);
8
- background: var(--Colors-Base-white, #fff);
9
- border: 2px solid var(--Colors-Base-black, #fff);
10
- cursor: pointer;
11
- position: relative;
12
-
13
- &__image-container {
14
- width: 100%;
15
- height: 200px;
16
- overflow: hidden;
17
- border-radius: var(--radius-lg, 16px);
18
-
19
- img {
20
- width: auto;
21
- height: 100%;
22
- border-radius: inherit;
23
- }
24
- }
25
-
26
- &__checkbox-container {
27
- position: absolute;
28
- top: 16px;
29
- right: 16px;
30
- & > .checkbox {
31
- .checkbox-main {
32
- min-width: fit-content;
33
- }
34
- }
35
- }
36
-
37
- & > .badge--icon.badge--lg {
38
- width: 48px;
39
- height: 48px;
40
- }
41
-
42
- @extend .shadow-md;
43
- &__content-text {
44
- gap: 8px;
45
- }
46
-
47
- &__action {
48
- width: 100%;
49
- display: flex;
50
-
51
- &--default {
52
- gap: 12px;
53
- }
54
- &--expanded {
55
- // position: relative;
56
- justify-content: flex-end;
57
-
58
- .btn {
59
- svg {
60
- width: 24px;
61
- height: 24px;
62
- }
63
- }
64
- }
65
- }
66
-
67
- &.disabled {
68
- color: var(--colors-gray-neutral-300);
69
- background-color: transparent;
70
- border-color: transparent;
71
-
72
- &::after {
73
- content: "";
74
- position: absolute;
75
- top: 0;
76
- bottom: 0;
77
- left: 0;
78
- right: 0;
79
- width: 100%;
80
- height: 100%;
81
- background-color: var(--colors-gray-neutral-100);
82
- opacity: 0.3;
83
- }
84
- }
85
-
86
- &.focused {
87
- border-radius: var(--radius-lg, 16px);
88
- border: 2px solid var(--Colors-Base-black, #000);
89
- @extend .shadow-md;
90
- }
91
- }
@@ -1,241 +0,0 @@
1
- .checkbox {
2
- margin: var(--spacing-md);
3
- display: flex;
4
- gap: var(--spacing-xl);
5
- padding: var(--spacing-none);
6
- cursor: pointer;
7
-
8
- user-select: none;
9
-
10
- &-icon {
11
- display: none !important;
12
- color: var(--colors-base-white);
13
-
14
- width: 16px;
15
- height: 16px;
16
-
17
- display: flex;
18
- align-items: center;
19
- justify-content: center;
20
- }
21
-
22
- &.focus {
23
- border-radius: var(--radius-sm);
24
- outline: 2px solid var(--colors-base-black);
25
- }
26
-
27
- &-main {
28
- &,
29
- &__content {
30
- display: flex;
31
- column-gap: var(--spacing-xl);
32
- }
33
-
34
- flex-direction: column;
35
- gap: var(--spacing-xs);
36
- max-width: 382px;
37
- // min-width: 160px;
38
- }
39
-
40
- & input {
41
- position: absolute;
42
- opacity: 0;
43
- cursor: pointer;
44
- height: 0;
45
- width: 0;
46
-
47
- &:checked {
48
- & ~ .checkbox-container {
49
- background-color: var(--colors-gray-neutral-950);
50
-
51
- & .checkbox__checked-icon {
52
- display: inline-flex !important;
53
- }
54
- }
55
- }
56
-
57
- &:hover {
58
- & ~ .checkbox-container {
59
- &::after {
60
- transform: translate(-50%, -50%) scale(1);
61
- }
62
- }
63
- }
64
- }
65
-
66
- &.active input:not(:checked) ~ .checkbox-container {
67
- background-color: var(--colors-gray-neutral-300);
68
- }
69
-
70
- &-container {
71
- width: 24px;
72
- height: 24px;
73
- min-width: 24px;
74
- border-radius: var(--radius-xs);
75
- border: 1px solid var(--colors-gray-neutral-500);
76
- display: flex;
77
- align-items: center;
78
- justify-content: center;
79
- position: relative;
80
- cursor: pointer;
81
- margin: var(--spacing-xs);
82
- -webkit-user-select: none;
83
- /* Safari */
84
- -ms-user-select: none;
85
- /* IE 10 and IE 11 */
86
- user-select: none;
87
- /* Standard syntax */
88
-
89
- &::after {
90
- content: "";
91
- border-radius: var(--radius-full);
92
- background: var(--colors-gray-neutral-100);
93
- width: 48px;
94
- height: 48px;
95
- position: absolute;
96
- top: 50%;
97
- left: 50%;
98
- transform: translate(-50%, -50%) scale(0);
99
- z-index: -1;
100
- transition: all 0.3s ease-in-out;
101
- }
102
- }
103
-
104
- &--indeterminate {
105
- & .checkbox-container {
106
- background-color: var(--colors-gray-neutral-950);
107
-
108
- .checkbox-icon {
109
- display: none;
110
- }
111
-
112
- .checkbox__indeterminate-icon {
113
- display: inline-block !important;
114
- }
115
- }
116
-
117
- & input:checked {
118
- & ~ .checkbox-container {
119
- .checkbox__indeterminate-icon {
120
- display: none !important;
121
- }
122
-
123
- .checkbox__checked-icon {
124
- display: inline-block !important;
125
- }
126
- }
127
- }
128
- }
129
-
130
- & input:disabled {
131
- & ~ .checkbox-container {
132
- border-color: var(--colors-border-disabled);
133
- background-color: var(--colors-border-disabled);
134
- }
135
-
136
- &:checked ~ .checkbox-container .checkbox__checked-icon {
137
- // display: inline-block !important;
138
- // color: var(--colors-gray-neutral-300);
139
- }
140
-
141
- & ~ .checkbox__label,
142
- & ~ div > .checkbox__label,
143
- & ~ div > .checkbox__helper-text {
144
- color: var(--colors-border-disabled);
145
- }
146
- }
147
-
148
- &__label {
149
- @extend .text-md-medium;
150
- margin-top: var(--spacing-xs);
151
- }
152
-
153
- &__helper-text {
154
- color: var(--colors-text-tertiary);
155
- @extend .text-sm-regular;
156
- margin-block: var(--spacing-xs);
157
- }
158
-
159
- &__warning {
160
- display: flex;
161
- align-items: center;
162
- gap: var(--spacing-xl);
163
-
164
- color: var(--colors-text-error-primary);
165
- @extend .text-sm-medium;
166
-
167
- &-icon {
168
- width: 24px;
169
- height: 24px;
170
- display: flex;
171
- align-items: center;
172
- justify-content: center;
173
- margin: var(--spacing-xs);
174
- }
175
-
176
- &-text {
177
- }
178
- }
179
-
180
- &--brand {
181
- & input:checked {
182
- & ~ .checkbox-container {
183
- border-color: var(--colors-brand-600);
184
- background-color: var(--colors-brand-600);
185
- }
186
-
187
- & ~ .checkbox__label,
188
- & ~ div > .checkbox__label {
189
- color: var(--colors-text-brand-secondary);
190
- }
191
-
192
- &:disabled {
193
- & ~ .checkbox-container {
194
- background-color: var(--colors-border-disabled);
195
-
196
- .checkbox__checked-icon {
197
- display: inline-block !important;
198
- // color: var(--colors-gray-neutral-300);
199
- }
200
- }
201
- }
202
- }
203
-
204
- & input:disabled {
205
- & ~ .checkbox-container {
206
- border-color: var(--colors-border-disabled);
207
- background-color: transparent;
208
-
209
- &::after {
210
- display: none;
211
- }
212
- }
213
-
214
- &:checked {
215
- }
216
-
217
- & ~ .checkbox__label,
218
- & ~ div > .checkbox__label,
219
- & ~ div > .checkbox__helper-text {
220
- color: var(--colors-border-disabled);
221
- }
222
- }
223
-
224
- &.active input:checked ~ .checkbox-container {
225
- background-color: var(--colors-brand-700);
226
- }
227
- }
228
-
229
- &--readonly {
230
- & .checkbox-container {
231
- background-color: transparent !important;
232
-
233
- .checkbox-icon {
234
- color: var(--colors-gray-neutral-600);
235
- }
236
- }
237
- }
238
-
239
- &--indeterminate {
240
- }
241
- }
@@ -1,108 +0,0 @@
1
- .content-switcher {
2
- display: flex;
3
- flex-direction: column;
4
- margin: 10px;
5
-
6
- &__items {
7
- display: flex;
8
- flex-wrap: wrap;
9
- }
10
-
11
- &__item {
12
- display: inline-flex;
13
- min-width: 76px;
14
- padding: var(--spacing-xs) 10px;
15
- justify-content: center;
16
- align-items: center;
17
- gap: 10px;
18
- cursor: pointer;
19
- // border: 3px solid transparent !important;
20
- border: 0;
21
-
22
- background: var(--colors-gray-neutral-100);
23
- color: var(--colors-2-text-primary, #161616);
24
- @extend .text-md-regular;
25
- // box-shadow: 0 0 0 2px transparent;
26
-
27
- &:hover {
28
- background: var(--colors-gray-neutral-200, #e5e7eb);
29
- }
30
-
31
- &:focus {
32
- outline: none;
33
- border: 1px solid white !important;
34
- box-shadow: 0 0 0 2px black;
35
- z-index: 9;
36
- }
37
-
38
- &--selected {
39
- &,
40
- &:hover {
41
- background-color: var(--colors-gray-neutral-950, #0d121c);
42
- color: var(--colors-2-text-primary_on-color, #fff);
43
- }
44
- }
45
-
46
- &--first {
47
- border-radius: var(--radius-md) 0px 0px var(--radius-md);
48
- border-right: 0.5px solid var(--colors-2-border-secondary, #e5e7eb);
49
- }
50
-
51
- :is(html[lang="ar"], html[dir="rtl"]) &--first {
52
- border-radius: 0px var(--radius-md) var(--radius-md) 0px;
53
- }
54
-
55
- &--mid {
56
- border-radius: var(--radius-none);
57
- border-right: 0.5px solid var(--colors-2-border-secondary, #e5e7eb);
58
- border-left: 0.5px solid var(--colors-2-border-secondary, #e5e7eb);
59
- }
60
-
61
- &--last {
62
- border-radius: 0px var(--radius-md) var(--radius-md) 0px;
63
- border-left: 0.5px solid var(--colors-2-border-secondary, #e5e7eb);
64
- }
65
-
66
- :is(html[lang="ar"], html[dir="rtl"]) &--last {
67
- border-radius: var(--radius-md) 0px 0px var(--radius-md);
68
- }
69
-
70
- &--on-color {
71
- color: var(--colors-2-text-primary_on-color, #fff);
72
- background-color: alpha("white", 10%);
73
- border-color: alpha("white", 10%);
74
-
75
- &:hover {
76
- background: alpha("white", 30%);
77
- }
78
-
79
- &.content-switcher__item--selected {
80
- &,
81
- &:hover {
82
- background-color: var(--colors-brand-600);
83
- // color: var(--colors-2-text-primary_on-color, #FFF);
84
- }
85
- }
86
- }
87
-
88
- &--sm {
89
- height: auto;
90
- }
91
-
92
- &--md {
93
- height: 40px;
94
- }
95
-
96
- &--lg {
97
- height: 48px;
98
- }
99
- }
100
-
101
- &__content {
102
- color: #000;
103
-
104
- &--on-color {
105
- color: #fff;
106
- }
107
- }
108
- }
@@ -1,155 +0,0 @@
1
- div.table-wrapper {
2
- .azm-table {
3
- width: 100%;
4
- border-collapse: collapse;
5
- margin: 0px;
6
- padding: 0px;
7
- tr.row-divider:not(:last-child) {
8
- border-bottom: 1px solid var(--colors-gray-neutral-300);
9
- }
10
- thead {
11
- border-bottom: 1px solid var(--colors-gray-neutral-300);
12
- border-top: 1px solid var(--colors-gray-neutral-300);
13
- background: var(--Colors-Gray-neutral-100, #f3f4f6);
14
- // th:first-child {
15
- // width: 20px;
16
- // }
17
- th {
18
- height: 48px;
19
- border-right: 1px solid var(--colors-gray-neutral-300);
20
- &:last-child {
21
- border-right: none;
22
- }
23
- // border: 1px solid var(--colors-gray-neutral-300);
24
- padding: var(--spacing-md, 8px) var(--spacing-xl, 16px);
25
- span {
26
- display: flex;
27
- justify-content: space-between;
28
- align-items: center;
29
- span.text {
30
- color: var(--colors-gray-neutral-600);
31
- @extend .text-xs-medium;
32
- }
33
- span.icon-wrapper {
34
- display: flex;
35
- justify-content: center;
36
- align-items: center;
37
- gap: 2px;
38
- // @media (prefers-color-scheme: light) {
39
- // button {
40
- // cursor: pointer;
41
- // margin-inline: 3px;
42
- // background-color: white;
43
- // border-radius: 4px;
44
- // color: black;
45
- // &:hover {
46
- // transition: all 0.2s ease-in-out;
47
- // background-color: white;
48
- // }
49
- // &:active {
50
- // transition: all 0.2s ease-in-out;
51
- // background-color: var(--colors-gray-neutral-600);
52
- // // background-color: var(--colors-gray-neutral-500);
53
- // }
54
- // &:visited,
55
- // &:focus {
56
- // transition: all 0.2s ease-in-out;
57
- // background-color: white;
58
- // color: black;
59
- // border: 2px solid white;
60
- // outline: 3px solid #0e0e0e;
61
- // }
62
- // }
63
- // }
64
- // @media (prefers-color-scheme: dark) {
65
- // button {
66
- // cursor: pointer;
67
- // margin-inline: 3px;
68
- // background-color: var(--colors-gray-modern-950);
69
- // border-radius: 4px;
70
- // color: white;
71
- // &:hover {
72
- // transition: all 0.2s ease-in-out;
73
- // background-color: var(--colors-gray-modern-950);
74
- // }
75
- // &:active {
76
- // transition: all 0.2s ease-in-out;
77
- // background-color: var(--colors-gray-neutral-600);
78
- // // background-color: var(--colors-gray-neutral-500);
79
- // }
80
- // &:visited,
81
- // &:focus {
82
- // transition: all 0.2s ease-in-out;
83
- // border-radius: var(--radius-4, 4px);
84
- // border: 2px solid var(--colors-base-black);
85
- // background-color: var(--colors-gray-neutral-600);
86
- // }
87
- // }
88
- // }
89
- // button {
90
- // cursor: pointer;
91
- // margin-inline: 3px;
92
- // background-color: var(--colors-gray-modern-950);
93
- // border-radius: 4px;
94
- // color: white;
95
- // &:hover {
96
- // transition: all 0.2s ease-in-out;
97
- // background-color: var(--colors-gray-modern-950);
98
- // }
99
- // &:active {
100
- // transition: all 0.2s ease-in-out;
101
- // background-color: var(--colors-gray-neutral-600);
102
- // // background-color: var(--colors-gray-neutral-500);
103
- // }
104
- // &:visited,
105
- // &:focus {
106
- // transition: all 0.2s ease-in-out;
107
- // border-radius: var(--radius-4, 4px);
108
- // border: 2px solid var(--colors-base-black);
109
- // background-color: var(--colors-gray-neutral-600);
110
- // }
111
- // }
112
- }
113
- }
114
- }
115
- }
116
- tbody {
117
- tr {
118
- &.alternate:nth-child(even):not(&:hover, &.row-selected) {
119
- transition: all 0.2s ease-in-out;
120
- background-color: var(--colors-gray-50);
121
- }
122
- &:hover {
123
- background-color: var(--colors-gray-neutral-100);
124
- }
125
- }
126
- tr.row-selected {
127
- background-color: var(--colors-brand-200);
128
- }
129
- // td:first-child {
130
- // width: 20px;
131
- // }
132
- td {
133
- height: 64px;
134
- color: var(--text-text-primary);
135
- padding: var(--spacing-md, 8px) var(--spacing-xl, 16px);
136
- @extend .text-md-regular;
137
- }
138
- }
139
- }
140
- }
141
- .table-contained {
142
- overflow: hidden; /* Optional */
143
- border-radius: var(--radius-md, 8px);
144
- border: 1px solid var(--colors-gray-neutral-300);
145
- padding: 0px;
146
- }
147
-
148
- .selected-cell {
149
- border: 3px solid var(--colors-brand-200);
150
- background: var(--Colors-Gray-neutral-950, #0d121c);
151
- }
152
-
153
- :is(html[lang="ar"], html[dir="rtl"]) .azm-table {
154
- direction: ltr;
155
- }