@dxos/ui-theme 0.8.4-main.1068cf700f → 0.8.4-main.2244d791bb

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.
@@ -2789,7 +2789,7 @@ var dialogContent = ({ inOverlayLayout, size }, ...etc) => {
2789
2789
  };
2790
2790
  var dialogHeader = (_props, ...etc) => mx("dx-dialog__header flex items-center justify-between", ...etc);
2791
2791
  var dialogBody = (_props, ...etc) => mx("dx-dialog__body flex flex-col gap-4 bs-full overflow-hidden", ...etc);
2792
- var dialogActionBar = (_props, ...etc) => mx("dx-dialog__actionbar flex items-center density-coarse", ...etc);
2792
+ var dialogActionBar = (_props, ...etc) => mx("dx-dialog__actionbar flex items-center gap-2 density-coarse", ...etc);
2793
2793
  var dialogTitle = ({ srOnly }, ...etc) => mx("dx-dialog__title", srOnly && "sr-only", ...etc);
2794
2794
  var dialogDescription = ({ srOnly }, ...etc) => mx("dx-dialog__description", descriptionText, srOnly && "sr-only", ...etc);
2795
2795
  var dialogTheme = {
@@ -2969,22 +2969,26 @@ var menuTheme = {
2969
2969
 
2970
2970
  // src/styles/components/message.ts
2971
2971
  var messageRoot = ({ valence }, etc) => {
2972
- return mx("p-trimSm rounded-md", messageValence(valence), etc);
2972
+ return mx("grid grid-cols-[min-content_1fr] gap-x-2 p-trimSm rounded-md", messageValence(valence), etc);
2973
+ };
2974
+ var messageHeader = (_, etc) => {
2975
+ return mx("col-span-2 grid grid-cols-subgrid items-center", etc);
2973
2976
  };
2974
2977
  var messageTitle = (_, etc) => {
2975
- return mx("font-medium flex gap-trimSm", etc);
2978
+ return mx("col-start-2 text-lg flex gap-trimSm", etc);
2976
2979
  };
2977
2980
  var messageIcon = (_, etc) => {
2978
- return mx("flex bs-[1lh] items-center", etc);
2981
+ return mx("col-start-1", etc);
2979
2982
  };
2980
2983
  var messageContent = (_, etc) => {
2981
- return mx("first:font-medium", etc);
2984
+ return mx("col-span-2 grid grid-cols-subgrid col-start-2 first:font-medium", etc);
2982
2985
  };
2983
2986
  var messageTheme = {
2984
2987
  root: messageRoot,
2985
- content: messageContent,
2988
+ header: messageHeader,
2986
2989
  icon: messageIcon,
2987
- title: messageTitle
2990
+ title: messageTitle,
2991
+ content: messageContent
2988
2992
  };
2989
2993
 
2990
2994
  // src/styles/components/popover.ts
@@ -3016,38 +3020,23 @@ var scrollAreaRoot = ({ orientation, margin, thin }, ...etc) => mx(
3016
3020
  ],
3017
3021
  ...etc
3018
3022
  );
3019
- var scrollAreaViewport = ({ orientation, autoHide, padding: padding2, snap, thin }, ...etc) => mx(
3020
- "bs-full is-full",
3021
- orientation === "vertical" && "flex flex-col overflow-y-scroll",
3022
- orientation === "horizontal" && "flex overflow-x-scroll",
3023
- orientation === "all" && "overflow-scroll",
3024
- thin ? "[&::-webkit-scrollbar]:is-[4px] [&::-webkit-scrollbar]:bs-[4px]" : "[&::-webkit-scrollbar]:is-[8px] [&::-webkit-scrollbar]:bs-[8px]",
3025
- // '[&::-webkit-scrollbar-thumb]:rounded-full',
3026
- "[&::-webkit-scrollbar-thumb]:bg-transparent",
3027
- "[&::-webkit-scrollbar-corner]:bg-transparent",
3028
- // TODO(burdon): Define token.
3029
- autoHide ? [
3030
- orientation === "vertical" && "group-hover/scroll-v:[&::-webkit-scrollbar-thumb]:bg-subduedSeparator",
3031
- orientation === "horizontal" && "group-hover/scroll-h:[&::-webkit-scrollbar-thumb]:bg-subduedSeparator",
3032
- orientation === "all" && "group-hover/scroll-all:[&::-webkit-scrollbar-thumb]:bg-subduedSeparator"
3033
- ] : [
3034
- orientation === "vertical" && "[&::-webkit-scrollbar-thumb]:bg-subduedSeparator",
3035
- orientation === "horizontal" && "[&::-webkit-scrollbar-thumb]:bg-subduedSeparator",
3036
- orientation === "all" && "[&::-webkit-scrollbar-thumb]:bg-subduedSeparator"
3037
- ],
3038
- // TODO(burdon): Are scrollbars reserved on native devices?
3039
- padding2 && [
3040
- orientation === "vertical" && "pli-[4px]",
3041
- orientation === "horizontal" && "pbe-[4px]",
3042
- orientation === "all" && "pis-[4px] pbe-[4px]"
3043
- ],
3044
- snap && [
3045
- orientation === "vertical" && "snap-y snap-mandatory",
3046
- orientation === "horizontal" && "snap-x snap-mandatory",
3047
- orientation === "all" && "snap-both snap-mandatory"
3048
- ],
3049
- ...etc
3050
- );
3023
+ var scrollAreaViewport = ({ orientation, autoHide, padding: padding2, snap, thin }, ...etc) => mx("bs-full is-full", orientation === "vertical" && "flex flex-col overflow-y-scroll", orientation === "horizontal" && "flex overflow-x-scroll", orientation === "all" && "overflow-scroll", thin ? "[&::-webkit-scrollbar]:is-[4px] [&::-webkit-scrollbar]:bs-[4px]" : "[&::-webkit-scrollbar]:is-[8px] [&::-webkit-scrollbar]:bs-[8px]", "[&::-webkit-scrollbar-corner]:bg-transparent", "[&::-webkit-scrollbar-track]:bg-transparent", "[&::-webkit-scrollbar-thumb]:rounded-none", autoHide ? [
3024
+ orientation === "vertical" && "group-hover/scroll-v:[&::-webkit-scrollbar-thumb]:bg-scrollbarThumb",
3025
+ orientation === "horizontal" && "group-hover/scroll-h:[&::-webkit-scrollbar-thumb]:bg-scrollbarThumb",
3026
+ orientation === "all" && "group-hover/scroll-all:[&::-webkit-scrollbar-thumb]:bg-scrollbarThumb"
3027
+ ] : [
3028
+ orientation === "vertical" && "[&::-webkit-scrollbar-thumb]:bg-scrollbarThumb",
3029
+ orientation === "horizontal" && "[&::-webkit-scrollbar-thumb]:bg-scrollbarThumb",
3030
+ orientation === "all" && "[&::-webkit-scrollbar-thumb]:bg-scrollbarThumb"
3031
+ ], padding2 && [
3032
+ orientation === "vertical" && "pli-[4px]",
3033
+ orientation === "horizontal" && "pbe-[4px]",
3034
+ orientation === "all" && "pis-[4px] pbe-[4px]"
3035
+ ], snap && [
3036
+ orientation === "vertical" && "snap-y snap-mandatory",
3037
+ orientation === "horizontal" && "snap-x snap-mandatory",
3038
+ orientation === "all" && "snap-both snap-mandatory"
3039
+ ], ...etc);
3051
3040
  var scrollAreaTheme = {
3052
3041
  root: scrollAreaRoot,
3053
3042
  viewport: scrollAreaViewport
@@ -3408,6 +3397,7 @@ export {
3408
3397
  menuTheme,
3409
3398
  menuViewport,
3410
3399
  messageContent,
3400
+ messageHeader,
3411
3401
  messageIcon,
3412
3402
  messageRoot,
3413
3403
  messageTheme,