@terraware/web-components 3.5.6 → 3.5.8
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/AntSwitch/index.d.ts.map +1 -1
- package/components/Autocomplete/Autocomplete.d.ts +2 -2
- package/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/components/Autocomplete/Autocomplete.js +1 -1
- package/components/Badge/index.d.ts.map +1 -1
- package/components/BusySpinner/index.d.ts.map +1 -1
- package/components/Button/Button.d.ts +1 -1
- package/components/Button/Button.d.ts.map +1 -1
- package/components/Button/Button.js +1 -1
- package/components/Button/button.test.js +6 -6
- package/components/Checkbox.d.ts +1 -1
- package/components/Checkbox.d.ts.map +1 -1
- package/components/Checkbox.js +1 -1
- package/components/Confirm/index.d.ts +1 -1
- package/components/Confirm/index.d.ts.map +1 -1
- package/components/Confirm/index.js +1 -1
- package/components/DatePicker/DatePicker.d.ts +1 -1
- package/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/components/DatePicker/DatePicker.js +1 -1
- package/components/DatePicker/styles.scss +3 -4
- package/components/DialogBox/DialogBox.d.ts.map +1 -1
- package/components/DialogBox/DialogBox.js +2 -2
- package/components/Divisor.d.ts.map +1 -1
- package/components/Divisor.js +1 -1
- package/components/Dropdown.d.ts +1 -1
- package/components/Dropdown.d.ts.map +1 -1
- package/components/Dropdown.js +2 -2
- package/components/ErrorBox/ErrorBox.d.ts.map +1 -1
- package/components/ErrorBox/ErrorBox.js +1 -1
- package/components/FileChooser/index.d.ts.map +1 -1
- package/components/FormBottomBar/index.d.ts.map +1 -1
- package/components/FormBottomBar/index.js +1 -1
- package/components/Icon/Icon.d.ts.map +1 -1
- package/components/Icon/icons/index.js +16 -16
- package/components/IconTooltip/index.d.ts.map +1 -1
- package/components/IconTooltip/index.js +1 -1
- package/components/Map/MapBox.d.ts +18 -0
- package/components/Map/MapBox.d.ts.map +1 -0
- package/components/Map/MapBox.js +78 -0
- package/components/Map/MapContainer.d.ts +2 -0
- package/components/Map/MapContainer.d.ts.map +1 -1
- package/components/Map/MapContainer.js +8 -28
- package/components/Map/MapDrawer.d.ts.map +1 -1
- package/components/Map/MapDrawer.js +1 -1
- package/components/Map/MapLegend.d.ts.map +1 -1
- package/components/Map/MapLegend.js +1 -1
- package/components/Map/MapViewStyleControl.d.ts +11 -0
- package/components/Map/MapViewStyleControl.d.ts.map +1 -0
- package/components/Map/MapViewStyleControl.js +74 -0
- package/components/Map/styles.scss +25 -0
- package/components/Message/Message.d.ts.map +1 -1
- package/components/Message/Message.js +2 -2
- package/components/MultiSelect/MultiSelect.test.js +20 -20
- package/components/MultiSelect/index.d.ts +1 -1
- package/components/MultiSelect/index.d.ts.map +1 -1
- package/components/MultiSelect/index.js +2 -2
- package/components/MultiSelect/styles.scss +11 -11
- package/components/Navbar/NavFooter.d.ts.map +1 -1
- package/components/Navbar/NavItem.d.ts +1 -1
- package/components/Navbar/NavItem.d.ts.map +1 -1
- package/components/Navbar/NavItem.js +1 -1
- package/components/Navbar/NavSection.d.ts.map +1 -1
- package/components/Navbar/Navbar.d.ts.map +1 -1
- package/components/Navbar/Navbar.js +3 -3
- package/components/Navbar/SubNavbar.d.ts.map +1 -1
- package/components/Note.d.ts.map +1 -1
- package/components/PageForm/index.d.ts.map +1 -1
- package/components/PageForm/index.js +1 -1
- package/components/PhotoChooser/index.d.ts.map +1 -1
- package/components/PhotoChooser/index.js +1 -1
- package/components/Pill/index.d.ts.map +1 -1
- package/components/Pill/index.js +1 -1
- package/components/PillList/index.d.ts.map +1 -1
- package/components/PopoverMenu/Popover.d.ts +1 -0
- package/components/PopoverMenu/Popover.d.ts.map +1 -1
- package/components/PopoverMenu/Popover.js +3 -1
- package/components/PopoverMenu/index.d.ts +3 -2
- package/components/PopoverMenu/index.d.ts.map +1 -1
- package/components/PopoverMenu/index.js +4 -2
- package/components/PopoverMultiSelect/index.d.ts +1 -1
- package/components/PopoverMultiSelect/index.d.ts.map +1 -1
- package/components/PopoverMultiSelect/index.js +1 -1
- package/components/ProgressCircle/ProgressCircle.d.ts.map +1 -1
- package/components/ProgressCircle/ProgressCircle.js +1 -1
- package/components/RadioButton.d.ts.map +1 -1
- package/components/RadioButton.js +1 -1
- package/components/Select/Select.d.ts +1 -1
- package/components/Select/Select.d.ts.map +1 -1
- package/components/Select/Select.js +1 -1
- package/components/Select/SelectT.d.ts +1 -1
- package/components/Select/SelectT.d.ts.map +1 -1
- package/components/Select/SelectT.js +4 -4
- package/components/Separator/index.d.ts.map +1 -1
- package/components/Slider/index.d.ts.map +1 -1
- package/components/Slider/index.js +1 -1
- package/components/SummaryBox.d.ts.map +1 -1
- package/components/SummaryBox.js +1 -1
- package/components/Tabs/index.d.ts +1 -1
- package/components/Tabs/index.d.ts.map +1 -1
- package/components/Tabs/index.js +1 -1
- package/components/TextTruncated/index.d.ts.map +1 -1
- package/components/TextTruncated/index.js +1 -1
- package/components/Textfield/Textfield.d.ts.map +1 -1
- package/components/Textfield/Textfield.js +4 -4
- package/components/Textfield/TruncatedTextArea.d.ts.map +1 -1
- package/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/components/ViewPhotosDialog/index.d.ts.map +1 -1
- package/components/ViewPhotosDialog/index.js +3 -3
- package/components/table/EnhancedTableToolbar.d.ts.map +1 -1
- package/components/table/EnhancedTableToolbarV2.d.ts +1 -1
- package/components/table/EnhancedTableToolbarV2.d.ts.map +1 -1
- package/components/table/TableCellRenderer.d.ts +2 -2
- package/components/table/TableCellRenderer.d.ts.map +1 -1
- package/components/table/TableCellRenderer.js +1 -1
- package/components/table/TableHeader.d.ts.map +1 -1
- package/components/table/TableHeader.js +3 -3
- package/components/table/TableHeaderItem.d.ts +1 -1
- package/components/table/TableHeaderItem.d.ts.map +1 -1
- package/components/table/index.d.ts +3 -3
- package/components/table/index.d.ts.map +1 -1
- package/components/table/index.js +6 -6
- package/components/table/types.d.ts.map +1 -1
- package/index.d.ts +9 -9
- package/index.d.ts.map +1 -1
- package/index.js +8 -8
- package/license-report.html +1 -1
- package/package.json +3 -1
- package/stories/AntSwitch.stories.d.ts.map +1 -1
- package/stories/Autocomplete.stories.d.ts.map +1 -1
- package/stories/Badge.stories.d.ts.map +1 -1
- package/stories/BusySpinner.stories.d.ts.map +1 -1
- package/stories/Button.stories.d.ts.map +1 -1
- package/stories/Checkbox.stories.d.ts.map +1 -1
- package/stories/Confirm.stories.d.ts.map +1 -1
- package/stories/DatePicker.stories.d.ts.map +1 -1
- package/stories/DialogBox.stories.d.ts.map +1 -1
- package/stories/Divisor.stories.d.ts.map +1 -1
- package/stories/Dropdown.stories.d.ts +1 -1
- package/stories/Dropdown.stories.d.ts.map +1 -1
- package/stories/ErrorBox.stories.d.ts.map +1 -1
- package/stories/FileChooser.stories.d.ts.map +1 -1
- package/stories/Icon.stories.d.ts.map +1 -1
- package/stories/IconTooltip.stories.d.ts.map +1 -1
- package/stories/IntersectionObserver.stories.d.ts.map +1 -1
- package/stories/MapBox.stories.d.ts +9 -0
- package/stories/MapBox.stories.d.ts.map +1 -0
- package/stories/MapDrawer.stories.d.ts.map +1 -1
- package/stories/MapLegend.stories.d.ts.map +1 -1
- package/stories/Message.stories.d.ts.map +1 -1
- package/stories/MultiSelect.stories.d.ts.map +1 -1
- package/stories/NavItem.stories.d.ts.map +1 -1
- package/stories/Navbar.stories.d.ts.map +1 -1
- package/stories/Note.stories.d.ts.map +1 -1
- package/stories/PageForm.stories.d.ts.map +1 -1
- package/stories/PhotoChooser.stories.d.ts.map +1 -1
- package/stories/PillList.stories.d.ts.map +1 -1
- package/stories/PlacementWrapper.stories.d.ts.map +1 -1
- package/stories/PopoverMenu.stories.d.ts.map +1 -1
- package/stories/PopoverMultiSelect.stories.d.ts.map +1 -1
- package/stories/ProgressCircle.stories.d.ts.map +1 -1
- package/stories/RadioButton.stories.d.ts.map +1 -1
- package/stories/Select.stories.d.ts.map +1 -1
- package/stories/Separator.stories.d.ts.map +1 -1
- package/stories/Slider.stories.d.ts.map +1 -1
- package/stories/SummaryBox.stories.d.ts.map +1 -1
- package/stories/Table.stories.d.ts.map +1 -1
- package/stories/Tabs.stories.d.ts.map +1 -1
- package/stories/TextTruncated.stories.d.ts.map +1 -1
- package/stories/TextfieldNew.stories.d.ts.map +1 -1
- package/stories/Theme.stories.d.ts.map +1 -1
- package/stories/Tooltip.stories.d.ts.map +1 -1
- package/stories/ViewPhotosDialog.stories.d.ts.map +1 -1
- package/theme.d.ts.map +1 -1
- package/theme.js +1 -1
- package/utils/date.d.ts.map +1 -1
- package/utils/date.js +1 -1
- package/utils/index.d.ts +1 -1
- package/utils/index.d.ts.map +1 -1
- package/utils/index.js +1 -1
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _react =
|
|
9
|
-
var _material = require("@mui/material");
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
9
|
var _utils = require("../../utils");
|
|
10
|
+
require("./styles.scss");
|
|
11
11
|
const MapContainer = props => {
|
|
12
12
|
const {
|
|
13
|
+
containerId,
|
|
13
14
|
drawer,
|
|
14
15
|
drawerOpen,
|
|
15
16
|
legend,
|
|
@@ -18,30 +19,9 @@ const MapContainer = props => {
|
|
|
18
19
|
const {
|
|
19
20
|
isDesktop
|
|
20
21
|
} = (0, _utils.useDeviceInfo)();
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
return "1px solid ".concat(theme.palette.TwClrBrdrTertiary);
|
|
27
|
-
}, [drawerOpen, isDesktop, theme]);
|
|
28
|
-
const borderRadius = (0, _react.useMemo)(() => {
|
|
29
|
-
if (!isDesktop && drawerOpen) {
|
|
30
|
-
return undefined;
|
|
31
|
-
}
|
|
32
|
-
return '8px';
|
|
33
|
-
}, [drawerOpen, isDesktop]);
|
|
34
|
-
return /*#__PURE__*/_react.default.createElement(_material.Box, {
|
|
35
|
-
sx: {
|
|
36
|
-
marginTop: '30px'
|
|
37
|
-
}
|
|
38
|
-
}, /*#__PURE__*/_react.default.createElement(_material.Box, {
|
|
39
|
-
border: border,
|
|
40
|
-
borderRadius: borderRadius,
|
|
41
|
-
display: 'flex',
|
|
42
|
-
flexDirection: isDesktop ? 'row' : 'column',
|
|
43
|
-
maxHeight: isDesktop ? '700px' : undefined,
|
|
44
|
-
overflow: 'hidden'
|
|
45
|
-
}, (isDesktop || !drawerOpen) && map, drawerOpen && drawer, (isDesktop || !drawerOpen) && legend));
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
23
|
+
id: containerId,
|
|
24
|
+
className: "map-container map-container".concat(isDesktop ? '--desktop' : "--mobile".concat(drawerOpen ? '-drawer-open' : ''))
|
|
25
|
+
}, (isDesktop || !drawerOpen) && map, drawerOpen && drawer, (isDesktop || !drawerOpen) && legend);
|
|
46
26
|
};
|
|
47
27
|
var _default = exports.default = MapContainer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapDrawer.d.ts","sourceRoot":"","sources":["../../../src/components/Map/MapDrawer.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MapDrawer.d.ts","sourceRoot":"","sources":["../../../src/components/Map/MapDrawer.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMxD,OAAO,eAAe,CAAC;AAEvB,KAAK,aAAa,GAAG,OAAO,GAAG,QAAQ,CAAC;AAExC,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,QAAA,MAAM,SAAS,UAAW,aAAa,mDAqBtC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -7,9 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _material = require("@mui/material");
|
|
10
|
+
var _utils = require("../../utils");
|
|
10
11
|
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
|
11
12
|
require("./styles.scss");
|
|
12
|
-
var _utils = require("../../utils");
|
|
13
13
|
const MapDrawer = props => {
|
|
14
14
|
const {
|
|
15
15
|
children,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapLegend.d.ts","sourceRoot":"","sources":["../../../src/components/Map/MapLegend.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"MapLegend.d.ts","sourceRoot":"","sources":["../../../src/components/Map/MapLegend.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE;QACL,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,QAAQ,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE;QACL,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,CAAC,eAAe,GAAG,aAAa,GAAG,iBAAiB,CAAC,CAAC;AAE1D,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,SAAS,gBAAiB,cAAc,KAAG,WA4LhD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -8,8 +8,8 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _material = require("@mui/material");
|
|
10
10
|
var _utils = require("../../utils");
|
|
11
|
-
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
|
12
11
|
var _AntSwitch = _interopRequireDefault(require("../AntSwitch"));
|
|
12
|
+
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
|
13
13
|
const MapLegend = _ref => {
|
|
14
14
|
let {
|
|
15
15
|
legends
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MapViewStyle } from './MapBox';
|
|
3
|
+
type MapViewStyleControlProps = {
|
|
4
|
+
containerId?: string;
|
|
5
|
+
mapViewStyle: MapViewStyle;
|
|
6
|
+
mapViewStyleNames?: (style: MapViewStyle) => string;
|
|
7
|
+
setMapViewStyle: (style: MapViewStyle) => void;
|
|
8
|
+
};
|
|
9
|
+
declare const MapViewStyleControl: ({ containerId, mapViewStyle, mapViewStyleNames, setMapViewStyle, }: MapViewStyleControlProps) => JSX.Element | undefined;
|
|
10
|
+
export default MapViewStyleControl;
|
|
11
|
+
//# sourceMappingURL=MapViewStyleControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapViewStyleControl.d.ts","sourceRoot":"","sources":["../../../src/components/Map/MapViewStyleControl.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,YAAY,EAAiB,MAAM,UAAU,CAAC;AAEvD,KAAK,wBAAwB,GAAG;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,YAAY,CAAC;IAC3B,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,MAAM,CAAC;IACpD,eAAe,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,QAAA,MAAM,mBAAmB,uEAKtB,wBAAwB,KAAG,WAAW,GAAG,SA8D3C,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _material = require("@mui/material");
|
|
11
|
+
var _PopoverMenu = _interopRequireDefault(require("../PopoverMenu"));
|
|
12
|
+
var _MapBox = require("./MapBox");
|
|
13
|
+
const MapViewStyleControl = _ref => {
|
|
14
|
+
var _mapViewStyleNames2;
|
|
15
|
+
let {
|
|
16
|
+
containerId,
|
|
17
|
+
mapViewStyle,
|
|
18
|
+
mapViewStyleNames,
|
|
19
|
+
setMapViewStyle
|
|
20
|
+
} = _ref;
|
|
21
|
+
const theme = (0, _material.useTheme)();
|
|
22
|
+
const viewOptions = (0, _react.useMemo)(() => {
|
|
23
|
+
return _MapBox.MapViewStyles.map(style => {
|
|
24
|
+
var _mapViewStyleNames;
|
|
25
|
+
return {
|
|
26
|
+
label: (_mapViewStyleNames = mapViewStyleNames === null || mapViewStyleNames === void 0 ? void 0 : mapViewStyleNames(style)) !== null && _mapViewStyleNames !== void 0 ? _mapViewStyleNames : style,
|
|
27
|
+
value: style
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
}, [mapViewStyleNames]);
|
|
31
|
+
const onSelectMapViewStyle = (0, _react.useCallback)(item => {
|
|
32
|
+
setMapViewStyle(item.value);
|
|
33
|
+
}, []);
|
|
34
|
+
const container = (0, _react.useMemo)(() => {
|
|
35
|
+
if (containerId) {
|
|
36
|
+
return document.getElementById(containerId);
|
|
37
|
+
}
|
|
38
|
+
}, [containerId]);
|
|
39
|
+
return /*#__PURE__*/_react.default.createElement(_material.Box, {
|
|
40
|
+
sx: {
|
|
41
|
+
position: 'absolute',
|
|
42
|
+
top: '10px',
|
|
43
|
+
left: '45px',
|
|
44
|
+
zIndex: 10,
|
|
45
|
+
height: 28,
|
|
46
|
+
backgroundColor: "".concat(theme.palette.TwClrBaseWhite),
|
|
47
|
+
borderRadius: '4px',
|
|
48
|
+
display: 'flex',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
'& .MuiButtonBase-root': {
|
|
51
|
+
padding: 0
|
|
52
|
+
},
|
|
53
|
+
'& .MuiButtonBase-root.MuiMenuItem-root': {
|
|
54
|
+
fontSize: '12px'
|
|
55
|
+
},
|
|
56
|
+
'& svg': {
|
|
57
|
+
marginLeft: 0
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}, /*#__PURE__*/_react.default.createElement(_PopoverMenu.default, {
|
|
61
|
+
anchor: /*#__PURE__*/_react.default.createElement(_material.Box, {
|
|
62
|
+
component: "span",
|
|
63
|
+
sx: {
|
|
64
|
+
fontSize: '12px',
|
|
65
|
+
paddingLeft: theme.spacing(0.5),
|
|
66
|
+
color: theme.palette.TwClrTxt
|
|
67
|
+
}
|
|
68
|
+
}, (_mapViewStyleNames2 = mapViewStyleNames === null || mapViewStyleNames === void 0 ? void 0 : mapViewStyleNames(mapViewStyle)) !== null && _mapViewStyleNames2 !== void 0 ? _mapViewStyleNames2 : mapViewStyle),
|
|
69
|
+
container: container,
|
|
70
|
+
menuSections: [viewOptions],
|
|
71
|
+
onClick: onSelectMapViewStyle
|
|
72
|
+
}));
|
|
73
|
+
};
|
|
74
|
+
var _default = exports.default = MapViewStyleControl;
|
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
@import '../../style-dictionary-dist/terraware.scss';
|
|
2
2
|
|
|
3
|
+
.map-container {
|
|
4
|
+
border: 1px solid $tw-clr-brdr-tertiary;
|
|
5
|
+
border-radius: 8px;
|
|
6
|
+
display: flex;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
|
|
9
|
+
&--desktop {
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
max-height: 700px;
|
|
12
|
+
|
|
13
|
+
:fullscreen {
|
|
14
|
+
max-height: none;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&--mobile {
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&--mobile-drawer-open {
|
|
23
|
+
border: none;
|
|
24
|
+
border-radius: none;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
3
28
|
.map-drawer {
|
|
4
29
|
display: flex;
|
|
5
30
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/components/Message/Message.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/components/Message/Message.tsx"],"names":[],"mappings":";AAIA,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,QAAQ,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;IACtD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC1B,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAkDhE"}
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = Message;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
require("./styles.scss");
|
|
10
|
-
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
|
11
9
|
var _utils = require("../../utils");
|
|
10
|
+
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
|
11
|
+
require("./styles.scss");
|
|
12
12
|
function Message(props) {
|
|
13
13
|
const {
|
|
14
14
|
type,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _react = require("
|
|
5
|
-
var _react2 =
|
|
4
|
+
var _react = _interopRequireDefault(require("react"));
|
|
5
|
+
var _react2 = require("@testing-library/react");
|
|
6
6
|
var _ = _interopRequireDefault(require("."));
|
|
7
7
|
test('show options when placeholder is clicked', () => {
|
|
8
|
-
(0,
|
|
8
|
+
(0, _react2.render)( /*#__PURE__*/_react.default.createElement(_.default, {
|
|
9
9
|
onAdd: () => undefined,
|
|
10
10
|
onRemove: () => undefined,
|
|
11
11
|
options: new Map([[1, 'foo'], [2, 'bar'], [3, 'baz']]),
|
|
@@ -15,25 +15,25 @@ test('show options when placeholder is clicked', () => {
|
|
|
15
15
|
}));
|
|
16
16
|
|
|
17
17
|
// we should find the placeholder text
|
|
18
|
-
const placeHolder =
|
|
18
|
+
const placeHolder = _react2.screen.getByText('Select...');
|
|
19
19
|
expect(placeHolder).toBeInTheDocument();
|
|
20
20
|
|
|
21
21
|
// we should not find the options yet
|
|
22
|
-
expect(
|
|
23
|
-
expect(
|
|
24
|
-
expect(
|
|
22
|
+
expect(_react2.screen.queryByText('foo')).not.toBeInTheDocument();
|
|
23
|
+
expect(_react2.screen.queryByText('bar')).not.toBeInTheDocument();
|
|
24
|
+
expect(_react2.screen.queryByText('baz')).not.toBeInTheDocument();
|
|
25
25
|
|
|
26
26
|
// click the placeholder
|
|
27
|
-
|
|
27
|
+
_react2.fireEvent.click(placeHolder);
|
|
28
28
|
|
|
29
29
|
// now the options should be visible
|
|
30
|
-
expect(
|
|
31
|
-
expect(
|
|
32
|
-
expect(
|
|
30
|
+
expect(_react2.screen.queryByText('foo')).toBeInTheDocument();
|
|
31
|
+
expect(_react2.screen.queryByText('bar')).toBeInTheDocument();
|
|
32
|
+
expect(_react2.screen.queryByText('baz')).toBeInTheDocument();
|
|
33
33
|
});
|
|
34
34
|
test('clicking an option calls the onAdd handler', () => {
|
|
35
35
|
const handleAdd = jest.fn();
|
|
36
|
-
(0,
|
|
36
|
+
(0, _react2.render)( /*#__PURE__*/_react.default.createElement(_.default, {
|
|
37
37
|
onAdd: handleAdd,
|
|
38
38
|
onRemove: () => undefined,
|
|
39
39
|
options: new Map([[1, 'foo'], [2, 'bar'], [3, 'baz']]),
|
|
@@ -43,19 +43,19 @@ test('clicking an option calls the onAdd handler', () => {
|
|
|
43
43
|
}));
|
|
44
44
|
|
|
45
45
|
// click the dropdown chevron
|
|
46
|
-
const dropdown =
|
|
47
|
-
|
|
46
|
+
const dropdown = _react2.screen.getByLabelText('show-options');
|
|
47
|
+
_react2.fireEvent.click(dropdown);
|
|
48
48
|
|
|
49
49
|
// click one of the options
|
|
50
|
-
const option =
|
|
51
|
-
|
|
50
|
+
const option = _react2.screen.getByText('bar');
|
|
51
|
+
_react2.fireEvent.click(option);
|
|
52
52
|
|
|
53
53
|
// addHandler should have been called with id 2
|
|
54
54
|
expect(handleAdd).toBeCalledWith(2);
|
|
55
55
|
});
|
|
56
56
|
test('clicking the pill remove button calls the onRemove handler', () => {
|
|
57
57
|
const handleRemove = jest.fn();
|
|
58
|
-
(0,
|
|
58
|
+
(0, _react2.render)( /*#__PURE__*/_react.default.createElement(_.default, {
|
|
59
59
|
onAdd: () => undefined,
|
|
60
60
|
onRemove: handleRemove,
|
|
61
61
|
options: new Map([[1, 'foo']]),
|
|
@@ -64,11 +64,11 @@ test('clicking the pill remove button calls the onRemove handler', () => {
|
|
|
64
64
|
}));
|
|
65
65
|
|
|
66
66
|
// find a pill with the 'foo' text
|
|
67
|
-
expect(
|
|
67
|
+
expect(_react2.screen.queryByText('foo')).toBeInTheDocument();
|
|
68
68
|
|
|
69
69
|
// click the remove button
|
|
70
|
-
const removeButton =
|
|
71
|
-
|
|
70
|
+
const removeButton = _react2.screen.getByLabelText('remove');
|
|
71
|
+
_react2.fireEvent.click(removeButton);
|
|
72
72
|
|
|
73
73
|
// handleRemove should have been called with id 1
|
|
74
74
|
expect(handleRemove).toBeCalledWith(1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAO,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAK3D,OAAO,eAAe,CAAC;AAEvB,MAAM,MAAM,gBAAgB,CAAC,CAAC,EAAE,CAAC,IAAI;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAChC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC5B,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,CAAC,EAAE,CAAC;IACrB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,YAAY,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACrC,aAAa,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC;CACrC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,CAgIpF"}
|
|
@@ -7,11 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = MultiSelect;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
require("./styles.scss");
|
|
11
|
-
var _IconTooltip = _interopRequireDefault(require("../IconTooltip"));
|
|
12
10
|
var _material = require("@mui/material");
|
|
13
11
|
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
|
12
|
+
var _IconTooltip = _interopRequireDefault(require("../IconTooltip"));
|
|
14
13
|
var _PillList = _interopRequireDefault(require("../PillList"));
|
|
14
|
+
require("./styles.scss");
|
|
15
15
|
function MultiSelect(props) {
|
|
16
16
|
const {
|
|
17
17
|
className,
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
display: flex;
|
|
38
38
|
width: 100%;
|
|
39
39
|
margin-top: $tw-spc-base-xx-small;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
40
|
+
|
|
41
|
+
&-text {
|
|
42
|
+
font-family: $tw-fnt-frm-fld-error-text-font-family;
|
|
43
|
+
font-size: $tw-fnt-frm-fld-error-text-font-size;
|
|
44
|
+
font-weight: $tw-fnt-frm-fld-error-text-font-weight;
|
|
45
|
+
line-height: $tw-fnt-frm-fld-error-text-line-height;
|
|
46
|
+
color: $tw-clr-txt-danger;
|
|
47
|
+
display: block;
|
|
48
|
+
width: 100%;
|
|
49
|
+
max-width: 100%;
|
|
50
|
+
}
|
|
51
51
|
|
|
52
52
|
&-icon {
|
|
53
53
|
fill: $tw-clr-icn-danger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavFooter.d.ts","sourceRoot":"","sources":["../../../src/components/Navbar/NavFooter.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NavFooter.d.ts","sourceRoot":"","sources":["../../../src/components/Navbar/NavFooter.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,KAAK;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAI3D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
2
|
import { IconName } from '../Icon/icons';
|
|
3
|
-
import './styles.scss';
|
|
4
3
|
import { SubNavbarProps } from './SubNavbar';
|
|
4
|
+
import './styles.scss';
|
|
5
5
|
export interface NavItemProps {
|
|
6
6
|
label: string | React.ReactNode;
|
|
7
7
|
icon?: IconName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../src/components/Navbar/NavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAe,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../src/components/Navbar/NavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAe,MAAM,OAAO,CAAC;AAIzD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,GAAG,SAAS,KAAK,IAAI,CAAC;IAC9C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO,CAoEhE"}
|
|
@@ -7,9 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = NavItem;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _theme = _interopRequireDefault(require("../../theme"));
|
|
10
11
|
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
|
11
12
|
require("./styles.scss");
|
|
12
|
-
var _theme = _interopRequireDefault(require("../../theme"));
|
|
13
13
|
function NavItem(props) {
|
|
14
14
|
const {
|
|
15
15
|
label,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavSection.d.ts","sourceRoot":"","sources":["../../../src/components/Navbar/NavSection.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"NavSection.d.ts","sourceRoot":"","sources":["../../../src/components/Navbar/NavSection.tsx"],"names":[],"mappings":";AAEA,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAS5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navbar.d.ts","sourceRoot":"","sources":["../../../src/components/Navbar/Navbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Navbar.d.ts","sourceRoot":"","sources":["../../../src/components/Navbar/Navbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMzC,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,KAAK;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7D,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAgCxD"}
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = Navbar;
|
|
8
|
-
var _material = require("@mui/material");
|
|
9
8
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
require("
|
|
11
|
-
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
|
9
|
+
var _material = require("@mui/material");
|
|
12
10
|
var _utils = require("../../utils");
|
|
11
|
+
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
|
12
|
+
require("./styles.scss");
|
|
13
13
|
function Navbar(props) {
|
|
14
14
|
const {
|
|
15
15
|
children,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubNavbar.d.ts","sourceRoot":"","sources":["../../../src/components/Navbar/SubNavbar.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SubNavbar.d.ts","sourceRoot":"","sources":["../../../src/components/Navbar/SubNavbar.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,YAAY,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC,YAAY,CAAC,EAAE,CAAC;CACrE;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,cAAc,GAAG,GAAG,CAAC,OAAO,CAIpE"}
|
package/components/Note.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Note.d.ts","sourceRoot":"","sources":["../../src/components/Note.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Note.d.ts","sourceRoot":"","sources":["../../src/components/Note.tsx"],"names":[],"mappings":";AAIA,MAAM,WAAW,KAAK;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAe7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PageForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAY,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PageForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAY,MAAM,OAAO,CAAC;AAMvD,OAAsB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE7D,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sBAAsB,CAAC,EAAE,UAAU,EAAE,CAAC;IACtC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,GAAG,CAAC,OAAO,CA2BlE"}
|
|
@@ -9,8 +9,8 @@ exports.default = PageForm;
|
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _material = require("@mui/material");
|
|
11
11
|
var _useDeviceInfo = _interopRequireDefault(require("../../utils/useDeviceInfo"));
|
|
12
|
-
var _FormBottomBar = _interopRequireDefault(require("../FormBottomBar"));
|
|
13
12
|
var _BusySpinner = _interopRequireDefault(require("../BusySpinner"));
|
|
13
|
+
var _FormBottomBar = _interopRequireDefault(require("../FormBottomBar"));
|
|
14
14
|
function PageForm(props) {
|
|
15
15
|
const {
|
|
16
16
|
children,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PhotoChooser/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PhotoChooser/index.tsx"],"names":[],"mappings":";AASA,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAChC,eAAe,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IAC1C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAwI1E"}
|
|
@@ -9,8 +9,8 @@ exports.default = PhotoChooser;
|
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _material = require("@mui/material");
|
|
11
11
|
var _utils = require("../../utils");
|
|
12
|
-
var _ErrorBox = _interopRequireDefault(require("../ErrorBox/ErrorBox"));
|
|
13
12
|
var _Button = _interopRequireDefault(require("../Button/Button"));
|
|
13
|
+
var _ErrorBox = _interopRequireDefault(require("../ErrorBox/ErrorBox"));
|
|
14
14
|
var _FileChooser = _interopRequireDefault(require("../FileChooser"));
|
|
15
15
|
function PhotoChooser(props) {
|
|
16
16
|
const {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Pill/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Pill/index.tsx"],"names":[],"mappings":";AAKA,OAAO,eAAe,CAAC;AAEvB,KAAK,SAAS,CAAC,MAAM,IAAI;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,OAAO,CA+B1E"}
|
package/components/Pill/index.js
CHANGED
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = Pill;
|
|
8
|
-
var _material = require("@mui/material");
|
|
9
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _material = require("@mui/material");
|
|
10
10
|
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
|
11
11
|
require("./styles.scss");
|
|
12
12
|
function Pill(props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PillList/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PillList/index.tsx"],"names":[],"mappings":";AAGA,OAAO,eAAe,CAAC;AAEvB,MAAM,MAAM,YAAY,CAAC,MAAM,IAAI;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,MAAM,IAAI;IAClC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,OAAO,CAkBlF"}
|
|
@@ -10,6 +10,7 @@ export type PopoverProps = {
|
|
|
10
10
|
menuAlign?: 'left' | 'center' | 'right';
|
|
11
11
|
selectedValue?: any;
|
|
12
12
|
onClose?: () => void;
|
|
13
|
+
container?: HTMLElement | null;
|
|
13
14
|
};
|
|
14
15
|
export default function PopoverDropdown(props: PopoverProps): JSX.Element;
|
|
15
16
|
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/PopoverMenu/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/PopoverMenu/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,MAAM,OAAO,GAAG,YAAY,EAAE,CAAC;AAErC,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,WAAW,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IAC1C,aAAa,EAAE,WAAW,GAAG,IAAI,CAAC;IAClC,gBAAgB,EAAE,CAAC,QAAQ,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IACzD,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,KAAK,CAAC,SAAS,CAAC;IACvD,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACxC,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CAChC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO,CA4FxE"}
|
|
@@ -16,7 +16,8 @@ function PopoverDropdown(props) {
|
|
|
16
16
|
itemRenderer,
|
|
17
17
|
menuAlign,
|
|
18
18
|
selectedValue,
|
|
19
|
-
onClose
|
|
19
|
+
onClose,
|
|
20
|
+
container
|
|
20
21
|
} = props;
|
|
21
22
|
const theme = (0, _material.useTheme)();
|
|
22
23
|
const handleClose = () => {
|
|
@@ -42,6 +43,7 @@ function PopoverDropdown(props) {
|
|
|
42
43
|
});
|
|
43
44
|
return /*#__PURE__*/_react.default.createElement(_material.Popover, {
|
|
44
45
|
id: "simple-popover",
|
|
46
|
+
container: container,
|
|
45
47
|
open: Boolean(anchorElement),
|
|
46
48
|
anchorEl: anchorElement,
|
|
47
49
|
onClose: handleClose,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Section } from './Popover';
|
|
3
2
|
import { DropdownItem } from '../types';
|
|
3
|
+
import { Section } from './Popover';
|
|
4
4
|
export type PopoverMenuProps = {
|
|
5
5
|
anchor: React.ReactNode;
|
|
6
|
+
container?: HTMLElement | null;
|
|
6
7
|
menuSections: Section[];
|
|
7
8
|
onClick?: (selected: DropdownItem) => void;
|
|
8
9
|
showChevron?: boolean;
|
|
9
10
|
selectedValue?: any;
|
|
10
11
|
};
|
|
11
|
-
export default function PopoverMenu({ anchor, menuSections, onClick, showChevron, selectedValue }: PopoverMenuProps): JSX.Element;
|
|
12
|
+
export default function PopoverMenu({ anchor, container, menuSections, onClick, showChevron, selectedValue, }: PopoverMenuProps): JSX.Element;
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PopoverMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PopoverMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAgB,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAE7C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC/B,YAAY,EAAE,OAAO,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,GAAG,CAAC;CACrB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,MAAM,EACN,SAAS,EACT,YAAY,EACZ,OAAO,EACP,WAAkB,EAClB,aAAa,GACd,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAmDhC"}
|
|
@@ -7,12 +7,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = PopoverMenu;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
|
11
10
|
var _material = require("@mui/material");
|
|
11
|
+
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
|
12
12
|
var _Popover = _interopRequireDefault(require("./Popover"));
|
|
13
13
|
function PopoverMenu(_ref) {
|
|
14
14
|
let {
|
|
15
15
|
anchor,
|
|
16
|
+
container,
|
|
16
17
|
menuSections,
|
|
17
18
|
onClick,
|
|
18
19
|
showChevron = true,
|
|
@@ -52,6 +53,7 @@ function PopoverMenu(_ref) {
|
|
|
52
53
|
handleClick: onItemClick,
|
|
53
54
|
anchorElement: anchorEl,
|
|
54
55
|
setAnchorElement: setAnchorEl,
|
|
55
|
-
selectedValue: selectedValue
|
|
56
|
+
selectedValue: selectedValue,
|
|
57
|
+
container: container
|
|
56
58
|
}));
|
|
57
59
|
}
|