react-native-kanban 0.0.0-stage → 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.
Files changed (70) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +242 -2
  3. package/lib/module/components/Board.js +113 -0
  4. package/lib/module/components/Board.js.map +1 -0
  5. package/lib/module/components/Card.js +68 -0
  6. package/lib/module/components/Card.js.map +1 -0
  7. package/lib/module/components/Column.js +78 -0
  8. package/lib/module/components/Column.js.map +1 -0
  9. package/lib/module/components/createBaseStyles.js +107 -0
  10. package/lib/module/components/createBaseStyles.js.map +1 -0
  11. package/lib/module/components/types.js +4 -0
  12. package/lib/module/components/types.js.map +1 -0
  13. package/lib/module/helpers.js +205 -0
  14. package/lib/module/helpers.js.map +1 -0
  15. package/lib/module/index.js +12 -0
  16. package/lib/module/index.js.map +1 -0
  17. package/lib/module/package.json +1 -0
  18. package/lib/module/theme/ThemeContext.js +32 -0
  19. package/lib/module/theme/ThemeContext.js.map +1 -0
  20. package/lib/module/theme/createKanbanTheme.js +47 -0
  21. package/lib/module/theme/createKanbanTheme.js.map +1 -0
  22. package/lib/module/theme/index.js +6 -0
  23. package/lib/module/theme/index.js.map +1 -0
  24. package/lib/module/theme/presets.js +133 -0
  25. package/lib/module/theme/presets.js.map +1 -0
  26. package/lib/module/theme/types.js +4 -0
  27. package/lib/module/theme/types.js.map +1 -0
  28. package/lib/module/types.js +2 -0
  29. package/lib/module/types.js.map +1 -0
  30. package/lib/typescript/package.json +1 -0
  31. package/lib/typescript/src/components/Board.d.ts +14 -0
  32. package/lib/typescript/src/components/Board.d.ts.map +1 -0
  33. package/lib/typescript/src/components/Card.d.ts +25 -0
  34. package/lib/typescript/src/components/Card.d.ts.map +1 -0
  35. package/lib/typescript/src/components/Column.d.ts +26 -0
  36. package/lib/typescript/src/components/Column.d.ts.map +1 -0
  37. package/lib/typescript/src/components/createBaseStyles.d.ts +26 -0
  38. package/lib/typescript/src/components/createBaseStyles.d.ts.map +1 -0
  39. package/lib/typescript/src/components/types.d.ts +84 -0
  40. package/lib/typescript/src/components/types.d.ts.map +1 -0
  41. package/lib/typescript/src/helpers.d.ts +50 -0
  42. package/lib/typescript/src/helpers.d.ts.map +1 -0
  43. package/lib/typescript/src/index.d.ts +9 -0
  44. package/lib/typescript/src/index.d.ts.map +1 -0
  45. package/lib/typescript/src/theme/ThemeContext.d.ts +10 -0
  46. package/lib/typescript/src/theme/ThemeContext.d.ts.map +1 -0
  47. package/lib/typescript/src/theme/createKanbanTheme.d.ts +15 -0
  48. package/lib/typescript/src/theme/createKanbanTheme.d.ts.map +1 -0
  49. package/lib/typescript/src/theme/index.d.ts +6 -0
  50. package/lib/typescript/src/theme/index.d.ts.map +1 -0
  51. package/lib/typescript/src/theme/presets.d.ts +6 -0
  52. package/lib/typescript/src/theme/presets.d.ts.map +1 -0
  53. package/lib/typescript/src/theme/types.d.ts +89 -0
  54. package/lib/typescript/src/theme/types.d.ts.map +1 -0
  55. package/lib/typescript/src/types.d.ts +47 -0
  56. package/lib/typescript/src/types.d.ts.map +1 -0
  57. package/package.json +172 -4
  58. package/src/components/Board.tsx +135 -0
  59. package/src/components/Card.tsx +89 -0
  60. package/src/components/Column.tsx +133 -0
  61. package/src/components/createBaseStyles.ts +123 -0
  62. package/src/components/types.ts +99 -0
  63. package/src/helpers.ts +288 -0
  64. package/src/index.tsx +61 -0
  65. package/src/theme/ThemeContext.tsx +35 -0
  66. package/src/theme/createKanbanTheme.ts +59 -0
  67. package/src/theme/index.ts +9 -0
  68. package/src/theme/presets.ts +100 -0
  69. package/src/theme/types.ts +112 -0
  70. package/src/types.ts +57 -0
