@common-origin/design-system 2.23.0 → 3.1.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 (186) hide show
  1. package/README.md +2 -2
  2. package/dist/client.js +2219 -1026
  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/Tooltip/Tooltip.d.mts +41 -0
  48. package/dist/components/atoms/Tooltip/Tooltip.d.ts +41 -0
  49. package/dist/components/atoms/Tooltip/Tooltip.mjs +204 -0
  50. package/dist/components/atoms/Tooltip/Tooltip.mjs.map +1 -0
  51. package/dist/components/atoms/Tooltip/index.d.mts +2 -0
  52. package/dist/components/atoms/Tooltip/index.d.ts +2 -0
  53. package/dist/components/atoms/index.d.mts +1 -2
  54. package/dist/components/atoms/index.d.ts +1 -2
  55. package/dist/components/index.d.mts +1 -0
  56. package/dist/components/index.d.ts +1 -0
  57. package/dist/components/layout/GridSystem/GridSystem.d.mts +23 -18
  58. package/dist/components/layout/GridSystem/GridSystem.d.ts +23 -18
  59. package/dist/components/layout/GridSystem/GridSystem.mjs +7 -5
  60. package/dist/components/molecules/ActionSheet/ActionSheet.mjs +1 -0
  61. package/dist/components/molecules/AgentInput/AgentInput.d.mts +5 -0
  62. package/dist/components/molecules/AgentInput/AgentInput.d.ts +5 -0
  63. package/dist/components/molecules/AgentInput/AgentInput.mjs +1 -1
  64. package/dist/components/molecules/Alert/Alert.d.mts +1 -9
  65. package/dist/components/molecules/Alert/Alert.d.ts +1 -9
  66. package/dist/components/molecules/Alert/Alert.mjs +14 -27
  67. package/dist/components/molecules/ChipGroup/ChipGroup.d.mts +0 -1
  68. package/dist/components/molecules/ChipGroup/ChipGroup.d.ts +0 -1
  69. package/dist/components/molecules/ChipGroup/ChipGroup.mjs +2 -6
  70. package/dist/components/molecules/DateGroup/DateGroup.d.mts +1 -2
  71. package/dist/components/molecules/DateGroup/DateGroup.d.ts +1 -2
  72. package/dist/components/molecules/List/List.d.mts +2 -0
  73. package/dist/components/molecules/List/List.d.ts +2 -0
  74. package/dist/components/molecules/List/ListItem.d.mts +2 -0
  75. package/dist/components/molecules/List/ListItem.d.ts +2 -0
  76. package/dist/components/molecules/List/ListItem.mjs +5 -5
  77. package/dist/components/molecules/Menu/Menu.d.mts +117 -0
  78. package/dist/components/molecules/Menu/Menu.d.ts +117 -0
  79. package/dist/components/molecules/Menu/Menu.mjs +473 -0
  80. package/dist/components/molecules/Menu/Menu.mjs.map +1 -0
  81. package/dist/components/molecules/Menu/index.d.mts +2 -0
  82. package/dist/components/molecules/Menu/index.d.ts +2 -0
  83. package/dist/components/molecules/Modal/Modal.d.mts +0 -1
  84. package/dist/components/molecules/Modal/Modal.d.ts +0 -1
  85. package/dist/components/molecules/SearchField/SearchField.mjs +2 -0
  86. package/dist/components/molecules/SidebarNavItem/SidebarNavContext.d.mts +13 -0
  87. package/dist/components/molecules/SidebarNavItem/SidebarNavContext.d.ts +13 -0
  88. package/dist/components/molecules/SidebarNavItem/SidebarNavContext.mjs +13 -0
  89. package/dist/components/molecules/SidebarNavItem/SidebarNavContext.mjs.map +1 -0
  90. package/dist/components/molecules/SidebarNavItem/SidebarNavItem.d.mts +43 -0
  91. package/dist/components/molecules/SidebarNavItem/SidebarNavItem.d.ts +43 -0
  92. package/dist/components/molecules/SidebarNavItem/SidebarNavItem.mjs +148 -0
  93. package/dist/components/molecules/SidebarNavItem/SidebarNavItem.mjs.map +1 -0
  94. package/dist/components/molecules/SidebarNavItem/index.d.mts +2 -0
  95. package/dist/components/molecules/SidebarNavItem/index.d.ts +2 -0
  96. package/dist/components/molecules/SidebarNavSection/SidebarNavSection.d.mts +36 -0
  97. package/dist/components/molecules/SidebarNavSection/SidebarNavSection.d.ts +36 -0
  98. package/dist/components/molecules/SidebarNavSection/SidebarNavSection.mjs +188 -0
  99. package/dist/components/molecules/SidebarNavSection/SidebarNavSection.mjs.map +1 -0
  100. package/dist/components/molecules/SidebarNavSection/index.d.mts +2 -0
  101. package/dist/components/molecules/SidebarNavSection/index.d.ts +2 -0
  102. package/dist/components/molecules/TabBar/TabBar.d.mts +0 -13
  103. package/dist/components/molecules/TabBar/TabBar.d.ts +0 -13
  104. package/dist/components/molecules/TabBar/TabBar.mjs +2 -4
  105. package/dist/components/molecules/TabBar/index.d.mts +1 -1
  106. package/dist/components/molecules/TabBar/index.d.ts +1 -1
  107. package/dist/components/molecules/TransactionListItem/TransactionListItem.mjs +1 -1
  108. package/dist/components/molecules/WorkspaceSwitcher/WorkspaceSwitcher.d.mts +39 -0
  109. package/dist/components/molecules/WorkspaceSwitcher/WorkspaceSwitcher.d.ts +39 -0
  110. package/dist/components/molecules/WorkspaceSwitcher/WorkspaceSwitcher.mjs +131 -0
  111. package/dist/components/molecules/WorkspaceSwitcher/WorkspaceSwitcher.mjs.map +1 -0
  112. package/dist/components/molecules/WorkspaceSwitcher/index.d.mts +2 -0
  113. package/dist/components/molecules/WorkspaceSwitcher/index.d.ts +2 -0
  114. package/dist/components/molecules/index.d.mts +4 -1
  115. package/dist/components/molecules/index.d.ts +4 -1
  116. package/dist/components/organisms/SidebarNav/SidebarNav.d.mts +52 -0
  117. package/dist/components/organisms/SidebarNav/SidebarNav.d.ts +52 -0
  118. package/dist/components/organisms/SidebarNav/SidebarNav.mjs +235 -0
  119. package/dist/components/organisms/SidebarNav/SidebarNav.mjs.map +1 -0
  120. package/dist/components/organisms/SidebarNav/index.d.mts +2 -0
  121. package/dist/components/organisms/SidebarNav/index.d.ts +2 -0
  122. package/dist/components/organisms/index.d.mts +1 -0
  123. package/dist/components/organisms/index.d.ts +1 -0
  124. package/dist/data.js +72 -565
  125. package/dist/data.js.map +1 -1
  126. package/dist/index.js +11 -5
  127. package/dist/index.js.map +1 -1
  128. package/dist/index.mjs +7 -5
  129. package/dist/index.mjs.map +1 -1
  130. package/dist/lib/floatingPosition.d.mts +43 -0
  131. package/dist/lib/floatingPosition.d.ts +43 -0
  132. package/dist/lib/floatingPosition.mjs +86 -0
  133. package/dist/lib/floatingPosition.mjs.map +1 -0
  134. package/dist/lib/keyboardFocus.d.mts +6 -0
  135. package/dist/lib/keyboardFocus.d.ts +6 -0
  136. package/dist/lib/keyboardFocus.mjs +17 -0
  137. package/dist/lib/keyboardFocus.mjs.map +1 -0
  138. package/dist/lib/tokenAliases.d.mts +11 -11
  139. package/dist/lib/tokenAliases.d.ts +11 -11
  140. package/dist/lib/tokenAliases.mjs +13 -88
  141. package/dist/lib/tokenAliases.mjs.map +1 -1
  142. package/dist/lib/useFloatingLayer.d.mts +25 -0
  143. package/dist/lib/useFloatingLayer.d.ts +25 -0
  144. package/dist/lib/useFloatingLayer.mjs +86 -0
  145. package/dist/lib/useFloatingLayer.mjs.map +1 -0
  146. package/dist/styles/icons.json +30 -1
  147. package/dist/styles/icons.json.mjs +34 -3
  148. package/dist/styles/icons.json.mjs.map +1 -1
  149. package/dist/styles/tokens.d.mts +179 -2485
  150. package/dist/styles/tokens.d.ts +179 -2485
  151. package/dist/styles/tokens.json +39 -563
  152. package/dist/styles/tokens.json.mjs +39 -563
  153. package/dist/styles/tokens.json.mjs.map +1 -1
  154. package/dist/tokens/index.js +39 -563
  155. package/dist/tokens/index.js.map +1 -1
  156. package/dist/tokens/index.mjs +39 -563
  157. package/dist/tokens/index.mjs.map +1 -1
  158. package/dist/tokens/styles/tokens.d.mts +179 -2485
  159. package/dist/tokens/styles/tokens.d.ts +179 -2485
  160. package/dist/tokens.css +41 -493
  161. package/dist/types/icons.d.mts +1 -1
  162. package/dist/types/icons.d.ts +1 -1
  163. package/dist/types/icons.mjs.map +1 -1
  164. package/package.json +2 -2
  165. package/dist/components/atoms/CategoryBadge/CategoryBadge.d.mts +0 -29
  166. package/dist/components/atoms/CategoryBadge/CategoryBadge.d.ts +0 -29
  167. package/dist/components/atoms/CategoryBadge/CategoryBadge.mjs +0 -29
  168. package/dist/components/atoms/CategoryBadge/CategoryBadge.mjs.map +0 -1
  169. package/dist/components/atoms/CategoryBadge/index.d.mts +0 -2
  170. package/dist/components/atoms/CategoryBadge/index.d.ts +0 -2
  171. package/dist/components/atoms/Chip/BooleanChip.d.mts +0 -28
  172. package/dist/components/atoms/Chip/BooleanChip.d.ts +0 -28
  173. package/dist/components/atoms/Chip/BooleanChip.mjs +0 -76
  174. package/dist/components/atoms/Chip/BooleanChip.mjs.map +0 -1
  175. package/dist/components/atoms/StatusBadge/StatusBadge.d.mts +0 -24
  176. package/dist/components/atoms/StatusBadge/StatusBadge.d.ts +0 -24
  177. package/dist/components/atoms/StatusBadge/StatusBadge.mjs +0 -18
  178. package/dist/components/atoms/StatusBadge/StatusBadge.mjs.map +0 -1
  179. package/dist/components/atoms/StatusBadge/index.d.mts +0 -2
  180. package/dist/components/atoms/StatusBadge/index.d.ts +0 -2
  181. package/dist/components/molecules/PageTitle/PageTitle.d.mts +0 -21
  182. package/dist/components/molecules/PageTitle/PageTitle.d.ts +0 -21
  183. package/dist/components/molecules/PageTitle/PageTitle.mjs +0 -77
  184. package/dist/components/molecules/PageTitle/PageTitle.mjs.map +0 -1
  185. package/dist/components/molecules/PageTitle/index.d.mts +0 -1
  186. package/dist/components/molecules/PageTitle/index.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- export type IconName = 'add' | 'ai' | 'addRing' | 'arrowDown' | 'arrowLeft' | 'arrowRight' | 'arrowUp' | 'back' | 'bell' | 'cancel' | 'caret' | 'caretDown' | 'caretUp' | 'check' | 'checkRing' | 'close' | 'copy' | 'creditCard' | 'crossCircle' | 'directionRight' | 'directionUp' | 'edit' | 'export' | 'fileDocSearch' | 'filter' | 'info' | 'kebab' | 'lamp' | 'lineOut' | 'link' | 'meatballs' | 'menu' | 'message' | 'move' | 'mic' | 'order' | 'paper' | 'pause' | 'play' | 'playBack' | 'refresh' | 'remove' | 'search' | 'star' | 'starFilled' | 'statusCancelled' | 'statusError' | 'statusInProgress' | 'statusInfo' | 'statusNotStarted' | 'statusPending' | 'statusScheduled' | 'statusSerious' | 'statusSuccess' | 'statusWarning' | 'stop' | 'table' | 'trash' | 'userBox' | 'view' | 'viewHide' | 'wallet';
