@cityway/basic-ui 1.0.2-beta020 → 1.0.2-beta022

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 (65) hide show
  1. package/cityway-basic-ui-1.0.2-beta022.tgz +0 -0
  2. package/fesm2022/cityway-basic-ui.mjs +1024 -75
  3. package/fesm2022/cityway-basic-ui.mjs.map +1 -1
  4. package/img/flags.png +0 -0
  5. package/img/flags.webp +0 -0
  6. package/img/flags@2x.png +0 -0
  7. package/img/flags@2x.webp +0 -0
  8. package/index.d.ts +387 -13
  9. package/lib/assets/i18n/common.en.json +3 -1
  10. package/lib/assets/i18n/common.fr.json +3 -1
  11. package/lib/assets/icons/sprite.svg +3 -1
  12. package/package.json +6 -2
  13. package/styles/basic-ui.styles.bo.min.css +1 -1
  14. package/styles/basic-ui.styles.bo.min.css.map +1 -1
  15. package/styles/basic-ui.styles.fo.min.css +1 -1
  16. package/styles/basic-ui.styles.fo.min.css.map +1 -1
  17. package/cityway-basic-ui-1.0.2-beta020.tgz +0 -0
  18. package/lib/assets/styles/scss/_reboot.scss +0 -494
  19. package/lib/assets/styles/scss/_root-bo.scss +0 -10
  20. package/lib/assets/styles/scss/_root-fo.scss +0 -14
  21. package/lib/assets/styles/scss/basic-ui.styles.bo.scss +0 -48
  22. package/lib/assets/styles/scss/basic-ui.styles.fo.scss +0 -48
  23. package/lib/assets/styles/scss/components/_accordion.scss +0 -35
  24. package/lib/assets/styles/scss/components/_alert.scss +0 -78
  25. package/lib/assets/styles/scss/components/_badge.scss +0 -111
  26. package/lib/assets/styles/scss/components/_btn-collapse.scss +0 -23
  27. package/lib/assets/styles/scss/components/_card.scss +0 -87
  28. package/lib/assets/styles/scss/components/_close.scss +0 -11
  29. package/lib/assets/styles/scss/components/_dropdown.scss +0 -90
  30. package/lib/assets/styles/scss/components/_file-to-download.scss +0 -46
  31. package/lib/assets/styles/scss/components/_icon-notification.scss +0 -30
  32. package/lib/assets/styles/scss/components/_icon.scss +0 -138
  33. package/lib/assets/styles/scss/components/_modal.scss +0 -165
  34. package/lib/assets/styles/scss/components/_numerical-range.scss +0 -60
  35. package/lib/assets/styles/scss/components/_stepper.scss +0 -78
  36. package/lib/assets/styles/scss/components/_toast.scss +0 -27
  37. package/lib/assets/styles/scss/components/_tooltip.scss +0 -35
  38. package/lib/assets/styles/scss/components/button/_button-bo-variant.scss +0 -112
  39. package/lib/assets/styles/scss/components/button/_button-fo-variant.scss +0 -57
  40. package/lib/assets/styles/scss/components/button/_button.scss +0 -126
  41. package/lib/assets/styles/scss/components/form-field/_field-check.scss +0 -137
  42. package/lib/assets/styles/scss/components/form-field/_form-field.scss +0 -153
  43. package/lib/assets/styles/scss/components/form-field/_ng-select.scss +0 -93
  44. package/lib/assets/styles/scss/components/form-field/_slider-range.scss +0 -68
  45. package/lib/assets/styles/scss/components/tab/_tab-bo.scss +0 -95
  46. package/lib/assets/styles/scss/components/tab/_tab-fo.scss +0 -83
  47. package/lib/assets/styles/scss/helpers/_skeleton.scss +0 -67
  48. package/lib/assets/styles/scss/helpers/_spinner.scss +0 -36
  49. package/lib/assets/styles/scss/helpers/_stretched-link.scss +0 -9
  50. package/lib/assets/styles/scss/helpers/_visually-hidden.scss +0 -18
  51. package/lib/assets/styles/scss/mixins/_color.scss +0 -16
  52. package/lib/assets/styles/scss/mixins/_flex.scss +0 -11
  53. package/lib/assets/styles/scss/mixins/_popover-tooltip.scss +0 -144
  54. package/lib/assets/styles/scss/mixins/_root.scss +0 -26
  55. package/lib/assets/styles/scss/mixins/_spacing.scss +0 -84
  56. package/lib/assets/styles/scss/mixins/_type.scss +0 -44
  57. package/lib/assets/styles/scss/utilities/_alignment.scss +0 -23
  58. package/lib/assets/styles/scss/utilities/_breakpoints.scss +0 -30
  59. package/lib/assets/styles/scss/utilities/_flex.scss +0 -142
  60. package/lib/assets/styles/scss/utilities/_grid.scss +0 -64
  61. package/lib/assets/styles/scss/utilities/_position.scss +0 -24
  62. package/lib/assets/styles/scss/utilities/_spacing.scss +0 -3
  63. package/lib/assets/styles/scss/utilities/type/_type-bo.scss +0 -48
  64. package/lib/assets/styles/scss/utilities/type/_type-fo.scss +0 -132
  65. package/lib/assets/styles/scss/utilities/type/_type.scss +0 -20
