@kbach/react-native 1.0.0-beta.12 → 1.0.0-beta.13

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.
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-TDWBXJH5.mjs";
8
8
  import {
9
9
  resolveClassName
10
- } from "./chunk-3LNPXJEW.mjs";
10
+ } from "./chunk-ZB2UU6EO.mjs";
11
11
  import {
12
12
  getGlobalDarkMode,
13
13
  getGlobalThemeMode,
@@ -1201,8 +1201,8 @@ function borderValue(theme, parsed) {
1201
1201
  if (value === "solid" || value === "dashed" || value === "dotted" || value === "double" || value === "hidden" || value === "none") {
1202
1202
  return [decl("border-style", value)];
1203
1203
  }
1204
- const hex = lookupHex(theme, value);
1205
- return hex === null ? null : [decl("border-color", hex)];
1204
+ const color = colorValue(theme, parsed);
1205
+ return color === null ? null : [decl("border-color", color)];
1206
1206
  }
1207
1207
  function borderSideValue(theme, parsed, sideProperty) {
1208
1208
  const value = parsed.value;
@@ -1215,8 +1215,8 @@ function borderSideValue(theme, parsed, sideProperty) {
1215
1215
  if (value === "solid" || value === "dashed" || value === "dotted" || value === "double" || value === "hidden" || value === "none") {
1216
1216
  return [decl(`${sideProperty}-style`, value)];
1217
1217
  }
1218
- const hex = lookupHex(theme, value);
1219
- return hex === null ? null : [decl(`${sideProperty}-color`, hex)];
1218
+ const color = colorValue(theme, parsed);
1219
+ return color === null ? null : [decl(`${sideProperty}-color`, color)];
1220
1220
  }
1221
1221
  function borderAxisValue(theme, parsed, sideA, sideB) {
1222
1222
  const value = parsed.value;
@@ -1229,8 +1229,8 @@ function borderAxisValue(theme, parsed, sideA, sideB) {
1229
1229
  if (value === "solid" || value === "dashed" || value === "dotted" || value === "double" || value === "hidden" || value === "none") {
1230
1230
  return [decl(`${sideA}-style`, value), decl(`${sideB}-style`, value)];
1231
1231
  }
1232
- const hex = lookupHex(theme, value);
1233
- return hex === null ? null : [decl(`${sideA}-color`, hex), decl(`${sideB}-color`, hex)];
1232
+ const color = colorValue(theme, parsed);
1233
+ return color === null ? null : [decl(`${sideA}-color`, color), decl(`${sideB}-color`, color)];
1234
1234
  }
1235
1235
  function radiusProperties(side) {
1236
1236
  switch (side) {
@@ -1292,8 +1292,8 @@ function outlineValue(theme, parsed) {
1292
1292
  const w = outlineWidthValue(value);
1293
1293
  if (w !== null) return [decl("outline-width", w)];
1294
1294
  if (OUTLINE_STYLES.includes(value)) return [decl("outline-style", value)];
1295
- const hex = lookupHex(theme, value);
1296
- return hex === null ? null : [decl("outline-color", hex)];
1295
+ const color = colorValue(theme, parsed);
1296
+ return color === null ? null : [decl("outline-color", color)];
1297
1297
  }
1298
1298
  function outlineOffsetValue(parsed) {
1299
1299
  const value = parsed.value;
@@ -1329,7 +1329,7 @@ function ringValue(theme, parsed) {
1329
1329
  const w = ringWidth(value);
1330
1330
  if (w !== null) return [decl("--kb-ring-width", w), decl("box-shadow", RING_BOX_SHADOW)];
1331
1331
  }
1332
- const color = parsed.isArbitrary ? value : lookupHex(theme, value);
1332
+ const color = colorValue(theme, parsed);
1333
1333
  if (color === null) return null;
1334
1334
  return [decl("--kb-ring-color", color), decl("box-shadow", RING_BOX_SHADOW)];
1335
1335
  }
@@ -1340,7 +1340,7 @@ function ringOffsetValue(theme, parsed) {
1340
1340
  const w = ringWidth(value);
1341
1341
  if (w !== null) return [decl("--kb-ring-offset-width", w), decl("box-shadow", RING_BOX_SHADOW)];
1342
1342
  }
1343
- const color = parsed.isArbitrary ? value : lookupHex(theme, value);
1343
+ const color = colorValue(theme, parsed);
1344
1344
  if (color === null) return null;
1345
1345
  return [decl("--kb-ring-offset-color", color), decl("box-shadow", RING_BOX_SHADOW)];
1346
1346
  }
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  jsx,
3
3
  jsxs
4
- } from "./chunk-7AIH5MXY.mjs";
5
- import "./chunk-MGXMALPC.mjs";
4
+ } from "./chunk-GU6DH6UE.mjs";
5
+ import "./chunk-JMNJCPGK.mjs";
6
6
  import {
7
7
  Fragment,
8
8
  createJsxDEV