@spaced-out/ui-design-system 0.1.94-beta.2 → 0.1.94-beta.4
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/.cspell/custom-words.txt +44 -41
- package/.github/workflows/publish_to_npm.yml +1 -1
- package/CHANGELOG.md +14 -0
- package/lib/components/Charts/ChartWrapper/ChartWrapper.js +3 -1
- package/lib/components/Charts/ChartWrapper/ChartWrapper.js.flow +9 -1
- package/lib/components/Charts/ChartWrapper/ChartWrapper.module.css +3 -0
- package/lib/types/charts.js.flow +54 -26
- package/package.json +1 -1
package/.cspell/custom-words.txt
CHANGED
|
@@ -1,24 +1,39 @@
|
|
|
1
|
+
Aaiun
|
|
1
2
|
Aditya
|
|
2
3
|
aditya-kaushal
|
|
3
4
|
amet
|
|
4
5
|
Anant
|
|
6
|
+
Aqtau
|
|
7
|
+
Aqtobe
|
|
8
|
+
Araguaina
|
|
5
9
|
argstable
|
|
6
10
|
Ashwini
|
|
7
11
|
ashwini-sensehq
|
|
8
12
|
atleast
|
|
9
13
|
autodocs
|
|
14
|
+
Branco
|
|
15
|
+
Choibalsan
|
|
16
|
+
Chuuk
|
|
10
17
|
circlehollow
|
|
11
18
|
CODEOWNERS
|
|
12
19
|
commitlint
|
|
13
20
|
contributorsrc
|
|
14
21
|
Crespo
|
|
22
|
+
Cuiaba
|
|
23
|
+
D'Urville
|
|
24
|
+
Danmarkshavn
|
|
15
25
|
datetime
|
|
16
26
|
DEFAULTTEXT
|
|
27
|
+
Dili
|
|
17
28
|
dismissable
|
|
18
29
|
drilldown
|
|
19
30
|
Drilldown
|
|
20
31
|
dropzone
|
|
32
|
+
Dumont
|
|
33
|
+
Efate
|
|
34
|
+
Enderbury
|
|
21
35
|
eqeqeq
|
|
36
|
+
Fakaofo
|
|
22
37
|
fbjs
|
|
23
38
|
Fennimore
|
|
24
39
|
flowtype
|
|
@@ -26,9 +41,21 @@ fontawesome
|
|
|
26
41
|
framename
|
|
27
42
|
Gaurav
|
|
28
43
|
highcharts
|
|
44
|
+
Hovd
|
|
29
45
|
innerref
|
|
30
46
|
interdimensional
|
|
47
|
+
Jangid
|
|
48
|
+
Kamchatskiy
|
|
49
|
+
Kiritimati
|
|
50
|
+
Kosrae
|
|
51
|
+
Kuala
|
|
31
52
|
Lipsey
|
|
53
|
+
Lumpur
|
|
54
|
+
Magadan
|
|
55
|
+
Mahe
|
|
56
|
+
Manaus
|
|
57
|
+
Minh
|
|
58
|
+
Moresby
|
|
32
59
|
msword
|
|
33
60
|
Neue
|
|
34
61
|
Nishant
|
|
@@ -37,10 +64,14 @@ nonbreaking
|
|
|
37
64
|
nonstrict
|
|
38
65
|
noopener
|
|
39
66
|
noreferrer
|
|
67
|
+
Noronha
|
|
40
68
|
nsfmc
|
|
41
69
|
OPACITYS
|
|
70
|
+
Pago
|
|
42
71
|
partialformat
|
|
72
|
+
Paulo
|
|
43
73
|
pocus
|
|
74
|
+
Pohnpei
|
|
44
75
|
premajor
|
|
45
76
|
preminor
|
|
46
77
|
prepatch
|
|
@@ -48,66 +79,38 @@ progressbar
|
|
|
48
79
|
proxysense
|
|
49
80
|
rerouter
|
|
50
81
|
rgba
|
|
82
|
+
Rica
|
|
83
|
+
Rothera
|
|
84
|
+
Sakhalin
|
|
51
85
|
sanskar
|
|
86
|
+
Santo
|
|
52
87
|
sbdocs
|
|
88
|
+
Scoresbysund
|
|
53
89
|
senseai
|
|
54
90
|
Stapleton
|
|
55
91
|
storysource
|
|
56
92
|
superrover
|
|
93
|
+
Syowa
|
|
57
94
|
systemjs
|
|
58
95
|
tablist
|
|
59
96
|
tabout
|
|
60
97
|
testid
|
|
61
98
|
tickmark
|
|
62
99
|
tnum
|
|
100
|
+
Tongatapu
|
|
63
101
|
transclude
|
|
64
102
|
Typeahead
|
|
65
103
|
typeof
|
|
104
|
+
Ulaanbaatar
|
|
105
|
+
Urville
|
|
106
|
+
useRowspanHeaders
|
|
66
107
|
valuenow
|
|
108
|
+
Velho
|
|
67
109
|
Verda
|
|
68
110
|
vish
|
|
69
111
|
VishalBarnawal
|
|
112
|
+
Vivek
|
|
70
113
|
xmark
|
|
71
114
|
yourcomponentname
|
|
115
|
+
Yuzhno
|
|
72
116
|
yxxx
|
|
73
|
-
Pago
|
|
74
|
-
Rica
|
|
75
|
-
Cuiaba
|
|
76
|
-
Branco
|
|
77
|
-
Manaus
|
|
78
|
-
Velho
|
|
79
|
-
Santo
|
|
80
|
-
Araguaina
|
|
81
|
-
Paulo
|
|
82
|
-
Rothera
|
|
83
|
-
Noronha
|
|
84
|
-
Scoresbysund
|
|
85
|
-
Aaiun
|
|
86
|
-
Danmarkshavn
|
|
87
|
-
Syowa
|
|
88
|
-
Mahe
|
|
89
|
-
Aqtau
|
|
90
|
-
Aqtobe
|
|
91
|
-
Hovd
|
|
92
|
-
Minh
|
|
93
|
-
Choibalsan
|
|
94
|
-
Kuala
|
|
95
|
-
Lumpur
|
|
96
|
-
Tongatapu
|
|
97
|
-
Kiritimati
|
|
98
|
-
Fakaofo
|
|
99
|
-
Enderbury
|
|
100
|
-
Kamchatskiy
|
|
101
|
-
Pohnpei
|
|
102
|
-
Kosrae
|
|
103
|
-
Efate
|
|
104
|
-
Moresby
|
|
105
|
-
Chuuk
|
|
106
|
-
Sakhalin
|
|
107
|
-
Ulaanbaatar
|
|
108
|
-
Dumont
|
|
109
|
-
Dili
|
|
110
|
-
Urville
|
|
111
|
-
D'Urville
|
|
112
|
-
Magadan
|
|
113
|
-
Yuzhno
|
|
@@ -22,7 +22,7 @@ jobs:
|
|
|
22
22
|
- name: Check Permissions
|
|
23
23
|
id: check-permissions
|
|
24
24
|
env:
|
|
25
|
-
ALLOWED_USERS: superrover, Anant-Raj, ashwini-sensehq, vish-sah, VishalBarnawal, sanskar-s
|
|
25
|
+
ALLOWED_USERS: superrover, Anant-Raj, ashwini-sensehq, vish-sah, VishalBarnawal, sanskar-s, VivekJangid
|
|
26
26
|
if: ${{ !contains(env.ALLOWED_USERS, github.actor) }}
|
|
27
27
|
run: |
|
|
28
28
|
echo "You don't have correct permissions to do this release"
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.94-beta.4](https://github.com/spaced-out/ui-design-system/compare/v0.1.94-beta.3...v0.1.94-beta.4) (2024-05-16)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **chart:** fixed the type for axis ([#205](https://github.com/spaced-out/ui-design-system/issues/205)) ([740994a](https://github.com/spaced-out/ui-design-system/commit/740994a42e6376c6a3781c807814b2ea4acf49dc))
|
|
11
|
+
|
|
12
|
+
### [0.1.94-beta.3](https://github.com/spaced-out/ui-design-system/compare/v0.1.94-beta.2...v0.1.94-beta.3) (2024-05-15)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* fixing import types ([#203](https://github.com/spaced-out/ui-design-system/issues/203)) ([b377482](https://github.com/spaced-out/ui-design-system/commit/b377482ec0d22c022812c57c92f5c96e45fdf2b2))
|
|
18
|
+
|
|
5
19
|
### [0.1.94-beta.2](https://github.com/spaced-out/ui-design-system/compare/v0.1.94-beta.1...v0.1.94-beta.2) (2024-05-14)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -109,7 +109,9 @@ const ChartWrapper = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
109
109
|
} = _ref2;
|
|
110
110
|
return /*#__PURE__*/React.createElement(_Card.Card, {
|
|
111
111
|
classNames: {
|
|
112
|
-
wrapper: (0, _classify.default)(_ChartWrapperModule.default.wrapper,
|
|
112
|
+
wrapper: (0, _classify.default)(_ChartWrapperModule.default.wrapper, {
|
|
113
|
+
[_ChartWrapperModule.default.justifyCenter]: isLoading
|
|
114
|
+
}, classNames?.wrapper)
|
|
113
115
|
}
|
|
114
116
|
}, isLoading ? /*#__PURE__*/React.createElement(_CircularLoader.CircularLoader, {
|
|
115
117
|
size: "large",
|
|
@@ -146,7 +146,15 @@ export const ChartWrapper: React$AbstractComponent<
|
|
|
146
146
|
}: ChartWrapperProps,
|
|
147
147
|
ref,
|
|
148
148
|
): React.Node => (
|
|
149
|
-
<Card
|
|
149
|
+
<Card
|
|
150
|
+
classNames={{
|
|
151
|
+
wrapper: classify(
|
|
152
|
+
css.wrapper,
|
|
153
|
+
{[css.justifyCenter]: isLoading},
|
|
154
|
+
classNames?.wrapper,
|
|
155
|
+
),
|
|
156
|
+
}}
|
|
157
|
+
>
|
|
150
158
|
{isLoading ? (
|
|
151
159
|
<CircularLoader
|
|
152
160
|
size="large"
|
package/lib/types/charts.js.flow
CHANGED
|
@@ -10,18 +10,39 @@ export type ChartOptions = {
|
|
|
10
10
|
...
|
|
11
11
|
},
|
|
12
12
|
title?: {
|
|
13
|
-
|
|
13
|
+
align?: string,
|
|
14
|
+
floating?: boolean,
|
|
15
|
+
margin?: number,
|
|
16
|
+
style?: {
|
|
17
|
+
color?: string,
|
|
18
|
+
fontWeight?: string,
|
|
19
|
+
},
|
|
20
|
+
text?: string | null,
|
|
21
|
+
useHTML?: boolean,
|
|
22
|
+
verticalAlign?: 'top' | 'middle' | 'bottom',
|
|
23
|
+
widthAdjust?: number,
|
|
24
|
+
x?: number,
|
|
25
|
+
y?: number,
|
|
14
26
|
},
|
|
15
27
|
exporting?: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
28
|
+
allowHTML?: boolean,
|
|
29
|
+
allowTableSorting?: boolean,
|
|
30
|
+
buttons?: {
|
|
31
|
+
contextButton?: {
|
|
32
|
+
enabled?: boolean,
|
|
19
33
|
},
|
|
20
34
|
},
|
|
35
|
+
enabled?: boolean,
|
|
36
|
+
filename?: string,
|
|
37
|
+
showExportInProgress?: boolean,
|
|
38
|
+
showTable?: boolean,
|
|
39
|
+
sourceHeight?: number,
|
|
40
|
+
sourceWidth?: number,
|
|
41
|
+
useRowspanHeaders?: boolean,
|
|
42
|
+
width?: number,
|
|
43
|
+
...
|
|
21
44
|
},
|
|
22
|
-
credits?:
|
|
23
|
-
enabled: boolean,
|
|
24
|
-
},
|
|
45
|
+
credits?: Credits,
|
|
25
46
|
tooltip?: Tooltip,
|
|
26
47
|
xAxis?: AxisOptions,
|
|
27
48
|
yAxis?: AxisOptions,
|
|
@@ -33,16 +54,17 @@ export type ChartOptions = {
|
|
|
33
54
|
subtitle?: {
|
|
34
55
|
useHTML: boolean,
|
|
35
56
|
text?: string,
|
|
36
|
-
verticalAlign
|
|
37
|
-
align
|
|
38
|
-
style
|
|
57
|
+
verticalAlign?: 'middle',
|
|
58
|
+
align?: string,
|
|
59
|
+
style?: CSSObject,
|
|
39
60
|
x?: number,
|
|
61
|
+
...
|
|
40
62
|
},
|
|
41
63
|
pane?: {
|
|
42
|
-
center
|
|
43
|
-
size
|
|
64
|
+
center?: [string, string],
|
|
65
|
+
size?: string,
|
|
66
|
+
...
|
|
44
67
|
},
|
|
45
|
-
credits?: Credits,
|
|
46
68
|
legend?: Legend,
|
|
47
69
|
...
|
|
48
70
|
};
|
|
@@ -56,12 +78,16 @@ export type AxisOptions = {
|
|
|
56
78
|
align?: string,
|
|
57
79
|
distance?: number,
|
|
58
80
|
style?: CSSObject,
|
|
81
|
+
...
|
|
59
82
|
},
|
|
60
83
|
title?: {
|
|
84
|
+
text?: string,
|
|
61
85
|
margin?: number,
|
|
62
|
-
style
|
|
86
|
+
style?: CSSObject,
|
|
87
|
+
...
|
|
63
88
|
},
|
|
64
89
|
type?: string,
|
|
90
|
+
...
|
|
65
91
|
};
|
|
66
92
|
|
|
67
93
|
export type BreadcrumbsOptions = {
|
|
@@ -107,9 +133,9 @@ export type CSSObject = {
|
|
|
107
133
|
};
|
|
108
134
|
|
|
109
135
|
export type DataOptionsType = {
|
|
110
|
-
y
|
|
111
|
-
name
|
|
112
|
-
color
|
|
136
|
+
y?: number,
|
|
137
|
+
name?: string,
|
|
138
|
+
color?: string,
|
|
113
139
|
drilldown?: string,
|
|
114
140
|
...
|
|
115
141
|
};
|
|
@@ -126,24 +152,25 @@ export type Drilldown = {
|
|
|
126
152
|
activeDataLabelStyle?: CSSObject,
|
|
127
153
|
series?: Array<SeriesOptionsType>,
|
|
128
154
|
breadcrumbs?: BreadcrumbsOptions,
|
|
155
|
+
...
|
|
129
156
|
};
|
|
130
157
|
|
|
131
158
|
export type PlotOptionsType = {
|
|
132
159
|
['pie' | 'line']: {
|
|
133
|
-
innerSize
|
|
134
|
-
allowPointSelect
|
|
135
|
-
cursor
|
|
136
|
-
dataLabels
|
|
160
|
+
innerSize?: string,
|
|
161
|
+
allowPointSelect?: boolean,
|
|
162
|
+
cursor?: 'pointer',
|
|
163
|
+
dataLabels?: {
|
|
137
164
|
enabled?: boolean,
|
|
138
165
|
distance?: number,
|
|
139
166
|
connectorColor?: string,
|
|
140
167
|
},
|
|
141
|
-
showInLegend
|
|
142
|
-
center
|
|
143
|
-
size
|
|
168
|
+
showInLegend?: boolean,
|
|
169
|
+
center?: [string, string],
|
|
170
|
+
size?: string,
|
|
144
171
|
minSize?: number | string,
|
|
145
|
-
borderWidth
|
|
146
|
-
borderRadius
|
|
172
|
+
borderWidth?: number,
|
|
173
|
+
borderRadius?: number,
|
|
147
174
|
...
|
|
148
175
|
},
|
|
149
176
|
};
|
|
@@ -194,4 +221,5 @@ export type Credits = {
|
|
|
194
221
|
x?: number,
|
|
195
222
|
y?: number,
|
|
196
223
|
},
|
|
224
|
+
...
|
|
197
225
|
};
|