@teamturing/react-kit 2.39.1 → 2.40.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.
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { ColorKey, RadiiKey, SurfaceElevationKey } from '@teamturing/token-studio';
2
+ import { ColorKey, RadiiKey, SpaceKey, SurfaceElevationKey } from '@teamturing/token-studio';
3
3
  import { LayoutProps, ColorProps, FlexboxProps, BackgroundProps, BorderProps, PositionProps, ShadowProps, BorderRadiusProps, Theme, BorderColorProps } from 'styled-system';
4
- import { SxProp } from '../../utils/styled-system';
5
- type Props = {} & SxProp & LayoutProps & ColorProps<Theme, ColorKey | SurfaceElevationKey> & FlexboxProps & BackgroundProps & BorderProps & BorderColorProps<Theme, ColorKey | SurfaceElevationKey> & PositionProps & ShadowProps<Theme> & BorderRadiusProps<Theme, RadiiKey>;
4
+ import { ColumnGapProps, GapProps, RowGapProps, SxProp } from '../../utils/styled-system';
5
+ type Props = {} & SxProp & LayoutProps & ColorProps<Theme, ColorKey | SurfaceElevationKey> & FlexboxProps & BackgroundProps & BorderProps & BorderColorProps<Theme, ColorKey | SurfaceElevationKey> & PositionProps & ShadowProps<Theme> & BorderRadiusProps<Theme, RadiiKey> & GapProps<Theme, SpaceKey> & ColumnGapProps<Theme, SpaceKey> & RowGapProps<Theme, SpaceKey>;
6
6
  declare const View: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Props>>;
7
7
  export default View;
8
8
  export type { Props as ViewProps };
package/dist/index.js CHANGED
@@ -1062,6 +1062,24 @@ const lineClamp = system({
1062
1062
  scale: 'WebkitLineClamp'
1063
1063
  }
1064
1064
  });
1065
+ const gap = system({
1066
+ gap: {
1067
+ property: 'gap',
1068
+ scale: 'space'
1069
+ }
1070
+ });
1071
+ const columnGap = system({
1072
+ columnGap: {
1073
+ property: 'columnGap',
1074
+ scale: 'space'
1075
+ }
1076
+ });
1077
+ const rowGap = system({
1078
+ rowGap: {
1079
+ property: 'rowGap',
1080
+ scale: 'space'
1081
+ }
1082
+ });
1065
1083
 
