@warp-ds/elements 2.2.0-next.25 → 2.2.0-next.27

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.
@@ -143,107 +143,6 @@
143
143
  }
144
144
  ]
145
145
  },
146
- {
147
- "kind": "javascript-module",
148
- "path": "packages/alert/index.ts",
149
- "declarations": [
150
- {
151
- "kind": "class",
152
- "description": "Alert is an inline component used for displaying different types of messages.\n\nFor accessibility reasons, alert should appear close to the element that triggered it.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)",
153
- "name": "WarpAlert",
154
- "members": [
155
- {
156
- "kind": "field",
157
- "name": "variant",
158
- "type": {
159
- "text": "AlertVariants"
160
- },
161
- "default": "'info'",
162
- "attribute": "variant",
163
- "reflects": true,
164
- "parsedType": {
165
- "text": "'negative' | 'positive' | 'warning' | 'info'"
166
- }
167
- },
168
- {
169
- "kind": "field",
170
- "name": "show",
171
- "type": {
172
- "text": "boolean"
173
- },
174
- "default": "false",
175
- "attribute": "show",
176
- "reflects": true
177
- },
178
- {
179
- "kind": "field",
180
- "name": "role",
181
- "type": {
182
- "text": "string"
183
- },
184
- "default": "'alert'",
185
- "attribute": "role",
186
- "reflects": true
187
- }
188
- ],
189
- "attributes": [
190
- {
191
- "name": "variant",
192
- "type": {
193
- "text": "AlertVariants"
194
- },
195
- "default": "'info'",
196
- "fieldName": "variant",
197
- "parsedType": {
198
- "text": "'negative' | 'positive' | 'warning' | 'info'"
199
- }
200
- },
201
- {
202
- "name": "show",
203
- "type": {
204
- "text": "boolean"
205
- },
206
- "default": "false",
207
- "fieldName": "show"
208
- },
209
- {
210
- "name": "role",
211
- "type": {
212
- "text": "string"
213
- },
214
- "default": "'alert'",
215
- "fieldName": "role"
216
- }
217
- ],
218
- "superclass": {
219
- "name": "LitElement",
220
- "package": "lit"
221
- },
222
- "tagName": "w-alert",
223
- "customElement": true,
224
- "modulePath": "packages/alert/index.ts",
225
- "definitionPath": "packages/alert/index.ts"
226
- }
227
- ],
228
- "exports": [
229
- {
230
- "kind": "custom-element-definition",
231
- "name": "w-alert",
232
- "declaration": {
233
- "name": "WarpAlert",
234
- "module": "packages/alert/index.ts"
235
- }
236
- },
237
- {
238
- "kind": "js",
239
- "name": "WarpAlert",
240
- "declaration": {
241
- "name": "WarpAlert",
242
- "module": "packages/alert/index.ts"
243
- }
244
- }
245
- ]
246
- },
247
146
  {
248
147
  "kind": "javascript-module",
249
148
  "path": "packages/utils/index.js",
@@ -368,7 +267,7 @@
368
267
  "attribute": "variant",
369
268
  "reflects": true,
370
269
  "parsedType": {
371
- "text": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet'"
270
+ "text": "'primary' | 'secondary' | 'negative' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet'"
372
271
  }
373
272
  },
374
273
  {
@@ -476,7 +375,7 @@
476
375
  "default": "'secondary'",
477
376
  "fieldName": "variant",
478
377
  "parsedType": {
479
- "text": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet'"
378
+ "text": "'primary' | 'secondary' | 'negative' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet'"
480
379
  }
481
380
  },
482
381
  {
@@ -636,7 +535,7 @@
636
535
  "attribute": "variant",
637
536
  "reflects": true,
638
537
  "parsedType": {
639
- "text": "'negative' | 'primary' | 'secondary' | 'utility' | 'pill' | 'link'"
538
+ "text": "'primary' | 'secondary' | 'negative' | 'utility' | 'pill' | 'link'"
640
539
  }
641
540
  },
642
541
  {
@@ -761,7 +660,7 @@
761
660
  "default": "'secondary'",
762
661
  "fieldName": "variant",
763
662
  "parsedType": {
764
- "text": "'negative' | 'primary' | 'secondary' | 'utility' | 'pill' | 'link'"
663
+ "text": "'primary' | 'secondary' | 'negative' | 'utility' | 'pill' | 'link'"
765
664
  }
766
665
  },
