@cratis/components 4.44.2 → 4.44.4
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/compat-manifest.json +13 -13
- package/dist/esm/DataTables/TablePaginatorImplementation.d.ts.map +1 -1
- package/dist/esm/DataTables/TablePaginatorImplementation.js +16 -2
- package/dist/esm/DataTables/TablePaginatorImplementation.js.map +1 -1
- package/dist/esm/styles.Canvas.css +15 -1
- package/dist/esm/styles.CommandDialog.css +15 -1
- package/dist/esm/styles.CommandForm.css +14 -0
- package/dist/esm/styles.CommandStepper.css +14 -0
- package/dist/esm/styles.Common.css +14 -0
- package/dist/esm/styles.DataPage.css +24 -0
- package/dist/esm/styles.DataTables.css +24 -0
- package/dist/esm/styles.Dialogs.css +1 -1
- package/dist/esm/styles.Display.css +14 -0
- package/dist/esm/styles.Dropdown.css +14 -0
- package/dist/esm/styles.ObjectContentEditor.css +14 -0
- package/dist/esm/styles.ObjectNavigationalBar.css +14 -0
- package/dist/esm/styles.SchemaEditor.css +24 -0
- package/dist/esm/styles.Toolbar.css +14 -0
- package/dist/esm/styles.css +25 -1
- package/dist/esm/styles.renderer.builtin.css +25 -1
- package/dist/esm/themes/designsystemet.css +7 -0
- package/package.json +1 -1
package/compat-manifest.json
CHANGED
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
{
|
|
71
71
|
"name": "@cratis/components",
|
|
72
72
|
"role": "core",
|
|
73
|
-
"version": "4.44.
|
|
73
|
+
"version": "4.44.4",
|
|
74
74
|
"releaseMajorRange": ">=4 <5",
|
|
75
75
|
"independentRelease": false,
|
|
76
76
|
"private": false,
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
{
|
|
95
95
|
"name": "@cratis/eslint-plugin-components",
|
|
96
96
|
"role": "eslint",
|
|
97
|
-
"version": "4.44.
|
|
97
|
+
"version": "4.44.4",
|
|
98
98
|
"releaseMajorRange": ">=4 <5",
|
|
99
99
|
"independentRelease": false,
|
|
100
100
|
"private": false,
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
{
|
|
108
108
|
"name": "@cratis/components.migrator",
|
|
109
109
|
"role": "migrator",
|
|
110
|
-
"version": "4.44.
|
|
110
|
+
"version": "4.44.4",
|
|
111
111
|
"releaseMajorRange": ">=4 <5",
|
|
112
112
|
"independentRelease": false,
|
|
113
113
|
"private": false,
|
|
@@ -118,13 +118,13 @@
|
|
|
118
118
|
{
|
|
119
119
|
"name": "@cratis/components.conformance",
|
|
120
120
|
"role": "conformance",
|
|
121
|
-
"version": "4.44.
|
|
121
|
+
"version": "4.44.4",
|
|
122
122
|
"releaseMajorRange": ">=4 <5",
|
|
123
123
|
"independentRelease": false,
|
|
124
124
|
"private": false,
|
|
125
125
|
"packageAccess": "public",
|
|
126
126
|
"peerDependencies": {
|
|
127
|
-
"@cratis/components": "4.44.
|
|
127
|
+
"@cratis/components": "4.44.4",
|
|
128
128
|
"react": "^19.0.0",
|
|
129
129
|
"react-dom": "^19.0.0"
|
|
130
130
|
},
|
|
@@ -134,13 +134,13 @@
|
|
|
134
134
|
{
|
|
135
135
|
"name": "@cratis/components.mui",
|
|
136
136
|
"role": "renderer-adapter",
|
|
137
|
-
"version": "4.44.
|
|
137
|
+
"version": "4.44.4",
|
|
138
138
|
"releaseMajorRange": ">=4 <5",
|
|
139
139
|
"independentRelease": false,
|
|
140
140
|
"private": false,
|
|
141
141
|
"packageAccess": "public",
|
|
142
142
|
"peerDependencies": {
|
|
143
|
-
"@cratis/components": "4.44.
|
|
143
|
+
"@cratis/components": "4.44.4",
|
|
144
144
|
"@emotion/react": ">=11.5 <12",
|
|
145
145
|
"@emotion/styled": ">=11.11 <12",
|
|
146
146
|
"@mui/material": ">=9 <10",
|
|
@@ -190,13 +190,13 @@
|
|
|
190
190
|
{
|
|
191
191
|
"name": "@cratis/components.primereact",
|
|
192
192
|
"role": "renderer-adapter",
|
|
193
|
-
"version": "4.44.
|
|
193
|
+
"version": "4.44.4",
|
|
194
194
|
"releaseMajorRange": ">=4 <5",
|
|
195
195
|
"independentRelease": false,
|
|
196
196
|
"private": false,
|
|
197
197
|
"packageAccess": "public",
|
|
198
198
|
"peerDependencies": {
|
|
199
|
-
"@cratis/components": "4.44.
|
|
199
|
+
"@cratis/components": "4.44.4",
|
|
200
200
|
"@primereact/core": ">=11 <12",
|
|
201
201
|
"@primereact/ui": ">=11 <12",
|
|
202
202
|
"@primeuix/themes": ">=3 <4",
|
|
@@ -258,13 +258,13 @@
|
|
|
258
258
|
{
|
|
259
259
|
"name": "@cratis/components.primereact10",
|
|
260
260
|
"role": "renderer-adapter",
|
|
261
|
-
"version": "4.44.
|
|
261
|
+
"version": "4.44.4",
|
|
262
262
|
"releaseMajorRange": ">=4 <5",
|
|
263
263
|
"independentRelease": false,
|
|
264
264
|
"private": false,
|
|
265
265
|
"packageAccess": "public",
|
|
266
266
|
"peerDependencies": {
|
|
267
|
-
"@cratis/components": "4.44.
|
|
267
|
+
"@cratis/components": "4.44.4",
|
|
268
268
|
"primereact": ">=10.9.9 <11",
|
|
269
269
|
"react": "^19.0.0",
|
|
270
270
|
"react-dom": "^19.0.0"
|
|
@@ -306,13 +306,13 @@
|
|
|
306
306
|
{
|
|
307
307
|
"name": "@cratis/components.designsystemet",
|
|
308
308
|
"role": "renderer-adapter",
|
|
309
|
-
"version": "4.44.
|
|
309
|
+
"version": "4.44.4",
|
|
310
310
|
"releaseMajorRange": ">=4 <5",
|
|
311
311
|
"independentRelease": false,
|
|
312
312
|
"private": false,
|
|
313
313
|
"packageAccess": "public",
|
|
314
314
|
"peerDependencies": {
|
|
315
|
-
"@cratis/components": "4.44.
|
|
315
|
+
"@cratis/components": "4.44.4",
|
|
316
316
|
"@digdir/designsystemet-css": ">=1.24 <2",
|
|
317
317
|
"@digdir/designsystemet-react": ">=1.24 <2",
|
|
318
318
|
"react": "^19.0.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TablePaginatorImplementation.d.ts","sourceRoot":"","sources":["../../../DataTables/TablePaginatorImplementation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TablePaginatorImplementation.d.ts","sourceRoot":"","sources":["../../../DataTables/TablePaginatorImplementation.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAkB,CAAC;AAI5D;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,mGAUtC,mBAAmB,gCA6HrB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useRef, useLayoutEffect } from 'react';
|
|
2
3
|
import { Button } from '../Common/Button.js';
|
|
3
|
-
import 'react';
|
|
4
4
|
import 'react-aria-components/I18nProvider';
|
|
5
5
|
import 'react-aria-components';
|
|
6
6
|
import 'ts-deepmerge';
|
|
@@ -18,6 +18,17 @@ const TablePaginatorImplementation = ({ page, pageCount, onPageChange, totalItem
|
|
|
18
18
|
const icon = useCratisIcon();
|
|
19
19
|
const isFirst = page <= 0;
|
|
20
20
|
const isLast = page >= pageCount - 1;
|
|
21
|
+
const rootRef = useRef(null);
|
|
22
|
+
const focusedControl = useRef(null);
|
|
23
|
+
useLayoutEffect(() => {
|
|
24
|
+
const control = focusedControl.current;
|
|
25
|
+
if (!control || document.activeElement !== control || !control.disabled)
|
|
26
|
+
return;
|
|
27
|
+
const buttons = [...(rootRef.current?.querySelectorAll('button') ?? [])];
|
|
28
|
+
const index = buttons.indexOf(control);
|
|
29
|
+
const candidates = isLast ? buttons.slice(0, index).reverse() : buttons.slice(index + 1);
|
|
30
|
+
candidates.find((button) => !button.disabled)?.focus();
|
|
31
|
+
}, [isFirst, isLast]);
|
|
21
32
|
const rangeReport = paginatorRange(page, pageSize, totalItems, ariaLabels?.range ?? paginatorMessages?.range);
|
|
22
33
|
const labels = {
|
|
23
34
|
navigation: ariaLabels?.navigation ?? paginatorMessages?.navigation ?? 'Pagination',
|
|
@@ -30,7 +41,10 @@ const TablePaginatorImplementation = ({ page, pageCount, onPageChange, totalItem
|
|
|
30
41
|
((number) => `Page ${number}`),
|
|
31
42
|
pages: ariaLabels?.pages ?? paginatorMessages?.pages ?? 'Pages',
|
|
32
43
|
};
|
|
33
|
-
return (jsxs("div", { ...pt?.root,
|
|
44
|
+
return (jsxs("div", { ...pt?.root, ref: rootRef, onFocus: (event) => {
|
|
45
|
+
focusedControl.current = event.target;
|
|
46
|
+
pt?.root?.onFocus?.(event);
|
|
47
|
+
}, role: 'navigation', "aria-label": labels.navigation, "data-cratis-part": 'root', "data-cratis-component": 'TablePaginator', className: ['cratis-table-paginator', pt?.root?.className, className]
|
|
34
48
|
.filter(Boolean)
|
|
35
49
|
.join(' '), children: [rangeReport && (jsx("span", { ...pt?.range, className: ['cratis-table-paginator-range', pt?.range?.className]
|
|
36
50
|
.filter(Boolean)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TablePaginatorImplementation.js","sources":["../../../DataTables/TablePaginatorImplementation.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Button } from '../Common/Button';\nimport { useCratisComponentsConfig } from '../Common/CratisComponentsProvider';\nimport { useCratisIcon } from '../configuration/useCratisIcon';\nimport type { TablePaginatorProps } from './TablePaginator';\nimport { paginatorRange } from './paginatorRange';\nimport { TablePaginatorPages } from './TablePaginatorPages';\n\n/**\n * A minimal first/previous/next/last paginator. The\n * Cratis data tables drive paging through Arc's paging hook rather than the\n * table's internal pagination — so this renders the page controls wired to a\n * simple `onPageChange(pageIndex)` callback.\n */\nexport const TablePaginatorImplementation = ({\n page,\n pageCount,\n onPageChange,\n totalItems,\n pageSize,\n pageLinks = false,\n ariaLabels,\n className,\n pt,\n}: TablePaginatorProps) => {\n const { messages } = useCratisComponentsConfig();\n const paginatorMessages = messages?.paginator;\n const icon = useCratisIcon();\n const isFirst = page <= 0;\n const isLast = page >= pageCount - 1;\n const rangeReport = paginatorRange(\n page,\n pageSize,\n totalItems,\n ariaLabels?.range ?? paginatorMessages?.range,\n );\n const labels = {\n navigation:\n ariaLabels?.navigation ?? paginatorMessages?.navigation ?? 'Pagination',\n first: ariaLabels?.first ?? paginatorMessages?.first ?? 'First page',\n previous: ariaLabels?.previous ?? paginatorMessages?.previous ?? 'Previous page',\n next: ariaLabels?.next ?? paginatorMessages?.next ?? 'Next page',\n last: ariaLabels?.last ?? paginatorMessages?.last ?? 'Last page',\n page:\n ariaLabels?.page ??\n paginatorMessages?.page ??\n ((number: number) => `Page ${number}`),\n pages: ariaLabels?.pages ?? paginatorMessages?.pages ?? 'Pages',\n };\n\n return (\n <div\n {...pt?.root}\n role='navigation'\n aria-label={labels.navigation}\n data-cratis-part='root'\n data-cratis-component='TablePaginator'\n className={['cratis-table-paginator', pt?.root?.className, className]\n .filter(Boolean)\n .join(' ')}\n >\n {rangeReport && (\n <span\n {...pt?.range}\n className={['cratis-table-paginator-range', pt?.range?.className]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='range'\n >\n {rangeReport}\n </span>\n )}\n <Button\n variant='ghost'\n disabled={isFirst}\n onClick={() => onPageChange(0)}\n aria-label={labels.first}\n pt={pt?.first}\n >\n <span aria-hidden='true'>«</span>\n </Button>\n <Button\n variant='ghost'\n disabled={isFirst}\n onClick={() => onPageChange(page - 1)}\n aria-label={labels.previous}\n pt={pt?.previous}\n >\n <span aria-hidden='true'>{icon('previous', '‹')}</span>\n </Button>\n {pageLinks ? (\n <TablePaginatorPages\n page={page}\n pageCount={pageCount}\n pageLinks={pageLinks}\n onPageChange={onPageChange}\n pt={pt}\n pageLabel={labels.page}\n pagesLabel={labels.pages}\n />\n ) : (\n <span\n {...pt?.info}\n className={['cratis-table-paginator-info', pt?.info?.className]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='info'\n >\n {page + 1} / {Math.max(pageCount, 1)}\n </span>\n )}\n <Button\n variant='ghost'\n disabled={isLast}\n onClick={() => onPageChange(page + 1)}\n aria-label={labels.next}\n pt={pt?.next}\n >\n <span aria-hidden='true'>{icon('next', '›')}</span>\n </Button>\n <Button\n variant='ghost'\n disabled={isLast}\n onClick={() => onPageChange(pageCount - 1)}\n aria-label={labels.last}\n pt={pt?.last}\n >\n <span aria-hidden='true'>»</span>\n </Button>\n </div>\n );\n};\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;AAgBO,MAAM,4BAA4B,GAAG,CAAC,EACzC,IAAI,EACJ,SAAS,EACT,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,SAAS,GAAG,KAAK,EACjB,UAAU,EACV,SAAS,EACT,EAAE,GACgB,KAAI;AACtB,IAAA,MAAM,EAAE,QAAQ,EAAE,GAAG,yBAAyB,EAAE;AAChD,IAAA,MAAM,iBAAiB,GAAG,QAAQ,EAAE,SAAS;AAC7C,IAAA,MAAM,IAAI,GAAG,aAAa,EAAE;AAC5B,IAAA,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC;AACzB,IAAA,MAAM,MAAM,GAAG,IAAI,IAAI,SAAS,GAAG,CAAC;AACpC,IAAA,MAAM,WAAW,GAAG,cAAc,CAC9B,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,UAAU,EAAE,KAAK,IAAI,iBAAiB,EAAE,KAAK,CAChD;AACD,IAAA,MAAM,MAAM,GAAG;QACX,UAAU,EACN,UAAU,EAAE,UAAU,IAAI,iBAAiB,EAAE,UAAU,IAAI,YAAY;QAC3E,KAAK,EAAE,UAAU,EAAE,KAAK,IAAI,iBAAiB,EAAE,KAAK,IAAI,YAAY;QACpE,QAAQ,EAAE,UAAU,EAAE,QAAQ,IAAI,iBAAiB,EAAE,QAAQ,IAAI,eAAe;QAChF,IAAI,EAAE,UAAU,EAAE,IAAI,IAAI,iBAAiB,EAAE,IAAI,IAAI,WAAW;QAChE,IAAI,EAAE,UAAU,EAAE,IAAI,IAAI,iBAAiB,EAAE,IAAI,IAAI,WAAW;QAChE,IAAI,EACA,U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B,OAAO,EAAE,MAAM,YAAY,CAAC,SAAS,GAAG,CAAC,CAAC,EAAA,YAAA,EAC9B,MAAM,CAAC,IAAI,EACvB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAA,QAAA,EAEZA,GAAA,CAAA,MAAA,EAAA,EAAA,aAAA,EAAkB,MAAM,EAAA,QAAA,EAAA,QAAA,EAAA,CAAS,EAAA,CAC5B,CAAA,EAAA,CACP;AAEd;;"}
|
|
1
|
+
{"version":3,"file":"TablePaginatorImplementation.js","sources":["../../../DataTables/TablePaginatorImplementation.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { useLayoutEffect, useRef } from 'react';\nimport { Button } from '../Common/Button';\nimport { useCratisComponentsConfig } from '../Common/CratisComponentsProvider';\nimport { useCratisIcon } from '../configuration/useCratisIcon';\nimport type { TablePaginatorProps } from './TablePaginator';\nimport { paginatorRange } from './paginatorRange';\nimport { TablePaginatorPages } from './TablePaginatorPages';\n\n/**\n * A minimal first/previous/next/last paginator. The\n * Cratis data tables drive paging through Arc's paging hook rather than the\n * table's internal pagination — so this renders the page controls wired to a\n * simple `onPageChange(pageIndex)` callback.\n */\nexport const TablePaginatorImplementation = ({\n page,\n pageCount,\n onPageChange,\n totalItems,\n pageSize,\n pageLinks = false,\n ariaLabels,\n className,\n pt,\n}: TablePaginatorProps) => {\n const { messages } = useCratisComponentsConfig();\n const paginatorMessages = messages?.paginator;\n const icon = useCratisIcon();\n const isFirst = page <= 0;\n const isLast = page >= pageCount - 1;\n const rootRef = useRef<HTMLDivElement>(null);\n const focusedControl = useRef<HTMLElement | null>(null);\n\n // Paging to either end disables the control that was just activated, which would drop keyboard\n // focus to the page body. Keep it inside the paginator, on the nearest enabled control.\n useLayoutEffect(() => {\n const control = focusedControl.current;\n if (!control || document.activeElement !== control || !(control as HTMLButtonElement).disabled) return;\n const buttons = [...(rootRef.current?.querySelectorAll('button') ?? [])];\n const index = buttons.indexOf(control as HTMLButtonElement);\n const candidates = isLast ? buttons.slice(0, index).reverse() : buttons.slice(index + 1);\n candidates.find((button) => !button.disabled)?.focus();\n }, [isFirst, isLast]);\n const rangeReport = paginatorRange(\n page,\n pageSize,\n totalItems,\n ariaLabels?.range ?? paginatorMessages?.range,\n );\n const labels = {\n navigation:\n ariaLabels?.navigation ?? paginatorMessages?.navigation ?? 'Pagination',\n first: ariaLabels?.first ?? paginatorMessages?.first ?? 'First page',\n previous: ariaLabels?.previous ?? paginatorMessages?.previous ?? 'Previous page',\n next: ariaLabels?.next ?? paginatorMessages?.next ?? 'Next page',\n last: ariaLabels?.last ?? paginatorMessages?.last ?? 'Last page',\n page:\n ariaLabels?.page ??\n paginatorMessages?.page ??\n ((number: number) => `Page ${number}`),\n pages: ariaLabels?.pages ?? paginatorMessages?.pages ?? 'Pages',\n };\n\n return (\n <div\n {...pt?.root}\n ref={rootRef}\n onFocus={(event) => {\n focusedControl.current = event.target;\n pt?.root?.onFocus?.(event);\n }}\n role='navigation'\n aria-label={labels.navigation}\n data-cratis-part='root'\n data-cratis-component='TablePaginator'\n className={['cratis-table-paginator', pt?.root?.className, className]\n .filter(Boolean)\n .join(' ')}\n >\n {rangeReport && (\n <span\n {...pt?.range}\n className={['cratis-table-paginator-range', pt?.range?.className]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='range'\n >\n {rangeReport}\n </span>\n )}\n <Button\n variant='ghost'\n disabled={isFirst}\n onClick={() => onPageChange(0)}\n aria-label={labels.first}\n pt={pt?.first}\n >\n <span aria-hidden='true'>«</span>\n </Button>\n <Button\n variant='ghost'\n disabled={isFirst}\n onClick={() => onPageChange(page - 1)}\n aria-label={labels.previous}\n pt={pt?.previous}\n >\n <span aria-hidden='true'>{icon('previous', '‹')}</span>\n </Button>\n {pageLinks ? (\n <TablePaginatorPages\n page={page}\n pageCount={pageCount}\n pageLinks={pageLinks}\n onPageChange={onPageChange}\n pt={pt}\n pageLabel={labels.page}\n pagesLabel={labels.pages}\n />\n ) : (\n <span\n {...pt?.info}\n className={['cratis-table-paginator-info', pt?.info?.className]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='info'\n >\n {page + 1} / {Math.max(pageCount, 1)}\n </span>\n )}\n <Button\n variant='ghost'\n disabled={isLast}\n onClick={() => onPageChange(page + 1)}\n aria-label={labels.next}\n pt={pt?.next}\n >\n <span aria-hidden='true'>{icon('next', '›')}</span>\n </Button>\n <Button\n variant='ghost'\n disabled={isLast}\n onClick={() => onPageChange(pageCount - 1)}\n aria-label={labels.last}\n pt={pt?.last}\n >\n <span aria-hidden='true'>»</span>\n </Button>\n </div>\n );\n};\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;AAiBO,MAAM,4BAA4B,GAAG,CAAC,EACzC,IAAI,EACJ,SAAS,EACT,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,SAAS,GAAG,KAAK,EACjB,UAAU,EACV,SAAS,EACT,EAAE,GACgB,KAAI;AACtB,IAAA,MAAM,EAAE,QAAQ,EAAE,GAAG,yBAAyB,EAAE;AAChD,IAAA,MAAM,iBAAiB,GAAG,QAAQ,EAAE,SAAS;AAC7C,IAAA,MAAM,IAAI,GAAG,aAAa,EAAE;AAC5B,IAAA,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC;AACzB,IAAA,MAAM,MAAM,GAAG,IAAI,IAAI,SAAS,GAAG,CAAC;AACpC,IAAA,MAAM,OAAO,GAAG,MAAM,CAAiB,IAAI,CAAC;AAC5C,IAAA,MAAM,cAAc,GAAG,MAAM,CAAqB,IAAI,CAAC;IAIvD,eAAe,CAAC,MAAK;AACjB,QAAA,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO;AACtC,QAAA,IAAI,CAAC,OAAO,IAAI,QAAQ,CAAC,aAAa,KAAK,OAAO,IAAI,CAAE,OAA6B,CAAC,QAAQ;YAAE;AAChG,QAAA,MAAM,OAAO,GAAG,CAAC,IAAI,OAAO,CAAC,OAAO,EAAE,gBA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AAA,EAC9B,MAAM,CAAC,IAAI,EACvB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAA,QAAA,EAEZA,GAAA,CAAA,MAAA,EAAA,EAAA,aAAA,EAAkB,MAAM,EAAA,QAAA,EAAA,QAAA,EAAA,CAAS,EAAA,CAC5B,CAAA,EAAA,CACP;AAEd;;"}
|
|
@@ -2165,6 +2165,20 @@
|
|
|
2165
2165
|
background: Highlight;
|
|
2166
2166
|
color: HighlightText;
|
|
2167
2167
|
}
|
|
2168
|
+
.cratis-toggle-group__option:focus-visible,
|
|
2169
|
+
.cratis-tabs__tab:focus-visible,
|
|
2170
|
+
.cratis-tag-group__tag:focus-visible,
|
|
2171
|
+
.cratis-tag-group__remove:focus-visible,
|
|
2172
|
+
.cratis-tag-group__input:focus-visible,
|
|
2173
|
+
.cratis-breadcrumbs__link:focus-visible {
|
|
2174
|
+
outline: 2px solid Highlight;
|
|
2175
|
+
outline-offset: 2px;
|
|
2176
|
+
box-shadow: none;
|
|
2177
|
+
}
|
|
2178
|
+
.cratis-toggle-group__option[data-selected]:focus-visible,
|
|
2179
|
+
.cratis-tabs__tab[data-selected]:focus-visible {
|
|
2180
|
+
outline-color: CanvasText;
|
|
2181
|
+
}
|
|
2168
2182
|
}
|
|
2169
2183
|
|
|
2170
2184
|
/* ── ./Common/DatePickerInput.css ─────────────────────────────────────── */
|
|
@@ -2934,7 +2948,7 @@
|
|
|
2934
2948
|
}
|
|
2935
2949
|
.cratis-dialog__button--secondary {
|
|
2936
2950
|
background: transparent;
|
|
2937
|
-
color: var(--cratis-action-background);
|
|
2951
|
+
color: var(--cratis-action-foreground, var(--cratis-action-background));
|
|
2938
2952
|
}
|
|
2939
2953
|
.cratis-dialog__button--primary:hover:not(:disabled) {
|
|
2940
2954
|
border-color: var(--cratis-action-background-hover);
|
|
@@ -993,6 +993,20 @@
|
|
|
993
993
|
background: Highlight;
|
|
994
994
|
color: HighlightText;
|
|
995
995
|
}
|
|
996
|
+
.cratis-toggle-group__option:focus-visible,
|
|
997
|
+
.cratis-tabs__tab:focus-visible,
|
|
998
|
+
.cratis-tag-group__tag:focus-visible,
|
|
999
|
+
.cratis-tag-group__remove:focus-visible,
|
|
1000
|
+
.cratis-tag-group__input:focus-visible,
|
|
1001
|
+
.cratis-breadcrumbs__link:focus-visible {
|
|
1002
|
+
outline: 2px solid Highlight;
|
|
1003
|
+
outline-offset: 2px;
|
|
1004
|
+
box-shadow: none;
|
|
1005
|
+
}
|
|
1006
|
+
.cratis-toggle-group__option[data-selected]:focus-visible,
|
|
1007
|
+
.cratis-tabs__tab[data-selected]:focus-visible {
|
|
1008
|
+
outline-color: CanvasText;
|
|
1009
|
+
}
|
|
996
1010
|
}
|
|
997
1011
|
|
|
998
1012
|
/* ── ./Common/DatePickerInput.css ─────────────────────────────────────── */
|
|
@@ -1762,7 +1776,7 @@
|
|
|
1762
1776
|
}
|
|
1763
1777
|
.cratis-dialog__button--secondary {
|
|
1764
1778
|
background: transparent;
|
|
1765
|
-
color: var(--cratis-action-background);
|
|
1779
|
+
color: var(--cratis-action-foreground, var(--cratis-action-background));
|
|
1766
1780
|
}
|
|
1767
1781
|
.cratis-dialog__button--primary:hover:not(:disabled) {
|
|
1768
1782
|
border-color: var(--cratis-action-background-hover);
|
|
@@ -822,6 +822,20 @@
|
|
|
822
822
|
background: Highlight;
|
|
823
823
|
color: HighlightText;
|
|
824
824
|
}
|
|
825
|
+
.cratis-toggle-group__option:focus-visible,
|
|
826
|
+
.cratis-tabs__tab:focus-visible,
|
|
827
|
+
.cratis-tag-group__tag:focus-visible,
|
|
828
|
+
.cratis-tag-group__remove:focus-visible,
|
|
829
|
+
.cratis-tag-group__input:focus-visible,
|
|
830
|
+
.cratis-breadcrumbs__link:focus-visible {
|
|
831
|
+
outline: 2px solid Highlight;
|
|
832
|
+
outline-offset: 2px;
|
|
833
|
+
box-shadow: none;
|
|
834
|
+
}
|
|
835
|
+
.cratis-toggle-group__option[data-selected]:focus-visible,
|
|
836
|
+
.cratis-tabs__tab[data-selected]:focus-visible {
|
|
837
|
+
outline-color: CanvasText;
|
|
838
|
+
}
|
|
825
839
|
}
|
|
826
840
|
|
|
827
841
|
/* ── ./Common/DatePickerInput.css ─────────────────────────────────────── */
|
|
@@ -993,6 +993,20 @@
|
|
|
993
993
|
background: Highlight;
|
|
994
994
|
color: HighlightText;
|
|
995
995
|
}
|
|
996
|
+
.cratis-toggle-group__option:focus-visible,
|
|
997
|
+
.cratis-tabs__tab:focus-visible,
|
|
998
|
+
.cratis-tag-group__tag:focus-visible,
|
|
999
|
+
.cratis-tag-group__remove:focus-visible,
|
|
1000
|
+
.cratis-tag-group__input:focus-visible,
|
|
1001
|
+
.cratis-breadcrumbs__link:focus-visible {
|
|
1002
|
+
outline: 2px solid Highlight;
|
|
1003
|
+
outline-offset: 2px;
|
|
1004
|
+
box-shadow: none;
|
|
1005
|
+
}
|
|
1006
|
+
.cratis-toggle-group__option[data-selected]:focus-visible,
|
|
1007
|
+
.cratis-tabs__tab[data-selected]:focus-visible {
|
|
1008
|
+
outline-color: CanvasText;
|
|
1009
|
+
}
|
|
996
1010
|
}
|
|
997
1011
|
|
|
998
1012
|
/* ── ./Common/DatePickerInput.css ─────────────────────────────────────── */
|
|
@@ -497,6 +497,20 @@
|
|
|
497
497
|
background: Highlight;
|
|
498
498
|
color: HighlightText;
|
|
499
499
|
}
|
|
500
|
+
.cratis-toggle-group__option:focus-visible,
|
|
501
|
+
.cratis-tabs__tab:focus-visible,
|
|
502
|
+
.cratis-tag-group__tag:focus-visible,
|
|
503
|
+
.cratis-tag-group__remove:focus-visible,
|
|
504
|
+
.cratis-tag-group__input:focus-visible,
|
|
505
|
+
.cratis-breadcrumbs__link:focus-visible {
|
|
506
|
+
outline: 2px solid Highlight;
|
|
507
|
+
outline-offset: 2px;
|
|
508
|
+
box-shadow: none;
|
|
509
|
+
}
|
|
510
|
+
.cratis-toggle-group__option[data-selected]:focus-visible,
|
|
511
|
+
.cratis-tabs__tab[data-selected]:focus-visible {
|
|
512
|
+
outline-color: CanvasText;
|
|
513
|
+
}
|
|
500
514
|
}
|
|
501
515
|
|
|
502
516
|
/* ── ./Common/DatePickerInput.css ─────────────────────────────────────── */
|
|
@@ -698,6 +698,20 @@
|
|
|
698
698
|
background: Highlight;
|
|
699
699
|
color: HighlightText;
|
|
700
700
|
}
|
|
701
|
+
.cratis-toggle-group__option:focus-visible,
|
|
702
|
+
.cratis-tabs__tab:focus-visible,
|
|
703
|
+
.cratis-tag-group__tag:focus-visible,
|
|
704
|
+
.cratis-tag-group__remove:focus-visible,
|
|
705
|
+
.cratis-tag-group__input:focus-visible,
|
|
706
|
+
.cratis-breadcrumbs__link:focus-visible {
|
|
707
|
+
outline: 2px solid Highlight;
|
|
708
|
+
outline-offset: 2px;
|
|
709
|
+
box-shadow: none;
|
|
710
|
+
}
|
|
711
|
+
.cratis-toggle-group__option[data-selected]:focus-visible,
|
|
712
|
+
.cratis-tabs__tab[data-selected]:focus-visible {
|
|
713
|
+
outline-color: CanvasText;
|
|
714
|
+
}
|
|
701
715
|
}
|
|
702
716
|
|
|
703
717
|
/* ── ./Common/DatePickerInput.css ─────────────────────────────────────── */
|
|
@@ -1514,6 +1528,16 @@
|
|
|
1514
1528
|
.cratis-datatable__cell {
|
|
1515
1529
|
border-color: CanvasText;
|
|
1516
1530
|
}
|
|
1531
|
+
.cratis-datatable__sort {
|
|
1532
|
+
padding: 0.125rem 0.375rem;
|
|
1533
|
+
border: 1px solid ButtonText;
|
|
1534
|
+
border-radius: 0.2rem;
|
|
1535
|
+
}
|
|
1536
|
+
.cratis-datatable__sort:focus-visible {
|
|
1537
|
+
outline: 2px solid Highlight;
|
|
1538
|
+
outline-offset: 2px;
|
|
1539
|
+
box-shadow: none;
|
|
1540
|
+
}
|
|
1517
1541
|
.cratis-datatable__row[data-selected='true'] {
|
|
1518
1542
|
outline: 2px solid Highlight;
|
|
1519
1543
|
}
|
|
@@ -497,6 +497,20 @@
|
|
|
497
497
|
background: Highlight;
|
|
498
498
|
color: HighlightText;
|
|
499
499
|
}
|
|
500
|
+
.cratis-toggle-group__option:focus-visible,
|
|
501
|
+
.cratis-tabs__tab:focus-visible,
|
|
502
|
+
.cratis-tag-group__tag:focus-visible,
|
|
503
|
+
.cratis-tag-group__remove:focus-visible,
|
|
504
|
+
.cratis-tag-group__input:focus-visible,
|
|
505
|
+
.cratis-breadcrumbs__link:focus-visible {
|
|
506
|
+
outline: 2px solid Highlight;
|
|
507
|
+
outline-offset: 2px;
|
|
508
|
+
box-shadow: none;
|
|
509
|
+
}
|
|
510
|
+
.cratis-toggle-group__option[data-selected]:focus-visible,
|
|
511
|
+
.cratis-tabs__tab[data-selected]:focus-visible {
|
|
512
|
+
outline-color: CanvasText;
|
|
513
|
+
}
|
|
500
514
|
}
|
|
501
515
|
|
|
502
516
|
/* ── ./Common/DatePickerInput.css ─────────────────────────────────────── */
|
|
@@ -1313,6 +1327,16 @@
|
|
|
1313
1327
|
.cratis-datatable__cell {
|
|
1314
1328
|
border-color: CanvasText;
|
|
1315
1329
|
}
|
|
1330
|
+
.cratis-datatable__sort {
|
|
1331
|
+
padding: 0.125rem 0.375rem;
|
|
1332
|
+
border: 1px solid ButtonText;
|
|
1333
|
+
border-radius: 0.2rem;
|
|
1334
|
+
}
|
|
1335
|
+
.cratis-datatable__sort:focus-visible {
|
|
1336
|
+
outline: 2px solid Highlight;
|
|
1337
|
+
outline-offset: 2px;
|
|
1338
|
+
box-shadow: none;
|
|
1339
|
+
}
|
|
1316
1340
|
.cratis-datatable__row[data-selected='true'] {
|
|
1317
1341
|
outline: 2px solid Highlight;
|
|
1318
1342
|
}
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
}
|
|
177
177
|
.cratis-dialog__button--secondary {
|
|
178
178
|
background: transparent;
|
|
179
|
-
color: var(--cratis-action-background);
|
|
179
|
+
color: var(--cratis-action-foreground, var(--cratis-action-background));
|
|
180
180
|
}
|
|
181
181
|
.cratis-dialog__button--primary:hover:not(:disabled) {
|
|
182
182
|
border-color: var(--cratis-action-background-hover);
|
|
@@ -497,6 +497,20 @@
|
|
|
497
497
|
background: Highlight;
|
|
498
498
|
color: HighlightText;
|
|
499
499
|
}
|
|
500
|
+
.cratis-toggle-group__option:focus-visible,
|
|
501
|
+
.cratis-tabs__tab:focus-visible,
|
|
502
|
+
.cratis-tag-group__tag:focus-visible,
|
|
503
|
+
.cratis-tag-group__remove:focus-visible,
|
|
504
|
+
.cratis-tag-group__input:focus-visible,
|
|
505
|
+
.cratis-breadcrumbs__link:focus-visible {
|
|
506
|
+
outline: 2px solid Highlight;
|
|
507
|
+
outline-offset: 2px;
|
|
508
|
+
box-shadow: none;
|
|
509
|
+
}
|
|
510
|
+
.cratis-toggle-group__option[data-selected]:focus-visible,
|
|
511
|
+
.cratis-tabs__tab[data-selected]:focus-visible {
|
|
512
|
+
outline-color: CanvasText;
|
|
513
|
+
}
|
|
500
514
|
}
|
|
501
515
|
|
|
502
516
|
/* ── ./Common/DatePickerInput.css ─────────────────────────────────────── */
|
|
@@ -497,6 +497,20 @@
|
|
|
497
497
|
background: Highlight;
|
|
498
498
|
color: HighlightText;
|
|
499
499
|
}
|
|
500
|
+
.cratis-toggle-group__option:focus-visible,
|
|
501
|
+
.cratis-tabs__tab:focus-visible,
|
|
502
|
+
.cratis-tag-group__tag:focus-visible,
|
|
503
|
+
.cratis-tag-group__remove:focus-visible,
|
|
504
|
+
.cratis-tag-group__input:focus-visible,
|
|
505
|
+
.cratis-breadcrumbs__link:focus-visible {
|
|
506
|
+
outline: 2px solid Highlight;
|
|
507
|
+
outline-offset: 2px;
|
|
508
|
+
box-shadow: none;
|
|
509
|
+
}
|
|
510
|
+
.cratis-toggle-group__option[data-selected]:focus-visible,
|
|
511
|
+
.cratis-tabs__tab[data-selected]:focus-visible {
|
|
512
|
+
outline-color: CanvasText;
|
|
513
|
+
}
|
|
500
514
|
}
|
|
501
515
|
|
|
502
516
|
/* ── ./Common/DatePickerInput.css ─────────────────────────────────────── */
|
|
@@ -497,6 +497,20 @@
|
|
|
497
497
|
background: Highlight;
|
|
498
498
|
color: HighlightText;
|
|
499
499
|
}
|
|
500
|
+
.cratis-toggle-group__option:focus-visible,
|
|
501
|
+
.cratis-tabs__tab:focus-visible,
|
|
502
|
+
.cratis-tag-group__tag:focus-visible,
|
|
503
|
+
.cratis-tag-group__remove:focus-visible,
|
|
504
|
+
.cratis-tag-group__input:focus-visible,
|
|
505
|
+
.cratis-breadcrumbs__link:focus-visible {
|
|
506
|
+
outline: 2px solid Highlight;
|
|
507
|
+
outline-offset: 2px;
|
|
508
|
+
box-shadow: none;
|
|
509
|
+
}
|
|
510
|
+
.cratis-toggle-group__option[data-selected]:focus-visible,
|
|
511
|
+
.cratis-tabs__tab[data-selected]:focus-visible {
|
|
512
|
+
outline-color: CanvasText;
|
|
513
|
+
}
|
|
500
514
|
}
|
|
501
515
|
|
|
502
516
|
/* ── ./Common/DatePickerInput.css ─────────────────────────────────────── */
|
|
@@ -497,6 +497,20 @@
|
|
|
497
497
|
background: Highlight;
|
|
498
498
|
color: HighlightText;
|
|
499
499
|
}
|
|
500
|
+
.cratis-toggle-group__option:focus-visible,
|
|
501
|
+
.cratis-tabs__tab:focus-visible,
|
|
502
|
+
.cratis-tag-group__tag:focus-visible,
|
|
503
|
+
.cratis-tag-group__remove:focus-visible,
|
|
504
|
+
.cratis-tag-group__input:focus-visible,
|
|
505
|
+
.cratis-breadcrumbs__link:focus-visible {
|
|
506
|
+
outline: 2px solid Highlight;
|
|
507
|
+
outline-offset: 2px;
|
|
508
|
+
box-shadow: none;
|
|
509
|
+
}
|
|
510
|
+
.cratis-toggle-group__option[data-selected]:focus-visible,
|
|
511
|
+
.cratis-tabs__tab[data-selected]:focus-visible {
|
|
512
|
+
outline-color: CanvasText;
|
|
513
|
+
}
|
|
500
514
|
}
|
|
501
515
|
|
|
502
516
|
/* ── ./Common/DatePickerInput.css ─────────────────────────────────────── */
|
|
@@ -497,6 +497,20 @@
|
|
|
497
497
|
background: Highlight;
|
|
498
498
|
color: HighlightText;
|
|
499
499
|
}
|
|
500
|
+
.cratis-toggle-group__option:focus-visible,
|
|
501
|
+
.cratis-tabs__tab:focus-visible,
|
|
502
|
+
.cratis-tag-group__tag:focus-visible,
|
|
503
|
+
.cratis-tag-group__remove:focus-visible,
|
|
504
|
+
.cratis-tag-group__input:focus-visible,
|
|
505
|
+
.cratis-breadcrumbs__link:focus-visible {
|
|
506
|
+
outline: 2px solid Highlight;
|
|
507
|
+
outline-offset: 2px;
|
|
508
|
+
box-shadow: none;
|
|
509
|
+
}
|
|
510
|
+
.cratis-toggle-group__option[data-selected]:focus-visible,
|
|
511
|
+
.cratis-tabs__tab[data-selected]:focus-visible {
|
|
512
|
+
outline-color: CanvasText;
|
|
513
|
+
}
|
|
500
514
|
}
|
|
501
515
|
|
|
502
516
|
/* ── ./Common/DatePickerInput.css ─────────────────────────────────────── */
|
|
@@ -1313,6 +1327,16 @@
|
|
|
1313
1327
|
.cratis-datatable__cell {
|
|
1314
1328
|
border-color: CanvasText;
|
|
1315
1329
|
}
|
|
1330
|
+
.cratis-datatable__sort {
|
|
1331
|
+
padding: 0.125rem 0.375rem;
|
|
1332
|
+
border: 1px solid ButtonText;
|
|
1333
|
+
border-radius: 0.2rem;
|
|
1334
|
+
}
|
|
1335
|
+
.cratis-datatable__sort:focus-visible {
|
|
1336
|
+
outline: 2px solid Highlight;
|
|
1337
|
+
outline-offset: 2px;
|
|
1338
|
+
box-shadow: none;
|
|
1339
|
+
}
|
|
1316
1340
|
.cratis-datatable__row[data-selected='true'] {
|
|
1317
1341
|
outline: 2px solid Highlight;
|
|
1318
1342
|
}
|
|
@@ -497,6 +497,20 @@
|
|
|
497
497
|
background: Highlight;
|
|
498
498
|
color: HighlightText;
|
|
499
499
|
}
|
|
500
|
+
.cratis-toggle-group__option:focus-visible,
|
|
501
|
+
.cratis-tabs__tab:focus-visible,
|
|
502
|
+
.cratis-tag-group__tag:focus-visible,
|
|
503
|
+
.cratis-tag-group__remove:focus-visible,
|
|
504
|
+
.cratis-tag-group__input:focus-visible,
|
|
505
|
+
.cratis-breadcrumbs__link:focus-visible {
|
|
506
|
+
outline: 2px solid Highlight;
|
|
507
|
+
outline-offset: 2px;
|
|
508
|
+
box-shadow: none;
|
|
509
|
+
}
|
|
510
|
+
.cratis-toggle-group__option[data-selected]:focus-visible,
|
|
511
|
+
.cratis-tabs__tab[data-selected]:focus-visible {
|
|
512
|
+
outline-color: CanvasText;
|
|
513
|
+
}
|
|
500
514
|
}
|
|
501
515
|
|
|
502
516
|
/* ── ./Common/DatePickerInput.css ─────────────────────────────────────── */
|
package/dist/esm/styles.css
CHANGED
|
@@ -3273,6 +3273,20 @@
|
|
|
3273
3273
|
background: Highlight;
|
|
3274
3274
|
color: HighlightText;
|
|
3275
3275
|
}
|
|
3276
|
+
.cratis-toggle-group__option:focus-visible,
|
|
3277
|
+
.cratis-tabs__tab:focus-visible,
|
|
3278
|
+
.cratis-tag-group__tag:focus-visible,
|
|
3279
|
+
.cratis-tag-group__remove:focus-visible,
|
|
3280
|
+
.cratis-tag-group__input:focus-visible,
|
|
3281
|
+
.cratis-breadcrumbs__link:focus-visible {
|
|
3282
|
+
outline: 2px solid Highlight;
|
|
3283
|
+
outline-offset: 2px;
|
|
3284
|
+
box-shadow: none;
|
|
3285
|
+
}
|
|
3286
|
+
.cratis-toggle-group__option[data-selected]:focus-visible,
|
|
3287
|
+
.cratis-tabs__tab[data-selected]:focus-visible {
|
|
3288
|
+
outline-color: CanvasText;
|
|
3289
|
+
}
|
|
3276
3290
|
}
|
|
3277
3291
|
|
|
3278
3292
|
/* ── ./Common/DatePickerInput.css ─────────────────────────────────────── */
|
|
@@ -4338,6 +4352,16 @@
|
|
|
4338
4352
|
.cratis-datatable__cell {
|
|
4339
4353
|
border-color: CanvasText;
|
|
4340
4354
|
}
|
|
4355
|
+
.cratis-datatable__sort {
|
|
4356
|
+
padding: 0.125rem 0.375rem;
|
|
4357
|
+
border: 1px solid ButtonText;
|
|
4358
|
+
border-radius: 0.2rem;
|
|
4359
|
+
}
|
|
4360
|
+
.cratis-datatable__sort:focus-visible {
|
|
4361
|
+
outline: 2px solid Highlight;
|
|
4362
|
+
outline-offset: 2px;
|
|
4363
|
+
box-shadow: none;
|
|
4364
|
+
}
|
|
4341
4365
|
.cratis-datatable__row[data-selected='true'] {
|
|
4342
4366
|
outline: 2px solid Highlight;
|
|
4343
4367
|
}
|
|
@@ -4590,7 +4614,7 @@
|
|
|
4590
4614
|
}
|
|
4591
4615
|
.cratis-dialog__button--secondary {
|
|
4592
4616
|
background: transparent;
|
|
4593
|
-
color: var(--cratis-action-background);
|
|
4617
|
+
color: var(--cratis-action-foreground, var(--cratis-action-background));
|
|
4594
4618
|
}
|
|
4595
4619
|
.cratis-dialog__button--primary:hover:not(:disabled) {
|
|
4596
4620
|
border-color: var(--cratis-action-background-hover);
|
|
@@ -497,6 +497,20 @@
|
|
|
497
497
|
background: Highlight;
|
|
498
498
|
color: HighlightText;
|
|
499
499
|
}
|
|
500
|
+
.cratis-toggle-group__option:focus-visible,
|
|
501
|
+
.cratis-tabs__tab:focus-visible,
|
|
502
|
+
.cratis-tag-group__tag:focus-visible,
|
|
503
|
+
.cratis-tag-group__remove:focus-visible,
|
|
504
|
+
.cratis-tag-group__input:focus-visible,
|
|
505
|
+
.cratis-breadcrumbs__link:focus-visible {
|
|
506
|
+
outline: 2px solid Highlight;
|
|
507
|
+
outline-offset: 2px;
|
|
508
|
+
box-shadow: none;
|
|
509
|
+
}
|
|
510
|
+
.cratis-toggle-group__option[data-selected]:focus-visible,
|
|
511
|
+
.cratis-tabs__tab[data-selected]:focus-visible {
|
|
512
|
+
outline-color: CanvasText;
|
|
513
|
+
}
|
|
500
514
|
}
|
|
501
515
|
|
|
502
516
|
/* ── ./Common/DatePickerInput.css ─────────────────────────────────────── */
|
|
@@ -1313,6 +1327,16 @@
|
|
|
1313
1327
|
.cratis-datatable__cell {
|
|
1314
1328
|
border-color: CanvasText;
|
|
1315
1329
|
}
|
|
1330
|
+
.cratis-datatable__sort {
|
|
1331
|
+
padding: 0.125rem 0.375rem;
|
|
1332
|
+
border: 1px solid ButtonText;
|
|
1333
|
+
border-radius: 0.2rem;
|
|
1334
|
+
}
|
|
1335
|
+
.cratis-datatable__sort:focus-visible {
|
|
1336
|
+
outline: 2px solid Highlight;
|
|
1337
|
+
outline-offset: 2px;
|
|
1338
|
+
box-shadow: none;
|
|
1339
|
+
}
|
|
1316
1340
|
.cratis-datatable__row[data-selected='true'] {
|
|
1317
1341
|
outline: 2px solid Highlight;
|
|
1318
1342
|
}
|
|
@@ -1565,7 +1589,7 @@
|
|
|
1565
1589
|
}
|
|
1566
1590
|
.cratis-dialog__button--secondary {
|
|
1567
1591
|
background: transparent;
|
|
1568
|
-
color: var(--cratis-action-background);
|
|
1592
|
+
color: var(--cratis-action-foreground, var(--cratis-action-background));
|
|
1569
1593
|
}
|
|
1570
1594
|
.cratis-dialog__button--primary:hover:not(:disabled) {
|
|
1571
1595
|
border-color: var(--cratis-action-background-hover);
|
|
@@ -48,6 +48,8 @@
|
|
|
48
48
|
--cratis-primary-300: var(--ds-color-accent-border-subtle);
|
|
49
49
|
--cratis-primary-400: var(--ds-color-accent-border-default);
|
|
50
50
|
--cratis-primary-600: var(--ds-color-accent-base-hover);
|
|
51
|
+
/* Text-on-surface form of the action colour (secondary dialog buttons): the base colour is 4.4:1 on the dark surface. */
|
|
52
|
+
--cratis-action-foreground: var(--ds-color-accent-text-default);
|
|
51
53
|
--cratis-action-background-hover: var(--ds-color-accent-base-hover);
|
|
52
54
|
--cratis-action-background-active: var(--ds-color-accent-base-active);
|
|
53
55
|
--cratis-highlight-bg: var(--ds-color-accent-surface-tinted);
|
|
@@ -70,6 +72,11 @@
|
|
|
70
72
|
--cratis-danger-background: var(--ds-color-danger-surface-tinted);
|
|
71
73
|
--cratis-danger-text: var(--ds-color-danger-text-default);
|
|
72
74
|
|
|
75
|
+
/* Arc draws validation and exception text in var(--color-error) on var(--color-error-bg); theme.css is
|
|
76
|
+
not imported with this bridge, so without these the #c00 on #fee fallbacks fail contrast on dark. */
|
|
77
|
+
--color-error: var(--ds-color-danger-text-default);
|
|
78
|
+
--color-error-bg: var(--ds-color-danger-surface-tinted);
|
|
79
|
+
|
|
73
80
|
--cratis-border-radius: var(--ds-border-radius-md);
|
|
74
81
|
--cratis-corner-sm: var(--ds-border-radius-sm);
|
|
75
82
|
--cratis-corner-lg: var(--ds-border-radius-lg);
|
package/package.json
CHANGED