@pathscale/ui 1.3.0 → 1.3.1
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 +7 -3
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ import "@pathscale/ui/index.css";
|
|
|
36
36
|
|
|
37
37
|
export const Example = () => (
|
|
38
38
|
<Flex direction="col" gap="sm">
|
|
39
|
-
<Button
|
|
39
|
+
<Button variant="primary" size="md">Primary</Button>
|
|
40
40
|
</Flex>
|
|
41
41
|
);
|
|
42
42
|
```
|
|
@@ -81,8 +81,12 @@ The rules that hold across every component — worth two minutes before your fir
|
|
|
81
81
|
|
|
82
82
|
- **Booleans are HeroUI-style `is*`**: `isDisabled`, `isOpen`, `isInvalid`, `isPending`,
|
|
83
83
|
`isIconOnly`. Native `disabled` is honored too.
|
|
84
|
-
- **Sizes
|
|
85
|
-
`
|
|
84
|
+
- **Sizes and variants are per-component.** `Button` takes
|
|
85
|
+
`variant` (`primary | secondary | tertiary | outline | ghost | danger | danger-soft`)
|
|
86
|
+
and `size` (`sm | md | lg`); a smaller set of components — `Badge`, `Chip`, `Avatar`,
|
|
87
|
+
`Spinner`, `Toggle`, the progress components — take `color` instead. Check the
|
|
88
|
+
component's own types, or the [showcase](https://js.software), rather than assuming a
|
|
89
|
+
shared union.
|
|
86
90
|
- **Both `class` and `className` work** everywhere, and your classes win — they are merged
|
|
87
91
|
last via twMerge.
|
|
88
92
|
- **Controlled/uncontrolled come in triples**: `isOpen/defaultOpen/onOpenChange`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pathscale/ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"author": "pathscale",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -89,14 +89,14 @@
|
|
|
89
89
|
"postcss-selector-parser": "^7.1.1",
|
|
90
90
|
"solid-js": "^1.9.13",
|
|
91
91
|
"svgo": "^3.3.3",
|
|
92
|
-
"tailwind-merge": "^3.6.0",
|
|
93
92
|
"typescript": "^6.0.3"
|
|
94
93
|
},
|
|
95
94
|
"dependencies": {
|
|
96
95
|
"@iconify/tailwind4": "^1.2.3",
|
|
97
96
|
"@pathscale/rsbuild-plugin-iconify": "^1.0.4",
|
|
98
97
|
"@pathscale/ui": "^1.2.10",
|
|
99
|
-
"@tanstack/solid-virtual": "^3.13.27"
|
|
98
|
+
"@tanstack/solid-virtual": "^3.13.27",
|
|
99
|
+
"tailwind-merge": "^3.6.0"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
102
|
"@solid-primitives/event-listener": "^2.3.0",
|
|
@@ -135,6 +135,7 @@
|
|
|
135
135
|
"check": "bun run scripts/check-contracts.ts",
|
|
136
136
|
"check:package": "bun run scripts/check-package.ts",
|
|
137
137
|
"next-version": "bun run scripts/next-version.ts",
|
|
138
|
+
"smoke": "bun run scripts/smoke-consumer.ts",
|
|
138
139
|
"playground:dev": "cd playground && bun run dev",
|
|
139
140
|
"playground:build": "cd playground && bun run build",
|
|
140
141
|
"playground:preview": "cd playground && bun run preview"
|