@teamturing/react-kit 2.19.7 → 2.19.9

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.
Files changed (46) hide show
  1. package/dist/core/Pill/index.d.ts +5 -3
  2. package/dist/index.js +111 -56
  3. package/esm/core/ActionList/ActionListItem.js +2 -2
  4. package/esm/core/ActionList/ActionListSectionHeader.js +1 -1
  5. package/esm/core/Avatar/index.js +1 -1
  6. package/esm/core/Breadcrumbs/BreadcrumbsItem.js +1 -1
  7. package/esm/core/Breadcrumbs/index.js +1 -1
  8. package/esm/core/Checkbox/index.js +1 -1
  9. package/esm/core/CounterBadge/index.js +1 -1
  10. package/esm/core/Datagrid/DatagridBody.js +1 -1
  11. package/esm/core/Datagrid/DatagridHeader.js +1 -1
  12. package/esm/core/Datagrid/DatagridSubheader.js +1 -1
  13. package/esm/core/Datagrid/index.js +1 -1
  14. package/esm/core/DescriptionList/index.js +1 -1
  15. package/esm/core/DialogHandler/index.js +1 -1
  16. package/esm/core/FormControl/FormControlLabel.js +1 -1
  17. package/esm/core/Grid/index.js +3 -3
  18. package/esm/core/Overlay/index.js +1 -1
  19. package/esm/core/OverlayPopper/index.js +1 -1
  20. package/esm/core/OverlaySelectInput/index.js +3 -3
  21. package/esm/core/Pagination/index.js +1 -1
  22. package/esm/core/Pill/index.js +23 -2
  23. package/esm/core/Select/SelectOption.js +1 -1
  24. package/esm/core/Select/index.js +3 -3
  25. package/esm/core/Stack/index.js +1 -1
  26. package/esm/core/Tab/TabItem.js +1 -1
  27. package/esm/core/Tab/index.js +1 -1
  28. package/esm/core/TextInput/TextInputTrailingAction.js +1 -1
  29. package/esm/core/TextInput/index.js +3 -3
  30. package/esm/core/Textarea/index.js +2 -2
  31. package/esm/core/Tooltip/index.js +1 -1
  32. package/esm/packages/icons/esm/Cart.js +17 -0
  33. package/esm/packages/icons/esm/ChevronDownTwo.js +23 -0
  34. package/esm/packages/icons/esm/index.js +2 -0
  35. package/package.json +3 -3
  36. package/dist/utils/forcePixelValue.d.ts +0 -6
  37. package/dist/utils/index.d.ts +0 -4
  38. package/dist/utils/isArray.d.ts +0 -1
  39. package/dist/utils/isFunction.d.ts +0 -1
  40. package/dist/utils/isNullable.d.ts +0 -1
  41. package/dist/utils/scrollIntoView.d.ts +0 -11
  42. /package/esm/{utils → packages/utils/esm}/forcePixelValue.js +0 -0
  43. /package/esm/{utils → packages/utils/esm}/isArray.js +0 -0
  44. /package/esm/{utils → packages/utils/esm}/isFunction.js +0 -0
  45. /package/esm/{utils → packages/utils/esm}/isNullable.js +0 -0
  46. /package/esm/{utils → packages/utils/esm}/scrollIntoView.js +0 -0
@@ -1,17 +1,19 @@
1
1
  import { ComponentType, ElementType, HTMLAttributes, ReactNode, SVGProps, MouseEvent as ReactMouseEvent, KeyboardEvent as ReactKeyboardEvent } from 'react';
2
2
  import { ResponsiveValue } from 'styled-system';
3
3
  import { SxProp } from '../../utils/styled-system';
4
+ type PillSizeType = 'm';
5
+ type PillVariantType = 'outlined' | 'secondary';
4
6
  type Props = {
5
7
  /**
6
8
  * 크기를 정의합니다.
7
9
  * 반응형 디자인이 적용됩니다.
8
10
  */
9
- size?: ResponsiveValue<'m'>;
11
+ size?: ResponsiveValue<PillSizeType>;
10
12
  /**
11
13
  * 색을 정의합니다.
12
14
  * hover, active, focused, disabled, loading 등의 모든 상황에 관여합니다.
13
15
  */
14
- variant?: ResponsiveValue<'outlined'>;
16
+ variant?: ResponsiveValue<PillVariantType>;
15
17
  /**
16
18
  *
17
19
  */
@@ -43,7 +45,7 @@ declare const _default: import("react").ForwardRefExoticComponent<{
43
45
  * 색을 정의합니다.
44
46
  * hover, active, focused, disabled, loading 등의 모든 상황에 관여합니다.
45
47
  */
46
- variant?: ResponsiveValue<"outlined"> | undefined;
48
+ variant?: ResponsiveValue<PillVariantType> | undefined;
47
49
  /**
48
50
  *
49
51
  */
package/dist/index.js CHANGED
@@ -1554,6 +1554,19 @@ const SvgCaretUp = props => /*#__PURE__*/React__namespace.createElement("svg", _
1554
1554
  d: "m12.708 8.294 5.999 5.997c.63.63.184 1.707-.707 1.707H6.003c-.891 0-1.337-1.077-.707-1.707l5.998-5.997a1 1 0 0 1 1.414 0Z"
1555
1555
  }));
