@warp-ds/elements 1.3.3-next.1 → 1.3.4-next.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.
@@ -1060,24 +1060,27 @@ function generateRandomId() {
1060
1060
  return `m${Math.random().toString(36).slice(2)}`;
1061
1061
  }
1062
1062
 
1063
- // node_modules/.pnpm/@warp-ds+css@1.9.1/node_modules/@warp-ds/css/component-classes/index.js
1063
+ // node_modules/.pnpm/@warp-ds+css@1.9.3/node_modules/@warp-ds/css/component-classes/index.js
1064
1064
  var box = {
1065
1065
  box: "group block relative break-words last-child:mb-0 p-16 rounded-8",
1066
1066
  // Relative here enables w-clickable
1067
1067
  bleed: "-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",
1068
1068
  // We target L and R to override the default rounded-8
1069
1069
  info: "s-bg-info-subtle",
1070
- neutral: "bg-[--w-s-color-surface-sunken]",
1070
+ neutral: "s-surface-sunken",
1071
1071
  bordered: "border-2 s-border s-bg",
1072
- infoClickable: "hover:s-bg-info-subtle-hover active:s-bg-info-subtle-hover",
1073
- neutralClickable: "hover:s-bg-subtle-hover active:s-bg-subtle-hover",
1074
- borderedClickable: "hover:s-bg-hover active:s-bg-hover hover:s-border-hover active:s-border-hover"
1072
+ infoClickable: "hover:s-bg-info-subtle-hover active:s-bg-info-subtle-active",
1073
+ // Deprecated - Remove in v2 (after removing Clickable prop in the Box components)
1074
+ neutralClickable: "hover:s-bg-hover active:s-bg-active",
1075
+ // Deprecated - Remove in v2 (after removing Clickable prop in the Box components)
1076
+ borderedClickable: "hover:s-bg-hover active:s-bg-active hover:s-border-hover active:s-border-active"
1077
+ // Deprecated - Remove in v2 (after removing Clickable prop in the Box components)
1075
1078
  };
1076
1079
  var buttonReset = "focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block";
1077
1080
  var expandable = {
1078
1081
  expandable: "will-change-height",
1079
1082
  expandableTitle: "font-bold s-text",
1080
- expandableBox: "s-bg-subtle hover:s-bg-subtle-hover py-0 px-0 " + box.box,
1083
+ expandableBox: "s-surface-sunken hover:s-bg-hover active:s-bg-active py-0 px-0 " + box.box,
1081
1084
  expandableInfo: "s-bg-info-subtle! hover:s-bg-info-subtle-hover!",
1082
1085
  expandableBleed: box.bleed,
1083
1086
  chevron: "inline-block align-middle s-icon",
@@ -1118,7 +1121,7 @@ var buttonTypes = {
1118
1121
  utility: `border rounded-4 ${buttonDefaultStyling}`,
1119
1122
  negative: `border-0 rounded-8 ${buttonDefaultStyling}`,
1120
1123
  pill: `p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${buttonDefaultStyling}`,
1121
- link: `bg-transparent focusable ease-in-out inline active:underline hover:underline ${buttonColors.link}`
1124
+ link: `bg-transparent focusable ease-in-out inline active:underline hover:underline focus:underline ${buttonColors.link}`
1122
1125
  };
1123
1126
  var buttonSizes = {
1124
1127
  xsmall: "py-6 px-16",
@@ -1208,7 +1211,7 @@ var button = {
1208
1211
  pillSmallLoading: `${buttonSizes.pillSmall} ${buttonTextSizes.xsmall} ${buttonTypes.pill} ${buttonVariants.inProgress}`,
1209
1212
  link: `${buttonSizes.link} ${buttonTextSizes.medium} ${buttonTypes.link}`,
1210
1213
  linkSmall: `${buttonSizes.link} ${buttonTextSizes.xsmall} ${buttonTypes.link}`,
1211
- linkAsButton: "inline-block hover:no-underline text-center",
1214
+ linkAsButton: "inline-block active:no-underline hover:no-underline focus:no-underline text-center",
1212
1215
  a11y: "sr-only",
1213
1216
  fullWidth: "w-full max-w-full",
1214
1217
  contentWidth: "max-w-max"