@florid-kit/components 0.3.13 → 0.3.16
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/components/button.d.ts +11 -26
- package/components/side-panel.d.ts +32 -0
- package/index.js +404 -228
- package/index.mjs +970 -706
- package/package.json +1 -1
package/components/button.d.ts
CHANGED
|
@@ -2,47 +2,32 @@ import { LitElement } from 'lit';
|
|
|
2
2
|
import { FormSubmitter, FormSubmitterType } from '../controllers/form-submitter';
|
|
3
3
|
|
|
4
4
|
declare const buttonBaseClass: import('../behaviors/mixin').MixinReturn<typeof LitElement, import('../behaviors/element-internals.js').WithElementInternals>;
|
|
5
|
-
|
|
6
|
-
type
|
|
5
|
+
type ButtonVariant = "primary" | "secondary" | "ghost" | "tertiary";
|
|
6
|
+
type size = "small" | "medium" | "large";
|
|
7
7
|
export declare class OccitaneButton extends buttonBaseClass implements FormSubmitter {
|
|
8
|
-
/** @nocollapse */
|
|
9
8
|
static readonly formAssociated = true;
|
|
10
9
|
static styles: import('lit').CSSResult;
|
|
11
|
-
/**
|
|
12
|
-
* The default behavior of the button. May be "button", "reset", or "submit"
|
|
13
|
-
* (default).
|
|
14
|
-
*/
|
|
15
10
|
type: FormSubmitterType;
|
|
16
|
-
/**
|
|
17
|
-
* The value added to a form with the button's name when the button submits a
|
|
18
|
-
* form.
|
|
19
|
-
*/
|
|
20
11
|
value: string;
|
|
21
12
|
get name(): string;
|
|
22
13
|
set name(name: string);
|
|
23
|
-
/**
|
|
24
|
-
* The associated form element with which this element's value will submit.
|
|
25
|
-
*/
|
|
26
14
|
get form(): HTMLFormElement | null;
|
|
27
15
|
variant: ButtonVariant;
|
|
28
|
-
customclass: string;
|
|
29
16
|
text: string;
|
|
30
17
|
textsecond: string;
|
|
18
|
+
fullwidth: boolean;
|
|
31
19
|
disabled: boolean;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
20
|
+
iconstrokewidth: string;
|
|
21
|
+
startIcon: boolean;
|
|
22
|
+
endIcon: boolean;
|
|
23
|
+
iconSize: size;
|
|
24
|
+
icon: string;
|
|
35
25
|
href: string;
|
|
36
|
-
|
|
37
|
-
* Where to display the linked `href` URL for a link button. Common options
|
|
38
|
-
* include `_blank` to open in a new tab.
|
|
39
|
-
*/
|
|
40
|
-
target: "_blank" | "_parent" | "_self" | "_top" | "";
|
|
41
|
-
protected willUpdate(): void;
|
|
42
|
-
protected updated(): void;
|
|
26
|
+
target: "_blank" | "_self" | "_top" | "_parent" | "";
|
|
43
27
|
protected render(): import('lit').TemplateResult<1>;
|
|
44
|
-
private
|
|
28
|
+
private renderIcon;
|
|
45
29
|
private renderButton;
|
|
30
|
+
private renderLink;
|
|
46
31
|
}
|
|
47
32
|
declare global {
|
|
48
33
|
interface HTMLElementTagNameMap {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
export declare class OccitaneSidePanel extends LitElement {
|
|
4
|
+
open: boolean;
|
|
5
|
+
showHeader: boolean;
|
|
6
|
+
showFooter: boolean;
|
|
7
|
+
headerTitle: string;
|
|
8
|
+
closeButtonLabel: string;
|
|
9
|
+
firstButtonLabel: string;
|
|
10
|
+
firstButtonVariant: string;
|
|
11
|
+
onFirstButtonClick?: () => void;
|
|
12
|
+
secondaryButtonLabel: string;
|
|
13
|
+
secondaryButtonVariant: string;
|
|
14
|
+
onSecondaryButtonClick?: () => void;
|
|
15
|
+
private previousFocusedElement;
|
|
16
|
+
static styles: import('lit').CSSResult;
|
|
17
|
+
connectedCallback(): void;
|
|
18
|
+
disconnectedCallback(): void;
|
|
19
|
+
private handleKeyDown;
|
|
20
|
+
private trapFocus;
|
|
21
|
+
private getFocusableElements;
|
|
22
|
+
openPanel(): void;
|
|
23
|
+
closePanel(): void;
|
|
24
|
+
private handleFirstClick;
|
|
25
|
+
private handleSecondaryClick;
|
|
26
|
+
protected render(): import('lit').TemplateResult<1>;
|
|
27
|
+
}
|
|
28
|
+
declare global {
|
|
29
|
+
interface HTMLElementTagNameMap {
|
|
30
|
+
"o-side-panel": OccitaneSidePanel;
|
|
31
|
+
}
|
|
32
|
+
}
|