@opensite/ui 3.0.8 → 3.0.9

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 CHANGED
@@ -53,6 +53,86 @@ This library requires React 16.8.0 or higher:
53
53
  pnpm add react react-dom
54
54
  ```
55
55
 
56
+ ## Setup Requirements
57
+
58
+ ### 1. Tailwind CSS Configuration
59
+
60
+ **CRITICAL**: Add both `@opensite/ui` and `@page-speed/pressable` to your Tailwind content paths:
61
+
62
+ ```ts
63
+ // tailwind.config.ts
64
+ import type { Config } from "tailwindcss";
65
+
66
+ const config: Config = {
67
+ content: [
68
+ "./app/**/*.{js,ts,jsx,tsx,mdx}",
69
+ "./components/**/*.{js,ts,jsx,tsx,mdx}",
70
+ // Add these lines to scan component classes:
71
+ "./node_modules/@opensite/ui/dist/**/*.{js,mjs}",
72
+ "./node_modules/@page-speed/pressable/dist/**/*.{js,mjs}",
73
+ ],
74
+ // ...rest of config
75
+ };
76
+ ```
77
+
78
+ Without this, button styles from Pressable and other components won't be applied.
79
+
80
+ ### 2. Router Setup (For Pressable Navigation)
81
+
82
+ The `Pressable` component (used for links/buttons) requires `RouterProvider` from `@page-speed/router`.
83
+
84
+ **For Next.js App Router** (requires client component wrapper):
85
+
86
+ ```tsx
87
+ // components/providers/RouterWrapper.tsx
88
+ "use client";
89
+
90
+ import { RouterProvider } from "@page-speed/router";
91
+ import { ReactNode } from "react";
92
+
93
+ export function RouterWrapper({ children }: { children: ReactNode }) {
94
+ return <RouterProvider>{children}</RouterProvider>;
95
+ }
96
+ ```
97
+
98
+ ```tsx
99
+ // app/layout.tsx
100
+ import { RouterWrapper } from "@/components/providers/RouterWrapper";
101
+
102
+ export default function RootLayout({ children }) {
103
+ return (
104
+ <html>
105
+ <body>
106
+ <RouterWrapper>
107
+ {children}
108
+ </RouterWrapper>
109
+ </body>
110
+ </html>
111
+ );
112
+ }
113
+ ```
114
+
115
+ **For standard React apps** (Create React App, Vite, etc.):
116
+
117
+ ```tsx
118
+ // App.tsx
119
+ import { RouterProvider } from "@page-speed/router";
120
+
121
+ function App() {
122
+ return (
123
+ <RouterProvider>
124
+ {/* your app */}
125
+ </RouterProvider>
126
+ );
127
+ }
128
+ ```
129
+
130
+ Install the router package:
131
+
132
+ ```bash
133
+ pnpm add @page-speed/router
134
+ ```
135
+
56
136
  ## Usage
57
137
 
58
138
  ### Tree-Shakable Imports (Recommended)
@@ -896,7 +896,7 @@ var ImageSlider = ({
896
896
  activeImage.className
897
897
  ),
898
898
  optixFlowConfig: activeImage.optixFlowConfig ?? optixFlowConfig,
899
- eager: true
899
+ loading: "eager"
900
900
  }
901
901
  )
902
902
  },
@@ -873,7 +873,7 @@ var ImageSlider = ({
873
873
  activeImage.className
874
874
  ),
875
875
  optixFlowConfig: activeImage.optixFlowConfig ?? optixFlowConfig,
876
- eager: true
876
+ loading: "eager"
877
877
  }
878
878
  )
879
879
  },
@@ -517,7 +517,7 @@ function HeroDigitalAgencyFullscreen({
517
517
  src: backgroundImage,
518
518
  alt: "Hero Background Image",
519
519
  className: "h-full w-full brightness-50 object-cover object-center",
520
- eager: true,
520
+ loading: "eager",
521
521
  optixFlowConfig
522
522
  }
523
523
  )
@@ -511,7 +511,7 @@ function HeroDigitalAgencyFullscreen({
511
511
  src: backgroundImage,
512
512
  alt: "Hero Background Image",
513
513
  className: "h-full w-full brightness-50 object-cover object-center",
514
- eager: true,
514
+ loading: "eager",
515
515
  optixFlowConfig
516
516
  }
517
517
  )
@@ -570,7 +570,7 @@ var ImageSlider = ({
570
570
  activeImage.className
571
571
  ),
572
572
  optixFlowConfig: activeImage.optixFlowConfig ?? optixFlowConfig,
573
- eager: true
573
+ loading: "eager"
574
574
  }
575
575
  )
576
576
  },
@@ -549,7 +549,7 @@ var ImageSlider = ({
549
549
  activeImage.className
550
550
  ),
551
551
  optixFlowConfig: activeImage.optixFlowConfig ?? optixFlowConfig,
552
- eager: true
552
+ loading: "eager"
553
553
  }
554
554
  )
555
555
  },
@@ -191,7 +191,7 @@ var ImageSlider = ({
191
191
  activeImage.className
192
192
  ),
193
193
  optixFlowConfig: activeImage.optixFlowConfig ?? optixFlowConfig,
194
- eager: true
194
+ loading: "eager"
195
195
  }
196
196
  )
197
197
  },
@@ -169,7 +169,7 @@ var ImageSlider = ({
169
169
  activeImage.className
170
170
  ),
171
171
  optixFlowConfig: activeImage.optixFlowConfig ?? optixFlowConfig,
172
- eager: true
172
+ loading: "eager"
173
173
  }
174
174
  )
175
175
  },
package/dist/index.cjs CHANGED
@@ -957,7 +957,7 @@ var ImageSlider = ({
957
957
  activeImage.className
958
958
  ),
959
959
  optixFlowConfig: activeImage.optixFlowConfig ?? optixFlowConfig,
960
- eager: true
960
+ loading: "eager"
961
961
  }
962
962
  )
963
963
  },
package/dist/index.js CHANGED
@@ -935,7 +935,7 @@ var ImageSlider = ({
935
935
  activeImage.className
936
936
  ),
937
937
  optixFlowConfig: activeImage.optixFlowConfig ?? optixFlowConfig,
938
- eager: true
938
+ loading: "eager"
939
939
  }
940
940
  )
941
941
  },
package/dist/registry.cjs CHANGED
@@ -849,7 +849,7 @@ var ImageSlider = ({
849
849
  activeImage.className
850
850
  ),
851
851
  optixFlowConfig: activeImage.optixFlowConfig ?? optixFlowConfig,
852
- eager: true
852
+ loading: "eager"
853
853
  }
854
854
  )
855
855
  },
@@ -59097,7 +59097,7 @@ function HeroDigitalAgencyFullscreen({
59097
59097
  src: backgroundImage,
59098
59098
  alt: "Hero Background Image",
59099
59099
  className: "h-full w-full brightness-50 object-cover object-center",
59100
- eager: true,
59100
+ loading: "eager",
59101
59101
  optixFlowConfig
59102
59102
  }
59103
59103
  )
package/dist/registry.js CHANGED
@@ -809,7 +809,7 @@ var ImageSlider = ({
809
809
  activeImage.className
810
810
  ),
811
811
  optixFlowConfig: activeImage.optixFlowConfig ?? optixFlowConfig,
812
- eager: true
812
+ loading: "eager"
813
813
  }
814
814
  )
815
815
  },
@@ -59057,7 +59057,7 @@ function HeroDigitalAgencyFullscreen({
59057
59057
  src: backgroundImage,
59058
59058
  alt: "Hero Background Image",
59059
59059
  className: "h-full w-full brightness-50 object-cover object-center",
59060
- eager: true,
59060
+ loading: "eager",
59061
59061
  optixFlowConfig
59062
59062
  }
59063
59063
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensite/ui",
3
- "version": "3.0.8",
3
+ "version": "3.0.9",
4
4
  "description": "Foundational UI component library for OpenSite Semantic Site Builder with tree-shakable exports and abstract styling",
5
5
  "keywords": [
6
6
  "react",
@@ -3421,12 +3421,12 @@
3421
3421
  "@opensite/hooks": "2.1.0",
3422
3422
  "@page-speed/forms": "0.8.2",
3423
3423
  "@page-speed/icon": "0.1.2",
3424
- "@page-speed/img": "0.4.8",
3424
+ "@page-speed/img": "0.4.9",
3425
3425
  "@page-speed/lightbox": "0.2.1",
3426
3426
  "@page-speed/maps": "0.2.4",
3427
3427
  "@page-speed/markdown-to-jsx": "0.0.5",
3428
3428
  "@page-speed/pdf-viewer": "0.1.9",
3429
- "@page-speed/pressable": "0.0.5",
3429
+ "@page-speed/pressable": "0.0.6",
3430
3430
  "@page-speed/router": "1.0.2",
3431
3431
  "@page-speed/social-share": "0.1.7",
3432
3432
  "@radix-ui/react-accordion": "^1.2.12",