@mrshmllw/smores-react 16.1.2 → 16.2.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.
@@ -0,0 +1,38 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { MarginProps } from '../utils/space';
3
+ import { ColorTypes } from '../ThemeProvider/utils/colourMap';
4
+ type PromoCardButtonVariant = 'secondary' | 'fallbackStyle' | 'tertiary';
5
+ export type PromoCardAction = {
6
+ label: string;
7
+ onClick: () => void;
8
+ variant?: PromoCardButtonVariant;
9
+ disabled?: boolean;
10
+ loading?: boolean;
11
+ };
12
+ export type PromoCardProps = {
13
+ title: string;
14
+ body?: string;
15
+ imagePosition?: 'left' | 'right';
16
+ /** Card background, as a theme colour. Defaults to `custard`. */
17
+ backgroundColor?: ColorTypes;
18
+ illustration?: ReactNode;
19
+ primaryButton?: PromoCardAction;
20
+ secondaryButton?: PromoCardAction;
21
+ className?: string;
22
+ } & MarginProps;
23
+ /**
24
+ * A small promotional card following the Figma "PromoCardSmall" design
25
+ * (S-mores components, node 33734-3198).
26
+ *
27
+ * The card is a horizontal layout containing an optional illustration slot
28
+ * (positioned left or right via `imagePosition`), a heading + body text
29
+ * group, and an optional pair of CTA buttons whose variant, disabled, and
30
+ * loading states are fully controlled by the consumer.
31
+ *
32
+ * **Scope:** this component implements the *small* iteration of PromoCard
33
+ * only. A larger variant (if required) would need to be added separately.
34
+ *
35
+ * @see https://www.figma.com/design/FqSaizGOyOzXFZNmZ4X0LGMn/%F0%9F%A7%B1-S-mores-components?node-id=33734-3198
36
+ */
37
+ export declare const PromoCard: FC<PromoCardProps>;
38
+ export {};
@@ -0,0 +1,58 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import styled from 'styled-components';
3
+ import { resolveToThemeColor, } from '../ThemeProvider/utils/colourMap';
4
+ import { Box } from '../Box';
5
+ import { Button } from '../Button';
6
+ import { Text } from '../Text';
7
+ const toButtonProps = ({ variant, disabled, loading }, defaultVariant) => {
8
+ const resolved = variant ?? defaultVariant;
9
+ return {
10
+ disabled,
11
+ loading,
12
+ secondary: resolved === 'secondary',
13
+ fallbackStyle: resolved === 'fallbackStyle',
14
+ textBtn: resolved === 'tertiary',
15
+ };
16
+ };
17
+ /**
18
+ * A small promotional card following the Figma "PromoCardSmall" design
19
+ * (S-mores components, node 33734-3198).
20
+ *
21
+ * The card is a horizontal layout containing an optional illustration slot
22
+ * (positioned left or right via `imagePosition`), a heading + body text
23
+ * group, and an optional pair of CTA buttons whose variant, disabled, and
24
+ * loading states are fully controlled by the consumer.
25
+ *
26
+ * **Scope:** this component implements the *small* iteration of PromoCard
27
+ * only. A larger variant (if required) would need to be added separately.
28
+ *
29
+ * @see https://www.figma.com/design/FqSaizGOyOzXFZNmZ4X0LGMn/%F0%9F%A7%B1-S-mores-components?node-id=33734-3198
30
+ */
31
+ export const PromoCard = ({ title, body, imagePosition = 'left', backgroundColor = 'custard', illustration, primaryButton, secondaryButton, className, ...marginProps }) => (_jsxs(Container, { "$imagePosition": imagePosition, "$backgroundColor": backgroundColor, className: className, ...marginProps, children: [illustration && _jsx(IllustrationWrapper, { children: illustration }), _jsxs(Content, { children: [_jsxs(Box, { flex: true, direction: "column", gap: "space.050", children: [_jsx(Text, { typo: "heading-small", children: title }), body && _jsx(Text, { typo: "body-regular", children: body })] }), (primaryButton ?? secondaryButton) && (_jsxs(Box, { flex: true, direction: "row", gap: "space.100", children: [primaryButton && (_jsx(Button, { smallButton: true, handleClick: primaryButton.onClick, ...toButtonProps(primaryButton, 'secondary'), children: primaryButton.label })), secondaryButton && (_jsx(Button, { smallButton: true, handleClick: secondaryButton.onClick, ...toButtonProps(secondaryButton, 'fallbackStyle'), children: secondaryButton.label }))] }))] })] }));
32
+ PromoCard.displayName = 'PromoCard';
33
+ const Container = styled(Box) `
34
+ display: flex;
35
+ flex-direction: ${({ $imagePosition }) => $imagePosition === 'right' ? 'row-reverse' : 'row'};
36
+ align-items: flex-end;
37
+ gap: ${({ theme }) => theme.space[200]};
38
+ padding: ${({ theme }) => theme.space[200]};
39
+ background: ${({ theme, $backgroundColor }) => resolveToThemeColor($backgroundColor, theme)};
40
+ border-radius: 24px;
41
+ box-sizing: border-box;
42
+ `;
43
+ const Content = styled(Box) `
44
+ display: flex;
45
+ flex-direction: column;
46
+ gap: ${({ theme }) => theme.space[150]};
47
+ flex: 1;
48
+ overflow: hidden;
49
+ `;
50
+ const IllustrationWrapper = styled(Box) `
51
+ flex-shrink: 0;
52
+ width: 80px;
53
+ height: 80px;
54
+ display: flex;
55
+ align-items: center;
56
+ justify-content: center;
57
+ `;
58
+ //# sourceMappingURL=PromoCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PromoCard.js","sourceRoot":"","sources":["../../src/PromoCard/PromoCard.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAItC,OAAO,EAEL,mBAAmB,GACpB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAwB9B,MAAM,aAAa,GAAG,CACpB,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAmB,EAC/C,cAAsC,EACtC,EAAE;IACF,MAAM,QAAQ,GAAG,OAAO,IAAI,cAAc,CAAA;IAC1C,OAAO;QACL,QAAQ;QACR,OAAO;QACP,SAAS,EAAE,QAAQ,KAAK,WAAW;QACnC,aAAa,EAAE,QAAQ,KAAK,eAAe;QAC3C,OAAO,EAAE,QAAQ,KAAK,UAAU;KACjC,CAAA;AACH,CAAC,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,SAAS,GAAuB,CAAC,EAC5C,KAAK,EACL,IAAI,EACJ,aAAa,GAAG,MAAM,EACtB,eAAe,GAAG,SAAS,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AAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;gBAC5B,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAC5C,mBAAmB,CAAC,gBAAgB,EAAE,KAAK,CAAC;;;CAG/C,CAAA;AAED,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;;;SAGlB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;;;CAGvC,CAAA;AAED,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;;;;;;;CAOtC,CAAA","sourcesContent":["import { FC, ReactNode } from 'react'\nimport styled from 'styled-components'\n\nimport { MarginProps } from '../utils/space'\nimport { TransientProps } from '../utils/utilTypes'\nimport {\n ColorTypes,\n resolveToThemeColor,\n} from '../ThemeProvider/utils/colourMap'\nimport { Box } from '../Box'\nimport { Button } from '../Button'\nimport { Text } from '../Text'\n\ntype PromoCardButtonVariant = 'secondary' | 'fallbackStyle' | 'tertiary'\n\nexport type PromoCardAction = {\n label: string\n onClick: () => void\n variant?: PromoCardButtonVariant\n disabled?: boolean\n loading?: boolean\n}\n\nexport type PromoCardProps = {\n title: string\n body?: string\n imagePosition?: 'left' | 'right'\n /** Card background, as a theme colour. Defaults to `custard`. */\n backgroundColor?: ColorTypes\n illustration?: ReactNode\n primaryButton?: PromoCardAction\n secondaryButton?: PromoCardAction\n className?: string\n} & MarginProps\n\nconst toButtonProps = (\n { variant, disabled, loading }: PromoCardAction,\n defaultVariant: PromoCardButtonVariant,\n) => {\n const resolved = variant ?? defaultVariant\n return {\n disabled,\n loading,\n secondary: resolved === 'secondary',\n fallbackStyle: resolved === 'fallbackStyle',\n textBtn: resolved === 'tertiary',\n }\n}\n\n/**\n * A small promotional card following the Figma \"PromoCardSmall\" design\n * (S-mores components, node 33734-3198).\n *\n * The card is a horizontal layout containing an optional illustration slot\n * (positioned left or right via `imagePosition`), a heading + body text\n * group, and an optional pair of CTA buttons whose variant, disabled, and\n * loading states are fully controlled by the consumer.\n *\n * **Scope:** this component implements the *small* iteration of PromoCard\n * only. A larger variant (if required) would need to be added separately.\n *\n * @see https://www.figma.com/design/FqSaizGOyOzXFZNmZ4X0LGMn/%F0%9F%A7%B1-S-mores-components?node-id=33734-3198\n */\nexport const PromoCard: FC<PromoCardProps> = ({\n title,\n body,\n imagePosition = 'left',\n backgroundColor = 'custard',\n illustration,\n primaryButton,\n secondaryButton,\n className,\n ...marginProps\n}) => (\n <Container\n $imagePosition={imagePosition}\n $backgroundColor={backgroundColor}\n className={className}\n {...marginProps}\n >\n {illustration && <IllustrationWrapper>{illustration}</IllustrationWrapper>}\n <Content>\n <Box flex direction=\"column\" gap=\"space.050\">\n <Text typo=\"heading-small\">{title}</Text>\n {body && <Text typo=\"body-regular\">{body}</Text>}\n </Box>\n {(primaryButton ?? secondaryButton) && (\n <Box flex direction=\"row\" gap=\"space.100\">\n {primaryButton && (\n <Button\n smallButton\n handleClick={primaryButton.onClick}\n {...toButtonProps(primaryButton, 'secondary')}\n >\n {primaryButton.label}\n </Button>\n )}\n {secondaryButton && (\n <Button\n smallButton\n handleClick={secondaryButton.onClick}\n {...toButtonProps(secondaryButton, 'fallbackStyle')}\n >\n {secondaryButton.label}\n </Button>\n )}\n </Box>\n )}\n </Content>\n </Container>\n)\n\nPromoCard.displayName = 'PromoCard'\n\ntype IContainer = TransientProps<\n Required<Pick<PromoCardProps, 'imagePosition' | 'backgroundColor'>>\n>\n\nconst Container = styled(Box)<IContainer>`\n display: flex;\n flex-direction: ${({ $imagePosition }) =>\n $imagePosition === 'right' ? 'row-reverse' : 'row'};\n align-items: flex-end;\n gap: ${({ theme }) => theme.space[200]};\n padding: ${({ theme }) => theme.space[200]};\n background: ${({ theme, $backgroundColor }) =>\n resolveToThemeColor($backgroundColor, theme)};\n border-radius: 24px;\n box-sizing: border-box;\n`\n\nconst Content = styled(Box)`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.space[150]};\n flex: 1;\n overflow: hidden;\n`\n\nconst IllustrationWrapper = styled(Box)`\n flex-shrink: 0;\n width: 80px;\n height: 80px;\n display: flex;\n align-items: center;\n justify-content: center;\n`\n"]}
@@ -0,0 +1,2 @@
1
+ export { PromoCard } from './PromoCard';
2
+ export type { PromoCardProps, PromoCardAction } from './PromoCard';
@@ -0,0 +1,2 @@
1
+ export { PromoCard } from './PromoCard';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/PromoCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA","sourcesContent":["export { PromoCard } from './PromoCard'\nexport type { PromoCardProps, PromoCardAction } from './PromoCard'\n"]}
package/dist/index.d.ts CHANGED
@@ -29,6 +29,7 @@ export * from './Modal';
29
29
  export * from './NumberInput';
