@teamturing/react-kit 1.2.3 → 1.2.4

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.
@@ -2,7 +2,7 @@ import color from '../../packages/token-studio/esm/token/color/index.js';
2
2
  import radii from '../../packages/token-studio/esm/token/radii/index.js';
3
3
  import typography from '../../packages/token-studio/esm/token/typography/index.js';
4
4
  import { forwardRef } from 'react';
5
- import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
5
+ import styled from 'styled-components';
6
6
  import '../../node_modules/styled-system/dist/index.esm.js';
7
7
  import Spinner from '../Spinner/index.js';
8
8
  import View from '../View/index.js';
@@ -60,7 +60,10 @@ const Button = /*#__PURE__*/forwardRef(({
60
60
  }) : null]
61
61
  });
62
62
  });
63
- const BaseButton = Qe(UnstyledButton)(({
63
+ const BaseButton = styled(UnstyledButton).withConfig({
64
+ displayName: "Button__BaseButton",
65
+ componentId: "sc-1yhc0ra-0"
66
+ })(({
64
67
  $loading,
65
68
  $disabled,
66
69
  fillWidth
@@ -308,7 +311,10 @@ const BaseButton = Qe(UnstyledButton)(({
308
311
  }
309
312
  }
310
313
  }));
311
- const BaseSpinner = Qe(Spinner)(variant({
314
+ const BaseSpinner = styled(Spinner).withConfig({
315
+ displayName: "Button__BaseSpinner",
316
+ componentId: "sc-1yhc0ra-1"
317
+ })(variant({
312
318
  prop: 'size',
313
319
  variants: {
314
320
  l: {
@@ -1,7 +1,7 @@
1
1
  import color from '../../packages/token-studio/esm/token/color/index.js';
2
2
  import radii from '../../packages/token-studio/esm/token/radii/index.js';
3
3
  import typography from '../../packages/token-studio/esm/token/typography/index.js';
4
- import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
4
+ import styled from 'styled-components';
5
5
  import '../../node_modules/styled-system/dist/index.esm.js';
6
6
  import { sx } from '../../utils/styled-system/index.js';
7
7
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
@@ -22,7 +22,10 @@ const Chip = ({
22
22
  trailingIcon: TrailingIcon,
23
23
  children: [LeadingIcon ? /*#__PURE__*/jsxRuntimeExports.jsx(LeadingIcon, {}) : null, children, TrailingIcon ? /*#__PURE__*/jsxRuntimeExports.jsx(TrailingIcon, {}) : null]
24
24
  });
25
- const BaseChip = Qe.span({
25
+ const BaseChip = styled.span.withConfig({
26
+ displayName: "Chip__BaseChip",
27
+ componentId: "sc-sq73uo-0"
28
+ })({
26
29
  position: 'relative',
27
30
  width: 'fit-content',
28
31
  borderRadius: radii.full,
@@ -1,13 +1,11 @@
1
- import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
1
+ import styled from 'styled-components';
2
2
  import Text from '../Text/index.js';
3
3
 
4
- const GradientText = Qe(Text)`
5
- background: ${({
4
+ const GradientText = styled(Text).withConfig({
5
+ displayName: "GradientText",
6
+ componentId: "sc-1jku3z1-0"
7
+ })(["background:", ";background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;"], ({
6
8
  theme
7
- }) => `linear-gradient(${theme.gradients['text/accent']})`};
8
- background-clip: text;
9
- -webkit-background-clip: text;
10
- -webkit-text-fill-color: transparent;
11
- `;
9
+ }) => `linear-gradient(${theme.gradients['text/accent']})`);
12
10
 
13
11
  export { GradientText as default };
@@ -1,6 +1,6 @@
1
1
  import space from '../../packages/token-studio/esm/token/space/index.js';
2
2
  import { forwardRef } from 'react';
3
- import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
3
+ import styled from 'styled-components';
4
4
  import '../../node_modules/styled-system/dist/index.esm.js';
5
5
  import { forcePixelValue } from '../../utils/forcePixelValue.js';
6
6
  import { isArray } from '../../utils/isArray.js';
@@ -28,7 +28,10 @@ const Grid = /*#__PURE__*/forwardRef(({
28
28
  children: children
29
29
  });
30
30
  });
31
- const BaseGrid = Qe(View)({
31
+ const BaseGrid = styled(View).withConfig({
32
+ displayName: "Grid__BaseGrid",
33
+ componentId: "sc-4l957f-0"
34
+ })({
32
35
  display: 'flex',
33
36
  flexDirection: 'row'
34
37
  }, variant({
@@ -1,7 +1,7 @@
1
1
  import color from '../../packages/token-studio/esm/token/color/index.js';
2
2
  import radii from '../../packages/token-studio/esm/token/radii/index.js';
3
3
  import { forwardRef } from 'react';
4
- import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
4
+ import styled from 'styled-components';
5
5
  import '../../node_modules/styled-system/dist/index.esm.js';
6
6
  import Spinner from '../Spinner/index.js';
7
7
  import UnstyledButton from '../_UnstyledButton.js';
@@ -32,7 +32,10 @@ const IconButton = /*#__PURE__*/forwardRef(({
32
32
  })
33
33
  });
34
34
  });
35
- const BaseIconButton = Qe(UnstyledButton)(({
35
+ const BaseIconButton = styled(UnstyledButton).withConfig({
36
+ displayName: "IconButton__BaseIconButton",
37
+ componentId: "sc-13ybfes-0"
38
+ })(({
36
39
  $loading,
37
40
  $disabled
38
41
  }) => ({
@@ -1,6 +1,6 @@
1
1
  import color from '../../packages/token-studio/esm/token/color/index.js';
2
2
  import radii from '../../packages/token-studio/esm/token/radii/index.js';
3
- import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
3
+ import styled from 'styled-components';
4
4
  import '../../node_modules/styled-system/dist/index.esm.js';
5
5
  import { sx } from '../../utils/styled-system/index.js';
6
6
  import UnstyledButton from '../_UnstyledButton.js';
@@ -29,7 +29,10 @@ const IconToggleButton = ({
29
29
  children: /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {})
30
30
  });
31
31
  };
32
- const BaseIconToggleButton = Qe(UnstyledButton)(({
32
+ const BaseIconToggleButton = styled(UnstyledButton).withConfig({
33
+ displayName: "IconToggleButton__BaseIconToggleButton",
34
+ componentId: "sc-1y68w0-0"
35
+ })(({
33
36
  $disabled
34
37
  }) => ({
35
38
  'position': 'relative',
@@ -1,12 +1,11 @@
1
- import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
1
+ import styled from 'styled-components';
2
2
  import '../../node_modules/styled-system/dist/index.esm.js';
3
3
  import { sx } from '../../utils/styled-system/index.js';
4
4
  import { space } from '../../node_modules/@styled-system/space/dist/index.esm.js';
5
5
 
6
- const Space = Qe.div`
7
- width: inherit;
8
- ${space};
9
- ${sx}
10
- `;
6
+ const Space = styled.div.withConfig({
7
+ displayName: "Space",
8
+ componentId: "sc-4g4g8r-0"
9
+ })(["width:inherit;", ";", ""], space, sx);
11
10
 
12
11
  export { Space as default };
@@ -1,19 +1,13 @@
1
1
  import 'react';
2
2
  import SvgProgressGradient from '../../packages/icons/esm/ProgressGradient.js';
3
3
  import color from '../../packages/token-studio/esm/token/color/index.js';
4
- import Qe, { keyframes as nt } from '../../node_modules/styled-components/dist/styled-components.esm.js';
4
+ import styled, { keyframes } from 'styled-components';
5
5
 
6
- const spin = nt`
7
- from {
8
- transform: rotate(0);
9
- }
10
- to {
11
- transform: rotate(360deg);
12
- }
13
- `;
14
- const Spinner = Qe(SvgProgressGradient)`
15
- animation: ${spin} 1000ms infinite steps(8, end);
16
- `;
6
+ const spin = keyframes(["from{transform:rotate(0);}to{transform:rotate(360deg);}"]);
7
+ const Spinner = styled(SvgProgressGradient).withConfig({
8
+ displayName: "Spinner",
9
+ componentId: "sc-13dlgyx-0"
10
+ })(["animation:", " 1000ms infinite steps(8,end);"], spin);
17
11
  Spinner.defaultProps = {
18
12
  width: 32,
19
13
  height: 32,
@@ -1,6 +1,6 @@
1
1
  import space from '../../packages/token-studio/esm/token/space/index.js';
2
2
  import { forwardRef } from 'react';
3
- import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
3
+ import styled from 'styled-components';
4
4
  import '../../node_modules/styled-system/dist/index.esm.js';
5
5
  import { forcePixelValue } from '../../utils/forcePixelValue.js';
6
6
  import View from '../View/index.js';
@@ -21,7 +21,10 @@ const Stack = /*#__PURE__*/forwardRef(({
21
21
  ...props,
22
22
  children: children
23
23
  }));
24
- const BaseStack = Qe(View)({
24
+ const BaseStack = styled(View).withConfig({
25
+ displayName: "Stack__BaseStack",
26
+ componentId: "sc-1lqh56h-0"
27
+ })({
25
28
  display: 'flex',
26
29
  flexDirection: 'row',
27
30
  flexWrap: 'wrap'
@@ -1,12 +1,15 @@
1
1
  import typography from '../../packages/token-studio/esm/token/typography/index.js';
2
- import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
2
+ import styled from 'styled-components';
3
3
  import { fontSize, fontWeight, lineHeight, textAlign } from '../../node_modules/styled-system/dist/index.esm.js';
4
4
  import { sx, wordBreak, whiteSpace, textDecoration } from '../../utils/styled-system/index.js';
5
5
  import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
6
6
  import { compose } from '../../node_modules/@styled-system/core/dist/index.esm.js';
7
7
  import { color } from '../../node_modules/@styled-system/color/dist/index.esm.js';
8
8
 
9
- const Text = Qe.span({
9
+ const Text = styled.span.withConfig({
10
+ displayName: "Text",
11
+ componentId: "sc-yuorjy-0"
12
+ })({
10
13
  'display': 'block',
11
14
  'whiteSpace': 'pre-wrap',
12
15
  '& > span': {
@@ -1,4 +1,4 @@
1
- import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
1
+ import styled from 'styled-components';
2
2
  import '../../node_modules/styled-system/dist/index.esm.js';
3
3
  import { sx } from '../../utils/styled-system/index.js';
4
4
  import { compose } from '../../node_modules/@styled-system/core/dist/index.esm.js';
@@ -10,9 +10,9 @@ import { border } from '../../node_modules/@styled-system/border/dist/index.esm.
10
10
  import { position } from '../../node_modules/@styled-system/position/dist/index.esm.js';
11
11
  import { shadow } from '../../node_modules/@styled-system/shadow/dist/index.esm.js';
12
12
 
13
- const View = Qe.div`
14
- ${compose(layout, color, flexbox, background, border, position, shadow)}
15
- ${sx}
16
- `;
13
+ const View = styled.div.withConfig({
14
+ displayName: "View",
15
+ componentId: "sc-1v428e-0"
16
+ })(["", " ", ""], compose(layout, color, flexbox, background, border, position, shadow), sx);
17
17
 
18
18
  export { View as default };
@@ -1,14 +1,9 @@
1
- import Qe from '../node_modules/styled-components/dist/styled-components.esm.js';
1
+ import styled from 'styled-components';
2
2
  import { sx } from '../utils/styled-system/index.js';
3
3
 
4
- const UnstyledButton = Qe.button`
5
- background: none;
6
- border: 0;
7
- padding: 0;
8
- outline: none;
9
- cursor: pointer;
10
-
11
- ${sx}
12
- `;
4
+ const UnstyledButton = styled.button.withConfig({
5
+ displayName: "_UnstyledButton__UnstyledButton",
6
+ componentId: "sc-j96ib-0"
7
+ })(["background:none;border:0;padding:0;outline:none;cursor:pointer;", ""], sx);
13
8
 
14
9
  export { UnstyledButton as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "React components, hooks for create teamturing web application",
5
5
  "author": "Sungchang Park <psch300@gmail.com> (https://github.com/psch300)",
6
6
  "homepage": "https://github.com/weareteamturing/bombe#readme",
@@ -32,6 +32,7 @@
32
32
  "@types/lodash-es": "^4.17.9",
33
33
  "@types/styled-system": "^5.1.17",
34
34
  "@types/styled-system__css": "^5.0.17",
35
+ "babel-plugin-styled-components": "^2.1.4",
35
36
  "csstype": "^3.1.2",
36
37
  "react": "^18.2.0",
37
38
  "styled-components": "^6.0.7"
@@ -41,12 +42,12 @@
41
42
  "@types/styled-system": "^5.1.17",
42
43
  "@types/styled-system__css": "^5.0.17",
43
44
  "react": "*",
44
- "styled-component": "*"
45
+ "styled-components": "*"
45
46
  },
46
47
  "dependencies": {
47
48
  "@teamturing/icons": "^1.17.6",
48
49
  "@teamturing/token-studio": "^1.1.6",
49
50
  "styled-system": "^5.1.5"
50
51
  },
51
- "gitHead": "6caa1ad5a9e4de618caf305b9b26ae46c40455c2"
52
+ "gitHead": "9322765304ef558814b573121f206de2c696603a"
52
53
  }
@@ -1,12 +0,0 @@
1
- import memoize from '../../memoize/dist/emotion-memoize.esm.js';
2
-
3
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
4
-
5
- var isPropValid = /* #__PURE__ */memoize(function (prop) {
6
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
7
- /* o */ && prop.charCodeAt(1) === 110
8
- /* n */ && prop.charCodeAt(2) < 91;
9
- }
10
- /* Z+1 */);
11
-
12
- export { isPropValid as default };
@@ -1,9 +0,0 @@
1
- function memoize(fn) {
2
- var cache = Object.create(null);
3
- return function (arg) {
4
- if (cache[arg] === undefined) cache[arg] = fn(arg);
5
- return cache[arg];
6
- };
7
- }
8
-
9
- export { memoize as default };
@@ -1,51 +0,0 @@
1
- var unitlessKeys = {
2
- animationIterationCount: 1,
3
- aspectRatio: 1,
4
- borderImageOutset: 1,
5
- borderImageSlice: 1,
6
- borderImageWidth: 1,
7
- boxFlex: 1,
8
- boxFlexGroup: 1,
9
- boxOrdinalGroup: 1,
10
- columnCount: 1,
11
- columns: 1,
12
- flex: 1,
13
- flexGrow: 1,
14
- flexPositive: 1,
15
- flexShrink: 1,
16
- flexNegative: 1,
17
- flexOrder: 1,
18
- gridRow: 1,
19
- gridRowEnd: 1,
20
- gridRowSpan: 1,
21
- gridRowStart: 1,
22
- gridColumn: 1,
23
- gridColumnEnd: 1,
24
- gridColumnSpan: 1,
25
- gridColumnStart: 1,
26
- msGridRow: 1,
27
- msGridRowSpan: 1,
28
- msGridColumn: 1,
29
- msGridColumnSpan: 1,
30
- fontWeight: 1,
31
- lineHeight: 1,
32
- opacity: 1,
33
- order: 1,
34
- orphans: 1,
35
- tabSize: 1,
36
- widows: 1,
37
- zIndex: 1,
38
- zoom: 1,
39
- WebkitLineClamp: 1,
40
- // SVG-related properties
41
- fillOpacity: 1,
42
- floodOpacity: 1,
43
- stopOpacity: 1,
44
- strokeDasharray: 1,
45
- strokeDashoffset: 1,
46
- strokeMiterlimit: 1,
47
- strokeOpacity: 1,
48
- strokeWidth: 1
49
- };
50
-
51
- export { unitlessKeys as default };