carbon-components-svelte 0.96.0 → 0.97.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.
@@ -0,0 +1,57 @@
1
+ // This file adds slider validation message styles from carbon-components v11+
2
+ // to ensure compatibility with carbon-components v10.58.12.
3
+ // The validation message feature provides consistency with other input components.
4
+
5
+ //
6
+ // Copyright IBM Corp. 2016, 2023
7
+ //
8
+ // This source code is licensed under the Apache-2.0 license found in the
9
+ // LICENSE file in the root directory of this source tree.
10
+ //
11
+
12
+ @import 'carbon-components/scss/globals/scss/vars';
13
+ @import 'carbon-components/scss/globals/scss/helper-mixins';
14
+ @import 'carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/import-once/import-once';
15
+
16
+ /// Slider validation message styles
17
+ /// @access private
18
+ /// @group slider
19
+ @mixin slider-validation {
20
+ //----------------------------------------------
21
+ // Validation message
22
+ // ---------------------------------------------
23
+ .#{$prefix}--slider__validation-msg.#{$prefix}--form-requirement {
24
+ display: block;
25
+ overflow: visible;
26
+ max-height: 100%;
27
+ }
28
+
29
+ .#{$prefix}--slider__validation-msg--invalid {
30
+ color: $text-error;
31
+ }
32
+
33
+ //----------------------------------------------
34
+ // Readonly state
35
+ // ---------------------------------------------
36
+ .#{$prefix}--slider--readonly.#{$prefix}--slider {
37
+ cursor: default;
38
+ }
39
+
40
+ .#{$prefix}--slider-container--readonly .#{$prefix}--slider__thumb {
41
+ height: 0;
42
+ width: 0;
43
+
44
+ &::before,
45
+ &::after {
46
+ display: none;
47
+ }
48
+ }
49
+
50
+ .#{$prefix}--slider-container--readonly .#{$prefix}--slider-text-input {
51
+ background-color: transparent;
52
+ }
53
+ }
54
+
55
+ @include exports('slider-validation') {
56
+ @include slider-validation;
57
+ }
package/css/_stack.scss CHANGED
@@ -86,6 +86,46 @@
86
86
  .#{$prefix}--stack-scale-13 {
87
87
  gap: 10rem;
88
88
  }
89
+
90
+ .#{$prefix}--stack-align-start {
91
+ align-items: flex-start;
92
+ }
93
+
94
+ .#{$prefix}--stack-align-center {
95
+ align-items: center;
96
+ }
97
+
98
+ .#{$prefix}--stack-align-end {
99
+ align-items: flex-end;
100
+ }
101
+
102
+ .#{$prefix}--stack-align-baseline {
103
+ align-items: baseline;
104
+ }
105
+
106
+ .#{$prefix}--stack-justify-start {
107
+ justify-content: flex-start;
108
+ }
109
+
110
+ .#{$prefix}--stack-justify-center {
111
+ justify-content: center;
112
+ }
113
+
114
+ .#{$prefix}--stack-justify-end {
115
+ justify-content: flex-end;
116
+ }
117
+
118
+ .#{$prefix}--stack-justify-space-between {
119
+ justify-content: space-between;
120
+ }
121
+
122
+ .#{$prefix}--stack-justify-space-around {
123
+ justify-content: space-around;
124
+ }
125
+
126
+ .#{$prefix}--stack-justify-space-evenly {
127
+ justify-content: space-evenly;
128
+ }
89
129
  }
90
130
 
91
131
  @include exports('stack') {