@common-origin/design-system 2.22.0 → 3.0.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.
Files changed (117) hide show
  1. package/README.md +2 -2
  2. package/dist/client.js +218 -476
  3. package/dist/client.js.map +1 -1
  4. package/dist/components/atoms/Badge/Badge.d.mts +5 -12
  5. package/dist/components/atoms/Badge/Badge.d.ts +5 -12
  6. package/dist/components/atoms/Badge/Badge.mjs +0 -7
  7. package/dist/components/atoms/Badge/index.d.mts +1 -1
  8. package/dist/components/atoms/Badge/index.d.ts +1 -1
  9. package/dist/components/atoms/Box/Box.d.mts +29 -17
  10. package/dist/components/atoms/Box/Box.d.ts +29 -17
  11. package/dist/components/atoms/Box/Box.mjs +8 -8
  12. package/dist/components/atoms/Button/Button.d.mts +1 -4
  13. package/dist/components/atoms/Button/Button.d.ts +1 -4
  14. package/dist/components/atoms/Button/Button.mjs +3 -10
  15. package/dist/components/atoms/CategoryLabel/CategoryLabel.d.mts +4 -12
  16. package/dist/components/atoms/CategoryLabel/CategoryLabel.d.ts +4 -12
  17. package/dist/components/atoms/CategoryLabel/CategoryLabel.mjs +5 -16
  18. package/dist/components/atoms/Chip/Chip.d.mts +8 -20
  19. package/dist/components/atoms/Chip/Chip.d.ts +8 -20
  20. package/dist/components/atoms/Chip/Chip.mjs +20 -46
  21. package/dist/components/atoms/Chip/Chip.mjs.map +1 -1
  22. package/dist/components/atoms/Chip/FilterChip.d.mts +22 -10
  23. package/dist/components/atoms/Chip/FilterChip.d.ts +22 -10
  24. package/dist/components/atoms/Chip/FilterChip.mjs +66 -6
  25. package/dist/components/atoms/Chip/FilterChip.mjs.map +1 -1
  26. package/dist/components/atoms/Chip/InputChip.mjs +4 -6
  27. package/dist/components/atoms/Chip/InputChip.mjs.map +1 -1
  28. package/dist/components/atoms/Chip/index.d.mts +0 -1
  29. package/dist/components/atoms/Chip/index.d.ts +0 -1
  30. package/dist/components/atoms/Chip/shared/types.d.mts +9 -19
  31. package/dist/components/atoms/Chip/shared/types.d.ts +9 -19
  32. package/dist/components/atoms/Chip/shared/utils.d.mts +3 -3
  33. package/dist/components/atoms/Chip/shared/utils.d.ts +3 -3
  34. package/dist/components/atoms/Chip/shared/utils.mjs +4 -8
  35. package/dist/components/atoms/Chip/shared/utils.mjs.map +1 -1
  36. package/dist/components/atoms/DateFormatter/DateFormatter.d.mts +2 -5
  37. package/dist/components/atoms/DateFormatter/DateFormatter.d.ts +2 -5
  38. package/dist/components/atoms/DateFormatter/DateFormatter.mjs +0 -1
  39. package/dist/components/atoms/StatusLabel/StatusLabel.mjs +1 -4
  40. package/dist/components/atoms/StatusLabel/StatusLabel.mjs.map +1 -1
  41. package/dist/components/atoms/StatusLabel/StatusLabelBase.d.mts +5 -7
  42. package/dist/components/atoms/StatusLabel/StatusLabelBase.d.ts +5 -7
  43. package/dist/components/atoms/StatusLabel/StatusLabelBase.mjs +10 -12
  44. package/dist/components/atoms/Tag/Tag.d.mts +2 -4
  45. package/dist/components/atoms/Tag/Tag.d.ts +2 -4
  46. package/dist/components/atoms/Tag/Tag.mjs +0 -24
  47. package/dist/components/atoms/index.d.mts +0 -2
  48. package/dist/components/atoms/index.d.ts +0 -2
  49. package/dist/components/layout/GridSystem/GridSystem.d.mts +23 -18
  50. package/dist/components/layout/GridSystem/GridSystem.d.ts +23 -18
  51. package/dist/components/layout/GridSystem/GridSystem.mjs +7 -5
  52. package/dist/components/molecules/AccountCard/AccountCard.mjs +1 -1
  53. package/dist/components/molecules/AgentInput/AgentInput.d.mts +5 -0
  54. package/dist/components/molecules/AgentInput/AgentInput.d.ts +5 -0
  55. package/dist/components/molecules/AgentInput/AgentInput.mjs +1 -1
  56. package/dist/components/molecules/Alert/Alert.d.mts +1 -9
  57. package/dist/components/molecules/Alert/Alert.d.ts +1 -9
  58. package/dist/components/molecules/Alert/Alert.mjs +13 -26
  59. package/dist/components/molecules/ChipGroup/ChipGroup.d.mts +0 -1
  60. package/dist/components/molecules/ChipGroup/ChipGroup.d.ts +0 -1
  61. package/dist/components/molecules/ChipGroup/ChipGroup.mjs +1 -6
  62. package/dist/components/molecules/DateGroup/DateGroup.d.mts +1 -2
  63. package/dist/components/molecules/DateGroup/DateGroup.d.ts +1 -2
  64. package/dist/components/molecules/Modal/Modal.d.mts +0 -1
  65. package/dist/components/molecules/Modal/Modal.d.ts +0 -1
  66. package/dist/components/molecules/TabBar/TabBar.d.mts +0 -13
  67. package/dist/components/molecules/TabBar/TabBar.d.ts +0 -13
  68. package/dist/components/molecules/TabBar/TabBar.mjs +2 -4
  69. package/dist/components/molecules/TabBar/index.d.mts +1 -1
  70. package/dist/components/molecules/TabBar/index.d.ts +1 -1
  71. package/dist/components/molecules/index.d.mts +0 -1
  72. package/dist/components/molecules/index.d.ts +0 -1
  73. package/dist/data.js +29 -571
  74. package/dist/data.js.map +1 -1
  75. package/dist/index.js +0 -5
  76. package/dist/index.js.map +1 -1
  77. package/dist/index.mjs +1 -5
  78. package/dist/index.mjs.map +1 -1
  79. package/dist/lib/tokenAliases.d.mts +17 -8
  80. package/dist/lib/tokenAliases.d.ts +17 -8
  81. package/dist/lib/tokenAliases.mjs +46 -87
  82. package/dist/lib/tokenAliases.mjs.map +1 -1
  83. package/dist/styles/tokens.d.mts +7 -2043
  84. package/dist/styles/tokens.d.ts +7 -2043
  85. package/dist/styles/tokens.json +29 -571
  86. package/dist/styles/tokens.json.mjs +29 -571
  87. package/dist/styles/tokens.json.mjs.map +1 -1
  88. package/dist/tokens/index.js +29 -571
  89. package/dist/tokens/index.js.map +1 -1
  90. package/dist/tokens/index.mjs +29 -571
  91. package/dist/tokens/index.mjs.map +1 -1
  92. package/dist/tokens/styles/tokens.d.mts +7 -2043
  93. package/dist/tokens/styles/tokens.d.ts +7 -2043
  94. package/dist/tokens.css +10 -481
  95. package/package.json +2 -2
  96. package/dist/components/atoms/CategoryBadge/CategoryBadge.d.mts +0 -29
  97. package/dist/components/atoms/CategoryBadge/CategoryBadge.d.ts +0 -29
  98. package/dist/components/atoms/CategoryBadge/CategoryBadge.mjs +0 -29
  99. package/dist/components/atoms/CategoryBadge/CategoryBadge.mjs.map +0 -1
  100. package/dist/components/atoms/CategoryBadge/index.d.mts +0 -2
  101. package/dist/components/atoms/CategoryBadge/index.d.ts +0 -2
  102. package/dist/components/atoms/Chip/BooleanChip.d.mts +0 -28
  103. package/dist/components/atoms/Chip/BooleanChip.d.ts +0 -28
  104. package/dist/components/atoms/Chip/BooleanChip.mjs +0 -76
  105. package/dist/components/atoms/Chip/BooleanChip.mjs.map +0 -1
  106. package/dist/components/atoms/StatusBadge/StatusBadge.d.mts +0 -24
  107. package/dist/components/atoms/StatusBadge/StatusBadge.d.ts +0 -24
  108. package/dist/components/atoms/StatusBadge/StatusBadge.mjs +0 -18
  109. package/dist/components/atoms/StatusBadge/StatusBadge.mjs.map +0 -1
  110. package/dist/components/atoms/StatusBadge/index.d.mts +0 -2
  111. package/dist/components/atoms/StatusBadge/index.d.ts +0 -2
  112. package/dist/components/molecules/PageTitle/PageTitle.d.mts +0 -21
  113. package/dist/components/molecules/PageTitle/PageTitle.d.ts +0 -21
  114. package/dist/components/molecules/PageTitle/PageTitle.mjs +0 -77
  115. package/dist/components/molecules/PageTitle/PageTitle.mjs.map +0 -1
  116. package/dist/components/molecules/PageTitle/index.d.mts +0 -1
  117. package/dist/components/molecules/PageTitle/index.d.ts +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common-origin/design-system",