767
666
  {
@@ -1232,6 +1131,107 @@
1232
1131
  }
1233
1132
  ]
1234
1133
  },
1134
+ {
1135
+ "kind": "javascript-module",
1136
+ "path": "packages/alert/index.ts",
1137
+ "declarations": [
1138
+ {
1139
+ "kind": "class",
1140
+ "description": "Alert is an inline component used for displaying different types of messages.\n\nFor accessibility reasons, alert should appear close to the element that triggered it.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)",
1141
+ "name": "WarpAlert",
1142
+ "members": [
1143
+ {
1144
+ "kind": "field",
1145
+ "name": "variant",
1146
+ "type": {
1147
+ "text": "AlertVariants"
1148
+ },
1149
+ "default": "'info'",
1150
+ "attribute": "variant",
1151
+ "reflects": true,
1152
+ "parsedType": {
1153
+ "text": "'negative' | 'positive' | 'warning' | 'info'"
1154
+ }
1155
+ },
1156
+ {
1157
+ "kind": "field",
1158
+ "name": "show",
1159
+ "type": {
1160
+ "text": "boolean"
1161
+ },
1162
+ "default": "false",
1163
+ "attribute": "show",
1164
+ "reflects": true
1165
+ },
1166
+ {
1167
+ "kind": "field",
1168
+ "name": "role",
1169
+ "type": {
1170
+ "text": "string"
1171
+ },
1172
+ "default": "'alert'",
1173
+ "attribute": "role",
1174
+ "reflects": true
1175
+ }
1176
+ ],
1177
+ "attributes": [
1178
+ {
1179
+ "name": "variant",
1180
+ "type": {
1181
+ "text": "AlertVariants"
1182
+ },
1183
+ "default": "'info'",
1184
+ "fieldName": "variant",
1185
+ "parsedType": {
1186
+ "text": "'negative' | 'positive' | 'warning' | 'info'"
1187
+ }
1188
+ },
1189
+ {
1190
+ "name": "show",
1191
+ "type": {
1192
+ "text": "boolean"
1193
+ },
1194
+ "default": "false",
1195
+ "fieldName": "show"
1196
+ },
1197
+ {
1198
+ "name": "role",
1199
+ "type": {
1200
+ "text": "string"
1201
+ },
1202
+ "default": "'alert'",
1203
+ "fieldName": "role"
1204
+ }
1205
+ ],
1206
+ "superclass": {
1207
+ "name": "LitElement",
1208
+ "package": "lit"
1209
+ },
1210
+ "tagName": "w-alert",
1211
+ "customElement": true,
1212
+ "modulePath": "packages/alert/index.ts",
1213
+ "definitionPath": "packages/alert/index.ts"
1214
+ }
1215
+ ],
1216
+ "exports": [
1217
+ {
1218
+ "kind": "custom-element-definition",
1219
+ "name": "w-alert",
1220
+ "declaration": {
1221
+ "name": "WarpAlert",
1222
+ "module": "packages/alert/index.ts"
1223
+ }
1224
+ },
1225
+ {
1226
+ "kind": "js",
1227
+ "name": "WarpAlert",
1228
+ "declaration": {
1229
+ "name": "WarpAlert",
1230
+ "module": "packages/alert/index.ts"
1231
+ }
1232
+ }
1233
+ ]
1234
+ },
1235
1235
  {
1236
1236
  "kind": "javascript-module",
1237
1237
  "path": "packages/badge/index.ts",
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
 
2
2
  import type { ccSuffix, ccPrefix, WarpAffix } from "./packages/affix/index.ts";
3
- import type { WarpAlert } from "./packages/alert/index.ts";
4
3
  import type { WarpLink } from "./packages/link/index.ts";
5
4
  import type { ccButton, WarpButton } from "./packages/button/index.ts";
6
5
  import type { ccAttention, WarpAttention } from "./packages/attention/index.ts";
6
+ import type { WarpAlert } from "./packages/alert/index.ts";
7
7
  import type { WarpBadge } from "./packages/badge/index.ts";
8
8
  import type { WarpBox } from "./packages/box/index.ts";
9
9
  import type { ccBreadcrumbs, WarpBreadcrumbs } from "./packages/breadcrumbs/index.ts";
@@ -131,18 +131,6 @@ Set an `aria-label` that explains the action when using this. */
131
131
  }
