@pibit.ai/cure-design-system 0.3.18 → 0.3.21

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 (47) hide show
  1. package/README.md +1 -0
  2. package/dist/applications/schedule-calendar/index.d.ts +4 -0
  3. package/dist/applications/schedule-calendar/index.d.ts.map +1 -0
  4. package/dist/applications/schedule-calendar/schedule-calendar.d.ts +3 -0
  5. package/dist/applications/schedule-calendar/schedule-calendar.d.ts.map +1 -0
  6. package/dist/applications/schedule-calendar/schedule-calendar.js +204 -0
  7. package/dist/applications/schedule-calendar/types.d.ts +56 -0
  8. package/dist/applications/schedule-calendar/types.d.ts.map +1 -0
  9. package/dist/applications/schedule-calendar/types.js +40 -0
  10. package/dist/applications/schedule-calendar/utils.d.ts +31 -0
  11. package/dist/applications/schedule-calendar/utils.d.ts.map +1 -0
  12. package/dist/applications/schedule-calendar/utils.js +171 -0
  13. package/dist/applications/schedule-calendar/utils.test.d.ts +2 -0
  14. package/dist/applications/schedule-calendar/utils.test.d.ts.map +1 -0
  15. package/dist/index.d.ts +2 -0
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +113 -101
  18. package/dist/patterns/table/TableWrapper.d.ts.map +1 -1
  19. package/dist/patterns/table/TableWrapper.js +776 -661
  20. package/dist/patterns/table/table.d.ts.map +1 -1
  21. package/dist/patterns/table/table.js +44 -43
  22. package/dist/patterns/table/toolbar/AlignDropdown.js +14 -14
  23. package/dist/patterns/table/toolbar/ColumnHeaderMenu.d.ts +9 -0
  24. package/dist/patterns/table/toolbar/ColumnHeaderMenu.d.ts.map +1 -1
  25. package/dist/patterns/table/toolbar/ColumnHeaderMenu.js +115 -81
  26. package/dist/patterns/table/toolbar/SummaryFooter.d.ts.map +1 -1
  27. package/dist/patterns/table/toolbar/SummaryFooter.js +34 -27
  28. package/dist/patterns/table/toolbar/index.d.ts +1 -1
  29. package/dist/patterns/table/toolbar/index.d.ts.map +1 -1
  30. package/dist/patterns/table/toolbar/tableToolbarHelpers.js +1 -1
  31. package/dist/primitives/select/searchable-select.d.ts +5 -3
  32. package/dist/primitives/select/searchable-select.d.ts.map +1 -1
  33. package/dist/primitives/select/searchable-select.js +196 -177
  34. package/dist/primitives/select/select-item.d.ts.map +1 -1
  35. package/dist/primitives/select/select-item.js +70 -54
  36. package/dist/primitives/select/select.d.ts +7 -2
  37. package/dist/primitives/select/select.d.ts.map +1 -1
  38. package/dist/primitives/select/select.js +161 -137
  39. package/dist/primitives/snackbar/index.d.ts +2 -0
  40. package/dist/primitives/snackbar/index.d.ts.map +1 -0
  41. package/dist/primitives/snackbar/snackbar.d.ts +27 -0
  42. package/dist/primitives/snackbar/snackbar.d.ts.map +1 -0
  43. package/dist/primitives/snackbar/snackbar.js +107 -0
  44. package/dist/primitives/tooltip/ellipsis-content.d.ts.map +1 -1
  45. package/dist/primitives/tooltip/ellipsis-content.js +46 -43
  46. package/dist/styles/components.css +1 -1
  47. package/package.json +4 -1
package/dist/index.js CHANGED
@@ -1,131 +1,143 @@
1
1
  import "./styles/theme.css";
2
2
  /* empty css */
