@spaced-out/ui-design-system 0.1.90 → 0.1.92
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 +19 -0
- package/lib/components/Dropdown/SimpleDropdown.js +3 -1
- package/lib/components/Dropdown/SimpleDropdown.js.flow +3 -0
- package/lib/components/Grid/Grid.js +4 -3
- package/lib/components/Grid/Grid.js.flow +6 -2
- package/lib/components/Grid/Grid.module.css +6 -0
- package/lib/components/SpiderChart/SpiderChart.js +3 -1
- package/lib/components/SpiderChart/SpiderChart.js.flow +8 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
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.92](https://github.com/spaced-out/ui-design-system/compare/v0.1.91...v0.1.92) (2024-04-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* removing fixed grid styles, handling in css ([#197](https://github.com/spaced-out/ui-design-system/issues/197)) ([7a3bb7d](https://github.com/spaced-out/ui-design-system/commit/7a3bb7d6f2e4032c986bc3b7ad4f8f4a3a72318c))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* passthrough isFuild ([#194](https://github.com/spaced-out/ui-design-system/issues/194)) ([e5a238b](https://github.com/spaced-out/ui-design-system/commit/e5a238bd5b3d6dbf26b80c2f950590aedadf95cd))
|
|
16
|
+
|
|
17
|
+
### [0.1.91](https://github.com/spaced-out/ui-design-system/compare/v0.1.90...v0.1.91) (2024-04-24)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* wraps hichchartsmore in a condition ([7213481](https://github.com/spaced-out/ui-design-system/commit/7213481d480f856813d2327fe4fbddd4cf8c4413))
|
|
23
|
+
|
|
5
24
|
### [0.1.90](https://github.com/spaced-out/ui-design-system/compare/v0.1.89...v0.1.90) (2024-04-24)
|
|
6
25
|
|
|
7
26
|
|
|
@@ -24,6 +24,7 @@ const SimpleDropdownBase = (props, ref) => {
|
|
|
24
24
|
onMenuClose,
|
|
25
25
|
resolveLabel,
|
|
26
26
|
resolveSecondaryLabel,
|
|
27
|
+
isMenuFluid = true,
|
|
27
28
|
...inputProps
|
|
28
29
|
} = props;
|
|
29
30
|
const [dropdownInputText, setDropdownInputText] = React.useState('');
|
|
@@ -66,7 +67,8 @@ const SimpleDropdownBase = (props, ref) => {
|
|
|
66
67
|
allowSearch,
|
|
67
68
|
resolveLabel,
|
|
68
69
|
resolveSecondaryLabel,
|
|
69
|
-
size
|
|
70
|
+
size,
|
|
71
|
+
isFluid: isMenuFluid
|
|
70
72
|
}
|
|
71
73
|
}));
|
|
72
74
|
};
|
|
@@ -33,6 +33,7 @@ export type SimpleDropdownProps = {
|
|
|
33
33
|
optionsVariant?: MenuOptionsVariant,
|
|
34
34
|
allowSearch?: boolean,
|
|
35
35
|
selectedKeys?: Array<string>,
|
|
36
|
+
isMenuFluid?: boolean,
|
|
36
37
|
|
|
37
38
|
// events
|
|
38
39
|
onChange?: (option: MenuOption, ?SyntheticEvent<HTMLElement>) => mixed,
|
|
@@ -59,6 +60,7 @@ const SimpleDropdownBase = (props: SimpleDropdownProps, ref) => {
|
|
|
59
60
|
onMenuClose,
|
|
60
61
|
resolveLabel,
|
|
61
62
|
resolveSecondaryLabel,
|
|
63
|
+
isMenuFluid = true,
|
|
62
64
|
...inputProps
|
|
63
65
|
} = props;
|
|
64
66
|
|
|
@@ -121,6 +123,7 @@ const SimpleDropdownBase = (props: SimpleDropdownProps, ref) => {
|
|
|
121
123
|
resolveLabel,
|
|
122
124
|
resolveSecondaryLabel,
|
|
123
125
|
size,
|
|
126
|
+
isFluid: isMenuFluid,
|
|
124
127
|
}}
|
|
125
128
|
/>
|
|
126
129
|
);
|
|
@@ -68,7 +68,8 @@ const Row = _ref => {
|
|
|
68
68
|
"data-testid": "Grid",
|
|
69
69
|
className: (0, _classify.classify)(_GridModule.default.gridRow, className),
|
|
70
70
|
style: {
|
|
71
|
-
|
|
71
|
+
'--grid-repeat-count': gridRepeatCount,
|
|
72
|
+
'--repeat-tracks': repeatTracks
|
|
72
73
|
}
|
|
73
74
|
}, childrenWithProps);
|
|
74
75
|
};
|
|
@@ -83,8 +84,8 @@ const Col = _ref2 => {
|
|
|
83
84
|
return /*#__PURE__*/React.createElement("div", {
|
|
84
85
|
className: (0, _classify.classify)(_GridModule.default.gridColumn, className),
|
|
85
86
|
style: {
|
|
86
|
-
gridColumnStart,
|
|
87
|
-
gridColumnEnd
|
|
87
|
+
'--grid-column-start': gridColumnStart,
|
|
88
|
+
'--grid-column-end': gridColumnEnd
|
|
88
89
|
}
|
|
89
90
|
}, children);
|
|
90
91
|
};
|
|
@@ -74,7 +74,8 @@ export const Row = ({
|
|
|
74
74
|
data-testid="Grid"
|
|
75
75
|
className={classify(css.gridRow, className)}
|
|
76
76
|
style={{
|
|
77
|
-
|
|
77
|
+
'--grid-repeat-count': gridRepeatCount,
|
|
78
|
+
'--repeat-tracks': repeatTracks,
|
|
78
79
|
}}
|
|
79
80
|
>
|
|
80
81
|
{childrenWithProps}
|
|
@@ -99,7 +100,10 @@ export const Col = ({
|
|
|
99
100
|
}: ColProps): React.Node => (
|
|
100
101
|
<div
|
|
101
102
|
className={classify(css.gridColumn, className)}
|
|
102
|
-
style={{
|
|
103
|
+
style={{
|
|
104
|
+
'--grid-column-start': gridColumnStart,
|
|
105
|
+
'--grid-column-end': gridColumnEnd,
|
|
106
|
+
}}
|
|
103
107
|
>
|
|
104
108
|
{children}
|
|
105
109
|
</div>
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
) from '../../styles/variables/_size.css';
|
|
11
11
|
|
|
12
12
|
.gridRow {
|
|
13
|
+
--grid-repeat-count: 12;
|
|
14
|
+
--repeat-tracks: 1fr;
|
|
13
15
|
display: grid !important;
|
|
16
|
+
grid-template-columns: repeat(var(--grid-repeat-count), var(--repeat-tracks));
|
|
14
17
|
width: sizeFluid;
|
|
15
18
|
height: sizeFluid;
|
|
16
19
|
gap: spaceMedium;
|
|
@@ -24,6 +27,9 @@
|
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
.gridColumn {
|
|
30
|
+
--grid-column-start: auto;
|
|
31
|
+
--grid-column-end: span 1;
|
|
27
32
|
display: flex;
|
|
28
33
|
align-items: center;
|
|
34
|
+
grid-column: var(--grid-column-start) / var(--grid-column-end);
|
|
29
35
|
}
|
|
@@ -22,7 +22,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
22
22
|
|
|
23
23
|
//$FlowFixMe[untyped-import]
|
|
24
24
|
|
|
25
|
-
(
|
|
25
|
+
if (!!_highchartsMore.default && !!_highcharts.default && typeof _highchartsMore.default === 'function' && typeof _highcharts.default === 'object') {
|
|
26
|
+
(0, _highchartsMore.default)(_highcharts.default);
|
|
27
|
+
}
|
|
26
28
|
const SpiderChart = _ref => {
|
|
27
29
|
let {
|
|
28
30
|
classNames,
|
|
@@ -20,7 +20,14 @@ import {ChartWrapper} from '../ChartWrapper';
|
|
|
20
20
|
import css from './SpiderChart.module.css';
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
if (
|
|
24
|
+
!!highChartsMore &&
|
|
25
|
+
!!Highcharts &&
|
|
26
|
+
typeof highChartsMore === 'function' &&
|
|
27
|
+
typeof Highcharts === 'object'
|
|
28
|
+
) {
|
|
29
|
+
highChartsMore(Highcharts);
|
|
30
|
+
}
|
|
24
31
|
|
|
25
32
|
type ClassNames = $ReadOnly<{
|
|
26
33
|
...ChartWrapperClassNames,
|