@sbb-esta/lyne-elements-dev 5.0.0-next.2-dev.1778120187 → 5.0.0-next.2-dev.1778141158

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 (55) hide show
  1. package/autocomplete/autocomplete-base-element.js +1 -1
  2. package/autocomplete/autocomplete.component.js +1 -1
  3. package/{autocomplete-base-element-BuCAxBy3.js → autocomplete-base-element-CAWFmfLW.js} +20 -23
  4. package/autocomplete.js +1 -1
  5. package/autocomplete.pure.js +1 -1
  6. package/core/overlay/overlay-option-panel.js +6 -5
  7. package/core/styles/_index.scss +0 -1
  8. package/core/styles/core.scss +4 -2
  9. package/core/styles/option-panel-common.global.scss +11 -0
  10. package/core/styles/option-panel-common.scss +157 -0
  11. package/core/styles/styles.js +2 -2
  12. package/core.css +7 -5
  13. package/core.js +6 -7
  14. package/custom-elements.json +985 -1035
  15. package/development/autocomplete/autocomplete-base-element.d.ts +0 -1
  16. package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  17. package/development/autocomplete/autocomplete-base-element.js +1 -1
  18. package/development/autocomplete/autocomplete.component.js +1 -1
  19. package/development/autocomplete-base-element-DZx53PO1.js +683 -0
  20. package/development/autocomplete.js +1 -1
  21. package/development/autocomplete.pure.js +1 -1
  22. package/development/core/overlay/overlay-option-panel.d.ts +1 -1
  23. package/development/core/overlay/overlay-option-panel.d.ts.map +1 -1
  24. package/development/core/overlay/overlay-option-panel.js +5 -2
  25. package/development/core/styles/styles.d.ts +1 -0
  26. package/development/core/styles/styles.d.ts.map +1 -1
  27. package/development/core/styles/styles.js +2 -2
  28. package/development/core.d.ts +0 -1
  29. package/development/core.d.ts.map +1 -1
  30. package/development/core.js +2 -3
  31. package/development/select/select.component.d.ts +1 -2
  32. package/development/select/select.component.d.ts.map +1 -1
  33. package/development/select/select.component.js +1 -1
  34. package/development/select.component-VODtrUee.js +807 -0
  35. package/development/select.js +1 -1
  36. package/development/select.pure.js +1 -1
  37. package/development/styles-CmwkvLqU.js +22 -0
  38. package/off-brand-theme.css +7 -5
  39. package/package.json +2 -2
  40. package/safety-theme.css +7 -5
  41. package/select/select.component.js +1 -1
  42. package/{select.component-PLjAiAA3.js → select.component-CO-42jqH.js} +61 -61
  43. package/select.js +1 -1
  44. package/select.pure.js +1 -1
  45. package/standard-theme.css +7 -5
  46. package/styles-CgXa3TG9.js +5 -0
  47. package/core/overlay/overlay.js +0 -14
  48. package/core/styles/mixins/overlay.scss +0 -175
  49. package/development/autocomplete-base-element-CG5m0PpY.js +0 -686
  50. package/development/core/overlay/overlay.d.ts +0 -7
  51. package/development/core/overlay/overlay.d.ts.map +0 -1
  52. package/development/core/overlay/overlay.js +0 -20
  53. package/development/select.component-B8_tnz6D.js +0 -806
  54. package/development/styles-BzEbxmCd.js +0 -18
  55. package/styles-OHFAsnJq.js +0 -5
