@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
package/esm/index.css
CHANGED
|
@@ -40,6 +40,13 @@ body {
|
|
|
40
40
|
-moz-osx-font-smoothing: var(--mantine-moz-font-smoothing);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
@media screen and (max-device-width: 500px) {
|
|
44
|
+
|
|
45
|
+
body {
|
|
46
|
+
-webkit-text-size-adjust: 100%
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
43
50
|
@media (prefers-reduced-motion: reduce) {
|
|
44
51
|
[data-respect-reduced-motion] [data-reduce-motion] {
|
|
45
52
|
transition: none;
|
|
@@ -2218,6 +2225,151 @@ body {
|
|
|
2218
2225
|
border-radius: 10000rem;
|
|
2219
2226
|
}
|
|
2220
2227
|
|
|
2228
|
+
.mantine--1TgA5h {
|
|
2229
|
+
--combobox-chevron-size-xs: calc(0.875rem * var(--mantine-scale));
|
|
2230
|
+
--combobox-chevron-size-sm: calc(1.125rem * var(--mantine-scale));
|
|
2231
|
+
--combobox-chevron-size-md: calc(1.25rem * var(--mantine-scale));
|
|
2232
|
+
--combobox-chevron-size-lg: calc(1.5rem * var(--mantine-scale));
|
|
2233
|
+
--combobox-chevron-size-xl: calc(1.75rem * var(--mantine-scale));
|
|
2234
|
+
|
|
2235
|
+
width: var(--combobox-chevron-size);
|
|
2236
|
+
height: var(--combobox-chevron-size);
|
|
2237
|
+
color: var(--_color);
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
[data-mantine-color-scheme='light'] .mantine--1TgA5h {
|
|
2241
|
+
--_color: var(--mantine-color-gray-6);
|
|
2242
|
+
}
|
|
2243
|
+
|
|
2244
|
+
[data-mantine-color-scheme='dark'] .mantine--1TgA5h {
|
|
2245
|
+
--_color: var(--mantine-color-dark-3);
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2248
|
+
.mantine--1TgA5h[data-error] {
|
|
2249
|
+
--_color: var(--mantine-color-error);
|
|
2250
|
+
}
|
|
2251
|
+
|
|
2252
|
+
.mantine-Hu7S-XH {
|
|
2253
|
+
position: absolute;
|
|
2254
|
+
background-color: var(--_popover-bg);
|
|
2255
|
+
border: calc(0.0625rem * var(--mantine-scale)) solid var(--_popover-bd);
|
|
2256
|
+
padding: var(--mantine-spacing-sm) var(--mantine-spacing-md);
|
|
2257
|
+
box-shadow: var(--popover-shadow, none);
|
|
2258
|
+
border-radius: var(--popover-radius);
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
.mantine-Hu7S-XH:focus {
|
|
2262
|
+
outline: none;
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
[data-mantine-color-scheme='light'] .mantine-Hu7S-XH {
|
|
2266
|
+
--_popover-bg: var(--mantine-color-white);
|
|
2267
|
+
--_popover-bd: var(--mantine-color-gray-2);
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
[data-mantine-color-scheme='dark'] .mantine-Hu7S-XH {
|
|
2271
|
+
--_popover-bg: var(--mantine-color-dark-6);
|
|
2272
|
+
--_popover-bd: var(--mantine-color-dark-4);
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
.mantine-XLi9Yuw {
|
|
2276
|
+
background-color: inherit;
|
|
2277
|
+
border: calc(0.0625rem * var(--mantine-scale)) solid var(--_popover-bd);
|
|
2278
|
+
z-index: 1;
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
.mantine-oGVJEaz {
|
|
2282
|
+
--combobox-option-padding-xs: calc(0.25rem * var(--mantine-scale)) calc(0.5rem * var(--mantine-scale));
|
|
2283
|
+
--combobox-option-padding-sm: calc(0.375rem * var(--mantine-scale)) calc(0.625rem * var(--mantine-scale));
|
|
2284
|
+
--combobox-option-padding-md: calc(0.5rem * var(--mantine-scale)) calc(0.75rem * var(--mantine-scale));
|
|
2285
|
+
--combobox-option-padding-lg: calc(0.625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));
|
|
2286
|
+
--combobox-option-padding-xl: calc(0.875rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));
|
|
2287
|
+
|
|
2288
|
+
padding: var(--combobox-padding);
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
.mantine-oGVJEaz[data-hidden] {
|
|
2292
|
+
display: none;
|
|
2293
|
+
}
|
|
2294
|
+
|
|
2295
|
+
.mantine-Jvh599k {
|
|
2296
|
+
padding: var(--combobox-option-padding);
|
|
2297
|
+
font-size: var(--combobox-option-fz);
|
|
2298
|
+
border-radius: var(--mantine-radius-default);
|
|
2299
|
+
background-color: var(--_option-bg, transparent);
|
|
2300
|
+
color: var(--_option-color, inherit);
|
|
2301
|
+
opacity: var(--_option-opacity, 1);
|
|
2302
|
+
cursor: var(--_option-cursor, pointer);
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
.mantine-Jvh599k[data-combobox-selected] {
|
|
2306
|
+
--_option-bg: var(--mantine-color-primary);
|
|
2307
|
+
--_option-color: var(--mantine-color-white);
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
.mantine-Jvh599k[data-combobox-disabled] {
|
|
2311
|
+
--_option-cursor: not-allowed;
|
|
2312
|
+
--_option-opacity: 0.35;
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
@media (hover: hover) {
|
|
2316
|
+
[data-mantine-color-scheme='light'] .mantine-Jvh599k:hover:not([data-combobox-selected], [data-combobox-disabled]) {
|
|
2317
|
+
--_option-bg: var(--mantine-color-gray-0);
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
[data-mantine-color-scheme='dark'] .mantine-Jvh599k:hover:not([data-combobox-selected], [data-combobox-disabled]) {
|
|
2321
|
+
--_option-bg: var(--mantine-color-dark-7);
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
@media (hover: none) {
|
|
2326
|
+
[data-mantine-color-scheme='light'] .mantine-Jvh599k:active:not([data-combobox-selected], [data-combobox-disabled]) {
|
|
2327
|
+
--_option-bg: var(--mantine-color-gray-0);
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2330
|
+
[data-mantine-color-scheme='dark'] .mantine-Jvh599k:active:not([data-combobox-selected], [data-combobox-disabled]) {
|
|
2331
|
+
--_option-bg: var(--mantine-color-dark-7);
|
|
2332
|
+
}
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
.mantine-E0imXrV {
|
|
2336
|
+
margin-left: calc(var(--combobox-padding) * -1);
|
|
2337
|
+
margin-right: calc(var(--combobox-padding) * -1);
|
|
2338
|
+
margin-top: calc(var(--combobox-padding) * -1);
|
|
2339
|
+
width: calc(100% + var(--combobox-padding) * 2);
|
|
2340
|
+
border-top-width: 0;
|
|
2341
|
+
border-right-width: 0;
|
|
2342
|
+
border-left-width: 0;
|
|
2343
|
+
border-bottom-left-radius: 0;
|
|
2344
|
+
border-bottom-right-radius: 0;
|
|
2345
|
+
margin-bottom: var(--combobox-padding);
|
|
2346
|
+
background-color: var(--_search_background);
|
|
2347
|
+
position: relative;
|
|
2348
|
+
z-index: 1000;
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
.mantine-E0imXrV,
|
|
2352
|
+
.mantine-E0imXrV:focus {
|
|
2353
|
+
border-color: var(--_search-border-color);
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2356
|
+
[data-mantine-color-scheme='light'] .mantine-E0imXrV {
|
|
2357
|
+
--_search-border-color: var(--mantine-color-gray-2);
|
|
2358
|
+
--_search_background: var(--mantine-color-white);
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2361
|
+
[data-mantine-color-scheme='dark'] .mantine-E0imXrV {
|
|
2362
|
+
--_search-border-color: var(--mantine-color-dark-4);
|
|
2363
|
+
--_search_background: var(--mantine-color-dark-7);
|
|
2364
|
+
}
|
|
2365
|
+
|
|
2366
|
+
.mantine-AHC-x-C {
|
|
2367
|
+
font-size: var(--combobox-option-fz);
|
|
2368
|
+
text-align: center;
|
|
2369
|
+
padding: var(--combobox-option-padding);
|
|
2370
|
+
color: var(--mantine-color-dimmed);
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2221
2373
|
.mantine-jQnfD5v {
|
|
2222
2374
|
--container-size-xs: calc(33.75rem * var(--mantine-scale));
|
|
2223
2375
|
--container-size-sm: calc(45rem * var(--mantine-scale));
|
|
@@ -2308,6 +2460,136 @@ body {
|
|
|
2308
2460
|
margin-right: var(--mantine-spacing-xs);
|
|
2309
2461
|
}
|
|
2310
2462
|
|
|
2463
|
+
.mantine-i2zl3YF {
|
|
2464
|
+
line-height: 1;
|
|
2465
|
+
padding: 0;
|
|
2466
|
+
margin: 0;
|
|
2467
|
+
font-weight: 400;
|
|
2468
|
+
font-size: var(--mantine-font-size-md);
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2471
|
+
.mantine-zfPHD3v {
|
|
2472
|
+
display: flex;
|
|
2473
|
+
justify-content: space-between;
|
|
2474
|
+
align-items: center;
|
|
2475
|
+
padding: var(--mb-padding);
|
|
2476
|
+
padding-right: var(--_pr, calc(var(--mb-padding) - calc(0.3125rem * var(--mantine-scale))));
|
|
2477
|
+
padding-left: var(--_pl, var(--mb-padding));
|
|
2478
|
+
position: sticky;
|
|
2479
|
+
top: 0;
|
|
2480
|
+
background-color: var(--mantine-color-body);
|
|
2481
|
+
z-index: 1000;
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2484
|
+
[dir="rtl"] .mantine-zfPHD3v {
|
|
2485
|
+
--_pr: var(--mb-padding);
|
|
2486
|
+
--_pl: calc(var(--mb-padding) - calc(0.3125rem * var(--mantine-scale)));
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
.mantine-4xc51-t {
|
|
2490
|
+
position: fixed;
|
|
2491
|
+
width: 100%;
|
|
2492
|
+
top: 0;
|
|
2493
|
+
bottom: 0;
|
|
2494
|
+
z-index: calc(var(--mb-z-index) + 1);
|
|
2495
|
+
pointer-events: none;
|
|
2496
|
+
}
|
|
2497
|
+
|
|
2498
|
+
.mantine-z46xbr2 {
|
|
2499
|
+
pointer-events: all;
|
|
2500
|
+
box-shadow: var(--mb-shadow);
|
|
2501
|
+
}
|
|
2502
|
+
|
|
2503
|
+
.mantine-HTNzGUo {
|
|
2504
|
+
margin-left: var(--_close-ml, auto);
|
|
2505
|
+
margin-right: var(--_close-mr, 0);
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
[dir="rtl"] .mantine-HTNzGUo {
|
|
2509
|
+
--_close-ml: 0;
|
|
2510
|
+
--_close-mr: auto;
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
.mantine-YGR5-68 {
|
|
2514
|
+
padding: var(--mb-padding);
|
|
2515
|
+
padding-top: var(--_pt, var(--mb-padding));
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2518
|
+
.mantine-YGR5-68:not(:only-child) {
|
|
2519
|
+
--_pt: 0;
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
.mantine-lqpFSmK {
|
|
2523
|
+
outline: 0;
|
|
2524
|
+
-webkit-tap-highlight-color: transparent;
|
|
2525
|
+
display: block;
|
|
2526
|
+
touch-action: manipulation;
|
|
2527
|
+
text-decoration: none;
|
|
2528
|
+
border-radius: var(--paper-radius);
|
|
2529
|
+
box-shadow: var(--paper-shadow);
|
|
2530
|
+
background-color: var(--mantine-color-body);
|
|
2531
|
+
border: var(--_paper-border-width, 0) solid var(--_paper-border-color, transparent);
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
.mantine-lqpFSmK[data-with-border] {
|
|
2535
|
+
--_paper-border-width: 1px;
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
[data-mantine-color-scheme='light'] .mantine-lqpFSmK[data-with-border] {
|
|
2539
|
+
--_paper-border-color: var(--mantine-color-gray-3);
|
|
2540
|
+
}
|
|
2541
|
+
|
|
2542
|
+
[data-mantine-color-scheme='dark'] .mantine-lqpFSmK[data-with-border] {
|
|
2543
|
+
--_paper-border-color: var(--mantine-color-dark-4);
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
.mantine-aUY-pnb {
|
|
2547
|
+
inset: 0;
|
|
2548
|
+
position: var(--_overlay-position, absolute);
|
|
2549
|
+
background: var(--overlay-bg);
|
|
2550
|
+
backdrop-filter: var(--overlay-filter);
|
|
2551
|
+
border-radius: var(--overlay-radius);
|
|
2552
|
+
z-index: var(--overlay-z-index);
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2555
|
+
.mantine-aUY-pnb[data-fixed] {
|
|
2556
|
+
--_overlay-position: fixed;
|
|
2557
|
+
}
|
|
2558
|
+
|
|
2559
|
+
.mantine-aUY-pnb[data-center] {
|
|
2560
|
+
display: flex;
|
|
2561
|
+
align-items: center;
|
|
2562
|
+
justify-content: center;
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
.mantine-5KeVJJi {
|
|
2566
|
+
--drawer-size-xs: calc(20rem * var(--mantine-scale));
|
|
2567
|
+
--drawer-size-sm: calc(23.75rem * var(--mantine-scale));
|
|
2568
|
+
--drawer-size-md: calc(27.5rem * var(--mantine-scale));
|
|
2569
|
+
--drawer-size-lg: calc(38.75rem * var(--mantine-scale));
|
|
2570
|
+
--drawer-size-xl: calc(48.75rem * var(--mantine-scale));
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
.mantine--zh-iwI {
|
|
2574
|
+
z-index: 1000;
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2577
|
+
.mantine-LP0gMBl {
|
|
2578
|
+
--paper-radius: 0 !important;
|
|
2579
|
+
flex: var(--drawer-flex);
|
|
2580
|
+
height: var(--drawer-height);
|
|
2581
|
+
max-width: 100%;
|
|
2582
|
+
max-height: 100%;
|
|
2583
|
+
border-radius: 0;
|
|
2584
|
+
overflow-y: auto;
|
|
2585
|
+
}
|
|
2586
|
+
|
|
2587
|
+
.mantine-KKTsYnZ {
|
|
2588
|
+
display: flex;
|
|
2589
|
+
justify-content: var(--drawer-justify);
|
|
2590
|
+
align-items: var(--drawer-align);
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2311
2593
|
.mantine-aYUA2uh {
|
|
2312
2594
|
padding: var(--mantine-spacing-lg);
|
|
2313
2595
|
padding-top: var(--mantine-spacing-xs);
|
|
@@ -2375,17 +2657,15 @@ body {
|
|
|
2375
2657
|
|
|
2376
2658
|
.mantine--7TY0Qe {
|
|
2377
2659
|
background-color: var(--_mark-bg);
|
|
2378
|
-
color: var(--
|
|
2660
|
+
color: var(--mantine-color-black);
|
|
2379
2661
|
}
|
|
2380
2662
|
|
|
2381
2663
|
[data-mantine-color-scheme='light'] .mantine--7TY0Qe {
|
|
2382
2664
|
--_mark-bg: var(--mark-bg-light);
|
|
2383
|
-
--_mark-color: inherit;
|
|
2384
2665
|
}
|
|
2385
2666
|
|
|
2386
2667
|
[data-mantine-color-scheme='dark'] .mantine--7TY0Qe {
|
|
2387
2668
|
--_mark-bg: var(--mark-bg-dark);
|
|
2388
|
-
--_mark-color: var(--mantine-color-dark-9);
|
|
2389
2669
|
}
|
|
2390
2670
|
|
|
2391
2671
|
.mantine-w2QLGBV {
|
|
@@ -2425,108 +2705,6 @@ body {
|
|
|
2425
2705
|
--_kbd-bg: var(--mantine-color-dark-5);
|
|
2426
2706
|
}
|
|
2427
2707
|
|
|
2428
|
-
.mantine-i2zl3YF {
|
|
2429
|
-
line-height: 1;
|
|
2430
|
-
padding: 0;
|
|
2431
|
-
margin: 0;
|
|
2432
|
-
font-weight: 400;
|
|
2433
|
-
font-size: var(--mantine-font-size-md);
|
|
2434
|
-
}
|
|
2435
|
-
|
|
2436
|
-
.mantine-zfPHD3v {
|
|
2437
|
-
display: flex;
|
|
2438
|
-
justify-content: space-between;
|
|
2439
|
-
align-items: center;
|
|
2440
|
-
padding: var(--mb-padding);
|
|
2441
|
-
padding-right: var(--_pr, calc(var(--mb-padding) - calc(0.3125rem * var(--mantine-scale))));
|
|
2442
|
-
padding-left: var(--_pl, var(--mb-padding));
|
|
2443
|
-
position: sticky;
|
|
2444
|
-
top: 0;
|
|
2445
|
-
background-color: var(--mantine-color-body);
|
|
2446
|
-
z-index: 1000;
|
|
2447
|
-
}
|
|
2448
|
-
|
|
2449
|
-
[dir="rtl"] .mantine-zfPHD3v {
|
|
2450
|
-
--_pr: var(--mb-padding);
|
|
2451
|
-
--_pl: calc(var(--mb-padding) - calc(0.3125rem * var(--mantine-scale)));
|
|
2452
|
-
}
|
|
2453
|
-
|
|
2454
|
-
.mantine-4xc51-t {
|
|
2455
|
-
position: fixed;
|
|
2456
|
-
width: 100%;
|
|
2457
|
-
top: 0;
|
|
2458
|
-
bottom: 0;
|
|
2459
|
-
z-index: calc(var(--mb-z-index) + 1);
|
|
2460
|
-
pointer-events: none;
|
|
2461
|
-
}
|
|
2462
|
-
|
|
2463
|
-
.mantine-z46xbr2 {
|
|
2464
|
-
pointer-events: all;
|
|
2465
|
-
box-shadow: var(--mb-shadow);
|
|
2466
|
-
}
|
|
2467
|
-
|
|
2468
|
-
.mantine-HTNzGUo {
|
|
2469
|
-
margin-left: var(--_close-ml, auto);
|
|
2470
|
-
margin-right: var(--_close-mr, 0);
|
|
2471
|
-
}
|
|
2472
|
-
|
|
2473
|
-
[dir="rtl"] .mantine-HTNzGUo {
|
|
2474
|
-
--_close-ml: 0;
|
|
2475
|
-
--_close-mr: auto;
|
|
2476
|
-
}
|
|
2477
|
-
|
|
2478
|
-
.mantine-YGR5-68 {
|
|
2479
|
-
padding: var(--mb-padding);
|
|
2480
|
-
padding-top: var(--_pt, var(--mb-padding));
|
|
2481
|
-
}
|
|
2482
|
-
|
|
2483
|
-
.mantine-YGR5-68:not(:only-child) {
|
|
2484
|
-
--_pt: 0;
|
|
2485
|
-
}
|
|
2486
|
-
|
|
2487
|
-
.mantine-lqpFSmK {
|
|
2488
|
-
outline: 0;
|
|
2489
|
-
-webkit-tap-highlight-color: transparent;
|
|
2490
|
-
display: block;
|
|
2491
|
-
touch-action: manipulation;
|
|
2492
|
-
text-decoration: none;
|
|
2493
|
-
border-radius: var(--paper-radius);
|
|
2494
|
-
box-shadow: var(--paper-shadow);
|
|
2495
|
-
background-color: var(--mantine-color-body);
|
|
2496
|
-
border: var(--_paper-border-width, 0) solid var(--_paper-border-color, transparent);
|
|
2497
|
-
}
|
|
2498
|
-
|
|
2499
|
-
.mantine-lqpFSmK[data-with-border] {
|
|
2500
|
-
--_paper-border-width: 1px;
|
|
2501
|
-
}
|
|
2502
|
-
|
|
2503
|
-
[data-mantine-color-scheme='light'] .mantine-lqpFSmK[data-with-border] {
|
|
2504
|
-
--_paper-border-color: var(--mantine-color-gray-3);
|
|
2505
|
-
}
|
|
2506
|
-
|
|
2507
|
-
[data-mantine-color-scheme='dark'] .mantine-lqpFSmK[data-with-border] {
|
|
2508
|
-
--_paper-border-color: var(--mantine-color-dark-4);
|
|
2509
|
-
}
|
|
2510
|
-
|
|
2511
|
-
.mantine-aUY-pnb {
|
|
2512
|
-
inset: 0;
|
|
2513
|
-
position: var(--_overlay-position, absolute);
|
|
2514
|
-
background: var(--overlay-bg);
|
|
2515
|
-
backdrop-filter: var(--overlay-filter);
|
|
2516
|
-
border-radius: var(--overlay-radius);
|
|
2517
|
-
z-index: var(--overlay-z-index);
|
|
2518
|
-
}
|
|
2519
|
-
|
|
2520
|
-
.mantine-aUY-pnb[data-fixed] {
|
|
2521
|
-
--_overlay-position: fixed;
|
|
2522
|
-
}
|
|
2523
|
-
|
|
2524
|
-
.mantine-aUY-pnb[data-center] {
|
|
2525
|
-
display: flex;
|
|
2526
|
-
align-items: center;
|
|
2527
|
-
justify-content: center;
|
|
2528
|
-
}
|
|
2529
|
-
|
|
2530
2708
|
.mantine-rDD4RW2 {
|
|
2531
2709
|
--modal-size-xs: calc(20rem * var(--mantine-scale));
|
|
2532
2710
|
--modal-size-sm: calc(23.75rem * var(--mantine-scale));
|
|
@@ -2577,30 +2755,6 @@ body {
|
|
|
2577
2755
|
padding-right: var(--_inner-x-offset, var(--modal-x-offset));
|
|
2578
2756
|
}
|
|
2579
2757
|
|
|
2580
|
-
.mantine--1TgA5h {
|
|
2581
|
-
--combobox-chevron-size-xs: calc(0.875rem * var(--mantine-scale));
|
|
2582
|
-
--combobox-chevron-size-sm: calc(1.125rem * var(--mantine-scale));
|
|
2583
|
-
--combobox-chevron-size-md: calc(1.25rem * var(--mantine-scale));
|
|
2584
|
-
--combobox-chevron-size-lg: calc(1.5rem * var(--mantine-scale));
|
|
2585
|
-
--combobox-chevron-size-xl: calc(1.75rem * var(--mantine-scale));
|
|
2586
|
-
|
|
2587
|
-
width: var(--combobox-chevron-size);
|
|
2588
|
-
height: var(--combobox-chevron-size);
|
|
2589
|
-
color: var(--_color);
|
|
2590
|
-
}
|
|
2591
|
-
|
|
2592
|
-
[data-mantine-color-scheme='light'] .mantine--1TgA5h {
|
|
2593
|
-
--_color: var(--mantine-color-gray-6);
|
|
2594
|
-
}
|
|
2595
|
-
|
|
2596
|
-
[data-mantine-color-scheme='dark'] .mantine--1TgA5h {
|
|
2597
|
-
--_color: var(--mantine-color-dark-3);
|
|
2598
|
-
}
|
|
2599
|
-
|
|
2600
|
-
.mantine--1TgA5h[data-error] {
|
|
2601
|
-
--_color: var(--mantine-color-error);
|
|
2602
|
-
}
|
|
2603
|
-
|
|
2604
2758
|
.mantine-YiPmNPd {
|
|
2605
2759
|
overflow: hidden;
|
|
2606
2760
|
box-sizing: border-box;
|
|
@@ -2757,35 +2911,6 @@ body {
|
|
|
2757
2911
|
--_close-button-hover-bg: var(--mantine-color-dark-8);
|
|
2758
2912
|
}
|
|
2759
2913
|
|
|
2760
|
-
.mantine-Hu7S-XH {
|
|
2761
|
-
position: absolute;
|
|
2762
|
-
background-color: var(--_popover-bg);
|
|
2763
|
-
border: calc(0.0625rem * var(--mantine-scale)) solid var(--_popover-bd);
|
|
2764
|
-
padding: var(--mantine-spacing-sm) var(--mantine-spacing-md);
|
|
2765
|
-
box-shadow: var(--popover-shadow, none);
|
|
2766
|
-
border-radius: var(--popover-radius);
|
|
2767
|
-
}
|
|
2768
|
-
|
|
2769
|
-
.mantine-Hu7S-XH:focus {
|
|
2770
|
-
outline: none;
|
|
2771
|
-
}
|
|
2772
|
-
|
|
2773
|
-
[data-mantine-color-scheme='light'] .mantine-Hu7S-XH {
|
|
2774
|
-
--_popover-bg: var(--mantine-color-white);
|
|
2775
|
-
--_popover-bd: var(--mantine-color-gray-2);
|
|
2776
|
-
}
|
|
2777
|
-
|
|
2778
|
-
[data-mantine-color-scheme='dark'] .mantine-Hu7S-XH {
|
|
2779
|
-
--_popover-bg: var(--mantine-color-dark-6);
|
|
2780
|
-
--_popover-bd: var(--mantine-color-dark-4);
|
|
2781
|
-
}
|
|
2782
|
-
|
|
2783
|
-
.mantine-XLi9Yuw {
|
|
2784
|
-
background-color: inherit;
|
|
2785
|
-
border: calc(0.0625rem * var(--mantine-scale)) solid var(--_popover-bd);
|
|
2786
|
-
z-index: 1;
|
|
2787
|
-
}
|
|
2788
|
-
|
|
2789
2914
|
.mantine--CW641A {
|
|
2790
2915
|
position: relative;
|
|
2791
2916
|
overflow: hidden;
|
package/esm/index.js
CHANGED
|
@@ -17,6 +17,8 @@ export { closeOnEscape } from './core/utils/close-on-escape/close-on-escape.js';
|
|
|
17
17
|
export { noop } from './core/utils/noop/noop.js';
|
|
18
18
|
export { getFontSize, getLineHeight, getRadius, getShadow, getSize, getSpacing } from './core/utils/get-size/get-size.js';
|
|
19
19
|
export { createVarsResolver } from './core/styles-api/create-vars-resolver/create-vars-resolver.js';
|
|
20
|
+
export { resolveClassNames } from './core/styles-api/use-styles/get-class-name/resolve-class-names/resolve-class-names.js';
|
|
21
|
+
export { resolveStyles } from './core/styles-api/use-styles/get-style/resolve-styles/resolve-styles.js';
|
|
20
22
|
export { FOCUS_CLASS_NAMES } from './core/styles-api/use-styles/get-class-name/get-global-class-names/get-global-class-names.js';
|
|
21
23
|
export { useStyles } from './core/styles-api/use-styles/use-styles.js';
|
|
22
24
|
export { DEFAULT_THEME } from './core/MantineProvider/default-theme.js';
|
|
@@ -82,9 +84,29 @@ export { Code } from './components/Code/Code.js';
|
|
|
82
84
|
export { Collapse } from './components/Collapse/Collapse.js';
|
|
83
85
|
export { ColorPicker } from './components/ColorPicker/ColorPicker.js';
|
|
84
86
|
export { ColorSwatch } from './components/ColorSwatch/ColorSwatch.js';
|
|
87
|
+
export { getParsedComboboxData } from './components/Combobox/get-parsed-combobox-data/get-parsed-combobox-data.js';
|
|
88
|
+
export { ComboboxChevron } from './components/Combobox/ComboboxChevron/ComboboxChevron.js';
|
|
89
|
+
export { Combobox } from './components/Combobox/Combobox.js';
|
|
90
|
+
export { ComboboxDropdown } from './components/Combobox/ComboboxDropdown/ComboboxDropdown.js';
|
|
91
|
+
export { ComboboxOptions } from './components/Combobox/ComboboxOptions/ComboboxOptions.js';
|
|
92
|
+
export { ComboboxOption } from './components/Combobox/ComboboxOption/ComboboxOption.js';
|
|
93
|
+
export { ComboboxTarget } from './components/Combobox/ComboboxTarget/ComboboxTarget.js';
|
|
94
|
+
export { ComboboxSearch } from './components/Combobox/ComboboxSearch/ComboboxSearch.js';
|
|
95
|
+
export { ComboboxEmpty } from './components/Combobox/ComboboxEmpty/ComboboxEmpty.js';
|
|
96
|
+
export { useCombobox } from './components/Combobox/use-combobox/use-combobox.js';
|
|
97
|
+
export { useVirtualizedCombobox } from './components/Combobox/use-combobox/use-virtualized-combobox.js';
|
|
98
|
+
export { useComboboxTargetProps } from './components/Combobox/use-combobox-target-props/use-combobox-target-props.js';
|
|
85
99
|
export { Container } from './components/Container/Container.js';
|
|
86
100
|
export { CopyButton } from './components/CopyButton/CopyButton.js';
|
|
87
101
|
export { Divider } from './components/Divider/Divider.js';
|
|
102
|
+
export { Drawer } from './components/Drawer/Drawer.js';
|
|
103
|
+
export { DrawerRoot } from './components/Drawer/DrawerRoot.js';
|
|
104
|
+
export { DrawerBody } from './components/Drawer/DrawerBody.js';
|
|
105
|
+
export { DrawerCloseButton } from './components/Drawer/DrawerCloseButton.js';
|
|
106
|
+
export { DrawerContent } from './components/Drawer/DrawerContent.js';
|
|
107
|
+
export { DrawerHeader } from './components/Drawer/DrawerHeader.js';
|
|
108
|
+
export { DrawerOverlay } from './components/Drawer/DrawerOverlay.js';
|
|
109
|
+
export { DrawerTitle } from './components/Drawer/DrawerTitle.js';
|
|
88
110
|
export { Fieldset } from './components/Fieldset/Fieldset.js';
|
|
89
111
|
export { FileButton } from './components/FileButton/FileButton.js';
|
|
90
112
|
export { useDelayedHover } from './components/Floating/use-delayed-hover.js';
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GetStylesApi, MantineSize } from '../../core';
|
|
2
|
+
import type { ComboboxFactory } from './Combobox';
|
|
3
|
+
import type { ComboboxOptionProps } from './ComboboxOption/ComboboxOption';
|
|
4
|
+
import type { ComboboxStore } from './use-combobox/use-combobox';
|
|
5
|
+
export interface ComboboxContextValue {
|
|
6
|
+
getStyles: GetStylesApi<ComboboxFactory>;
|
|
7
|
+
store: ComboboxStore;
|
|
8
|
+
onOptionSelect?(value: string, optionProps: ComboboxOptionProps): void;
|
|
9
|
+
size: MantineSize | (string & {});
|
|
10
|
+
resetSelectionOnOptionHover: boolean | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare const ComboboxProvider: ({ children, value }: {
|
|
13
|
+
value: ComboboxContextValue;
|
|
14
|
+
children: import("react").ReactNode;
|
|
15
|
+
}) => JSX.Element, useComboboxContext: () => ComboboxContextValue;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StylesApiProps, Factory, MantineSize } from '../../core';
|
|
3
|
+
import { __PopoverProps } from '../Popover';
|
|
4
|
+
import { ComboboxStore } from './use-combobox/use-combobox';
|
|
5
|
+
import { ComboboxTarget } from './ComboboxTarget/ComboboxTarget';
|
|
6
|
+
import { ComboboxDropdown } from './ComboboxDropdown/ComboboxDropdown';
|
|
7
|
+
import { ComboboxOptions } from './ComboboxOptions/ComboboxOptions';
|
|
8
|
+
import { ComboboxOption, ComboboxOptionProps } from './ComboboxOption/ComboboxOption';
|
|
9
|
+
import { ComboboxSearch } from './ComboboxSearch/ComboboxSearch';
|
|
10
|
+
import { ComboboxEmpty } from './ComboboxEmpty/ComboboxEmpty';
|
|
11
|
+
import { ComboboxChevron } from './ComboboxChevron/ComboboxChevron';
|
|
12
|
+
export type ComboboxStylesNames = 'options' | 'dropdown' | 'option' | 'search' | 'empty';
|
|
13
|
+
export type ComboboxCSSVariables = {
|
|
14
|
+
dropdown: '--combobox-option-fz' | '--combobox-padding' | '--combobox-option-padding';
|
|
15
|
+
};
|
|
16
|
+
export interface ComboboxProps extends __PopoverProps, StylesApiProps<ComboboxFactory> {
|
|
17
|
+
/** Combobox content */
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
/** Combobox store, can be used to control combobox state */
|
|
20
|
+
store?: ComboboxStore;
|
|
21
|
+
/** Called when item is selected with `Enter` key or by clicking it */
|
|
22
|
+
onOptionSelect?(value: string, optionProps: ComboboxOptionProps): void;
|
|
23
|
+
/** Controls items `font-size` and `padding`, `'sm'` by default */
|
|
24
|
+
size?: MantineSize | (string & {});
|
|
25
|
+
/** Controls `padding` of the dropdown, `4` by default */
|
|
26
|
+
dropdownPadding?: React.CSSProperties['padding'];
|
|
27
|
+
/** Determines whether selection should be reset when option is hovered, `false` by default */
|
|
28
|
+
resetSelectionOnOptionHover?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export type ComboboxFactory = Factory<{
|
|
31
|
+
props: ComboboxProps;
|
|
32
|
+
ref: HTMLDivElement;
|
|
33
|
+
stylesNames: ComboboxStylesNames;
|
|
34
|
+
vars: ComboboxCSSVariables;
|
|
35
|
+
staticComponents: {
|
|
36
|
+
Target: typeof ComboboxTarget;
|
|
37
|
+
Dropdown: typeof ComboboxDropdown;
|
|
38
|
+
Options: typeof ComboboxOptions;
|
|
39
|
+
Option: typeof ComboboxOption;
|
|
40
|
+
Search: typeof ComboboxSearch;
|
|
41
|
+
Empty: typeof ComboboxEmpty;
|
|
42
|
+
Chevron: typeof ComboboxChevron;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
export declare function Combobox(_props: ComboboxProps): JSX.Element;
|
|
46
|
+
export declare namespace Combobox {
|
|
47
|
+
var classes: any;
|
|
48
|
+
var displayName: string;
|
|
49
|
+
var Target: import("../../core").MantineComponent<{
|
|
50
|
+
props: import("./ComboboxTarget/ComboboxTarget").ComboboxTargetProps;
|
|
51
|
+
ref: HTMLElement;
|
|
52
|
+
compound: true;
|
|
53
|
+
}>;
|
|
54
|
+
var Dropdown: import("../../core").MantineComponent<{
|
|
55
|
+
props: import("./ComboboxDropdown/ComboboxDropdown").ComboboxDropdownProps;
|
|
56
|
+
ref: HTMLDivElement;
|
|
57
|
+
stylesNames: "dropdown";
|
|
58
|
+
compound: true;
|
|
59
|
+
}>;
|
|
60
|
+
var Options: import("../../core").MantineComponent<{
|
|
61
|
+
props: import("./ComboboxOptions/ComboboxOptions").ComboboxOptionsProps;
|
|
62
|
+
ref: HTMLDivElement;
|
|
63
|
+
stylesNames: "options";
|
|
64
|
+
compound: true;
|
|
65
|
+
}>;
|
|
66
|
+
var Option: import("../../core").MantineComponent<{
|
|
67
|
+
props: ComboboxOptionProps;
|
|
68
|
+
ref: HTMLDivElement;
|
|
69
|
+
stylesNames: "option";
|
|
70
|
+
compound: true;
|
|
71
|
+
}>;
|
|
72
|
+
var Search: import("../../core").MantineComponent<{
|
|
73
|
+
props: import("./ComboboxSearch/ComboboxSearch").ComboboxSearchProps;
|
|
74
|
+
ref: HTMLInputElement;
|
|
75
|
+
stylesNames: import("..").InputStylesNames;
|
|
76
|
+
}>;
|
|
77
|
+
var Empty: import("../../core").MantineComponent<{
|
|
78
|
+
props: import("./ComboboxEmpty/ComboboxEmpty").ComboboxEmptyProps;
|
|
79
|
+
ref: HTMLDivElement;
|
|
80
|
+
stylesNames: "empty";
|
|
81
|
+
compound: true;
|
|
82
|
+
}>;
|
|
83
|
+
var Chevron: import("../../core").MantineComponent<{
|
|
84
|
+
props: import("./ComboboxChevron/ComboboxChevron").ComboboxChevronProps;
|
|
85
|
+
ref: SVGSVGElement;
|
|
86
|
+
stylesNames: "root";
|
|
87
|
+
vars: import("./ComboboxChevron/ComboboxChevron").ComboboxChevronCSSVariables;
|
|
88
|
+
}>;
|
|
89
|
+
}
|
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MantineSize } from '../../../core';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { MantineSize, BoxProps, ElementProps, Factory, StylesApiProps } from '../../../core';
|
|
3
|
+
export type ComboboxChevronStylesNames = 'root';
|
|
4
|
+
export type ComboboxChevronCSSVariables = {
|
|
5
|
+
root: '--combobox-chevron-size';
|
|
6
|
+
};
|
|
7
|
+
export interface ComboboxChevronProps extends BoxProps, StylesApiProps<ComboboxChevronFactory>, ElementProps<'svg', 'opacity' | 'display'> {
|
|
8
|
+
size?: MantineSize | (string & {});
|
|
9
|
+
error?: React.ReactNode;
|
|
6
10
|
}
|
|
7
|
-
export
|
|
8
|
-
|
|
11
|
+
export type ComboboxChevronFactory = Factory<{
|
|
12
|
+
props: ComboboxChevronProps;
|
|
13
|
+
ref: SVGSVGElement;
|
|
14
|
+
stylesNames: ComboboxChevronStylesNames;
|
|
15
|
+
vars: ComboboxChevronCSSVariables;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const ComboboxChevron: import("../../../core").MantineComponent<{
|
|
18
|
+
props: ComboboxChevronProps;
|
|
19
|
+
ref: SVGSVGElement;
|
|
20
|
+
stylesNames: ComboboxChevronStylesNames;
|
|
21
|
+
vars: ComboboxChevronCSSVariables;
|
|
22
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Factory } from '../../../core';
|
|
2
|
+
import { PopoverDropdownProps } from '../../Popover';
|
|
3
|
+
export type ComboboxDropdownStylesNames = 'dropdown';
|
|
4
|
+
export interface ComboboxDropdownProps extends PopoverDropdownProps {
|
|
5
|
+
/** Determines whether the dropdown should be hidden, for example, when there are no options to display */
|
|
6
|
+
hidden?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export type ComboboxDropdownFactory = Factory<{
|
|
9
|
+
props: ComboboxDropdownProps;
|
|
10
|
+
ref: HTMLDivElement;
|
|
11
|
+
stylesNames: ComboboxDropdownStylesNames;
|
|
12
|
+
compound: true;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const ComboboxDropdown: import("../../../core").MantineComponent<{
|
|
15
|
+
props: ComboboxDropdownProps;
|
|
16
|
+
ref: HTMLDivElement;
|
|
17
|
+
stylesNames: ComboboxDropdownStylesNames;
|
|
18
|
+
compound: true;
|
|
19
|
+
}>;
|