@teamturing/react-kit 2.23.1 → 2.23.3

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/dist/index.js CHANGED
@@ -1347,6 +1347,19 @@ const SvgBarchart = props => /*#__PURE__*/React__namespace.createElement("svg",
1347
1347
  d: "M14 2h5c.6 0 1 .4 1 1v18c0 .6-.4 1-1 1h-5c-.6 0-1-.4-1-1V3c0-.6.4-1 1-1ZM5 12h5c.6 0 1 .4 1 1v8c0 .6-.4 1-1 1H5c-.6 0-1-.4-1-1v-8c0-.6.4-1 1-1Z"
1348
1348
  }));
1349
1349
 
1350
+ const SvgBook = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
1351
+ xmlns: "http://www.w3.org/2000/svg",
1352
+ width: "1em",
1353
+ height: "1em",
1354
+ fill: "none",
1355
+ viewBox: "0 0 24 24"
1356
+ }, props), /*#__PURE__*/React__namespace.createElement("path", {
1357
+ fill: "currentColor",
1358
+ fillRule: "evenodd",
1359
+ d: "M6.049 2A2.449 2.449 0 0 0 3.6 4.449v15.102a2.449 2.449 0 0 0 2.62 2.443c.045.004.09.006.135.006h13.163c.451 0 .817-.366.817-.816v-.409a.816.816 0 0 0-.817-.816H6.865a.816.816 0 0 1 0-1.633H19.518c.451 0 .817-.365.817-.816V2.816A.816.816 0 0 0 19.518 2H6.048Zm2.857 2.857a.816.816 0 0 0-.816.816v1.633c0 .451.365.816.816.816h7.347c.45 0 .816-.365.816-.816V5.673a.816.816 0 0 0-.816-.816H8.906Z",
1360
+ clipRule: "evenodd"
1361
+ }));
1362
+
1350
1363
  const SvgBookmark = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
1351
1364
  xmlns: "http://www.w3.org/2000/svg",
1352
1365
  width: "1em",
@@ -3900,6 +3913,24 @@ const SvgSchoolColor = props => /*#__PURE__*/React__namespace.createElement("svg
3900
3913
  d: "M0 0h32v32H0z"
3901
3914
  }))));
3902
3915
 
3916
+ const SvgScroll = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
3917
+ xmlns: "http://www.w3.org/2000/svg",
3918
+ width: "1em",
3919
+ height: "1em",
3920
+ fill: "none",
3921
+ viewBox: "0 0 24 24"
3922
+ }, props), /*#__PURE__*/React__namespace.createElement("path", {
3923
+ fill: "currentColor",
3924
+ fillRule: "evenodd",
3925
+ d: "M11.55 9.636a.695.695 0 0 0-.192.968l3.048 4.515c.883 1.31-.353 3.008-1.87 2.569l-.861-.249a.367.367 0 0 0-.215.703l4.634 1.502a1.96 1.96 0 0 0 1.693-.233l2.812-1.875a1.96 1.96 0 0 0 .537-2.729l-1.114-1.651a1.96 1.96 0 0 0-2.717-.533l-.452.303a1.872 1.872 0 0 1-2.594-.508l-1.75-2.591a.695.695 0 0 0-.959-.19Zm-1.97 2.168a2.84 2.84 0 1 1 4.708-3.177l1.597 2.366.226-.152a4.106 4.106 0 0 1 5.689 1.115l1.114 1.651a4.106 4.106 0 0 1-1.125 5.713l-2.813 1.875a4.106 4.106 0 0 1-3.544.49l-4.634-1.503a2.512 2.512 0 0 1 1.146-4.875L9.58 11.804Z",
3926
+ clipRule: "evenodd"
3927
+ }), /*#__PURE__*/React__namespace.createElement("path", {
3928
+ fill: "currentColor",
3929
+ fillRule: "evenodd",
3930
+ d: "M4.8 1a1 1 0 0 1 .707.293l3.5 3.5a1 1 0 0 1-1.414 1.414L5.8 4.414v11.372l1.793-1.793a1 1 0 0 1 1.414 1.414l-3.5 3.5a1 1 0 0 1-1.415 0l-3.5-3.5a1 1 0 0 1 1.415-1.414L3.8 15.786V4.414L2.007 6.207A1 1 0 0 1 .593 4.793l3.5-3.5A1 1 0 0 1 4.798 1Z",
3931
+ clipRule: "evenodd"
3932
+ }));
3933
+
3903
3934
  const SvgSearch = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
