cleanplate 0.3.6 → 0.3.8
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/dist/components/alert/Alert.d.ts +1 -1
- package/dist/components/alert/Alert.d.ts.map +1 -1
- package/dist/components/app-shell/AppShell.d.ts.map +1 -1
- package/dist/components/dropdown/Dropdown.d.ts +2 -2
- package/dist/components/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/header/Header.d.ts.map +1 -1
- package/dist/components/icon/material-icon-names.d.ts +2 -2
- package/dist/components/icon/material-icon-names.d.ts.map +1 -1
- package/dist/components/page-header/PageHeader.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.css +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.js +4 -4
- package/docs/Alert.md +3 -4
- package/llms.txt +2 -2
- package/package.json +1 -1
package/docs/Alert.md
CHANGED
|
@@ -7,7 +7,7 @@ Purpose: Displays a short message with an optional variant icon and dismiss butt
|
|
|
7
7
|
| Prop | Type | Required | Default | Description |
|
|
8
8
|
| --- | --- | --- | --- | --- |
|
|
9
9
|
| message | string | no | — | Main message text shown in the alert. |
|
|
10
|
-
| size | "small" \| "medium"
|
|
10
|
+
| size | "small" \| "medium" | no | "medium" | Size of the alert and its icon/close button. |
|
|
11
11
|
| variant | "success" \| "error" \| "warning" \| "info" \| "default" | no | "info" | Visual variant; each has a matching icon (e.g. success → check_circle, error → error). |
|
|
12
12
|
| canDismiss | boolean | no | false | When true, shows a close button that calls onDismiss and unmounts the alert. |
|
|
13
13
|
| onDismiss | function | no | — | Called when the user dismisses the alert (clicks the close button). |
|
|
@@ -17,7 +17,7 @@ Purpose: Displays a short message with an optional variant icon and dismiss butt
|
|
|
17
17
|
|
|
18
18
|
### AlertSize
|
|
19
19
|
```typescript
|
|
20
|
-
type AlertSize = "small" | "medium"
|
|
20
|
+
type AlertSize = "small" | "medium";
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
### AlertVariant
|
|
@@ -83,8 +83,7 @@ import { Alert } from "cleanplate";
|
|
|
83
83
|
export const Example = () => (
|
|
84
84
|
<>
|
|
85
85
|
<Alert message="Small alert" variant="info" size="small" margin="b-2" />
|
|
86
|
-
<Alert message="Medium alert" variant="info" size="medium"
|
|
87
|
-
<Alert message="Large alert" variant="info" size="large" />
|
|
86
|
+
<Alert message="Medium alert" variant="info" size="medium" />
|
|
88
87
|
</>
|
|
89
88
|
);
|
|
90
89
|
```
|
package/llms.txt
CHANGED
|
@@ -94,7 +94,7 @@ All component documentation is located in the `docs/` folder. The following docu
|
|
|
94
94
|
### Alert Component
|
|
95
95
|
- File: `docs/Alert.md`
|
|
96
96
|
- Purpose: Displays a short message with optional variant icon and dismiss button. Use for inline feedback (success, error, warning, info) or neutral notices.
|
|
97
|
-
- Key Features: Variants (default, info, warning, error, success), sizes (small, medium
|
|
97
|
+
- Key Features: Variants (default, info, warning, error, success), sizes (small, medium), dismissible with onDismiss, margin spacing (suffix API), unmounts on dismiss
|
|
98
98
|
- Types: AlertProps, AlertSize, AlertVariant, AlertMargin, SpacingOption
|
|
99
99
|
- Related Components: Typography, Container, Button, Icon (used internally)
|
|
100
100
|
|
|
@@ -194,7 +194,7 @@ All component documentation is located in the `docs/` folder. The following docu
|
|
|
194
194
|
### MenuList Component
|
|
195
195
|
- File: `docs/MenuList.md`
|
|
196
196
|
- Purpose: Renders a list of navigational items with optional icons, active state highlighting, and customizable layout.
|
|
197
|
-
- Key Features: items (label, value, icon), activeItem, direction (horizontal, vertical), sizes (small, medium, large), variants (light, dark), margin (suffix API), onMenuClick(item), Animated entrance
|
|
197
|
+
- Key Features: items (label, value, icon), activeItem, direction (horizontal, vertical), sizes (small, medium, large), variants (light, dark), margin (suffix API), onMenuClick(item), Animated entrance
|
|
198
198
|
- Types: MenuListProps, MenuListItem, MenuListSize, MenuListVariant, MenuListDirection, MenuListMargin
|
|
199
199
|
- Related Components: Dropdown (content), Header (navigation), Container, Typography, Icon, Animated (used internally)
|
|
200
200
|
|