@mrshmllw/smores-react 10.7.0 → 10.7.1

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/README.md CHANGED
@@ -130,7 +130,6 @@ yalc remove --all
130
130
  * [ActionDropdown](https://github.com/marshmallow-insurance/smores-react/tree/master/src/ActionDropdown)
131
131
  * [Banner](https://github.com/marshmallow-insurance/smores-react/tree/master/src/Banner)
132
132
  * [Box](https://github.com/marshmallow-insurance/smores-react/tree/master/src/Box)
133
- * [BrandCard](https://github.com/marshmallow-insurance/smores-react/tree/master/src/BrandCard)
134
133
  * [Button](https://github.com/marshmallow-insurance/smores-react/tree/master/src/Button)
135
134
  * [Card](https://github.com/marshmallow-insurance/smores-react/tree/master/src/Card)
136
135
  * [CheckBox](https://github.com/marshmallow-insurance/smores-react/tree/master/src/CheckBox)
@@ -139,7 +138,6 @@ yalc remove --all
139
138
  * [Datepicker](https://github.com/marshmallow-insurance/smores-react/tree/master/src/Datepicker)
140
139
  * [Divider](https://github.com/marshmallow-insurance/smores-react/tree/master/src/Divider)
141
140
  * [Dropdown](https://github.com/marshmallow-insurance/smores-react/tree/master/src/Dropdown)
142
- * [Emoji](https://github.com/marshmallow-insurance/smores-react/tree/master/src/Emoji)
143
141
  * [Icon](https://github.com/marshmallow-insurance/smores-react/tree/master/src/Icon)
144
142
  * [IconStrict](https://github.com/marshmallow-insurance/smores-react/tree/master/src/IconStrict)
145
143
  * [IconWrapper](https://github.com/marshmallow-insurance/smores-react/tree/master/src/IconWrapper)
@@ -11,7 +11,7 @@ export type RadioGroupProps<Value extends BaseValueType = BaseValueType> = {
11
11
  value: Value;
12
12
  bodyCopy?: string;
13
13
  }>;
14
- onChange: (value: Value) => void;
14
+ onChange: (value: BaseValueType) => void;
15
15
  onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
16
16
  value: Value;
17
17
  displayType?: DisplayType;
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.js","sourceRoot":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react'\nimport styled from 'styled-components'\n\nimport { useUniqueId } from '../utils/id'\n\nimport { TransientProps } from 'utils/utilTypes'\nimport { CommonFieldProps } from '../fields/commonFieldTypes'\nimport { Fieldset } from '../fields/Fieldset'\nimport { Icons } from '../Icon/iconsList'\n\nimport { ITEM_GAP } from './constants'\nimport { RadioItem } from './RadioItem'\nimport { BaseValueType, DisplayType, IconPosition } from './types'\n\nexport type RadioGroupProps<Value extends BaseValueType = BaseValueType> = {\n options: Array<{\n visual?: string\n icon?: Icons\n iconPosition?: IconPosition\n label: string\n value: Value\n bodyCopy?: string\n }>\n onChange: (value: Value) => void\n onBlur?: (e: FocusEvent<HTMLInputElement>) => void\n value: Value\n displayType?: DisplayType\n fallbackStyle?: boolean\n} & CommonFieldProps\n\nexport type RadioGroupElement = {\n focus: VoidFunction\n}\n\nconst RadioGroupComponent = <Value extends BaseValueType>(\n {\n options,\n onChange,\n onBlur,\n value,\n displayType = 'normal',\n renderAsTitle = false,\n error = false,\n fallbackStyle = false,\n ...fieldProps\n }: RadioGroupProps<Value>,\n ref: ForwardedRef<RadioGroupElement>,\n) => {\n const name = useUniqueId()\n\n const optionRefs = useRef<RefObject<HTMLInputElement | null>[]>([])\n useImperativeHandle(ref, () => {\n return {\n focus: () => {\n const selectedIndex = options.findIndex((item) => item.value === value)\n\n const elementToFocus = selectedIndex === -1 ? 0 : selectedIndex\n optionRefs.current[elementToFocus].current?.focus()\n },\n }\n })\n\n return (\n <Fieldset renderAsTitle={renderAsTitle} error={error} {...fieldProps}>\n <RadioItemList $displayType={displayType}>\n {options.map((option, index) => {\n const isSelected = option.value === value\n\n return (\n <RadioItem\n ref={(radioOptionRef) => {\n optionRefs.current[index] = {\n current: radioOptionRef,\n }\n }}\n key={`${option.value}`}\n name={name}\n visual={option.visual}\n icon={option.icon}\n iconPosition={option.iconPosition}\n label={option.label}\n value={option.value}\n checked={isSelected}\n onChange={onChange}\n onBlur={onBlur}\n displayType={displayType}\n isError={error}\n fallbackStyle={fallbackStyle}\n bodyCopy={option.bodyCopy}\n />\n )\n })}\n </RadioItemList>\n </Fieldset>\n )\n}\n\nexport const RadioGroup = forwardRef(RadioGroupComponent) as <\n Value extends BaseValueType = BaseValueType,\n>(\n p: RadioGroupProps<Value> & React.RefAttributes<HTMLInputElement>,\n) => ReactElement<any> | null\n\nconst RadioItemList = styled.div<\n TransientProps<Pick<RadioGroupProps, 'displayType'>>\n>`\n display: flex;\n gap: ${ITEM_GAP}px;\n\n ${({ $displayType }) => {\n if ($displayType === 'horizontal-card') {\n return `\n flex-direction: row;\n flex-wrap: wrap;\n `\n }\n\n return `flex-direction: column;`\n }}\n`\n"]}
1
+ {"version":3,"file":"RadioGroup.js","sourceRoot":"","sources":["../../src/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAGZ,UAAU,EAGV,mBAAmB,EACnB,MAAM,GACP,MAAM,OAAO,CAAA;AACd,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAIzC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAG7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAuBvC,MAAM,mBAAmB,GAAG,CAC1B,EACE,OAAO,EACP,QAAQ,EACR,MAAM,EACN,KAAK,EACL,WAAW,GAAG,QAAQ,EACtB,aAAa,GAAG,KAAK,EACrB,KAAK,GAAG,KAAK,EACb,aAAa,GAAG,KAAK,EACrB,GAAG,UAAU,EACU,EACzB,GAAoC,EACpC,EAAE;IACF,MAAM,IAAI,GAAG,WAAW,EAAE,CAAA;IAE1B,MAAM,UAAU,GAAG,MAAM,CAAuC,EAAE,CAAC,CAAA;IACnE,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE;QAC5B,OAAO;YACL,KAAK,EAAE,GAAG,EAAE;gBACV,MAAM,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CACY,CACP,CACZ,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAAC,mBAAmB,CAI3B,CAAA;AAE7B,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAE/B;;SAEQ,QAAQ;;IAEb,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;IACrB,IAAI,YAAY,KAAK,iBAAiB,EAAE,CAAC;QACvC,OAAO;;;OAGN,CAAA;IACH,CAAC;IAED,OAAO,yBAAyB,CAAA;AAClC,CAAC;CACF,CAAA","sourcesContent":["import React, {\n FocusEvent,\n ForwardedRef,\n forwardRef,\n ReactElement,\n RefObject,\n useImperativeHandle,\n useRef,\n} from 'react'\nimport styled from 'styled-components'\n\nimport { useUniqueId } from '../utils/id'\n\nimport { TransientProps } from 'utils/utilTypes'\nimport { CommonFieldProps } from '../fields/commonFieldTypes'\nimport { Fieldset } from '../fields/Fieldset'\nimport { Icons } from '../Icon/iconsList'\n\nimport { ITEM_GAP } from './constants'\nimport { RadioItem } from './RadioItem'\nimport { BaseValueType, DisplayType, IconPosition } from './types'\n\nexport type RadioGroupProps<Value extends BaseValueType = BaseValueType> = {\n options: Array<{\n visual?: string\n icon?: Icons\n iconPosition?: IconPosition\n label: string\n value: Value\n bodyCopy?: string\n }>\n onChange: (value: BaseValueType) => void\n onBlur?: (e: FocusEvent<HTMLInputElement>) => void\n value: Value\n displayType?: DisplayType\n fallbackStyle?: boolean\n} & CommonFieldProps\n\nexport type RadioGroupElement = {\n focus: VoidFunction\n}\n\nconst RadioGroupComponent = <Value extends BaseValueType>(\n {\n options,\n onChange,\n onBlur,\n value,\n displayType = 'normal',\n renderAsTitle = false,\n error = false,\n fallbackStyle = false,\n ...fieldProps\n }: RadioGroupProps<Value>,\n ref: ForwardedRef<RadioGroupElement>,\n) => {\n const name = useUniqueId()\n\n const optionRefs = useRef<RefObject<HTMLInputElement | null>[]>([])\n useImperativeHandle(ref, () => {\n return {\n focus: () => {\n const selectedIndex = options.findIndex((item) => item.value === value)\n\n const elementToFocus = selectedIndex === -1 ? 0 : selectedIndex\n optionRefs.current[elementToFocus].current?.focus()\n },\n }\n })\n\n return (\n <Fieldset renderAsTitle={renderAsTitle} error={error} {...fieldProps}>\n <RadioItemList $displayType={displayType}>\n {options.map((option, index) => {\n const isSelected = option.value === value\n\n return (\n <RadioItem\n ref={(radioOptionRef) => {\n optionRefs.current[index] = {\n current: radioOptionRef,\n }\n }}\n key={`${option.value}`}\n name={name}\n visual={option.visual}\n icon={option.icon}\n iconPosition={option.iconPosition}\n label={option.label}\n value={option.value}\n checked={isSelected}\n onChange={onChange}\n onBlur={onBlur}\n displayType={displayType}\n isError={error}\n fallbackStyle={fallbackStyle}\n bodyCopy={option.bodyCopy}\n />\n )\n })}\n </RadioItemList>\n </Fieldset>\n )\n}\n\nexport const RadioGroup = forwardRef(RadioGroupComponent) as <\n Value extends BaseValueType = BaseValueType,\n>(\n p: RadioGroupProps<Value> & React.RefAttributes<HTMLInputElement>,\n) => ReactElement<any> | null\n\nconst RadioItemList = styled.div<\n TransientProps<Pick<RadioGroupProps, 'displayType'>>\n>`\n display: flex;\n gap: ${ITEM_GAP}px;\n\n ${({ $displayType }) => {\n if ($displayType === 'horizontal-card') {\n return `\n flex-direction: row;\n flex-wrap: wrap;\n `\n }\n\n return `flex-direction: column;`\n }}\n`\n"]}
@@ -40,7 +40,7 @@ const styles = {
40
40
  };
41
41
  export const SupportMessage = ({ className, description, onClick, rightSideComponent, type, title, ...marginProps }) => {
42
42
  return (React.createElement(Wrapper, { className: className, "$type": type, onClick: onClick, ...marginProps },
43
- React.createElement(IconWrapper, null,
43
+ React.createElement(IconWrapper, { alignItems: "center" },
44
44
  React.createElement(Icon, { size: 20, render: styles[type].icon, color: styles[type].iconColor })),
45
45
  React.createElement(Box, { flex: true, direction: "column", mx: "8px" },
46
46
  title && React.createElement(Title, null, title),
@@ -1 +1 @@
1
- {"version":3,"file":"SupportMessage.js","sourceRoot":"","sources":["../../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ACP,CACO,CACX,CAAA;AACH,CAAC,CAAA;AAOD,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;;CAE9B,CAAA;AAED,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CACzB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,GAAG,CAAA;;wBAEL,MAAM,CAAC,KAAK,CAAC,CAAC,eAAe;;MAE/C,OAAO,IAAI,iBAAiB;;;;;;;QAO1B,OAAO,IAAI,qBAAqB,MAAM,CAAC,KAAK,CAAC,CAAC,oBAAoB,GAAG;;GAE1E,CACF,CAAA;AAED,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAA;;iBAEL,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;WAC9B,KAAK,CAAC,MAAM,CAAC,SAAS;;;CAGhC,CAAA;AAED,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;WACvB,KAAK,CAAC,MAAM,CAAC,SAAS;;;CAGhC,CAAA;AAED,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;WACrB,KAAK,CAAC,MAAM,CAAC,SAAS;;;CAGhC,CAAA","sourcesContent":["import { darken } from 'polished'\nimport React, { FC, MouseEventHandler, ReactElement } from 'react'\nimport styled, { css } from 'styled-components'\n\nimport { Box } from '../Box'\nimport { Icon } from '../Icon'\nimport { Icons } from '../Icon/iconsList'\n\nimport { Text } from '../Text'\nimport { Color, theme } from '../theme'\nimport { isReactElement } from '../utils/isReactElement'\nimport { MarginProps } from '../utils/space'\n\ntype StylesItem = {\n iconColor: Color\n backgroundColor: string\n hoverBackgroundColor: string\n icon: Icons\n}\n\nconst styles: Record<SupportMessageType, StylesItem> = {\n info: {\n iconColor: 'liquorice',\n backgroundColor: theme.colors.oatmeal,\n hoverBackgroundColor: darken(0.1, theme.colors.oatmeal),\n icon: 'info',\n },\n fallbackStyle: {\n iconColor: 'liquorice',\n backgroundColor: theme.colors.coconut,\n hoverBackgroundColor: darken(0.1, theme.colors.coconut),\n icon: 'info',\n },\n alert: {\n iconColor: 'tangerine',\n backgroundColor: theme.colors.sherbert,\n hoverBackgroundColor: darken(0.1, theme.colors.sherbert),\n icon: 'alert',\n },\n warning: {\n iconColor: 'strawberry',\n backgroundColor: theme.colors.watermelon,\n hoverBackgroundColor: darken(0.1, theme.colors.watermelon),\n icon: 'warning',\n },\n success: {\n iconColor: 'apple',\n backgroundColor: theme.colors.mint,\n hoverBackgroundColor: darken(0.1, theme.colors.mint),\n icon: 'circle-tick',\n },\n}\n\ntype SupportMessageType =\n | 'info'\n | 'fallbackStyle'\n | 'alert'\n | 'warning'\n | 'success'\n\nexport type SupportMessageProps = {\n className?: string\n description: string | ReactElement<any>\n onClick?: MouseEventHandler\n /**\n * Right side content, usually an icon or a button\n */\n rightSideComponent?: ReactElement<any>\n type: SupportMessageType\n title?: string\n} & MarginProps\n\nexport const SupportMessage: FC<SupportMessageProps> = ({\n className,\n description,\n onClick,\n rightSideComponent,\n type,\n title,\n ...marginProps\n}) => {\n return (\n <Wrapper\n className={className}\n $type={type}\n onClick={onClick}\n {...marginProps}\n >\n <IconWrapper>\n <Icon\n size={20}\n render={styles[type].icon}\n color={styles[type].iconColor}\n />\n </IconWrapper>\n <Box flex direction=\"column\" mx=\"8px\">\n {title && <Title>{title}</Title>}\n {isReactElement(description) ? (\n <DescriptionBox>{description}</DescriptionBox>\n ) : (\n <Description tag=\"p\">{description}</Description>\n )}\n </Box>\n {rightSideComponent}\n {onClick && rightSideComponent === undefined && (\n <Box ml={{ custom: 'auto' }}>\n <Icon size={16} render=\"caret\" color=\"marzipan\" rotate={270} />\n </Box>\n )}\n </Wrapper>\n )\n}\n\ninterface IWrapper {\n $type: SupportMessageType\n onClick?: MouseEventHandler\n}\n\nconst IconWrapper = styled(Box)`\n align-self: flex-start;\n`\n\nconst Wrapper = styled(Box)<IWrapper>(\n ({ $type, onClick }) => css`\n align-items: center;\n background-color: ${styles[$type].backgroundColor};\n border-radius: 16px;\n ${onClick && `cursor: pointer`};\n padding: 12px;\n display: flex;\n width: 100%;\n\n &:hover,\n &:active {\n ${onClick && `background-color: ${styles[$type].hoverBackgroundColor};`};\n }\n `,\n)\n\nconst Title = styled.p`\n font-size: 16px;\n font-weight: ${theme.font.weight.medium};\n color: ${theme.colors.liquorice};\n line-height: 20.8px;\n margin-bottom: 4px;\n`\n\nconst DescriptionBox = styled(Box)`\n color: ${theme.colors.liquorice};\n font-size: 14px;\n line-height: 20px;\n`\n\nconst Description = styled(Text)`\n color: ${theme.colors.liquorice};\n font-size: 14px;\n line-height: 20px;\n`\n"]}
1
+ {"version":3,"file":"SupportMessage.js","sourceRoot":"","sources":["../../src/SupportMessage/SupportMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,KAA8C,MAAM,OAAO,CAAA;AAClE,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAG9B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAS,KAAK,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAUxD,MAAM,MAAM,GAA2C;IACrD,IAAI,EAAE;QACJ,SAAS,EAAE,WAAW;QACtB,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;QACrC,oBAAoB,EAAE,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;QACvD,IAAI,EAAE,MAAM;KACb;IACD,aAAa,EAAE;QACb,SAAS,EAAE,WAAW;QACtB,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;QACrC,oBAAoB,EAAE,MAAM,CA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AAA","sourcesContent":["import { darken } from 'polished'\nimport React, { FC, MouseEventHandler, ReactElement } from 'react'\nimport styled, { css } from 'styled-components'\n\nimport { Box } from '../Box'\nimport { Icon } from '../Icon'\nimport { Icons } from '../Icon/iconsList'\n\nimport { Text } from '../Text'\nimport { Color, theme } from '../theme'\nimport { isReactElement } from '../utils/isReactElement'\nimport { MarginProps } from '../utils/space'\n\ntype StylesItem = {\n iconColor: Color\n backgroundColor: string\n hoverBackgroundColor: string\n icon: Icons\n}\n\nconst styles: Record<SupportMessageType, StylesItem> = {\n info: {\n iconColor: 'liquorice',\n backgroundColor: theme.colors.oatmeal,\n hoverBackgroundColor: darken(0.1, theme.colors.oatmeal),\n icon: 'info',\n },\n fallbackStyle: {\n iconColor: 'liquorice',\n backgroundColor: theme.colors.coconut,\n hoverBackgroundColor: darken(0.1, theme.colors.coconut),\n icon: 'info',\n },\n alert: {\n iconColor: 'tangerine',\n backgroundColor: theme.colors.sherbert,\n hoverBackgroundColor: darken(0.1, theme.colors.sherbert),\n icon: 'alert',\n },\n warning: {\n iconColor: 'strawberry',\n backgroundColor: theme.colors.watermelon,\n hoverBackgroundColor: darken(0.1, theme.colors.watermelon),\n icon: 'warning',\n },\n success: {\n iconColor: 'apple',\n backgroundColor: theme.colors.mint,\n hoverBackgroundColor: darken(0.1, theme.colors.mint),\n icon: 'circle-tick',\n },\n}\n\ntype SupportMessageType =\n | 'info'\n | 'fallbackStyle'\n | 'alert'\n | 'warning'\n | 'success'\n\nexport type SupportMessageProps = {\n className?: string\n description: string | ReactElement<any>\n onClick?: MouseEventHandler\n /**\n * Right side content, usually an icon or a button\n */\n rightSideComponent?: ReactElement<any>\n type: SupportMessageType\n title?: string\n} & MarginProps\n\nexport const SupportMessage: FC<SupportMessageProps> = ({\n className,\n description,\n onClick,\n rightSideComponent,\n type,\n title,\n ...marginProps\n}) => {\n return (\n <Wrapper\n className={className}\n $type={type}\n onClick={onClick}\n {...marginProps}\n >\n <IconWrapper alignItems=\"center\">\n <Icon\n size={20}\n render={styles[type].icon}\n color={styles[type].iconColor}\n />\n </IconWrapper>\n <Box flex direction=\"column\" mx=\"8px\">\n {title && <Title>{title}</Title>}\n {isReactElement(description) ? (\n <DescriptionBox>{description}</DescriptionBox>\n ) : (\n <Description tag=\"p\">{description}</Description>\n )}\n </Box>\n {rightSideComponent}\n {onClick && rightSideComponent === undefined && (\n <Box ml={{ custom: 'auto' }}>\n <Icon size={16} render=\"caret\" color=\"marzipan\" rotate={270} />\n </Box>\n )}\n </Wrapper>\n )\n}\n\ninterface IWrapper {\n $type: SupportMessageType\n onClick?: MouseEventHandler\n}\n\nconst IconWrapper = styled(Box)`\n align-self: flex-start;\n`\n\nconst Wrapper = styled(Box)<IWrapper>(\n ({ $type, onClick }) => css`\n align-items: center;\n background-color: ${styles[$type].backgroundColor};\n border-radius: 16px;\n ${onClick && `cursor: pointer`};\n padding: 12px;\n display: flex;\n width: 100%;\n\n &:hover,\n &:active {\n ${onClick && `background-color: ${styles[$type].hoverBackgroundColor};`};\n }\n `,\n)\n\nconst Title = styled.p`\n font-size: 16px;\n font-weight: ${theme.font.weight.medium};\n color: ${theme.colors.liquorice};\n line-height: 20.8px;\n margin-bottom: 4px;\n`\n\nconst DescriptionBox = styled(Box)`\n color: ${theme.colors.liquorice};\n font-size: 14px;\n line-height: 20px;\n`\n\nconst Description = styled(Text)`\n color: ${theme.colors.liquorice};\n font-size: 14px;\n line-height: 20px;\n`\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/useClickOutside/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAChC,GAAG,EACH,QAAQ,GAIT,EAAE,EAAE;IACH,MAAM,sBAAsB,GAAG,WAAW,CACxC,CAAC,KAAiB,EAAE,EAAE;QACpB,IAAI,CAAC,GAAG,EAAE,OAAO,IAAI,GAAG,EAAE,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,MAAc,CAAC,EAAE,CAAC;YAClE,OAAM;QACR,CAAC;QAED,QAAQ,CAAC,KAAK,CAAC,CAAA;IACjB,CAAC,EAED,CAAC,GAAG,EAAE,QAAQ,CAAC,CAChB,CAAA;IAED,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;IAEzC,gBAAgB,CAAC;QACf,SAAS,EAAE,OAAO;QAClB,GAAG,EAAE,WAAW;QAChB,QAAQ,EAAE,sBAAsB;QAChC,OAAO,EAAE,IAAI;KACd,CAAC,CAAA;IAEF,gBAAgB,CAAC;QACf,SAAS,EAAE,UAAU;QACrB,GAAG,EAAE,WAAW;QAChB,QAAQ,EAAE,sBAAsB;QAChC,OAAO,EAAE,IAAI;KACd,CAAC,CAAA;AACJ,CAAC,CAAA","sourcesContent":["import { RefObject, useCallback, useRef } from 'react'\nimport { GenericEventCallback } from '../../types'\nimport { useEventListener } from '../useEventListener'\n\nexport const useOnClickOutside = ({\n ref,\n callback,\n}: {\n ref: RefObject<HTMLElement | null>\n callback: GenericEventCallback\n}) => {\n const onClickOutsideListener = useCallback(\n (event: MouseEvent) => {\n if (!ref?.current || ref?.current?.contains(event.target as Node)) {\n return\n }\n\n callback(event)\n },\n\n [ref, callback],\n )\n\n const documentRef = useRef(document.body)\n\n useEventListener({\n eventName: 'click',\n ref: documentRef,\n callback: onClickOutsideListener,\n capture: true,\n })\n\n useEventListener({\n eventName: 'touchend',\n ref: documentRef,\n callback: onClickOutsideListener,\n capture: true,\n })\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/useClickOutside/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAChC,GAAG,EACH,QAAQ,GAIT,EAAE,EAAE;IACH,MAAM,sBAAsB,GAAG,WAAW,CACxC,CAAC,KAAmB,EAAE,EAAE;QACtB,IAAI,CAAC,GAAG,EAAE,OAAO,IAAI,GAAG,EAAE,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,MAAc,CAAC,EAAE,CAAC;YAClE,OAAM;QACR,CAAC;QAED,QAAQ,CAAC,KAAK,CAAC,CAAA;IACjB,CAAC,EAED,CAAC,GAAG,EAAE,QAAQ,CAAC,CAChB,CAAA;IAED,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;IAEzC,gBAAgB,CAAC;QACf,SAAS,EAAE,OAAO;QAClB,GAAG,EAAE,WAAW;QAChB,QAAQ,EAAE,sBAAsB;QAChC,OAAO,EAAE,IAAI;KACd,CAAC,CAAA;IAEF,gBAAgB,CAAC;QACf,SAAS,EAAE,UAAU;QACrB,GAAG,EAAE,WAAW;QAChB,QAAQ,EAAE,sBAAsB;QAChC,OAAO,EAAE,IAAI;KACd,CAAC,CAAA;AACJ,CAAC,CAAA","sourcesContent":["import { RefObject, useCallback, useRef } from 'react'\nimport { GeneralEvent, GenericEventCallback } from '../../types'\nimport { useEventListener } from '../useEventListener'\n\nexport const useOnClickOutside = ({\n ref,\n callback,\n}: {\n ref: RefObject<HTMLElement | null>\n callback: GenericEventCallback\n}) => {\n const onClickOutsideListener = useCallback(\n (event: GeneralEvent) => {\n if (!ref?.current || ref?.current?.contains(event.target as Node)) {\n return\n }\n\n callback(event)\n },\n\n [ref, callback],\n )\n\n const documentRef = useRef(document.body)\n\n useEventListener({\n eventName: 'click',\n ref: documentRef,\n callback: onClickOutsideListener,\n capture: true,\n })\n\n useEventListener({\n eventName: 'touchend',\n ref: documentRef,\n callback: onClickOutsideListener,\n capture: true,\n })\n}\n"]}
package/dist/index.d.ts CHANGED
@@ -4,7 +4,6 @@ export * from './Badge';
4
4
  export * from './BadgeList';
5
5
  export * from './Banner';
6
6
  export * from './Box';
7
- export * from './BrandCard';
8
7
  export * from './Button';
9
8
  export * from './Card';
10
9
  export * from './CheckBox';
@@ -14,7 +13,6 @@ export * from './CurrencyInput';
14
13
  export * from './Datepicker';
15
14
  export * from './Divider';
16
15
  export * from './Dropdown';
17
- export * from './Emoji';
18
16
  export * from './fields/Field';
19
17
  export * from './fields/Fieldset';
20
18
  export * from './fontStyle';
package/dist/index.js CHANGED
@@ -4,7 +4,6 @@ export * from './Badge';
4
4
  export * from './BadgeList';
5
5
  export * from './Banner';
6
6
  export * from './Box';
7
- export * from './BrandCard';
8
7
  export * from './Button';
9
8
  export * from './Card';
10
9
  export * from './CheckBox';
@@ -14,7 +13,6 @@ export * from './CurrencyInput';
14
13
  export * from './Datepicker';
15
14
  export * from './Divider';
16
15
  export * from './Dropdown';
17
- export * from './Emoji';
18
16
  export * from './fields/Field';
19
17
  export * from './fields/Fieldset';
20
18
  export * from './fontStyle';
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,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA;AACrB,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,QAAQ,CAAA;AACtB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,OAAO,CAAA;AACrB,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA;AACrB,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,wBAAwB,CAAA;AACtC,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,0CAA0C,CAAA;AACxD,cAAc,gDAAgD,CAAA;AAC9D,cAAc,4BAA4B,CAAA;AAC1C,cAAc,eAAe,CAAA","sourcesContent":["export * from './Accordion'\nexport * from './ActionDropdown'\nexport * from './Badge'\nexport * from './BadgeList'\nexport * from './Banner'\nexport * from './Box'\nexport * from './BrandCard'\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 './Emoji'\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 './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/space'\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,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,QAAQ,CAAA;AACtB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,OAAO,CAAA;AACrB,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA;AACrB,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,wBAAwB,CAAA;AACtC,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,0CAA0C,CAAA;AACxD,cAAc,gDAAgD,CAAA;AAC9D,cAAc,4BAA4B,CAAA;AAC1C,cAAc,eAAe,CAAA","sourcesContent":["export * from './Accordion'\nexport * from './ActionDropdown'\nexport * from './Badge'\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 './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/space'\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrshmllw/smores-react",
3
- "version": "10.7.0",
3
+ "version": "10.7.1",
4
4
  "main": "./dist/index.js",
5
5
  "description": "Collection of React components used by Marshmallow Technology",
6
6
  "type": "module",
@@ -88,7 +88,7 @@
88
88
  "@lexical/react": "^0.23.1",
89
89
  "body-scroll-lock": "^4.0.0-beta.0",
90
90
  "date-fns": "^4.1.0",
91
- "dompurify": "^3.2.3",
91
+ "dompurify": "^3.2.4",
92
92
  "fuse.js": "^7.0.0",
93
93
  "lexical": "^0.23.0",
94
94
  "polished": "^4.1.3"
@@ -1,27 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { Color } from '../theme';
3
- import { MarginProps } from '../utils/space';
4
- export type BrandCardProps = {
5
- /** generic card title */
6
- title: string;
7
- /** generic card body */
8
- body: string;
9
- /** card image */
10
- visual: string;
11
- /** alignment of the image */
12
- alignVisual?: 'left' | 'right';
13
- /** height of the image, leave this blank for 100% */
14
- visualHeight?: string;
15
- /** render image at bottom of card */
16
- visualBottom?: boolean;
17
- bgColor: Color;
18
- /** card tag */
19
- tag?: ReactNode;
20
- /** primary button */
21
- buttonAction?: ReactNode;
22
- /** fallback color scheme */
23
- fallbackStyle?: boolean;
24
- /** margin */
25
- maxWidth?: string;
26
- } & MarginProps;
27
- export declare const BrandCard: FC<BrandCardProps>;
@@ -1,48 +0,0 @@
1
- import React from 'react';
2
- import styled from 'styled-components';
3
- import { Box } from '../Box';
4
- import { Text } from '../Text';
5
- import { theme } from '../theme';
6
- export const BrandCard = ({ title, body, visual, visualHeight = '', alignVisual, visualBottom, tag, buttonAction, fallbackStyle = false, bgColor = 'matcha', maxWidth = '', ...otherProps }) => {
7
- return (React.createElement(Container, { maxWidth: maxWidth, "$fallbackStyle": fallbackStyle, "$bgColor": bgColor, ...otherProps },
8
- tag && React.createElement(TagWrapper, null, tag),
9
- visual && !visualBottom && (React.createElement(VisualWrapper, { "$visualHeight": visualHeight },
10
- React.createElement(Visual, { "$visualUrl": visual, "$visualHeight": visualHeight, "$alignVisual": alignVisual }))),
11
- React.createElement(Box, { flex: true, alignItems: "center", justifyContent: "space-between", mt: "16px" },
12
- React.createElement(Box, { flex: true, alignItems: "center" },
13
- React.createElement(Box, null,
14
- title && (React.createElement(Text, { typo: "hero-alternate", color: "liquorice" }, title)),
15
- body && (React.createElement(Text, { typo: "body-regular", color: "liquorice" }, body))))),
16
- buttonAction && React.createElement(Box, { mt: "16px" }, buttonAction),
17
- visual && visualBottom && (React.createElement(VisualWrapper, { "$visualHeight": visualHeight, mt: "16px" },
18
- React.createElement(Visual, { "$visualUrl": visual, "$visualHeight": visualHeight, "$alignVisual": alignVisual })))));
19
- };
20
- const Container = styled(Box) `
21
- background: ${({ $fallbackStyle, $bgColor }) => $fallbackStyle ? theme.colors.cream : theme.colors[$bgColor]};
22
- box-sizing: border-box;
23
- border-radius: 16px 16px 0px 0px;
24
-
25
- padding: 16px;
26
- position: relative;
27
- overflow: hidden;
28
- `;
29
- const TagWrapper = styled(Box) `
30
- position: absolute;
31
- top: 16px;
32
- right: 16px;
33
- `;
34
- const VisualWrapper = styled(Box) `
35
- width: 100%;
36
-
37
- ${({ $visualHeight }) => $visualHeight && `height: ${$visualHeight};`}
38
- `;
39
- const Visual = styled(Box) `
40
- width: 100%;
41
- background-image: url('${(p) => p.$visualUrl}');
42
- background-size: contain;
43
- background-repeat: no-repeat;
44
- background-position: ${({ $alignVisual }) => $alignVisual ? $alignVisual : 'left'};
45
-
46
- ${({ $visualHeight }) => $visualHeight ? `height: ${$visualHeight};` : 'padding-top: 100%;'}
47
- `;
48
- //# sourceMappingURL=BrandCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BrandCard.js","sourceRoot":"","sources":["../../src/BrandCard/BrandCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAA;AAC5C,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAS,KAAK,EAAE,MAAM,UAAU,CAAA;AA2BvC,MAAM,CAAC,MAAM,SAAS,GAAuB,CAAC,EAC5C,KAAK,EACL,IAAI,EACJ,MAAM,EACN,YAAY,GAAG,EAAE,EACjB,WAAW,EACX,YAAY,EACZ,GAAG,EACH,YAAY,EACZ,aAAa,GAAG,KAAK,EACrB,OAAO,GAAG,QAAQ,EAClB,QAAQ,GAAG,EAAE,EACb,GAAG,UAAU,EACd,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,SAAS,IACR,QAAQ,EAAE,QAAQ,oBACF,aAAa,cACnB,OAAO,KACb,UAAU;QAEb,GAAG,IAAI,oBAAC,UAAU,QAAE,GAAG,CAAc;QACrC,MAAM,IAAI,CAAC,YAAY,IAAI,CAC1B,oBAAC,aAAa,qBAAgB,YAAY;YACxC,oBAAC,MAAM,kBACO,MAAM,mBACH,YAAY,kBACb,WAAW,GACzB,CACY,CACjB;QACD,oBAAC,GAAG,IAAC,IAAI,QAAC,UAAU,EAAC,QAAQ,EAAC,cAAc,EAAC,eAAe,EAAC,EAAE,EAAC,MAAM;YACpE,oBAAC,GAAG,IAAC,IAAI,QAAC,UAAU,EAAC,QAAQ;gBAC3B,oBAAC,GAAG;oBACD,KAAK,IAAI,CACR,oBAAC,IAAI,IAAC,IAAI,EAAC,gBAAgB,EAAC,KAAK,EAAC,WAAW,IAC1C,KAAK,CACD,CACR;oBACA,IAAI,IAAI,CACP,oBAAC,IAAI,IAAC,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,WAAW,IACxC,IAAI,CACA,CACR,CACG,CACF,CACF;QACL,YAAY,IAAI,oBAAC,GAAG,IAAC,EAAE,EAAC,MAAM,IAAE,YAAY,CAAO;QACnD,MAAM,IAAI,YAAY,IAAI,CACzB,oBAAC,aAAa,qBAAgB,YAAY,EAAE,EAAE,EAAC,MAAM;YACnD,oBAAC,MAAM,kBACO,MAAM,mBACH,YAAY,kBACb,WAAW,GACzB,CACY,CACjB,CACS,CACb,CAAA;AACH,CAAC,CAAA;AAED,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,CAG3B;gBACc,CAAC,EAAE,cAAc,EAAE,QAAQ,EAAE,EAAE,EAAE,CAC7C,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC;;;;;;;CAO/D,CAAA;AAED,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;;;;CAI7B,CAAA;AAED,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,CAA2B;;;IAGxD,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,aAAa,IAAI,WAAW,aAAa,GAAG;CACtE,CAAA;AAED,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,CAIxB;;2BAEyB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU;;;yBAGrB,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAC1C,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM;;IAEpC,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CACtB,aAAa,CAAC,CAAC,CAAC,WAAW,aAAa,GAAG,CAAC,CAAC,CAAC,oBAAoB;CACrE,CAAA","sourcesContent":["import React, { FC, ReactNode } from 'react'\nimport styled from 'styled-components'\nimport { Box } from '../Box'\nimport { Text } from '../Text'\nimport { Color, theme } from '../theme'\nimport { MarginProps } from '../utils/space'\n\nexport type BrandCardProps = {\n /** generic card title */\n title: string\n /** generic card body */\n body: string\n /** card image */\n visual: string\n /** alignment of the image */\n alignVisual?: 'left' | 'right'\n /** height of the image, leave this blank for 100% */\n visualHeight?: string\n /** render image at bottom of card */\n visualBottom?: boolean\n bgColor: Color\n /** card tag */\n tag?: ReactNode\n /** primary button */\n buttonAction?: ReactNode\n /** fallback color scheme */\n fallbackStyle?: boolean\n /** margin */\n maxWidth?: string\n} & MarginProps\n\nexport const BrandCard: FC<BrandCardProps> = ({\n title,\n body,\n visual,\n visualHeight = '',\n alignVisual,\n visualBottom,\n tag,\n buttonAction,\n fallbackStyle = false,\n bgColor = 'matcha',\n maxWidth = '',\n ...otherProps\n}) => {\n return (\n <Container\n maxWidth={maxWidth}\n $fallbackStyle={fallbackStyle}\n $bgColor={bgColor}\n {...otherProps}\n >\n {tag && <TagWrapper>{tag}</TagWrapper>}\n {visual && !visualBottom && (\n <VisualWrapper $visualHeight={visualHeight}>\n <Visual\n $visualUrl={visual}\n $visualHeight={visualHeight}\n $alignVisual={alignVisual}\n />\n </VisualWrapper>\n )}\n <Box flex alignItems=\"center\" justifyContent=\"space-between\" mt=\"16px\">\n <Box flex alignItems=\"center\">\n <Box>\n {title && (\n <Text typo=\"hero-alternate\" color=\"liquorice\">\n {title}\n </Text>\n )}\n {body && (\n <Text typo=\"body-regular\" color=\"liquorice\">\n {body}\n </Text>\n )}\n </Box>\n </Box>\n </Box>\n {buttonAction && <Box mt=\"16px\">{buttonAction}</Box>}\n {visual && visualBottom && (\n <VisualWrapper $visualHeight={visualHeight} mt=\"16px\">\n <Visual\n $visualUrl={visual}\n $visualHeight={visualHeight}\n $alignVisual={alignVisual}\n />\n </VisualWrapper>\n )}\n </Container>\n )\n}\n\nconst Container = styled(Box)<{\n $fallbackStyle?: boolean\n $bgColor: Color\n}>`\n background: ${({ $fallbackStyle, $bgColor }) =>\n $fallbackStyle ? theme.colors.cream : theme.colors[$bgColor]};\n box-sizing: border-box;\n border-radius: 16px 16px 0px 0px;\n\n padding: 16px;\n position: relative;\n overflow: hidden;\n`\n\nconst TagWrapper = styled(Box)`\n position: absolute;\n top: 16px;\n right: 16px;\n`\n\nconst VisualWrapper = styled(Box)<{ $visualHeight: string }>`\n width: 100%;\n\n ${({ $visualHeight }) => $visualHeight && `height: ${$visualHeight};`}\n`\n\nconst Visual = styled(Box)<{\n $visualUrl: string\n $visualHeight: string\n $alignVisual?: string\n}>`\n width: 100%;\n background-image: url('${(p) => p.$visualUrl}');\n background-size: contain;\n background-repeat: no-repeat;\n background-position: ${({ $alignVisual }) =>\n $alignVisual ? $alignVisual : 'left'};\n\n ${({ $visualHeight }) =>\n $visualHeight ? `height: ${$visualHeight};` : 'padding-top: 100%;'}\n`\n"]}
@@ -1 +0,0 @@
1
- export { BrandCard } from './BrandCard';
@@ -1,2 +0,0 @@
1
- export { BrandCard } from './BrandCard';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/BrandCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA","sourcesContent":["export { BrandCard } from './BrandCard'\n"]}
@@ -1,13 +0,0 @@
1
- import { FC } from 'react';
2
- import { MarginProps } from '../utils/space';
3
- export type EmojiProps = {
4
- /** className attribute to apply classes from props */
5
- className?: string;
6
- /** Emoji symbol */
7
- symbol: string;
8
- /** set size of the Emoji */
9
- size?: number;
10
- /** aria-label to identify Emoji */
11
- label: string;
12
- } & MarginProps;
13
- export declare const Emoji: FC<EmojiProps>;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import styled, { css } from 'styled-components';
3
- import { Box } from '../Box';
4
- export const Emoji = ({ className = '', symbol, size = 12, label, ...marginProps }) => (React.createElement(Container, { forwardedAs: "span", className: className, "$size": size, role: "img", "aria-label": label, ...marginProps }, symbol));
5
- const Container = styled(Box)(({ $size }) => css `
6
- font-size: ${$size}px;
7
- `);
8
- //# sourceMappingURL=Emoji.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Emoji.js","sourceRoot":"","sources":["../../src/Emoji/Emoji.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAA;AACjC,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAc5B,MAAM,CAAC,MAAM,KAAK,GAAmB,CAAC,EACpC,SAAS,GAAG,EAAE,EACd,MAAM,EACN,IAAI,GAAG,EAAE,EACT,KAAK,EACL,GAAG,WAAW,EACf,EAAE,EAAE,CAAC,CACJ,oBAAC,SAAS,IACR,WAAW,EAAC,MAAM,EAClB,SAAS,EAAE,SAAS,WACb,IAAI,EACX,IAAI,EAAC,KAAK,gBACE,KAAK,KACb,WAAW,IAEd,MAAM,CACG,CACb,CAAA;AAMD,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,CAC3B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,GAAG,CAAA;iBACH,KAAK;GACnB,CACF,CAAA","sourcesContent":["import React, { FC } from 'react'\nimport styled, { css } from 'styled-components'\nimport { Box } from '../Box'\nimport { MarginProps } from '../utils/space'\n\nexport type EmojiProps = {\n /** className attribute to apply classes from props */\n className?: string\n /** Emoji symbol */\n symbol: string\n /** set size of the Emoji */\n size?: number\n /** aria-label to identify Emoji */\n label: string\n} & MarginProps\n\nexport const Emoji: FC<EmojiProps> = ({\n className = '',\n symbol,\n size = 12,\n label,\n ...marginProps\n}) => (\n <Container\n forwardedAs=\"span\"\n className={className}\n $size={size}\n role=\"img\"\n aria-label={label}\n {...marginProps}\n >\n {symbol}\n </Container>\n)\n\ninterface IEmoji {\n $size: number\n}\n\nconst Container = styled(Box)<IEmoji>(\n ({ $size }) => css`\n font-size: ${$size}px;\n `,\n)\n"]}
@@ -1 +0,0 @@
1
- export { Emoji } from './Emoji';
@@ -1,2 +0,0 @@
1
- export { Emoji } from './Emoji';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Emoji/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA","sourcesContent":["export { Emoji } from './Emoji'\n"]}