@ankhorage/zora 3.3.2 → 3.3.3
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/zora",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.3",
|
|
5
5
|
"description": "Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.",
|
|
6
6
|
"homepage": "https://github.com/ankhorage/zora#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"react-native-web": "~0.21.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@ankhorage/color-theory": "^0.0
|
|
40
|
-
"@ankhorage/contracts": "^8.0.
|
|
41
|
-
"@ankhorage/surface": "^3.1.
|
|
39
|
+
"@ankhorage/color-theory": "^0.3.0",
|
|
40
|
+
"@ankhorage/contracts": "^8.0.2",
|
|
41
|
+
"@ankhorage/surface": "^3.1.2"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"dist",
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
|
|
3
|
+
import { parseHexColorOrThrow } from '@ankhorage/color-theory';
|
|
2
4
|
import { APP_CATEGORIES } from '@ankhorage/contracts';
|
|
3
5
|
import { describe, expect, test } from 'bun:test';
|
|
4
6
|
|
|
5
7
|
import { zoraDefaultTheme } from '../../theme/zoraDefaultTheme';
|
|
6
8
|
import type { ThemeComposerProps } from './types';
|
|
7
9
|
|
|
10
|
+
const themeComposerSource = readFileSync(new URL('./ThemeComposer.tsx', import.meta.url), 'utf8');
|
|
11
|
+
|
|
8
12
|
// ---------------------------------------------------------------------------
|
|
9
13
|
// ThemeComposerProps shape tests
|
|
10
14
|
// ---------------------------------------------------------------------------
|
|
@@ -56,20 +60,12 @@ describe('ThemeComposerProps', () => {
|
|
|
56
60
|
});
|
|
57
61
|
|
|
58
62
|
// ---------------------------------------------------------------------------
|
|
59
|
-
// COLOR_HARMONIES
|
|
63
|
+
// COLOR_HARMONIES ownership
|
|
60
64
|
// ---------------------------------------------------------------------------
|
|
61
65
|
|
|
62
|
-
describe('COLOR_HARMONIES
|
|
63
|
-
test('
|
|
64
|
-
|
|
65
|
-
'monochromatic',
|
|
66
|
-
'analogous',
|
|
67
|
-
'complementary',
|
|
68
|
-
'triadic',
|
|
69
|
-
'tetradic',
|
|
70
|
-
'splitComplementary',
|
|
71
|
-
] as const;
|
|
72
|
-
expect(COLOR_HARMONIES).toEqual(expected);
|
|
66
|
+
describe('COLOR_HARMONIES ownership for ThemeComposer', () => {
|
|
67
|
+
test('derives Select options from the canonical Color Theory catalog', () => {
|
|
68
|
+
expect(themeComposerSource).toContain('COLOR_HARMONIES.map');
|
|
73
69
|
});
|
|
74
70
|
});
|
|
75
71
|
|