orphos 0.54.2 → 0.55.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Asterism.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/colors.css CHANGED
@@ -1,7 +1,5 @@
1
1
  @import "@radix-ui/colors/gray.css";
2
2
  @import "@radix-ui/colors/gray-dark.css";
3
- @import "@radix-ui/colors/tomato.css";
4
- @import "@radix-ui/colors/tomato-dark.css";
5
3
  @import "@radix-ui/colors/red.css";
6
4
  @import "@radix-ui/colors/red-dark.css";
7
5
  @import "@radix-ui/colors/green.css";
@@ -11,6 +9,132 @@
11
9
  @import "@radix-ui/colors/blue.css";
12
10
  @import "@radix-ui/colors/blue-dark.css";
13
11
 
12
+ :root,
13
+ .light,
14
+ .light-theme {
15
+ --accent-1: #f1f1f3;
16
+ --accent-2: #eaecf3;
17
+ --accent-3: #e0e4f2;
18
+ --accent-4: #d2daf6;
19
+ --accent-5: #c3cef7;
20
+ --accent-6: #b1bff8;
21
+ --accent-7: #9bacef;
22
+ --accent-8: #7d90e7;
23
+ --accent-9: #5b6cff;
24
+ --accent-10: #505ef0;
25
+ --accent-11: #3a42c3;
26
+ --accent-12: #222a63;
27
+
28
+ --accent-a1: #3535b504;
29
+ --accent-a2: #0d3bdd0b;
30
+ --accent-a3: #0232dc15;
31
+ --accent-a4: #3c67ff2f;
32
+ --accent-a5: #426aff46;
33
+ --accent-a6: #3d63ff5d;
34
+ --accent-a7: #0331e75e;
35
+ --accent-a8: #0229da7d;
36
+ --accent-a9: #5b6cff;
37
+ --accent-a10: #0116efac;
38
+ --accent-a11: #010cb4c3;
39
+ --accent-a12: #010a4cdc;
40
+ }
41
+
42
+ @supports (color: color(display-p3 1 1 1)) {
43
+ @media (color-gamut: p3) {
44
+ :root,
45
+ .light,
46
+ .light-theme {
47
+ --accent-1: oklch(95.9% 0.0019 273);
48
+ --accent-2: oklch(94.4% 0.0094 273);
49
+ --accent-3: oklch(92% 0.0196 273);
50
+ --accent-4: oklch(89.2% 0.0388 273);
51
+ --accent-5: oklch(85.7% 0.0585 273);
52
+ --accent-6: oklch(81.5% 0.0811 273);
53
+ --accent-7: oklch(75.6% 0.0994 273);
54
+ --accent-8: oklch(67.7% 0.1302 273);
55
+ --accent-9: oklch(60.2% 0.2167 273);
56
+ --accent-10: oklch(55.9% 0.2167 273);
57
+ --accent-11: oklch(45.9% 0.1971 273);
58
+ --accent-12: oklch(31.3% 0.1002 273);
59
+
60
+ --accent-a1: color(display-p3 0.0549 0.0549 0.6588 / 0.013);
61
+ --accent-a2: color(display-p3 0.0039 0.1922 0.7686 / 0.041);
62
+ --accent-a3: color(display-p3 0.0039 0.1529 0.8078 / 0.078);
63
+ --accent-a4: color(display-p3 0.0078 0.2078 0.9569 / 0.136);
64
+ --accent-a5: color(display-p3 0.0039 0.1882 0.9608 / 0.193);
65
+ --accent-a6: color(display-p3 0.0039 0.1686 0.9451 / 0.263);
66
+ --accent-a7: color(display-p3 0.0039 0.149 0.8471 / 0.353);
67
+ --accent-a8: color(display-p3 0.0039 0.1176 0.8 / 0.472);
68
+ --accent-a9: color(display-p3 0 0 1 / 0.182);
69
+ --accent-a10: color(display-p3 0 0.0667 0.8784 / 0.66);
70
+ --accent-a11: color(display-p3 0 0.0314 0.6667 / 0.755);
71
+ --accent-a12: color(display-p3 0 0.0275 0.2706 / 0.853);
72
+ }
73
+ }
74
+ }
75
+
76
+ .dark,
77
+ .dark-theme {
78
+ --accent-1: #151928;
79
+ --accent-2: #171c2e;
80
+ --accent-3: #1e2554;
81
+ --accent-4: #242c6f;
82
+ --accent-5: #2b3482;
83
+ --accent-6: #333e92;
84
+ --accent-7: #3d4aa6;
85
+ --accent-8: #4756c3;
86
+ --accent-9: #5b6cff;
87
+ --accent-10: #505ef0;
88
+ --accent-11: #9ab0ff;
89
+ --accent-12: #d6e0ff;
90
+
91
+ --accent-a1: #000bfa10;
92
+ --accent-a2: #0031f817;
93
+ --accent-a3: #2a46fe41;
94
+ --accent-a4: #354bff5f;
95
+ --accent-a5: #4054ff74;
96
+ --accent-a6: #4a5fff86;
97
+ --accent-a7: #5469ff9c;
98
+ --accent-a8: #576bfebd;
99
+ --accent-a9: #5b6cff;
100
+ --accent-a10: #5362feef;
101
+ --accent-a11: #9ab0ff;
102
+ --accent-a12: #d6e0ff;
103
+ }
104
+
105
+ @supports (color: color(display-p3 1 1 1)) {
106
+ @media (color-gamut: p3) {
107
+ .dark,
108
+ .dark-theme {
109
+ --accent-1: oklch(21.8% 0.0303 273);
110
+ --accent-2: oklch(23% 0.0372 273);
111
+ --accent-3: oklch(28.8% 0.0856 273);
112
+ --accent-4: oklch(32.9% 0.1161 273);
113
+ --accent-5: oklch(36.8% 0.1296 273);
114
+ --accent-6: oklch(40.6% 0.1367 273);
115
+ --accent-7: oklch(45.1% 0.1485 273);
116
+ --accent-8: oklch(50.4% 0.1696 273);
117
+ --accent-9: oklch(60.2% 0.2167 273);
118
+ --accent-10: oklch(55.9% 0.2167 273);
119
+ --accent-11: oklch(77.7% 0.153 273);
120
+ --accent-12: oklch(91.1% 0.0527 273);
121
+
122
+ --accent-a1: color(display-p3 0 0.0353 0.9961 / 0.057);
123
+ --accent-a2: color(display-p3 0.0078 0.2 1 / 0.083);
124
+ --accent-a3: color(display-p3 0.1843 0.2824 1 / 0.241);
125
+ --accent-a4: color(display-p3 0.2353 0.302 1 / 0.354);
126
+ --accent-a5: color(display-p3 0.2745 0.3373 1 / 0.433);
127
+ --accent-a6: color(display-p3 0.3137 0.3843 1 / 0.503);
128
+ --accent-a7: color(display-p3 0.3569 0.4235 1 / 0.586);
129
+ --accent-a8: color(display-p3 0.3647 0.4314 0.9961 / 0.708);
130
+ --accent-a9: color(display-p3 0.3804 0.4314 1 / 0.961);
131
+ --accent-a10: color(display-p3 0.349 0.4 1 / 0.896);
132
+ --accent-a11: color(display-p3 0.6314 0.702 1 / 0.974);
133
+ --accent-a12: color(display-p3 0.8588 0.8902 1 / 0.987);
134
+ }
135
+ }
136
+ }
137
+
14
138
  :root,
