@teamturing/react-kit 2.21.12 → 2.21.14

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,10 +1,15 @@
1
- import { ComponentType, PropsWithChildren, SVGProps } from 'react';
1
+ import { ComponentType, HTMLAttributes, SVGProps } from 'react';
2
2
  import { SxProp } from '../../utils/styled-system';
3
3
  type FlashVariantType = 'neutral' | 'danger';
4
4
  type Props = {
5
5
  variant?: FlashVariantType;
6
6
  icon?: ComponentType<SVGProps<SVGSVGElement>>;
7
- } & SxProp;
8
- declare const Flash: ({ variant, icon: Icon, children, ...props }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element;
9
- export default Flash;
7
+ } & SxProp & HTMLAttributes<HTMLDivElement>;
8
+ declare const _default: import("react").ForwardRefExoticComponent<{
9
+ variant?: FlashVariantType | undefined;
10
+ icon?: ComponentType<SVGProps<SVGSVGElement>> | undefined;
11
+ } & SxProp & HTMLAttributes<HTMLDivElement> & {
12
+ children?: import("react").ReactNode;
13
+ } & import("react").RefAttributes<HTMLDivElement>>;
14
+ export default _default;
10
15
  export type { Props as FlashProps };
package/dist/index.js CHANGED
@@ -3176,6 +3176,74 @@ const SvgPaperCheck = props => /*#__PURE__*/React__namespace.createElement("svg"
3176
3176
  d: "M15.766 16.327H31.44V32H15.766z"
3177
3177
  }))));
3178
3178
 
3179
+ const SvgPaperPen = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
3180
+ xmlns: "http://www.w3.org/2000/svg",
3181
+ width: "1em",
3182
+ height: "1em",
3183
+ fill: "none",
3184
+ viewBox: "0 0 24 24"
3185
+ }, props), /*#__PURE__*/React__namespace.createElement("g", {
3186
+ fill: "currentColor",
3187
+ clipPath: "url(#paper_pen_svg__a)"
3188
+ }, /*#__PURE__*/React__namespace.createElement("rect", {
3189
+ width: 16.457,
3190
+ height: 20.197,
3191
+ x: 3.5,
3192
+ y: 1.645,
3193
+ opacity: 0.6,
3194
+ rx: 1.175
3195
+ }), /*#__PURE__*/React__namespace.createElement("path", {
3196
+ fillRule: "evenodd",
3197
+ 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",
3198
+ clipRule: "evenodd"
3199
+ })), /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
3200
+ id: "paper_pen_svg__a"
3201
+ }, /*#__PURE__*/React__namespace.createElement("path", {
3202
+ fill: "#fff",
3203
+ d: "M0 0h24v24H0z"
3204
+ }))));
3205
+
3206
+ const SvgPaperPenColor = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
3207
+ xmlns: "http://www.w3.org/2000/svg",
3208
+ width: "1em",
3209
+ height: "1em",
3210
+ fill: "none",
3211
+ viewBox: "0 0 24 24"
3212
+ }, props), /*#__PURE__*/React__namespace.createElement("g", {
3213
+ clipPath: "url(#paper_pen_color_svg__a)"
3214
+ }, /*#__PURE__*/React__namespace.createElement("rect", {
3215
+ width: 16.457,
3216
+ height: 20.197,
3217
+ x: 3.5,
3218
+ y: 1.645,
3219
+ fill: "#C6D8FA",
3220
+ rx: 1.175
3221
+ }), /*#__PURE__*/React__namespace.createElement("path", {
3222
+ fill: "#6D99F1",
3223
+ fillRule: "evenodd",
3224
+ 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",
3225
+ clipRule: "evenodd"
3226
+ })), /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
3227
+ id: "paper_pen_color_svg__a"
3228
+ }, /*#__PURE__*/React__namespace.createElement("path", {
3229
+ fill: "#fff",
3230
+ d: "M0 0h24v24H0z"
3231
+ }))));
3232
+
3233
+ const SvgPaperTwo = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
3234
+ xmlns: "http://www.w3.org/2000/svg",
3235
+ width: "1em",
3236
+ height: "1em",
3237
+ fill: "none",
3238
+ viewBox: "0 0 24 24"
3239
+ }, props), /*#__PURE__*/React__namespace.createElement("path", {
3240
+ fill: "currentColor",
3241
+ d: "M8.1 1.5A1.5 1.5 0 0 0 6.6 3v1.41H17.2a1.5 1.5 0 0 1 1.5 1.5v12.467h1.4a1.5 1.5 0 0 0 1.5-1.5V3a1.5 1.5 0 0 0-1.5-1.5H8.1Z"
3242
+ }), /*#__PURE__*/React__namespace.createElement("path", {
3243
+ fill: "currentColor",
3244
+ d: "M2.5 7.123a1.5 1.5 0 0 1 1.5-1.5h12.001a1.5 1.5 0 0 1 1.5 1.5V21a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 2.5 21V7.123Z"
3245
+ }));
3246
+
3179
3247
  const SvgPause = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
