@fremtind/jokul 1.4.1 → 1.5.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/build/build-stats.html +1 -1
- package/build/cjs/components/card/CardImage.cjs.map +1 -1
- package/build/cjs/components/card/CardImage.d.cts +2 -1
- package/build/cjs/components/cookie-consent/CookieConsent.cjs +1 -1
- package/build/cjs/components/cookie-consent/CookieConsent.cjs.map +1 -1
- package/build/cjs/components/feedback/questions/SmileyQuestion.cjs +1 -1
- package/build/cjs/components/feedback/questions/SmileyQuestion.cjs.map +1 -1
- package/build/cjs/components/help/Help.cjs +1 -1
- package/build/cjs/components/help/Help.cjs.map +1 -1
- package/build/cjs/components/image/Image.cjs +1 -1
- package/build/cjs/components/image/Image.cjs.map +1 -1
- package/build/cjs/components/image/Image.d.cts +1 -2
- package/build/cjs/core/tokens/style-dictionary/build.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/build.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/build.d.cts +0 -0
- package/build/cjs/core/tokens/style-dictionary/config.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/config.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/config.d.cts +4 -0
- package/build/cjs/core/tokens/style-dictionary/filters/index.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/filters/index.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/filters/index.d.cts +3 -0
- package/build/cjs/core/tokens/style-dictionary/formats/css-dynamic-color-variables.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/formats/css-dynamic-color-variables.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/formats/css-dynamic-color-variables.d.cts +3 -0
- package/build/cjs/core/tokens/style-dictionary/formats/css-theme-variables.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/formats/css-theme-variables.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/formats/css-theme-variables.d.cts +3 -0
- package/build/cjs/core/tokens/style-dictionary/formats/index.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/formats/index.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/formats/index.d.cts +6 -0
- package/build/cjs/core/tokens/style-dictionary/formats/javascript-esm.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/formats/javascript-esm.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/formats/javascript-esm.d.cts +3 -0
- package/build/cjs/core/tokens/style-dictionary/formats/scss-theme-variables.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/formats/scss-theme-variables.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/formats/scss-theme-variables.d.cts +3 -0
- package/build/cjs/core/tokens/style-dictionary/formats/tailwindcss-colors.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/formats/tailwindcss-colors.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/formats/tailwindcss-colors.d.cts +3 -0
- package/build/cjs/core/tokens/style-dictionary/register.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/register.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/register.d.cts +1 -0
- package/build/cjs/core/tokens/style-dictionary/transforms/index.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/transforms/index.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/transforms/index.d.cts +2 -0
- package/build/cjs/core/tokens/style-dictionary/transforms/strip-light-dark.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/transforms/strip-light-dark.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/transforms/strip-light-dark.d.cts +3 -0
- package/build/cjs/core/tokens.cjs +1 -1
- package/build/cjs/core/tokens.cjs.map +1 -1
- package/build/cjs/core/tokens.d.cts +15 -52
- package/build/cjs/tailwind/colors.cjs.map +1 -1
- package/build/cjs/tailwind/colors.d.cts +1 -2
- package/build/es/components/card/CardImage.d.ts +2 -1
- package/build/es/components/card/CardImage.js.map +1 -1
- package/build/es/components/cookie-consent/CookieConsent.js +1 -1
- package/build/es/components/cookie-consent/CookieConsent.js.map +1 -1
- package/build/es/components/feedback/questions/SmileyQuestion.js +1 -1
- package/build/es/components/feedback/questions/SmileyQuestion.js.map +1 -1
- package/build/es/components/help/Help.js +1 -1
- package/build/es/components/help/Help.js.map +1 -1
- package/build/es/components/image/Image.d.ts +1 -2
- package/build/es/components/image/Image.js +1 -1
- package/build/es/components/image/Image.js.map +1 -1
- package/build/es/core/tokens/style-dictionary/build.d.ts +0 -0
- package/build/es/core/tokens/style-dictionary/build.js +2 -0
- package/build/es/core/tokens/style-dictionary/build.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/config.d.ts +4 -0
- package/build/es/core/tokens/style-dictionary/config.js +2 -0
- package/build/es/core/tokens/style-dictionary/config.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/filters/index.d.ts +3 -0
- package/build/es/core/tokens/style-dictionary/filters/index.js +2 -0
- package/build/es/core/tokens/style-dictionary/filters/index.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/formats/css-dynamic-color-variables.d.ts +3 -0
- package/build/es/core/tokens/style-dictionary/formats/css-dynamic-color-variables.js +2 -0
- package/build/es/core/tokens/style-dictionary/formats/css-dynamic-color-variables.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/formats/css-theme-variables.d.ts +3 -0
- package/build/es/core/tokens/style-dictionary/formats/css-theme-variables.js +2 -0
- package/build/es/core/tokens/style-dictionary/formats/css-theme-variables.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/formats/index.d.ts +6 -0
- package/build/es/core/tokens/style-dictionary/formats/index.js +2 -0
- package/build/es/core/tokens/style-dictionary/formats/index.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/formats/javascript-esm.d.ts +3 -0
- package/build/es/core/tokens/style-dictionary/formats/javascript-esm.js +2 -0
- package/build/es/core/tokens/style-dictionary/formats/javascript-esm.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/formats/scss-theme-variables.d.ts +3 -0
- package/build/es/core/tokens/style-dictionary/formats/scss-theme-variables.js +2 -0
- package/build/es/core/tokens/style-dictionary/formats/scss-theme-variables.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/formats/tailwindcss-colors.d.ts +3 -0
- package/build/es/core/tokens/style-dictionary/formats/tailwindcss-colors.js +2 -0
- package/build/es/core/tokens/style-dictionary/formats/tailwindcss-colors.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/register.d.ts +1 -0
- package/build/es/core/tokens/style-dictionary/register.js +2 -0
- package/build/es/core/tokens/style-dictionary/register.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/transforms/index.d.ts +2 -0
- package/build/es/core/tokens/style-dictionary/transforms/index.js +2 -0
- package/build/es/core/tokens/style-dictionary/transforms/index.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/transforms/strip-light-dark.d.ts +3 -0
- package/build/es/core/tokens/style-dictionary/transforms/strip-light-dark.js +2 -0
- package/build/es/core/tokens/style-dictionary/transforms/strip-light-dark.js.map +1 -0
- package/build/es/core/tokens.d.ts +15 -52
- package/build/es/core/tokens.js +1 -1
- package/build/es/core/tokens.js.map +1 -1
- package/build/es/tailwind/colors.d.ts +1 -2
- package/build/es/tailwind/colors.js.map +1 -1
- package/package.json +3 -2
- package/styles/components/autosuggest/autosuggest.css +8 -6
- package/styles/components/breadcrumb/breadcrumb.css +4 -2
- package/styles/components/button/button.css +7 -2
- package/styles/components/button/button.min.css +1 -1
- package/styles/components/button/button.scss +4 -0
- package/styles/components/card/card.css +9 -5
- package/styles/components/card/card.min.css +1 -1
- package/styles/components/card/card.scss +7 -4
- package/styles/components/checkbox/checkbox.css +181 -179
- package/styles/components/checkbox/checkbox.min.css +1 -1
- package/styles/components/checkbox/checkbox.scss +189 -180
- package/styles/components/checkbox-panel/checkbox-panel.css +60 -54
- package/styles/components/checkbox-panel/checkbox-panel.min.css +3 -1
- package/styles/components/checkbox-panel/checkbox-panel.scss +58 -54
- package/styles/components/checkbox-panel/development/styles.css +4 -2
- package/styles/components/chip/chip.css +4 -2
- package/styles/components/combobox/combobox.css +6 -4
- package/styles/components/cookie-consent/cookie-consent.css +4 -2
- package/styles/components/countdown/countdown.css +34 -31
- package/styles/components/countdown/countdown.min.css +1 -1
- package/styles/components/countdown/countdown.scss +14 -12
- package/styles/components/datepicker/datepicker.css +8 -6
- package/styles/components/description-list/description-list.css +38 -34
- package/styles/components/description-list/description-list.min.css +1 -1
- package/styles/components/description-list/description-list.scss +18 -16
- package/styles/components/expander/expandable.css +4 -2
- package/styles/components/feedback/feedback.css +6 -4
- package/styles/components/feedback/feedback.min.css +1 -1
- package/styles/components/file/file.css +4 -2
- package/styles/components/file-input/file-input.css +219 -217
- package/styles/components/file-input/file-input.min.css +1 -1
- package/styles/components/help/help.css +6 -16
- package/styles/components/help/help.min.css +1 -1
- package/styles/components/help/help.scss +2 -17
- package/styles/components/icon/icon.css +128 -130
- package/styles/components/icon/icon.min.css +1 -1
- package/styles/components/icon/icon.scss +96 -92
- package/styles/components/icon-button/icon-button.css +51 -47
- package/styles/components/icon-button/icon-button.min.css +1 -1
- package/styles/components/icon-button/icon-button.scss +26 -24
- package/styles/components/image/image.css +31 -27
- package/styles/components/image/image.min.css +1 -1
- package/styles/components/image/image.scss +27 -25
- package/styles/components/input-group/input-group.css +6 -4
- package/styles/components/input-group/input-group.min.css +1 -1
- package/styles/components/link/link.css +6 -4
- package/styles/components/link/link.min.css +1 -1
- package/styles/components/link/link.scss +2 -3
- package/styles/components/link-list/link-list.css +4 -2
- package/styles/components/list/list.css +66 -62
- package/styles/components/list/list.min.css +1 -1
- package/styles/components/list/list.scss +69 -67
- package/styles/components/loader/loader.css +98 -95
- package/styles/components/loader/loader.min.css +1 -1
- package/styles/components/loader/loader.scss +91 -88
- package/styles/components/loader/skeleton-loader.css +119 -121
- package/styles/components/loader/skeleton-loader.min.css +1 -1
- package/styles/components/loader/skeleton-loader.scss +128 -126
- package/styles/components/logo/logo.css +83 -83
- package/styles/components/logo/logo.min.css +1 -1
- package/styles/components/logo/logo.scss +71 -67
- package/styles/components/menu/_menu-divider.scss +7 -5
- package/styles/components/menu/_menu-item.scss +55 -53
- package/styles/components/menu/menu.css +121 -119
- package/styles/components/menu/menu.min.css +1 -1
- package/styles/components/menu/menu.scss +28 -24
- package/styles/components/message/message.css +6 -4
- package/styles/components/message/message.min.css +1 -1
- package/styles/components/modal/modal.css +104 -108
- package/styles/components/modal/modal.min.css +1 -1
- package/styles/components/modal/modal.scss +82 -79
- package/styles/components/nav-link/nav-link.css +66 -62
- package/styles/components/nav-link/nav-link.min.css +1 -1
- package/styles/components/nav-link/nav-link.scss +48 -46
- package/styles/components/pagination/development/styles.css +4 -2
- package/styles/components/pagination/pagination.css +4 -2
- package/styles/components/popover/popover.css +23 -21
- package/styles/components/popover/popover.min.css +1 -1
- package/styles/components/popover/popover.scss +14 -12
- package/styles/components/progress-bar/progress-bar.css +35 -32
- package/styles/components/progress-bar/progress-bar.min.css +1 -1
- package/styles/components/progress-bar/progress-bar.scss +16 -14
- package/styles/components/radio-button/radio-button.css +6 -4
- package/styles/components/radio-button/radio-button.min.css +1 -1
- package/styles/components/radio-panel/development/styles.css +4 -2
- package/styles/components/radio-panel/radio-panel.css +60 -56
- package/styles/components/radio-panel/radio-panel.min.css +1 -1
- package/styles/components/radio-panel/radio-panel.scss +55 -54
- package/styles/components/segmented-control/segmented-control.css +133 -136
- package/styles/components/segmented-control/segmented-control.min.css +1 -1
- package/styles/components/segmented-control/segmented-control.scss +1 -1
- package/styles/components/select/select.css +4 -2
- package/styles/components/summary-table/development/summary-table-example.css +4 -2
- package/styles/components/summary-table/summary-table.css +56 -54
- package/styles/components/summary-table/summary-table.min.css +1 -1
- package/styles/components/summary-table/summary-table.scss +44 -42
- package/styles/components/system-message/system-message.css +6 -4
- package/styles/components/system-message/system-message.min.css +1 -1
- package/styles/components/table/table.css +4 -2
- package/styles/components/tabs/tabs.css +125 -128
- package/styles/components/tabs/tabs.min.css +1 -1
- package/styles/components/tabs/tabs.scss +90 -93
- package/styles/components/tag/tag.css +4 -2
- package/styles/components/text-area/text-area.css +4 -2
- package/styles/components/text-input/text-input.css +4 -2
- package/styles/components/toast/toast.css +8 -6
- package/styles/components/toast/toast.min.css +1 -1
- package/styles/components/toggle-switch/toggle-switch.css +14 -12
- package/styles/components/tooltip/tooltip.css +4 -2
- package/styles/core/_layers.scss +3 -0
- package/styles/core/core.css +1573 -1434
- package/styles/core/core.min.css +2 -1
- package/styles/core/core.scss +5 -76
- package/styles/core/global/_base-class.scss +30 -0
- package/styles/core/global/_index.scss +2 -0
- package/styles/core/global/_top-layer.scss +20 -0
- package/styles/core/jkl/_index.scss +1 -1
- package/styles/core/jkl/_legacy-tokens.scss +152 -5
- package/styles/core/jkl/_tokens.scss +36 -152
- package/styles/core/jkl/_typography.scss +1 -0
- package/styles/core/resets/_index.scss +2 -0
- package/styles/core/resets/_normalize.scss +251 -0
- package/styles/core/resets/_reset.scss +68 -0
- package/styles/core/theme/_color-tokens.scss +73 -0
- package/styles/core/theme/_dynamic-spacing.scss +55 -0
- package/styles/core/theme/_index.scss +8 -0
- package/styles/core/theme/_legacy-color-tokens.scss +81 -0
- package/styles/core/theme/_legacy-tokens.scss +150 -0
- package/styles/core/theme/_old-vars.scss +30 -0
- package/styles/core/theme/_spacing-tokens.scss +30 -0
- package/styles/core/theme/_tokens.scss +30 -0
- package/styles/core/theme/_typography.scss +27 -0
- package/styles/core/utility/_headings.scss +31 -0
- package/styles/core/utility/_index.scss +4 -0
- package/styles/core/utility/_paragraphs.scss +18 -0
- package/styles/core/utility/_screen-reader.scss +11 -0
- package/styles/core/utility/_spacing.scss +49 -0
- package/styles/shared/input/shared-input-styles.css +4 -2
- package/styles/shared/input-panel/shared.css +4 -2
- package/styles/shared/track/track.css +4 -2
- package/styles/styles.css +1452 -1474
- package/styles/styles.min.css +3 -1
- package/styles/core/_color-tokens.scss +0 -78
- package/styles/core/_headings.scss +0 -29
- package/styles/core/_index.scss +0 -9
- package/styles/core/_legacy-tokens.scss +0 -38
- package/styles/core/_normalize.scss +0 -250
- package/styles/core/_paragraphs.scss +0 -16
- package/styles/core/_reset.scss +0 -66
- package/styles/core/_screen-reader.scss +0 -9
- package/styles/core/_spacing.scss +0 -86
- package/styles/core/_tokens.scss +0 -129
|
@@ -2,24 +2,26 @@
|
|
|
2
2
|
@use "../../core/jkl";
|
|
3
3
|
@use "../../shared/track/track";
|
|
4
4
|
|
|
5
|
-
.
|
|
6
|
-
|
|
5
|
+
@layer jokul.components {
|
|
6
|
+
.jkl-progress-bar {
|
|
7
|
+
@include track.track;
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
&__tracker {
|
|
10
|
+
transition-property: width;
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
@include jkl.motion("standard", "productive");
|
|
13
|
+
}
|
|
12
14
|
}
|
|
13
|
-
}
|
|
14
15
|
|
|
15
|
-
$_downcount: jkl-downcount-#{string.unique-id()};
|
|
16
|
+
$_downcount: jkl-downcount-#{string.unique-id()};
|
|
16
17
|
|
|
17
|
-
@keyframes #{$_downcount} {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
@keyframes #{$_downcount} {
|
|
19
|
+
from {
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
to {
|
|
24
|
+
width: 0%;
|
|
25
|
+
}
|
|
24
26
|
}
|
|
25
|
-
}
|
|
27
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Do not edit directly
|
|
3
|
-
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
6
|
*/
|
|
5
7
|
:root,
|
|
6
8
|
[data-layout-density=comfortable],
|
|
@@ -45,7 +47,7 @@
|
|
|
45
47
|
--jkl-radio-button-label-font-weight: var(--jkl-small-font-weight);
|
|
46
48
|
}
|
|
47
49
|
|
|
48
|
-
@keyframes jkl-dot-in-
|
|
50
|
+
@keyframes jkl-dot-in-uhrw98r {
|
|
49
51
|
0% {
|
|
50
52
|
transform: scale(0.8);
|
|
51
53
|
}
|
|
@@ -91,7 +93,7 @@
|
|
|
91
93
|
}
|
|
92
94
|
.jkl-radio-button__input:checked + .jkl-radio-button__label > .jkl-radio-button__dot::after {
|
|
93
95
|
--dot-color: var(--jkl-color-border-action);
|
|
94
|
-
animation: jkl-dot-in-
|
|
96
|
+
animation: jkl-dot-in-uhrw98r 150ms ease;
|
|
95
97
|
}
|
|
96
98
|
@media screen and (forced-colors: active) {
|
|
97
99
|
.jkl-radio-button__input:checked + .jkl-radio-button__label > .jkl-radio-button__dot::after {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-radio-button-height:3rem;--jkl-radio-button-line-height:2rem;--jkl-radio-button-size:1.5rem;--jkl-radio-button-text-margin:0.5rem 0;--jkl-radio-button-text-transform:translate3d(0,0.0625rem,0);--jkl-radio-button-dot-margin:0.75rem 0.5rem 0.75rem 0;--jkl-radio-button-dot-size:1rem;--jkl-radio-button-label-font-size:var(--jkl-body-font-size);--jkl-radio-button-label-line-height:var(--jkl-body-line-height);--jkl-radio-button-label-font-weight:var(--jkl-body-font-weight)}@media (width >= 0) and (max-width:679px){:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-radio-button-height:2.5rem;--jkl-radio-button-line-height:1.75rem;--jkl-radio-button-size:1.5rem;--jkl-radio-button-text-margin:0.5rem 0;--jkl-radio-button-text-transform:translateZ(0);--jkl-radio-button-dot-margin:0.625rem 0.5rem 0.625rem 0;--jkl-radio-button-dot-size:1rem}}[data-density=compact],[data-layout-density=compact]{--jkl-radio-button-height:1.75rem;--jkl-radio-button-line-height:1.5rem;--jkl-radio-button-size:1.125rem;--jkl-radio-button-text-margin:calc(var(--jkl-unit-10)*0.5) 0;--jkl-radio-button-text-transform:translateZ(0);--jkl-radio-button-dot-margin:0.4375rem 0.5rem 0.4375rem 0;--jkl-radio-button-dot-size:0.625rem;--jkl-radio-button-label-font-size:var(--jkl-small-font-size);--jkl-radio-button-label-line-height:var(--jkl-small-line-height);--jkl-radio-button-label-font-weight:var(--jkl-small-font-weight)}@keyframes jkl-dot-in-
|
|
1
|
+
:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-radio-button-height:3rem;--jkl-radio-button-line-height:2rem;--jkl-radio-button-size:1.5rem;--jkl-radio-button-text-margin:0.5rem 0;--jkl-radio-button-text-transform:translate3d(0,0.0625rem,0);--jkl-radio-button-dot-margin:0.75rem 0.5rem 0.75rem 0;--jkl-radio-button-dot-size:1rem;--jkl-radio-button-label-font-size:var(--jkl-body-font-size);--jkl-radio-button-label-line-height:var(--jkl-body-line-height);--jkl-radio-button-label-font-weight:var(--jkl-body-font-weight)}@media (width >= 0) and (max-width:679px){:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-radio-button-height:2.5rem;--jkl-radio-button-line-height:1.75rem;--jkl-radio-button-size:1.5rem;--jkl-radio-button-text-margin:0.5rem 0;--jkl-radio-button-text-transform:translateZ(0);--jkl-radio-button-dot-margin:0.625rem 0.5rem 0.625rem 0;--jkl-radio-button-dot-size:1rem}}[data-density=compact],[data-layout-density=compact]{--jkl-radio-button-height:1.75rem;--jkl-radio-button-line-height:1.5rem;--jkl-radio-button-size:1.125rem;--jkl-radio-button-text-margin:calc(var(--jkl-unit-10)*0.5) 0;--jkl-radio-button-text-transform:translateZ(0);--jkl-radio-button-dot-margin:0.4375rem 0.5rem 0.4375rem 0;--jkl-radio-button-dot-size:0.625rem;--jkl-radio-button-label-font-size:var(--jkl-small-font-size);--jkl-radio-button-label-line-height:var(--jkl-small-line-height);--jkl-radio-button-label-font-weight:var(--jkl-small-font-weight)}@keyframes jkl-dot-in-uhrw98r{0%{transform:scale(.8)}to{transform:scale(1)}}.jkl-radio-button{--ring-color:var(--jkl-color-border-action);--dot-color:#0000;--background-color:#0000;--text-color:var(--jkl-color-text-default);border-style:none;color:var(--text-color);display:flex;min-height:var(--jkl-radio-button-height);position:relative}.jkl-radio-button,.jkl-radio-button:active,.jkl-radio-button:focus,.jkl-radio-button:hover{outline:0;outline-style:none}@media screen and (forced-colors:active){.jkl-radio-button{border-style:revert}.jkl-radio-button,.jkl-radio-button:active,.jkl-radio-button:focus,.jkl-radio-button:hover{outline:revert;outline-style:revert}}.jkl-radio-button__input{left:calc(var(--jkl-radio-button-size)*-.5);opacity:0;position:absolute;top:var(--jkl-radio-button-size)}.jkl-radio-button__input:checked+.jkl-radio-button__label>.jkl-radio-button__dot:after{--dot-color:var(--jkl-color-border-action);animation:jkl-dot-in-uhrw98r .15s ease}@media screen and (forced-colors:active){.jkl-radio-button__input:checked+.jkl-radio-button__label>.jkl-radio-button__dot:after{background-color:ButtonText}}.jkl-radio-button--error .jkl-radio-button__input:checked+.jkl-radio-button__label>.jkl-radio-button__dot:after{--background-color:var(--jkl-color-background-alert-error);--dot-color:var(--jkl-color-text-on-alert)}.jkl-radio-button__input:focus-visible+.jkl-radio-button__label{--background-color:var(--jkl-color-background-input-focus)}.jkl-radio-button__input:focus-visible+.jkl-radio-button__label>.jkl-radio-button__dot{outline:3px solid var(--jkl-color-border-action);outline-offset:3px}.jkl-radio-button--error .jkl-radio-button__input:focus-visible+.jkl-radio-button__label{--background-color:var(--jkl-color-background-alert-error);--dot-color:var(--jkl-color-text-on-alert)}.jkl-radio-button__label{align-items:flex-start;cursor:pointer;display:flex;font-size:var(--jkl-radio-button-label-font-size);font-weight:var(--jkl-radio-button-label-font-weight);line-height:var(--jkl-radio-button-label-line-height)}.jkl-radio-button__label:hover>.jkl-radio-button__dot{outline:1px solid var(--ring-color)}.jkl-radio-button__label:active>.jkl-radio-button__dot .jkl-radio-button__label:after{scale:.9}.jkl-radio-button__dot{background-color:var(--background-color);border:.0625rem solid var(--ring-color);border-radius:50%;box-sizing:border-box;display:inline-block;flex-shrink:0;height:var(--jkl-radio-button-size);margin:var(--jkl-radio-button-dot-margin);position:relative;transition-duration:.15s;transition-property:background-color,outline;transition-timing-function:ease;width:var(--jkl-radio-button-size)}.jkl-radio-button__dot:after{background-color:var(--dot-color);border-radius:50%;content:"";height:var(--jkl-radio-button-dot-size);left:50%;position:absolute;scale:1;top:50%;transition-duration:.15s;transition-property:transform;transition-timing-function:ease;translate:-50% -50%;width:var(--jkl-radio-button-dot-size)}@media screen and (forced-colors:active){.jkl-radio-button__dot{border:1px solid ButtonText;outline:revert}}.jkl-radio-button__text{display:inline-block;margin:var(--jkl-radio-button-text-margin);transform:var(--jkl-radio-button-text-transform)}.jkl-radio-button--error{--background-color:var(--jkl-color-background-alert-error)}.jkl-radio-button--inline{display:inline-flex;margin-right:1.5rem;margin-top:unset}.jkl-radio-button+.jkl-form-support-label{margin-bottom:.5rem;margin-left:calc(var(--jkl-radio-button-size) + .5rem);margin-top:-.375rem}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Do not edit directly
|
|
3
|
-
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
6
|
*/
|
|
5
7
|
.input-panel-example__season-tag {
|
|
6
8
|
position: absolute;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Do not edit directly
|
|
3
|
-
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
6
|
*/
|
|
5
7
|
.jkl-input-panel {
|
|
6
8
|
--outer-border-color: var(--jkl-color-border-input);
|
|
@@ -62,62 +64,64 @@
|
|
|
62
64
|
--outer-border-thickness: 0.125rem;
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
@
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
@layer jokul.components {
|
|
68
|
+
@keyframes jkl-dot-in-udty8hk {
|
|
69
|
+
0% {
|
|
70
|
+
transform: scale(0.8);
|
|
71
|
+
}
|
|
72
|
+
100% {
|
|
73
|
+
transform: scale(1);
|
|
74
|
+
}
|
|
68
75
|
}
|
|
69
|
-
|
|
70
|
-
|
|
76
|
+
.jkl-radio-panel {
|
|
77
|
+
--radio-dot-color: transparent;
|
|
78
|
+
--radio-ring-color: transparent;
|
|
79
|
+
/* The ring */
|
|
71
80
|
}
|
|
72
|
-
}
|
|
73
|
-
.jkl-radio-panel {
|
|
74
|
-
--radio-dot-color: transparent;
|
|
75
|
-
--radio-ring-color: transparent;
|
|
76
|
-
/* The ring */
|
|
77
|
-
}
|
|
78
|
-
.jkl-radio-panel__decorator {
|
|
79
|
-
cursor: pointer;
|
|
80
|
-
display: inline-block;
|
|
81
|
-
position: relative;
|
|
82
|
-
height: 1.5rem;
|
|
83
|
-
width: 1.5rem;
|
|
84
|
-
border-radius: 50%;
|
|
85
|
-
border: 0.0625rem solid var(--jkl-color-border-action);
|
|
86
|
-
background-color: var(--radio-ring-color);
|
|
87
|
-
transition-property: background-color, outline;
|
|
88
|
-
transition-timing-function: ease;
|
|
89
|
-
transition-duration: 150ms;
|
|
90
|
-
/* The dot */
|
|
91
|
-
}
|
|
92
|
-
.jkl-radio-panel__decorator::after {
|
|
93
|
-
content: "";
|
|
94
|
-
position: absolute;
|
|
95
|
-
left: 50%;
|
|
96
|
-
top: 50%;
|
|
97
|
-
translate: -50% -50%;
|
|
98
|
-
scale: 1;
|
|
99
|
-
height: 1rem;
|
|
100
|
-
width: 1rem;
|
|
101
|
-
border-radius: 50%;
|
|
102
|
-
background-color: var(--radio-dot-color);
|
|
103
|
-
transition-property: transform;
|
|
104
|
-
transition-timing-function: ease;
|
|
105
|
-
transition-duration: 150ms;
|
|
106
|
-
}
|
|
107
|
-
@media screen and (forced-colors: active) {
|
|
108
81
|
.jkl-radio-panel__decorator {
|
|
109
|
-
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
display: inline-block;
|
|
84
|
+
position: relative;
|
|
85
|
+
height: 1.5rem;
|
|
86
|
+
width: 1.5rem;
|
|
87
|
+
border-radius: 50%;
|
|
88
|
+
border: 0.0625rem solid var(--jkl-color-border-action);
|
|
89
|
+
background-color: var(--radio-ring-color);
|
|
90
|
+
transition-property: background-color, outline;
|
|
91
|
+
transition-timing-function: ease;
|
|
92
|
+
transition-duration: 150ms;
|
|
93
|
+
/* The dot */
|
|
94
|
+
}
|
|
95
|
+
.jkl-radio-panel__decorator::after {
|
|
96
|
+
content: "";
|
|
97
|
+
position: absolute;
|
|
98
|
+
left: 50%;
|
|
99
|
+
top: 50%;
|
|
100
|
+
translate: -50% -50%;
|
|
101
|
+
scale: 1;
|
|
102
|
+
height: 1rem;
|
|
103
|
+
width: 1rem;
|
|
104
|
+
border-radius: 50%;
|
|
105
|
+
background-color: var(--radio-dot-color);
|
|
106
|
+
transition-property: transform;
|
|
107
|
+
transition-timing-function: ease;
|
|
108
|
+
transition-duration: 150ms;
|
|
109
|
+
}
|
|
110
|
+
@media screen and (forced-colors: active) {
|
|
111
|
+
.jkl-radio-panel__decorator {
|
|
112
|
+
border: 1px solid ButtonText;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
.jkl-radio-panel__input:checked + .jkl-radio-panel__decorator::after {
|
|
116
|
+
animation: jkl-dot-in-udty8hk 150ms ease;
|
|
117
|
+
}
|
|
118
|
+
.jkl-radio-panel:has(:checked) {
|
|
119
|
+
--radio-dot-color: var(--jkl-color-border-action);
|
|
120
|
+
}
|
|
121
|
+
[aria-invalid=true] .jkl-radio-panel {
|
|
122
|
+
--radio-ring-color: var(--jkl-color-background-alert-error);
|
|
123
|
+
}
|
|
124
|
+
[aria-invalid=true] .jkl-radio-panel:has(:checked) {
|
|
125
|
+
--radio-dot-color: var(--jkl-color-text-on-alert);
|
|
110
126
|
}
|
|
111
|
-
}
|
|
112
|
-
.jkl-radio-panel__input:checked + .jkl-radio-panel__decorator::after {
|
|
113
|
-
animation: jkl-dot-in-urfidlk 150ms ease;
|
|
114
|
-
}
|
|
115
|
-
.jkl-radio-panel:has(:checked) {
|
|
116
|
-
--radio-dot-color: var(--jkl-color-border-action);
|
|
117
|
-
}
|
|
118
|
-
[aria-invalid=true] .jkl-radio-panel {
|
|
119
|
-
--radio-ring-color: var(--jkl-color-background-alert-error);
|
|
120
|
-
}
|
|
121
|
-
[aria-invalid=true] .jkl-radio-panel:has(:checked) {
|
|
122
|
-
--radio-dot-color: var(--jkl-color-text-on-alert);
|
|
123
127
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.jkl-input-panel{--outer-border-color:var(--jkl-color-border-input);--outer-border-thickness:0.0625rem;--background-color:#0000;background-color:var(--background-color);border-radius:4px;box-shadow:inset 0 0 0 var(--outer-border-thickness) var(--outer-border-color);cursor:pointer;padding-left:1rem}.jkl-input-panel__input{opacity:0;position:absolute;top:-6px}.jkl-input-panel__label{align-items:center;cursor:pointer;display:grid;gap:.5rem;grid-template-columns:-webkit-min-content fit-content(30%) 1fr;grid-template-columns:min-content fit-content(30%) 1fr}.jkl-input-panel__main-label{padding-block:1.5rem}.jkl-input-panel__extra-label{align-self:stretch;margin-left:1rem;margin-right:1rem}.jkl-input-panel__extra-label>:first-child{padding-right:1rem}.jkl-input-panel__extra-label--text{align-items:center;display:flex;height:100%}.jkl-input-panel__content{cursor:default;height:0;overflow:hidden;padding-right:1.5rem}.jkl-input-panel:has([aria-expanded=true]) .jkl-input-panel__content,.jkl-input-panel__content[data-alwaysopen=true]{height:auto;padding-bottom:24px}.jkl-input-panel:has(:focus-visible){outline:3px solid var(--jkl-color-border-action);outline-offset:3px}.jkl-input-panel:has(:checked){--background-color:var(--jkl-color-background-container-high)}.jkl-input-panel:hover{--outer-border-color:var(--jkl-color-border-separator-hover);--outer-border-thickness:0.125rem}@keyframes jkl-dot-in-
|
|
1
|
+
.jkl-input-panel{--outer-border-color:var(--jkl-color-border-input);--outer-border-thickness:0.0625rem;--background-color:#0000;background-color:var(--background-color);border-radius:4px;box-shadow:inset 0 0 0 var(--outer-border-thickness) var(--outer-border-color);cursor:pointer;padding-left:1rem}.jkl-input-panel__input{opacity:0;position:absolute;top:-6px}.jkl-input-panel__label{align-items:center;cursor:pointer;display:grid;gap:.5rem;grid-template-columns:-webkit-min-content fit-content(30%) 1fr;grid-template-columns:min-content fit-content(30%) 1fr}.jkl-input-panel__main-label{padding-block:1.5rem}.jkl-input-panel__extra-label{align-self:stretch;margin-left:1rem;margin-right:1rem}.jkl-input-panel__extra-label>:first-child{padding-right:1rem}.jkl-input-panel__extra-label--text{align-items:center;display:flex;height:100%}.jkl-input-panel__content{cursor:default;height:0;overflow:hidden;padding-right:1.5rem}.jkl-input-panel:has([aria-expanded=true]) .jkl-input-panel__content,.jkl-input-panel__content[data-alwaysopen=true]{height:auto;padding-bottom:24px}.jkl-input-panel:has(:focus-visible){outline:3px solid var(--jkl-color-border-action);outline-offset:3px}.jkl-input-panel:has(:checked){--background-color:var(--jkl-color-background-container-high)}.jkl-input-panel:hover{--outer-border-color:var(--jkl-color-border-separator-hover);--outer-border-thickness:0.125rem}@layer jokul.components{@keyframes jkl-dot-in-udty8hk{0%{transform:scale(.8)}to{transform:scale(1)}}.jkl-radio-panel{--radio-dot-color:#0000;--radio-ring-color:#0000}.jkl-radio-panel__decorator{background-color:var(--radio-ring-color);border:.0625rem solid var(--jkl-color-border-action);border-radius:50%;cursor:pointer;display:inline-block;height:1.5rem;position:relative;transition-duration:.15s;transition-property:background-color,outline;transition-timing-function:ease;width:1.5rem}.jkl-radio-panel__decorator:after{background-color:var(--radio-dot-color);border-radius:50%;content:"";height:1rem;left:50%;position:absolute;scale:1;top:50%;transition-duration:.15s;transition-property:transform;transition-timing-function:ease;translate:-50% -50%;width:1rem}@media screen and (forced-colors:active){.jkl-radio-panel__decorator{border:1px solid ButtonText}}.jkl-radio-panel__input:checked+.jkl-radio-panel__decorator:after{animation:jkl-dot-in-udty8hk .15s ease}.jkl-radio-panel:has(:checked){--radio-dot-color:var(--jkl-color-border-action)}[aria-invalid=true] .jkl-radio-panel{--radio-ring-color:var(--jkl-color-background-alert-error)}[aria-invalid=true] .jkl-radio-panel:has(:checked){--radio-dot-color:var(--jkl-color-text-on-alert)}}
|
|
@@ -4,78 +4,79 @@
|
|
|
4
4
|
|
|
5
5
|
$_radio-panel-dot-animation-name: jkl-dot-in-#{string.unique-id()};
|
|
6
6
|
|
|
7
|
-
@
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
@layer jokul.components {
|
|
8
|
+
@keyframes #{$_radio-panel-dot-animation-name} {
|
|
9
|
+
0% {
|
|
10
|
+
transform: scale(0.8);
|
|
11
|
+
}
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
100% {
|
|
14
|
+
transform: scale(1);
|
|
15
|
+
}
|
|
14
16
|
}
|
|
15
|
-
}
|
|
16
17
|
|
|
17
|
-
.jkl-radio-panel {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
.jkl-radio-panel {
|
|
19
|
+
--radio-dot-color: transparent;
|
|
20
|
+
--radio-ring-color: transparent;
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
/* The ring */
|
|
23
|
+
&__decorator {
|
|
24
|
+
cursor: pointer;
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
display: inline-block;
|
|
27
|
+
position: relative;
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
height: jkl.rem(24px);
|
|
30
|
+
width: jkl.rem(24px);
|
|
31
|
+
border-radius: 50%;
|
|
32
|
+
border: jkl.rem(1px) solid var(--jkl-color-border-action);
|
|
33
|
+
background-color: var(--radio-ring-color);
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
transition-property: background-color, outline;
|
|
35
36
|
|
|
36
|
-
|
|
37
|
+
@include jkl.motion;
|
|
37
38
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
/* The dot */
|
|
40
|
+
&::after {
|
|
41
|
+
content: "";
|
|
41
42
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
position: absolute;
|
|
44
|
+
left: 50%;
|
|
45
|
+
top: 50%;
|
|
46
|
+
translate: -50% -50%;
|
|
47
|
+
scale: 1;
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
height: jkl.rem(16px);
|
|
50
|
+
width: jkl.rem(16px);
|
|
51
|
+
border-radius: 50%;
|
|
52
|
+
background-color: var(--radio-dot-color);
|
|
52
53
|
|
|
53
|
-
|
|
54
|
+
transition-property: transform;
|
|
54
55
|
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
@include jkl.motion;
|
|
57
|
+
}
|
|
57
58
|
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
@include jkl.forced-colors-mode {
|
|
60
|
+
border: 1px solid ButtonText;
|
|
61
|
+
}
|
|
60
62
|
}
|
|
61
|
-
}
|
|
62
63
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
&__input:checked + &__decorator {
|
|
65
|
+
&::after {
|
|
66
|
+
animation: $_radio-panel-dot-animation-name jkl.timing("productive") ease;
|
|
67
|
+
}
|
|
67
68
|
}
|
|
68
|
-
}
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
&:has(:checked) {
|
|
71
|
+
--radio-dot-color: var(--jkl-color-border-action);
|
|
72
|
+
}
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
[aria-invalid="true"] & {
|
|
75
|
+
--radio-ring-color: var(--jkl-color-background-alert-error);
|
|
76
|
+
}
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
[aria-invalid="true"] &:has(:checked) {
|
|
79
|
+
--radio-dot-color: var(--jkl-color-text-on-alert);
|
|
80
|
+
}
|
|
80
81
|
}
|
|
81
|
-
}
|
|
82
|
+
}
|