@senvenli/react 0.2.0 → 0.3.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.
Files changed (42) hide show
  1. package/dist/charts/chart-parts.d.ts +21 -5
  2. package/dist/charts/chart-parts.js +31 -15
  3. package/dist/charts/chart-parts.js.map +1 -1
  4. package/dist/charts/core-charts.d.ts +2 -2
  5. package/dist/charts/core-charts.js +2 -2
  6. package/dist/charts/core-charts.js.map +1 -1
  7. package/dist/charts/list-charts.d.ts +4 -4
  8. package/dist/charts/list-charts.js +8 -8
  9. package/dist/charts/list-charts.js.map +1 -1
  10. package/dist/charts/more-charts.d.ts +9 -7
  11. package/dist/charts/more-charts.js +12 -12
  12. package/dist/charts/more-charts.js.map +1 -1
  13. package/dist/charts/report-charts.d.ts +2 -2
  14. package/dist/charts/report-charts.js +4 -4
  15. package/dist/charts/report-charts.js.map +1 -1
  16. package/dist/collection/table.js +4 -1
  17. package/dist/collection/table.js.map +1 -1
  18. package/dist/navigation/accordion.js +1 -1
  19. package/dist/navigation/accordion.js.map +1 -1
  20. package/dist/navigation/navbar.js +4 -2
  21. package/dist/navigation/navbar.js.map +1 -1
  22. package/dist/navigation/pagination.js +1 -1
  23. package/dist/navigation/pagination.js.map +1 -1
  24. package/dist/navigation/tabs.js +2 -2
  25. package/dist/navigation/tabs.js.map +1 -1
  26. package/manifests/area-chart.json +46 -1
  27. package/manifests/bar-chart.json +46 -0
  28. package/manifests/bar-list.json +6 -0
  29. package/manifests/calendar-heatmap.json +6 -0
  30. package/manifests/chart-parts.json +48 -1
  31. package/manifests/composed-chart.json +46 -1
  32. package/manifests/donut-chart.json +46 -1
  33. package/manifests/funnel-chart.json +6 -0
  34. package/manifests/gauge-chart.json +46 -1
  35. package/manifests/heatmap.json +6 -0
  36. package/manifests/line-chart.json +46 -1
  37. package/manifests/radar-chart.json +46 -1
  38. package/manifests/radial-chart.json +46 -1
  39. package/manifests/scatter-chart.json +46 -1
  40. package/manifests/sparkline.json +6 -1
  41. package/manifests/tracker.json +6 -0
  42. package/package.json +2 -2
@@ -94,6 +94,46 @@
94
94
  ],
