@majoo-ui/react 1.60.16-rc.5 → 1.60.16
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 +447 -597
- package/index.umd.js +943 -1116
- 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
|
}
|
|
@@ -3364,8 +3388,8 @@ Card.defaultProps = {
|
|
|
3364
3388
|
Card.Label = StyledLabel$2;
|
|
3365
3389
|
Card.Description = StyledDescription$3;
|
|
3366
3390
|
|
|
3367
|
-
const _excluded$
|
|
3368
|
-
var _jsxFileName$
|
|
3391
|
+
const _excluded$y = ["children"];
|
|
3392
|
+
var _jsxFileName$Z = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/breadcrumb/Breadcrumb.js";
|
|
3369
3393
|
const BreadcrumbStyle = styled('nav', {
|
|
3370
3394
|
wordWrap: 'break-word',
|
|
3371
3395
|
'& li+li:before': {
|
|
@@ -3410,7 +3434,7 @@ const BreadcrumbLinkBase = props => {
|
|
|
3410
3434
|
return /*#__PURE__*/React__default.createElement(BreadcrumbLinkStyle, _extends({}, props, aria, {
|
|
3411
3435
|
__self: undefined,
|
|
3412
3436
|
__source: {
|
|
3413
|
-
fileName: _jsxFileName$
|
|
3437
|
+
fileName: _jsxFileName$Z,
|
|
3414
3438
|
lineNumber: 42,
|
|
3415
3439
|
columnNumber: 10
|
|
3416
3440
|
}
|
|
@@ -3420,19 +3444,19 @@ const BreadcrumbBase = _ref => {
|
|
|
3420
3444
|
let {
|
|
3421
3445
|
children
|
|
3422
3446
|
} = _ref,
|
|
3423
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3447
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
3424
3448
|
return /*#__PURE__*/React__default.createElement(BreadcrumbStyle, _extends({}, rest, {
|
|
3425
3449
|
"aria-label": "breadcrumb",
|
|
3426
3450
|
__self: undefined,
|
|
3427
3451
|
__source: {
|
|
3428
|
-
fileName: _jsxFileName$
|
|
3452
|
+
fileName: _jsxFileName$Z,
|
|
3429
3453
|
lineNumber: 47,
|
|
3430
3454
|
columnNumber: 5
|
|
3431
3455
|
}
|
|
3432
3456
|
}), /*#__PURE__*/React__default.createElement(Ol, {
|
|
3433
3457
|
__self: undefined,
|
|
3434
3458
|
__source: {
|
|
3435
|
-
fileName: _jsxFileName$
|
|
3459
|
+
fileName: _jsxFileName$Z,
|
|
3436
3460
|
lineNumber: 48,
|
|
3437
3461
|
columnNumber: 7
|
|
3438
3462
|
}
|
|
@@ -3684,8 +3708,8 @@ Badge.defaultProps = {
|
|
|
3684
3708
|
};
|
|
3685
3709
|
Badge.displayName = 'Badge';
|
|
3686
3710
|
|
|
3687
|
-
const _excluded$
|
|
3688
|
-
var _jsxFileName$
|
|
3711
|
+
const _excluded$x = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
|
|
3712
|
+
var _jsxFileName$Y = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/avatar/Avatar.js";
|
|
3689
3713
|
const StyledAvatar = styled(AvatarPrimitive.Root, {
|
|
3690
3714
|
width: '32px',
|
|
3691
3715
|
height: '32px',
|
|
@@ -3729,7 +3753,7 @@ function Avatar(_ref) {
|
|
|
3729
3753
|
onClick,
|
|
3730
3754
|
css
|
|
3731
3755
|
} = _ref,
|
|
3732
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3756
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
3733
3757
|
return /*#__PURE__*/React__default.createElement(StyledAvatar, _extends({
|
|
3734
3758
|
className: className,
|
|
3735
3759
|
onClick: onClick,
|
|
@@ -3737,7 +3761,7 @@ function Avatar(_ref) {
|
|
|
3737
3761
|
}, props, {
|
|
3738
3762
|
__self: this,
|
|
3739
3763
|
__source: {
|
|
3740
|
-
fileName: _jsxFileName$
|
|
3764
|
+
fileName: _jsxFileName$Y,
|
|
3741
3765
|
lineNumber: 46,
|
|
3742
3766
|
columnNumber: 5
|
|
3743
3767
|
}
|
|
@@ -3747,7 +3771,7 @@ function Avatar(_ref) {
|
|
|
3747
3771
|
onLoadingStatusChange: onLoadingStatusChange,
|
|
3748
3772
|
__self: this,
|
|
3749
3773
|
__source: {
|
|
3750
|
-
fileName: _jsxFileName$
|
|
3774
|
+
fileName: _jsxFileName$Y,
|
|
3751
3775
|
lineNumber: 47,
|
|
3752
3776
|
columnNumber: 21
|
|
3753
3777
|
}
|
|
@@ -3755,21 +3779,21 @@ function Avatar(_ref) {
|
|
|
3755
3779
|
delayMs: delayMs,
|
|
3756
3780
|
__self: this,
|
|
3757
3781
|
__source: {
|
|
3758
|
-
fileName: _jsxFileName$
|
|
3782
|
+
fileName: _jsxFileName$Y,
|
|
3759
3783
|
lineNumber: 48,
|
|
3760
3784
|
columnNumber: 7
|
|
3761
3785
|
}
|
|
3762
3786
|
}, children !== undefined ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children) : /*#__PURE__*/React__default.createElement(StyledIcon, {
|
|
3763
3787
|
__self: this,
|
|
3764
3788
|
__source: {
|
|
3765
|
-
fileName: _jsxFileName$
|
|
3789
|
+
fileName: _jsxFileName$Y,
|
|
3766
3790
|
lineNumber: 52,
|
|
3767
3791
|
columnNumber: 11
|
|
3768
3792
|
}
|
|
3769
3793
|
}, /*#__PURE__*/React__default.createElement(UserFilled, {
|
|
3770
3794
|
__self: this,
|
|
3771
3795
|
__source: {
|
|
3772
|
-
fileName: _jsxFileName$
|
|
3796
|
+
fileName: _jsxFileName$Y,
|
|
3773
3797
|
lineNumber: 53,
|
|
3774
3798
|
columnNumber: 13
|
|
3775
3799
|
}
|
|
@@ -3786,8 +3810,8 @@ Avatar.defaultProps = {
|
|
|
3786
3810
|
delayMs: 0
|
|
3787
3811
|
};
|
|
3788
3812
|
|
|
3789
|
-
const _excluded$
|
|
3790
|
-
var _jsxFileName$
|
|
3813
|
+
const _excluded$w = ["className", "src", "alt", "width", "height", "objectFit", "fallback", "fallbackTitle", "css", "cssFallback", "rounded"];
|
|
3814
|
+
var _jsxFileName$X = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/image/Image.js";
|
|
3791
3815
|
const ContainerFallback = styled(Flex$1, {
|
|
3792
3816
|
boxSizing: 'border-box',
|
|
3793
3817
|
border: '2px dashed #C0C4C4',
|
|
@@ -3836,7 +3860,7 @@ function Image(_ref) {
|
|
|
3836
3860
|
cssFallback,
|
|
3837
3861
|
rounded
|
|
3838
3862
|
} = _ref,
|
|
3839
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3863
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
3840
3864
|
const {
|
|
3841
3865
|
t
|
|
3842
3866
|
} = useTranslation('translation');
|
|
@@ -3855,7 +3879,7 @@ function Image(_ref) {
|
|
|
3855
3879
|
}, props, {
|
|
3856
3880
|
__self: this,
|
|
3857
3881
|
__source: {
|
|
3858
|
-
fileName: _jsxFileName$
|
|
3882
|
+
fileName: _jsxFileName$X,
|
|
3859
3883
|
lineNumber: 61,
|
|
3860
3884
|
columnNumber: 7
|
|
3861
3885
|
}
|
|
@@ -3871,14 +3895,14 @@ function Image(_ref) {
|
|
|
3871
3895
|
}, cssFallback),
|
|
3872
3896
|
__self: this,
|
|
3873
3897
|
__source: {
|
|
3874
|
-
fileName: _jsxFileName$
|
|
3898
|
+
fileName: _jsxFileName$X,
|
|
3875
3899
|
lineNumber: 75,
|
|
3876
3900
|
columnNumber: 7
|
|
3877
3901
|
}
|
|
3878
3902
|
}, /*#__PURE__*/React__default.createElement(TextFallback, {
|
|
3879
3903
|
__self: this,
|
|
3880
3904
|
__source: {
|
|
3881
|
-
fileName: _jsxFileName$
|
|
3905
|
+
fileName: _jsxFileName$X,
|
|
3882
3906
|
lineNumber: 76,
|
|
3883
3907
|
columnNumber: 9
|
|
3884
3908
|
}
|
|
@@ -4472,6 +4496,8 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
4472
4496
|
|
|
4473
4497
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
4474
4498
|
|
|
4499
|
+
const _excluded$v = ["children", "label", "color", "css", "withClick", "side", "align", "delayDuration"];
|
|
4500
|
+
var _jsxFileName$W = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tooltip/Tooltip.js";
|
|
4475
4501
|
const {
|
|
4476
4502
|
zIndices: zIndices$2
|
|
4477
4503
|
} = foundations;
|
|
@@ -4557,10 +4583,10 @@ const TooltipBase = styled(TooltipPrimitive.Root, {
|
|
|
4557
4583
|
color: 'ligth'
|
|
4558
4584
|
}
|
|
4559
4585
|
});
|
|
4586
|
+
|
|
4560
4587
|
// Exports
|
|
4561
4588
|
const Provider = TooltipPrimitive.Provider;
|
|
4562
4589
|
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
4563
|
-
const TooltipContent = StyledContent$6;
|
|
4564
4590
|
const dark = {
|
|
4565
4591
|
color: foundations.colors.white,
|
|
4566
4592
|
backgroundColor: foundations.colors.gray800
|
|
@@ -4575,8 +4601,8 @@ const darkArrow = {
|
|
|
4575
4601
|
const lightArrow = {
|
|
4576
4602
|
fill: foundations.colors.bgWhite
|
|
4577
4603
|
};
|
|
4578
|
-
const Tooltip$1 =
|
|
4579
|
-
|
|
4604
|
+
const Tooltip$1 = _ref => {
|
|
4605
|
+
let {
|
|
4580
4606
|
children,
|
|
4581
4607
|
label,
|
|
4582
4608
|
color,
|
|
@@ -4585,52 +4611,98 @@ const Tooltip$1 = _a => {
|
|
|
4585
4611
|
side,
|
|
4586
4612
|
align,
|
|
4587
4613
|
delayDuration
|
|
4588
|
-
} =
|
|
4589
|
-
rest =
|
|
4614
|
+
} = _ref,
|
|
4615
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
4590
4616
|
const [open, setOpen] = useState(false);
|
|
4591
|
-
return
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
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
|
-
|
|
4617
|
+
return /*#__PURE__*/React__default.createElement(Provider, {
|
|
4618
|
+
__self: undefined,
|
|
4619
|
+
__source: {
|
|
4620
|
+
fileName: _jsxFileName$W,
|
|
4621
|
+
lineNumber: 91,
|
|
4622
|
+
columnNumber: 5
|
|
4623
|
+
}
|
|
4624
|
+
}, /*#__PURE__*/React__default.createElement(TooltipBase, _extends({}, rest, {
|
|
4625
|
+
open: withClick ? open : undefined,
|
|
4626
|
+
delayDuration: delayDuration,
|
|
4627
|
+
__self: undefined,
|
|
4628
|
+
__source: {
|
|
4629
|
+
fileName: _jsxFileName$W,
|
|
4630
|
+
lineNumber: 92,
|
|
4631
|
+
columnNumber: 7
|
|
4632
|
+
}
|
|
4633
|
+
}), /*#__PURE__*/React__default.createElement(TooltipTrigger, {
|
|
4634
|
+
asChild: true,
|
|
4635
|
+
__self: undefined,
|
|
4636
|
+
__source: {
|
|
4637
|
+
fileName: _jsxFileName$W,
|
|
4638
|
+
lineNumber: 93,
|
|
4639
|
+
columnNumber: 9
|
|
4640
|
+
}
|
|
4641
|
+
}, /*#__PURE__*/React__default.createElement(TriggerSpan, {
|
|
4642
|
+
onClick: () => withClick && !open && setOpen(true),
|
|
4643
|
+
__self: undefined,
|
|
4644
|
+
__source: {
|
|
4645
|
+
fileName: _jsxFileName$W,
|
|
4646
|
+
lineNumber: 94,
|
|
4647
|
+
columnNumber: 11
|
|
4648
|
+
}
|
|
4649
|
+
}, children)), /*#__PURE__*/React__default.createElement(TooltipPrimitive.Portal, {
|
|
4650
|
+
__self: undefined,
|
|
4651
|
+
__source: {
|
|
4652
|
+
fileName: _jsxFileName$W,
|
|
4653
|
+
lineNumber: 96,
|
|
4654
|
+
columnNumber: 9
|
|
4655
|
+
}
|
|
4656
|
+
}, /*#__PURE__*/React__default.createElement(StyledContent$6, {
|
|
4657
|
+
align: align,
|
|
4658
|
+
side: side,
|
|
4659
|
+
sideOffset: 5,
|
|
4660
|
+
css: color === 'dark' ? Object.assign({}, dark, css) : Object.assign({}, ligth, css),
|
|
4661
|
+
onPointerDownOutside: () => setTimeout(() => {
|
|
4662
|
+
setOpen(false);
|
|
4663
|
+
}, 100),
|
|
4664
|
+
__self: undefined,
|
|
4665
|
+
__source: {
|
|
4666
|
+
fileName: _jsxFileName$W,
|
|
4667
|
+
lineNumber: 97,
|
|
4668
|
+
columnNumber: 11
|
|
4669
|
+
}
|
|
4670
|
+
}, label, /*#__PURE__*/React__default.createElement(StyledArrow$1, {
|
|
4671
|
+
offset: 10,
|
|
4672
|
+
css: color === 'dark' ? darkArrow : lightArrow,
|
|
4673
|
+
__self: undefined,
|
|
4674
|
+
__source: {
|
|
4675
|
+
fileName: _jsxFileName$W,
|
|
4676
|
+
lineNumber: 109,
|
|
4677
|
+
columnNumber: 13
|
|
4678
|
+
}
|
|
4679
|
+
})))));
|
|
4680
|
+
};
|
|
4681
|
+
Tooltip$1.propTypes = {
|
|
4682
|
+
children: PropTypes.node,
|
|
4683
|
+
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
4684
|
+
color: PropTypes.string,
|
|
4685
|
+
side: PropTypes.oneOf(['top', 'bottom', 'right', 'left']),
|
|
4686
|
+
align: PropTypes.oneOf(['start', 'center', 'end'])
|
|
4622
4687
|
};
|
|
4623
4688
|
Tooltip$1.defaultProps = {
|
|
4624
4689
|
color: 'dark',
|
|
4625
4690
|
side: 'bottom',
|
|
4626
4691
|
align: 'center',
|
|
4627
4692
|
label: '',
|
|
4628
|
-
children:
|
|
4693
|
+
children: /*#__PURE__*/React__default.createElement("div", {
|
|
4694
|
+
__self: undefined,
|
|
4695
|
+
__source: {
|
|
4696
|
+
fileName: _jsxFileName$W,
|
|
4697
|
+
lineNumber: 130,
|
|
4698
|
+
columnNumber: 13
|
|
4699
|
+
}
|
|
4700
|
+
}),
|
|
4629
4701
|
delayDuration: 200
|
|
4630
4702
|
};
|
|
4631
4703
|
|
|
4632
|
-
const _excluded$
|
|
4633
|
-
var _jsxFileName$
|
|
4704
|
+
const _excluded$u = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
|
|
4705
|
+
var _jsxFileName$V = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/progress/Progress.js";
|
|
4634
4706
|
const StyledProgress$1 = styled$1(ProgressPrimitive.Root, {
|
|
4635
4707
|
position: 'relative',
|
|
4636
4708
|
overflow: 'hidden',
|
|
@@ -4748,7 +4820,7 @@ function Progress$1(_ref) {
|
|
|
4748
4820
|
rounded,
|
|
4749
4821
|
width
|
|
4750
4822
|
} = _ref,
|
|
4751
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4823
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
4752
4824
|
return /*#__PURE__*/React__default.createElement(StyledProgress$1, _extends({
|
|
4753
4825
|
className: className,
|
|
4754
4826
|
value: value,
|
|
@@ -4763,7 +4835,7 @@ function Progress$1(_ref) {
|
|
|
4763
4835
|
}, props, {
|
|
4764
4836
|
__self: this,
|
|
4765
4837
|
__source: {
|
|
4766
|
-
fileName: _jsxFileName$
|
|
4838
|
+
fileName: _jsxFileName$V,
|
|
4767
4839
|
lineNumber: 88,
|
|
4768
4840
|
columnNumber: 5
|
|
4769
4841
|
}
|
|
@@ -4776,7 +4848,7 @@ function Progress$1(_ref) {
|
|
|
4776
4848
|
},
|
|
4777
4849
|
__self: this,
|
|
4778
4850
|
__source: {
|
|
4779
|
-
fileName: _jsxFileName$
|
|
4851
|
+
fileName: _jsxFileName$V,
|
|
4780
4852
|
lineNumber: 89,
|
|
4781
4853
|
columnNumber: 7
|
|
4782
4854
|
}
|
|
@@ -5441,8 +5513,8 @@ function useMediaQuery(query) {
|
|
|
5441
5513
|
return matches;
|
|
5442
5514
|
}
|
|
5443
5515
|
|
|
5444
|
-
const _excluded$
|
|
5445
|
-
var _jsxFileName$
|
|
5516
|
+
const _excluded$t = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
|
|
5517
|
+
var _jsxFileName$U = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/Toast.js";
|
|
5446
5518
|
const TOAST_WIDTH = 576;
|
|
5447
5519
|
const ANIMATION_DURATION = 400;
|
|
5448
5520
|
const TOP_RIGHT_POSITION = 'top-right';
|
|
@@ -5610,7 +5682,7 @@ const Toast = _ref => {
|
|
|
5610
5682
|
captionOfAction,
|
|
5611
5683
|
hrefOfAction
|
|
5612
5684
|
} = _ref,
|
|
5613
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5685
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
5614
5686
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
5615
5687
|
const isMobile = useMediaQuery(`(max-width: 767px`);
|
|
5616
5688
|
const close = React.useCallback(() => {
|
|
@@ -5639,7 +5711,7 @@ const Toast = _ref => {
|
|
|
5639
5711
|
onExited: onRemove,
|
|
5640
5712
|
__self: undefined,
|
|
5641
5713
|
__source: {
|
|
5642
|
-
fileName: _jsxFileName$
|
|
5714
|
+
fileName: _jsxFileName$U,
|
|
5643
5715
|
lineNumber: 216,
|
|
5644
5716
|
columnNumber: 5
|
|
5645
5717
|
}
|
|
@@ -5654,7 +5726,7 @@ const Toast = _ref => {
|
|
|
5654
5726
|
}, rest, {
|
|
5655
5727
|
__self: undefined,
|
|
5656
5728
|
__source: {
|
|
5657
|
-
fileName: _jsxFileName$
|
|
5729
|
+
fileName: _jsxFileName$U,
|
|
5658
5730
|
lineNumber: 227,
|
|
5659
5731
|
columnNumber: 9
|
|
5660
5732
|
}
|
|
@@ -5664,7 +5736,7 @@ const Toast = _ref => {
|
|
|
5664
5736
|
onClick: onClick,
|
|
5665
5737
|
__self: undefined,
|
|
5666
5738
|
__source: {
|
|
5667
|
-
fileName: _jsxFileName$
|
|
5739
|
+
fileName: _jsxFileName$U,
|
|
5668
5740
|
lineNumber: 235,
|
|
5669
5741
|
columnNumber: 11
|
|
5670
5742
|
}
|
|
@@ -5672,7 +5744,7 @@ const Toast = _ref => {
|
|
|
5672
5744
|
direction: "column",
|
|
5673
5745
|
__self: undefined,
|
|
5674
5746
|
__source: {
|
|
5675
|
-
fileName: _jsxFileName$
|
|
5747
|
+
fileName: _jsxFileName$U,
|
|
5676
5748
|
lineNumber: 236,
|
|
5677
5749
|
columnNumber: 13
|
|
5678
5750
|
}
|
|
@@ -5680,7 +5752,7 @@ const Toast = _ref => {
|
|
|
5680
5752
|
direction: "row",
|
|
5681
5753
|
__self: undefined,
|
|
5682
5754
|
__source: {
|
|
5683
|
-
fileName: _jsxFileName$
|
|
5755
|
+
fileName: _jsxFileName$U,
|
|
5684
5756
|
lineNumber: 237,
|
|
5685
5757
|
columnNumber: 15
|
|
5686
5758
|
}
|
|
@@ -5688,7 +5760,7 @@ const Toast = _ref => {
|
|
|
5688
5760
|
variant: variant,
|
|
5689
5761
|
__self: undefined,
|
|
5690
5762
|
__source: {
|
|
5691
|
-
fileName: _jsxFileName$
|
|
5763
|
+
fileName: _jsxFileName$U,
|
|
5692
5764
|
lineNumber: 238,
|
|
5693
5765
|
columnNumber: 17
|
|
5694
5766
|
}
|
|
@@ -5700,7 +5772,7 @@ const Toast = _ref => {
|
|
|
5700
5772
|
},
|
|
5701
5773
|
__self: undefined,
|
|
5702
5774
|
__source: {
|
|
5703
|
-
fileName: _jsxFileName$
|
|
5775
|
+
fileName: _jsxFileName$U,
|
|
5704
5776
|
lineNumber: 239,
|
|
5705
5777
|
columnNumber: 17
|
|
5706
5778
|
}
|
|
@@ -5708,7 +5780,7 @@ const Toast = _ref => {
|
|
|
5708
5780
|
justify: "between",
|
|
5709
5781
|
__self: undefined,
|
|
5710
5782
|
__source: {
|
|
5711
|
-
fileName: _jsxFileName$
|
|
5783
|
+
fileName: _jsxFileName$U,
|
|
5712
5784
|
lineNumber: 247,
|
|
5713
5785
|
columnNumber: 21
|
|
5714
5786
|
}
|
|
@@ -5723,7 +5795,7 @@ const Toast = _ref => {
|
|
|
5723
5795
|
},
|
|
5724
5796
|
__self: undefined,
|
|
5725
5797
|
__source: {
|
|
5726
|
-
fileName: _jsxFileName$
|
|
5798
|
+
fileName: _jsxFileName$U,
|
|
5727
5799
|
lineNumber: 248,
|
|
5728
5800
|
columnNumber: 23
|
|
5729
5801
|
}
|
|
@@ -5732,7 +5804,7 @@ const Toast = _ref => {
|
|
|
5732
5804
|
color: "secondary",
|
|
5733
5805
|
__self: undefined,
|
|
5734
5806
|
__source: {
|
|
5735
|
-
fileName: _jsxFileName$
|
|
5807
|
+
fileName: _jsxFileName$U,
|
|
5736
5808
|
lineNumber: 262,
|
|
5737
5809
|
columnNumber: 19
|
|
5738
5810
|
}
|
|
@@ -5747,7 +5819,7 @@ const Toast = _ref => {
|
|
|
5747
5819
|
hasTitle: !!title,
|
|
5748
5820
|
__self: undefined,
|
|
5749
5821
|
__source: {
|
|
5750
|
-
fileName: _jsxFileName$
|
|
5822
|
+
fileName: _jsxFileName$U,
|
|
5751
5823
|
lineNumber: 266,
|
|
5752
5824
|
columnNumber: 17
|
|
5753
5825
|
}
|
|
@@ -5756,7 +5828,7 @@ const Toast = _ref => {
|
|
|
5756
5828
|
size: "16px",
|
|
5757
5829
|
__self: undefined,
|
|
5758
5830
|
__source: {
|
|
5759
|
-
fileName: _jsxFileName$
|
|
5831
|
+
fileName: _jsxFileName$U,
|
|
5760
5832
|
lineNumber: 276,
|
|
5761
5833
|
columnNumber: 19
|
|
5762
5834
|
}
|
|
@@ -5771,7 +5843,7 @@ const Toast = _ref => {
|
|
|
5771
5843
|
},
|
|
5772
5844
|
__self: undefined,
|
|
5773
5845
|
__source: {
|
|
5774
|
-
fileName: _jsxFileName$
|
|
5846
|
+
fileName: _jsxFileName$U,
|
|
5775
5847
|
lineNumber: 280,
|
|
5776
5848
|
columnNumber: 17
|
|
5777
5849
|
}
|
|
@@ -5793,8 +5865,8 @@ Toast.defaultProps = {
|
|
|
5793
5865
|
dismissAfter: 5000
|
|
5794
5866
|
};
|
|
5795
5867
|
|
|
5796
|
-
const _excluded$
|
|
5797
|
-
var _jsxFileName$
|
|
5868
|
+
const _excluded$s = ["preventDuplicate"];
|
|
5869
|
+
var _jsxFileName$T = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/ToastContainer.js";
|
|
5798
5870
|
const ToastBox = styled(Flex$1, {
|
|
5799
5871
|
position: 'fixed',
|
|
5800
5872
|
variants: {
|
|
@@ -5841,7 +5913,7 @@ const ToastContainer = ({
|
|
|
5841
5913
|
},
|
|
5842
5914
|
__self: undefined,
|
|
5843
5915
|
__source: {
|
|
5844
|
-
fileName: _jsxFileName$
|
|
5916
|
+
fileName: _jsxFileName$T,
|
|
5845
5917
|
lineNumber: 43,
|
|
5846
5918
|
columnNumber: 5
|
|
5847
5919
|
}
|
|
@@ -5849,7 +5921,7 @@ const ToastContainer = ({
|
|
|
5849
5921
|
position: position,
|
|
5850
5922
|
__self: undefined,
|
|
5851
5923
|
__source: {
|
|
5852
|
-
fileName: _jsxFileName$
|
|
5924
|
+
fileName: _jsxFileName$T,
|
|
5853
5925
|
lineNumber: 44,
|
|
5854
5926
|
columnNumber: 7
|
|
5855
5927
|
}
|
|
@@ -5857,14 +5929,14 @@ const ToastContainer = ({
|
|
|
5857
5929
|
const {
|
|
5858
5930
|
preventDuplicate
|
|
5859
5931
|
} = item,
|
|
5860
|
-
toast = _objectWithoutPropertiesLoose(item, _excluded$
|
|
5932
|
+
toast = _objectWithoutPropertiesLoose(item, _excluded$s);
|
|
5861
5933
|
return /*#__PURE__*/React.createElement(Toast, _extends({
|
|
5862
5934
|
key: preventDuplicate ? toast.id : `${toast.id}-${index}`,
|
|
5863
5935
|
onRemove: () => removeToast(toast.id)
|
|
5864
5936
|
}, toast, {
|
|
5865
5937
|
__self: undefined,
|
|
5866
5938
|
__source: {
|
|
5867
|
-
fileName: _jsxFileName$
|
|
5939
|
+
fileName: _jsxFileName$T,
|
|
5868
5940
|
lineNumber: 47,
|
|
5869
5941
|
columnNumber: 18
|
|
5870
5942
|
}
|
|
@@ -7089,8 +7161,8 @@ const catchError = e => {
|
|
|
7089
7161
|
return message;
|
|
7090
7162
|
};
|
|
7091
7163
|
|
|
7092
|
-
const _excluded$
|
|
7093
|
-
var _jsxFileName$
|
|
7164
|
+
const _excluded$r = ["id", "disabledOfflineIntercept"];
|
|
7165
|
+
var _jsxFileName$S = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/context/ToastProvider.js";
|
|
7094
7166
|
let toastCount = 0;
|
|
7095
7167
|
const ToastProvider = ({
|
|
7096
7168
|
children,
|
|
@@ -7119,7 +7191,7 @@ const ToastProvider = ({
|
|
|
7119
7191
|
id,
|
|
7120
7192
|
disabledOfflineIntercept
|
|
7121
7193
|
} = toast,
|
|
7122
|
-
rest = _objectWithoutPropertiesLoose(toast, _excluded$
|
|
7194
|
+
rest = _objectWithoutPropertiesLoose(toast, _excluded$r);
|
|
7123
7195
|
|
|
7124
7196
|
// eslint-disable-next-line no-plusplus
|
|
7125
7197
|
const uniqueId = ++toastCount;
|
|
@@ -7159,7 +7231,7 @@ const ToastProvider = ({
|
|
|
7159
7231
|
},
|
|
7160
7232
|
__self: undefined,
|
|
7161
7233
|
__source: {
|
|
7162
|
-
fileName: _jsxFileName$
|
|
7234
|
+
fileName: _jsxFileName$S,
|
|
7163
7235
|
lineNumber: 81,
|
|
7164
7236
|
columnNumber: 5
|
|
7165
7237
|
}
|
|
@@ -7168,7 +7240,7 @@ const ToastProvider = ({
|
|
|
7168
7240
|
position: TOP_RIGHT_POSITION,
|
|
7169
7241
|
__self: undefined,
|
|
7170
7242
|
__source: {
|
|
7171
|
-
fileName: _jsxFileName$
|
|
7243
|
+
fileName: _jsxFileName$S,
|
|
7172
7244
|
lineNumber: 83,
|
|
7173
7245
|
columnNumber: 7
|
|
7174
7246
|
}
|
|
@@ -7177,7 +7249,7 @@ const ToastProvider = ({
|
|
|
7177
7249
|
position: TOP_LEFT_POSITION,
|
|
7178
7250
|
__self: undefined,
|
|
7179
7251
|
__source: {
|
|
7180
|
-
fileName: _jsxFileName$
|
|
7252
|
+
fileName: _jsxFileName$S,
|
|
7181
7253
|
lineNumber: 87,
|
|
7182
7254
|
columnNumber: 7
|
|
7183
7255
|
}
|
|
@@ -7186,7 +7258,7 @@ const ToastProvider = ({
|
|
|
7186
7258
|
position: BOTTOM_RIGHT_POSITION,
|
|
7187
7259
|
__self: undefined,
|
|
7188
7260
|
__source: {
|
|
7189
|
-
fileName: _jsxFileName$
|
|
7261
|
+
fileName: _jsxFileName$S,
|
|
7190
7262
|
lineNumber: 91,
|
|
7191
7263
|
columnNumber: 7
|
|
7192
7264
|
}
|
|
@@ -7195,7 +7267,7 @@ const ToastProvider = ({
|
|
|
7195
7267
|
position: BOTTOM_LEFT_POSITION,
|
|
7196
7268
|
__self: undefined,
|
|
7197
7269
|
__source: {
|
|
7198
|
-
fileName: _jsxFileName$
|
|
7270
|
+
fileName: _jsxFileName$S,
|
|
7199
7271
|
lineNumber: 95,
|
|
7200
7272
|
columnNumber: 7
|
|
7201
7273
|
}
|
|
@@ -7208,8 +7280,8 @@ const ConditionalWrapper = ({
|
|
|
7208
7280
|
children
|
|
7209
7281
|
}) => condition ? wrapper(children) : children;
|
|
7210
7282
|
|
|
7211
|
-
const _excluded$
|
|
7212
|
-
var _jsxFileName$
|
|
7283
|
+
const _excluded$q = ["count", "maxCount", "css"];
|
|
7284
|
+
var _jsxFileName$R = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormGroup/FormGroup.js";
|
|
7213
7285
|
const formLabelClassStyle = {
|
|
7214
7286
|
alignItems: 'start !important',
|
|
7215
7287
|
'& > div': {
|
|
@@ -7312,7 +7384,7 @@ const FormGroup = _ref => {
|
|
|
7312
7384
|
maxCount,
|
|
7313
7385
|
css
|
|
7314
7386
|
} = _ref,
|
|
7315
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7387
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
7316
7388
|
const withCounter = Boolean(count || maxCount);
|
|
7317
7389
|
return /*#__PURE__*/React__default.createElement(ConditionalWrapper, {
|
|
7318
7390
|
condition: withCounter,
|
|
@@ -7321,7 +7393,7 @@ const FormGroup = _ref => {
|
|
|
7321
7393
|
css: css,
|
|
7322
7394
|
__self: undefined,
|
|
7323
7395
|
__source: {
|
|
7324
|
-
fileName: _jsxFileName$
|
|
7396
|
+
fileName: _jsxFileName$R,
|
|
7325
7397
|
lineNumber: 115,
|
|
7326
7398
|
columnNumber: 9
|
|
7327
7399
|
}
|
|
@@ -7334,14 +7406,14 @@ const FormGroup = _ref => {
|
|
|
7334
7406
|
},
|
|
7335
7407
|
__self: undefined,
|
|
7336
7408
|
__source: {
|
|
7337
|
-
fileName: _jsxFileName$
|
|
7409
|
+
fileName: _jsxFileName$R,
|
|
7338
7410
|
lineNumber: 116,
|
|
7339
7411
|
columnNumber: 11
|
|
7340
7412
|
}
|
|
7341
7413
|
}, count, "/", maxCount), children),
|
|
7342
7414
|
__self: undefined,
|
|
7343
7415
|
__source: {
|
|
7344
|
-
fileName: _jsxFileName$
|
|
7416
|
+
fileName: _jsxFileName$R,
|
|
7345
7417
|
lineNumber: 112,
|
|
7346
7418
|
columnNumber: 5
|
|
7347
7419
|
}
|
|
@@ -7351,7 +7423,7 @@ const FormGroup = _ref => {
|
|
|
7351
7423
|
}, props, {
|
|
7352
7424
|
__self: undefined,
|
|
7353
7425
|
__source: {
|
|
7354
|
-
fileName: _jsxFileName$
|
|
7426
|
+
fileName: _jsxFileName$R,
|
|
7355
7427
|
lineNumber: 123,
|
|
7356
7428
|
columnNumber: 7
|
|
7357
7429
|
}
|
|
@@ -7359,8 +7431,8 @@ const FormGroup = _ref => {
|
|
|
7359
7431
|
};
|
|
7360
7432
|
FormGroup.displayName = 'FormGroup';
|
|
7361
7433
|
|
|
7362
|
-
const _excluded$
|
|
7363
|
-
var _jsxFileName$
|
|
7434
|
+
const _excluded$p = ["children", "htmlFor", "variant", "variants", "tooltipLabel", "count", "maxCount", "labelCss"];
|
|
7435
|
+
var _jsxFileName$Q = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormLabel/Label.js";
|
|
7364
7436
|
const StyledLabel$1 = styled(LabelPrimitive.Root, Text$1, {
|
|
7365
7437
|
display: 'inline-block',
|
|
7366
7438
|
fontSize: '$label',
|
|
@@ -7392,13 +7464,13 @@ const FormLabel = _ref => {
|
|
|
7392
7464
|
maxCount,
|
|
7393
7465
|
labelCss
|
|
7394
7466
|
} = _ref,
|
|
7395
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7467
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
7396
7468
|
return /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
7397
7469
|
justify: "between",
|
|
7398
7470
|
className: "form-label",
|
|
7399
7471
|
__self: undefined,
|
|
7400
7472
|
__source: {
|
|
7401
|
-
fileName: _jsxFileName$
|
|
7473
|
+
fileName: _jsxFileName$Q,
|
|
7402
7474
|
lineNumber: 36,
|
|
7403
7475
|
columnNumber: 5
|
|
7404
7476
|
}
|
|
@@ -7408,7 +7480,7 @@ const FormLabel = _ref => {
|
|
|
7408
7480
|
}, props, {
|
|
7409
7481
|
__self: undefined,
|
|
7410
7482
|
__source: {
|
|
7411
|
-
fileName: _jsxFileName$
|
|
7483
|
+
fileName: _jsxFileName$Q,
|
|
7412
7484
|
lineNumber: 37,
|
|
7413
7485
|
columnNumber: 7
|
|
7414
7486
|
}
|
|
@@ -7418,7 +7490,7 @@ const FormLabel = _ref => {
|
|
|
7418
7490
|
css: labelCss,
|
|
7419
7491
|
__self: undefined,
|
|
7420
7492
|
__source: {
|
|
7421
|
-
fileName: _jsxFileName$
|
|
7493
|
+
fileName: _jsxFileName$Q,
|
|
7422
7494
|
lineNumber: 38,
|
|
7423
7495
|
columnNumber: 9
|
|
7424
7496
|
}
|
|
@@ -7433,7 +7505,7 @@ const FormLabel = _ref => {
|
|
|
7433
7505
|
},
|
|
7434
7506
|
__self: undefined,
|
|
7435
7507
|
__source: {
|
|
7436
|
-
fileName: _jsxFileName$
|
|
7508
|
+
fileName: _jsxFileName$Q,
|
|
7437
7509
|
lineNumber: 42,
|
|
7438
7510
|
columnNumber: 11
|
|
7439
7511
|
}
|
|
@@ -7441,14 +7513,14 @@ const FormLabel = _ref => {
|
|
|
7441
7513
|
label: tooltipLabel,
|
|
7442
7514
|
__self: undefined,
|
|
7443
7515
|
__source: {
|
|
7444
|
-
fileName: _jsxFileName$
|
|
7516
|
+
fileName: _jsxFileName$Q,
|
|
7445
7517
|
lineNumber: 56,
|
|
7446
7518
|
columnNumber: 11
|
|
7447
7519
|
}
|
|
7448
7520
|
}, /*#__PURE__*/React__default.createElement(StyledHelpIcon, {
|
|
7449
7521
|
__self: undefined,
|
|
7450
7522
|
__source: {
|
|
7451
|
-
fileName: _jsxFileName$
|
|
7523
|
+
fileName: _jsxFileName$Q,
|
|
7452
7524
|
lineNumber: 57,
|
|
7453
7525
|
columnNumber: 13
|
|
7454
7526
|
}
|
|
@@ -7457,7 +7529,7 @@ const FormLabel = _ref => {
|
|
|
7457
7529
|
color: "disable",
|
|
7458
7530
|
__self: undefined,
|
|
7459
7531
|
__source: {
|
|
7460
|
-
fileName: _jsxFileName$
|
|
7532
|
+
fileName: _jsxFileName$Q,
|
|
7461
7533
|
lineNumber: 62,
|
|
7462
7534
|
columnNumber: 9
|
|
7463
7535
|
}
|
|
@@ -7476,8 +7548,8 @@ FormLabel.defaultProps = {
|
|
|
7476
7548
|
};
|
|
7477
7549
|
FormLabel.displayName = 'FormLabel';
|
|
7478
7550
|
|
|
7479
|
-
const _excluded$
|
|
7480
|
-
var _jsxFileName$
|
|
7551
|
+
const _excluded$o = ["children", "error", "errorMessage"];
|
|
7552
|
+
var _jsxFileName$P = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormHelper/Helper.js";
|
|
7481
7553
|
const StyledHelper = styled(Text$1, {
|
|
7482
7554
|
display: 'inline-block',
|
|
7483
7555
|
color: '$textSecondary',
|
|
@@ -7495,7 +7567,7 @@ const FormHelper = _ref => {
|
|
|
7495
7567
|
error,
|
|
7496
7568
|
errorMessage
|
|
7497
7569
|
} = _ref,
|
|
7498
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7570
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
7499
7571
|
const errorByMessage = !!errorMessage;
|
|
7500
7572
|
if (error === undefined && errorByMessage) {
|
|
7501
7573
|
return /*#__PURE__*/React__default.createElement(StyledHelper, _extends({
|
|
@@ -7505,7 +7577,7 @@ const FormHelper = _ref => {
|
|
|
7505
7577
|
}, props, {
|
|
7506
7578
|
__self: undefined,
|
|
7507
7579
|
__source: {
|
|
7508
|
-
fileName: _jsxFileName$
|
|
7580
|
+
fileName: _jsxFileName$P,
|
|
7509
7581
|
lineNumber: 22,
|
|
7510
7582
|
columnNumber: 7
|
|
7511
7583
|
}
|
|
@@ -7521,7 +7593,7 @@ const FormHelper = _ref => {
|
|
|
7521
7593
|
}, props, {
|
|
7522
7594
|
__self: undefined,
|
|
7523
7595
|
__source: {
|
|
7524
|
-
fileName: _jsxFileName$
|
|
7596
|
+
fileName: _jsxFileName$P,
|
|
7525
7597
|
lineNumber: 31,
|
|
7526
7598
|
columnNumber: 5
|
|
7527
7599
|
}
|
|
@@ -7532,7 +7604,7 @@ FormHelper.propTypes = {
|
|
|
7532
7604
|
};
|
|
7533
7605
|
FormHelper.displayName = 'FormHelper';
|
|
7534
7606
|
|
|
7535
|
-
var _jsxFileName$
|
|
7607
|
+
var _jsxFileName$O = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/CheckboxGroup.js";
|
|
7536
7608
|
const CheckboxContext = /*#__PURE__*/createContext();
|
|
7537
7609
|
const CheckboxGroup = ({
|
|
7538
7610
|
children,
|
|
@@ -7573,7 +7645,7 @@ const CheckboxGroup = ({
|
|
|
7573
7645
|
value: values,
|
|
7574
7646
|
__self: undefined,
|
|
7575
7647
|
__source: {
|
|
7576
|
-
fileName: _jsxFileName$
|
|
7648
|
+
fileName: _jsxFileName$O,
|
|
7577
7649
|
lineNumber: 35,
|
|
7578
7650
|
columnNumber: 5
|
|
7579
7651
|
}
|
|
@@ -7590,7 +7662,7 @@ CheckboxGroup.defaultProps = {
|
|
|
7590
7662
|
};
|
|
7591
7663
|
CheckboxGroup.displayName = 'CheckboxGroup';
|
|
7592
7664
|
|
|
7593
|
-
var _jsxFileName$
|
|
7665
|
+
var _jsxFileName$N = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/CheckOutline.js";
|
|
7594
7666
|
const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
7595
7667
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7596
7668
|
xmlSpace: "preserve",
|
|
@@ -7607,7 +7679,7 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
|
|
|
7607
7679
|
}, props, {
|
|
7608
7680
|
__self: undefined,
|
|
7609
7681
|
__source: {
|
|
7610
|
-
fileName: _jsxFileName$
|
|
7682
|
+
fileName: _jsxFileName$N,
|
|
7611
7683
|
lineNumber: 4,
|
|
7612
7684
|
columnNumber: 3
|
|
7613
7685
|
}
|
|
@@ -7619,7 +7691,7 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
|
|
|
7619
7691
|
},
|
|
7620
7692
|
__self: undefined,
|
|
7621
7693
|
__source: {
|
|
7622
|
-
fileName: _jsxFileName$
|
|
7694
|
+
fileName: _jsxFileName$N,
|
|
7623
7695
|
lineNumber: 19,
|
|
7624
7696
|
columnNumber: 5
|
|
7625
7697
|
}
|
|
@@ -7631,13 +7703,13 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
|
|
|
7631
7703
|
},
|
|
7632
7704
|
__self: undefined,
|
|
7633
7705
|
__source: {
|
|
7634
|
-
fileName: _jsxFileName$
|
|
7706
|
+
fileName: _jsxFileName$N,
|
|
7635
7707
|
lineNumber: 26,
|
|
7636
7708
|
columnNumber: 5
|
|
7637
7709
|
}
|
|
7638
7710
|
}));
|
|
7639
7711
|
|
|
7640
|
-
var _jsxFileName$
|
|
7712
|
+
var _jsxFileName$M = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/MinusOutline.js";
|
|
7641
7713
|
const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
7642
7714
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7643
7715
|
xmlSpace: "preserve",
|
|
@@ -7654,7 +7726,7 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
|
|
|
7654
7726
|
}, props, {
|
|
7655
7727
|
__self: undefined,
|
|
7656
7728
|
__source: {
|
|
7657
|
-
fileName: _jsxFileName$
|
|
7729
|
+
fileName: _jsxFileName$M,
|
|
7658
7730
|
lineNumber: 4,
|
|
7659
7731
|
columnNumber: 3
|
|
7660
7732
|
}
|
|
@@ -7666,7 +7738,7 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
|
|
|
7666
7738
|
},
|
|
7667
7739
|
__self: undefined,
|
|
7668
7740
|
__source: {
|
|
7669
|
-
fileName: _jsxFileName$
|
|
7741
|
+
fileName: _jsxFileName$M,
|
|
7670
7742
|
lineNumber: 19,
|
|
7671
7743
|
columnNumber: 5
|
|
7672
7744
|
}
|
|
@@ -7678,14 +7750,14 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
|
|
|
7678
7750
|
d: "M14.31 10.41H3.9v-2.6h10.41z",
|
|
7679
7751
|
__self: undefined,
|
|
7680
7752
|
__source: {
|
|
7681
|
-
fileName: _jsxFileName$
|
|
7753
|
+
fileName: _jsxFileName$M,
|
|
7682
7754
|
lineNumber: 26,
|
|
7683
7755
|
columnNumber: 5
|
|
7684
7756
|
}
|
|
7685
7757
|
}));
|
|
7686
7758
|
|
|
7687
|
-
const _excluded$
|
|
7688
|
-
var _jsxFileName$
|
|
7759
|
+
const _excluded$n = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
|
|
7760
|
+
var _jsxFileName$L = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/InputCheckbox.js";
|
|
7689
7761
|
const StyledIndicator$2 = styled(CheckboxPrimitive.Indicator, {
|
|
7690
7762
|
alignItems: 'center',
|
|
7691
7763
|
display: 'flex',
|
|
@@ -7743,7 +7815,7 @@ const Checkbox = _ref => {
|
|
|
7743
7815
|
index,
|
|
7744
7816
|
value
|
|
7745
7817
|
} = _ref,
|
|
7746
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7818
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
7747
7819
|
const context = useContext(CheckboxContext);
|
|
7748
7820
|
const [isChecked, setChecked] = useState(false);
|
|
7749
7821
|
useEffect(() => {
|
|
@@ -7764,28 +7836,28 @@ const Checkbox = _ref => {
|
|
|
7764
7836
|
}, props, {
|
|
7765
7837
|
__self: undefined,
|
|
7766
7838
|
__source: {
|
|
7767
|
-
fileName: _jsxFileName$
|
|
7839
|
+
fileName: _jsxFileName$L,
|
|
7768
7840
|
lineNumber: 64,
|
|
7769
7841
|
columnNumber: 5
|
|
7770
7842
|
}
|
|
7771
7843
|
}), /*#__PURE__*/React__default.createElement(StyledIndicator$2, {
|
|
7772
7844
|
__self: undefined,
|
|
7773
7845
|
__source: {
|
|
7774
|
-
fileName: _jsxFileName$
|
|
7846
|
+
fileName: _jsxFileName$L,
|
|
7775
7847
|
lineNumber: 77,
|
|
7776
7848
|
columnNumber: 7
|
|
7777
7849
|
}
|
|
7778
7850
|
}, indeterminate ? /*#__PURE__*/React__default.createElement(SvgMinusOutline, {
|
|
7779
7851
|
__self: undefined,
|
|
7780
7852
|
__source: {
|
|
7781
|
-
fileName: _jsxFileName$
|
|
7853
|
+
fileName: _jsxFileName$L,
|
|
7782
7854
|
lineNumber: 77,
|
|
7783
7855
|
columnNumber: 41
|
|
7784
7856
|
}
|
|
7785
7857
|
}) : /*#__PURE__*/React__default.createElement(CheckOutline$1, {
|
|
7786
7858
|
__self: undefined,
|
|
7787
7859
|
__source: {
|
|
7788
|
-
fileName: _jsxFileName$
|
|
7860
|
+
fileName: _jsxFileName$L,
|
|
7789
7861
|
lineNumber: 77,
|
|
7790
7862
|
columnNumber: 60
|
|
7791
7863
|
}
|
|
@@ -7798,14 +7870,14 @@ const InputCheckbox = _ref2 => {
|
|
|
7798
7870
|
gap: 4,
|
|
7799
7871
|
__self: undefined,
|
|
7800
7872
|
__source: {
|
|
7801
|
-
fileName: _jsxFileName$
|
|
7873
|
+
fileName: _jsxFileName$L,
|
|
7802
7874
|
lineNumber: 84,
|
|
7803
7875
|
columnNumber: 5
|
|
7804
7876
|
}
|
|
7805
7877
|
}, /*#__PURE__*/React__default.createElement(Checkbox, _extends({}, props, {
|
|
7806
7878
|
__self: undefined,
|
|
7807
7879
|
__source: {
|
|
7808
|
-
fileName: _jsxFileName$
|
|
7880
|
+
fileName: _jsxFileName$L,
|
|
7809
7881
|
lineNumber: 85,
|
|
7810
7882
|
columnNumber: 7
|
|
7811
7883
|
}
|
|
@@ -7821,14 +7893,14 @@ const InputCheckbox = _ref2 => {
|
|
|
7821
7893
|
},
|
|
7822
7894
|
__self: undefined,
|
|
7823
7895
|
__source: {
|
|
7824
|
-
fileName: _jsxFileName$
|
|
7896
|
+
fileName: _jsxFileName$L,
|
|
7825
7897
|
lineNumber: 86,
|
|
7826
7898
|
columnNumber: 7
|
|
7827
7899
|
}
|
|
7828
7900
|
}, props.label)) : /*#__PURE__*/React__default.createElement(Checkbox, _extends({}, props, {
|
|
7829
7901
|
__self: undefined,
|
|
7830
7902
|
__source: {
|
|
7831
|
-
fileName: _jsxFileName$
|
|
7903
|
+
fileName: _jsxFileName$L,
|
|
7832
7904
|
lineNumber: 101,
|
|
7833
7905
|
columnNumber: 5
|
|
7834
7906
|
}
|
|
@@ -7845,8 +7917,8 @@ InputCheckbox.propTypes = {
|
|
|
7845
7917
|
};
|
|
7846
7918
|
InputCheckbox.displayName = 'InputCheckbox';
|
|
7847
7919
|
|
|
7848
|
-
const _excluded$
|
|
7849
|
-
var _jsxFileName$
|
|
7920
|
+
const _excluded$m = ["children", "size"];
|
|
7921
|
+
var _jsxFileName$K = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputGroup/InputGroup.js";
|
|
7850
7922
|
const InputGroupStyle = styled('div', {
|
|
7851
7923
|
display: 'flex',
|
|
7852
7924
|
width: '100%',
|
|
@@ -7985,7 +8057,7 @@ const InputGroup = _ref => {
|
|
|
7985
8057
|
children,
|
|
7986
8058
|
size = 'lg'
|
|
7987
8059
|
} = _ref,
|
|
7988
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8060
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
7989
8061
|
const isLetter = children.some(child => child.type.name === 'InputPrefix' || child.type.name === 'InputSuffix' || child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
|
|
7990
8062
|
const isElement = children.some(child => child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
|
|
7991
8063
|
const clone = children.map((child, index) => {
|
|
@@ -8008,7 +8080,7 @@ const InputGroup = _ref => {
|
|
|
8008
8080
|
isElement: isElement,
|
|
8009
8081
|
__self: undefined,
|
|
8010
8082
|
__source: {
|
|
8011
|
-
fileName: _jsxFileName$
|
|
8083
|
+
fileName: _jsxFileName$K,
|
|
8012
8084
|
lineNumber: 169,
|
|
8013
8085
|
columnNumber: 10
|
|
8014
8086
|
}
|
|
@@ -8184,8 +8256,8 @@ InputSuffix.propTypes = {
|
|
|
8184
8256
|
children: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
|
|
8185
8257
|
};
|
|
8186
8258
|
|
|
8187
|
-
const _excluded$
|
|
8188
|
-
var _jsxFileName$
|
|
8259
|
+
const _excluded$l = ["disabled", "readOnly"];
|
|
8260
|
+
var _jsxFileName$J = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputText/InputText.js";
|
|
8189
8261
|
const disabledStyle = {
|
|
8190
8262
|
backgroundColor: '$formDisable',
|
|
8191
8263
|
color: '$textDisable',
|
|
@@ -8358,7 +8430,7 @@ const InputText = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
8358
8430
|
disabled,
|
|
8359
8431
|
readOnly
|
|
8360
8432
|
} = _ref,
|
|
8361
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8433
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
8362
8434
|
return /*#__PURE__*/React__default.createElement(StyledInput$1, _extends({
|
|
8363
8435
|
ref: ref,
|
|
8364
8436
|
disabled: disabled,
|
|
@@ -8368,7 +8440,7 @@ const InputText = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
8368
8440
|
}, props, {
|
|
8369
8441
|
__self: undefined,
|
|
8370
8442
|
__source: {
|
|
8371
|
-
fileName: _jsxFileName$
|
|
8443
|
+
fileName: _jsxFileName$J,
|
|
8372
8444
|
lineNumber: 185,
|
|
8373
8445
|
columnNumber: 3
|
|
8374
8446
|
}
|
|
@@ -8386,8 +8458,8 @@ InputText.propTypes = {
|
|
|
8386
8458
|
};
|
|
8387
8459
|
InputText.displayName = 'InputText';
|
|
8388
8460
|
|
|
8389
|
-
const _excluded$
|
|
8390
|
-
var _jsxFileName$
|
|
8461
|
+
const _excluded$k = ["disabled", "readOnly"];
|
|
8462
|
+
var _jsxFileName$I = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputTextArea/InputTextArea.js";
|
|
8391
8463
|
const StyledTextArea = styled(StyledInput$1, {
|
|
8392
8464
|
variants: {
|
|
8393
8465
|
size: {
|
|
@@ -8408,7 +8480,7 @@ const InputTextArea = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
8408
8480
|
disabled,
|
|
8409
8481
|
readOnly
|
|
8410
8482
|
} = _ref,
|
|
8411
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8483
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
8412
8484
|
const textareaRef = useRef(null);
|
|
8413
8485
|
useEffect(() => {
|
|
8414
8486
|
if (textareaRef.current) {
|
|
@@ -8442,7 +8514,7 @@ const InputTextArea = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
8442
8514
|
}, props, {
|
|
8443
8515
|
__self: undefined,
|
|
8444
8516
|
__source: {
|
|
8445
|
-
fileName: _jsxFileName$
|
|
8517
|
+
fileName: _jsxFileName$I,
|
|
8446
8518
|
lineNumber: 51,
|
|
8447
8519
|
columnNumber: 5
|
|
8448
8520
|
}
|
|
@@ -8465,21 +8537,21 @@ InputTextArea.defaultProps = {
|
|
|
8465
8537
|
|
|
8466
8538
|
const InputRadioContext = /*#__PURE__*/React__default.createContext();
|
|
8467
8539
|
|
|
8468
|
-
var _jsxFileName$
|
|
8540
|
+
var _jsxFileName$H = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadioGroup.js";
|
|
8469
8541
|
const RadioGroup = styled(RadioGroupPrimitive.Root, Flex$1);
|
|
8470
8542
|
function InputRadioGroup(props) {
|
|
8471
8543
|
return (props == null ? void 0 : props.children) && /*#__PURE__*/React__default.createElement(InputRadioContext.Provider, {
|
|
8472
8544
|
value: props,
|
|
8473
8545
|
__self: this,
|
|
8474
8546
|
__source: {
|
|
8475
|
-
fileName: _jsxFileName$
|
|
8547
|
+
fileName: _jsxFileName$H,
|
|
8476
8548
|
lineNumber: 13,
|
|
8477
8549
|
columnNumber: 7
|
|
8478
8550
|
}
|
|
8479
8551
|
}, /*#__PURE__*/React__default.createElement(RadioGroup, _extends({}, props, {
|
|
8480
8552
|
__self: this,
|
|
8481
8553
|
__source: {
|
|
8482
|
-
fileName: _jsxFileName$
|
|
8554
|
+
fileName: _jsxFileName$H,
|
|
8483
8555
|
lineNumber: 14,
|
|
8484
8556
|
columnNumber: 9
|
|
8485
8557
|
}
|
|
@@ -8498,8 +8570,8 @@ InputRadioGroup.propTypes = {
|
|
|
8498
8570
|
};
|
|
8499
8571
|
InputRadioGroup.displayName = 'InputRadioGroup';
|
|
8500
8572
|
|
|
8501
|
-
const _excluded$
|
|
8502
|
-
var _jsxFileName$
|
|
8573
|
+
const _excluded$j = ["id", "disabled", "css", "inputType", "inputProps", "description", "readOnly"];
|
|
8574
|
+
var _jsxFileName$G = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadio.js";
|
|
8503
8575
|
const INDICATOR_BASE_STYLES = {
|
|
8504
8576
|
alignItems: 'center',
|
|
8505
8577
|
display: 'flex',
|
|
@@ -8664,7 +8736,7 @@ const InputRadio = _ref => {
|
|
|
8664
8736
|
description,
|
|
8665
8737
|
readOnly
|
|
8666
8738
|
} = _ref,
|
|
8667
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8739
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
8668
8740
|
function renderInputType(type, checkedValue, onValueChange) {
|
|
8669
8741
|
switch (type) {
|
|
8670
8742
|
case 'number':
|
|
@@ -8677,7 +8749,7 @@ const InputRadio = _ref => {
|
|
|
8677
8749
|
asChild: true,
|
|
8678
8750
|
__self: this,
|
|
8679
8751
|
__source: {
|
|
8680
|
-
fileName: _jsxFileName$
|
|
8752
|
+
fileName: _jsxFileName$G,
|
|
8681
8753
|
lineNumber: 171,
|
|
8682
8754
|
columnNumber: 11
|
|
8683
8755
|
}
|
|
@@ -8693,7 +8765,7 @@ const InputRadio = _ref => {
|
|
|
8693
8765
|
asChild: true,
|
|
8694
8766
|
__self: this,
|
|
8695
8767
|
__source: {
|
|
8696
|
-
fileName: _jsxFileName$
|
|
8768
|
+
fileName: _jsxFileName$G,
|
|
8697
8769
|
lineNumber: 184,
|
|
8698
8770
|
columnNumber: 11
|
|
8699
8771
|
}
|
|
@@ -8712,7 +8784,7 @@ const InputRadio = _ref => {
|
|
|
8712
8784
|
},
|
|
8713
8785
|
__self: this,
|
|
8714
8786
|
__source: {
|
|
8715
|
-
fileName: _jsxFileName$
|
|
8787
|
+
fileName: _jsxFileName$G,
|
|
8716
8788
|
lineNumber: 198,
|
|
8717
8789
|
columnNumber: 11
|
|
8718
8790
|
}
|
|
@@ -8722,7 +8794,7 @@ const InputRadio = _ref => {
|
|
|
8722
8794
|
return /*#__PURE__*/React__default.createElement(InputRadioContext.Consumer, {
|
|
8723
8795
|
__self: undefined,
|
|
8724
8796
|
__source: {
|
|
8725
|
-
fileName: _jsxFileName$
|
|
8797
|
+
fileName: _jsxFileName$G,
|
|
8726
8798
|
lineNumber: 217,
|
|
8727
8799
|
columnNumber: 5
|
|
8728
8800
|
}
|
|
@@ -8739,7 +8811,7 @@ const InputRadio = _ref => {
|
|
|
8739
8811
|
outlined: outlined,
|
|
8740
8812
|
__self: undefined,
|
|
8741
8813
|
__source: {
|
|
8742
|
-
fileName: _jsxFileName$
|
|
8814
|
+
fileName: _jsxFileName$G,
|
|
8743
8815
|
lineNumber: 222,
|
|
8744
8816
|
columnNumber: 11
|
|
8745
8817
|
}
|
|
@@ -8754,7 +8826,7 @@ const InputRadio = _ref => {
|
|
|
8754
8826
|
css: css,
|
|
8755
8827
|
__self: undefined,
|
|
8756
8828
|
__source: {
|
|
8757
|
-
fileName: _jsxFileName$
|
|
8829
|
+
fileName: _jsxFileName$G,
|
|
8758
8830
|
lineNumber: 223,
|
|
8759
8831
|
columnNumber: 13
|
|
8760
8832
|
}
|
|
@@ -8763,7 +8835,7 @@ const InputRadio = _ref => {
|
|
|
8763
8835
|
gap: 4,
|
|
8764
8836
|
__self: undefined,
|
|
8765
8837
|
__source: {
|
|
8766
|
-
fileName: _jsxFileName$
|
|
8838
|
+
fileName: _jsxFileName$G,
|
|
8767
8839
|
lineNumber: 233,
|
|
8768
8840
|
columnNumber: 15
|
|
8769
8841
|
}
|
|
@@ -8774,14 +8846,14 @@ const InputRadio = _ref => {
|
|
|
8774
8846
|
}, props, {
|
|
8775
8847
|
__self: undefined,
|
|
8776
8848
|
__source: {
|
|
8777
|
-
fileName: _jsxFileName$
|
|
8849
|
+
fileName: _jsxFileName$G,
|
|
8778
8850
|
lineNumber: 234,
|
|
8779
8851
|
columnNumber: 17
|
|
8780
8852
|
}
|
|
8781
8853
|
}), /*#__PURE__*/React__default.createElement(StyledIndicator$1, {
|
|
8782
8854
|
__self: undefined,
|
|
8783
8855
|
__source: {
|
|
8784
|
-
fileName: _jsxFileName$
|
|
8856
|
+
fileName: _jsxFileName$G,
|
|
8785
8857
|
lineNumber: 235,
|
|
8786
8858
|
columnNumber: 19
|
|
8787
8859
|
}
|
|
@@ -8793,7 +8865,7 @@ const InputRadio = _ref => {
|
|
|
8793
8865
|
},
|
|
8794
8866
|
__self: undefined,
|
|
8795
8867
|
__source: {
|
|
8796
|
-
fileName: _jsxFileName$
|
|
8868
|
+
fileName: _jsxFileName$G,
|
|
8797
8869
|
lineNumber: 240,
|
|
8798
8870
|
columnNumber: 17
|
|
8799
8871
|
}
|
|
@@ -10947,8 +11019,8 @@ var NumberFormat = /*@__PURE__*/function (superclass) {
|
|
|
10947
11019
|
}(React__default.Component);
|
|
10948
11020
|
NumberFormat.defaultProps = defaultProps;
|
|
10949
11021
|
|
|
10950
|
-
const _excluded$
|
|
10951
|
-
var _jsxFileName$
|
|
11022
|
+
const _excluded$i = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled", "control", "name", "maxValueLength", "maxLength", "thousandSeparator"];
|
|
11023
|
+
var _jsxFileName$F = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputNumber/InputNumber.js";
|
|
10952
11024
|
const StyledInput = styled(NumberFormat, {
|
|
10953
11025
|
// Reset
|
|
10954
11026
|
appearance: 'none',
|
|
@@ -11143,7 +11215,7 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
11143
11215
|
maxLength,
|
|
11144
11216
|
thousandSeparator
|
|
11145
11217
|
} = _ref,
|
|
11146
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
11218
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
11147
11219
|
return /*#__PURE__*/React__default.createElement(ConditionalWrapper, {
|
|
11148
11220
|
condition: Boolean(control),
|
|
11149
11221
|
wrapper: child => /*#__PURE__*/React__default.createElement(Controller, {
|
|
@@ -11161,14 +11233,14 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
11161
11233
|
}),
|
|
11162
11234
|
__self: undefined,
|
|
11163
11235
|
__source: {
|
|
11164
|
-
fileName: _jsxFileName$
|
|
11236
|
+
fileName: _jsxFileName$F,
|
|
11165
11237
|
lineNumber: 225,
|
|
11166
11238
|
columnNumber: 9
|
|
11167
11239
|
}
|
|
11168
11240
|
}),
|
|
11169
11241
|
__self: undefined,
|
|
11170
11242
|
__source: {
|
|
11171
|
-
fileName: _jsxFileName$
|
|
11243
|
+
fileName: _jsxFileName$F,
|
|
11172
11244
|
lineNumber: 222,
|
|
11173
11245
|
columnNumber: 5
|
|
11174
11246
|
}
|
|
@@ -11186,7 +11258,7 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
11186
11258
|
}, props, {
|
|
11187
11259
|
__self: undefined,
|
|
11188
11260
|
__source: {
|
|
11189
|
-
fileName: _jsxFileName$
|
|
11261
|
+
fileName: _jsxFileName$F,
|
|
11190
11262
|
lineNumber: 234,
|
|
11191
11263
|
columnNumber: 7
|
|
11192
11264
|
}
|
|
@@ -11208,6 +11280,8 @@ InputNumber.defaultProps = {
|
|
|
11208
11280
|
InputNumber.name = 'InputText';
|
|
11209
11281
|
InputNumber.displayName = 'InputNumber';
|
|
11210
11282
|
|
|
11283
|
+
const _excluded$h = ["className", "children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"];
|
|
11284
|
+
var _jsxFileName$E = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tag/Tag.js";
|
|
11211
11285
|
const TagWrapper$4 = styled('div', {
|
|
11212
11286
|
boxSizing: 'border-box',
|
|
11213
11287
|
listStyle: 'none',
|
|
@@ -11250,10 +11324,6 @@ const TagWrapper$4 = styled('div', {
|
|
|
11250
11324
|
}
|
|
11251
11325
|
},
|
|
11252
11326
|
type: {
|
|
11253
|
-
default: {
|
|
11254
|
-
background: '$bgGray',
|
|
11255
|
-
color: '$textPrimary'
|
|
11256
|
-
},
|
|
11257
11327
|
success: {
|
|
11258
11328
|
background: '$bgSuccess',
|
|
11259
11329
|
color: '$textGreen'
|
|
@@ -11303,8 +11373,8 @@ const StyledIconLeft$3 = styled('div', {
|
|
|
11303
11373
|
alignItems: 'center',
|
|
11304
11374
|
color: 'inherit'
|
|
11305
11375
|
});
|
|
11306
|
-
const Tag = /*#__PURE__*/React__default.forwardRef((
|
|
11307
|
-
|
|
11376
|
+
const Tag = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
11377
|
+
let {
|
|
11308
11378
|
children,
|
|
11309
11379
|
onClick,
|
|
11310
11380
|
size,
|
|
@@ -11314,35 +11384,71 @@ const Tag = /*#__PURE__*/React__default.forwardRef((_a, ref) => {
|
|
|
11314
11384
|
type,
|
|
11315
11385
|
onRemove,
|
|
11316
11386
|
readOnly
|
|
11317
|
-
} =
|
|
11318
|
-
props =
|
|
11319
|
-
return
|
|
11387
|
+
} = _ref,
|
|
11388
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
11389
|
+
return /*#__PURE__*/React__default.createElement(TagWrapper$4, _extends({
|
|
11320
11390
|
ref: ref,
|
|
11321
11391
|
onClick: onClick,
|
|
11322
11392
|
size: size,
|
|
11323
11393
|
disabled: disabled,
|
|
11324
11394
|
type: type,
|
|
11325
|
-
readOnly: readOnly
|
|
11395
|
+
readOnly: readOnly,
|
|
11396
|
+
css: Object.assign({}, props.css)
|
|
11326
11397
|
}, props, {
|
|
11327
|
-
|
|
11328
|
-
|
|
11329
|
-
|
|
11330
|
-
|
|
11331
|
-
|
|
11332
|
-
|
|
11333
|
-
|
|
11334
|
-
|
|
11335
|
-
|
|
11336
|
-
|
|
11337
|
-
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
-
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
|
|
11344
|
-
|
|
11398
|
+
__self: undefined,
|
|
11399
|
+
__source: {
|
|
11400
|
+
fileName: _jsxFileName$E,
|
|
11401
|
+
lineNumber: 84,
|
|
11402
|
+
columnNumber: 7
|
|
11403
|
+
}
|
|
11404
|
+
}), icon !== undefined ? /*#__PURE__*/React__default.createElement(StyledIconLeft$3, {
|
|
11405
|
+
__self: undefined,
|
|
11406
|
+
__source: {
|
|
11407
|
+
fileName: _jsxFileName$E,
|
|
11408
|
+
lineNumber: 94,
|
|
11409
|
+
columnNumber: 31
|
|
11410
|
+
}
|
|
11411
|
+
}, icon) : null, /*#__PURE__*/React__default.createElement(TagComponent$1, {
|
|
11412
|
+
__self: undefined,
|
|
11413
|
+
__source: {
|
|
11414
|
+
fileName: _jsxFileName$E,
|
|
11415
|
+
lineNumber: 95,
|
|
11416
|
+
columnNumber: 9
|
|
11417
|
+
}
|
|
11418
|
+
}, children), isRemovable ? /*#__PURE__*/React__default.createElement(StyledIconRight$1, {
|
|
11419
|
+
disabled: disabled,
|
|
11420
|
+
onClick: onRemove,
|
|
11421
|
+
readOnly: readOnly,
|
|
11422
|
+
__self: undefined,
|
|
11423
|
+
__source: {
|
|
11424
|
+
fileName: _jsxFileName$E,
|
|
11425
|
+
lineNumber: 97,
|
|
11426
|
+
columnNumber: 11
|
|
11427
|
+
}
|
|
11428
|
+
}, /*#__PURE__*/React__default.createElement(CloseOutline, {
|
|
11429
|
+
size: 16,
|
|
11430
|
+
color: colors$8.iconSecondary,
|
|
11431
|
+
style: {
|
|
11432
|
+
verticalAlign: 'middle'
|
|
11433
|
+
},
|
|
11434
|
+
__self: undefined,
|
|
11435
|
+
__source: {
|
|
11436
|
+
fileName: _jsxFileName$E,
|
|
11437
|
+
lineNumber: 98,
|
|
11438
|
+
columnNumber: 13
|
|
11439
|
+
}
|
|
11440
|
+
})) : null);
|
|
11345
11441
|
});
|
|
11442
|
+
Tag.propTypes = {
|
|
11443
|
+
size: PropTypes.string,
|
|
11444
|
+
disabled: PropTypes.bool,
|
|
11445
|
+
type: PropTypes.string,
|
|
11446
|
+
icon: PropTypes.element,
|
|
11447
|
+
isRemovable: PropTypes.bool,
|
|
11448
|
+
onRemove: PropTypes.func,
|
|
11449
|
+
onClick: PropTypes.func,
|
|
11450
|
+
readOnly: PropTypes.bool
|
|
11451
|
+
};
|
|
11346
11452
|
Tag.defaultProps = {
|
|
11347
11453
|
size: 'sm',
|
|
11348
11454
|
isRemovable: false,
|
|
@@ -13247,6 +13353,7 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
13247
13353
|
},
|
|
13248
13354
|
inputProps: getInputProps({
|
|
13249
13355
|
onChange: event => {
|
|
13356
|
+
setOpenOptions(true);
|
|
13250
13357
|
if (event.type !== 'change') return;
|
|
13251
13358
|
const query = event.target.value;
|
|
13252
13359
|
if (!fetchData) handleInputValue(query);else debouncedSearch(query);
|
|
@@ -19781,8 +19888,7 @@ function InputDatePicker({
|
|
|
19781
19888
|
portalledMobile = false,
|
|
19782
19889
|
onClose,
|
|
19783
19890
|
mobileOnly,
|
|
19784
|
-
desktopOnly
|
|
19785
|
-
advanceOptions
|
|
19891
|
+
desktopOnly
|
|
19786
19892
|
}) {
|
|
19787
19893
|
const {
|
|
19788
19894
|
t,
|
|
@@ -19872,22 +19978,20 @@ function InputDatePicker({
|
|
|
19872
19978
|
}
|
|
19873
19979
|
};
|
|
19874
19980
|
const renderDatePicker = () => {
|
|
19875
|
-
const options = language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn;
|
|
19876
|
-
const advancePickerReducer = (advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.reducer) || advancePickerDate;
|
|
19877
19981
|
const handleDatePickerChange = value => {
|
|
19878
19982
|
if (showRangeControl || type === 'range_picker') {
|
|
19879
19983
|
if (rangePickerType === 'monthly') {
|
|
19880
19984
|
dispatch({
|
|
19881
19985
|
type: 'UPDATE',
|
|
19882
|
-
payload:
|
|
19986
|
+
payload: advancePickerDate('RANGE_MONTH', value)
|
|
19883
19987
|
});
|
|
19884
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(
|
|
19988
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerDate('RANGE_MONTH', value));
|
|
19885
19989
|
} else {
|
|
19886
19990
|
dispatch({
|
|
19887
19991
|
type: 'UPDATE',
|
|
19888
|
-
payload:
|
|
19992
|
+
payload: advancePickerDate('RANGE_WEEK', value)
|
|
19889
19993
|
});
|
|
19890
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(
|
|
19994
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerDate('RANGE_WEEK', value));
|
|
19891
19995
|
}
|
|
19892
19996
|
} else {
|
|
19893
19997
|
dispatch({
|
|
@@ -19899,10 +20003,10 @@ function InputDatePicker({
|
|
|
19899
20003
|
};
|
|
19900
20004
|
return jsx(DatePicker, {
|
|
19901
20005
|
advanceView: type === ADVANCE_PICKER && (!advanceView ? jsx(AdvancedOption, {
|
|
19902
|
-
options:
|
|
20006
|
+
options: language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn,
|
|
19903
20007
|
disabled: disabled,
|
|
19904
20008
|
optionHandler: value => {
|
|
19905
|
-
const reducedResult =
|
|
20009
|
+
const reducedResult = advancePickerDate(value, undefined);
|
|
19906
20010
|
const dateAsString = moment(reducedResult[1]).format('YYYY-MM-DD');
|
|
19907
20011
|
const payload = [reducedResult[0], moment(`${dateAsString} 23:59`, 'YYYY-MM-DD HH:mm').toDate()];
|
|
19908
20012
|
dispatch({
|
|
@@ -20146,8 +20250,7 @@ const InputDateRange = /*#__PURE__*/React.forwardRef(({
|
|
|
20146
20250
|
placement: _placement = 'bottom',
|
|
20147
20251
|
readOnly: _readOnly = false,
|
|
20148
20252
|
isInvalid: _isInvalid = false,
|
|
20149
|
-
css
|
|
20150
|
-
advanceOptions
|
|
20253
|
+
css
|
|
20151
20254
|
}, ref) => {
|
|
20152
20255
|
const {
|
|
20153
20256
|
t,
|
|
@@ -20155,14 +20258,13 @@ const InputDateRange = /*#__PURE__*/React.forwardRef(({
|
|
|
20155
20258
|
} = useTranslation('translation');
|
|
20156
20259
|
const language = i18n.language;
|
|
20157
20260
|
const pickerOptions = language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn;
|
|
20158
|
-
const advancePickerReducer = (advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.reducer) || advancePickerDate;
|
|
20159
20261
|
return jsx(InputSelect, {
|
|
20160
|
-
option:
|
|
20262
|
+
option: pickerOptions.map(option => ({
|
|
20161
20263
|
name: option.label,
|
|
20162
20264
|
value: option.value
|
|
20163
20265
|
})),
|
|
20164
20266
|
onChange: selectedOption => {
|
|
20165
|
-
if (onChange) onChange(
|
|
20267
|
+
if (onChange) onChange(advancePickerDate(selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value, undefined));
|
|
20166
20268
|
},
|
|
20167
20269
|
placeholder: placeholder || t('placeholder.select', 'Pilih'),
|
|
20168
20270
|
size: _size,
|
|
@@ -51900,236 +52002,12 @@ function PrimitiveLoadingBar({
|
|
|
51900
52002
|
}, void 0)]
|
|
51901
52003
|
}), void 0);
|
|
51902
52004
|
}
|
|
51903
|
-
const rotateKeyframe = keyframes({
|
|
51904
|
-
'100%': {
|
|
51905
|
-
transform: 'rotate(360deg)'
|
|
51906
|
-
}
|
|
51907
|
-
});
|
|
51908
|
-
const dashKeyframe = keyframes({
|
|
51909
|
-
'0%': {
|
|
51910
|
-
strokeDasharray: '0,125',
|
|
51911
|
-
strokeDashoffset: -8
|
|
51912
|
-
},
|
|
51913
|
-
'50%': {
|
|
51914
|
-
strokeDasharray: 125,
|
|
51915
|
-
strokeDashoffset: -10
|
|
51916
|
-
},
|
|
51917
|
-
'100%': {
|
|
51918
|
-
strokeDasharray: 125,
|
|
51919
|
-
strokeDashoffset: -125
|
|
51920
|
-
}
|
|
51921
|
-
});
|
|
51922
|
-
const LoadingContainer = styled$1('div', {
|
|
51923
|
-
position: 'absolute',
|
|
51924
|
-
width: 152,
|
|
51925
|
-
height: 152,
|
|
51926
|
-
top: '50%',
|
|
51927
|
-
left: '50%',
|
|
51928
|
-
transform: 'translate(-50%,-50%)'
|
|
51929
|
-
});
|
|
51930
|
-
const LogoSvg = styled$1('svg', {
|
|
51931
|
-
height: 152,
|
|
51932
|
-
position: 'absolute',
|
|
51933
|
-
width: 152
|
|
51934
|
-
});
|
|
51935
|
-
const LoadingSvg = styled$1('svg', {
|
|
51936
|
-
animation: `${rotateKeyframe} 2s linear infinite`,
|
|
51937
|
-
height: 152,
|
|
51938
|
-
position: 'absolute',
|
|
51939
|
-
width: 152,
|
|
51940
|
-
top: '-22px'
|
|
51941
|
-
});
|
|
51942
|
-
const LoadingBackground = styled$1('div', {
|
|
51943
|
-
background: 'conic-gradient(#fff5f6, #FF97A4, #02B4F3, #81CF77, #6D60AE, #FF6C53 320deg)',
|
|
51944
|
-
width: '100%',
|
|
51945
|
-
height: '100%'
|
|
51946
|
-
});
|
|
51947
|
-
const LoadingCircle = styled$1('circle', {
|
|
51948
|
-
stroke: 'white',
|
|
51949
|
-
strokeLinecap: 'round',
|
|
51950
|
-
transformOrigin: '50% 50%',
|
|
51951
|
-
transform: 'rotate(-102deg)',
|
|
51952
|
-
animation: `${dashKeyframe} 1.5s ease-in-out infinite`
|
|
51953
|
-
});
|
|
51954
|
-
const LoadingLabel = styled$1(Paragraph, {
|
|
51955
|
-
position: 'relative',
|
|
51956
|
-
top: 100
|
|
51957
|
-
});
|
|
51958
|
-
function CircularLoadingBar({
|
|
51959
|
-
label
|
|
51960
|
-
}) {
|
|
51961
|
-
return jsxs(LoadingContainer, {
|
|
51962
|
-
children: [jsxs(LogoSvg, Object.assign({
|
|
51963
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
51964
|
-
width: "152",
|
|
51965
|
-
height: "152",
|
|
51966
|
-
viewBox: "0 0 152 152",
|
|
51967
|
-
fill: "none"
|
|
51968
|
-
}, {
|
|
51969
|
-
children: [jsxs("g", Object.assign({
|
|
51970
|
-
filter: "url(#filter0_ddd_4303_695)"
|
|
51971
|
-
}, {
|
|
51972
|
-
children: [jsx("rect", {
|
|
51973
|
-
x: "46.0004",
|
|
51974
|
-
y: "23.9999",
|
|
51975
|
-
width: "60",
|
|
51976
|
-
height: "60",
|
|
51977
|
-
rx: "30",
|
|
51978
|
-
fill: "url(#paint0_linear_4303_695)"
|
|
51979
|
-
}, void 0), jsx("rect", {
|
|
51980
|
-
x: "46",
|
|
51981
|
-
y: "24",
|
|
51982
|
-
width: "60",
|
|
51983
|
-
height: "60",
|
|
51984
|
-
rx: "30",
|
|
51985
|
-
stroke: "url(#paint1_linear_4303_695)",
|
|
51986
|
-
"stroke-opacity": "0.99",
|
|
51987
|
-
"stroke-width": "5"
|
|
51988
|
-
}, void 0), jsx("path", {
|
|
51989
|
-
"fill-rule": "evenodd",
|
|
51990
|
-
"clip-rule": "evenodd",
|
|
51991
|
-
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",
|
|
51992
|
-
fill: "white"
|
|
51993
|
-
}, void 0)]
|
|
51994
|
-
}), void 0), jsxs("defs", {
|
|
51995
|
-
children: [jsxs("filter", Object.assign({
|
|
51996
|
-
id: "filter0_ddd_4303_695",
|
|
51997
|
-
x: "0.5",
|
|
51998
|
-
y: "0.5",
|
|
51999
|
-
width: "151",
|
|
52000
|
-
height: "151",
|
|
52001
|
-
filterUnits: "userSpaceOnUse",
|
|
52002
|
-
"color-interpolation-filters": "sRGB"
|
|
52003
|
-
}, {
|
|
52004
|
-
children: [jsx("feFlood", {
|
|
52005
|
-
"flood-opacity": "0",
|
|
52006
|
-
result: "BackgroundImageFix"
|
|
52007
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52008
|
-
in: "SourceAlpha",
|
|
52009
|
-
type: "matrix",
|
|
52010
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
52011
|
-
result: "hardAlpha"
|
|
52012
|
-
}, void 0), jsx("feOffset", {
|
|
52013
|
-
dy: "22"
|
|
52014
|
-
}, void 0), jsx("feGaussianBlur", {
|
|
52015
|
-
stdDeviation: "21.5"
|
|
52016
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52017
|
-
type: "matrix",
|
|
52018
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
|
|
52019
|
-
}, void 0), jsx("feBlend", {
|
|
52020
|
-
mode: "normal",
|
|
52021
|
-
in2: "BackgroundImageFix",
|
|
52022
|
-
result: "effect1_dropShadow_4303_695"
|
|
52023
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52024
|
-
in: "SourceAlpha",
|
|
52025
|
-
type: "matrix",
|
|
52026
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
52027
|
-
result: "hardAlpha"
|
|
52028
|
-
}, void 0), jsx("feOffset", {
|
|
52029
|
-
dy: "9"
|
|
52030
|
-
}, void 0), jsx("feGaussianBlur", {
|
|
52031
|
-
stdDeviation: "12"
|
|
52032
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52033
|
-
type: "matrix",
|
|
52034
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0"
|
|
52035
|
-
}, void 0), jsx("feBlend", {
|
|
52036
|
-
mode: "normal",
|
|
52037
|
-
in2: "effect1_dropShadow_4303_695",
|
|
52038
|
-
result: "effect2_dropShadow_4303_695"
|
|
52039
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52040
|
-
in: "SourceAlpha",
|
|
52041
|
-
type: "matrix",
|
|
52042
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
52043
|
-
result: "hardAlpha"
|
|
52044
|
-
}, void 0), jsx("feOffset", {
|
|
52045
|
-
dy: "3"
|
|
52046
|
-
}, void 0), jsx("feGaussianBlur", {
|
|
52047
|
-
stdDeviation: "4.5"
|
|
52048
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52049
|
-
type: "matrix",
|
|
52050
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0"
|
|
52051
|
-
}, void 0), jsx("feBlend", {
|
|
52052
|
-
mode: "normal",
|
|
52053
|
-
in2: "effect2_dropShadow_4303_695",
|
|
52054
|
-
result: "effect3_dropShadow_4303_695"
|
|
52055
|
-
}, void 0), jsx("feBlend", {
|
|
52056
|
-
mode: "normal",
|
|
52057
|
-
in: "SourceGraphic",
|
|
52058
|
-
in2: "effect3_dropShadow_4303_695",
|
|
52059
|
-
result: "shape"
|
|
52060
|
-
}, void 0)]
|
|
52061
|
-
}), void 0), jsxs("linearGradient", Object.assign({
|
|
52062
|
-
id: "paint0_linear_4303_695",
|
|
52063
|
-
x1: "76.0004",
|
|
52064
|
-
y1: "23.9999",
|
|
52065
|
-
x2: "76.0004",
|
|
52066
|
-
y2: "83.9999",
|
|
52067
|
-
gradientUnits: "userSpaceOnUse"
|
|
52068
|
-
}, {
|
|
52069
|
-
children: [jsx("stop", {
|
|
52070
|
-
"stop-color": "#B3DCA7"
|
|
52071
|
-
}, void 0), jsx("stop", {
|
|
52072
|
-
offset: "1",
|
|
52073
|
-
"stop-color": "#22BDB6"
|
|
52074
|
-
}, void 0)]
|
|
52075
|
-
}), void 0), jsxs("linearGradient", Object.assign({
|
|
52076
|
-
id: "paint1_linear_4303_695",
|
|
52077
|
-
x1: "106",
|
|
52078
|
-
y1: "68.8332",
|
|
52079
|
-
x2: "50",
|
|
52080
|
-
y2: "37.3332",
|
|
52081
|
-
gradientUnits: "userSpaceOnUse"
|
|
52082
|
-
}, {
|
|
52083
|
-
children: [jsx("stop", {
|
|
52084
|
-
"stop-color": "#F4F4F4"
|
|
52085
|
-
}, void 0), jsx("stop", {
|
|
52086
|
-
offset: "1",
|
|
52087
|
-
"stop-color": "white"
|
|
52088
|
-
}, void 0)]
|
|
52089
|
-
}), void 0)]
|
|
52090
|
-
}, void 0)]
|
|
52091
|
-
}), void 0), jsxs(LoadingSvg, Object.assign({
|
|
52092
|
-
viewBox: "0 0 100 100",
|
|
52093
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
52094
|
-
}, {
|
|
52095
|
-
children: [jsx("defs", {
|
|
52096
|
-
children: jsx("mask", Object.assign({
|
|
52097
|
-
id: "mask"
|
|
52098
|
-
}, {
|
|
52099
|
-
children: jsx(LoadingCircle, {
|
|
52100
|
-
cx: "50",
|
|
52101
|
-
cy: "50",
|
|
52102
|
-
r: "20",
|
|
52103
|
-
fill: "none",
|
|
52104
|
-
"stroke-width": "4",
|
|
52105
|
-
"stroke-miterlimit": "10"
|
|
52106
|
-
}, void 0)
|
|
52107
|
-
}), void 0)
|
|
52108
|
-
}, void 0), jsx("foreignObject", Object.assign({
|
|
52109
|
-
x: "0",
|
|
52110
|
-
y: "0",
|
|
52111
|
-
width: "100",
|
|
52112
|
-
height: "100",
|
|
52113
|
-
mask: "url(#mask)"
|
|
52114
|
-
}, {
|
|
52115
|
-
children: jsx(LoadingBackground, {}, void 0)
|
|
52116
|
-
}), void 0)]
|
|
52117
|
-
}), void 0), label && jsx(LoadingLabel, Object.assign({
|
|
52118
|
-
color: "white",
|
|
52119
|
-
align: "center"
|
|
52120
|
-
}, {
|
|
52121
|
-
children: label
|
|
52122
|
-
}), void 0)]
|
|
52123
|
-
}, void 0);
|
|
52124
|
-
}
|
|
52125
52005
|
let interval;
|
|
52126
52006
|
function LoadingBar(props) {
|
|
52127
52007
|
const {
|
|
52128
52008
|
show,
|
|
52129
52009
|
onCompleted,
|
|
52130
|
-
interval: intervalTime
|
|
52131
|
-
isPageLoader,
|
|
52132
|
-
pageLoaderLabel
|
|
52010
|
+
interval: intervalTime
|
|
52133
52011
|
} = props;
|
|
52134
52012
|
const [progress, setProgress] = useState(0);
|
|
52135
52013
|
const [visibility, setVisibility] = useState(false);
|
|
@@ -52155,34 +52033,6 @@ function LoadingBar(props) {
|
|
|
52155
52033
|
onCompleted === null || onCompleted === void 0 ? void 0 : onCompleted();
|
|
52156
52034
|
}
|
|
52157
52035
|
}, [progress, onCompleted]);
|
|
52158
|
-
if (!show) return jsx(React__default.Fragment, {}, void 0);
|
|
52159
|
-
if (isPageLoader) {
|
|
52160
|
-
return jsx(ModalDialog, Object.assign({
|
|
52161
|
-
open: show,
|
|
52162
|
-
modal: true,
|
|
52163
|
-
allowPinchZoom: false,
|
|
52164
|
-
width: "100%",
|
|
52165
|
-
layer: 2000,
|
|
52166
|
-
isMobile: false,
|
|
52167
|
-
css: {
|
|
52168
|
-
borderRadius: '2px !important',
|
|
52169
|
-
'& > div': {
|
|
52170
|
-
backgroundColor: 'transparent !important',
|
|
52171
|
-
borderRadius: '2px !important'
|
|
52172
|
-
}
|
|
52173
|
-
}
|
|
52174
|
-
}, {
|
|
52175
|
-
children: jsx(ModalDialogContent, Object.assign({
|
|
52176
|
-
css: {
|
|
52177
|
-
padding: '$spacing-08 $spacing-11'
|
|
52178
|
-
}
|
|
52179
|
-
}, {
|
|
52180
|
-
children: jsx(CircularLoadingBar, {
|
|
52181
|
-
label: pageLoaderLabel
|
|
52182
|
-
}, void 0)
|
|
52183
|
-
}), void 0)
|
|
52184
|
-
}), void 0);
|
|
52185
|
-
}
|
|
52186
52036
|
return typeof (props === null || props === void 0 ? void 0 : props.progress) === 'number' ? jsx(PrimitiveLoadingBar, Object.assign({}, props, {
|
|
52187
52037
|
visibility: true
|
|
52188
52038
|
}), void 0) : jsx(PrimitiveLoadingBar, Object.assign({}, props, {
|
|
@@ -52195,8 +52045,7 @@ LoadingBar.defaultProps = {
|
|
|
52195
52045
|
show: false,
|
|
52196
52046
|
interval: 100,
|
|
52197
52047
|
description: 'Loading...',
|
|
52198
|
-
size: 'md'
|
|
52199
|
-
isPageLoader: false
|
|
52048
|
+
size: 'md'
|
|
52200
52049
|
};
|
|
52201
52050
|
|
|
52202
52051
|
const Container$4 = styled(Flex$1, {
|
|
@@ -53264,6 +53113,7 @@ const ProductList = props => {
|
|
|
53264
53113
|
label: tooltipLabel(name, variants)
|
|
53265
53114
|
}, {
|
|
53266
53115
|
children: jsxs(Box, Object.assign({
|
|
53116
|
+
gap: 2,
|
|
53267
53117
|
css: Object.assign({
|
|
53268
53118
|
display: 'flex',
|
|
53269
53119
|
alignItems: 'center',
|
|
@@ -53309,7 +53159,7 @@ const ProductList = props => {
|
|
|
53309
53159
|
padding: '4px 8px',
|
|
53310
53160
|
minWidth: 'unset',
|
|
53311
53161
|
justifyContent: 'flex-start',
|
|
53312
|
-
|
|
53162
|
+
mr: 'auto'
|
|
53313
53163
|
},
|
|
53314
53164
|
type: "varian"
|
|
53315
53165
|
}, {
|
|
@@ -56869,4 +56719,4 @@ const useToggle = initialValue => {
|
|
|
56869
56719
|
return useReducer(toggleReducer, initialValue);
|
|
56870
56720
|
};
|
|
56871
56721
|
|
|
56872
|
-
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,
|
|
56722
|
+
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 };
|