@warp-ds/elements 2.2.0-next.21 → 2.2.0-next.23
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/README.md +26 -37
- package/dist/custom-elements.json +133 -125
- package/dist/index.d.ts +34 -31
- package/dist/packages/affix/index.js.map +2 -2
- package/dist/packages/alert/index.js +1 -1
- package/dist/packages/alert/index.js.map +2 -2
- package/dist/packages/alert/styles.js +1 -1
- package/dist/packages/attention/attention.stories.d.ts +1 -0
- package/dist/packages/attention/attention.stories.js +15 -8
- package/dist/packages/attention/index.js +1 -1
- package/dist/packages/attention/index.js.map +2 -2
- package/dist/packages/attention/styles.js +1 -1
- package/dist/packages/badge/index.js.map +2 -2
- package/dist/packages/box/index.js.map +2 -2
- package/dist/packages/breadcrumbs/index.js.map +2 -2
- package/dist/packages/button/index.js.map +2 -2
- package/dist/packages/card/index.js.map +2 -2
- package/dist/packages/combobox/index.js.map +2 -2
- package/dist/packages/dead-toggle/dead-toggle.react.stories.d.ts +1 -1
- package/dist/packages/dead-toggle/index.d.ts +1 -0
- package/dist/packages/dead-toggle/index.js +109 -48
- package/dist/packages/dead-toggle/index.js.map +4 -4
- package/dist/packages/expandable/index.js.map +2 -2
- package/dist/packages/pagination/index.js.map +2 -2
- package/dist/packages/pill/index.js +1 -1
- package/dist/packages/pill/index.js.map +2 -2
- package/dist/packages/pill/styles.js +1 -1
- package/dist/packages/rip-and-tear-checkbox/checkbox.d.ts +2 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.js +2559 -127
- package/dist/packages/rip-and-tear-checkbox/checkbox.js.map +4 -4
- package/dist/packages/rip-and-tear-checkbox/index.js +2559 -127
- package/dist/packages/rip-and-tear-checkbox/index.js.map +4 -4
- package/dist/packages/rip-and-tear-checkbox/styles.d.ts +0 -1
- package/dist/packages/rip-and-tear-checkbox/styles.js +0 -116
- package/dist/packages/rip-and-tear-radio/index.js +2529 -150
- package/dist/packages/rip-and-tear-radio/index.js.map +4 -4
- package/dist/packages/rip-and-tear-radio/radio-group-styles.js +0 -1
- package/dist/packages/rip-and-tear-radio/radio-group-styles.js.map +2 -2
- package/dist/packages/rip-and-tear-radio/radio-group.js +2529 -150
- package/dist/packages/rip-and-tear-radio/radio-group.js.map +4 -4
- package/dist/packages/rip-and-tear-radio/radio-styles.d.ts +0 -1
- package/dist/packages/rip-and-tear-radio/radio-styles.js +0 -169
- package/dist/packages/rip-and-tear-radio/radio-styles.js.map +4 -4
- package/dist/packages/rip-and-tear-radio/radio.js +2517 -137
- package/dist/packages/rip-and-tear-radio/radio.js.map +4 -4
- package/dist/packages/rip-and-tear-radio/radio.stories.js +2530 -151
- package/dist/packages/rip-and-tear-radio/radio.stories.js.map +4 -4
- package/dist/packages/select/index.js +1 -1
- package/dist/packages/select/index.js.map +2 -2
- package/dist/packages/select/styles.js +1 -1
- package/dist/packages/slider/index.js +1 -1
- package/dist/packages/slider/index.js.map +2 -2
- package/dist/packages/slider/slider-thumb.js +1 -1
- package/dist/packages/slider/slider-thumb.js.map +2 -2
- package/dist/packages/slider/styles.js +1 -1
- package/dist/packages/steps/index.js.map +2 -2
- package/dist/packages/switch/index.js.map +2 -2
- package/dist/packages/textfield/index.js +1 -1
- package/dist/packages/textfield/index.js.map +2 -2
- package/dist/packages/textfield/styles.js +1 -1
- package/dist/packages/toggle-styles.d.ts +1 -0
- package/dist/packages/toggle-styles.js +109 -0
- package/dist/vscode.html-custom-data.json +20 -19
- package/dist/web-types.json +41 -36
- package/package.json +1 -1
|
@@ -1,170 +1 @@
|
|
|
1
|
-
import{css as r}from"lit";var a=r`
|
|
2
|
-
:host {
|
|
3
|
-
color: var(--wa-form-control-value-color);
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
align-items: top;
|
|
7
|
-
font-family: inherit;
|
|
8
|
-
font-weight: var(--wa-form-control-value-font-weight);
|
|
9
|
-
line-height: var(--wa-form-control-value-line-height);
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
user-select: none;
|
|
12
|
-
-webkit-user-select: none;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
:host(:focus) {
|
|
16
|
-
outline: none;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
[part~='label'] {
|
|
20
|
-
display: inline;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
[part~='hint'] {
|
|
24
|
-
margin-block-start: 0.5em;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/* Default appearance */
|
|
28
|
-
:host([appearance='default']) .control {
|
|
29
|
-
flex: 0 0 auto;
|
|
30
|
-
position: relative;
|
|
31
|
-
display: inline-flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
justify-content: center;
|
|
34
|
-
width: var(--wa-form-control-toggle-size, 2rem);
|
|
35
|
-
height: var(--wa-form-control-toggle-size, 2rem);
|
|
36
|
-
border-color: var(--wa-form-control-border-color, gray);
|
|
37
|
-
border-radius: 50%;
|
|
38
|
-
border-style: var(--wa-form-control-border-style, solid);
|
|
39
|
-
border-width: var(--wa-form-control-border-width, 1px);
|
|
40
|
-
background-color: var(--wa-form-control-background-color, white);
|
|
41
|
-
color: transparent;
|
|
42
|
-
transition-property: all;
|
|
43
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
44
|
-
transition-duration: 150ms;
|
|
45
|
-
|
|
46
|
-
margin-inline-end: 0.5em;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
:host([appearance='clickable']) .control {
|
|
50
|
-
position: absolute;
|
|
51
|
-
inset: 0;
|
|
52
|
-
height: 100%;
|
|
53
|
-
width: 100%;
|
|
54
|
-
cursor: pointer;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/* Checked */
|
|
58
|
-
:host(:state(checked)):not(:host([appearance='clickable'])) .control {
|
|
59
|
-
/* color: var(--checked-icon-color, white); */
|
|
60
|
-
border-color: var(--wa-form-control-activated-color, blue);
|
|
61
|
-
background-color: var(--wa-form-control-background-color, white);
|
|
62
|
-
border-width: 0.6rem;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* Focus */
|
|
66
|
-
:host(:focus-visible) .control {
|
|
67
|
-
outline: 2px solid var(--w-s-color-border-focus);
|
|
68
|
-
outline-offset: var(--w-outline-offset, 1px);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
:host([appearance='clickable']:focus-visible) .control {
|
|
72
|
-
outline-offset: -4px;
|
|
73
|
-
border-radius: 8px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/* Disabled */
|
|
77
|
-
:host(:state(disabled)) {
|
|
78
|
-
opacity: 0.5;
|
|
79
|
-
cursor: not-allowed;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/* Button appearance */
|
|
83
|
-
:host([appearance='button']) {
|
|
84
|
-
align-items: center;
|
|
85
|
-
min-height: var(--wa-form-control-height);
|
|
86
|
-
background-color: var(--wa-color-surface-default);
|
|
87
|
-
border: var(--wa-form-control-border-width) var(--wa-form-control-border-style) var(--wa-form-control-border-color);
|
|
88
|
-
border-radius: var(--wa-border-radius-m);
|
|
89
|
-
padding: 0 var(--wa-form-control-padding-inline);
|
|
90
|
-
transition:
|
|
91
|
-
background-color var(--wa-transition-fast),
|
|
92
|
-
border-color var(--wa-transition-fast);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:host([appearance='button']) .control {
|
|
96
|
-
display: none;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/* Horizontal grouping - remove inner border radius */
|
|
100
|
-
:host([appearance='button'][data-wa-radio-horizontal][data-wa-radio-inner]) {
|
|
101
|
-
border-radius: 0;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
:host([appearance='button'][data-wa-radio-horizontal][data-wa-radio-first]) {
|
|
105
|
-
border-start-end-radius: 0;
|
|
106
|
-
border-end-end-radius: 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
:host([appearance='button'][data-wa-radio-horizontal][data-wa-radio-last]) {
|
|
110
|
-
border-start-start-radius: 0;
|
|
111
|
-
border-end-start-radius: 0;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/* Vertical grouping - remove inner border radius */
|
|
115
|
-
:host([appearance='button'][data-wa-radio-vertical][data-wa-radio-inner]) {
|
|
116
|
-
border-radius: 0;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
:host([appearance='button'][data-wa-radio-vertical][data-wa-radio-first]) {
|
|
120
|
-
border-end-start-radius: 0;
|
|
121
|
-
border-end-end-radius: 0;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
:host([appearance='button'][data-wa-radio-vertical][data-wa-radio-last]) {
|
|
125
|
-
border-start-start-radius: 0;
|
|
126
|
-
border-start-end-radius: 0;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
@media (hover: hover) {
|
|
130
|
-
:host([appearance='button']:hover:not(:state(disabled), :state(checked))) {
|
|
131
|
-
background-color: color-mix(in srgb, var(--wa-color-surface-default) 95%, var(--wa-color-mix-hover));
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
:host([appearance='button']:focus-visible) {
|
|
136
|
-
outline: var(--wa-focus-ring);
|
|
137
|
-
outline-offset: var(--wa-focus-ring-offset);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
:host([appearance='button']:state(checked)) {
|
|
141
|
-
border-color: var(--wa-form-control-activated-color);
|
|
142
|
-
background-color: var(--wa-color-brand-fill-quiet);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
:host([appearance='button']:state(checked):focus-visible) {
|
|
146
|
-
outline: var(--wa-focus-ring-style) var(--wa-focus-ring-width) var(--wa-color-brand-border-loud);
|
|
147
|
-
outline-offset: var(--wa-focus-ring-offset);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/* Remove inner borders and handle overlap */
|
|
151
|
-
:host([appearance='button'][data-wa-radio-horizontal]:not([data-wa-radio-first])) {
|
|
152
|
-
margin-inline-start: calc(-1 * var(--wa-form-control-border-width));
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
:host([appearance='button'][data-wa-radio-vertical]:not([data-wa-radio-first])) {
|
|
156
|
-
margin-block-start: calc(-1 * var(--wa-form-control-border-width));
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/* Ensure interactive states are visible above adjacent buttons */
|
|
160
|
-
:host([appearance='button']:hover),
|
|
161
|
-
:host([appearance='button']:state(checked)) {
|
|
162
|
-
position: relative;
|
|
163
|
-
z-index: 1;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
:host([appearance='button']:focus-visible) {
|
|
167
|
-
z-index: 2;
|
|
168
|
-
}
|
|
169
|
-
`;export{a as styles};
|
|
170
1
|
//# sourceMappingURL=radio-styles.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
3
|
+
"sources": [],
|
|
4
|
+
"sourcesContent": [],
|
|
5
|
+
"mappings": "",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|