@common-origin/design-system 2.23.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 (116) hide show
  1. package/README.md +2 -2
  2. package/dist/client.js +184 -479
  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 +22 -34
  10. package/dist/components/atoms/Box/Box.d.ts +22 -34
  11. package/dist/components/atoms/Box/Box.mjs +8 -11
  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/AgentInput/AgentInput.d.mts +5 -0
  53. package/dist/components/molecules/AgentInput/AgentInput.d.ts +5 -0
  54. package/dist/components/molecules/AgentInput/AgentInput.mjs +1 -1
  55. package/dist/components/molecules/Alert/Alert.d.mts +1 -9
  56. package/dist/components/molecules/Alert/Alert.d.ts +1 -9
  57. package/dist/components/molecules/Alert/Alert.mjs +13 -26
  58. package/dist/components/molecules/ChipGroup/ChipGroup.d.mts +0 -1
  59. package/dist/components/molecules/ChipGroup/ChipGroup.d.ts +0 -1
  60. package/dist/components/molecules/ChipGroup/ChipGroup.mjs +1 -6
  61. package/dist/components/molecules/DateGroup/DateGroup.d.mts +1 -2
  62. package/dist/components/molecules/DateGroup/DateGroup.d.ts +1 -2
  63. package/dist/components/molecules/Modal/Modal.d.mts +0 -1
  64. package/dist/components/molecules/Modal/Modal.d.ts +0 -1
  65. package/dist/components/molecules/TabBar/TabBar.d.mts +0 -13
  66. package/dist/components/molecules/TabBar/TabBar.d.ts +0 -13
  67. package/dist/components/molecules/TabBar/TabBar.mjs +2 -4
  68. package/dist/components/molecules/TabBar/index.d.mts +1 -1
  69. package/dist/components/molecules/TabBar/index.d.ts +1 -1
  70. package/dist/components/molecules/index.d.mts +0 -1
  71. package/dist/components/molecules/index.d.ts +0 -1
  72. package/dist/data.js +13 -556
  73. package/dist/data.js.map +1 -1
  74. package/dist/index.js +0 -5
  75. package/dist/index.js.map +1 -1
  76. package/dist/index.mjs +1 -5
  77. package/dist/index.mjs.map +1 -1
  78. package/dist/lib/tokenAliases.d.mts +11 -11
  79. package/dist/lib/tokenAliases.d.ts +11 -11
  80. package/dist/lib/tokenAliases.mjs +13 -88
  81. package/dist/lib/tokenAliases.mjs.map +1 -1
  82. package/dist/styles/tokens.d.mts +3 -2347
  83. package/dist/styles/tokens.d.ts +3 -2347
  84. package/dist/styles/tokens.json +13 -556
  85. package/dist/styles/tokens.json.mjs +13 -556
  86. package/dist/styles/tokens.json.mjs.map +1 -1
  87. package/dist/tokens/index.js +13 -556
  88. package/dist/tokens/index.js.map +1 -1
  89. package/dist/tokens/index.mjs +13 -556
  90. package/dist/tokens/index.mjs.map +1 -1
  91. package/dist/tokens/styles/tokens.d.mts +3 -2347
  92. package/dist/tokens/styles/tokens.d.ts +3 -2347
  93. package/dist/tokens.css +6 -478
  94. package/package.json +2 -2
  95. package/dist/components/atoms/CategoryBadge/CategoryBadge.d.mts +0 -29
  96. package/dist/components/atoms/CategoryBadge/CategoryBadge.d.ts +0 -29
  97. package/dist/components/atoms/CategoryBadge/CategoryBadge.mjs +0 -29
  98. package/dist/components/atoms/CategoryBadge/CategoryBadge.mjs.map +0 -1
  99. package/dist/components/atoms/CategoryBadge/index.d.mts +0 -2
  100. package/dist/components/atoms/CategoryBadge/index.d.ts +0 -2
  101. package/dist/components/atoms/Chip/BooleanChip.d.mts +0 -28
  102. package/dist/components/atoms/Chip/BooleanChip.d.ts +0 -28
  103. package/dist/components/atoms/Chip/BooleanChip.mjs +0 -76
  104. package/dist/components/atoms/Chip/BooleanChip.mjs.map +0 -1
  105. package/dist/components/atoms/StatusBadge/StatusBadge.d.mts +0 -24
  106. package/dist/components/atoms/StatusBadge/StatusBadge.d.ts +0 -24
  107. package/dist/components/atoms/StatusBadge/StatusBadge.mjs +0 -18
  108. package/dist/components/atoms/StatusBadge/StatusBadge.mjs.map +0 -1
  109. package/dist/components/atoms/StatusBadge/index.d.mts +0 -2
  110. package/dist/components/atoms/StatusBadge/index.d.ts +0 -2
  111. package/dist/components/molecules/PageTitle/PageTitle.d.mts +0 -21
  112. package/dist/components/molecules/PageTitle/PageTitle.d.ts +0 -21
  113. package/dist/components/molecules/PageTitle/PageTitle.mjs +0 -77
  114. package/dist/components/molecules/PageTitle/PageTitle.mjs.map +0 -1
  115. package/dist/components/molecules/PageTitle/index.d.mts +0 -1
  116. package/dist/components/molecules/PageTitle/index.d.ts +0 -1
