Skip to content

Commit 5a70e1f

Browse files
authored
Merge pull request #23 from kubit-ui/feature/new-improvements-and-solve-bugs
Feature/new improvements and solve bugs
2 parents cbb02ce + 718a3ac commit 5a70e1f

File tree

20 files changed

+858
-25
lines changed

20 files changed

+858
-25
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kubit-ui-web/react-components",
3-
"version": "1.8.2",
3+
"version": "1.8.3",
44
"description": "Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience",
55
"author": {
66
"name": "Kubit",
@@ -83,7 +83,7 @@
8383
"license": "Apache-2.0",
8484
"devDependencies": {
8585
"@babel/core": "^7.25.2",
86-
"@babel/preset-env": "^7.25.2",
86+
"@babel/preset-env": "^7.25.3",
8787
"@babel/preset-react": "^7.24.7",
8888
"@babel/preset-typescript": "^7.24.7",
8989
"@eslint/compat": "^1.1.1",
@@ -153,7 +153,6 @@
153153
"typedoc": "^0.26.5",
154154
"typedoc-plugin-markdown": "^4.2.3",
155155
"typescript": "^5.5.4",
156-
"vercel": "^35.2.1",
157156
"vite": "^5.3.5",
158157
"vite-tsconfig-paths": "^4.3.2",
159158
"yarn-deduplicate": "^6.0.2"

src/components/carousel/carouselStandAlone.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ const CarouselStandAloneComponent = (
111111
>
112112
<CarouselContentStyled
113113
ref={carouselContentRef}
114-
aria-live={playing ? AriaLiveOptionType.OFF : AriaLiveOptionType.POLITE}
114+
aria-live={
115+
props['aria-live'] ?? (playing ? AriaLiveOptionType.OFF : AriaLiveOptionType.POLITE)
116+
}
115117
centerMode={centerMode}
116118
data-testid={`${dataTestId}Content`}
117119
disableSwipe={disableSwipe}

src/components/carousel/stories/argtypes.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export const argtypes = (variants: IThemeObjectVariants, themeSelected: string):
223223
},
224224
},
225225
['aria-labelledby']: {
226-
description: 'Carousel aria label by',
226+
description: 'Carousel aria labelledby',
227227
type: { name: 'string' },
228228
control: { type: 'text' },
229229
table: {
@@ -233,6 +233,17 @@ export const argtypes = (variants: IThemeObjectVariants, themeSelected: string):
233233
category: CATEGORY_CONTROL.ACCESIBILITY,
234234
},
235235
},
236+
['aria-live']: {
237+
description: 'Aria live applied to carousel content',
238+
control: { type: 'text' },
239+
type: { name: 'string' },
240+
table: {
241+
type: {
242+
summary: 'string',
243+
},
244+
category: CATEGORY_CONTROL.ACCESIBILITY,
245+
},
246+
},
236247
displayArrowsOnCarousel: {
237248
description: 'Show the arrows on the carousel or on the Page Control',
238249
type: { name: 'boolean' },

src/components/carousel/types/carousel.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ export type PageControlAutomateConfigType = Omit<
2323
mediaProgressBar: CarouselMediaProgressBarType;
2424
};
2525

26-
export interface ICarouselStandAlone {
27-
['aria-labelledby']?: string;
26+
type CarouselAriaAttributes = Pick<React.AriaAttributes, 'aria-labelledby' | 'aria-live'>;
27+
28+
export interface ICarouselStandAlone extends CarouselAriaAttributes {
2829
styles: CarouselPropsStylesType;
2930
carouselContainerRef: React.RefObject<HTMLDivElement>;
3031
carouselContentRef: React.RefObject<HTMLDivElement>;

src/components/inputDropdown/hooks/useInputDropdown.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ type ParamsType = {
5353
value?: string;
5454
styles: InputDropdownStylesProps;
5555
disabled?: boolean;
56+
/**
57+
* @deprecated
58+
* @description This prop is deprecated and will be removed in the next major version.
59+
*/
5660
clearTextInputPopoverIconClick?: boolean;
5761
error?: boolean;
5862
informationAssociated?: string;

src/components/inputDropdown/types/inputDropdown.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ export interface IInputDropdownStandAlone
144144
inputPopoverRightIcon?: IElementOrIcon;
145145
inputPopoverValue?: string;
146146
inputPopoverVariant?: string;
147+
/**
148+
* @deprecated
149+
* @description This prop is deprecated and will be removed in the next major version.
150+
*/
147151
clearTextInputPopoverIconClick?: boolean;
148152
// Functions
149153
onOpenOptions: (value: boolean) => void;

src/components/inputSearch/hooks/useInputSearch.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ type ParamsType = {
5555
error?: boolean;
5656
hasResultTextWrittenByUser?: boolean;
5757
disableErrorInvalidOption?: boolean;
58+
/**
59+
* @deprecated
60+
* @description This prop is deprecated and will be removed in the next major version.
61+
*/
5862
clearTextInputPopoverIconClick?: boolean;
5963
highlightedOption?: string;
6064
informationAssociated?: string;

src/components/inputSearch/types/inputSearch.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ export interface IInputSearch<V = undefined extends string ? unknown : string>
229229
regex?: string | RegExp;
230230
internalErrorExecution?: INTERNAL_ERROR_EXECUTION;
231231
onClick?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
232+
/**
233+
* @deprecated
234+
* @description This prop is deprecated and will be removed in the next major version.
235+
*/
232236
clearTextInputPopoverIconClick?: boolean;
233237
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
234238
onInputPopoverIconClick?: () => void;

src/components/oliveMenu/oliveMenuStandAlone.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const OliveMenuStandAloneComponent = (
3333
return (
3434
<OliveMenuStyled
3535
ref={ref}
36-
data-testId={`${props.dataTestId}Container`}
36+
data-testid={`${props.dataTestId}Container`}
3737
styles={props.styles}
3838
onBlur={props.onBlur}
3939
>

src/components/pill/types/pill.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface IPillStandAlone extends PillAriaAttributes {
3131
dataTestId?: string;
3232
decorativeIcon?: IElementOrIcon;
3333
selectedIcon?: IElementOrIcon;
34-
children: React.ReactNode;
34+
children?: React.ReactNode;
3535
disabled?: boolean;
3636
multiSelect?: boolean;
3737
selected?: boolean;

0 commit comments

Comments
 (0)