@okam/next-component 1.3.4 → 1.3.6

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 (55) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/components/AdminBar/components/AdminBarError.d.ts +1 -2
  3. package/components/AdminBar/index.d.ts +1 -2
  4. package/components/AdminBar/index.js +5 -5
  5. package/components/AdminBar/index.mjs +4 -4
  6. package/components/AdminBar/interface.d.ts +0 -1
  7. package/components/Filter/index.d.ts +1 -2
  8. package/components/Filter/index.js +2 -2
  9. package/components/Filter/index.mjs +2 -2
  10. package/components/Filter/interface.d.ts +1 -2
  11. package/components/Img/index.d.ts +1 -2
  12. package/components/Img/index.js +3 -3
  13. package/components/Img/index.mjs +3 -3
  14. package/components/Img/interface.d.ts +0 -1
  15. package/components/Link/index.d.ts +7 -2
  16. package/components/Link/index.js +3 -4
  17. package/components/Link/index.mjs +3 -4
  18. package/components/Link/interface.d.ts +0 -1
  19. package/hooks/useFilterState/index.d.ts +0 -1
  20. package/hooks/useFilterState/index.js +5 -5
  21. package/hooks/useFilterState/index.mjs +3 -3
  22. package/hooks/useFilterState/interface.d.ts +0 -1
  23. package/hooks/useHash/index.js +8 -5
  24. package/hooks/useHash/index.mjs +6 -3
  25. package/hooks/useLink/index.d.ts +0 -1
  26. package/hooks/useLink/index.js +22 -20
  27. package/hooks/useLink/index.mjs +14 -12
  28. package/hooks/useLink/interface.d.ts +3 -4
  29. package/index.d.ts +8 -8
  30. package/index.js +16 -16
  31. package/index.mjs +9 -9
  32. package/lib/createServerContext/index.js +2 -2
  33. package/package.json +22 -16
  34. package/providers/AdminBar/index.d.ts +1 -2
  35. package/providers/AdminBar/index.js +6 -5
  36. package/providers/AdminBar/index.mjs +3 -2
  37. package/providers/AdminBar/interface.d.ts +3 -4
  38. package/providers/DraftMode/index.d.ts +1 -2
  39. package/providers/DraftMode/index.js +5 -4
  40. package/providers/DraftMode/index.mjs +3 -2
  41. package/providers/DraftMode/interface.d.ts +2 -3
  42. package/providers/DraftMode/server.d.ts +1 -2
  43. package/providers/DraftMode/server.js +4 -4
  44. package/providers/DraftMode/server.mjs +3 -3
  45. package/server.d.ts +1 -1
  46. package/server.js +2 -2
  47. package/server.mjs +1 -1
  48. package/theme/AdminBar/index.d.ts +20 -524
  49. package/theme/Button/index.d.ts +2 -86
  50. package/theme/Filter/index.d.ts +98 -1184
  51. package/theme/Link/index.d.ts +2 -90
  52. package/theme/Typography/index.d.ts +2 -134
  53. package/theme/index.d.ts +2 -4
  54. package/theme/index.js +2 -2
  55. package/theme/index.mjs +3 -3
@@ -20,51 +20,7 @@ declare const linkTheme: import('tailwind-variants').TVReturnType<{
20
20
  rounded: string;
21
21
  circular: string;
22
22
  };
