@metamask-previews/design-system-react-native 0.56.1-preview-7d5964a → 0.56.2-preview-91ce2ce2
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/CHANGELOG.md +13 -1
- package/dist/components/BottomSheetFooter/BottomSheetFooter.cjs +1 -1
- package/dist/components/BottomSheetFooter/BottomSheetFooter.cjs.map +1 -1
- package/dist/components/BottomSheetFooter/BottomSheetFooter.mjs +1 -1
- package/dist/components/BottomSheetFooter/BottomSheetFooter.mjs.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.cjs +13 -0
- package/dist/components/BoxColumn/BoxColumn.cjs.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.d.cts +13 -0
- package/dist/components/BoxColumn/BoxColumn.d.cts.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.d.mts +13 -0
- package/dist/components/BoxColumn/BoxColumn.d.mts.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.mjs +13 -0
- package/dist/components/BoxColumn/BoxColumn.mjs.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.types.cjs.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.types.d.cts +2 -0
- package/dist/components/BoxColumn/BoxColumn.types.d.cts.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.types.d.mts +2 -0
- package/dist/components/BoxColumn/BoxColumn.types.d.mts.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.types.mjs.map +1 -1
- package/dist/components/BoxRow/BoxRow.cjs +13 -0
- package/dist/components/BoxRow/BoxRow.cjs.map +1 -1
- package/dist/components/BoxRow/BoxRow.d.cts +13 -0
- package/dist/components/BoxRow/BoxRow.d.cts.map +1 -1
- package/dist/components/BoxRow/BoxRow.d.mts +13 -0
- package/dist/components/BoxRow/BoxRow.d.mts.map +1 -1
- package/dist/components/BoxRow/BoxRow.mjs +13 -0
- package/dist/components/BoxRow/BoxRow.mjs.map +1 -1
- package/dist/components/BoxRow/BoxRow.types.cjs.map +1 -1
- package/dist/components/BoxRow/BoxRow.types.d.cts +2 -0
- package/dist/components/BoxRow/BoxRow.types.d.cts.map +1 -1
- package/dist/components/BoxRow/BoxRow.types.d.mts +2 -0
- package/dist/components/BoxRow/BoxRow.types.d.mts.map +1 -1
- package/dist/components/BoxRow/BoxRow.types.mjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.cjs +9 -5
- package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.mjs +10 -6
- package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.types.cjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.types.d.cts +2 -3
- package/dist/components/ButtonBase/ButtonBase.types.d.cts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.types.d.mts +2 -3
- package/dist/components/ButtonBase/ButtonBase.types.d.mts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.types.mjs.map +1 -1
- package/dist/components/Content/Content.cjs +40 -32
- package/dist/components/Content/Content.cjs.map +1 -1
- package/dist/components/Content/Content.d.cts.map +1 -1
- package/dist/components/Content/Content.d.mts.map +1 -1
- package/dist/components/Content/Content.mjs +40 -32
- package/dist/components/Content/Content.mjs.map +1 -1
- package/dist/components/HeaderRoot/HeaderRoot.cjs +8 -5
- package/dist/components/HeaderRoot/HeaderRoot.cjs.map +1 -1
- package/dist/components/HeaderRoot/HeaderRoot.d.cts.map +1 -1
- package/dist/components/HeaderRoot/HeaderRoot.d.mts.map +1 -1
- package/dist/components/HeaderRoot/HeaderRoot.mjs +8 -5
- package/dist/components/HeaderRoot/HeaderRoot.mjs.map +1 -1
- package/dist/components/KeyValueColumn/KeyValueColumn.cjs +21 -12
- package/dist/components/KeyValueColumn/KeyValueColumn.cjs.map +1 -1
- package/dist/components/KeyValueColumn/KeyValueColumn.d.cts.map +1 -1
- package/dist/components/KeyValueColumn/KeyValueColumn.d.mts.map +1 -1
- package/dist/components/KeyValueColumn/KeyValueColumn.mjs +22 -13
- package/dist/components/KeyValueColumn/KeyValueColumn.mjs.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.cjs +19 -10
- package/dist/components/KeyValueRow/KeyValueRow.cjs.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.d.cts.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.d.mts.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.mjs +20 -11
- package/dist/components/KeyValueRow/KeyValueRow.mjs.map +1 -1
- package/dist/components/KeyValueSelect/KeyValueSelect.types.cjs.map +1 -1
- package/dist/components/KeyValueSelect/KeyValueSelect.types.d.cts +1 -1
- package/dist/components/KeyValueSelect/KeyValueSelect.types.d.cts.map +1 -1
- package/dist/components/KeyValueSelect/KeyValueSelect.types.d.mts +1 -1
- package/dist/components/KeyValueSelect/KeyValueSelect.types.d.mts.map +1 -1
- package/dist/components/KeyValueSelect/KeyValueSelect.types.mjs.map +1 -1
- package/dist/components/ListItem/ListItem.cjs +4 -3
- package/dist/components/ListItem/ListItem.cjs.map +1 -1
- package/dist/components/ListItem/ListItem.d.cts.map +1 -1
- package/dist/components/ListItem/ListItem.d.mts.map +1 -1
- package/dist/components/ListItem/ListItem.mjs +5 -4
- package/dist/components/ListItem/ListItem.mjs.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.cjs +17 -10
- package/dist/components/SectionHeader/SectionHeader.cjs.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.d.cts +2 -2
- package/dist/components/SectionHeader/SectionHeader.d.cts.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.d.mts +2 -2
- package/dist/components/SectionHeader/SectionHeader.d.mts.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.mjs +18 -11
- package/dist/components/SectionHeader/SectionHeader.mjs.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.types.cjs.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.types.d.cts +5 -5
- package/dist/components/SectionHeader/SectionHeader.types.d.cts.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.types.d.mts +5 -5
- package/dist/components/SectionHeader/SectionHeader.types.d.mts.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.types.mjs.map +1 -1
- package/dist/components/SelectButton/SelectButton.cjs +10 -3
- package/dist/components/SelectButton/SelectButton.cjs.map +1 -1
- package/dist/components/SelectButton/SelectButton.d.cts +1 -1
- package/dist/components/SelectButton/SelectButton.d.cts.map +1 -1
- package/dist/components/SelectButton/SelectButton.d.mts +1 -1
- package/dist/components/SelectButton/SelectButton.d.mts.map +1 -1
- package/dist/components/SelectButton/SelectButton.mjs +10 -3
- package/dist/components/SelectButton/SelectButton.mjs.map +1 -1
- package/dist/components/Switch/Switch.cjs +4 -2
- package/dist/components/Switch/Switch.cjs.map +1 -1
- package/dist/components/Switch/Switch.d.cts +1 -1
- package/dist/components/Switch/Switch.d.cts.map +1 -1
- package/dist/components/Switch/Switch.d.mts +1 -1
- package/dist/components/Switch/Switch.d.mts.map +1 -1
- package/dist/components/Switch/Switch.mjs +4 -2
- package/dist/components/Switch/Switch.mjs.map +1 -1
- package/dist/components/Tag/Tag.cjs +12 -18
- package/dist/components/Tag/Tag.cjs.map +1 -1
- package/dist/components/Tag/Tag.d.cts.map +1 -1
- package/dist/components/Tag/Tag.d.mts.map +1 -1
- package/dist/components/Tag/Tag.mjs +13 -19
- package/dist/components/Tag/Tag.mjs.map +1 -1
- package/dist/components/TitleAlert/TitleAlert.cjs +20 -18
- package/dist/components/TitleAlert/TitleAlert.cjs.map +1 -1
- package/dist/components/TitleAlert/TitleAlert.d.cts +3 -3
- package/dist/components/TitleAlert/TitleAlert.d.cts.map +1 -1
- package/dist/components/TitleAlert/TitleAlert.d.mts +3 -3
- package/dist/components/TitleAlert/TitleAlert.d.mts.map +1 -1
- package/dist/components/TitleAlert/TitleAlert.mjs +21 -19
- package/dist/components/TitleAlert/TitleAlert.mjs.map +1 -1
- package/dist/components/TitleAlert/TitleAlert.types.cjs.map +1 -1
- package/dist/components/TitleAlert/TitleAlert.types.d.cts +6 -7
- package/dist/components/TitleAlert/TitleAlert.types.d.cts.map +1 -1
- package/dist/components/TitleAlert/TitleAlert.types.d.mts +6 -7
- package/dist/components/TitleAlert/TitleAlert.types.d.mts.map +1 -1
- package/dist/components/TitleAlert/TitleAlert.types.mjs.map +1 -1
- package/dist/components/TitleHub/TitleHub.cjs +22 -13
- package/dist/components/TitleHub/TitleHub.cjs.map +1 -1
- package/dist/components/TitleHub/TitleHub.d.cts +3 -3
- package/dist/components/TitleHub/TitleHub.d.cts.map +1 -1
- package/dist/components/TitleHub/TitleHub.d.mts +3 -3
- package/dist/components/TitleHub/TitleHub.d.mts.map +1 -1
- package/dist/components/TitleHub/TitleHub.mjs +23 -14
- package/dist/components/TitleHub/TitleHub.mjs.map +1 -1
- package/dist/components/TitleHub/TitleHub.types.cjs.map +1 -1
- package/dist/components/TitleHub/TitleHub.types.d.cts +10 -10
- package/dist/components/TitleHub/TitleHub.types.d.cts.map +1 -1
- package/dist/components/TitleHub/TitleHub.types.d.mts +10 -10
- package/dist/components/TitleHub/TitleHub.types.d.mts.map +1 -1
- package/dist/components/TitleHub/TitleHub.types.mjs.map +1 -1
- package/dist/components/TitleStandard/TitleStandard.cjs +15 -9
- package/dist/components/TitleStandard/TitleStandard.cjs.map +1 -1
- package/dist/components/TitleStandard/TitleStandard.d.cts +2 -2
- package/dist/components/TitleStandard/TitleStandard.d.cts.map +1 -1
- package/dist/components/TitleStandard/TitleStandard.d.mts +2 -2
- package/dist/components/TitleStandard/TitleStandard.d.mts.map +1 -1
- package/dist/components/TitleStandard/TitleStandard.mjs +16 -10
- package/dist/components/TitleStandard/TitleStandard.mjs.map +1 -1
- package/dist/components/TitleStandard/TitleStandard.types.cjs.map +1 -1
- package/dist/components/TitleStandard/TitleStandard.types.d.cts +7 -7
- package/dist/components/TitleStandard/TitleStandard.types.d.cts.map +1 -1
- package/dist/components/TitleStandard/TitleStandard.types.d.mts +7 -7
- package/dist/components/TitleStandard/TitleStandard.types.d.mts.map +1 -1
- package/dist/components/TitleStandard/TitleStandard.types.mjs.map +1 -1
- package/dist/components/TitleSubpage/TitleSubpage.cjs +31 -18
- package/dist/components/TitleSubpage/TitleSubpage.cjs.map +1 -1
- package/dist/components/TitleSubpage/TitleSubpage.d.cts +3 -3
- package/dist/components/TitleSubpage/TitleSubpage.d.cts.map +1 -1
- package/dist/components/TitleSubpage/TitleSubpage.d.mts +3 -3
- package/dist/components/TitleSubpage/TitleSubpage.d.mts.map +1 -1
- package/dist/components/TitleSubpage/TitleSubpage.mjs +32 -19
- package/dist/components/TitleSubpage/TitleSubpage.mjs.map +1 -1
- package/dist/components/TitleSubpage/TitleSubpage.types.cjs.map +1 -1
- package/dist/components/TitleSubpage/TitleSubpage.types.d.cts +8 -9
- package/dist/components/TitleSubpage/TitleSubpage.types.d.cts.map +1 -1
- package/dist/components/TitleSubpage/TitleSubpage.types.d.mts +8 -9
- package/dist/components/TitleSubpage/TitleSubpage.types.d.mts.map +1 -1
- package/dist/components/TitleSubpage/TitleSubpage.types.mjs.map +1 -1
- package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.cjs +9 -7
- package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.cjs.map +1 -1
- package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.cts.map +1 -1
- package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.mts.map +1 -1
- package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.mjs +10 -8
- package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.mjs.map +1 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.cjs +1 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.cjs.map +1 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.mjs +1 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.mjs.map +1 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.cjs.map +1 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.cts +1 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.mts +1 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderRoot.cjs","sourceRoot":"","sources":["../../../src/components/HeaderRoot/HeaderRoot.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,kFAA2E;AAC3E,kDAA0B;AAC1B,mFAAmE;AAEnE,yBAAyB;AACzB,0CAA8D;AAC9D,
|
|
1
|
+
{"version":3,"file":"HeaderRoot.cjs","sourceRoot":"","sources":["../../../src/components/HeaderRoot/HeaderRoot.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,kFAA2E;AAC3E,kDAA0B;AAC1B,mFAAmE;AAEnE,yBAAyB;AACzB,0CAA8D;AAC9D,wDAA2D;AAC3D,gFAAmE;AACnE,4CAAsC;AAK/B,MAAM,UAAU,GAAG,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,UAAU,EACV,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,GAAG,KAAK,EACxB,KAAK,EACL,MAAM,EACN,WAAW,EACX,GAAG,SAAS,EACI,EAAE,EAAE;IACpB,MAAM,MAAM,GAAG,IAAA,kDAAiB,GAAE,CAAC;IAEnC,MAAM,iBAAiB,GAAG,CAAC,GAAG,EAAE;QAC9B,IAAI,YAAY,EAAE,CAAC;YACjB,OAAO,YAAY,CAAC;QACtB,CAAC;QACD,IAAI,kBAAkB,IAAI,kBAAkB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACxD,MAAM,aAAa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AC,CACP,WAAW,CAAC,CAAC,CAAC,CAAC,CACf,YAAY,CAAC,CAAC,CAAC,CAAC,CAChB,WAAW,CAAC,CAAC,IAAA,uCAAgB,EAAC,UAAU,EAAE,WAAW,CAAC,CAAC,CACvD,KAAK,CAAC,CAAC,CAAC,gBAAgB,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,EAAE,EAAE,KAAK,CAAC,CAAC,CAC9D,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,IAAI,SAAS,CAAC,CAEd;MAAA,CAAC,iBAAiB,EAAE,CACpB;MAAA,CAAC,iBAAiB,CAAC,CAAC,CAAC,CACnB,CAAC,SAAG,CAAC,aAAa,CAAC,CAAC,sBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,SAAS,CACrE;UAAA,CAAC,iBAAiB,CACpB;QAAA,EAAE,SAAG,CAAC,CACP,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,EAAE,SAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAjFW,QAAA,UAAU,cAiFrB;AAEF,kBAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["// Third party dependencies.\nimport { mergeTwClassName } from '@metamask-previews/design-system-shared';\nimport React from 'react';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\n// External dependencies.\nimport { Box, BoxAlignItems, BoxFlexDirection } from '../Box';\nimport { ButtonIcon, ButtonIconSize } from '../ButtonIcon';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\nimport { TextVariant } from '../Text';\n\n// Internal dependencies.\nimport type { HeaderRootProps } from './HeaderRoot.types';\n\nexport const HeaderRoot = ({\n children,\n title,\n titleProps,\n titleAccessory,\n endAccessory,\n endButtonIconProps,\n includesTopInset = false,\n style,\n testID,\n twClassName,\n ...viewProps\n}: HeaderRootProps) => {\n const insets = useSafeAreaInsets();\n\n const endSectionContent = (() => {\n if (endAccessory) {\n return endAccessory;\n }\n if (endButtonIconProps && endButtonIconProps.length > 0) {\n const reversedProps = endButtonIconProps\n .map((props, originalIndex) => ({ props, originalIndex }))\n .reverse();\n return reversedProps.map(({ props, originalIndex }) => (\n <ButtonIcon\n key={`end-button-icon-${originalIndex}`}\n size={ButtonIconSize.Md}\n {...props}\n />\n ));\n }\n return null;\n })();\n\n const renderLeftSection = () => {\n if (children) {\n return children;\n }\n if (title) {\n return (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName=\"flex-1\"\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.HeadingLg,\n ...titleProps,\n }}\n >\n {title}\n </TextOrChildren>\n {titleAccessory}\n </Box>\n );\n }\n return null;\n };\n\n return (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={4}\n paddingLeft={4}\n paddingRight={2}\n twClassName={mergeTwClassName('min-h-14', twClassName)}\n style={[includesTopInset && { marginTop: insets.top }, style]}\n testID={testID}\n {...viewProps}\n >\n {renderLeftSection()}\n {endSectionContent ? (\n <Box flexDirection={BoxFlexDirection.Row} gap={2} twClassName=\"ml-auto\">\n {endSectionContent}\n </Box>\n ) : null}\n </Box>\n );\n};\n\nHeaderRoot.displayName = 'HeaderRoot';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderRoot.d.cts","sourceRoot":"","sources":["../../../src/components/HeaderRoot/HeaderRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAU1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU;oJAYpB,eAAe;;
|
|
1
|
+
{"version":3,"file":"HeaderRoot.d.cts","sourceRoot":"","sources":["../../../src/components/HeaderRoot/HeaderRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAU1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU;oJAYpB,eAAe;;CAqEjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderRoot.d.mts","sourceRoot":"","sources":["../../../src/components/HeaderRoot/HeaderRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAU1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU;oJAYpB,eAAe;;
|
|
1
|
+
{"version":3,"file":"HeaderRoot.d.mts","sourceRoot":"","sources":["../../../src/components/HeaderRoot/HeaderRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAU1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU;oJAYpB,eAAe;;CAqEjB,CAAC"}
|
|
@@ -11,8 +11,8 @@ const React = $importDefault($React);
|
|
|
11
11
|
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
12
12
|
// External dependencies.
|
|
13
13
|
import { Box, BoxAlignItems, BoxFlexDirection } from "../Box/index.mjs";
|
|
14
|
-
import { BoxRow } from "../BoxRow/index.mjs";
|
|
15
14
|
import { ButtonIcon, ButtonIconSize } from "../ButtonIcon/index.mjs";
|
|
15
|
+
import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
|
|
16
16
|
import { TextVariant } from "../Text/index.mjs";
|
|
17
17
|
export const HeaderRoot = ({ children, title, titleProps, titleAccessory, endAccessory, endButtonIconProps, includesTopInset = false, style, testID, twClassName, ...viewProps }) => {
|
|
18
18
|
const insets = useSafeAreaInsets();
|
|
@@ -33,12 +33,15 @@ export const HeaderRoot = ({ children, title, titleProps, titleAccessory, endAcc
|
|
|
33
33
|
return children;
|
|
34
34
|
}
|
|
35
35
|
if (title) {
|
|
36
|
-
return (<
|
|
36
|
+
return (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={1} twClassName="flex-1">
|
|
37
|
+
<TextOrChildren textProps={{
|
|
37
38
|
variant: TextVariant.HeadingLg,
|
|
38
39
|
...titleProps,
|
|
39
|
-
}}
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
}}>
|
|
41
|
+
{title}
|
|
42
|
+
</TextOrChildren>
|
|
43
|
+
{titleAccessory}
|
|
44
|
+
</Box>);
|
|
42
45
|
}
|
|
43
46
|
return null;
|
|
44
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderRoot.mjs","sourceRoot":"","sources":["../../../src/components/HeaderRoot/HeaderRoot.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,OAAO,EAAE,gBAAgB,EAAE,gDAAgD;AAC3E,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,iBAAiB,EAAE,uCAAuC;AAEnE,yBAAyB;AACzB,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,gBAAgB,EAAE,yBAAe;AAC9D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"HeaderRoot.mjs","sourceRoot":"","sources":["../../../src/components/HeaderRoot/HeaderRoot.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,OAAO,EAAE,gBAAgB,EAAE,gDAAgD;AAC3E,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,iBAAiB,EAAE,uCAAuC;AAEnE,yBAAyB;AACzB,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,gBAAgB,EAAE,yBAAe;AAC9D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,gCAAsB;AAC3D,OAAO,EAAE,cAAc,EAAE,oDAA0C;AACnE,OAAO,EAAE,WAAW,EAAE,0BAAgB;AAKtC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,UAAU,EACV,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,GAAG,KAAK,EACxB,KAAK,EACL,MAAM,EACN,WAAW,EACX,GAAG,SAA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Ac,CACjB;QAAA,EAAE,GAAG,CAAC,CACP,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,CAAC,CAAC,CACf,YAAY,CAAC,CAAC,CAAC,CAAC,CAChB,WAAW,CAAC,CAAC,gBAAgB,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC,CACvD,KAAK,CAAC,CAAC,CAAC,gBAAgB,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,EAAE,EAAE,KAAK,CAAC,CAAC,CAC9D,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,IAAI,SAAS,CAAC,CAEd;MAAA,CAAC,iBAAiB,EAAE,CACpB;MAAA,CAAC,iBAAiB,CAAC,CAAC,CAAC,CACnB,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,SAAS,CACrE;UAAA,CAAC,iBAAiB,CACpB;QAAA,EAAE,GAAG,CAAC,CACP,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["// Third party dependencies.\nimport { mergeTwClassName } from '@metamask-previews/design-system-shared';\nimport React from 'react';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\n// External dependencies.\nimport { Box, BoxAlignItems, BoxFlexDirection } from '../Box';\nimport { ButtonIcon, ButtonIconSize } from '../ButtonIcon';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\nimport { TextVariant } from '../Text';\n\n// Internal dependencies.\nimport type { HeaderRootProps } from './HeaderRoot.types';\n\nexport const HeaderRoot = ({\n children,\n title,\n titleProps,\n titleAccessory,\n endAccessory,\n endButtonIconProps,\n includesTopInset = false,\n style,\n testID,\n twClassName,\n ...viewProps\n}: HeaderRootProps) => {\n const insets = useSafeAreaInsets();\n\n const endSectionContent = (() => {\n if (endAccessory) {\n return endAccessory;\n }\n if (endButtonIconProps && endButtonIconProps.length > 0) {\n const reversedProps = endButtonIconProps\n .map((props, originalIndex) => ({ props, originalIndex }))\n .reverse();\n return reversedProps.map(({ props, originalIndex }) => (\n <ButtonIcon\n key={`end-button-icon-${originalIndex}`}\n size={ButtonIconSize.Md}\n {...props}\n />\n ));\n }\n return null;\n })();\n\n const renderLeftSection = () => {\n if (children) {\n return children;\n }\n if (title) {\n return (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName=\"flex-1\"\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.HeadingLg,\n ...titleProps,\n }}\n >\n {title}\n </TextOrChildren>\n {titleAccessory}\n </Box>\n );\n }\n return null;\n };\n\n return (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={4}\n paddingLeft={4}\n paddingRight={2}\n twClassName={mergeTwClassName('min-h-14', twClassName)}\n style={[includesTopInset && { marginTop: insets.top }, style]}\n testID={testID}\n {...viewProps}\n >\n {renderLeftSection()}\n {endSectionContent ? (\n <Box flexDirection={BoxFlexDirection.Row} gap={2} twClassName=\"ml-auto\">\n {endSectionContent}\n </Box>\n ) : null}\n </Box>\n );\n};\n\nHeaderRoot.displayName = 'HeaderRoot';\n"]}
|
|
@@ -6,37 +6,46 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.KeyValueColumn = void 0;
|
|
7
7
|
const design_system_shared_1 = require("@metamask-previews/design-system-shared");
|
|
8
8
|
const react_1 = __importDefault(require("react"));
|
|
9
|
-
const
|
|
10
|
-
const BoxRow_1 = require("../BoxRow/index.cjs");
|
|
9
|
+
const Box_1 = require("../Box/index.cjs");
|
|
11
10
|
const ButtonIcon_1 = require("../ButtonIcon/index.cjs");
|
|
11
|
+
const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
|
|
12
12
|
const KeyValueColumn = ({ keyStartAccessory, keyEndAccessory, keyEndButtonIconProps, keyLabel: keyContent, keyTextProps, valueStartAccessory, valueEndAccessory, valueEndButtonIconProps, value: valueContent, valueTextProps, twClassName, ...viewProps }) => {
|
|
13
13
|
const keyEndAccessoryNode = keyEndButtonIconProps?.iconName !== undefined &&
|
|
14
14
|
keyEndButtonIconProps.iconName !== null ? (<ButtonIcon_1.ButtonIcon size={design_system_shared_1.ButtonIconSize.Sm} iconProps={{ color: design_system_shared_1.IconColor.IconAlternative }} {...keyEndButtonIconProps} iconName={keyEndButtonIconProps.iconName}/>) : (keyEndAccessory);
|
|
15
15
|
const valueEndAccessoryNode = valueEndButtonIconProps?.iconName !== undefined &&
|
|
16
16
|
valueEndButtonIconProps.iconName !== null ? (<ButtonIcon_1.ButtonIcon size={design_system_shared_1.ButtonIconSize.Sm} iconProps={{ color: design_system_shared_1.IconColor.IconDefault }} {...valueEndButtonIconProps} iconName={valueEndButtonIconProps.iconName}/>) : (valueEndAccessory);
|
|
17
|
-
const keyBox = (<
|
|
17
|
+
const keyBox = (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1} twClassName="w-full min-w-0">
|
|
18
|
+
{keyStartAccessory}
|
|
19
|
+
<TextOrChildren_1.TextOrChildren textProps={{
|
|
18
20
|
variant: design_system_shared_1.TextVariant.BodyMd,
|
|
19
21
|
fontWeight: design_system_shared_1.FontWeight.Medium,
|
|
20
22
|
color: design_system_shared_1.TextColor.TextAlternative,
|
|
21
23
|
numberOfLines: 1,
|
|
22
24
|
ellipsizeMode: 'tail',
|
|
23
25
|
...keyTextProps,
|
|
24
|
-
}}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
}}>
|
|
27
|
+
{keyContent}
|
|
28
|
+
</TextOrChildren_1.TextOrChildren>
|
|
29
|
+
{keyEndAccessoryNode}
|
|
30
|
+
</Box_1.Box>);
|
|
31
|
+
const valueBox = (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1} twClassName="w-full min-w-0">
|
|
32
|
+
{valueStartAccessory}
|
|
33
|
+
<TextOrChildren_1.TextOrChildren textProps={{
|
|
28
34
|
variant: design_system_shared_1.TextVariant.BodyMd,
|
|
29
35
|
fontWeight: design_system_shared_1.FontWeight.Medium,
|
|
30
36
|
color: design_system_shared_1.TextColor.TextDefault,
|
|
31
37
|
numberOfLines: 1,
|
|
32
38
|
ellipsizeMode: 'tail',
|
|
33
39
|
...valueTextProps,
|
|
34
|
-
}}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
}}>
|
|
41
|
+
{valueContent}
|
|
42
|
+
</TextOrChildren_1.TextOrChildren>
|
|
43
|
+
{valueEndAccessoryNode}
|
|
44
|
+
</Box_1.Box>);
|
|
45
|
+
return (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Column} twClassName={twClassName} {...viewProps}>
|
|
38
46
|
{keyBox}
|
|
39
|
-
|
|
47
|
+
{valueBox}
|
|
48
|
+
</Box_1.Box>);
|
|
40
49
|
};
|
|
41
50
|
exports.KeyValueColumn = KeyValueColumn;
|
|
42
51
|
exports.KeyValueColumn.displayName = 'KeyValueColumn';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueColumn.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueColumn/KeyValueColumn.tsx"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"KeyValueColumn.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueColumn/KeyValueColumn.tsx"],"names":[],"mapp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AQ,CACX;IAAA,EAAE,SAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAlGW,QAAA,cAAc,kBAkGzB;AAEF,sBAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC","sourcesContent":["import {\n BoxAlignItems,\n BoxFlexDirection,\n ButtonIconSize,\n FontWeight,\n IconColor,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { ButtonIcon } from '../ButtonIcon';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { KeyValueColumnProps } from './KeyValueColumn.types';\n\nexport const KeyValueColumn = ({\n keyStartAccessory,\n keyEndAccessory,\n keyEndButtonIconProps,\n keyLabel: keyContent,\n keyTextProps,\n valueStartAccessory,\n valueEndAccessory,\n valueEndButtonIconProps,\n value: valueContent,\n valueTextProps,\n twClassName,\n ...viewProps\n}: KeyValueColumnProps) => {\n const keyEndAccessoryNode =\n keyEndButtonIconProps?.iconName !== undefined &&\n keyEndButtonIconProps.iconName !== null ? (\n <ButtonIcon\n size={ButtonIconSize.Sm}\n iconProps={{ color: IconColor.IconAlternative }}\n {...keyEndButtonIconProps}\n iconName={keyEndButtonIconProps.iconName}\n />\n ) : (\n keyEndAccessory\n );\n\n const valueEndAccessoryNode =\n valueEndButtonIconProps?.iconName !== undefined &&\n valueEndButtonIconProps.iconName !== null ? (\n <ButtonIcon\n size={ButtonIconSize.Sm}\n iconProps={{ color: IconColor.IconDefault }}\n {...valueEndButtonIconProps}\n iconName={valueEndButtonIconProps.iconName}\n />\n ) : (\n valueEndAccessory\n );\n\n const keyBox = (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName=\"w-full min-w-0\"\n >\n {keyStartAccessory}\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n numberOfLines: 1,\n ellipsizeMode: 'tail',\n ...keyTextProps,\n }}\n >\n {keyContent}\n </TextOrChildren>\n {keyEndAccessoryNode}\n </Box>\n );\n\n const valueBox = (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName=\"w-full min-w-0\"\n >\n {valueStartAccessory}\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextDefault,\n numberOfLines: 1,\n ellipsizeMode: 'tail',\n ...valueTextProps,\n }}\n >\n {valueContent}\n </TextOrChildren>\n {valueEndAccessoryNode}\n </Box>\n );\n\n return (\n <Box\n flexDirection={BoxFlexDirection.Column}\n twClassName={twClassName}\n {...viewProps}\n >\n {keyBox}\n {valueBox}\n </Box>\n );\n};\n\nKeyValueColumn.displayName = 'KeyValueColumn';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueColumn.d.cts","sourceRoot":"","sources":["../../../src/components/KeyValueColumn/KeyValueColumn.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KeyValueColumn.d.cts","sourceRoot":"","sources":["../../../src/components/KeyValueColumn/KeyValueColumn.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAElE,eAAO,MAAM,cAAc;yOAaxB,mBAAmB;;CAqFrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueColumn.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueColumn/KeyValueColumn.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KeyValueColumn.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueColumn/KeyValueColumn.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAElE,eAAO,MAAM,cAAc;yOAaxB,mBAAmB;;CAqFrB,CAAC"}
|
|
@@ -4,40 +4,49 @@ function $importDefault(module) {
|
|
|
4
4
|
}
|
|
5
5
|
return module;
|
|
6
6
|
}
|
|
7
|
-
import { ButtonIconSize, FontWeight, IconColor, TextColor, TextVariant } from "@metamask-previews/design-system-shared";
|
|
7
|
+
import { BoxAlignItems, BoxFlexDirection, ButtonIconSize, FontWeight, IconColor, TextColor, TextVariant } from "@metamask-previews/design-system-shared";
|
|
8
8
|
import $React from "react";
|
|
9
9
|
const React = $importDefault($React);
|
|
10
|
-
import {
|
|
11
|
-
import { BoxRow } from "../BoxRow/index.mjs";
|
|
10
|
+
import { Box } from "../Box/index.mjs";
|
|
12
11
|
import { ButtonIcon } from "../ButtonIcon/index.mjs";
|
|
12
|
+
import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
|
|
13
13
|
export const KeyValueColumn = ({ keyStartAccessory, keyEndAccessory, keyEndButtonIconProps, keyLabel: keyContent, keyTextProps, valueStartAccessory, valueEndAccessory, valueEndButtonIconProps, value: valueContent, valueTextProps, twClassName, ...viewProps }) => {
|
|
14
14
|
const keyEndAccessoryNode = keyEndButtonIconProps?.iconName !== undefined &&
|
|
15
15
|
keyEndButtonIconProps.iconName !== null ? (<ButtonIcon size={ButtonIconSize.Sm} iconProps={{ color: IconColor.IconAlternative }} {...keyEndButtonIconProps} iconName={keyEndButtonIconProps.iconName}/>) : (keyEndAccessory);
|
|
16
16
|
const valueEndAccessoryNode = valueEndButtonIconProps?.iconName !== undefined &&
|
|
17
17
|
valueEndButtonIconProps.iconName !== null ? (<ButtonIcon size={ButtonIconSize.Sm} iconProps={{ color: IconColor.IconDefault }} {...valueEndButtonIconProps} iconName={valueEndButtonIconProps.iconName}/>) : (valueEndAccessory);
|
|
18
|
-
const keyBox = (<
|
|
18
|
+
const keyBox = (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={1} twClassName="w-full min-w-0">
|
|
19
|
+
{keyStartAccessory}
|
|
20
|
+
<TextOrChildren textProps={{
|
|
19
21
|
variant: TextVariant.BodyMd,
|
|
20
22
|
fontWeight: FontWeight.Medium,
|
|
21
23
|
color: TextColor.TextAlternative,
|
|
22
24
|
numberOfLines: 1,
|
|
23
25
|
ellipsizeMode: 'tail',
|
|
24
26
|
...keyTextProps,
|
|
25
|
-
}}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
}}>
|
|
28
|
+
{keyContent}
|
|
29
|
+
</TextOrChildren>
|
|
30
|
+
{keyEndAccessoryNode}
|
|
31
|
+
</Box>);
|
|
32
|
+
const valueBox = (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={1} twClassName="w-full min-w-0">
|
|
33
|
+
{valueStartAccessory}
|
|
34
|
+
<TextOrChildren textProps={{
|
|
29
35
|
variant: TextVariant.BodyMd,
|
|
30
36
|
fontWeight: FontWeight.Medium,
|
|
31
37
|
color: TextColor.TextDefault,
|
|
32
38
|
numberOfLines: 1,
|
|
33
39
|
ellipsizeMode: 'tail',
|
|
34
40
|
...valueTextProps,
|
|
35
|
-
}}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
}}>
|
|
42
|
+
{valueContent}
|
|
43
|
+
</TextOrChildren>
|
|
44
|
+
{valueEndAccessoryNode}
|
|
45
|
+
</Box>);
|
|
46
|
+
return (<Box flexDirection={BoxFlexDirection.Column} twClassName={twClassName} {...viewProps}>
|
|
39
47
|
{keyBox}
|
|
40
|
-
|
|
48
|
+
{valueBox}
|
|
49
|
+
</Box>);
|
|
41
50
|
};
|
|
42
51
|
KeyValueColumn.displayName = 'KeyValueColumn';
|
|
43
52
|
//# sourceMappingURL=KeyValueColumn.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueColumn.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueColumn/KeyValueColumn.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,cAAc,EACd,UAAU,EACV,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;YAChB,aAAa,EAAE,MAAM;YACrB,GAAG,cAAc;SAClB,CAAC,CAEF;QAAA,CAAC,YAAY,CACf;MAAA,EAAE,cAAc,CAChB;MAAA,CAAC,qBAAqB,CACxB;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;IAEF,OAAO,CACL,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,CACvC,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,SAAS,CAAC,CAEd;MAAA,CAAC,MAAM,CACP;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC","sourcesContent":["import {\n BoxAlignItems,\n BoxFlexDirection,\n ButtonIconSize,\n FontWeight,\n IconColor,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { ButtonIcon } from '../ButtonIcon';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { KeyValueColumnProps } from './KeyValueColumn.types';\n\nexport const KeyValueColumn = ({\n keyStartAccessory,\n keyEndAccessory,\n keyEndButtonIconProps,\n keyLabel: keyContent,\n keyTextProps,\n valueStartAccessory,\n valueEndAccessory,\n valueEndButtonIconProps,\n value: valueContent,\n valueTextProps,\n twClassName,\n ...viewProps\n}: KeyValueColumnProps) => {\n const keyEndAccessoryNode =\n keyEndButtonIconProps?.iconName !== undefined &&\n keyEndButtonIconProps.iconName !== null ? (\n <ButtonIcon\n size={ButtonIconSize.Sm}\n iconProps={{ color: IconColor.IconAlternative }}\n {...keyEndButtonIconProps}\n iconName={keyEndButtonIconProps.iconName}\n />\n ) : (\n keyEndAccessory\n );\n\n const valueEndAccessoryNode =\n valueEndButtonIconProps?.iconName !== undefined &&\n valueEndButtonIconProps.iconName !== null ? (\n <ButtonIcon\n size={ButtonIconSize.Sm}\n iconProps={{ color: IconColor.IconDefault }}\n {...valueEndButtonIconProps}\n iconName={valueEndButtonIconProps.iconName}\n />\n ) : (\n valueEndAccessory\n );\n\n const keyBox = (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName=\"w-full min-w-0\"\n >\n {keyStartAccessory}\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n numberOfLines: 1,\n ellipsizeMode: 'tail',\n ...keyTextProps,\n }}\n >\n {keyContent}\n </TextOrChildren>\n {keyEndAccessoryNode}\n </Box>\n );\n\n const valueBox = (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName=\"w-full min-w-0\"\n >\n {valueStartAccessory}\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextDefault,\n numberOfLines: 1,\n ellipsizeMode: 'tail',\n ...valueTextProps,\n }}\n >\n {valueContent}\n </TextOrChildren>\n {valueEndAccessoryNode}\n </Box>\n );\n\n return (\n <Box\n flexDirection={BoxFlexDirection.Column}\n twClassName={twClassName}\n {...viewProps}\n >\n {keyBox}\n {valueBox}\n </Box>\n );\n};\n\nKeyValueColumn.displayName = 'KeyValueColumn';\n"]}
|
|
@@ -8,8 +8,8 @@ const design_system_shared_1 = require("@metamask-previews/design-system-shared"
|
|
|
8
8
|
const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
|
|
9
9
|
const react_1 = __importDefault(require("react"));
|
|
10
10
|
const Box_1 = require("../Box/index.cjs");
|
|
11
|
-
const BoxRow_1 = require("../BoxRow/index.cjs");
|
|
12
11
|
const ButtonIcon_1 = require("../ButtonIcon/index.cjs");
|
|
12
|
+
const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
|
|
13
13
|
const KeyValueRow = ({ keyStartAccessory, keyEndAccessory, keyEndButtonIconProps, keyLabel: keyContent, keyTextProps, valueStartAccessory, valueEndAccessory, valueEndButtonIconProps, value: valueContent, valueTextProps, variant = design_system_shared_1.KeyValueRowVariant.Summary, twClassName, style, ...viewProps }) => {
|
|
14
14
|
const tw = (0, design_system_twrnc_preset_1.useTailwind)();
|
|
15
15
|
const keyEndAccessoryNode = keyEndButtonIconProps?.iconName !== undefined &&
|
|
@@ -22,7 +22,9 @@ const KeyValueRow = ({ keyStartAccessory, keyEndAccessory, keyEndButtonIconProps
|
|
|
22
22
|
color: design_system_shared_1.IconColor.IconDefault,
|
|
23
23
|
...valueEndButtonIconProps.iconProps,
|
|
24
24
|
}}/>) : (valueEndAccessory);
|
|
25
|
-
const keyBox = (<
|
|
25
|
+
const keyBox = (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1}>
|
|
26
|
+
{keyStartAccessory}
|
|
27
|
+
<TextOrChildren_1.TextOrChildren textProps={{
|
|
26
28
|
variant: design_system_shared_1.TextVariant.BodyMd,
|
|
27
29
|
fontWeight: design_system_shared_1.FontWeight.Medium,
|
|
28
30
|
color: design_system_shared_1.TextColor.TextAlternative,
|
|
@@ -30,24 +32,31 @@ const KeyValueRow = ({ keyStartAccessory, keyEndAccessory, keyEndButtonIconProps
|
|
|
30
32
|
ellipsizeMode: 'tail',
|
|
31
33
|
...keyTextProps,
|
|
32
34
|
}}>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
{keyContent}
|
|
36
|
+
</TextOrChildren_1.TextOrChildren>
|
|
37
|
+
{keyEndAccessoryNode}
|
|
38
|
+
</Box_1.Box>);
|
|
39
|
+
const valueBox = (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1} twClassName="flex-1 min-w-0 justify-end">
|
|
40
|
+
{valueStartAccessory}
|
|
41
|
+
<TextOrChildren_1.TextOrChildren textProps={{
|
|
36
42
|
variant: design_system_shared_1.TextVariant.BodyMd,
|
|
37
43
|
fontWeight: design_system_shared_1.FontWeight.Medium,
|
|
38
44
|
color: design_system_shared_1.TextColor.TextDefault,
|
|
39
45
|
numberOfLines: 1,
|
|
40
46
|
ellipsizeMode: 'tail',
|
|
41
47
|
...valueTextProps,
|
|
42
|
-
}}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
}}>
|
|
49
|
+
{valueContent}
|
|
50
|
+
</TextOrChildren_1.TextOrChildren>
|
|
51
|
+
{valueEndAccessoryNode}
|
|
52
|
+
</Box_1.Box>);
|
|
53
|
+
return (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={4} style={[
|
|
46
54
|
tw.style('px-4', variant === design_system_shared_1.KeyValueRowVariant.Input ? 'h-12' : 'h-10', twClassName),
|
|
47
55
|
style,
|
|
48
56
|
]} {...viewProps}>
|
|
49
57
|
<Box_1.Box twClassName="shrink-0">{keyBox}</Box_1.Box>
|
|
50
|
-
|
|
58
|
+
{valueBox}
|
|
59
|
+
</Box_1.Box>);
|
|
51
60
|
};
|
|
52
61
|
exports.KeyValueRow = KeyValueRow;
|
|
53
62
|
exports.KeyValueRow.displayName = 'KeyValueRow';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueRow.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.tsx"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"KeyValueRow.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.tsx"],"names":[],"mappings":";;;;;;AAAA,kFASiD;AACjD,8FAA4E;AAC5E,kDAA0B;AAE1B,0CAA6B;AAC7B,wDAA2C;AAC3C,gFAAmE;AAI5D,MAAM,WAAW,GAAG,CAAC,EAC1B,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,QAAQ,EAAE,UAA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KAAK,yCAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EACtD,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CACF,IAAI,SAAS,CAAC,CAEd;MAAA,CAAC,SAAG,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,EAAE,SAAG,CACzC;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,SAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AApHW,QAAA,WAAW,eAoHtB;AAEF,mBAAW,CAAC,WAAW,GAAG,aAAa,CAAC","sourcesContent":["import {\n BoxAlignItems,\n BoxFlexDirection,\n ButtonIconSize,\n FontWeight,\n IconColor,\n KeyValueRowVariant,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { ButtonIcon } from '../ButtonIcon';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { KeyValueRowProps } from './KeyValueRow.types';\n\nexport const KeyValueRow = ({\n keyStartAccessory,\n keyEndAccessory,\n keyEndButtonIconProps,\n keyLabel: keyContent,\n keyTextProps,\n valueStartAccessory,\n valueEndAccessory,\n valueEndButtonIconProps,\n value: valueContent,\n valueTextProps,\n variant = KeyValueRowVariant.Summary,\n twClassName,\n style,\n ...viewProps\n}: KeyValueRowProps) => {\n const tw = useTailwind();\n\n const keyEndAccessoryNode =\n keyEndButtonIconProps?.iconName !== undefined &&\n keyEndButtonIconProps.iconName !== null ? (\n <ButtonIcon\n size={ButtonIconSize.Sm}\n {...keyEndButtonIconProps}\n iconName={keyEndButtonIconProps.iconName}\n iconProps={{\n color: IconColor.IconAlternative,\n ...keyEndButtonIconProps.iconProps,\n }}\n />\n ) : (\n keyEndAccessory\n );\n\n const valueEndAccessoryNode =\n valueEndButtonIconProps?.iconName !== undefined &&\n valueEndButtonIconProps.iconName !== null ? (\n <ButtonIcon\n size={ButtonIconSize.Sm}\n {...valueEndButtonIconProps}\n iconName={valueEndButtonIconProps.iconName}\n iconProps={{\n color: IconColor.IconDefault,\n ...valueEndButtonIconProps.iconProps,\n }}\n />\n ) : (\n valueEndAccessory\n );\n\n const keyBox = (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n >\n {keyStartAccessory}\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n numberOfLines: 1,\n ellipsizeMode: 'tail',\n ...keyTextProps,\n }}\n >\n {keyContent}\n </TextOrChildren>\n {keyEndAccessoryNode}\n </Box>\n );\n\n const valueBox = (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName=\"flex-1 min-w-0 justify-end\"\n >\n {valueStartAccessory}\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextDefault,\n numberOfLines: 1,\n ellipsizeMode: 'tail',\n ...valueTextProps,\n }}\n >\n {valueContent}\n </TextOrChildren>\n {valueEndAccessoryNode}\n </Box>\n );\n\n return (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={4}\n style={[\n tw.style(\n 'px-4',\n variant === KeyValueRowVariant.Input ? 'h-12' : 'h-10',\n twClassName,\n ),\n style,\n ]}\n {...viewProps}\n >\n <Box twClassName=\"shrink-0\">{keyBox}</Box>\n {valueBox}\n </Box>\n );\n};\n\nKeyValueRow.displayName = 'KeyValueRow';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueRow.d.cts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KeyValueRow.d.cts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAE5D,eAAO,MAAM,WAAW;yPAerB,gBAAgB;;CAqGlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueRow.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KeyValueRow.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAE5D,eAAO,MAAM,WAAW;yPAerB,gBAAgB;;CAqGlB,CAAC"}
|
|
@@ -4,13 +4,13 @@ function $importDefault(module) {
|
|
|
4
4
|
}
|
|
5
5
|
return module;
|
|
6
6
|
}
|
|
7
|
-
import { ButtonIconSize, FontWeight, IconColor, KeyValueRowVariant, TextColor, TextVariant } from "@metamask-previews/design-system-shared";
|
|
7
|
+
import { BoxAlignItems, BoxFlexDirection, ButtonIconSize, FontWeight, IconColor, KeyValueRowVariant, TextColor, TextVariant } from "@metamask-previews/design-system-shared";
|
|
8
8
|
import { useTailwind } from "@metamask-previews/design-system-twrnc-preset";
|
|
9
9
|
import $React from "react";
|
|
10
10
|
const React = $importDefault($React);
|
|
11
11
|
import { Box } from "../Box/index.mjs";
|
|
12
|
-
import { BoxRow } from "../BoxRow/index.mjs";
|
|
13
12
|
import { ButtonIcon } from "../ButtonIcon/index.mjs";
|
|
13
|
+
import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
|
|
14
14
|
export const KeyValueRow = ({ keyStartAccessory, keyEndAccessory, keyEndButtonIconProps, keyLabel: keyContent, keyTextProps, valueStartAccessory, valueEndAccessory, valueEndButtonIconProps, value: valueContent, valueTextProps, variant = KeyValueRowVariant.Summary, twClassName, style, ...viewProps }) => {
|
|
15
15
|
const tw = useTailwind();
|
|
16
16
|
const keyEndAccessoryNode = keyEndButtonIconProps?.iconName !== undefined &&
|
|
@@ -23,7 +23,9 @@ export const KeyValueRow = ({ keyStartAccessory, keyEndAccessory, keyEndButtonIc
|
|
|
23
23
|
color: IconColor.IconDefault,
|
|
24
24
|
...valueEndButtonIconProps.iconProps,
|
|
25
25
|
}}/>) : (valueEndAccessory);
|
|
26
|
-
const keyBox = (<
|
|
26
|
+
const keyBox = (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={1}>
|
|
27
|
+
{keyStartAccessory}
|
|
28
|
+
<TextOrChildren textProps={{
|
|
27
29
|
variant: TextVariant.BodyMd,
|
|
28
30
|
fontWeight: FontWeight.Medium,
|
|
29
31
|
color: TextColor.TextAlternative,
|
|
@@ -31,24 +33,31 @@ export const KeyValueRow = ({ keyStartAccessory, keyEndAccessory, keyEndButtonIc
|
|
|
31
33
|
ellipsizeMode: 'tail',
|
|
32
34
|
...keyTextProps,
|
|
33
35
|
}}>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
{keyContent}
|
|
37
|
+
</TextOrChildren>
|
|
38
|
+
{keyEndAccessoryNode}
|
|
39
|
+
</Box>);
|
|
40
|
+
const valueBox = (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={1} twClassName="flex-1 min-w-0 justify-end">
|
|
41
|
+
{valueStartAccessory}
|
|
42
|
+
<TextOrChildren textProps={{
|
|
37
43
|
variant: TextVariant.BodyMd,
|
|
38
44
|
fontWeight: FontWeight.Medium,
|
|
39
45
|
color: TextColor.TextDefault,
|
|
40
46
|
numberOfLines: 1,
|
|
41
47
|
ellipsizeMode: 'tail',
|
|
42
48
|
...valueTextProps,
|
|
43
|
-
}}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
49
|
+
}}>
|
|
50
|
+
{valueContent}
|
|
51
|
+
</TextOrChildren>
|
|
52
|
+
{valueEndAccessoryNode}
|
|
53
|
+
</Box>);
|
|
54
|
+
return (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={4} style={[
|
|
47
55
|
tw.style('px-4', variant === KeyValueRowVariant.Input ? 'h-12' : 'h-10', twClassName),
|
|
48
56
|
style,
|
|
49
57
|
]} {...viewProps}>
|
|
50
58
|
<Box twClassName="shrink-0">{keyBox}</Box>
|
|
51
|
-
|
|
59
|
+
{valueBox}
|
|
60
|
+
</Box>);
|
|
52
61
|
};
|
|
53
62
|
KeyValueRow.displayName = 'KeyValueRow';
|
|
54
63
|
//# sourceMappingURL=KeyValueRow.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueRow.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,cAAc,EACd,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,SAAS,EACT,WAAW,EACZ,gDAAgD;AACjD,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"KeyValueRow.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,SAAS,EACT,WAAW,EACZ,gDAAgD;AACjD,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAC3C,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAC1B,iBAAiB,EACjB,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,EACN,OAAO,KAAK,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EACtD,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CACF,IAAI,SAAS,CAAC,CAEd;MAAA,CAAC,GAAG,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,CACzC;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC","sourcesContent":["import {\n BoxAlignItems,\n BoxFlexDirection,\n ButtonIconSize,\n FontWeight,\n IconColor,\n KeyValueRowVariant,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { ButtonIcon } from '../ButtonIcon';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { KeyValueRowProps } from './KeyValueRow.types';\n\nexport const KeyValueRow = ({\n keyStartAccessory,\n keyEndAccessory,\n keyEndButtonIconProps,\n keyLabel: keyContent,\n keyTextProps,\n valueStartAccessory,\n valueEndAccessory,\n valueEndButtonIconProps,\n value: valueContent,\n valueTextProps,\n variant = KeyValueRowVariant.Summary,\n twClassName,\n style,\n ...viewProps\n}: KeyValueRowProps) => {\n const tw = useTailwind();\n\n const keyEndAccessoryNode =\n keyEndButtonIconProps?.iconName !== undefined &&\n keyEndButtonIconProps.iconName !== null ? (\n <ButtonIcon\n size={ButtonIconSize.Sm}\n {...keyEndButtonIconProps}\n iconName={keyEndButtonIconProps.iconName}\n iconProps={{\n color: IconColor.IconAlternative,\n ...keyEndButtonIconProps.iconProps,\n }}\n />\n ) : (\n keyEndAccessory\n );\n\n const valueEndAccessoryNode =\n valueEndButtonIconProps?.iconName !== undefined &&\n valueEndButtonIconProps.iconName !== null ? (\n <ButtonIcon\n size={ButtonIconSize.Sm}\n {...valueEndButtonIconProps}\n iconName={valueEndButtonIconProps.iconName}\n iconProps={{\n color: IconColor.IconDefault,\n ...valueEndButtonIconProps.iconProps,\n }}\n />\n ) : (\n valueEndAccessory\n );\n\n const keyBox = (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n >\n {keyStartAccessory}\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n numberOfLines: 1,\n ellipsizeMode: 'tail',\n ...keyTextProps,\n }}\n >\n {keyContent}\n </TextOrChildren>\n {keyEndAccessoryNode}\n </Box>\n );\n\n const valueBox = (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName=\"flex-1 min-w-0 justify-end\"\n >\n {valueStartAccessory}\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextDefault,\n numberOfLines: 1,\n ellipsizeMode: 'tail',\n ...valueTextProps,\n }}\n >\n {valueContent}\n </TextOrChildren>\n {valueEndAccessoryNode}\n </Box>\n );\n\n return (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={4}\n style={[\n tw.style(\n 'px-4',\n variant === KeyValueRowVariant.Input ? 'h-12' : 'h-10',\n twClassName,\n ),\n style,\n ]}\n {...viewProps}\n >\n <Box twClassName=\"shrink-0\">{keyBox}</Box>\n {valueBox}\n </Box>\n );\n};\n\nKeyValueRow.displayName = 'KeyValueRow';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueSelect.types.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueSelect/KeyValueSelect.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n KeyValueSelectPropsShared,\n KeyValueSelectSelectButtonPropsShared,\n} from '@metamask-previews/design-system-shared';\nimport type { PressableProps } from 'react-native';\n\nimport type { ButtonIconProps } from '../ButtonIcon/ButtonIcon.types';\nimport type { IconProps } from '../Icon/Icon.types';\nimport type { KeyValueRowProps } from '../KeyValueRow/KeyValueRow.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * SelectButton-only props for KeyValueSelect (RN).\n * Size is always Md and variant is always Secondary.\n */\nexport type KeyValueSelectSelectButtonProps =\n KeyValueSelectSelectButtonPropsShared & {\n /**\n * Optional props passed to the SelectButton trailing arrow Icon when a trailing\n * arrow is shown (excluding `name`, which is derived from the resolved direction).\n */\n endArrowDirectionIconProps?: Partial<Omit<IconProps, 'name'>>;\n };\n\n/**\n * KeyValueRow shell / ViewProps escape hatch.\n * Owned KeyValueSelect content props are omitted so the public API stays the source of truth.\n */\nexport type KeyValueSelectKeyValueRowProps = Omit<\n KeyValueRowProps,\n | 'keyLabel'\n | 'keyStartAccessory'\n | 'keyEndAccessory'\n | 'keyTextProps'\n | 'keyEndButtonIconProps'\n | 'value'\n | 'valueStartAccessory'\n | 'valueEndAccessory'\n | 'valueTextProps'\n | 'valueEndButtonIconProps'\n | 'variant'\n>;\n\n/**\n * KeyValueSelect component props.\n *\n * Pressable KeyValueRow with a SelectButton value. Value-side KeyValueRow props\n * map onto SelectButton; SelectButton-only options use `selectButtonProps`.\n * Use `keyValueRowProps` for inner KeyValueRow shell props (e.g. `testID`, `twClassName`).\n */\nexport type KeyValueSelectProps = Omit<\n KeyValueSelectPropsShared,\n 'selectButtonProps'\n> &\n Omit<PressableProps, 'children' | 'disabled'> & {\n /** Optional props for the key Text when key is a string. */\n keyTextProps?: Partial<Omit<TextProps, 'children'>>;\n /** When set, renders a ButtonIcon as the key endAccessory (takes precedence over keyEndAccessory). */\n keyEndButtonIconProps?: Partial<ButtonIconProps>;\n /** Optional props for the SelectButton label Text. Mapped from KeyValueRow `valueTextProps`. */\n valueTextProps?: Partial<Omit<TextProps, 'children'>>;\n /** SelectButton-only props (placeholder and caret controls). */\n selectButtonProps: KeyValueSelectSelectButtonProps;\n /**\n * Optional props forwarded to the inner KeyValueRow (e.g. `testID`, `twClassName`, `style`,\n * accessibility props). Owned content props are set by KeyValueSelect and are not available here.\n */\n keyValueRowProps?: KeyValueSelectKeyValueRowProps;\n /** Optional Tailwind class names applied to the outer Pressable. */\n twClassName?: string;\n };\n"]}
|
|
1
|
+
{"version":3,"file":"KeyValueSelect.types.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueSelect/KeyValueSelect.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n KeyValueSelectPropsShared,\n KeyValueSelectSelectButtonPropsShared,\n} from '@metamask-previews/design-system-shared';\nimport type { PressableProps } from 'react-native';\n\nimport type { ButtonIconProps } from '../ButtonIcon/ButtonIcon.types';\nimport type { IconProps } from '../Icon/Icon.types';\nimport type { KeyValueRowProps } from '../KeyValueRow/KeyValueRow.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * SelectButton-only props for KeyValueSelect (RN).\n * Size is always Md and variant is always Secondary.\n */\nexport type KeyValueSelectSelectButtonProps =\n KeyValueSelectSelectButtonPropsShared & {\n /**\n * Optional props passed to the SelectButton trailing arrow Icon when a trailing\n * arrow is shown (excluding `name`, which is derived from the resolved direction).\n */\n endArrowDirectionIconProps?: Partial<Omit<IconProps, 'name'>>;\n };\n\n/**\n * KeyValueRow shell / ViewProps escape hatch.\n * Owned KeyValueSelect content props are omitted so the public API stays the source of truth.\n */\nexport type KeyValueSelectKeyValueRowProps = Omit<\n KeyValueRowProps,\n | 'keyLabel'\n | 'keyStartAccessory'\n | 'keyEndAccessory'\n | 'keyTextProps'\n | 'keyEndButtonIconProps'\n | 'value'\n | 'valueStartAccessory'\n | 'valueEndAccessory'\n | 'valueTextProps'\n | 'valueEndButtonIconProps'\n | 'variant'\n>;\n\n/**\n * KeyValueSelect component props.\n *\n * Pressable KeyValueRow with a SelectButton value. Value-side KeyValueRow props\n * map onto SelectButton; SelectButton-only options use `selectButtonProps`.\n * Use `keyValueRowProps` for inner KeyValueRow shell props (e.g. `testID`, `twClassName`).\n */\nexport type KeyValueSelectProps = Omit<\n KeyValueSelectPropsShared,\n 'selectButtonProps'\n> &\n Omit<PressableProps, 'children' | 'disabled'> & {\n /** Optional props for the key Text when key is a string. */\n keyTextProps?: Partial<Omit<TextProps, 'children'>>;\n /** When set, renders a ButtonIcon as the key endAccessory (takes precedence over keyEndAccessory). */\n keyEndButtonIconProps?: Partial<ButtonIconProps>;\n /** Optional props for the SelectButton label Text. Mapped from KeyValueRow `valueTextProps`. */\n valueTextProps?: Partial<Omit<TextProps, 'children'>>;\n /** SelectButton-only props (placeholder and caret controls). `placeholder` is optional; when the resolved label is empty, no label is rendered. */\n selectButtonProps: KeyValueSelectSelectButtonProps;\n /**\n * Optional props forwarded to the inner KeyValueRow (e.g. `testID`, `twClassName`, `style`,\n * accessibility props). Owned content props are set by KeyValueSelect and are not available here.\n */\n keyValueRowProps?: KeyValueSelectKeyValueRowProps;\n /** Optional Tailwind class names applied to the outer Pressable. */\n twClassName?: string;\n };\n"]}
|
|
@@ -34,7 +34,7 @@ export type KeyValueSelectProps = Omit<KeyValueSelectPropsShared, 'selectButtonP
|
|
|
34
34
|
keyEndButtonIconProps?: Partial<ButtonIconProps>;
|
|
35
35
|
/** Optional props for the SelectButton label Text. Mapped from KeyValueRow `valueTextProps`. */
|
|
36
36
|
valueTextProps?: Partial<Omit<TextProps, 'children'>>;
|
|
37
|
-
/** SelectButton-only props (placeholder and caret controls). */
|
|
37
|
+
/** SelectButton-only props (placeholder and caret controls). `placeholder` is optional; when the resolved label is empty, no label is rendered. */
|
|
38
38
|
selectButtonProps: KeyValueSelectSelectButtonProps;
|
|
39
39
|
/**
|
|
40
40
|
* Optional props forwarded to the inner KeyValueRow (e.g. `testID`, `twClassName`, `style`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueSelect.types.d.cts","sourceRoot":"","sources":["../../../src/components/KeyValueSelect/KeyValueSelect.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,qCAAqC,EACtC,gDAAgD;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB;AAEnD,OAAO,KAAK,EAAE,eAAe,EAAE,2CAAuC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,6CAAyC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GACzC,qCAAqC,GAAG;IACtC;;;OAGG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;CAC/D,CAAC;AAEJ;;;GAGG;AACH,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAC/C,gBAAgB,EACd,UAAU,GACV,mBAAmB,GACnB,iBAAiB,GACjB,cAAc,GACd,uBAAuB,GACvB,OAAO,GACP,qBAAqB,GACrB,mBAAmB,GACnB,gBAAgB,GAChB,yBAAyB,GACzB,SAAS,CACZ,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,yBAAyB,EACzB,mBAAmB,CACpB,GACC,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,UAAU,CAAC,GAAG;IAC9C,4DAA4D;IAC5D,YAAY,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;IACpD,sGAAsG;IACtG,qBAAqB,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACjD,gGAAgG;IAChG,cAAc,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;IACtD,
|
|
1
|
+
{"version":3,"file":"KeyValueSelect.types.d.cts","sourceRoot":"","sources":["../../../src/components/KeyValueSelect/KeyValueSelect.types.ts"],"names":[],"mappings":"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WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -34,7 +34,7 @@ export type KeyValueSelectProps = Omit<KeyValueSelectPropsShared, 'selectButtonP
|
|
|
34
34
|
keyEndButtonIconProps?: Partial<ButtonIconProps>;
|
|
35
35
|
/** Optional props for the SelectButton label Text. Mapped from KeyValueRow `valueTextProps`. */
|
|
36
36
|
valueTextProps?: Partial<Omit<TextProps, 'children'>>;
|
|
37
|
-
/** SelectButton-only props (placeholder and caret controls). */
|
|
37
|
+
/** SelectButton-only props (placeholder and caret controls). `placeholder` is optional; when the resolved label is empty, no label is rendered. */
|
|
38
38
|
selectButtonProps: KeyValueSelectSelectButtonProps;
|
|
39
39
|
/**
|
|
40
40
|
* Optional props forwarded to the inner KeyValueRow (e.g. `testID`, `twClassName`, `style`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueSelect.types.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueSelect/KeyValueSelect.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,qCAAqC,EACtC,gDAAgD;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB;AAEnD,OAAO,KAAK,EAAE,eAAe,EAAE,2CAAuC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,6CAAyC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GACzC,qCAAqC,GAAG;IACtC;;;OAGG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;CAC/D,CAAC;AAEJ;;;GAGG;AACH,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAC/C,gBAAgB,EACd,UAAU,GACV,mBAAmB,GACnB,iBAAiB,GACjB,cAAc,GACd,uBAAuB,GACvB,OAAO,GACP,qBAAqB,GACrB,mBAAmB,GACnB,gBAAgB,GAChB,yBAAyB,GACzB,SAAS,CACZ,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,yBAAyB,EACzB,mBAAmB,CACpB,GACC,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,UAAU,CAAC,GAAG;IAC9C,4DAA4D;IAC5D,YAAY,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;IACpD,sGAAsG;IACtG,qBAAqB,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACjD,gGAAgG;IAChG,cAAc,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;IACtD,
|
|
1
|
+
{"version":3,"file":"KeyValueSelect.types.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueSelect/KeyValueSelect.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,qCAAqC,EACtC,gDAAgD;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB;AAEnD,OAAO,KAAK,EAAE,eAAe,EAAE,2CAAuC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,6CAAyC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GACzC,qCAAqC,GAAG;IACtC;;;OAGG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;CAC/D,CAAC;AAEJ;;;GAGG;AACH,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAC/C,gBAAgB,EACd,UAAU,GACV,mBAAmB,GACnB,iBAAiB,GACjB,cAAc,GACd,uBAAuB,GACvB,OAAO,GACP,qBAAqB,GACrB,mBAAmB,GACnB,gBAAgB,GAChB,yBAAyB,GACzB,SAAS,CACZ,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,yBAAyB,EACzB,mBAAmB,CACpB,GACC,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,UAAU,CAAC,GAAG;IAC9C,4DAA4D;IAC5D,YAAY,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;IACpD,sGAAsG;IACtG,qBAAqB,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACjD,gGAAgG;IAChG,cAAc,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;IACtD,mJAAmJ;IACnJ,iBAAiB,EAAE,+BAA+B,CAAC;IACnD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,8BAA8B,CAAC;IAClD,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueSelect.types.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueSelect/KeyValueSelect.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n KeyValueSelectPropsShared,\n KeyValueSelectSelectButtonPropsShared,\n} from '@metamask-previews/design-system-shared';\nimport type { PressableProps } from 'react-native';\n\nimport type { ButtonIconProps } from '../ButtonIcon/ButtonIcon.types';\nimport type { IconProps } from '../Icon/Icon.types';\nimport type { KeyValueRowProps } from '../KeyValueRow/KeyValueRow.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * SelectButton-only props for KeyValueSelect (RN).\n * Size is always Md and variant is always Secondary.\n */\nexport type KeyValueSelectSelectButtonProps =\n KeyValueSelectSelectButtonPropsShared & {\n /**\n * Optional props passed to the SelectButton trailing arrow Icon when a trailing\n * arrow is shown (excluding `name`, which is derived from the resolved direction).\n */\n endArrowDirectionIconProps?: Partial<Omit<IconProps, 'name'>>;\n };\n\n/**\n * KeyValueRow shell / ViewProps escape hatch.\n * Owned KeyValueSelect content props are omitted so the public API stays the source of truth.\n */\nexport type KeyValueSelectKeyValueRowProps = Omit<\n KeyValueRowProps,\n | 'keyLabel'\n | 'keyStartAccessory'\n | 'keyEndAccessory'\n | 'keyTextProps'\n | 'keyEndButtonIconProps'\n | 'value'\n | 'valueStartAccessory'\n | 'valueEndAccessory'\n | 'valueTextProps'\n | 'valueEndButtonIconProps'\n | 'variant'\n>;\n\n/**\n * KeyValueSelect component props.\n *\n * Pressable KeyValueRow with a SelectButton value. Value-side KeyValueRow props\n * map onto SelectButton; SelectButton-only options use `selectButtonProps`.\n * Use `keyValueRowProps` for inner KeyValueRow shell props (e.g. `testID`, `twClassName`).\n */\nexport type KeyValueSelectProps = Omit<\n KeyValueSelectPropsShared,\n 'selectButtonProps'\n> &\n Omit<PressableProps, 'children' | 'disabled'> & {\n /** Optional props for the key Text when key is a string. */\n keyTextProps?: Partial<Omit<TextProps, 'children'>>;\n /** When set, renders a ButtonIcon as the key endAccessory (takes precedence over keyEndAccessory). */\n keyEndButtonIconProps?: Partial<ButtonIconProps>;\n /** Optional props for the SelectButton label Text. Mapped from KeyValueRow `valueTextProps`. */\n valueTextProps?: Partial<Omit<TextProps, 'children'>>;\n /** SelectButton-only props (placeholder and caret controls). */\n selectButtonProps: KeyValueSelectSelectButtonProps;\n /**\n * Optional props forwarded to the inner KeyValueRow (e.g. `testID`, `twClassName`, `style`,\n * accessibility props). Owned content props are set by KeyValueSelect and are not available here.\n */\n keyValueRowProps?: KeyValueSelectKeyValueRowProps;\n /** Optional Tailwind class names applied to the outer Pressable. */\n twClassName?: string;\n };\n"]}
|
|
1
|
+
{"version":3,"file":"KeyValueSelect.types.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueSelect/KeyValueSelect.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n KeyValueSelectPropsShared,\n KeyValueSelectSelectButtonPropsShared,\n} from '@metamask-previews/design-system-shared';\nimport type { PressableProps } from 'react-native';\n\nimport type { ButtonIconProps } from '../ButtonIcon/ButtonIcon.types';\nimport type { IconProps } from '../Icon/Icon.types';\nimport type { KeyValueRowProps } from '../KeyValueRow/KeyValueRow.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * SelectButton-only props for KeyValueSelect (RN).\n * Size is always Md and variant is always Secondary.\n */\nexport type KeyValueSelectSelectButtonProps =\n KeyValueSelectSelectButtonPropsShared & {\n /**\n * Optional props passed to the SelectButton trailing arrow Icon when a trailing\n * arrow is shown (excluding `name`, which is derived from the resolved direction).\n */\n endArrowDirectionIconProps?: Partial<Omit<IconProps, 'name'>>;\n };\n\n/**\n * KeyValueRow shell / ViewProps escape hatch.\n * Owned KeyValueSelect content props are omitted so the public API stays the source of truth.\n */\nexport type KeyValueSelectKeyValueRowProps = Omit<\n KeyValueRowProps,\n | 'keyLabel'\n | 'keyStartAccessory'\n | 'keyEndAccessory'\n | 'keyTextProps'\n | 'keyEndButtonIconProps'\n | 'value'\n | 'valueStartAccessory'\n | 'valueEndAccessory'\n | 'valueTextProps'\n | 'valueEndButtonIconProps'\n | 'variant'\n>;\n\n/**\n * KeyValueSelect component props.\n *\n * Pressable KeyValueRow with a SelectButton value. Value-side KeyValueRow props\n * map onto SelectButton; SelectButton-only options use `selectButtonProps`.\n * Use `keyValueRowProps` for inner KeyValueRow shell props (e.g. `testID`, `twClassName`).\n */\nexport type KeyValueSelectProps = Omit<\n KeyValueSelectPropsShared,\n 'selectButtonProps'\n> &\n Omit<PressableProps, 'children' | 'disabled'> & {\n /** Optional props for the key Text when key is a string. */\n keyTextProps?: Partial<Omit<TextProps, 'children'>>;\n /** When set, renders a ButtonIcon as the key endAccessory (takes precedence over keyEndAccessory). */\n keyEndButtonIconProps?: Partial<ButtonIconProps>;\n /** Optional props for the SelectButton label Text. Mapped from KeyValueRow `valueTextProps`. */\n valueTextProps?: Partial<Omit<TextProps, 'children'>>;\n /** SelectButton-only props (placeholder and caret controls). `placeholder` is optional; when the resolved label is empty, no label is rendered. */\n selectButtonProps: KeyValueSelectSelectButtonProps;\n /**\n * Optional props forwarded to the inner KeyValueRow (e.g. `testID`, `twClassName`, `style`,\n * accessibility props). Owned content props are set by KeyValueSelect and are not available here.\n */\n keyValueRowProps?: KeyValueSelectKeyValueRowProps;\n /** Optional Tailwind class names applied to the outer Pressable. */\n twClassName?: string;\n };\n"]}
|