@teamturing/react-kit 1.2.3 → 1.2.5

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,7 @@ const Button = /*#__PURE__*/forwardRef(({
60
60
  }) : null]
61
61
  });
62
62
  });
63
- const BaseButton = Qe(UnstyledButton)(({
63
+ const BaseButton = styled(UnstyledButton)(({
64
64
  $loading,
65
65
  $disabled,
66
66
  fillWidth
@@ -308,7 +308,7 @@ const BaseButton = Qe(UnstyledButton)(({
308
308
  }
309
309
  }
310
310
  }));
311
- const BaseSpinner = Qe(Spinner)(variant({
311
+ const BaseSpinner = styled(Spinner)(variant({
312
312
  prop: 'size',
313
313
  variants: {
314
314
  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,7 @@ 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({
26
26
  position: 'relative',
27
27
  width: 'fit-content',
28
28
  borderRadius: radii.full,
@@ -1,7 +1,7 @@
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)`
4
+ const GradientText = styled(Text)`
5
5
  background: ${({
6
6
  theme
7
7
  }) => `linear-gradient(${theme.gradients['text/accent']})`};
@@ -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,7 @@ const Grid = /*#__PURE__*/forwardRef(({
28
28
  children: children
29
29
  });
30
30
  });
31
- const BaseGrid = Qe(View)({
31
+ const BaseGrid = styled(View)({
32
32
  display: 'flex',
33
33
  flexDirection: 'row'
34
34
  }, 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,7 @@ const IconButton = /*#__PURE__*/forwardRef(({
32
32
  })
33
33
  });
34
34
  });
35
- const BaseIconButton = Qe(UnstyledButton)(({
35
+ const BaseIconButton = styled(UnstyledButton)(({
36
36
  $loading,
37
37
  $disabled
38
38
  }) => ({
@@ -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,7 @@ const IconToggleButton = ({
29
29
  children: /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {})
30
30
  });
31
31
  };
32
- const BaseIconToggleButton = Qe(UnstyledButton)(({
32
+ const BaseIconToggleButton = styled(UnstyledButton)(({
33
33
  $disabled
34
34
  }) => ({
35
35
  'position': 'relative',
@@ -1,9 +1,9 @@
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`
6
+ const Space = styled.div`
7
7
  width: inherit;
8
8
  ${space};
9
9
  ${sx}
@@ -1,9 +1,9 @@
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`
6
+ const spin = keyframes`
7
7
  from {
8
8
  transform: rotate(0);
9
9
  }
@@ -11,7 +11,7 @@ const spin = nt`
11
11
  transform: rotate(360deg);
12
12
  }
13
13
  `;
14
- const Spinner = Qe(SvgProgressGradient)`
14
+ const Spinner = styled(SvgProgressGradient)`
15
15
  animation: ${spin} 1000ms infinite steps(8, end);
16
16
  `;
17
17
  Spinner.defaultProps = {
@@ -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,7 @@ const Stack = /*#__PURE__*/forwardRef(({
21
21
  ...props,
22
22
  children: children
23
23
  }));
24
- const BaseStack = Qe(View)({
24
+ const BaseStack = styled(View)({
25
25
  display: 'flex',
26
26
  flexDirection: 'row',
27
27
  flexWrap: 'wrap'
@@ -1,12 +1,12 @@
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({
10
10
  'display': 'block',
11
11
  'whiteSpace': 'pre-wrap',
12
12
  '& > 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,7 +10,7 @@ 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`
13
+ const View = styled.div`
14
14
  ${compose(layout, color, flexbox, background, border, position, shadow)}
15
15
  ${sx}
16
16
  `;
@@ -1,7 +1,7 @@
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`
4
+ const UnstyledButton = styled.button`
5
5
  background: none;
6
6
  border: 0;
7
7
  padding: 0;
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.5",
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",
@@ -11,9 +11,11 @@
11
11
  "esm"
12
12
  ],
13
13
  "exports": {
14
- "require": "./dist/index.js",
15
- "types": "./dist/index.d.ts",
16
- "import": "./esm/index.js"
14
+ ".": {
15
+ "require": "./dist/index.js",
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./esm/index.js"
18
+ }
17
19
  },
18
20
  "repository": {
19
21
  "type": "git",
@@ -34,6 +36,7 @@
34
36
  "@types/styled-system__css": "^5.0.17",
35
37
  "csstype": "^3.1.2",
36
38
  "react": "^18.2.0",
39
+ "rollup-plugin-postcss": "^4.0.2",
37
40
  "styled-components": "^6.0.7"
38
41
  },
39
42
  "peerDependencies": {
@@ -41,12 +44,12 @@
41
44
  "@types/styled-system": "^5.1.17",
42
45
  "@types/styled-system__css": "^5.0.17",
43
46
  "react": "*",
44
- "styled-component": "*"
47
+ "styled-components": "*"
45
48
  },
46
49
  "dependencies": {
47
50
  "@teamturing/icons": "^1.17.6",
48
51
  "@teamturing/token-studio": "^1.1.6",
49
52
  "styled-system": "^5.1.5"
50
53
  },
51
- "gitHead": "6caa1ad5a9e4de618caf305b9b26ae46c40455c2"
54
+ "gitHead": "254ac43f043f5d8f575fb032f744eb71b256ea77"
52
55
  }
@@ -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 };