95
95
  "props": {
96
96
  "DonutChart": [
97
+ {
98
+ "name": "tableView",
99
+ "type": "ChartTableView",
100
+ "required": false,
101
+ "origin": "own",
102
+ "description": "How the data is offered as a table. `swap` (default): a toggle at the end of the chart's top row turns the plot\ninto the table at the same height, scrolling inside, so the card never grows. `hidden`: no toggle; the table is\nthere for screen readers only. `none`: no table at all, for a chart that is already text (BarList).",
103
+ "schema": {
104
+ "type": "string",
105
+ "enum": [
106
+ "hidden",
107
+ "none",
108
+ "swap"
109
+ ]
110
+ }
111
+ },
112
+ {
113
+ "name": "isTableOpen",
114
+ "type": "boolean",
115
+ "required": false,
116
+ "origin": "own",
117
+ "description": "The table is showing (`swap`), controlled; or `defaultTableOpen` + `onTableOpenChange`.",
118
+ "schema": {
119
+ "type": "boolean"
120
+ }
121
+ },
122
+ {
123
+ "name": "defaultTableOpen",
124
+ "type": "boolean",
125
+ "required": false,
126
+ "origin": "own",
127
+ "schema": {
128
+ "type": "boolean"
129
+ }
130
+ },
131
+ {
132
+ "name": "onTableOpenChange",
133
+ "type": "(isOpen: boolean) => void",
134
+ "required": false,
135
+ "origin": "own"
136
+ },
97
137
  {
98
138
  "name": "title",
99
139
  "type": "string",
@@ -208,6 +248,8 @@
208
248
  "tokens": [
209
249
  "ds-background-neutral",
210
250
  "ds-background-neutral-pressed",
251
+ "ds-background-neutral-subtle-hovered",
252
+ "ds-background-selected",
211
253
  "ds-border",
212
254
  "ds-border-bold",
213
255
  "ds-border-focused",
@@ -217,7 +259,10 @@
217
259
  "ds-chart-4",
218
260
  "ds-chart-5",
219
261
  "ds-chart-neutral",
220
- "ds-link",
262
+ "ds-icon",
263
+ "ds-icon-brand",
264
+ "ds-icon-subtle",
265
+ "ds-radius-control-small",
221
266
  "ds-radius-medium",
222
267
  "ds-radius-small",
223
268
  "ds-radius-xsmall",
@@ -155,6 +155,8 @@
155
155
  "ds-background-brand-subtle",
156
156
  "ds-background-neutral",
157
157
  "ds-background-neutral-pressed",
158
+ "ds-background-neutral-subtle-hovered",
159
+ "ds-background-selected",
158
160
  "ds-background-selected-hovered",
159
161
  "ds-background-selected-pressed",
160
162
  "ds-border",
@@ -166,10 +168,14 @@
166
168
  "ds-chart-4",
167
169
  "ds-chart-5",
168
170
  "ds-chart-neutral",
171
+ "ds-icon",
172
+ "ds-icon-brand",
169
173
  "ds-icon-danger",
174
+ "ds-icon-subtle",
170
175
  "ds-icon-success",
171
176
  "ds-icon-warning",
172
177
  "ds-link",
178
+ "ds-radius-control-small",
173
179
  "ds-radius-medium",
174
180
  "ds-radius-small",
175
181
  "ds-radius-xsmall",
@@ -115,6 +115,46 @@
115
115
  "type": "string"
116
116
  }
117
117
  },
118
+ {
119
+ "name": "tableView",
120
+ "type": "ChartTableView",
121
+ "required": false,
122
+ "origin": "own",
123
+ "description": "How the data is offered as a table. `swap` (default): a toggle at the end of the chart's top row turns the plot\ninto the table at the same height, scrolling inside, so the card never grows. `hidden`: no toggle; the table is\nthere for screen readers only. `none`: no table at all, for a chart that is already text (BarList).",
124
+ "schema": {
125
+ "type": "string",
126
+ "enum": [
127
+ "hidden",
128
+ "none",
129
+ "swap"
130
+ ]
131
+ }
132
+ },
133
+ {
134
+ "name": "isTableOpen",
135
+ "type": "boolean",
136
+ "required": false,
137
+ "origin": "own",
138
+ "description": "The table is showing (`swap`), controlled; or `defaultTableOpen` + `onTableOpenChange`.",
139
+ "schema": {
140
+ "type": "boolean"
141
+ }
142
+ },
143
+ {
144
+ "name": "defaultTableOpen",
145
+ "type": "boolean",
146
+ "required": false,
147
+ "origin": "own",
148
+ "schema": {
149
+ "type": "boolean"
150
+ }
151
+ },
152
+ {
153
+ "name": "onTableOpenChange",
154
+ "type": "(isOpen: boolean) => void",
155
+ "required": false,
156
+ "origin": "own"
157
+ },
118
158
  {
119
159
  "name": "period",
120
160
  "type": "string",
@@ -196,6 +236,8 @@
196
236
  "tokens": [
197
237
  "ds-background-neutral",
198
238
  "ds-background-neutral-pressed",
239
+ "ds-background-neutral-subtle-hovered",
240
+ "ds-background-selected",
199
241
  "ds-border",
200
242
  "ds-border-bold",
201
243
  "ds-border-focused",
@@ -205,7 +247,10 @@
205
247
  "ds-chart-4",
206
248
  "ds-chart-5",
207
249
  "ds-chart-neutral",
208
- "ds-link",
250
+ "ds-icon",
251
+ "ds-icon-brand",
252
+ "ds-icon-subtle",
253
+ "ds-radius-control-small",
209
254
  "ds-radius-medium",
210
255
  "ds-radius-small",
211
256
  "ds-radius-xsmall",
@@ -192,6 +192,8 @@
192
192
  "ds-background-brand-subtle",
193
193
  "ds-background-neutral",
194
194
  "ds-background-neutral-pressed",
195
+ "ds-background-neutral-subtle-hovered",
196
+ "ds-background-selected",
195
197
  "ds-background-selected-hovered",
196
198
  "ds-background-selected-pressed",
197
199
  "ds-border",
@@ -203,10 +205,14 @@
203
205
  "ds-chart-4",
204
206
  "ds-chart-5",
205
207
  "ds-chart-neutral",
208
+ "ds-icon",
209
+ "ds-icon-brand",
206
210
  "ds-icon-danger",
211
+ "ds-icon-subtle",
207
212
  "ds-icon-success",
208
213
  "ds-icon-warning",
209
214
  "ds-link",
215
+ "ds-radius-control-small",
210
216
  "ds-radius-medium",
211
217
  "ds-radius-small",
212
218
  "ds-radius-xsmall",
@@ -106,6 +106,46 @@
106
106
  ],
107
107
  "props": {
108
108
  "LineChart": [
109
+ {
110
+ "name": "tableView",
111
+ "type": "ChartTableView",
112
+ "required": false,
113
+ "origin": "own",
114
+ "description": "How the data is offered as a table. `swap` (default): a toggle at the end of the chart's top row turns the plot\ninto the table at the same height, scrolling inside, so the card never grows. `hidden`: no toggle; the table is\nthere for screen readers only. `none`: no table at all, for a chart that is already text (BarList).",
115
+ "schema": {
116
+ "type": "string",
117
+ "enum": [
118
+ "hidden",
119
+ "none",
120
+ "swap"
121
+ ]
122
+ }
123
+ },
124
+ {
125
+ "name": "isTableOpen",
126
+ "type": "boolean",
127
+ "required": false,
128
+ "origin": "own",
129
+ "description": "The table is showing (`swap`), controlled; or `defaultTableOpen` + `onTableOpenChange`.",
130
+ "schema": {
131
+ "type": "boolean"
132
+ }
133
+ },
134
+ {
135
+ "name": "defaultTableOpen",
136
+ "type": "boolean",
137
+ "required": false,
138
+ "origin": "own",
139
+ "schema": {
140
+ "type": "boolean"
141
+ }
142
+ },
143
+ {
144
+ "name": "onTableOpenChange",
145
+ "type": "(isOpen: boolean) => void",
146
+ "required": false,
147
+ "origin": "own"
148
+ },
109
149
  {
110
150
  "name": "title",
111
151
  "type": "string",
@@ -293,6 +333,8 @@
293
333
  },
294
334
  "tokens": [
295
335
  "ds-background-neutral",
336
+ "ds-background-neutral-subtle-hovered",
337
+ "ds-background-selected",
296
338
  "ds-border",
297
339
  "ds-border-bold",
298
340
  "ds-border-focused",
@@ -302,7 +344,10 @@
302
344
  "ds-chart-4",
303
345
  "ds-chart-5",
304
346
  "ds-chart-neutral",
305
- "ds-link",
347
+ "ds-icon",
348
+ "ds-icon-brand",
349
+ "ds-icon-subtle",
350
+ "ds-radius-control-small",
306
351
  "ds-radius-medium",
307
352
  "ds-radius-small",
308
353
  "ds-radius-xsmall",
@@ -46,6 +46,46 @@
46
46
  ],
47
47
  "props": {
48
48
  "RadarChart": [
49
+ {
50
+ "name": "tableView",
51
+ "type": "ChartTableView",
52
+ "required": false,
53
+ "origin": "own",
54
+ "description": "How the data is offered as a table. `swap` (default): a toggle at the end of the chart's top row turns the plot\ninto the table at the same height, scrolling inside, so the card never grows. `hidden`: no toggle; the table is\nthere for screen readers only. `none`: no table at all, for a chart that is already text (BarList).",
55
+ "schema": {
56
+ "type": "string",
57
+ "enum": [
58
+ "hidden",
59
+ "none",
60
+ "swap"
61
+ ]
62
+ }
63
+ },
64
+ {
65
+ "name": "isTableOpen",
66
+ "type": "boolean",
67
+ "required": false,
68
+ "origin": "own",
69
+ "description": "The table is showing (`swap`), controlled; or `defaultTableOpen` + `onTableOpenChange`.",
70
+ "schema": {
71
+ "type": "boolean"
72
+ }
73
+ },
74
+ {
75
+ "name": "defaultTableOpen",
76
+ "type": "boolean",
77
+ "required": false,
78
+ "origin": "own",
79
+ "schema": {
80
+ "type": "boolean"
81
+ }
82
+ },
83
+ {
84
+ "name": "onTableOpenChange",
85
+ "type": "(isOpen: boolean) => void",
86
+ "required": false,
87
+ "origin": "own"
88
+ },
49
89
  {
50
90
  "name": "title",
51
91
  "type": "string",
@@ -173,6 +213,8 @@
173
213
  "tokens": [
174
214
  "ds-background-neutral",
175
215
  "ds-background-neutral-pressed",
216
+ "ds-background-neutral-subtle-hovered",
217
+ "ds-background-selected",
176
218
  "ds-border",
177
219
  "ds-border-bold",
178
220
  "ds-border-focused",
@@ -182,7 +224,10 @@
182
224
  "ds-chart-4",
183
225
  "ds-chart-5",
184
226
  "ds-chart-neutral",
185
- "ds-link",
227
+ "ds-icon",
228
+ "ds-icon-brand",
229
+ "ds-icon-subtle",
230
+ "ds-radius-control-small",
186
231
  "ds-radius-medium",
187
232
  "ds-radius-small",
188
233
  "ds-radius-xsmall",
@@ -46,6 +46,46 @@
46
46
  ],
47
47
  "props": {
48
48
  "RadialChart": [
49
+ {
50
+ "name": "tableView",
51
+ "type": "ChartTableView",
52
+ "required": false,
53
+ "origin": "own",
54
+ "description": "How the data is offered as a table. `swap` (default): a toggle at the end of the chart's top row turns the plot\ninto the table at the same height, scrolling inside, so the card never grows. `hidden`: no toggle; the table is\nthere for screen readers only. `none`: no table at all, for a chart that is already text (BarList).",
55
+ "schema": {
56
+ "type": "string",
57
+ "enum": [
58
+ "hidden",
59
+ "none",
60
+ "swap"
61
+ ]
62
+ }
63
+ },
64
+ {
65
+ "name": "isTableOpen",
66
+ "type": "boolean",
67
+ "required": false,
68
+ "origin": "own",
69
+ "description": "The table is showing (`swap`), controlled; or `defaultTableOpen` + `onTableOpenChange`.",
70
+ "schema": {
71
+ "type": "boolean"
72
+ }
73
+ },
74
+ {
75
+ "name": "defaultTableOpen",
76
+ "type": "boolean",
77
+ "required": false,
78
+ "origin": "own",
79
+ "schema": {
80
+ "type": "boolean"
81
+ }
82
+ },
83
+ {
84
+ "name": "onTableOpenChange",
85
+ "type": "(isOpen: boolean) => void",
86
+ "required": false,
87
+ "origin": "own"
88
+ },
49
89
  {
50
90
  "name": "title",
51
91
  "type": "string",
@@ -139,6 +179,8 @@
139
179
  "tokens": [
140
180
  "ds-background-neutral",
141
181
  "ds-background-neutral-pressed",
182
+ "ds-background-neutral-subtle-hovered",
183
+ "ds-background-selected",
142
184
  "ds-border",
143
185
  "ds-border-bold",
144
186
  "ds-border-focused",
@@ -148,7 +190,10 @@
148
190
  "ds-chart-4",
149
191
  "ds-chart-5",
150
192
  "ds-chart-neutral",
151
- "ds-link",
193
+ "ds-icon",
194
+ "ds-icon-brand",
195
+ "ds-icon-subtle",
196
+ "ds-radius-control-small",
152
197
  "ds-radius-medium",
153
198
  "ds-radius-small",
154
199
  "ds-radius-xsmall",
@@ -55,6 +55,46 @@
55
55
  ],
56
56
  "props": {
57
57
  "ScatterChart": [
58
+ {
59
+ "name": "tableView",
60
+ "type": "ChartTableView",
61
+ "required": false,
62
+ "origin": "own",
63
+ "description": "How the data is offered as a table. `swap` (default): a toggle at the end of the chart's top row turns the plot\ninto the table at the same height, scrolling inside, so the card never grows. `hidden`: no toggle; the table is\nthere for screen readers only. `none`: no table at all, for a chart that is already text (BarList).",
64
+ "schema": {
65
+ "type": "string",
66
+ "enum": [
67
+ "hidden",
68
+ "none",
69
+ "swap"
70
+ ]
71
+ }
72
+ },
73
+ {
74
+ "name": "isTableOpen",
75
+ "type": "boolean",
76
+ "required": false,
77
+ "origin": "own",
78
+ "description": "The table is showing (`swap`), controlled; or `defaultTableOpen` + `onTableOpenChange`.",
79
+ "schema": {
80
+ "type": "boolean"
81
+ }
82
+ },
83
+ {
84
+ "name": "defaultTableOpen",
85
+ "type": "boolean",
86
+ "required": false,
87
+ "origin": "own",
88
+ "schema": {
89
+ "type": "boolean"
90
+ }
91
+ },
92
+ {
93
+ "name": "onTableOpenChange",
94
+ "type": "(isOpen: boolean) => void",
95
+ "required": false,
96
+ "origin": "own"
97
+ },
58
98
  {
59
99
  "name": "title",
60
100
  "type": "string",
@@ -221,6 +261,8 @@
221
261
  "tokens": [
222
262
  "ds-background-neutral",
223
263
  "ds-background-neutral-pressed",
264
+ "ds-background-neutral-subtle-hovered",
265
+ "ds-background-selected",
224
266
  "ds-border",
225
267
  "ds-border-bold",
226
268
  "ds-border-focused",
@@ -230,7 +272,10 @@
230
272
  "ds-chart-4",
231
273
  "ds-chart-5",
232
274
  "ds-chart-neutral",
233
- "ds-link",
275
+ "ds-icon",
276
+ "ds-icon-brand",
277
+ "ds-icon-subtle",
278
+ "ds-radius-control-small",
234
279
  "ds-radius-medium",
235
280
  "ds-radius-small",
236
281
  "ds-radius-xsmall",
@@ -152,6 +152,8 @@
152
152
  "tokens": [
153
153
  "ds-background-neutral",
154
154
  "ds-background-neutral-pressed",
155
+ "ds-background-neutral-subtle-hovered",
156
+ "ds-background-selected",
155
157
  "ds-border",
156
158
  "ds-border-bold",
157
159
  "ds-border-focused",
@@ -161,7 +163,10 @@
161
163
  "ds-chart-4",
162
164
  "ds-chart-5",
163
165
  "ds-chart-neutral",
164
- "ds-link",
166
+ "ds-icon",
167
+ "ds-icon-brand",
168
+ "ds-icon-subtle",
169
+ "ds-radius-control-small",
165
170
  "ds-radius-medium",
166
171
  "ds-radius-small",
167
172
  "ds-radius-xsmall",
@@ -124,6 +124,8 @@
124
124
  "ds-background-brand-subtle",
125
125
  "ds-background-neutral",
126
126
  "ds-background-neutral-pressed",
127
+ "ds-background-neutral-subtle-hovered",
128
+ "ds-background-selected",
127
129
  "ds-background-selected-hovered",
128
130
  "ds-background-selected-pressed",
129
131
  "ds-border",
@@ -135,10 +137,14 @@
135
137
  "ds-chart-4",
136
138
  "ds-chart-5",
137
139
  "ds-chart-neutral",
140
+ "ds-icon",
141
+ "ds-icon-brand",
138
142
  "ds-icon-danger",
143
+ "ds-icon-subtle",
139
144
  "ds-icon-success",
140
145
  "ds-icon-warning",
141
146
  "ds-link",
147
+ "ds-radius-control-small",
142
148
  "ds-radius-medium",
143
149
  "ds-radius-small",
144
150
  "ds-radius-xsmall",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@senvenli/react",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Senvenli UI web components (React Aria Components + Tailwind v4).",
5
5
  "license": "MIT",
6
6
  "author": "Senvenli",
@@ -94,7 +94,7 @@
94
94
  "clsx": "^2.1.1",
95
95
  "recharts": "^3.11.0",
96
96
  "tailwind-merge": "^3.5.0",
97
- "@senvenli/tokens": "^0.2.0"
97
+ "@senvenli/tokens": "^0.3.0"
98
98
  },
99
99
  "peerDependencies": {
100
100
  "lucide-react": "^1.34.0",