@warp-ds/elements 2.9.0-next.4 → 2.9.0-next.6
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 +3554 -3442
- package/dist/docs/affix/accessibility.md +7 -0
- package/dist/docs/affix/affix.md +174 -10
- package/dist/docs/affix/api.md +28 -10
- package/dist/docs/affix/examples.md +92 -0
- package/dist/docs/affix/usage.md +47 -0
- package/dist/docs/alert/alert.md +12 -12
- package/dist/docs/alert/api.md +12 -12
- package/dist/docs/attention/api.md +46 -46
- package/dist/docs/attention/attention.md +46 -46
- package/dist/docs/badge/accessibility.md +44 -0
- package/dist/docs/badge/api.md +12 -8
- package/dist/docs/badge/badge.md +191 -10
- package/dist/docs/badge/examples.md +82 -0
- package/dist/docs/badge/usage.md +53 -0
- package/dist/docs/button/api.md +46 -42
- package/dist/docs/button/button.md +46 -42
- package/dist/docs/card/api.md +11 -11
- package/dist/docs/card/card.md +11 -11
- package/dist/docs/combobox/api.md +62 -62
- package/dist/docs/combobox/combobox.md +62 -62
- package/dist/docs/datepicker/api.md +74 -66
- package/dist/docs/datepicker/datepicker.md +74 -66
- package/dist/docs/expandable/api.md +26 -26
- package/dist/docs/expandable/expandable.md +26 -26
- package/dist/docs/link/api.md +28 -28
- package/dist/docs/link/link.md +28 -28
- package/dist/docs/page-indicator/api.md +6 -6
- package/dist/docs/page-indicator/page-indicator.md +6 -6
- package/dist/docs/pagination/api.md +3 -3
- package/dist/docs/pagination/pagination.md +3 -3
- package/dist/docs/pill/api.md +19 -15
- package/dist/docs/pill/pill.md +19 -15
- package/dist/docs/select/api.md +44 -44
- package/dist/docs/select/select.md +44 -44
- package/dist/docs/slider/api.md +80 -78
- package/dist/docs/slider/slider.md +80 -78
- package/dist/docs/slider-thumb/api.md +28 -76
- package/dist/docs/slider-thumb/slider-thumb.md +28 -76
- package/dist/docs/switch/api.md +16 -16
- package/dist/docs/switch/switch.md +16 -16
- package/dist/docs/tab/api.md +26 -40
- package/dist/docs/tab/tab.md +26 -40
- package/dist/docs/tab-panel/api.md +1 -17
- package/dist/docs/tab-panel/tab-panel.md +1 -17
- package/dist/docs/tabs/api.md +3 -3
- package/dist/docs/tabs/tabs.md +3 -3
- package/dist/docs/textarea/api.md +42 -40
- package/dist/docs/textarea/textarea.md +42 -40
- package/dist/docs/textfield/accessibility.md +15 -0
- package/dist/docs/textfield/api.md +86 -83
- package/dist/docs/textfield/examples.md +147 -0
- package/dist/docs/textfield/textfield.md +279 -86
- package/dist/docs/textfield/usage.md +30 -0
- package/dist/index.d.ts +343 -319
- package/dist/packages/affix/affix.d.ts +23 -14
- package/dist/packages/affix/affix.js +24 -11
- package/dist/packages/affix/affix.js.map +4 -4
- package/dist/packages/affix/affix.stories.d.ts +3 -0
- package/dist/packages/affix/affix.stories.js +16 -0
- package/dist/packages/affix/affix.test.js +7 -0
- package/dist/packages/affix/locales/da/messages.d.mts +1 -0
- package/dist/packages/affix/locales/da/messages.mjs +1 -0
- package/dist/packages/affix/locales/en/messages.d.mts +1 -0
- package/dist/packages/affix/locales/en/messages.mjs +1 -0
- package/dist/packages/affix/locales/fi/messages.d.mts +1 -0
- package/dist/packages/affix/locales/fi/messages.mjs +1 -0
- package/dist/packages/affix/locales/nb/messages.d.mts +1 -0
- package/dist/packages/affix/locales/nb/messages.mjs +1 -0
- package/dist/packages/affix/locales/sv/messages.d.mts +1 -0
- package/dist/packages/affix/locales/sv/messages.mjs +1 -0
- package/dist/packages/badge/badge.d.ts +7 -5
- package/dist/packages/badge/badge.js.map +2 -2
- package/dist/packages/badge/badge.react.stories.d.ts +1 -1
- package/dist/packages/box/box.react.stories.d.ts +1 -1
- package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +1 -1
- package/dist/packages/button/button.react.stories.d.ts +1 -1
- package/dist/packages/card/card.react.stories.d.ts +1 -1
- package/dist/packages/combobox/combobox.react.stories.d.ts +1 -1
- package/dist/packages/datepicker/datepicker.js +1 -1
- package/dist/packages/datepicker/datepicker.js.map +2 -2
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +9 -1
- package/dist/packages/datepicker/react.d.ts +4 -0
- package/dist/packages/datepicker/react.js +4 -0
- package/dist/packages/expandable/expandable.react.stories.d.ts +1 -1
- package/dist/packages/link/link.react.stories.d.ts +1 -1
- package/dist/packages/page-indicator/page-indicator.react.stories.d.ts +1 -1
- package/dist/packages/pagination/pagination.react.stories.d.ts +1 -1
- package/dist/packages/pill/pill.react.stories.d.ts +1 -1
- package/dist/packages/select/select.react.stories.d.ts +1 -1
- package/dist/packages/textarea/textarea.react.stories.d.ts +1 -1
- package/dist/packages/textfield/textfield.d.ts +57 -60
- package/dist/packages/textfield/textfield.js +5 -5
- package/dist/packages/textfield/textfield.js.map +2 -2
- package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
- package/dist/packages/textfield/textfield.stories.d.ts +3 -0
- package/dist/packages/textfield/textfield.stories.js +45 -0
- package/dist/web-types.json +452 -147
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { TextField } from './react';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
render(args: Omit<React.HTMLAttributes<import("./textfield").WarpTextField>, "value" | "form" | "label" | "mask" | "pattern" | "name" | "size" | "
|
|
6
|
+
render(args: Omit<React.HTMLAttributes<import("./textfield").WarpTextField>, "value" | "form" | "label" | "mask" | "pattern" | "name" | "size" | "disabled" | "invalid" | "helpText" | "max" | "min" | "minLength" | "minlength" | "maxLength" | "maxlength" | "placeholder" | "readOnly" | "readonly" | "required" | "type" | "step" | "autocomplete" | "formatter" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "onblur" | "onchange" | "onfocus" | "oninput" | "_hasPrefix" | "_hasSuffix" | "updated" | "firstUpdated" | "resetFormControl" | "_inputstyles" | "_helptextstyles" | "_label" | "_helpId" | "_id" | "_error" | "handler" | "prefixSlotChange" | "suffixSlotChange" | "render" | "validationTarget" | "internals" | "showError" | "validationMessage" | "validity" | "validationComplete" | "checkValidity" | "formResetCallback" | "valueChangedCallback" | "validityCallback" | "validationMessageCallback" | "setValue" | "shouldFormValueUpdate" | "renderOptions" | "onFocus" | "onBlur" | "onChange" | "onInput"> & {
|
|
7
7
|
onBlur?: (e: Event) => void;
|
|
8
8
|
onblur?: (e: Event) => void;
|
|
9
9
|
onChange?: (e: Event) => void;
|
|
@@ -17,5 +17,8 @@ export declare const ReadOnly: Story;
|
|
|
17
17
|
export declare const Required: Story;
|
|
18
18
|
export declare const WithSuffix: Story;
|
|
19
19
|
export declare const WithPrefix: Story;
|
|
20
|
+
export declare const WithClearAffixResetTextfield: Story;
|
|
21
|
+
export declare const WithSearchAndClearAffixForm: Story;
|
|
22
|
+
export declare const WithIconAffix: Story;
|
|
20
23
|
export declare const Masking: Story;
|
|
21
24
|
export declare const FormParticipation: Story;
|
|
@@ -99,6 +99,51 @@ export const WithPrefix = {
|
|
|
99
99
|
`;
|
|
100
100
|
},
|
|
101
101
|
};
|
|
102
|
+
export const WithClearAffixResetTextfield = {
|
|
103
|
+
args: {
|
|
104
|
+
placeholder: '1 000 000',
|
|
105
|
+
type: 'text',
|
|
106
|
+
},
|
|
107
|
+
render(args) {
|
|
108
|
+
return html `
|
|
109
|
+
<w-textfield ${spread(prespread(args))}>
|
|
110
|
+
<w-affix slot="suffix" clear></w-affix>
|
|
111
|
+
</w-textfield>
|
|
112
|
+
`;
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
export const WithSearchAndClearAffixForm = {
|
|
116
|
+
args: {
|
|
117
|
+
label: 'Price',
|
|
118
|
+
placeholder: '1 000 000',
|
|
119
|
+
type: 'text',
|
|
120
|
+
},
|
|
121
|
+
render(args) {
|
|
122
|
+
return html `
|
|
123
|
+
<form action="javascript:alert('Form submitted!');" method="GET">
|
|
124
|
+
<w-textfield ${spread(prespread(args))}>
|
|
125
|
+
<w-affix slot="prefix" search aria-label="Search"></w-affix>
|
|
126
|
+
<w-affix slot="suffix" clear aria-label="Clear"></w-affix>
|
|
127
|
+
</w-textfield>
|
|
128
|
+
</form>
|
|
129
|
+
`;
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
export const WithIconAffix = {
|
|
133
|
+
args: {
|
|
134
|
+
label: 'Price',
|
|
135
|
+
placeholder: '1 000 000',
|
|
136
|
+
type: 'text',
|
|
137
|
+
},
|
|
138
|
+
render(args) {
|
|
139
|
+
return html `
|
|
140
|
+
<w-textfield ${spread(prespread(args))}>
|
|
141
|
+
<w-affix slot="prefix" icon="AwardMedal" aria-label="Search"></w-affix>
|
|
142
|
+
<w-affix slot="suffix" icon="Search" aria-label="Clear"></w-affix>
|
|
143
|
+
</w-textfield>
|
|
144
|
+
`;
|
|
145
|
+
},
|
|
146
|
+
};
|
|
102
147
|
export const Masking = {
|
|
103
148
|
args: {
|
|
104
149
|
label: 'Price',
|