@majoo-ui/react 1.60.37-rc.5 → 1.60.37
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 +451 -615
- package/index.umd.js +947 -1134
- 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 = "/home/alfiantryp/Project/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
|
}
|
|
@@ -1397,7 +1397,7 @@ const applyGlobalStyles = additionaStyles => {
|
|
|
1397
1397
|
globalStyles();
|
|
1398
1398
|
};
|
|
1399
1399
|
|
|
1400
|
-
var _jsxFileName$
|
|
1400
|
+
var _jsxFileName$11 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/majoo-provider/MajooProvider.js";
|
|
1401
1401
|
function MajooProvider({
|
|
1402
1402
|
children,
|
|
1403
1403
|
theme: theme$1 = theme,
|
|
@@ -1413,7 +1413,7 @@ function MajooProvider({
|
|
|
1413
1413
|
theme: theme$1,
|
|
1414
1414
|
__self: this,
|
|
1415
1415
|
__source: {
|
|
1416
|
-
fileName: _jsxFileName$
|
|
1416
|
+
fileName: _jsxFileName$11,
|
|
1417
1417
|
lineNumber: 14,
|
|
1418
1418
|
columnNumber: 5
|
|
1419
1419
|
}
|
|
@@ -1527,27 +1527,25 @@ const Flex$1 = styled('div', {
|
|
|
1527
1527
|
gap: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1528
1528
|
}), 12),
|
|
1529
1529
|
m: seqNumberVariants$1(value => ({
|
|
1530
|
-
|
|
1530
|
+
m: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1531
1531
|
}), 12),
|
|
1532
1532
|
mt: seqNumberVariants$1(value => ({
|
|
1533
|
-
|
|
1533
|
+
mt: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1534
1534
|
}), 12),
|
|
1535
1535
|
mb: seqNumberVariants$1(value => ({
|
|
1536
|
-
|
|
1536
|
+
mb: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1537
1537
|
}), 12),
|
|
1538
1538
|
mr: seqNumberVariants$1(value => ({
|
|
1539
|
-
|
|
1539
|
+
mr: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1540
1540
|
}), 12),
|
|
1541
1541
|
ml: seqNumberVariants$1(value => ({
|
|
1542
|
-
|
|
1542
|
+
ml: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1543
1543
|
}), 12),
|
|
1544
1544
|
mx: seqNumberVariants$1(value => ({
|
|
1545
|
-
|
|
1546
|
-
marginLeft: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1545
|
+
mx: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1547
1546
|
}), 12),
|
|
1548
1547
|
my: seqNumberVariants$1(value => ({
|
|
1549
|
-
|
|
1550
|
-
marginBottom: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1548
|
+
my: `$spacing-${value < 10 ? '0' + value : value}`
|
|
1551
1549
|
}), 12),
|
|
1552
1550
|
mobileOnly: {
|
|
1553
1551
|
true: {
|
|
@@ -1566,51 +1564,62 @@ const Flex$1 = styled('div', {
|
|
|
1566
1564
|
}
|
|
1567
1565
|
}
|
|
1568
1566
|
});
|
|
1567
|
+
Flex$1.propTypes = {
|
|
1568
|
+
direction: PropTypes.string,
|
|
1569
|
+
align: PropTypes.string,
|
|
1570
|
+
justify: PropTypes.string,
|
|
1571
|
+
wrap: PropTypes.string,
|
|
1572
|
+
gap: PropTypes.number,
|
|
1573
|
+
m: PropTypes.number,
|
|
1574
|
+
mt: PropTypes.number,
|
|
1575
|
+
mb: PropTypes.number,
|
|
1576
|
+
mr: PropTypes.number,
|
|
1577
|
+
ml: PropTypes.number,
|
|
1578
|
+
mx: PropTypes.number,
|
|
1579
|
+
my: PropTypes.number
|
|
1580
|
+
};
|
|
1569
1581
|
Flex$1.defaultProps = {
|
|
1570
1582
|
direction: 'row',
|
|
1571
1583
|
align: 'stretch',
|
|
1572
1584
|
justify: 'start',
|
|
1573
|
-
wrap: 'noWrap'
|
|
1585
|
+
wrap: 'noWrap',
|
|
1586
|
+
gap: 0
|
|
1574
1587
|
};
|
|
1575
1588
|
Flex$1.displayName = 'Flex';
|
|
1576
1589
|
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1606
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1607
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
1608
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
1609
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
1610
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1611
|
-
});
|
|
1590
|
+
function _extends() {
|
|
1591
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
1592
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
1593
|
+
var source = arguments[i];
|
|
1594
|
+
for (var key in source) {
|
|
1595
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1596
|
+
target[key] = source[key];
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
return target;
|
|
1601
|
+
};
|
|
1602
|
+
return _extends.apply(this, arguments);
|
|
1603
|
+
}
|
|
1604
|
+
function _objectDestructuringEmpty(obj) {
|
|
1605
|
+
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
1606
|
+
}
|
|
1607
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
1608
|
+
if (source == null) return {};
|
|
1609
|
+
var target = {};
|
|
1610
|
+
var sourceKeys = Object.keys(source);
|
|
1611
|
+
var key, i;
|
|
1612
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
1613
|
+
key = sourceKeys[i];
|
|
1614
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
1615
|
+
target[key] = source[key];
|
|
1616
|
+
}
|
|
1617
|
+
return target;
|
|
1612
1618
|
}
|
|
1613
1619
|
|
|
1620
|
+
const _excluded$B = ["children"],
|
|
1621
|
+
_excluded2$4 = ["children"];
|
|
1622
|
+
var _jsxFileName$10 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/layout/grid/Grid.js";
|
|
1614
1623
|
const GridComponent = styled('div', {
|
|
1615
1624
|
display: 'grid',
|
|
1616
1625
|
variants: {
|
|
@@ -1795,21 +1804,25 @@ const GridComponent = styled('div', {
|
|
|
1795
1804
|
}
|
|
1796
1805
|
}
|
|
1797
1806
|
});
|
|
1798
|
-
const Grid =
|
|
1799
|
-
|
|
1807
|
+
const Grid = _ref => {
|
|
1808
|
+
let {
|
|
1800
1809
|
children
|
|
1801
|
-
} =
|
|
1802
|
-
props =
|
|
1803
|
-
return
|
|
1804
|
-
css: Object.assign(
|
|
1810
|
+
} = _ref,
|
|
1811
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
1812
|
+
return /*#__PURE__*/React__default.createElement(GridComponent, _extends({}, props, {
|
|
1813
|
+
css: Object.assign({}, props.css, {
|
|
1805
1814
|
gridAutoColumns: props.autoColumns,
|
|
1806
1815
|
gridAutoRows: props.autoRows,
|
|
1807
1816
|
gridTemplateColumns: props.templateColumns,
|
|
1808
1817
|
gridTemplateRows: props.templateRows
|
|
1809
|
-
})
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1818
|
+
}),
|
|
1819
|
+
__self: undefined,
|
|
1820
|
+
__source: {
|
|
1821
|
+
fileName: _jsxFileName$10,
|
|
1822
|
+
lineNumber: 200,
|
|
1823
|
+
columnNumber: 5
|
|
1824
|
+
}
|
|
1825
|
+
}), children);
|
|
1813
1826
|
};
|
|
1814
1827
|
Grid.propTypes = {
|
|
1815
1828
|
align: PropTypes.string,
|
|
@@ -1843,22 +1856,26 @@ const GridItemComponent = styled('div', {
|
|
|
1843
1856
|
}), 10))
|
|
1844
1857
|
}
|
|
1845
1858
|
});
|
|
1846
|
-
const GridItem =
|
|
1847
|
-
|
|
1859
|
+
const GridItem = _ref2 => {
|
|
1860
|
+
let {
|
|
1848
1861
|
children
|
|
1849
|
-
} =
|
|
1850
|
-
props =
|
|
1851
|
-
return
|
|
1852
|
-
css: Object.assign(
|
|
1862
|
+
} = _ref2,
|
|
1863
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
|
|
1864
|
+
return /*#__PURE__*/React__default.createElement(GridItemComponent, _extends({}, props, {
|
|
1865
|
+
css: Object.assign({}, props.css, {
|
|
1853
1866
|
gridArea: props.area,
|
|
1854
1867
|
gridColumnStart: props.colStart,
|
|
1855
1868
|
gridColumnEnd: props.colEnd,
|
|
1856
1869
|
gridRowStart: props.rowStart,
|
|
1857
1870
|
gridRowEnd: props.rowEnd
|
|
1858
|
-
})
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1871
|
+
}),
|
|
1872
|
+
__self: undefined,
|
|
1873
|
+
__source: {
|
|
1874
|
+
fileName: _jsxFileName$10,
|
|
1875
|
+
lineNumber: 265,
|
|
1876
|
+
columnNumber: 5
|
|
1877
|
+
}
|
|
1878
|
+
}), children);
|
|
1862
1879
|
};
|
|
1863
1880
|
GridItem.propTypes = {
|
|
1864
1881
|
gridArea: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
@@ -1871,38 +1888,8 @@ GridItem.propTypes = {
|
|
|
1871
1888
|
};
|
|
1872
1889
|
GridItem.displayName = 'Grid Item';
|
|
1873
1890
|
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
1877
|
-
var source = arguments[i];
|
|
1878
|
-
for (var key in source) {
|
|
1879
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1880
|
-
target[key] = source[key];
|
|
1881
|
-
}
|
|
1882
|
-
}
|
|
1883
|
-
}
|
|
1884
|
-
return target;
|
|
1885
|
-
};
|
|
1886
|
-
return _extends.apply(this, arguments);
|
|
1887
|
-
}
|
|
1888
|
-
function _objectDestructuringEmpty(obj) {
|
|
1889
|
-
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
1890
|
-
}
|
|
1891
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
1892
|
-
if (source == null) return {};
|
|
1893
|
-
var target = {};
|
|
1894
|
-
var sourceKeys = Object.keys(source);
|
|
1895
|
-
var key, i;
|
|
1896
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
1897
|
-
key = sourceKeys[i];
|
|
1898
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
1899
|
-
target[key] = source[key];
|
|
1900
|
-
}
|
|
1901
|
-
return target;
|
|
1902
|
-
}
|
|
1903
|
-
|
|
1904
|
-
const _excluded$y = ["children", "isCollapse", "css", "contentHeader"];
|
|
1905
|
-
var _jsxFileName$Z = "/home/alfiantryp/Project/majoo-ui/packages/react/src/layout/pageContainer/PageContainer.js";
|
|
1891
|
+
const _excluded$A = ["children", "isCollapse", "css", "contentHeader"];
|
|
1892
|
+
var _jsxFileName$$ = "/home/alfiantryp/Project/majoo-ui/packages/react/src/layout/pageContainer/PageContainer.js";
|
|
1906
1893
|
const StyledDiv$2 = styled(Flex$1, {
|
|
1907
1894
|
justifyContent: 'center',
|
|
1908
1895
|
marginLeft: 'auto',
|
|
@@ -1945,7 +1932,7 @@ const PageContainer = _ref => {
|
|
|
1945
1932
|
css,
|
|
1946
1933
|
contentHeader
|
|
1947
1934
|
} = _ref,
|
|
1948
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1935
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
1949
1936
|
return /*#__PURE__*/React__default.createElement(StyledDiv$2, _extends({
|
|
1950
1937
|
id: "retina-container",
|
|
1951
1938
|
css: Object.assign({
|
|
@@ -1954,7 +1941,7 @@ const PageContainer = _ref => {
|
|
|
1954
1941
|
}, props, {
|
|
1955
1942
|
__self: undefined,
|
|
1956
1943
|
__source: {
|
|
1957
|
-
fileName: _jsxFileName
|
|
1944
|
+
fileName: _jsxFileName$$,
|
|
1958
1945
|
lineNumber: 43,
|
|
1959
1946
|
columnNumber: 5
|
|
1960
1947
|
}
|
|
@@ -2313,6 +2300,43 @@ Paragraph.defaultProps = {
|
|
|
2313
2300
|
};
|
|
2314
2301
|
Paragraph.displayName = 'Paragraph';
|
|
2315
2302
|
|
|
2303
|
+
/******************************************************************************
|
|
2304
|
+
Copyright (c) Microsoft Corporation.
|
|
2305
|
+
|
|
2306
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
2307
|
+
purpose with or without fee is hereby granted.
|
|
2308
|
+
|
|
2309
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
2310
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
2311
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
2312
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
2313
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2314
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2315
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
2316
|
+
***************************************************************************** */
|
|
2317
|
+
|
|
2318
|
+
function __rest(s, e) {
|
|
2319
|
+
var t = {};
|
|
2320
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
2321
|
+
t[p] = s[p];
|
|
2322
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
2323
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2324
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
2325
|
+
t[p[i]] = s[p[i]];
|
|
2326
|
+
}
|
|
2327
|
+
return t;
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2330
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
2331
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
2332
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
2333
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
2334
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
2335
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
2336
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
2337
|
+
});
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2316
2340
|
const StyledLink = styled('a', {
|
|
2317
2341
|
fontSize: '$short-content-regular',
|
|
2318
2342
|
textDecoration: 'underline',
|
|
@@ -2366,8 +2390,8 @@ const Link = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
|
2366
2390
|
}), void 0);
|
|
2367
2391
|
});
|
|
2368
2392
|
|
|
2369
|
-
const _excluded$
|
|
2370
|
-
var _jsxFileName$
|
|
2393
|
+
const _excluded$z = ["title", "description", "variant", "link", "linkText", "onClick", "onRemove", "children", "bannerBlock", "icon"];
|
|
2394
|
+
var _jsxFileName$_ = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/banner/Banner.js";
|
|
2371
2395
|
const Context$2 = /*#__PURE__*/React.createContext();
|
|
2372
2396
|
const StyledBanner = styled(Flex$1, {
|
|
2373
2397
|
maxWidth: '100%',
|
|
@@ -2469,7 +2493,7 @@ const BannerTitle = props => /*#__PURE__*/React.createElement(Title$2, _extends(
|
|
|
2469
2493
|
}, props, {
|
|
2470
2494
|
__self: undefined,
|
|
2471
2495
|
__source: {
|
|
2472
|
-
fileName: _jsxFileName$
|
|
2496
|
+
fileName: _jsxFileName$_,
|
|
2473
2497
|
lineNumber: 111,
|
|
2474
2498
|
columnNumber: 3
|
|
2475
2499
|
}
|
|
@@ -2490,7 +2514,7 @@ const BannerDescription = props => /*#__PURE__*/React.createElement(Description,
|
|
|
2490
2514
|
}, props, {
|
|
2491
2515
|
__self: undefined,
|
|
2492
2516
|
__source: {
|
|
2493
|
-
fileName: _jsxFileName$
|
|
2517
|
+
fileName: _jsxFileName$_,
|
|
2494
2518
|
lineNumber: 128,
|
|
2495
2519
|
columnNumber: 3
|
|
2496
2520
|
}
|
|
@@ -2526,7 +2550,7 @@ const BannerLink = ({
|
|
|
2526
2550
|
return /*#__PURE__*/React.createElement(Context$2.Consumer, {
|
|
2527
2551
|
__self: undefined,
|
|
2528
2552
|
__source: {
|
|
2529
|
-
fileName: _jsxFileName$
|
|
2553
|
+
fileName: _jsxFileName$_,
|
|
2530
2554
|
lineNumber: 159,
|
|
2531
2555
|
columnNumber: 5
|
|
2532
2556
|
}
|
|
@@ -2538,7 +2562,7 @@ const BannerLink = ({
|
|
|
2538
2562
|
color: variant ? generateVariant(variant) : generateVariant(value.variant),
|
|
2539
2563
|
__self: undefined,
|
|
2540
2564
|
__source: {
|
|
2541
|
-
fileName: _jsxFileName$
|
|
2565
|
+
fileName: _jsxFileName$_,
|
|
2542
2566
|
lineNumber: 161,
|
|
2543
2567
|
columnNumber: 9
|
|
2544
2568
|
}
|
|
@@ -2564,7 +2588,7 @@ BannerLink.defaultProps = {
|
|
|
2564
2588
|
const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
|
|
2565
2589
|
__self: undefined,
|
|
2566
2590
|
__source: {
|
|
2567
|
-
fileName: _jsxFileName$
|
|
2591
|
+
fileName: _jsxFileName$_,
|
|
2568
2592
|
lineNumber: 193,
|
|
2569
2593
|
columnNumber: 3
|
|
2570
2594
|
}
|
|
@@ -2576,7 +2600,7 @@ const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
|
|
|
2576
2600
|
},
|
|
2577
2601
|
__self: undefined,
|
|
2578
2602
|
__source: {
|
|
2579
|
-
fileName: _jsxFileName$
|
|
2603
|
+
fileName: _jsxFileName$_,
|
|
2580
2604
|
lineNumber: 195,
|
|
2581
2605
|
columnNumber: 7
|
|
2582
2606
|
}
|
|
@@ -2585,7 +2609,7 @@ const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
|
|
|
2585
2609
|
size: "16px",
|
|
2586
2610
|
__self: undefined,
|
|
2587
2611
|
__source: {
|
|
2588
|
-
fileName: _jsxFileName$
|
|
2612
|
+
fileName: _jsxFileName$_,
|
|
2589
2613
|
lineNumber: 202,
|
|
2590
2614
|
columnNumber: 9
|
|
2591
2615
|
}
|
|
@@ -2596,14 +2620,14 @@ const SingleTagBanner = props => {
|
|
|
2596
2620
|
direction: "column",
|
|
2597
2621
|
__self: undefined,
|
|
2598
2622
|
__source: {
|
|
2599
|
-
fileName: _jsxFileName$
|
|
2623
|
+
fileName: _jsxFileName$_,
|
|
2600
2624
|
lineNumber: 210,
|
|
2601
2625
|
columnNumber: 5
|
|
2602
2626
|
}
|
|
2603
2627
|
}, /*#__PURE__*/React.createElement(Flex$1, {
|
|
2604
2628
|
__self: undefined,
|
|
2605
2629
|
__source: {
|
|
2606
|
-
fileName: _jsxFileName$
|
|
2630
|
+
fileName: _jsxFileName$_,
|
|
2607
2631
|
lineNumber: 211,
|
|
2608
2632
|
columnNumber: 7
|
|
2609
2633
|
}
|
|
@@ -2612,7 +2636,7 @@ const SingleTagBanner = props => {
|
|
|
2612
2636
|
direction: "row",
|
|
2613
2637
|
__self: undefined,
|
|
2614
2638
|
__source: {
|
|
2615
|
-
fileName: _jsxFileName$
|
|
2639
|
+
fileName: _jsxFileName$_,
|
|
2616
2640
|
lineNumber: 212,
|
|
2617
2641
|
columnNumber: 9
|
|
2618
2642
|
}
|
|
@@ -2622,7 +2646,7 @@ const SingleTagBanner = props => {
|
|
|
2622
2646
|
},
|
|
2623
2647
|
__self: undefined,
|
|
2624
2648
|
__source: {
|
|
2625
|
-
fileName: _jsxFileName$
|
|
2649
|
+
fileName: _jsxFileName$_,
|
|
2626
2650
|
lineNumber: 213,
|
|
2627
2651
|
columnNumber: 27
|
|
2628
2652
|
}
|
|
@@ -2635,21 +2659,21 @@ const SingleTagBanner = props => {
|
|
|
2635
2659
|
},
|
|
2636
2660
|
__self: undefined,
|
|
2637
2661
|
__source: {
|
|
2638
|
-
fileName: _jsxFileName$
|
|
2662
|
+
fileName: _jsxFileName$_,
|
|
2639
2663
|
lineNumber: 214,
|
|
2640
2664
|
columnNumber: 11
|
|
2641
2665
|
}
|
|
2642
2666
|
}, props.title && /*#__PURE__*/React.createElement(BannerTitle, {
|
|
2643
2667
|
__self: undefined,
|
|
2644
2668
|
__source: {
|
|
2645
|
-
fileName: _jsxFileName$
|
|
2669
|
+
fileName: _jsxFileName$_,
|
|
2646
2670
|
lineNumber: 222,
|
|
2647
2671
|
columnNumber: 29
|
|
2648
2672
|
}
|
|
2649
2673
|
}, props.title), props.description && /*#__PURE__*/React.createElement(BannerDescription, {
|
|
2650
2674
|
__self: undefined,
|
|
2651
2675
|
__source: {
|
|
2652
|
-
fileName: _jsxFileName$
|
|
2676
|
+
fileName: _jsxFileName$_,
|
|
2653
2677
|
lineNumber: 223,
|
|
2654
2678
|
columnNumber: 35
|
|
2655
2679
|
}
|
|
@@ -2662,7 +2686,7 @@ const SingleTagBanner = props => {
|
|
|
2662
2686
|
closeCenter: !props.title && !props.link,
|
|
2663
2687
|
__self: undefined,
|
|
2664
2688
|
__source: {
|
|
2665
|
-
fileName: _jsxFileName$
|
|
2689
|
+
fileName: _jsxFileName$_,
|
|
2666
2690
|
lineNumber: 226,
|
|
2667
2691
|
columnNumber: 9
|
|
2668
2692
|
}
|
|
@@ -2671,7 +2695,7 @@ const SingleTagBanner = props => {
|
|
|
2671
2695
|
size: "16px",
|
|
2672
2696
|
__self: undefined,
|
|
2673
2697
|
__source: {
|
|
2674
|
-
fileName: _jsxFileName$
|
|
2698
|
+
fileName: _jsxFileName$_,
|
|
2675
2699
|
lineNumber: 234,
|
|
2676
2700
|
columnNumber: 11
|
|
2677
2701
|
}
|
|
@@ -2684,7 +2708,7 @@ const SingleTagBanner = props => {
|
|
|
2684
2708
|
variant: props.variant,
|
|
2685
2709
|
__self: undefined,
|
|
2686
2710
|
__source: {
|
|
2687
|
-
fileName: _jsxFileName$
|
|
2711
|
+
fileName: _jsxFileName$_,
|
|
2688
2712
|
lineNumber: 238,
|
|
2689
2713
|
columnNumber: 9
|
|
2690
2714
|
}
|
|
@@ -2703,7 +2727,7 @@ const Banner = _ref => {
|
|
|
2703
2727
|
bannerBlock,
|
|
2704
2728
|
icon
|
|
2705
2729
|
} = _ref,
|
|
2706
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2730
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
2707
2731
|
return /*#__PURE__*/React.createElement(StyledBanner, _extends({
|
|
2708
2732
|
variant: variant,
|
|
2709
2733
|
hasAction: !!onClick,
|
|
@@ -2712,7 +2736,7 @@ const Banner = _ref => {
|
|
|
2712
2736
|
}, rest, {
|
|
2713
2737
|
__self: undefined,
|
|
2714
2738
|
__source: {
|
|
2715
|
-
fileName: _jsxFileName$
|
|
2739
|
+
fileName: _jsxFileName$_,
|
|
2716
2740
|
lineNumber: 260,
|
|
2717
2741
|
columnNumber: 5
|
|
2718
2742
|
}
|
|
@@ -2729,7 +2753,7 @@ const Banner = _ref => {
|
|
|
2729
2753
|
},
|
|
2730
2754
|
__self: undefined,
|
|
2731
2755
|
__source: {
|
|
2732
|
-
fileName: _jsxFileName$
|
|
2756
|
+
fileName: _jsxFileName$_,
|
|
2733
2757
|
lineNumber: 262,
|
|
2734
2758
|
columnNumber: 9
|
|
2735
2759
|
}
|
|
@@ -2740,7 +2764,7 @@ const Banner = _ref => {
|
|
|
2740
2764
|
},
|
|
2741
2765
|
__self: undefined,
|
|
2742
2766
|
__source: {
|
|
2743
|
-
fileName: _jsxFileName$
|
|
2767
|
+
fileName: _jsxFileName$_,
|
|
2744
2768
|
lineNumber: 269,
|
|
2745
2769
|
columnNumber: 11
|
|
2746
2770
|
}
|
|
@@ -2755,7 +2779,7 @@ const Banner = _ref => {
|
|
|
2755
2779
|
onRemove: onRemove,
|
|
2756
2780
|
__self: undefined,
|
|
2757
2781
|
__source: {
|
|
2758
|
-
fileName: _jsxFileName$
|
|
2782
|
+
fileName: _jsxFileName$_,
|
|
2759
2783
|
lineNumber: 272,
|
|
2760
2784
|
columnNumber: 9
|
|
2761
2785
|
}
|
|
@@ -3367,8 +3391,8 @@ Card.defaultProps = {
|
|
|
3367
3391
|
Card.Label = StyledLabel$2;
|
|
3368
3392
|
Card.Description = StyledDescription$3;
|
|
3369
3393
|
|
|
3370
|
-
const _excluded$
|
|
3371
|
-
var _jsxFileName$
|
|
3394
|
+
const _excluded$y = ["children"];
|
|
3395
|
+
var _jsxFileName$Z = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/breadcrumb/Breadcrumb.js";
|
|
3372
3396
|
const BreadcrumbStyle = styled('nav', {
|
|
3373
3397
|
wordWrap: 'break-word',
|
|
3374
3398
|
'& li+li:before': {
|
|
@@ -3413,7 +3437,7 @@ const BreadcrumbLinkBase = props => {
|
|
|
3413
3437
|
return /*#__PURE__*/React__default.createElement(BreadcrumbLinkStyle, _extends({}, props, aria, {
|
|
3414
3438
|
__self: undefined,
|
|
3415
3439
|
__source: {
|
|
3416
|
-
fileName: _jsxFileName$
|
|
3440
|
+
fileName: _jsxFileName$Z,
|
|
3417
3441
|
lineNumber: 42,
|
|
3418
3442
|
columnNumber: 10
|
|
3419
3443
|
}
|
|
@@ -3423,19 +3447,19 @@ const BreadcrumbBase = _ref => {
|
|
|
3423
3447
|
let {
|
|
3424
3448
|
children
|
|
3425
3449
|
} = _ref,
|
|
3426
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3450
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
3427
3451
|
return /*#__PURE__*/React__default.createElement(BreadcrumbStyle, _extends({}, rest, {
|
|
3428
3452
|
"aria-label": "breadcrumb",
|
|
3429
3453
|
__self: undefined,
|
|
3430
3454
|
__source: {
|
|
3431
|
-
fileName: _jsxFileName$
|
|
3455
|
+
fileName: _jsxFileName$Z,
|
|
3432
3456
|
lineNumber: 47,
|
|
3433
3457
|
columnNumber: 5
|
|
3434
3458
|
}
|
|
3435
3459
|
}), /*#__PURE__*/React__default.createElement(Ol, {
|
|
3436
3460
|
__self: undefined,
|
|
3437
3461
|
__source: {
|
|
3438
|
-
fileName: _jsxFileName$
|
|
3462
|
+
fileName: _jsxFileName$Z,
|
|
3439
3463
|
lineNumber: 48,
|
|
3440
3464
|
columnNumber: 7
|
|
3441
3465
|
}
|
|
@@ -3687,8 +3711,8 @@ Badge.defaultProps = {
|
|
|
3687
3711
|
};
|
|
3688
3712
|
Badge.displayName = 'Badge';
|
|
3689
3713
|
|
|
3690
|
-
const _excluded$
|
|
3691
|
-
var _jsxFileName$
|
|
3714
|
+
const _excluded$x = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
|
|
3715
|
+
var _jsxFileName$Y = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/avatar/Avatar.js";
|
|
3692
3716
|
const StyledAvatar = styled(AvatarPrimitive.Root, {
|
|
3693
3717
|
width: '32px',
|
|
3694
3718
|
height: '32px',
|
|
@@ -3732,7 +3756,7 @@ function Avatar(_ref) {
|
|
|
3732
3756
|
onClick,
|
|
3733
3757
|
css
|
|
3734
3758
|
} = _ref,
|
|
3735
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3759
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
3736
3760
|
return /*#__PURE__*/React__default.createElement(StyledAvatar, _extends({
|
|
3737
3761
|
className: className,
|
|
3738
3762
|
onClick: onClick,
|
|
@@ -3740,7 +3764,7 @@ function Avatar(_ref) {
|
|
|
3740
3764
|
}, props, {
|
|
3741
3765
|
__self: this,
|
|
3742
3766
|
__source: {
|
|
3743
|
-
fileName: _jsxFileName$
|
|
3767
|
+
fileName: _jsxFileName$Y,
|
|
3744
3768
|
lineNumber: 46,
|
|
3745
3769
|
columnNumber: 5
|
|
3746
3770
|
}
|
|
@@ -3750,7 +3774,7 @@ function Avatar(_ref) {
|
|
|
3750
3774
|
onLoadingStatusChange: onLoadingStatusChange,
|
|
3751
3775
|
__self: this,
|
|
3752
3776
|
__source: {
|
|
3753
|
-
fileName: _jsxFileName$
|
|
3777
|
+
fileName: _jsxFileName$Y,
|
|
3754
3778
|
lineNumber: 47,
|
|
3755
3779
|
columnNumber: 21
|
|
3756
3780
|
}
|
|
@@ -3758,21 +3782,21 @@ function Avatar(_ref) {
|
|
|
3758
3782
|
delayMs: delayMs,
|
|
3759
3783
|
__self: this,
|
|
3760
3784
|
__source: {
|
|
3761
|
-
fileName: _jsxFileName$
|
|
3785
|
+
fileName: _jsxFileName$Y,
|
|
3762
3786
|
lineNumber: 48,
|
|
3763
3787
|
columnNumber: 7
|
|
3764
3788
|
}
|
|
3765
3789
|
}, children !== undefined ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children) : /*#__PURE__*/React__default.createElement(StyledIcon, {
|
|
3766
3790
|
__self: this,
|
|
3767
3791
|
__source: {
|
|
3768
|
-
fileName: _jsxFileName$
|
|
3792
|
+
fileName: _jsxFileName$Y,
|
|
3769
3793
|
lineNumber: 52,
|
|
3770
3794
|
columnNumber: 11
|
|
3771
3795
|
}
|
|
3772
3796
|
}, /*#__PURE__*/React__default.createElement(UserFilled, {
|
|
3773
3797
|
__self: this,
|
|
3774
3798
|
__source: {
|
|
3775
|
-
fileName: _jsxFileName$
|
|
3799
|
+
fileName: _jsxFileName$Y,
|
|
3776
3800
|
lineNumber: 53,
|
|
3777
3801
|
columnNumber: 13
|
|
3778
3802
|
}
|
|
@@ -3789,8 +3813,8 @@ Avatar.defaultProps = {
|
|
|
3789
3813
|
delayMs: 0
|
|
3790
3814
|
};
|
|
3791
3815
|
|
|
3792
|
-
const _excluded$
|
|
3793
|
-
var _jsxFileName$
|
|
3816
|
+
const _excluded$w = ["className", "src", "alt", "width", "height", "objectFit", "fallback", "fallbackTitle", "css", "cssFallback", "rounded"];
|
|
3817
|
+
var _jsxFileName$X = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/image/Image.js";
|
|
3794
3818
|
const ContainerFallback = styled(Flex$1, {
|
|
3795
3819
|
boxSizing: 'border-box',
|
|
3796
3820
|
border: '2px dashed #C0C4C4',
|
|
@@ -3839,7 +3863,7 @@ function Image(_ref) {
|
|
|
3839
3863
|
cssFallback,
|
|
3840
3864
|
rounded
|
|
3841
3865
|
} = _ref,
|
|
3842
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3866
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
3843
3867
|
const {
|
|
3844
3868
|
t
|
|
3845
3869
|
} = useTranslation('translation');
|
|
@@ -3858,7 +3882,7 @@ function Image(_ref) {
|
|
|
3858
3882
|
}, props, {
|
|
3859
3883
|
__self: this,
|
|
3860
3884
|
__source: {
|
|
3861
|
-
fileName: _jsxFileName$
|
|
3885
|
+
fileName: _jsxFileName$X,
|
|
3862
3886
|
lineNumber: 61,
|
|
3863
3887
|
columnNumber: 7
|
|
3864
3888
|
}
|
|
@@ -3874,14 +3898,14 @@ function Image(_ref) {
|
|
|
3874
3898
|
}, cssFallback),
|
|
3875
3899
|
__self: this,
|
|
3876
3900
|
__source: {
|
|
3877
|
-
fileName: _jsxFileName$
|
|
3901
|
+
fileName: _jsxFileName$X,
|
|
3878
3902
|
lineNumber: 75,
|
|
3879
3903
|
columnNumber: 7
|
|
3880
3904
|
}
|
|
3881
3905
|
}, /*#__PURE__*/React__default.createElement(TextFallback, {
|
|
3882
3906
|
__self: this,
|
|
3883
3907
|
__source: {
|
|
3884
|
-
fileName: _jsxFileName$
|
|
3908
|
+
fileName: _jsxFileName$X,
|
|
3885
3909
|
lineNumber: 76,
|
|
3886
3910
|
columnNumber: 9
|
|
3887
3911
|
}
|
|
@@ -4475,6 +4499,8 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
4475
4499
|
|
|
4476
4500
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
4477
4501
|
|
|
4502
|
+
const _excluded$v = ["children", "label", "color", "css", "withClick", "side", "align", "delayDuration"];
|
|
4503
|
+
var _jsxFileName$W = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tooltip/Tooltip.js";
|
|
4478
4504
|
const {
|
|
4479
4505
|
zIndices: zIndices$2
|
|
4480
4506
|
} = foundations;
|
|
@@ -4561,10 +4587,10 @@ const TooltipBase = styled(TooltipPrimitive.Root, {
|
|
|
4561
4587
|
color: 'ligth'
|
|
4562
4588
|
}
|
|
4563
4589
|
});
|
|
4590
|
+
|
|
4564
4591
|
// Exports
|
|
4565
4592
|
const Provider = TooltipPrimitive.Provider;
|
|
4566
4593
|
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
4567
|
-
const TooltipContent = StyledContent$6;
|
|
4568
4594
|
const dark = {
|
|
4569
4595
|
color: foundations.colors.white,
|
|
4570
4596
|
backgroundColor: foundations.colors.gray800
|
|
@@ -4579,8 +4605,8 @@ const darkArrow = {
|
|
|
4579
4605
|
const lightArrow = {
|
|
4580
4606
|
fill: foundations.colors.bgWhite
|
|
4581
4607
|
};
|
|
4582
|
-
const Tooltip$1 =
|
|
4583
|
-
|
|
4608
|
+
const Tooltip$1 = _ref => {
|
|
4609
|
+
let {
|
|
4584
4610
|
children,
|
|
4585
4611
|
label,
|
|
4586
4612
|
color,
|
|
@@ -4589,52 +4615,98 @@ const Tooltip$1 = _a => {
|
|
|
4589
4615
|
side,
|
|
4590
4616
|
align,
|
|
4591
4617
|
delayDuration
|
|
4592
|
-
} =
|
|
4593
|
-
rest =
|
|
4618
|
+
} = _ref,
|
|
4619
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
4594
4620
|
const [open, setOpen] = useState(false);
|
|
4595
|
-
return
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4621
|
+
return /*#__PURE__*/React__default.createElement(Provider, {
|
|
4622
|
+
__self: undefined,
|
|
4623
|
+
__source: {
|
|
4624
|
+
fileName: _jsxFileName$W,
|
|
4625
|
+
lineNumber: 92,
|
|
4626
|
+
columnNumber: 5
|
|
4627
|
+
}
|
|
4628
|
+
}, /*#__PURE__*/React__default.createElement(TooltipBase, _extends({}, rest, {
|
|
4629
|
+
open: withClick ? open : undefined,
|
|
4630
|
+
delayDuration: delayDuration,
|
|
4631
|
+
__self: undefined,
|
|
4632
|
+
__source: {
|
|
4633
|
+
fileName: _jsxFileName$W,
|
|
4634
|
+
lineNumber: 93,
|
|
4635
|
+
columnNumber: 7
|
|
4636
|
+
}
|
|
4637
|
+
}), /*#__PURE__*/React__default.createElement(TooltipTrigger, {
|
|
4638
|
+
asChild: true,
|
|
4639
|
+
__self: undefined,
|
|
4640
|
+
__source: {
|
|
4641
|
+
fileName: _jsxFileName$W,
|
|
4642
|
+
lineNumber: 94,
|
|
4643
|
+
columnNumber: 9
|
|
4644
|
+
}
|
|
4645
|
+
}, /*#__PURE__*/React__default.createElement(TriggerSpan, {
|
|
4646
|
+
onClick: () => withClick && !open && setOpen(true),
|
|
4647
|
+
__self: undefined,
|
|
4648
|
+
__source: {
|
|
4649
|
+
fileName: _jsxFileName$W,
|
|
4650
|
+
lineNumber: 95,
|
|
4651
|
+
columnNumber: 11
|
|
4652
|
+
}
|
|
4653
|
+
}, children)), /*#__PURE__*/React__default.createElement(TooltipPrimitive.Portal, {
|
|
4654
|
+
__self: undefined,
|
|
4655
|
+
__source: {
|
|
4656
|
+
fileName: _jsxFileName$W,
|
|
4657
|
+
lineNumber: 97,
|
|
4658
|
+
columnNumber: 9
|
|
4659
|
+
}
|
|
4660
|
+
}, /*#__PURE__*/React__default.createElement(StyledContent$6, {
|
|
4661
|
+
align: align,
|
|
4662
|
+
side: side,
|
|
4663
|
+
sideOffset: 5,
|
|
4664
|
+
css: color === 'dark' ? Object.assign({}, dark, css) : Object.assign({}, ligth, css),
|
|
4665
|
+
onPointerDownOutside: () => setTimeout(() => {
|
|
4666
|
+
setOpen(false);
|
|
4667
|
+
}, 100),
|
|
4668
|
+
__self: undefined,
|
|
4669
|
+
__source: {
|
|
4670
|
+
fileName: _jsxFileName$W,
|
|
4671
|
+
lineNumber: 98,
|
|
4672
|
+
columnNumber: 11
|
|
4673
|
+
}
|
|
4674
|
+
}, label, /*#__PURE__*/React__default.createElement(StyledArrow$1, {
|
|
4675
|
+
offset: 10,
|
|
4676
|
+
css: color === 'dark' ? darkArrow : lightArrow,
|
|
4677
|
+
__self: undefined,
|
|
4678
|
+
__source: {
|
|
4679
|
+
fileName: _jsxFileName$W,
|
|
4680
|
+
lineNumber: 110,
|
|
4681
|
+
columnNumber: 13
|
|
4682
|
+
}
|
|
4683
|
+
})))));
|
|
4684
|
+
};
|
|
4685
|
+
Tooltip$1.propTypes = {
|
|
4686
|
+
children: PropTypes.node,
|
|
4687
|
+
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
4688
|
+
color: PropTypes.string,
|
|
4689
|
+
side: PropTypes.oneOf(['top', 'bottom', 'right', 'left']),
|
|
4690
|
+
align: PropTypes.oneOf(['start', 'center', 'end'])
|
|
4626
4691
|
};
|
|
4627
4692
|
Tooltip$1.defaultProps = {
|
|
4628
4693
|
color: 'dark',
|
|
4629
4694
|
side: 'bottom',
|
|
4630
4695
|
align: 'center',
|
|
4631
4696
|
label: '',
|
|
4632
|
-
children:
|
|
4697
|
+
children: /*#__PURE__*/React__default.createElement("div", {
|
|
4698
|
+
__self: undefined,
|
|
4699
|
+
__source: {
|
|
4700
|
+
fileName: _jsxFileName$W,
|
|
4701
|
+
lineNumber: 131,
|
|
4702
|
+
columnNumber: 13
|
|
4703
|
+
}
|
|
4704
|
+
}),
|
|
4633
4705
|
delayDuration: 200
|
|
4634
4706
|
};
|
|
4635
4707
|
|
|
4636
|
-
const _excluded$
|
|
4637
|
-
var _jsxFileName$
|
|
4708
|
+
const _excluded$u = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
|
|
4709
|
+
var _jsxFileName$V = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/progress/Progress.js";
|
|
4638
4710
|
const StyledProgress$1 = styled$1(ProgressPrimitive.Root, {
|
|
4639
4711
|
position: 'relative',
|
|
4640
4712
|
overflow: 'hidden',
|
|
@@ -4752,7 +4824,7 @@ function Progress$1(_ref) {
|
|
|
4752
4824
|
rounded,
|
|
4753
4825
|
width
|
|
4754
4826
|
} = _ref,
|
|
4755
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4827
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
4756
4828
|
return /*#__PURE__*/React__default.createElement(StyledProgress$1, _extends({
|
|
4757
4829
|
className: className,
|
|
4758
4830
|
value: value,
|
|
@@ -4767,7 +4839,7 @@ function Progress$1(_ref) {
|
|
|
4767
4839
|
}, props, {
|
|
4768
4840
|
__self: this,
|
|
4769
4841
|
__source: {
|
|
4770
|
-
fileName: _jsxFileName$
|
|
4842
|
+
fileName: _jsxFileName$V,
|
|
4771
4843
|
lineNumber: 88,
|
|
4772
4844
|
columnNumber: 5
|
|
4773
4845
|
}
|
|
@@ -4780,7 +4852,7 @@ function Progress$1(_ref) {
|
|
|
4780
4852
|
},
|
|
4781
4853
|
__self: this,
|
|
4782
4854
|
__source: {
|
|
4783
|
-
fileName: _jsxFileName$
|
|
4855
|
+
fileName: _jsxFileName$V,
|
|
4784
4856
|
lineNumber: 89,
|
|
4785
4857
|
columnNumber: 7
|
|
4786
4858
|
}
|
|
@@ -5445,8 +5517,8 @@ function useMediaQuery(query) {
|
|
|
5445
5517
|
return matches;
|
|
5446
5518
|
}
|
|
5447
5519
|
|
|
5448
|
-
const _excluded$
|
|
5449
|
-
var _jsxFileName$
|
|
5520
|
+
const _excluded$t = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
|
|
5521
|
+
var _jsxFileName$U = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/Toast.js";
|
|
5450
5522
|
const TOAST_WIDTH = 576;
|
|
5451
5523
|
const ANIMATION_DURATION = 400;
|
|
5452
5524
|
const TOP_RIGHT_POSITION = 'top-right';
|
|
@@ -5614,7 +5686,7 @@ const Toast = _ref => {
|
|
|
5614
5686
|
captionOfAction,
|
|
5615
5687
|
hrefOfAction
|
|
5616
5688
|
} = _ref,
|
|
5617
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5689
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
5618
5690
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
5619
5691
|
const isMobile = useMediaQuery(`(max-width: 767px`);
|
|
5620
5692
|
const close = React.useCallback(() => {
|
|
@@ -5643,7 +5715,7 @@ const Toast = _ref => {
|
|
|
5643
5715
|
onExited: onRemove,
|
|
5644
5716
|
__self: undefined,
|
|
5645
5717
|
__source: {
|
|
5646
|
-
fileName: _jsxFileName$
|
|
5718
|
+
fileName: _jsxFileName$U,
|
|
5647
5719
|
lineNumber: 216,
|
|
5648
5720
|
columnNumber: 5
|
|
5649
5721
|
}
|
|
@@ -5658,7 +5730,7 @@ const Toast = _ref => {
|
|
|
5658
5730
|
}, rest, {
|
|
5659
5731
|
__self: undefined,
|
|
5660
5732
|
__source: {
|
|
5661
|
-
fileName: _jsxFileName$
|
|
5733
|
+
fileName: _jsxFileName$U,
|
|
5662
5734
|
lineNumber: 227,
|
|
5663
5735
|
columnNumber: 9
|
|
5664
5736
|
}
|
|
@@ -5668,7 +5740,7 @@ const Toast = _ref => {
|
|
|
5668
5740
|
onClick: onClick,
|
|
5669
5741
|
__self: undefined,
|
|
5670
5742
|
__source: {
|
|
5671
|
-
fileName: _jsxFileName$
|
|
5743
|
+
fileName: _jsxFileName$U,
|
|
5672
5744
|
lineNumber: 235,
|
|
5673
5745
|
columnNumber: 11
|
|
5674
5746
|
}
|
|
@@ -5676,7 +5748,7 @@ const Toast = _ref => {
|
|
|
5676
5748
|
direction: "column",
|
|
5677
5749
|
__self: undefined,
|
|
5678
5750
|
__source: {
|
|
5679
|
-
fileName: _jsxFileName$
|
|
5751
|
+
fileName: _jsxFileName$U,
|
|
5680
5752
|
lineNumber: 236,
|
|
5681
5753
|
columnNumber: 13
|
|
5682
5754
|
}
|
|
@@ -5684,7 +5756,7 @@ const Toast = _ref => {
|
|
|
5684
5756
|
direction: "row",
|
|
5685
5757
|
__self: undefined,
|
|
5686
5758
|
__source: {
|
|
5687
|
-
fileName: _jsxFileName$
|
|
5759
|
+
fileName: _jsxFileName$U,
|
|
5688
5760
|
lineNumber: 237,
|
|
5689
5761
|
columnNumber: 15
|
|
5690
5762
|
}
|
|
@@ -5692,7 +5764,7 @@ const Toast = _ref => {
|
|
|
5692
5764
|
variant: variant,
|
|
5693
5765
|
__self: undefined,
|
|
5694
5766
|
__source: {
|
|
5695
|
-
fileName: _jsxFileName$
|
|
5767
|
+
fileName: _jsxFileName$U,
|
|
5696
5768
|
lineNumber: 238,
|
|
5697
5769
|
columnNumber: 17
|
|
5698
5770
|
}
|
|
@@ -5704,7 +5776,7 @@ const Toast = _ref => {
|
|
|
5704
5776
|
},
|
|
5705
5777
|
__self: undefined,
|
|
5706
5778
|
__source: {
|
|
5707
|
-
fileName: _jsxFileName$
|
|
5779
|
+
fileName: _jsxFileName$U,
|
|
5708
5780
|
lineNumber: 239,
|
|
5709
5781
|
columnNumber: 17
|
|
5710
5782
|
}
|
|
@@ -5712,7 +5784,7 @@ const Toast = _ref => {
|
|
|
5712
5784
|
justify: "between",
|
|
5713
5785
|
__self: undefined,
|
|
5714
5786
|
__source: {
|
|
5715
|
-
fileName: _jsxFileName$
|
|
5787
|
+
fileName: _jsxFileName$U,
|
|
5716
5788
|
lineNumber: 247,
|
|
5717
5789
|
columnNumber: 21
|
|
5718
5790
|
}
|
|
@@ -5727,7 +5799,7 @@ const Toast = _ref => {
|
|
|
5727
5799
|
},
|
|
5728
5800
|
__self: undefined,
|
|
5729
5801
|
__source: {
|
|
5730
|
-
fileName: _jsxFileName$
|
|
5802
|
+
fileName: _jsxFileName$U,
|
|
5731
5803
|
lineNumber: 248,
|
|
5732
5804
|
columnNumber: 23
|
|
5733
5805
|
}
|
|
@@ -5736,7 +5808,7 @@ const Toast = _ref => {
|
|
|
5736
5808
|
color: "secondary",
|
|
5737
5809
|
__self: undefined,
|
|
5738
5810
|
__source: {
|
|
5739
|
-
fileName: _jsxFileName$
|
|
5811
|
+
fileName: _jsxFileName$U,
|
|
5740
5812
|
lineNumber: 262,
|
|
5741
5813
|
columnNumber: 19
|
|
5742
5814
|
}
|
|
@@ -5751,7 +5823,7 @@ const Toast = _ref => {
|
|
|
5751
5823
|
hasTitle: !!title,
|
|
5752
5824
|
__self: undefined,
|
|
5753
5825
|
__source: {
|
|
5754
|
-
fileName: _jsxFileName$
|
|
5826
|
+
fileName: _jsxFileName$U,
|
|
5755
5827
|
lineNumber: 266,
|
|
5756
5828
|
columnNumber: 17
|
|
5757
5829
|
}
|
|
@@ -5760,7 +5832,7 @@ const Toast = _ref => {
|
|
|
5760
5832
|
size: "16px",
|
|
5761
5833
|
__self: undefined,
|
|
5762
5834
|
__source: {
|
|
5763
|
-
fileName: _jsxFileName$
|
|
5835
|
+
fileName: _jsxFileName$U,
|
|
5764
5836
|
lineNumber: 276,
|
|
5765
5837
|
columnNumber: 19
|
|
5766
5838
|
}
|
|
@@ -5775,7 +5847,7 @@ const Toast = _ref => {
|
|
|
5775
5847
|
},
|
|
5776
5848
|
__self: undefined,
|
|
5777
5849
|
__source: {
|
|
5778
|
-
fileName: _jsxFileName$
|
|
5850
|
+
fileName: _jsxFileName$U,
|
|
5779
5851
|
lineNumber: 280,
|
|
5780
5852
|
columnNumber: 17
|
|
5781
5853
|
}
|
|
@@ -5797,8 +5869,8 @@ Toast.defaultProps = {
|
|
|
5797
5869
|
dismissAfter: 5000
|
|
5798
5870
|
};
|
|
5799
5871
|
|
|
5800
|
-
const _excluded$
|
|
5801
|
-
var _jsxFileName$
|
|
5872
|
+
const _excluded$s = ["preventDuplicate"];
|
|
5873
|
+
var _jsxFileName$T = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/ToastContainer.js";
|
|
5802
5874
|
const ToastBox = styled(Flex$1, {
|
|
5803
5875
|
position: 'fixed',
|
|
5804
5876
|
variants: {
|
|
@@ -5845,7 +5917,7 @@ const ToastContainer = ({
|
|
|
5845
5917
|
},
|
|
5846
5918
|
__self: undefined,
|
|
5847
5919
|
__source: {
|
|
5848
|
-
fileName: _jsxFileName$
|
|
5920
|
+
fileName: _jsxFileName$T,
|
|
5849
5921
|
lineNumber: 43,
|
|
5850
5922
|
columnNumber: 5
|
|
5851
5923
|
}
|
|
@@ -5853,7 +5925,7 @@ const ToastContainer = ({
|
|
|
5853
5925
|
position: position,
|
|
5854
5926
|
__self: undefined,
|
|
5855
5927
|
__source: {
|
|
5856
|
-
fileName: _jsxFileName$
|
|
5928
|
+
fileName: _jsxFileName$T,
|
|
5857
5929
|
lineNumber: 44,
|
|
5858
5930
|
columnNumber: 7
|
|
5859
5931
|
}
|
|
@@ -5861,14 +5933,14 @@ const ToastContainer = ({
|
|
|
5861
5933
|
const {
|
|
5862
5934
|
preventDuplicate
|
|
5863
5935
|
} = item,
|
|
5864
|
-
toast = _objectWithoutPropertiesLoose(item, _excluded$
|
|
5936
|
+
toast = _objectWithoutPropertiesLoose(item, _excluded$s);
|
|
5865
5937
|
return /*#__PURE__*/React.createElement(Toast, _extends({
|
|
5866
5938
|
key: preventDuplicate ? toast.id : `${toast.id}-${index}`,
|
|
5867
5939
|
onRemove: () => removeToast(toast.id)
|
|
5868
5940
|
}, toast, {
|
|
5869
5941
|
__self: undefined,
|
|
5870
5942
|
__source: {
|
|
5871
|
-
fileName: _jsxFileName$
|
|
5943
|
+
fileName: _jsxFileName$T,
|
|
5872
5944
|
lineNumber: 47,
|
|
5873
5945
|
columnNumber: 18
|
|
5874
5946
|
}
|
|
@@ -7093,16 +7165,13 @@ const catchError = e => {
|
|
|
7093
7165
|
return message;
|
|
7094
7166
|
};
|
|
7095
7167
|
|
|
7096
|
-
const _excluded$
|
|
7097
|
-
var _jsxFileName$
|
|
7168
|
+
const _excluded$r = ["id", "disabledOfflineIntercept"];
|
|
7169
|
+
var _jsxFileName$S = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/context/ToastProvider.js";
|
|
7098
7170
|
let toastCount = 0;
|
|
7099
7171
|
const ToastProvider = ({
|
|
7100
7172
|
children,
|
|
7101
7173
|
translations
|
|
7102
7174
|
}) => {
|
|
7103
|
-
console.warn({
|
|
7104
|
-
translations
|
|
7105
|
-
});
|
|
7106
7175
|
const isOnline = useNavigatorOnLine();
|
|
7107
7176
|
const [toasts, setToasts] = useState([]);
|
|
7108
7177
|
const {
|
|
@@ -7119,11 +7188,6 @@ const ToastProvider = ({
|
|
|
7119
7188
|
errorMsg = errorMsg.replace(`$${key}`, values[key]);
|
|
7120
7189
|
});
|
|
7121
7190
|
}
|
|
7122
|
-
console.warn({
|
|
7123
|
-
translations,
|
|
7124
|
-
e,
|
|
7125
|
-
errorMsg
|
|
7126
|
-
});
|
|
7127
7191
|
return errorMsg;
|
|
7128
7192
|
}, [translations, i18n.language]);
|
|
7129
7193
|
const createToastInstance = useCallback(toast => {
|
|
@@ -7131,7 +7195,7 @@ const ToastProvider = ({
|
|
|
7131
7195
|
id,
|
|
7132
7196
|
disabledOfflineIntercept
|
|
7133
7197
|
} = toast,
|
|
7134
|
-
rest = _objectWithoutPropertiesLoose(toast, _excluded$
|
|
7198
|
+
rest = _objectWithoutPropertiesLoose(toast, _excluded$r);
|
|
7135
7199
|
|
|
7136
7200
|
// eslint-disable-next-line no-plusplus
|
|
7137
7201
|
const uniqueId = ++toastCount;
|
|
@@ -7144,11 +7208,6 @@ const ToastProvider = ({
|
|
|
7144
7208
|
onClickOfAction: false,
|
|
7145
7209
|
isExternalOfAction: false
|
|
7146
7210
|
};
|
|
7147
|
-
console.warn({
|
|
7148
|
-
toast,
|
|
7149
|
-
isValidElement: /*#__PURE__*/React.isValidElement(toast.description),
|
|
7150
|
-
translations
|
|
7151
|
-
});
|
|
7152
7211
|
return Object.assign({
|
|
7153
7212
|
id: toastId,
|
|
7154
7213
|
position: TOP_RIGHT_POSITION
|
|
@@ -7176,8 +7235,8 @@ const ToastProvider = ({
|
|
|
7176
7235
|
},
|
|
7177
7236
|
__self: undefined,
|
|
7178
7237
|
__source: {
|
|
7179
|
-
fileName: _jsxFileName$
|
|
7180
|
-
lineNumber:
|
|
7238
|
+
fileName: _jsxFileName$S,
|
|
7239
|
+
lineNumber: 81,
|
|
7181
7240
|
columnNumber: 5
|
|
7182
7241
|
}
|
|
7183
7242
|
}, children, /*#__PURE__*/React.createElement(ToastContainer, {
|
|
@@ -7185,8 +7244,8 @@ const ToastProvider = ({
|
|
|
7185
7244
|
position: TOP_RIGHT_POSITION,
|
|
7186
7245
|
__self: undefined,
|
|
7187
7246
|
__source: {
|
|
7188
|
-
fileName: _jsxFileName$
|
|
7189
|
-
lineNumber:
|
|
7247
|
+
fileName: _jsxFileName$S,
|
|
7248
|
+
lineNumber: 83,
|
|
7190
7249
|
columnNumber: 7
|
|
7191
7250
|
}
|
|
7192
7251
|
}), /*#__PURE__*/React.createElement(ToastContainer, {
|
|
@@ -7194,8 +7253,8 @@ const ToastProvider = ({
|
|
|
7194
7253
|
position: TOP_LEFT_POSITION,
|
|
7195
7254
|
__self: undefined,
|
|
7196
7255
|
__source: {
|
|
7197
|
-
fileName: _jsxFileName$
|
|
7198
|
-
lineNumber:
|
|
7256
|
+
fileName: _jsxFileName$S,
|
|
7257
|
+
lineNumber: 87,
|
|
7199
7258
|
columnNumber: 7
|
|
7200
7259
|
}
|
|
7201
7260
|
}), /*#__PURE__*/React.createElement(ToastContainer, {
|
|
@@ -7203,8 +7262,8 @@ const ToastProvider = ({
|
|
|
7203
7262
|
position: BOTTOM_RIGHT_POSITION,
|
|
7204
7263
|
__self: undefined,
|
|
7205
7264
|
__source: {
|
|
7206
|
-
fileName: _jsxFileName$
|
|
7207
|
-
lineNumber:
|
|
7265
|
+
fileName: _jsxFileName$S,
|
|
7266
|
+
lineNumber: 91,
|
|
7208
7267
|
columnNumber: 7
|
|
7209
7268
|
}
|
|
7210
7269
|
}), /*#__PURE__*/React.createElement(ToastContainer, {
|
|
@@ -7212,8 +7271,8 @@ const ToastProvider = ({
|
|
|
7212
7271
|
position: BOTTOM_LEFT_POSITION,
|
|
7213
7272
|
__self: undefined,
|
|
7214
7273
|
__source: {
|
|
7215
|
-
fileName: _jsxFileName$
|
|
7216
|
-
lineNumber:
|
|
7274
|
+
fileName: _jsxFileName$S,
|
|
7275
|
+
lineNumber: 95,
|
|
7217
7276
|
columnNumber: 7
|
|
7218
7277
|
}
|
|
7219
7278
|
}));
|
|
@@ -7225,8 +7284,8 @@ const ConditionalWrapper = ({
|
|
|
7225
7284
|
children
|
|
7226
7285
|
}) => condition ? wrapper(children) : children;
|
|
7227
7286
|
|
|
7228
|
-
const _excluded$
|
|
7229
|
-
var _jsxFileName$
|
|
7287
|
+
const _excluded$q = ["count", "maxCount", "css"];
|
|
7288
|
+
var _jsxFileName$R = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormGroup/FormGroup.js";
|
|
7230
7289
|
const formLabelClassStyle = {
|
|
7231
7290
|
alignItems: 'start !important',
|
|
7232
7291
|
'& > div': {
|
|
@@ -7329,7 +7388,7 @@ const FormGroup = _ref => {
|
|
|
7329
7388
|
maxCount,
|
|
7330
7389
|
css
|
|
7331
7390
|
} = _ref,
|
|
7332
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7391
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
7333
7392
|
const withCounter = Boolean(count || maxCount);
|
|
7334
7393
|
return /*#__PURE__*/React__default.createElement(ConditionalWrapper, {
|
|
7335
7394
|
condition: withCounter,
|
|
@@ -7338,7 +7397,7 @@ const FormGroup = _ref => {
|
|
|
7338
7397
|
css: css,
|
|
7339
7398
|
__self: undefined,
|
|
7340
7399
|
__source: {
|
|
7341
|
-
fileName: _jsxFileName$
|
|
7400
|
+
fileName: _jsxFileName$R,
|
|
7342
7401
|
lineNumber: 115,
|
|
7343
7402
|
columnNumber: 9
|
|
7344
7403
|
}
|
|
@@ -7351,14 +7410,14 @@ const FormGroup = _ref => {
|
|
|
7351
7410
|
},
|
|
7352
7411
|
__self: undefined,
|
|
7353
7412
|
__source: {
|
|
7354
|
-
fileName: _jsxFileName$
|
|
7413
|
+
fileName: _jsxFileName$R,
|
|
7355
7414
|
lineNumber: 116,
|
|
7356
7415
|
columnNumber: 11
|
|
7357
7416
|
}
|
|
7358
7417
|
}, count, "/", maxCount), children),
|
|
7359
7418
|
__self: undefined,
|
|
7360
7419
|
__source: {
|
|
7361
|
-
fileName: _jsxFileName$
|
|
7420
|
+
fileName: _jsxFileName$R,
|
|
7362
7421
|
lineNumber: 112,
|
|
7363
7422
|
columnNumber: 5
|
|
7364
7423
|
}
|
|
@@ -7368,7 +7427,7 @@ const FormGroup = _ref => {
|
|
|
7368
7427
|
}, props, {
|
|
7369
7428
|
__self: undefined,
|
|
7370
7429
|
__source: {
|
|
7371
|
-
fileName: _jsxFileName$
|
|
7430
|
+
fileName: _jsxFileName$R,
|
|
7372
7431
|
lineNumber: 123,
|
|
7373
7432
|
columnNumber: 7
|
|
7374
7433
|
}
|
|
@@ -7376,8 +7435,8 @@ const FormGroup = _ref => {
|
|
|
7376
7435
|
};
|
|
7377
7436
|
FormGroup.displayName = 'FormGroup';
|
|
7378
7437
|
|
|
7379
|
-
const _excluded$
|
|
7380
|
-
var _jsxFileName$
|
|
7438
|
+
const _excluded$p = ["children", "htmlFor", "variant", "variants", "tooltipLabel", "count", "maxCount", "labelCss"];
|
|
7439
|
+
var _jsxFileName$Q = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormLabel/Label.js";
|
|
7381
7440
|
const StyledLabel$1 = styled(LabelPrimitive.Root, Text$1, {
|
|
7382
7441
|
display: 'inline-block',
|
|
7383
7442
|
fontSize: '$label',
|
|
@@ -7409,13 +7468,13 @@ const FormLabel = _ref => {
|
|
|
7409
7468
|
maxCount,
|
|
7410
7469
|
labelCss
|
|
7411
7470
|
} = _ref,
|
|
7412
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7471
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
7413
7472
|
return /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
7414
7473
|
justify: "between",
|
|
7415
7474
|
className: "form-label",
|
|
7416
7475
|
__self: undefined,
|
|
7417
7476
|
__source: {
|
|
7418
|
-
fileName: _jsxFileName$
|
|
7477
|
+
fileName: _jsxFileName$Q,
|
|
7419
7478
|
lineNumber: 36,
|
|
7420
7479
|
columnNumber: 5
|
|
7421
7480
|
}
|
|
@@ -7425,7 +7484,7 @@ const FormLabel = _ref => {
|
|
|
7425
7484
|
}, props, {
|
|
7426
7485
|
__self: undefined,
|
|
7427
7486
|
__source: {
|
|
7428
|
-
fileName: _jsxFileName$
|
|
7487
|
+
fileName: _jsxFileName$Q,
|
|
7429
7488
|
lineNumber: 37,
|
|
7430
7489
|
columnNumber: 7
|
|
7431
7490
|
}
|
|
@@ -7435,7 +7494,7 @@ const FormLabel = _ref => {
|
|
|
7435
7494
|
css: labelCss,
|
|
7436
7495
|
__self: undefined,
|
|
7437
7496
|
__source: {
|
|
7438
|
-
fileName: _jsxFileName$
|
|
7497
|
+
fileName: _jsxFileName$Q,
|
|
7439
7498
|
lineNumber: 38,
|
|
7440
7499
|
columnNumber: 9
|
|
7441
7500
|
}
|
|
@@ -7450,7 +7509,7 @@ const FormLabel = _ref => {
|
|
|
7450
7509
|
},
|
|
7451
7510
|
__self: undefined,
|
|
7452
7511
|
__source: {
|
|
7453
|
-
fileName: _jsxFileName$
|
|
7512
|
+
fileName: _jsxFileName$Q,
|
|
7454
7513
|
lineNumber: 42,
|
|
7455
7514
|
columnNumber: 11
|
|
7456
7515
|
}
|
|
@@ -7458,14 +7517,14 @@ const FormLabel = _ref => {
|
|
|
7458
7517
|
label: tooltipLabel,
|
|
7459
7518
|
__self: undefined,
|
|
7460
7519
|
__source: {
|
|
7461
|
-
fileName: _jsxFileName$
|
|
7520
|
+
fileName: _jsxFileName$Q,
|
|
7462
7521
|
lineNumber: 56,
|
|
7463
7522
|
columnNumber: 11
|
|
7464
7523
|
}
|
|
7465
7524
|
}, /*#__PURE__*/React__default.createElement(StyledHelpIcon, {
|
|
7466
7525
|
__self: undefined,
|
|
7467
7526
|
__source: {
|
|
7468
|
-
fileName: _jsxFileName$
|
|
7527
|
+
fileName: _jsxFileName$Q,
|
|
7469
7528
|
lineNumber: 57,
|
|
7470
7529
|
columnNumber: 13
|
|
7471
7530
|
}
|
|
@@ -7474,7 +7533,7 @@ const FormLabel = _ref => {
|
|
|
7474
7533
|
color: "disable",
|
|
7475
7534
|
__self: undefined,
|
|
7476
7535
|
__source: {
|
|
7477
|
-
fileName: _jsxFileName$
|
|
7536
|
+
fileName: _jsxFileName$Q,
|
|
7478
7537
|
lineNumber: 62,
|
|
7479
7538
|
columnNumber: 9
|
|
7480
7539
|
}
|
|
@@ -7493,8 +7552,8 @@ FormLabel.defaultProps = {
|
|
|
7493
7552
|
};
|
|
7494
7553
|
FormLabel.displayName = 'FormLabel';
|
|
7495
7554
|
|
|
7496
|
-
const _excluded$
|
|
7497
|
-
var _jsxFileName$
|
|
7555
|
+
const _excluded$o = ["children", "error", "errorMessage"];
|
|
7556
|
+
var _jsxFileName$P = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormHelper/Helper.js";
|
|
7498
7557
|
const StyledHelper = styled(Text$1, {
|
|
7499
7558
|
display: 'inline-block',
|
|
7500
7559
|
color: '$textSecondary',
|
|
@@ -7512,7 +7571,7 @@ const FormHelper = _ref => {
|
|
|
7512
7571
|
error,
|
|
7513
7572
|
errorMessage
|
|
7514
7573
|
} = _ref,
|
|
7515
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7574
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
7516
7575
|
const errorByMessage = !!errorMessage;
|
|
7517
7576
|
if (error === undefined && errorByMessage) {
|
|
7518
7577
|
return /*#__PURE__*/React__default.createElement(StyledHelper, _extends({
|
|
@@ -7522,7 +7581,7 @@ const FormHelper = _ref => {
|
|
|
7522
7581
|
}, props, {
|
|
7523
7582
|
__self: undefined,
|
|
7524
7583
|
__source: {
|
|
7525
|
-
fileName: _jsxFileName$
|
|
7584
|
+
fileName: _jsxFileName$P,
|
|
7526
7585
|
lineNumber: 22,
|
|
7527
7586
|
columnNumber: 7
|
|
7528
7587
|
}
|
|
@@ -7538,7 +7597,7 @@ const FormHelper = _ref => {
|
|
|
7538
7597
|
}, props, {
|
|
7539
7598
|
__self: undefined,
|
|
7540
7599
|
__source: {
|
|
7541
|
-
fileName: _jsxFileName$
|
|
7600
|
+
fileName: _jsxFileName$P,
|
|
7542
7601
|
lineNumber: 31,
|
|
7543
7602
|
columnNumber: 5
|
|
7544
7603
|
}
|
|
@@ -7549,7 +7608,7 @@ FormHelper.propTypes = {
|
|
|
7549
7608
|
};
|
|
7550
7609
|
FormHelper.displayName = 'FormHelper';
|
|
7551
7610
|
|
|
7552
|
-
var _jsxFileName$
|
|
7611
|
+
var _jsxFileName$O = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/CheckboxGroup.js";
|
|
7553
7612
|
const CheckboxContext = /*#__PURE__*/createContext();
|
|
7554
7613
|
const CheckboxGroup = ({
|
|
7555
7614
|
children,
|
|
@@ -7590,7 +7649,7 @@ const CheckboxGroup = ({
|
|
|
7590
7649
|
value: values,
|
|
7591
7650
|
__self: undefined,
|
|
7592
7651
|
__source: {
|
|
7593
|
-
fileName: _jsxFileName$
|
|
7652
|
+
fileName: _jsxFileName$O,
|
|
7594
7653
|
lineNumber: 35,
|
|
7595
7654
|
columnNumber: 5
|
|
7596
7655
|
}
|
|
@@ -7607,7 +7666,7 @@ CheckboxGroup.defaultProps = {
|
|
|
7607
7666
|
};
|
|
7608
7667
|
CheckboxGroup.displayName = 'CheckboxGroup';
|
|
7609
7668
|
|
|
7610
|
-
var _jsxFileName$
|
|
7669
|
+
var _jsxFileName$N = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/CheckOutline.js";
|
|
7611
7670
|
const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
7612
7671
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7613
7672
|
xmlSpace: "preserve",
|
|
@@ -7624,7 +7683,7 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
|
|
|
7624
7683
|
}, props, {
|
|
7625
7684
|
__self: undefined,
|
|
7626
7685
|
__source: {
|
|
7627
|
-
fileName: _jsxFileName$
|
|
7686
|
+
fileName: _jsxFileName$N,
|
|
7628
7687
|
lineNumber: 4,
|
|
7629
7688
|
columnNumber: 3
|
|
7630
7689
|
}
|
|
@@ -7636,7 +7695,7 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
|
|
|
7636
7695
|
},
|
|
7637
7696
|
__self: undefined,
|
|
7638
7697
|
__source: {
|
|
7639
|
-
fileName: _jsxFileName$
|
|
7698
|
+
fileName: _jsxFileName$N,
|
|
7640
7699
|
lineNumber: 19,
|
|
7641
7700
|
columnNumber: 5
|
|
7642
7701
|
}
|
|
@@ -7648,13 +7707,13 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
|
|
|
7648
7707
|
},
|
|
7649
7708
|
__self: undefined,
|
|
7650
7709
|
__source: {
|
|
7651
|
-
fileName: _jsxFileName$
|
|
7710
|
+
fileName: _jsxFileName$N,
|
|
7652
7711
|
lineNumber: 26,
|
|
7653
7712
|
columnNumber: 5
|
|
7654
7713
|
}
|
|
7655
7714
|
}));
|
|
7656
7715
|
|
|
7657
|
-
var _jsxFileName$
|
|
7716
|
+
var _jsxFileName$M = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/MinusOutline.js";
|
|
7658
7717
|
const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
7659
7718
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7660
7719
|
xmlSpace: "preserve",
|
|
@@ -7671,7 +7730,7 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
|
|
|
7671
7730
|
}, props, {
|
|
7672
7731
|
__self: undefined,
|
|
7673
7732
|
__source: {
|
|
7674
|
-
fileName: _jsxFileName$
|
|
7733
|
+
fileName: _jsxFileName$M,
|
|
7675
7734
|
lineNumber: 4,
|
|
7676
7735
|
columnNumber: 3
|
|
7677
7736
|
}
|
|
@@ -7683,7 +7742,7 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
|
|
|
7683
7742
|
},
|
|
7684
7743
|
__self: undefined,
|
|
7685
7744
|
__source: {
|
|
7686
|
-
fileName: _jsxFileName$
|
|
7745
|
+
fileName: _jsxFileName$M,
|
|
7687
7746
|
lineNumber: 19,
|
|
7688
7747
|
columnNumber: 5
|
|
7689
7748
|
}
|
|
@@ -7695,14 +7754,14 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
|
|
|
7695
7754
|
d: "M14.31 10.41H3.9v-2.6h10.41z",
|
|
7696
7755
|
__self: undefined,
|
|
7697
7756
|
__source: {
|
|
7698
|
-
fileName: _jsxFileName$
|
|
7757
|
+
fileName: _jsxFileName$M,
|
|
7699
7758
|
lineNumber: 26,
|
|
7700
7759
|
columnNumber: 5
|
|
7701
7760
|
}
|
|
7702
7761
|
}));
|
|
7703
7762
|
|
|
7704
|
-
const _excluded$
|
|
7705
|
-
var _jsxFileName$
|
|
7763
|
+
const _excluded$n = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
|
|
7764
|
+
var _jsxFileName$L = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/InputCheckbox.js";
|
|
7706
7765
|
const StyledIndicator$2 = styled(CheckboxPrimitive.Indicator, {
|
|
7707
7766
|
alignItems: 'center',
|
|
7708
7767
|
display: 'flex',
|
|
@@ -7760,7 +7819,7 @@ const Checkbox = _ref => {
|
|
|
7760
7819
|
index,
|
|
7761
7820
|
value
|
|
7762
7821
|
} = _ref,
|
|
7763
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7822
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
7764
7823
|
const context = useContext(CheckboxContext);
|
|
7765
7824
|
const [isChecked, setChecked] = useState(false);
|
|
7766
7825
|
useEffect(() => {
|
|
@@ -7781,28 +7840,28 @@ const Checkbox = _ref => {
|
|
|
7781
7840
|
}, props, {
|
|
7782
7841
|
__self: undefined,
|
|
7783
7842
|
__source: {
|
|
7784
|
-
fileName: _jsxFileName$
|
|
7843
|
+
fileName: _jsxFileName$L,
|
|
7785
7844
|
lineNumber: 64,
|
|
7786
7845
|
columnNumber: 5
|
|
7787
7846
|
}
|
|
7788
7847
|
}), /*#__PURE__*/React__default.createElement(StyledIndicator$2, {
|
|
7789
7848
|
__self: undefined,
|
|
7790
7849
|
__source: {
|
|
7791
|
-
fileName: _jsxFileName$
|
|
7850
|
+
fileName: _jsxFileName$L,
|
|
7792
7851
|
lineNumber: 77,
|
|
7793
7852
|
columnNumber: 7
|
|
7794
7853
|
}
|
|
7795
7854
|
}, indeterminate ? /*#__PURE__*/React__default.createElement(SvgMinusOutline, {
|
|
7796
7855
|
__self: undefined,
|
|
7797
7856
|
__source: {
|
|
7798
|
-
fileName: _jsxFileName$
|
|
7857
|
+
fileName: _jsxFileName$L,
|
|
7799
7858
|
lineNumber: 77,
|
|
7800
7859
|
columnNumber: 41
|
|
7801
7860
|
}
|
|
7802
7861
|
}) : /*#__PURE__*/React__default.createElement(CheckOutline$1, {
|
|
7803
7862
|
__self: undefined,
|
|
7804
7863
|
__source: {
|
|
7805
|
-
fileName: _jsxFileName$
|
|
7864
|
+
fileName: _jsxFileName$L,
|
|
7806
7865
|
lineNumber: 77,
|
|
7807
7866
|
columnNumber: 60
|
|
7808
7867
|
}
|
|
@@ -7815,14 +7874,14 @@ const InputCheckbox = _ref2 => {
|
|
|
7815
7874
|
gap: 4,
|
|
7816
7875
|
__self: undefined,
|
|
7817
7876
|
__source: {
|
|
7818
|
-
fileName: _jsxFileName$
|
|
7877
|
+
fileName: _jsxFileName$L,
|
|
7819
7878
|
lineNumber: 84,
|
|
7820
7879
|
columnNumber: 5
|
|
7821
7880
|
}
|
|
7822
7881
|
}, /*#__PURE__*/React__default.createElement(Checkbox, _extends({}, props, {
|
|
7823
7882
|
__self: undefined,
|
|
7824
7883
|
__source: {
|
|
7825
|
-
fileName: _jsxFileName$
|
|
7884
|
+
fileName: _jsxFileName$L,
|
|
7826
7885
|
lineNumber: 85,
|
|
7827
7886
|
columnNumber: 7
|
|
7828
7887
|
}
|
|
@@ -7838,14 +7897,14 @@ const InputCheckbox = _ref2 => {
|
|
|
7838
7897
|
},
|
|
7839
7898
|
__self: undefined,
|
|
7840
7899
|
__source: {
|
|
7841
|
-
fileName: _jsxFileName$
|
|
7900
|
+
fileName: _jsxFileName$L,
|
|
7842
7901
|
lineNumber: 86,
|
|
7843
7902
|
columnNumber: 7
|
|
7844
7903
|
}
|
|
7845
7904
|
}, props.label)) : /*#__PURE__*/React__default.createElement(Checkbox, _extends({}, props, {
|
|
7846
7905
|
__self: undefined,
|
|
7847
7906
|
__source: {
|
|
7848
|
-
fileName: _jsxFileName$
|
|
7907
|
+
fileName: _jsxFileName$L,
|
|
7849
7908
|
lineNumber: 101,
|
|
7850
7909
|
columnNumber: 5
|
|
7851
7910
|
}
|
|
@@ -7862,8 +7921,8 @@ InputCheckbox.propTypes = {
|
|
|
7862
7921
|
};
|
|
7863
7922
|
InputCheckbox.displayName = 'InputCheckbox';
|
|
7864
7923
|
|
|
7865
|
-
const _excluded$
|
|
7866
|
-
var _jsxFileName$
|
|
7924
|
+
const _excluded$m = ["children", "size"];
|
|
7925
|
+
var _jsxFileName$K = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputGroup/InputGroup.js";
|
|
7867
7926
|
const InputGroupStyle = styled('div', {
|
|
7868
7927
|
display: 'flex',
|
|
7869
7928
|
width: '100%',
|
|
@@ -8002,7 +8061,7 @@ const InputGroup = _ref => {
|
|
|
8002
8061
|
children,
|
|
8003
8062
|
size = 'lg'
|
|
8004
8063
|
} = _ref,
|
|
8005
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8064
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
8006
8065
|
const isLetter = children.some(child => child.type.name === 'InputPrefix' || child.type.name === 'InputSuffix' || child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
|
|
8007
8066
|
const isElement = children.some(child => child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
|
|
8008
8067
|
const clone = children.map((child, index) => {
|
|
@@ -8025,7 +8084,7 @@ const InputGroup = _ref => {
|
|
|
8025
8084
|
isElement: isElement,
|
|
8026
8085
|
__self: undefined,
|
|
8027
8086
|
__source: {
|
|
8028
|
-
fileName: _jsxFileName$
|
|
8087
|
+
fileName: _jsxFileName$K,
|
|
8029
8088
|
lineNumber: 169,
|
|
8030
8089
|
columnNumber: 10
|
|
8031
8090
|
}
|
|
@@ -8201,8 +8260,8 @@ InputSuffix.propTypes = {
|
|
|
8201
8260
|
children: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
|
|
8202
8261
|
};
|
|
8203
8262
|
|
|
8204
|
-
const _excluded$
|
|
8205
|
-
var _jsxFileName$
|
|
8263
|
+
const _excluded$l = ["disabled", "readOnly"];
|
|
8264
|
+
var _jsxFileName$J = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputText/InputText.js";
|
|
8206
8265
|
const disabledStyle = {
|
|
8207
8266
|
backgroundColor: '$formDisable',
|
|
8208
8267
|
color: '$textDisable',
|
|
@@ -8375,7 +8434,7 @@ const InputText = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
8375
8434
|
disabled,
|
|
8376
8435
|
readOnly
|
|
8377
8436
|
} = _ref,
|
|
8378
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8437
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
8379
8438
|
return /*#__PURE__*/React__default.createElement(StyledInput$1, _extends({
|
|
8380
8439
|
ref: ref,
|
|
8381
8440
|
disabled: disabled,
|
|
@@ -8385,7 +8444,7 @@ const InputText = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
8385
8444
|
}, props, {
|
|
8386
8445
|
__self: undefined,
|
|
8387
8446
|
__source: {
|
|
8388
|
-
fileName: _jsxFileName$
|
|
8447
|
+
fileName: _jsxFileName$J,
|
|
8389
8448
|
lineNumber: 185,
|
|
8390
8449
|
columnNumber: 3
|
|
8391
8450
|
}
|
|
@@ -8403,8 +8462,8 @@ InputText.propTypes = {
|
|
|
8403
8462
|
};
|
|
8404
8463
|
InputText.displayName = 'InputText';
|
|
8405
8464
|
|
|
8406
|
-
const _excluded$
|
|
8407
|
-
var _jsxFileName$
|
|
8465
|
+
const _excluded$k = ["disabled", "readOnly"];
|
|
8466
|
+
var _jsxFileName$I = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputTextArea/InputTextArea.js";
|
|
8408
8467
|
const StyledTextArea = styled(StyledInput$1, {
|
|
8409
8468
|
variants: {
|
|
8410
8469
|
size: {
|
|
@@ -8425,7 +8484,7 @@ const InputTextArea = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
8425
8484
|
disabled,
|
|
8426
8485
|
readOnly
|
|
8427
8486
|
} = _ref,
|
|
8428
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8487
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
8429
8488
|
const textareaRef = useRef(null);
|
|
8430
8489
|
useEffect(() => {
|
|
8431
8490
|
if (textareaRef.current) {
|
|
@@ -8459,7 +8518,7 @@ const InputTextArea = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
8459
8518
|
}, props, {
|
|
8460
8519
|
__self: undefined,
|
|
8461
8520
|
__source: {
|
|
8462
|
-
fileName: _jsxFileName$
|
|
8521
|
+
fileName: _jsxFileName$I,
|
|
8463
8522
|
lineNumber: 51,
|
|
8464
8523
|
columnNumber: 5
|
|
8465
8524
|
}
|
|
@@ -8482,21 +8541,21 @@ InputTextArea.defaultProps = {
|
|
|
8482
8541
|
|
|
8483
8542
|
const InputRadioContext = /*#__PURE__*/React__default.createContext();
|
|
8484
8543
|
|
|
8485
|
-
var _jsxFileName$
|
|
8544
|
+
var _jsxFileName$H = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadioGroup.js";
|
|
8486
8545
|
const RadioGroup = styled(RadioGroupPrimitive.Root, Flex$1);
|
|
8487
8546
|
function InputRadioGroup(props) {
|
|
8488
8547
|
return (props == null ? void 0 : props.children) && /*#__PURE__*/React__default.createElement(InputRadioContext.Provider, {
|
|
8489
8548
|
value: props,
|
|
8490
8549
|
__self: this,
|
|
8491
8550
|
__source: {
|
|
8492
|
-
fileName: _jsxFileName$
|
|
8551
|
+
fileName: _jsxFileName$H,
|
|
8493
8552
|
lineNumber: 13,
|
|
8494
8553
|
columnNumber: 7
|
|
8495
8554
|
}
|
|
8496
8555
|
}, /*#__PURE__*/React__default.createElement(RadioGroup, _extends({}, props, {
|
|
8497
8556
|
__self: this,
|
|
8498
8557
|
__source: {
|
|
8499
|
-
fileName: _jsxFileName$
|
|
8558
|
+
fileName: _jsxFileName$H,
|
|
8500
8559
|
lineNumber: 14,
|
|
8501
8560
|
columnNumber: 9
|
|
8502
8561
|
}
|
|
@@ -8515,8 +8574,8 @@ InputRadioGroup.propTypes = {
|
|
|
8515
8574
|
};
|
|
8516
8575
|
InputRadioGroup.displayName = 'InputRadioGroup';
|
|
8517
8576
|
|
|
8518
|
-
const _excluded$
|
|
8519
|
-
var _jsxFileName$
|
|
8577
|
+
const _excluded$j = ["id", "disabled", "css", "inputType", "inputProps", "description", "readOnly"];
|
|
8578
|
+
var _jsxFileName$G = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadio.js";
|
|
8520
8579
|
const INDICATOR_BASE_STYLES = {
|
|
8521
8580
|
alignItems: 'center',
|
|
8522
8581
|
display: 'flex',
|
|
@@ -8681,7 +8740,7 @@ const InputRadio = _ref => {
|
|
|
8681
8740
|
description,
|
|
8682
8741
|
readOnly
|
|
8683
8742
|
} = _ref,
|
|
8684
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8743
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
8685
8744
|
function renderInputType(type, checkedValue, onValueChange) {
|
|
8686
8745
|
switch (type) {
|
|
8687
8746
|
case 'number':
|
|
@@ -8694,7 +8753,7 @@ const InputRadio = _ref => {
|
|
|
8694
8753
|
asChild: true,
|
|
8695
8754
|
__self: this,
|
|
8696
8755
|
__source: {
|
|
8697
|
-
fileName: _jsxFileName$
|
|
8756
|
+
fileName: _jsxFileName$G,
|
|
8698
8757
|
lineNumber: 171,
|
|
8699
8758
|
columnNumber: 11
|
|
8700
8759
|
}
|
|
@@ -8710,7 +8769,7 @@ const InputRadio = _ref => {
|
|
|
8710
8769
|
asChild: true,
|
|
8711
8770
|
__self: this,
|
|
8712
8771
|
__source: {
|
|
8713
|
-
fileName: _jsxFileName$
|
|
8772
|
+
fileName: _jsxFileName$G,
|
|
8714
8773
|
lineNumber: 184,
|
|
8715
8774
|
columnNumber: 11
|
|
8716
8775
|
}
|
|
@@ -8729,7 +8788,7 @@ const InputRadio = _ref => {
|
|
|
8729
8788
|
},
|
|
8730
8789
|
__self: this,
|
|
8731
8790
|
__source: {
|
|
8732
|
-
fileName: _jsxFileName$
|
|
8791
|
+
fileName: _jsxFileName$G,
|
|
8733
8792
|
lineNumber: 198,
|
|
8734
8793
|
columnNumber: 11
|
|
8735
8794
|
}
|
|
@@ -8739,7 +8798,7 @@ const InputRadio = _ref => {
|
|
|
8739
8798
|
return /*#__PURE__*/React__default.createElement(InputRadioContext.Consumer, {
|
|
8740
8799
|
__self: undefined,
|
|
8741
8800
|
__source: {
|
|
8742
|
-
fileName: _jsxFileName$
|
|
8801
|
+
fileName: _jsxFileName$G,
|
|
8743
8802
|
lineNumber: 217,
|
|
8744
8803
|
columnNumber: 5
|
|
8745
8804
|
}
|
|
@@ -8756,7 +8815,7 @@ const InputRadio = _ref => {
|
|
|
8756
8815
|
outlined: outlined,
|
|
8757
8816
|
__self: undefined,
|
|
8758
8817
|
__source: {
|
|
8759
|
-
fileName: _jsxFileName$
|
|
8818
|
+
fileName: _jsxFileName$G,
|
|
8760
8819
|
lineNumber: 222,
|
|
8761
8820
|
columnNumber: 11
|
|
8762
8821
|
}
|
|
@@ -8771,7 +8830,7 @@ const InputRadio = _ref => {
|
|
|
8771
8830
|
css: css,
|
|
8772
8831
|
__self: undefined,
|
|
8773
8832
|
__source: {
|
|
8774
|
-
fileName: _jsxFileName$
|
|
8833
|
+
fileName: _jsxFileName$G,
|
|
8775
8834
|
lineNumber: 223,
|
|
8776
8835
|
columnNumber: 13
|
|
8777
8836
|
}
|
|
@@ -8780,7 +8839,7 @@ const InputRadio = _ref => {
|
|
|
8780
8839
|
gap: 4,
|
|
8781
8840
|
__self: undefined,
|
|
8782
8841
|
__source: {
|
|
8783
|
-
fileName: _jsxFileName$
|
|
8842
|
+
fileName: _jsxFileName$G,
|
|
8784
8843
|
lineNumber: 233,
|
|
8785
8844
|
columnNumber: 15
|
|
8786
8845
|
}
|
|
@@ -8791,14 +8850,14 @@ const InputRadio = _ref => {
|
|
|
8791
8850
|
}, props, {
|
|
8792
8851
|
__self: undefined,
|
|
8793
8852
|
__source: {
|
|
8794
|
-
fileName: _jsxFileName$
|
|
8853
|
+
fileName: _jsxFileName$G,
|
|
8795
8854
|
lineNumber: 234,
|
|
8796
8855
|
columnNumber: 17
|
|
8797
8856
|
}
|
|
8798
8857
|
}), /*#__PURE__*/React__default.createElement(StyledIndicator$1, {
|
|
8799
8858
|
__self: undefined,
|
|
8800
8859
|
__source: {
|
|
8801
|
-
fileName: _jsxFileName$
|
|
8860
|
+
fileName: _jsxFileName$G,
|
|
8802
8861
|
lineNumber: 235,
|
|
8803
8862
|
columnNumber: 19
|
|
8804
8863
|
}
|
|
@@ -8810,7 +8869,7 @@ const InputRadio = _ref => {
|
|
|
8810
8869
|
},
|
|
8811
8870
|
__self: undefined,
|
|
8812
8871
|
__source: {
|
|
8813
|
-
fileName: _jsxFileName$
|
|
8872
|
+
fileName: _jsxFileName$G,
|
|
8814
8873
|
lineNumber: 240,
|
|
8815
8874
|
columnNumber: 17
|
|
8816
8875
|
}
|
|
@@ -10964,8 +11023,8 @@ var NumberFormat = /*@__PURE__*/function (superclass) {
|
|
|
10964
11023
|
}(React__default.Component);
|
|
10965
11024
|
NumberFormat.defaultProps = defaultProps;
|
|
10966
11025
|
|
|
10967
|
-
const _excluded$
|
|
10968
|
-
var _jsxFileName$
|
|
11026
|
+
const _excluded$i = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled", "control", "name", "maxValueLength", "maxLength", "thousandSeparator"];
|
|
11027
|
+
var _jsxFileName$F = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputNumber/InputNumber.js";
|
|
10969
11028
|
const StyledInput = styled(NumberFormat, {
|
|
10970
11029
|
// Reset
|
|
10971
11030
|
appearance: 'none',
|
|
@@ -11160,7 +11219,7 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
11160
11219
|
maxLength,
|
|
11161
11220
|
thousandSeparator
|
|
11162
11221
|
} = _ref,
|
|
11163
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
11222
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
11164
11223
|
return /*#__PURE__*/React__default.createElement(ConditionalWrapper, {
|
|
11165
11224
|
condition: Boolean(control),
|
|
11166
11225
|
wrapper: child => /*#__PURE__*/React__default.createElement(Controller, {
|
|
@@ -11178,14 +11237,14 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
11178
11237
|
}),
|
|
11179
11238
|
__self: undefined,
|
|
11180
11239
|
__source: {
|
|
11181
|
-
fileName: _jsxFileName$
|
|
11240
|
+
fileName: _jsxFileName$F,
|
|
11182
11241
|
lineNumber: 225,
|
|
11183
11242
|
columnNumber: 9
|
|
11184
11243
|
}
|
|
11185
11244
|
}),
|
|
11186
11245
|
__self: undefined,
|
|
11187
11246
|
__source: {
|
|
11188
|
-
fileName: _jsxFileName$
|
|
11247
|
+
fileName: _jsxFileName$F,
|
|
11189
11248
|
lineNumber: 222,
|
|
11190
11249
|
columnNumber: 5
|
|
11191
11250
|
}
|
|
@@ -11203,7 +11262,7 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
11203
11262
|
}, props, {
|
|
11204
11263
|
__self: undefined,
|
|
11205
11264
|
__source: {
|
|
11206
|
-
fileName: _jsxFileName$
|
|
11265
|
+
fileName: _jsxFileName$F,
|
|
11207
11266
|
lineNumber: 234,
|
|
11208
11267
|
columnNumber: 7
|
|
11209
11268
|
}
|
|
@@ -11225,6 +11284,8 @@ InputNumber.defaultProps = {
|
|
|
11225
11284
|
InputNumber.name = 'InputText';
|
|
11226
11285
|
InputNumber.displayName = 'InputNumber';
|
|
11227
11286
|
|
|
11287
|
+
const _excluded$h = ["className", "children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"];
|
|
11288
|
+
var _jsxFileName$E = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tag/Tag.js";
|
|
11228
11289
|
const TagWrapper$4 = styled('div', {
|
|
11229
11290
|
boxSizing: 'border-box',
|
|
11230
11291
|
listStyle: 'none',
|
|
@@ -11267,10 +11328,6 @@ const TagWrapper$4 = styled('div', {
|
|
|
11267
11328
|
}
|
|
11268
11329
|
},
|
|
11269
11330
|
type: {
|
|
11270
|
-
default: {
|
|
11271
|
-
background: '$bgGray',
|
|
11272
|
-
color: '$textPrimary'
|
|
11273
|
-
},
|
|
11274
11331
|
success: {
|
|
11275
11332
|
background: '$bgSuccess',
|
|
11276
11333
|
color: '$textGreen'
|
|
@@ -11320,8 +11377,8 @@ const StyledIconLeft$3 = styled('div', {
|
|
|
11320
11377
|
alignItems: 'center',
|
|
11321
11378
|
color: 'inherit'
|
|
11322
11379
|
});
|
|
11323
|
-
const Tag = /*#__PURE__*/React__default.forwardRef((
|
|
11324
|
-
|
|
11380
|
+
const Tag = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
11381
|
+
let {
|
|
11325
11382
|
children,
|
|
11326
11383
|
onClick,
|
|
11327
11384
|
size,
|
|
@@ -11331,35 +11388,71 @@ const Tag = /*#__PURE__*/React__default.forwardRef((_a, ref) => {
|
|
|
11331
11388
|
type,
|
|
11332
11389
|
onRemove,
|
|
11333
11390
|
readOnly
|
|
11334
|
-
} =
|
|
11335
|
-
props =
|
|
11336
|
-
return
|
|
11391
|
+
} = _ref,
|
|
11392
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
11393
|
+
return /*#__PURE__*/React__default.createElement(TagWrapper$4, _extends({
|
|
11337
11394
|
ref: ref,
|
|
11338
11395
|
onClick: onClick,
|
|
11339
11396
|
size: size,
|
|
11340
11397
|
disabled: disabled,
|
|
11341
11398
|
type: type,
|
|
11342
|
-
readOnly: readOnly
|
|
11399
|
+
readOnly: readOnly,
|
|
11400
|
+
css: Object.assign({}, props.css)
|
|
11343
11401
|
}, props, {
|
|
11344
|
-
|
|
11345
|
-
|
|
11346
|
-
|
|
11347
|
-
|
|
11348
|
-
|
|
11349
|
-
|
|
11350
|
-
|
|
11351
|
-
|
|
11352
|
-
|
|
11353
|
-
|
|
11354
|
-
|
|
11355
|
-
|
|
11356
|
-
|
|
11357
|
-
|
|
11358
|
-
|
|
11359
|
-
|
|
11360
|
-
|
|
11361
|
-
|
|
11402
|
+
__self: undefined,
|
|
11403
|
+
__source: {
|
|
11404
|
+
fileName: _jsxFileName$E,
|
|
11405
|
+
lineNumber: 84,
|
|
11406
|
+
columnNumber: 7
|
|
11407
|
+
}
|
|
11408
|
+
}), icon !== undefined ? /*#__PURE__*/React__default.createElement(StyledIconLeft$3, {
|
|
11409
|
+
__self: undefined,
|
|
11410
|
+
__source: {
|
|
11411
|
+
fileName: _jsxFileName$E,
|
|
11412
|
+
lineNumber: 94,
|
|
11413
|
+
columnNumber: 31
|
|
11414
|
+
}
|
|
11415
|
+
}, icon) : null, /*#__PURE__*/React__default.createElement(TagComponent$1, {
|
|
11416
|
+
__self: undefined,
|
|
11417
|
+
__source: {
|
|
11418
|
+
fileName: _jsxFileName$E,
|
|
11419
|
+
lineNumber: 95,
|
|
11420
|
+
columnNumber: 9
|
|
11421
|
+
}
|
|
11422
|
+
}, children), isRemovable ? /*#__PURE__*/React__default.createElement(StyledIconRight$1, {
|
|
11423
|
+
disabled: disabled,
|
|
11424
|
+
onClick: onRemove,
|
|
11425
|
+
readOnly: readOnly,
|
|
11426
|
+
__self: undefined,
|
|
11427
|
+
__source: {
|
|
11428
|
+
fileName: _jsxFileName$E,
|
|
11429
|
+
lineNumber: 97,
|
|
11430
|
+
columnNumber: 11
|
|
11431
|
+
}
|
|
11432
|
+
}, /*#__PURE__*/React__default.createElement(CloseOutline, {
|
|
11433
|
+
size: 16,
|
|
11434
|
+
color: colors$8.iconSecondary,
|
|
11435
|
+
style: {
|
|
11436
|
+
verticalAlign: 'middle'
|
|
11437
|
+
},
|
|
11438
|
+
__self: undefined,
|
|
11439
|
+
__source: {
|
|
11440
|
+
fileName: _jsxFileName$E,
|
|
11441
|
+
lineNumber: 98,
|
|
11442
|
+
columnNumber: 13
|
|
11443
|
+
}
|
|
11444
|
+
})) : null);
|
|
11362
11445
|
});
|
|
11446
|
+
Tag.propTypes = {
|
|
11447
|
+
size: PropTypes.string,
|
|
11448
|
+
disabled: PropTypes.bool,
|
|
11449
|
+
type: PropTypes.string,
|
|
11450
|
+
icon: PropTypes.element,
|
|
11451
|
+
isRemovable: PropTypes.bool,
|
|
11452
|
+
onRemove: PropTypes.func,
|
|
11453
|
+
onClick: PropTypes.func,
|
|
11454
|
+
readOnly: PropTypes.bool
|
|
11455
|
+
};
|
|
11363
11456
|
Tag.defaultProps = {
|
|
11364
11457
|
size: 'sm',
|
|
11365
11458
|
isRemovable: false,
|
|
@@ -19829,7 +19922,6 @@ function InputDatePicker({
|
|
|
19829
19922
|
onClose,
|
|
19830
19923
|
mobileOnly,
|
|
19831
19924
|
desktopOnly,
|
|
19832
|
-
advanceOptions,
|
|
19833
19925
|
drawerCss,
|
|
19834
19926
|
drawerContentCss = {},
|
|
19835
19927
|
isMobile = false
|
|
@@ -19922,22 +20014,20 @@ function InputDatePicker({
|
|
|
19922
20014
|
}
|
|
19923
20015
|
};
|
|
19924
20016
|
const renderDatePicker = () => {
|
|
19925
|
-
const options = language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn;
|
|
19926
|
-
const advancePickerReducer = (advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.reducer) || advancePickerDate;
|
|
19927
20017
|
const handleDatePickerChange = value => {
|
|
19928
20018
|
if (showRangeControl || type === 'range_picker') {
|
|
19929
20019
|
if (rangePickerType === 'monthly') {
|
|
19930
20020
|
dispatch({
|
|
19931
20021
|
type: 'UPDATE',
|
|
19932
|
-
payload:
|
|
20022
|
+
payload: advancePickerDate('RANGE_MONTH', value)
|
|
19933
20023
|
});
|
|
19934
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(
|
|
20024
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerDate('RANGE_MONTH', value));
|
|
19935
20025
|
} else {
|
|
19936
20026
|
dispatch({
|
|
19937
20027
|
type: 'UPDATE',
|
|
19938
|
-
payload:
|
|
20028
|
+
payload: advancePickerDate('RANGE_WEEK', value)
|
|
19939
20029
|
});
|
|
19940
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(
|
|
20030
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerDate('RANGE_WEEK', value));
|
|
19941
20031
|
}
|
|
19942
20032
|
} else {
|
|
19943
20033
|
dispatch({
|
|
@@ -19949,10 +20039,10 @@ function InputDatePicker({
|
|
|
19949
20039
|
};
|
|
19950
20040
|
return jsx(DatePicker, {
|
|
19951
20041
|
advanceView: type === ADVANCE_PICKER && (!advanceView ? jsx(AdvancedOption, {
|
|
19952
|
-
options:
|
|
20042
|
+
options: language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn,
|
|
19953
20043
|
disabled: disabled,
|
|
19954
20044
|
optionHandler: value => {
|
|
19955
|
-
const reducedResult =
|
|
20045
|
+
const reducedResult = advancePickerDate(value, undefined);
|
|
19956
20046
|
const dateAsString = moment(reducedResult[1]).format('YYYY-MM-DD');
|
|
19957
20047
|
const payload = [reducedResult[0], moment(`${dateAsString} 23:59`, 'YYYY-MM-DD HH:mm').toDate()];
|
|
19958
20048
|
dispatch({
|
|
@@ -20201,24 +20291,22 @@ const InputDateRange = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
20201
20291
|
placement = 'bottom',
|
|
20202
20292
|
readOnly = false,
|
|
20203
20293
|
isInvalid = false,
|
|
20204
|
-
css
|
|
20205
|
-
advanceOptions
|
|
20294
|
+
css
|
|
20206
20295
|
} = _a,
|
|
20207
|
-
props = __rest(_a, ["onChange", "placeholder", "size", "disabled", "placement", "readOnly", "isInvalid", "css"
|
|
20296
|
+
props = __rest(_a, ["onChange", "placeholder", "size", "disabled", "placement", "readOnly", "isInvalid", "css"]);
|
|
20208
20297
|
const {
|
|
20209
20298
|
t,
|
|
20210
20299
|
i18n
|
|
20211
20300
|
} = useTranslation('translation');
|
|
20212
20301
|
const language = i18n.language;
|
|
20213
20302
|
const pickerOptions = language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn;
|
|
20214
|
-
const advancePickerReducer = (advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.reducer) || advancePickerDate;
|
|
20215
20303
|
return jsx(InputSelect, Object.assign({}, props, {
|
|
20216
|
-
option:
|
|
20304
|
+
option: pickerOptions.map(option => ({
|
|
20217
20305
|
name: option.label,
|
|
20218
20306
|
value: option.value
|
|
20219
20307
|
})),
|
|
20220
20308
|
onChange: selectedOption => {
|
|
20221
|
-
if (onChange) onChange(
|
|
20309
|
+
if (onChange) onChange(advancePickerDate(selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value, undefined));
|
|
20222
20310
|
},
|
|
20223
20311
|
placeholder: placeholder || t('placeholder.select', 'Pilih'),
|
|
20224
20312
|
size: size,
|
|
@@ -51995,236 +52083,12 @@ function PrimitiveLoadingBar({
|
|
|
51995
52083
|
}, void 0)]
|
|
51996
52084
|
}), void 0);
|
|
51997
52085
|
}
|
|
51998
|
-
const rotateKeyframe = keyframes({
|
|
51999
|
-
'100%': {
|
|
52000
|
-
transform: 'rotate(360deg)'
|
|
52001
|
-
}
|
|
52002
|
-
});
|
|
52003
|
-
const dashKeyframe = keyframes({
|
|
52004
|
-
'0%': {
|
|
52005
|
-
strokeDasharray: '0,125',
|
|
52006
|
-
strokeDashoffset: -8
|
|
52007
|
-
},
|
|
52008
|
-
'50%': {
|
|
52009
|
-
strokeDasharray: 125,
|
|
52010
|
-
strokeDashoffset: -10
|
|
52011
|
-
},
|
|
52012
|
-
'100%': {
|
|
52013
|
-
strokeDasharray: 125,
|
|
52014
|
-
strokeDashoffset: -125
|
|
52015
|
-
}
|
|
52016
|
-
});
|
|
52017
|
-
const LoadingContainer = styled$1('div', {
|
|
52018
|
-
position: 'absolute',
|
|
52019
|
-
width: 152,
|
|
52020
|
-
height: 152,
|
|
52021
|
-
top: '50%',
|
|
52022
|
-
left: '50%',
|
|
52023
|
-
transform: 'translate(-50%,-50%)'
|
|
52024
|
-
});
|
|
52025
|
-
const LogoSvg = styled$1('svg', {
|
|
52026
|
-
height: 152,
|
|
52027
|
-
position: 'absolute',
|
|
52028
|
-
width: 152
|
|
52029
|
-
});
|
|
52030
|
-
const LoadingSvg = styled$1('svg', {
|
|
52031
|
-
animation: `${rotateKeyframe} 2s linear infinite`,
|
|
52032
|
-
height: 152,
|
|
52033
|
-
position: 'absolute',
|
|
52034
|
-
width: 152,
|
|
52035
|
-
top: '-22px'
|
|
52036
|
-
});
|
|
52037
|
-
const LoadingBackground = styled$1('div', {
|
|
52038
|
-
background: 'conic-gradient(#fff5f6, #FF97A4, #02B4F3, #81CF77, #6D60AE, #FF6C53 320deg)',
|
|
52039
|
-
width: '100%',
|
|
52040
|
-
height: '100%'
|
|
52041
|
-
});
|
|
52042
|
-
const LoadingCircle = styled$1('circle', {
|
|
52043
|
-
stroke: 'white',
|
|
52044
|
-
strokeLinecap: 'round',
|
|
52045
|
-
transformOrigin: '50% 50%',
|
|
52046
|
-
transform: 'rotate(-102deg)',
|
|
52047
|
-
animation: `${dashKeyframe} 1.5s ease-in-out infinite`
|
|
52048
|
-
});
|
|
52049
|
-
const LoadingLabel = styled$1(Paragraph, {
|
|
52050
|
-
position: 'relative',
|
|
52051
|
-
top: 100
|
|
52052
|
-
});
|
|
52053
|
-
function CircularLoadingBar({
|
|
52054
|
-
label
|
|
52055
|
-
}) {
|
|
52056
|
-
return jsxs(LoadingContainer, {
|
|
52057
|
-
children: [jsxs(LogoSvg, Object.assign({
|
|
52058
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
52059
|
-
width: "152",
|
|
52060
|
-
height: "152",
|
|
52061
|
-
viewBox: "0 0 152 152",
|
|
52062
|
-
fill: "none"
|
|
52063
|
-
}, {
|
|
52064
|
-
children: [jsxs("g", Object.assign({
|
|
52065
|
-
filter: "url(#filter0_ddd_4303_695)"
|
|
52066
|
-
}, {
|
|
52067
|
-
children: [jsx("rect", {
|
|
52068
|
-
x: "46.0004",
|
|
52069
|
-
y: "23.9999",
|
|
52070
|
-
width: "60",
|
|
52071
|
-
height: "60",
|
|
52072
|
-
rx: "30",
|
|
52073
|
-
fill: "url(#paint0_linear_4303_695)"
|
|
52074
|
-
}, void 0), jsx("rect", {
|
|
52075
|
-
x: "46",
|
|
52076
|
-
y: "24",
|
|
52077
|
-
width: "60",
|
|
52078
|
-
height: "60",
|
|
52079
|
-
rx: "30",
|
|
52080
|
-
stroke: "url(#paint1_linear_4303_695)",
|
|
52081
|
-
"stroke-opacity": "0.99",
|
|
52082
|
-
"stroke-width": "5"
|
|
52083
|
-
}, void 0), jsx("path", {
|
|
52084
|
-
"fill-rule": "evenodd",
|
|
52085
|
-
"clip-rule": "evenodd",
|
|
52086
|
-
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",
|
|
52087
|
-
fill: "white"
|
|
52088
|
-
}, void 0)]
|
|
52089
|
-
}), void 0), jsxs("defs", {
|
|
52090
|
-
children: [jsxs("filter", Object.assign({
|
|
52091
|
-
id: "filter0_ddd_4303_695",
|
|
52092
|
-
x: "0.5",
|
|
52093
|
-
y: "0.5",
|
|
52094
|
-
width: "151",
|
|
52095
|
-
height: "151",
|
|
52096
|
-
filterUnits: "userSpaceOnUse",
|
|
52097
|
-
"color-interpolation-filters": "sRGB"
|
|
52098
|
-
}, {
|
|
52099
|
-
children: [jsx("feFlood", {
|
|
52100
|
-
"flood-opacity": "0",
|
|
52101
|
-
result: "BackgroundImageFix"
|
|
52102
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52103
|
-
in: "SourceAlpha",
|
|
52104
|
-
type: "matrix",
|
|
52105
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
52106
|
-
result: "hardAlpha"
|
|
52107
|
-
}, void 0), jsx("feOffset", {
|
|
52108
|
-
dy: "22"
|
|
52109
|
-
}, void 0), jsx("feGaussianBlur", {
|
|
52110
|
-
stdDeviation: "21.5"
|
|
52111
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52112
|
-
type: "matrix",
|
|
52113
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
|
|
52114
|
-
}, void 0), jsx("feBlend", {
|
|
52115
|
-
mode: "normal",
|
|
52116
|
-
in2: "BackgroundImageFix",
|
|
52117
|
-
result: "effect1_dropShadow_4303_695"
|
|
52118
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52119
|
-
in: "SourceAlpha",
|
|
52120
|
-
type: "matrix",
|
|
52121
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
52122
|
-
result: "hardAlpha"
|
|
52123
|
-
}, void 0), jsx("feOffset", {
|
|
52124
|
-
dy: "9"
|
|
52125
|
-
}, void 0), jsx("feGaussianBlur", {
|
|
52126
|
-
stdDeviation: "12"
|
|
52127
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52128
|
-
type: "matrix",
|
|
52129
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0"
|
|
52130
|
-
}, void 0), jsx("feBlend", {
|
|
52131
|
-
mode: "normal",
|
|
52132
|
-
in2: "effect1_dropShadow_4303_695",
|
|
52133
|
-
result: "effect2_dropShadow_4303_695"
|
|
52134
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52135
|
-
in: "SourceAlpha",
|
|
52136
|
-
type: "matrix",
|
|
52137
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
52138
|
-
result: "hardAlpha"
|
|
52139
|
-
}, void 0), jsx("feOffset", {
|
|
52140
|
-
dy: "3"
|
|
52141
|
-
}, void 0), jsx("feGaussianBlur", {
|
|
52142
|
-
stdDeviation: "4.5"
|
|
52143
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52144
|
-
type: "matrix",
|
|
52145
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0"
|
|
52146
|
-
}, void 0), jsx("feBlend", {
|
|
52147
|
-
mode: "normal",
|
|
52148
|
-
in2: "effect2_dropShadow_4303_695",
|
|
52149
|
-
result: "effect3_dropShadow_4303_695"
|
|
52150
|
-
}, void 0), jsx("feBlend", {
|
|
52151
|
-
mode: "normal",
|
|
52152
|
-
in: "SourceGraphic",
|
|
52153
|
-
in2: "effect3_dropShadow_4303_695",
|
|
52154
|
-
result: "shape"
|
|
52155
|
-
}, void 0)]
|
|
52156
|
-
}), void 0), jsxs("linearGradient", Object.assign({
|
|
52157
|
-
id: "paint0_linear_4303_695",
|
|
52158
|
-
x1: "76.0004",
|
|
52159
|
-
y1: "23.9999",
|
|
52160
|
-
x2: "76.0004",
|
|
52161
|
-
y2: "83.9999",
|
|
52162
|
-
gradientUnits: "userSpaceOnUse"
|
|
52163
|
-
}, {
|
|
52164
|
-
children: [jsx("stop", {
|
|
52165
|
-
"stop-color": "#B3DCA7"
|
|
52166
|
-
}, void 0), jsx("stop", {
|
|
52167
|
-
offset: "1",
|
|
52168
|
-
"stop-color": "#22BDB6"
|
|
52169
|
-
}, void 0)]
|
|
52170
|
-
}), void 0), jsxs("linearGradient", Object.assign({
|
|
52171
|
-
id: "paint1_linear_4303_695",
|
|
52172
|
-
x1: "106",
|
|
52173
|
-
y1: "68.8332",
|
|
52174
|
-
x2: "50",
|
|
52175
|
-
y2: "37.3332",
|
|
52176
|
-
gradientUnits: "userSpaceOnUse"
|
|
52177
|
-
}, {
|
|
52178
|
-
children: [jsx("stop", {
|
|
52179
|
-
"stop-color": "#F4F4F4"
|
|
52180
|
-
}, void 0), jsx("stop", {
|
|
52181
|
-
offset: "1",
|
|
52182
|
-
"stop-color": "white"
|
|
52183
|
-
}, void 0)]
|
|
52184
|
-
}), void 0)]
|
|
52185
|
-
}, void 0)]
|
|
52186
|
-
}), void 0), jsxs(LoadingSvg, Object.assign({
|
|
52187
|
-
viewBox: "0 0 100 100",
|
|
52188
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
52189
|
-
}, {
|
|
52190
|
-
children: [jsx("defs", {
|
|
52191
|
-
children: jsx("mask", Object.assign({
|
|
52192
|
-
id: "mask"
|
|
52193
|
-
}, {
|
|
52194
|
-
children: jsx(LoadingCircle, {
|
|
52195
|
-
cx: "50",
|
|
52196
|
-
cy: "50",
|
|
52197
|
-
r: "20",
|
|
52198
|
-
fill: "none",
|
|
52199
|
-
"stroke-width": "4",
|
|
52200
|
-
"stroke-miterlimit": "10"
|
|
52201
|
-
}, void 0)
|
|
52202
|
-
}), void 0)
|
|
52203
|
-
}, void 0), jsx("foreignObject", Object.assign({
|
|
52204
|
-
x: "0",
|
|
52205
|
-
y: "0",
|
|
52206
|
-
width: "100",
|
|
52207
|
-
height: "100",
|
|
52208
|
-
mask: "url(#mask)"
|
|
52209
|
-
}, {
|
|
52210
|
-
children: jsx(LoadingBackground, {}, void 0)
|
|
52211
|
-
}), void 0)]
|
|
52212
|
-
}), void 0), label && jsx(LoadingLabel, Object.assign({
|
|
52213
|
-
color: "white",
|
|
52214
|
-
align: "center"
|
|
52215
|
-
}, {
|
|
52216
|
-
children: label
|
|
52217
|
-
}), void 0)]
|
|
52218
|
-
}, void 0);
|
|
52219
|
-
}
|
|
52220
52086
|
let interval;
|
|
52221
52087
|
function LoadingBar(props) {
|
|
52222
52088
|
const {
|
|
52223
52089
|
show,
|
|
52224
52090
|
onCompleted,
|
|
52225
|
-
interval: intervalTime
|
|
52226
|
-
isPageLoader,
|
|
52227
|
-
pageLoaderLabel
|
|
52091
|
+
interval: intervalTime
|
|
52228
52092
|
} = props;
|
|
52229
52093
|
const [progress, setProgress] = useState(0);
|
|
52230
52094
|
const [visibility, setVisibility] = useState(false);
|
|
@@ -52250,34 +52114,6 @@ function LoadingBar(props) {
|
|
|
52250
52114
|
onCompleted === null || onCompleted === void 0 ? void 0 : onCompleted();
|
|
52251
52115
|
}
|
|
52252
52116
|
}, [progress, onCompleted]);
|
|
52253
|
-
if (!show) return jsx(React__default.Fragment, {}, void 0);
|
|
52254
|
-
if (isPageLoader) {
|
|
52255
|
-
return jsx(ModalDialog, Object.assign({
|
|
52256
|
-
open: show,
|
|
52257
|
-
modal: true,
|
|
52258
|
-
allowPinchZoom: false,
|
|
52259
|
-
width: "100%",
|
|
52260
|
-
layer: 2000,
|
|
52261
|
-
isMobile: false,
|
|
52262
|
-
css: {
|
|
52263
|
-
borderRadius: '2px !important',
|
|
52264
|
-
'& > div': {
|
|
52265
|
-
backgroundColor: 'transparent !important',
|
|
52266
|
-
borderRadius: '2px !important'
|
|
52267
|
-
}
|
|
52268
|
-
}
|
|
52269
|
-
}, {
|
|
52270
|
-
children: jsx(ModalDialogContent, Object.assign({
|
|
52271
|
-
css: {
|
|
52272
|
-
padding: '$spacing-08 $spacing-11'
|
|
52273
|
-
}
|
|
52274
|
-
}, {
|
|
52275
|
-
children: jsx(CircularLoadingBar, {
|
|
52276
|
-
label: pageLoaderLabel
|
|
52277
|
-
}, void 0)
|
|
52278
|
-
}), void 0)
|
|
52279
|
-
}), void 0);
|
|
52280
|
-
}
|
|
52281
52117
|
return typeof (props === null || props === void 0 ? void 0 : props.progress) === 'number' ? jsx(PrimitiveLoadingBar, Object.assign({}, props, {
|
|
52282
52118
|
visibility: true
|
|
52283
52119
|
}), void 0) : jsx(PrimitiveLoadingBar, Object.assign({}, props, {
|
|
@@ -52290,8 +52126,7 @@ LoadingBar.defaultProps = {
|
|
|
52290
52126
|
show: false,
|
|
52291
52127
|
interval: 100,
|
|
52292
52128
|
description: 'Loading...',
|
|
52293
|
-
size: 'md'
|
|
52294
|
-
isPageLoader: false
|
|
52129
|
+
size: 'md'
|
|
52295
52130
|
};
|
|
52296
52131
|
|
|
52297
52132
|
const Container$4 = styled(Flex$1, {
|
|
@@ -53374,6 +53209,7 @@ const ProductList = props => {
|
|
|
53374
53209
|
label: tooltipLabel(name, variants)
|
|
53375
53210
|
}, {
|
|
53376
53211
|
children: jsxs(Box, Object.assign({
|
|
53212
|
+
gap: 2,
|
|
53377
53213
|
css: Object.assign({
|
|
53378
53214
|
display: 'flex',
|
|
53379
53215
|
alignItems: 'center',
|
|
@@ -53419,7 +53255,7 @@ const ProductList = props => {
|
|
|
53419
53255
|
padding: '4px 8px',
|
|
53420
53256
|
minWidth: 'unset',
|
|
53421
53257
|
justifyContent: 'flex-start',
|
|
53422
|
-
|
|
53258
|
+
mr: 'auto'
|
|
53423
53259
|
},
|
|
53424
53260
|
type: "varian"
|
|
53425
53261
|
}, {
|
|
@@ -56979,4 +56815,4 @@ const useToggle = initialValue => {
|
|
|
56979
56815
|
return useReducer(toggleReducer, initialValue);
|
|
56980
56816
|
};
|
|
56981
56817
|
|
|
56982
|
-
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,
|
|
56818
|
+
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 };
|