@spark-ui/badge 2.0.9 → 2.0.10
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 +4 -0
- package/dist/public/docgen.json +292 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [2.0.10](https://github.com/adevinta/spark/compare/@spark-ui/badge@2.0.9...@spark-ui/badge@2.0.10) (2023-09-04)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @spark-ui/badge
|
9
|
+
|
6
10
|
## [2.0.9](https://github.com/adevinta/spark/compare/@spark-ui/badge@2.0.8...@spark-ui/badge@2.0.9) (2023-08-31)
|
7
11
|
|
8
12
|
**Note:** Version bump only for package @spark-ui/badge
|
@@ -0,0 +1,292 @@
|
|
1
|
+
{
|
2
|
+
"Badge": {
|
3
|
+
"tags": {},
|
4
|
+
"description": "",
|
5
|
+
"displayName": "Badge",
|
6
|
+
"methods": [],
|
7
|
+
"props": {
|
8
|
+
"aria-label": {
|
9
|
+
"defaultValue": null,
|
10
|
+
"description": "A custom label for accessibility purposes. It can also be defined as a builder function\nto handle dynamic inner data to create a custom label.",
|
11
|
+
"name": "aria-label",
|
12
|
+
"parent": {
|
13
|
+
"fileName": "badge/src/BadgeItem.tsx",
|
14
|
+
"name": "BadgeItemProps"
|
15
|
+
},
|
16
|
+
"declarations": [
|
17
|
+
{
|
18
|
+
"fileName": "badge/src/BadgeItem.tsx",
|
19
|
+
"name": "BadgeItemProps"
|
20
|
+
}
|
21
|
+
],
|
22
|
+
"required": false,
|
23
|
+
"type": {
|
24
|
+
"name": "string | (({ count, overflowCount }: { count?: number; overflowCount?: number; }) => string)"
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"intent": {
|
28
|
+
"defaultValue": null,
|
29
|
+
"description": "",
|
30
|
+
"name": "intent",
|
31
|
+
"declarations": [],
|
32
|
+
"required": false,
|
33
|
+
"type": {
|
34
|
+
"name": "enum",
|
35
|
+
"raw": "\"main\" | \"support\" | \"accent\" | \"success\" | \"alert\" | \"danger\" | \"info\" | \"neutral\" | \"surface\" | \"basic\"",
|
36
|
+
"value": [
|
37
|
+
{
|
38
|
+
"value": "\"main\""
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"value": "\"support\""
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"value": "\"accent\""
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"value": "\"success\""
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"value": "\"alert\""
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"value": "\"danger\""
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"value": "\"info\""
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"value": "\"neutral\""
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"value": "\"surface\""
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"value": "\"basic\""
|
66
|
+
}
|
67
|
+
]
|
68
|
+
}
|
69
|
+
},
|
70
|
+
"size": {
|
71
|
+
"defaultValue": null,
|
72
|
+
"description": "",
|
73
|
+
"name": "size",
|
74
|
+
"declarations": [],
|
75
|
+
"required": false,
|
76
|
+
"type": {
|
77
|
+
"name": "enum",
|
78
|
+
"raw": "\"sm\" | \"md\"",
|
79
|
+
"value": [
|
80
|
+
{
|
81
|
+
"value": "\"sm\""
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"value": "\"md\""
|
85
|
+
}
|
86
|
+
]
|
87
|
+
}
|
88
|
+
},
|
89
|
+
"count": {
|
90
|
+
"defaultValue": null,
|
91
|
+
"description": "Numeric value used as indicator inside the component.",
|
92
|
+
"name": "count",
|
93
|
+
"parent": {
|
94
|
+
"fileName": "badge/src/BadgeItem.tsx",
|
95
|
+
"name": "BadgeItemProps"
|
96
|
+
},
|
97
|
+
"declarations": [
|
98
|
+
{
|
99
|
+
"fileName": "badge/src/BadgeItem.tsx",
|
100
|
+
"name": "BadgeItemProps"
|
101
|
+
}
|
102
|
+
],
|
103
|
+
"required": false,
|
104
|
+
"type": {
|
105
|
+
"name": "number"
|
106
|
+
}
|
107
|
+
},
|
108
|
+
"overflowCount": {
|
109
|
+
"defaultValue": null,
|
110
|
+
"description": "Maximum numeric value to be dispayed as a count value.",
|
111
|
+
"name": "overflowCount",
|
112
|
+
"parent": {
|
113
|
+
"fileName": "badge/src/BadgeItem.tsx",
|
114
|
+
"name": "BadgeItemProps"
|
115
|
+
},
|
116
|
+
"declarations": [
|
117
|
+
{
|
118
|
+
"fileName": "badge/src/BadgeItem.tsx",
|
119
|
+
"name": "BadgeItemProps"
|
120
|
+
}
|
121
|
+
],
|
122
|
+
"required": false,
|
123
|
+
"type": {
|
124
|
+
"name": "number"
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
},
|
129
|
+
"BadgeItem": {
|
130
|
+
"tags": {},
|
131
|
+
"description": "",
|
132
|
+
"displayName": "BadgeItem",
|
133
|
+
"methods": [],
|
134
|
+
"props": {
|
135
|
+
"count": {
|
136
|
+
"defaultValue": null,
|
137
|
+
"description": "Numeric value used as indicator inside the component.",
|
138
|
+
"name": "count",
|
139
|
+
"parent": {
|
140
|
+
"fileName": "badge/src/BadgeItem.tsx",
|
141
|
+
"name": "BadgeItemProps"
|
142
|
+
},
|
143
|
+
"declarations": [
|
144
|
+
{
|
145
|
+
"fileName": "badge/src/BadgeItem.tsx",
|
146
|
+
"name": "BadgeItemProps"
|
147
|
+
}
|
148
|
+
],
|
149
|
+
"required": false,
|
150
|
+
"type": {
|
151
|
+
"name": "number"
|
152
|
+
}
|
153
|
+
},
|
154
|
+
"overflowCount": {
|
155
|
+
"defaultValue": {
|
156
|
+
"value": "99"
|
157
|
+
},
|
158
|
+
"description": "Maximum numeric value to be dispayed as a count value.",
|
159
|
+
"name": "overflowCount",
|
160
|
+
"parent": {
|
161
|
+
"fileName": "badge/src/BadgeItem.tsx",
|
162
|
+
"name": "BadgeItemProps"
|
163
|
+
},
|
164
|
+
"declarations": [
|
165
|
+
{
|
166
|
+
"fileName": "badge/src/BadgeItem.tsx",
|
167
|
+
"name": "BadgeItemProps"
|
168
|
+
}
|
169
|
+
],
|
170
|
+
"required": false,
|
171
|
+
"type": {
|
172
|
+
"name": "number"
|
173
|
+
}
|
174
|
+
},
|
175
|
+
"aria-label": {
|
176
|
+
"defaultValue": null,
|
177
|
+
"description": "A custom label for accessibility purposes. It can also be defined as a builder function\nto handle dynamic inner data to create a custom label.",
|
178
|
+
"name": "aria-label",
|
179
|
+
"parent": {
|
180
|
+
"fileName": "badge/src/BadgeItem.tsx",
|
181
|
+
"name": "BadgeItemProps"
|
182
|
+
},
|
183
|
+
"declarations": [
|
184
|
+
{
|
185
|
+
"fileName": "badge/src/BadgeItem.tsx",
|
186
|
+
"name": "BadgeItemProps"
|
187
|
+
}
|
188
|
+
],
|
189
|
+
"required": false,
|
190
|
+
"type": {
|
191
|
+
"name": "string | (({ count, overflowCount }: { count?: number; overflowCount?: number; }) => string)"
|
192
|
+
}
|
193
|
+
},
|
194
|
+
"type": {
|
195
|
+
"defaultValue": {
|
196
|
+
"value": "relative"
|
197
|
+
},
|
198
|
+
"description": "Describes the way the component is displayed: relative to another element or just standalone.",
|
199
|
+
"name": "type",
|
200
|
+
"parent": {
|
201
|
+
"fileName": "badge/src/BadgeItem.tsx",
|
202
|
+
"name": "BadgeItemProps"
|
203
|
+
},
|
204
|
+
"declarations": [
|
205
|
+
{
|
206
|
+
"fileName": "badge/src/BadgeItem.tsx",
|
207
|
+
"name": "BadgeItemProps"
|
208
|
+
}
|
209
|
+
],
|
210
|
+
"required": false,
|
211
|
+
"type": {
|
212
|
+
"name": "enum",
|
213
|
+
"raw": "\"relative\" | \"standalone\"",
|
214
|
+
"value": [
|
215
|
+
{
|
216
|
+
"value": "\"relative\""
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"value": "\"standalone\""
|
220
|
+
}
|
221
|
+
]
|
222
|
+
}
|
223
|
+
},
|
224
|
+
"intent": {
|
225
|
+
"defaultValue": {
|
226
|
+
"value": "danger"
|
227
|
+
},
|
228
|
+
"description": "",
|
229
|
+
"name": "intent",
|
230
|
+
"declarations": [],
|
231
|
+
"required": false,
|
232
|
+
"type": {
|
233
|
+
"name": "enum",
|
234
|
+
"raw": "\"main\" | \"support\" | \"accent\" | \"success\" | \"alert\" | \"danger\" | \"info\" | \"neutral\" | \"surface\" | \"basic\"",
|
235
|
+
"value": [
|
236
|
+
{
|
237
|
+
"value": "\"main\""
|
238
|
+
},
|
239
|
+
{
|
240
|
+
"value": "\"support\""
|
241
|
+
},
|
242
|
+
{
|
243
|
+
"value": "\"accent\""
|
244
|
+
},
|
245
|
+
{
|
246
|
+
"value": "\"success\""
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"value": "\"alert\""
|
250
|
+
},
|
251
|
+
{
|
252
|
+
"value": "\"danger\""
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"value": "\"info\""
|
256
|
+
},
|
257
|
+
{
|
258
|
+
"value": "\"neutral\""
|
259
|
+
},
|
260
|
+
{
|
261
|
+
"value": "\"surface\""
|
262
|
+
},
|
263
|
+
{
|
264
|
+
"value": "\"basic\""
|
265
|
+
}
|
266
|
+
]
|
267
|
+
}
|
268
|
+
},
|
269
|
+
"size": {
|
270
|
+
"defaultValue": {
|
271
|
+
"value": "md"
|
272
|
+
},
|
273
|
+
"description": "",
|
274
|
+
"name": "size",
|
275
|
+
"declarations": [],
|
276
|
+
"required": false,
|
277
|
+
"type": {
|
278
|
+
"name": "enum",
|
279
|
+
"raw": "\"sm\" | \"md\"",
|
280
|
+
"value": [
|
281
|
+
{
|
282
|
+
"value": "\"sm\""
|
283
|
+
},
|
284
|
+
{
|
285
|
+
"value": "\"md\""
|
286
|
+
}
|
287
|
+
]
|
288
|
+
}
|
289
|
+
}
|
290
|
+
}
|
291
|
+
}
|
292
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@spark-ui/badge",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.10",
|
4
4
|
"description": "Badge component is a visual indicator for numeric values such as tallies and scores.",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -32,7 +32,7 @@
|
|
32
32
|
"class-variance-authority": "0.7.0"
|
33
33
|
},
|
34
34
|
"peerDependencies": {
|
35
|
-
"@spark-ui/theme-utils": "^
|
35
|
+
"@spark-ui/theme-utils": "^4.0.0",
|
36
36
|
"react": "^16.8 || ^17.0 || ^18.0",
|
37
37
|
"react-dom": "^16.8 || ^17.0 || ^18.0",
|
38
38
|
"tailwindcss": "^3.0.0"
|
@@ -42,5 +42,5 @@
|
|
42
42
|
},
|
43
43
|
"homepage": "https://sparkui.vercel.app",
|
44
44
|
"license": "MIT",
|
45
|
-
"gitHead": "
|
45
|
+
"gitHead": "e98a5abd16667218cead4b366bb0e69435d7f8ed"
|
46
46
|
}
|