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

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.
Files changed (33) hide show
  1. package/dist/custom-elements.json +106 -124
  2. package/dist/index.d.ts +31 -31
  3. package/dist/packages/attention/index.d.ts +0 -1
  4. package/dist/packages/attention/index.js +27 -18
  5. package/dist/packages/attention/index.js.map +3 -3
  6. package/dist/packages/button/button.stories.d.ts +4 -0
  7. package/dist/packages/button/button.stories.js +33 -1
  8. package/dist/packages/modal/index.js +18 -35
  9. package/dist/packages/modal/index.js.map +2 -2
  10. package/dist/packages/modal/modal-header.js +13 -30
  11. package/dist/packages/modal/modal-header.js.map +2 -2
  12. package/dist/packages/modal/modal.stories.js +1 -1
  13. package/dist/packages/slider/index.js +155 -95
  14. package/dist/packages/slider/index.js.map +3 -3
  15. package/dist/packages/slider/slider-thumb.js +108 -66
  16. package/dist/packages/slider/slider-thumb.js.map +3 -3
  17. package/dist/packages/slider/slider.js +45 -27
  18. package/dist/packages/slider/slider.js.map +3 -3
  19. package/dist/packages/slider/slider.react.stories.js +2 -3
  20. package/dist/packages/slider/slider.stories.d.ts +1 -0
  21. package/dist/packages/slider/slider.stories.js +6 -12
  22. package/dist/packages/slider/styles/w-slider-thumb.styles.js +62 -27
  23. package/dist/packages/slider/styles/w-slider.styles.js +32 -16
  24. package/dist/packages/textfield/index.js +12 -3
  25. package/dist/packages/textfield/index.js.map +2 -2
  26. package/dist/packages/textfield/styles/w-textfield.styles.js +9 -0
  27. package/dist/packages/toast/index.js +3 -3
  28. package/dist/packages/toast/index.js.map +2 -2
  29. package/dist/packages/toast/toast.js +3 -3
  30. package/dist/packages/toast/toast.js.map +2 -2
  31. package/dist/vscode.html-custom-data.json +20 -20
  32. package/dist/web-types.json +39 -39
  33. package/package.json +1 -1
@@ -143,6 +143,107 @@
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
+ },
146
247
  {
147
248
  "kind": "javascript-module",
148
249
  "path": "packages/utils/index.js",
@@ -267,7 +368,7 @@
267
368
  "attribute": "variant",
268
369
  "reflects": true,
269
370
  "parsedType": {
270
- "text": "'primary' | 'secondary' | 'negative' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet'"
371
+ "text": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet'"
271
372
  }
272
373
  },
273
374
  {
@@ -375,7 +476,7 @@
375
476
  "default": "'secondary'",
376
477
  "fieldName": "variant",
377
478
  "parsedType": {
378
- "text": "'primary' | 'secondary' | 'negative' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet'"
479
+ "text": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet'"
379
480
  }
380
481
  },
381
482
  {
@@ -535,7 +636,7 @@
535
636
  "attribute": "variant",
536
637
  "reflects": true,
537
638
  "parsedType": {
538
- "text": "'primary' | 'secondary' | 'negative' | 'utility' | 'pill' | 'link'"
639
+ "text": "'negative' | 'primary' | 'secondary' | 'utility' | 'pill' | 'link'"
539
640
  }
540
641
  },
541
642
  {
@@ -660,7 +761,7 @@
660
761
  "default": "'secondary'",
661
762
  "fieldName": "variant",
662
763
  "parsedType": {
663
- "text": "'primary' | 'secondary' | 'negative' | 'utility' | 'pill' | 'link'"
764
+ "text": "'negative' | 'primary' | 'secondary' | 'utility' | 'pill' | 'link'"
664
765
  }
665
766
  },