@@ -1,175 +0,0 @@
1
- @use '../core/functions';
2
- @use './scrollbar';
3
-
4
- @mixin options-panel-overlay-variables--global($theme: 'standard') {
5
- --sbb-options-panel-border-radius: var(--sbb-border-radius-4x);
6
- --sbb-options-panel-animation-timing-function: ease;
7
- --sbb-options-panel-background-color: var(--sbb-background-color-2);
8
- --sbb-options-panel-divider-margin-block: var(--sbb-spacing-fixed-3x);
9
- --sbb-options-panel-padding-block: #{functions.theme-pattern-select(
10
- (
11
- 'standard': var(--sbb-spacing-fixed-2x),
12
- 'lean': var(--sbb-spacing-fixed-1x),
13
- ),
14
- $theme
15
- )};
16
- }
17
-
18
- @mixin options-panel-overlay-variables {
19
- @include scrollbar.scrollbar-variables;
20
-
21
- --sbb-options-panel-position-x: 0;
22
- --sbb-options-panel-position-y: 0;
23
-
24
- // In order to have a valid value, we need a big integer to not fall into the minimum
25
- --_sbb-options-panel-max-height: min(
26
- var(--sbb-options-panel-max-height-calculated),
27
- var(--sbb-options-panel-max-height, 100000em)
28
- );
29
- --sbb-options-panel-min-height: var(--sbb-options-panel-origin-height);
30
- --sbb-options-panel-options-border-radius: 0 0 var(--sbb-options-panel-border-radius)
31
- var(--sbb-options-panel-border-radius);
32
- --sbb-options-panel-animation-duration: var(
33
- --sbb-disable-animation-duration,
34
- var(--sbb-animation-duration-4x)
35
- );
36
- --sbb-options-panel-gap-fix-top: calc(
37
- var(--sbb-options-panel-position-y) - var(--sbb-options-panel-border-radius)
38
- );
39
-
40
- // As the overlays have always a white background, we have to fix the focus outline color
41
- // to default color for cases where the overlays are used in a negative context.
42
- --sbb-focus-outline-color: light-dark(
43
- var(--sbb-focus-outline-color-default),
44
- var(--sbb-focus-outline-color-dark)
45
- );
46
- }
47
-
48
- @mixin options-panel-overlay-negative-variables {
49
- @include scrollbar.scrollbar-variables--color-negative;
50
-
51
- --sbb-options-panel-background-color: var(--sbb-background-color-2-negative);
52
-
53
- // As the overlays have always a white background, we have to fix the focus outline color
54
- // to default color for cases where the overlays are used in a negative context.
55
- --sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);
56
- }
57
-
58
- @mixin options-panel-overlay-size-s-variables {
59
- --sbb-options-panel-padding-block: var(--sbb-spacing-fixed-1x);
60
- }
61
-
62
- @mixin options-panel-overlay-size-m-variables {
63
- --sbb-options-panel-padding-block: var(--sbb-spacing-fixed-2x);
64
- }
65
-
66
- @mixin options-panel-overlay-container {
67
- position: fixed;
68
- pointer-events: none;
69
- inset: 0;
70
- z-index: var(--sbb-options-panel-internal-z-index);
71
- }
72
-
73
- @mixin options-panel-overlay-gap {
74
- display: flex;
75
- justify-content: space-between;
76
- position: fixed;
77
- visibility: var(--sbb-options-panel-visibility, visible);
78
- opacity: var(--sbb-options-panel-gap-fix-opacity, 0);
79
- background-color: transparent;
80
- width: var(--sbb-options-panel-width, fit-content);
81
- height: var(--sbb-options-panel-border-radius);
82
- top: var(--sbb-options-panel-gap-fix-top);
83
- left: var(--sbb-options-panel-position-x);
84
- transform: var(--sbb-options-panel-gap-fix-transform, none);
85
- transition: opacity var(--sbb-options-panel-animation-duration)
86
- var(--sbb-options-panel-animation-timing-function);
87
- }
88
-
89
- @mixin options-panel-overlay {
90
- display: block;
91
- position: absolute;
92
- visibility: var(--sbb-options-panel-visibility, 'visible');
93
- overflow: hidden;
94
- background-color: transparent;
95
- border: none;
96
- border-radius: var(--sbb-options-panel-border-radius);
97
- top: var(--sbb-options-panel-position-y);
98
- left: var(--sbb-options-panel-position-x);
99
- width: var(--sbb-options-panel-width, fit-content);
100
- transition: box-shadow var(--sbb-options-panel-animation-duration)
101
- var(--sbb-options-panel-animation-timing-function);
102
-
103
- &::before,
104
- &::after {
105
- content: '';
106
- display: none;
107
- position: relative;
108
- width: 100%;
109
- height: var(--sbb-options-panel-origin-height);
110
- background-color: transparent;
111
- border-radius: var(--sbb-options-panel-border-radius);
112
- pointer-events: none;
113
- transition: box-shadow var(--sbb-options-panel-animation-duration)
114
- var(--sbb-options-panel-animation-timing-function);
115
- z-index: 1;
116
- }
117
- }
118
-
119
- @mixin optionsOverlay {
120
- background-color: var(--sbb-options-panel-background-color);
121
- padding-block: var(--sbb-options-panel-padding-block);
122
- padding-inline: 0;
123
- border-radius: var(--sbb-options-panel-options-border-radius);
124
- max-height: var(--_sbb-options-panel-max-height);
125
- min-height: var(--sbb-options-panel-min-height);
126
- pointer-events: all;
127
- overflow-y: auto;
128
- animation: {
129
- name: var(--sbb-options-panel-animation-name);
130
- duration: var(--sbb-options-panel-animation-duration);
131
- timing-function: var(--sbb-options-panel-animation-timing-function);
132
- }
133
- }
134
-
135
- // Used to create the "wrapping" effect around the anchor for overlays (es. autocomplete/select)
136
- // Works in conjunction with the 'overlayGapFixCorners()' function in 'overlay.ts'
137
- @mixin overlay-gap-fix(
138
- $radius: var(--sbb-options-panel-border-radius),
139
- $color: var(--sbb-options-panel-background-color)
140
- ) {
141
- .sbb-gap-fix-wrapper {
142
- position: relative;
143
- overflow: hidden;
144
- width: $radius;
145
- height: $radius;
146
- background-color: transparent;
147
- }
148
-
149
- .sbb-gap-fix-corner {
150
- position: absolute;
151
- border-radius: 50%;
152
- border: calc($radius / 2) solid $color;
153
- width: calc($radius * 3);
154
- height: calc($radius * 3);
155
- bottom: calc(($radius / 2) * -1);
156
- }
157
-
158
- .sbb-gap-fix-corner#left {
159
- left: calc(($radius / 2) * -1);
160
-
161
- :host(:dir(rtl)) & {
162
- right: calc(($radius / 2) * -1);
163
- left: unset;
164
- }
165
- }
166
-
167
- .sbb-gap-fix-corner#right {
168
- right: calc(($radius / 2) * -1);
169
-
170
- :host(:dir(rtl)) & {
171
- left: calc(($radius / 2) * -1);
172
- right: unset;
173
- }
174
- }
175
- }