@rfdtech/components 1.4.0 → 1.5.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/README.md +174 -172
- package/dist/components/app-switcher/AppSwitcher.d.ts +1 -1
- package/dist/components/app-switcher/AppSwitcher.d.ts.map +1 -1
- package/dist/components/app-switcher/index.d.ts +1 -5
- package/dist/components/app-switcher/index.d.ts.map +1 -1
- package/dist/components/bulk-import-modal/BulkImportModal.d.ts.map +1 -1
- package/dist/components/bulk-import-modal/hooks/useBulkImportFlow.d.ts.map +1 -1
- package/dist/components/bulk-import-modal/internal/FieldMappingSelect.d.ts +0 -1
- package/dist/components/bulk-import-modal/internal/FieldMappingSelect.d.ts.map +1 -1
- package/dist/components/bulk-import-modal/steps/ValidateDataStep.d.ts +2 -1
- package/dist/components/bulk-import-modal/steps/ValidateDataStep.d.ts.map +1 -1
- package/dist/components/button/Button.d.ts +4 -0
- package/dist/components/button/Button.d.ts.map +1 -0
- package/dist/components/button/Button.test.d.ts +2 -0
- package/dist/components/button/Button.test.d.ts.map +1 -0
- package/dist/components/button/Spinner.d.ts +8 -0
- package/dist/components/button/Spinner.d.ts.map +1 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +4 -0
- package/dist/components/checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/Checkbox.test.d.ts +2 -0
- package/dist/components/checkbox/Checkbox.test.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/dropdown/Dropdown.d.ts +4 -0
- package/dist/components/dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/dropdown/Dropdown.test.d.ts +2 -0
- package/dist/components/dropdown/Dropdown.test.d.ts.map +1 -0
- package/dist/components/dropdown/index.d.ts +3 -0
- package/dist/components/dropdown/index.d.ts.map +1 -0
- package/dist/components/popover/Popover.d.ts +10 -0
- package/dist/components/popover/Popover.d.ts.map +1 -0
- package/dist/components/popover/Popover.test.d.ts +2 -0
- package/dist/components/popover/Popover.test.d.ts.map +1 -0
- package/dist/components/popover/index.d.ts +3 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/radio-group/Radio.d.ts +3 -0
- package/dist/components/radio-group/Radio.d.ts.map +1 -0
- package/dist/components/radio-group/RadioGroup.d.ts +4 -0
- package/dist/components/radio-group/RadioGroup.d.ts.map +1 -0
- package/dist/components/radio-group/RadioGroup.test.d.ts +2 -0
- package/dist/components/radio-group/RadioGroup.test.d.ts.map +1 -0
- package/dist/components/radio-group/RadioGroupContext.d.ts +12 -0
- package/dist/components/radio-group/RadioGroupContext.d.ts.map +1 -0
- package/dist/components/radio-group/index.d.ts +4 -0
- package/dist/components/radio-group/index.d.ts.map +1 -0
- package/dist/components/tabs/Tabs.d.ts +7 -0
- package/dist/components/tabs/Tabs.d.ts.map +1 -0
- package/dist/components/tabs/Tabs.test.d.ts +2 -0
- package/dist/components/tabs/Tabs.test.d.ts.map +1 -0
- package/dist/components/tabs/TabsContext.d.ts +12 -0
- package/dist/components/tabs/TabsContext.d.ts.map +1 -0
- package/dist/components/tabs/hooks/useTabsLineIndicator.d.ts +8 -0
- package/dist/components/tabs/hooks/useTabsLineIndicator.d.ts.map +1 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/index.cjs +79 -29
- package/dist/index.css +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6488 -5969
- package/dist/types/app-switcher.d.ts +7 -46
- package/dist/types/app-switcher.d.ts.map +1 -1
- package/dist/types/bulk-import-modal.d.ts +1 -0
- package/dist/types/bulk-import-modal.d.ts.map +1 -1
- package/dist/types/button.d.ts +17 -0
- package/dist/types/button.d.ts.map +1 -0
- package/dist/types/checkbox.d.ts +23 -0
- package/dist/types/checkbox.d.ts.map +1 -0
- package/dist/types/dropdown.d.ts +24 -0
- package/dist/types/dropdown.d.ts.map +1 -0
- package/dist/types/popover.d.ts +8 -0
- package/dist/types/popover.d.ts.map +1 -0
- package/dist/types/radio-group.d.ts +37 -0
- package/dist/types/radio-group.d.ts.map +1 -0
- package/dist/types/tabs.d.ts +35 -0
- package/dist/types/tabs.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/package.json +4 -1
- package/dist/components/app-switcher/api/fetchMeApps.d.ts +0 -6
- package/dist/components/app-switcher/api/fetchMeApps.d.ts.map +0 -1
- package/dist/components/app-switcher/api/fetchMeApps.test.d.ts +0 -2
- package/dist/components/app-switcher/api/fetchMeApps.test.d.ts.map +0 -1
- package/dist/components/app-switcher/api/mapMeAppToAppItem.d.ts +0 -4
- package/dist/components/app-switcher/api/mapMeAppToAppItem.d.ts.map +0 -1
- package/dist/components/app-switcher/api/mapMeAppToAppItem.test.d.ts +0 -2
- package/dist/components/app-switcher/api/mapMeAppToAppItem.test.d.ts.map +0 -1
- package/dist/components/app-switcher/api/meAppsClient.d.ts +0 -3
- package/dist/components/app-switcher/api/meAppsClient.d.ts.map +0 -1
- package/dist/components/app-switcher/api/meAppsClient.test.d.ts +0 -2
- package/dist/components/app-switcher/api/meAppsClient.test.d.ts.map +0 -1
- package/dist/components/app-switcher/hooks/useMeApps.d.ts +0 -3
- package/dist/components/app-switcher/hooks/useMeApps.d.ts.map +0 -1
- package/dist/components/app-switcher/hooks/useMeApps.test.d.ts +0 -2
- package/dist/components/app-switcher/hooks/useMeApps.test.d.ts.map +0 -1
- package/dist/test/fixtures.d.ts +0 -4
- package/dist/test/fixtures.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -65,194 +65,32 @@ npm install @rfdtech/components
|
|
|
65
65
|
|
|
66
66
|
Requires React 18+. npm 7+ auto-installs `react` and `react-dom` as peer dependencies. Radix UI and other runtime packages are included as dependencies of `@rfdtech/components`.
|
|
67
67
|
|
|
68
|
-
## AppSwitcher
|
|
69
68
|
|
|
70
|
-
|
|
69
|
+
## AppSwitcher
|
|
71
70
|
|
|
72
|
-
|
|
71
|
+
Google Apps–style 9-dot launcher for switching between GSL systems. Drop it into your header to let users jump between products. Pass `apps` directly from your own data layer; use `loading` while data is being fetched.
|
|
73
72
|
|
|
74
|
-
|
|
73
|
+
See the [AppSwitcher](/docs/app-switcher) docs page for props and exported types.
|
|
75
74
|
|
|
76
75
|
```tsx
|
|
77
|
-
import { AppSwitcher } from "@rfdtech/components";
|
|
76
|
+
import { AppSwitcher, type AppItem } from "@rfdtech/components";
|
|
78
77
|
|
|
79
|
-
function Header({
|
|
78
|
+
function Header({ apps, loading }: { apps: AppItem[]; loading: boolean }) {
|
|
80
79
|
return (
|
|
81
80
|
<AppSwitcher
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
apps={apps}
|
|
82
|
+
loading={loading}
|
|
84
83
|
title="System directory"
|
|
85
|
-
onAppSelect={(app) => console.log(app.name
|
|
84
|
+
onAppSelect={(app) => console.log(app.name)}
|
|
86
85
|
/>
|
|
87
86
|
);
|
|
88
87
|
}
|
|
89
88
|
```
|
|
90
89
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
```json
|
|
94
|
-
{
|
|
95
|
-
"success": true,
|
|
96
|
-
"message": "Available systems retrieved.",
|
|
97
|
-
"data": {
|
|
98
|
-
"apps": [
|
|
99
|
-
{
|
|
100
|
-
"system_id": "gov-portal",
|
|
101
|
-
"system_name": "Governance Portal",
|
|
102
|
-
"system_code": "GOV-123456",
|
|
103
|
-
"frontend_url": "http://178.105.154.224:3001",
|
|
104
|
-
"role": "registrar",
|
|
105
|
-
"permissions": ["cases:review"]
|
|
106
|
-
}
|
|
107
|
-
]
|
|
108
|
-
},
|
|
109
|
-
"meta": { "count": 1 }
|
|
110
|
-
}
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
**Static apps** — pass a list directly instead of fetching:
|
|
114
|
-
|
|
115
|
-
```tsx
|
|
116
|
-
const apps = [
|
|
117
|
-
{
|
|
118
|
-
id: "mail",
|
|
119
|
-
name: "Mail",
|
|
120
|
-
icon: "https://example.com/mail.png",
|
|
121
|
-
href: "https://mail.example.com",
|
|
122
|
-
},
|
|
123
|
-
];
|
|
124
|
-
|
|
125
|
-
<AppSwitcher apps={apps} title="System directory" />
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
### Props
|
|
129
|
-
|
|
130
|
-
| Prop | Type | Default | Description |
|
|
131
|
-
|------|------|---------|-------------|
|
|
132
|
-
| `apps` | `AppItem[]` | — | Static apps to show in the grid |
|
|
133
|
-
| `baseUrl` | `string` | required* | API base URL, e.g. `https://api.example.com` |
|
|
134
|
-
| `accessToken` | `string` | required* | Bearer access token |
|
|
135
|
-
| `columns` | `number` | `3` | Number of grid columns |
|
|
136
|
-
| `open` | `boolean` | — | Controlled open state |
|
|
137
|
-
| `onOpenChange` | `(open: boolean) => void` | — | Open state callback |
|
|
138
|
-
| `onAppSelect` | `(app: AppItem) => void` | — | Called when an app is selected |
|
|
139
|
-
| `triggerLabel` | `string` | `"Open app switcher"` | Accessible label for trigger |
|
|
140
|
-
| `trigger` | `ReactNode` | 9-dot icon | Custom trigger element |
|
|
141
|
-
| `title` | `string` | — | Panel header title |
|
|
142
|
-
| `footer` | `ReactNode` | — | Footer content below the grid |
|
|
143
|
-
| `placement` | `"bottom-end" \| "bottom-start" \| "bottom"` | `"bottom-end"` | Panel position |
|
|
144
|
-
| `closeOnSelect` | `boolean` | `true` | Close panel after selection |
|
|
145
|
-
| `className` | `string` | — | Root CSS class |
|
|
146
|
-
| `style` | `CSSProperties` | — | Root inline styles |
|
|
147
|
-
|
|
148
|
-
\* Required when `apps` is not provided.
|
|
149
|
-
|
|
150
|
-
### Types
|
|
90
|
+
Props: `apps`, `loading`, `loadingLabel`, `columns`, `open`, `onOpenChange`, `onAppSelect`, `triggerLabel`, `trigger`, `title`, `footer`, `placement`, `closeOnSelect`, `className`, `style`. Exported types: `AppSwitcherProps`, `AppItem`, `UseAppSwitcherOptions`, `UseAppSwitcherReturn`.
|
|
151
91
|
|
|
152
|
-
|
|
92
|
+
Also exported: `AppSwitcherItem`, `GridIcon`, `SystemAppIcon`, `useAppSwitcher`.
|
|
153
93
|
|
|
154
|
-
```ts
|
|
155
|
-
interface AppItem {
|
|
156
|
-
id: string;
|
|
157
|
-
name: string;
|
|
158
|
-
icon: ReactNode | string;
|
|
159
|
-
href?: string;
|
|
160
|
-
onClick?: (app: AppItem) => void;
|
|
161
|
-
disabled?: boolean;
|
|
162
|
-
badge?: string;
|
|
163
|
-
metadata?: MeApp;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
interface MeApp {
|
|
167
|
-
system_id: string;
|
|
168
|
-
system_name: string;
|
|
169
|
-
system_code: string;
|
|
170
|
-
frontend_url: string;
|
|
171
|
-
role: string;
|
|
172
|
-
permissions: string[];
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
interface MeAppsResponse {
|
|
176
|
-
success: boolean;
|
|
177
|
-
message: string;
|
|
178
|
-
data: { apps: MeApp[] };
|
|
179
|
-
meta: { count: number };
|
|
180
|
-
}
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
Also exported: `AppSwitcherProps`, `UseMeAppsOptions`, `UseMeAppsReturn`, `UseAppSwitcherOptions`, `UseAppSwitcherReturn`.
|
|
184
|
-
|
|
185
|
-
### Hooks
|
|
186
|
-
|
|
187
|
-
**`useMeApps`** — fetch and map systems from `/v1/me/apps`:
|
|
188
|
-
|
|
189
|
-
```tsx
|
|
190
|
-
import { useMeApps } from "@rfdtech/components";
|
|
191
|
-
|
|
192
|
-
const { apps, loading, error, refetch } = useMeApps({
|
|
193
|
-
baseUrl: "https://api.example.com",
|
|
194
|
-
accessToken: "<token>",
|
|
195
|
-
});
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
**`useAppSwitcher`** — headless open/close state for custom UI:
|
|
199
|
-
|
|
200
|
-
```tsx
|
|
201
|
-
import { useAppSwitcher } from "@rfdtech/components";
|
|
202
|
-
|
|
203
|
-
const { open, toggle, close, triggerRef, panelRef } = useAppSwitcher();
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
### Utilities
|
|
207
|
-
|
|
208
|
-
```tsx
|
|
209
|
-
import {
|
|
210
|
-
buildMeAppsUrl,
|
|
211
|
-
createMeAppsRequestInit,
|
|
212
|
-
fetchMeApps,
|
|
213
|
-
mapMeAppToAppItem,
|
|
214
|
-
mapMeAppsToAppItems,
|
|
215
|
-
MeAppsFetchError,
|
|
216
|
-
} from "@rfdtech/components";
|
|
217
|
-
|
|
218
|
-
const url = buildMeAppsUrl("https://api.example.com");
|
|
219
|
-
const init = createMeAppsRequestInit("<token>");
|
|
220
|
-
const response = await fetchMeApps(url, init);
|
|
221
|
-
const apps = mapMeAppsToAppItems(response.data.apps);
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
| Export | Description |
|
|
225
|
-
|--------|-------------|
|
|
226
|
-
| `buildMeAppsUrl(baseUrl)` | Builds `{baseUrl}/v1/me/apps`, or `/v1/me/apps` when `baseUrl` is empty |
|
|
227
|
-
| `createMeAppsRequestInit(accessToken)` | Returns fetch options with `Authorization: Bearer ...` |
|
|
228
|
-
| `fetchMeApps(url, init?)` | Fetches and validates the API response; throws `MeAppsFetchError` on failure |
|
|
229
|
-
| `mapMeAppToAppItem(app)` | Maps one `MeApp` to an `AppItem` |
|
|
230
|
-
| `mapMeAppsToAppItems(apps)` | Maps an array of `MeApp` values to `AppItem[]` |
|
|
231
|
-
| `MeAppsFetchError` | Error thrown when the HTTP request fails or `success` is `false` |
|
|
232
|
-
|
|
233
|
-
### Subcomponents
|
|
234
|
-
|
|
235
|
-
Also exported for custom layouts:
|
|
236
|
-
|
|
237
|
-
- `AppSwitcherItem` — single app grid cell
|
|
238
|
-
- `GridIcon` — default 9-dot trigger icon
|
|
239
|
-
- `SystemAppIcon` — initials avatar for API-fetched apps
|
|
240
|
-
|
|
241
|
-
### Theming
|
|
242
|
-
|
|
243
|
-
Override shared tokens on `.gsl-app-switcher` (see [Shared theming](#shared-theming)). `--gsl-focus` aliases to `--gsl-primary`.
|
|
244
|
-
|
|
245
|
-
```css
|
|
246
|
-
.my-switcher {
|
|
247
|
-
--gsl-primary: #dc2626;
|
|
248
|
-
--gsl-hover: #f1f3f4;
|
|
249
|
-
--gsl-columns: 4;
|
|
250
|
-
}
|
|
251
|
-
```
|
|
252
|
-
|
|
253
|
-
### CORS
|
|
254
|
-
|
|
255
|
-
When fetching from a remote `baseUrl` in the browser, the API must allow the host application's origin. Configure CORS on your backend or proxy `/v1` through your dev server during local development.
|
|
256
94
|
|
|
257
95
|
## BulkImportModal
|
|
258
96
|
|
|
@@ -402,6 +240,170 @@ To change the gutter size, override `--gsl-bulk-import-gutter` on `.gsl-bulk-imp
|
|
|
402
240
|
}
|
|
403
241
|
```
|
|
404
242
|
|
|
243
|
+
|
|
244
|
+
## Button
|
|
245
|
+
|
|
246
|
+
Shared button with primary, secondary, outline, and ghost variants, plus loading and disabled states. See the [Button](/docs/button) docs page for props and exported types.
|
|
247
|
+
|
|
248
|
+
```tsx
|
|
249
|
+
import { Button } from "@rfdtech/components";
|
|
250
|
+
|
|
251
|
+
<Button variant="primary" onClick={() => save()}>
|
|
252
|
+
Save
|
|
253
|
+
</Button>
|
|
254
|
+
|
|
255
|
+
<Button loading loadingLabel="Saving">
|
|
256
|
+
Save
|
|
257
|
+
</Button>
|
|
258
|
+
|
|
259
|
+
<Button disabled>Unavailable</Button>
|
|
260
|
+
|
|
261
|
+
<Button
|
|
262
|
+
variant="outline"
|
|
263
|
+
classNames={{ root: "min-w-32", label: "font-semibold" }}
|
|
264
|
+
>
|
|
265
|
+
Custom
|
|
266
|
+
</Button>
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
Props: `variant`, `size`, `loading`, `loadingLabel`, `classNames`, and standard `button` attributes. Exported types: `ButtonProps`, `ButtonClassNames`, `ButtonVariant`, `ButtonSize`.
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
## Checkbox
|
|
273
|
+
|
|
274
|
+
Accessible checkbox with optional label and part-level `classNames`. See the [Checkbox](/docs/checkbox) docs page for props and exported types.
|
|
275
|
+
|
|
276
|
+
```tsx
|
|
277
|
+
import { Checkbox } from "@rfdtech/components";
|
|
278
|
+
|
|
279
|
+
<Checkbox
|
|
280
|
+
label="Accept terms and conditions"
|
|
281
|
+
checked={accepted}
|
|
282
|
+
onCheckedChange={setAccepted}
|
|
283
|
+
/>
|
|
284
|
+
|
|
285
|
+
<Checkbox
|
|
286
|
+
aria-label="Select row"
|
|
287
|
+
checked={selected}
|
|
288
|
+
onCheckedChange={setSelected}
|
|
289
|
+
/>
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
Props: `checked`, `defaultChecked`, `onCheckedChange`, `label`, `disabled`, `required`, `name`, `value`, `id`, `aria-label`, `classNames`, `className`. Exported types: `CheckboxProps`, `CheckboxClassNames`.
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
## RadioGroup
|
|
296
|
+
|
|
297
|
+
Single-choice radio group with optional labels and descriptions on each `Radio` item. Use `variant="card"` for bordered choice cards. See the [RadioGroup](/docs/radio-group) docs page for props and exported types.
|
|
298
|
+
|
|
299
|
+
```tsx
|
|
300
|
+
import { Radio, RadioGroup } from "@rfdtech/components";
|
|
301
|
+
|
|
302
|
+
<RadioGroup variant="card" value={plan} onValueChange={setPlan}>
|
|
303
|
+
<Radio
|
|
304
|
+
value="starter"
|
|
305
|
+
label="Starter"
|
|
306
|
+
description="For individuals getting started."
|
|
307
|
+
/>
|
|
308
|
+
<Radio
|
|
309
|
+
value="team"
|
|
310
|
+
label="Team"
|
|
311
|
+
description="Collaborate with up to 10 members."
|
|
312
|
+
/>
|
|
313
|
+
</RadioGroup>
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
Props: `RadioGroup` — `value`, `defaultValue`, `onValueChange`, `name`, `disabled`, `required`, `orientation`, `variant`, `classNames`, `className`, `children`. `Radio` — `value`, `label`, `description`, `disabled`, `id`, `aria-label`, `classNames`, `className`. Exported types: `RadioGroupProps`, `RadioProps`, `RadioGroupClassNames`, `RadioClassNames`, `RadioGroupVariant`.
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
## Dropdown
|
|
320
|
+
|
|
321
|
+
Select-style dropdown for choosing one option from a list. See the [Dropdown](/docs/dropdown) docs page for props and exported types.
|
|
322
|
+
|
|
323
|
+
```tsx
|
|
324
|
+
import { Dropdown } from "@rfdtech/components";
|
|
325
|
+
|
|
326
|
+
<Dropdown
|
|
327
|
+
aria-label="Field"
|
|
328
|
+
value={value}
|
|
329
|
+
onValueChange={setValue}
|
|
330
|
+
options={[
|
|
331
|
+
{ value: "email", label: "Email" },
|
|
332
|
+
{ value: "name", label: "Full name" },
|
|
333
|
+
]}
|
|
334
|
+
placeholder="Select..."
|
|
335
|
+
clearable
|
|
336
|
+
/>
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
Props: `value`, `onValueChange`, `options`, `placeholder`, `clearable`, `disabled`, `aria-label`, `classNames`, `className`. Exported types: `DropdownProps`, `DropdownOption`, `DropdownClassNames`.
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
## Popover
|
|
343
|
+
|
|
344
|
+
Compound popover primitives for floating panels. See the [Popover](/docs/popover) docs page for props and exported types.
|
|
345
|
+
|
|
346
|
+
```tsx
|
|
347
|
+
import {
|
|
348
|
+
Button,
|
|
349
|
+
Popover,
|
|
350
|
+
PopoverClose,
|
|
351
|
+
PopoverContent,
|
|
352
|
+
PopoverTrigger,
|
|
353
|
+
} from "@rfdtech/components";
|
|
354
|
+
|
|
355
|
+
<Popover>
|
|
356
|
+
<PopoverTrigger asChild>
|
|
357
|
+
<Button variant="secondary">Actions</Button>
|
|
358
|
+
</PopoverTrigger>
|
|
359
|
+
<PopoverContent
|
|
360
|
+
side="bottom"
|
|
361
|
+
align="end"
|
|
362
|
+
sideOffset={4}
|
|
363
|
+
className="gsl-popover--menu"
|
|
364
|
+
>
|
|
365
|
+
<div className="gsl-popover__menu" role="menu">
|
|
366
|
+
<PopoverClose asChild>
|
|
367
|
+
<button type="button" className="gsl-popover__menu-item" role="menuitem">
|
|
368
|
+
Edit
|
|
369
|
+
</button>
|
|
370
|
+
</PopoverClose>
|
|
371
|
+
<PopoverClose asChild>
|
|
372
|
+
<button
|
|
373
|
+
type="button"
|
|
374
|
+
className="gsl-popover__menu-item gsl-popover__menu-item--destructive"
|
|
375
|
+
role="menuitem"
|
|
376
|
+
>
|
|
377
|
+
Delete
|
|
378
|
+
</button>
|
|
379
|
+
</PopoverClose>
|
|
380
|
+
</div>
|
|
381
|
+
</PopoverContent>
|
|
382
|
+
</Popover>
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
Exports: `Popover`, `PopoverTrigger`, `PopoverContent`, `PopoverPortal`, `PopoverAnchor`, `PopoverClose`. Exported types: `PopoverContentProps`, `PopoverContentClassNames`.
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
## Tabs
|
|
389
|
+
|
|
390
|
+
Compound tabs primitives for switching between related panels. See the [Tabs](/docs/tabs) docs page for props and exported types.
|
|
391
|
+
|
|
392
|
+
```tsx
|
|
393
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@rfdtech/components";
|
|
394
|
+
|
|
395
|
+
<Tabs defaultValue="account" variant="line">
|
|
396
|
+
<TabsList>
|
|
397
|
+
<TabsTrigger value="account">Account</TabsTrigger>
|
|
398
|
+
<TabsTrigger value="security">Security</TabsTrigger>
|
|
399
|
+
</TabsList>
|
|
400
|
+
<TabsContent value="account">Account settings</TabsContent>
|
|
401
|
+
<TabsContent value="security">Security settings</TabsContent>
|
|
402
|
+
</Tabs>
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
Exports: `Tabs`, `TabsList`, `TabsTrigger`, `TabsContent`. Props: `Tabs` — `value`, `defaultValue`, `onValueChange`, `orientation`, `activationMode`, `variant`, `classNames`, `className`, `children`. `TabsTrigger` — `value`, `disabled`, `classNames`, `className`. Exported types: `TabsProps`, `TabsListProps`, `TabsTriggerProps`, `TabsContentProps`, `TabsVariant`, `TabsClassNames`, `TabsListClassNames`, `TabsTriggerClassNames`, `TabsContentClassNames`.
|
|
406
|
+
|
|
405
407
|
## Development
|
|
406
408
|
|
|
407
409
|
```bash
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { AppSwitcherProps } from "../../types/app-switcher";
|
|
2
2
|
import "./styles/app-switcher.css";
|
|
3
|
-
export declare function AppSwitcher({ apps
|
|
3
|
+
export declare function AppSwitcher({ apps, loading, loadingLabel, open: controlledOpen, onOpenChange, onAppSelect, columns, triggerLabel, trigger, title, footer, className, style, placement, closeOnSelect, }: AppSwitcherProps): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=AppSwitcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSwitcher.d.ts","sourceRoot":"","sources":["../../../src/components/app-switcher/AppSwitcher.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAW,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG1E,OAAO,2BAA2B,CAAC;AAcnC,wBAAgB,WAAW,CAAC,EAC1B,IAAI,
|
|
1
|
+
{"version":3,"file":"AppSwitcher.d.ts","sourceRoot":"","sources":["../../../src/components/app-switcher/AppSwitcher.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAW,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG1E,OAAO,2BAA2B,CAAC;AAcnC,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,OAAe,EACf,YAAmC,EACnC,IAAI,EAAE,cAAc,EACpB,YAAY,EACZ,WAAW,EACX,OAAW,EACX,YAAkC,EAClC,OAAO,EACP,KAAK,EACL,MAAM,EACN,SAAS,EACT,KAAK,EACL,SAAwB,EACxB,aAAoB,GACrB,EAAE,gBAAgB,+BAoGlB"}
|
|
@@ -2,10 +2,6 @@ export { AppSwitcher } from "./AppSwitcher";
|
|
|
2
2
|
export { AppSwitcherItem } from "./AppSwitcherItem";
|
|
3
3
|
export { GridIcon } from "./GridIcon";
|
|
4
4
|
export { SystemAppIcon } from "./SystemAppIcon";
|
|
5
|
-
export { fetchMeApps, MeAppsFetchError } from "./api/fetchMeApps";
|
|
6
|
-
export { buildMeAppsUrl, createMeAppsRequestInit, } from "./api/meAppsClient";
|
|
7
|
-
export { mapMeAppToAppItem, mapMeAppsToAppItems, } from "./api/mapMeAppToAppItem";
|
|
8
5
|
export { useAppSwitcher } from "./hooks/useAppSwitcher";
|
|
9
|
-
export {
|
|
10
|
-
export type { AppItem, AppSwitcherProps, MeApp, MeAppsResponse, UseMeAppsOptions, UseMeAppsReturn, UseAppSwitcherOptions, UseAppSwitcherReturn, } from "../../types/app-switcher";
|
|
6
|
+
export type { AppItem, AppSwitcherProps, UseAppSwitcherOptions, UseAppSwitcherReturn, } from "../../types/app-switcher";
|
|
11
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/app-switcher/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/app-switcher/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,YAAY,EACV,OAAO,EACP,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BulkImportModal.d.ts","sourceRoot":"","sources":["../../../src/components/bulk-import-modal/BulkImportModal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAO1E,OAAO,gCAAgC,CAAC;AAgCxC,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAqB,EACrB,gBAAwC,EACxC,uBAA+B,EAC/B,SAAS,GACV,EAAE,oBAAoB,+
|
|
1
|
+
{"version":3,"file":"BulkImportModal.d.ts","sourceRoot":"","sources":["../../../src/components/bulk-import-modal/BulkImportModal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAO1E,OAAO,gCAAgC,CAAC;AAgCxC,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAqB,EACrB,gBAAwC,EACxC,uBAA+B,EAC/B,SAAS,GACV,EAAE,oBAAoB,+BA8RtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBulkImportFlow.d.ts","sourceRoot":"","sources":["../../../../src/components/bulk-import-modal/hooks/useBulkImportFlow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAIV,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,kCAAkC,CAAC;AAmB1C,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,wBAAwB,GAChC,uBAAuB,
|
|
1
|
+
{"version":3,"file":"useBulkImportFlow.d.ts","sourceRoot":"","sources":["../../../../src/components/bulk-import-modal/hooks/useBulkImportFlow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAIV,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,kCAAkC,CAAC;AAmB1C,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,wBAAwB,GAChC,uBAAuB,CAySzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldMappingSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/bulk-import-modal/internal/FieldMappingSelect.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FieldMappingSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/bulk-import-modal/internal/FieldMappingSelect.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,wBAAwB,EAAE,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,KAAK,EACL,QAAQ,EACR,OAAO,EACP,WAAyB,EACzB,SAAiB,GAClB,EAAE,uBAAuB,+BAWzB"}
|
|
@@ -8,10 +8,11 @@ interface ValidateDataStepProps {
|
|
|
8
8
|
showOnlyErrors: boolean;
|
|
9
9
|
discardedRows: number[];
|
|
10
10
|
onToggleRowSelection: (rowId: number) => void;
|
|
11
|
+
onSetVisibleRowsSelection: (rowIds: number[], selected: boolean) => void;
|
|
11
12
|
onShowOnlyErrorsChange: (value: boolean) => void;
|
|
12
13
|
onDiscardSelectedRows: () => void;
|
|
13
14
|
onUpdateRowValue: (rowId: number, fieldKey: string, value: string) => void;
|
|
14
15
|
}
|
|
15
|
-
export declare function ValidateDataStep({ fields, mappedFieldKeys, mappedRows, errors, selectedRowIds, showOnlyErrors, discardedRows, onToggleRowSelection, onShowOnlyErrorsChange, onDiscardSelectedRows, onUpdateRowValue, }: ValidateDataStepProps): import("react").JSX.Element;
|
|
16
|
+
export declare function ValidateDataStep({ fields, mappedFieldKeys, mappedRows, errors, selectedRowIds, showOnlyErrors, discardedRows, onToggleRowSelection, onSetVisibleRowsSelection, onShowOnlyErrorsChange, onDiscardSelectedRows, onUpdateRowValue, }: ValidateDataStepProps): import("react").JSX.Element;
|
|
16
17
|
export {};
|
|
17
18
|
//# sourceMappingURL=ValidateDataStep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValidateDataStep.d.ts","sourceRoot":"","sources":["../../../../src/components/bulk-import-modal/steps/ValidateDataStep.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ValidateDataStep.d.ts","sourceRoot":"","sources":["../../../../src/components/bulk-import-modal/steps/ValidateDataStep.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,yBAAyB,EAC1B,MAAM,kCAAkC,CAAC;AAE1C,UAAU,qBAAqB;IAC7B,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IACrC,MAAM,EAAE,yBAAyB,EAAE,CAAC;IACpC,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,yBAAyB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACzE,sBAAsB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5E;AAYD,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,eAAe,EACf,UAAU,EACV,MAAM,EACN,cAAc,EACd,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,GACjB,EAAE,qBAAqB,+BA8KvB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ButtonProps } from "../../types/button";
|
|
2
|
+
import "./styles/button.css";
|
|
3
|
+
export declare function Button({ variant, size, loading, loadingLabel, disabled, className, classNames, children, type, ...props }: ButtonProps): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,qBAAqB,CAAC;AAE7B,wBAAgB,MAAM,CAAC,EACrB,OAAqB,EACrB,IAAW,EACX,OAAe,EACf,YAAwB,EACxB,QAAQ,EACR,SAAS,EACT,UAAU,EACV,QAAQ,EACR,IAAe,EACf,GAAG,KAAK,EACT,EAAE,WAAW,+BAiCb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.test.d.ts","sourceRoot":"","sources":["../../../src/components/button/Button.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ButtonSize } from "../../types/button";
|
|
2
|
+
interface SpinnerProps {
|
|
3
|
+
size?: ButtonSize;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function Spinner({ size, className }: SpinnerProps): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=Spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../src/components/button/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGrD,UAAU,YAAY;IACpB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,OAAO,CAAC,EAAE,IAAW,EAAE,SAAS,EAAE,EAAE,YAAY,+BAO/D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EACV,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,aAAa,GACd,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CheckboxProps } from "../../types/checkbox";
|
|
2
|
+
import "./styles/checkbox.css";
|
|
3
|
+
export declare function Checkbox({ checked, defaultChecked, onCheckedChange, label, disabled, required, name, value, id: idProp, "aria-label": ariaLabel, classNames, className, }: CheckboxProps): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/Checkbox.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,uBAAuB,CAAC;AAE/B,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,cAAc,EACd,eAAe,EACf,KAAK,EACL,QAAgB,EAChB,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,EAAE,EAAE,MAAM,EACV,YAAY,EAAE,SAAS,EACvB,UAAU,EACV,SAAS,GACV,EAAE,aAAa,+BA4Cf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.test.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/Checkbox.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EACV,kBAAkB,EAClB,aAAa,GACd,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DropdownProps } from "../../types/dropdown";
|
|
2
|
+
import "./styles/dropdown.css";
|
|
3
|
+
export declare function Dropdown({ value, onValueChange, options, placeholder, clearable, disabled, "aria-label": ariaLabel, classNames, className, }: DropdownProps): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=Dropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/Dropdown.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,uBAAuB,CAAC;AAI/B,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,aAAa,EACb,OAAO,EACP,WAAyB,EACzB,SAAiB,EACjB,QAAgB,EAChB,YAAY,EAAE,SAAS,EACvB,UAAU,EACV,SAAS,GACV,EAAE,aAAa,+BA+Df"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dropdown.test.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/Dropdown.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EACV,kBAAkB,EAClB,cAAc,EACd,aAAa,GACd,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
2
|
+
import type { PopoverContentProps } from "../../types/popover";
|
|
3
|
+
import "./styles/popover.css";
|
|
4
|
+
export declare const Popover: import("react").FC<PopoverPrimitive.PopoverProps>;
|
|
5
|
+
export declare const PopoverTrigger: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
export declare const PopoverPortal: import("react").FC<PopoverPrimitive.PopoverPortalProps>;
|
|
7
|
+
export declare const PopoverAnchor: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const PopoverClose: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
export declare const PopoverContent: import("react").ForwardRefExoticComponent<PopoverContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAE5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,sBAAsB,CAAC;AAE9B,eAAO,MAAM,OAAO,mDAAwB,CAAC;AAC7C,eAAO,MAAM,cAAc,oIAA2B,CAAC;AACvD,eAAO,MAAM,aAAa,yDAA0B,CAAC;AACrD,eAAO,MAAM,aAAa,gIAA0B,CAAC;AACrD,eAAO,MAAM,YAAY,kIAAyB,CAAC;AAEnD,eAAO,MAAM,cAAc,gHAgBzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.test.d.ts","sourceRoot":"","sources":["../../../src/components/popover/Popover.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,cAAc,EACd,aAAa,EACb,cAAc,GACf,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/radio-group/Radio.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAI1D,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,KAAK,EACL,WAAW,EACX,QAAgB,EAChB,EAAE,EAAE,MAAM,EACV,YAAY,EAAE,SAAS,EACvB,UAAU,EACV,SAAS,GACV,EAAE,UAAU,+BAiDZ"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { RadioGroupProps } from "../../types/radio-group";
|
|
2
|
+
import "./styles/radio-group.css";
|
|
3
|
+
export declare function RadioGroup({ value, defaultValue, onValueChange, name, disabled, required, orientation, variant, classNames, className, children, }: RadioGroupProps): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=RadioGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/radio-group/RadioGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG/D,OAAO,0BAA0B,CAAC;AAElC,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,YAAY,EACZ,aAAa,EACb,IAAI,EACJ,QAAgB,EAChB,QAAQ,EACR,WAAwB,EACxB,OAAmB,EACnB,UAAU,EACV,SAAS,EACT,QAAQ,GACT,EAAE,eAAe,+BAuBjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.test.d.ts","sourceRoot":"","sources":["../../../src/components/radio-group/RadioGroup.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { RadioGroupVariant } from "../../types/radio-group";
|
|
3
|
+
interface RadioGroupContextValue {
|
|
4
|
+
variant: RadioGroupVariant;
|
|
5
|
+
}
|
|
6
|
+
export declare function RadioGroupProvider({ variant, children, }: {
|
|
7
|
+
variant: RadioGroupVariant;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
export declare function useRadioGroupContext(): RadioGroupContextValue;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=RadioGroupContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroupContext.d.ts","sourceRoot":"","sources":["../../../src/components/radio-group/RadioGroupContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,UAAU,sBAAsB;IAC9B,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAMD,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,iBAAiB,CAAC;IAC3B,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAMA;AAED,wBAAgB,oBAAoB,2BAEnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/radio-group/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACV,eAAe,EACf,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,UAAU,GACX,MAAM,yBAAyB,CAAC"}
|