@cogentic-co/ds 0.4.1

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.
Files changed (159) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +139 -0
  3. package/dist/animations/animation-ai-analysis.d.ts +7 -0
  4. package/dist/animations/animation-ai-analysis.js +7 -0
  5. package/dist/animations/animation-ai-analysis.js.map +1 -0
  6. package/dist/animations/animation-audit-trail.d.ts +7 -0
  7. package/dist/animations/animation-audit-trail.js +5 -0
  8. package/dist/animations/animation-audit-trail.js.map +1 -0
  9. package/dist/animations/animation-compliance-reports.d.ts +7 -0
  10. package/dist/animations/animation-compliance-reports.js +7 -0
  11. package/dist/animations/animation-compliance-reports.js.map +1 -0
  12. package/dist/animations/animation-custom-rules.d.ts +7 -0
  13. package/dist/animations/animation-custom-rules.js +7 -0
  14. package/dist/animations/animation-custom-rules.js.map +1 -0
  15. package/dist/animations/animation-jira-ticket.d.ts +7 -0
  16. package/dist/animations/animation-jira-ticket.js +6 -0
  17. package/dist/animations/animation-jira-ticket.js.map +1 -0
  18. package/dist/animations/animation-jurisdiction-detection.d.ts +7 -0
  19. package/dist/animations/animation-jurisdiction-detection.js +7 -0
  20. package/dist/animations/animation-jurisdiction-detection.js.map +1 -0
  21. package/dist/animations/animation-multi-protocol.d.ts +7 -0
  22. package/dist/animations/animation-multi-protocol.js +5 -0
  23. package/dist/animations/animation-multi-protocol.js.map +1 -0
  24. package/dist/animations/animation-pricing-preview.d.ts +16 -0
  25. package/dist/animations/animation-pricing-preview.js +7 -0
  26. package/dist/animations/animation-pricing-preview.js.map +1 -0
  27. package/dist/animations/animation-realtime-updates.d.ts +7 -0
  28. package/dist/animations/animation-realtime-updates.js +8 -0
  29. package/dist/animations/animation-realtime-updates.js.map +1 -0
  30. package/dist/animations/animation-rest-api.d.ts +7 -0
  31. package/dist/animations/animation-rest-api.js +5 -0
  32. package/dist/animations/animation-rest-api.js.map +1 -0
  33. package/dist/animations/animation-risk-scoring.d.ts +7 -0
  34. package/dist/animations/animation-risk-scoring.js +8 -0
  35. package/dist/animations/animation-risk-scoring.js.map +1 -0
  36. package/dist/animations/animation-sandbox.d.ts +7 -0
  37. package/dist/animations/animation-sandbox.js +5 -0
  38. package/dist/animations/animation-sandbox.js.map +1 -0
  39. package/dist/animations/animation-scheduled-reports.d.ts +7 -0
  40. package/dist/animations/animation-scheduled-reports.js +7 -0
  41. package/dist/animations/animation-scheduled-reports.js.map +1 -0
  42. package/dist/animations/animation-secure-messaging.d.ts +7 -0
  43. package/dist/animations/animation-secure-messaging.js +6 -0
  44. package/dist/animations/animation-secure-messaging.js.map +1 -0
  45. package/dist/animations/animation-slack-notification.d.ts +7 -0
  46. package/dist/animations/animation-slack-notification.js +6 -0
  47. package/dist/animations/animation-slack-notification.js.map +1 -0
  48. package/dist/animations/animation-sop-mapping.d.ts +7 -0
  49. package/dist/animations/animation-sop-mapping.js +5 -0
  50. package/dist/animations/animation-sop-mapping.js.map +1 -0
  51. package/dist/animations/animation-team-routing.d.ts +7 -0
  52. package/dist/animations/animation-team-routing.js +7 -0
  53. package/dist/animations/animation-team-routing.js.map +1 -0
  54. package/dist/animations/animation-teams-notification.d.ts +7 -0
  55. package/dist/animations/animation-teams-notification.js +6 -0
  56. package/dist/animations/animation-teams-notification.js.map +1 -0
  57. package/dist/animations/animation-vasp-identification.d.ts +7 -0
  58. package/dist/animations/animation-vasp-identification.js +7 -0
  59. package/dist/animations/animation-vasp-identification.js.map +1 -0
  60. package/dist/animations/animation-webhooks.d.ts +7 -0
  61. package/dist/animations/animation-webhooks.js +6 -0
  62. package/dist/animations/animation-webhooks.js.map +1 -0
  63. package/dist/blocks/auth-form.d.ts +18 -0
  64. package/dist/blocks/auth-form.js +7 -0
  65. package/dist/blocks/auth-form.js.map +1 -0
  66. package/dist/blocks/feature-section.d.ts +17 -0
  67. package/dist/blocks/feature-section.js +5 -0
  68. package/dist/blocks/feature-section.js.map +1 -0
  69. package/dist/blocks/hero-section.d.ts +19 -0
  70. package/dist/blocks/hero-section.js +5 -0
  71. package/dist/blocks/hero-section.js.map +1 -0
  72. package/dist/blocks/pricing-table.d.ts +24 -0
  73. package/dist/blocks/pricing-table.js +6 -0
  74. package/dist/blocks/pricing-table.js.map +1 -0
  75. package/dist/blocks/stat-card.d.ts +15 -0
  76. package/dist/blocks/stat-card.js +6 -0
  77. package/dist/blocks/stat-card.js.map +1 -0
  78. package/dist/card-Cumdyf_G.d.ts +15 -0
  79. package/dist/charts.d.ts +4 -0
  80. package/dist/charts.js +5 -0
  81. package/dist/charts.js.map +1 -0
  82. package/dist/chatbot.d.ts +280 -0
  83. package/dist/chatbot.js +2202 -0
  84. package/dist/chatbot.js.map +1 -0
  85. package/dist/chunk-4NEQV6H2.js +39 -0
  86. package/dist/chunk-4NEQV6H2.js.map +1 -0
  87. package/dist/chunk-4YD3YS4B.js +110 -0
  88. package/dist/chunk-4YD3YS4B.js.map +1 -0
  89. package/dist/chunk-5JLZ42JT.js +125 -0
  90. package/dist/chunk-5JLZ42JT.js.map +1 -0
  91. package/dist/chunk-5OOO6TRA.js +111 -0
  92. package/dist/chunk-5OOO6TRA.js.map +1 -0
  93. package/dist/chunk-65Z2VEKG.js +161 -0
  94. package/dist/chunk-65Z2VEKG.js.map +1 -0
  95. package/dist/chunk-6RWCZUAD.js +12 -0
  96. package/dist/chunk-6RWCZUAD.js.map +1 -0
  97. package/dist/chunk-7HRPF2N2.js +56 -0
  98. package/dist/chunk-7HRPF2N2.js.map +1 -0
  99. package/dist/chunk-BNFSXNP2.js +71 -0
  100. package/dist/chunk-BNFSXNP2.js.map +1 -0
  101. package/dist/chunk-BTFYV3TI.js +102 -0
  102. package/dist/chunk-BTFYV3TI.js.map +1 -0
  103. package/dist/chunk-BTZB4JRC.js +117 -0
  104. package/dist/chunk-BTZB4JRC.js.map +1 -0
  105. package/dist/chunk-BZSA47MS.js +121 -0
  106. package/dist/chunk-BZSA47MS.js.map +1 -0
  107. package/dist/chunk-CG5JA7FM.js +107 -0
  108. package/dist/chunk-CG5JA7FM.js.map +1 -0
  109. package/dist/chunk-EFLWU2JP.js +145 -0
  110. package/dist/chunk-EFLWU2JP.js.map +1 -0
  111. package/dist/chunk-F7REPQOA.js +93 -0
  112. package/dist/chunk-F7REPQOA.js.map +1 -0
  113. package/dist/chunk-FKPK3CB7.js +143 -0
  114. package/dist/chunk-FKPK3CB7.js.map +1 -0
  115. package/dist/chunk-GZNLQE3I.js +55 -0
  116. package/dist/chunk-GZNLQE3I.js.map +1 -0
  117. package/dist/chunk-H7VUIMEL.js +172 -0
  118. package/dist/chunk-H7VUIMEL.js.map +1 -0
  119. package/dist/chunk-HTYR73ON.js +161 -0
  120. package/dist/chunk-HTYR73ON.js.map +1 -0
  121. package/dist/chunk-I26ZXVSY.js +124 -0
  122. package/dist/chunk-I26ZXVSY.js.map +1 -0
  123. package/dist/chunk-IKATDPHG.js +92 -0
  124. package/dist/chunk-IKATDPHG.js.map +1 -0
  125. package/dist/chunk-KUOF3XRZ.js +108 -0
  126. package/dist/chunk-KUOF3XRZ.js.map +1 -0
  127. package/dist/chunk-LW6GAWZM.js +148 -0
  128. package/dist/chunk-LW6GAWZM.js.map +1 -0
  129. package/dist/chunk-N7PBUY7G.js +110 -0
  130. package/dist/chunk-N7PBUY7G.js.map +1 -0
  131. package/dist/chunk-NAPDFVBI.js +102 -0
  132. package/dist/chunk-NAPDFVBI.js.map +1 -0
  133. package/dist/chunk-RTK7R4KZ.js +66 -0
  134. package/dist/chunk-RTK7R4KZ.js.map +1 -0
  135. package/dist/chunk-RXV2XUDZ.js +31 -0
  136. package/dist/chunk-RXV2XUDZ.js.map +1 -0
  137. package/dist/chunk-RZZTDJHG.js +110 -0
  138. package/dist/chunk-RZZTDJHG.js.map +1 -0
  139. package/dist/chunk-SNOJLZP4.js +197 -0
  140. package/dist/chunk-SNOJLZP4.js.map +1 -0
  141. package/dist/chunk-TAPJEVUA.js +24 -0
  142. package/dist/chunk-TAPJEVUA.js.map +1 -0
  143. package/dist/chunk-U4EPKN7G.js +518 -0
  144. package/dist/chunk-U4EPKN7G.js.map +1 -0
  145. package/dist/chunk-VWSX75RB.js +202 -0
  146. package/dist/chunk-VWSX75RB.js.map +1 -0
  147. package/dist/chunk-XFWKI45G.js +800 -0
  148. package/dist/chunk-XFWKI45G.js.map +1 -0
  149. package/dist/chunk-XQYFQ6PU.js +77 -0
  150. package/dist/chunk-XQYFQ6PU.js.map +1 -0
  151. package/dist/index-CcPuHWa-.d.ts +118 -0
  152. package/dist/index.d.ts +1385 -0
  153. package/dist/index.js +8673 -0
  154. package/dist/index.js.map +1 -0
  155. package/dist/workflow.d.ts +165 -0
  156. package/dist/workflow.js +5 -0
  157. package/dist/workflow.js.map +1 -0
  158. package/package.json +157 -0
  159. package/src/styles/globals.css +211 -0
