feat(dashboard,types,js-sdk,ui): Add missing Price List features (#7856)
**What** - Adds missing features to Price List domain - Adds `StackedFocusModal` and `StackedDrawer` components that should replace SplitView across the project. - Add Footer to FocusModal - Adds missing js-sdk functions and types **Note** The DatePickers in the PriceLists forms do not work as intended atm. The component is broken, and needs to be fixed. I am working on a fix, but choose to move that work into a separate branch, to prevent this PR from getting bigger then it already is. Will update once the fixes have been merged.
This commit is contained in:
@@ -25,8 +25,8 @@ const displayVariants = cva({
|
||||
),
|
||||
variants: {
|
||||
size: {
|
||||
base: "txt-compact-small h-8 px-2 py-1.5",
|
||||
small: "txt-compact-small h-7 px-2 py-1",
|
||||
base: "txt-compact-small h-8 pr-2 py-1.5",
|
||||
small: "txt-compact-small h-7 pr-2 py-1",
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
@@ -63,7 +63,11 @@ const Display = React.forwardRef<HTMLButtonElement, DisplayProps>(
|
||||
className={clx(displayVariants({ size }), className)}
|
||||
{...props}
|
||||
>
|
||||
<span className={clx("flex items-center justify-center size-8 border-r", {
|
||||
"size-7": size === "small",
|
||||
})}>
|
||||
<CalendarIcon className="text-ui-fg-muted" />
|
||||
</span>
|
||||
<span className="flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left">
|
||||
{children ? (
|
||||
children
|
||||
|
||||
Reference in New Issue
Block a user