@design-factory/design-factory 20.0.0-next.0 → 20.0.0-next.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.
- package/design-factory-initial-branding.css +1 -1
- package/design-factory-initial-branding.scss +1 -1
- package/design-factory.css +2 -2
- package/fesm2022/design-factory-design-factory-tokens-style-dictionary.mjs +358 -0
- package/fesm2022/design-factory-design-factory-tokens-style-dictionary.mjs.map +1 -0
- package/fesm2022/design-factory.mjs +433 -530
- package/fesm2022/design-factory.mjs.map +1 -1
- package/index.d.ts +46 -168
- package/package.json +14 -2
- package/schematics/migrations/15_0_0/remove-ngx-slider/index.js +11 -5
- package/schematics/migrations/16_0_0/revert-to-old-brand/index.js +2 -2
- package/schematics/migrations/20_0_0/colors-new-branding/index.d.ts +14 -0
- package/schematics/migrations/20_0_0/colors-new-branding/index.js +108 -0
- package/schematics/migrations/20_0_0/navbar-toggler-logo-svg/index.js +6 -5
- package/schematics/migrations/20_0_0/spinner-new-branding/index.d.ts +7 -0
- package/schematics/migrations/20_0_0/spinner-new-branding/index.js +41 -0
- package/schematics/migrations/helpers.js +1 -1
- package/schematics/migrations/migration.json +12 -0
- package/schematics/migrations/utils/component-resource-collector.js +2 -2
- package/schematics/migrations/utils/project_tsconfig_paths.js +4 -0
- package/schematics/migrations/utils/style-updater.js +3 -1
- package/schematics/migrations/utils/template-updater.js +3 -1
- package/schematics/migrations/utils/typescript/compiler_host.js +6 -4
- package/schematics/ng-add/index.js +3 -6
- package/styles/scss/_common.root.scss +20 -3
- package/styles/scss/_common.scss +1 -1
- package/styles/scss/_common.variables.scss +2 -1
- package/styles/scss/_variables.scss +1 -0
- package/styles/scss/agnosui/_variables.scss +1 -1
- package/styles/scss/bootstrap/_utilities-override.scss +14 -8
- package/styles/scss/bootstrap/_variables.scss +2 -2
- package/styles/scss/components/accordion/_accordion.scss +7 -0
- package/styles/scss/components/alert/_alert.scss +32 -17
- package/styles/scss/components/badge/_badge.mixins.scss +12 -4
- package/styles/scss/components/badge/_badge.scss +191 -71
- package/styles/scss/components/badge/_badge.variables.scss +8 -0
- package/styles/scss/components/brand-color/_brand-color.mixins.scss +2 -2
- package/styles/scss/components/breadcrumbs/_breadcrumbs.scss +4 -1
- package/styles/scss/components/breadcrumbs/_breadcrumbs.variables.scss +3 -1
- package/styles/scss/components/button/_button.scss +389 -74
- package/styles/scss/components/button/_button.utils.scss +20 -1
- package/styles/scss/components/button/_button_container.scss +22 -5
- package/styles/scss/components/card/_card.scss +42 -10
- package/styles/scss/components/card/_card.variables.scss +2 -0
- package/styles/scss/components/carousel/_carousel.scss +2 -2
- package/styles/scss/components/checkbox/_checkbox.scss +2 -1
- package/styles/scss/components/datepicker/_datepicker.scss +2 -1
- package/styles/scss/components/dropdown/_dropdown.scss +18 -1
- package/styles/scss/components/fonts/_font-faces.mixins.scss +108 -54
- package/styles/scss/components/icon/_amadeus-icon.scss +2 -2
- package/styles/scss/components/inputs/_inputs.mixin.scss +2 -2
- package/styles/scss/components/inputs/_inputs.root.scss +1 -1
- package/styles/scss/components/inputs/_inputs.scss +10 -4
- package/styles/scss/components/link/_link.mixins.scss +7 -3
- package/styles/scss/components/link/_link.scss +6 -0
- package/styles/scss/components/media/_media.scss +4 -0
- package/styles/scss/components/media/_media.variables.scss +1 -0
- package/styles/scss/components/modal/_modal.scss +54 -14
- package/styles/scss/components/modal/_modal.variables.scss +1 -0
- package/styles/scss/components/navbar/_navbar.scss +12 -0
- package/styles/scss/components/pagination/_pagination.scss +5 -0
- package/styles/scss/components/pagination/_pagination_container.scss +1 -1
- package/styles/scss/components/progressbar/_progressbar.variables.scss +13 -4
- package/styles/scss/components/rating/_rating.scss +18 -2
- package/styles/scss/components/rating/_rating.variables.scss +1 -1
- package/styles/scss/components/scrollspy/_scrollspy.scss +1 -1
- package/styles/scss/components/select/_select.scss +14 -19
- package/styles/scss/components/separator/_separator.variables.scss +1 -1
- package/styles/scss/components/sidenav/_sidenav.scss +3 -3
- package/styles/scss/components/sidenav/_sidenav.variables.scss +6 -4
- package/styles/scss/components/spinner/_spinner.scss +14 -0
- package/styles/scss/components/spinner/_spinner.variables.scss +7 -4
- package/styles/scss/components/stepper/_stepper.variables.scss +3 -3
- package/styles/scss/components/tabs/_tabs.scss +8 -1
- package/styles/scss/components/timepicker/_timepicker.scss +5 -0
- package/styles/scss/components/timepicker/_timepicker.variables.scss +1 -0
- package/styles/scss/components/toast/_toast.scss +21 -30
- package/styles/scss/components/toggle/_toggle.scss +2 -1
- package/styles/scss/components/toggle/_toggle.variables.scss +1 -0
- package/styles/scss/components/tooltip/_tooltip.scss +5 -0
- package/styles/scss/components/tooltip/_tooltip.variables.scss +4 -0
- package/styles/scss/components/tooltip/_tooltip_container.scss +17 -13
- package/styles/scss/df-styles.scss +1 -0
- package/styles/scss/themes/brand2023/_variables.scss +161 -38
- package/styles/scss/themes/brand2023/tokens/_mapping.gen.scss +156 -186
- package/styles/scss/themes/brand2023/tokens/_root.gen.scss +1708 -0
- package/styles/scss/themes/brand2023/tokens/_sass-vars.gen.scss +1467 -0
- package/styles/scss/utilities/_common.utilities.scss +3 -10
- package/styles/scss/utilities/_rgb.scss +10 -0
- package/tokens/style-dictionary/index.d.ts +60 -0
- package/styles/scss/themes/brand2023/tokens/_figma.gen.scss +0 -3028
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
@use 'sass:string';
|
|
5
5
|
@use 'sass:list';
|
|
6
6
|
@use 'sass:meta';
|
|
7
|
+
@import 'rgb';
|
|
7
8
|
|
|
8
9
|
// This function currently change all the colors #ffffff #bbbbbb and #cccccc (that you should put in the svg) by the one given in input
|
|
9
10
|
// I put f for fill value.
|
|
@@ -146,14 +147,6 @@ $df-box-shadow: 0px 4px 8px 0px
|
|
|
146
147
|
}
|
|
147
148
|
}
|
|
148
149
|
|
|
149
|
-
// Override functions from BS
|
|
150
|
-
@function to-rgb($value) {
|
|
151
|
-
@if meta.type-of($value) != color {
|
|
152
|
-
@return str-replace($value, ')', '-rgb)');
|
|
153
|
-
}
|
|
154
|
-
@return color.red($value), color.green($value), color.blue($value);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
150
|
@function rgba-css-var($identifier, $target) {
|
|
158
151
|
@if $identifier == 'alt-body' and $target == 'bg' {
|
|
159
152
|
@return rgba(var(--#{$prefix}alt-body), var(--#{$prefix}#{$target}-opacity));
|
|
@@ -161,8 +154,8 @@ $df-box-shadow: 0px 4px 8px 0px
|
|
|
161
154
|
@if $identifier == 'body' and $target == 'bg' {
|
|
162
155
|
@return rgba(var(--#{$prefix}#{$identifier}-bg-rgb), var(--#{$prefix}#{$target}-opacity));
|
|
163
156
|
}
|
|
164
|
-
@if $
|
|
165
|
-
@return rgba(#{shades-rgb-css-var($identifier, '
|
|
157
|
+
@if $target == 'text' {
|
|
158
|
+
@return rgba(#{shades-rgb-css-var($identifier, 'text-color')}, var(--#{$prefix}#{$target}-opacity));
|
|
166
159
|
} @else {
|
|
167
160
|
@return rgba(#{shades-rgb-css-var($identifier, 'bg-color')}, var(--#{$prefix}#{$target}-opacity));
|
|
168
161
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
@use 'sass:color';
|
|
3
|
+
|
|
4
|
+
// Override functions from BS
|
|
5
|
+
@function to-rgb($value) {
|
|
6
|
+
@if meta.type-of($value) != color {
|
|
7
|
+
@return str-replace($value, ')', '-rgb)');
|
|
8
|
+
}
|
|
9
|
+
@return color.red($value), color.green($value), color.blue($value);
|
|
10
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Design Factory custom Style-Dictionary transforms
|
|
3
|
+
*/
|
|
4
|
+
declare const transforms: {
|
|
5
|
+
/**
|
|
6
|
+
* Transform used to quote wrap font-family tokens.
|
|
7
|
+
* This is required as the font-family tokens exported from the Figma Plugin do not have the proper $type.
|
|
8
|
+
*/
|
|
9
|
+
readonly fontFamily: "@design-factory/font-family";
|
|
10
|
+
/**
|
|
11
|
+
* Transform used to map font-weight tokens into useable css values.
|
|
12
|
+
* This is required as the font-weight tokens exported from the Figma Plugin do not have the proper $type.
|
|
13
|
+
*/
|
|
14
|
+
readonly fontWeight: "@design-factory/font-weight";
|
|
15
|
+
/**
|
|
16
|
+
* Transform used to create token names based on DF token naming convention.
|
|
17
|
+
*/
|
|
18
|
+
readonly tokenName: "@design-factory/token-name";
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Design Factory custom Style-Dictionary transform group
|
|
22
|
+
*/
|
|
23
|
+
declare const transformGroups: {
|
|
24
|
+
/**
|
|
25
|
+
* Transform group that applies standard scss transforms and custom Design Factory transforms.
|
|
26
|
+
*/
|
|
27
|
+
readonly designFactory: "@design-factory";
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Design Factory custom Style-Dictionary filters
|
|
31
|
+
*/
|
|
32
|
+
declare const filters: {
|
|
33
|
+
/**
|
|
34
|
+
* Filter removing invalid font-weight tokens. Should be used with {@link formats.scssVars}
|
|
35
|
+
*/
|
|
36
|
+
readonly scssVars: "@design-factory/scss-vars-filter";
|
|
37
|
+
/**
|
|
38
|
+
* Filter removing invalid font-weight tokens and t0 tokens. Should be used with {@link formats.cssRoot}
|
|
39
|
+
*/
|
|
40
|
+
readonly cssRoot: "@design-factory/root-filter";
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Design Factory custom Style-Dictionary formats
|
|
44
|
+
*/
|
|
45
|
+
declare const formats: {
|
|
46
|
+
/**
|
|
47
|
+
* Format to print a sass file containing tokens as sass variables. Should be used with {@link filters.scssVars}
|
|
48
|
+
*/
|
|
49
|
+
readonly scssVars: "@design-factory/scss-vars";
|
|
50
|
+
/**
|
|
51
|
+
* Format to print a css file printing tokens as css variables. Should be used with {@link filters.cssRoot}
|
|
52
|
+
*/
|
|
53
|
+
readonly cssRoot: "@design-factory/css-root";
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Registers Design Factory custom transforms, formats and filters with Style Dictionary.
|
|
57
|
+
*/
|
|
58
|
+
declare const registerDf: () => void;
|
|
59
|
+
|
|
60
|
+
export { filters, formats, registerDf, transformGroups, transforms };
|