@@ -1,494 +0,0 @@
1
-
2
- @use "@cityway/design-tokens/primitives" as p;
3
-
4
- // ============================================
5
- // REBOOT - Reset CSS
6
- // ============================================
7
- // Inspiré de Bootstrap Reboot, Normalize.css et modern-css-reset
8
-
9
- // ============================================
10
- // 1. DOCUMENT & BOX-SIZING
11
- // ============================================
12
-
13
- *,
14
- *::before,
15
- *::after {
16
- box-sizing: border-box;
17
- }
18
-
19
- // ============================================
20
- // 2. ROOT
21
- // ============================================
22
-
23
- :root {
24
- // Améliore la lisibilité du texte
25
- -webkit-text-size-adjust: 100%;
26
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
27
-
28
- // Smooth scrolling (optionnel, peut être désactivé pour certains users)
29
- @media (prefers-reduced-motion: no-preference) {
30
- scroll-behavior: smooth;
31
- }
32
- }
33
-
34
- // ============================================
35
- // 3. BODY
36
- // ============================================
37
-
38
- body {
39
- margin: 0;
40
- font-family: var(--#{p.$prefix}-body-ff-text, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
41
- font-size: var(--#{p.$prefix}-body-fs, 1rem);
42
- font-weight: var(--#{p.$prefix}-body-fw, 400);
43
- line-height: var(--#{p.$prefix}-body-lh, 1.5);
44
- color: var(--#{p.$prefix}-body-color, #212529);
45
- background-color: var(--#{p.$prefix}-body-bg, #fff);
46
- -webkit-font-smoothing: antialiased;
47
- -moz-osx-font-smoothing: grayscale;
48
- text-rendering: optimizeLegibility;
49
- }
50
-
51
- // ============================================
52
- // 4. TYPOGRAPHIE
53
- // ============================================
54
-
55
- // Reset des margins pour les headings et paragraphes
56
- h1, h2, h3, h4, h5, h6,
57
- p, blockquote, pre,
58
- dl, dd, ol, ul,
59
- figure, hr {
60
- margin: 0;
61
- margin-block: 0;
62
- }
63
-
64
- // Headings
65
- h1, h2, h3, h4, h5, h6 {
66
- margin-top: 0;
67
- margin-bottom: 0;
68
- font-weight: 600;
69
- line-height: 1.2;
70
- color: inherit;
71
- }
72
-
73
- // Paragraphes
74
- p {
75
- margin: 0;
76
- }
77
-
78
- // Listes
79
- ol, ul {
80
- padding-left: 2rem;
81
- margin-bottom: 0;
82
- }
83
-
84
- ol ol,
85
- ul ul,
86
- ol ul,
87
- ul ol {
88
- margin-bottom: 0;
89
- }
90
-
91
- // Supprimer les styles de liste par défaut
92
- .list-unstyled {
93
- list-style: none;
94
- padding: 0;
95
-
96
- ul {
97
- margin-left: 1.4rem;
98
- ul {
99
- margin-left: 1.4rem;
100
- ul {
101
- margin-left: 1.4rem;
102
- }
103
- }
104
- }
105
- }
106
-
107
- // Description lists
108
- dd {
109
- margin: 0;
110
- }
111
-
112
- // ============================================
113
- // 5. LIENS
114
- // ============================================
115
-
116
- a {
117
- color: var(--#{p.$prefix}-link-color, #0066cc);
118
- text-decoration: var(--#{p.$prefix}-link-decoration, underline);
119
- background-color: transparent;
120
-
121
- &:hover {
122
- color: var(--#{p.$prefix}-link-hover, #0052a3);
123
- text-decoration: none;
124
- }
125
- }
126
-
127
- // Liens sans href
128
- a:not([href]):not([class]) {
129
- &,
130
- &:hover {
131
- color: inherit;
132
- text-decoration: none;
133
- }
134
- }
135
-
136
- // ============================================
137
- // 6. CODE
138
- // ============================================
139
-
140
- pre,
141
- code,
142
- kbd,
143
- samp {
144
- font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
145
- font-size: 0.875em;
146
- }
147
-
148
- pre {
149
- display: block;
150
- margin-top: 0;
151
- margin-bottom: 1rem;
152
- overflow: auto;
153
- font-size: 0.875rem;
154
-
155
- code {
156
- font-size: inherit;
157
- color: inherit;
158
- word-break: normal;
159
- }
160
- }
161
-
162
- code {
163
- font-size: 0.875em;
164
- color: var(--code-color, #d63384);
165
- word-wrap: break-word;
166
- }
167
-
168
- kbd {
169
- padding: 0.1875rem 0.375rem;
170
- font-size: 0.875em;
171
- color: var(--kbd-color, #fff);
172
- background-color: var(--kbd-bg, #212529);
173
- border-radius: 0.25rem;
174
-
175
- kbd {
176
- padding: 0;
177
- font-size: 1em;
178
- }
179
- }
180
-
181
- // ============================================
182
- // 7. IMAGES ET MÉDIAS
183
- // ============================================
184
-
185
- img,
186
- svg,
187
- video,
188
- canvas,
189
- audio,
190
- iframe,
191
- embed,
192
- object {
193
- display: block;
194
- max-width: 100%;
195
- height: auto;
196
- vertical-align: middle;
197
- }
198
-
199
- img {
200
- border-style: none;
201
- }
202
-
203
- svg {
204
- overflow: hidden;
205
- }
206
-
207
- // ============================================
208
- // 8. TABLEAUX
209
- // ============================================
210
-
211
- table {
212
- caption-side: bottom;
213
- border-collapse: collapse;
214
- width: 100%;
215
- }
216
-
217
- caption {
218
- padding-top: 0.5rem;
219
- padding-bottom: 0.5rem;
220
- text-align: left;
221
- }
222
-
223
- th {
224
- text-align: inherit;
225
- text-align: -webkit-match-parent;
226
- }
227
-
228
- thead,
229
- tbody,
230
- tfoot,
231
- tr,
232
- td,
233
- th {
234
- border-color: inherit;
235
- border-style: solid;
236
- border-width: 0;
237
- }
238
-
239
- // ============================================
240
- // 9. FORMULAIRES
241
- // ============================================
242
-
243
- button,
244
- input,
245
- optgroup,
246
- select,
247
- textarea {
248
- margin: 0;
249
- font-family: inherit;
250
- font-size: inherit;
251
- line-height: inherit;
252
- }
253
-
254
- button,
255
- select {
256
- text-transform: none;
257
- }
258
-
259
- // Styles du bouton
260
- button,
261
- [type="button"],
262
- [type="reset"],
263
- [type="submit"] {
264
- appearance: none;
265
- -webkit-appearance: none;
266
- padding: 0;
267
- border: 0;
268
- cursor: pointer;
269
- background-color: transparent;
270
- background-image: none;
271
-
272
- &:not(:disabled) {
273
- cursor: pointer;
274
- }
275
- }
276
-
277
- // Reset du style natif pour les boutons
278
- button {
279
- border: none;
280
- padding: 0;
281
- background: none;
282
- font: inherit;
283
- color: inherit;
284
-
285
- &::-moz-focus-inner {
286
- border-style: none;
287
- padding: 0;
288
- }
289
- }
290
-
291
-
292
- // Désactiver le spinner pour les inputs number
293
- input[type="number"]::-webkit-inner-spin-button,
294
- input[type="number"]::-webkit-outer-spin-button {
295
- height: auto;
296
- }
297
-
298
- input[type="search"] {
299
- outline-offset: -2px;
300
- -webkit-appearance: textfield;
301
-
302
- &::-webkit-search-decoration {
303
- -webkit-appearance: none;
304
- }
305
- }
306
-
307
- // File input
308
- ::-webkit-file-upload-button {
309
- font: inherit;
310
- -webkit-appearance: button;
311
- }
312
-
313
- // Fieldset
314
- fieldset {
315
- min-width: 0;
316
- padding: 0;
317
- margin: 0;
318
- border: 0;
319
- }
320
-
321
- legend {
322
- padding: 0;
323
- margin-bottom: 0;
324
-
325
- + * {
326
- clear: left;
327
- }
328
- }
329
-
330
- // Label
331
- label {
332
- display: inline-block;
333
- }
334
-
335
- // ============================================
336
- // 10. ÉLÉMENTS INTERACTIFS
337
- // ============================================
338
-
339
- // Summary (details)
340
- summary {
341
- display: list-item;
342
- cursor: pointer;
343
- }
344
-
345
- // Progress
346
- progress {
347
- vertical-align: baseline;
348
- }
349
-
350
- // Hidden
351
- [hidden] {
352
- display: none !important;
353
- }
354
-
355
- // ============================================
356
- // 11. AUTRES ÉLÉMENTS
357
- // ============================================
358
-
359
- // HR
360
- hr {
361
- margin: 0;
362
- color: inherit;
363
- border: 0;
364
- border-top: 1px solid currentColor;
365
- opacity: 0.25;
366
- }
367
-
368
- // Blockquote
369
- blockquote {
370
- margin: 0;
371
- padding-left: 1rem;
372
- border-left: 0.25rem solid var(--border-color, #dee2e6);
373
- }
374
-
375
- // Abbr
376
- abbr[title] {
377
- text-decoration: underline dotted;
378
- cursor: help;
379
- text-decoration-skip-ink: none;
380
- }
381
-
382
- // Mark
383
- mark {
384
- padding: 0.1875em;
385
- background-color: var(--mark-bg, #fcf8e3);
386
- color: var(--mark-color, inherit);
387
- }
388
-
389
- // Small
390
- small {
391
- font-size: 0.875em;
392
- }
393
-
394
- // Sub et Sup
395
- sub,
396
- sup {
397
- position: relative;
398
- font-size: 0.75em;
399
- line-height: 0;
400
- vertical-align: baseline;
401
- }
402
-
403
- sub {
404
- bottom: -0.25em;
405
- }
406
-
407
- sup {
408
- top: -0.5em;
409
- }
410
-
411
- // ============================================
412
- // 12. ACCESSIBILITÉ
413
- // ============================================
414
-
415
- // Respecter les préférences d'animation
416
- @media (prefers-reduced-motion: reduce) {
417
- *,
418
- *::before,
419
- *::after {
420
- animation-duration: 0.01ms !important;
421
- animation-iteration-count: 1 !important;
422
- transition-duration: 0.01ms !important;
423
- scroll-behavior: auto !important;
424
- }
425
- }
426
-
427
- // Skip links pour l'accessibilité
428
- .skip-link {
429
- position: absolute;
430
- top: -40px;
431
- left: 0;
432
- background: #000;
433
- color: white;
434
- padding: 8px;
435
- text-decoration: none;
436
- z-index: 100;
437
-
438
- &:focus {
439
- top: 0;
440
- }
441
- }
442
-
443
- // ============================================
444
- // 13. PRINT
445
- // ============================================
446
-
447
- @media print {
448
- *,
449
- *::before,
450
- *::after {
451
- text-shadow: none !important;
452
- box-shadow: none !important;
453
- }
454
-
455
- a:not(.btn) {
456
- text-decoration: underline;
457
- }
458
-
459
- abbr[title]::after {
460
- content: " (" attr(title) ")";
461
- }
462
-
463
- pre {
464
- white-space: pre-wrap !important;
465
- border: 1px solid #adb5bd;
466
- page-break-inside: avoid;
467
- }
468
-
469
- thead {
470
- display: table-header-group;
471
- }
472
-
473
- tr,
474
- img {
475
- page-break-inside: avoid;
476
- }
477
-
478
- p,
479
- h2,
480
- h3 {
481
- orphans: 3;
482
- widows: 3;
483
- }
484
-
485
- h2,
486
- h3 {
487
- page-break-after: avoid;
488
- }
489
-
490
- // Hide elements not needed in print
491
- .no-print {
492
- display: none !important;
493
- }
494
- }
@@ -1,10 +0,0 @@
1
- @use "sass:map";
2
- @use "@cityway/design-tokens/primitives" as p;
3
- @use "@cityway/design-tokens/functions" as f;
4
- @use "@cityway/design-tokens/theme-mapping" as tm;
5
-
6
- :root, [data-cw-theme=cw-bo] {
7
- @include tm.generate-grid-vars(p.$grid);
8
- @include tm.generate-theme-colors(tm.$theme-bo-colors);
9
- @include tm.generate-theme-props(tm.$theme-bo-props);
10
- }
@@ -1,14 +0,0 @@
1
- @use "sass:map";
2
- @use "@cityway/design-tokens/primitives" as p;
3
- @use "@cityway/design-tokens/functions" as f;
4
- @use "@cityway/design-tokens/theme-mapping" as tm;
5
-
6
- :root, [data-cw-theme=cw-fo] {
7
- @include tm.generate-grid-vars(p.$grid);
8
- @include tm.generate-theme-colors(tm.$theme-fo-colors);
9
- @include tm.generate-theme-props(tm.$theme-fo-props);
10
-
11
- .alert {
12
- --#{p.$prefix}-alert-border: 0;
13
- }
14
- }
@@ -1,48 +0,0 @@
1
- @use "reboot";
2
- @use "root-bo";
3
-
4
- // Lib externes
5
- @use "@ng-select/ng-select/themes/default.theme.css";
6
-
7
- // Helpers
8
- @use "helpers/visually-hidden";
9
- @use "helpers/stretched-link";
10
- @use "helpers/spinner";
11
-
12
- // Components
13
- @use "components/accordion";
14
- @use "components/button/button";
15
- @use "components/button/button-bo-variant";
16
- @use "components/badge";
17
- @use "components/icon";
18
- @use "components/icon-notification";
19
- @use "components/alert";
20
- @use "components/toast";
21
- @use "components/close";
22
- @use "components/btn-collapse";
23
- @use "components/card";
24
- @use "components/tab/tab-bo";
25
- @use "components/stepper";
26
- @use "components/file-to-download";
27
- @use "components/numerical-range";
28
- @use "components/modal";
29
- @use "components/form-field/form-field";
30
- @use "components/tooltip";
31
- @use "components/dropdown";
32
-
33
- // Utilities
34
- @use "utilities/breakpoints";
35
- @use "utilities/grid";
36
- @use "utilities/flex";
37
- @use "utilities/spacing";
38
- @use "utilities/type/type";
39
- @use "utilities/type/type-bo";
40
- @use "utilities/alignment";
41
- @use "utilities/position";
42
-
43
- // En surcharge
44
- @use "helpers/skeleton";
45
-
46
- //## Import des fonts
47
- //--------------------------------------------------------
48
- @use "../../fonts/nunito/nunito";
@@ -1,48 +0,0 @@
1
- @use "reboot";
2
- @use "root-fo";
3
-
4
- // Lib externes
5
- @use "@ng-select/ng-select/themes/default.theme.css";
6
-
7
- // Helpers
8
- @use "helpers/visually-hidden";
9
- @use "helpers/stretched-link";
10
- @use "helpers/spinner";
11
-
12
- // Components
13
- @use "components/accordion";
14
- @use "components/button/button";
15
- @use "components/button/button-fo-variant";
16
- @use "components/badge";
17
- @use "components/icon";
18
- @use "components/icon-notification";
19
- @use "components/alert";
20
- @use "components/toast";
21
- @use "components/close";
22
- @use "components/btn-collapse";
23
- @use "components/card";
24
- @use "components/tab/tab-fo";
25
- @use "components/stepper";
26
- @use "components/file-to-download";
27
- @use "components/numerical-range";
28
- @use "components/modal";
29
- @use "components/form-field/form-field";
30
- @use "components/tooltip";
31
- @use "components/dropdown";
32
-
33
- // Utilities
34
- @use "utilities/breakpoints";
35
- @use "utilities/grid";
36
- @use "utilities/flex";
37
- @use "utilities/spacing";
38
- @use "utilities/type/type";
39
- @use "utilities/type/type-fo";
40
- @use "utilities/alignment";
41
- @use "utilities/position";
42
-
43
- // En surcharge
44
- @use "helpers/skeleton";
45
-
46
- //## Import des fonts
47
- //--------------------------------------------------------
48
- @use "../../fonts/nunito/nunito";
@@ -1,35 +0,0 @@
1
- @use "sass:map";
2
- @use "@cityway/design-tokens/primitives" as p;
3
- @use "@cityway/design-tokens/functions" as *;
4
-
5
- .accordion {
6
- --#{p.$prefix}-accordion-gap: #{size(md)};
7
-
8
- display: flex;
9
- flex-direction: column;
10
- gap: var(--#{p.$prefix}-accordion-gap);
11
-
12
- cw-card {
13
- .card {
14
- border-radius: 0;
15
- }
16
-
17
- &:only-child {
18
- .card {
19
- border-radius: var(--#{p.$prefix}-card-br);
20
- }
21
- }
22
-
23
- &:first-child:not(:only-child) {
24
- .card {
25
- border-radius: var(--#{p.$prefix}-card-br) 0 0;
26
- }
27
- }
28
-
29
- &:last-child:not(:only-child) {
30
- .card {
31
- border-radius: 0 0 var(--#{p.$prefix}-card-br) var(--#{p.$prefix}-card-br);
32
- }
33
- }
34
- }
35
- }