@decafhub/decaf-react-webapp 0.1.1 → 0.1.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.
Files changed (52) hide show
  1. package/README.md +4 -11
  2. package/dist/components/Breadcrumb.d.ts +2 -2
  3. package/dist/components/Breadcrumb.d.ts.map +1 -1
  4. package/dist/components/DocumentationButton.d.ts +2 -2
  5. package/dist/components/DocumentationButton.d.ts.map +1 -1
  6. package/dist/components/Error.d.ts +5 -5
  7. package/dist/components/Error.d.ts.map +1 -1
  8. package/dist/components/Layout.d.ts +4 -4
  9. package/dist/components/Layout.d.ts.map +1 -1
  10. package/dist/components/Logo.d.ts +2 -2
  11. package/dist/components/Logo.d.ts.map +1 -1
  12. package/dist/components/Menu.d.ts +3 -3
  13. package/dist/components/Menu.d.ts.map +1 -1
  14. package/dist/components/PageAbout.d.ts +1 -1
  15. package/dist/components/PageAbout.d.ts.map +1 -1
  16. package/dist/components/PageScroller.d.ts +2 -2
  17. package/dist/components/PageScroller.d.ts.map +1 -1
  18. package/dist/components/Screenshotter.d.ts +1 -1
  19. package/dist/components/Screenshotter.d.ts.map +1 -1
  20. package/dist/components/ThemeSwitcher.d.ts +2 -2
  21. package/dist/components/ThemeSwitcher.d.ts.map +1 -1
  22. package/dist/components/UserProfileDropdown.d.ts +2 -2
  23. package/dist/components/UserProfileDropdown.d.ts.map +1 -1
  24. package/dist/components/VersionSelector.d.ts +2 -2
  25. package/dist/components/VersionSelector.d.ts.map +1 -1
  26. package/dist/components/ZendeskWidget.d.ts +2 -2
  27. package/dist/components/ZendeskWidget.d.ts.map +1 -1
  28. package/dist/index.d.ts +2 -2
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +1 -1
  31. package/dist/index.js.map +1 -1
  32. package/dist/index.modern.mjs +2 -2
  33. package/dist/index.modern.mjs.map +1 -1
  34. package/dist/index.module.js +1 -1
  35. package/dist/index.module.js.map +1 -1
  36. package/dist/index.umd.js +1 -1
  37. package/dist/index.umd.js.map +1 -1
  38. package/dist/machinery/index.d.ts +4 -4
  39. package/dist/machinery/index.d.ts.map +1 -1
  40. package/dist/theme/-styles.d.ts.map +1 -1
  41. package/dist/theme/-theme-provider.d.ts +1 -1
  42. package/dist/theme/-theme-provider.d.ts.map +1 -1
  43. package/dist/utils.d.ts +12 -0
  44. package/dist/utils.d.ts.map +1 -1
  45. package/package.json +19 -19
  46. package/CHANGELOG.md +0 -192
  47. package/dist/components/PageLayout.d.ts +0 -10
  48. package/dist/components/PageLayout.d.ts.map +0 -1
  49. package/dist/style.d.ts +0 -5
  50. package/dist/style.d.ts.map +0 -1
  51. package/dist/theme.d.ts +0 -18
  52. package/dist/theme.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decafhub/decaf-react-webapp",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "keywords": [
5
5
  "decafhub",
6
6
  "react"
@@ -35,40 +35,40 @@
35
35
  "peerDependencies": {
36
36
  "@ant-design/icons": "^5",
37
37
  "@decafhub/decaf-client": "^0.3",
38
- "@decafhub/decaf-react": "^0.2",
38
+ "@decafhub/decaf-react": "^0.3",
39
39
  "antd": "^5.4",
40
40
  "react": "^18",
41
41
  "react-dom": "^18",
42
42
  "react-router-dom": "^6"
43
43
  },
