@mantine/core 7.0.0-alpha.13 → 7.0.0-alpha.14
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/cjs/components/Combobox/Combobox.context.js +13 -0
- package/cjs/components/Combobox/Combobox.context.js.map +1 -0
- package/cjs/components/Combobox/Combobox.js +139 -0
- package/cjs/components/Combobox/Combobox.js.map +1 -0
- package/cjs/components/Combobox/Combobox.module.css.js +8 -0
- package/cjs/components/Combobox/Combobox.module.css.js.map +1 -0
- package/cjs/components/Combobox/ComboboxChevron/ComboboxChevron.js +39 -19
- package/cjs/components/Combobox/ComboboxChevron/ComboboxChevron.js.map +1 -1
- package/cjs/components/Combobox/ComboboxDropdown/ComboboxDropdown.js +70 -0
- package/cjs/components/Combobox/ComboboxDropdown/ComboboxDropdown.js.map +1 -0
- package/cjs/components/Combobox/ComboboxEmpty/ComboboxEmpty.js +63 -0
- package/cjs/components/Combobox/ComboboxEmpty/ComboboxEmpty.js.map +1 -0
- package/cjs/components/Combobox/ComboboxOption/ComboboxOption.js +119 -0
- package/cjs/components/Combobox/ComboboxOption/ComboboxOption.js.map +1 -0
- package/cjs/components/Combobox/ComboboxOptions/ComboboxOptions.js +75 -0
- package/cjs/components/Combobox/ComboboxOptions/ComboboxOptions.js.map +1 -0
- package/cjs/components/Combobox/ComboboxSearch/ComboboxSearch.js +92 -0
- package/cjs/components/Combobox/ComboboxSearch/ComboboxSearch.js.map +1 -0
- package/cjs/components/Combobox/ComboboxTarget/ComboboxTarget.js +74 -0
- package/cjs/components/Combobox/ComboboxTarget/ComboboxTarget.js.map +1 -0
- package/cjs/components/Combobox/use-combobox/get-index/get-index.js +47 -0
- package/cjs/components/Combobox/use-combobox/get-index/get-index.js.map +1 -0
- package/cjs/components/Combobox/use-combobox/get-index/get-virtualized-index.js +57 -0
- package/cjs/components/Combobox/use-combobox/get-index/get-virtualized-index.js.map +1 -0
- package/cjs/components/Combobox/use-combobox/use-combobox.js +152 -0
- package/cjs/components/Combobox/use-combobox/use-combobox.js.map +1 -0
- package/cjs/components/Combobox/use-combobox/use-virtualized-combobox.js +125 -0
- package/cjs/components/Combobox/use-combobox/use-virtualized-combobox.js.map +1 -0
- package/cjs/components/Combobox/use-combobox-target-props/use-combobox-target-props.js +80 -0
- package/cjs/components/Combobox/use-combobox-target-props/use-combobox-target-props.js.map +1 -0
- package/cjs/components/Drawer/Drawer.context.js +13 -0
- package/cjs/components/Drawer/Drawer.context.js.map +1 -0
- package/cjs/components/Drawer/Drawer.js +95 -0
- package/cjs/components/Drawer/Drawer.js.map +1 -0
- package/cjs/components/Drawer/Drawer.module.css.js +8 -0
- package/cjs/components/Drawer/Drawer.module.css.js.map +1 -0
- package/cjs/components/Drawer/DrawerBody.js +60 -0
- package/cjs/components/Drawer/DrawerBody.js.map +1 -0
- package/cjs/components/Drawer/DrawerCloseButton.js +60 -0
- package/cjs/components/Drawer/DrawerCloseButton.js.map +1 -0
- package/cjs/components/Drawer/DrawerContent.js +67 -0
- package/cjs/components/Drawer/DrawerContent.js.map +1 -0
- package/cjs/components/Drawer/DrawerHeader.js +60 -0
- package/cjs/components/Drawer/DrawerHeader.js.map +1 -0
- package/cjs/components/Drawer/DrawerOverlay.js +60 -0
- package/cjs/components/Drawer/DrawerOverlay.js.map +1 -0
- package/cjs/components/Drawer/DrawerRoot.js +128 -0
- package/cjs/components/Drawer/DrawerRoot.js.map +1 -0
- package/cjs/components/Drawer/DrawerTitle.js +60 -0
- package/cjs/components/Drawer/DrawerTitle.js.map +1 -0
- package/cjs/components/Modal/Modal.js.map +1 -1
- package/cjs/components/Modal/ModalRoot.js +6 -3
- package/cjs/components/Modal/ModalRoot.js.map +1 -1
- package/cjs/components/ModalBase/ModalBase.js +7 -5
- package/cjs/components/ModalBase/ModalBase.js.map +1 -1
- package/cjs/components/Popover/Popover.js +1 -1
- package/cjs/core/MantineProvider/use-mantine-color-scheme/use-mantine-color-scheme.js +1 -1
- package/cjs/core/MantineProvider/use-mantine-color-scheme/use-mantine-color-scheme.js.map +1 -1
- package/cjs/core/styles-api/use-styles/get-style/resolve-styles/resolve-styles.js +23 -2
- package/cjs/core/styles-api/use-styles/get-style/resolve-styles/resolve-styles.js.map +1 -1
- package/cjs/index.css +283 -158
- package/cjs/index.js +44 -0
- package/cjs/index.js.map +1 -1
- package/esm/components/Combobox/Combobox.context.js +8 -0
- package/esm/components/Combobox/Combobox.context.js.map +1 -0
- package/esm/components/Combobox/Combobox.js +131 -0
- package/esm/components/Combobox/Combobox.js.map +1 -0
- package/esm/components/Combobox/Combobox.module.css.js +4 -0
- package/esm/components/Combobox/Combobox.module.css.js.map +1 -0
- package/esm/components/Combobox/ComboboxChevron/ComboboxChevron.js +39 -18
- package/esm/components/Combobox/ComboboxChevron/ComboboxChevron.js.map +1 -1
- package/esm/components/Combobox/ComboboxDropdown/ComboboxDropdown.js +62 -0
- package/esm/components/Combobox/ComboboxDropdown/ComboboxDropdown.js.map +1 -0
- package/esm/components/Combobox/ComboboxEmpty/ComboboxEmpty.js +55 -0
- package/esm/components/Combobox/ComboboxEmpty/ComboboxEmpty.js.map +1 -0
- package/esm/components/Combobox/ComboboxOption/ComboboxOption.js +111 -0
- package/esm/components/Combobox/ComboboxOption/ComboboxOption.js.map +1 -0
- package/esm/components/Combobox/ComboboxOptions/ComboboxOptions.js +67 -0
- package/esm/components/Combobox/ComboboxOptions/ComboboxOptions.js.map +1 -0
- package/esm/components/Combobox/ComboboxSearch/ComboboxSearch.js +84 -0
- package/esm/components/Combobox/ComboboxSearch/ComboboxSearch.js.map +1 -0
- package/esm/components/Combobox/ComboboxTarget/ComboboxTarget.js +66 -0
- package/esm/components/Combobox/ComboboxTarget/ComboboxTarget.js.map +1 -0
- package/esm/components/Combobox/use-combobox/get-index/get-index.js +41 -0
- package/esm/components/Combobox/use-combobox/get-index/get-index.js.map +1 -0
- package/esm/components/Combobox/use-combobox/get-index/get-virtualized-index.js +51 -0
- package/esm/components/Combobox/use-combobox/get-index/get-virtualized-index.js.map +1 -0
- package/esm/components/Combobox/use-combobox/use-combobox.js +148 -0
- package/esm/components/Combobox/use-combobox/use-combobox.js.map +1 -0
- package/esm/components/Combobox/use-combobox/use-virtualized-combobox.js +121 -0
- package/esm/components/Combobox/use-combobox/use-virtualized-combobox.js.map +1 -0
- package/esm/components/Combobox/use-combobox-target-props/use-combobox-target-props.js +76 -0
- package/esm/components/Combobox/use-combobox-target-props/use-combobox-target-props.js.map +1 -0
- package/esm/components/Drawer/Drawer.context.js +8 -0
- package/esm/components/Drawer/Drawer.context.js.map +1 -0
- package/esm/components/Drawer/Drawer.js +87 -0
- package/esm/components/Drawer/Drawer.js.map +1 -0
- package/esm/components/Drawer/Drawer.module.css.js +4 -0
- package/esm/components/Drawer/Drawer.module.css.js.map +1 -0
- package/esm/components/Drawer/DrawerBody.js +52 -0
- package/esm/components/Drawer/DrawerBody.js.map +1 -0
- package/esm/components/Drawer/DrawerCloseButton.js +52 -0
- package/esm/components/Drawer/DrawerCloseButton.js.map +1 -0
- package/esm/components/Drawer/DrawerContent.js +59 -0
- package/esm/components/Drawer/DrawerContent.js.map +1 -0
- package/esm/components/Drawer/DrawerHeader.js +52 -0
- package/esm/components/Drawer/DrawerHeader.js.map +1 -0
- package/esm/components/Drawer/DrawerOverlay.js +52 -0
- package/esm/components/Drawer/DrawerOverlay.js.map +1 -0
- package/esm/components/Drawer/DrawerRoot.js +120 -0
- package/esm/components/Drawer/DrawerRoot.js.map +1 -0
- package/esm/components/Drawer/DrawerTitle.js +52 -0
- package/esm/components/Drawer/DrawerTitle.js.map +1 -0
- package/esm/components/Modal/Modal.js.map +1 -1
- package/esm/components/Modal/ModalRoot.js +6 -3
- package/esm/components/Modal/ModalRoot.js.map +1 -1
- package/esm/components/ModalBase/ModalBase.js +7 -5
- package/esm/components/ModalBase/ModalBase.js.map +1 -1
- package/esm/components/Popover/Popover.js +1 -1
- package/esm/core/MantineProvider/use-mantine-color-scheme/use-mantine-color-scheme.js +1 -1
- package/esm/core/MantineProvider/use-mantine-color-scheme/use-mantine-color-scheme.js.map +1 -1
- package/esm/core/styles-api/use-styles/get-style/resolve-styles/resolve-styles.js +23 -2
- package/esm/core/styles-api/use-styles/get-style/resolve-styles/resolve-styles.js.map +1 -1
- package/esm/index.css +283 -158
- package/esm/index.js +22 -0
- package/esm/index.js.map +1 -1
- package/lib/components/Combobox/Combobox.context.d.ts +15 -0
- package/lib/components/Combobox/Combobox.d.ts +89 -0
- package/lib/components/Combobox/ComboboxChevron/ComboboxChevron.d.ts +20 -6
- package/lib/components/Combobox/ComboboxDropdown/ComboboxDropdown.d.ts +19 -0
- package/lib/components/Combobox/ComboboxEmpty/ComboboxEmpty.d.ts +16 -0
- package/lib/components/Combobox/ComboboxOption/ComboboxOption.d.ts +24 -0
- package/lib/components/Combobox/ComboboxOptions/ComboboxOptions.d.ts +16 -0
- package/lib/components/Combobox/ComboboxSearch/ComboboxSearch.d.ts +19 -0
- package/lib/components/Combobox/ComboboxTarget/ComboboxTarget.d.ts +22 -0
- package/lib/components/Combobox/index.d.ts +19 -0
- package/lib/components/Combobox/use-combobox/get-index/get-index.d.ts +3 -0
- package/lib/components/Combobox/use-combobox/get-index/get-virtualized-index.d.ts +14 -0
- package/lib/components/Combobox/use-combobox/use-combobox.d.ts +37 -0
- package/lib/components/Combobox/use-combobox/use-virtualized-combobox.d.ts +25 -0
- package/lib/components/Combobox/use-combobox-target-props/use-combobox-target-props.d.ts +24 -0
- package/lib/components/Drawer/Drawer.context.d.ts +13 -0
- package/lib/components/Drawer/Drawer.d.ts +59 -0
- package/lib/components/Drawer/DrawerBody.d.ts +17 -0
- package/lib/components/Drawer/DrawerCloseButton.d.ts +17 -0
- package/lib/components/Drawer/DrawerContent.d.ts +17 -0
- package/lib/components/Drawer/DrawerHeader.d.ts +17 -0
- package/lib/components/Drawer/DrawerOverlay.d.ts +17 -0
- package/lib/components/Drawer/DrawerRoot.d.ts +32 -0
- package/lib/components/Drawer/DrawerTitle.d.ts +17 -0
- package/lib/components/Drawer/index.d.ts +16 -0
- package/lib/components/Modal/Modal.d.ts +3 -2
- package/lib/components/Modal/ModalRoot.d.ts +1 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/core/styles-api/index.d.ts +2 -0
- package/lib/core/styles-api/use-styles/get-style/get-theme-styles/get-theme-styles.d.ts +1 -2
- package/lib/core/styles-api/use-styles/get-style/resolve-styles/resolve-styles.d.ts +2 -3
- package/package.json +4 -4
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { useComboboxContext } from '../Combobox.context.js';
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defProps = Object.defineProperties;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
function useComboboxTargetProps({
|
|
24
|
+
onKeyDown,
|
|
25
|
+
withKeyboardNavigation,
|
|
26
|
+
withAriaAttributes
|
|
27
|
+
}) {
|
|
28
|
+
const ctx = useComboboxContext();
|
|
29
|
+
const [selectedOptionId, setSelectedOptionId] = useState(null);
|
|
30
|
+
const handleKeyDown = (event) => {
|
|
31
|
+
onKeyDown == null ? void 0 : onKeyDown(event);
|
|
32
|
+
if (withKeyboardNavigation) {
|
|
33
|
+
if (event.nativeEvent.code === "ArrowDown") {
|
|
34
|
+
event.preventDefault();
|
|
35
|
+
if (!ctx.store.dropdownOpened) {
|
|
36
|
+
ctx.store.openDropdown();
|
|
37
|
+
setSelectedOptionId(ctx.store.selectActiveOption());
|
|
38
|
+
} else {
|
|
39
|
+
setSelectedOptionId(ctx.store.selectNextOption());
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (event.nativeEvent.code === "ArrowUp") {
|
|
43
|
+
event.preventDefault();
|
|
44
|
+
if (!ctx.store.dropdownOpened) {
|
|
45
|
+
ctx.store.openDropdown();
|
|
46
|
+
setSelectedOptionId(ctx.store.selectActiveOption());
|
|
47
|
+
} else {
|
|
48
|
+
setSelectedOptionId(ctx.store.selectPreviousOption());
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
if (event.nativeEvent.code === "Enter") {
|
|
52
|
+
if (ctx.store.dropdownOpened) {
|
|
53
|
+
event.preventDefault();
|
|
54
|
+
ctx.store.clickSelectedOption();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
if (event.nativeEvent.code === "Escape") {
|
|
58
|
+
ctx.store.closeDropdown();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
const ariaAttributes = withAriaAttributes ? {
|
|
63
|
+
"aria-haspopup": "listbox",
|
|
64
|
+
"aria-expanded": ctx.store.listId ? ctx.store.dropdownOpened : void 0,
|
|
65
|
+
"aria-controls": ctx.store.listId,
|
|
66
|
+
"aria-activedescendant": ctx.store.dropdownOpened ? selectedOptionId || void 0 : void 0,
|
|
67
|
+
autoComplete: "off",
|
|
68
|
+
"data-expanded": ctx.store.dropdownOpened ? true : void 0
|
|
69
|
+
} : {};
|
|
70
|
+
return __spreadProps(__spreadValues({}, ariaAttributes), {
|
|
71
|
+
onKeyDown: handleKeyDown
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export { useComboboxTargetProps };
|
|
76
|
+
//# sourceMappingURL=use-combobox-target-props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-combobox-target-props.js","sources":["../../../../src/components/Combobox/use-combobox-target-props/use-combobox-target-props.ts"],"sourcesContent":["import { useState } from 'react';\nimport { useComboboxContext } from '../Combobox.context';\n\ninterface UseComboboxTargetPropsInput {\n withAriaAttributes: boolean | undefined;\n withKeyboardNavigation: boolean | undefined;\n onKeyDown: React.KeyboardEventHandler<HTMLInputElement> | undefined;\n}\n\nexport function useComboboxTargetProps({\n onKeyDown,\n withKeyboardNavigation,\n withAriaAttributes,\n}: UseComboboxTargetPropsInput) {\n const ctx = useComboboxContext();\n const [selectedOptionId, setSelectedOptionId] = useState<string | null>(null);\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n onKeyDown?.(event);\n\n if (withKeyboardNavigation) {\n if (event.nativeEvent.code === 'ArrowDown') {\n event.preventDefault();\n\n if (!ctx.store.dropdownOpened) {\n ctx.store.openDropdown();\n setSelectedOptionId(ctx.store.selectActiveOption());\n } else {\n setSelectedOptionId(ctx.store.selectNextOption());\n }\n }\n\n if (event.nativeEvent.code === 'ArrowUp') {\n event.preventDefault();\n\n if (!ctx.store.dropdownOpened) {\n ctx.store.openDropdown();\n setSelectedOptionId(ctx.store.selectActiveOption());\n } else {\n setSelectedOptionId(ctx.store.selectPreviousOption());\n }\n }\n\n if (event.nativeEvent.code === 'Enter') {\n if (ctx.store.dropdownOpened) {\n event.preventDefault();\n ctx.store.clickSelectedOption();\n }\n }\n\n if (event.nativeEvent.code === 'Escape') {\n ctx.store.closeDropdown();\n }\n }\n };\n\n const ariaAttributes = withAriaAttributes\n ? {\n 'aria-haspopup': 'listbox',\n 'aria-expanded': ctx.store.listId ? ctx.store.dropdownOpened : undefined,\n 'aria-controls': ctx.store.listId,\n 'aria-activedescendant': ctx.store.dropdownOpened\n ? selectedOptionId || undefined\n : undefined,\n autoComplete: 'off',\n 'data-expanded': ctx.store.dropdownOpened ? true : undefined,\n }\n : {};\n\n return {\n ...ariaAttributes,\n onKeyDown: handleKeyDown,\n };\n}\n"],"names":[],"mappings":";;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACzC,IAAI,iBAAiB,GAAG,MAAM,CAAC,yBAAyB,CAAC;AACzD,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,KAAK,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAChK,IAAI,cAAc,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK;AAC/B,EAAE,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;AAChC,IAAI,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC;AAClC,MAAM,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AACxC,EAAE,IAAI,mBAAmB;AACzB,IAAI,KAAK,IAAI,IAAI,IAAI,mBAAmB,CAAC,CAAC,CAAC,EAAE;AAC7C,MAAM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;AACT,EAAE,OAAO,aAAa,CAAC,cAAc,CAAC,EAAE,EAAE,cAAc,CAAC,EAAE;AAC3D,IAAI,SAAS,EAAE,aAAa;AAC5B,GAAG,CAAC,CAAC;AACL;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createSafeContext } from '../../core/utils/create-safe-context/create-safe-context.js';
|
|
2
|
+
|
|
3
|
+
const [DrawerProvider, useDrawerContext] = createSafeContext(
|
|
4
|
+
"Drawer component was not found in tree"
|
|
5
|
+
);
|
|
6
|
+
|
|
7
|
+
export { DrawerProvider, useDrawerContext };
|
|
8
|
+
//# sourceMappingURL=Drawer.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Drawer.context.js","sources":["../../../src/components/Drawer/Drawer.context.ts"],"sourcesContent":["import { createSafeContext, GetStylesApi } from '../../core';\nimport type { DrawerRootFactory } from './DrawerRoot';\n\nexport type ScrollAreaComponent = React.FC<any>;\n\ninterface DrawerContext {\n scrollAreaComponent: ScrollAreaComponent | undefined;\n getStyles: GetStylesApi<DrawerRootFactory>;\n}\n\nexport const [DrawerProvider, useDrawerContext] = createSafeContext<DrawerContext>(\n 'Drawer component was not found in tree'\n);\n"],"names":[],"mappings":";;AACY,MAAC,CAAC,cAAc,EAAE,gBAAgB,CAAC,GAAG,iBAAiB;AACnE,EAAE,wCAAwC;AAC1C;;;;"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawerRoot } from './DrawerRoot.js';
|
|
3
|
+
import { DrawerBody } from './DrawerBody.js';
|
|
4
|
+
import { DrawerCloseButton } from './DrawerCloseButton.js';
|
|
5
|
+
import { DrawerOverlay } from './DrawerOverlay.js';
|
|
6
|
+
import { DrawerContent } from './DrawerContent.js';
|
|
7
|
+
import { DrawerTitle } from './DrawerTitle.js';
|
|
8
|
+
import { DrawerHeader } from './DrawerHeader.js';
|
|
9
|
+
import classes from './Drawer.module.css.js';
|
|
10
|
+
import { factory } from '../../core/factory/factory.js';
|
|
11
|
+
import { useProps } from '../../core/MantineProvider/use-props/use-props.js';
|
|
12
|
+
import { getDefaultZIndex } from '../../core/utils/get-default-z-index/get-default-z-index.js';
|
|
13
|
+
|
|
14
|
+
var __defProp = Object.defineProperty;
|
|
15
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
16
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
17
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
18
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
19
|
+
var __spreadValues = (a, b) => {
|
|
20
|
+
for (var prop in b || (b = {}))
|
|
21
|
+
if (__hasOwnProp.call(b, prop))
|
|
22
|
+
__defNormalProp(a, prop, b[prop]);
|
|
23
|
+
if (__getOwnPropSymbols)
|
|
24
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
25
|
+
if (__propIsEnum.call(b, prop))
|
|
26
|
+
__defNormalProp(a, prop, b[prop]);
|
|
27
|
+
}
|
|
28
|
+
return a;
|
|
29
|
+
};
|
|
30
|
+
var __objRest = (source, exclude) => {
|
|
31
|
+
var target = {};
|
|
32
|
+
for (var prop in source)
|
|
33
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34
|
+
target[prop] = source[prop];
|
|
35
|
+
if (source != null && __getOwnPropSymbols)
|
|
36
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
37
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
38
|
+
target[prop] = source[prop];
|
|
39
|
+
}
|
|
40
|
+
return target;
|
|
41
|
+
};
|
|
42
|
+
const defaultProps = {
|
|
43
|
+
closeOnClickOutside: true,
|
|
44
|
+
withinPortal: true,
|
|
45
|
+
lockScroll: true,
|
|
46
|
+
trapFocus: true,
|
|
47
|
+
returnFocus: true,
|
|
48
|
+
closeOnEscape: true,
|
|
49
|
+
keepMounted: false,
|
|
50
|
+
zIndex: getDefaultZIndex("modal"),
|
|
51
|
+
padding: "md",
|
|
52
|
+
size: "md",
|
|
53
|
+
shadow: "xl",
|
|
54
|
+
withOverlay: true,
|
|
55
|
+
withCloseButton: true
|
|
56
|
+
};
|
|
57
|
+
const Drawer = factory((_props, ref) => {
|
|
58
|
+
const _a = useProps("Drawer", defaultProps, _props), {
|
|
59
|
+
title,
|
|
60
|
+
withOverlay,
|
|
61
|
+
overlayProps,
|
|
62
|
+
withCloseButton,
|
|
63
|
+
closeButtonProps,
|
|
64
|
+
children
|
|
65
|
+
} = _a, others = __objRest(_a, [
|
|
66
|
+
"title",
|
|
67
|
+
"withOverlay",
|
|
68
|
+
"overlayProps",
|
|
69
|
+
"withCloseButton",
|
|
70
|
+
"closeButtonProps",
|
|
71
|
+
"children"
|
|
72
|
+
]);
|
|
73
|
+
const hasHeader = !!title || withCloseButton;
|
|
74
|
+
return /* @__PURE__ */ React.createElement(DrawerRoot, __spreadValues({ ref }, others), withOverlay && /* @__PURE__ */ React.createElement(DrawerOverlay, __spreadValues({}, overlayProps)), /* @__PURE__ */ React.createElement(DrawerContent, null, hasHeader && /* @__PURE__ */ React.createElement(DrawerHeader, null, title && /* @__PURE__ */ React.createElement(DrawerTitle, null, title), withCloseButton && /* @__PURE__ */ React.createElement(DrawerCloseButton, __spreadValues({}, closeButtonProps))), /* @__PURE__ */ React.createElement(DrawerBody, null, children)));
|
|
75
|
+
});
|
|
76
|
+
Drawer.classes = classes;
|
|
77
|
+
Drawer.displayName = "@mantine/core/Drawer";
|
|
78
|
+
Drawer.Root = DrawerRoot;
|
|
79
|
+
Drawer.Overlay = DrawerOverlay;
|
|
80
|
+
Drawer.Content = DrawerContent;
|
|
81
|
+
Drawer.Body = DrawerBody;
|
|
82
|
+
Drawer.Header = DrawerHeader;
|
|
83
|
+
Drawer.Title = DrawerTitle;
|
|
84
|
+
Drawer.CloseButton = DrawerCloseButton;
|
|
85
|
+
|
|
86
|
+
export { Drawer };
|
|
87
|
+
//# sourceMappingURL=Drawer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Drawer.js","sources":["../../../src/components/Drawer/Drawer.tsx"],"sourcesContent":["import React from 'react';\nimport { factory, useProps, Factory, getDefaultZIndex } from '../../core';\nimport { ModalBaseOverlayProps, ModalBaseCloseButtonProps } from '../ModalBase';\nimport {\n DrawerRoot,\n DrawerRootProps,\n DrawerRootCssVariables,\n DrawerRootStylesNames,\n} from './DrawerRoot';\nimport { DrawerBody } from './DrawerBody';\nimport { DrawerCloseButton } from './DrawerCloseButton';\nimport { DrawerOverlay } from './DrawerOverlay';\nimport { DrawerContent } from './DrawerContent';\nimport { DrawerTitle } from './DrawerTitle';\nimport { DrawerHeader } from './DrawerHeader';\nimport classes from './Drawer.module.css';\n\nexport type DrawerStylesNames = DrawerRootStylesNames;\nexport type DrawerVariant = string;\nexport type DrawerCssVariables = DrawerRootCssVariables;\n\nexport interface DrawerProps extends DrawerRootProps {\n /** Drawer title */\n title?: React.ReactNode;\n\n /** Determines whether the overlay should be rendered, `true` by default */\n withOverlay?: boolean;\n\n /** Props passed down to the `Overlay` component, can be used to configure opacity, `background-color`, styles and other properties */\n overlayProps?: ModalBaseOverlayProps;\n\n /** Drawer content */\n children?: React.ReactNode;\n\n /** Determines whether the close button should be rendered, `true` by default */\n withCloseButton?: boolean;\n\n /** Props passed down to the close button */\n closeButtonProps?: ModalBaseCloseButtonProps;\n}\n\nexport type DrawerFactory = Factory<{\n props: DrawerProps;\n ref: HTMLDivElement;\n stylesNames: DrawerStylesNames;\n vars: DrawerCssVariables;\n variant: DrawerVariant;\n staticComponents: {\n Root: typeof DrawerRoot;\n Overlay: typeof DrawerOverlay;\n Content: typeof DrawerContent;\n Body: typeof DrawerBody;\n Header: typeof DrawerHeader;\n Title: typeof DrawerTitle;\n CloseButton: typeof DrawerCloseButton;\n };\n}>;\n\nconst defaultProps: Partial<DrawerProps> = {\n closeOnClickOutside: true,\n withinPortal: true,\n lockScroll: true,\n trapFocus: true,\n returnFocus: true,\n closeOnEscape: true,\n keepMounted: false,\n zIndex: getDefaultZIndex('modal'),\n padding: 'md',\n size: 'md',\n shadow: 'xl',\n withOverlay: true,\n withCloseButton: true,\n};\n\nexport const Drawer = factory<DrawerFactory>((_props, ref) => {\n const {\n title,\n withOverlay,\n overlayProps,\n withCloseButton,\n closeButtonProps,\n children,\n ...others\n } = useProps('Drawer', defaultProps, _props);\n\n const hasHeader = !!title || withCloseButton;\n\n return (\n <DrawerRoot ref={ref} {...others}>\n {withOverlay && <DrawerOverlay {...overlayProps} />}\n <DrawerContent>\n {hasHeader && (\n <DrawerHeader>\n {title && <DrawerTitle>{title}</DrawerTitle>}\n {withCloseButton && <DrawerCloseButton {...closeButtonProps} />}\n </DrawerHeader>\n )}\n\n <DrawerBody>{children}</DrawerBody>\n </DrawerContent>\n </DrawerRoot>\n );\n});\n\nDrawer.classes = classes;\nDrawer.displayName = '@mantine/core/Drawer';\nDrawer.Root = DrawerRoot;\nDrawer.Overlay = DrawerOverlay;\nDrawer.Content = DrawerContent;\nDrawer.Body = DrawerBody;\nDrawer.Header = DrawerHeader;\nDrawer.Title = DrawerTitle;\nDrawer.CloseButton = DrawerCloseButton;\n"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,KAAK,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,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AE,MAAM,CAAC,EAAE,WAAW,oBAAoB,KAAK,CAAC,aAAa,CAAC,aAAa,EAAE,cAAc,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC,kBAAkB,KAAK,CAAC,aAAa,CAAC,aAAa,EAAE,IAAI,EAAE,SAAS,oBAAoB,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,KAAK,oBAAoB,KAAK,CAAC,aAAa,CAAC,WAAW,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,eAAe,oBAAoB,KAAK,CAAC,aAAa,CAAC,iBAAiB,EAAE,cAAc,CAAC,EAAE,EAAE,gBAAgB,CAAC,CAAC,CAAC,kBAAkB,KAAK,CAAC,aAAa,CAAC,UAAU,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;AACzjB,CAAC,EAAE;AACH,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;AACzB,MAAM,CAAC,WAAW,GAAG,sBAAsB,CAAC;AAC5C,MAAM,CAAC,IAAI,GAAG,UAAU,CAAC;AACzB,MAAM,CAAC,OAAO,GAAG,aAAa,CAAC;AAC/B,MAAM,CAAC,OAAO,GAAG,aAAa,CAAC;AAC/B,MAAM,CAAC,IAAI,GAAG,UAAU,CAAC;AACzB,MAAM,CAAC,MAAM,GAAG,YAAY,CAAC;AAC7B,MAAM,CAAC,KAAK,GAAG,WAAW,CAAC;AAC3B,MAAM,CAAC,WAAW,GAAG,iBAAiB;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Drawer.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useDrawerContext } from './Drawer.context.js';
|
|
3
|
+
import classes from './Drawer.module.css.js';
|
|
4
|
+
import { ModalBaseBody } from '../ModalBase/ModalBaseBody.js';
|
|
5
|
+
import { factory } from '../../core/factory/factory.js';
|
|
6
|
+
import { useProps } from '../../core/MantineProvider/use-props/use-props.js';
|
|
7
|
+
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __objRest = (source, exclude) => {
|
|
25
|
+
var target = {};
|
|
26
|
+
for (var prop in source)
|
|
27
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
if (source != null && __getOwnPropSymbols)
|
|
30
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
31
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
32
|
+
target[prop] = source[prop];
|
|
33
|
+
}
|
|
34
|
+
return target;
|
|
35
|
+
};
|
|
36
|
+
const defaultProps = {};
|
|
37
|
+
const DrawerBody = factory((_props, ref) => {
|
|
38
|
+
const props = useProps("DrawerBody", defaultProps, _props);
|
|
39
|
+
const _a = props, { classNames, className, style, styles, unstyled, vars } = _a, others = __objRest(_a, ["classNames", "className", "style", "styles", "unstyled", "vars"]);
|
|
40
|
+
const ctx = useDrawerContext();
|
|
41
|
+
return /* @__PURE__ */ React.createElement(
|
|
42
|
+
ModalBaseBody,
|
|
43
|
+
__spreadValues(__spreadValues({
|
|
44
|
+
ref
|
|
45
|
+
}, ctx.getStyles("body", { classNames, style, styles, className })), others)
|
|
46
|
+
);
|
|
47
|
+
});
|
|
48
|
+
DrawerBody.classes = classes;
|
|
49
|
+
DrawerBody.displayName = "@mantine/core/DrawerBody";
|
|
50
|
+
|
|
51
|
+
export { DrawerBody };
|
|
52
|
+
//# sourceMappingURL=DrawerBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrawerBody.js","sources":["../../../src/components/Drawer/DrawerBody.tsx"],"sourcesContent":["import React from 'react';\nimport { StylesApiProps, factory, useProps, Factory } from '../../core';\nimport { ModalBaseBody, ModalBaseBodyProps } from '../ModalBase';\nimport { useDrawerContext } from './Drawer.context';\nimport classes from './Drawer.module.css';\n\nexport type DrawerBodyStylesNames = 'body';\n\nexport interface DrawerBodyProps extends ModalBaseBodyProps, StylesApiProps<DrawerBodyFactory> {}\n\nexport type DrawerBodyFactory = Factory<{\n props: DrawerBodyProps;\n ref: HTMLDivElement;\n stylesNames: DrawerBodyStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial<DrawerBodyProps> = {};\n\nexport const DrawerBody = factory<DrawerBodyFactory>((_props, ref) => {\n const props = useProps('DrawerBody', defaultProps, _props);\n const { classNames, className, style, styles, unstyled, vars, ...others } = props;\n\n const ctx = useDrawerContext();\n\n return (\n <ModalBaseBody\n ref={ref}\n {...ctx.getStyles('body', { classNames, style, styles, className })}\n {...others}\n />\n );\n});\n\nDrawerBody.classes = classes;\nDrawerBody.displayName = '@mantine/core/DrawerBody';\n"],"names":[],"mappings":";;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI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WAAW,GAAG,0BAA0B;;;;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useDrawerContext } from './Drawer.context.js';
|
|
3
|
+
import classes from './Drawer.module.css.js';
|
|
4
|
+
import { ModalBaseCloseButton } from '../ModalBase/ModalBaseCloseButton.js';
|
|
5
|
+
import { factory } from '../../core/factory/factory.js';
|
|
6
|
+
import { useProps } from '../../core/MantineProvider/use-props/use-props.js';
|
|
7
|
+
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __objRest = (source, exclude) => {
|
|
25
|
+
var target = {};
|
|
26
|
+
for (var prop in source)
|
|
27
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
if (source != null && __getOwnPropSymbols)
|
|
30
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
31
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
32
|
+
target[prop] = source[prop];
|
|
33
|
+
}
|
|
34
|
+
return target;
|
|
35
|
+
};
|
|
36
|
+
const defaultProps = {};
|
|
37
|
+
const DrawerCloseButton = factory((_props, ref) => {
|
|
38
|
+
const props = useProps("DrawerCloseButton", defaultProps, _props);
|
|
39
|
+
const _a = props, { classNames, className, style, styles, unstyled, vars } = _a, others = __objRest(_a, ["classNames", "className", "style", "styles", "unstyled", "vars"]);
|
|
40
|
+
const ctx = useDrawerContext();
|
|
41
|
+
return /* @__PURE__ */ React.createElement(
|
|
42
|
+
ModalBaseCloseButton,
|
|
43
|
+
__spreadValues(__spreadValues({
|
|
44
|
+
ref
|
|
45
|
+
}, ctx.getStyles("close", { classNames, style, styles, className })), others)
|
|
46
|
+
);
|
|
47
|
+
});
|
|
48
|
+
DrawerCloseButton.classes = classes;
|
|
49
|
+
DrawerCloseButton.displayName = "@mantine/core/DrawerCloseButton";
|
|
50
|
+
|
|
51
|
+
export { DrawerCloseButton };
|
|
52
|
+
//# sourceMappingURL=DrawerCloseButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrawerCloseButton.js","sources":["../../../src/components/Drawer/DrawerCloseButton.tsx"],"sourcesContent":["import React from 'react';\nimport { StylesApiProps, factory, useProps, Factory } from '../../core';\nimport { ModalBaseCloseButton, ModalBaseCloseButtonProps } from '../ModalBase';\nimport { useDrawerContext } from './Drawer.context';\nimport classes from './Drawer.module.css';\n\nexport type DrawerCloseButtonStylesNames = 'close';\n\nexport interface DrawerCloseButtonProps\n extends ModalBaseCloseButtonProps,\n StylesApiProps<DrawerCloseButtonFactory> {}\n\nexport type DrawerCloseButtonFactory = Factory<{\n props: DrawerCloseButtonProps;\n ref: HTMLButtonElement;\n stylesNames: DrawerCloseButtonStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial<DrawerCloseButtonProps> = {};\n\nexport const DrawerCloseButton = factory<DrawerCloseButtonFactory>((_props, ref) => {\n const props = useProps('DrawerCloseButton', defaultProps, _props);\n const { classNames, className, style, styles, unstyled, vars, ...others } = props;\n\n const ctx = useDrawerContext();\n\n return (\n <ModalBaseCloseButton\n ref={ref}\n {...ctx.getStyles('close', { classNames, style, styles, className })}\n {...others}\n />\n );\n});\n\nDrawerCloseButton.classes = classes;\nDrawerCloseButton.displayName = '@mantine/core/DrawerCloseButton';\n"],"names":[],"mappings":";;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,KAAK,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAChK,IAAI,cAAc,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK;AAC/B,EAAE,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;AAChC,IAAI,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC;AAClC,MAAM,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AACxC,EAAE,IAAI,mBAAmB;AACzB,IAAI,KAAK,IAAI,IAAI,IAAI,mBAAmB,CAAC,CAAC,CAAC,EAAE;AAC7C,MAAM,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC;AACpC,QAAQ,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1C,KAAK;AACL,EAAE,OA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gB,EAAE,CAAC;AACjC,EAAE,uBAAuB,KAAK,CAAC,aAAa;AAC5C,IAAI,oBAAoB;AACxB,IAAI,cAAc,CAAC,cAAc,CAAC;AAClC,MAAM,GAAG;AACT,KAAK,EAAE,GAAG,CAAC,SAAS,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC;AACjF,GAAG,CAAC;AACJ,CAAC,EAAE;AACH,iBAAiB,CAAC,OAAO,GAAG,OAAO,CAAC;AACpC,iBAAiB,CAAC,WAAW,GAAG,iCAAiC;;;;"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useDrawerContext } from './Drawer.context.js';
|
|
3
|
+
import classes from './Drawer.module.css.js';
|
|
4
|
+
import { NativeScrollArea } from '../ModalBase/NativeScrollArea.js';
|
|
5
|
+
import { ModalBaseContent } from '../ModalBase/ModalBaseContent.js';
|
|
6
|
+
import { factory } from '../../core/factory/factory.js';
|
|
7
|
+
import { useProps } from '../../core/MantineProvider/use-props/use-props.js';
|
|
8
|
+
|
|
9
|
+
var __defProp = Object.defineProperty;
|
|
10
|
+
var __defProps = Object.defineProperties;
|
|
11
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
12
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
15
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16
|
+
var __spreadValues = (a, b) => {
|
|
17
|
+
for (var prop in b || (b = {}))
|
|
18
|
+
if (__hasOwnProp.call(b, prop))
|
|
19
|
+
__defNormalProp(a, prop, b[prop]);
|
|
20
|
+
if (__getOwnPropSymbols)
|
|
21
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
22
|
+
if (__propIsEnum.call(b, prop))
|
|
23
|
+
__defNormalProp(a, prop, b[prop]);
|
|
24
|
+
}
|
|
25
|
+
return a;
|
|
26
|
+
};
|
|
27
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
28
|
+
var __objRest = (source, exclude) => {
|
|
29
|
+
var target = {};
|
|
30
|
+
for (var prop in source)
|
|
31
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
32
|
+
target[prop] = source[prop];
|
|
33
|
+
if (source != null && __getOwnPropSymbols)
|
|
34
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
35
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
36
|
+
target[prop] = source[prop];
|
|
37
|
+
}
|
|
38
|
+
return target;
|
|
39
|
+
};
|
|
40
|
+
const defaultProps = {};
|
|
41
|
+
const DrawerContent = factory((_props, ref) => {
|
|
42
|
+
const props = useProps("DrawerContent", defaultProps, _props);
|
|
43
|
+
const _a = props, { classNames, className, style, styles, vars, children } = _a, others = __objRest(_a, ["classNames", "className", "style", "styles", "vars", "children"]);
|
|
44
|
+
const ctx = useDrawerContext();
|
|
45
|
+
const Scroll = ctx.scrollAreaComponent || NativeScrollArea;
|
|
46
|
+
return /* @__PURE__ */ React.createElement(
|
|
47
|
+
ModalBaseContent,
|
|
48
|
+
__spreadValues(__spreadProps(__spreadValues({}, ctx.getStyles("content", { className, style, styles, classNames })), {
|
|
49
|
+
innerProps: ctx.getStyles("inner", { className, style, styles, classNames }),
|
|
50
|
+
ref
|
|
51
|
+
}), others),
|
|
52
|
+
/* @__PURE__ */ React.createElement(Scroll, { style: { height: "100vh" } }, children)
|
|
53
|
+
);
|
|
54
|
+
});
|
|
55
|
+
DrawerContent.classes = classes;
|
|
56
|
+
DrawerContent.displayName = "@mantine/core/DrawerContent";
|
|
57
|
+
|
|
58
|
+
export { DrawerContent };
|
|
59
|
+
//# sourceMappingURL=DrawerContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrawerContent.js","sources":["../../../src/components/Drawer/DrawerContent.tsx"],"sourcesContent":["import React from 'react';\nimport { StylesApiProps, factory, useProps, Factory } from '../../core';\nimport { ModalBaseContent, ModalBaseContentProps, NativeScrollArea } from '../ModalBase';\nimport { useDrawerContext } from './Drawer.context';\nimport classes from './Drawer.module.css';\n\nexport type DrawerContentStylesNames = 'content' | 'inner';\n\nexport interface DrawerContentProps\n extends ModalBaseContentProps,\n StylesApiProps<DrawerContentFactory> {}\n\nexport type DrawerContentFactory = Factory<{\n props: DrawerContentProps;\n ref: HTMLDivElement;\n stylesNames: DrawerContentStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial<DrawerContentProps> = {};\n\nexport const DrawerContent = factory<DrawerContentFactory>((_props, ref) => {\n const props = useProps('DrawerContent', defaultProps, _props);\n const { classNames, className, style, styles, vars, children, ...others } = props;\n\n const ctx = useDrawerContext();\n const Scroll: React.FC<any> = ctx.scrollAreaComponent || NativeScrollArea;\n\n return (\n <ModalBaseContent\n {...ctx.getStyles('content', { className, style, styles, classNames })}\n innerProps={ctx.getStyles('inner', { className, style, styles, classNames })}\n ref={ref}\n {...others}\n >\n <Scroll style={{ height: '100vh' }}>{children}</Scroll>\n </ModalBaseContent>\n );\n});\n\nDrawerContent.classes = classes;\nDrawerContent.displayName = '@mantine/core/DrawerContent';\n"],"names":[],"mappings":";;;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACzC,IAAI,iBAAiB,GAAG,MAAM,CAAC,yBAAyB,CAAC;AACzD,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,S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E,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC,EAAE;AACzH,MAAM,UAAU,EAAE,GAAG,CAAC,SAAS,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;AAClF,MAAM,GAAG;AACT,KAAK,CAAC,EAAE,MAAM,CAAC;AACf,oBAAoB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,CAAC;AACzF,GAAG,CAAC;AACJ,CAAC,EAAE;AACH,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;AAChC,aAAa,CAAC,WAAW,GAAG,6BAA6B;;;;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useDrawerContext } from './Drawer.context.js';
|
|
3
|
+
import classes from './Drawer.module.css.js';
|
|
4
|
+
import { ModalBaseHeader } from '../ModalBase/ModalBaseHeader.js';
|
|
5
|
+
import { factory } from '../../core/factory/factory.js';
|
|
6
|
+
import { useProps } from '../../core/MantineProvider/use-props/use-props.js';
|
|
7
|
+
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __objRest = (source, exclude) => {
|
|
25
|
+
var target = {};
|
|
26
|
+
for (var prop in source)
|
|
27
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
if (source != null && __getOwnPropSymbols)
|
|
30
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
31
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
32
|
+
target[prop] = source[prop];
|
|
33
|
+
}
|
|
34
|
+
return target;
|
|
35
|
+
};
|
|
36
|
+
const defaultProps = {};
|
|
37
|
+
const DrawerHeader = factory((_props, ref) => {
|
|
38
|
+
const props = useProps("DrawerHeader", defaultProps, _props);
|
|
39
|
+
const _a = props, { classNames, className, style, styles, unstyled, vars } = _a, others = __objRest(_a, ["classNames", "className", "style", "styles", "unstyled", "vars"]);
|
|
40
|
+
const ctx = useDrawerContext();
|
|
41
|
+
return /* @__PURE__ */ React.createElement(
|
|
42
|
+
ModalBaseHeader,
|
|
43
|
+
__spreadValues(__spreadValues({
|
|
44
|
+
ref
|
|
45
|
+
}, ctx.getStyles("header", { classNames, style, styles, className })), others)
|
|
46
|
+
);
|
|
47
|
+
});
|
|
48
|
+
DrawerHeader.classes = classes;
|
|
49
|
+
DrawerHeader.displayName = "@mantine/core/DrawerHeader";
|
|
50
|
+
|
|
51
|
+
export { DrawerHeader };
|
|
52
|
+
//# sourceMappingURL=DrawerHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrawerHeader.js","sources":["../../../src/components/Drawer/DrawerHeader.tsx"],"sourcesContent":["import React from 'react';\nimport { StylesApiProps, factory, useProps, Factory } from '../../core';\nimport { ModalBaseHeader, ModalBaseHeaderProps } from '../ModalBase';\nimport { useDrawerContext } from './Drawer.context';\nimport classes from './Drawer.module.css';\n\nexport type DrawerHeaderStylesNames = 'header';\n\nexport interface DrawerHeaderProps\n extends ModalBaseHeaderProps,\n StylesApiProps<DrawerHeaderFactory> {}\n\nexport type DrawerHeaderFactory = Factory<{\n props: DrawerHeaderProps;\n ref: HTMLDivElement;\n stylesNames: DrawerHeaderStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial<DrawerHeaderProps> = {};\n\nexport const DrawerHeader = factory<DrawerHeaderFactory>((_props, ref) => {\n const props = useProps('DrawerHeader', defaultProps, _props);\n const { classNames, className, style, styles, unstyled, vars, ...others } = props;\n\n const ctx = useDrawerContext();\n\n return (\n <ModalBaseHeader\n ref={ref}\n {...ctx.getStyles('header', { classNames, style, styles, className })}\n {...others}\n />\n );\n});\n\nDrawerHeader.classes = classes;\nDrawerHeader.displayName = '@mantine/core/DrawerHeader';\n"],"names":[],"mappings":";;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,KAAK,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAChK,IAAI,cAAc,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK;AAC/B,EAAE,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;AAChC,IAAI,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,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QAAQ,CAAC,cAAc,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;AAC/D,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC,EAAE,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;AAC9K,EAAE,MAAM,GAAG,GAAG,gBAAgB,EAAE,CAAC;AACjC,EAAE,uBAAuB,KAAK,CAAC,aAAa;AAC5C,IAAI,eAAe;AACnB,IAAI,cAAc,CAAC,cAAc,CAAC;AAClC,MAAM,GAAG;AACT,KAAK,EAAE,GAAG,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC;AAClF,GAAG,CAAC;AACJ,CAAC,EAAE;AACH,YAAY,CAAC,OAAO,GAAG,OAAO,CAAC;AAC/B,YAAY,CAAC,WAAW,GAAG,4BAA4B;;;;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useDrawerContext } from './Drawer.context.js';
|
|
3
|
+
import classes from './Drawer.module.css.js';
|
|
4
|
+
import { ModalBaseOverlay } from '../ModalBase/ModalBaseOverlay.js';
|
|
5
|
+
import { factory } from '../../core/factory/factory.js';
|
|
6
|
+
import { useProps } from '../../core/MantineProvider/use-props/use-props.js';
|
|
7
|
+
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __objRest = (source, exclude) => {
|
|
25
|
+
var target = {};
|
|
26
|
+
for (var prop in source)
|
|
27
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
if (source != null && __getOwnPropSymbols)
|
|
30
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
31
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
32
|
+
target[prop] = source[prop];
|
|
33
|
+
}
|
|
34
|
+
return target;
|
|
35
|
+
};
|
|
36
|
+
const defaultProps = {};
|
|
37
|
+
const DrawerOverlay = factory((_props, ref) => {
|
|
38
|
+
const props = useProps("DrawerOverlay", defaultProps, _props);
|
|
39
|
+
const _a = props, { classNames, className, style, styles, unstyled, vars } = _a, others = __objRest(_a, ["classNames", "className", "style", "styles", "unstyled", "vars"]);
|
|
40
|
+
const ctx = useDrawerContext();
|
|
41
|
+
return /* @__PURE__ */ React.createElement(
|
|
42
|
+
ModalBaseOverlay,
|
|
43
|
+
__spreadValues(__spreadValues({
|
|
44
|
+
ref
|
|
45
|
+
}, ctx.getStyles("overlay", { classNames, style, styles, className })), others)
|
|
46
|
+
);
|
|
47
|
+
});
|
|
48
|
+
DrawerOverlay.classes = classes;
|
|
49
|
+
DrawerOverlay.displayName = "@mantine/core/DrawerOverlay";
|
|
50
|
+
|
|
51
|
+
export { DrawerOverlay };
|
|
52
|
+
//# sourceMappingURL=DrawerOverlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrawerOverlay.js","sources":["../../../src/components/Drawer/DrawerOverlay.tsx"],"sourcesContent":["import React from 'react';\nimport { StylesApiProps, factory, useProps, Factory } from '../../core';\nimport { ModalBaseOverlay, ModalBaseOverlayProps } from '../ModalBase';\nimport { useDrawerContext } from './Drawer.context';\nimport classes from './Drawer.module.css';\n\nexport type DrawerOverlayStylesNames = 'overlay';\n\nexport interface DrawerOverlayProps\n extends ModalBaseOverlayProps,\n StylesApiProps<DrawerOverlayFactory> {}\n\nexport type DrawerOverlayFactory = Factory<{\n props: DrawerOverlayProps;\n ref: HTMLDivElement;\n stylesNames: DrawerOverlayStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial<DrawerOverlayProps> = {};\n\nexport const DrawerOverlay = factory<DrawerOverlayFactory>((_props, ref) => {\n const props = useProps('DrawerOverlay', defaultProps, _props);\n const { classNames, className, style, styles, unstyled, vars, ...others } = props;\n\n const ctx = useDrawerContext();\n\n return (\n <ModalBaseOverlay\n ref={ref}\n {...ctx.getStyles('overlay', { classNames, style, styles, className })}\n {...others}\n />\n );\n});\n\nDrawerOverlay.classes = classes;\nDrawerOverlay.displayName = '@mantine/core/DrawerOverlay';\n"],"names":[],"mappings":";;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,KAAK,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE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