@teamturing/react-kit 2.21.5 → 2.21.7

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.
@@ -1,11 +1,9 @@
1
- import color from '../../packages/token-studio/esm/token/color/index.js';
2
- import '../../packages/token-studio/esm/token/typography/index.js';
3
1
  import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
4
2
  import { isFunction } from '../../packages/utils/esm/isFunction.js';
5
3
  import { isNullable } from '../../packages/utils/esm/isNullable.js';
6
4
  import { forwardRef, cloneElement } from 'react';
7
5
  import { r as reactIsExports } from '../../node_modules/react-is/index.js';
8
- import styled, { css } from 'styled-components';
6
+ import styled, { css, useTheme } from 'styled-components';
9
7
  import useProvidedOrCreatedRef from '../../hook/useProvidedOrCreatedRef.js';
10
8
  import View from '../View/index.js';
11
9
  import TextInputTrailingAction from './TextInputTrailingAction.js';
@@ -20,6 +18,7 @@ const TextInput = ({
20
18
  trailingAction,
21
19
  ...props
22
20
  }, ref) => {
21
+ const theme = useTheme();
23
22
  const inputRef = useProvidedOrCreatedRef(ref);
24
23
  const focusInput = () => {
25
24
  inputRef.current?.focus();
@@ -36,12 +35,12 @@ const TextInput = ({
36
35
  'flexShrink': 0,
37
36
  'fontSize': 'xxs',
38
37
  'fontWeight': 'medium',
39
- 'color': color['text/neutral'],
38
+ 'color': theme.colors['text/neutral'],
40
39
  '& > svg': {
41
40
  display: 'block',
42
41
  width: 16,
43
42
  height: 16,
44
- color: color['icon/neutral/bold']
43
+ color: theme.colors['icon/neutral/bold']
45
44
  }
46
45
  },
47
46
  children: typeof LeadingVisual !== 'string' && reactIsExports.isValidElementType(LeadingVisual) ? /*#__PURE__*/jsxRuntimeExports.jsx(LeadingVisual, {}) : LeadingVisual
@@ -61,12 +60,12 @@ const TextInput = ({
61
60
  'flexShrink': 0,
62
61
  'fontSize': 'xxs',
63
62
  'fontWeight': 'medium',
64
- 'color': color['text/neutral'],
63
+ 'color': theme.colors['text/neutral'],
65
64
  '& > svg': {
66
65
  display: 'block',
67
66
  width: 16,
68
67
  height: 16,
69
- color: color['icon/neutral/bold']
68
+ color: theme.colors['icon/neutral/bold']
70
69
  }
71
70
  },
72
71
  children: [typeof TrailingVisual !== 'string' && reactIsExports.isValidElementType(TrailingVisual) ? /*#__PURE__*/jsxRuntimeExports.jsx(TrailingVisual, {}) : TrailingVisual, trailingAction ? /*#__PURE__*/cloneElement(trailingAction, {
@@ -8,9 +8,5 @@ const surfaceElevation = {
8
8
  const shadowElevation = {
9
9
  'shadow/overlay': shadow.shadowMedium
10
10
  };
11
- const elevation = {
12
- ...surfaceElevation,
13
- ...shadowElevation
14
- };
15
11
 
16
- export { elevation as default, shadowElevation, surfaceElevation };
12
+ export { shadowElevation, surfaceElevation };
@@ -2,7 +2,7 @@ import fontSizes from './fontSizes.js';
2
2
  import fontWeights from './fontWeights.js';
3
3
  import lineHeights from './lineHeights.js';
4
4
 
5
- const typography = {
5
+ ({
6
6
  'display1': {
7
7
  fontSize: fontSizes.display1,
8
8
  fontWeight: fontWeights.bold,
@@ -128,6 +128,6 @@ const typography = {
128
128
  fontWeight: fontWeights.bold,
129
129
  lineHeight: lineHeights[2]
130
130
  }
131
- };
131
+ });
132
132
 
133
- export { typography as default, fontSizes, fontWeights, lineHeights };
133
+ export { fontSizes, fontWeights, lineHeights };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.21.5",
3
+ "version": "2.21.7",
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",
@@ -66,5 +66,5 @@
66
66
  "react-textarea-autosize": "^8.5.3",
67
67
  "styled-system": "^5.1.5"
68
68
  },
69
- "gitHead": "d15d366a16a0a4d569411028cca623b61efcd81f"
69
+ "gitHead": "01d4f7727cb5dc9d953a857a50dbf66db1a0c734"
70
70
  }