@warp-ds/elements 2.2.0-next.6 → 2.2.0-next.8
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 +633 -141
- package/dist/index.d.ts +2 -0
- package/dist/index.js +363 -129
- package/dist/index.js.map +4 -4
- package/dist/packages/alert/index.js.map +1 -1
- package/dist/packages/alert/react.js.map +1 -1
- package/dist/packages/attention/index.js.map +1 -1
- package/dist/packages/button/index.d.ts +1 -0
- package/dist/packages/button/index.js +214 -9
- package/dist/packages/button/index.js.map +4 -4
- package/dist/packages/button/react.js +213 -8
- package/dist/packages/button/react.js.map +4 -4
- package/dist/packages/datepicker/DatePicker.test.d.ts +1 -0
- package/dist/packages/datepicker/datepicker.d.ts +20 -2
- package/dist/packages/datepicker/datepicker.test.d.ts +2 -0
- package/dist/packages/datepicker/index.js +81 -78
- package/dist/packages/datepicker/index.js.map +3 -3
- package/dist/packages/datepicker/react.d.ts +2 -0
- package/dist/packages/datepicker/react.js +2805 -0
- package/dist/packages/datepicker/react.js.map +7 -0
- package/dist/packages/link/index.d.ts +39 -0
- package/dist/packages/link/index.js +2646 -0
- package/dist/packages/link/index.js.map +7 -0
- package/dist/packages/link/link.stories.d.ts +20 -0
- package/dist/packages/link/link.test.d.ts +1 -0
- package/dist/packages/link/react.d.ts +2 -0
- package/dist/packages/link/react.js +2666 -0
- package/dist/packages/link/react.js.map +7 -0
- package/dist/packages/link/styles.d.ts +1 -0
- package/dist/packages/steps/index.d.ts +43 -0
- package/dist/packages/steps/index.js +2465 -0
- package/dist/packages/steps/index.js.map +7 -0
- package/dist/packages/steps/locales/da/messages.d.mts +1 -0
- package/dist/packages/steps/locales/en/messages.d.mts +1 -0
- package/dist/packages/steps/locales/fi/messages.d.mts +1 -0
- package/dist/packages/steps/locales/nb/messages.d.mts +1 -0
- package/dist/packages/steps/locales/sv/messages.d.mts +1 -0
- package/dist/packages/steps/react.d.ts +3 -0
- package/dist/packages/steps/react.js +2485 -0
- package/dist/packages/steps/react.js.map +7 -0
- package/dist/packages/steps/steps.stories.d.ts +12 -0
- package/dist/packages/steps/styles.d.ts +1 -0
- package/dist/packages/switch/index.d.ts +20 -0
- package/dist/packages/switch/index.js +2455 -0
- package/dist/packages/switch/index.js.map +7 -0
- package/dist/packages/switch/react.d.ts +2 -0
- package/dist/packages/switch/react.js +2475 -0
- package/dist/packages/switch/react.js.map +7 -0
- package/dist/packages/switch/styles.d.ts +1 -0
- package/dist/packages/switch/switch.stories.d.ts +9 -0
- package/dist/packages/textfield/index.js +1 -1
- package/dist/packages/textfield/index.js.map +2 -2
- package/dist/packages/textfield/react.js +1 -1
- package/dist/packages/textfield/react.js.map +2 -2
- package/dist/packages/toast/index.js.map +1 -1
- package/dist/vscode.html-custom-data.json +77 -19
- package/dist/web-types.json +156 -41
- package/package.json +15 -13
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../button/index.js';
|
|
@@ -60,8 +60,6 @@ declare class WarpDatepicker extends WarpDatepicker_base {
|
|
|
60
60
|
*/
|
|
61
61
|
dayFormat: string;
|
|
62
62
|
isCalendarOpen: boolean;
|
|
63
|
-
/** The current input value as a stringified date-like */
|
|
64
|
-
internalValue: string;
|
|
65
63
|
navigationDate: Date;
|
|
66
64
|
/** @internal This gets picked up by the custom element manifest analyzer as a property for some reason */
|
|
67
65
|
locale: Locale;
|
|
@@ -75,10 +73,30 @@ declare class WarpDatepicker extends WarpDatepicker_base {
|
|
|
75
73
|
input: HTMLInputElement;
|
|
76
74
|
toggleButton: HTMLButtonElement;
|
|
77
75
|
wrapper: HTMLDivElement;
|
|
76
|
+
/**
|
|
77
|
+
* This is the first focusable element, needed for the modal focus trap.
|
|
78
|
+
*
|
|
79
|
+
* Don't cache this and other `@query` fields from inside the calendar modal.
|
|
80
|
+
* They work the first time, but once the calendar is closed and reopened
|
|
81
|
+
* the query will point to an element that doesn't exist anymore.
|
|
82
|
+
*/
|
|
83
|
+
previousMonthButton: HTMLButtonElement;
|
|
84
|
+
todayCell: HTMLTableCellElement;
|
|
78
85
|
selectedCell: HTMLTableCellElement;
|
|
86
|
+
/**
|
|
87
|
+
* We can't use private fields (`#` prefix) for this method
|
|
88
|
+
* since we can't overwrite private field methods. We need
|
|
89
|
+
* to `.bind(this)` in the constructor because we need one
|
|
90
|
+
* stable method handler we can register and unregister on
|
|
91
|
+
* `document`, that has access to this specific instance
|
|
92
|
+
* of WarpDatepicker to control the calendar.
|
|
93
|
+
* @internal
|
|
94
|
+
*/
|
|
95
|
+
private _onClickOutside;
|
|
79
96
|
constructor();
|
|
80
97
|
connectedCallback(): void;
|
|
81
98
|
disconnectedCallback(): void;
|
|
99
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
82
100
|
render(): import("lit").TemplateResult<1>;
|
|
83
101
|
}
|
|
84
102
|
declare global {
|