@common-origin/design-system 2.16.0 → 2.18.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/dist/client.esm.js +168 -125
- package/dist/client.esm.js.map +1 -1
- package/dist/client.js +167 -124
- package/dist/client.js.map +1 -1
- package/dist/components/atoms/Badge/Badge.d.ts +7 -2
- package/dist/components/atoms/DateFormatter/DateFormatter.d.ts +11 -1
- package/dist/components/atoms/Icon/Icon.d.ts +11 -0
- package/dist/components/atoms/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/components/atoms/Tag/Tag.d.ts +4 -1
- package/dist/components/molecules/DateGroup/DateGroup.d.ts +4 -1
- package/dist/components/molecules/List/List.d.ts +3 -2
- package/dist/components/molecules/List/ListContext.d.ts +6 -0
- package/dist/components/molecules/List/ListItem.d.ts +5 -4
- package/dist/data.esm.js +10 -2
- package/dist/data.esm.js.map +1 -1
- package/dist/data.js +10 -2
- package/dist/data.js.map +1 -1
- package/dist/styles/tokens.json +10 -2
- package/dist/tokens/index.esm.js +10 -2
- package/dist/tokens/index.esm.js.map +1 -1
- package/dist/tokens/index.js +10 -2
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/types/tokens.d.ts +8 -0
- package/dist/tokens.css +19 -11
- package/dist/types/tokens.d.ts +8 -0
- package/package.json +1 -1
package/dist/tokens.css
CHANGED
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
--co-semantic-border-default: var(--co-base-border-width-1) var(--co-base-border-style-solid) var(--co-semantic-color-border-default); /** Hairline in the default border colour: dividers that separate content, such as Breadcrumbs. 1.19:1 on white, so never a control's edge (decision 0025). */
|
|
343
343
|
--co-semantic-border-subtle: var(--co-base-border-width-1) var(--co-base-border-style-solid) var(--co-semantic-color-border-subtle); /** Hairline in the subtle border colour: dividers and decorative outlines, such as CodeBlock and Separator. 1.30:1 on white, so never a control's edge (decision 0025). */
|
|
344
344
|
--co-semantic-border-strong: var(--co-base-border-width-1) var(--co-base-border-style-solid) var(--co-semantic-color-border-strong); /** Hairline in near-black: a firm outline that must read as a boundary, such as a hovered or focused text input. 11.51:1 on white. */
|
|
345
|
-
--co-semantic-border-focus: var(--co-base-border-width-2) var(--co-base-border-style-solid) var(--co-semantic-color-border-strong); /** The
|
|
345
|
+
--co-semantic-border-focus: var(--co-base-border-width-2) var(--co-base-border-style-solid) var(--co-semantic-color-border-strong); /** The focus ring: 2px solid near-black, always used with border.focusOffset for visible keyboard focus (P2). Every component draws this ring; there is no blue focus ring (decision 0029). */
|
|
346
346
|
--co-semantic-border-tooltip: var(--co-base-border-width-2) var(--co-base-border-style-dotted) var(--co-semantic-color-border-subtle); /** 2px dotted underline marking text that has a tooltip. */
|
|
347
347
|
--co-semantic-border-width-thin: var(--co-base-border-width-1); /** 0.0625rem: default hairline borders and rings. */
|
|
348
348
|
--co-semantic-border-width-thick: var(--co-base-border-width-2); /** 0.125rem: emphasised borders, focus outlines and selected states. */
|
|
@@ -419,7 +419,7 @@
|
|
|
419
419
|
--co-semantic-spacing-layout-11xl: var(--co-base-spacing-24); /** 6rem: the largest layout gap (FeatureBlock at wide breakpoints). */
|
|
420
420
|
--co-semantic-spacing-layout-auto: var(--co-base-spacing-auto); /** auto: lets the browser compute the space, such as margin: auto to centre or push an element. */
|
|
421
421
|
--co-semantic-color-text-default: var(--co-base-color-neutral-900); /** Primary text: body copy, labels and headings. 15.43:1 on white, 14.63:1 on the page. */
|
|
422
|
-
--co-semantic-color-text-emphasis: var(--co-base-color-neutral-
|
|
422
|
+
--co-semantic-color-text-emphasis: var(--co-base-color-neutral-1000); /** Emphasised text: one step darker than text.default, so it reads stronger (decision 0029). 17.65:1 on white. */
|
|
423
423
|
--co-semantic-color-text-subdued: var(--co-base-color-neutral-700); /** Secondary text: helper text, metadata and supporting copy. 8.18:1 on white, 7.76:1 on the page. */
|
|
424
424
|
--co-semantic-color-text-inverse: var(--co-base-color-neutral-000); /** Text on dark or coloured fills, such as the primary, accent and danger Buttons. 15.43:1 on background.emphasis, 5.39:1 on background.interactive. */
|
|
425
425
|
--co-semantic-color-text-disabled: var(--co-base-color-neutral-500); /** Text of disabled controls. 2.07:1 on white: disabled text is exempt from the contrast minimum (WCAG 1.4.3), so never use it for text people need to read, including placeholders. */
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
--co-semantic-color-border-warning: var(--co-base-color-orange-900); /** Orange border for warning outlines, such as an outlined warning Alert. */
|
|
468
468
|
--co-semantic-color-border-none: var(--co-base-color-transparent); /** An invisible border that keeps its width, so a borderless state takes the same space as a bordered one (for example Alert's borderless appearance, decision 0019). */
|
|
469
469
|
--co-semantic-color-icon-default: var(--co-base-color-neutral-900); /** Default icon colour, matching text.default. 15.43:1 on white. */
|
|
470
|
-
--co-semantic-color-icon-emphasis: var(--co-base-color-neutral-
|
|
470
|
+
--co-semantic-color-icon-emphasis: var(--co-base-color-neutral-1000); /** Emphasised icons, matching text.emphasis: one step darker than icon.default (decision 0029). */
|
|
471
471
|
--co-semantic-color-icon-subdued: var(--co-base-color-neutral-600); /** Secondary icons, such as list item and empty-state icons. 4.69:1 on white, 4.45:1 on the page (icons need 3:1). */
|
|
472
472
|
--co-semantic-color-icon-disabled: var(--co-base-color-neutral-500); /** Icons and other foreground marks in disabled controls, such as a disabled Slider's fill and thumb ring. Exempt from the contrast minimum, like text.disabled. */
|
|
473
473
|
--co-semantic-color-icon-inverse: var(--co-base-color-neutral-000); /** Icons on dark or coloured fills, matching text.inverse. */
|
|
@@ -484,28 +484,28 @@
|
|
|
484
484
|
--co-semantic-color-financial-pending: var(--co-base-color-orange-600); /** Color for pending or processing financial transactions */
|
|
485
485
|
--co-semantic-color-financial-neutral: var(--co-base-color-neutral-600); /** Neutral color for informational monetary amounts */
|
|
486
486
|
--co-semantic-color-category-blue: var(--co-base-color-blue-700); /** Blue category color for general/miscellaneous */
|
|
487
|
-
--co-semantic-color-category-blue-
|
|
487
|
+
--co-semantic-color-category-blue-strong: var(--co-base-color-blue-900); /** Strong step of the blue category: the fill of a filled CategoryLabel, with white text (decision 0029). */
|
|
488
488
|
--co-semantic-color-category-blue-subtle: var(--co-base-color-blue-100); /** Subtle blue background */
|
|
489
489
|
--co-semantic-color-category-purple: var(--co-base-color-purple-700); /** Purple category color for entertainment */
|
|
490
|
-
--co-semantic-color-category-purple-
|
|
490
|
+
--co-semantic-color-category-purple-strong: var(--co-base-color-purple-900); /** Strong step of the purple category: the fill of a filled CategoryLabel, with white text (decision 0029). */
|
|
491
491
|
--co-semantic-color-category-purple-subtle: var(--co-base-color-purple-100); /** Subtle purple background */
|
|
492
492
|
--co-semantic-color-category-pink: var(--co-base-color-pink-700); /** Pink category color for health/wellness */
|
|
493
|
-
--co-semantic-color-category-pink-
|
|
493
|
+
--co-semantic-color-category-pink-strong: var(--co-base-color-pink-900); /** Strong step of the pink category: the fill of a filled CategoryLabel, with white text (decision 0029). */
|
|
494
494
|
--co-semantic-color-category-pink-subtle: var(--co-base-color-pink-100); /** Subtle pink background */
|
|
495
495
|
--co-semantic-color-category-yellow: var(--co-base-color-yellow-700); /** Yellow category color for utilities */
|
|
496
|
-
--co-semantic-color-category-yellow-
|
|
496
|
+
--co-semantic-color-category-yellow-strong: var(--co-base-color-yellow-900); /** Strong step of the yellow category: the fill of a filled CategoryLabel, with white text (decision 0029). */
|
|
497
497
|
--co-semantic-color-category-yellow-subtle: var(--co-base-color-yellow-100); /** Subtle yellow background */
|
|
498
498
|
--co-semantic-color-category-green: var(--co-base-color-green-700); /** Green category color for income */
|
|
499
|
-
--co-semantic-color-category-green-
|
|
499
|
+
--co-semantic-color-category-green-strong: var(--co-base-color-green-900); /** Strong step of the green category: the fill of a filled CategoryLabel, with white text (decision 0029). */
|
|
500
500
|
--co-semantic-color-category-green-subtle: var(--co-base-color-green-100); /** Subtle green background */
|
|
501
501
|
--co-semantic-color-category-red: var(--co-base-color-red-700); /** Red category color for expenses */
|
|
502
|
-
--co-semantic-color-category-red-
|
|
502
|
+
--co-semantic-color-category-red-strong: var(--co-base-color-red-900); /** Strong step of the red category: the fill of a filled CategoryLabel, with white text (decision 0029). */
|
|
503
503
|
--co-semantic-color-category-red-subtle: var(--co-base-color-red-100); /** Subtle red background */
|
|
504
504
|
--co-semantic-color-category-orange: var(--co-base-color-orange-700); /** Orange category color for food & dining */
|
|
505
|
-
--co-semantic-color-category-orange-
|
|
505
|
+
--co-semantic-color-category-orange-strong: var(--co-base-color-orange-900); /** Strong step of the orange category: the fill of a filled CategoryLabel, with white text (decision 0029). */
|
|
506
506
|
--co-semantic-color-category-orange-subtle: var(--co-base-color-orange-100); /** Subtle orange background */
|
|
507
507
|
--co-semantic-color-category-gray: var(--co-base-color-neutral-700); /** Gray category color for uncategorized */
|
|
508
|
-
--co-semantic-color-category-gray-
|
|
508
|
+
--co-semantic-color-category-gray-strong: var(--co-base-color-neutral-900); /** Strong step of the gray category: the fill of a filled CategoryLabel, with white text (decision 0029). */
|
|
509
509
|
--co-semantic-color-category-gray-subtle: var(--co-base-color-neutral-200); /** Subtle gray background */
|
|
510
510
|
--co-semantic-color-category-blue-text: var(--co-base-color-blue-900); /** Blue category text and icon on white or blue-subtle (outlined and minimal labels), at least 4.5:1. Decision on #115. */
|
|
511
511
|
--co-semantic-color-category-purple-text: var(--co-base-color-purple-900); /** Purple category text and icon on white or purple-subtle (outlined and minimal labels), at least 4.5:1. Decision on #115. */
|
|
@@ -726,6 +726,14 @@
|
|
|
726
726
|
--co-component-list-item-expanded-indent-compact: var(--co-semantic-size-dimension-12); /** Left indent of expanded content in compact rows, aligning it with the label (48px). */
|
|
727
727
|
--co-component-list-item-expanded-indent-comfortable: var(--co-semantic-size-dimension-15); /** Left indent of expanded content in comfortable rows (60px). */
|
|
728
728
|
--co-component-transaction-list-item-min-height: var(--co-semantic-size-dimension-18); /** Minimum row height (72px). */
|
|
729
|
+
--co-semantic-color-category-blue-emphasis: var(--co-semantic-color-category-blue-strong); /** Deprecated (decision 0029): "emphasis" means near-black, so use semantic.color.category.blue-strong. Removed in 3.0. */
|
|
730
|
+
--co-semantic-color-category-purple-emphasis: var(--co-semantic-color-category-purple-strong); /** Deprecated (decision 0029): "emphasis" means near-black, so use semantic.color.category.purple-strong. Removed in 3.0. */
|
|
731
|
+
--co-semantic-color-category-pink-emphasis: var(--co-semantic-color-category-pink-strong); /** Deprecated (decision 0029): "emphasis" means near-black, so use semantic.color.category.pink-strong. Removed in 3.0. */
|
|
732
|
+
--co-semantic-color-category-yellow-emphasis: var(--co-semantic-color-category-yellow-strong); /** Deprecated (decision 0029): "emphasis" means near-black, so use semantic.color.category.yellow-strong. Removed in 3.0. */
|
|
733
|
+
--co-semantic-color-category-green-emphasis: var(--co-semantic-color-category-green-strong); /** Deprecated (decision 0029): "emphasis" means near-black, so use semantic.color.category.green-strong. Removed in 3.0. */
|
|
734
|
+
--co-semantic-color-category-red-emphasis: var(--co-semantic-color-category-red-strong); /** Deprecated (decision 0029): "emphasis" means near-black, so use semantic.color.category.red-strong. Removed in 3.0. */
|
|
735
|
+
--co-semantic-color-category-orange-emphasis: var(--co-semantic-color-category-orange-strong); /** Deprecated (decision 0029): "emphasis" means near-black, so use semantic.color.category.orange-strong. Removed in 3.0. */
|
|
736
|
+
--co-semantic-color-category-gray-emphasis: var(--co-semantic-color-category-gray-strong); /** Deprecated (decision 0029): "emphasis" means near-black, so use semantic.color.category.gray-strong. Removed in 3.0. */
|
|
729
737
|
--co-semantic-typography-display: var(--co-semantic-font-weight-bold) var(--co-base-font-size-10)/var(--co-base-line-height-10) var(--co-base-font-family-heading); /** Display text: 5rem, weight 700. The largest heading, for hero titles. */
|
|
730
738
|
--co-semantic-typography-h1: var(--co-semantic-font-weight-bold) var(--co-base-font-size-9)/var(--co-base-line-height-9) var(--co-base-font-family-heading); /** Heading 1: 3rem, weight 700. The page title. */
|
|
731
739
|
--co-semantic-typography-h2: var(--co-semantic-font-weight-bold) var(--co-base-font-size-8)/var(--co-base-line-height-8) var(--co-base-font-family-heading); /** Heading 2: 2rem, weight 700. Major sections. */
|
package/dist/types/tokens.d.ts
CHANGED
|
@@ -1106,27 +1106,35 @@ export declare const tokens: {
|
|
|
1106
1106
|
};
|
|
1107
1107
|
category: {
|
|
1108
1108
|
blue: string;
|
|
1109
|
+
"blue-strong": string;
|
|
1109
1110
|
"blue-emphasis": string;
|
|
1110
1111
|
"blue-subtle": string;
|
|
1111
1112
|
purple: string;
|
|
1113
|
+
"purple-strong": string;
|
|
1112
1114
|
"purple-emphasis": string;
|
|
1113
1115
|
"purple-subtle": string;
|
|
1114
1116
|
pink: string;
|
|
1117
|
+
"pink-strong": string;
|
|
1115
1118
|
"pink-emphasis": string;
|
|
1116
1119
|
"pink-subtle": string;
|
|
1117
1120
|
yellow: string;
|
|
1121
|
+
"yellow-strong": string;
|
|
1118
1122
|
"yellow-emphasis": string;
|
|
1119
1123
|
"yellow-subtle": string;
|
|
1120
1124
|
green: string;
|
|
1125
|
+
"green-strong": string;
|
|
1121
1126
|
"green-emphasis": string;
|
|
1122
1127
|
"green-subtle": string;
|
|
1123
1128
|
red: string;
|
|
1129
|
+
"red-strong": string;
|
|
1124
1130
|
"red-emphasis": string;
|
|
1125
1131
|
"red-subtle": string;
|
|
1126
1132
|
orange: string;
|
|
1133
|
+
"orange-strong": string;
|
|
1127
1134
|
"orange-emphasis": string;
|
|
1128
1135
|
"orange-subtle": string;
|
|
1129
1136
|
gray: string;
|
|
1137
|
+
"gray-strong": string;
|
|
1130
1138
|
"gray-emphasis": string;
|
|
1131
1139
|
"gray-subtle": string;
|
|
1132
1140
|
"blue-text": string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-origin/design-system",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.0",
|
|
4
4
|
"description": "Common Origin Design System - Framework-agnostic atomic design components with comprehensive WCAG 2.2 AA testing",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.js",
|