@patternfly/context-for-ai 1.2.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 +615 -0
- package/codemod/ALL_COMPONENTS_REFERENCE.md +815 -0
- package/codemod/ATTRIBUTE_DECISION_LOGIC.md +320 -0
- package/codemod/README.md +400 -0
- package/codemod/add-semantic-attributes.sh +69 -0
- package/codemod/component-attributes-reference.json +129 -0
- package/codemod/example-after.tsx +51 -0
- package/codemod/example-before.tsx +19 -0
- package/codemod/static-inference.js +5015 -0
- package/codemod/transform.js +1108 -0
- package/dist/components/advanced/index.d.ts +2 -0
- package/dist/components/advanced/index.d.ts.map +1 -0
- package/dist/components/core/Button.d.ts +14 -0
- package/dist/components/core/Button.d.ts.map +1 -0
- package/dist/components/core/Link.d.ts +15 -0
- package/dist/components/core/Link.d.ts.map +1 -0
- package/dist/components/core/StarIcon.d.ts +15 -0
- package/dist/components/core/StarIcon.d.ts.map +1 -0
- package/dist/components/core/index.d.ts +4 -0
- package/dist/components/core/index.d.ts.map +1 -0
- package/dist/components/data-display/Card.d.ts +14 -0
- package/dist/components/data-display/Card.d.ts.map +1 -0
- package/dist/components/data-display/StatusBadge.d.ts +13 -0
- package/dist/components/data-display/StatusBadge.d.ts.map +1 -0
- package/dist/components/data-display/Tbody.d.ts +12 -0
- package/dist/components/data-display/Tbody.d.ts.map +1 -0
- package/dist/components/data-display/Td.d.ts +14 -0
- package/dist/components/data-display/Td.d.ts.map +1 -0
- package/dist/components/data-display/Th.d.ts +14 -0
- package/dist/components/data-display/Th.d.ts.map +1 -0
- package/dist/components/data-display/Thead.d.ts +12 -0
- package/dist/components/data-display/Thead.d.ts.map +1 -0
- package/dist/components/data-display/Tr.d.ts +16 -0
- package/dist/components/data-display/Tr.d.ts.map +1 -0
- package/dist/components/data-display/index.d.ts +8 -0
- package/dist/components/data-display/index.d.ts.map +1 -0
- package/dist/components/feedback/index.d.ts +2 -0
- package/dist/components/feedback/index.d.ts.map +1 -0
- package/dist/components/forms/Checkbox.d.ts +16 -0
- package/dist/components/forms/Checkbox.d.ts.map +1 -0
- package/dist/components/forms/Form.d.ts +12 -0
- package/dist/components/forms/Form.d.ts.map +1 -0
- package/dist/components/forms/Radio.d.ts +32 -0
- package/dist/components/forms/Radio.d.ts.map +1 -0
- package/dist/components/forms/Select.d.ts +33 -0
- package/dist/components/forms/Select.d.ts.map +1 -0
- package/dist/components/forms/Switch.d.ts +31 -0
- package/dist/components/forms/Switch.d.ts.map +1 -0
- package/dist/components/forms/TextArea.d.ts +29 -0
- package/dist/components/forms/TextArea.d.ts.map +1 -0
- package/dist/components/forms/TextInput.d.ts +29 -0
- package/dist/components/forms/TextInput.d.ts.map +1 -0
- package/dist/components/forms/index.d.ts +8 -0
- package/dist/components/forms/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/layout/Flex.d.ts +16 -0
- package/dist/components/layout/Flex.d.ts.map +1 -0
- package/dist/components/layout/FlexItem.d.ts +16 -0
- package/dist/components/layout/FlexItem.d.ts.map +1 -0
- package/dist/components/layout/index.d.ts +3 -0
- package/dist/components/layout/index.d.ts.map +1 -0
- package/dist/components/navigation/DropdownItem.d.ts +8 -0
- package/dist/components/navigation/DropdownItem.d.ts.map +1 -0
- package/dist/components/navigation/MenuToggle.d.ts +8 -0
- package/dist/components/navigation/MenuToggle.d.ts.map +1 -0
- package/dist/components/navigation/index.d.ts +3 -0
- package/dist/components/navigation/index.d.ts.map +1 -0
- package/dist/components/overlay/Drawer.d.ts +12 -0
- package/dist/components/overlay/Drawer.d.ts.map +1 -0
- package/dist/components/overlay/Modal.d.ts +16 -0
- package/dist/components/overlay/Modal.d.ts.map +1 -0
- package/dist/components/overlay/index.d.ts +3 -0
- package/dist/components/overlay/index.d.ts.map +1 -0
- package/dist/context/SemanticContext.d.ts +28 -0
- package/dist/context/SemanticContext.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useAccessibility.d.ts +13 -0
- package/dist/hooks/useAccessibility.d.ts.map +1 -0
- package/dist/hooks/useSemanticMetadata.d.ts +9 -0
- package/dist/hooks/useSemanticMetadata.d.ts.map +1 -0
- package/dist/index.d.ts +574 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +1362 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +1426 -0
- package/dist/index.js.map +1 -0
- package/dist/types/index.d.ts +47 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/accessibility.d.ts +16 -0
- package/dist/utils/accessibility.d.ts.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/inference.d.ts +136 -0
- package/dist/utils/inference.d.ts.map +1 -0
- package/dist/utils/metadata.d.ts +17 -0
- package/dist/utils/metadata.d.ts.map +1 -0
- package/package.json +104 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/advanced/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button as PFButton } from '@patternfly/react-core';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
export interface ButtonProps extends Omit<React.ComponentProps<typeof PFButton>, 'children'>, SemanticComponentProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** The semantic action this button performs (auto-inferred from variant if not provided) */
|
|
7
|
+
action?: 'primary' | 'secondary' | 'destructive' | 'navigation' | 'toggle';
|
|
8
|
+
/** Context of where this button is used (auto-inferred from props if not provided) */
|
|
9
|
+
context?: 'form' | 'toolbar' | 'modal' | 'card' | 'navigation' | 'table' | 'alert';
|
|
10
|
+
}
|
|
11
|
+
/** Button - PatternFly Button wrapper with semantic metadata for AI tooling */
|
|
12
|
+
export declare const Button: React.FC<ButtonProps>;
|
|
13
|
+
export default Button;
|
|
14
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/core/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAIrD,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,EAAE,UAAU,CAAC,EAAE,sBAAsB;IAClH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,4FAA4F;IAC5F,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,aAAa,GAAG,YAAY,GAAG,QAAQ,CAAC;IAC3E,sFAAsF;IACtF,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC;CACpF;AAED,+EAA+E;AAC/E,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA0FxC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SemanticComponentProps } from '../../types';
|
|
3
|
+
export interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'target'>, SemanticComponentProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
/** The semantic purpose of this link (auto-inferred from props if not provided) */
|
|
6
|
+
purpose?: 'navigation' | 'action' | 'download' | 'external' | 'launch';
|
|
7
|
+
/** The context where this link is used (auto-inferred from props if not provided) */
|
|
8
|
+
context?: 'table' | 'card' | 'navigation' | 'content';
|
|
9
|
+
/** HTML target attribute (_blank, _self, etc) */
|
|
10
|
+
htmlTarget?: string;
|
|
11
|
+
}
|
|
12
|
+
/** Link - HTML anchor wrapper with semantic metadata for AI tooling */
|
|
13
|
+
export declare const Link: React.FC<LinkProps>;
|
|
14
|
+
export default Link;
|
|
15
|
+
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/core/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAIrD,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,QAAQ,CAAC,EAAE,sBAAsB;IACtH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,mFAAmF;IACnF,OAAO,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;IACvE,qFAAqF;IACrF,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,YAAY,GAAG,SAAS,CAAC;IACtD,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,uEAAuE;AACvE,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA4DpC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SemanticComponentProps } from '../../types';
|
|
3
|
+
export interface StarIconProps extends React.HTMLAttributes<HTMLSpanElement>, SemanticComponentProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
/** Whether this star is favorited/active */
|
|
6
|
+
isFavorited?: boolean;
|
|
7
|
+
/** The semantic purpose of this star icon (auto-inferred from props if not provided) */
|
|
8
|
+
purpose?: 'favorite-toggle' | 'rating' | 'bookmark' | 'highlight';
|
|
9
|
+
/** The context where this star is used (auto-inferred from props if not provided) */
|
|
10
|
+
context?: 'table' | 'card' | 'list' | 'content';
|
|
11
|
+
}
|
|
12
|
+
/** StarIcon - HTML span wrapper with semantic metadata for AI tooling */
|
|
13
|
+
export declare const StarIcon: React.FC<StarIconProps>;
|
|
14
|
+
export default StarIcon;
|
|
15
|
+
//# sourceMappingURL=StarIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StarIcon.d.ts","sourceRoot":"","sources":["../../../src/components/core/StarIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,sBAAsB;IAClG,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,4CAA4C;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,wFAAwF;IACxF,OAAO,CAAC,EAAE,iBAAiB,GAAG,QAAQ,GAAG,UAAU,GAAG,WAAW,CAAC;IAClE,qFAAqF;IACrF,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACjD;AAED,yEAAyE;AACzE,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAyC5C,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/core/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Card as PFCard } from '@patternfly/react-core';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
export interface CardProps extends Omit<React.ComponentProps<typeof PFCard>, 'children'>, SemanticComponentProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** The semantic purpose of this card (auto-inferred from props if not provided) */
|
|
7
|
+
purpose?: 'content-display' | 'data-summary' | 'action-panel' | 'information' | 'navigation';
|
|
8
|
+
/** The type of content this card contains (auto-inferred from children if not provided) */
|
|
9
|
+
contentType?: 'text' | 'data' | 'media' | 'mixed' | 'interactive';
|
|
10
|
+
}
|
|
11
|
+
/** Card - PatternFly Card wrapper with semantic metadata for AI tooling */
|
|
12
|
+
export declare const Card: React.FC<CardProps>;
|
|
13
|
+
export default Card;
|
|
14
|
+
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/data-display/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAIrD,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,UAAU,CAAC,EAAE,sBAAsB;IAC9G,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,mFAAmF;IACnF,OAAO,CAAC,EAAE,iBAAiB,GAAG,cAAc,GAAG,cAAc,GAAG,aAAa,GAAG,YAAY,CAAC;IAC7F,2FAA2F;IAC3F,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,aAAa,CAAC;CACnE;AAED,2EAA2E;AAC3E,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA+EpC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SemanticComponentProps } from '../../types';
|
|
3
|
+
export interface StatusBadgeProps extends React.HTMLAttributes<HTMLSpanElement>, SemanticComponentProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
/** The semantic purpose of this status badge (auto-inferred from content if not provided) */
|
|
6
|
+
purpose?: 'status-indicator' | 'progress-indicator' | 'state-display' | 'alert-indicator';
|
|
7
|
+
/** The status type (auto-inferred from content if not provided) */
|
|
8
|
+
statusType?: 'success' | 'warning' | 'error' | 'info' | 'pending' | 'ready';
|
|
9
|
+
}
|
|
10
|
+
/** StatusBadge - HTML span wrapper with semantic metadata for AI tooling */
|
|
11
|
+
export declare const StatusBadge: React.FC<StatusBadgeProps>;
|
|
12
|
+
export default StatusBadge;
|
|
13
|
+
//# sourceMappingURL=StatusBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusBadge.d.ts","sourceRoot":"","sources":["../../../src/components/data-display/StatusBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,sBAAsB;IACrG,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,6FAA6F;IAC7F,OAAO,CAAC,EAAE,kBAAkB,GAAG,oBAAoB,GAAG,eAAe,GAAG,iBAAiB,CAAC;IAC1F,mEAAmE;IACnE,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;CAC7E;AAED,4EAA4E;AAC5E,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAsClD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Tbody as PFTbody } from '@patternfly/react-table';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
export interface TbodyProps extends Omit<React.ComponentProps<typeof PFTbody>, 'children'>, SemanticComponentProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** The semantic purpose of this table body section (auto-inferred from props if not provided) */
|
|
7
|
+
purpose?: 'data-rows' | 'selectable-rows' | 'action-rows' | 'mixed-content';
|
|
8
|
+
}
|
|
9
|
+
/** Tbody - PatternFly Table Body wrapper with semantic metadata for AI tooling */
|
|
10
|
+
export declare const Tbody: React.FC<TbodyProps>;
|
|
11
|
+
export default Tbody;
|
|
12
|
+
//# sourceMappingURL=Tbody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tbody.d.ts","sourceRoot":"","sources":["../../../src/components/data-display/Tbody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,EAAE,UAAU,CAAC,EAAE,sBAAsB;IAChH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,iGAAiG;IACjG,OAAO,CAAC,EAAE,WAAW,GAAG,iBAAiB,GAAG,aAAa,GAAG,eAAe,CAAC;CAC7E;AAED,kFAAkF;AAClF,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA0CtC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Td as PFTd } from '@patternfly/react-table';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
export interface TdProps extends Omit<React.ComponentProps<typeof PFTd>, 'children'>, SemanticComponentProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** The semantic purpose of this table cell (auto-inferred from props if not provided) */
|
|
7
|
+
purpose?: 'data-cell' | 'action-cell' | 'selectable-cell' | 'status-cell';
|
|
8
|
+
/** The data type this cell contains (auto-inferred from content if not provided) */
|
|
9
|
+
dataType?: 'text' | 'number' | 'date' | 'boolean' | 'action' | 'mixed';
|
|
10
|
+
}
|
|
11
|
+
/** Td - PatternFly Table Data wrapper with semantic metadata for AI tooling */
|
|
12
|
+
export declare const Td: React.FC<TdProps>;
|
|
13
|
+
export default Td;
|
|
14
|
+
//# sourceMappingURL=Td.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Td.d.ts","sourceRoot":"","sources":["../../../src/components/data-display/Td.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,WAAW,OAAQ,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,UAAU,CAAC,EAAE,sBAAsB;IAC1G,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,yFAAyF;IACzF,OAAO,CAAC,EAAE,WAAW,GAAG,aAAa,GAAG,iBAAiB,GAAG,aAAa,CAAC;IAC1E,oFAAoF;IACpF,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;CACxE;AAED,+EAA+E;AAC/E,eAAO,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,OAAO,CAgDhC,CAAC;AAEF,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Th as PFTh } from '@patternfly/react-table';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
export interface ThProps extends Omit<React.ComponentProps<typeof PFTh>, 'children'>, SemanticComponentProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** The semantic purpose of this table header (auto-inferred from props if not provided) */
|
|
7
|
+
purpose?: 'column-header' | 'sortable-header' | 'selectable-header' | 'action-header';
|
|
8
|
+
/** The data type this header represents (auto-inferred from content if not provided) */
|
|
9
|
+
dataType?: 'text' | 'number' | 'date' | 'boolean' | 'action' | 'mixed';
|
|
10
|
+
}
|
|
11
|
+
/** Th - PatternFly Table Header wrapper with semantic metadata for AI tooling */
|
|
12
|
+
export declare const Th: React.FC<ThProps>;
|
|
13
|
+
export default Th;
|
|
14
|
+
//# sourceMappingURL=Th.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Th.d.ts","sourceRoot":"","sources":["../../../src/components/data-display/Th.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,WAAW,OAAQ,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,UAAU,CAAC,EAAE,sBAAsB;IAC1G,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,2FAA2F;IAC3F,OAAO,CAAC,EAAE,eAAe,GAAG,iBAAiB,GAAG,mBAAmB,GAAG,eAAe,CAAC;IACtF,wFAAwF;IACxF,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;CACxE;AAED,iFAAiF;AACjF,eAAO,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,OAAO,CAiDhC,CAAC;AAEF,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Thead as PFThead } from '@patternfly/react-table';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
export interface TheadProps extends Omit<React.ComponentProps<typeof PFThead>, 'children'>, SemanticComponentProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** The semantic purpose of this table header section (auto-inferred from props if not provided) */
|
|
7
|
+
purpose?: 'column-definition' | 'sortable-headers' | 'selectable-headers' | 'action-headers';
|
|
8
|
+
}
|
|
9
|
+
/** Thead - PatternFly Table Header wrapper with semantic metadata for AI tooling */
|
|
10
|
+
export declare const Thead: React.FC<TheadProps>;
|
|
11
|
+
export default Thead;
|
|
12
|
+
//# sourceMappingURL=Thead.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Thead.d.ts","sourceRoot":"","sources":["../../../src/components/data-display/Thead.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,EAAE,UAAU,CAAC,EAAE,sBAAsB;IAChH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,mGAAmG;IACnG,OAAO,CAAC,EAAE,mBAAmB,GAAG,kBAAkB,GAAG,oBAAoB,GAAG,gBAAgB,CAAC;CAC9F;AAED,oFAAoF;AACpF,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAuCtC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Tr as PFTr } from '@patternfly/react-table';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
export interface TrProps extends Omit<React.ComponentProps<typeof PFTr>, 'children'>, SemanticComponentProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** The semantic purpose of this table row (auto-inferred from props if not provided) */
|
|
7
|
+
purpose?: 'data-row' | 'header-row' | 'selectable-row' | 'expandable-row' | 'action-row';
|
|
8
|
+
/** The interaction type for this row (auto-inferred from props if not provided) */
|
|
9
|
+
interactionType?: 'clickable' | 'selectable' | 'expandable' | 'static';
|
|
10
|
+
/** The row state (auto-inferred from props if not provided) */
|
|
11
|
+
rowState?: 'normal' | 'selected' | 'expanded' | 'disabled' | 'highlighted';
|
|
12
|
+
}
|
|
13
|
+
/** Tr - PatternFly Table Row wrapper with semantic metadata for AI tooling */
|
|
14
|
+
export declare const Tr: React.FC<TrProps>;
|
|
15
|
+
export default Tr;
|
|
16
|
+
//# sourceMappingURL=Tr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tr.d.ts","sourceRoot":"","sources":["../../../src/components/data-display/Tr.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,WAAW,OAAQ,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,UAAU,CAAC,EAAE,sBAAsB;IAC1G,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,wFAAwF;IACxF,OAAO,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,YAAY,CAAC;IACzF,mFAAmF;IACnF,eAAe,CAAC,EAAE,WAAW,GAAG,YAAY,GAAG,YAAY,GAAG,QAAQ,CAAC;IACvE,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,aAAa,CAAC;CAC5E;AAED,8EAA8E;AAC9E,eAAO,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,OAAO,CAmFhC,CAAC;AAEF,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/data-display/index.ts"],"names":[],"mappings":"AACA,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/feedback/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Checkbox as PFCheckbox } from '@patternfly/react-core';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
export interface CheckboxProps extends Omit<React.ComponentProps<typeof PFCheckbox>, 'children'>, SemanticComponentProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** The semantic purpose of this checkbox (auto-inferred from props if not provided) */
|
|
7
|
+
purpose?: 'selection' | 'toggle' | 'form-input' | 'filter';
|
|
8
|
+
/** The context where this checkbox is used (auto-inferred from props if not provided) */
|
|
9
|
+
context?: 'table' | 'form' | 'filter' | 'settings';
|
|
10
|
+
/** Required id for PatternFly Checkbox */
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
/** Checkbox - PatternFly Checkbox wrapper with semantic metadata for AI tooling */
|
|
14
|
+
export declare const Checkbox: React.FC<CheckboxProps>;
|
|
15
|
+
export default Checkbox;
|
|
16
|
+
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/forms/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,EAAE,UAAU,CAAC,EAAE,sBAAsB;IACtH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,uFAAuF;IACvF,OAAO,CAAC,EAAE,WAAW,GAAG,QAAQ,GAAG,YAAY,GAAG,QAAQ,CAAC;IAC3D,yFAAyF;IACzF,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;IACnD,0CAA0C;IAC1C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,mFAAmF;AACnF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA0C5C,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Form as PFForm } from '@patternfly/react-core';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
export interface FormProps extends Omit<React.ComponentProps<typeof PFForm>, 'children'>, SemanticComponentProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** The semantic purpose of this form */
|
|
7
|
+
purpose?: 'create' | 'edit' | 'search' | 'filter' | 'settings';
|
|
8
|
+
}
|
|
9
|
+
/** Form - PatternFly Form wrapper with semantic metadata for AI tooling */
|
|
10
|
+
export declare const Form: React.FC<FormProps>;
|
|
11
|
+
export default Form;
|
|
12
|
+
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/components/forms/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,UAAU,CAAC,EAAE,sBAAsB;IAC9G,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,wCAAwC;IACxC,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;CAChE;AAED,2EAA2E;AAC3E,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA+CpC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Radio as PFRadio } from '@patternfly/react-core';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
export interface RadioProps extends Omit<React.ComponentProps<typeof PFRadio>, 'children' | 'ref'>, SemanticComponentProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** The semantic purpose of this radio button */
|
|
7
|
+
purpose?: 'option-selection' | 'preference' | 'setting' | 'filter' | 'answer';
|
|
8
|
+
/** The context where this radio is used */
|
|
9
|
+
context?: 'form' | 'settings' | 'filter' | 'survey' | 'quiz';
|
|
10
|
+
/** The group this radio belongs to */
|
|
11
|
+
groupContext?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Radio - PatternFly Radio wrapper with semantic metadata for AI tooling
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* <Radio
|
|
19
|
+
* purpose="preference"
|
|
20
|
+
* context="settings"
|
|
21
|
+
* groupContext="theme-selection"
|
|
22
|
+
* name="theme"
|
|
23
|
+
* id="theme-light"
|
|
24
|
+
* label="Light Theme"
|
|
25
|
+
* isChecked={theme === 'light'}
|
|
26
|
+
* onChange={handleChange}
|
|
27
|
+
* />
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare const Radio: React.FC<RadioProps>;
|
|
31
|
+
export default Radio;
|
|
32
|
+
//# sourceMappingURL=Radio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/forms/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAQrD,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC,EACtE,sBAAsB;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,gDAAgD;IAChD,OAAO,CAAC,EAAE,kBAAkB,GAAG,YAAY,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC9E,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC7D,sCAAsC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA8CtC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Select as PFSelect } from '@patternfly/react-core';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
export interface SelectProps extends Omit<React.ComponentProps<typeof PFSelect>, 'children'>, SemanticComponentProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** The semantic purpose of this select */
|
|
7
|
+
purpose?: 'category-selection' | 'filter' | 'setting' | 'navigation' | 'data-entry';
|
|
8
|
+
/** The context where this select is used */
|
|
9
|
+
context?: 'form' | 'toolbar' | 'filter-bar' | 'settings' | 'navigation';
|
|
10
|
+
/** Selection behavior */
|
|
11
|
+
selectionType?: 'single' | 'multiple' | 'typeahead';
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Select - PatternFly Select wrapper with semantic metadata for AI tooling
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* <Select
|
|
19
|
+
* purpose="category-selection"
|
|
20
|
+
* context="form"
|
|
21
|
+
* isOpen={isOpen}
|
|
22
|
+
* onToggle={handleToggle}
|
|
23
|
+
* selections={selected}
|
|
24
|
+
* onSelect={handleSelect}
|
|
25
|
+
* >
|
|
26
|
+
* <SelectOption value="option1" />
|
|
27
|
+
* <SelectOption value="option2" />
|
|
28
|
+
* </Select>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare const Select: React.FC<SelectProps>;
|
|
32
|
+
export default Select;
|
|
33
|
+
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/forms/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAQrD,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,EAAE,UAAU,CAAC,EAC/D,sBAAsB;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0CAA0C;IAC1C,OAAO,CAAC,EAAE,oBAAoB,GAAG,QAAQ,GAAG,SAAS,GAAG,YAAY,GAAG,YAAY,CAAC;IACpF,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,GAAG,UAAU,GAAG,YAAY,CAAC;IACxE,yBAAyB;IACzB,aAAa,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,WAAW,CAAC;CACrD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA0CxC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Switch as PFSwitch } from '@patternfly/react-core';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
export interface SwitchProps extends Omit<React.ComponentProps<typeof PFSwitch>, 'children' | 'ref'>, SemanticComponentProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** The semantic purpose of this switch */
|
|
7
|
+
purpose?: 'feature-toggle' | 'setting' | 'preference' | 'filter' | 'mode-switch';
|
|
8
|
+
/** The context where this switch is used */
|
|
9
|
+
context?: 'settings' | 'toolbar' | 'card' | 'table-row' | 'form';
|
|
10
|
+
/** What is being toggled */
|
|
11
|
+
toggleTarget?: 'feature' | 'visibility' | 'mode' | 'status' | 'permission';
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Switch - PatternFly Switch wrapper with semantic metadata for AI tooling
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* <Switch
|
|
19
|
+
* purpose="feature-toggle"
|
|
20
|
+
* context="settings"
|
|
21
|
+
* toggleTarget="feature"
|
|
22
|
+
* id="notifications"
|
|
23
|
+
* label="Enable notifications"
|
|
24
|
+
* isChecked={notificationsEnabled}
|
|
25
|
+
* onChange={handleToggle}
|
|
26
|
+
* />
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare const Switch: React.FC<SwitchProps>;
|
|
30
|
+
export default Switch;
|
|
31
|
+
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/forms/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAQrD,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC,EACvE,sBAAsB;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0CAA0C;IAC1C,OAAO,CAAC,EAAE,gBAAgB,GAAG,SAAS,GAAG,YAAY,GAAG,QAAQ,GAAG,aAAa,CAAC;IACjF,4CAA4C;IAC5C,OAAO,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,CAAC;IACjE,4BAA4B;IAC5B,YAAY,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,YAAY,CAAC;CAC5E;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA4CxC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextArea as PFTextArea } from '@patternfly/react-core';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
export interface TextAreaProps extends Omit<React.ComponentProps<typeof PFTextArea>, 'children'>, SemanticComponentProps {
|
|
5
|
+
/** The semantic purpose of this textarea */
|
|
6
|
+
purpose?: 'comment' | 'description' | 'note' | 'message' | 'feedback' | 'content';
|
|
7
|
+
/** The context where this textarea is used */
|
|
8
|
+
context?: 'form' | 'comment-section' | 'message-box' | 'editor' | 'settings';
|
|
9
|
+
/** Expected content type */
|
|
10
|
+
contentType?: 'plain-text' | 'formatted-text' | 'code' | 'markdown';
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* TextArea - PatternFly TextArea wrapper with semantic metadata for AI tooling
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <TextArea
|
|
18
|
+
* purpose="comment"
|
|
19
|
+
* context="comment-section"
|
|
20
|
+
* placeholder="Add your comment..."
|
|
21
|
+
* value={comment}
|
|
22
|
+
* onChange={handleChange}
|
|
23
|
+
* resizeOrientation="vertical"
|
|
24
|
+
* />
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare const TextArea: React.ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
28
|
+
export default TextArea;
|
|
29
|
+
//# sourceMappingURL=TextArea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/forms/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAQrD,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,EAAE,UAAU,CAAC,EACjE,sBAAsB;IACtB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAClF,8CAA8C;IAC9C,OAAO,CAAC,EAAE,MAAM,GAAG,iBAAiB,GAAG,aAAa,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC7E,4BAA4B;IAC5B,WAAW,CAAC,EAAE,YAAY,GAAG,gBAAgB,GAAG,MAAM,GAAG,UAAU,CAAC;CACrE;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,QAAQ,wGA0CnB,CAAC;AAIH,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextInput as PFTextInput } from '@patternfly/react-core';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
export interface TextInputProps extends Omit<React.ComponentProps<typeof PFTextInput>, 'children'>, SemanticComponentProps {
|
|
5
|
+
/** The semantic purpose of this input field */
|
|
6
|
+
purpose?: 'text-input' | 'email-input' | 'password-input' | 'search-input' | 'phone-input' | 'url-input' | 'numeric-input';
|
|
7
|
+
/** The context where this input is used */
|
|
8
|
+
context?: 'form' | 'search' | 'filter' | 'inline-edit' | 'settings';
|
|
9
|
+
/** Validation context for semantic understanding */
|
|
10
|
+
validationContext?: 'required' | 'optional' | 'conditional';
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* TextInput - PatternFly TextInput wrapper with semantic metadata for AI tooling
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <TextInput
|
|
18
|
+
* type="email"
|
|
19
|
+
* purpose="email-input"
|
|
20
|
+
* context="form"
|
|
21
|
+
* placeholder="Enter your email"
|
|
22
|
+
* value={email}
|
|
23
|
+
* onChange={handleChange}
|
|
24
|
+
* />
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare const TextInput: React.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
28
|
+
export default TextInput;
|
|
29
|
+
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../src/components/forms/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAQrD,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,EAAE,UAAU,CAAC,EAClE,sBAAsB;IACtB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,YAAY,GAAG,aAAa,GAAG,gBAAgB,GAAG,cAAc,GAAG,aAAa,GAAG,WAAW,GAAG,eAAe,CAAC;IAC3H,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,aAAa,GAAG,UAAU,CAAC;IACpE,oDAAoD;IACpD,iBAAiB,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,aAAa,CAAC;CAC7D;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,SAAS,sGA4CpB,CAAC;AAIH,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/forms/index.ts"],"names":[],"mappings":"AACA,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './core';
|
|
2
|
+
export * from './forms';
|
|
3
|
+
export * from './data-display';
|
|
4
|
+
export * from './layout';
|
|
5
|
+
export * from './overlay';
|
|
6
|
+
export * from './navigation';
|
|
7
|
+
export * from './feedback';
|
|
8
|
+
export * from './advanced';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AAGvB,cAAc,SAAS,CAAC;AAGxB,cAAc,gBAAgB,CAAC;AAG/B,cAAc,UAAU,CAAC;AAGzB,cAAc,WAAW,CAAC;AAG1B,cAAc,cAAc,CAAC;AAG7B,cAAc,YAAY,CAAC;AAG3B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Flex as PFFlex } from '@patternfly/react-core';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
export interface FlexProps extends Omit<React.ComponentProps<typeof PFFlex>, 'children'>, SemanticComponentProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** The layout purpose of this flex container (auto-inferred from props if not provided) */
|
|
7
|
+
purpose?: 'layout' | 'navigation' | 'toolbar' | 'form' | 'content' | 'action-group';
|
|
8
|
+
/** The layout type (auto-inferred from direction if not provided) */
|
|
9
|
+
layoutType?: 'row' | 'column' | 'responsive';
|
|
10
|
+
/** The alignment context (auto-inferred from props if not provided) */
|
|
11
|
+
alignmentContext?: 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
12
|
+
}
|
|
13
|
+
/** Flex - PatternFly Flex wrapper with semantic metadata for AI tooling */
|
|
14
|
+
export declare const Flex: React.FC<FlexProps>;
|
|
15
|
+
export default Flex;
|
|
16
|
+
//# sourceMappingURL=Flex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../src/components/layout/Flex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,UAAU,CAAC,EAAE,sBAAsB;IAC9G,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,2FAA2F;IAC3F,OAAO,CAAC,EAAE,QAAQ,GAAG,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,cAAc,CAAC;IACpF,qEAAqE;IACrE,UAAU,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,YAAY,CAAC;IAC7C,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,UAAU,CAAC;CACxE;AAED,2EAA2E;AAC3E,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAoFpC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FlexItem as PFFlexItem } from '@patternfly/react-core';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
export interface FlexItemProps extends Omit<React.ComponentProps<typeof PFFlexItem>, 'children'>, SemanticComponentProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** The content type of this flex item (auto-inferred from props if not provided) */
|
|
7
|
+
contentType?: 'text' | 'button' | 'icon' | 'form-control' | 'media' | 'navigation' | 'action';
|
|
8
|
+
/** The positioning context (auto-inferred from props if not provided) */
|
|
9
|
+
positioningContext?: 'start' | 'center' | 'end' | 'stretch' | 'baseline' | 'auto';
|
|
10
|
+
/** The sizing behavior (auto-inferred from flex prop if not provided) */
|
|
11
|
+
sizingBehavior?: 'fixed' | 'flexible' | 'grow' | 'shrink' | 'auto';
|
|
12
|
+
}
|
|
13
|
+
/** FlexItem - PatternFly FlexItem wrapper with semantic metadata for AI tooling */
|
|
14
|
+
export declare const FlexItem: React.FC<FlexItemProps>;
|
|
15
|
+
export default FlexItem;
|
|
16
|
+
//# sourceMappingURL=FlexItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlexItem.d.ts","sourceRoot":"","sources":["../../../src/components/layout/FlexItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,EAAE,UAAU,CAAC,EAAE,sBAAsB;IACtH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,cAAc,GAAG,OAAO,GAAG,YAAY,GAAG,QAAQ,CAAC;IAC9F,yEAAyE;IACzE,kBAAkB,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;IAClF,yEAAyE;IACzE,cAAc,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;CACpE;AAED,mFAAmF;AACnF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAsG5C,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/layout/index.ts"],"names":[],"mappings":"AACA,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DropdownItem as PFDropdownItem } from '@patternfly/react-core';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
interface DropdownItemProps extends SemanticComponentProps, React.ComponentProps<typeof PFDropdownItem> {
|
|
5
|
+
}
|
|
6
|
+
export declare const DropdownItem: React.FC<DropdownItemProps>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=DropdownItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownItem.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/DropdownItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,IAAI,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExE,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,UAAU,iBAAkB,SAAQ,sBAAsB,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC;CAEtG;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAyCpD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MenuToggle as PFMenuToggle } from '@patternfly/react-core';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
interface MenuToggleProps extends SemanticComponentProps, React.ComponentProps<typeof PFMenuToggle> {
|
|
5
|
+
}
|
|
6
|
+
export declare const MenuToggle: React.FC<MenuToggleProps>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=MenuToggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuToggle.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/MenuToggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,UAAU,eAAgB,SAAQ,sBAAsB,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC;CAElG;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAwDhD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Drawer as PFDrawer } from '@patternfly/react-core';
|
|
3
|
+
import { SemanticComponentProps } from '../../types';
|
|
4
|
+
export interface DrawerProps extends Omit<React.ComponentProps<typeof PFDrawer>, 'children'>, SemanticComponentProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** The semantic purpose of this drawer */
|
|
7
|
+
purpose?: 'navigation' | 'filter' | 'details' | 'form' | 'settings';
|
|
8
|
+
}
|
|
9
|
+
/** Drawer - PatternFly Drawer wrapper with semantic metadata for AI tooling */
|
|
10
|
+
export declare const Drawer: React.FC<DrawerProps>;
|
|
11
|
+
export default Drawer;
|
|
12
|
+
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/overlay/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,EAAE,UAAU,CAAC,EAAE,sBAAsB;IAClH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0CAA0C;IAC1C,OAAO,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;CACrE;AAED,+EAA+E;AAC/E,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAkDxC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|