3
- "version": "2.22.0",
3
+ "version": "3.0.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",
@@ -65,7 +65,7 @@
65
65
  "test:coverage": "jest --coverage",
66
66
  "test:e2e": "playwright test",
67
67
  "typecheck": "tsc --noEmit",
68
- "lint": "eslint . --max-warnings 170",
68
+ "lint": "eslint . --max-warnings 159",
69
69
  "docs:dev": "npm run build:tokens && npm run dev",
70
70
  "verify:types": "node scripts/verify-types.cjs",
71
71
  "verify:no-nextjs": "node scripts/verify-no-nextjs-deps.cjs",
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import { type CategoryLabelProps } from '../CategoryLabel/CategoryLabel.mjs';
3
- export type { CategoryColor, CategoryVariant } from '../CategoryLabel/CategoryLabel.mjs';
4
- /**
5
- * Size options for CategoryBadge
6
- * @deprecated Use `CategoryLabelSize`: CategoryBadge `small` is CategoryLabel `medium`, and
7
- * `medium` is `large` (decision 0018).
8
- */
9
- export type CategorySize = 'small' | 'medium';
10
- /**
11
- * Props for the CategoryBadge component
12
- * @deprecated Use `CategoryLabelProps`. CategoryBadge is renamed CategoryLabel and is removed in
13
- * 3.0 (decision 0018).
14
- */
15
- export interface CategoryBadgeProps extends Omit<CategoryLabelProps, 'size'> {
16
- /**
17
- * Size of the badge
18
- * @default 'medium'
19
- */
20
- size?: CategorySize;
21
- }
22
- /**
23
- * CategoryBadge displays a category label.
24
- *
25
- * @deprecated Renamed to `CategoryLabel` (same `color` and `variant`). Map `size="small"` to
26
- * `"medium"`, and `size="medium"` (or no size) to `"large"`, CategoryLabel's default.
27
- * CategoryBadge is removed in 3.0 (decision 0018).
28
- */
29
- export declare const CategoryBadge: React.FC<CategoryBadgeProps>;
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import { type CategoryLabelProps } from '../CategoryLabel/CategoryLabel';
3
- export type { CategoryColor, CategoryVariant } from '../CategoryLabel/CategoryLabel';
4
- /**
5
- * Size options for CategoryBadge
6
- * @deprecated Use `CategoryLabelSize`: CategoryBadge `small` is CategoryLabel `medium`, and
7
- * `medium` is `large` (decision 0018).
8
- */
9
- export type CategorySize = 'small' | 'medium';
10
- /**
11
- * Props for the CategoryBadge component
12
- * @deprecated Use `CategoryLabelProps`. CategoryBadge is renamed CategoryLabel and is removed in
13
- * 3.0 (decision 0018).
14
- */
15
- export interface CategoryBadgeProps extends Omit<CategoryLabelProps, 'size'> {
16
- /**
17
- * Size of the badge
18
- * @default 'medium'
19
- */
20
- size?: CategorySize;
21
- }
22
- /**
23
- * CategoryBadge displays a category label.
24
- *
25
- * @deprecated Renamed to `CategoryLabel` (same `color` and `variant`). Map `size="small"` to
26
- * `"medium"`, and `size="medium"` (or no size) to `"large"`, CategoryLabel's default.
27
- * CategoryBadge is removed in 3.0 (decision 0018).
28
- */
29
- export declare const CategoryBadge: React.FC<CategoryBadgeProps>;
@@ -1,29 +0,0 @@
1
- 'use client';
2
- import { __rest, __assign } from '../../../vendor/tslib/tslib.es6.mjs';
3
- import { jsx } from 'react/jsx-runtime';
4
- import { CategoryLabel } from '../CategoryLabel/CategoryLabel.mjs';
5
-
6
- // CategoryBadge sizes on the decision 0018 scale
7
- var toLabelSize = {
8
- small: 'medium',
9
- medium: 'large'
10
- };
11
- /**
12
- * CategoryBadge displays a category label.
13
- *
14
- * @deprecated Renamed to `CategoryLabel` (same `color` and `variant`). Map `size="small"` to
15
- * `"medium"`, and `size="medium"` (or no size) to `"large"`, CategoryLabel's default.
16
- * CategoryBadge is removed in 3.0 (decision 0018).
17
- */
18
- var CategoryBadge = function CategoryBadge(_a) {
19
- var _b = _a.size,
20
- size = _b === void 0 ? 'medium' : _b,
21
- props = __rest(_a, ["size"]);
22
- return jsx(CategoryLabel, __assign({}, props, {
23
- size: toLabelSize[size]
24
- }));
25
- };
26
- CategoryBadge.displayName = 'CategoryBadge';
27
-
28
- export { CategoryBadge };
29
- //# sourceMappingURL=CategoryBadge.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CategoryBadge.mjs","sources":["../../../../src/components/atoms/CategoryBadge/CategoryBadge.tsx"],"sourcesContent":["import React from 'react'\nimport { CategoryLabel, type CategoryLabelProps } from '../CategoryLabel/CategoryLabel'\n\nexport type { CategoryColor, CategoryVariant } from '../CategoryLabel/CategoryLabel'\n\n/**\n * Size options for CategoryBadge\n * @deprecated Use `CategoryLabelSize`: CategoryBadge `small` is CategoryLabel `medium`, and\n * `medium` is `large` (decision 0018).\n */\nexport type CategorySize = 'small' | 'medium'\n\n/**\n * Props for the CategoryBadge component\n * @deprecated Use `CategoryLabelProps`. CategoryBadge is renamed CategoryLabel and is removed in\n * 3.0 (decision 0018).\n */\nexport interface CategoryBadgeProps extends Omit<CategoryLabelProps, 'size'> {\n /**\n * Size of the badge\n * @default 'medium'\n */\n size?: CategorySize\n}\n\n// CategoryBadge sizes on the decision 0018 scale\nconst toLabelSize = { small: 'medium', medium: 'large' } as const\n\n/**\n * CategoryBadge displays a category label.\n *\n * @deprecated Renamed to `CategoryLabel` (same `color` and `variant`). Map `size=\"small\"` to\n * `\"medium\"`, and `size=\"medium\"` (or no size) to `\"large\"`, CategoryLabel's default.\n * CategoryBadge is removed in 3.0 (decision 0018).\n */\nexport const CategoryBadge: React.FC<CategoryBadgeProps> = ({ size = 'medium', ...props }) => (\n <CategoryLabel {...props} size={toLabelSize[size]} />\n)\n\nCategoryBadge.displayName = 'CategoryBadge'\n"],"names":["toLabelSize","small","medium","CategoryBadge","_a","_b","size","props","__rest","_jsx","CategoryLabel","__assign","displayName"],"mappings":";;;;;AAyBA;AACA,IAAMA,WAAW,GAAG;AAAEC,EAAAA,KAAK,EAAE,QAAQ;AAAEC,EAAAA,MAAM,EAAE,OAAA;AAAO,CAAW,CAAA;AAEjE;;;;;;AAMG;IACUC,aAAa,GAAiC,SAA9CA,aAAaA,CAAkCC,EAA6B,EAAA;AAA3B,EAAA,IAAAC,EAAA,GAAAD,EAAA,CAAAE,IAAe;IAAfA,IAAI,GAAGD,EAAA,KAAA,KAAA,CAAA,GAAA,QAAQ,KAAA;IAAKE,KAAK,GAA3BC,MAAA,CAAAJ,EAAA,EAAA,CAAA,MAAA,CAA6B,CAAF,CAAA;EAAO,OAC5FK,GAAA,CAACC,aAAa,EAAAC,QAAA,CAAA,EAAA,EAAKJ,KAAK,EAAE;IAAAD,IAAI,EAAEN,WAAW,CAACM,IAAI,CAAA;AAAC,GAAA,CAAA,CAAI,CAAA;EACtD;AAEDH,aAAa,CAACS,WAAW,GAAG,eAAe;;;;"}
@@ -1,2 +0,0 @@
1
- export { CategoryBadge } from './CategoryBadge.mjs';
2
- export type { CategoryBadgeProps, CategorySize } from './CategoryBadge.mjs';
@@ -1,2 +0,0 @@
1
- export { CategoryBadge } from './CategoryBadge';
2
- export type { CategoryBadgeProps, CategorySize } from './CategoryBadge';
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import { BaseChipProps } from './shared/types.mjs';
3
- /** @deprecated Becomes `FilterChipProps` in 3.0 (decision 0016). */
4
- export interface BooleanChipProps extends BaseChipProps {
5
- /** Whether the chip is in selected state */
6
- selected: boolean;
7
- /** Callback function when the chip is clicked/toggled */
8
- onClick: () => void;
9
- }
10
- /**
11
- * BooleanChip - Toggleable chip for quick filter controls
12
- *
13
- * Use this component for multi-select filter controls where users can
14
- * see which options are active. Common in table filtering patterns where
15
- * users toggle filters on/off.
16
- *
17
- * Features:
18
- * - Shows checkmark icon when selected
19
- * - Entire chip is clickable to toggle
20
- * - Keyboard activation with Space or Enter
21
- * - Uses checkbox role with aria-checked
22
- * - Light-blue fill and blue text when selected and enabled; disabled colours when disabled
23
- *
24
- * @deprecated Becomes `FilterChip` in 3.0, with the same props. Keep using `BooleanChip`
25
- * until you upgrade; in 3.0, replace `FilterChip` with `InputChip` first, then
26
- * `BooleanChip` with `FilterChip` (decision 0016).
27
- */
28
- export declare const BooleanChip: React.FC<BooleanChipProps>;
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import { BaseChipProps } from './shared/types';
3
- /** @deprecated Becomes `FilterChipProps` in 3.0 (decision 0016). */
4
- export interface BooleanChipProps extends BaseChipProps {
5
- /** Whether the chip is in selected state */
6
- selected: boolean;
7
- /** Callback function when the chip is clicked/toggled */
8
- onClick: () => void;
9
- }
10
- /**
11
- * BooleanChip - Toggleable chip for quick filter controls
12
- *
13
- * Use this component for multi-select filter controls where users can
14
- * see which options are active. Common in table filtering patterns where
15
- * users toggle filters on/off.
16
- *
17
- * Features:
18
- * - Shows checkmark icon when selected
19
- * - Entire chip is clickable to toggle
20
- * - Keyboard activation with Space or Enter
21
- * - Uses checkbox role with aria-checked
22
- * - Light-blue fill and blue text when selected and enabled; disabled colours when disabled
23
- *
24
- * @deprecated Becomes `FilterChip` in 3.0, with the same props. Keep using `BooleanChip`
25
- * until you upgrade; in 3.0, replace `FilterChip` with `InputChip` first, then
26
- * `BooleanChip` with `FilterChip` (decision 0016).
27
- */
28
- export declare const BooleanChip: React.FC<BooleanChipProps>;
@@ -1,76 +0,0 @@
1
- 'use client';
2
- import { __rest, __assign } from '../../../vendor/tslib/tslib.es6.mjs';
3
- import { jsxs, jsx } from 'react/jsx-runtime';
4
- import { Icon } from '../Icon/Icon.mjs';
5
- import { StyledChip, IconContainer } from './shared/ChipBase.mjs';
6
-
7
- /**
8
- * BooleanChip - Toggleable chip for quick filter controls
9
- *
10
- * Use this component for multi-select filter controls where users can
11
- * see which options are active. Common in table filtering patterns where
12
- * users toggle filters on/off.
13
- *
14
- * Features:
15
- * - Shows checkmark icon when selected
16
- * - Entire chip is clickable to toggle
17
- * - Keyboard activation with Space or Enter
18
- * - Uses checkbox role with aria-checked
19
- * - Light-blue fill and blue text when selected and enabled; disabled colours when disabled
20
- *
21
- * @deprecated Becomes `FilterChip` in 3.0, with the same props. Keep using `BooleanChip`
22
- * until you upgrade; in 3.0, replace `FilterChip` with `InputChip` first, then
23
- * `BooleanChip` with `FilterChip` (decision 0016).
24
- */
25
- var BooleanChip = function BooleanChip(_a) {
26
- var children = _a.children,
27
- selected = _a.selected,
28
- onClick = _a.onClick;
29
- // Deprecated and ignored: chips have one size (decision 0035)
30
- _a.size;
31
- var _b = _a.disabled,
32
- disabled = _b === void 0 ? false : _b,
33
- dataTestId = _a["data-testid"],
34
- ariaLabel = _a["aria-label"],
35
- ariaDescribedBy = _a["aria-describedby"],
36
- props = __rest(_a, ["children", "selected", "onClick", "size", "disabled", 'data-testid', 'aria-label', 'aria-describedby']);
37
- var handleClick = function handleClick() {
38
- if (!disabled) {
39
- onClick();
40
- }
41
- };
42
- var handleKeyDown = function handleKeyDown(event) {
43
- // Handle activation with Space or Enter
44
- if (event.key === 'Enter' || event.key === ' ') {
45
- event.preventDefault();
46
- handleClick();
47
- }
48
- };
49
- return jsxs(StyledChip, __assign({
50
- "$variant": "subtle",
51
- "$disabled": disabled || undefined,
52
- "$clickable": !disabled,
53
- "$selected": selected,
54
- onClick: handleClick,
55
- onKeyDown: handleKeyDown,
56
- tabIndex: disabled ? undefined : 0,
57
- role: "checkbox",
58
- "aria-checked": selected ? 'true' : 'false',
59
- "aria-label": ariaLabel,
60
- "aria-describedby": ariaDescribedBy,
61
- "aria-disabled": disabled ? 'true' : undefined,
62
- "data-testid": dataTestId
63
- }, props, {
64
- children: [selected && jsx(IconContainer, {
65
- "aria-hidden": "true",
66
- children: jsx(Icon, {
67
- name: "check",
68
- size: "sm",
69
- iconColor: "inherit"
70
- })
71
- }), children]
72
- }));
73
- };
74
-
75
- export { BooleanChip };
76
- //# sourceMappingURL=BooleanChip.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BooleanChip.mjs","sources":["../../../../src/components/atoms/Chip/BooleanChip.tsx"],"sourcesContent":["import React from 'react'\nimport { Icon } from '../Icon'\nimport { BaseChipProps } from './shared/types'\nimport { StyledChip, IconContainer } from './shared/ChipBase'\n\n/** @deprecated Becomes `FilterChipProps` in 3.0 (decision 0016). */\nexport interface BooleanChipProps extends BaseChipProps {\n /** Whether the chip is in selected state */\n selected: boolean\n /** Callback function when the chip is clicked/toggled */\n onClick: () => void\n}\n\n/**\n * BooleanChip - Toggleable chip for quick filter controls\n * \n * Use this component for multi-select filter controls where users can\n * see which options are active. Common in table filtering patterns where\n * users toggle filters on/off.\n * \n * Features:\n * - Shows checkmark icon when selected\n * - Entire chip is clickable to toggle\n * - Keyboard activation with Space or Enter\n * - Uses checkbox role with aria-checked\n * - Light-blue fill and blue text when selected and enabled; disabled colours when disabled\n *\n * @deprecated Becomes `FilterChip` in 3.0, with the same props. Keep using `BooleanChip`\n * until you upgrade; in 3.0, replace `FilterChip` with `InputChip` first, then\n * `BooleanChip` with `FilterChip` (decision 0016).\n */\nexport const BooleanChip: React.FC<BooleanChipProps> = ({\n children,\n selected,\n onClick,\n // Deprecated and ignored: chips have one size (decision 0035)\n size: _size,\n disabled = false,\n 'data-testid': dataTestId,\n 'aria-label': ariaLabel,\n 'aria-describedby': ariaDescribedBy,\n ...props\n}) => {\n const handleClick = () => {\n if (!disabled) {\n onClick()\n }\n }\n \n const handleKeyDown = (event: React.KeyboardEvent) => {\n // Handle activation with Space or Enter\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault()\n handleClick()\n }\n }\n \n return (\n <StyledChip\n $variant=\"subtle\"\n $disabled={disabled || undefined}\n $clickable={!disabled}\n $selected={selected}\n onClick={handleClick}\n onKeyDown={handleKeyDown}\n tabIndex={disabled ? undefined : 0}\n role=\"checkbox\"\n aria-checked={selected ? 'true' : 'false'}\n aria-label={ariaLabel}\n aria-describedby={ariaDescribedBy}\n aria-disabled={disabled ? 'true' : undefined}\n data-testid={dataTestId}\n {...props}\n >\n {/* Show selected indicator when selected */}\n {selected && (\n <IconContainer aria-hidden=\"true\">\n <Icon name=\"check\" size=\"sm\" iconColor=\"inherit\" />\n </IconContainer>\n )}\n \n {children}\n </StyledChip>\n )\n}\n"],"names":["BooleanChip","_a","children","selected","onClick","size","_b","disabled","dataTestId","ariaLabel","ariaDescribedBy","props","__rest","handleClick","handleKeyDown","event","key","preventDefault","_jsxs","StyledChip","__assign","undefined","onKeyDown","tabIndex","role","_jsx","IconContainer","Icon","name","iconColor"],"mappings":";;;;;;AAaA;;;;;;;;;;;;;;;;;AAiBG;IACUA,WAAW,GAA+B,SAA1CA,WAAWA,CAAgCC,EAWvD,EAAA;AAVC,EAAA,IAAAC,QAAQ,GAAAD,EAAA,CAAAC,QAAA,CAAA;IACRC,QAAQ,GAAAF,EAAA,CAAAE,QAAA,CAAA;IACRC,OAAO,GAAAH,EAAA,CAAAG,OAAA,CAAA;AACP,IAAA;IACWH,EAAA,CAAAI,IAAA,CAAA;QACXC,EAAgB,GAAAL,EAAA,CAAAM,QAAA,CAAA;IAAhBA,QAAQ,GAAGD,EAAA,KAAA,KAAA,CAAA,GAAA,KAAK,KAAA,CAAA;AACDE,IAAAA,UAAU,oBAAA,CAAA;AACXC,IAAAA,SAAS,mBAAA,CAAA;AACHC,IAAAA,eAAe,yBAAA,CAAA;IAChCC,KAAK,GAV8CC,MAAA,CAAAX,EAAA,EAAA,CAAA,UAAA,EAAA,UAAA,EAAA,SAAA,EAAA,MAAA,EAAA,UAAA,EAAA,aAAA,EAAA,YAAA,EAAA,kBAAA,CAWvD,EADS;AAER,EAAA,IAAMY,WAAW,GAAG,SAAdA,WAAWA,GAAG;IAClB,IAAI,CAACN,QAAQ,EAAE;AACbH,MAAAA,OAAO,EAAE,CAAA;AACX,KAAA;GACD,CAAA;AAED,EAAA,IAAMU,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,KAA0B,EAAA;AAC/C;IACA,IAAIA,KAAK,CAACC,GAAG,KAAK,OAAO,IAAID,KAAK,CAACC,GAAG,KAAK,GAAG,EAAE;MAC9CD,KAAK,CAACE,cAAc,EAAE,CAAA;AACtBJ,MAAAA,WAAW,EAAE,CAAA;AACf,KAAA;GACD,CAAA;AAED,EAAA,OACEK,KAACC,UAAU,EAAAC,QAAA,CAAA;AAAA,IAAA,UAAA,EACA,QAAQ;IACN,WAAA,EAAAb,QAAQ,IAAIc,SAAS;IAAA,YAAA,EACpB,CAACd,QAAQ;AAAA,IAAA,WAAA,EACVJ,QAAQ;AACnBC,IAAAA,OAAO,EAAES,WAAW;AACpBS,IAAAA,SAAS,EAAER,aAAa;AACxBS,IAAAA,QAAQ,EAAEhB,QAAQ,GAAGc,SAAS,GAAG,CAAC;AAClCG,IAAAA,IAAI,EAAC,UAAU;oBACDrB,QAAQ,GAAG,MAAM,GAAG,OAAO;kBAC7BM,SAAS;AAAA,IAAA,kBAAA,EACHC,eAAe;AAClB,IAAA,eAAA,EAAAH,QAAQ,GAAG,MAAM,GAAGc,SAAS;AAAA,IAAA,aAAA,EAC/Bb,UAAAA;GACT,EAAAG,KAAK;eAGRR,QAAQ,IACPsB,GAAA,CAACC,aAAa,EAAA;AAAA,MAAA,aAAA,EAAa,MAAM;AAC/BxB,MAAAA,QAAA,EAAAuB,GAAA,CAACE,IAAI,EAAC;AAAAC,QAAAA,IAAI,EAAC,OAAO;AAACvB,QAAAA,IAAI,EAAC,IAAI;AAACwB,QAAAA,SAAS,EAAC,SAAA;OAAY,CAAA;KAAA,CAEtD,EAEA3B,QAAQ,CAAA;AACE,GAAA,CAAA,CAAA,CAAA;AAEjB;;;;"}
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import { type StatusLabelProps } from '../StatusLabel/StatusLabelBase.mjs';
3
- export type { StatusType, StatusSize } from '../StatusLabel/StatusLabelBase.mjs';
4
- /**
5
- * Props for the StatusBadge component
6
- * @deprecated Use `StatusLabelProps`. StatusBadge is renamed StatusLabel and is removed in 3.0
7
- * (decision 0018).
8
- */
9
- export interface StatusBadgeProps extends StatusLabelProps {
10
- /**
11
- * Whether to show the icon
12
- * @default true
13
- * @deprecated StatusLabel always shows its status icon or shape with the text, so status is
14
- * never conveyed by colour alone (decision 0045).
15
- */
16
- showIcon?: boolean;
17
- }
18
- /**
19
- * StatusBadge displays a transaction or task status.
20
- *
21
- * @deprecated Renamed to `StatusLabel` (same `status`, `size`, `label`, `liveRegion`), which always
22
- * shows its status icon or shape. StatusBadge is removed in 3.0 (decision 0018).
23
- */
24
- export declare const StatusBadge: React.FC<StatusBadgeProps>;
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import { type StatusLabelProps } from '../StatusLabel/StatusLabelBase';
3
- export type { StatusType, StatusSize } from '../StatusLabel/StatusLabelBase';
4
- /**
5
- * Props for the StatusBadge component
6
- * @deprecated Use `StatusLabelProps`. StatusBadge is renamed StatusLabel and is removed in 3.0
7
- * (decision 0018).
8
- */
9
- export interface StatusBadgeProps extends StatusLabelProps {
10
- /**
11
- * Whether to show the icon
12
- * @default true
13
- * @deprecated StatusLabel always shows its status icon or shape with the text, so status is
14
- * never conveyed by colour alone (decision 0045).
15
- */
16
- showIcon?: boolean;
17
- }
18
- /**
19
- * StatusBadge displays a transaction or task status.
20
- *
21
- * @deprecated Renamed to `StatusLabel` (same `status`, `size`, `label`, `liveRegion`), which always
22
- * shows its status icon or shape. StatusBadge is removed in 3.0 (decision 0018).
23
- */
24
- export declare const StatusBadge: React.FC<StatusBadgeProps>;
@@ -1,18 +0,0 @@
1
- 'use client';
2
- import { __assign } from '../../../vendor/tslib/tslib.es6.mjs';
3
- import { jsx } from 'react/jsx-runtime';
4
- import { StatusLabelBase } from '../StatusLabel/StatusLabelBase.mjs';
5
-
6
- /**
7
- * StatusBadge displays a transaction or task status.
8
- *
9
- * @deprecated Renamed to `StatusLabel` (same `status`, `size`, `label`, `liveRegion`), which always
10
- * shows its status icon or shape. StatusBadge is removed in 3.0 (decision 0018).
11
- */
12
- var StatusBadge = function StatusBadge(props) {
13
- return jsx(StatusLabelBase, __assign({}, props));
14
- };
15
- StatusBadge.displayName = 'StatusBadge';
16
-
17
- export { StatusBadge };
18
- //# sourceMappingURL=StatusBadge.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StatusBadge.mjs","sources":["../../../../src/components/atoms/StatusBadge/StatusBadge.tsx"],"sourcesContent":["import React from 'react'\nimport { StatusLabelBase, type StatusLabelProps } from '../StatusLabel/StatusLabelBase'\n\nexport type { StatusType, StatusSize } from '../StatusLabel/StatusLabelBase'\n\n/**\n * Props for the StatusBadge component\n * @deprecated Use `StatusLabelProps`. StatusBadge is renamed StatusLabel and is removed in 3.0\n * (decision 0018).\n */\nexport interface StatusBadgeProps extends StatusLabelProps {\n /**\n * Whether to show the icon\n * @default true\n * @deprecated StatusLabel always shows its status icon or shape with the text, so status is\n * never conveyed by colour alone (decision 0045).\n */\n showIcon?: boolean\n}\n\n/**\n * StatusBadge displays a transaction or task status.\n *\n * @deprecated Renamed to `StatusLabel` (same `status`, `size`, `label`, `liveRegion`), which always\n * shows its status icon or shape. StatusBadge is removed in 3.0 (decision 0018).\n */\nexport const StatusBadge: React.FC<StatusBadgeProps> = (props) => <StatusLabelBase {...props} />\n\nStatusBadge.displayName = 'StatusBadge'\n"],"names":["StatusBadge","props","_jsx","StatusLabelBase","__assign","displayName"],"mappings":";;;;;AAoBA;;;;;AAKG;IACUA,WAAW,GAA+B,SAA1CA,WAAWA,CAAgCC,KAAK,EAAA;EAAK,OAAAC,GAAA,CAACC,eAAe,EAAKC,QAAA,CAAA,EAAA,EAAAH,KAAK,CAAI,CAAA,CAAA;AAA9B,EAA8B;AAEhGD,WAAW,CAACK,WAAW,GAAG,aAAa;;;;"}
@@ -1,2 +0,0 @@
1
- export { StatusBadge } from './StatusBadge.mjs';
2
- export type { StatusBadgeProps } from './StatusBadge.mjs';
@@ -1,2 +0,0 @@
1
- export { StatusBadge } from './StatusBadge';
2
- export type { StatusBadgeProps } from './StatusBadge';
@@ -1,21 +0,0 @@
1
- import { FC } from 'react';
2
- interface PageTitleProps {
3
- title: string;
4
- hasBackButton?: boolean;
5
- subtitle?: string;
6
- }
7
- /**
8
- * @deprecated PageTitle is a leftover from the personal site (its back button always links to `/music`)
9
- * and will be removed in the next major version. Compose a page title from `Typography` in a `Stack`:
10
- *
11
- * ```tsx
12
- * <Stack direction="column" gap="md">
13
- * <Typography variant="h1">{title}</Typography>
14
- * <Typography variant="caption" color="subdued">{subtitle}</Typography>
15
- * </Stack>
16
- * ```
17
- *
18
- * For a back link, add an `IconButton` with your own `url` and `aria-label`.
19
- */
20
- export declare const PageTitle: FC<PageTitleProps>;
21
- export {};
@@ -1,21 +0,0 @@
1
- import { FC } from 'react';
2
- interface PageTitleProps {
3
- title: string;
4
- hasBackButton?: boolean;
5
- subtitle?: string;
6
- }
7
- /**
8
- * @deprecated PageTitle is a leftover from the personal site (its back button always links to `/music`)
9
- * and will be removed in the next major version. Compose a page title from `Typography` in a `Stack`:
10
- *
11
- * ```tsx
12
- * <Stack direction="column" gap="md">
13
- * <Typography variant="h1">{title}</Typography>
14
- * <Typography variant="caption" color="subdued">{subtitle}</Typography>
15
- * </Stack>
16
- * ```
17
- *
18
- * For a back link, add an `IconButton` with your own `url` and `aria-label`.
19
- */
20
- export declare const PageTitle: FC<PageTitleProps>;
21
- export {};
@@ -1,77 +0,0 @@
1
- 'use client';
2
- import { __makeTemplateObject } from '../../../vendor/tslib/tslib.es6.mjs';
3
- import { jsxs, jsx } from 'react/jsx-runtime';
4
- import styled$module from 'styled-components';
5
- const styled = styled$module.default || styled$module;
6
- import { IconButton } from '../../atoms/IconButton/IconButton.mjs';
7
- import { Stack } from '../../atoms/Stack/Stack.mjs';
8
- import { Typography } from '../../atoms/Typography/Typography.mjs';
9
- import tokens from '../../../lib/cssTokens.mjs';
10
-
11
- var PageTitleStyled = /*#__PURE__*/styled.div.withConfig({
12
- shouldForwardProp: function shouldForwardProp(prop) {
13
- return !prop.startsWith('$');
14
- },
15
- displayName: "PageTitle__PageTitleStyled",
16
- componentId: "sc-16h256f-0"
17
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-bottom: ", ";\n margin-top: ", ";\n"], ["\n margin-bottom: ", ";\n margin-top: ", ";\n"
18
- /**
19
- * @deprecated PageTitle is a leftover from the personal site (its back button always links to `/music`)
20
- * and will be removed in the next major version. Compose a page title from `Typography` in a `Stack`:
21
- *
22
- * ```tsx
23
- * <Stack direction="column" gap="md">
24
- * <Typography variant="h1">{title}</Typography>
25
- * <Typography variant="caption" color="subdued">{subtitle}</Typography>
26
- * </Stack>
27
- * ```
28
- *
29
- * For a back link, add an `IconButton` with your own `url` and `aria-label`.
30
- */])), tokens.semantic.space[600], function (_a) {
31
- var $hasBackButton = _a.$hasBackButton;
32
- return $hasBackButton ? tokens.semantic.space[0] : tokens.semantic.space[1200];
33
- });
34
- /**
35
- * @deprecated PageTitle is a leftover from the personal site (its back button always links to `/music`)
36
- * and will be removed in the next major version. Compose a page title from `Typography` in a `Stack`:
37
- *
38
- * ```tsx
39
- * <Stack direction="column" gap="md">
40
- * <Typography variant="h1">{title}</Typography>
41
- * <Typography variant="caption" color="subdued">{subtitle}</Typography>
42
- * </Stack>
43
- * ```
44
- *
45
- * For a back link, add an `IconButton` with your own `url` and `aria-label`.
46
- */
47
- var PageTitle = function PageTitle(_a) {
48
- var title = _a.title,
49
- _b = _a.hasBackButton,
50
- hasBackButton = _b === void 0 ? false : _b,
51
- subtitle = _a.subtitle;
52
- return jsxs(PageTitleStyled, {
53
- "$hasBackButton": hasBackButton,
54
- children: [hasBackButton && jsx(IconButton, {
55
- iconName: 'back',
56
- size: 'large',
57
- variant: 'naked',
58
- url: '/music',
59
- "aria-label": 'Go back to music page'
60
- }), jsxs(Stack, {
61
- direction: 'column',
62
- gap: "md",
63
- children: [jsx(Typography, {
64
- variant: "h1",
65
- children: title
66
- }), subtitle && jsx(Typography, {
67
- variant: 'caption',
68
- color: 'subdued',
69
- children: subtitle
70
- })]
71
- })]
72
- });
73
- };
74
- var templateObject_1;
75
-
76
- export { PageTitle };
77
- //# sourceMappingURL=PageTitle.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PageTitle.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export * from './PageTitle.mjs';
@@ -1 +0,0 @@
1
- export * from './PageTitle';