@app-studio/web 0.9.33 → 0.9.35

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 (41) hide show
  1. package/dist/components/Accordion/Accordion/Accordion.style.d.ts +8 -0
  2. package/dist/components/Calendar/Calendar/Calendar.props.d.ts +57 -53
  3. package/dist/components/Calendar/Calendar/Calendar.style.d.ts +107 -0
  4. package/dist/components/Calendar/Calendar/Calendar.utils.d.ts +89 -8
  5. package/dist/components/Calendar/Calendar/Calendar.view.d.ts +2 -19
  6. package/dist/components/Calendar/Calendar.d.ts +1 -3
  7. package/dist/components/Chart/Chart/BarChart.d.ts +1 -1
  8. package/dist/components/Chart/Chart/Chart.state.d.ts +3 -3
  9. package/dist/components/Chart/Chart/ChartTooltip.d.ts +14 -0
  10. package/dist/components/Chart/Chart/LineChart.d.ts +1 -1
  11. package/dist/components/Chart/Chart/PieChart.d.ts +1 -1
  12. package/dist/components/ChatInput/ChatInput/ChatInput.style.d.ts +31 -0
  13. package/dist/components/Form/Checkbox/Checkbox/Checkbox.style.d.ts +20 -4
  14. package/dist/components/Form/Select/Select/Select.style.d.ts +4 -0
  15. package/dist/components/Form/Switch/Switch/Switch.style.d.ts +25 -5
  16. package/dist/components/Input/Input.style.d.ts +16 -0
  17. package/dist/components/KanbanBoard/KanbanBoard/KanbanBoard.props.d.ts +1 -0
  18. package/dist/components/KanbanBoard/KanbanBoard/KanbanBoard.state.d.ts +3 -2
  19. package/dist/components/Link/Link/Link.style.d.ts +5 -0
  20. package/dist/components/Modal/Modal/Modal.style.d.ts +9 -0
  21. package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.state.d.ts +1 -0
  22. package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.type.d.ts +1 -0
  23. package/dist/components/Separator/Separator/Separator.style.d.ts +7 -0
  24. package/dist/components/Slider/Slider/Slider.style.d.ts +12 -0
  25. package/dist/components/Table/Table/Table.style.d.ts +1 -0
  26. package/dist/components/Text/Text/Text.props.d.ts +4 -0
  27. package/dist/components/Text/Text/Text.style.d.ts +1 -0
  28. package/dist/components/Toast/Toast/Toast.style.d.ts +5 -0
  29. package/dist/web.cjs.development.js +2497 -1096
  30. package/dist/web.cjs.development.js.map +1 -1
  31. package/dist/web.cjs.production.min.js +1 -1
  32. package/dist/web.cjs.production.min.js.map +1 -1
  33. package/dist/web.esm.js +2500 -1099
  34. package/dist/web.esm.js.map +1 -1
  35. package/dist/web.umd.development.js +2498 -1094
  36. package/dist/web.umd.development.js.map +1 -1
  37. package/dist/web.umd.production.min.js +1 -1
  38. package/dist/web.umd.production.min.js.map +1 -1
  39. package/docs/components/Calendar.mdx +22 -110
  40. package/docs/components/KanbanBoard.mdx +156 -0
  41. package/package.json +1 -1
@@ -2,3 +2,11 @@ import { ViewProps } from 'app-studio';
2
2
  import { Shape, Variant } from './Accordion.type';
3
3
  export declare const AccordionShapes: Record<Shape, ViewProps>;
4
4
  export declare const AccordionVariants: Record<Variant, ViewProps>;
5
+ /**
6
+ * Accordion trigger styles matching shadcn/ui patterns
7
+ */
8
+ export declare const AccordionTriggerStyles: ViewProps;
9
+ /**
10
+ * Accordion content styles with smooth animation
11
+ */
12
+ export declare const AccordionContentStyles: ViewProps;
@@ -1,70 +1,74 @@
1
- import React from 'react';
2
1
  import { ViewProps } from 'app-studio';
