uplord-ui 0.1.32 → 0.2.0

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 (46) hide show
  1. package/dist/.next/dev/types/validator.d.ts +1 -0
  2. package/dist/.next/types/validator.d.ts +1 -0
  3. package/dist/index.cjs.js +13 -1
  4. package/dist/index.css +1 -0
  5. package/dist/index.d.ts +2 -1
  6. package/dist/index.es.js +3341 -26
  7. package/dist/next.config.d.ts +3 -0
  8. package/dist/src/app/fonts.d.ts +2 -0
  9. package/dist/src/app/layout.d.ts +3 -0
  10. package/dist/src/app/page.d.ts +1 -0
  11. package/dist/src/components/Button/Button.d.ts +33 -0
  12. package/dist/src/components/Button/Button.stories.d.ts +11 -0
  13. package/dist/src/components/Button/index.d.ts +2 -0
  14. package/dist/src/components/Icon/Icon.d.ts +11 -0
  15. package/dist/src/components/Icon/Icon.stories.d.ts +6 -0
  16. package/dist/src/components/Icon/index.d.ts +2 -0
  17. package/dist/src/components/Test/Test.d.ts +1 -0
  18. package/dist/src/components/Test/index.d.ts +1 -0
  19. package/dist/src/context/NiceModalProvider.d.ts +4 -0
  20. package/dist/src/context/ThemeProvider.d.ts +7 -0
  21. package/dist/src/index.d.ts +2 -0
  22. package/dist/src/lib/color.d.ts +7 -0
  23. package/dist/src/lib/icons.d.ts +4 -0
  24. package/dist/src/types/block.d.ts +62 -0
  25. package/dist/src/types/system.d.ts +14 -0
  26. package/dist/tsconfig.build.tsbuildinfo +1 -0
  27. package/dist/vite.config.d.ts +2 -0
  28. package/package.json +35 -102
  29. package/dist/Rating-B0YCJQG5.js +0 -40571
  30. package/dist/Rating-tHGOSSCk.cjs +0 -7854
  31. package/dist/apple.png +0 -0
  32. package/dist/components/index.d.ts +0 -25
  33. package/dist/components.cjs.js +0 -1
  34. package/dist/components.es.js +0 -28
  35. package/dist/favicon.svg +0 -4
  36. package/dist/lib/index.d.ts +0 -2
  37. package/dist/lib.cjs.js +0 -1
  38. package/dist/lib.es.js +0 -332
  39. package/dist/styles/forward.scss +0 -3
  40. package/dist/styles/mixins.scss +0 -331
  41. package/dist/styles/typography.scss +0 -71
  42. package/dist/styles/variables.scss +0 -76
  43. package/dist/title.svg +0 -1
  44. package/dist/uplord-ui.css +0 -1
  45. package/dist/useMounted-DXrSfiau.cjs +0 -1
  46. package/dist/useMounted-L5oHFr3N.js +0 -11
