@warp-ds/elements 2.9.2-next.1 → 2.10.0-next.2
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/custom-elements.json +281 -58
- package/dist/docs/button/accessibility.md +42 -0
- package/dist/docs/button/api.md +63 -39
- package/dist/docs/button/button.md +322 -40
- package/dist/docs/button/examples.md +126 -0
- package/dist/docs/button/usage.md +89 -0
- package/dist/docs/card/accessibility.md +74 -0
- package/dist/docs/card/api.md +9 -3
- package/dist/docs/card/card.md +234 -3
- package/dist/docs/card/examples.md +75 -0
- package/dist/docs/card/usage.md +76 -0
- package/dist/docs/modal/accessibility.md +1 -0
- package/dist/docs/modal/api.md +51 -0
- package/dist/docs/modal/examples.md +67 -0
- package/dist/docs/modal/modal.md +238 -0
- package/dist/docs/modal/usage.md +110 -0
- package/dist/docs/modal-footer/accessibility.md +1 -0
- package/dist/docs/modal-footer/api.md +11 -0
- package/dist/docs/modal-footer/examples.md +1 -0
- package/dist/docs/modal-footer/modal-footer.md +23 -0
- package/dist/docs/modal-footer/usage.md +1 -0
- package/dist/docs/modal-header/accessibility.md +1 -0
- package/dist/docs/modal-header/api.md +42 -0
- package/dist/docs/modal-header/examples.md +1 -0
- package/dist/docs/modal-header/modal-header.md +54 -0
- package/dist/docs/modal-header/usage.md +1 -0
- package/dist/docs/page-indicator/api.md +6 -6
- package/dist/docs/page-indicator/examples.md +8 -0
- package/dist/docs/page-indicator/page-indicator.md +23 -6
- package/dist/docs/page-indicator/usage.md +8 -0
- package/dist/docs/pagination/api.md +12 -10
- package/dist/docs/pagination/examples.md +20 -0
- package/dist/docs/pagination/pagination.md +50 -12
- package/dist/docs/pagination/usage.md +18 -0
- package/dist/docs/pill/accessibility.md +2 -0
- package/dist/docs/pill/api.md +10 -26
- package/dist/docs/pill/examples.md +23 -0
- package/dist/docs/pill/pill.md +43 -28
- package/dist/docs/pill/usage.md +8 -0
- package/dist/index.d.ts +341 -301
- package/dist/packages/affix/affix.js.map +1 -1
- package/dist/packages/attention/attention.js +23 -21
- package/dist/packages/attention/attention.js.map +4 -4
- package/dist/packages/attention/attention.test.js +1 -1
- package/dist/packages/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/packages/button/button.d.ts +54 -37
- package/dist/packages/button/button.js +17 -15
- package/dist/packages/button/button.js.map +4 -4
- package/dist/packages/button/button.react.stories.d.ts +2 -2
- package/dist/packages/button/react.d.ts +1 -1
- package/dist/packages/card/card.d.ts +9 -6
- package/dist/packages/card/card.js.map +3 -3
- package/dist/packages/checkbox/checkbox.test.js +1 -1
- package/dist/packages/checkbox-group/checkbox-group.a11y.test.js +1 -1
- package/dist/packages/checkbox-group/checkbox-group.js.map +1 -1
- package/dist/packages/combobox/combobox.js.map +1 -1
- package/dist/packages/datepicker/DatePicker.test.js +1 -1
- package/dist/packages/datepicker/datepicker.js.map +1 -1
- package/dist/packages/datepicker/datepicker.test.js +1 -1
- package/dist/packages/link/link.test.js +1 -1
- package/dist/packages/modal/index.d.ts +4 -4
- package/dist/packages/modal/index.js +4 -4
- package/dist/packages/modal/modal.d.ts +21 -12
- package/dist/packages/modal/modal.js +4 -4
- package/dist/packages/modal/modal.js.map +3 -3
- package/dist/packages/modal/modal.react.stories.d.ts +3 -3
- package/dist/packages/modal/modal.stories.d.ts +2 -1
- package/dist/packages/modal/modal.stories.js +85 -3
- package/dist/packages/modal/react.d.ts +2 -2
- package/dist/packages/modal-footer/modal-footer.d.ts +5 -3
- package/dist/packages/modal-footer/modal-footer.js +4 -4
- package/dist/packages/modal-footer/modal-footer.js.map +3 -3
- package/dist/packages/modal-footer/react.d.ts +1 -1
- package/dist/packages/modal-header/modal-header.d.ts +21 -11
- package/dist/packages/modal-header/modal-header.js +3 -1
- package/dist/packages/modal-header/modal-header.js.map +4 -4
- package/dist/packages/modal-header/react.d.ts +2 -2
- package/dist/packages/page-indicator/page-indicator.d.ts +9 -14
- package/dist/packages/page-indicator/page-indicator.js.map +3 -3
- package/dist/packages/pagination/pagination.d.ts +11 -11
- package/dist/packages/pagination/pagination.js.map +3 -3
- package/dist/packages/pagination/pagination.test.js +1 -1
- package/dist/packages/pill/pill.d.ts +14 -29
- package/dist/packages/pill/pill.js.map +3 -3
- package/dist/packages/pill/pill.react.stories.d.ts +2 -2
- package/dist/packages/pill/react.d.ts +1 -1
- package/dist/packages/radio/radio.test.js +1 -1
- package/dist/packages/radio-group/radio-group.a11y.test.js +1 -1
- package/dist/packages/radio-group/radio-group.js.map +1 -1
- package/dist/packages/select/select.js.map +1 -1
- package/dist/packages/slider/slider.js.map +1 -1
- package/dist/packages/slider/slider.test.js +1 -1
- package/dist/packages/slider-thumb/slider-thumb.js.map +1 -1
- package/dist/packages/step/step.js.map +1 -1
- package/dist/packages/switch/switch.a11y.test.js +1 -1
- package/dist/packages/tabs/tabs.a11y.test.js +1 -1
- package/dist/packages/tabs/tabs.test.js +1 -1
- package/dist/packages/textarea/textarea.js.map +1 -1
- package/dist/packages/textarea/textarea.test.js +1 -1
- package/dist/packages/textfield/textfield.test.js +1 -1
- package/dist/packages/toast/toast.js.map +1 -1
- package/dist/web-types.json +290 -73
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -14,9 +14,15 @@ import type { WCheckboxGroup } from "./packages/checkbox-group/checkbox-group.ts
|
|
|
14
14
|
import type { WarpCombobox } from "./packages/combobox/combobox.ts";
|
|
15
15
|
import type { WarpDatepicker } from "./packages/datepicker/datepicker.ts";
|
|
16
16
|
import type { WarpExpandable } from "./packages/expandable/expandable.ts";
|
|
17
|
-
import type { ModalMain } from "./packages/modal/modal.ts";
|
|
18
|
-
import type {
|
|
19
|
-
|
|
17
|
+
import type { WarpModal, ModalMain } from "./packages/modal/modal.ts";
|
|
18
|
+
import type {
|
|
19
|
+
WarpModalFooter,
|
|
20
|
+
ModalFooter,
|
|
21
|
+
} from "./packages/modal-footer/modal-footer.ts";
|
|
22
|
+
import type {
|
|
23
|
+
WarpModalHeader,
|
|
24
|
+
ModalHeader,
|
|
25
|
+
} from "./packages/modal-header/modal-header.ts";
|
|
20
26
|
import type { WarpPageIndicator } from "./packages/page-indicator/page-indicator.ts";
|
|
21
27
|
import type { WarpPagination } from "./packages/pagination/pagination.ts";
|
|
22
28
|
import type { WarpPill } from "./packages/pill/pill.ts";
|
|
@@ -384,85 +390,125 @@ export type WarpLinkSolidJsProps = {
|
|
|
384
390
|
};
|
|
385
391
|
|
|
386
392
|
export type WarpButtonProps = {
|
|
387
|
-
/**
|
|
393
|
+
/** Native button type.
|
|
394
|
+
Controls whether the internal button behaves as a regular button, submits a form, or resets a form. Defaults to `button`. */
|
|
388
395
|
type?: WarpButton["type"];
|
|
389
|
-
/**
|
|
396
|
+
/** Focuses the button when it is first rendered.
|
|
397
|
+
Applies only when the component renders a native button. Link buttons with `href` do not autofocus through this component. */
|
|
390
398
|
autofocus?: WarpButton["autofocus"];
|
|
391
|
-
/**
|
|
399
|
+
/** Visual style of the button.
|
|
400
|
+
Defaults to `secondary`. Use the variant that matches the action priority, risk, and placement. */
|
|
392
401
|
variant?: WarpButton["variant"];
|
|
393
|
-
/** @deprecated Use `variant="quiet"` instead
|
|
402
|
+
/** @deprecated Use `variant="quiet"` instead - Deprecated quiet visual treatment flag
|
|
403
|
+
Use `variant="quiet"` instead. */
|
|
394
404
|
quiet?: WarpButton["quiet"];
|
|
395
|
-
/**
|
|
405
|
+
/** Marks the button as icon-only.
|
|
406
|
+
Use this when the button has no visible text. Include accessible text in the slotted content so the internal button has a name. */
|
|
396
407
|
"icon-only"?: WarpButton["iconOnly"];
|
|
397
|
-
/**
|
|
408
|
+
/** Marks the button as icon-only.
|
|
409
|
+
Use this when the button has no visible text. Include accessible text in the slotted content so the internal button has a name. */
|
|
398
410
|
iconOnly?: WarpButton["iconOnly"];
|
|
399
|
-
/**
|
|
411
|
+
/** Renders the compact button size.
|
|
412
|
+
Use this in dense layouts where the default button size is too large. */
|
|
400
413
|
small?: WarpButton["small"];
|
|
401
|
-
/**
|
|
414
|
+
/** Shows the loading state.
|
|
415
|
+
Use after the user has triggered an action and the action is in progress. */
|
|
402
416
|
loading?: WarpButton["loading"];
|
|
403
|
-
/**
|
|
417
|
+
/** URL for rendering the button as a link.
|
|
418
|
+
When set, the component renders `w-link` instead of a native `button`. */
|
|
404
419
|
href?: WarpButton["href"];
|
|
405
|
-
/**
|
|
420
|
+
/** Link browsing context.
|
|
421
|
+
Passed to the rendered link when `href` is set. */
|
|
406
422
|
target?: WarpButton["target"];
|
|
407
|
-
/**
|
|
423
|
+
/** Visually disables the button.
|
|
424
|
+
Disabled buttons are discouraged because they can hide the reason an action is unavailable. */
|
|
408
425
|
disabled?: WarpButton["disabled"];
|
|
409
|
-
/**
|
|
426
|
+
/** Link relationship.
|
|
427
|
+
Passed to the rendered link when `href` is set. If `target="_blank"` is set and `rel` is omitted, `noopener` is used. */
|
|
410
428
|
rel?: WarpButton["rel"];
|
|
411
|
-
/**
|
|
429
|
+
/** Makes the button fill its parent width.
|
|
430
|
+
Useful in narrow layouts where the button should span the available inline space. */
|
|
412
431
|
"full-width"?: WarpButton["fullWidth"];
|
|
413
|
-
/**
|
|
432
|
+
/** Makes the button fill its parent width.
|
|
433
|
+
Useful in narrow layouts where the button should span the available inline space. */
|
|
414
434
|
fullWidth?: WarpButton["fullWidth"];
|
|
415
|
-
/** @deprecated This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button.
|
|
435
|
+
/** @deprecated This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button. - Deprecated class applied to the internal control
|
|
436
|
+
This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the button appearance. */
|
|
416
437
|
"button-class"?: WarpButton["buttonClass"];
|
|
417
|
-
/** @deprecated This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button.
|
|
438
|
+
/** @deprecated This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button. - Deprecated class applied to the internal control
|
|
439
|
+
This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the button appearance. */
|
|
418
440
|
buttonClass?: WarpButton["buttonClass"];
|
|
419
|
-
/**
|
|
441
|
+
/** Form control name.
|
|
442
|
+
Used when the button participates in form handling. */
|
|
420
443
|
name?: WarpButton["name"];
|
|
421
|
-
/**
|
|
444
|
+
/** Form control value.
|
|
445
|
+
Used with `name` when the button participates in form handling. Resets to its initial value when the form is reset. */
|
|
422
446
|
value?: WarpButton["value"];
|
|
423
|
-
/**
|
|
424
|
-
|
|
447
|
+
/** The [commandfor HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands. */
|
|
448
|
+
commandfor?: WarpButton["commandfor"];
|
|
449
|
+
/** The [command HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands. */
|
|
450
|
+
command?: WarpButton["command"];
|
|
425
451
|
};
|
|
426
452
|
|
|
427
453
|
export type WarpButtonSolidJsProps = {
|
|
428
|
-
/**
|
|
454
|
+
/** Native button type.
|
|
455
|
+
Controls whether the internal button behaves as a regular button, submits a form, or resets a form. Defaults to `button`. */
|
|
429
456
|
"prop:type"?: WarpButton["type"];
|
|
430
|
-
/**
|
|
457
|
+
/** Focuses the button when it is first rendered.
|
|
458
|
+
Applies only when the component renders a native button. Link buttons with `href` do not autofocus through this component. */
|
|
431
459
|
"prop:autofocus"?: WarpButton["autofocus"];
|
|
432
|
-
/**
|
|
460
|
+
/** Visual style of the button.
|
|
461
|
+
Defaults to `secondary`. Use the variant that matches the action priority, risk, and placement. */
|
|
433
462
|
"prop:variant"?: WarpButton["variant"];
|
|
434
|
-
/** @deprecated Use `variant="quiet"` instead
|
|
463
|
+
/** @deprecated Use `variant="quiet"` instead - Deprecated quiet visual treatment flag
|
|
464
|
+
Use `variant="quiet"` instead. */
|
|
435
465
|
"prop:quiet"?: WarpButton["quiet"];
|
|
436
|
-
/**
|
|
466
|
+
/** Marks the button as icon-only.
|
|
467
|
+
Use this when the button has no visible text. Include accessible text in the slotted content so the internal button has a name. */
|
|
437
468
|
"bool:icon-only"?: WarpButton["iconOnly"];
|
|
438
|
-
/**
|
|
469
|
+
/** Marks the button as icon-only.
|
|
470
|
+
Use this when the button has no visible text. Include accessible text in the slotted content so the internal button has a name. */
|
|
439
471
|
"prop:iconOnly"?: WarpButton["iconOnly"];
|
|
440
|
-
/**
|
|
472
|
+
/** Renders the compact button size.
|
|
473
|
+
Use this in dense layouts where the default button size is too large. */
|
|
441
474
|
"prop:small"?: WarpButton["small"];
|
|
442
|
-
/**
|
|
475
|
+
/** Shows the loading state.
|
|
476
|
+
Use after the user has triggered an action and the action is in progress. */
|
|
443
477
|
"prop:loading"?: WarpButton["loading"];
|
|
444
|
-
/**
|
|
478
|
+
/** URL for rendering the button as a link.
|
|
479
|
+
When set, the component renders `w-link` instead of a native `button`. */
|
|
445
480
|
"prop:href"?: WarpButton["href"];
|
|
446
|
-
/**
|
|
481
|
+
/** Link browsing context.
|
|
482
|
+
Passed to the rendered link when `href` is set. */
|
|
447
483
|
"prop:target"?: WarpButton["target"];
|
|
448
|
-
/**
|
|
484
|
+
/** Visually disables the button.
|
|
485
|
+
Disabled buttons are discouraged because they can hide the reason an action is unavailable. */
|
|
449
486
|
"prop:disabled"?: WarpButton["disabled"];
|
|
450
|
-
/**
|
|
487
|
+
/** Link relationship.
|
|
488
|
+
Passed to the rendered link when `href` is set. If `target="_blank"` is set and `rel` is omitted, `noopener` is used. */
|
|
451
489
|
"prop:rel"?: WarpButton["rel"];
|
|
452
|
-
/**
|
|
490
|
+
/** Makes the button fill its parent width.
|
|
491
|
+
Useful in narrow layouts where the button should span the available inline space. */
|
|
453
492
|
"bool:full-width"?: WarpButton["fullWidth"];
|
|
454
|
-
/**
|
|
493
|
+
/** Makes the button fill its parent width.
|
|
494
|
+
Useful in narrow layouts where the button should span the available inline space. */
|
|
455
495
|
"prop:fullWidth"?: WarpButton["fullWidth"];
|
|
456
|
-
/** @deprecated This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button.
|
|
496
|
+
/** @deprecated This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button. - Deprecated class applied to the internal control
|
|
497
|
+
This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the button appearance. */
|
|
457
498
|
"attr:button-class"?: WarpButton["buttonClass"];
|
|
458
|
-
/** @deprecated This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button.
|
|
499
|
+
/** @deprecated This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button. - Deprecated class applied to the internal control
|
|
500
|
+
This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the button appearance. */
|
|
459
501
|
"prop:buttonClass"?: WarpButton["buttonClass"];
|
|
460
|
-
/**
|
|
502
|
+
/** Form control name.
|
|
503
|
+
Used when the button participates in form handling. */
|
|
461
504
|
"prop:name"?: WarpButton["name"];
|
|
462
|
-
/**
|
|
505
|
+
/** Form control value.
|
|
506
|
+
Used with `name` when the button participates in form handling. Resets to its initial value when the form is reset. */
|
|
463
507
|
"prop:value"?: WarpButton["value"];
|
|
464
|
-
/**
|
|
465
|
-
"prop:
|
|
508
|
+
/** The [commandfor HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands. */
|
|
509
|
+
"prop:commandfor"?: WarpButton["commandfor"];
|
|
510
|
+
/** The [command HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands. */
|
|
511
|
+
"prop:command"?: WarpButton["command"];
|
|
466
512
|
|
|
467
513
|
/** Set the innerHTML of the element */
|
|
468
514
|
innerHTML?: string;
|
|
@@ -677,22 +723,34 @@ Defaults to the localized "You are here" label. Set `aria-label` when the defaul
|
|
|
677
723
|
};
|
|
678
724
|
|
|
679
725
|
export type WarpCardProps = {
|
|
680
|
-
/**
|
|
726
|
+
/** Whether the card is visually selected.
|
|
727
|
+
|
|
728
|
+
Use this when the card represents a selected item or choice. This only controls the visual selected state; update it from your application state when the selection changes. */
|
|
681
729
|
selected?: WarpCard["selected"];
|
|
682
|
-
/**
|
|
730
|
+
/** Whether the card uses the flat visual treatment.
|
|
731
|
+
|
|
732
|
+
Flat cards use a bordered surface instead of the default elevated surface. Use this for denser layouts or when the card sits inside another surface. */
|
|
683
733
|
flat?: WarpCard["flat"];
|
|
684
|
-
/**
|
|
734
|
+
/** Whether the whole card is interactive.
|
|
735
|
+
|
|
736
|
+
When set, the card becomes keyboard focusable and Enter or Space triggers a click on the card. Use this only when the whole card has one action or represents one selectable choice. */
|
|
685
737
|
clickable?: WarpCard["clickable"];
|
|
686
738
|
/** */
|
|
687
739
|
buttonText?: WarpCard["buttonText"];
|
|
688
740
|
};
|
|
689
741
|
|
|
690
742
|
export type WarpCardSolidJsProps = {
|
|
691
|
-
/**
|
|
743
|
+
/** Whether the card is visually selected.
|
|
744
|
+
|
|
745
|
+
Use this when the card represents a selected item or choice. This only controls the visual selected state; update it from your application state when the selection changes. */
|
|
692
746
|
"prop:selected"?: WarpCard["selected"];
|
|
693
|
-
/**
|
|
747
|
+
/** Whether the card uses the flat visual treatment.
|
|
748
|
+
|
|
749
|
+
Flat cards use a bordered surface instead of the default elevated surface. Use this for denser layouts or when the card sits inside another surface. */
|
|
694
750
|
"prop:flat"?: WarpCard["flat"];
|
|
695
|
-
/**
|
|
751
|
+
/** Whether the whole card is interactive.
|
|
752
|
+
|
|
753
|
+
When set, the card becomes keyboard focusable and Enter or Space triggers a click on the card. Use this only when the whole card has one action or represents one selectable choice. */
|
|
696
754
|
"prop:clickable"?: WarpCard["clickable"];
|
|
697
755
|
/** */
|
|
698
756
|
"prop:buttonText"?: WarpCard["buttonText"];
|
|
@@ -1079,23 +1137,19 @@ export type WarpExpandableSolidJsProps = {
|
|
|
1079
1137
|
textContent?: string | number;
|
|
1080
1138
|
};
|
|
1081
1139
|
|
|
1082
|
-
export type
|
|
1083
|
-
/**
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
/** */
|
|
1088
|
-
contentId?: ModalMain["contentId"];
|
|
1089
|
-
/** */
|
|
1090
|
-
"ignore-backdrop-clicks"?: ModalMain["ignoreBackdropClicks"];
|
|
1091
|
-
/** */
|
|
1092
|
-
ignoreBackdropClicks?: ModalMain["ignoreBackdropClicks"];
|
|
1093
|
-
/** */
|
|
1094
|
-
dialogEl?: ModalMain["dialogEl"];
|
|
1140
|
+
export type WarpModalProps = {
|
|
1141
|
+
/** Controls if the modal should show or hide.
|
|
1142
|
+
|
|
1143
|
+
You can also call the `open()` and `close()` methods. */
|
|
1144
|
+
show?: WarpModal["show"];
|
|
1095
1145
|
/** */
|
|
1096
|
-
|
|
1146
|
+
"content-id"?: WarpModal["contentId"];
|
|
1097
1147
|
/** */
|
|
1098
|
-
|
|
1148
|
+
contentId?: WarpModal["contentId"];
|
|
1149
|
+
/** Ignores clicks to the backdrop when set */
|
|
1150
|
+
"ignore-backdrop-clicks"?: WarpModal["ignoreBackdropClicks"];
|
|
1151
|
+
/** Ignores clicks to the backdrop when set */
|
|
1152
|
+
ignoreBackdropClicks?: WarpModal["ignoreBackdropClicks"];
|
|
1099
1153
|
|
|
1100
1154
|
/** */
|
|
1101
1155
|
onshown?: (e: CustomEvent) => void;
|
|
@@ -1103,23 +1157,19 @@ export type ModalMainProps = {
|
|
|
1103
1157
|
onhidden?: (e: CustomEvent) => void;
|
|
1104
1158
|
};
|
|
1105
1159
|
|
|
1106
|
-
export type
|
|
1107
|
-
/**
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
"
|
|
1111
|
-
/** */
|
|
1112
|
-
"prop:contentId"?: ModalMain["contentId"];
|
|
1113
|
-
/** */
|
|
1114
|
-
"bool:ignore-backdrop-clicks"?: ModalMain["ignoreBackdropClicks"];
|
|
1115
|
-
/** */
|
|
1116
|
-
"prop:ignoreBackdropClicks"?: ModalMain["ignoreBackdropClicks"];
|
|
1117
|
-
/** */
|
|
1118
|
-
"prop:dialogEl"?: ModalMain["dialogEl"];
|
|
1160
|
+
export type WarpModalSolidJsProps = {
|
|
1161
|
+
/** Controls if the modal should show or hide.
|
|
1162
|
+
|
|
1163
|
+
You can also call the `open()` and `close()` methods. */
|
|
1164
|
+
"prop:show"?: WarpModal["show"];
|
|
1119
1165
|
/** */
|
|
1120
|
-
"
|
|
1166
|
+
"attr:content-id"?: WarpModal["contentId"];
|
|
1121
1167
|
/** */
|
|
1122
|
-
"prop:
|
|
1168
|
+
"prop:contentId"?: WarpModal["contentId"];
|
|
1169
|
+
/** Ignores clicks to the backdrop when set */
|
|
1170
|
+
"bool:ignore-backdrop-clicks"?: WarpModal["ignoreBackdropClicks"];
|
|
1171
|
+
/** Ignores clicks to the backdrop when set */
|
|
1172
|
+
"prop:ignoreBackdropClicks"?: WarpModal["ignoreBackdropClicks"];
|
|
1123
1173
|
/** */
|
|
1124
1174
|
"on:shown"?: (e: CustomEvent) => void;
|
|
1125
1175
|
/** */
|
|
@@ -1131,42 +1181,38 @@ export type ModalMainSolidJsProps = {
|
|
|
1131
1181
|
textContent?: string | number;
|
|
1132
1182
|
};
|
|
1133
1183
|
|
|
1134
|
-
export type
|
|
1184
|
+
export type WarpModalFooterProps = {};
|
|
1135
1185
|
|
|
1136
|
-
export type
|
|
1186
|
+
export type WarpModalFooterSolidJsProps = {
|
|
1137
1187
|
/** Set the innerHTML of the element */
|
|
1138
1188
|
innerHTML?: string;
|
|
1139
1189
|
/** Set the textContent of the element */
|
|
1140
1190
|
textContent?: string | number;
|
|
1141
1191
|
};
|
|
1142
1192
|
|
|
1143
|
-
export type
|
|
1144
|
-
/**
|
|
1145
|
-
title?:
|
|
1146
|
-
/**
|
|
1147
|
-
back?:
|
|
1148
|
-
/**
|
|
1149
|
-
"no-close"?:
|
|
1150
|
-
/**
|
|
1151
|
-
noClose?:
|
|
1152
|
-
/** */
|
|
1153
|
-
titleEl?: ModalHeader["titleEl"];
|
|
1193
|
+
export type WarpModalHeaderProps = {
|
|
1194
|
+
/** A short but descriptive title for the modal */
|
|
1195
|
+
title?: WarpModalHeader["title"];
|
|
1196
|
+
/** Whether the modal header should have a back button */
|
|
1197
|
+
back?: WarpModalHeader["back"];
|
|
1198
|
+
/** Lets you hide the close button in the header */
|
|
1199
|
+
"no-close"?: WarpModalHeader["noClose"];
|
|
1200
|
+
/** Lets you hide the close button in the header */
|
|
1201
|
+
noClose?: WarpModalHeader["noClose"];
|
|
1154
1202
|
|
|
1155
1203
|
/** */
|
|
1156
1204
|
onbackClicked?: (e: CustomEvent) => void;
|
|
1157
1205
|
};
|
|
1158
1206
|
|
|
1159
|
-
export type
|
|
1160
|
-
/**
|
|
1161
|
-
"prop:title"?:
|
|
1162
|
-
/**
|
|
1163
|
-
"prop:back"?:
|
|
1164
|
-
/**
|
|
1165
|
-
"bool:no-close"?:
|
|
1166
|
-
/**
|
|
1167
|
-
"prop:noClose"?:
|
|
1168
|
-
/** */
|
|
1169
|
-
"prop:titleEl"?: ModalHeader["titleEl"];
|
|
1207
|
+
export type WarpModalHeaderSolidJsProps = {
|
|
1208
|
+
/** A short but descriptive title for the modal */
|
|
1209
|
+
"prop:title"?: WarpModalHeader["title"];
|
|
1210
|
+
/** Whether the modal header should have a back button */
|
|
1211
|
+
"prop:back"?: WarpModalHeader["back"];
|
|
1212
|
+
/** Lets you hide the close button in the header */
|
|
1213
|
+
"bool:no-close"?: WarpModalHeader["noClose"];
|
|
1214
|
+
/** Lets you hide the close button in the header */
|
|
1215
|
+
"prop:noClose"?: WarpModalHeader["noClose"];
|
|
1170
1216
|
/** */
|
|
1171
1217
|
"on:backClicked"?: (e: CustomEvent) => void;
|
|
1172
1218
|
|
|
@@ -1177,24 +1223,24 @@ export type ModalHeaderSolidJsProps = {
|
|
|
1177
1223
|
};
|
|
1178
1224
|
|
|
1179
1225
|
export type WarpPageIndicatorProps = {
|
|
1180
|
-
/** Currently selected page (1-based index
|
|
1226
|
+
/** Currently selected page (1-based index) */
|
|
1181
1227
|
"selected-page"?: WarpPageIndicator["selectedPage"];
|
|
1182
|
-
/** Currently selected page (1-based index
|
|
1228
|
+
/** Currently selected page (1-based index) */
|
|
1183
1229
|
selectedPage?: WarpPageIndicator["selectedPage"];
|
|
1184
|
-
/** Total number of pages
|
|
1230
|
+
/** Total number of pages */
|
|
1185
1231
|
"page-count"?: WarpPageIndicator["pageCount"];
|
|
1186
|
-
/** Total number of pages
|
|
1232
|
+
/** Total number of pages */
|
|
1187
1233
|
pageCount?: WarpPageIndicator["pageCount"];
|
|
1188
1234
|
};
|
|
1189
1235
|
|
|
1190
1236
|
export type WarpPageIndicatorSolidJsProps = {
|
|
1191
|
-
/** Currently selected page (1-based index
|
|
1237
|
+
/** Currently selected page (1-based index) */
|
|
1192
1238
|
"attr:selected-page"?: WarpPageIndicator["selectedPage"];
|
|
1193
|
-
/** Currently selected page (1-based index
|
|
1239
|
+
/** Currently selected page (1-based index) */
|
|
1194
1240
|
"prop:selectedPage"?: WarpPageIndicator["selectedPage"];
|
|
1195
|
-
/** Total number of pages
|
|
1241
|
+
/** Total number of pages */
|
|
1196
1242
|
"attr:page-count"?: WarpPageIndicator["pageCount"];
|
|
1197
|
-
/** Total number of pages
|
|
1243
|
+
/** Total number of pages */
|
|
1198
1244
|
"prop:pageCount"?: WarpPageIndicator["pageCount"];
|
|
1199
1245
|
|
|
1200
1246
|
/** Set the innerHTML of the element */
|
|
@@ -1204,41 +1250,49 @@ export type WarpPageIndicatorSolidJsProps = {
|
|
|
1204
1250
|
};
|
|
1205
1251
|
|
|
1206
1252
|
export type WarpPaginationProps = {
|
|
1207
|
-
/**
|
|
1253
|
+
/** The base URL used to construct page links, for example `/search?page=`.
|
|
1254
|
+
|
|
1255
|
+
The page number is appended to this URL. */
|
|
1208
1256
|
"base-url"?: WarpPagination["baseUrl"];
|
|
1209
|
-
/**
|
|
1257
|
+
/** The base URL used to construct page links, for example `/search?page=`.
|
|
1258
|
+
|
|
1259
|
+
The page number is appended to this URL. */
|
|
1210
1260
|
baseUrl?: WarpPagination["baseUrl"];
|
|
1211
|
-
/**
|
|
1261
|
+
/** The total number of pages. */
|
|
1212
1262
|
pages?: WarpPagination["pages"];
|
|
1213
|
-
/**
|
|
1263
|
+
/** The currently active page number. */
|
|
1214
1264
|
"current-page"?: WarpPagination["currentPageNumber"];
|
|
1215
|
-
/**
|
|
1265
|
+
/** The currently active page number. */
|
|
1216
1266
|
currentPageNumber?: WarpPagination["currentPageNumber"];
|
|
1217
|
-
/**
|
|
1267
|
+
/** The maximum number of page numbers visible. */
|
|
1218
1268
|
"visible-pages"?: WarpPagination["visiblePages"];
|
|
1219
|
-
/**
|
|
1269
|
+
/** The maximum number of page numbers visible. */
|
|
1220
1270
|
visiblePages?: WarpPagination["visiblePages"];
|
|
1221
1271
|
|
|
1222
|
-
/** Triggered when a link
|
|
1272
|
+
/** Triggered when a link in the pagination is clicked. Contains the page number in `string` form. */
|
|
1223
1273
|
"onpage-click"?: (e: CustomEvent) => void;
|
|
1224
1274
|
};
|
|
1225
1275
|
|
|
1226
1276
|
export type WarpPaginationSolidJsProps = {
|
|
1227
|
-
/**
|
|
1277
|
+
/** The base URL used to construct page links, for example `/search?page=`.
|
|
1278
|
+
|
|
1279
|
+
The page number is appended to this URL. */
|
|
1228
1280
|
"attr:base-url"?: WarpPagination["baseUrl"];
|
|
1229
|
-
/**
|
|
1281
|
+
/** The base URL used to construct page links, for example `/search?page=`.
|
|
1282
|
+
|
|
1283
|
+
The page number is appended to this URL. */
|
|
1230
1284
|
"prop:baseUrl"?: WarpPagination["baseUrl"];
|
|
1231
|
-
/**
|
|
1285
|
+
/** The total number of pages. */
|
|
1232
1286
|
"prop:pages"?: WarpPagination["pages"];
|
|
1233
|
-
/**
|
|
1287
|
+
/** The currently active page number. */
|
|
1234
1288
|
"attr:current-page"?: WarpPagination["currentPageNumber"];
|
|
1235
|
-
/**
|
|
1289
|
+
/** The currently active page number. */
|
|
1236
1290
|
"prop:currentPageNumber"?: WarpPagination["currentPageNumber"];
|
|
1237
|
-
/**
|
|
1291
|
+
/** The maximum number of page numbers visible. */
|
|
1238
1292
|
"attr:visible-pages"?: WarpPagination["visiblePages"];
|
|
1239
|
-
/**
|
|
1293
|
+
/** The maximum number of page numbers visible. */
|
|
1240
1294
|
"prop:visiblePages"?: WarpPagination["visiblePages"];
|
|
1241
|
-
/** Triggered when a link
|
|
1295
|
+
/** Triggered when a link in the pagination is clicked. Contains the page number in `string` form. */
|
|
1242
1296
|
"on:page-click"?: (e: CustomEvent) => void;
|
|
1243
1297
|
|
|
1244
1298
|
/** Set the innerHTML of the element */
|
|
@@ -1248,69 +1302,61 @@ export type WarpPaginationSolidJsProps = {
|
|
|
1248
1302
|
};
|
|
1249
1303
|
|
|
1250
1304
|
export type WarpPillProps = {
|
|
1251
|
-
/**
|
|
1305
|
+
/** Whether the pill should be removable via a close button. */
|
|
1252
1306
|
"can-close"?: WarpPill["canClose"];
|
|
1253
|
-
/**
|
|
1307
|
+
/** Whether the pill should be removable via a close button. */
|
|
1254
1308
|
canClose?: WarpPill["canClose"];
|
|
1255
|
-
/**
|
|
1309
|
+
/** Whether the pill should be rendered as a suggestion. */
|
|
1256
1310
|
suggestion?: WarpPill["suggestion"];
|
|
1257
1311
|
/** @deprecated Used "open-arial-label" instead. */
|
|
1258
1312
|
"open-sr-label"?: WarpPill["openSrLabel"];
|
|
1259
1313
|
/** @deprecated Used "open-arial-label" instead. */
|
|
1260
1314
|
openSrLabel?: WarpPill["openSrLabel"];
|
|
1261
|
-
/**
|
|
1315
|
+
/** Label read by screen readers when targeting the pill. */
|
|
1262
1316
|
"open-aria-label"?: WarpPill["openAriaLabel"];
|
|
1263
|
-
/**
|
|
1317
|
+
/** Label read by screen readers when targeting the pill. */
|
|
1264
1318
|
openAriaLabel?: WarpPill["openAriaLabel"];
|
|
1265
1319
|
/** @deprecated Used "close-arial-label" instead. */
|
|
1266
1320
|
"close-sr-label"?: WarpPill["closeSrLabel"];
|
|
1267
1321
|
/** @deprecated Used "close-arial-label" instead. */
|
|
1268
1322
|
closeSrLabel?: WarpPill["closeSrLabel"];
|
|
1269
|
-
/**
|
|
1323
|
+
/** Label read by screen readers when targeting the close button. */
|
|
1270
1324
|
"close-aria-label"?: WarpPill["closeAriaLabel"];
|
|
1271
|
-
/**
|
|
1325
|
+
/** Label read by screen readers when targeting the close button. */
|
|
1272
1326
|
closeAriaLabel?: WarpPill["closeAriaLabel"];
|
|
1273
|
-
/** */
|
|
1274
|
-
openFilterSrText?: WarpPill["openFilterSrText"];
|
|
1275
|
-
/** */
|
|
1276
|
-
removeFilterSrText?: WarpPill["removeFilterSrText"];
|
|
1277
1327
|
|
|
1278
|
-
/**
|
|
1328
|
+
/** Fires when the pill itself is clicked. */
|
|
1279
1329
|
"onw-pill-click"?: (e: CustomEvent) => void;
|
|
1280
|
-
/**
|
|
1330
|
+
/** Fires when the pill's close button is clicked. */
|
|
1281
1331
|
"onw-pill-close"?: (e: CustomEvent) => void;
|
|
1282
1332
|
};
|
|
1283
1333
|
|
|
1284
1334
|
export type WarpPillSolidJsProps = {
|
|
1285
|
-
/**
|
|
1335
|
+
/** Whether the pill should be removable via a close button. */
|
|
1286
1336
|
"bool:can-close"?: WarpPill["canClose"];
|
|
1287
|
-
/**
|
|
1337
|
+
/** Whether the pill should be removable via a close button. */
|
|
1288
1338
|
"prop:canClose"?: WarpPill["canClose"];
|
|
1289
|
-
/**
|
|
1339
|
+
/** Whether the pill should be rendered as a suggestion. */
|
|
1290
1340
|
"prop:suggestion"?: WarpPill["suggestion"];
|
|
1291
1341
|
/** @deprecated Used "open-arial-label" instead. */
|
|
1292
1342
|
"attr:open-sr-label"?: WarpPill["openSrLabel"];
|
|
1293
1343
|
/** @deprecated Used "open-arial-label" instead. */
|
|
1294
1344
|
"prop:openSrLabel"?: WarpPill["openSrLabel"];
|
|
1295
|
-
/**
|
|
1345
|
+
/** Label read by screen readers when targeting the pill. */
|
|
1296
1346
|
"attr:open-aria-label"?: WarpPill["openAriaLabel"];
|
|
1297
|
-
/**
|
|
1347
|
+
/** Label read by screen readers when targeting the pill. */
|
|
1298
1348
|
"prop:openAriaLabel"?: WarpPill["openAriaLabel"];
|
|
1299
1349
|
/** @deprecated Used "close-arial-label" instead. */
|
|
1300
1350
|
"attr:close-sr-label"?: WarpPill["closeSrLabel"];
|
|
1301
1351
|
/** @deprecated Used "close-arial-label" instead. */
|
|
1302
1352
|
"prop:closeSrLabel"?: WarpPill["closeSrLabel"];
|
|
1303
|
-
/**
|
|
1353
|
+
/** Label read by screen readers when targeting the close button. */
|
|
1304
1354
|
"attr:close-aria-label"?: WarpPill["closeAriaLabel"];
|
|
1305
|
-
/**
|
|
1355
|
+
/** Label read by screen readers when targeting the close button. */
|
|
1306
1356
|
"prop:closeAriaLabel"?: WarpPill["closeAriaLabel"];
|
|
1307
|
-
/**
|
|
1308
|
-
"prop:openFilterSrText"?: WarpPill["openFilterSrText"];
|
|
1309
|
-
/** */
|
|
1310
|
-
"prop:removeFilterSrText"?: WarpPill["removeFilterSrText"];
|
|
1311
|
-
/** */
|
|
1357
|
+
/** Fires when the pill itself is clicked. */
|
|
1312
1358
|
"on:w-pill-click"?: (e: CustomEvent) => void;
|
|
1313
|
-
/**
|
|
1359
|
+
/** Fires when the pill's close button is clicked. */
|
|
1314
1360
|
"on:w-pill-close"?: (e: CustomEvent) => void;
|
|
1315
1361
|
|
|
1316
1362
|
/** Set the innerHTML of the element */
|
|
@@ -2010,7 +2056,8 @@ export type CustomElements = {
|
|
|
2010
2056
|
"w-link": Partial<WarpLinkProps & BaseProps<WarpLink> & BaseEvents>;
|
|
2011
2057
|
|
|
2012
2058
|
/**
|
|
2013
|
-
*
|
|
2059
|
+
* Performs an action or renders a link with button styling.
|
|
2060
|
+
* Use button variants to match action priority, risk, and context.
|
|
2014
2061
|
*
|
|
2015
2062
|
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-button--docs)
|
|
2016
2063
|
*
|
|
@@ -2018,22 +2065,38 @@ export type CustomElements = {
|
|
|
2018
2065
|
*
|
|
2019
2066
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2020
2067
|
*
|
|
2021
|
-
* - `type`:
|
|
2022
|
-
*
|
|
2023
|
-
* - `
|
|
2024
|
-
*
|
|
2025
|
-
* - `
|
|
2026
|
-
*
|
|
2027
|
-
* - `
|
|
2028
|
-
*
|
|
2029
|
-
* - `
|
|
2030
|
-
*
|
|
2031
|
-
* - `
|
|
2032
|
-
*
|
|
2033
|
-
* - `
|
|
2034
|
-
*
|
|
2035
|
-
* - `
|
|
2036
|
-
*
|
|
2068
|
+
* - `type`: Native button type.
|
|
2069
|
+
* Controls whether the internal button behaves as a regular button, submits a form, or resets a form. Defaults to `button`.
|
|
2070
|
+
* - `autofocus`: Focuses the button when it is first rendered.
|
|
2071
|
+
* Applies only when the component renders a native button. Link buttons with `href` do not autofocus through this component.
|
|
2072
|
+
* - `variant`: Visual style of the button.
|
|
2073
|
+
* Defaults to `secondary`. Use the variant that matches the action priority, risk, and placement.
|
|
2074
|
+
* - `quiet`: Deprecated quiet visual treatment flag
|
|
2075
|
+
* Use `variant="quiet"` instead.
|
|
2076
|
+
* - `icon-only`/`iconOnly`: Marks the button as icon-only.
|
|
2077
|
+
* Use this when the button has no visible text. Include accessible text in the slotted content so the internal button has a name.
|
|
2078
|
+
* - `small`: Renders the compact button size.
|
|
2079
|
+
* Use this in dense layouts where the default button size is too large.
|
|
2080
|
+
* - `loading`: Shows the loading state.
|
|
2081
|
+
* Use after the user has triggered an action and the action is in progress.
|
|
2082
|
+
* - `href`: URL for rendering the button as a link.
|
|
2083
|
+
* When set, the component renders `w-link` instead of a native `button`.
|
|
2084
|
+
* - `target`: Link browsing context.
|
|
2085
|
+
* Passed to the rendered link when `href` is set.
|
|
2086
|
+
* - `disabled`: Visually disables the button.
|
|
2087
|
+
* Disabled buttons are discouraged because they can hide the reason an action is unavailable.
|
|
2088
|
+
* - `rel`: Link relationship.
|
|
2089
|
+
* Passed to the rendered link when `href` is set. If `target="_blank"` is set and `rel` is omitted, `noopener` is used.
|
|
2090
|
+
* - `full-width`/`fullWidth`: Makes the button fill its parent width.
|
|
2091
|
+
* Useful in narrow layouts where the button should span the available inline space.
|
|
2092
|
+
* - `button-class`/`buttonClass`: Deprecated class applied to the internal control
|
|
2093
|
+
* This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the button appearance.
|
|
2094
|
+
* - `name`: Form control name.
|
|
2095
|
+
* Used when the button participates in form handling.
|
|
2096
|
+
* - `value`: Form control value.
|
|
2097
|
+
* Used with `name` when the button participates in form handling. Resets to its initial value when the form is reset.
|
|
2098
|
+
* - `commandfor`: The [commandfor HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.
|
|
2099
|
+
* - `command`: The [command HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.
|
|
2037
2100
|
*
|
|
2038
2101
|
* ## Methods
|
|
2039
2102
|
*
|
|
@@ -2168,9 +2231,15 @@ export type CustomElements = {
|
|
|
2168
2231
|
*
|
|
2169
2232
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2170
2233
|
*
|
|
2171
|
-
* - `selected`:
|
|
2172
|
-
*
|
|
2173
|
-
*
|
|
2234
|
+
* - `selected`: Whether the card is visually selected.
|
|
2235
|
+
*
|
|
2236
|
+
* Use this when the card represents a selected item or choice. This only controls the visual selected state; update it from your application state when the selection changes.
|
|
2237
|
+
* - `flat`: Whether the card uses the flat visual treatment.
|
|
2238
|
+
*
|
|
2239
|
+
* Flat cards use a bordered surface instead of the default elevated surface. Use this for denser layouts or when the card sits inside another surface.
|
|
2240
|
+
* - `clickable`: Whether the whole card is interactive.
|
|
2241
|
+
*
|
|
2242
|
+
* When set, the card becomes keyboard focusable and Enter or Space triggers a click on the card. Use this only when the whole card has one action or represents one selectable choice.
|
|
2174
2243
|
* - `buttonText`: undefined (property only)
|
|
2175
2244
|
*
|
|
2176
2245
|
* ## Methods
|
|
@@ -2368,18 +2437,15 @@ export type CustomElements = {
|
|
|
2368
2437
|
/**
|
|
2369
2438
|
* Modals (or dialogs) display important information that users need to acknowledge.
|
|
2370
2439
|
*
|
|
2371
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
2372
|
-
*
|
|
2373
2440
|
* ## Attributes & Properties
|
|
2374
2441
|
*
|
|
2375
2442
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2376
2443
|
*
|
|
2377
|
-
* - `show`:
|
|
2444
|
+
* - `show`: Controls if the modal should show or hide.
|
|
2445
|
+
*
|
|
2446
|
+
* You can also call the `open()` and `close()` methods.
|
|
2378
2447
|
* - `content-id`/`contentId`: undefined
|
|
2379
|
-
* - `ignore-backdrop-clicks`/`ignoreBackdropClicks`:
|
|
2380
|
-
* - `dialogEl`: undefined (property only)
|
|
2381
|
-
* - `dialogInnerEl`: undefined (property only)
|
|
2382
|
-
* - `contentEl`: undefined (property only)
|
|
2448
|
+
* - `ignore-backdrop-clicks`/`ignoreBackdropClicks`: Ignores clicks to the backdrop when set
|
|
2383
2449
|
*
|
|
2384
2450
|
* ## Events
|
|
2385
2451
|
*
|
|
@@ -2402,39 +2468,26 @@ export type CustomElements = {
|
|
|
2402
2468
|
*
|
|
2403
2469
|
* - `open() => void`: undefined
|
|
2404
2470
|
* - `close() => void`: undefined
|
|
2405
|
-
* - `handleListeners(verb = 'addEventListener') => void`: undefined
|
|
2406
|
-
* - `eventPreventer(evt: Event) => void`: undefined
|
|
2407
|
-
* - `closeOnBackdropClick(evt: MouseEvent) => void`: undefined
|
|
2408
|
-
* - `interceptEscape(evt: KeyboardEvent) => void`: undefined
|
|
2409
|
-
* - `modifyBorderRadius() => void`: undefined
|
|
2410
2471
|
*/
|
|
2411
|
-
"w-modal": Partial<
|
|
2472
|
+
"w-modal": Partial<WarpModalProps & BaseProps<WarpModal> & BaseEvents>;
|
|
2412
2473
|
|
|
2413
2474
|
/**
|
|
2414
2475
|
* The footer section of a modal, typically where you place actions.
|
|
2415
|
-
*
|
|
2416
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
2417
2476
|
*/
|
|
2418
2477
|
"w-modal-footer": Partial<
|
|
2419
|
-
|
|
2478
|
+
WarpModalFooterProps & BaseProps<WarpModalFooter> & BaseEvents
|
|
2420
2479
|
>;
|
|
2421
2480
|
|
|
2422
2481
|
/**
|
|
2423
2482
|
* The header section of a modal, typically where you place the title and a close button.
|
|
2424
2483
|
*
|
|
2425
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
2426
|
-
*
|
|
2427
2484
|
* ## Attributes & Properties
|
|
2428
2485
|
*
|
|
2429
2486
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2430
2487
|
*
|
|
2431
|
-
* - `title`:
|
|
2432
|
-
* - `back`:
|
|
2433
|
-
* - `no-close`/`noClose`:
|
|
2434
|
-
* - `titleEl`: undefined (property only)
|
|
2435
|
-
* - `titleClasses`: undefined (property only) (readonly)
|
|
2436
|
-
* - `backButton`: undefined (property only) (readonly)
|
|
2437
|
-
* - `closeButton`: undefined (property only) (readonly)
|
|
2488
|
+
* - `title`: A short but descriptive title for the modal
|
|
2489
|
+
* - `back`: Whether the modal header should have a back button
|
|
2490
|
+
* - `no-close`/`noClose`: Lets you hide the close button in the header
|
|
2438
2491
|
*
|
|
2439
2492
|
* ## Events
|
|
2440
2493
|
*
|
|
@@ -2447,28 +2500,22 @@ export type CustomElements = {
|
|
|
2447
2500
|
* Areas where markup can be added to the component.
|
|
2448
2501
|
*
|
|
2449
2502
|
* - `top`: Customize the title bar, for example to have a header image that reaches the modal's edges. See the With Image story for an example.
|
|
2450
|
-
*
|
|
2451
|
-
* ## Methods
|
|
2452
|
-
*
|
|
2453
|
-
* Methods that can be called to access component functionality.
|
|
2454
|
-
*
|
|
2455
|
-
* - `emitBack() => void`: undefined
|
|
2456
|
-
* - `handleTopSlotChange(slotEvent) => void`: undefined
|
|
2457
2503
|
*/
|
|
2458
2504
|
"w-modal-header": Partial<
|
|
2459
|
-
|
|
2505
|
+
WarpModalHeaderProps & BaseProps<WarpModalHeader> & BaseEvents
|
|
2460
2506
|
>;
|
|
2461
2507
|
|
|
2462
2508
|
/**
|
|
2463
2509
|
* A page indicator component that displays a series of dots representing pages.
|
|
2510
|
+
*
|
|
2464
2511
|
* One dot is highlighted to indicate the currently selected page.
|
|
2465
2512
|
*
|
|
2466
2513
|
* ## Attributes & Properties
|
|
2467
2514
|
*
|
|
2468
2515
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2469
2516
|
*
|
|
2470
|
-
* - `selected-page`/`selectedPage`: Currently selected page (1-based index
|
|
2471
|
-
* - `page-count`/`pageCount`: Total number of pages
|
|
2517
|
+
* - `selected-page`/`selectedPage`: Currently selected page (1-based index)
|
|
2518
|
+
* - `page-count`/`pageCount`: Total number of pages
|
|
2472
2519
|
*/
|
|
2473
2520
|
"w-page-indicator": Partial<
|
|
2474
2521
|
WarpPageIndicatorProps & BaseProps<WarpPageIndicator> & BaseEvents
|
|
@@ -2477,22 +2524,22 @@ export type CustomElements = {
|
|
|
2477
2524
|
/**
|
|
2478
2525
|
* Pagination allows users to navigate through multiple pages of content by providing navigation controls with page numbers and directional arrows.
|
|
2479
2526
|
*
|
|
2480
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-pagination--docs)
|
|
2481
|
-
*
|
|
2482
2527
|
* ## Attributes & Properties
|
|
2483
2528
|
*
|
|
2484
2529
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2485
2530
|
*
|
|
2486
|
-
* - `base-url`/`baseUrl`:
|
|
2487
|
-
*
|
|
2488
|
-
*
|
|
2489
|
-
* - `
|
|
2531
|
+
* - `base-url`/`baseUrl`: The base URL used to construct page links, for example `/search?page=`.
|
|
2532
|
+
*
|
|
2533
|
+
* The page number is appended to this URL.
|
|
2534
|
+
* - `pages`: The total number of pages.
|
|
2535
|
+
* - `current-page`/`currentPageNumber`: The currently active page number.
|
|
2536
|
+
* - `visible-pages`/`visiblePages`: The maximum number of page numbers visible.
|
|
2490
2537
|
*
|
|
2491
2538
|
* ## Events
|
|
2492
2539
|
*
|
|
2493
2540
|
* Events that will be emitted by the component.
|
|
2494
2541
|
*
|
|
2495
|
-
* - `page-click`: Triggered when a link
|
|
2542
|
+
* - `page-click`: Triggered when a link in the pagination is clicked. Contains the page number in `string` form.
|
|
2496
2543
|
*/
|
|
2497
2544
|
"w-pagination": Partial<
|
|
2498
2545
|
WarpPaginationProps & BaseProps<WarpPagination> & BaseEvents
|
|
@@ -2501,27 +2548,23 @@ export type CustomElements = {
|
|
|
2501
2548
|
/**
|
|
2502
2549
|
* Pill is a type of button that is often used as a filter, but can also be used as a rounded button for overlays, etc.
|
|
2503
2550
|
*
|
|
2504
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-pill--docs)
|
|
2505
|
-
*
|
|
2506
2551
|
* ## Attributes & Properties
|
|
2507
2552
|
*
|
|
2508
2553
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2509
2554
|
*
|
|
2510
|
-
* - `can-close`/`canClose`:
|
|
2511
|
-
* - `suggestion`:
|
|
2555
|
+
* - `can-close`/`canClose`: Whether the pill should be removable via a close button.
|
|
2556
|
+
* - `suggestion`: Whether the pill should be rendered as a suggestion.
|
|
2512
2557
|
* - `open-sr-label`/`openSrLabel`: undefined
|
|
2513
|
-
* - `open-aria-label`/`openAriaLabel`:
|
|
2558
|
+
* - `open-aria-label`/`openAriaLabel`: Label read by screen readers when targeting the pill.
|
|
2514
2559
|
* - `close-sr-label`/`closeSrLabel`: undefined
|
|
2515
|
-
* - `close-aria-label`/`closeAriaLabel`:
|
|
2516
|
-
* - `openFilterSrText`: undefined (property only)
|
|
2517
|
-
* - `removeFilterSrText`: undefined (property only)
|
|
2560
|
+
* - `close-aria-label`/`closeAriaLabel`: Label read by screen readers when targeting the close button.
|
|
2518
2561
|
*
|
|
2519
2562
|
* ## Events
|
|
2520
2563
|
*
|
|
2521
2564
|
* Events that will be emitted by the component.
|
|
2522
2565
|
*
|
|
2523
|
-
* - `w-pill-click`:
|
|
2524
|
-
* - `w-pill-close`:
|
|
2566
|
+
* - `w-pill-click`: Fires when the pill itself is clicked.
|
|
2567
|
+
* - `w-pill-close`: Fires when the pill's close button is clicked.
|
|
2525
2568
|
*/
|
|
2526
2569
|
"w-pill": Partial<WarpPillProps & BaseProps<WarpPill> & BaseEvents>;
|
|
2527
2570
|
|
|
@@ -2982,7 +3025,8 @@ export type CustomElementsSolidJs = {
|
|
|
2982
3025
|
>;
|
|
2983
3026
|
|
|
2984
3027
|
/**
|
|
2985
|
-
*
|
|
3028
|
+
* Performs an action or renders a link with button styling.
|
|
3029
|
+
* Use button variants to match action priority, risk, and context.
|
|
2986
3030
|
*
|
|
2987
3031
|
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-button--docs)
|
|
2988
3032
|
*
|
|
@@ -2990,22 +3034,38 @@ export type CustomElementsSolidJs = {
|
|
|
2990
3034
|
*
|
|
2991
3035
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2992
3036
|
*
|
|
2993
|
-
* - `type`:
|
|
2994
|
-
*
|
|
2995
|
-
* - `
|
|
2996
|
-
*
|
|
2997
|
-
* - `
|
|
2998
|
-
*
|
|
2999
|
-
* - `
|
|
3000
|
-
*
|
|
3001
|
-
* - `
|
|
3002
|
-
*
|
|
3003
|
-
* - `
|
|
3004
|
-
*
|
|
3005
|
-
* - `
|
|
3006
|
-
*
|
|
3007
|
-
* - `
|
|
3008
|
-
*
|
|
3037
|
+
* - `type`: Native button type.
|
|
3038
|
+
* Controls whether the internal button behaves as a regular button, submits a form, or resets a form. Defaults to `button`.
|
|
3039
|
+
* - `autofocus`: Focuses the button when it is first rendered.
|
|
3040
|
+
* Applies only when the component renders a native button. Link buttons with `href` do not autofocus through this component.
|
|
3041
|
+
* - `variant`: Visual style of the button.
|
|
3042
|
+
* Defaults to `secondary`. Use the variant that matches the action priority, risk, and placement.
|
|
3043
|
+
* - `quiet`: Deprecated quiet visual treatment flag
|
|
3044
|
+
* Use `variant="quiet"` instead.
|
|
3045
|
+
* - `icon-only`/`iconOnly`: Marks the button as icon-only.
|
|
3046
|
+
* Use this when the button has no visible text. Include accessible text in the slotted content so the internal button has a name.
|
|
3047
|
+
* - `small`: Renders the compact button size.
|
|
3048
|
+
* Use this in dense layouts where the default button size is too large.
|
|
3049
|
+
* - `loading`: Shows the loading state.
|
|
3050
|
+
* Use after the user has triggered an action and the action is in progress.
|
|
3051
|
+
* - `href`: URL for rendering the button as a link.
|
|
3052
|
+
* When set, the component renders `w-link` instead of a native `button`.
|
|
3053
|
+
* - `target`: Link browsing context.
|
|
3054
|
+
* Passed to the rendered link when `href` is set.
|
|
3055
|
+
* - `disabled`: Visually disables the button.
|
|
3056
|
+
* Disabled buttons are discouraged because they can hide the reason an action is unavailable.
|
|
3057
|
+
* - `rel`: Link relationship.
|
|
3058
|
+
* Passed to the rendered link when `href` is set. If `target="_blank"` is set and `rel` is omitted, `noopener` is used.
|
|
3059
|
+
* - `full-width`/`fullWidth`: Makes the button fill its parent width.
|
|
3060
|
+
* Useful in narrow layouts where the button should span the available inline space.
|
|
3061
|
+
* - `button-class`/`buttonClass`: Deprecated class applied to the internal control
|
|
3062
|
+
* This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the button appearance.
|
|
3063
|
+
* - `name`: Form control name.
|
|
3064
|
+
* Used when the button participates in form handling.
|
|
3065
|
+
* - `value`: Form control value.
|
|
3066
|
+
* Used with `name` when the button participates in form handling. Resets to its initial value when the form is reset.
|
|
3067
|
+
* - `commandfor`: The [commandfor HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.
|
|
3068
|
+
* - `command`: The [command HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.
|
|
3009
3069
|
*
|
|
3010
3070
|
* ## Methods
|
|
3011
3071
|
*
|
|
@@ -3155,9 +3215,15 @@ export type CustomElementsSolidJs = {
|
|
|
3155
3215
|
*
|
|
3156
3216
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3157
3217
|
*
|
|
3158
|
-
* - `selected`:
|
|
3159
|
-
*
|
|
3160
|
-
*
|
|
3218
|
+
* - `selected`: Whether the card is visually selected.
|
|
3219
|
+
*
|
|
3220
|
+
* Use this when the card represents a selected item or choice. This only controls the visual selected state; update it from your application state when the selection changes.
|
|
3221
|
+
* - `flat`: Whether the card uses the flat visual treatment.
|
|
3222
|
+
*
|
|
3223
|
+
* Flat cards use a bordered surface instead of the default elevated surface. Use this for denser layouts or when the card sits inside another surface.
|
|
3224
|
+
* - `clickable`: Whether the whole card is interactive.
|
|
3225
|
+
*
|
|
3226
|
+
* When set, the card becomes keyboard focusable and Enter or Space triggers a click on the card. Use this only when the whole card has one action or represents one selectable choice.
|
|
3161
3227
|
* - `buttonText`: undefined (property only)
|
|
3162
3228
|
*
|
|
3163
3229
|
* ## Methods
|
|
@@ -3371,18 +3437,15 @@ export type CustomElementsSolidJs = {
|
|
|
3371
3437
|
/**
|
|
3372
3438
|
* Modals (or dialogs) display important information that users need to acknowledge.
|
|
3373
3439
|
*
|
|
3374
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
3375
|
-
*
|
|
3376
3440
|
* ## Attributes & Properties
|
|
3377
3441
|
*
|
|
3378
3442
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3379
3443
|
*
|
|
3380
|
-
* - `show`:
|
|
3444
|
+
* - `show`: Controls if the modal should show or hide.
|
|
3445
|
+
*
|
|
3446
|
+
* You can also call the `open()` and `close()` methods.
|
|
3381
3447
|
* - `content-id`/`contentId`: undefined
|
|
3382
|
-
* - `ignore-backdrop-clicks`/`ignoreBackdropClicks`:
|
|
3383
|
-
* - `dialogEl`: undefined (property only)
|
|
3384
|
-
* - `dialogInnerEl`: undefined (property only)
|
|
3385
|
-
* - `contentEl`: undefined (property only)
|
|
3448
|
+
* - `ignore-backdrop-clicks`/`ignoreBackdropClicks`: Ignores clicks to the backdrop when set
|
|
3386
3449
|
*
|
|
3387
3450
|
* ## Events
|
|
3388
3451
|
*
|
|
@@ -3405,44 +3468,31 @@ export type CustomElementsSolidJs = {
|
|
|
3405
3468
|
*
|
|
3406
3469
|
* - `open() => void`: undefined
|
|
3407
3470
|
* - `close() => void`: undefined
|
|
3408
|
-
* - `handleListeners(verb = 'addEventListener') => void`: undefined
|
|
3409
|
-
* - `eventPreventer(evt: Event) => void`: undefined
|
|
3410
|
-
* - `closeOnBackdropClick(evt: MouseEvent) => void`: undefined
|
|
3411
|
-
* - `interceptEscape(evt: KeyboardEvent) => void`: undefined
|
|
3412
|
-
* - `modifyBorderRadius() => void`: undefined
|
|
3413
3471
|
*/
|
|
3414
3472
|
"w-modal": Partial<
|
|
3415
|
-
|
|
3473
|
+
WarpModalProps & WarpModalSolidJsProps & BaseProps<WarpModal> & BaseEvents
|
|
3416
3474
|
>;
|
|
3417
3475
|
|
|
3418
3476
|
/**
|
|
3419
3477
|
* The footer section of a modal, typically where you place actions.
|
|
3420
|
-
*
|
|
3421
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
3422
3478
|
*/
|
|
3423
3479
|
"w-modal-footer": Partial<
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
BaseProps<
|
|
3480
|
+
WarpModalFooterProps &
|
|
3481
|
+
WarpModalFooterSolidJsProps &
|
|
3482
|
+
BaseProps<WarpModalFooter> &
|
|
3427
3483
|
BaseEvents
|
|
3428
3484
|
>;
|
|
3429
3485
|
|
|
3430
3486
|
/**
|
|
3431
3487
|
* The header section of a modal, typically where you place the title and a close button.
|
|
3432
3488
|
*
|
|
3433
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
3434
|
-
*
|
|
3435
3489
|
* ## Attributes & Properties
|
|
3436
3490
|
*
|
|
3437
3491
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3438
3492
|
*
|
|
3439
|
-
* - `title`:
|
|
3440
|
-
* - `back`:
|
|
3441
|
-
* - `no-close`/`noClose`:
|
|
3442
|
-
* - `titleEl`: undefined (property only)
|
|
3443
|
-
* - `titleClasses`: undefined (property only) (readonly)
|
|
3444
|
-
* - `backButton`: undefined (property only) (readonly)
|
|
3445
|
-
* - `closeButton`: undefined (property only) (readonly)
|
|
3493
|
+
* - `title`: A short but descriptive title for the modal
|
|
3494
|
+
* - `back`: Whether the modal header should have a back button
|
|
3495
|
+
* - `no-close`/`noClose`: Lets you hide the close button in the header
|
|
3446
3496
|
*
|
|
3447
3497
|
* ## Events
|
|
3448
3498
|
*
|
|
@@ -3455,31 +3505,25 @@ export type CustomElementsSolidJs = {
|
|
|
3455
3505
|
* Areas where markup can be added to the component.
|
|
3456
3506
|
*
|
|
3457
3507
|
* - `top`: Customize the title bar, for example to have a header image that reaches the modal's edges. See the With Image story for an example.
|
|
3458
|
-
*
|
|
3459
|
-
* ## Methods
|
|
3460
|
-
*
|
|
3461
|
-
* Methods that can be called to access component functionality.
|
|
3462
|
-
*
|
|
3463
|
-
* - `emitBack() => void`: undefined
|
|
3464
|
-
* - `handleTopSlotChange(slotEvent) => void`: undefined
|
|
3465
3508
|
*/
|
|
3466
3509
|
"w-modal-header": Partial<
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
BaseProps<
|
|
3510
|
+
WarpModalHeaderProps &
|
|
3511
|
+
WarpModalHeaderSolidJsProps &
|
|
3512
|
+
BaseProps<WarpModalHeader> &
|
|
3470
3513
|
BaseEvents
|
|
3471
3514
|
>;
|
|
3472
3515
|
|
|
3473
3516
|
/**
|
|
3474
3517
|
* A page indicator component that displays a series of dots representing pages.
|
|
3518
|
+
*
|
|
3475
3519
|
* One dot is highlighted to indicate the currently selected page.
|
|
3476
3520
|
*
|
|
3477
3521
|
* ## Attributes & Properties
|
|
3478
3522
|
*
|
|
3479
3523
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3480
3524
|
*
|
|
3481
|
-
* - `selected-page`/`selectedPage`: Currently selected page (1-based index
|
|
3482
|
-
* - `page-count`/`pageCount`: Total number of pages
|
|
3525
|
+
* - `selected-page`/`selectedPage`: Currently selected page (1-based index)
|
|
3526
|
+
* - `page-count`/`pageCount`: Total number of pages
|
|
3483
3527
|
*/
|
|
3484
3528
|
"w-page-indicator": Partial<
|
|
3485
3529
|
WarpPageIndicatorProps &
|
|
@@ -3491,22 +3535,22 @@ export type CustomElementsSolidJs = {
|
|
|
3491
3535
|
/**
|
|
3492
3536
|
* Pagination allows users to navigate through multiple pages of content by providing navigation controls with page numbers and directional arrows.
|
|
3493
3537
|
*
|
|
3494
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-pagination--docs)
|
|
3495
|
-
*
|
|
3496
3538
|
* ## Attributes & Properties
|
|
3497
3539
|
*
|
|
3498
3540
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3499
3541
|
*
|
|
3500
|
-
* - `base-url`/`baseUrl`:
|
|
3501
|
-
*
|
|
3502
|
-
*
|
|
3503
|
-
* - `
|
|
3542
|
+
* - `base-url`/`baseUrl`: The base URL used to construct page links, for example `/search?page=`.
|
|
3543
|
+
*
|
|
3544
|
+
* The page number is appended to this URL.
|
|
3545
|
+
* - `pages`: The total number of pages.
|
|
3546
|
+
* - `current-page`/`currentPageNumber`: The currently active page number.
|
|
3547
|
+
* - `visible-pages`/`visiblePages`: The maximum number of page numbers visible.
|
|
3504
3548
|
*
|
|
3505
3549
|
* ## Events
|
|
3506
3550
|
*
|
|
3507
3551
|
* Events that will be emitted by the component.
|
|
3508
3552
|
*
|
|
3509
|
-
* - `page-click`: Triggered when a link
|
|
3553
|
+
* - `page-click`: Triggered when a link in the pagination is clicked. Contains the page number in `string` form.
|
|
3510
3554
|
*/
|
|
3511
3555
|
"w-pagination": Partial<
|
|
3512
3556
|
WarpPaginationProps &
|
|
@@ -3518,27 +3562,23 @@ export type CustomElementsSolidJs = {
|
|
|
3518
3562
|
/**
|
|
3519
3563
|
* Pill is a type of button that is often used as a filter, but can also be used as a rounded button for overlays, etc.
|
|
3520
3564
|
*
|
|
3521
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-pill--docs)
|
|
3522
|
-
*
|
|
3523
3565
|
* ## Attributes & Properties
|
|
3524
3566
|
*
|
|
3525
3567
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3526
3568
|
*
|
|
3527
|
-
* - `can-close`/`canClose`:
|
|
3528
|
-
* - `suggestion`:
|
|
3569
|
+
* - `can-close`/`canClose`: Whether the pill should be removable via a close button.
|
|
3570
|
+
* - `suggestion`: Whether the pill should be rendered as a suggestion.
|
|
3529
3571
|
* - `open-sr-label`/`openSrLabel`: undefined
|
|
3530
|
-
* - `open-aria-label`/`openAriaLabel`:
|
|
3572
|
+
* - `open-aria-label`/`openAriaLabel`: Label read by screen readers when targeting the pill.
|
|
3531
3573
|
* - `close-sr-label`/`closeSrLabel`: undefined
|
|
3532
|
-
* - `close-aria-label`/`closeAriaLabel`:
|
|
3533
|
-
* - `openFilterSrText`: undefined (property only)
|
|
3534
|
-
* - `removeFilterSrText`: undefined (property only)
|
|
3574
|
+
* - `close-aria-label`/`closeAriaLabel`: Label read by screen readers when targeting the close button.
|
|
3535
3575
|
*
|
|
3536
3576
|
* ## Events
|
|
3537
3577
|
*
|
|
3538
3578
|
* Events that will be emitted by the component.
|
|
3539
3579
|
*
|
|
3540
|
-
* - `w-pill-click`:
|
|
3541
|
-
* - `w-pill-close`:
|
|
3580
|
+
* - `w-pill-click`: Fires when the pill itself is clicked.
|
|
3581
|
+
* - `w-pill-close`: Fires when the pill's close button is clicked.
|
|
3542
3582
|
*/
|
|
3543
3583
|
"w-pill": Partial<
|
|
3544
3584
|
WarpPillProps & WarpPillSolidJsProps & BaseProps<WarpPill> & BaseEvents
|