132
132
 
133
133
 
134
- export type WarpAlertProps = {
135
- /** */
136
- "variant"?: WarpAlert['variant'];
137
- /** */
138
- "show"?: WarpAlert['show'];
139
- /** */
140
- "role"?: WarpAlert['role'];
141
-
142
-
143
- }
144
-
145
-
146
134
  export type WarpLinkProps = {
147
135
  /** */
148
136
  "autofocus"?: WarpLink['autofocus'];
@@ -259,6 +247,18 @@ export type WarpAttentionProps = {
259
247
  }
260
248
 
261
249
 
250
+ export type WarpAlertProps = {
251
+ /** */
252
+ "variant"?: WarpAlert['variant'];
253
+ /** */
254
+ "show"?: WarpAlert['show'];
255
+ /** */
256
+ "role"?: WarpAlert['role'];
257
+
258
+
259
+ }
260
+
261
+
262
262
  export type WarpBadgeProps = {
263
263
  /** */
264
264
  "variant"?: WarpBadge['variant'];
@@ -944,24 +944,6 @@ export type WarpToastContainerProps = {
944
944
  "w-affix": Partial<WarpAffixProps & BaseProps<WarpAffix> & BaseEvents>;
945
945
 
946
946
 
947
- /**
948
- * Alert is an inline component used for displaying different types of messages.
949
- *
950
- * For accessibility reasons, alert should appear close to the element that triggered it.
951
- *
952
- * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)
953
- *
954
- * ## Attributes & Properties
955
- *
956
- * Component attributes and properties that can be applied to the element or by using JavaScript.
957
- *
958
- * - `variant`: undefined
959
- * - `show`: undefined
960
- * - `role`: undefined
961
- */
962
- "w-alert": Partial<WarpAlertProps & BaseProps<WarpAlert> & BaseEvents>;
963
-
964
-
965
947
  /**
966
948
  * Buttons are used to perform actions, with different visuals for different needs.
967
949
  *
@@ -1052,6 +1034,24 @@ export type WarpToastContainerProps = {
1052
1034
  "w-attention": Partial<WarpAttentionProps & BaseProps<WarpAttention> & BaseEvents>;
1053
1035
 
1054
1036
 
1037
+ /**
1038
+ * Alert is an inline component used for displaying different types of messages.
1039
+ *
1040
+ * For accessibility reasons, alert should appear close to the element that triggered it.
1041
+ *
1042
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)
1043
+ *
1044
+ * ## Attributes & Properties
1045
+ *
1046
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1047
+ *
1048
+ * - `variant`: undefined
1049
+ * - `show`: undefined
1050
+ * - `role`: undefined
1051
+ */
1052
+ "w-alert": Partial<WarpAlertProps & BaseProps<WarpAlert> & BaseEvents>;
1053
+
1054
+
1055
1055
  /**
1056
1056
  * `w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.
1057
1057
  *
@@ -2571,18 +2571,18 @@ Please compile your catalog first.
2571
2571
  background-color: var(--w-color-button-pill-background-active);
2572
2572
  }
2573
2573
  .header-close-button-on-image {
2574
- background-color: rgba(var(--w-rgb-black), 0.7);
2574
+ background-color: transparent;
2575
+ color: var(--w-s-color-text-inverted);
2575
2576
  right: 0.8rem;
2576
2577
  top: 0.8rem;
2577
2578
  position: absolute;
2578
2579
  z-index: 10;
2579
- color: var(--w-s-color-text-inverted);
2580
2580
  }
2581
2581
  .header-close-button-on-image:hover {
2582
- background-color: rgba(var(--w-rgb-black), 0.85);
2582
+ background-color: var(--w-color-button-pill-background-hover);
2583
2583
  }
2584
2584
  .header-close-button-on-image:active {
2585
- background-color: var(--w-black);
2585
+ background-color: var(--w-color-button-pill-background-active);
2586
2586
  }
2587
2587
  @media (min-width: 480px) {
2588
2588
  .header-title-bar {