1
+ export type IconName = 'add' | 'ai' | 'addRing' | 'arrowDown' | 'arrowLeft' | 'arrowRight' | 'arrowUp' | 'back' | 'bell' | 'cancel' | 'caret' | 'caretDown' | 'caretUp' | 'check' | 'checkRing' | 'close' | 'copy' | 'creditCard' | 'crossCircle' | 'directionRight' | 'directionUp' | 'edit' | 'export' | 'fileDocSearch' | 'filter' | 'home' | 'info' | 'kebab' | 'lamp' | 'lineOut' | 'link' | 'meatballs' | 'menu' | 'message' | 'move' | 'mic' | 'order' | 'paper' | 'pause' | 'play' | 'playBack' | 'refresh' | 'remove' | 'search' | 'sidebar' | 'star' | 'starFilled' | 'statusCancelled' | 'statusError' | 'statusInProgress' | 'statusInfo' | 'statusNotStarted' | 'statusPending' | 'statusScheduled' | 'statusSerious' | 'statusSuccess' | 'statusWarning' | 'stop' | 'table' | 'trash' | 'userBox' | 'view' | 'viewHide' | 'wallet';
2
2
  /** Semantic category for grouping icons by purpose */
3
3
  export type IconCategory = 'action' | 'communication' | 'content' | 'feedback' | 'media' | 'navigation' | 'object' | 'status' | 'user';
