@yamada-ui/switch
Advanced tools
Comparing version 0.0.0-dev-20230625235915 to 0.0.0-dev-20230701130255
@@ -43,3 +43,3 @@ "use strict"; | ||
labelProps, | ||
reverse, | ||
isReverse, | ||
flexDirection, | ||
@@ -78,3 +78,3 @@ transition = { | ||
display: "inline-flex", | ||
flexDirection: flexDirection != null ? flexDirection : reverse ? "row-reverse" : "row", | ||
flexDirection: flexDirection != null ? flexDirection : isReverse ? "row-reverse" : "row", | ||
alignItems: "center", | ||
@@ -81,0 +81,0 @@ verticalAlign: "top", |
@@ -14,6 +14,23 @@ import * as _yamada_ui_core from '@yamada-ui/core'; | ||
type SwitchOptions = { | ||
/** | ||
* The switch icon to use. | ||
*/ | ||
icon?: ReactElement<SwitchIconProps>; | ||
/** | ||
* Props for switch input element. | ||
*/ | ||
inputProps?: InputHTMLAttributes<HTMLInputElement>; | ||
/** | ||
* Props for switch label element. | ||
*/ | ||
labelProps?: HTMLUIProps<'span'>; | ||
reverse?: boolean; | ||
/** | ||
* Change switch label from right to left. | ||
* | ||
* @default false | ||
*/ | ||
isReverse?: boolean; | ||
/** | ||
* Motion transition settings. | ||
*/ | ||
transition?: MotionTransition; | ||
@@ -20,0 +37,0 @@ }; |
@@ -41,3 +41,3 @@ "use strict"; | ||
labelProps, | ||
reverse, | ||
isReverse, | ||
flexDirection, | ||
@@ -76,3 +76,3 @@ transition = { | ||
display: "inline-flex", | ||
flexDirection: flexDirection != null ? flexDirection : reverse ? "row-reverse" : "row", | ||
flexDirection: flexDirection != null ? flexDirection : isReverse ? "row-reverse" : "row", | ||
alignItems: "center", | ||
@@ -79,0 +79,0 @@ verticalAlign: "top", |
{ | ||
"name": "@yamada-ui/switch", | ||
"version": "0.0.0-dev-20230625235915", | ||
"version": "0.0.0-dev-20230701130255", | ||
"description": "Yamada UI switch component", | ||
@@ -38,6 +38,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@yamada-ui/core": "0.0.0-dev-20230625235915", | ||
"@yamada-ui/core": "0.0.0-dev-20230701130255", | ||
"@yamada-ui/utils": "0.1.1", | ||
"@yamada-ui/checkbox": "0.0.0-dev-20230625235915", | ||
"@yamada-ui/motion": "0.0.0-dev-20230625235915" | ||
"@yamada-ui/checkbox": "0.0.0-dev-20230701130255", | ||
"@yamada-ui/motion": "0.0.0-dev-20230701130255" | ||
}, | ||
@@ -76,4 +76,4 @@ "devDependencies": { | ||
"typecheck": "tsc --noEmit", | ||
"gen:types": "tsx ../../../scripts/generate-types" | ||
"gen:docs": "tsx ../../../scripts/generate-docs" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
16189
448
+ Added@babel/generator@7.26.8(transitive)
+ Added@babel/parser@7.26.8(transitive)
+ Added@babel/template@7.26.8(transitive)
+ Added@babel/traverse@7.26.8(transitive)
+ Added@babel/types@7.26.8(transitive)
+ Added@yamada-ui/checkbox@0.0.0-dev-20230701130255(transitive)
+ Added@yamada-ui/core@0.0.0-dev-20230701130255(transitive)
+ Added@yamada-ui/form-control@0.0.0-dev-20230701130255(transitive)
+ Added@yamada-ui/layouts@0.0.0-dev-20230701130255(transitive)
+ Added@yamada-ui/motion@0.0.0-dev-20230701130255(transitive)
+ Added@yamada-ui/portal@0.0.0-dev-20230701130255(transitive)
- Removed@babel/generator@7.26.5(transitive)
- Removed@babel/parser@7.26.7(transitive)
- Removed@babel/template@7.25.9(transitive)
- Removed@babel/traverse@7.26.7(transitive)
- Removed@babel/types@7.26.7(transitive)
- Removed@yamada-ui/checkbox@0.0.0-dev-20230625235915(transitive)
- Removed@yamada-ui/core@0.0.0-dev-20230625235915(transitive)
- Removed@yamada-ui/form-control@0.0.0-dev-20230625235915(transitive)
- Removed@yamada-ui/layouts@0.0.0-dev-20230625235915(transitive)
- Removed@yamada-ui/motion@0.0.0-dev-20230625235915(transitive)
- Removed@yamada-ui/portal@0.1.2(transitive)