@fremtind/jokul 3.3.0 → 3.4.0
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/checkbox-panel/CheckboxPanel.cjs +1 -1
- package/build/cjs/components/checkbox-panel/CheckboxPanel.cjs.map +1 -1
- package/build/cjs/components/checkbox-panel/CheckboxPanel.d.cts +1 -1
- package/build/cjs/components/checkbox-panel/types.d.cts +2 -18
- package/build/cjs/components/input-panel/InputPanel.cjs +2 -0
- package/build/cjs/components/input-panel/InputPanel.cjs.map +1 -0
- package/build/cjs/components/input-panel/InputPanel.d.cts +10 -0
- package/build/cjs/components/input-panel/types.cjs +2 -0
- package/build/cjs/components/input-panel/types.cjs.map +1 -0
- package/build/cjs/components/input-panel/types.d.cts +22 -0
- package/build/cjs/components/modal/useModal.cjs.map +1 -1
- package/build/cjs/components/modal/useModal.d.cts +4 -2
- package/build/cjs/components/radio-panel/RadioPanel.cjs +1 -1
- package/build/cjs/components/radio-panel/RadioPanel.cjs.map +1 -1
- package/build/cjs/components/radio-panel/RadioPanel.d.cts +1 -1
- package/build/cjs/components/radio-panel/RadioPanelGroup.cjs.map +1 -1
- package/build/cjs/components/radio-panel/RadioPanelGroup.d.cts +3 -0
- package/build/cjs/components/radio-panel/index.cjs +1 -1
- package/build/cjs/components/radio-panel/index.d.cts +1 -2
- package/build/cjs/components/radio-panel/types.d.cts +7 -21
- package/build/cjs/components/table/TableHeader.cjs +1 -1
- package/build/cjs/components/table/TableHeader.cjs.map +1 -1
- package/build/cjs/components/table/TableHeader.d.cts +1 -1
- package/build/cjs/components/table/utils.cjs +1 -1
- package/build/cjs/components/table/utils.cjs.map +1 -1
- package/build/cjs/components/table/utils.d.cts +2 -2
- package/build/es/components/checkbox-panel/CheckboxPanel.d.ts +1 -1
- package/build/es/components/checkbox-panel/CheckboxPanel.js +1 -1
- package/build/es/components/checkbox-panel/CheckboxPanel.js.map +1 -1
- package/build/es/components/checkbox-panel/types.d.ts +2 -18
- package/build/es/components/input-panel/InputPanel.d.ts +10 -0
- package/build/es/components/input-panel/InputPanel.js +2 -0
- package/build/es/components/input-panel/InputPanel.js.map +1 -0
- package/build/es/components/input-panel/types.d.ts +22 -0
- package/build/es/components/input-panel/types.js +2 -0
- package/build/es/components/input-panel/types.js.map +1 -0
- package/build/es/components/modal/useModal.d.ts +4 -2
- package/build/es/components/modal/useModal.js.map +1 -1
- package/build/es/components/radio-panel/RadioPanel.d.ts +1 -1
- package/build/es/components/radio-panel/RadioPanel.js +1 -1
- package/build/es/components/radio-panel/RadioPanel.js.map +1 -1
- package/build/es/components/radio-panel/RadioPanelGroup.d.ts +3 -0
- package/build/es/components/radio-panel/RadioPanelGroup.js.map +1 -1
- package/build/es/components/radio-panel/index.d.ts +1 -2
- package/build/es/components/radio-panel/index.js +1 -1
- package/build/es/components/radio-panel/types.d.ts +7 -21
- package/build/es/components/table/TableHeader.d.ts +1 -1
- package/build/es/components/table/TableHeader.js +1 -1
- package/build/es/components/table/TableHeader.js.map +1 -1
- package/build/es/components/table/utils.d.ts +2 -2
- package/build/es/components/table/utils.js +1 -1
- package/build/es/components/table/utils.js.map +1 -1
- package/package.json +1 -1
- package/styles/components/autosuggest/autosuggest.css +5 -58
- package/styles/components/autosuggest/autosuggest.min.css +1 -1
- package/styles/components/autosuggest/autosuggest.scss +6 -46
- package/styles/components/checkbox/checkbox.css +4 -4
- package/styles/components/checkbox/checkbox.min.css +1 -1
- package/styles/components/checkbox-panel/checkbox-panel.css +79 -75
- package/styles/components/checkbox-panel/checkbox-panel.min.css +1 -1
- package/styles/components/checkbox-panel/checkbox-panel.scss +1 -1
- package/styles/components/combobox/combobox.css +14 -100
- package/styles/components/combobox/combobox.min.css +1 -1
- package/styles/components/combobox/combobox.scss +18 -86
- package/styles/components/countdown/countdown.css +2 -2
- package/styles/components/countdown/countdown.min.css +1 -1
- package/styles/components/datepicker/_calendar-date-button.scss +6 -22
- package/styles/components/datepicker/_calendar-navigation.scss +1 -40
- package/styles/components/datepicker/datepicker.css +5 -123
- package/styles/components/datepicker/datepicker.min.css +1 -1
- package/styles/components/datepicker/datepicker.scss +1 -9
- package/styles/components/feedback/feedback.css +2 -2
- package/styles/components/feedback/feedback.min.css +1 -1
- package/styles/components/file-input/file-input.css +26 -64
- package/styles/components/file-input/file-input.min.css +1 -1
- package/styles/components/icon/icon.css +2 -2
- package/styles/components/icon/icon.min.css +1 -1
- package/styles/components/icon/icon.scss +3 -3
- package/styles/components/input-group/input-group.css +2 -2
- package/styles/components/input-group/input-group.min.css +1 -1
- package/styles/components/input-panel/input-panel.css +78 -0
- package/styles/components/input-panel/input-panel.min.css +1 -0
- package/styles/components/input-panel/input-panel.scss +84 -0
- package/styles/components/list/list.css +3 -6
- package/styles/components/list/list.min.css +1 -1
- package/styles/components/list/list.scss +7 -33
- package/styles/components/loader/loader.css +6 -6
- package/styles/components/loader/loader.min.css +1 -1
- package/styles/components/loader/skeleton-loader.css +20 -58
- package/styles/components/loader/skeleton-loader.min.css +1 -1
- package/styles/components/loader/skeleton-loader.scss +21 -61
- package/styles/components/logo/logo.css +5 -19
- package/styles/components/logo/logo.min.css +1 -1
- package/styles/components/logo/logo.scss +10 -21
- package/styles/components/menu/menu.css +2 -2
- package/styles/components/menu/menu.min.css +1 -1
- package/styles/components/menu/menu.scss +2 -2
- package/styles/components/message/message.css +3 -3
- package/styles/components/message/message.min.css +1 -1
- package/styles/components/message/message.scss +4 -8
- package/styles/components/progress-bar/progress-bar.css +1 -1
- package/styles/components/progress-bar/progress-bar.min.css +1 -1
- package/styles/components/radio-button/radio-button.css +2 -2
- package/styles/components/radio-button/radio-button.min.css +1 -1
- package/styles/components/radio-panel/radio-panel.css +75 -71
- package/styles/components/radio-panel/radio-panel.min.css +1 -1
- package/styles/components/radio-panel/radio-panel.scss +2 -2
- package/styles/components/segmented-control/segmented-control.css +6 -6
- package/styles/components/segmented-control/segmented-control.min.css +1 -1
- package/styles/components/summary-table/development/summary-table-example.css +1 -19
- package/styles/components/summary-table/development/summary-table-example.min.css +1 -1
- package/styles/components/summary-table/development/summary-table-example.scss +2 -10
- package/styles/components/summary-table/summary-table.css +2 -20
- package/styles/components/summary-table/summary-table.min.css +1 -1
- package/styles/components/summary-table/summary-table.scss +2 -12
- package/styles/components/system-message/system-message.css +7 -5
- package/styles/components/system-message/system-message.min.css +1 -1
- package/styles/components/system-message/system-message.scss +14 -11
- package/styles/components/table/_table-cell.scss +6 -12
- package/styles/components/table/_table-head.scss +2 -2
- package/styles/components/table/_table-header.scss +10 -23
- package/styles/components/table/_table-row.scss +16 -38
- package/styles/components/table/table.css +17 -51
- package/styles/components/table/table.min.css +1 -1
- package/styles/components/toast/toast.css +4 -4
- package/styles/components/toast/toast.min.css +1 -1
- package/styles/components/toggle-switch/_toggle-slider.scss +9 -21
- package/styles/components/toggle-switch/toggle-switch.css +6 -38
- package/styles/components/toggle-switch/toggle-switch.min.css +1 -1
- package/styles/core/core.css +7 -7
- package/styles/core/core.min.css +1 -1
- package/styles/core/global/_base-class.scss +10 -9
- package/styles/styles.css +191 -581
- package/styles/styles.min.css +3 -3
- package/build/cjs/shared/input-panel/BasePanel.cjs +0 -2
- package/build/cjs/shared/input-panel/BasePanel.cjs.map +0 -1
- package/build/cjs/shared/input-panel/BasePanel.d.cts +0 -22
- package/build/es/shared/input-panel/BasePanel.d.ts +0 -22
- package/build/es/shared/input-panel/BasePanel.js +0 -2
- package/build/es/shared/input-panel/BasePanel.js.map +0 -1
- package/styles/shared/input-panel/shared.css +0 -73
- package/styles/shared/input-panel/shared.min.css +0 -1
- package/styles/shared/input-panel/shared.scss +0 -74
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableHeader.js","sources":["../../../../src/components/table/TableHeader.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport React, { forwardRef, type MouseEventHandler } from \"react\";\nimport {
|
|
1
|
+
{"version":3,"file":"TableHeader.js","sources":["../../../../src/components/table/TableHeader.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport React, { forwardRef, type MouseEventHandler } from \"react\";\nimport { ChevronDownIcon, ChevronUpIcon, Icon } from \"../icon/index.js\";\nimport { useTableContext } from \"./tableContext.js\";\nimport type { TableHeaderProps } from \"./types.js\";\n\nexport type TableSortDirection = \"asc\" | \"desc\" | \"none\";\n\nconst SortableArrows = ({ direction }: { direction: TableSortDirection }) => {\n if (direction === \"desc\") return <ChevronDownIcon variant=\"inherit\" />;\n if (direction === \"asc\") return <ChevronUpIcon variant=\"inherit\" />;\n\n return <Icon variant=\"inherit\">unfold_more</Icon>;\n};\n\nconst TableHeader = forwardRef<HTMLTableCellElement, TableHeaderProps>(\n (props, ref) => {\n const {\n bold = true,\n density,\n sortable,\n className,\n scope = \"col\",\n srOnly,\n align = \"left\",\n children,\n onClick,\n ...rest\n } = props;\n const { density: contextDensity } = useTableContext();\n\n const handleClick: MouseEventHandler<HTMLTableCellElement> = (e) => {\n onClick?.(e);\n sortable?.onClick();\n };\n\n return (\n <th\n className={clsx(\"jkl-table-header\", className, {\n \"jkl-table-header--bold\": bold,\n \"jkl-table-header--align-right\": align === \"right\",\n \"jkl-table-header--align-center\": align === \"center\",\n \"jkl-table-header--sr-only\": srOnly,\n \"jkl-table-header--sortable\":\n typeof sortable !== \"undefined\",\n })}\n scope={scope}\n onClick={handleClick}\n {...rest}\n data-density={density || contextDensity}\n ref={ref}\n >\n <div className=\"jkl-table-header__arrows\">\n {children}\n {sortable && (\n <SortableArrows direction={sortable.direction} />\n )}\n </div>\n </th>\n );\n },\n);\n\nTableHeader.displayName = \"TableHeader\";\n\nexport { TableHeader };\n"],"names":["SortableArrows","direction","jsx","ChevronDownIcon","variant","ChevronUpIcon","Icon","children","TableHeader","forwardRef","props","ref","bold","density","sortable","className","scope","srOnly","align","onClick","rest","contextDensity","useTableContext","clsx","e","jsxs","displayName"],"mappings":"kmDAQA,MAAMA,EAAiB,EAAGC,UAAAA,KACJ,SAAdA,EAA6BC,EAACC,EAAA,CAAgBC,QAAQ,YACxC,QAAdH,EAA4BC,EAACG,EAAA,CAAcD,QAAQ,YAEhDF,EAACI,EAAA,CAAKF,QAAQ,UAAUG,SAAA,gBAG7BC,EAAcC,EAChB,CAACC,EAAOC,KACJ,MACIC,KAAAA,GAAO,EACPC,QAAAA,EACAC,SAAAA,EACAC,UAAAA,EACAC,MAAAA,EAAQ,MACRC,OAAAA,EACAC,MAAAA,EAAQ,OACRX,SAAAA,EACAY,QAAAA,KACGC,GACHV,GACIG,QAASQ,GAAmBC,IAOpC,OACIpB,EAAC,KAAA,CACGa,UAAWQ,EAAK,mBAAoBR,EAAW,CAC3C,yBAA0BH,EAC1B,gCAA2C,UAAVM,EACjC,iCAA4C,WAAVA,EAClC,4BAA6BD,EAC7B,oCACWH,EAAa,MAE5BE,MAAAA,EACAG,QAhBsDK,IAC1DL,IAAUK,GACVV,GAAUK,cAeFC,EACJ,eAAcP,GAAWQ,EACzBV,IAAAA,EAEAJ,SAAAkB,EAAC,MAAA,CAAIV,UAAU,2BACVR,SAAA,CAAAA,EACAO,GACGZ,EAACF,EAAA,CAAeC,UAAWa,EAASb,mBAQ5DO,EAAYkB,YAAc"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TableSortDirection } from './TableHeader.js';
|
|
2
2
|
export type TableSortProps = ReturnType<ReturnType<typeof useSortableTableHeader>["getSortProps"]>["sortable"];
|
|
3
3
|
export declare const useSortableTableHeader: (activeSortKey: string, activeSortDirection: TableSortDirection, onChange: (newSortKey: string, newSortDirection: TableSortDirection) => void) => {
|
|
4
|
-
getSortProps: (
|
|
4
|
+
getSortProps: (columnKey: string) => {
|
|
5
5
|
sortable: {
|
|
6
6
|
onClick: () => void;
|
|
7
|
-
direction: TableSortDirection
|
|
7
|
+
direction: TableSortDirection;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=(e,o,
|
|
1
|
+
const e=(e,o,n)=>({getSortProps:s=>{const c=e===s?o:"none",r={asc:"desc",desc:"none",none:"asc"}[c]??"asc";return{sortable:{onClick:()=>n(s,r),direction:c}}}});export{e as useSortableTableHeader};
|
|
2
2
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../../src/components/table/utils.ts"],"sourcesContent":["import type { TableSortDirection } from \"./TableHeader.js\";\n\nexport type TableSortProps = ReturnType<\n ReturnType<typeof useSortableTableHeader>[\"getSortProps\"]\n>[\"sortable\"];\n\nexport const useSortableTableHeader = (\n activeSortKey: string,\n activeSortDirection: TableSortDirection,\n onChange: (\n newSortKey: string,\n newSortDirection: TableSortDirection,\n ) => void,\n) => {\n const
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../../src/components/table/utils.ts"],"sourcesContent":["import type { TableSortDirection } from \"./TableHeader.js\";\n\nexport type TableSortProps = ReturnType<\n ReturnType<typeof useSortableTableHeader>[\"getSortProps\"]\n>[\"sortable\"];\n\nexport const useSortableTableHeader = (\n activeSortKey: string,\n activeSortDirection: TableSortDirection,\n onChange: (\n newSortKey: string,\n newSortDirection: TableSortDirection,\n ) => void,\n) => {\n const getSortProps = (columnKey: string) => {\n const isCurrentSortKey = activeSortKey === columnKey;\n const currentDirection = isCurrentSortKey\n ? activeSortDirection\n : \"none\";\n\n const nextDirectionMap: Record<string, TableSortDirection> = {\n asc: \"desc\",\n desc: \"none\",\n none: \"asc\",\n };\n\n const nextDirection = nextDirectionMap[currentDirection] ?? \"asc\";\n\n return {\n sortable: {\n onClick: () => onChange(columnKey, nextDirection),\n direction: currentDirection,\n },\n };\n };\n\n return {\n getSortProps,\n };\n};\n"],"names":["useSortableTableHeader","activeSortKey","activeSortDirection","onChange","getSortProps","columnKey","currentDirection","nextDirection","asc","desc","none","sortable","onClick","direction"],"mappings":"AAMO,MAAMA,EAAyB,CAClCC,EACAC,EACAC,KAAAA,CA4BIC,aAvBkBC,IAElB,MAAMC,EADmBL,IAAkBI,EAErCH,EACA,OAQAK,EANuD,CACzDC,IAAK,OACLC,KAAM,OACNC,KAAM,OAG6BJ,IAAqB,MAE5D,MAAO,CACHK,SAAU,CACNC,QAAS,IAAMT,EAASE,EAAWE,GACnCM,UAAWP"}
|
package/package.json
CHANGED
|
@@ -1,48 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
3
|
*/
|
|
4
|
-
@media screen and (prefers-color-scheme: light) {
|
|
5
|
-
:root {
|
|
6
|
-
--jkl-autosuggest-text-color: #1b1917;
|
|
7
|
-
--jkl-autosuggest-menu-background-color: #fff;
|
|
8
|
-
--jkl-autosuggest-focus-color: #1b1917;
|
|
9
|
-
--jkl-autosuggest-error-text-color: #1b1917;
|
|
10
|
-
--jkl-autosuggest-error-placeholder-color: #636060;
|
|
11
|
-
--jkl-autosuggest-hover-option-color: #1b1917;
|
|
12
|
-
--jkl-autosuggest-hover-option-background-color: #e0dbd4;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
[data-theme=light] {
|
|
16
|
-
--jkl-autosuggest-text-color: #1b1917;
|
|
17
|
-
--jkl-autosuggest-menu-background-color: #fff;
|
|
18
|
-
--jkl-autosuggest-focus-color: #1b1917;
|
|
19
|
-
--jkl-autosuggest-error-text-color: #1b1917;
|
|
20
|
-
--jkl-autosuggest-error-placeholder-color: #636060;
|
|
21
|
-
--jkl-autosuggest-hover-option-color: #1b1917;
|
|
22
|
-
--jkl-autosuggest-hover-option-background-color: #e0dbd4;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@media screen and (prefers-color-scheme: dark) {
|
|
26
|
-
:root {
|
|
27
|
-
--jkl-autosuggest-text-color: #f9f9f9;
|
|
28
|
-
--jkl-autosuggest-menu-background-color: #000;
|
|
29
|
-
--jkl-autosuggest-focus-color: #f9f9f9;
|
|
30
|
-
--jkl-autosuggest-error-text-color: #1b1917;
|
|
31
|
-
--jkl-autosuggest-error-placeholder-color: #636060;
|
|
32
|
-
--jkl-autosuggest-hover-option-color: #f9f9f9;
|
|
33
|
-
--jkl-autosuggest-hover-option-background-color: #636060;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
[data-theme=dark] {
|
|
37
|
-
--jkl-autosuggest-text-color: #f9f9f9;
|
|
38
|
-
--jkl-autosuggest-menu-background-color: #000;
|
|
39
|
-
--jkl-autosuggest-focus-color: #f9f9f9;
|
|
40
|
-
--jkl-autosuggest-error-text-color: #1b1917;
|
|
41
|
-
--jkl-autosuggest-error-placeholder-color: #636060;
|
|
42
|
-
--jkl-autosuggest-hover-option-color: #f9f9f9;
|
|
43
|
-
--jkl-autosuggest-hover-option-background-color: #636060;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
4
|
:root,
|
|
47
5
|
[data-layout-density=comfortable],
|
|
48
6
|
[data-density=comfortable] {
|
|
@@ -80,27 +38,16 @@
|
|
|
80
38
|
.jkl-autosuggest[aria-expanded=true] .jkl-text-input-wrapper {
|
|
81
39
|
border-radius: 0.1875rem 0.1875rem 0 0;
|
|
82
40
|
}
|
|
83
|
-
.jkl-autosuggest__input-group > input[aria-invalid=true] ~ .jkl-autosuggest__controller-button {
|
|
84
|
-
color: var(--jkl-autosuggest-error-placeholder-color);
|
|
85
|
-
}
|
|
86
|
-
.jkl-autosuggest__input-group > input[aria-invalid=true] ~ .jkl-autosuggest__controller-button:hover {
|
|
87
|
-
color: var(--jkl-autosuggest-error-text-color);
|
|
88
|
-
}
|
|
89
|
-
html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-autosuggest__input-group > input[aria-invalid=true] ~ .jkl-autosuggest__controller-button:focus::after {
|
|
90
|
-
box-shadow: inset 0 0 0 0.125rem var(--jkl-autosuggest-error-text-color);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
41
|
.jkl-autosuggest__no-hits-message {
|
|
94
42
|
font-size: var(--jkl-autosuggest-no-hits-message-font-size);
|
|
95
43
|
padding: var(--jkl-autosuggest-option-padding);
|
|
96
44
|
}
|
|
97
45
|
.jkl-autosuggest__menu {
|
|
98
|
-
background-color: var(--jkl-
|
|
99
|
-
border: 0.125rem solid var(--jkl-
|
|
46
|
+
background-color: var(--jkl-color-background-container-high);
|
|
47
|
+
border: 0.125rem solid var(--jkl-color-border-input-focus);
|
|
100
48
|
border-top: none;
|
|
101
49
|
border-radius: 0 0 0.1875rem 0.1875rem;
|
|
102
50
|
box-sizing: border-box;
|
|
103
|
-
color: var(--jkl-autosuggest-text-color);
|
|
104
51
|
position: absolute;
|
|
105
52
|
inset: 100% -0.0625rem auto;
|
|
106
53
|
margin: 0;
|
|
@@ -124,7 +71,7 @@ html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-autosuggest__i
|
|
|
124
71
|
display: flex;
|
|
125
72
|
align-items: center;
|
|
126
73
|
border: 0;
|
|
127
|
-
background-color:
|
|
74
|
+
background-color: var(--jkl-color-background-interactive);
|
|
128
75
|
min-height: var(--jkl-autosuggest-option-height);
|
|
129
76
|
text-align: left;
|
|
130
77
|
transition-timing-function: ease;
|
|
@@ -135,6 +82,6 @@ html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-autosuggest__i
|
|
|
135
82
|
cursor: pointer;
|
|
136
83
|
}
|
|
137
84
|
.jkl-autosuggest__item:focus, .jkl-autosuggest__item--active, .jkl-autosuggest__item:hover {
|
|
138
|
-
color: var(--jkl-
|
|
139
|
-
background-color: var(--jkl-
|
|
85
|
+
color: var(--jkl-color-text-default);
|
|
86
|
+
background-color: var(--jkl-color-background-interactive-hover);
|
|
140
87
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-autosuggest-item-font-size:var(--jkl-body-font-size);--jkl-autosuggest-item-line-height:var(--jkl-body-line-height);--jkl-autosuggest-item-font-weight:var(--jkl-body-font-weight);--jkl-autosuggest-menu-padding:1rem 0.5rem 0;--jkl-autosuggest-controller-button-width:auto;--jkl-autosuggest-controller-button-padding:0 0.75rem;--jkl-autosuggest-controller-button-icon-size:1.25rem;--jkl-autosuggest-option-padding:0 0.75rem;--jkl-autosuggest-option-height:3rem}[data-density=compact],[data-layout-density=compact]{--jkl-autosuggest-item-font-size:var(--jkl-small-font-size);--jkl-autosuggest-item-line-height:var(--jkl-small-line-height);--jkl-autosuggest-item-font-weight:var(--jkl-small-font-weight);--jkl-autosuggest-menu-padding:0.25rem;--jkl-autosuggest-controller-button-width:1.5rem;--jkl-autosuggest-controller-button-padding:0;--jkl-autosuggest-controller-button-icon-size:1.125rem;--jkl-autosuggest-no-hits-message-font-size:var(--jkl-small-font-size);--jkl-autosuggest-option-padding:0 0.5rem;--jkl-autosuggest-option-height:2rem}.jkl-autosuggest{align-items:flex-start;display:flex;flex-direction:column;position:relative}.jkl-autosuggest[aria-expanded=true] .jkl-text-input-wrapper{border-radius:.1875rem .1875rem 0 0}.jkl-autosuggest__no-hits-message{font-size:var(--jkl-autosuggest-no-hits-message-font-size);padding:var(--jkl-autosuggest-option-padding)}.jkl-autosuggest__menu{background-color:var(--jkl-color-background-container-high);border:.125rem solid var(--jkl-color-border-input-focus);border-radius:0 0 .1875rem .1875rem;border-top:none;box-sizing:border-box;inset:100% -.0625rem auto;margin:0;max-height:60vh;overflow-y:auto;padding:0;position:absolute;width:calc(100% + .125rem);z-index:7000;-webkit-overflow-scrolling:touch}.jkl-autosuggest__item-list{list-style-type:none;margin:0;padding:0}.jkl-autosuggest__item{align-items:center;background-color:var(--jkl-color-background-interactive);border:0;color:unset;cursor:pointer;display:flex;font-size:var(--jkl-autosuggest-item-font-size);font-weight:var(--jkl-autosuggest-item-font-weight);line-height:var(--jkl-autosuggest-item-line-height);min-height:var(--jkl-autosuggest-option-height);padding:var(--jkl-autosuggest-option-padding);position:relative;text-align:left;transition-duration:.15s;transition-property:color,background-color;transition-timing-function:ease}.jkl-autosuggest__item--active,.jkl-autosuggest__item:focus,.jkl-autosuggest__item:hover{background-color:var(--jkl-color-background-interactive-hover);color:var(--jkl-color-text-default)}
|
|
@@ -1,25 +1,5 @@
|
|
|
1
1
|
@use "../../core/jkl";
|
|
2
2
|
|
|
3
|
-
@include jkl.light-mode-variables {
|
|
4
|
-
--jkl-autosuggest-text-color: #{jkl.$color-granitt};
|
|
5
|
-
--jkl-autosuggest-menu-background-color: #{jkl.$color-hvit};
|
|
6
|
-
--jkl-autosuggest-focus-color: #{jkl.$color-granitt};
|
|
7
|
-
--jkl-autosuggest-error-text-color: #{jkl.$color-granitt};
|
|
8
|
-
--jkl-autosuggest-error-placeholder-color: #{jkl.$color-stein};
|
|
9
|
-
--jkl-autosuggest-hover-option-color: #{jkl.$color-granitt};
|
|
10
|
-
--jkl-autosuggest-hover-option-background-color: #{jkl.$color-varde};
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@include jkl.dark-mode-variables {
|
|
14
|
-
--jkl-autosuggest-text-color: #{jkl.$color-snohvit};
|
|
15
|
-
--jkl-autosuggest-menu-background-color: #{jkl.$color-svart};
|
|
16
|
-
--jkl-autosuggest-focus-color: #{jkl.$color-snohvit};
|
|
17
|
-
--jkl-autosuggest-error-text-color: #{jkl.$color-granitt};
|
|
18
|
-
--jkl-autosuggest-error-placeholder-color: #{jkl.$color-stein};
|
|
19
|
-
--jkl-autosuggest-hover-option-color: #{jkl.$color-snohvit};
|
|
20
|
-
--jkl-autosuggest-hover-option-background-color: #{jkl.$color-stein};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
3
|
@include jkl.comfortable-density-variables {
|
|
24
4
|
@include jkl.declare-font-variables("jkl-autosuggest-item", "body");
|
|
25
5
|
|
|
@@ -53,35 +33,17 @@
|
|
|
53
33
|
border-radius: jkl.rem(3px) jkl.rem(3px) 0 0;
|
|
54
34
|
}
|
|
55
35
|
|
|
56
|
-
&__input-group > input[aria-invalid="true"] {
|
|
57
|
-
& ~ .jkl-autosuggest__controller-button {
|
|
58
|
-
color: var(--jkl-autosuggest-error-placeholder-color);
|
|
59
|
-
|
|
60
|
-
&:hover {
|
|
61
|
-
color: var(--jkl-autosuggest-error-text-color);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@include jkl.keyboard-navigation {
|
|
65
|
-
&:focus::after {
|
|
66
|
-
box-shadow: inset 0 0 0 jkl.rem(2px)
|
|
67
|
-
var(--jkl-autosuggest-error-text-color);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
36
|
&__no-hits-message {
|
|
74
37
|
font-size: var(--jkl-autosuggest-no-hits-message-font-size);
|
|
75
38
|
padding: var(--jkl-autosuggest-option-padding);
|
|
76
39
|
}
|
|
77
40
|
|
|
78
41
|
&__menu {
|
|
79
|
-
background-color: var(--jkl-
|
|
80
|
-
border: jkl.rem(2px) solid var(--jkl-
|
|
42
|
+
background-color: var(--jkl-color-background-container-high);
|
|
43
|
+
border: jkl.rem(2px) solid var(--jkl-color-border-input-focus);
|
|
81
44
|
border-top: none;
|
|
82
45
|
border-radius: 0 0 jkl.rem(3px) jkl.rem(3px);
|
|
83
46
|
box-sizing: border-box;
|
|
84
|
-
color: var(--jkl-autosuggest-text-color);
|
|
85
47
|
position: absolute;
|
|
86
48
|
inset: 100% jkl.rem(-1px) auto;
|
|
87
49
|
margin: 0;
|
|
@@ -105,7 +67,7 @@
|
|
|
105
67
|
display: flex; // avoids wrapping long names "under" the focus arrow
|
|
106
68
|
align-items: center;
|
|
107
69
|
border: 0; // removes native styling
|
|
108
|
-
background-color:
|
|
70
|
+
background-color: var(--jkl-color-background-interactive);
|
|
109
71
|
min-height: var(--jkl-autosuggest-option-height);
|
|
110
72
|
text-align: left;
|
|
111
73
|
|
|
@@ -118,10 +80,8 @@
|
|
|
118
80
|
&:focus,
|
|
119
81
|
&--active,
|
|
120
82
|
&:hover {
|
|
121
|
-
color: var(--jkl-
|
|
122
|
-
background-color: var(
|
|
123
|
-
--jkl-autosuggest-hover-option-background-color
|
|
124
|
-
);
|
|
83
|
+
color: var(--jkl-color-text-default);
|
|
84
|
+
background-color: var(--jkl-color-background-interactive-hover);
|
|
125
85
|
}
|
|
126
86
|
}
|
|
127
|
-
}
|
|
87
|
+
}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
--jkl-checkbox-box-size: 1.125rem;
|
|
31
31
|
--jkl-checkbox-line-height: 1.5rem;
|
|
32
32
|
}
|
|
33
|
-
@keyframes jkl-checkbox-checked-
|
|
33
|
+
@keyframes jkl-checkbox-checked-uc3cwb0 {
|
|
34
34
|
0% {
|
|
35
35
|
width: 0;
|
|
36
36
|
height: 0;
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
height: 58%;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
@keyframes jkl-checkbox-indeterminate-
|
|
47
|
+
@keyframes jkl-checkbox-indeterminate-uc3cwb4 {
|
|
48
48
|
0% {
|
|
49
49
|
width: 0;
|
|
50
50
|
}
|
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
left: calc(-0.5 * var(--jkl-checkbox-box-size));
|
|
74
74
|
}
|
|
75
75
|
.jkl-checkbox__input:checked + .jkl-checkbox__label .jkl-checkbox__check-mark::after {
|
|
76
|
-
animation: jkl-checkbox-checked-
|
|
76
|
+
animation: jkl-checkbox-checked-uc3cwb0 150ms ease-in-out forwards;
|
|
77
77
|
opacity: 1;
|
|
78
78
|
}
|
|
79
79
|
.jkl-checkbox__input:indeterminate:not(:checked) + .jkl-checkbox__label .jkl-checkbox__indeterminate-mark::after {
|
|
80
|
-
animation: jkl-checkbox-indeterminate-
|
|
80
|
+
animation: jkl-checkbox-indeterminate-uc3cwb4 150ms ease-in-out forwards;
|
|
81
81
|
opacity: 1;
|
|
82
82
|
}
|
|
83
83
|
.jkl-checkbox__input:focus-visible + .jkl-checkbox__label {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer jokul.components{:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-checkbox-font-size:var(--jkl-body-font-size);--jkl-checkbox-line-height:var(--jkl-body-line-height);--jkl-checkbox-font-weight:var(--jkl-body-font-weight);--jkl-checkbox-height:3rem;--jkl-checkbox-box-size:1.5rem;--jkl-checkbox-line-height:2rem}@media (width >= 0) and (max-width:679px){:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-checkbox-height:2.5rem;--jkl-checkbox-box-size:1.5rem;--jkl-checkbox-line-height:1.75rem}}[data-density=compact],[data-layout-density=compact]{--jkl-checkbox-font-size:var(--jkl-small-font-size);--jkl-checkbox-line-height:var(--jkl-small-line-height);--jkl-checkbox-font-weight:var(--jkl-small-font-weight);--jkl-checkbox-height:1.75rem;--jkl-checkbox-box-size:1.125rem;--jkl-checkbox-line-height:1.5rem}@keyframes jkl-checkbox-checked-
|
|
1
|
+
@layer jokul.components{:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-checkbox-font-size:var(--jkl-body-font-size);--jkl-checkbox-line-height:var(--jkl-body-line-height);--jkl-checkbox-font-weight:var(--jkl-body-font-weight);--jkl-checkbox-height:3rem;--jkl-checkbox-box-size:1.5rem;--jkl-checkbox-line-height:2rem}@media (width >= 0) and (max-width:679px){:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-checkbox-height:2.5rem;--jkl-checkbox-box-size:1.5rem;--jkl-checkbox-line-height:1.75rem}}[data-density=compact],[data-layout-density=compact]{--jkl-checkbox-font-size:var(--jkl-small-font-size);--jkl-checkbox-line-height:var(--jkl-small-line-height);--jkl-checkbox-font-weight:var(--jkl-small-font-weight);--jkl-checkbox-height:1.75rem;--jkl-checkbox-box-size:1.125rem;--jkl-checkbox-line-height:1.5rem}@keyframes jkl-checkbox-checked-uc3cwb0{0%{height:0;width:0}40%{height:0;width:18%}to{height:58%;width:18%}}@keyframes jkl-checkbox-indeterminate-uc3cwb4{0%{width:0}to{width:66%}}.jkl-checkbox{--box-color:var(--jkl-color-border-action);--check-color:var(--jkl-color-border-action);--text-color:var(--jkl-color-text-default);--background-color:#0000;color:var(--text-color);display:flex;flex-wrap:wrap;font-size:var(--jkl-checkbox-font-size);font-weight:var(--jkl-checkbox-font-weight);line-height:var(--jkl-checkbox-line-height);min-height:var(--jkl-checkbox-height);position:relative}.jkl-checkbox__input{left:calc(var(--jkl-checkbox-box-size)*-.5);opacity:0;position:absolute;top:var(--jkl-checkbox-box-size)}.jkl-checkbox__input:checked+.jkl-checkbox__label .jkl-checkbox__check-mark:after{animation:jkl-checkbox-checked-uc3cwb0 .15s ease-in-out forwards;opacity:1}.jkl-checkbox__input:indeterminate:not(:checked)+.jkl-checkbox__label .jkl-checkbox__indeterminate-mark:after{animation:jkl-checkbox-indeterminate-uc3cwb4 .15s ease-in-out forwards;opacity:1}.jkl-checkbox__input:focus-visible+.jkl-checkbox__label{color:var(--jkl-checkbox-focus-color)}.jkl-checkbox__input:focus-visible+.jkl-checkbox__label>.jkl-checkbox__mark{outline:3px solid var(--jkl-color-border-action);outline-offset:3px}.jkl-checkbox__input:disabled+.jkl-checkbox__label{color:var(--jkl-checkbox-disabled-color)}.jkl-checkbox__input:active{--background-color:var(--jkl-color-background-input-focus)}.jkl-checkbox__label{cursor:pointer;display:flex;flex-shrink:0;max-width:100%;min-width:0}.jkl-checkbox__label:active .jkl-checkbox__mark,.jkl-checkbox__label:hover .jkl-checkbox__mark{outline:1px solid var(--box-color)}.jkl-checkbox__text{margin:calc((var(--jkl-checkbox-height) - var(--jkl-checkbox-line-height))*.5) 0;transition-duration:.15s;transition-property:color;transition-timing-function:ease;translate:0 .0625rem}.jkl-checkbox__mark{box-sizing:border-box;height:var(--jkl-checkbox-box-size);margin-block:calc((var(--jkl-checkbox-height) - var(--jkl-checkbox-box-size))*.5);position:relative;width:var(--jkl-checkbox-box-size);-webkit-margin-end:var(--jkl-unit-10);align-self:flex-start;background-color:var(--background-color);border:1px solid;border-color:var(--box-color);border-radius:0;flex-shrink:0;margin-inline-end:var(--jkl-unit-10);outline:none;transition-duration:.15s;transition-property:background-color;transition-timing-function:ease}@media screen and (forced-colors:active){.jkl-checkbox__mark{border:1px solid ButtonText;outline:revert}}.jkl-checkbox__check-mark:after{border-bottom:.125rem solid var(--check-color);border-left-width:.125rem;border-left:0 solid var(--check-color);border-right:.125rem solid var(--check-color);border-top-width:.125rem;border-top:0 solid var(--check-color);bottom:42%;content:"";display:block;height:58%;left:18%;opacity:0;position:absolute;transform:rotate(45deg);transform-origin:bottom left;transition-duration:.15s;transition-property:opacity,border-color;transition-timing-function:ease;width:18%}@media screen and (forced-colors:active){.jkl-checkbox__check-mark:after{border-color:ButtonText}}.jkl-checkbox__indeterminate-mark:after{--width:66%;--thickness:0.125rem;border-bottom:solid var(--thickness) var(--check-color);bottom:calc(50% - var(--thickness)/2);content:"";display:block;left:calc((100% - var(--width))/2);opacity:0;position:absolute;transition-duration:.15s;transition-property:opacity,border-color;transition-timing-function:ease;width:var(--width)}@media screen and (forced-colors:active){.jkl-checkbox__indeterminate-mark:after{border-color:ButtonText}}.jkl-checkbox--inline{display:inline-flex}.jkl-checkbox--inline:not(:last-of-type){margin-right:calc(var(--jkl-unit-10)*3)}.jkl-checkbox--error{--background-color:var(--jkl-color-background-alert-error);--check-color:var(--jkl-color-text-on-alert)}}
|
|
@@ -1,77 +1,81 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
.jkl-input-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
.jkl-input-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
line-height:
|
|
55
|
-
font-
|
|
56
|
-
--jkl-
|
|
4
|
+
@layer components {
|
|
5
|
+
.jkl-input-panel {
|
|
6
|
+
--outer-border-color: var(--jkl-color-border-input);
|
|
7
|
+
--outer-border-thickness: 0.0625rem;
|
|
8
|
+
--background-color: transparent;
|
|
9
|
+
box-shadow: inset 0 0 0 var(--outer-border-thickness) var(--outer-border-color);
|
|
10
|
+
border-radius: 4px;
|
|
11
|
+
background-color: var(--background-color);
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
interpolate-size: allow-keywords;
|
|
15
|
+
transition-timing-function: ease;
|
|
16
|
+
transition-duration: 150ms;
|
|
17
|
+
transition-property: box-shadow;
|
|
18
|
+
}
|
|
19
|
+
.jkl-input-panel__header {
|
|
20
|
+
display: grid;
|
|
21
|
+
grid-template-columns: 1fr max-content;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: 0.5rem;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
position: relative;
|
|
26
|
+
padding: var(--jkl-spacing-s) var(--jkl-spacing-m);
|
|
27
|
+
}
|
|
28
|
+
.jkl-input-panel__header__amount {
|
|
29
|
+
display: flex;
|
|
30
|
+
height: 100%;
|
|
31
|
+
align-items: center;
|
|
32
|
+
font-size: var(--jkl-checkbox-font-size);
|
|
33
|
+
line-height: var(--jkl-checkbox-line-height);
|
|
34
|
+
font-weight: var(--jkl-checkbox-font-weight);
|
|
35
|
+
}
|
|
36
|
+
.jkl-input-panel__header label,
|
|
37
|
+
.jkl-input-panel__header .jkl-radio-button,
|
|
38
|
+
.jkl-input-panel__header .jkl-checkbox {
|
|
39
|
+
position: unset;
|
|
40
|
+
}
|
|
41
|
+
.jkl-input-panel__header label::after {
|
|
42
|
+
content: "";
|
|
43
|
+
position: absolute;
|
|
44
|
+
top: 0;
|
|
45
|
+
left: 0;
|
|
46
|
+
inline-size: 100%;
|
|
47
|
+
block-size: 100%;
|
|
48
|
+
}
|
|
49
|
+
.jkl-input-panel__description {
|
|
50
|
+
height: 0;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
padding-inline: var(--jkl-spacing-m);
|
|
53
|
+
padding-block-end: var(--jkl-spacing-none);
|
|
54
|
+
line-height: initial;
|
|
55
|
+
font-size: var(--jkl-checkbox-font-size);
|
|
56
|
+
line-height: var(--jkl-checkbox-line-height);
|
|
57
|
+
font-weight: var(--jkl-checkbox-font-weight);
|
|
58
|
+
transition-timing-function: ease;
|
|
59
|
+
transition-duration: 150ms;
|
|
60
|
+
transition-property: height;
|
|
61
|
+
}
|
|
62
|
+
.jkl-input-panel:has(:focus-visible) {
|
|
63
|
+
outline: 3px solid var(--jkl-color-border-action);
|
|
64
|
+
outline-offset: 3px;
|
|
65
|
+
}
|
|
66
|
+
.jkl-input-panel:has(:checked), .jkl-input-panel[data-always-open=true], .jkl-input-panel:not([data-always-open]) {
|
|
67
|
+
--background-color: var(--jkl-color-background-container-high);
|
|
68
|
+
}
|
|
69
|
+
.jkl-input-panel:has(:checked) .jkl-input-panel__description, .jkl-input-panel[data-always-open=true] .jkl-input-panel__description, .jkl-input-panel:not([data-always-open]) .jkl-input-panel__description {
|
|
70
|
+
height: auto;
|
|
71
|
+
padding-block-end: var(--jkl-spacing-s);
|
|
72
|
+
}
|
|
73
|
+
.jkl-input-panel:has(input:hover) {
|
|
74
|
+
--outer-border-color: var(--jkl-color-border-separator-hover);
|
|
75
|
+
--outer-border-thickness: 0.125rem;
|
|
76
|
+
cursor: pointer;
|
|
57
77
|
}
|
|
58
78
|
}
|
|
59
|
-
.jkl-input-panel__content[data-alwaysopen=true], .jkl-input-panel:has([aria-expanded=true]) .jkl-input-panel__content {
|
|
60
|
-
padding-bottom: 24px;
|
|
61
|
-
height: auto;
|
|
62
|
-
}
|
|
63
|
-
.jkl-input-panel:has(:focus-visible) {
|
|
64
|
-
outline: 3px solid var(--jkl-color-border-action);
|
|
65
|
-
outline-offset: 3px;
|
|
66
|
-
}
|
|
67
|
-
.jkl-input-panel:has(:checked) {
|
|
68
|
-
--background-color: var(--jkl-color-background-container-high);
|
|
69
|
-
}
|
|
70
|
-
.jkl-input-panel:has(label:hover) {
|
|
71
|
-
--outer-border-color: var(--jkl-color-border-separator-hover);
|
|
72
|
-
--outer-border-thickness: 0.125rem;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
79
|
@layer jokul.components {
|
|
76
80
|
:root,
|
|
77
81
|
[data-layout-density=comfortable],
|
|
@@ -101,7 +105,7 @@
|
|
|
101
105
|
--jkl-checkbox-box-size: 1.125rem;
|
|
102
106
|
--jkl-checkbox-line-height: 1.5rem;
|
|
103
107
|
}
|
|
104
|
-
@keyframes jkl-checkbox-checked-
|
|
108
|
+
@keyframes jkl-checkbox-checked-ulf0oap {
|
|
105
109
|
0% {
|
|
106
110
|
width: 0;
|
|
107
111
|
height: 0;
|
|
@@ -115,7 +119,7 @@
|
|
|
115
119
|
height: 58%;
|
|
116
120
|
}
|
|
117
121
|
}
|
|
118
|
-
@keyframes jkl-checkbox-indeterminate-
|
|
122
|
+
@keyframes jkl-checkbox-indeterminate-ulf0oba {
|
|
119
123
|
0% {
|
|
120
124
|
width: 0;
|
|
121
125
|
}
|
|
@@ -144,11 +148,11 @@
|
|
|
144
148
|
left: calc(-0.5 * var(--jkl-checkbox-box-size));
|
|
145
149
|
}
|
|
146
150
|
.jkl-checkbox__input:checked + .jkl-checkbox__label .jkl-checkbox__check-mark::after {
|
|
147
|
-
animation: jkl-checkbox-checked-
|
|
151
|
+
animation: jkl-checkbox-checked-ulf0oap 150ms ease-in-out forwards;
|
|
148
152
|
opacity: 1;
|
|
149
153
|
}
|
|
150
154
|
.jkl-checkbox__input:indeterminate:not(:checked) + .jkl-checkbox__label .jkl-checkbox__indeterminate-mark::after {
|
|
151
|
-
animation: jkl-checkbox-indeterminate-
|
|
155
|
+
animation: jkl-checkbox-indeterminate-ulf0oba 150ms ease-in-out forwards;
|
|
152
156
|
opacity: 1;
|
|
153
157
|
}
|
|
154
158
|
.jkl-checkbox__input:focus-visible + .jkl-checkbox__label {
|
|
@@ -259,7 +263,7 @@
|
|
|
259
263
|
--check-color: var(--jkl-color-text-on-alert);
|
|
260
264
|
}
|
|
261
265
|
}
|
|
262
|
-
@keyframes jkl-checkbox-checked-
|
|
266
|
+
@keyframes jkl-checkbox-checked-ulf0obj {
|
|
263
267
|
0% {
|
|
264
268
|
width: 0;
|
|
265
269
|
height: 0;
|
|
@@ -323,7 +327,7 @@
|
|
|
323
327
|
}
|
|
324
328
|
}
|
|
325
329
|
.jkl-checkbox-panel:has(:checked) .jkl-checkbox-panel__decorator::after {
|
|
326
|
-
animation: jkl-checkbox-checked-
|
|
330
|
+
animation: jkl-checkbox-checked-ulf0obj 150ms ease-in-out forwards;
|
|
327
331
|
opacity: 1;
|
|
328
332
|
}
|
|
329
333
|
.jkl-checkbox-panel:has([aria-invalid=true]) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.jkl-input-panel{--outer-border-color:var(--jkl-color-border-input);--outer-border-thickness:0.0625rem;--
|
|
1
|
+
@layer components{.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);display:flex;flex-direction:column;interpolate-size:allow-keywords;transition-duration:.15s;transition-property:box-shadow;transition-timing-function:ease}.jkl-input-panel__header{align-items:center;cursor:pointer;display:grid;gap:.5rem;grid-template-columns:1fr -webkit-max-content;grid-template-columns:1fr max-content;padding:var(--jkl-spacing-s) var(--jkl-spacing-m);position:relative}.jkl-input-panel__header__amount{align-items:center;display:flex;font-size:var(--jkl-checkbox-font-size);font-weight:var(--jkl-checkbox-font-weight);height:100%;line-height:var(--jkl-checkbox-line-height)}.jkl-input-panel__header .jkl-checkbox,.jkl-input-panel__header .jkl-radio-button,.jkl-input-panel__header label{position:unset}.jkl-input-panel__header label:after{block-size:100%;content:"";inline-size:100%;left:0;position:absolute;top:0}.jkl-input-panel__description{height:0;overflow:hidden;padding-inline:var(--jkl-spacing-m);-webkit-padding-after:var(--jkl-spacing-none);font-size:var(--jkl-checkbox-font-size);font-weight:var(--jkl-checkbox-font-weight);line-height:normal;line-height:var(--jkl-checkbox-line-height);padding-block-end:var(--jkl-spacing-none);transition-duration:.15s;transition-property:height;transition-timing-function:ease}.jkl-input-panel:has(:focus-visible){outline:3px solid var(--jkl-color-border-action);outline-offset:3px}.jkl-input-panel:has(:checked),.jkl-input-panel:not([data-always-open]),.jkl-input-panel[data-always-open=true]{--background-color:var(--jkl-color-background-container-high)}.jkl-input-panel:has(:checked) .jkl-input-panel__description,.jkl-input-panel:not([data-always-open]) .jkl-input-panel__description,.jkl-input-panel[data-always-open=true] .jkl-input-panel__description{height:auto;-webkit-padding-after:var(--jkl-spacing-s);padding-block-end:var(--jkl-spacing-s)}.jkl-input-panel:has(input:hover){--outer-border-color:var(--jkl-color-border-separator-hover);--outer-border-thickness:0.125rem;cursor:pointer}}@layer jokul.components{:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-checkbox-font-size:var(--jkl-body-font-size);--jkl-checkbox-line-height:var(--jkl-body-line-height);--jkl-checkbox-font-weight:var(--jkl-body-font-weight);--jkl-checkbox-height:3rem;--jkl-checkbox-box-size:1.5rem;--jkl-checkbox-line-height:2rem}@media (width >= 0) and (max-width:679px){:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-checkbox-height:2.5rem;--jkl-checkbox-box-size:1.5rem;--jkl-checkbox-line-height:1.75rem}}[data-density=compact],[data-layout-density=compact]{--jkl-checkbox-font-size:var(--jkl-small-font-size);--jkl-checkbox-line-height:var(--jkl-small-line-height);--jkl-checkbox-font-weight:var(--jkl-small-font-weight);--jkl-checkbox-height:1.75rem;--jkl-checkbox-box-size:1.125rem;--jkl-checkbox-line-height:1.5rem}@keyframes jkl-checkbox-checked-ulf0oap{0%{height:0;width:0}40%{height:0;width:18%}to{height:58%;width:18%}}@keyframes jkl-checkbox-indeterminate-ulf0oba{0%{width:0}to{width:66%}}.jkl-checkbox{--box-color:var(--jkl-color-border-action);--check-color:var(--jkl-color-border-action);--text-color:var(--jkl-color-text-default);--background-color:#0000;color:var(--text-color);display:flex;flex-wrap:wrap;font-size:var(--jkl-checkbox-font-size);font-weight:var(--jkl-checkbox-font-weight);line-height:var(--jkl-checkbox-line-height);min-height:var(--jkl-checkbox-height);position:relative}.jkl-checkbox__input{left:calc(var(--jkl-checkbox-box-size)*-.5);opacity:0;position:absolute;top:var(--jkl-checkbox-box-size)}.jkl-checkbox__input:checked+.jkl-checkbox__label .jkl-checkbox__check-mark:after{animation:jkl-checkbox-checked-ulf0oap .15s ease-in-out forwards;opacity:1}.jkl-checkbox__input:indeterminate:not(:checked)+.jkl-checkbox__label .jkl-checkbox__indeterminate-mark:after{animation:jkl-checkbox-indeterminate-ulf0oba .15s ease-in-out forwards;opacity:1}.jkl-checkbox__input:focus-visible+.jkl-checkbox__label{color:var(--jkl-checkbox-focus-color)}.jkl-checkbox__input:focus-visible+.jkl-checkbox__label>.jkl-checkbox__mark{outline:3px solid var(--jkl-color-border-action);outline-offset:3px}.jkl-checkbox__input:disabled+.jkl-checkbox__label{color:var(--jkl-checkbox-disabled-color)}.jkl-checkbox__input:active{--background-color:var(--jkl-color-background-input-focus)}.jkl-checkbox__label{cursor:pointer;display:flex;flex-shrink:0;max-width:100%;min-width:0}.jkl-checkbox__label:active .jkl-checkbox__mark,.jkl-checkbox__label:hover .jkl-checkbox__mark{outline:1px solid var(--box-color)}.jkl-checkbox__text{margin:calc((var(--jkl-checkbox-height) - var(--jkl-checkbox-line-height))*.5) 0;transition-duration:.15s;transition-property:color;transition-timing-function:ease;translate:0 .0625rem}.jkl-checkbox__mark{box-sizing:border-box;height:var(--jkl-checkbox-box-size);margin-block:calc((var(--jkl-checkbox-height) - var(--jkl-checkbox-box-size))*.5);position:relative;width:var(--jkl-checkbox-box-size);-webkit-margin-end:var(--jkl-unit-10);align-self:flex-start;background-color:var(--background-color);border:1px solid;border-color:var(--box-color);border-radius:0;flex-shrink:0;margin-inline-end:var(--jkl-unit-10);outline:none;transition-duration:.15s;transition-property:background-color;transition-timing-function:ease}@media screen and (forced-colors:active){.jkl-checkbox__mark{border:1px solid ButtonText;outline:revert}}.jkl-checkbox__check-mark:after{border-bottom:.125rem solid var(--check-color);border-left-width:.125rem;border-left:0 solid var(--check-color);border-right:.125rem solid var(--check-color);border-top-width:.125rem;border-top:0 solid var(--check-color);bottom:42%;content:"";display:block;height:58%;left:18%;opacity:0;position:absolute;transform:rotate(45deg);transform-origin:bottom left;transition-duration:.15s;transition-property:opacity,border-color;transition-timing-function:ease;width:18%}@media screen and (forced-colors:active){.jkl-checkbox__check-mark:after{border-color:ButtonText}}.jkl-checkbox__indeterminate-mark:after{--width:66%;--thickness:0.125rem;border-bottom:solid var(--thickness) var(--check-color);bottom:calc(50% - var(--thickness)/2);content:"";display:block;left:calc((100% - var(--width))/2);opacity:0;position:absolute;transition-duration:.15s;transition-property:opacity,border-color;transition-timing-function:ease;width:var(--width)}@media screen and (forced-colors:active){.jkl-checkbox__indeterminate-mark:after{border-color:ButtonText}}.jkl-checkbox--inline{display:inline-flex}.jkl-checkbox--inline:not(:last-of-type){margin-right:calc(var(--jkl-unit-10)*3)}.jkl-checkbox--error{--background-color:var(--jkl-color-background-alert-error);--check-color:var(--jkl-color-text-on-alert)}}@keyframes jkl-checkbox-checked-ulf0obj{0%{height:0;width:0}40%{height:0;width:18%}to{height:58%;width:18%}}@layer jokul.components{.jkl-checkbox-panel{--checkbox-background-color:#0000;--checkbox-box-color:var(--jkl-color-border-action);--checkbox-check-color:var(--jkl-color-border-action)}.jkl-checkbox-panel__decorator{background-color:var(--checkbox-background-color);border:1px solid;border-color:var(--checkbox-box-color);border-radius:0;box-sizing:border-box;height:var(--jkl-checkbox-box-size);outline:none;position:relative;transition-duration:.15s;transition-property:background-color;transition-timing-function:ease;width:var(--jkl-checkbox-box-size)}@media screen and (forced-colors:active){.jkl-checkbox-panel__decorator{border:1px solid ButtonText;outline:revert}}.jkl-checkbox-panel__decorator:after{border-bottom:.125rem solid var(--checkbox-check-color);border-left-width:.125rem;border-left:0 solid var(--checkbox-check-color);border-right:.125rem solid var(--checkbox-check-color);border-top-width:.125rem;border-top:0 solid var(--checkbox-check-color);bottom:42%;content:"";display:block;height:58%;left:18%;opacity:0;position:absolute;transform:rotate(45deg);transform-origin:bottom left;transition-duration:.15s;transition-property:opacity,border-color;transition-timing-function:ease;width:18%}@media screen and (forced-colors:active){.jkl-checkbox-panel__decorator:after{border-color:ButtonText}}.jkl-checkbox-panel:has(:checked) .jkl-checkbox-panel__decorator:after{animation:jkl-checkbox-checked-ulf0obj .15s ease-in-out forwards;opacity:1}.jkl-checkbox-panel:has([aria-invalid=true]){--checkbox-background-color:var(
|
|
2
2
|
--jkl-color-background-alert-error
|
|
3
3
|
);--checkbox-check-color:var(--jkl-color-text-on-alert)}}
|