@dxos/ui-theme 0.8.4-main.2244d791bb → 0.8.4-main.3eb6e50203

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 gap-2 density-coarse", ...etc);
2792
+ var dialogActionBar = (_props, ...etc) => mx("dx-dialog__actionbar flex items-center 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,26 +2969,22 @@ var menuTheme = {
2969
2969
 
2970
2970
  // src/styles/components/message.ts
2971
2971
  var messageRoot = ({ 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);
2972
+ return mx("p-trimSm rounded-md", messageValence(valence), etc);
2976
2973
  };
2977
2974
  var messageTitle = (_, etc) => {
2978
- return mx("col-start-2 text-lg flex gap-trimSm", etc);
2975
+ return mx("font-medium flex gap-trimSm", etc);
2979
2976
  };
2980
2977
  var messageIcon = (_, etc) => {
2981
- return mx("col-start-1", etc);
2978
+ return mx("flex bs-[1lh] items-center", etc);
2982
2979
  };
2983
2980
  var messageContent = (_, etc) => {
2984
- return mx("col-span-2 grid grid-cols-subgrid col-start-2 first:font-medium", etc);
2981
+ return mx("first:font-medium", etc);
2985
2982
  };
2986
2983
  var messageTheme = {
2987
2984
  root: messageRoot,
2988
- header: messageHeader,
2985
+ content: messageContent,
2989
2986
  icon: messageIcon,
2990
- title: messageTitle,
2991
- content: messageContent
2987
+ title: messageTitle
2992
2988
  };
2993
2989
 
2994
2990
  // src/styles/components/popover.ts
@@ -3020,23 +3016,38 @@ var scrollAreaRoot = ({ orientation, margin, thin }, ...etc) => mx(
3020
3016
  ],
3021
3017
  ...etc
3022
3018
  );
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);
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
+ );
3040
3051
  var scrollAreaTheme = {
3041
3052
  root: scrollAreaRoot,
3042
3053
  viewport: scrollAreaViewport
@@ -3397,7 +3408,6 @@ export {
3397
3408
  menuTheme,
3398
3409
  menuViewport,
3399
3410
  messageContent,
3400
- messageHeader,
3401
3411
  messageIcon,
3402
3412
  messageRoot,
3403
3413
  messageTheme,