@mieweb/ui 0.10.0-dev.11 → 0.10.0-dev.12

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 (113) hide show
  1. package/dist/Input-yN516s5_.d.cts +3 -0
  2. package/dist/Input-yN516s5_.d.ts +3 -0
  3. package/dist/ag-grid.d.cts +142 -1
  4. package/dist/ag-grid.d.ts +142 -1
  5. package/dist/components/Alert/index.d.cts +1 -1
  6. package/dist/components/Alert/index.d.ts +1 -1
  7. package/dist/components/AlertDialog/index.d.cts +28 -3
  8. package/dist/components/AlertDialog/index.d.ts +28 -3
  9. package/dist/components/AudioRecorder/index.d.cts +2 -2
  10. package/dist/components/AudioRecorder/index.d.ts +2 -2
  11. package/dist/components/Autocomplete/index.d.cts +8 -2
  12. package/dist/components/Autocomplete/index.d.ts +8 -2
  13. package/dist/components/Avatar/index.d.cts +1 -1
  14. package/dist/components/Avatar/index.d.ts +1 -1
  15. package/dist/components/Badge/index.d.cts +1 -1
  16. package/dist/components/Badge/index.d.ts +1 -1
  17. package/dist/components/BoardView/index.d.cts +91 -4
  18. package/dist/components/BoardView/index.d.ts +91 -4
  19. package/dist/components/Button/index.d.cts +1 -1
  20. package/dist/components/Button/index.d.ts +1 -1
  21. package/dist/components/CalendarView/index.d.cts +1 -2
  22. package/dist/components/CalendarView/index.d.ts +1 -2
  23. package/dist/components/Card/index.d.cts +3 -3
  24. package/dist/components/Card/index.d.ts +3 -3
  25. package/dist/components/Dropdown/index.d.cts +2 -1
  26. package/dist/components/Dropdown/index.d.ts +2 -1
  27. package/dist/components/GanttView/index.d.cts +1 -2
  28. package/dist/components/GanttView/index.d.ts +1 -2
  29. package/dist/components/ListView/index.d.cts +2 -3
  30. package/dist/components/ListView/index.d.ts +2 -3
  31. package/dist/components/MediaEditor/index.d.cts +91 -2
  32. package/dist/components/MediaEditor/index.d.ts +91 -2
  33. package/dist/components/MediaPlayer/index.d.cts +1 -1
  34. package/dist/components/MediaPlayer/index.d.ts +1 -1
  35. package/dist/components/Pagination/index.d.cts +1 -1
  36. package/dist/components/Pagination/index.d.ts +1 -1
  37. package/dist/components/PhoneInput/index.d.cts +36 -3
  38. package/dist/components/PhoneInput/index.d.ts +36 -3
  39. package/dist/components/Progress/index.d.cts +1 -1
  40. package/dist/components/Progress/index.d.ts +1 -1
  41. package/dist/components/Q/index.d.cts +2 -2
  42. package/dist/components/Q/index.d.ts +2 -2
  43. package/dist/components/QuickAction/index.d.cts +1 -1
  44. package/dist/components/QuickAction/index.d.ts +1 -1
  45. package/dist/components/RecordButton/index.d.cts +1 -1
  46. package/dist/components/RecordButton/index.d.ts +1 -1
  47. package/dist/components/RichTextEditor/index.d.cts +7 -2
  48. package/dist/components/RichTextEditor/index.d.ts +7 -2
  49. package/dist/components/ScrollArea/index.d.cts +1 -1
  50. package/dist/components/ScrollArea/index.d.ts +1 -1
  51. package/dist/components/Select/index.d.cts +1 -2
  52. package/dist/components/Select/index.d.ts +1 -2
  53. package/dist/components/Skeleton/index.d.cts +1 -1
  54. package/dist/components/Skeleton/index.d.ts +1 -1
  55. package/dist/components/Slider/index.d.cts +2 -2
  56. package/dist/components/Slider/index.d.ts +2 -2
  57. package/dist/components/Spinner/index.d.cts +2 -2
  58. package/dist/components/Spinner/index.d.ts +2 -2
  59. package/dist/components/SuperChat/index.d.cts +2 -4
  60. package/dist/components/SuperChat/index.d.ts +2 -4
  61. package/dist/components/SuperChat/plugins/index.d.cts +2 -3
  62. package/dist/components/SuperChat/plugins/index.d.ts +2 -3
  63. package/dist/components/Text/index.d.cts +3 -3
  64. package/dist/components/Text/index.d.ts +3 -3
  65. package/dist/components/Textarea/index.d.cts +1 -2
  66. package/dist/components/Textarea/index.d.ts +1 -2
  67. package/dist/components/ThemeProvider/index.d.cts +3 -1
  68. package/dist/components/ThemeProvider/index.d.ts +3 -1
  69. package/dist/components/TranscriptView/index.d.cts +85 -4
  70. package/dist/components/TranscriptView/index.d.ts +85 -4
  71. package/dist/components/ViewSet/index.d.cts +120 -9
  72. package/dist/components/ViewSet/index.d.ts +120 -9
  73. package/dist/components/ViewSwitcher/index.d.cts +4 -40
  74. package/dist/components/ViewSwitcher/index.d.ts +4 -40
  75. package/dist/datavis.d.cts +167 -13
  76. package/dist/datavis.d.ts +167 -13
  77. package/dist/esheet.d.cts +183 -1
  78. package/dist/esheet.d.ts +183 -1
  79. package/dist/hooks/index.d.cts +383 -31
  80. package/dist/hooks/index.d.ts +383 -31
  81. package/dist/index-DoYYWsNc.d.cts +127 -0
  82. package/dist/index-DoYYWsNc.d.ts +127 -0
  83. package/dist/index.d.cts +7592 -414
  84. package/dist/index.d.ts +7592 -414
  85. package/dist/motion.d.cts +186 -2
  86. package/dist/motion.d.ts +186 -2
  87. package/dist/q.d.cts +25 -3
  88. package/dist/q.d.ts +25 -3
  89. package/dist/{types-B97JNRNQ.d.cts → types-DOxdTwmq.d.cts} +170 -2
  90. package/dist/{types-gZXrfLj6.d.ts → types-DOxdTwmq.d.ts} +170 -2
  91. package/dist/{types-CbWXIKbe.d.cts → types-DsdZvEI1.d.cts} +1 -28
  92. package/dist/{types-CbWXIKbe.d.ts → types-DsdZvEI1.d.ts} +1 -28
  93. package/dist/utils/index.d.cts +13 -2
  94. package/dist/utils/index.d.ts +13 -2
  95. package/package.json +3 -2
  96. package/dist/Animated-XmH6k8pZ.d.cts +0 -188
  97. package/dist/Animated-XmH6k8pZ.d.ts +0 -188
  98. package/dist/MedicationEditor-Bp4NLy7y.d.cts +0 -352
  99. package/dist/MedicationEditor-Bp4NLy7y.d.ts +0 -352
  100. package/dist/html-MdxqSzjD.d.cts +0 -13
  101. package/dist/html-MdxqSzjD.d.ts +0 -13
  102. package/dist/orderRows-BUJYgSc7.d.cts +0 -221
  103. package/dist/orderRows-BUJYgSc7.d.ts +0 -221
  104. package/dist/transcript-Cg7uSW-C.d.cts +0 -84
  105. package/dist/transcript-Cg7uSW-C.d.ts +0 -84
  106. package/dist/types-CnPEwzlp.d.cts +0 -254
  107. package/dist/types-CnPEwzlp.d.ts +0 -254
  108. package/dist/useAnchoredPosition-CKwLSQW8.d.cts +0 -76
  109. package/dist/useAnchoredPosition-CKwLSQW8.d.ts +0 -76
  110. package/dist/useTheme-B9SWu6ui.d.cts +0 -24
  111. package/dist/useTheme-B9SWu6ui.d.ts +0 -24
  112. package/dist/useTranscriptEdits-CGzlemHT.d.cts +0 -182
  113. package/dist/useTranscriptEdits-D32bLs0l.d.ts +0 -182
