@gunkin/uiify 0.0.20-alpha → 0.0.22-alpha
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/agents/components.md +13 -0
- package/agents/index.md +31 -1
- package/agents/reference/components/alert.md +44 -0
- package/agents/reference/components/aspect-ratio.md +26 -0
- package/agents/reference/components/avatar.md +32 -0
- package/agents/reference/components/badge.md +31 -0
- package/agents/reference/components/card.md +24 -0
- package/agents/reference/components/checkbox.md +2 -0
- package/agents/reference/components/date-picker.md +23 -0
- package/agents/reference/components/description-list.md +38 -0
- package/agents/reference/components/empty.md +45 -0
- package/agents/reference/components/fieldset.md +31 -0
- package/agents/reference/components/form-error-summary.md +33 -0
- package/agents/reference/components/input-group.md +33 -0
- package/agents/reference/components/item.md +52 -0
- package/agents/reference/components/progress.md +16 -0
- package/dist/components/alert/Alert.d.ts +15 -0
- package/dist/components/alert/Alert.d.ts.map +1 -0
- package/dist/components/alert/Alert.js +61 -0
- package/dist/components/alert/Alert.js.map +1 -0
- package/dist/components/alert/index.d.ts +3 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/alert/index.js +7 -0
- package/dist/components/alert/index.js.map +1 -0
- package/dist/components/alert/types.d.ts +20 -0
- package/dist/components/alert/types.d.ts.map +1 -0
- package/dist/components/alert/types.js +1 -0
- package/dist/components/alert/types.js.map +1 -0
- package/dist/components/alert.d.ts +1 -0
- package/dist/components/alert.js +1 -0
- package/dist/components/aspect-ratio/AspectRatio.d.ts +7 -0
- package/dist/components/aspect-ratio/AspectRatio.d.ts.map +1 -0
- package/dist/components/aspect-ratio/AspectRatio.js +26 -0
- package/dist/components/aspect-ratio/AspectRatio.js.map +1 -0
- package/dist/components/aspect-ratio/index.d.ts +3 -0
- package/dist/components/aspect-ratio/index.d.ts.map +1 -0
- package/dist/components/aspect-ratio/index.js +5 -0
- package/dist/components/aspect-ratio/index.js.map +1 -0
- package/dist/components/aspect-ratio/types.d.ts +9 -0
- package/dist/components/aspect-ratio/types.d.ts.map +1 -0
- package/dist/components/aspect-ratio/types.js +1 -0
- package/dist/components/aspect-ratio/types.js.map +1 -0
- package/dist/components/aspect-ratio.d.ts +1 -0
- package/dist/components/aspect-ratio.js +1 -0
- package/dist/components/avatar/Avatar.d.ts +7 -0
- package/dist/components/avatar/Avatar.d.ts.map +1 -0
- package/dist/components/avatar/Avatar.js +24 -0
- package/dist/components/avatar/Avatar.js.map +1 -0
- package/dist/components/avatar/index.d.ts +3 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +5 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/avatar/types.d.ts +12 -0
- package/dist/components/avatar/types.d.ts.map +1 -0
- package/dist/components/avatar/types.js +1 -0
- package/dist/components/avatar/types.js.map +1 -0
- package/dist/components/avatar.d.ts +1 -0
- package/dist/components/avatar.js +1 -0
- package/dist/components/badge/Badge.d.ts +7 -0
- package/dist/components/badge/Badge.d.ts.map +1 -0
- package/dist/components/badge/Badge.js +21 -0
- package/dist/components/badge/Badge.js.map +1 -0
- package/dist/components/badge/index.d.ts +3 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +5 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/badge/types.d.ts +11 -0
- package/dist/components/badge/types.d.ts.map +1 -0
- package/dist/components/badge/types.js +1 -0
- package/dist/components/badge/types.js.map +1 -0
- package/dist/components/badge.d.ts +1 -0
- package/dist/components/badge.js +1 -0
- package/dist/components/behavior.css +12 -0
- package/dist/components/behavior.css.map +1 -1
- package/dist/components/card/Card.d.ts +7 -0
- package/dist/components/card/Card.d.ts.map +1 -0
- package/dist/components/card/Card.js +16 -0
- package/dist/components/card/Card.js.map +1 -0
- package/dist/components/card/index.d.ts +3 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/card/index.js +5 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/card/types.d.ts +7 -0
- package/dist/components/card/types.d.ts.map +1 -0
- package/dist/components/card/types.js +1 -0
- package/dist/components/card/types.js.map +1 -0
- package/dist/components/card.d.ts +1 -0
- package/dist/components/card.js +1 -0
- package/dist/components/checkbox/types.d.ts +2 -0
- package/dist/components/checkbox/types.d.ts.map +1 -1
- package/dist/components/date-picker/DatePicker.d.ts +7 -0
- package/dist/components/date-picker/DatePicker.d.ts.map +1 -0
- package/dist/components/date-picker/DatePicker.js +19 -0
- package/dist/components/date-picker/DatePicker.js.map +1 -0
- package/dist/components/date-picker/index.d.ts +3 -0
- package/dist/components/date-picker/index.d.ts.map +1 -0
- package/dist/components/date-picker/index.js +5 -0
- package/dist/components/date-picker/index.js.map +1 -0
- package/dist/components/date-picker/types.d.ts +5 -0
- package/dist/components/date-picker/types.d.ts.map +1 -0
- package/dist/components/date-picker/types.js +1 -0
- package/dist/components/date-picker/types.js.map +1 -0
- package/dist/components/date-picker.d.ts +1 -0
- package/dist/components/date-picker.js +1 -0
- package/dist/components/description-list/DescriptionList.d.ts +15 -0
- package/dist/components/description-list/DescriptionList.d.ts.map +1 -0
- package/dist/components/description-list/DescriptionList.js +48 -0
- package/dist/components/description-list/DescriptionList.js.map +1 -0
- package/dist/components/description-list/index.d.ts +3 -0
- package/dist/components/description-list/index.d.ts.map +1 -0
- package/dist/components/description-list/index.js +7 -0
- package/dist/components/description-list/index.js.map +1 -0
- package/dist/components/description-list/types.d.ts +15 -0
- package/dist/components/description-list/types.d.ts.map +1 -0
- package/dist/components/description-list/types.js +1 -0
- package/dist/components/description-list/types.js.map +1 -0
- package/dist/components/description-list.d.ts +1 -0
- package/dist/components/description-list.js +1 -0
- package/dist/components/empty/Empty.d.ts +19 -0
- package/dist/components/empty/Empty.d.ts.map +1 -0
- package/dist/components/empty/Empty.js +56 -0
- package/dist/components/empty/Empty.js.map +1 -0
- package/dist/components/empty/index.d.ts +3 -0
- package/dist/components/empty/index.d.ts.map +1 -0
- package/dist/components/empty/index.js +8 -0
- package/dist/components/empty/index.js.map +1 -0
- package/dist/components/empty/types.d.ts +19 -0
- package/dist/components/empty/types.d.ts.map +1 -0
- package/dist/components/empty/types.js +1 -0
- package/dist/components/empty/types.js.map +1 -0
- package/dist/components/empty.d.ts +1 -0
- package/dist/components/empty.js +1 -0
- package/dist/components/fieldset/Fieldset.d.ts +11 -0
- package/dist/components/fieldset/Fieldset.d.ts.map +1 -0
- package/dist/components/fieldset/Fieldset.js +38 -0
- package/dist/components/fieldset/Fieldset.js.map +1 -0
- package/dist/components/fieldset/index.d.ts +3 -0
- package/dist/components/fieldset/index.d.ts.map +1 -0
- package/dist/components/fieldset/index.js +6 -0
- package/dist/components/fieldset/index.js.map +1 -0
- package/dist/components/fieldset/types.d.ts +11 -0
- package/dist/components/fieldset/types.d.ts.map +1 -0
- package/dist/components/fieldset/types.js +1 -0
- package/dist/components/fieldset/types.js.map +1 -0
- package/dist/components/fieldset.d.ts +1 -0
- package/dist/components/fieldset.js +1 -0
- package/dist/components/form-error-summary/FormErrorSummary.d.ts +7 -0
- package/dist/components/form-error-summary/FormErrorSummary.d.ts.map +1 -0
- package/dist/components/form-error-summary/FormErrorSummary.js +25 -0
- package/dist/components/form-error-summary/FormErrorSummary.js.map +1 -0
- package/dist/components/form-error-summary/index.d.ts +3 -0
- package/dist/components/form-error-summary/index.d.ts.map +1 -0
- package/dist/components/form-error-summary/index.js +5 -0
- package/dist/components/form-error-summary/index.js.map +1 -0
- package/dist/components/form-error-summary/types.d.ts +12 -0
- package/dist/components/form-error-summary/types.d.ts.map +1 -0
- package/dist/components/form-error-summary/types.js +1 -0
- package/dist/components/form-error-summary/types.js.map +1 -0
- package/dist/components/form-error-summary.d.ts +1 -0
- package/dist/components/form-error-summary.js +1 -0
- package/dist/components/index.d.ts +13 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +13 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/input-group/InputGroup.d.ts +5 -0
- package/dist/components/input-group/InputGroup.d.ts.map +1 -0
- package/dist/components/input-group/InputGroup.js +37 -0
- package/dist/components/input-group/InputGroup.js.map +1 -0
- package/dist/components/input-group/index.d.ts +3 -0
- package/dist/components/input-group/index.d.ts.map +1 -0
- package/dist/components/input-group/index.js +6 -0
- package/dist/components/input-group/index.js.map +1 -0
- package/dist/components/input-group/types.d.ts +12 -0
- package/dist/components/input-group/types.d.ts.map +1 -0
- package/dist/components/input-group/types.js +1 -0
- package/dist/components/input-group/types.js.map +1 -0
- package/dist/components/input-group.d.ts +1 -0
- package/dist/components/input-group.js +1 -0
- package/dist/components/internal/native-check-control/NativeCheckControl.d.ts.map +1 -1
- package/dist/components/internal/native-check-control/NativeCheckControl.js +4 -0
- package/dist/components/internal/native-check-control/NativeCheckControl.js.map +1 -1
- package/dist/components/internal/native-check-control/types.d.ts +2 -0
- package/dist/components/internal/native-check-control/types.d.ts.map +1 -1
- package/dist/components/item/Item.d.ts +23 -0
- package/dist/components/item/Item.d.ts.map +1 -0
- package/dist/components/item/Item.js +64 -0
- package/dist/components/item/Item.js.map +1 -0
- package/dist/components/item/index.d.ts +3 -0
- package/dist/components/item/index.d.ts.map +1 -0
- package/dist/components/item/index.js +9 -0
- package/dist/components/item/index.js.map +1 -0
- package/dist/components/item/types.d.ts +23 -0
- package/dist/components/item/types.d.ts.map +1 -0
- package/dist/components/item/types.js +1 -0
- package/dist/components/item/types.js.map +1 -0
- package/dist/components/item.d.ts +1 -0
- package/dist/components/item.js +1 -0
- package/dist/components/progress/Progress.d.ts +7 -0
- package/dist/components/progress/Progress.d.ts.map +1 -0
- package/dist/components/progress/Progress.js +9 -0
- package/dist/components/progress/Progress.js.map +1 -0
- package/dist/components/progress/index.d.ts +3 -0
- package/dist/components/progress/index.d.ts.map +1 -0
- package/dist/components/progress/index.js +5 -0
- package/dist/components/progress/index.js.map +1 -0
- package/dist/components/progress/types.d.ts +3 -0
- package/dist/components/progress/types.d.ts.map +1 -0
- package/dist/components/progress/types.js +1 -0
- package/dist/components/progress/types.js.map +1 -0
- package/dist/components/progress.d.ts +1 -0
- package/dist/components/progress.js +1 -0
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
- package/skills/uiify/SKILL.md +42 -36
- package/skills/uiify/references/elements/alert-modal.md +5 -5
- package/skills/uiify/references/elements/aspect-ratio.md +59 -0
- package/skills/uiify/references/elements/avatar.md +10 -19
- package/skills/uiify/references/elements/badge.md +11 -19
- package/skills/uiify/references/elements/card.md +10 -21
- package/skills/uiify/references/elements/checkbox.md +1 -1
- package/skills/uiify/references/elements/date-picker.md +11 -15
- package/skills/uiify/references/elements/description-list.md +38 -0
- package/skills/uiify/references/elements/empty-state.md +12 -23
- package/skills/uiify/references/elements/field.md +2 -2
- package/skills/uiify/references/elements/fieldset.md +39 -0
- package/skills/uiify/references/elements/form-error-summary.md +39 -0
- package/skills/uiify/references/elements/inline-alert.md +11 -19
- package/skills/uiify/references/elements/input-group.md +39 -0
- package/skills/uiify/references/elements/item.md +39 -0
- package/skills/uiify/references/elements/modal.md +1 -1
- package/skills/uiify/references/elements/progress-bar.md +11 -20
- package/skills/uiify/references/elements/select.md +1 -1
- package/skills/uiify/references/examples/alert-confirmation.md +21 -9
- package/skills/uiify/references/examples/field-validation.md +2 -2
- package/skills/uiify/references/examples/select-basic.md +1 -1
- package/skills/uiify/references/examples/table-controls.md +3 -2
- package/skills/uiify/references/guides/verification.md +9 -0
package/agents/components.md
CHANGED
|
@@ -68,6 +68,19 @@ its exports, props and shapes; exact types are in the `.d.ts` file listed in the
|
|
|
68
68
|
| [color-picker](./reference/components/color-picker.md) | `@gunkin/uiify/components/color-picker` | 1 | S1 | `input[type=color]` | `dist/components/color-picker.d.ts` | |
|
|
69
69
|
| [virtual-scroll](./reference/components/virtual-scroll.md) | `@gunkin/uiify/components/virtual-scroll` | 2 | none | `div[overflow]` | `dist/components/virtual-scroll.d.ts` | |
|
|
70
70
|
| [table-of-contents](./reference/components/table-of-contents.md) | `@gunkin/uiify/components/table-of-contents` | 2 | S1 | `nav + button[popovertarget] + [popover] + a[href]` | `dist/components/table-of-contents.d.ts` | Base entry is a server-pure native navigation shell; /client adds enhancements. Native links and popover invocation/dismissal work without JavaScript. |
|
|
71
|
+
| [aspect-ratio](./reference/components/aspect-ratio.md) | `@gunkin/uiify/components/aspect-ratio` | 0 | none | `div` | `dist/components/aspect-ratio.d.ts` | Static layout component; native CSS aspect-ratio isolates child intrinsic sizing. |
|
|
72
|
+
| [badge](./reference/components/badge.md) | `@gunkin/uiify/components/badge` | 0 | none | `span` | `dist/components/badge.d.ts` | |
|
|
73
|
+
| [card](./reference/components/card.md) | `@gunkin/uiify/components/card` | 0 | none | `div` | `dist/components/card.d.ts` | |
|
|
74
|
+
| [progress](./reference/components/progress.md) | `@gunkin/uiify/components/progress` | 0 | S1 | `progress` | `dist/components/progress.d.ts` | |
|
|
75
|
+
| [avatar](./reference/components/avatar.md) | `@gunkin/uiify/components/avatar` | 0 | none | `span` | `dist/components/avatar.d.ts` | |
|
|
76
|
+
| [alert](./reference/components/alert.md) | `@gunkin/uiify/components/alert` | 0 | none | `div` | `dist/components/alert.d.ts` | |
|
|
77
|
+
| [input-group](./reference/components/input-group.md) | `@gunkin/uiify/components/input-group` | 0 | none | `div + native controls` | `dist/components/input-group.d.ts` | Static form component; keeps independently labeled native input and action. |
|
|
78
|
+
| [empty](./reference/components/empty.md) | `@gunkin/uiify/components/empty` | 0 | none | `section` | `dist/components/empty.d.ts` | |
|
|
79
|
+
| [item](./reference/components/item.md) | `@gunkin/uiify/components/item` | 0 | none | `li` | `dist/components/item.d.ts` | |
|
|
80
|
+
| [date-picker](./reference/components/date-picker.md) | `@gunkin/uiify/components/date-picker` | 0 | native | `input[type=date]` | `dist/components/date-picker.d.ts` | Native date picker; stylesheet styles the outer input only. |
|
|
81
|
+
| [fieldset](./reference/components/fieldset.md) | `@gunkin/uiify/components/fieldset` | 0 | native | `fieldset + legend` | `dist/components/fieldset.d.ts` | |
|
|
82
|
+
| [form-error-summary](./reference/components/form-error-summary.md) | `@gunkin/uiify/components/form-error-summary` | 0 | none | `section + heading + ul + links` | `dist/components/form-error-summary.d.ts` | Static server-rendered error links; no alert or focus script. |
|
|
83
|
+
| [description-list](./reference/components/description-list.md) | `@gunkin/uiify/components/description-list` | 0 | none | `dl + dt + dd` | `dist/components/description-list.d.ts` | |
|
|
71
84
|
|
|
72
85
|
## Elements
|
|
73
86
|
|
package/agents/index.md
CHANGED
|
@@ -61,6 +61,19 @@ export function RemoveButton() {
|
|
|
61
61
|
}
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
+
`Alert` supplies a decorative text symbol from its variant. Use the published parts for its
|
|
65
|
+
content; the optional stylesheet owns their layout. Set `symbol={false}` to hide the symbol.
|
|
66
|
+
Static initial content has no live role by default.
|
|
67
|
+
|
|
68
|
+
```tsx
|
|
69
|
+
import { Alert, AlertDescription, AlertTitle } from "@gunkin/uiify/components/alert";
|
|
70
|
+
|
|
71
|
+
<Alert variant="warning">
|
|
72
|
+
<AlertTitle>Browser support is incomplete</AlertTitle>
|
|
73
|
+
<AlertDescription>Check the support matrix before release.</AlertDescription>
|
|
74
|
+
</Alert>;
|
|
75
|
+
```
|
|
76
|
+
|
|
64
77
|
`as` swaps the rendered element and keeps the component's behavior:
|
|
65
78
|
|
|
66
79
|
```tsx
|
|
@@ -86,7 +99,7 @@ export function EmailField({ invalid }: { readonly invalid: boolean }) {
|
|
|
86
99
|
<Field.Label fieldId="email" required>
|
|
87
100
|
Email
|
|
88
101
|
</Field.Label>
|
|
89
|
-
<Field.Control as="input" fieldId="email" type="email" invalid={invalid} required />
|
|
102
|
+
<Field.Control as="input" fieldId="email" name="email" type="email" invalid={invalid} required />
|
|
90
103
|
<Field.Description fieldId="email">We only use it to send receipts.</Field.Description>
|
|
91
104
|
<Field.Error fieldId="email" invalid={invalid}>
|
|
92
105
|
Enter a valid email address
|
|
@@ -96,6 +109,23 @@ export function EmailField({ invalid }: { readonly invalid: boolean }) {
|
|
|
96
109
|
}
|
|
97
110
|
```
|
|
98
111
|
|
|
112
|
+
`Field.Label` connects to `Field.Control`, not a standalone Select. For a select, wrap the
|
|
113
|
+
control in a native label (or match native `htmlFor` to an explicit unique select `id`):
|
|
114
|
+
|
|
115
|
+
```tsx
|
|
116
|
+
import { Select } from "@gunkin/uiify/components/select";
|
|
117
|
+
|
|
118
|
+
<label>
|
|
119
|
+
Delivery frequency
|
|
120
|
+
<Select.Root name="frequency" defaultValue="weekly">
|
|
121
|
+
<Select.Content>
|
|
122
|
+
<Select.Item value="daily">Daily</Select.Item>
|
|
123
|
+
<Select.Item value="weekly">Weekly</Select.Item>
|
|
124
|
+
</Select.Content>
|
|
125
|
+
</Select.Root>
|
|
126
|
+
</label>;
|
|
127
|
+
```
|
|
128
|
+
|
|
99
129
|
A trigger and its close button reference the dialog by `id` and `target`:
|
|
100
130
|
|
|
101
131
|
```tsx
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<!-- Generated from the package source. Do not edit by hand. -->
|
|
2
|
+
# alert
|
|
3
|
+
|
|
4
|
+
- Import: `@gunkin/uiify/components/alert`
|
|
5
|
+
- Tier 0 (RSC — zero client JavaScript); state source none; native element `div`
|
|
6
|
+
- Without JavaScript: full
|
|
7
|
+
- Types file: `dist/components/alert.d.ts`
|
|
8
|
+
|
|
9
|
+
## Exports
|
|
10
|
+
|
|
11
|
+
- Runtime: `Alert`, `AlertDescription`, `AlertTitle`
|
|
12
|
+
- Types: `AlertDescriptionOwnProps`, `AlertDescriptionProps`, `AlertOwnProps`, `AlertProps`, `AlertTitleOwnProps`, `AlertTitleProps`, `AlertVariant`
|
|
13
|
+
|
|
14
|
+
## Values
|
|
15
|
+
|
|
16
|
+
- `AlertVariant`: `"secondary" | "success" | "warning" | "destructive"`
|
|
17
|
+
|
|
18
|
+
## Props and shapes
|
|
19
|
+
|
|
20
|
+
### AlertOwnProps
|
|
21
|
+
|
|
22
|
+
| Member | Type | Required | Description |
|
|
23
|
+
| --- | --- | --- | --- |
|
|
24
|
+
| `children` | `ReactNode` | no | |
|
|
25
|
+
| `variant` | `AlertVariant` | no | Visual status. Defaults to secondary without adding a live role. |
|
|
26
|
+
| `symbol` | `string \| false` | no | Override the decorative text symbol, or hide it with false. |
|
|
27
|
+
|
|
28
|
+
### AlertTitleOwnProps
|
|
29
|
+
|
|
30
|
+
| Member | Type | Required | Description |
|
|
31
|
+
| --- | --- | --- | --- |
|
|
32
|
+
| `children` | `ReactNode` | no | |
|
|
33
|
+
|
|
34
|
+
### AlertDescriptionOwnProps
|
|
35
|
+
|
|
36
|
+
| Member | Type | Required | Description |
|
|
37
|
+
| --- | --- | --- | --- |
|
|
38
|
+
| `children` | `ReactNode` | no | |
|
|
39
|
+
|
|
40
|
+
## Other types
|
|
41
|
+
|
|
42
|
+
- `AlertProps<TAs>`: `RenderableProps<TAs, AlertOwnProps, Record<string, never>, HTMLElement>`
|
|
43
|
+
- `AlertTitleProps<TAs>`: `RenderableProps<TAs, AlertTitleOwnProps, Record<string, never>, HTMLElement>`
|
|
44
|
+
- `AlertDescriptionProps<TAs>`: `RenderableProps<TAs, AlertDescriptionOwnProps, Record<string, never>, HTMLElement>`
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<!-- Generated from the package source. Do not edit by hand. -->
|
|
2
|
+
# aspect-ratio
|
|
3
|
+
|
|
4
|
+
- Import: `@gunkin/uiify/components/aspect-ratio`
|
|
5
|
+
- Tier 0 (RSC — zero client JavaScript); state source none; native element `div`
|
|
6
|
+
- Without JavaScript: full
|
|
7
|
+
- Types file: `dist/components/aspect-ratio.d.ts`
|
|
8
|
+
- Note: Static layout component; native CSS aspect-ratio isolates child intrinsic sizing.
|
|
9
|
+
|
|
10
|
+
## Exports
|
|
11
|
+
|
|
12
|
+
- Runtime: `AspectRatio`
|
|
13
|
+
- Types: `AspectRatioOwnProps`, `AspectRatioProps`
|
|
14
|
+
|
|
15
|
+
## Props and shapes
|
|
16
|
+
|
|
17
|
+
### AspectRatioOwnProps
|
|
18
|
+
|
|
19
|
+
| Member | Type | Required | Description |
|
|
20
|
+
| --- | --- | --- | --- |
|
|
21
|
+
| `ratio` | `number` | no | Positive finite width / height ratio. Omit to use the CSS default (square). |
|
|
22
|
+
| `children` | `ReactNode` | no | |
|
|
23
|
+
|
|
24
|
+
## Other types
|
|
25
|
+
|
|
26
|
+
- `AspectRatioProps<TAs>`: `RenderableProps<TAs, AspectRatioOwnProps, Record<string, never>, HTMLElement>`
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<!-- Generated from the package source. Do not edit by hand. -->
|
|
2
|
+
# avatar
|
|
3
|
+
|
|
4
|
+
- Import: `@gunkin/uiify/components/avatar`
|
|
5
|
+
- Tier 0 (RSC — zero client JavaScript); state source none; native element `span`
|
|
6
|
+
- Without JavaScript: full
|
|
7
|
+
- Types file: `dist/components/avatar.d.ts`
|
|
8
|
+
|
|
9
|
+
## Exports
|
|
10
|
+
|
|
11
|
+
- Runtime: `Avatar`
|
|
12
|
+
- Types: `AvatarOwnProps`, `AvatarProps`, `AvatarSize`
|
|
13
|
+
|
|
14
|
+
## Values
|
|
15
|
+
|
|
16
|
+
- `AvatarSize`: `"sm" | "md" | "lg"`
|
|
17
|
+
|
|
18
|
+
## Props and shapes
|
|
19
|
+
|
|
20
|
+
### AvatarOwnProps
|
|
21
|
+
|
|
22
|
+
| Member | Type | Required | Description |
|
|
23
|
+
| --- | --- | --- | --- |
|
|
24
|
+
| `name` | `string` | yes | |
|
|
25
|
+
| `fallback` | `string` | yes | |
|
|
26
|
+
| `src` | `string` | no | |
|
|
27
|
+
| `size` | `AvatarSize` | no | |
|
|
28
|
+
| `children` | `never` | no | |
|
|
29
|
+
|
|
30
|
+
## Other types
|
|
31
|
+
|
|
32
|
+
- `AvatarProps<TAs>`: `RenderableProps<TAs, AvatarOwnProps, Record<string, never>, HTMLElement>`
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<!-- Generated from the package source. Do not edit by hand. -->
|
|
2
|
+
# badge
|
|
3
|
+
|
|
4
|
+
- Import: `@gunkin/uiify/components/badge`
|
|
5
|
+
- Tier 0 (RSC — zero client JavaScript); state source none; native element `span`
|
|
6
|
+
- Without JavaScript: full
|
|
7
|
+
- Types file: `dist/components/badge.d.ts`
|
|
8
|
+
|
|
9
|
+
## Exports
|
|
10
|
+
|
|
11
|
+
- Runtime: `Badge`
|
|
12
|
+
- Types: `BadgeOwnProps`, `BadgeProps`, `BadgeSize`, `BadgeVariant`
|
|
13
|
+
|
|
14
|
+
## Values
|
|
15
|
+
|
|
16
|
+
- `BadgeVariant`: `"secondary" | "success" | "warning" | "destructive"`
|
|
17
|
+
- `BadgeSize`: `"sm" | "md" | "lg"`
|
|
18
|
+
|
|
19
|
+
## Props and shapes
|
|
20
|
+
|
|
21
|
+
### BadgeOwnProps
|
|
22
|
+
|
|
23
|
+
| Member | Type | Required | Description |
|
|
24
|
+
| --- | --- | --- | --- |
|
|
25
|
+
| `children` | `ReactNode` | no | |
|
|
26
|
+
| `size` | `BadgeSize` | no | |
|
|
27
|
+
| `variant` | `BadgeVariant` | no | |
|
|
28
|
+
|
|
29
|
+
## Other types
|
|
30
|
+
|
|
31
|
+
- `BadgeProps<TAs>`: `RenderableProps<TAs, BadgeOwnProps, Record<string, never>, HTMLElement>`
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!-- Generated from the package source. Do not edit by hand. -->
|
|
2
|
+
# card
|
|
3
|
+
|
|
4
|
+
- Import: `@gunkin/uiify/components/card`
|
|
5
|
+
- Tier 0 (RSC — zero client JavaScript); state source none; native element `div`
|
|
6
|
+
- Without JavaScript: full
|
|
7
|
+
- Types file: `dist/components/card.d.ts`
|
|
8
|
+
|
|
9
|
+
## Exports
|
|
10
|
+
|
|
11
|
+
- Runtime: `Card`
|
|
12
|
+
- Types: `CardOwnProps`, `CardProps`
|
|
13
|
+
|
|
14
|
+
## Props and shapes
|
|
15
|
+
|
|
16
|
+
### CardOwnProps
|
|
17
|
+
|
|
18
|
+
| Member | Type | Required | Description |
|
|
19
|
+
| --- | --- | --- | --- |
|
|
20
|
+
| `children` | `ReactNode` | no | |
|
|
21
|
+
|
|
22
|
+
## Other types
|
|
23
|
+
|
|
24
|
+
- `CardProps<TAs>`: `RenderableProps<TAs, CardOwnProps, Record<string, never>, HTMLElement>`
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
| `checked` | `CheckedState` | no | |
|
|
24
24
|
| `defaultChecked` | `boolean` | no | |
|
|
25
25
|
| `disabled` | `boolean` | no | |
|
|
26
|
+
| `name` | `string` | no | |
|
|
27
|
+
| `value` | `string` | no | |
|
|
26
28
|
| `className` | `string` | no | |
|
|
27
29
|
| `onCheckedChange` | `(checked: boolean) => void` | no | |
|
|
28
30
|
| `"aria-label"` | `string` | no | |
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!-- Generated from the package source. Do not edit by hand. -->
|
|
2
|
+
# date-picker
|
|
3
|
+
|
|
4
|
+
- Import: `@gunkin/uiify/components/date-picker`
|
|
5
|
+
- Tier 0 (RSC — zero client JavaScript); state source native; native element `input[type=date]`
|
|
6
|
+
- Without JavaScript: full
|
|
7
|
+
- Types file: `dist/components/date-picker.d.ts`
|
|
8
|
+
- Note: Native date picker; stylesheet styles the outer input only.
|
|
9
|
+
|
|
10
|
+
## Exports
|
|
11
|
+
|
|
12
|
+
- Runtime: `DatePicker`
|
|
13
|
+
- Types: `DatePickerProps`
|
|
14
|
+
|
|
15
|
+
## Props and shapes
|
|
16
|
+
|
|
17
|
+
### DatePickerProps
|
|
18
|
+
|
|
19
|
+
Extends: `Omit<ComponentPropsWithRef<"input">, "type">`
|
|
20
|
+
|
|
21
|
+
| Member | Type | Required | Description |
|
|
22
|
+
| --- | --- | --- | --- |
|
|
23
|
+
| `invalid` | `boolean` | no | |
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<!-- Generated from the package source. Do not edit by hand. -->
|
|
2
|
+
# description-list
|
|
3
|
+
|
|
4
|
+
- Import: `@gunkin/uiify/components/description-list`
|
|
5
|
+
- Tier 0 (RSC — zero client JavaScript); state source none; native element `dl + dt + dd`
|
|
6
|
+
- Without JavaScript: full
|
|
7
|
+
- Types file: `dist/components/description-list.d.ts`
|
|
8
|
+
|
|
9
|
+
## Exports
|
|
10
|
+
|
|
11
|
+
- Runtime: `DescriptionDetails`, `DescriptionList`, `DescriptionTerm`
|
|
12
|
+
- Types: `DescriptionDetailsOwnProps`, `DescriptionDetailsProps`, `DescriptionListOwnProps`, `DescriptionListProps`, `DescriptionTermOwnProps`, `DescriptionTermProps`
|
|
13
|
+
|
|
14
|
+
## Props and shapes
|
|
15
|
+
|
|
16
|
+
### DescriptionListOwnProps
|
|
17
|
+
|
|
18
|
+
| Member | Type | Required | Description |
|
|
19
|
+
| --- | --- | --- | --- |
|
|
20
|
+
| `children` | `ReactNode` | no | |
|
|
21
|
+
|
|
22
|
+
### DescriptionTermOwnProps
|
|
23
|
+
|
|
24
|
+
| Member | Type | Required | Description |
|
|
25
|
+
| --- | --- | --- | --- |
|
|
26
|
+
| `children` | `ReactNode` | no | |
|
|
27
|
+
|
|
28
|
+
### DescriptionDetailsOwnProps
|
|
29
|
+
|
|
30
|
+
| Member | Type | Required | Description |
|
|
31
|
+
| --- | --- | --- | --- |
|
|
32
|
+
| `children` | `ReactNode` | no | |
|
|
33
|
+
|
|
34
|
+
## Other types
|
|
35
|
+
|
|
36
|
+
- `DescriptionListProps<TAs>`: `RenderableProps<TAs, DescriptionListOwnProps, Record<string, never>, HTMLElement>`
|
|
37
|
+
- `DescriptionTermProps<TAs>`: `RenderableProps<TAs, DescriptionTermOwnProps, Record<string, never>, HTMLElement>`
|
|
38
|
+
- `DescriptionDetailsProps<TAs>`: `RenderableProps<TAs, DescriptionDetailsOwnProps, Record<string, never>, HTMLElement>`
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<!-- Generated from the package source. Do not edit by hand. -->
|
|
2
|
+
# empty
|
|
3
|
+
|
|
4
|
+
- Import: `@gunkin/uiify/components/empty`
|
|
5
|
+
- Tier 0 (RSC — zero client JavaScript); state source none; native element `section`
|
|
6
|
+
- Without JavaScript: full
|
|
7
|
+
- Types file: `dist/components/empty.d.ts`
|
|
8
|
+
|
|
9
|
+
## Exports
|
|
10
|
+
|
|
11
|
+
- Runtime: `Empty`, `EmptyContent`, `EmptyDescription`, `EmptyTitle`
|
|
12
|
+
- Types: `EmptyContentOwnProps`, `EmptyContentProps`, `EmptyDescriptionOwnProps`, `EmptyDescriptionProps`, `EmptyOwnProps`, `EmptyProps`, `EmptyTitleOwnProps`, `EmptyTitleProps`
|
|
13
|
+
|
|
14
|
+
## Props and shapes
|
|
15
|
+
|
|
16
|
+
### EmptyOwnProps
|
|
17
|
+
|
|
18
|
+
| Member | Type | Required | Description |
|
|
19
|
+
| --- | --- | --- | --- |
|
|
20
|
+
| `children` | `ReactNode` | no | |
|
|
21
|
+
|
|
22
|
+
### EmptyTitleOwnProps
|
|
23
|
+
|
|
24
|
+
| Member | Type | Required | Description |
|
|
25
|
+
| --- | --- | --- | --- |
|
|
26
|
+
| `children` | `ReactNode` | no | |
|
|
27
|
+
|
|
28
|
+
### EmptyDescriptionOwnProps
|
|
29
|
+
|
|
30
|
+
| Member | Type | Required | Description |
|
|
31
|
+
| --- | --- | --- | --- |
|
|
32
|
+
| `children` | `ReactNode` | no | |
|
|
33
|
+
|
|
34
|
+
### EmptyContentOwnProps
|
|
35
|
+
|
|
36
|
+
| Member | Type | Required | Description |
|
|
37
|
+
| --- | --- | --- | --- |
|
|
38
|
+
| `children` | `ReactNode` | no | |
|
|
39
|
+
|
|
40
|
+
## Other types
|
|
41
|
+
|
|
42
|
+
- `EmptyProps<TAs>`: `RenderableProps<TAs, EmptyOwnProps, Record<string, never>, HTMLElement>`
|
|
43
|
+
- `EmptyTitleProps<TAs>`: `RenderableProps<TAs, EmptyTitleOwnProps, Record<string, never>, HTMLElement>`
|
|
44
|
+
- `EmptyDescriptionProps<TAs>`: `RenderableProps<TAs, EmptyDescriptionOwnProps, Record<string, never>, HTMLElement>`
|
|
45
|
+
- `EmptyContentProps<TAs>`: `RenderableProps<TAs, EmptyContentOwnProps, Record<string, never>, HTMLElement>`
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<!-- Generated from the package source. Do not edit by hand. -->
|
|
2
|
+
# fieldset
|
|
3
|
+
|
|
4
|
+
- Import: `@gunkin/uiify/components/fieldset`
|
|
5
|
+
- Tier 0 (RSC — zero client JavaScript); state source native; native element `fieldset + legend`
|
|
6
|
+
- Without JavaScript: full
|
|
7
|
+
- Types file: `dist/components/fieldset.d.ts`
|
|
8
|
+
|
|
9
|
+
## Exports
|
|
10
|
+
|
|
11
|
+
- Runtime: `Fieldset`, `FieldsetLegend`
|
|
12
|
+
- Types: `FieldsetLegendProps`, `FieldsetRootProps`
|
|
13
|
+
|
|
14
|
+
## Props and shapes
|
|
15
|
+
|
|
16
|
+
### FieldsetRootOwnProps
|
|
17
|
+
|
|
18
|
+
| Member | Type | Required | Description |
|
|
19
|
+
| --- | --- | --- | --- |
|
|
20
|
+
| `children` | `ReactNode` | no | |
|
|
21
|
+
|
|
22
|
+
### FieldsetLegendOwnProps
|
|
23
|
+
|
|
24
|
+
| Member | Type | Required | Description |
|
|
25
|
+
| --- | --- | --- | --- |
|
|
26
|
+
| `children` | `ReactNode` | no | |
|
|
27
|
+
|
|
28
|
+
## Other types
|
|
29
|
+
|
|
30
|
+
- `FieldsetRootProps<TAs>`: `RenderableProps<TAs, FieldsetRootOwnProps, Record<string, never>, HTMLFieldSetElement>`
|
|
31
|
+
- `FieldsetLegendProps<TAs>`: `RenderableProps<TAs, FieldsetLegendOwnProps, Record<string, never>, HTMLLegendElement>`
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<!-- Generated from the package source. Do not edit by hand. -->
|
|
2
|
+
# form-error-summary
|
|
3
|
+
|
|
4
|
+
- Import: `@gunkin/uiify/components/form-error-summary`
|
|
5
|
+
- Tier 0 (RSC — zero client JavaScript); state source none; native element `section + heading + ul + links`
|
|
6
|
+
- Without JavaScript: full
|
|
7
|
+
- Types file: `dist/components/form-error-summary.d.ts`
|
|
8
|
+
- Note: Static server-rendered error links; no alert or focus script.
|
|
9
|
+
|
|
10
|
+
## Exports
|
|
11
|
+
|
|
12
|
+
- Runtime: `FormErrorSummary`
|
|
13
|
+
- Types: `FormErrorSummaryError`, `FormErrorSummaryOwnProps`, `FormErrorSummaryProps`
|
|
14
|
+
|
|
15
|
+
## Props and shapes
|
|
16
|
+
|
|
17
|
+
### FormErrorSummaryError
|
|
18
|
+
|
|
19
|
+
| Member | Type | Required | Description |
|
|
20
|
+
| --- | --- | --- | --- |
|
|
21
|
+
| `href` | `string` | yes | |
|
|
22
|
+
| `message` | `ReactNode` | yes | |
|
|
23
|
+
|
|
24
|
+
### FormErrorSummaryOwnProps
|
|
25
|
+
|
|
26
|
+
| Member | Type | Required | Description |
|
|
27
|
+
| --- | --- | --- | --- |
|
|
28
|
+
| `title` | `ReactNode` | yes | |
|
|
29
|
+
| `errors` | `readonly FormErrorSummaryError[]` | yes | |
|
|
30
|
+
|
|
31
|
+
## Other types
|
|
32
|
+
|
|
33
|
+
- `FormErrorSummaryProps<TAs>`: `RenderableProps<TAs, FormErrorSummaryOwnProps, Record<string, never>, HTMLElement>`
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<!-- Generated from the package source. Do not edit by hand. -->
|
|
2
|
+
# input-group
|
|
3
|
+
|
|
4
|
+
- Import: `@gunkin/uiify/components/input-group`
|
|
5
|
+
- Tier 0 (RSC — zero client JavaScript); state source none; native element `div + native controls`
|
|
6
|
+
- Without JavaScript: full
|
|
7
|
+
- Types file: `dist/components/input-group.d.ts`
|
|
8
|
+
- Note: Static form component; keeps independently labeled native input and action.
|
|
9
|
+
|
|
10
|
+
## Exports
|
|
11
|
+
|
|
12
|
+
- Runtime: `InputGroup`, `InputGroupAddon`
|
|
13
|
+
- Types: `InputGroupAddonOwnProps`, `InputGroupAddonProps`, `InputGroupRootOwnProps`, `InputGroupRootProps`
|
|
14
|
+
|
|
15
|
+
## Props and shapes
|
|
16
|
+
|
|
17
|
+
### InputGroupRootOwnProps
|
|
18
|
+
|
|
19
|
+
| Member | Type | Required | Description |
|
|
20
|
+
| --- | --- | --- | --- |
|
|
21
|
+
| `children` | `ReactNode` | no | |
|
|
22
|
+
|
|
23
|
+
### InputGroupAddonOwnProps
|
|
24
|
+
|
|
25
|
+
| Member | Type | Required | Description |
|
|
26
|
+
| --- | --- | --- | --- |
|
|
27
|
+
| `align` | `"start" \| "end"` | yes | |
|
|
28
|
+
| `children` | `ReactNode` | no | |
|
|
29
|
+
|
|
30
|
+
## Other types
|
|
31
|
+
|
|
32
|
+
- `InputGroupRootProps<TAs>`: `RenderableProps<TAs, InputGroupRootOwnProps, Record<string, never>, HTMLDivElement>`
|
|
33
|
+
- `InputGroupAddonProps<TAs>`: `RenderableProps<TAs, InputGroupAddonOwnProps, Record<string, never>, HTMLSpanElement>`
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<!-- Generated from the package source. Do not edit by hand. -->
|
|
2
|
+
# item
|
|
3
|
+
|
|
4
|
+
- Import: `@gunkin/uiify/components/item`
|
|
5
|
+
- Tier 0 (RSC — zero client JavaScript); state source none; native element `li`
|
|
6
|
+
- Without JavaScript: full
|
|
7
|
+
- Types file: `dist/components/item.d.ts`
|
|
8
|
+
|
|
9
|
+
## Exports
|
|
10
|
+
|
|
11
|
+
- Runtime: `Item`, `ItemActions`, `ItemContent`, `ItemMedia`, `ItemMetadata`
|
|
12
|
+
- Types: `ItemActionsOwnProps`, `ItemActionsProps`, `ItemContentOwnProps`, `ItemContentProps`, `ItemMediaOwnProps`, `ItemMediaProps`, `ItemMetadataOwnProps`, `ItemMetadataProps`, `ItemOwnProps`, `ItemProps`
|
|
13
|
+
|
|
14
|
+
## Props and shapes
|
|
15
|
+
|
|
16
|
+
### ItemOwnProps
|
|
17
|
+
|
|
18
|
+
| Member | Type | Required | Description |
|
|
19
|
+
| --- | --- | --- | --- |
|
|
20
|
+
| `children` | `ReactNode` | no | |
|
|
21
|
+
|
|
22
|
+
### ItemMediaOwnProps
|
|
23
|
+
|
|
24
|
+
| Member | Type | Required | Description |
|
|
25
|
+
| --- | --- | --- | --- |
|
|
26
|
+
| `children` | `ReactNode` | no | |
|
|
27
|
+
|
|
28
|
+
### ItemContentOwnProps
|
|
29
|
+
|
|
30
|
+
| Member | Type | Required | Description |
|
|
31
|
+
| --- | --- | --- | --- |
|
|
32
|
+
| `children` | `ReactNode` | no | |
|
|
33
|
+
|
|
34
|
+
### ItemMetadataOwnProps
|
|
35
|
+
|
|
36
|
+
| Member | Type | Required | Description |
|
|
37
|
+
| --- | --- | --- | --- |
|
|
38
|
+
| `children` | `ReactNode` | no | |
|
|
39
|
+
|
|
40
|
+
### ItemActionsOwnProps
|
|
41
|
+
|
|
42
|
+
| Member | Type | Required | Description |
|
|
43
|
+
| --- | --- | --- | --- |
|
|
44
|
+
| `children` | `ReactNode` | no | |
|
|
45
|
+
|
|
46
|
+
## Other types
|
|
47
|
+
|
|
48
|
+
- `ItemProps<TAs>`: `RenderableProps<TAs, ItemOwnProps, Record<string, never>, HTMLElement>`
|
|
49
|
+
- `ItemMediaProps<TAs>`: `RenderableProps<TAs, ItemMediaOwnProps, Record<string, never>, HTMLElement>`
|
|
50
|
+
- `ItemContentProps<TAs>`: `RenderableProps<TAs, ItemContentOwnProps, Record<string, never>, HTMLElement>`
|
|
51
|
+
- `ItemMetadataProps<TAs>`: `RenderableProps<TAs, ItemMetadataOwnProps, Record<string, never>, HTMLElement>`
|
|
52
|
+
- `ItemActionsProps<TAs>`: `RenderableProps<TAs, ItemActionsOwnProps, Record<string, never>, HTMLElement>`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!-- Generated from the package source. Do not edit by hand. -->
|
|
2
|
+
# progress
|
|
3
|
+
|
|
4
|
+
- Import: `@gunkin/uiify/components/progress`
|
|
5
|
+
- Tier 0 (RSC — zero client JavaScript); state source S1; native element `progress`
|
|
6
|
+
- Without JavaScript: full
|
|
7
|
+
- Types file: `dist/components/progress.d.ts`
|
|
8
|
+
|
|
9
|
+
## Exports
|
|
10
|
+
|
|
11
|
+
- Runtime: `Progress`
|
|
12
|
+
- Types: `ProgressProps`
|
|
13
|
+
|
|
14
|
+
## Other types
|
|
15
|
+
|
|
16
|
+
- `ProgressProps`: `ComponentPropsWithRef<"progress">`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ElementType, ReactElement } from "react";
|
|
2
|
+
import type { AlertDescriptionProps, AlertProps, AlertTitleProps } from "./types.js";
|
|
3
|
+
export declare function Alert<TAs extends ElementType = "div">(props: AlertProps<TAs>): ReactElement | null;
|
|
4
|
+
export declare namespace Alert {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function AlertTitle<TAs extends ElementType = "div">(props: AlertTitleProps<TAs>): ReactElement | null;
|
|
8
|
+
export declare namespace AlertTitle {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function AlertDescription<TAs extends ElementType = "div">(props: AlertDescriptionProps<TAs>): ReactElement | null;
|
|
12
|
+
export declare namespace AlertDescription {
|
|
13
|
+
var displayName: string;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=Alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIrF,wBAAgB,KAAK,CAAC,GAAG,SAAS,WAAW,GAAG,KAAK,EACnD,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,GACrB,YAAY,GAAG,IAAI,CA8BrB;yBAhCe,KAAK;;;AAoCrB,wBAAgB,UAAU,CAAC,GAAG,SAAS,WAAW,GAAG,KAAK,EACxD,KAAK,EAAE,eAAe,CAAC,GAAG,CAAC,GAC1B,YAAY,GAAG,IAAI,CASrB;yBAXe,UAAU;;;AAa1B,wBAAgB,gBAAgB,CAAC,GAAG,SAAS,WAAW,GAAG,KAAK,EAC9D,KAAK,EAAE,qBAAqB,CAAC,GAAG,CAAC,GAChC,YAAY,GAAG,IAAI,CAarB;yBAfe,gBAAgB"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useRenderElement } from "@gunkin/uiify/core/render";
|
|
3
|
+
const symbols = { secondary: "\u24D8", success: "\u2713", warning: "\u26A0\uFE0E", destructive: "\xD7" };
|
|
4
|
+
function Alert(props) {
|
|
5
|
+
const {
|
|
6
|
+
as,
|
|
7
|
+
render,
|
|
8
|
+
variant = "secondary",
|
|
9
|
+
symbol = symbols[variant],
|
|
10
|
+
children,
|
|
11
|
+
...consumerProps
|
|
12
|
+
} = props;
|
|
13
|
+
return useRenderElement({
|
|
14
|
+
as,
|
|
15
|
+
defaultTag: "div",
|
|
16
|
+
props: {
|
|
17
|
+
...consumerProps,
|
|
18
|
+
"data-uiify-alert": "",
|
|
19
|
+
"data-variant": variant,
|
|
20
|
+
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
21
|
+
symbol !== false && /* @__PURE__ */ jsx("span", { "data-part": "symbol", "aria-hidden": "true", children: symbol }),
|
|
22
|
+
children
|
|
23
|
+
] })
|
|
24
|
+
},
|
|
25
|
+
render,
|
|
26
|
+
state: {}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
Alert.displayName = "Alert";
|
|
30
|
+
function AlertTitle(props) {
|
|
31
|
+
const { as, render, ...consumerProps } = props;
|
|
32
|
+
return useRenderElement({
|
|
33
|
+
as,
|
|
34
|
+
defaultTag: "div",
|
|
35
|
+
props: { ...consumerProps, "data-uiify-alert-title": "", "data-part": "title" },
|
|
36
|
+
render,
|
|
37
|
+
state: {}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function AlertDescription(props) {
|
|
41
|
+
const { as, render, ...consumerProps } = props;
|
|
42
|
+
return useRenderElement({
|
|
43
|
+
as,
|
|
44
|
+
defaultTag: "div",
|
|
45
|
+
props: {
|
|
46
|
+
...consumerProps,
|
|
47
|
+
"data-uiify-alert-description": "",
|
|
48
|
+
"data-part": "description"
|
|
49
|
+
},
|
|
50
|
+
render,
|
|
51
|
+
state: {}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
AlertTitle.displayName = "AlertTitle";
|
|
55
|
+
AlertDescription.displayName = "AlertDescription";
|
|
56
|
+
export {
|
|
57
|
+
Alert,
|
|
58
|
+
AlertDescription,
|
|
59
|
+
AlertTitle
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=Alert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/alert/Alert.tsx"],"sourcesContent":["import type { ElementType, ReactElement } from \"react\";\nimport { useRenderElement } from \"@gunkin/uiify/core/render\";\nimport type { AlertDescriptionProps, AlertProps, AlertTitleProps } from \"./types.js\";\n\nconst symbols = { secondary: \"ⓘ\", success: \"✓\", warning: \"⚠︎\", destructive: \"×\" };\n\nexport function Alert<TAs extends ElementType = \"div\">(\n props: AlertProps<TAs>,\n): ReactElement | null {\n const {\n as,\n render,\n variant = \"secondary\",\n symbol = symbols[variant],\n children,\n ...consumerProps\n } = props as AlertProps<\"div\">;\n return useRenderElement({\n as,\n defaultTag: \"div\",\n props: {\n ...consumerProps,\n \"data-uiify-alert\": \"\",\n \"data-variant\": variant,\n children: (\n <>\n {symbol !== false && (\n <span data-part=\"symbol\" aria-hidden=\"true\">\n {symbol}\n </span>\n )}\n {children}\n </>\n ),\n },\n render,\n state: {},\n });\n}\n\nAlert.displayName = \"Alert\";\n\nexport function AlertTitle<TAs extends ElementType = \"div\">(\n props: AlertTitleProps<TAs>,\n): ReactElement | null {\n const { as, render, ...consumerProps } = props as AlertTitleProps<\"div\">;\n return useRenderElement({\n as,\n defaultTag: \"div\",\n props: { ...consumerProps, \"data-uiify-alert-title\": \"\", \"data-part\": \"title\" },\n render,\n state: {},\n });\n}\n\nexport function AlertDescription<TAs extends ElementType = \"div\">(\n props: AlertDescriptionProps<TAs>,\n): ReactElement | null {\n const { as, render, ...consumerProps } = props as AlertDescriptionProps<\"div\">;\n return useRenderElement({\n as,\n defaultTag: \"div\",\n props: {\n ...consumerProps,\n \"data-uiify-alert-description\": \"\",\n \"data-part\": \"description\",\n },\n render,\n state: {},\n });\n}\n\nAlertTitle.displayName = \"AlertTitle\";\nAlertDescription.displayName = \"AlertDescription\";\n"],"mappings":"AAyBQ,mBAEI,KAFJ;AAxBR,SAAS,wBAAwB;AAGjC,MAAM,UAAU,EAAE,WAAW,UAAK,SAAS,UAAK,SAAS,gBAAM,aAAa,OAAI;AAEzE,SAAS,MACd,OACqB;AACrB,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,SAAS,QAAQ,OAAO;AAAA,IACxB;AAAA,IACA,GAAG;AAAA,EACL,IAAI;AACJ,SAAO,iBAAiB;AAAA,IACtB;AAAA,IACA,YAAY;AAAA,IACZ,OAAO;AAAA,MACL,GAAG;AAAA,MACH,oBAAoB;AAAA,MACpB,gBAAgB;AAAA,MAChB,UACE,iCACG;AAAA,mBAAW,SACV,oBAAC,UAAK,aAAU,UAAS,eAAY,QAClC,kBACH;AAAA,QAED;AAAA,SACH;AAAA,IAEJ;AAAA,IACA;AAAA,IACA,OAAO,CAAC;AAAA,EACV,CAAC;AACH;AAEA,MAAM,cAAc;AAEb,SAAS,WACd,OACqB;AACrB,QAAM,EAAE,IAAI,QAAQ,GAAG,cAAc,IAAI;AACzC,SAAO,iBAAiB;AAAA,IACtB;AAAA,IACA,YAAY;AAAA,IACZ,OAAO,EAAE,GAAG,eAAe,0BAA0B,IAAI,aAAa,QAAQ;AAAA,IAC9E;AAAA,IACA,OAAO,CAAC;AAAA,EACV,CAAC;AACH;AAEO,SAAS,iBACd,OACqB;AACrB,QAAM,EAAE,IAAI,QAAQ,GAAG,cAAc,IAAI;AACzC,SAAO,iBAAiB;AAAA,IACtB;AAAA,IACA,YAAY;AAAA,IACZ,OAAO;AAAA,MACL,GAAG;AAAA,MACH,gCAAgC;AAAA,MAChC,aAAa;AAAA,IACf;AAAA,IACA;AAAA,IACA,OAAO,CAAC;AAAA,EACV,CAAC;AACH;AAEA,WAAW,cAAc;AACzB,iBAAiB,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACjE,YAAY,EACV,wBAAwB,EACxB,qBAAqB,EACrB,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,YAAY,GACb,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/alert/index.ts"],"sourcesContent":["export { Alert, AlertDescription, AlertTitle } from \"./Alert.js\";\nexport type {\n AlertDescriptionOwnProps,\n AlertDescriptionProps,\n AlertOwnProps,\n AlertProps,\n AlertTitleOwnProps,\n AlertTitleProps,\n AlertVariant,\n} from \"./types.js\";\n"],"mappings":"AAAA,SAAS,OAAO,kBAAkB,kBAAkB;","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
import type { RenderableProps } from "@gunkin/uiify/core/render";
|
|
3
|
+
export type AlertVariant = "secondary" | "success" | "warning" | "destructive";
|
|
4
|
+
export interface AlertOwnProps {
|
|
5
|
+
readonly children?: ReactNode;
|
|
6
|
+
/** Visual status. Defaults to secondary without adding a live role. */
|
|
7
|
+
readonly variant?: AlertVariant;
|
|
8
|
+
/** Override the decorative text symbol, or hide it with false. */
|
|
9
|
+
readonly symbol?: string | false;
|
|
10
|
+
}
|
|
11
|
+
export type AlertProps<TAs extends ElementType = "div"> = RenderableProps<TAs, AlertOwnProps, Record<string, never>, HTMLElement>;
|
|
12
|
+
export interface AlertTitleOwnProps {
|
|
13
|
+
readonly children?: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export type AlertTitleProps<TAs extends ElementType = "div"> = RenderableProps<TAs, AlertTitleOwnProps, Record<string, never>, HTMLElement>;
|
|
16
|
+
export interface AlertDescriptionOwnProps {
|
|
17
|
+
readonly children?: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export type AlertDescriptionProps<TAs extends ElementType = "div"> = RenderableProps<TAs, AlertDescriptionOwnProps, Record<string, never>, HTMLElement>;
|
|
20
|
+
//# sourceMappingURL=types.d.ts.map
|