@lunit/oui 1.2.0 → 2.0.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.
- package/dist/assets/ic-bell-noti-outlined-20px.js +1 -1
- package/dist/assets/ic-close-large-outlined-20px.js +1 -1
- package/dist/assets/ic-close-small-outlined-20px.js +1 -1
- package/dist/assets/ic-copy-coordinates-outlined-20px.d.ts +3 -0
- package/dist/assets/ic-copy-coordinates-outlined-20px.js +3 -0
- package/dist/assets/ic-download-pdf-outlined-20px.js +1 -1
- package/dist/assets/ic-ellipse-outlined-20px.js +1 -1
- package/dist/assets/ic-filter-noti-outlined-20px.js +1 -1
- package/dist/assets/ic-hide-large-outlined-20px.js +1 -1
- package/dist/assets/ic-hide-small-outlined-20px.js +1 -1
- package/dist/assets/ic-information-large-outlined-20px.js +1 -1
- package/dist/assets/ic-information-small-outlined-20px.js +1 -1
- package/dist/assets/ic-manufacturer-outlined-20px.js +1 -1
- package/dist/assets/ic-rectangle-outlined-20px.js +1 -1
- package/dist/assets/ic-refresh-left-outlined-20px.js +1 -1
- package/dist/assets/ic-refresh-right-outlined-20px.js +1 -1
- package/dist/assets/ic-show-large-outlined-20px.js +1 -1
- package/dist/assets/ic-show-small-outlined-20px.js +1 -1
- package/dist/assets/index.d.ts +1 -0
- package/dist/assets/index.js +1 -0
- package/dist/components/Alert/Alert.utils.js +3 -3
- package/dist/components/Chip/Chip.utils.js +3 -3
- package/dist/components/TextField/TextArea.types.d.ts +2 -1
- package/dist/components/TextField/TextInput.js +5 -1
- package/dist/components/TextField/TextInput.styled.js +2 -1
- package/dist/components/TextField/TextInput.types.d.ts +6 -2
- package/dist/components/TextField/TextInput.utils.d.ts +3 -3
- package/dist/components/TextField/TextInput.utils.js +4 -2
- package/dist/components/TextField/components/Buttons.d.ts +7 -1
- package/dist/components/TextField/components/Buttons.js +15 -1
- package/dist/components/TextField/components/FileInput.d.ts +4 -0
- package/dist/components/TextField/components/FileInput.js +21 -0
- package/dist/components/Toggle/Toggle.d.ts +3 -0
- package/dist/components/Toggle/Toggle.js +16 -0
- package/dist/components/Toggle/Toggle.styled.d.ts +7 -0
- package/dist/components/Toggle/Toggle.styled.js +90 -0
- package/dist/components/Toggle/Toggle.types.d.ts +18 -0
- package/dist/components/Toggle/Toggle.types.js +1 -0
- package/dist/components/Toggle/index.d.ts +4 -0
- package/dist/components/Toggle/index.js +2 -0
- package/dist/components/UploadManager/UploadManager.js +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/icons/CopyCoordinates/index.d.ts +12 -0
- package/dist/icons/CopyCoordinates/index.js +13 -0
- package/dist/icons/index.d.ts +3 -1
- package/dist/icons/index.js +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/presentations/Accordion/Accordion.d.ts +3 -0
- package/dist/presentations/Accordion/Accordion.js +21 -0
- package/dist/presentations/Accordion/Accordion.styled.d.ts +22 -0
- package/dist/presentations/Accordion/Accordion.styled.js +39 -0
- package/dist/presentations/Accordion/Accordion.types.d.ts +22 -0
- package/dist/presentations/Accordion/Accordion.types.js +1 -0
- package/dist/presentations/Accordion/index.d.ts +2 -0
- package/dist/presentations/Accordion/index.js +2 -0
- package/dist/presentations/AnalysisBar/AnalysisBar.d.ts +3 -0
- package/dist/presentations/AnalysisBar/AnalysisBar.js +26 -0
- package/dist/presentations/AnalysisBar/AnalysisBar.styled.d.ts +31 -0
- package/dist/presentations/AnalysisBar/AnalysisBar.styled.js +103 -0
- package/dist/presentations/AnalysisBar/AnalysisBar.types.d.ts +11 -0
- package/dist/presentations/AnalysisBar/AnalysisBar.types.js +1 -0
- package/dist/presentations/AnalysisBar/AnalysisBar.utils.d.ts +5 -0
- package/dist/presentations/AnalysisBar/AnalysisBar.utils.js +34 -0
- package/dist/presentations/AnalysisBar/HeatmapGraphIcon/HeatmapGraphSVG.d.ts +3 -0
- package/dist/presentations/AnalysisBar/HeatmapGraphIcon/HeatmapGraphSVG.js +3 -0
- package/dist/presentations/AnalysisBar/HeatmapGraphIcon/index.d.ts +7 -0
- package/dist/presentations/AnalysisBar/HeatmapGraphIcon/index.js +8 -0
- package/dist/presentations/AnalysisBar/index.d.ts +4 -0
- package/dist/presentations/AnalysisBar/index.js +2 -0
- package/dist/presentations/FreeText/FreeText.d.ts +3 -0
- package/dist/presentations/FreeText/FreeText.js +27 -0
- package/dist/presentations/FreeText/FreeText.types.d.ts +9 -0
- package/dist/presentations/FreeText/FreeText.types.js +1 -0
- package/dist/presentations/FreeText/index.d.ts +4 -0
- package/dist/presentations/FreeText/index.js +2 -0
- package/dist/presentations/Histogram/Histogram.d.ts +3 -0
- package/dist/presentations/Histogram/Histogram.js +15 -0
- package/dist/presentations/Histogram/Histogram.styled.d.ts +23 -0
- package/dist/presentations/Histogram/Histogram.styled.js +47 -0
- package/dist/presentations/Histogram/Histogram.types.d.ts +27 -0
- package/dist/presentations/Histogram/Histogram.types.js +1 -0
- package/dist/presentations/Histogram/Histogram.utils.d.ts +23 -0
- package/dist/presentations/Histogram/Histogram.utils.js +45 -0
- package/dist/presentations/Histogram/HistogramCharts.d.ts +3 -0
- package/dist/presentations/Histogram/HistogramCharts.js +20 -0
- package/dist/presentations/Histogram/HistogramTabs.d.ts +3 -0
- package/dist/presentations/Histogram/HistogramTabs.js +27 -0
- package/dist/presentations/Histogram/index.d.ts +4 -0
- package/dist/presentations/Histogram/index.js +2 -0
- package/dist/presentations/HorizonDivider/HorizonDivider.d.ts +3 -0
- package/dist/presentations/HorizonDivider/HorizonDivider.js +6 -0
- package/dist/presentations/HorizonDivider/HorizonDivider.types.d.ts +4 -0
- package/dist/presentations/HorizonDivider/HorizonDivider.types.js +1 -0
- package/dist/presentations/HorizonDivider/index.d.ts +4 -0
- package/dist/presentations/HorizonDivider/index.js +2 -0
- package/dist/presentations/Score/Score.d.ts +3 -0
- package/dist/presentations/Score/Score.js +9 -0
- package/dist/presentations/Score/Score.types.d.ts +13 -0
- package/dist/presentations/Score/Score.types.js +1 -0
- package/dist/presentations/Score/index.d.ts +4 -0
- package/dist/presentations/Score/index.js +2 -0
- package/dist/presentations/Statistic/Statistic.d.ts +3 -0
- package/dist/presentations/Statistic/Statistic.js +12 -0
- package/dist/presentations/Statistic/Statistic.styled.d.ts +11 -0
- package/dist/presentations/Statistic/Statistic.styled.js +17 -0
- package/dist/presentations/Statistic/Statistic.types.d.ts +11 -0
- package/dist/presentations/Statistic/Statistic.types.js +1 -0
- package/dist/presentations/Statistic/index.d.ts +4 -0
- package/dist/presentations/Statistic/index.js +2 -0
- package/dist/presentations/ToggleControl/ToggleControl.d.ts +3 -0
- package/dist/presentations/ToggleControl/ToggleControl.js +22 -0
- package/dist/presentations/ToggleControl/ToggleControl.styled.d.ts +15 -0
- package/dist/presentations/ToggleControl/ToggleControl.styled.js +27 -0
- package/dist/presentations/ToggleControl/ToggleControl.types.d.ts +21 -0
- package/dist/presentations/ToggleControl/ToggleControl.types.js +1 -0
- package/dist/presentations/ToggleControl/index.d.ts +4 -0
- package/dist/presentations/ToggleControl/index.js +2 -0
- package/dist/presentations/ToggleControlGroup/ToggleControlGroup.d.ts +3 -0
- package/dist/presentations/ToggleControlGroup/ToggleControlGroup.js +32 -0
- package/dist/presentations/ToggleControlGroup/ToggleControlGroup.styled.d.ts +4 -0
- package/dist/presentations/ToggleControlGroup/ToggleControlGroup.styled.js +9 -0
- package/dist/presentations/ToggleControlGroup/ToggleControlGroup.types.d.ts +21 -0
- package/dist/presentations/ToggleControlGroup/ToggleControlGroup.types.js +1 -0
- package/dist/presentations/ToggleControlGroup/index.d.ts +2 -0
- package/dist/presentations/ToggleControlGroup/index.js +2 -0
- package/dist/presentations/index.d.ts +9 -0
- package/dist/presentations/index.js +9 -0
- package/dist/presentations/presentations.styled.d.ts +3 -0
- package/dist/presentations/presentations.styled.js +91 -0
- package/dist/presentations/presentations.types.d.ts +12 -0
- package/dist/presentations/presentations.types.js +1 -0
- package/package.json +7 -3
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const SvgIcBellNotioutlined20Px = (props) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: [_jsx("path", { fillRule: "evenodd", d: "M10 1.
|
|
2
|
+
const SvgIcBellNotioutlined20Px = (props) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: [_jsx("path", { fillRule: "evenodd", d: "M10 1.5q.835.001 1.547.142a5 5 0 0 0-1.128.869A8 8 0 0 0 10 2.5c-1.258 0-2.214.278-2.944.717-.731.439-1.265 1.056-1.653 1.778-.785 1.461-.955 3.326-.914 4.872.044 1.62-.343 3.313-1.36 4.633h13.742c-.831-1.078-1.241-2.406-1.34-3.739q.517-.166.98-.436c.039 1.495.502 2.935 1.493 3.96a.717.717 0 0 1-.515 1.215H12.5a2.5 2.5 0 0 1-5 0H2.511a.717.717 0 0 1-.515-1.215c1.086-1.123 1.538-2.745 1.494-4.39-.044-1.606.124-3.682 1.032-5.373.458-.854 1.11-1.616 2.019-2.162.91-.547 2.05-.86 3.459-.86m-1.5 14a1.5 1.5 0 0 0 3 0z", clipRule: "evenodd" }), _jsx("path", { fill: "#E63B28", d: "M18 6a4 4 0 1 1-8 0 4 4 0 0 1 8 0" })] }));
|
|
3
3
|
export default SvgIcBellNotioutlined20Px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const SvgIcCloseLargeoutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M4.854 15.854a.5.5 0 0 1-.708-.708L9.293 10 4.146 4.854a.5.5 0 1 1 .708-.708L10 9.293l5.146-5.147a.5.5 0 0 1 .708.708L10.707 10l5.147 5.146a.5.5 0 0 1-.708.708L10 10.
|
|
2
|
+
const SvgIcCloseLargeoutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M4.854 15.854a.5.5 0 0 1-.708-.708L9.293 10 4.146 4.854a.5.5 0 1 1 .708-.708L10 9.293l5.146-5.147a.5.5 0 0 1 .708.708L10.707 10l5.147 5.146a.5.5 0 0 1-.708.708L10 10.707z", clipRule: "evenodd" }) }));
|
|
3
3
|
export default SvgIcCloseLargeoutlined20Px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const SvgIcCloseSmalloutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M10 9.293 5.854 5.146a.5.5 0 1 0-.708.708L9.293 10l-4.147 4.
|
|
2
|
+
const SvgIcCloseSmalloutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M10 9.293 5.854 5.146a.5.5 0 1 0-.708.708L9.293 10l-4.147 4.147a.5.5 0 1 0 .708.707L10 10.707l4.146 4.147a.5.5 0 0 0 .708-.708L10.707 10l4.147-4.146a.5.5 0 0 0-.708-.708z", clipRule: "evenodd" }) }));
|
|
3
3
|
export default SvgIcCloseSmalloutlined20Px;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIcCopyCoordinatesoutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M5 0a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM4 2a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1zM1 5a1 1 0 0 1 1-1V3a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1zm10-1.5v2a.5.5 0 0 1-1 0v-2a.5.5 0 0 1 1 0m0 8v-2a.5.5 0 0 0-1 0v2a.5.5 0 0 0 1 0m1-4a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5M8.5 7h-2a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1", clipRule: "evenodd" }) }));
|
|
3
|
+
export default SvgIcCopyCoordinatesoutlined20Px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const SvgIcDownloadPdfoutlined20Px = (props) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: [_jsx("path", { fillRule: "evenodd", d: "M3.051 2.343V8h1.014V6.086h1.088c1.307 0 2.009-.785 2.009-1.87 0-1.08-.694-1.873-1.995-1.
|
|
2
|
+
const SvgIcDownloadPdfoutlined20Px = (props) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: [_jsx("path", { fillRule: "evenodd", d: "M3.051 2.343V8h1.014V6.086h1.088c1.307 0 2.009-.785 2.009-1.87 0-1.08-.694-1.873-1.995-1.873zm1.014 2.906V3.193h.947c.768 0 1.11.42 1.11 1.022S5.78 5.25 5.019 5.25zM9.939 2.343h-1.95V8h1.914c1.724 0 2.74-1.066 2.74-2.834 0-1.763-1.016-2.823-2.704-2.823m-.937 4.776V3.224h.882c1.152 0 1.751.643 1.751 1.942 0 1.3-.6 1.953-1.782 1.953z", clipRule: "evenodd" }), _jsx("path", { d: "M14.565 5.594V8H13.55V2.343h3.619v.856h-2.605V4.74h2.356v.854zM13.124 13.67l-2.624 3V11a.5.5 0 1 0-1 0v5.67l-2.624-3a.5.5 0 1 0-.752.66l3.5 4a.5.5 0 0 0 .752 0l3.5-4a.5.5 0 0 0-.752-.66" })] }));
|
|
3
3
|
export default SvgIcDownloadPdfoutlined20Px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const SvgIcEllipseoutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0
|
|
2
|
+
const SvgIcEllipseoutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16m0 1a9 9 0 1 0 0-18 9 9 0 0 0 0 18", clipRule: "evenodd" }) }));
|
|
3
3
|
export default SvgIcEllipseoutlined20Px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const SvgIcFilterNotioutlined20Px = (props) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: [_jsx("path", { fillRule: "evenodd", d: "M10.1 5H6.937a2 2 0 0 0-3.874 0H2a.5.5 0 0 0 0 1h1.063a2 2 0 0 0 3.874
|
|
2
|
+
const SvgIcFilterNotioutlined20Px = (props) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: [_jsx("path", { fillRule: "evenodd", d: "M10.1 5H6.937a2 2 0 0 0-3.874 0H2a.5.5 0 0 0 0 1h1.063a2 2 0 0 0 3.874 0H10q0-.514.1-1m2.55 4.238a2 2 0 0 1 3.787.262h.501a4 4 0 0 1-1.438.47 1 1 0 0 0-1.962-.245 4 4 0 0 1-.888-.487m-1.22.262H2a.5.5 0 0 0 0 1h10.563a2 2 0 0 0 3.76.323 5 5 0 0 1-1.669.165 1 1 0 0 1-.544-.067A5 5 0 0 1 11.43 9.5m5.752 1H18a.5.5 0 0 0 .384-.82 5 5 0 0 1-1.202.82M11 6q.002-.519.126-1H18a.5.5 0 0 1 0 1zm-7-.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0m6.437 9.5a2 2 0 0 1-3.874 0H2a.5.5 0 0 1 0-1h4.563a2 2 0 0 1 3.874 0H18a.5.5 0 0 1 0 1zM7.5 14.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0", clipRule: "evenodd" }), _jsx("path", { fill: "#E63B28", d: "M19 6a4 4 0 1 1-8 0 4 4 0 0 1 8 0" })] }));
|
|
3
3
|
export default SvgIcFilterNotioutlined20Px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const SvgIcHideLargeoutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { d: "M3.975 6.344a.5.5 0 0 0-.95.31L3.5 6.5l-.475.155v.003l.002.005.006.016.019.
|
|
2
|
+
const SvgIcHideLargeoutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { d: "M3.975 6.344a.5.5 0 0 0-.95.31L3.5 6.5l-.475.155v.003l.002.005.006.016.019.052q.024.065.071.178c.065.149.163.356.303.599.222.385.55.864 1.017 1.342l-1.296 1.297a.5.5 0 1 0 .707.707l1.34-1.34c.458.348 1.003.669 1.646.923l-.8 1.866a.5.5 0 1 0 .92.394l.837-1.954a9 9 0 0 0 1.703.245V13.5a.5.5 0 1 0 1 0v-2.512a9 9 0 0 0 1.703-.245l.838 1.954a.5.5 0 1 0 .919-.394l-.8-1.866a7 7 0 0 0 1.646-.923l1.39 1.39a.42.42 0 0 0 .632-.026l.026-.024a.5.5 0 0 0 0-.707L15.557 8.85a6.8 6.8 0 0 0 1.018-1.342 6 6 0 0 0 .374-.777l.018-.052.006-.016.002-.005v-.003L16.5 6.5l.476.155a.5.5 0 0 0-.951-.31l-.002.005-.011.03q-.016.045-.054.134a5 5 0 0 1-.25.495c-.236.41-.619.95-1.197 1.456a5.9 5.9 0 0 1-2.17 1.201 7.8 7.8 0 0 1-2.34.334 7.8 7.8 0 0 1-2.342-.334 5.9 5.9 0 0 1-2.17-1.201 5.8 5.8 0 0 1-1.197-1.456 5 5 0 0 1-.304-.628l-.01-.031z" }) }));
|
|
3
3
|
export default SvgIcHideLargeoutlined20Px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const SvgIcHideSmalloutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M14.926 7.644a.494.494 0 1 0-.948-.288v.
|
|
2
|
+
const SvgIcHideSmalloutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M14.926 7.644a.494.494 0 1 0-.948-.288v.002q-.02.06-.042.116a4.161 4.161 0 0 1-.96 1.42c-.355.34-.82.66-1.429.868a4.8 4.8 0 0 1-1.547.24 4.8 4.8 0 0 1-1.547-.24 3.8 3.8 0 0 1-1.428-.867 4.2 4.2 0 0 1-.96-1.42l-.036-.096-.007-.021v-.003a.494.494 0 0 0-.616-.334.506.506 0 0 0-.331.625v.001l.002.005.003.012a2 2 0 0 0 .065.18 5.216 5.216 0 0 0 .577 1.054l-1.057.993a.55.55 0 0 0-.048.73c.172.216.474.24.673.052l1.087-1.021c.273.257.597.503.98.714l-.663 1.257a.54.54 0 0 0 .177.706c.23.142.52.055.652-.193l.731-1.387c.378.119.794.201 1.251.236V12.5c0 .276.222.5.495.5a.5.5 0 0 0 .495-.5v-1.515a5.6 5.6 0 0 0 1.212-.224l.725 1.375c.13.248.422.335.651.193a.54.54 0 0 0 .178-.706l-.653-1.238a4.8 4.8 0 0 0 1.015-.733l1.087 1.02c.2.188.5.165.673-.051a.55.55 0 0 0-.048-.73l-1.057-.993a5.2 5.2 0 0 0 .577-1.054 3 3 0 0 0 .064-.18l.005-.012v-.005l.001-.001z", clipRule: "evenodd" }) }));
|
|
3
3
|
export default SvgIcHideSmalloutlined20Px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const SvgIcInformationLargeoutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-
|
|
2
|
+
const SvgIcInformationLargeoutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16m-9 8a9 9 0 1 1 18 0 9 9 0 0 1-18 0m8.25 4.247c0 .38.283.694.65.743a.5.5 0 0 0 .2 0 .75.75 0 0 0 .65-.743v-5.5a.75.75 0 0 0-1.5 0zM10 5a1 1 0 1 0 0 2 1 1 0 0 0 0-2", clipRule: "evenodd" }) }));
|
|
3
3
|
export default SvgIcInformationLargeoutlined20Px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const SvgIcInformationSmalloutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M4 10a6 6 0 1 1 12 0 6 6 0 0 1-12
|
|
2
|
+
const SvgIcInformationSmalloutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M4 10a6 6 0 1 1 12 0 6 6 0 0 1-12 0m6-7a7 7 0 1 0 0 14 7 7 0 0 0 0-14m.09 6.008a.5.5 0 0 0-.18 0 .75.75 0 0 0-.66.745v3.5a.75.75 0 0 0 1.5 0v-3.5a.75.75 0 0 0-.66-.745M10 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2", clipRule: "evenodd" }) }));
|
|
3
3
|
export default SvgIcInformationSmalloutlined20Px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const SvgIcManufactureroutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 24, fill: "none", ...props, children: _jsx("path", { fill: "#000", fillRule: "evenodd", d: "M19.48.004v23H0v-8.543l2.977-6.178 2.253 4.682 2.254-4.682 2.256 4.682 2.254-4.682 2.256 4.682V.
|
|
2
|
+
const SvgIcManufactureroutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 24, fill: "none", ...props, children: _jsx("path", { fill: "#000", fillRule: "evenodd", d: "M19.48.004v23H0v-8.543l2.977-6.178 2.253 4.682 2.254-4.682 2.256 4.682 2.254-4.682 2.256 4.682V.005z", clipRule: "evenodd" }) }));
|
|
3
3
|
export default SvgIcManufactureroutlined20Px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const SvgIcRectangleoutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M1 2a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-
|
|
2
|
+
const SvgIcRectangleoutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M1 2a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1zm1 0v16h16V2z", clipRule: "evenodd" }) }));
|
|
3
3
|
export default SvgIcRectangleoutlined20Px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const SvgIcRefreshLeftoutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M3.673 7a7 7 0 1 1-.275 5.333.5.5 0 0 0-.943.334A8 8 0 1 0 3 6.125V3.5a.5.5 0 0 0-1 0v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 0-
|
|
2
|
+
const SvgIcRefreshLeftoutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M3.673 7a7 7 0 1 1-.275 5.333.5.5 0 0 0-.943.334A8 8 0 1 0 3 6.125V3.5a.5.5 0 0 0-1 0v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 0-1z", clipRule: "evenodd" }) }));
|
|
3
3
|
export default SvgIcRefreshLeftoutlined20Px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const SvgIcRefreshRightoutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { d: "M14.436 3.343a8 8 0 1 0 3.294 8.718.5.5 0 0 0-.966-.258 7 7 0 1 1-.273-4.424h-2.957a.5.5 0 0 0 0 1h4.243a.5.5 0 0 0 .5-.5V3.636a.5.5 0 0 0-1 0v3.04a8 8 0 0 0-2.84-3.
|
|
2
|
+
const SvgIcRefreshRightoutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { d: "M14.436 3.343a8 8 0 1 0 3.294 8.718.5.5 0 0 0-.966-.258 7 7 0 1 1-.273-4.424h-2.957a.5.5 0 0 0 0 1h4.243a.5.5 0 0 0 .5-.5V3.636a.5.5 0 0 0-1 0v3.04a8 8 0 0 0-2.84-3.333" }) }));
|
|
3
3
|
export default SvgIcRefreshRightoutlined20Px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const SvgIcShowLargeoutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M3.025 10.228C3.445 9.238 5.178 6 9.977 6c4.789 0 6.559 3.222 6.997 4.224a.23.23 0 0 1-.004.204C16.523 11.285 14.748 14 9.977 14c-4.782 0-6.519-2.728-6.948-3.575a.
|
|
2
|
+
const SvgIcShowLargeoutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M3.025 10.228C3.445 9.238 5.178 6 9.977 6c4.789 0 6.559 3.222 6.997 4.224a.23.23 0 0 1-.004.204C16.523 11.285 14.748 14 9.977 14c-4.782 0-6.519-2.728-6.948-3.575a.23.23 0 0 1-.004-.197M9.977 5C4.59 5 2.59 8.685 2.1 9.839c-.14.33-.135.706.032 1.036C2.672 11.942 4.7 15 9.977 15c5.262 0 7.325-3.039 7.885-4.112.175-.337.18-.724.033-1.063C17.386 8.662 15.349 5 9.977 5m-2.009 5c0-1.105.9-2 2.01-2s2.008.895 2.008 2-.899 2-2.009 2-2.009-.895-2.009-2m2.01-3a3.007 3.007 0 0 0-3.014 3c0 1.657 1.349 3 3.013 3a3.007 3.007 0 0 0 3.014-3c0-1.657-1.35-3-3.014-3", clipRule: "evenodd" }) }));
|
|
3
3
|
export default SvgIcShowLargeoutlined20Px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const SvgIcShowSmalloutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M10 7c3.305 0 4.591 2.345 4.975 3.276C14.593 11.042 13.312 13 10
|
|
2
|
+
const SvgIcShowSmalloutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M10 7c3.305 0 4.591 2.345 4.975 3.276C14.593 11.042 13.312 13 10 13s-4.593-1.958-4.975-2.724C5.41 9.346 6.695 7 10 7m5.95 3.02a.72.72 0 0 1-.016.567C15.538 11.447 14.024 14 10 14c-4.023 0-5.538-2.552-5.934-3.413a.72.72 0 0 1-.016-.566C4.422 9.058 5.923 6 10 6s5.578 3.058 5.95 4.02M11 10a1 1 0 1 1-2 0 1 1 0 0 1 2 0m1 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0", clipRule: "evenodd" }) }));
|
|
3
3
|
export default SvgIcShowSmalloutlined20Px;
|
package/dist/assets/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as IcBellNotiOutlined20Px } from './ic-bell-noti-outlined-20px';
|
|
2
2
|
export { default as IcCloseLargeOutlined20Px } from './ic-close-large-outlined-20px';
|
|
3
3
|
export { default as IcCloseSmallOutlined20Px } from './ic-close-small-outlined-20px';
|
|
4
|
+
export { default as IcCopyCoordinatesOutlined20Px } from './ic-copy-coordinates-outlined-20px';
|
|
4
5
|
export { default as IcDownloadPdfOutlined20Px } from './ic-download-pdf-outlined-20px';
|
|
5
6
|
export { default as IcEllipseOutlined20Px } from './ic-ellipse-outlined-20px';
|
|
6
7
|
export { default as IcFilterNotiOutlined20Px } from './ic-filter-noti-outlined-20px';
|
package/dist/assets/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as IcBellNotiOutlined20Px } from './ic-bell-noti-outlined-20px';
|
|
2
2
|
export { default as IcCloseLargeOutlined20Px } from './ic-close-large-outlined-20px';
|
|
3
3
|
export { default as IcCloseSmallOutlined20Px } from './ic-close-small-outlined-20px';
|
|
4
|
+
export { default as IcCopyCoordinatesOutlined20Px } from './ic-copy-coordinates-outlined-20px';
|
|
4
5
|
export { default as IcDownloadPdfOutlined20Px } from './ic-download-pdf-outlined-20px';
|
|
5
6
|
export { default as IcEllipseOutlined20Px } from './ic-ellipse-outlined-20px';
|
|
6
7
|
export { default as IcFilterNotiOutlined20Px } from './ic-filter-noti-outlined-20px';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Success,
|
|
2
|
+
import { Success, Warning, Information } from '../../icons';
|
|
3
3
|
import theme from '../../theme';
|
|
4
4
|
export const getIcons = (severity) => {
|
|
5
5
|
switch (severity) {
|
|
@@ -8,9 +8,9 @@ export const getIcons = (severity) => {
|
|
|
8
8
|
case 'success':
|
|
9
9
|
return _jsx(Success, {});
|
|
10
10
|
case 'error':
|
|
11
|
-
return _jsx(
|
|
11
|
+
return _jsx(Warning, {});
|
|
12
12
|
default:
|
|
13
|
-
return _jsx(
|
|
13
|
+
return _jsx(Warning, {});
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
export const getBackgroundColor = (severity) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Warning16, StartT2 } from '../../icons';
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
4
|
const presetMap = {
|
|
5
5
|
default: {
|
|
@@ -22,7 +22,7 @@ const presetMap = {
|
|
|
22
22
|
failed: {
|
|
23
23
|
className: 'presetFailed',
|
|
24
24
|
label: 'Failed',
|
|
25
|
-
icon: _jsx(
|
|
25
|
+
icon: _jsx(Warning16, {}),
|
|
26
26
|
},
|
|
27
27
|
ready: {
|
|
28
28
|
className: 'presetReady',
|
|
@@ -41,7 +41,7 @@ const presetMap = {
|
|
|
41
41
|
invalid: {
|
|
42
42
|
className: 'presetInvalid',
|
|
43
43
|
label: 'Invalid',
|
|
44
|
-
icon: _jsx(
|
|
44
|
+
icon: _jsx(Warning16, {}),
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
// eslint-disable-next-line import/prefer-default-export
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { BoxProps } from '@mui/material';
|
|
2
|
+
import type { BoxProps, SxProps } from '@mui/material';
|
|
3
3
|
import type { HelperMsgProps, RootTextFieldProps } from '../BaseTextField/BaseTextField.types';
|
|
4
4
|
interface RootTextAreaProps extends Omit<RootTextFieldProps, 'BoxProps'> {
|
|
5
5
|
multiline: 'true';
|
|
@@ -10,6 +10,7 @@ interface RootTextAreaProps extends Omit<RootTextFieldProps, 'BoxProps'> {
|
|
|
10
10
|
width?: string | number;
|
|
11
11
|
height?: string | number;
|
|
12
12
|
OuterBoxProps?: BoxProps;
|
|
13
|
+
sx?: SxProps;
|
|
13
14
|
}
|
|
14
15
|
interface TextAreaWithHelperMsgProps extends Omit<RootTextAreaProps, 'error' | 'multiline'>, Omit<HelperMsgProps, 'error'> {
|
|
15
16
|
error?: string;
|
|
@@ -2,11 +2,15 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import PasswordInput from './components/PasswordInput';
|
|
4
4
|
import NormalTextInput from './components/NormalTextInput';
|
|
5
|
-
import isPasswordInput from './TextInput.utils';
|
|
5
|
+
import { isPasswordInput, isFileInput } from './TextInput.utils';
|
|
6
|
+
import FileInput from './components/FileInput';
|
|
6
7
|
const TextInput = forwardRef((props, ref) => {
|
|
7
8
|
if (isPasswordInput(props)) {
|
|
8
9
|
return (_jsx(PasswordInput, { ...props, ref: ref }));
|
|
9
10
|
}
|
|
11
|
+
if (isFileInput(props)) {
|
|
12
|
+
return (_jsx(FileInput, { ...props, ref: ref }));
|
|
13
|
+
}
|
|
10
14
|
return (_jsx(NormalTextInput, { ...props, ref: ref }));
|
|
11
15
|
});
|
|
12
16
|
export default TextInput;
|
|
@@ -21,8 +21,9 @@ const BaseTextInput = styled('input', {
|
|
|
21
21
|
'width',
|
|
22
22
|
'OuterBoxProps',
|
|
23
23
|
'InputContainerProps',
|
|
24
|
+
'sx',
|
|
24
25
|
].includes(prop.toString()),
|
|
25
|
-
})(({ theme, large, error, leftIcon, width }) => {
|
|
26
|
+
})(({ theme, large, error, leftIcon, width, type }) => {
|
|
26
27
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
27
28
|
let resultStyle = {
|
|
28
29
|
...baseTextInputStyle(theme),
|
|
@@ -20,7 +20,11 @@ interface NormalTextInputProps extends InputWithHelperMsgProps {
|
|
|
20
20
|
onClearButtonClick?: () => void;
|
|
21
21
|
rightIcon?: React.ReactNode;
|
|
22
22
|
}
|
|
23
|
+
interface FileInputProps extends NormalTextInputProps {
|
|
24
|
+
type: 'file';
|
|
25
|
+
accept: string;
|
|
26
|
+
}
|
|
23
27
|
interface PasswordTextInputProps extends PasswordInputWithHelperMsgProps {
|
|
24
28
|
}
|
|
25
|
-
type TextInputProps = PasswordTextInputProps | NormalTextInputProps;
|
|
26
|
-
export type { TextInputProps, NormalTextInputProps, PasswordTextInputProps, RootTextInputProps };
|
|
29
|
+
type TextInputProps = PasswordTextInputProps | NormalTextInputProps | FileInputProps;
|
|
30
|
+
export type { TextInputProps, NormalTextInputProps, PasswordTextInputProps, FileInputProps, RootTextInputProps, };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { PasswordTextInputProps, TextInputProps } from './TextInput.types';
|
|
2
|
-
declare function isPasswordInput(props: TextInputProps): props is PasswordTextInputProps;
|
|
3
|
-
export
|
|
1
|
+
import type { FileInputProps, PasswordTextInputProps, TextInputProps } from './TextInput.types';
|
|
2
|
+
export declare function isPasswordInput(props: TextInputProps): props is PasswordTextInputProps;
|
|
3
|
+
export declare function isFileInput(props: TextInputProps): props is FileInputProps;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// Function for inferring required input by props
|
|
2
|
-
function isPasswordInput(props) {
|
|
2
|
+
export function isPasswordInput(props) {
|
|
3
3
|
return props.type === 'password';
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export function isFileInput(props) {
|
|
6
|
+
return props.type === 'file';
|
|
7
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
declare function ClearButton({ onClick }: {
|
|
2
3
|
onClick?: () => void;
|
|
3
4
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,4 +6,9 @@ declare function ShowHidePasswordButton({ onClick, isHidden, }: {
|
|
|
5
6
|
onClick?: (event: any) => void;
|
|
6
7
|
isHidden: boolean;
|
|
7
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
|
|
9
|
+
declare function FileInputWrapperButton({ children, onClick, width, }: {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
onClick: () => void;
|
|
12
|
+
width?: string | number;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export { ClearButton, ShowHidePasswordButton, FileInputWrapperButton };
|
|
@@ -7,4 +7,18 @@ function ClearButton({ onClick }) {
|
|
|
7
7
|
function ShowHidePasswordButton({ onClick, isHidden, }) {
|
|
8
8
|
return (_jsx(ButtonWrapper, { onClick: onClick, children: isHidden ? _jsx(HideSmall, {}) : _jsx(ShowSmall, {}) }));
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
function FileInputWrapperButton({ children, onClick, width, }) {
|
|
11
|
+
return (_jsx("button", { onClick: onClick, style: {
|
|
12
|
+
position: 'unset',
|
|
13
|
+
width: width,
|
|
14
|
+
color: 'unset',
|
|
15
|
+
letterSpacing: 'unset',
|
|
16
|
+
margin: 'unset',
|
|
17
|
+
border: 'unset',
|
|
18
|
+
paddingInline: 'unset',
|
|
19
|
+
paddingBlock: 'unset',
|
|
20
|
+
backgroundColor: 'unset',
|
|
21
|
+
cursor: 'pointer',
|
|
22
|
+
}, children: children }));
|
|
23
|
+
}
|
|
24
|
+
export { ClearButton, ShowHidePasswordButton, FileInputWrapperButton };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useRef, useState } from 'react';
|
|
3
|
+
import { InputMsg, BaseTextFieldContainer, BaseTextFieldBox, } from '../../BaseTextField/BaseTextField.styled';
|
|
4
|
+
import { BaseTextInput, LeftIconContainer, RightIconContainer } from '../TextInput.styled';
|
|
5
|
+
import { FileInputWrapperButton } from './Buttons';
|
|
6
|
+
import { Project } from '../../../icons';
|
|
7
|
+
const FileInput = forwardRef((props, ref) => {
|
|
8
|
+
const { error, helperMsg, leftIcon, rightIcon, onClearButtonClick, inputSX, type: inputType, ...inputProps } = props;
|
|
9
|
+
const [fileName, setFileName] = useState('');
|
|
10
|
+
const fileRef = useRef(null);
|
|
11
|
+
const baseSX = inputSX ?? {
|
|
12
|
+
paddingRight: '44px',
|
|
13
|
+
pointerEvents: 'none',
|
|
14
|
+
};
|
|
15
|
+
return (_jsxs(BaseTextFieldBox, { ...props.OuterBoxProps, width: props.width, children: [_jsxs(BaseTextFieldContainer, { ...props.InputContainerProps, width: props.width, children: [leftIcon && (_jsx(LeftIconContainer, { sx: inputProps.disabled ? { opacity: '0.8' } : undefined, children: leftIcon })), _jsx("input", { ref: fileRef, type: "file", accept: props.accept, style: { display: 'none' }, onChange: (e) => {
|
|
16
|
+
setFileName(e.target.value.split('\\').pop());
|
|
17
|
+
} }), _jsxs(FileInputWrapperButton, { onClick: () => fileRef?.current?.click(), width: props.width, children: [_jsx(BaseTextInput, { ...inputProps, ref: ref, type: "text", error: !!error, value: fileName,
|
|
18
|
+
// @Tobio89: this dummy onchange clears an error without triggering unwanted style changes
|
|
19
|
+
onChange: () => { }, leftIcon: leftIcon, sx: baseSX }), _jsx(RightIconContainer, { children: _jsx(Project, {}) })] })] }), error ? (_jsx(InputMsg, { variant: "body5", error: true, children: error })) : (helperMsg && _jsx(InputMsg, { variant: "body5", children: helperMsg }))] }));
|
|
20
|
+
});
|
|
21
|
+
export default FileInput;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ToggleProps } from './Toggle.types';
|
|
2
|
+
declare const Toggle: ({ value, name, checked, defaultChecked, disabled, required, onChange, onChangeCapture, inputProps, inputRef, label, labelPlacement, toggleColor, indeterminate, ...rootProps }: ToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Toggle;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { Typography } from '@mui/material';
|
|
4
|
+
import { Container, StyledIndeterminateToggle, StyledToggle } from './Toggle.styled';
|
|
5
|
+
const Toggle = ({ value, name, checked, defaultChecked, disabled, required, onChange, onChangeCapture, inputProps, inputRef, label, labelPlacement = 'right', toggleColor, indeterminate, ...rootProps }) => {
|
|
6
|
+
const ToggleComponent = indeterminate ? StyledIndeterminateToggle : StyledToggle;
|
|
7
|
+
return (_jsxs(Container, { ...rootProps, className: clsx('toggle', { 'is-disabled': disabled }, rootProps.className), component: label != null ? 'label' : 'span', children: [_jsx(ToggleComponent, { disableRipple: true, value: true, name: name,
|
|
8
|
+
// indeterminate가 true인 Toggle을 클릭했을 때
|
|
9
|
+
// 발생하는 change event target의 checked property의 일관성을 보장함
|
|
10
|
+
checked: indeterminate ? true : checked, defaultChecked: defaultChecked, disabled: disabled, required: required, onChange: onChange, onChangeCapture: onChangeCapture, inputProps: inputProps, inputRef: inputRef, focusRipple: false, toggleColor: toggleColor }), label && (_jsx(Typography, { variant: "body_m1", sx: {
|
|
11
|
+
display: 'flex',
|
|
12
|
+
alignItems: 'center',
|
|
13
|
+
order: labelPlacement === 'left' ? -1 : 1,
|
|
14
|
+
}, children: label }))] }));
|
|
15
|
+
};
|
|
16
|
+
export default Toggle;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ToggleProps } from './Toggle.types';
|
|
3
|
+
export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
6
|
+
export declare const StyledToggle: import("@emotion/styled").StyledComponent<import("@mui/material").SwitchProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & ToggleProps, {}, {}>;
|
|
7
|
+
export declare const StyledIndeterminateToggle: import("@emotion/styled").StyledComponent<import("@mui/material").SwitchProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & ToggleProps, {}, {}>;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { Box, styled, Switch } from '@mui/material';
|
|
2
|
+
export const Container = styled(Box)(({ theme }) => ({
|
|
3
|
+
display: 'inline-flex',
|
|
4
|
+
gap: theme.spacing(2),
|
|
5
|
+
pointerEvents: 'none',
|
|
6
|
+
'&.is-disabled': {
|
|
7
|
+
opacity: 0.4,
|
|
8
|
+
},
|
|
9
|
+
'&:not(:last-child)': {
|
|
10
|
+
marginBottom: '6px',
|
|
11
|
+
},
|
|
12
|
+
}));
|
|
13
|
+
export const StyledToggle = styled(Switch, {
|
|
14
|
+
shouldForwardProp: (prop) => prop !== 'toggleColor',
|
|
15
|
+
})(({ theme, toggleColor, disabled }) => ({
|
|
16
|
+
width: '32px',
|
|
17
|
+
height: '22px',
|
|
18
|
+
borderRadius: '9px',
|
|
19
|
+
padding: '2px',
|
|
20
|
+
backgroundColor: 'transparent',
|
|
21
|
+
pointerEvents: 'auto',
|
|
22
|
+
opacity: disabled ? 0.4 : 1,
|
|
23
|
+
'& .MuiSwitch-switchBase': {
|
|
24
|
+
transition: 'all 100ms ease-in-out',
|
|
25
|
+
padding: '4px',
|
|
26
|
+
},
|
|
27
|
+
'& .MuiSwitch-thumb': {
|
|
28
|
+
width: '14px',
|
|
29
|
+
height: '14px',
|
|
30
|
+
background: theme.palette.neutralGrey[0],
|
|
31
|
+
boxShadow: '0px 0px 1px rgba(0, 0, 0, 0.4)',
|
|
32
|
+
},
|
|
33
|
+
'& .MuiSwitch-track': {
|
|
34
|
+
opacity: 1,
|
|
35
|
+
borderRadius: '12px',
|
|
36
|
+
backgroundColor: theme.palette.neutralGrey[45],
|
|
37
|
+
},
|
|
38
|
+
'& .MuiSwitch-switchBase .MuiSwitch-input': {
|
|
39
|
+
width: '200%',
|
|
40
|
+
height: '100%',
|
|
41
|
+
top: 0,
|
|
42
|
+
left: '-50%',
|
|
43
|
+
},
|
|
44
|
+
'& .MuiSwitch-switchBase.Mui-checked': {
|
|
45
|
+
transform: 'translateX(10px)',
|
|
46
|
+
color: theme.palette.neutralGrey[0],
|
|
47
|
+
},
|
|
48
|
+
'& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track': {
|
|
49
|
+
opacity: 1,
|
|
50
|
+
backgroundColor: toggleColor || theme.palette.lunitTeal[40],
|
|
51
|
+
},
|
|
52
|
+
'& .MuiSwitch-switchBase.Mui-disabled + .MuiSwitch-track': {
|
|
53
|
+
opacity: 1,
|
|
54
|
+
},
|
|
55
|
+
'& .MuiSwitch-switchBase.Mui-focusVisible': {
|
|
56
|
+
boxShadow: 'none',
|
|
57
|
+
background: 'transparent',
|
|
58
|
+
borderColor: 'transparent',
|
|
59
|
+
outline: 'none',
|
|
60
|
+
},
|
|
61
|
+
'& .MuiSwitch-switchBase.Mui-focusVisible + .MuiSwitch-track::after': {
|
|
62
|
+
borderRadius: '12px',
|
|
63
|
+
content: '""',
|
|
64
|
+
position: 'absolute',
|
|
65
|
+
border: `1px solid ${theme.palette.lunitTeal[10]}`,
|
|
66
|
+
boxSizing: 'border-box',
|
|
67
|
+
top: '1px',
|
|
68
|
+
left: '1px',
|
|
69
|
+
bottom: '1px',
|
|
70
|
+
right: '1px',
|
|
71
|
+
},
|
|
72
|
+
}));
|
|
73
|
+
export const StyledIndeterminateToggle = styled(StyledToggle)({
|
|
74
|
+
padding: '2px',
|
|
75
|
+
cursor: 'pointer',
|
|
76
|
+
'& .MuiSwitch-thumb': {
|
|
77
|
+
height: '2px',
|
|
78
|
+
width: '12px',
|
|
79
|
+
borderRadius: '2px',
|
|
80
|
+
boxShadow: 'none',
|
|
81
|
+
},
|
|
82
|
+
'& .MuiSwitch-switchBase.Mui-checked': {
|
|
83
|
+
padding: '10px 5px',
|
|
84
|
+
left: '50%',
|
|
85
|
+
transform: 'translateX(-50%)',
|
|
86
|
+
},
|
|
87
|
+
'& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track': {
|
|
88
|
+
borderRadius: '12px',
|
|
89
|
+
},
|
|
90
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BoxProps, Color, SwitchProps as MuiSwitchProps } from '@mui/material';
|
|
3
|
+
export interface ToggleProps extends Omit<BoxProps<'span'>, 'onChange' | 'onChangeCapture'> {
|
|
4
|
+
value?: MuiSwitchProps['value'];
|
|
5
|
+
name?: MuiSwitchProps['name'];
|
|
6
|
+
checked?: MuiSwitchProps['checked'];
|
|
7
|
+
defaultChecked?: MuiSwitchProps['defaultChecked'];
|
|
8
|
+
disabled?: MuiSwitchProps['disabled'];
|
|
9
|
+
required?: MuiSwitchProps['required'];
|
|
10
|
+
onChange?: MuiSwitchProps['onChange'];
|
|
11
|
+
onChangeCapture?: MuiSwitchProps['onChangeCapture'];
|
|
12
|
+
inputProps?: MuiSwitchProps['inputProps'];
|
|
13
|
+
inputRef?: MuiSwitchProps['inputRef'];
|
|
14
|
+
indeterminate?: boolean;
|
|
15
|
+
label?: string;
|
|
16
|
+
labelPlacement?: 'left' | 'right';
|
|
17
|
+
toggleColor?: React.CSSProperties['color'] | Color;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Grow, Typography, Box } from '@mui/material';
|
|
3
|
-
import { ArrowUp, Close, Success,
|
|
3
|
+
import { ArrowUp, Close, Success, Warning16, RefreshLeft } from '../../icons';
|
|
4
4
|
import { useState, Fragment, useMemo } from 'react';
|
|
5
5
|
import { Divider } from '../Divider';
|
|
6
6
|
import { Button } from '../Button';
|
|
@@ -51,7 +51,7 @@ const UploadFile = ({ file, onCancel, onRetry }) => {
|
|
|
51
51
|
if (onRetry)
|
|
52
52
|
onRetry(file.id);
|
|
53
53
|
}
|
|
54
|
-
}, icon: mouseOnErrorIconButton ? (_jsx(RefreshLeft, { style: { color: theme.palette.neutralGrey[0] } })) : (_jsx(
|
|
54
|
+
}, icon: mouseOnErrorIconButton ? (_jsx(RefreshLeft, { style: { color: theme.palette.neutralGrey[0] } })) : (_jsx(Warning16, { style: { color: theme.palette.red[5] } })), variant: "ghost", color: "secondary", sx: {
|
|
55
55
|
cursor: file.meta.retry ? 'pointer' : 'default',
|
|
56
56
|
} }) }) })] })), !file.meta?.errorMessage && file.meta?.postProcessConverting && (_jsxs(Typography, { variant: "body5", sx: {
|
|
57
57
|
marginRight: '30px',
|
package/dist/components/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
2
|
+
declare const variants: readonly ["outlined"];
|
|
3
|
+
type Variant = (typeof variants)[number];
|
|
4
|
+
type IconProps = SvgIconProps & {
|
|
5
|
+
variant?: Variant;
|
|
6
|
+
};
|
|
7
|
+
declare const CopyCoordinates: {
|
|
8
|
+
({ variant, ...rest }: IconProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
displayName: string;
|
|
10
|
+
variants: readonly ["outlined"];
|
|
11
|
+
};
|
|
12
|
+
export default CopyCoordinates;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import SvgIcon from '@mui/material/SvgIcon';
|
|
3
|
+
import { IcCopyCoordinatesOutlined20Px as outlined } from '../../assets';
|
|
4
|
+
const variants = ['outlined'];
|
|
5
|
+
const CopyCoordinates = ({ variant = 'outlined', ...rest }) => {
|
|
6
|
+
if (variant === 'outlined') {
|
|
7
|
+
return (_jsx(SvgIcon, { ...rest, component: outlined, inheritViewBox: true }));
|
|
8
|
+
}
|
|
9
|
+
return null;
|
|
10
|
+
};
|
|
11
|
+
CopyCoordinates.displayName = 'CopyCoordinates';
|
|
12
|
+
CopyCoordinates.variants = variants;
|
|
13
|
+
export default CopyCoordinates;
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { default as RefreshLeft } from './RefreshLeft';
|
|
|
14
14
|
export { default as RefreshRight } from './RefreshRight';
|
|
15
15
|
export { default as ShowLarge } from './ShowLarge';
|
|
16
16
|
export { default as ShowSmall } from './ShowSmall';
|
|
17
|
+
export { default as CopyCoordinates } from './CopyCoordinates';
|
|
17
18
|
export { Analyze } from '@lunit/design-system-icons';
|
|
18
19
|
export { Annotation } from '@lunit/design-system-icons';
|
|
19
20
|
export { Apps } from '@lunit/design-system-icons';
|
|
@@ -159,7 +160,7 @@ export { TagT1 } from '@lunit/design-system-icons';
|
|
|
159
160
|
export { TagT2 } from '@lunit/design-system-icons';
|
|
160
161
|
export { TagT3 } from '@lunit/design-system-icons';
|
|
161
162
|
export { Text } from '@lunit/design-system-icons';
|
|
162
|
-
export { Toggle } from '@lunit/design-system-icons';
|
|
163
|
+
export { Toggle as ToggleIcon } from '@lunit/design-system-icons';
|
|
163
164
|
export { Undo } from '@lunit/design-system-icons';
|
|
164
165
|
export { Unlock } from '@lunit/design-system-icons';
|
|
165
166
|
export { UploadFolder } from '@lunit/design-system-icons';
|
|
@@ -177,3 +178,4 @@ export { Warning16 } from '@lunit/design-system-icons';
|
|
|
177
178
|
export { Warning } from '@lunit/design-system-icons';
|
|
178
179
|
export { ZoomIn } from '@lunit/design-system-icons';
|
|
179
180
|
export { ZoomOut } from '@lunit/design-system-icons';
|
|
181
|
+
export { MonitoringSystem } from '@lunit/design-system-icons';
|