@carbon/styles 1.15.0 → 1.16.0-rc.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.
- package/css/styles.css +2563 -2399
- package/css/styles.min.css +1 -1
- package/package.json +5 -5
- package/scss/__tests__/__snapshots__/type-test.js.snap +1097 -1065
- package/scss/components/_index.scss +3 -0
- package/scss/components/button/_tokens.scss +76 -75
- package/scss/components/data-table/sort/_data-table-sort.scss +1 -1
- package/scss/components/fluid-combo-box/_fluid-combo-box.scss +71 -0
- package/scss/components/fluid-combo-box/_index.scss +11 -0
- package/scss/components/fluid-list-box/_fluid-list-box.scss +42 -4
- package/scss/components/fluid-multiselect/_fluid-multiselect.scss +41 -0
- package/scss/components/fluid-multiselect/_index.scss +11 -0
- package/scss/components/fluid-select/_fluid-select.scss +158 -0
- package/scss/components/fluid-select/_index.scss +11 -0
- package/scss/components/number-input/_number-input.scss +1 -1
- package/scss/components/overflow-menu/_overflow-menu.scss +1 -1
- package/scss/components/tag/_tokens.scss +152 -150
- package/scss/components/text-input/_text-input.scss +11 -0
- package/scss/components/ui-shell/header/_header.scss +0 -19
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2022
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
//-----------------------------
|
|
9
|
+
// Fluid Select
|
|
10
|
+
//-----------------------------
|
|
11
|
+
@use '../../config' as *;
|
|
12
|
+
@use '../../motion' as *;
|
|
13
|
+
@use '../../spacing' as *;
|
|
14
|
+
@use '../../theme' as *;
|
|
15
|
+
@use '../../utilities/convert' as *;
|
|
16
|
+
@use '../../utilities/focus-outline' as *;
|
|
17
|
+
@use '../select';
|
|
18
|
+
|
|
19
|
+
@mixin fluid-select {
|
|
20
|
+
.#{$prefix}--select--fluid .#{$prefix}--select {
|
|
21
|
+
position: relative;
|
|
22
|
+
height: 100%;
|
|
23
|
+
background: $field;
|
|
24
|
+
transition: background-color $duration-fast-01 motion(standard, productive),
|
|
25
|
+
outline $duration-fast-01 motion(standard, productive);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.#{$prefix}--select--fluid .#{$prefix}--label {
|
|
29
|
+
position: absolute;
|
|
30
|
+
z-index: 1;
|
|
31
|
+
top: rem(13px);
|
|
32
|
+
left: $spacing-05;
|
|
33
|
+
display: flex;
|
|
34
|
+
height: rem(16px);
|
|
35
|
+
align-items: center;
|
|
36
|
+
margin: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.#{$prefix}--select--fluid .#{$prefix}--select-input {
|
|
40
|
+
min-height: rem(64px);
|
|
41
|
+
padding: rem(32px) $spacing-05 rem(13px);
|
|
42
|
+
outline: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.#{$prefix}--select--fluid .#{$prefix}--select__arrow {
|
|
46
|
+
top: auto;
|
|
47
|
+
bottom: 1rem;
|
|
48
|
+
height: 1rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.#{$prefix}--select--fluid .#{$prefix}--select__divider {
|
|
52
|
+
display: none;
|
|
53
|
+
transition: border-color $duration-fast-01 motion(standard, productive);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Invalid + Warn states
|
|
57
|
+
.#{$prefix}--select--fluid .#{$prefix}--select--invalid {
|
|
58
|
+
@include focus-outline('invalid');
|
|
59
|
+
|
|
60
|
+
outline-offset: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.#{$prefix}--select--fluid
|
|
64
|
+
.#{$prefix}--select--invalid
|
|
65
|
+
.#{$prefix}--select__divider,
|
|
66
|
+
.#{$prefix}--select--fluid
|
|
67
|
+
.#{$prefix}--select--warning
|
|
68
|
+
.#{$prefix}--select__divider {
|
|
69
|
+
display: block;
|
|
70
|
+
width: calc(100% - 2rem);
|
|
71
|
+
border: none;
|
|
72
|
+
border-bottom: 1px solid $border-subtle;
|
|
73
|
+
margin: 0 1rem;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.#{$prefix}--select--fluid
|
|
77
|
+
.#{$prefix}--select-input__wrapper[data-invalid]
|
|
78
|
+
.#{$prefix}--select-input,
|
|
79
|
+
.#{$prefix}--select--fluid
|
|
80
|
+
.#{$prefix}--select--warning
|
|
81
|
+
.#{$prefix}--select-input {
|
|
82
|
+
border-bottom: 1px solid transparent;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.#{$prefix}--select--fluid .#{$prefix}--select--warning {
|
|
86
|
+
border-bottom: 1px solid $border-strong;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.#{$prefix}--select--fluid
|
|
90
|
+
.#{$prefix}--select-input__wrapper[data-invalid]
|
|
91
|
+
.#{$prefix}--select-input:not(:focus),
|
|
92
|
+
.#{$prefix}--select--fluid
|
|
93
|
+
.#{$prefix}--select--warning
|
|
94
|
+
.#{$prefix}--select-input:not(:focus) {
|
|
95
|
+
outline: none;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.#{$prefix}--select--fluid .#{$prefix}--form-requirement {
|
|
99
|
+
padding: $spacing-03 rem(40px) $spacing-03 $spacing-05;
|
|
100
|
+
margin: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.#{$prefix}--select--fluid
|
|
104
|
+
.#{$prefix}--select-input__wrapper[data-invalid]:hover
|
|
105
|
+
+ .#{$prefix}--select__divider,
|
|
106
|
+
.#{$prefix}--select--fluid
|
|
107
|
+
.#{$prefix}--select--warning
|
|
108
|
+
.#{$prefix}--select-input__wrapper:hover
|
|
109
|
+
+ .#{$prefix}--select__divider {
|
|
110
|
+
border-color: transparent;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.#{$prefix}--select--fluid
|
|
114
|
+
.#{$prefix}--select--invalid
|
|
115
|
+
.#{$prefix}--select__invalid-icon,
|
|
116
|
+
.#{$prefix}--select--fluid
|
|
117
|
+
.#{$prefix}--select--warning
|
|
118
|
+
.#{$prefix}--select__invalid-icon {
|
|
119
|
+
top: rem(73px);
|
|
120
|
+
right: $spacing-05;
|
|
121
|
+
pointer-events: none;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Focus styles
|
|
125
|
+
.#{$prefix}--select--fluid .#{$prefix}--select--fluid--focus {
|
|
126
|
+
@include focus-outline('outline');
|
|
127
|
+
|
|
128
|
+
outline-offset: 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.#{$prefix}--select--fluid
|
|
132
|
+
.#{$prefix}--select--fluid--focus
|
|
133
|
+
.#{$prefix}--select-input,
|
|
134
|
+
.#{$prefix}--select--fluid
|
|
135
|
+
.#{$prefix}--select--fluid--focus.#{$prefix}--select--warning {
|
|
136
|
+
border-bottom: 1px solid transparent;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// Disabled state
|
|
140
|
+
.#{$prefix}--select--fluid
|
|
141
|
+
.#{$prefix}--select--disabled
|
|
142
|
+
.#{$prefix}--toggletip-label {
|
|
143
|
+
color: $text-disabled;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.#{$prefix}--select--fluid
|
|
147
|
+
.#{$prefix}--select--disabled
|
|
148
|
+
.#{$prefix}--toggletip-button {
|
|
149
|
+
pointer-events: none;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.#{$prefix}--select--fluid
|
|
153
|
+
.#{$prefix}--select--disabled
|
|
154
|
+
.#{$prefix}--toggletip-button
|
|
155
|
+
svg {
|
|
156
|
+
fill: $icon-disabled;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2022
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@forward 'fluid-select';
|
|
9
|
+
@use 'fluid-select';
|
|
10
|
+
|
|
11
|
+
@include fluid-select.fluid-select;
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
border-radius: 0;
|
|
52
52
|
color: $text-primary;
|
|
53
53
|
font-family: font-family('mono');
|
|
54
|
-
font-weight:
|
|
54
|
+
font-weight: 400;
|
|
55
55
|
transition: background-color $duration-fast-01 motion(standard, productive),
|
|
56
56
|
outline $duration-fast-01 motion(standard, productive);
|
|
57
57
|
|