4
4
  /** Enriched metadata for each icon entry in icons.json */
@@ -1,4 +1,4 @@
1
- export type IconName = 'add' | 'ai' | 'addRing' | 'arrowDown' | 'arrowLeft' | 'arrowRight' | 'arrowUp' | 'back' | 'bell' | 'cancel' | 'caret' | 'caretDown' | 'caretUp' | 'check' | 'checkRing' | 'close' | 'copy' | 'creditCard' | 'crossCircle' | 'directionRight' | 'directionUp' | 'edit' | 'export' | 'fileDocSearch' | 'filter' | 'info' | 'kebab' | 'lamp' | 'lineOut' | 'link' | 'meatballs' | 'menu' | 'message' | 'move' | 'mic' | 'order' | 'paper' | 'pause' | 'play' | 'playBack' | 'refresh' | 'remove' | 'search' | 'star' | 'starFilled' | 'statusCancelled' | 'statusError' | 'statusInProgress' | 'statusInfo' | 'statusNotStarted' | 'statusPending' | 'statusScheduled' | 'statusSerious' | 'statusSuccess' | 'statusWarning' | 'stop' | 'table' | 'trash' | 'userBox' | 'view' | 'viewHide' | 'wallet';
1
+ export type IconName = 'add' | 'ai' | 'addRing' | 'arrowDown' | 'arrowLeft' | 'arrowRight' | 'arrowUp' | 'back' | 'bell' | 'cancel' | 'caret' | 'caretDown' | 'caretUp' | 'check' | 'checkRing' | 'close' | 'copy' | 'creditCard' | 'crossCircle' | 'directionRight' | 'directionUp' | 'edit' | 'export' | 'fileDocSearch' | 'filter' | 'home' | 'info' | 'kebab' | 'lamp' | 'lineOut' | 'link' | 'meatballs' | 'menu' | 'message' | 'move' | 'mic' | 'order' | 'paper' | 'pause' | 'play' | 'playBack' | 'refresh' | 'remove' | 'search' | 'sidebar' | 'star' | 'starFilled' | 'statusCancelled' | 'statusError' | 'statusInProgress' | 'statusInfo' | 'statusNotStarted' | 'statusPending' | 'statusScheduled' | 'statusSerious' | 'statusSuccess' | 'statusWarning' | 'stop' | 'table' | 'trash' | 'userBox' | 'view' | 'viewHide' | 'wallet';
2
2
  /** Semantic category for grouping icons by purpose */
