@design-factory/styles 21.0.0-next.0 → 21.0.0

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 (78) hide show
  1. package/README.md +30 -1
  2. package/bundle.css +2 -2
  3. package/package.json +11 -4
  4. package/scss/_common.mixins.scss +10 -10
  5. package/scss/_common.root.scss +0 -31
  6. package/scss/_common.scss +14 -10
  7. package/scss/_common.variables.scss +13 -59
  8. package/scss/_variables.scss +12 -8
  9. package/scss/bootstrap/_functions.scss +55 -0
  10. package/scss/bootstrap/_mixins-override.scss +8 -52
  11. package/scss/bootstrap/_variables.scss +235 -355
  12. package/scss/bundle.scss +5 -6
  13. package/scss/components/accordion/_accordion.variables.scss +1 -1
  14. package/scss/components/alert/_alert.scss +1 -1
  15. package/scss/components/badge/_badge.scss +1 -1
  16. package/scss/components/brand-color/_brand-color.mixins.scss +0 -2
  17. package/scss/components/brand-color/_brand-color.scss +0 -7
  18. package/scss/components/button/_button.mixins.scss +1 -1
  19. package/scss/components/button/_button.namespace.scss +42 -0
  20. package/scss/components/button/_button.scss +12 -12
  21. package/scss/components/button/_button.variables.scss +11 -4
  22. package/scss/components/card/_card.scss +4 -0
  23. package/scss/components/card/_card.variables.scss +1 -1
  24. package/scss/components/carousel/_carousel.namespace.scss +8 -0
  25. package/scss/components/checkbox/_checkbox.scss +14 -16
  26. package/scss/components/checkbox/_checkbox.variables.scss +2 -1
  27. package/scss/components/collapse/_collapse.scss +1 -1
  28. package/scss/components/datepicker/_datepicker.scss +16 -2
  29. package/scss/components/drawer/_drawer.scss +44 -10
  30. package/scss/components/dropdown/_dropdown.scss +2 -2
  31. package/scss/components/dropdown/_dropdown.variables.scss +1 -1
  32. package/scss/components/form/_form.scss +13 -5
  33. package/scss/components/form/_form.variables.scss +9 -3
  34. package/scss/components/icon/_amadeus-icon.scss +1 -1
  35. package/scss/components/inputs/_inputs.mixin.scss +0 -13
  36. package/scss/components/inputs/_inputs.scss +6 -39
  37. package/scss/components/inputs/_inputs.variables.scss +7 -0
  38. package/scss/components/link/_link.scss +1 -1
  39. package/scss/components/list-group/_list-group.scss +5 -5
  40. package/scss/components/media/_media.scss +1 -1
  41. package/scss/components/modal/_modal.namespace.scss +13 -0
  42. package/scss/components/modal/_modal.scss +6 -1
  43. package/scss/components/navbar/_navbar.scss +3 -2
  44. package/scss/components/pagination/_pagination.namespace.scss +15 -0
  45. package/scss/components/pagination/_pagination.scss +35 -34
  46. package/scss/components/pagination/_pagination.variables.scss +2 -2
  47. package/scss/components/popover/_popover.scss +2 -2
  48. package/scss/components/popover/_popover.variables.scss +1 -1
  49. package/scss/components/radio/_radio.scss +12 -12
  50. package/scss/components/rating/_rating.scss +1 -1
  51. package/scss/components/scrollspy/_scrollspy.scss +22 -1
  52. package/scss/components/select/_select.namespace.scss +13 -0
  53. package/scss/components/select/_select.scss +33 -17
  54. package/scss/components/select/_select.variables.scss +4 -6
  55. package/scss/components/sidenav/_sidenav-deprecated.scss +1 -1
  56. package/scss/components/sidenav/_sidenav.scss +26 -0
  57. package/scss/components/slider/_slider.scss +7 -7
  58. package/scss/components/speechbubble/_speechbubble.scss +6 -10
  59. package/scss/components/stepper/_stepper.scss +2 -2
  60. package/scss/components/table/_advancedtables.scss +8 -3
  61. package/scss/components/tabs/_tabs.scss +6 -1
  62. package/scss/components/toast/_toast.variables.scss +2 -1
  63. package/scss/components/toggle/_toggle.scss +2 -2
  64. package/scss/namespace.scss +54 -33
  65. package/scss/utilities.scss +0 -1
  66. package/scss/_new-brand-common.variables.scss +0 -7
  67. package/scss/bootstrap/_variables-dark.scss +0 -86
  68. package/scss/components/brand-color/_brand-color.variables.scss +0 -146
  69. package/scss/components/brand-color/_brand-color_container.scss +0 -23
  70. package/scss/components/button/_button_container.scss +0 -47
  71. package/scss/components/pagination/_pagination_container.scss +0 -17
  72. package/scss/components/popover/_popover_container.scss +0 -214
  73. package/scss/components/spinner/_spinner_container.scss +0 -43
  74. package/scss/components/tooltip/_tooltip_container.scss +0 -116
  75. package/scss/themes/brand2023/_variables.scss +0 -315
  76. package/scss/utilities/_common.utilities.scss +0 -98
  77. package/scss/utilities/_form.mixins.scss +0 -26
  78. package/scss/utilities/_rgb.scss +0 -10
