@avenue-ticketing/native 0.1.8 → 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.
@@ -162,8 +162,8 @@ var buttonStyles = sortCx({
162
162
  primary: {
163
163
  root: "bg-button-primary",
164
164
  label: "text-button-primary",
165
- /** Web `*:data-icon:not([data-icon=loading]):text-button-primary/70` */
166
- icon: "text-button-primary/70",
165
+ /** Same color as the label. Figma fg-white is full strength. */
166
+ icon: "text-button-primary",
167
167
  /** Loading icon inherits the primary label color. */
168
168
  spinner: "text-button-primary"
169
169
  },
@@ -243,10 +243,12 @@ var isReactComponent = (component) => {
243
243
  var nativeButtonInteraction = sortCx({
244
244
  root: "active:scale-[0.985]",
245
245
  drop: "shadow-xs",
246
+ primaryDrop: "shadow-button-primary-drop",
246
247
  clip: "absolute inset-0 overflow-hidden rounded-full",
247
248
  insetRing: "absolute inset-0 rounded-full border border-solid border-[rgba(0,0,0,0.18)]",
248
249
  bottomWeight: "absolute inset-x-0 bottom-0 h-0.5 bg-[rgba(0,0,0,0.05)]",
249
250
  topHighlight: "absolute left-px right-px top-px h-px bg-[rgba(255,255,255,0.12)]",
251
+ primaryBorder: "absolute inset-0 rounded-full border-2 border-solid border-white/12",
250
252
  secondaryBottom: "absolute inset-x-0 bottom-0 h-px bg-[rgba(0,0,0,0.05)]",
251
253
  colors: {
252
254
  primary: "active:bg-button-primary_hover",
@@ -330,7 +332,7 @@ var Button = ({
330
332
  const iconToken = buttonStyles.colors[color].icon.replace(/^text-/, "");
331
333
  const onSolid = iconToken.startsWith("white");
332
334
  const resolvedIconColor = useNativeVariable(
333
- onSolid ? "--color-white" : iconToken.startsWith("fg-") ? `--color-${iconToken}` : `--color-text-${iconToken}`
335
+ onSolid ? "--color-white" : iconToken.startsWith("fg-") ? `--color-${iconToken}` : iconToken.startsWith("button-primary") ? "--color-button-primary-fg" : `--color-text-${iconToken}`
334
336
  );
335
337
  const iconColor = onSolid ? "rgba(255,255,255,0.7)" : typeof resolvedIconColor === "string" ? resolvedIconColor : void 0;
336
338
  const iconClassName = cx(
@@ -361,7 +363,7 @@ var Button = ({
361
363
  flattenInGroup ? cx(buttonStyles.inputGroup.root, buttonStyles.inputGroup[size]) : cx(buttonStyles.sizes[size].root, isIcon && buttonStyles.sizes[size].iconOnly),
362
364
  flattenInGroup ? "bg-primary" : buttonStyles.colors[color].root,
363
365
  !flattenInGroup && hasPressScale(color) && nativeButtonInteraction.root,
364
- !flattenInGroup && (isSolidSkeuomorphic(color) || isSecondarySkeuomorphic(color)) && nativeButtonInteraction.drop,
366
+ !flattenInGroup && (isSolidSkeuomorphic(color) || isSecondarySkeuomorphic(color)) && (color === "primary" ? nativeButtonInteraction.primaryDrop : nativeButtonInteraction.drop),
365
367
  nativeButtonInteraction.colors[color],
366
368
  isLinkType && "h-auto min-h-0 px-0 py-0",
367
369
  // Web applies disabled opacity only when disabled — not while loading.
@@ -373,7 +375,12 @@ var Button = ({
373
375
  !flattenInGroup && isSolidSkeuomorphic(color) && /* @__PURE__ */ jsxs(View, { pointerEvents: "none", className: nativeButtonInteraction.clip, children: [
374
376
  /* @__PURE__ */ jsx(View, { className: nativeButtonInteraction.insetRing }),
375
377
  /* @__PURE__ */ jsx(View, { className: nativeButtonInteraction.bottomWeight }),
376
- /* @__PURE__ */ jsx(View, { className: nativeButtonInteraction.topHighlight })
378
+ /* @__PURE__ */ jsx(
379
+ View,
380
+ {
381
+ className: color === "primary" ? nativeButtonInteraction.primaryBorder : nativeButtonInteraction.topHighlight
382
+ }
383
+ )
377
384
  ] }),
378
385
  !flattenInGroup && isSecondarySkeuomorphic(color) && /* @__PURE__ */ jsx(View, { pointerEvents: "none", className: nativeButtonInteraction.clip, children: /* @__PURE__ */ jsx(View, { className: nativeButtonInteraction.secondaryBottom }) }),
379
386
  /* @__PURE__ */ jsxs(IconContext.Provider, { value: iconColor ? { color: iconColor } : {}, children: [