@@ -6,8 +6,7 @@ export interface DateGroupProps {
6
6
  /** Children to render under the date header (typically transactions) */
7
7
  children: React.ReactNode;
8
8
  /**
9
- * Format mode for the date header, passed to DateFormatter's `mode`. `'relative'` is
10
- * deprecated: it behaves exactly like `'smart'`, so use `'smart'` (#82).
9
+ * Format mode for the date header, passed to DateFormatter's `mode`.
11
10
  */
12
11
  format?: DateFormatMode;
13
12
  /** Whether to show total amount for this date group */
@@ -6,8 +6,7 @@ export interface DateGroupProps {
6
6
  /** Children to render under the date header (typically transactions) */
7
7
  children: React.ReactNode;
8
8
  /**
9
- * Format mode for the date header, passed to DateFormatter's `mode`. `'relative'` is
10
- * deprecated: it behaves exactly like `'smart'`, so use `'smart'` (#82).
9
+ * Format mode for the date header, passed to DateFormatter's `mode`.
11
10
  */
12
11
  format?: DateFormatMode;
13
12
  /** Whether to show total amount for this date group */
@@ -9,7 +9,6 @@ export interface ModalAction {
9
9
  onClick: () => void;
10
10
  /**
11
11
  * Button variant. `accent` is the blue call to action (at most one per view).
12
- * `emphasis` is a deprecated alias for `accent` and will be removed in 3.0.
13
12
  */
14
13
  variant?: ButtonVariant;
15
14
  /** Optional leading icon */
@@ -9,7 +9,6 @@ export interface ModalAction {
9
9
  onClick: () => void;
10
10
  /**
11
11
  * Button variant. `accent` is the blue call to action (at most one per view).
12
- * `emphasis` is a deprecated alias for `accent` and will be removed in 3.0.
13
12
  */
14
13
  variant?: ButtonVariant;
15
14
  /** Optional leading icon */
@@ -1,9 +1,3 @@
1
- /**
2
- * Tab variant options for TabBar.
3
- * @deprecated TabBar has one look, `underline` (decision 0020). `'default'` and `'pills'` render
4
- * as `underline`. The type is removed in 3.0.
5
- */
6
- export type TabVariant = 'default' | 'pills' | 'underline';
7
1
  /**
8
2
  * Individual tab configuration
9
3
  */
@@ -42,13 +36,6 @@ export interface TabBarProps {
42
36
  * Callback when tab changes
43
37
  */
44
38
  onTabChange: (tabId: string) => void;
45
- /**
46
- * Visual variant of the tabs.
47
- * @deprecated TabBar has one look, `underline` (decision 0020). `'default'` and `'pills'` render
48
- * as `underline`. Remove the prop; it is removed in 3.0.
49
- * @default 'underline'
50
- */
51
- variant?: TabVariant;
52
39
  /**
53
40
  * Accessible label for the tab list
54
41
  */
@@ -1,9 +1,3 @@
1
- /**
2
- * Tab variant options for TabBar.
3
- * @deprecated TabBar has one look, `underline` (decision 0020). `'default'` and `'pills'` render
4
- * as `underline`. The type is removed in 3.0.
5
- */
6
- export type TabVariant = 'default' | 'pills' | 'underline';
7
1
  /**
8
2
  * Individual tab configuration
9
3
  */
@@ -42,13 +36,6 @@ export interface TabBarProps {
42
36
  * Callback when tab changes
43
37
  */
44
38
  onTabChange: (tabId: string) => void;
45
- /**
46
- * Visual variant of the tabs.
47
- * @deprecated TabBar has one look, `underline` (decision 0020). `'default'` and `'pills'` render
48
- * as `underline`. Remove the prop; it is removed in 3.0.
49
- * @default 'underline'
50
- */
51
- variant?: TabVariant;
52
39
  /**
53
40
  * Accessible label for the tab list
54
41
  */
@@ -88,10 +88,8 @@ var StyledBadge = /*#__PURE__*/styled.span.withConfig({
88
88
  var TabBar = function TabBar(_a) {
89
89
  var tabs = _a.tabs,
90
90
  activeTab = _a.activeTab,
91
- onTabChange = _a.onTabChange;
92
- // Deprecated: every variant renders as underline (decision 0020)
93
- _a.variant;
94
- var _b = _a["aria-label"],
91
+ onTabChange = _a.onTabChange,
92
+ _b = _a["aria-label"],
95
93
  ariaLabel = _b === void 0 ? 'Tab navigation' : _b,
96
94
  dataTestId = _a["data-testid"];
97
95
  var tabRefs = useRef([]);
@@ -1,2 +1,2 @@
1
1
  export { TabBar } from './TabBar.mjs';
2
- export type { TabBarProps, Tab, TabVariant } from './TabBar.mjs';
2
+ export type { TabBarProps, Tab } from './TabBar.mjs';
@@ -1,2 +1,2 @@
1
1
  export { TabBar } from './TabBar';
2
- export type { TabBarProps, Tab, TabVariant } from './TabBar';
2
+ export type { TabBarProps, Tab } from './TabBar';
@@ -16,7 +16,6 @@ export * from './Dropdown/index.mjs';
16
16
  export * from './List/index.mjs';
17
17
  export * from './Modal/index.mjs';
18
18
  export * from './NumberInput/index.mjs';
19
- export * from './PageTitle/index.mjs';
20
19
  export * from './PasswordField/index.mjs';
21
20
  export * from './SearchField/index.mjs';
22
21
  export * from './Sheet/index.mjs';
@@ -16,7 +16,6 @@ export * from './Dropdown';
16
16
  export * from './List';
17
17
  export * from './Modal';
18
18
  export * from './NumberInput';
19
- export * from './PageTitle';
20
19
  export * from './PasswordField';
21
20
  export * from './SearchField';
22
21
  export * from './Sheet';