1556
1556
 
1557
+ const SvgCart = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
1558
+ xmlns: "http://www.w3.org/2000/svg",
1559
+ width: "1em",
1560
+ height: "1em",
1561
+ fill: "none",
1562
+ viewBox: "0 0 24 24"
1563
+ }, props), /*#__PURE__*/React__namespace.createElement("path", {
1564
+ fill: "currentColor",
1565
+ fillRule: "evenodd",
1566
+ d: "M7.248 5.9a6.69 6.69 0 0 1 .643-1.574C8.617 3.066 9.885 2 11.871 2c1.987 0 3.255 1.066 3.98 2.326.291.506.5 1.047.644 1.574h2.437a1 1 0 0 1 .998.938l.808 12.937a2 2 0 0 1-1.996 2.125H5a2 2 0 0 1-1.996-2.125l.809-12.937A1 1 0 0 1 4.81 5.9h2.437Zm1.888 0c.087-.233.191-.46.315-.676.474-.823 1.207-1.424 2.42-1.424 1.214 0 1.946.6 2.42 1.424.124.215.228.443.315.676h-5.47Z",
1567
+ clipRule: "evenodd"
1568
+ }));
1569
+
1557
1570
  const SvgChatBubble = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
1558
1571
  xmlns: "http://www.w3.org/2000/svg",
1559
1572
  width: "1em",
@@ -1728,6 +1741,25 @@ const SvgChevronDown = props => /*#__PURE__*/React__namespace.createElement("svg
1728
1741
  clipRule: "evenodd"
1729
1742
  }));
1730
1743
 
1744
+ const SvgChevronDownTwo = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
1745
+ xmlns: "http://www.w3.org/2000/svg",
1746
+ width: "1em",
1747
+ height: "1em",
1748
+ fill: "none",
1749
+ viewBox: "0 0 24 24"
1750
+ }, props), /*#__PURE__*/React__namespace.createElement("path", {
1751
+ fill: "currentColor",
1752
+ fillRule: "evenodd",
1753
+ d: "M20.221 3.37a1.346 1.346 0 0 1-.396.954l-6.75 6.75a1.35 1.35 0 0 1-1.91 0l-6.75-6.75a1.35 1.35 0 1 1 1.91-1.908l5.796 5.795 5.795-5.795a1.35 1.35 0 0 1 2.305.954Z",
1754
+ clipRule: "evenodd"
1755
+ }), /*#__PURE__*/React__namespace.createElement("path", {
1756
+ fill: "currentColor",
1757
+ fillRule: "evenodd",
1758
+ d: "M20.221 13.37a1.346 1.346 0 0 1-.396.955l-6.75 6.75a1.35 1.35 0 0 1-1.91 0l-6.75-6.75a1.35 1.35 0 1 1 1.91-1.909l5.796 5.795 5.795-5.794a1.35 1.35 0 0 1 2.305.954Z",
1759
+ clipRule: "evenodd",
1760
+ opacity: 0.6
1761
+ }));
1762
+
1731
1763
  const SvgChevronLeft = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
1732
1764
  xmlns: "http://www.w3.org/2000/svg",
1733
1765
  width: "1em",
