orphos 0.54.1 → 0.54.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.
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useState } from "react";
2
- const MOBILE_BREAKPOINT = 1024;
2
+ const MOBILE_BREAKPOINT = 768;
3
3
  function useIsMobile() {
4
4
  const [isMobile, setIsMobile] = useState(void 0);
5
5
  useEffect(()=>{
package/dist/sidebar.js CHANGED
@@ -15,7 +15,7 @@ import { cn } from "./utils.js";
15
15
  import * as __rspack_external_react from "react";
16
16
  const SIDEBAR_COOKIE_NAME = "sidebar_state";
17
17
  const SIDEBAR_COOKIE_MAX_AGE = 604800;
18
- const SIDEBAR_WIDTH = "16rem";
18
+ const SIDEBAR_WIDTH = "15rem";
19
19
  const SIDEBAR_WIDTH_MOBILE = "16rem";
20
20
  const SIDEBAR_WIDTH_ICON = "3rem";
21
21
  const SIDEBAR_KEYBOARD_SHORTCUT = "b";
@@ -108,7 +108,7 @@ function Sidebar({ side = "left", variant = "sidebar", collapsible = "offcanvas"
108
108
  children: [
109
109
  /*#__PURE__*/ jsx(Dialog.Backdrop, {
110
110
  "data-slot": "sidebar-overlay",
111
- className: cn("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0", className)
111
+ className: cn("fixed inset-0 z-50 bg-black/10 dark:bg-black/30 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0", className)
112
112
  }),
113
113
  /*#__PURE__*/ jsxs(Dialog.Popup, {
114
114
  "data-sidebar": "sidebar",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orphos",
3
- "version": "0.54.1",
3
+ "version": "0.54.3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "exports": {
@@ -36,14 +36,14 @@
36
36
  "devDependencies": {
37
37
  "@rsbuild/core": "~1.7.5",
38
38
  "@rsbuild/plugin-react": "^1.4.6",
39
- "@rslib/core": "^0.20.3",
39
+ "@rslib/core": "^0.21.0",
40
40
  "@types/react": "^19.2.14",
41
- "react": "^19.2.4",
41
+ "react": "^19.2.5",
42
42
  "typescript": "^6.0.2"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@types/react": "latest",
46
- "react": ">=18.0.0",
46
+ "react": ">=19.2.5",
47
47
  "tailwindcss": "^4.2.2"
48
48
  },
49
49
  "peerDependenciesMeta": {
package/theme.css CHANGED
@@ -94,13 +94,8 @@
94
94
  @apply border-border outline-focus-ring;
95
95
  }
96
96
 
97
- ::selection {
98
- color: var(--color-primary-foreground);
99
- background-color: var(--tomato-9);
100
- }
101
-
102
97
  body {
103
- @apply scroll-smooth min-w-[320px] leading-normal text-regular font-sans;
98
+ @apply scroll-smooth min-w-[320px] leading-normal text-regular font-sans selection:text-primary-foreground selection:bg-primary;
104
99
  -moz-osx-font-smoothing: grayscale;
105
100
  -webkit-font-smoothing: antialiased;
106
101
  text-rendering: optimizelegibility;