@julseb-lib/react 0.1.10 → 0.1.12

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 (117) hide show
  1. package/dist/index.css +61 -117
  2. package/dist/julseb-lib-react.cjs.js +12 -12
  3. package/dist/julseb-lib-react.es.js +1868 -1794
  4. package/dist/julseb-lib-react.umd.js +12 -12
  5. package/dist/lib/Variables.ts +20 -19
  6. package/dist/lib/components/Accordion/Accordion.tsx +1 -1
  7. package/dist/lib/components/Accordion/AccordionContent.tsx +2 -2
  8. package/dist/lib/components/Accordion/AccordionTitle.tsx +4 -3
  9. package/dist/lib/components/Alert/Alert.tsx +2 -2
  10. package/dist/lib/components/Autocomplete/Autocomplete.tsx +1 -1
  11. package/dist/lib/components/Avatar/Avatar.tsx +3 -7
  12. package/dist/lib/components/BackToTop/BackToTop.tsx +4 -3
  13. package/dist/lib/components/Badge/Badge.tsx +1 -1
  14. package/dist/lib/components/Breadcrumbs/Breadcrumbs.tsx +1 -1
  15. package/dist/lib/components/Burger/Burger.tsx +11 -4
  16. package/dist/lib/components/Button/Button.tsx +5 -4
  17. package/dist/lib/components/ButtonGroup/ButtonGroup.tsx +4 -2
  18. package/dist/lib/components/ButtonIcon/ButtonFn.tsx +3 -1
  19. package/dist/lib/components/ButtonIcon/ButtonIcon.tsx +9 -2
  20. package/dist/lib/components/CodeContainer/CodeContainer.tsx +5 -5
  21. package/dist/lib/components/Cover/Cover.tsx +1 -1
  22. package/dist/lib/components/DragList/DragList.tsx +1 -1
  23. package/dist/lib/components/DragList/DragListItem.tsx +4 -3
  24. package/dist/lib/components/Drawer/Drawer.tsx +1 -1
  25. package/dist/lib/components/Dropdown/Dropdown.tsx +1 -1
  26. package/dist/lib/components/Fade/Fade.tsx +4 -4
  27. package/dist/lib/components/Fieldset/Fieldset.tsx +2 -2
  28. package/dist/lib/components/Footer/Footer.tsx +103 -0
  29. package/dist/lib/components/Footer/index.ts +1 -0
  30. package/dist/lib/components/Footer/types.ts +54 -0
  31. package/dist/lib/components/Form/Form.tsx +1 -1
  32. package/dist/lib/components/Header/Header.tsx +15 -6
  33. package/dist/lib/components/Header/types.ts +1 -1
  34. package/dist/lib/components/Image/Image.tsx +1 -1
  35. package/dist/lib/components/Input/Input.tsx +2 -2
  36. package/dist/lib/components/Input/templates/ColorInput.tsx +4 -0
  37. package/dist/lib/components/InputCheck/InputCheck.tsx +2 -2
  38. package/dist/lib/components/InputComponents/InputButton.tsx +7 -2
  39. package/dist/lib/components/InputComponents/classes.ts +1 -1
  40. package/dist/lib/components/InputContainer/InputContainer.tsx +1 -1
  41. package/dist/lib/components/InputCounter/InputCounter.tsx +2 -2
  42. package/dist/lib/components/InputImage/InputImage.tsx +1 -1
  43. package/dist/lib/components/InputPhone/InputPhone.tsx +1 -1
  44. package/dist/lib/components/InputPin/InputPin.tsx +3 -1
  45. package/dist/lib/components/InputSlider/InputSlider.tsx +1 -1
  46. package/dist/lib/components/Key/Key.tsx +2 -2
  47. package/dist/lib/components/ListGroup/ListGroup.tsx +1 -1
  48. package/dist/lib/components/ListGroup/ListGroupItem.tsx +1 -1
  49. package/dist/lib/components/ListGroup/ListGroupTitle.tsx +1 -1
  50. package/dist/lib/components/Loader/Loader.tsx +1 -1
  51. package/dist/lib/components/Loader/templates/LoaderOne.tsx +1 -1
  52. package/dist/lib/components/Loader/templates/LoaderThree.tsx +3 -3
  53. package/dist/lib/components/Loader/templates/LoaderTwo.tsx +2 -2
  54. package/dist/lib/components/MarkdownContainer/MarkdownContainer.tsx +2 -2
  55. package/dist/lib/components/Meta/Meta.tsx +125 -0
  56. package/dist/lib/components/Meta/index.ts +1 -0
  57. package/dist/lib/components/Meta/types.ts +35 -0
  58. package/dist/lib/components/Modal/Modal.tsx +1 -1
  59. package/dist/lib/components/PageLayout/PageLayout.tsx +64 -0
  60. package/dist/lib/components/PageLayout/index.ts +1 -0
  61. package/dist/lib/components/PageLayout/types.ts +29 -0
  62. package/dist/lib/components/PageLoading/PageLoading.tsx +1 -1
  63. package/dist/lib/components/Pagination/Pagination.tsx +1 -1
  64. package/dist/lib/components/Pagination/PaginationButton.tsx +1 -1
  65. package/dist/lib/components/Paginator/Paginator.tsx +1 -1
  66. package/dist/lib/components/ProgressBar/ProgressBar.tsx +4 -7
  67. package/dist/lib/components/ProgressBar/types.ts +1 -1
  68. package/dist/lib/components/ProgressCircle/ProgressCircle.tsx +7 -3
  69. package/dist/lib/components/ProgressCircle/types.ts +1 -2
  70. package/dist/lib/components/Rating/Rating.tsx +1 -1
  71. package/dist/lib/components/Select/Select.tsx +1 -1
  72. package/dist/lib/components/Skeleton/Skeleton.tsx +5 -2
  73. package/dist/lib/components/Skeleton/SkeletonCard.tsx +4 -1
  74. package/dist/lib/components/Slideshow/Slideshow.tsx +1 -1
  75. package/dist/lib/components/Slideshow/SlideshowPagination.tsx +1 -1
  76. package/dist/lib/components/SrOnly/SrOnly.tsx +33 -0
  77. package/dist/lib/components/SrOnly/index.ts +1 -0
  78. package/dist/lib/components/SrOnly/types.ts +7 -0
  79. package/dist/lib/components/Sticky/Sticky.tsx +8 -8
  80. package/dist/lib/components/Table/Table.tsx +8 -5
  81. package/dist/lib/components/Tabs/Tabs.tsx +1 -1
  82. package/dist/lib/components/Tabs/TabsButton.tsx +4 -2
  83. package/dist/lib/components/Tabs/TabsButtonsContainer.tsx +1 -1
  84. package/dist/lib/components/Tabs/TabsContainer.tsx +1 -1
  85. package/dist/lib/components/Tabs/TabsContent.tsx +1 -1
  86. package/dist/lib/components/Tag/Tag.tsx +1 -1
  87. package/dist/lib/components/Text/templates/Blockquote.tsx +1 -1
  88. package/dist/lib/components/Text/templates/Dl.tsx +1 -1
  89. package/dist/lib/components/Text/templates/H1.tsx +2 -2
  90. package/dist/lib/components/Text/templates/H2.tsx +2 -2
  91. package/dist/lib/components/Text/templates/H3.tsx +2 -2
  92. package/dist/lib/components/Text/templates/H4.tsx +2 -2
  93. package/dist/lib/components/Text/templates/H5.tsx +2 -2
  94. package/dist/lib/components/Text/templates/H6.tsx +1 -1
  95. package/dist/lib/components/Text/templates/Ol.tsx +1 -1
  96. package/dist/lib/components/Text/templates/P.tsx +1 -1
  97. package/dist/lib/components/Text/templates/Small.tsx +1 -1
  98. package/dist/lib/components/Text/templates/Ul.tsx +1 -1
  99. package/dist/lib/components/Toast/Toast.tsx +5 -4
  100. package/dist/lib/components/Tooltip/Tooltip.tsx +29 -22
  101. package/dist/lib/components/Wrapper/Wrapper.tsx +1 -1
  102. package/dist/lib/index.css +61 -117
  103. package/dist/lib/index.ts +4 -1
  104. package/dist/lib/types/components-items-props.ts +1 -24
  105. package/dist/lib/types/components-props.ts +4 -1
  106. package/dist/lib/types/global.ts +11 -13
  107. package/dist/lib/utils/design-tokens.ts +2 -7
  108. package/dist/lib/utils/gen-gap.ts +21 -21
  109. package/dist/lib/utils/gen-ring-color.ts +21 -0
  110. package/dist/lib/utils/index.ts +1 -0
  111. package/package.json +3 -3
  112. package/dist/lib/components/IconMenu/IconMenu.module.css +0 -239
  113. package/dist/lib/components/IconMenu/IconMenu.tsx +0 -101
  114. package/dist/lib/components/IconMenu/IconMenuItem.tsx +0 -53
  115. package/dist/lib/components/IconMenu/index.ts +0 -1
  116. package/dist/lib/components/IconMenu/types.ts +0 -48
  117. package/dist/react.css +0 -1
