@activecollab/components 2.0.575 → 2.0.577
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/Popper/Popper.js +14 -0
- package/dist/cjs/components/Popper/Popper.js.map +1 -1
- package/dist/cjs/components/Popper/anchorMove.js +42 -0
- package/dist/cjs/components/Popper/anchorMove.js.map +1 -0
- package/dist/cjs/components/ViewSettings/Styles.js +8 -3
- package/dist/cjs/components/ViewSettings/Styles.js.map +1 -1
- package/dist/cjs/components/ViewSettings/ViewSettings.js +64 -3
- package/dist/cjs/components/ViewSettings/ViewSettings.js.map +1 -1
- package/dist/cjs/components/ViewSwitcher/ApplyToAllTab.js +199 -0
- package/dist/cjs/components/ViewSwitcher/ApplyToAllTab.js.map +1 -0
- package/dist/cjs/components/ViewSwitcher/Styles.js +73 -61
- package/dist/cjs/components/ViewSwitcher/Styles.js.map +1 -1
- package/dist/cjs/components/ViewSwitcher/{ViewSwitcherMenu.js → SubViewSwitcher.js} +70 -22
- package/dist/cjs/components/ViewSwitcher/SubViewSwitcher.js.map +1 -0
- package/dist/cjs/components/ViewSwitcher/ViewSwitcher.js +46 -184
- package/dist/cjs/components/ViewSwitcher/ViewSwitcher.js.map +1 -1
- package/dist/cjs/components/ViewSwitcher/index.js +4 -4
- package/dist/cjs/components/ViewSwitcher/index.js.map +1 -1
- package/dist/cjs/components/ViewSwitcher/useApplyToAllOffer.js +179 -0
- package/dist/cjs/components/ViewSwitcher/useApplyToAllOffer.js.map +1 -0
- package/dist/cjs/presentation/reports/allReports.js +6 -0
- package/dist/cjs/presentation/reports/allReports.js.map +1 -1
- package/dist/cjs/presentation/reports/controls.js +6 -3
- package/dist/cjs/presentation/reports/controls.js.map +1 -1
- package/dist/cjs/presentation/reports/expenses.js +946 -0
- package/dist/cjs/presentation/reports/expenses.js.map +1 -0
- package/dist/cjs/presentation/shared/ActivityFeed.js +1 -2
- package/dist/cjs/presentation/shared/ActivityFeed.js.map +1 -1
- package/dist/esm/components/Popper/Popper.d.ts.map +1 -1
- package/dist/esm/components/Popper/Popper.js +12 -0
- package/dist/esm/components/Popper/Popper.js.map +1 -1
- package/dist/esm/components/Popper/anchorMove.d.ts +4 -0
- package/dist/esm/components/Popper/anchorMove.d.ts.map +1 -0
- package/dist/esm/components/Popper/anchorMove.js +33 -0
- package/dist/esm/components/Popper/anchorMove.js.map +1 -0
- package/dist/esm/components/ViewSettings/Styles.d.ts +1 -0
- package/dist/esm/components/ViewSettings/Styles.d.ts.map +1 -1
- package/dist/esm/components/ViewSettings/Styles.js +7 -2
- package/dist/esm/components/ViewSettings/Styles.js.map +1 -1
- package/dist/esm/components/ViewSettings/ViewSettings.d.ts +12 -0
- package/dist/esm/components/ViewSettings/ViewSettings.d.ts.map +1 -1
- package/dist/esm/components/ViewSettings/ViewSettings.js +66 -5
- package/dist/esm/components/ViewSettings/ViewSettings.js.map +1 -1
- package/dist/esm/components/ViewSwitcher/ApplyToAllTab.d.ts +24 -0
- package/dist/esm/components/ViewSwitcher/ApplyToAllTab.d.ts.map +1 -0
- package/dist/esm/components/ViewSwitcher/ApplyToAllTab.js +179 -0
- package/dist/esm/components/ViewSwitcher/ApplyToAllTab.js.map +1 -0
- package/dist/esm/components/ViewSwitcher/Styles.d.ts +15 -15
- package/dist/esm/components/ViewSwitcher/Styles.d.ts.map +1 -1
- package/dist/esm/components/ViewSwitcher/Styles.js +72 -60
- package/dist/esm/components/ViewSwitcher/Styles.js.map +1 -1
- package/dist/esm/components/ViewSwitcher/SubViewSwitcher.d.ts +50 -0
- package/dist/esm/components/ViewSwitcher/SubViewSwitcher.d.ts.map +1 -0
- package/dist/esm/components/ViewSwitcher/SubViewSwitcher.js +149 -0
- package/dist/esm/components/ViewSwitcher/SubViewSwitcher.js.map +1 -0
- package/dist/esm/components/ViewSwitcher/ViewSwitcher.d.ts +8 -8
- package/dist/esm/components/ViewSwitcher/ViewSwitcher.d.ts.map +1 -1
- package/dist/esm/components/ViewSwitcher/ViewSwitcher.js +48 -163
- package/dist/esm/components/ViewSwitcher/ViewSwitcher.js.map +1 -1
- package/dist/esm/components/ViewSwitcher/index.d.ts +1 -1
- package/dist/esm/components/ViewSwitcher/index.d.ts.map +1 -1
- package/dist/esm/components/ViewSwitcher/index.js +1 -1
- package/dist/esm/components/ViewSwitcher/index.js.map +1 -1
- package/dist/esm/components/ViewSwitcher/useApplyToAllOffer.d.ts +27 -0
- package/dist/esm/components/ViewSwitcher/useApplyToAllOffer.d.ts.map +1 -0
- package/dist/esm/components/ViewSwitcher/useApplyToAllOffer.js +159 -0
- package/dist/esm/components/ViewSwitcher/useApplyToAllOffer.js.map +1 -0
- package/dist/esm/presentation/reports/allReports.d.ts.map +1 -1
- package/dist/esm/presentation/reports/allReports.js +6 -0
- package/dist/esm/presentation/reports/allReports.js.map +1 -1
- package/dist/esm/presentation/reports/controls.d.ts +3 -1
- package/dist/esm/presentation/reports/controls.d.ts.map +1 -1
- package/dist/esm/presentation/reports/controls.js +6 -3
- package/dist/esm/presentation/reports/controls.js.map +1 -1
- package/dist/esm/presentation/reports/expenses.d.ts +62 -0
- package/dist/esm/presentation/reports/expenses.d.ts.map +1 -0
- package/dist/esm/presentation/reports/expenses.js +849 -0
- package/dist/esm/presentation/reports/expenses.js.map +1 -0
- package/dist/esm/presentation/shared/ActivityFeed.d.ts.map +1 -1
- package/dist/esm/presentation/shared/ActivityFeed.js +1 -2
- package/dist/esm/presentation/shared/ActivityFeed.js.map +1 -1
- package/dist/index.js +656 -280
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/components/ViewSwitcher/ViewSwitcherMenu.js.map +0 -1
- package/dist/esm/components/ViewSwitcher/ViewSwitcherMenu.d.ts +0 -39
- package/dist/esm/components/ViewSwitcher/ViewSwitcherMenu.d.ts.map +0 -1
- package/dist/esm/components/ViewSwitcher/ViewSwitcherMenu.js +0 -101
- package/dist/esm/components/ViewSwitcher/ViewSwitcherMenu.js.map +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ViewSwitcherMenu.js","names":["_react","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_Styles","_Icons","_List","_Menu","_excluded","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","a","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","l","Symbol","iterator","u","next","done","push","value","return","isArray","_objectWithoutProperties","_objectWithoutPropertiesLoose","getOwnPropertySymbols","indexOf","propertyIsEnumerable","ViewSwitcherMenu","exports","forwardRef","_ref","ref","_options$find","options","onChange","ariaLabel","_ref$animateIn","animateIn","_ref$leaving","leaving","className","rest","_useState","useState","_useState2","open","setOpen","selected","find","_ref2","id","createElement","StyledViewSwitcherMenuRoot","undefined","classnames","StyledViewSwitcherMenuClip","Menu","onOpen","onClose","position","target","StyledViewSwitcherTrack","StyledViewSwitcherMenuOption","type","concat","label","map","_ref3","icon","key","ArrowDownSmallIcon","StyledViewSwitcherMenuList","_ref4","ListItem","onClick","StyledViewSwitcherMenuIcon","StyledViewSwitcherMenuLabel","displayName"],"sources":["../../../../src/components/ViewSwitcher/ViewSwitcherMenu.tsx"],"sourcesContent":["import React, { forwardRef, HTMLAttributes, ReactNode, useState } from \"react\";\n\nimport classnames from \"classnames\";\n\nimport {\n StyledViewSwitcherMenuClip,\n StyledViewSwitcherMenuIcon,\n StyledViewSwitcherMenuLabel,\n StyledViewSwitcherMenuList,\n StyledViewSwitcherMenuOption,\n StyledViewSwitcherMenuRoot,\n StyledViewSwitcherTrack,\n} from \"./Styles\";\nimport { ArrowDownSmallIcon } from \"../Icons\";\nimport { ListItem } from \"../List\";\nimport { Menu } from \"../Menu\";\n\nexport interface ViewSwitcherMenuOption {\n id: string;\n label: string;\n /** DS icon element. */\n icon?: ReactNode;\n}\n\nexport interface ViewSwitcherMenuProps\n extends Omit<HTMLAttributes<HTMLDivElement>, \"onChange\"> {\n options: ViewSwitcherMenuOption[];\n /** Id of the selected option. */\n value?: string;\n onChange: (id: string) => void;\n /** Accessible name of the trigger. The selected option follows it. */\n \"aria-label\"?: string;\n /** Opens with a clip from zero width when it mounts, and pushes the controls beside it aside. */\n animateIn?: boolean;\n /** Closes with the same clip. The parent removes the menu after it, 200 ms later. */\n leaving?: boolean;\n}\n\n/**\n * @component ViewSwitcherMenu\n * @description\n * Second level of a ViewSwitcher: a dropdown with the look of the checked ViewSwitcher option. It\n * shows the icon and the name of the selected option and lists all options with their icons. Its width\n * fits the widest option, so a new selection does not move the controls around it.\n *\n * @example\n * <ViewSwitcherMenu\n * aria-label=\"Group by\"\n * options={[\n * { id: \"start_date\", label: \"Start Date\", icon: <ClockIcon /> },\n * { id: \"date\", label: \"Due Date\", icon: <CalendarIcon /> },\n * ]}\n * value={view}\n * onChange={setView}\n * />\n */\nexport const ViewSwitcherMenu = forwardRef<\n HTMLDivElement,\n ViewSwitcherMenuProps\n>(\n (\n {\n options,\n value,\n onChange,\n \"aria-label\": ariaLabel,\n animateIn = false,\n leaving = false,\n className,\n ...rest\n },\n ref\n ) => {\n const [open, setOpen] = useState(false);\n const selected = options.find(({ id }) => id === value) ?? options[0];\n\n return (\n <StyledViewSwitcherMenuRoot\n ref={ref}\n data-animate-in={animateIn || undefined}\n data-leaving={leaving || undefined}\n className={classnames(\"c-view-switcher-menu\", className)}\n {...rest}\n >\n <StyledViewSwitcherMenuClip className=\"c-view-switcher-menu__clip\">\n <Menu\n open={open}\n onOpen={() => setOpen(true)}\n onClose={() => setOpen(false)}\n position=\"bottom-end\"\n target={\n <StyledViewSwitcherTrack className=\"c-view-switcher__track\">\n <StyledViewSwitcherMenuOption\n type=\"button\"\n aria-haspopup=\"menu\"\n aria-expanded={open}\n aria-label={\n ariaLabel\n ? `${ariaLabel}: ${selected?.label}`\n : selected?.label\n }\n className=\"c-view-switcher-menu__trigger\"\n >\n <span className=\"c-view-switcher-menu__values\">\n {options.map(({ id, label, icon }) => (\n <span\n key={id}\n aria-hidden={id !== selected?.id}\n data-selected={id === selected?.id}\n className=\"c-view-switcher-menu__value\"\n >\n {icon ? (\n <span className=\"c-view-switcher-menu__icon\">\n {icon}\n </span>\n ) : null}\n {label}\n </span>\n ))}\n </span>\n <ArrowDownSmallIcon />\n </StyledViewSwitcherMenuOption>\n </StyledViewSwitcherTrack>\n }\n >\n <StyledViewSwitcherMenuList>\n {options.map(({ id, label, icon }) => (\n <ListItem\n key={id}\n aria-selected={id === selected?.id}\n onClick={() => {\n setOpen(false);\n\n if (id !== value) {\n onChange(id);\n }\n }}\n >\n {icon ? (\n <StyledViewSwitcherMenuIcon>\n {icon}\n </StyledViewSwitcherMenuIcon>\n ) : null}\n <StyledViewSwitcherMenuLabel\n data-selected={id === selected?.id}\n >\n {label}\n </StyledViewSwitcherMenuLabel>\n </ListItem>\n ))}\n </StyledViewSwitcherMenuList>\n </Menu>\n </StyledViewSwitcherMenuClip>\n </StyledViewSwitcherMenuRoot>\n );\n }\n);\n\nViewSwitcherMenu.displayName = \"ViewSwitcherMenu\";\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AASA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AAA+B,IAAAO,SAAA;AAAA,SAAAL,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CA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AChBe,QAAQ,CAACgB,EAAE,CAAC;QACd;MACF;IAAE,GAEDkB,IAAI,gBACH3G,MAAA,CAAAY,OAAA,CAAA8E,aAAA,CAACrF,OAAA,CAAA6G,0BAA0B,QACxBP,IACyB,CAAC,GAC3B,IAAI,eACR3G,MAAA,CAAAY,OAAA,CAAA8E,aAAA,CAACrF,OAAA,CAAA8G,2BAA2B;MAC1B,iBAAe1B,EAAE,MAAKH,QAAQ,aAARA,QAAQ,uBAARA,QAAQ,CAAEG,EAAE;IAAC,GAElCe,KAC0B,CACrB,CAAC;EAAA,CACZ,CACyB,CACxB,CACoB,CACF,CAAC;AAEjC,CACF,CAAC;AAEDtC,gBAAgB,CAACkD,WAAW,GAAG,kBAAkB","ignoreList":[]}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React, { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
export interface ViewSwitcherMenuOption {
|
|
3
|
-
id: string;
|
|
4
|
-
label: string;
|
|
5
|
-
/** DS icon element. */
|
|
6
|
-
icon?: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export interface ViewSwitcherMenuProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
9
|
-
options: ViewSwitcherMenuOption[];
|
|
10
|
-
/** Id of the selected option. */
|
|
11
|
-
value?: string;
|
|
12
|
-
onChange: (id: string) => void;
|
|
13
|
-
/** Accessible name of the trigger. The selected option follows it. */
|
|
14
|
-
"aria-label"?: string;
|
|
15
|
-
/** Opens with a clip from zero width when it mounts, and pushes the controls beside it aside. */
|
|
16
|
-
animateIn?: boolean;
|
|
17
|
-
/** Closes with the same clip. The parent removes the menu after it, 200 ms later. */
|
|
18
|
-
leaving?: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @component ViewSwitcherMenu
|
|
22
|
-
* @description
|
|
23
|
-
* Second level of a ViewSwitcher: a dropdown with the look of the checked ViewSwitcher option. It
|
|
24
|
-
* shows the icon and the name of the selected option and lists all options with their icons. Its width
|
|
25
|
-
* fits the widest option, so a new selection does not move the controls around it.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* <ViewSwitcherMenu
|
|
29
|
-
* aria-label="Group by"
|
|
30
|
-
* options={[
|
|
31
|
-
* { id: "start_date", label: "Start Date", icon: <ClockIcon /> },
|
|
32
|
-
* { id: "date", label: "Due Date", icon: <CalendarIcon /> },
|
|
33
|
-
* ]}
|
|
34
|
-
* value={view}
|
|
35
|
-
* onChange={setView}
|
|
36
|
-
* />
|
|
37
|
-
*/
|
|
38
|
-
export declare const ViewSwitcherMenu: React.ForwardRefExoticComponent<ViewSwitcherMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
-
//# sourceMappingURL=ViewSwitcherMenu.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ViewSwitcherMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/ViewSwitcher/ViewSwitcherMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,cAAc,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAiB/E,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,qBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACxD,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iGAAiG;IACjG,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qFAAqF;IACrF,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,gBAAgB,8FAoG5B,CAAC"}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
const _excluded = ["options", "value", "onChange", "aria-label", "animateIn", "leaving", "className"];
|
|
4
|
-
import React, { forwardRef, useState } from "react";
|
|
5
|
-
import classnames from "classnames";
|
|
6
|
-
import { StyledViewSwitcherMenuClip, StyledViewSwitcherMenuIcon, StyledViewSwitcherMenuLabel, StyledViewSwitcherMenuList, StyledViewSwitcherMenuOption, StyledViewSwitcherMenuRoot, StyledViewSwitcherTrack } from "./Styles";
|
|
7
|
-
import { ArrowDownSmallIcon } from "../Icons";
|
|
8
|
-
import { ListItem } from "../List";
|
|
9
|
-
import { Menu } from "../Menu";
|
|
10
|
-
/**
|
|
11
|
-
* @component ViewSwitcherMenu
|
|
12
|
-
* @description
|
|
13
|
-
* Second level of a ViewSwitcher: a dropdown with the look of the checked ViewSwitcher option. It
|
|
14
|
-
* shows the icon and the name of the selected option and lists all options with their icons. Its width
|
|
15
|
-
* fits the widest option, so a new selection does not move the controls around it.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* <ViewSwitcherMenu
|
|
19
|
-
* aria-label="Group by"
|
|
20
|
-
* options={[
|
|
21
|
-
* { id: "start_date", label: "Start Date", icon: <ClockIcon /> },
|
|
22
|
-
* { id: "date", label: "Due Date", icon: <CalendarIcon /> },
|
|
23
|
-
* ]}
|
|
24
|
-
* value={view}
|
|
25
|
-
* onChange={setView}
|
|
26
|
-
* />
|
|
27
|
-
*/
|
|
28
|
-
export const ViewSwitcherMenu = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
29
|
-
var _options$find;
|
|
30
|
-
let options = _ref.options,
|
|
31
|
-
value = _ref.value,
|
|
32
|
-
onChange = _ref.onChange,
|
|
33
|
-
ariaLabel = _ref["aria-label"],
|
|
34
|
-
_ref$animateIn = _ref.animateIn,
|
|
35
|
-
animateIn = _ref$animateIn === void 0 ? false : _ref$animateIn,
|
|
36
|
-
_ref$leaving = _ref.leaving,
|
|
37
|
-
leaving = _ref$leaving === void 0 ? false : _ref$leaving,
|
|
38
|
-
className = _ref.className,
|
|
39
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
40
|
-
const _useState = useState(false),
|
|
41
|
-
open = _useState[0],
|
|
42
|
-
setOpen = _useState[1];
|
|
43
|
-
const selected = (_options$find = options.find(_ref2 => {
|
|
44
|
-
let id = _ref2.id;
|
|
45
|
-
return id === value;
|
|
46
|
-
})) != null ? _options$find : options[0];
|
|
47
|
-
return /*#__PURE__*/React.createElement(StyledViewSwitcherMenuRoot, _extends({
|
|
48
|
-
ref: ref,
|
|
49
|
-
"data-animate-in": animateIn || undefined,
|
|
50
|
-
"data-leaving": leaving || undefined,
|
|
51
|
-
className: classnames("c-view-switcher-menu", className)
|
|
52
|
-
}, rest), /*#__PURE__*/React.createElement(StyledViewSwitcherMenuClip, {
|
|
53
|
-
className: "c-view-switcher-menu__clip"
|
|
54
|
-
}, /*#__PURE__*/React.createElement(Menu, {
|
|
55
|
-
open: open,
|
|
56
|
-
onOpen: () => setOpen(true),
|
|
57
|
-
onClose: () => setOpen(false),
|
|
58
|
-
position: "bottom-end",
|
|
59
|
-
target: /*#__PURE__*/React.createElement(StyledViewSwitcherTrack, {
|
|
60
|
-
className: "c-view-switcher__track"
|
|
61
|
-
}, /*#__PURE__*/React.createElement(StyledViewSwitcherMenuOption, {
|
|
62
|
-
type: "button",
|
|
63
|
-
"aria-haspopup": "menu",
|
|
64
|
-
"aria-expanded": open,
|
|
65
|
-
"aria-label": ariaLabel ? ariaLabel + ": " + (selected == null ? void 0 : selected.label) : selected == null ? void 0 : selected.label,
|
|
66
|
-
className: "c-view-switcher-menu__trigger"
|
|
67
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
68
|
-
className: "c-view-switcher-menu__values"
|
|
69
|
-
}, options.map(_ref3 => {
|
|
70
|
-
let id = _ref3.id,
|
|
71
|
-
label = _ref3.label,
|
|
72
|
-
icon = _ref3.icon;
|
|
73
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
74
|
-
key: id,
|
|
75
|
-
"aria-hidden": id !== (selected == null ? void 0 : selected.id),
|
|
76
|
-
"data-selected": id === (selected == null ? void 0 : selected.id),
|
|
77
|
-
className: "c-view-switcher-menu__value"
|
|
78
|
-
}, icon ? /*#__PURE__*/React.createElement("span", {
|
|
79
|
-
className: "c-view-switcher-menu__icon"
|
|
80
|
-
}, icon) : null, label);
|
|
81
|
-
})), /*#__PURE__*/React.createElement(ArrowDownSmallIcon, null)))
|
|
82
|
-
}, /*#__PURE__*/React.createElement(StyledViewSwitcherMenuList, null, options.map(_ref4 => {
|
|
83
|
-
let id = _ref4.id,
|
|
84
|
-
label = _ref4.label,
|
|
85
|
-
icon = _ref4.icon;
|
|
86
|
-
return /*#__PURE__*/React.createElement(ListItem, {
|
|
87
|
-
key: id,
|
|
88
|
-
"aria-selected": id === (selected == null ? void 0 : selected.id),
|
|
89
|
-
onClick: () => {
|
|
90
|
-
setOpen(false);
|
|
91
|
-
if (id !== value) {
|
|
92
|
-
onChange(id);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}, icon ? /*#__PURE__*/React.createElement(StyledViewSwitcherMenuIcon, null, icon) : null, /*#__PURE__*/React.createElement(StyledViewSwitcherMenuLabel, {
|
|
96
|
-
"data-selected": id === (selected == null ? void 0 : selected.id)
|
|
97
|
-
}, label));
|
|
98
|
-
})))));
|
|
99
|
-
});
|
|
100
|
-
ViewSwitcherMenu.displayName = "ViewSwitcherMenu";
|
|
101
|
-
//# sourceMappingURL=ViewSwitcherMenu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ViewSwitcherMenu.js","names":["React","forwardRef","useState","classnames","StyledViewSwitcherMenuClip","StyledViewSwitcherMenuIcon","StyledViewSwitcherMenuLabel","StyledViewSwitcherMenuList","StyledViewSwitcherMenuOption","StyledViewSwitcherMenuRoot","StyledViewSwitcherTrack","ArrowDownSmallIcon","ListItem","Menu","ViewSwitcherMenu","_ref","ref","_options$find","options","value","onChange","ariaLabel","_ref$animateIn","animateIn","_ref$leaving","leaving","className","rest","_objectWithoutPropertiesLoose","_excluded","_useState","open","setOpen","selected","find","_ref2","id","createElement","_extends","undefined","onOpen","onClose","position","target","type","label","map","_ref3","icon","key","_ref4","onClick","displayName"],"sources":["../../../../src/components/ViewSwitcher/ViewSwitcherMenu.tsx"],"sourcesContent":["import React, { forwardRef, HTMLAttributes, ReactNode, useState } from \"react\";\n\nimport classnames from \"classnames\";\n\nimport {\n StyledViewSwitcherMenuClip,\n StyledViewSwitcherMenuIcon,\n StyledViewSwitcherMenuLabel,\n StyledViewSwitcherMenuList,\n StyledViewSwitcherMenuOption,\n StyledViewSwitcherMenuRoot,\n StyledViewSwitcherTrack,\n} from \"./Styles\";\nimport { ArrowDownSmallIcon } from \"../Icons\";\nimport { ListItem } from \"../List\";\nimport { Menu } from \"../Menu\";\n\nexport interface ViewSwitcherMenuOption {\n id: string;\n label: string;\n /** DS icon element. */\n icon?: ReactNode;\n}\n\nexport interface ViewSwitcherMenuProps\n extends Omit<HTMLAttributes<HTMLDivElement>, \"onChange\"> {\n options: ViewSwitcherMenuOption[];\n /** Id of the selected option. */\n value?: string;\n onChange: (id: string) => void;\n /** Accessible name of the trigger. The selected option follows it. */\n \"aria-label\"?: string;\n /** Opens with a clip from zero width when it mounts, and pushes the controls beside it aside. */\n animateIn?: boolean;\n /** Closes with the same clip. The parent removes the menu after it, 200 ms later. */\n leaving?: boolean;\n}\n\n/**\n * @component ViewSwitcherMenu\n * @description\n * Second level of a ViewSwitcher: a dropdown with the look of the checked ViewSwitcher option. It\n * shows the icon and the name of the selected option and lists all options with their icons. Its width\n * fits the widest option, so a new selection does not move the controls around it.\n *\n * @example\n * <ViewSwitcherMenu\n * aria-label=\"Group by\"\n * options={[\n * { id: \"start_date\", label: \"Start Date\", icon: <ClockIcon /> },\n * { id: \"date\", label: \"Due Date\", icon: <CalendarIcon /> },\n * ]}\n * value={view}\n * onChange={setView}\n * />\n */\nexport const ViewSwitcherMenu = forwardRef<\n HTMLDivElement,\n ViewSwitcherMenuProps\n>(\n (\n {\n options,\n value,\n onChange,\n \"aria-label\": ariaLabel,\n animateIn = false,\n leaving = false,\n className,\n ...rest\n },\n ref\n ) => {\n const [open, setOpen] = useState(false);\n const selected = options.find(({ id }) => id === value) ?? options[0];\n\n return (\n <StyledViewSwitcherMenuRoot\n ref={ref}\n data-animate-in={animateIn || undefined}\n data-leaving={leaving || undefined}\n className={classnames(\"c-view-switcher-menu\", className)}\n {...rest}\n >\n <StyledViewSwitcherMenuClip className=\"c-view-switcher-menu__clip\">\n <Menu\n open={open}\n onOpen={() => setOpen(true)}\n onClose={() => setOpen(false)}\n position=\"bottom-end\"\n target={\n <StyledViewSwitcherTrack className=\"c-view-switcher__track\">\n <StyledViewSwitcherMenuOption\n type=\"button\"\n aria-haspopup=\"menu\"\n aria-expanded={open}\n aria-label={\n ariaLabel\n ? `${ariaLabel}: ${selected?.label}`\n : selected?.label\n }\n className=\"c-view-switcher-menu__trigger\"\n >\n <span className=\"c-view-switcher-menu__values\">\n {options.map(({ id, label, icon }) => (\n <span\n key={id}\n aria-hidden={id !== selected?.id}\n data-selected={id === selected?.id}\n className=\"c-view-switcher-menu__value\"\n >\n {icon ? (\n <span className=\"c-view-switcher-menu__icon\">\n {icon}\n </span>\n ) : null}\n {label}\n </span>\n ))}\n </span>\n <ArrowDownSmallIcon />\n </StyledViewSwitcherMenuOption>\n </StyledViewSwitcherTrack>\n }\n >\n <StyledViewSwitcherMenuList>\n {options.map(({ id, label, icon }) => (\n <ListItem\n key={id}\n aria-selected={id === selected?.id}\n onClick={() => {\n setOpen(false);\n\n if (id !== value) {\n onChange(id);\n }\n }}\n >\n {icon ? (\n <StyledViewSwitcherMenuIcon>\n {icon}\n </StyledViewSwitcherMenuIcon>\n ) : null}\n <StyledViewSwitcherMenuLabel\n data-selected={id === selected?.id}\n >\n {label}\n </StyledViewSwitcherMenuLabel>\n </ListItem>\n ))}\n </StyledViewSwitcherMenuList>\n </Menu>\n </StyledViewSwitcherMenuClip>\n </StyledViewSwitcherMenuRoot>\n );\n }\n);\n\nViewSwitcherMenu.displayName = \"ViewSwitcherMenu\";\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAA6BC,QAAQ,QAAQ,OAAO;AAE9E,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,0BAA0B,EAC1BC,0BAA0B,EAC1BC,2BAA2B,EAC3BC,0BAA0B,EAC1BC,4BAA4B,EAC5BC,0BAA0B,EAC1BC,uBAAuB,QAClB,UAAU;AACjB,SAASC,kBAAkB,QAAQ,UAAU;AAC7C,SAASC,QAAQ,QAAQ,SAAS;AAClC,SAASC,IAAI,QAAQ,SAAS;AAuB9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,gBAAGb,UAAU,CAIxC,CAAAc,IAAA,EAWEC,GAAG,KACA;EAAA,IAAAC,aAAA;EAAA,IAVDC,OAAO,GAAAH,IAAA,CAAPG,OAAO;IACPC,KAAK,GAAAJ,IAAA,CAALI,KAAK;IACLC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;IACMC,SAAS,GAAAN,IAAA,CAAvB,YAAY;IAAAO,cAAA,GAAAP,IAAA,CACZQ,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,KAAK,GAAAA,cAAA;IAAAE,YAAA,GAAAT,IAAA,CACjBU,OAAO;IAAPA,OAAO,GAAAD,YAAA,cAAG,KAAK,GAAAA,YAAA;IACfE,SAAS,GAAAX,IAAA,CAATW,SAAS;IACNC,IAAI,GAAA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