@wallarm-org/design-system 0.87.0 → 0.87.1
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.
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { Popover, usePopoverContext } from "@ark-ui/react";
|
|
4
4
|
import { Portal } from "@ark-ui/react/portal";
|
|
5
5
|
import { cn } from "../../utils/cn.js";
|
|
6
6
|
import { useTestId } from "../../utils/testId.js";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
const PopoverContent = ({ children, minHeight = POPOVER_MIN_HEIGHT, maxHeight = POPOVER_MAX_HEIGHT, minWidth = POPOVER_MIN_WIDTH, maxWidth = POPOVER_MAX_WIDTH, className, 'data-testid': testIdProp, ...rest })=>{
|
|
7
|
+
import { POPOVER_MAX_HEIGHT, POPOVER_MAX_WIDTH, POPOVER_MIN_WIDTH } from "./constants.js";
|
|
8
|
+
const PopoverContent = ({ children, minHeight, maxHeight = POPOVER_MAX_HEIGHT, minWidth = POPOVER_MIN_WIDTH, maxWidth = POPOVER_MAX_WIDTH, className, 'data-testid': testIdProp, ...rest })=>{
|
|
10
9
|
const testId = useTestId('content', testIdProp);
|
|
11
10
|
const { getContentProps } = usePopoverContext();
|
|
12
11
|
const { id } = getContentProps();
|
|
@@ -28,21 +27,8 @@ const PopoverContent = ({ children, minHeight = POPOVER_MIN_HEIGHT, maxHeight =
|
|
|
28
27
|
id: id,
|
|
29
28
|
"data-testid": testId,
|
|
30
29
|
style: style,
|
|
31
|
-
className: cn('flex flex-col', 'min-w-(--popover-min-width)', 'max-w-[clamp(var(--popover-min-width),var(--available-width),var(--popover-max-width))]', 'min-h-(--popover-min-height)', 'max-h-[clamp(var(--popover-min-height),var(--available-height),var(--popover-max-height))]', 'p-12 bg-bg-surface-2 rounded-12 border border-border-primary-light shadow-md text-text-primary', 'z-[calc(var(--drawer-positioner-z-index)+(var(--layer-index,0)*var(--drawer-level-ratio)))]', '
|
|
32
|
-
|
|
33
|
-
children: /*#__PURE__*/ jsxs(ScrollArea, {
|
|
34
|
-
ids: {
|
|
35
|
-
root: id
|
|
36
|
-
},
|
|
37
|
-
children: [
|
|
38
|
-
/*#__PURE__*/ jsx(ScrollAreaViewport, {
|
|
39
|
-
children: /*#__PURE__*/ jsx(ScrollAreaContent, {
|
|
40
|
-
children: children
|
|
41
|
-
})
|
|
42
|
-
}),
|
|
43
|
-
/*#__PURE__*/ jsx(ScrollAreaScrollbar, {})
|
|
44
|
-
]
|
|
45
|
-
})
|
|
30
|
+
className: cn('flex flex-col overflow-auto', 'min-w-(--popover-min-width)', 'max-w-[clamp(var(--popover-min-width),var(--available-width),var(--popover-max-width))]', 'min-h-(--popover-min-height)', 'max-h-[clamp(var(--popover-min-height,0px),var(--available-height),var(--popover-max-height))]', 'p-12 bg-bg-surface-2 rounded-12 border border-border-primary-light shadow-md text-text-primary', 'z-[calc(var(--drawer-positioner-z-index)+(var(--layer-index,0)*var(--drawer-level-ratio)))]', 'overscroll-contain', 'animate-in fade-in-0 zoom-in-95 origin-[--radix-tooltip-content-transform-origin]', 'data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95', 'data-[side=bottom]:slide-in-from-top-2', 'data-[side=left]:slide-in-from-right-2', 'data-[side=right]:slide-in-from-left-2', 'data-[side=top]:slide-in-from-bottom-2', className),
|
|
31
|
+
children: children
|
|
46
32
|
})
|
|
47
33
|
})
|
|
48
34
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { PopoverSizeDimension } from './types';
|
|
2
|
-
export declare const POPOVER_MIN_HEIGHT: PopoverSizeDimension;
|
|
3
2
|
export declare const POPOVER_MAX_HEIGHT: PopoverSizeDimension;
|
|
4
3
|
export declare const POPOVER_MIN_WIDTH: PopoverSizeDimension;
|
|
5
4
|
export declare const POPOVER_MAX_WIDTH: PopoverSizeDimension;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const POPOVER_MIN_HEIGHT = '156px';
|
|
2
1
|
const POPOVER_MAX_HEIGHT = '560px';
|
|
3
2
|
const POPOVER_MIN_WIDTH = '256px';
|
|
4
3
|
const POPOVER_MAX_WIDTH = '560px';
|
|
5
|
-
export { POPOVER_MAX_HEIGHT, POPOVER_MAX_WIDTH,
|
|
4
|
+
export { POPOVER_MAX_HEIGHT, POPOVER_MAX_WIDTH, POPOVER_MIN_WIDTH };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
3
|
-
"generatedAt": "2026-08-07T08:
|
|
2
|
+
"version": "0.87.0",
|
|
3
|
+
"generatedAt": "2026-08-07T08:50:50.859Z",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"name": "Accordion",
|
|
@@ -47718,8 +47718,7 @@
|
|
|
47718
47718
|
{
|
|
47719
47719
|
"name": "minHeight",
|
|
47720
47720
|
"type": "PopoverSizeDimension | undefined",
|
|
47721
|
-
"required": false
|
|
47722
|
-
"defaultValue": "POPOVER_MIN_HEIGHT"
|
|
47721
|
+
"required": false
|
|
47723
47722
|
},
|
|
47724
47723
|
{
|
|
47725
47724
|
"name": "maxHeight",
|
package/dist/theme/index.css
CHANGED
|
@@ -35,6 +35,28 @@
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Global native-scrollbar styling, matching the ScrollArea component's look
|
|
40
|
+
* (thin slate thumb, transparent track) for every plain `overflow:
|
|
41
|
+
* auto/scroll` element that isn't opting into ScrollArea's own JS-drawn
|
|
42
|
+
* thumb (excluded above via higher-specificity attribute selector). The
|
|
43
|
+
* thumb is permanently visible: `overflow: auto` already only renders a
|
|
44
|
+
* scrollbar when content overflows, so that's the only "show it when
|
|
45
|
+
* scrollable" gate this needs.
|
|
46
|
+
*
|
|
47
|
+
* Deliberately uses only the standard `scrollbar-width`/`scrollbar-color`
|
|
48
|
+
* properties, not `::-webkit-scrollbar-*`. The legacy pseudo-elements would
|
|
49
|
+
* allow a fully custom (rounded, inset) thumb, but their hover-driven state
|
|
50
|
+
* changes only repaint reliably when the pointer is over the scrollbar
|
|
51
|
+
* widget itself, not the rest of the scrollable container — unreliable
|
|
52
|
+
* enough that a permanently-visible thumb sidesteps the issue entirely.
|
|
53
|
+
*/
|
|
54
|
+
* {
|
|
55
|
+
scrollbar-width: thin;
|
|
56
|
+
scrollbar-color: color-mix(in srgb, var(--color-badge-slate-dark-alt) 50%, transparent)
|
|
57
|
+
transparent;
|
|
58
|
+
}
|
|
59
|
+
|
|
38
60
|
/** Remove when old DS will be removed **/
|
|
39
61
|
:where(:root) {
|
|
40
62
|
cursor: default;
|