package/dist/index.css CHANGED
@@ -2,6 +2,12 @@
2
2
  @import "tailwindcss";
3
3
  /* @custom-variant dark (&:where(.dark, .dark *)); */
4
4
 
5
+ :root {
6
+ --font-lato: "Lato", sans-serif;
7
+ --font-sans: var(--font-lato);
8
+ --font-mono: monospace;
9
+ }
10
+
5
11
  @theme {
6
12
  --color-primary-50: var(--color-blue-50);
7
13
  --color-primary-100: var(--color-blue-100);
@@ -73,12 +79,6 @@
73
79
  --color-background: var(--color-white);
74
80
  --color-font: var(--color-black);
75
81
 
76
- --font-lato:
77
- "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
78
- sans-serif;
79
- --font-family-body: var(--font-lato);
80
- --font-family-code: monospace;
81
-
82
82
  --font-weight-thin: 100;
83
83
  --font-weight-light: 300;
84
84
  --font-weight-normal: 400;
@@ -100,7 +100,16 @@
100
100
  rgba(255, 255, 255, 0.35) 100%
101
101
  );
102
102
 
103
- --rounded-full: calc(infinity * 1px);
103
+ --font-sans: var(--font-lato);
104
+ --font-mono: monospace;
105
+
106
+ --spacer-2xs: 4px;
107
+ --spacer-xs: 8px;
108
+ --spacer-sm: 12px;
109
+ --spacer-md: 16px;
110
+ --spacer-lg: 24px;
111
+ --spacer-xl: 32px;
112
+ --spacer-2xl: 48px;
104
113
 
