@ankhorage/zora 0.3.0 → 0.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
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - f3a3da3: Export IconProps
8
+
9
+ ## 0.3.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 5348764: Sort imports
14
+
15
+ ## 0.3.1
16
+
17
+ ### Patch Changes
18
+
19
+ - 798dc20: Add missing useZoraTheme file
20
+
3
21
  ## 0.3.0
4
22
 
5
23
  ### Minor Changes
@@ -0,0 +1,5 @@
1
+ import { type IconProps as SurfaceIconProps } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ export type IconProps = SurfaceIconProps;
4
+ export declare function Icon(props: IconProps): React.JSX.Element;
5
+ //# sourceMappingURL=Icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,SAAS,GAAG,gBAAgB,CAAC;AAEzC,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,qBAEpC"}
@@ -0,0 +1,6 @@
1
+ import { Icon as SurfaceIcon } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ export function Icon(props) {
4
+ return <SurfaceIcon {...props}/>;
5
+ }
6
+ //# sourceMappingURL=Icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/components/icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,WAAW,EAAsC,MAAM,oBAAoB,CAAC;AAC7F,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,UAAU,IAAI,CAAC,KAAgB;IACnC,OAAO,CAAC,WAAW,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AACpC,CAAC"}
@@ -1,3 +1,3 @@
1
- export type { ButtonIconSpec, IconProps } from '@ankhorage/surface';
2
- export { Icon } from '@ankhorage/surface';
1
+ export type { IconProps } from './Icon';
2
+ export { Icon } from './Icon';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icon/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icon/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
@@ -1,2 +1,2 @@
1
- export { Icon } from '@ankhorage/surface';
1
+ export { Icon } from './Icon';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/icon/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/icon/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export type { ZoraThemeOverride } from './createZoraTheme';
2
2
  export { createZoraTheme } from './createZoraTheme';
3
+ export { useZoraTheme } from './useZoraTheme';
3
4
  export type { ZoraProviderProps } from './ZoraProvider';
4
5
  export { ZoraProvider } from './ZoraProvider';
5
6
  export { zoraTheme } from './zoraTheme';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export { createZoraTheme } from './createZoraTheme';
2
+ export { useZoraTheme } from './useZoraTheme';
2
3
  export { ZoraProvider } from './ZoraProvider';
3
4
  export { zoraTheme } from './zoraTheme';
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare function useZoraTheme(): {
2
+ theme: import("@ankhorage/surface").AnkhTheme;
3
+ mode: "light" | "dark";
4
+ setThemeConfig: (config: Partial<import("@ankhorage/contracts").ThemeConfig>) => void;
5
+ setMode: (mode: "light" | "dark") => void;
6
+ _hasProvider?: boolean;
7
+ };
8
+ //# sourceMappingURL=useZoraTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useZoraTheme.d.ts","sourceRoot":"","sources":["../../src/theme/useZoraTheme.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY;;;;;;EAE3B"}
@@ -0,0 +1,5 @@
1
+ import { useTheme } from '@ankhorage/surface';
2
+ export function useZoraTheme() {
3
+ return useTheme();
4
+ }
5
+ //# sourceMappingURL=useZoraTheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useZoraTheme.js","sourceRoot":"","sources":["../../src/theme/useZoraTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,MAAM,UAAU,YAAY;IAC1B,OAAO,QAAQ,EAAE,CAAC;AACpB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ankhorage/zora",
3
3
  "type": "module",
4
- "version": "0.3.0",
4
+ "version": "0.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": {