@teamturing/react-kit 2.20.1 → 2.21.0

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.
@@ -0,0 +1,6 @@
1
+ type Options = {
2
+ initialSelectIndex?: number;
3
+ };
4
+ declare const useTabState: ({ initialSelectIndex }: Options) => (number | ((index: number) => void))[];
5
+ export default useTabState;
6
+ export type { Options as UseTabStateOptions };
@@ -0,0 +1,6 @@
1
+ type Options = {
2
+ initialState?: boolean;
3
+ };
4
+ declare const useToggleState: ({ initialState }: Options) => readonly [boolean, () => void, () => void, () => void];
5
+ export default useToggleState;
6
+ export type { Options as UseToggleStateOptions };
package/dist/index.d.ts CHANGED
@@ -101,7 +101,8 @@ export { default as useProvidedOrCreatedRef } from './hook/useProvidedOrCreatedR
101
101
  export { default as useRelocation } from './hook/useRelocation';
102
102
  export { default as useResize } from './hook/useResize';
103
103
  export { default as useSafeLayoutEffect } from './hook/useSafeLayoutEffect';
104
- export { default as useToggleHandler } from './hook/useToggleHandler';
104
+ export { default as useTabState } from './hook/useTabState';
105
+ export { default as useToggleState } from './hook/useToggleState';
105
106
  /**
106
107
  * theme
107
108
  */
package/dist/index.js CHANGED
@@ -3985,6 +3985,28 @@ const SvgTop = props => /*#__PURE__*/React__namespace.createElement("svg", _exte
3985
3985
  clipRule: "evenodd"
3986
3986
  }));
3987
3987
 
3988
+ const SvgTouch = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
3989
+ xmlns: "http://www.w3.org/2000/svg",
3990
+ width: "1em",
3991
+ height: "1em",
3992
+ fill: "none",
3993
+ viewBox: "0 0 24 24"
3994
+ }, props), /*#__PURE__*/React__namespace.createElement("g", {
3995
+ fill: "currentColor",
3996
+ fillRule: "evenodd",
3997
+ clipPath: "url(#touch_svg__a)",
3998
+ clipRule: "evenodd"
3999
+ }, /*#__PURE__*/React__namespace.createElement("path", {
4000
+ d: "M.6 5.906A4.106 4.106 0 0 1 4.706 1.8h9.1a4.106 4.106 0 0 1 4.106 4.106v2.868a1.073 1.073 0 0 1-2.145 0V5.906a1.96 1.96 0 0 0-1.96-1.96H4.705a1.96 1.96 0 0 0-1.961 1.96v9.1a1.96 1.96 0 0 0 1.961 1.961h1.848a1.073 1.073 0 1 1 0 2.145H4.706A4.106 4.106 0 0 1 .6 15.006v-9.1Z"
4001
+ }), /*#__PURE__*/React__namespace.createElement("path", {
4002
+ d: "M11.483 10.636a.695.695 0 0 0-.192.968l3.048 4.515c.883 1.31-.353 3.008-1.87 2.569l-.86-.249a.367.367 0 0 0-.216.702l4.634 1.503a1.96 1.96 0 0 0 1.693-.233l2.812-1.875a1.96 1.96 0 0 0 .538-2.729l-1.115-1.652a1.96 1.96 0 0 0-2.717-.532l-.452.303a1.872 1.872 0 0 1-2.594-.508l-1.75-2.591a.694.694 0 0 0-.959-.19Zm-1.97 2.168a2.84 2.84 0 0 1 4.708-3.177l1.597 2.366.226-.152a4.106 4.106 0 0 1 5.689 1.115l1.115 1.651a4.106 4.106 0 0 1-1.126 5.713l-2.812 1.875a4.106 4.106 0 0 1-3.545.49l-4.634-1.503a2.512 2.512 0 0 1 1.147-4.875l-2.365-3.503Z"
4003
+ })), /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
4004
+ id: "touch_svg__a"
4005
+ }, /*#__PURE__*/React__namespace.createElement("path", {
4006
+ fill: "#fff",
4007
+ d: "M0 0h24v24H0z"
4008
+ }))));
4009
+
3988
4010
  const SvgTrash = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
3989
4011
  xmlns: "http://www.w3.org/2000/svg",
3990
4012
  width: "1em",
@@ -4064,60 +4086,6 @@ const SvgUniversity = props => /*#__PURE__*/React__namespace.createElement("svg"
4064
4086
  d: "M21.426 15.401a.92.92 0 1 1-1.841 0 .92.92 0 0 1 1.841 0Z"
4065
4087
  }));
4066
4088
 