3
3
  export type IconCategory = 'action' | 'communication' | 'content' | 'feedback' | 'media' | 'navigation' | 'object' | 'status' | 'user';
4
4
  /** Enriched metadata for each icon entry in icons.json */
@@ -1 +1 @@
1
- {"version":3,"file":"icons.mjs","sources":["../../src/types/icons.ts"],"sourcesContent":["// Icon type definitions for external consumption\n// This is a self-contained type that doesn't depend on JSON imports\n// to ensure it works correctly in consuming projects\n\nimport iconsJson from '../styles/icons.json'\n\nexport type IconName =\n | 'add'\n | 'ai'\n | 'addRing'\n | 'arrowDown'\n | 'arrowLeft'\n | 'arrowRight'\n | 'arrowUp'\n | 'back'\n | 'bell'\n | 'cancel'\n | 'caret'\n | 'caretDown'\n | 'caretUp'\n | 'check'\n | 'checkRing'\n | 'close'\n | 'copy'\n | 'creditCard'\n | 'crossCircle'\n | 'directionRight'\n | 'directionUp'\n | 'edit'\n | 'export'\n | 'fileDocSearch'\n | 'filter'\n | 'info'\n | 'kebab'\n | 'lamp'\n | 'lineOut'\n | 'link'\n | 'meatballs'\n | 'menu'\n | 'message'\n | 'move'\n | 'mic'\n | 'order'\n | 'paper'\n | 'pause'\n | 'play'\n | 'playBack'\n | 'refresh'\n | 'remove'\n | 'search'\n | 'star'\n | 'starFilled'\n | 'statusCancelled'\n | 'statusError'\n | 'statusInProgress'\n | 'statusInfo'\n | 'statusNotStarted'\n | 'statusPending'\n | 'statusScheduled'\n | 'statusSerious'\n | 'statusSuccess'\n | 'statusWarning'\n | 'stop'\n | 'table'\n | 'trash'\n | 'userBox'\n | 'view'\n | 'viewHide'\n | 'wallet'\n\n/** Semantic category for grouping icons by purpose */\nexport type IconCategory =\n | 'action'\n | 'communication'\n | 'content'\n | 'feedback'\n | 'media'\n | 'navigation'\n | 'object'\n | 'status'\n | 'user'\n\n/** Enriched metadata for each icon entry in icons.json */\nexport interface IconMetadata {\n /** SVG path data */\n path: string\n /** Display name of the icon */\n name: string\n /** What the icon visually depicts */\n description: string\n /** Semantic category for grouping */\n category: IconCategory\n /** Alternative names and search terms */\n aliases: string[]\n /** When and why to use this icon */\n intent: string\n /** Whether the icon is typically decorative (true) or informative (false) */\n decorativeDefault: boolean\n /** Suggested accessible label when the icon conveys meaning */\n ariaLabelDefault: string\n}\n\n/** The full icon registry keyed by IconName */\nexport type IconRegistry = Record<IconName, IconMetadata>\n\n// Typed as IconRegistry so emitted .d.ts files don't import JSON (needs `resolveJsonModule` in consumers).\nexport const iconsData = iconsJson as IconRegistry\n"],"names":["iconsData","iconsJson"],"mappings":";;AAAA;AACA;AACA;AAuGA;AACO,IAAMA,SAAS,GAAGC;;;;"}
1
+ {"version":3,"file":"icons.mjs","sources":["../../src/types/icons.ts"],"sourcesContent":["// Icon type definitions for external consumption\n// This is a self-contained type that doesn't depend on JSON imports\n// to ensure it works correctly in consuming projects\n\nimport iconsJson from '../styles/icons.json'\n\nexport type IconName =\n | 'add'\n | 'ai'\n | 'addRing'\n | 'arrowDown'\n | 'arrowLeft'\n | 'arrowRight'\n | 'arrowUp'\n | 'back'\n | 'bell'\n | 'cancel'\n | 'caret'\n | 'caretDown'\n | 'caretUp'\n | 'check'\n | 'checkRing'\n | 'close'\n | 'copy'\n | 'creditCard'\n | 'crossCircle'\n | 'directionRight'\n | 'directionUp'\n | 'edit'\n | 'export'\n | 'fileDocSearch'\n | 'filter'\n | 'home'\n | 'info'\n | 'kebab'\n | 'lamp'\n | 'lineOut'\n | 'link'\n | 'meatballs'\n | 'menu'\n | 'message'\n | 'move'\n | 'mic'\n | 'order'\n | 'paper'\n | 'pause'\n | 'play'\n | 'playBack'\n | 'refresh'\n | 'remove'\n | 'search'\n | 'sidebar'\n | 'star'\n | 'starFilled'\n | 'statusCancelled'\n | 'statusError'\n | 'statusInProgress'\n | 'statusInfo'\n | 'statusNotStarted'\n | 'statusPending'\n | 'statusScheduled'\n | 'statusSerious'\n | 'statusSuccess'\n | 'statusWarning'\n | 'stop'\n | 'table'\n | 'trash'\n | 'userBox'\n | 'view'\n | 'viewHide'\n | 'wallet'\n\n/** Semantic category for grouping icons by purpose */\nexport type IconCategory =\n | 'action'\n | 'communication'\n | 'content'\n | 'feedback'\n | 'media'\n | 'navigation'\n | 'object'\n | 'status'\n | 'user'\n\n/** Enriched metadata for each icon entry in icons.json */\nexport interface IconMetadata {\n /** SVG path data */\n path: string\n /** Display name of the icon */\n name: string\n /** What the icon visually depicts */\n description: string\n /** Semantic category for grouping */\n category: IconCategory\n /** Alternative names and search terms */\n aliases: string[]\n /** When and why to use this icon */\n intent: string\n /** Whether the icon is typically decorative (true) or informative (false) */\n decorativeDefault: boolean\n /** Suggested accessible label when the icon conveys meaning */\n ariaLabelDefault: string\n}\n\n/** The full icon registry keyed by IconName */\nexport type IconRegistry = Record<IconName, IconMetadata>\n\n// Typed as IconRegistry so emitted .d.ts files don't import JSON (needs `resolveJsonModule` in consumers).\nexport const iconsData = iconsJson as IconRegistry\n"],"names":["iconsData","iconsJson"],"mappings":";;AAAA;AACA;AACA;AAyGA;AACO,IAAMA,SAAS,GAAGC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common-origin/design-system",
3
- "version": "2.23.0",
3
+ "version": "3.1.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 157",
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';