@muraldevkit/ui-toolkit 4.75.0 → 4.77.0-dev-yOaq.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/file-upload/MrlFileUpload/MrlFileUpload.js +404 -0
- package/dist/cjs/components/file-upload/MrlFileUpload/MrlFileUpload.js.map +1 -0
- package/dist/cjs/components/file-upload/MrlFileUpload/MrlFileUpload.module.scss.js +8 -0
- package/dist/cjs/components/file-upload/MrlFileUpload/MrlFileUpload.module.scss.js.map +1 -0
- package/dist/cjs/components/file-upload/constants.js +48 -0
- package/dist/cjs/components/file-upload/constants.js.map +1 -0
- package/dist/cjs/components/file-upload/helpers.js +67 -0
- package/dist/cjs/components/file-upload/helpers.js.map +1 -0
- package/dist/cjs/components/grid/MrlCol/MrlCol.js +42 -49
- package/dist/cjs/components/grid/MrlCol/MrlCol.js.map +1 -1
- package/dist/cjs/components/grid/MrlGrid/MrlGrid.js +4 -6
- package/dist/cjs/components/grid/MrlGrid/MrlGrid.js.map +1 -1
- package/dist/cjs/components/grid/MrlRow/MrlRow.js +10 -8
- package/dist/cjs/components/grid/MrlRow/MrlRow.js.map +1 -1
- package/dist/cjs/components/grid/constants.js +27 -8
- package/dist/cjs/components/grid/constants.js.map +1 -1
- package/dist/cjs/index.js +37 -31
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/components/file-upload/MrlFileUpload/MrlFileUpload.d.ts +154 -0
- package/dist/components/file-upload/MrlFileUpload/index.d.ts +1 -0
- package/dist/components/file-upload/constants.d.ts +35 -0
- package/dist/components/file-upload/helpers.d.ts +35 -0
- package/dist/components/file-upload/index.d.ts +2 -0
- package/dist/components/grid/MrlCol/MrlCol.d.ts +4 -6
- package/dist/components/grid/MrlCol/index.d.ts +1 -1
- package/dist/components/grid/MrlGrid/MrlGrid.d.ts +5 -4
- package/dist/components/grid/MrlGrid/index.d.ts +1 -1
- package/dist/components/grid/MrlRow/MrlRow.d.ts +7 -7
- package/dist/components/grid/MrlRow/index.d.ts +1 -1
- package/dist/components/grid/constants.d.ts +20 -6
- package/dist/components/index.d.ts +1 -0
- package/dist/esm/components/file-upload/MrlFileUpload/MrlFileUpload.js +379 -0
- package/dist/esm/components/file-upload/MrlFileUpload/MrlFileUpload.js.map +1 -0
- package/dist/esm/components/file-upload/MrlFileUpload/MrlFileUpload.module.scss.js +4 -0
- package/dist/esm/components/file-upload/MrlFileUpload/MrlFileUpload.module.scss.js.map +1 -0
- package/dist/esm/components/file-upload/constants.js +44 -0
- package/dist/esm/components/file-upload/constants.js.map +1 -0
- package/dist/esm/components/file-upload/helpers.js +62 -0
- package/dist/esm/components/file-upload/helpers.js.map +1 -0
- package/dist/esm/components/grid/MrlCol/MrlCol.js +43 -50
- package/dist/esm/components/grid/MrlCol/MrlCol.js.map +1 -1
- package/dist/esm/components/grid/MrlGrid/MrlGrid.js +4 -6
- package/dist/esm/components/grid/MrlGrid/MrlGrid.js.map +1 -1
- package/dist/esm/components/grid/MrlRow/MrlRow.js +10 -8
- package/dist/esm/components/grid/MrlRow/MrlRow.js.map +1 -1
- package/dist/esm/components/grid/constants.js +26 -8
- package/dist/esm/components/grid/constants.js.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/styles/MrlFileUpload/module.scss +136 -0
- package/dist/styles/MrlSidebar/module.scss +2 -2
- package/dist/styles/file-upload/variables.scss +13 -0
- package/dist/styles/grid/global.scss +98 -2
- package/dist/styles/grid/variables.scss +2 -18
- package/dist/styles.css +2 -6
- package/dist/types/components/file-upload/MrlFileUpload/MrlFileUpload.d.ts +154 -0
- package/dist/types/components/file-upload/MrlFileUpload/index.d.ts +1 -0
- package/dist/types/components/file-upload/constants.d.ts +35 -0
- package/dist/types/components/file-upload/helpers.d.ts +35 -0
- package/dist/types/components/file-upload/index.d.ts +2 -0
- package/dist/types/components/grid/MrlCol/MrlCol.d.ts +4 -6
- package/dist/types/components/grid/MrlCol/index.d.ts +1 -1
- package/dist/types/components/grid/MrlGrid/MrlGrid.d.ts +5 -4
- package/dist/types/components/grid/MrlGrid/index.d.ts +1 -1
- package/dist/types/components/grid/MrlRow/MrlRow.d.ts +7 -7
- package/dist/types/components/grid/MrlRow/index.d.ts +1 -1
- package/dist/types/components/grid/constants.d.ts +20 -6
- package/dist/types/components/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sources":["../../../../src/components/file-upload/helpers.ts"],"sourcesContent":["/**\n * Matches a file against an `accept` string (extensions and/or MIME types).\n *\n * The native `accept` attribute only filters the file picker; a dropped file\n * bypasses it entirely, so the same rules have to be applied in code.\n *\n * @param file - the file to test\n * @param accept - native `accept` syntax, e.g. '.png,image/*'\n * @returns whether the file matches the accept rules\n */\nexport function isAccepted(file: File, accept: string): boolean {\n\tconst rules = accept\n\t\t.split(',')\n\t\t.map((rule) => rule.trim().toLowerCase())\n\t\t.filter(Boolean);\n\n\tif (rules.length === 0) return true;\n\n\tconst name = file.name.toLowerCase();\n\tconst type = file.type.toLowerCase();\n\n\treturn rules.some((rule) => {\n\t\tif (rule.startsWith('.')) return name.endsWith(rule);\n\t\tif (rule.endsWith('/*')) return type.startsWith(rule.slice(0, -1));\n\t\treturn type === rule;\n\t});\n}\n\n/**\n * Formats a byte count for display in a validation message.\n *\n * @param bytes - the size in bytes\n * @returns a short human-readable size, e.g. '2.5 MB'\n */\nexport function formatBytes(bytes: number): string {\n\tif (bytes < 1024) return `${bytes} B`;\n\tif (bytes < 1024 * 1024) return `${Math.round(bytes / 1024)} KB`;\n\treturn `${Math.round((bytes / (1024 * 1024)) * 10) / 10} MB`;\n}\n\n/**\n * Lists the file types an `accept` string permits, for display.\n *\n * @param accept - native `accept` syntax, e.g. '.png,image/*'\n * @returns a comma-separated list, or an empty string if nothing is restricted\n */\nexport function formatAcceptList(accept: string): string {\n\treturn accept\n\t\t.split(',')\n\t\t.map((rule) => rule.trim())\n\t\t.filter(Boolean)\n\t\t.join(', ');\n}\n\n/**\n * Describes the constraints the component actually enforces, for use as helper\n * text. Deriving the sentence from `accept` and `maxSizeBytes` is what keeps it\n * from contradicting what validation rejects.\n *\n * @param accept - native `accept` syntax, e.g. '.png,image/*'\n * @param maxSizeBytes - the size limit in bytes, if there is one\n * @returns a sentence describing what may be uploaded, or an empty string\n */\nexport function describeConstraints(accept: string, maxSizeBytes?: number): string {\n\tconst types = formatAcceptList(accept);\n\tconst limit = maxSizeBytes !== undefined ? `up to ${formatBytes(maxSizeBytes)}` : '';\n\n\tif (!types) return limit ? `Accepts any file ${limit}` : '';\n\n\treturn limit ? `Accepts ${types} ${limit}` : `Accepts ${types}`;\n}\n"],"names":["isAccepted","file","accept","rules","split","map","rule","trim","toLowerCase","filter","Boolean","length","name","type","some","startsWith","endsWith","slice","formatBytes","bytes","concat","Math","round","formatAcceptList","join","describeConstraints","maxSizeBytes","types","limit","undefined"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,UAAUA,CAACC,IAAU,EAAEC,MAAc,EAAW;EAC/D,IAAMC,KAAK,GAAGD,MAAM,CAClBE,KAAK,CAAC,GAAG,CAAC,CACVC,GAAG,CAAEC,IAAI,IAAKA,IAAI,CAACC,IAAI,EAAE,CAACC,WAAW,EAAE,CAAC,CACxCC,MAAM,CAACC,OAAO,CAAC;AAEjB,EAAA,IAAIP,KAAK,CAACQ,MAAM,KAAK,CAAC,EAAE,OAAO,IAAI;EAEnC,IAAMC,IAAI,GAAGX,IAAI,CAACW,IAAI,CAACJ,WAAW,EAAE;EACpC,IAAMK,IAAI,GAAGZ,IAAI,CAACY,IAAI,CAACL,WAAW,EAAE;AAEpC,EAAA,OAAOL,KAAK,CAACW,IAAI,CAAER,IAAI,IAAK;AAC3B,IAAA,IAAIA,IAAI,CAACS,UAAU,CAAC,GAAG,CAAC,EAAE,OAAOH,IAAI,CAACI,QAAQ,CAACV,IAAI,CAAC;IACpD,IAAIA,IAAI,CAACU,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAOH,IAAI,CAACE,UAAU,CAACT,IAAI,CAACW,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAClE,OAAOJ,IAAI,KAAKP,IAAI;AACrB,EAAA,CAAC,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,SAASY,WAAWA,CAACC,KAAa,EAAU;AAClD,EAAA,IAAIA,KAAK,GAAG,IAAI,EAAE,OAAA,EAAA,CAAAC,MAAA,CAAUD,KAAK,EAAA,IAAA,CAAA;AACjC,EAAA,IAAIA,KAAK,GAAG,IAAI,GAAG,IAAI,EAAE,OAAA,EAAA,CAAAC,MAAA,CAAUC,IAAI,CAACC,KAAK,CAACH,KAAK,GAAG,IAAI,CAAC,EAAA,KAAA,CAAA;AAC3D,EAAA,OAAA,EAAA,CAAAC,MAAA,CAAUC,IAAI,CAACC,KAAK,CAAEH,KAAK,IAAI,IAAI,GAAG,IAAI,CAAC,GAAI,EAAE,CAAC,GAAG,EAAE,EAAA,KAAA,CAAA;AACxD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,SAASI,gBAAgBA,CAACrB,MAAc,EAAU;EACxD,OAAOA,MAAM,CACXE,KAAK,CAAC,GAAG,CAAC,CACVC,GAAG,CAAEC,IAAI,IAAKA,IAAI,CAACC,IAAI,EAAE,CAAC,CAC1BE,MAAM,CAACC,OAAO,CAAC,CACfc,IAAI,CAAC,IAAI,CAAC;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,mBAAmBA,CAACvB,MAAc,EAAEwB,YAAqB,EAAU;AAClF,EAAA,IAAMC,KAAK,GAAGJ,gBAAgB,CAACrB,MAAM,CAAC;AACtC,EAAA,IAAM0B,KAAK,GAAGF,YAAY,KAAKG,SAAS,GAAA,QAAA,CAAAT,MAAA,CAAYF,WAAW,CAACQ,YAAY,CAAC,IAAK,EAAE;EAEpF,IAAI,CAACC,KAAK,EAAE,OAAOC,KAAK,uBAAAR,MAAA,CAAuBQ,KAAK,CAAA,GAAK,EAAE;AAE3D,EAAA,OAAOA,KAAK,GAAA,UAAA,CAAAR,MAAA,CAAcO,KAAK,EAAA,GAAA,CAAA,CAAAP,MAAA,CAAIQ,KAAK,CAAA,GAAA,UAAA,CAAAR,MAAA,CAAgBO,KAAK,CAAE;AAChE;;;;;;;"}
|
|
@@ -28,38 +28,44 @@ function _interopNamespace(e) {
|
|
|
28
28
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
29
29
|
var classnames__default = /*#__PURE__*/_interopDefault(classnames);
|
|
30
30
|
|
|
31
|
-
var _excluded = ["children", "className"];
|
|
32
|
-
|
|
31
|
+
var _excluded = ["children", "className", "col", "lg", "md", "sm", "xl", "xs", "xxl"];
|
|
32
|
+
/**
|
|
33
|
+
* Builds a single grid class. The base tier (`col`) and the deprecated `xs`
|
|
34
|
+
* alias are un-prefixed; every other breakpoint carries its infix.
|
|
35
|
+
* @param size - breakpoint key
|
|
36
|
+
* @param type - `col` or `offset`
|
|
37
|
+
* @param val - column count, or `auto`
|
|
38
|
+
* @returns the grid class name
|
|
39
|
+
*/
|
|
40
|
+
var getGridClass = (size, type, val) => size === 'col' || size === 'xs' ? "".concat(type, "-").concat(val) : "".concat(type, "-").concat(size, "-").concat(val);
|
|
33
41
|
|
|
34
42
|
/**
|
|
35
43
|
* Creates the size classes for the grid.
|
|
36
44
|
* @param props - component props
|
|
37
|
-
* @returns an array of size classes
|
|
45
|
+
* @returns an array of size classes
|
|
38
46
|
*/
|
|
39
47
|
var createSizeClasses = props => {
|
|
40
48
|
var classes = [];
|
|
41
|
-
for (var size of constants.
|
|
49
|
+
for (var size of constants.GRID_SIZE_KEYS) {
|
|
42
50
|
// get the value based on the prop key from the component props
|
|
43
51
|
var value = props[size];
|
|
44
52
|
|
|
45
|
-
// create the size class based on the value
|
|
53
|
+
// create the size class based on the value
|
|
46
54
|
if (value) {
|
|
47
|
-
// if the value is a number
|
|
48
|
-
if (typeof value === 'number') {
|
|
49
|
-
classes.push(
|
|
55
|
+
// if the value is a number or `auto`, then it is a column size
|
|
56
|
+
if (typeof value === 'number' || typeof value === 'string') {
|
|
57
|
+
classes.push(getGridClass(size, 'col', value));
|
|
50
58
|
continue;
|
|
51
59
|
}
|
|
52
60
|
|
|
53
61
|
// if the value is an object, then we need to compose multiple classes
|
|
54
62
|
// based on the keyvalue pairings
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
classes.push(getBootstrapClass(size, key, val));
|
|
62
|
-
}
|
|
63
|
+
for (var _ref3 of Object.entries(value)) {
|
|
64
|
+
var _ref2 = _rollupPluginBabelHelpers.slicedToArray(_ref3, 2);
|
|
65
|
+
var key = _ref2[0];
|
|
66
|
+
var val = _ref2[1];
|
|
67
|
+
if (val === 0 || val === undefined) continue;
|
|
68
|
+
classes.push(getGridClass(size, key, val));
|
|
63
69
|
}
|
|
64
70
|
}
|
|
65
71
|
}
|
|
@@ -68,44 +74,31 @@ var createSizeClasses = props => {
|
|
|
68
74
|
};
|
|
69
75
|
|
|
70
76
|
/**
|
|
71
|
-
*
|
|
72
|
-
* @param props
|
|
73
|
-
* @returns
|
|
77
|
+
* MrlCol React component. Creates a grid column.
|
|
78
|
+
* @param props - component props
|
|
79
|
+
* @returns a MrlCol React component.
|
|
74
80
|
*/
|
|
75
|
-
|
|
76
|
-
var
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
81
|
+
function MrlCol(_ref4) {
|
|
82
|
+
var children = _ref4.children,
|
|
83
|
+
className = _ref4.className,
|
|
84
|
+
col = _ref4.col,
|
|
85
|
+
lg = _ref4.lg,
|
|
86
|
+
md = _ref4.md,
|
|
87
|
+
sm = _ref4.sm,
|
|
88
|
+
xl = _ref4.xl,
|
|
89
|
+
xs = _ref4.xs,
|
|
90
|
+
xxl = _ref4.xxl,
|
|
91
|
+
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref4, _excluded);
|
|
92
|
+
var columnClasses = createSizeClasses({
|
|
86
93
|
col,
|
|
87
|
-
xs,
|
|
88
|
-
sm,
|
|
89
|
-
md,
|
|
90
94
|
lg,
|
|
95
|
+
md,
|
|
96
|
+
sm,
|
|
91
97
|
xl,
|
|
98
|
+
xs,
|
|
92
99
|
xxl
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* MrlCol React component.
|
|
98
|
-
* @param props - component props
|
|
99
|
-
* @returns a MrlCol React component.
|
|
100
|
-
*/
|
|
101
|
-
function MrlCol(props) {
|
|
102
|
-
var children = props.children,
|
|
103
|
-
_props$className = props.className,
|
|
104
|
-
className = _props$className === void 0 ? '' : _props$className,
|
|
105
|
-
rest = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
|
|
106
|
-
var gridProps = getGridProps(props);
|
|
107
|
-
var columnClasses = React__namespace.useMemo(() => createSizeClasses(gridProps), [gridProps]);
|
|
108
|
-
var allClasses = classnames__default.default(className, columnClasses);
|
|
100
|
+
});
|
|
101
|
+
var allClasses = classnames__default.default(className, 'MrlCol', columnClasses);
|
|
109
102
|
return /*#__PURE__*/React__namespace.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
|
|
110
103
|
className: allClasses
|
|
111
104
|
}), children);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MrlCol.js","sources":["../../../../../src/components/grid/MrlCol/MrlCol.tsx"],"sourcesContent":["import * as React from 'react';\nimport classnames from 'classnames';\nimport {
|
|
1
|
+
{"version":3,"file":"MrlCol.js","sources":["../../../../../src/components/grid/MrlCol/MrlCol.tsx"],"sourcesContent":["import * as React from 'react';\nimport classnames from 'classnames';\nimport { GRID_SIZE_KEYS, GridBaseProps, GridColumns } from '../constants';\n\nexport type MrlColProps = GridColumns & GridBaseProps;\n\n/**\n * Builds a single grid class. The base tier (`col`) and the deprecated `xs`\n * alias are un-prefixed; every other breakpoint carries its infix.\n * @param size - breakpoint key\n * @param type - `col` or `offset`\n * @param val - column count, or `auto`\n * @returns the grid class name\n */\nconst getGridClass = (size: string, type: string, val: number | string): string =>\n\tsize === 'col' || size === 'xs' ? `${type}-${val}` : `${type}-${size}-${val}`;\n\n/**\n * Creates the size classes for the grid.\n * @param props - component props\n * @returns an array of size classes\n */\nconst createSizeClasses = (props: GridColumns): string[] => {\n\tconst classes: string[] = [];\n\n\tfor (const size of GRID_SIZE_KEYS) {\n\t\t// get the value based on the prop key from the component props\n\t\tconst value = props[size];\n\n\t\t// create the size class based on the value\n\t\tif (value) {\n\t\t\t// if the value is a number or `auto`, then it is a column size\n\t\t\tif (typeof value === 'number' || typeof value === 'string') {\n\t\t\t\tclasses.push(getGridClass(size, 'col', value));\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// if the value is an object, then we need to compose multiple classes\n\t\t\t// based on the keyvalue pairings\n\t\t\tfor (const [key, val] of Object.entries(value)) {\n\t\t\t\tif (val === 0 || val === undefined) continue;\n\t\t\t\tclasses.push(getGridClass(size, key, val as number));\n\t\t\t}\n\t\t}\n\t}\n\n\tif (classes.length === 0) classes.push('col');\n\n\treturn classes;\n};\n\n/**\n * MrlCol React component. Creates a grid column.\n * @param props - component props\n * @returns a MrlCol React component.\n */\nexport function MrlCol({\n\tchildren,\n\tclassName,\n\tcol,\n\tlg,\n\tmd,\n\tsm,\n\txl,\n\txs,\n\txxl,\n\t...rest\n}: MrlColProps): JSX.Element {\n\tconst columnClasses = createSizeClasses({ col, lg, md, sm, xl, xs, xxl });\n\tconst allClasses = classnames(className, 'MrlCol', columnClasses);\n\n\treturn (\n\t\t<div {...rest} className={allClasses}>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"names":["getGridClass","size","type","val","concat","createSizeClasses","props","classes","GRID_SIZE_KEYS","value","push","_ref3","Object","entries","_ref2","_slicedToArray","key","undefined","length","MrlCol","_ref4","children","className","col","lg","md","sm","xl","xs","xxl","rest","_objectWithoutProperties","_excluded","columnClasses","allClasses","classnames","React","createElement","_extends"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMA,YAAY,GAAGA,CAACC,IAAY,EAAEC,IAAY,EAAEC,GAAoB,KACrEF,IAAI,KAAK,KAAK,IAAIA,IAAI,KAAK,IAAI,GAAA,EAAA,CAAAG,MAAA,CAAMF,IAAI,OAAAE,MAAA,CAAID,GAAG,CAAA,GAAA,EAAA,CAAAC,MAAA,CAAQF,IAAI,EAAA,GAAA,CAAA,CAAAE,MAAA,CAAIH,IAAI,EAAA,GAAA,CAAA,CAAAG,MAAA,CAAID,GAAG,CAAE;;AAE9E;AACA;AACA;AACA;AACA;AACA,IAAME,iBAAiB,GAAIC,KAAkB,IAAe;EAC3D,IAAMC,OAAiB,GAAG,EAAE;AAE5B,EAAA,KAAK,IAAMN,IAAI,IAAIO,wBAAc,EAAE;AAClC;AACA,IAAA,IAAMC,KAAK,GAAGH,KAAK,CAACL,IAAI,CAAC;;AAEzB;AACA,IAAA,IAAIQ,KAAK,EAAE;AACV;MACA,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;QAC3DF,OAAO,CAACG,IAAI,CAACV,YAAY,CAACC,IAAI,EAAE,KAAK,EAAEQ,KAAK,CAAC,CAAC;AAC9C,QAAA;AACD,MAAA;;AAEA;AACA;MACA,KAAA,IAAAE,KAAA,IAAyBC,MAAM,CAACC,OAAO,CAACJ,KAAK,CAAC,EAAE;AAAA,QAAA,IAAAK,KAAA,GAAAC,uCAAA,CAAAJ,KAAA,EAAA,CAAA,CAAA;QAAA,IAApCK,GAAG,GAAAF,KAAA,CAAA,CAAA,CAAA;QAAA,IAAEX,GAAG,GAAAW,KAAA,CAAA,CAAA,CAAA;AACnB,QAAA,IAAIX,GAAG,KAAK,CAAC,IAAIA,GAAG,KAAKc,SAAS,EAAE;QACpCV,OAAO,CAACG,IAAI,CAACV,YAAY,CAACC,IAAI,EAAEe,GAAG,EAAEb,GAAa,CAAC,CAAC;AACrD,MAAA;AACD,IAAA;AACD,EAAA;EAEA,IAAII,OAAO,CAACW,MAAM,KAAK,CAAC,EAAEX,OAAO,CAACG,IAAI,CAAC,KAAK,CAAC;AAE7C,EAAA,OAAOH,OAAO;AACf,CAAC;;AAED;AACA;AACA;AACA;AACA;AACO,SAASY,MAAMA,CAAAC,KAAA,EAWO;AAAA,EAAA,IAV5BC,QAAQ,GAAAD,KAAA,CAARC,QAAQ;IACRC,SAAS,GAAAF,KAAA,CAATE,SAAS;IACTC,GAAG,GAAAH,KAAA,CAAHG,GAAG;IACHC,EAAE,GAAAJ,KAAA,CAAFI,EAAE;IACFC,EAAE,GAAAL,KAAA,CAAFK,EAAE;IACFC,EAAE,GAAAN,KAAA,CAAFM,EAAE;IACFC,EAAE,GAAAP,KAAA,CAAFO,EAAE;IACFC,EAAE,GAAAR,KAAA,CAAFQ,EAAE;IACFC,GAAG,GAAAT,KAAA,CAAHS,GAAG;AACAC,IAAAA,IAAI,GAAAC,iDAAA,CAAAX,KAAA,EAAAY,SAAA,CAAA;EAEP,IAAMC,aAAa,GAAG5B,iBAAiB,CAAC;IAAEkB,GAAG;IAAEC,EAAE;IAAEC,EAAE;IAAEC,EAAE;IAAEC,EAAE;IAAEC,EAAE;AAAEC,IAAAA;AAAI,GAAC,CAAC;EACzE,IAAMK,UAAU,GAAGC,2BAAU,CAACb,SAAS,EAAE,QAAQ,EAAEW,aAAa,CAAC;AAEjE,EAAA,oBACCG,gBAAA,CAAAC,aAAA,CAAA,KAAA,EAAAC,iCAAA,KAASR,IAAI,EAAA;AAAER,IAAAA,SAAS,EAAEY;AAAW,GAAA,CAAA,EACnCb,QACG,CAAC;AAER;;;;"}
|
|
@@ -28,18 +28,16 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
28
28
|
var classnames__default = /*#__PURE__*/_interopDefault(classnames);
|
|
29
29
|
|
|
30
30
|
var _excluded = ["children", "className"];
|
|
31
|
-
|
|
32
31
|
/**
|
|
33
|
-
*
|
|
32
|
+
* MrlGrid React component. Primary container of a grid.
|
|
34
33
|
* @param props - component props
|
|
35
|
-
* @returns a
|
|
34
|
+
* @returns a MrlGrid React component.
|
|
36
35
|
*/
|
|
37
36
|
function MrlGrid(_ref) {
|
|
38
37
|
var children = _ref.children,
|
|
39
|
-
|
|
40
|
-
className = _ref$className === void 0 ? '' : _ref$className,
|
|
38
|
+
className = _ref.className,
|
|
41
39
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
42
|
-
var allClasses = classnames__default.default('container', className);
|
|
40
|
+
var allClasses = classnames__default.default('container', 'MrlGrid', className);
|
|
43
41
|
return /*#__PURE__*/React__namespace.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
|
|
44
42
|
className: allClasses
|
|
45
43
|
}), children);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MrlGrid.js","sources":["../../../../../src/components/grid/MrlGrid/MrlGrid.tsx"],"sourcesContent":["import * as React from 'react';\nimport classnames from 'classnames';\nimport {
|
|
1
|
+
{"version":3,"file":"MrlGrid.js","sources":["../../../../../src/components/grid/MrlGrid/MrlGrid.tsx"],"sourcesContent":["import * as React from 'react';\nimport classnames from 'classnames';\nimport { GridBaseProps } from '../constants';\nimport '../grid.variables.scss';\nimport '../grid.global.scss';\n\nexport type MrlGridProps = GridBaseProps;\n\n/**\n * MrlGrid React component. Primary container of a grid.\n * @param props - component props\n * @returns a MrlGrid React component.\n */\nexport function MrlGrid({ children, className, ...rest }: MrlGridProps): JSX.Element {\n\tconst allClasses = classnames('container', 'MrlGrid', className);\n\n\treturn (\n\t\t<div {...rest} className={allClasses}>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"names":["MrlGrid","_ref","children","className","rest","_objectWithoutProperties","_excluded","allClasses","classnames","React","createElement","_extends"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA;AACA;AACA;AACA;AACA;AACO,SAASA,OAAOA,CAAAC,IAAA,EAA8D;AAAA,EAAA,IAA3DC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,SAAS,GAAAF,IAAA,CAATE,SAAS;AAAKC,IAAAA,IAAI,GAAAC,iDAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA;EACrD,IAAMC,UAAU,GAAGC,2BAAU,CAAC,WAAW,EAAE,SAAS,EAAEL,SAAS,CAAC;AAEhE,EAAA,oBACCM,gBAAA,CAAAC,aAAA,CAAA,KAAA,EAAAC,iCAAA,KAASP,IAAI,EAAA;AAAED,IAAAA,SAAS,EAAEI;AAAW,GAAA,CAAA,EACnCL,QACG,CAAC;AAER;;;;"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
|
+
var constants = require('../constants.js');
|
|
6
7
|
|
|
7
8
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
9
|
|
|
@@ -27,25 +28,26 @@ function _interopNamespace(e) {
|
|
|
27
28
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
28
29
|
var classnames__default = /*#__PURE__*/_interopDefault(classnames);
|
|
29
30
|
|
|
30
|
-
var _excluded = ["align", "children", "className", "justify"];
|
|
31
|
+
var _excluded = ["align", "children", "className", "gutter", "justify"];
|
|
31
32
|
/**
|
|
32
|
-
* MrlRow React component.
|
|
33
|
+
* MrlRow React component. Creates a grid row.
|
|
33
34
|
* @param props - component props
|
|
34
35
|
* @returns a MrlRow React component.
|
|
35
36
|
*/
|
|
36
37
|
function MrlRow(_ref) {
|
|
37
38
|
var align = _ref.align,
|
|
38
39
|
children = _ref.children,
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
className = _ref.className,
|
|
41
|
+
_ref$gutter = _ref.gutter,
|
|
42
|
+
gutter = _ref$gutter === void 0 ? 1 : _ref$gutter,
|
|
41
43
|
justify = _ref.justify,
|
|
42
44
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
43
|
-
var alignClass = align
|
|
45
|
+
var alignClass = align && "align-items-".concat(align);
|
|
44
46
|
var justifyClass = justify && "justify-content-".concat(justify);
|
|
45
|
-
var allClasses = classnames__default.default('row', className, alignClass, justifyClass);
|
|
46
|
-
return /*#__PURE__*/React__namespace.createElement("div", _rollupPluginBabelHelpers.extends({
|
|
47
|
+
var allClasses = classnames__default.default('row', 'MrlRow', className, alignClass, justifyClass, constants.GUTTER_CLASS[gutter]);
|
|
48
|
+
return /*#__PURE__*/React__namespace.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
|
|
47
49
|
className: allClasses
|
|
48
|
-
}
|
|
50
|
+
}), children);
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
exports.MrlRow = MrlRow;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MrlRow.js","sources":["../../../../../src/components/grid/MrlRow/MrlRow.tsx"],"sourcesContent":["import * as React from 'react';\nimport classnames from 'classnames';\nimport {
|
|
1
|
+
{"version":3,"file":"MrlRow.js","sources":["../../../../../src/components/grid/MrlRow/MrlRow.tsx"],"sourcesContent":["import * as React from 'react';\nimport classnames from 'classnames';\nimport {\n\tAlignOptions,\n\tGridBaseProps,\n\tGUTTER_CLASS,\n\tGutterSizes,\n\tJustifyOptions\n} from '../constants';\n\nexport interface MrlRowProps extends GridBaseProps {\n\t/**\n\t * Flex alignment of the children within the component.\n\t */\n\talign?: AlignOptions;\n\n\t/**\n\t * Gutter size for columns within the row.\n\t *\n\t * @default 1\n\t */\n\tgutter?: GutterSizes;\n\n\t/**\n\t * Justify content of the children within the component.\n\t */\n\tjustify?: JustifyOptions;\n}\n\n/**\n * MrlRow React component. Creates a grid row.\n * @param props - component props\n * @returns a MrlRow React component.\n */\nexport function MrlRow({\n\talign,\n\tchildren,\n\tclassName,\n\tgutter = 1,\n\tjustify,\n\t...rest\n}: MrlRowProps): JSX.Element {\n\tconst alignClass = align && `align-items-${align}`;\n\tconst justifyClass = justify && `justify-content-${justify}`;\n\n\tconst allClasses = classnames(\n\t\t'row',\n\t\t'MrlRow',\n\t\tclassName,\n\t\talignClass,\n\t\tjustifyClass,\n\t\tGUTTER_CLASS[gutter]\n\t);\n\n\treturn (\n\t\t<div {...rest} className={allClasses}>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"names":["MrlRow","_ref","align","children","className","_ref$gutter","gutter","justify","rest","_objectWithoutProperties","_excluded","alignClass","concat","justifyClass","allClasses","classnames","GUTTER_CLASS","React","createElement","_extends"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA;AACA;AACA;AACA;AACA;AACO,SAASA,MAAMA,CAAAC,IAAA,EAOO;AAAA,EAAA,IAN5BC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACRC,SAAS,GAAAH,IAAA,CAATG,SAAS;IAAAC,WAAA,GAAAJ,IAAA,CACTK,MAAM;AAANA,IAAAA,MAAM,GAAAD,WAAA,KAAA,MAAA,GAAG,CAAC,GAAAA,WAAA;IACVE,OAAO,GAAAN,IAAA,CAAPM,OAAO;AACJC,IAAAA,IAAI,GAAAC,iDAAA,CAAAR,IAAA,EAAAS,SAAA,CAAA;AAEP,EAAA,IAAMC,UAAU,GAAGT,KAAK,mBAAAU,MAAA,CAAmBV,KAAK,CAAE;AAClD,EAAA,IAAMW,YAAY,GAAGN,OAAO,uBAAAK,MAAA,CAAuBL,OAAO,CAAE;AAE5D,EAAA,IAAMO,UAAU,GAAGC,2BAAU,CAC5B,KAAK,EACL,QAAQ,EACRX,SAAS,EACTO,UAAU,EACVE,YAAY,EACZG,sBAAY,CAACV,MAAM,CACpB,CAAC;AAED,EAAA,oBACCW,gBAAA,CAAAC,aAAA,CAAA,KAAA,EAAAC,iCAAA,KAASX,IAAI,EAAA;AAAEJ,IAAAA,SAAS,EAAEU;AAAW,GAAA,CAAA,EACnCX,QACG,CAAC;AAER;;;;"}
|
|
@@ -4,20 +4,15 @@
|
|
|
4
4
|
* Alignment & justification options for grid containers
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* Available grid sizes
|
|
9
|
-
*/
|
|
10
|
-
var GridSizes = ['col', 'xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
|
|
11
|
-
|
|
12
7
|
/**
|
|
13
8
|
* Number of columns that will be span on the grid.
|
|
14
9
|
*/
|
|
15
10
|
|
|
16
11
|
/**
|
|
17
|
-
* The
|
|
12
|
+
* The grid classes that can be configured per breakpoint.
|
|
18
13
|
* Current supported:
|
|
19
14
|
* - columns "col-<size>-<number>"
|
|
20
|
-
* - offsets "offset-<size>-<number>"
|
|
15
|
+
* - offsets "offset-<size>-<number>"
|
|
21
16
|
*/
|
|
22
17
|
|
|
23
18
|
/**
|
|
@@ -34,9 +29,33 @@ var GridSizes = ['col', 'xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
|
|
|
34
29
|
* Options to configure the number of columns to span on different screen sizes.
|
|
35
30
|
*/
|
|
36
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Breakpoint keys in ascending order. Drives both class generation and the
|
|
34
|
+
* filtering that keeps grid props from reaching the DOM.
|
|
35
|
+
*/
|
|
36
|
+
var GRID_SIZE_KEYS = ['col', 'xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
|
|
37
|
+
|
|
37
38
|
/**
|
|
38
39
|
* Available gutter sizes for customizing the grid
|
|
39
40
|
*/
|
|
40
41
|
|
|
41
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Gutter size to modifier class. `1` is the default gutter declared on `:root`,
|
|
44
|
+
* so it needs no class.
|
|
45
|
+
*/
|
|
46
|
+
var GUTTER_CLASS = {
|
|
47
|
+
0: 'MrlRow-gutter--none',
|
|
48
|
+
1: undefined,
|
|
49
|
+
2: 'MrlRow-gutter--double'
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Shared props for the grid components. `role` is intentionally omitted: these
|
|
54
|
+
* are generic layout wrappers, and a `role="grid"` would promise interactive
|
|
55
|
+
* grid keyboard semantics that they do not implement. Page landmarks belong to
|
|
56
|
+
* the layout components (MrlMain, MrlPage).
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
exports.GRID_SIZE_KEYS = GRID_SIZE_KEYS;
|
|
60
|
+
exports.GUTTER_CLASS = GUTTER_CLASS;
|
|
42
61
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../../../src/components/grid/constants.ts"],"sourcesContent":["/**\n * Alignment & justification options for grid containers\n */\nexport type AlignOptions = 'start' | 'center' | 'end';\nexport type JustifyOptions = 'start' | 'center' | 'end' | 'between' | 'around';\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../../src/components/grid/constants.ts"],"sourcesContent":["import { DataQa } from '../../utils/dataQa';\n\n/**\n * Alignment & justification options for grid containers\n */\nexport type AlignOptions = 'start' | 'center' | 'end';\nexport type JustifyOptions = 'start' | 'center' | 'end' | 'between' | 'around';\n\n/**\n * Number of columns that will be span on the grid.\n */\nexport type NumCols = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\n\n/**\n * The grid classes that can be configured per breakpoint.\n * Current supported:\n * - columns \"col-<size>-<number>\"\n * - offsets \"offset-<size>-<number>\"\n */\ntype GridClass = 'col' | 'offset';\n\n/**\n * Interface of available class selectors based on GridClass\n *\n * Example interface:\n * {\n * col?: number,\n * offset?: number\n * }\n */\ntype GridClassConfig = {\n\t[key in GridClass]?: NumCols;\n};\n\n/**\n * Options to configure the number of columns to span on different screen sizes.\n */\ntype ColumnConfig = NumCols | 'auto' | GridClassConfig | undefined;\n\nexport interface GridColumns {\n\t/*\n\t * Columns that are the same from the smallest of devices to the largest.\n\t */\n\tcol?: ColumnConfig;\n\n\t/*\n\t * @deprecated Alias of `col`, kept for backwards compatibility.\n\t */\n\txs?: ColumnConfig;\n\n\t/*\n\t * The number of columns to span on small devices.\n\t */\n\tsm?: ColumnConfig;\n\n\t/*\n\t * The number of columns to span on medium devices.\n\t */\n\tmd?: ColumnConfig;\n\n\t/*\n\t * The number of columns to span on large devices.\n\t */\n\tlg?: ColumnConfig;\n\n\t/*\n\t * The number of columns to span on extra large devices.\n\t */\n\txl?: ColumnConfig;\n\n\t/*\n\t * The number of columns to span on extra extra large devices.\n\t */\n\txxl?: ColumnConfig;\n}\n\n/**\n * Breakpoint keys in ascending order. Drives both class generation and the\n * filtering that keeps grid props from reaching the DOM.\n */\nexport const GRID_SIZE_KEYS = ['col', 'xs', 'sm', 'md', 'lg', 'xl', 'xxl'] as const;\n\n/**\n * Available gutter sizes for customizing the grid\n */\nexport type GutterSizes = 0 | 1 | 2;\n\n/**\n * Gutter size to modifier class. `1` is the default gutter declared on `:root`,\n * so it needs no class.\n */\nexport const GUTTER_CLASS: Record<GutterSizes, string | undefined> = {\n\t0: 'MrlRow-gutter--none',\n\t1: undefined,\n\t2: 'MrlRow-gutter--double'\n};\n\n/**\n * Shared props for the grid components. `role` is intentionally omitted: these\n * are generic layout wrappers, and a `role=\"grid\"` would promise interactive\n * grid keyboard semantics that they do not implement. Page landmarks belong to\n * the layout components (MrlMain, MrlPage).\n */\nexport type GridBaseProps = Omit<React.ComponentPropsWithoutRef<'div'>, 'role'> & DataQa;\n"],"names":["GRID_SIZE_KEYS","GUTTER_CLASS","undefined"],"mappings":";;AAEA;AACA;AACA;;AAIA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKA;AACA;AACA;;AAwCA;AACA;AACA;AACA;IACaA,cAAc,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK;;AAEzE;AACA;AACA;;AAGA;AACA;AACA;AACA;AACO,IAAMC,YAAqD,GAAG;AACpE,EAAA,CAAC,EAAE,qBAAqB;AACxB,EAAA,CAAC,EAAEC,SAAS;AACZ,EAAA,CAAC,EAAE;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var MrlCreatableSelect = require('./components/form/select/MrlCreatableSelect/MrlCreatableSelect.js');
|
|
4
|
+
var constants = require('./components/file-upload/constants.js');
|
|
4
5
|
var MrlProcessingButton = require('./components/button/MrlProcessingButton/MrlProcessingButton.js');
|
|
5
6
|
var index = require('./utils/trapFocus/index.js');
|
|
6
7
|
var MrlPortal = require('./components/portal/MrlPortal.js');
|
|
@@ -33,6 +34,7 @@ var MrlEmptyLarge = require('./components/empty/large/MrlEmptyLarge.js');
|
|
|
33
34
|
var MrlErrorBoundary = require('./components/error-boundary/MrlErrorBoundary.js');
|
|
34
35
|
var MrlErrorPage = require('./components/layout/error-page/MrlErrorPage/MrlErrorPage.js');
|
|
35
36
|
var MrlFieldset = require('./components/form/fieldset/MrlFieldset/MrlFieldset.js');
|
|
37
|
+
var MrlFileUpload = require('./components/file-upload/MrlFileUpload/MrlFileUpload.js');
|
|
36
38
|
var MrlFilter = require('./components/filter/MrlFilter/MrlFilter.js');
|
|
37
39
|
var MrlFilterContext = require('./components/filter/MrlFilterContext/MrlFilterContext.js');
|
|
38
40
|
var MrlFilterItem = require('./components/filter/MrlFilterItem/MrlFilterItem.js');
|
|
@@ -87,7 +89,7 @@ var MrlSidebarNavItem = require('./components/navigation-sidebar/MrlSidebarNavIt
|
|
|
87
89
|
var MrlSkeleton = require('./components/skeleton/MrlSkeleton/MrlSkeleton.js');
|
|
88
90
|
var MrlSkeletonText = require('./components/skeleton/MrlSkeletonText/MrlSkeletonText.js');
|
|
89
91
|
var MrlSmartTable = require('./components/table/MrlSmartTable/MrlSmartTable.js');
|
|
90
|
-
var constants = require('./components/table/constants.js');
|
|
92
|
+
var constants$1 = require('./components/table/constants.js');
|
|
91
93
|
var MrlSpinner = require('./components/loader/MrlSpinner/MrlSpinner.js');
|
|
92
94
|
var MrlSvg = require('./components/svg/MrlSvg/MrlSvg.js');
|
|
93
95
|
var MrlSvgAnimate = require('./components/svg/MrlSvgAnimate/MrlSvgAnimate.js');
|
|
@@ -115,12 +117,12 @@ var MrlToolbar = require('./components/toolbar/MrlToolbar/MrlToolbar.js');
|
|
|
115
117
|
var MrlToolbarButton = require('./components/toolbar/MrlToolbarButton/MrlToolbarButton.js');
|
|
116
118
|
var MrlToolbarItem = require('./components/toolbar/MrlToolbarItem/MrlToolbarItem.js');
|
|
117
119
|
var MrlTooltip = require('./components/tooltip/MrlTooltip/MrlTooltip.js');
|
|
118
|
-
var constants$
|
|
120
|
+
var constants$2 = require('./components/tooltip/constants.js');
|
|
119
121
|
var MrlTopbar = require('./components/layout/MrlTopbar/MrlTopbar.js');
|
|
120
122
|
var index$3 = require('./utils/layers/index.js');
|
|
121
|
-
var constants$
|
|
122
|
-
var constants$
|
|
123
|
-
var constants$
|
|
123
|
+
var constants$3 = require('./components/modal/constants.js');
|
|
124
|
+
var constants$4 = require('./components/svg/constants.js');
|
|
125
|
+
var constants$5 = require('./components/form/constants.js');
|
|
124
126
|
var closeMenuOnScroll = require('./components/form/select/utils/closeMenuOnScroll.js');
|
|
125
127
|
var findAdjacentInteractiveElement = require('./utils/findAdjacentInteractiveElement/findAdjacentInteractiveElement.js');
|
|
126
128
|
var flipPosition = require('./components/menu/utilities/flip-position.js');
|
|
@@ -139,7 +141,7 @@ var index$6 = require('./utils/isImageUri/index.js');
|
|
|
139
141
|
var isObject = require('./utils/isObject/isObject.js');
|
|
140
142
|
var index$7 = require('./utils/noop/index.js');
|
|
141
143
|
var preventDefault = require('./utils/preventDefault/preventDefault.js');
|
|
142
|
-
var constants$
|
|
144
|
+
var constants$6 = require('./components/loader/constants.js');
|
|
143
145
|
var index$8 = require('./hooks/useBreakpoint/index.js');
|
|
144
146
|
var index$9 = require('./hooks/useCoordinate/index.js');
|
|
145
147
|
var index$a = require('./hooks/useElementDimensions/index.js');
|
|
@@ -152,6 +154,9 @@ var index$c = require('./hooks/useScrollbarInfo/index.js');
|
|
|
152
154
|
exports.CREATABLE_SELECT_CLASS_NAME_PREFIX = MrlCreatableSelect.CREATABLE_SELECT_CLASS_NAME_PREFIX;
|
|
153
155
|
exports.CREATABLE_SELECT_MENU_LIST_CLASS_NAME = MrlCreatableSelect.CREATABLE_SELECT_MENU_LIST_CLASS_NAME;
|
|
154
156
|
exports.MrlCreatableSelect = MrlCreatableSelect.MrlCreatableSelect;
|
|
157
|
+
exports.DEFAULT_ERROR_MESSAGE = constants.DEFAULT_ERROR_MESSAGE;
|
|
158
|
+
exports.allowedFileUploadValues = constants.allowedFileUploadValues;
|
|
159
|
+
exports.fileUploadDefaults = constants.fileUploadDefaults;
|
|
155
160
|
exports.DEFAULT_FEEDBACK_TIME = MrlProcessingButton.DEFAULT_FEEDBACK_TIME;
|
|
156
161
|
exports.DEFAULT_RESET_TIME = MrlProcessingButton.DEFAULT_RESET_TIME;
|
|
157
162
|
exports.MrlProcessingButton = MrlProcessingButton.MrlProcessingButton;
|
|
@@ -197,6 +202,7 @@ exports.MrlEmptyLarge = MrlEmptyLarge.MrlEmptyLarge;
|
|
|
197
202
|
exports.MrlErrorBoundary = MrlErrorBoundary.MrlErrorBoundary;
|
|
198
203
|
exports.MrlErrorPage = MrlErrorPage.MrlErrorPage;
|
|
199
204
|
exports.MrlFieldset = MrlFieldset.MrlFieldset;
|
|
205
|
+
exports.MrlFileUpload = MrlFileUpload.MrlFileUpload;
|
|
200
206
|
exports.MrlFilter = MrlFilter.MrlFilter;
|
|
201
207
|
exports.MrlFilterContextProvider = MrlFilterContext.MrlFilterContextProvider;
|
|
202
208
|
exports.useMrlFilterContext = MrlFilterContext.useMrlFilterContext;
|
|
@@ -255,7 +261,7 @@ exports.MrlSidebarNavItem = MrlSidebarNavItem.MrlSidebarNavItem;
|
|
|
255
261
|
exports.MrlSkeleton = MrlSkeleton.MrlSkeleton;
|
|
256
262
|
exports.MrlSkeletonText = MrlSkeletonText.MrlSkeletonText;
|
|
257
263
|
exports.MrlSmartTable = MrlSmartTable.MrlSmartTable;
|
|
258
|
-
exports.MrlSortDirection = constants.MrlSortDirection;
|
|
264
|
+
exports.MrlSortDirection = constants$1.MrlSortDirection;
|
|
259
265
|
exports.MrlSpinner = MrlSpinner.MrlSpinner;
|
|
260
266
|
exports.MrlSvg = MrlSvg.MrlSvg;
|
|
261
267
|
exports.MrlSvgAnimate = MrlSvgAnimate.MrlSvgAnimate;
|
|
@@ -284,31 +290,31 @@ exports.MrlToolbar = MrlToolbar.MrlToolbar;
|
|
|
284
290
|
exports.MrlToolbarButton = MrlToolbarButton.MrlToolbarButton;
|
|
285
291
|
exports.MrlToolbarItem = MrlToolbarItem.MrlToolbarItem;
|
|
286
292
|
exports.MrlTooltip = MrlTooltip.MrlTooltip;
|
|
287
|
-
exports.MrlTooltipDefaults = constants$
|
|
288
|
-
exports.allowedMrlTooltipValues = constants$
|
|
293
|
+
exports.MrlTooltipDefaults = constants$2.MrlTooltipDefaults;
|
|
294
|
+
exports.allowedMrlTooltipValues = constants$2.allowedMrlTooltipValues;
|
|
289
295
|
exports.MrlTopbar = MrlTopbar.MrlTopbar;
|
|
290
296
|
exports.PORTAL_LAYERS = index$3.PORTAL_LAYERS;
|
|
291
297
|
exports.getCurrentPortalLayer = index$3.getCurrentPortalLayer;
|
|
292
|
-
exports.TransitionDuration = constants$
|
|
293
|
-
exports.allowedValues = constants$
|
|
294
|
-
exports.defaults = constants$
|
|
295
|
-
exports.allowedAnimatedValues = constants$
|
|
296
|
-
exports.allowedSvgValues = constants$
|
|
297
|
-
exports.animatedDefaults = constants$
|
|
298
|
-
exports.baseLottieConfig = constants$
|
|
299
|
-
exports.svgDefaults = constants$
|
|
300
|
-
exports.allowedCheckboxValues = constants$
|
|
301
|
-
exports.allowedLabelValues = constants$
|
|
302
|
-
exports.allowedSelectItemValues = constants$
|
|
303
|
-
exports.allowedSelectMenuValues = constants$
|
|
304
|
-
exports.allowedSelectValues = constants$
|
|
305
|
-
exports.checkboxDefaults = constants$
|
|
306
|
-
exports.fieldsetDefault = constants$
|
|
307
|
-
exports.labelDefaults = constants$
|
|
308
|
-
exports.selectDefaults = constants$
|
|
309
|
-
exports.selectItemDefaults = constants$
|
|
310
|
-
exports.selectMenuDefaults = constants$
|
|
311
|
-
exports.textareaDefaults = constants$
|
|
298
|
+
exports.TransitionDuration = constants$3.TransitionDuration;
|
|
299
|
+
exports.allowedValues = constants$3.allowedValues;
|
|
300
|
+
exports.defaults = constants$3.defaults;
|
|
301
|
+
exports.allowedAnimatedValues = constants$4.allowedAnimatedValues;
|
|
302
|
+
exports.allowedSvgValues = constants$4.allowedSvgValues;
|
|
303
|
+
exports.animatedDefaults = constants$4.animatedDefaults;
|
|
304
|
+
exports.baseLottieConfig = constants$4.baseLottieConfig;
|
|
305
|
+
exports.svgDefaults = constants$4.svgDefaults;
|
|
306
|
+
exports.allowedCheckboxValues = constants$5.allowedCheckboxValues;
|
|
307
|
+
exports.allowedLabelValues = constants$5.allowedLabelValues;
|
|
308
|
+
exports.allowedSelectItemValues = constants$5.allowedSelectItemValues;
|
|
309
|
+
exports.allowedSelectMenuValues = constants$5.allowedSelectMenuValues;
|
|
310
|
+
exports.allowedSelectValues = constants$5.allowedSelectValues;
|
|
311
|
+
exports.checkboxDefaults = constants$5.checkboxDefaults;
|
|
312
|
+
exports.fieldsetDefault = constants$5.fieldsetDefault;
|
|
313
|
+
exports.labelDefaults = constants$5.labelDefaults;
|
|
314
|
+
exports.selectDefaults = constants$5.selectDefaults;
|
|
315
|
+
exports.selectItemDefaults = constants$5.selectItemDefaults;
|
|
316
|
+
exports.selectMenuDefaults = constants$5.selectMenuDefaults;
|
|
317
|
+
exports.textareaDefaults = constants$5.textareaDefaults;
|
|
312
318
|
exports.closeMenuOnScroll = closeMenuOnScroll.closeMenuOnScroll;
|
|
313
319
|
exports.findAdjacentInteractiveElement = findAdjacentInteractiveElement.findAdjacentInteractiveElement;
|
|
314
320
|
exports.flipPosition = flipPosition.flipPosition;
|
|
@@ -329,8 +335,8 @@ exports.isImageUri = index$6.isImageUri;
|
|
|
329
335
|
exports.isObject = isObject.isObject;
|
|
330
336
|
exports.noop = index$7.noop;
|
|
331
337
|
exports.preventDefault = preventDefault.preventDefault;
|
|
332
|
-
exports.progressBarDefaults = constants$
|
|
333
|
-
exports.spinnerDefaults = constants$
|
|
338
|
+
exports.progressBarDefaults = constants$6.progressBarDefaults;
|
|
339
|
+
exports.spinnerDefaults = constants$6.spinnerDefaults;
|
|
334
340
|
exports.useBreakpoint = index$8.useBreakpoint;
|
|
335
341
|
exports.useCoordinate = index$9.useCoordinate;
|
|
336
342
|
exports.useElementDimensions = index$a.useElementDimensions;
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/cjs/version.js
CHANGED
package/dist/cjs/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../../src/version.ts"],"sourcesContent":["export const TOOLKIT_VERSION = \"4.
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../../src/version.ts"],"sourcesContent":["export const TOOLKIT_VERSION = \"4.77.0-dev-yOaq.1\";"],"names":["TOOLKIT_VERSION"],"mappings":";;AAAO,IAAMA,eAAe,GAAG;;;;"}
|