105
114
  --main-default: 600px;
106
115
  --main-large: 800px;
@@ -109,64 +118,54 @@
109
118
  --aside-default: 250px;
110
119
  --aside-small: 200px;
111
120
 
112
- --shadow-2xl:
113
- 0px 10px 14px 8px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.3);
114
- --shadow-xl:
115
- 0px 8px 12px 6px rgba(0, 0, 0, 0.15), 0px 4px 4px rgba(0, 0, 0, 0.3);
116
- --shadow-lg:
117
- 0px 6px 10px 4px rgba(0, 0, 0, 0.15), 0px 2px 3px rgba(0, 0, 0, 0.3);
118
- --shadow-md:
119
- 0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px rgba(0, 0, 0, 0.3);
120
- --shadow-sm:
121
- 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
121
+ --shadow-2xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
122
122
  --shadow-xs:
123
123
  0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
124
- --shadow-2xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
124
+ --shadow-sm:
125
+ 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
126
+ --shadow-md:
127
+ 0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px rgba(0, 0, 0, 0.3);
128
+ --shadow-lg:
129
+ 0px 6px 10px 4px rgba(0, 0, 0, 0.15), 0px 2px 3px rgba(0, 0, 0, 0.3);
130
+ --shadow-xl:
131
+ 0px 8px 12px 6px rgba(0, 0, 0, 0.15), 0px 4px 4px rgba(0, 0, 0, 0.3);
132
+ --shadow-2xl:
133
+ 0px 10px 14px 8px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.3);
125
134
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.06);
126
135
  --shadow-none: none;