@@ -1,98 +0,0 @@
1
- @use 'sass:color';
2
- @use 'sass:map';
3
- @use 'sass:math';
4
- @use 'sass:string';
5
- @use 'sass:list';
6
- @use 'sass:meta';
7
- @import 'rgb';
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
10
- // I put f for fill value.
11
- @function df-getSVGasURL($svg, $fig-color, $border-color, $background-color) {
12
- //add
13
- //TODO add end of line and multiple space replacing...
14
- $ret: str-replace($svg, '#bbbbbb', $border-color);
15
- $ret: str-replace($ret, '#cccccc', $background-color);
16
- $ret: str-replace($ret, '#ffffff', $fig-color);
17
- $ret: str-replace($ret, '#', '%23');
18
- $ret: str-replace($ret, '<', '%3C');
19
- $ret: str-replace($ret, '>', '%3E');
20
- @return url('data:image/svg+xml;charset=utf8,' + $ret);
21
- }
22
-
23
- //Default values
24
- $df-size-ratios: (
25
- 'sm': 0.875,
26
- 'md': 1,
27
- 'lg': 1.125,
28
- 'xl': 1.25
29
- ) !default;
30
-
31
- $df-sizing-ratios: (
32
- 'sm': 0.7,
33
- 'lg': 1.9,
34
- 'xl': 1.9
35
- ) !default;
36
-
37
- $df-box-shadow-transparent-amount: 0.8 !default;
38
- $df-box-shadow-color: #000 !default; // should be the same as $black
39
-
40
- $df-box-shadow: 0px 4px 8px 0px
41
- color.adjust(
42
- $color: $df-box-shadow-color,
43
- $alpha: - $df-box-shadow-transparent-amount
44
- ) !default;
45
-
46
- @function rgba-css-var($identifier, $target) {
47
- @if not list.index(neutral primary danger warning success info tip accent chromatic1 chromatic2, $identifier) {
48
- @error "#{$identifier} not managed, called with #{$target}";
49
- }
50
- @if $target == 'focus-ring' or $target == 'border' {
51
- @return var(--df-color-#{$identifier}-main-default-border);
52
- }
53
- @if $target == 'text' {
54
- @return var(--df-color-#{$identifier}-alt-default-foreground);
55
- } @else {
56
- @return var(--df-color-#{$identifier}-main-default-background);
57
- }
58
- }
59
-
60
- @function color-contrast(
61
- $background,
62
- $color-contrast-dark: $color-contrast-dark,
63
- $color-contrast-light: $color-contrast-light,
64
- $min-contrast-ratio: $min-contrast-ratio
65
- ) {
66
- @if meta.type-of($background) != color {
67
- @return str-replace($background, ')', '-color)');
68
- }
69
- $foregrounds: $color-contrast-light, $color-contrast-dark, $white, $black;
70
- $max-ratio: 0;
71
- $max-ratio-color: null;
72
-
73
- @each $color in $foregrounds {
74
- $contrast-ratio: contrast-ratio($background, $color);
75
- @if $contrast-ratio > $min-contrast-ratio {
76
- @return $color;
77
- } @else if $contrast-ratio > $max-ratio {
78
- $max-ratio: $contrast-ratio;
79
- $max-ratio-color: $color;
80
- }
81
- }
82
-
83
- @warn "Found no color leading to #{$min-contrast-ratio}:1 contrast ratio against #{$background}...";
84
-
85
- @return $max-ratio-color;
86
- }
87
-
88
- $df-size-ratios-font: (
89
- 'sm': var(--df-typo-sizing-small),
90
- 'lg': var(--df-typo-sizing-large),
91
- 'md': var(--df-typo-sizing-default),
92
- 'xl': var(--df-typo-sizing-2xlarge)
93
- ) !default;
94
-
95
- // TODO consider fully removing this function to use the bs class fs- instead
96
- @function get-font-sizing($extension, $ratio, $font-size-to-scale: $font-size-base, $body: false) {
97
- @return map.get($df-size-ratios-font, $extension);
98
- }
@@ -1,26 +0,0 @@
1
- $df-check-label-adjust-padding-left: 0.125rem !default;
2
- // mixins for radio and checkbox position
3
- @mixin df-checkboxradio-pos($df-margin-bottom) {
4
- display: inline-block;
5
- position: relative;
6
- &:not(.col-form-label) {
7
- margin-bottom: $df-margin-bottom;
8
- }
9
- @include ltr {
10
- padding-left: calc($form-check-padding-start + $df-check-label-adjust-padding-left); // add
11
- margin-left: -$form-check-padding-start; // add
12
- }
13
-
14
- @include rtl {
15
- padding-right: calc($form-check-padding-start + $df-check-label-adjust-padding-left); // add
16
- margin-right: -$form-check-padding-start; // add
17
- }
18
-
19
- &::before {
20
- // add
21
- position: absolute; // idem as custom-control-input from bootstrap to hide the browser input (mandatory)
22
- top: 50%; // New trick to use to center the icon with the title (works
23
- // with the transform on the element and display: inline-block, position: relative on the parent)
24
- transform: translateY(-50%);
25
- }
26
- }
@@ -1,10 +0,0 @@
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
- }