@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.
package/dist/index.js CHANGED
@@ -1184,8 +1184,8 @@ function borderValue(theme, parsed) {
1184
1184
  if (value === "solid" || value === "dashed" || value === "dotted" || value === "double" || value === "hidden" || value === "none") {
1185
1185
  return [decl("border-style", value)];
1186
1186
  }
1187
- const hex = lookupHex(theme, value);
1188
- return hex === null ? null : [decl("border-color", hex)];
1187
+ const color = colorValue(theme, parsed);
1188
+ return color === null ? null : [decl("border-color", color)];
1189
1189
  }
1190
1190
  function borderSideValue(theme, parsed, sideProperty) {
1191
1191
  const value = parsed.value;
@@ -1198,8 +1198,8 @@ function borderSideValue(theme, parsed, sideProperty) {
1198
1198
  if (value === "solid" || value === "dashed" || value === "dotted" || value === "double" || value === "hidden" || value === "none") {
1199
1199
  return [decl(`${sideProperty}-style`, value)];
1200
1200
  }
1201
- const hex = lookupHex(theme, value);
1202
- return hex === null ? null : [decl(`${sideProperty}-color`, hex)];
1201
+ const color = colorValue(theme, parsed);
1202
+ return color === null ? null : [decl(`${sideProperty}-color`, color)];
1203
1203
  }
1204
1204
  function borderAxisValue(theme, parsed, sideA, sideB) {
1205
1205
  const value = parsed.value;
@@ -1212,8 +1212,8 @@ function borderAxisValue(theme, parsed, sideA, sideB) {
1212
1212
  if (value === "solid" || value === "dashed" || value === "dotted" || value === "double" || value === "hidden" || value === "none") {
1213
1213
  return [decl(`${sideA}-style`, value), decl(`${sideB}-style`, value)];
1214
1214
  }
1215
- const hex = lookupHex(theme, value);
1216
- return hex === null ? null : [decl(`${sideA}-color`, hex), decl(`${sideB}-color`, hex)];
1215
+ const color = colorValue(theme, parsed);
1216
+ return color === null ? null : [decl(`${sideA}-color`, color), decl(`${sideB}-color`, color)];
1217
1217
  }
1218
1218
  function radiusProperties(side) {
1219
1219
  switch (side) {
@@ -1275,8 +1275,8 @@ function outlineValue(theme, parsed) {
1275
1275
  const w = outlineWidthValue(value);
1276
1276
  if (w !== null) return [decl("outline-width", w)];
1277
1277
  if (OUTLINE_STYLES.includes(value)) return [decl("outline-style", value)];
1278
- const hex = lookupHex(theme, value);
1279
- return hex === null ? null : [decl("outline-color", hex)];
1278
+ const color = colorValue(theme, parsed);
1279
+ return color === null ? null : [decl("outline-color", color)];
1280
1280
  }
1281
1281
  function outlineOffsetValue(parsed) {
1282
1282
  const value = parsed.value;
@@ -1312,7 +1312,7 @@ function ringValue(theme, parsed) {
1312
1312
  const w = ringWidth(value);
1313
1313
  if (w !== null) return [decl("--kb-ring-width", w), decl("box-shadow", RING_BOX_SHADOW)];
1314
1314
  }
1315
- const color = parsed.isArbitrary ? value : lookupHex(theme, value);
1315
+ const color = colorValue(theme, parsed);
1316
1316
  if (color === null) return null;
1317
1317
  return [decl("--kb-ring-color", color), decl("box-shadow", RING_BOX_SHADOW)];
1318
1318
  }
@@ -1323,7 +1323,7 @@ function ringOffsetValue(theme, parsed) {
1323
1323
  const w = ringWidth(value);
1324
1324
  if (w !== null) return [decl("--kb-ring-offset-width", w), decl("box-shadow", RING_BOX_SHADOW)];
1325
1325
  }
1326
- const color = parsed.isArbitrary ? value : lookupHex(theme, value);
1326
+ const color = colorValue(theme, parsed);
1327
1327
  if (color === null) return null;
1328
1328
  return [decl("--kb-ring-offset-color", color), decl("box-shadow", RING_BOX_SHADOW)];
1329
1329
  }
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-TDWBXJH5.mjs";
8
8
  import {
9
9
  resolveStyle
10
- } from "./chunk-MGXMALPC.mjs";
10
+ } from "./chunk-JMNJCPGK.mjs";
11
11
  import {
12
12
  getGlobalDarkMode,
13
13
  getGlobalThemeMode,