127
136
 
128
- --spacer-2xs: 4px;
129
- --spacer-xs: 8px;
130
- --spacer-sm: 12px;
131
- --spacer-md: 16px;
132
- --spacer-lg: 24px;
133
- --spacer-xl: 32px;
134
- --spacer-2xl: 48px;
135
-
136
137
  --animate-cubic-bezier: cubic-bezier(0.5, 0, 0.5, 1);
137
138
 
138
- --font-size-display-h1: 5rem;
139
- --font-size-display-h2: 4rem;
140
- --font-size-display-h3: 3.5rem;
141
- --font-size-display-h4: 3rem;
142
- --font-size-display-h5: 2.5rem;
143
- --font-size-h1: 2.5rem;
144
- --font-size-h2: 2rem;
145
- --font-size-h3: 1.8rem;
146
- --font-size-h4: 1.5rem;
147
- --font-size-h5: 1.3rem;
148
- --font-size-h6: 1.1rem;
149
- --font-size-body: 1rem;
150
- --font-size-small: 0.875rem;
151
- }
152
-
153
- @layer base {
154
- html,
155
- body {
156
- font-family: var(--font-family-body);
157
- }
139
+ --transition-short: all 200ms ease;
140
+ --transition-long: all 500ms ease;
141
+ --transition-bezier: all 500ms cubic-bezier(0.25, 0.75, 0, 0.66);
142
+
143
+ --text-display-h1: 5rem;
144
+ --text-display-h2: 4rem;
145
+ --text-display-h3: 3.5rem;
146
+ --text-display-h4: 3rem;
147
+ --text-display-h5: 2.5rem;
148
+ --text-h1: 2.5rem;
149
+ --text-h2: 2rem;
150
+ --text-h3: 1.8rem;
151
+ --text-h4: 1.5rem;
152
+ --text-h5: 1.3rem;
153
+ --text-h6: 1.1rem;
154
+ --text-body: 1rem;
155
+ --text-small: 0.875rem;
158
156
  }
159
157
 
160
158
  /*====================== Common styles ======================*/
161
159
 
162
160
  html,