@@ -4232,6 +4264,7 @@ var icons = /*#__PURE__*/Object.freeze({
4232
4264
  CaretLeftIcon: SvgCaretLeft,
4233
4265
  CaretRightIcon: SvgCaretRight,
4234
4266
  CaretUpIcon: SvgCaretUp,
4267
+ CartIcon: SvgCart,
4235
4268
  ChatBubbleBadgeColorIcon: SvgChatBubbleBadgeColor,
4236
4269
  ChatBubbleCorrectColorIcon: SvgChatBubbleCorrectColor,
4237
4270
  ChatBubbleCorrectIcon: SvgChatBubbleCorrect,
@@ -4243,6 +4276,7 @@ var icons = /*#__PURE__*/Object.freeze({
4243
4276
  CheckInCircleIcon: SvgCheckInCircle,
4244
4277
  CheckInCircleLineIcon: SvgCheckInCircleLine,
4245
4278
  ChevronDownIcon: SvgChevronDown,
4279
+ ChevronDownTwoIcon: SvgChevronDownTwo,
4246
4280
  ChevronLeftIcon: SvgChevronLeft,
4247
4281
  ChevronRightIcon: SvgChevronRight,
4248
4282
  ChevronRightTwoIcon: SvgChevronRightTwo,
@@ -4397,11 +4431,67 @@ var icons = /*#__PURE__*/Object.freeze({
4397
4431
  YoutubeIcon: SvgYoutube
4398
4432
  });
4399
4433
 
4434
+ /**
4435
+ * CSS에서 사용할 수 있는 픽셀값으로 강제합니다.
4436
+ */
4437
+ const forcePixelValue = value => {
4438
+ return typeof value === 'string' ? value : `${value}px`;
4439
+ };
4440
+
4441
+ const isArray = value => Array.isArray(value);
4442
+
4443
+ const isFunction = value => typeof value === 'function';
4444
+
4445
+ const isNullable = value => value === null || value === undefined;
4446
+
4400
4447
  /**
4401
4448
  * 아무 행위도 하지 않는 함수입니다.
4402
4449
  */
4403
4450
  function noop$2() {}
4404
4451
 
4452
+ const scrollIntoView = ({
4453
+ childrenRef,
4454
+ scrollContainerRef,
4455
+ options = {
4456
+ behavior: 'smooth',
4457
+ direction: 'vertical',
4458
+ offset: 0
4459
+ }
4460
+ }) => {
4461
+ if (!isNullable(scrollContainerRef)) {
4462
+ const startSide = options.direction === 'vertical' ? 'top' : 'left';
4463
+ const endSide = options.direction === 'vertical' ? 'bottom' : 'right';
4464
+ const scrollSide = options.direction === 'vertical' ? 'scrollTop' : 'scrollLeft';
4465
+ const {
4466
+ [startSide]: childrenStart,
4467
+ [endSide]: childrenEnd
4468
+ } = childrenRef.getBoundingClientRect();
4469
+ const {
4470
+ [startSide]: scrollContainerStart,
4471
+ [endSide]: scrollContainerEnd
4472
+ } = scrollContainerRef.getBoundingClientRect();
4473
+ const isChildrenStartAboveScrollContainer = childrenStart < scrollContainerStart;
4474
+ const isChildrenBottomBelowScrollContainer = childrenEnd > scrollContainerEnd;
4475
+ if (isChildrenStartAboveScrollContainer) {
4476
+ const scrollDistance = childrenStart - scrollContainerStart + scrollContainerRef[scrollSide] - (options.offset || 0);
4477
+ scrollContainerRef.scrollTo({
4478
+ behavior: options.behavior,
4479
+ [startSide]: scrollDistance
4480
+ });
4481
+ } else if (isChildrenBottomBelowScrollContainer) {
4482
+ const scrollDistance = childrenEnd - scrollContainerEnd + scrollContainerRef[scrollSide] + (options.offset || 0);
4483
+ scrollContainerRef.scrollTo({
4484
+ behavior: options.behavior,
4485
+ [startSide]: scrollDistance
4486
+ });
4487
+ }
4488
+ } else {
4489
+ childrenRef.scrollIntoView({
4490
+ behavior: options.behavior
4491
+ });
4492
+ }
4493
+ };
4494
+
4405
4495
  var reactIs = {exports: {}};
4406
4496
 
4407
4497
  var reactIs_production_min = {};
@@ -4743,15 +4833,6 @@ if (process.env.NODE_ENV === 'production') {
4743
4833
  }
4744
4834
  var reactIsExports = reactIs.exports;
4745
4835
 
4746
- /**
4747
- * CSS에서 사용할 수 있는 픽셀값으로 강제합니다.
4748
- */
4749
- const forcePixelValue = value => {
4750
- return typeof value === 'string' ? value : `${value}px`;
4751
- };
4752
-
4753
- const isNullable = value => value === null || value === undefined;
4754
-
4755
4836
  const device = {
4756
4837
  deviceDesktop: 1280,
4757
4838
  deviceTablet: 900,
@@ -5375,10 +5456,6 @@ const typography = {
5375
5456
  }
5376
5457
  };
5377
5458
 
5378
- const isArray = value => Array.isArray(value);
5379
-
5380
- const isFunction = value => typeof value === 'function';
5381
-
5382
5459
  const View = styled__default.default.div`
5383
5460
  ${compose(layout$1, color$2, flexbox, background, border, position, shadow$1)}
5384
5461
  ${sx}
@@ -22306,6 +22383,27 @@ const BasePill = styled__default.default(UnstyledButton)`
22306
22383
  color: theme.colors['icon/disabled']
22307
22384
  }
22308
22385
  } : {})
22386
+ },
22387
+ secondary: {
22388
+ 'backgroundColor': theme.colors['bg/secondary'],
22389
+ 'color': theme.colors['text/primary'],
22390
+ '& svg': {
22391
+ color: theme.colors['icon/primary']
22392
+ },
22393
+ '&:hover': {
22394
+ backgroundColor: theme.colors['bg/secondary/hovered']
22395
+ },
22396
+ '&:active': {
22397
+ backgroundColor: theme.colors['bg/secondary/pressed']
22398
+ },
22399
+ ...(disabled ? {
22400
+ 'cursor': 'not-allowed',
22401
+ 'backgroundColor': theme.colors['bg/disabled'],
22402
+ 'color': theme.colors['text/disabled'],
22403
+ '& svg': {
22404
+ color: theme.colors['icon/disabled']
22405
+ }
22406
+ } : {})
22309
22407
  }