3
- import { ButtonProps } from '../../Button/Button/Button.props';
4
- import { TextProps } from '../../Text/Text/Text.props';
5
- export declare type CalendarView = 'day' | 'week' | 'month';
2
+ export declare type CalendarView = 'month' | 'week' | 'day';
6
3
  export interface CalendarEvent {
7
- /** Unique identifier for the event. */
8
- id?: string | number;
9
- /** Event title shown in the calendar cell. */
4
+ /** Unique identifier for the event */
5
+ id: string;
6
+ /** Event title/label */
10
7
  title: string;
11
- /** Start date/time of the event. */
12
- start: Date | string;
13
- /** Optional end date/time of the event. */
14
- end?: Date | string;
15
- /** Optional description or supporting information. */
16
- description?: string;
17
- /** Additional metadata the consumer wants to keep with the event. */
18
- metadata?: Record<string, unknown>;
19
- }
20
- export interface CalendarRenderEventContext {
21
- /** Date of the cell currently being rendered. */
22
- day: Date;
23
- /** Active calendar view. */
24
- view: CalendarView;
25
- /** Whether the given day is today. */
26
- isToday: boolean;
8
+ /** Start date in ISO format (YYYY-MM-DD) or datetime (YYYY-MM-DDTHH:MM) */
9
+ start: string;
10
+ /** End date in ISO format (YYYY-MM-DD) or datetime (YYYY-MM-DDTHH:MM) */
11
+ end: string;
12
+ /** Color variant for the event */
13
+ color?: 'blue' | 'red' | 'green' | 'purple' | 'orange';
27
14
  }
28
15
  export interface CalendarViews {
16
+ /** Style overrides for the main container */
29
17
  container?: ViewProps;
18
+ /** Style overrides for the header (navigation) */
30
19
  header?: ViewProps;
31
- headerTitle?: TextProps;
32
- navigation?: ViewProps;
20
+ /** Style overrides for the month/year title */
21
+ monthTitle?: ViewProps;
22
+ /** Style overrides for navigation buttons */
23
+ navButton?: ViewProps;
24
+ /** Style overrides for view switcher buttons */
33
25
  viewSwitcher?: ViewProps;
34
- grid?: ViewProps;
35
- weekdayRow?: ViewProps;
26
+ /** Style overrides for the month grid */
27
+ monthGrid?: ViewProps;
28
+ /** Style overrides for weekday header row */
36
29
  weekdayHeader?: ViewProps;
37
- weekdayLabel?: TextProps;
38
- weekRow?: ViewProps;
39
- dayColumn?: ViewProps;
40
- dayHeader?: ViewProps;
41
- dayNumber?: TextProps;
42
- dayMeta?: TextProps;
43
- events?: ViewProps;
30
+ /** Style overrides for individual weekday labels */
31
+ weekdayLabel?: ViewProps;
32
+ /** Style overrides for individual day cells */
33
+ dayCell?: ViewProps;
34
+ /** Style overrides for day numbers */
35
+ dayNumber?: ViewProps;
36
+ /** Style overrides for the events area */
37
+ eventsArea?: ViewProps;
38
+ /** Style overrides for individual events */
44
39
  event?: ViewProps;
45
- eventTitle?: TextProps;
46
- eventTime?: TextProps;
47
- emptyState?: TextProps;
48
- navigationButton?: Partial<ButtonProps>;
49
- viewButton?: Partial<ButtonProps>;
40
+ /** Style overrides for time column (day view) */
41
+ timeColumn?: ViewProps;
42
+ /** Style overrides for time slot */
43
+ timeSlot?: ViewProps;
50
44
  }
