@wallarm-org/design-system 0.35.0 → 0.35.1-rc-feature-AS-1005.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.
- package/dist/components/Attribute/AttributeActionsTarget.js +1 -1
- package/dist/components/Ip/IpList/IpListHorizontal.js +1 -1
- package/dist/components/OverflowList/OverflowList.js +1 -1
- package/dist/components/Popover/PopoverContent.js +1 -1
- package/dist/hooks/useOverflowItems.js +1 -1
- package/dist/metadata/components.json +2 -2
- package/package.json +1 -1
|
@@ -32,7 +32,7 @@ const AttributeActionsTarget = ({ ref, children, className, onClick, onKeyDown,
|
|
|
32
32
|
"data-slot": "attribute-actions-target",
|
|
33
33
|
onClick: handleClick,
|
|
34
34
|
onKeyDown: handleKeyDown,
|
|
35
|
-
className: cn('-my-4 flex w-full cursor-pointer items-center rounded-8 px-6 py-4 transition-colors', 'hover:bg-states-primary-hover active:bg-states-primary-pressed', 'focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-focus-primary', className),
|
|
35
|
+
className: cn('-my-4 flex w-full min-w-0 cursor-pointer items-center rounded-8 px-6 py-4 transition-colors', 'hover:bg-states-primary-hover active:bg-states-primary-pressed', 'focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-focus-primary', className),
|
|
36
36
|
children: /*#__PURE__*/ jsx("div", {
|
|
37
37
|
className: "contents",
|
|
38
38
|
inert: disableNestedInteractive || void 0,
|
|
@@ -28,7 +28,7 @@ const IpListHorizontal = ({ ref, testId, items, className, ...props })=>{
|
|
|
28
28
|
"data-slot": "ip-list",
|
|
29
29
|
"data-type": "horizontal",
|
|
30
30
|
"data-testid": testId,
|
|
31
|
-
className: cn('flex items-center gap-6 min-w-0 max-w-full', className),
|
|
31
|
+
className: cn('flex items-center gap-6 w-full min-w-0 max-w-full', className),
|
|
32
32
|
children: [
|
|
33
33
|
visibleItems.map((item, i)=>/*#__PURE__*/ jsxs(external_react_Fragment, {
|
|
34
34
|
children: [
|
|
@@ -65,7 +65,7 @@ const OverflowListComponent = ({ items, itemRenderer, overflowRenderer, classNam
|
|
|
65
65
|
/*#__PURE__*/ jsx(MeasurementContainer, {}),
|
|
66
66
|
/*#__PURE__*/ jsxs("div", {
|
|
67
67
|
ref: containerRef,
|
|
68
|
-
className: cn('flex min-w-0', className),
|
|
68
|
+
className: cn('flex w-full min-w-0', className),
|
|
69
69
|
...props,
|
|
70
70
|
children: [
|
|
71
71
|
'start' === collapseFrom && overflowElement,
|
|
@@ -31,7 +31,7 @@ const PopoverContent = ({ children, minHeight = POPOVER_MIN_HEIGHT, maxHeight =
|
|
|
31
31
|
id: id,
|
|
32
32
|
"data-testid": testId,
|
|
33
33
|
style: style,
|
|
34
|
-
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-50', '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'),
|
|
34
|
+
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-50', '[&_[data-part=viewport]]: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'),
|
|
35
35
|
onClick: handleClick,
|
|
36
36
|
asChild: true,
|
|
37
37
|
children: /*#__PURE__*/ jsxs(ScrollArea, {
|
|
@@ -44,7 +44,7 @@ function useOverflowItems({ items, renderItem, renderMeasurementItem, overflowRe
|
|
|
44
44
|
]);
|
|
45
45
|
if (overflowElement && 'object' == typeof overflowElement) tempDiv.textContent = '+1';
|
|
46
46
|
}
|
|
47
|
-
dynamicReserveSpace = tempDiv.offsetWidth + gap;
|
|
47
|
+
dynamicReserveSpace = Math.max(reserveSpace, tempDiv.offsetWidth + gap);
|
|
48
48
|
document.body.removeChild(tempDiv);
|
|
49
49
|
} catch {}
|
|
50
50
|
const maxWidth = availableWidth - (needsIndicator ? dynamicReserveSpace : 0);
|
package/package.json
CHANGED