@warp-ds/elements 2.6.0-next.4 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +145 -143
- package/dist/index.d.ts +52 -52
- package/dist/packages/affix/affix.d.ts +1 -2
- package/dist/packages/affix/affix.js +35 -19
- package/dist/packages/affix/affix.js.map +4 -4
- package/dist/packages/alert/alert.d.ts +2 -5
- package/dist/packages/alert/alert.js +32 -16
- package/dist/packages/alert/alert.js.map +4 -4
- package/dist/packages/alert/alert.test.js +1 -3
- package/dist/packages/attention/attention.d.ts +2 -2
- package/dist/packages/attention/attention.js +53 -26
- package/dist/packages/attention/attention.js.map +4 -4
- package/dist/packages/button/button.react.stories.d.ts +1 -1
- package/dist/packages/button/button.stories.d.ts +1 -4
- package/dist/packages/button/button.stories.js +11 -16
- package/dist/packages/card/card.d.ts +1 -1
- package/dist/packages/combobox/combobox.react.stories.d.ts +1 -1
- package/dist/packages/datepicker/datepicker.d.ts +1 -3
- package/dist/packages/datepicker/datepicker.js +66 -41
- package/dist/packages/datepicker/datepicker.js.map +4 -4
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +1 -1
- package/dist/packages/expandable/expandable.d.ts +1 -2
- package/dist/packages/expandable/expandable.js +39 -23
- package/dist/packages/expandable/expandable.js.map +4 -4
- package/dist/packages/icon/icon.js +2 -2
- package/dist/packages/icon/icon.js.map +4 -4
- package/dist/packages/icon/icon.react.stories.js +274 -2
- package/dist/packages/icon/icon.stories.js +273 -1
- package/dist/packages/link/link.react.stories.d.ts +1 -1
- package/dist/packages/modal-header/modal-header.d.ts +1 -2
- package/dist/packages/modal-header/modal-header.js +39 -14
- package/dist/packages/modal-header/modal-header.js.map +4 -4
- package/dist/packages/page-indicator/page-indicator.test.js +40 -20
- package/dist/packages/pagination/pagination.a11y.test.d.ts +1 -0
- package/dist/packages/pagination/pagination.a11y.test.js +36 -0
- package/dist/packages/pagination/pagination.d.ts +1 -3
- package/dist/packages/pagination/pagination.js +57 -34
- package/dist/packages/pagination/pagination.js.map +4 -4
- package/dist/packages/pill/pill.d.ts +1 -1
- package/dist/packages/pill/pill.js +38 -13
- package/dist/packages/pill/pill.js.map +4 -4
- package/dist/packages/pill/pill.test.js +1 -3
- package/dist/packages/select/select.d.ts +1 -1
- package/dist/packages/select/select.js +44 -19
- package/dist/packages/select/select.js.map +4 -4
- package/dist/packages/select/select.react.stories.d.ts +1 -1
- package/dist/packages/step/step.d.ts +1 -1
- package/dist/packages/step/step.js +38 -13
- package/dist/packages/step/step.js.map +4 -4
- package/dist/packages/step-indicator/step-indicator.a11y.test.d.ts +2 -0
- package/dist/packages/step-indicator/step-indicator.a11y.test.js +66 -0
- package/dist/packages/textarea/textarea.a11y.test.d.ts +1 -0
- package/dist/packages/textarea/textarea.a11y.test.js +115 -0
- package/dist/packages/textarea/textarea.js +6 -6
- package/dist/packages/textarea/textarea.js.map +4 -4
- package/dist/packages/textarea/textarea.react.stories.d.ts +1 -1
- package/dist/packages/textarea/textarea.test.js +3 -1
- package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
- package/dist/packages/toast/toast.d.ts +1 -4
- package/dist/packages/toast/toast.js +38 -13
- package/dist/packages/toast/toast.js.map +4 -4
- package/dist/setup-tests.d.ts +10 -0
- package/dist/setup-tests.js +61 -0
- package/dist/web-types.json +47 -47
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { Button } from './react';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
render(args: Omit<React.HTMLAttributes<import("./button").WarpButton>, "rel" | "_classes" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "variant" | "
|
|
6
|
+
render(args: Omit<React.HTMLAttributes<import("./button").WarpButton>, "name" | "small" | "form" | "rel" | "_classes" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "variant" | "quiet" | "href" | "target" | "fullWidth" | "type" | "loading" | "buttonClass" | "value" | "ariaValueTextLoading" | "updated" | "firstUpdated" | "_primaryClasses" | "_secondaryClasses" | "_utilityClasses" | "_negativeClasses" | "_pillClasses" | "_linkClasses" | "_handleButtonClick" | "resetFormControl" | "validationTarget" | "internals" | "showError" | "validationMessage" | "validity" | "validationComplete" | "checkValidity" | "formResetCallback" | "valueChangedCallback" | "validityCallback" | "validationMessageCallback" | "setValue" | "shouldFormValueUpdate"> & {} & Partial<Omit<import("./button").WarpButton, keyof HTMLElement>> & React.RefAttributes<import("./button").WarpButton>): React.JSX.Element;
|
|
7
7
|
component: import("@lit/react").ReactWebComponent<import("./button").WarpButton, {}>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -4,10 +4,7 @@ import './button.js';
|
|
|
4
4
|
declare const args: Partial<WarpButton> & {
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
};
|
|
7
|
-
import '
|
|
8
|
-
import '@warp-ds/icons/elements/heart-16';
|
|
9
|
-
import '@warp-ds/icons/elements/chevron-right-16';
|
|
10
|
-
import '@warp-ds/icons/elements/chevron-left-16';
|
|
7
|
+
import '../icon/icon.js';
|
|
11
8
|
declare const meta: Meta<typeof args>;
|
|
12
9
|
export default meta;
|
|
13
10
|
type Story = StoryObj<typeof args>;
|
|
@@ -4,10 +4,8 @@ import { html } from 'lit';
|
|
|
4
4
|
import { prespread } from '../../.storybook/utilities.js';
|
|
5
5
|
import './button.js';
|
|
6
6
|
const { events, args, argTypes } = getStorybookHelpers('w-button');
|
|
7
|
-
import '
|
|
8
|
-
import '
|
|
9
|
-
import '@warp-ds/icons/elements/chevron-right-16';
|
|
10
|
-
import '@warp-ds/icons/elements/chevron-left-16';
|
|
7
|
+
import '../icon/icon.js';
|
|
8
|
+
import { detectLocale } from '../i18n.js';
|
|
11
9
|
const meta = {
|
|
12
10
|
title: 'Buttons/Button',
|
|
13
11
|
render(args) {
|
|
@@ -60,34 +58,31 @@ export const Pill = {
|
|
|
60
58
|
type: 'button',
|
|
61
59
|
},
|
|
62
60
|
render(args) {
|
|
61
|
+
const locale = detectLocale();
|
|
63
62
|
return html `<w-button ${spread(prespread(args))}>
|
|
64
|
-
<w-icon
|
|
63
|
+
<w-icon name="ChevronLeft" size="small" locale="${locale}" style="height: 16px;" class="flex"></w-icon>
|
|
65
64
|
</w-button>
|
|
66
65
|
<w-button ${spread(prespread(args))}>
|
|
67
|
-
<w-icon
|
|
66
|
+
<w-icon name="Close" size="small" locale="${locale}" style="height: 16px;" class="flex"></w-icon>
|
|
68
67
|
</w-button>
|
|
69
68
|
<w-button ${spread(prespread(args))}>
|
|
70
|
-
<w-icon
|
|
69
|
+
<w-icon name="Heart" size="small" locale="${locale}" style="height: 16px;" class="flex"></w-icon>
|
|
71
70
|
</w-button>
|
|
72
71
|
<w-button ${spread(prespread(args))}>
|
|
73
|
-
<w-icon-
|
|
74
|
-
style="height: 16px;"
|
|
75
|
-
></w-icon-chevron-right-16>
|
|
72
|
+
<w-icon name="ChevronRight" size="small" locale="${locale}" style="height: 16px;" class="flex"></w-icon>
|
|
76
73
|
</w-button>
|
|
77
74
|
<br />
|
|
78
75
|
<w-button ${spread(prespread(args))} small="">
|
|
79
|
-
<w-icon
|
|
76
|
+
<w-icon name="ChevronLeft" size="small" locale="${locale}" style="height: 16px;" class="flex"></w-icon>
|
|
80
77
|
</w-button>
|
|
81
78
|
<w-button ${spread(prespread(args))} small="">
|
|
82
|
-
<w-icon
|
|
79
|
+
<w-icon name="Close" size="small" locale="${locale}" style="height: 16px;" class="flex"></w-icon>
|
|
83
80
|
</w-button>
|
|
84
81
|
<w-button ${spread(prespread(args))} small="">
|
|
85
|
-
<w-icon
|
|
82
|
+
<w-icon name="Heart" size="small" locale="${locale}" style="height: 16px;" class="flex"></w-icon>
|
|
86
83
|
</w-button>
|
|
87
84
|
<w-button ${spread(prespread(args))} small="">
|
|
88
|
-
<w-icon-
|
|
89
|
-
style="height: 16px;"
|
|
90
|
-
></w-icon-chevron-right-16>
|
|
85
|
+
<w-icon name="ChevronRight" size="small" locale="${locale}" style="height: 16px;" class="flex"></w-icon>
|
|
91
86
|
</w-button>`;
|
|
92
87
|
},
|
|
93
88
|
};
|
|
@@ -17,7 +17,7 @@ declare class WarpCard extends LitElement {
|
|
|
17
17
|
/** @internal */
|
|
18
18
|
get _outlineClasses(): string;
|
|
19
19
|
/** @internal */
|
|
20
|
-
get _interactiveElement(): import("lit").TemplateResult<1
|
|
20
|
+
get _interactiveElement(): "" | import("lit").TemplateResult<1>;
|
|
21
21
|
keypressed(e: KeyboardEvent): void;
|
|
22
22
|
render(): import("lit").TemplateResult<1>;
|
|
23
23
|
}
|
|
@@ -9,7 +9,7 @@ declare const _default: {
|
|
|
9
9
|
onChange: string;
|
|
10
10
|
onchange: string;
|
|
11
11
|
}>;
|
|
12
|
-
render(args: Omit<React.HTMLAttributes<import("./combobox").WarpCombobox>, "label" | "onchange" | "onselect" | "onChange" | "onSelect" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "
|
|
12
|
+
render(args: Omit<React.HTMLAttributes<import("./combobox").WarpCombobox>, "name" | "form" | "label" | "onchange" | "onselect" | "onChange" | "onSelect" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "disabled" | "value" | "updated" | "firstUpdated" | "resetFormControl" | "validationTarget" | "internals" | "showError" | "validationMessage" | "validity" | "validationComplete" | "checkValidity" | "formResetCallback" | "valueChangedCallback" | "validityCallback" | "validationMessageCallback" | "setValue" | "shouldFormValueUpdate" | "invalid" | "options" | "placeholder" | "openOnFocus" | "selectOnBlur" | "matchTextSegments" | "disableStaticFiltering" | "helpText" | "required" | "optional" | "autocomplete"> & {
|
|
13
13
|
onSelect?: (e: Event) => void;
|
|
14
14
|
onselect?: (e: Event) => void;
|
|
15
15
|
onChange?: (e: Event) => void;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Locale } from 'date-fns';
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
|
-
import '
|
|
4
|
-
import '@warp-ds/icons/elements/chevron-left-16';
|
|
5
|
-
import '@warp-ds/icons/elements/chevron-right-16';
|
|
3
|
+
import '../icon/icon.js';
|
|
6
4
|
declare const WarpDatepicker_base: import("@open-wc/form-control").Constructor<import("@open-wc/form-control").FormControlInterface> & typeof LitElement;
|
|
7
5
|
/**
|
|
8
6
|
* An input for dates.
|