51
45
  export interface CalendarProps {
52
- /** Calendar events to render. */
53
- events?: CalendarEvent[];
54
- /** Starting date displayed in the calendar. */
55
- initialDate?: Date | string;
56
- /** Initial visible view. */
46
+ /** Initial date to display in ISO format (YYYY-MM-DD) or Date object */
47
+ initialDate?: string | Date;
48
+ /** Initial view to display */
57
49
  initialView?: CalendarView;
58
- /** First day of the week, defaults to Sunday. */
59
- weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
60
- /** Height of the calendar container. */
61
- height?: string | number;
62
- /** Optional custom render method for events. */
63
- renderEvent?: (event: CalendarEvent, context: CalendarRenderEventContext) => React.ReactNode;
64
- /** Called when the visible anchor date changes. */
50
+ /** Array of events to display */
51
+ events?: CalendarEvent[];
52
+ /** Today's date in ISO format (defaults to current date) */
53
+ today?: string;
54
+ /** Callback when an event is dragged to a new position */
55
+ onEventDrop?: (event: CalendarEvent) => void;
56
+ /** Callback when an event is resized */
57
+ onEventResize?: (event: CalendarEvent) => void;
58
+ /** Callback when a date is clicked */
59
+ onDateClick?: (date: string) => void;
60
+ /** Callback when date/time changes */
65
61
  onDateChange?: (date: Date) => void;
66
- /** Called when the active view changes. */
62
+ /** Callback when view changes */
67
63
  onViewChange?: (view: CalendarView) => void;
68
- /** Customise styling of calendar areas. */
64
+ /** Callback when double-clicking to add new event */
65
+ onEventAdd?: (start: string, end: string) => void;
66
+ /** Style overrides for various parts of the component */
69
67
  views?: CalendarViews;
68
+ /** Width of the calendar (default: '100%') */
69
+ width?: number | string;
70
+ /** Maximum width of the calendar (default: 1200) */
71
+ maxWidth?: number | string;
72
+ /** First day of the week (0 = Sunday, 1 = Monday, etc.) */
73
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
70
74
  }
@@ -0,0 +1,107 @@
1
+ import { ViewProps } from 'app-studio';
2
+ /**
3
+ * Event color configurations
4
+ */
5
+ export declare const EVENT_COLORS: {
6
+ readonly blue: {
7
+ readonly background: "color.blue.50";
8
+ readonly border: "color.blue.500";
9
+ readonly text: "color.blue.700";
10
+ };
11
+ readonly red: {
12
+ readonly background: "color.red.50";
13
+ readonly border: "color.red.500";
14
+ readonly text: "color.red.700";
15
+ };
16
+ readonly green: {
17
+ readonly background: "color.green.50";
18
+ readonly border: "color.green.500";
19
+ readonly text: "color.green.700";
20
+ };
21
+ readonly purple: {
22
+ readonly background: "color.purple.50";
23
+ readonly border: "color.purple.500";
24
+ readonly text: "color.purple.700";
25
+ };
26
+ readonly orange: {
27
+ readonly background: "color.orange.50";
28
+ readonly border: "color.orange.500";
29
+ readonly text: "color.orange.700";
30
+ };
31
+ };
32
+ /**
33
+ * Base styles for the calendar container
34
+ */
35
+ export declare const containerStyles: ViewProps;
36
+ /**
37
+ * Header styles (navigation bar)
38
+ */
39
+ export declare const headerStyles: ViewProps;
40
+ /**
41
+ * Month title styles
42
+ */
43
+ export declare const monthTitleStyles: ViewProps;
44
+ /**
45
+ * Navigation button styles
46
+ */
47
+ export declare const navButtonStyles: ViewProps;
48
+ /**
49
+ * Month grid styles (7 columns for days)
50
+ */
51
+ export declare const monthGridStyles: ViewProps;
52
+ /**
53
+ * Weekday header row styles
54
+ */
55
+ export declare const weekdayHeaderStyles: ViewProps;
56
+ /**
57
+ * Individual weekday label styles
58
+ */
59
+ export declare const weekdayLabelStyles: ViewProps;
60
+ /**
61
+ * Individual day cell styles
62
+ */
63
+ export declare const dayCellStyles: ViewProps;
64
+ /**
65
+ * Day date styles (the circular number)
66
+ */
67
+ export declare const dayDateStyles: ViewProps;
68
+ /**
69
+ * Day cell from different month
70
+ */
71
+ export declare const otherMonthDayCellStyles: ViewProps;
72
+ /**
73
+ * Day number styles
74
+ */
75
+ export declare const dayNumberStyles: ViewProps;
76
+ /**
77
+ * Today day number styles
78
+ */
79
+ export declare const todayDayNumberStyles: ViewProps;
80
+ /**
81
+ * Selected day number styles
82
+ */
83
+ export declare const selectedDayNumberStyles: ViewProps;
84
+ /**
85
+ * Events area styles (container for events in a day)
86
+ */
87
+ export declare const eventsAreaStyles: ViewProps;
88
+ /**
89
+ * Base event styles
90
+ */
91
+ export declare const eventStyles: ViewProps;
92
+ /**
93
+ * Drop target indicator styles
94
+ */
95
+ export declare const dropTargetStyles: ViewProps;
96
+ /**
97
+ * Calculate event position styles for multi-day events
98
+ */
99
+ export declare const getEventPositionStyles: (startDay: number, endDay: number, weekIndex: number, dayOfWeek: number) => React.CSSProperties;
100
+ /**
101
+ * Button base styles
102
+ */
103
+ export declare const buttonStyles: ViewProps;
104
+ /**
105
+ * Icon button styles
106
+ */
107
+ export declare const iconButtonStyles: ViewProps;
@@ -1,10 +1,91 @@
1
1
  import { CalendarEvent } from './Calendar.props';
