@okam/next-component 1.3.4 → 1.3.5
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 +7 -0
- package/components/AdminBar/components/AdminBarError.d.ts +1 -2
- package/components/AdminBar/index.d.ts +1 -2
- package/components/AdminBar/index.js +5 -5
- package/components/AdminBar/index.mjs +4 -4
- package/components/AdminBar/interface.d.ts +0 -1
- package/components/Filter/index.d.ts +1 -2
- package/components/Filter/index.js +2 -2
- package/components/Filter/index.mjs +2 -2
- package/components/Filter/interface.d.ts +1 -2
- package/components/Img/index.d.ts +1 -2
- package/components/Img/index.js +3 -3
- package/components/Img/index.mjs +3 -3
- package/components/Img/interface.d.ts +0 -1
- package/components/Link/index.d.ts +7 -2
- package/components/Link/index.js +3 -4
- package/components/Link/index.mjs +3 -4
- package/components/Link/interface.d.ts +0 -1
- package/hooks/useFilterState/index.d.ts +0 -1
- package/hooks/useFilterState/index.js +3 -3
- package/hooks/useFilterState/index.mjs +3 -3
- package/hooks/useFilterState/interface.d.ts +0 -1
- package/hooks/useHash/index.js +6 -3
- package/hooks/useHash/index.mjs +6 -3
- package/hooks/useLink/index.d.ts +0 -1
- package/hooks/useLink/index.js +17 -15
- package/hooks/useLink/index.mjs +14 -12
- package/hooks/useLink/interface.d.ts +3 -4
- package/index.d.ts +8 -8
- package/index.js +16 -16
- package/index.mjs +9 -9
- package/package.json +22 -16
- package/providers/AdminBar/index.d.ts +1 -2
- package/providers/AdminBar/index.js +3 -2
- package/providers/AdminBar/index.mjs +3 -2
- package/providers/AdminBar/interface.d.ts +3 -4
- package/providers/DraftMode/index.d.ts +1 -2
- package/providers/DraftMode/index.js +3 -2
- package/providers/DraftMode/index.mjs +3 -2
- package/providers/DraftMode/interface.d.ts +2 -3
- package/providers/DraftMode/server.d.ts +1 -2
- package/providers/DraftMode/server.js +4 -4
- package/providers/DraftMode/server.mjs +3 -3
- package/server.d.ts +1 -1
- package/server.js +2 -2
- package/server.mjs +1 -1
- package/theme/AdminBar/index.d.ts +20 -524
- package/theme/Button/index.d.ts +2 -86
- package/theme/Filter/index.d.ts +98 -1184
- package/theme/Link/index.d.ts +2 -90
- package/theme/Typography/index.d.ts +2 -134
- package/theme/index.d.ts +1 -2
- package/theme/index.js +18 -1
- package/theme/index.mjs +2 -2
package/theme/Link/index.d.ts
CHANGED
|
@@ -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 ",
|
|
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 ",
|
|
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,
|
|
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,
|
|
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
package/theme/index.js
CHANGED
|
@@ -6,11 +6,28 @@ 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");
|
|
8
8
|
const index$2 = require("./Typography/index.js");
|
|
9
|
+
function _interopNamespaceDefault(e) {
|
|
10
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
11
|
+
if (e) {
|
|
12
|
+
for (const k in e) {
|
|
13
|
+
if (k !== "default") {
|
|
14
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: () => e[k]
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
9
26
|
const BaseTheme = stackUi.makeTheme({
|
|
10
27
|
filter: index$4,
|
|
11
28
|
button: index$3,
|
|
12
29
|
typography: index$2,
|
|
13
30
|
adminBar: index$1.adminBarTheme
|
|
14
31
|
});
|
|
15
|
-
const index =
|
|
32
|
+
const index = React__namespace.memo(stackUi.createThemeProvider(BaseTheme));
|
|
16
33
|
module.exports = index;
|
package/theme/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import React from "react";
|
|
2
|
+
import { createThemeProvider, makeTheme } from "@okam/stack-ui";
|
|
3
|
+
import * as React 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";
|