reykit 1.0.245 → 1.0.247
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/dist/index.js +3 -3
- package/dist/src/lib/react.d.ts +4 -3
- package/dist/style/base.css +9 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27554,12 +27554,12 @@ function U0() {
|
|
|
27554
27554
|
function C0(a, i) {
|
|
27555
27555
|
return U0() ? a : i;
|
|
27556
27556
|
}
|
|
27557
|
-
function lD(a,
|
|
27557
|
+
function lD(a, i = [], u = []) {
|
|
27558
27558
|
j0(
|
|
27559
27559
|
() => {
|
|
27560
|
-
a(...
|
|
27560
|
+
a(...u);
|
|
27561
27561
|
},
|
|
27562
|
-
|
|
27562
|
+
i
|
|
27563
27563
|
);
|
|
27564
27564
|
}
|
|
27565
27565
|
const M6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
package/dist/src/lib/react.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, DependencyList } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Render react note.
|
|
4
4
|
* Note: `react` and `react-dom` packages version must be `19.2.4`.
|
|
@@ -59,9 +59,10 @@ export declare function useIsMobile(): boolean;
|
|
|
59
59
|
*/
|
|
60
60
|
export declare function useValueByMobile<Value, MobileValue>(mobileValue: MobileValue, value: Value): Value | MobileValue;
|
|
61
61
|
/**
|
|
62
|
-
* Execute
|
|
62
|
+
* Execute after rendering or effecting.
|
|
63
63
|
*
|
|
64
64
|
* @param func - Execute function.
|
|
65
|
+
* @param deps - Effect dependency list.
|
|
65
66
|
* @param args - Execute arguments.
|
|
66
67
|
*/
|
|
67
|
-
export declare function useExec<T extends any>(func: (...args: T
|
|
68
|
+
export declare function useExec<T extends any[]>(func: (...args: T) => any | Promise<any>, deps?: DependencyList, args?: T): void;
|
package/dist/style/base.css
CHANGED
|
@@ -13,6 +13,7 @@ Menu accent: Bold.
|
|
|
13
13
|
@import "@fontsource-variable/inter";
|
|
14
14
|
@import 'github-markdown-css/github-markdown.css';
|
|
15
15
|
|
|
16
|
+
/* Tailwind CSS */
|
|
16
17
|
:root {
|
|
17
18
|
--background: oklch(1 0 0);
|
|
18
19
|
--foreground: oklch(0.141 0.005 285.823);
|
|
@@ -47,7 +48,6 @@ Menu accent: Bold.
|
|
|
47
48
|
--sidebar-border: oklch(0.92 0.004 286.32);
|
|
48
49
|
--sidebar-ring: oklch(0.705 0.015 286.067);
|
|
49
50
|
}
|
|
50
|
-
|
|
51
51
|
.dark {
|
|
52
52
|
--background: oklch(0.141 0.005 285.823);
|
|
53
53
|
--foreground: oklch(0.985 0 0);
|
|
@@ -81,7 +81,6 @@ Menu accent: Bold.
|
|
|
81
81
|
--sidebar-border: oklch(1 0 0 / 10%);
|
|
82
82
|
--sidebar-ring: oklch(0.552 0.016 285.938);
|
|
83
83
|
}
|
|
84
|
-
|
|
85
84
|
@theme inline {
|
|
86
85
|
--font-sans: 'Inter Variable', sans-serif;
|
|
87
86
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
@@ -123,7 +122,6 @@ Menu accent: Bold.
|
|
|
123
122
|
--radius-3xl: calc(var(--radius) + 12px);
|
|
124
123
|
--radius-4xl: calc(var(--radius) + 16px);
|
|
125
124
|
}
|
|
126
|
-
|
|
127
125
|
@layer base {
|
|
128
126
|
* {
|
|
129
127
|
@apply border-border outline-ring/50;
|
|
@@ -135,3 +133,11 @@ Menu accent: Bold.
|
|
|
135
133
|
@apply font-sans;
|
|
136
134
|
}
|
|
137
135
|
}
|
|
136
|
+
|
|
137
|
+
/* GitHub task list */
|
|
138
|
+
.markdown-body ul {
|
|
139
|
+
list-style: disc;
|
|
140
|
+
}
|
|
141
|
+
.markdown-body ol {
|
|
142
|
+
list-style: decimal;
|
|
143
|
+
}
|