163
161
  body {
164
- font-family: var(--font-family-body) !important;
162
+ font-family: var(--font-sans);
165
163
  width: 100%;
166
164
  min-height: 100vh;
167
165
  background-color: var(--color-background);
168
166
  color: var(--color-font);
169
167
  max-width: 100dvw;
168
+ line-height: var(--leading-normal);
170
169
 
171
170
  &.dark {
172
171
  --color-background: var(--color-black);
@@ -181,7 +180,7 @@ body {
181
180
  a,
182
181
  button {
183
182
  cursor: pointer;
184
- transition: all 200ms ease;
183
+ transition: var(--transition-short);
185
184
 
186
185
  &:disabled {
187
186
  cursor: not-allowed;
@@ -195,73 +194,73 @@ button {
195
194
  max-width: 100%;
196
195
  }
197
196
 
198
- .no-scrollbar::-webkit-scrollbar {
199
- display: none;
200
- }
201
-
202
197
  .no-scrollbar {
203
198
  -ms-overflow-style: none;
204
199
  scrollbar-width: none;
200
+
201
+ &::-webkit-scrollbar {
202
+ display: none;
203
+ }
205
204
  }
206
205
 
207
206
  /*====================== Fonts ======================*/
208
207
 
209
208
  .lato-thin {
210
- font-family: var(--font-family-body);
209
+ font-family: var(--font-sans);
211
210
  font-weight: var(--font-weight-thin);
212
211
  font-style: normal;
213
212
  }
214
213
 
215
214
  .lato-light {
216
- font-family: var(--font-family-body);
215
+ font-family: var(--font-sans);
217
216
  font-weight: var(--font-weight-light);
218
217
  font-style: normal;
219
218
  }
220
219
 
221
220
  .lato-regular {
222
- font-family: var(--font-family-body);
221
+ font-family: var(--font-sans);
223
222
  font-weight: var(--font-weight-normal);
224
223
  font-style: normal;
225
224
  }
226
225
 
227
226
  .lato-bold {
228
- font-family: var(--font-family-body);
227
+ font-family: var(--font-sans);
229
228
  font-weight: var(--font-weight-bold);
230
229
  font-style: normal;
231
230
  }
232
231
 
233
232
  .lato-black {
234
- font-family: var(--font-family-body);
233
+ font-family: var(--font-sans);
235
234
  font-weight: var(--font-weight-black);
236
235
  font-style: normal;
237
236
  }
238
237
 
239
238
  .lato-thin-italic {
240
- font-family: var(--font-family-body);
239
+ font-family: var(--font-sans);
241
240
  font-weight: var(--font-weight-thin);
242
241
  font-style: italic;
243
242
  }
244
243
 
245
244
  .lato-light-italic {
246
- font-family: var(--font-family-body);
245
+ font-family: var(--font-sans);
247
246
  font-weight: var(--font-weight-light);
248
247
  font-style: italic;
249
248
  }
250
249
 
251
250
  .lato-regular-italic {
252
- font-family: var(--font-family-body);
251
+ font-family: var(--font-sans);
253
252
  font-weight: var(--font-weight-normal);
254
253
  font-style: italic;
255
254
  }
256
255
 
257
256
  .lato-bold-italic {
258
- font-family: var(--font-family-body);
257
+ font-family: var(--font-sans);
259
258
  font-weight: var(--font-weight-bold);
260
259
  font-style: italic;
261
260
  }
262
261
 
263
262
  .lato-black-italic {
264
- font-family: var(--font-family-body);
263
+ font-family: var(--font-sans);
265
264
  font-weight: var(--font-weight-black);
266
265
  font-style: italic;
267
266
  }
@@ -360,24 +359,6 @@ button {
360
359
  }
361
360
  }
362
361
 
363
- .animate-shine {
364
- position: relative;
365
- overflow: hidden;
366
-
367
- &:before {
368
- content: "";
369
- position: absolute;
370
- top: -200px;
371
- bottom: -200px;
372
- background-color: var(--color-white);
373
- opacity: 0.7;
374
- filter: blur(20px);
375
- width: 100px;
376
- transform: skew(-15deg);
377
- animation: shine 2000ms ease-in-out infinite;
378
- }
379
- }
380
-
381
362
  @keyframes spin {
382
363
  from {
383
364
  transform: rotate(0deg);
@@ -388,15 +369,6 @@ button {
388
369
  }
389
370
  }
390
371
 
391
- .animate-spin {
392
- animation: spin 1200ms linear infinite;
393
- }
394
-
395
- .animate-bezier {
396
- animation: spin 1200ms var(--animate-cubic-bezier) infinite;
397
- animation-delay: var(--spinner-delay);
398
- }
399
-
400
372
  @keyframes loader-pulse {
401
373
  0%,
402
374
  100% {
@@ -408,30 +380,6 @@ button {
408
380
  }
409
381
  }
410
382
 
411
- .dot {
412
- animation: loader-pulse 1200ms linear infinite;
413
- animation-delay: var(--dot-delay);
414
- }
415
-
416
- input::-webkit-slider-thumb {
417
- box-shadow: var(--shadow-lg);
418
- }
419
-
420
- @keyframes toast-timer-animation {
421
- 0% {
422
- width: 100%;
423
- }
424
-
425
- 100% {
426
- width: 0;
427
- }
428
- }
429
-
430
- .toast-timer {
431
- animation: toast-timer-animation var(--toast-timer-duration) linear
432
- forwards;
433
- }
434
-
435
383
  .Toastify__progress-bar--bg {
436
384
  background-color: transparent !important;
437
385
  }
@@ -445,8 +393,4 @@ button {
445
393
  width: var(--meter-value);
446
394
  }
447
395
  }
448
-
449
- .progress-bar-animated:before {
450
- animation: progress-bar calc(var(--progress-speed) * 50ms) ease forwards;
451
- }
452
396
  }