@raystack/apsara 0.10.9 → 0.10.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raystack/apsara",
3
- "version": "0.10.9",
3
+ "version": "0.10.10",
4
4
  "types": "dist/index.d.ts",
5
5
  "sideEffects": false,
6
6
  "engines": {
@@ -17,13 +17,6 @@
17
17
  "dist",
18
18
  "README.md"
19
19
  ],
20
- "scripts": {
21
- "build": "rollup --config",
22
- "dev": "rollup --config --watch",
23
- "lint": "eslint \"**/*.ts*\"",
24
- "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
25
- "test": "echo \"Error: no test specified\" && exit 0"
26
- },
27
20
  "keywords": [],
28
21
  "author": "",
29
22
  "license": "ISC",
@@ -51,7 +44,6 @@
51
44
  "@types/react": "^18.2.12",
52
45
  "class-variance-authority": "^0.6.0",
53
46
  "cmdk": "^0.2.0",
54
- "eslint-config-custom": "workspace:*",
55
47
  "np": "^8.0.4",
56
48
  "npm": "^9.7.1",
57
49
  "parcel": "^2.9.2",
@@ -60,8 +52,16 @@
60
52
  "react": "^18.2.0",
61
53
  "rollup": "^3.25.1",
62
54
  "rollup-plugin-postcss": "^4.0.2",
63
- "tsconfig": "workspace:*",
64
55
  "typescript": "4.7",
65
- "usehooks-ts": "^2.9.1"
56
+ "usehooks-ts": "^2.9.1",
57
+ "eslint-config-custom": "0.0.0",
58
+ "tsconfig": "0.0.0"
59
+ },
60
+ "scripts": {
61
+ "build": "rollup --config",
62
+ "dev": "rollup --config --watch",
63
+ "lint": "eslint \"**/*.ts*\"",
64
+ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist && rm -rf react/dist",
65
+ "test": "echo \"Error: no test specified\" && exit 0"
66
66
  }
67
- }
67
+ }
@@ -1,4 +0,0 @@
1
- export declare type MediaTheme = "dark" | "light";
2
- export declare const getMediaTheme: () => MediaTheme | null;
3
- export declare const listenForOSPreferenceChanges: (preferenceChanged: (preference: MediaTheme) => void) => null | undefined;
4
- //# sourceMappingURL=OSPreference.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OSPreference.d.ts","sourceRoot":"","sources":["../../themprovider/OSPreference.ts"],"names":[],"mappings":"AAEA,oBAAY,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC;AAC1C,eAAO,MAAM,aAAa,QAAO,UAAU,GAAG,IAQ7C,CAAC;AAEF,eAAO,MAAM,4BAA4B,mCACP,UAAU,KAAK,IAAI,qBAkBpD,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare type ThemePreference = "auto" | "dark" | "light";
2
- export declare function isValidThemePreference(theme: string | null): theme is ThemePreference;
3
- export declare const saveThemePreference: (newTheme: ThemePreference) => void;
4
- export declare const getSavedThemePreference: () => ThemePreference | null;
5
- //# sourceMappingURL=storage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../themprovider/storage.ts"],"names":[],"mappings":"AAEA,oBAAY,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AACxD,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,GAAG,IAAI,GACnB,KAAK,IAAI,eAAe,CAE1B;AAED,eAAO,MAAM,mBAAmB,aAAc,eAAe,SAO5D,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAAO,eAAe,GAAG,IAW5D,CAAC"}
@@ -1,19 +0,0 @@
1
- import React from "react";
2
- import { ThemePreference } from "./storage";
3
- declare type Theme = "dark" | "light";
4
- declare type ThemeProviderType = {
5
- themeName: Theme;
6
- themePreference: ThemePreference;
7
- setTheme(newTheme: string): void;
8
- };
9
- declare const ApsaraThemeContext: React.Context<ThemeProviderType>;
10
- declare const ApsaraThemeProvider: ({ children }: {
11
- children: React.ReactNode;
12
- }) => import("react/jsx-runtime").JSX.Element;
13
- export declare function useApsaraTheme(): {
14
- themePreference: ThemePreference;
15
- setTheme: (newTheme: string) => void;
16
- themeName: Theme;
17
- };
18
- export { ApsaraThemeContext, ApsaraThemeProvider };
19
- //# sourceMappingURL=themeprovider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"themeprovider.d.ts","sourceRoot":"","sources":["../../themprovider/themeprovider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAQ1C,OAAO,EAIL,eAAe,EAChB,MAAM,WAAW,CAAC;AAKnB,aAAK,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AAM9B,aAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,KAAK,CAAC;IACjB,eAAe,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC,CAAC;AAQF,QAAA,MAAM,kBAAkB,kCAAkD,CAAC;AAyD3E,QAAA,MAAM,mBAAmB;cAA8B,MAAM,SAAS;6CAarE,CAAC;AAEF,wBAAgB,cAAc;;;;EAW7B;AAED,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,CAAC"}