15
139
  .light {
16
140
  --background: color-mix(in oklch, var(--color-white) 20%, var(--gray-1));
package/dist/checkbox.js CHANGED
@@ -6,7 +6,7 @@ import { cn } from "./utils.js";
6
6
  function checkbox_Checkbox({ className, ...props }) {
7
7
  return /*#__PURE__*/ jsx(Checkbox.Root, {
8
8
  "data-slot": "checkbox",
9
- className: cn("group relative flex size-4 shrink-0 items-center justify-center rounded-sm border border-border-subtle bg-background-element transition-colors before:absolute before:-inset-1.75 focus-visible:outline-2 focus-visible:outline-offset-2 group-has-disabled/field:opacity-50 aria-invalid:outline-2 aria-invalid:outline-danger aria-invalid:outline-offset-2 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-checked:border-primary-border data-indeterminate:border-primary-border data-checked:bg-primary data-indeterminate:bg-primary data-disabled:opacity-50", className),
9
+ className: cn("group relative flex size-4 shrink-0 items-center justify-center rounded-sm border border-border-subtle bg-background-element before:absolute before:-inset-1.75 focus-visible:outline-2 focus-visible:outline-offset-2 group-has-disabled/field:opacity-50 aria-invalid:outline-2 aria-invalid:outline-danger aria-invalid:outline-offset-2 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-checked:border-primary-border data-indeterminate:border-primary-border data-checked:bg-primary data-indeterminate:bg-primary data-disabled:opacity-50", className),
10
10
  ...props,
11
11
  children: /*#__PURE__*/ jsxs(Checkbox.Indicator, {
12
12
  "data-slot": "checkbox-indicator",
package/dist/sidebar.js CHANGED
@@ -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.2",
3
+ "version": "0.55.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "exports": {
@@ -27,23 +27,17 @@
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "scripts": {
31
- "build": "rslib build",
32
- "check": "biome check --write",
33
- "dev": "rslib build --watch",
34
- "typecheck": "tsc --noEmit"
35
- },
36
30
  "devDependencies": {
37
31
  "@rsbuild/core": "~1.7.5",
38
32
  "@rsbuild/plugin-react": "^1.4.6",
39
- "@rslib/core": "^0.20.3",
33
+ "@rslib/core": "^0.21.0",
40
34
  "@types/react": "^19.2.14",
41
- "react": "^19.2.4",
35
+ "react": "^19.2.5",
42
36
  "typescript": "^6.0.2"
43
37
  },
44
38
  "peerDependencies": {
45
- "@types/react": "latest",
46
- "react": ">=18.0.0",
39
+ "@types/react": ">=19.2.15",
40
+ "react": ">=19.2.5",
47
41
  "tailwindcss": "^4.2.2"
48
42
  },
49
43
  "peerDependenciesMeta": {
@@ -59,5 +53,11 @@
59
53
  "cva": "1.0.0-beta.4",
60
54
  "tailwind-merge": "^3.5.0",
61
55
  "tw-animate-css": "^1.4.0"
56
+ },
57
+ "scripts": {
58
+ "build": "rslib build",
59
+ "check": "biome check --write",
60
+ "dev": "rslib build --watch",
61
+ "typecheck": "tsc --noEmit"
62
62
  }
63
- }
63
+ }
package/theme.css CHANGED
@@ -48,11 +48,11 @@
48
48
 
49
49
  --color-sidebar: var(--sidebar);
50
50
 
51
- --color-primary: var(--tomato-9);
52
- --color-primary-hover: var(--tomato-10);
53
- --color-primary-border: var(--tomato-6);
51
+ --color-primary: var(--accent-9);
52
+ --color-primary-hover: var(--accent-10);
53
+ --color-primary-border: var(--accent-6);
54
54
  --color-primary-foreground: var(--color-white);
55
- --color-primary-subtle: var(--tomato-2);
55
+ --color-primary-subtle: var(--accent-2);
56
56
 
57
57
  --color-danger: var(--red-9);
58
58
  --color-danger-hover: var(--red-10);
@@ -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;
@@ -131,7 +126,7 @@
131
126
  --prose-th-borders: var(--border);
132
127
  --prose-td-borders: var(--border-subtle);
133
128
  --prose-hr-color: var(--color-border-subtle);
134
- --prose-blockquote-border-color: var(--tomato-9);
129
+ --prose-blockquote-border-color: var(--accent-9);
135
130
 
136
131
  color: var(--prose-color);
137
132
  @apply leading-[1.7] whitespace-normal text-regular;