30
30
  export * from './Pagination';
31
31
  export * from './ProgressIndicator';
32
+ export * from './PromoCard';
32
33
  export * from './RadioGroup';
33
34
  export * from './RichText';
34
35
  export * from './RichTextEditor';
package/dist/index.js CHANGED
@@ -29,6 +29,7 @@ export * from './Modal';
29
29
  export * from './NumberInput';
30
30
  export * from './Pagination';
31
31
  export * from './ProgressIndicator';
32
+ export * from './PromoCard';
32
33
  export * from './RadioGroup';
33
34
  export * from './RichText';
34
35
  export * from './RichTextEditor';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB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export * from './Accordion'\nexport * from './ActionDropdown'\nexport * from './Badge'\nexport * from './Alert'\nexport * from './BadgeList'\nexport * from './Banner'\nexport * from './Box'\nexport * from './Button'\nexport * from './Card'\nexport * from './CheckBox'\nexport * from './CheckBoxGroup'\nexport * from './Chip'\nexport * from './CurrencyInput'\nexport * from './Datepicker'\nexport * from './Divider'\nexport * from './Dropdown'\nexport * from './fields/Field'\nexport * from './fields/Fieldset'\nexport * from './fontStyle'\nexport * from './hooks'\nexport * from './Icon'\nexport * from './IconStrict'\nexport * from './IconWrapper'\nexport * from './LabelledText'\nexport * from './Link'\nexport * from './Loader'\nexport * from './Logo'\nexport * from './Modal'\nexport * from './NumberInput'\nexport * from './Pagination'\nexport * from './ProgressIndicator'\nexport * from './RadioGroup'\nexport * from './RichText'\nexport * from './RichTextEditor'\nexport * from './Row'\nexport * from './SearchInput'\nexport * from './SegmentedControl'\nexport * from './SliderInput'\nexport * from './Snackbar'\nexport * from './SupportMessage'\nexport * from './Table'\nexport * from './Tag'\nexport * from './Text'\nexport * from './Textarea'\nexport * from './TextDateOfBirthInput'\nexport * from './TextInput'\nexport * from './theme'\nexport * from './Toggle'\nexport * from './Tooltip'\nexport * from './utils/dateOfBirth/dateOfBirthValidator'\nexport * from './utils/dateOfBirth/dateOfBirthValidator.utils'\nexport * from './utils/dateOfBirth/schema'\nexport * from './utils/utilTypes'\nexport * from './utils/space'\nexport * from './ThemeProvider'\nexport * from './styled'\nexport * from './sharedStyles/shared.styles'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA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cesContent":["export * from './Accordion'\nexport * from './ActionDropdown'\nexport * from './Badge'\nexport * from './Alert'\nexport * from './BadgeList'\nexport * from './Banner'\nexport * from './Box'\nexport * from './Button'\nexport * from './Card'\nexport * from './CheckBox'\nexport * from './CheckBoxGroup'\nexport * from './Chip'\nexport * from './CurrencyInput'\nexport * from './Datepicker'\nexport * from './Divider'\nexport * from './Dropdown'\nexport * from './fields/Field'\nexport * from './fields/Fieldset'\nexport * from './fontStyle'\nexport * from './hooks'\nexport * from './Icon'\nexport * from './IconStrict'\nexport * from './IconWrapper'\nexport * from './LabelledText'\nexport * from './Link'\nexport * from './Loader'\nexport * from './Logo'\nexport * from './Modal'\nexport * from './NumberInput'\nexport * from './Pagination'\nexport * from './ProgressIndicator'\nexport * from './PromoCard'\nexport * from './RadioGroup'\nexport * from './RichText'\nexport * from './RichTextEditor'\nexport * from './Row'\nexport * from './SearchInput'\nexport * from './SegmentedControl'\nexport * from './SliderInput'\nexport * from './Snackbar'\nexport * from './SupportMessage'\nexport * from './Table'\nexport * from './Tag'\nexport * from './Text'\nexport * from './Textarea'\nexport * from './TextDateOfBirthInput'\nexport * from './TextInput'\nexport * from './theme'\nexport * from './Toggle'\nexport * from './Tooltip'\nexport * from './utils/dateOfBirth/dateOfBirthValidator'\nexport * from './utils/dateOfBirth/dateOfBirthValidator.utils'\nexport * from './utils/dateOfBirth/schema'\nexport * from './utils/utilTypes'\nexport * from './utils/space'\nexport * from './ThemeProvider'\nexport * from './styled'\nexport * from './sharedStyles/shared.styles'\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrshmllw/smores-react",
3
- "version": "16.1.2",
3
+ "version": "16.2.0",
4
4
  "description": "Collection of React components used by Marshmallow Technology",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",
@@ -65,7 +65,7 @@
65
65
  "polished": "^4.3.1"
66
66
  },
67
67
  "devDependencies": {
68
- "@commitlint/cli": "^20.5.3",
68
+ "@commitlint/cli": "^21.2.1",
69
69
  "@mrshmllw/campfire": "^6.1.3",
70
70
  "@snyk/protect": "^1.1306.0",
71
71
  "@storybook/addon-a11y": "^10.5.0",