@majoo-ui/react 1.60.21-rc.1 → 1.60.21
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/components/datePicker/InputDatePicker.d.ts +1 -13
- package/components/form/components/InputDateRange/InputDateRange.d.ts +0 -12
- package/components/form/components/InputSelect/InputSelect.backup.d.ts +1 -111
- package/components/form/components/InputSelect/InputSelect.d.ts +1 -111
- package/components/loadingBar/LoadingBar.d.ts +0 -12
- package/components/table/Table.d.ts +1 -111
- package/index.esm.js +443 -594
- package/index.umd.js +1035 -1209
- package/layout/flex/index.d.ts +1 -0
- package/package.json +1 -1
- package/components/tag/Tag.d.ts +0 -16
- package/components/tag/index.d.ts +0 -2
- package/components/tooltip/Tooltip.d.ts +0 -218
- package/components/tooltip/index.d.ts +0 -2
- package/layout/box/Box.d.ts +0 -100
- package/layout/flex/Flex.d.ts +0 -112
- package/layout/grid/Grid.d.ts +0 -40
package/index.esm.js
CHANGED
|
@@ -5,8 +5,8 @@ import { createStitches, styled as styled$1 } from '@stitches/react';
|
|
|
5
5
|
import { foundations } from '@majoo-ui/core';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import moment from 'moment';
|
|
8
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
8
|
import { CloseOutline, UserFilled, CircleQuestionOutline, CircleInfoOutline, SearchOutline, CloseFilled, CaretDownOutline, ChevronUpOutline, ChevronDownOutline, CirclePlusOutline, SortingOutline, MinusOutline, PlusOutline, ChevronLeftOutline, ChevronRightOutline, TimeOutline, CalendarOutline, ChevronLgLeftOutline, ChevronLgRightOutline, ArrowLeftOutline, ArrowRightOutline, PlusPrimitive, EllipsisHorizontalOutline, EyeOutline, UploadOutline, ImageOutline, ChevronUpDownOutline, CheckFilled, RemoveOutline, LocationOutline } from '@majoo-ui/icons';
|
|
9
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
10
10
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
11
11
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
12
12
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
@@ -54,7 +54,7 @@ import ReactCrop, { centerCrop, makeAspectCrop } from 'react-image-crop';
|
|
|
54
54
|
import imageCompressionComponent from 'browser-image-compression';
|
|
55
55
|
import { useSticky } from 'react-table-sticky';
|
|
56
56
|
|
|
57
|
-
var _jsxFileName
|
|
57
|
+
var _jsxFileName$12 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/majoo-provider/ThemeProvider.js";
|
|
58
58
|
function ThemeProvider({
|
|
59
59
|
theme,
|
|
60
60
|
children
|
|
@@ -63,7 +63,7 @@ function ThemeProvider({
|
|
|
63
63
|
className: theme,
|
|
64
64
|
__self: this,
|
|
65
65
|
__source: {
|
|
66
|
-
fileName: _jsxFileName
|
|
66
|
+
fileName: _jsxFileName$12,
|
|
67
67
|
lineNumber: 5,
|
|
68
68
|
columnNumber: 10
|
|
69
69
|
}
|
|
@@ -1387,7 +1387,7 @@ const applyGlobalStyles = additionaStyles => {
|
|
|
1387
1387
|
globalStyles();
|
|
1388
1388
|
};
|
|
1389
1389
|
|
|
1390
|
-
var _jsxFileName$
|
|
1390
|
+
var _jsxFileName$11 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/majoo-provider/MajooProvider.js";
|
|
1391
1391
|
function MajooProvider({
|
|
1392
1392
|
children,
|
|
1393
1393
|
theme: theme$1 = theme,
|
|
@@ -1403,7 +1403,7 @@ function MajooProvider({
|
|
|
1403
1403
|
theme: theme$1,
|
|
1404
1404
|
__self: this,
|
|
1405
1405
|
__source: {
|
|
1406
|
-
fileName: _jsxFileName$
|
|
1406
|
+
fileName: _jsxFileName$11,
|
|
1407
1407
|
lineNumber: 14,
|
|
1408
1408
|
columnNumber: 5
|
|
1409
1409
|
}
|
|
@@ -1517,27 +1517,25 @@ const Flex$1 = styled('div', {
|
|
|
1517
1517
|
gap: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1518
1518
|
}), 12),
|
|
1519
1519
|
m: seqNumberVariants$1(value => ({
|
|
1520
|
-
|
|
1520
|
+
m: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1521
1521
|
}), 12),
|
|
1522
1522
|
mt: seqNumberVariants$1(value => ({
|
|
1523
|
-
|
|
1523
|
+
mt: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1524
1524
|
}), 12),
|
|
1525
1525
|
mb: seqNumberVariants$1(value => ({
|
|
1526
|
-
|
|
1526
|
+
mb: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1527
1527
|
}), 12),
|
|
1528
1528
|
mr: seqNumberVariants$1(value => ({
|
|
1529
|
-
|
|
1529
|
+
mr: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1530
1530
|
}), 12),
|
|
1531
1531
|
ml: seqNumberVariants$1(value => ({
|
|
1532
|
-
|
|
1532
|
+
ml: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1533
1533
|
}), 12),
|
|
1534
1534
|
mx: seqNumberVariants$1(value => ({
|
|
1535
|
-
|
|
1536
|
-
marginLeft: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1535
|
+
mx: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1537
1536
|
}), 12),
|
|
1538
1537
|
my: seqNumberVariants$1(value => ({
|
|
1539
|
-
|
|
1540
|
-
marginBottom: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1538
|
+
my: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1541
1539
|
}), 12),
|
|
1542
1540
|
mobileOnly: {
|
|
1543
1541
|
true: {
|
|
@@ -1556,56 +1554,54 @@ const Flex$1 = styled('div', {
|
|
|
1556
1554
|
}
|
|
1557
1555
|
}
|
|
1558
1556
|
});
|
|
1557
|
+
Flex$1.propTypes = {
|
|
1558
|
+
direction: PropTypes.string,
|
|
1559
|
+
align: PropTypes.string,
|
|
1560
|
+
justify: PropTypes.string,
|
|
1561
|
+
wrap: PropTypes.string,
|
|
1562
|
+
gap: PropTypes.number,
|
|
1563
|
+
m: PropTypes.number,
|
|
1564
|
+
mt: PropTypes.number,
|
|
1565
|
+
mb: PropTypes.number,
|
|
1566
|
+
mr: PropTypes.number,
|
|
1567
|
+
ml: PropTypes.number,
|
|
1568
|
+
mx: PropTypes.number,
|
|
1569
|
+
my: PropTypes.number
|
|
1570
|
+
};
|
|
1559
1571
|
Flex$1.defaultProps = {
|
|
1560
1572
|
direction: 'row',
|
|
1561
1573
|
align: 'stretch',
|
|
1562
1574
|
justify: 'start',
|
|
1563
|
-
wrap: 'noWrap'
|
|
1575
|
+
wrap: 'noWrap',
|
|
1576
|
+
gap: 0
|
|
1564
1577
|
};
|
|
1565
1578
|
Flex$1.displayName = 'Flex';
|
|
1566
1579
|
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
1589
|
-
t[p[i]] = s[p[i]];
|
|
1590
|
-
}
|
|
1591
|
-
return t;
|
|
1592
|
-
}
|
|
1593
|
-
|
|
1594
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
1595
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1596
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1597
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
1598
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
1599
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
1600
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1601
|
-
});
|
|
1602
|
-
}
|
|
1603
|
-
|
|
1604
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
1605
|
-
var e = new Error(message);
|
|
1606
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
1607
|
-
};
|
|
1580
|
+
function _extends() {
|
|
1581
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
1582
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1583
|
+
var t = arguments[e];
|
|
1584
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
1585
|
+
}
|
|
1586
|
+
return n;
|
|
1587
|
+
}, _extends.apply(null, arguments);
|
|
1588
|
+
}
|
|
1589
|
+
function _objectDestructuringEmpty(t) {
|
|
1590
|
+
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
1591
|
+
}
|
|
1592
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
1593
|
+
if (null == r) return {};
|
|
1594
|
+
var t = {};
|
|
1595
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
1596
|
+
if (e.includes(n)) continue;
|
|
1597
|
+
t[n] = r[n];
|
|
1598
|
+
}
|
|
1599
|
+
return t;
|
|
1600
|
+
}
|
|
1608
1601
|
|
|
1602
|
+
const _excluded$B = ["children"],
|
|
1603
|
+
_excluded2$4 = ["children"];
|
|
1604
|
+
var _jsxFileName$10 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/layout/grid/Grid.js";
|
|
1609
1605
|
const GridComponent = styled('div', {
|
|
1610
1606
|
display: 'grid',
|
|
1611
1607
|
variants: {
|
|
@@ -1790,21 +1786,25 @@ const GridComponent = styled('div', {
|
|
|
1790
1786
|
}
|
|
1791
1787
|
}
|
|
1792
1788
|
});
|
|
1793
|
-
const Grid =
|
|
1794
|
-
|
|
1789
|
+
const Grid = _ref => {
|
|
1790
|
+
let {
|
|
1795
1791
|
children
|
|
1796
|
-
} =
|
|
1797
|
-
props =
|
|
1798
|
-
return
|
|
1799
|
-
css: Object.assign(
|
|
1792
|
+
} = _ref,
|
|
1793
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
1794
|
+
return /*#__PURE__*/React__default.createElement(GridComponent, _extends({}, props, {
|
|
1795
|
+
css: Object.assign({}, props.css, {
|
|
1800
1796
|
gridAutoColumns: props.autoColumns,
|
|
1801
1797
|
gridAutoRows: props.autoRows,
|
|
1802
1798
|
gridTemplateColumns: props.templateColumns,
|
|
1803
1799
|
gridTemplateRows: props.templateRows
|
|
1804
|
-
})
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1800
|
+
}),
|
|
1801
|
+
__self: undefined,
|
|
1802
|
+
__source: {
|
|
1803
|
+
fileName: _jsxFileName$10,
|
|
1804
|
+
lineNumber: 200,
|
|
1805
|
+
columnNumber: 5
|
|
1806
|
+
}
|
|
1807
|
+
}), children);
|
|
1808
1808
|
};
|
|
1809
1809
|
Grid.propTypes = {
|
|
1810
1810
|
align: PropTypes.string,
|
|
@@ -1838,22 +1838,26 @@ const GridItemComponent = styled('div', {
|
|
|
1838
1838
|
}), 10))
|
|
1839
1839
|
}
|
|
1840
1840
|
});
|
|
1841
|
-
const GridItem =
|
|
1842
|
-
|
|
1841
|
+
const GridItem = _ref2 => {
|
|
1842
|
+
let {
|
|
1843
1843
|
children
|
|
1844
|
-
} =
|
|
1845
|
-
props =
|
|
1846
|
-
return
|
|
1847
|
-
css: Object.assign(
|
|
1844
|
+
} = _ref2,
|
|
1845
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
|
|
1846
|
+
return /*#__PURE__*/React__default.createElement(GridItemComponent, _extends({}, props, {
|
|
1847
|
+
css: Object.assign({}, props.css, {
|
|
1848
1848
|
gridArea: props.area,
|
|
1849
1849
|
gridColumnStart: props.colStart,
|
|
1850
1850
|
gridColumnEnd: props.colEnd,
|
|
1851
1851
|
gridRowStart: props.rowStart,
|
|
1852
1852
|
gridRowEnd: props.rowEnd
|
|
1853
|
-
})
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1853
|
+
}),
|
|
1854
|
+
__self: undefined,
|
|
1855
|
+
__source: {
|
|
1856
|
+
fileName: _jsxFileName$10,
|
|
1857
|
+
lineNumber: 265,
|
|
1858
|
+
columnNumber: 5
|
|
1859
|
+
}
|
|
1860
|
+
}), children);
|
|
1857
1861
|
};
|
|
1858
1862
|
GridItem.propTypes = {
|
|
1859
1863
|
gridArea: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
@@ -1866,30 +1870,8 @@ GridItem.propTypes = {
|
|
|
1866
1870
|
};
|
|
1867
1871
|
GridItem.displayName = 'Grid Item';
|
|
1868
1872
|
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
1872
|
-
var t = arguments[e];
|
|
1873
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
1874
|
-
}
|
|
1875
|
-
return n;
|
|
1876
|
-
}, _extends.apply(null, arguments);
|
|
1877
|
-
}
|
|
1878
|
-
function _objectDestructuringEmpty(t) {
|
|
1879
|
-
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
1880
|
-
}
|
|
1881
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
1882
|
-
if (null == r) return {};
|
|
1883
|
-
var t = {};
|
|
1884
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
1885
|
-
if (e.includes(n)) continue;
|
|
1886
|
-
t[n] = r[n];
|
|
1887
|
-
}
|
|
1888
|
-
return t;
|
|
1889
|
-
}
|
|
1890
|
-
|
|
1891
|
-
const _excluded$y = ["children", "isCollapse", "css", "contentHeader"];
|
|
1892
|
-
var _jsxFileName$Z = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/layout/pageContainer/PageContainer.js";
|
|
1873
|
+
const _excluded$A = ["children", "isCollapse", "css", "contentHeader"];
|
|
1874
|
+
var _jsxFileName$$ = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/layout/pageContainer/PageContainer.js";
|
|
1893
1875
|
const StyledDiv$2 = styled(Flex$1, {
|
|
1894
1876
|
justifyContent: 'center',
|
|
1895
1877
|
marginLeft: 'auto',
|
|
@@ -1932,7 +1914,7 @@ const PageContainer = _ref => {
|
|
|
1932
1914
|
css,
|
|
1933
1915
|
contentHeader
|
|
1934
1916
|
} = _ref,
|
|
1935
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1917
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
1936
1918
|
return /*#__PURE__*/React__default.createElement(StyledDiv$2, _extends({
|
|
1937
1919
|
id: "retina-container",
|
|
1938
1920
|
css: Object.assign({
|
|
@@ -1941,7 +1923,7 @@ const PageContainer = _ref => {
|
|
|
1941
1923
|
}, props, {
|
|
1942
1924
|
__self: undefined,
|
|
1943
1925
|
__source: {
|
|
1944
|
-
fileName: _jsxFileName
|
|
1926
|
+
fileName: _jsxFileName$$,
|
|
1945
1927
|
lineNumber: 43,
|
|
1946
1928
|
columnNumber: 5
|
|
1947
1929
|
}
|
|
@@ -2300,6 +2282,48 @@ Paragraph.defaultProps = {
|
|
|
2300
2282
|
};
|
|
2301
2283
|
Paragraph.displayName = 'Paragraph';
|
|
2302
2284
|
|
|
2285
|
+
/******************************************************************************
|
|
2286
|
+
Copyright (c) Microsoft Corporation.
|
|
2287
|
+
|
|
2288
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
2289
|
+
purpose with or without fee is hereby granted.
|
|
2290
|
+
|
|
2291
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
2292
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
2293
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
2294
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
2295
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2296
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2297
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
2298
|
+
***************************************************************************** */
|
|
2299
|
+
|
|
2300
|
+
function __rest(s, e) {
|
|
2301
|
+
var t = {};
|
|
2302
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
2303
|
+
t[p] = s[p];
|
|
2304
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
2305
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2306
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
2307
|
+
t[p[i]] = s[p[i]];
|
|
2308
|
+
}
|
|
2309
|
+
return t;
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
2313
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
2314
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
2315
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
2316
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
2317
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
2318
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
2319
|
+
});
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
2323
|
+
var e = new Error(message);
|
|
2324
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
2325
|
+
};
|
|
2326
|
+
|
|
2303
2327
|
const StyledLink = styled('a', {
|
|
2304
2328
|
fontSize: '$short-content-regular',
|
|
2305
2329
|
textDecoration: 'underline',
|
|
@@ -2353,8 +2377,8 @@ const Link = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
|
2353
2377
|
}), void 0);
|
|
2354
2378
|
});
|
|
2355
2379
|
|
|
2356
|
-
const _excluded$
|
|
2357
|
-
var _jsxFileName$
|
|
2380
|
+
const _excluded$z = ["title", "description", "variant", "link", "linkText", "onClick", "onRemove", "children", "bannerBlock", "icon"];
|
|
2381
|
+
var _jsxFileName$_ = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/banner/Banner.js";
|
|
2358
2382
|
const Context$2 = /*#__PURE__*/React.createContext();
|
|
2359
2383
|
const StyledBanner = styled(Flex$1, {
|
|
2360
2384
|
maxWidth: '100%',
|
|
@@ -2456,7 +2480,7 @@ const BannerTitle = props => /*#__PURE__*/React.createElement(Title$2, _extends(
|
|
|
2456
2480
|
}, props, {
|
|
2457
2481
|
__self: undefined,
|
|
2458
2482
|
__source: {
|
|
2459
|
-
fileName: _jsxFileName$
|
|
2483
|
+
fileName: _jsxFileName$_,
|
|
2460
2484
|
lineNumber: 111,
|
|
2461
2485
|
columnNumber: 3
|
|
2462
2486
|
}
|
|
@@ -2477,7 +2501,7 @@ const BannerDescription = props => /*#__PURE__*/React.createElement(Description,
|
|
|
2477
2501
|
}, props, {
|
|
2478
2502
|
__self: undefined,
|
|
2479
2503
|
__source: {
|
|
2480
|
-
fileName: _jsxFileName$
|
|
2504
|
+
fileName: _jsxFileName$_,
|
|
2481
2505
|
lineNumber: 128,
|
|
2482
2506
|
columnNumber: 3
|
|
2483
2507
|
}
|
|
@@ -2513,7 +2537,7 @@ const BannerLink = ({
|
|
|
2513
2537
|
return /*#__PURE__*/React.createElement(Context$2.Consumer, {
|
|
2514
2538
|
__self: undefined,
|
|
2515
2539
|
__source: {
|
|
2516
|
-
fileName: _jsxFileName$
|
|
2540
|
+
fileName: _jsxFileName$_,
|
|
2517
2541
|
lineNumber: 159,
|
|
2518
2542
|
columnNumber: 5
|
|
2519
2543
|
}
|
|
@@ -2525,7 +2549,7 @@ const BannerLink = ({
|
|
|
2525
2549
|
color: variant ? generateVariant(variant) : generateVariant(value.variant),
|
|
2526
2550
|
__self: undefined,
|
|
2527
2551
|
__source: {
|
|
2528
|
-
fileName: _jsxFileName$
|
|
2552
|
+
fileName: _jsxFileName$_,
|
|
2529
2553
|
lineNumber: 161,
|
|
2530
2554
|
columnNumber: 9
|
|
2531
2555
|
}
|
|
@@ -2551,7 +2575,7 @@ BannerLink.defaultProps = {
|
|
|
2551
2575
|
const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
|
|
2552
2576
|
__self: undefined,
|
|
2553
2577
|
__source: {
|
|
2554
|
-
fileName: _jsxFileName$
|
|
2578
|
+
fileName: _jsxFileName$_,
|
|
2555
2579
|
lineNumber: 193,
|
|
2556
2580
|
columnNumber: 3
|
|
2557
2581
|
}
|
|
@@ -2563,7 +2587,7 @@ const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
|
|
|
2563
2587
|
},
|
|
2564
2588
|
__self: undefined,
|
|
2565
2589
|
__source: {
|
|
2566
|
-
fileName: _jsxFileName$
|
|
2590
|
+
fileName: _jsxFileName$_,
|
|
2567
2591
|
lineNumber: 195,
|
|
2568
2592
|
columnNumber: 7
|
|
2569
2593
|
}
|
|
@@ -2572,7 +2596,7 @@ const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
|
|
|
2572
2596
|
size: "16px",
|
|
2573
2597
|
__self: undefined,
|
|
2574
2598
|
__source: {
|
|
2575
|
-
fileName: _jsxFileName$
|
|
2599
|
+
fileName: _jsxFileName$_,
|
|
2576
2600
|
lineNumber: 202,
|
|
2577
2601
|
columnNumber: 9
|
|
2578
2602
|
}
|
|
@@ -2583,14 +2607,14 @@ const SingleTagBanner = props => {
|
|
|
2583
2607
|
direction: "column",
|
|
2584
2608
|
__self: undefined,
|
|
2585
2609
|
__source: {
|
|
2586
|
-
fileName: _jsxFileName$
|
|
2610
|
+
fileName: _jsxFileName$_,
|
|
2587
2611
|
lineNumber: 210,
|
|
2588
2612
|
columnNumber: 5
|
|
2589
2613
|
}
|
|
2590
2614
|
}, /*#__PURE__*/React.createElement(Flex$1, {
|
|
2591
2615
|
__self: undefined,
|
|
2592
2616
|
__source: {
|
|
2593
|
-
fileName: _jsxFileName$
|
|
2617
|
+
fileName: _jsxFileName$_,
|
|
2594
2618
|
lineNumber: 211,
|
|
2595
2619
|
columnNumber: 7
|
|
2596
2620
|
}
|
|
@@ -2599,7 +2623,7 @@ const SingleTagBanner = props => {
|
|
|
2599
2623
|
direction: "row",
|
|
2600
2624
|
__self: undefined,
|
|
2601
2625
|
__source: {
|
|
2602
|
-
fileName: _jsxFileName$
|
|
2626
|
+
fileName: _jsxFileName$_,
|
|
2603
2627
|
lineNumber: 212,
|
|
2604
2628
|
columnNumber: 9
|
|
2605
2629
|
}
|
|
@@ -2609,7 +2633,7 @@ const SingleTagBanner = props => {
|
|
|
2609
2633
|
},
|
|
2610
2634
|
__self: undefined,
|
|
2611
2635
|
__source: {
|
|
2612
|
-
fileName: _jsxFileName$
|
|
2636
|
+
fileName: _jsxFileName$_,
|
|
2613
2637
|
lineNumber: 213,
|
|
2614
2638
|
columnNumber: 27
|
|
2615
2639
|
}
|
|
@@ -2622,21 +2646,21 @@ const SingleTagBanner = props => {
|
|
|
2622
2646
|
},
|
|
2623
2647
|
__self: undefined,
|
|
2624
2648
|
__source: {
|
|
2625
|
-
fileName: _jsxFileName$
|
|
2649
|
+
fileName: _jsxFileName$_,
|
|
2626
2650
|
lineNumber: 214,
|
|
2627
2651
|
columnNumber: 11
|
|
2628
2652
|
}
|
|
2629
2653
|
}, props.title && /*#__PURE__*/React.createElement(BannerTitle, {
|
|
2630
2654
|
__self: undefined,
|
|
2631
2655
|
__source: {
|
|
2632
|
-
fileName: _jsxFileName$
|
|
2656
|
+
fileName: _jsxFileName$_,
|
|
2633
2657
|
lineNumber: 222,
|
|
2634
2658
|
columnNumber: 29
|
|
2635
2659
|
}
|
|
2636
2660
|
}, props.title), props.description && /*#__PURE__*/React.createElement(BannerDescription, {
|
|
2637
2661
|
__self: undefined,
|
|
2638
2662
|
__source: {
|
|
2639
|
-
fileName: _jsxFileName$
|
|
2663
|
+
fileName: _jsxFileName$_,
|
|
2640
2664
|
lineNumber: 223,
|
|
2641
2665
|
columnNumber: 35
|
|
2642
2666
|
}
|
|
@@ -2649,7 +2673,7 @@ const SingleTagBanner = props => {
|
|
|
2649
2673
|
closeCenter: !props.title && !props.link,
|
|
2650
2674
|
__self: undefined,
|
|
2651
2675
|
__source: {
|
|
2652
|
-
fileName: _jsxFileName$
|
|
2676
|
+
fileName: _jsxFileName$_,
|
|
2653
2677
|
lineNumber: 226,
|
|
2654
2678
|
columnNumber: 9
|
|
2655
2679
|
}
|
|
@@ -2658,7 +2682,7 @@ const SingleTagBanner = props => {
|
|
|
2658
2682
|
size: "16px",
|
|
2659
2683
|
__self: undefined,
|
|
2660
2684
|
__source: {
|
|
2661
|
-
fileName: _jsxFileName$
|
|
2685
|
+
fileName: _jsxFileName$_,
|
|
2662
2686
|
lineNumber: 234,
|
|
2663
2687
|
columnNumber: 11
|
|
2664
2688
|
}
|
|
@@ -2671,7 +2695,7 @@ const SingleTagBanner = props => {
|
|
|
2671
2695
|
variant: props.variant,
|
|
2672
2696
|
__self: undefined,
|
|
2673
2697
|
__source: {
|
|
2674
|
-
fileName: _jsxFileName$
|
|
2698
|
+
fileName: _jsxFileName$_,
|
|
2675
2699
|
lineNumber: 238,
|
|
2676
2700
|
columnNumber: 9
|
|
2677
2701
|
}
|
|
@@ -2690,7 +2714,7 @@ const Banner = _ref => {
|
|
|
2690
2714
|
bannerBlock,
|
|
2691
2715
|
icon
|
|
2692
2716
|
} = _ref,
|
|
2693
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2717
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
2694
2718
|
return /*#__PURE__*/React.createElement(StyledBanner, _extends({
|
|
2695
2719
|
variant: variant,
|
|
2696
2720
|
hasAction: !!onClick,
|
|
@@ -2699,7 +2723,7 @@ const Banner = _ref => {
|
|
|
2699
2723
|
}, rest, {
|
|
2700
2724
|
__self: undefined,
|
|
2701
2725
|
__source: {
|
|
2702
|
-
fileName: _jsxFileName$
|
|
2726
|
+
fileName: _jsxFileName$_,
|
|
2703
2727
|
lineNumber: 260,
|
|
2704
2728
|
columnNumber: 5
|
|
2705
2729
|
}
|
|
@@ -2716,7 +2740,7 @@ const Banner = _ref => {
|
|
|
2716
2740
|
},
|
|
2717
2741
|
__self: undefined,
|
|
2718
2742
|
__source: {
|
|
2719
|
-
fileName: _jsxFileName$
|
|
2743
|
+
fileName: _jsxFileName$_,
|
|
2720
2744
|
lineNumber: 262,
|
|
2721
2745
|
columnNumber: 9
|
|
2722
2746
|
}
|
|
@@ -2727,7 +2751,7 @@ const Banner = _ref => {
|
|
|
2727
2751
|
},
|
|
2728
2752
|
__self: undefined,
|
|
2729
2753
|
__source: {
|
|
2730
|
-
fileName: _jsxFileName$
|
|
2754
|
+
fileName: _jsxFileName$_,
|
|
2731
2755
|
lineNumber: 269,
|
|
2732
2756
|
columnNumber: 11
|
|
2733
2757
|
}
|
|
@@ -2742,7 +2766,7 @@ const Banner = _ref => {
|
|
|
2742
2766
|
onRemove: onRemove,
|
|
2743
2767
|
__self: undefined,
|
|
2744
2768
|
__source: {
|
|
2745
|
-
fileName: _jsxFileName$
|
|
2769
|
+
fileName: _jsxFileName$_,
|
|
2746
2770
|
lineNumber: 272,
|
|
2747
2771
|
columnNumber: 9
|
|
2748
2772
|
}
|
|
@@ -3347,8 +3371,8 @@ Card.defaultProps = {
|
|
|
3347
3371
|
Card.Label = StyledLabel$2;
|
|
3348
3372
|
Card.Description = StyledDescription$3;
|
|
3349
3373
|
|
|
3350
|
-
const _excluded$
|
|
3351
|
-
var _jsxFileName$
|
|
3374
|
+
const _excluded$y = ["children"];
|
|
3375
|
+
var _jsxFileName$Z = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/breadcrumb/Breadcrumb.js";
|
|
3352
3376
|
const BreadcrumbStyle = styled('nav', {
|
|
3353
3377
|
wordWrap: 'break-word',
|
|
3354
3378
|
'& li+li:before': {
|
|
@@ -3393,7 +3417,7 @@ const BreadcrumbLinkBase = props => {
|
|
|
3393
3417
|
return /*#__PURE__*/React__default.createElement(BreadcrumbLinkStyle, _extends({}, props, aria, {
|
|
3394
3418
|
__self: undefined,
|
|
3395
3419
|
__source: {
|
|
3396
|
-
fileName: _jsxFileName$
|
|
3420
|
+
fileName: _jsxFileName$Z,
|
|
3397
3421
|
lineNumber: 42,
|
|
3398
3422
|
columnNumber: 10
|
|
3399
3423
|
}
|
|
@@ -3403,19 +3427,19 @@ const BreadcrumbBase = _ref => {
|
|
|
3403
3427
|
let {
|
|
3404
3428
|
children
|
|
3405
3429
|
} = _ref,
|
|
3406
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3430
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
3407
3431
|
return /*#__PURE__*/React__default.createElement(BreadcrumbStyle, _extends({}, rest, {
|
|
3408
3432
|
"aria-label": "breadcrumb",
|
|
3409
3433
|
__self: undefined,
|
|
3410
3434
|
__source: {
|
|
3411
|
-
fileName: _jsxFileName$
|
|
3435
|
+
fileName: _jsxFileName$Z,
|
|
3412
3436
|
lineNumber: 47,
|
|
3413
3437
|
columnNumber: 5
|
|
3414
3438
|
}
|
|
3415
3439
|
}), /*#__PURE__*/React__default.createElement(Ol, {
|
|
3416
3440
|
__self: undefined,
|
|
3417
3441
|
__source: {
|
|
3418
|
-
fileName: _jsxFileName$
|
|
3442
|
+
fileName: _jsxFileName$Z,
|
|
3419
3443
|
lineNumber: 48,
|
|
3420
3444
|
columnNumber: 7
|
|
3421
3445
|
}
|
|
@@ -3667,8 +3691,8 @@ Badge.defaultProps = {
|
|
|
3667
3691
|
};
|
|
3668
3692
|
Badge.displayName = 'Badge';
|
|
3669
3693
|
|
|
3670
|
-
const _excluded$
|
|
3671
|
-
var _jsxFileName$
|
|
3694
|
+
const _excluded$x = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
|
|
3695
|
+
var _jsxFileName$Y = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/avatar/Avatar.js";
|
|
3672
3696
|
const StyledAvatar = styled(AvatarPrimitive.Root, {
|
|
3673
3697
|
width: '32px',
|
|
3674
3698
|
height: '32px',
|
|
@@ -3712,7 +3736,7 @@ function Avatar(_ref) {
|
|
|
3712
3736
|
onClick,
|
|
3713
3737
|
css
|
|
3714
3738
|
} = _ref,
|
|
3715
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3739
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
3716
3740
|
return /*#__PURE__*/React__default.createElement(StyledAvatar, _extends({
|
|
3717
3741
|
className: className,
|
|
3718
3742
|
onClick: onClick,
|
|
@@ -3720,7 +3744,7 @@ function Avatar(_ref) {
|
|
|
3720
3744
|
}, props, {
|
|
3721
3745
|
__self: this,
|
|
3722
3746
|
__source: {
|
|
3723
|
-
fileName: _jsxFileName$
|
|
3747
|
+
fileName: _jsxFileName$Y,
|
|
3724
3748
|
lineNumber: 46,
|
|
3725
3749
|
columnNumber: 5
|
|
3726
3750
|
}
|
|
@@ -3730,7 +3754,7 @@ function Avatar(_ref) {
|
|
|
3730
3754
|
onLoadingStatusChange: onLoadingStatusChange,
|
|
3731
3755
|
__self: this,
|
|
3732
3756
|
__source: {
|
|
3733
|
-
fileName: _jsxFileName$
|
|
3757
|
+
fileName: _jsxFileName$Y,
|
|
3734
3758
|
lineNumber: 47,
|
|
3735
3759
|
columnNumber: 21
|
|
3736
3760
|
}
|
|
@@ -3738,21 +3762,21 @@ function Avatar(_ref) {
|
|
|
3738
3762
|
delayMs: delayMs,
|
|
3739
3763
|
__self: this,
|
|
3740
3764
|
__source: {
|
|
3741
|
-
fileName: _jsxFileName$
|
|
3765
|
+
fileName: _jsxFileName$Y,
|
|
3742
3766
|
lineNumber: 48,
|
|
3743
3767
|
columnNumber: 7
|
|
3744
3768
|
}
|
|
3745
3769
|
}, children !== undefined ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children) : /*#__PURE__*/React__default.createElement(StyledIcon, {
|
|
3746
3770
|
__self: this,
|
|
3747
3771
|
__source: {
|
|
3748
|
-
fileName: _jsxFileName$
|
|
3772
|
+
fileName: _jsxFileName$Y,
|
|
3749
3773
|
lineNumber: 52,
|
|
3750
3774
|
columnNumber: 11
|
|
3751
3775
|
}
|
|
3752
3776
|
}, /*#__PURE__*/React__default.createElement(UserFilled, {
|
|
3753
3777
|
__self: this,
|
|
3754
3778
|
__source: {
|
|
3755
|
-
fileName: _jsxFileName$
|
|
3779
|
+
fileName: _jsxFileName$Y,
|
|
3756
3780
|
lineNumber: 53,
|
|
3757
3781
|
columnNumber: 13
|
|
3758
3782
|
}
|
|
@@ -3769,8 +3793,8 @@ Avatar.defaultProps = {
|
|
|
3769
3793
|
delayMs: 0
|
|
3770
3794
|
};
|
|
3771
3795
|
|
|
3772
|
-
const _excluded$
|
|
3773
|
-
var _jsxFileName$
|
|
3796
|
+
const _excluded$w = ["className", "src", "alt", "width", "height", "objectFit", "fallback", "fallbackTitle", "css", "cssFallback", "rounded"];
|
|
3797
|
+
var _jsxFileName$X = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/image/Image.js";
|
|
3774
3798
|
const ContainerFallback = styled(Flex$1, {
|
|
3775
3799
|
boxSizing: 'border-box',
|
|
3776
3800
|
border: '2px dashed #C0C4C4',
|
|
@@ -3819,7 +3843,7 @@ function Image(_ref) {
|
|
|
3819
3843
|
cssFallback,
|
|
3820
3844
|
rounded
|
|
3821
3845
|
} = _ref,
|
|
3822
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3846
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
3823
3847
|
const {
|
|
3824
3848
|
t
|
|
3825
3849
|
} = useTranslation('translation');
|
|
@@ -3838,7 +3862,7 @@ function Image(_ref) {
|
|
|
3838
3862
|
}, props, {
|
|
3839
3863
|
__self: this,
|
|
3840
3864
|
__source: {
|
|
3841
|
-
fileName: _jsxFileName$
|
|
3865
|
+
fileName: _jsxFileName$X,
|
|
3842
3866
|
lineNumber: 61,
|
|
3843
3867
|
columnNumber: 7
|
|
3844
3868
|
}
|
|
@@ -3854,14 +3878,14 @@ function Image(_ref) {
|
|
|
3854
3878
|
}, cssFallback),
|
|
3855
3879
|
__self: this,
|
|
3856
3880
|
__source: {
|
|
3857
|
-
fileName: _jsxFileName$
|
|
3881
|
+
fileName: _jsxFileName$X,
|
|
3858
3882
|
lineNumber: 75,
|
|
3859
3883
|
columnNumber: 7
|
|
3860
3884
|
}
|
|
3861
3885
|
}, /*#__PURE__*/React__default.createElement(TextFallback, {
|
|
3862
3886
|
__self: this,
|
|
3863
3887
|
__source: {
|
|
3864
|
-
fileName: _jsxFileName$
|
|
3888
|
+
fileName: _jsxFileName$X,
|
|
3865
3889
|
lineNumber: 76,
|
|
3866
3890
|
columnNumber: 9
|
|
3867
3891
|
}
|
|
@@ -4462,6 +4486,8 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
4462
4486
|
|
|
4463
4487
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
4464
4488
|
|
|
4489
|
+
const _excluded$v = ["children", "label", "color", "css", "withClick", "side", "align", "delayDuration"];
|
|
4490
|
+
var _jsxFileName$W = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/tooltip/Tooltip.js";
|
|
4465
4491
|
const {
|
|
4466
4492
|
zIndices: zIndices$2
|
|
4467
4493
|
} = foundations;
|
|
@@ -4547,10 +4573,10 @@ const TooltipBase = styled(TooltipPrimitive.Root, {
|
|
|
4547
4573
|
color: 'ligth'
|
|
4548
4574
|
}
|
|
4549
4575
|
});
|
|
4576
|
+
|
|
4550
4577
|
// Exports
|
|
4551
4578
|
const Provider = TooltipPrimitive.Provider;
|
|
4552
4579
|
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
4553
|
-
const TooltipContent = StyledContent$6;
|
|
4554
4580
|
const dark = {
|
|
4555
4581
|
color: foundations.colors.white,
|
|
4556
4582
|
backgroundColor: foundations.colors.gray800
|
|
@@ -4565,8 +4591,8 @@ const darkArrow = {
|
|
|
4565
4591
|
const lightArrow = {
|
|
4566
4592
|
fill: foundations.colors.bgWhite
|
|
4567
4593
|
};
|
|
4568
|
-
const Tooltip$1 =
|
|
4569
|
-
|
|
4594
|
+
const Tooltip$1 = _ref => {
|
|
4595
|
+
let {
|
|
4570
4596
|
children,
|
|
4571
4597
|
label,
|
|
4572
4598
|
color,
|
|
@@ -4575,52 +4601,98 @@ const Tooltip$1 = _a => {
|
|
|
4575
4601
|
side,
|
|
4576
4602
|
align,
|
|
4577
4603
|
delayDuration
|
|
4578
|
-
} =
|
|
4579
|
-
rest =
|
|
4604
|
+
} = _ref,
|
|
4605
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
4580
4606
|
const [open, setOpen] = useState(false);
|
|
4581
|
-
return
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4607
|
+
return /*#__PURE__*/React__default.createElement(Provider, {
|
|
4608
|
+
__self: undefined,
|
|
4609
|
+
__source: {
|
|
4610
|
+
fileName: _jsxFileName$W,
|
|
4611
|
+
lineNumber: 91,
|
|
4612
|
+
columnNumber: 5
|
|
4613
|
+
}
|
|
4614
|
+
}, /*#__PURE__*/React__default.createElement(TooltipBase, _extends({}, rest, {
|
|
4615
|
+
open: withClick ? open : undefined,
|
|
4616
|
+
delayDuration: delayDuration,
|
|
4617
|
+
__self: undefined,
|
|
4618
|
+
__source: {
|
|
4619
|
+
fileName: _jsxFileName$W,
|
|
4620
|
+
lineNumber: 92,
|
|
4621
|
+
columnNumber: 7
|
|
4622
|
+
}
|
|
4623
|
+
}), /*#__PURE__*/React__default.createElement(TooltipTrigger, {
|
|
4624
|
+
asChild: true,
|
|
4625
|
+
__self: undefined,
|
|
4626
|
+
__source: {
|
|
4627
|
+
fileName: _jsxFileName$W,
|
|
4628
|
+
lineNumber: 93,
|
|
4629
|
+
columnNumber: 9
|
|
4630
|
+
}
|
|
4631
|
+
}, /*#__PURE__*/React__default.createElement(TriggerSpan, {
|
|
4632
|
+
onClick: () => withClick && !open && setOpen(true),
|
|
4633
|
+
__self: undefined,
|
|
4634
|
+
__source: {
|
|
4635
|
+
fileName: _jsxFileName$W,
|
|
4636
|
+
lineNumber: 94,
|
|
4637
|
+
columnNumber: 11
|
|
4638
|
+
}
|
|
4639
|
+
}, children)), /*#__PURE__*/React__default.createElement(TooltipPrimitive.Portal, {
|
|
4640
|
+
__self: undefined,
|
|
4641
|
+
__source: {
|
|
4642
|
+
fileName: _jsxFileName$W,
|
|
4643
|
+
lineNumber: 96,
|
|
4644
|
+
columnNumber: 9
|
|
4645
|
+
}
|
|
4646
|
+
}, /*#__PURE__*/React__default.createElement(StyledContent$6, {
|
|
4647
|
+
align: align,
|
|
4648
|
+
side: side,
|
|
4649
|
+
sideOffset: 5,
|
|
4650
|
+
css: color === 'dark' ? Object.assign({}, dark, css) : Object.assign({}, ligth, css),
|
|
4651
|
+
onPointerDownOutside: () => setTimeout(() => {
|
|
4652
|
+
setOpen(false);
|
|
4653
|
+
}, 100),
|
|
4654
|
+
__self: undefined,
|
|
4655
|
+
__source: {
|
|
4656
|
+
fileName: _jsxFileName$W,
|
|
4657
|
+
lineNumber: 97,
|
|
4658
|
+
columnNumber: 11
|
|
4659
|
+
}
|
|
4660
|
+
}, label, /*#__PURE__*/React__default.createElement(StyledArrow$1, {
|
|
4661
|
+
offset: 10,
|
|
4662
|
+
css: color === 'dark' ? darkArrow : lightArrow,
|
|
4663
|
+
__self: undefined,
|
|
4664
|
+
__source: {
|
|
4665
|
+
fileName: _jsxFileName$W,
|
|
4666
|
+
lineNumber: 109,
|
|
4667
|
+
columnNumber: 13
|
|
4668
|
+
}
|
|
4669
|
+
})))));
|
|
4670
|
+
};
|
|
4671
|
+
Tooltip$1.propTypes = {
|
|
4672
|
+
children: PropTypes.node,
|
|
4673
|
+
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
4674
|
+
color: PropTypes.string,
|
|
4675
|
+
side: PropTypes.oneOf(['top', 'bottom', 'right', 'left']),
|
|
4676
|
+
align: PropTypes.oneOf(['start', 'center', 'end'])
|
|
4612
4677
|
};
|
|
4613
4678
|
Tooltip$1.defaultProps = {
|
|
4614
4679
|
color: 'dark',
|
|
4615
4680
|
side: 'bottom',
|
|
4616
4681
|
align: 'center',
|
|
4617
4682
|
label: '',
|
|
4618
|
-
children:
|
|
4683
|
+
children: /*#__PURE__*/React__default.createElement("div", {
|
|
4684
|
+
__self: undefined,
|
|
4685
|
+
__source: {
|
|
4686
|
+
fileName: _jsxFileName$W,
|
|
4687
|
+
lineNumber: 130,
|
|
4688
|
+
columnNumber: 13
|
|
4689
|
+
}
|
|
4690
|
+
}),
|
|
4619
4691
|
delayDuration: 200
|
|
4620
4692
|
};
|
|
4621
4693
|
|
|
4622
|
-
const _excluded$
|
|
4623
|
-
var _jsxFileName$
|
|
4694
|
+
const _excluded$u = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
|
|
4695
|
+
var _jsxFileName$V = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/progress/Progress.js";
|
|
4624
4696
|
const StyledProgress$1 = styled$1(ProgressPrimitive.Root, {
|
|
4625
4697
|
position: 'relative',
|
|
4626
4698
|
overflow: 'hidden',
|
|
@@ -4738,7 +4810,7 @@ function Progress$1(_ref) {
|
|
|
4738
4810
|
rounded,
|
|
4739
4811
|
width
|
|
4740
4812
|
} = _ref,
|
|
4741
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4813
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
4742
4814
|
return /*#__PURE__*/React__default.createElement(StyledProgress$1, _extends({
|
|
4743
4815
|
className: className,
|
|
4744
4816
|
value: value,
|
|
@@ -4753,7 +4825,7 @@ function Progress$1(_ref) {
|
|
|
4753
4825
|
}, props, {
|
|
4754
4826
|
__self: this,
|
|
4755
4827
|
__source: {
|
|
4756
|
-
fileName: _jsxFileName$
|
|
4828
|
+
fileName: _jsxFileName$V,
|
|
4757
4829
|
lineNumber: 88,
|
|
4758
4830
|
columnNumber: 5
|
|
4759
4831
|
}
|
|
@@ -4766,7 +4838,7 @@ function Progress$1(_ref) {
|
|
|
4766
4838
|
},
|
|
4767
4839
|
__self: this,
|
|
4768
4840
|
__source: {
|
|
4769
|
-
fileName: _jsxFileName$
|
|
4841
|
+
fileName: _jsxFileName$V,
|
|
4770
4842
|
lineNumber: 89,
|
|
4771
4843
|
columnNumber: 7
|
|
4772
4844
|
}
|
|
@@ -5428,8 +5500,8 @@ function useMediaQuery(query) {
|
|
|
5428
5500
|
return matches;
|
|
5429
5501
|
}
|
|
5430
5502
|
|
|
5431
|
-
const _excluded$
|
|
5432
|
-
var _jsxFileName$
|
|
5503
|
+
const _excluded$t = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
|
|
5504
|
+
var _jsxFileName$U = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/toast/Toast.js";
|
|
5433
5505
|
const TOAST_WIDTH = 576;
|
|
5434
5506
|
const ANIMATION_DURATION = 400;
|
|
5435
5507
|
const TOP_RIGHT_POSITION = 'top-right';
|
|
@@ -5597,7 +5669,7 @@ const Toast = _ref => {
|
|
|
5597
5669
|
captionOfAction,
|
|
5598
5670
|
hrefOfAction
|
|
5599
5671
|
} = _ref,
|
|
5600
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5672
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
5601
5673
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
5602
5674
|
const isMobile = useMediaQuery(`(max-width: 767px`);
|
|
5603
5675
|
const close = React.useCallback(() => {
|
|
@@ -5626,7 +5698,7 @@ const Toast = _ref => {
|
|
|
5626
5698
|
onExited: onRemove,
|
|
5627
5699
|
__self: undefined,
|
|
5628
5700
|
__source: {
|
|
5629
|
-
fileName: _jsxFileName$
|
|
5701
|
+
fileName: _jsxFileName$U,
|
|
5630
5702
|
lineNumber: 216,
|
|
5631
5703
|
columnNumber: 5
|
|
5632
5704
|
}
|
|
@@ -5641,7 +5713,7 @@ const Toast = _ref => {
|
|
|
5641
5713
|
}, rest, {
|
|
5642
5714
|
__self: undefined,
|
|
5643
5715
|
__source: {
|
|
5644
|
-
fileName: _jsxFileName$
|
|
5716
|
+
fileName: _jsxFileName$U,
|
|
5645
5717
|
lineNumber: 227,
|
|
5646
5718
|
columnNumber: 9
|
|
5647
5719
|
}
|
|
@@ -5651,7 +5723,7 @@ const Toast = _ref => {
|
|
|
5651
5723
|
onClick: onClick,
|
|
5652
5724
|
__self: undefined,
|
|
5653
5725
|
__source: {
|
|
5654
|
-
fileName: _jsxFileName$
|
|
5726
|
+
fileName: _jsxFileName$U,
|
|
5655
5727
|
lineNumber: 235,
|
|
5656
5728
|
columnNumber: 11
|
|
5657
5729
|
}
|
|
@@ -5659,7 +5731,7 @@ const Toast = _ref => {
|
|
|
5659
5731
|
direction: "column",
|
|
5660
5732
|
__self: undefined,
|
|
5661
5733
|
__source: {
|
|
5662
|
-
fileName: _jsxFileName$
|
|
5734
|
+
fileName: _jsxFileName$U,
|
|
5663
5735
|
lineNumber: 236,
|
|
5664
5736
|
columnNumber: 13
|
|
5665
5737
|
}
|
|
@@ -5667,7 +5739,7 @@ const Toast = _ref => {
|
|
|
5667
5739
|
direction: "row",
|
|
5668
5740
|
__self: undefined,
|
|
5669
5741
|
__source: {
|
|
5670
|
-
fileName: _jsxFileName$
|
|
5742
|
+
fileName: _jsxFileName$U,
|
|
5671
5743
|
lineNumber: 237,
|
|
5672
5744
|
columnNumber: 15
|
|
5673
5745
|
}
|
|
@@ -5675,7 +5747,7 @@ const Toast = _ref => {
|
|
|
5675
5747
|
variant: variant,
|
|
5676
5748
|
__self: undefined,
|
|
5677
5749
|
__source: {
|
|
5678
|
-
fileName: _jsxFileName$
|
|
5750
|
+
fileName: _jsxFileName$U,
|
|
5679
5751
|
lineNumber: 238,
|
|
5680
5752
|
columnNumber: 17
|
|
5681
5753
|
}
|
|
@@ -5687,7 +5759,7 @@ const Toast = _ref => {
|
|
|
5687
5759
|
},
|
|
5688
5760
|
__self: undefined,
|
|
5689
5761
|
__source: {
|
|
5690
|
-
fileName: _jsxFileName$
|
|
5762
|
+
fileName: _jsxFileName$U,
|
|
5691
5763
|
lineNumber: 239,
|
|
5692
5764
|
columnNumber: 17
|
|
5693
5765
|
}
|
|
@@ -5695,7 +5767,7 @@ const Toast = _ref => {
|
|
|
5695
5767
|
justify: "between",
|
|
5696
5768
|
__self: undefined,
|
|
5697
5769
|
__source: {
|
|
5698
|
-
fileName: _jsxFileName$
|
|
5770
|
+
fileName: _jsxFileName$U,
|
|
5699
5771
|
lineNumber: 247,
|
|
5700
5772
|
columnNumber: 21
|
|
5701
5773
|
}
|
|
@@ -5710,7 +5782,7 @@ const Toast = _ref => {
|
|
|
5710
5782
|
},
|
|
5711
5783
|
__self: undefined,
|
|
5712
5784
|
__source: {
|
|
5713
|
-
fileName: _jsxFileName$
|
|
5785
|
+
fileName: _jsxFileName$U,
|
|
5714
5786
|
lineNumber: 248,
|
|
5715
5787
|
columnNumber: 23
|
|
5716
5788
|
}
|
|
@@ -5719,7 +5791,7 @@ const Toast = _ref => {
|
|
|
5719
5791
|
color: "secondary",
|
|
5720
5792
|
__self: undefined,
|
|
5721
5793
|
__source: {
|
|
5722
|
-
fileName: _jsxFileName$
|
|
5794
|
+
fileName: _jsxFileName$U,
|
|
5723
5795
|
lineNumber: 262,
|
|
5724
5796
|
columnNumber: 19
|
|
5725
5797
|
}
|
|
@@ -5734,7 +5806,7 @@ const Toast = _ref => {
|
|
|
5734
5806
|
hasTitle: !!title,
|
|
5735
5807
|
__self: undefined,
|
|
5736
5808
|
__source: {
|
|
5737
|
-
fileName: _jsxFileName$
|
|
5809
|
+
fileName: _jsxFileName$U,
|
|
5738
5810
|
lineNumber: 266,
|
|
5739
5811
|
columnNumber: 17
|
|
5740
5812
|
}
|
|
@@ -5743,7 +5815,7 @@ const Toast = _ref => {
|
|
|
5743
5815
|
size: "16px",
|
|
5744
5816
|
__self: undefined,
|
|
5745
5817
|
__source: {
|
|
5746
|
-
fileName: _jsxFileName$
|
|
5818
|
+
fileName: _jsxFileName$U,
|
|
5747
5819
|
lineNumber: 276,
|
|
5748
5820
|
columnNumber: 19
|
|
5749
5821
|
}
|
|
@@ -5758,7 +5830,7 @@ const Toast = _ref => {
|
|
|
5758
5830
|
},
|
|
5759
5831
|
__self: undefined,
|
|
5760
5832
|
__source: {
|
|
5761
|
-
fileName: _jsxFileName$
|
|
5833
|
+
fileName: _jsxFileName$U,
|
|
5762
5834
|
lineNumber: 280,
|
|
5763
5835
|
columnNumber: 17
|
|
5764
5836
|
}
|
|
@@ -5780,8 +5852,8 @@ Toast.defaultProps = {
|
|
|
5780
5852
|
dismissAfter: 5000
|
|
5781
5853
|
};
|
|
5782
5854
|
|
|
5783
|
-
const _excluded$
|
|
5784
|
-
var _jsxFileName$
|
|
5855
|
+
const _excluded$s = ["preventDuplicate"];
|
|
5856
|
+
var _jsxFileName$T = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/toast/ToastContainer.js";
|
|
5785
5857
|
const ToastBox = styled(Flex$1, {
|
|
5786
5858
|
position: 'fixed',
|
|
5787
5859
|
variants: {
|
|
@@ -5828,7 +5900,7 @@ const ToastContainer = ({
|
|
|
5828
5900
|
},
|
|
5829
5901
|
__self: undefined,
|
|
5830
5902
|
__source: {
|
|
5831
|
-
fileName: _jsxFileName$
|
|
5903
|
+
fileName: _jsxFileName$T,
|
|
5832
5904
|
lineNumber: 43,
|
|
5833
5905
|
columnNumber: 5
|
|
5834
5906
|
}
|
|
@@ -5836,7 +5908,7 @@ const ToastContainer = ({
|
|
|
5836
5908
|
position: position,
|
|
5837
5909
|
__self: undefined,
|
|
5838
5910
|
__source: {
|
|
5839
|
-
fileName: _jsxFileName$
|
|
5911
|
+
fileName: _jsxFileName$T,
|
|
5840
5912
|
lineNumber: 44,
|
|
5841
5913
|
columnNumber: 7
|
|
5842
5914
|
}
|
|
@@ -5844,14 +5916,14 @@ const ToastContainer = ({
|
|
|
5844
5916
|
const {
|
|
5845
5917
|
preventDuplicate
|
|
5846
5918
|
} = item,
|
|
5847
|
-
toast = _objectWithoutPropertiesLoose(item, _excluded$
|
|
5919
|
+
toast = _objectWithoutPropertiesLoose(item, _excluded$s);
|
|
5848
5920
|
return /*#__PURE__*/React.createElement(Toast, _extends({
|
|
5849
5921
|
key: preventDuplicate ? toast.id : `${toast.id}-${index}`,
|
|
5850
5922
|
onRemove: () => removeToast(toast.id)
|
|
5851
5923
|
}, toast, {
|
|
5852
5924
|
__self: undefined,
|
|
5853
5925
|
__source: {
|
|
5854
|
-
fileName: _jsxFileName$
|
|
5926
|
+
fileName: _jsxFileName$T,
|
|
5855
5927
|
lineNumber: 47,
|
|
5856
5928
|
columnNumber: 18
|
|
5857
5929
|
}
|
|
@@ -7101,8 +7173,8 @@ const catchError = e => {
|
|
|
7101
7173
|
return message;
|
|
7102
7174
|
};
|
|
7103
7175
|
|
|
7104
|
-
const _excluded$
|
|
7105
|
-
var _jsxFileName$
|
|
7176
|
+
const _excluded$r = ["id", "disabledOfflineIntercept"];
|
|
7177
|
+
var _jsxFileName$S = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/toast/context/ToastProvider.js";
|
|
7106
7178
|
let toastCount = 0;
|
|
7107
7179
|
const ToastProvider = ({
|
|
7108
7180
|
children,
|
|
@@ -7131,7 +7203,7 @@ const ToastProvider = ({
|
|
|
7131
7203
|
id,
|
|
7132
7204
|
disabledOfflineIntercept
|
|
7133
7205
|
} = toast,
|
|
7134
|
-
rest = _objectWithoutPropertiesLoose(toast, _excluded$
|
|
7206
|
+
rest = _objectWithoutPropertiesLoose(toast, _excluded$r);
|
|
7135
7207
|
|
|
7136
7208
|
// eslint-disable-next-line no-plusplus
|
|
7137
7209
|
const uniqueId = ++toastCount;
|
|
@@ -7171,7 +7243,7 @@ const ToastProvider = ({
|
|
|
7171
7243
|
},
|
|
7172
7244
|
__self: undefined,
|
|
7173
7245
|
__source: {
|
|
7174
|
-
fileName: _jsxFileName$
|
|
7246
|
+
fileName: _jsxFileName$S,
|
|
7175
7247
|
lineNumber: 81,
|
|
7176
7248
|
columnNumber: 5
|
|
7177
7249
|
}
|
|
@@ -7180,7 +7252,7 @@ const ToastProvider = ({
|
|
|
7180
7252
|
position: TOP_RIGHT_POSITION,
|
|
7181
7253
|
__self: undefined,
|
|
7182
7254
|
__source: {
|
|
7183
|
-
fileName: _jsxFileName$
|
|
7255
|
+
fileName: _jsxFileName$S,
|
|
7184
7256
|
lineNumber: 83,
|
|
7185
7257
|
columnNumber: 7
|
|
7186
7258
|
}
|
|
@@ -7189,7 +7261,7 @@ const ToastProvider = ({
|
|
|
7189
7261
|
position: TOP_LEFT_POSITION,
|
|
7190
7262
|
__self: undefined,
|
|
7191
7263
|
__source: {
|
|
7192
|
-
fileName: _jsxFileName$
|
|
7264
|
+
fileName: _jsxFileName$S,
|
|
7193
7265
|
lineNumber: 87,
|
|
7194
7266
|
columnNumber: 7
|
|
7195
7267
|
}
|
|
@@ -7198,7 +7270,7 @@ const ToastProvider = ({
|
|
|
7198
7270
|
position: BOTTOM_RIGHT_POSITION,
|
|
7199
7271
|
__self: undefined,
|
|
7200
7272
|
__source: {
|
|
7201
|
-
fileName: _jsxFileName$
|
|
7273
|
+
fileName: _jsxFileName$S,
|
|
7202
7274
|
lineNumber: 91,
|
|
7203
7275
|
columnNumber: 7
|
|
7204
7276
|
}
|
|
@@ -7207,7 +7279,7 @@ const ToastProvider = ({
|
|
|
7207
7279
|
position: BOTTOM_LEFT_POSITION,
|
|
7208
7280
|
__self: undefined,
|
|
7209
7281
|
__source: {
|
|
7210
|
-
fileName: _jsxFileName$
|
|
7282
|
+
fileName: _jsxFileName$S,
|
|
7211
7283
|
lineNumber: 95,
|
|
7212
7284
|
columnNumber: 7
|
|
7213
7285
|
}
|
|
@@ -7220,8 +7292,8 @@ const ConditionalWrapper = ({
|
|
|
7220
7292
|
children
|
|
7221
7293
|
}) => condition ? wrapper(children) : children;
|
|
7222
7294
|
|
|
7223
|
-
const _excluded$
|
|
7224
|
-
var _jsxFileName$
|
|
7295
|
+
const _excluded$q = ["count", "maxCount", "css"];
|
|
7296
|
+
var _jsxFileName$R = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/FormGroup/FormGroup.js";
|
|
7225
7297
|
const formLabelClassStyle = {
|
|
7226
7298
|
alignItems: 'start !important',
|
|
7227
7299
|
'& > div': {
|
|
@@ -7324,7 +7396,7 @@ const FormGroup = _ref => {
|
|
|
7324
7396
|
maxCount,
|
|
7325
7397
|
css
|
|
7326
7398
|
} = _ref,
|
|
7327
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7399
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
7328
7400
|
const withCounter = Boolean(count || maxCount);
|
|
7329
7401
|
return /*#__PURE__*/React__default.createElement(ConditionalWrapper, {
|
|
7330
7402
|
condition: withCounter,
|
|
@@ -7333,7 +7405,7 @@ const FormGroup = _ref => {
|
|
|
7333
7405
|
css: css,
|
|
7334
7406
|
__self: undefined,
|
|
7335
7407
|
__source: {
|
|
7336
|
-
fileName: _jsxFileName$
|
|
7408
|
+
fileName: _jsxFileName$R,
|
|
7337
7409
|
lineNumber: 115,
|
|
7338
7410
|
columnNumber: 9
|
|
7339
7411
|
}
|
|
@@ -7346,14 +7418,14 @@ const FormGroup = _ref => {
|
|
|
7346
7418
|
},
|
|
7347
7419
|
__self: undefined,
|
|
7348
7420
|
__source: {
|
|
7349
|
-
fileName: _jsxFileName$
|
|
7421
|
+
fileName: _jsxFileName$R,
|
|
7350
7422
|
lineNumber: 116,
|
|
7351
7423
|
columnNumber: 11
|
|
7352
7424
|
}
|
|
7353
7425
|
}, count, "/", maxCount), children),
|
|
7354
7426
|
__self: undefined,
|
|
7355
7427
|
__source: {
|
|
7356
|
-
fileName: _jsxFileName$
|
|
7428
|
+
fileName: _jsxFileName$R,
|
|
7357
7429
|
lineNumber: 112,
|
|
7358
7430
|
columnNumber: 5
|
|
7359
7431
|
}
|
|
@@ -7363,7 +7435,7 @@ const FormGroup = _ref => {
|
|
|
7363
7435
|
}, props, {
|
|
7364
7436
|
__self: undefined,
|
|
7365
7437
|
__source: {
|
|
7366
|
-
fileName: _jsxFileName$
|
|
7438
|
+
fileName: _jsxFileName$R,
|
|
7367
7439
|
lineNumber: 123,
|
|
7368
7440
|
columnNumber: 7
|
|
7369
7441
|
}
|
|
@@ -7371,8 +7443,8 @@ const FormGroup = _ref => {
|
|
|
7371
7443
|
};
|
|
7372
7444
|
FormGroup.displayName = 'FormGroup';
|
|
7373
7445
|
|
|
7374
|
-
const _excluded$
|
|
7375
|
-
var _jsxFileName$
|
|
7446
|
+
const _excluded$p = ["children", "htmlFor", "variant", "variants", "tooltipLabel", "count", "maxCount", "labelCss"];
|
|
7447
|
+
var _jsxFileName$Q = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/FormLabel/Label.js";
|
|
7376
7448
|
const StyledLabel$1 = styled(LabelPrimitive.Root, Text$1, {
|
|
7377
7449
|
display: 'inline-block',
|
|
7378
7450
|
fontSize: '$label',
|
|
@@ -7404,13 +7476,13 @@ const FormLabel = _ref => {
|
|
|
7404
7476
|
maxCount,
|
|
7405
7477
|
labelCss
|
|
7406
7478
|
} = _ref,
|
|
7407
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7479
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
7408
7480
|
return /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
7409
7481
|
justify: "between",
|
|
7410
7482
|
className: "form-label",
|
|
7411
7483
|
__self: undefined,
|
|
7412
7484
|
__source: {
|
|
7413
|
-
fileName: _jsxFileName$
|
|
7485
|
+
fileName: _jsxFileName$Q,
|
|
7414
7486
|
lineNumber: 36,
|
|
7415
7487
|
columnNumber: 5
|
|
7416
7488
|
}
|
|
@@ -7420,7 +7492,7 @@ const FormLabel = _ref => {
|
|
|
7420
7492
|
}, props, {
|
|
7421
7493
|
__self: undefined,
|
|
7422
7494
|
__source: {
|
|
7423
|
-
fileName: _jsxFileName$
|
|
7495
|
+
fileName: _jsxFileName$Q,
|
|
7424
7496
|
lineNumber: 37,
|
|
7425
7497
|
columnNumber: 7
|
|
7426
7498
|
}
|
|
@@ -7430,7 +7502,7 @@ const FormLabel = _ref => {
|
|
|
7430
7502
|
css: labelCss,
|
|
7431
7503
|
__self: undefined,
|
|
7432
7504
|
__source: {
|
|
7433
|
-
fileName: _jsxFileName$
|
|
7505
|
+
fileName: _jsxFileName$Q,
|
|
7434
7506
|
lineNumber: 38,
|
|
7435
7507
|
columnNumber: 9
|
|
7436
7508
|
}
|
|
@@ -7445,7 +7517,7 @@ const FormLabel = _ref => {
|
|
|
7445
7517
|
},
|
|
7446
7518
|
__self: undefined,
|
|
7447
7519
|
__source: {
|
|
7448
|
-
fileName: _jsxFileName$
|
|
7520
|
+
fileName: _jsxFileName$Q,
|
|
7449
7521
|
lineNumber: 42,
|
|
7450
7522
|
columnNumber: 11
|
|
7451
7523
|
}
|
|
@@ -7453,14 +7525,14 @@ const FormLabel = _ref => {
|
|
|
7453
7525
|
label: tooltipLabel,
|
|
7454
7526
|
__self: undefined,
|
|
7455
7527
|
__source: {
|
|
7456
|
-
fileName: _jsxFileName$
|
|
7528
|
+
fileName: _jsxFileName$Q,
|
|
7457
7529
|
lineNumber: 56,
|
|
7458
7530
|
columnNumber: 11
|
|
7459
7531
|
}
|
|
7460
7532
|
}, /*#__PURE__*/React__default.createElement(StyledHelpIcon, {
|
|
7461
7533
|
__self: undefined,
|
|
7462
7534
|
__source: {
|
|
7463
|
-
fileName: _jsxFileName$
|
|
7535
|
+
fileName: _jsxFileName$Q,
|
|
7464
7536
|
lineNumber: 57,
|
|
7465
7537
|
columnNumber: 13
|
|
7466
7538
|
}
|
|
@@ -7469,7 +7541,7 @@ const FormLabel = _ref => {
|
|
|
7469
7541
|
color: "disable",
|
|
7470
7542
|
__self: undefined,
|
|
7471
7543
|
__source: {
|
|
7472
|
-
fileName: _jsxFileName$
|
|
7544
|
+
fileName: _jsxFileName$Q,
|
|
7473
7545
|
lineNumber: 62,
|
|
7474
7546
|
columnNumber: 9
|
|
7475
7547
|
}
|
|
@@ -7488,8 +7560,8 @@ FormLabel.defaultProps = {
|
|
|
7488
7560
|
};
|
|
7489
7561
|
FormLabel.displayName = 'FormLabel';
|
|
7490
7562
|
|
|
7491
|
-
const _excluded$
|
|
7492
|
-
var _jsxFileName$
|
|
7563
|
+
const _excluded$o = ["children", "error", "errorMessage"];
|
|
7564
|
+
var _jsxFileName$P = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/FormHelper/Helper.js";
|
|
7493
7565
|
const StyledHelper = styled(Text$1, {
|
|
7494
7566
|
display: 'inline-block',
|
|
7495
7567
|
color: '$textSecondary',
|
|
@@ -7507,7 +7579,7 @@ const FormHelper = _ref => {
|
|
|
7507
7579
|
error,
|
|
7508
7580
|
errorMessage
|
|
7509
7581
|
} = _ref,
|
|
7510
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7582
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
7511
7583
|
const errorByMessage = !!errorMessage;
|
|
7512
7584
|
if (error === undefined && errorByMessage) {
|
|
7513
7585
|
return /*#__PURE__*/React__default.createElement(StyledHelper, _extends({
|
|
@@ -7517,7 +7589,7 @@ const FormHelper = _ref => {
|
|
|
7517
7589
|
}, props, {
|
|
7518
7590
|
__self: undefined,
|
|
7519
7591
|
__source: {
|
|
7520
|
-
fileName: _jsxFileName$
|
|
7592
|
+
fileName: _jsxFileName$P,
|
|
7521
7593
|
lineNumber: 22,
|
|
7522
7594
|
columnNumber: 7
|
|
7523
7595
|
}
|
|
@@ -7533,7 +7605,7 @@ const FormHelper = _ref => {
|
|
|
7533
7605
|
}, props, {
|
|
7534
7606
|
__self: undefined,
|
|
7535
7607
|
__source: {
|
|
7536
|
-
fileName: _jsxFileName$
|
|
7608
|
+
fileName: _jsxFileName$P,
|
|
7537
7609
|
lineNumber: 31,
|
|
7538
7610
|
columnNumber: 5
|
|
7539
7611
|
}
|
|
@@ -7544,7 +7616,7 @@ FormHelper.propTypes = {
|
|
|
7544
7616
|
};
|
|
7545
7617
|
FormHelper.displayName = 'FormHelper';
|
|
7546
7618
|
|
|
7547
|
-
var _jsxFileName$
|
|
7619
|
+
var _jsxFileName$O = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/CheckboxGroup.js";
|
|
7548
7620
|
const CheckboxContext = /*#__PURE__*/createContext();
|
|
7549
7621
|
const CheckboxGroup = ({
|
|
7550
7622
|
children,
|
|
@@ -7585,7 +7657,7 @@ const CheckboxGroup = ({
|
|
|
7585
7657
|
value: values,
|
|
7586
7658
|
__self: undefined,
|
|
7587
7659
|
__source: {
|
|
7588
|
-
fileName: _jsxFileName$
|
|
7660
|
+
fileName: _jsxFileName$O,
|
|
7589
7661
|
lineNumber: 35,
|
|
7590
7662
|
columnNumber: 5
|
|
7591
7663
|
}
|
|
@@ -7602,7 +7674,7 @@ CheckboxGroup.defaultProps = {
|
|
|
7602
7674
|
};
|
|
7603
7675
|
CheckboxGroup.displayName = 'CheckboxGroup';
|
|
7604
7676
|
|
|
7605
|
-
var _jsxFileName$
|
|
7677
|
+
var _jsxFileName$N = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/CheckOutline.js";
|
|
7606
7678
|
const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
7607
7679
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7608
7680
|
xmlSpace: "preserve",
|
|
@@ -7619,7 +7691,7 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
|
|
|
7619
7691
|
}, props, {
|
|
7620
7692
|
__self: undefined,
|
|
7621
7693
|
__source: {
|
|
7622
|
-
fileName: _jsxFileName$
|
|
7694
|
+
fileName: _jsxFileName$N,
|
|
7623
7695
|
lineNumber: 4,
|
|
7624
7696
|
columnNumber: 3
|
|
7625
7697
|
}
|
|
@@ -7631,7 +7703,7 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
|
|
|
7631
7703
|
},
|
|
7632
7704
|
__self: undefined,
|
|
7633
7705
|
__source: {
|
|
7634
|
-
fileName: _jsxFileName$
|
|
7706
|
+
fileName: _jsxFileName$N,
|
|
7635
7707
|
lineNumber: 19,
|
|
7636
7708
|
columnNumber: 5
|
|
7637
7709
|
}
|
|
@@ -7643,13 +7715,13 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
|
|
|
7643
7715
|
},
|
|
7644
7716
|
__self: undefined,
|
|
7645
7717
|
__source: {
|
|
7646
|
-
fileName: _jsxFileName$
|
|
7718
|
+
fileName: _jsxFileName$N,
|
|
7647
7719
|
lineNumber: 26,
|
|
7648
7720
|
columnNumber: 5
|
|
7649
7721
|
}
|
|
7650
7722
|
}));
|
|
7651
7723
|
|
|
7652
|
-
var _jsxFileName$
|
|
7724
|
+
var _jsxFileName$M = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/MinusOutline.js";
|
|
7653
7725
|
const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
7654
7726
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7655
7727
|
xmlSpace: "preserve",
|
|
@@ -7666,7 +7738,7 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
|
|
|
7666
7738
|
}, props, {
|
|
7667
7739
|
__self: undefined,
|
|
7668
7740
|
__source: {
|
|
7669
|
-
fileName: _jsxFileName$
|
|
7741
|
+
fileName: _jsxFileName$M,
|
|
7670
7742
|
lineNumber: 4,
|
|
7671
7743
|
columnNumber: 3
|
|
7672
7744
|
}
|
|
@@ -7678,7 +7750,7 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
|
|
|
7678
7750
|
},
|
|
7679
7751
|
__self: undefined,
|
|
7680
7752
|
__source: {
|
|
7681
|
-
fileName: _jsxFileName$
|
|
7753
|
+
fileName: _jsxFileName$M,
|
|
7682
7754
|
lineNumber: 19,
|
|
7683
7755
|
columnNumber: 5
|
|
7684
7756
|
}
|
|
@@ -7690,14 +7762,14 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
|
|
|
7690
7762
|
d: "M14.31 10.41H3.9v-2.6h10.41z",
|
|
7691
7763
|
__self: undefined,
|
|
7692
7764
|
__source: {
|
|
7693
|
-
fileName: _jsxFileName$
|
|
7765
|
+
fileName: _jsxFileName$M,
|
|
7694
7766
|
lineNumber: 26,
|
|
7695
7767
|
columnNumber: 5
|
|
7696
7768
|
}
|
|
7697
7769
|
}));
|
|
7698
7770
|
|
|
7699
|
-
const _excluded$
|
|
7700
|
-
var _jsxFileName$
|
|
7771
|
+
const _excluded$n = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
|
|
7772
|
+
var _jsxFileName$L = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/InputCheckbox.js";
|
|
7701
7773
|
const StyledIndicator$2 = styled(CheckboxPrimitive.Indicator, {
|
|
7702
7774
|
alignItems: 'center',
|
|
7703
7775
|
display: 'flex',
|
|
@@ -7755,7 +7827,7 @@ const Checkbox = _ref => {
|
|
|
7755
7827
|
index,
|
|
7756
7828
|
value
|
|
7757
7829
|
} = _ref,
|
|
7758
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7830
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
7759
7831
|
const context = useContext(CheckboxContext);
|
|
7760
7832
|
const [isChecked, setChecked] = useState(false);
|
|
7761
7833
|
useEffect(() => {
|
|
@@ -7776,28 +7848,28 @@ const Checkbox = _ref => {
|
|
|
7776
7848
|
}, props, {
|
|
7777
7849
|
__self: undefined,
|
|
7778
7850
|
__source: {
|
|
7779
|
-
fileName: _jsxFileName$
|
|
7851
|
+
fileName: _jsxFileName$L,
|
|
7780
7852
|
lineNumber: 64,
|
|
7781
7853
|
columnNumber: 5
|
|
7782
7854
|
}
|
|
7783
7855
|
}), /*#__PURE__*/React__default.createElement(StyledIndicator$2, {
|
|
7784
7856
|
__self: undefined,
|
|
7785
7857
|
__source: {
|
|
7786
|
-
fileName: _jsxFileName$
|
|
7858
|
+
fileName: _jsxFileName$L,
|
|
7787
7859
|
lineNumber: 77,
|
|
7788
7860
|
columnNumber: 7
|
|
7789
7861
|
}
|
|
7790
7862
|
}, indeterminate ? /*#__PURE__*/React__default.createElement(SvgMinusOutline, {
|
|
7791
7863
|
__self: undefined,
|
|
7792
7864
|
__source: {
|
|
7793
|
-
fileName: _jsxFileName$
|
|
7865
|
+
fileName: _jsxFileName$L,
|
|
7794
7866
|
lineNumber: 77,
|
|
7795
7867
|
columnNumber: 41
|
|
7796
7868
|
}
|
|
7797
7869
|
}) : /*#__PURE__*/React__default.createElement(CheckOutline$1, {
|
|
7798
7870
|
__self: undefined,
|
|
7799
7871
|
__source: {
|
|
7800
|
-
fileName: _jsxFileName$
|
|
7872
|
+
fileName: _jsxFileName$L,
|
|
7801
7873
|
lineNumber: 77,
|
|
7802
7874
|
columnNumber: 60
|
|
7803
7875
|
}
|
|
@@ -7810,14 +7882,14 @@ const InputCheckbox = _ref2 => {
|
|
|
7810
7882
|
gap: 4,
|
|
7811
7883
|
__self: undefined,
|
|
7812
7884
|
__source: {
|
|
7813
|
-
fileName: _jsxFileName$
|
|
7885
|
+
fileName: _jsxFileName$L,
|
|
7814
7886
|
lineNumber: 84,
|
|
7815
7887
|
columnNumber: 5
|
|
7816
7888
|
}
|
|
7817
7889
|
}, /*#__PURE__*/React__default.createElement(Checkbox, _extends({}, props, {
|
|
7818
7890
|
__self: undefined,
|
|
7819
7891
|
__source: {
|
|
7820
|
-
fileName: _jsxFileName$
|
|
7892
|
+
fileName: _jsxFileName$L,
|
|
7821
7893
|
lineNumber: 85,
|
|
7822
7894
|
columnNumber: 7
|
|
7823
7895
|
}
|
|
@@ -7833,14 +7905,14 @@ const InputCheckbox = _ref2 => {
|
|
|
7833
7905
|
},
|
|
7834
7906
|
__self: undefined,
|
|
7835
7907
|
__source: {
|
|
7836
|
-
fileName: _jsxFileName$
|
|
7908
|
+
fileName: _jsxFileName$L,
|
|
7837
7909
|
lineNumber: 86,
|
|
7838
7910
|
columnNumber: 7
|
|
7839
7911
|
}
|
|
7840
7912
|
}, props.label)) : /*#__PURE__*/React__default.createElement(Checkbox, _extends({}, props, {
|
|
7841
7913
|
__self: undefined,
|
|
7842
7914
|
__source: {
|
|
7843
|
-
fileName: _jsxFileName$
|
|
7915
|
+
fileName: _jsxFileName$L,
|
|
7844
7916
|
lineNumber: 101,
|
|
7845
7917
|
columnNumber: 5
|
|
7846
7918
|
}
|
|
@@ -7857,8 +7929,8 @@ InputCheckbox.propTypes = {
|
|
|
7857
7929
|
};
|
|
7858
7930
|
InputCheckbox.displayName = 'InputCheckbox';
|
|
7859
7931
|
|
|
7860
|
-
const _excluded$
|
|
7861
|
-
var _jsxFileName$
|
|
7932
|
+
const _excluded$m = ["children", "size"];
|
|
7933
|
+
var _jsxFileName$K = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputGroup/InputGroup.js";
|
|
7862
7934
|
const InputGroupStyle = styled('div', {
|
|
7863
7935
|
display: 'flex',
|
|
7864
7936
|
width: '100%',
|
|
@@ -7997,7 +8069,7 @@ const InputGroup = _ref => {
|
|
|
7997
8069
|
children,
|
|
7998
8070
|
size = 'lg'
|
|
7999
8071
|
} = _ref,
|
|
8000
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8072
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
8001
8073
|
const isLetter = children.some(child => child.type.name === 'InputPrefix' || child.type.name === 'InputSuffix' || child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
|
|
8002
8074
|
const isElement = children.some(child => child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
|
|
8003
8075
|
const clone = children.map((child, index) => {
|
|
@@ -8020,7 +8092,7 @@ const InputGroup = _ref => {
|
|
|
8020
8092
|
isElement: isElement,
|
|
8021
8093
|
__self: undefined,
|
|
8022
8094
|
__source: {
|
|
8023
|
-
fileName: _jsxFileName$
|
|
8095
|
+
fileName: _jsxFileName$K,
|
|
8024
8096
|
lineNumber: 169,
|
|
8025
8097
|
columnNumber: 10
|
|
8026
8098
|
}
|
|
@@ -8196,8 +8268,8 @@ InputSuffix.propTypes = {
|
|
|
8196
8268
|
children: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
|
|
8197
8269
|
};
|
|
8198
8270
|
|
|
8199
|
-
const _excluded$
|
|
8200
|
-
var _jsxFileName$
|
|
8271
|
+
const _excluded$l = ["disabled", "readOnly"];
|
|
8272
|
+
var _jsxFileName$J = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputText/InputText.js";
|
|
8201
8273
|
const disabledStyle = {
|
|
8202
8274
|
backgroundColor: '$formDisable',
|
|
8203
8275
|
color: '$textDisable',
|
|
@@ -8370,7 +8442,7 @@ const InputText = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
8370
8442
|
disabled,
|
|
8371
8443
|
readOnly
|
|
8372
8444
|
} = _ref,
|
|
8373
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8445
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
8374
8446
|
return /*#__PURE__*/React__default.createElement(StyledInput$1, _extends({
|
|
8375
8447
|
ref: ref,
|
|
8376
8448
|
disabled: disabled,
|
|
@@ -8380,7 +8452,7 @@ const InputText = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
8380
8452
|
}, props, {
|
|
8381
8453
|
__self: undefined,
|
|
8382
8454
|
__source: {
|
|
8383
|
-
fileName: _jsxFileName$
|
|
8455
|
+
fileName: _jsxFileName$J,
|
|
8384
8456
|
lineNumber: 185,
|
|
8385
8457
|
columnNumber: 3
|
|
8386
8458
|
}
|
|
@@ -8398,8 +8470,8 @@ InputText.propTypes = {
|
|
|
8398
8470
|
};
|
|
8399
8471
|
InputText.displayName = 'InputText';
|
|
8400
8472
|
|
|
8401
|
-
const _excluded$
|
|
8402
|
-
var _jsxFileName$
|
|
8473
|
+
const _excluded$k = ["disabled", "readOnly"];
|
|
8474
|
+
var _jsxFileName$I = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputTextArea/InputTextArea.js";
|
|
8403
8475
|
const StyledTextArea = styled(StyledInput$1, {
|
|
8404
8476
|
variants: {
|
|
8405
8477
|
size: {
|
|
@@ -8420,7 +8492,7 @@ const InputTextArea = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
8420
8492
|
disabled,
|
|
8421
8493
|
readOnly
|
|
8422
8494
|
} = _ref,
|
|
8423
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8495
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
8424
8496
|
const textareaRef = useRef(null);
|
|
8425
8497
|
useEffect(() => {
|
|
8426
8498
|
if (textareaRef.current) {
|
|
@@ -8454,7 +8526,7 @@ const InputTextArea = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
8454
8526
|
}, props, {
|
|
8455
8527
|
__self: undefined,
|
|
8456
8528
|
__source: {
|
|
8457
|
-
fileName: _jsxFileName$
|
|
8529
|
+
fileName: _jsxFileName$I,
|
|
8458
8530
|
lineNumber: 51,
|
|
8459
8531
|
columnNumber: 5
|
|
8460
8532
|
}
|
|
@@ -8477,21 +8549,21 @@ InputTextArea.defaultProps = {
|
|
|
8477
8549
|
|
|
8478
8550
|
const InputRadioContext = /*#__PURE__*/React__default.createContext();
|
|
8479
8551
|
|
|
8480
|
-
var _jsxFileName$
|
|
8552
|
+
var _jsxFileName$H = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadioGroup.js";
|
|
8481
8553
|
const RadioGroup = styled(RadioGroupPrimitive.Root, Flex$1);
|
|
8482
8554
|
function InputRadioGroup(props) {
|
|
8483
8555
|
return (props == null ? void 0 : props.children) && /*#__PURE__*/React__default.createElement(InputRadioContext.Provider, {
|
|
8484
8556
|
value: props,
|
|
8485
8557
|
__self: this,
|
|
8486
8558
|
__source: {
|
|
8487
|
-
fileName: _jsxFileName$
|
|
8559
|
+
fileName: _jsxFileName$H,
|
|
8488
8560
|
lineNumber: 13,
|
|
8489
8561
|
columnNumber: 7
|
|
8490
8562
|
}
|
|
8491
8563
|
}, /*#__PURE__*/React__default.createElement(RadioGroup, _extends({}, props, {
|
|
8492
8564
|
__self: this,
|
|
8493
8565
|
__source: {
|
|
8494
|
-
fileName: _jsxFileName$
|
|
8566
|
+
fileName: _jsxFileName$H,
|
|
8495
8567
|
lineNumber: 14,
|
|
8496
8568
|
columnNumber: 9
|
|
8497
8569
|
}
|
|
@@ -8510,8 +8582,8 @@ InputRadioGroup.propTypes = {
|
|
|
8510
8582
|
};
|
|
8511
8583
|
InputRadioGroup.displayName = 'InputRadioGroup';
|
|
8512
8584
|
|
|
8513
|
-
const _excluded$
|
|
8514
|
-
var _jsxFileName$
|
|
8585
|
+
const _excluded$j = ["id", "disabled", "css", "inputType", "inputProps", "description", "readOnly"];
|
|
8586
|
+
var _jsxFileName$G = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadio.js";
|
|
8515
8587
|
const INDICATOR_BASE_STYLES = {
|
|
8516
8588
|
alignItems: 'center',
|
|
8517
8589
|
display: 'flex',
|
|
@@ -8676,7 +8748,7 @@ const InputRadio = _ref => {
|
|
|
8676
8748
|
description,
|
|
8677
8749
|
readOnly
|
|
8678
8750
|
} = _ref,
|
|
8679
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8751
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
8680
8752
|
function renderInputType(type, checkedValue, onValueChange) {
|
|
8681
8753
|
switch (type) {
|
|
8682
8754
|
case 'number':
|
|
@@ -8689,7 +8761,7 @@ const InputRadio = _ref => {
|
|
|
8689
8761
|
asChild: true,
|
|
8690
8762
|
__self: this,
|
|
8691
8763
|
__source: {
|
|
8692
|
-
fileName: _jsxFileName$
|
|
8764
|
+
fileName: _jsxFileName$G,
|
|
8693
8765
|
lineNumber: 171,
|
|
8694
8766
|
columnNumber: 11
|
|
8695
8767
|
}
|
|
@@ -8705,7 +8777,7 @@ const InputRadio = _ref => {
|
|
|
8705
8777
|
asChild: true,
|
|
8706
8778
|
__self: this,
|
|
8707
8779
|
__source: {
|
|
8708
|
-
fileName: _jsxFileName$
|
|
8780
|
+
fileName: _jsxFileName$G,
|
|
8709
8781
|
lineNumber: 184,
|
|
8710
8782
|
columnNumber: 11
|
|
8711
8783
|
}
|
|
@@ -8724,7 +8796,7 @@ const InputRadio = _ref => {
|
|
|
8724
8796
|
},
|
|
8725
8797
|
__self: this,
|
|
8726
8798
|
__source: {
|
|
8727
|
-
fileName: _jsxFileName$
|
|
8799
|
+
fileName: _jsxFileName$G,
|
|
8728
8800
|
lineNumber: 198,
|
|
8729
8801
|
columnNumber: 11
|
|
8730
8802
|
}
|
|
@@ -8734,7 +8806,7 @@ const InputRadio = _ref => {
|
|
|
8734
8806
|
return /*#__PURE__*/React__default.createElement(InputRadioContext.Consumer, {
|
|
8735
8807
|
__self: undefined,
|
|
8736
8808
|
__source: {
|
|
8737
|
-
fileName: _jsxFileName$
|
|
8809
|
+
fileName: _jsxFileName$G,
|
|
8738
8810
|
lineNumber: 217,
|
|
8739
8811
|
columnNumber: 5
|
|
8740
8812
|
}
|
|
@@ -8751,7 +8823,7 @@ const InputRadio = _ref => {
|
|
|
8751
8823
|
outlined: outlined,
|
|
8752
8824
|
__self: undefined,
|
|
8753
8825
|
__source: {
|
|
8754
|
-
fileName: _jsxFileName$
|
|
8826
|
+
fileName: _jsxFileName$G,
|
|
8755
8827
|
lineNumber: 222,
|
|
8756
8828
|
columnNumber: 11
|
|
8757
8829
|
}
|
|
@@ -8766,7 +8838,7 @@ const InputRadio = _ref => {
|
|
|
8766
8838
|
css: css,
|
|
8767
8839
|
__self: undefined,
|
|
8768
8840
|
__source: {
|
|
8769
|
-
fileName: _jsxFileName$
|
|
8841
|
+
fileName: _jsxFileName$G,
|
|
8770
8842
|
lineNumber: 223,
|
|
8771
8843
|
columnNumber: 13
|
|
8772
8844
|
}
|
|
@@ -8775,7 +8847,7 @@ const InputRadio = _ref => {
|
|
|
8775
8847
|
gap: 4,
|
|
8776
8848
|
__self: undefined,
|
|
8777
8849
|
__source: {
|
|
8778
|
-
fileName: _jsxFileName$
|
|
8850
|
+
fileName: _jsxFileName$G,
|
|
8779
8851
|
lineNumber: 233,
|
|
8780
8852
|
columnNumber: 15
|
|
8781
8853
|
}
|
|
@@ -8786,14 +8858,14 @@ const InputRadio = _ref => {
|
|
|
8786
8858
|
}, props, {
|
|
8787
8859
|
__self: undefined,
|
|
8788
8860
|
__source: {
|
|
8789
|
-
fileName: _jsxFileName$
|
|
8861
|
+
fileName: _jsxFileName$G,
|
|
8790
8862
|
lineNumber: 234,
|
|
8791
8863
|
columnNumber: 17
|
|
8792
8864
|
}
|
|
8793
8865
|
}), /*#__PURE__*/React__default.createElement(StyledIndicator$1, {
|
|
8794
8866
|
__self: undefined,
|
|
8795
8867
|
__source: {
|
|
8796
|
-
fileName: _jsxFileName$
|
|
8868
|
+
fileName: _jsxFileName$G,
|
|
8797
8869
|
lineNumber: 235,
|
|
8798
8870
|
columnNumber: 19
|
|
8799
8871
|
}
|
|
@@ -8805,7 +8877,7 @@ const InputRadio = _ref => {
|
|
|
8805
8877
|
},
|
|
8806
8878
|
__self: undefined,
|
|
8807
8879
|
__source: {
|
|
8808
|
-
fileName: _jsxFileName$
|
|
8880
|
+
fileName: _jsxFileName$G,
|
|
8809
8881
|
lineNumber: 240,
|
|
8810
8882
|
columnNumber: 17
|
|
8811
8883
|
}
|
|
@@ -10879,8 +10951,8 @@ var NumberFormat = /*@__PURE__*/function (superclass) {
|
|
|
10879
10951
|
}(React__default.Component);
|
|
10880
10952
|
NumberFormat.defaultProps = defaultProps;
|
|
10881
10953
|
|
|
10882
|
-
const _excluded$
|
|
10883
|
-
var _jsxFileName$
|
|
10954
|
+
const _excluded$i = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled", "control", "name", "maxValueLength", "maxLength", "thousandSeparator"];
|
|
10955
|
+
var _jsxFileName$F = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputNumber/InputNumber.js";
|
|
10884
10956
|
const StyledInput = styled(NumberFormat, {
|
|
10885
10957
|
// Reset
|
|
10886
10958
|
appearance: 'none',
|
|
@@ -11075,7 +11147,7 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
11075
11147
|
maxLength,
|
|
11076
11148
|
thousandSeparator
|
|
11077
11149
|
} = _ref,
|
|
11078
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
11150
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
11079
11151
|
return /*#__PURE__*/React__default.createElement(ConditionalWrapper, {
|
|
11080
11152
|
condition: Boolean(control),
|
|
11081
11153
|
wrapper: child => /*#__PURE__*/React__default.createElement(Controller, {
|
|
@@ -11093,14 +11165,14 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
11093
11165
|
}),
|
|
11094
11166
|
__self: undefined,
|
|
11095
11167
|
__source: {
|
|
11096
|
-
fileName: _jsxFileName$
|
|
11168
|
+
fileName: _jsxFileName$F,
|
|
11097
11169
|
lineNumber: 225,
|
|
11098
11170
|
columnNumber: 9
|
|
11099
11171
|
}
|
|
11100
11172
|
}),
|
|
11101
11173
|
__self: undefined,
|
|
11102
11174
|
__source: {
|
|
11103
|
-
fileName: _jsxFileName$
|
|
11175
|
+
fileName: _jsxFileName$F,
|
|
11104
11176
|
lineNumber: 222,
|
|
11105
11177
|
columnNumber: 5
|
|
11106
11178
|
}
|
|
@@ -11118,7 +11190,7 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
11118
11190
|
}, props, {
|
|
11119
11191
|
__self: undefined,
|
|
11120
11192
|
__source: {
|
|
11121
|
-
fileName: _jsxFileName$
|
|
11193
|
+
fileName: _jsxFileName$F,
|
|
11122
11194
|
lineNumber: 234,
|
|
11123
11195
|
columnNumber: 7
|
|
11124
11196
|
}
|
|
@@ -11140,6 +11212,8 @@ InputNumber.defaultProps = {
|
|
|
11140
11212
|
InputNumber.name = 'InputText';
|
|
11141
11213
|
InputNumber.displayName = 'InputNumber';
|
|
11142
11214
|
|
|
11215
|
+
const _excluded$h = ["className", "children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"];
|
|
11216
|
+
var _jsxFileName$E = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/tag/Tag.js";
|
|
11143
11217
|
const TagWrapper$4 = styled('div', {
|
|
11144
11218
|
boxSizing: 'border-box',
|
|
11145
11219
|
listStyle: 'none',
|
|
@@ -11182,10 +11256,6 @@ const TagWrapper$4 = styled('div', {
|
|
|
11182
11256
|
}
|
|
11183
11257
|
},
|
|
11184
11258
|
type: {
|
|
11185
|
-
default: {
|
|
11186
|
-
background: '$bgGray',
|
|
11187
|
-
color: '$textPrimary'
|
|
11188
|
-
},
|
|
11189
11259
|
success: {
|
|
11190
11260
|
background: '$bgSuccess',
|
|
11191
11261
|
color: '$textGreen'
|
|
@@ -11235,8 +11305,8 @@ const StyledIconLeft$3 = styled('div', {
|
|
|
11235
11305
|
alignItems: 'center',
|
|
11236
11306
|
color: 'inherit'
|
|
11237
11307
|
});
|
|
11238
|
-
const Tag = /*#__PURE__*/React__default.forwardRef((
|
|
11239
|
-
|
|
11308
|
+
const Tag = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
11309
|
+
let {
|
|
11240
11310
|
children,
|
|
11241
11311
|
onClick,
|
|
11242
11312
|
size,
|
|
@@ -11246,35 +11316,71 @@ const Tag = /*#__PURE__*/React__default.forwardRef((_a, ref) => {
|
|
|
11246
11316
|
type,
|
|
11247
11317
|
onRemove,
|
|
11248
11318
|
readOnly
|
|
11249
|
-
} =
|
|
11250
|
-
props =
|
|
11251
|
-
return
|
|
11319
|
+
} = _ref,
|
|
11320
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
11321
|
+
return /*#__PURE__*/React__default.createElement(TagWrapper$4, _extends({
|
|
11252
11322
|
ref: ref,
|
|
11253
11323
|
onClick: onClick,
|
|
11254
11324
|
size: size,
|
|
11255
11325
|
disabled: disabled,
|
|
11256
11326
|
type: type,
|
|
11257
|
-
readOnly: readOnly
|
|
11327
|
+
readOnly: readOnly,
|
|
11328
|
+
css: Object.assign({}, props.css)
|
|
11258
11329
|
}, props, {
|
|
11259
|
-
|
|
11260
|
-
|
|
11261
|
-
|
|
11262
|
-
|
|
11263
|
-
|
|
11264
|
-
|
|
11265
|
-
|
|
11266
|
-
|
|
11267
|
-
|
|
11268
|
-
|
|
11269
|
-
|
|
11270
|
-
|
|
11271
|
-
|
|
11272
|
-
|
|
11273
|
-
|
|
11274
|
-
|
|
11275
|
-
|
|
11276
|
-
|
|
11330
|
+
__self: undefined,
|
|
11331
|
+
__source: {
|
|
11332
|
+
fileName: _jsxFileName$E,
|
|
11333
|
+
lineNumber: 84,
|
|
11334
|
+
columnNumber: 7
|
|
11335
|
+
}
|
|
11336
|
+
}), icon !== undefined ? /*#__PURE__*/React__default.createElement(StyledIconLeft$3, {
|
|
11337
|
+
__self: undefined,
|
|
11338
|
+
__source: {
|
|
11339
|
+
fileName: _jsxFileName$E,
|
|
11340
|
+
lineNumber: 94,
|
|
11341
|
+
columnNumber: 31
|
|
11342
|
+
}
|
|
11343
|
+
}, icon) : null, /*#__PURE__*/React__default.createElement(TagComponent$1, {
|
|
11344
|
+
__self: undefined,
|
|
11345
|
+
__source: {
|
|
11346
|
+
fileName: _jsxFileName$E,
|
|
11347
|
+
lineNumber: 95,
|
|
11348
|
+
columnNumber: 9
|
|
11349
|
+
}
|
|
11350
|
+
}, children), isRemovable ? /*#__PURE__*/React__default.createElement(StyledIconRight$1, {
|
|
11351
|
+
disabled: disabled,
|
|
11352
|
+
onClick: onRemove,
|
|
11353
|
+
readOnly: readOnly,
|
|
11354
|
+
__self: undefined,
|
|
11355
|
+
__source: {
|
|
11356
|
+
fileName: _jsxFileName$E,
|
|
11357
|
+
lineNumber: 97,
|
|
11358
|
+
columnNumber: 11
|
|
11359
|
+
}
|
|
11360
|
+
}, /*#__PURE__*/React__default.createElement(CloseOutline, {
|
|
11361
|
+
size: 16,
|
|
11362
|
+
color: colors$8.iconSecondary,
|
|
11363
|
+
style: {
|
|
11364
|
+
verticalAlign: 'middle'
|
|
11365
|
+
},
|
|
11366
|
+
__self: undefined,
|
|
11367
|
+
__source: {
|
|
11368
|
+
fileName: _jsxFileName$E,
|
|
11369
|
+
lineNumber: 98,
|
|
11370
|
+
columnNumber: 13
|
|
11371
|
+
}
|
|
11372
|
+
})) : null);
|
|
11277
11373
|
});
|
|
11374
|
+
Tag.propTypes = {
|
|
11375
|
+
size: PropTypes.string,
|
|
11376
|
+
disabled: PropTypes.bool,
|
|
11377
|
+
type: PropTypes.string,
|
|
11378
|
+
icon: PropTypes.element,
|
|
11379
|
+
isRemovable: PropTypes.bool,
|
|
11380
|
+
onRemove: PropTypes.func,
|
|
11381
|
+
onClick: PropTypes.func,
|
|
11382
|
+
readOnly: PropTypes.bool
|
|
11383
|
+
};
|
|
11278
11384
|
Tag.defaultProps = {
|
|
11279
11385
|
size: 'sm',
|
|
11280
11386
|
isRemovable: false,
|
|
@@ -19710,7 +19816,6 @@ function InputDatePicker({
|
|
|
19710
19816
|
onClose,
|
|
19711
19817
|
mobileOnly,
|
|
19712
19818
|
desktopOnly,
|
|
19713
|
-
advanceOptions,
|
|
19714
19819
|
drawerCss,
|
|
19715
19820
|
drawerContentCss
|
|
19716
19821
|
}) {
|
|
@@ -19802,22 +19907,20 @@ function InputDatePicker({
|
|
|
19802
19907
|
}
|
|
19803
19908
|
};
|
|
19804
19909
|
const renderDatePicker = () => {
|
|
19805
|
-
const options = language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn;
|
|
19806
|
-
const advancePickerReducer = (advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.reducer) || advancePickerDate;
|
|
19807
19910
|
const handleDatePickerChange = value => {
|
|
19808
19911
|
if (showRangeControl || type === 'range_picker') {
|
|
19809
19912
|
if (rangePickerType === 'monthly') {
|
|
19810
19913
|
dispatch({
|
|
19811
19914
|
type: 'UPDATE',
|
|
19812
|
-
payload:
|
|
19915
|
+
payload: advancePickerDate('RANGE_MONTH', value)
|
|
19813
19916
|
});
|
|
19814
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(
|
|
19917
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerDate('RANGE_MONTH', value));
|
|
19815
19918
|
} else {
|
|
19816
19919
|
dispatch({
|
|
19817
19920
|
type: 'UPDATE',
|
|
19818
|
-
payload:
|
|
19921
|
+
payload: advancePickerDate('RANGE_WEEK', value)
|
|
19819
19922
|
});
|
|
19820
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(
|
|
19923
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerDate('RANGE_WEEK', value));
|
|
19821
19924
|
}
|
|
19822
19925
|
} else {
|
|
19823
19926
|
dispatch({
|
|
@@ -19829,10 +19932,10 @@ function InputDatePicker({
|
|
|
19829
19932
|
};
|
|
19830
19933
|
return jsx(DatePicker, {
|
|
19831
19934
|
advanceView: type === ADVANCE_PICKER && (!advanceView ? jsx(AdvancedOption, {
|
|
19832
|
-
options:
|
|
19935
|
+
options: language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn,
|
|
19833
19936
|
disabled: disabled,
|
|
19834
19937
|
optionHandler: value => {
|
|
19835
|
-
const reducedResult =
|
|
19938
|
+
const reducedResult = advancePickerDate(value, undefined);
|
|
19836
19939
|
const dateAsString = moment(reducedResult[1]).format('YYYY-MM-DD');
|
|
19837
19940
|
const payload = [reducedResult[0], moment(`${dateAsString} 23:59`, 'YYYY-MM-DD HH:mm').toDate()];
|
|
19838
19941
|
dispatch({
|
|
@@ -20078,8 +20181,7 @@ const InputDateRange = /*#__PURE__*/React.forwardRef(({
|
|
|
20078
20181
|
placement: _placement = 'bottom',
|
|
20079
20182
|
readOnly: _readOnly = false,
|
|
20080
20183
|
isInvalid: _isInvalid = false,
|
|
20081
|
-
css
|
|
20082
|
-
advanceOptions
|
|
20184
|
+
css
|
|
20083
20185
|
}, ref) => {
|
|
20084
20186
|
const {
|
|
20085
20187
|
t,
|
|
@@ -20087,14 +20189,13 @@ const InputDateRange = /*#__PURE__*/React.forwardRef(({
|
|
|
20087
20189
|
} = useTranslation('translation');
|
|
20088
20190
|
const language = i18n.language;
|
|
20089
20191
|
const pickerOptions = language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn;
|
|
20090
|
-
const advancePickerReducer = (advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.reducer) || advancePickerDate;
|
|
20091
20192
|
return jsx(InputSelect, {
|
|
20092
|
-
option:
|
|
20193
|
+
option: pickerOptions.map(option => ({
|
|
20093
20194
|
name: option.label,
|
|
20094
20195
|
value: option.value
|
|
20095
20196
|
})),
|
|
20096
20197
|
onChange: selectedOption => {
|
|
20097
|
-
if (onChange) onChange(
|
|
20198
|
+
if (onChange) onChange(advancePickerDate(selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value, undefined));
|
|
20098
20199
|
},
|
|
20099
20200
|
placeholder: placeholder || t('placeholder.select', 'Pilih'),
|
|
20100
20201
|
size: _size,
|
|
@@ -51873,236 +51974,12 @@ function PrimitiveLoadingBar({
|
|
|
51873
51974
|
}, void 0)]
|
|
51874
51975
|
}), void 0);
|
|
51875
51976
|
}
|
|
51876
|
-
const rotateKeyframe = keyframes({
|
|
51877
|
-
'100%': {
|
|
51878
|
-
transform: 'rotate(360deg)'
|
|
51879
|
-
}
|
|
51880
|
-
});
|
|
51881
|
-
const dashKeyframe = keyframes({
|
|
51882
|
-
'0%': {
|
|
51883
|
-
strokeDasharray: '0,125',
|
|
51884
|
-
strokeDashoffset: -8
|
|
51885
|
-
},
|
|
51886
|
-
'50%': {
|
|
51887
|
-
strokeDasharray: 125,
|
|
51888
|
-
strokeDashoffset: -10
|
|
51889
|
-
},
|
|
51890
|
-
'100%': {
|
|
51891
|
-
strokeDasharray: 125,
|
|
51892
|
-
strokeDashoffset: -125
|
|
51893
|
-
}
|
|
51894
|
-
});
|
|
51895
|
-
const LoadingContainer = styled$1('div', {
|
|
51896
|
-
position: 'absolute',
|
|
51897
|
-
width: 152,
|
|
51898
|
-
height: 152,
|
|
51899
|
-
top: '50%',
|
|
51900
|
-
left: '50%',
|
|
51901
|
-
transform: 'translate(-50%,-50%)'
|
|
51902
|
-
});
|
|
51903
|
-
const LogoSvg = styled$1('svg', {
|
|
51904
|
-
height: 152,
|
|
51905
|
-
position: 'absolute',
|
|
51906
|
-
width: 152
|
|
51907
|
-
});
|
|
51908
|
-
const LoadingSvg = styled$1('svg', {
|
|
51909
|
-
animation: `${rotateKeyframe} 2s linear infinite`,
|
|
51910
|
-
height: 152,
|
|
51911
|
-
position: 'absolute',
|
|
51912
|
-
width: 152,
|
|
51913
|
-
top: '-22px'
|
|
51914
|
-
});
|
|
51915
|
-
const LoadingBackground = styled$1('div', {
|
|
51916
|
-
background: 'conic-gradient(#fff5f6, #FF97A4, #02B4F3, #81CF77, #6D60AE, #FF6C53 320deg)',
|
|
51917
|
-
width: '100%',
|
|
51918
|
-
height: '100%'
|
|
51919
|
-
});
|
|
51920
|
-
const LoadingCircle = styled$1('circle', {
|
|
51921
|
-
stroke: 'white',
|
|
51922
|
-
strokeLinecap: 'round',
|
|
51923
|
-
transformOrigin: '50% 50%',
|
|
51924
|
-
transform: 'rotate(-102deg)',
|
|
51925
|
-
animation: `${dashKeyframe} 1.5s ease-in-out infinite`
|
|
51926
|
-
});
|
|
51927
|
-
const LoadingLabel = styled$1(Paragraph, {
|
|
51928
|
-
position: 'relative',
|
|
51929
|
-
top: 100
|
|
51930
|
-
});
|
|
51931
|
-
function CircularLoadingBar({
|
|
51932
|
-
label
|
|
51933
|
-
}) {
|
|
51934
|
-
return jsxs(LoadingContainer, {
|
|
51935
|
-
children: [jsxs(LogoSvg, Object.assign({
|
|
51936
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
51937
|
-
width: "152",
|
|
51938
|
-
height: "152",
|
|
51939
|
-
viewBox: "0 0 152 152",
|
|
51940
|
-
fill: "none"
|
|
51941
|
-
}, {
|
|
51942
|
-
children: [jsxs("g", Object.assign({
|
|
51943
|
-
filter: "url(#filter0_ddd_4303_695)"
|
|
51944
|
-
}, {
|
|
51945
|
-
children: [jsx("rect", {
|
|
51946
|
-
x: "46.0004",
|
|
51947
|
-
y: "23.9999",
|
|
51948
|
-
width: "60",
|
|
51949
|
-
height: "60",
|
|
51950
|
-
rx: "30",
|
|
51951
|
-
fill: "url(#paint0_linear_4303_695)"
|
|
51952
|
-
}, void 0), jsx("rect", {
|
|
51953
|
-
x: "46",
|
|
51954
|
-
y: "24",
|
|
51955
|
-
width: "60",
|
|
51956
|
-
height: "60",
|
|
51957
|
-
rx: "30",
|
|
51958
|
-
stroke: "url(#paint1_linear_4303_695)",
|
|
51959
|
-
"stroke-opacity": "0.99",
|
|
51960
|
-
"stroke-width": "5"
|
|
51961
|
-
}, void 0), jsx("path", {
|
|
51962
|
-
"fill-rule": "evenodd",
|
|
51963
|
-
"clip-rule": "evenodd",
|
|
51964
|
-
d: "M87.9634 61.5652C87.9634 63.0968 86.7378 64.3333 85.2195 64.3333C83.7013 64.3333 82.4757 63.0968 82.4757 61.5652C82.4757 58.1698 82.4757 54.7928 82.4757 51.4159C82.9329 51.4159 83.3902 51.4159 83.8476 51.4159C84.1768 51.4159 84.3414 51.1206 84.1037 50.8623C83.0426 49.6074 81.9633 48.371 80.9024 47.1162C80.628 46.7471 80.5366 46.821 80.2805 47.1162C79.2195 48.371 78.1402 49.6074 77.0793 50.8623C76.8415 51.1391 77.0061 51.4159 77.3354 51.4159C77.7927 51.4159 78.25 51.4159 78.7073 51.4159C78.7073 54.8113 78.7256 58.1698 78.7256 61.5652C78.7256 63.0968 77.5 64.3333 75.9817 64.3333C74.4634 64.3333 73.2378 63.0968 73.2378 61.5652C73.2378 59.1848 73.2561 56.8227 73.2561 54.4607C73.7134 54.4607 74.1707 54.4607 74.628 54.4607C74.9573 54.4607 75.1219 54.1654 74.8841 53.9071C73.8232 52.6522 72.7439 51.4159 71.6829 50.161C71.4085 49.792 71.3171 49.8658 71.061 50.161C70 51.4159 68.9207 52.6522 67.8598 53.9071C67.6219 54.1839 67.7866 54.4607 68.1159 54.4607C68.5732 54.4607 69.0305 54.4607 69.4878 54.4607V54.5899V61.5652C69.4878 63.0968 68.2622 64.3333 66.7439 64.3333C65.2256 64.3333 64 63.0968 64 61.5652V50.7515C64 48.7217 64.8232 46.8579 66.1585 45.5108C67.4939 44.1637 69.3415 43.3333 71.372 43.3333C73.128 43.3333 74.7378 43.9607 76 44.9941C77.2622 43.9607 78.872 43.3333 80.628 43.3333C82.6586 43.3333 84.5061 44.1637 85.8414 45.5108C87.1768 46.8579 88 48.7217 88 50.7515V61.5652H87.9634Z",
|
|
51965
|
-
fill: "white"
|
|
51966
|
-
}, void 0)]
|
|
51967
|
-
}), void 0), jsxs("defs", {
|
|
51968
|
-
children: [jsxs("filter", Object.assign({
|
|
51969
|
-
id: "filter0_ddd_4303_695",
|
|
51970
|
-
x: "0.5",
|
|
51971
|
-
y: "0.5",
|
|
51972
|
-
width: "151",
|
|
51973
|
-
height: "151",
|
|
51974
|
-
filterUnits: "userSpaceOnUse",
|
|
51975
|
-
"color-interpolation-filters": "sRGB"
|
|
51976
|
-
}, {
|
|
51977
|
-
children: [jsx("feFlood", {
|
|
51978
|
-
"flood-opacity": "0",
|
|
51979
|
-
result: "BackgroundImageFix"
|
|
51980
|
-
}, void 0), jsx("feColorMatrix", {
|
|
51981
|
-
in: "SourceAlpha",
|
|
51982
|
-
type: "matrix",
|
|
51983
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
51984
|
-
result: "hardAlpha"
|
|
51985
|
-
}, void 0), jsx("feOffset", {
|
|
51986
|
-
dy: "22"
|
|
51987
|
-
}, void 0), jsx("feGaussianBlur", {
|
|
51988
|
-
stdDeviation: "21.5"
|
|
51989
|
-
}, void 0), jsx("feColorMatrix", {
|
|
51990
|
-
type: "matrix",
|
|
51991
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
|
|
51992
|
-
}, void 0), jsx("feBlend", {
|
|
51993
|
-
mode: "normal",
|
|
51994
|
-
in2: "BackgroundImageFix",
|
|
51995
|
-
result: "effect1_dropShadow_4303_695"
|
|
51996
|
-
}, void 0), jsx("feColorMatrix", {
|
|
51997
|
-
in: "SourceAlpha",
|
|
51998
|
-
type: "matrix",
|
|
51999
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
52000
|
-
result: "hardAlpha"
|
|
52001
|
-
}, void 0), jsx("feOffset", {
|
|
52002
|
-
dy: "9"
|
|
52003
|
-
}, void 0), jsx("feGaussianBlur", {
|
|
52004
|
-
stdDeviation: "12"
|
|
52005
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52006
|
-
type: "matrix",
|
|
52007
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0"
|
|
52008
|
-
}, void 0), jsx("feBlend", {
|
|
52009
|
-
mode: "normal",
|
|
52010
|
-
in2: "effect1_dropShadow_4303_695",
|
|
52011
|
-
result: "effect2_dropShadow_4303_695"
|
|
52012
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52013
|
-
in: "SourceAlpha",
|
|
52014
|
-
type: "matrix",
|
|
52015
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
52016
|
-
result: "hardAlpha"
|
|
52017
|
-
}, void 0), jsx("feOffset", {
|
|
52018
|
-
dy: "3"
|
|
52019
|
-
}, void 0), jsx("feGaussianBlur", {
|
|
52020
|
-
stdDeviation: "4.5"
|
|
52021
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52022
|
-
type: "matrix",
|
|
52023
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0"
|
|
52024
|
-
}, void 0), jsx("feBlend", {
|
|
52025
|
-
mode: "normal",
|
|
52026
|
-
in2: "effect2_dropShadow_4303_695",
|
|
52027
|
-
result: "effect3_dropShadow_4303_695"
|
|
52028
|
-
}, void 0), jsx("feBlend", {
|
|
52029
|
-
mode: "normal",
|
|
52030
|
-
in: "SourceGraphic",
|
|
52031
|
-
in2: "effect3_dropShadow_4303_695",
|
|
52032
|
-
result: "shape"
|
|
52033
|
-
}, void 0)]
|
|
52034
|
-
}), void 0), jsxs("linearGradient", Object.assign({
|
|
52035
|
-
id: "paint0_linear_4303_695",
|
|
52036
|
-
x1: "76.0004",
|
|
52037
|
-
y1: "23.9999",
|
|
52038
|
-
x2: "76.0004",
|
|
52039
|
-
y2: "83.9999",
|
|
52040
|
-
gradientUnits: "userSpaceOnUse"
|
|
52041
|
-
}, {
|
|
52042
|
-
children: [jsx("stop", {
|
|
52043
|
-
"stop-color": "#B3DCA7"
|
|
52044
|
-
}, void 0), jsx("stop", {
|
|
52045
|
-
offset: "1",
|
|
52046
|
-
"stop-color": "#22BDB6"
|
|
52047
|
-
}, void 0)]
|
|
52048
|
-
}), void 0), jsxs("linearGradient", Object.assign({
|
|
52049
|
-
id: "paint1_linear_4303_695",
|
|
52050
|
-
x1: "106",
|
|
52051
|
-
y1: "68.8332",
|
|
52052
|
-
x2: "50",
|
|
52053
|
-
y2: "37.3332",
|
|
52054
|
-
gradientUnits: "userSpaceOnUse"
|
|
52055
|
-
}, {
|
|
52056
|
-
children: [jsx("stop", {
|
|
52057
|
-
"stop-color": "#F4F4F4"
|
|
52058
|
-
}, void 0), jsx("stop", {
|
|
52059
|
-
offset: "1",
|
|
52060
|
-
"stop-color": "white"
|
|
52061
|
-
}, void 0)]
|
|
52062
|
-
}), void 0)]
|
|
52063
|
-
}, void 0)]
|
|
52064
|
-
}), void 0), jsxs(LoadingSvg, Object.assign({
|
|
52065
|
-
viewBox: "0 0 100 100",
|
|
52066
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
52067
|
-
}, {
|
|
52068
|
-
children: [jsx("defs", {
|
|
52069
|
-
children: jsx("mask", Object.assign({
|
|
52070
|
-
id: "mask"
|
|
52071
|
-
}, {
|
|
52072
|
-
children: jsx(LoadingCircle, {
|
|
52073
|
-
cx: "50",
|
|
52074
|
-
cy: "50",
|
|
52075
|
-
r: "20",
|
|
52076
|
-
fill: "none",
|
|
52077
|
-
"stroke-width": "4",
|
|
52078
|
-
"stroke-miterlimit": "10"
|
|
52079
|
-
}, void 0)
|
|
52080
|
-
}), void 0)
|
|
52081
|
-
}, void 0), jsx("foreignObject", Object.assign({
|
|
52082
|
-
x: "0",
|
|
52083
|
-
y: "0",
|
|
52084
|
-
width: "100",
|
|
52085
|
-
height: "100",
|
|
52086
|
-
mask: "url(#mask)"
|
|
52087
|
-
}, {
|
|
52088
|
-
children: jsx(LoadingBackground, {}, void 0)
|
|
52089
|
-
}), void 0)]
|
|
52090
|
-
}), void 0), label && jsx(LoadingLabel, Object.assign({
|
|
52091
|
-
color: "white",
|
|
52092
|
-
align: "center"
|
|
52093
|
-
}, {
|
|
52094
|
-
children: label
|
|
52095
|
-
}), void 0)]
|
|
52096
|
-
}, void 0);
|
|
52097
|
-
}
|
|
52098
51977
|
let interval;
|
|
52099
51978
|
function LoadingBar(props) {
|
|
52100
51979
|
const {
|
|
52101
51980
|
show,
|
|
52102
51981
|
onCompleted,
|
|
52103
|
-
interval: intervalTime
|
|
52104
|
-
isPageLoader,
|
|
52105
|
-
pageLoaderLabel
|
|
51982
|
+
interval: intervalTime
|
|
52106
51983
|
} = props;
|
|
52107
51984
|
const [progress, setProgress] = useState(0);
|
|
52108
51985
|
const [visibility, setVisibility] = useState(false);
|
|
@@ -52128,34 +52005,6 @@ function LoadingBar(props) {
|
|
|
52128
52005
|
onCompleted === null || onCompleted === void 0 ? void 0 : onCompleted();
|
|
52129
52006
|
}
|
|
52130
52007
|
}, [progress, onCompleted]);
|
|
52131
|
-
if (!show) return jsx(React__default.Fragment, {}, void 0);
|
|
52132
|
-
if (isPageLoader) {
|
|
52133
|
-
return jsx(ModalDialog, Object.assign({
|
|
52134
|
-
open: show,
|
|
52135
|
-
modal: true,
|
|
52136
|
-
allowPinchZoom: false,
|
|
52137
|
-
width: "100%",
|
|
52138
|
-
layer: 2000,
|
|
52139
|
-
isMobile: false,
|
|
52140
|
-
css: {
|
|
52141
|
-
borderRadius: '2px !important',
|
|
52142
|
-
'& > div': {
|
|
52143
|
-
backgroundColor: 'transparent !important',
|
|
52144
|
-
borderRadius: '2px !important'
|
|
52145
|
-
}
|
|
52146
|
-
}
|
|
52147
|
-
}, {
|
|
52148
|
-
children: jsx(ModalDialogContent, Object.assign({
|
|
52149
|
-
css: {
|
|
52150
|
-
padding: '$spacing-08 $spacing-11'
|
|
52151
|
-
}
|
|
52152
|
-
}, {
|
|
52153
|
-
children: jsx(CircularLoadingBar, {
|
|
52154
|
-
label: pageLoaderLabel
|
|
52155
|
-
}, void 0)
|
|
52156
|
-
}), void 0)
|
|
52157
|
-
}), void 0);
|
|
52158
|
-
}
|
|
52159
52008
|
return typeof (props === null || props === void 0 ? void 0 : props.progress) === 'number' ? jsx(PrimitiveLoadingBar, Object.assign({}, props, {
|
|
52160
52009
|
visibility: true
|
|
52161
52010
|
}), void 0) : jsx(PrimitiveLoadingBar, Object.assign({}, props, {
|
|
@@ -52168,8 +52017,7 @@ LoadingBar.defaultProps = {
|
|
|
52168
52017
|
show: false,
|
|
52169
52018
|
interval: 100,
|
|
52170
52019
|
description: 'Loading...',
|
|
52171
|
-
size: 'md'
|
|
52172
|
-
isPageLoader: false
|
|
52020
|
+
size: 'md'
|
|
52173
52021
|
};
|
|
52174
52022
|
|
|
52175
52023
|
const Container$4 = styled(Flex$1, {
|
|
@@ -53237,6 +53085,7 @@ const ProductList = props => {
|
|
|
53237
53085
|
label: tooltipLabel(name, variants)
|
|
53238
53086
|
}, {
|
|
53239
53087
|
children: jsxs(Box, Object.assign({
|
|
53088
|
+
gap: 2,
|
|
53240
53089
|
css: Object.assign({
|
|
53241
53090
|
display: 'flex',
|
|
53242
53091
|
alignItems: 'center',
|
|
@@ -53282,7 +53131,7 @@ const ProductList = props => {
|
|
|
53282
53131
|
padding: '4px 8px',
|
|
53283
53132
|
minWidth: 'unset',
|
|
53284
53133
|
justifyContent: 'flex-start',
|
|
53285
|
-
|
|
53134
|
+
mr: 'auto'
|
|
53286
53135
|
},
|
|
53287
53136
|
type: "varian"
|
|
53288
53137
|
}, {
|
|
@@ -56842,4 +56691,4 @@ const useToggle = initialValue => {
|
|
|
56842
56691
|
return useReducer(toggleReducer, initialValue);
|
|
56843
56692
|
};
|
|
56844
56693
|
|
|
56845
|
-
export { ADVANCE_PICKER, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedOption, AlertDialog, AlertDialogCancel, AlertDialogConfirm, AlertDialogContent, AlertDialogDescription, AlertDialogFunction, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, Avatar, BOTTOM_LEFT_POSITION, BOTTOM_RIGHT_POSITION, Badge, Banner, BannerClose, BannerDescription, BannerLink, BannerTitle, BarChartComponent as BarChart, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button$4 as Button, ButtonDropdown, ButtonGroup$1 as ButtonGroup, ButtonGroupItem, ButtonPrimitive, Card, CardComponent, CardLineColor, CheckboxGroup, CheckboxTable, ColorPicker$1 as ColorPicker, Colors, ContentEditor, ContextMenu, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, CustomDatePicker, DATE_RANGE_PICKER, DEFAULT, DateColumn, DatePicker, DecimalColumn, Device as DevicePreview, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, EditableTable, Flex$1 as Flex, FormGroup, FormHelper, FormLabel, Grid, GridItem, Heading, IconButton, IconContainer, Image, ImageDevicePreview, Input$7 as Input, InputCheckbox, InputColorPicker, InputCombobox, InputCounter, InputCreatable, InputDatePicker, InputDateRange, InputGroup, InputLeftAddon, InputLeftElement, InputMapPicker, InputNumber, InputOTP, InputPrefix, InputRadio, InputRadioGroup, ResourceList as InputResourceList, InputRightAddon, InputRightElement, InputSearchbox, InputSelect, InputSelectCheck, InputSelectTag, InputSuffix, InputSwitch, TagsInput as InputTags, InputText, InputTextArea, InputTimePicker, LAST_7_DAYS, LAST_MONTH, LAST_TWO_MONTHS, LAST_WEEK, LineChart, Link, LoadingBar, MONTHLY, MajooProvider, MapPicker, MemoizedEditableTable, MobileTable, ModalDialog, ModalDialogContent, ModalDialogFooter, ModalDialogTitle, ModalDialogTrigger, NEXT_MONTH, NEXT_WEEK, NativeTimePicker, NotificationBadge, OptionWrapper$2 as OptionWrapper, PREV_MONTH, PREV_WEEK, PageContainer, PageDialog, PageDialogContent, PageDialogFooter, PageDialogTitle, PageDialogTrigger, Pagination, Paper, PaperComponent, Paragraph, PieChartComponent as PieChart, Popover, PopoverClose, PopoverContent, PopoverTrigger, PriceColumn, Progress$1 as Progress, ProgressIndicator,
|
|
56694
|
+
export { ADVANCE_PICKER, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedOption, AlertDialog, AlertDialogCancel, AlertDialogConfirm, AlertDialogContent, AlertDialogDescription, AlertDialogFunction, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, Avatar, BOTTOM_LEFT_POSITION, BOTTOM_RIGHT_POSITION, Badge, Banner, BannerClose, BannerDescription, BannerLink, BannerTitle, BarChartComponent as BarChart, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button$4 as Button, ButtonDropdown, ButtonGroup$1 as ButtonGroup, ButtonGroupItem, ButtonPrimitive, Card, CardComponent, CardLineColor, CheckboxGroup, CheckboxTable, ColorPicker$1 as ColorPicker, Colors, ContentEditor, ContextMenu, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, CustomDatePicker, DATE_RANGE_PICKER, DEFAULT, DateColumn, DatePicker, DecimalColumn, Device as DevicePreview, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, EditableTable, Flex$1 as Flex, FormGroup, FormHelper, FormLabel, Grid, GridItem, Heading, IconButton, IconContainer, Image, ImageDevicePreview, Input$7 as Input, InputCheckbox, InputColorPicker, InputCombobox, InputCounter, InputCreatable, InputDatePicker, InputDateRange, InputGroup, InputLeftAddon, InputLeftElement, InputMapPicker, InputNumber, InputOTP, InputPrefix, InputRadio, InputRadioGroup, ResourceList as InputResourceList, InputRightAddon, InputRightElement, InputSearchbox, InputSelect, InputSelectCheck, InputSelectTag, InputSuffix, InputSwitch, TagsInput as InputTags, InputText, InputTextArea, InputTimePicker, LAST_7_DAYS, LAST_MONTH, LAST_TWO_MONTHS, LAST_WEEK, LineChart, Link, LoadingBar, MONTHLY, MajooProvider, MapPicker, MemoizedEditableTable, MobileTable, ModalDialog, ModalDialogContent, ModalDialogFooter, ModalDialogTitle, ModalDialogTrigger, NEXT_MONTH, NEXT_WEEK, NativeTimePicker, NotificationBadge, OptionWrapper$2 as OptionWrapper, PREV_MONTH, PREV_WEEK, PageContainer, PageDialog, PageDialogContent, PageDialogFooter, PageDialogTitle, PageDialogTrigger, Pagination, Paper, PaperComponent, Paragraph, PieChartComponent as PieChart, Popover, PopoverClose, PopoverContent, PopoverTrigger, PriceColumn, Progress$1 as Progress, ProgressIndicator, RANGE_CONTROL, RANGE_MONTH, RANGE_PICKER, RANGE_WEEK, ResendOTP, RightSlot, rowExpanderColumn as RowExpanderColumn, rowExpanderMultipleColumn as RowExpanderMultipleColumn, rowMenuColumn as RowMenuColumn, rowSelectionColumn as RowSelectionColumn, rowSelectionWithCallbackColumn as RowSelectionWithCallbackColumn, SINGLE_PICKER, ScrollSync, ScrollSyncNode, SelectBox, SelectContainer, SelectItem, SelectOption, Separator$2 as Separator, Skeleton, Slider, StepWizard, StepWizardContext, StyledBox, StyledDropdown, StyledInput$1 as StyledInput, StyledSpan, StyledTitle$2 as StyledTitle, THIS_MONTH, THIS_WEEK, TODAY, TOP_LEFT_POSITION, TOP_RIGHT_POSITION, Table, TableBody$3 as TableBody, TableCell$3 as TableCell, TableColumn, TableContent$3 as TableContent, TableFoot$2 as TableFoot, TableFootCell$2 as TableFootCell, TableFootRow$2 as TableFootRow, TableHead$3 as TableHead, TableHeadCellContent, TableHeaderCellContainer, TableOfContent, TableOfContentPage, TableRow$3 as TableRow, Tabs$1 as Tabs, TabsContent$1 as TabsContent, TabsList$1 as TabsList, TabsTrigger$1 as TabsTrigger, Tag, TagList, TagStatus, Text$1 as Text, TextVariantsEnum, TimePicker, ToastContext, ToastProvider, Tooltip$1 as Tooltip, UPDATE_PICKER, Upload, WEEKLY, YESTERDAY, addOnCellStyle, advancePickerDate, advancePickerOptionsEn, advancePickerOptionsId, defaultEmptyDataProps, defaultFetchDataParams, pickerReducer, useListOption, useToggle };
|