@majoo-ui/react 1.60.32-rc.2 → 1.60.33
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 +446 -597
- package/index.umd.js +942 -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 = "/Users/majoo/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 = "/Users/majoo/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 = "/Users/majoo/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 = "/Users/majoo/majoo-ui/packages/react/src/layout/pageContainer/PageContainer.js";
|
|
1891
|
+
const _excluded$A = ["children", "isCollapse", "css", "contentHeader"];
|
|
1892
|
+
var _jsxFileName$$ = "/Users/majoo/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$_ = "/Users/majoo/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 = "/Users/majoo/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 = "/Users/majoo/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 = "/Users/majoo/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 = "/Users/majoo/majoo-ui/packages/react/src/components/tooltip/Tooltip.js";
|
|
4475
4501
|
const {
|
|
4476
4502
|
zIndices: zIndices$2
|
|
4477
4503
|
} = foundations;
|
|
@@ -4558,10 +4584,10 @@ const TooltipBase = styled(TooltipPrimitive.Root, {
|
|
|
4558
4584
|
color: 'ligth'
|
|
4559
4585
|
}
|
|
4560
4586
|
});
|
|
4587
|
+
|
|
4561
4588
|
// Exports
|
|
4562
4589
|
const Provider = TooltipPrimitive.Provider;
|
|
4563
4590
|
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
4564
|
-
const TooltipContent = StyledContent$6;
|
|
4565
4591
|
const dark = {
|
|
4566
4592
|
color: foundations.colors.white,
|
|
4567
4593
|
backgroundColor: foundations.colors.gray800
|
|
@@ -4576,8 +4602,8 @@ const darkArrow = {
|
|
|
4576
4602
|
const lightArrow = {
|
|
4577
4603
|
fill: foundations.colors.bgWhite
|
|
4578
4604
|
};
|
|
4579
|
-
const Tooltip$1 =
|
|
4580
|
-
|
|
4605
|
+
const Tooltip$1 = _ref => {
|
|
4606
|
+
let {
|
|
4581
4607
|
children,
|
|
4582
4608
|
label,
|
|
4583
4609
|
color,
|
|
@@ -4586,52 +4612,98 @@ const Tooltip$1 = _a => {
|
|
|
4586
4612
|
side,
|
|
4587
4613
|
align,
|
|
4588
4614
|
delayDuration
|
|
4589
|
-
} =
|
|
4590
|
-
rest =
|
|
4615
|
+
} = _ref,
|
|
4616
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
4591
4617
|
const [open, setOpen] = useState(false);
|
|
4592
|
-
return
|
|
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
|
-
|
|
4622
|
-
|
|
4618
|
+
return /*#__PURE__*/React__default.createElement(Provider, {
|
|
4619
|
+
__self: undefined,
|
|
4620
|
+
__source: {
|
|
4621
|
+
fileName: _jsxFileName$W,
|
|
4622
|
+
lineNumber: 92,
|
|
4623
|
+
columnNumber: 5
|
|
4624
|
+
}
|
|
4625
|
+
}, /*#__PURE__*/React__default.createElement(TooltipBase, _extends({}, rest, {
|
|
4626
|
+
open: withClick ? open : undefined,
|
|
4627
|
+
delayDuration: delayDuration,
|
|
4628
|
+
__self: undefined,
|
|
4629
|
+
__source: {
|
|
4630
|
+
fileName: _jsxFileName$W,
|
|
4631
|
+
lineNumber: 93,
|
|
4632
|
+
columnNumber: 7
|
|
4633
|
+
}
|
|
4634
|
+
}), /*#__PURE__*/React__default.createElement(TooltipTrigger, {
|
|
4635
|
+
asChild: true,
|
|
4636
|
+
__self: undefined,
|
|
4637
|
+
__source: {
|
|
4638
|
+
fileName: _jsxFileName$W,
|
|
4639
|
+
lineNumber: 94,
|
|
4640
|
+
columnNumber: 9
|
|
4641
|
+
}
|
|
4642
|
+
}, /*#__PURE__*/React__default.createElement(TriggerSpan, {
|
|
4643
|
+
onClick: () => withClick && !open && setOpen(true),
|
|
4644
|
+
__self: undefined,
|
|
4645
|
+
__source: {
|
|
4646
|
+
fileName: _jsxFileName$W,
|
|
4647
|
+
lineNumber: 95,
|
|
4648
|
+
columnNumber: 11
|
|
4649
|
+
}
|
|
4650
|
+
}, children)), /*#__PURE__*/React__default.createElement(TooltipPrimitive.Portal, {
|
|
4651
|
+
__self: undefined,
|
|
4652
|
+
__source: {
|
|
4653
|
+
fileName: _jsxFileName$W,
|
|
4654
|
+
lineNumber: 97,
|
|
4655
|
+
columnNumber: 9
|
|
4656
|
+
}
|
|
4657
|
+
}, /*#__PURE__*/React__default.createElement(StyledContent$6, {
|
|
4658
|
+
align: align,
|
|
4659
|
+
side: side,
|
|
4660
|
+
sideOffset: 5,
|
|
4661
|
+
css: color === 'dark' ? Object.assign({}, dark, css) : Object.assign({}, ligth, css),
|
|
4662
|
+
onPointerDownOutside: () => setTimeout(() => {
|
|
4663
|
+
setOpen(false);
|
|
4664
|
+
}, 100),
|
|
4665
|
+
__self: undefined,
|
|
4666
|
+
__source: {
|
|
4667
|
+
fileName: _jsxFileName$W,
|
|
4668
|
+
lineNumber: 98,
|
|
4669
|
+
columnNumber: 11
|
|
4670
|
+
}
|
|
4671
|
+
}, label, /*#__PURE__*/React__default.createElement(StyledArrow$1, {
|
|
4672
|
+
offset: 10,
|
|
4673
|
+
css: color === 'dark' ? darkArrow : lightArrow,
|
|
4674
|
+
__self: undefined,
|
|
4675
|
+
__source: {
|
|
4676
|
+
fileName: _jsxFileName$W,
|
|
4677
|
+
lineNumber: 110,
|
|
4678
|
+
columnNumber: 13
|
|
4679
|
+
}
|
|
4680
|
+
})))));
|
|
4681
|
+
};
|
|
4682
|
+
Tooltip$1.propTypes = {
|
|
4683
|
+
children: PropTypes.node,
|
|
4684
|
+
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
4685
|
+
color: PropTypes.string,
|
|
4686
|
+
side: PropTypes.oneOf(['top', 'bottom', 'right', 'left']),
|
|
4687
|
+
align: PropTypes.oneOf(['start', 'center', 'end'])
|
|
4623
4688
|
};
|
|
4624
4689
|
Tooltip$1.defaultProps = {
|
|
4625
4690
|
color: 'dark',
|
|
4626
4691
|
side: 'bottom',
|
|
4627
4692
|
align: 'center',
|
|
4628
4693
|
label: '',
|
|
4629
|
-
children:
|
|
4694
|
+
children: /*#__PURE__*/React__default.createElement("div", {
|
|
4695
|
+
__self: undefined,
|
|
4696
|
+
__source: {
|
|
4697
|
+
fileName: _jsxFileName$W,
|
|
4698
|
+
lineNumber: 131,
|
|
4699
|
+
columnNumber: 13
|
|
4700
|
+
}
|
|
4701
|
+
}),
|
|
4630
4702
|
delayDuration: 200
|
|
4631
4703
|
};
|
|
4632
4704
|
|
|
4633
|
-
const _excluded$
|
|
4634
|
-
var _jsxFileName$
|
|
4705
|
+
const _excluded$u = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
|
|
4706
|
+
var _jsxFileName$V = "/Users/majoo/majoo-ui/packages/react/src/components/progress/Progress.js";
|
|
4635
4707
|
const StyledProgress$1 = styled$1(ProgressPrimitive.Root, {
|
|
4636
4708
|
position: 'relative',
|
|
4637
4709
|
overflow: 'hidden',
|
|
@@ -4749,7 +4821,7 @@ function Progress$1(_ref) {
|
|
|
4749
4821
|
rounded,
|
|
4750
4822
|
width
|
|
4751
4823
|
} = _ref,
|
|
4752
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4824
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
4753
4825
|
return /*#__PURE__*/React__default.createElement(StyledProgress$1, _extends({
|
|
4754
4826
|
className: className,
|
|
4755
4827
|
value: value,
|
|
@@ -4764,7 +4836,7 @@ function Progress$1(_ref) {
|
|
|
4764
4836
|
}, props, {
|
|
4765
4837
|
__self: this,
|
|
4766
4838
|
__source: {
|
|
4767
|
-
fileName: _jsxFileName$
|
|
4839
|
+
fileName: _jsxFileName$V,
|
|
4768
4840
|
lineNumber: 88,
|
|
4769
4841
|
columnNumber: 5
|
|
4770
4842
|
}
|
|
@@ -4777,7 +4849,7 @@ function Progress$1(_ref) {
|
|
|
4777
4849
|
},
|
|
4778
4850
|
__self: this,
|
|
4779
4851
|
__source: {
|
|
4780
|
-
fileName: _jsxFileName$
|
|
4852
|
+
fileName: _jsxFileName$V,
|
|
4781
4853
|
lineNumber: 89,
|
|
4782
4854
|
columnNumber: 7
|
|
4783
4855
|
}
|
|
@@ -5442,8 +5514,8 @@ function useMediaQuery(query) {
|
|
|
5442
5514
|
return matches;
|
|
5443
5515
|
}
|
|
5444
5516
|
|
|
5445
|
-
const _excluded$
|
|
5446
|
-
var _jsxFileName$
|
|
5517
|
+
const _excluded$t = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
|
|
5518
|
+
var _jsxFileName$U = "/Users/majoo/majoo-ui/packages/react/src/components/toast/Toast.js";
|
|
5447
5519
|
const TOAST_WIDTH = 576;
|
|
5448
5520
|
const ANIMATION_DURATION = 400;
|
|
5449
5521
|
const TOP_RIGHT_POSITION = 'top-right';
|
|
@@ -5611,7 +5683,7 @@ const Toast = _ref => {
|
|
|
5611
5683
|
captionOfAction,
|
|
5612
5684
|
hrefOfAction
|
|
5613
5685
|
} = _ref,
|
|
5614
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5686
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
5615
5687
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
5616
5688
|
const isMobile = useMediaQuery(`(max-width: 767px`);
|
|
5617
5689
|
const close = React.useCallback(() => {
|
|
@@ -5640,7 +5712,7 @@ const Toast = _ref => {
|
|
|
5640
5712
|
onExited: onRemove,
|
|
5641
5713
|
__self: undefined,
|
|
5642
5714
|
__source: {
|
|
5643
|
-
fileName: _jsxFileName$
|
|
5715
|
+
fileName: _jsxFileName$U,
|
|
5644
5716
|
lineNumber: 216,
|
|
5645
5717
|
columnNumber: 5
|
|
5646
5718
|
}
|
|
@@ -5655,7 +5727,7 @@ const Toast = _ref => {
|
|
|
5655
5727
|
}, rest, {
|
|
5656
5728
|
__self: undefined,
|
|
5657
5729
|
__source: {
|
|
5658
|
-
fileName: _jsxFileName$
|
|
5730
|
+
fileName: _jsxFileName$U,
|
|
5659
5731
|
lineNumber: 227,
|
|
5660
5732
|
columnNumber: 9
|
|
5661
5733
|
}
|
|
@@ -5665,7 +5737,7 @@ const Toast = _ref => {
|
|
|
5665
5737
|
onClick: onClick,
|
|
5666
5738
|
__self: undefined,
|
|
5667
5739
|
__source: {
|
|
5668
|
-
fileName: _jsxFileName$
|
|
5740
|
+
fileName: _jsxFileName$U,
|
|
5669
5741
|
lineNumber: 235,
|
|
5670
5742
|
columnNumber: 11
|
|
5671
5743
|
}
|
|
@@ -5673,7 +5745,7 @@ const Toast = _ref => {
|
|
|
5673
5745
|
direction: "column",
|
|
5674
5746
|
__self: undefined,
|
|
5675
5747
|
__source: {
|
|
5676
|
-
fileName: _jsxFileName$
|
|
5748
|
+
fileName: _jsxFileName$U,
|
|
5677
5749
|
lineNumber: 236,
|
|
5678
5750
|
columnNumber: 13
|
|
5679
5751
|
}
|
|
@@ -5681,7 +5753,7 @@ const Toast = _ref => {
|
|
|
5681
5753
|
direction: "row",
|
|
5682
5754
|
__self: undefined,
|
|
5683
5755
|
__source: {
|
|
5684
|
-
fileName: _jsxFileName$
|
|
5756
|
+
fileName: _jsxFileName$U,
|
|
5685
5757
|
lineNumber: 237,
|
|
5686
5758
|
columnNumber: 15
|
|
5687
5759
|
}
|
|
@@ -5689,7 +5761,7 @@ const Toast = _ref => {
|
|
|
5689
5761
|
variant: variant,
|
|
5690
5762
|
__self: undefined,
|
|
5691
5763
|
__source: {
|
|
5692
|
-
fileName: _jsxFileName$
|
|
5764
|
+
fileName: _jsxFileName$U,
|
|
5693
5765
|
lineNumber: 238,
|
|
5694
5766
|
columnNumber: 17
|
|
5695
5767
|
}
|
|
@@ -5701,7 +5773,7 @@ const Toast = _ref => {
|
|
|
5701
5773
|
},
|
|
5702
5774
|
__self: undefined,
|
|
5703
5775
|
__source: {
|
|
5704
|
-
fileName: _jsxFileName$
|
|
5776
|
+
fileName: _jsxFileName$U,
|
|
5705
5777
|
lineNumber: 239,
|
|
5706
5778
|
columnNumber: 17
|
|
5707
5779
|
}
|
|
@@ -5709,7 +5781,7 @@ const Toast = _ref => {
|
|
|
5709
5781
|
justify: "between",
|
|
5710
5782
|
__self: undefined,
|
|
5711
5783
|
__source: {
|
|
5712
|
-
fileName: _jsxFileName$
|
|
5784
|
+
fileName: _jsxFileName$U,
|
|
5713
5785
|
lineNumber: 247,
|
|
5714
5786
|
columnNumber: 21
|
|
5715
5787
|
}
|
|
@@ -5724,7 +5796,7 @@ const Toast = _ref => {
|
|
|
5724
5796
|
},
|
|
5725
5797
|
__self: undefined,
|
|
5726
5798
|
__source: {
|
|
5727
|
-
fileName: _jsxFileName$
|
|
5799
|
+
fileName: _jsxFileName$U,
|
|
5728
5800
|
lineNumber: 248,
|
|
5729
5801
|
columnNumber: 23
|
|
5730
5802
|
}
|
|
@@ -5733,7 +5805,7 @@ const Toast = _ref => {
|
|
|
5733
5805
|
color: "secondary",
|
|
5734
5806
|
__self: undefined,
|
|
5735
5807
|
__source: {
|
|
5736
|
-
fileName: _jsxFileName$
|
|
5808
|
+
fileName: _jsxFileName$U,
|
|
5737
5809
|
lineNumber: 262,
|
|
5738
5810
|
columnNumber: 19
|
|
5739
5811
|
}
|
|
@@ -5748,7 +5820,7 @@ const Toast = _ref => {
|
|
|
5748
5820
|
hasTitle: !!title,
|
|
5749
5821
|
__self: undefined,
|
|
5750
5822
|
__source: {
|
|
5751
|
-
fileName: _jsxFileName$
|
|
5823
|
+
fileName: _jsxFileName$U,
|
|
5752
5824
|
lineNumber: 266,
|
|
5753
5825
|
columnNumber: 17
|
|
5754
5826
|
}
|
|
@@ -5757,7 +5829,7 @@ const Toast = _ref => {
|
|
|
5757
5829
|
size: "16px",
|
|
5758
5830
|
__self: undefined,
|
|
5759
5831
|
__source: {
|
|
5760
|
-
fileName: _jsxFileName$
|
|
5832
|
+
fileName: _jsxFileName$U,
|
|
5761
5833
|
lineNumber: 276,
|
|
5762
5834
|
columnNumber: 19
|
|
5763
5835
|
}
|
|
@@ -5772,7 +5844,7 @@ const Toast = _ref => {
|
|
|
5772
5844
|
},
|
|
5773
5845
|
__self: undefined,
|
|
5774
5846
|
__source: {
|
|
5775
|
-
fileName: _jsxFileName$
|
|
5847
|
+
fileName: _jsxFileName$U,
|
|
5776
5848
|
lineNumber: 280,
|
|
5777
5849
|
columnNumber: 17
|
|
5778
5850
|
}
|
|
@@ -5794,8 +5866,8 @@ Toast.defaultProps = {
|
|
|
5794
5866
|
dismissAfter: 5000
|
|
5795
5867
|
};
|
|
5796
5868
|
|
|
5797
|
-
const _excluded$
|
|
5798
|
-
var _jsxFileName$
|
|
5869
|
+
const _excluded$s = ["preventDuplicate"];
|
|
5870
|
+
var _jsxFileName$T = "/Users/majoo/majoo-ui/packages/react/src/components/toast/ToastContainer.js";
|
|
5799
5871
|
const ToastBox = styled(Flex$1, {
|
|
5800
5872
|
position: 'fixed',
|
|
5801
5873
|
variants: {
|
|
@@ -5842,7 +5914,7 @@ const ToastContainer = ({
|
|
|
5842
5914
|
},
|
|
5843
5915
|
__self: undefined,
|
|
5844
5916
|
__source: {
|
|
5845
|
-
fileName: _jsxFileName$
|
|
5917
|
+
fileName: _jsxFileName$T,
|
|
5846
5918
|
lineNumber: 43,
|
|
5847
5919
|
columnNumber: 5
|
|
5848
5920
|
}
|
|
@@ -5850,7 +5922,7 @@ const ToastContainer = ({
|
|
|
5850
5922
|
position: position,
|
|
5851
5923
|
__self: undefined,
|
|
5852
5924
|
__source: {
|
|
5853
|
-
fileName: _jsxFileName$
|
|
5925
|
+
fileName: _jsxFileName$T,
|
|
5854
5926
|
lineNumber: 44,
|
|
5855
5927
|
columnNumber: 7
|
|
5856
5928
|
}
|
|
@@ -5858,14 +5930,14 @@ const ToastContainer = ({
|
|
|
5858
5930
|
const {
|
|
5859
5931
|
preventDuplicate
|
|
5860
5932
|
} = item,
|
|
5861
|
-
toast = _objectWithoutPropertiesLoose(item, _excluded$
|
|
5933
|
+
toast = _objectWithoutPropertiesLoose(item, _excluded$s);
|
|
5862
5934
|
return /*#__PURE__*/React.createElement(Toast, _extends({
|
|
5863
5935
|
key: preventDuplicate ? toast.id : `${toast.id}-${index}`,
|
|
5864
5936
|
onRemove: () => removeToast(toast.id)
|
|
5865
5937
|
}, toast, {
|
|
5866
5938
|
__self: undefined,
|
|
5867
5939
|
__source: {
|
|
5868
|
-
fileName: _jsxFileName$
|
|
5940
|
+
fileName: _jsxFileName$T,
|
|
5869
5941
|
lineNumber: 47,
|
|
5870
5942
|
columnNumber: 18
|
|
5871
5943
|
}
|
|
@@ -7090,8 +7162,8 @@ const catchError = e => {
|
|
|
7090
7162
|
return message;
|
|
7091
7163
|
};
|
|
7092
7164
|
|
|
7093
|
-
const _excluded$
|
|
7094
|
-
var _jsxFileName$
|
|
7165
|
+
const _excluded$r = ["id", "disabledOfflineIntercept"];
|
|
7166
|
+
var _jsxFileName$S = "/Users/majoo/majoo-ui/packages/react/src/components/toast/context/ToastProvider.js";
|
|
7095
7167
|
let toastCount = 0;
|
|
7096
7168
|
const ToastProvider = ({
|
|
7097
7169
|
children,
|
|
@@ -7120,7 +7192,7 @@ const ToastProvider = ({
|
|
|
7120
7192
|
id,
|
|
7121
7193
|
disabledOfflineIntercept
|
|
7122
7194
|
} = toast,
|
|
7123
|
-
rest = _objectWithoutPropertiesLoose(toast, _excluded$
|
|
7195
|
+
rest = _objectWithoutPropertiesLoose(toast, _excluded$r);
|
|
7124
7196
|
|
|
7125
7197
|
// eslint-disable-next-line no-plusplus
|
|
7126
7198
|
const uniqueId = ++toastCount;
|
|
@@ -7160,7 +7232,7 @@ const ToastProvider = ({
|
|
|
7160
7232
|
},
|
|
7161
7233
|
__self: undefined,
|
|
7162
7234
|
__source: {
|
|
7163
|
-
fileName: _jsxFileName$
|
|
7235
|
+
fileName: _jsxFileName$S,
|
|
7164
7236
|
lineNumber: 81,
|
|
7165
7237
|
columnNumber: 5
|
|
7166
7238
|
}
|
|
@@ -7169,7 +7241,7 @@ const ToastProvider = ({
|
|
|
7169
7241
|
position: TOP_RIGHT_POSITION,
|
|
7170
7242
|
__self: undefined,
|
|
7171
7243
|
__source: {
|
|
7172
|
-
fileName: _jsxFileName$
|
|
7244
|
+
fileName: _jsxFileName$S,
|
|
7173
7245
|
lineNumber: 83,
|
|
7174
7246
|
columnNumber: 7
|
|
7175
7247
|
}
|
|
@@ -7178,7 +7250,7 @@ const ToastProvider = ({
|
|
|
7178
7250
|
position: TOP_LEFT_POSITION,
|
|
7179
7251
|
__self: undefined,
|
|
7180
7252
|
__source: {
|
|
7181
|
-
fileName: _jsxFileName$
|
|
7253
|
+
fileName: _jsxFileName$S,
|
|
7182
7254
|
lineNumber: 87,
|
|
7183
7255
|
columnNumber: 7
|
|
7184
7256
|
}
|
|
@@ -7187,7 +7259,7 @@ const ToastProvider = ({
|
|
|
7187
7259
|
position: BOTTOM_RIGHT_POSITION,
|
|
7188
7260
|
__self: undefined,
|
|
7189
7261
|
__source: {
|
|
7190
|
-
fileName: _jsxFileName$
|
|
7262
|
+
fileName: _jsxFileName$S,
|
|
7191
7263
|
lineNumber: 91,
|
|
7192
7264
|
columnNumber: 7
|
|
7193
7265
|
}
|
|
@@ -7196,7 +7268,7 @@ const ToastProvider = ({
|
|
|
7196
7268
|
position: BOTTOM_LEFT_POSITION,
|
|
7197
7269
|
__self: undefined,
|
|
7198
7270
|
__source: {
|
|
7199
|
-
fileName: _jsxFileName$
|
|
7271
|
+
fileName: _jsxFileName$S,
|
|
7200
7272
|
lineNumber: 95,
|
|
7201
7273
|
columnNumber: 7
|
|
7202
7274
|
}
|
|
@@ -7209,8 +7281,8 @@ const ConditionalWrapper = ({
|
|
|
7209
7281
|
children
|
|
7210
7282
|
}) => condition ? wrapper(children) : children;
|
|
7211
7283
|
|
|
7212
|
-
const _excluded$
|
|
7213
|
-
var _jsxFileName$
|
|
7284
|
+
const _excluded$q = ["count", "maxCount", "css"];
|
|
7285
|
+
var _jsxFileName$R = "/Users/majoo/majoo-ui/packages/react/src/components/form/components/FormGroup/FormGroup.js";
|
|
7214
7286
|
const formLabelClassStyle = {
|
|
7215
7287
|
alignItems: 'start !important',
|
|
7216
7288
|
'& > div': {
|
|
@@ -7313,7 +7385,7 @@ const FormGroup = _ref => {
|
|
|
7313
7385
|
maxCount,
|
|
7314
7386
|
css
|
|
7315
7387
|
} = _ref,
|
|
7316
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7388
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
7317
7389
|
const withCounter = Boolean(count || maxCount);
|
|
7318
7390
|
return /*#__PURE__*/React__default.createElement(ConditionalWrapper, {
|
|
7319
7391
|
condition: withCounter,
|
|
@@ -7322,7 +7394,7 @@ const FormGroup = _ref => {
|
|
|
7322
7394
|
css: css,
|
|
7323
7395
|
__self: undefined,
|
|
7324
7396
|
__source: {
|
|
7325
|
-
fileName: _jsxFileName$
|
|
7397
|
+
fileName: _jsxFileName$R,
|
|
7326
7398
|
lineNumber: 115,
|
|
7327
7399
|
columnNumber: 9
|
|
7328
7400
|
}
|
|
@@ -7335,14 +7407,14 @@ const FormGroup = _ref => {
|
|
|
7335
7407
|
},
|
|
7336
7408
|
__self: undefined,
|
|
7337
7409
|
__source: {
|
|
7338
|
-
fileName: _jsxFileName$
|
|
7410
|
+
fileName: _jsxFileName$R,
|
|
7339
7411
|
lineNumber: 116,
|
|
7340
7412
|
columnNumber: 11
|
|
7341
7413
|
}
|
|
7342
7414
|
}, count, "/", maxCount), children),
|
|
7343
7415
|
__self: undefined,
|
|
7344
7416
|
__source: {
|
|
7345
|
-
fileName: _jsxFileName$
|
|
7417
|
+
fileName: _jsxFileName$R,
|
|
7346
7418
|
lineNumber: 112,
|
|
7347
7419
|
columnNumber: 5
|
|
7348
7420
|
}
|
|
@@ -7352,7 +7424,7 @@ const FormGroup = _ref => {
|
|
|
7352
7424
|
}, props, {
|
|
7353
7425
|
__self: undefined,
|
|
7354
7426
|
__source: {
|
|
7355
|
-
fileName: _jsxFileName$
|
|
7427
|
+
fileName: _jsxFileName$R,
|
|
7356
7428
|
lineNumber: 123,
|
|
7357
7429
|
columnNumber: 7
|
|
7358
7430
|
}
|
|
@@ -7360,8 +7432,8 @@ const FormGroup = _ref => {
|
|
|
7360
7432
|
};
|
|
7361
7433
|
FormGroup.displayName = 'FormGroup';
|
|
7362
7434
|
|
|
7363
|
-
const _excluded$
|
|
7364
|
-
var _jsxFileName$
|
|
7435
|
+
const _excluded$p = ["children", "htmlFor", "variant", "variants", "tooltipLabel", "count", "maxCount", "labelCss"];
|
|
7436
|
+
var _jsxFileName$Q = "/Users/majoo/majoo-ui/packages/react/src/components/form/components/FormLabel/Label.js";
|
|
7365
7437
|
const StyledLabel$1 = styled(LabelPrimitive.Root, Text$1, {
|
|
7366
7438
|
display: 'inline-block',
|
|
7367
7439
|
fontSize: '$label',
|
|
@@ -7393,13 +7465,13 @@ const FormLabel = _ref => {
|
|
|
7393
7465
|
maxCount,
|
|
7394
7466
|
labelCss
|
|
7395
7467
|
} = _ref,
|
|
7396
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7468
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
7397
7469
|
return /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
7398
7470
|
justify: "between",
|
|
7399
7471
|
className: "form-label",
|
|
7400
7472
|
__self: undefined,
|
|
7401
7473
|
__source: {
|
|
7402
|
-
fileName: _jsxFileName$
|
|
7474
|
+
fileName: _jsxFileName$Q,
|
|
7403
7475
|
lineNumber: 36,
|
|
7404
7476
|
columnNumber: 5
|
|
7405
7477
|
}
|
|
@@ -7409,7 +7481,7 @@ const FormLabel = _ref => {
|
|
|
7409
7481
|
}, props, {
|
|
7410
7482
|
__self: undefined,
|
|
7411
7483
|
__source: {
|
|
7412
|
-
fileName: _jsxFileName$
|
|
7484
|
+
fileName: _jsxFileName$Q,
|
|
7413
7485
|
lineNumber: 37,
|
|
7414
7486
|
columnNumber: 7
|
|
7415
7487
|
}
|
|
@@ -7419,7 +7491,7 @@ const FormLabel = _ref => {
|
|
|
7419
7491
|
css: labelCss,
|
|
7420
7492
|
__self: undefined,
|
|
7421
7493
|
__source: {
|
|
7422
|
-
fileName: _jsxFileName$
|
|
7494
|
+
fileName: _jsxFileName$Q,
|
|
7423
7495
|
lineNumber: 38,
|
|
7424
7496
|
columnNumber: 9
|
|
7425
7497
|
}
|
|
@@ -7434,7 +7506,7 @@ const FormLabel = _ref => {
|
|
|
7434
7506
|
},
|
|
7435
7507
|
__self: undefined,
|
|
7436
7508
|
__source: {
|
|
7437
|
-
fileName: _jsxFileName$
|
|
7509
|
+
fileName: _jsxFileName$Q,
|
|
7438
7510
|
lineNumber: 42,
|
|
7439
7511
|
columnNumber: 11
|
|
7440
7512
|
}
|
|
@@ -7442,14 +7514,14 @@ const FormLabel = _ref => {
|
|
|
7442
7514
|
label: tooltipLabel,
|
|
7443
7515
|
__self: undefined,
|
|
7444
7516
|
__source: {
|
|
7445
|
-
fileName: _jsxFileName$
|
|
7517
|
+
fileName: _jsxFileName$Q,
|
|
7446
7518
|
lineNumber: 56,
|
|
7447
7519
|
columnNumber: 11
|
|
7448
7520
|
}
|
|
7449
7521
|
}, /*#__PURE__*/React__default.createElement(StyledHelpIcon, {
|
|
7450
7522
|
__self: undefined,
|
|
7451
7523
|
__source: {
|
|
7452
|
-
fileName: _jsxFileName$
|
|
7524
|
+
fileName: _jsxFileName$Q,
|
|
7453
7525
|
lineNumber: 57,
|
|
7454
7526
|
columnNumber: 13
|
|
7455
7527
|
}
|
|
@@ -7458,7 +7530,7 @@ const FormLabel = _ref => {
|
|
|
7458
7530
|
color: "disable",
|
|
7459
7531
|
__self: undefined,
|
|
7460
7532
|
__source: {
|
|
7461
|
-
fileName: _jsxFileName$
|
|
7533
|
+
fileName: _jsxFileName$Q,
|
|
7462
7534
|
lineNumber: 62,
|
|
7463
7535
|
columnNumber: 9
|
|
7464
7536
|
}
|
|
@@ -7477,8 +7549,8 @@ FormLabel.defaultProps = {
|
|
|
7477
7549
|
};
|
|
7478
7550
|
FormLabel.displayName = 'FormLabel';
|
|
7479
7551
|
|
|
7480
|
-
const _excluded$
|
|
7481
|
-
var _jsxFileName$
|
|
7552
|
+
const _excluded$o = ["children", "error", "errorMessage"];
|
|
7553
|
+
var _jsxFileName$P = "/Users/majoo/majoo-ui/packages/react/src/components/form/components/FormHelper/Helper.js";
|
|
7482
7554
|
const StyledHelper = styled(Text$1, {
|
|
7483
7555
|
display: 'inline-block',
|
|
7484
7556
|
color: '$textSecondary',
|
|
@@ -7496,7 +7568,7 @@ const FormHelper = _ref => {
|
|
|
7496
7568
|
error,
|
|
7497
7569
|
errorMessage
|
|
7498
7570
|
} = _ref,
|
|
7499
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7571
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
7500
7572
|
const errorByMessage = !!errorMessage;
|
|
7501
7573
|
if (error === undefined && errorByMessage) {
|
|
7502
7574
|
return /*#__PURE__*/React__default.createElement(StyledHelper, _extends({
|
|
@@ -7506,7 +7578,7 @@ const FormHelper = _ref => {
|
|
|
7506
7578
|
}, props, {
|
|
7507
7579
|
__self: undefined,
|
|
7508
7580
|
__source: {
|
|
7509
|
-
fileName: _jsxFileName$
|
|
7581
|
+
fileName: _jsxFileName$P,
|
|
7510
7582
|
lineNumber: 22,
|
|
7511
7583
|
columnNumber: 7
|
|
7512
7584
|
}
|
|
@@ -7522,7 +7594,7 @@ const FormHelper = _ref => {
|
|
|
7522
7594
|
}, props, {
|
|
7523
7595
|
__self: undefined,
|
|
7524
7596
|
__source: {
|
|
7525
|
-
fileName: _jsxFileName$
|
|
7597
|
+
fileName: _jsxFileName$P,
|
|
7526
7598
|
lineNumber: 31,
|
|
7527
7599
|
columnNumber: 5
|
|
7528
7600
|
}
|
|
@@ -7533,7 +7605,7 @@ FormHelper.propTypes = {
|
|
|
7533
7605
|
};
|
|
7534
7606
|
FormHelper.displayName = 'FormHelper';
|
|
7535
7607
|
|
|
7536
|
-
var _jsxFileName$
|
|
7608
|
+
var _jsxFileName$O = "/Users/majoo/majoo-ui/packages/react/src/components/form/components/InputCheckbox/CheckboxGroup.js";
|
|
7537
7609
|
const CheckboxContext = /*#__PURE__*/createContext();
|
|
7538
7610
|
const CheckboxGroup = ({
|
|
7539
7611
|
children,
|
|
@@ -7574,7 +7646,7 @@ const CheckboxGroup = ({
|
|
|
7574
7646
|
value: values,
|
|
7575
7647
|
__self: undefined,
|
|
7576
7648
|
__source: {
|
|
7577
|
-
fileName: _jsxFileName$
|
|
7649
|
+
fileName: _jsxFileName$O,
|
|
7578
7650
|
lineNumber: 35,
|
|
7579
7651
|
columnNumber: 5
|
|
7580
7652
|
}
|
|
@@ -7591,7 +7663,7 @@ CheckboxGroup.defaultProps = {
|
|
|
7591
7663
|
};
|
|
7592
7664
|
CheckboxGroup.displayName = 'CheckboxGroup';
|
|
7593
7665
|
|
|
7594
|
-
var _jsxFileName$
|
|
7666
|
+
var _jsxFileName$N = "/Users/majoo/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/CheckOutline.js";
|
|
7595
7667
|
const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
7596
7668
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7597
7669
|
xmlSpace: "preserve",
|
|
@@ -7608,7 +7680,7 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
|
|
|
7608
7680
|
}, props, {
|
|
7609
7681
|
__self: undefined,
|
|
7610
7682
|
__source: {
|
|
7611
|
-
fileName: _jsxFileName$
|
|
7683
|
+
fileName: _jsxFileName$N,
|
|
7612
7684
|
lineNumber: 4,
|
|
7613
7685
|
columnNumber: 3
|
|
7614
7686
|
}
|
|
@@ -7620,7 +7692,7 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
|
|
|
7620
7692
|
},
|
|
7621
7693
|
__self: undefined,
|
|
7622
7694
|
__source: {
|
|
7623
|
-
fileName: _jsxFileName$
|
|
7695
|
+
fileName: _jsxFileName$N,
|
|
7624
7696
|
lineNumber: 19,
|
|
7625
7697
|
columnNumber: 5
|
|
7626
7698
|
}
|
|
@@ -7632,13 +7704,13 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
|
|
|
7632
7704
|
},
|
|
7633
7705
|
__self: undefined,
|
|
7634
7706
|
__source: {
|
|
7635
|
-
fileName: _jsxFileName$
|
|
7707
|
+
fileName: _jsxFileName$N,
|
|
7636
7708
|
lineNumber: 26,
|
|
7637
7709
|
columnNumber: 5
|
|
7638
7710
|
}
|
|
7639
7711
|
}));
|
|
7640
7712
|
|
|
7641
|
-
var _jsxFileName$
|
|
7713
|
+
var _jsxFileName$M = "/Users/majoo/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/MinusOutline.js";
|
|
7642
7714
|
const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
7643
7715
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7644
7716
|
xmlSpace: "preserve",
|
|
@@ -7655,7 +7727,7 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
|
|
|
7655
7727
|
}, props, {
|
|
7656
7728
|
__self: undefined,
|
|
7657
7729
|
__source: {
|
|
7658
|
-
fileName: _jsxFileName$
|
|
7730
|
+
fileName: _jsxFileName$M,
|
|
7659
7731
|
lineNumber: 4,
|
|
7660
7732
|
columnNumber: 3
|
|
7661
7733
|
}
|
|
@@ -7667,7 +7739,7 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
|
|
|
7667
7739
|
},
|
|
7668
7740
|
__self: undefined,
|
|
7669
7741
|
__source: {
|
|
7670
|
-
fileName: _jsxFileName$
|
|
7742
|
+
fileName: _jsxFileName$M,
|
|
7671
7743
|
lineNumber: 19,
|
|
7672
7744
|
columnNumber: 5
|
|
7673
7745
|
}
|
|
@@ -7679,14 +7751,14 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
|
|
|
7679
7751
|
d: "M14.31 10.41H3.9v-2.6h10.41z",
|
|
7680
7752
|
__self: undefined,
|
|
7681
7753
|
__source: {
|
|
7682
|
-
fileName: _jsxFileName$
|
|
7754
|
+
fileName: _jsxFileName$M,
|
|
7683
7755
|
lineNumber: 26,
|
|
7684
7756
|
columnNumber: 5
|
|
7685
7757
|
}
|
|
7686
7758
|
}));
|
|
7687
7759
|
|
|
7688
|
-
const _excluded$
|
|
7689
|
-
var _jsxFileName$
|
|
7760
|
+
const _excluded$n = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
|
|
7761
|
+
var _jsxFileName$L = "/Users/majoo/majoo-ui/packages/react/src/components/form/components/InputCheckbox/InputCheckbox.js";
|
|
7690
7762
|
const StyledIndicator$2 = styled(CheckboxPrimitive.Indicator, {
|
|
7691
7763
|
alignItems: 'center',
|
|
7692
7764
|
display: 'flex',
|
|
@@ -7744,7 +7816,7 @@ const Checkbox = _ref => {
|
|
|
7744
7816
|
index,
|
|
7745
7817
|
value
|
|
7746
7818
|
} = _ref,
|
|
7747
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7819
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
7748
7820
|
const context = useContext(CheckboxContext);
|
|
7749
7821
|
const [isChecked, setChecked] = useState(false);
|
|
7750
7822
|
useEffect(() => {
|
|
@@ -7765,28 +7837,28 @@ const Checkbox = _ref => {
|
|
|
7765
7837
|
}, props, {
|
|
7766
7838
|
__self: undefined,
|
|
7767
7839
|
__source: {
|
|
7768
|
-
fileName: _jsxFileName$
|
|
7840
|
+
fileName: _jsxFileName$L,
|
|
7769
7841
|
lineNumber: 64,
|
|
7770
7842
|
columnNumber: 5
|
|
7771
7843
|
}
|
|
7772
7844
|
}), /*#__PURE__*/React__default.createElement(StyledIndicator$2, {
|
|
7773
7845
|
__self: undefined,
|
|
7774
7846
|
__source: {
|
|
7775
|
-
fileName: _jsxFileName$
|
|
7847
|
+
fileName: _jsxFileName$L,
|
|
7776
7848
|
lineNumber: 77,
|
|
7777
7849
|
columnNumber: 7
|
|
7778
7850
|
}
|
|
7779
7851
|
}, indeterminate ? /*#__PURE__*/React__default.createElement(SvgMinusOutline, {
|
|
7780
7852
|
__self: undefined,
|
|
7781
7853
|
__source: {
|
|
7782
|
-
fileName: _jsxFileName$
|
|
7854
|
+
fileName: _jsxFileName$L,
|
|
7783
7855
|
lineNumber: 77,
|
|
7784
7856
|
columnNumber: 41
|
|
7785
7857
|
}
|
|
7786
7858
|
}) : /*#__PURE__*/React__default.createElement(CheckOutline$1, {
|
|
7787
7859
|
__self: undefined,
|
|
7788
7860
|
__source: {
|
|
7789
|
-
fileName: _jsxFileName$
|
|
7861
|
+
fileName: _jsxFileName$L,
|
|
7790
7862
|
lineNumber: 77,
|
|
7791
7863
|
columnNumber: 60
|
|
7792
7864
|
}
|
|
@@ -7799,14 +7871,14 @@ const InputCheckbox = _ref2 => {
|
|
|
7799
7871
|
gap: 4,
|
|
7800
7872
|
__self: undefined,
|
|
7801
7873
|
__source: {
|
|
7802
|
-
fileName: _jsxFileName$
|
|
7874
|
+
fileName: _jsxFileName$L,
|
|
7803
7875
|
lineNumber: 84,
|
|
7804
7876
|
columnNumber: 5
|
|
7805
7877
|
}
|
|
7806
7878
|
}, /*#__PURE__*/React__default.createElement(Checkbox, _extends({}, props, {
|
|
7807
7879
|
__self: undefined,
|
|
7808
7880
|
__source: {
|
|
7809
|
-
fileName: _jsxFileName$
|
|
7881
|
+
fileName: _jsxFileName$L,
|
|
7810
7882
|
lineNumber: 85,
|
|
7811
7883
|
columnNumber: 7
|
|
7812
7884
|
}
|
|
@@ -7822,14 +7894,14 @@ const InputCheckbox = _ref2 => {
|
|
|
7822
7894
|
},
|
|
7823
7895
|
__self: undefined,
|
|
7824
7896
|
__source: {
|
|
7825
|
-
fileName: _jsxFileName$
|
|
7897
|
+
fileName: _jsxFileName$L,
|
|
7826
7898
|
lineNumber: 86,
|
|
7827
7899
|
columnNumber: 7
|
|
7828
7900
|
}
|
|
7829
7901
|
}, props.label)) : /*#__PURE__*/React__default.createElement(Checkbox, _extends({}, props, {
|
|
7830
7902
|
__self: undefined,
|
|
7831
7903
|
__source: {
|
|
7832
|
-
fileName: _jsxFileName$
|
|
7904
|
+
fileName: _jsxFileName$L,
|
|
7833
7905
|
lineNumber: 101,
|
|
7834
7906
|
columnNumber: 5
|
|
7835
7907
|
}
|
|
@@ -7846,8 +7918,8 @@ InputCheckbox.propTypes = {
|
|
|
7846
7918
|
};
|
|
7847
7919
|
InputCheckbox.displayName = 'InputCheckbox';
|
|
7848
7920
|
|
|
7849
|
-
const _excluded$
|
|
7850
|
-
var _jsxFileName$
|
|
7921
|
+
const _excluded$m = ["children", "size"];
|
|
7922
|
+
var _jsxFileName$K = "/Users/majoo/majoo-ui/packages/react/src/components/form/components/InputGroup/InputGroup.js";
|
|
7851
7923
|
const InputGroupStyle = styled('div', {
|
|
7852
7924
|
display: 'flex',
|
|
7853
7925
|
width: '100%',
|
|
@@ -7986,7 +8058,7 @@ const InputGroup = _ref => {
|
|
|
7986
8058
|
children,
|
|
7987
8059
|
size = 'lg'
|
|
7988
8060
|
} = _ref,
|
|
7989
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8061
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
7990
8062
|
const isLetter = children.some(child => child.type.name === 'InputPrefix' || child.type.name === 'InputSuffix' || child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
|
|
7991
8063
|
const isElement = children.some(child => child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
|
|
7992
8064
|
const clone = children.map((child, index) => {
|
|
@@ -8009,7 +8081,7 @@ const InputGroup = _ref => {
|
|
|
8009
8081
|
isElement: isElement,
|
|
8010
8082
|
__self: undefined,
|
|
8011
8083
|
__source: {
|
|
8012
|
-
fileName: _jsxFileName$
|
|
8084
|
+
fileName: _jsxFileName$K,
|
|
8013
8085
|
lineNumber: 169,
|
|
8014
8086
|
columnNumber: 10
|
|
8015
8087
|
}
|
|
@@ -8185,8 +8257,8 @@ InputSuffix.propTypes = {
|
|
|
8185
8257
|
children: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
|
|
8186
8258
|
};
|
|
8187
8259
|
|
|
8188
|
-
const _excluded$
|
|
8189
|
-
var _jsxFileName$
|
|
8260
|
+
const _excluded$l = ["disabled", "readOnly"];
|
|
8261
|
+
var _jsxFileName$J = "/Users/majoo/majoo-ui/packages/react/src/components/form/components/InputText/InputText.js";
|
|
8190
8262
|
const disabledStyle = {
|
|
8191
8263
|
backgroundColor: '$formDisable',
|
|
8192
8264
|
color: '$textDisable',
|
|
@@ -8359,7 +8431,7 @@ const InputText = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
8359
8431
|
disabled,
|
|
8360
8432
|
readOnly
|
|
8361
8433
|
} = _ref,
|
|
8362
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8434
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
8363
8435
|
return /*#__PURE__*/React__default.createElement(StyledInput$1, _extends({
|
|
8364
8436
|
ref: ref,
|
|
8365
8437
|
disabled: disabled,
|
|
@@ -8369,7 +8441,7 @@ const InputText = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
8369
8441
|
}, props, {
|
|
8370
8442
|
__self: undefined,
|
|
8371
8443
|
__source: {
|
|
8372
|
-
fileName: _jsxFileName$
|
|
8444
|
+
fileName: _jsxFileName$J,
|
|
8373
8445
|
lineNumber: 185,
|
|
8374
8446
|
columnNumber: 3
|
|
8375
8447
|
}
|
|
@@ -8387,8 +8459,8 @@ InputText.propTypes = {
|
|
|
8387
8459
|
};
|
|
8388
8460
|
InputText.displayName = 'InputText';
|
|
8389
8461
|
|
|
8390
|
-
const _excluded$
|
|
8391
|
-
var _jsxFileName$
|
|
8462
|
+
const _excluded$k = ["disabled", "readOnly"];
|
|
8463
|
+
var _jsxFileName$I = "/Users/majoo/majoo-ui/packages/react/src/components/form/components/InputTextArea/InputTextArea.js";
|
|
8392
8464
|
const StyledTextArea = styled(StyledInput$1, {
|
|
8393
8465
|
variants: {
|
|
8394
8466
|
size: {
|
|
@@ -8409,7 +8481,7 @@ const InputTextArea = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
8409
8481
|
disabled,
|
|
8410
8482
|
readOnly
|
|
8411
8483
|
} = _ref,
|
|
8412
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8484
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
8413
8485
|
const textareaRef = useRef(null);
|
|
8414
8486
|
useEffect(() => {
|
|
8415
8487
|
if (textareaRef.current) {
|
|
@@ -8443,7 +8515,7 @@ const InputTextArea = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
8443
8515
|
}, props, {
|
|
8444
8516
|
__self: undefined,
|
|
8445
8517
|
__source: {
|
|
8446
|
-
fileName: _jsxFileName$
|
|
8518
|
+
fileName: _jsxFileName$I,
|
|
8447
8519
|
lineNumber: 51,
|
|
8448
8520
|
columnNumber: 5
|
|
8449
8521
|
}
|
|
@@ -8466,21 +8538,21 @@ InputTextArea.defaultProps = {
|
|
|
8466
8538
|
|
|
8467
8539
|
const InputRadioContext = /*#__PURE__*/React__default.createContext();
|
|
8468
8540
|
|
|
8469
|
-
var _jsxFileName$
|
|
8541
|
+
var _jsxFileName$H = "/Users/majoo/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadioGroup.js";
|
|
8470
8542
|
const RadioGroup = styled(RadioGroupPrimitive.Root, Flex$1);
|
|
8471
8543
|
function InputRadioGroup(props) {
|
|
8472
8544
|
return (props == null ? void 0 : props.children) && /*#__PURE__*/React__default.createElement(InputRadioContext.Provider, {
|
|
8473
8545
|
value: props,
|
|
8474
8546
|
__self: this,
|
|
8475
8547
|
__source: {
|
|
8476
|
-
fileName: _jsxFileName$
|
|
8548
|
+
fileName: _jsxFileName$H,
|
|
8477
8549
|
lineNumber: 13,
|
|
8478
8550
|
columnNumber: 7
|
|
8479
8551
|
}
|
|
8480
8552
|
}, /*#__PURE__*/React__default.createElement(RadioGroup, _extends({}, props, {
|
|
8481
8553
|
__self: this,
|
|
8482
8554
|
__source: {
|
|
8483
|
-
fileName: _jsxFileName$
|
|
8555
|
+
fileName: _jsxFileName$H,
|
|
8484
8556
|
lineNumber: 14,
|
|
8485
8557
|
columnNumber: 9
|
|
8486
8558
|
}
|
|
@@ -8499,8 +8571,8 @@ InputRadioGroup.propTypes = {
|
|
|
8499
8571
|
};
|
|
8500
8572
|
InputRadioGroup.displayName = 'InputRadioGroup';
|
|
8501
8573
|
|
|
8502
|
-
const _excluded$
|
|
8503
|
-
var _jsxFileName$
|
|
8574
|
+
const _excluded$j = ["id", "disabled", "css", "inputType", "inputProps", "description", "readOnly"];
|
|
8575
|
+
var _jsxFileName$G = "/Users/majoo/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadio.js";
|
|
8504
8576
|
const INDICATOR_BASE_STYLES = {
|
|
8505
8577
|
alignItems: 'center',
|
|
8506
8578
|
display: 'flex',
|
|
@@ -8665,7 +8737,7 @@ const InputRadio = _ref => {
|
|
|
8665
8737
|
description,
|
|
8666
8738
|
readOnly
|
|
8667
8739
|
} = _ref,
|
|
8668
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8740
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
8669
8741
|
function renderInputType(type, checkedValue, onValueChange) {
|
|
8670
8742
|
switch (type) {
|
|
8671
8743
|
case 'number':
|
|
@@ -8678,7 +8750,7 @@ const InputRadio = _ref => {
|
|
|
8678
8750
|
asChild: true,
|
|
8679
8751
|
__self: this,
|
|
8680
8752
|
__source: {
|
|
8681
|
-
fileName: _jsxFileName$
|
|
8753
|
+
fileName: _jsxFileName$G,
|
|
8682
8754
|
lineNumber: 171,
|
|
8683
8755
|
columnNumber: 11
|
|
8684
8756
|
}
|
|
@@ -8694,7 +8766,7 @@ const InputRadio = _ref => {
|
|
|
8694
8766
|
asChild: true,
|
|
8695
8767
|
__self: this,
|
|
8696
8768
|
__source: {
|
|
8697
|
-
fileName: _jsxFileName$
|
|
8769
|
+
fileName: _jsxFileName$G,
|
|
8698
8770
|
lineNumber: 184,
|
|
8699
8771
|
columnNumber: 11
|
|
8700
8772
|
}
|
|
@@ -8713,7 +8785,7 @@ const InputRadio = _ref => {
|
|
|
8713
8785
|
},
|
|
8714
8786
|
__self: this,
|
|
8715
8787
|
__source: {
|
|
8716
|
-
fileName: _jsxFileName$
|
|
8788
|
+
fileName: _jsxFileName$G,
|
|
8717
8789
|
lineNumber: 198,
|
|
8718
8790
|
columnNumber: 11
|
|
8719
8791
|
}
|
|
@@ -8723,7 +8795,7 @@ const InputRadio = _ref => {
|
|
|
8723
8795
|
return /*#__PURE__*/React__default.createElement(InputRadioContext.Consumer, {
|
|
8724
8796
|
__self: undefined,
|
|
8725
8797
|
__source: {
|
|
8726
|
-
fileName: _jsxFileName$
|
|
8798
|
+
fileName: _jsxFileName$G,
|
|
8727
8799
|
lineNumber: 217,
|
|
8728
8800
|
columnNumber: 5
|
|
8729
8801
|
}
|
|
@@ -8740,7 +8812,7 @@ const InputRadio = _ref => {
|
|
|
8740
8812
|
outlined: outlined,
|
|
8741
8813
|
__self: undefined,
|
|
8742
8814
|
__source: {
|
|
8743
|
-
fileName: _jsxFileName$
|
|
8815
|
+
fileName: _jsxFileName$G,
|
|
8744
8816
|
lineNumber: 222,
|
|
8745
8817
|
columnNumber: 11
|
|
8746
8818
|
}
|
|
@@ -8755,7 +8827,7 @@ const InputRadio = _ref => {
|
|
|
8755
8827
|
css: css,
|
|
8756
8828
|
__self: undefined,
|
|
8757
8829
|
__source: {
|
|
8758
|
-
fileName: _jsxFileName$
|
|
8830
|
+
fileName: _jsxFileName$G,
|
|
8759
8831
|
lineNumber: 223,
|
|
8760
8832
|
columnNumber: 13
|
|
8761
8833
|
}
|
|
@@ -8764,7 +8836,7 @@ const InputRadio = _ref => {
|
|
|
8764
8836
|
gap: 4,
|
|
8765
8837
|
__self: undefined,
|
|
8766
8838
|
__source: {
|
|
8767
|
-
fileName: _jsxFileName$
|
|
8839
|
+
fileName: _jsxFileName$G,
|
|
8768
8840
|
lineNumber: 233,
|
|
8769
8841
|
columnNumber: 15
|
|
8770
8842
|
}
|
|
@@ -8775,14 +8847,14 @@ const InputRadio = _ref => {
|
|
|
8775
8847
|
}, props, {
|
|
8776
8848
|
__self: undefined,
|
|
8777
8849
|
__source: {
|
|
8778
|
-
fileName: _jsxFileName$
|
|
8850
|
+
fileName: _jsxFileName$G,
|
|
8779
8851
|
lineNumber: 234,
|
|
8780
8852
|
columnNumber: 17
|
|
8781
8853
|
}
|
|
8782
8854
|
}), /*#__PURE__*/React__default.createElement(StyledIndicator$1, {
|
|
8783
8855
|
__self: undefined,
|
|
8784
8856
|
__source: {
|
|
8785
|
-
fileName: _jsxFileName$
|
|
8857
|
+
fileName: _jsxFileName$G,
|
|
8786
8858
|
lineNumber: 235,
|
|
8787
8859
|
columnNumber: 19
|
|
8788
8860
|
}
|
|
@@ -8794,7 +8866,7 @@ const InputRadio = _ref => {
|
|
|
8794
8866
|
},
|
|
8795
8867
|
__self: undefined,
|
|
8796
8868
|
__source: {
|
|
8797
|
-
fileName: _jsxFileName$
|
|
8869
|
+
fileName: _jsxFileName$G,
|
|
8798
8870
|
lineNumber: 240,
|
|
8799
8871
|
columnNumber: 17
|
|
8800
8872
|
}
|
|
@@ -10948,8 +11020,8 @@ var NumberFormat = /*@__PURE__*/function (superclass) {
|
|
|
10948
11020
|
}(React__default.Component);
|
|
10949
11021
|
NumberFormat.defaultProps = defaultProps;
|
|
10950
11022
|
|
|
10951
|
-
const _excluded$
|
|
10952
|
-
var _jsxFileName$
|
|
11023
|
+
const _excluded$i = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled", "control", "name", "maxValueLength", "maxLength", "thousandSeparator"];
|
|
11024
|
+
var _jsxFileName$F = "/Users/majoo/majoo-ui/packages/react/src/components/form/components/InputNumber/InputNumber.js";
|
|
10953
11025
|
const StyledInput = styled(NumberFormat, {
|
|
10954
11026
|
// Reset
|
|
10955
11027
|
appearance: 'none',
|
|
@@ -11144,7 +11216,7 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
11144
11216
|
maxLength,
|
|
11145
11217
|
thousandSeparator
|
|
11146
11218
|
} = _ref,
|
|
11147
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
11219
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
11148
11220
|
return /*#__PURE__*/React__default.createElement(ConditionalWrapper, {
|
|
11149
11221
|
condition: Boolean(control),
|
|
11150
11222
|
wrapper: child => /*#__PURE__*/React__default.createElement(Controller, {
|
|
@@ -11162,14 +11234,14 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
11162
11234
|
}),
|
|
11163
11235
|
__self: undefined,
|
|
11164
11236
|
__source: {
|
|
11165
|
-
fileName: _jsxFileName$
|
|
11237
|
+
fileName: _jsxFileName$F,
|
|
11166
11238
|
lineNumber: 225,
|
|
11167
11239
|
columnNumber: 9
|
|
11168
11240
|
}
|
|
11169
11241
|
}),
|
|
11170
11242
|
__self: undefined,
|
|
11171
11243
|
__source: {
|
|
11172
|
-
fileName: _jsxFileName$
|
|
11244
|
+
fileName: _jsxFileName$F,
|
|
11173
11245
|
lineNumber: 222,
|
|
11174
11246
|
columnNumber: 5
|
|
11175
11247
|
}
|
|
@@ -11187,7 +11259,7 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
11187
11259
|
}, props, {
|
|
11188
11260
|
__self: undefined,
|
|
11189
11261
|
__source: {
|
|
11190
|
-
fileName: _jsxFileName$
|
|
11262
|
+
fileName: _jsxFileName$F,
|
|
11191
11263
|
lineNumber: 234,
|
|
11192
11264
|
columnNumber: 7
|
|
11193
11265
|
}
|
|
@@ -11209,6 +11281,8 @@ InputNumber.defaultProps = {
|
|
|
11209
11281
|
InputNumber.name = 'InputText';
|
|
11210
11282
|
InputNumber.displayName = 'InputNumber';
|
|
11211
11283
|
|
|
11284
|
+
const _excluded$h = ["className", "children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"];
|
|
11285
|
+
var _jsxFileName$E = "/Users/majoo/majoo-ui/packages/react/src/components/tag/Tag.js";
|
|
11212
11286
|
const TagWrapper$4 = styled('div', {
|
|
11213
11287
|
boxSizing: 'border-box',
|
|
11214
11288
|
listStyle: 'none',
|
|
@@ -11251,10 +11325,6 @@ const TagWrapper$4 = styled('div', {
|
|
|
11251
11325
|
}
|
|
11252
11326
|
},
|
|
11253
11327
|
type: {
|
|
11254
|
-
default: {
|
|
11255
|
-
background: '$bgGray',
|
|
11256
|
-
color: '$textPrimary'
|
|
11257
|
-
},
|
|
11258
11328
|
success: {
|
|
11259
11329
|
background: '$bgSuccess',
|
|
11260
11330
|
color: '$textGreen'
|
|
@@ -11304,8 +11374,8 @@ const StyledIconLeft$3 = styled('div', {
|
|
|
11304
11374
|
alignItems: 'center',
|
|
11305
11375
|
color: 'inherit'
|
|
11306
11376
|
});
|
|
11307
|
-
const Tag = /*#__PURE__*/React__default.forwardRef((
|
|
11308
|
-
|
|
11377
|
+
const Tag = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
11378
|
+
let {
|
|
11309
11379
|
children,
|
|
11310
11380
|
onClick,
|
|
11311
11381
|
size,
|
|
@@ -11315,35 +11385,71 @@ const Tag = /*#__PURE__*/React__default.forwardRef((_a, ref) => {
|
|
|
11315
11385
|
type,
|
|
11316
11386
|
onRemove,
|
|
11317
11387
|
readOnly
|
|
11318
|
-
} =
|
|
11319
|
-
props =
|
|
11320
|
-
return
|
|
11388
|
+
} = _ref,
|
|
11389
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
11390
|
+
return /*#__PURE__*/React__default.createElement(TagWrapper$4, _extends({
|
|
11321
11391
|
ref: ref,
|
|
11322
11392
|
onClick: onClick,
|
|
11323
11393
|
size: size,
|
|
11324
11394
|
disabled: disabled,
|
|
11325
11395
|
type: type,
|
|
11326
|
-
readOnly: readOnly
|
|
11396
|
+
readOnly: readOnly,
|
|
11397
|
+
css: Object.assign({}, props.css)
|
|
11327
11398
|
}, props, {
|
|
11328
|
-
|
|
11329
|
-
|
|
11330
|
-
|
|
11331
|
-
|
|
11332
|
-
|
|
11333
|
-
|
|
11334
|
-
|
|
11335
|
-
|
|
11336
|
-
|
|
11337
|
-
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
-
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
|
|
11344
|
-
|
|
11345
|
-
|
|
11399
|
+
__self: undefined,
|
|
11400
|
+
__source: {
|
|
11401
|
+
fileName: _jsxFileName$E,
|
|
11402
|
+
lineNumber: 84,
|
|
11403
|
+
columnNumber: 7
|
|
11404
|
+
}
|
|
11405
|
+
}), icon !== undefined ? /*#__PURE__*/React__default.createElement(StyledIconLeft$3, {
|
|
11406
|
+
__self: undefined,
|
|
11407
|
+
__source: {
|
|
11408
|
+
fileName: _jsxFileName$E,
|
|
11409
|
+
lineNumber: 94,
|
|
11410
|
+
columnNumber: 31
|
|
11411
|
+
}
|
|
11412
|
+
}, icon) : null, /*#__PURE__*/React__default.createElement(TagComponent$1, {
|
|
11413
|
+
__self: undefined,
|
|
11414
|
+
__source: {
|
|
11415
|
+
fileName: _jsxFileName$E,
|
|
11416
|
+
lineNumber: 95,
|
|
11417
|
+
columnNumber: 9
|
|
11418
|
+
}
|
|
11419
|
+
}, children), isRemovable ? /*#__PURE__*/React__default.createElement(StyledIconRight$1, {
|
|
11420
|
+
disabled: disabled,
|
|
11421
|
+
onClick: onRemove,
|
|
11422
|
+
readOnly: readOnly,
|
|
11423
|
+
__self: undefined,
|
|
11424
|
+
__source: {
|
|
11425
|
+
fileName: _jsxFileName$E,
|
|
11426
|
+
lineNumber: 97,
|
|
11427
|
+
columnNumber: 11
|
|
11428
|
+
}
|
|
11429
|
+
}, /*#__PURE__*/React__default.createElement(CloseOutline, {
|
|
11430
|
+
size: 16,
|
|
11431
|
+
color: colors$8.iconSecondary,
|
|
11432
|
+
style: {
|
|
11433
|
+
verticalAlign: 'middle'
|
|
11434
|
+
},
|
|
11435
|
+
__self: undefined,
|
|
11436
|
+
__source: {
|
|
11437
|
+
fileName: _jsxFileName$E,
|
|
11438
|
+
lineNumber: 98,
|
|
11439
|
+
columnNumber: 13
|
|
11440
|
+
}
|
|
11441
|
+
})) : null);
|
|
11346
11442
|
});
|
|
11443
|
+
Tag.propTypes = {
|
|
11444
|
+
size: PropTypes.string,
|
|
11445
|
+
disabled: PropTypes.bool,
|
|
11446
|
+
type: PropTypes.string,
|
|
11447
|
+
icon: PropTypes.element,
|
|
11448
|
+
isRemovable: PropTypes.bool,
|
|
11449
|
+
onRemove: PropTypes.func,
|
|
11450
|
+
onClick: PropTypes.func,
|
|
11451
|
+
readOnly: PropTypes.bool
|
|
11452
|
+
};
|
|
11347
11453
|
Tag.defaultProps = {
|
|
11348
11454
|
size: 'sm',
|
|
11349
11455
|
isRemovable: false,
|
|
@@ -19792,7 +19898,6 @@ function InputDatePicker({
|
|
|
19792
19898
|
onClose,
|
|
19793
19899
|
mobileOnly,
|
|
19794
19900
|
desktopOnly,
|
|
19795
|
-
advanceOptions,
|
|
19796
19901
|
drawerCss,
|
|
19797
19902
|
drawerContentCss = {},
|
|
19798
19903
|
isMobile = false
|
|
@@ -19885,22 +19990,20 @@ function InputDatePicker({
|
|
|
19885
19990
|
}
|
|
19886
19991
|
};
|
|
19887
19992
|
const renderDatePicker = () => {
|
|
19888
|
-
const options = language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn;
|
|
19889
|
-
const advancePickerReducer = (advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.reducer) || advancePickerDate;
|
|
19890
19993
|
const handleDatePickerChange = value => {
|
|
19891
19994
|
if (showRangeControl || type === 'range_picker') {
|
|
19892
19995
|
if (rangePickerType === 'monthly') {
|
|
19893
19996
|
dispatch({
|
|
19894
19997
|
type: 'UPDATE',
|
|
19895
|
-
payload:
|
|
19998
|
+
payload: advancePickerDate('RANGE_MONTH', value)
|
|
19896
19999
|
});
|
|
19897
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(
|
|
20000
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerDate('RANGE_MONTH', value));
|
|
19898
20001
|
} else {
|
|
19899
20002
|
dispatch({
|
|
19900
20003
|
type: 'UPDATE',
|
|
19901
|
-
payload:
|
|
20004
|
+
payload: advancePickerDate('RANGE_WEEK', value)
|
|
19902
20005
|
});
|
|
19903
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(
|
|
20006
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerDate('RANGE_WEEK', value));
|
|
19904
20007
|
}
|
|
19905
20008
|
} else {
|
|
19906
20009
|
dispatch({
|
|
@@ -19912,10 +20015,10 @@ function InputDatePicker({
|
|
|
19912
20015
|
};
|
|
19913
20016
|
return jsx(DatePicker, {
|
|
19914
20017
|
advanceView: type === ADVANCE_PICKER && (!advanceView ? jsx(AdvancedOption, {
|
|
19915
|
-
options:
|
|
20018
|
+
options: language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn,
|
|
19916
20019
|
disabled: disabled,
|
|
19917
20020
|
optionHandler: value => {
|
|
19918
|
-
const reducedResult =
|
|
20021
|
+
const reducedResult = advancePickerDate(value, undefined);
|
|
19919
20022
|
const dateAsString = moment(reducedResult[1]).format('YYYY-MM-DD');
|
|
19920
20023
|
const payload = [reducedResult[0], moment(`${dateAsString} 23:59`, 'YYYY-MM-DD HH:mm').toDate()];
|
|
19921
20024
|
dispatch({
|
|
@@ -20164,24 +20267,22 @@ const InputDateRange = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
20164
20267
|
placement = 'bottom',
|
|
20165
20268
|
readOnly = false,
|
|
20166
20269
|
isInvalid = false,
|
|
20167
|
-
css
|
|
20168
|
-
advanceOptions
|
|
20270
|
+
css
|
|
20169
20271
|
} = _a,
|
|
20170
|
-
props = __rest(_a, ["onChange", "placeholder", "size", "disabled", "placement", "readOnly", "isInvalid", "css"
|
|
20272
|
+
props = __rest(_a, ["onChange", "placeholder", "size", "disabled", "placement", "readOnly", "isInvalid", "css"]);
|
|
20171
20273
|
const {
|
|
20172
20274
|
t,
|
|
20173
20275
|
i18n
|
|
20174
20276
|
} = useTranslation('translation');
|
|
20175
20277
|
const language = i18n.language;
|
|
20176
20278
|
const pickerOptions = language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn;
|
|
20177
|
-
const advancePickerReducer = (advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.reducer) || advancePickerDate;
|
|
20178
20279
|
return jsx(InputSelect, Object.assign({}, props, {
|
|
20179
|
-
option:
|
|
20280
|
+
option: pickerOptions.map(option => ({
|
|
20180
20281
|
name: option.label,
|
|
20181
20282
|
value: option.value
|
|
20182
20283
|
})),
|
|
20183
20284
|
onChange: selectedOption => {
|
|
20184
|
-
if (onChange) onChange(
|
|
20285
|
+
if (onChange) onChange(advancePickerDate(selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value, undefined));
|
|
20185
20286
|
},
|
|
20186
20287
|
placeholder: placeholder || t('placeholder.select', 'Pilih'),
|
|
20187
20288
|
size: size,
|
|
@@ -51956,236 +52057,12 @@ function PrimitiveLoadingBar({
|
|
|
51956
52057
|
}, void 0)]
|
|
51957
52058
|
}), void 0);
|
|
51958
52059
|
}
|
|
51959
|
-
const rotateKeyframe = keyframes({
|
|
51960
|
-
'100%': {
|
|
51961
|
-
transform: 'rotate(360deg)'
|
|
51962
|
-
}
|
|
51963
|
-
});
|
|
51964
|
-
const dashKeyframe = keyframes({
|
|
51965
|
-
'0%': {
|
|
51966
|
-
strokeDasharray: '0,125',
|
|
51967
|
-
strokeDashoffset: -8
|
|
51968
|
-
},
|
|
51969
|
-
'50%': {
|
|
51970
|
-
strokeDasharray: 125,
|
|
51971
|
-
strokeDashoffset: -10
|
|
51972
|
-
},
|
|
51973
|
-
'100%': {
|
|
51974
|
-
strokeDasharray: 125,
|
|
51975
|
-
strokeDashoffset: -125
|
|
51976
|
-
}
|
|
51977
|
-
});
|
|
51978
|
-
const LoadingContainer = styled$1('div', {
|
|
51979
|
-
position: 'absolute',
|
|
51980
|
-
width: 152,
|
|
51981
|
-
height: 152,
|
|
51982
|
-
top: '50%',
|
|
51983
|
-
left: '50%',
|
|
51984
|
-
transform: 'translate(-50%,-50%)'
|
|
51985
|
-
});
|
|
51986
|
-
const LogoSvg = styled$1('svg', {
|
|
51987
|
-
height: 152,
|
|
51988
|
-
position: 'absolute',
|
|
51989
|
-
width: 152
|
|
51990
|
-
});
|
|
51991
|
-
const LoadingSvg = styled$1('svg', {
|
|
51992
|
-
animation: `${rotateKeyframe} 2s linear infinite`,
|
|
51993
|
-
height: 152,
|
|
51994
|
-
position: 'absolute',
|
|
51995
|
-
width: 152,
|
|
51996
|
-
top: '-22px'
|
|
51997
|
-
});
|
|
51998
|
-
const LoadingBackground = styled$1('div', {
|
|
51999
|
-
background: 'conic-gradient(#fff5f6, #FF97A4, #02B4F3, #81CF77, #6D60AE, #FF6C53 320deg)',
|
|
52000
|
-
width: '100%',
|
|
52001
|
-
height: '100%'
|
|
52002
|
-
});
|
|
52003
|
-
const LoadingCircle = styled$1('circle', {
|
|
52004
|
-
stroke: 'white',
|
|
52005
|
-
strokeLinecap: 'round',
|
|
52006
|
-
transformOrigin: '50% 50%',
|
|
52007
|
-
transform: 'rotate(-102deg)',
|
|
52008
|
-
animation: `${dashKeyframe} 1.5s ease-in-out infinite`
|
|
52009
|
-
});
|
|
52010
|
-
const LoadingLabel = styled$1(Paragraph, {
|
|
52011
|
-
position: 'relative',
|
|
52012
|
-
top: 100
|
|
52013
|
-
});
|
|
52014
|
-
function CircularLoadingBar({
|
|
52015
|
-
label
|
|
52016
|
-
}) {
|
|
52017
|
-
return jsxs(LoadingContainer, {
|
|
52018
|
-
children: [jsxs(LogoSvg, Object.assign({
|
|
52019
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
52020
|
-
width: "152",
|
|
52021
|
-
height: "152",
|
|
52022
|
-
viewBox: "0 0 152 152",
|
|
52023
|
-
fill: "none"
|
|
52024
|
-
}, {
|
|
52025
|
-
children: [jsxs("g", Object.assign({
|
|
52026
|
-
filter: "url(#filter0_ddd_4303_695)"
|
|
52027
|
-
}, {
|
|
52028
|
-
children: [jsx("rect", {
|
|
52029
|
-
x: "46.0004",
|
|
52030
|
-
y: "23.9999",
|
|
52031
|
-
width: "60",
|
|
52032
|
-
height: "60",
|
|
52033
|
-
rx: "30",
|
|
52034
|
-
fill: "url(#paint0_linear_4303_695)"
|
|
52035
|
-
}, void 0), jsx("rect", {
|
|
52036
|
-
x: "46",
|
|
52037
|
-
y: "24",
|
|
52038
|
-
width: "60",
|
|
52039
|
-
height: "60",
|
|
52040
|
-
rx: "30",
|
|
52041
|
-
stroke: "url(#paint1_linear_4303_695)",
|
|
52042
|
-
"stroke-opacity": "0.99",
|
|
52043
|
-
"stroke-width": "5"
|
|
52044
|
-
}, void 0), jsx("path", {
|
|
52045
|
-
"fill-rule": "evenodd",
|
|
52046
|
-
"clip-rule": "evenodd",
|
|
52047
|
-
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",
|
|
52048
|
-
fill: "white"
|
|
52049
|
-
}, void 0)]
|
|
52050
|
-
}), void 0), jsxs("defs", {
|
|
52051
|
-
children: [jsxs("filter", Object.assign({
|
|
52052
|
-
id: "filter0_ddd_4303_695",
|
|
52053
|
-
x: "0.5",
|
|
52054
|
-
y: "0.5",
|
|
52055
|
-
width: "151",
|
|
52056
|
-
height: "151",
|
|
52057
|
-
filterUnits: "userSpaceOnUse",
|
|
52058
|
-
"color-interpolation-filters": "sRGB"
|
|
52059
|
-
}, {
|
|
52060
|
-
children: [jsx("feFlood", {
|
|
52061
|
-
"flood-opacity": "0",
|
|
52062
|
-
result: "BackgroundImageFix"
|
|
52063
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52064
|
-
in: "SourceAlpha",
|
|
52065
|
-
type: "matrix",
|
|
52066
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
52067
|
-
result: "hardAlpha"
|
|
52068
|
-
}, void 0), jsx("feOffset", {
|
|
52069
|
-
dy: "22"
|
|
52070
|
-
}, void 0), jsx("feGaussianBlur", {
|
|
52071
|
-
stdDeviation: "21.5"
|
|
52072
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52073
|
-
type: "matrix",
|
|
52074
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
|
|
52075
|
-
}, void 0), jsx("feBlend", {
|
|
52076
|
-
mode: "normal",
|
|
52077
|
-
in2: "BackgroundImageFix",
|
|
52078
|
-
result: "effect1_dropShadow_4303_695"
|
|
52079
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52080
|
-
in: "SourceAlpha",
|
|
52081
|
-
type: "matrix",
|
|
52082
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
52083
|
-
result: "hardAlpha"
|
|
52084
|
-
}, void 0), jsx("feOffset", {
|
|
52085
|
-
dy: "9"
|
|
52086
|
-
}, void 0), jsx("feGaussianBlur", {
|
|
52087
|
-
stdDeviation: "12"
|
|
52088
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52089
|
-
type: "matrix",
|
|
52090
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0"
|
|
52091
|
-
}, void 0), jsx("feBlend", {
|
|
52092
|
-
mode: "normal",
|
|
52093
|
-
in2: "effect1_dropShadow_4303_695",
|
|
52094
|
-
result: "effect2_dropShadow_4303_695"
|
|
52095
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52096
|
-
in: "SourceAlpha",
|
|
52097
|
-
type: "matrix",
|
|
52098
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
52099
|
-
result: "hardAlpha"
|
|
52100
|
-
}, void 0), jsx("feOffset", {
|
|
52101
|
-
dy: "3"
|
|
52102
|
-
}, void 0), jsx("feGaussianBlur", {
|
|
52103
|
-
stdDeviation: "4.5"
|
|
52104
|
-
}, void 0), jsx("feColorMatrix", {
|
|
52105
|
-
type: "matrix",
|
|
52106
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0"
|
|
52107
|
-
}, void 0), jsx("feBlend", {
|
|
52108
|
-
mode: "normal",
|
|
52109
|
-
in2: "effect2_dropShadow_4303_695",
|
|
52110
|
-
result: "effect3_dropShadow_4303_695"
|
|
52111
|
-
}, void 0), jsx("feBlend", {
|
|
52112
|
-
mode: "normal",
|
|
52113
|
-
in: "SourceGraphic",
|
|
52114
|
-
in2: "effect3_dropShadow_4303_695",
|
|
52115
|
-
result: "shape"
|
|
52116
|
-
}, void 0)]
|
|
52117
|
-
}), void 0), jsxs("linearGradient", Object.assign({
|
|
52118
|
-
id: "paint0_linear_4303_695",
|
|
52119
|
-
x1: "76.0004",
|
|
52120
|
-
y1: "23.9999",
|
|
52121
|
-
x2: "76.0004",
|
|
52122
|
-
y2: "83.9999",
|
|
52123
|
-
gradientUnits: "userSpaceOnUse"
|
|
52124
|
-
}, {
|
|
52125
|
-
children: [jsx("stop", {
|
|
52126
|
-
"stop-color": "#B3DCA7"
|
|
52127
|
-
}, void 0), jsx("stop", {
|
|
52128
|
-
offset: "1",
|
|
52129
|
-
"stop-color": "#22BDB6"
|
|
52130
|
-
}, void 0)]
|
|
52131
|
-
}), void 0), jsxs("linearGradient", Object.assign({
|
|
52132
|
-
id: "paint1_linear_4303_695",
|
|
52133
|
-
x1: "106",
|
|
52134
|
-
y1: "68.8332",
|
|
52135
|
-
x2: "50",
|
|
52136
|
-
y2: "37.3332",
|
|
52137
|
-
gradientUnits: "userSpaceOnUse"
|
|
52138
|
-
}, {
|
|
52139
|
-
children: [jsx("stop", {
|
|
52140
|
-
"stop-color": "#F4F4F4"
|
|
52141
|
-
}, void 0), jsx("stop", {
|
|
52142
|
-
offset: "1",
|
|
52143
|
-
"stop-color": "white"
|
|
52144
|
-
}, void 0)]
|
|
52145
|
-
}), void 0)]
|
|
52146
|
-
}, void 0)]
|
|
52147
|
-
}), void 0), jsxs(LoadingSvg, Object.assign({
|
|
52148
|
-
viewBox: "0 0 100 100",
|
|
52149
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
52150
|
-
}, {
|
|
52151
|
-
children: [jsx("defs", {
|
|
52152
|
-
children: jsx("mask", Object.assign({
|
|
52153
|
-
id: "mask"
|
|
52154
|
-
}, {
|
|
52155
|
-
children: jsx(LoadingCircle, {
|
|
52156
|
-
cx: "50",
|
|
52157
|
-
cy: "50",
|
|
52158
|
-
r: "20",
|
|
52159
|
-
fill: "none",
|
|
52160
|
-
"stroke-width": "4",
|
|
52161
|
-
"stroke-miterlimit": "10"
|
|
52162
|
-
}, void 0)
|
|
52163
|
-
}), void 0)
|
|
52164
|
-
}, void 0), jsx("foreignObject", Object.assign({
|
|
52165
|
-
x: "0",
|
|
52166
|
-
y: "0",
|
|
52167
|
-
width: "100",
|
|
52168
|
-
height: "100",
|
|
52169
|
-
mask: "url(#mask)"
|
|
52170
|
-
}, {
|
|
52171
|
-
children: jsx(LoadingBackground, {}, void 0)
|
|
52172
|
-
}), void 0)]
|
|
52173
|
-
}), void 0), label && jsx(LoadingLabel, Object.assign({
|
|
52174
|
-
color: "white",
|
|
52175
|
-
align: "center"
|
|
52176
|
-
}, {
|
|
52177
|
-
children: label
|
|
52178
|
-
}), void 0)]
|
|
52179
|
-
}, void 0);
|
|
52180
|
-
}
|
|
52181
52060
|
let interval;
|
|
52182
52061
|
function LoadingBar(props) {
|
|
52183
52062
|
const {
|
|
52184
52063
|
show,
|
|
52185
52064
|
onCompleted,
|
|
52186
|
-
interval: intervalTime
|
|
52187
|
-
isPageLoader,
|
|
52188
|
-
pageLoaderLabel
|
|
52065
|
+
interval: intervalTime
|
|
52189
52066
|
} = props;
|
|
52190
52067
|
const [progress, setProgress] = useState(0);
|
|
52191
52068
|
const [visibility, setVisibility] = useState(false);
|
|
@@ -52211,34 +52088,6 @@ function LoadingBar(props) {
|
|
|
52211
52088
|
onCompleted === null || onCompleted === void 0 ? void 0 : onCompleted();
|
|
52212
52089
|
}
|
|
52213
52090
|
}, [progress, onCompleted]);
|
|
52214
|
-
if (!show) return jsx(React__default.Fragment, {}, void 0);
|
|
52215
|
-
if (isPageLoader) {
|
|
52216
|
-
return jsx(ModalDialog, Object.assign({
|
|
52217
|
-
open: show,
|
|
52218
|
-
modal: true,
|
|
52219
|
-
allowPinchZoom: false,
|
|
52220
|
-
width: "100%",
|
|
52221
|
-
layer: 2000,
|
|
52222
|
-
isMobile: false,
|
|
52223
|
-
css: {
|
|
52224
|
-
borderRadius: '2px !important',
|
|
52225
|
-
'& > div': {
|
|
52226
|
-
backgroundColor: 'transparent !important',
|
|
52227
|
-
borderRadius: '2px !important'
|
|
52228
|
-
}
|
|
52229
|
-
}
|
|
52230
|
-
}, {
|
|
52231
|
-
children: jsx(ModalDialogContent, Object.assign({
|
|
52232
|
-
css: {
|
|
52233
|
-
padding: '$spacing-08 $spacing-11'
|
|
52234
|
-
}
|
|
52235
|
-
}, {
|
|
52236
|
-
children: jsx(CircularLoadingBar, {
|
|
52237
|
-
label: pageLoaderLabel
|
|
52238
|
-
}, void 0)
|
|
52239
|
-
}), void 0)
|
|
52240
|
-
}), void 0);
|
|
52241
|
-
}
|
|
52242
52091
|
return typeof (props === null || props === void 0 ? void 0 : props.progress) === 'number' ? jsx(PrimitiveLoadingBar, Object.assign({}, props, {
|
|
52243
52092
|
visibility: true
|
|
52244
52093
|
}), void 0) : jsx(PrimitiveLoadingBar, Object.assign({}, props, {
|
|
@@ -52251,8 +52100,7 @@ LoadingBar.defaultProps = {
|
|
|
52251
52100
|
show: false,
|
|
52252
52101
|
interval: 100,
|
|
52253
52102
|
description: 'Loading...',
|
|
52254
|
-
size: 'md'
|
|
52255
|
-
isPageLoader: false
|
|
52103
|
+
size: 'md'
|
|
52256
52104
|
};
|
|
52257
52105
|
|
|
52258
52106
|
const Container$4 = styled(Flex$1, {
|
|
@@ -53335,6 +53183,7 @@ const ProductList = props => {
|
|
|
53335
53183
|
label: tooltipLabel(name, variants)
|
|
53336
53184
|
}, {
|
|
53337
53185
|
children: jsxs(Box, Object.assign({
|
|
53186
|
+
gap: 2,
|
|
53338
53187
|
css: Object.assign({
|
|
53339
53188
|
display: 'flex',
|
|
53340
53189
|
alignItems: 'center',
|
|
@@ -53380,7 +53229,7 @@ const ProductList = props => {
|
|
|
53380
53229
|
padding: '4px 8px',
|
|
53381
53230
|
minWidth: 'unset',
|
|
53382
53231
|
justifyContent: 'flex-start',
|
|
53383
|
-
|
|
53232
|
+
mr: 'auto'
|
|
53384
53233
|
},
|
|
53385
53234
|
type: "varian"
|
|
53386
53235
|
}, {
|
|
@@ -56940,4 +56789,4 @@ const useToggle = initialValue => {
|
|
|
56940
56789
|
return useReducer(toggleReducer, initialValue);
|
|
56941
56790
|
};
|
|
56942
56791
|
|
|
56943
|
-
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,
|
|
56792
|
+
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 };
|