@@ -0,0 +1,3 @@
1
+ type RequiredMarkVariant = 'default' | 'warning';
2
+
3
+ export type { RequiredMarkVariant as R };
@@ -0,0 +1,3 @@
1
+ type RequiredMarkVariant = 'default' | 'warning';
2
+
3
+ export type { RequiredMarkVariant as R };
@@ -5,7 +5,148 @@ export { AgGridReact } from 'ag-grid-react';
5
5
  import { RowClickedEvent, RowSelectionOptions, ColDef as ColDef$1, ICellRendererParams } from 'ag-grid-community';
6
6
  export { ColDef as AGColDef, CellClickedEvent, CellValueChangedEvent, FilterChangedEvent, FirstDataRenderedEvent, GridApi, GridReadyEvent, RowClickedEvent, RowSelectedEvent, SelectionChangedEvent, SortChangedEvent } from 'ag-grid-community';
7
7
  import { VariantProps } from 'class-variance-authority';
8
- import { BrandConfig } from './brands/types.cjs';
8
+
9
+ /**
10
+ * @mieweb/ui Brand System Types
11
+ *
12
+ * This module provides type definitions and utilities for brand themes.
13
+ * Brands define colors, typography, spacing, and other design tokens that
14
+ * can be applied to @mieweb/ui components.
15
+ */
16
+ /**
17
+ * Primary color scale (50-950) following Tailwind conventions.
18
+ */
19
+ interface ColorScale {
20
+ 50: string;
21
+ 100: string;
22
+ 200: string;
23
+ 300: string;
24
+ 400: string;
25
+ 500: string;
26
+ 600: string;
27
+ 700: string;
28
+ 800: string;
29
+ 900: string;
30
+ 950: string;
31
+ }
32
+ /**
33
+ * Semantic colors for a specific color mode (light or dark).
34
+ */
35
+ interface SemanticColors {
36
+ /** Page background color */
37
+ background: string;
38
+ /** Primary text color */
39
+ foreground: string;
40
+ /** Card/panel background */
41
+ card: string;
42
+ /** Card text color */
43
+ cardForeground: string;
44
+ /** Muted/subtle background */
45
+ muted: string;
46
+ /** Muted/secondary text */
47
+ mutedForeground: string;
48
+ /** Border color */
49
+ border: string;
50
+ /** Input border color */
51
+ input: string;
52
+ /** Focus ring color */
53
+ ring: string;
54
+ /** Destructive/error color */
55
+ destructive: string;
56
+ /** Text on destructive backgrounds */
57
+ destructiveForeground: string;
58
+ /** Success color */
59
+ success: string;
60
+ /** Text on success backgrounds */
61
+ successForeground: string;
62
+ /** Warning color */
63
+ warning: string;
64
+ /** Text on warning backgrounds */
65
+ warningForeground: string;
66
+ }
67
+ /**
68
+ * Complete color configuration for a brand.
69
+ */
70
+ interface BrandColors {
71
+ /** Primary brand color scale */
72
+ primary: ColorScale;
73
+ /** Secondary color scale (optional — falls back to library defaults) */
74
+ secondary?: ColorScale;
75
+ /** Neutral / gray color scale (optional — falls back to library defaults) */
76
+ neutral?: ColorScale;
77
+ /** Destructive / error color scale (optional — falls back to library defaults) */
78
+ destructive?: ColorScale;
79
+ /** Success color scale (optional — falls back to library defaults) */
80
+ success?: ColorScale;
81
+ /** Warning color scale (optional — falls back to library defaults) */
82
+ warning?: ColorScale;
83
+ /** Info color scale (optional — falls back to library defaults) */
84
+ info?: ColorScale;
85
+ /**
86
+ * Brand accent (optional) — exposed as `--mieweb-accent`, `--mieweb-accent-light`
87
+ * and `--mieweb-accent-dark`. Components fall back to the primary scale when unset.
88
+ */
89
+ accent?: {
90
+ DEFAULT: string;
91
+ light?: string;
92
+ dark?: string;
93
+ };
94
+ /** Light mode semantic colors */
95
+ light: SemanticColors;
96
+ /** Dark mode semantic colors */
97
+ dark: SemanticColors;
98
+ }
99
+ /**
100
+ * Typography configuration for a brand.
101
+ */
102
+ interface BrandTypography {
103
+ /** Font family stack for body text */
104
+ fontFamily: {
105
+ sans: string[];
106
+ mono?: string[];
107
+ };
108
+ /** Base font size (usually 16px) */
109
+ baseFontSize?: string;
110
+ }
111
+ /**
112
+ * Border radius configuration.
113
+ */
114
+ interface BrandBorderRadius {
115
+ none: string;
116
+ sm: string;
117
+ md: string;
118
+ lg: string;
119
+ xl: string;
120
+ '2xl': string;
121
+ full: string;
122
+ }
123
+ /**
124
+ * Box shadow configuration.
125
+ */
126
+ interface BrandBoxShadow {
127
+ card: string;
128
+ dropdown: string;
129
+ modal: string;
130
+ }
131
+ /**
132
+ * Complete brand configuration.
133
+ */
134
+ interface BrandConfig {
135
+ /** Unique identifier (lowercase, no spaces) */
136
+ name: string;
137
+ /** Human-readable display name */
138
+ displayName: string;
139
+ /** Brand description */
140
+ description?: string;
141
+ /** Color configuration */
142
+ colors: BrandColors;
143
+ /** Typography settings */
144
+ typography: BrandTypography;
145
+ /** Border radius scale */
146
+ borderRadius: BrandBorderRadius;
147
+ /** Box shadow definitions */
148
+ boxShadow: BrandBoxShadow;
149
+ }
9
150
 
