@teamturing/react-kit 2.21.12 → 2.21.13
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.
- package/dist/core/Flash/index.d.ts +9 -4
- package/dist/index.js +14 -12
- package/esm/core/Flash/index.js +5 -3
- package/package.json +2 -2
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { ComponentType,
|
|
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
|
|
9
|
-
|
|
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
|
@@ -6874,7 +6874,7 @@ const BaseActionList = styled__default.default.ul`
|
|
|
6874
6874
|
|
|
6875
6875
|
${sx}
|
|
6876
6876
|
`;
|
|
6877
|
-
var index$
|
|
6877
|
+
var index$b = Object.assign(ActionList, {
|
|
6878
6878
|
Item: ActionListItem,
|
|
6879
6879
|
SectionDivider: ActionListSectionDivider,
|
|
6880
6880
|
SectionHeader: ActionListSectionHeader
|
|
@@ -16145,7 +16145,7 @@ const BaseAvatar = styled__default.default(Image)`
|
|
|
16145
16145
|
})}
|
|
16146
16146
|
${sx}
|
|
16147
16147
|
`;
|
|
16148
|
-
var index$
|
|
16148
|
+
var index$a = /*#__PURE__*/React.forwardRef(Avatar);
|
|
16149
16149
|
|
|
16150
16150
|
const BadgeAttacher = ({
|
|
16151
16151
|
children,
|
|
@@ -16557,7 +16557,7 @@ const BreadcrumbsItemWrapper = styled__default.default.span`
|
|
|
16557
16557
|
}
|
|
16558
16558
|
}
|
|
16559
16559
|
`;
|
|
16560
|
-
var index$
|
|
16560
|
+
var index$9 = Object.assign(Breadcrumbs, {
|
|
16561
16561
|
Item: BreadcrumbsItem
|
|
16562
16562
|
});
|
|
16563
16563
|
|
|
@@ -17513,7 +17513,7 @@ const DatagridWrapper = styled__default.default.div`
|
|
|
17513
17513
|
const BaseDatagrid = styled__default.default.div`
|
|
17514
17514
|
width: inherit;
|
|
17515
17515
|
`;
|
|
17516
|
-
var index$
|
|
17516
|
+
var index$8 = Object.assign(Datagrid, {
|
|
17517
17517
|
Header: DatagridHeader,
|
|
17518
17518
|
Subheader: DatagridSubheader,
|
|
17519
17519
|
Body: DatagridBody,
|
|
@@ -18708,7 +18708,7 @@ const BaseDialog = styled__default.default.div(({
|
|
|
18708
18708
|
overflow: 'hidden',
|
|
18709
18709
|
margin: 'auto'
|
|
18710
18710
|
}), sx);
|
|
18711
|
-
var index$
|
|
18711
|
+
var index$7 = Object.assign( /*#__PURE__*/React.forwardRef(Dialog), {
|
|
18712
18712
|
UnstyledHeader: UnstyledDialogHeader,
|
|
18713
18713
|
UnstyledBody: UnstyledDialogBody,
|
|
18714
18714
|
UnstyledFooter: UnstyledDialogFooter,
|
|
@@ -18829,8 +18829,9 @@ const Flash = ({
|
|
|
18829
18829
|
icon: Icon = SvgInfoInCircle,
|
|
18830
18830
|
children,
|
|
18831
18831
|
...props
|
|
18832
|
-
}) => {
|
|
18832
|
+
}, ref) => {
|
|
18833
18833
|
return /*#__PURE__*/jsxRuntimeExports.jsxs(BaseFlash, {
|
|
18834
|
+
ref: ref,
|
|
18834
18835
|
variant: variant,
|
|
18835
18836
|
...props,
|
|
18836
18837
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx(Icon, {}), children]
|
|
@@ -18885,6 +18886,7 @@ const BaseFlash = styled__default.default.div`
|
|
|
18885
18886
|
|
|
18886
18887
|
${sx}
|
|
18887
18888
|
`;
|
|
18889
|
+
var index$6 = /*#__PURE__*/React.forwardRef(Flash);
|
|
18888
18890
|
|
|
18889
18891
|
const Radio = ({
|
|
18890
18892
|
checked,
|
|
@@ -25834,21 +25836,21 @@ const useTabState = ({
|
|
|
25834
25836
|
return [selectedIndex, handleSelect];
|
|
25835
25837
|
};
|
|
25836
25838
|
|
|
25837
|
-
exports.ActionList = index$
|
|
25839
|
+
exports.ActionList = index$b;
|
|
25838
25840
|
exports.AnimatePresence = AnimatePresence;
|
|
25839
|
-
exports.Avatar = index$
|
|
25841
|
+
exports.Avatar = index$a;
|
|
25840
25842
|
exports.BadgeAttacher = BadgeAttacher;
|
|
25841
|
-
exports.Breadcrumbs = index$
|
|
25843
|
+
exports.Breadcrumbs = index$9;
|
|
25842
25844
|
exports.Button = Button;
|
|
25843
25845
|
exports.Checkbox = Checkbox$1;
|
|
25844
25846
|
exports.Chip = Chip;
|
|
25845
25847
|
exports.CounterBadge = CounterBadge;
|
|
25846
|
-
exports.Datagrid = index$
|
|
25848
|
+
exports.Datagrid = index$8;
|
|
25847
25849
|
exports.DescriptionList = DescriptionList;
|
|
25848
|
-
exports.Dialog = index$
|
|
25850
|
+
exports.Dialog = index$7;
|
|
25849
25851
|
exports.EmptyState = EmptyState;
|
|
25850
25852
|
exports.EnigmaUI = index;
|
|
25851
|
-
exports.Flash =
|
|
25853
|
+
exports.Flash = index$6;
|
|
25852
25854
|
exports.FormControl = index$4;
|
|
25853
25855
|
exports.GradientText = GradientText;
|
|
25854
25856
|
exports.Grid = Grid$1;
|
package/esm/core/Flash/index.js
CHANGED
|
@@ -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 {
|
|
74
|
+
export { index as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "2.21.
|
|
3
|
+
"version": "2.21.13",
|
|
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",
|
|
@@ -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": "fc09296429136f99bf7339b11b6149811eb00afe"
|
|
70
70
|
}
|