44
44
  "dependencies": {
45
- "@emotion/react": "^11.10.6",
46
- "@emotion/styled": "^11.10.6",
47
- "@tanem/react-nprogress": "^5.0.35",
45
+ "@emotion/react": "^11.11.0",
46
+ "@emotion/styled": "^11.11.0",
47
+ "@tanem/react-nprogress": "^5.0.38",
48
48
  "decimal.js": "^10.4.3",
49
49
  "html2canvas": "^1.4.1",
50
50
  "js-cookie": "^3.0.5",
51
51
  "md5": "^2.3.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@ant-design/icons": "^5.0.1",
55
- "@commitlint/cli": "^17.6.1",
56
- "@commitlint/config-conventional": "^17.6.1",
57
- "@decafhub/decaf-client": "^0.3.2",
58
- "@decafhub/decaf-react": "^0.2.0",
54
+ "@ant-design/icons": "^5.1.0",
55
+ "@commitlint/cli": "^17.6.3",
56
+ "@commitlint/config-conventional": "^17.6.3",
57
+ "@decafhub/decaf-client": "^0.4.0",
58
+ "@decafhub/decaf-react": "^0.3.1",
59
59
  "@testing-library/jest-dom": "^5.16.5",
60
60
  "@testing-library/react": "^14.0.0",
61
61
  "@types/jest": "^29.5.1",
62
62
  "@types/js-cookie": "^3.0.3",
63
63
  "@types/md5": "^2.3.2",
64
- "@types/node": "^18.16.1",
65
- "@types/react": "^18.2.0",
66
- "@types/react-dom": "^18.2.1",
67
- "@typescript-eslint/eslint-plugin": "^5.59.1",
68
- "@typescript-eslint/parser": "^5.59.1",
69
- "antd": "^5.4.6",
64
+ "@types/node": "^20.2.1",
65
+ "@types/react": "^18.2.6",
66
+ "@types/react-dom": "^18.2.4",
67
+ "@typescript-eslint/eslint-plugin": "^5.59.6",
68
+ "@typescript-eslint/parser": "^5.59.6",
69
+ "antd": "^5.5.0",
70
70
  "cross-env": "^7.0.3",
71
- "eslint": "^8.39.0",
71
+ "eslint": "^8.40.0",
72
72
  "eslint-config-prettier": "^8.8.0",
73
73
  "eslint-config-standard": "^17.0.0",
74
74
  "eslint-plugin-import": "^2.27.5",
@@ -88,9 +88,9 @@
88
88
  "prettier": "^2.8.8",
89
89
  "react": "^18.2.0",
90
90
  "react-dom": "^18.2.0",
91
- "react-router-dom": "^6.10.0",
91
+ "react-router-dom": "^6.11.2",
92
92
  "ts-jest": "^29.1.0",
93
- "typedoc": "^0.24.6",
93
+ "typedoc": "^0.24.7",
94
94
  "typescript": "^5.0.4"
95
95
  },
