ranui 0.2.0-alpha.1 → 0.2.0-alpha.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.
- package/README.md +26 -0
- package/README.zh-CN.md +26 -0
- package/dist/bin/build-iife.d.ts +1 -0
- package/dist/builder.js +1 -1
- package/dist/{button-BstLjXNe.js → button-CJFSrjq_.js} +10 -10
- package/dist/button.js +1 -1
- package/dist/card-F-3fRynz.js +67 -0
- package/dist/card.js +1 -1
- package/dist/{checkbox-iHZQb-yQ.js → checkbox-BS5kNY6n.js} +9 -9
- package/dist/checkbox.js +1 -1
- package/dist/{colorpicker-CGh8pRqo.js → colorpicker-CdzUAVC5.js} +11 -11
- package/dist/colorpicker.js +1 -1
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/card/index.d.ts +3 -0
- package/dist/components/theme-switch/index.d.ts +36 -0
- package/dist/{dropdown-RqHMRhFE.js → dropdown-BYS1Trdu.js} +9 -9
- package/dist/dropdown.js +1 -1
- package/dist/fonts/Geist-Variable.woff2 +0 -0
- package/dist/fonts/GeistMono-Variable.woff2 +0 -0
- package/dist/fonts/OFL-LICENSE.txt +92 -0
- package/dist/fonts/fonts.css +26 -0
- package/dist/{form-05Lxxl3D.js → form-BsB5JhS4.js} +9 -9
- package/dist/form.js +1 -1
- package/dist/{icon-Blm7AbyY.js → icon-pfolda2m.js} +3 -3
- package/dist/icon.js +1 -1
- package/dist/iife/button.iife.js +1 -0
- package/dist/iife/card.iife.js +1 -0
- package/dist/iife/checkbox.iife.js +1 -0
- package/dist/iife/colorpicker.iife.js +5 -0
- package/dist/iife/dropdown.iife.js +1 -0
- package/dist/iife/form.iife.js +1 -0
- package/dist/iife/icon.iife.js +1 -0
- package/dist/iife/image.iife.js +3 -0
- package/dist/iife/input.iife.js +1 -0
- package/dist/iife/link.iife.js +1 -0
- package/dist/iife/loading.iife.js +1 -0
- package/dist/iife/math.iife.js +261 -0
- package/dist/iife/message.iife.js +1 -0
- package/dist/iife/modal.iife.js +1 -0
- package/dist/iife/player.iife.js +31 -0
- package/dist/iife/popover.iife.js +1 -0
- package/dist/iife/progress.iife.js +1 -0
- package/dist/iife/radar.iife.js +1 -0
- package/dist/iife/route.iife.js +1 -0
- package/dist/iife/router.iife.js +1 -0
- package/dist/iife/scratch.iife.js +1 -0
- package/dist/iife/section.iife.js +1 -0
- package/dist/iife/select.iife.js +5 -0
- package/dist/iife/skeleton.iife.js +1 -0
- package/dist/iife/tab.iife.js +1 -0
- package/dist/iife/tabpane.iife.js +1 -0
- package/dist/iife/theme-switch.iife.js +1 -0
- package/dist/{image-DKm6z7YQ.js → image-BXpKQ9sU.js} +9 -9
- package/dist/image.js +1 -1
- package/dist/index.cjs +23 -23
- package/dist/index.d.ts +4 -0
- package/dist/index.iife.js +67 -78
- package/dist/index.js +73 -72
- package/dist/{input-Dskw1bAl.js → input-BM6e_LQr.js} +13 -13
- package/dist/input.js +1 -1
- package/dist/{link-BW-gvrpN.js → link-DURZzd7u.js} +7 -7
- package/dist/link.js +1 -1
- package/dist/{loading-C4QUpm70.js → loading-Bd-gF1AH.js} +24 -24
- package/dist/loading.js +1 -1
- package/dist/{math-Dv4nXSoI.js → math-IjzOAwnA.js} +7 -7
- package/dist/math.js +1 -1
- package/dist/{message-De5e1txT.js → message-CLpuP8HY.js} +8 -8
- package/dist/message.js +1 -1
- package/dist/{modal-DruDj3AB.js → modal-DOTpABRe.js} +7 -7
- package/dist/modal.js +1 -1
- package/dist/{player-CqTAmg_E.js → player-C2pB5L2N.js} +7 -7
- package/dist/player.js +1 -1
- package/dist/{popover-BY32HNMl.js → popover-DRUQjdPs.js} +10 -10
- package/dist/popover.js +1 -1
- package/dist/{progress-gZo0knzu.js → progress-BIEXYYd2.js} +6 -6
- package/dist/progress.js +1 -1
- package/dist/{radar-19P5Mtld.js → radar-DAF95_Mj.js} +9 -9
- package/dist/radar.js +1 -1
- package/dist/ranui.css +1 -1
- package/dist/{route-BY_E6-2C.js → route-MQZpn2BP.js} +14 -14
- package/dist/route.js +1 -1
- package/dist/{router-BDcv4F-2.js → router-B9rCrWXm.js} +5 -5
- package/dist/router.js +1 -1
- package/dist/{scratch-Dbd9G6Q6.js → scratch-QlPyy1f4.js} +1 -1
- package/dist/scratch.js +1 -1
- package/dist/{section-CNTvgdQ-.js → section-D0qMm9KM.js} +8 -8
- package/dist/section.js +1 -1
- package/dist/{select-BVdUtQX5.js → select-BSeCT9tF.js} +13 -13
- package/dist/select.js +1 -1
- package/dist/{signal-XHfNsQNW.js → signal-CSSZxlK5.js} +1 -1
- package/dist/{skeleton-BAdJ6vyA.js → skeleton-CFqQmKyt.js} +8 -8
- package/dist/skeleton.js +1 -1
- package/dist/{tab-DH2owP2V.js → tab-CqFrgo2v.js} +5 -5
- package/dist/tab.js +1 -1
- package/dist/{tabpane-B_M-Jokw.js → tabpane-B-m3xwqu.js} +7 -7
- package/dist/tabpane.js +1 -1
- package/dist/test/unit/theme-switch.contract.test.d.ts +1 -0
- package/dist/theme-switch-B8K9y2RL.js +170 -0
- package/dist/theme-switch.js +5 -0
- package/dist/{utils-D4pPF77E.js → utils-DBfrRFoE.js} +116 -198
- package/dist/vite.config.d.ts +4 -0
- package/docs/COMPONENTS.md +21 -5
- package/docs/DESIGN.md +24 -19
- package/docs/style-tokens-public.md +55 -8
- package/package.json +17 -11
- package/dist/card-DQUJoDUQ.js +0 -60
package/dist/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export { Section } from '@/components/section';
|
|
|
26
26
|
export { Router } from '@/components/router';
|
|
27
27
|
export { Route } from '@/components/route';
|
|
28
28
|
export { Link } from '@/components/link';
|
|
29
|
+
export { ThemeSwitch } from '@/components/theme-switch';
|
|
29
30
|
export { RouterCore, createRouter, useRouter, enableMpaViewTransitions, setSSGPath, clearSSGPath, getSSGPath, } from '@/utils/router';
|
|
30
31
|
export type { RouterConfig, RouteConfig, RouteLocation, NavigationGuard, RouteChangeHandler, ViewTransitionMode, PageSwapEvent, PageRevealEvent, } from '@/utils/router';
|
|
31
32
|
export { renderStaticPage, generateStaticPages } from '@/utils/ssg';
|
|
@@ -58,6 +59,7 @@ import '@/components/section';
|
|
|
58
59
|
import '@/components/router';
|
|
59
60
|
import '@/components/route';
|
|
60
61
|
import '@/components/link';
|
|
62
|
+
import '@/components/theme-switch';
|
|
61
63
|
import type { Button as TButton } from '@/components/button';
|
|
62
64
|
import type { Icon as TIcon } from '@/components/icon';
|
|
63
65
|
import type { ImageElement as TImage } from '@/components/image';
|
|
@@ -83,6 +85,7 @@ import type { Section as TSection } from '@/components/section';
|
|
|
83
85
|
import type { Router as TRouter } from '@/components/router';
|
|
84
86
|
import type { Route as TRoute } from '@/components/route';
|
|
85
87
|
import type { Link as TLink } from '@/components/link';
|
|
88
|
+
import type { ThemeSwitch as TThemeSwitch } from '@/components/theme-switch';
|
|
86
89
|
declare global {
|
|
87
90
|
interface HTMLElementTagNameMap {
|
|
88
91
|
'r-button': TButton;
|
|
@@ -110,6 +113,7 @@ declare global {
|
|
|
110
113
|
'r-router': TRouter;
|
|
111
114
|
'r-route': TRoute;
|
|
112
115
|
'r-link': TLink;
|
|
116
|
+
'r-theme-switch': TThemeSwitch;
|
|
113
117
|
}
|
|
114
118
|
}
|
|
115
119
|
/// <reference types="vite/client" />
|