@supersoniks/concorde 1.0.7 → 1.1.1
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 +16 -8
- package/cli.js +69 -0
- package/core/components/functional/date/date.d.ts +34 -0
- package/core/components/functional/date/date.js +187 -0
- package/core/components/functional/example/example.d.ts +7 -0
- package/core/components/functional/example/example.js +25 -0
- package/core/components/functional/fetch/fetch.d.ts +49 -0
- package/core/components/functional/fetch/fetch.js +38 -0
- package/core/components/functional/functional.d.ts +11 -0
- package/core/components/functional/functional.js +11 -0
- package/core/components/functional/if/if.d.ts +12 -0
- package/core/components/functional/if/if.js +43 -0
- package/core/components/functional/list/list.d.ts +67 -0
- package/core/components/functional/list/list.js +132 -0
- package/core/components/functional/queue/queue.d.ts +42 -0
- package/core/components/functional/queue/queue.js +184 -0
- package/core/components/functional/router/redirect.d.ts +18 -0
- package/core/components/functional/router/redirect.js +57 -0
- package/core/components/functional/router/router.d.ts +26 -0
- package/core/components/functional/router/router.js +104 -0
- package/core/components/functional/states/states.d.ts +28 -0
- package/core/components/functional/states/states.js +139 -0
- package/core/components/functional/submit/submit.d.ts +24 -0
- package/core/components/functional/submit/submit.js +108 -0
- package/{types/core/components → core/components/functional/subscriber}/subscriber.d.ts +5 -1
- package/core/components/functional/subscriber/subscriber.js +30 -0
- package/core/components/ui/alert/alert.d.ts +20 -0
- package/core/components/ui/alert/alert.js +150 -0
- package/core/components/ui/badge/badge.d.ts +24 -0
- package/core/components/ui/badge/badge.js +177 -0
- package/core/components/ui/button/button.d.ts +125 -0
- package/core/components/ui/button/button.js +558 -0
- package/core/components/ui/divider/divider.d.ts +11 -0
- package/core/components/ui/divider/divider.js +144 -0
- package/core/components/ui/form/checkbox/checkbox.d.ts +120 -0
- package/core/components/ui/form/checkbox/checkbox.js +203 -0
- package/core/components/ui/form/css/form-control.d.ts +1 -0
- package/core/components/ui/form/css/form-control.js +219 -0
- package/core/components/ui/form/fieldset/fieldset.d.ts +15 -0
- package/core/components/ui/form/fieldset/fieldset.js +70 -0
- package/core/components/ui/form/fieldset/legend.d.ts +11 -0
- package/core/components/ui/form/fieldset/legend.js +92 -0
- package/core/components/ui/form/form-layout/form-actions.d.ts +6 -0
- package/core/components/ui/form/form-layout/form-actions.js +23 -0
- package/core/components/ui/form/form-layout/form-layout.d.ts +9 -0
- package/core/components/ui/form/form-layout/form-layout.js +58 -0
- package/core/components/ui/form/input/input.d.ts +84 -0
- package/core/components/ui/form/input/input.js +180 -0
- package/core/components/ui/form/radio/radio.d.ts +12 -0
- package/core/components/ui/form/radio/radio.js +55 -0
- package/core/components/ui/form/select/select.d.ts +39 -0
- package/core/components/ui/form/select/select.js +220 -0
- package/core/components/ui/form/textarea/textarea.d.ts +69 -0
- package/core/components/ui/form/textarea/textarea.js +150 -0
- package/core/components/ui/group/group.d.ts +6 -0
- package/core/components/ui/group/group.js +57 -0
- package/core/components/ui/icon/icon.d.ts +17 -0
- package/core/components/ui/icon/icon.js +93 -0
- package/core/components/ui/icon/icons.d.ts +13 -0
- package/core/components/ui/icon/icons.js +25 -0
- package/core/components/ui/icon/icons.json +1 -0
- package/core/components/ui/image/image.d.ts +14 -0
- package/core/components/ui/image/image.js +152 -0
- package/core/components/ui/link/link.d.ts +16 -0
- package/core/components/ui/link/link.js +70 -0
- package/core/components/ui/loader/loader.d.ts +20 -0
- package/core/components/ui/loader/loader.js +94 -0
- package/{types → core}/components/ui/loader/styles/fixed.d.ts +0 -0
- package/core/components/ui/loader/styles/fixed.js +57 -0
- package/{types → core}/components/ui/loader/styles/inline.d.ts +0 -0
- package/core/components/ui/loader/styles/inline.js +71 -0
- package/core/components/ui/menu/menu-item.d.ts +5 -0
- package/core/components/ui/menu/menu-item.js +37 -0
- package/core/components/ui/menu/menu.d.ts +26 -0
- package/core/components/ui/menu/menu.js +125 -0
- package/core/components/ui/modal/modal-actions.d.ts +7 -0
- package/core/components/ui/modal/modal-actions.js +46 -0
- package/core/components/ui/modal/modal-close.d.ts +6 -0
- package/core/components/ui/modal/modal-close.js +38 -0
- package/core/components/ui/modal/modal-content.d.ts +5 -0
- package/core/components/ui/modal/modal-content.js +29 -0
- package/core/components/ui/modal/modal-subtitle.d.ts +5 -0
- package/core/components/ui/modal/modal-subtitle.js +33 -0
- package/core/components/ui/modal/modal-title.d.ts +5 -0
- package/core/components/ui/modal/modal-title.js +33 -0
- package/core/components/ui/modal/modal.d.ts +36 -0
- package/core/components/ui/modal/modal.js +325 -0
- package/core/components/ui/pop/pop.d.ts +28 -0
- package/core/components/ui/pop/pop.js +223 -0
- package/core/components/ui/tabs/tab.d.ts +6 -0
- package/core/components/ui/tabs/tab.js +46 -0
- package/core/components/ui/tabs/tabs.d.ts +14 -0
- package/core/components/ui/tabs/tabs.js +127 -0
- package/core/components/ui/taxonomy/taxonomy.d.ts +41 -0
- package/core/components/ui/taxonomy/taxonomy.js +113 -0
- package/core/components/ui/theme/css/tailwind.css +3 -0
- package/core/components/ui/theme/css/tailwind.d.ts +2 -0
- package/core/components/ui/theme/theme-collection/core-variables.d.ts +1 -0
- package/core/components/ui/theme/theme-collection/core-variables.js +50 -0
- package/{types/components → core/components/ui}/theme/theme-collection/dark.d.ts +0 -0
- package/core/components/ui/theme/theme-collection/dark.js +41 -0
- package/{types/components → core/components/ui}/theme/theme-collection/light.d.ts +0 -0
- package/core/components/ui/theme/theme-collection/light.js +35 -0
- package/core/components/ui/theme/theme.d.ts +11 -0
- package/core/components/ui/theme/theme.js +105 -0
- package/core/components/ui/toast/message-subscriber.d.ts +17 -0
- package/core/components/ui/toast/message-subscriber.js +85 -0
- package/{types → core}/components/ui/toast/toast.d.ts +10 -8
- package/core/components/ui/toast/toast.js +260 -0
- package/core/components/ui/tooltip/tooltip.d.ts +7 -0
- package/core/components/ui/tooltip/tooltip.js +68 -0
- package/core/components/ui/ui.d.ts +27 -0
- package/core/components/ui/ui.js +34 -0
- package/core/core.d.ts +3 -0
- package/core/core.js +7 -0
- package/core/mixins/Fetcher.d.ts +69 -0
- package/core/mixins/Fetcher.js +147 -0
- package/core/mixins/FormCheckable.d.ts +72 -0
- package/core/mixins/FormCheckable.js +144 -0
- package/core/mixins/FormElement.d.ts +21 -0
- package/core/mixins/FormElement.js +229 -0
- package/core/mixins/FormInput.d.ts +49 -0
- package/core/mixins/FormInput.js +33 -0
- package/core/mixins/Subscriber.d.ts +30 -0
- package/core/mixins/Subscriber.js +379 -0
- package/core/mixins/TemplatesContainer.d.ts +12 -0
- package/core/mixins/TemplatesContainer.js +60 -0
- package/core/mixins/mixins.d.ts +6 -0
- package/core/mixins/mixins.js +6 -0
- package/core/utils/Arrays.d.ts +97 -0
- package/core/utils/Arrays.js +136 -0
- package/core/utils/DataBindObserver.d.ts +74 -0
- package/core/utils/DataBindObserver.js +252 -0
- package/core/utils/Format.d.ts +11 -0
- package/core/utils/Format.js +22 -0
- package/core/utils/HTML.d.ts +13 -0
- package/core/utils/HTML.js +26 -0
- package/core/utils/LocationHandler.d.ts +44 -0
- package/core/utils/LocationHandler.js +96 -0
- package/core/utils/Objects.d.ts +23 -0
- package/core/utils/Objects.js +63 -0
- package/core/utils/PublisherProxy.d.mts +110 -0
- package/core/utils/PublisherProxy.mjs +371 -0
- package/core/utils/api.d.ts +66 -0
- package/core/utils/api.js +145 -0
- package/package.json +159 -21
- package/LICENSE +0 -43
- package/dist/concorde.bundle.js +0 -3620
- package/types/components/event/event-card/event-card.d.ts +0 -10
- package/types/components/event/event-title/event-title.d.ts +0 -7
- package/types/components/event/event.d.ts +0 -8
- package/types/components/giftcards/giftcard/giftcard.d.ts +0 -15
- package/types/components/illustration/illustration.d.ts +0 -16
- package/types/components/product/prices-form/price-button/price-button.d.ts +0 -25
- package/types/components/product/prices-form/prices-form.d.ts +0 -23
- package/types/components/theme/theme-collection/bootstrap5.d.ts +0 -1
- package/types/components/theme/theme-collection/dracula.d.ts +0 -1
- package/types/components/theme/theme.d.ts +0 -8
- package/types/components/ui/button/button.d.ts +0 -13
- package/types/components/ui/loader/loader.d.ts +0 -15
- package/types/components/ui/modal/modal.d.ts +0 -17
- package/types/components/ui/tooltip/tooltip.d.ts +0 -9
- package/types/core/components/fetch.d.ts +0 -6
- package/types/core/components/list.d.ts +0 -9
- package/types/core/components/queue.d.ts +0 -15
- package/types/core/components/taxonomy.d.ts +0 -13
- package/types/core/components/text-formatted.d.ts +0 -15
- package/types/core/components/text.d.ts +0 -9
- package/types/core/core.d.ts +0 -7
- package/types/core/mixins/Fetcher.d.ts +0 -9
- package/types/core/mixins/Subscriber.d.ts +0 -13
- package/types/core/utils/api.d.ts +0 -16
- package/types/index.d.ts +0 -12
- package/types/styles/button/button.d.ts +0 -1
- package/types/styles/prose/prose.d.ts +0 -2
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement, css } from "lit";
|
|
8
|
+
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
/**
|
|
10
|
+
* Un badge simple avec deux slots, un nommé prefix et un nomé suffix de manière à pouvoir mettre (par exemple) une icone avant ou après le contenu.
|
|
11
|
+
* * Le badge est comparable au bouton car il possèdent tous les deux les propriétés *type* (primary...), *variant*(outline, ghost), size(xs...)...
|
|
12
|
+
* * Le badge n'est pas interactif contrairement au bouton
|
|
13
|
+
*/
|
|
14
|
+
let Badge = class Badge extends LitElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
/**
|
|
18
|
+
* Le type change surtout la couleur composant
|
|
19
|
+
*/
|
|
20
|
+
this.type = "default";
|
|
21
|
+
/**
|
|
22
|
+
* Le composant par defaut sans se paramètre à forte afordance
|
|
23
|
+
* * gost : composant super léger visuellement
|
|
24
|
+
* * outline : composant légé avec une bordure
|
|
25
|
+
*/
|
|
26
|
+
this.variant = "default";
|
|
27
|
+
/**
|
|
28
|
+
* Taille du composant, implique notamment des modifications de typo et de marge interne
|
|
29
|
+
*/
|
|
30
|
+
this.size = "md";
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
return html `
|
|
34
|
+
<slot name="prefix"></slot>
|
|
35
|
+
<slot></slot>
|
|
36
|
+
<slot name="suffix"></slot>
|
|
37
|
+
`;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
Badge.styles = [
|
|
41
|
+
css `
|
|
42
|
+
:host {
|
|
43
|
+
--sc-badge-gap: 0.3em;
|
|
44
|
+
--sc-badge-py: 0.15em;
|
|
45
|
+
--sc-badge-px: 0.66em;
|
|
46
|
+
--sc-badge-fs: 1rem;
|
|
47
|
+
--sc-badge-fw: 1rem;
|
|
48
|
+
|
|
49
|
+
--sc-badge-color: var(--sc-base-content, #1f2937);
|
|
50
|
+
--sc-badge-bg: var(--sc-base-200, #e5e7eb);
|
|
51
|
+
|
|
52
|
+
--sc-badge-border-with: var(--sc-form-border-width, 0.1rem);
|
|
53
|
+
--sc-badge-border-color: transparent;
|
|
54
|
+
--sc-badge-border: var(--sc-badge-border-with) solid var(--sc-badge-border-color);
|
|
55
|
+
|
|
56
|
+
--sc-badge-rounded: 9999px;
|
|
57
|
+
--sc-badge-line-height: 1.15;
|
|
58
|
+
--sc-badge-fw: var(--sc-font-weight-base);
|
|
59
|
+
|
|
60
|
+
display: inline-flex;
|
|
61
|
+
align-items:center;
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
line-height: var(--sc-badge-line-height);
|
|
64
|
+
border-radius: var(--sc-badge-rounded);
|
|
65
|
+
background: var(--sc-badge-bg);
|
|
66
|
+
color: var(--sc-badge-color);
|
|
67
|
+
|
|
68
|
+
font-family: var(--sc-badge-ff, var(--sc-font-family-base, inherit));
|
|
69
|
+
font-weight: var(--sc-badge-fw);
|
|
70
|
+
|
|
71
|
+
padding-top: var(--sc-badge-py);
|
|
72
|
+
padding-bottom: var(--sc-badge-py);
|
|
73
|
+
padding-left: var(--sc-badge-px);
|
|
74
|
+
padding-right: var(--sc-badge-px);
|
|
75
|
+
min-height: calc(var(--sc-badge-px) * 2);
|
|
76
|
+
border: var(--sc-badge-border);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/*TYPES*/
|
|
80
|
+
:host([type="primary"]) {
|
|
81
|
+
--sc-badge-color: var(--sc-primary-content);
|
|
82
|
+
--sc-badge-bg: var(--sc-primary);
|
|
83
|
+
}
|
|
84
|
+
:host([type="warning"]) {
|
|
85
|
+
--sc-badge-color: var(--sc-warning-content);
|
|
86
|
+
--sc-badge-bg: var(--sc-warning);
|
|
87
|
+
}
|
|
88
|
+
:host([type="danger"]) {
|
|
89
|
+
--sc-badge-color: var(--sc-danger-content);
|
|
90
|
+
--sc-badge-bg: var(--sc-danger);
|
|
91
|
+
}
|
|
92
|
+
:host([type="info"]) {
|
|
93
|
+
--sc-badge-color: var(--sc-info-content);
|
|
94
|
+
--sc-badge-bg: var(--sc-info);
|
|
95
|
+
}
|
|
96
|
+
:host([type="success"]) {
|
|
97
|
+
--sc-badge-color: var(--sc-success-content);
|
|
98
|
+
--sc-badge-bg: var(--sc-success);
|
|
99
|
+
}
|
|
100
|
+
:host([type="neutral"]) {
|
|
101
|
+
--sc-badge-color: var(--sc-base);
|
|
102
|
+
--sc-badge-bg: var(--sc-base-content);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/*SIZE*/
|
|
106
|
+
:host {
|
|
107
|
+
font-size: var(--sc-badge-fs);
|
|
108
|
+
gap: var(--sc-badge-gap);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:host([size="xs"]) {
|
|
112
|
+
--sc-badge-fs: 0.68rem;
|
|
113
|
+
--sc-badge-gap: 0.35em;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:host([size="sm"]) {
|
|
117
|
+
--sc-badge-fs: 0.85rem;
|
|
118
|
+
--sc-badge-gap: 0.35em;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:host([size="lg"]) {
|
|
122
|
+
--sc-badge-line-height: 1.2;
|
|
123
|
+
--sc-badge-fs: 1.25rem;
|
|
124
|
+
--sc-badge-gap: 0.5em;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:host([size="xl"]) {
|
|
128
|
+
--sc-badge-line-height: 1.2;
|
|
129
|
+
--sc-badge-fs: 1.5rem;
|
|
130
|
+
--sc-badge-gap: 0.5em;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/*OUTLINE*/
|
|
134
|
+
:host([variant="outline"][type]) {
|
|
135
|
+
border-width: var(--sc-badge-border-with) !important;
|
|
136
|
+
border-color: var(--sc-badge-bg);
|
|
137
|
+
color: var(--sc-badge-bg);
|
|
138
|
+
background: transparent;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:host([variant="outline"][type="default"]) {
|
|
142
|
+
border-color: var(--sc-base-400);
|
|
143
|
+
color: var(--sc-base-500);
|
|
144
|
+
background: transparent;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/*GHOST*/
|
|
148
|
+
:host([variant="ghost"][type]) {
|
|
149
|
+
color: var(--sc-badge-bg);
|
|
150
|
+
background: transparent;
|
|
151
|
+
padding: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
:host([variant="ghost"][type="default"]) {
|
|
155
|
+
color: var(--sc-badge-color);
|
|
156
|
+
background: transparent;
|
|
157
|
+
}
|
|
158
|
+
`,
|
|
159
|
+
];
|
|
160
|
+
__decorate([
|
|
161
|
+
property({ type: String, reflect: true })
|
|
162
|
+
], Badge.prototype, "type", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
property({ type: String, reflect: true })
|
|
165
|
+
], Badge.prototype, "variant", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
property({ type: String, reflect: true })
|
|
168
|
+
], Badge.prototype, "size", void 0);
|
|
169
|
+
Badge = __decorate([
|
|
170
|
+
customElement("sonic-badge")
|
|
171
|
+
], Badge);
|
|
172
|
+
export { Badge };
|
|
173
|
+
//Ajout pour la creation du cem notamment pour Storybook
|
|
174
|
+
try {
|
|
175
|
+
customElements.define("sonic-badge", Badge);
|
|
176
|
+
}
|
|
177
|
+
catch (e) { }
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { LitElement, CSSResultGroup } from "lit";
|
|
2
|
+
declare const Button_base: {
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
_value: string | null;
|
|
5
|
+
value: string | null;
|
|
6
|
+
_name: string;
|
|
7
|
+
name: string;
|
|
8
|
+
unique: true | null;
|
|
9
|
+
radio: true | null;
|
|
10
|
+
_checked: true | null;
|
|
11
|
+
checked: true | null;
|
|
12
|
+
setCheckedValue(checked: true | null): void;
|
|
13
|
+
handleChange(): void;
|
|
14
|
+
getValueForFormPublisher(): any;
|
|
15
|
+
setFormValueFromPublisher(value: any): void;
|
|
16
|
+
initPublisher(): void;
|
|
17
|
+
getFormPublisher(): any;
|
|
18
|
+
updateDataValue(): void;
|
|
19
|
+
error: true | null;
|
|
20
|
+
autofocus: true | null;
|
|
21
|
+
disabled: true | null;
|
|
22
|
+
required: true | null;
|
|
23
|
+
formDataProvider: string;
|
|
24
|
+
props: any;
|
|
25
|
+
getAncestorAttributeValue(attributeName: string): string;
|
|
26
|
+
hasAncestorAttribute(attributeName: string): boolean;
|
|
27
|
+
querySelectorAll(selector: string): NodeListOf<Element>;
|
|
28
|
+
publisher: any;
|
|
29
|
+
dataProvider: String;
|
|
30
|
+
noShadowDom: string | null;
|
|
31
|
+
debug: HTMLElement | null;
|
|
32
|
+
defferedDebug: boolean | null;
|
|
33
|
+
makeShadow(props: Record<string, any>, value: any): any;
|
|
34
|
+
dispatchEvent(event: Event): void;
|
|
35
|
+
setAttribute(name: string, value: string): void;
|
|
36
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
37
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
38
|
+
removeAttribute(name: string): void;
|
|
39
|
+
getApiConfiguration(): import("../../../utils/api").APIConfiguration;
|
|
40
|
+
connectedCallback(): void;
|
|
41
|
+
requestUpdate(): void;
|
|
42
|
+
getAttribute(name: string): string;
|
|
43
|
+
hasAttribute(attributeName: String): boolean;
|
|
44
|
+
disconnectedCallback(): void;
|
|
45
|
+
};
|
|
46
|
+
} & (new (...args: any[]) => import("@supersoniks/concorde/core/mixins/FormElement").FormElementInterface) & (new (...args: any[]) => import("@supersoniks/concorde/core/mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
47
|
+
/**
|
|
48
|
+
* Un bouton simple avec deux slots, un nommé préfix et un nomé suffix de manière à pouvoir mettre (par exemple) une icone avant ou après le contenu.
|
|
49
|
+
* * L'objet et ses slot sont en display flex avec direction / alignement et justifications configurables
|
|
50
|
+
* * Le bouton est comparable au badge car il possèdent tous les deux les propriétés *type* (primary...), *variant*(outline, ghost), size(xs...)...
|
|
51
|
+
* * Le bouton possède cependant et notamment une propriété href contrairement à un badge
|
|
52
|
+
*/
|
|
53
|
+
export declare class Button extends Button_base {
|
|
54
|
+
static styles: CSSResultGroup[];
|
|
55
|
+
/**
|
|
56
|
+
* Le type change surtout la couleur composant
|
|
57
|
+
*/
|
|
58
|
+
type: "default" | "primary" | "neutral" | "warning" | "danger" | "success" | "info";
|
|
59
|
+
/**
|
|
60
|
+
* Le composant par defaut sans se paramètre à forte affordance
|
|
61
|
+
* * gost : composant super léger visuellement
|
|
62
|
+
* * outline : composant légé avec une bordure
|
|
63
|
+
*/
|
|
64
|
+
variant: "default" | "ghost" | "outline" | "unstyled";
|
|
65
|
+
/**
|
|
66
|
+
* Taille du composant, implique notamment des modifications de typo et de marge interne
|
|
67
|
+
*/
|
|
68
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
69
|
+
/**
|
|
70
|
+
* Forme du bouton, permet de le forcer en carré ou cercle
|
|
71
|
+
*/
|
|
72
|
+
shape: "default" | "circle" | "square" | "block";
|
|
73
|
+
/**
|
|
74
|
+
* Propriété de direction *flex* appliquée à l'élément contenant les *slots*
|
|
75
|
+
*/
|
|
76
|
+
direction: string;
|
|
77
|
+
/**
|
|
78
|
+
* Propriété align-items de *flex* appliquée à l'élément contenant les *slots*
|
|
79
|
+
*/
|
|
80
|
+
align: string;
|
|
81
|
+
/**
|
|
82
|
+
* Propriété justify-content de *flex* appliquée à l'élément contenant les *slots*
|
|
83
|
+
*/
|
|
84
|
+
justify: string;
|
|
85
|
+
/**
|
|
86
|
+
* Propriété text-align du bouton
|
|
87
|
+
*/
|
|
88
|
+
textAlign: "" | "right" | "left" | "center";
|
|
89
|
+
/**
|
|
90
|
+
* Propriété min-width du bouton
|
|
91
|
+
*/
|
|
92
|
+
minWidth: string;
|
|
93
|
+
/**
|
|
94
|
+
* Laisse apparaitre un loader en remplacement du contenu du bouton.
|
|
95
|
+
* Désactive également le clic sur le bouton
|
|
96
|
+
*/
|
|
97
|
+
loading: boolean;
|
|
98
|
+
hasPrefix: boolean;
|
|
99
|
+
hasSuffix: boolean;
|
|
100
|
+
prefixes: HTMLElement[];
|
|
101
|
+
suffixes: HTMLElement[];
|
|
102
|
+
/**
|
|
103
|
+
* L'url
|
|
104
|
+
*/
|
|
105
|
+
private _href;
|
|
106
|
+
set href(value: string);
|
|
107
|
+
get href(): string;
|
|
108
|
+
/**
|
|
109
|
+
* Si présent on passe en mode pushstate
|
|
110
|
+
*/
|
|
111
|
+
pushState: null;
|
|
112
|
+
active: boolean;
|
|
113
|
+
handlePushState(e: Event): void;
|
|
114
|
+
handleChange(e?: any): void;
|
|
115
|
+
connectedCallback(): void;
|
|
116
|
+
setCheckedValue(checked: true | null): void;
|
|
117
|
+
disconnectedCallback(): void;
|
|
118
|
+
private _location;
|
|
119
|
+
get location(): string;
|
|
120
|
+
set location(value: string);
|
|
121
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
122
|
+
onSlotChange(): void;
|
|
123
|
+
}
|
|
124
|
+
export declare const SonicButton: typeof Button;
|
|
125
|
+
export {};
|