diff --git a/biome.json b/biome.json index be41be3..5215472 100644 --- a/biome.json +++ b/biome.json @@ -24,9 +24,6 @@ }, "security": { "noDangerouslySetInnerHtml": "off" - }, - "style": { - "noNamespace": "error" } }, "ignore": [ diff --git a/examples/package.json b/examples/package.json index a1bf377..e7036ab 100644 --- a/examples/package.json +++ b/examples/package.json @@ -8,23 +8,23 @@ "preview": "vite preview" }, "dependencies": { - "@sakura-ui/core": "^0.3.0", - "@sakura-ui/forms": "^0.2.1", - "@sakura-ui/tailwind-theme-plugin": "^0.2.1", + "@sakura-ui/core": "workspace:*", + "@sakura-ui/forms": "workspace:*", + "@sakura-ui/helper": "workspace:*", + "@sakura-ui/tailwind-theme-plugin": "workspace:*", "clsx": "^2.1.0", - "react": "^18.3.1", - "react-dom": "^18.3.1", + "react": "catalog:", + "react-dom": "catalog:", "react-router-dom": "^6.23.1", - "tailwindcss": "^3.4.11" + "tailwindcss": "catalog:" }, "devDependencies": { - "@types/react": "^18.3.5", - "@types/react-dom": "^18.3.0", + "@types/react": "catalog:", + "@types/react-dom": "catalog:", "@types/react-router-dom": "^5.3.3", "@vitejs/plugin-react-swc": "^3.7.0", - "autoprefixer": "^10.4.19", - "postcss": "^8.4.38", - "typescript": "^5.4.5", + "autoprefixer": "catalog:", + "postcss": "catalog:", "vite": "^5.4.11" } } diff --git a/examples/src/pages/Forms.tsx b/examples/src/pages/Forms.tsx index 8596a07..26af264 100644 --- a/examples/src/pages/Forms.tsx +++ b/examples/src/pages/Forms.tsx @@ -1,5 +1,6 @@ import React from 'react' -import { H1, H2, Button } from '@sakura-ui/core' +import clsx from 'clsx' +import { H1, H2, Button, MenuButton, NavigationItem } from '@sakura-ui/core' import { CheckboxGroup, Radio, @@ -14,212 +15,156 @@ import { } from '@sakura-ui/forms' const Forms = () => { + const style = ` + min-h-screen + text-sumi-900 + text-base + ` + + const containerStyle = ` + max-w-xs + sm:max-w-screen-sm + md:max-w-screen-md + lg:max-w-screen-lg + xl:max-w-[1120px] + mx-auto + ` + + const styleSp = 'hidden sm:block' + return ( -
-

SakuraUI Forms sample

-
- - - - - - - - - - - - Radio1 - - - Radio2 - - - Radio3 - - - ) => - console.log(`${e.target.value}, ${e.target.checked}`) - } - /> - - - - - - - - - - - - - - - - - -
-

Controlled forms

-
- - - - - - +
+
+
+ +
-
- - - - - - - +
+

SakuraUI Forms sample

+
+

Controlled forms

+
+ + + + + + +
+
+ + + + + + + + + +
+
+ + + + + + + + + +
+ + + Radio1 + + + Radio2 + + + Radio3 + + + - - -
-
- - - - - - - - - -
- - - Radio1 - - - Radio2 - - - Radio3 - - - - - Radio1 - - - Radio2 - - - Radio3 - - - - - Radio1 - - - Radio2 - - - Radio3 - - - - - Radio1 - - - Radio2 - - - Radio3 - - -
- Radio1 @@ -230,7 +175,10 @@ const Forms = () => { Radio3 - + Radio1 @@ -241,7 +189,10 @@ const Forms = () => { Radio3 - + Radio1 @@ -252,91 +203,85 @@ const Forms = () => { Radio3 -
-
- ) => - console.log(e.target.value) - } - /> - ) => - console.log(e.target.value) - } - /> - ) => - console.log(e.target.value) - } - /> -
- - - Checkbox1 - - - Checkbox2 - - - Checkbox3 - - - - - Checkbox1 - - - Checkbox2 - - - Checkbox3 - - - - - Checkbox1 - - - Checkbox2 - - - Checkbox3 - - -
- +
+ + + Radio1 + + + Radio2 + + + Radio3 + + + + + Radio1 + + + Radio2 + + + Radio3 + + + + + Radio1 + + + Radio2 + + + Radio3 + + +
+
+ ) => + console.log(e.target.value) + } + /> + ) => + console.log(e.target.value) + } + /> + ) => + console.log(e.target.value) + } + /> +
+ Checkbox1 @@ -347,7 +292,10 @@ const Forms = () => { Checkbox3 - + Checkbox1 @@ -358,7 +306,10 @@ const Forms = () => { Checkbox3 - + Checkbox1 @@ -369,186 +320,226 @@ const Forms = () => { Checkbox3 -
-
- ) => - console.log(`${e.target.value}, ${e.target.checked}`) - } - /> - ) => - console.log(`${e.target.value}, ${e.target.checked}`) - } - /> - ) => - console.log(`${e.target.value}, ${e.target.checked}`) - } - /> -
-
- - - - - - -
-
- - - - - - - - - -
-
- - - - - - - - - -
-
- - - - - - -
-
- - - - - - - - - -
-
- -