@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.
- package/README.md +2 -2
- package/dist/client.js +218 -476
- package/dist/client.js.map +1 -1
- package/dist/components/atoms/Badge/Badge.d.mts +5 -12
- package/dist/components/atoms/Badge/Badge.d.ts +5 -12
- package/dist/components/atoms/Badge/Badge.mjs +0 -7
- package/dist/components/atoms/Badge/index.d.mts +1 -1
- package/dist/components/atoms/Badge/index.d.ts +1 -1
- package/dist/components/atoms/Box/Box.d.mts +29 -17
- package/dist/components/atoms/Box/Box.d.ts +29 -17
- package/dist/components/atoms/Box/Box.mjs +8 -8
- package/dist/components/atoms/Button/Button.d.mts +1 -4
- package/dist/components/atoms/Button/Button.d.ts +1 -4
- package/dist/components/atoms/Button/Button.mjs +3 -10
- package/dist/components/atoms/CategoryLabel/CategoryLabel.d.mts +4 -12
- package/dist/components/atoms/CategoryLabel/CategoryLabel.d.ts +4 -12
- package/dist/components/atoms/CategoryLabel/CategoryLabel.mjs +5 -16
- package/dist/components/atoms/Chip/Chip.d.mts +8 -20
- package/dist/components/atoms/Chip/Chip.d.ts +8 -20
- package/dist/components/atoms/Chip/Chip.mjs +20 -46
- package/dist/components/atoms/Chip/Chip.mjs.map +1 -1
- package/dist/components/atoms/Chip/FilterChip.d.mts +22 -10
- package/dist/components/atoms/Chip/FilterChip.d.ts +22 -10
- package/dist/components/atoms/Chip/FilterChip.mjs +66 -6
- package/dist/components/atoms/Chip/FilterChip.mjs.map +1 -1
- package/dist/components/atoms/Chip/InputChip.mjs +4 -6
- package/dist/components/atoms/Chip/InputChip.mjs.map +1 -1
- package/dist/components/atoms/Chip/index.d.mts +0 -1
- package/dist/components/atoms/Chip/index.d.ts +0 -1
- package/dist/components/atoms/Chip/shared/types.d.mts +9 -19
- package/dist/components/atoms/Chip/shared/types.d.ts +9 -19
- package/dist/components/atoms/Chip/shared/utils.d.mts +3 -3
- package/dist/components/atoms/Chip/shared/utils.d.ts +3 -3
- package/dist/components/atoms/Chip/shared/utils.mjs +4 -8
- package/dist/components/atoms/Chip/shared/utils.mjs.map +1 -1
- package/dist/components/atoms/DateFormatter/DateFormatter.d.mts +2 -5
- package/dist/components/atoms/DateFormatter/DateFormatter.d.ts +2 -5
- package/dist/components/atoms/DateFormatter/DateFormatter.mjs +0 -1
- package/dist/components/atoms/StatusLabel/StatusLabel.mjs +1 -4
- package/dist/components/atoms/StatusLabel/StatusLabel.mjs.map +1 -1
- package/dist/components/atoms/StatusLabel/StatusLabelBase.d.mts +5 -7
- package/dist/components/atoms/StatusLabel/StatusLabelBase.d.ts +5 -7
- package/dist/components/atoms/StatusLabel/StatusLabelBase.mjs +10 -12
- package/dist/components/atoms/Tag/Tag.d.mts +2 -4
- package/dist/components/atoms/Tag/Tag.d.ts +2 -4
- package/dist/components/atoms/Tag/Tag.mjs +0 -24
- package/dist/components/atoms/index.d.mts +0 -2
- package/dist/components/atoms/index.d.ts +0 -2
- package/dist/components/layout/GridSystem/GridSystem.d.mts +23 -18
- package/dist/components/layout/GridSystem/GridSystem.d.ts +23 -18
- package/dist/components/layout/GridSystem/GridSystem.mjs +7 -5
- package/dist/components/molecules/AccountCard/AccountCard.mjs +1 -1
- package/dist/components/molecules/AgentInput/AgentInput.d.mts +5 -0
- package/dist/components/molecules/AgentInput/AgentInput.d.ts +5 -0
- package/dist/components/molecules/AgentInput/AgentInput.mjs +1 -1
- package/dist/components/molecules/Alert/Alert.d.mts +1 -9
- package/dist/components/molecules/Alert/Alert.d.ts +1 -9
- package/dist/components/molecules/Alert/Alert.mjs +13 -26
- package/dist/components/molecules/ChipGroup/ChipGroup.d.mts +0 -1
- package/dist/components/molecules/ChipGroup/ChipGroup.d.ts +0 -1
- package/dist/components/molecules/ChipGroup/ChipGroup.mjs +1 -6
- package/dist/components/molecules/DateGroup/DateGroup.d.mts +1 -2
- package/dist/components/molecules/DateGroup/DateGroup.d.ts +1 -2
- package/dist/components/molecules/Modal/Modal.d.mts +0 -1
- package/dist/components/molecules/Modal/Modal.d.ts +0 -1
- package/dist/components/molecules/TabBar/TabBar.d.mts +0 -13
- package/dist/components/molecules/TabBar/TabBar.d.ts +0 -13
- package/dist/components/molecules/TabBar/TabBar.mjs +2 -4
- package/dist/components/molecules/TabBar/index.d.mts +1 -1
- package/dist/components/molecules/TabBar/index.d.ts +1 -1
- package/dist/components/molecules/index.d.mts +0 -1
- package/dist/components/molecules/index.d.ts +0 -1
- package/dist/data.js +29 -571
- package/dist/data.js.map +1 -1
- package/dist/index.js +0 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -5
- package/dist/index.mjs.map +1 -1
- package/dist/lib/tokenAliases.d.mts +17 -8
- package/dist/lib/tokenAliases.d.ts +17 -8
- package/dist/lib/tokenAliases.mjs +46 -87
- package/dist/lib/tokenAliases.mjs.map +1 -1
- package/dist/styles/tokens.d.mts +7 -2043
- package/dist/styles/tokens.d.ts +7 -2043
- package/dist/styles/tokens.json +29 -571
- package/dist/styles/tokens.json.mjs +29 -571
- package/dist/styles/tokens.json.mjs.map +1 -1
- package/dist/tokens/index.js +29 -571
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/index.mjs +29 -571
- package/dist/tokens/index.mjs.map +1 -1
- package/dist/tokens/styles/tokens.d.mts +7 -2043
- package/dist/tokens/styles/tokens.d.ts +7 -2043
- package/dist/tokens.css +10 -481
- package/package.json +2 -2
- package/dist/components/atoms/CategoryBadge/CategoryBadge.d.mts +0 -29
- package/dist/components/atoms/CategoryBadge/CategoryBadge.d.ts +0 -29
- package/dist/components/atoms/CategoryBadge/CategoryBadge.mjs +0 -29
- package/dist/components/atoms/CategoryBadge/CategoryBadge.mjs.map +0 -1
- package/dist/components/atoms/CategoryBadge/index.d.mts +0 -2
- package/dist/components/atoms/CategoryBadge/index.d.ts +0 -2
- package/dist/components/atoms/Chip/BooleanChip.d.mts +0 -28
- package/dist/components/atoms/Chip/BooleanChip.d.ts +0 -28
- package/dist/components/atoms/Chip/BooleanChip.mjs +0 -76
- package/dist/components/atoms/Chip/BooleanChip.mjs.map +0 -1
- package/dist/components/atoms/StatusBadge/StatusBadge.d.mts +0 -24
- package/dist/components/atoms/StatusBadge/StatusBadge.d.ts +0 -24
- package/dist/components/atoms/StatusBadge/StatusBadge.mjs +0 -18
- package/dist/components/atoms/StatusBadge/StatusBadge.mjs.map +0 -1
- package/dist/components/atoms/StatusBadge/index.d.mts +0 -2
- package/dist/components/atoms/StatusBadge/index.d.ts +0 -2
- package/dist/components/molecules/PageTitle/PageTitle.d.mts +0 -21
- package/dist/components/molecules/PageTitle/PageTitle.d.ts +0 -21
- package/dist/components/molecules/PageTitle/PageTitle.mjs +0 -77
- package/dist/components/molecules/PageTitle/PageTitle.mjs.map +0 -1
- package/dist/components/molecules/PageTitle/index.d.mts +0 -1
- package/dist/components/molecules/PageTitle/index.d.ts +0 -1
|
@@ -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
|
-
|
|
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
|
|
2
|
+
export type { TabBarProps, Tab } from './TabBar.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { TabBar } from './TabBar';
|
|
2
|
-
export type { TabBarProps, Tab
|
|
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';
|