4067
- const SvgUnlimitedTicket = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
4068
- xmlns: "http://www.w3.org/2000/svg",
4069
- width: "1em",
4070
- height: "1em",
4071
- fill: "none",
4072
- viewBox: "0 0 32 32"
4073
- }, props), /*#__PURE__*/React__namespace.createElement("path", {
4074
- fill: "#D1D5DB",
4075
- fillRule: "evenodd",
4076
- d: "M2.396 8.313c-.53 0-.958.429-.958.958v4.312a1.917 1.917 0 0 1 0 3.834v4.312c0 .53.429.959.958.959h18.208c.53 0 .959-.43.959-.959v-4.312a1.917 1.917 0 0 1 0-3.834V9.271c0-.53-.43-.959-.959-.959H2.396Zm6.331 9.44c.02.173.161.303.33.303h4.886c.169 0 .31-.13.33-.302l.419-3.719c.038-.333-.366-.516-.58-.262l-1.243 1.475-.919-2.01a.491.491 0 0 0-.9 0l-.92 2.01-1.242-1.475c-.214-.254-.618-.071-.58.262l.42 3.719Z",
4077
- clipRule: "evenodd"
4078
- }), /*#__PURE__*/React__namespace.createElement("path", {
4079
- fill: "currentColor",
4080
- d: "M29.382 17.39a4.089 4.089 0 0 0-2.937-1.09c-1.89.064-3.056 1.28-4.407 2.688l-.007.007-.008-.007c-1.35-1.407-2.51-2.623-4.406-2.687A4.072 4.072 0 0 0 14.7 17.39a3.947 3.947 0 0 0-1.284 2.9c0 1.117.45 2.149 1.27 2.906.76.7 1.749 1.089 2.797 1.089h.147c1.89-.064 3.056-1.28 4.407-2.688v-.007l.007.008c1.351 1.407 2.51 2.623 4.407 2.687h.148a4.078 4.078 0 0 0 2.797-1.09 3.914 3.914 0 0 0 1.27-2.906c0-1.089-.465-2.15-1.285-2.9Zm-11.817 5.127a2.221 2.221 0 0 1-1.594-.587 2.206 2.206 0 0 1-.709-1.64 2.232 2.232 0 0 1 2.222-2.228h.081c1.07.035 1.808.75 3.115 2.114.03.036.066.07.096.1l-.008.013.008.007c-.03.036-.067.071-.096.1-1.307 1.371-2.045 2.085-3.115 2.12Zm10.548-.587a2.226 2.226 0 0 1-1.595.587c-1.07-.035-1.808-.75-3.114-2.115a1.264 1.264 0 0 0-.096-.099l.007-.014h-.007c.03-.035.066-.07.096-.099 1.306-1.365 2.044-2.079 3.114-2.114a2.278 2.278 0 0 1 1.587.594c.465.424.716 1.004.716 1.633 0 .623-.25 1.203-.708 1.627Z"
4081
- }), /*#__PURE__*/React__namespace.createElement("path", {
4082
- fill: "#fff",
4083
- fillRule: "evenodd",
4084
- d: "M22.53 18.479c1.157-1.18 2.258-2.122 3.915-2.178a4.089 4.089 0 0 1 2.937 1.089c.82.75 1.285 1.81 1.285 2.9 0 1.117-.45 2.149-1.27 2.906a4.078 4.078 0 0 1-2.797 1.089h-.148c-1.661-.056-2.757-.996-3.91-2.174l-.256-.263-.154-.16-.09-.087.003-.003-.007-.008v.008l-.003.002-.007.008-.077.08c-.137.143-.274.285-.409.423-1.155 1.178-2.256 2.118-3.91 2.174h-.148a4.111 4.111 0 0 1-2.798-1.09 3.914 3.914 0 0 1-1.27-2.906c0-1.089.466-2.15 1.285-2.9a4.072 4.072 0 0 1 2.916-1.088c1.663.056 2.759.998 3.914 2.177l.318.329.155.161.02.02.007.007.007-.007.003-.003.172-.179.317-.327Zm-.5-.519c1.167-1.191 2.45-2.312 4.39-2.378a4.81 4.81 0 0 1 3.45 1.28 4.665 4.665 0 0 1 1.515 3.427c0 1.317-.533 2.54-1.5 3.434a4.797 4.797 0 0 1-3.285 1.28H26.428c-1.945-.065-3.223-1.184-4.386-2.374-1.166 1.19-2.448 2.309-4.386 2.374H17.484a4.83 4.83 0 0 1-3.285-1.279 4.632 4.632 0 0 1-1.501-3.435c0-1.29.55-2.542 1.515-3.427a4.79 4.79 0 0 1 3.427-1.28c1.947.066 3.226 1.187 4.39 2.378Zm-.168.86.161.168-.161-.169Zm-4.297 3.697c1.07-.035 1.808-.75 3.115-2.122.03-.028.066-.063.096-.099l-.008-.007.008-.014a1.264 1.264 0 0 1-.096-.099c-1.307-1.365-2.045-2.079-3.115-2.114h-.081a2.232 2.232 0 0 0-2.222 2.228c0 .636.251 1.216.709 1.64.428.396.996.608 1.594.587Zm4.477-.916-.004-.003h.007l-.003.003Zm1.963-2.03c-.188.188-.387.395-.601.62a1.39 1.39 0 0 0-.089.09l-.007.008h.007l-.007.014c.03.029.066.064.096.1 1.306 1.364 2.044 2.079 3.114 2.114a2.226 2.226 0 0 0 1.595-.587 2.197 2.197 0 0 0 .708-1.627c0-.629-.25-1.209-.716-1.633a2.278 2.278 0 0 0-1.587-.594c-.894.03-1.556.533-2.513 1.494Z",
4085
- clipRule: "evenodd"
4086
- }));
4087
-
4088
- const SvgUnlimitedTicketColor = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
4089
- xmlns: "http://www.w3.org/2000/svg",
4090
- width: "1em",
4091
- height: "1em",
4092
- fill: "none",
4093
- viewBox: "0 0 32 32"
4094
- }, props), /*#__PURE__*/React__namespace.createElement("path", {
4095
- fill: "url(#unlimited_ticket_color_svg__a)",
4096
- fillRule: "evenodd",
4097
- d: "M2.396 8.313c-.53 0-.958.429-.958.958v4.312a1.917 1.917 0 0 1 0 3.834v4.312c0 .53.429.959.958.959h18.208c.53 0 .959-.43.959-.959v-4.312a1.917 1.917 0 0 1 0-3.834V9.271c0-.53-.43-.959-.959-.959H2.396Zm6.331 9.44c.02.173.161.303.33.303h4.886c.169 0 .31-.13.33-.302l.419-3.719c.038-.333-.366-.516-.58-.262l-1.243 1.475-.919-2.01a.491.491 0 0 0-.9 0l-.92 2.01-1.242-1.475c-.214-.254-.618-.071-.58.262l.42 3.719Z",
4098
- clipRule: "evenodd"
4099
- }), /*#__PURE__*/React__namespace.createElement("path", {
4100
- fill: "#9C7EEF",
4101
- d: "M29.382 17.39a4.089 4.089 0 0 0-2.937-1.09c-1.89.064-3.056 1.28-4.407 2.688l-.007.007-.008-.007c-1.35-1.407-2.51-2.623-4.406-2.687A4.072 4.072 0 0 0 14.7 17.39a3.947 3.947 0 0 0-1.284 2.9c0 1.117.45 2.149 1.27 2.906.76.7 1.749 1.089 2.797 1.089h.147c1.89-.064 3.056-1.28 4.407-2.688v-.007l.007.008c1.351 1.407 2.51 2.623 4.407 2.687h.148a4.078 4.078 0 0 0 2.797-1.09 3.914 3.914 0 0 0 1.27-2.906c0-1.089-.465-2.15-1.285-2.9Zm-11.817 5.127a2.221 2.221 0 0 1-1.594-.587 2.206 2.206 0 0 1-.709-1.64 2.232 2.232 0 0 1 2.222-2.228h.081c1.07.035 1.808.75 3.115 2.114.03.036.066.07.096.1l-.008.013.008.007c-.03.036-.067.071-.096.1-1.307 1.371-2.045 2.085-3.115 2.12Zm10.548-.587a2.226 2.226 0 0 1-1.595.587c-1.07-.035-1.808-.75-3.114-2.115a1.264 1.264 0 0 0-.096-.099l.007-.014h-.007c.03-.035.066-.07.096-.099 1.306-1.365 2.044-2.079 3.114-2.114a2.278 2.278 0 0 1 1.587.594c.465.424.716 1.004.716 1.633 0 .623-.25 1.203-.708 1.627Z"
4102
- }), /*#__PURE__*/React__namespace.createElement("path", {
4103
- fill: "#fff",
4104
- fillRule: "evenodd",
4105
- d: "M22.53 18.479c1.157-1.18 2.258-2.122 3.915-2.178a4.089 4.089 0 0 1 2.937 1.089c.82.75 1.285 1.81 1.285 2.9 0 1.117-.45 2.149-1.27 2.906a4.078 4.078 0 0 1-2.797 1.089h-.148c-1.661-.056-2.757-.996-3.91-2.174l-.256-.263-.154-.16-.09-.087.003-.003-.007-.008v.008l-.003.002-.007.008-.077.08c-.137.143-.274.285-.409.423-1.155 1.178-2.256 2.118-3.91 2.174h-.148a4.111 4.111 0 0 1-2.798-1.09 3.914 3.914 0 0 1-1.27-2.906c0-1.089.466-2.15 1.285-2.9a4.072 4.072 0 0 1 2.916-1.088c1.663.056 2.759.998 3.914 2.177l.318.329.155.161.02.02.007.007.007-.007.003-.003.172-.179.317-.327Zm-.5-.519c1.167-1.191 2.45-2.312 4.39-2.378a4.81 4.81 0 0 1 3.45 1.28 4.665 4.665 0 0 1 1.515 3.427c0 1.317-.533 2.54-1.5 3.434a4.797 4.797 0 0 1-3.285 1.28H26.428c-1.945-.065-3.223-1.184-4.386-2.374-1.166 1.19-2.448 2.309-4.386 2.374H17.484a4.83 4.83 0 0 1-3.285-1.279 4.632 4.632 0 0 1-1.501-3.435c0-1.29.55-2.542 1.515-3.427a4.79 4.79 0 0 1 3.427-1.28c1.947.066 3.226 1.187 4.39 2.378Zm-.168.86.161.168-.161-.169Zm-4.297 3.697c1.07-.035 1.808-.75 3.115-2.122.03-.028.066-.063.096-.099l-.008-.007.008-.014a1.264 1.264 0 0 1-.096-.099c-1.307-1.365-2.045-2.079-3.115-2.114h-.081a2.232 2.232 0 0 0-2.222 2.228c0 .636.251 1.216.709 1.64.428.396.996.608 1.594.587Zm4.477-.916-.004-.003h.007l-.003.003Zm1.963-2.03c-.188.188-.387.395-.601.62a1.39 1.39 0 0 0-.089.09l-.007.008h.007l-.007.014c.03.029.066.064.096.1 1.306 1.364 2.044 2.079 3.114 2.114a2.226 2.226 0 0 0 1.595-.587 2.197 2.197 0 0 0 .708-1.627c0-.629-.25-1.209-.716-1.633a2.278 2.278 0 0 0-1.587-.594c-.894.03-1.556.533-2.513 1.494Z",
4106
- clipRule: "evenodd"
4107
- }), /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("linearGradient", {
4108
- id: "unlimited_ticket_color_svg__a",
4109
- x1: 2.587,
4110
- x2: 14.343,
4111
- y1: 10.058,
4112
- y2: 25.686,
4113
- gradientUnits: "userSpaceOnUse"
4114
- }, /*#__PURE__*/React__namespace.createElement("stop", {
4115
- stopColor: "#0F0E0F"
4116
- }), /*#__PURE__*/React__namespace.createElement("stop", {
4117
- offset: 1,
4118
- stopColor: "#595959"
4119
- }))));
4120
-
4121
4089
  const SvgUserBlocked = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
