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.
Files changed (106) hide show
  1. package/README.md +26 -0
  2. package/README.zh-CN.md +26 -0
  3. package/dist/bin/build-iife.d.ts +1 -0
  4. package/dist/builder.js +1 -1
  5. package/dist/{button-BstLjXNe.js → button-CJFSrjq_.js} +10 -10
  6. package/dist/button.js +1 -1
  7. package/dist/card-F-3fRynz.js +67 -0
  8. package/dist/card.js +1 -1
  9. package/dist/{checkbox-iHZQb-yQ.js → checkbox-BS5kNY6n.js} +9 -9
  10. package/dist/checkbox.js +1 -1
  11. package/dist/{colorpicker-CGh8pRqo.js → colorpicker-CdzUAVC5.js} +11 -11
  12. package/dist/colorpicker.js +1 -1
  13. package/dist/components/button/index.d.ts +1 -1
  14. package/dist/components/card/index.d.ts +3 -0
  15. package/dist/components/theme-switch/index.d.ts +36 -0
  16. package/dist/{dropdown-RqHMRhFE.js → dropdown-BYS1Trdu.js} +9 -9
  17. package/dist/dropdown.js +1 -1
  18. package/dist/fonts/Geist-Variable.woff2 +0 -0
  19. package/dist/fonts/GeistMono-Variable.woff2 +0 -0
  20. package/dist/fonts/OFL-LICENSE.txt +92 -0
  21. package/dist/fonts/fonts.css +26 -0
  22. package/dist/{form-05Lxxl3D.js → form-BsB5JhS4.js} +9 -9
  23. package/dist/form.js +1 -1
  24. package/dist/{icon-Blm7AbyY.js → icon-pfolda2m.js} +3 -3
  25. package/dist/icon.js +1 -1
  26. package/dist/iife/button.iife.js +1 -0
  27. package/dist/iife/card.iife.js +1 -0
  28. package/dist/iife/checkbox.iife.js +1 -0
  29. package/dist/iife/colorpicker.iife.js +5 -0
  30. package/dist/iife/dropdown.iife.js +1 -0
  31. package/dist/iife/form.iife.js +1 -0
  32. package/dist/iife/icon.iife.js +1 -0
  33. package/dist/iife/image.iife.js +3 -0
  34. package/dist/iife/input.iife.js +1 -0
  35. package/dist/iife/link.iife.js +1 -0
  36. package/dist/iife/loading.iife.js +1 -0
  37. package/dist/iife/math.iife.js +261 -0
  38. package/dist/iife/message.iife.js +1 -0
  39. package/dist/iife/modal.iife.js +1 -0
  40. package/dist/iife/player.iife.js +31 -0
  41. package/dist/iife/popover.iife.js +1 -0
  42. package/dist/iife/progress.iife.js +1 -0
  43. package/dist/iife/radar.iife.js +1 -0
  44. package/dist/iife/route.iife.js +1 -0
  45. package/dist/iife/router.iife.js +1 -0
  46. package/dist/iife/scratch.iife.js +1 -0
  47. package/dist/iife/section.iife.js +1 -0
  48. package/dist/iife/select.iife.js +5 -0
  49. package/dist/iife/skeleton.iife.js +1 -0
  50. package/dist/iife/tab.iife.js +1 -0
  51. package/dist/iife/tabpane.iife.js +1 -0
  52. package/dist/iife/theme-switch.iife.js +1 -0
  53. package/dist/{image-DKm6z7YQ.js → image-BXpKQ9sU.js} +9 -9
  54. package/dist/image.js +1 -1
  55. package/dist/index.cjs +23 -23
  56. package/dist/index.d.ts +4 -0
  57. package/dist/index.iife.js +67 -78
  58. package/dist/index.js +73 -72
  59. package/dist/{input-Dskw1bAl.js → input-BM6e_LQr.js} +13 -13
  60. package/dist/input.js +1 -1
  61. package/dist/{link-BW-gvrpN.js → link-DURZzd7u.js} +7 -7
  62. package/dist/link.js +1 -1
  63. package/dist/{loading-C4QUpm70.js → loading-Bd-gF1AH.js} +24 -24
  64. package/dist/loading.js +1 -1
  65. package/dist/{math-Dv4nXSoI.js → math-IjzOAwnA.js} +7 -7
  66. package/dist/math.js +1 -1
  67. package/dist/{message-De5e1txT.js → message-CLpuP8HY.js} +8 -8
  68. package/dist/message.js +1 -1
  69. package/dist/{modal-DruDj3AB.js → modal-DOTpABRe.js} +7 -7
  70. package/dist/modal.js +1 -1
  71. package/dist/{player-CqTAmg_E.js → player-C2pB5L2N.js} +7 -7
  72. package/dist/player.js +1 -1
  73. package/dist/{popover-BY32HNMl.js → popover-DRUQjdPs.js} +10 -10
  74. package/dist/popover.js +1 -1
  75. package/dist/{progress-gZo0knzu.js → progress-BIEXYYd2.js} +6 -6
  76. package/dist/progress.js +1 -1
  77. package/dist/{radar-19P5Mtld.js → radar-DAF95_Mj.js} +9 -9
  78. package/dist/radar.js +1 -1
  79. package/dist/ranui.css +1 -1
  80. package/dist/{route-BY_E6-2C.js → route-MQZpn2BP.js} +14 -14
  81. package/dist/route.js +1 -1
  82. package/dist/{router-BDcv4F-2.js → router-B9rCrWXm.js} +5 -5
  83. package/dist/router.js +1 -1
  84. package/dist/{scratch-Dbd9G6Q6.js → scratch-QlPyy1f4.js} +1 -1
  85. package/dist/scratch.js +1 -1
  86. package/dist/{section-CNTvgdQ-.js → section-D0qMm9KM.js} +8 -8
  87. package/dist/section.js +1 -1
  88. package/dist/{select-BVdUtQX5.js → select-BSeCT9tF.js} +13 -13
  89. package/dist/select.js +1 -1
  90. package/dist/{signal-XHfNsQNW.js → signal-CSSZxlK5.js} +1 -1
  91. package/dist/{skeleton-BAdJ6vyA.js → skeleton-CFqQmKyt.js} +8 -8
  92. package/dist/skeleton.js +1 -1
  93. package/dist/{tab-DH2owP2V.js → tab-CqFrgo2v.js} +5 -5
  94. package/dist/tab.js +1 -1
  95. package/dist/{tabpane-B_M-Jokw.js → tabpane-B-m3xwqu.js} +7 -7
  96. package/dist/tabpane.js +1 -1
  97. package/dist/test/unit/theme-switch.contract.test.d.ts +1 -0
  98. package/dist/theme-switch-B8K9y2RL.js +170 -0
  99. package/dist/theme-switch.js +5 -0
  100. package/dist/{utils-D4pPF77E.js → utils-DBfrRFoE.js} +116 -198
  101. package/dist/vite.config.d.ts +4 -0
  102. package/docs/COMPONENTS.md +21 -5
  103. package/docs/DESIGN.md +24 -19
  104. package/docs/style-tokens-public.md +55 -8
  105. package/package.json +17 -11
  106. 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" />