23
- }, undefined, "\n flex\n items-center\n justify-center\n gap-4\n transition\n duration-300\n ease-in-out\n disabled:pointer-events-none\n disabled:opacity-30\n focus-ring-black\n ", import('tailwind-variants/dist/config.js').TVConfig<{
24
- type: {
25
- button: string;
26
- menu: string;
27
- };
28
- buttonStyle: {
29
- default: string;
30
- outline: string;
31
- hollow: string;
32
- ghost: string;
33
- };
34
- intent: {
35
- error: string;
36
- };
37
- size: {
38
- default: string;
39
- large: string;
40
- };
41
- shape: {
42
- rounded: string;
43
- circular: string;
44
- };
45
- }, {
46
- type: {
47
- button: string;
48
- menu: string;
49
- };
50
- buttonStyle: {
51
- default: string;
52
- outline: string;
53
- hollow: string;
54
- ghost: string;
55
- };
56
- intent: {
57
- error: string;
58
- };
59
- size: {
60
- default: string;
61
- large: string;
62
- };
63
- shape: {
64
- rounded: string;
65
- circular: string;
66
- };
67
- }>, {
23
+ }, undefined, "\n flex\n items-center\n justify-center\n gap-4\n transition\n duration-300\n ease-in-out\n disabled:pointer-events-none\n disabled:opacity-30\n focus-ring-black\n ", {
68
24
  type: {
69
25
  button: string;
70
26
  menu: string;
@@ -108,49 +64,5 @@ declare const linkTheme: import('tailwind-variants').TVReturnType<{
108
64
  rounded: string;
109
65
  circular: string;
110
66
  };
111
- }, undefined, "\n flex\n items-center\n justify-center\n gap-4\n transition\n duration-300\n ease-in-out\n disabled:pointer-events-none\n disabled:opacity-30\n focus-ring-black\n ", import('tailwind-variants/dist/config.js').TVConfig<{
112
- type: {
113
- button: string;
114
- menu: string;
115
- };
116
- buttonStyle: {
117
- default: string;
118
- outline: string;
119
- hollow: string;
120
- ghost: string;
121
- };
122
- intent: {
123
- error: string;
124
- };
125
- size: {
126
- default: string;
127
- large: string;
128
- };
129
- shape: {
130
- rounded: string;
131
- circular: string;
132
- };
133
- }, {
134
- type: {
135
- button: string;
136
- menu: string;
137
- };
138
- buttonStyle: {
139
- default: string;
140
- outline: string;
141
- hollow: string;
142
- ghost: string;
143
- };
144
- intent: {
145
- error: string;
146
- };
147
- size: {
148
- default: string;
149
- large: string;
150
- };
151
- shape: {
152
- rounded: string;
153
- circular: string;
154
- };
155
- }>, unknown, unknown, undefined>>;
67
+ }, undefined, "\n flex\n items-center\n justify-center\n gap-4\n transition\n duration-300\n ease-in-out\n disabled:pointer-events-none\n disabled:opacity-30\n focus-ring-black\n ", unknown, unknown, undefined>>;
156
68
  export default linkTheme;
@@ -31,73 +31,7 @@ declare const typography: import('tailwind-variants').TVReturnType<{
31
31
  left: string;
32
32
  right: string;
33
33
  };
