@ankhorage/zora 2.4.2 → 2.4.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
|
@@ -7,7 +7,7 @@ export declare const noticeMeta: {
|
|
|
7
7
|
readonly label: "Notice";
|
|
8
8
|
readonly defaultProps: {
|
|
9
9
|
readonly title: "Notice";
|
|
10
|
-
readonly
|
|
10
|
+
readonly color: "primary";
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
readonly props: {
|
|
@@ -22,10 +22,10 @@ export declare const noticeMeta: {
|
|
|
22
22
|
readonly category: "Content";
|
|
23
23
|
readonly label: "Description";
|
|
24
24
|
};
|
|
25
|
-
readonly
|
|
25
|
+
readonly color: {
|
|
26
26
|
readonly type: "enum";
|
|
27
27
|
readonly category: "Style";
|
|
28
|
-
readonly label: "
|
|
28
|
+
readonly label: "Color";
|
|
29
29
|
readonly enum: readonly ["primary", "neutral", "danger", "success", "warning"];
|
|
30
30
|
readonly default: "primary";
|
|
31
31
|
};
|
|
@@ -8,7 +8,7 @@ export const noticeMeta = {
|
|
|
8
8
|
label: 'Notice',
|
|
9
9
|
defaultProps: {
|
|
10
10
|
title: 'Notice',
|
|
11
|
-
|
|
11
|
+
color: 'primary',
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
14
|
props: {
|
|
@@ -23,10 +23,10 @@ export const noticeMeta = {
|
|
|
23
23
|
category: 'Content',
|
|
24
24
|
label: 'Description',
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
color: {
|
|
27
27
|
type: 'enum',
|
|
28
28
|
category: 'Style',
|
|
29
|
-
label: '
|
|
29
|
+
label: 'Color',
|
|
30
30
|
enum: ['primary', 'neutral', 'danger', 'success', 'warning'],
|
|
31
31
|
default: 'primary',
|
|
32
32
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/patterns/notice/meta.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAE5E,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,CAAC,GAAG,0BAA0B,CAAC;IAChD,SAAS,EAAE;QACT,KAAK,EAAE,QAAQ;QACf,YAAY,EAAE;YACZ,KAAK,EAAE,QAAQ;YACf,
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/patterns/notice/meta.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAE5E,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,CAAC,GAAG,0BAA0B,CAAC;IAChD,SAAS,EAAE;QACT,KAAK,EAAE,QAAQ;QACf,YAAY,EAAE;YACZ,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,SAAS;SACjB;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,QAAQ;SAClB;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,aAAa;SACrB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC;YAC5D,OAAO,EAAE,SAAS;SACnB;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\nimport { CONTAINER_ALLOWED_CHILDREN } from '../../metadata/allowedChildren';\n\nexport const noticeMeta = {\n name: 'Notice',\n category: 'pattern',\n directManifestNode: true,\n allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],\n blueprint: {\n label: 'Notice',\n defaultProps: {\n title: 'Notice',\n color: 'primary',\n },\n },\n props: {\n title: {\n type: 'string',\n category: 'Content',\n label: 'Title',\n default: 'Notice',\n },\n description: {\n type: 'string',\n category: 'Content',\n label: 'Description',\n },\n color: {\n type: 'enum',\n category: 'Style',\n label: 'Color',\n enum: ['primary', 'neutral', 'danger', 'success', 'warning'],\n default: 'primary',\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare function useZoraTheme(): {
|
|
2
2
|
theme: import("@ankhorage/surface").SurfaceTheme;
|
|
3
3
|
mode: "light" | "dark";
|
|
4
|
-
setThemeConfig: (config: Partial<import("@ankhorage/
|
|
4
|
+
setThemeConfig: (config: Partial<import("@ankhorage/contracts").ThemeConfig>) => void;
|
|
5
5
|
setMode: (mode: "light" | "dark") => void;
|
|
6
6
|
_hasProvider?: boolean;
|
|
7
7
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/zora",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.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": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@ankhorage/color-theory": "^0.0.7",
|
|
47
47
|
"@ankhorage/contracts": "^1.7.0",
|
|
48
|
-
"@ankhorage/surface": "^2.0.
|
|
48
|
+
"@ankhorage/surface": "^2.0.1"
|
|
49
49
|
},
|
|
50
50
|
"files": [
|
|
51
51
|
"dist",
|
|
@@ -10,7 +10,7 @@ export const noticeMeta = {
|
|
|
10
10
|
label: 'Notice',
|
|
11
11
|
defaultProps: {
|
|
12
12
|
title: 'Notice',
|
|
13
|
-
|
|
13
|
+
color: 'primary',
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
props: {
|
|
@@ -25,10 +25,10 @@ export const noticeMeta = {
|
|
|
25
25
|
category: 'Content',
|
|
26
26
|
label: 'Description',
|
|
27
27
|
},
|
|
28
|
-
|
|
28
|
+
color: {
|
|
29
29
|
type: 'enum',
|
|
30
30
|
category: 'Style',
|
|
31
|
-
label: '
|
|
31
|
+
label: 'Color',
|
|
32
32
|
enum: ['primary', 'neutral', 'danger', 'success', 'warning'],
|
|
33
33
|
default: 'primary',
|
|
34
34
|
},
|