666
767
  {
@@ -787,7 +888,7 @@
787
888
  "type": {
788
889
  "text": "object"
789
890
  },
790
- "default": "{ base: 'border-2 relative flex items-start', tooltip: 's-bg-inverted border-[--w-s-color-background-inverted] shadow-m s-text-inverted-static rounded-4 py-6 px-8', callout: 'bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8', highlight: 'bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8 drop-shadow-m translate-z-0', popover: 'bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300] s-text rounded-8 p-16 drop-shadow-m translate-z-0', arrowBase: 'absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform', arrowDirectionLeftStart: '-left-[8px]', arrowDirectionLeft: '-left-[8px]', arrowDirectionLeftEnd: '-left-[8px]', arrowDirectionRightStart: '-right-[8px]', arrowDirectionRight: '-right-[8px]', arrowDirectionRightEnd: '-right-[8px]', arrowDirectionBottomStart: '-bottom-[8px]', arrowDirectionBottom: '-bottom-[8px]', arrowDirectionBottomEnd: '-bottom-[8px]', arrowDirectionTopStart: '-top-[8px]', arrowDirectionTop: '-top-[8px]', arrowDirectionTopEnd: '-top-[8px]', arrowTooltip: 's-bg-inverted border-[--w-s-color-background-inverted]', arrowCallout: 'bg-[--w-color-callout-background] border-[--w-color-callout-border]', arrowPopover: 'bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300]', arrowHighlight: 'bg-[--w-color-callout-background] border-[--w-color-callout-border]', content: 'last-child:mb-0', notCallout: 'absolute z-50', closeBtn: `${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonColors.pill} justify-self-end -mr-8 ml-8`, }"
891
+ "default": "{ base: 'border-2 relative flex items-center', tooltip: 's-bg-inverted border-[--w-s-color-background-inverted] shadow-m s-text-inverted-static rounded-4 py-6 px-8', callout: 'bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8', highlight: 'bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8 drop-shadow-m translate-z-0', popover: 'bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300] s-text rounded-8 p-16 drop-shadow-m translate-z-0', arrowBase: 'absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform', arrowDirectionLeftStart: '-left-[8px]', arrowDirectionLeft: '-left-[8px]', arrowDirectionLeftEnd: '-left-[8px]', arrowDirectionRightStart: '-right-[8px]', arrowDirectionRight: '-right-[8px]', arrowDirectionRightEnd: '-right-[8px]', arrowDirectionBottomStart: '-bottom-[8px]', arrowDirectionBottom: '-bottom-[8px]', arrowDirectionBottomEnd: '-bottom-[8px]', arrowDirectionTopStart: '-top-[8px]', arrowDirectionTop: '-top-[8px]', arrowDirectionTopEnd: '-top-[8px]', arrowTooltip: 's-bg-inverted border-[--w-s-color-background-inverted]', arrowCallout: 'bg-[--w-color-callout-background] border-[--w-color-callout-border]', arrowPopover: 'bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300]', arrowHighlight: 'bg-[--w-color-callout-background] border-[--w-color-callout-border]', content: 'last-child:mb-0', notCallout: 'absolute z-50', }"
791
892
  },
792
893
  {
793
894
  "kind": "class",
@@ -1131,107 +1232,6 @@
1131
1232
  }
1132
1233
  ]
1133
1234
  },
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",
@@ -5972,14 +5972,6 @@
5972
5972
  },
5973
5973
  "description": "Function to format the to- and from labels and value in the slider thumb tooltip."
5974
5974
  },
5975
- {
5976
- "kind": "field",
5977
- "name": "#thumbSize",
5978
- "privacy": "private",
5979
- "type": {
5980
- "text": "number"
5981
- }
5982
- },
5983
5975
  {
5984
5976
  "kind": "method",
5985
5977
  "name": "#syncSliderThumbs",
@@ -6029,16 +6021,6 @@
6029
6021
  }
6030
6022
  ],
6031
6023
  "description": "We use CSS variables to fill the active track with a background color."
6032
- },
6033
- {
6034
- "kind": "method",
6035
- "name": "#getActiveRangeWidth",
6036
- "privacy": "private",
6037
- "return": {
6038
- "type": {
6039
- "text": "number"
6040
- }
6041
- }
6042
6024
  }
6043
6025
  ],
6044
6026
  "attributes": [
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";
3
4
  import type { WarpLink } from "./packages/link/index.ts";
4
5
  import type { ccButton, WarpButton } from "./packages/button/index.ts";
5
6
  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,6 +131,18 @@ 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
+
134
146
  export type WarpLinkProps = {
135
147
  /** */
136
148
  "autofocus"?: WarpLink['autofocus'];
@@ -247,18 +259,6 @@ export type WarpAttentionProps = {
247
259
  }
248
260
 
249
261
 
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,6 +944,24 @@ 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
+
947
965
  /**
948
966
  * Buttons are used to perform actions, with different visuals for different needs.
949
967
  *
@@ -1034,24 +1052,6 @@ export type WarpToastContainerProps = {
1034
1052
  "w-attention": Partial<WarpAttentionProps & BaseProps<WarpAttention> & BaseEvents>;
1035
1053
 
1036
1054
 
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
  *
@@ -27,7 +27,6 @@ export declare const ccAttention: {
27
27
  arrowHighlight: string;
28
28
  content: string;
29
29
  notCallout: string;
30
- closeBtn: string;
31
30
  };
32
31
  declare class WarpAttention extends LitElement {
33
32
  show: boolean;