@finqu/cool 1.3.0 → 2.0.2

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 (74) hide show
  1. package/README.md +23 -9
  2. package/dist/css/cool.css +13391 -7742
  3. package/dist/css/cool.css.map +1 -1
  4. package/dist/css/cool.min.css +2 -93
  5. package/dist/css/cool.min.css.map +1 -1
  6. package/dist/js/cool.bundle.js +16051 -17050
  7. package/dist/js/cool.bundle.js.map +1 -1
  8. package/dist/js/cool.bundle.min.js +11 -18
  9. package/dist/js/cool.bundle.min.js.map +1 -1
  10. package/dist/js/cool.esm.js +3469 -4468
  11. package/dist/js/cool.esm.js.map +1 -1
  12. package/dist/js/cool.esm.min.js +2 -8
  13. package/dist/js/cool.esm.min.js.map +1 -1
  14. package/dist/js/cool.js +5083 -6089
  15. package/dist/js/cool.js.map +1 -1
  16. package/dist/js/cool.min.js +2 -8
  17. package/dist/js/cool.min.js.map +1 -1
  18. package/package.json +48 -16
  19. package/scss/LISENCE +15 -0
  20. package/scss/_badge.scss +134 -0
  21. package/scss/_button-group.scss +80 -0
  22. package/scss/_buttons.scss +304 -0
  23. package/scss/_dark.scss +637 -0
  24. package/scss/_dialog.scss +351 -0
  25. package/scss/_dropdown.scss +165 -0
  26. package/scss/_forms.scss +613 -0
  27. package/scss/_frame.scss +948 -0
  28. package/scss/_grid.scss +215 -0
  29. package/scss/_input-group.scss +326 -0
  30. package/scss/_list-group.scss +127 -0
  31. package/scss/_media.scss +439 -0
  32. package/scss/_navbar.scss +122 -0
  33. package/scss/_notification.scss +115 -0
  34. package/scss/_pagination.scss +82 -0
  35. package/scss/_popover.scss +61 -0
  36. package/scss/_reboot.scss +306 -0
  37. package/scss/_root.scss +848 -0
  38. package/scss/_section.scss +735 -0
  39. package/scss/_select.scss +559 -0
  40. package/scss/_tables.scss +611 -0
  41. package/scss/_tabs.scss +50 -0
  42. package/scss/_toast.scss +277 -0
  43. package/scss/_tooltip.scss +130 -0
  44. package/scss/_typography.scss +166 -0
  45. package/scss/_variables.scss +1229 -0
  46. package/scss/cool.scss +69 -0
  47. package/scss/utilities/_align.scss +51 -0
  48. package/scss/utilities/_animation.scss +165 -0
  49. package/scss/utilities/_background.scss +72 -0
  50. package/scss/utilities/_borders.scss +205 -0
  51. package/scss/utilities/_collapse.scss +28 -0
  52. package/scss/utilities/_cursor.scss +160 -0
  53. package/scss/utilities/_display.scss +116 -0
  54. package/scss/utilities/_embed.scss +89 -0
  55. package/scss/utilities/_fill.scss +79 -0
  56. package/scss/utilities/_filters.scss +233 -0
  57. package/scss/utilities/_flex.scss +216 -0
  58. package/scss/utilities/_grid.scss +136 -0
  59. package/scss/utilities/_opacity.scss +131 -0
  60. package/scss/utilities/_overflow.scss +242 -0
  61. package/scss/utilities/_perfect-scrollbar.scss +147 -0
  62. package/scss/utilities/_pointer-events.scss +125 -0
  63. package/scss/utilities/_position.scss +130 -0
  64. package/scss/utilities/_screen-readers.scss +95 -0
  65. package/scss/utilities/_shadows.scss +195 -0
  66. package/scss/utilities/_sizing.scss +288 -0
  67. package/scss/utilities/_spacing.scss +168 -0
  68. package/scss/utilities/_stroke.scss +124 -0
  69. package/scss/utilities/_text.scss +420 -0
  70. package/scss/utilities/_transform.scss +232 -0
  71. package/scss/utilities/_transitions.scss +147 -0
  72. package/scss/utilities/_user-select.scss +93 -0
  73. package/scss/utilities/_visibility.scss +66 -0
  74. package/scss/utilities/_z-index.scss +169 -0
