@nattstack/ui 0.0.48 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/baseline/index.css
CHANGED
|
@@ -11,6 +11,14 @@
|
|
|
11
11
|
- https://piccalil.li/blog/a-more-modern-css-reset/
|
|
12
12
|
// ===================================================== */
|
|
13
13
|
|
|
14
|
+
/*
|
|
15
|
+
Theme text selection colors
|
|
16
|
+
*/
|
|
17
|
+
::selection {
|
|
18
|
+
background: var(--color-primary-6);
|
|
19
|
+
color: var(--color-gray-12);
|
|
20
|
+
}
|
|
21
|
+
|
|
14
22
|
/*
|
|
15
23
|
Global html defaults
|
|
16
24
|
- Prevent automatic text resizing
|
|
@@ -173,7 +173,6 @@ interface MenuContentProps extends Omit<Menu$1.Popup.Props, "className">, Pick<M
|
|
|
173
173
|
className?: string;
|
|
174
174
|
container?: Menu$1.Portal.Props["container"];
|
|
175
175
|
keepMounted?: Menu$1.Portal.Props["keepMounted"];
|
|
176
|
-
showArrow?: boolean;
|
|
177
176
|
}
|
|
178
177
|
declare function MenuContent(props: MenuContentProps): JSX.Element;
|
|
179
178
|
//#endregion
|
package/dist/components/index.js
CHANGED
|
@@ -422,10 +422,11 @@ function MenuCheckboxItem(props) {
|
|
|
422
422
|
//#endregion
|
|
423
423
|
//#region src/components/menu/menu-content.tsx
|
|
424
424
|
function MenuContent(props) {
|
|
425
|
-
const { align = "start", alignOffset = void 0, anchor = void 0, arrowPadding = void 0, children, className: customClassName = "", collisionAvoidance = void 0, collisionBoundary = void 0, collisionPadding = void 0, container = void 0, disableAnchorTracking = void 0, keepMounted = void 0, positionMethod = void 0,
|
|
425
|
+
const { align = "start", alignOffset = void 0, anchor = void 0, arrowPadding = void 0, children, className: customClassName = "", collisionAvoidance = void 0, collisionBoundary = void 0, collisionPadding = void 0, container = void 0, disableAnchorTracking = void 0, keepMounted = void 0, positionMethod = void 0, side = "bottom", sideOffset = 8, sticky = void 0, ...rest } = props;
|
|
426
426
|
const combinedClassName = getMenuClassName(MENU_CLASS_NAME.CONTENT, customClassName);
|
|
427
427
|
return /* @__PURE__ */ jsx(Menu$1.Portal, {
|
|
428
428
|
container,
|
|
429
|
+
"data-slot": "menu-portal",
|
|
429
430
|
keepMounted,
|
|
430
431
|
children: /* @__PURE__ */ jsx(Menu$1.Positioner, {
|
|
431
432
|
align,
|
|
@@ -436,26 +437,17 @@ function MenuContent(props) {
|
|
|
436
437
|
collisionAvoidance,
|
|
437
438
|
collisionBoundary,
|
|
438
439
|
collisionPadding,
|
|
440
|
+
"data-slot": "menu-positioner",
|
|
439
441
|
disableAnchorTracking,
|
|
440
442
|
positionMethod,
|
|
441
443
|
side,
|
|
442
444
|
sideOffset,
|
|
443
445
|
sticky,
|
|
444
|
-
children: /* @__PURE__ */
|
|
446
|
+
children: /* @__PURE__ */ jsx(Menu$1.Popup, {
|
|
445
447
|
className: combinedClassName,
|
|
446
448
|
"data-slot": "menu-content",
|
|
447
449
|
...rest,
|
|
448
|
-
children
|
|
449
|
-
className: MENU_CLASS_NAME.ARROW,
|
|
450
|
-
children: /* @__PURE__ */ jsx("svg", {
|
|
451
|
-
className: MENU_CLASS_NAME.ARROW_ICON,
|
|
452
|
-
fill: "none",
|
|
453
|
-
height: "6",
|
|
454
|
-
viewBox: "0 0 12 6",
|
|
455
|
-
width: "12",
|
|
456
|
-
children: /* @__PURE__ */ jsx("path", { d: "M0 6L5.15 0.85C5.62 0.38 6.38 0.38 6.85 0.85L12 6H0Z" })
|
|
457
|
-
})
|
|
458
|
-
}), children]
|
|
450
|
+
children
|
|
459
451
|
})
|
|
460
452
|
})
|
|
461
453
|
});
|