@supersoniks/concorde 3.1.50 → 3.1.53
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/build-infos.json +1 -1
- package/concorde-core.bundle.js +187 -121
- package/concorde-core.es.js +1294 -1207
- package/dist/concorde-core.bundle.js +187 -121
- package/dist/concorde-core.es.js +1294 -1207
- package/docs/assets/index-CcoMn1RV.js +4465 -0
- package/docs/assets/index-D0m8hkmQ.css +1 -0
- package/docs/css/docs.css +0 -0
- package/docs/fonts/ClashGrotesk-Bold.eot +0 -0
- package/docs/fonts/ClashGrotesk-Bold.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Bold.woff +0 -0
- package/docs/fonts/ClashGrotesk-Bold.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.eot +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.woff +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Light.eot +0 -0
- package/docs/fonts/ClashGrotesk-Light.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Light.woff +0 -0
- package/docs/fonts/ClashGrotesk-Light.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Medium.eot +0 -0
- package/docs/fonts/ClashGrotesk-Medium.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Medium.woff +0 -0
- package/docs/fonts/ClashGrotesk-Medium.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Regular.eot +0 -0
- package/docs/fonts/ClashGrotesk-Regular.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Regular.woff +0 -0
- package/docs/fonts/ClashGrotesk-Regular.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.eot +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.woff +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Variable.eot +0 -0
- package/docs/fonts/ClashGrotesk-Variable.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Variable.woff +0 -0
- package/docs/fonts/ClashGrotesk-Variable.woff2 +0 -0
- package/docs/img/concorde-icon.svg +5 -0
- package/docs/img/concorde-logo.svg +1 -0
- package/docs/img/concorde.png +0 -0
- package/docs/img/concorde_def.png +0 -0
- package/docs/img/concorde_seuil.png.webp +0 -0
- package/docs/img/concorde_seuil_invert.png +0 -0
- package/docs/img/paul_metrand.jpg +0 -0
- package/docs/img/paul_metrand_xs.jpg +0 -0
- package/docs/index.html +93 -0
- package/docs/src/core/components/functional/date/date.md +290 -0
- package/docs/src/core/components/functional/fetch/fetch.md +117 -0
- package/docs/src/core/components/functional/if/if.md +16 -0
- package/docs/src/core/components/functional/list/list.md +199 -0
- package/docs/src/core/components/functional/mix/mix.md +41 -0
- package/docs/src/core/components/functional/queue/queue.md +87 -0
- package/docs/src/core/components/functional/router/router.md +108 -0
- package/docs/src/core/components/functional/sdui/default-library.json +108 -0
- package/docs/src/core/components/functional/sdui/example.json +99 -0
- package/docs/src/core/components/functional/sdui/sdui.md +356 -0
- package/docs/src/core/components/functional/states/states.md +87 -0
- package/docs/src/core/components/functional/submit/submit.md +83 -0
- package/docs/src/core/components/functional/subscriber/subscriber.md +91 -0
- package/docs/src/core/components/functional/value/value.md +35 -0
- package/docs/src/core/components/ui/alert/alert.md +121 -0
- package/docs/src/core/components/ui/badge/badge.md +127 -0
- package/docs/src/core/components/ui/button/button.md +184 -0
- package/docs/src/core/components/ui/captcha/captcha.md +12 -0
- package/docs/src/core/components/ui/card/card.md +97 -0
- package/docs/src/core/components/ui/divider/divider.md +35 -0
- package/docs/src/core/components/ui/form/checkbox/checkbox.md +94 -0
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +129 -0
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +77 -0
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +43 -0
- package/docs/src/core/components/ui/form/input/input.md +167 -0
- package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +130 -0
- package/docs/src/core/components/ui/form/radio/radio.md +84 -0
- package/docs/src/core/components/ui/form/select/select.md +97 -0
- package/docs/src/core/components/ui/form/textarea/textarea.md +65 -0
- package/docs/src/core/components/ui/group/group.md +75 -0
- package/docs/src/core/components/ui/icon/icon.md +125 -0
- package/docs/src/core/components/ui/icon/icons.json +1 -0
- package/docs/src/core/components/ui/image/image.md +107 -0
- package/docs/src/core/components/ui/link/link.md +43 -0
- package/docs/src/core/components/ui/loader/loader.md +67 -0
- package/docs/src/core/components/ui/menu/menu.md +288 -0
- package/docs/src/core/components/ui/modal/modal.md +123 -0
- package/docs/src/core/components/ui/pop/pop.md +79 -0
- package/docs/src/core/components/ui/progress/progress.md +63 -0
- package/docs/src/core/components/ui/table/table.md +455 -0
- package/docs/src/core/components/ui/tooltip/tooltip.md +82 -0
- package/docs/src/docs/_core-concept/overview.md +57 -0
- package/docs/src/docs/_core-concept/subscriber.md +76 -0
- package/docs/src/docs/_getting-started/concorde-outside.md +143 -0
- package/docs/src/docs/_getting-started/create-a-component.md +137 -0
- package/docs/src/docs/_getting-started/my-first-subscriber.md +174 -0
- package/docs/src/docs/_getting-started/pubsub.md +150 -0
- package/docs/src/docs/_getting-started/start.md +39 -0
- package/docs/src/docs/_getting-started/theming.md +91 -0
- package/docs/src/docs/search/docs-search.json +3887 -0
- package/docs/src/tag-list.json +1 -0
- package/docs/src/tsconfig-model.json +23 -0
- package/docs/src/tsconfig.json +826 -0
- package/docs/svg/regular/plane.svg +1 -0
- package/docs/svg/solid/plane.svg +1 -0
- package/index.html +0 -0
- package/package.json +4 -1
- package/scripts/pre-build.mjs +0 -0
- package/scripts/pre-publish.mjs +0 -0
- package/src/core/components/functional/if/if.md +1 -1
- package/src/core/components/functional/queue/queue.ts +0 -0
- package/src/core/components/functional/router/router.md +0 -0
- package/src/core/components/functional/router/router.ts +0 -0
- package/src/core/components/functional/sonic-scope/sonic-scope.ts +0 -0
- package/src/core/components/functional/states/states.md +0 -0
- package/src/core/components/functional/states/states.ts +0 -0
- package/src/core/components/functional/submit/submit.md +0 -0
- package/src/core/components/functional/submit/submit.ts +0 -0
- package/src/core/components/ui/alert/alert.md +0 -0
- package/src/core/components/ui/alert-messages/alert-messages.md +0 -0
- package/src/core/components/ui/alert-messages/alert-messages.ts +0 -0
- package/src/core/components/ui/badge/badge.md +0 -0
- package/src/core/components/ui/button/button.md +0 -2
- package/src/core/components/ui/captcha/captcha.ts +0 -0
- package/src/core/components/ui/card/card.md +1 -1
- package/src/core/components/ui/divider/divider.ts +1 -1
- package/src/core/components/ui/form/checkbox/checkbox.md +0 -0
- package/src/core/components/ui/form/checkbox/checkbox.ts +1 -1
- package/src/core/components/ui/form/fieldset/fieldset.ts +0 -0
- package/src/core/components/ui/form/form-layout/form-layout.md +1 -0
- package/src/core/components/ui/form/input/input.ts +2 -0
- package/src/core/components/ui/form/input/password-helper.ts +0 -0
- package/src/core/components/ui/form/input/same-value-helper.ts +0 -0
- package/src/core/components/ui/form/radio/radio.md +0 -0
- package/src/core/components/ui/form/select/select.md +0 -0
- package/src/core/components/ui/form/switch/switch.md +84 -0
- package/src/core/components/ui/form/switch/switch.ts +77 -0
- package/src/core/components/ui/group/group.ts +0 -0
- package/src/core/components/ui/icon/icons.ts +0 -0
- package/src/core/components/ui/image/image.md +13 -13
- package/src/core/components/ui/image/image.ts +0 -0
- package/src/core/components/ui/menu/menu.ts +0 -0
- package/src/core/components/ui/modal/modal.md +2 -2
- package/src/core/components/ui/theme/theme-collection/dark.ts +0 -0
- package/src/core/components/ui/toast/message-subscriber.ts +0 -0
- package/src/core/components/ui/toast/toast.ts +0 -0
- package/src/core/components/ui/ui.ts +1 -0
- package/src/core/core.ts +0 -0
- package/src/core/mixins/FormCheckable.ts +0 -0
- package/src/core/mixins/Subscriber.ts +0 -0
- package/src/core/utils/HTML.ts +0 -0
- package/src/core/utils/LocationHandler.ts +0 -0
- package/src/core/utils/Objects.ts +0 -0
- package/src/core/utils/PublisherProxy.ts +51 -43
- package/src/core/utils/Utils.ts +0 -0
- package/src/core/utils/route.ts +0 -0
- package/src/docs/code.ts +2 -0
- package/src/docs/docs.ts +0 -0
- package/src/docs/header/header.ts +1 -1
- package/src/docs/navigation/navigation.ts +8 -0
- package/src/docs/search/docs-search.json +20 -5
- package/src/docs/search/markdown-renderer.ts +26 -8
- package/src/docs/search/page.ts +0 -0
- package/src/tsconfig-model.json +0 -0
- package/src/tsconfig.json +9 -0
- package/src/tsconfig.tsbuildinfo +1 -1
- package/vite/config.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M576 256C576 305 502.1 336 464.2 336H382.2L282.4 496C276.4 506 266.4 512 254.4 512H189.5C179.5 512 169.5 508 163.5 500C157.6 492 155.6 480.1 158.6 471L201.5 336H152.5L113.6 388C107.6 396 98.61 400 88.62 400H31.7C22.72 400 12.73 396 6.74 388C.7485 380-1.248 370 1.747 360L31.7 256L.7488 152C-1.248 143 .7488 133 6.74 125C12.73 117 22.72 112 31.7 112H88.62C98.61 112 107.6 117 113.6 125L152.5 176H201.5L158.6 41C155.6 32 157.6 21 163.5 13C169.5 5 179.5 0 189.5 0H254.4C265.4 0 277.4 7 281.4 16L381.2 176H463.2C502.1 176 576 208 576 256H576zM527.1 256C525.1 246 489.1 224 463.2 224H355.3L245.4 48H211.5L266.4 224H128.6L80.63 160H53.67L81.63 256L53.67 352H80.63L128.6 288H266.4L211.5 464H245.4L355.3 288H463.2C490.1 288 526.1 267 527.1 256V256z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M482.3 192c34.2 0 93.7 29 93.7 64c0 36-59.5 64-93.7 64l-116.6 0L265.2 495.9c-5.7 10-16.3 16.1-27.8 16.1l-56.2 0c-10.6 0-18.3-10.2-15.4-20.4l49-171.6L112 320 68.8 377.6c-3 4-7.8 6.4-12.8 6.4l-42 0c-7.8 0-14-6.3-14-14c0-1.3 .2-2.6 .5-3.9L32 256 .5 145.9c-.4-1.3-.5-2.6-.5-3.9c0-7.8 6.3-14 14-14l42 0c5 0 9.8 2.4 12.8 6.4L112 192l102.9 0-49-171.6C162.9 10.2 170.6 0 181.2 0l56.2 0c11.5 0 22.1 6.2 27.8 16.1L365.7 192l116.6 0z"/></svg>
|
package/index.html
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supersoniks/concorde",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.53",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "",
|
|
@@ -141,6 +141,9 @@
|
|
|
141
141
|
"./select": "./src/core/components/ui/form/select/select.ts",
|
|
142
142
|
"./ui/select": "./src/core/components/ui/form/select/select.ts",
|
|
143
143
|
"./ui/form/select": "./src/core/components/ui/form/select/select.ts",
|
|
144
|
+
"./switch": "./src/core/components/ui/form/switch/switch.ts",
|
|
145
|
+
"./ui/switch": "./src/core/components/ui/form/switch/switch.ts",
|
|
146
|
+
"./ui/form/switch": "./src/core/components/ui/form/switch/switch.ts",
|
|
144
147
|
"./textarea": "./src/core/components/ui/form/textarea/textarea.ts",
|
|
145
148
|
"./ui/textarea": "./src/core/components/ui/form/textarea/textarea.ts",
|
|
146
149
|
"./ui/form/textarea": "./src/core/components/ui/form/textarea/textarea.ts",
|
package/scripts/pre-build.mjs
CHANGED
|
File without changes
|
package/scripts/pre-publish.mjs
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
<sonic-icon library="iconoir" name="nav-arrow-right" slot="suffix" ></sonic-icon>
|
|
84
84
|
</sonic-card-header>
|
|
85
85
|
<sonic-card-main >
|
|
86
|
-
<sonic-image rounded ratio="11/4" src="https://thegoodlife.
|
|
86
|
+
<sonic-image rounded ratio="11/4" src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg">
|
|
87
87
|
</sonic-image>
|
|
88
88
|
<p><b>Main</b> - Lorem ipsum dolor sit, amet consectetur adipisicing elit. Iure id dolor debitis deleniti eligendi natus dolorem a commodi sunt dicta? Ipsa asperiores magni consequuntur dolor voluptatibus. Maxime, nemo? Facere, odio.</p>
|
|
89
89
|
</sonic-card-main>
|
|
File without changes
|
|
@@ -46,6 +46,7 @@ export class Checkbox extends FormCheckable(
|
|
|
46
46
|
);
|
|
47
47
|
--sc-checkbox-bg: var(--sc-input-bg);
|
|
48
48
|
--sc-checkbox-color: transparent;
|
|
49
|
+
font-size: var(--sc-_fs);
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
* {
|
|
@@ -58,7 +59,6 @@ export class Checkbox extends FormCheckable(
|
|
|
58
59
|
gap: 0.5em;
|
|
59
60
|
line-height: 1.2;
|
|
60
61
|
align-items: flex-start;
|
|
61
|
-
font-size: var(--sc-_fs);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.icon-container {
|
|
File without changes
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
<sonic-divider></sonic-divider>
|
|
32
32
|
<sonic-textarea label="Message" rows="5">
|
|
33
33
|
</sonic-textarea>
|
|
34
|
+
<sonic-switch>Activer une superbe option</sonic-switch>
|
|
34
35
|
<sonic-checkbox>Inscription à la newsletter</sonic-checkbox>
|
|
35
36
|
<sonic-checkbox>J'ai lu et accepte les <sonic-link href="#" class="underline">Conditions générales de ventes</sonic-link></sonic-checkbox>
|
|
36
37
|
<sonic-form-actions>
|
|
@@ -62,6 +62,7 @@ export class Input extends FormInput(FormElement(Subscriber(LitElement))) {
|
|
|
62
62
|
| "lg"
|
|
63
63
|
| "xl"
|
|
64
64
|
| "2xl";
|
|
65
|
+
@property({ type: String }) inputmode?: string;
|
|
65
66
|
@property({ type: String }) list?: string;
|
|
66
67
|
@property({ type: String }) placeholder?: string;
|
|
67
68
|
@property({ type: String }) pattern?: string;
|
|
@@ -217,6 +218,7 @@ export class Input extends FormInput(FormElement(Subscriber(LitElement))) {
|
|
|
217
218
|
min=${ifDefined(this.min)}
|
|
218
219
|
max=${ifDefined(this.max)}
|
|
219
220
|
step=${ifDefined(this.step)}
|
|
221
|
+
inputmode=${ifDefined(this.inputmode)}
|
|
220
222
|
src=${ifDefined(this.src)}
|
|
221
223
|
minlength=${ifDefined(this.minlength)}
|
|
222
224
|
maxlength=${ifDefined(this.maxlength)}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Switch
|
|
2
|
+
|
|
3
|
+
## Size
|
|
4
|
+
<sonic-code>
|
|
5
|
+
<template>
|
|
6
|
+
<div class="grid gap-2" formDataProvider="switchSizeExemple">
|
|
7
|
+
<sonic-switch name="size2xs" value="2xs" size="2xs">2xs switch</sonic-switch>
|
|
8
|
+
<sonic-switch name="sizexs" value="xs" size="xs">xs switch</sonic-switch>
|
|
9
|
+
<sonic-switch name="sizesm" value="sm" size="sm">sm switch</sonic-switch>
|
|
10
|
+
<sonic-switch name="size" value="default" >default switch</sonic-switch>
|
|
11
|
+
<sonic-switch name="sizelg" value="lg" size="lg">lg switch</sonic-switch>
|
|
12
|
+
<sonic-switch name="sizexl" value="xl" size="xl">xl switch</sonic-switch>
|
|
13
|
+
<sonic-switch name="size2xl" value="2xl" size="2xl">2xl switch</sonic-switch>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
</sonic-code>
|
|
17
|
+
|
|
18
|
+
## Checked
|
|
19
|
+
<sonic-code>
|
|
20
|
+
<template>
|
|
21
|
+
<sonic-switch checked
|
|
22
|
+
>Already checked switch
|
|
23
|
+
</sonic-switch>
|
|
24
|
+
</template>
|
|
25
|
+
</sonic-code>
|
|
26
|
+
|
|
27
|
+
## Disabled
|
|
28
|
+
<sonic-code>
|
|
29
|
+
<template>
|
|
30
|
+
<sonic-switch disabled
|
|
31
|
+
>Disabled switch
|
|
32
|
+
</sonic-switch>
|
|
33
|
+
</template>
|
|
34
|
+
</sonic-code>
|
|
35
|
+
|
|
36
|
+
## Disabled and checked
|
|
37
|
+
<sonic-code>
|
|
38
|
+
<template>
|
|
39
|
+
<sonic-switch disabled checked
|
|
40
|
+
>Disabled but already checked switch
|
|
41
|
+
</sonic-switch>
|
|
42
|
+
</template>
|
|
43
|
+
</sonic-code>
|
|
44
|
+
|
|
45
|
+
## switch with link
|
|
46
|
+
<sonic-code>
|
|
47
|
+
<template>
|
|
48
|
+
<sonic-switch name="link" value="link">switch with <sonic-link href="#" class="underline text-info">link</sonic-link>
|
|
49
|
+
</template>
|
|
50
|
+
</sonic-code>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
## Example of use
|
|
54
|
+
<sonic-code>
|
|
55
|
+
<template>
|
|
56
|
+
<sonic-subscriber dataProvider="jokeFilterswitch" class="text-xl my-4 block font-bold">
|
|
57
|
+
Remove following jokes :
|
|
58
|
+
<sonic-value key="blacklistFlags" class="block text-sm"></sonic-value>
|
|
59
|
+
</sonic-subscriber>
|
|
60
|
+
<div formDataProvider="jokeFilterswitch" class="grid grid-cols-2 lg:grid-cols-3 gap-x-6 gap-y-2 mt-2 mb-3">
|
|
61
|
+
<sonic-switch name="blacklistFlags" value="nsfw">nsfw</sonic-switch>
|
|
62
|
+
<sonic-switch name="blacklistFlags" value="religious">religious</sonic-switch>
|
|
63
|
+
<sonic-switch name="blacklistFlags" value="political">political</sonic-switch>
|
|
64
|
+
<sonic-switch name="blacklistFlags" value="racist" checked >racist</sonic-switch>
|
|
65
|
+
<sonic-switch name="blacklistFlags" value="sexist" >sexist</sonic-switch>
|
|
66
|
+
<sonic-switch name="blacklistFlags" value="explicit">explicit</sonic-switch>
|
|
67
|
+
</div>
|
|
68
|
+
<sonic-queue
|
|
69
|
+
lazyload
|
|
70
|
+
dataProviderExpression="joke/Any?amount=10&lang=en"
|
|
71
|
+
dataFilterProvider="jokeFilterswitch"
|
|
72
|
+
serviceURL="https://v2.jokeapi.dev"
|
|
73
|
+
key="jokes"
|
|
74
|
+
>
|
|
75
|
+
<template>
|
|
76
|
+
<div class="border-0 border-b-[1px] border-b-neutral-300 py-3 leading-tight">
|
|
77
|
+
<sonic-value key="joke"></sonic-value>
|
|
78
|
+
<sonic-value key="setup" class="font-bold"></sonic-value><br>
|
|
79
|
+
<sonic-value key="delivery"></sonic-value>
|
|
80
|
+
</div>
|
|
81
|
+
</template>
|
|
82
|
+
</sonic-queue>
|
|
83
|
+
</template>
|
|
84
|
+
</sonic-code>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
import { customElement } from "lit/decorators.js";
|
|
3
|
+
import { Checkbox } from "@supersoniks/concorde/core/components/ui/form/checkbox/checkbox";
|
|
4
|
+
|
|
5
|
+
const tagName = "sonic-switch";
|
|
6
|
+
@customElement(tagName)
|
|
7
|
+
export class Switch extends Checkbox {
|
|
8
|
+
static styles = [
|
|
9
|
+
Checkbox.styles,
|
|
10
|
+
css`
|
|
11
|
+
sonic-icon {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.icon-container {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
vertical-align: baseline;
|
|
20
|
+
position: relative;
|
|
21
|
+
font-size: var(--sc-_fs, 1rem);
|
|
22
|
+
}
|
|
23
|
+
:host([disabled]) .icon-container {
|
|
24
|
+
cursor: not-allowed;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host input {
|
|
28
|
+
-webkit-appearance: none;
|
|
29
|
+
-moz-appearance: none;
|
|
30
|
+
appearance: none;
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
width: 100%;
|
|
33
|
+
width: calc(var(--sc-_fs) * 2.5) !important;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
border-radius: 1.75em;
|
|
36
|
+
background-color: var(--sc-checkbox-bg);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host input:checked {
|
|
40
|
+
-webkit-appearance: none;
|
|
41
|
+
-moz-appearance: none;
|
|
42
|
+
appearance: none;
|
|
43
|
+
flex-shrink: 0;
|
|
44
|
+
width: 100%;
|
|
45
|
+
width: calc(var(--sc-_fs) * 2.5) !important;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
border-radius: 1.75em;
|
|
48
|
+
border-color: var(--sc-primary, var(--sc-base-content, #fff));
|
|
49
|
+
background-color: var(--sc-primary, var(--sc-base-content, #fff));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.icon-container::after {
|
|
53
|
+
content: "";
|
|
54
|
+
position: absolute;
|
|
55
|
+
height: round(calc(95% - var(--sc-checkbox-border-width)), 1px);
|
|
56
|
+
aspect-ratio: 1/1;
|
|
57
|
+
border-radius: 50%;
|
|
58
|
+
left: var(--sc-checkbox-border-width);
|
|
59
|
+
top: 50%;
|
|
60
|
+
transform: translateY(-50%);
|
|
61
|
+
display: block;
|
|
62
|
+
background-color: var(--sc-input-color, var(--sc-base-content, #000));
|
|
63
|
+
transition: all 0.2s ease-in-out;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.icon-container:has(input:checked)::after {
|
|
67
|
+
left: calc(100% - var(--sc-checkbox-border-width));
|
|
68
|
+
background-color: var(--sc-primary-content, var(--sc-base, #fff));
|
|
69
|
+
transform: translateX(-100%) translateY(-50%);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
input + sonic-icon {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|
|
75
|
+
`,
|
|
76
|
+
];
|
|
77
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -6,38 +6,38 @@
|
|
|
6
6
|
<template>
|
|
7
7
|
<div class="grid gap-8 grid-cols-3 items-center">
|
|
8
8
|
<sonic-image
|
|
9
|
-
src="https://thegoodlife.
|
|
9
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
10
10
|
ratio="1/1"
|
|
11
11
|
>
|
|
12
12
|
</sonic-image>
|
|
13
13
|
<sonic-image
|
|
14
14
|
rounded="sm"
|
|
15
15
|
ratio="1/1"
|
|
16
|
-
src="https://thegoodlife.
|
|
16
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
17
17
|
>
|
|
18
18
|
</sonic-image>
|
|
19
19
|
<sonic-image
|
|
20
20
|
rounded
|
|
21
21
|
ratio="1/1"
|
|
22
|
-
src="https://thegoodlife.
|
|
22
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
23
23
|
>
|
|
24
24
|
</sonic-image>
|
|
25
25
|
<sonic-image
|
|
26
26
|
rounded="md"
|
|
27
27
|
ratio="1/1"
|
|
28
|
-
src="https://thegoodlife.
|
|
28
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
29
29
|
>
|
|
30
30
|
</sonic-image>
|
|
31
31
|
<sonic-image
|
|
32
32
|
rounded="lg"
|
|
33
33
|
ratio="1/1"
|
|
34
|
-
src="https://thegoodlife.
|
|
34
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
35
35
|
>
|
|
36
36
|
</sonic-image>
|
|
37
37
|
<sonic-image
|
|
38
38
|
rounded="full"
|
|
39
39
|
ratio="1/1"
|
|
40
|
-
src="https://thegoodlife.
|
|
40
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
41
41
|
>
|
|
42
42
|
</sonic-image>
|
|
43
43
|
</div>
|
|
@@ -50,22 +50,22 @@
|
|
|
50
50
|
<template>
|
|
51
51
|
<div class="grid gap-8 grid-cols-2 items-center">
|
|
52
52
|
<sonic-image
|
|
53
|
-
src="https://thegoodlife.
|
|
53
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
54
54
|
>
|
|
55
55
|
</sonic-image>
|
|
56
56
|
<sonic-image
|
|
57
57
|
ratio="16/9"
|
|
58
|
-
src="https://thegoodlife.
|
|
58
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
59
59
|
>
|
|
60
60
|
</sonic-image>
|
|
61
61
|
<sonic-image
|
|
62
62
|
ratio="1/1"
|
|
63
|
-
src="https://thegoodlife.
|
|
63
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
64
64
|
>
|
|
65
65
|
</sonic-image>
|
|
66
66
|
<sonic-image
|
|
67
67
|
ratio="2/3"
|
|
68
|
-
src="https://thegoodlife.
|
|
68
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
69
69
|
>
|
|
70
70
|
</sonic-image>
|
|
71
71
|
</div>
|
|
@@ -78,13 +78,13 @@
|
|
|
78
78
|
<template>
|
|
79
79
|
<div class="grid gap-8 grid-cols-2 items-center">
|
|
80
80
|
<sonic-image
|
|
81
|
-
src="https://thegoodlife.
|
|
81
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
82
82
|
ratio="11/4"
|
|
83
83
|
>
|
|
84
84
|
</sonic-image>
|
|
85
85
|
<sonic-image
|
|
86
86
|
objectPosition="center top"
|
|
87
|
-
src="https://thegoodlife.
|
|
87
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
88
88
|
ratio="11/4"
|
|
89
89
|
>
|
|
90
90
|
</sonic-image>
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
<div class="h-96 relative">
|
|
100
100
|
<sonic-image
|
|
101
101
|
cover
|
|
102
|
-
src="https://thegoodlife.
|
|
102
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
103
103
|
>
|
|
104
104
|
</sonic-image>
|
|
105
105
|
</div>
|
|
File without changes
|
|
File without changes
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<sonic-image
|
|
102
102
|
cover
|
|
103
103
|
objectPosition="center 20%"
|
|
104
|
-
src="https://thegoodlife.
|
|
104
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
105
105
|
></sonic-image>
|
|
106
106
|
</sonic-modal>
|
|
107
107
|
</template>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<sonic-modal-close></sonic-modal-close>
|
|
117
117
|
<sonic-image
|
|
118
118
|
cover
|
|
119
|
-
src="https://thegoodlife.
|
|
119
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
120
120
|
></sonic-image>
|
|
121
121
|
</sonic-modal>
|
|
122
122
|
</template>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -12,6 +12,7 @@ import "./form/input/password-helper";
|
|
|
12
12
|
import "./form/input/same-value-helper";
|
|
13
13
|
import "./form/checkbox/checkbox";
|
|
14
14
|
import "./form/radio/radio";
|
|
15
|
+
import "./form/switch/switch";
|
|
15
16
|
import "./form/select/select";
|
|
16
17
|
import "./form/textarea/textarea";
|
|
17
18
|
import "./form/fieldset/fieldset";
|
package/src/core/core.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/core/utils/HTML.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|