@cityway/basic-ui 1.0.2 → 1.1.0-beta002
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.
- package/README.md +1 -2
- package/cityway-basic-ui-1.1.0-beta001.tgz +0 -0
- package/cityway-basic-ui-1.1.0-beta002.tgz +0 -0
- package/docs/00-overview.md +137 -0
- package/docs/components/accordion.md +162 -0
- package/docs/components/alert.md +141 -0
- package/docs/components/autocomplete.md +233 -0
- package/docs/components/badge.md +145 -0
- package/docs/components/breadcrumb.md +133 -0
- package/docs/components/button.md +174 -0
- package/docs/components/card.md +175 -0
- package/docs/components/dropdown.md +140 -0
- package/docs/components/file-to-download.md +115 -0
- package/docs/components/form-field/README.md +218 -0
- package/docs/components/form-field/checkbox.md +76 -0
- package/docs/components/form-field/color.md +36 -0
- package/docs/components/form-field/date.md +87 -0
- package/docs/components/form-field/email.md +39 -0
- package/docs/components/form-field/file.md +51 -0
- package/docs/components/form-field/number.md +46 -0
- package/docs/components/form-field/password.md +41 -0
- package/docs/components/form-field/phone.md +55 -0
- package/docs/components/form-field/radio.md +55 -0
- package/docs/components/form-field/select.md +72 -0
- package/docs/components/form-field/slider-range.md +81 -0
- package/docs/components/form-field/text.md +43 -0
- package/docs/components/form-field/textarea.md +38 -0
- package/docs/components/form-field/zipcode.md +39 -0
- package/docs/components/icon-notification.md +108 -0
- package/docs/components/icon.md +187 -0
- package/docs/components/image.md +118 -0
- package/docs/components/language-selector.md +142 -0
- package/docs/components/legend.md +160 -0
- package/docs/components/loader.md +115 -0
- package/docs/components/modals.md +217 -0
- package/docs/components/numerical-range.md +174 -0
- package/docs/components/required-info.md +102 -0
- package/docs/components/skiplinks.md +122 -0
- package/docs/components/stepper.md +106 -0
- package/docs/components/tab.md +159 -0
- package/docs/components/theme-selector.md +159 -0
- package/docs/components/title.md +139 -0
- package/docs/components/toast.md +172 -0
- package/docs/components/tooltip.md +150 -0
- package/docs/for-claude.md +196 -0
- package/fesm2022/cityway-basic-ui.mjs +3323 -778
- package/fesm2022/cityway-basic-ui.mjs.map +1 -1
- package/img/flags.png +0 -0
- package/img/flags.webp +0 -0
- package/img/flags@2x.png +0 -0
- package/img/flags@2x.webp +0 -0
- package/index.d.ts +1675 -242
- package/lib/assets/fonts/nunito/_nunito.scss +10 -10
- package/lib/assets/i18n/common.en.json +34 -5
- package/lib/assets/i18n/common.fr.json +38 -8
- package/lib/assets/icons/sprite.ids.txt +514 -0
- package/lib/assets/icons/sprite.preview.html +5436 -0
- package/lib/assets/icons/sprite.svg +1547 -0
- package/package.json +16 -8
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +23 -0
- package/schematics/tsconfig.json +12 -0
- package/styles/basic-ui.styles.bo.min.css +1 -0
- package/styles/basic-ui.styles.bo.min.css.map +1 -0
- package/styles/basic-ui.styles.fo.min.css +1 -0
- package/styles/basic-ui.styles.fo.min.css.map +1 -0
- package/cityway-basic-ui-1.0.2.tgz +0 -0
- package/lib/assets/styles/scss/_components.scss +0 -14
- package/lib/assets/styles/scss/_custom-bootstrap.scss +0 -22
- package/lib/assets/styles/scss/bootstrap/_accordion.scss +0 -1
- package/lib/assets/styles/scss/bootstrap/_alert.scss +0 -32
- package/lib/assets/styles/scss/bootstrap/_badge.scss +0 -36
- package/lib/assets/styles/scss/bootstrap/_breadcrumb.scss +0 -46
- package/lib/assets/styles/scss/bootstrap/_button-group.scss +0 -107
- package/lib/assets/styles/scss/bootstrap/_buttons.scss +0 -324
- package/lib/assets/styles/scss/bootstrap/_card.scss +0 -107
- package/lib/assets/styles/scss/bootstrap/_close.scss +0 -8
- package/lib/assets/styles/scss/bootstrap/_dropdown.scss +0 -53
- package/lib/assets/styles/scss/bootstrap/_forms.scss +0 -259
- package/lib/assets/styles/scss/bootstrap/_input-group.scss +0 -61
- package/lib/assets/styles/scss/bootstrap/_lists.scss +0 -30
- package/lib/assets/styles/scss/bootstrap/_modal.scss +0 -152
- package/lib/assets/styles/scss/bootstrap/_pagination.scss +0 -21
- package/lib/assets/styles/scss/bootstrap/_popover.scss +0 -5
- package/lib/assets/styles/scss/bootstrap/_progress.scss +0 -6
- package/lib/assets/styles/scss/bootstrap/_reboot.scss +0 -5
- package/lib/assets/styles/scss/bootstrap/_tables.scss +0 -155
- package/lib/assets/styles/scss/bootstrap/_tabs.scss +0 -71
- package/lib/assets/styles/scss/bootstrap/_tooltip.scss +0 -3
- package/lib/assets/styles/scss/bootstrap/_type.scss +0 -55
- package/lib/assets/styles/scss/components/_forms-firefox.scss +0 -17
- package/lib/assets/styles/scss/components/_leaflet.scss +0 -41
- package/lib/assets/styles/scss/components/_legend.scss +0 -36
- package/lib/assets/styles/scss/components/_ng-select.scss +0 -148
- package/lib/assets/styles/scss/components/_ng2-dragula.scss +0 -36
- package/lib/assets/styles/scss/components/_ng2-validation.scss +0 -39
- package/lib/assets/styles/scss/components/_ng5-slider.scss +0 -28
- package/lib/assets/styles/scss/components/_ngb-datepicker.scss +0 -165
- package/lib/assets/styles/scss/components/_ngb-timepicker.scss +0 -19
- package/lib/assets/styles/scss/components/_ngx-chips.scss +0 -102
- package/lib/assets/styles/scss/components/_ngx-editor.scss +0 -10
- package/lib/assets/styles/scss/components/_ngx-file-drop.scss +0 -15
- package/lib/assets/styles/scss/components/_ngx-intl-tel-input.scss +0 -21
- package/lib/assets/styles/scss/components/_ngx-slider.scss +0 -34
- package/lib/assets/styles/scss/components/_ngx-toast.scss +0 -74
- package/lib/assets/styles/scss/components/_pwd-policy.scss +0 -18
- package/lib/assets/styles/scss/components/_table.scss +0 -8
- package/lib/assets/styles/scss/components/_vis.scss +0 -50
- package/lib/assets/styles/scss/components/_wizard-stepper.scss +0 -82
- package/lib/assets/styles/scss/components/table/_table-action.scss +0 -77
- package/lib/assets/styles/scss/components/table/_table-bg-cell.scss +0 -6
- package/lib/assets/styles/scss/components/table/_table-double-scroll.scss +0 -38
- package/lib/assets/styles/scss/components/table/_table-filter.scss +0 -128
- package/lib/assets/styles/scss/components/table/_table-pagination.scss +0 -34
- package/lib/assets/styles/scss/components/table/_table-popover.scss +0 -39
- package/lib/assets/styles/scss/components/table/_table-sorting.scss +0 -64
- package/lib/assets/styles/scss/cw-ds/_reboot.scss +0 -551
- package/lib/assets/styles/scss/cw-ds/_root-bo.scss +0 -9
- package/lib/assets/styles/scss/cw-ds/_root-fo.scss +0 -9
- package/lib/assets/styles/scss/cw-ds/components/_alert.scss +0 -76
- package/lib/assets/styles/scss/cw-ds/components/_badge.scss +0 -107
- package/lib/assets/styles/scss/cw-ds/components/_btn-collapse.scss +0 -15
- package/lib/assets/styles/scss/cw-ds/components/_card.scss +0 -66
- package/lib/assets/styles/scss/cw-ds/components/_close.scss +0 -6
- package/lib/assets/styles/scss/cw-ds/components/_file-to-download.scss +0 -46
- package/lib/assets/styles/scss/cw-ds/components/_icon-notification.scss +0 -30
- package/lib/assets/styles/scss/cw-ds/components/_icon.scss +0 -112
- package/lib/assets/styles/scss/cw-ds/components/_numerical-range.scss +0 -60
- package/lib/assets/styles/scss/cw-ds/components/_stepper.scss +0 -78
- package/lib/assets/styles/scss/cw-ds/components/_tab.scss +0 -81
- package/lib/assets/styles/scss/cw-ds/components/_toast.scss +0 -27
- package/lib/assets/styles/scss/cw-ds/components/button/_button-bo-variant.scss +0 -46
- package/lib/assets/styles/scss/cw-ds/components/button/_button-fo-variant.scss +0 -112
- package/lib/assets/styles/scss/cw-ds/components/button/_button.scss +0 -95
- package/lib/assets/styles/scss/cw-ds/helpers/_spinner.scss +0 -30
- package/lib/assets/styles/scss/cw-ds/helpers/_stretched-link.scss +0 -9
- package/lib/assets/styles/scss/cw-ds/helpers/_visually-hidden.scss +0 -18
- package/lib/assets/styles/scss/cw-ds/mixins/_color.scss +0 -16
- package/lib/assets/styles/scss/cw-ds/mixins/_flex.scss +0 -11
- package/lib/assets/styles/scss/cw-ds/mixins/_root.scss +0 -26
- package/lib/assets/styles/scss/cw-ds/mixins/_spacing.scss +0 -84
- package/lib/assets/styles/scss/cw-ds/mixins/_type.scss +0 -27
- package/lib/assets/styles/scss/cw-ds/utilities/_alignment.scss +0 -23
- package/lib/assets/styles/scss/cw-ds/utilities/_flex.scss +0 -96
- package/lib/assets/styles/scss/cw-ds/utilities/_spacing.scss +0 -3
- package/lib/assets/styles/scss/cw-ds/utilities/_type.scss +0 -3
- package/lib/assets/styles/scss/styles-bo.scss +0 -115
- package/lib/assets/styles/scss/styles-fo.scss +0 -115
- package/lib/assets/styles/scss/variables/_colors.scss +0 -43
- package/lib/assets/styles/scss/variables/_custom.scss +0 -451
- package/lib/assets/styles/scss/variables/_site.scss +0 -68
- package/styles-bo.min.css +0 -5
- package/styles-bo.min.css.map +0 -1
- package/styles-fo.min.css +0 -5
- package/styles-fo.min.css.map +0 -1
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
-
@use "button" as mixin;
|
|
5
|
-
|
|
6
|
-
// Variables
|
|
7
|
-
// ---------------------------------
|
|
8
|
-
$buttons: (
|
|
9
|
-
primary: (
|
|
10
|
-
surface: var(--cw-primary),
|
|
11
|
-
text: var(--cw-primary-contrasted),
|
|
12
|
-
border: var(--cw-primary),
|
|
13
|
-
surface-hover: var(--cw-primary-hover),
|
|
14
|
-
text-hover: var(--cw-primary-contrasted),
|
|
15
|
-
border-hover: var(--cw-primary-hover),
|
|
16
|
-
surface-disabled: var(--cw-disabled),
|
|
17
|
-
text-disabled: var(--cw-disabled-contrasted),
|
|
18
|
-
border-disabled: var(--cw-disabled),
|
|
19
|
-
),
|
|
20
|
-
secondary: (
|
|
21
|
-
surface: var(--cw-primary-contrasted),
|
|
22
|
-
text: var(--cw-primary),
|
|
23
|
-
border: var(--cw-primary),
|
|
24
|
-
surface-hover: var(--cw-primary-contrasted),
|
|
25
|
-
text-hover: var(--cw-primary-hover),
|
|
26
|
-
border-hover: var(--cw-primary-hover),
|
|
27
|
-
surface-disabled: var(--cw-disabled-contrasted),
|
|
28
|
-
text-disabled: var(--cw-disabled),
|
|
29
|
-
border-disabled: var(--cw-disabled),
|
|
30
|
-
),
|
|
31
|
-
link: (
|
|
32
|
-
surface: transparent,
|
|
33
|
-
text: var(--cw-primary),
|
|
34
|
-
border: transparent,
|
|
35
|
-
surface-hover: transparent,
|
|
36
|
-
text-hover: var(--cw-primary-hover),
|
|
37
|
-
border-hover: transparent,
|
|
38
|
-
surface-disabled: transparent,
|
|
39
|
-
text-disabled: var(--cw-disabled),
|
|
40
|
-
border-disabled: transparent,
|
|
41
|
-
),
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
// Générer toutes les variantes
|
|
45
|
-
// ---------------------------------
|
|
46
|
-
@include mixin.button-variants($buttons);
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
-
@use "button" as mixin;
|
|
5
|
-
|
|
6
|
-
// Variables
|
|
7
|
-
// ---------------------------------
|
|
8
|
-
$buttons: (
|
|
9
|
-
primary: (
|
|
10
|
-
surface: var(--cw-primary),
|
|
11
|
-
text: var(--cw-primary-contrasted),
|
|
12
|
-
border: var(--cw-primary),
|
|
13
|
-
surface-hover: var(--cw-primary-hover),
|
|
14
|
-
text-hover: var(--cw-primary-contrasted),
|
|
15
|
-
border-hover: var(--cw-primary-hover),
|
|
16
|
-
surface-disabled: var(--cw-disabled),
|
|
17
|
-
text-disabled: var(--cw-disabled-contrasted),
|
|
18
|
-
border-disabled: var(--cw-disabled),
|
|
19
|
-
),
|
|
20
|
-
secondary: (
|
|
21
|
-
surface: var(--cw-primary-contrasted),
|
|
22
|
-
text: var(--cw-primary),
|
|
23
|
-
border: var(--cw-primary),
|
|
24
|
-
surface-hover: var(--cw-primary-contrasted),
|
|
25
|
-
text-hover: var(--cw-primary-hover),
|
|
26
|
-
border-hover: var(--cw-primary-hover),
|
|
27
|
-
surface-disabled: var(--cw-disabled-contrasted),
|
|
28
|
-
text-disabled: var(--cw-disabled),
|
|
29
|
-
border-disabled: var(--cw-disabled),
|
|
30
|
-
),
|
|
31
|
-
link: (
|
|
32
|
-
surface: transparent,
|
|
33
|
-
text: var(--cw-primary),
|
|
34
|
-
border: transparent,
|
|
35
|
-
surface-hover: transparent,
|
|
36
|
-
text-hover: var(--cw-primary-hover),
|
|
37
|
-
border-hover: transparent,
|
|
38
|
-
surface-disabled: transparent,
|
|
39
|
-
text-disabled: var(--cw-disabled),
|
|
40
|
-
border-disabled: transparent,
|
|
41
|
-
),
|
|
42
|
-
info: (
|
|
43
|
-
surface: var(--cw-info),
|
|
44
|
-
text: var(--cw-info-contrasted),
|
|
45
|
-
border: var(--cw-info),
|
|
46
|
-
surface-hover: var(--cw-info-hover),
|
|
47
|
-
text-hover: var(--cw-info-contrasted),
|
|
48
|
-
border-hover: var(--cw-info-hover),
|
|
49
|
-
surface-disabled: var(--cw-disabled),
|
|
50
|
-
text-disabled: var(--cw-disabled-contrasted),
|
|
51
|
-
border-disabled: var(--cw-disabled),
|
|
52
|
-
),
|
|
53
|
-
success: (
|
|
54
|
-
surface: var(--cw-success),
|
|
55
|
-
text: var(--cw-success-contrasted),
|
|
56
|
-
border: var(--cw-success),
|
|
57
|
-
surface-hover: var(--cw-success-hover),
|
|
58
|
-
text-hover: var(--cw-success-contrasted),
|
|
59
|
-
border-hover: var(--cw-success-hover),
|
|
60
|
-
surface-disabled: var(--cw-disabled),
|
|
61
|
-
text-disabled: var(--cw-disabled-contrasted),
|
|
62
|
-
border-disabled: var(--cw-disabled),
|
|
63
|
-
),
|
|
64
|
-
warning: (
|
|
65
|
-
surface: var(--cw-warning),
|
|
66
|
-
text: var(--cw-warning-contrasted),
|
|
67
|
-
border: var(--cw-warning),
|
|
68
|
-
surface-hover: var(--cw-warning-hover),
|
|
69
|
-
text-hover: var(--cw-warning-contrasted),
|
|
70
|
-
border-hover: var(--cw-warning-hover),
|
|
71
|
-
surface-disabled: var(--cw-disabled),
|
|
72
|
-
text-disabled: var(--cw-disabled-contrasted),
|
|
73
|
-
border-disabled: var(--cw-disabled),
|
|
74
|
-
),
|
|
75
|
-
danger: (
|
|
76
|
-
surface: var(--cw-danger),
|
|
77
|
-
text: var(--cw-danger-contrasted),
|
|
78
|
-
border: var(--cw-danger),
|
|
79
|
-
surface-hover: var(--cw-danger-hover),
|
|
80
|
-
text-hover: var(--cw-danger-contrasted),
|
|
81
|
-
border-hover: var(--cw-danger-hover),
|
|
82
|
-
surface-disabled: var(--cw-disabled),
|
|
83
|
-
text-disabled: var(--cw-disabled-contrasted),
|
|
84
|
-
border-disabled: var(--cw-disabled),
|
|
85
|
-
),
|
|
86
|
-
danger-outline: (
|
|
87
|
-
surface: var(--cw-danger-contrasted),
|
|
88
|
-
text: var(--cw-danger),
|
|
89
|
-
border: var(--cw-danger),
|
|
90
|
-
surface-hover: var(--cw-danger-contrasted),
|
|
91
|
-
text-hover: var(--cw-danger-hover),
|
|
92
|
-
border-hover: var(--cw-danger-hover),
|
|
93
|
-
surface-disabled: var(--cw-disabled-contrasted),
|
|
94
|
-
text-disabled: var(--cw-disabled),
|
|
95
|
-
border-disabled: var(--cw-disabled),
|
|
96
|
-
),
|
|
97
|
-
light: (
|
|
98
|
-
surface: var(--cw-light),
|
|
99
|
-
text: var(--cw-light-contrasted),
|
|
100
|
-
border: var(--cw-light),
|
|
101
|
-
surface-hover: var(--cw-light-hover),
|
|
102
|
-
text-hover: var(--cw-light-contrasted),
|
|
103
|
-
border-hover: var(--cw-light-hover),
|
|
104
|
-
surface-disabled: var(--cw-disabled),
|
|
105
|
-
text-disabled: var(--cw-disabled-contrasted),
|
|
106
|
-
border-disabled: var(--cw-disabled),
|
|
107
|
-
),
|
|
108
|
-
);
|
|
109
|
-
|
|
110
|
-
// Générer toutes les variantes
|
|
111
|
-
// ---------------------------------
|
|
112
|
-
@include mixin.button-variants($buttons);
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
-
|
|
5
|
-
.btn {
|
|
6
|
-
--#{p.$prefix}-btn-padding-x: #{size(2xl)};
|
|
7
|
-
--#{p.$prefix}-btn-padding-y: #{size(sm)};
|
|
8
|
-
--#{p.$prefix}-btn-color: #{color(base, "dark")};
|
|
9
|
-
--#{p.$prefix}-btn-bg: #{color(base, "white")};
|
|
10
|
-
--#{p.$prefix}-btn-fs: #{font(fs, md)};
|
|
11
|
-
--#{p.$prefix}-btn-lh: #{font(lh, md)};
|
|
12
|
-
--#{p.$prefix}-btn-fw: #{font(fw, semibold)};
|
|
13
|
-
--#{p.$prefix}-btn-border-color: #{color(base, "white")};
|
|
14
|
-
--#{p.$prefix}-btn-border-width: #{size(5xs)};
|
|
15
|
-
--#{p.$prefix}-btn-br: var(--#{p.$prefix}-border-radius-input);
|
|
16
|
-
--#{p.$prefix}-btn-hover-color: #{color(base, "dark")};
|
|
17
|
-
--#{p.$prefix}-btn-hover-bg: #{color(base, "white")};
|
|
18
|
-
--#{p.$prefix}-btn-hover-border-color: #{color(base, "white")};
|
|
19
|
-
--#{p.$prefix}-btn-disabled-color: #{color(base, "white")};
|
|
20
|
-
--#{p.$prefix}-btn-disabled-bg: #{color("grey", 700)};
|
|
21
|
-
--#{p.$prefix}-btn-disabled-border-color: #{color("grey", 700)};
|
|
22
|
-
|
|
23
|
-
display: inline-flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
justify-content: center;
|
|
26
|
-
gap: size(2xs);
|
|
27
|
-
padding: var(--#{p.$prefix}-btn-padding-y) var(--#{p.$prefix}-btn-padding-x);
|
|
28
|
-
|
|
29
|
-
font-size: var(--#{p.$prefix}-btn-fs);
|
|
30
|
-
font-weight: var(--#{p.$prefix}-btn-fw);
|
|
31
|
-
line-height: var(--#{p.$prefix}-btn-lh);
|
|
32
|
-
color: var(--#{p.$prefix}-btn-color);
|
|
33
|
-
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
user-select: none;
|
|
36
|
-
border: var(--#{p.$prefix}-btn-border-width) solid var(--#{p.$prefix}-btn-border-color);
|
|
37
|
-
border-radius: var(--#{p.$prefix}-btn-br);
|
|
38
|
-
background-color: var(--#{p.$prefix}-btn-bg);
|
|
39
|
-
transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
|
|
40
|
-
|
|
41
|
-
&:hover, &:active {
|
|
42
|
-
color: var(--#{p.$prefix}-btn-hover-color);
|
|
43
|
-
background-color: var(--#{p.$prefix}-btn-hover-bg);
|
|
44
|
-
border-color: var(--#{p.$prefix}-btn-hover-border-color);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&.disabled, &[disabled], &:disabled {
|
|
48
|
-
color: var(--#{p.$prefix}-btn-disabled-color);
|
|
49
|
-
background-color: var(--#{p.$prefix}-btn-disabled-bg);
|
|
50
|
-
border-color: var(--#{p.$prefix}-btn-disabled-bg);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&-link {
|
|
54
|
-
text-decoration: underline;
|
|
55
|
-
&:hover, &:active {
|
|
56
|
-
text-decoration: none;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.btn-icon {
|
|
62
|
-
--#{p.$prefix}-btn-padding-x: 0;
|
|
63
|
-
--#{p.$prefix}-btn-padding-y: 0;
|
|
64
|
-
|
|
65
|
-
&-small {
|
|
66
|
-
width: size(2xl);
|
|
67
|
-
height: size(2xl);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&-default {
|
|
71
|
-
width: size(3xl);
|
|
72
|
-
height: size(3xl);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
// MIXIN - Variantes
|
|
78
|
-
// ---------------------------------
|
|
79
|
-
@mixin button-variants($variants) {
|
|
80
|
-
@each $variant, $colors in $variants {
|
|
81
|
-
.btn-#{$variant} {
|
|
82
|
-
--#{p.$prefix}-btn-color: #{map.get($colors, text)};
|
|
83
|
-
--#{p.$prefix}-btn-bg: #{map.get($colors, surface)};
|
|
84
|
-
--#{p.$prefix}-btn-border-color: #{map.get($colors, border)};
|
|
85
|
-
|
|
86
|
-
--#{p.$prefix}-btn-hover-color: #{map.get($colors, text-hover)};
|
|
87
|
-
--#{p.$prefix}-btn-hover-bg: #{map.get($colors, surface-hover)};
|
|
88
|
-
--#{p.$prefix}-btn-hover-border-color: #{map.get($colors, border-hover)};
|
|
89
|
-
|
|
90
|
-
--#{p.$prefix}-btn-disabled-color: #{map.get($colors, text-disabled)};
|
|
91
|
-
--#{p.$prefix}-btn-disabled-bg: #{map.get($colors, surface-disabled)};
|
|
92
|
-
--#{p.$prefix}-btn-disabled-border-color: #{map.get($colors, border-disabled)};
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
-
|
|
5
|
-
.spinner-border {
|
|
6
|
-
--#{p.$prefix}spinner-width: #{size(3xl)};
|
|
7
|
-
--#{p.$prefix}spinner-height: #{size(3xl)};
|
|
8
|
-
--#{p.$prefix}spinner-border-width: #{size(4xs)};
|
|
9
|
-
|
|
10
|
-
display: inline-block;
|
|
11
|
-
flex-shrink: 0;
|
|
12
|
-
width: var(--#{p.$prefix}spinner-width);
|
|
13
|
-
height: var(--#{p.$prefix}spinner-height);
|
|
14
|
-
vertical-align: -0.125em;
|
|
15
|
-
|
|
16
|
-
border: var(--#{p.$prefix}spinner-border-width) solid currentcolor;
|
|
17
|
-
border-right-color: transparent;
|
|
18
|
-
border-radius: 50%;
|
|
19
|
-
animation: 0.75s linear infinite spinner-border;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@keyframes spinner-border {
|
|
23
|
-
to { transform: rotate(360deg) #{"/* rtl:ignore */"}; }
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.spinner-border-sm {
|
|
27
|
-
--#{p.$prefix}spinner-width: #{size(lg)};
|
|
28
|
-
--#{p.$prefix}spinner-height: #{size(lg)};
|
|
29
|
-
--#{p.$prefix}spinner-border-width: 0.188rem;
|
|
30
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.visually-hidden {
|
|
2
|
-
width: 1px !important;
|
|
3
|
-
height: 1px !important;
|
|
4
|
-
padding: 0 !important;
|
|
5
|
-
margin: -1px !important;
|
|
6
|
-
overflow: hidden !important;
|
|
7
|
-
clip: rect(0, 0, 0, 0) !important;
|
|
8
|
-
white-space: nowrap !important;
|
|
9
|
-
border: 0 !important;
|
|
10
|
-
|
|
11
|
-
&:not(caption) {
|
|
12
|
-
position: absolute !important;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
* {
|
|
16
|
-
overflow: hidden !important;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
@use "@cityway/design-tokens/functions" as f;
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
|
|
4
|
-
@mixin color-with-rgb($name, $hex) {
|
|
5
|
-
--#{$name}: #{$hex};
|
|
6
|
-
--#{$name}-rgb: #{f.hex-to-rgb($hex)};
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@mixin generate-color-vars($category-name, $shades-map) {
|
|
10
|
-
@each $shade, $value in $shades-map {
|
|
11
|
-
@if type-of($value) == 'color' {
|
|
12
|
-
$var-name: #{p.$prefix}-#{$category-name}-#{$shade};
|
|
13
|
-
@include color-with-rgb($var-name, $value);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// @use "sass:map";
|
|
2
|
-
// @use '../variables/primitives' as p;
|
|
3
|
-
// @use '../variables/tokens' as *;
|
|
4
|
-
|
|
5
|
-
// @mixin generate-variables($desktop-map, $mobile-map, $variable, $rwd: false) {
|
|
6
|
-
// :root {
|
|
7
|
-
// @if ($rwd) {
|
|
8
|
-
// @each $key, $value in map.get($mobile-map, $variable) {
|
|
9
|
-
// --#{p.$prefix}-#{$variable}-#{$key}: #{$value};
|
|
10
|
-
// }
|
|
11
|
-
|
|
12
|
-
// // Desktop override
|
|
13
|
-
// @media (min-width: 992px) {
|
|
14
|
-
// @each $key, $value in map.get($desktop-map, $variable) {
|
|
15
|
-
// --#{p.$prefix}-#{$variable}-#{$key}: #{$value};
|
|
16
|
-
// }
|
|
17
|
-
// }
|
|
18
|
-
// }
|
|
19
|
-
|
|
20
|
-
// @else {
|
|
21
|
-
// @each $key, $value in map.get($desktop-map, $variable) {
|
|
22
|
-
// --#{p.$prefix}-#{$variable}-#{$key}: #{$value};
|
|
23
|
-
// }
|
|
24
|
-
// }
|
|
25
|
-
// }
|
|
26
|
-
// }
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
-
|
|
5
|
-
// Sapcing
|
|
6
|
-
@mixin generate-spacing-utilities() {
|
|
7
|
-
@each $key, $value in p.$sizing {
|
|
8
|
-
.p-#{$key} {
|
|
9
|
-
padding: size($key);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.pt-#{$key} {
|
|
13
|
-
padding-top: size($key);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.pe-#{$key} {
|
|
17
|
-
padding-right: size($key);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.pb-#{$key} {
|
|
21
|
-
padding-bottom: size($key);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.ps-#{$key} {
|
|
25
|
-
padding-left: size($key);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.px-#{$key} {
|
|
29
|
-
padding-left: size($key);
|
|
30
|
-
padding-right: size($key);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.py-#{$key} {
|
|
34
|
-
padding-top: size($key);
|
|
35
|
-
padding-bottom: size($key);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Margin
|
|
39
|
-
.m-#{$key} {
|
|
40
|
-
margin: size($key);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.mt-#{$key} {
|
|
44
|
-
margin-top: size($key);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.me-#{$key} {
|
|
48
|
-
margin-right: size($key);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.mb-#{$key} {
|
|
52
|
-
margin-bottom: size($key);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.ms-#{$key} {
|
|
56
|
-
margin-left:size($key);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.mx-#{$key} {
|
|
60
|
-
margin-left: size($key);
|
|
61
|
-
margin-right: size($key);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.my-#{$key} {
|
|
65
|
-
margin-top: size($key);
|
|
66
|
-
margin-bottom: size($key);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// Margin auto
|
|
71
|
-
.m-auto {
|
|
72
|
-
margin: auto;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.mx-auto {
|
|
76
|
-
margin-left: auto;
|
|
77
|
-
margin-right: auto;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.my-auto {
|
|
81
|
-
margin-top: auto;
|
|
82
|
-
margin-bottom: auto;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@mixin generate-type-utilities() {
|
|
8
|
-
|
|
9
|
-
// Font Size (fs) avec Line Height associé
|
|
10
|
-
@each $key, $value in map.get(p.$font, fs) {
|
|
11
|
-
.fs-#{$key} {
|
|
12
|
-
font-size: font(fs, $key);
|
|
13
|
-
|
|
14
|
-
// Ajouter line-height si elle existe pour cette taille
|
|
15
|
-
@if map.has-key(map.get(p.$font, lh), $key) {
|
|
16
|
-
line-height: font(lh, $key);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// Font Weight (fw)
|
|
22
|
-
@each $key, $value in map.get(p.$font, fw) {
|
|
23
|
-
.fw-#{$key} {
|
|
24
|
-
font-weight: font(fw, $key);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
|
|
3
|
-
// MIXIN - Variantes
|
|
4
|
-
// ---------------------------------
|
|
5
|
-
@mixin alignent-variants($variants) {
|
|
6
|
-
@each $variant, $alignent in $variants {
|
|
7
|
-
.text-#{$variant} {
|
|
8
|
-
text-align: $alignent;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// Variables
|
|
14
|
-
// ---------------------------------
|
|
15
|
-
$align: (
|
|
16
|
-
start: left,
|
|
17
|
-
end: right,
|
|
18
|
-
center: center
|
|
19
|
-
);
|
|
20
|
-
|
|
21
|
-
// Générer toutes les variantes
|
|
22
|
-
// ---------------------------------
|
|
23
|
-
@include alignent-variants($align);
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
@use "../mixins/flex" as *;
|
|
2
|
-
|
|
3
|
-
@include generate-flex-system();
|
|
4
|
-
|
|
5
|
-
.d-flex-h,
|
|
6
|
-
.d-flex-v {
|
|
7
|
-
display: flex;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.d-flex-v {
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.d-inline-flex {
|
|
15
|
-
display: inline-flex;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.flex-row {
|
|
19
|
-
flex-direction: row;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.flex-col {
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.flex-row-reverse {
|
|
27
|
-
flex-direction: row-reverse;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.flex-col-reverse {
|
|
31
|
-
flex-direction: column-reverse;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.flex-wrap {
|
|
35
|
-
flex-wrap: wrap;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.flex-nowrap {
|
|
39
|
-
flex-wrap: nowrap;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.justify-start {
|
|
43
|
-
justify-content: flex-start;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.justify-end {
|
|
47
|
-
justify-content: flex-end;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.justify-center {
|
|
51
|
-
justify-content: center;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.justify-between {
|
|
55
|
-
justify-content: space-between;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.justify-around {
|
|
59
|
-
justify-content: space-around;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.justify-evenly {
|
|
63
|
-
justify-content: space-evenly;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.items-start {
|
|
67
|
-
align-items: flex-start;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.items-end {
|
|
71
|
-
align-items: flex-end;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.items-center {
|
|
75
|
-
align-items: center;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.items-baseline {
|
|
79
|
-
align-items: baseline;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.items-stretch {
|
|
83
|
-
align-items: stretch;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.flex-1 {
|
|
87
|
-
flex: 1 1 0%;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.flex-auto {
|
|
91
|
-
flex: 1 1 auto;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.flex-none {
|
|
95
|
-
flex: none;
|
|
96
|
-
}
|