3
- import { cn as p, cx as i, sortCx as m } from "./utils/cn.js";
4
- import { isClassComponent as a, isForwardRefComponent as l, isFunctionComponent as f, isReactComponent as x } from "./utils/is-react-component.js";
5
- import { default as g, ShimmerBox as s, ShimmerCircle as C, ShimmerLine as T } from "./primitives/shimmer/shimmer.js";
6
- import { Button as c, styles as b } from "./primitives/button/button.js";
3
+ import { cn as p, cx as m, sortCx as i } from "./utils/cn.js";
4
+ import { isClassComponent as n, isForwardRefComponent as l, isFunctionComponent as f, isReactComponent as x } from "./utils/is-react-component.js";
5
+ import { default as s, ShimmerBox as g, ShimmerCircle as u, ShimmerLine as T } from "./primitives/shimmer/shimmer.js";
6
+ import { Button as C, styles as S } from "./primitives/button/button.js";
7
7
  import { ButtonUtility as h } from "./primitives/button/button-utility.js";
8
- import { Input as B } from "./primitives/input/input.js";
9
- import { Checkbox as I } from "./primitives/checkbox/checkbox.js";
10
- import { Toggle as R } from "./primitives/toggle/toggle.js";
11
- import { Badge as y, BadgeIcon as D, BadgeWithButton as W, BadgeWithDot as H, BadgeWithFlag as N, BadgeWithIcon as O, BadgeWithImage as v, filledColors as F } from "./primitives/badge/badge.js";
8
+ import { Input as A } from "./primitives/input/input.js";
9
+ import { Checkbox as E } from "./primitives/checkbox/checkbox.js";
10
+ import { Toggle as G } from "./primitives/toggle/toggle.js";
11
+ import { Badge as R, BadgeIcon as W, BadgeWithButton as D, BadgeWithDot as y, BadgeWithFlag as N, BadgeWithIcon as O, BadgeWithImage as v, filledColors as F } from "./primitives/badge/badge.js";
12
12
  import { Avatar as P } from "./primitives/avatar/avatar.js";
13
13
  import { Icon as k } from "./primitives/icon/icon.js";
14
- import { Text as V } from "./primitives/text/text.js";
14
+ import { Text as K } from "./primitives/text/text.js";
15
15
  import { Heading as U } from "./primitives/heading/heading.js";
16
- import { Select as q } from "./primitives/select/select.js";
17
- import { SearchableSelect as J } from "./primitives/select/searchable-select.js";
18
- import { MultiSelect as X } from "./primitives/select/multi-select.js";
16
+ import { Select as j } from "./primitives/select/select.js";
17
+ import { SearchableSelect as z } from "./primitives/select/searchable-select.js";
18
+ import { MultiSelect as Q } from "./primitives/select/multi-select.js";
19
19
  import { Popover as Z } from "./primitives/select/popover.js";
20
20
  import { ExpandableSearchInput as oo } from "./primitives/select/ExpandableSearchInput.js";
21
21
  import { Tooltip as eo, TooltipTrigger as to } from "./primitives/tooltip/tooltip.js";
22
- import { EllipsisContentWithTooltip as io, createEllipsisContent as mo } from "./primitives/tooltip/ellipsis-content.js";
23
- import { CustomIcon as ao } from "./primitives/custom-icon/custom-icon.js";
22
+ import { EllipsisContentWithTooltip as mo, createEllipsisContent as io } from "./primitives/tooltip/ellipsis-content.js";
23
+ import { CustomIcon as no } from "./primitives/custom-icon/custom-icon.js";
24
24
  import { ICONS as fo } from "./primitives/custom-icon/registry.js";
