@sproutsocial/seeds-react-badge 1.0.6 → 2.0.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/codemods/__tests__/badge-1.x-to-2.x.test.ts +406 -0
- package/codemods/badge-1.x-to-2.x.ts +489 -0
- package/dist/codemods/badge-1.x-to-2.x.d.ts +2 -0
- package/dist/codemods/badge-1.x-to-2.x.js +285 -0
- package/dist/codemods/badge-1.x-to-2.x.js.map +1 -0
- package/dist/esm/index.js +51 -65
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +2 -9
- package/dist/index.d.ts +2 -9
- package/dist/index.js +51 -65
- package/dist/index.js.map +1 -1
- package/package.json +20 -4
- package/.eslintignore +0 -6
- package/.eslintrc.js +0 -4
- package/.turbo/turbo-build.log +0 -21
- package/CHANGELOG.md +0 -50
- package/jest.config.js +0 -9
- package/src/Badge.stories.tsx +0 -83
- package/src/Badge.tsx +0 -55
- package/src/BadgeTypes.ts +0 -30
- package/src/__tests__/features.test.tsx +0 -94
- package/src/__tests__/types.test.tsx +0 -28
- package/src/constants.ts +0 -64
- package/src/index.ts +0 -6
- package/src/styles.ts +0 -36
- package/tsconfig.json +0 -15
- package/tsup.config.ts +0 -12
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/Badge.tsx","../src/styles.ts","../../../node_modules/object-assign/index.js","../../../node_modules/@styled-system/core/dist/index.esm.js","../../../node_modules/@styled-system/layout/dist/index.esm.js","../../../node_modules/@styled-system/color/dist/index.esm.js","../../../node_modules/@styled-system/typography/dist/index.esm.js","../../../node_modules/@styled-system/flexbox/dist/index.esm.js","../../../node_modules/@styled-system/grid/dist/index.esm.js","../../../node_modules/@styled-system/border/dist/index.esm.js","../../../node_modules/@styled-system/background/dist/index.esm.js","../../../node_modules/@styled-system/position/dist/index.esm.js","../../../node_modules/@styled-system/space/dist/index.esm.js","../../../node_modules/@styled-system/shadow/dist/index.esm.js","../../../node_modules/@styled-system/css/dist/index.esm.js","../../../node_modules/@styled-system/variant/dist/index.esm.js","../../../node_modules/styled-system/dist/index.esm.js","../../seeds-react-system-props/src/system-props.ts","../../seeds-react-system-props/src/deprecated-system-props.ts","../src/constants.ts"],"sourcesContent":["import Badge from \"./Badge\";\n\nexport default Badge;\nexport { Badge };\nexport * from \"./BadgeTypes\";\nexport * from \"./constants\";\n","import * as React from \"react\";\nimport Box from \"@sproutsocial/seeds-react-box\";\nimport Icon from \"@sproutsocial/seeds-react-icon\";\nimport Container from \"./styles\";\nimport type { TypeBadgeProps } from \"./BadgeTypes\";\n\nconst Badge = ({\n children,\n text,\n iconName,\n type,\n tip,\n size = \"small\",\n badgeColor = \"blue\",\n color,\n ...rest\n}: TypeBadgeProps) => {\n if (children && text) {\n throw new Error(\n \"can't use both `children` and `text` props. Text is deprecated, consider using children.\"\n );\n }\n\n return (\n <Container\n // size previously included default, which currently maps to small. Once consumers have updated this can be simplified.\n size={size === \"default\" ? \"large\" : size}\n badgeColor={badgeColor}\n data-tip={tip}\n data-qa-badge={text || \"\"}\n data-qa-badge-type={type}\n data-qa-badge-tip={tip || \"\"}\n type={type}\n // TODO: fix this type since `color` should be valid here. TS can't resolve the correct type.\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n color={color}\n {...rest}\n >\n <Box display=\"flex\" alignItems=\"center\" justifyContent=\"center\">\n {iconName ? (\n <Icon\n mr={200}\n name={iconName}\n size={size === \"small\" ? \"mini\" : \"small\"}\n aria-hidden\n />\n ) : null}\n {children || text}\n </Box>\n </Container>\n );\n};\n\nexport default Badge;\n","import styled from \"styled-components\";\n\nimport { COMMON } from \"@sproutsocial/seeds-react-system-props\";\nimport { legacyBadgeColors } from \"./constants\";\n// @ts-ignore: no types exist for this thang\nimport { themeGet } from \"@styled-system/theme-get\";\n\ntype TypeTypeKey = keyof typeof legacyBadgeColors;\n\nconst Container = styled.span<{\n type?: TypeTypeKey;\n badgeColor: string;\n size: string;\n}>`\n font-family: ${(p) => p.theme.fontFamily};\n ${(p) =>\n p.size === \"small\" ? p.theme.typography[100] : p.theme.typography[200]};\n border-radius: 9999px;\n line-height: 16px;\n display: inline-block;\n color: ${(p) =>\n p.type\n ? themeGet(legacyBadgeColors[p.type].color)\n : p.theme.colors.text.body};\n background: ${(p) =>\n p.type\n ? themeGet(legacyBadgeColors[p.type].background)\n : p.theme.colors.container.background.decorative[p.badgeColor]};\n padding: ${(p) =>\n p.size === \"small\"\n ? `${p.theme.space[0]} ${p.theme.space[200]}`\n : `${p.theme.space[300]}`};\n ${COMMON};\n`;\n\nexport default Container;\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","import assign from 'object-assign';\nexport var merge = function merge(a, b) {\n var result = assign({}, a, b);\n\n for (var key in a) {\n var _assign;\n\n if (!a[key] || typeof b[key] !== 'object') continue;\n assign(result, (_assign = {}, _assign[key] = assign(a[key], b[key]), _assign));\n }\n\n return result;\n}; // sort object-value responsive styles\n\nvar sort = function sort(obj) {\n var next = {};\n Object.keys(obj).sort(function (a, b) {\n return a.localeCompare(b, undefined, {\n numeric: true,\n sensitivity: 'base'\n });\n }).forEach(function (key) {\n next[key] = obj[key];\n });\n return next;\n};\n\nvar defaults = {\n breakpoints: [40, 52, 64].map(function (n) {\n return n + 'em';\n })\n};\n\nvar createMediaQuery = function createMediaQuery(n) {\n return \"@media screen and (min-width: \" + n + \")\";\n};\n\nvar getValue = function getValue(n, scale) {\n return get(scale, n, n);\n};\n\nexport var get = function get(obj, key, def, p, undef) {\n key = key && key.split ? key.split('.') : [key];\n\n for (p = 0; p < key.length; p++) {\n obj = obj ? obj[key[p]] : undef;\n }\n\n return obj === undef ? def : obj;\n};\nexport var createParser = function createParser(config) {\n var cache = {};\n\n var parse = function parse(props) {\n var styles = {};\n var shouldSort = false;\n var isCacheDisabled = props.theme && props.theme.disableStyledSystemCache;\n\n for (var key in props) {\n if (!config[key]) continue;\n var sx = config[key];\n var raw = props[key];\n var scale = get(props.theme, sx.scale, sx.defaults);\n\n if (typeof raw === 'object') {\n cache.breakpoints = !isCacheDisabled && cache.breakpoints || get(props.theme, 'breakpoints', defaults.breakpoints);\n\n if (Array.isArray(raw)) {\n cache.media = !isCacheDisabled && cache.media || [null].concat(cache.breakpoints.map(createMediaQuery));\n styles = merge(styles, parseResponsiveStyle(cache.media, sx, scale, raw, props));\n continue;\n }\n\n if (raw !== null) {\n styles = merge(styles, parseResponsiveObject(cache.breakpoints, sx, scale, raw, props));\n shouldSort = true;\n }\n\n continue;\n }\n\n assign(styles, sx(raw, scale, props));\n } // sort object-based responsive styles\n\n\n if (shouldSort) {\n styles = sort(styles);\n }\n\n return styles;\n };\n\n parse.config = config;\n parse.propNames = Object.keys(config);\n parse.cache = cache;\n var keys = Object.keys(config).filter(function (k) {\n return k !== 'config';\n });\n\n if (keys.length > 1) {\n keys.forEach(function (key) {\n var _createParser;\n\n parse[key] = createParser((_createParser = {}, _createParser[key] = config[key], _createParser));\n });\n }\n\n return parse;\n};\n\nvar parseResponsiveStyle = function parseResponsiveStyle(mediaQueries, sx, scale, raw, _props) {\n var styles = {};\n raw.slice(0, mediaQueries.length).forEach(function (value, i) {\n var media = mediaQueries[i];\n var style = sx(value, scale, _props);\n\n if (!media) {\n assign(styles, style);\n } else {\n var _assign2;\n\n assign(styles, (_assign2 = {}, _assign2[media] = assign({}, styles[media], style), _assign2));\n }\n });\n return styles;\n};\n\nvar parseResponsiveObject = function parseResponsiveObject(breakpoints, sx, scale, raw, _props) {\n var styles = {};\n\n for (var key in raw) {\n var breakpoint = breakpoints[key];\n var value = raw[key];\n var style = sx(value, scale, _props);\n\n if (!breakpoint) {\n assign(styles, style);\n } else {\n var _assign3;\n\n var media = createMediaQuery(breakpoint);\n assign(styles, (_assign3 = {}, _assign3[media] = assign({}, styles[media], style), _assign3));\n }\n }\n\n return styles;\n};\n\nexport var createStyleFunction = function createStyleFunction(_ref) {\n var properties = _ref.properties,\n property = _ref.property,\n scale = _ref.scale,\n _ref$transform = _ref.transform,\n transform = _ref$transform === void 0 ? getValue : _ref$transform,\n defaultScale = _ref.defaultScale;\n properties = properties || [property];\n\n var sx = function sx(value, scale, _props) {\n var result = {};\n var n = transform(value, scale, _props);\n if (n === null) return;\n properties.forEach(function (prop) {\n result[prop] = n;\n });\n return result;\n };\n\n sx.scale = scale;\n sx.defaults = defaultScale;\n return sx;\n}; // new v5 API\n\nexport var system = function system(args) {\n if (args === void 0) {\n args = {};\n }\n\n var config = {};\n Object.keys(args).forEach(function (key) {\n var conf = args[key];\n\n if (conf === true) {\n // shortcut definition\n config[key] = createStyleFunction({\n property: key,\n scale: key\n });\n return;\n }\n\n if (typeof conf === 'function') {\n config[key] = conf;\n return;\n }\n\n config[key] = createStyleFunction(conf);\n });\n var parser = createParser(config);\n return parser;\n};\nexport var compose = function compose() {\n var config = {};\n\n for (var _len = arguments.length, parsers = new Array(_len), _key = 0; _key < _len; _key++) {\n parsers[_key] = arguments[_key];\n }\n\n parsers.forEach(function (parser) {\n if (!parser || !parser.config) return;\n assign(config, parser.config);\n });\n var parser = createParser(config);\n return parser;\n};\n","import { system, get } from '@styled-system/core';\n\nvar isNumber = function isNumber(n) {\n return typeof n === 'number' && !isNaN(n);\n};\n\nvar getWidth = function getWidth(n, scale) {\n return get(scale, n, !isNumber(n) || n > 1 ? n : n * 100 + '%');\n};\n\nvar config = {\n width: {\n property: 'width',\n scale: 'sizes',\n transform: getWidth\n },\n height: {\n property: 'height',\n scale: 'sizes'\n },\n minWidth: {\n property: 'minWidth',\n scale: 'sizes'\n },\n minHeight: {\n property: 'minHeight',\n scale: 'sizes'\n },\n maxWidth: {\n property: 'maxWidth',\n scale: 'sizes'\n },\n maxHeight: {\n property: 'maxHeight',\n scale: 'sizes'\n },\n size: {\n properties: ['width', 'height'],\n scale: 'sizes'\n },\n overflow: true,\n overflowX: true,\n overflowY: true,\n display: true,\n verticalAlign: true\n};\nexport var layout = system(config);\nexport default layout;\n","import { system } from '@styled-system/core';\nvar config = {\n color: {\n property: 'color',\n scale: 'colors'\n },\n backgroundColor: {\n property: 'backgroundColor',\n scale: 'colors'\n },\n opacity: true\n};\nconfig.bg = config.backgroundColor;\nexport var color = system(config);\nexport default color;\n","import { system } from '@styled-system/core';\nvar defaults = {\n fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]\n};\nvar config = {\n fontFamily: {\n property: 'fontFamily',\n scale: 'fonts'\n },\n fontSize: {\n property: 'fontSize',\n scale: 'fontSizes',\n defaultScale: defaults.fontSizes\n },\n fontWeight: {\n property: 'fontWeight',\n scale: 'fontWeights'\n },\n lineHeight: {\n property: 'lineHeight',\n scale: 'lineHeights'\n },\n letterSpacing: {\n property: 'letterSpacing',\n scale: 'letterSpacings'\n },\n textAlign: true,\n fontStyle: true\n};\nexport var typography = system(config);\nexport default typography;\n","import { system } from '@styled-system/core';\nvar config = {\n alignItems: true,\n alignContent: true,\n justifyItems: true,\n justifyContent: true,\n flexWrap: true,\n flexDirection: true,\n // item\n flex: true,\n flexGrow: true,\n flexShrink: true,\n flexBasis: true,\n justifySelf: true,\n alignSelf: true,\n order: true\n};\nexport var flexbox = system(config);\nexport default flexbox;\n","import { system } from '@styled-system/core';\nvar defaults = {\n space: [0, 4, 8, 16, 32, 64, 128, 256, 512]\n};\nvar config = {\n gridGap: {\n property: 'gridGap',\n scale: 'space',\n defaultScale: defaults.space\n },\n gridColumnGap: {\n property: 'gridColumnGap',\n scale: 'space',\n defaultScale: defaults.space\n },\n gridRowGap: {\n property: 'gridRowGap',\n scale: 'space',\n defaultScale: defaults.space\n },\n gridColumn: true,\n gridRow: true,\n gridAutoFlow: true,\n gridAutoColumns: true,\n gridAutoRows: true,\n gridTemplateColumns: true,\n gridTemplateRows: true,\n gridTemplateAreas: true,\n gridArea: true\n};\nexport var grid = system(config);\nexport default grid;\n","import { system } from '@styled-system/core';\nvar config = {\n border: {\n property: 'border',\n scale: 'borders'\n },\n borderWidth: {\n property: 'borderWidth',\n scale: 'borderWidths'\n },\n borderStyle: {\n property: 'borderStyle',\n scale: 'borderStyles'\n },\n borderColor: {\n property: 'borderColor',\n scale: 'colors'\n },\n borderRadius: {\n property: 'borderRadius',\n scale: 'radii'\n },\n borderTop: {\n property: 'borderTop',\n scale: 'borders'\n },\n borderTopLeftRadius: {\n property: 'borderTopLeftRadius',\n scale: 'radii'\n },\n borderTopRightRadius: {\n property: 'borderTopRightRadius',\n scale: 'radii'\n },\n borderRight: {\n property: 'borderRight',\n scale: 'borders'\n },\n borderBottom: {\n property: 'borderBottom',\n scale: 'borders'\n },\n borderBottomLeftRadius: {\n property: 'borderBottomLeftRadius',\n scale: 'radii'\n },\n borderBottomRightRadius: {\n property: 'borderBottomRightRadius',\n scale: 'radii'\n },\n borderLeft: {\n property: 'borderLeft',\n scale: 'borders'\n },\n borderX: {\n properties: ['borderLeft', 'borderRight'],\n scale: 'borders'\n },\n borderY: {\n properties: ['borderTop', 'borderBottom'],\n scale: 'borders'\n }\n};\nconfig.borderTopWidth = {\n property: 'borderTopWidth',\n scale: 'borderWidths'\n};\nconfig.borderTopColor = {\n property: 'borderTopColor',\n scale: 'colors'\n};\nconfig.borderTopStyle = {\n property: 'borderTopStyle',\n scale: 'borderStyles'\n};\nconfig.borderTopLeftRadius = {\n property: 'borderTopLeftRadius',\n scale: 'radii'\n};\nconfig.borderTopRightRadius = {\n property: 'borderTopRightRadius',\n scale: 'radii'\n};\nconfig.borderBottomWidth = {\n property: 'borderBottomWidth',\n scale: 'borderWidths'\n};\nconfig.borderBottomColor = {\n property: 'borderBottomColor',\n scale: 'colors'\n};\nconfig.borderBottomStyle = {\n property: 'borderBottomStyle',\n scale: 'borderStyles'\n};\nconfig.borderBottomLeftRadius = {\n property: 'borderBottomLeftRadius',\n scale: 'radii'\n};\nconfig.borderBottomRightRadius = {\n property: 'borderBottomRightRadius',\n scale: 'radii'\n};\nconfig.borderLeftWidth = {\n property: 'borderLeftWidth',\n scale: 'borderWidths'\n};\nconfig.borderLeftColor = {\n property: 'borderLeftColor',\n scale: 'colors'\n};\nconfig.borderLeftStyle = {\n property: 'borderLeftStyle',\n scale: 'borderStyles'\n};\nconfig.borderRightWidth = {\n property: 'borderRightWidth',\n scale: 'borderWidths'\n};\nconfig.borderRightColor = {\n property: 'borderRightColor',\n scale: 'colors'\n};\nconfig.borderRightStyle = {\n property: 'borderRightStyle',\n scale: 'borderStyles'\n};\nexport var border = system(config);\nexport default border;\n","import { system } from '@styled-system/core';\nvar config = {\n background: true,\n backgroundImage: true,\n backgroundSize: true,\n backgroundPosition: true,\n backgroundRepeat: true\n};\nconfig.bgImage = config.backgroundImage;\nconfig.bgSize = config.backgroundSize;\nconfig.bgPosition = config.backgroundPosition;\nconfig.bgRepeat = config.backgroundRepeat;\nexport var background = system(config);\nexport default background;\n","import { system } from '@styled-system/core';\nvar defaults = {\n space: [0, 4, 8, 16, 32, 64, 128, 256, 512]\n};\nvar config = {\n position: true,\n zIndex: {\n property: 'zIndex',\n scale: 'zIndices'\n },\n top: {\n property: 'top',\n scale: 'space',\n defaultScale: defaults.space\n },\n right: {\n property: 'right',\n scale: 'space',\n defaultScale: defaults.space\n },\n bottom: {\n property: 'bottom',\n scale: 'space',\n defaultScale: defaults.space\n },\n left: {\n property: 'left',\n scale: 'space',\n defaultScale: defaults.space\n }\n};\nexport var position = system(config);\nexport default position;\n","import { get, system, compose } from '@styled-system/core';\nvar defaults = {\n space: [0, 4, 8, 16, 32, 64, 128, 256, 512]\n};\n\nvar isNumber = function isNumber(n) {\n return typeof n === 'number' && !isNaN(n);\n};\n\nvar getMargin = function getMargin(n, scale) {\n if (!isNumber(n)) {\n return get(scale, n, n);\n }\n\n var isNegative = n < 0;\n var absolute = Math.abs(n);\n var value = get(scale, absolute, absolute);\n\n if (!isNumber(value)) {\n return isNegative ? '-' + value : value;\n }\n\n return value * (isNegative ? -1 : 1);\n};\n\nvar configs = {};\nconfigs.margin = {\n margin: {\n property: 'margin',\n scale: 'space',\n transform: getMargin,\n defaultScale: defaults.space\n },\n marginTop: {\n property: 'marginTop',\n scale: 'space',\n transform: getMargin,\n defaultScale: defaults.space\n },\n marginRight: {\n property: 'marginRight',\n scale: 'space',\n transform: getMargin,\n defaultScale: defaults.space\n },\n marginBottom: {\n property: 'marginBottom',\n scale: 'space',\n transform: getMargin,\n defaultScale: defaults.space\n },\n marginLeft: {\n property: 'marginLeft',\n scale: 'space',\n transform: getMargin,\n defaultScale: defaults.space\n },\n marginX: {\n properties: ['marginLeft', 'marginRight'],\n scale: 'space',\n transform: getMargin,\n defaultScale: defaults.space\n },\n marginY: {\n properties: ['marginTop', 'marginBottom'],\n scale: 'space',\n transform: getMargin,\n defaultScale: defaults.space\n }\n};\nconfigs.margin.m = configs.margin.margin;\nconfigs.margin.mt = configs.margin.marginTop;\nconfigs.margin.mr = configs.margin.marginRight;\nconfigs.margin.mb = configs.margin.marginBottom;\nconfigs.margin.ml = configs.margin.marginLeft;\nconfigs.margin.mx = configs.margin.marginX;\nconfigs.margin.my = configs.margin.marginY;\nconfigs.padding = {\n padding: {\n property: 'padding',\n scale: 'space',\n defaultScale: defaults.space\n },\n paddingTop: {\n property: 'paddingTop',\n scale: 'space',\n defaultScale: defaults.space\n },\n paddingRight: {\n property: 'paddingRight',\n scale: 'space',\n defaultScale: defaults.space\n },\n paddingBottom: {\n property: 'paddingBottom',\n scale: 'space',\n defaultScale: defaults.space\n },\n paddingLeft: {\n property: 'paddingLeft',\n scale: 'space',\n defaultScale: defaults.space\n },\n paddingX: {\n properties: ['paddingLeft', 'paddingRight'],\n scale: 'space',\n defaultScale: defaults.space\n },\n paddingY: {\n properties: ['paddingTop', 'paddingBottom'],\n scale: 'space',\n defaultScale: defaults.space\n }\n};\nconfigs.padding.p = configs.padding.padding;\nconfigs.padding.pt = configs.padding.paddingTop;\nconfigs.padding.pr = configs.padding.paddingRight;\nconfigs.padding.pb = configs.padding.paddingBottom;\nconfigs.padding.pl = configs.padding.paddingLeft;\nconfigs.padding.px = configs.padding.paddingX;\nconfigs.padding.py = configs.padding.paddingY;\nexport var margin = system(configs.margin);\nexport var padding = system(configs.padding);\nexport var space = compose(margin, padding);\nexport default space;\n","import { system } from '@styled-system/core';\nexport var shadow = system({\n boxShadow: {\n property: 'boxShadow',\n scale: 'shadows'\n },\n textShadow: {\n property: 'textShadow',\n scale: 'shadows'\n }\n});\nexport default shadow;\n","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\n// based on https://github.com/developit/dlv\nexport var get = function get(obj, key, def, p, undef) {\n key = key && key.split ? key.split('.') : [key];\n\n for (p = 0; p < key.length; p++) {\n obj = obj ? obj[key[p]] : undef;\n }\n\n return obj === undef ? def : obj;\n};\nvar defaultBreakpoints = [40, 52, 64].map(function (n) {\n return n + 'em';\n});\nvar defaultTheme = {\n space: [0, 4, 8, 16, 32, 64, 128, 256, 512],\n fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]\n};\nvar aliases = {\n bg: 'backgroundColor',\n m: 'margin',\n mt: 'marginTop',\n mr: 'marginRight',\n mb: 'marginBottom',\n ml: 'marginLeft',\n mx: 'marginX',\n my: 'marginY',\n p: 'padding',\n pt: 'paddingTop',\n pr: 'paddingRight',\n pb: 'paddingBottom',\n pl: 'paddingLeft',\n px: 'paddingX',\n py: 'paddingY'\n};\nvar multiples = {\n marginX: ['marginLeft', 'marginRight'],\n marginY: ['marginTop', 'marginBottom'],\n paddingX: ['paddingLeft', 'paddingRight'],\n paddingY: ['paddingTop', 'paddingBottom'],\n size: ['width', 'height']\n};\nvar scales = {\n color: 'colors',\n backgroundColor: 'colors',\n borderColor: 'colors',\n margin: 'space',\n marginTop: 'space',\n marginRight: 'space',\n marginBottom: 'space',\n marginLeft: 'space',\n marginX: 'space',\n marginY: 'space',\n padding: 'space',\n paddingTop: 'space',\n paddingRight: 'space',\n paddingBottom: 'space',\n paddingLeft: 'space',\n paddingX: 'space',\n paddingY: 'space',\n top: 'space',\n right: 'space',\n bottom: 'space',\n left: 'space',\n gridGap: 'space',\n gridColumnGap: 'space',\n gridRowGap: 'space',\n gap: 'space',\n columnGap: 'space',\n rowGap: 'space',\n fontFamily: 'fonts',\n fontSize: 'fontSizes',\n fontWeight: 'fontWeights',\n lineHeight: 'lineHeights',\n letterSpacing: 'letterSpacings',\n border: 'borders',\n borderTop: 'borders',\n borderRight: 'borders',\n borderBottom: 'borders',\n borderLeft: 'borders',\n borderWidth: 'borderWidths',\n borderStyle: 'borderStyles',\n borderRadius: 'radii',\n borderTopRightRadius: 'radii',\n borderTopLeftRadius: 'radii',\n borderBottomRightRadius: 'radii',\n borderBottomLeftRadius: 'radii',\n borderTopWidth: 'borderWidths',\n borderTopColor: 'colors',\n borderTopStyle: 'borderStyles',\n borderBottomWidth: 'borderWidths',\n borderBottomColor: 'colors',\n borderBottomStyle: 'borderStyles',\n borderLeftWidth: 'borderWidths',\n borderLeftColor: 'colors',\n borderLeftStyle: 'borderStyles',\n borderRightWidth: 'borderWidths',\n borderRightColor: 'colors',\n borderRightStyle: 'borderStyles',\n outlineColor: 'colors',\n boxShadow: 'shadows',\n textShadow: 'shadows',\n zIndex: 'zIndices',\n width: 'sizes',\n minWidth: 'sizes',\n maxWidth: 'sizes',\n height: 'sizes',\n minHeight: 'sizes',\n maxHeight: 'sizes',\n flexBasis: 'sizes',\n size: 'sizes',\n // svg\n fill: 'colors',\n stroke: 'colors'\n};\n\nvar positiveOrNegative = function positiveOrNegative(scale, value) {\n if (typeof value !== 'number' || value >= 0) {\n return get(scale, value, value);\n }\n\n var absolute = Math.abs(value);\n var n = get(scale, absolute, absolute);\n if (typeof n === 'string') return '-' + n;\n return n * -1;\n};\n\nvar transforms = ['margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'top', 'bottom', 'left', 'right'].reduce(function (acc, curr) {\n var _extends2;\n\n return _extends({}, acc, (_extends2 = {}, _extends2[curr] = positiveOrNegative, _extends2));\n}, {});\nexport var responsive = function responsive(styles) {\n return function (theme) {\n var next = {};\n var breakpoints = get(theme, 'breakpoints', defaultBreakpoints);\n var mediaQueries = [null].concat(breakpoints.map(function (n) {\n return \"@media screen and (min-width: \" + n + \")\";\n }));\n\n for (var key in styles) {\n var value = typeof styles[key] === 'function' ? styles[key](theme) : styles[key];\n if (value == null) continue;\n\n if (!Array.isArray(value)) {\n next[key] = value;\n continue;\n }\n\n for (var i = 0; i < value.slice(0, mediaQueries.length).length; i++) {\n var media = mediaQueries[i];\n\n if (!media) {\n next[key] = value[i];\n continue;\n }\n\n next[media] = next[media] || {};\n if (value[i] == null) continue;\n next[media][key] = value[i];\n }\n }\n\n return next;\n };\n};\nexport var css = function css(args) {\n return function (props) {\n if (props === void 0) {\n props = {};\n }\n\n var theme = _extends({}, defaultTheme, {}, props.theme || props);\n\n var result = {};\n var obj = typeof args === 'function' ? args(theme) : args;\n var styles = responsive(obj)(theme);\n\n for (var key in styles) {\n var x = styles[key];\n var val = typeof x === 'function' ? x(theme) : x;\n\n if (key === 'variant') {\n var variant = css(get(theme, val))(theme);\n result = _extends({}, result, {}, variant);\n continue;\n }\n\n if (val && typeof val === 'object') {\n result[key] = css(val)(theme);\n continue;\n }\n\n var prop = get(aliases, key, key);\n var scaleName = get(scales, prop);\n var scale = get(theme, scaleName, get(theme, prop, {}));\n var transform = get(transforms, prop, get);\n var value = transform(scale, val, val);\n\n if (multiples[prop]) {\n var dirs = multiples[prop];\n\n for (var i = 0; i < dirs.length; i++) {\n result[dirs[i]] = value;\n }\n } else {\n result[prop] = value;\n }\n }\n\n return result;\n };\n};\nexport default css;\n","import { get, createParser } from '@styled-system/core';\nimport css from '@styled-system/css';\nexport var variant = function variant(_ref) {\n var _config;\n\n var scale = _ref.scale,\n _ref$prop = _ref.prop,\n prop = _ref$prop === void 0 ? 'variant' : _ref$prop,\n _ref$variants = _ref.variants,\n variants = _ref$variants === void 0 ? {} : _ref$variants,\n key = _ref.key;\n var sx;\n\n if (Object.keys(variants).length) {\n sx = function sx(value, scale, props) {\n return css(get(scale, value, null))(props.theme);\n };\n } else {\n sx = function sx(value, scale) {\n return get(scale, value, null);\n };\n }\n\n sx.scale = scale || key;\n sx.defaults = variants;\n var config = (_config = {}, _config[prop] = sx, _config);\n var parser = createParser(config);\n return parser;\n};\nexport default variant;\nexport var buttonStyle = variant({\n key: 'buttons'\n});\nexport var textStyle = variant({\n key: 'textStyles',\n prop: 'textStyle'\n});\nexport var colorStyle = variant({\n key: 'colorStyles',\n prop: 'colors'\n});\n","import { createStyleFunction, createParser } from '@styled-system/core'; // v4 api shims\n\nimport layout from '@styled-system/layout';\nimport color from '@styled-system/color';\nimport typography from '@styled-system/typography';\nimport flexbox from '@styled-system/flexbox';\nimport grid from '@styled-system/grid';\nimport border from '@styled-system/border';\nimport background from '@styled-system/background';\nimport position from '@styled-system/position';\nexport { get, createParser, createStyleFunction, compose, system } from '@styled-system/core';\nexport { margin, padding, space } from '@styled-system/space';\nexport { color } from '@styled-system/color';\nexport { layout } from '@styled-system/layout';\nexport { typography } from '@styled-system/typography';\nexport { flexbox } from '@styled-system/flexbox';\nexport { border } from '@styled-system/border';\nexport { background } from '@styled-system/background';\nexport { position } from '@styled-system/position';\nexport { grid } from '@styled-system/grid';\nexport { shadow } from '@styled-system/shadow';\nexport { default as boxShadow, default as textShadow } from '@styled-system/shadow';\nexport { variant, buttonStyle, textStyle, colorStyle } from '@styled-system/variant';\nvar width = layout.width,\n height = layout.height,\n minWidth = layout.minWidth,\n minHeight = layout.minHeight,\n maxWidth = layout.maxWidth,\n maxHeight = layout.maxHeight,\n size = layout.size,\n verticalAlign = layout.verticalAlign,\n display = layout.display,\n overflow = layout.overflow,\n overflowX = layout.overflowX,\n overflowY = layout.overflowY;\nvar opacity = color.opacity;\nvar fontSize = typography.fontSize,\n fontFamily = typography.fontFamily,\n fontWeight = typography.fontWeight,\n lineHeight = typography.lineHeight,\n textAlign = typography.textAlign,\n fontStyle = typography.fontStyle,\n letterSpacing = typography.letterSpacing;\nvar alignItems = flexbox.alignItems,\n alignContent = flexbox.alignContent,\n justifyItems = flexbox.justifyItems,\n justifyContent = flexbox.justifyContent,\n flexWrap = flexbox.flexWrap,\n flexDirection = flexbox.flexDirection,\n flex = flexbox.flex,\n flexGrow = flexbox.flexGrow,\n flexShrink = flexbox.flexShrink,\n flexBasis = flexbox.flexBasis,\n justifySelf = flexbox.justifySelf,\n alignSelf = flexbox.alignSelf,\n order = flexbox.order;\nvar gridGap = grid.gridGap,\n gridColumnGap = grid.gridColumnGap,\n gridRowGap = grid.gridRowGap,\n gridColumn = grid.gridColumn,\n gridRow = grid.gridRow,\n gridAutoFlow = grid.gridAutoFlow,\n gridAutoColumns = grid.gridAutoColumns,\n gridAutoRows = grid.gridAutoRows,\n gridTemplateColumns = grid.gridTemplateColumns,\n gridTemplateRows = grid.gridTemplateRows,\n gridTemplateAreas = grid.gridTemplateAreas,\n gridArea = grid.gridArea;\nvar borderWidth = border.borderWidth,\n borderStyle = border.borderStyle,\n borderColor = border.borderColor,\n borderTop = border.borderTop,\n borderRight = border.borderRight,\n borderBottom = border.borderBottom,\n borderLeft = border.borderLeft,\n borderRadius = border.borderRadius;\nvar backgroundImage = background.backgroundImage,\n backgroundSize = background.backgroundSize,\n backgroundPosition = background.backgroundPosition,\n backgroundRepeat = background.backgroundRepeat;\nvar zIndex = position.zIndex,\n top = position.top,\n right = position.right,\n bottom = position.bottom,\n left = position.left;\nexport { default as borders } from '@styled-system/border';\nexport { width, height, minWidth, minHeight, maxWidth, maxHeight, size, verticalAlign, display, overflow, overflowX, overflowY // color\n, opacity // typography\n, fontSize, fontFamily, fontWeight, lineHeight, textAlign, fontStyle, letterSpacing // flexbox\n, alignItems, alignContent, justifyItems, justifyContent, flexWrap, flexDirection, flex, flexGrow, flexShrink, flexBasis, justifySelf, alignSelf, order // grid\n, gridGap, gridColumnGap, gridRowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea // border\n, borderWidth, borderStyle, borderColor, borderTop, borderRight, borderBottom, borderLeft, borderRadius // background\n, backgroundImage, backgroundSize, backgroundPosition, backgroundRepeat // position\n, zIndex, top, right, bottom, left }; // v4 style API shim\n\nexport var style = function style(_ref) {\n var prop = _ref.prop,\n cssProperty = _ref.cssProperty,\n alias = _ref.alias,\n key = _ref.key,\n transformValue = _ref.transformValue,\n scale = _ref.scale,\n properties = _ref.properties;\n var config = {};\n config[prop] = createStyleFunction({\n properties: properties,\n property: cssProperty || prop,\n scale: key,\n defaultScale: scale,\n transform: transformValue\n });\n if (alias) config[alias] = config[prop];\n var parse = createParser(config);\n return parse;\n};\n","// eslint-disable-next-line no-restricted-syntax\nimport * as styles from \"styled-system\";\n\nexport const gap = styles.system({\n gap: {\n property: \"gap\",\n scale: \"space\",\n },\n rowGap: {\n property: \"rowGap\",\n scale: \"space\",\n },\n columnGap: {\n property: \"columnGap\",\n scale: \"space\",\n },\n});\n\nconst typeScale = styles.variant({\n key: \"typography\",\n prop: \"typeScale\",\n});\n\nexport const COMMON = styles.compose(\n styles.color,\n styles.space,\n styles.system({\n cursor: true,\n whiteSpace: true,\n })\n);\n\nexport const BORDER = styles.compose(\n styles.border,\n styles.borderTop,\n styles.borderRight,\n styles.borderBottom,\n styles.borderLeft,\n styles.borderWidth,\n styles.borderStyle,\n styles.borderColor,\n styles.borderRadius,\n // After reading the docs, these seem duplicate to styles.border\n // styles.border.borderBottomLeftRadius,\n // styles.border.borderBottomRightRadius,\n // styles.border.borderTopLeftRadius,\n // styles.border.borderTopRightRadius,\n styles.boxShadow\n);\n\nexport const TYPOGRAPHY = styles.compose(\n typeScale,\n styles.fontFamily,\n styles.fontStyle,\n styles.fontWeight,\n styles.lineHeight,\n styles.textAlign\n);\n\nexport const LAYOUT = styles.compose(\n styles.display,\n styles.size,\n styles.width,\n styles.height,\n styles.minWidth,\n styles.minHeight,\n styles.maxWidth,\n styles.maxHeight,\n styles.overflow,\n styles.verticalAlign\n);\n\nexport const POSITION = styles.compose(\n styles.position,\n styles.zIndex,\n styles.top,\n styles.right,\n styles.bottom,\n styles.left\n);\n\nexport const FLEXBOX = styles.compose(\n styles.flexBasis,\n styles.flexDirection,\n styles.flexWrap,\n styles.alignContent,\n styles.alignItems,\n styles.justifyContent,\n styles.justifyItems,\n styles.order,\n styles.flex,\n styles.flexShrink,\n styles.flexGrow,\n styles.justifySelf,\n styles.alignSelf,\n gap\n);\n\nexport const GRID = styles.grid;\n","import {\n type ResponsiveValue,\n compose,\n system,\n variant,\n type BackgroundProps,\n type BorderProps,\n type ColorProps,\n type FlexboxProps,\n type GridProps,\n type LayoutProps,\n type PositionProps,\n type ShadowProps,\n type SpaceProps,\n type TypographyProps,\n background,\n border,\n color,\n flexbox,\n grid,\n layout,\n position,\n shadow,\n space,\n typography,\n} from \"styled-system\";\nimport type { TypeResponsiveTypographySize } from \"./types/system-props\";\nimport type { Property as CssProperty } from \"csstype\";\n\n// https://styled-system.com/custom-props\nexport interface TypeCustomSystemProps {\n cursor?: ResponsiveValue<CssProperty.Cursor>;\n whiteSpace?: ResponsiveValue<CssProperty.WhiteSpace>;\n}\n\nexport const customSystemProps = compose(\n system({\n cursor: true,\n whiteSpace: true,\n })\n);\n\n// https://styled-system.com/variants\nexport interface TypeVariantSystemProps {\n typeScale?: TypeResponsiveTypographySize;\n}\n\nexport const variantSystemProps = compose(\n variant({\n key: \"typography\",\n prop: \"typeScale\",\n })\n);\n\nexport interface TypeSystemProps\n extends TypeCustomSystemProps,\n TypeVariantSystemProps,\n BackgroundProps,\n BorderProps,\n ColorProps,\n FlexboxProps,\n GridProps,\n LayoutProps,\n PositionProps,\n ShadowProps,\n SpaceProps,\n TypographyProps {}\n\nexport const systemProps = compose(\n customSystemProps,\n variantSystemProps,\n\n background,\n border,\n color,\n flexbox,\n grid,\n layout,\n position,\n shadow,\n space,\n typography\n);\n\n// including deprecated support for old type names in case they are needed for the intial TS release\nexport {\n type BackgroundProps as TypeBackgroundSystemProps,\n background as backgroundSystemProps,\n type BorderProps as TypeBorderSystemProps,\n border as borderSystemProps,\n /**\n @deprecated: Use TypeColorSystemProps instead.\n */\n type ColorProps as TypeBackgroundColorSystemProp,\n type ColorProps as TypeColorSystemProps,\n color as colorSystemProps,\n type FlexboxProps as TypeFlexboxSystemProps,\n flexbox as flexboxSystemProps,\n type GridProps as TypeGridSystemProps,\n grid as gridSystemProps,\n type LayoutProps as TypeLayoutSystemProps,\n layout as layoutSystemProps,\n type PositionProps as TypePositionSystemProps,\n position as positionSystemProps,\n type ShadowProps as TypeShadowSystemProps,\n shadow as shadowSystemProps,\n type SpaceProps as TypeSpaceSystemProps,\n space as spaceSystemProps,\n type TypographyProps as TypeTypographySystemProps,\n typography as typographySystemProps,\n};\n","const defaultPurple = {\n color: \"colors.text.body\",\n background: \"colors.container.background.decorative.purple\",\n};\n\nconst suggestion = {\n color: \"colors.text.body\",\n background: \"colors.container.background.decorative.blue\",\n};\n\nconst passive = {\n color: \"colors.text.body\",\n background: \"colors.container.background.decorative.neutral\",\n};\n\nconst primary = {\n color: \"colors.text.body\",\n background: \"colors.container.background.decorative.blue\",\n};\n\nconst secondary = {\n color: \"colors.text.body\",\n background: \"colors.container.background.decorative.yellow\",\n};\n\nconst common = {\n color: \"colors.text.inverse\",\n background: \"colors.aqua.600\",\n};\n\nconst approval = {\n color: \"colors.text.body\",\n background: \"colors.container.background.decorative.orange\",\n};\n\n//Deprecated former \"types\"\n\n/**\n * @deprecated Use badgeColor instead\n */\n\nexport const legacyBadgeColors = {\n primary,\n secondary,\n passive,\n common,\n approval,\n default: defaultPurple,\n suggestion,\n};\n\nexport const badgeColors = {\n green: \"green\",\n blue: \"blue\",\n purple: \"purple\",\n yellow: \"yellow\",\n orange: \"orange\",\n red: \"red\",\n neutral: \"neutral\",\n magenta: \"magenta\",\n pink: \"pink\",\n aqua: \"aqua\",\n teal: \"teal\",\n} as const;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,YAAuB;AACvB,6BAAgB;AAChB,8BAAiB;;;ACFjB,+BAAmB;;;;;;;;;;;;;;;;ACAnB,IAAAA,KAAAC,GAAA,CAAAC,IAAAC,OAAA;AAQA,MAAIC,KAAwB,OAAO,uBAC/BC,KAAiB,OAAO,UAAU,gBAClCC,KAAmB,OAAO,UAAU;AAExC,WAASC,GAASC,IAAK;AACtB,QAAIA,MAAQ,KACX,OAAM,IAAI,UAAU,uDAAuD;AAG5E,WAAO,OAAOA,EAAG;EAClB;AAEA,WAASC,KAAkB;AAC1B,QAAI;AACH,UAAI,CAAC,OAAO,OACX,QAAO;AAMR,UAAIC,KAAQ,IAAI,OAAO,KAAK;AAE5B,UADAA,GAAM,CAAC,IAAI,MACP,OAAO,oBAAoBA,EAAK,EAAE,CAAC,MAAM,IAC5C,QAAO;AAKR,eADIC,IAAQ,CAAA,GACHC,IAAI,GAAGA,IAAI,IAAIA,IACvBD,GAAM,MAAM,OAAO,aAAaC,CAAC,CAAC,IAAIA;AAEvC,UAAIC,IAAS,OAAO,oBAAoBF,CAAK,EAAE,IAAI,SAAUG,GAAG;AAC/D,eAAOH,EAAMG,CAAC;MACf,CAAC;AACD,UAAID,EAAO,KAAK,EAAE,MAAM,aACvB,QAAO;AAIR,UAAIE,IAAQ,CAAA;AAIZ,a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AAAA,MACR;AAAA,IACF;AAAA,EACF;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MAEC,MAAM,SAAS,YAAY,UAAU;AAAA,MACrC;AAAA,MACA,YAAU;AAAA,MACV,iBAAe,QAAQ;AAAA,MACvB,sBAAoB;AAAA,MACpB,qBAAmB,OAAO;AAAA,MAC1B;AAAA,MAIA;AAAA,MACC,GAAG;AAAA,MAEJ,uDAAC,uBAAAC,SAAA,EAAI,SAAQ,QAAO,YAAW,UAAS,gBAAe,UACpD;AAAA,mBACC;AAAA,UAAC,wBAAAC;AAAA,UAAA;AAAA,YACC,IAAI;AAAA,YACJ,MAAM;AAAA,YACN,MAAM,SAAS,UAAU,SAAS;AAAA,YAClC,eAAW;AAAA;AAAA,QACb,IACE;AAAA,QACH,YAAY;AAAA,SACf;AAAA;AAAA,EACF;AAEJ;AAEA,IAAO,gBAAQ;;;ADpDf,IAAO,gBAAQ;","names":["require_object_assign","__commonJSMin","exports","module","getOwnPropertySymbols","hasOwnProperty","propIsEnumerable","toObject","val","shouldUseNative","test1","test2","i","order2","n","test3","letter","target","source","from","to","symbols","key","import_object_assign","merge","a","b","result","assign","_assign","sort","obj","next","defaults","createMediaQuery","getValue","scale","get","def","p","undef","createParser","config","cache","parse","props","styles","shouldSort","isCacheDisabled","sx","raw","parseResponsiveStyle","parseResponsiveObject","keys","k","_createParser","mediaQueries","_props","value","media","style","_assign2","breakpoints","breakpoint","_assign3","createStyleFunction","_ref","properties","property","_ref$transform","transform","defaultScale","prop","system","args","conf","parser","compose","_len","parsers","_key","isNumber","getWidth","layout","index_esm_default","color","typography","flexbox","grid","border","background","position","getMargin","isNegative","absolute","configs","margin","padding","space","shadow","_extends","defaultBreakpoints","defaultTheme","aliases","multiples","scales","positiveOrNegative","transforms","acc","curr","_extends2","responsive","theme","css","x","variant","scaleName","dirs","_config","_ref$prop","_ref$variants","variants","width","height","minWidth","minHeight","maxWidth","maxHeight","size","verticalAlign","display","overflow","fontFamily","fontWeight","lineHeight","textAlign","fontStyle","alignItems","alignContent","justifyItems","justifyContent","flexWrap","flexDirection","flex","flexGrow","flexShrink","flexBasis","justifySelf","alignSelf","order","borderWidth","borderStyle","borderColor","borderTop","borderRight","borderBottom","borderLeft","borderRadius","zIndex","top","right","bottom","left","gap","typeScale","COMMON","BORDER","TYPOGRAPHY","LAYOUT","POSITION","FLEXBOX","customSystemProps","compose","system","variantSystemProps","variant","systemProps","background","border","color","flexbox","grid","layout","position","shadow","space","typography","styled","Box","Icon"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/Badge.tsx","../src/styles.ts","../../../node_modules/object-assign/index.js","../../../node_modules/@styled-system/core/dist/index.esm.js","../../../node_modules/@styled-system/layout/dist/index.esm.js","../../../node_modules/@styled-system/color/dist/index.esm.js","../../../node_modules/@styled-system/typography/dist/index.esm.js","../../../node_modules/@styled-system/flexbox/dist/index.esm.js","../../../node_modules/@styled-system/grid/dist/index.esm.js","../../../node_modules/@styled-system/border/dist/index.esm.js","../../../node_modules/@styled-system/background/dist/index.esm.js","../../../node_modules/@styled-system/position/dist/index.esm.js","../../../node_modules/@styled-system/space/dist/index.esm.js","../../../node_modules/@styled-system/shadow/dist/index.esm.js","../../../node_modules/@styled-system/css/dist/index.esm.js","../../../node_modules/@styled-system/variant/dist/index.esm.js","../../../node_modules/styled-system/dist/index.esm.js","../../seeds-react-system-props/src/system-props.ts","../../seeds-react-system-props/src/deprecated-system-props.ts","../src/constants.ts"],"sourcesContent":["import Badge from \"./Badge\";\n\nexport default Badge;\nexport { Badge };\nexport * from \"./BadgeTypes\";\nexport * from \"./constants\";\n","import { Icon } from \"@sproutsocial/seeds-react-icon\";\nimport { StyledBadge } from \"./styles\";\nimport type { TypeBadgeProps } from \"./BadgeTypes\";\n\nconst Badge = ({\n children,\n iconName,\n size = \"small\",\n badgeColor = \"blue\",\n color,\n ...rest\n}: TypeBadgeProps) => {\n return (\n <StyledBadge\n size={size}\n badgeColor={badgeColor}\n data-qa-badge\n // TODO: fix this type since `color` should be valid here. TS can't resolve the correct type.\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n color={color}\n {...rest}\n >\n {iconName ? (\n <Icon\n mr={200}\n name={iconName}\n size={size === \"small\" ? \"mini\" : \"small\"}\n aria-hidden\n />\n ) : null}\n {children}\n </StyledBadge>\n );\n};\n\nexport default Badge;\n","import styled from \"styled-components\";\n\nimport { COMMON } from \"@sproutsocial/seeds-react-system-props\";\n\nexport const StyledBadge = styled.span<{\n badgeColor: string;\n size: string;\n}>`\n font-family: ${(p) => p.theme.fontFamily};\n ${(p) =>\n p.size === \"small\" ? p.theme.typography[100] : p.theme.typography[200]};\n border-radius: 9999px;\n line-height: 16px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n color: ${(p) => p.theme.colors.text.body};\n background: ${(p) =>\n p.theme.colors.container.background.decorative[p.badgeColor]};\n padding: ${(p) =>\n p.size === \"small\"\n ? `${p.theme.space[0]} ${p.theme.space[200]}`\n : `${p.theme.space[300]}`};\n ${COMMON};\n`;\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","import assign from 'object-assign';\nexport var merge = function merge(a, b) {\n var result = assign({}, a, b);\n\n for (var key in a) {\n var _assign;\n\n if (!a[key] || typeof b[key] !== 'object') continue;\n assign(result, (_assign = {}, _assign[key] = assign(a[key], b[key]), _assign));\n }\n\n return result;\n}; // sort object-value responsive styles\n\nvar sort = function sort(obj) {\n var next = {};\n Object.keys(obj).sort(function (a, b) {\n return a.localeCompare(b, undefined, {\n numeric: true,\n sensitivity: 'base'\n });\n }).forEach(function (key) {\n next[key] = obj[key];\n });\n return next;\n};\n\nvar defaults = {\n breakpoints: [40, 52, 64].map(function (n) {\n return n + 'em';\n })\n};\n\nvar createMediaQuery = function createMediaQuery(n) {\n return \"@media screen and (min-width: \" + n + \")\";\n};\n\nvar getValue = function getValue(n, scale) {\n return get(scale, n, n);\n};\n\nexport var get = function get(obj, key, def, p, undef) {\n key = key && key.split ? key.split('.') : [key];\n\n for (p = 0; p < key.length; p++) {\n obj = obj ? obj[key[p]] : undef;\n }\n\n return obj === undef ? def : obj;\n};\nexport var createParser = function createParser(config) {\n var cache = {};\n\n var parse = function parse(props) {\n var styles = {};\n var shouldSort = false;\n var isCacheDisabled = props.theme && props.theme.disableStyledSystemCache;\n\n for (var key in props) {\n if (!config[key]) continue;\n var sx = config[key];\n var raw = props[key];\n var scale = get(props.theme, sx.scale, sx.defaults);\n\n if (typeof raw === 'object') {\n cache.breakpoints = !isCacheDisabled && cache.breakpoints || get(props.theme, 'breakpoints', defaults.breakpoints);\n\n if (Array.isArray(raw)) {\n cache.media = !isCacheDisabled && cache.media || [null].concat(cache.breakpoints.map(createMediaQuery));\n styles = merge(styles, parseResponsiveStyle(cache.media, sx, scale, raw, props));\n continue;\n }\n\n if (raw !== null) {\n styles = merge(styles, parseResponsiveObject(cache.breakpoints, sx, scale, raw, props));\n shouldSort = true;\n }\n\n continue;\n }\n\n assign(styles, sx(raw, scale, props));\n } // sort object-based responsive styles\n\n\n if (shouldSort) {\n styles = sort(styles);\n }\n\n return styles;\n };\n\n parse.config = config;\n parse.propNames = Object.keys(config);\n parse.cache = cache;\n var keys = Object.keys(config).filter(function (k) {\n return k !== 'config';\n });\n\n if (keys.length > 1) {\n keys.forEach(function (key) {\n var _createParser;\n\n parse[key] = createParser((_createParser = {}, _createParser[key] = config[key], _createParser));\n });\n }\n\n return parse;\n};\n\nvar parseResponsiveStyle = function parseResponsiveStyle(mediaQueries, sx, scale, raw, _props) {\n var styles = {};\n raw.slice(0, mediaQueries.length).forEach(function (value, i) {\n var media = mediaQueries[i];\n var style = sx(value, scale, _props);\n\n if (!media) {\n assign(styles, style);\n } else {\n var _assign2;\n\n assign(styles, (_assign2 = {}, _assign2[media] = assign({}, styles[media], style), _assign2));\n }\n });\n return styles;\n};\n\nvar parseResponsiveObject = function parseResponsiveObject(breakpoints, sx, scale, raw, _props) {\n var styles = {};\n\n for (var key in raw) {\n var breakpoint = breakpoints[key];\n var value = raw[key];\n var style = sx(value, scale, _props);\n\n if (!breakpoint) {\n assign(styles, style);\n } else {\n var _assign3;\n\n var media = createMediaQuery(breakpoint);\n assign(styles, (_assign3 = {}, _assign3[media] = assign({}, styles[media], style), _assign3));\n }\n }\n\n return styles;\n};\n\nexport var createStyleFunction = function createStyleFunction(_ref) {\n var properties = _ref.properties,\n property = _ref.property,\n scale = _ref.scale,\n _ref$transform = _ref.transform,\n transform = _ref$transform === void 0 ? getValue : _ref$transform,\n defaultScale = _ref.defaultScale;\n properties = properties || [property];\n\n var sx = function sx(value, scale, _props) {\n var result = {};\n var n = transform(value, scale, _props);\n if (n === null) return;\n properties.forEach(function (prop) {\n result[prop] = n;\n });\n return result;\n };\n\n sx.scale = scale;\n sx.defaults = defaultScale;\n return sx;\n}; // new v5 API\n\nexport var system = function system(args) {\n if (args === void 0) {\n args = {};\n }\n\n var config = {};\n Object.keys(args).forEach(function (key) {\n var conf = args[key];\n\n if (conf === true) {\n // shortcut definition\n config[key] = createStyleFunction({\n property: key,\n scale: key\n });\n return;\n }\n\n if (typeof conf === 'function') {\n config[key] = conf;\n return;\n }\n\n config[key] = createStyleFunction(conf);\n });\n var parser = createParser(config);\n return parser;\n};\nexport var compose = function compose() {\n var config = {};\n\n for (var _len = arguments.length, parsers = new Array(_len), _key = 0; _key < _len; _key++) {\n parsers[_key] = arguments[_key];\n }\n\n parsers.forEach(function (parser) {\n if (!parser || !parser.config) return;\n assign(config, parser.config);\n });\n var parser = createParser(config);\n return parser;\n};\n","import { system, get } from '@styled-system/core';\n\nvar isNumber = function isNumber(n) {\n return typeof n === 'number' && !isNaN(n);\n};\n\nvar getWidth = function getWidth(n, scale) {\n return get(scale, n, !isNumber(n) || n > 1 ? n : n * 100 + '%');\n};\n\nvar config = {\n width: {\n property: 'width',\n scale: 'sizes',\n transform: getWidth\n },\n height: {\n property: 'height',\n scale: 'sizes'\n },\n minWidth: {\n property: 'minWidth',\n scale: 'sizes'\n },\n minHeight: {\n property: 'minHeight',\n scale: 'sizes'\n },\n maxWidth: {\n property: 'maxWidth',\n scale: 'sizes'\n },\n maxHeight: {\n property: 'maxHeight',\n scale: 'sizes'\n },\n size: {\n properties: ['width', 'height'],\n scale: 'sizes'\n },\n overflow: true,\n overflowX: true,\n overflowY: true,\n display: true,\n verticalAlign: true\n};\nexport var layout = system(config);\nexport default layout;\n","import { system } from '@styled-system/core';\nvar config = {\n color: {\n property: 'color',\n scale: 'colors'\n },\n backgroundColor: {\n property: 'backgroundColor',\n scale: 'colors'\n },\n opacity: true\n};\nconfig.bg = config.backgroundColor;\nexport var color = system(config);\nexport default color;\n","import { system } from '@styled-system/core';\nvar defaults = {\n fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]\n};\nvar config = {\n fontFamily: {\n property: 'fontFamily',\n scale: 'fonts'\n },\n fontSize: {\n property: 'fontSize',\n scale: 'fontSizes',\n defaultScale: defaults.fontSizes\n },\n fontWeight: {\n property: 'fontWeight',\n scale: 'fontWeights'\n },\n lineHeight: {\n property: 'lineHeight',\n scale: 'lineHeights'\n },\n letterSpacing: {\n property: 'letterSpacing',\n scale: 'letterSpacings'\n },\n textAlign: true,\n fontStyle: true\n};\nexport var typography = system(config);\nexport default typography;\n","import { system } from '@styled-system/core';\nvar config = {\n alignItems: true,\n alignContent: true,\n justifyItems: true,\n justifyContent: true,\n flexWrap: true,\n flexDirection: true,\n // item\n flex: true,\n flexGrow: true,\n flexShrink: true,\n flexBasis: true,\n justifySelf: true,\n alignSelf: true,\n order: true\n};\nexport var flexbox = system(config);\nexport default flexbox;\n","import { system } from '@styled-system/core';\nvar defaults = {\n space: [0, 4, 8, 16, 32, 64, 128, 256, 512]\n};\nvar config = {\n gridGap: {\n property: 'gridGap',\n scale: 'space',\n defaultScale: defaults.space\n },\n gridColumnGap: {\n property: 'gridColumnGap',\n scale: 'space',\n defaultScale: defaults.space\n },\n gridRowGap: {\n property: 'gridRowGap',\n scale: 'space',\n defaultScale: defaults.space\n },\n gridColumn: true,\n gridRow: true,\n gridAutoFlow: true,\n gridAutoColumns: true,\n gridAutoRows: true,\n gridTemplateColumns: true,\n gridTemplateRows: true,\n gridTemplateAreas: true,\n gridArea: true\n};\nexport var grid = system(config);\nexport default grid;\n","import { system } from '@styled-system/core';\nvar config = {\n border: {\n property: 'border',\n scale: 'borders'\n },\n borderWidth: {\n property: 'borderWidth',\n scale: 'borderWidths'\n },\n borderStyle: {\n property: 'borderStyle',\n scale: 'borderStyles'\n },\n borderColor: {\n property: 'borderColor',\n scale: 'colors'\n },\n borderRadius: {\n property: 'borderRadius',\n scale: 'radii'\n },\n borderTop: {\n property: 'borderTop',\n scale: 'borders'\n },\n borderTopLeftRadius: {\n property: 'borderTopLeftRadius',\n scale: 'radii'\n },\n borderTopRightRadius: {\n property: 'borderTopRightRadius',\n scale: 'radii'\n },\n borderRight: {\n property: 'borderRight',\n scale: 'borders'\n },\n borderBottom: {\n property: 'borderBottom',\n scale: 'borders'\n },\n borderBottomLeftRadius: {\n property: 'borderBottomLeftRadius',\n scale: 'radii'\n },\n borderBottomRightRadius: {\n property: 'borderBottomRightRadius',\n scale: 'radii'\n },\n borderLeft: {\n property: 'borderLeft',\n scale: 'borders'\n },\n borderX: {\n properties: ['borderLeft', 'borderRight'],\n scale: 'borders'\n },\n borderY: {\n properties: ['borderTop', 'borderBottom'],\n scale: 'borders'\n }\n};\nconfig.borderTopWidth = {\n property: 'borderTopWidth',\n scale: 'borderWidths'\n};\nconfig.borderTopColor = {\n property: 'borderTopColor',\n scale: 'colors'\n};\nconfig.borderTopStyle = {\n property: 'borderTopStyle',\n scale: 'borderStyles'\n};\nconfig.borderTopLeftRadius = {\n property: 'borderTopLeftRadius',\n scale: 'radii'\n};\nconfig.borderTopRightRadius = {\n property: 'borderTopRightRadius',\n scale: 'radii'\n};\nconfig.borderBottomWidth = {\n property: 'borderBottomWidth',\n scale: 'borderWidths'\n};\nconfig.borderBottomColor = {\n property: 'borderBottomColor',\n scale: 'colors'\n};\nconfig.borderBottomStyle = {\n property: 'borderBottomStyle',\n scale: 'borderStyles'\n};\nconfig.borderBottomLeftRadius = {\n property: 'borderBottomLeftRadius',\n scale: 'radii'\n};\nconfig.borderBottomRightRadius = {\n property: 'borderBottomRightRadius',\n scale: 'radii'\n};\nconfig.borderLeftWidth = {\n property: 'borderLeftWidth',\n scale: 'borderWidths'\n};\nconfig.borderLeftColor = {\n property: 'borderLeftColor',\n scale: 'colors'\n};\nconfig.borderLeftStyle = {\n property: 'borderLeftStyle',\n scale: 'borderStyles'\n};\nconfig.borderRightWidth = {\n property: 'borderRightWidth',\n scale: 'borderWidths'\n};\nconfig.borderRightColor = {\n property: 'borderRightColor',\n scale: 'colors'\n};\nconfig.borderRightStyle = {\n property: 'borderRightStyle',\n scale: 'borderStyles'\n};\nexport var border = system(config);\nexport default border;\n","import { system } from '@styled-system/core';\nvar config = {\n background: true,\n backgroundImage: true,\n backgroundSize: true,\n backgroundPosition: true,\n backgroundRepeat: true\n};\nconfig.bgImage = config.backgroundImage;\nconfig.bgSize = config.backgroundSize;\nconfig.bgPosition = config.backgroundPosition;\nconfig.bgRepeat = config.backgroundRepeat;\nexport var background = system(config);\nexport default background;\n","import { system } from '@styled-system/core';\nvar defaults = {\n space: [0, 4, 8, 16, 32, 64, 128, 256, 512]\n};\nvar config = {\n position: true,\n zIndex: {\n property: 'zIndex',\n scale: 'zIndices'\n },\n top: {\n property: 'top',\n scale: 'space',\n defaultScale: defaults.space\n },\n right: {\n property: 'right',\n scale: 'space',\n defaultScale: defaults.space\n },\n bottom: {\n property: 'bottom',\n scale: 'space',\n defaultScale: defaults.space\n },\n left: {\n property: 'left',\n scale: 'space',\n defaultScale: defaults.space\n }\n};\nexport var position = system(config);\nexport default position;\n","import { get, system, compose } from '@styled-system/core';\nvar defaults = {\n space: [0, 4, 8, 16, 32, 64, 128, 256, 512]\n};\n\nvar isNumber = function isNumber(n) {\n return typeof n === 'number' && !isNaN(n);\n};\n\nvar getMargin = function getMargin(n, scale) {\n if (!isNumber(n)) {\n return get(scale, n, n);\n }\n\n var isNegative = n < 0;\n var absolute = Math.abs(n);\n var value = get(scale, absolute, absolute);\n\n if (!isNumber(value)) {\n return isNegative ? '-' + value : value;\n }\n\n return value * (isNegative ? -1 : 1);\n};\n\nvar configs = {};\nconfigs.margin = {\n margin: {\n property: 'margin',\n scale: 'space',\n transform: getMargin,\n defaultScale: defaults.space\n },\n marginTop: {\n property: 'marginTop',\n scale: 'space',\n transform: getMargin,\n defaultScale: defaults.space\n },\n marginRight: {\n property: 'marginRight',\n scale: 'space',\n transform: getMargin,\n defaultScale: defaults.space\n },\n marginBottom: {\n property: 'marginBottom',\n scale: 'space',\n transform: getMargin,\n defaultScale: defaults.space\n },\n marginLeft: {\n property: 'marginLeft',\n scale: 'space',\n transform: getMargin,\n defaultScale: defaults.space\n },\n marginX: {\n properties: ['marginLeft', 'marginRight'],\n scale: 'space',\n transform: getMargin,\n defaultScale: defaults.space\n },\n marginY: {\n properties: ['marginTop', 'marginBottom'],\n scale: 'space',\n transform: getMargin,\n defaultScale: defaults.space\n }\n};\nconfigs.margin.m = configs.margin.margin;\nconfigs.margin.mt = configs.margin.marginTop;\nconfigs.margin.mr = configs.margin.marginRight;\nconfigs.margin.mb = configs.margin.marginBottom;\nconfigs.margin.ml = configs.margin.marginLeft;\nconfigs.margin.mx = configs.margin.marginX;\nconfigs.margin.my = configs.margin.marginY;\nconfigs.padding = {\n padding: {\n property: 'padding',\n scale: 'space',\n defaultScale: defaults.space\n },\n paddingTop: {\n property: 'paddingTop',\n scale: 'space',\n defaultScale: defaults.space\n },\n paddingRight: {\n property: 'paddingRight',\n scale: 'space',\n defaultScale: defaults.space\n },\n paddingBottom: {\n property: 'paddingBottom',\n scale: 'space',\n defaultScale: defaults.space\n },\n paddingLeft: {\n property: 'paddingLeft',\n scale: 'space',\n defaultScale: defaults.space\n },\n paddingX: {\n properties: ['paddingLeft', 'paddingRight'],\n scale: 'space',\n defaultScale: defaults.space\n },\n paddingY: {\n properties: ['paddingTop', 'paddingBottom'],\n scale: 'space',\n defaultScale: defaults.space\n }\n};\nconfigs.padding.p = configs.padding.padding;\nconfigs.padding.pt = configs.padding.paddingTop;\nconfigs.padding.pr = configs.padding.paddingRight;\nconfigs.padding.pb = configs.padding.paddingBottom;\nconfigs.padding.pl = configs.padding.paddingLeft;\nconfigs.padding.px = configs.padding.paddingX;\nconfigs.padding.py = configs.padding.paddingY;\nexport var margin = system(configs.margin);\nexport var padding = system(configs.padding);\nexport var space = compose(margin, padding);\nexport default space;\n","import { system } from '@styled-system/core';\nexport var shadow = system({\n boxShadow: {\n property: 'boxShadow',\n scale: 'shadows'\n },\n textShadow: {\n property: 'textShadow',\n scale: 'shadows'\n }\n});\nexport default shadow;\n","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\n// based on https://github.com/developit/dlv\nexport var get = function get(obj, key, def, p, undef) {\n key = key && key.split ? key.split('.') : [key];\n\n for (p = 0; p < key.length; p++) {\n obj = obj ? obj[key[p]] : undef;\n }\n\n return obj === undef ? def : obj;\n};\nvar defaultBreakpoints = [40, 52, 64].map(function (n) {\n return n + 'em';\n});\nvar defaultTheme = {\n space: [0, 4, 8, 16, 32, 64, 128, 256, 512],\n fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]\n};\nvar aliases = {\n bg: 'backgroundColor',\n m: 'margin',\n mt: 'marginTop',\n mr: 'marginRight',\n mb: 'marginBottom',\n ml: 'marginLeft',\n mx: 'marginX',\n my: 'marginY',\n p: 'padding',\n pt: 'paddingTop',\n pr: 'paddingRight',\n pb: 'paddingBottom',\n pl: 'paddingLeft',\n px: 'paddingX',\n py: 'paddingY'\n};\nvar multiples = {\n marginX: ['marginLeft', 'marginRight'],\n marginY: ['marginTop', 'marginBottom'],\n paddingX: ['paddingLeft', 'paddingRight'],\n paddingY: ['paddingTop', 'paddingBottom'],\n size: ['width', 'height']\n};\nvar scales = {\n color: 'colors',\n backgroundColor: 'colors',\n borderColor: 'colors',\n margin: 'space',\n marginTop: 'space',\n marginRight: 'space',\n marginBottom: 'space',\n marginLeft: 'space',\n marginX: 'space',\n marginY: 'space',\n padding: 'space',\n paddingTop: 'space',\n paddingRight: 'space',\n paddingBottom: 'space',\n paddingLeft: 'space',\n paddingX: 'space',\n paddingY: 'space',\n top: 'space',\n right: 'space',\n bottom: 'space',\n left: 'space',\n gridGap: 'space',\n gridColumnGap: 'space',\n gridRowGap: 'space',\n gap: 'space',\n columnGap: 'space',\n rowGap: 'space',\n fontFamily: 'fonts',\n fontSize: 'fontSizes',\n fontWeight: 'fontWeights',\n lineHeight: 'lineHeights',\n letterSpacing: 'letterSpacings',\n border: 'borders',\n borderTop: 'borders',\n borderRight: 'borders',\n borderBottom: 'borders',\n borderLeft: 'borders',\n borderWidth: 'borderWidths',\n borderStyle: 'borderStyles',\n borderRadius: 'radii',\n borderTopRightRadius: 'radii',\n borderTopLeftRadius: 'radii',\n borderBottomRightRadius: 'radii',\n borderBottomLeftRadius: 'radii',\n borderTopWidth: 'borderWidths',\n borderTopColor: 'colors',\n borderTopStyle: 'borderStyles',\n borderBottomWidth: 'borderWidths',\n borderBottomColor: 'colors',\n borderBottomStyle: 'borderStyles',\n borderLeftWidth: 'borderWidths',\n borderLeftColor: 'colors',\n borderLeftStyle: 'borderStyles',\n borderRightWidth: 'borderWidths',\n borderRightColor: 'colors',\n borderRightStyle: 'borderStyles',\n outlineColor: 'colors',\n boxShadow: 'shadows',\n textShadow: 'shadows',\n zIndex: 'zIndices',\n width: 'sizes',\n minWidth: 'sizes',\n maxWidth: 'sizes',\n height: 'sizes',\n minHeight: 'sizes',\n maxHeight: 'sizes',\n flexBasis: 'sizes',\n size: 'sizes',\n // svg\n fill: 'colors',\n stroke: 'colors'\n};\n\nvar positiveOrNegative = function positiveOrNegative(scale, value) {\n if (typeof value !== 'number' || value >= 0) {\n return get(scale, value, value);\n }\n\n var absolute = Math.abs(value);\n var n = get(scale, absolute, absolute);\n if (typeof n === 'string') return '-' + n;\n return n * -1;\n};\n\nvar transforms = ['margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'top', 'bottom', 'left', 'right'].reduce(function (acc, curr) {\n var _extends2;\n\n return _extends({}, acc, (_extends2 = {}, _extends2[curr] = positiveOrNegative, _extends2));\n}, {});\nexport var responsive = function responsive(styles) {\n return function (theme) {\n var next = {};\n var breakpoints = get(theme, 'breakpoints', defaultBreakpoints);\n var mediaQueries = [null].concat(breakpoints.map(function (n) {\n return \"@media screen and (min-width: \" + n + \")\";\n }));\n\n for (var key in styles) {\n var value = typeof styles[key] === 'function' ? styles[key](theme) : styles[key];\n if (value == null) continue;\n\n if (!Array.isArray(value)) {\n next[key] = value;\n continue;\n }\n\n for (var i = 0; i < value.slice(0, mediaQueries.length).length; i++) {\n var media = mediaQueries[i];\n\n if (!media) {\n next[key] = value[i];\n continue;\n }\n\n next[media] = next[media] || {};\n if (value[i] == null) continue;\n next[media][key] = value[i];\n }\n }\n\n return next;\n };\n};\nexport var css = function css(args) {\n return function (props) {\n if (props === void 0) {\n props = {};\n }\n\n var theme = _extends({}, defaultTheme, {}, props.theme || props);\n\n var result = {};\n var obj = typeof args === 'function' ? args(theme) : args;\n var styles = responsive(obj)(theme);\n\n for (var key in styles) {\n var x = styles[key];\n var val = typeof x === 'function' ? x(theme) : x;\n\n if (key === 'variant') {\n var variant = css(get(theme, val))(theme);\n result = _extends({}, result, {}, variant);\n continue;\n }\n\n if (val && typeof val === 'object') {\n result[key] = css(val)(theme);\n continue;\n }\n\n var prop = get(aliases, key, key);\n var scaleName = get(scales, prop);\n var scale = get(theme, scaleName, get(theme, prop, {}));\n var transform = get(transforms, prop, get);\n var value = transform(scale, val, val);\n\n if (multiples[prop]) {\n var dirs = multiples[prop];\n\n for (var i = 0; i < dirs.length; i++) {\n result[dirs[i]] = value;\n }\n } else {\n result[prop] = value;\n }\n }\n\n return result;\n };\n};\nexport default css;\n","import { get, createParser } from '@styled-system/core';\nimport css from '@styled-system/css';\nexport var variant = function variant(_ref) {\n var _config;\n\n var scale = _ref.scale,\n _ref$prop = _ref.prop,\n prop = _ref$prop === void 0 ? 'variant' : _ref$prop,\n _ref$variants = _ref.variants,\n variants = _ref$variants === void 0 ? {} : _ref$variants,\n key = _ref.key;\n var sx;\n\n if (Object.keys(variants).length) {\n sx = function sx(value, scale, props) {\n return css(get(scale, value, null))(props.theme);\n };\n } else {\n sx = function sx(value, scale) {\n return get(scale, value, null);\n };\n }\n\n sx.scale = scale || key;\n sx.defaults = variants;\n var config = (_config = {}, _config[prop] = sx, _config);\n var parser = createParser(config);\n return parser;\n};\nexport default variant;\nexport var buttonStyle = variant({\n key: 'buttons'\n});\nexport var textStyle = variant({\n key: 'textStyles',\n prop: 'textStyle'\n});\nexport var colorStyle = variant({\n key: 'colorStyles',\n prop: 'colors'\n});\n","import { createStyleFunction, createParser } from '@styled-system/core'; // v4 api shims\n\nimport layout from '@styled-system/layout';\nimport color from '@styled-system/color';\nimport typography from '@styled-system/typography';\nimport flexbox from '@styled-system/flexbox';\nimport grid from '@styled-system/grid';\nimport border from '@styled-system/border';\nimport background from '@styled-system/background';\nimport position from '@styled-system/position';\nexport { get, createParser, createStyleFunction, compose, system } from '@styled-system/core';\nexport { margin, padding, space } from '@styled-system/space';\nexport { color } from '@styled-system/color';\nexport { layout } from '@styled-system/layout';\nexport { typography } from '@styled-system/typography';\nexport { flexbox } from '@styled-system/flexbox';\nexport { border } from '@styled-system/border';\nexport { background } from '@styled-system/background';\nexport { position } from '@styled-system/position';\nexport { grid } from '@styled-system/grid';\nexport { shadow } from '@styled-system/shadow';\nexport { default as boxShadow, default as textShadow } from '@styled-system/shadow';\nexport { variant, buttonStyle, textStyle, colorStyle } from '@styled-system/variant';\nvar width = layout.width,\n height = layout.height,\n minWidth = layout.minWidth,\n minHeight = layout.minHeight,\n maxWidth = layout.maxWidth,\n maxHeight = layout.maxHeight,\n size = layout.size,\n verticalAlign = layout.verticalAlign,\n display = layout.display,\n overflow = layout.overflow,\n overflowX = layout.overflowX,\n overflowY = layout.overflowY;\nvar opacity = color.opacity;\nvar fontSize = typography.fontSize,\n fontFamily = typography.fontFamily,\n fontWeight = typography.fontWeight,\n lineHeight = typography.lineHeight,\n textAlign = typography.textAlign,\n fontStyle = typography.fontStyle,\n letterSpacing = typography.letterSpacing;\nvar alignItems = flexbox.alignItems,\n alignContent = flexbox.alignContent,\n justifyItems = flexbox.justifyItems,\n justifyContent = flexbox.justifyContent,\n flexWrap = flexbox.flexWrap,\n flexDirection = flexbox.flexDirection,\n flex = flexbox.flex,\n flexGrow = flexbox.flexGrow,\n flexShrink = flexbox.flexShrink,\n flexBasis = flexbox.flexBasis,\n justifySelf = flexbox.justifySelf,\n alignSelf = flexbox.alignSelf,\n order = flexbox.order;\nvar gridGap = grid.gridGap,\n gridColumnGap = grid.gridColumnGap,\n gridRowGap = grid.gridRowGap,\n gridColumn = grid.gridColumn,\n gridRow = grid.gridRow,\n gridAutoFlow = grid.gridAutoFlow,\n gridAutoColumns = grid.gridAutoColumns,\n gridAutoRows = grid.gridAutoRows,\n gridTemplateColumns = grid.gridTemplateColumns,\n gridTemplateRows = grid.gridTemplateRows,\n gridTemplateAreas = grid.gridTemplateAreas,\n gridArea = grid.gridArea;\nvar borderWidth = border.borderWidth,\n borderStyle = border.borderStyle,\n borderColor = border.borderColor,\n borderTop = border.borderTop,\n borderRight = border.borderRight,\n borderBottom = border.borderBottom,\n borderLeft = border.borderLeft,\n borderRadius = border.borderRadius;\nvar backgroundImage = background.backgroundImage,\n backgroundSize = background.backgroundSize,\n backgroundPosition = background.backgroundPosition,\n backgroundRepeat = background.backgroundRepeat;\nvar zIndex = position.zIndex,\n top = position.top,\n right = position.right,\n bottom = position.bottom,\n left = position.left;\nexport { default as borders } from '@styled-system/border';\nexport { width, height, minWidth, minHeight, maxWidth, maxHeight, size, verticalAlign, display, overflow, overflowX, overflowY // color\n, opacity // typography\n, fontSize, fontFamily, fontWeight, lineHeight, textAlign, fontStyle, letterSpacing // flexbox\n, alignItems, alignContent, justifyItems, justifyContent, flexWrap, flexDirection, flex, flexGrow, flexShrink, flexBasis, justifySelf, alignSelf, order // grid\n, gridGap, gridColumnGap, gridRowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea // border\n, borderWidth, borderStyle, borderColor, borderTop, borderRight, borderBottom, borderLeft, borderRadius // background\n, backgroundImage, backgroundSize, backgroundPosition, backgroundRepeat // position\n, zIndex, top, right, bottom, left }; // v4 style API shim\n\nexport var style = function style(_ref) {\n var prop = _ref.prop,\n cssProperty = _ref.cssProperty,\n alias = _ref.alias,\n key = _ref.key,\n transformValue = _ref.transformValue,\n scale = _ref.scale,\n properties = _ref.properties;\n var config = {};\n config[prop] = createStyleFunction({\n properties: properties,\n property: cssProperty || prop,\n scale: key,\n defaultScale: scale,\n transform: transformValue\n });\n if (alias) config[alias] = config[prop];\n var parse = createParser(config);\n return parse;\n};\n","// eslint-disable-next-line no-restricted-syntax\nimport * as styles from \"styled-system\";\n\nexport const gap = styles.system({\n gap: {\n property: \"gap\",\n scale: \"space\",\n },\n rowGap: {\n property: \"rowGap\",\n scale: \"space\",\n },\n columnGap: {\n property: \"columnGap\",\n scale: \"space\",\n },\n});\n\nconst typeScale = styles.variant({\n key: \"typography\",\n prop: \"typeScale\",\n});\n\nexport const COMMON = styles.compose(\n styles.color,\n styles.space,\n styles.system({\n cursor: true,\n whiteSpace: true,\n })\n);\n\nexport const BORDER = styles.compose(\n styles.border,\n styles.borderTop,\n styles.borderRight,\n styles.borderBottom,\n styles.borderLeft,\n styles.borderWidth,\n styles.borderStyle,\n styles.borderColor,\n styles.borderRadius,\n // After reading the docs, these seem duplicate to styles.border\n // styles.border.borderBottomLeftRadius,\n // styles.border.borderBottomRightRadius,\n // styles.border.borderTopLeftRadius,\n // styles.border.borderTopRightRadius,\n styles.boxShadow\n);\n\nexport const TYPOGRAPHY = styles.compose(\n typeScale,\n styles.fontFamily,\n styles.fontStyle,\n styles.fontWeight,\n styles.lineHeight,\n styles.textAlign\n);\n\nexport const LAYOUT = styles.compose(\n styles.display,\n styles.size,\n styles.width,\n styles.height,\n styles.minWidth,\n styles.minHeight,\n styles.maxWidth,\n styles.maxHeight,\n styles.overflow,\n styles.verticalAlign\n);\n\nexport const POSITION = styles.compose(\n styles.position,\n styles.zIndex,\n styles.top,\n styles.right,\n styles.bottom,\n styles.left\n);\n\nexport const FLEXBOX = styles.compose(\n styles.flexBasis,\n styles.flexDirection,\n styles.flexWrap,\n styles.alignContent,\n styles.alignItems,\n styles.justifyContent,\n styles.justifyItems,\n styles.order,\n styles.flex,\n styles.flexShrink,\n styles.flexGrow,\n styles.justifySelf,\n styles.alignSelf,\n gap\n);\n\nexport const GRID = styles.grid;\n","import {\n type ResponsiveValue,\n compose,\n system,\n variant,\n type BackgroundProps,\n type BorderProps,\n type ColorProps,\n type FlexboxProps,\n type GridProps,\n type LayoutProps,\n type PositionProps,\n type ShadowProps,\n type SpaceProps,\n type TypographyProps,\n background,\n border,\n color,\n flexbox,\n grid,\n layout,\n position,\n shadow,\n space,\n typography,\n} from \"styled-system\";\nimport type { TypeResponsiveTypographySize } from \"./types/system-props\";\nimport type { Property as CssProperty } from \"csstype\";\n\n// https://styled-system.com/custom-props\nexport interface TypeCustomSystemProps {\n cursor?: ResponsiveValue<CssProperty.Cursor>;\n whiteSpace?: ResponsiveValue<CssProperty.WhiteSpace>;\n}\n\nexport const customSystemProps = compose(\n system({\n cursor: true,\n whiteSpace: true,\n })\n);\n\n// https://styled-system.com/variants\nexport interface TypeVariantSystemProps {\n typeScale?: TypeResponsiveTypographySize;\n}\n\nexport const variantSystemProps = compose(\n variant({\n key: \"typography\",\n prop: \"typeScale\",\n })\n);\n\nexport interface TypeSystemProps\n extends TypeCustomSystemProps,\n TypeVariantSystemProps,\n BackgroundProps,\n BorderProps,\n ColorProps,\n FlexboxProps,\n GridProps,\n LayoutProps,\n PositionProps,\n ShadowProps,\n SpaceProps,\n TypographyProps {}\n\nexport const systemProps = compose(\n customSystemProps,\n variantSystemProps,\n\n background,\n border,\n color,\n flexbox,\n grid,\n layout,\n position,\n shadow,\n space,\n typography\n);\n\n// including deprecated support for old type names in case they are needed for the intial TS release\nexport {\n type BackgroundProps as TypeBackgroundSystemProps,\n background as backgroundSystemProps,\n type BorderProps as TypeBorderSystemProps,\n border as borderSystemProps,\n /**\n @deprecated: Use TypeColorSystemProps instead.\n */\n type ColorProps as TypeBackgroundColorSystemProp,\n type ColorProps as TypeColorSystemProps,\n color as colorSystemProps,\n type FlexboxProps as TypeFlexboxSystemProps,\n flexbox as flexboxSystemProps,\n type GridProps as TypeGridSystemProps,\n grid as gridSystemProps,\n type LayoutProps as TypeLayoutSystemProps,\n layout as layoutSystemProps,\n type PositionProps as TypePositionSystemProps,\n position as positionSystemProps,\n type ShadowProps as TypeShadowSystemProps,\n shadow as shadowSystemProps,\n type SpaceProps as TypeSpaceSystemProps,\n space as spaceSystemProps,\n type TypographyProps as TypeTypographySystemProps,\n typography as typographySystemProps,\n};\n","const defaultPurple = {\n color: \"colors.text.body\",\n background: \"colors.container.background.decorative.purple\",\n};\n\nconst suggestion = {\n color: \"colors.text.body\",\n background: \"colors.container.background.decorative.blue\",\n};\n\nconst passive = {\n color: \"colors.text.body\",\n background: \"colors.container.background.decorative.neutral\",\n};\n\nconst primary = {\n color: \"colors.text.body\",\n background: \"colors.container.background.decorative.blue\",\n};\n\nconst secondary = {\n color: \"colors.text.body\",\n background: \"colors.container.background.decorative.yellow\",\n};\n\nconst common = {\n color: \"colors.text.inverse\",\n background: \"colors.aqua.600\",\n};\n\nconst approval = {\n color: \"colors.text.body\",\n background: \"colors.container.background.decorative.orange\",\n};\n\n//Deprecated former \"types\"\n\n/**\n * @deprecated Use badgeColor instead\n */\n\nexport const legacyBadgeColors = {\n primary,\n secondary,\n passive,\n common,\n approval,\n default: defaultPurple,\n suggestion,\n};\n\nexport const badgeColors = {\n green: \"green\",\n blue: \"blue\",\n purple: \"purple\",\n yellow: \"yellow\",\n orange: \"orange\",\n red: \"red\",\n neutral: \"neutral\",\n magenta: \"magenta\",\n pink: \"pink\",\n aqua: \"aqua\",\n teal: \"teal\",\n} as const;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,8BAAqB;;;ACArB,+BAAmB;;;;;;;;;;;;;;;;ACAnB,IAAAA,KAAAC,GAAA,CAAAC,IAAAC,OAAA;AAQA,MAAIC,KAAwB,OAAO,uBAC/BC,KAAiB,OAAO,UAAU,gBAClCC,KAAmB,OAAO,UAAU;AAExC,WAASC,GAASC,IAAK;AACtB,QAAIA,MAAQ,KACX,OAAM,IAAI,UAAU,uDAAuD;AAG5E,WAAO,OAAOA,EAAG;EAClB;AAEA,WAASC,KAAkB;AAC1B,QAAI;AACH,UAAI,CAAC,OAAO,OACX,QAAO;AAMR,UAAIC,KAAQ,IAAI,OAAO,KAAK;AAE5B,UADAA,GAAM,CAAC,IAAI,MACP,OAAO,oBAAoBA,EAAK,EAAE,CAAC,MAAM,IAC5C,QAAO;AAKR,eADIC,IAAQ,CAAA,GACHC,IAAI,GAAGA,IAAI,IAAIA,IACvBD,GAAM,MAAM,OAAO,aAAa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,oBAAoB;AAAA,EAC/B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT;AACF;AAEO,IAAM,cAAc;AAAA,EACzB,OAAO;AAAA,EACP,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,KAAK;AAAA,EACL,SAAS;AAAA,EACT,SAAS;AAAA,EACT,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AACR;;;ApB7DA,IAAO,gBAAQ;","names":["require_object_assign","__commonJSMin","exports","module","getOwnPropertySymbols","hasOwnProperty","propIsEnumerable","toObject","val","shouldUseNative","test1","test2","i","order2","n","test3","letter","target","source","from","to","symbols","key","import_object_assign","merge","a","b","result","assign","_assign","sort","obj","next","defaults","createMediaQuery","getValue","scale","get","def","p","undef","createParser","config","cache","parse","props","styles","shouldSort","isCacheDisabled","sx","raw","parseResponsiveStyle","parseResponsiveObject","keys","k","_createParser","mediaQueries","_props","value","media","style","_assign2","breakpoints","breakpoint","_assign3","createStyleFunction","_ref","properties","property","_ref$transform","transform","defaultScale","prop","system","args","conf","parser","compose","_len","parsers","_key","isNumber","getWidth","layout","index_esm_default","color","typography","flexbox","grid","border","background","position","getMargin","isNegative","absolute","configs","margin","padding","space","shadow","_extends","defaultBreakpoints","defaultTheme","aliases","multiples","scales","positiveOrNegative","transforms","acc","curr","_extends2","responsive","theme","css","x","variant","scaleName","dirs","_config","_ref$prop","_ref$variants","variants","width","height","minWidth","minHeight","maxWidth","maxHeight","size","verticalAlign","display","overflow","fontFamily","fontWeight","lineHeight","textAlign","fontStyle","alignItems","alignContent","justifyItems","justifyContent","flexWrap","flexDirection","flex","flexGrow","flexShrink","flexBasis","justifySelf","alignSelf","order","borderWidth","borderStyle","borderColor","borderTop","borderRight","borderBottom","borderLeft","borderRadius","zIndex","top","right","bottom","left","gap","typeScale","COMMON","BORDER","TYPOGRAPHY","LAYOUT","POSITION","FLEXBOX","customSystemProps","compose","system","variantSystemProps","variant","systemProps","background","border","color","flexbox","grid","layout","position","shadow","space","typography","styled"]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sproutsocial/seeds-react-badge",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Seeds React Badge",
|
|
5
5
|
"author": "Sprout Social, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"module": "dist/esm/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/esm/index.js",
|
|
14
|
+
"require": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./codemods/*": {
|
|
17
|
+
"require": "./dist/codemods/*.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"codemods"
|
|
23
|
+
],
|
|
10
24
|
"scripts": {
|
|
11
25
|
"build": "tsup --dts",
|
|
12
26
|
"build:debug": "tsup --dts --metafile",
|
|
@@ -18,8 +32,8 @@
|
|
|
18
32
|
"test:watch": "jest --watch --coverage=false"
|
|
19
33
|
},
|
|
20
34
|
"dependencies": {
|
|
21
|
-
"@sproutsocial/seeds-react-box": "^1.1.
|
|
22
|
-
"@sproutsocial/seeds-react-icon": "^1.1.
|
|
35
|
+
"@sproutsocial/seeds-react-box": "^1.1.6",
|
|
36
|
+
"@sproutsocial/seeds-react-icon": "^1.1.8",
|
|
23
37
|
"@styled-system/theme-get": "^5.1.2"
|
|
24
38
|
},
|
|
25
39
|
"devDependencies": {
|
|
@@ -33,7 +47,9 @@
|
|
|
33
47
|
"@sproutsocial/seeds-tsconfig": "*",
|
|
34
48
|
"@sproutsocial/seeds-testing": "*",
|
|
35
49
|
"@sproutsocial/seeds-react-testing-library": "*",
|
|
36
|
-
"@types/styled-system": "^5.1.15"
|
|
50
|
+
"@types/styled-system": "^5.1.15",
|
|
51
|
+
"@types/jscodeshift": "^0.11.10",
|
|
52
|
+
"jscodeshift": "^17.1.2"
|
|
37
53
|
},
|
|
38
54
|
"peerDependencies": {
|
|
39
55
|
"styled-components": "^5.2.3"
|
package/.eslintignore
DELETED
package/.eslintrc.js
DELETED
package/.turbo/turbo-build.log
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
yarn run v1.22.22
|
|
2
|
-
$ tsup --dts
|
|
3
|
-
[34mCLI[39m Building entry: src/index.ts
|
|
4
|
-
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
5
|
-
[34mCLI[39m tsup v8.5.0
|
|
6
|
-
[34mCLI[39m Using tsup config: /home/runner/work/seeds/seeds/seeds-react/seeds-react-badge/tsup.config.ts
|
|
7
|
-
[34mCLI[39m Target: es2022
|
|
8
|
-
[34mCLI[39m Cleaning output folder
|
|
9
|
-
[34mCJS[39m Build start
|
|
10
|
-
[34mESM[39m Build start
|
|
11
|
-
[32mCJS[39m [1mdist/index.js [22m[32m24.39 KB[39m
|
|
12
|
-
[32mCJS[39m [1mdist/index.js.map [22m[32m61.72 KB[39m
|
|
13
|
-
[32mCJS[39m ⚡️ Build success in 443ms
|
|
14
|
-
[32mESM[39m [1mdist/esm/index.js [22m[32m22.41 KB[39m
|
|
15
|
-
[32mESM[39m [1mdist/esm/index.js.map [22m[32m61.68 KB[39m
|
|
16
|
-
[32mESM[39m ⚡️ Build success in 464ms
|
|
17
|
-
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in 28661ms
|
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.22 KB[39m
|
|
20
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m2.22 KB[39m
|
|
21
|
-
Done in 35.21s.
|
package/CHANGELOG.md
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# @sproutsocial/seeds-react-badge
|
|
2
|
-
|
|
3
|
-
## 1.0.6
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- @sproutsocial/seeds-react-icon@1.1.7
|
|
8
|
-
|
|
9
|
-
## 1.0.5
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- @sproutsocial/seeds-react-icon@1.1.6
|
|
14
|
-
|
|
15
|
-
## 1.0.4
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- @sproutsocial/seeds-react-box@1.1.5
|
|
20
|
-
- @sproutsocial/seeds-react-icon@1.1.5
|
|
21
|
-
|
|
22
|
-
## 1.0.3
|
|
23
|
-
|
|
24
|
-
### Patch Changes
|
|
25
|
-
|
|
26
|
-
- @sproutsocial/seeds-react-box@1.1.4
|
|
27
|
-
- @sproutsocial/seeds-react-icon@1.1.4
|
|
28
|
-
|
|
29
|
-
## 1.0.2
|
|
30
|
-
|
|
31
|
-
### Patch Changes
|
|
32
|
-
|
|
33
|
-
- 22e1111: Update internal dependencies to their latest versions
|
|
34
|
-
- @sproutsocial/seeds-react-box@1.1.3
|
|
35
|
-
- @sproutsocial/seeds-react-icon@1.1.3
|
|
36
|
-
|
|
37
|
-
## 1.0.1
|
|
38
|
-
|
|
39
|
-
### Patch Changes
|
|
40
|
-
|
|
41
|
-
- 9fd8bac: Update dependencies to use semantic package version instead of wildcards
|
|
42
|
-
- Updated dependencies [9fd8bac]
|
|
43
|
-
- @sproutsocial/seeds-react-icon@1.1.2
|
|
44
|
-
- @sproutsocial/seeds-react-box@1.1.2
|
|
45
|
-
|
|
46
|
-
## 1.0.0
|
|
47
|
-
|
|
48
|
-
### Major Changes
|
|
49
|
-
|
|
50
|
-
- 84c0ffa: Migrate Badge from Racine into seeds-react-badge
|
package/jest.config.js
DELETED
package/src/Badge.stories.tsx
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
// import Numeral from "@src/Numeral";
|
|
3
|
-
// import Stack from "@src/Stack";
|
|
4
|
-
import { Text } from "@sproutsocial/seeds-react-text";
|
|
5
|
-
import { Badge, type TypeBadgeProps } from "./";
|
|
6
|
-
import { Box } from "@sproutsocial/seeds-react-box";
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
title: "Components/Badge",
|
|
10
|
-
component: Badge,
|
|
11
|
-
argTypes: {
|
|
12
|
-
badgeColor: {
|
|
13
|
-
options: [
|
|
14
|
-
"green",
|
|
15
|
-
"purple",
|
|
16
|
-
"yellow",
|
|
17
|
-
"orange",
|
|
18
|
-
"red",
|
|
19
|
-
"magenta",
|
|
20
|
-
"pink",
|
|
21
|
-
"aqua",
|
|
22
|
-
"teal",
|
|
23
|
-
"neutral",
|
|
24
|
-
],
|
|
25
|
-
control: { type: "select" },
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
args: {
|
|
29
|
-
badgeColor: "green",
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export const ConfigurableBadge = (args: TypeBadgeProps) => (
|
|
34
|
-
<Badge {...args}>I'm a badge</Badge>
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
ConfigurableBadge.story = {
|
|
38
|
-
name: "Configurable badge",
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export const permutations = () => (
|
|
42
|
-
// <Stack space={450}>
|
|
43
|
-
<Box>
|
|
44
|
-
<Box display="flex" alignItems="center">
|
|
45
|
-
<Badge badgeColor="green">Badge</Badge>
|
|
46
|
-
<Badge>Badge</Badge>
|
|
47
|
-
<Badge badgeColor="purple">Badge</Badge>
|
|
48
|
-
<Badge badgeColor="yellow">Badge</Badge>
|
|
49
|
-
<Badge badgeColor="orange">Badge</Badge>
|
|
50
|
-
<Badge badgeColor="red">Badge</Badge>
|
|
51
|
-
<Badge badgeColor="magenta">Badge</Badge>
|
|
52
|
-
<Badge badgeColor="pink">Badge</Badge>
|
|
53
|
-
<Badge badgeColor="aqua">Badge</Badge>
|
|
54
|
-
<Badge badgeColor="teal">Badge</Badge>
|
|
55
|
-
<Badge badgeColor="neutral" iconName="atom-outline">
|
|
56
|
-
Badge
|
|
57
|
-
</Badge>
|
|
58
|
-
<Badge
|
|
59
|
-
size="small"
|
|
60
|
-
type="default"
|
|
61
|
-
bg="chartreuse"
|
|
62
|
-
color="crimson"
|
|
63
|
-
p={500}
|
|
64
|
-
>
|
|
65
|
-
Radical overrides!
|
|
66
|
-
</Badge>
|
|
67
|
-
</Box>
|
|
68
|
-
<Box display="flex" alignItems="center">
|
|
69
|
-
<Badge size="large" type="secondary" iconName="sparkle-outline">
|
|
70
|
-
Supports legacy types
|
|
71
|
-
</Badge>
|
|
72
|
-
<Badge size="large">
|
|
73
|
-
{/* <Numeral fontWeight="bold" number={1569241} /> */}
|
|
74
|
-
<Text ml={200}>and children!</Text>
|
|
75
|
-
</Badge>
|
|
76
|
-
</Box>
|
|
77
|
-
</Box>
|
|
78
|
-
// </Stack>
|
|
79
|
-
);
|
|
80
|
-
|
|
81
|
-
permutations.story = {
|
|
82
|
-
name: "Permutations",
|
|
83
|
-
};
|
package/src/Badge.tsx
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import Box from "@sproutsocial/seeds-react-box";
|
|
3
|
-
import Icon from "@sproutsocial/seeds-react-icon";
|
|
4
|
-
import Container from "./styles";
|
|
5
|
-
import type { TypeBadgeProps } from "./BadgeTypes";
|
|
6
|
-
|
|
7
|
-
const Badge = ({
|
|
8
|
-
children,
|
|
9
|
-
text,
|
|
10
|
-
iconName,
|
|
11
|
-
type,
|
|
12
|
-
tip,
|
|
13
|
-
size = "small",
|
|
14
|
-
badgeColor = "blue",
|
|
15
|
-
color,
|
|
16
|
-
...rest
|
|
17
|
-
}: TypeBadgeProps) => {
|
|
18
|
-
if (children && text) {
|
|
19
|
-
throw new Error(
|
|
20
|
-
"can't use both `children` and `text` props. Text is deprecated, consider using children."
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return (
|
|
25
|
-
<Container
|
|
26
|
-
// size previously included default, which currently maps to small. Once consumers have updated this can be simplified.
|
|
27
|
-
size={size === "default" ? "large" : size}
|
|
28
|
-
badgeColor={badgeColor}
|
|
29
|
-
data-tip={tip}
|
|
30
|
-
data-qa-badge={text || ""}
|
|
31
|
-
data-qa-badge-type={type}
|
|
32
|
-
data-qa-badge-tip={tip || ""}
|
|
33
|
-
type={type}
|
|
34
|
-
// TODO: fix this type since `color` should be valid here. TS can't resolve the correct type.
|
|
35
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
36
|
-
// @ts-ignore
|
|
37
|
-
color={color}
|
|
38
|
-
{...rest}
|
|
39
|
-
>
|
|
40
|
-
<Box display="flex" alignItems="center" justifyContent="center">
|
|
41
|
-
{iconName ? (
|
|
42
|
-
<Icon
|
|
43
|
-
mr={200}
|
|
44
|
-
name={iconName}
|
|
45
|
-
size={size === "small" ? "mini" : "small"}
|
|
46
|
-
aria-hidden
|
|
47
|
-
/>
|
|
48
|
-
) : null}
|
|
49
|
-
{children || text}
|
|
50
|
-
</Box>
|
|
51
|
-
</Container>
|
|
52
|
-
);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export default Badge;
|