@olundot/ui 0.8.0 → 0.8.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/CHANGELOG.md +6 -0
- package/dist/index.js +24 -24
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @olundot/ui
|
|
2
2
|
|
|
3
|
+
## 0.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 83aa187: Fix floating overlay edges to use `--border` for visible elevated borders, and align Sheet/SheetDrawer mobile behavior to the OLUN 900px breakpoint so bottom sheets stay full-width below 900px.
|
|
8
|
+
|
|
3
9
|
## 0.8.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/index.js
CHANGED
|
@@ -1497,13 +1497,13 @@ var Select = React7.forwardRef(
|
|
|
1497
1497
|
"data-slot": "select-content",
|
|
1498
1498
|
position: "popper",
|
|
1499
1499
|
sideOffset: 4,
|
|
1500
|
-
className: "z-[var(--z-popover)] max-h-[var(--radix-select-content-available-height)] min-w-[var(--radix-select-trigger-width)] overflow-hidden rounded-[var(--radius-md)] border border-[var(--border
|
|
1500
|
+
className: "z-[var(--z-popover)] max-h-[var(--radix-select-content-available-height)] min-w-[var(--radix-select-trigger-width)] overflow-hidden rounded-[var(--radius-md)] border border-[var(--border)] bg-[var(--bg-raised)] text-foreground shadow-md",
|
|
1501
1501
|
children: [
|
|
1502
1502
|
/* @__PURE__ */ jsx7(
|
|
1503
1503
|
SelectPrimitive.ScrollUpButton,
|
|
1504
1504
|
{
|
|
1505
1505
|
"data-slot": "select-scroll-up",
|
|
1506
|
-
className: "flex items-center justify-center border-b border-[var(--border
|
|
1506
|
+
className: "flex items-center justify-center border-b border-[var(--border)] bg-[var(--bg-raised)] py-[var(--space-0-5)] text-text-tertiary",
|
|
1507
1507
|
children: /* @__PURE__ */ jsx7(ChevronUp, { "aria-hidden": "true", className: "size-[16px]" })
|
|
1508
1508
|
}
|
|
1509
1509
|
),
|
|
@@ -1527,7 +1527,7 @@ var Select = React7.forwardRef(
|
|
|
1527
1527
|
SelectPrimitive.ScrollDownButton,
|
|
1528
1528
|
{
|
|
1529
1529
|
"data-slot": "select-scroll-down",
|
|
1530
|
-
className: "flex items-center justify-center border-t border-[var(--border
|
|
1530
|
+
className: "flex items-center justify-center border-t border-[var(--border)] bg-[var(--bg-raised)] py-[var(--space-0-5)] text-text-tertiary",
|
|
1531
1531
|
children: /* @__PURE__ */ jsx7(ChevronDown, { "aria-hidden": "true", className: "size-[16px]" })
|
|
1532
1532
|
}
|
|
1533
1533
|
)
|
|
@@ -4716,7 +4716,7 @@ function DropdownMenuContent({
|
|
|
4716
4716
|
className: cn(
|
|
4717
4717
|
"z-[var(--z-popover)] max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem]",
|
|
4718
4718
|
"origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto",
|
|
4719
|
-
"rounded-sm border border-
|
|
4719
|
+
"rounded-sm border border-[var(--border)] bg-canvas p-[var(--space-0-5)] text-text-primary shadow-elevation-2",
|
|
4720
4720
|
"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2",
|
|
4721
4721
|
"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
4722
4722
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
@@ -4915,7 +4915,7 @@ function DropdownMenuSubContent({
|
|
|
4915
4915
|
"data-slot": "dropdown-menu-sub-content",
|
|
4916
4916
|
className: cn(
|
|
4917
4917
|
"z-[var(--z-popover)] min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden",
|
|
4918
|
-
"rounded-sm border border-
|
|
4918
|
+
"rounded-sm border border-[var(--border)] bg-canvas p-[var(--space-0-5)] text-text-primary shadow-elevation-2",
|
|
4919
4919
|
"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2",
|
|
4920
4920
|
"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
4921
4921
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
@@ -5027,7 +5027,7 @@ function SheetContent({
|
|
|
5027
5027
|
{
|
|
5028
5028
|
"data-slot": "sheet-content",
|
|
5029
5029
|
className: cn(
|
|
5030
|
-
"fixed z-[var(--z-modal)] flex flex-col gap-4 bg-background shadow-lg",
|
|
5030
|
+
"fixed z-[var(--z-modal)] flex flex-col gap-4 border-[var(--border)] bg-background shadow-lg",
|
|
5031
5031
|
motionConfig && cn(
|
|
5032
5032
|
"motion-reduce:animate-none",
|
|
5033
5033
|
motionConfig.type === "fade" && "data-[state=open]:animate-[olun-sheet-fade-in_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both] data-[state=closed]:animate-[olun-sheet-fade-out_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both]"
|
|
@@ -5049,20 +5049,20 @@ function SheetContent({
|
|
|
5049
5049
|
hasSlideMotion && "data-[state=open]:animate-[olun-sheet-in-from-bottom_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both] data-[state=closed]:animate-[olun-sheet-out-to-bottom_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both]"
|
|
5050
5050
|
),
|
|
5051
5051
|
mobileSide === "right" && cn(
|
|
5052
|
-
"max-
|
|
5053
|
-
hasSlideMotion && "max-
|
|
5052
|
+
"max-[899px]:inset-y-0 max-[899px]:right-0 max-[899px]:left-auto max-[899px]:h-full max-[899px]:w-3/4 max-[899px]:border-l max-[899px]:border-t-0 max-[899px]:rounded-none",
|
|
5053
|
+
hasSlideMotion && "max-[899px]:data-[state=open]:animate-[olun-sheet-in-from-right_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both] max-[899px]:data-[state=closed]:animate-[olun-sheet-out-to-right_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both]"
|
|
5054
5054
|
),
|
|
5055
5055
|
mobileSide === "left" && cn(
|
|
5056
|
-
"max-
|
|
5057
|
-
hasSlideMotion && "max-
|
|
5056
|
+
"max-[899px]:inset-y-0 max-[899px]:left-0 max-[899px]:right-auto max-[899px]:h-full max-[899px]:w-3/4 max-[899px]:border-r max-[899px]:border-t-0 max-[899px]:rounded-none",
|
|
5057
|
+
hasSlideMotion && "max-[899px]:data-[state=open]:animate-[olun-sheet-in-from-left_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both] max-[899px]:data-[state=closed]:animate-[olun-sheet-out-to-left_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both]"
|
|
5058
5058
|
),
|
|
5059
5059
|
mobileSide === "top" && cn(
|
|
5060
|
-
"max-
|
|
5061
|
-
hasSlideMotion && "max-
|
|
5060
|
+
"max-[899px]:inset-x-0 max-[899px]:top-0 max-[899px]:bottom-auto max-[899px]:h-auto max-[899px]:w-full max-[899px]:border-b max-[899px]:border-l-0 max-[899px]:rounded-none",
|
|
5061
|
+
hasSlideMotion && "max-[899px]:data-[state=open]:animate-[olun-sheet-in-from-top_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both] max-[899px]:data-[state=closed]:animate-[olun-sheet-out-to-top_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both]"
|
|
5062
5062
|
),
|
|
5063
5063
|
mobileSide === "bottom" && cn(
|
|
5064
|
-
"max-
|
|
5065
|
-
hasSlideMotion && "max-
|
|
5064
|
+
"max-[899px]:inset-x-0 max-[899px]:bottom-0 max-[899px]:top-auto max-[899px]:h-auto max-[899px]:w-full max-[899px]:border-t max-[899px]:border-l-0 max-[899px]:rounded-none",
|
|
5065
|
+
hasSlideMotion && "max-[899px]:data-[state=open]:animate-[olun-sheet-in-from-bottom_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both] max-[899px]:data-[state=closed]:animate-[olun-sheet-out-to-bottom_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both]"
|
|
5066
5066
|
),
|
|
5067
5067
|
className
|
|
5068
5068
|
),
|
|
@@ -5132,19 +5132,19 @@ import { jsx as jsx30, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
|
5132
5132
|
var sheetDrawerContentClassName = cn(
|
|
5133
5133
|
"gap-0 p-0",
|
|
5134
5134
|
"bg-[var(--bg-surface)] text-foreground",
|
|
5135
|
-
"border-[var(--border
|
|
5136
|
-
"
|
|
5137
|
-
"max-
|
|
5138
|
-
"max-
|
|
5135
|
+
"border-[var(--border)] shadow-[var(--elevation-4)]",
|
|
5136
|
+
"min-[900px]:w-[480px] min-[900px]:max-w-[480px]",
|
|
5137
|
+
"max-[899px]:h-[min(85dvh,720px)] max-[899px]:max-h-[85dvh] max-[899px]:w-full max-[899px]:max-w-none",
|
|
5138
|
+
"max-[899px]:rounded-t-[var(--radius-lg)]"
|
|
5139
5139
|
);
|
|
5140
|
-
var sheetDrawerWideContentClassName = "
|
|
5140
|
+
var sheetDrawerWideContentClassName = "min-[900px]:w-[720px] min-[900px]:max-w-[720px]";
|
|
5141
5141
|
var sheetDrawerFullContentClassName = cn(
|
|
5142
|
-
"
|
|
5143
|
-
"max-
|
|
5142
|
+
"min-[900px]:w-[calc(100vw_-_var(--space-4))] min-[900px]:max-w-[calc(100vw_-_var(--space-4))]",
|
|
5143
|
+
"max-[899px]:h-[100dvh] max-[899px]:max-h-[100dvh] max-[899px]:rounded-none"
|
|
5144
5144
|
);
|
|
5145
5145
|
var sheetDrawerHeaderClassName = cn(
|
|
5146
5146
|
"flex items-start justify-between gap-[var(--space-2)]",
|
|
5147
|
-
"border-b border-[var(--border
|
|
5147
|
+
"border-b border-[var(--border)] px-[var(--space-3)] py-[var(--space-3)]"
|
|
5148
5148
|
);
|
|
5149
5149
|
var sheetDrawerHeaderTextClassName = "flex min-w-0 flex-1 flex-col gap-[var(--space-1)]";
|
|
5150
5150
|
var sheetDrawerCaptionClassName = "flex flex-wrap items-center gap-[var(--space-1)]";
|
|
@@ -5171,7 +5171,7 @@ var sheetDrawerBodyClassName = cn(
|
|
|
5171
5171
|
"px-[var(--space-3)] py-[var(--space-3)]"
|
|
5172
5172
|
);
|
|
5173
5173
|
var sheetDrawerFooterClassName = cn(
|
|
5174
|
-
"border-t border-[var(--border
|
|
5174
|
+
"border-t border-[var(--border)] px-[var(--space-3)] py-[var(--space-2)]",
|
|
5175
5175
|
"flex justify-end gap-[var(--space-1)]"
|
|
5176
5176
|
);
|
|
5177
5177
|
function SheetDrawer({
|
|
@@ -5304,7 +5304,7 @@ var PopoverContent = React24.forwardRef(({ className, align = "center", sideOffs
|
|
|
5304
5304
|
"data-slot": "popover-content",
|
|
5305
5305
|
className: cn(
|
|
5306
5306
|
"z-[var(--z-popover)] w-[260px] outline-none",
|
|
5307
|
-
"rounded-[var(--radius-md)] border border-[var(--border
|
|
5307
|
+
"rounded-[var(--radius-md)] border border-[var(--border)]",
|
|
5308
5308
|
"bg-[var(--bg-raised)] p-[var(--space-2)] text-foreground",
|
|
5309
5309
|
"shadow-[var(--elevation-4)]",
|
|
5310
5310
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|