10
151
  declare const agGridVariants: (props?: ({
11
152
  variant?: "default" | "bordered" | "striped" | "card" | null | undefined;
package/dist/ag-grid.d.ts CHANGED
@@ -5,7 +5,148 @@ export { AgGridReact } from 'ag-grid-react';
5
5
  import { RowClickedEvent, RowSelectionOptions, ColDef as ColDef$1, ICellRendererParams } from 'ag-grid-community';
6
6
  export { ColDef as AGColDef, CellClickedEvent, CellValueChangedEvent, FilterChangedEvent, FirstDataRenderedEvent, GridApi, GridReadyEvent, RowClickedEvent, RowSelectedEvent, SelectionChangedEvent, SortChangedEvent } from 'ag-grid-community';
7
7
  import { VariantProps } from 'class-variance-authority';
8
- import { BrandConfig } from './brands/types.js';
8
+
9
+ /**
10
+ * @mieweb/ui Brand System Types
11
+ *
12
+ * This module provides type definitions and utilities for brand themes.
13
+ * Brands define colors, typography, spacing, and other design tokens that
14
+ * can be applied to @mieweb/ui components.
15
+ */
16
+ /**
17
+ * Primary color scale (50-950) following Tailwind conventions.
18
+ */
19
+ interface ColorScale {
20
+ 50: string;
21
+ 100: string;
22
+ 200: string;
23
+ 300: string;
24
+ 400: string;
25
+ 500: string;
26
+ 600: string;
27
+ 700: string;
28
+ 800: string;
29
+ 900: string;
30
+ 950: string;
31
+ }
32
+ /**
33
+ * Semantic colors for a specific color mode (light or dark).
34
+ */
35
+ interface SemanticColors {
36
+ /** Page background color */
37
+ background: string;
38
+ /** Primary text color */
39
+ foreground: string;
40
+ /** Card/panel background */
41
+ card: string;
42
+ /** Card text color */
43
+ cardForeground: string;
44
+ /** Muted/subtle background */
45
+ muted: string;
46
+ /** Muted/secondary text */
47
+ mutedForeground: string;
48
+ /** Border color */
49
+ border: string;
50
+ /** Input border color */
51
+ input: string;
52
+ /** Focus ring color */
53
+ ring: string;
54
+ /** Destructive/error color */
55
+ destructive: string;
56
+ /** Text on destructive backgrounds */
57
+ destructiveForeground: string;
58
+ /** Success color */
59
+ success: string;
60
+ /** Text on success backgrounds */
61
+ successForeground: string;
62
+ /** Warning color */
63
+ warning: string;
64
+ /** Text on warning backgrounds */
65
+ warningForeground: string;
66
+ }
67
+ /**
68
+ * Complete color configuration for a brand.
69
+ */
70
+ interface BrandColors {
71
+ /** Primary brand color scale */
72
+ primary: ColorScale;
73
+ /** Secondary color scale (optional — falls back to library defaults) */
74
+ secondary?: ColorScale;
75
+ /** Neutral / gray color scale (optional — falls back to library defaults) */
76
+ neutral?: ColorScale;
77
+ /** Destructive / error color scale (optional — falls back to library defaults) */
78
+ destructive?: ColorScale;
79
+ /** Success color scale (optional — falls back to library defaults) */
80
+ success?: ColorScale;
81
+ /** Warning color scale (optional — falls back to library defaults) */
82
+ warning?: ColorScale;
83
+ /** Info color scale (optional — falls back to library defaults) */
84
+ info?: ColorScale;
85
+ /**
86
+ * Brand accent (optional) — exposed as `--mieweb-accent`, `--mieweb-accent-light`
87
+ * and `--mieweb-accent-dark`. Components fall back to the primary scale when unset.
88
+ */
89
+ accent?: {
90
+ DEFAULT: string;
91
+ light?: string;
92
+ dark?: string;
93
+ };
94
+ /** Light mode semantic colors */
95
+ light: SemanticColors;
96
+ /** Dark mode semantic colors */
97
+ dark: SemanticColors;
98
+ }
99
+ /**
100
+ * Typography configuration for a brand.
101
+ */
102
+ interface BrandTypography {
103
+ /** Font family stack for body text */
104
+ fontFamily: {
105
+ sans: string[];
106
+ mono?: string[];
107
+ };
108
+ /** Base font size (usually 16px) */
109
+ baseFontSize?: string;
110
+ }
111
+ /**
112
+ * Border radius configuration.
113
+ */
114
+ interface BrandBorderRadius {
115
+ none: string;
116
+ sm: string;
117
+ md: string;
118
+ lg: string;
119
+ xl: string;
120
+ '2xl': string;
121
+ full: string;
122
+ }
123
+ /**
124
+ * Box shadow configuration.
125
+ */
126
+ interface BrandBoxShadow {
127
+ card: string;
128
+ dropdown: string;
129
+ modal: string;
130
+ }
131
+ /**
132
+ * Complete brand configuration.
133
+ */
134
+ interface BrandConfig {
135
+ /** Unique identifier (lowercase, no spaces) */
136
+ name: string;
137
+ /** Human-readable display name */
138
+ displayName: string;
139
+ /** Brand description */
140
+ description?: string;
141
+ /** Color configuration */
142
+ colors: BrandColors;
143
+ /** Typography settings */
144
+ typography: BrandTypography;
145
+ /** Border radius scale */
146
+ borderRadius: BrandBorderRadius;
147
+ /** Box shadow definitions */
148
+ boxShadow: BrandBoxShadow;
149
+ }
9
150
 
10
151
  declare const agGridVariants: (props?: ({
11
152
  variant?: "default" | "bordered" | "striped" | "card" | null | undefined;
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const alertVariants: (props?: ({
6
- variant?: "default" | "danger" | "warning" | "success" | "info" | null | undefined;
6
+ variant?: "default" | "info" | "success" | "warning" | "danger" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
8
  interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
9
9
  /** Icon to display in the alert */
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const alertVariants: (props?: ({
6
- variant?: "default" | "danger" | "warning" | "success" | "info" | null | undefined;
6
+ variant?: "default" | "info" | "success" | "warning" | "danger" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
8
  interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
9
9
  /** Icon to display in the alert */
@@ -1,8 +1,33 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import { ModalProps } from '../Modal/index.cjs';
4
- import 'class-variance-authority/types';
5
- import 'class-variance-authority';
3
+ import * as class_variance_authority_types from 'class-variance-authority/types';
4
+ import { VariantProps } from 'class-variance-authority';
5
+
6
+ declare const modalContentVariants: (props?: ({
7
+ size?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "full" | null | undefined;
8
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
9
+ interface ModalProps extends VariantProps<typeof modalContentVariants> {
10
+ /** Whether the modal is open */
11
+ open: boolean;
12
+ /** Callback when the modal should close */
13
+ onOpenChange: (open: boolean) => void;
14
+ /** Modal content */
15
+ children: React.ReactNode;
16
+ /** Whether to close when clicking the overlay */
17
+ closeOnOverlayClick?: boolean;
18
+ /** Whether to close when pressing Escape */
19
+ closeOnEscape?: boolean;
20
+ /** Additional class name for the modal content */
21
+ className?: string;
22
+ /** ID for the modal, used for accessibility */
23
+ id?: string;
24
+ /** Accessible label for the modal */
25
+ 'aria-label'?: string;
26
+ /** ID of the element that labels the modal */
27
+ 'aria-labelledby'?: string;
28
+ /** ID of the element that describes the modal */
29
+ 'aria-describedby'?: string;
30
+ }
6
31
 
7
32
  interface AlertDialogProps extends Pick<ModalProps, 'open' | 'onOpenChange'> {
8
33
  /** Dialog title */
@@ -1,8 +1,33 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import { ModalProps } from '../Modal/index.js';
4
- import 'class-variance-authority/types';
5
- import 'class-variance-authority';
3
+ import * as class_variance_authority_types from 'class-variance-authority/types';
4
+ import { VariantProps } from 'class-variance-authority';
5
+
6
+ declare const modalContentVariants: (props?: ({
7
+ size?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "full" | null | undefined;
8
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
9
+ interface ModalProps extends VariantProps<typeof modalContentVariants> {
10
+ /** Whether the modal is open */
11
+ open: boolean;
12
+ /** Callback when the modal should close */
13
+ onOpenChange: (open: boolean) => void;
14
+ /** Modal content */
15
+ children: React.ReactNode;
16
+ /** Whether to close when clicking the overlay */
17
+ closeOnOverlayClick?: boolean;
18
+ /** Whether to close when pressing Escape */
19
+ closeOnEscape?: boolean;
20
+ /** Additional class name for the modal content */
21
+ className?: string;
22
+ /** ID for the modal, used for accessibility */
23
+ id?: string;
24
+ /** Accessible label for the modal */
25
+ 'aria-label'?: string;
26
+ /** ID of the element that labels the modal */
27
+ 'aria-labelledby'?: string;
28
+ /** ID of the element that describes the modal */
29
+ 'aria-describedby'?: string;
30
+ }
6
31
 
7
32
  interface AlertDialogProps extends Pick<ModalProps, 'open' | 'onOpenChange'> {
8
33
  /** Dialog title */
@@ -62,10 +62,10 @@ declare const audioRecorderVariants: (props?: ({
62
62
  variant?: "default" | "minimal" | "elevated" | null | undefined;
63
63
  } & class_variance_authority_types.ClassProp) | undefined) => string;
64
64
  declare const waveformContainerVariants: (props?: ({
65
- state?: "paused" | "idle" | "recording" | "listening" | "stopped" | "playback" | null | undefined;
65
+ state?: "idle" | "listening" | "recording" | "paused" | "stopped" | "playback" | null | undefined;
66
66
  } & class_variance_authority_types.ClassProp) | undefined) => string;
67
67
  declare const controlButtonVariants: (props?: ({
68
- variant?: "primary" | "secondary" | "ghost" | "danger" | null | undefined;
68
+ variant?: "primary" | "secondary" | "danger" | "ghost" | null | undefined;
69
69
  size?: "sm" | "md" | "lg" | null | undefined;
70
70
  } & class_variance_authority_types.ClassProp) | undefined) => string;
71
71
  declare function formatTime(seconds: number): string;
@@ -62,10 +62,10 @@ declare const audioRecorderVariants: (props?: ({
62
62
  variant?: "default" | "minimal" | "elevated" | null | undefined;
63
63
  } & class_variance_authority_types.ClassProp) | undefined) => string;
64
64
  declare const waveformContainerVariants: (props?: ({
65
- state?: "paused" | "idle" | "recording" | "listening" | "stopped" | "playback" | null | undefined;
65
+ state?: "idle" | "listening" | "recording" | "paused" | "stopped" | "playback" | null | undefined;
66
66
  } & class_variance_authority_types.ClassProp) | undefined) => string;
67
67
  declare const controlButtonVariants: (props?: ({
68
- variant?: "primary" | "secondary" | "ghost" | "danger" | null | undefined;
68
+ variant?: "primary" | "secondary" | "danger" | "ghost" | null | undefined;
69
69
  size?: "sm" | "md" | "lg" | null | undefined;
70
70
  } & class_variance_authority_types.ClassProp) | undefined) => string;
71
71
  declare function formatTime(seconds: number): string;
@@ -1,8 +1,14 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { inputVariants, RequiredMarkVariant } from '../Input/index.cjs';
5
- import 'class-variance-authority/types';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+
6
+ declare const inputVariants: (props?: ({
7
+ size?: "sm" | "md" | "lg" | null | undefined;
8
+ hasError?: boolean | null | undefined;
9
+ labelVariant?: "stacked" | "floating" | null | undefined;
10
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
11
+ type RequiredMarkVariant = 'default' | 'warning';
6
12
 
7
13
  interface AutocompleteProps<T> extends Pick<VariantProps<typeof inputVariants>, 'size'> {
8
14
  /** Candidate items to search through. */
@@ -1,8 +1,14 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { inputVariants, RequiredMarkVariant } from '../Input/index.js';
5
- import 'class-variance-authority/types';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+
6
+ declare const inputVariants: (props?: ({
7
+ size?: "sm" | "md" | "lg" | null | undefined;
8
+ hasError?: boolean | null | undefined;
9
+ labelVariant?: "stacked" | "floating" | null | undefined;
10
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
11
+ type RequiredMarkVariant = 'default' | 'warning';
6
12
 
7
13
  interface AutocompleteProps<T> extends Pick<VariantProps<typeof inputVariants>, 'size'> {
8
14
  /** Candidate items to search through. */
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const avatarVariants: (props?: ({
6
- size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
6
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
7
7
  ring?: boolean | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface AvatarProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof avatarVariants> {
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const avatarVariants: (props?: ({
6
- size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
6
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
7
7
  ring?: boolean | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface AvatarProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof avatarVariants> {
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const badgeVariants: (props?: ({
6
- variant?: "default" | "secondary" | "outline" | "danger" | "warning" | "success" | null | undefined;
6
+ variant?: "default" | "secondary" | "success" | "warning" | "danger" | "outline" | null | undefined;
7
7
  size?: "sm" | "md" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const badgeVariants: (props?: ({
6
- variant?: "default" | "secondary" | "outline" | "danger" | "warning" | "success" | null | undefined;
6
+ variant?: "default" | "secondary" | "success" | "warning" | "danger" | "outline" | null | undefined;
7
7
  size?: "sm" | "md" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
@@ -1,9 +1,96 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as class_variance_authority_types from 'class-variance-authority/types';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { c as ViewLabels, a as ViewBaseProps, S as Stage } from '../../types-CbWXIKbe.cjs';
5
- import 'react';
6
- import 'luxon';
4
+ import * as React from 'react';
5
+
6
+ /**
7
+ * The contract every component in the `Modules/Views` family reads through.
8
+ *
9
+ * A page describes its collection once — which field is the id, the title, the
10
+ * status, the start date — and every view understands it. That is the whole
11
+ * reason the family exists: without it each view needs its own adapter and you
12
+ * end up re-implementing the same board per entity.
13
+ *
14
+ * Views are headless. Nothing here fetches, subscribes, or navigates.
15
+ * See CONTRIBUTING → "Modules: headless data components".
16
+ */
17
+
18
+ /**
19
+ * Which layout is on screen. `overview` and `table` are rendered by the host
20
+ * through `ViewSet` slots rather than by a component in this family — a tabular
21
+ * collection is `DataVisNitroGrid`, and an overview is domain content.
22
+ */
23
+ type ViewId = 'overview' | 'list' | 'board' | 'calendar' | 'gantt' | 'roadmap' | 'table';
24
+ /**
25
+ * A semantic colour name, resolved to `--mieweb-*` tokens by each view.
26
+ *
27
+ * Accessors return one of these rather than a class string so a caller cannot
28
+ * hardcode a palette that breaks under another brand or in dark mode.
29
+ */
30
+ type Accent = 'primary' | 'success' | 'warning' | 'destructive' | 'info' | 'neutral';
31
+ /** A named stage: a board column, and the segments of a stage bar. */
32
+ interface Stage {
33
+ id: string;
34
+ label: string;
35
+ accent?: Accent;
36
+ }
37
+ /**
38
+ * How a view reads one item. Only `getId` and `getTitle` are always required;
39
+ * each view documents which of the rest it needs (a board needs `getStatus`, a
40
+ * Gantt needs `getStart`) and renders an explanatory empty state without them.
41
+ */
42
+ interface ViewAccessors<T> {
43
+ getId: (item: T) => string;
44
+ getTitle: (item: T) => string;
45
+ /** Secondary line under the title. */
46
+ getSubtitle?: (item: T) => string | undefined;
47
+ /** Board column and list group; matched against `Stage['id']`. */
48
+ getStatus?: (item: T) => string;
49
+ /** Gantt bar start, calendar placement. */
50
+ getStart?: (item: T) => Date | string | null | undefined;
51
+ /** Gantt bar end, calendar span. Falls back to the start when absent. */
52
+ getEnd?: (item: T) => Date | string | null | undefined;
53
+ /** Swimlane in a roadmap, row group in a Gantt. */
54
+ getGroup?: (item: T) => string | undefined;
55
+ getAccent?: (item: T) => Accent;
56
+ }
57
+ /** Strings a view renders. Every one is overridable; the defaults are English. */
58
+ interface ViewLabels {
59
+ /** Accessible name of the view switcher group. */
60
+ viewSwitcher: string;
61
+ loading: string;
62
+ empty: string;
63
+ error: string;
64
+ /** Action on the error state. */
65
+ retry: string;
66
+ /** Heading for the group a record with no status or group falls into. */
67
+ ungrouped: string;
68
+ }
69
+ /**
70
+ * Props every view accepts. Views are controlled: selection, the active view and
71
+ * filter state live in the page, and every change is handed back.
72
+ */
73
+ interface ViewBaseProps<T> {
74
+ items: T[];
75
+ accessors: ViewAccessors<T>;
76
+ loading?: boolean;
77
+ error?: Error | null;
78
+ selectedId?: string | null;
79
+ /** Called when the user activates an item. */
80
+ onOpen?: (id: string, item: T) => void;
81
+ /** Return a URL to render each item as a real anchor — middle-clickable and crawlable. */
82
+ getHref?: (id: string, item: T) => string;
83
+ /** Render one item. Receives the active view so one function can serve several. */
84
+ renderItem?: (item: T, context: {
85
+ view: ViewId;
86
+ }) => React.ReactNode;
87
+ /** Replaces the built-in empty state. */
88
+ emptyState?: React.ReactNode;
89
+ labels?: Partial<ViewLabels>;
90
+ /** Pins "today" so stories, tests and visual snapshots stay deterministic. */
91
+ now?: Date;
92
+ className?: string;
93
+ }
7
94
 
8
95
  type BoardViewSlot = 'column' | 'columnHeader' | 'card' | 'selectedCard' | 'state';
9
96
  interface BoardLabels extends ViewLabels {
@@ -32,7 +119,7 @@ interface BoardViewProps<T> extends ViewBaseProps<T>, VariantProps<typeof cardVa
32
119
  headingLevel?: 'h2' | 'h3' | 'h4';
33
120
  }
34
121
  declare const cardVariants: (props?: ({
35
- density?: "compact" | "comfortable" | null | undefined;
122
+ density?: "comfortable" | "compact" | null | undefined;
36
123
  interactive?: boolean | null | undefined;
37
124
  selected?: boolean | null | undefined;
38
125
  pending?: boolean | null | undefined;