@warp-ds/elements 2.2.0-next.4 → 2.2.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/README.md +27 -17
- package/dist/.storybook/utilities.d.ts +28 -0
- package/dist/api.js +1 -49
- package/dist/api.js.map +2 -2
- package/dist/custom-elements.json +3312 -344
- package/dist/index.css +2 -0
- package/dist/index.css.map +7 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +449 -7142
- package/dist/index.js.map +4 -4
- package/dist/packages/affix/affix.stories.d.ts +10 -0
- package/dist/packages/affix/affix.test.d.ts +1 -0
- package/dist/packages/affix/index.d.ts +52 -24
- package/dist/packages/affix/index.js +2448 -2241
- package/dist/packages/affix/index.js.map +4 -4
- package/dist/packages/affix/react.d.ts +2 -0
- package/dist/packages/affix/react.js +2482 -0
- package/dist/packages/affix/react.js.map +7 -0
- package/dist/packages/affix/styles.d.ts +1 -0
- package/dist/packages/alert/alert.stories.d.ts +15 -0
- package/dist/packages/alert/index.d.ts +16 -1
- package/dist/packages/alert/index.js +2472 -0
- package/dist/packages/alert/index.js.map +7 -0
- package/dist/packages/alert/react.d.ts +2 -0
- package/dist/packages/alert/react.js +2492 -0
- package/dist/packages/alert/react.js.map +7 -0
- package/dist/packages/alert/styles.d.ts +1 -0
- package/dist/packages/attention/attention.stories.d.ts +10 -0
- package/dist/packages/attention/index.d.ts +14 -1
- package/dist/packages/attention/index.js +17 -3977
- package/dist/packages/attention/index.js.map +4 -4
- package/dist/packages/badge/badge.stories.d.ts +17 -0
- package/dist/packages/badge/badge.test.d.ts +1 -0
- package/dist/packages/badge/index.d.ts +17 -12
- package/dist/packages/badge/index.js +2441 -300
- package/dist/packages/badge/index.js.map +4 -4
- package/dist/packages/badge/react.d.ts +2 -0
- package/dist/packages/badge/react.js +2465 -0
- package/dist/packages/badge/react.js.map +7 -0
- package/dist/packages/badge/styles.d.ts +1 -0
- package/dist/packages/box/box.stories.d.ts +14 -0
- package/dist/packages/box/box.test.d.ts +1 -0
- package/dist/packages/box/index.d.ts +21 -21
- package/dist/packages/box/index.js +2441 -304
- package/dist/packages/box/index.js.map +4 -4
- package/dist/packages/box/react.d.ts +2 -0
- package/dist/packages/box/react.js +2465 -0
- package/dist/packages/box/react.js.map +7 -0
- package/dist/packages/box/slot.test.d.ts +1 -0
- package/dist/packages/box/styles.d.ts +1 -0
- package/dist/packages/breadcrumbs/breadcrumbs.stories.d.ts +12 -0
- package/dist/packages/breadcrumbs/breadcrumbs.test.d.ts +1 -0
- package/dist/packages/breadcrumbs/index.d.ts +24 -16
- package/dist/packages/breadcrumbs/index.js +2402 -2049
- package/dist/packages/breadcrumbs/index.js.map +4 -4
- package/dist/packages/breadcrumbs/react.d.ts +2 -0
- package/dist/packages/breadcrumbs/react.js +2475 -0
- package/dist/packages/breadcrumbs/react.js.map +7 -0
- package/dist/packages/breadcrumbs/styles.d.ts +1 -0
- package/dist/packages/button/button.stories.d.ts +21 -0
- package/dist/packages/button/index.d.ts +85 -7
- package/dist/packages/button/index.js +2460 -0
- package/dist/packages/button/index.js.map +7 -0
- package/dist/packages/button/react.d.ts +2 -0
- package/dist/packages/button/react.js +2480 -0
- package/dist/packages/button/react.js.map +7 -0
- package/dist/packages/button/styles.d.ts +1 -0
- package/dist/packages/card/card.stories.d.ts +15 -0
- package/dist/packages/card/index.d.ts +27 -1
- package/dist/packages/card/index.js +2467 -0
- package/dist/packages/card/index.js.map +7 -0
- package/dist/packages/card/react.d.ts +2 -0
- package/dist/packages/card/react.js +2487 -0
- package/dist/packages/card/react.js.map +7 -0
- package/dist/packages/card/styles.d.ts +1 -0
- package/dist/packages/datepicker/datepicker.d.ts +89 -0
- package/dist/packages/datepicker/datepicker.stories.d.ts +11 -0
- package/dist/packages/datepicker/index.d.ts +1 -0
- package/dist/packages/datepicker/index.js +2782 -0
- package/dist/packages/datepicker/index.js.map +7 -0
- package/dist/packages/datepicker/locales/da/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/en/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/fi/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/nb/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/sv/messages.d.mts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker-calendar.styles.d.ts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker-day.styles.d.ts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker-month.styles.d.ts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker.styles.d.ts +1 -0
- package/dist/packages/datepicker/utils.d.ts +13 -0
- package/dist/packages/dead-toggle/dead-toggle.stories.d.ts +10 -0
- package/dist/packages/dead-toggle/dead-toggle.test.d.ts +1 -0
- package/dist/packages/dead-toggle/index.d.ts +21 -0
- package/dist/packages/dead-toggle/index.js +2487 -0
- package/dist/packages/dead-toggle/index.js.map +7 -0
- package/dist/packages/dead-toggle/react.d.ts +2 -0
- package/dist/packages/dead-toggle/react.js +2507 -0
- package/dist/packages/dead-toggle/react.js.map +7 -0
- package/dist/packages/expandable/expandable.stories.d.ts +19 -0
- package/dist/packages/expandable/index.d.ts +43 -0
- package/dist/packages/expandable/index.js +2475 -0
- package/dist/packages/expandable/index.js.map +7 -0
- package/dist/packages/expandable/react.d.ts +2 -0
- package/dist/packages/expandable/react.js +2495 -0
- package/dist/packages/expandable/react.js.map +7 -0
- package/dist/packages/expandable/styles.d.ts +1 -0
- package/dist/packages/modal/index.d.ts +5 -6
- package/dist/packages/modal/index.js +2568 -2445
- package/dist/packages/modal/index.js.map +4 -4
- package/dist/packages/modal/modal-footer.d.ts +17 -10
- package/dist/packages/modal/modal-header.d.ts +20 -13
- package/dist/packages/modal/modal-main.d.ts +18 -7
- package/dist/packages/modal/modal.stories.d.ts +19 -0
- package/dist/packages/modal/react.d.ts +4 -0
- package/dist/packages/modal/react.js +2754 -0
- package/dist/packages/modal/react.js.map +7 -0
- package/dist/packages/modal/util.d.ts +7 -17
- package/dist/packages/pageindicator/index.d.ts +14 -0
- package/dist/packages/pageindicator/index.js +32 -0
- package/dist/packages/pageindicator/index.js.map +7 -0
- package/dist/packages/pageindicator/pageindicator.stories.d.ts +32 -0
- package/dist/packages/pageindicator/react.d.ts +2 -0
- package/dist/packages/pageindicator/react.js +52 -0
- package/dist/packages/pageindicator/react.js.map +7 -0
- package/dist/packages/pageindicator/style.d.ts +1 -0
- package/dist/packages/pagination/index.d.ts +37 -0
- package/dist/packages/pagination/index.js +2494 -0
- package/dist/packages/pagination/index.js.map +7 -0
- package/dist/packages/pagination/locales/da/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/en/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/fi/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/nb/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/sv/messages.d.mts +1 -0
- package/dist/packages/pagination/pagination.stories.d.ts +14 -0
- package/dist/packages/pagination/pagination.test.d.ts +1 -0
- package/dist/packages/pagination/react.d.ts +2 -0
- package/dist/packages/pagination/react.js +2514 -0
- package/dist/packages/pagination/react.js.map +7 -0
- package/dist/packages/pagination/styles.d.ts +1 -0
- package/dist/packages/pill/index.d.ts +44 -23
- package/dist/packages/pill/index.js +2408 -2173
- package/dist/packages/pill/index.js.map +4 -4
- package/dist/packages/pill/pill.stories.d.ts +12 -0
- package/dist/packages/pill/pill.test.d.ts +1 -0
- package/dist/packages/pill/styles.d.ts +1 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.d.ts +64 -0
- package/dist/packages/rip-and-tear-checkbox/index.css +2 -0
- package/dist/packages/rip-and-tear-checkbox/index.css.map +7 -0
- package/dist/packages/rip-and-tear-checkbox/index.d.ts +6 -0
- package/dist/packages/rip-and-tear-checkbox/index.js +36 -0
- package/dist/packages/rip-and-tear-checkbox/index.js.map +7 -0
- package/dist/packages/rip-and-tear-radio/base-element.d.ts +46 -0
- package/dist/packages/rip-and-tear-radio/custom-error-validator.d.ts +6 -0
- package/dist/packages/rip-and-tear-radio/form-associated-element.d.ts +103 -0
- package/dist/packages/rip-and-tear-radio/index.css +2 -0
- package/dist/packages/rip-and-tear-radio/index.css.map +7 -0
- package/dist/packages/rip-and-tear-radio/index.d.ts +8 -0
- package/dist/packages/rip-and-tear-radio/index.js +34 -0
- package/dist/packages/rip-and-tear-radio/index.js.map +7 -0
- package/dist/packages/rip-and-tear-radio/invalid.d.ts +8 -0
- package/dist/packages/rip-and-tear-radio/math.d.ts +1 -0
- package/dist/packages/rip-and-tear-radio/radio-group.d.ts +72 -0
- package/dist/packages/rip-and-tear-radio/radio.d.ts +38 -0
- package/dist/packages/rip-and-tear-radio/required-validator.d.ts +11 -0
- package/dist/packages/rip-and-tear-radio/slot.d.ts +20 -0
- package/dist/packages/rip-and-tear-radio/watch.d.ts +26 -0
- package/dist/packages/select/index.d.ts +59 -58
- package/dist/packages/select/index.js +2421 -2531
- package/dist/packages/select/index.js.map +4 -4
- package/dist/packages/select/react.d.ts +2 -0
- package/dist/packages/select/react.js +2494 -0
- package/dist/packages/select/react.js.map +7 -0
- package/dist/packages/select/select.stories.d.ts +10 -0
- package/dist/packages/select/select.test.d.ts +1 -0
- package/dist/packages/select/styles.d.ts +1 -0
- package/dist/packages/textfield/index.d.ts +70 -72
- package/dist/packages/textfield/index.js +2455 -701
- package/dist/packages/textfield/index.js.map +4 -4
- package/dist/packages/textfield/react.d.ts +2 -0
- package/dist/packages/textfield/react.js +2490 -0
- package/dist/packages/textfield/react.js.map +7 -0
- package/dist/packages/textfield/styles.d.ts +1 -0
- package/dist/packages/textfield/textfield.stories.d.ts +17 -0
- package/dist/packages/textfield/textfield.test.d.ts +1 -0
- package/dist/packages/toast/index.js +24 -2782
- package/dist/packages/toast/index.js.map +4 -4
- package/dist/packages/toast/toast-container.d.ts +16 -0
- package/dist/packages/toast/toast.d.ts +20 -0
- package/dist/packages/toast/toast.stories.d.ts +12 -0
- package/dist/packages/utils/index.d.ts +1 -1
- package/dist/packages/utils/unstyled-heading.d.ts +1 -1
- package/dist/setup-tests.d.ts +1 -0
- package/dist/vscode.css-custom-data.json +6 -0
- package/dist/vscode.html-custom-data.json +360 -0
- package/dist/web-types.json +831 -0
- package/package.json +48 -13
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
declare const ModalFooter_base: import("./util").Constructor<{
|
|
3
|
+
close: () => void;
|
|
4
|
+
}> & import("./util").Constructor<{
|
|
5
|
+
handleSlotChange: (evt: Event) => void;
|
|
6
|
+
}> & typeof LitElement;
|
|
7
|
+
/**
|
|
8
|
+
* The footer section of a modal, typically where you place actions.
|
|
9
|
+
*
|
|
10
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
11
|
+
*/
|
|
10
12
|
export declare class ModalFooter extends ModalFooter_base {
|
|
11
13
|
render(): import("lit").TemplateResult<1>;
|
|
12
|
-
static styles: import("lit").CSSResult;
|
|
14
|
+
static styles: import("lit").CSSResult[];
|
|
15
|
+
}
|
|
16
|
+
declare global {
|
|
17
|
+
interface HTMLElementTagNameMap {
|
|
18
|
+
'w-modal-footer': ModalFooter;
|
|
19
|
+
}
|
|
13
20
|
}
|
|
14
21
|
export {};
|
|
@@ -1,29 +1,36 @@
|
|
|
1
|
-
import { nothing, PropertyValues } from 'lit';
|
|
1
|
+
import { LitElement, nothing, PropertyValues } from 'lit';
|
|
2
2
|
import '@warp-ds/icons/elements/arrow-left-16';
|
|
3
3
|
import '@warp-ds/icons/elements/close-16';
|
|
4
|
-
declare const ModalHeader_base: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
declare const ModalHeader_base: import("./util.js").Constructor<{
|
|
5
|
+
close: () => void;
|
|
6
|
+
}> & typeof LitElement;
|
|
7
|
+
/**
|
|
8
|
+
* The header section of a modal, typically where you place the title and a close button.
|
|
9
|
+
*
|
|
10
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
11
|
+
*
|
|
12
|
+
* @slot 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.
|
|
13
|
+
*/
|
|
13
14
|
export declare class ModalHeader extends ModalHeader_base {
|
|
14
15
|
title: string;
|
|
15
16
|
back: boolean;
|
|
16
17
|
noClose: boolean;
|
|
18
|
+
/** @internal */
|
|
17
19
|
private _hasTopContent;
|
|
18
20
|
titleEl: HTMLElement;
|
|
19
21
|
constructor();
|
|
20
22
|
render(): import("lit").TemplateResult<1>;
|
|
21
23
|
willUpdate(changedProperties: PropertyValues<this>): Promise<void>;
|
|
22
24
|
get titleClasses(): string;
|
|
23
|
-
get backButton():
|
|
24
|
-
get closeButton():
|
|
25
|
+
get backButton(): import("lit").TemplateResult<1> | typeof nothing;
|
|
26
|
+
get closeButton(): import("lit").TemplateResult<1> | typeof nothing;
|
|
25
27
|
emitBack(): void;
|
|
26
28
|
handleTopSlotChange(slotEvent: any): void;
|
|
27
|
-
static styles: import("lit").CSSResult;
|
|
29
|
+
static styles: import("lit").CSSResult[];
|
|
30
|
+
}
|
|
31
|
+
declare global {
|
|
32
|
+
interface HTMLElementTagNameMap {
|
|
33
|
+
'w-modal-header': ModalHeader;
|
|
34
|
+
}
|
|
28
35
|
}
|
|
29
36
|
export {};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
declare const ModalMain_base: import("./util.js").Constructor<{
|
|
3
|
+
handleSlotChange: (evt: Event) => void;
|
|
4
|
+
}> & typeof LitElement;
|
|
5
|
+
/**
|
|
6
|
+
* Modals (or dialogs) display important information that users need to acknowledge.
|
|
7
|
+
*
|
|
8
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
9
|
+
*
|
|
10
|
+
* @slot header - Typically where you would use the `w-modal-header` component.
|
|
11
|
+
* @slot content - The main content of the modal.
|
|
12
|
+
* @slot footer - Typically where you would use the `w-modal-footer` component, for things like actions.
|
|
13
|
+
*/
|
|
8
14
|
export declare class ModalMain extends ModalMain_base {
|
|
9
15
|
show: boolean;
|
|
10
16
|
contentId: string;
|
|
@@ -24,4 +30,9 @@ export declare class ModalMain extends ModalMain_base {
|
|
|
24
30
|
modifyBorderRadius(): void;
|
|
25
31
|
static styles: import("lit").CSSResult[];
|
|
26
32
|
}
|
|
33
|
+
declare global {
|
|
34
|
+
interface HTMLElementTagNameMap {
|
|
35
|
+
'w-modal': ModalMain;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
27
38
|
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
import type { WarpModal, WarpModalHeader, WarpModalFooter } from './index.ts';
|
|
3
|
+
import './index.ts';
|
|
4
|
+
declare const modalArgs: Partial<WarpModal> & {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
declare const modalHeaderArgs: Partial<WarpModalHeader> & {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
};
|
|
10
|
+
declare const modalFooterArgs: Partial<WarpModalFooter> & {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
declare const meta: Meta;
|
|
14
|
+
export default meta;
|
|
15
|
+
export declare const Default: StoryObj;
|
|
16
|
+
export declare const WithImage: StoryObj;
|
|
17
|
+
export declare const Modal: StoryObj<typeof modalArgs>;
|
|
18
|
+
export declare const ModalHeader: StoryObj<typeof modalHeaderArgs>;
|
|
19
|
+
export declare const ModalFooter: StoryObj<typeof modalFooterArgs>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { WarpModal, WarpModalFooter, WarpModalHeader } from './index.js';
|
|
2
|
+
export declare const Modal: import("@lit/react").ReactWebComponent<WarpModal, {}>;
|
|
3
|
+
export declare const ModalHeader: import("@lit/react").ReactWebComponent<WarpModalHeader, {}>;
|
|
4
|
+
export declare const ModalFooter: import("@lit/react").ReactWebComponent<WarpModalFooter, {}>;
|