22310
22408
  }
22311
22409
  })}
@@ -23161,49 +23259,6 @@ const useResize = resizeCallback => {
23161
23259
  }, []);
23162
23260
  };
23163
23261
 
23164
- const scrollIntoView = ({
23165
- childrenRef,
23166
- scrollContainerRef,
23167
- options = {
23168
- behavior: 'smooth',
23169
- direction: 'vertical',
23170
- offset: 0
23171
- }
23172
- }) => {
23173
- if (!isNullable(scrollContainerRef)) {
23174
- const startSide = options.direction === 'vertical' ? 'top' : 'left';
23175
- const endSide = options.direction === 'vertical' ? 'bottom' : 'right';
23176
- const scrollSide = options.direction === 'vertical' ? 'scrollTop' : 'scrollLeft';
23177
- const {
23178
- [startSide]: childrenStart,
23179
- [endSide]: childrenEnd
23180
- } = childrenRef.getBoundingClientRect();
23181
- const {
23182
- [startSide]: scrollContainerStart,
23183
- [endSide]: scrollContainerEnd
23184
- } = scrollContainerRef.getBoundingClientRect();
23185
- const isChildrenStartAboveScrollContainer = childrenStart < scrollContainerStart;
23186
- const isChildrenBottomBelowScrollContainer = childrenEnd > scrollContainerEnd;
23187
- if (isChildrenStartAboveScrollContainer) {
23188
- const scrollDistance = childrenStart - scrollContainerStart + scrollContainerRef[scrollSide] - (options.offset || 0);
23189
- scrollContainerRef.scrollTo({
23190
- behavior: options.behavior,
23191
- [startSide]: scrollDistance
23192
- });
23193
- } else if (isChildrenBottomBelowScrollContainer) {
23194
- const scrollDistance = childrenEnd - scrollContainerEnd + scrollContainerRef[scrollSide] + (options.offset || 0);
23195
- scrollContainerRef.scrollTo({
23196
- behavior: options.behavior,
23197
- [startSide]: scrollDistance
23198
- });
23199
- }
23200
- } else {
23201
- childrenRef.scrollIntoView({
23202
- behavior: options.behavior
23203
- });
23204
- }
23205
- };
23206
-
23207
23262
  const TabItem = ({
23208
23263
  children,
23209
23264
  leadingIcon: LeadingIcon,
@@ -1,11 +1,11 @@
1
1
  import { useContext, useCallback } from 'react';
2
2
  import SvgCheck from '../../packages/icons/esm/Check.js';
3
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
4
+ import { isNullable } from '../../packages/utils/esm/isNullable.js';
3
5
  import { noop } from '../../packages/utils/esm/noop.js';
4
6
  import { r as reactIsExports } from '../../node_modules/react-is/index.js';
5
7
  import styled, { css } from 'styled-components';
6
8
  import '../../node_modules/styled-system/dist/index.esm.js';
7
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
8
- import { isNullable } from '../../utils/isNullable.js';
9
9
  import { sx } from '../../utils/styled-system/index.js';
10
10
  import Grid from '../Grid/index.js';
11
11
  import StyledIcon from '../StyledIcon/index.js';
@@ -1,5 +1,5 @@
1
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
1
2
  import styled from 'styled-components';
2
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
3
3
  import { sx } from '../../utils/styled-system/index.js';
4
4
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
5
5
 
@@ -1,7 +1,7 @@
1
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
1
2
  import { forwardRef } from 'react';
2
3
  import styled from 'styled-components';
3
4
  import '../../node_modules/styled-system/dist/index.esm.js';
4
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
5
5
  import { sx } from '../../utils/styled-system/index.js';
6
6
  import Image from '../Image/index.js';
7
7
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
@@ -1,6 +1,6 @@
1
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
1
2
  import { useRef, useState, useEffect } from 'react';
2
3
  import styled, { css } from 'styled-components';
3
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
4
4
  import Tooltip from '../Tooltip/index.js';
5
5
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
6
6
 
@@ -1,6 +1,6 @@
1
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
1
2
  import { Children, useState } from 'react';
2
3
  import styled from 'styled-components';
3
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
4
4
  import BreadcrumbsItem from './BreadcrumbsItem.js';
5
5
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
6
6
 
@@ -1,8 +1,8 @@
1
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
1
2
  import { forwardRef } from 'react';
2
3
  import styled, { css } from 'styled-components';
3
4
  import useProvidedOrCreatedRef from '../../hook/useProvidedOrCreatedRef.js';
4
5
  import useSafeLayoutEffect from '../../hook/useSafeLayoutEffect.js';
5
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
6
6
  import { sx } from '../../utils/styled-system/index.js';
7
7
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
8
8
 
@@ -1,6 +1,6 @@
1
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
1
2
  import styled from 'styled-components';
2
3
  import '../../node_modules/styled-system/dist/index.esm.js';
3
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
4
4
  import { sx } from '../../utils/styled-system/index.js';
5
5
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
6
6
  import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
@@ -1,5 +1,5 @@
1
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
1
2
  import styled from 'styled-components';
2
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
3
3
  import { sx } from '../../utils/styled-system/index.js';
4
4
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
5
5
 
@@ -1,6 +1,6 @@
1
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
1
2
  import { r as reactIsExports } from '../../node_modules/react-is/index.js';
2
3
  import styled from 'styled-components';
3
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
4
4
  import { sx } from '../../utils/styled-system/index.js';
5
5
  import View from '../View/index.js';
6
6
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
@@ -1,5 +1,5 @@
1
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
1
2
  import styled from 'styled-components';
2
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
3
3
  import { sx } from '../../utils/styled-system/index.js';
4
4
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
5
5
 
@@ -1,6 +1,6 @@
1
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
1
2
  import styled from 'styled-components';
2
3
  import useRelocation from '../../hook/useRelocation.js';
3
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
4
4
  import { sx } from '../../utils/styled-system/index.js';
5
5
  import DatagridBody from './DatagridBody.js';
6
6
  import DatagridCell from './DatagridCell.js';
@@ -1,4 +1,4 @@
1
- import { isNullable } from '../../utils/isNullable.js';
1
+ import { isNullable } from '../../packages/utils/esm/isNullable.js';
2
2
  import Grid from '../Grid/index.js';
3
3
  import ItemList from '../ItemList/index.js';
4
4
  import StyledIcon from '../StyledIcon/index.js';
@@ -1,6 +1,6 @@
1
+ import { isFunction } from '../../packages/utils/esm/isFunction.js';
1
2
  import { Children, cloneElement } from 'react';
2
3
  import useDialogHandler from '../../hook/useDialogHandler.js';
3
- import { isFunction } from '../../utils/isFunction.js';
4
4
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
5
5
 
6
6
  const DialogHandler = ({
@@ -1,6 +1,6 @@
1
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
1
2
  import { useContext } from 'react';
2
3
  import styled from 'styled-components';
3
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
4
4
  import { sx } from '../../utils/styled-system/index.js';
5
5
  import View from '../View/index.js';
6
6
  import { FormControlContext } from './index.js';
@@ -1,11 +1,11 @@
1
1
  import space from '../../packages/token-studio/esm/token/space/index.js';
2
2
  import '../../packages/token-studio/esm/token/typography/index.js';
3
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
4
+ import { isArray } from '../../packages/utils/esm/isArray.js';
5
+ import { isNullable } from '../../packages/utils/esm/isNullable.js';
3
6
  import { forwardRef } from 'react';
4
7
  import styled from 'styled-components';
5
8
  import '../../node_modules/styled-system/dist/index.esm.js';
6
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
7
- import { isArray } from '../../utils/isArray.js';
8
- import { isNullable } from '../../utils/isNullable.js';
9
9
  import View from '../View/index.js';
10
10
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
11
11
  import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
@@ -1,7 +1,7 @@
1
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
1
2
  import { forwardRef, useRef, useImperativeHandle, useCallback, useEffect } from 'react';
2
3
  import styled from 'styled-components';
3
4
  import { maxHeight } from '../../node_modules/styled-system/dist/index.esm.js';
4
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
5
5
  import { sx } from '../../utils/styled-system/index.js';
6
6
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
7
7
  import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
@@ -1,11 +1,11 @@
1
1
  import { useFloating } from '../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js';
2
2
  import space from '../../packages/token-studio/esm/token/space/index.js';
3
3
  import '../../packages/token-studio/esm/token/typography/index.js';
4
+ import { isFunction } from '../../packages/utils/esm/isFunction.js';
4
5
  import { Children, cloneElement } from 'react';
5
6
  import useFocusTrap from '../../hook/useFocusTrap.js';
6
7
  import useFocusZone from '../../hook/useFocusZone.js';
7
8
  import useToggleHandler from '../../hook/useToggleHandler.js';
8
- import { isFunction } from '../../utils/isFunction.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';
@@ -1,12 +1,12 @@
1
1
  import { forwardRef } from 'react';
2
2
  import SvgChevronDown from '../../packages/icons/esm/ChevronDown.js';
3
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
4
+ import { isFunction } from '../../packages/utils/esm/isFunction.js';
5
+ import { isNullable } from '../../packages/utils/esm/isNullable.js';
3
6
  import { noop } from '../../packages/utils/esm/noop.js';
4
7
  import { r as reactIsExports } from '../../node_modules/react-is/index.js';
5
8
  import styled, { css } from 'styled-components';
6
9
  import useProvidedOrCreatedRef from '../../hook/useProvidedOrCreatedRef.js';
7
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
8
- import { isFunction } from '../../utils/isFunction.js';
9
- import { isNullable } from '../../utils/isNullable.js';
10
10
  import Overlay from '../Overlay/index.js';
11
11
  import OverlayPopper from '../OverlayPopper/index.js';
12
12
  import StyledIcon from '../StyledIcon/index.js';
@@ -1,10 +1,10 @@
1
1
  import { useCallback, Fragment } from 'react';
2
2
  import SvgChevronLeft from '../../packages/icons/esm/ChevronLeft.js';
3
3
  import SvgChevronRight from '../../packages/icons/esm/ChevronRight.js';
4
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
4
5
  import { noop } from '../../packages/utils/esm/noop.js';
5
6
  import styled, { css } from 'styled-components';
6
7
  import '../../node_modules/styled-system/dist/index.esm.js';
7
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
8
8
  import { sx } from '../../utils/styled-system/index.js';
9
9
  import UnstyledButton from '../_UnstyledButton.js';
10
10
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
@@ -1,10 +1,10 @@
1
1
  import { forwardRef, useCallback } from 'react';
2
2
  import SvgClose from '../../packages/icons/esm/Close.js';
3
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
4
+ import { isNullable } from '../../packages/utils/esm/isNullable.js';
3
5
  import { r as reactIsExports } from '../../node_modules/react-is/index.js';
4
6
  import styled from 'styled-components';
5
7
  import '../../node_modules/styled-system/dist/index.esm.js';
6
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
7
- import { isNullable } from '../../utils/isNullable.js';
8
8
  import { sx } from '../../utils/styled-system/index.js';
9
9
  import UnstyledButton from '../_UnstyledButton.js';
10
10
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
@@ -168,6 +168,27 @@ const BasePill = styled(UnstyledButton)`
168
168
  color: theme.colors['icon/disabled']
169
169
  }
170
170
  } : {})
171
+ },
172
+ secondary: {
173
+ 'backgroundColor': theme.colors['bg/secondary'],
174
+ 'color': theme.colors['text/primary'],
175
+ '& svg': {
176
+ color: theme.colors['icon/primary']
177
+ },
178
+ '&:hover': {
179
+ backgroundColor: theme.colors['bg/secondary/hovered']
180
+ },
181
+ '&:active': {
182
+ backgroundColor: theme.colors['bg/secondary/pressed']
183
+ },
184
+ ...(disabled ? {
185
+ 'cursor': 'not-allowed',
186
+ 'backgroundColor': theme.colors['bg/disabled'],
187
+ 'color': theme.colors['text/disabled'],
188
+ '& svg': {
189
+ color: theme.colors['icon/disabled']
190
+ }
191
+ } : {})
171
192
  }
172
193
  }
173
194
  })}
@@ -1,5 +1,5 @@
1
+ import { isNullable } from '../../packages/utils/esm/isNullable.js';
1
2
  import styled from 'styled-components';
2
- import { isNullable } from '../../utils/isNullable.js';
3
3
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
4
4
 
5
5
  const SelectOption = ({
@@ -1,11 +1,11 @@
1
1
  import { forwardRef, useState } from 'react';
2
2
  import SvgChevronDown from '../../packages/icons/esm/ChevronDown.js';
3
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
4
+ import { isFunction } from '../../packages/utils/esm/isFunction.js';
5
+ import { isNullable } from '../../packages/utils/esm/isNullable.js';
3
6
  import { r as reactIsExports } from '../../node_modules/react-is/index.js';
4
7
  import styled, { css } from 'styled-components';
5
8
  import useProvidedOrCreatedRef from '../../hook/useProvidedOrCreatedRef.js';
6
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
7
- import { isFunction } from '../../utils/isFunction.js';
8
- import { isNullable } from '../../utils/isNullable.js';
9
9
  import StyledIcon from '../StyledIcon/index.js';
10
10
  import View from '../View/index.js';
11
11
  import SelectOption from './SelectOption.js';
@@ -1,9 +1,9 @@
1
1
  import space from '../../packages/token-studio/esm/token/space/index.js';
2
2
  import '../../packages/token-studio/esm/token/typography/index.js';
3
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
3
4
  import { forwardRef } from 'react';
4
5
  import styled from 'styled-components';
5
6
  import '../../node_modules/styled-system/dist/index.esm.js';
6
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
7
7
  import View from '../View/index.js';
8
8
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
9
9
  import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
@@ -1,8 +1,8 @@
1
1
  import typography from '../../packages/token-studio/esm/token/typography/index.js';
2
+ import { scrollIntoView } from '../../packages/utils/esm/scrollIntoView.js';
2
3
  import { useRef, useContext } from 'react';
3
4
  import styled from 'styled-components';
4
5
  import '../../node_modules/styled-system/dist/index.esm.js';
5
- import { scrollIntoView } from '../../utils/scrollIntoView.js';
6
6
  import View from '../View/index.js';
7
7
  import UnstyledButton from '../_UnstyledButton.js';
8
8
  import { TabContext } from './index.js';
@@ -4,9 +4,9 @@ import SvgChevronRight from '../../packages/icons/esm/ChevronRight.js';
4
4
  import elevation from '../../packages/token-studio/esm/token/elevation/index.js';
5
5
  import gradient from '../../packages/token-studio/esm/token/gradient/index.js';
6
6
  import '../../packages/token-studio/esm/token/typography/index.js';
7
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
7
8
  import throttle from '../../node_modules/lodash.throttle/index.js';
8
9
  import useResize from '../../hook/useResize.js';
9
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
10
10
  import IconButton from '../IconButton/index.js';
11
11
  import View from '../View/index.js';
12
12
  import TabItem from './TabItem.js';
@@ -1,6 +1,6 @@
1
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
1
2
  import { forwardRef } from 'react';
2
3
  import styled from 'styled-components';
3
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
4
4
  import { sx } from '../../utils/styled-system/index.js';
5
5
  import UnstyledButton from '../_UnstyledButton.js';
6
6
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
@@ -1,12 +1,12 @@
1
1
  import color from '../../packages/token-studio/esm/token/color/index.js';
2
2
  import '../../packages/token-studio/esm/token/typography/index.js';
3
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
4
+ import { isFunction } from '../../packages/utils/esm/isFunction.js';
5
+ import { isNullable } from '../../packages/utils/esm/isNullable.js';
3
6
  import { forwardRef, cloneElement } from 'react';
4
7
  import { r as reactIsExports } from '../../node_modules/react-is/index.js';
5
8
  import styled, { css } from 'styled-components';
6
9
  import useProvidedOrCreatedRef from '../../hook/useProvidedOrCreatedRef.js';
7
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
8
- import { isFunction } from '../../utils/isFunction.js';
9
- import { isNullable } from '../../utils/isNullable.js';
10
10
  import View from '../View/index.js';
11
11
  import TextInputTrailingAction from './TextInputTrailingAction.js';
12
12
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
@@ -1,8 +1,8 @@
1
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
2
+ import { isFunction } from '../../packages/utils/esm/isFunction.js';
1
3
  import { forwardRef } from 'react';
2
4
  import styled, { css } from 'styled-components';
3
5
  import useProvidedOrCreatedRef from '../../hook/useProvidedOrCreatedRef.js';
4
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
5
- import { isFunction } from '../../utils/isFunction.js';
6
6
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
7
7
 
8
8
  const Textarea = /*#__PURE__*/forwardRef(({
@@ -1,5 +1,5 @@
1
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
1
2
  import styled, { keyframes } from 'styled-components';
2
- import { forcePixelValue } from '../../utils/forcePixelValue.js';
3
3
  import { sx } from '../../utils/styled-system/index.js';
4
4
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
5
5
 
@@ -0,0 +1,17 @@
1
+ import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
2
+ import * as React from 'react';
3
+
4
+ const SvgCart = 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: "M7.248 5.9a6.69 6.69 0 0 1 .643-1.574C8.617 3.066 9.885 2 11.871 2c1.987 0 3.255 1.066 3.98 2.326.291.506.5 1.047.644 1.574h2.437a1 1 0 0 1 .998.938l.808 12.937a2 2 0 0 1-1.996 2.125H5a2 2 0 0 1-1.996-2.125l.809-12.937A1 1 0 0 1 4.81 5.9h2.437Zm1.888 0c.087-.233.191-.46.315-.676.474-.823 1.207-1.424 2.42-1.424 1.214 0 1.946.6 2.42 1.424.124.215.228.443.315.676h-5.47Z",
14
+ clipRule: "evenodd"
15
+ }));
16
+
17
+ export { SvgCart as default };
@@ -0,0 +1,23 @@
1
+ import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
2
+ import * as React from 'react';
3
+
4
+ const SvgChevronDownTwo = 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: "M20.221 3.37a1.346 1.346 0 0 1-.396.954l-6.75 6.75a1.35 1.35 0 0 1-1.91 0l-6.75-6.75a1.35 1.35 0 1 1 1.91-1.908l5.796 5.795 5.795-5.795a1.35 1.35 0 0 1 2.305.954Z",
14
+ clipRule: "evenodd"
15
+ }), /*#__PURE__*/React.createElement("path", {
16
+ fill: "currentColor",
17
+ fillRule: "evenodd",
18
+ d: "M20.221 13.37a1.346 1.346 0 0 1-.396.955l-6.75 6.75a1.35 1.35 0 0 1-1.91 0l-6.75-6.75a1.35 1.35 0 1 1 1.91-1.909l5.796 5.795 5.795-5.794a1.35 1.35 0 0 1 2.305.954Z",
19
+ clipRule: "evenodd",
20
+ opacity: 0.6
21
+ }));
22
+
23
+ export { SvgChevronDownTwo as default };
@@ -29,6 +29,7 @@ export { default as CaretDownIcon } from './CaretDown.js';
29
29
  export { default as CaretLeftIcon } from './CaretLeft.js';
30
30
  export { default as CaretRightIcon } from './CaretRight.js';
31
31
  export { default as CaretUpIcon } from './CaretUp.js';
32
+ export { default as CartIcon } from './Cart.js';
32
33
  export { default as ChatBubbleIcon } from './ChatBubble.js';
33
34
  export { default as ChatBubbleBadgeColorIcon } from './ChatBubbleBadgeColor.js';
34
35
  export { default as ChatBubbleCorrectIcon } from './ChatBubbleCorrect.js';
@@ -40,6 +41,7 @@ export { default as CheckInCircleIcon } from './CheckInCircle.js';
40
41
  export { default as CheckInCircleColorIcon } from './CheckInCircleColor.js';
41
42
  export { default as CheckInCircleLineIcon } from './CheckInCircleLine.js';
42
43
  export { default as ChevronDownIcon } from './ChevronDown.js';
44
+ export { default as ChevronDownTwoIcon } from './ChevronDownTwo.js';
43
45
  export { default as ChevronLeftIcon } from './ChevronLeft.js';
44
46
  export { default as ChevronRightIcon } from './ChevronRight.js';
45
47
  export { default as ChevronRightTwoIcon } from './ChevronRightTwo.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.19.7",
3
+ "version": "2.19.9",
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",
@@ -54,7 +54,7 @@
54
54
  "dependencies": {
55
55
  "@floating-ui/react-dom": "^2.0.2",
56
56
  "@primer/behaviors": "^1.3.6",
57
- "@teamturing/icons": "^1.20.0",
57
+ "@teamturing/icons": "^1.21.0",
58
58
  "@teamturing/token-studio": "^1.1.8",
59
59
  "framer-motion": "^10.16.4",
60
60
  "lodash.debounce": "^4.0.8",
@@ -62,5 +62,5 @@
62
62
  "react-is": "^18.2.0",
63
63
  "styled-system": "^5.1.5"
64
64
  },
65
- "gitHead": "b4ae7f169a8281f95f95425f817bdf2968d32269"
65
+ "gitHead": "7f98d8f9387a726f605d7b5505a2df3a72d1e6ff"
66
66
  }
@@ -1,6 +0,0 @@
1
- type CSSPixelValue = number | string;
2
- /**
3
- * CSS에서 사용할 수 있는 픽셀값으로 강제합니다.
4
- */
5
- export declare const forcePixelValue: (value: CSSPixelValue) => string;
6
- export {};
@@ -1,4 +0,0 @@
1
- export { forcePixelValue } from './forcePixelValue';
2
- export { isArray } from './isArray';
3
- export { isFunction } from './isFunction';
4
- export { isNullable } from './isNullable';
@@ -1 +0,0 @@
1
- export declare const isArray: (value: any) => value is any[];
@@ -1 +0,0 @@
1
- export declare const isFunction: (value: any) => value is (...args: any[]) => any;
@@ -1 +0,0 @@
1
- export declare const isNullable: (value: any) => value is null | undefined;
@@ -1,11 +0,0 @@
1
- type Options = {
2
- behavior?: ScrollBehavior;
3
- direction?: 'horizontal' | 'vertical';
4
- offset?: number;
5
- };
6
- export declare const scrollIntoView: ({ childrenRef, scrollContainerRef, options, }: {
7
- childrenRef: HTMLElement;
8
- scrollContainerRef?: HTMLElement | undefined;
9
- options: Options;
10
- }) => void;
11
- export {};
File without changes
File without changes
File without changes