@avenue-ticketing/native 0.1.7 → 0.1.9

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/dist/input.js CHANGED
@@ -6496,12 +6496,12 @@ var buttonStyles = sortCx({
6496
6496
  },
6497
6497
  colors: {
6498
6498
  primary: {
6499
- root: "bg-primary-solid",
6500
- label: "text-white",
6501
- /** Web `*:data-icon:not([data-icon=loading]):text-white/70` */
6502
- icon: "text-white/70",
6503
- /** Loading icon inherits root `text-white`. */
6504
- spinner: "text-white"
6499
+ root: "bg-button-primary",
6500
+ label: "text-button-primary",
6501
+ /** Same color as the label. Figma fg-white is full strength. */
6502
+ icon: "text-button-primary",
6503
+ /** Loading icon inherits the primary label color. */
6504
+ spinner: "text-button-primary"
6505
6505
  },
6506
6506
  brand: {
6507
6507
  root: "bg-brand-solid",
@@ -6579,13 +6579,15 @@ var isReactComponent = (component) => {
6579
6579
  var nativeButtonInteraction = sortCx({
6580
6580
  root: "active:scale-[0.985]",
6581
6581
  drop: "shadow-xs",
6582
+ primaryDrop: "shadow-button-primary-drop",
6582
6583
  clip: "absolute inset-0 overflow-hidden rounded-full",
6583
6584
  insetRing: "absolute inset-0 rounded-full border border-solid border-[rgba(0,0,0,0.18)]",
6584
6585
  bottomWeight: "absolute inset-x-0 bottom-0 h-0.5 bg-[rgba(0,0,0,0.05)]",
6585
6586
  topHighlight: "absolute left-px right-px top-px h-px bg-[rgba(255,255,255,0.12)]",
6587
+ primaryBorder: "absolute inset-0 rounded-full border-2 border-solid border-white/12",
6586
6588
  secondaryBottom: "absolute inset-x-0 bottom-0 h-px bg-[rgba(0,0,0,0.05)]",
6587
6589
  colors: {
6588
- primary: "active:bg-fg-tertiary_hover",
6590
+ primary: "active:bg-button-primary_hover",
6589
6591
  brand: "active:bg-brand-solid_hover",
6590
6592
  secondary: "active:bg-primary_hover",
6591
6593
  tertiary: "active:bg-primary_hover",
@@ -6666,7 +6668,7 @@ var Button = ({
6666
6668
  const iconToken = buttonStyles.colors[color].icon.replace(/^text-/, "");
6667
6669
  const onSolid = iconToken.startsWith("white");
6668
6670
  const resolvedIconColor = useNativeVariable(
6669
- onSolid ? "--color-white" : iconToken.startsWith("fg-") ? `--color-${iconToken}` : `--color-text-${iconToken}`
6671
+ onSolid ? "--color-white" : iconToken.startsWith("fg-") ? `--color-${iconToken}` : iconToken.startsWith("button-primary") ? "--color-button-primary-fg" : `--color-text-${iconToken}`
6670
6672
  );
6671
6673
  const iconColor = onSolid ? "rgba(255,255,255,0.7)" : typeof resolvedIconColor === "string" ? resolvedIconColor : void 0;
6672
6674
  const iconClassName = cx(
@@ -6697,7 +6699,7 @@ var Button = ({
6697
6699
  flattenInGroup ? cx(buttonStyles.inputGroup.root, buttonStyles.inputGroup[size]) : cx(buttonStyles.sizes[size].root, isIcon && buttonStyles.sizes[size].iconOnly),
6698
6700
  flattenInGroup ? "bg-primary" : buttonStyles.colors[color].root,
6699
6701
  !flattenInGroup && hasPressScale(color) && nativeButtonInteraction.root,
6700
- !flattenInGroup && (isSolidSkeuomorphic(color) || isSecondarySkeuomorphic(color)) && nativeButtonInteraction.drop,
6702
+ !flattenInGroup && (isSolidSkeuomorphic(color) || isSecondarySkeuomorphic(color)) && (color === "primary" ? nativeButtonInteraction.primaryDrop : nativeButtonInteraction.drop),
6701
6703
  nativeButtonInteraction.colors[color],
6702
6704
  isLinkType && "h-auto min-h-0 px-0 py-0",
6703
6705
  // Web applies disabled opacity only when disabled — not while loading.
@@ -6709,7 +6711,12 @@ var Button = ({
6709
6711
  !flattenInGroup && isSolidSkeuomorphic(color) && /* @__PURE__ */ jsxs(View, { pointerEvents: "none", className: nativeButtonInteraction.clip, children: [
6710
6712
  /* @__PURE__ */ jsx(View, { className: nativeButtonInteraction.insetRing }),
6711
6713
  /* @__PURE__ */ jsx(View, { className: nativeButtonInteraction.bottomWeight }),
6712
- /* @__PURE__ */ jsx(View, { className: nativeButtonInteraction.topHighlight })
6714
+ /* @__PURE__ */ jsx(
6715
+ View,
6716
+ {
6717
+ className: color === "primary" ? nativeButtonInteraction.primaryBorder : nativeButtonInteraction.topHighlight
6718
+ }
6719
+ )
6713
6720
  ] }),
6714
6721
  !flattenInGroup && isSecondarySkeuomorphic(color) && /* @__PURE__ */ jsx(View, { pointerEvents: "none", className: nativeButtonInteraction.clip, children: /* @__PURE__ */ jsx(View, { className: nativeButtonInteraction.secondaryBottom }) }),
6715
6722
  /* @__PURE__ */ jsxs(IconContext.Provider, { value: iconColor ? { color: iconColor } : {}, children: [