@@ -0,0 +1,84 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
3
+ import type { KanbanDensity, KanbanTheme, KanbanThemeProp } from '../theme/types.js';
4
+ import type { KanbanBoard, KanbanCard, KanbanColumn } from '../types.js';
5
+ /** Style overrides for each part of the board. Applied on top of the theme. */
6
+ export interface KanbanStyles {
7
+ /** Horizontal scroll content that holds the columns. */
8
+ boardContent?: StyleProp<ViewStyle>;
9
+ column?: StyleProp<ViewStyle>;
10
+ columnHeader?: StyleProp<ViewStyle>;
11
+ columnTitle?: StyleProp<TextStyle>;
12
+ countBadge?: StyleProp<ViewStyle>;
13
+ countBadgeText?: StyleProp<TextStyle>;
14
+ /** Vertical scroll content that holds a column's cards. */
15
+ columnContent?: StyleProp<ViewStyle>;
16
+ columnFooter?: StyleProp<ViewStyle>;
17
+ card?: StyleProp<ViewStyle>;
18
+ cardTitle?: StyleProp<TextStyle>;
19
+ cardDescription?: StyleProp<TextStyle>;
20
+ emptyColumn?: StyleProp<ViewStyle>;
21
+ emptyColumnText?: StyleProp<TextStyle>;
22
+ }
23
+ /** User-facing strings, for translation. */
24
+ export interface KanbanLabels {
25
+ /** Shown in a column with no cards. */
26
+ emptyColumn: string;
27
+ }
28
+ export interface CardRenderInfo<TColumn> {
29
+ /** The column the card is in. */
30
+ column: TColumn;
31
+ /** The card's index within its column. */
32
+ index: number;
33
+ theme: KanbanTheme;
34
+ }
35
+ export interface ColumnRenderInfo {
36
+ /** The column's index on the board. */
37
+ index: number;
38
+ cardCount: number;
39
+ theme: KanbanTheme;
40
+ }
41
+ export interface BoardProps<TCard extends KanbanCard = KanbanCard, TColumn extends KanbanColumn<TCard> = KanbanColumn<TCard>> {
42
+ /** The board to display. */
43
+ board: KanbanBoard<TCard, TColumn>;
44
+ /**
45
+ * `'light'` (default), `'dark'`, `'auto'` (follows the device), or a custom
46
+ * theme object. See `KanbanThemeInput`.
47
+ */
48
+ theme?: KanbanThemeProp;
49
+ /** `'comfortable'` (default) or `'compact'`. */
50
+ density?: KanbanDensity;
51
+ /**
52
+ * Column width in points, or `'fullScreen'` to show one column per screen
53
+ * (great on phones). Defaults to 280 (240 when compact).
54
+ */
55
+ columnWidth?: number | 'fullScreen';
56
+ /**
57
+ * `'content'` (default): columns are as tall as their cards and scroll once
58
+ * they reach the bottom of the board, keeping the footer under the last card.
59
+ * `'fill'`: every column stretches to the full board height.
60
+ */
61
+ columnHeight?: 'content' | 'fill';
62
+ /** Snap scrolling to columns. Defaults to `true` for `'fullScreen'`. */
63
+ snapToColumns?: boolean;
64
+ /** Show the card count next to each column title. Defaults to `true`. */
65
+ showCardCount?: boolean;
66
+ /** Style overrides for each part of the board. */
67
+ styles?: KanbanStyles;
68
+ /** Override user-facing strings. */
69
+ labels?: Partial<KanbanLabels>;
70
+ /** Replace the default card. Wrap in `useCallback` to keep cards memoized. */
71
+ renderCard?: (card: TCard, info: CardRenderInfo<TColumn>) => ReactNode;
72
+ /** Replace the default column header (title + count). */
73
+ renderColumnHeader?: (column: TColumn, info: ColumnRenderInfo) => ReactNode;
74
+ /** Render something under a column's cards, e.g. an "Add card" button. */
75
+ renderColumnFooter?: (column: TColumn, info: ColumnRenderInfo) => ReactNode;
76
+ /** Replace the default "No cards" placeholder. */
77
+ renderEmptyColumn?: (column: TColumn, info: ColumnRenderInfo) => ReactNode;
78
+ /** Called when a card is tapped. Makes cards pressable buttons. */
79
+ onCardPress?: (card: TCard, info: CardRenderInfo<TColumn>) => void;
80
+ /** Style for the outer container. The board fills its parent by default. */
81
+ style?: StyleProp<ViewStyle>;
82
+ testID?: string;
83
+ }
84
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,eAAe,EAChB,MAAM,mBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAU,CAAC;AAEtE,+EAA+E;AAC/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AAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,50 @@
1
+ import type { CardDestination, CardSource, ColumnDestination, ColumnSource, KanbanBoard, KanbanCard, KanbanColumn, KanbanId } from './types.js';
2
+ /**
3
+ * Pure, immutable helpers for updating a board.
4
+ *
5
+ * Every helper returns a new board and never mutates its input. Columns and
6
+ * cards that did not change keep their object identity, so memoized columns
7
+ * and cards skip re-rendering. When nothing changes (unknown id, same
8
+ * position), the original board object is returned as-is.
9
+ */
10
+ /** Where a new card or column goes: start, end, or an exact index. */
11
+ export type InsertPosition = 'top' | 'bottom' | number;
12
+ export interface CardLocation<TCard extends KanbanCard = KanbanCard> {
13
+ card: TCard;
14
+ columnId: KanbanId;
15
+ columnIndex: number;
16
+ position: number;
17
+ }
18
+ /** Finds a card anywhere on the board. */
19
+ export declare function findCard<TCard extends KanbanCard, TColumn extends KanbanColumn<TCard>>(board: KanbanBoard<TCard, TColumn>, cardId: KanbanId): CardLocation<TCard> | undefined;
20
+ /**
21
+ * Moves a card within a column or to another column.
22
+ * `toPosition` is the card's final index in the destination column.
23
+ */
24
+ export declare function moveCard<TCard extends KanbanCard, TColumn extends KanbanColumn<TCard>>(board: KanbanBoard<TCard, TColumn>, source: CardSource, destination: CardDestination): KanbanBoard<TCard, TColumn>;
25
+ /** Moves a column to a new index. */
26
+ export declare function moveColumn<TCard extends KanbanCard, TColumn extends KanbanColumn<TCard>>(board: KanbanBoard<TCard, TColumn>, source: ColumnSource, destination: ColumnDestination): KanbanBoard<TCard, TColumn>;
27
+ /** Adds a card to a column. Defaults to the bottom of the column. */
28
+ export declare function addCard<TCard extends KanbanCard, TColumn extends KanbanColumn<TCard>>(board: KanbanBoard<TCard, TColumn>, columnId: KanbanId, card: TCard, options?: {
29
+ position?: InsertPosition;
30
+ }): KanbanBoard<TCard, TColumn>;
31
+ /** Removes a card from the board, wherever it is. */
32
+ export declare function removeCard<TCard extends KanbanCard, TColumn extends KanbanColumn<TCard>>(board: KanbanBoard<TCard, TColumn>, cardId: KanbanId): KanbanBoard<TCard, TColumn>;
33
+ /**
34
+ * Updates a card in place. Pass a partial object to merge, or a function that
35
+ * returns the next card. The card's `id` cannot be changed.
36
+ */
37
+ export declare function updateCard<TCard extends KanbanCard, TColumn extends KanbanColumn<TCard>>(board: KanbanBoard<TCard, TColumn>, cardId: KanbanId, update: Partial<Omit<TCard, 'id'>> | ((card: TCard) => TCard)): KanbanBoard<TCard, TColumn>;
38
+ /** Adds a column. Defaults to the end of the board. */
39
+ export declare function addColumn<TCard extends KanbanCard, TColumn extends KanbanColumn<TCard>>(board: KanbanBoard<TCard, TColumn>, column: TColumn, options?: {
40
+ position?: InsertPosition;
41
+ }): KanbanBoard<TCard, TColumn>;
42
+ /** Removes a column and all of its cards. */
43
+ export declare function removeColumn<TCard extends KanbanCard, TColumn extends KanbanColumn<TCard>>(board: KanbanBoard<TCard, TColumn>, columnId: KanbanId): KanbanBoard<TCard, TColumn>;
44
+ /**
45
+ * Updates a column's fields (title, custom fields, or cards). Pass a partial
46
+ * object to merge, or a function that returns the next column. The column's
47
+ * `id` cannot be changed.
48
+ */
49
+ export declare function updateColumn<TCard extends KanbanCard, TColumn extends KanbanColumn<TCard>>(board: KanbanBoard<TCard, TColumn>, columnId: KanbanId, update: Partial<Omit<TColumn, 'id'>> | ((column: TColumn) => TColumn)): KanbanBoard<TCard, TColumn>;
50
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,UAAU,EACV,YAAY,EACZ,QAAQ,EACT,MAAM,YAAS,CAAC;AAEjB;;;;;;;GAOG;AAEH,sEAAsE;AACtE,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEvD,MAAM,WAAW,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AAW,CAAC,KAAK,EAAE,OAAO,CAAC,EAClC,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC,GACpE,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,CAY7B"}
@@ -0,0 +1,9 @@
1
+ export { Board } from './components/Board.js';
2
+ export { DefaultCard } from './components/Card.js';
3
+ export type { BoardProps, CardRenderInfo, ColumnRenderInfo, KanbanLabels, KanbanStyles, } from './components/types.js';
4
+ export { addCard, addColumn, findCard, moveCard, moveColumn, removeCard, removeColumn, updateCard, updateColumn, } from './helpers.js';
5
+ export type { CardLocation, InsertPosition } from './helpers.js';
6
+ export { createKanbanTheme, darkTheme, lightTheme, useKanbanTheme, } from './theme/index.js';
7
+ export type { CreateKanbanThemeOptions, DeepPartial, KanbanColorScheme, KanbanDensity, KanbanTextStyle, KanbanTheme, KanbanThemeColors, KanbanThemeInput, KanbanThemeOverrides, KanbanThemePreset, KanbanThemeProp, KanbanThemeRadius, KanbanThemeShadows, KanbanThemeSpacing, KanbanThemeTypography, } from './theme/index.js';
8
+ export type { CardDestination, CardSource, ColumnDestination, ColumnSource, KanbanBoard, KanbanCard, KanbanColumn, KanbanId, } from './types.js';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAoB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAmB,CAAC;AAChD,YAAY,EACV,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,YAAY,GACb,MAAM,uBAAoB,CAAC;AAG5B,OAAO,EACL,OAAO,EACP,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,UAAU,EACV,YAAY,EACZ,UAAU,EACV,YAAY,GACb,MAAM,cAAW,CAAC;AACnB,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,cAAW,CAAC;AAG9D,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,cAAc,GACf,MAAM,kBAAS,CAAC;AACjB,YAAY,EACV,wBAAwB,EACxB,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,kBAAS,CAAC;AAGjB,YAAY,EACV,eAAe,EACf,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,UAAU,EACV,YAAY,EACZ,QAAQ,GACT,MAAM,YAAS,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { KanbanDensity, KanbanTheme, KanbanThemeProp } from './types.js';
2
+ export declare const KanbanThemeProvider: import("react").Provider<KanbanTheme>;
3
+ /**
4
+ * The board's resolved theme. Use it inside `renderCard` and other render
5
+ * props so custom UI matches the board (including light/dark switching).
6
+ */
7
+ export declare function useKanbanTheme(): KanbanTheme;
8
+ /** Resolves a theme prop, following the device scheme for `'auto'`. */
9
+ export declare function useResolvedKanbanTheme(theme: KanbanThemeProp | undefined, density: KanbanDensity | undefined): KanbanTheme;
10
+ //# sourceMappingURL=ThemeContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../../src/theme/ThemeContext.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,YAAS,CAAC;AAI3E,eAAO,MAAM,mBAAmB,uCAA8B,CAAC;AAE/D;;;GAGG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAE5C;AAED,uEAAuE;AACvE,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,eAAe,GAAG,SAAS,EAClC,OAAO,EAAE,aAAa,GAAG,SAAS,GACjC,WAAW,CAYb"}
@@ -0,0 +1,15 @@
1
+ import type { KanbanColorScheme, KanbanDensity, KanbanTheme, KanbanThemeProp } from './types.js';
2
+ export interface CreateKanbanThemeOptions {
3
+ /** The device scheme, used when the theme is `'auto'`. Defaults to light. */
4
+ systemColorScheme?: KanbanColorScheme | null;
5
+ density?: KanbanDensity;
6
+ }
7
+ /** Recursively merges plain objects. Arrays and other values are replaced. */
8
+ export declare function deepMerge<T extends object>(target: T, source: unknown): T;
9
+ /**
10
+ * Resolves a theme prop into a complete theme.
11
+ *
12
+ * Order: preset → density → shared overrides → light/dark-only overrides.
13
+ */
14
+ export declare function createKanbanTheme(theme?: KanbanThemeProp, options?: CreateKanbanThemeOptions): KanbanTheme;
15
+ //# sourceMappingURL=createKanbanTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createKanbanTheme.d.ts","sourceRoot":"","sources":["../../../../src/theme/createKanbanTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EACb,WAAW,EAEX,eAAe,EAChB,MAAM,YAAS,CAAC;AAEjB,MAAM,WAAW,wBAAwB;IACvC,6EAA6E;IAC7E,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC7C,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAQD,8EAA8E;AAC9E,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,GAAG,CAAC,CAYzE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,GAAE,eAAyB,EAChC,OAAO,GAAE,wBAA6B,GACrC,WAAW,CAcb"}
@@ -0,0 +1,6 @@
1
+ export { createKanbanTheme, deepMerge } from './createKanbanTheme.js';
2
+ export type { CreateKanbanThemeOptions } from './createKanbanTheme.js';
3
+ export { darkTheme, lightTheme } from './presets.js';
4
+ export { KanbanThemeProvider, useKanbanTheme, useResolvedKanbanTheme, } from './ThemeContext.js';
5
+ export type * from './types.js';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,wBAAqB,CAAC;AACnE,YAAY,EAAE,wBAAwB,EAAE,MAAM,wBAAqB,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAW,CAAC;AAClD,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,sBAAsB,GACvB,MAAM,mBAAgB,CAAC;AACxB,mBAAmB,YAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { KanbanDensity, KanbanTheme, KanbanThemeOverrides } from './types.js';
2
+ /** Spacing and type adjustments applied on top of a preset for each density. */
3
+ export declare const densityOverrides: Record<KanbanDensity, KanbanThemeOverrides>;
4
+ export declare const lightTheme: KanbanTheme;
5
+ export declare const darkTheme: KanbanTheme;
6
+ //# sourceMappingURL=presets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../../../src/theme/presets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EAEX,oBAAoB,EACrB,MAAM,YAAS,CAAC;AAqDjB,gFAAgF;AAChF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,aAAa,EAAE,oBAAoB,CAmBxE,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,WAUxB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,WAOvB,CAAC"}
@@ -0,0 +1,89 @@
1
+ import type { TextStyle, ViewStyle } from 'react-native';
2
+ export type KanbanColorScheme = 'light' | 'dark';
3
+ /** `auto` follows the device's light/dark setting. */
4
+ export type KanbanThemePreset = 'light' | 'dark' | 'auto';
5
+ /** `compact` tightens spacing and type for dense boards. */
6
+ export type KanbanDensity = 'comfortable' | 'compact';
7
+ export interface KanbanThemeColors {
8
+ /** Board background behind the columns. */
9
+ background: string;
10
+ column: string;
11
+ columnTitle: string;
12
+ card: string;
13
+ cardTitle: string;
14
+ cardDescription: string;
15
+ countBadge: string;
16
+ countBadgeText: string;
17
+ border: string;
18
+ /** Brand color for interactive bits (buttons, focus, drop indicators). */
19
+ accent: string;
20
+ /** Text and icons drawn on top of `accent`. */
21
+ onAccent: string;
22
+ emptyColumnText: string;
23
+ /** Fill for the drop placeholder while dragging (used from 0.2.0). */
24
+ placeholder: string;
25
+ }
26
+ export interface KanbanThemeSpacing {
27
+ /** Padding around the whole board. */
28
+ boardPadding: number;
29
+ /** Horizontal gap between columns. */
30
+ columnGap: number;
31
+ /** Padding inside each column. */
32
+ columnPadding: number;
33
+ /** Vertical gap between cards. */
34
+ cardGap: number;
35
+ /** Padding inside each card. */
36
+ cardPadding: number;
37
+ }
38
+ export interface KanbanThemeRadius {
39
+ column: number;
40
+ card: number;
41
+ badge: number;
42
+ }
43
+ export type KanbanTextStyle = Pick<TextStyle, 'fontFamily' | 'fontSize' | 'fontWeight' | 'fontStyle' | 'lineHeight' | 'letterSpacing' | 'textTransform'>;
44
+ export interface KanbanThemeTypography {
45
+ columnTitle: KanbanTextStyle;
46
+ cardTitle: KanbanTextStyle;
47
+ cardDescription: KanbanTextStyle;
48
+ countBadge: KanbanTextStyle;
49
+ emptyColumn: KanbanTextStyle;
50
+ }
51
+ export interface KanbanThemeShadows {
52
+ card: ViewStyle;
53
+ }
54
+ /** A fully resolved theme, as returned by `useKanbanTheme()`. */
55
+ export interface KanbanTheme {
56
+ scheme: KanbanColorScheme;
57
+ density: KanbanDensity;
58
+ colors: KanbanThemeColors;
59
+ spacing: KanbanThemeSpacing;
60
+ radius: KanbanThemeRadius;
61
+ typography: KanbanThemeTypography;
62
+ shadows: KanbanThemeShadows;
63
+ }
64
+ export type DeepPartial<T> = {
65
+ [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
66
+ };
67
+ export type KanbanThemeTokens = Omit<KanbanTheme, 'scheme' | 'density'>;
68
+ /** Any subset of theme tokens. Nested objects are merged, not replaced. */
69
+ export type KanbanThemeOverrides = DeepPartial<KanbanThemeTokens>;
70
+ /**
71
+ * Custom theme for `<Board theme={...} />`.
72
+ *
73
+ * @example
74
+ * theme={{
75
+ * base: 'auto',
76
+ * colors: { accent: '#7C3AED' },
77
+ * dark: { colors: { background: '#000000' } },
78
+ * }}
79
+ */
80
+ export interface KanbanThemeInput extends KanbanThemeOverrides {
81
+ /** Preset to start from. Defaults to `'light'`. */
82
+ base?: KanbanThemePreset;
83
+ /** Overrides applied only when the resolved scheme is light. */
84
+ light?: KanbanThemeOverrides;
85
+ /** Overrides applied only when the resolved scheme is dark. */
86
+ dark?: KanbanThemeOverrides;
87
+ }
88
+ export type KanbanThemeProp = KanbanThemePreset | KanbanThemeInput;
89
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/theme/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,CAAC;AAEjD,sDAAsD;AACtD,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1D,4DAA4D;AAC5D,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,SAAS,CAAC;AAEtD,MAAM,WAAW,iBAAiB;IAChC,2CAA2C;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAA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;IAC5B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,UAAU,EAAE,qBAAqB,CAAC;IAClC,OAAO,EAAE,kBAAkB,CAAC;CAC7B;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAChE,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAC;AAExE,2EAA2E;AAC3E,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,iBAAiB,CAAC,CAAC;AAElE;;;;;;;;;GASG;AACH,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D,mDAAmD;IACnD,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,gEAAgE;IAChE,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,+DAA+D;IAC/D,IAAI,CAAC,EAAE,oBAAoB,CAAC;CAC7B;AAED,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG,gBAAgB,CAAC"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Core data model for react-native-kanban.
3
+ *
4
+ * The shape follows the web library react-kanban
5
+ * (`{ columns: [{ id, title, cards: [{ id, title, description }] }] }`)
6
+ * so boards can be shared between web and mobile code.
7
+ *
8
+ * Types are prefixed with `Kanban` so the names `Board`, `Column` and `Card`
9
+ * stay free for the components that arrive in later releases.
10
+ */
11
+ /** Identifier for a card or column. Must be unique within its board. */
12
+ export type KanbanId = string | number;
13
+ /** A single card. Add any extra fields your app needs via generics. */
14
+ export interface KanbanCard {
15
+ id: KanbanId;
16
+ title?: string;
17
+ description?: string;
18
+ }
19
+ /** A column (lane) holding an ordered list of cards. */
20
+ export interface KanbanColumn<TCard extends KanbanCard = KanbanCard> {
21
+ id: KanbanId;
22
+ title?: string;
23
+ cards: TCard[];
24
+ }
25
+ /** The whole board: an ordered list of columns. */
26
+ export interface KanbanBoard<TCard extends KanbanCard = KanbanCard, TColumn extends KanbanColumn<TCard> = KanbanColumn<TCard>> {
27
+ columns: TColumn[];
28
+ }
29
+ /** Where a dragged card came from. */
30
+ export interface CardSource {
31
+ fromColumnId: KanbanId;
32
+ fromPosition: number;
33
+ }
34
+ /** Where a dragged card was dropped. */
35
+ export interface CardDestination {
36
+ toColumnId: KanbanId;
37
+ toPosition: number;
38
+ }
39
+ /** Where a dragged column came from. */
40
+ export interface ColumnSource {
41
+ fromPosition: number;
42
+ }
43
+ /** Where a dragged column was dropped. */
44
+ export interface ColumnDestination {
45
+ toPosition: number;
46
+ }
47
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,wEAAwE;AACxE,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvC,uEAAuE;AACvE,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,QAAQ,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wDAAwD;AACxD,MAAM,WAAW,YAAY,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU;IACjE,EAAE,EAAE,QAAQ,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,EAAE,CAAC;CAChB;AAED,mDAAmD;AACnD,MAAM,WAAW,WAAW,CAC1B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,OAAO,SAAS,YAAY,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC;IAEzD,OAAO,EAAE,OAAO,EAAE,CAAC;CACpB;AAED,sCAAsC;AACtC,MAAM,WAAW,UAAU;IACzB,YAAY,EAAE,QAAQ,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,wCAAwC;AACxC,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,QAAQ,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wCAAwC;AACxC,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,0CAA0C;AAC1C,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;CACpB"}
package/package.json CHANGED
@@ -1,6 +1,174 @@
1
1
  {
2
2
  "name": "react-native-kanban",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Customizable drag-and-drop Kanban board for React Native, built on Reanimated and Gesture Handler",
5
+ "main": "./lib/module/index.js",
6
+ "types": "./lib/typescript/src/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "react-native-kanban-source": "./src/index.tsx",
10
+ "types": "./lib/typescript/src/index.d.ts",
11
+ "default": "./lib/module/index.js"
12
+ },
13
+ "./package.json": "./package.json"
14
+ },
15
+ "files": [
16
+ "src",
17
+ "lib",
18
+ "!**/__tests__",
19
+ "!**/__fixtures__",
20
+ "!**/__mocks__",
21
+ "!**/.*"
22
+ ],
23
+ "scripts": {
24
+ "example": "yarn workspace react-native-kanban-example",
25
+ "example:expo": "yarn workspace react-native-kanban-example-expo",
26
+ "clean": "del-cli example/android/build example/android/app/build example/ios/build example-expo/android example-expo/ios example-expo/dist lib",
27
+ "prepare": "bob build",
28
+ "typecheck": "tsc",
29
+ "lint": "eslint \"**/*.{js,ts,tsx}\"",
30
+ "test": "jest",
31
+ "release": "release-it --only-version"
32
+ },
33
+ "keywords": [
34
+ "react-native",
35
+ "kanban",
36
+ "kanban-board",
37
+ "board",
38
+ "drag-and-drop",
39
+ "dnd",
40
+ "sortable",
41
+ "trello",
42
+ "react-kanban",
43
+ "reanimated",
44
+ "gesture-handler",
45
+ "expo",
46
+ "ios",
47
+ "android"
48
+ ],
49
+ "repository": {
50
+ "type": "git",
51
+ "url": "git+https://github.com/AbadurRehman/react-native-kanban.git"
52
+ },
53
+ "author": "Abad <abadurrehman98@gmail.com> (https://github.com/AbadurRehman)",
54
+ "license": "MIT",
55
+ "bugs": {
56
+ "url": "https://github.com/AbadurRehman/react-native-kanban/issues"
57
+ },
58
+ "homepage": "https://github.com/AbadurRehman/react-native-kanban#readme",
59
+ "publishConfig": {
60
+ "registry": "https://registry.npmjs.org/"
61
+ },
62
+ "devDependencies": {
63
+ "@babel/core": "^7.25.2",
64
+ "@eslint/compat": "^2.1.1",
65
+ "@eslint/eslintrc": "^3.3.7",
66
+ "@eslint/js": "^9.39.5",
67
+ "@jest/globals": "^29.7.0",
68
+ "@react-native/babel-preset": "0.88.0",
69
+ "@react-native/eslint-config": "0.88.0",
70
+ "@react-native/jest-preset": "0.88.0",
71
+ "@react-native/metro-config": "0.88.0",
72
+ "@release-it/conventional-changelog": "^12.0.2",
73
+ "@testing-library/react-native": "14.1.0",
74
+ "@types/react": "^19.2.0",
75
+ "del-cli": "^8.0.1",
76
+ "eslint": "^9.39.5",
77
+ "eslint-config-prettier": "^10.1.8",
78
+ "eslint-plugin-ft-flow": "^3.0.11",
79
+ "eslint-plugin-prettier": "^5.5.7",
80
+ "jest": "^29.7.0",
81
+ "prettier": "^3.9.10",
82
+ "react": "19.3.0",
83
+ "react-native": "0.88.0",
84
+ "react-native-builder-bob": "^0.44.1",
85
+ "react-native-gesture-handler": "3.5.0",
86
+ "react-native-reanimated": "4.8.0",
87
+ "react-native-worklets": "0.14.0",
88
+ "release-it": "^21.1.1",
89
+ "test-renderer": "1.3.1",
90
+ "turbo": "^2.11.10",
91
+ "typescript": "^6.0.3"
92
+ },
93
+ "peerDependencies": {
94
+ "react": "*",
95
+ "react-native": "*",
96
+ "react-native-gesture-handler": ">=2.20.0",
97
+ "react-native-reanimated": ">=4.0.0",
98
+ "react-native-worklets": "*"
99
+ },
100
+ "workspaces": [
101
+ "example",
102
+ "example-expo"
103
+ ],
104
+ "packageManager": "yarn@4.18.1",
105
+ "react-native-builder-bob": {
106
+ "source": "src",
107
+ "output": "lib",
108
+ "targets": [
109
+ [
110
+ "module",
111
+ {
112
+ "esm": true
113
+ }
114
+ ],
115
+ [
116
+ "typescript",
117
+ {
118
+ "project": "tsconfig.build.json"
119
+ }
120
+ ]
121
+ ]
122
+ },
123
+ "prettier": {
124
+ "quoteProps": "consistent",
125
+ "singleQuote": true,
126
+ "tabWidth": 2,
127
+ "trailingComma": "es5",
128
+ "useTabs": false
129
+ },
130
+ "jest": {
131
+ "preset": "@react-native/jest-preset",
132
+ "testEnvironmentOptions": {
133
+ "customExportConditions": [
134
+ "require",
135
+ "react-native",
136
+ "react-native-kanban-source"
137
+ ]
138
+ },
139
+ "modulePathIgnorePatterns": [
140
+ "<rootDir>/example/node_modules",
141
+ "<rootDir>/example-expo/node_modules",
142
+ "<rootDir>/lib/"
143
+ ]
144
+ },
145
+ "release-it": {
146
+ "git": {
147
+ "commitMessage": "chore: release ${version}",
148
+ "tagName": "v${version}"
149
+ },
150
+ "npm": {
151
+ "publish": true
152
+ },
153
+ "github": {
154
+ "release": true
155
+ },
156
+ "plugins": {
157
+ "@release-it/conventional-changelog": {
158
+ "preset": {
159
+ "name": "angular"
160
+ }
161
+ }
162
+ }
163
+ },
164
+ "create-react-native-library": {
165
+ "type": "library",
166
+ "languages": "js",
167
+ "tools": [
168
+ "eslint",
169
+ "jest",
170
+ "release-it"
171
+ ],
172
+ "version": "0.64.0"
173
+ }
174
+ }