@teamturing/react-kit 2.29.1 → 2.30.1
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.
|
@@ -23,6 +23,26 @@ type Props = {
|
|
|
23
23
|
*/
|
|
24
24
|
disabled?: boolean;
|
|
25
25
|
} & UnstyledButtonProps & SxProp;
|
|
26
|
-
declare const
|
|
27
|
-
|
|
26
|
+
declare const _default: import("react").ForwardRefExoticComponent<{
|
|
27
|
+
icon: ComponentType<SVGProps<SVGSVGElement>>;
|
|
28
|
+
/**
|
|
29
|
+
* 크기를 정의합니다.
|
|
30
|
+
* 반응형 디자인이 적용됩니다.
|
|
31
|
+
*/
|
|
32
|
+
size?: ResponsiveValue<"m" | "s" | "l"> | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* 색을 정의합니다.
|
|
35
|
+
*/
|
|
36
|
+
variant?: "primary" | "plain" | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* 활성화 상태를 정의합니다.
|
|
39
|
+
* `true`일 경우, 활성화된 상태를 그립니다.
|
|
40
|
+
*/
|
|
41
|
+
selected?: boolean | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* 비활성화 상태를 정의합니다.
|
|
44
|
+
*/
|
|
45
|
+
disabled?: boolean | undefined;
|
|
46
|
+
} & import("react").ButtonHTMLAttributes<HTMLButtonElement> & SxProp & import("react").RefAttributes<HTMLButtonElement>>;
|
|
47
|
+
export default _default;
|
|
28
48
|
export type { Props as IconToggleButtonProps };
|
package/dist/index.js
CHANGED
|
@@ -2406,6 +2406,19 @@ const SvgFilter = props => /*#__PURE__*/React__namespace.createElement("svg", _e
|
|
|
2406
2406
|
clipRule: "evenodd"
|
|
2407
2407
|
}));
|
|
2408
2408
|
|
|
2409
|
+
const SvgFind = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
2410
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2411
|
+
width: "1em",
|
|
2412
|
+
height: "1em",
|
|
2413
|
+
fill: "none",
|
|
2414
|
+
viewBox: "0 0 24 24"
|
|
2415
|
+
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
2416
|
+
fill: "currentColor",
|
|
2417
|
+
fillRule: "evenodd",
|
|
2418
|
+
d: "M9 9v6h6V9H9Zm-.5-2A1.5 1.5 0 0 0 7 8.5v7A1.5 1.5 0 0 0 8.5 17h7a1.5 1.5 0 0 0 1.5-1.5v-7A1.5 1.5 0 0 0 15.5 7h-7ZM2 4a2 2 0 0 1 2-2h4a1 1 0 0 1 0 2H4v4a1 1 0 0 1-2 0V4ZM2 20a2 2 0 0 0 2 2h4a1 1 0 1 0 0-2H4v-4a1 1 0 1 0-2 0v4ZM22 4a2 2 0 0 0-2-2h-4a1 1 0 1 0 0 2h4v4a1 1 0 1 0 2 0V4ZM22 20a2 2 0 0 1-2 2h-4a1 1 0 1 1 0-2h4v-4a1 1 0 1 1 2 0v4Z",
|
|
2419
|
+
clipRule: "evenodd"
|
|
2420
|
+
}));
|
|
2421
|
+
|
|
2409
2422
|
const SvgFire = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
2410
2423
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2411
2424
|
width: "1em",
|
|
@@ -4722,6 +4735,7 @@ var icons = /*#__PURE__*/Object.freeze({
|
|
|
4722
4735
|
FacebookColorIcon: SvgFacebookColor,
|
|
4723
4736
|
FacebookIcon: SvgFacebook,
|
|
4724
4737
|
FilterIcon: SvgFilter,
|
|
4738
|
+
FindIcon: SvgFind,
|
|
4725
4739
|
FireColorIcon: SvgFireColor,
|
|
4726
4740
|
FireIcon: SvgFire,
|
|
4727
4741
|
FolderIcon: SvgFolder,
|
|
@@ -7103,7 +7117,7 @@ const BaseActionList = styled__default.default.ul`
|
|
|
7103
7117
|
|
|
7104
7118
|
${sx}
|
|
7105
7119
|
`;
|
|
7106
|
-
var index$
|
|
7120
|
+
var index$d = Object.assign(ActionList, {
|
|
7107
7121
|
Item: ActionListItem,
|
|
7108
7122
|
SectionDivider: ActionListSectionDivider,
|
|
7109
7123
|
SectionHeader: ActionListSectionHeader
|
|
@@ -16374,7 +16388,7 @@ const BaseAvatar = styled__default.default(Image)`
|
|
|
16374
16388
|
})}
|
|
16375
16389
|
${sx}
|
|
16376
16390
|
`;
|
|
16377
|
-
var index$
|
|
16391
|
+
var index$c = /*#__PURE__*/React.forwardRef(Avatar);
|
|
16378
16392
|
|
|
16379
16393
|
const BadgeAttacher = ({
|
|
16380
16394
|
children,
|
|
@@ -16786,7 +16800,7 @@ const BreadcrumbsItemWrapper = styled__default.default.span`
|
|
|
16786
16800
|
}
|
|
16787
16801
|
}
|
|
16788
16802
|
`;
|
|
16789
|
-
var index$
|
|
16803
|
+
var index$b = Object.assign(Breadcrumbs, {
|
|
16790
16804
|
Item: BreadcrumbsItem
|
|
16791
16805
|
});
|
|
16792
16806
|
|
|
@@ -17756,7 +17770,7 @@ const DatagridWrapper = styled__default.default.div`
|
|
|
17756
17770
|
const BaseDatagrid = styled__default.default.div`
|
|
17757
17771
|
width: inherit;
|
|
17758
17772
|
`;
|
|
17759
|
-
var index$
|
|
17773
|
+
var index$a = Object.assign(Datagrid, {
|
|
17760
17774
|
Header: DatagridHeader,
|
|
17761
17775
|
Subheader: DatagridSubheader,
|
|
17762
17776
|
Body: DatagridBody,
|
|
@@ -18968,7 +18982,7 @@ const BaseDialog = styled__default.default.div(({
|
|
|
18968
18982
|
overflow: 'hidden',
|
|
18969
18983
|
margin: 'auto'
|
|
18970
18984
|
}), sx);
|
|
18971
|
-
var index$
|
|
18985
|
+
var index$9 = Object.assign( /*#__PURE__*/React.forwardRef(Dialog), {
|
|
18972
18986
|
UnstyledHeader: UnstyledDialogHeader,
|
|
18973
18987
|
UnstyledBody: UnstyledDialogBody,
|
|
18974
18988
|
UnstyledFooter: UnstyledDialogFooter,
|
|
@@ -19289,7 +19303,7 @@ const BaseDrawer = styled__default.default.div(({
|
|
|
19289
19303
|
}
|
|
19290
19304
|
}
|
|
19291
19305
|
}), sx);
|
|
19292
|
-
var index$
|
|
19306
|
+
var index$8 = Object.assign( /*#__PURE__*/React.forwardRef(Drawer), {
|
|
19293
19307
|
UnstyledHeader: UnstyledDrawerHeader,
|
|
19294
19308
|
UnstyledBody: UnstyledDrawerBody,
|
|
19295
19309
|
UnstyledFooter: UnstyledDrawerFooter,
|
|
@@ -19534,7 +19548,7 @@ const BaseFlash = styled__default.default.div`
|
|
|
19534
19548
|
|
|
19535
19549
|
${sx}
|
|
19536
19550
|
`;
|
|
19537
|
-
var index$
|
|
19551
|
+
var index$7 = /*#__PURE__*/React.forwardRef(Flash);
|
|
19538
19552
|
|
|
19539
19553
|
const Radio = ({
|
|
19540
19554
|
checked,
|
|
@@ -34440,7 +34454,7 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
34440
34454
|
}
|
|
34441
34455
|
var reactDomExports = reactDom.exports;
|
|
34442
34456
|
|
|
34443
|
-
var index$
|
|
34457
|
+
var index$6 = typeof document !== 'undefined' ? React.useLayoutEffect : React.useEffect;
|
|
34444
34458
|
|
|
34445
34459
|
// Fork of `fast-deep-equal` that only does the comparisons we need and compares
|
|
34446
34460
|
// functions
|
|
@@ -34505,7 +34519,7 @@ function roundByDPR(element, value) {
|
|
|
34505
34519
|
|
|
34506
34520
|
function useLatestRef(value) {
|
|
34507
34521
|
const ref = React__namespace.useRef(value);
|
|
34508
|
-
index$
|
|
34522
|
+
index$6(() => {
|
|
34509
34523
|
ref.current = value;
|
|
34510
34524
|
});
|
|
34511
34525
|
return ref;
|
|
@@ -34590,7 +34604,7 @@ function useFloating(options) {
|
|
|
34590
34604
|
}
|
|
34591
34605
|
});
|
|
34592
34606
|
}, [latestMiddleware, placement, strategy, platformRef]);
|
|
34593
|
-
index$
|
|
34607
|
+
index$6(() => {
|
|
34594
34608
|
if (open === false && dataRef.current.isPositioned) {
|
|
34595
34609
|
dataRef.current.isPositioned = false;
|
|
34596
34610
|
setData(data => ({
|
|
@@ -34600,13 +34614,13 @@ function useFloating(options) {
|
|
|
34600
34614
|
}
|
|
34601
34615
|
}, [open]);
|
|
34602
34616
|
const isMountedRef = React__namespace.useRef(false);
|
|
34603
|
-
index$
|
|
34617
|
+
index$6(() => {
|
|
34604
34618
|
isMountedRef.current = true;
|
|
34605
34619
|
return () => {
|
|
34606
34620
|
isMountedRef.current = false;
|
|
34607
34621
|
};
|
|
34608
34622
|
}, []);
|
|
34609
|
-
index$
|
|
34623
|
+
index$6(() => {
|
|
34610
34624
|
if (referenceEl) referenceRef.current = referenceEl;
|
|
34611
34625
|
if (floatingEl) floatingRef.current = floatingEl;
|
|
34612
34626
|
if (referenceEl && floatingEl) {
|
|
@@ -36949,7 +36963,7 @@ const FormControl = ({
|
|
|
36949
36963
|
})
|
|
36950
36964
|
});
|
|
36951
36965
|
};
|
|
36952
|
-
var index$
|
|
36966
|
+
var index$5 = Object.assign( /*#__PURE__*/React.forwardRef(FormControl), {
|
|
36953
36967
|
Label: FormControlLabel,
|
|
36954
36968
|
Caption: FormControlCaption,
|
|
36955
36969
|
ErrorMessage: FormControlErrorMessage,
|
|
@@ -36973,20 +36987,19 @@ const IconToggleButton = ({
|
|
|
36973
36987
|
disabled = false,
|
|
36974
36988
|
sx,
|
|
36975
36989
|
...props
|
|
36976
|
-
}) => {
|
|
36977
|
-
|
|
36978
|
-
|
|
36979
|
-
|
|
36980
|
-
|
|
36981
|
-
|
|
36982
|
-
|
|
36983
|
-
|
|
36984
|
-
|
|
36985
|
-
|
|
36986
|
-
|
|
36987
|
-
|
|
36988
|
-
|
|
36989
|
-
};
|
|
36990
|
+
}, ref) => /*#__PURE__*/jsxRuntimeExports.jsx(BaseIconToggleButton, {
|
|
36991
|
+
ref: ref,
|
|
36992
|
+
icon: Icon,
|
|
36993
|
+
size: size,
|
|
36994
|
+
variant: variant,
|
|
36995
|
+
selected: selected,
|
|
36996
|
+
type: 'button',
|
|
36997
|
+
disabled: disabled,
|
|
36998
|
+
$disabled: disabled,
|
|
36999
|
+
sx: sx,
|
|
37000
|
+
...props,
|
|
37001
|
+
children: /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {})
|
|
37002
|
+
});
|
|
36990
37003
|
const BaseIconToggleButton = styled__default.default(UnstyledButton)(({
|
|
36991
37004
|
$disabled,
|
|
36992
37005
|
theme
|
|
@@ -37063,6 +37076,7 @@ const BaseIconToggleButton = styled__default.default(UnstyledButton)(({
|
|
|
37063
37076
|
}
|
|
37064
37077
|
}
|
|
37065
37078
|
}), sx);
|
|
37079
|
+
var index$4 = /*#__PURE__*/React.forwardRef(IconToggleButton);
|
|
37066
37080
|
|
|
37067
37081
|
const Pagination = ({
|
|
37068
37082
|
pages: propPages,
|
|
@@ -39532,28 +39546,28 @@ const useTabState = ({
|
|
|
39532
39546
|
return [selectedIndex, handleSelect];
|
|
39533
39547
|
};
|
|
39534
39548
|
|
|
39535
|
-
exports.ActionList = index$
|
|
39549
|
+
exports.ActionList = index$d;
|
|
39536
39550
|
exports.AnimatePresence = AnimatePresence;
|
|
39537
|
-
exports.Avatar = index$
|
|
39551
|
+
exports.Avatar = index$c;
|
|
39538
39552
|
exports.BadgeAttacher = BadgeAttacher;
|
|
39539
|
-
exports.Breadcrumbs = index$
|
|
39553
|
+
exports.Breadcrumbs = index$b;
|
|
39540
39554
|
exports.Button = Button;
|
|
39541
39555
|
exports.Checkbox = Checkbox$1;
|
|
39542
39556
|
exports.Chip = Chip;
|
|
39543
39557
|
exports.CounterBadge = CounterBadge;
|
|
39544
|
-
exports.Datagrid = index$
|
|
39558
|
+
exports.Datagrid = index$a;
|
|
39545
39559
|
exports.DescriptionList = DescriptionList;
|
|
39546
|
-
exports.Dialog = index$
|
|
39547
|
-
exports.Drawer = index$
|
|
39560
|
+
exports.Dialog = index$9;
|
|
39561
|
+
exports.Drawer = index$8;
|
|
39548
39562
|
exports.EmptyState = EmptyState;
|
|
39549
39563
|
exports.EnigmaUI = index;
|
|
39550
|
-
exports.Flash = index$
|
|
39551
|
-
exports.FormControl = index$
|
|
39564
|
+
exports.Flash = index$7;
|
|
39565
|
+
exports.FormControl = index$5;
|
|
39552
39566
|
exports.GradientText = GradientText;
|
|
39553
39567
|
exports.Grid = Grid$1;
|
|
39554
39568
|
exports.HorizontalDivider = HorizontalDivider;
|
|
39555
39569
|
exports.IconButton = IconButton;
|
|
39556
|
-
exports.IconToggleButton =
|
|
39570
|
+
exports.IconToggleButton = index$4;
|
|
39557
39571
|
exports.Image = Image;
|
|
39558
39572
|
exports.ItemList = ItemList;
|
|
39559
39573
|
exports.MotionView = MotionView;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
1
2
|
import styled from 'styled-components';
|
|
2
3
|
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
3
4
|
import { sx } from '../../utils/styled-system/index.js';
|
|
@@ -13,20 +14,19 @@ const IconToggleButton = ({
|
|
|
13
14
|
disabled = false,
|
|
14
15
|
sx,
|
|
15
16
|
...props
|
|
16
|
-
}) => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
17
|
+
}, ref) => /*#__PURE__*/jsxRuntimeExports.jsx(BaseIconToggleButton, {
|
|
18
|
+
ref: ref,
|
|
19
|
+
icon: Icon,
|
|
20
|
+
size: size,
|
|
21
|
+
variant: variant,
|
|
22
|
+
selected: selected,
|
|
23
|
+
type: 'button',
|
|
24
|
+
disabled: disabled,
|
|
25
|
+
$disabled: disabled,
|
|
26
|
+
sx: sx,
|
|
27
|
+
...props,
|
|
28
|
+
children: /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {})
|
|
29
|
+
});
|
|
30
30
|
const BaseIconToggleButton = styled(UnstyledButton)(({
|
|
31
31
|
$disabled,
|
|
32
32
|
theme
|
|
@@ -103,5 +103,6 @@ const BaseIconToggleButton = styled(UnstyledButton)(({
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
}), sx);
|
|
106
|
+
var index = /*#__PURE__*/forwardRef(IconToggleButton);
|
|
106
107
|
|
|
107
|
-
export {
|
|
108
|
+
export { index as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
const SvgFind = 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: "M9 9v6h6V9H9Zm-.5-2A1.5 1.5 0 0 0 7 8.5v7A1.5 1.5 0 0 0 8.5 17h7a1.5 1.5 0 0 0 1.5-1.5v-7A1.5 1.5 0 0 0 15.5 7h-7ZM2 4a2 2 0 0 1 2-2h4a1 1 0 0 1 0 2H4v4a1 1 0 0 1-2 0V4ZM2 20a2 2 0 0 0 2 2h4a1 1 0 1 0 0-2H4v-4a1 1 0 1 0-2 0v4ZM22 4a2 2 0 0 0-2-2h-4a1 1 0 1 0 0 2h4v4a1 1 0 1 0 2 0V4ZM22 20a2 2 0 0 1-2 2h-4a1 1 0 1 1 0-2h4v-4a1 1 0 1 1 2 0v4Z",
|
|
14
|
+
clipRule: "evenodd"
|
|
15
|
+
}));
|
|
16
|
+
|
|
17
|
+
export { SvgFind as default };
|
|
@@ -86,6 +86,7 @@ export { default as FaceSadIcon } from './FaceSad.js';
|
|
|
86
86
|
export { default as FacebookIcon } from './Facebook.js';
|
|
87
87
|
export { default as FacebookColorIcon } from './FacebookColor.js';
|
|
88
88
|
export { default as FilterIcon } from './Filter.js';
|
|
89
|
+
export { default as FindIcon } from './Find.js';
|
|
89
90
|
export { default as FireIcon } from './Fire.js';
|
|
90
91
|
export { default as FireColorIcon } from './FireColor.js';
|
|
91
92
|
export { default as FolderIcon } from './Folder.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.30.1",
|
|
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.
|
|
58
|
+
"@teamturing/icons": "^1.42.0",
|
|
59
59
|
"@teamturing/token-studio": "^1.7.0",
|
|
60
60
|
"@teamturing/utils": "^1.3.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": "
|
|
69
|
+
"gitHead": "5d0c4cb13d0269bbfff3c6b947c48eba8281f618"
|
|
70
70
|
}
|