@sme.up/ketchup2 1.0.1 → 1.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 (126) hide show
  1. package/dist/assets/layoutAssets.d.ts +7 -0
  2. package/dist/assets/layoutAssets.d.ts.map +1 -0
  3. package/dist/assets/svg/arrow_left.svg +1 -0
  4. package/dist/assets/svg/chevron-right.svg +1 -0
  5. package/dist/assets/svg/drag_indicator_horizontal.svg +11 -0
  6. package/dist/assets/svg/drag_indicator_vertical.svg +1 -0
  7. package/dist/assets/svg/groups.svg +1 -0
  8. package/dist/assets/svg/menu.svg +1 -0
  9. package/dist/assets/svg/menu_close.svg +1 -0
  10. package/dist/assets/svg/power_settings_new.svg +1 -0
  11. package/dist/assets/svg/refresh.svg +1 -0
  12. package/dist/assets/testAsset.d.ts +158 -0
  13. package/dist/assets/testAsset.d.ts.map +1 -1
  14. package/dist/basic-components/button/button-types.d.ts +34 -9
  15. package/dist/basic-components/button/button-types.d.ts.map +1 -1
  16. package/dist/basic-components/button/button-utils.d.ts +14 -0
  17. package/dist/basic-components/button/button-utils.d.ts.map +1 -0
  18. package/dist/basic-components/button/button.d.ts.map +1 -1
  19. package/dist/basic-components/cell/cell-types.d.ts +9 -3
  20. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  21. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  22. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  23. package/dist/basic-components/cell/stories/utils.d.ts +1 -1
  24. package/dist/basic-components/cell/stories/utils.d.ts.map +1 -1
  25. package/dist/basic-components/cell/tests/utils.d.ts.map +1 -1
  26. package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
  27. package/dist/basic-components/chips/chips-types.d.ts +16 -0
  28. package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
  29. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  30. package/dist/basic-components/combobox/combobox.d.ts.map +1 -1
  31. package/dist/basic-components/date-picker/date-picker-calendar/date-picker-calendar.d.ts.map +1 -1
  32. package/dist/basic-components/icon/icon-types.d.ts +39 -1
  33. package/dist/basic-components/icon/icon-types.d.ts.map +1 -1
  34. package/dist/basic-components/icon/icon.d.ts.map +1 -1
  35. package/dist/basic-components/list/list.d.ts.map +1 -1
  36. package/dist/basic-components/mulitple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  37. package/dist/basic-components/password/password.d.ts.map +1 -1
  38. package/dist/basic-components/searchbar/search-bar-types.d.ts +3 -0
  39. package/dist/basic-components/searchbar/search-bar-types.d.ts.map +1 -0
  40. package/dist/basic-components/searchbar/search-bar.d.ts +3 -0
  41. package/dist/basic-components/searchbar/search-bar.d.ts.map +1 -0
  42. package/dist/basic-components/textfield/textfield-types.d.ts +14 -0
  43. package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
  44. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  45. package/dist/basic-components/typography/typography-types.d.ts +4 -0
  46. package/dist/basic-components/typography/typography-types.d.ts.map +1 -1
  47. package/dist/basic-components/typography/typography.d.ts.map +1 -1
  48. package/dist/components/app-bar/app-bar-types.d.ts +20 -0
  49. package/dist/components/app-bar/app-bar-types.d.ts.map +1 -0
  50. package/dist/components/app-bar/app-bar.d.ts +3 -0
  51. package/dist/components/app-bar/app-bar.d.ts.map +1 -0
  52. package/dist/components/app-bar/app-bar.data.d.ts +155 -0
  53. package/dist/components/app-bar/app-bar.data.d.ts.map +1 -0
  54. package/dist/components/dash-list/dash-list.d.ts.map +1 -1
  55. package/dist/components/data-table/assets/data-table-group.d.ts +49 -0
  56. package/dist/components/data-table/assets/data-table-group.d.ts.map +1 -0
  57. package/dist/components/data-table/assets/data-table-shapes.d.ts +168 -0
  58. package/dist/components/data-table/assets/data-table-shapes.d.ts.map +1 -0
  59. package/dist/components/data-table/data-table-types.d.ts +80 -0
  60. package/dist/components/data-table/data-table-types.d.ts.map +1 -0
  61. package/dist/components/data-table/data-table-utils.d.ts +24 -0
  62. package/dist/components/data-table/data-table-utils.d.ts.map +1 -0
  63. package/dist/components/data-table/data-table.d.ts +4 -0
  64. package/dist/components/data-table/data-table.d.ts.map +1 -0
  65. package/dist/components/data-table/utils/buildFlatGroupedRows.d.ts +21 -0
  66. package/dist/components/data-table/utils/buildFlatGroupedRows.d.ts.map +1 -0
  67. package/dist/components/drawer/drawer-types.d.ts +43 -0
  68. package/dist/components/drawer/drawer-types.d.ts.map +1 -0
  69. package/dist/components/drawer/drawer.d.ts +3 -0
  70. package/dist/components/drawer/drawer.d.ts.map +1 -0
  71. package/dist/components/drawer/drawer.data.d.ts +6 -0
  72. package/dist/components/drawer/drawer.data.d.ts.map +1 -0
  73. package/dist/components/field/field-types.d.ts +7 -8
  74. package/dist/components/field/field-types.d.ts.map +1 -1
  75. package/dist/components/field/field.d.ts.map +1 -1
  76. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  77. package/dist/components/spotlight/spotlight-types.d.ts +8 -0
  78. package/dist/components/spotlight/spotlight-types.d.ts.map +1 -0
  79. package/dist/components/spotlight/spotlight.d.ts +3 -0
  80. package/dist/components/spotlight/spotlight.d.ts.map +1 -0
  81. package/dist/config/paths.d.ts.map +1 -1
  82. package/dist/functional-components/group-bar/group-bar-types.d.ts +36 -0
  83. package/dist/functional-components/group-bar/group-bar-types.d.ts.map +1 -0
  84. package/dist/functional-components/group-bar/group-bar.d.ts +4 -0
  85. package/dist/functional-components/group-bar/group-bar.d.ts.map +1 -0
  86. package/dist/functional-components/group-row/group-row-types.d.ts +36 -0
  87. package/dist/functional-components/group-row/group-row-types.d.ts.map +1 -0
  88. package/dist/functional-components/group-row/group-row.d.ts +4 -0
  89. package/dist/functional-components/group-row/group-row.d.ts.map +1 -0
  90. package/dist/functional-components/helper-text/helper-text.d.ts.map +1 -1
  91. package/dist/functional-components/label/label.d.ts.map +1 -1
  92. package/dist/functional-components/layout/layout-utils.d.ts +25 -0
  93. package/dist/functional-components/layout/layout-utils.d.ts.map +1 -0
  94. package/dist/functional-components/layout/layout.d.ts.map +1 -1
  95. package/dist/functional-components/row/row-assets.d.ts +5 -0
  96. package/dist/functional-components/row/row-assets.d.ts.map +1 -0
  97. package/dist/functional-components/row/row-types.d.ts +19 -0
  98. package/dist/functional-components/row/row-types.d.ts.map +1 -0
  99. package/dist/functional-components/row/row.d.ts +3 -0
  100. package/dist/functional-components/row/row.d.ts.map +1 -0
  101. package/dist/hooks/useClickOutside.d.ts.map +1 -1
  102. package/dist/hooks/useDebounce.d.ts.map +1 -1
  103. package/dist/index.d.ts +6 -0
  104. package/dist/index.d.ts.map +1 -1
  105. package/dist/ketchup2.cjs.js +21 -21
  106. package/dist/ketchup2.css +1 -1
  107. package/dist/ketchup2.es.js +4019 -3675
  108. package/dist/locale/en/translation.json.d.ts +2 -1
  109. package/dist/locale/it/translation.json.d.ts +2 -1
  110. package/dist/types/data-structures.d.ts +28 -3
  111. package/dist/types/data-structures.d.ts.map +1 -1
  112. package/dist/types/global.d.ts +1 -1
  113. package/dist/types/global.d.ts.map +1 -1
  114. package/dist/types/legacy.d.ts +1 -0
  115. package/dist/types/legacy.d.ts.map +1 -1
  116. package/dist/types/translation.d.ts +2 -1
  117. package/dist/types/translation.d.ts.map +1 -1
  118. package/dist/utils/array.d.ts +8 -0
  119. package/dist/utils/array.d.ts.map +1 -0
  120. package/dist/utils/display-value.d.ts.map +1 -1
  121. package/dist/utils/hash.d.ts +7 -0
  122. package/dist/utils/hash.d.ts.map +1 -0
  123. package/dist/utils/legacy.d.ts.map +1 -1
  124. package/dist/utils/objects.d.ts.map +1 -1
  125. package/dist/utils/translation.d.ts.map +1 -1
  126. package/package.json +41 -41