1066
1084
  const UnstyledTableBody = styled__default.default.tbody`
1067
1085
  ${sx}
@@ -1594,6 +1612,32 @@ const SvgCamera = props => /*#__PURE__*/React__namespace.createElement("svg", _e
1594
1612
  clipRule: "evenodd"
1595
1613
  }));
1596
1614
 
1615
+ const SvgCameraColor = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
1616
+ xmlns: "http://www.w3.org/2000/svg",
1617
+ width: "1em",
1618
+ height: "1em",
1619
+ fill: "none",
1620
+ viewBox: "0 0 24 24"
1621
+ }, props), /*#__PURE__*/React__namespace.createElement("path", {
1622
+ fill: "#9C7EEF",
1623
+ fillRule: "evenodd",
1624
+ d: "M11.98 18.28a5.26 5.26 0 1 0 0-10.52 5.26 5.26 0 0 0 0 10.52ZM12 16.4a3.36 3.36 0 1 0 0-6.72 3.36 3.36 0 0 0 0 6.72Z",
1625
+ clipRule: "evenodd"
1626
+ }), /*#__PURE__*/React__namespace.createElement("circle", {
1627
+ cx: 19.125,
1628
+ cy: 8.625,
1629
+ r: 1.125,
1630
+ fill: "#9C7EEF"
1631
+ }), /*#__PURE__*/React__namespace.createElement("path", {
1632
+ fill: "#D9CDF9",
1633
+ d: "M9.628 10.648A3.359 3.359 0 0 1 12 9.664a3.359 3.359 0 0 1 3.355 3.356A3.358 3.358 0 0 1 12 16.376a3.358 3.358 0 0 1-3.355-3.356c0-.89.354-1.743.983-2.372Z"
1634
+ }), /*#__PURE__*/React__namespace.createElement("path", {
1635
+ fill: "#D9CDF9",
1636
+ fillRule: "evenodd",
1637
+ d: "M17.159 5.136h2.954a2.52 2.52 0 0 1 2.521 2.52v11.601a2.52 2.52 0 0 1-2.521 2.52H3.887a2.522 2.522 0 0 1-2.521-2.52V7.656a2.52 2.52 0 0 1 2.521-2.52h2.954l1.036-2.129a2.1 2.1 0 0 1 1.888-1.18h4.413a2.1 2.1 0 0 1 1.868 1.14l1.113 2.169ZM8.292 16.729A5.252 5.252 0 0 0 12 18.267a5.252 5.252 0 0 0 5.246-5.246A5.252 5.252 0 0 0 12 7.774a5.252 5.252 0 0 0-5.246 5.247 5.252 5.252 0 0 0 1.538 3.708ZM19.125 9.75a1.125 1.125 0 1 0 0-2.25 1.125 1.125 0 0 0 0 2.25Z",
1638
+ clipRule: "evenodd"
1639
+ }));
1640
+
1597
1641
  const SvgCard = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
1598
1642
  xmlns: "http://www.w3.org/2000/svg",
1599
1643
  width: "1em",
@@ -3456,26 +3500,15 @@ const SvgPaperPenColor = props => /*#__PURE__*/React__namespace.createElement("s
3456
3500
  height: "1em",
3457
3501
  fill: "none",
3458
3502
  viewBox: "0 0 24 24"
3459
- }, props), /*#__PURE__*/React__namespace.createElement("g", {
3460
- clipPath: "url(#paper_pen_color_svg__a)"
3461
- }, /*#__PURE__*/React__namespace.createElement("rect", {
3462
- width: 16.457,
3463
- height: 20.197,
3464
- x: 3.5,
3465
- y: 1.645,
3466
- fill: "#C6D8FA",
3467
- rx: 1.175
3503
+ }, props), /*#__PURE__*/React__namespace.createElement("path", {
3504
+ fill: "#D9CDF9",
3505
+ d: "M3.5 2.82c0-.65.526-1.175 1.175-1.175h14.106c.65 0 1.176.526 1.176 1.175v17.846c0 .65-.527 1.175-1.176 1.175H4.675c-.649 0-1.175-.526-1.175-1.175V2.82Z"
3468
3506
  }), /*#__PURE__*/React__namespace.createElement("path", {
3469
- fill: "#6D99F1",
3507
+ fill: "#9C7EEF",
3470
3508
  fillRule: "evenodd",
3471
- d: "m19.205 11.89-4.239 4.239-.578 2.156-.38 1.42a.235.235 0 0 0 .287.287l1.42-.38 2.156-.579 4.24-4.238-2.906-2.905Zm4.658.491-2.244-2.244a.466.466 0 0 0-.66 0L19.8 11.294l2.906 2.906 1.157-1.158a.469.469 0 0 0 0-.661Z",
3509
+ d: "m19.205 11.89-4.239 4.239-.578 2.156-.38 1.42a.235.235 0 0 0 .287.287l1.42-.38 2.156-.579 4.24-4.238-2.906-2.905Zm4.658.491-2.244-2.244a.467.467 0 0 0-.66 0L19.8 11.294l2.906 2.906 1.157-1.158a.469.469 0 0 0 0-.661Z",
3472
3510
  clipRule: "evenodd"
3473
- })), /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
3474
- id: "paper_pen_color_svg__a"
3475
- }, /*#__PURE__*/React__namespace.createElement("path", {
3476
- fill: "#fff",
3477
- d: "M0 0h24v24H0z"
3478
- }))));
3511
+ }));
3479
3512
 
3480
3513
  const SvgPaperTwo = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
3481
3514
  xmlns: "http://www.w3.org/2000/svg",
@@ -4806,6 +4839,7 @@ var icons = /*#__PURE__*/Object.freeze({
4806
4839
  CalendarCheckIcon: SvgCalendarCheck,
4807
4840
  CalendarColorIcon: SvgCalendarColor,
4808
4841
  CalendarIcon: SvgCalendar,
4842
+ CameraColorIcon: SvgCameraColor,
4809
4843
  CameraIcon: SvgCamera,
4810
4844
  CardIcon: SvgCard,
4811
4845
  CardsPercentColorIcon: SvgCardsPercentColor,
@@ -5416,7 +5450,7 @@ if (process.env.NODE_ENV === 'production') {
5416
5450
  var reactIsExports = reactIs.exports;
5417
5451
 
5418
5452
  const View = styled__default.default.div`
