Skip to content

Commit 3cc081f

Browse files
committed
refactor: remove unused icon references from input component types for improved clarity
Refs: #7460
1 parent 37a442e commit 3cc081f

File tree

13 files changed

+33
-56
lines changed

13 files changed

+33
-56
lines changed

packages/components/src/components/input/types.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ import type { Generic } from 'adopted-style-sheets';
22

33
import type {
44
ButtonProps,
5-
KoliBriHorizontalIcons,
65
MsgPropType,
76
PropAccessKey,
87
PropDisabled,
98
PropHasCounter,
10-
PropHideMsg,
119
PropHideLabel,
10+
PropHideMsg,
1211
PropHorizontalIcons,
1312
PropId,
1413
PropLabelWithExpertSlot,
@@ -26,7 +25,6 @@ type RequiredProps = PropId & PropLabelWithExpertSlot;
2625
type OptionalProps = {
2726
currentLength: number;
2827
hint: string;
29-
icons: KoliBriHorizontalIcons;
3028
maxLength: number;
3129
msg: MsgPropType;
3230
slotName: string;

packages/components/src/schema/components/combobox.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,26 @@ import type { Generic } from 'adopted-style-sheets';
22

33
import type {
44
MsgPropType,
5+
PropAccessKey,
56
PropDisabled,
6-
PropHideMsg,
77
PropHideLabel,
8+
PropHideMsg,
89
PropHorizontalIcons,
910
PropId,
1011
PropLabelWithExpertSlot,
1112
PropMsg,
1213
PropName,
1314
PropRequired,
15+
PropShortKey,
1416
PropSuggestions,
1517
PropSyncValueBySelector,
1618
PropTouched,
17-
PropAccessKey,
18-
PropShortKey,
1919
} from '../props';
20-
import type { InputTypeOnDefault, KoliBriHIcons, KoliBriHorizontalIcons, Stringified, W3CInputValue } from '../types';
20+
import type { InputTypeOnDefault, KoliBriHIcons, Stringified, W3CInputValue } from '../types';
2121

2222
type RequiredProps = PropLabelWithExpertSlot & PropSuggestions;
2323
type OptionalProps = {
2424
hint: string;
25-
icons: Stringified<KoliBriHorizontalIcons>;
2625
msg: Stringified<MsgPropType>;
2726
on: InputTypeOnDefault;
2827
placeholder: string;
@@ -47,7 +46,6 @@ type RequiredStates = {
4746
PropLabelWithExpertSlot;
4847
type OptionalStates = {
4948
hint: string;
50-
icons: KoliBriHorizontalIcons;
5149
on: InputTypeOnDefault;
5250
placeholder: string;
5351
} & PropAccessKey &

packages/components/src/schema/components/input-color.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import type { Generic } from 'adopted-style-sheets';
22

33
import type {
4-
PropAccessKey,
54
MsgPropType,
5+
PropAccessKey,
66
PropDisabled,
7-
PropHideMsg,
87
PropHideLabel,
8+
PropHideMsg,
99
PropHorizontalIcons,
1010
PropLabelWithExpertSlot,
1111
PropMsg,
@@ -15,14 +15,13 @@ import type {
1515
PropSyncValueBySelector,
1616
PropTouched,
1717
} from '../props';
18-
import type { InputTypeOnDefault, InputTypeOnOff, KoliBriHIcons, KoliBriHorizontalIcons, Stringified, W3CInputValue } from '../types';
18+
import type { InputTypeOnDefault, InputTypeOnOff, KoliBriHIcons, Stringified, W3CInputValue } from '../types';
1919
import type { ButtonProps } from './button';
2020

2121
type RequiredProps = PropLabelWithExpertSlot;
2222
type OptionalProps = {
2323
autoComplete: InputTypeOnOff;
2424
hint: string;
25-
icons: Stringified<KoliBriHorizontalIcons>;
2625
msg: Stringified<MsgPropType>;
2726
on: InputTypeOnDefault;
2827
smartButton: Stringified<ButtonProps>;
@@ -46,7 +45,6 @@ type RequiredStates = {
4645
PropLabelWithExpertSlot;
4746
type OptionalStates = {
4847
hint: string;
49-
icons: KoliBriHorizontalIcons;
5048
on: InputTypeOnDefault;
5149
smartButton: ButtonProps;
5250
value: string;

packages/components/src/schema/components/input-date.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type {
44
MsgPropType,
55
PropAccessKey,
66
PropDisabled,
7-
PropHideMsg,
87
PropHideLabel,
8+
PropHideMsg,
99
PropId,
1010
PropLabelWithExpertSlot,
1111
PropMsg,

packages/components/src/schema/components/input-email.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import type {
55
PropAccessKey,
66
PropDisabled,
77
PropHasCounter,
8-
PropHideMsg,
98
PropHideLabel,
9+
PropHideMsg,
1010
PropHorizontalIcons,
1111
PropId,
1212
PropLabelWithExpertSlot,
@@ -20,14 +20,13 @@ import type {
2020
PropSyncValueBySelector,
2121
PropTouched,
2222
} from '../props';
23-
import type { InputTypeOnDefault, InputTypeOnOff, KoliBriHIcons, KoliBriHorizontalIcons, Stringified, W3CInputValue } from '../types';
23+
import type { InputTypeOnDefault, InputTypeOnOff, KoliBriHIcons, Stringified, W3CInputValue } from '../types';
2424
import type { ButtonProps } from './button';
2525

2626
type RequiredProps = PropLabelWithExpertSlot;
2727
type OptionalProps = {
2828
autoComplete: InputTypeOnOff;
2929
hint: string;
30-
icons: Stringified<KoliBriHorizontalIcons>;
3130
maxLength: number;
3231
msg: Stringified<MsgPropType>;
3332
on: InputTypeOnDefault;
@@ -61,7 +60,6 @@ type RequiredStates = {
6160
type OptionalStates = {
6261
currentLength: number;
6362
hint: string;
64-
icons: KoliBriHorizontalIcons;
6563
maxLength: number;
6664
on: InputTypeOnDefault;
6765
pattern: string;

packages/components/src/schema/components/input-file.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,28 @@ import type { Generic } from 'adopted-style-sheets';
22

33
import type {
44
MsgPropType,
5+
PropAccessKey,
56
PropDisabled,
6-
PropHideMsg,
77
PropHideLabel,
8+
PropHideMsg,
89
PropHorizontalIcons,
910
PropId,
1011
PropLabelWithExpertSlot,
1112
PropMsg,
1213
PropMultiple,
1314
PropName,
1415
PropRequired,
16+
PropShortKey,
1517
PropSyncValueBySelector,
1618
PropTouched,
17-
PropAccessKey,
18-
PropShortKey,
1919
} from '../props';
20-
import type { InputTypeOnDefault, KoliBriHIcons, KoliBriHorizontalIcons, Stringified } from '../types';
20+
import type { InputTypeOnDefault, KoliBriHIcons, Stringified } from '../types';
2121
import type { ButtonProps } from './button';
2222

2323
type RequiredProps = PropLabelWithExpertSlot;
2424
type OptionalProps = {
2525
accept: string;
2626
hint: string;
27-
icons: Stringified<KoliBriHorizontalIcons>;
2827
msg: Stringified<MsgPropType>;
2928
on: InputTypeOnDefault;
3029
smartButton: Stringified<ButtonProps>;
@@ -44,7 +43,6 @@ type RequiredStates = PropId & PropLabelWithExpertSlot & PropHideMsg;
4443
type OptionalStates = {
4544
accept: string;
4645
hint: string;
47-
icons: KoliBriHorizontalIcons;
4846
on: InputTypeOnDefault;
4947
smartButton: ButtonProps;
5048
} & PropAccessKey &

packages/components/src/schema/components/input-number.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type {
44
MsgPropType,
55
PropAccessKey,
66
PropDisabled,
7-
PropHideMsg,
87
PropHideLabel,
8+
PropHideMsg,
99
PropId,
1010
PropLabelWithExpertSlot,
1111
PropMsg,
@@ -17,7 +17,7 @@ import type {
1717
PropSyncValueBySelector,
1818
PropTouched,
1919
} from '../props';
20-
import type { InputTypeOnDefault, InputTypeOnOff, KoliBriHIcons, KoliBriHorizontalIcons, OptionalInputProps, Stringified, W3CInputValue } from '../types';
20+
import type { InputTypeOnDefault, InputTypeOnOff, KoliBriHIcons, OptionalInputProps, Stringified, W3CInputValue } from '../types';
2121
import type { ButtonProps } from './button';
2222

2323
type RequiredProps = PropLabelWithExpertSlot;
@@ -38,7 +38,6 @@ type RequiredStates = {
3838

3939
type OptionalStates = {
4040
hint: string;
41-
icons: KoliBriHorizontalIcons;
4241
max: string;
4342
min: string;
4443
on: InputTypeOnDefault;

packages/components/src/schema/components/input-password.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import type {
55
PropAccessKey,
66
PropDisabled,
77
PropHasCounter,
8-
PropHideMsg,
98
PropHideLabel,
9+
PropHideMsg,
1010
PropHorizontalIcons,
1111
PropId,
1212
PropLabelWithExpertSlot,
@@ -18,15 +18,14 @@ import type {
1818
PropSyncValueBySelector,
1919
PropTouched,
2020
} from '../props';
21-
import type { InputTypeOnDefault, InputTypeOnOff, KoliBriHorizontalIcons, KoliBriHIcons, Stringified } from '../types';
22-
import type { ButtonProps } from './button';
2321
import type { PropPasswordVariant } from '../props/variant/password-variant';
22+
import type { InputTypeOnDefault, InputTypeOnOff, KoliBriHIcons, Stringified } from '../types';
23+
import type { ButtonProps } from './button';
2424

2525
type RequiredProps = PropLabelWithExpertSlot;
2626
type OptionalProps = {
2727
autoComplete: InputTypeOnOff;
2828
hint: string;
29-
icons: Stringified<KoliBriHorizontalIcons>;
3029
maxLength: number;
3130
on: InputTypeOnDefault;
3231
pattern: string;
@@ -57,7 +56,6 @@ type RequiredStates = {
5756
type OptionalStates = {
5857
currentLength: number;
5958
hint: string;
60-
icons: KoliBriHorizontalIcons;
6159
maxLength: number;
6260
on: InputTypeOnDefault;
6361
pattern: string;

packages/components/src/schema/components/input-range.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type {
44
MsgPropType,
55
PropAccessKey,
66
PropDisabled,
7-
PropHideMsg,
87
PropHideLabel,
8+
PropHideMsg,
99
PropHorizontalIcons,
1010
PropId,
1111
PropLabelWithExpertSlot,
@@ -16,13 +16,12 @@ import type {
1616
PropSyncValueBySelector,
1717
PropTouched,
1818
} from '../props';
19-
import type { InputTypeOnDefault, InputTypeOnOff, KoliBriHIcons, KoliBriHorizontalIcons, Stringified, W3CInputValue } from '../types';
19+
import type { InputTypeOnDefault, InputTypeOnOff, KoliBriHIcons, Stringified, W3CInputValue } from '../types';
2020

2121
type RequiredProps = PropLabelWithExpertSlot;
2222
type OptionalProps = {
2323
autoComplete: InputTypeOnOff;
2424
hint: string;
25-
icons: Stringified<KoliBriHorizontalIcons>;
2625
max: number;
2726
min: number;
2827
msg: Stringified<MsgPropType>;
@@ -48,7 +47,6 @@ type RequiredStates = {
4847
PropLabelWithExpertSlot;
4948
type OptionalStates = {
5049
hint: string;
51-
icons: KoliBriHorizontalIcons;
5250
max: number;
5351
min: number;
5452
on: InputTypeOnDefault;

packages/components/src/schema/components/input-text.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import type {
55
PropAccessKey,
66
PropDisabled,
77
PropHasCounter,
8-
PropHideMsg,
98
PropHideLabel,
9+
PropHideMsg,
1010
PropHorizontalIcons,
1111
PropId,
1212
PropLabelWithExpertSlot,
@@ -20,14 +20,13 @@ import type {
2020
PropSyncValueBySelector,
2121
PropTouched,
2222
} from '../props';
23-
import type { InputTextType, InputTypeOnDefault, InputTypeOnOff, KoliBriHIcons, KoliBriHorizontalIcons, Stringified, W3CInputValue } from '../types';
23+
import type { InputTextType, InputTypeOnDefault, InputTypeOnOff, KoliBriHIcons, Stringified, W3CInputValue } from '../types';
2424
import type { ButtonProps } from './button';
2525

2626
type RequiredProps = PropLabelWithExpertSlot;
2727
type OptionalProps = {
2828
autoComplete: InputTypeOnOff;
2929
hint: string;
30-
icons: Stringified<KoliBriHorizontalIcons>;
3130
maxLength: number;
3231
msg: Stringified<MsgPropType>;
3332
on: InputTypeOnDefault;
@@ -63,7 +62,6 @@ type RequiredStates = {
6362
type OptionalStates = {
6463
currentLength: number;
6564
hint: string;
66-
icons: KoliBriHorizontalIcons;
6765
maxLength: number;
6866
on: InputTypeOnDefault;
6967
pattern: string;

0 commit comments

Comments
 (0)