@@ -1 +1 @@
1
- {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/components/field/field.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAQ1C,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAsEtC,CAAA"}
1
+ {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/components/field/field.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAM1C,OAAO,aAAa,CAAA;AAEpB,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAsEtC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"input-panel.d.ts","sourceRoot":"","sources":["../../../src/components/input-panel/input-panel.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAmB,MAAM,qBAAqB,CAAA;AAEtE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA+DhD,CAAA"}
1
+ {"version":3,"file":"input-panel.d.ts","sourceRoot":"","sources":["../../../src/components/input-panel/input-panel.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAmB,MAAM,qBAAqB,CAAA;AAEtE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAgEhD,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { DataCell } from '../../types/data-structures';
2
+ export interface SpotlightProps {
3
+ data: DataCell;
4
+ watermark?: string;
5
+ defaultText?: string;
6
+ onEnter?: (data: DataCell) => void;
7
+ }
8
+ //# sourceMappingURL=spotlight-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spotlight-types.d.ts","sourceRoot":"","sources":["../../../src/components/spotlight/spotlight-types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAEtD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,QAAQ,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;CACnC"}
@@ -0,0 +1,3 @@
1
+ import { SpotlightProps } from './spotlight-types';
2
+ export declare const Spotlight: React.FC<SpotlightProps>;
3
+ //# sourceMappingURL=spotlight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spotlight.d.ts","sourceRoot":"","sources":["../../../src/components/spotlight/spotlight.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAIlD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAmB9C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/config/paths.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG;IACd,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAMD;;;GAGG;AACH,eAAO,MAAM,cAAc,cAAe,OAAO,CAAC,UAAU,CAAC,SAE5D,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,iBAAkB,MAAM,WAEhD,CAAA"}
1
+ {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/config/paths.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG;IACd,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAMD;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,WAAW,OAAO,CAAC,UAAU,CAAC,SAE5D,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,cAAc,MAAM,WAEhD,CAAA"}
@@ -0,0 +1,36 @@
1
+ import { ArrayElementBindProps } from '../../basic-components/cell/cell-types';
2
+ import { smeupGroup } from '../../types/data-structures';
3
+ /**
4
+ * @interface GroupBarProps
5
+ * @description Defines the props for the GroupBar component.
6
+ */
7
+ export interface GroupBarProps {
8
+ /**
9
+ * The list of the group elements.
10
+ */
11
+ groups?: smeupGroup[];
12
+ /**
13
+ * Whether you can re-order and drag the single chips.
14
+ */
15
+ isDraggable?: boolean;
16
+ /**
17
+ * Whether you can cancel the single chips.
18
+ */
19
+ isEditable?: boolean;
20
+ /**
21
+ * Callback function triggered when the groups are changed.
22
+ * @param {ArrayElementBindProps[]} newGroups - The new array of group elements.
23
+ */
24
+ onChange?: (newGroups: ArrayElementBindProps[]) => void;
25
+ /**
26
+ * Callback function for the drop event.
27
+ * @param {React.DragEvent<HTMLDivElement>} e - The drag event.
28
+ */
29
+ onDrop?: (e: React.DragEvent<HTMLDivElement>) => void;
30
+ /**
31
+ * Callback function for the drag over event.
32
+ * @param {React.DragEvent<HTMLDivElement>} e - The drag event.
33
+ */
34
+ onDragOver?: (e: React.DragEvent<HTMLDivElement>) => void;
35
+ }
36
+ //# sourceMappingURL=group-bar-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group-bar-types.d.ts","sourceRoot":"","sources":["../../../src/functional-components/group-bar/group-bar-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,qBAAqB,EAAE,KAAK,IAAI,CAAC;IAExD;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAEtD;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CAC3D"}
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { GroupBarProps } from './group-bar-types';
3
+ export declare const GroupBar: React.FC<GroupBarProps>;
4
+ //# sourceMappingURL=group-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group-bar.d.ts","sourceRoot":"","sources":["../../../src/functional-components/group-bar/group-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAIjD,OAAO,iBAAiB,CAAA;AAGxB,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA8B5C,CAAA"}
@@ -0,0 +1,36 @@
1
+ import { DataRow } from '../../types/data-structures';
2
+ /**
3
+ * @interface GroupRowProps
4
+ * @description Defines the props for a single group row in a data table. A group row can contain data rows or be nested with other group rows.
5
+ */
6
+ export interface GroupRowProps {
7
+ /**
8
+ * The display label for the group row.
9
+ */
10
+ readonly label: string;
11
+ /**
12
+ * The data rows that belong to this group. This is typically present on the last level of grouping.
13
+ */
14
+ readonly rows?: DataRow[];
15
+ /**
16
+ * An optional callback function to be executed when the group row is clicked, usually to toggle its expansion state.
17
+ */
18
+ readonly onClick?: () => void;
19
+ /**
20
+ * Determines if the group row is currently expanded to show its children or data rows.
21
+ */
22
+ readonly isExpanded?: boolean;
23
+ /**
24
+ * The nesting level of the group, where `0` is the top-most level.
25
+ */
26
+ readonly level?: number;
27
+ /**
28
+ * The top offset for absolute positioning of the row within the component.
29
+ */
30
+ readonly offsetTop?: number;
31
+ /**
32
+ * The height of the row, used for positioning calculations.
33
+ */
34
+ readonly rowHeight?: number;
35
+ }
36
+ //# sourceMappingURL=group-row-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group-row-types.d.ts","sourceRoot":"","sources":["../../../src/functional-components/group-row/group-row-types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAErD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IAEtB;;OAEG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;IAEzB;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IAE7B;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAE7B;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEvB;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAE3B;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B"}
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { GroupRowProps } from './group-row-types';
3
+ export declare const GroupRow: React.FC<GroupRowProps>;
4
+ //# sourceMappingURL=group-row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group-row.d.ts","sourceRoot":"","sources":["../../../src/functional-components/group-row/group-row.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAsC5C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"helper-text.d.ts","sourceRoot":"","sources":["../../../src/functional-components/helper-text/helper-text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAGrD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAUhD,CAAA"}
1
+ {"version":3,"file":"helper-text.d.ts","sourceRoot":"","sources":["../../../src/functional-components/helper-text/helper-text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,mBAAmB,CAAA;AAE1B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAUhD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/functional-components/label/label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAMtC,CAAA"}
1
+ {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/functional-components/label/label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,aAAa,CAAA;AAEpB,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAMtC,CAAA"}
@@ -0,0 +1,25 @@
1
+ import { DataLayoutSection } from '../../types/data-structures';
2
+ import { LayoutCells } from './layout-types';
3
+ /**
4
+ * Maps layout sections into subsections based on layout parameters such as columns.
5
+ * @param {DataLayoutSection[]} sections - Layout sections to map
6
+ * @param {LayoutCells} cells - Layout cells to render
7
+ * @returns {DataLayoutSection[]} New sections array to handle
8
+ */
9
+ export declare const mapSections: (sections: DataLayoutSection[], cells: LayoutCells) => DataLayoutSection[];
10
+ /**
11
+ * Retrieves the grid template value for a set of layout subsections and returns a CSS style object.
12
+ * @param {DataLayoutSection[]} sections - Array of layout subsections used to generate the grid template string
13
+ * @param {string} ccsVarName - The Smeup CSS variable name to assign (e.g., "--smp-grid-template-cols")
14
+ * @returns {{[gridTemplateKey: string]: string}} An object containing the CSS variable name as the key and the generated grid template string as the value
15
+ */
16
+ export declare const getSectionGridTemplateStyleString: (sections: DataLayoutSection[], ccsVarName: string) => {
17
+ [x: string]: string;
18
+ };
19
+ /**
20
+ * Check if vertical dimension needs to be handled. Use this only if `section.horizantal = false | undefined`
21
+ * @param {DataLayoutSection[]} sections - Array of layout subsections that needs to check if vertical dimension need to be handled
22
+ * @returns {boolean} vertical dimension need to be handled
23
+ */
24
+ export declare const hasVerticalDim: (sections: DataLayoutSection[]) => boolean;
25
+ //# sourceMappingURL=layout-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout-utils.d.ts","sourceRoot":"","sources":["../../../src/functional-components/layout/layout-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAEhF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE5C;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GACtB,UAAU,iBAAiB,EAAE,EAC7B,OAAO,WAAW,KACjB,iBAAiB,EAsCnB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC,GAC5C,UAAU,iBAAiB,EAAE,EAC7B,YAAY,MAAM;;CAanB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,UAAU,iBAAiB,EAAE,YAE3D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/functional-components/layout/layout.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,WAAW,EAEZ,MAAM,gBAAgB,CAAA;AAGvB,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA2GxC,CAAA"}
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/functional-components/layout/layout.tsx"],"names":[],"mappings":"AAUA,OAAO,EAEL,WAAW,EAEZ,MAAM,gBAAgB,CAAA;AAQvB,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA+JxC,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { DataNode, DataRow } from '../../types/data-structures';
2
+ export declare const TreeGridData: DataNode[];
3
+ export declare const simpleTree: DataNode[];
4
+ export declare const sampleWithoutChildren: DataRow[];
5
+ //# sourceMappingURL=row-assets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-assets.d.ts","sourceRoot":"","sources":["../../../src/functional-components/row/row-assets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAG/D,eAAO,MAAM,YAAY,EAAE,QAAQ,EA8LlC,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,QAAQ,EAsEhC,CAAA;AAGD,eAAO,MAAM,qBAAqB,EAAE,OAAO,EA+C1C,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { DataNode, DataRow } from '../../types/data-structures';
2
+ export interface RowProps {
3
+ row: DataNode | DataRow;
4
+ level?: number;
5
+ columnWidths?: Record<string, number>;
6
+ rowHeight?: number;
7
+ offsetTop?: number;
8
+ /**
9
+ * Whether the row is a groupRow or not.
10
+ */
11
+ isGroup?: boolean;
12
+ /**
13
+ * Value of the row, used for grouping
14
+ */
15
+ value?: string;
16
+ }
17
+ export declare function isDataNode(row: DataNode | DataRow | undefined): row is DataNode;
18
+ export declare function isDataRow(row: DataNode | DataRow): row is DataRow;
19
+ //# sourceMappingURL=row-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-types.d.ts","sourceRoot":"","sources":["../../../src/functional-components/row/row-types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAE/D,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACrC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAGD,wBAAgB,UAAU,CACxB,GAAG,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAClC,GAAG,IAAI,QAAQ,CAEjB;AAGD,wBAAgB,SAAS,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,GAAG,GAAG,IAAI,OAAO,CAEjE"}
@@ -0,0 +1,3 @@
1
+ import { RowProps } from './row-types';
2
+ export declare const Row: React.FC<RowProps>;
3
+ //# sourceMappingURL=row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row.d.ts","sourceRoot":"","sources":["../../../src/functional-components/row/row.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAyB,MAAM,aAAa,CAAA;AAI7D,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CA0HlC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useClickOutside.d.ts","sourceRoot":"","sources":["../../src/hooks/useClickOutside.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,OAAO,CAAA;AAEtC,eAAO,MAAM,eAAe,QACrB,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,YAClB,MAAM,IAAI,SAkBrB,CAAA"}
1
+ {"version":3,"file":"useClickOutside.d.ts","sourceRoot":"","sources":["../../src/hooks/useClickOutside.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,OAAO,CAAA;AAEtC,eAAO,MAAM,eAAe,GAC1B,KAAK,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EAC5B,UAAU,MAAM,IAAI,SAkBrB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useDebounce.d.ts","sourceRoot":"","sources":["../../src/hooks/useDebounce.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW,YAAa,MAAM,gBAWC,MAAM,OAAO,CAAC,IAAI,CAAC,SAWvD,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"useDebounce.d.ts","sourceRoot":"","sources":["../../src/hooks/useDebounce.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW,GAAI,SAAS,MAAM,gBAWC,MAAM,OAAO,CAAC,IAAI,CAAC,SAWvD,CAAA;AAED,eAAe,WAAW,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,7 +1,13 @@
1
1
  /** Components */
2
+ /** App Bar */
3
+ export { AppBar } from './components/app-bar/app-bar';
4
+ export { type AppBarProps } from './components/app-bar/app-bar-types';
2
5
  /** Dash List */
3
6
  export { DashList } from './components/dash-list/dash-list';
4
7
  export { type DashListProps } from './components/dash-list/dash-list-types';
8
+ /** Drawer */
9
+ export { Drawer } from './components/drawer/drawer';
10
+ export { type DrawerProps } from './components/drawer/drawer-types';
5
11
  /** Field */
6
12
  export { Field } from './components/field/field';
7
13
  export { type FieldProps } from './components/field/field-types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,OAAO,oBAAoB,CAAA;AAC3B,OAAO,sBAAsB,CAAA;AAE7B,iBAAiB;AACjB,gBAAgB;AAChB,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAC3D,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,wCAAwC,CAAA;AAE3E,YAAY;AACZ,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAEhE,uBAAuB;AACvB,gBAAgB;AAChB,OAAO,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAA;AAClE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,8CAA8C,CAAA;AAElF,eAAe;AACf,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAA;AAC/D,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,4CAA4C,CAAA;AAE/E,eAAe;AACf,OAAO,EAAE,QAAQ,EAAE,MAAM,s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