5419
- ${compose(layout$1, color$2, flexbox, background, border, position, shadow$1)}
5453
+ ${compose(layout$1, color$2, flexbox, background, border, position, shadow$1, gap, columnGap, rowGap)}
5420
5454
  ${sx}
5421
5455
  `;
5422
5456
 
@@ -39935,7 +39969,10 @@ exports.Tooltip = Tooltip$1;
39935
39969
  exports.UnstyledButton = UnstyledButton;
39936
39970
  exports.UnstyledTable = index$e;
39937
39971
  exports.View = View;
39972
+ exports.columnGap = columnGap;
39973
+ exports.gap = gap;
39938
39974
  exports.lineClamp = lineClamp;
39975
+ exports.rowGap = rowGap;
39939
39976
  exports.sx = sx;
39940
39977
  exports.textDecoration = textDecoration;
39941
39978
  exports.theme = theme;
@@ -1,6 +1,6 @@
1
1
  import { SystemStyleObject } from '@styled-system/css';
2
2
  import * as CSS from 'csstype';
3
- import { RequiredTheme, ResponsiveValue, Theme } from 'styled-system';
3
+ import { RequiredTheme, ResponsiveValue, Theme, ThemeValue } from 'styled-system';
4
4
  type CSSCustomProperties = {
5
5
  [key: `--${string}`]: string | number;
6
6
  };
@@ -31,5 +31,17 @@ type LineClampProps<ThemeType extends Theme = RequiredTheme> = {
31
31
  lineClamp?: ResponsiveValue<CSS.Property.LineClamp, ThemeType> | undefined;
32
32
  };
33
33
  declare const lineClamp: import("styled-system").styleFn;
34
- export { sx, textDecoration, whiteSpace, wordBreak, lineClamp };
35
- export type { BetterSystemStyleObject, AsProp, TextDecorationProps, WhiteSpaceProps, WordBreakProps, LineClampProps };
34
+ type GapProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> = {
35
+ gap?: ResponsiveValue<TVal, ThemeType> | undefined;
36
+ };
37
+ declare const gap: import("styled-system").styleFn;
38
+ type ColumnGapProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> = {
39
+ columnGap?: ResponsiveValue<TVal, ThemeType> | undefined;
40
+ };
41
+ declare const columnGap: import("styled-system").styleFn;
42
+ type RowGapProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> = {
43
+ rowGap?: ResponsiveValue<TVal, ThemeType> | undefined;
44
+ };
45
+ declare const rowGap: import("styled-system").styleFn;
46
+ export { sx, textDecoration, whiteSpace, wordBreak, lineClamp, gap, columnGap, rowGap };
47
+ export type { BetterSystemStyleObject, AsProp, TextDecorationProps, WhiteSpaceProps, WordBreakProps, LineClampProps, GapProps, ColumnGapProps, RowGapProps, };
@@ -1,6 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
  import '../../node_modules/styled-system/dist/index.esm.js';
3
- import { sx } from '../../utils/styled-system/index.js';
3
+ import { sx, gap, columnGap, rowGap } from '../../utils/styled-system/index.js';
4
4
  import { compose } from '../../node_modules/@styled-system/core/dist/index.esm.js';
5
5
  import { layout } from '../../node_modules/@styled-system/layout/dist/index.esm.js';
6
6
  import { color } from '../../node_modules/@styled-system/color/dist/index.esm.js';
@@ -11,7 +11,7 @@ import { position } from '../../node_modules/@styled-system/position/dist/index.
11
11
  import { shadow } from '../../node_modules/@styled-system/shadow/dist/index.esm.js';
12
12
 
13
13
  const View = styled.div`
