@pathscale/ui 0.0.157 → 0.0.158
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 +20 -0
- package/dist/components/collapse/CollapseTitle.d.ts +1 -1
- package/dist/index.js +400 -349
- package/dist/sidenav/Sidenav.css +27 -1
- package/dist/styles/base/index.css +43 -0
- package/dist/styles/compat/daisy-primitives.css +2517 -0
- package/dist/styles/themes/dark.css +66 -0
- package/dist/styles/themes/light.css +68 -0
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -21,6 +21,16 @@ export const Example = () => (
|
|
|
21
21
|
);
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
## CSS
|
|
25
|
+
|
|
26
|
+
Import the compatibility stylesheet to use `@pathscale/ui` components without
|
|
27
|
+
relying on app-level DaisyUI plugin styles:
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
import "@pathscale/ui/dist/styles/compat/daisy-primitives.css";
|
|
31
|
+
import "@pathscale/ui/dist/styles/icons/generated-icons.css";
|
|
32
|
+
```
|
|
33
|
+
|
|
24
34
|
## Motion
|
|
25
35
|
|
|
26
36
|
Shared animation primitives live in `@pathscale/ui/motion`. For setup,
|
|
@@ -37,3 +47,13 @@ Other useful scripts:
|
|
|
37
47
|
- `bun run dev`
|
|
38
48
|
- `bun run lint`
|
|
39
49
|
- `bun run format`
|
|
50
|
+
|
|
51
|
+
## Playground Hot Test
|
|
52
|
+
|
|
53
|
+
Run the playground from the repository root and hot-test local library changes without rebuilding:
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
bun run playground:dev
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
The playground resolves `@pathscale/ui` to local `src` via Vite aliases, so edits in `/src` and `/src/styles` refresh immediately.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
2
|
import type { IComponentBaseProps } from "../types";
|
|
3
3
|
export type CollapseTitleProps<T extends HTMLElement = HTMLDivElement> = JSX.HTMLAttributes<T> & IComponentBaseProps;
|
|
4
4
|
export declare const classesFn: ({ className }: {
|