@@ -0,0 +1,420 @@
1
+ @use "../variables" as *;
2
+ @use "sass:map";
3
+ @use "sass:math";
4
+ /* Text Utilities ========================================================================== */
5
+
6
+ @mixin cool-text {
7
+ .text-xs {
8
+ font-size: var(--cool-font-size-xs);
9
+ }
10
+
11
+ .font-size-sm,
12
+ .text-sm {
13
+ font-size: var(--cool-font-size-sm);
14
+ }
15
+
16
+ .text-base {
17
+ font-size: var(--cool-font-size-base);
18
+ }
19
+
20
+ .font-size-lg,
21
+ .text-lg {
22
+ font-size: var(--cool-font-size-lg);
23
+ }
24
+
25
+ .text-xl {
26
+ font-size: 1.25rem;
27
+ }
28
+
29
+ .text-2xl {
30
+ font-size: 1.5rem;
31
+ }
32
+
33
+ .text-3xl {
34
+ font-size: 1.875rem;
35
+ }
36
+
37
+ .text-4xl {
38
+ font-size: 2.25rem;
39
+ }
40
+
41
+ .text-5xl {
42
+ font-size: 3rem;
43
+ }
44
+
45
+ .text-6xl {
46
+ font-size: 3.75rem;
47
+ }
48
+
49
+ .text-7xl {
50
+ font-size: 4.5rem;
51
+ }
52
+
53
+ .text-8xl {
54
+ font-size: 6rem;
55
+ }
56
+
57
+ .text-9xl {
58
+ font-size: 8rem;
59
+ }
60
+
61
+ @each $breakpoint in map.keys($grid-breakpoints) {
62
+ @include media-breakpoint-up($breakpoint) {
63
+ $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
64
+
65
+ .text#{$infix}-xs {
66
+ font-size: var(--cool-font-size-xs);
67
+ }
68
+
69
+ .text#{$infix}-sm {
70
+ font-size: var(--cool-font-size-sm);
71
+ }
72
+
73
+ .text#{$infix}-base {
74
+ font-size: var(--cool-font-size-base);
75
+ }
76
+
77
+ .text#{$infix}-lg {
78
+ font-size: var(--cool-font-size-lg);
79
+ }
80
+
81
+ .text#{$infix}-xl {
82
+ font-size: 1.25rem;
83
+ }
84
+
85
+ .text#{$infix}-2xl {
86
+ font-size: 1.5rem;
87
+ }
88
+
89
+ .text#{$infix}-3xl {
90
+ font-size: 1.875rem;
91
+ }
92
+
93
+ .text#{$infix}-4xl {
94
+ font-size: 2.25rem;
95
+ }
96
+
97
+ .text#{$infix}-5xl {
98
+ font-size: 3rem;
99
+ }
100
+ }
101
+ }
102
+
103
+ .antialiased {
104
+ -webkit-font-smoothing: antialiased;
105
+ -moz-osx-font-smoothing: grayscale;
106
+ }
107
+
108
+ .subpixel-antialiased {
109
+ -webkit-font-smoothing: auto;
110
+ -moz-osx-font-smoothing: auto;
111
+ }
112
+
113
+ .normal-nums {
114
+ font-variant-numeric: normal;
115
+ }
116
+
117
+ .ordinal {
118
+ font-variant-numeric: ordinal;
119
+ }
120
+
121
+ .slashed-zero {
122
+ font-variant-numeric: slashed-zero;
123
+ }
124
+
125
+ .lining-nums {
126
+ font-variant-numeric: lining-nums;
127
+ }
128
+
129
+ .oldstyle-nums {
130
+ font-variant-numeric: oldstyle-nums;
131
+ }
132
+
133
+ .proportional-nums {
134
+ font-variant-numeric: proportional-nums;
135
+ }
136
+
137
+ .tabular-nums {
138
+ font-variant-numeric: tabular-nums;
139
+ }
140
+
141
+ .diagonal-fractions {
142
+ font-variant-numeric: diagonal-fractions;
143
+ }
144
+
145
+ .stacked-fractions {
146
+ font-variant-numeric: stacked-fractions;
147
+ }
148
+
149
+ .font-feature-normal {
150
+ font-feature-settings: normal;
151
+ }
152
+
153
+ .font-feature-small-caps {
154
+ font-feature-settings: "smcp";
155
+ }
156
+
157
+ .font-feature-ligatures {
158
+ font-feature-settings: "liga";
159
+ }
160
+
161
+ .font-feature-no-ligatures {
162
+ font-feature-settings: "liga" 0;
163
+ }
164
+
165
+ .font-feature-discretionary {
166
+ font-feature-settings: "dlig";
167
+ }
168
+
169
+ .font-feature-contextual {
170
+ font-feature-settings: "calt";
171
+ }
172
+
173
+ @supports (font-variation-settings: normal) {
174
+ .font-weight-variable {
175
+ font-variation-settings: "wght" var(--cool-font-weight-normal);
176
+ }
177
+
178
+ .font-width-variable {
179
+ font-variation-settings: "wdth" var(--font-width);
180
+ }
181
+
182
+ .font-slant-variable {
183
+ font-variation-settings: "slnt" var(--font-slant);
184
+ }
185
+ }
186
+
187
+ .text-rendering-auto {
188
+ text-rendering: auto;
189
+ }
190
+
191
+ .text-rendering-speed {
192
+ text-rendering: optimizeSpeed;
193
+ }
194
+
195
+ .text-rendering-legibility {
196
+ text-rendering: optimizeLegibility;
197
+ }
198
+
199
+ .text-rendering-precision {
200
+ text-rendering: geometricPrecision;
201
+ }
202
+
203
+ .font-kerning-normal {
204
+ font-kerning: normal;
205
+ }
206
+
207
+ .font-kerning-none {
208
+ font-kerning: none;
209
+ }
210
+
211
+ .font-kerning-auto {
212
+ font-kerning: auto;
213
+ }
214
+
215
+ @each $breakpoint in map.keys($grid-breakpoints) {
216
+ @include media-breakpoint-up($breakpoint) {
217
+ $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
218
+
219
+ .text#{$infix}-left,
220
+ .text#{$infix}-start {
221
+ text-align: start !important;
222
+ }
223
+
224
+ .text#{$infix}-right,
225
+ .text#{$infix}-end {
226
+ text-align: end !important;
227
+ }
228
+
229
+ .text#{$infix}-center {
230
+ text-align: center !important;
231
+ }
232
+
233
+ .text#{$infix}-justify {
234
+ text-align: justify;
235
+ hyphens: auto;
236
+ }
237
+ }
238
+ }
239
+
240
+ .text-lowercase {
241
+ text-transform: lowercase;
242
+ }
243
+
244
+ .text-uppercase {
245
+ text-transform: uppercase;
246
+ }
247
+
248
+ .text-capitalize {
249
+ text-transform: capitalize;
250
+ }
251
+
252
+ .text-transform-none {
253
+ text-transform: none;
254
+ }
255
+
256
+ .text-underline {
257
+ text-decoration: underline;
258
+ }
259
+
260
+ .text-line-through {
261
+ text-decoration: line-through;
262
+ }
263
+
264
+ .text-decoration-none {
265
+ text-decoration: none;
266
+ }
267
+
268
+ .fw-light,
269
+ .font-weight-light {
270
+ font-weight: var(--cool-font-weight-light);
271
+ }
272
+
273
+ .fw-lighter,
274
+ .font-weight-lighter {
275
+ font-weight: var(--cool-font-weight-lighter);
276
+ }
277
+
278
+ .fw-normal,
279
+ .font-weight-normal {
280
+ font-weight: var(--cool-font-weight-normal);
281
+ }
282
+
283
+ .fw-bold,
284
+ .font-weight-bold {
285
+ font-weight: var(--cool-font-weight-bold);
286
+ }
287
+
288
+ .fw-bolder,
289
+ .font-weight-bolder {
290
+ font-weight: var(--cool-font-weight-bolder);
291
+ }
292
+
293
+ @each $color, $value in $theme-text-colors {
294
+ .text-#{$color} {
295
+ color: var(--cool-theme-text-color-#{$color});
296
+ }
297
+ }
298
+
299
+ @each $color, $value in $theme-foreground-colors {
300
+ .text-foreground-#{$color} {
301
+ color: var(--cool-theme-foreground-color-#{$color});
302
+ }
303
+ }
304
+
305
+ .text-wrap {
306
+ white-space: normal;
307
+ }
308
+
309
+ .text-nowrap {
310
+ white-space: nowrap;
311
+ }
312
+
313
+ .text-break {
314
+ word-wrap: break-word;
315
+ word-break: break-word;
316
+ overflow-wrap: break-word;
317
+ }
318
+
319
+ .text-truncate {
320
+ overflow: hidden;
321
+ text-overflow: ellipsis;
322
+ white-space: nowrap;
323
+ }
324
+
325
+ @for $i from 1 through 5 {
326
+ .text-truncate-#{$i} {
327
+ display: -webkit-box;
328
+ -webkit-box-orient: vertical;
329
+ -webkit-line-clamp: $i;
330
+ line-clamp: $i;
331
+ overflow: hidden;
332
+ text-overflow: ellipsis;
333
+
334
+ @supports (display: -webkit-box) and (-webkit-line-clamp: $i) {
335
+ line-clamp: $i;
336
+ }
337
+ }
338
+ }
339
+
340
+ .font-italic {
341
+ font-style: italic;
342
+ }
343
+
344
+ .font-normal {
345
+ font-style: normal;
346
+ }
347
+
348
+ .font-monospace,
349
+ .monospace {
350
+ font-family: var(--cool-font-family-monospace);
351
+ }
352
+
353
+ .font-sans-serif {
354
+ font-family: var(--cool-font-family-sans-serif);
355
+ }
356
+
357
+ .letter-spacing-0 {
358
+ letter-spacing: 0;
359
+ }
360
+
361
+ .letter-spacing-1 {
362
+ letter-spacing: 0.0625rem;
363
+ }
364
+
365
+ .letter-spacing-2 {
366
+ letter-spacing: 0.125rem;
367
+ }
368
+
369
+ .letter-spacing-3 {
370
+ letter-spacing: 0.25rem;
371
+ }
372
+
373
+ .tracking-tighter {
374
+ letter-spacing: -0.05em;
375
+ }
376
+
377
+ .tracking-tight {
378
+ letter-spacing: -0.025em;
379
+ }
380
+
381
+ .tracking-normal {
382
+ letter-spacing: 0;
383
+ }
384
+
385
+ .tracking-wide {
386
+ letter-spacing: 0.025em;
387
+ }
388
+
389
+ .tracking-wider {
390
+ letter-spacing: 0.05em;
391
+ }
392
+
393
+ .tracking-widest {
394
+ letter-spacing: 0.1em;
395
+ }
396
+
397
+ .lh-1 {
398
+ line-height: 1;
399
+ }
400
+
401
+ .lh-sm {
402
+ line-height: 1.25;
403
+ }
404
+
405
+ .lh-base {
406
+ line-height: var(--cool-line-height-base);
407
+ }
408
+
409
+ .lh-lg {
410
+ line-height: 2;
411
+ }
412
+ }
413
+
414
+ @if $cool-use-utilities-layer {
415
+ @layer utilities {
416
+ @include cool-text;
417
+ }
418
+ } @else {
419
+ @include cool-text;
420
+ }
@@ -0,0 +1,232 @@
1
+ @use "../variables" as *;
2
+ /* Transform ========================================================================== */
3
+
4
+ @mixin cool-transform {
5
+ .transform {
6
+ transform: translateX(var(--cool-translate-x, 0)) translateY(var(--cool-translate-y, 0))
7
+ rotate(var(--cool-rotate, 0)) scaleX(var(--cool-scale-x, 1)) scaleY(var(--cool-scale-y, 1))
8
+ skewX(var(--cool-skew-x, 0)) skewY(var(--cool-skew-y, 0));
9
+ }
10
+ .transform-none {
11
+ transform: none;
12
+ }
13
+
14
+ .scale-0 {
15
+ --cool-scale-x: 0;
16
+ --cool-scale-y: 0;
17
+ }
18
+ .scale-50 {
19
+ --cool-scale-x: 0.5;
20
+ --cool-scale-y: 0.5;
21
+ }
22
+ .scale-75 {
23
+ --cool-scale-x: 0.75;
24
+ --cool-scale-y: 0.75;
25
+ }
26
+ .scale-90 {
27
+ --cool-scale-x: 0.9;
28
+ --cool-scale-y: 0.9;
29
+ }
30
+ .scale-95 {
31
+ --cool-scale-x: 0.95;
32
+ --cool-scale-y: 0.95;
33
+ }
34
+ .scale-100 {
35
+ --cool-scale-x: 1;
36
+ --cool-scale-y: 1;
37
+ }
38
+ .scale-105 {
39
+ --cool-scale-x: 1.05;
40
+ --cool-scale-y: 1.05;
41
+ }
42
+ .scale-110 {
43
+ --cool-scale-x: 1.1;
44
+ --cool-scale-y: 1.1;
45
+ }
46
+ .scale-125 {
47
+ --cool-scale-x: 1.25;
48
+ --cool-scale-y: 1.25;
49
+ }
50
+ .scale-150 {
51
+ --cool-scale-x: 1.5;
52
+ --cool-scale-y: 1.5;
53
+ }
54
+
55
+ .scale-x-0 {
56
+ --cool-scale-x: 0;
57
+ }
58
+ .scale-x-50 {
59
+ --cool-scale-x: 0.5;
60
+ }
61
+ .scale-x-75 {
62
+ --cool-scale-x: 0.75;
63
+ }
64
+ .scale-x-90 {
65
+ --cool-scale-x: 0.9;
66
+ }
67
+ .scale-x-95 {
68
+ --cool-scale-x: 0.95;
69
+ }
70
+ .scale-x-100 {
71
+ --cool-scale-x: 1;
72
+ }
73
+ .scale-x-105 {
74
+ --cool-scale-x: 1.05;
75
+ }
76
+ .scale-x-110 {
77
+ --cool-scale-x: 1.1;
78
+ }
79
+ .scale-x-125 {
80
+ --cool-scale-x: 1.25;
81
+ }
82
+ .scale-x-150 {
83
+ --cool-scale-x: 1.5;
84
+ }
85
+
86
+ .scale-y-0 {
87
+ --cool-scale-y: 0;
88
+ }
89
+ .scale-y-50 {
90
+ --cool-scale-y: 0.5;
91
+ }
92
+ .scale-y-75 {
93
+ --cool-scale-y: 0.75;
94
+ }
95
+ .scale-y-90 {
96
+ --cool-scale-y: 0.9;
97
+ }
98
+ .scale-y-95 {
99
+ --cool-scale-y: 0.95;
100
+ }
101
+ .scale-y-100 {
102
+ --cool-scale-y: 1;
103
+ }
104
+ .scale-y-105 {
105
+ --cool-scale-y: 1.05;
106
+ }
107
+ .scale-y-110 {
108
+ --cool-scale-y: 1.1;
109
+ }
110
+ .scale-y-125 {
111
+ --cool-scale-y: 1.25;
112
+ }
113
+ .scale-y-150 {
114
+ --cool-scale-y: 1.5;
115
+ }
116
+
117
+ .rotate-0 {
118
+ --cool-rotate: 0deg;
119
+ }
120
+ .rotate-45 {
121
+ --cool-rotate: 45deg;
122
+ }
123
+ .rotate-90 {
124
+ --cool-rotate: 90deg;
125
+ }
126
+ .rotate-180 {
127
+ --cool-rotate: 180deg;
128
+ }
129
+ .-rotate-45 {
130
+ --cool-rotate: -45deg;
131
+ }
132
+ .-rotate-90 {
133
+ --cool-rotate: -90deg;
134
+ }
135
+ .-rotate-180 {
136
+ --cool-rotate: -180deg;
137
+ }
138
+
139
+ @each $name, $size in $spacers {
140
+ .translate-x-#{$name} {
141
+ --cool-translate-x: #{$size};
142
+ }
143
+ .translate-y-#{$name} {
144
+ --cool-translate-y: #{$size};
145
+ }
146
+ .-translate-x-#{$name} {
147
+ --cool-translate-x: -#{$size};
148
+ }
149
+ .-translate-y-#{$name} {
150
+ --cool-translate-y: -#{$size};
151
+ }
152
+ }
153
+
154
+ .translate-x-full {
155
+ --cool-translate-x: 100%;
156
+ }
157
+ .translate-y-full {
158
+ --cool-translate-y: 100%;
159
+ }
160
+ .-translate-x-full {
161
+ --cool-translate-x: -100%;
162
+ }
163
+ .-translate-y-full {
164
+ --cool-translate-y: -100%;
165
+ }
166
+
167
+ .origin-center {
168
+ transform-origin: center;
169
+ }
170
+ .origin-top {
171
+ transform-origin: top;
172
+ }
173
+ .origin-top-right {
174
+ transform-origin: top right;
175
+ }
176
+ .origin-right {
177
+ transform-origin: right;
178
+ }
179
+ .origin-bottom-right {
180
+ transform-origin: bottom right;
181
+ }
182
+ .origin-bottom {
183
+ transform-origin: bottom;
184
+ }
185
+ .origin-bottom-left {
186
+ transform-origin: bottom left;
187
+ }
188
+ .origin-left {
189
+ transform-origin: left;
190
+ }
191
+ .origin-top-left {
192
+ transform-origin: top left;
193
+ }
194
+
195
+ .transform-style-flat {
196
+ transform-style: flat;
197
+ }
198
+ .transform-style-3d {
199
+ transform-style: preserve-3d;
200
+ }
201
+
202
+ .backface-visible {
203
+ backface-visibility: visible;
204
+ }
205
+ .backface-hidden {
206
+ backface-visibility: hidden;
207
+ }
208
+
209
+ .perspective-none {
210
+ perspective: none;
211
+ }
212
+ .perspective-sm {
213
+ perspective: 250px;
214
+ }
215
+ .perspective-md {
216
+ perspective: 500px;
217
+ }
218
+ .perspective-lg {
219
+ perspective: 1000px;
220
+ }
221
+ .perspective-xl {
222
+ perspective: 1500px;
223
+ }
224
+ }
225
+
226
+ @if $cool-use-utilities-layer {
227
+ @layer utilities {
228
+ @include cool-transform;
229
+ }
230
+ } @else {
231
+ @include cool-transform;
232
+ }