@@ -1,331 +0,0 @@
1
- @use 'sass:color';
2
- @use './variables' as *;
3
- @use './typography' as *;
4
-
5
- @mixin dark-mode {
6
- :global(.dark) & {
7
- @content;
8
- }
9
-
10
- .dark & {
11
- @content;
12
- }
13
- }
14
-
15
- @mixin light-mode {
16
- :global(.light) & {
17
- @content;
18
- }
19
-
20
- .light & {
21
- @content;
22
- }
23
- }
24
-
25
- @mixin container {
26
- display: flex;
27
- max-width: $width-max;
28
- flex-direction: column;
29
- padding: 0 1.5rem;
30
- margin: 0 auto;
31
- gap: 1.5rem;
32
-
33
- @media (min-width: $breakpoint-md) {
34
- gap: 2rem;
35
- }
36
- }
37
-
38
- $color-tooltip: #0d0d0d;
39
- $color-tooltip-text: #fff;
40
- $color-tooltip-dark: #fff;
41
- $color-tooltip-text-dark: #000;
42
-
43
- @mixin toolbar {
44
- &:hover::after {
45
- position: absolute;
46
- top: 100%;
47
- left: 50%;
48
- padding: 0.325rem 1rem;
49
- border-radius: 0.5rem;
50
- margin-top: -1rem;
51
- background-color: $color-tooltip;
52
- color: $color-tooltip-text;
53
- content: attr(data-tooltip);
54
- opacity: 1;
55
- transform: translateX(-50%);
56
- transition:
57
- opacity 0.2s ease,
58
- visibility 0.2s ease;
59
- visibility: visible;
60
- white-space: nowrap;
61
-
62
- @include dark-mode {
63
- background-color: $color-tooltip-dark;
64
- color: $color-tooltip-text-dark;
65
- }
66
- }
67
-
68
- &:hover::before {
69
- position: absolute;
70
- top: 100%;
71
- left: 50%;
72
- width: 0;
73
- height: 0;
74
- border-width: 0 6px 6px;
75
- border-style: solid;
76
- border-color: transparent transparent $color-tooltip;
77
- margin-top: -1.375rem;
78
- content: '';
79
- opacity: 1;
80
- transform: translate(-50%);
81
- transition:
82
- opacity 0.2s ease,
83
- visibility 0.2s ease;
84
- visibility: visible;
85
-
86
- @include dark-mode {
87
- border-color: transparent transparent $color-tooltip-dark;
88
- }
89
- }
90
-
91
- &::before,
92
- &::after {
93
- display: none;
94
- opacity: 0;
95
- visibility: hidden;
96
-
97
- @media (min-width: $breakpoint-md) {
98
- display: block;
99
- }
100
- }
101
- }
102
-
103
- @mixin skeleton-text {
104
- .skeleton,
105
- &.skeleton {
106
- border-color: transparent;
107
- animation: pulse 1.5s infinite alternate;
108
- background-color: rgb(0 0 0 / 10%);
109
- color: transparent;
110
- pointer-events: none;
111
- transition: opacity 0.3s ease-in-out;
112
- user-select: none;
113
-
114
- @include dark-mode {
115
- background-color: rgb(255 255 255 / 10%);
116
- color: transparent;
117
- }
118
-
119
- &:not(.button, .nav, .icon) {
120
- border-radius: 0.5rem;
121
- }
122
- }
123
- }
124
-
125
- @mixin skeleton-image {
126
- .skeleton {
127
- position: absolute;
128
- width: 100%;
129
- height: 100%;
130
- border-radius: inherit;
131
- animation: pulse 1.5s infinite alternate;
132
- background-color: rgb(0 0 0 / 10%);
133
- transition: all 0.3s ease-in-out;
134
-
135
- @include dark-mode {
136
- background-color: rgb(255 255 255 / 10%);
137
- }
138
- }
139
- }
140
-
141
- @keyframes pulse {
142
- 0% {
143
- opacity: 0.6;
144
- }
145
-
146
- 50% {
147
- opacity: 1;
148
- }
149
-
150
- 100% {
151
- opacity: 0.6;
152
- }
153
- }
154
-
155
- @mixin text-content {
156
- display: grid;
157
- gap: 0.5rem;
158
-
159
- h2 {
160
- @include text-2xl;
161
- @include text-bold;
162
-
163
- @media (min-width: $breakpoint-md) {
164
- @include text-2xl;
165
- }
166
-
167
- @media (min-width: $breakpoint-lg) {
168
- @include text-3xl;
169
- }
170
- }
171
-
172
- h3 {
173
- @include text-lg;
174
- @include text-bold;
175
-
176
- @media (min-width: $breakpoint-md) {
177
- @include text-lg;
178
- }
179
-
180
- @media (min-width: $breakpoint-lg) {
181
- @include text-xl;
182
- }
183
- }
184
-
185
- h4 {
186
- @include text-md;
187
- @include text-bold;
188
-
189
- @media (min-width: $breakpoint-md) {
190
- @include text-md;
191
- }
192
-
193
- @media (min-width: $breakpoint-lg) {
194
- @include text-lg;
195
- }
196
- }
197
-
198
- p {
199
- @include text-md;
200
- @include text-normal;
201
-
202
- @media (min-width: $breakpoint-md) {
203
- @include text-md;
204
- }
205
-
206
- @media (min-width: $breakpoint-lg) {
207
- @include text-lg;
208
- }
209
- }
210
-
211
- ol {
212
- padding-left: 1.5rem;
213
- list-style-type: decimal;
214
- }
215
-
216
- ul {
217
- padding-left: 1.5rem;
218
- list-style-type: disc;
219
- }
220
-
221
- li {
222
- @include text-md;
223
- @include text-normal;
224
-
225
- & {
226
- margin-bottom: 0.5rem;
227
-
228
- &:last-child {
229
- margin-bottom: 0;
230
- }
231
- }
232
-
233
- @media (min-width: $breakpoint-md) {
234
- @include text-lg;
235
- }
236
-
237
- @media (min-width: $breakpoint-lg) {
238
- @include text-lg;
239
- }
240
- }
241
-
242
- hr {
243
- border-color: $color-border;
244
- margin: 0;
245
-
246
- @include dark-mode {
247
- border-color: $color-border-dark;
248
- }
249
- }
250
- }
251
-
252
- $color-loading-01: color.change($color-dark, $alpha: 0.15);
253
- $color-loading-02: color.change($color-dark, $alpha: 0.25);
254
- $color-loading-03: color.change($color-dark, $alpha: 0.35);
255
- $color-loading-01-dark: color.change($color-light, $alpha: 0.15);
256
- $color-loading-02-dark: color.change($color-light, $alpha: 0.25);
257
- $color-loading-03-dark: color.change($color-light, $alpha: 0.35);
258
-
259
- @keyframes loading {
260
- 0% {
261
- background: $color-loading-02;
262
- box-shadow:
263
- 0.875rem 0 $color-loading-01,
264
- -0.875rem 0 $color-loading-03;
265
- }
266
-
267
- 33% {
268
- background: $color-loading-03;
269
- box-shadow:
270
- 0.875rem 0 $color-loading-02,
271
- -0.875rem 0 $color-loading-01;
272
- }
273
-
274
- 66% {
275
- background: $color-loading-01;
276
- box-shadow:
277
- 0.875rem 0 $color-loading-03,
278
- -0.875rem 0 $color-loading-02;
279
- }
280
-
281
- 100% {
282
- background: $color-loading-02;
283
- box-shadow:
284
- 0.875rem 0 $color-loading-01,
285
- -0.875rem 0 $color-loading-03;
286
- }
287
- }
288
-
289
- @keyframes loading-dark {
290
- 0% {
291
- background: $color-loading-02-dark;
292
- box-shadow:
293
- 0.875rem 0 $color-loading-01-dark,
294
- -0.875rem 0 $color-loading-03-dark;
295
- }
296
-
297
- 33% {
298
- background: $color-loading-03-dark;
299
- box-shadow:
300
- 0.875rem 0 $color-loading-02-dark,
301
- -0.875rem 0 $color-loading-01-dark;
302
- }
303
-
304
- 66% {
305
- background: $color-loading-01-dark;
306
- box-shadow:
307
- 0.875rem 0 $color-loading-03-dark,
308
- -0.875rem 0 $color-loading-02-dark;
309
- }
310
-
311
- 100% {
312
- background: $color-loading-02-dark;
313
- box-shadow:
314
- 0.875rem 0 $color-loading-01-dark,
315
- -0.875rem 0 $color-loading-03-dark;
316
- }
317
- }
318
-
319
- @keyframes pulse {
320
- 0% {
321
- opacity: 0.6;
322
- }
323
-
324
- 50% {
325
- opacity: 1;
326
- }
327
-
328
- 100% {
329
- opacity: 0.6;
330
- }
331
- }
@@ -1,71 +0,0 @@
1
- @mixin text-xxs {
2
- font-size: 0.625rem; // 10px
3
- letter-spacing: -0.01rem;
4
- line-height: 0.75rem; // 16px
5
- }
6
-
7
- @mixin text-xs {
8
- font-size: 0.75rem; // 12px
9
- letter-spacing: -0.01rem;
10
- line-height: 1rem; // 16px
11
- }
12
-
13
- @mixin text-sm {
14
- font-size: 0.875rem; // 14px
15
- letter-spacing: -0.0175rem;
16
- line-height: 1.25rem; // 20px
17
- }
18
-
19
- @mixin text-md {
20
- font-size: 1rem; // 16px
21
- letter-spacing: -0.02rem;
22
- line-height: 1.5rem; // 24px
23
- }
24
-
25
- @mixin text-xm {
26
- font-size: 1.125rem; // 18px
27
- letter-spacing: -0.0225rem;
28
- line-height: 1.675rem; // 26px
29
- }
30
-
31
- @mixin text-lg {
32
- font-size: 1.25rem; // 20px
33
- letter-spacing: -0.025rem;
34
- line-height: 1.75rem; // 28px
35
- }
36
-
37
- @mixin text-xl {
38
- font-size: 1.5rem; // 24px
39
- letter-spacing: -0.03rem;
40
- line-height: 2rem; // 32px
41
- }
42
-
43
- @mixin text-2xl {
44
- font-size: 2rem; // 32px
45
- letter-spacing: -0.04rem;
46
- line-height: 2.5rem; // 40px
47
- }
48
-
49
- @mixin text-3xl {
50
- font-size: 2.5rem; // 40px
51
- letter-spacing: -0.05rem;
52
- line-height: 3rem; // 48px
53
- }
54
-
55
- @mixin text-4xl {
56
- font-size: 3rem; // 48px
57
- letter-spacing: -0.06rem;
58
- line-height: 3.5rem; // 56px
59
- }
60
-
61
- @mixin text-normal {
62
- font-weight: normal;
63
- }
64
-
65
- @mixin text-semibold {
66
- font-weight: 600;
67
- }
68
-
69
- @mixin text-bold {
70
- font-weight: 700;
71
- }
@@ -1,76 +0,0 @@
1
- @use 'sass:color';
2
-
3
- $font-heading: 'Inter', arial, sans-serif;
4
- $font-body: 'Nunito', arial, sans-serif;
5
- $width-max: 1432px;
6
- $width-xl: 2032px;
7
- $breakpoint-sm: 400px;
8
- $breakpoint-md: 744px;
9
- $breakpoint-lg: 1024px;
10
- $breakpoint-xl: 2032px;
11
- $color-light: hsl(0deg 0% 100%);
12
- $color-dark: hsl(0deg 0% 5%);
13
- $header-height: 4.875rem;
14
- $nav-height: 4.375rem;
15
-
16
- // Light mode
17
-
18
- // Background
19
- $color-bg: hsl(0deg 0% 100%);
20
- $color-bg-02: hsl(0deg 0% 95%);
21
- $color-border: hsl(0deg 0% 80%);
22
- $color-border-02: hsl(0deg 0% 90%);
23
-
24
- // Text/icon
25
- $color-heading: hsl(0deg 0% 5%);
26
- $color-body: hsl(0deg 0% 30%);
27
- $color-placeholder: hsl(0deg 0% 80%);
28
- $color-icon: hsl(0deg 0% 30%);
29
-
30
- // Input
31
- $color-input: hsl(0deg 0% 30%);
32
- $color-hover: hsl(0deg 0% 95%);
33
- $color-disabled: hsl(0deg 0% 90%);
34
- $color-loading: hsl(0deg 0% 95%);
35
- $color-skeleton: hsl(0deg 0% 90%);
36
- $color-focus: hsl(0deg 0% 5%);
37
-
38
- // Dark mode
39
-
40
- // Background
41
- $color-bg-dark: hsl(0deg 0% 5%);
42
- $color-bg-02-dark: hsl(0deg 0% 10%);
43
- $color-border-dark: hsl(0deg 0% 25%);
44
- $color-border-02-dark: hsl(0deg 0% 20%);
45
-
46
- // Text/icon
47
- $color-heading-dark: hsl(0deg 0% 95%);
48
- $color-body-dark: hsl(0deg 0% 70%);
49
- $color-placeholder-dark: hsl(0deg 0% 25%);
50
- $color-icon-dark: hsl(0deg 0% 70%);
51
-
52
- // Input
53
- $color-input-dark: hsl(0deg 0% 5%);
54
- $color-hover-dark: hsl(0deg 0% 10%);
55
- $color-disabled-dark: hsl(0deg 0% 15%);
56
- $color-loading-dark: hsl(0deg 0% 10%);
57
- $color-skeleton-dark: hsl(0deg 0% 15%);
58
- $color-focus-dark: hsl(0deg 0% 95%);
59
-
60
- // Colors
61
- $color-primary: hsl(0deg 80% 50%);
62
- $color-success: hsl(142deg 76% 36%);
63
- $color-error: hsl(355deg 75% 40%);
64
- $color-error-02: hsl(0deg 80% 95%);
65
- $color-error-03: hsl(355deg 75% 5%);
66
- $color-warning: hsl(38deg 92% 50%);
67
- $color-info: hsl(213deg 85% 43%);
68
- $color-rebecca: hsl(270deg 50% 40%);
69
-
70
- // Other
71
- $color-header: $color-info;
72
- $color-header-dark: $color-bg-dark;
73
- $color-nav: hsl(213deg 85% 33%);
74
- $color-nav-skeleton: hsl(213deg 85% 33%);
75
- $color-nav-dark: hsl(0deg 0% 15%);
76
- $color-header-text: $color-light;
package/dist/title.svg DELETED
@@ -1 +0,0 @@
1
- <svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 40" width="160" height="40"><defs><image width="40" height="40" id="img1" href="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiByeD0iNCIgZmlsbD0iI2ZmZiIvPgo8cGF0aCBkPSJNOS43OTQgMjlWMTAuOEgxMy45OEwxOS41NDQgMjIuMTYyTDI1LjA1NiAxMC44SDI5LjI0MlYyOUgyNS43MzJWMTYuNzhMMjAuOTIyIDI2LjQ1MkgxOC4xNEwxMy4zMDQgMTYuNzhWMjlIOS43OTRaIiBmaWxsPSIjZGQyMTIxIi8+Cjwvc3ZnPgo="/></defs><style>.a{fill:#fff}</style><use href="#img1" transform="matrix(1,0,0,1,0,0)"/><path class="a" d="m60.3 12.5v9.4c0 2.2-1.4 3.7-3.9 3.7-2.4 0-3.9-1.5-3.9-3.7v-9.4h-1.7v9.6c0 3 2.2 5.2 5.6 5.2 3.5 0 5.7-2.2 5.7-5.2v-9.6zm5 18.6h1.7v-5.8h0.2c0.3 0.6 1 1.9 3.1 1.9 2.8 0 4.7-2.2 4.7-5.6 0-3.5-1.9-5.7-4.7-5.7-2.1 0-2.8 1.4-3.1 1.9h-0.2v-1.7h-1.7zm1.7-9.6c0-2.4 1.1-4 3.1-4 2.1 0 3.2 1.7 3.2 4 0 2.4-1.1 4.2-3.2 4.2-2 0-3.1-1.7-3.1-4.2zm12.2-9h-1.7v14.5h1.7zm7.5 14.8c3 0 4.9-2.3 4.9-5.7 0-3.4-1.9-5.6-4.9-5.6-3 0-4.9 2.2-4.9 5.6 0 3.4 1.9 5.7 4.9 5.7zm0-1.5c-2.2 0-3.3-2-3.3-4.2 0-2.1 1.1-4.1 3.3-4.1 2.2 0 3.3 2 3.3 4.1 0 2.2-1.1 4.2-3.3 4.2zm7.5 1.2h1.7v-6.9c0-1.4 1.1-2.5 2.7-2.5 0.5 0 0.9 0.1 1.1 0.1v-1.7c-0.2 0-0.7 0-0.9 0-1.3 0-2.5 0.7-2.9 1.8h-0.1v-1.7h-1.6zm11.2 0.3c2.1 0 2.8-1.3 3.2-1.9h0.2v1.6h1.6v-14.5h-1.7v5.4h-0.1c-0.4-0.6-1-1.9-3.1-1.9-2.8 0-4.7 2.2-4.7 5.6 0 3.5 1.9 5.7 4.6 5.7zm0.3-1.5c-2.1 0-3.2-1.9-3.2-4.2 0-2.3 1-4.1 3.2-4.1 2 0 3.1 1.6 3.1 4.1 0 2.5-1.1 4.2-3.1 4.2zm23.4-13.3v9.5c0 2.1-1.4 3.6-3.9 3.6-2.4 0-3.9-1.5-3.9-3.6v-9.5h-1.7v9.6c0 3 2.2 5.2 5.6 5.2 3.5 0 5.7-2.2 5.7-5.2v-9.6zm7 0h-1.7v14.5h1.7z"/></svg>