@common-origin/design-system 2.19.0 → 2.21.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 +1012 -512
- package/dist/client.js.map +1 -1
- package/dist/components/atoms/AILabel/AILabel.d.mts +30 -0
- package/dist/components/atoms/AILabel/AILabel.d.ts +30 -0
- package/dist/components/atoms/AILabel/AILabel.mjs +94 -0
- package/dist/components/atoms/AILabel/AILabel.mjs.map +1 -0
- package/dist/components/atoms/AILabel/index.d.mts +1 -0
- package/dist/components/atoms/AILabel/index.d.ts +1 -0
- 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/SuggestionChip.d.mts +24 -0
- package/dist/components/atoms/Chip/SuggestionChip.d.ts +24 -0
- package/dist/components/atoms/Chip/SuggestionChip.mjs +61 -0
- package/dist/components/atoms/Chip/SuggestionChip.mjs.map +1 -0
- package/dist/components/atoms/Chip/index.d.mts +5 -0
- package/dist/components/atoms/Chip/index.d.ts +1 -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/utils.d.mts +10 -0
- 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 +21 -0
- package/dist/components/atoms/index.d.ts +1 -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 +92 -0
- package/dist/components/molecules/AgentInput/AgentInput.d.ts +63 -1
- package/dist/components/molecules/AgentInput/AgentInput.mjs +1099 -0
- package/dist/components/molecules/AgentInput/AgentInput.mjs.map +1 -0
- package/dist/components/molecules/AgentInput/agentInputSpeech.d.mts +45 -0
- package/dist/components/molecules/AgentInput/agentInputSpeech.d.ts +2 -0
- package/dist/components/molecules/AgentInput/agentInputSpeech.mjs +53 -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/AgentInput/index.d.ts +1 -1
- 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 +76 -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 +56 -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 +100 -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 +316 -3
- package/dist/data.js.map +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +57 -0
- package/dist/index.mjs.map +1 -0
- package/dist/lib/cssTokens.d.mts +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.mjs +37 -0
- package/dist/lib/cssVariables.mjs.map +1 -0
- package/dist/lib/styleUtils.d.mts +42 -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.mjs +122 -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/styles/icons.json +30 -1
- package/dist/{data.esm.js → styles/icons.json.mjs} +33 -1466
- package/dist/styles/icons.json.mjs.map +1 -0
- package/dist/styles/tokens.d.mts +3718 -0
- package/dist/styles/tokens.d.ts +545 -1
- package/dist/styles/tokens.json +284 -2
- package/dist/styles/tokens.json.mjs +1736 -0
- package/dist/{tokens/index.esm.js.map → styles/tokens.json.mjs.map} +1 -1
- package/dist/tokens/index.js +284 -2
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/{index.esm.js → index.mjs} +285 -3
- package/dist/tokens/index.mjs.map +1 -0
- package/dist/tokens/styles/tokens.d.mts +3718 -0
- package/dist/tokens/styles/tokens.d.ts +545 -1
- package/dist/tokens/tokens.d.mts +4 -0
- package/dist/tokens/types/tokens.d.mts +6 -0
- package/dist/tokens.css +242 -0
- package/dist/tokens.css.d.mts +4 -0
- package/dist/types/icons.d.mts +25 -0
- package/dist/types/icons.d.ts +1 -1
- 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.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 +26 -12
- package/dist/client.esm.js +0 -8289
- 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,115 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { __makeTemplateObject, __rest, __assign } from '../../../vendor/tslib/tslib.es6.mjs';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
import styled$module from 'styled-components';
|
|
5
|
+
const styled = styled$module.default || styled$module;
|
|
6
|
+
import tokens from '../../../lib/cssTokens.mjs';
|
|
7
|
+
|
|
8
|
+
var semantic = tokens.semantic;
|
|
9
|
+
var color = semantic.color,
|
|
10
|
+
size = semantic.size;
|
|
11
|
+
var label = tokens.component.badge.label;
|
|
12
|
+
var space = semantic.space;
|
|
13
|
+
var radius = semantic.radius;
|
|
14
|
+
var StyledTag = /*#__PURE__*/styled.span.withConfig({
|
|
15
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
16
|
+
return !prop.startsWith('$');
|
|
17
|
+
},
|
|
18
|
+
displayName: "Tag__StyledTag",
|
|
19
|
+
componentId: "sc-lzfmti-0"
|
|
20
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: border-box; /* the height includes padding and border, without relying on a global reset */\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: ", ";\n user-select: none;\n white-space: nowrap;\n\n /* Size (decision 0018): small has no vertical padding so the text line fits inside 20px */\n height: ", ";\n padding: ", ";\n font: ", ";\n font-weight: ", ";\n \n /* Variant styles */\n background-color: ", ";\n \n color: ", ";\n \n border: ", ";\n"], ["\n box-sizing: border-box; /* the height includes padding and border, without relying on a global reset */\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: ", ";\n user-select: none;\n white-space: nowrap;\n\n /* Size (decision 0018): small has no vertical padding so the text line fits inside 20px */\n height: ", ";\n padding: ", ";\n font: ", ";\n font-weight: ", ";\n \n /* Variant styles */\n background-color: ", ";\n \n color: ", ";\n \n border: ", ";\n"
|
|
21
|
+
/**
|
|
22
|
+
* Tag component for categorizing and labeling content
|
|
23
|
+
*
|
|
24
|
+
* A static, non-interactive label used to categorize elements or objects in the UI.
|
|
25
|
+
* Tags help users quickly identify and understand content classification.
|
|
26
|
+
*/])), radius.sm, function (_a) {
|
|
27
|
+
var $size = _a.$size;
|
|
28
|
+
return size.label[$size];
|
|
29
|
+
}, function (_a) {
|
|
30
|
+
var $size = _a.$size;
|
|
31
|
+
return $size === 'small' ? "0 ".concat(space[200]) : "".concat(space[100], " ").concat(space[200]);
|
|
32
|
+
}, label.typography.small, label.fontWeight, function (_a) {
|
|
33
|
+
var $variant = _a.$variant;
|
|
34
|
+
switch ($variant) {
|
|
35
|
+
case 'interactive':
|
|
36
|
+
return color.fill['accent-muted'];
|
|
37
|
+
case 'success':
|
|
38
|
+
return color.fill['success-muted'];
|
|
39
|
+
case 'warning':
|
|
40
|
+
return color.fill['warning-muted'];
|
|
41
|
+
case 'error':
|
|
42
|
+
return color.fill['danger-muted'];
|
|
43
|
+
case 'emphasis':
|
|
44
|
+
return color.fill.emphasis;
|
|
45
|
+
default:
|
|
46
|
+
return color.fill.muted;
|
|
47
|
+
}
|
|
48
|
+
}, function (_a) {
|
|
49
|
+
var $variant = _a.$variant;
|
|
50
|
+
switch ($variant) {
|
|
51
|
+
case 'interactive':
|
|
52
|
+
return color.text.accent;
|
|
53
|
+
case 'success':
|
|
54
|
+
return color.text.success;
|
|
55
|
+
case 'warning':
|
|
56
|
+
return color.text.warning;
|
|
57
|
+
case 'error':
|
|
58
|
+
return color.text.danger;
|
|
59
|
+
case 'emphasis':
|
|
60
|
+
return color.text.inverse;
|
|
61
|
+
default:
|
|
62
|
+
return color.text["default"];
|
|
63
|
+
}
|
|
64
|
+
}, function (_a) {
|
|
65
|
+
var $variant = _a.$variant,
|
|
66
|
+
$border = _a.$border;
|
|
67
|
+
if (!$border) return 'none';
|
|
68
|
+
switch ($variant) {
|
|
69
|
+
case 'interactive':
|
|
70
|
+
return "".concat(semantic.border.width.thin, " solid ").concat(color.border.accent);
|
|
71
|
+
case 'success':
|
|
72
|
+
return "".concat(semantic.border.width.thin, " solid ").concat(color.border.success);
|
|
73
|
+
case 'warning':
|
|
74
|
+
return "".concat(semantic.border.width.thin, " solid ").concat(color.border.warning);
|
|
75
|
+
case 'error':
|
|
76
|
+
return "".concat(semantic.border.width.thin, " solid ").concat(color.border.danger);
|
|
77
|
+
case 'emphasis':
|
|
78
|
+
return "".concat(semantic.border.width.thin, " solid ").concat(color.fill.emphasis);
|
|
79
|
+
default:
|
|
80
|
+
return "".concat(semantic.border.width.thin, " solid ").concat(color.border["default"]);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
/**
|
|
84
|
+
* Tag component for categorizing and labeling content
|
|
85
|
+
*
|
|
86
|
+
* A static, non-interactive label used to categorize elements or objects in the UI.
|
|
87
|
+
* Tags help users quickly identify and understand content classification.
|
|
88
|
+
*/
|
|
89
|
+
var Tag = function Tag(_a) {
|
|
90
|
+
var children = _a.children,
|
|
91
|
+
_b = _a.variant,
|
|
92
|
+
variant = _b === void 0 ? 'default' : _b,
|
|
93
|
+
_c = _a.border,
|
|
94
|
+
border = _c === void 0 ? true : _c,
|
|
95
|
+
_d = _a.size,
|
|
96
|
+
tagSize = _d === void 0 ? 'medium' : _d,
|
|
97
|
+
dataTestId = _a["data-testid"],
|
|
98
|
+
props = __rest(_a, ["children", "variant", "border", "size", 'data-testid']);
|
|
99
|
+
return jsx(StyledTag, __assign({
|
|
100
|
+
"$variant": variant,
|
|
101
|
+
"$border": border,
|
|
102
|
+
"$size": tagSize,
|
|
103
|
+
"data-testid": dataTestId,
|
|
104
|
+
"data-variant": variant,
|
|
105
|
+
"data-border": border,
|
|
106
|
+
role: "status",
|
|
107
|
+
"aria-label": typeof children === 'string' ? "Tag: ".concat(children) : undefined
|
|
108
|
+
}, props, {
|
|
109
|
+
children: children
|
|
110
|
+
}));
|
|
111
|
+
};
|
|
112
|
+
var templateObject_1;
|
|
113
|
+
|
|
114
|
+
export { Tag };
|
|
115
|
+
//# sourceMappingURL=Tag.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TypographyVariant = 'display' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle' | 'body' | 'small' | 'overline' | 'caption' | 'button1' | 'button2' | 'button3' | 'label';
|
|
3
|
+
export type TypographyColor = "default" | "emphasis" | "subdued" | "inverse" | "disabled" | "interactive" | "error" | "success" | "warning";
|
|
4
|
+
export interface TypographyProps {
|
|
5
|
+
/** Typography variant defining the semantic meaning and style */
|
|
6
|
+
variant?: TypographyVariant;
|
|
7
|
+
/** Color variant for the text */
|
|
8
|
+
color?: TypographyColor;
|
|
9
|
+
/** Content to render */
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
/** HTML element to render as (overrides default semantic element) */
|
|
12
|
+
as?: React.ElementType;
|
|
13
|
+
/** Data test id for testing */
|
|
14
|
+
'data-testid'?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Typography is an atomic component for rendering text with semantic meaning and consistent styling.
|
|
18
|
+
*
|
|
19
|
+
* Features:
|
|
20
|
+
* - Semantic variants (h1-h6, body, subtitle, etc.)
|
|
21
|
+
* - Color variants for different contexts
|
|
22
|
+
* - Automatic semantic HTML element selection
|
|
23
|
+
* - Manual element override support
|
|
24
|
+
* - Direct semantic token usage (no component tokens needed)
|
|
25
|
+
* - Full accessibility support
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* <Typography variant="h1">Main Heading</Typography>
|
|
30
|
+
* <Typography variant="body" color="subdued">Body text</Typography>
|
|
31
|
+
* <Typography variant="caption" as="figcaption">Image caption</Typography>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare const Typography: React.FC<TypographyProps>;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { __makeTemplateObject } from '../../../vendor/tslib/tslib.es6.mjs';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
import styled$module from 'styled-components';
|
|
5
|
+
const styled = styled$module.default || styled$module;
|
|
6
|
+
import tokens from '../../../lib/cssTokens.mjs';
|
|
7
|
+
|
|
8
|
+
var _a = tokens.semantic,
|
|
9
|
+
typography = _a.typography,
|
|
10
|
+
color = _a.color,
|
|
11
|
+
letterSpacing = _a.letterSpacing;
|
|
12
|
+
var getTypographyStyles = function getTypographyStyles(variant) {
|
|
13
|
+
var styles = {
|
|
14
|
+
display: "font: ".concat(typography.display, "; letter-spacing: ").concat(letterSpacing.tighter, ";"),
|
|
15
|
+
h1: "font: ".concat(typography.h1, "; letter-spacing: ").concat(letterSpacing.tighter, ";"),
|
|
16
|
+
h2: "font: ".concat(typography.h2, "; letter-spacing: ").concat(letterSpacing.tight, ";"),
|
|
17
|
+
h3: "font: ".concat(typography.h3, "; letter-spacing: ").concat(letterSpacing.tight, ";"),
|
|
18
|
+
h4: "font: ".concat(typography.h4, "; letter-spacing: ").concat(letterSpacing.tight, ";"),
|
|
19
|
+
h5: "font: ".concat(typography.h5, "; letter-spacing: ").concat(letterSpacing.normal, ";"),
|
|
20
|
+
h6: "font: ".concat(typography.h6, "; letter-spacing: ").concat(letterSpacing.normal, ";"),
|
|
21
|
+
subtitle: "font: ".concat(typography.subtitle, ";"),
|
|
22
|
+
body: "font: ".concat(typography.body, ";"),
|
|
23
|
+
small: "font: ".concat(typography.small, ";"),
|
|
24
|
+
overline: "font: ".concat(typography.overline, ";"),
|
|
25
|
+
caption: "font: ".concat(typography.caption, "; text-transform: uppercase;"),
|
|
26
|
+
button1: "font: ".concat(tokens.component.button.sizes.large.font, ";"),
|
|
27
|
+
button2: "font: ".concat(tokens.component.button.sizes.medium.font, ";"),
|
|
28
|
+
button3: "font: ".concat(tokens.component.button.sizes.small.font, ";"),
|
|
29
|
+
label: "font: ".concat(typography.label, ";")
|
|
30
|
+
};
|
|
31
|
+
return styles[variant] || styles.body;
|
|
32
|
+
};
|
|
33
|
+
var getTextColor = function getTextColor(colorVariant) {
|
|
34
|
+
var colorMap = {
|
|
35
|
+
"default": color.text["default"],
|
|
36
|
+
emphasis: color.text.emphasis,
|
|
37
|
+
subdued: color.text.muted,
|
|
38
|
+
inverse: color.text.inverse,
|
|
39
|
+
disabled: color.text.disabled,
|
|
40
|
+
interactive: color.text.accent,
|
|
41
|
+
error: color.text.danger,
|
|
42
|
+
success: color.text.success,
|
|
43
|
+
warning: color.text.warning
|
|
44
|
+
};
|
|
45
|
+
return colorMap[colorVariant] || colorMap["default"];
|
|
46
|
+
};
|
|
47
|
+
var getDefaultElement = function getDefaultElement(variant) {
|
|
48
|
+
var elementMap = {
|
|
49
|
+
display: 'h1',
|
|
50
|
+
h1: 'h1',
|
|
51
|
+
h2: 'h2',
|
|
52
|
+
h3: 'h3',
|
|
53
|
+
h4: 'h4',
|
|
54
|
+
h5: 'h5',
|
|
55
|
+
h6: 'h6',
|
|
56
|
+
subtitle: 'p',
|
|
57
|
+
body: 'p',
|
|
58
|
+
small: 'span',
|
|
59
|
+
overline: 'span',
|
|
60
|
+
caption: 'span',
|
|
61
|
+
button1: 'span',
|
|
62
|
+
button2: 'span',
|
|
63
|
+
button3: 'span',
|
|
64
|
+
label: 'span'
|
|
65
|
+
};
|
|
66
|
+
return elementMap[variant] || 'span';
|
|
67
|
+
};
|
|
68
|
+
var StyledTypography = /*#__PURE__*/styled.span.withConfig({
|
|
69
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
70
|
+
return !prop.startsWith('$');
|
|
71
|
+
},
|
|
72
|
+
displayName: "Typography__StyledTypography",
|
|
73
|
+
componentId: "sc-17mqo4k-0"
|
|
74
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n color: ", ";\n margin: 0;\n"], ["\n ", "\n color: ", ";\n margin: 0;\n"
|
|
75
|
+
/**
|
|
76
|
+
* Typography is an atomic component for rendering text with semantic meaning and consistent styling.
|
|
77
|
+
*
|
|
78
|
+
* Features:
|
|
79
|
+
* - Semantic variants (h1-h6, body, subtitle, etc.)
|
|
80
|
+
* - Color variants for different contexts
|
|
81
|
+
* - Automatic semantic HTML element selection
|
|
82
|
+
* - Manual element override support
|
|
83
|
+
* - Direct semantic token usage (no component tokens needed)
|
|
84
|
+
* - Full accessibility support
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```tsx
|
|
88
|
+
* <Typography variant="h1">Main Heading</Typography>
|
|
89
|
+
* <Typography variant="body" color="subdued">Body text</Typography>
|
|
90
|
+
* <Typography variant="caption" as="figcaption">Image caption</Typography>
|
|
91
|
+
* ```
|
|
92
|
+
*/])), function (_a) {
|
|
93
|
+
var $variant = _a.$variant;
|
|
94
|
+
return getTypographyStyles($variant);
|
|
95
|
+
}, function (_a) {
|
|
96
|
+
var $color = _a.$color;
|
|
97
|
+
return getTextColor($color);
|
|
98
|
+
});
|
|
99
|
+
/**
|
|
100
|
+
* Typography is an atomic component for rendering text with semantic meaning and consistent styling.
|
|
101
|
+
*
|
|
102
|
+
* Features:
|
|
103
|
+
* - Semantic variants (h1-h6, body, subtitle, etc.)
|
|
104
|
+
* - Color variants for different contexts
|
|
105
|
+
* - Automatic semantic HTML element selection
|
|
106
|
+
* - Manual element override support
|
|
107
|
+
* - Direct semantic token usage (no component tokens needed)
|
|
108
|
+
* - Full accessibility support
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```tsx
|
|
112
|
+
* <Typography variant="h1">Main Heading</Typography>
|
|
113
|
+
* <Typography variant="body" color="subdued">Body text</Typography>
|
|
114
|
+
* <Typography variant="caption" as="figcaption">Image caption</Typography>
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
var Typography = function Typography(_a) {
|
|
118
|
+
var _b = _a.variant,
|
|
119
|
+
variant = _b === void 0 ? 'body' : _b,
|
|
120
|
+
children = _a.children,
|
|
121
|
+
_c = _a.color,
|
|
122
|
+
color = _c === void 0 ? 'default' : _c,
|
|
123
|
+
as = _a.as,
|
|
124
|
+
dataTestId = _a["data-testid"];
|
|
125
|
+
// $variant and $color are only used for styled-components prop filtering
|
|
126
|
+
var defaultElement = getDefaultElement(variant);
|
|
127
|
+
var elementType = as || defaultElement;
|
|
128
|
+
return jsx(StyledTypography, {
|
|
129
|
+
as: elementType,
|
|
130
|
+
"$variant": variant,
|
|
131
|
+
"$color": color,
|
|
132
|
+
"data-testid": dataTestId,
|
|
133
|
+
children: children
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
var templateObject_1;
|
|
137
|
+
|
|
138
|
+
export { Typography };
|
|
139
|
+
//# sourceMappingURL=Typography.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Typography.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Typography.mjs';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './Avatar/index.mjs';
|
|
2
|
+
export * from './Badge/index.mjs';
|
|
3
|
+
export * from './Box/index.mjs';
|
|
4
|
+
export * from './Button/index.mjs';
|
|
5
|
+
export * from './CategoryBadge/index.mjs';
|
|
6
|
+
export * from './CategoryLabel/index.mjs';
|
|
7
|
+
export * from './Chip/index.mjs';
|
|
8
|
+
export * from './Container/index.mjs';
|
|
9
|
+
export * from './Picture/index.mjs';
|
|
10
|
+
export * from './DateFormatter/index.mjs';
|
|
11
|
+
export * from './Icon/index.mjs';
|
|
12
|
+
export * from './IconButton/index.mjs';
|
|
13
|
+
export * from './MoneyDisplay/index.mjs';
|
|
14
|
+
export * from './ProgressBar/index.mjs';
|
|
15
|
+
export * from './Divider/index.mjs';
|
|
16
|
+
export * from './Stack/index.mjs';
|
|
17
|
+
export * from './StatusBadge/index.mjs';
|
|
18
|
+
export * from './StatusLabel/index.mjs';
|
|
19
|
+
export * from './Tag/index.mjs';
|
|
20
|
+
export * from './Typography/index.mjs';
|
|
21
|
+
export * from './AILabel/index.mjs';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Tokens } from '../../../types/tokens.mjs';
|
|
3
|
+
interface GridProps {
|
|
4
|
+
cols?: number;
|
|
5
|
+
gap?: keyof Tokens['base']['spacing'];
|
|
6
|
+
gapX?: keyof Tokens['base']['spacing'];
|
|
7
|
+
gapY?: keyof Tokens['base']['spacing'];
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Test identifier for automated testing */
|
|
10
|
+
'data-testid'?: string;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const Grid: React.FC<GridProps>;
|
|
14
|
+
interface GridColProps {
|
|
15
|
+
span?: number;
|
|
16
|
+
spanSm?: number;
|
|
17
|
+
spanMd?: number;
|
|
18
|
+
spanLg?: number;
|
|
19
|
+
spanXl?: number;
|
|
20
|
+
order?: number;
|
|
21
|
+
orderSm?: number;
|
|
22
|
+
orderMd?: number;
|
|
23
|
+
orderLg?: number;
|
|
24
|
+
orderXl?: number;
|
|
25
|
+
className?: string;
|
|
26
|
+
/** Test identifier for automated testing */
|
|
27
|
+
'data-testid'?: string;
|
|
28
|
+
children: React.ReactNode;
|
|
29
|
+
}
|
|
30
|
+
export declare const GridCol: React.FC<GridColProps>;
|
|
31
|
+
interface ResponsiveGridProps {
|
|
32
|
+
cols: number;
|
|
33
|
+
colsSm?: number;
|
|
34
|
+
colsMd?: number;
|
|
35
|
+
colsLg?: number;
|
|
36
|
+
colsXl?: number;
|
|
37
|
+
gap?: keyof Tokens['base']['spacing'];
|
|
38
|
+
gapSm?: keyof Tokens['base']['spacing'];
|
|
39
|
+
gapMd?: keyof Tokens['base']['spacing'];
|
|
40
|
+
gapLg?: keyof Tokens['base']['spacing'];
|
|
41
|
+
gapXl?: keyof Tokens['base']['spacing'];
|
|
42
|
+
gapX?: keyof Tokens['base']['spacing'];
|
|
43
|
+
gapXSm?: keyof Tokens['base']['spacing'];
|
|
44
|
+
gapXMd?: keyof Tokens['base']['spacing'];
|
|
45
|
+
gapXLg?: keyof Tokens['base']['spacing'];
|
|
46
|
+
gapXXl?: keyof Tokens['base']['spacing'];
|
|
47
|
+
gapY?: keyof Tokens['base']['spacing'];
|
|
48
|
+
gapYSm?: keyof Tokens['base']['spacing'];
|
|
49
|
+
gapYMd?: keyof Tokens['base']['spacing'];
|
|
50
|
+
gapYLg?: keyof Tokens['base']['spacing'];
|
|
51
|
+
gapYXl?: keyof Tokens['base']['spacing'];
|
|
52
|
+
className?: string;
|
|
53
|
+
/** Test identifier for automated testing */
|
|
54
|
+
'data-testid'?: string;
|
|
55
|
+
children: React.ReactNode;
|
|
56
|
+
}
|
|
57
|
+
export declare const ResponsiveGrid: React.FC<ResponsiveGridProps>;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { __makeTemplateObject } from '../../../vendor/tslib/tslib.es6.mjs';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
import styled$module, { css } from 'styled-components';
|
|
5
|
+
const styled = styled$module.default || styled$module;
|
|
6
|
+
import tokens from '../../../lib/cssTokens.mjs';
|
|
7
|
+
|
|
8
|
+
// Exception to decision 0014: the gap props are typed as base spacing keys (public API),
|
|
9
|
+
// so they are looked up in base.spacing until they accept semantic keys.
|
|
10
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
11
|
+
var gapSpacing = tokens.base.spacing;
|
|
12
|
+
// Breakpoints using base tokens
|
|
13
|
+
var breakpoints = {
|
|
14
|
+
xs: tokens.semantic.breakpoint.xs,
|
|
15
|
+
sm: tokens.semantic.breakpoint.sm,
|
|
16
|
+
md: tokens.semantic.breakpoint.md,
|
|
17
|
+
lg: tokens.semantic.breakpoint.lg,
|
|
18
|
+
xl: tokens.semantic.breakpoint.xl,
|
|
19
|
+
'2xl': tokens.semantic.breakpoint['2xl']
|
|
20
|
+
};
|
|
21
|
+
// Media query helpers
|
|
22
|
+
var media = {
|
|
23
|
+
xs: "@media (min-width: ".concat(breakpoints.xs, ")"),
|
|
24
|
+
sm: "@media (min-width: ".concat(breakpoints.sm, ")"),
|
|
25
|
+
md: "@media (min-width: ".concat(breakpoints.md, ")"),
|
|
26
|
+
lg: "@media (min-width: ".concat(breakpoints.lg, ")"),
|
|
27
|
+
xl: "@media (min-width: ".concat(breakpoints.xl, ")"),
|
|
28
|
+
'2xl': "@media (min-width: ".concat(breakpoints['2xl'], ")")
|
|
29
|
+
};
|
|
30
|
+
var GridContainer = /*#__PURE__*/styled.div.withConfig({
|
|
31
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
32
|
+
return !prop.startsWith('$');
|
|
33
|
+
},
|
|
34
|
+
displayName: "GridSystem__GridContainer",
|
|
35
|
+
componentId: "sc-1lhwjqo-0"
|
|
36
|
+
})(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: repeat(", ", minmax(0, 1fr));\n \n ", "\n ", "\n ", "\n"], ["\n display: grid;\n grid-template-columns: repeat(", ", minmax(0, 1fr));\n \n ", "\n ", "\n ", "\n"])), function (props) {
|
|
37
|
+
return props.$cols;
|
|
38
|
+
}, function (props) {
|
|
39
|
+
return props.$gap && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["gap: ", ";"], ["gap: ", ";"])), props.$gap);
|
|
40
|
+
}, function (props) {
|
|
41
|
+
return props.$gapX && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["column-gap: ", ";"], ["column-gap: ", ";"])), props.$gapX);
|
|
42
|
+
}, function (props) {
|
|
43
|
+
return props.$gapY && css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["row-gap: ", ";"], ["row-gap: ", ";"])), props.$gapY);
|
|
44
|
+
});
|
|
45
|
+
var Grid = function Grid(_a) {
|
|
46
|
+
var _b = _a.cols,
|
|
47
|
+
cols = _b === void 0 ? 12 : _b,
|
|
48
|
+
gap = _a.gap,
|
|
49
|
+
gapX = _a.gapX,
|
|
50
|
+
gapY = _a.gapY,
|
|
51
|
+
className = _a.className,
|
|
52
|
+
dataTestId = _a["data-testid"],
|
|
53
|
+
children = _a.children;
|
|
54
|
+
return jsx(GridContainer, {
|
|
55
|
+
"$cols": cols,
|
|
56
|
+
"$gap": gap ? gapSpacing[gap] : undefined,
|
|
57
|
+
"$gapX": gapX ? gapSpacing[gapX] : undefined,
|
|
58
|
+
"$gapY": gapY ? gapSpacing[gapY] : undefined,
|
|
59
|
+
className: className,
|
|
60
|
+
"data-testid": dataTestId,
|
|
61
|
+
children: children
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
var GridColContainer = /*#__PURE__*/styled.div.withConfig({
|
|
65
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
66
|
+
return !prop.startsWith('$');
|
|
67
|
+
},
|
|
68
|
+
displayName: "GridSystem__GridColContainer",
|
|
69
|
+
componentId: "sc-1lhwjqo-1"
|
|
70
|
+
})(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n ", "\n ", "\n \n ", "\n \n ", "\n \n ", "\n \n ", "\n \n ", "\n \n ", "\n \n ", "\n \n ", "\n"], ["\n ", "\n ", "\n \n ", "\n \n ", "\n \n ", "\n \n ", "\n \n ", "\n \n ", "\n \n ", "\n \n ", "\n"])), function (props) {
|
|
71
|
+
return props.$span && css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["grid-column: span ", " / span ", ";"], ["grid-column: span ", " / span ", ";"])), props.$span, props.$span);
|
|
72
|
+
}, function (props) {
|
|
73
|
+
return props.$order !== undefined && css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["order: ", ";"], ["order: ", ";"])), props.$order);
|
|
74
|
+
}, function (props) {
|
|
75
|
+
return props.$spanSm && css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", " {\n grid-column: span ", " / span ", ";\n }\n "], ["\n ", " {\n grid-column: span ", " / span ", ";\n }\n "])), media.sm, props.$spanSm, props.$spanSm);
|
|
76
|
+
}, function (props) {
|
|
77
|
+
return props.$spanMd && css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", " {\n grid-column: span ", " / span ", ";\n }\n "], ["\n ", " {\n grid-column: span ", " / span ", ";\n }\n "])), media.md, props.$spanMd, props.$spanMd);
|
|
78
|
+
}, function (props) {
|
|
79
|
+
return props.$spanLg && css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", " {\n grid-column: span ", " / span ", ";\n }\n "], ["\n ", " {\n grid-column: span ", " / span ", ";\n }\n "])), media.lg, props.$spanLg, props.$spanLg);
|
|
80
|
+
}, function (props) {
|
|
81
|
+
return props.$spanXl && css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", " {\n grid-column: span ", " / span ", ";\n }\n "], ["\n ", " {\n grid-column: span ", " / span ", ";\n }\n "])), media.xl, props.$spanXl, props.$spanXl);
|
|
82
|
+
}, function (props) {
|
|
83
|
+
return props.$orderSm !== undefined && css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n ", " {\n order: ", ";\n }\n "], ["\n ", " {\n order: ", ";\n }\n "])), media.sm, props.$orderSm);
|
|
84
|
+
}, function (props) {
|
|
85
|
+
return props.$orderMd !== undefined && css(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", " {\n order: ", ";\n }\n "], ["\n ", " {\n order: ", ";\n }\n "])), media.md, props.$orderMd);
|
|
86
|
+
}, function (props) {
|
|
87
|
+
return props.$orderLg !== undefined && css(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", " {\n order: ", ";\n }\n "], ["\n ", " {\n order: ", ";\n }\n "])), media.lg, props.$orderLg);
|
|
88
|
+
}, function (props) {
|
|
89
|
+
return props.$orderXl !== undefined && css(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", " {\n order: ", ";\n }\n "], ["\n ", " {\n order: ", ";\n }\n "])), media.xl, props.$orderXl);
|
|
90
|
+
});
|
|
91
|
+
var GridCol = function GridCol(_a) {
|
|
92
|
+
var span = _a.span,
|
|
93
|
+
spanSm = _a.spanSm,
|
|
94
|
+
spanMd = _a.spanMd,
|
|
95
|
+
spanLg = _a.spanLg,
|
|
96
|
+
spanXl = _a.spanXl,
|
|
97
|
+
order = _a.order,
|
|
98
|
+
orderSm = _a.orderSm,
|
|
99
|
+
orderMd = _a.orderMd,
|
|
100
|
+
orderLg = _a.orderLg,
|
|
101
|
+
orderXl = _a.orderXl,
|
|
102
|
+
className = _a.className,
|
|
103
|
+
dataTestId = _a["data-testid"],
|
|
104
|
+
children = _a.children;
|
|
105
|
+
return jsx(GridColContainer, {
|
|
106
|
+
"$span": span,
|
|
107
|
+
"$spanSm": spanSm,
|
|
108
|
+
"$spanMd": spanMd,
|
|
109
|
+
"$spanLg": spanLg,
|
|
110
|
+
"$spanXl": spanXl,
|
|
111
|
+
"$order": order,
|
|
112
|
+
"$orderSm": orderSm,
|
|
113
|
+
"$orderMd": orderMd,
|
|
114
|
+
"$orderLg": orderLg,
|
|
115
|
+
"$orderXl": orderXl,
|
|
116
|
+
className: className,
|
|
117
|
+
"data-testid": dataTestId,
|
|
118
|
+
children: children
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
var ResponsiveGridContainer = /*#__PURE__*/styled.div.withConfig({
|
|
122
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
123
|
+
return !prop.startsWith('$');
|
|
124
|
+
},
|
|
125
|
+
displayName: "GridSystem__ResponsiveGridContainer",
|
|
126
|
+
componentId: "sc-1lhwjqo-2"
|
|
127
|
+
})(templateObject_35 || (templateObject_35 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: repeat(", ", minmax(0, 1fr));\n \n ", "\n ", "\n ", "\n \n ", "\n \n ", "\n \n ", "\n \n ", "\n \n // Responsive gap support\n ", "\n \n ", "\n \n ", "\n \n ", "\n \n // Responsive column gap support\n ", "\n \n ", "\n \n ", "\n \n ", "\n \n // Responsive row gap support\n ", "\n \n ", "\n \n ", "\n \n ", "\n"], ["\n display: grid;\n grid-template-columns: repeat(", ", minmax(0, 1fr));\n \n ", "\n ", "\n ", "\n \n ", "\n \n ", "\n \n ", "\n \n ", "\n \n // Responsive gap support\n ", "\n \n ", "\n \n ", "\n \n ", "\n \n // Responsive column gap support\n ", "\n \n ", "\n \n ", "\n \n ", "\n \n // Responsive row gap support\n ", "\n \n ", "\n \n ", "\n \n ", "\n"])), function (props) {
|
|
128
|
+
return props.$cols;
|
|
129
|
+
}, function (props) {
|
|
130
|
+
return props.$gap && css(templateObject_16 || (templateObject_16 = __makeTemplateObject(["gap: ", ";"], ["gap: ", ";"])), props.$gap);
|
|
131
|
+
}, function (props) {
|
|
132
|
+
return props.$gapX && css(templateObject_17 || (templateObject_17 = __makeTemplateObject(["column-gap: ", ";"], ["column-gap: ", ";"])), props.$gapX);
|
|
133
|
+
}, function (props) {
|
|
134
|
+
return props.$gapY && css(templateObject_18 || (templateObject_18 = __makeTemplateObject(["row-gap: ", ";"], ["row-gap: ", ";"])), props.$gapY);
|
|
135
|
+
}, function (props) {
|
|
136
|
+
return props.$colsSm && css(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n ", " {\n grid-template-columns: repeat(", ", minmax(0, 1fr));\n }\n "], ["\n ", " {\n grid-template-columns: repeat(", ", minmax(0, 1fr));\n }\n "])), media.sm, props.$colsSm);
|
|
137
|
+
}, function (props) {
|
|
138
|
+
return props.$colsMd && css(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n ", " {\n grid-template-columns: repeat(", ", minmax(0, 1fr));\n }\n "], ["\n ", " {\n grid-template-columns: repeat(", ", minmax(0, 1fr));\n }\n "])), media.md, props.$colsMd);
|
|
139
|
+
}, function (props) {
|
|
140
|
+
return props.$colsLg && css(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n ", " {\n grid-template-columns: repeat(", ", minmax(0, 1fr));\n }\n "], ["\n ", " {\n grid-template-columns: repeat(", ", minmax(0, 1fr));\n }\n "])), media.lg, props.$colsLg);
|
|
141
|
+
}, function (props) {
|
|
142
|
+
return props.$colsXl && css(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n ", " {\n grid-template-columns: repeat(", ", minmax(0, 1fr));\n }\n "], ["\n ", " {\n grid-template-columns: repeat(", ", minmax(0, 1fr));\n }\n "])), media.xl, props.$colsXl);
|
|
143
|
+
}, function (props) {
|
|
144
|
+
return props.$gapSm && css(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n ", " {\n gap: ", ";\n }\n "], ["\n ", " {\n gap: ", ";\n }\n "])), media.sm, props.$gapSm);
|
|
145
|
+
}, function (props) {
|
|
146
|
+
return props.$gapMd && css(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n ", " {\n gap: ", ";\n }\n "], ["\n ", " {\n gap: ", ";\n }\n "])), media.md, props.$gapMd);
|
|
147
|
+
}, function (props) {
|
|
148
|
+
return props.$gapLg && css(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n ", " {\n gap: ", ";\n }\n "], ["\n ", " {\n gap: ", ";\n }\n "])), media.lg, props.$gapLg);
|
|
149
|
+
}, function (props) {
|
|
150
|
+
return props.$gapXl && css(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n ", " {\n gap: ", ";\n }\n "], ["\n ", " {\n gap: ", ";\n }\n "])), media.xl, props.$gapXl);
|
|
151
|
+
}, function (props) {
|
|
152
|
+
return props.$gapXSm && css(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n ", " {\n column-gap: ", ";\n }\n "], ["\n ", " {\n column-gap: ", ";\n }\n "])), media.sm, props.$gapXSm);
|
|
153
|
+
}, function (props) {
|
|
154
|
+
return props.$gapXMd && css(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n ", " {\n column-gap: ", ";\n }\n "], ["\n ", " {\n column-gap: ", ";\n }\n "])), media.md, props.$gapXMd);
|
|
155
|
+
}, function (props) {
|
|
156
|
+
return props.$gapXLg && css(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n ", " {\n column-gap: ", ";\n }\n "], ["\n ", " {\n column-gap: ", ";\n }\n "])), media.lg, props.$gapXLg);
|
|
157
|
+
}, function (props) {
|
|
158
|
+
return props.$gapXXl && css(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n ", " {\n column-gap: ", ";\n }\n "], ["\n ", " {\n column-gap: ", ";\n }\n "])), media.xl, props.$gapXXl);
|
|
159
|
+
}, function (props) {
|
|
160
|
+
return props.$gapYSm && css(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n ", " {\n row-gap: ", ";\n }\n "], ["\n ", " {\n row-gap: ", ";\n }\n "])), media.sm, props.$gapYSm);
|
|
161
|
+
}, function (props) {
|
|
162
|
+
return props.$gapYMd && css(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n ", " {\n row-gap: ", ";\n }\n "], ["\n ", " {\n row-gap: ", ";\n }\n "])), media.md, props.$gapYMd);
|
|
163
|
+
}, function (props) {
|
|
164
|
+
return props.$gapYLg && css(templateObject_33 || (templateObject_33 = __makeTemplateObject(["\n ", " {\n row-gap: ", ";\n }\n "], ["\n ", " {\n row-gap: ", ";\n }\n "])), media.lg, props.$gapYLg);
|
|
165
|
+
}, function (props) {
|
|
166
|
+
return props.$gapYXl && css(templateObject_34 || (templateObject_34 = __makeTemplateObject(["\n ", " {\n row-gap: ", ";\n }\n "], ["\n ", " {\n row-gap: ", ";\n }\n "])), media.xl, props.$gapYXl);
|
|
167
|
+
});
|
|
168
|
+
var ResponsiveGrid = function ResponsiveGrid(_a) {
|
|
169
|
+
var cols = _a.cols,
|
|
170
|
+
colsSm = _a.colsSm,
|
|
171
|
+
colsMd = _a.colsMd,
|
|
172
|
+
colsLg = _a.colsLg,
|
|
173
|
+
colsXl = _a.colsXl,
|
|
174
|
+
gap = _a.gap,
|
|
175
|
+
gapSm = _a.gapSm,
|
|
176
|
+
gapMd = _a.gapMd,
|
|
177
|
+
gapLg = _a.gapLg,
|
|
178
|
+
gapXl = _a.gapXl,
|
|
179
|
+
gapX = _a.gapX,
|
|
180
|
+
gapXSm = _a.gapXSm,
|
|
181
|
+
gapXMd = _a.gapXMd,
|
|
182
|
+
gapXLg = _a.gapXLg,
|
|
183
|
+
gapXXl = _a.gapXXl,
|
|
184
|
+
gapY = _a.gapY,
|
|
185
|
+
gapYSm = _a.gapYSm,
|
|
186
|
+
gapYMd = _a.gapYMd,
|
|
187
|
+
gapYLg = _a.gapYLg,
|
|
188
|
+
gapYXl = _a.gapYXl,
|
|
189
|
+
className = _a.className,
|
|
190
|
+
dataTestId = _a["data-testid"],
|
|
191
|
+
children = _a.children;
|
|
192
|
+
return jsx(ResponsiveGridContainer, {
|
|
193
|
+
"$cols": cols,
|
|
194
|
+
"$colsSm": colsSm,
|
|
195
|
+
"$colsMd": colsMd,
|
|
196
|
+
"$colsLg": colsLg,
|
|
197
|
+
"$colsXl": colsXl,
|
|
198
|
+
"$gap": gap ? gapSpacing[gap] : undefined,
|
|
199
|
+
"$gapSm": gapSm ? gapSpacing[gapSm] : undefined,
|
|
200
|
+
"$gapMd": gapMd ? gapSpacing[gapMd] : undefined,
|
|
201
|
+
"$gapLg": gapLg ? gapSpacing[gapLg] : undefined,
|
|
202
|
+
"$gapXl": gapXl ? gapSpacing[gapXl] : undefined,
|
|
203
|
+
"$gapX": gapX ? gapSpacing[gapX] : undefined,
|
|
204
|
+
"$gapXSm": gapXSm ? gapSpacing[gapXSm] : undefined,
|
|
205
|
+
"$gapXMd": gapXMd ? gapSpacing[gapXMd] : undefined,
|
|
206
|
+
"$gapXLg": gapXLg ? gapSpacing[gapXLg] : undefined,
|
|
207
|
+
"$gapXXl": gapXXl ? gapSpacing[gapXXl] : undefined,
|
|
208
|
+
"$gapY": gapY ? gapSpacing[gapY] : undefined,
|
|
209
|
+
"$gapYSm": gapYSm ? gapSpacing[gapYSm] : undefined,
|
|
210
|
+
"$gapYMd": gapYMd ? gapSpacing[gapYMd] : undefined,
|
|
211
|
+
"$gapYLg": gapYLg ? gapSpacing[gapYLg] : undefined,
|
|
212
|
+
"$gapYXl": gapYXl ? gapSpacing[gapYXl] : undefined,
|
|
213
|
+
className: className,
|
|
214
|
+
"data-testid": dataTestId,
|
|
215
|
+
children: children
|
|
216
|
+
});
|
|
217
|
+
};
|
|
218
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35;
|
|
219
|
+
|
|
220
|
+
export { Grid, GridCol, ResponsiveGrid };
|
|
221
|
+
//# sourceMappingURL=GridSystem.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridSystem.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ResponsiveGrid, GridCol, Grid } from './GridSystem.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GridSystem/index.mjs';
|