3180
3248
  xmlns: "http://www.w3.org/2000/svg",
3181
3249
  width: "1em",
@@ -4554,6 +4622,9 @@ var icons = /*#__PURE__*/Object.freeze({
4554
4622
  OutIcon: SvgOut,
4555
4623
  PalmTreeColorIcon: SvgPalmTreeColor,
4556
4624
  PaperCheckIcon: SvgPaperCheck,
4625
+ PaperPenColorIcon: SvgPaperPenColor,
4626
+ PaperPenIcon: SvgPaperPen,
4627
+ PaperTwoIcon: SvgPaperTwo,
4557
4628
  PauseIcon: SvgPause,
4558
4629
  PenIcon: SvgPen,
4559
4630
  PercentInCircleIcon: SvgPercentInCircle,
@@ -6874,7 +6945,7 @@ const BaseActionList = styled__default.default.ul`
6874
6945
 
6875
6946
  ${sx}
6876
6947
  `;
6877
- var index$a = Object.assign(ActionList, {
6948
+ var index$b = Object.assign(ActionList, {
6878
6949
  Item: ActionListItem,
6879
6950
  SectionDivider: ActionListSectionDivider,
6880
6951
  SectionHeader: ActionListSectionHeader
@@ -16145,7 +16216,7 @@ const BaseAvatar = styled__default.default(Image)`
16145
16216
  })}
16146
16217
  ${sx}
16147
16218
  `;
16148
- var index$9 = /*#__PURE__*/React.forwardRef(Avatar);
16219
+ var index$a = /*#__PURE__*/React.forwardRef(Avatar);
16149
16220
 
16150
16221
  const BadgeAttacher = ({
16151
16222
  children,
@@ -16557,7 +16628,7 @@ const BreadcrumbsItemWrapper = styled__default.default.span`
16557
16628
  }
16558
16629
  }
16559
16630
  `;
16560
- var index$8 = Object.assign(Breadcrumbs, {
16631
+ var index$9 = Object.assign(Breadcrumbs, {
16561
16632
  Item: BreadcrumbsItem
16562
16633
  });
16563
16634
 
@@ -17513,7 +17584,7 @@ const DatagridWrapper = styled__default.default.div`
17513
17584
  const BaseDatagrid = styled__default.default.div`
17514
17585
  width: inherit;
17515
17586
  `;
17516
- var index$7 = Object.assign(Datagrid, {
17587
+ var index$8 = Object.assign(Datagrid, {
17517
17588
  Header: DatagridHeader,
17518
17589
  Subheader: DatagridSubheader,
17519
17590
  Body: DatagridBody,
@@ -18708,7 +18779,7 @@ const BaseDialog = styled__default.default.div(({
18708
18779
  overflow: 'hidden',
18709
18780
  margin: 'auto'
18710
18781
  }), sx);
18711
- var index$6 = Object.assign( /*#__PURE__*/React.forwardRef(Dialog), {
18782
+ var index$7 = Object.assign( /*#__PURE__*/React.forwardRef(Dialog), {
18712
18783
  UnstyledHeader: UnstyledDialogHeader,
18713
18784
  UnstyledBody: UnstyledDialogBody,
18714
18785
  UnstyledFooter: UnstyledDialogFooter,
@@ -18829,8 +18900,9 @@ const Flash = ({
18829
18900
  icon: Icon = SvgInfoInCircle,
18830
18901
  children,
18831
18902
  ...props
18832
- }) => {
18903
+ }, ref) => {
18833
18904
  return /*#__PURE__*/jsxRuntimeExports.jsxs(BaseFlash, {
18905
+ ref: ref,
18834
18906
  variant: variant,
18835
18907
  ...props,
18836
18908
  children: [/*#__PURE__*/jsxRuntimeExports.jsx(Icon, {}), children]
@@ -18885,6 +18957,7 @@ const BaseFlash = styled__default.default.div`
18885
18957
 
18886
18958
  ${sx}
18887
18959
  `;
18960
+ var index$6 = /*#__PURE__*/React.forwardRef(Flash);
18888
18961
 
18889
18962
  const Radio = ({
18890
18963
  checked,
@@ -25834,21 +25907,21 @@ const useTabState = ({
25834
25907
  return [selectedIndex, handleSelect];
25835
25908
  };
25836
25909
 
25837
- exports.ActionList = index$a;
25910
+ exports.ActionList = index$b;
25838
25911
  exports.AnimatePresence = AnimatePresence;
25839
- exports.Avatar = index$9;
25912
+ exports.Avatar = index$a;
25840
25913
  exports.BadgeAttacher = BadgeAttacher;
25841
- exports.Breadcrumbs = index$8;
25914
+ exports.Breadcrumbs = index$9;
25842
25915
  exports.Button = Button;
25843
25916
  exports.Checkbox = Checkbox$1;
25844
25917
  exports.Chip = Chip;
25845
25918
  exports.CounterBadge = CounterBadge;
25846
- exports.Datagrid = index$7;
25919
+ exports.Datagrid = index$8;
25847
25920
  exports.DescriptionList = DescriptionList;
25848
- exports.Dialog = index$6;
25921
+ exports.Dialog = index$7;
25849
25922
  exports.EmptyState = EmptyState;
25850
25923
  exports.EnigmaUI = index;
25851
- exports.Flash = Flash;
25924
+ exports.Flash = index$6;
25852
25925
  exports.FormControl = index$4;
25853
25926
  exports.GradientText = GradientText;
25854
25927
  exports.Grid = Grid$1;
@@ -1,4 +1,4 @@
1
- import 'react';
1
+ import { forwardRef } from 'react';
2
2
  import SvgInfoInCircle from '../../packages/icons/esm/InfoInCircle.js';
3
3
  import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
4
4
  import styled from 'styled-components';
@@ -12,8 +12,9 @@ const Flash = ({
12
12
  icon: Icon = SvgInfoInCircle,
13
13
  children,
14
14
  ...props
15
- }) => {
15
+ }, ref) => {
16
16
  return /*#__PURE__*/jsxRuntimeExports.jsxs(BaseFlash, {
17
+ ref: ref,
17
18
  variant: variant,
18
19
  ...props,
19
20
  children: [/*#__PURE__*/jsxRuntimeExports.jsx(Icon, {}), children]
@@ -68,5 +69,6 @@ const BaseFlash = styled.div`
68
69
 
69
70
  ${sx}
70
71
  `;
72
+ var index = /*#__PURE__*/forwardRef(Flash);
71
73
 
72
- export { Flash as default };
74
+ export { index as default };
@@ -0,0 +1,31 @@
1
+ import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
2
+ import * as React from 'react';
3
+
4
+ const SvgPaperPen = 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
+ clipPath: "url(#paper_pen_svg__a)"
13
+ }, /*#__PURE__*/React.createElement("rect", {
14
+ width: 16.457,
15
+ height: 20.197,
16
+ x: 3.5,
17
+ y: 1.645,
18
+ opacity: 0.6,
19
+ rx: 1.175
20
+ }), /*#__PURE__*/React.createElement("path", {
21
+ 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",
23
+ clipRule: "evenodd"
24
+ })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
25
+ id: "paper_pen_svg__a"
26
+ }, /*#__PURE__*/React.createElement("path", {
27
+ fill: "#fff",
28
+ d: "M0 0h24v24H0z"
29
+ }))));
30
+
31
+ export { SvgPaperPen as default };
@@ -0,0 +1,31 @@
1
+ import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
2
+ import * as React from 'react';
3
+
4
+ const SvgPaperPenColor = 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
+ 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
19
+ }), /*#__PURE__*/React.createElement("path", {
20
+ fill: "#6D99F1",
21
+ 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",
23
+ 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
+ }))));
30
+
31
+ export { SvgPaperPenColor as default };
@@ -0,0 +1,18 @@
1
+ import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
2
+ import * as React from 'react';
3
+
4
+ const SvgPaperTwo = 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
+ d: "M8.1 1.5A1.5 1.5 0 0 0 6.6 3v1.41H17.2a1.5 1.5 0 0 1 1.5 1.5v12.467h1.4a1.5 1.5 0 0 0 1.5-1.5V3a1.5 1.5 0 0 0-1.5-1.5H8.1Z"
13
+ }), /*#__PURE__*/React.createElement("path", {
14
+ fill: "currentColor",
15
+ d: "M2.5 7.123a1.5 1.5 0 0 1 1.5-1.5h12.001a1.5 1.5 0 0 1 1.5 1.5V21a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 2.5 21V7.123Z"
16
+ }));
17
+
18
+ export { SvgPaperTwo as default };
@@ -133,6 +133,9 @@ export { default as NumberTwoOutlinedIcon } from './NumberTwoOutlined.js';
133
133
  export { default as OutIcon } from './Out.js';
134
134
  export { default as PalmTreeColorIcon } from './PalmTreeColor.js';
135
135
  export { default as PaperCheckIcon } from './PaperCheck.js';
136
+ export { default as PaperPenIcon } from './PaperPen.js';
137
+ export { default as PaperPenColorIcon } from './PaperPenColor.js';
138
+ export { default as PaperTwoIcon } from './PaperTwo.js';
136
139
  export { default as PauseIcon } from './Pause.js';
137
140
  export { default as PenIcon } from './Pen.js';
138
141
  export { default as PercentInCircleIcon } from './PercentInCircle.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.21.12",
3
+ "version": "2.21.14",
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.29.1",
58
+ "@teamturing/icons": "^1.30.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": "bf5607c3e648e74da4cb6207cf737fa4b2022d4c"
69
+ "gitHead": "a14bdd4f7702bf1b60cb049a9b07e512d54c9dc9"
70
70
  }