96
96
  "lint-staged": {
package/CHANGELOG.md DELETED
@@ -1,192 +0,0 @@
1
- # Changelog
2
-
3
- ## [0.1.1](https://github.com/teloscube/decaf-react-webapp/compare/v0.1.0...v0.1.1) (2023-05-03)
4
-
5
-
6
- ### Bug Fixes
7
-
8
- * alignment is broken on version selector dropdown ([96df3f1](https://github.com/teloscube/decaf-react-webapp/commit/96df3f19b33009dba856332e22a3b6fd586306bf))
9
-
10
- ## [0.1.0](https://github.com/teloscube/decaf-react-webapp/compare/v0.0.15...v0.1.0) (2023-05-02)
11
-
12
-
13
- ### ⚠ BREAKING CHANGES
14
-
15
- * improve how routes/pages are implemented, add progress bar
16
- * upgrade peer-dependency @decafhub/decaf-react, devDependencies
17
- * set minimum supported react version to 18
18
-
19
- ### Features
20
-
21
- * add documentation button ([c4ed2a1](https://github.com/teloscube/decaf-react-webapp/commit/c4ed2a17cfcb628a582859e65b264f3fc33cd22a))
22
- * add optional `fullScreen` prop to routes to remove page paddings ([ede8a86](https://github.com/teloscube/decaf-react-webapp/commit/ede8a8644431f7f711ae8659d6be36f501abbe43))
23
- * add PageLayout component, revisit styles ([6166754](https://github.com/teloscube/decaf-react-webapp/commit/61667542e54e56105002ddb43df50cfb01ff46f8))
24
- * add user profile dropdown (wip) ([52a8d67](https://github.com/teloscube/decaf-react-webapp/commit/52a8d67a44935bd6918092b54fea5ccbe2a687ca))
25
- * implement a hook that tracks and updates remaining height ([743baaa](https://github.com/teloscube/decaf-react-webapp/commit/743baaa43ad6b19f2a1f289ef0cdf057c4e8444a)), closes [#38](https://github.com/teloscube/decaf-react-webapp/issues/38)
26
- * implement new, responsive breadcrumb component ([8e12ea0](https://github.com/teloscube/decaf-react-webapp/commit/8e12ea0d06fcaa031fdd6fd48fa9a4944fb21c65)), closes [#46](https://github.com/teloscube/decaf-react-webapp/issues/46)
27
- * improve how routes/pages are implemented, add progress bar ([66e258a](https://github.com/teloscube/decaf-react-webapp/commit/66e258a59e541df746acaba74d58d2a940893682))
28
- * improve utilities used within and exported from the library ([814749b](https://github.com/teloscube/decaf-react-webapp/commit/814749b9209195cdec7efe99c72a54c57accfdc8))
29
- * make header and footer responsive ([f1fa5bc](https://github.com/teloscube/decaf-react-webapp/commit/f1fa5bc101594e9a83a7372b88230c5bc3031b54)), closes [#29](https://github.com/teloscube/decaf-react-webapp/issues/29)
30
- * pass extras to breadcrumb via route configuration ([9f8617c](https://github.com/teloscube/decaf-react-webapp/commit/9f8617c6e59732dfd9b9b3f3e7911859dca38b27))
31
-
32
-
33
- ### Bug Fixes
34
-
35
- * allow non-href items in breadcrumb ([92178df](https://github.com/teloscube/decaf-react-webapp/commit/92178df27d5af603a92f61358e2b5c65f410e216))
36
- * export useDecafTheme ([a356401](https://github.com/teloscube/decaf-react-webapp/commit/a356401faadebac54989b3eea3c80a7dee499392))
37
- * hide caret when no text is shown for version selector ([ccde2a4](https://github.com/teloscube/decaf-react-webapp/commit/ccde2a4c4dbc68afb307f173baf7f44baca9b78f)), closes [#41](https://github.com/teloscube/decaf-react-webapp/issues/41)
38
- * revisit About page ([059d1d0](https://github.com/teloscube/decaf-react-webapp/commit/059d1d0642c57a9f72bed4844eb91ec9ad346bc1))
39
- * revisit footer ([a2afcc7](https://github.com/teloscube/decaf-react-webapp/commit/a2afcc7c4f9eb3a9a17178a7b2fc27bfd387cc53))
40
- * revisit footer for some minor improvements/fixes ([df49c94](https://github.com/teloscube/decaf-react-webapp/commit/df49c94620e7799340730b918b82cc9d9760c3e5))
41
- * revisit header ([675d611](https://github.com/teloscube/decaf-react-webapp/commit/675d6117d12a8b9cdd7a68ff7dd50b90a0fa9cff))
42
- * revisit user profile dropdown, separate it from main menu ([25aee32](https://github.com/teloscube/decaf-react-webapp/commit/25aee3200f7bc467a7a7c6ad9a349279a25899d4))
43
- * submenus are not highlighted when active ([ca6db59](https://github.com/teloscube/decaf-react-webapp/commit/ca6db592f27267e29c6d9a8020e49e404dfa4b46)), closes [#28](https://github.com/teloscube/decaf-react-webapp/issues/28)
44
-
45
-
46
- ### Miscellaneous Chores
47
-
48
- * set minimum supported react version to 18 ([e881a48](https://github.com/teloscube/decaf-react-webapp/commit/e881a48f3a53e806a084198e3f7625211aa20582))
49
- * upgrade peer-dependency @decafhub/decaf-react, devDependencies ([b25ce6a](https://github.com/teloscube/decaf-react-webapp/commit/b25ce6a45dc3999de5c4c68487378e1d28b6a663))
50
-
51
- ## [0.0.15](https://github.com/teloscube/decaf-react-webapp/compare/v0.0.14...v0.0.15) (2023-03-08)
52
-
53
-
54
- ### Features
55
-
56
- * change application font to Inter from Lato ([967073c](https://github.com/teloscube/decaf-react-webapp/commit/967073c9bf3707a8537274def8579944cb44fe8c))
57
- * export 401,403,404 and 500 error page components ([ef18836](https://github.com/teloscube/decaf-react-webapp/commit/ef1883673b9a7c7e906d51702b69cff1598a17dc)), closes [#25](https://github.com/teloscube/decaf-react-webapp/issues/25)
58
-
59
- ## [0.0.14](https://github.com/teloscube/decaf-react-webapp/compare/v0.0.13...v0.0.14) (2023-02-24)
60
-
61
-
62
- ### Bug Fixes
63
-
64
- * **styling:** improve theming on checkbox, datepicker and scrollbar in dark mode ([e894b44](https://github.com/teloscube/decaf-react-webapp/commit/e894b44e3e4bbf4f08e1ed0bc851ee630749fcac))
65
-
66
- ## [0.0.13](https://github.com/teloscube/decaf-react-webapp/compare/v0.0.12...v0.0.13) (2023-02-13)
67
-
68
-
69
- ### Bug Fixes
70
-
71
- * **routing:** use outlet system instead of children for shared layout ([4258f2f](https://github.com/teloscube/decaf-react-webapp/commit/4258f2f7078f64ac74681eae1951647909e407af))
72
-
73
- ## [0.0.12](https://github.com/teloscube/decaf-react-webapp/compare/v0.0.11...v0.0.12) (2023-02-13)
74
-
75
-
76
- ### Miscellaneous Chores
77
-
78
- * release 0.0.12 ([064ed1f](https://github.com/teloscube/decaf-react-webapp/commit/064ed1fbbaa077f1b681b357997a0be43f7a658d))
79
-
80
- ## [0.0.11](https://github.com/teloscube/decaf-react-webapp/compare/v0.0.10...v0.0.11) (2023-01-09)
81
-
82
-
83
- ### Features
84
-
85
- * add `theme` and `themeConfig` props for theme configuration ([72302af](https://github.com/teloscube/decaf-react-webapp/commit/72302afca6f9acf1d55881dca5226ec72c481d61))
86
- * add theme switcher to the footer ([eae1887](https://github.com/teloscube/decaf-react-webapp/commit/eae18870e4b1ca006190df511de61921c6ab0b09))
87
-
88
- ## [0.0.10](https://github.com/teloscube/decaf-react-webapp/compare/v0.0.9...v0.0.10) (2022-12-22)
89
-
90
-
91
- ### Features
92
-
93
- * add a new argument to table hook to pass extra bottom space ([4b3d372](https://github.com/teloscube/decaf-react-webapp/commit/4b3d3722773a4ad2c1cc6f937f9b2023217d1bc2))
94
-
95
- ## [0.0.9](https://github.com/teloscube/decaf-react-webapp/compare/v0.0.8...v0.0.9) (2022-12-22)
96
-
97
-
98
- ### Features
99
-
100
- * add error element to routes ([15d7cdc](https://github.com/teloscube/decaf-react-webapp/commit/15d7cdc5d0f67bf4a4bfe9ca7d6f3597a9888c2e))
101
- * handle preview and release versions on version selector ([8c1dcaa](https://github.com/teloscube/decaf-react-webapp/commit/8c1dcaac8cd6b226c486932f44411ee1220424cf))
102
- * implement and export useTableMaxHeight hook ([a8b2a86](https://github.com/teloscube/decaf-react-webapp/commit/a8b2a869bc54d6c58f2273502411c47469d58368))
103
- * use decaf logo instead of client's logo ([b5ca0d6](https://github.com/teloscube/decaf-react-webapp/commit/b5ca0d69c1522eb64348781978f151a5414a6fd6))
104
-
105
-
106
- ### Bug Fixes
107
-
108
- * active colors on menu and tabs look washed out ([c26b794](https://github.com/teloscube/decaf-react-webapp/commit/c26b794bef70db18f9c19828fadee710058c59d0))
109
- * font is not loading from google ([4f56f5e](https://github.com/teloscube/decaf-react-webapp/commit/4f56f5ebc80bc4fadc43333c821240ff713441ce))
110
- * header overlaps drawers ([2bc7bd5](https://github.com/teloscube/decaf-react-webapp/commit/2bc7bd53bde384953d2ec0fdc916bcdf3ead60a3))
111
-
112
- ## [0.0.8](https://github.com/teloscube/decaf-react-webapp/compare/v0.0.7...v0.0.8) (2022-12-14)
113
-
114
-
115
- ### Features
116
-
117
- * integrate plausible script ([1163ef9](https://github.com/teloscube/decaf-react-webapp/commit/1163ef919a426f77b9337a5981c1026cd1aad9bf))
118
-
119
- ## [0.0.7](https://github.com/teloscube/decaf-react-webapp/compare/v0.0.6...v0.0.7) (2022-12-11)
120
-
121
-
122
- ### Features
123
-
124
- * add screenshot and version selector components to the footer ([28e6f25](https://github.com/teloscube/decaf-react-webapp/commit/28e6f254348c72bebd951911a2828bab55b67e37))
125
- * add zendesk widget to the footer ([f7055ac](https://github.com/teloscube/decaf-react-webapp/commit/f7055ac583801953a9bbb133d92bbcf8768a812d))
126
- * init new footer design based on cafelatte ([b0df8e9](https://github.com/teloscube/decaf-react-webapp/commit/b0df8e95c439c5f5ee3d90863b0f45a9b9ebc4d1))
127
-
128
- ## [0.0.6](https://github.com/teloscube/decaf-react-webapp/compare/v0.0.5...v0.0.6) (2022-12-01)
129
-
130
-
131
- ### Features
132
-
133
- * add 404 page ([d1f4cd1](https://github.com/teloscube/decaf-react-webapp/commit/d1f4cd1c9773cae742c3662eeaddacc1fa20e491))
134
- * add about page initially ([ff72e02](https://github.com/teloscube/decaf-react-webapp/commit/ff72e024fa80cb882f0b81e0385a83c721a224d1))
135
- * better coloring for inputs ([7f4b646](https://github.com/teloscube/decaf-react-webapp/commit/7f4b646747a467c2cc9fca3039e881c7ab880efe))
136
- * get app description as prop ([3c1ec4d](https://github.com/teloscube/decaf-react-webapp/commit/3c1ec4ddaa8082a4a049b5464ea2877cc6d7dbd4))
137
-
138
- ## [0.0.5](https://github.com/teloscube/decaf-react-webapp/compare/v0.0.4...v0.0.5) (2022-11-30)
139
-
140
-
141
- ### Features
142
-
143
- * use lato font ([6bd8fe0](https://github.com/teloscube/decaf-react-webapp/commit/6bd8fe03d2655ac9cff6f41047a691b9b969a4b1))
144
-
145
-
146
- ### Bug Fixes
147
-
148
- * menu renders mobile version on desktop app even for a few items ([9af83d6](https://github.com/teloscube/decaf-react-webapp/commit/9af83d6764d91fdfc05a416bc0338f188e31eba2))
149
-
150
- ## [0.0.4](https://github.com/teloscube/decaf-react-webapp/compare/v0.0.3...v0.0.4) (2022-11-29)
151
-
152
-
153
- ### Features
154
-
155
- * export decafTheme in case client wants to use or expand it ([3f86608](https://github.com/teloscube/decaf-react-webapp/commit/3f86608160fe9d8de41fea9a497e0595298435a2))
156
-
157
-
158
- ### Bug Fixes
159
-
160
- * update header and badge components' colors ([3d4ce9b](https://github.com/teloscube/decaf-react-webapp/commit/3d4ce9b04c01b937396d11c580354659f467f20f))
161
-
162
- ## [0.0.3](https://github.com/teloscube/decaf-react-webapp/compare/v0.0.2...v0.0.3) (2022-11-28)
163
-
164
-
165
- ### Features
166
-
167
- * get app icon from props ([577a1f5](https://github.com/teloscube/decaf-react-webapp/commit/577a1f553e4ba064f3e3a9d7f807ae94f085d634))
168
-
169
- ## [0.0.2](https://github.com/teloscube/decaf-react-webapp/compare/v0.0.1...v0.0.2) (2022-11-28)
170
-
171
-
172
- ### Features
173
-
174
- * get menu, routes and appName as props ([f76e1b9](https://github.com/teloscube/decaf-react-webapp/commit/f76e1b94b8e390ae3a901bc3509404c9d20eca01))
175
- * integrate and export emotion for styling ([de274f7](https://github.com/teloscube/decaf-react-webapp/commit/de274f7b3139acd7502259ddf16e2dff24b55e51))
176
-
177
-
178
- ### Bug Fixes
179
-
180
- * app name is not working as a link to home page ([4bbbc56](https://github.com/teloscube/decaf-react-webapp/commit/4bbbc565c7d7a3202bc1c3657347c8b642e5036e))
181
-
182
- ## 0.0.1 (2022-11-24)
183
-
184
-
185
- ### Features
186
-
187
- * implement DecafWebapp component ([376e553](https://github.com/teloscube/decaf-react-webapp/commit/376e5534f440ea1079fa6fa761efce417d9494d1))
188
-
189
-
190
- ### Miscellaneous Chores
191
-
192
- * release 0.0.1 ([6ada44d](https://github.com/teloscube/decaf-react-webapp/commit/6ada44d54f1a647ed0e5f818f28bbef63ba1727b))
@@ -1,10 +0,0 @@
1
- import { BreadcrumbItemType, ItemType } from 'antd/es/breadcrumb/Breadcrumb';
2
- import React from 'react';
3
- export interface PageLayoutProps {
4
- breadcrumb: BreadcrumbItemType[];
5
- extras?: React.ReactNode;
6
- children?: React.ReactNode;
7
- }
8
- export declare function renderBreadcrumbLink(route: ItemType, _params: any, routes: ItemType[], _paths: string[]): React.ReactNode;
9
- export declare function PageLayout(props: PageLayoutProps): JSX.Element;
10
- //# sourceMappingURL=PageLayout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PageLayout.d.ts","sourceRoot":"","sources":["../../src/components/PageLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,QAAQ,EACf,OAAO,EAAE,GAAG,EACZ,MAAM,EAAE,QAAQ,EAAE,EAClB,MAAM,EAAE,MAAM,EAAE,GACf,KAAK,CAAC,SAAS,CAIjB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,eAiChD"}
package/dist/style.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { Interpolation, Theme } from '@emotion/react';
2
- import { ThemeConfig } from 'antd/es/config-provider/context';
3
- export declare function getLightStyles(theme: ThemeConfig): Interpolation<Theme>;
4
- export declare function getDarkStyles(theme: ThemeConfig): Interpolation<Theme>;
5
- //# sourceMappingURL=style.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../src/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAuE9D,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,GAAG,aAAa,CAAC,KAAK,CAAC,CAMvE;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,aAAa,CAAC,KAAK,CAAC,CA8DtE"}
package/dist/theme.d.ts DELETED
@@ -1,18 +0,0 @@
1
- import { ThemeConfig } from 'antd/es/config-provider/context';
2
- import React from 'react';
3
- export declare const decafThemeLight: ThemeConfig;
4
- export declare const decafThemeDark: ThemeConfig;
5
- interface ThemeContextProps {
6
- theme: 'dark' | 'light';
7
- toggleTheme: () => void;
8
- }
9
- export declare const ThemeContext: React.Context<ThemeContextProps>;
10
- interface ThemeProviderProps {
11
- children: React.ReactNode;
12
- themeConfig?: ThemeConfig;
13
- theme?: 'dark' | 'light';
14
- }
15
- export declare function ThemeProvider(props: ThemeProviderProps): JSX.Element;
16
- export declare const useDecafTheme: () => ThemeContextProps;
17
- export {};
18
- //# sourceMappingURL=theme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,KAAK,MAAM,OAAO,CAAC;AAmB1B,eAAO,MAAM,eAAe,EAAE,WAe7B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,WA6D5B,CAAC;AAEF,UAAU,iBAAiB;IACzB,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AACD,eAAO,MAAM,YAAY,kCAGvB,CAAC;AAEH,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AACD,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,eAwCtD;AAED,eAAO,MAAM,aAAa,yBAAuC,CAAC"}