2
- export interface CalendarEventInternal extends CalendarEvent {
3
- startDate: Date;
4
- endDate: Date;
2
+ export interface PositionedEvent extends CalendarEvent {
3
+ /** Starting day index (0-41, representing 6 weeks * 7 days) */
4
+ startDay: number;
5
+ /** Ending day index (0-41) */
6
+ endDay: number;
7
+ /** Number of days the event spans */
8
+ duration: number;
9
+ /** Row index for vertical positioning (to avoid overlaps) */
10
+ row: number;
11
+ /** Week index (0-5) */
12
+ weekIndex: number;
13
+ /** Day of week (0-6) */
14
+ dayOfWeek: number;
5
15
  }
6
- export declare const toDate: (value: Date | string) => Date;
7
- export declare const normalizeEvent: (event: CalendarEvent) => CalendarEventInternal;
8
- export declare const formatDayKey: (date: Date) => string;
9
- export declare const getEventsForDay: (events: CalendarEventInternal[], day: Date) => CalendarEventInternal[];
10
- export declare const chunk: <T>(items: T[], size: number) => T[][];
16
+ /**
17
+ * Convert an ISO date string to a UTC Date object
18
+ */
19
+ export declare const dateUTC: (iso: string) => Date;
20
+ /**
21
+ * Calculate the number of days between two ISO date strings
22
+ */
23
+ export declare const daysBetweenUTC: (a: string, b: string) => number;
24
+ /**
25
+ * Add a number of days to an ISO date string
26
+ */
27
+ export declare const addDateDays: (dateISO: string, days: number) => string;
28
+ /**
29
+ * Get the day of the week (0-6) from an ISO date string
30
+ */
31
+ export declare const getDayOfWeek: (dateISO: string) => number;
32
+ /**
33
+ * Get the date number (1-31) from an ISO date string
34
+ */
35
+ export declare const getDateNumber: (dateISO: string) => number;
36
+ /**
37
+ * Get the month (0-11) from an ISO date string
38
+ */
39
+ export declare const getMonth: (dateISO: string) => number;
40
+ /**
41
+ * Get the year from an ISO date string
42
+ */
43
+ export declare const getYear: (dateISO: string) => number;
44
+ /**
45
+ * Get the first day of the month for a given date
46
+ */
47
+ export declare const getFirstDayOfMonth: (dateISO: string) => string;
48
+ /**
49
+ * Get the last day of the month for a given date
50
+ */
51
+ export declare const getLastDayOfMonth: (dateISO: string) => string;
52
+ /**
53
+ * Get the start date of the calendar grid (may be in previous month)
54
+ */
55
+ export declare const getCalendarStartDate: (monthDateISO: string, weekStartsOn?: number) => string;
56
+ /**
57
+ * Generate array of dates for the calendar grid (42 days = 6 weeks)
58
+ */
59
+ export declare const getCalendarDates: (monthDateISO: string, weekStartsOn?: number) => string[];
60
+ /**
61
+ * Get month name from date
62
+ */
63
+ export declare const getMonthName: (dateISO: string) => string;
64
+ /**
65
+ * Get the previous month date
66
+ */
67
+ export declare const getPreviousMonth: (dateISO: string) => string;
68
+ /**
69
+ * Get the next month date
70
+ */
71
+ export declare const getNextMonth: (dateISO: string) => string;
72
+ /**
73
+ * Day names array (Sunday to Saturday)
74
+ */
75
+ export declare const DAY_NAMES: string[];
76
+ /**
77
+ * Get day names starting from specified day
78
+ */
79
+ export declare const getDayNames: (weekStartsOn?: number) => string[];
80
+ /**
81
+ * Layout events with proper positioning to avoid overlaps
82
+ * Returns positioned events for each week
83
+ */
84
+ export declare const layoutEvents: (events: CalendarEvent[], calendarDates: string[]) => {
85
+ items: PositionedEvent[];
86
+ rowCountByWeek: number[];
87
+ };
88
+ /**
89
+ * Check if a date is in the current month
90
+ */
91
+ export declare const isInMonth: (dateISO: string, monthDateISO: string) => boolean;
@@ -1,20 +1,3 @@
1
1
  import React from 'react';
2
- import { CalendarEvent, CalendarRenderEventContext, CalendarView, CalendarViews } from './Calendar.props';
3
- import { CalendarEventInternal } from './Calendar.utils';
4
- interface CalendarViewProps {
5
- currentDate: Date;
6
- view: CalendarView;
7
- label: string;
8
- weeks: Date[][];
9
- weekdayLabels: Date[];
10
- eventsByDay: Map<string, CalendarEventInternal[]>;
11
- onPrevious: () => void;
12
- onNext: () => void;
13
- onToday: () => void;
14
- onViewChange: (view: CalendarView) => void;
15
- renderEvent?: (event: CalendarEvent, context: CalendarRenderEventContext) => React.ReactNode;
16
- views?: CalendarViews;
17
- height?: string | number;
18
- }
19
- declare const CalendarViewComponent: React.FC<CalendarViewProps>;
20
- export default CalendarViewComponent;
2
+ import { CalendarProps } from './Calendar.props';
3
+ export declare const Calendar: React.FC<CalendarProps>;
@@ -1,3 +1 @@
1
- import React from 'react';
2
- import { CalendarProps } from './Calendar/Calendar.props';
3
- export declare const Calendar: React.FC<CalendarProps>;
1
+ export { Calendar } from './Calendar/Calendar.view';
@@ -7,7 +7,7 @@ interface BarChartProps {
7
7
  animationProgress: number;
8
8
  showGrid?: boolean;
9
9
  onBarClick?: (seriesName: string, index: number) => void;
10
- showTooltip: (x: number, y: number, content: string) => void;
10
+ showTooltip: (x: number, y: number, content: React.ReactNode) => void;
11
11
  hideTooltip: () => void;
12
12
  views?: any;
13
13
  }
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { ReactNode } from 'react';
2
2
  import { ChartData, ChartDataPoint } from './Chart.type';
3
3
  export interface ChartStateProps {
4
4
  data?: ChartData;
@@ -13,7 +13,7 @@ export declare const useChartState: ({ data, dataPoints, animated, animationDura
13
13
  visible: boolean;
14
14
  x: number;
15
15
  y: number;
16
- content: string;
16
+ content: ReactNode;
17
17
  };
18
18
  containerRef: import("react").RefObject<HTMLDivElement>;
19
19
  processedData: () => {
@@ -28,7 +28,7 @@ export declare const useChartState: ({ data, dataPoints, animated, animationDura
28
28
  }[];
29
29
  labels: string[];
30
30
  } | null;
31
- showTooltip: (x: number, y: number, content: string) => void;
31
+ showTooltip: (x: number, y: number, content: ReactNode) => void;
32
32
  hideTooltip: () => void;
33
33
  getChartDimensions: () => {
34
34
  width: number;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { ViewProps } from 'app-studio';
3
+ interface ChartTooltipProps {
4
+ visible: boolean;
5
+ x: number;
6
+ y: number;
7
+ content: React.ReactNode;
8
+ maxDistance?: number;
9
+ views?: {
10
+ tooltip?: ViewProps;
11
+ };
12
+ }
13
+ export declare const ChartTooltip: React.FC<ChartTooltipProps>;
14
+ export {};
@@ -7,7 +7,7 @@ interface LineChartProps {
7
7
  animationProgress: number;
8
8
  showGrid?: boolean;
9
9
  onPointClick?: (seriesName: string, index: number) => void;
10
- showTooltip: (x: number, y: number, content: string) => void;
10
+ showTooltip: (x: number, y: number, content: React.ReactNode) => void;
11
11
  hideTooltip: () => void;
12
12
  views?: any;
13
13
  }
@@ -7,7 +7,7 @@ interface PieChartProps {
7
7
  animationProgress: number;
8
8
  isDonut?: boolean;
9
9
  onSliceClick?: (dataPoint: ChartDataPoint, index: number) => void;
10
- showTooltip: (x: number, y: number, content: string) => void;
10
+ showTooltip: (x: number, y: number, content: React.ReactNode) => void;
11
11
  hideTooltip: () => void;
12
12
  views?: any;
13
13
  }
@@ -10,6 +10,11 @@ export declare const DefaultChatInputStyles: {
10
10
  borderRadius: string;
11
11
  backgroundColor: string;
12
12
  transition: string;
13
+ media: {
14
+ mobile: {
15
+ borderRadius: string;
16
+ };
17
+ };
13
18
  };
14
19
  content: {
15
20
  width: string;
@@ -19,6 +24,12 @@ export declare const DefaultChatInputStyles: {
19
24
  borderWidth: string;
20
25
  borderStyle: string;
21
26
  borderColor: string;
27
+ media: {
28
+ mobile: {
29
+ padding: string;
30
+ borderRadius: string;
31
+ };
32
+ };
22
33
  };
23
34
  textarea: {
24
35
  width: string;
@@ -33,6 +44,13 @@ export declare const DefaultChatInputStyles: {
33
44
  outline: string;
34
45
  resize: string;
35
46
  overflow: string;
47
+ media: {
48
+ mobile: {
49
+ padding: string;
50
+ fontSize: string;
51
+ minHeight: string;
52
+ };
53
+ };
36
54
  };
37
55
  attachments: {
38
56
  display: string;
@@ -73,6 +91,13 @@ export declare const DefaultChatInputStyles: {
73
91
  backgroundColor: string;
74
92
  color: string;
75
93
  transition: string;
94
+ media: {
95
+ mobile: {
96
+ height: string;
97
+ minWidth: string;
98
+ padding: string;
99
+ };
100
+ };
76
101
  };
77
102
  fileButton: {
78
103
  height: string;
@@ -81,6 +106,12 @@ export declare const DefaultChatInputStyles: {
81
106
  backgroundColor: string;
82
107
  color: string;
83
108
  transition: string;
109
+ media: {
110
+ mobile: {
111
+ height: string;
112
+ padding: string;
113
+ };
114
+ };
84
115
  };
85
116
  modelSelector: {
86
117
  height: string;
@@ -30,15 +30,28 @@ export declare const VariantStyles: Record<Variant, ViewProps>;
30
30
  export declare const StateStyles: {
31
31
  hover: {
32
32
  selected: {
33
- backgroundColor: string;
34
- borderColor: string;
33
+ opacity: number;
35
34
  };
36
35
  unselected: {
37
36
  borderColor: string;
37
+ backgroundColor: string;
38
38
  };
39
39
  indeterminate: {
40
- backgroundColor: string;
41
- borderColor: string;
40
+ opacity: number;
41
+ };
42
+ };
43
+ focus: {
44
+ selected: {
45
+ outline: string;
46
+ boxShadow: string;
47
+ };
48
+ unselected: {
49
+ outline: string;
50
+ boxShadow: string;
51
+ };
52
+ indeterminate: {
53
+ outline: string;
54
+ boxShadow: string;
42
55
  };
43
56
  };
44
57
  disabled: {
@@ -46,15 +59,18 @@ export declare const StateStyles: {
46
59
  backgroundColor: string;
47
60
  borderColor: string;
48
61
  opacity: number;
62
+ cursor: string;
49
63
  };
50
64
  unselected: {
51
65
  borderColor: string;
52
66
  opacity: number;
67
+ cursor: string;
53
68
  };
54
69
  indeterminate: {
55
70
  backgroundColor: string;
56
71
  borderColor: string;
57
72
  opacity: number;
73
+ cursor: string;
58
74
  };
59
75
  };
60
76
  error: {
@@ -24,3 +24,7 @@ export declare const IconSizes: Record<Size, number>;
24
24
  * Dropdown styles for the Select component
25
25
  */
26
26
  export declare const dropdownStyles: ViewProps;
27
+ /**
28
+ * Option item styles for the Select component
29
+ */
30
+ export declare const optionStyles: ViewProps;
@@ -37,13 +37,33 @@ export declare const ColorSchemes: {
37
37
  };
38
38
  states: {
39
39
  hover: {
40
- active: string;
41
- inactive: string;
40
+ active: {
41
+ opacity: number;
42
+ };
43
+ inactive: {
44
+ backgroundColor: string;
45
+ };
42
46
  };
43
47
  focus: {
44
- active: string;
45
- inactive: string;
46
- outline: string;
48
+ active: {
49
+ outline: string;
50
+ boxShadow: string;
51
+ };
52
+ inactive: {
53
+ outline: string;
54
+ boxShadow: string;
55
+ };
47
56
  };
48
57
  };
49
58
  };
59
+ /**
60
+ * Transition styles for the Switch component
61
+ */
62
+ export declare const TransitionStyles: {
63
+ slider: {
64
+ transition: string;
65
+ };
66
+ knob: {
67
+ transition: string;
68
+ };
69
+ };
@@ -30,6 +30,14 @@ export declare const PadddingWithLabel: {
30
30
  paddingBottom: string;
31
31
  paddingLeft: string;
32
32
  paddingRight: string;
33
+ media: {
34
+ mobile: {
35
+ paddingTop: string;
36
+ paddingBottom: string;
37
+ paddingLeft: string;
38
+ paddingRight: string;
39
+ };
40
+ };
33
41
  };
34
42
  /**
35
43
  * Padding for input without label following the 4px grid system
@@ -39,4 +47,12 @@ export declare const PaddingWithoutLabel: {
39
47
  paddingBottom: string;
40
48
  paddingLeft: string;
41
49
  paddingRight: string;
50
+ media: {
51
+ mobile: {
52
+ paddingTop: string;
53
+ paddingBottom: string;
54
+ paddingLeft: string;
55
+ paddingRight: string;
56
+ };
57
+ };
42
58
  };
@@ -37,6 +37,7 @@ export interface KanbanBoardProps {
37
37
  export interface KanbanBoardViewProps extends KanbanBoardProps {
38
38
  columns: KanbanBoardColumn[];
39
39
  draggedCardId: string | null;
40
+ hoveredColumnId: string | null;
40
41
  onCardDragStart: (columnId: string, cardId: string, event: React.DragEvent<HTMLDivElement>) => void;
41
42
  onCardDragEnd: () => void;
42
43
  onCardDrop: (columnId: string, cardId: string | null, event: React.DragEvent<HTMLDivElement>) => void;
@@ -3,10 +3,11 @@ import { KanbanBoardProps } from './KanbanBoard.props';
3
3
  export declare const useKanbanBoardState: ({ columns: initialColumns, onChange, }: KanbanBoardProps) => {
4
4
  columns: import("./KanbanBoard.props").KanbanBoardColumn[];
5
5
  draggedCardId: string | null;
6
+ hoveredColumnId: string | null;
6
7
  onCardDragStart: (columnId: string, cardId: string, event: React.DragEvent<HTMLDivElement>) => void;
7
8
  onCardDragEnd: () => void;
8
- onColumnDragOver: (_columnId: string, event: React.DragEvent<HTMLDivElement>) => void;
9
- onCardDragOver: (_columnId: string, _cardId: string | null, event: React.DragEvent<HTMLDivElement>) => void;
9
+ onColumnDragOver: (columnId: string, event: React.DragEvent<HTMLDivElement>) => void;
10
+ onCardDragOver: (columnId: string, cardId: string | null, event: React.DragEvent<HTMLDivElement>) => void;
10
11
  onColumnDrop: (columnId: string, event: React.DragEvent<HTMLDivElement>) => void;
11
12
  onCardDrop: (columnId: string, cardId: string | null, event: React.DragEvent<HTMLDivElement>) => void;
12
13
  };