@mich8060/unified-design-system 0.2.13 → 0.2.14
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/ai/discovery.json +33 -0
- package/dist/ai/examples/index.cjs +1 -0
- package/dist/ai/examples/index.js +1 -0
- package/dist/ai/examples/training.examples.cjs +1 -0
- package/dist/ai/examples/training.examples.js +1 -0
- package/dist/ai/index.cjs +1 -1
- package/dist/ai/index.js +1 -1
- package/dist/ai/manifest/components.manifest.cjs +1 -1
- package/dist/ai/manifest/components.manifest.js +1 -1
- package/dist/ai/manifest/composition.manifest.cjs +1 -0
- package/dist/ai/manifest/composition.manifest.js +1 -0
- package/dist/ai/manifest/governance.manifest.cjs +1 -1
- package/dist/ai/manifest/governance.manifest.js +1 -1
- package/dist/ai/manifest/index.cjs +1 -0
- package/dist/ai/manifest/index.js +1 -0
- package/dist/ai/manifest/layout.manifest.cjs +1 -1
- package/dist/ai/manifest/layout.manifest.js +1 -1
- package/dist/ai/manifest/prop-aliases.manifest.cjs +1 -0
- package/dist/ai/manifest/prop-aliases.manifest.js +1 -0
- package/dist/ai/manifest/system.manifest.cjs +1 -1
- package/dist/ai/manifest/system.manifest.js +1 -1
- package/dist/ai/manifest.json +2801 -0
- package/dist/ai/policies/policy.engine.cjs +1 -1
- package/dist/ai/policies/policy.engine.js +1 -1
- package/dist/ai/policies/rules/composition.rules.cjs +1 -1
- package/dist/ai/policies/rules/composition.rules.js +1 -1
- package/dist/ai/policies/rules/props.rules.cjs +1 -0
- package/dist/ai/policies/rules/props.rules.js +1 -0
- package/dist/ai/schemas/ai-output.schema.json +71 -0
- package/dist/ai/sdk/index.cjs +1 -0
- package/dist/ai/sdk/index.js +1 -0
- package/dist/ai/sdk/runtime-sdk.cjs +2 -0
- package/dist/ai/sdk/runtime-sdk.js +2 -0
- package/dist/ai/templates/layouts.json +181 -0
- package/dist/ai/validation/deterministicFeedback.cjs +1 -0
- package/dist/ai/validation/deterministicFeedback.js +1 -0
- package/dist/ai/validation/index.cjs +1 -0
- package/dist/ai/validation/index.js +1 -0
- package/dist/ai/validation/validateAIOutput.cjs +1 -1
- package/dist/ai/validation/validateAIOutput.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.cjs +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Button/Button.cjs +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Chip/Chip.cjs +1 -1
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/Dialog/Dialog.cjs +1 -1
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/DotStatus/DotStatus.cjs +1 -1
- package/dist/components/DotStatus/DotStatus.js +1 -1
- package/dist/components/EmptyState/EmptyState.cjs +1 -1
- package/dist/components/EmptyState/EmptyState.js +1 -1
- package/dist/components/Field/Field.cjs +1 -1
- package/dist/components/Field/Field.js +1 -1
- package/dist/components/FileUpload/FileUpload.cjs +1 -1
- package/dist/components/FileUpload/FileUpload.js +1 -1
- package/dist/components/Menu/Menu.cjs +1 -1
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Modal/Modal.cjs +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Pagination/Pagination.cjs +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/ProgressCircle/ProgressCircle.cjs +1 -1
- package/dist/components/ProgressCircle/ProgressCircle.js +1 -1
- package/dist/components/ProgressIndicator/ProgressIndicator.cjs +1 -1
- package/dist/components/ProgressIndicator/ProgressIndicator.js +1 -1
- package/dist/components/Steps/Steps.cjs +1 -1
- package/dist/components/Steps/Steps.js +1 -1
- package/dist/components/Text/Text.cjs +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/Tooltip/Tooltip.cjs +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/design-system/ai/audit/audit.types.d.ts +1 -0
- package/dist/design-system/ai/examples/index.d.ts +4 -0
- package/dist/design-system/ai/examples/training.examples.d.ts +22 -0
- package/dist/design-system/ai/index.d.ts +9 -3
- package/dist/design-system/ai/manifest/composition.manifest.d.ts +11 -0
- package/dist/design-system/ai/manifest/governance.manifest.d.ts +5 -0
- package/dist/design-system/ai/manifest/index.d.ts +9 -0
- package/dist/design-system/ai/manifest/prop-aliases.manifest.d.ts +10 -0
- package/dist/design-system/ai/manifest/system.manifest.d.ts +2 -0
- package/dist/design-system/ai/manifest/types.d.ts +3 -0
- package/dist/design-system/ai/policies/rules/props.rules.d.ts +2 -0
- package/dist/design-system/ai/sdk/index.d.ts +1 -0
- package/dist/design-system/ai/sdk/runtime-sdk.d.ts +21 -0
- package/dist/design-system/ai/validation/deterministicFeedback.d.ts +15 -0
- package/dist/design-system/ai/validation/index.d.ts +5 -0
- package/dist/design-system/ai/validation/validateAIOutput.d.ts +13 -0
- package/dist/design-system/components/Button/Button.d.ts +1 -1
- package/dist/design-system/components/Button/Button.types.d.ts +1 -0
- package/dist/design-system/components/Chip/Chip.d.ts +4 -3
- package/dist/design-system/components/Chip/Chip.types.d.ts +13 -9
- package/dist/design-system/components/Dialog/Dialog.types.d.ts +9 -8
- package/dist/design-system/components/Field/Field.d.ts +1 -1
- package/dist/design-system/components/Field/Field.types.d.ts +11 -9
- package/dist/design-system/components/FileUpload/FileUpload.d.ts +1 -1
- package/dist/design-system/components/FileUpload/FileUpload.types.d.ts +2 -0
- package/dist/design-system/components/Pagination/Pagination.d.ts +5 -3
- package/dist/design-system/components/Pagination/Pagination.types.d.ts +4 -1
- package/dist/design-system/components/ProgressCircle/ProgressCircle.d.ts +3 -2
- package/dist/design-system/components/ProgressCircle/ProgressCircle.types.d.ts +7 -3
- package/dist/design-system/components/ProgressIndicator/ProgressIndicator.d.ts +2 -1
- package/dist/design-system/components/ProgressIndicator/ProgressIndicator.types.d.ts +8 -4
- package/dist/design-system/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/design-system/components/Tooltip/Tooltip.types.d.ts +1 -0
- package/dist/design-system/generated/component-api.d.ts +1568 -0
- package/dist/design-system/index.d.ts +1 -2
- package/dist/generated/component-api.cjs +1 -0
- package/dist/generated/component-api.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +23 -19
- package/dist/components/Accordion/Accordion.spec.cjs +0 -1
- package/dist/components/Accordion/Accordion.spec.js +0 -1
- package/dist/components/ActionMenu/ActionMenu.spec.cjs +0 -1
- package/dist/components/ActionMenu/ActionMenu.spec.js +0 -1
- package/dist/components/Avatar/Avatar.spec.cjs +0 -1
- package/dist/components/Avatar/Avatar.spec.js +0 -1
- package/dist/components/Badge/Badge.spec.cjs +0 -1
- package/dist/components/Badge/Badge.spec.js +0 -1
- package/dist/components/Branding/Branding.spec.cjs +0 -1
- package/dist/components/Branding/Branding.spec.js +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.spec.cjs +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.spec.js +0 -1
- package/dist/components/Button/Button.spec.cjs +0 -1
- package/dist/components/Button/Button.spec.js +0 -1
- package/dist/components/Calendar/Calendar.spec.cjs +0 -1
- package/dist/components/Calendar/Calendar.spec.js +0 -1
- package/dist/components/Card/Card.spec.cjs +0 -1
- package/dist/components/Card/Card.spec.js +0 -1
- package/dist/components/Checkbox/Checkbox.spec.cjs +0 -1
- package/dist/components/Checkbox/Checkbox.spec.js +0 -1
- package/dist/components/Chip/Chip.spec.cjs +0 -1
- package/dist/components/Chip/Chip.spec.js +0 -1
- package/dist/components/Code/Code.spec.cjs +0 -1
- package/dist/components/Code/Code.spec.js +0 -1
- package/dist/components/Container/Container.spec.cjs +0 -1
- package/dist/components/Container/Container.spec.js +0 -1
- package/dist/components/Datepicker/Datepicker.spec.cjs +0 -1
- package/dist/components/Datepicker/Datepicker.spec.js +0 -1
- package/dist/components/Dialog/Dialog.spec.cjs +0 -1
- package/dist/components/Dialog/Dialog.spec.js +0 -1
- package/dist/components/Divider/Divider.spec.cjs +0 -1
- package/dist/components/Divider/Divider.spec.js +0 -1
- package/dist/components/DotStatus/DotStatus.spec.cjs +0 -1
- package/dist/components/DotStatus/DotStatus.spec.js +0 -1
- package/dist/components/Dropdown/Dropdown.spec.cjs +0 -1
- package/dist/components/Dropdown/Dropdown.spec.js +0 -1
- package/dist/components/EmptyState/EmptyState.spec.cjs +0 -1
- package/dist/components/EmptyState/EmptyState.spec.js +0 -1
- package/dist/components/EventCard/EventCard.spec.cjs +0 -1
- package/dist/components/EventCard/EventCard.spec.js +0 -1
- package/dist/components/Field/Field.spec.cjs +0 -1
- package/dist/components/Field/Field.spec.js +0 -1
- package/dist/components/FileUpload/FileUpload.spec.cjs +0 -1
- package/dist/components/FileUpload/FileUpload.spec.js +0 -1
- package/dist/components/Flex/Flex.spec.cjs +0 -1
- package/dist/components/Flex/Flex.spec.js +0 -1
- package/dist/components/Icon/Icon.spec.cjs +0 -1
- package/dist/components/Icon/Icon.spec.js +0 -1
- package/dist/components/ImageAspect/ImageAspect.spec.cjs +0 -1
- package/dist/components/ImageAspect/ImageAspect.spec.js +0 -1
- package/dist/components/Key/Key.spec.cjs +0 -1
- package/dist/components/Key/Key.spec.js +0 -1
- package/dist/components/Menu/Menu.spec.cjs +0 -1
- package/dist/components/Menu/Menu.spec.js +0 -1
- package/dist/components/MicroCalendar/MicroCalendar.spec.cjs +0 -1
- package/dist/components/MicroCalendar/MicroCalendar.spec.js +0 -1
- package/dist/components/Modal/Modal.spec.cjs +0 -1
- package/dist/components/Modal/Modal.spec.js +0 -1
- package/dist/components/Pagination/Pagination.spec.cjs +0 -1
- package/dist/components/Pagination/Pagination.spec.js +0 -1
- package/dist/components/PillToggle/PillToggle.cjs +0 -1
- package/dist/components/PillToggle/PillToggle.js +0 -1
- package/dist/components/PillToggle/PillToggle.spec.cjs +0 -1
- package/dist/components/PillToggle/PillToggle.spec.js +0 -1
- package/dist/components/Playground/Playground.cjs +0 -9
- package/dist/components/Playground/Playground.js +0 -9
- package/dist/components/Playground/Playground.spec.cjs +0 -1
- package/dist/components/Playground/Playground.spec.js +0 -1
- package/dist/components/ProgressCircle/ProgressCircle.spec.cjs +0 -1
- package/dist/components/ProgressCircle/ProgressCircle.spec.js +0 -1
- package/dist/components/ProgressIndicator/ProgressIndicator.spec.cjs +0 -1
- package/dist/components/ProgressIndicator/ProgressIndicator.spec.js +0 -1
- package/dist/components/Radio/Radio.spec.cjs +0 -1
- package/dist/components/Radio/Radio.spec.js +0 -1
- package/dist/components/Slider/Slider.spec.cjs +0 -1
- package/dist/components/Slider/Slider.spec.js +0 -1
- package/dist/components/Status/Status.spec.cjs +0 -1
- package/dist/components/Status/Status.spec.js +0 -1
- package/dist/components/Steps/Steps.spec.cjs +0 -1
- package/dist/components/Steps/Steps.spec.js +0 -1
- package/dist/components/Table/Table.spec.cjs +0 -1
- package/dist/components/Table/Table.spec.js +0 -1
- package/dist/components/Tabs/Tabs.spec.cjs +0 -1
- package/dist/components/Tabs/Tabs.spec.js +0 -1
- package/dist/components/Tag/Tag.spec.cjs +0 -1
- package/dist/components/Tag/Tag.spec.js +0 -1
- package/dist/components/Text/Text.spec.cjs +0 -1
- package/dist/components/Text/Text.spec.js +0 -1
- package/dist/components/TextInput/TextInput.spec.cjs +0 -1
- package/dist/components/TextInput/TextInput.spec.js +0 -1
- package/dist/components/Textarea/Textarea.spec.cjs +0 -1
- package/dist/components/Textarea/Textarea.spec.js +0 -1
- package/dist/components/Toast/Toast.spec.cjs +0 -1
- package/dist/components/Toast/Toast.spec.js +0 -1
- package/dist/components/Toggle/Toggle.spec.cjs +0 -1
- package/dist/components/Toggle/Toggle.spec.js +0 -1
- package/dist/components/Tooltip/Tooltip.spec.cjs +0 -1
- package/dist/components/Tooltip/Tooltip.spec.js +0 -1
- package/dist/design-system/components/Accordion/Accordion.spec.d.ts +0 -4
- package/dist/design-system/components/ActionMenu/ActionMenu.spec.d.ts +0 -4
- package/dist/design-system/components/Avatar/Avatar.spec.d.ts +0 -6
- package/dist/design-system/components/Badge/Badge.spec.d.ts +0 -12
- package/dist/design-system/components/Branding/Branding.spec.d.ts +0 -6
- package/dist/design-system/components/Breadcrumb/Breadcrumb.spec.d.ts +0 -4
- package/dist/design-system/components/Button/Button.spec.d.ts +0 -12
- package/dist/design-system/components/Calendar/Calendar.spec.d.ts +0 -4
- package/dist/design-system/components/Card/Card.spec.d.ts +0 -4
- package/dist/design-system/components/Checkbox/Checkbox.spec.d.ts +0 -4
- package/dist/design-system/components/Chip/Chip.spec.d.ts +0 -13
- package/dist/design-system/components/Code/Code.spec.d.ts +0 -10
- package/dist/design-system/components/Container/Container.spec.d.ts +0 -2
- package/dist/design-system/components/Datepicker/Datepicker.spec.d.ts +0 -6
- package/dist/design-system/components/Dialog/Dialog.spec.d.ts +0 -8
- package/dist/design-system/components/Divider/Divider.spec.d.ts +0 -10
- package/dist/design-system/components/DotStatus/DotStatus.spec.d.ts +0 -10
- package/dist/design-system/components/Dropdown/Dropdown.spec.d.ts +0 -12
- package/dist/design-system/components/EmptyState/EmptyState.spec.d.ts +0 -2
- package/dist/design-system/components/EventCard/EventCard.spec.d.ts +0 -8
- package/dist/design-system/components/Field/Field.spec.d.ts +0 -4
- package/dist/design-system/components/FileUpload/FileUpload.spec.d.ts +0 -6
- package/dist/design-system/components/Flex/Flex.spec.d.ts +0 -2
- package/dist/design-system/components/Icon/Icon.spec.d.ts +0 -6
- package/dist/design-system/components/ImageAspect/ImageAspect.spec.d.ts +0 -8
- package/dist/design-system/components/Key/Key.spec.d.ts +0 -8
- package/dist/design-system/components/Menu/Menu.spec.d.ts +0 -6
- package/dist/design-system/components/MicroCalendar/MicroCalendar.spec.d.ts +0 -4
- package/dist/design-system/components/Modal/Modal.spec.d.ts +0 -8
- package/dist/design-system/components/Pagination/Pagination.spec.d.ts +0 -6
- package/dist/design-system/components/PillToggle/PillToggle.d.ts +0 -13
- package/dist/design-system/components/PillToggle/PillToggle.spec.d.ts +0 -6
- package/dist/design-system/components/PillToggle/PillToggle.types.d.ts +0 -9
- package/dist/design-system/components/PillToggle/index.d.ts +0 -3
- package/dist/design-system/components/Playground/Playground.d.ts +0 -12
- package/dist/design-system/components/Playground/Playground.spec.d.ts +0 -6
- package/dist/design-system/components/Playground/Playground.types.d.ts +0 -7
- package/dist/design-system/components/Playground/index.d.ts +0 -3
- package/dist/design-system/components/ProgressCircle/ProgressCircle.spec.d.ts +0 -10
- package/dist/design-system/components/ProgressIndicator/ProgressIndicator.spec.d.ts +0 -10
- package/dist/design-system/components/Radio/Radio.spec.d.ts +0 -4
- package/dist/design-system/components/Slider/Slider.spec.d.ts +0 -4
- package/dist/design-system/components/Status/Status.spec.d.ts +0 -11
- package/dist/design-system/components/Steps/Steps.spec.d.ts +0 -11
- package/dist/design-system/components/Table/Table.spec.d.ts +0 -4
- package/dist/design-system/components/Tabs/Tabs.spec.d.ts +0 -7
- package/dist/design-system/components/Tag/Tag.spec.d.ts +0 -13
- package/dist/design-system/components/Text/Text.spec.d.ts +0 -2
- package/dist/design-system/components/TextInput/TextInput.spec.d.ts +0 -12
- package/dist/design-system/components/Textarea/Textarea.spec.d.ts +0 -10
- package/dist/design-system/components/Toast/Toast.spec.d.ts +0 -8
- package/dist/design-system/components/Toggle/Toggle.spec.d.ts +0 -8
- package/dist/design-system/components/Tooltip/Tooltip.spec.d.ts +0 -8
- package/dist/design-system/specs/spec.types.d.ts +0 -18
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { validateTree } from "./validateTree";
|
|
2
|
+
export { validateSchema } from "./schemaValidation";
|
|
3
|
+
export { detectDrift } from "./driftDetection";
|
|
4
|
+
export { validateAIOutput } from "./validateAIOutput";
|
|
5
|
+
export { buildDeterministicFeedback, sortAndDedupeViolations } from "./deterministicFeedback";
|
|
@@ -4,8 +4,21 @@ export interface AIValidationResult {
|
|
|
4
4
|
status: "pass" | "fail";
|
|
5
5
|
violations: PolicyViolation[];
|
|
6
6
|
warnings: PolicyViolation[];
|
|
7
|
+
deterministicFeedback?: {
|
|
8
|
+
fingerprint: string;
|
|
9
|
+
summary: string;
|
|
10
|
+
items: Array<{
|
|
11
|
+
id: string;
|
|
12
|
+
code: string;
|
|
13
|
+
path: string;
|
|
14
|
+
message: string;
|
|
15
|
+
fix: string;
|
|
16
|
+
severity: "error" | "warning";
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
7
19
|
governanceVersionUsed: string;
|
|
8
20
|
manifestVersionUsed: string;
|
|
21
|
+
policyVersionUsed: string;
|
|
9
22
|
timestamp: string;
|
|
10
23
|
versionLineage: VersionLineage;
|
|
11
24
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ButtonProps } from "./Button.types";
|
|
2
2
|
import "./_button.scss";
|
|
3
|
-
export default function Button({ label, appearance, layout, size, icon, iconSize, icons, children, tracking, className, onClick, disabled, "aria-label": ariaLabel, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default function Button({ label, appearance, layout, size, icon, iconSize, icons, children, tracking, loading, className, onClick, disabled, "aria-label": ariaLabel, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,8 +3,9 @@ import type { ChipProps } from "./Chip.types";
|
|
|
3
3
|
/**
|
|
4
4
|
* Chip component for displaying labels, tags, or filters
|
|
5
5
|
* @param {string} label - The text content of the chip
|
|
6
|
-
* @param {
|
|
7
|
-
* @param {
|
|
6
|
+
* @param {boolean} selected - Selected state (unselected by default)
|
|
7
|
+
* @param {boolean} rounded - Shape toggle: true (fully rounded), false (less rounded)
|
|
8
|
+
* @param {string} size - Size variant: 'default' or 'compact'
|
|
8
9
|
* @param {string} iconPlacement - Icon placement: 'both', 'left', 'right', or 'none'
|
|
9
10
|
* @param {string} icon - Icon name to display (when iconPlacement is not 'none')
|
|
10
11
|
* @param {number|string} badge - Badge count to display
|
|
@@ -14,4 +15,4 @@ import type { ChipProps } from "./Chip.types";
|
|
|
14
15
|
* @param {boolean} disabled - Whether the chip is disabled
|
|
15
16
|
* @param {object} props - Additional props to pass to the chip element
|
|
16
17
|
*/
|
|
17
|
-
export default function Chip({ label,
|
|
18
|
+
export default function Chip({ label, selected, rounded, size, iconPlacement, icon, badge, badgeVariant, className, onClick, disabled, ...props }: ChipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import type { HTMLAttributes, MouseEventHandler, ReactNode } from "react";
|
|
2
|
+
import type { BadgeVariant } from "../Badge/Badge.types";
|
|
3
|
+
export type ChipSize = "default" | "compact";
|
|
4
|
+
export type ChipIconPlacement = "both" | "left" | "right" | "none";
|
|
5
|
+
export interface ChipProps extends HTMLAttributes<HTMLElement> {
|
|
6
|
+
label?: ReactNode;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
rounded?: boolean;
|
|
9
|
+
size?: ChipSize;
|
|
10
|
+
iconPlacement?: ChipIconPlacement;
|
|
7
11
|
icon?: string | ReactNode;
|
|
8
|
-
badge?:
|
|
9
|
-
badgeVariant?:
|
|
12
|
+
badge?: number | string;
|
|
13
|
+
badgeVariant?: BadgeVariant;
|
|
10
14
|
className?: string;
|
|
11
|
-
onClick?:
|
|
15
|
+
onClick?: MouseEventHandler<HTMLElement>;
|
|
12
16
|
disabled?: boolean;
|
|
13
17
|
}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export type DialogIntent = "info" | "success" | "warning" | "destructive";
|
|
2
3
|
export interface DialogProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
4
|
open?: boolean;
|
|
4
|
-
onClose?: (
|
|
5
|
-
intent?:
|
|
6
|
-
icon?: string
|
|
7
|
-
title?:
|
|
8
|
-
description?:
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
intent?: DialogIntent;
|
|
7
|
+
icon?: string;
|
|
8
|
+
title?: ReactNode;
|
|
9
|
+
description?: ReactNode;
|
|
9
10
|
confirmLabel?: string;
|
|
10
11
|
cancelLabel?: string;
|
|
11
|
-
onConfirm?: (
|
|
12
|
-
onCancel?: (
|
|
12
|
+
onConfirm?: () => void;
|
|
13
|
+
onCancel?: () => void;
|
|
13
14
|
showCancel?: boolean;
|
|
14
15
|
loading?: boolean;
|
|
15
16
|
closeOnBackdrop?: boolean;
|
|
16
17
|
closeOnEscape?: boolean;
|
|
17
|
-
container?:
|
|
18
|
+
container?: HTMLElement;
|
|
18
19
|
className?: string;
|
|
19
20
|
children?: ReactNode;
|
|
20
21
|
}
|
|
@@ -14,4 +14,4 @@ import type { FieldProps } from "./Field.types";
|
|
|
14
14
|
* @param {React.ReactNode} children - The input element to wrap
|
|
15
15
|
* @param {object} props - Additional props to pass to the field wrapper
|
|
16
16
|
*/
|
|
17
|
-
export default function Field({ label, required, helperMessage,
|
|
17
|
+
export default function Field({ label, state, required, helperMessage, maxLength, value, infoIcon, onInfoClick, id, className, children, ...props }: FieldProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export type FieldState = "default" | "error";
|
|
3
|
+
export interface FieldProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
label?: ReactNode;
|
|
5
|
+
state?: FieldState;
|
|
4
6
|
required?: boolean;
|
|
5
|
-
helperMessage?:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
id?:
|
|
7
|
+
helperMessage?: ReactNode;
|
|
8
|
+
maxLength?: number;
|
|
9
|
+
value?: string | number;
|
|
10
|
+
infoIcon?: string;
|
|
11
|
+
onInfoClick?: () => void;
|
|
12
|
+
id?: string;
|
|
11
13
|
className?: string;
|
|
12
14
|
children?: ReactNode;
|
|
13
15
|
}
|
|
@@ -12,4 +12,4 @@ import type { FileUploadProps } from "./FileUpload.types";
|
|
|
12
12
|
* @param {string} className - Additional CSS classes
|
|
13
13
|
* @param {object} props - Additional props to pass to the file input
|
|
14
14
|
*/
|
|
15
|
-
export default function FileUpload({ onFileSelect, accept, maxSize, acceptText, instructionText, multiple, disabled, className, ...props }: FileUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default function FileUpload({ onFileSelect, accept, maxSize, acceptText, instructionText, size, multiple, disabled, className, ...props }: FileUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { InputHTMLAttributes } from "react";
|
|
2
|
+
export type FileUploadSize = "default" | "small";
|
|
2
3
|
export interface FileUploadProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
4
|
onFileSelect?: (...args: unknown[]) => void;
|
|
4
5
|
accept?: unknown[];
|
|
5
6
|
maxSize?: number;
|
|
6
7
|
acceptText?: unknown;
|
|
7
8
|
instructionText?: string;
|
|
9
|
+
size?: FileUploadSize;
|
|
8
10
|
multiple?: boolean;
|
|
9
11
|
disabled?: boolean;
|
|
10
12
|
className?: string;
|
|
@@ -5,8 +5,10 @@ import type { PaginationProps } from "./Pagination.types";
|
|
|
5
5
|
* @param {number} currentPage - Current active page (1-indexed)
|
|
6
6
|
* @param {number} totalPages - Total number of pages
|
|
7
7
|
* @param {function} onPageChange - Callback when page changes: (page: number) => void
|
|
8
|
-
* @param {string} variant - Variant style: "default" | "
|
|
9
|
-
* @param {boolean}
|
|
8
|
+
* @param {string} variant - Variant style: "default" | "line"
|
|
9
|
+
* @param {boolean} showJumpInput - Toggle jump-to-page input
|
|
10
|
+
* @param {boolean} showDoubleButtons - Toggle first/last page buttons
|
|
11
|
+
* @param {boolean} showFirstLast - Backward-compatible alias for showDoubleButtons
|
|
10
12
|
* @param {string} className - Additional CSS classes
|
|
11
13
|
*/
|
|
12
|
-
export default function Pagination({ currentPage, totalPages, onPageChange, variant, showFirstLast, className, }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default function Pagination({ currentPage, totalPages, onPageChange, variant, showJumpInput, showDoubleButtons, showFirstLast, className, }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { ButtonHTMLAttributes } from "react";
|
|
2
|
+
export type PaginationVariant = "default" | "line";
|
|
2
3
|
export interface PaginationProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
4
|
currentPage?: number;
|
|
4
5
|
totalPages?: number;
|
|
5
6
|
onPageChange?: (...args: unknown[]) => void;
|
|
6
|
-
variant?:
|
|
7
|
+
variant?: PaginationVariant;
|
|
8
|
+
showJumpInput?: boolean;
|
|
9
|
+
showDoubleButtons?: boolean;
|
|
7
10
|
showFirstLast?: boolean;
|
|
8
11
|
className?: string;
|
|
9
12
|
}
|
|
@@ -5,11 +5,12 @@ import type { ProgressCircleProps } from "./ProgressCircle.types";
|
|
|
5
5
|
* @param {number} value - Progress value (0-100)
|
|
6
6
|
* @param {number} max - Maximum value (default: 100)
|
|
7
7
|
* @param {string} size - Size variant: 'xxs', 'xs', 'sm', 'md', or 'lg'
|
|
8
|
-
* @param {string} shape - Shape variant: 'circle'
|
|
8
|
+
* @param {string} shape - Shape variant: 'circle' or 'half-circle'
|
|
9
9
|
* @param {string} label - Optional label text to display
|
|
10
|
+
* @param {string} valueLabel - Optional custom center value text
|
|
10
11
|
* @param {boolean} showLabel - Whether to show the label (if provided)
|
|
11
12
|
* @param {string} className - Additional CSS classes
|
|
12
13
|
* @param {string} 'aria-label' - Accessible label for screen readers
|
|
13
14
|
* @param {object} props - Additional props to pass to the progress element
|
|
14
15
|
*/
|
|
15
|
-
export default function ProgressCircle({ value, max, size, shape, label, showLabel, className, "aria-label": ariaLabel, ...props }: ProgressCircleProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default function ProgressCircle({ value, max, size, shape, label, valueLabel, showLabel, className, "aria-label": ariaLabel, ...props }: ProgressCircleProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import type { HTMLAttributes } from "react";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
export type ProgressCircleSize = "xxs" | "xs" | "sm" | "md" | "lg";
|
|
4
|
+
export type ProgressCircleShape = "circle" | "half-circle";
|
|
2
5
|
export interface ProgressCircleProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
6
|
value?: number;
|
|
4
7
|
max?: number;
|
|
5
|
-
size?:
|
|
6
|
-
shape?:
|
|
7
|
-
label?:
|
|
8
|
+
size?: ProgressCircleSize;
|
|
9
|
+
shape?: ProgressCircleShape;
|
|
10
|
+
label?: ReactNode;
|
|
11
|
+
valueLabel?: ReactNode;
|
|
8
12
|
showLabel?: boolean;
|
|
9
13
|
className?: string;
|
|
10
14
|
}
|
|
@@ -8,9 +8,10 @@ import type { ProgressIndicatorProps } from "./ProgressIndicator.types";
|
|
|
8
8
|
* @param {string} size - Size variant: 'small', 'medium', or 'large'
|
|
9
9
|
* @param {string} label - Optional label text to display above the progress bar
|
|
10
10
|
* @param {boolean} showValue - Whether to show the percentage value
|
|
11
|
+
* @param {string} labelPosition - Where to place the percentage label
|
|
11
12
|
* @param {boolean} showLabel - Whether to show the label (if provided)
|
|
12
13
|
* @param {string} className - Additional CSS classes
|
|
13
14
|
* @param {string} 'aria-label' - Accessible label for screen readers
|
|
14
15
|
* @param {object} props - Additional props to pass to the progress element
|
|
15
16
|
*/
|
|
16
|
-
export default function ProgressIndicator({ value, max, variant, size, label, showValue, showLabel, className, "aria-label": ariaLabel, ...props }: ProgressIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default function ProgressIndicator({ value, max, variant, size, label, showValue, labelPosition, showLabel, className, "aria-label": ariaLabel, ...props }: ProgressIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import type { HTMLAttributes } from "react";
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export type ProgressIndicatorVariant = "default" | "blue" | "green" | "success" | "orange" | "warning" | "red" | "error" | "purple";
|
|
3
|
+
export type ProgressIndicatorSize = "small" | "medium" | "large";
|
|
4
|
+
export type ProgressIndicatorLabelPosition = "false" | "right" | "bottom" | "top-floating" | "bottom-floating";
|
|
2
5
|
export interface ProgressIndicatorProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
6
|
value?: number;
|
|
4
7
|
max?: number;
|
|
5
|
-
variant?:
|
|
6
|
-
size?:
|
|
7
|
-
label?:
|
|
8
|
+
variant?: ProgressIndicatorVariant;
|
|
9
|
+
size?: ProgressIndicatorSize;
|
|
10
|
+
label?: ReactNode;
|
|
8
11
|
showValue?: boolean;
|
|
9
12
|
showLabel?: boolean;
|
|
13
|
+
labelPosition?: ProgressIndicatorLabelPosition;
|
|
10
14
|
className?: string;
|
|
11
15
|
}
|
|
@@ -9,4 +9,4 @@ import type { TooltipProps } from "./Tooltip.types";
|
|
|
9
9
|
* @param {string} className - Additional CSS classes
|
|
10
10
|
* @param {object} props - Additional props to pass to the wrapper element
|
|
11
11
|
*/
|
|
12
|
-
export default function Tooltip({ children, content, placement, disabled, className, ...props }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default function Tooltip({ children, content, placement, disabled, defaultVisible, className, ...props }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|