@common-origin/design-system 2.18.0 → 2.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +1122 -785
- package/dist/client.js.map +1 -1
- package/dist/components/atoms/Avatar/Avatar.d.mts +8 -0
- package/dist/components/atoms/Avatar/Avatar.mjs +103 -0
- package/dist/components/atoms/Avatar/Avatar.mjs.map +1 -0
- package/dist/components/atoms/Avatar/index.d.mts +1 -0
- package/dist/components/atoms/Badge/Badge.d.mts +25 -0
- package/dist/components/atoms/Badge/Badge.mjs +98 -0
- package/dist/components/atoms/Badge/Badge.mjs.map +1 -0
- package/dist/components/atoms/Badge/index.d.mts +2 -0
- package/dist/components/atoms/Box/Box.d.mts +62 -0
- package/dist/components/atoms/Box/Box.mjs +246 -0
- package/dist/components/atoms/Box/Box.mjs.map +1 -0
- package/dist/components/atoms/Box/index.d.mts +1 -0
- package/dist/components/atoms/Button/Button.d.mts +40 -0
- package/dist/components/atoms/Button/Button.mjs +208 -0
- package/dist/components/atoms/Button/Button.mjs.map +1 -0
- package/dist/components/atoms/Button/index.d.mts +1 -0
- package/dist/components/atoms/CategoryBadge/CategoryBadge.d.mts +29 -0
- package/dist/components/atoms/CategoryBadge/CategoryBadge.mjs +29 -0
- package/dist/components/atoms/CategoryBadge/CategoryBadge.mjs.map +1 -0
- package/dist/components/atoms/CategoryBadge/index.d.mts +2 -0
- package/dist/components/atoms/CategoryLabel/CategoryLabel.d.mts +69 -0
- package/dist/components/atoms/CategoryLabel/CategoryLabel.mjs +151 -0
- package/dist/components/atoms/CategoryLabel/CategoryLabel.mjs.map +1 -0
- package/dist/components/atoms/CategoryLabel/index.d.mts +2 -0
- package/dist/components/atoms/Chip/BooleanChip.d.mts +28 -0
- package/dist/components/atoms/Chip/BooleanChip.mjs +76 -0
- package/dist/components/atoms/Chip/BooleanChip.mjs.map +1 -0
- package/dist/components/atoms/Chip/Chip.d.mts +37 -0
- package/dist/components/atoms/Chip/Chip.mjs +76 -0
- package/dist/components/atoms/Chip/Chip.mjs.map +1 -0
- package/dist/components/atoms/Chip/FilterChip.d.mts +13 -0
- package/dist/components/atoms/Chip/FilterChip.mjs +14 -0
- package/dist/components/atoms/Chip/FilterChip.mjs.map +1 -0
- package/dist/components/atoms/Chip/InputChip.d.mts +27 -0
- package/dist/components/atoms/Chip/InputChip.mjs +97 -0
- package/dist/components/atoms/Chip/InputChip.mjs.map +1 -0
- package/dist/components/atoms/Chip/index.d.mts +4 -0
- package/dist/components/atoms/Chip/shared/ChipBase.d.mts +12 -0
- package/dist/components/atoms/Chip/shared/ChipBase.mjs +45 -0
- package/dist/components/atoms/Chip/shared/ChipBase.mjs.map +1 -0
- package/dist/components/atoms/Chip/shared/types.d.mts +34 -0
- package/dist/components/atoms/Chip/shared/types.d.ts +3 -1
- package/dist/components/atoms/Chip/shared/utils.d.mts +10 -0
- package/dist/components/atoms/Chip/shared/utils.d.ts +2 -3
- package/dist/components/atoms/Chip/shared/utils.mjs +46 -0
- package/dist/components/atoms/Chip/shared/utils.mjs.map +1 -0
- package/dist/components/atoms/Container/Container.d.mts +6 -0
- package/dist/components/atoms/Container/Container.mjs +24 -0
- package/dist/components/atoms/Container/Container.mjs.map +1 -0
- package/dist/components/atoms/Container/index.d.mts +1 -0
- package/dist/components/atoms/DateFormatter/DateFormatter.d.mts +23 -0
- package/dist/components/atoms/DateFormatter/DateFormatter.mjs +64 -0
- package/dist/components/atoms/DateFormatter/DateFormatter.mjs.map +1 -0
- package/dist/components/atoms/DateFormatter/index.d.mts +1 -0
- package/dist/components/atoms/Divider/Divider.d.mts +30 -0
- package/dist/components/atoms/Divider/Divider.mjs +134 -0
- package/dist/components/atoms/Divider/Divider.mjs.map +1 -0
- package/dist/components/atoms/Divider/index.d.mts +1 -0
- package/dist/components/atoms/Icon/Icon.d.mts +22 -0
- package/dist/components/atoms/Icon/Icon.mjs +95 -0
- package/dist/components/atoms/Icon/Icon.mjs.map +1 -0
- package/dist/components/atoms/Icon/index.d.mts +1 -0
- package/dist/components/atoms/IconButton/IconButton.d.mts +14 -0
- package/dist/components/atoms/IconButton/IconButton.mjs +150 -0
- package/dist/components/atoms/IconButton/IconButton.mjs.map +1 -0
- package/dist/components/atoms/IconButton/index.d.mts +1 -0
- package/dist/components/atoms/MoneyDisplay/MoneyDisplay.d.mts +26 -0
- package/dist/components/atoms/MoneyDisplay/MoneyDisplay.mjs +126 -0
- package/dist/components/atoms/MoneyDisplay/MoneyDisplay.mjs.map +1 -0
- package/dist/components/atoms/MoneyDisplay/index.d.mts +2 -0
- package/dist/components/atoms/Picture/Picture.d.mts +12 -0
- package/dist/components/atoms/Picture/Picture.mjs +65 -0
- package/dist/components/atoms/Picture/Picture.mjs.map +1 -0
- package/dist/components/atoms/Picture/index.d.mts +1 -0
- package/dist/components/atoms/ProgressBar/ProgressBar.d.mts +21 -0
- package/dist/components/atoms/ProgressBar/ProgressBar.mjs +91 -0
- package/dist/components/atoms/ProgressBar/ProgressBar.mjs.map +1 -0
- package/dist/components/atoms/ProgressBar/index.d.mts +2 -0
- package/dist/components/atoms/Stack/Stack.d.mts +16 -0
- package/dist/components/atoms/Stack/Stack.mjs +71 -0
- package/dist/components/atoms/Stack/Stack.mjs.map +1 -0
- package/dist/components/atoms/Stack/index.d.mts +1 -0
- package/dist/components/atoms/StatusBadge/StatusBadge.d.mts +23 -0
- package/dist/components/atoms/StatusBadge/StatusBadge.mjs +18 -0
- package/dist/components/atoms/StatusBadge/StatusBadge.mjs.map +1 -0
- package/dist/components/atoms/StatusBadge/index.d.mts +2 -0
- package/dist/components/atoms/StatusLabel/StatusLabel.d.mts +17 -0
- package/dist/components/atoms/StatusLabel/StatusLabel.mjs +28 -0
- package/dist/components/atoms/StatusLabel/StatusLabel.mjs.map +1 -0
- package/dist/components/atoms/StatusLabel/StatusLabelBase.d.mts +49 -0
- package/dist/components/atoms/StatusLabel/StatusLabelBase.mjs +161 -0
- package/dist/components/atoms/StatusLabel/StatusLabelBase.mjs.map +1 -0
- package/dist/components/atoms/StatusLabel/index.d.mts +2 -0
- package/dist/components/atoms/Tag/Tag.d.mts +36 -0
- package/dist/components/atoms/Tag/Tag.mjs +115 -0
- package/dist/components/atoms/Tag/Tag.mjs.map +1 -0
- package/dist/components/atoms/Tag/index.d.mts +2 -0
- package/dist/components/atoms/Typography/Typography.d.mts +34 -0
- package/dist/components/atoms/Typography/Typography.mjs +139 -0
- package/dist/components/atoms/Typography/Typography.mjs.map +1 -0
- package/dist/components/atoms/Typography/index.d.mts +1 -0
- package/dist/components/atoms/index.d.mts +20 -0
- package/dist/components/index.d.mts +4 -0
- package/dist/components/layout/GridSystem/GridSystem.d.mts +58 -0
- package/dist/components/layout/GridSystem/GridSystem.mjs +221 -0
- package/dist/components/layout/GridSystem/GridSystem.mjs.map +1 -0
- package/dist/components/layout/GridSystem/index.d.mts +1 -0
- package/dist/components/layout/index.d.mts +1 -0
- package/dist/components/molecules/AccountCard/AccountCard.d.mts +44 -0
- package/dist/components/molecules/AccountCard/AccountCard.mjs +191 -0
- package/dist/components/molecules/AccountCard/AccountCard.mjs.map +1 -0
- package/dist/components/molecules/AccountCard/index.d.mts +2 -0
- package/dist/components/molecules/ActionSheet/ActionSheet.d.mts +111 -0
- package/dist/components/molecules/ActionSheet/ActionSheet.mjs +283 -0
- package/dist/components/molecules/ActionSheet/ActionSheet.mjs.map +1 -0
- package/dist/components/molecules/ActionSheet/index.d.mts +2 -0
- package/dist/components/molecules/AgentInput/AgentInput.d.mts +30 -0
- package/dist/components/molecules/AgentInput/AgentInput.mjs +735 -0
- package/dist/components/molecules/AgentInput/AgentInput.mjs.map +1 -0
- package/dist/components/molecules/AgentInput/agentInputSpeech.d.mts +43 -0
- package/dist/components/molecules/AgentInput/agentInputSpeech.mjs +49 -0
- package/dist/components/molecules/AgentInput/agentInputSpeech.mjs.map +1 -0
- package/dist/components/molecules/AgentInput/agentInputStateMachine.d.mts +29 -0
- package/dist/components/molecules/AgentInput/agentInputStateMachine.mjs +55 -0
- package/dist/components/molecules/AgentInput/agentInputStateMachine.mjs.map +1 -0
- package/dist/components/molecules/AgentInput/index.d.mts +3 -0
- package/dist/components/molecules/Alert/Alert.d.mts +68 -0
- package/dist/components/molecules/Alert/Alert.mjs +284 -0
- package/dist/components/molecules/Alert/Alert.mjs.map +1 -0
- package/dist/components/molecules/Alert/index.d.mts +1 -0
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.d.mts +16 -0
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.mjs +74 -0
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.mjs.map +1 -0
- package/dist/components/molecules/Breadcrumbs/index.d.mts +1 -0
- package/dist/components/molecules/CardLarge/CardLarge.d.mts +12 -0
- package/dist/components/molecules/CardLarge/CardLarge.mjs +75 -0
- package/dist/components/molecules/CardLarge/CardLarge.mjs.map +1 -0
- package/dist/components/molecules/CardLarge/index.d.mts +1 -0
- package/dist/components/molecules/CardSmall/CardSmall.d.mts +16 -0
- package/dist/components/molecules/CardSmall/CardSmall.mjs +73 -0
- package/dist/components/molecules/CardSmall/CardSmall.mjs.map +1 -0
- package/dist/components/molecules/CardSmall/index.d.mts +1 -0
- package/dist/components/molecules/Checkbox/Checkbox.d.mts +64 -0
- package/dist/components/molecules/Checkbox/Checkbox.mjs +139 -0
- package/dist/components/molecules/Checkbox/Checkbox.mjs.map +1 -0
- package/dist/components/molecules/Checkbox/SelectableInputBase.d.mts +40 -0
- package/dist/components/molecules/Checkbox/SelectableInputBase.mjs +99 -0
- package/dist/components/molecules/Checkbox/SelectableInputBase.mjs.map +1 -0
- package/dist/components/molecules/Checkbox/index.d.mts +3 -0
- package/dist/components/molecules/ChipGroup/ChipGroup.d.mts +7 -0
- package/dist/components/molecules/ChipGroup/ChipGroup.mjs +54 -0
- package/dist/components/molecules/ChipGroup/ChipGroup.mjs.map +1 -0
- package/dist/components/molecules/ChipGroup/index.d.mts +1 -0
- package/dist/components/molecules/CodeBlock/CodeBlock.d.mts +46 -0
- package/dist/components/molecules/CodeBlock/CodeBlock.mjs +231 -0
- package/dist/components/molecules/CodeBlock/CodeBlock.mjs.map +1 -0
- package/dist/components/molecules/CodeBlock/index.d.mts +1 -0
- package/dist/components/molecules/DateGroup/DateGroup.d.mts +37 -0
- package/dist/components/molecules/DateGroup/DateGroup.mjs +104 -0
- package/dist/components/molecules/DateGroup/DateGroup.mjs.map +1 -0
- package/dist/components/molecules/DateGroup/index.d.mts +2 -0
- package/dist/components/molecules/Dropdown/Dropdown.d.mts +27 -0
- package/dist/components/molecules/Dropdown/Dropdown.mjs +282 -0
- package/dist/components/molecules/Dropdown/Dropdown.mjs.map +1 -0
- package/dist/components/molecules/Dropdown/index.d.mts +1 -0
- package/dist/components/molecules/EmptyState/EmptyState.d.mts +32 -0
- package/dist/components/molecules/EmptyState/EmptyState.mjs +133 -0
- package/dist/components/molecules/EmptyState/EmptyState.mjs.map +1 -0
- package/dist/components/molecules/EmptyState/index.d.mts +2 -0
- package/dist/components/molecules/FeatureBlock/FeatureBlock.d.mts +14 -0
- package/dist/components/molecules/FeatureBlock/FeatureBlock.mjs +99 -0
- package/dist/components/molecules/FeatureBlock/FeatureBlock.mjs.map +1 -0
- package/dist/components/molecules/FeatureBlock/index.d.mts +1 -0
- package/dist/components/molecules/InlineAlert/InlineAlert.d.mts +54 -0
- package/dist/components/molecules/InlineAlert/InlineAlert.mjs +140 -0
- package/dist/components/molecules/InlineAlert/InlineAlert.mjs.map +1 -0
- package/dist/components/molecules/InlineAlert/index.d.mts +2 -0
- package/dist/components/molecules/List/List.d.mts +30 -0
- package/dist/components/molecules/List/List.mjs +45 -0
- package/dist/components/molecules/List/List.mjs.map +1 -0
- package/dist/components/molecules/List/ListContext.d.mts +6 -0
- package/dist/components/molecules/List/ListContext.mjs +11 -0
- package/dist/components/molecules/List/ListContext.mjs.map +1 -0
- package/dist/components/molecules/List/ListItem.d.mts +101 -0
- package/dist/components/molecules/List/ListItem.mjs +224 -0
- package/dist/components/molecules/List/ListItem.mjs.map +1 -0
- package/dist/components/molecules/List/index.d.mts +4 -0
- package/dist/components/molecules/Modal/Modal.d.mts +69 -0
- package/dist/components/molecules/Modal/Modal.mjs +259 -0
- package/dist/components/molecules/Modal/Modal.mjs.map +1 -0
- package/dist/components/molecules/Modal/index.d.mts +2 -0
- package/dist/components/molecules/NumberInput/NumberInput.d.mts +86 -0
- package/dist/components/molecules/NumberInput/NumberInput.mjs +268 -0
- package/dist/components/molecules/NumberInput/NumberInput.mjs.map +1 -0
- package/dist/components/molecules/NumberInput/index.d.mts +2 -0
- package/dist/components/molecules/PageTitle/PageTitle.d.mts +21 -0
- package/dist/components/molecules/PageTitle/PageTitle.mjs +77 -0
- package/dist/components/molecules/PageTitle/PageTitle.mjs.map +1 -0
- package/dist/components/molecules/PageTitle/index.d.mts +1 -0
- package/dist/components/molecules/PasswordField/PasswordField.d.mts +55 -0
- package/dist/components/molecules/PasswordField/PasswordField.mjs +146 -0
- package/dist/components/molecules/PasswordField/PasswordField.mjs.map +1 -0
- package/dist/components/molecules/PasswordField/index.d.mts +2 -0
- package/dist/components/molecules/SearchField/SearchField.d.mts +108 -0
- package/dist/components/molecules/SearchField/SearchField.mjs +340 -0
- package/dist/components/molecules/SearchField/SearchField.mjs.map +1 -0
- package/dist/components/molecules/SearchField/index.d.mts +2 -0
- package/dist/components/molecules/Sheet/Sheet.d.mts +96 -0
- package/dist/components/molecules/Sheet/Sheet.mjs +243 -0
- package/dist/components/molecules/Sheet/Sheet.mjs.map +1 -0
- package/dist/components/molecules/Sheet/index.d.mts +2 -0
- package/dist/components/molecules/Slider/Slider.d.mts +102 -0
- package/dist/components/molecules/Slider/Slider.mjs +462 -0
- package/dist/components/molecules/Slider/Slider.mjs.map +1 -0
- package/dist/components/molecules/Slider/index.d.mts +2 -0
- package/dist/components/molecules/TabBar/TabBar.d.mts +82 -0
- package/dist/components/molecules/TabBar/TabBar.mjs +213 -0
- package/dist/components/molecules/TabBar/TabBar.mjs.map +1 -0
- package/dist/components/molecules/TabBar/index.d.mts +2 -0
- package/dist/components/molecules/TextField/InputBase.d.mts +22 -0
- package/dist/components/molecules/TextField/InputBase.mjs +56 -0
- package/dist/components/molecules/TextField/InputBase.mjs.map +1 -0
- package/dist/components/molecules/TextField/TextField.d.mts +56 -0
- package/dist/components/molecules/TextField/TextField.mjs +115 -0
- package/dist/components/molecules/TextField/TextField.mjs.map +1 -0
- package/dist/components/molecules/TextField/index.d.mts +4 -0
- package/dist/components/molecules/TransactionListItem/TransactionListItem.d.mts +39 -0
- package/dist/components/molecules/TransactionListItem/TransactionListItem.mjs +224 -0
- package/dist/components/molecules/TransactionListItem/TransactionListItem.mjs.map +1 -0
- package/dist/components/molecules/TransactionListItem/index.d.mts +2 -0
- package/dist/components/molecules/index.d.mts +26 -0
- package/dist/data.js +261 -14
- package/dist/data.js.map +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.mjs +55 -0
- package/dist/index.mjs.map +1 -0
- package/dist/lib/cssTokens.d.mts +14 -0
- package/dist/lib/cssTokens.d.ts +14 -0
- package/dist/lib/cssTokens.mjs +19 -0
- package/dist/lib/cssTokens.mjs.map +1 -0
- package/dist/lib/cssVariables.d.mts +15 -0
- package/dist/lib/cssVariables.d.ts +15 -0
- package/dist/lib/cssVariables.mjs +37 -0
- package/dist/lib/cssVariables.mjs.map +1 -0
- package/dist/lib/styleUtils.d.mts +42 -0
- package/dist/lib/styleUtils.d.ts +23 -0
- package/dist/lib/styleUtils.mjs +160 -0
- package/dist/lib/styleUtils.mjs.map +1 -0
- package/dist/lib/tokenAliases.d.mts +13 -0
- package/dist/lib/tokenAliases.d.ts +13 -0
- package/dist/lib/tokenAliases.mjs +121 -0
- package/dist/lib/tokenAliases.mjs.map +1 -0
- package/dist/lib/usePresence.d.mts +16 -0
- package/dist/lib/usePresence.mjs +50 -0
- package/dist/lib/usePresence.mjs.map +1 -0
- package/dist/{data.esm.js → styles/icons.json.mjs} +2 -1219
- package/dist/styles/icons.json.mjs.map +1 -0
- package/dist/styles/tokens.d.mts +3174 -0
- package/dist/styles/tokens.d.ts +3174 -0
- package/dist/styles/tokens.json +257 -12
- package/dist/{tokens/index.esm.js → styles/tokens.json.mjs} +259 -20
- package/dist/{tokens/index.esm.js.map → styles/tokens.json.mjs.map} +1 -1
- package/dist/tokens/index.js +261 -14
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/index.mjs +1462 -0
- package/dist/tokens/index.mjs.map +1 -0
- package/dist/tokens/styles/tokens.d.mts +3174 -0
- package/dist/tokens/styles/tokens.d.ts +3174 -0
- package/dist/tokens/tokens.d.mts +4 -0
- package/dist/tokens/types/tokens.d.mts +6 -0
- package/dist/tokens/types/tokens.d.ts +3 -1204
- package/dist/tokens.css +710 -430
- package/dist/tokens.css.d.mts +4 -0
- package/dist/types/icons.d.mts +25 -0
- package/dist/types/icons.mjs +10 -0
- package/dist/types/icons.mjs.map +1 -0
- package/dist/types/index.d.mts +1 -0
- package/dist/types/tokens.d.mts +6 -0
- package/dist/types/tokens.d.ts +3 -1204
- package/dist/types/tokens.mjs +10 -0
- package/dist/types/tokens.mjs.map +1 -0
- package/dist/vendor/tslib/tslib.es6.mjs +99 -0
- package/dist/vendor/tslib/tslib.es6.mjs.map +1 -0
- package/package.json +29 -13
- package/dist/client.esm.js +0 -7952
- package/dist/client.esm.js.map +0 -1
- package/dist/data.esm.js.map +0 -1
- package/dist/index.esm.js +0 -8
- package/dist/index.esm.js.map +0 -1
|
@@ -0,0 +1,224 @@
|
|
|
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 { Avatar } from '../../atoms/Avatar/Avatar.mjs';
|
|
7
|
+
import { Badge } from '../../atoms/Badge/Badge.mjs';
|
|
8
|
+
import { CategoryLabel } from '../../atoms/CategoryLabel/CategoryLabel.mjs';
|
|
9
|
+
import { MoneyDisplay } from '../../atoms/MoneyDisplay/MoneyDisplay.mjs';
|
|
10
|
+
import { Icon } from '../../atoms/Icon/Icon.mjs';
|
|
11
|
+
import { DateFormatter } from '../../atoms/DateFormatter/DateFormatter.mjs';
|
|
12
|
+
import { Typography } from '../../atoms/Typography/Typography.mjs';
|
|
13
|
+
import tokens from '../../../lib/cssTokens.mjs';
|
|
14
|
+
import { interactiveRow } from '../../../lib/styleUtils.mjs';
|
|
15
|
+
|
|
16
|
+
var StyledContainer = /*#__PURE__*/styled.div.withConfig({
|
|
17
|
+
displayName: "TransactionListItem__StyledContainer",
|
|
18
|
+
componentId: "sc-7yunm0-0"
|
|
19
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n min-height: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border-bottom: ", " solid ", ";\n gap: ", ";\n transition: background-color ", " ", ";\n \n /* A clickable row uses the shared row states (decision 0030) */\n ", "\n"], ["\n display: flex;\n align-items: center;\n min-height: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border-bottom: ", " solid ", ";\n gap: ", ";\n transition: background-color ", " ", ";\n \n /* A clickable row uses the shared row states (decision 0030) */\n ", "\n"])), tokens.component.transactionListItem.minHeight, tokens.semantic.space[300], tokens.semantic.space[300], tokens.semantic.surface.base, tokens.semantic.border.width.thin, tokens.semantic.color.border["default"], tokens.semantic.space[300], tokens.semantic.motion.duration.moderate, tokens.semantic.motion.easing.decelerate, function (_a) {
|
|
20
|
+
var $clickable = _a.$clickable;
|
|
21
|
+
return $clickable && "\n cursor: pointer;\n ".concat(interactiveRow(), "\n \n &:focus-visible {\n outline: ").concat(tokens.semantic.border.focus, ";\n outline-offset: calc(-1 * ").concat(tokens.semantic.border.focusOffset, ");\n }\n ");
|
|
22
|
+
});
|
|
23
|
+
var StyledAvatarSection = /*#__PURE__*/styled.div.withConfig({
|
|
24
|
+
displayName: "TransactionListItem__StyledAvatarSection",
|
|
25
|
+
componentId: "sc-7yunm0-1"
|
|
26
|
+
})(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex-shrink: 0;\n"], ["\n flex-shrink: 0;\n"])));
|
|
27
|
+
var StyledMainContent = /*#__PURE__*/styled.div.withConfig({
|
|
28
|
+
displayName: "TransactionListItem__StyledMainContent",
|
|
29
|
+
componentId: "sc-7yunm0-2"
|
|
30
|
+
})(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: none;\n"], ["\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: none;\n"])));
|
|
31
|
+
var StyledTopRow = /*#__PURE__*/styled.div.withConfig({
|
|
32
|
+
displayName: "TransactionListItem__StyledTopRow",
|
|
33
|
+
componentId: "sc-7yunm0-3"
|
|
34
|
+
})(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n"])), tokens.semantic.space[200]);
|
|
35
|
+
var StyledMerchantSection = /*#__PURE__*/styled.div.withConfig({
|
|
36
|
+
displayName: "TransactionListItem__StyledMerchantSection",
|
|
37
|
+
componentId: "sc-7yunm0-4"
|
|
38
|
+
})(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n min-width: 0;\n flex: 1;\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n min-width: 0;\n flex: 1;\n"])), tokens.semantic.space[200]);
|
|
39
|
+
var StyledBottomRow = /*#__PURE__*/styled.div.withConfig({
|
|
40
|
+
displayName: "TransactionListItem__StyledBottomRow",
|
|
41
|
+
componentId: "sc-7yunm0-5"
|
|
42
|
+
})(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n"])), tokens.semantic.space[200]);
|
|
43
|
+
var StyledMetadata = /*#__PURE__*/styled.div.withConfig({
|
|
44
|
+
displayName: "TransactionListItem__StyledMetadata",
|
|
45
|
+
componentId: "sc-7yunm0-6"
|
|
46
|
+
})(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n"])), tokens.semantic.space[200]);
|
|
47
|
+
var StyledIconIndicator = /*#__PURE__*/styled.div.withConfig({
|
|
48
|
+
displayName: "TransactionListItem__StyledIconIndicator",
|
|
49
|
+
componentId: "sc-7yunm0-7"
|
|
50
|
+
})(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n color: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n color: ", ";\n"])), tokens.semantic.space[100], tokens.semantic.color.icon.muted);
|
|
51
|
+
var StyledTruncatedText = /*#__PURE__*/styled.span.withConfig({
|
|
52
|
+
displayName: "TransactionListItem__StyledTruncatedText",
|
|
53
|
+
componentId: "sc-7yunm0-8"
|
|
54
|
+
})(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"], ["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"
|
|
55
|
+
// Map categories to CategoryLabel configurations
|
|
56
|
+
])));
|
|
57
|
+
// Map categories to CategoryLabel configurations
|
|
58
|
+
var categoryConfig = {
|
|
59
|
+
shopping: {
|
|
60
|
+
color: 'purple',
|
|
61
|
+
icon: 'paper',
|
|
62
|
+
label: 'Shopping'
|
|
63
|
+
},
|
|
64
|
+
dining: {
|
|
65
|
+
color: 'orange',
|
|
66
|
+
icon: 'paper',
|
|
67
|
+
label: 'Dining'
|
|
68
|
+
},
|
|
69
|
+
transport: {
|
|
70
|
+
color: 'blue',
|
|
71
|
+
icon: 'paper',
|
|
72
|
+
label: 'Transport'
|
|
73
|
+
},
|
|
74
|
+
entertainment: {
|
|
75
|
+
color: 'pink',
|
|
76
|
+
icon: 'star',
|
|
77
|
+
label: 'Entertainment'
|
|
78
|
+
},
|
|
79
|
+
bills: {
|
|
80
|
+
color: 'red',
|
|
81
|
+
icon: 'paper',
|
|
82
|
+
label: 'Bills'
|
|
83
|
+
},
|
|
84
|
+
other: {
|
|
85
|
+
color: 'gray',
|
|
86
|
+
icon: 'paper',
|
|
87
|
+
label: 'Other'
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
// Map status to badge variant
|
|
91
|
+
var statusToBadgeVariant = {
|
|
92
|
+
completed: 'success',
|
|
93
|
+
pending: 'warning',
|
|
94
|
+
failed: 'error'
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* TransactionListItem component
|
|
98
|
+
*
|
|
99
|
+
* Displays a single transaction in a list with merchant info, amount, date,
|
|
100
|
+
* status, and optional metadata (category, receipt, notes). Minimum height 72px
|
|
101
|
+
* with interactive states for clickable items.
|
|
102
|
+
*
|
|
103
|
+
* Composes: Avatar, Badge, MoneyDisplay, Icon, DateFormatter, Typography, Stack
|
|
104
|
+
*/
|
|
105
|
+
var TransactionListItem = function TransactionListItem(_a) {
|
|
106
|
+
var merchant = _a.merchant,
|
|
107
|
+
amount = _a.amount,
|
|
108
|
+
date = _a.date,
|
|
109
|
+
_b = _a.status,
|
|
110
|
+
status = _b === void 0 ? 'completed' : _b,
|
|
111
|
+
category = _a.category,
|
|
112
|
+
merchantLogo = _a.merchantLogo,
|
|
113
|
+
description = _a.description,
|
|
114
|
+
_c = _a.hasReceipt,
|
|
115
|
+
hasReceipt = _c === void 0 ? false : _c,
|
|
116
|
+
_d = _a.hasNote,
|
|
117
|
+
hasNote = _d === void 0 ? false : _d,
|
|
118
|
+
_e = _a.currency,
|
|
119
|
+
currency = _e === void 0 ? 'AUD' : _e,
|
|
120
|
+
onClick = _a.onClick,
|
|
121
|
+
dataTestId = _a["data-testid"];
|
|
122
|
+
var isClickable = !!onClick;
|
|
123
|
+
// Determine amount variant
|
|
124
|
+
var amountVariant = amount > 0 ? 'positive' : amount < 0 ? 'negative' : 'default';
|
|
125
|
+
// Get category configuration
|
|
126
|
+
var categoryData = category ? categoryConfig[category] : undefined;
|
|
127
|
+
// Get badge variant from status
|
|
128
|
+
var badgeVariant = statusToBadgeVariant[status];
|
|
129
|
+
var handleClick = function handleClick() {
|
|
130
|
+
if (isClickable && onClick) {
|
|
131
|
+
onClick();
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
var handleKeyDown = function handleKeyDown(e) {
|
|
135
|
+
if (isClickable && (e.key === 'Enter' || e.key === ' ')) {
|
|
136
|
+
e.preventDefault();
|
|
137
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
return jsxs(StyledContainer, {
|
|
141
|
+
"$clickable": isClickable,
|
|
142
|
+
onClick: handleClick,
|
|
143
|
+
onKeyDown: handleKeyDown,
|
|
144
|
+
tabIndex: isClickable ? 0 : undefined,
|
|
145
|
+
role: isClickable ? 'button' : undefined,
|
|
146
|
+
"aria-label": isClickable ? "".concat(merchant, " transaction, ").concat(amount < 0 ? 'expense' : 'income', " of ").concat(Math.abs(amount)) : undefined,
|
|
147
|
+
"data-testid": dataTestId,
|
|
148
|
+
children: [jsx(StyledAvatarSection, {
|
|
149
|
+
children: status === 'pending' ? jsx(Badge, {
|
|
150
|
+
variant: badgeVariant,
|
|
151
|
+
dot: true,
|
|
152
|
+
"aria-label": "Pending transaction",
|
|
153
|
+
children: jsx(Avatar, {
|
|
154
|
+
name: merchant,
|
|
155
|
+
picture: merchantLogo,
|
|
156
|
+
size: "md"
|
|
157
|
+
})
|
|
158
|
+
}) : jsx(Avatar, {
|
|
159
|
+
name: merchant,
|
|
160
|
+
picture: merchantLogo,
|
|
161
|
+
size: "md"
|
|
162
|
+
})
|
|
163
|
+
}), jsxs(StyledMainContent, {
|
|
164
|
+
children: [jsxs(StyledTopRow, {
|
|
165
|
+
children: [jsxs(StyledMerchantSection, {
|
|
166
|
+
children: [jsx(StyledTruncatedText, {
|
|
167
|
+
children: jsx(Typography, {
|
|
168
|
+
variant: "body",
|
|
169
|
+
children: merchant
|
|
170
|
+
})
|
|
171
|
+
}), categoryData && jsx(CategoryLabel, {
|
|
172
|
+
color: categoryData.color,
|
|
173
|
+
icon: categoryData.icon,
|
|
174
|
+
size: "medium",
|
|
175
|
+
variant: "minimal",
|
|
176
|
+
"aria-label": "Category: ".concat(categoryData.label),
|
|
177
|
+
children: categoryData.label
|
|
178
|
+
}), status === 'failed' && jsx(Badge, {
|
|
179
|
+
variant: "error",
|
|
180
|
+
dot: true,
|
|
181
|
+
"aria-label": "Failed transaction",
|
|
182
|
+
children: jsx("span", {})
|
|
183
|
+
})]
|
|
184
|
+
}), jsx(MoneyDisplay, {
|
|
185
|
+
amount: amount,
|
|
186
|
+
currency: currency,
|
|
187
|
+
variant: amountVariant,
|
|
188
|
+
size: "medium",
|
|
189
|
+
weight: "medium",
|
|
190
|
+
showSign: true,
|
|
191
|
+
"data-testid": dataTestId ? "".concat(dataTestId, "-amount") : undefined
|
|
192
|
+
})]
|
|
193
|
+
}), jsxs(StyledBottomRow, {
|
|
194
|
+
children: [jsxs(StyledMetadata, {
|
|
195
|
+
children: [jsx(DateFormatter, {
|
|
196
|
+
dateString: typeof date === 'string' ? date : date.toISOString(),
|
|
197
|
+
mode: "smart",
|
|
198
|
+
"data-testid": dataTestId ? "".concat(dataTestId, "-date") : undefined
|
|
199
|
+
}), description && jsx(StyledTruncatedText, {
|
|
200
|
+
children: jsxs(Typography, {
|
|
201
|
+
variant: "small",
|
|
202
|
+
color: "subdued",
|
|
203
|
+
children: ["\u2022 ", description]
|
|
204
|
+
})
|
|
205
|
+
})]
|
|
206
|
+
}), (hasReceipt || hasNote) && jsxs(StyledIconIndicator, {
|
|
207
|
+
children: [hasReceipt && jsx(Icon, {
|
|
208
|
+
name: "fileDocSearch",
|
|
209
|
+
size: "xs",
|
|
210
|
+
"aria-label": "Has receipt"
|
|
211
|
+
}), hasNote && jsx(Icon, {
|
|
212
|
+
name: "paper",
|
|
213
|
+
size: "xs",
|
|
214
|
+
"aria-label": "Has note"
|
|
215
|
+
})]
|
|
216
|
+
})]
|
|
217
|
+
})]
|
|
218
|
+
})]
|
|
219
|
+
});
|
|
220
|
+
};
|
|
221
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
222
|
+
|
|
223
|
+
export { TransactionListItem };
|
|
224
|
+
//# sourceMappingURL=TransactionListItem.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionListItem.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export * from './AccountCard/index.mjs';
|
|
2
|
+
export * from './ActionSheet/index.mjs';
|
|
3
|
+
export * from './AgentInput/index.mjs';
|
|
4
|
+
export * from './Alert/index.mjs';
|
|
5
|
+
export * from './InlineAlert/index.mjs';
|
|
6
|
+
export * from './Breadcrumbs/index.mjs';
|
|
7
|
+
export * from './CardSmall/index.mjs';
|
|
8
|
+
export * from './CardLarge/index.mjs';
|
|
9
|
+
export * from './Checkbox/index.mjs';
|
|
10
|
+
export * from './ChipGroup/index.mjs';
|
|
11
|
+
export * from './CodeBlock/index.mjs';
|
|
12
|
+
export * from './DateGroup/index.mjs';
|
|
13
|
+
export * from './EmptyState/index.mjs';
|
|
14
|
+
export * from './FeatureBlock/index.mjs';
|
|
15
|
+
export * from './Dropdown/index.mjs';
|
|
16
|
+
export * from './List/index.mjs';
|
|
17
|
+
export * from './Modal/index.mjs';
|
|
18
|
+
export * from './NumberInput/index.mjs';
|
|
19
|
+
export * from './PageTitle/index.mjs';
|
|
20
|
+
export * from './PasswordField/index.mjs';
|
|
21
|
+
export * from './SearchField/index.mjs';
|
|
22
|
+
export * from './Sheet/index.mjs';
|
|
23
|
+
export * from './Slider/index.mjs';
|
|
24
|
+
export * from './TabBar/index.mjs';
|
|
25
|
+
export * from './TextField/index.mjs';
|
|
26
|
+
export * from './TransactionListItem/index.mjs';
|
package/dist/data.js
CHANGED
|
@@ -65,6 +65,42 @@ var base = {
|
|
|
65
65
|
"95": "0.95",
|
|
66
66
|
"100": "1"
|
|
67
67
|
},
|
|
68
|
+
dimension: {
|
|
69
|
+
"0": "0",
|
|
70
|
+
"1": "0.25rem",
|
|
71
|
+
"2": "0.5rem",
|
|
72
|
+
"3": "0.75rem",
|
|
73
|
+
"4": "1rem",
|
|
74
|
+
"5": "1.25rem",
|
|
75
|
+
"6": "1.5rem",
|
|
76
|
+
"7": "1.75rem",
|
|
77
|
+
"8": "2rem",
|
|
78
|
+
"9": "2.25rem",
|
|
79
|
+
"10": "2.5rem",
|
|
80
|
+
"11": "2.75rem",
|
|
81
|
+
"12": "3rem",
|
|
82
|
+
"14": "3.5rem",
|
|
83
|
+
"15": "3.75rem",
|
|
84
|
+
"16": "4rem",
|
|
85
|
+
"18": "4.5rem",
|
|
86
|
+
"20": "5rem",
|
|
87
|
+
"24": "6rem",
|
|
88
|
+
"28": "7rem",
|
|
89
|
+
"30": "7.5rem",
|
|
90
|
+
"32": "8rem",
|
|
91
|
+
"40": "10rem",
|
|
92
|
+
"45": "11.25rem",
|
|
93
|
+
"48": "12rem",
|
|
94
|
+
"50": "12.5rem",
|
|
95
|
+
"56": "14rem",
|
|
96
|
+
"64": "16rem",
|
|
97
|
+
"75": "18.75rem",
|
|
98
|
+
"90": "22.5rem",
|
|
99
|
+
"100": "25rem",
|
|
100
|
+
"140": "35rem",
|
|
101
|
+
"180": "45rem",
|
|
102
|
+
"192": "48rem"
|
|
103
|
+
},
|
|
68
104
|
size: {
|
|
69
105
|
"0": "0",
|
|
70
106
|
"1": "0.25rem",
|
|
@@ -109,6 +145,34 @@ var base = {
|
|
|
109
145
|
},
|
|
110
146
|
color: {
|
|
111
147
|
transparent: "transparent",
|
|
148
|
+
gray: {
|
|
149
|
+
"100": "#fcfcfc",
|
|
150
|
+
"200": "#f9f9f9",
|
|
151
|
+
"300": "#f2f2f2",
|
|
152
|
+
"400": "#ebebeb",
|
|
153
|
+
"500": "#e4e4e4",
|
|
154
|
+
"600": "#dcdcdc",
|
|
155
|
+
"700": "#d1d1d1",
|
|
156
|
+
"800": "#909090",
|
|
157
|
+
"900": "#848484",
|
|
158
|
+
"1000": "#797979",
|
|
159
|
+
"1100": "#636363",
|
|
160
|
+
"1200": "#222222"
|
|
161
|
+
},
|
|
162
|
+
"gray-alpha": {
|
|
163
|
+
"100": "rgba(34, 34, 34, 0.014)",
|
|
164
|
+
"200": "rgba(34, 34, 34, 0.027)",
|
|
165
|
+
"300": "rgba(34, 34, 34, 0.059)",
|
|
166
|
+
"400": "rgba(34, 34, 34, 0.09)",
|
|
167
|
+
"500": "rgba(34, 34, 34, 0.122)",
|
|
168
|
+
"600": "rgba(34, 34, 34, 0.158)",
|
|
169
|
+
"700": "rgba(34, 34, 34, 0.208)",
|
|
170
|
+
"800": "rgba(34, 34, 34, 0.502)",
|
|
171
|
+
"900": "rgba(34, 34, 34, 0.557)",
|
|
172
|
+
"1000": "rgba(34, 34, 34, 0.606)",
|
|
173
|
+
"1100": "rgba(34, 34, 34, 0.706)",
|
|
174
|
+
"1200": "rgba(34, 34, 34, 1)"
|
|
175
|
+
},
|
|
112
176
|
neutral: {
|
|
113
177
|
"100": "#f8f9fa",
|
|
114
178
|
"200": "#e9ecef",
|
|
@@ -813,7 +877,8 @@ var component = {
|
|
|
813
877
|
"default": "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
|
|
814
878
|
hover: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
|
|
815
879
|
active: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"
|
|
816
|
-
}
|
|
880
|
+
},
|
|
881
|
+
background: "#ffffff"
|
|
817
882
|
}
|
|
818
883
|
},
|
|
819
884
|
accountCard: {
|
|
@@ -825,7 +890,8 @@ var component = {
|
|
|
825
890
|
breadcrumbs: {
|
|
826
891
|
item: {
|
|
827
892
|
maxWidth: "11.25rem"
|
|
828
|
-
}
|
|
893
|
+
},
|
|
894
|
+
font: "400 0.75rem/1.125rem 'Inter', sans-serif"
|
|
829
895
|
},
|
|
830
896
|
cardLarge: {
|
|
831
897
|
maxWidth: "48rem"
|
|
@@ -860,6 +926,46 @@ var component = {
|
|
|
860
926
|
},
|
|
861
927
|
transactionListItem: {
|
|
862
928
|
minHeight: "4.5rem"
|
|
929
|
+
},
|
|
930
|
+
status: {
|
|
931
|
+
pending: {
|
|
932
|
+
text: "#825800",
|
|
933
|
+
background: "#FFF3D6"
|
|
934
|
+
},
|
|
935
|
+
completed: {
|
|
936
|
+
text: "#007A4D",
|
|
937
|
+
background: "#CEF8E0"
|
|
938
|
+
},
|
|
939
|
+
failed: {
|
|
940
|
+
text: "#D31510",
|
|
941
|
+
background: "#FFEBE7"
|
|
942
|
+
},
|
|
943
|
+
cancelled: {
|
|
944
|
+
text: "#495057",
|
|
945
|
+
background: "#e9ecef"
|
|
946
|
+
},
|
|
947
|
+
processing: {
|
|
948
|
+
text: "#0265DC",
|
|
949
|
+
background: "#E0F2FF"
|
|
950
|
+
},
|
|
951
|
+
scheduled: {
|
|
952
|
+
text: "#7E2EBD",
|
|
953
|
+
background: "#F9F0FF"
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
transaction: {
|
|
957
|
+
credit: "#15A46E",
|
|
958
|
+
"credit-hover": "#008F5D",
|
|
959
|
+
debit: "#D31510",
|
|
960
|
+
"debit-hover": "#B40000",
|
|
961
|
+
pending: "#F68511",
|
|
962
|
+
neutral: "#6c757d"
|
|
963
|
+
},
|
|
964
|
+
track: {
|
|
965
|
+
background: "#dee2e6"
|
|
966
|
+
},
|
|
967
|
+
tooltip: {
|
|
968
|
+
border: "0.125rem dotted #dee2e6"
|
|
863
969
|
}
|
|
864
970
|
};
|
|
865
971
|
var semantic = {
|
|
@@ -881,7 +987,9 @@ var semantic = {
|
|
|
881
987
|
},
|
|
882
988
|
opacity: {
|
|
883
989
|
disabled: "0.5",
|
|
884
|
-
full: "1"
|
|
990
|
+
full: "1",
|
|
991
|
+
hover: "0.8",
|
|
992
|
+
pressed: "0.7"
|
|
885
993
|
},
|
|
886
994
|
fontFamily: {
|
|
887
995
|
body: "'Inter', sans-serif",
|
|
@@ -938,10 +1046,35 @@ var semantic = {
|
|
|
938
1046
|
"2xl": "1.5rem",
|
|
939
1047
|
"3xl": "2rem",
|
|
940
1048
|
circle: "10rem"
|
|
941
|
-
}
|
|
1049
|
+
},
|
|
1050
|
+
emphasis: "0.0625rem solid #dee2e6",
|
|
1051
|
+
"input-hover": "0.0625rem solid #343a40"
|
|
942
1052
|
},
|
|
943
1053
|
size: {
|
|
1054
|
+
"100": "0.25rem",
|
|
1055
|
+
"200": "0.5rem",
|
|
1056
|
+
"400": "1rem",
|
|
1057
|
+
"500": "1.25rem",
|
|
1058
|
+
"600": "1.5rem",
|
|
1059
|
+
"800": "2rem",
|
|
1060
|
+
"1200": "3rem",
|
|
1061
|
+
"1500": "3.75rem",
|
|
1062
|
+
"1800": "4.5rem",
|
|
1063
|
+
"2000": "5rem",
|
|
1064
|
+
"3000": "7.5rem",
|
|
1065
|
+
"4500": "11.25rem",
|
|
1066
|
+
"5000": "12.5rem",
|
|
1067
|
+
"7500": "18.75rem",
|
|
1068
|
+
"9000": "22.5rem",
|
|
1069
|
+
"10000": "25rem",
|
|
1070
|
+
"19200": "48rem",
|
|
1071
|
+
pointerTarget: "1.5rem",
|
|
944
1072
|
touchTarget: "2.75rem",
|
|
1073
|
+
control: {
|
|
1074
|
+
sm: "2rem",
|
|
1075
|
+
md: "2.5rem",
|
|
1076
|
+
lg: "3rem"
|
|
1077
|
+
},
|
|
945
1078
|
overlay: {
|
|
946
1079
|
sm: "25rem",
|
|
947
1080
|
md: "35rem",
|
|
@@ -1037,7 +1170,12 @@ var semantic = {
|
|
|
1037
1170
|
"interactive-active": "#004491",
|
|
1038
1171
|
error: "#D31510",
|
|
1039
1172
|
success: "#007A4D",
|
|
1040
|
-
warning: "#B14C00"
|
|
1173
|
+
warning: "#B14C00",
|
|
1174
|
+
muted: "#495057",
|
|
1175
|
+
accent: "#0265DC",
|
|
1176
|
+
"accent-hover": "#0054B6",
|
|
1177
|
+
"accent-pressed": "#004491",
|
|
1178
|
+
danger: "#D31510"
|
|
1041
1179
|
},
|
|
1042
1180
|
background: {
|
|
1043
1181
|
"default": "#f8f9fa",
|
|
@@ -1082,7 +1220,13 @@ var semantic = {
|
|
|
1082
1220
|
error: "#D31510",
|
|
1083
1221
|
success: "#007A4D",
|
|
1084
1222
|
warning: "#B14C00",
|
|
1085
|
-
none: "transparent"
|
|
1223
|
+
none: "transparent",
|
|
1224
|
+
emphasis: "#dee2e6",
|
|
1225
|
+
input: "#6c757d",
|
|
1226
|
+
"input-hover": "#343a40",
|
|
1227
|
+
focus: "#343a40",
|
|
1228
|
+
accent: "#0265DC",
|
|
1229
|
+
danger: "#D31510"
|
|
1086
1230
|
},
|
|
1087
1231
|
icon: {
|
|
1088
1232
|
"default": "#212529",
|
|
@@ -1095,7 +1239,12 @@ var semantic = {
|
|
|
1095
1239
|
"interactive-active": "#004491",
|
|
1096
1240
|
error: "#D31510",
|
|
1097
1241
|
success: "#007A4D",
|
|
1098
|
-
warning: "#B14C00"
|
|
1242
|
+
warning: "#B14C00",
|
|
1243
|
+
muted: "#6c757d",
|
|
1244
|
+
accent: "#0265DC",
|
|
1245
|
+
"accent-hover": "#0054B6",
|
|
1246
|
+
"accent-pressed": "#004491",
|
|
1247
|
+
danger: "#D31510"
|
|
1099
1248
|
},
|
|
1100
1249
|
financial: {
|
|
1101
1250
|
credit: "#15A46E",
|
|
@@ -1145,7 +1294,15 @@ var semantic = {
|
|
|
1145
1294
|
"green-text": "#007A4D",
|
|
1146
1295
|
"red-text": "#D31510",
|
|
1147
1296
|
"orange-text": "#B14C00",
|
|
1148
|
-
"gray-text": "#212529"
|
|
1297
|
+
"gray-text": "#212529",
|
|
1298
|
+
"blue-muted": "#E0F2FF",
|
|
1299
|
+
"purple-muted": "#F9F0FF",
|
|
1300
|
+
"pink-muted": "#FFEFF9",
|
|
1301
|
+
"yellow-muted": "#FFF3D6",
|
|
1302
|
+
"green-muted": "#CEF8E0",
|
|
1303
|
+
"red-muted": "#FFEBE7",
|
|
1304
|
+
"orange-muted": "#FFECCC",
|
|
1305
|
+
"gray-muted": "#e9ecef"
|
|
1149
1306
|
},
|
|
1150
1307
|
status: {
|
|
1151
1308
|
pending: "#825800",
|
|
@@ -1160,6 +1317,35 @@ var semantic = {
|
|
|
1160
1317
|
"processing-bg": "#E0F2FF",
|
|
1161
1318
|
scheduled: "#7E2EBD",
|
|
1162
1319
|
"scheduled-bg": "#F9F0FF"
|
|
1320
|
+
},
|
|
1321
|
+
fill: {
|
|
1322
|
+
emphasis: "#212529",
|
|
1323
|
+
"emphasis-hover": "#343a40",
|
|
1324
|
+
"emphasis-pressed": "#16191C",
|
|
1325
|
+
muted: "#e9ecef",
|
|
1326
|
+
inverse: "#343a40",
|
|
1327
|
+
accent: "#0265DC",
|
|
1328
|
+
"accent-muted": "#E0F2FF",
|
|
1329
|
+
"accent-muted-hover": "#CAE8FF",
|
|
1330
|
+
"accent-muted-pressed": "#B5DEFF",
|
|
1331
|
+
"accent-hover": "#0054B6",
|
|
1332
|
+
"accent-pressed": "#004491",
|
|
1333
|
+
danger: "#D31510",
|
|
1334
|
+
"danger-hover": "#B40000",
|
|
1335
|
+
"danger-pressed": "#930000",
|
|
1336
|
+
"danger-muted": "#FFEBE7",
|
|
1337
|
+
success: "#007A4D",
|
|
1338
|
+
"success-muted": "#CEF8E0",
|
|
1339
|
+
warning: "#B14C00",
|
|
1340
|
+
"warning-muted": "#FFECCC",
|
|
1341
|
+
disabled: "#dee2e6",
|
|
1342
|
+
"default": "#dee2e6",
|
|
1343
|
+
"default-hover": "#ced4da",
|
|
1344
|
+
"default-pressed": "#adb5bd",
|
|
1345
|
+
none: "transparent",
|
|
1346
|
+
"none-hover": "rgba(33, 37, 41, 0.1)",
|
|
1347
|
+
"none-pressed": "rgba(33, 37, 41, 0.15)",
|
|
1348
|
+
"inverse-none-hover": "rgba(255, 255, 255, 0.2)"
|
|
1163
1349
|
}
|
|
1164
1350
|
},
|
|
1165
1351
|
typography: {
|
|
@@ -1185,20 +1371,79 @@ var semantic = {
|
|
|
1185
1371
|
duration: {
|
|
1186
1372
|
normal: "200ms",
|
|
1187
1373
|
fast: "150ms",
|
|
1188
|
-
slow: "300ms"
|
|
1374
|
+
slow: "300ms",
|
|
1375
|
+
instant: "0ms",
|
|
1376
|
+
moderate: "200ms"
|
|
1189
1377
|
},
|
|
1190
1378
|
easing: {
|
|
1191
1379
|
easeInOut: "ease-in-out",
|
|
1192
|
-
easeOut: "ease-out"
|
|
1380
|
+
easeOut: "ease-out",
|
|
1381
|
+
standard: "ease-in-out",
|
|
1382
|
+
decelerate: "ease-out",
|
|
1383
|
+
accelerate: "ease-in"
|
|
1193
1384
|
},
|
|
1194
1385
|
transition: {
|
|
1195
1386
|
fast: "all 150ms ease-out",
|
|
1196
1387
|
normal: "all 200ms ease-in-out",
|
|
1197
|
-
slow: "all 300ms ease-in-out"
|
|
1388
|
+
slow: "all 300ms ease-in-out",
|
|
1389
|
+
feedback: "background-color 150ms ease-out, color 150ms ease-out",
|
|
1390
|
+
focus: "outline 150ms ease-out, outline-offset 150ms ease-out",
|
|
1391
|
+
press: "transform 150ms ease-out, opacity 150ms ease-out"
|
|
1198
1392
|
},
|
|
1199
1393
|
hover: "background-color 150ms ease-out, color 150ms ease-out",
|
|
1200
1394
|
focus: "outline 150ms ease-out, outline-offset 150ms ease-out",
|
|
1201
|
-
interactive: "transform 150ms ease-out, opacity 150ms ease-out"
|
|
1395
|
+
interactive: "transform 150ms ease-out, opacity 150ms ease-out",
|
|
1396
|
+
distance: {
|
|
1397
|
+
sm: "0.5rem"
|
|
1398
|
+
}
|
|
1399
|
+
},
|
|
1400
|
+
layer: {
|
|
1401
|
+
sticky: "10",
|
|
1402
|
+
dropdown: "1000",
|
|
1403
|
+
overlay: "1010",
|
|
1404
|
+
modal: "1020"
|
|
1405
|
+
},
|
|
1406
|
+
radius: {
|
|
1407
|
+
none: "0",
|
|
1408
|
+
xs: "0.125rem",
|
|
1409
|
+
sm: "0.25rem",
|
|
1410
|
+
md: "0.5rem",
|
|
1411
|
+
lg: "0.75rem",
|
|
1412
|
+
xl: "1rem",
|
|
1413
|
+
"2xl": "1.5rem",
|
|
1414
|
+
"3xl": "2rem",
|
|
1415
|
+
full: "10rem"
|
|
1416
|
+
},
|
|
1417
|
+
space: {
|
|
1418
|
+
"0": "0",
|
|
1419
|
+
"100": "0.25rem",
|
|
1420
|
+
"200": "0.5rem",
|
|
1421
|
+
"300": "0.75rem",
|
|
1422
|
+
"400": "1rem",
|
|
1423
|
+
"500": "1.25rem",
|
|
1424
|
+
"600": "1.5rem",
|
|
1425
|
+
"700": "1.75rem",
|
|
1426
|
+
"800": "2rem",
|
|
1427
|
+
"900": "2.25rem",
|
|
1428
|
+
"1000": "2.5rem",
|
|
1429
|
+
"1200": "3rem",
|
|
1430
|
+
"1400": "3.5rem",
|
|
1431
|
+
"1600": "4rem",
|
|
1432
|
+
"2000": "5rem",
|
|
1433
|
+
"2400": "6rem",
|
|
1434
|
+
inset: {
|
|
1435
|
+
xs: "0.25rem",
|
|
1436
|
+
sm: "0.5rem",
|
|
1437
|
+
md: "0.75rem",
|
|
1438
|
+
lg: "1rem",
|
|
1439
|
+
xl: "1.25rem",
|
|
1440
|
+
"2xl": "1.5rem"
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
surface: {
|
|
1444
|
+
base: "#f8f9fa",
|
|
1445
|
+
raised: "#ffffff",
|
|
1446
|
+
scrim: "rgba(33, 37, 41, 0.5)"
|
|
1202
1447
|
}
|
|
1203
1448
|
};
|
|
1204
1449
|
var tokensJson = {
|
|
@@ -1999,8 +2244,10 @@ var iconsJson = {
|
|
|
1999
2244
|
move: move
|
|
2000
2245
|
};
|
|
2001
2246
|
|
|
2002
|
-
//
|
|
2003
|
-
//
|
|
2247
|
+
// The published types come from the generated `src/styles/tokens.ts`, which carries each token's
|
|
2248
|
+
// description as JSDoc and `@deprecated` on deprecated tokens (decision 0033, #199). Declaring the
|
|
2249
|
+
// constant with that type also keeps emitted .d.ts files free of JSON imports, which consumers can
|
|
2250
|
+
// only resolve with `resolveJsonModule`.
|
|
2004
2251
|
var tokens = tokensJson;
|
|
2005
2252
|
|
|
2006
2253
|
// Icon type definitions for external consumption
|
package/dist/data.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.js","sources":["../src/types/tokens.ts","../src/types/icons.ts"],"sourcesContent":["import tokensJson from '../styles/tokens.json'\n\n//
|
|
1
|
+
{"version":3,"file":"data.js","sources":["../src/types/tokens.ts","../src/types/icons.ts"],"sourcesContent":["import tokensJson from '../styles/tokens.json'\nimport type { Tokens } from '../styles/tokens'\n\n// The published types come from the generated `src/styles/tokens.ts`, which carries each token's\n// description as JSDoc and `@deprecated` on deprecated tokens (decision 0033, #199). Declaring the\n// constant with that type also keeps emitted .d.ts files free of JSON imports, which consumers can\n// only resolve with `resolveJsonModule`.\nexport const tokens: Tokens = tokensJson\n\nexport type { Tokens }\nexport type TokensBase = Tokens['base']\nexport type TokensSemantic = Tokens['semantic']\nexport type TokensComponent = Tokens['component']\n","// 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 | '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 | '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":["tokens","tokensJson","iconsData","iconsJson"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACO,IAAMA,MAAM,GAAWC;;ACP9B;AACA;AACA;AA2FA;AACO,IAAMC,SAAS,GAAGC;;;;;;;"}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './components/index.mjs';
|
|
2
|
+
export { tokens, type Tokens, type TokensBase, type TokensSemantic, type TokensComponent, } from './types/tokens.mjs';
|
|
3
|
+
export { iconsData, type IconName, type IconCategory, type IconMetadata, type IconRegistry, } from './types/icons.mjs';
|