3904
3935
  xmlns: "http://www.w3.org/2000/svg",
3905
3936
  width: "1em",
@@ -4619,6 +4650,7 @@ var icons = /*#__PURE__*/Object.freeze({
4619
4650
  ArrowUpIcon: SvgArrowUp,
4620
4651
  ArrowUpLimitIcon: SvgArrowUpLimit,
4621
4652
  BarchartIcon: SvgBarchart,
4653
+ BookIcon: SvgBook,
4622
4654
  BookmarkIcon: SvgBookmark,
4623
4655
  BoxIcon: SvgBox,
4624
4656
  BusColorIcon: SvgBusColor,
@@ -4771,6 +4803,7 @@ var icons = /*#__PURE__*/Object.freeze({
4771
4803
  RepeatIcon: SvgRepeat,
4772
4804
  SchoolColorIcon: SvgSchoolColor,
4773
4805
  SchoolIcon: SvgSchool,
4806
+ ScrollIcon: SvgScroll,
4774
4807
  SearchIcon: SvgSearch,
4775
4808
  SetIcon: SvgSet,
4776
4809
  SettingIcon: SvgSetting,
@@ -21641,6 +21674,11 @@ const Select = ({
21641
21674
  const focusSelect = () => {
21642
21675
  selectRef.current?.focus();
21643
21676
  };
21677
+ React.useEffect(() => {
21678
+ if (selectRef.current) {
21679
+ setIsValueEmpty(selectRef.current.value === PLACEHOLDER_VALUE);
21680
+ }
21681
+ }, [selectRef.current]);
21644
21682
  return /*#__PURE__*/jsxRuntimeExports.jsxs(SelectWrapper, {
21645
21683
  disabled: disabled,
21646
21684
  onClick: focusSelect,
@@ -1,4 +1,4 @@
1
- import { forwardRef, useState } from 'react';
1
+ import { forwardRef, useState, useEffect } from 'react';
2
2
  import SvgChevronDown from '../../packages/icons/esm/ChevronDown.js';
3
3
  import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
4
4
  import { isFunction } from '../../packages/utils/esm/isFunction.js';
@@ -26,6 +26,11 @@ const Select = ({
26
26
  const focusSelect = () => {
27
27
  selectRef.current?.focus();
28
28
  };
29
+ useEffect(() => {
30
+ if (selectRef.current) {
31
+ setIsValueEmpty(selectRef.current.value === PLACEHOLDER_VALUE);
32
+ }
33
+ }, [selectRef.current]);
29
34
  return /*#__PURE__*/jsxRuntimeExports.jsxs(SelectWrapper, {
30
35
  disabled: disabled,
31
36
  onClick: focusSelect,
@@ -0,0 +1,17 @@
1
+ import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
2
+ import * as React from 'react';
3
+
4
+ const SvgBook = props => /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "1em",
7
+ height: "1em",
8
+ fill: "none",
9
+ viewBox: "0 0 24 24"
10
+ }, props), /*#__PURE__*/React.createElement("path", {
11
+ fill: "currentColor",
12
+ fillRule: "evenodd",
13
+ d: "M6.049 2A2.449 2.449 0 0 0 3.6 4.449v15.102a2.449 2.449 0 0 0 2.62 2.443c.045.004.09.006.135.006h13.163c.451 0 .817-.366.817-.816v-.409a.816.816 0 0 0-.817-.816H6.865a.816.816 0 0 1 0-1.633H19.518c.451 0 .817-.365.817-.816V2.816A.816.816 0 0 0 19.518 2H6.048Zm2.857 2.857a.816.816 0 0 0-.816.816v1.633c0 .451.365.816.816.816h7.347c.45 0 .816-.365.816-.816V5.673a.816.816 0 0 0-.816-.816H8.906Z",
14
+ clipRule: "evenodd"
15
+ }));
16
+
17
+ export { SvgBook as default };
@@ -0,0 +1,22 @@
1
+ import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
2
+ import * as React from 'react';
3
+
4
+ const SvgScroll = props => /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "1em",
7
+ height: "1em",
8
+ fill: "none",
9
+ viewBox: "0 0 24 24"
10
+ }, props), /*#__PURE__*/React.createElement("path", {
11
+ fill: "currentColor",
12
+ fillRule: "evenodd",
13
+ d: "M11.55 9.636a.695.695 0 0 0-.192.968l3.048 4.515c.883 1.31-.353 3.008-1.87 2.569l-.861-.249a.367.367 0 0 0-.215.703l4.634 1.502a1.96 1.96 0 0 0 1.693-.233l2.812-1.875a1.96 1.96 0 0 0 .537-2.729l-1.114-1.651a1.96 1.96 0 0 0-2.717-.533l-.452.303a1.872 1.872 0 0 1-2.594-.508l-1.75-2.591a.695.695 0 0 0-.959-.19Zm-1.97 2.168a2.84 2.84 0 1 1 4.708-3.177l1.597 2.366.226-.152a4.106 4.106 0 0 1 5.689 1.115l1.114 1.651a4.106 4.106 0 0 1-1.125 5.713l-2.813 1.875a4.106 4.106 0 0 1-3.544.49l-4.634-1.503a2.512 2.512 0 0 1 1.146-4.875L9.58 11.804Z",
14
+ clipRule: "evenodd"
15
+ }), /*#__PURE__*/React.createElement("path", {
16
+ fill: "currentColor",
17
+ fillRule: "evenodd",
18
+ d: "M4.8 1a1 1 0 0 1 .707.293l3.5 3.5a1 1 0 0 1-1.414 1.414L5.8 4.414v11.372l1.793-1.793a1 1 0 0 1 1.414 1.414l-3.5 3.5a1 1 0 0 1-1.415 0l-3.5-3.5a1 1 0 0 1 1.415-1.414L3.8 15.786V4.414L2.007 6.207A1 1 0 0 1 .593 4.793l3.5-3.5A1 1 0 0 1 4.798 1Z",
19
+ clipRule: "evenodd"
20
+ }));
21
+
22
+ export { SvgScroll as default };
@@ -16,6 +16,7 @@ export { default as ArrowUpIcon } from './ArrowUp.js';
16
16
  export { default as ArrowUpDownIcon } from './ArrowUpDown.js';
17
17
  export { default as ArrowUpLimitIcon } from './ArrowUpLimit.js';
18
18
  export { default as BarchartIcon } from './Barchart.js';
19
+ export { default as BookIcon } from './Book.js';
19
20
  export { default as BookmarkIcon } from './Bookmark.js';
20
21
  export { default as BoxIcon } from './Box.js';
21
22
  export { default as BusColorIcon } from './BusColor.js';
@@ -168,6 +169,7 @@ export { default as RefreshIcon } from './Refresh.js';
168
169
  export { default as RepeatIcon } from './Repeat.js';
169
170
  export { default as SchoolIcon } from './School.js';
170
171
  export { default as SchoolColorIcon } from './SchoolColor.js';
172
+ export { default as ScrollIcon } from './Scroll.js';
171
173
  export { default as SearchIcon } from './Search.js';
172
174
  export { default as SetIcon } from './Set.js';
173
175
  export { default as SettingIcon } from './Setting.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.23.1",
3
+ "version": "2.23.3",
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",
@@ -55,7 +55,7 @@
55
55
  "dependencies": {
56
56
  "@floating-ui/react-dom": "^2.0.2",
57
57
  "@primer/behaviors": "^1.3.6",
58
- "@teamturing/icons": "^1.36.0",
58
+ "@teamturing/icons": "^1.37.0",
59
59
  "@teamturing/token-studio": "^1.3.0",
60
60
  "@teamturing/utils": "^1.2.1",
61
61
  "framer-motion": "^10.16.4",
@@ -66,5 +66,5 @@
66
66
  "react-textarea-autosize": "^8.5.3",
67
67
  "styled-system": "^5.1.5"
68
68
  },
69
- "gitHead": "5268a60ac707cb805ced97d347b7ab20de29b0f9"
69
+ "gitHead": "718f5dcf6952e7dfd7ff38f28ae644675b53d362"
70
70
  }