@kanso-protocol/core 0.1.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.
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Kanso Protocol — Core Types
3
+ *
4
+ * These types define the shared API contract for all components.
5
+ * Every interactive component MUST use these types consistently.
6
+ */
7
+ /** Component size scale */
8
+ type KpSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
9
+ /** Visual variant */
10
+ type KpVariant = 'default' | 'subtle' | 'outline' | 'ghost';
11
+ /** Color role */
12
+ type KpColorRole = 'primary' | 'secondary' | 'danger' | 'warning' | 'success' | 'info' | 'neutral';
13
+ /** Interactive component states (for documentation/testing) */
14
+ type KpState = 'rest' | 'hover' | 'active' | 'focus' | 'disabled' | 'loading' | 'error';
15
+ /** Size-to-value mappings */
16
+ declare const KP_SIZES: Record<KpSize, number>;
17
+ declare const KP_RADII: Record<KpSize, number>;
18
+ declare const KP_ICON_SIZES: Record<KpSize, number>;
19
+
20
+ export { KP_ICON_SIZES, KP_RADII, KP_SIZES };
21
+ export type { KpColorRole, KpSize, KpState, KpVariant };