Skip to content

Commit 475be09

Browse files
committed
opacity-increase
1 parent 2b99ad3 commit 475be09

File tree

15 files changed

+45
-3
lines changed

15 files changed

+45
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-declarative-mantine",
3-
"version": "0.0.33",
3+
"version": "0.0.34",
44
"description": "The Mantine ui kit bindings for react-declarative",
55
"private": false,
66
"author": {

src/OneSlotFactory/components/CheckBox.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export const CheckBox = ({
1515
mt="xs"
1616
mb="xs"
1717
disabled={disabled}
18+
style={{
19+
opacity: disabled ? 0.5 : undefined,
20+
}}
1821
checked={Boolean(value)}
1922
onChange={() => onChange(!value)}
2023
label={title}

src/OneSlotFactory/components/Choose.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ export const Choose = ({
118118
label={title}
119119
error={(dirty && (invalid || incorrect))}
120120
description={description}
121+
style={{
122+
opacity: disabled ? 0.5 : undefined,
123+
}}
121124
rightSection={(
122125
<ActionButton
123126
sx={{

src/OneSlotFactory/components/Combo.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ export const Combo = ({
191191
<Select
192192
{...MANTINE_CONFIG}
193193
value={value}
194+
style={{
195+
opacity: disabled ? 0.5 : undefined,
196+
}}
194197
allowDeselect={!noDeselect}
195198
variant={outlined ? "default" : "filled"}
196199
onChange={handleChange}

src/OneSlotFactory/components/ComboArray.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ export const ComboArray = ({
201201
description={description}
202202
placeholder={placeholder}
203203
data={data}
204+
style={{
205+
opacity: disabled ? 0.5 : undefined,
206+
}}
204207
comboboxProps={{
205208
withinPortal: true,
206209
shadow: 'xl',

src/OneSlotFactory/components/Complete.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,9 @@ export const Complete = ({
382382
description={description}
383383
pattern={inputPattern}
384384
readOnly={readonly}
385+
style={{
386+
opacity: disabled ? 0.5 : undefined,
387+
}}
385388
rightSection={(
386389
<IconButton
387390
onClick={(e) => {

src/OneSlotFactory/components/Date.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ export const Date = ({
5151
description={description}
5252
value={dateValue}
5353
placeholder={placeholder}
54+
style={{
55+
opacity: disabled ? 0.5 : undefined,
56+
}}
5457
popoverProps={{
5558
withinPortal: true,
5659
shadow: 'xl',

src/OneSlotFactory/components/Items.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ export const Items = ({
204204
error={(dirty && (invalid || incorrect))}
205205
description={description}
206206
placeholder={placeholder}
207+
style={{
208+
opacity: disabled ? 0.5 : undefined,
209+
}}
207210
data={data}
208211
comboboxProps={{
209212
withinPortal: true,

src/OneSlotFactory/components/Radio.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ export const Radio = ({
4343
mt="xs"
4444
mb="xs"
4545
checked={checked}
46+
style={{
47+
opacity: disabled ? 0.5 : undefined,
48+
}}
4649
disabled={disabled}
4750
onChange={() => handleChange(radioValue || null)}
4851
label={title}

0 commit comments

Comments
 (0)