@elliemae/ds-date-range-selector 3.12.0-next.0 → 3.12.0-next.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/CustomOptionRender/CustomOptionRender.js +1 -3
- package/dist/cjs/components/CustomOptionRender/CustomOptionRender.js.map +2 -2
- package/dist/esm/components/CustomOptionRender/CustomOptionRender.js +1 -3
- package/dist/esm/components/CustomOptionRender/CustomOptionRender.js.map +2 -2
- package/package.json +7 -7
|
@@ -30,9 +30,7 @@ module.exports = __toCommonJS(CustomOptionRender_exports);
|
|
|
30
30
|
var React = __toESM(require("react"));
|
|
31
31
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
32
32
|
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
33
|
-
const { cssClassName } = (0, import_ds_classnames.convertPropToCssClassName)(
|
|
34
|
-
"date-range-selector-customoption"
|
|
35
|
-
);
|
|
33
|
+
const { cssClassName } = (0, import_ds_classnames.convertPropToCssClassName)("date-range-selector-customoption");
|
|
36
34
|
const CustomOptionRender = ({ customRange: { startDate, endDate } }) => {
|
|
37
35
|
const start = startDate ? startDate.format("MM/DD/YYYY") : null;
|
|
38
36
|
const end = endDate ? endDate.format("MM/DD/YYYY") : null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/components/CustomOptionRender/CustomOptionRender.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\n\nconst { cssClassName } = convertPropToCssClassName(
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\n\nconst { cssClassName } = convertPropToCssClassName('date-range-selector-customoption');\n/**\n * @param root0\n * @param root0.customRange\n * @param root0.customRange.startDate\n * @param root0.customRange.endDate\n * @customRange {\nendDate\nstartDate\n}\n */\nconst CustomOptionRender = ({ customRange: { startDate, endDate } }) => {\n const start = startDate ? startDate.format('MM/DD/YYYY') : null;\n const end = endDate ? endDate.format('MM/DD/YYYY') : null;\n const display = `From ${start} to ${end}` || 'Custom';\n return <em className={cssClassName}>{display}</em>;\n};\n\nexport default CustomOptionRender;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADkBd;AAjBT,2BAA0C;AAE1C,MAAM,EAAE,aAAa,QAAI,gDAA0B,kCAAkC;AAWrF,MAAM,qBAAqB,CAAC,EAAE,aAAa,EAAE,WAAW,QAAQ,EAAE,MAAM;AACtE,QAAM,QAAQ,YAAY,UAAU,OAAO,YAAY,IAAI;AAC3D,QAAM,MAAM,UAAU,QAAQ,OAAO,YAAY,IAAI;AACrD,QAAM,UAAU,QAAQ,YAAY,SAAS;AAC7C,SAAO,4CAAC;AAAA,IAAG,WAAW;AAAA,IAAe;AAAA,GAAQ;AAC/C;AAEA,IAAO,6BAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { convertPropToCssClassName } from "@elliemae/ds-classnames";
|
|
4
|
-
const { cssClassName } = convertPropToCssClassName(
|
|
5
|
-
"date-range-selector-customoption"
|
|
6
|
-
);
|
|
4
|
+
const { cssClassName } = convertPropToCssClassName("date-range-selector-customoption");
|
|
7
5
|
const CustomOptionRender = ({ customRange: { startDate, endDate } }) => {
|
|
8
6
|
const start = startDate ? startDate.format("MM/DD/YYYY") : null;
|
|
9
7
|
const end = endDate ? endDate.format("MM/DD/YYYY") : null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/components/CustomOptionRender/CustomOptionRender.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\n\nconst { cssClassName } = convertPropToCssClassName(
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\n\nconst { cssClassName } = convertPropToCssClassName('date-range-selector-customoption');\n/**\n * @param root0\n * @param root0.customRange\n * @param root0.customRange.startDate\n * @param root0.customRange.endDate\n * @customRange {\nendDate\nstartDate\n}\n */\nconst CustomOptionRender = ({ customRange: { startDate, endDate } }) => {\n const start = startDate ? startDate.format('MM/DD/YYYY') : null;\n const end = endDate ? endDate.format('MM/DD/YYYY') : null;\n const display = `From ${start} to ${end}` || 'Custom';\n return <em className={cssClassName}>{display}</em>;\n};\n\nexport default CustomOptionRender;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACkBd;AAjBT,SAAS,iCAAiC;AAE1C,MAAM,EAAE,aAAa,IAAI,0BAA0B,kCAAkC;AAWrF,MAAM,qBAAqB,CAAC,EAAE,aAAa,EAAE,WAAW,QAAQ,EAAE,MAAM;AACtE,QAAM,QAAQ,YAAY,UAAU,OAAO,YAAY,IAAI;AAC3D,QAAM,MAAM,UAAU,QAAQ,OAAO,YAAY,IAAI;AACrD,QAAM,UAAU,QAAQ,YAAY,SAAS;AAC7C,SAAO,oBAAC;AAAA,IAAG,WAAW;AAAA,IAAe;AAAA,GAAQ;AAC/C;AAEA,IAAO,6BAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-date-range-selector",
|
|
3
|
-
"version": "3.12.0-next.
|
|
3
|
+
"version": "3.12.0-next.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Date Range Selector",
|
|
6
6
|
"files": [
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
"indent": 4
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@elliemae/ds-classnames": "3.12.0-next.
|
|
55
|
-
"@elliemae/ds-date-picker": "3.12.0-next.
|
|
56
|
-
"@elliemae/ds-form": "3.12.0-next.
|
|
57
|
-
"@elliemae/ds-icons": "3.12.0-next.
|
|
58
|
-
"@elliemae/ds-popper": "3.12.0-next.
|
|
59
|
-
"@elliemae/ds-utilities": "3.12.0-next.
|
|
54
|
+
"@elliemae/ds-classnames": "3.12.0-next.1",
|
|
55
|
+
"@elliemae/ds-date-picker": "3.12.0-next.1",
|
|
56
|
+
"@elliemae/ds-form": "3.12.0-next.1",
|
|
57
|
+
"@elliemae/ds-icons": "3.12.0-next.1",
|
|
58
|
+
"@elliemae/ds-popper": "3.12.0-next.1",
|
|
59
|
+
"@elliemae/ds-utilities": "3.12.0-next.1",
|
|
60
60
|
"moment": "~2.29.3",
|
|
61
61
|
"react-dates": "~21.8.0",
|
|
62
62
|
"react-select": "4.3.1"
|