Skip to content

Commit bb4a29a

Browse files
authored
Merge pull request #2268 from gluestack/patch-v1
Patch v1
2 parents bd5ca77 + b630a39 commit bb4a29a

File tree

11 files changed

+35
-85
lines changed

11 files changed

+35
-85
lines changed

example/storybook-nativewind/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@gluestack-style/animation-resolver": "^1.0.4",
3333
"@gluestack-style/react": "^1.0.56",
3434
"@gluestack-ui/config": "^1.1.18",
35-
"@gluestack-ui/themed": "^1.1.31",
35+
"@gluestack-ui/themed": "^1.1.32",
3636
"@gluestack/design-system": "^0.5.36",
3737
"@legendapp/motion": "^2.2.0",
3838
"@react-aria/button": "^3.7.0",

example/storybook-nativewind/src/core-components/nativewind/checkbox/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const checkboxLabelStyle = tva({
137137
});
138138

139139
const checkboxIconStyle = tva({
140-
base: 'data-[disabled=true]:opacity-40 text-typography-50 fill-none',
140+
base: 'text-typography-50 fill-none',
141141

142142
parentVariants: {
143143
size: {

packages/config/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@gluestack-ui/alert-dialog": "0.1.29",
4545
"@gluestack-ui/avatar": "0.1.16",
4646
"@gluestack-ui/button": "1.0.5",
47-
"@gluestack-ui/checkbox": "0.1.28",
47+
"@gluestack-ui/checkbox": "0.1.29",
4848
"@gluestack-ui/divider": "0.1.8",
4949
"@gluestack-ui/fab": "0.1.20",
5050
"@gluestack-ui/form-control": "0.1.17",
@@ -59,21 +59,21 @@
5959
"@gluestack-ui/pressable": "0.1.16",
6060
"@gluestack-ui/progress": "0.1.14",
6161
"@gluestack-ui/provider": "0.1.12",
62-
"@gluestack-ui/radio": "0.1.29",
62+
"@gluestack-ui/radio": "0.1.30",
6363
"@gluestack-ui/select": "0.1.26",
6464
"@gluestack-ui/slider": "0.1.24",
6565
"@gluestack-ui/spinner": "0.1.14",
6666
"@gluestack-ui/switch": "0.1.21",
6767
"@gluestack-ui/tabs": "0.1.16",
6868
"@gluestack-ui/textarea": "0.1.22",
69-
"@gluestack-ui/themed": "1.1.31",
69+
"@gluestack-ui/themed": "1.1.32",
7070
"@gluestack-ui/toast": "1.0.4",
7171
"@gluestack-ui/tooltip": "0.1.30",
7272
"@legendapp/motion": "latest"
7373
},
7474
"peerDependencies": {
7575
"@gluestack-style/react": ">=1.0.56",
76-
"@gluestack-ui/themed": ">=1.1.31"
76+
"@gluestack-ui/themed": ">=1.1.32"
7777
},
7878
"release-it": {
7979
"git": {

packages/themed/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @gluestack-ui/themed
22

3+
## 1.1.32
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- @gluestack-ui/checkbox@0.1.29
9+
- @gluestack-ui/radio@0.1.30
10+
311
## 1.1.31
412

513
### Patch Changes

packages/themed/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gluestack-ui/themed",
3-
"version": "1.1.31",
3+
"version": "1.1.32",
44
"main": "build/index.js",
55
"types": "build/index.d.ts",
66
"module": "build/index",
@@ -43,7 +43,7 @@
4343
"@gluestack-ui/alert-dialog": "0.1.29",
4444
"@gluestack-ui/avatar": "0.1.16",
4545
"@gluestack-ui/button": "1.0.5",
46-
"@gluestack-ui/checkbox": "0.1.28",
46+
"@gluestack-ui/checkbox": "0.1.29",
4747
"@gluestack-ui/divider": "0.1.8",
4848
"@gluestack-ui/fab": "0.1.20",
4949
"@gluestack-ui/form-control": "0.1.17",
@@ -58,7 +58,7 @@
5858
"@gluestack-ui/pressable": "0.1.16",
5959
"@gluestack-ui/progress": "0.1.14",
6060
"@gluestack-ui/provider": "0.1.12",
61-
"@gluestack-ui/radio": "0.1.29",
61+
"@gluestack-ui/radio": "0.1.30",
6262
"@gluestack-ui/select": "0.1.26",
6363
"@gluestack-ui/slider": "0.1.24",
6464
"@gluestack-ui/spinner": "0.1.14",

packages/unstyled/checkbox/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @gluestack-ui/checkbox
22

3+
## 0.1.29
4+
5+
### Patch Changes
6+
7+
- fix: removed radio and checkbox icons states
8+
39
## 0.1.28
410

511
### Patch Changes

packages/unstyled/checkbox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gluestack-ui/checkbox",
3-
"version": "0.1.28",
3+
"version": "0.1.29",
44
"main": "lib/commonjs/index",
55
"module": "lib/module/index",
66
"types": "lib/typescript/index.d.ts",

packages/unstyled/checkbox/src/CheckboxIcon.tsx

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,47 +3,12 @@ import { useCheckbox } from './CheckboxProvider';
33

44
const CheckboxIcon = (StyledCheckboxIcon: any) =>
55
forwardRef(({ children, ...props }: any, ref?: any) => {
6-
const {
7-
isChecked,
8-
isDisabled,
9-
isHovered,
10-
isInvalid,
11-
isReadOnly,
12-
isPressed,
13-
isFocused,
14-
isIndeterminate,
15-
isFocusVisible,
16-
} = useCheckbox('CheckboxContext');
6+
const { isChecked } = useCheckbox('CheckboxContext');
177

188
return (
199
<>
2010
{isChecked && (
21-
<StyledCheckboxIcon
22-
states={{
23-
hover: isHovered,
24-
checked: isChecked,
25-
disabled: isDisabled,
26-
focusVisible: isFocusVisible,
27-
invalid: isInvalid,
28-
readOnly: isReadOnly,
29-
pressed: isPressed,
30-
focused: isFocused,
31-
indeterminate: isIndeterminate,
32-
}}
33-
dataSet={{
34-
hover: isHovered ? 'true' : 'false',
35-
checked: isChecked ? 'true' : 'false',
36-
disabled: isDisabled ? 'true' : 'false',
37-
focusVisible: isFocusVisible ? 'true' : 'false',
38-
invalid: isInvalid ? 'true' : 'false',
39-
readOnly: isReadOnly ? 'true' : 'false',
40-
pressed: isPressed ? 'true' : 'false',
41-
focused: isFocused ? 'true' : 'false',
42-
indeterminate: isIndeterminate ? 'true' : 'false',
43-
}}
44-
{...props}
45-
ref={ref}
46-
>
11+
<StyledCheckboxIcon {...props} ref={ref}>
4712
{children}
4813
</StyledCheckboxIcon>
4914
)}

packages/unstyled/radio/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @gluestack-ui/radio
22

3+
## 0.1.30
4+
5+
### Patch Changes
6+
7+
- fix: removed radio and checkbox icons states
8+
39
## 0.1.29
410

511
### Patch Changes

packages/unstyled/radio/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gluestack-ui/radio",
3-
"version": "0.1.29",
3+
"version": "0.1.30",
44
"main": "lib/commonjs/index",
55
"module": "lib/module/index",
66
"types": "lib/typescript/index.d.ts",

0 commit comments

Comments
 (0)