* Theme-aware Box component that resolves theme color keys to raw colors. * This wraps the base Box component with theme resolution for border colors.
(t0)
| 54 | * This wraps the base Box component with theme resolution for border colors. |
| 55 | */ |
| 56 | function ThemedBox(t0) { |
| 57 | const $ = _c(33); |
| 58 | let backgroundColor; |
| 59 | let borderBottomColor; |
| 60 | let borderColor; |
| 61 | let borderLeftColor; |
| 62 | let borderRightColor; |
| 63 | let borderTopColor; |
| 64 | let children; |
| 65 | let ref; |
| 66 | let rest; |
| 67 | if ($[0] !== t0) { |
| 68 | ({ |
| 69 | borderColor, |
| 70 | borderTopColor, |
| 71 | borderBottomColor, |
| 72 | borderLeftColor, |
| 73 | borderRightColor, |
| 74 | backgroundColor, |
| 75 | children, |
| 76 | ref, |
| 77 | ...rest |
| 78 | } = t0); |
| 79 | $[0] = t0; |
| 80 | $[1] = backgroundColor; |
| 81 | $[2] = borderBottomColor; |
| 82 | $[3] = borderColor; |
| 83 | $[4] = borderLeftColor; |
| 84 | $[5] = borderRightColor; |
| 85 | $[6] = borderTopColor; |
| 86 | $[7] = children; |
| 87 | $[8] = ref; |
| 88 | $[9] = rest; |
| 89 | } else { |
| 90 | backgroundColor = $[1]; |
| 91 | borderBottomColor = $[2]; |
| 92 | borderColor = $[3]; |
| 93 | borderLeftColor = $[4]; |
| 94 | borderRightColor = $[5]; |
| 95 | borderTopColor = $[6]; |
| 96 | children = $[7]; |
| 97 | ref = $[8]; |
| 98 | rest = $[9]; |
| 99 | } |
| 100 | const [themeName] = useTheme(); |
| 101 | let resolvedBorderBottomColor; |
| 102 | let resolvedBorderColor; |
| 103 | let resolvedBorderLeftColor; |
| 104 | let resolvedBorderRightColor; |
| 105 | let resolvedBorderTopColor; |
| 106 | let t1; |
| 107 | if ($[10] !== backgroundColor || $[11] !== borderBottomColor || $[12] !== borderColor || $[13] !== borderLeftColor || $[14] !== borderRightColor || $[15] !== borderTopColor || $[16] !== themeName) { |
| 108 | const theme = getTheme(themeName); |
| 109 | resolvedBorderColor = resolveColor(borderColor, theme); |
| 110 | resolvedBorderTopColor = resolveColor(borderTopColor, theme); |
| 111 | resolvedBorderBottomColor = resolveColor(borderBottomColor, theme); |
| 112 | resolvedBorderLeftColor = resolveColor(borderLeftColor, theme); |
| 113 | resolvedBorderRightColor = resolveColor(borderRightColor, theme); |
nothing calls this directly
no test coverage detected