@@ -0,0 +1,165 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactFlowProps, ConnectionLineComponent, Controls, EdgeProps, HandleProps, Position, MiniMap, Panel, NodeToolbar } from '@xyflow/react';
3
+ import { ReactNode, ComponentProps, Component, ErrorInfo } from 'react';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+ import { VariantProps } from 'class-variance-authority';
6
+
7
+ type WorkflowLayout = "vertical" | "horizontal";
8
+
9
+ type CanvasProps = ReactFlowProps & {
10
+ children?: ReactNode;
11
+ className?: string;
12
+ /** Flow direction — "vertical" (top→bottom) or "horizontal" (left→right). Default: "vertical" */
13
+ layout?: WorkflowLayout;
14
+ };
15
+ declare function Canvas({ children, className, layout, ...props }: CanvasProps): react_jsx_runtime.JSX.Element;
16
+
17
+ declare const workflowConnectionVariants: (props?: ({
18
+ variant?: "default" | "dashed" | "dotted" | "animated" | null | undefined;
19
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
20
+ type WorkflowConnectionVariant = NonNullable<VariantProps<typeof workflowConnectionVariants>["variant"]>;
21
+ declare function createConnectionLine(variant: WorkflowConnectionVariant): ConnectionLineComponent;
22
+ declare const WorkflowConnection: ConnectionLineComponent;
23
+ declare const WorkflowConnectionDotted: ConnectionLineComponent;
24
+ declare const WorkflowConnectionDashed: ConnectionLineComponent;
25
+ declare const WorkflowConnectionAnimated: ConnectionLineComponent;
26
+
27
+ type WorkflowControlsProps = ComponentProps<typeof Controls>;
28
+ declare function WorkflowControls({ className, ...props }: WorkflowControlsProps): react_jsx_runtime.JSX.Element;
29
+
30
+ type WorkflowEdgeVariant = "solid" | "dotted" | "animated" | "dashed";
31
+ type WorkflowEdgeProps = EdgeProps & {
32
+ data?: {
33
+ variant?: WorkflowEdgeVariant;
34
+ color?: string;
35
+ label?: string;
36
+ /** Show a directional arrow at the target end */
37
+ arrow?: boolean;
38
+ };
39
+ };
40
+ declare function SolidEdge({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, data, markerEnd, style, }: WorkflowEdgeProps): react_jsx_runtime.JSX.Element;
41
+ declare function DottedEdge(props: WorkflowEdgeProps): react_jsx_runtime.JSX.Element;
42
+ declare function DashedEdge(props: WorkflowEdgeProps): react_jsx_runtime.JSX.Element;
43
+ declare function TemporaryEdge({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, }: EdgeProps): react_jsx_runtime.JSX.Element;
44
+ declare function AnimatedEdge({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, markerEnd, style, data, }: WorkflowEdgeProps): react_jsx_runtime.JSX.Element;
45
+ declare const WorkflowEdge: {
46
+ Solid: typeof SolidEdge;
47
+ Dotted: typeof DottedEdge;
48
+ Dashed: typeof DashedEdge;
49
+ Animated: typeof AnimatedEdge;
50
+ Temporary: typeof TemporaryEdge;
51
+ };
52
+
53
+ declare const workflowGateVariants: (props?: ({
54
+ type?: "switch" | "end" | "delay" | "if-else" | "merge" | null | undefined;
55
+ selected?: boolean | null | undefined;
56
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
57
+ type WorkflowGateProps = ComponentProps<"div"> & VariantProps<typeof workflowGateVariants> & {
58
+ /** Label shown inside the diamond/circle */
59
+ label?: ReactNode;
60
+ /** Icon shown inside the gate shape */
61
+ icon?: ReactNode;
62
+ /** Handle configuration */
63
+ handles?: {
64
+ top?: boolean;
65
+ bottom?: boolean;
66
+ left?: boolean;
67
+ right?: boolean;
68
+ };
69
+ /** Labels for left and right branches (displayed as pills beside the gate) */
70
+ branches?: {
71
+ left?: string;
72
+ right?: string;
73
+ };
74
+ };
75
+ declare function WorkflowGate({ type, selected, label, icon, handles, branches, className, ...props }: WorkflowGateProps): react_jsx_runtime.JSX.Element;
76
+
77
+ declare const workflowGroupVariants: (props?: ({
78
+ variant?: "success" | "warning" | "default" | "primary" | null | undefined;
79
+ selected?: boolean | null | undefined;
80
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
81
+ type WorkflowGroupProps = ComponentProps<"div"> & VariantProps<typeof workflowGroupVariants> & {
82
+ /** Title shown at the top of the group */
83
+ label?: ReactNode;
84
+ /** Icon shown before the label */
85
+ icon?: ReactNode;
86
+ };
87
+ declare function WorkflowGroup({ variant, selected, label, icon, className, children, ...props }: WorkflowGroupProps): react_jsx_runtime.JSX.Element;
88
+
89
+ declare class HandleBoundary extends Component<{
90
+ children: ReactNode;
91
+ }, {
92
+ hasError: boolean;
93
+ }> {
94
+ state: {
95
+ hasError: boolean;
96
+ };
97
+ static getDerivedStateFromError(): {
98
+ hasError: boolean;
99
+ };
100
+ componentDidCatch(_: Error, __: ErrorInfo): void;
101
+ render(): ReactNode;
102
+ }
103
+ type WorkflowHandleProps = Omit<HandleProps, "position"> & {
104
+ /** Override position. If omitted, auto-detects based on layout context and type (source→bottom/right, target→top/left) */
105
+ position?: Position;
106
+ className?: string;
107
+ };
108
+ declare const handleBase = "!size-2.5 !rounded-full !border-[1.5px] !border-card !bg-muted-foreground/60 hover:!bg-primary !transition-colors";
109
+ declare function WorkflowHandle({ type, position, className, ...props }: WorkflowHandleProps): react_jsx_runtime.JSX.Element;
110
+
111
+ type WorkflowLabelProps = ComponentProps<"div"> & {
112
+ variant?: "default" | "success" | "warning" | "error" | "muted";
113
+ };
114
+ declare function WorkflowLabel({ variant, className, ...props }: WorkflowLabelProps): react_jsx_runtime.JSX.Element;
115
+
116
+ type WorkflowMinimapProps = ComponentProps<typeof MiniMap>;
117
+ declare function WorkflowMinimap({ className, ...props }: WorkflowMinimapProps): react_jsx_runtime.JSX.Element;
118
+
119
+ declare const workflowNodeVariants: (props?: ({
120
+ state?: "default" | "selected" | "dotted" | null | undefined;
121
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
122
+ type WorkflowNodeProps = ComponentProps<"div"> & VariantProps<typeof workflowNodeVariants> & {
123
+ /** Show the 6-dot drag grip in the header */
124
+ draggable?: boolean;
125
+ /** Icon rendered before the title — wrap in a coloured square for the best look */
126
+ icon?: React.ReactNode;
127
+ /** Node title text */
128
+ title?: React.ReactNode;
129
+ /** Status badge (e.g. "TRIGGER") shown at the trailing edge of the header */
130
+ status?: React.ReactNode;
131
+ /** Notification badge count rendered on the icon */
132
+ badge?: number | string;
133
+ /** Make the body collapsible with an expand/close footer toggle */
134
+ collapsible?: boolean;
135
+ /** Start collapsed when collapsible is true */
136
+ defaultCollapsed?: boolean;
137
+ /** Custom footer content (ignored when collapsible is true) */
138
+ footer?: React.ReactNode;
139
+ /** Configure source/target handles at the top and bottom edges */
140
+ handles?: {
141
+ target?: boolean;
142
+ source?: boolean;
143
+ };
144
+ };
145
+ declare function WorkflowNodeHeader({ className, ...props }: ComponentProps<"div">): react_jsx_runtime.JSX.Element;
146
+ declare function WorkflowNodeTitle({ className, ...props }: ComponentProps<"div">): react_jsx_runtime.JSX.Element;
147
+ declare function WorkflowNodeDescription({ className, ...props }: ComponentProps<"div">): react_jsx_runtime.JSX.Element;
148
+ declare function WorkflowNodeAction({ className, ...props }: ComponentProps<"div">): react_jsx_runtime.JSX.Element;
149
+ declare function WorkflowNodeContent({ className, ...props }: ComponentProps<"div">): react_jsx_runtime.JSX.Element;
150
+ declare function WorkflowNodeFooter({ className, ...props }: ComponentProps<"div">): react_jsx_runtime.JSX.Element;
151
+ declare function WorkflowNodeSeparator({ className, ...props }: ComponentProps<"div">): react_jsx_runtime.JSX.Element;
152
+ declare function WorkflowNodeRow({ label, value, icon, className, ...props }: ComponentProps<"div"> & {
153
+ label: string;
154
+ value: React.ReactNode;
155
+ icon?: React.ReactNode;
156
+ }): react_jsx_runtime.JSX.Element;
157
+ declare function WorkflowNode({ state, draggable: showDragHandle, icon, title, status, badge, collapsible, defaultCollapsed, footer, handles, className, children, ...props }: WorkflowNodeProps): react_jsx_runtime.JSX.Element;
158
+
159
+ type WorkflowPanelProps = ComponentProps<typeof Panel>;
160
+ declare function WorkflowPanel({ className, ...props }: WorkflowPanelProps): react_jsx_runtime.JSX.Element;
161
+
162
+ type WorkflowToolbarProps = ComponentProps<typeof NodeToolbar>;
163
+ declare function WorkflowToolbar({ className, ...props }: WorkflowToolbarProps): react_jsx_runtime.JSX.Element;
164
+
165
+ export { AnimatedEdge, Canvas, type CanvasProps, DashedEdge, DottedEdge, HandleBoundary, SolidEdge, TemporaryEdge, WorkflowConnection, WorkflowConnectionAnimated, WorkflowConnectionDashed, WorkflowConnectionDotted, type WorkflowConnectionVariant, WorkflowControls, type WorkflowControlsProps, WorkflowEdge, type WorkflowEdgeProps, type WorkflowEdgeVariant, WorkflowGate, type WorkflowGateProps, WorkflowGroup, type WorkflowGroupProps, WorkflowHandle, type WorkflowHandleProps, WorkflowLabel, type WorkflowLabelProps, WorkflowMinimap, type WorkflowMinimapProps, WorkflowNode, WorkflowNodeAction, WorkflowNodeContent, WorkflowNodeDescription, WorkflowNodeFooter, WorkflowNodeHeader, type WorkflowNodeProps, WorkflowNodeRow, WorkflowNodeSeparator, WorkflowNodeTitle, WorkflowPanel, type WorkflowPanelProps, WorkflowToolbar, type WorkflowToolbarProps, createConnectionLine, handleBase, workflowConnectionVariants, workflowGateVariants, workflowGroupVariants, workflowNodeVariants };
@@ -0,0 +1,5 @@
1
+ "use client";
2
+ export { AnimatedEdge, Canvas, DashedEdge, DottedEdge, HandleBoundary, SolidEdge, TemporaryEdge, WorkflowConnection, WorkflowConnectionAnimated, WorkflowConnectionDashed, WorkflowConnectionDotted, WorkflowControls, WorkflowEdge, WorkflowGate, WorkflowGroup, WorkflowHandle, WorkflowLabel, WorkflowMinimap, WorkflowNode, WorkflowNodeAction, WorkflowNodeContent, WorkflowNodeDescription, WorkflowNodeFooter, WorkflowNodeHeader, WorkflowNodeRow, WorkflowNodeSeparator, WorkflowNodeTitle, WorkflowPanel, WorkflowToolbar, createConnectionLine, handleBase, workflowConnectionVariants, workflowGateVariants, workflowGroupVariants, workflowNodeVariants } from './chunk-XFWKI45G.js';
3
+ import './chunk-GZNLQE3I.js';
4
+ //# sourceMappingURL=workflow.js.map
5
+ //# sourceMappingURL=workflow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"workflow.js"}
package/package.json ADDED
@@ -0,0 +1,157 @@
1
+ {
2
+ "name": "@cogentic-co/ds",
3
+ "version": "0.4.1",
4
+ "description": "Cogentic Design System — UI components for building modern compliance applications",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": {
13
+ "types": "./dist/index.d.ts",
14
+ "default": "./dist/index.js"
15
+ }
16
+ },
17
+ "./styles.css": "./src/styles/globals.css",
18
+ "./animations/*": {
19
+ "import": {
20
+ "types": "./dist/animations/*.d.ts",
21
+ "default": "./dist/animations/*.js"
22
+ }
23
+ },
24
+ "./blocks/*": {
25
+ "import": {
26
+ "types": "./dist/blocks/*.d.ts",
27
+ "default": "./dist/blocks/*.js"
28
+ }
29
+ },
30
+ "./charts": {
31
+ "import": {
32
+ "types": "./dist/charts.d.ts",
33
+ "default": "./dist/charts.js"
34
+ }
35
+ },
36
+ "./workflow": {
37
+ "import": {
38
+ "types": "./dist/workflow.d.ts",
39
+ "default": "./dist/workflow.js"
40
+ }
41
+ }
42
+ },
43
+ "files": [
44
+ "dist",
45
+ "src/styles"
46
+ ],
47
+ "sideEffects": [
48
+ "*.css"
49
+ ],
50
+ "publishConfig": {
51
+ "access": "public"
52
+ },
53
+ "homepage": "https://cogentic.co",
54
+ "repository": {
55
+ "type": "git",
56
+ "url": "https://github.com/cogentic-co/ds.git"
57
+ },
58
+ "bugs": {
59
+ "url": "https://github.com/cogentic-co/ds/issues"
60
+ },
61
+ "keywords": [
62
+ "design-system",
63
+ "react",
64
+ "components",
65
+ "tailwindcss",
66
+ "typescript",
67
+ "ui",
68
+ "compliance",
69
+ "nextjs",
70
+ "base-ui",
71
+ "cogentic"
72
+ ],
73
+ "peerDependencies": {
74
+ "next": "^15.0.0 || ^16.0.0",
75
+ "react": "^18.0.0 || ^19.0.0",
76
+ "react-dom": "^18.0.0 || ^19.0.0",
77
+ "tailwindcss": "^4.0.0"
78
+ },
79
+ "peerDependenciesMeta": {
80
+ "@xyflow/react": {
81
+ "optional": true
82
+ }
83
+ },
84
+ "dependencies": {
85
+ "@base-ui/react": "^1.2.0",
86
+ "@radix-ui/react-label": "^2.1.8",
87
+ "@radix-ui/react-slot": "^1.2.4",
88
+ "@tanstack/react-form": "^1.28.4",
89
+ "@tanstack/react-table": "^8.21.3",
90
+ "@tanstack/react-virtual": "^3.13.21",
91
+ "class-variance-authority": "^0.7.1",
92
+ "clsx": "^2.1.1",
93
+ "cmdk": "^1.1.1",
94
+ "date-fns": "^4.1.0",
95
+ "embla-carousel-react": "^8.6.0",
96
+ "input-otp": "^1.4.2",
97
+ "lucide-react": "^0.575.0",
98
+ "motion": "^12.34.3",
99
+ "radix-ui": "^1.4.3",
100
+ "react-day-picker": "^9.13.2",
101
+ "react-resizable-panels": "^4.6.5",
102
+ "recharts": "3.7.0",
103
+ "sonner": "^2.0.7",
104
+ "tailwind-merge": "^3.5.0",
105
+ "tw-animate-css": "^1.4.0",
106
+ "vaul": "^1.1.2",
107
+ "zod": "^4.3.6"
108
+ },
109
+ "devDependencies": {
110
+ "@biomejs/biome": "^2.4.6",
111
+ "@changesets/cli": "^2.30.0",
112
+ "@playwright/test": "^1.58.2",
113
+ "@size-limit/file": "^12.0.1",
114
+ "@tailwindcss/postcss": "^4.2.1",
115
+ "@testing-library/jest-dom": "^6.9.1",
116
+ "@testing-library/react": "^16.3.2",
117
+ "@testing-library/user-event": "^14.6.1",
118
+ "@types/jscodeshift": "^17.3.0",
119
+ "@types/node": "^25.3.1",
120
+ "@types/react": "19.2.14",
121
+ "@types/react-dom": "19.2.3",
122
+ "@vitejs/plugin-react": "^5.1.4",
123
+ "@xyflow/react": "^12.8.2",
124
+ "jscodeshift": "^17.3.0",
125
+ "jsdom": "^28.1.0",
126
+ "next": "16.1.6",
127
+ "react-docgen-typescript": "^2.4.0",
128
+ "shadcn": "^3.8.5",
129
+ "shiki": "^4.0.2",
130
+ "size-limit": "^12.0.1",
131
+ "tailwindcss": "^4.2.1",
132
+ "tsup": "^8.5.1",
133
+ "tsx": "^4.21.0",
134
+ "typescript": "^5.9.3",
135
+ "vitest": "^4.0.18",
136
+ "vitest-axe": "^0.1.0"
137
+ },
138
+ "scripts": {
139
+ "dev": "next dev --turbopack",
140
+ "build": "next build --turbopack",
141
+ "generate:props": "node --import tsx scripts/generate-props.ts",
142
+ "build:pkg": "tsup",
143
+ "start": "next start",
144
+ "lint": "biome check .",
145
+ "lint:fix": "biome check --write .",
146
+ "format": "biome format --write .",
147
+ "registry:build": "shadcn build",
148
+ "size": "size-limit",
149
+ "size:check": "size-limit --json",
150
+ "test": "vitest run",
151
+ "test:watch": "vitest",
152
+ "test:visual": "playwright test",
153
+ "test:visual:update": "playwright test --update-snapshots",
154
+ "changeset": "changeset",
155
+ "version:bump": "changeset version"
156
+ }
157
+ }
@@ -0,0 +1,211 @@
1
+ @custom-variant dark (&:is(.dark *));
2
+
3
+ @keyframes fade-up {
4
+ from {
5
+ opacity: 0;
6
+ transform: translateY(24px);
7
+ }
8
+ to {
9
+ opacity: 1;
10
+ transform: translateY(0);
11
+ }
12
+ }
13
+
14
+ @keyframes marquee-left {
15
+ from {
16
+ transform: translateX(0);
17
+ }
18
+ to {
19
+ transform: translateX(-50%);
20
+ }
21
+ }
22
+
23
+ @keyframes marquee-right {
24
+ from {
25
+ transform: translateX(-50%);
26
+ }
27
+ to {
28
+ transform: translateX(0);
29
+ }
30
+ }
31
+
32
+ @keyframes shimmer {
33
+ from {
34
+ background-position: 200% 0;
35
+ }
36
+ to {
37
+ background-position: -200% 0;
38
+ }
39
+ }
40
+
41
+ @theme inline {
42
+ --font-sans: var(--font-sans);
43
+ --font-mono: "JetBrains Mono", ui-monospace, monospace;
44
+
45
+ --color-cogentic-green: var(--cogentic-green);
46
+
47
+ --color-background: var(--background);
48
+ --color-foreground: var(--foreground);
49
+
50
+ --color-card: var(--card);
51
+ --color-card-foreground: var(--card-foreground);
52
+
53
+ --color-popover: var(--popover);
54
+ --color-popover-foreground: var(--popover-foreground);
55
+
56
+ --color-primary: var(--primary);
57
+ --color-primary-foreground: var(--primary-foreground);
58
+
59
+ --color-secondary: var(--secondary);
60
+ --color-secondary-foreground: var(--secondary-foreground);
61
+
62
+ --color-muted: var(--muted);
63
+ --color-muted-foreground: var(--muted-foreground);
64
+
65
+ --color-accent: var(--accent);
66
+ --color-accent-foreground: var(--accent-foreground);
67
+
68
+ --color-destructive: var(--destructive);
69
+ --color-destructive-foreground: var(--destructive-foreground);
70
+
71
+ --color-warning: var(--warning);
72
+ --color-warning-foreground: var(--warning-foreground);
73
+
74
+ --color-border: var(--border);
75
+ --color-border-light: var(--border-light);
76
+ --color-input: var(--input);
77
+ --color-ring: var(--ring);
78
+
79
+ --color-chart-1: var(--chart-1);
80
+ --color-chart-2: var(--chart-2);
81
+ --color-chart-3: var(--chart-3);
82
+ --color-chart-4: var(--chart-4);
83
+ --color-chart-5: var(--chart-5);
84
+
85
+ --color-sidebar-ring: var(--sidebar-ring);
86
+ --color-sidebar-border: var(--sidebar-border);
87
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
88
+ --color-sidebar-accent: var(--sidebar-accent);
89
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
90
+ --color-sidebar-primary: var(--sidebar-primary);
91
+ --color-sidebar-foreground: var(--sidebar-foreground);
92
+ --color-sidebar: var(--sidebar);
93
+
94
+ --color-logo-gray: var(--logo-gray);
95
+ --color-tagline: var(--tagline);
96
+ --color-success: var(--success);
97
+ --color-risk-high: var(--risk-high);
98
+ --color-cyan: #00d4ff;
99
+
100
+ --shadow-soft: var(--shadow-soft);
101
+ --shadow-light: var(--shadow-light);
102
+
103
+ --radius-sm: calc(var(--radius) - 4px);
104
+ --radius-md: calc(var(--radius) - 2px);
105
+ --radius-lg: var(--radius);
106
+ --radius-xl: calc(var(--radius) + 4px);
107
+
108
+ --animate-marquee-left: marquee-left linear infinite;
109
+ --animate-marquee-right: marquee-right linear infinite;
110
+ --animate-shimmer: shimmer ease-in-out infinite;
111
+ }
112
+
113
+ :root {
114
+ --radius: 0.625rem;
115
+ --cogentic-green: #0e2807;
116
+ --background: oklch(98.511% 0.00011 271.152);
117
+ --foreground: oklch(0.172 0.006 286.3);
118
+ --card: oklch(1 0 89.88);
119
+ --card-foreground: oklch(0.172 0.006 286.3);
120
+ --popover: oklch(1 0 89.88);
121
+ --popover-foreground: oklch(0.172 0.006 286.3);
122
+ --primary: oklch(0.172 0.006 286.3);
123
+ --primary-foreground: oklch(1 0 89.88);
124
+ --secondary: oklch(0.9461 0 89.88);
125
+ --secondary-foreground: oklch(0.2046 0 89.88);
126
+ --muted: oklch(0.9702 0 89.88);
127
+ --muted-foreground: oklch(0.61 0.03 270);
128
+ --accent: oklch(0.982 0.004 230);
129
+ --accent-foreground: oklch(0.2046 0 89.88);
130
+ --destructive: oklch(0.6368 0.2078 25.33);
131
+ --destructive-foreground: oklch(1 0 89.88);
132
+ --warning: oklch(0.78 0.16 70);
133
+ --warning-foreground: oklch(0.32 0.07 55);
134
+ --border: oklch(0.924 0.003 255.9);
135
+ --border-light: oklch(0.956 0.004 248.7);
136
+ --input: oklch(0.9219 0 89.88);
137
+ --ring: oklch(0.172 0.006 286.3);
138
+ --chart-1: oklch(0.6486 0.1771 32.95);
139
+ --chart-2: oklch(0.6304 0.1013 183.03);
140
+ --chart-3: oklch(0.3753 0.0438 226.2);
141
+ --chart-4: oklch(0.8342 0.117 87.43);
142
+ --chart-5: oklch(0.7806 0.1269 57.86);
143
+ --logo-gray: oklch(0.66 0.027 268.5);
144
+ --tagline: rgb(42, 48, 51);
145
+ --success: oklch(0.79 0.12 179.5);
146
+ --risk-high: oklch(0.65 0.18 50);
147
+ --shadow-soft: 0 2px 4px 0 rgba(13, 13, 18, 0.15);
148
+ --shadow-light: 0 2px 4px 0 rgba(13, 13, 18, 0.04);
149
+ --sidebar: oklch(0.9702 0 89.88);
150
+ --sidebar-foreground: oklch(0.172 0.006 286.3);
151
+ --sidebar-primary: oklch(0.172 0.006 286.3);
152
+ --sidebar-primary-foreground: oklch(1 0 89.88);
153
+ --sidebar-accent: oklch(0.982 0.004 230);
154
+ --sidebar-accent-foreground: oklch(0.2046 0 89.88);
155
+ --sidebar-border: oklch(0.924 0.003 255.9);
156
+ --sidebar-ring: oklch(0.172 0.006 286.3);
157
+ }
158
+
159
+ .dark {
160
+ --cogentic-green: oklch(94.675% 0.16548 122.442);
161
+ --background: oklch(0.23 0.02 265);
162
+ --foreground: oklch(0.98 0.01 255);
163
+ --card: oklch(0.26 0.02 265);
164
+ --card-foreground: oklch(0.98 0.01 255);
165
+ --popover: oklch(0.26 0.02 265);
166
+ --popover-foreground: oklch(0.98 0.01 255);
167
+ --primary: oklch(0.98 0.01 255);
168
+ --primary-foreground: oklch(0.23 0.02 265);
169
+ --secondary: oklch(0.29 0.02 265);
170
+ --secondary-foreground: oklch(0.98 0.01 255);
171
+ --muted: oklch(0.28 0.015 265);
172
+ --muted-foreground: oklch(0.75 0.02 260);
173
+ --accent: oklch(0.29 0.02 265);
174
+ --accent-foreground: oklch(0.98 0.01 255);
175
+ --destructive: oklch(0.62 0.21 25.3);
176
+ --destructive-foreground: oklch(0.98 0.005 255);
177
+ --warning: oklch(0.75 0.15 70);
178
+ --warning-foreground: oklch(0.92 0.04 85);
179
+ --border: oklch(0.36 0.01 265);
180
+ --border-light: oklch(0.42 0.01 265);
181
+ --input: oklch(0.29 0.02 265);
182
+ --ring: oklch(0.92 0.02 255);
183
+ --chart-1: oklch(0.72 0.19 33);
184
+ --chart-2: oklch(0.7 0.1 183);
185
+ --chart-3: oklch(0.58 0.05 226);
186
+ --chart-4: oklch(0.78 0.11 87);
187
+ --chart-5: oklch(0.74 0.12 58);
188
+ --logo-gray: oklch(0.77 0.02 268.5);
189
+ --tagline: oklch(0.57 0.223 275.64);
190
+ --success: oklch(0.74 0.12 179.5);
191
+ --risk-high: oklch(0.65 0.18 50);
192
+ --shadow-soft: 0 2px 4px 0 rgba(0, 0, 0, 0.35);
193
+ --shadow-light: 0 2px 8px -1px rgba(0, 0, 0, 0.3);
194
+ --sidebar: oklch(0.26 0.02 265);
195
+ --sidebar-foreground: oklch(0.98 0.01 255);
196
+ --sidebar-primary: oklch(0.98 0.01 255);
197
+ --sidebar-primary-foreground: oklch(0.23 0.02 265);
198
+ --sidebar-accent: oklch(0.29 0.02 265);
199
+ --sidebar-accent-foreground: oklch(0.98 0.01 255);
200
+ --sidebar-border: oklch(0.36 0.01 265);
201
+ --sidebar-ring: oklch(0.92 0.02 255);
202
+ }
203
+
204
+ @layer base {
205
+ * {
206
+ @apply border-border outline-ring/50;
207
+ }
208
+ body {
209
+ @apply bg-background text-foreground;
210
+ }
211
+ }