@cityway/basic-ui 1.0.2-beta006 → 1.0.2-beta008

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.
@@ -6,32 +6,40 @@
6
6
  // ---------------------------------
7
7
  $heading: (
8
8
  h1: (
9
- ff: var(--#{p.$prefix}-body-ff-heading),
10
- fw: font(fw, normal),
11
- fs: font(fs, xl),
12
- lh: font(lh, xl),
13
- color: var(--#{p.$prefix}-body-color)
9
+ standard: (
10
+ ff: var(--#{p.$prefix}-body-ff-heading),
11
+ fw: font(fw, normal),
12
+ fs: font(fs, xl),
13
+ lh: font(lh, xl),
14
+ color: var(--#{p.$prefix}-body-color)
15
+ ),
14
16
  ),
15
17
  h2: (
16
- ff: var(--#{p.$prefix}-body-ff-heading),
17
- fw: font(fw, normal),
18
- fs: font(fs, xl),
19
- lh: font(lh, xl),
20
- color: var(--#{p.$prefix}-body-color)
18
+ standard: (
19
+ ff: var(--#{p.$prefix}-body-ff-heading),
20
+ fw: font(fw, normal),
21
+ fs: font(fs, xl),
22
+ lh: font(lh, xl),
23
+ color: var(--#{p.$prefix}-body-color)
24
+ ),
21
25
  ),
22
26
  h3: (
23
- ff: var(--#{p.$prefix}-body-ff-heading),
24
- fw: font(fw, normal),
25
- fs: font(fs, lg),
26
- lh: font(lh, lg),
27
- color: var(--#{p.$prefix}-base-disabled)
27
+ standard: (
28
+ ff: var(--#{p.$prefix}-body-ff-heading),
29
+ fw: font(fw, normal),
30
+ fs: font(fs, lg),
31
+ lh: font(lh, lg),
32
+ color: var(--#{p.$prefix}-base-disabled)
33
+ ),
28
34
  ),
29
35
  h4: (
30
- ff: var(--#{p.$prefix}-body-ff-heading),
31
- fw: font(fw, bold),
32
- fs: font(fs, md),
33
- lh: font(lh, md),
34
- color: var(--#{p.$prefix}-body-color)
36
+ standard: (
37
+ ff: var(--#{p.$prefix}-body-ff-heading),
38
+ fw: font(fw, bold),
39
+ fs: font(fs, md),
40
+ lh: font(lh, md),
41
+ color: var(--#{p.$prefix}-body-color)
42
+ )
35
43
  )
36
44
  );
37
45
 
@@ -1 +1,132 @@
1
+ @use "@cityway/design-tokens/primitives" as p;
2
+ @use "@cityway/design-tokens/functions" as *;
3
+ @use "type" as mixin;
1
4
 
5
+ // Variables
6
+ // ---------------------------------
7
+ $heading: (
8
+ h1: (
9
+ editorial: (
10
+ ff: var(--#{p.$prefix}-body-ff-heading),
11
+ fw: font(fw, bold),
12
+ fs: font(fs, 4xl),
13
+ lh: font(lh, 4xl),
14
+ color: var(--#{p.$prefix}-body-color)
15
+ ),
16
+ home: (
17
+ ff: var(--#{p.$prefix}-body-ff-heading),
18
+ fw: font(fw, bold),
19
+ fs: font(fs, 4xl),
20
+ lh: font(lh, 4xl),
21
+ color: var(--#{p.$prefix}-body-color)
22
+ ),
23
+ mobility: (
24
+ ff: var(--#{p.$prefix}-body-ff-heading),
25
+ fw: font(fw, bold),
26
+ fs: font(fs, xl),
27
+ lh: font(lh, xl),
28
+ color: var(--#{p.$prefix}-body-color)
29
+ ),
30
+ standard: (
31
+ ff: var(--#{p.$prefix}-body-ff-heading),
32
+ fw: font(fw, bold),
33
+ fs: font(fs, 4xl),
34
+ lh: font(lh, 4xl),
35
+ color: var(--#{p.$prefix}-body-color)
36
+ ),
37
+ ),
38
+ h2: (
39
+ editorial: (
40
+ ff: var(--#{p.$prefix}-body-ff-heading),
41
+ fw: font(fw, bold),
42
+ fs: font(fs, xl),
43
+ lh: font(lh, xl),
44
+ color: var(--#{p.$prefix}-body-color)
45
+ ),
46
+ home: (
47
+ ff: var(--#{p.$prefix}-body-ff-heading),
48
+ fw: font(fw, bold),
49
+ fs: font(fs, 4xl),
50
+ lh: font(lh, 4xl),
51
+ color: var(--#{p.$prefix}-body-color)
52
+ ),
53
+ mobility: (
54
+ ff: var(--#{p.$prefix}-body-ff-heading),
55
+ fw: font(fw, bold),
56
+ fs: font(fs, md),
57
+ lh: font(lh, md),
58
+ color: var(--#{p.$prefix}-body-color)
59
+ ),
60
+ standard: (
61
+ ff: var(--#{p.$prefix}-body-ff-heading),
62
+ fw: font(fw, bold),
63
+ fs: font(fs, xl),
64
+ lh: font(lh, xl),
65
+ color: var(--#{p.$prefix}-body-color)
66
+ ),
67
+ ),
68
+ h3: (
69
+ editorial: (
70
+ ff: var(--#{p.$prefix}-body-ff-heading),
71
+ fw: font(fw, bold),
72
+ fs: font(fs, lg),
73
+ lh: font(lh, lg),
74
+ color: var(--#{p.$prefix}-base-disabled)
75
+ ),
76
+ home: (
77
+ ff: var(--#{p.$prefix}-body-ff-heading),
78
+ fw: font(fw, bold),
79
+ fs: font(fs, lg),
80
+ lh: font(lh, lg),
81
+ color: var(--#{p.$prefix}-base-disabled)
82
+ ),
83
+ mobility: (
84
+ ff: var(--#{p.$prefix}-body-ff-heading),
85
+ fw: font(fw, bold),
86
+ fs: font(fs, sm),
87
+ lh: font(lh, sm),
88
+ color: var(--#{p.$prefix}-base-disabled)
89
+ ),
90
+ standard: (
91
+ ff: var(--#{p.$prefix}-body-ff-heading),
92
+ fw: font(fw, bold),
93
+ fs: font(fs, md),
94
+ lh: font(lh, md),
95
+ color: var(--#{p.$prefix}-base-disabled)
96
+ ),
97
+ ),
98
+ h4: (
99
+ editorial: (
100
+ ff: var(--#{p.$prefix}-body-ff-heading),
101
+ fw: font(fw, bold),
102
+ fs: font(fs, md),
103
+ lh: font(lh, md),
104
+ color: var(--#{p.$prefix}-body-color)
105
+ ),
106
+ home: (
107
+ ff: var(--#{p.$prefix}-body-ff-heading),
108
+ fw: font(fw, bold),
109
+ fs: font(fs, md),
110
+ lh: font(lh, md),
111
+ color: var(--#{p.$prefix}-body-color)
112
+ ),
113
+ mobility: (
114
+ ff: var(--#{p.$prefix}-body-ff-heading),
115
+ fw: font(fw, bold),
116
+ fs: font(fs, sm),
117
+ lh: font(lh, sm),
118
+ color: var(--#{p.$prefix}-base-disabled)
119
+ ),
120
+ standard: (
121
+ ff: var(--#{p.$prefix}-body-ff-heading),
122
+ fw: font(fw, bold),
123
+ fs: font(fs, sm),
124
+ lh: font(lh, sm),
125
+ color: var(--#{p.$prefix}-base-disabled)
126
+ )
127
+ )
128
+ );
129
+
130
+ // Générer toutes les variantes
131
+ // ---------------------------------
132
+ @include mixin.heading-variants($heading);
@@ -6,13 +6,15 @@
6
6
  // MIXIN - Variantes
7
7
  // ---------------------------------
8
8
  @mixin heading-variants($variants) {
9
- @each $tag, $props in $variants {
10
- #{$tag}, .#{$tag} {
11
- font-family: #{map.get($props, ff)};
12
- font-weight: #{map.get($props, fw)};
13
- font-size: #{map.get($props, fs)};
14
- line-height: #{map.get($props, lh)};
15
- color: #{map.get($props, color)};
9
+ @each $tag, $contexts in $variants {
10
+ @each $context, $props in $contexts {
11
+ .#{$context}-#{$tag} {
12
+ font-family: #{map.get($props, ff)};
13
+ font-weight: #{map.get($props, fw)};
14
+ font-size: #{map.get($props, fs)};
15
+ line-height: #{map.get($props, lh)};
16
+ color: #{map.get($props, color)};
17
+ }
16
18
  }
17
19
  }
18
20
  }
@@ -1,6 +1,9 @@
1
1
  @use "cw-ds/reboot";
2
2
  @use "cw-ds/root-bo";
3
3
 
4
+ // Lib externes
5
+ @use "@ng-select/ng-select/themes/default.theme.css";
6
+
4
7
  // Helpers
5
8
  @use "cw-ds/helpers/visually-hidden";
6
9
  @use "cw-ds/helpers/stretched-link";
@@ -23,6 +26,7 @@
23
26
  @use "cw-ds/components/file-to-download";
24
27
  @use "cw-ds/components/numerical-range";
25
28
  @use "cw-ds/components/modal";
29
+ @use "cw-ds/components/form-field/form-field";
26
30
 
27
31
  // Utilities
28
32
  @use "cw-ds/utilities/breakpoints";
@@ -36,88 +40,6 @@
36
40
  // En surcharge
37
41
  @use "cw-ds/helpers/skeleton";
38
42
 
39
-
40
- //## Import des variables de couleurs
41
- //--------------------------------------------------------
42
- //@import "scss/variables-colors";
43
-
44
- //## Import de bootstrap contrôlé
45
- //--------------------------------------------------------
46
- //@import "bootstrap";
47
- // @import "bootstrap/scss/mixins/banner";
48
- // @include bsBanner("");
49
-
50
-
51
- // // scss-docs-start import-stack
52
- // // Configuration
53
- //
54
- // @import "variables/custom";
55
- // @import "bootstrap/scss/variables";
56
- // @import "bootstrap/scss/variables-dark";
57
- // @import "bootstrap/scss/maps";
58
- // @import "bootstrap/scss/mixins";
59
- // @import "bootstrap/scss/utilities";
60
-
61
- // // Layout & components
62
- // @import "bootstrap/scss/root";
63
- // //@import "bootstrap/scss/reboot";
64
- // //@import "bootstrap/scss/type";
65
- // //@import "bootstrap/scss/images";
66
- // //@import "bootstrap/scss/containers";
67
- // //@import "bootstrap/scss/grid";
68
- // @import "bootstrap/scss/tables";
69
- // @import "bootstrap/scss/forms";
70
- // //@import "bootstrap/scss/buttons";
71
- // //@import "bootstrap/scss/transitions";
72
- // @import "bootstrap/scss/dropdown";
73
- // @import "bootstrap/scss/button-group";
74
- // //@import "bootstrap/scss/nav";
75
- // //@import "bootstrap/scss/navbar";
76
- // //@import "bootstrap/scss/card";
77
- // //@import "bootstrap/scss/accordion";
78
- // //@import "bootstrap/scss/breadcrumb";
79
- // //@import "bootstrap/scss/pagination";
80
- // //@import "bootstrap/scss/badge";
81
- // //@import "bootstrap/scss/alert";
82
- // @import "bootstrap/scss/progress";
83
- // @import "bootstrap/scss/list-group";
84
- // //@import "bootstrap/scss/close";
85
- // //@import "bootstrap/scss/toasts";
86
- // //@import "bootstrap/scss/modal";
87
- // @import "bootstrap/scss/tooltip";
88
- // @import "bootstrap/scss/popover";
89
- // //@import "bootstrap/scss/carousel";
90
- // //@import "bootstrap/scss/offcanvas";
91
- // //@import "bootstrap/scss/placeholders";
92
-
93
- // // Helpers
94
- // //@import "bootstrap/scss/helpers";
95
-
96
- // // Utilities
97
- // @import "bootstrap/scss/utilities/api";
98
- // scss-docs-end import-stack
99
-
100
- //## Mixins
101
- //--------------------------------------------------------
102
- //@import "mixins/utilities";
103
-
104
- //## Import des variables propres au site
105
- //--------------------------------------------------------
106
- @import "variables/site";
107
-
108
43
  //## Import des fonts
109
44
  //--------------------------------------------------------
110
- @import "../../fonts/nunito/nunito";
111
- // @import "../../fonts/optyweb/optyweb";
112
- // @import "../../fonts/bo/bo";
113
-
114
-
115
- //## Import styles
116
- //--------------------------------------------------------
117
- //@import "custom-bootstrap";
118
- //@import "components";
119
-
120
- // Tools
121
- //--------------------------------------------------------
122
- //@import "tools/loader";
123
- //@import "tools/focus";
45
+ @use "../../fonts/nunito/nunito";
@@ -1,6 +1,9 @@
1
1
  @use "cw-ds/reboot";
2
2
  @use "cw-ds/root-fo";
3
3
 
4
+ // Lib externes
5
+ @use "@ng-select/ng-select/themes/default.theme.css";
6
+
4
7
  // Helpers
5
8
  @use "cw-ds/helpers/visually-hidden";
6
9
  @use "cw-ds/helpers/stretched-link";
@@ -23,6 +26,7 @@
23
26
  @use "cw-ds/components/file-to-download";
24
27
  @use "cw-ds/components/numerical-range";
25
28
  @use "cw-ds/components/modal";
29
+ @use "cw-ds/components/form-field/form-field";
26
30
 
27
31
  // Utilities
28
32
  @use "cw-ds/utilities/breakpoints";
@@ -36,88 +40,6 @@
36
40
  // En surcharge
37
41
  @use "cw-ds/helpers/skeleton";
38
42
 
39
-
40
- //## Import des variables de couleurs
41
- //--------------------------------------------------------
42
- //@import "scss/variables-colors";
43
-
44
- //## Import de bootstrap contrôlé
45
- //--------------------------------------------------------
46
- //@import "bootstrap";
47
- // @import "bootstrap/scss/mixins/banner";
48
- // @include bsBanner("");
49
-
50
-
51
- // // scss-docs-start import-stack
52
- // // Configuration
53
- //
54
- // @import "variables/custom";
55
- // @import "bootstrap/scss/variables";
56
- // @import "bootstrap/scss/variables-dark";
57
- // @import "bootstrap/scss/maps";
58
- // @import "bootstrap/scss/mixins";
59
- // @import "bootstrap/scss/utilities";
60
-
61
- // // Layout & components
62
- // @import "bootstrap/scss/root";
63
- // //@import "bootstrap/scss/reboot";
64
- // //@import "bootstrap/scss/type";
65
- // //@import "bootstrap/scss/images";
66
- // //@import "bootstrap/scss/containers";
67
- // //@import "bootstrap/scss/grid";
68
- // @import "bootstrap/scss/tables";
69
- // @import "bootstrap/scss/forms";
70
- // //@import "bootstrap/scss/buttons";
71
- // //@import "bootstrap/scss/transitions";
72
- // @import "bootstrap/scss/dropdown";
73
- // @import "bootstrap/scss/button-group";
74
- // //@import "bootstrap/scss/nav";
75
- // //@import "bootstrap/scss/navbar";
76
- // //@import "bootstrap/scss/card";
77
- // //@import "bootstrap/scss/accordion";
78
- // //@import "bootstrap/scss/breadcrumb";
79
- // //@import "bootstrap/scss/pagination";
80
- // //@import "bootstrap/scss/badge";
81
- // //@import "bootstrap/scss/alert";
82
- // @import "bootstrap/scss/progress";
83
- // @import "bootstrap/scss/list-group";
84
- // //@import "bootstrap/scss/close";
85
- // //@import "bootstrap/scss/toasts";
86
- // //@import "bootstrap/scss/modal";
87
- // @import "bootstrap/scss/tooltip";
88
- // @import "bootstrap/scss/popover";
89
- // //@import "bootstrap/scss/carousel";
90
- // //@import "bootstrap/scss/offcanvas";
91
- // //@import "bootstrap/scss/placeholders";
92
-
93
- // // Helpers
94
- // //@import "bootstrap/scss/helpers";
95
-
96
- // // Utilities
97
- // @import "bootstrap/scss/utilities/api";
98
- // // scss-docs-end import-stack
99
-
100
- //## Mixins
101
- //--------------------------------------------------------
102
- //@import "mixins/utilities";
103
-
104
- //## Import des variables propres au site
105
- //--------------------------------------------------------
106
- @import "variables/site";
107
-
108
43
  //## Import des fonts
109
44
  //--------------------------------------------------------
110
- @import "../../fonts/nunito/nunito";
111
- // @import "../../fonts/optyweb/optyweb";
112
- // @import "../../fonts/bo/bo";
113
-
114
-
115
- //## Import styles
116
- //--------------------------------------------------------
117
- // @import "custom-bootstrap";
118
- // @import "components";
119
-
120
- // Tools
121
- //--------------------------------------------------------
122
- //@import "tools/loader";
123
- //@import "tools/focus";
45
+ @use "../../fonts/nunito/nunito";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityway/basic-ui",
3
- "version": "1.0.2-beta006",
3
+ "version": "1.0.2-beta008",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.0",
6
6
  "@angular/core": "^20.3.0",
@@ -8,7 +8,7 @@
8
8
  "@angular/animations": "^20.3.0",
9
9
  "@angular/cdk": "^20.2.2",
10
10
  "@angular/platform-browser": "^20.3.0",
11
- "@cityway/design-tokens": "1.0.1-beta004"
11
+ "@cityway/design-tokens": "1.0.1-beta007"
12
12
  },
13
13
  "dependencies": {
14
14
  "@ng-select/ng-select": "20.0.1",