no-frills-ui 0.0.14-alpha.1 → 0.0.14-alpha.2
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/README.md +28 -22
- package/dist/index.js +828 -495
- package/dist/index.js.map +1 -1
- package/lib-esm/components/Accordion/Accordion.d.ts +2 -3
- package/lib-esm/components/Accordion/Accordion.js +6 -3
- package/lib-esm/components/Accordion/Accordion.js.map +1 -1
- package/lib-esm/components/Accordion/AccordionStep.d.ts +2 -2
- package/lib-esm/components/Accordion/AccordionStep.js +31 -22
- package/lib-esm/components/Accordion/AccordionStep.js.map +1 -1
- package/lib-esm/components/Accordion/index.js.map +1 -1
- package/lib-esm/components/Badge/Badge.js +5 -6
- package/lib-esm/components/Badge/Badge.js.map +1 -1
- package/lib-esm/components/Button/LinkButton.js +2 -1
- package/lib-esm/components/Button/LinkButton.js.map +1 -1
- package/lib-esm/components/Card/Card.js +1 -1
- package/lib-esm/components/Card/Card.js.map +1 -1
- package/lib-esm/components/Chip/Chip.js +1 -1
- package/lib-esm/components/Chip/Chip.js.map +1 -1
- package/lib-esm/components/ChipInput/ChipInput.js +21 -12
- package/lib-esm/components/ChipInput/ChipInput.js.map +1 -1
- package/lib-esm/components/Dialog/AlertDialog.js +3 -3
- package/lib-esm/components/Dialog/AlertDialog.js.map +1 -1
- package/lib-esm/components/Dialog/ConfirmDialog.js +8 -3
- package/lib-esm/components/Dialog/ConfirmDialog.js.map +1 -1
- package/lib-esm/components/Dialog/Dialog.d.ts +2 -2
- package/lib-esm/components/Dialog/Dialog.js +6 -4
- package/lib-esm/components/Dialog/Dialog.js.map +1 -1
- package/lib-esm/components/Dialog/PromptDialog.js +2 -2
- package/lib-esm/components/Dialog/PromptDialog.js.map +1 -1
- package/lib-esm/components/DragAndDrop/DragAndDrop.d.ts +1 -1
- package/lib-esm/components/DragAndDrop/DragAndDrop.js +4 -2
- package/lib-esm/components/DragAndDrop/DragAndDrop.js.map +1 -1
- package/lib-esm/components/DragAndDrop/DragItem.js +25 -17
- package/lib-esm/components/DragAndDrop/DragItem.js.map +1 -1
- package/lib-esm/components/DragAndDrop/types.js +1 -1
- package/lib-esm/components/DragAndDrop/types.js.map +1 -1
- package/lib-esm/components/Drawer/Drawer.js +10 -8
- package/lib-esm/components/Drawer/Drawer.js.map +1 -1
- package/lib-esm/components/Drawer/index.d.ts +1 -1
- package/lib-esm/components/Drawer/index.js +1 -1
- package/lib-esm/components/Drawer/index.js.map +1 -1
- package/lib-esm/components/Groups/Group.js +26 -14
- package/lib-esm/components/Groups/Group.js.map +1 -1
- package/lib-esm/components/Input/Checkbox.js +11 -8
- package/lib-esm/components/Input/Checkbox.js.map +1 -1
- package/lib-esm/components/Input/Dropdown.d.ts +2 -2
- package/lib-esm/components/Input/Dropdown.js +22 -22
- package/lib-esm/components/Input/Dropdown.js.map +1 -1
- package/lib-esm/components/Input/Input.js +19 -10
- package/lib-esm/components/Input/Input.js.map +1 -1
- package/lib-esm/components/Input/Radio.js +4 -3
- package/lib-esm/components/Input/Radio.js.map +1 -1
- package/lib-esm/components/Input/RadioButton.js +1 -1
- package/lib-esm/components/Input/RadioButton.js.map +1 -1
- package/lib-esm/components/Input/Select.js +17 -9
- package/lib-esm/components/Input/Select.js.map +1 -1
- package/lib-esm/components/Input/TextArea.js +17 -9
- package/lib-esm/components/Input/TextArea.js.map +1 -1
- package/lib-esm/components/Input/Toggle.js +5 -5
- package/lib-esm/components/Input/Toggle.js.map +1 -1
- package/lib-esm/components/Menu/Menu.d.ts +1 -1
- package/lib-esm/components/Menu/Menu.js +3 -2
- package/lib-esm/components/Menu/Menu.js.map +1 -1
- package/lib-esm/components/Menu/MenuContext.d.ts +11 -5
- package/lib-esm/components/Menu/MenuContext.js.map +1 -1
- package/lib-esm/components/Menu/MenuItem.d.ts +2 -2
- package/lib-esm/components/Menu/MenuItem.js +9 -5
- package/lib-esm/components/Menu/MenuItem.js.map +1 -1
- package/lib-esm/components/Modal/Modal.js +6 -4
- package/lib-esm/components/Modal/Modal.js.map +1 -1
- package/lib-esm/components/Notification/Notification.js +8 -4
- package/lib-esm/components/Notification/Notification.js.map +1 -1
- package/lib-esm/components/Notification/NotificationManager.js +11 -9
- package/lib-esm/components/Notification/NotificationManager.js.map +1 -1
- package/lib-esm/components/Notification/style.js +10 -8
- package/lib-esm/components/Notification/style.js.map +1 -1
- package/lib-esm/components/Notification/types.js +0 -1
- package/lib-esm/components/Notification/types.js.map +1 -1
- package/lib-esm/components/Popover/Popover.js +20 -17
- package/lib-esm/components/Popover/Popover.js.map +1 -1
- package/lib-esm/components/Popover/index.js.map +1 -1
- package/lib-esm/components/Spinner/Spinner.js +10 -6
- package/lib-esm/components/Spinner/Spinner.js.map +1 -1
- package/lib-esm/components/Stepper/Step.js +1 -0
- package/lib-esm/components/Stepper/Step.js.map +1 -1
- package/lib-esm/components/Stepper/Stepper.d.ts +3 -3
- package/lib-esm/components/Stepper/Stepper.js +17 -9
- package/lib-esm/components/Stepper/Stepper.js.map +1 -1
- package/lib-esm/components/Stepper/index.js.map +1 -1
- package/lib-esm/components/Tabs/Tab.js.map +1 -1
- package/lib-esm/components/Tabs/Tabs.d.ts +5 -5
- package/lib-esm/components/Tabs/Tabs.js +12 -9
- package/lib-esm/components/Tabs/Tabs.js.map +1 -1
- package/lib-esm/components/Toast/Toast.d.ts +1 -0
- package/lib-esm/components/Toast/Toast.js +9 -8
- package/lib-esm/components/Toast/Toast.js.map +1 -1
- package/lib-esm/components/Toast/ToastStory.js +1 -1
- package/lib-esm/components/Toast/ToastStory.js.map +1 -1
- package/lib-esm/components/Tooltip/Tooltip.js +5 -6
- package/lib-esm/components/Tooltip/Tooltip.js.map +1 -1
- package/lib-esm/components/index.d.ts +1 -0
- package/lib-esm/components/index.js +1 -0
- package/lib-esm/components/index.js.map +1 -1
- package/lib-esm/icons/CheckCircle.d.ts +1 -1
- package/lib-esm/icons/CheckCircle.js +1 -1
- package/lib-esm/icons/CheckCircle.js.map +1 -1
- package/lib-esm/icons/Close.d.ts +1 -1
- package/lib-esm/icons/Close.js +1 -1
- package/lib-esm/icons/Close.js.map +1 -1
- package/lib-esm/icons/DragIndicator.d.ts +1 -1
- package/lib-esm/icons/DragIndicator.js +1 -1
- package/lib-esm/icons/DragIndicator.js.map +1 -1
- package/lib-esm/icons/ErrorOutline.d.ts +1 -1
- package/lib-esm/icons/ErrorOutline.js +1 -1
- package/lib-esm/icons/ErrorOutline.js.map +1 -1
- package/lib-esm/icons/ExpandMore.d.ts +1 -1
- package/lib-esm/icons/ExpandMore.js +1 -1
- package/lib-esm/icons/ExpandMore.js.map +1 -1
- package/lib-esm/icons/FiberManualRecord.d.ts +1 -1
- package/lib-esm/icons/FiberManualRecord.js +1 -1
- package/lib-esm/icons/FiberManualRecord.js.map +1 -1
- package/lib-esm/icons/Info.d.ts +1 -1
- package/lib-esm/icons/Info.js +1 -1
- package/lib-esm/icons/Info.js.map +1 -1
- package/lib-esm/icons/ReportProblem.d.ts +1 -1
- package/lib-esm/icons/ReportProblem.js +1 -1
- package/lib-esm/icons/ReportProblem.js.map +1 -1
- package/lib-esm/shared/LayerManager.d.ts +2 -2
- package/lib-esm/shared/LayerManager.js +18 -14
- package/lib-esm/shared/LayerManager.js.map +1 -1
- package/lib-esm/shared/constants.js.map +1 -1
- package/package.json +93 -74
|
@@ -20,7 +20,6 @@ export var TOOLTIP_POSITION;
|
|
|
20
20
|
TOOLTIP_POSITION["LEFT"] = "LEFT";
|
|
21
21
|
TOOLTIP_POSITION["RIGHT"] = "RIGHT";
|
|
22
22
|
})(TOOLTIP_POSITION || (TOOLTIP_POSITION = {}));
|
|
23
|
-
;
|
|
24
23
|
const positionStyle = {
|
|
25
24
|
[TOOLTIP_POSITION.LEFT]: `
|
|
26
25
|
left: 0;
|
|
@@ -59,10 +58,10 @@ const TooltipDiv = styled.div `
|
|
|
59
58
|
padding: 5px;
|
|
60
59
|
color: #fff;
|
|
61
60
|
border-radius: 3px;
|
|
62
|
-
transition: transform .3s ease;
|
|
61
|
+
transition: transform 0.3s ease;
|
|
63
62
|
font-size: 12px;
|
|
64
63
|
z-index: 1;
|
|
65
|
-
${props => positionStyle[props.position]}
|
|
64
|
+
${(props) => positionStyle[props.position]}
|
|
66
65
|
`;
|
|
67
66
|
const TooltipContainer = styled.div `
|
|
68
67
|
position: relative;
|
|
@@ -71,7 +70,7 @@ const TooltipContainer = styled.div `
|
|
|
71
70
|
align-items: center;
|
|
72
71
|
|
|
73
72
|
&:hover ${TooltipDiv} {
|
|
74
|
-
${props => positionHoverStyle[props.position]}
|
|
73
|
+
${(props) => positionHoverStyle[props.position]}
|
|
75
74
|
}
|
|
76
75
|
`;
|
|
77
76
|
export default function Tooltip(props) {
|
|
@@ -86,10 +85,10 @@ Tooltip.propTypes = {
|
|
|
86
85
|
TOOLTIP_POSITION.TOP,
|
|
87
86
|
TOOLTIP_POSITION.LEFT,
|
|
88
87
|
TOOLTIP_POSITION.RIGHT,
|
|
89
|
-
TOOLTIP_POSITION.BOTTOM
|
|
88
|
+
TOOLTIP_POSITION.BOTTOM,
|
|
90
89
|
]),
|
|
91
90
|
};
|
|
92
91
|
Tooltip.defaultProps = {
|
|
93
|
-
position: TOOLTIP_POSITION.BOTTOM
|
|
92
|
+
position: TOOLTIP_POSITION.BOTTOM,
|
|
94
93
|
};
|
|
95
94
|
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAE/C,MAAM,CAAN,IAAY,gBAKX;AALD,WAAY,gBAAgB;IACxB,+BAAW,CAAA;IACX,qCAAiB,CAAA;IACjB,iCAAa,CAAA;IACb,mCAAe,CAAA;AACnB,CAAC,EALW,g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C1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function CheckCircle(props:
|
|
1
|
+
export default function CheckCircle(props: React.SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
2
|
export default function CheckCircle(props) {
|
|
3
|
-
return (_jsxs("svg", Object.assign({ height: "24", viewBox: "0 0 24 24", width: "24", fill:
|
|
3
|
+
return (_jsxs("svg", Object.assign({ height: "24", viewBox: "0 0 24 24", width: "24", fill: "currentColor" }, props, { children: [_jsx("path", { d: "M0 0h24v24H0V0zm0 0h24v24H0V0z", fill: "none" }), _jsx("path", { d: "M16.59 7.58L10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" })] })));
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=CheckCircle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckCircle.js","sourceRoot":"","sources":["../../src/icons/CheckCircle.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CheckCircle.js","sourceRoot":"","sources":["../../src/icons/CheckCircle.tsx"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAoC;IACpE,OAAO,CACH,6BAAK,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,IAAI,EAAC,cAAc,IAAK,KAAK,eACzE,eAAM,CAAC,EAAC,gCAAgC,EAAC,IAAI,EAAC,MAAM,GAAG,EACvD,eAAM,CAAC,EAAC,2KAA2K,GAAG,KACpL,CACT,CAAC;AACN,CAAC"}
|
package/lib-esm/icons/Close.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function Close(props:
|
|
1
|
+
export default function Close(props: React.SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
package/lib-esm/icons/Close.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
2
|
export default function Close(props) {
|
|
3
|
-
return (_jsxs("svg", Object.assign({ height: "24", viewBox: "0 0 24 24", width: "24", fill:
|
|
3
|
+
return (_jsxs("svg", Object.assign({ height: "24", viewBox: "0 0 24 24", width: "24", fill: "currentColor" }, props, { children: [_jsx("path", { d: "M0 0h24v24H0V0z", fill: "none" }), _jsx("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z" })] })));
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=Close.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Close.js","sourceRoot":"","sources":["../../src/icons/Close.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Close.js","sourceRoot":"","sources":["../../src/icons/Close.tsx"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAoC;IAC9D,OAAO,CACH,6BAAK,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,IAAI,EAAC,cAAc,IAAK,KAAK,eACzE,eAAM,CAAC,EAAC,iBAAiB,EAAC,IAAI,EAAC,MAAM,GAAG,EACxC,eAAM,CAAC,EAAC,+GAA+G,GAAG,KACxH,CACT,CAAC;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function CheckCircle(props:
|
|
1
|
+
export default function CheckCircle(props: React.SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
2
|
export default function CheckCircle(props) {
|
|
3
|
-
return (_jsxs("svg", Object.assign({ height: "24", viewBox: "0 0 24 24", width: "24", fill:
|
|
3
|
+
return (_jsxs("svg", Object.assign({ height: "24", viewBox: "0 0 24 24", width: "24", fill: "currentColor" }, props, { children: [_jsx("path", { d: "M0 0h24v24H0V0z", fill: "none" }), _jsx("path", { d: "M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" })] })));
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=DragIndicator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DragIndicator.js","sourceRoot":"","sources":["../../src/icons/DragIndicator.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DragIndicator.js","sourceRoot":"","sources":["../../src/icons/DragIndicator.tsx"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAoC;IACpE,OAAO,CACH,6BAAK,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,IAAI,EAAC,cAAc,IAAK,KAAK,eACzE,eAAM,CAAC,EAAC,iBAAiB,EAAC,IAAI,EAAC,MAAM,GAAG,EACxC,eAAM,CAAC,EAAC,qSAAqS,GAAG,KAC9S,CACT,CAAC;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function CheckCircle(props:
|
|
1
|
+
export default function CheckCircle(props: React.SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
2
2
|
export default function CheckCircle(props) {
|
|
3
|
-
return (_jsx("svg", Object.assign({ height: "24", viewBox: "0 0 24 24", width: "24", fill:
|
|
3
|
+
return (_jsx("svg", Object.assign({ height: "24", viewBox: "0 0 24 24", width: "24", fill: "currentColor" }, props, { children: _jsx("path", { d: "M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }) })));
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=ErrorOutline.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorOutline.js","sourceRoot":"","sources":["../../src/icons/ErrorOutline.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ErrorOutline.js","sourceRoot":"","sources":["../../src/icons/ErrorOutline.tsx"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAoC;IACpE,OAAO,CACH,4BAAK,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,IAAI,EAAC,cAAc,IAAK,KAAK,cACzE,eAAM,CAAC,EAAC,8KAA8K,GAAG,IACvL,CACT,CAAC;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function ExpandMore(props:
|
|
1
|
+
export default function ExpandMore(props: React.SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
2
|
export default function ExpandMore(props) {
|
|
3
|
-
return (_jsxs("svg", Object.assign({ viewBox: "0 0 24 24", width: "18px", height: "18px", fill:
|
|
3
|
+
return (_jsxs("svg", Object.assign({ viewBox: "0 0 24 24", width: "18px", height: "18px", fill: "currentColor" }, props, { children: [_jsx("path", { d: "M0 0h24v24H0z", fill: "none" }), _jsx("path", { d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z" })] })));
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=ExpandMore.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpandMore.js","sourceRoot":"","sources":["../../src/icons/ExpandMore.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ExpandMore.js","sourceRoot":"","sources":["../../src/icons/ExpandMore.tsx"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAoC;IACnE,OAAO,CACH,6BAAK,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,IAAI,EAAC,cAAc,IAAK,KAAK,eAC7E,eAAM,CAAC,EAAC,eAAe,EAAC,IAAI,EAAC,MAAM,GAAG,EACtC,eAAM,CAAC,EAAC,8CAA8C,GAAG,KACvD,CACT,CAAC;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function FiberManualRecord(props:
|
|
1
|
+
export default function FiberManualRecord(props: React.SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
2
|
export default function FiberManualRecord(props) {
|
|
3
|
-
return (_jsxs("svg", Object.assign({ height: "24", viewBox: "0 0 24 24", width: "24", fill:
|
|
3
|
+
return (_jsxs("svg", Object.assign({ height: "24", viewBox: "0 0 24 24", width: "24", fill: "currentColor" }, props, { children: [_jsx("path", { d: "M24 24H0V0h24v24z", fill: "none" }), _jsx("circle", { cx: "12", cy: "12", r: "8" })] })));
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=FiberManualRecord.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiberManualRecord.js","sourceRoot":"","sources":["../../src/icons/FiberManualRecord.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"FiberManualRecord.js","sourceRoot":"","sources":["../../src/icons/FiberManualRecord.tsx"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAoC;IAC1E,OAAO,CACH,6BAAK,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,IAAI,EAAC,cAAc,IAAK,KAAK,eACzE,eAAM,CAAC,EAAC,mBAAmB,EAAC,IAAI,EAAC,MAAM,GAAG,EAC1C,iBAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,GAAG,GAAG,KAC9B,CACT,CAAC;AACN,CAAC"}
|
package/lib-esm/icons/Info.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function CheckCircle(props:
|
|
1
|
+
export default function CheckCircle(props: React.SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
package/lib-esm/icons/Info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
2
|
export default function CheckCircle(props) {
|
|
3
|
-
return (_jsxs("svg", Object.assign({ height: "24", viewBox: "0 0 24 24", width: "24", fill:
|
|
3
|
+
return (_jsxs("svg", Object.assign({ height: "24", viewBox: "0 0 24 24", width: "24", fill: "currentColor" }, props, { children: [_jsx("path", { d: "M0 0h24v24H0V0z", fill: "none" }), _jsx("path", { d: "M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" })] })));
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=Info.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Info.js","sourceRoot":"","sources":["../../src/icons/Info.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Info.js","sourceRoot":"","sources":["../../src/icons/Info.tsx"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAoC;IACpE,OAAO,CACH,6BAAK,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,IAAI,EAAC,cAAc,IAAK,KAAK,eACzE,eAAM,CAAC,EAAC,iBAAiB,EAAC,IAAI,EAAC,MAAM,GAAG,EACxC,eAAM,CAAC,EAAC,sJAAsJ,GAAG,KAC/J,CACT,CAAC;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function CheckCircle(props:
|
|
1
|
+
export default function CheckCircle(props: React.SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
2
|
export default function CheckCircle(props) {
|
|
3
|
-
return (_jsxs("svg", Object.assign({ height: "24", viewBox: "0 0 24 24", width: "24", fill:
|
|
3
|
+
return (_jsxs("svg", Object.assign({ height: "24", viewBox: "0 0 24 24", width: "24", fill: "currentColor" }, props, { children: [_jsx("path", { d: "M0 0h24v24H0V0z", fill: "none" }), _jsx("path", { d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z" })] })));
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=ReportProblem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportProblem.js","sourceRoot":"","sources":["../../src/icons/ReportProblem.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ReportProblem.js","sourceRoot":"","sources":["../../src/icons/ReportProblem.tsx"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAoC;IACpE,OAAO,CACH,6BAAK,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,IAAI,EAAC,cAAc,IAAK,KAAK,eACzE,eAAM,CAAC,EAAC,iBAAiB,EAAC,IAAI,EAAC,MAAM,GAAG,EACxC,eAAM,CAAC,EAAC,kFAAkF,GAAG,KAC3F,CACT,CAAC;AACN,CAAC"}
|
|
@@ -23,7 +23,7 @@ interface LayerConfig {
|
|
|
23
23
|
/** Close layer overlay is clicked. */
|
|
24
24
|
closeOnOverlayClick?: boolean;
|
|
25
25
|
/** Callback called when modal closes */
|
|
26
|
-
closeCallback?: <T
|
|
26
|
+
closeCallback?: <T>(resp: T) => void;
|
|
27
27
|
/** Layer is created with max z-index */
|
|
28
28
|
alwaysOnTop?: boolean;
|
|
29
29
|
}
|
|
@@ -61,7 +61,7 @@ declare class LayerManager {
|
|
|
61
61
|
* Renders a layer.
|
|
62
62
|
* @param config
|
|
63
63
|
*/
|
|
64
|
-
renderLayer: (config: LayerConfig) => [() => React.ReactPortal, (resp?:
|
|
64
|
+
renderLayer: (config: LayerConfig) => [() => React.ReactPortal, (resp?: unknown) => void];
|
|
65
65
|
}
|
|
66
66
|
declare const _default: LayerManager;
|
|
67
67
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useEffect } from 'react';
|
|
3
|
-
import styled from '@emotion/styled';
|
|
4
3
|
import ReactDOM from 'react-dom';
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
5
|
/** Enums for layer position on screen. */
|
|
6
6
|
export var LAYER_POSITION;
|
|
7
7
|
(function (LAYER_POSITION) {
|
|
@@ -13,7 +13,6 @@ export var LAYER_POSITION;
|
|
|
13
13
|
LAYER_POSITION[LAYER_POSITION["BOTTOM_RIGHT"] = 5] = "BOTTOM_RIGHT";
|
|
14
14
|
LAYER_POSITION[LAYER_POSITION["DIALOG"] = 6] = "DIALOG";
|
|
15
15
|
})(LAYER_POSITION || (LAYER_POSITION = {}));
|
|
16
|
-
;
|
|
17
16
|
/** Default value of config */
|
|
18
17
|
const defaultConfig = {
|
|
19
18
|
closeOnEsc: true,
|
|
@@ -39,27 +38,29 @@ const Container = styled.div `
|
|
|
39
38
|
position: fixed;
|
|
40
39
|
display: flex;
|
|
41
40
|
opacity: 0;
|
|
42
|
-
transition: opacity .3s ease;
|
|
43
|
-
${props => POSITION_STYLE[props.position]}
|
|
44
|
-
${props => props.overlay &&
|
|
41
|
+
transition: opacity 0.3s ease;
|
|
42
|
+
${(props) => POSITION_STYLE[props.position]}
|
|
43
|
+
${(props) => props.overlay &&
|
|
44
|
+
`
|
|
45
45
|
width: 100%;
|
|
46
46
|
height: 100vh;
|
|
47
47
|
background-color: var(--backdrop-color, #2681da80);
|
|
48
48
|
backdrop-filter: blur(0px);
|
|
49
49
|
pointer-events: all;
|
|
50
50
|
`}
|
|
51
|
-
z-index: ${props => props.zIndex};
|
|
51
|
+
z-index: ${(props) => props.zIndex};
|
|
52
52
|
|
|
53
53
|
.nf-layer-enter & {
|
|
54
54
|
opacity: 1;
|
|
55
|
-
${props => props.overlay &&
|
|
55
|
+
${(props) => props.overlay &&
|
|
56
|
+
`
|
|
56
57
|
backdrop-filter: blur(3px);
|
|
57
58
|
`}
|
|
58
59
|
}
|
|
59
60
|
`;
|
|
60
61
|
/** Key code for different keys. */
|
|
61
62
|
const KEY_CODES = {
|
|
62
|
-
ESC: 27
|
|
63
|
+
ESC: 27,
|
|
63
64
|
};
|
|
64
65
|
/**
|
|
65
66
|
* This is a shared helper class which manages the z-index of each layer.
|
|
@@ -92,10 +93,11 @@ class LayerManager {
|
|
|
92
93
|
*/
|
|
93
94
|
this.unmount = (layer, resp) => {
|
|
94
95
|
layer.element.setAttribute('class', 'nf-layer-exit');
|
|
95
|
-
this.layers.splice(this.layers.findIndex(item => item === layer), 1);
|
|
96
|
+
this.layers.splice(this.layers.findIndex((item) => item === layer), 1);
|
|
96
97
|
setTimeout(() => {
|
|
98
|
+
var _a, _b;
|
|
97
99
|
try {
|
|
98
|
-
layer.config.closeCallback
|
|
100
|
+
(_b = (_a = layer.config).closeCallback) === null || _b === void 0 ? void 0 : _b.call(_a, resp);
|
|
99
101
|
}
|
|
100
102
|
catch (e) {
|
|
101
103
|
// Error in callback function. Ignore and proceed.
|
|
@@ -120,11 +122,13 @@ class LayerManager {
|
|
|
120
122
|
const currentLayer = {
|
|
121
123
|
id: `nf-layer-manager-${currentIndex}`,
|
|
122
124
|
config: layerConfig,
|
|
123
|
-
element: divElement
|
|
125
|
+
element: divElement,
|
|
124
126
|
};
|
|
125
127
|
this.layers.push(currentLayer);
|
|
126
128
|
const overlayClickHandler = (layer) => () => {
|
|
127
|
-
layer.config.closeOnOverlayClick !== false
|
|
129
|
+
if (layer.config.closeOnOverlayClick !== false) {
|
|
130
|
+
this.unmount(layer);
|
|
131
|
+
}
|
|
128
132
|
};
|
|
129
133
|
// Return callback which will trigger the un-mount.
|
|
130
134
|
return [
|
|
@@ -148,10 +152,10 @@ class LayerManager {
|
|
|
148
152
|
},
|
|
149
153
|
(resp) => {
|
|
150
154
|
this.unmount(currentLayer, resp);
|
|
151
|
-
}
|
|
155
|
+
},
|
|
152
156
|
];
|
|
153
157
|
};
|
|
154
|
-
document.body.addEventListener('keyup', (e) => {
|
|
158
|
+
document === null || document === void 0 ? void 0 : document.body.addEventListener('keyup', (e) => {
|
|
155
159
|
if (this.layers.length && e.keyCode === KEY_CODES.ESC) {
|
|
156
160
|
const lastLayer = this.layers.slice(-1)[0];
|
|
157
161
|
if (lastLayer.config.closeOnEsc !== false) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayerManager.js","sourceRoot":"","sources":["../../src/shared/LayerManager.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAe,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,
|
|
1
|
+
{"version":3,"file":"LayerManager.js","sourceRoot":"","sources":["../../src/shared/LayerManager.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAe,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,QAAQ,MAAM,WAAW,CAAC;AACjC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,0CAA0C;AAC1C,MAAM,CAAN,IAAY,cAQX;AARD,WAAY,c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3E,YAAY,EAAE,uEAAuE;IACrF,YAAY,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/shared/constants.ts"],"names":[],"mappings":"AAAA,eAAe;IACX,OAAO,EAAE,SAAS;IAClB,aAAa,EAAE,SAAS;IACxB,eAAe,EAAE,SAAS;IAC1B,cAAc,EAAE,WAAW;IAC3B,IAAI,EAAE,SAAS;IACf,UAAU,EAAE,SAAS;IACrB,OAAO,EAAE,SAAS;IAClB,aAAa,EAAE,SAAS;IACxB,OAAO,EAAE,SAAS;IAClB,aAAa,EAAE,SAAS;IACxB,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,SAAS;IACtB,YAAY,EAAE,SAAS;IACvB,KAAK,EAAE,SAAS;IAChB,aAAa,EAAE,iBAAiB;IAChC,kBAAkB,EAAE,SAAS;IAC7B,UAAU,EAAE,SAAS;IACrB,mBAAmB,EAAE,SAAS;IAC9B,eAAe,EAAE,MAAM;IACvB,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,MAAM;IAChB,MAAM,EAAE,mEAAmE;IAC3E,YAAY,EAAE,uEAAuE;IACrF,YAAY,EACR,wGAAwG;CAC/G,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,77 +1,96 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
"keywords": [
|
|
27
|
-
"React"
|
|
28
|
-
],
|
|
29
|
-
"author": "pushkar8723@gmail.com",
|
|
30
|
-
"license": "MIT",
|
|
31
|
-
"bugs": {
|
|
32
|
-
"url": "https://github.com/pushkar8723/no-frills-ui/issues"
|
|
33
|
-
},
|
|
34
|
-
"homepage": "https://github.com/pushkar8723/no-frills-ui#readme",
|
|
35
|
-
"peerDependencies": {
|
|
36
|
-
"react": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
37
|
-
"react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
38
|
-
"@emotion/react": "^11.0.0",
|
|
39
|
-
"@emotion/styled": "^11.0.0"
|
|
40
|
-
},
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"@rollup/plugin-node-resolve": "^8.0.1",
|
|
43
|
-
"@storybook/addon-docs": "^10.0.2",
|
|
44
|
-
"@storybook/addon-links": "^10.0.2",
|
|
45
|
-
"@storybook/addon-webpack5-compiler-swc": "^4.0.1",
|
|
46
|
-
"@storybook/cli": "^10.0.2",
|
|
47
|
-
"@storybook/react-webpack5": "^10.0.2",
|
|
48
|
-
"@swc/plugin-emotion": "^12.0.0",
|
|
49
|
-
"@types/react": "^18.3.12",
|
|
50
|
-
"@types/react-dom": "^18.3.1",
|
|
51
|
-
"react": "^18.3.1",
|
|
52
|
-
"react-dom": "^18.3.1",
|
|
53
|
-
"remark-gfm": "^4.0.1",
|
|
54
|
-
"rollup": "^4.52.5",
|
|
55
|
-
"rollup-plugin-commonjs": "^10.1.0",
|
|
56
|
-
"rollup-plugin-node-resolve": "^5.2.0",
|
|
57
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
58
|
-
"rollup-plugin-typescript2": "^0.36.0",
|
|
59
|
-
"shx": "^0.3.2",
|
|
60
|
-
"storybook": "^10.0.2",
|
|
61
|
-
"tslib": "^2.0.0",
|
|
62
|
-
"typescript": "^5.7.2"
|
|
63
|
-
},
|
|
64
|
-
"dependencies": {
|
|
65
|
-
"@emotion/react": "^11.13.5",
|
|
66
|
-
"@emotion/styled": "^11.13.5",
|
|
67
|
-
"prop-types": "^15.7.2"
|
|
68
|
-
},
|
|
69
|
-
"bit": {
|
|
70
|
-
"env": {
|
|
71
|
-
"compiler": "bit.envs/compilers/react-typescript@3.1.53"
|
|
2
|
+
"name": "no-frills-ui",
|
|
3
|
+
"version": "0.0.14-alpha.2",
|
|
4
|
+
"description": "React components that are made of styled native components. Mostly!",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "lib-esm/index.js",
|
|
7
|
+
"jsnext:main": "lib-esm/index.js",
|
|
8
|
+
"types": "lib-esm/index.d.ts",
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"lib-esm"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"clean": "shx rm -rf dist lib-esm",
|
|
16
|
+
"build": "tsc && rollup -c",
|
|
17
|
+
"test": "echo \"Warning: No tests implemented yet\" && exit 0",
|
|
18
|
+
"lint": "eslint . --ext .js,.jsx,.mjs,.ts,.tsx",
|
|
19
|
+
"lint:fix": "eslint . --ext .js,.jsx,.mjs,.ts,.tsx --fix",
|
|
20
|
+
"format": "prettier --write \"**/*.{js,jsx,mjs,ts,tsx,html,json,md,mdx,yml,yaml}\"",
|
|
21
|
+
"format:check": "prettier --check \"**/*.{js,jsx,mjs,ts,tsx,html,json,md,mdx,yml,yaml}\"",
|
|
22
|
+
"storybook": "storybook dev -p 6006",
|
|
23
|
+
"build-storybook": "storybook build",
|
|
24
|
+
"prepare": "husky && npm run clean && npm run build"
|
|
72
25
|
},
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/pushkar8723/no-frills-ui.git"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"React"
|
|
32
|
+
],
|
|
33
|
+
"author": "pushkar8723@gmail.com",
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/pushkar8723/no-frills-ui/issues"
|
|
37
|
+
},
|
|
38
|
+
"homepage": "https://github.com/pushkar8723/no-frills-ui#readme",
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=20.0.0"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"@emotion/react": "^11.0.0",
|
|
44
|
+
"@emotion/styled": "^11.0.0",
|
|
45
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
46
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@rollup/plugin-node-resolve": "^8.0.1",
|
|
50
|
+
"@storybook/addon-docs": "^10.0.2",
|
|
51
|
+
"@storybook/addon-links": "^10.0.2",
|
|
52
|
+
"@storybook/addon-webpack5-compiler-swc": "^4.0.1",
|
|
53
|
+
"@storybook/cli": "^10.0.2",
|
|
54
|
+
"@storybook/react-webpack5": "^10.0.2",
|
|
55
|
+
"@swc/plugin-emotion": "^12.0.0",
|
|
56
|
+
"@types/react": "^18.3.12",
|
|
57
|
+
"@types/react-dom": "^18.3.1",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^8",
|
|
59
|
+
"@typescript-eslint/parser": "^8",
|
|
60
|
+
"eslint": "^8",
|
|
61
|
+
"eslint-config-prettier": "^9",
|
|
62
|
+
"eslint-plugin-import": "^2",
|
|
63
|
+
"eslint-plugin-jsx-a11y": "^6",
|
|
64
|
+
"eslint-plugin-prettier": "^5",
|
|
65
|
+
"eslint-plugin-react": "^7",
|
|
66
|
+
"eslint-plugin-react-hooks": "^4",
|
|
67
|
+
"husky": "^9",
|
|
68
|
+
"lint-staged": "^15",
|
|
69
|
+
"prettier": "^3",
|
|
70
|
+
"react": "^18.3.1",
|
|
71
|
+
"react-dom": "^18.3.1",
|
|
72
|
+
"remark-gfm": "^4.0.1",
|
|
73
|
+
"rollup": "^4.52.5",
|
|
74
|
+
"rollup-plugin-commonjs": "^10.1.0",
|
|
75
|
+
"rollup-plugin-node-resolve": "^5.2.0",
|
|
76
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
77
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
78
|
+
"shx": "^0.3.2",
|
|
79
|
+
"storybook": "^10.0.2",
|
|
80
|
+
"tslib": "^2.0.0",
|
|
81
|
+
"typescript": "^5.7.2"
|
|
82
|
+
},
|
|
83
|
+
"dependencies": {
|
|
84
|
+
"@emotion/react": "^11.13.5",
|
|
85
|
+
"@emotion/styled": "^11.13.5",
|
|
86
|
+
"prop-types": "^15.7.2"
|
|
87
|
+
},
|
|
88
|
+
"bit": {
|
|
89
|
+
"env": {
|
|
90
|
+
"compiler": "bit.envs/compilers/react-typescript@3.1.53"
|
|
91
|
+
},
|
|
92
|
+
"componentsDefaultDirectory": "components/{name}",
|
|
93
|
+
"packageManager": "npm"
|
|
94
|
+
},
|
|
95
|
+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
77
96
|
}
|