@spaced-out/ui-design-system 0.1.129 → 0.1.130-beta.0
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
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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
|
+
### [0.1.130-beta.0](https://github.com/spaced-out/ui-design-system/compare/v0.1.129...v0.1.130-beta.0) (2024-09-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* large size in chips ([#266](https://github.com/spaced-out/ui-design-system/issues/266)) ([b4cf45c](https://github.com/spaced-out/ui-design-system/commit/b4cf45c84bf954253321834ccedc9ffb7f4c2019))
|
|
11
|
+
|
|
5
12
|
### [0.1.129](https://github.com/spaced-out/ui-design-system/compare/v0.1.128...v0.1.129) (2024-09-10)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -76,6 +76,7 @@ const Chip = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
76
76
|
[_ChipModule.default.warning]: semantic === CHIP_SEMANTIC.warning,
|
|
77
77
|
[_ChipModule.default.danger]: semantic === CHIP_SEMANTIC.danger,
|
|
78
78
|
[_ChipModule.default.secondary]: semantic === CHIP_SEMANTIC.secondary,
|
|
79
|
+
[_ChipModule.default.large]: size === 'large',
|
|
79
80
|
[_ChipModule.default.medium]: size === 'medium',
|
|
80
81
|
[_ChipModule.default.small]: size === 'small',
|
|
81
82
|
[_ChipModule.default.dismissable]: dismissable,
|
|
@@ -40,13 +40,18 @@ export type BaseChipProps = {
|
|
|
40
40
|
onMouseLeave?: ?(SyntheticEvent<HTMLElement>) => mixed,
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
export type
|
|
43
|
+
export type LargeChipProps = {
|
|
44
44
|
...BaseChipProps,
|
|
45
|
-
size?: 'medium',
|
|
46
45
|
iconName?: string,
|
|
47
46
|
iconType?: IconType,
|
|
48
47
|
dismissable?: boolean,
|
|
49
48
|
onDismiss?: ?(SyntheticEvent<HTMLElement>) => mixed,
|
|
49
|
+
size?: 'large',
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export type MediumChipProps = {
|
|
53
|
+
...LargeChipProps,
|
|
54
|
+
size?: 'medium',
|
|
50
55
|
};
|
|
51
56
|
|
|
52
57
|
export type SmallChipProps = {
|
|
@@ -54,7 +59,7 @@ export type SmallChipProps = {
|
|
|
54
59
|
size?: 'small',
|
|
55
60
|
};
|
|
56
61
|
|
|
57
|
-
export type ChipProps = MediumChipProps | SmallChipProps;
|
|
62
|
+
export type ChipProps = LargeChipProps | MediumChipProps | SmallChipProps;
|
|
58
63
|
|
|
59
64
|
export const Chip: React$AbstractComponent<ChipProps, HTMLDivElement> =
|
|
60
65
|
React.forwardRef<ChipProps, HTMLDivElement>(
|
|
@@ -114,6 +119,7 @@ export const Chip: React$AbstractComponent<ChipProps, HTMLDivElement> =
|
|
|
114
119
|
[css.warning]: semantic === CHIP_SEMANTIC.warning,
|
|
115
120
|
[css.danger]: semantic === CHIP_SEMANTIC.danger,
|
|
116
121
|
[css.secondary]: semantic === CHIP_SEMANTIC.secondary,
|
|
122
|
+
[css.large]: size === 'large',
|
|
117
123
|
[css.medium]: size === 'medium',
|
|
118
124
|
[css.small]: size === 'small',
|
|
119
125
|
[css.dismissable]: dismissable,
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
) from '../../styles/variables/_border.css';
|
|
27
27
|
@value (
|
|
28
28
|
size18,
|
|
29
|
-
size26
|
|
29
|
+
size26,
|
|
30
|
+
size34
|
|
30
31
|
) from '../../styles/variables/_size.css';
|
|
31
32
|
|
|
32
33
|
@value (
|
|
@@ -53,6 +54,12 @@
|
|
|
53
54
|
borderWidthTertiary colorFocusPrimary;
|
|
54
55
|
}
|
|
55
56
|
|
|
57
|
+
.large {
|
|
58
|
+
padding: spaceNone spaceXSmall;
|
|
59
|
+
height: size34;
|
|
60
|
+
min-height: size34;
|
|
61
|
+
}
|
|
62
|
+
|
|
56
63
|
.medium {
|
|
57
64
|
height: size26;
|
|
58
65
|
min-height: size26;
|