4122
4090
  xmlns: "http://www.w3.org/2000/svg",
4123
4091
  width: "1em",
@@ -4519,13 +4487,12 @@ var icons = /*#__PURE__*/Object.freeze({
4519
4487
  TicketIcon: SvgTicket,
4520
4488
  TimeIcon: SvgTime,
4521
4489
  TopIcon: SvgTop,
4490
+ TouchIcon: SvgTouch,
4522
4491
  TrashIcon: SvgTrash,
4523
4492
  TreasureboxIcon: SvgTreasurebox,
4524
4493
  TrophyIcon: SvgTrophy,
4525
4494
  UndoIcon: SvgUndo,
4526
4495
  UniversityIcon: SvgUniversity,
4527
- UnlimitedTicketColorIcon: SvgUnlimitedTicketColor,
4528
- UnlimitedTicketIcon: SvgUnlimitedTicket,
4529
4496
  UserBlockedIcon: SvgUserBlocked,
4530
4497
  UserCheckIcon: SvgUserCheck,
4531
4498
  UserPlusIcon: SvgUserPlus,
@@ -21201,7 +21168,7 @@ const useFocusZone = (settings = {}, dependencies = []) => {
21201
21168
  };
21202
21169
  };
21203
21170
 
21204
- const useToggleHandler = ({
21171
+ const useToggleState = ({
21205
21172
  initialState = false
21206
21173
  }) => {
21207
21174
  const [state, setState] = React.useState(initialState);
@@ -21214,12 +21181,7 @@ const useToggleHandler = ({
21214
21181
  const toggle = React.useCallback(() => {
21215
21182
  setState(prev => !prev);
21216
21183
  }, []);
21217
- return {
21218
- state,
21219
- on,
21220
- off,
21221
- toggle
21222
- };
21184
+ return [state, toggle, on, off];
21223
21185
  };
21224
21186
 
21225
21187
  const OverlayPopper = ({
@@ -21242,12 +21204,7 @@ const OverlayPopper = ({
21242
21204
  middleware: [offset(space[1]), flip(), shift()],
21243
21205
  strategy: 'fixed'
21244
21206
  });
21245
- const {
21246
- state: isOpen,
21247
- toggle: toggleOverlay,
21248
- on: openOverlay,
21249
- off: closeOverlay
21250
- } = useToggleHandler({
21207
+ const [isOpen, toggleOverlay, openOverlay, closeOverlay] = useToggleState({
21251
21208
  initialState: false
21252
21209
  });
21253
21210
  const handleOverlayToggle = () => {
@@ -25613,6 +25570,16 @@ const useOutsideClick = ({
25613
25570
  });
25614
25571
  };
25615
25572
 
25573
+ const useTabState = ({
25574
+ initialSelectIndex = 0
25575
+ }) => {
25576
+ const [selectedIndex, setSelectedIndex] = React.useState(initialSelectIndex);
25577
+ const handleSelect = index => {
25578
+ setSelectedIndex(index);
25579
+ };
25580
+ return [selectedIndex, handleSelect];
25581
+ };
25582
+
25616
25583
  exports.ActionList = index$a;
25617
25584
  exports.AnimatePresence = AnimatePresence;
25618
25585
  exports.Avatar = index$9;
@@ -25670,6 +25637,7 @@ exports.useProvidedOrCreatedRef = useProvidedOrCreatedRef;
25670
25637
  exports.useRelocation = useRelocation;
25671
25638
  exports.useResize = useResize;
25672
25639
  exports.useSafeLayoutEffect = useSafeLayoutEffect;
25673
- exports.useToggleHandler = useToggleHandler;
25640
+ exports.useTabState = useTabState;
25641
+ exports.useToggleState = useToggleState;
25674
25642
  exports.whiteSpace = whiteSpace;
25675
25643
  exports.wordBreak = wordBreak;
@@ -5,7 +5,7 @@ import { isFunction } from '../../packages/utils/esm/isFunction.js';
5
5
  import { Children, cloneElement } from 'react';
6
6
  import useFocusTrap from '../../hook/useFocusTrap.js';
7
7
  import useFocusZone from '../../hook/useFocusZone.js';
8
- import useToggleHandler from '../../hook/useToggleHandler.js';
8
+ import useToggleState from '../../hook/useToggleState.js';
9
9
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
10
10
  import { autoUpdate } from '../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js';
11
11
  import { offset, flip, shift } from '../../node_modules/@floating-ui/core/dist/floating-ui.core.js';
@@ -30,12 +30,7 @@ const OverlayPopper = ({
30
30
  middleware: [offset(space[1]), flip(), shift()],
31
31
  strategy: 'fixed'
32
32
  });
33
- const {
34
- state: isOpen,
35
- toggle: toggleOverlay,
36
- on: openOverlay,
37
- off: closeOverlay
38
- } = useToggleHandler({
33
+ const [isOpen, toggleOverlay, openOverlay, closeOverlay] = useToggleState({
39
34
  initialState: false
40
35
  });
41
36
  const handleOverlayToggle = () => {
@@ -0,0 +1,13 @@
1
+ import { useState } from 'react';
2
+
3
+ const useTabState = ({
4
+ initialSelectIndex = 0
5
+ }) => {
6
+ const [selectedIndex, setSelectedIndex] = useState(initialSelectIndex);
7
+ const handleSelect = index => {
8
+ setSelectedIndex(index);
9
+ };
10
+ return [selectedIndex, handleSelect];
11
+ };
12
+
13
+ export { useTabState as default };
@@ -1,6 +1,6 @@
1
1
  import { useState, useCallback } from 'react';
2
2
 
3
- const useToggleHandler = ({
3
+ const useToggleState = ({
4
4
  initialState = false
5
5
  }) => {
6
6
  const [state, setState] = useState(initialState);
@@ -13,12 +13,7 @@ const useToggleHandler = ({
13
13
  const toggle = useCallback(() => {
14
14
  setState(prev => !prev);
15
15
  }, []);
16
- return {
17
- state,
18
- on,
19
- off,
20
- toggle
21
- };
16
+ return [state, toggle, on, off];
22
17
  };
23
18
 
24
- export { useToggleHandler as default };
19
+ export { useToggleState as default };
package/esm/index.js CHANGED
@@ -50,7 +50,8 @@ export { default as useProvidedOrCreatedRef } from './hook/useProvidedOrCreatedR
50
50
  export { default as useRelocation } from './hook/useRelocation.js';
51
51
  export { default as useResize } from './hook/useResize.js';
52
52
  export { default as useSafeLayoutEffect } from './hook/useSafeLayoutEffect.js';
53
- export { default as useToggleHandler } from './hook/useToggleHandler.js';
53
+ export { default as useTabState } from './hook/useTabState.js';
54
+ export { default as useToggleState } from './hook/useToggleState.js';
54
55
  export { default as theme } from './theme/index.js';
55
56
  export { lineClamp, sx, textDecoration, whiteSpace, wordBreak } from './utils/styled-system/index.js';
56
57
  export { AnimatePresence } from './node_modules/framer-motion/dist/es/components/AnimatePresence/index.js';
@@ -0,0 +1,26 @@
1
+ import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
2
+ import * as React from 'react';
3
+
4
+ const SvgTouch = 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("g", {
11
+ fill: "currentColor",
12
+ fillRule: "evenodd",
13
+ clipPath: "url(#touch_svg__a)",
14
+ clipRule: "evenodd"
15
+ }, /*#__PURE__*/React.createElement("path", {
16
+ d: "M.6 5.906A4.106 4.106 0 0 1 4.706 1.8h9.1a4.106 4.106 0 0 1 4.106 4.106v2.868a1.073 1.073 0 0 1-2.145 0V5.906a1.96 1.96 0 0 0-1.96-1.96H4.705a1.96 1.96 0 0 0-1.961 1.96v9.1a1.96 1.96 0 0 0 1.961 1.961h1.848a1.073 1.073 0 1 1 0 2.145H4.706A4.106 4.106 0 0 1 .6 15.006v-9.1Z"
17
+ }), /*#__PURE__*/React.createElement("path", {
18
+ d: "M11.483 10.636a.695.695 0 0 0-.192.968l3.048 4.515c.883 1.31-.353 3.008-1.87 2.569l-.86-.249a.367.367 0 0 0-.216.702l4.634 1.503a1.96 1.96 0 0 0 1.693-.233l2.812-1.875a1.96 1.96 0 0 0 .538-2.729l-1.115-1.652a1.96 1.96 0 0 0-2.717-.532l-.452.303a1.872 1.872 0 0 1-2.594-.508l-1.75-2.591a.694.694 0 0 0-.959-.19Zm-1.97 2.168a2.84 2.84 0 0 1 4.708-3.177l1.597 2.366.226-.152a4.106 4.106 0 0 1 5.689 1.115l1.115 1.651a4.106 4.106 0 0 1-1.126 5.713l-2.812 1.875a4.106 4.106 0 0 1-3.545.49l-4.634-1.503a2.512 2.512 0 0 1 1.147-4.875l-2.365-3.503Z"
19
+ })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
20
+ id: "touch_svg__a"
21
+ }, /*#__PURE__*/React.createElement("path", {
22
+ fill: "#fff",
23
+ d: "M0 0h24v24H0z"
24
+ }))));
25
+
26
+ export { SvgTouch as default };
@@ -178,13 +178,12 @@ export { default as TicketIcon } from './Ticket.js';
178
178
  export { default as TicketColorIcon } from './TicketColor.js';
179
179
  export { default as TimeIcon } from './Time.js';
180
180
  export { default as TopIcon } from './Top.js';
181
+ export { default as TouchIcon } from './Touch.js';
181
182
  export { default as TrashIcon } from './Trash.js';
182
183
  export { default as TreasureboxIcon } from './Treasurebox.js';
183
184
  export { default as TrophyIcon } from './Trophy.js';
184
185
  export { default as UndoIcon } from './Undo.js';
185
186
  export { default as UniversityIcon } from './University.js';
186
- export { default as UnlimitedTicketIcon } from './UnlimitedTicket.js';
187
- export { default as UnlimitedTicketColorIcon } from './UnlimitedTicketColor.js';
188
187
  export { default as UserBlockedIcon } from './UserBlocked.js';
189
188
  export { default as UserCheckIcon } from './UserCheck.js';
190
189
  export { default as UserPlusIcon } from './UserPlus.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.20.1",
3
+ "version": "2.21.0",
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.25.1",
58
+ "@teamturing/icons": "^1.26.0",
59
59
  "@teamturing/token-studio": "^1.2.2",
60
60
  "@teamturing/utils": "^1.2.0",
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": "d009d5b6544ea3579d0b4093fd449422d1352261"
69
+ "gitHead": "c4c8d4fa7f6fbde0671c59067b684e49284c177b"
70
70
  }
@@ -1,11 +0,0 @@
1
- type Options = {
2
- initialState?: boolean;
3
- };
4
- declare const useToggleHandler: ({ initialState }: Options) => {
5
- state: boolean;
6
- on: () => void;
7
- off: () => void;
8
- toggle: () => void;
9
- };
10
- export default useToggleHandler;
11
- export type { Options as UseToggleHandlerOptions };
@@ -1,25 +0,0 @@
1
- import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
2
- import * as React from 'react';
3
-
4
- const SvgUnlimitedTicket = 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 32 32"
10
- }, props), /*#__PURE__*/React.createElement("path", {
11
- fill: "#D1D5DB",
12
- fillRule: "evenodd",
13
- d: "M2.396 8.313c-.53 0-.958.429-.958.958v4.312a1.917 1.917 0 0 1 0 3.834v4.312c0 .53.429.959.958.959h18.208c.53 0 .959-.43.959-.959v-4.312a1.917 1.917 0 0 1 0-3.834V9.271c0-.53-.43-.959-.959-.959H2.396Zm6.331 9.44c.02.173.161.303.33.303h4.886c.169 0 .31-.13.33-.302l.419-3.719c.038-.333-.366-.516-.58-.262l-1.243 1.475-.919-2.01a.491.491 0 0 0-.9 0l-.92 2.01-1.242-1.475c-.214-.254-.618-.071-.58.262l.42 3.719Z",
14
- clipRule: "evenodd"
15
- }), /*#__PURE__*/React.createElement("path", {
16
- fill: "currentColor",
17
- d: "M29.382 17.39a4.089 4.089 0 0 0-2.937-1.09c-1.89.064-3.056 1.28-4.407 2.688l-.007.007-.008-.007c-1.35-1.407-2.51-2.623-4.406-2.687A4.072 4.072 0 0 0 14.7 17.39a3.947 3.947 0 0 0-1.284 2.9c0 1.117.45 2.149 1.27 2.906.76.7 1.749 1.089 2.797 1.089h.147c1.89-.064 3.056-1.28 4.407-2.688v-.007l.007.008c1.351 1.407 2.51 2.623 4.407 2.687h.148a4.078 4.078 0 0 0 2.797-1.09 3.914 3.914 0 0 0 1.27-2.906c0-1.089-.465-2.15-1.285-2.9Zm-11.817 5.127a2.221 2.221 0 0 1-1.594-.587 2.206 2.206 0 0 1-.709-1.64 2.232 2.232 0 0 1 2.222-2.228h.081c1.07.035 1.808.75 3.115 2.114.03.036.066.07.096.1l-.008.013.008.007c-.03.036-.067.071-.096.1-1.307 1.371-2.045 2.085-3.115 2.12Zm10.548-.587a2.226 2.226 0 0 1-1.595.587c-1.07-.035-1.808-.75-3.114-2.115a1.264 1.264 0 0 0-.096-.099l.007-.014h-.007c.03-.035.066-.07.096-.099 1.306-1.365 2.044-2.079 3.114-2.114a2.278 2.278 0 0 1 1.587.594c.465.424.716 1.004.716 1.633 0 .623-.25 1.203-.708 1.627Z"
18
- }), /*#__PURE__*/React.createElement("path", {
19
- fill: "#fff",
20
- fillRule: "evenodd",
21
- d: "M22.53 18.479c1.157-1.18 2.258-2.122 3.915-2.178a4.089 4.089 0 0 1 2.937 1.089c.82.75 1.285 1.81 1.285 2.9 0 1.117-.45 2.149-1.27 2.906a4.078 4.078 0 0 1-2.797 1.089h-.148c-1.661-.056-2.757-.996-3.91-2.174l-.256-.263-.154-.16-.09-.087.003-.003-.007-.008v.008l-.003.002-.007.008-.077.08c-.137.143-.274.285-.409.423-1.155 1.178-2.256 2.118-3.91 2.174h-.148a4.111 4.111 0 0 1-2.798-1.09 3.914 3.914 0 0 1-1.27-2.906c0-1.089.466-2.15 1.285-2.9a4.072 4.072 0 0 1 2.916-1.088c1.663.056 2.759.998 3.914 2.177l.318.329.155.161.02.02.007.007.007-.007.003-.003.172-.179.317-.327Zm-.5-.519c1.167-1.191 2.45-2.312 4.39-2.378a4.81 4.81 0 0 1 3.45 1.28 4.665 4.665 0 0 1 1.515 3.427c0 1.317-.533 2.54-1.5 3.434a4.797 4.797 0 0 1-3.285 1.28H26.428c-1.945-.065-3.223-1.184-4.386-2.374-1.166 1.19-2.448 2.309-4.386 2.374H17.484a4.83 4.83 0 0 1-3.285-1.279 4.632 4.632 0 0 1-1.501-3.435c0-1.29.55-2.542 1.515-3.427a4.79 4.79 0 0 1 3.427-1.28c1.947.066 3.226 1.187 4.39 2.378Zm-.168.86.161.168-.161-.169Zm-4.297 3.697c1.07-.035 1.808-.75 3.115-2.122.03-.028.066-.063.096-.099l-.008-.007.008-.014a1.264 1.264 0 0 1-.096-.099c-1.307-1.365-2.045-2.079-3.115-2.114h-.081a2.232 2.232 0 0 0-2.222 2.228c0 .636.251 1.216.709 1.64.428.396.996.608 1.594.587Zm4.477-.916-.004-.003h.007l-.003.003Zm1.963-2.03c-.188.188-.387.395-.601.62a1.39 1.39 0 0 0-.089.09l-.007.008h.007l-.007.014c.03.029.066.064.096.1 1.306 1.364 2.044 2.079 3.114 2.114a2.226 2.226 0 0 0 1.595-.587 2.197 2.197 0 0 0 .708-1.627c0-.629-.25-1.209-.716-1.633a2.278 2.278 0 0 0-1.587-.594c-.894.03-1.556.533-2.513 1.494Z",
22
- clipRule: "evenodd"
23
- }));
24
-
25
- export { SvgUnlimitedTicket as default };
@@ -1,37 +0,0 @@
1
- import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
2
- import * as React from 'react';
3
-
4
- const SvgUnlimitedTicketColor = 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 32 32"
10
- }, props), /*#__PURE__*/React.createElement("path", {
11
- fill: "url(#unlimited_ticket_color_svg__a)",
12
- fillRule: "evenodd",
13
- d: "M2.396 8.313c-.53 0-.958.429-.958.958v4.312a1.917 1.917 0 0 1 0 3.834v4.312c0 .53.429.959.958.959h18.208c.53 0 .959-.43.959-.959v-4.312a1.917 1.917 0 0 1 0-3.834V9.271c0-.53-.43-.959-.959-.959H2.396Zm6.331 9.44c.02.173.161.303.33.303h4.886c.169 0 .31-.13.33-.302l.419-3.719c.038-.333-.366-.516-.58-.262l-1.243 1.475-.919-2.01a.491.491 0 0 0-.9 0l-.92 2.01-1.242-1.475c-.214-.254-.618-.071-.58.262l.42 3.719Z",
14
- clipRule: "evenodd"
15
- }), /*#__PURE__*/React.createElement("path", {
16
- fill: "#9C7EEF",
17
- d: "M29.382 17.39a4.089 4.089 0 0 0-2.937-1.09c-1.89.064-3.056 1.28-4.407 2.688l-.007.007-.008-.007c-1.35-1.407-2.51-2.623-4.406-2.687A4.072 4.072 0 0 0 14.7 17.39a3.947 3.947 0 0 0-1.284 2.9c0 1.117.45 2.149 1.27 2.906.76.7 1.749 1.089 2.797 1.089h.147c1.89-.064 3.056-1.28 4.407-2.688v-.007l.007.008c1.351 1.407 2.51 2.623 4.407 2.687h.148a4.078 4.078 0 0 0 2.797-1.09 3.914 3.914 0 0 0 1.27-2.906c0-1.089-.465-2.15-1.285-2.9Zm-11.817 5.127a2.221 2.221 0 0 1-1.594-.587 2.206 2.206 0 0 1-.709-1.64 2.232 2.232 0 0 1 2.222-2.228h.081c1.07.035 1.808.75 3.115 2.114.03.036.066.07.096.1l-.008.013.008.007c-.03.036-.067.071-.096.1-1.307 1.371-2.045 2.085-3.115 2.12Zm10.548-.587a2.226 2.226 0 0 1-1.595.587c-1.07-.035-1.808-.75-3.114-2.115a1.264 1.264 0 0 0-.096-.099l.007-.014h-.007c.03-.035.066-.07.096-.099 1.306-1.365 2.044-2.079 3.114-2.114a2.278 2.278 0 0 1 1.587.594c.465.424.716 1.004.716 1.633 0 .623-.25 1.203-.708 1.627Z"
18
- }), /*#__PURE__*/React.createElement("path", {
19
- fill: "#fff",
20
- fillRule: "evenodd",
21
- d: "M22.53 18.479c1.157-1.18 2.258-2.122 3.915-2.178a4.089 4.089 0 0 1 2.937 1.089c.82.75 1.285 1.81 1.285 2.9 0 1.117-.45 2.149-1.27 2.906a4.078 4.078 0 0 1-2.797 1.089h-.148c-1.661-.056-2.757-.996-3.91-2.174l-.256-.263-.154-.16-.09-.087.003-.003-.007-.008v.008l-.003.002-.007.008-.077.08c-.137.143-.274.285-.409.423-1.155 1.178-2.256 2.118-3.91 2.174h-.148a4.111 4.111 0 0 1-2.798-1.09 3.914 3.914 0 0 1-1.27-2.906c0-1.089.466-2.15 1.285-2.9a4.072 4.072 0 0 1 2.916-1.088c1.663.056 2.759.998 3.914 2.177l.318.329.155.161.02.02.007.007.007-.007.003-.003.172-.179.317-.327Zm-.5-.519c1.167-1.191 2.45-2.312 4.39-2.378a4.81 4.81 0 0 1 3.45 1.28 4.665 4.665 0 0 1 1.515 3.427c0 1.317-.533 2.54-1.5 3.434a4.797 4.797 0 0 1-3.285 1.28H26.428c-1.945-.065-3.223-1.184-4.386-2.374-1.166 1.19-2.448 2.309-4.386 2.374H17.484a4.83 4.83 0 0 1-3.285-1.279 4.632 4.632 0 0 1-1.501-3.435c0-1.29.55-2.542 1.515-3.427a4.79 4.79 0 0 1 3.427-1.28c1.947.066 3.226 1.187 4.39 2.378Zm-.168.86.161.168-.161-.169Zm-4.297 3.697c1.07-.035 1.808-.75 3.115-2.122.03-.028.066-.063.096-.099l-.008-.007.008-.014a1.264 1.264 0 0 1-.096-.099c-1.307-1.365-2.045-2.079-3.115-2.114h-.081a2.232 2.232 0 0 0-2.222 2.228c0 .636.251 1.216.709 1.64.428.396.996.608 1.594.587Zm4.477-.916-.004-.003h.007l-.003.003Zm1.963-2.03c-.188.188-.387.395-.601.62a1.39 1.39 0 0 0-.089.09l-.007.008h.007l-.007.014c.03.029.066.064.096.1 1.306 1.364 2.044 2.079 3.114 2.114a2.226 2.226 0 0 0 1.595-.587 2.197 2.197 0 0 0 .708-1.627c0-.629-.25-1.209-.716-1.633a2.278 2.278 0 0 0-1.587-.594c-.894.03-1.556.533-2.513 1.494Z",
22
- clipRule: "evenodd"
23
- }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
24
- id: "unlimited_ticket_color_svg__a",
25
- x1: 2.587,
26
- x2: 14.343,
27
- y1: 10.058,
28
- y2: 25.686,
29
- gradientUnits: "userSpaceOnUse"
30
- }, /*#__PURE__*/React.createElement("stop", {
31
- stopColor: "#0F0E0F"
32
- }), /*#__PURE__*/React.createElement("stop", {
33
- offset: 1,
34
- stopColor: "#595959"
35
- }))));
36
-
37
- export { SvgUnlimitedTicketColor as default };