@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.
@@ -2,8 +2,8 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-OJIFXMLD.mjs";
6
- import "./chunk-3LNPXJEW.mjs";
5
+ } from "./chunk-6QFPLRSP.mjs";
6
+ import "./chunk-ZB2UU6EO.mjs";
7
7
  import {
8
8
  createJsxDEV
9
9
  } from "./chunk-4DQXTAM3.mjs";
@@ -1192,8 +1192,8 @@ function borderValue(theme, parsed) {
1192
1192
  if (value === "solid" || value === "dashed" || value === "dotted" || value === "double" || value === "hidden" || value === "none") {
1193
1193
  return [decl("border-style", value)];
1194
1194
  }
1195
- const hex = lookupHex(theme, value);
1196
- return hex === null ? null : [decl("border-color", hex)];
1195
+ const color = colorValue(theme, parsed);
1196
+ return color === null ? null : [decl("border-color", color)];
1197
1197
  }
1198
1198
  function borderSideValue(theme, parsed, sideProperty) {
1199
1199
  const value = parsed.value;
@@ -1206,8 +1206,8 @@ function borderSideValue(theme, parsed, sideProperty) {
1206
1206
  if (value === "solid" || value === "dashed" || value === "dotted" || value === "double" || value === "hidden" || value === "none") {
1207
1207
  return [decl(`${sideProperty}-style`, value)];
1208
1208
  }
1209
- const hex = lookupHex(theme, value);
1210
- return hex === null ? null : [decl(`${sideProperty}-color`, hex)];
1209
+ const color = colorValue(theme, parsed);
1210
+ return color === null ? null : [decl(`${sideProperty}-color`, color)];
1211
1211
  }
1212
1212
  function borderAxisValue(theme, parsed, sideA, sideB) {
1213
1213
  const value = parsed.value;
@@ -1220,8 +1220,8 @@ function borderAxisValue(theme, parsed, sideA, sideB) {
1220
1220
  if (value === "solid" || value === "dashed" || value === "dotted" || value === "double" || value === "hidden" || value === "none") {
1221
1221
  return [decl(`${sideA}-style`, value), decl(`${sideB}-style`, value)];
1222
1222
  }
1223
- const hex = lookupHex(theme, value);
1224
- return hex === null ? null : [decl(`${sideA}-color`, hex), decl(`${sideB}-color`, hex)];
1223
+ const color = colorValue(theme, parsed);
1224
+ return color === null ? null : [decl(`${sideA}-color`, color), decl(`${sideB}-color`, color)];
1225
1225
  }
1226
1226
  function radiusProperties(side) {
1227
1227
  switch (side) {
@@ -1283,8 +1283,8 @@ function outlineValue(theme, parsed) {
1283
1283
  const w = outlineWidthValue(value);
1284
1284
  if (w !== null) return [decl("outline-width", w)];
1285
1285
  if (OUTLINE_STYLES.includes(value)) return [decl("outline-style", value)];
1286
- const hex = lookupHex(theme, value);
1287
- return hex === null ? null : [decl("outline-color", hex)];
1286
+ const color = colorValue(theme, parsed);
1287
+ return color === null ? null : [decl("outline-color", color)];
1288
1288
  }
1289
1289
  function outlineOffsetValue(parsed) {
1290
1290
  const value = parsed.value;
@@ -1320,7 +1320,7 @@ function ringValue(theme, parsed) {
1320
1320
  const w = ringWidth(value);
1321
1321
  if (w !== null) return [decl("--kb-ring-width", w), decl("box-shadow", RING_BOX_SHADOW)];
1322
1322
  }
1323
- const color = parsed.isArbitrary ? value : lookupHex(theme, value);
1323
+ const color = colorValue(theme, parsed);
1324
1324
  if (color === null) return null;
1325
1325
  return [decl("--kb-ring-color", color), decl("box-shadow", RING_BOX_SHADOW)];
1326
1326
  }
@@ -1331,7 +1331,7 @@ function ringOffsetValue(theme, parsed) {
1331
1331
  const w = ringWidth(value);
1332
1332
  if (w !== null) return [decl("--kb-ring-offset-width", w), decl("box-shadow", RING_BOX_SHADOW)];
1333
1333
  }
1334
- const color = parsed.isArbitrary ? value : lookupHex(theme, value);
1334
+ const color = colorValue(theme, parsed);
1335
1335
  if (color === null) return null;
1336
1336
  return [decl("--kb-ring-offset-color", color), decl("box-shadow", RING_BOX_SHADOW)];
1337
1337
  }
@@ -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
  } from "./chunk-4DQXTAM3.mjs";