@webority/ui-react 0.13.5 → 0.14.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/dist/types/components/AppActionIcon.d.ts +5 -1
- package/dist/types/components/AppAlert.d.ts +21 -4
- package/dist/types/components/AppChoiceCard.d.ts +13 -3
- package/dist/types/components/AppConfirmDialog.d.ts +4 -1
- package/dist/types/components/AppCountrySelect.d.ts +14 -0
- package/dist/types/components/AppInfoTip.d.ts +2 -1
- package/dist/types/components/AppRepeater.d.ts +4 -1
- package/dist/types/components/AppSelect.d.ts +3 -0
- package/dist/types/components/ModalIcons.d.ts +6 -0
- package/dist/types/components/renderIconProp.d.ts +4 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/ui-react.js +606 -527
- package/package.json +3 -3
- package/dist/types/components/AppCallout.d.ts +0 -38
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/ui-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Webority shared React component library — App* primitives on react-bootstrap + the @webority/theme design system.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@webority/theme": "0.
|
|
32
|
-
"@webority/ui-elements": "0.
|
|
31
|
+
"@webority/theme": "0.14.0",
|
|
32
|
+
"@webority/ui-elements": "0.14.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@webority/analytics": "^0.5.2",
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A soft branded aside that EXPLAINS something — how a calculation works, what a
|
|
3
|
-
* setting affects, what happens next in a flow. A thick coloured left edge marks it
|
|
4
|
-
* as an aside.
|
|
5
|
-
*
|
|
6
|
-
* Distinct from `AppAlert`, and the difference is not cosmetic: an alert reports a
|
|
7
|
-
* *state* ("we couldn't save", "your trial ends in 3 days") and goes away when that
|
|
8
|
-
* state does. A callout is part of the page's content and stays regardless. Using an
|
|
9
|
-
* alert for guidance teaches users to ignore alerts.
|
|
10
|
-
*
|
|
11
|
-
* @param {object} props
|
|
12
|
-
* @param {import('react').ReactNode} props.children The explanation. `<strong>` is styled.
|
|
13
|
-
* @param {"info"|"success"|"warning"|"danger"} [props.tone="info"] The colour, mapped to intent.
|
|
14
|
-
* @param {import('react').ReactNode} [props.title] A bold heading line above the body.
|
|
15
|
-
* @param {string|import('react').ReactNode} [props.icon] Leading glyph — a semantic icon name or a node. Defaults to the tone's badge glyph; pass `null` for none.
|
|
16
|
-
* @param {string} [props.image] A custom image URL shown in the badge instead of the icon glyph (fills the circle).
|
|
17
|
-
* @param {string} [props.imageAlt] Alt text for the custom image.
|
|
18
|
-
* @param {"md"|"sm"} [props.size="md"] `sm` is a compact single line with tone-coloured text.
|
|
19
|
-
* @param {boolean} [props.bordered=true] Draw the soft ring and thick tone-coloured left edge. `false` keeps only the tint fill.
|
|
20
|
-
* @param {import('react').ReactNode} [props.action] A trailing action pinned to the right — usually an `AppButton`.
|
|
21
|
-
* @param {boolean} [props.dismissible=false] Show a × on the right that removes the callout.
|
|
22
|
-
* @param {() => void} [props.onDismiss] Called after the callout is dismissed.
|
|
23
|
-
* @param {string} [props.className]
|
|
24
|
-
*/
|
|
25
|
-
export default function AppCallout({ children, tone, title, icon, image, imageAlt, size, bordered, action, dismissible, onDismiss, className, ...rest }: {
|
|
26
|
-
children: import('react').ReactNode;
|
|
27
|
-
tone?: "info" | "success" | "warning" | "danger";
|
|
28
|
-
title?: import('react').ReactNode;
|
|
29
|
-
icon?: string | import('react').ReactNode;
|
|
30
|
-
image?: string;
|
|
31
|
-
imageAlt?: string;
|
|
32
|
-
size?: "md" | "sm";
|
|
33
|
-
bordered?: boolean;
|
|
34
|
-
action?: import('react').ReactNode;
|
|
35
|
-
dismissible?: boolean;
|
|
36
|
-
onDismiss?: () => void;
|
|
37
|
-
className?: string;
|
|
38
|
-
}): import("react").JSX.Element;
|