25
- import { Dropdown as go } from "./primitives/dropdown/dropdown.js";
26
- import { Table as Co, TableCard as To, TableCell as uo, TableRowActionsDropdown as co } from "./patterns/table/table.js";
27
- import { TableWrapper as So } from "./patterns/table/TableWrapper.js";
28
- import { TablePagination as wo } from "./patterns/table/TablePagination.js";
29
- import { PaginationCardDefault as Ao } from "./patterns/table/pagination-card.js";
30
- import { Pagination as Go } from "./patterns/table/pagination-base.js";
31
- import { ROW_HEIGHT_ICONS as Eo } from "./patterns/table/row-height-icons.js";
32
- import { TOOLBAR_ICONS as Do } from "./patterns/table/toolbar-icons.js";
33
- import { TableToolbar as Ho, pickCoreToolbarProps as No } from "./patterns/table/toolbar/TableToolbar.js";
34
- import { getToolbarExtensions as vo, registerToolbarExtensions as Fo } from "./patterns/table/toolbar/toolbarExtensions.js";
35
- import { RowHeightDropdown as Po } from "./patterns/table/toolbar/RowHeightDropdown.js";
36
- import { HideFieldsDropdown as ko } from "./patterns/table/toolbar/HideFieldsDropdown.js";
37
- import { AlignDropdown as Vo } from "./patterns/table/toolbar/AlignDropdown.js";
38
- import { GroupByDropdown as Uo } from "./patterns/table/toolbar/GroupByDropdown.js";
39
- import { ShowSummaryDropdown as qo } from "./patterns/table/toolbar/ShowSummaryDropdown.js";
40
- import { SummaryFooterRow as Jo } from "./patterns/table/toolbar/SummaryFooter.js";
41
- import { ColumnHeaderMenu as Xo } from "./patterns/table/toolbar/ColumnHeaderMenu.js";
42
- import { RowActionsMenu as Zo } from "./patterns/table/toolbar/RowActionsMenu.js";
43
- import { BulkActionBar as or } from "./patterns/table/toolbar/BulkActionBar.js";
44
- import { AGGREGATION_LABELS as er, ROW_HEIGHT_CLASS as tr, alignmentClass as pr, applyHideAndReorder as ir, computeAggregation as mr, getAggregationsForType as nr, getDefaultAlignmentForType as ar, getEffectiveAlignment as lr, groupRows as fr, resolveColumnLabel as xr } from "./patterns/table/toolbar/tableToolbarHelpers.js";
45
- import { GridNavProvider as gr, findGridCell as sr, focusGridCell as Cr, getGridNeighbor as Tr, getGridTabNeighbor as ur, isWithinCellEditor as cr, useGridKeyboardNavigation as br } from "./patterns/table/useGridKeyboardNavigation.js";
46
- import { TreeView as hr, buildTreeViewNodes as wr } from "./patterns/tree-view/tree-view.js";
25
+ import { Dropdown as so } from "./primitives/dropdown/dropdown.js";
26
+ import { Snackbar as uo } from "./primitives/snackbar/snackbar.js";
27
+ import { ScheduleCalendar as co } from "./applications/schedule-calendar/schedule-calendar.js";
28
+ import { WEEKDAYS as So } from "./applications/schedule-calendar/types.js";
29
+ import { cellSetToSchedules as ho, formatHour as wo, formatHourLabel as Ao, mergeHoursToWindows as Bo, schedulesToCellSet as Eo } from "./applications/schedule-calendar/utils.js";
30
+ import { Table as Go, TableCard as Ho, TableCell as Ro, TableRowActionsDropdown as Wo } from "./patterns/table/table.js";
31
+ import { TableWrapper as yo } from "./patterns/table/TableWrapper.js";
32
+ import { TablePagination as Oo } from "./patterns/table/TablePagination.js";
33
+ import { PaginationCardDefault as Fo } from "./patterns/table/pagination-card.js";
34
+ import { Pagination as Po } from "./patterns/table/pagination-base.js";
35
+ import { ROW_HEIGHT_ICONS as ko } from "./patterns/table/row-height-icons.js";
36
+ import { TOOLBAR_ICONS as Ko } from "./patterns/table/toolbar-icons.js";
37
+ import { TableToolbar as Uo, pickCoreToolbarProps as Yo } from "./patterns/table/toolbar/TableToolbar.js";
38
+ import { getToolbarExtensions as qo, registerToolbarExtensions as zo } from "./patterns/table/toolbar/toolbarExtensions.js";
39
+ import { RowHeightDropdown as Qo } from "./patterns/table/toolbar/RowHeightDropdown.js";
40
+ import { HideFieldsDropdown as Zo } from "./patterns/table/toolbar/HideFieldsDropdown.js";
41
+ import { AlignDropdown as or } from "./patterns/table/toolbar/AlignDropdown.js";
42
+ import { GroupByDropdown as er } from "./patterns/table/toolbar/GroupByDropdown.js";
43
+ import { ShowSummaryDropdown as pr } from "./patterns/table/toolbar/ShowSummaryDropdown.js";
44
+ import { SummaryFooterRow as ir } from "./patterns/table/toolbar/SummaryFooter.js";
45
+ import { ColumnHeaderMenu as nr } from "./patterns/table/toolbar/ColumnHeaderMenu.js";
46
+ import { RowActionsMenu as fr } from "./patterns/table/toolbar/RowActionsMenu.js";
47
+ import { BulkActionBar as dr } from "./patterns/table/toolbar/BulkActionBar.js";
48
+ import { AGGREGATION_LABELS as gr, ROW_HEIGHT_CLASS as ur, alignmentClass as Tr, applyHideAndReorder as cr, computeAggregation as Cr, getAggregationsForType as Sr, getDefaultAlignmentForType as br, getEffectiveAlignment as hr, groupRows as wr, resolveColumnLabel as Ar } from "./patterns/table/toolbar/tableToolbarHelpers.js";
49
+ import { GridNavProvider as Er, findGridCell as Ir, focusGridCell as Gr, getGridNeighbor as Hr, getGridTabNeighbor as Rr, isWithinCellEditor as Wr, useGridKeyboardNavigation as Dr } from "./patterns/table/useGridKeyboardNavigation.js";
50
+ import { TreeView as Nr, buildTreeViewNodes as Or } from "./patterns/tree-view/tree-view.js";
47
51
  export {
48
- er as AGGREGATION_LABELS,
49
- Vo as AlignDropdown,
52
+ gr as AGGREGATION_LABELS,
53
+ or as AlignDropdown,
50
54
  P as Avatar,
51
- y as Badge,
52
- D as BadgeIcon,
53
- W as BadgeWithButton,
54
- H as BadgeWithDot,
55
+ R as Badge,
56
+ W as BadgeIcon,
57
+ D as BadgeWithButton,
58
+ y as BadgeWithDot,
55
59
  N as BadgeWithFlag,
56
60
  O as BadgeWithIcon,
57
61
  v as BadgeWithImage,
58
- or as BulkActionBar,
59
- c as Button,
62
+ dr as BulkActionBar,
63
+ C as Button,
60
64
  h as ButtonUtility,
61
- I as Checkbox,
62
- Xo as ColumnHeaderMenu,
63
- ao as CustomIcon,
64
- go as Dropdown,
65
- io as EllipsisContentWithTooltip,
65
+ E as Checkbox,
66
+ nr as ColumnHeaderMenu,
67
+ no as CustomIcon,
68
+ so as Dropdown,
69
+ mo as EllipsisContentWithTooltip,
66
70
  oo as ExpandableSearchInput,
67
- gr as GridNavProvider,
68
- Uo as GroupByDropdown,
71
+ Er as GridNavProvider,
72
+ er as GroupByDropdown,
69
73
  U as Heading,
70
- ko as HideFieldsDropdown,
74
+ Zo as HideFieldsDropdown,
71
75
  fo as ICONS,
72
76
  k as Icon,
73
- B as Input,
74
- X as MultiSelect,
75
- Go as Pagination,
76
- Ao as PaginationCardDefault,
77
+ A as Input,
78
+ Q as MultiSelect,
79
+ Po as Pagination,
80
+ Fo as PaginationCardDefault,
77
81
  Z as Popover,
78
- tr as ROW_HEIGHT_CLASS,
79
- Eo as ROW_HEIGHT_ICONS,
80
- Zo as RowActionsMenu,
81
- Po as RowHeightDropdown,
82
- J as SearchableSelect,
83
- q as Select,
84
- g as Shimmer,
85
- s as ShimmerBox,
86
- C as ShimmerCircle,
82
+ ur as ROW_HEIGHT_CLASS,
83
+ ko as ROW_HEIGHT_ICONS,
84
+ fr as RowActionsMenu,
85
+ Qo as RowHeightDropdown,
86
+ co as ScheduleCalendar,
87
+ z as SearchableSelect,
88
+ j as Select,
89
+ s as Shimmer,
90
+ g as ShimmerBox,
91
+ u as ShimmerCircle,
87
92
  T as ShimmerLine,
88
- qo as ShowSummaryDropdown,
89
- Jo as SummaryFooterRow,
90
- Do as TOOLBAR_ICONS,
91
- Co as Table,
92
- To as TableCard,
93
- uo as TableCell,
94
- wo as TablePagination,
95
- co as TableRowActionsDropdown,
96
- Ho as TableToolbar,
97
- So as TableWrapper,
98
- V as Text,
99
- R as Toggle,
93
+ pr as ShowSummaryDropdown,
94
+ uo as Snackbar,
95
+ ir as SummaryFooterRow,
96
+ Ko as TOOLBAR_ICONS,
97
+ Go as Table,
98
+ Ho as TableCard,
99
+ Ro as TableCell,
100
+ Oo as TablePagination,
101
+ Wo as TableRowActionsDropdown,
102
+ Uo as TableToolbar,
103
+ yo as TableWrapper,
104
+ K as Text,
105
+ G as Toggle,
100
106
  eo as Tooltip,
101
107
  to as TooltipTrigger,
102
- hr as TreeView,
103
- pr as alignmentClass,
104
- ir as applyHideAndReorder,
105
- wr as buildTreeViewNodes,
106
- b as buttonStyles,
108
+ Nr as TreeView,
109
+ So as WEEKDAYS,
110
+ Tr as alignmentClass,
111
+ cr as applyHideAndReorder,
112
+ Or as buildTreeViewNodes,
113
+ S as buttonStyles,
114
+ ho as cellSetToSchedules,
107
115
  p as cn,
108
- mr as computeAggregation,
109
- mo as createEllipsisContent,
110
- i as cx,
116
+ Cr as computeAggregation,
117
+ io as createEllipsisContent,
118
+ m as cx,
111
119
  F as filledColors,
112
- sr as findGridCell,
113
- Cr as focusGridCell,
114
- nr as getAggregationsForType,
115
- ar as getDefaultAlignmentForType,
116
- lr as getEffectiveAlignment,
117
- Tr as getGridNeighbor,
118
- ur as getGridTabNeighbor,
119
- vo as getToolbarExtensions,
120
- fr as groupRows,
121
- a as isClassComponent,
120
+ Ir as findGridCell,
121
+ Gr as focusGridCell,
122
+ wo as formatHour,
123
+ Ao as formatHourLabel,
124
+ Sr as getAggregationsForType,
125
+ br as getDefaultAlignmentForType,
126
+ hr as getEffectiveAlignment,
127
+ Hr as getGridNeighbor,
128
+ Rr as getGridTabNeighbor,
129
+ qo as getToolbarExtensions,
130
+ wr as groupRows,
131
+ n as isClassComponent,
122
132
  l as isForwardRefComponent,
123
133
  f as isFunctionComponent,
124
134
  x as isReactComponent,
125
- cr as isWithinCellEditor,
126
- No as pickCoreToolbarProps,
127
- Fo as registerToolbarExtensions,
128
- xr as resolveColumnLabel,
129
- m as sortCx,
130
- br as useGridKeyboardNavigation
135
+ Wr as isWithinCellEditor,
136
+ Bo as mergeHoursToWindows,
137
+ Yo as pickCoreToolbarProps,
138
+ zo as registerToolbarExtensions,
139
+ Ar as resolveColumnLabel,
140
+ Eo as schedulesToCellSet,
141
+ i as sortCx,
142
+ Dr as useGridKeyboardNavigation
131
143
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TableWrapper.d.ts","sourceRoot":"","sources":["../../../src/patterns/table/TableWrapper.tsx"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAKR,iBAAiB,EAGpB,MAAM,SAAS,CAAC;AAUjB,YAAY,EACR,iBAAiB,EACjB,YAAY,EACZ,sBAAsB,EACtB,4BAA4B,EAC5B,iBAAiB,EACjB,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,GAC5B,MAAM,SAAS,CAAC;AA4GjB,eAAO,MAAM,YAAY,8GAy7BvB,CAAC"}
1
+ {"version":3,"file":"TableWrapper.d.ts","sourceRoot":"","sources":["../../../src/patterns/table/TableWrapper.tsx"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAKV,iBAAiB,EAGlB,MAAM,SAAS,CAAC;AAUjB,YAAY,EACV,iBAAiB,EACjB,YAAY,EACZ,sBAAsB,EACtB,4BAA4B,EAC5B,iBAAiB,EACjB,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,GAC1B,MAAM,SAAS,CAAC;AA0HjB,eAAO,MAAM,YAAY,8GA2kCxB,CAAC"}