@redvars/peacock 3.6.2 → 3.7.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/dist/ButtonConstants-D06bY4uy.js +114 -0
- package/dist/ButtonConstants-D06bY4uy.js.map +1 -0
- package/dist/{BaseHyperlinkMixin-BNuwbiEf.js → NativeHyperlinkMixin-DrYXyfMQ.js} +8 -10
- package/dist/NativeHyperlinkMixin-DrYXyfMQ.js.map +1 -0
- package/dist/assets/components.css +1 -1
- package/dist/assets/components.css.map +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles.css.map +1 -1
- package/dist/button-colors-Dwnez1tR.js +586 -0
- package/dist/button-colors-Dwnez1tR.js.map +1 -0
- package/dist/button-group.js +8 -8
- package/dist/button-group.js.map +1 -1
- package/dist/button.js +236 -133
- package/dist/button.js.map +1 -1
- package/dist/calendar-column-view.js +0 -1
- package/dist/calendar-column-view.js.map +1 -1
- package/dist/calendar-month-view.js +0 -1
- package/dist/calendar-month-view.js.map +1 -1
- package/dist/canvas.js +126 -107
- package/dist/canvas.js.map +1 -1
- package/dist/card-content.js +0 -1
- package/dist/card-content.js.map +1 -1
- package/dist/card.js +96 -90
- package/dist/card.js.map +1 -1
- package/dist/cb-compound-expression.js +4 -1
- package/dist/cb-compound-expression.js.map +1 -1
- package/dist/cb-divider.js +0 -1
- package/dist/cb-divider.js.map +1 -1
- package/dist/cb-expression.js +0 -2
- package/dist/cb-expression.js.map +1 -1
- package/dist/cb-predicate.js +0 -1
- package/dist/cb-predicate.js.map +1 -1
- package/dist/code-highlighter.js +23 -6
- package/dist/code-highlighter.js.map +1 -1
- package/dist/custom-elements-jsdocs.json +5079 -17882
- package/dist/custom-elements.json +19272 -19314
- package/dist/fab.js +181 -117
- package/dist/fab.js.map +1 -1
- package/dist/flow-designer.js +4 -4
- package/dist/icon-button-DJ0kZXYr.js +318 -0
- package/dist/icon-button-DJ0kZXYr.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/{navigation-rail-CD7IrqbN.js → navigation-rail-CM_svs5_.js} +1311 -730
- package/dist/navigation-rail-CM_svs5_.js.map +1 -0
- package/dist/observe-slot-change-D8Xg-kSS.js +60 -0
- package/dist/observe-slot-change-D8Xg-kSS.js.map +1 -0
- package/dist/peacock-loader.js +10 -7
- package/dist/peacock-loader.js.map +1 -1
- package/dist/popover-content.js +0 -1
- package/dist/popover-content.js.map +1 -1
- package/dist/search.js +15 -15
- package/dist/search.js.map +1 -1
- package/dist/src/__controllers/attachable-controller.d.ts +109 -0
- package/dist/src/__mixins/{BaseButtonMixin.d.ts → NativeButtonMixin.d.ts} +3 -3
- package/dist/src/__mixins/{BaseHyperlinkMixin.d.ts → NativeHyperlinkMixin.d.ts} +3 -4
- package/dist/src/__utils/is-link.d.ts +1 -0
- package/dist/src/__utils/observe-slot-change.d.ts +1 -1
- package/dist/src/accordion/accordion-item.d.ts +0 -1
- package/dist/src/breadcrumb/breadcrumb-item/breadcrumb-item.d.ts +0 -1
- package/dist/src/button/ButtonConstants.d.ts +1 -0
- package/dist/src/button/GroupButtonInterface.d.ts +4 -0
- package/dist/src/button/button/button.d.ts +32 -7
- package/dist/src/button/button-group/button-group.d.ts +2 -1
- package/dist/src/button/icon-button/icon-button.d.ts +26 -5
- package/dist/src/button/index.d.ts +1 -1
- package/dist/src/calendar/calendar-column-view.d.ts +0 -1
- package/dist/src/calendar/calendar-month-view.d.ts +0 -1
- package/dist/src/canvas/canvas.d.ts +3 -3
- package/dist/src/card/card-content.d.ts +0 -1
- package/dist/src/card/card.d.ts +9 -6
- package/dist/src/chip/chip/chip.d.ts +22 -3
- package/dist/src/condition-builder/cb-compound-expression.d.ts +0 -1
- package/dist/src/condition-builder/cb-divider.d.ts +0 -1
- package/dist/src/condition-builder/cb-expression.d.ts +0 -1
- package/dist/src/condition-builder/cb-predicate.d.ts +0 -1
- package/dist/src/fab/fab.d.ts +20 -6
- package/dist/src/field/field.d.ts +1 -0
- package/dist/src/focus-ring/focus-ring.d.ts +26 -20
- package/dist/src/image/image.d.ts +2 -2
- package/dist/src/index.d.ts +1 -0
- package/dist/src/input/input.d.ts +1 -3
- package/dist/src/item/index.d.ts +1 -0
- package/dist/src/item/item.d.ts +49 -0
- package/dist/src/link/link.d.ts +1 -1
- package/dist/src/list/list-item.d.ts +1 -2
- package/dist/src/menu/menu-item/menu-item.d.ts +9 -11
- package/dist/src/menu/sub-menu/sub-menu.d.ts +1 -1
- package/dist/src/navigation-rail/navigation-rail-item.d.ts +0 -2
- package/dist/src/navigation-rail/navigation-rail.d.ts +2 -6
- package/dist/src/popover/popover-content.d.ts +0 -1
- package/dist/src/ripple/ripple.d.ts +9 -1
- package/dist/src/search/search.d.ts +2 -6
- package/dist/src/segmented-button/segmented-button.d.ts +0 -1
- package/dist/src/select/option.d.ts +0 -1
- package/dist/src/sidebar-menu/sidebar-menu-item.d.ts +0 -1
- package/dist/src/sidebar-menu/sidebar-sub-menu.d.ts +0 -1
- package/dist/src/tabs/tab-panel.d.ts +0 -1
- package/dist/src/tabs/tab.d.ts +4 -6
- package/dist/test/item.test.d.ts +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -2
- package/readme.md +2 -2
- package/scss/components.scss +0 -1
- package/scss/mixin.scss +33 -13
- package/scss/styles.scss +1 -3
- package/src/__controllers/attachable-controller.ts +198 -0
- package/src/__mixins/NativeButtonMixin.ts +87 -0
- package/src/__mixins/{BaseHyperlinkMixin.ts → NativeHyperlinkMixin.ts} +15 -15
- package/src/__utils/is-link.ts +3 -0
- package/src/__utils/observe-slot-change.ts +46 -14
- package/src/accordion/accordion-item.scss +1 -1
- package/src/accordion/accordion-item.ts +0 -1
- package/src/breadcrumb/breadcrumb-item/breadcrumb-item.ts +0 -1
- package/src/button/ButtonConstants.ts +1 -0
- package/src/button/GroupButtonInterface.ts +4 -0
- package/src/button/button/button-colors.scss +2 -2
- package/src/button/button/button-layers.scss +124 -0
- package/src/button/button/button-sizes.scss +31 -53
- package/src/button/button/button.scss +139 -262
- package/src/button/button/button.ts +260 -106
- package/src/button/button/only-button.scss +13 -0
- package/src/button/button-group/button-group.ts +59 -17
- package/src/button/icon-button/icon-button-sizes.scss +12 -27
- package/src/button/icon-button/icon-button.ts +191 -83
- package/src/button/index.ts +1 -1
- package/src/calendar/calendar-column-view.ts +0 -1
- package/src/calendar/calendar-month-view.ts +0 -1
- package/src/canvas/canvas.scss +18 -6
- package/src/canvas/canvas.ts +125 -103
- package/src/card/card-content.ts +2 -3
- package/src/card/card.scss +87 -95
- package/src/card/card.ts +62 -60
- package/src/chip/chip/chip.scss +66 -71
- package/src/chip/chip/chip.ts +155 -56
- package/src/code-highlighter/code-highlighter.scss +1 -1
- package/src/code-highlighter/code-highlighter.ts +20 -5
- package/src/condition-builder/cb-compound-expression.scss +4 -0
- package/src/condition-builder/cb-compound-expression.ts +0 -1
- package/src/condition-builder/cb-divider.ts +0 -1
- package/src/condition-builder/cb-expression.scss +0 -1
- package/src/condition-builder/cb-expression.ts +0 -1
- package/src/condition-builder/cb-predicate.ts +0 -1
- package/src/elevation/elevation.scss +5 -1
- package/src/empty-state/empty-state.scss +1 -0
- package/src/fab/fab-colors.scss +2 -2
- package/src/fab/fab-sizes.scss +24 -34
- package/src/fab/fab.scss +77 -71
- package/src/fab/fab.ts +141 -65
- package/src/field/field.ts +6 -0
- package/src/focus-ring/focus-ring.ts +81 -72
- package/src/image/image.scss +21 -16
- package/src/image/image.ts +13 -14
- package/src/index.ts +1 -0
- package/src/input/input.ts +16 -25
- package/src/item/index.ts +1 -0
- package/src/item/item.scss +195 -0
- package/src/item/item.ts +362 -0
- package/src/link/link.scss +1 -10
- package/src/link/link.ts +4 -2
- package/src/list/list-item.ts +8 -8
- package/src/menu/menu/menu.ts +5 -9
- package/src/menu/menu-item/menu-item.scss +30 -108
- package/src/menu/menu-item/menu-item.ts +102 -133
- package/src/menu/sub-menu/sub-menu.ts +6 -3
- package/src/navigation-rail/navigation-rail-item.scss +5 -0
- package/src/navigation-rail/navigation-rail-item.ts +10 -15
- package/src/navigation-rail/navigation-rail.ts +2 -6
- package/src/peacock-loader.ts +5 -1
- package/src/popover/popover-content.ts +0 -1
- package/src/ripple/ripple.ts +52 -20
- package/src/search/search.scss +3 -0
- package/src/search/search.ts +11 -16
- package/src/segmented-button/segmented-button.ts +0 -1
- package/src/select/option.ts +1 -2
- package/src/select/select.scss +1 -10
- package/src/select/select.ts +2 -0
- package/src/sidebar-menu/sidebar-menu-item.ts +0 -1
- package/src/sidebar-menu/sidebar-sub-menu.ts +0 -1
- package/src/skeleton/skeleton.scss +5 -1
- package/src/tabs/tab-panel.ts +0 -1
- package/src/tabs/tab.ts +60 -70
- package/src/text/text.css-component.scss +3 -21
- package/src/tooltip/tooltip.scss +5 -8
- package/src/tooltip/tooltip.ts +1 -2
- package/dist/BaseButton-BNFAYn-S.js +0 -219
- package/dist/BaseButton-BNFAYn-S.js.map +0 -1
- package/dist/BaseHyperlinkMixin-BNuwbiEf.js.map +0 -1
- package/dist/button-colors-AvGh22Zn.js +0 -561
- package/dist/button-colors-AvGh22Zn.js.map +0 -1
- package/dist/icon-button-ohxHhy4t.js +0 -247
- package/dist/icon-button-ohxHhy4t.js.map +0 -1
- package/dist/navigation-rail-CD7IrqbN.js.map +0 -1
- package/dist/observe-slot-change-BGJfgg2E.js +0 -31
- package/dist/observe-slot-change-BGJfgg2E.js.map +0 -1
- package/dist/src/button/BaseButton.d.ts +0 -28
- package/dist/src/focus-ring/FocusAttachableController.d.ts +0 -8
- package/src/__mixins/BaseButtonMixin.ts +0 -83
- package/src/button/BaseButton.ts +0 -113
- package/src/focus-ring/FocusAttachableController.ts +0 -28
- package/src/popover/tooltip.css-component.scss +0 -19
|
@@ -1,561 +0,0 @@
|
|
|
1
|
-
import { a as i } from './IndividualComponent-DUINtMGK.js';
|
|
2
|
-
|
|
3
|
-
var css_248z$1 = i`* {
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.screen-reader-only {
|
|
8
|
-
display: none !important;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
:host {
|
|
12
|
-
display: inline-flex;
|
|
13
|
-
--button-height: unset;
|
|
14
|
-
--button-icon-size: unset;
|
|
15
|
-
--button-container-padding: unset;
|
|
16
|
-
--button-container-shape: var(--shape-corner-medium);
|
|
17
|
-
--button-container-shape-start-start: unset;
|
|
18
|
-
--button-container-shape-start-end: unset;
|
|
19
|
-
--button-container-shape-end-start: unset;
|
|
20
|
-
--button-container-shape-end-end: unset;
|
|
21
|
-
--button-container-shape-variant: squircle;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Private CSS Variables
|
|
26
|
-
* These variables are used internally within the button component
|
|
27
|
-
*/
|
|
28
|
-
slot::slotted(*) {
|
|
29
|
-
--icon-size: var(--button-icon-size, var(--_button-icon-size));
|
|
30
|
-
--icon-color: var(--_button_label-text-color);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/*
|
|
34
|
-
* Reset native button/link styles
|
|
35
|
-
*/
|
|
36
|
-
.button-element {
|
|
37
|
-
background: transparent;
|
|
38
|
-
border: none;
|
|
39
|
-
appearance: none;
|
|
40
|
-
margin: 0;
|
|
41
|
-
outline: none;
|
|
42
|
-
text-decoration: none;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.button {
|
|
46
|
-
position: relative;
|
|
47
|
-
display: flex;
|
|
48
|
-
flex-direction: column;
|
|
49
|
-
align-items: center;
|
|
50
|
-
justify-content: center;
|
|
51
|
-
height: var(--button-height);
|
|
52
|
-
padding: 0 var(--button-container-padding, var(--_button_container-padding));
|
|
53
|
-
width: 100%;
|
|
54
|
-
font-family: var(--font-family-sans) !important;
|
|
55
|
-
cursor: pointer;
|
|
56
|
-
--_button_container-shape-start-start: var(--button-container-shape-start-start, var(--button-container-shape));
|
|
57
|
-
--_button_container-shape-start-end: var(--button-container-shape-start-end, var(--button-container-shape));
|
|
58
|
-
--_button_container-shape-end-start: var(--button-container-shape-end-start, var(--button-container-shape));
|
|
59
|
-
--_button_container-shape-end-end: var(--button-container-shape-end-end, var(--button-container-shape));
|
|
60
|
-
--_button_container-corner-shape-variant: var(--button-container-shape-variant);
|
|
61
|
-
}
|
|
62
|
-
.button .button-content {
|
|
63
|
-
display: flex;
|
|
64
|
-
align-items: center;
|
|
65
|
-
justify-content: center;
|
|
66
|
-
pointer-events: none;
|
|
67
|
-
gap: var(--_button-icon-label-spacing);
|
|
68
|
-
width: 100%;
|
|
69
|
-
height: 100%;
|
|
70
|
-
z-index: 0;
|
|
71
|
-
color: var(--_button_label-text-color);
|
|
72
|
-
opacity: var(--_button_label-text-opacity, 1);
|
|
73
|
-
--icon-size: var(--button-icon-size, var(--_button-icon-size));
|
|
74
|
-
--icon-color: var(--_button_label-text-color);
|
|
75
|
-
}
|
|
76
|
-
.button .button-content .slot-container {
|
|
77
|
-
display: none;
|
|
78
|
-
}
|
|
79
|
-
.button.disabled {
|
|
80
|
-
cursor: not-allowed;
|
|
81
|
-
}
|
|
82
|
-
.button {
|
|
83
|
-
/*
|
|
84
|
-
Background layers
|
|
85
|
-
*/
|
|
86
|
-
}
|
|
87
|
-
.button .focus-ring {
|
|
88
|
-
z-index: 2;
|
|
89
|
-
--focus-ring-container-shape-start-start: var(--_button_container-shape-start-start);
|
|
90
|
-
--focus-ring-container-shape-start-end: var(--_button_container-shape-start-end);
|
|
91
|
-
--focus-ring-container-shape-end-start: var(--_button_container-shape-end-start);
|
|
92
|
-
--focus-ring-container-shape-end-end: var(--_button_container-shape-end-end);
|
|
93
|
-
--focus-ring-container-shape-variant: var(--_button_container-corner-shape-variant);
|
|
94
|
-
}
|
|
95
|
-
.button .ripple {
|
|
96
|
-
border-start-start-radius: var(--_button_container-shape-start-start);
|
|
97
|
-
border-start-end-radius: var(--_button_container-shape-start-end);
|
|
98
|
-
border-end-start-radius: var(--_button_container-shape-end-start);
|
|
99
|
-
border-end-end-radius: var(--_button_container-shape-end-end);
|
|
100
|
-
corner-shape: var(--_button_container-corner-shape-variant);
|
|
101
|
-
--ripple-state-opacity: var(--_button_state-opacity, 0);
|
|
102
|
-
--ripple-pressed-color: var(--_button_state-color);
|
|
103
|
-
}
|
|
104
|
-
.button .background {
|
|
105
|
-
display: block;
|
|
106
|
-
position: absolute;
|
|
107
|
-
left: 0;
|
|
108
|
-
width: 100%;
|
|
109
|
-
height: 100%;
|
|
110
|
-
background-color: var(--_button_container-color);
|
|
111
|
-
opacity: var(--_button_container-opacity, 1);
|
|
112
|
-
border-start-start-radius: var(--_button_container-shape-start-start);
|
|
113
|
-
border-start-end-radius: var(--_button_container-shape-start-end);
|
|
114
|
-
border-end-start-radius: var(--_button_container-shape-end-start);
|
|
115
|
-
border-end-end-radius: var(--_button_container-shape-end-end);
|
|
116
|
-
corner-shape: var(--_button_container-corner-shape-variant);
|
|
117
|
-
pointer-events: none;
|
|
118
|
-
}
|
|
119
|
-
.button .skeleton {
|
|
120
|
-
display: none;
|
|
121
|
-
width: 100%;
|
|
122
|
-
height: 100%;
|
|
123
|
-
z-index: 2;
|
|
124
|
-
position: absolute;
|
|
125
|
-
top: 0;
|
|
126
|
-
left: 0;
|
|
127
|
-
--skeleton-container-shape-start-start: var(--_button_container-shape-start-start);
|
|
128
|
-
--skeleton-container-shape-start-end: var(--_button_container-shape-start-end);
|
|
129
|
-
--skeleton-container-shape-end-start: var(--_button_container-shape-end-start);
|
|
130
|
-
--skeleton-container-shape-end-end: var(--_button_container-shape-end-end);
|
|
131
|
-
--skeleton-container-shape-variant: var(--_button_container-corner-shape-variant);
|
|
132
|
-
}
|
|
133
|
-
.button .elevation {
|
|
134
|
-
--elevation-level: var(--_button_container-elevation-level);
|
|
135
|
-
transition-duration: 280ms;
|
|
136
|
-
--elevation-container-shape-start-start: var(--_button_container-shape-start-start);
|
|
137
|
-
--elevation-container-shape-start-end: var(--_button_container-shape-start-end);
|
|
138
|
-
--elevation-container-shape-end-start: var(--_button_container-shape-end-start);
|
|
139
|
-
--elevation-container-shape-end-end: var(--_button_container-shape-end-end);
|
|
140
|
-
--elevation-container-shape-variant: var(--_button_container-corner-shape-variant);
|
|
141
|
-
}
|
|
142
|
-
.button .neo-background {
|
|
143
|
-
display: none;
|
|
144
|
-
position: absolute;
|
|
145
|
-
background: var(--color-inverse-surface);
|
|
146
|
-
border-start-start-radius: var(--_button_container-shape-start-start);
|
|
147
|
-
border-start-end-radius: var(--_button_container-shape-start-end);
|
|
148
|
-
border-end-start-radius: var(--_button_container-shape-end-start);
|
|
149
|
-
border-end-end-radius: var(--_button_container-shape-end-end);
|
|
150
|
-
corner-shape: var(--_button_container-corner-shape-variant);
|
|
151
|
-
width: 100%;
|
|
152
|
-
height: 100%;
|
|
153
|
-
pointer-events: none;
|
|
154
|
-
transform: translateX(0.25rem) translateY(0.25rem);
|
|
155
|
-
}
|
|
156
|
-
.button .outline {
|
|
157
|
-
z-index: 0;
|
|
158
|
-
display: none;
|
|
159
|
-
position: absolute;
|
|
160
|
-
left: 0;
|
|
161
|
-
width: 100%;
|
|
162
|
-
height: 100%;
|
|
163
|
-
pointer-events: none;
|
|
164
|
-
border: var(--_button_outline-width) solid var(--_button_outline-color);
|
|
165
|
-
opacity: var(--_button_outline-opacity, 1);
|
|
166
|
-
border-start-start-radius: var(--_button_container-shape-start-start);
|
|
167
|
-
border-start-end-radius: var(--_button_container-shape-start-end);
|
|
168
|
-
border-end-start-radius: var(--_button_container-shape-end-start);
|
|
169
|
-
border-end-end-radius: var(--_button_container-shape-end-end);
|
|
170
|
-
corner-shape: var(--_button_container-corner-shape-variant);
|
|
171
|
-
}
|
|
172
|
-
.button.has-content .slot-container {
|
|
173
|
-
display: flex;
|
|
174
|
-
flex: none;
|
|
175
|
-
justify-content: center;
|
|
176
|
-
}
|
|
177
|
-
.button.show-skeleton .background {
|
|
178
|
-
display: none;
|
|
179
|
-
}
|
|
180
|
-
.button.show-skeleton .neo-background {
|
|
181
|
-
display: none;
|
|
182
|
-
}
|
|
183
|
-
.button.show-skeleton .neo-background:before {
|
|
184
|
-
display: none;
|
|
185
|
-
}
|
|
186
|
-
.button.show-skeleton .ripple {
|
|
187
|
-
display: none;
|
|
188
|
-
}
|
|
189
|
-
.button.show-skeleton .skeleton {
|
|
190
|
-
display: block;
|
|
191
|
-
}
|
|
192
|
-
.button.icon-align-start .button-content {
|
|
193
|
-
flex-direction: row-reverse;
|
|
194
|
-
}
|
|
195
|
-
.button.icon-align-end .button-content {
|
|
196
|
-
flex-direction: row;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* Button variant definitions
|
|
201
|
-
*/
|
|
202
|
-
.button.variant-elevated {
|
|
203
|
-
--_button_container-color: var(--elevated-button-container-color);
|
|
204
|
-
--_button_label-text-color: var(--elevated-button-label-text-color);
|
|
205
|
-
--_button_container-elevation-level: 1;
|
|
206
|
-
--_button_state-color: var(--_button_label-text-color);
|
|
207
|
-
}
|
|
208
|
-
.button.variant-elevated:hover:not(:where(.disabled, .soft-disabled, .show-skeleton)) {
|
|
209
|
-
--_button_container-elevation-level: 2;
|
|
210
|
-
--_button_state-opacity: 0.08;
|
|
211
|
-
}
|
|
212
|
-
.button.variant-elevated.pressed:not(:where(.disabled, .soft-disabled, .show-skeleton)) {
|
|
213
|
-
--_button_container-elevation-level: 1;
|
|
214
|
-
--_button_state-opacity: 0.12;
|
|
215
|
-
}
|
|
216
|
-
.button.variant-elevated.disabled {
|
|
217
|
-
--_button_container-color: var(--color-on-surface);
|
|
218
|
-
--_button_container-opacity: 0.1;
|
|
219
|
-
--_button_label-text-color: var(--color-on-surface);
|
|
220
|
-
--_button_label-text-opacity: 0.38;
|
|
221
|
-
}
|
|
222
|
-
.button.variant-elevated.disabled .ripple {
|
|
223
|
-
display: none;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.button.variant-filled {
|
|
227
|
-
--_button_container-color: var(--filled-button-container-color);
|
|
228
|
-
--_button_label-text-color: var(--filled-button-label-text-color);
|
|
229
|
-
--_button_state-color: var(--_button_label-text-color);
|
|
230
|
-
}
|
|
231
|
-
.button.variant-filled:hover:not(:where(.disabled, .soft-disabled, .show-skeleton)) {
|
|
232
|
-
--_button_container-elevation-level: 1;
|
|
233
|
-
--_button_state-opacity: 0.08;
|
|
234
|
-
}
|
|
235
|
-
.button.variant-filled.pressed:not(:where(.disabled, .soft-disabled, .show-skeleton)) {
|
|
236
|
-
--_button_container-elevation-level: 0;
|
|
237
|
-
--_button_state-opacity: 0.1;
|
|
238
|
-
}
|
|
239
|
-
.button.variant-filled.disabled {
|
|
240
|
-
--_button_container-color: var(--color-on-surface);
|
|
241
|
-
--_button_container-opacity: 0.1;
|
|
242
|
-
--_button_label-text-color: var(--color-on-surface);
|
|
243
|
-
--_button_label-text-opacity: 0.38;
|
|
244
|
-
}
|
|
245
|
-
.button.variant-filled.disabled .ripple {
|
|
246
|
-
display: none;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.button.variant-tonal {
|
|
250
|
-
--_button_container-color: var(--tonal-button-container-color);
|
|
251
|
-
--_button_label-text-color: var(--tonal-button-label-text-color);
|
|
252
|
-
--_button_state-color: var(--_button_label-text-color);
|
|
253
|
-
}
|
|
254
|
-
.button.variant-tonal:hover:not(:where(.disabled, .soft-disabled, .show-skeleton)) {
|
|
255
|
-
--_button_container-elevation-level: 1;
|
|
256
|
-
--_button_state-opacity: 0.08;
|
|
257
|
-
}
|
|
258
|
-
.button.variant-tonal.pressed:not(:where(.disabled, .soft-disabled, .show-skeleton)) {
|
|
259
|
-
--_button_container-elevation-level: 0;
|
|
260
|
-
--_button_state-opacity: 0.12;
|
|
261
|
-
}
|
|
262
|
-
.button.variant-tonal.disabled {
|
|
263
|
-
--_button_container-color: var(--color-on-surface);
|
|
264
|
-
--_button_container-opacity: 0.1;
|
|
265
|
-
--_button_label-text-color: var(--color-on-surface);
|
|
266
|
-
--_button_label-text-opacity: 0.38;
|
|
267
|
-
}
|
|
268
|
-
.button.variant-tonal.disabled .ripple {
|
|
269
|
-
display: none;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.button.variant-outlined {
|
|
273
|
-
--_button_outline-width: var(--outlined-button-outline-width, 0.0675rem);
|
|
274
|
-
--_button_outline-color: var(--outlined-button-outline-color);
|
|
275
|
-
--_button_label-text-color: var(--outlined-button-label-text-color);
|
|
276
|
-
--_button_state-color: var(--_button_label-text-color);
|
|
277
|
-
}
|
|
278
|
-
.button.variant-outlined .outline {
|
|
279
|
-
display: block;
|
|
280
|
-
}
|
|
281
|
-
.button.variant-outlined:hover:not(:where(.disabled, .soft-disabled, .show-skeleton)) {
|
|
282
|
-
--_button_state-opacity: 0.08;
|
|
283
|
-
}
|
|
284
|
-
.button.variant-outlined.pressed:not(:where(.disabled, .soft-disabled, .show-skeleton)) {
|
|
285
|
-
--_button_state-opacity: 0.12;
|
|
286
|
-
}
|
|
287
|
-
.button.variant-outlined.disabled {
|
|
288
|
-
--_button_outline-color: var(--color-on-surface);
|
|
289
|
-
--_button_label-text-color: var(--color-on-surface);
|
|
290
|
-
--_button_label-text-opacity: 0.38;
|
|
291
|
-
--_button_outline-opacity: 0.12;
|
|
292
|
-
}
|
|
293
|
-
.button.variant-outlined.disabled .ripple {
|
|
294
|
-
display: none;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
.button.variant-text {
|
|
298
|
-
--_button_label-text-color: var(--text-button-label-text-color);
|
|
299
|
-
--_button_state-color: var(--_button_label-text-color);
|
|
300
|
-
}
|
|
301
|
-
.button.variant-text:hover:not(:where(.disabled, .soft-disabled, .show-skeleton)) {
|
|
302
|
-
--_button_state-opacity: 0.08;
|
|
303
|
-
}
|
|
304
|
-
.button.variant-text.pressed:not(:where(.disabled, .soft-disabled, .show-skeleton)) {
|
|
305
|
-
--_button_state-opacity: 0.12;
|
|
306
|
-
}
|
|
307
|
-
.button.variant-text.disabled {
|
|
308
|
-
--_button_label-text-color: var(--color-on-surface);
|
|
309
|
-
--_button_label-text-opacity: 0.38;
|
|
310
|
-
}
|
|
311
|
-
.button.variant-text.disabled .ripple {
|
|
312
|
-
display: none;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
.button.variant-neo {
|
|
316
|
-
--_button_container-color: var(--neo-button-container-color);
|
|
317
|
-
--_button_label-text-color: var(--neo-button-label-text-color);
|
|
318
|
-
--_button_outline-width: var(--outlined-button-outline-width, 0.125rem);
|
|
319
|
-
--_button_outline-color: var(--color-inverse-surface);
|
|
320
|
-
}
|
|
321
|
-
.button.variant-neo .outline {
|
|
322
|
-
display: block;
|
|
323
|
-
}
|
|
324
|
-
.button.variant-neo .neo-background {
|
|
325
|
-
display: block;
|
|
326
|
-
}
|
|
327
|
-
.button.variant-neo .focus-ring {
|
|
328
|
-
--focus-ring-color: var(--color-primary-container);
|
|
329
|
-
--focus-ring-inset: -2px;
|
|
330
|
-
}
|
|
331
|
-
.button.variant-neo .ripple {
|
|
332
|
-
display: none;
|
|
333
|
-
}
|
|
334
|
-
.button.variant-neo.pressed:not(:where(.disabled, .soft-disabled, .show-skeleton)) .background, .button.variant-neo.pressed:not(:where(.disabled, .soft-disabled, .show-skeleton)) .button-content, .button.variant-neo.pressed:not(:where(.disabled, .soft-disabled, .show-skeleton)) .outline, .button.variant-neo.pressed:not(:where(.disabled, .soft-disabled, .show-skeleton)) .focus-ring {
|
|
335
|
-
transform: translateX(0.25rem) translateY(0.25rem);
|
|
336
|
-
}
|
|
337
|
-
.button.variant-neo.disabled {
|
|
338
|
-
--_button_container-color: var(--color-on-surface);
|
|
339
|
-
--_button_container-opacity: 0.1;
|
|
340
|
-
--_button_label-text-color: var(--color-on-surface);
|
|
341
|
-
--_button_label-text-opacity: 0.38;
|
|
342
|
-
--_button_outline-opacity: 0.12;
|
|
343
|
-
}
|
|
344
|
-
.button.variant-neo.disabled .ripple {
|
|
345
|
-
display: none;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
:host([block]) {
|
|
349
|
-
width: 100%;
|
|
350
|
-
}`;
|
|
351
|
-
|
|
352
|
-
var css_248z = i`:host([color=primary]:not([toggle])) {
|
|
353
|
-
--filled-button-container-color: var(--color-primary);
|
|
354
|
-
--filled-button-label-text-color: var(--color-on-primary);
|
|
355
|
-
--tonal-button-container-color: var(--color-primary-container);
|
|
356
|
-
--tonal-button-label-text-color: var(--color-on-primary-container);
|
|
357
|
-
--elevated-button-container-color: var(--color-surface-container-low);
|
|
358
|
-
--elevated-button-label-text-color: var(--color-primary);
|
|
359
|
-
--outlined-button-outline-color: var(--color-primary);
|
|
360
|
-
--outlined-button-label-text-color: var(--color-primary);
|
|
361
|
-
--text-button-label-text-color: var(--color-primary);
|
|
362
|
-
--neo-button-container-color: var(--color-primary);
|
|
363
|
-
--neo-button-label-text-color: var(--color-on-primary);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
:host([color=primary][toggle][selected]) {
|
|
367
|
-
--filled-button-container-color: var(--color-primary);
|
|
368
|
-
--filled-button-label-text-color: var(--color-on-primary);
|
|
369
|
-
--tonal-button-container-color: var(--color-primary);
|
|
370
|
-
--tonal-button-label-text-color: var(--color-on-primary);
|
|
371
|
-
--elevated-button-container-color: var(--color-primary);
|
|
372
|
-
--elevated-button-label-text-color: var(--color-on-primary);
|
|
373
|
-
--outlined-button-outline-color: var(--color-inverse-surface);
|
|
374
|
-
--outlined-button-label-text-color: var(--color-inverse-on-surface);
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
:host([color=primary][toggle]:not([selected])) {
|
|
378
|
-
--filled-button-container-color: var(--color-surface-container);
|
|
379
|
-
--filled-button-label-text-color: var(--color-surface-container-variant);
|
|
380
|
-
--tonal-button-container-color: var(--color-primary-container);
|
|
381
|
-
--tonal-button-label-text-color: var(--color-on-primary-container);
|
|
382
|
-
--elevated-button-container-color: var(--color-surface-container-low);
|
|
383
|
-
--elevated-button-label-text-color: var(--color-primary);
|
|
384
|
-
--outlined-button-outline-color: var(--color-primary);
|
|
385
|
-
--outlined-button-label-text-color: var(--color-primary);
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
:host([color=secondary]:not([toggle])) {
|
|
389
|
-
--filled-button-container-color: var(--color-secondary);
|
|
390
|
-
--filled-button-label-text-color: var(--color-on-secondary);
|
|
391
|
-
--tonal-button-container-color: var(--color-secondary-container);
|
|
392
|
-
--tonal-button-label-text-color: var(--color-on-secondary-container);
|
|
393
|
-
--elevated-button-container-color: var(--color-surface-container-low);
|
|
394
|
-
--elevated-button-label-text-color: var(--color-secondary);
|
|
395
|
-
--outlined-button-outline-color: var(--color-secondary);
|
|
396
|
-
--outlined-button-label-text-color: var(--color-secondary);
|
|
397
|
-
--text-button-label-text-color: var(--color-secondary);
|
|
398
|
-
--neo-button-container-color: var(--color-secondary);
|
|
399
|
-
--neo-button-label-text-color: var(--color-on-secondary);
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
:host([color=secondary][toggle][selected]) {
|
|
403
|
-
--filled-button-container-color: var(--color-secondary);
|
|
404
|
-
--filled-button-label-text-color: var(--color-on-secondary);
|
|
405
|
-
--tonal-button-container-color: var(--color-secondary);
|
|
406
|
-
--tonal-button-label-text-color: var(--color-on-secondary);
|
|
407
|
-
--elevated-button-container-color: var(--color-secondary);
|
|
408
|
-
--elevated-button-label-text-color: var(--color-on-secondary);
|
|
409
|
-
--outlined-button-outline-color: var(--color-inverse-surface);
|
|
410
|
-
--outlined-button-label-text-color: var(--color-inverse-on-surface);
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
:host([color=secondary][toggle]:not([selected])) {
|
|
414
|
-
--filled-button-container-color: var(--color-surface-container);
|
|
415
|
-
--filled-button-label-text-color: var(--color-surface-container-variant);
|
|
416
|
-
--tonal-button-container-color: var(--color-secondary-container);
|
|
417
|
-
--tonal-button-label-text-color: var(--color-on-secondary-container);
|
|
418
|
-
--elevated-button-container-color: var(--color-surface-container-low);
|
|
419
|
-
--elevated-button-label-text-color: var(--color-secondary);
|
|
420
|
-
--outlined-button-outline-color: var(--color-secondary);
|
|
421
|
-
--outlined-button-label-text-color: var(--color-secondary);
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
:host([color=tertiary]:not([toggle])) {
|
|
425
|
-
--filled-button-container-color: var(--color-tertiary);
|
|
426
|
-
--filled-button-label-text-color: var(--color-on-tertiary);
|
|
427
|
-
--tonal-button-container-color: var(--color-tertiary-container);
|
|
428
|
-
--tonal-button-label-text-color: var(--color-on-tertiary-container);
|
|
429
|
-
--elevated-button-container-color: var(--color-surface-container-low);
|
|
430
|
-
--elevated-button-label-text-color: var(--color-tertiary);
|
|
431
|
-
--outlined-button-outline-color: var(--color-tertiary);
|
|
432
|
-
--outlined-button-label-text-color: var(--color-tertiary);
|
|
433
|
-
--text-button-label-text-color: var(--color-tertiary);
|
|
434
|
-
--neo-button-container-color: var(--color-tertiary);
|
|
435
|
-
--neo-button-label-text-color: var(--color-on-tertiary);
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
:host([color=tertiary][toggle][selected]) {
|
|
439
|
-
--filled-button-container-color: var(--color-tertiary);
|
|
440
|
-
--filled-button-label-text-color: var(--color-on-tertiary);
|
|
441
|
-
--tonal-button-container-color: var(--color-tertiary);
|
|
442
|
-
--tonal-button-label-text-color: var(--color-on-tertiary);
|
|
443
|
-
--elevated-button-container-color: var(--color-tertiary);
|
|
444
|
-
--elevated-button-label-text-color: var(--color-on-tertiary);
|
|
445
|
-
--outlined-button-outline-color: var(--color-inverse-surface);
|
|
446
|
-
--outlined-button-label-text-color: var(--color-inverse-on-surface);
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
:host([color=tertiary][toggle]:not([selected])) {
|
|
450
|
-
--filled-button-container-color: var(--color-surface-container);
|
|
451
|
-
--filled-button-label-text-color: var(--color-surface-container-variant);
|
|
452
|
-
--tonal-button-container-color: var(--color-tertiary-container);
|
|
453
|
-
--tonal-button-label-text-color: var(--color-on-tertiary-container);
|
|
454
|
-
--elevated-button-container-color: var(--color-surface-container-low);
|
|
455
|
-
--elevated-button-label-text-color: var(--color-tertiary);
|
|
456
|
-
--outlined-button-outline-color: var(--color-tertiary);
|
|
457
|
-
--outlined-button-label-text-color: var(--color-tertiary);
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
:host([color=success]:not([toggle])) {
|
|
461
|
-
--filled-button-container-color: var(--color-success);
|
|
462
|
-
--filled-button-label-text-color: var(--color-on-success);
|
|
463
|
-
--tonal-button-container-color: var(--color-success-container);
|
|
464
|
-
--tonal-button-label-text-color: var(--color-on-success-container);
|
|
465
|
-
--elevated-button-container-color: var(--color-surface-container-low);
|
|
466
|
-
--elevated-button-label-text-color: var(--color-success);
|
|
467
|
-
--outlined-button-outline-color: var(--color-success);
|
|
468
|
-
--outlined-button-label-text-color: var(--color-success);
|
|
469
|
-
--text-button-label-text-color: var(--color-success);
|
|
470
|
-
--neo-button-container-color: var(--color-success);
|
|
471
|
-
--neo-button-label-text-color: var(--color-on-success);
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
:host([color=success][toggle][selected]) {
|
|
475
|
-
--filled-button-container-color: var(--color-success);
|
|
476
|
-
--filled-button-label-text-color: var(--color-on-success);
|
|
477
|
-
--tonal-button-container-color: var(--color-success);
|
|
478
|
-
--tonal-button-label-text-color: var(--color-on-success);
|
|
479
|
-
--elevated-button-container-color: var(--color-success);
|
|
480
|
-
--elevated-button-label-text-color: var(--color-on-success);
|
|
481
|
-
--outlined-button-outline-color: var(--color-inverse-surface);
|
|
482
|
-
--outlined-button-label-text-color: var(--color-inverse-on-surface);
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
:host([color=success][toggle]:not([selected])) {
|
|
486
|
-
--filled-button-container-color: var(--color-surface-container);
|
|
487
|
-
--filled-button-label-text-color: var(--color-surface-container-variant);
|
|
488
|
-
--tonal-button-container-color: var(--color-success-container);
|
|
489
|
-
--tonal-button-label-text-color: var(--color-on-success-container);
|
|
490
|
-
--elevated-button-container-color: var(--color-surface-container-low);
|
|
491
|
-
--elevated-button-label-text-color: var(--color-success);
|
|
492
|
-
--outlined-button-outline-color: var(--color-success);
|
|
493
|
-
--outlined-button-label-text-color: var(--color-success);
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
:host([color=danger]:not([toggle])) {
|
|
497
|
-
--filled-button-container-color: var(--color-error);
|
|
498
|
-
--filled-button-label-text-color: var(--color-on-error);
|
|
499
|
-
--tonal-button-container-color: var(--color-error-container);
|
|
500
|
-
--tonal-button-label-text-color: var(--color-on-error-container);
|
|
501
|
-
--elevated-button-container-color: var(--color-surface-container-low);
|
|
502
|
-
--elevated-button-label-text-color: var(--color-error);
|
|
503
|
-
--outlined-button-outline-color: var(--color-error);
|
|
504
|
-
--outlined-button-label-text-color: var(--color-error);
|
|
505
|
-
--text-button-label-text-color: var(--color-error);
|
|
506
|
-
--neo-button-container-color: var(--color-error);
|
|
507
|
-
--neo-button-label-text-color: var(--color-on-error);
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
:host([color=danger][toggle][selected]) {
|
|
511
|
-
--filled-button-container-color: var(--color-error);
|
|
512
|
-
--filled-button-label-text-color: var(--color-on-error);
|
|
513
|
-
--tonal-button-container-color: var(--color-error);
|
|
514
|
-
--tonal-button-label-text-color: var(--color-on-error);
|
|
515
|
-
--elevated-button-container-color: var(--color-error);
|
|
516
|
-
--elevated-button-label-text-color: var(--color-on-error);
|
|
517
|
-
--outlined-button-outline-color: var(--color-inverse-surface);
|
|
518
|
-
--outlined-button-label-text-color: var(--color-inverse-on-surface);
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
:host([color=danger][toggle]:not([selected])) {
|
|
522
|
-
--filled-button-container-color: var(--color-surface-container);
|
|
523
|
-
--filled-button-label-text-color: var(--color-surface-container-variant);
|
|
524
|
-
--tonal-button-container-color: var(--color-error-container);
|
|
525
|
-
--tonal-button-label-text-color: var(--color-on-error-container);
|
|
526
|
-
--elevated-button-container-color: var(--color-surface-container-low);
|
|
527
|
-
--elevated-button-label-text-color: var(--color-error);
|
|
528
|
-
--outlined-button-outline-color: var(--color-error);
|
|
529
|
-
--outlined-button-label-text-color: var(--color-error);
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
:host([color=on-surface]) {
|
|
533
|
-
--filled-button-container-color: var(--color-on-surface);
|
|
534
|
-
--filled-button-label-text-color: var(--color-surface);
|
|
535
|
-
--tonal-button-container-color: var(--color-on-surface-container);
|
|
536
|
-
--tonal-button-label-text-color: var(--color-surface-container-high);
|
|
537
|
-
--elevated-button-container-color: var(--color-on-surface);
|
|
538
|
-
--elevated-button-label-text-color: var(--color-surface);
|
|
539
|
-
--outlined-button-outline-color: var(--color-on-surface);
|
|
540
|
-
--outlined-button-label-text-color: var(--color-on-surface);
|
|
541
|
-
--text-button-label-text-color: var(--color-on-surface);
|
|
542
|
-
--neo-button-container-color: var(--color-on-surface);
|
|
543
|
-
--neo-button-label-text-color: var(--color-surface);
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
:host([color=surface]) {
|
|
547
|
-
--filled-button-container-color: var(--color-surface-container-high);
|
|
548
|
-
--filled-button-label-text-color: var(--color-on-surface);
|
|
549
|
-
--tonal-button-container-color: var(--color-surface-container-high);
|
|
550
|
-
--tonal-button-label-text-color: var(--color-on-surface-container);
|
|
551
|
-
--elevated-button-container-color: var(--color-surface);
|
|
552
|
-
--elevated-button-label-text-color: var(--color-on-surface);
|
|
553
|
-
--outlined-button-outline-color: var(--color-on-surface);
|
|
554
|
-
--outlined-button-label-text-color: var(--color-on-surface);
|
|
555
|
-
--text-button-label-text-color: var(--color-on-surface);
|
|
556
|
-
--neo-button-container-color: var(--color-surface);
|
|
557
|
-
--neo-button-label-text-color: var(--color-on-surface);
|
|
558
|
-
}`;
|
|
559
|
-
|
|
560
|
-
export { css_248z as a, css_248z$1 as c };
|
|
561
|
-
//# sourceMappingURL=button-colors-AvGh22Zn.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-colors-AvGh22Zn.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|