34
- }, undefined, undefined, import('tailwind-variants/dist/config.js').TVConfig<{
35
- size: {
36
- h1: string;
37
- h2: string;
38
- h3: string;
39
- h4: string;
40
- h5: string;
41
- h6: string;
42
- leading: string;
43
- paragraph: string;
44
- footnotes: string;
45
- xs: string;
46
- };
47
- font: {
48
- body: string;
49
- };
50
- weight: {
51
- normal: string;
52
- light: string;
53
- bold: string;
54
- };
55
- color: {
56
- gray: string;
57
- white: string;
58
- };
59
- isError: {
60
- true: string;
61
- };
62
- align: {
63
- center: string;
64
- left: string;
65
- right: string;
66
- };
67
- }, {
68
- size: {
69
- h1: string;
70
- h2: string;
71
- h3: string;
72
- h4: string;
73
- h5: string;
74
- h6: string;
75
- leading: string;
76
- paragraph: string;
77
- footnotes: string;
78
- xs: string;
79
- };
80
- font: {
81
- body: string;
82
- };
83
- weight: {
84
- normal: string;
85
- light: string;
86
- bold: string;
87
- };
88
- color: {
89
- gray: string;
90
- white: string;
91
- };
92
- isError: {
93
- true: string;
94
- };
95
- align: {
96
- center: string;
97
- left: string;
98
- right: string;
99
- };
100
- }>, {
34
+ }, undefined, undefined, {
101
35
  size: {
102
36
  h1: string;
103
37
  h2: string;
@@ -163,71 +97,5 @@ declare const typography: import('tailwind-variants').TVReturnType<{
163
97
  left: string;
164
98
  right: string;
165
99
  };
166
- }, undefined, undefined, import('tailwind-variants/dist/config.js').TVConfig<{
167
- size: {
168
- h1: string;
169
- h2: string;
170
- h3: string;
171
- h4: string;
172
- h5: string;
173
- h6: string;
174
- leading: string;
175
- paragraph: string;
176
- footnotes: string;
177
- xs: string;
178
- };
179
- font: {
180
- body: string;
181
- };
182
- weight: {
183
- normal: string;
184
- light: string;
185
- bold: string;
186
- };
187
- color: {
188
- gray: string;
189
- white: string;
190
- };
191
- isError: {
192
- true: string;
193
- };
194
- align: {
195
- center: string;
196
- left: string;
197
- right: string;
198
- };
199
- }, {
200
- size: {
201
- h1: string;
202
- h2: string;
203
- h3: string;
204
- h4: string;
205
- h5: string;
206
- h6: string;
207
- leading: string;
208
- paragraph: string;
209
- footnotes: string;
210
- xs: string;
211
- };
212
- font: {
213
- body: string;
214
- };
215
- weight: {
216
- normal: string;
217
- light: string;
218
- bold: string;
219
- };
220
- color: {
221
- gray: string;
222
- white: string;
223
- };
224
- isError: {
225
- true: string;
226
- };
227
- align: {
228
- center: string;
229
- left: string;
230
- right: string;
231
- };
232
- }>, unknown, unknown, undefined>>;
100
+ }, undefined, undefined, unknown, unknown, undefined>>;
233
101
  export default typography;
package/theme/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- import { default as React } from 'react';
2
-
3
- declare const _default: React.MemoExoticComponent<({ children }: {
4
- children: React.ReactNode;
1
+ declare const _default: import('react').MemoExoticComponent<({ children }: {
2
+ children: import('react').ReactNode;
5
3
  }) => import("react/jsx-runtime").JSX.Element>;
6
4
  export default _default;
package/theme/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  "use strict";
3
3
  const stackUi = require("@okam/stack-ui");
4
- const React = require("react");
4
+ const react = require("react");
5
5
  const index$1 = require("./AdminBar/index.js");
6
6
  const index$3 = require("./Button/index.js");
7
7
  const index$4 = require("./Filter/index.js");
@@ -12,5 +12,5 @@ const BaseTheme = stackUi.makeTheme({
12
12
  typography: index$2,
13
13
  adminBar: index$1.adminBarTheme
14
14
  });
15
- const index = React.memo(stackUi.createThemeProvider(BaseTheme));
15
+ const index = react.memo(stackUi.createThemeProvider(BaseTheme));
16
16
  module.exports = index;
package/theme/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { makeTheme, createThemeProvider } from "@okam/stack-ui";
3
- import React from "react";
2
+ import { createThemeProvider, makeTheme } from "@okam/stack-ui";
3
+ import { memo } from "react";
4
4
  import { adminBarTheme } from "./AdminBar/index.mjs";
5
5
  import button from "./Button/index.mjs";
6
6
  import filterTheme from "./Filter/index.mjs";
@@ -11,7 +11,7 @@ const BaseTheme = makeTheme({
11
11
  typography,
12
12
  adminBar: adminBarTheme
13
13
  });
14
- const index = React.memo(createThemeProvider(BaseTheme));
14
+ const index = memo(createThemeProvider(BaseTheme));
15
15
  export {
16
16
  index as default
17
17
  };