@razorpay/blade 11.13.1 → 11.15.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/build/lib/native/components/Alert/Alert.js +1 -1
- package/build/lib/native/components/Alert/Alert.js.map +1 -1
- package/build/lib/native/components/Amount/Amount.js.map +1 -1
- package/build/lib/native/components/Box/BaseBox/baseBoxStyles.js +1 -1
- package/build/lib/native/components/Box/BaseBox/baseBoxStyles.js.map +1 -1
- package/build/lib/native/components/Box/BaseBox/types/propsTypes.js.map +1 -1
- package/build/lib/native/components/Box/Box.js +1 -1
- package/build/lib/native/components/Box/Box.js.map +1 -1
- package/build/lib/native/components/Box/styledProps/getStyledProps.js +1 -1
- package/build/lib/native/components/Box/styledProps/getStyledProps.js.map +1 -1
- package/build/lib/native/components/Indicator/Indicator.js +1 -1
- package/build/lib/native/components/Indicator/Indicator.js.map +1 -1
- package/build/lib/native/components/StepGroup/StepGroup.native.js +17 -0
- package/build/lib/native/components/StepGroup/StepGroup.native.js.map +1 -0
- package/build/lib/native/components/StepGroup/StepGroupContext.js +6 -0
- package/build/lib/native/components/StepGroup/StepGroupContext.js.map +1 -0
- package/build/lib/native/components/StepGroup/StepItem.native.js +17 -0
- package/build/lib/native/components/StepGroup/StepItem.native.js.map +1 -0
- package/build/lib/native/components/StepGroup/StepItemMarker.js +15 -0
- package/build/lib/native/components/StepGroup/StepItemMarker.js.map +1 -0
- package/build/lib/native/components/StepGroup/tokens.js +8 -0
- package/build/lib/native/components/StepGroup/tokens.js.map +1 -0
- package/build/lib/native/components/index.js +3 -0
- package/build/lib/native/components/index.js.map +1 -1
- package/build/lib/native/tokens/global/size.js +1 -1
- package/build/lib/native/tokens/global/size.js.map +1 -1
- package/build/lib/native/utils/metaAttribute/metaConstants.js +1 -1
- package/build/lib/native/utils/metaAttribute/metaConstants.js.map +1 -1
- package/build/lib/web/development/components/Alert/Alert.js +5 -4
- package/build/lib/web/development/components/Alert/Alert.js.map +1 -1
- package/build/lib/web/development/components/Amount/Amount.js +7 -2
- package/build/lib/web/development/components/Amount/Amount.js.map +1 -1
- package/build/lib/web/development/components/Box/BaseBox/baseBoxStyles.js +17 -5
- package/build/lib/web/development/components/Box/BaseBox/baseBoxStyles.js.map +1 -1
- package/build/lib/web/development/components/Box/BaseBox/types/propsTypes.js.map +1 -1
- package/build/lib/web/development/components/Box/Box.js +5 -0
- package/build/lib/web/development/components/Box/Box.js.map +1 -1
- package/build/lib/web/development/components/Box/styledProps/getStyledProps.js +2 -1
- package/build/lib/web/development/components/Box/styledProps/getStyledProps.js.map +1 -1
- package/build/lib/web/development/components/Indicator/Indicator.js +1 -1
- package/build/lib/web/development/components/Indicator/Indicator.js.map +1 -1
- package/build/lib/web/development/components/StepGroup/StepGroup.web.js +138 -0
- package/build/lib/web/development/components/StepGroup/StepGroup.web.js.map +1 -0
- package/build/lib/web/development/components/StepGroup/StepGroupContext.js +15 -0
- package/build/lib/web/development/components/StepGroup/StepGroupContext.js.map +1 -0
- package/build/lib/web/development/components/StepGroup/StepItem.web.js +224 -0
- package/build/lib/web/development/components/StepGroup/StepItem.web.js.map +1 -0
- package/build/lib/web/development/components/StepGroup/StepItemMarker.js +65 -0
- package/build/lib/web/development/components/StepGroup/StepItemMarker.js.map +1 -0
- package/build/lib/web/development/components/StepGroup/StepLine.web.js +336 -0
- package/build/lib/web/development/components/StepGroup/StepLine.web.js.map +1 -0
- package/build/lib/web/development/components/StepGroup/componentIds.js +7 -0
- package/build/lib/web/development/components/StepGroup/componentIds.js.map +1 -0
- package/build/lib/web/development/components/StepGroup/index.js +4 -0
- package/build/lib/web/development/components/StepGroup/index.js.map +1 -0
- package/build/lib/web/development/components/StepGroup/tokens.js +62 -0
- package/build/lib/web/development/components/StepGroup/tokens.js.map +1 -0
- package/build/lib/web/development/components/index.js +4 -0
- package/build/lib/web/development/components/index.js.map +1 -1
- package/build/lib/web/development/tokens/global/size.js +4 -0
- package/build/lib/web/development/tokens/global/size.js.map +1 -1
- package/build/lib/web/development/utils/metaAttribute/metaConstants.js +3 -1
- package/build/lib/web/development/utils/metaAttribute/metaConstants.js.map +1 -1
- package/build/lib/web/development/utils/omitPropsFromHTML/index.js +1 -1
- package/build/lib/web/development/utils/omitPropsFromHTML/index.js.map +1 -1
- package/build/lib/web/production/components/Alert/Alert.js +5 -4
- package/build/lib/web/production/components/Alert/Alert.js.map +1 -1
- package/build/lib/web/production/components/Amount/Amount.js +7 -2
- package/build/lib/web/production/components/Amount/Amount.js.map +1 -1
- package/build/lib/web/production/components/Box/BaseBox/baseBoxStyles.js +17 -5
- package/build/lib/web/production/components/Box/BaseBox/baseBoxStyles.js.map +1 -1
- package/build/lib/web/production/components/Box/BaseBox/types/propsTypes.js.map +1 -1
- package/build/lib/web/production/components/Box/Box.js +5 -0
- package/build/lib/web/production/components/Box/Box.js.map +1 -1
- package/build/lib/web/production/components/Box/styledProps/getStyledProps.js +2 -1
- package/build/lib/web/production/components/Box/styledProps/getStyledProps.js.map +1 -1
- package/build/lib/web/production/components/Indicator/Indicator.js +1 -1
- package/build/lib/web/production/components/Indicator/Indicator.js.map +1 -1
- package/build/lib/web/production/components/StepGroup/StepGroup.web.js +138 -0
- package/build/lib/web/production/components/StepGroup/StepGroup.web.js.map +1 -0
- package/build/lib/web/production/components/StepGroup/StepGroupContext.js +15 -0
- package/build/lib/web/production/components/StepGroup/StepGroupContext.js.map +1 -0
- package/build/lib/web/production/components/StepGroup/StepItem.web.js +224 -0
- package/build/lib/web/production/components/StepGroup/StepItem.web.js.map +1 -0
- package/build/lib/web/production/components/StepGroup/StepItemMarker.js +65 -0
- package/build/lib/web/production/components/StepGroup/StepItemMarker.js.map +1 -0
- package/build/lib/web/production/components/StepGroup/StepLine.web.js +336 -0
- package/build/lib/web/production/components/StepGroup/StepLine.web.js.map +1 -0
- package/build/lib/web/production/components/StepGroup/componentIds.js +7 -0
- package/build/lib/web/production/components/StepGroup/componentIds.js.map +1 -0
- package/build/lib/web/production/components/StepGroup/index.js +4 -0
- package/build/lib/web/production/components/StepGroup/index.js.map +1 -0
- package/build/lib/web/production/components/StepGroup/tokens.js +62 -0
- package/build/lib/web/production/components/StepGroup/tokens.js.map +1 -0
- package/build/lib/web/production/components/index.js +4 -0
- package/build/lib/web/production/components/index.js.map +1 -1
- package/build/lib/web/production/tokens/global/size.js +4 -0
- package/build/lib/web/production/tokens/global/size.js.map +1 -1
- package/build/lib/web/production/utils/metaAttribute/metaConstants.js +3 -1
- package/build/lib/web/production/utils/metaAttribute/metaConstants.js.map +1 -1
- package/build/lib/web/production/utils/omitPropsFromHTML/index.js +1 -1
- package/build/lib/web/production/utils/omitPropsFromHTML/index.js.map +1 -1
- package/build/types/components/index.d.ts +1907 -79
- package/build/types/components/index.native.d.ts +948 -94
- package/build/types/tokens/index.d.ts +4 -0
- package/build/types/tokens/index.native.d.ts +4 -0
- package/package.json +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepItem.web.js","sources":["../../../../../../src/components/StepGroup/StepItem.web.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport { StepLine } from './StepLine';\nimport type { StepLineProps } from './StepLine';\nimport { useStepGroup } from './StepGroupContext';\nimport type {\n InteractiveItemHeaderProps,\n StepGroupContextType,\n StepGroupProps,\n StepItemProps,\n} from './types';\nimport { componentIds } from './componentIds';\nimport { itemLineGap, stepItemHeaderTokens } from './tokens';\nimport { Box } from '~components/Box';\nimport { Text } from '~components/Typography';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport BaseBox from '~components/Box/BaseBox';\nimport { makeSize, makeSpace } from '~utils';\nimport { size as sizeTokens } from '~tokens/global';\nimport { getFocusRingStyles } from '~utils/getFocusRingStyles';\nimport getIn from '~utils/lodashButBetter/get';\nimport { throwBladeError } from '~utils/logger';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\n\ntype GetStepTypeFromIndexProps = {\n _index: StepItemProps['_index'];\n _nestingLevel: StepGroupProps['_nestingLevel'];\n itemsCount: StepGroupContextType['itemsInGroupCount'];\n};\n\nconst InteractiveItemHeaderBox = styled.button<InteractiveItemHeaderProps>((props) => {\n return {\n padding: `${makeSpace(getIn(props.theme, props.paddingY))} ${makeSpace(\n getIn(props.theme, props.paddingX),\n )}`,\n cursor: 'pointer',\n display: 'inline-block',\n textDecoration: 'none',\n border: 'none',\n textAlign: 'inherit',\n backgroundColor: props.isSelected\n ? props.theme.colors.interactive.background.primary.faded\n : props.theme.colors.transparent,\n borderRadius: props.theme.border.radius.medium,\n width: '100%',\n transition: `background-color ${props.theme.motion.duration.xquick} ${props.theme.motion.easing.standard.effective}`,\n ':hover': {\n backgroundColor: props.isSelected\n ? props.theme.colors.interactive.background.primary.fadedHighlighted\n : props.theme.colors.interactive.background.gray.fadedHighlighted,\n },\n ':focus-visible': {\n ...getFocusRingStyles({ theme: props.theme }),\n },\n };\n});\n\nconst getStepTypeFromIndex = ({\n _index,\n _nestingLevel,\n itemsCount,\n}: GetStepTypeFromIndexProps): StepLineProps['stepType'] => {\n if (_nestingLevel === 0) {\n return 'default';\n }\n\n if (itemsCount === 1) {\n return 'single-item';\n }\n\n if (_index === 0) {\n return 'start';\n }\n\n if (_index === itemsCount - 1) {\n return 'end';\n }\n\n return 'middle';\n};\n\nconst _StepItem = ({\n title,\n timestamp,\n description,\n stepProgress = 'none',\n marker,\n trailing,\n isSelected,\n href,\n target,\n onClick,\n children,\n _index = 0,\n _totalIndex = 0,\n _nestingLevel = 0,\n}: StepItemProps): React.ReactElement => {\n const {\n itemsInGroupCount: itemsCount,\n totalItemsInParentGroupCount,\n orientation,\n size,\n } = useStepGroup();\n const stepType = React.useMemo(\n () => getStepTypeFromIndex({ _index, _nestingLevel, itemsCount }),\n [_index, _nestingLevel, itemsCount],\n );\n\n const itemRef = React.useRef<HTMLDivElement>(null);\n\n const isFirstItem = _totalIndex === 0;\n const isLastItem = _totalIndex === totalItemsInParentGroupCount - 1;\n const isInteractive = Boolean(href) || Boolean(onClick);\n const isVertical = orientation === 'vertical';\n\n if (__DEV__) {\n if (trailing && orientation === 'horizontal') {\n throwBladeError({\n message: 'trailing is not allowed in horizontal StepGroup',\n moduleName: 'StepItem',\n });\n }\n\n if (_nestingLevel >= 1 && orientation === 'horizontal') {\n throwBladeError({\n message: 'Nested StepGroup components are not allowed in horizontal orientation',\n moduleName: 'StepItem',\n });\n }\n }\n\n const stepItemHeaderJSX = (\n <Box display=\"flex\" flexDirection=\"row\" justifyContent=\"space-between\" gap=\"spacing.4\">\n <Box>\n <Text\n size={stepItemHeaderTokens[size].title}\n color=\"surface.text.gray.subtle\"\n weight=\"semibold\"\n >\n {title}\n </Text>\n <Text\n size={stepItemHeaderTokens[size].timestamp}\n marginY=\"spacing.2\"\n color=\"surface.text.gray.muted\"\n variant=\"caption\"\n >\n {timestamp}\n </Text>\n <Text size={stepItemHeaderTokens[size].description} color=\"surface.text.gray.muted\">\n {description}\n </Text>\n </Box>\n <Box>{trailing}</Box>\n </Box>\n );\n\n const stepItemHeaderPaddings: Omit<InteractiveItemHeaderProps, 'isSelected'> = {\n paddingY: 'spacing.3',\n paddingX: 'spacing.4',\n } as const;\n\n return (\n <BaseBox\n display=\"flex\"\n flexDirection={isVertical ? 'row' : 'column'}\n gap={itemLineGap[size]}\n className={`step-item step-index-${_index} step-nesting-level-${_nestingLevel}`}\n textAlign={isVertical ? 'left' : 'center'}\n alignItems={isVertical ? undefined : 'center'}\n minWidth={isVertical ? undefined : `min(${makeSize(sizeTokens['120'])}, 100%)`}\n width={isVertical ? '100%' : undefined}\n flex={isVertical ? undefined : '1'}\n {...metaAttribute({ name: MetaConstants.StepItem })}\n ref={itemRef}\n >\n <StepLine\n shouldShowStartBranch={!isFirstItem}\n shouldShowEndBranch={!isLastItem}\n stepType={stepType}\n marker={marker}\n stepProgress={stepProgress}\n />\n <Box marginTop=\"spacing.3\" flex=\"1\" marginRight={isVertical ? undefined : undefined}>\n {isInteractive ? (\n <InteractiveItemHeaderBox\n {...stepItemHeaderPaddings}\n as={href ? 'a' : 'button'}\n href={href}\n target={target}\n isSelected={isSelected}\n onClick={onClick}\n >\n {stepItemHeaderJSX}\n </InteractiveItemHeaderBox>\n ) : (\n <Box {...stepItemHeaderPaddings}>{stepItemHeaderJSX}</Box>\n )}\n {children ? (\n <Box paddingX=\"spacing.4\" paddingY=\"spacing.3\">\n {children}\n </Box>\n ) : null}\n </Box>\n </BaseBox>\n );\n};\n\n/**\n * ## StepItem\n *\n * Component meant to be used inside the StepGroup parent component\n *\n * ### Usage\n *\n * ```jsx\n * <StepGroup orientation=\"vertical\" size=\"medium\">\n * <StepItem\n * title=\"Personal Details\"\n * timestamp=\"Thu 15th Oct'23 | 12:00pm\"\n * description=\"Fill your personal details here\"\n * marker={<StepItemIndicator color=\"negative\" />}\n * />\n * </StepGroup>\n * ```\n *\n * ---\n *\n * Checkout {@link https://blade.razorpay.com/?path=/docs/components-stepgroup--docs StepGroup Documentation}\n */\nconst StepItem = assignWithoutSideEffects(_StepItem, {\n componentId: componentIds.StepItem,\n displayName: componentIds.StepItem,\n});\n\nexport { StepLine, StepItem };\n"],"names":["InteractiveItemHeaderBox","styled","button","withConfig","displayName","componentId","props","padding","concat","makeSpace","getIn","theme","paddingY","paddingX","cursor","display","textDecoration","border","textAlign","backgroundColor","isSelected","colors","interactive","background","primary","faded","transparent","borderRadius","radius","medium","width","transition","motion","duration","xquick","easing","standard","effective","fadedHighlighted","gray","_objectSpread","getFocusRingStyles","getStepTypeFromIndex","_ref","_index","_nestingLevel","itemsCount","_StepItem","_ref2","title","timestamp","description","_ref2$stepProgress","stepProgress","marker","trailing","href","target","onClick","children","_ref2$_index","_ref2$_totalIndex","_totalIndex","_ref2$_nestingLevel","_useStepGroup","useStepGroup","itemsInGroupCount","totalItemsInParentGroupCount","orientation","size","stepType","React","useMemo","itemRef","useRef","isFirstItem","isLastItem","isInteractive","Boolean","isVertical","throwBladeError","message","moduleName","stepItemHeaderJSX","_jsxs","Box","flexDirection","justifyContent","gap","_jsx","Text","stepItemHeaderTokens","color","weight","marginY","variant","stepItemHeaderPaddings","BaseBox","itemLineGap","className","alignItems","undefined","minWidth","makeSize","sizeTokens","flex","metaAttribute","name","MetaConstants","StepItem","ref","StepLine","shouldShowStartBranch","shouldShowEndBranch","marginTop","marginRight","as","assignWithoutSideEffects","componentIds"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,IAAMA,wBAAwB,gBAAGC,MAAM,CAACC,MAAM,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,uCAAA;EAAAC,WAAA,EAAA,UAAA;AAAA,CAA6B,CAAA,CAAA,UAACC,KAAK,EAAK;EACpF,OAAO;AACLC,IAAAA,OAAO,EAAAC,EAAAA,CAAAA,MAAA,CAAKC,SAAS,CAACC,KAAK,CAACJ,KAAK,CAACK,KAAK,EAAEL,KAAK,CAACM,QAAQ,CAAC,CAAC,EAAAJ,GAAAA,CAAAA,CAAAA,MAAA,CAAIC,SAAS,CACpEC,KAAK,CAACJ,KAAK,CAACK,KAAK,EAAEL,KAAK,CAACO,QAAQ,CACnC,CAAC,CAAE;AACHC,IAAAA,MAAM,EAAE,SAAS;AACjBC,IAAAA,OAAO,EAAE,cAAc;AACvBC,IAAAA,cAAc,EAAE,MAAM;AACtBC,IAAAA,MAAM,EAAE,MAAM;AACdC,IAAAA,SAAS,EAAE,SAAS;IACpBC,eAAe,EAAEb,KAAK,CAACc,UAAU,GAC7Bd,KAAK,CAACK,KAAK,CAACU,MAAM,CAACC,WAAW,CAACC,UAAU,CAACC,OAAO,CAACC,KAAK,GACvDnB,KAAK,CAACK,KAAK,CAACU,MAAM,CAACK,WAAW;IAClCC,YAAY,EAAErB,KAAK,CAACK,KAAK,CAACM,MAAM,CAACW,MAAM,CAACC,MAAM;AAC9CC,IAAAA,KAAK,EAAE,MAAM;IACbC,UAAU,EAAA,mBAAA,CAAAvB,MAAA,CAAsBF,KAAK,CAACK,KAAK,CAACqB,MAAM,CAACC,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EAAEA,OAAQ;AAAAC,QAAAA,QAAA,EAEhBwB,iBAAAA;OACuB,CAAA,CAAC,gBAE3BM,GAAA,CAACJ,GAAG,EAAA7C,aAAA,CAAAA,aAAA,CAAA,EAAA,EAAKwD,sBAAsB,CAAA,EAAA,EAAA,EAAA;AAAArC,QAAAA,QAAA,EAAGwB,iBAAAA;AAAiB,OAAA,CAAM,CAC1D,EACAxB,QAAQ,gBACP8B,GAAA,CAACJ,GAAG,EAAA;AAACxE,QAAAA,QAAQ,EAAC,WAAW;AAACD,QAAAA,QAAQ,EAAC,WAAW;AAAA+C,QAAAA,QAAA,EAC3CA,QAAAA;OACE,CAAC,GACJ,IAAI,CAAA;AAAA,KACL,CAAC,CAAA;AAAA,GAAA,CACC,CAAC,CAAA;AAEd,CAAC,CAAA;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMkD,QAAQ,gBAAGQ,wBAAwB,CAACtE,SAAS,EAAE;EACnD1C,WAAW,EAAEiH,YAAY,CAACT,QAAQ;EAClCzG,WAAW,EAAEkH,YAAY,CAACT,QAAAA;AAC5B,CAAC;;;;"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { useStepGroup } from './StepGroupContext.js';
|
|
2
|
+
import { getMarkerLineSpacings, iconSizeTokens } from './tokens.js';
|
|
3
|
+
import '../Box/BaseBox/index.js';
|
|
4
|
+
import '../Indicator/index.js';
|
|
5
|
+
import '../../utils/index.js';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
|
+
import { BaseBox } from '../Box/BaseBox/BaseBox.web.js';
|
|
8
|
+
import { makeSize } from '../../utils/makeSize/makeSize.js';
|
|
9
|
+
import { Indicator } from '../Indicator/Indicator.js';
|
|
10
|
+
|
|
11
|
+
var MarkerBackgroundCircle = function MarkerBackgroundCircle(_ref) {
|
|
12
|
+
var color = _ref.color,
|
|
13
|
+
size = _ref.size,
|
|
14
|
+
margin = _ref.margin,
|
|
15
|
+
children = _ref.children;
|
|
16
|
+
return /*#__PURE__*/jsx(BaseBox, {
|
|
17
|
+
backgroundColor: color === 'primary' ? 'surface.background.primary.subtle' : "feedback.background.".concat(color, ".subtle"),
|
|
18
|
+
display: "flex",
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
justifyContent: "center",
|
|
21
|
+
height: size,
|
|
22
|
+
width: size,
|
|
23
|
+
borderRadius: "round",
|
|
24
|
+
margin: margin,
|
|
25
|
+
children: children
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
var StepItemIndicator = function StepItemIndicator(_ref2) {
|
|
29
|
+
var color = _ref2.color;
|
|
30
|
+
var _useStepGroup = useStepGroup(),
|
|
31
|
+
size = _useStepGroup.size;
|
|
32
|
+
var spacingTokens = getMarkerLineSpacings(size);
|
|
33
|
+
return /*#__PURE__*/jsx(MarkerBackgroundCircle, {
|
|
34
|
+
color: color,
|
|
35
|
+
size: makeSize(spacingTokens.markerBackgroundSize),
|
|
36
|
+
margin: makeSize(spacingTokens.markerMargin),
|
|
37
|
+
children: /*#__PURE__*/jsx(Indicator, {
|
|
38
|
+
position: "relative",
|
|
39
|
+
marginLeft: "spacing.2",
|
|
40
|
+
color: color,
|
|
41
|
+
size: size,
|
|
42
|
+
accessibilityLabel: "".concat(color, " indicator")
|
|
43
|
+
})
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
var StepItemIcon = function StepItemIcon(_ref3) {
|
|
47
|
+
var Icon = _ref3.icon,
|
|
48
|
+
_ref3$color = _ref3.color,
|
|
49
|
+
color = _ref3$color === void 0 ? 'neutral' : _ref3$color;
|
|
50
|
+
var _useStepGroup2 = useStepGroup(),
|
|
51
|
+
size = _useStepGroup2.size;
|
|
52
|
+
var spacingTokens = getMarkerLineSpacings(size);
|
|
53
|
+
return /*#__PURE__*/jsx(MarkerBackgroundCircle, {
|
|
54
|
+
color: color,
|
|
55
|
+
size: makeSize(spacingTokens.markerBackgroundSize),
|
|
56
|
+
margin: makeSize(spacingTokens.markerMargin),
|
|
57
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
58
|
+
size: iconSizeTokens[size],
|
|
59
|
+
color: color === 'primary' ? 'surface.icon.primary.normal' : "feedback.icon.".concat(color, ".intense")
|
|
60
|
+
})
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export { StepItemIcon, StepItemIndicator };
|
|
65
|
+
//# sourceMappingURL=StepItemMarker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepItemMarker.js","sources":["../../../../../../src/components/StepGroup/StepItemMarker.tsx"],"sourcesContent":["import { useStepGroup } from './StepGroupContext';\nimport { getMarkerLineSpacings, iconSizeTokens } from './tokens';\nimport type { BaseBoxProps } from '~components/Box/BaseBox';\nimport BaseBox from '~components/Box/BaseBox';\nimport type { IconComponent } from '~components/Icons';\nimport type { IndicatorProps } from '~components/Indicator';\nimport { Indicator } from '~components/Indicator';\nimport { makeSize } from '~utils';\n\ntype MarkerBackgroundCircleProps = {\n color: IndicatorProps['color'];\n size: BaseBoxProps['width'];\n margin: BaseBoxProps['margin'];\n children: BaseBoxProps['children'];\n};\n\nconst MarkerBackgroundCircle = ({\n color,\n size,\n margin,\n children,\n}: MarkerBackgroundCircleProps): React.ReactElement => {\n return (\n <BaseBox\n backgroundColor={\n color === 'primary'\n ? 'surface.background.primary.subtle'\n : `feedback.background.${color}.subtle`\n }\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n height={size}\n width={size}\n borderRadius=\"round\"\n margin={margin}\n >\n {children}\n </BaseBox>\n );\n};\n\nconst StepItemIndicator = ({ color }: { color: IndicatorProps['color'] }): React.ReactElement => {\n const { size } = useStepGroup();\n const spacingTokens = getMarkerLineSpacings(size);\n\n return (\n <MarkerBackgroundCircle\n color={color}\n size={makeSize(spacingTokens.markerBackgroundSize)}\n margin={makeSize(spacingTokens.markerMargin)}\n >\n <Indicator\n position=\"relative\"\n marginLeft=\"spacing.2\"\n color={color}\n size={size}\n accessibilityLabel={`${color} indicator`}\n />\n </MarkerBackgroundCircle>\n );\n};\n\ntype StepItemIconProps = {\n icon: IconComponent;\n color: IndicatorProps['color'];\n};\n\nconst StepItemIcon = ({ icon: Icon, color = 'neutral' }: StepItemIconProps): React.ReactElement => {\n const { size } = useStepGroup();\n const spacingTokens = getMarkerLineSpacings(size);\n\n return (\n <MarkerBackgroundCircle\n color={color}\n size={makeSize(spacingTokens.markerBackgroundSize)}\n margin={makeSize(spacingTokens.markerMargin)}\n >\n <Icon\n size={iconSizeTokens[size]}\n color={\n color === 'primary' ? 'surface.icon.primary.normal' : `feedback.icon.${color}.intense`\n }\n />\n </MarkerBackgroundCircle>\n );\n};\n\nexport { StepItemIndicator, StepItemIcon };\n"],"names":["MarkerBackgroundCircle","_ref","color","size","margin","children","_jsx","BaseBox","backgroundColor","concat","display","alignItems","justifyContent","height","width","borderRadius","StepItemIndicator","_ref2","_useStepGroup","useStepGroup","spacingTokens","getMarkerLineSpacings","makeSize","markerBackgroundSize","markerMargin","Indicator","position","marginLeft","accessibilityLabel","StepItemIcon","_ref3","Icon","icon","_ref3$color","_useStepGroup2","iconSizeTokens"],"mappings":";;;;;;;;;;AAgBA,IAAMA,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAAC,IAAA,EAK2B;AAAA,EAAA,IAJrDC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,MAAM,GAAAH,IAAA,CAANG,MAAM;IACNC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ,CAAA;EAER,oBACEC,GAAA,CAACC,OAAO,EAAA;IACNC,eAAe,EACbN,KAAK,KAAK,SAAS,GACf,mCAAmC,GAAAO,sBAAAA,CAAAA,MAAA,CACZP,KAAK,EACjC,SAAA,CAAA;AACDQ,IAAAA,OAAO,EAAC,MAAM;AACdC,IAAAA,U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AAA+B,WAAA,KAAG,KAAA,CAAA,GAAA,SAAS,GAAAA,WAAA,CAAA;AACnD,EAAA,IAAAC,cAAA,GAAiBf,YAAY,EAAE;IAAvBhB,IAAI,GAAA+B,cAAA,CAAJ/B,IAAI,CAAA;AACZ,EAAA,IAAMiB,aAAa,GAAGC,qBAAqB,CAAClB,IAAI,CAAC,CAAA;EAEjD,oBACEG,GAAA,CAACN,sBAAsB,EAAA;AACrBE,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,IAAI,EAAEmB,QAAQ,CAACF,aAAa,CAACG,oBAAoB,CAAE;AACnDnB,IAAAA,MAAM,EAAEkB,QAAQ,CAACF,aAAa,CAACI,YAAY,CAAE;IAAAnB,QAAA,eAE7CC,GAAA,CAACyB,IAAI,EAAA;AACH5B,MAAAA,IAAI,EAAEgC,cAAc,CAAChC,IAAI,CAAE;MAC3BD,KAAK,EACHA,KAAK,KAAK,SAAS,GAAG,6BAA6B,GAAA,gBAAA,CAAAO,MAAA,CAAoBP,KAAK,EAAA,UAAA,CAAA;KAE/E,CAAA;AAAC,GACoB,CAAC,CAAA;AAE7B;;;;"}
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
+
import { encode } from 'universal-base64';
|
|
4
|
+
import { StepItemIndicator } from './StepItemMarker.js';
|
|
5
|
+
import { useStepGroup } from './StepGroupContext.js';
|
|
6
|
+
import { markerLineDotWidth, markerLineDotSpacing, markerLineWidth, getMarkerLineSpacings, itemTopMargin } from './tokens.js';
|
|
7
|
+
import '../Box/index.js';
|
|
8
|
+
import '../Box/BaseBox/index.js';
|
|
9
|
+
import '../Icons/_Svg/index.js';
|
|
10
|
+
import '../../utils/index.js';
|
|
11
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
12
|
+
import useTheme from '../BladeProvider/useTheme.js';
|
|
13
|
+
import { makeSize } from '../../utils/makeSize/makeSize.js';
|
|
14
|
+
import { BaseBox } from '../Box/BaseBox/BaseBox.web.js';
|
|
15
|
+
import Svg from '../Icons/_Svg/Svg/Svg.web.js';
|
|
16
|
+
import Path from '../Icons/_Svg/Path/Path.web.js';
|
|
17
|
+
import { Box } from '../Box/Box.js';
|
|
18
|
+
|
|
19
|
+
var _excluded = ["isDotted", "width"],
|
|
20
|
+
_excluded2 = ["height", "isDotted"],
|
|
21
|
+
_excluded3 = ["isDotted"],
|
|
22
|
+
_excluded4 = ["isDotted"];
|
|
23
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25
|
+
var useDottedLineStyles = function useDottedLineStyles() {
|
|
26
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
27
|
+
isHorizontal = _ref.isHorizontal;
|
|
28
|
+
var _useTheme = useTheme(),
|
|
29
|
+
theme = _useTheme.theme;
|
|
30
|
+
var svgString = "<svg width=\"2\" height=\"2\" viewBox=\"0 0 2 2\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M0 1C0 0.447715 0.447715 0 1 0C1.55228 0 2 0.447715 2 1C2 1.55228 1.55228 2 1 2C0.447715 2 0 1.55228 0 1Z\"\n fill=\"".concat(theme.colors.surface.border.gray.subtle, "\"\n />\n </svg>\n ");
|
|
31
|
+
var backgroundURL = "url(data:image/svg+xml;base64,".concat(encode(svgString), ")");
|
|
32
|
+
return {
|
|
33
|
+
backgroundImage: backgroundURL,
|
|
34
|
+
backgroundPosition: isHorizontal ? 'left' : 'top',
|
|
35
|
+
backgroundSize: isHorizontal ? "".concat(makeSize(markerLineDotWidth + markerLineDotSpacing), " ").concat(makeSize(markerLineDotWidth)) : "".concat(makeSize(markerLineDotWidth), " ").concat(makeSize(markerLineDotWidth + markerLineDotSpacing), " "),
|
|
36
|
+
backgroundRepeat: isHorizontal ? 'round no-repeat' : 'no-repeat round'
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
var StepStraightLineHorizontal = function StepStraightLineHorizontal(_ref2) {
|
|
40
|
+
var isDotted = _ref2.isDotted,
|
|
41
|
+
width = _ref2.width,
|
|
42
|
+
styledProps = _objectWithoutProperties(_ref2, _excluded);
|
|
43
|
+
var dottedStyles = useDottedLineStyles({
|
|
44
|
+
isHorizontal: true
|
|
45
|
+
});
|
|
46
|
+
var borderStyles = isDotted ? dottedStyles : {
|
|
47
|
+
borderTopWidth: 'thicker',
|
|
48
|
+
borderTopColor: 'surface.border.gray.subtle'
|
|
49
|
+
};
|
|
50
|
+
return /*#__PURE__*/jsx(BaseBox, _objectSpread(_objectSpread({
|
|
51
|
+
height: makeSize(markerLineWidth),
|
|
52
|
+
flex: "1"
|
|
53
|
+
}, borderStyles), styledProps));
|
|
54
|
+
};
|
|
55
|
+
var StepStraightLineVertical = function StepStraightLineVertical(_ref3) {
|
|
56
|
+
var height = _ref3.height,
|
|
57
|
+
isDotted = _ref3.isDotted,
|
|
58
|
+
styledProps = _objectWithoutProperties(_ref3, _excluded2);
|
|
59
|
+
var dottedStyles = useDottedLineStyles();
|
|
60
|
+
var borderStyles = isDotted ? dottedStyles : {
|
|
61
|
+
borderLeftWidth: 'thicker',
|
|
62
|
+
borderLeftColor: 'surface.border.gray.subtle'
|
|
63
|
+
};
|
|
64
|
+
return /*#__PURE__*/jsx(BaseBox, _objectSpread(_objectSpread({
|
|
65
|
+
height: height ? makeSize(height) : undefined,
|
|
66
|
+
flex: height ? undefined : '1',
|
|
67
|
+
width: makeSize(markerLineWidth)
|
|
68
|
+
}, borderStyles), styledProps));
|
|
69
|
+
};
|
|
70
|
+
var StepTopCurveVertical = function StepTopCurveVertical(_ref4) {
|
|
71
|
+
var isDotted = _ref4.isDotted,
|
|
72
|
+
styledProps = _objectWithoutProperties(_ref4, _excluded3);
|
|
73
|
+
var _useTheme2 = useTheme(),
|
|
74
|
+
theme = _useTheme2.theme;
|
|
75
|
+
return isDotted ? /*#__PURE__*/jsxs(Svg, {
|
|
76
|
+
width: "21",
|
|
77
|
+
height: "15",
|
|
78
|
+
marginLeft: "-1px",
|
|
79
|
+
viewBox: "0 0 21 15",
|
|
80
|
+
fill: theme.colors.surface.border.gray.subtle,
|
|
81
|
+
children: [/*#__PURE__*/jsx(Path, {
|
|
82
|
+
d: "M1.90332 2.3916C2.20752 2.3916 2.47998 2.25586 2.66357 2.04199C2.81299 1.86719 2.90332 1.63965 2.90332 1.3916C2.90332 0.838867 2.45557 0.391602 1.90332 0.391602C1.35107 0.391602 0.90332 0.838867 0.90332 1.3916C0.90332 1.94434 1.35107 2.3916 1.90332 2.3916Z"
|
|
83
|
+
}), /*#__PURE__*/jsx(Path, {
|
|
84
|
+
d: "M9.85352 13.042C9.66992 13.2559 9.39746 13.3916 9.09326 13.3916C8.54102 13.3916 8.09326 12.9443 8.09326 12.3916C8.09326 11.8389 8.54102 11.3916 9.09326 11.3916C9.64551 11.3916 10.0933 11.8389 10.0933 12.3916C10.0933 12.6396 10.0029 12.8672 9.85352 13.042Z"
|
|
85
|
+
}), /*#__PURE__*/jsx(Path, {
|
|
86
|
+
d: "M14.498 14.3916C14.8022 14.3916 15.0747 14.2559 15.2583 14.042C15.4077 13.8672 15.498 13.6396 15.498 13.3916C15.498 12.8389 15.0503 12.3916 14.498 12.3916C13.9458 12.3916 13.498 12.8389 13.498 13.3916C13.498 13.9443 13.9458 14.3916 14.498 14.3916Z"
|
|
87
|
+
}), /*#__PURE__*/jsx(Path, {
|
|
88
|
+
d: "M19.9033 14.3916C20.2075 14.3916 20.48 14.2559 20.6636 14.042C20.813 13.8672 20.9033 13.6396 20.9033 13.3916C20.9033 12.8389 20.4556 12.3916 19.9033 12.3916C19.3511 12.3916 18.9033 12.8389 18.9033 13.3916C18.9033 13.9443 19.3511 14.3916 19.9033 14.3916Z"
|
|
89
|
+
}), /*#__PURE__*/jsx(Path, {
|
|
90
|
+
d: "M3.26318 6.08887C3.07959 6.30273 2.80713 6.43848 2.50293 6.43848C1.95068 6.43848 1.50293 5.99121 1.50293 5.43848C1.50293 4.88574 1.95068 4.43848 2.50293 4.43848C3.05518 4.43848 3.50293 4.88574 3.50293 5.43848C3.50293 5.68652 3.4126 5.91406 3.26318 6.08887Z"
|
|
91
|
+
}), /*#__PURE__*/jsx(Path, {
|
|
92
|
+
d: "M5.15137 10.6357C5.45557 10.6357 5.72803 10.5 5.91162 10.2861C6.06104 10.1113 6.15137 9.88379 6.15137 9.63574C6.15137 9.08301 5.70361 8.63574 5.15137 8.63574C4.59912 8.63574 4.15137 9.08301 4.15137 9.63574C4.15137 10.1885 4.59912 10.6357 5.15137 10.6357Z"
|
|
93
|
+
})]
|
|
94
|
+
}) : /*#__PURE__*/jsx(Svg, _objectSpread(_objectSpread({
|
|
95
|
+
width: "20",
|
|
96
|
+
height: "14",
|
|
97
|
+
viewBox: "0 0 20 14",
|
|
98
|
+
fill: "none"
|
|
99
|
+
}, styledProps), {}, {
|
|
100
|
+
children: /*#__PURE__*/jsx(Path, {
|
|
101
|
+
d: "M1 0V1C1 7.62742 6.37258 13 13 13H20",
|
|
102
|
+
stroke: theme.colors.surface.border.gray.subtle,
|
|
103
|
+
strokeWidth: "2"
|
|
104
|
+
})
|
|
105
|
+
}));
|
|
106
|
+
};
|
|
107
|
+
var StepBottomCurveVertical = function StepBottomCurveVertical(_ref5) {
|
|
108
|
+
var isDotted = _ref5.isDotted,
|
|
109
|
+
styledProps = _objectWithoutProperties(_ref5, _excluded4);
|
|
110
|
+
var _useTheme3 = useTheme(),
|
|
111
|
+
theme = _useTheme3.theme;
|
|
112
|
+
return isDotted ? /*#__PURE__*/jsxs(Svg, {
|
|
113
|
+
width: "35",
|
|
114
|
+
height: "26",
|
|
115
|
+
viewBox: "0 0 35 26",
|
|
116
|
+
fill: theme.colors.surface.border.gray.subtle,
|
|
117
|
+
children: [/*#__PURE__*/jsx(Path, {
|
|
118
|
+
d: "M34.7603 1.93457C34.5767 2.14844 34.3042 2.28418 34 2.28418C33.4478 2.28418 33 1.83691 33 1.28418C33 0.731445 33.4478 0.28418 34 0.28418C34.5522 0.28418 35 0.731445 35 1.28418C35 1.53223 34.9097 1.75977 34.7603 1.93457Z"
|
|
119
|
+
}), /*#__PURE__*/jsx(Path, {
|
|
120
|
+
d: "M2 18.7803C2.3042 18.7803 2.57666 18.6445 2.76025 18.4307C2.90967 18.2559 3 18.0283 3 17.7803C3 17.2275 2.55225 16.7803 2 16.7803C1.44775 16.7803 1 17.2275 1 17.7803C1 18.333 1.44775 18.7803 2 18.7803Z"
|
|
121
|
+
}), /*#__PURE__*/jsx(Path, {
|
|
122
|
+
d: "M1 25.2842C1.3042 25.2842 1.57666 25.1484 1.76025 24.9346C1.90967 24.7598 2 24.5322 2 24.2842C2 23.7314 1.55225 23.2842 1 23.2842C0.447754 23.2842 0 23.7314 0 24.2842C0 24.8369 0.447754 25.2842 1 25.2842Z"
|
|
123
|
+
}), /*#__PURE__*/jsx(Path, {
|
|
124
|
+
d: "M7.30127 14.7842C7.60547 14.7842 7.87793 14.6484 8.06152 14.4346C8.21094 14.2598 8.30127 14.0322 8.30127 13.7842C8.30127 13.2314 7.85352 12.7842 7.30127 12.7842C6.74902 12.7842 6.30127 13.2314 6.30127 13.7842C6.30127 14.3369 6.74902 14.7842 7.30127 14.7842Z"
|
|
125
|
+
}), /*#__PURE__*/jsx(Path, {
|
|
126
|
+
d: "M14.7188 13.1338C14.5352 13.3477 14.2627 13.4834 13.9585 13.4834C13.4062 13.4834 12.9585 13.0361 12.9585 12.4834C12.9585 11.9307 13.4062 11.4834 13.9585 11.4834C14.5107 11.4834 14.9585 11.9307 14.9585 12.4834C14.9585 12.7314 14.8682 12.959 14.7188 13.1338Z"
|
|
127
|
+
}), /*#__PURE__*/jsx(Path, {
|
|
128
|
+
d: "M20.5698 12.2119C20.874 12.2119 21.1465 12.0762 21.3301 11.8623C21.4795 11.6875 21.5698 11.46 21.5698 11.2119C21.5698 10.6592 21.1221 10.2119 20.5698 10.2119C20.0176 10.2119 19.5698 10.6592 19.5698 11.2119C19.5698 11.7646 20.0176 12.2119 20.5698 12.2119Z"
|
|
129
|
+
}), /*#__PURE__*/jsx(Path, {
|
|
130
|
+
d: "M27.6211 10.6523C27.4375 10.8662 27.165 11.002 26.8608 11.002C26.3086 11.002 25.8608 10.5547 25.8608 10.002C25.8608 9.44922 26.3086 9.00195 26.8608 9.00195C27.4131 9.00195 27.8608 9.44922 27.8608 10.002C27.8608 10.25 27.7705 10.4775 27.6211 10.6523Z"
|
|
131
|
+
}), /*#__PURE__*/jsx(Path, {
|
|
132
|
+
d: "M32.0879 8.2002C32.3921 8.2002 32.6646 8.06445 32.8481 7.85059C32.9976 7.67578 33.0879 7.44824 33.0879 7.2002C33.0879 6.64746 32.6401 6.2002 32.0879 6.2002C31.5356 6.2002 31.0879 6.64746 31.0879 7.2002C31.0879 7.75293 31.5356 8.2002 32.0879 8.2002Z"
|
|
133
|
+
})]
|
|
134
|
+
}) : /*#__PURE__*/jsx(Svg, _objectSpread(_objectSpread({
|
|
135
|
+
width: "35",
|
|
136
|
+
height: "25",
|
|
137
|
+
viewBox: "0 0 35 25",
|
|
138
|
+
fill: "none"
|
|
139
|
+
}, styledProps), {}, {
|
|
140
|
+
children: /*#__PURE__*/jsx(Path, {
|
|
141
|
+
d: "M1 25V21.3088C1 17.4754 3.71928 14.1808 7.48316 13.4539L27.5168 9.58528C31.2807 8.85845 34 5.56381 34 1.7304V-2.98023e-08",
|
|
142
|
+
stroke: theme.colors.surface.border.gray.subtle,
|
|
143
|
+
strokeWidth: "2"
|
|
144
|
+
})
|
|
145
|
+
}));
|
|
146
|
+
};
|
|
147
|
+
var defaultMarker = /*#__PURE__*/jsx(StepItemIndicator, {
|
|
148
|
+
color: "neutral"
|
|
149
|
+
});
|
|
150
|
+
var StepLineVertical = function StepLineVertical(_ref6) {
|
|
151
|
+
var _ref6$marker = _ref6.marker,
|
|
152
|
+
marker = _ref6$marker === void 0 ? defaultMarker : _ref6$marker,
|
|
153
|
+
stepProgress = _ref6.stepProgress,
|
|
154
|
+
isIndented = _ref6.isIndented,
|
|
155
|
+
shouldShowStartBranch = _ref6.shouldShowStartBranch,
|
|
156
|
+
shouldShowEndBranch = _ref6.shouldShowEndBranch;
|
|
157
|
+
var _useStepGroup = useStepGroup(),
|
|
158
|
+
size = _useStepGroup.size;
|
|
159
|
+
var spacingTokens = getMarkerLineSpacings(size);
|
|
160
|
+
return /*#__PURE__*/jsxs(Box, {
|
|
161
|
+
position: "relative",
|
|
162
|
+
marginLeft: isIndented ? makeSize(spacingTokens.indentationWidth) : undefined,
|
|
163
|
+
display: "flex",
|
|
164
|
+
flexDirection: "column",
|
|
165
|
+
children: [/*#__PURE__*/jsx(StepStraightLineVertical, {
|
|
166
|
+
height: itemTopMargin,
|
|
167
|
+
isDotted: stepProgress === 'none' || stepProgress === 'end',
|
|
168
|
+
visibility: shouldShowStartBranch ? 'visible' : 'hidden'
|
|
169
|
+
}), /*#__PURE__*/jsx(Box, {
|
|
170
|
+
marginLeft: makeSize(-spacingTokens.markerLeftAlignment),
|
|
171
|
+
children: marker
|
|
172
|
+
}), /*#__PURE__*/jsx(StepStraightLineVertical, {
|
|
173
|
+
isDotted: stepProgress === 'none' || stepProgress === 'start',
|
|
174
|
+
visibility: shouldShowEndBranch ? 'visible' : 'hidden'
|
|
175
|
+
})]
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
var StepLineStart = function StepLineStart(_ref7) {
|
|
179
|
+
var _ref7$marker = _ref7.marker,
|
|
180
|
+
marker = _ref7$marker === void 0 ? defaultMarker : _ref7$marker,
|
|
181
|
+
stepProgress = _ref7.stepProgress,
|
|
182
|
+
shouldShowStartBranch = _ref7.shouldShowStartBranch,
|
|
183
|
+
shouldShowEndBranch = _ref7.shouldShowEndBranch;
|
|
184
|
+
var _useStepGroup2 = useStepGroup(),
|
|
185
|
+
size = _useStepGroup2.size;
|
|
186
|
+
var spacingTokens = getMarkerLineSpacings(size);
|
|
187
|
+
return /*#__PURE__*/jsxs(Box, {
|
|
188
|
+
position: "relative",
|
|
189
|
+
display: "flex",
|
|
190
|
+
flexDirection: "column",
|
|
191
|
+
children: [/*#__PURE__*/jsx(StepStraightLineVertical, {
|
|
192
|
+
height: itemTopMargin,
|
|
193
|
+
visibility: shouldShowStartBranch ? 'visible' : 'hidden',
|
|
194
|
+
isDotted: stepProgress === 'none' || stepProgress === 'end'
|
|
195
|
+
}), /*#__PURE__*/jsx(StepTopCurveVertical, {
|
|
196
|
+
visibility: shouldShowStartBranch ? 'visible' : 'hidden',
|
|
197
|
+
isDotted: stepProgress === 'none' || stepProgress === 'end'
|
|
198
|
+
}), /*#__PURE__*/jsx(Box, {
|
|
199
|
+
marginLeft: makeSize(-spacingTokens.markerLeftAlignment + spacingTokens.indentationWidth),
|
|
200
|
+
marginTop: makeSize(spacingTokens.markerTopAlignment),
|
|
201
|
+
children: marker
|
|
202
|
+
}), /*#__PURE__*/jsx(StepStraightLineVertical, {
|
|
203
|
+
visibility: shouldShowEndBranch ? 'visible' : 'hidden',
|
|
204
|
+
marginLeft: makeSize(spacingTokens.indentationWidth),
|
|
205
|
+
isDotted: stepProgress === 'none' || stepProgress === 'start'
|
|
206
|
+
})]
|
|
207
|
+
});
|
|
208
|
+
};
|
|
209
|
+
var StepLineEnd = function StepLineEnd(_ref8) {
|
|
210
|
+
var _ref8$marker = _ref8.marker,
|
|
211
|
+
marker = _ref8$marker === void 0 ? defaultMarker : _ref8$marker,
|
|
212
|
+
stepProgress = _ref8.stepProgress,
|
|
213
|
+
shouldShowStartBranch = _ref8.shouldShowStartBranch,
|
|
214
|
+
shouldShowEndBranch = _ref8.shouldShowEndBranch;
|
|
215
|
+
var _useStepGroup3 = useStepGroup(),
|
|
216
|
+
size = _useStepGroup3.size;
|
|
217
|
+
var spacingTokens = getMarkerLineSpacings(size);
|
|
218
|
+
return /*#__PURE__*/jsxs(Box, {
|
|
219
|
+
position: "relative",
|
|
220
|
+
display: "flex",
|
|
221
|
+
flexDirection: "column",
|
|
222
|
+
children: [/*#__PURE__*/jsx(StepStraightLineVertical, {
|
|
223
|
+
visibility: shouldShowStartBranch ? 'visible' : 'hidden',
|
|
224
|
+
marginLeft: makeSize(spacingTokens.indentationWidth),
|
|
225
|
+
height: itemTopMargin,
|
|
226
|
+
isDotted: stepProgress === 'none' || stepProgress === 'end'
|
|
227
|
+
}), /*#__PURE__*/jsx(Box, {
|
|
228
|
+
marginLeft: makeSize(-spacingTokens.markerLeftAlignment + spacingTokens.indentationWidth),
|
|
229
|
+
children: marker
|
|
230
|
+
}), /*#__PURE__*/jsx(StepStraightLineVertical, {
|
|
231
|
+
marginLeft: makeSize(spacingTokens.indentationWidth),
|
|
232
|
+
visibility: shouldShowEndBranch ? 'visible' : 'hidden',
|
|
233
|
+
isDotted: stepProgress === 'none' || stepProgress === 'start'
|
|
234
|
+
}), /*#__PURE__*/jsx(StepBottomCurveVertical, {
|
|
235
|
+
isDotted: stepProgress === 'none' || stepProgress === 'start',
|
|
236
|
+
visibility: shouldShowEndBranch ? 'visible' : 'hidden'
|
|
237
|
+
})]
|
|
238
|
+
});
|
|
239
|
+
};
|
|
240
|
+
var StepLineHorizontal = function StepLineHorizontal(_ref9) {
|
|
241
|
+
var _ref9$marker = _ref9.marker,
|
|
242
|
+
marker = _ref9$marker === void 0 ? defaultMarker : _ref9$marker,
|
|
243
|
+
stepProgress = _ref9.stepProgress,
|
|
244
|
+
shouldShowStartBranch = _ref9.shouldShowStartBranch,
|
|
245
|
+
shouldShowEndBranch = _ref9.shouldShowEndBranch;
|
|
246
|
+
return /*#__PURE__*/jsxs(Box, {
|
|
247
|
+
position: "relative",
|
|
248
|
+
display: "flex",
|
|
249
|
+
flexDirection: "row",
|
|
250
|
+
width: "100%",
|
|
251
|
+
justifyContent: "center",
|
|
252
|
+
alignItems: "center",
|
|
253
|
+
children: [/*#__PURE__*/jsx(StepStraightLineHorizontal, {
|
|
254
|
+
isDotted: stepProgress === 'none' || stepProgress === 'end',
|
|
255
|
+
visibility: shouldShowStartBranch ? 'visible' : 'hidden'
|
|
256
|
+
}), /*#__PURE__*/jsx(Box, {
|
|
257
|
+
children: marker
|
|
258
|
+
}), /*#__PURE__*/jsx(StepStraightLineHorizontal, {
|
|
259
|
+
isDotted: stepProgress === 'none' || stepProgress === 'start',
|
|
260
|
+
visibility: shouldShowEndBranch ? 'visible' : 'hidden'
|
|
261
|
+
})]
|
|
262
|
+
});
|
|
263
|
+
};
|
|
264
|
+
var StepLineSingleItem = function StepLineSingleItem(_ref10) {
|
|
265
|
+
var _ref10$marker = _ref10.marker,
|
|
266
|
+
marker = _ref10$marker === void 0 ? defaultMarker : _ref10$marker,
|
|
267
|
+
stepProgress = _ref10.stepProgress,
|
|
268
|
+
shouldShowEndBranch = _ref10.shouldShowEndBranch,
|
|
269
|
+
shouldShowStartBranch = _ref10.shouldShowStartBranch;
|
|
270
|
+
var _useStepGroup4 = useStepGroup(),
|
|
271
|
+
size = _useStepGroup4.size;
|
|
272
|
+
var spacingTokens = getMarkerLineSpacings(size);
|
|
273
|
+
return /*#__PURE__*/jsxs(Box, {
|
|
274
|
+
position: "relative",
|
|
275
|
+
display: "flex",
|
|
276
|
+
flexDirection: "column",
|
|
277
|
+
children: [/*#__PURE__*/jsx(StepStraightLineVertical, {
|
|
278
|
+
visibility: shouldShowStartBranch ? 'visible' : 'hidden',
|
|
279
|
+
height: itemTopMargin,
|
|
280
|
+
isDotted: stepProgress === 'none' || stepProgress === 'end'
|
|
281
|
+
}), /*#__PURE__*/jsx(StepTopCurveVertical, {
|
|
282
|
+
visibility: shouldShowStartBranch ? 'visible' : 'hidden',
|
|
283
|
+
isDotted: stepProgress === 'none' || stepProgress === 'end'
|
|
284
|
+
}), /*#__PURE__*/jsx(Box
|
|
285
|
+
// -12 (markerLeftAlginment) + 33 (indentationWidth)
|
|
286
|
+
, {
|
|
287
|
+
marginLeft: makeSize(-spacingTokens.markerLeftAlignment + spacingTokens.indentationWidth),
|
|
288
|
+
marginTop: makeSize(spacingTokens.markerTopAlignment),
|
|
289
|
+
children: marker
|
|
290
|
+
}), /*#__PURE__*/jsx(StepStraightLineVertical, {
|
|
291
|
+
marginLeft: makeSize(spacingTokens.indentationWidth),
|
|
292
|
+
visibility: shouldShowEndBranch ? 'visible' : 'hidden',
|
|
293
|
+
isDotted: stepProgress === 'none' || stepProgress === 'start'
|
|
294
|
+
}), /*#__PURE__*/jsx(StepBottomCurveVertical, {
|
|
295
|
+
visibility: shouldShowEndBranch ? 'visible' : 'hidden',
|
|
296
|
+
isDotted: stepProgress === 'none' || stepProgress === 'start'
|
|
297
|
+
})]
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
var StepLine = function StepLine(_ref11) {
|
|
301
|
+
var _ref11$stepType = _ref11.stepType,
|
|
302
|
+
stepType = _ref11$stepType === void 0 ? 'default' : _ref11$stepType,
|
|
303
|
+
shouldShowStartBranch = _ref11.shouldShowStartBranch,
|
|
304
|
+
shouldShowEndBranch = _ref11.shouldShowEndBranch,
|
|
305
|
+
marker = _ref11.marker,
|
|
306
|
+
stepProgress = _ref11.stepProgress;
|
|
307
|
+
var _useStepGroup5 = useStepGroup(),
|
|
308
|
+
orientation = _useStepGroup5.orientation;
|
|
309
|
+
var commonProps = {
|
|
310
|
+
shouldShowStartBranch: shouldShowStartBranch,
|
|
311
|
+
shouldShowEndBranch: shouldShowEndBranch,
|
|
312
|
+
marker: marker,
|
|
313
|
+
stepProgress: stepProgress
|
|
314
|
+
};
|
|
315
|
+
if (orientation === 'horizontal') {
|
|
316
|
+
return /*#__PURE__*/jsx(StepLineHorizontal, _objectSpread({}, commonProps));
|
|
317
|
+
}
|
|
318
|
+
if (stepType === 'start') {
|
|
319
|
+
return /*#__PURE__*/jsx(StepLineStart, _objectSpread({}, commonProps));
|
|
320
|
+
}
|
|
321
|
+
if (stepType === 'middle') {
|
|
322
|
+
return /*#__PURE__*/jsx(StepLineVertical, _objectSpread(_objectSpread({}, commonProps), {}, {
|
|
323
|
+
isIndented: true
|
|
324
|
+
}));
|
|
325
|
+
}
|
|
326
|
+
if (stepType === 'end') {
|
|
327
|
+
return /*#__PURE__*/jsx(StepLineEnd, _objectSpread({}, commonProps));
|
|
328
|
+
}
|
|
329
|
+
if (stepType === 'single-item') {
|
|
330
|
+
return /*#__PURE__*/jsx(StepLineSingleItem, _objectSpread({}, commonProps));
|
|
331
|
+
}
|
|
332
|
+
return /*#__PURE__*/jsx(StepLineVertical, _objectSpread({}, commonProps));
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
export { StepLine };
|
|
336
|
+
//# sourceMappingURL=StepLine.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepLine.web.js","sources":["../../../../../../src/components/StepGroup/StepLine.web.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/restrict-plus-operands */\nimport { encode } from 'universal-base64';\nimport type { StepItemProps } from './types';\nimport { StepItemIndicator } from './StepItemMarker';\nimport { useStepGroup } from './StepGroupContext';\nimport {\n getMarkerLineSpacings,\n itemTopMargin,\n markerLineDotSpacing,\n markerLineDotWidth,\n markerLineWidth,\n} from './tokens';\nimport { Box } from '~components/Box';\nimport type { BaseBoxProps } from '~components/Box/BaseBox';\nimport BaseBox from '~components/Box/BaseBox';\nimport type { StyledPropsBlade } from '~components/Box/styledProps';\nimport Svg, { Path } from '~components/Icons/_Svg';\nimport { makeSize, useTheme } from '~utils';\n\ntype StepLineSvgProps = {\n isDotted?: boolean;\n} & StyledPropsBlade;\n\nconst useDottedLineStyles = ({ isHorizontal }: { isHorizontal?: boolean } = {}): BaseBoxProps => {\n const { theme } = useTheme();\n\n const svgString = `<svg width=\"2\" height=\"2\" viewBox=\"0 0 2 2\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M0 1C0 0.447715 0.447715 0 1 0C1.55228 0 2 0.447715 2 1C2 1.55228 1.55228 2 1 2C0.447715 2 0 1.55228 0 1Z\"\n fill=\"${theme.colors.surface.border.gray.subtle}\"\n />\n </svg>\n `;\n\n const backgroundURL = `url(data:image/svg+xml;base64,${encode(svgString)})`;\n\n return {\n backgroundImage: backgroundURL,\n backgroundPosition: isHorizontal ? 'left' : 'top',\n backgroundSize: isHorizontal\n ? `${makeSize(markerLineDotWidth + markerLineDotSpacing)} ${makeSize(markerLineDotWidth)}`\n : `${makeSize(markerLineDotWidth)} ${makeSize(markerLineDotWidth + markerLineDotSpacing)} `,\n backgroundRepeat: isHorizontal ? 'round no-repeat' : 'no-repeat round',\n };\n};\n\nconst StepStraightLineHorizontal = ({\n isDotted,\n width,\n ...styledProps\n}: StepLineSvgProps & {\n width?: number;\n}): React.ReactElement => {\n const dottedStyles = useDottedLineStyles({ isHorizontal: true });\n const borderStyles: BaseBoxProps = isDotted\n ? dottedStyles\n : {\n borderTopWidth: 'thicker',\n borderTopColor: 'surface.border.gray.subtle',\n };\n\n return <BaseBox height={makeSize(markerLineWidth)} flex=\"1\" {...borderStyles} {...styledProps} />;\n};\n\nconst StepStraightLineVertical = ({\n height,\n isDotted,\n ...styledProps\n}: StepLineSvgProps & {\n height?: number;\n}): React.ReactElement => {\n const dottedStyles = useDottedLineStyles();\n const borderStyles: BaseBoxProps = isDotted\n ? dottedStyles\n : {\n borderLeftWidth: 'thicker',\n borderLeftColor: 'surface.border.gray.subtle',\n };\n return (\n <BaseBox\n height={height ? makeSize(height) : undefined}\n flex={height ? undefined : '1'}\n width={makeSize(markerLineWidth)}\n {...borderStyles}\n {...styledProps}\n />\n );\n};\n\nconst StepTopCurveVertical = ({\n isDotted,\n ...styledProps\n}: StepLineSvgProps): React.ReactElement => {\n const { theme } = useTheme();\n return isDotted ? (\n <Svg\n width=\"21\"\n height=\"15\"\n marginLeft=\"-1px\"\n viewBox=\"0 0 21 15\"\n fill={theme.colors.surface.border.gray.subtle}\n >\n <Path d=\"M1.90332 2.3916C2.20752 2.3916 2.47998 2.25586 2.66357 2.04199C2.81299 1.86719 2.90332 1.63965 2.90332 1.3916C2.90332 0.838867 2.45557 0.391602 1.90332 0.391602C1.35107 0.391602 0.90332 0.838867 0.90332 1.3916C0.90332 1.94434 1.35107 2.3916 1.90332 2.3916Z\" />\n <Path d=\"M9.85352 13.042C9.66992 13.2559 9.39746 13.3916 9.09326 13.3916C8.54102 13.3916 8.09326 12.9443 8.09326 12.3916C8.09326 11.8389 8.54102 11.3916 9.09326 11.3916C9.64551 11.3916 10.0933 11.8389 10.0933 12.3916C10.0933 12.6396 10.0029 12.8672 9.85352 13.042Z\" />\n <Path d=\"M14.498 14.3916C14.8022 14.3916 15.0747 14.2559 15.2583 14.042C15.4077 13.8672 15.498 13.6396 15.498 13.3916C15.498 12.8389 15.0503 12.3916 14.498 12.3916C13.9458 12.3916 13.498 12.8389 13.498 13.3916C13.498 13.9443 13.9458 14.3916 14.498 14.3916Z\" />\n <Path d=\"M19.9033 14.3916C20.2075 14.3916 20.48 14.2559 20.6636 14.042C20.813 13.8672 20.9033 13.6396 20.9033 13.3916C20.9033 12.8389 20.4556 12.3916 19.9033 12.3916C19.3511 12.3916 18.9033 12.8389 18.9033 13.3916C18.9033 13.9443 19.3511 14.3916 19.9033 14.3916Z\" />\n <Path d=\"M3.26318 6.08887C3.07959 6.30273 2.80713 6.43848 2.50293 6.43848C1.95068 6.43848 1.50293 5.99121 1.50293 5.43848C1.50293 4.88574 1.95068 4.43848 2.50293 4.43848C3.05518 4.43848 3.50293 4.88574 3.50293 5.43848C3.50293 5.68652 3.4126 5.91406 3.26318 6.08887Z\" />\n <Path d=\"M5.15137 10.6357C5.45557 10.6357 5.72803 10.5 5.91162 10.2861C6.06104 10.1113 6.15137 9.88379 6.15137 9.63574C6.15137 9.08301 5.70361 8.63574 5.15137 8.63574C4.59912 8.63574 4.15137 9.08301 4.15137 9.63574C4.15137 10.1885 4.59912 10.6357 5.15137 10.6357Z\" />\n </Svg>\n ) : (\n <Svg width=\"20\" height=\"14\" viewBox=\"0 0 20 14\" fill=\"none\" {...styledProps}>\n <Path\n d=\"M1 0V1C1 7.62742 6.37258 13 13 13H20\"\n stroke={theme.colors.surface.border.gray.subtle}\n strokeWidth=\"2\"\n />\n </Svg>\n );\n};\n\nconst StepBottomCurveVertical = ({\n isDotted,\n ...styledProps\n}: StepLineSvgProps): React.ReactElement => {\n const { theme } = useTheme();\n\n return isDotted ? (\n <Svg width=\"35\" height=\"26\" viewBox=\"0 0 35 26\" fill={theme.colors.surface.border.gray.subtle}>\n <Path d=\"M34.7603 1.93457C34.5767 2.14844 34.3042 2.28418 34 2.28418C33.4478 2.28418 33 1.83691 33 1.28418C33 0.731445 33.4478 0.28418 34 0.28418C34.5522 0.28418 35 0.731445 35 1.28418C35 1.53223 34.9097 1.75977 34.7603 1.93457Z\" />\n <Path d=\"M2 18.7803C2.3042 18.7803 2.57666 18.6445 2.76025 18.4307C2.90967 18.2559 3 18.0283 3 17.7803C3 17.2275 2.55225 16.7803 2 16.7803C1.44775 16.7803 1 17.2275 1 17.7803C1 18.333 1.44775 18.7803 2 18.7803Z\" />\n <Path d=\"M1 25.2842C1.3042 25.2842 1.57666 25.1484 1.76025 24.9346C1.90967 24.7598 2 24.5322 2 24.2842C2 23.7314 1.55225 23.2842 1 23.2842C0.447754 23.2842 0 23.7314 0 24.2842C0 24.8369 0.447754 25.2842 1 25.2842Z\" />\n <Path d=\"M7.30127 14.7842C7.60547 14.7842 7.87793 14.6484 8.06152 14.4346C8.21094 14.2598 8.30127 14.0322 8.30127 13.7842C8.30127 13.2314 7.85352 12.7842 7.30127 12.7842C6.74902 12.7842 6.30127 13.2314 6.30127 13.7842C6.30127 14.3369 6.74902 14.7842 7.30127 14.7842Z\" />\n <Path d=\"M14.7188 13.1338C14.5352 13.3477 14.2627 13.4834 13.9585 13.4834C13.4062 13.4834 12.9585 13.0361 12.9585 12.4834C12.9585 11.9307 13.4062 11.4834 13.9585 11.4834C14.5107 11.4834 14.9585 11.9307 14.9585 12.4834C14.9585 12.7314 14.8682 12.959 14.7188 13.1338Z\" />\n <Path d=\"M20.5698 12.2119C20.874 12.2119 21.1465 12.0762 21.3301 11.8623C21.4795 11.6875 21.5698 11.46 21.5698 11.2119C21.5698 10.6592 21.1221 10.2119 20.5698 10.2119C20.0176 10.2119 19.5698 10.6592 19.5698 11.2119C19.5698 11.7646 20.0176 12.2119 20.5698 12.2119Z\" />\n <Path d=\"M27.6211 10.6523C27.4375 10.8662 27.165 11.002 26.8608 11.002C26.3086 11.002 25.8608 10.5547 25.8608 10.002C25.8608 9.44922 26.3086 9.00195 26.8608 9.00195C27.4131 9.00195 27.8608 9.44922 27.8608 10.002C27.8608 10.25 27.7705 10.4775 27.6211 10.6523Z\" />\n <Path d=\"M32.0879 8.2002C32.3921 8.2002 32.6646 8.06445 32.8481 7.85059C32.9976 7.67578 33.0879 7.44824 33.0879 7.2002C33.0879 6.64746 32.6401 6.2002 32.0879 6.2002C31.5356 6.2002 31.0879 6.64746 31.0879 7.2002C31.0879 7.75293 31.5356 8.2002 32.0879 8.2002Z\" />\n </Svg>\n ) : (\n <Svg width=\"35\" height=\"25\" viewBox=\"0 0 35 25\" fill=\"none\" {...styledProps}>\n <Path\n d=\"M1 25V21.3088C1 17.4754 3.71928 14.1808 7.48316 13.4539L27.5168 9.58528C31.2807 8.85845 34 5.56381 34 1.7304V-2.98023e-08\"\n stroke={theme.colors.surface.border.gray.subtle}\n strokeWidth=\"2\"\n />\n </Svg>\n );\n};\n\ntype StepLineProps = {\n stepType: 'single-item' | 'start' | 'middle' | 'end' | 'default';\n shouldShowStartBranch: boolean;\n shouldShowEndBranch: boolean;\n} & Pick<StepItemProps, 'stepProgress' | 'marker'>;\n\ntype StepLineSubComponentProps = Pick<\n StepLineProps,\n 'shouldShowStartBranch' | 'shouldShowEndBranch' | 'marker' | 'stepProgress'\n>;\n\nconst defaultMarker = <StepItemIndicator color=\"neutral\" />;\n\nconst StepLineVertical = ({\n marker = defaultMarker,\n stepProgress,\n isIndented,\n shouldShowStartBranch,\n shouldShowEndBranch,\n}: StepLineSubComponentProps & {\n isIndented?: boolean;\n}): React.ReactElement => {\n const { size } = useStepGroup();\n const spacingTokens = getMarkerLineSpacings(size);\n\n return (\n <Box\n position=\"relative\"\n marginLeft={isIndented ? makeSize(spacingTokens.indentationWidth) : undefined}\n display=\"flex\"\n flexDirection=\"column\"\n >\n <StepStraightLineVertical\n height={itemTopMargin}\n isDotted={stepProgress === 'none' || stepProgress === 'end'}\n visibility={shouldShowStartBranch ? 'visible' : 'hidden'}\n />\n <Box marginLeft={makeSize(-spacingTokens.markerLeftAlignment)}>{marker}</Box>\n <StepStraightLineVertical\n isDotted={stepProgress === 'none' || stepProgress === 'start'}\n visibility={shouldShowEndBranch ? 'visible' : 'hidden'}\n />\n </Box>\n );\n};\n\nconst StepLineStart = ({\n marker = defaultMarker,\n stepProgress,\n shouldShowStartBranch,\n shouldShowEndBranch,\n}: StepLineSubComponentProps): React.ReactElement => {\n const { size } = useStepGroup();\n const spacingTokens = getMarkerLineSpacings(size);\n\n return (\n <Box position=\"relative\" display=\"flex\" flexDirection=\"column\">\n <StepStraightLineVertical\n height={itemTopMargin}\n visibility={shouldShowStartBranch ? 'visible' : 'hidden'}\n isDotted={stepProgress === 'none' || stepProgress === 'end'}\n />\n <StepTopCurveVertical\n visibility={shouldShowStartBranch ? 'visible' : 'hidden'}\n isDotted={stepProgress === 'none' || stepProgress === 'end'}\n />\n <Box\n marginLeft={makeSize(-spacingTokens.markerLeftAlignment + spacingTokens.indentationWidth)}\n marginTop={makeSize(spacingTokens.markerTopAlignment)}\n >\n {marker}\n </Box>\n <StepStraightLineVertical\n visibility={shouldShowEndBranch ? 'visible' : 'hidden'}\n marginLeft={makeSize(spacingTokens.indentationWidth)}\n isDotted={stepProgress === 'none' || stepProgress === 'start'}\n />\n </Box>\n );\n};\n\nconst StepLineEnd = ({\n marker = defaultMarker,\n stepProgress,\n shouldShowStartBranch,\n shouldShowEndBranch,\n}: StepLineSubComponentProps): React.ReactElement => {\n const { size } = useStepGroup();\n const spacingTokens = getMarkerLineSpacings(size);\n return (\n <Box position=\"relative\" display=\"flex\" flexDirection=\"column\">\n <StepStraightLineVertical\n visibility={shouldShowStartBranch ? 'visible' : 'hidden'}\n marginLeft={makeSize(spacingTokens.indentationWidth)}\n height={itemTopMargin}\n isDotted={stepProgress === 'none' || stepProgress === 'end'}\n />\n <Box\n marginLeft={makeSize(-spacingTokens.markerLeftAlignment + spacingTokens.indentationWidth)}\n >\n {marker}\n </Box>\n <StepStraightLineVertical\n marginLeft={makeSize(spacingTokens.indentationWidth)}\n visibility={shouldShowEndBranch ? 'visible' : 'hidden'}\n isDotted={stepProgress === 'none' || stepProgress === 'start'}\n />\n <StepBottomCurveVertical\n isDotted={stepProgress === 'none' || stepProgress === 'start'}\n visibility={shouldShowEndBranch ? 'visible' : 'hidden'}\n />\n </Box>\n );\n};\n\nconst StepLineHorizontal = ({\n marker = defaultMarker,\n stepProgress,\n shouldShowStartBranch,\n shouldShowEndBranch,\n}: StepLineSubComponentProps): React.ReactElement => {\n return (\n <Box\n position=\"relative\"\n display=\"flex\"\n flexDirection=\"row\"\n width=\"100%\"\n justifyContent=\"center\"\n alignItems=\"center\"\n >\n <StepStraightLineHorizontal\n isDotted={stepProgress === 'none' || stepProgress === 'end'}\n visibility={shouldShowStartBranch ? 'visible' : 'hidden'}\n />\n <Box>{marker}</Box>\n <StepStraightLineHorizontal\n isDotted={stepProgress === 'none' || stepProgress === 'start'}\n visibility={shouldShowEndBranch ? 'visible' : 'hidden'}\n />\n </Box>\n );\n};\n\nconst StepLineSingleItem = ({\n marker = defaultMarker,\n stepProgress,\n shouldShowEndBranch,\n shouldShowStartBranch,\n}: StepLineSubComponentProps): React.ReactElement => {\n const { size } = useStepGroup();\n const spacingTokens = getMarkerLineSpacings(size);\n return (\n <Box position=\"relative\" display=\"flex\" flexDirection=\"column\">\n <StepStraightLineVertical\n visibility={shouldShowStartBranch ? 'visible' : 'hidden'}\n height={itemTopMargin}\n isDotted={stepProgress === 'none' || stepProgress === 'end'}\n />\n <StepTopCurveVertical\n visibility={shouldShowStartBranch ? 'visible' : 'hidden'}\n isDotted={stepProgress === 'none' || stepProgress === 'end'}\n />\n <Box\n // -12 (markerLeftAlginment) + 33 (indentationWidth)\n marginLeft={makeSize(-spacingTokens.markerLeftAlignment + spacingTokens.indentationWidth)}\n marginTop={makeSize(spacingTokens.markerTopAlignment)}\n >\n {marker}\n </Box>\n <StepStraightLineVertical\n marginLeft={makeSize(spacingTokens.indentationWidth)}\n visibility={shouldShowEndBranch ? 'visible' : 'hidden'}\n isDotted={stepProgress === 'none' || stepProgress === 'start'}\n />\n <StepBottomCurveVertical\n visibility={shouldShowEndBranch ? 'visible' : 'hidden'}\n isDotted={stepProgress === 'none' || stepProgress === 'start'}\n />\n </Box>\n );\n};\n\nconst StepLine = ({\n stepType = 'default',\n shouldShowStartBranch,\n shouldShowEndBranch,\n marker,\n stepProgress,\n}: StepLineProps): React.ReactElement => {\n const { orientation } = useStepGroup();\n const commonProps = {\n shouldShowStartBranch,\n shouldShowEndBranch,\n marker,\n stepProgress,\n };\n\n if (orientation === 'horizontal') {\n return <StepLineHorizontal {...commonProps} />;\n }\n\n if (stepType === 'start') {\n return <StepLineStart {...commonProps} />;\n }\n\n if (stepType === 'middle') {\n return <StepLineVertical {...commonProps} isIndented={true} />;\n }\n\n if (stepType === 'end') {\n return <StepLineEnd {...commonProps} />;\n }\n\n if (stepType === 'single-item') {\n return <StepLineSingleItem {...commonProps} />;\n }\n\n return <StepLineVertical {...commonProps} />;\n};\n\nexport type { StepLineProps };\nexport { StepLine };\n"],"names":["useDottedLineStyles","_ref","arguments","length","undefined","isHorizontal","_useTheme","useTheme","theme","svgString","concat","colors","surface","border","gray","subtle","backgroundURL","encode","backgroundImage","backgroundPosition","backgroundSize","makeSize","markerLineDotWidth","markerLineDotSpacing","backgroundRepeat","StepStraightLineHorizontal","_ref2","isDotted","width","styledProps","_objectWithoutProperties","_excluded","dottedStyles","borderStyles","borderTopWidth","borderTopColor","_jsx","BaseBox","_objectSpread","height","markerLineWidth","flex","StepStraightLineVertical","_ref3","_excluded2","borderLeftWidth","borderLeftColor","StepTopCurveVertical","_ref4","_excluded3","_useTheme2","_jsxs","Svg","marginLeft","viewBox","fill","children","Path","d","stroke","strokeWidth","StepBottomCurveVertical","_ref5","_excluded4","_useTheme3","defaultMarker","StepItemIndicator","color","StepLineVertical","_ref6","_ref6$marker","marker","stepProgress","isIndented","shouldShowStartBranch","shouldShowEndBranch","_useStepGroup","useStepGroup","size","spacingTokens","getMarkerLineSpacings","Box","position","indentationWidth","display","flexDirection","itemTopMargin","visibility","markerLeftAlignment","StepLineStart","_ref7","_ref7$marker","_useStepGroup2","marginTop","markerTopAlignment","StepLineEnd","_ref8","_ref8$marker","_useStepGroup3","StepLineHorizontal","_ref9","_ref9$marker","justifyContent","alignItems","StepLineSingleItem","_ref10","_ref10$marker","_useStepGroup4","StepLine","_ref11","_ref11$stepType","stepType","_useStepGroup5","orientation","commonProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAuBA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,GAAwE;AAAA,EAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAArB,EAAE;IAA/CG,YAAY,GAAAJ,IAAA,CAA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AAAzD,aAAA,CAAK4E,EAAAA,EAAAA,WAAW,CAAG,CAAC,CAAA;AACzC,GAAA;EAEA,IAAIH,QAAQ,KAAK,aAAa,EAAE;IAC9B,oBAAO3E,GAAA,CAACoE,kBAAkB,EAAAlE,aAAA,CAAK4E,EAAAA,EAAAA,WAAW,CAAG,CAAC,CAAA;AAChD,GAAA;EAEA,oBAAO9E,GAAA,CAACgC,gBAAgB,EAAA9B,aAAA,CAAK4E,EAAAA,EAAAA,WAAW,CAAG,CAAC,CAAA;AAC9C;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentIds.js","sources":["../../../../../../src/components/StepGroup/componentIds.ts"],"sourcesContent":["export const componentIds = {\n StepGroup: 'StepGroup',\n StepItem: 'StepItem',\n};\n"],"names":["componentIds","StepGroup","StepItem"],"mappings":"AAAO,IAAMA,YAAY,GAAG;AAC1BC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,QAAQ,EAAE,UAAA;AACZ;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import '../../tokens/global/index.js';
|
|
3
|
+
import { size } from '../../tokens/global/size.js';
|
|
4
|
+
|
|
5
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
|
+
var markerLineDotWidth = size['2'];
|
|
8
|
+
var markerLineDotSpacing = size['4'];
|
|
9
|
+
var markerLineWidth = size['2'];
|
|
10
|
+
var itemTopMargin = size['16'];
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Returns the tokens that are related to marker line alignment and spacing
|
|
14
|
+
*/
|
|
15
|
+
var getMarkerLineSpacings = function getMarkerLineSpacings(size$1) {
|
|
16
|
+
var indentationWidth = size['33'];
|
|
17
|
+
var LINE_SPACINGS = {
|
|
18
|
+
large: {
|
|
19
|
+
markerBackgroundSize: size['24'],
|
|
20
|
+
markerMargin: size['2']
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
|
22
|
+
},
|
|
23
|
+
medium: {
|
|
24
|
+
markerBackgroundSize: size['20'],
|
|
25
|
+
markerMargin: size['2']
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
var markerLeftAlignment =
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
|
30
|
+
(LINE_SPACINGS[size$1].markerBackgroundSize + LINE_SPACINGS[size$1].markerMargin) / 2;
|
|
31
|
+
var markerTopAlignment = -1 * (
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
|
33
|
+
LINE_SPACINGS[size$1].markerBackgroundSize + LINE_SPACINGS[size$1].markerMargin * 2 + markerLineWidth) / 2;
|
|
34
|
+
return _objectSpread(_objectSpread({}, LINE_SPACINGS[size$1]), {}, {
|
|
35
|
+
markerLeftAlignment: markerLeftAlignment,
|
|
36
|
+
markerTopAlignment: markerTopAlignment,
|
|
37
|
+
indentationWidth: indentationWidth
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
var stepItemHeaderTokens = {
|
|
41
|
+
medium: {
|
|
42
|
+
title: 'medium',
|
|
43
|
+
description: 'small',
|
|
44
|
+
timestamp: 'small'
|
|
45
|
+
},
|
|
46
|
+
large: {
|
|
47
|
+
title: 'large',
|
|
48
|
+
description: 'medium',
|
|
49
|
+
timestamp: 'medium'
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
var iconSizeTokens = {
|
|
53
|
+
medium: 'small',
|
|
54
|
+
large: 'medium'
|
|
55
|
+
};
|
|
56
|
+
var itemLineGap = {
|
|
57
|
+
medium: 'spacing.2',
|
|
58
|
+
large: 'spacing.3'
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export { getMarkerLineSpacings, iconSizeTokens, itemLineGap, itemTopMargin, markerLineDotSpacing, markerLineDotWidth, markerLineWidth, stepItemHeaderTokens };
|
|
62
|
+
//# sourceMappingURL=tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.js","sources":["../../../../../../src/components/StepGroup/tokens.ts"],"sourcesContent":["import type { StepGroupProps } from './types';\nimport { size as sizeTokens } from '~tokens/global';\n\nconst markerLineDotWidth = sizeTokens['2'];\nconst markerLineDotSpacing = sizeTokens['4'];\nconst markerLineWidth = sizeTokens['2'];\nconst itemTopMargin = sizeTokens['16'];\n\n/**\n * Returns the tokens that are related to marker line alignment and spacing\n */\nconst getMarkerLineSpacings = (\n size: NonNullable<StepGroupProps['size']>,\n): {\n markerLeftAlignment: number;\n markerTopAlignment: number;\n markerBackgroundSize: number;\n markerMargin: number;\n indentationWidth: number;\n} => {\n const indentationWidth = sizeTokens['33'];\n\n const LINE_SPACINGS = {\n large: {\n markerBackgroundSize: sizeTokens['24'],\n markerMargin: sizeTokens['2'],\n // eslint-disable-next-line @typescript-eslint/restrict-plus-operands\n },\n medium: {\n markerBackgroundSize: sizeTokens['20'],\n markerMargin: sizeTokens['2'],\n },\n } as const;\n\n const markerLeftAlignment =\n // eslint-disable-next-line @typescript-eslint/restrict-plus-operands\n (LINE_SPACINGS[size].markerBackgroundSize + LINE_SPACINGS[size].markerMargin) / 2;\n\n const markerTopAlignment =\n (-1 *\n // eslint-disable-next-line @typescript-eslint/restrict-plus-operands\n (LINE_SPACINGS[size].markerBackgroundSize +\n LINE_SPACINGS[size].markerMargin * 2 +\n markerLineWidth)) /\n 2;\n return {\n ...LINE_SPACINGS[size],\n markerLeftAlignment,\n markerTopAlignment,\n indentationWidth,\n };\n};\n\nconst stepItemHeaderTokens = {\n medium: {\n title: 'medium',\n description: 'small',\n timestamp: 'small',\n },\n large: {\n title: 'large',\n description: 'medium',\n timestamp: 'medium',\n },\n} as const;\n\nconst iconSizeTokens = {\n medium: 'small',\n large: 'medium',\n} as const;\n\nconst itemLineGap = {\n medium: 'spacing.2',\n large: 'spacing.3',\n} as const;\n\nexport {\n getMarkerLineSpacings,\n stepItemHeaderTokens,\n iconSizeTokens,\n itemLineGap,\n markerLineDotWidth,\n markerLineDotSpacing,\n markerLineWidth,\n itemTopMargin,\n};\n"],"names":["markerLineDotWidth","sizeTokens","markerLineDotSpacing","markerLineWidth","itemTopMargin","getMarkerLineSpacings","size","indentationWidth","LINE_SPACINGS","large","markerBackgroundSize","markerMargin","medium","markerLeftAlignment","markerTopAlignment","_objectSpread","stepItemHeaderTokens","title","description","timestamp","iconSizeTokens","itemLineGap"],"mappings":";;;;;;AAGA,IAAMA,kBAAkB,GAAGC,IAAU,CAAC,GAAG,EAAC;AAC1C,IAAMC,oBAAoB,GAAGD,IAAU,CAAC,GAAG,EAAC;AAC5C,IAAME,eAAe,GAAGF,IAAU,CAAC,GAAG,EAAC;AACvC,IAAMG,aAAa,GAAGH,IAAU,CAAC,IAAI,EAAC;;AAEtC;AACA;AACA;AACA,IAAMI,qBAAqB,GAAG,SAAxBA,qBAAqBA,CACzBC,MAAyC,EAOtC;AACH,EAAA,IAAMC,gBAAgB,GAAGN,IAAU,CAAC,IAAI,CAAC,CAAA;AAEzC,EAAA,IAAMO,aAAa,GAAG;AACpBC,IAAAA,KAAK,EAAE;AACLC,MAAAA,oBAAoB,EAAET,IAAU,CAAC,IAAI,CAAC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