@cocoar/vue-ui 3.4.0-beta.25 → 3.4.0-beta.29
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/dist/components/avatar/CoarAvatar.vue.d.ts +1 -1
- package/dist/components/avatar/CoarAvatar.vue.d.ts.map +1 -1
- package/dist/components/badge/CoarBadge.vue.d.ts +1 -1
- package/dist/components/badge/CoarBadge.vue.d.ts.map +1 -1
- package/dist/components/breadcrumb/CoarBreadcrumbItem.vue.d.ts +2 -2
- package/dist/components/breadcrumb/CoarBreadcrumbItem.vue.d.ts.map +1 -1
- package/dist/components/button/CoarButton.vue.d.ts +2 -2
- package/dist/components/button/CoarButton.vue.d.ts.map +1 -1
- package/dist/components/checkbox/CoarCheckbox.vue.d.ts +3 -3
- package/dist/components/checkbox/CoarCheckbox.vue.d.ts.map +1 -1
- package/dist/components/checkbox-group/CoarCheckboxGroup.vue.d.ts +1 -1
- package/dist/components/checkbox-group/CoarCheckboxGroup.vue.d.ts.map +1 -1
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts +5 -5
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/plain-date-time-or-date-picker/CoarPlainDateTimeOrDatePicker.vue.d.ts +1 -1
- package/dist/components/date-time/plain-date-time-or-date-picker/CoarPlainDateTimeOrDatePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts +5 -5
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/scrollable-calendar/CoarScrollableCalendar.vue.d.ts.map +1 -1
- package/dist/components/date-time/time-picker/CoarTimePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/zoned-date-time-or-date-picker/CoarZonedDateTimeOrDatePicker.vue.d.ts +1 -1
- package/dist/components/date-time/zoned-date-time-or-date-picker/CoarZonedDateTimeOrDatePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts +5 -5
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePickerPanel.vue.d.ts.map +1 -1
- package/dist/components/dialog/CoarDialogShell.vue.d.ts.map +1 -1
- package/dist/components/form-field/CoarFormField.vue.d.ts +1 -1
- package/dist/components/form-field/CoarFormField.vue.d.ts.map +1 -1
- package/dist/components/icon/CoarIcon.vue.d.ts +3 -3
- package/dist/components/icon/CoarIcon.vue.d.ts.map +1 -1
- package/dist/components/input-frame/CoarInputFrame.vue.d.ts +1 -1
- package/dist/components/input-frame/CoarInputFrame.vue.d.ts.map +1 -1
- package/dist/components/input-frame/CoarInputFrameButton.vue.d.ts +1 -1
- package/dist/components/input-frame/CoarInputFrameButton.vue.d.ts.map +1 -1
- package/dist/components/link/CoarLink.vue.d.ts +1 -1
- package/dist/components/link/CoarLink.vue.d.ts.map +1 -1
- package/dist/components/listbox/CoarListbox.vue.d.ts.map +1 -1
- package/dist/components/menu/CoarMenuItem.vue.d.ts +3 -3
- package/dist/components/menu/CoarMenuItem.vue.d.ts.map +1 -1
- package/dist/components/notice/CoarNotice.vue.d.ts +1 -1
- package/dist/components/notice/CoarNotice.vue.d.ts.map +1 -1
- package/dist/components/number-input/CoarNumberInput.vue.d.ts +2 -2
- package/dist/components/number-input/CoarNumberInput.vue.d.ts.map +1 -1
- package/dist/components/otp-input/CoarOtpInput.vue.d.ts +3 -3
- package/dist/components/otp-input/CoarOtpInput.vue.d.ts.map +1 -1
- package/dist/components/overlay/CoarOverlayOutlet.vue.d.ts.map +1 -1
- package/dist/components/overlay/compact-context.d.ts +7 -5
- package/dist/components/overlay/compact-context.d.ts.map +1 -1
- package/dist/components/overlay/useCompactPresentationContext.d.ts +18 -2
- package/dist/components/overlay/useCompactPresentationContext.d.ts.map +1 -1
- package/dist/components/panel-layout/CoarSplitPane.vue.d.ts +1 -1
- package/dist/components/panel-layout/CoarSplitPane.vue.d.ts.map +1 -1
- package/dist/components/password-input/CoarPasswordInput.vue.d.ts +2 -2
- package/dist/components/password-input/CoarPasswordInput.vue.d.ts.map +1 -1
- package/dist/components/popconfirm/CoarPopconfirm.vue.d.ts +1 -1
- package/dist/components/popover/CoarPopover.vue.d.ts +1 -1
- package/dist/components/progress-bar/CoarProgressBar.vue.d.ts +1 -1
- package/dist/components/progress-bar/CoarProgressBar.vue.d.ts.map +1 -1
- package/dist/components/radio-group/CoarRadioGroup.vue.d.ts +2 -2
- package/dist/components/radio-group/CoarRadioGroup.vue.d.ts.map +1 -1
- package/dist/components/select/CoarMultiSelect.vue.d.ts.map +1 -1
- package/dist/components/select/CoarMultiSelectDropdownPanel.vue.d.ts.map +1 -1
- package/dist/components/select/CoarSelectDropdownPanel.vue.d.ts.map +1 -1
- package/dist/components/select/CoarTagSelectDropdownPanel.vue.d.ts.map +1 -1
- package/dist/components/sidebar/CoarSidebar.vue.d.ts +1 -1
- package/dist/components/sidebar/CoarSidebar.vue.d.ts.map +1 -1
- package/dist/components/sidebar/CoarSidebarGroup.vue.d.ts +2 -2
- package/dist/components/sidebar/CoarSidebarGroup.vue.d.ts.map +1 -1
- package/dist/components/sidebar/CoarSidebarItem.vue.d.ts +2 -2
- package/dist/components/sidebar/CoarSidebarItem.vue.d.ts.map +1 -1
- package/dist/components/spinner/CoarSpinner.vue.d.ts +1 -1
- package/dist/components/spinner/CoarSpinner.vue.d.ts.map +1 -1
- package/dist/components/switch/CoarSwitch.vue.d.ts +3 -3
- package/dist/components/switch/CoarSwitch.vue.d.ts.map +1 -1
- package/dist/components/table/CoarTable.vue.d.ts +1 -1
- package/dist/components/table/CoarTable.vue.d.ts.map +1 -1
- package/dist/components/text-input/CoarTextInput.vue.d.ts +2 -2
- package/dist/components/text-input/CoarTextInput.vue.d.ts.map +1 -1
- package/dist/components/theme-editor/CoarPaletteEditor.vue.d.ts +5 -1
- package/dist/components/theme-editor/CoarPaletteEditor.vue.d.ts.map +1 -1
- package/dist/components/theme-editor/color-preview.d.ts +22 -0
- package/dist/components/theme-editor/color-preview.d.ts.map +1 -0
- package/dist/components/theme-editor/font-preview.d.ts +46 -0
- package/dist/components/theme-editor/font-preview.d.ts.map +1 -0
- package/dist/components/theme-editor/scheme-values.d.ts +12 -0
- package/dist/components/theme-editor/scheme-values.d.ts.map +1 -0
- package/dist/components/theme-editor/theme-editor-state.d.ts +198 -182
- package/dist/components/theme-editor/theme-editor-state.d.ts.map +1 -1
- package/dist/components/theme-scope/CoarThemeScope.vue.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +3301 -2155
- package/dist/onest-fonts.d.ts +1 -0
- package/dist/onest-fonts.d.ts.map +1 -0
- package/dist/onest-fonts.js +4 -0
- package/dist/theme/color-contrast.d.ts +10 -0
- package/dist/theme/color-contrast.d.ts.map +1 -0
- package/dist/theme/compact-packages/calendar.d.ts +8 -0
- package/dist/theme/compact-packages/calendar.d.ts.map +1 -0
- package/dist/theme/compact-packages/data-grid.d.ts +8 -0
- package/dist/theme/compact-packages/data-grid.d.ts.map +1 -0
- package/dist/theme/compact-packages/document-viewer.d.ts +8 -0
- package/dist/theme/compact-packages/document-viewer.d.ts.map +1 -0
- package/dist/theme/compact-packages/map.d.ts +11 -0
- package/dist/theme/compact-packages/map.d.ts.map +1 -0
- package/dist/theme/compact-packages/markdown-editor.d.ts +8 -0
- package/dist/theme/compact-packages/markdown-editor.d.ts.map +1 -0
- package/dist/theme/compact-packages/markdown.d.ts +14 -0
- package/dist/theme/compact-packages/markdown.d.ts.map +1 -0
- package/dist/theme/compact-packages/mermaid.d.ts +8 -0
- package/dist/theme/compact-packages/mermaid.d.ts.map +1 -0
- package/dist/theme/compact-packages/page-builder.d.ts +8 -0
- package/dist/theme/compact-packages/page-builder.d.ts.map +1 -0
- package/dist/theme/compact-packages/script-editor.d.ts +8 -0
- package/dist/theme/compact-packages/script-editor.d.ts.map +1 -0
- package/dist/theme/compact-theme.d.ts +11 -0
- package/dist/theme/compact-theme.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/calendar.d.ts +3 -0
- package/dist/theme/enterprise-packages/calendar.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/document-viewer.d.ts +3 -0
- package/dist/theme/enterprise-packages/document-viewer.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/map.d.ts +3 -0
- package/dist/theme/enterprise-packages/map.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/markdown.d.ts +7 -0
- package/dist/theme/enterprise-packages/markdown.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/mermaid.d.ts +3 -0
- package/dist/theme/enterprise-packages/mermaid.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/page-builder.d.ts +3 -0
- package/dist/theme/enterprise-packages/page-builder.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/script-editor.d.ts +7 -0
- package/dist/theme/enterprise-packages/script-editor.d.ts.map +1 -0
- package/dist/theme/enterprise-theme.d.ts +8 -0
- package/dist/theme/enterprise-theme.d.ts.map +1 -0
- package/dist/theme/palette-inputs.d.ts +34 -0
- package/dist/theme/palette-inputs.d.ts.map +1 -0
- package/dist/theme/role-derived-tokens.d.ts +3 -0
- package/dist/theme/role-derived-tokens.d.ts.map +1 -0
- package/dist/theme/role-input-defaults.d.ts +5 -0
- package/dist/theme/role-input-defaults.d.ts.map +1 -0
- package/dist/theme/role-theme-contract.d.ts +8 -0
- package/dist/theme/role-theme-contract.d.ts.map +1 -0
- package/dist/theme/role-theme.d.ts +40 -0
- package/dist/theme/role-theme.d.ts.map +1 -0
- package/package.json +10 -4
- package/skills/cocoar-vue-ui/SKILL.md +2 -1
- package/skills/cocoar-vue-ui/references/foundations/colors.md +32 -3
- package/skills/cocoar-vue-ui/references/foundations/compact-presentation.md +47 -10
- package/skills/cocoar-vue-ui/references/foundations/theming.md +95 -14
- package/skills/cocoar-vue-ui/references/guide/migration-color-roles.md +28 -0
- package/skills/cocoar-vue-ui/references/guide/theming.md +22 -0
- package/styles/tokens/all.css +4 -1
- package/styles/tokens/code-block.css +2 -2
- package/styles/tokens/colors-primitives-dark.css +50 -50
- package/styles/tokens/colors-primitives-light.css +50 -50
- package/styles/tokens/colors-usage.css +126 -111
- package/styles/tokens/compact.css +4239 -254
- package/styles/tokens/components-shared.css +4 -4
- package/styles/tokens/derived.css +525 -0
- package/styles/tokens/menu.css +21 -21
- package/styles/tokens/new-components.css +35 -35
- package/styles/tokens/select-overlay.css +2 -2
- package/styles/tokens/sidebar.css +12 -12
- package/styles/tokens/theme-none.css +99 -93
- package/styles/tokens/typography.css +19 -19
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=onest-fonts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onest-fonts.d.ts","sourceRoot":"","sources":["../src/onest-fonts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,2BAA2B,CAAC;AACnC,OAAO,2BAA2B,CAAC;AACnC,OAAO,2BAA2B,CAAC;AACnC,OAAO,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** sRGB channels in the range 0–255. */
|
|
2
|
+
export type CoarRgb = [number, number, number];
|
|
3
|
+
/** Signed APCA Lc: positive for dark text on a lighter background. */
|
|
4
|
+
export declare function apcaContrast(text: CoarRgb, background: CoarRgb): number;
|
|
5
|
+
/**
|
|
6
|
+
* The raw APCA luminance where pure white and black have equal |Lc|.
|
|
7
|
+
* At this crossing neither the background soft clamp nor the low clip applies.
|
|
8
|
+
*/
|
|
9
|
+
export declare const APCA_TEXT_ON_THRESHOLD: number;
|
|
10
|
+
//# sourceMappingURL=color-contrast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-contrast.d.ts","sourceRoot":"","sources":["../../src/theme/color-contrast.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,MAAM,MAAM,OAAO,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAW/C,sEAAsE;AACtE,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAAG,MAAM,CASvE;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAU/B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact values of @cocoar/vue-calendar: constants only. What the package derives from
|
|
3
|
+
* shared roles stays in its own stylesheet.
|
|
4
|
+
*/
|
|
5
|
+
export declare const COMPACT_CALENDAR_TOKENS: Record<string, string>;
|
|
6
|
+
/** Where the theme scope meets `.coar-mobile`. */
|
|
7
|
+
export declare const COMPACT_CALENDAR_MOBILE_TOKENS: Record<string, string>;
|
|
8
|
+
//# sourceMappingURL=calendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/theme/compact-packages/calendar.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA2B1D,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact values of @cocoar/vue-data-grid: constants only. What the package derives from
|
|
3
|
+
* shared roles stays in its own stylesheet.
|
|
4
|
+
*/
|
|
5
|
+
export declare const COMPACT_DATA_GRID_TOKENS: Record<string, string>;
|
|
6
|
+
/** Where the theme scope meets `.coar-mobile`. Tree toggles get a full 44px target; the indentation step stays 20px. */
|
|
7
|
+
export declare const COMPACT_DATA_GRID_MOBILE_TOKENS: Record<string, string>;
|
|
8
|
+
//# sourceMappingURL=data-grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid.d.ts","sourceRoot":"","sources":["../../../src/theme/compact-packages/data-grid.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAE3D,CAAC;AAEF,wHAAwH;AACxH,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAElE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact values of @cocoar/vue-document-viewer: constants only. What the package derives from
|
|
3
|
+
* shared roles stays in its own stylesheet.
|
|
4
|
+
*/
|
|
5
|
+
export declare const COMPACT_DOCUMENT_VIEWER_TOKENS: Record<string, string>;
|
|
6
|
+
/** Where the theme scope meets `.coar-mobile`. */
|
|
7
|
+
export declare const COMPACT_DOCUMENT_VIEWER_MOBILE_TOKENS: Record<string, string>;
|
|
8
|
+
//# sourceMappingURL=document-viewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-viewer.d.ts","sourceRoot":"","sources":["../../../src/theme/compact-packages/document-viewer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAOjE,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,qCAAqC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAUxE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact values of @cocoar/vue-map: constants only. What the package derives from
|
|
3
|
+
* shared roles stays in its own stylesheet.
|
|
4
|
+
*/
|
|
5
|
+
export declare const COMPACT_MAP_TOKENS: Record<string, string>;
|
|
6
|
+
/**
|
|
7
|
+
* Where the theme scope meets `.coar-mobile`: the touch target of the zoom buttons
|
|
8
|
+
* and of the point list's drag handle.
|
|
9
|
+
*/
|
|
10
|
+
export declare const COMPACT_MAP_MOBILE_TOKENS: Record<string, string>;
|
|
11
|
+
//# sourceMappingURL=map.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../src/theme/compact-packages/map.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAE5D,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact values of @cocoar/vue-markdown-editor: constants only. What the package derives from
|
|
3
|
+
* shared roles stays in its own stylesheet.
|
|
4
|
+
*/
|
|
5
|
+
export declare const COMPACT_MARKDOWN_EDITOR_TOKENS: Record<string, string>;
|
|
6
|
+
/** Where the theme scope meets `.coar-mobile`. */
|
|
7
|
+
export declare const COMPACT_MARKDOWN_EDITOR_MOBILE_TOKENS: Record<string, string>;
|
|
8
|
+
//# sourceMappingURL=markdown-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-editor.d.ts","sourceRoot":"","sources":["../../../src/theme/compact-packages/markdown-editor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAcjE,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,qCAAqC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAcxE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact values of @cocoar/vue-markdown and @cocoar/vue-markdown-form: constants only. What the package derives from
|
|
3
|
+
* shared roles stays in its own stylesheet.
|
|
4
|
+
*
|
|
5
|
+
* Markdown is document content: reading text, headings and code text have their own
|
|
6
|
+
* roles and do not shrink with the UI text role.
|
|
7
|
+
*/
|
|
8
|
+
export declare const COMPACT_MARKDOWN_TOKENS: Record<string, string>;
|
|
9
|
+
/**
|
|
10
|
+
* Where the theme scope meets `.coar-mobile`: same hierarchy, one step larger reading
|
|
11
|
+
* and table text, roomier cells for touch reading.
|
|
12
|
+
*/
|
|
13
|
+
export declare const COMPACT_MARKDOWN_MOBILE_TOKENS: Record<string, string>;
|
|
14
|
+
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../src/theme/compact-packages/markdown.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAqD1D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAKjE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact values of @cocoar/vue-mermaid: constants only. What the package derives from
|
|
3
|
+
* shared roles stays in its own stylesheet.
|
|
4
|
+
*/
|
|
5
|
+
export declare const COMPACT_MERMAID_TOKENS: Record<string, string>;
|
|
6
|
+
/** Where the theme scope meets `.coar-mobile`. */
|
|
7
|
+
export declare const COMPACT_MERMAID_MOBILE_TOKENS: Record<string, string>;
|
|
8
|
+
//# sourceMappingURL=mermaid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mermaid.d.ts","sourceRoot":"","sources":["../../../src/theme/compact-packages/mermaid.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIzD,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAGhE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact values of @cocoar/vue-page-builder: constants only. What the package derives from
|
|
3
|
+
* shared roles stays in its own stylesheet.
|
|
4
|
+
*/
|
|
5
|
+
export declare const COMPACT_PAGE_BUILDER_TOKENS: Record<string, string>;
|
|
6
|
+
/** Where the theme scope meets `.coar-mobile`. */
|
|
7
|
+
export declare const COMPACT_PAGE_BUILDER_MOBILE_TOKENS: Record<string, string>;
|
|
8
|
+
//# sourceMappingURL=page-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-builder.d.ts","sourceRoot":"","sources":["../../../src/theme/compact-packages/page-builder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA0B9D,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,kCAAkC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact values of @cocoar/vue-script-editor: constants only. What the package derives from
|
|
3
|
+
* shared roles stays in its own stylesheet.
|
|
4
|
+
*/
|
|
5
|
+
export declare const COMPACT_SCRIPT_EDITOR_TOKENS: Record<string, string>;
|
|
6
|
+
/** Where the theme scope meets `.coar-mobile`. */
|
|
7
|
+
export declare const COMPACT_SCRIPT_EDITOR_MOBILE_TOKENS: Record<string, string>;
|
|
8
|
+
//# sourceMappingURL=script-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"script-editor.d.ts","sourceRoot":"","sources":["../../../src/theme/compact-packages/script-editor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAK/D,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,mCAAmC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CoarRoleTheme } from './role-theme';
|
|
2
|
+
/**
|
|
3
|
+
* The values of the Compact presentation: one source for the Theme Editor preset
|
|
4
|
+
* and for the `.coar-compact` compatibility entry (styles/tokens/compact.css is
|
|
5
|
+
* this object serialized; compact-theme.test.ts keeps the two in step).
|
|
6
|
+
*
|
|
7
|
+
* Only inputs live here. What follows from them (aliases, palette steps, component
|
|
8
|
+
* roles) is derived once, in styles/tokens/derived.css.
|
|
9
|
+
*/
|
|
10
|
+
export declare const COMPACT_THEME: CoarRoleTheme;
|
|
11
|
+
//# sourceMappingURL=compact-theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact-theme.d.ts","sourceRoot":"","sources":["../../src/theme/compact-theme.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGlD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,EAAE,aA2P3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/theme/enterprise-packages/calendar.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAwE7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-viewer.d.ts","sourceRoot":"","sources":["../../../src/theme/enterprise-packages/document-viewer.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,eAAO,MAAM,iCAAiC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAoCpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../src/theme/enterprise-packages/map.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAwCxD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default document presentation. Package inputs take precedence over the common
|
|
3
|
+
* UI roles without replacing the package's locally evaluated private derivation.
|
|
4
|
+
* Compact leaves these inputs unset and keeps its existing common-role fallback.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ENTERPRISE_MARKDOWN_TOKENS: Record<string, string>;
|
|
7
|
+
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../src/theme/enterprise-packages/markdown.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA0C7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mermaid.d.ts","sourceRoot":"","sources":["../../../src/theme/enterprise-packages/mermaid.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAI5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-builder.d.ts","sourceRoot":"","sources":["../../../src/theme/enterprise-packages/page-builder.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA0EjE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The shipped coar-light/coar-dark Monaco colors, including the inherited
|
|
3
|
+
* widget and diagnostic colors of the lockfile's Monaco version. Explicit
|
|
4
|
+
* pairs also preserve a forced editor scheme inside the opposite page scheme.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ENTERPRISE_SCRIPT_EDITOR_TOKENS: Record<string, string>;
|
|
7
|
+
//# sourceMappingURL=script-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"script-editor.d.ts","sourceRoot":"","sources":["../../../src/theme/enterprise-packages/script-editor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA2BlE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CoarRoleTheme } from './role-theme';
|
|
2
|
+
/**
|
|
3
|
+
* The default presentation as values. The shared derivation stays unchanged;
|
|
4
|
+
* explicit roles preserve the default look where it differs from that derivation.
|
|
5
|
+
* Apps that load no theme continue to use the static token stylesheets.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ENTERPRISE_THEME: CoarRoleTheme;
|
|
8
|
+
//# sourceMappingURL=enterprise-theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enterprise-theme.d.ts","sourceRoot":"","sources":["../../src/theme/enterprise-theme.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,aAyL9B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** Stable base-colour names and the primitive palettes derived from them. */
|
|
2
|
+
export declare const COLOR_PALETTES: {
|
|
3
|
+
readonly accent: "accent";
|
|
4
|
+
readonly success: "green";
|
|
5
|
+
readonly error: "red";
|
|
6
|
+
readonly warning: "amber";
|
|
7
|
+
readonly info: "slate";
|
|
8
|
+
};
|
|
9
|
+
export declare const COLOR_STEPS: readonly [50, 100, 200, 300, 400, 500, 600, 700, 800, 900];
|
|
10
|
+
/** The default look's lightness/chroma curves, indexed by COLOR_STEPS. */
|
|
11
|
+
export declare const DEFAULT_PALETTE_CURVES: {
|
|
12
|
+
readonly accent: {
|
|
13
|
+
readonly light: readonly ["0.97 0.012", "0.92 0.035", "0.84 0.075", "0.74 0.115", "0.66 0.145", "l c", "0.53 0.15", "0.47 0.14", "0.39 0.12", "0.31 0.095"];
|
|
14
|
+
readonly dark: readonly ["0.20 0.045", "0.25 0.065", "0.32 0.095", "0.42 0.13", "0.52 0.155", "l c", "0.68 0.14", "0.76 0.11", "0.85 0.07", "0.93 0.035"];
|
|
15
|
+
};
|
|
16
|
+
readonly green: {
|
|
17
|
+
readonly light: readonly ["0.97 0.012", "0.92 0.035", "0.84 0.065", "0.74 0.10", "0.66 0.13", "l c", "0.47 0.12", "0.40 0.10", "0.33 0.08", "0.26 0.06"];
|
|
18
|
+
readonly dark: readonly ["0.20 0.035", "0.25 0.055", "0.32 0.08", "0.42 0.11", "0.52 0.13", "l c", "0.68 0.12", "0.76 0.09", "0.85 0.06", "0.93 0.03"];
|
|
19
|
+
};
|
|
20
|
+
readonly red: {
|
|
21
|
+
readonly light: readonly ["0.97 0.012", "0.92 0.035", "0.84 0.07", "0.74 0.11", "0.66 0.145", "l c", "0.47 0.13", "0.40 0.11", "0.33 0.09", "0.26 0.07"];
|
|
22
|
+
readonly dark: readonly ["0.20 0.04", "0.25 0.06", "0.32 0.09", "0.42 0.12", "0.52 0.145", "l c", "0.68 0.12", "0.76 0.09", "0.85 0.06", "0.93 0.03"];
|
|
23
|
+
};
|
|
24
|
+
readonly amber: {
|
|
25
|
+
readonly light: readonly ["0.97 0.015", "0.92 0.04", "0.86 0.08", "0.78 0.12", "0.72 0.14", "l c", "0.50 0.12", "0.43 0.10", "0.36 0.08", "0.29 0.06"];
|
|
26
|
+
readonly dark: readonly ["0.22 0.04", "0.27 0.06", "0.34 0.09", "0.44 0.12", "0.54 0.14", "l c", "0.70 0.12", "0.78 0.09", "0.86 0.06", "0.93 0.03"];
|
|
27
|
+
};
|
|
28
|
+
readonly slate: {
|
|
29
|
+
readonly light: readonly ["0.97 0.006", "0.92 0.012", "0.84 0.02", "0.74 0.03", "0.66 0.035", "l c", "0.47 0.03", "0.40 0.025", "0.35 0.02", "0.30 0.02"];
|
|
30
|
+
readonly dark: readonly ["0.18 0.012", "0.23 0.018", "0.30 0.022", "0.40 0.025", "0.50 0.03", "l c", "0.70 0.025", "0.78 0.018", "0.86 0.012", "0.93 0.006"];
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const DEFAULT_PALETTE_INPUTS: Record<string, string>;
|
|
34
|
+
//# sourceMappingURL=palette-inputs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palette-inputs.d.ts","sourceRoot":"","sources":["../../src/theme/palette-inputs.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,eAAO,MAAM,cAAc;;;;;;CAMjB,CAAC;AAEX,eAAO,MAAM,WAAW,4DAA6D,CAAC;AAEtF,0EAA0E;AAC1E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;CAqBzB,CAAC;AAEX,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAMzD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-derived-tokens.d.ts","sourceRoot":"","sources":["../../src/theme/role-derived-tokens.ts"],"names":[],"mappings":"AAEA,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,UAwDC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const ROLE_INPUT_DEFAULTS: Record<string, string>;
|
|
2
|
+
export declare const ROLE_MOBILE_DEFAULTS: Record<string, string>;
|
|
3
|
+
export declare const ROLE_SCHEME_DEFAULTS: Record<'light' | 'dark', Record<string, string>>;
|
|
4
|
+
export declare const ROLE_ROOT_DEFAULTS: Record<string, string>;
|
|
5
|
+
//# sourceMappingURL=role-input-defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-input-defaults.d.ts","sourceRoot":"","sources":["../../src/theme/role-input-defaults.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAkEtD,CAAC;AACF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAWvD,CAAC;AACF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,OAAO,GAAG,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA2NjF,CAAC;AACF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAyNrD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** One contract, including unset slots, for every first-party preset and export. */
|
|
2
|
+
export declare const ROLE_THEME_ROLES: string[];
|
|
3
|
+
export declare const ROLE_THEME_INPUT_DEFAULTS: {
|
|
4
|
+
[k: string]: string;
|
|
5
|
+
};
|
|
6
|
+
/** Only these slots can be written by an outer preset's legacy mobile rules. */
|
|
7
|
+
export declare const ROLE_THEME_MOBILE_INPUTS: string[];
|
|
8
|
+
//# sourceMappingURL=role-theme-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-theme-contract.d.ts","sourceRoot":"","sources":["../../src/theme/role-theme-contract.ts"],"names":[],"mappings":"AAKA,oFAAoF;AACpF,eAAO,MAAM,gBAAgB,UAE1B,CAAC;AAGJ,eAAO,MAAM,yBAAyB;;CAKrC,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,wBAAwB,UACkD,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A theme as values for the shared role contract. The library derives everything
|
|
3
|
+
* that follows from them (styles/tokens/derived.css); a theme never brings formulas
|
|
4
|
+
* of its own.
|
|
5
|
+
*/
|
|
6
|
+
export interface CoarRoleTheme {
|
|
7
|
+
/** Token values on the theme scope. */
|
|
8
|
+
tokens: Record<string, string>;
|
|
9
|
+
/** Inputs and role overrides where the scope meets `.coar-mobile`, in either nesting order. */
|
|
10
|
+
mobileTokens: Record<string, string>;
|
|
11
|
+
/** Explicit derived-role values, reapplied at every boundary inside the scope. */
|
|
12
|
+
roles?: Record<string, string>;
|
|
13
|
+
}
|
|
14
|
+
/** Set by a theme (empty value = on) to have the library derive from its values. */
|
|
15
|
+
export declare const ROLE_DERIVATION_TOKEN = "--coar-role-derivation";
|
|
16
|
+
/** What `ROLE_DERIVATION_TOKEN` resolves to on an element where derivation is active. */
|
|
17
|
+
export declare const ROLE_DERIVATION_MARKER = "--coar-d-role-derivation";
|
|
18
|
+
/** Optional inputs a surrounding `CoarThemeScope` hands to a theme; `.coar-theme-none` clears them. */
|
|
19
|
+
export declare const APPEARANCE_INPUT_TOKENS: string[];
|
|
20
|
+
/** Theme-owned bases survive the library defaults at nested scheme boundaries. */
|
|
21
|
+
export declare const THEME_COLOR_INPUT_TOKENS: string[];
|
|
22
|
+
/**
|
|
23
|
+
* The tokens that carry a font family. Without a role theme each role holds its own
|
|
24
|
+
* family, so naming another font means setting them all; a role theme derives the
|
|
25
|
+
* roles from the first entry of each list.
|
|
26
|
+
*/
|
|
27
|
+
export declare const BODY_FAMILY_TOKENS: string[];
|
|
28
|
+
export declare const TITLE_FAMILY_TOKENS: string[];
|
|
29
|
+
/** Boundaries inside a theme scope that set their own text and colour scheme again. */
|
|
30
|
+
export declare const NESTED_BOUNDARIES = ":where(.coar-mobile, .coar-theme-scope, .coar-theme-none, .light-mode, .dark-mode, [data-theme])";
|
|
31
|
+
/**
|
|
32
|
+
* The CSS of a role theme for one scope selector (`.coar-theme--acme`). The same
|
|
33
|
+
* text styles the live Theme Editor, its download and the `.coar-compact` entry.
|
|
34
|
+
*
|
|
35
|
+
* Besides the values it states what a scope is: its own text and colour scheme, on
|
|
36
|
+
* the scope and on every boundary nested in it, so a dark scope inside a light page
|
|
37
|
+
* resolves `light-dark()` values and plain text correctly.
|
|
38
|
+
*/
|
|
39
|
+
export declare function serializeRoleTheme(selector: string, theme: CoarRoleTheme): string;
|
|
40
|
+
//# sourceMappingURL=role-theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-theme.d.ts","sourceRoot":"","sources":["../../src/theme/role-theme.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,uCAAuC;IACvC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,+FAA+F;IAC/F,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,kFAAkF;IAClF,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,oFAAoF;AACpF,eAAO,MAAM,qBAAqB,2BAA2B,CAAC;AAE9D,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AAEjE,uGAAuG;AACvG,eAAO,MAAM,uBAAuB,UAGQ,CAAC;AAE7C,kFAAkF;AAClF,eAAO,MAAM,wBAAwB,UAAoE,CAAC;AAE1G;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,UAQ9B,CAAC;AACF,eAAO,MAAM,mBAAmB,UAO/B,CAAC;AAEF,uFAAuF;AACvF,eAAO,MAAM,iBAAiB,qGACsE,CAAC;AAOrG;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,MAAM,CA8CjF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocoar/vue-ui",
|
|
3
|
-
"version": "3.4.0-beta.
|
|
3
|
+
"version": "3.4.0-beta.29",
|
|
4
4
|
"description": "Cocoar Design System — a tablet-first Vue 3 component library with 30+ accessible, themeable components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"sideEffects": [
|
|
24
24
|
"*.css",
|
|
25
25
|
"./dist/fonts.js",
|
|
26
|
-
"./dist/compact-fonts.js"
|
|
26
|
+
"./dist/compact-fonts.js",
|
|
27
|
+
"./dist/onest-fonts.js"
|
|
27
28
|
],
|
|
28
29
|
"main": "./dist/index.js",
|
|
29
30
|
"module": "./dist/index.js",
|
|
@@ -41,6 +42,10 @@
|
|
|
41
42
|
"./fonts/compact": {
|
|
42
43
|
"import": "./dist/compact-fonts.js",
|
|
43
44
|
"types": "./dist/compact-fonts.d.ts"
|
|
45
|
+
},
|
|
46
|
+
"./fonts/onest": {
|
|
47
|
+
"import": "./dist/onest-fonts.js",
|
|
48
|
+
"types": "./dist/onest-fonts.d.ts"
|
|
44
49
|
}
|
|
45
50
|
},
|
|
46
51
|
"bin": {
|
|
@@ -53,9 +58,10 @@
|
|
|
53
58
|
"skills"
|
|
54
59
|
],
|
|
55
60
|
"dependencies": {
|
|
56
|
-
"@cocoar/vue-localization": "3.4.0-beta.
|
|
61
|
+
"@cocoar/vue-localization": "3.4.0-beta.29",
|
|
57
62
|
"@fontsource/cascadia-code": "^5.2.3",
|
|
58
63
|
"@fontsource/inter": "^5.2.8",
|
|
64
|
+
"@fontsource/onest": "^5.3.1",
|
|
59
65
|
"@fontsource/poppins": "^5.2.7",
|
|
60
66
|
"@js-temporal/polyfill": "^0.5.1",
|
|
61
67
|
"@maskito/core": "^5.2.2",
|
|
@@ -78,7 +84,7 @@
|
|
|
78
84
|
"vue": "^3.5.32",
|
|
79
85
|
"vue-router": "^5.0.4"
|
|
80
86
|
},
|
|
81
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "a3e1f043716ecbf9002e2f6c5c69b2e6fb5b6a69",
|
|
82
88
|
"scripts": {
|
|
83
89
|
"build": "vite build",
|
|
84
90
|
"test": "vitest run",
|
|
@@ -97,6 +97,7 @@ of each other.
|
|
|
97
97
|
- [Mobile presentation (Preview)](references/guide/mobile.md) — Opt into the mobile presentation with a coar-mobile parent: touch-sized controls, what decides sizes, layout and input behaviour, how it combines with brand themes, and which device classes each component supports.
|
|
98
98
|
- [Migrating to 2.11](references/guide/migration.md) — Migration guide for Cocoar UI 2.11: date/time pickers move onto CoarFormField, the clear button becomes opt-in, and two CSS tokens are renamed.
|
|
99
99
|
- [Migrating Page Builder to 3.0](references/guide/migration-page-builder-3.md) — Migration guide for @cocoar/vue-page-builder 3.0: four PageConfig concepts removed, several names disambiguated, and documents migrated to schemaVersion 6.
|
|
100
|
+
- [Migrating text on saturated fills](references/guide/migration-color-roles.md) — Text on saturated fills now has one computed ink role per base colour, with explicit overrides for custom themes.
|
|
100
101
|
|
|
101
102
|
### Foundations
|
|
102
103
|
|
|
@@ -107,7 +108,7 @@ of each other.
|
|
|
107
108
|
- [Icons](references/foundations/icons.md) — CoarIcon and the built-in SVG icon set: preset sizes, colors, rotation, spin animation, and registering custom icon sources with fallback.
|
|
108
109
|
- [Motion](references/foundations/motion.md) — Motion design tokens: duration and easing CSS variables plus pre-composed transition values, with interactive demos and usage examples.
|
|
109
110
|
- [Theme Editor](references/foundations/theming.md) — CoarThemeEditor, a live token editor: explore primitive, semantic, and component token layers, apply presets, and export a CSS snippet.
|
|
110
|
-
- [Compact presentation (Preview)](references/foundations/compact-presentation.md) — Preview:
|
|
111
|
+
- [Compact presentation (Preview)](references/foundations/compact-presentation.md) — Preview: the compact presentation, a theme with Inter, Slate surfaces and separate desktop, touch and input roles. Load it as a preset in the Theme Editor or opt in with .coar-compact. Existing applications keep their presentation.
|
|
111
112
|
|
|
112
113
|
### Localization (@cocoar/vue-localization)
|
|
113
114
|
|
|
@@ -434,6 +434,11 @@ A realistic card built entirely with semantic tokens. Toggle light/dark mode to
|
|
|
434
434
|
<code>--coar-background-accent-primary</code>
|
|
435
435
|
<span class="annotation-desc">Primary button</span>
|
|
436
436
|
</div>
|
|
437
|
+
<div class="annotation">
|
|
438
|
+
<span class="annotation-dot" style="background: var(--coar-text-on-accent)"></span>
|
|
439
|
+
<code>--coar-text-on-accent</code>
|
|
440
|
+
<span class="annotation-desc">Computed button ink</span>
|
|
441
|
+
</div>
|
|
437
442
|
<div class="annotation">
|
|
438
443
|
<span class="annotation-dot" style="background: var(--coar-border-neutral-tertiary)"></span>
|
|
439
444
|
<code>--coar-border-neutral-tertiary</code>
|
|
@@ -485,7 +490,7 @@ A realistic card built entirely with semantic tokens. Toggle light/dark mode to
|
|
|
485
490
|
.avatar-text {
|
|
486
491
|
font-size: 14px;
|
|
487
492
|
font-weight: 700;
|
|
488
|
-
color: var(--coar-text-on-bold);
|
|
493
|
+
color: var(--coar-text-on-accent, var(--coar-text-on-bold));
|
|
489
494
|
}
|
|
490
495
|
|
|
491
496
|
.card-header-text {
|
|
@@ -553,7 +558,7 @@ A realistic card built entirely with semantic tokens. Toggle light/dark mode to
|
|
|
553
558
|
border-radius: 8px;
|
|
554
559
|
border: none;
|
|
555
560
|
background: var(--coar-background-accent-primary);
|
|
556
|
-
color: var(--coar-text-on-bold);
|
|
561
|
+
color: var(--coar-text-on-accent, var(--coar-text-on-bold));
|
|
557
562
|
font-size: 13px;
|
|
558
563
|
font-weight: 600;
|
|
559
564
|
cursor: pointer;
|
|
@@ -676,7 +681,31 @@ All tokens follow a predictable pattern:
|
|
|
676
681
|
| `--coar-text-accent-primary` | Accent-colored text (links, highlights) |
|
|
677
682
|
| `--coar-text-accent-secondary` | Lighter accent text |
|
|
678
683
|
| `--coar-text-brand-primary` | Brand-colored text |
|
|
679
|
-
| `--coar-text-on-
|
|
684
|
+
| `--coar-text-on-accent` | Computed black or white on the primary accent fill |
|
|
685
|
+
| `--coar-text-on-success` | Computed black or white on the solid success fill |
|
|
686
|
+
| `--coar-text-on-error` | Computed black or white on the solid error fill |
|
|
687
|
+
| `--coar-text-on-warning` | Computed black or white on the solid warning fill |
|
|
688
|
+
| `--coar-text-on-info` | Computed black or white on the solid info fill |
|
|
689
|
+
| `--coar-text-on-bold` | Legacy white role; retained for direct use and as a fallback |
|
|
690
|
+
|
|
691
|
+
### Text on saturated fills (Preview)
|
|
692
|
+
|
|
693
|
+
The five `--coar-text-on-*` roles choose pure white or black from their actual
|
|
694
|
+
solid fill, using the stronger APCA contrast. They work with every preset and
|
|
695
|
+
without a theme. The same ink is used on hover and pressed states; links,
|
|
696
|
+
validation text and text on tinted surfaces continue to use their palette roles.
|
|
697
|
+
|
|
698
|
+
Set a role to override the calculation, including a `light-dark()` pair:
|
|
699
|
+
|
|
700
|
+
```css
|
|
701
|
+
.coar-theme--acme {
|
|
702
|
+
--coar-text-on-accent: light-dark(#102a43, #f0f8ff);
|
|
703
|
+
}
|
|
704
|
+
```
|
|
705
|
+
|
|
706
|
+
Overrides are retained even when contrast is low. APCA selection is not a WCAG
|
|
707
|
+
4.5:1 guarantee. `--coar-text-on-threshold` is the APCA luminance crossing used by
|
|
708
|
+
the CSS calculation; normally leave it unchanged.
|
|
680
709
|
|
|
681
710
|
### Border
|
|
682
711
|
|