@zextras/carbonio-design-system 2.1.1 → 2.2.0-devel.1689674159075
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/zapp-ui.bundle.d.ts +47 -27
- package/dist/zapp-ui.bundle.js +390 -306
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.2.0](https://github.com/Zextras/carbonio-design-system/compare/v2.1.1...v2.2.0) (2023-07-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **icons:** update icon set ([8afdea7](https://github.com/Zextras/carbonio-design-system/commit/8afdea7bbe669a757b17e42073564b90bc3c879f)), closes [#194](https://github.com/Zextras/carbonio-design-system/issues/194)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **TextArea:** update height when value change in controlled mode ([1700910](https://github.com/Zextras/carbonio-design-system/commit/170091078bab986796e5a55f438a9b26277a55ef)), closes [#196](https://github.com/Zextras/carbonio-design-system/issues/196)
|
|
16
|
+
|
|
5
17
|
### [2.1.1](https://github.com/Zextras/carbonio-design-system/compare/v2.1.0...v2.1.1) (2023-06-15)
|
|
6
18
|
|
|
7
19
|
|
package/dist/zapp-ui.bundle.d.ts
CHANGED
|
@@ -365,7 +365,13 @@ export declare type ChipAction = {
|
|
|
365
365
|
type: 'icon';
|
|
366
366
|
});
|
|
367
367
|
|
|
368
|
-
|
|
368
|
+
declare type ChipInput<TValue> = React_2.ForwardRefExoticComponent<ChipInputProps<TValue> & React_2.RefAttributes<HTMLDivElement>> & {
|
|
369
|
+
_newId?: number;
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
declare const ChipInput: ChipInput<any>;
|
|
373
|
+
export { ChipInput }
|
|
374
|
+
export { ChipInput as ChipInputType }
|
|
369
375
|
|
|
370
376
|
export declare interface ChipInputProps<TValue = unknown> extends Omit<ContainerProps, 'defaultValue' | 'onChange'> {
|
|
371
377
|
/** ref to the input element */
|
|
@@ -470,10 +476,6 @@ export declare interface ChipInputProps<TValue = unknown> extends Omit<Container
|
|
|
470
476
|
maxHeight?: string;
|
|
471
477
|
}
|
|
472
478
|
|
|
473
|
-
export declare type ChipInputType<TValue> = React_2.ForwardRefExoticComponent<ChipInputProps<TValue> & React_2.RefAttributes<HTMLDivElement>> & {
|
|
474
|
-
_newId?: number;
|
|
475
|
-
};
|
|
476
|
-
|
|
477
479
|
export declare type ChipItem<TValue = unknown> = {
|
|
478
480
|
label?: string;
|
|
479
481
|
} & ChipProps & {
|
|
@@ -1545,7 +1547,10 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
|
|
|
1545
1547
|
disablePortal?: boolean;
|
|
1546
1548
|
}
|
|
1547
1549
|
|
|
1548
|
-
export declare function pseudoClasses(theme: DefaultTheme, color: string
|
|
1550
|
+
export declare function pseudoClasses(theme: DefaultTheme, color: string, cssProperty?: string, options?: {
|
|
1551
|
+
transition?: boolean;
|
|
1552
|
+
outline?: boolean;
|
|
1553
|
+
}): FlattenSimpleInterpolation;
|
|
1549
1554
|
|
|
1550
1555
|
export declare const Quota: React_2.ForwardRefExoticComponent<QuotaProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1551
1556
|
|
|
@@ -1560,45 +1565,60 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
|
|
|
1560
1565
|
height?: number | string;
|
|
1561
1566
|
}
|
|
1562
1567
|
|
|
1563
|
-
export declare const Radio:
|
|
1564
|
-
|
|
1565
|
-
export declare const RadioGroup: React_2.ForwardRefExoticComponent<RadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1568
|
+
export declare const Radio: RadioType;
|
|
1566
1569
|
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
value?: string;
|
|
1572
|
-
/** change callback */
|
|
1573
|
-
onChange?: (value: string) => void;
|
|
1574
|
-
/** children elements of Radio Group */
|
|
1575
|
-
children: JSX.Element[];
|
|
1576
|
-
}
|
|
1570
|
+
declare const RADIO_SIZE: Record<'small' | 'medium', {
|
|
1571
|
+
icon: keyof DefaultTheme['sizes']['icon'];
|
|
1572
|
+
label: TextProps['size'];
|
|
1573
|
+
}>;
|
|
1577
1574
|
|
|
1578
|
-
|
|
1575
|
+
declare interface RadioComponentProps<T extends RadioInputHTMLAttributes['value']> {
|
|
1579
1576
|
/** status of the Radio */
|
|
1580
1577
|
defaultChecked?: boolean;
|
|
1581
1578
|
/** Radio checked */
|
|
1582
1579
|
checked?: boolean;
|
|
1583
|
-
/** value of the Radio */
|
|
1584
|
-
value?: string;
|
|
1585
1580
|
/** Radio text */
|
|
1586
1581
|
label?: string | React_2.ReactElement;
|
|
1587
1582
|
/** whether to disable the radio or not */
|
|
1588
1583
|
disabled?: boolean;
|
|
1589
1584
|
/** click callback */
|
|
1590
|
-
onClick?: React_2.
|
|
1585
|
+
onClick?: (e: React_2.MouseEvent<HTMLInputElement> | KeyboardEvent) => void;
|
|
1591
1586
|
/** change callback */
|
|
1592
1587
|
onChange?: (checked: boolean) => void;
|
|
1593
1588
|
/** radio padding */
|
|
1594
1589
|
padding?: ContainerProps['padding'];
|
|
1595
1590
|
/** available sizes */
|
|
1596
|
-
size?:
|
|
1591
|
+
size?: keyof typeof RADIO_SIZE;
|
|
1597
1592
|
/** icon color */
|
|
1598
|
-
iconColor?: keyof DefaultTheme['palette'];
|
|
1593
|
+
iconColor?: keyof DefaultTheme['palette'] | CSSProperties['color'];
|
|
1594
|
+
/** Ref for the input element */
|
|
1595
|
+
inputRef?: React_2.Ref<HTMLInputElement>;
|
|
1596
|
+
/** Value of the radio input */
|
|
1597
|
+
value?: T;
|
|
1599
1598
|
}
|
|
1600
1599
|
|
|
1601
|
-
declare
|
|
1600
|
+
export declare const RadioGroup: React_2.ForwardRefExoticComponent<RadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1601
|
+
|
|
1602
|
+
export declare interface RadioGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
1603
|
+
/** Default value for the radio group */
|
|
1604
|
+
defaultValue?: string;
|
|
1605
|
+
/** Radio group value */
|
|
1606
|
+
value?: string;
|
|
1607
|
+
/** change callback */
|
|
1608
|
+
onChange?: (value: string) => void;
|
|
1609
|
+
/** children elements of Radio Group */
|
|
1610
|
+
children: JSX.Element[];
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
declare type RadioInputHTMLAttributes = InputHTMLAttributes<HTMLInputElement> & {
|
|
1614
|
+
type: 'radio';
|
|
1615
|
+
};
|
|
1616
|
+
|
|
1617
|
+
export declare type RadioProps<T extends RadioInputHTMLAttributes['value'] = string> = RadioComponentProps<T> & Omit<RadioInputHTMLAttributes, 'type' | 'checked' | 'id' | keyof RadioComponentProps<T>>;
|
|
1618
|
+
|
|
1619
|
+
declare type RadioType = (<T extends RadioInputHTMLAttributes['value'] = string>(p: RadioProps<T> & React_2.RefAttributes<HTMLDivElement>) => React_2.ReactElement<RadioProps> | null) & {
|
|
1620
|
+
_id?: number;
|
|
1621
|
+
};
|
|
1602
1622
|
|
|
1603
1623
|
export { registerLocale }
|
|
1604
1624
|
|
|
@@ -1676,7 +1696,7 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
|
|
|
1676
1696
|
declare type ShapeType = 'round' | 'square';
|
|
1677
1697
|
|
|
1678
1698
|
export declare type Shimmer = React_2.VFC<SkeletonProps> & {
|
|
1679
|
-
[K in keyof typeof ShimmerObject]: React_2.VFC<Parameters<typeof ShimmerObject[K]>[number]>;
|
|
1699
|
+
[K in keyof typeof ShimmerObject]: React_2.VFC<Parameters<(typeof ShimmerObject)[K]>[number]>;
|
|
1680
1700
|
};
|
|
1681
1701
|
|
|
1682
1702
|
export declare const Shimmer: Shimmer;
|