14
- ${compose(layout, color, flexbox, background, border, position, shadow)}
14
+ ${compose(layout, color, flexbox, background, border, position, shadow, gap, columnGap, rowGap)}
15
15
  ${sx}
16
16
  `;
17
17
 
package/esm/index.js CHANGED
@@ -59,5 +59,5 @@ export { default as useSafeLayoutEffect } from './hook/useSafeLayoutEffect.js';
59
59
  export { default as useTabState } from './hook/useTabState.js';
60
60
  export { default as useToggleState } from './hook/useToggleState.js';
61
61
  export { default as theme } from './theme/index.js';
62
- export { lineClamp, sx, textDecoration, whiteSpace, wordBreak } from './utils/styled-system/index.js';
62
+ export { columnGap, gap, lineClamp, rowGap, sx, textDecoration, whiteSpace, wordBreak } from './utils/styled-system/index.js';
63
63
  export { AnimatePresence } from './node_modules/framer-motion/dist/es/components/AnimatePresence/index.js';
@@ -0,0 +1,30 @@
1
+ import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
2
+ import * as React from 'react';
3
+
4
+ const SvgCameraColor = 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: "#9C7EEF",
12
+ fillRule: "evenodd",
13
+ d: "M11.98 18.28a5.26 5.26 0 1 0 0-10.52 5.26 5.26 0 0 0 0 10.52ZM12 16.4a3.36 3.36 0 1 0 0-6.72 3.36 3.36 0 0 0 0 6.72Z",
14
+ clipRule: "evenodd"
15
+ }), /*#__PURE__*/React.createElement("circle", {
16
+ cx: 19.125,
17
+ cy: 8.625,
18
+ r: 1.125,
19
+ fill: "#9C7EEF"
20
+ }), /*#__PURE__*/React.createElement("path", {
21
+ fill: "#D9CDF9",
22
+ d: "M9.628 10.648A3.359 3.359 0 0 1 12 9.664a3.359 3.359 0 0 1 3.355 3.356A3.358 3.358 0 0 1 12 16.376a3.358 3.358 0 0 1-3.355-3.356c0-.89.354-1.743.983-2.372Z"
23
+ }), /*#__PURE__*/React.createElement("path", {
24
+ fill: "#D9CDF9",
25
+ fillRule: "evenodd",
26
+ d: "M17.159 5.136h2.954a2.52 2.52 0 0 1 2.521 2.52v11.601a2.52 2.52 0 0 1-2.521 2.52H3.887a2.522 2.522 0 0 1-2.521-2.52V7.656a2.52 2.52 0 0 1 2.521-2.52h2.954l1.036-2.129a2.1 2.1 0 0 1 1.888-1.18h4.413a2.1 2.1 0 0 1 1.868 1.14l1.113 2.169ZM8.292 16.729A5.252 5.252 0 0 0 12 18.267a5.252 5.252 0 0 0 5.246-5.246A5.252 5.252 0 0 0 12 7.774a5.252 5.252 0 0 0-5.246 5.247 5.252 5.252 0 0 0 1.538 3.708ZM19.125 9.75a1.125 1.125 0 1 0 0-2.25 1.125 1.125 0 0 0 0 2.25Z",
27
+ clipRule: "evenodd"
28
+ }));
29
+
30
+ export { SvgCameraColor as default };
@@ -7,25 +7,14 @@ const SvgPaperPenColor = props => /*#__PURE__*/React.createElement("svg", _exten
7
7
  height: "1em",
8
8
  fill: "none",
9
9
  viewBox: "0 0 24 24"
10
- }, props), /*#__PURE__*/React.createElement("g", {
11
- clipPath: "url(#paper_pen_color_svg__a)"
12
- }, /*#__PURE__*/React.createElement("rect", {
13
- width: 16.457,
14
- height: 20.197,
15
- x: 3.5,
16
- y: 1.645,
17
- fill: "#C6D8FA",
18
- rx: 1.175
10
+ }, props), /*#__PURE__*/React.createElement("path", {
11
+ fill: "#D9CDF9",
12
+ d: "M3.5 2.82c0-.65.526-1.175 1.175-1.175h14.106c.65 0 1.176.526 1.176 1.175v17.846c0 .65-.527 1.175-1.176 1.175H4.675c-.649 0-1.175-.526-1.175-1.175V2.82Z"
19
13
  }), /*#__PURE__*/React.createElement("path", {
20
- fill: "#6D99F1",
14
+ fill: "#9C7EEF",
21
15
  fillRule: "evenodd",
22
- d: "m19.205 11.89-4.239 4.239-.578 2.156-.38 1.42a.235.235 0 0 0 .287.287l1.42-.38 2.156-.579 4.24-4.238-2.906-2.905Zm4.658.491-2.244-2.244a.466.466 0 0 0-.66 0L19.8 11.294l2.906 2.906 1.157-1.158a.469.469 0 0 0 0-.661Z",
16
+ d: "m19.205 11.89-4.239 4.239-.578 2.156-.38 1.42a.235.235 0 0 0 .287.287l1.42-.38 2.156-.579 4.24-4.238-2.906-2.905Zm4.658.491-2.244-2.244a.467.467 0 0 0-.66 0L19.8 11.294l2.906 2.906 1.157-1.158a.469.469 0 0 0 0-.661Z",
23
17
  clipRule: "evenodd"
24
- })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
25
- id: "paper_pen_color_svg__a"
26
- }, /*#__PURE__*/React.createElement("path", {
27
- fill: "#fff",
28
- d: "M0 0h24v24H0z"
29
- }))));
18
+ }));
30
19
 
31
20
  export { SvgPaperPenColor as default };
@@ -29,6 +29,7 @@ export { default as CalendarCheckIcon } from './CalendarCheck.js';
29
29
  export { default as CalendarCheckColorIcon } from './CalendarCheckColor.js';
30
30
  export { default as CalendarColorIcon } from './CalendarColor.js';
31
31
  export { default as CameraIcon } from './Camera.js';
32
+ export { default as CameraColorIcon } from './CameraColor.js';
32
33
  export { default as CardIcon } from './Card.js';
33
34
  export { default as CardsPercentIcon } from './CardsPercent.js';
34
35
  export { default as CardsPercentColorIcon } from './CardsPercentColor.js';
@@ -29,5 +29,23 @@ const lineClamp = system({
29
29
  scale: 'WebkitLineClamp'
30
30
  }
31
31
  });
32
+ const gap = system({
33
+ gap: {
34
+ property: 'gap',
35
+ scale: 'space'
36
+ }
37
+ });
38
+ const columnGap = system({
39
+ columnGap: {
40
+ property: 'columnGap',
41
+ scale: 'space'
42
+ }
43
+ });
44
+ const rowGap = system({
45
+ rowGap: {
46
+ property: 'rowGap',
47
+ scale: 'space'
48
+ }
49
+ });
32
50
 
33
- export { lineClamp, sx, textDecoration, whiteSpace, wordBreak };
51
+ export { columnGap, gap, lineClamp, rowGap, sx, textDecoration, whiteSpace, wordBreak };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.39.1",
3
+ "version": "2.40.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.47.0",
58
+ "@teamturing/icons": "^1.48.0",
59
59
  "@teamturing/token-studio": "^1.10.0",
60
60
  "@teamturing/utils": "^1.4.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": "0742fd7257c18f448ebb670bc1ef19ac4dc2b9dd"
69
+ "gitHead": "e607425d99045e7df51099a69229839c434175b8"
70
70
  }