no-frills-ui 0.0.13 → 0.0.14-alpha.1

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 (173) hide show
  1. package/README.md +56 -23
  2. package/dist/index.js +1899 -3579
  3. package/dist/index.js.map +1 -1
  4. package/lib-esm/components/Accordion/Accordion.d.ts +2 -2
  5. package/lib-esm/components/Accordion/Accordion.js +8 -7
  6. package/lib-esm/components/Accordion/Accordion.js.map +1 -1
  7. package/lib-esm/components/Accordion/AccordionStep.d.ts +10 -5
  8. package/lib-esm/components/Accordion/AccordionStep.js +3 -12
  9. package/lib-esm/components/Accordion/AccordionStep.js.map +1 -1
  10. package/lib-esm/components/Badge/Badge.d.ts +3 -2
  11. package/lib-esm/components/Badge/Badge.js +6 -4
  12. package/lib-esm/components/Badge/Badge.js.map +1 -1
  13. package/lib-esm/components/Button/ActionButton.d.ts +4 -2
  14. package/lib-esm/components/Button/Button.d.ts +4 -2
  15. package/lib-esm/components/Button/IconButton.d.ts +4 -2
  16. package/lib-esm/components/Button/LinkButton.d.ts +4 -2
  17. package/lib-esm/components/Button/RaisedButton.d.ts +4 -2
  18. package/lib-esm/components/Card/Card.d.ts +4 -2
  19. package/lib-esm/components/Card/index.d.ts +1 -0
  20. package/lib-esm/components/Card/index.js +1 -0
  21. package/lib-esm/components/Card/index.js.map +1 -1
  22. package/lib-esm/components/Chip/Chip.d.ts +8 -0
  23. package/lib-esm/components/Chip/Chip.js +48 -0
  24. package/lib-esm/components/Chip/Chip.js.map +1 -0
  25. package/lib-esm/components/Chip/index.d.ts +1 -0
  26. package/lib-esm/components/Chip/index.js +2 -0
  27. package/lib-esm/components/Chip/index.js.map +1 -0
  28. package/lib-esm/components/ChipInput/ChipInput.d.ts +33 -0
  29. package/lib-esm/components/ChipInput/ChipInput.js +216 -0
  30. package/lib-esm/components/ChipInput/ChipInput.js.map +1 -0
  31. package/lib-esm/components/ChipInput/index.d.ts +1 -0
  32. package/lib-esm/components/ChipInput/index.js +2 -0
  33. package/lib-esm/components/ChipInput/index.js.map +1 -0
  34. package/lib-esm/components/Dialog/AlertDialog.d.ts +3 -3
  35. package/lib-esm/components/Dialog/AlertDialog.js +5 -7
  36. package/lib-esm/components/Dialog/AlertDialog.js.map +1 -1
  37. package/lib-esm/components/Dialog/ConfirmDialog.d.ts +2 -2
  38. package/lib-esm/components/Dialog/ConfirmDialog.js +4 -7
  39. package/lib-esm/components/Dialog/ConfirmDialog.js.map +1 -1
  40. package/lib-esm/components/Dialog/Dialog.d.ts +8 -11
  41. package/lib-esm/components/Dialog/Dialog.js +3 -2
  42. package/lib-esm/components/Dialog/Dialog.js.map +1 -1
  43. package/lib-esm/components/Dialog/PromptDialog.d.ts +2 -2
  44. package/lib-esm/components/Dialog/PromptDialog.js +4 -11
  45. package/lib-esm/components/Dialog/PromptDialog.js.map +1 -1
  46. package/lib-esm/components/DragAndDrop/DragAndDrop.d.ts +45 -0
  47. package/lib-esm/components/DragAndDrop/DragAndDrop.js +61 -0
  48. package/lib-esm/components/DragAndDrop/DragAndDrop.js.map +1 -0
  49. package/lib-esm/components/DragAndDrop/DragItem.d.ts +46 -0
  50. package/lib-esm/components/DragAndDrop/DragItem.js +187 -0
  51. package/lib-esm/components/DragAndDrop/DragItem.js.map +1 -0
  52. package/lib-esm/components/DragAndDrop/index.d.ts +2 -0
  53. package/lib-esm/components/DragAndDrop/index.js +3 -0
  54. package/lib-esm/components/DragAndDrop/index.js.map +1 -0
  55. package/lib-esm/components/DragAndDrop/types.d.ts +12 -0
  56. package/lib-esm/components/DragAndDrop/types.js +8 -0
  57. package/lib-esm/components/DragAndDrop/types.js.map +1 -0
  58. package/lib-esm/components/Drawer/Drawer.d.ts +3 -3
  59. package/lib-esm/components/Drawer/Drawer.js +5 -3
  60. package/lib-esm/components/Drawer/Drawer.js.map +1 -1
  61. package/lib-esm/components/Groups/Group.d.ts +1 -1
  62. package/lib-esm/components/Groups/Group.js +2 -4
  63. package/lib-esm/components/Groups/Group.js.map +1 -1
  64. package/lib-esm/components/Groups/GroupLabel.d.ts +4 -2
  65. package/lib-esm/components/Input/Checkbox.d.ts +2 -2
  66. package/lib-esm/components/Input/Checkbox.js +4 -4
  67. package/lib-esm/components/Input/Checkbox.js.map +1 -1
  68. package/lib-esm/components/Input/Dropdown.d.ts +2 -2
  69. package/lib-esm/components/Input/Dropdown.js +7 -6
  70. package/lib-esm/components/Input/Dropdown.js.map +1 -1
  71. package/lib-esm/components/Input/Input.d.ts +5 -2
  72. package/lib-esm/components/Input/Input.js +3 -5
  73. package/lib-esm/components/Input/Input.js.map +1 -1
  74. package/lib-esm/components/Input/Radio.d.ts +2 -1
  75. package/lib-esm/components/Input/Radio.js +2 -4
  76. package/lib-esm/components/Input/Radio.js.map +1 -1
  77. package/lib-esm/components/Input/RadioButton.d.ts +5 -2
  78. package/lib-esm/components/Input/RadioButton.js +2 -4
  79. package/lib-esm/components/Input/RadioButton.js.map +1 -1
  80. package/lib-esm/components/Input/Select.d.ts +1 -1
  81. package/lib-esm/components/Input/Select.js +4 -9
  82. package/lib-esm/components/Input/Select.js.map +1 -1
  83. package/lib-esm/components/Input/TextArea.d.ts +1 -1
  84. package/lib-esm/components/Input/TextArea.js +3 -5
  85. package/lib-esm/components/Input/TextArea.js.map +1 -1
  86. package/lib-esm/components/Input/Toggle.d.ts +3 -2
  87. package/lib-esm/components/Input/Toggle.js +2 -5
  88. package/lib-esm/components/Input/Toggle.js.map +1 -1
  89. package/lib-esm/components/Menu/Menu.d.ts +1 -1
  90. package/lib-esm/components/Menu/Menu.js +3 -3
  91. package/lib-esm/components/Menu/Menu.js.map +1 -1
  92. package/lib-esm/components/Menu/MenuContext.d.ts +0 -1
  93. package/lib-esm/components/Menu/MenuItem.d.ts +1 -1
  94. package/lib-esm/components/Menu/MenuItem.js +4 -5
  95. package/lib-esm/components/Menu/MenuItem.js.map +1 -1
  96. package/lib-esm/components/Modal/Modal.d.ts +3 -3
  97. package/lib-esm/components/Modal/Modal.js +5 -3
  98. package/lib-esm/components/Modal/Modal.js.map +1 -1
  99. package/lib-esm/components/Notification/Notification.d.ts +4 -36
  100. package/lib-esm/components/Notification/Notification.js +4 -19
  101. package/lib-esm/components/Notification/Notification.js.map +1 -1
  102. package/lib-esm/components/Notification/NotificationManager.d.ts +2 -2
  103. package/lib-esm/components/Notification/NotificationManager.js +6 -18
  104. package/lib-esm/components/Notification/NotificationManager.js.map +1 -1
  105. package/lib-esm/components/Notification/index.d.ts +2 -1
  106. package/lib-esm/components/Notification/index.js +2 -1
  107. package/lib-esm/components/Notification/index.js.map +1 -1
  108. package/lib-esm/components/Notification/style.d.ts +38 -17
  109. package/lib-esm/components/Notification/style.js +1 -1
  110. package/lib-esm/components/Notification/style.js.map +1 -1
  111. package/lib-esm/components/Notification/types.d.ts +34 -0
  112. package/lib-esm/components/Notification/types.js +18 -0
  113. package/lib-esm/components/Notification/types.js.map +1 -0
  114. package/lib-esm/components/Popover/Popover.d.ts +1 -1
  115. package/lib-esm/components/Popover/Popover.js +15 -7
  116. package/lib-esm/components/Popover/Popover.js.map +1 -1
  117. package/lib-esm/components/Spinner/Spinner.d.ts +2 -2
  118. package/lib-esm/components/Spinner/Spinner.js +2 -2
  119. package/lib-esm/components/Spinner/Spinner.js.map +1 -1
  120. package/lib-esm/components/Stepper/Step.d.ts +2 -1
  121. package/lib-esm/components/Stepper/Step.js +2 -2
  122. package/lib-esm/components/Stepper/Step.js.map +1 -1
  123. package/lib-esm/components/Stepper/Stepper.d.ts +2 -2
  124. package/lib-esm/components/Stepper/Stepper.js +3 -14
  125. package/lib-esm/components/Stepper/Stepper.js.map +1 -1
  126. package/lib-esm/components/Tabs/Tab.d.ts +1 -1
  127. package/lib-esm/components/Tabs/Tab.js +2 -2
  128. package/lib-esm/components/Tabs/Tab.js.map +1 -1
  129. package/lib-esm/components/Tabs/Tabs.d.ts +1 -1
  130. package/lib-esm/components/Tabs/Tabs.js +3 -4
  131. package/lib-esm/components/Tabs/Tabs.js.map +1 -1
  132. package/lib-esm/components/Toast/Toast.js +3 -5
  133. package/lib-esm/components/Toast/Toast.js.map +1 -1
  134. package/lib-esm/components/Toast/ToastStory.d.ts +3 -1
  135. package/lib-esm/components/Toast/ToastStory.js +2 -1
  136. package/lib-esm/components/Toast/ToastStory.js.map +1 -1
  137. package/lib-esm/components/Tooltip/Tooltip.d.ts +3 -3
  138. package/lib-esm/components/Tooltip/Tooltip.js +3 -5
  139. package/lib-esm/components/Tooltip/Tooltip.js.map +1 -1
  140. package/lib-esm/components/index.d.ts +3 -1
  141. package/lib-esm/components/index.js +3 -1
  142. package/lib-esm/components/index.js.map +1 -1
  143. package/lib-esm/icons/CheckCircle.d.ts +1 -1
  144. package/lib-esm/icons/CheckCircle.js +2 -4
  145. package/lib-esm/icons/CheckCircle.js.map +1 -1
  146. package/lib-esm/icons/Close.d.ts +1 -1
  147. package/lib-esm/icons/Close.js +2 -4
  148. package/lib-esm/icons/Close.js.map +1 -1
  149. package/lib-esm/icons/DragIndicator.d.ts +1 -0
  150. package/lib-esm/icons/DragIndicator.js +5 -0
  151. package/lib-esm/icons/DragIndicator.js.map +1 -0
  152. package/lib-esm/icons/ErrorOutline.d.ts +1 -1
  153. package/lib-esm/icons/ErrorOutline.js +2 -3
  154. package/lib-esm/icons/ErrorOutline.js.map +1 -1
  155. package/lib-esm/icons/ExpandMore.d.ts +1 -1
  156. package/lib-esm/icons/ExpandMore.js +2 -4
  157. package/lib-esm/icons/ExpandMore.js.map +1 -1
  158. package/lib-esm/icons/FiberManualRecord.d.ts +1 -1
  159. package/lib-esm/icons/FiberManualRecord.js +2 -4
  160. package/lib-esm/icons/FiberManualRecord.js.map +1 -1
  161. package/lib-esm/icons/Info.d.ts +1 -1
  162. package/lib-esm/icons/Info.js +2 -4
  163. package/lib-esm/icons/Info.js.map +1 -1
  164. package/lib-esm/icons/ReportProblem.d.ts +1 -1
  165. package/lib-esm/icons/ReportProblem.js +2 -4
  166. package/lib-esm/icons/ReportProblem.js.map +1 -1
  167. package/lib-esm/icons/index.d.ts +1 -0
  168. package/lib-esm/icons/index.js +1 -0
  169. package/lib-esm/icons/index.js.map +1 -1
  170. package/lib-esm/shared/LayerManager.js +3 -2
  171. package/lib-esm/shared/LayerManager.js.map +1 -1
  172. package/lib-esm/shared/styles.d.ts +16 -5
  173. package/package.json +27 -24
@@ -0,0 +1,61 @@
1
+ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
2
+ import React, { useState } from 'react';
3
+ import styled from '@emotion/styled';
4
+ import DragItem from './DragItem';
5
+ import { ORIENTATION, DragContext } from './types';
6
+ /** Container Component */
7
+ const Container = styled.div `
8
+ flex: 1;
9
+ display: flex;
10
+ position: relative;
11
+ flex-wrap: wrap;
12
+ flex-direction: ${props => props.orientation === ORIENTATION.HORIZONTAL ? 'row' : 'column'};
13
+ `;
14
+ /**
15
+ * A drag and drop container component that enables reordering of child elements.
16
+ *
17
+ * @component
18
+ * @example
19
+ * ```tsx
20
+ * <DragAndDrop
21
+ * orientation={ORIENTATION.VERTICAL}
22
+ * onDrop={(start, end) => handleReorder(start, end)}
23
+ * showIndicator={true}
24
+ * >
25
+ * <div>Item 1</div>
26
+ * <div>Item 2</div>
27
+ * <div>Item 3</div>
28
+ * </DragAndDrop>
29
+ * ```
30
+ *
31
+ * @param {DragAndDropProps} props - The component props
32
+ * @param {ORIENTATION} props.orientation - Determines the layout direction (horizontal or vertical). Defaults to VERTICAL.
33
+ * @param {(start: number, end: number) => void} props.onDrop - Callback fired when an item is dropped, receives the start and end indices
34
+ * @param {boolean} props.showIndicator - Whether to display drag indicators for each list item. Defaults to false.
35
+ * @param {React.ReactNode} props.children - Child elements to be rendered as draggable items
36
+ *
37
+ * @returns {JSX.Element} A draggable container with reorderable items
38
+ */
39
+ export default function DragAndDrop(props) {
40
+ const { orientation, children, onDrop, showIndicator } = props;
41
+ const [startIndex, setStartIndex] = useState(null);
42
+ const [isDragging, setIsDragging] = useState(false);
43
+ const [dragOver, setDragOver] = useState(null);
44
+ /**
45
+ * Drop handler invoked when a draggable item is released.
46
+ * @param index
47
+ */
48
+ const drop = (index) => {
49
+ startIndex !== null && (onDrop === null || onDrop === void 0 ? void 0 : onDrop(startIndex, index));
50
+ setStartIndex(null);
51
+ setIsDragging(false);
52
+ };
53
+ return (_jsx(DragContext.Provider, { value: { startIndex, setStartIndex, drop, isDragging, setIsDragging, setDragOver }, children: _jsx(Container, { orientation: orientation, children: React.Children.map(children, (child, index) => (_jsx(DragItem, { index: index, orientation: orientation, showIndicator: showIndicator, dragOver: dragOver, children: child }))) }) }));
54
+ }
55
+ DragAndDrop.defaultProps = {
56
+ /** Orientation of the list layout */
57
+ orientation: ORIENTATION.VERTICAL,
58
+ /** Whether to display drag indicators for each list item */
59
+ showIndicator: false,
60
+ };
61
+ //# sourceMappingURL=DragAndDrop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DragAndDrop.js","sourceRoot":"","sources":["../../../src/components/DragAndDrop/DragAndDrop.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAqB,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAWnD,0BAA0B;AAC1B,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAA4B;;;;;sBAKlC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,KAAK,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ;CAC7F,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAuB;IACvD,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAC/D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAS,IAAI,CAAC,CAAC;IAC3D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;IAC7D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAS,IAAI,CAAC,CAAC;IAEvD;;;OAGG;IACH,MAAM,IAAI,GAAG,CAAC,KAAa,EAAE,EAAE;QAC3B,UAAU,KAAK,IAAI,KAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,UAAU,EAAE,KAAK,CAAC,CAAA,CAAC;QACnD,aAAa,CAAC,IAAI,CAAC,CAAC;QACpB,aAAa,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC,CAAA;IAED,OAAO,CAAC,KAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,WAAW,EAAE,YAC5G,KAAC,SAAS,IAAC,WAAW,EAAE,WAAW,YAC9B,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,YAC7F,KAAK,GACC,CACd,CAAC,GACM,GACO,CAAC,CAAC;AAC7B,CAAC;AAED,WAAW,CAAC,YAAY,GAAG;IACvB,qCAAqC;IACrC,WAAW,EAAE,WAAW,CAAC,QAAQ;IACjC,4DAA4D;IAC5D,aAAa,EAAE,KAAK;CACvB,CAAA"}
@@ -0,0 +1,46 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { ORIENTATION } from './types';
3
+ interface DragItemProps {
4
+ /** Position index of the draggable item */
5
+ index: number;
6
+ /** Orientation of the drag operation (VERTICAL or HORIZONTAL) */
7
+ orientation: ORIENTATION;
8
+ /** Whether to show a drag handle indicator instead of making the entire item draggable */
9
+ showIndicator: boolean;
10
+ /** The index of the item currently being dragged over */
11
+ dragOver: number;
12
+ }
13
+ /**
14
+ * A draggable item component that supports both mouse and touch interactions for drag-and-drop functionality.
15
+ *
16
+ * @component
17
+ * @example
18
+ * ```tsx
19
+ * <DragItem
20
+ * index={0}
21
+ * orientation={ORIENTATION.VERTICAL}
22
+ * showIndicator={true}
23
+ * dragOver={-1}
24
+ * >
25
+ * <div>Draggable content</div>
26
+ * </DragItem>
27
+ * ```
28
+ *
29
+ * @param props - The component props
30
+ * @param props.index - The position index of this item in the draggable list
31
+ * @param props.orientation - The orientation of the drag operation (VERTICAL or HORIZONTAL)
32
+ * @param props.showIndicator - Whether to show a drag handle indicator instead of making the entire item draggable
33
+ * @param props.dragOver - The index of the item currently being dragged over
34
+ * @param props.children - The content to be rendered inside the draggable item
35
+ *
36
+ * @remarks
37
+ * - Uses the DragContext to manage drag state across items
38
+ * - Provides visual feedback with borders during drag operations
39
+ * - Supports haptic feedback (vibration) on touch devices
40
+ * - For touch devices, requires a 200ms hold before drag starts
41
+ * - When showIndicator is true, only the drag handle can initiate drag operations
42
+ *
43
+ * @returns A draggable item with optional drag indicator and visual feedback
44
+ */
45
+ export default function DragItem(props: PropsWithChildren<DragItemProps>): import("@emotion/react/jsx-runtime").JSX.Element;
46
+ export {};
@@ -0,0 +1,187 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
2
+ import { useContext, useState, useEffect } from 'react';
3
+ import styled from '@emotion/styled';
4
+ import constants from '../../shared/constants';
5
+ import { ORIENTATION, DragContext } from './types';
6
+ import { DragIndicator } from '../../icons';
7
+ /** Styled component for the draggable item container */
8
+ const Item = styled.div `
9
+ cursor: ${props => props.showIndicator ? 'default' : 'move'};
10
+ display: flex;
11
+ user-select: ${props => props.showIndicator ? 'auto' : 'none'};
12
+ border-top: 2px solid ${props => props.orientation === ORIENTATION.VERTICAL && props.active > 0
13
+ ? constants.PRIMARY : 'transparent'};
14
+ border-bottom: 2px solid ${props => props.orientation === ORIENTATION.VERTICAL && props.active < 0
15
+ ? constants.PRIMARY : 'transparent'};
16
+ border-left: 2px solid ${props => props.orientation === ORIENTATION.HORIZONTAL && props.active > 0
17
+ ? constants.PRIMARY : 'transparent'};
18
+ border-right: 2px solid ${props => props.orientation === ORIENTATION.HORIZONTAL && props.active < 0
19
+ ? constants.PRIMARY : 'transparent'};
20
+ opacity: ${props => props.dragging ? 0.5 : 1};
21
+ `;
22
+ /** Styled component for the drag handle indicator */
23
+ const DragKnob = styled.div `
24
+ padding-top: 8px;
25
+ cursor: move;
26
+ touch-action: none;
27
+ color: var(--disabled, ${constants.DISABLED});
28
+ `;
29
+ /** Container for the children */
30
+ const Container = styled.div `
31
+ flex: 1;
32
+ `;
33
+ /**
34
+ * A draggable item component that supports both mouse and touch interactions for drag-and-drop functionality.
35
+ *
36
+ * @component
37
+ * @example
38
+ * ```tsx
39
+ * <DragItem
40
+ * index={0}
41
+ * orientation={ORIENTATION.VERTICAL}
42
+ * showIndicator={true}
43
+ * dragOver={-1}
44
+ * >
45
+ * <div>Draggable content</div>
46
+ * </DragItem>
47
+ * ```
48
+ *
49
+ * @param props - The component props
50
+ * @param props.index - The position index of this item in the draggable list
51
+ * @param props.orientation - The orientation of the drag operation (VERTICAL or HORIZONTAL)
52
+ * @param props.showIndicator - Whether to show a drag handle indicator instead of making the entire item draggable
53
+ * @param props.dragOver - The index of the item currently being dragged over
54
+ * @param props.children - The content to be rendered inside the draggable item
55
+ *
56
+ * @remarks
57
+ * - Uses the DragContext to manage drag state across items
58
+ * - Provides visual feedback with borders during drag operations
59
+ * - Supports haptic feedback (vibration) on touch devices
60
+ * - For touch devices, requires a 200ms hold before drag starts
61
+ * - When showIndicator is true, only the drag handle can initiate drag operations
62
+ *
63
+ * @returns A draggable item with optional drag indicator and visual feedback
64
+ */
65
+ export default function DragItem(props) {
66
+ const { index, orientation, children, showIndicator, dragOver } = props;
67
+ const [active, setActive] = useState(0);
68
+ const [touchTimer, setTouchTimer] = useState(null);
69
+ const context = useContext(DragContext);
70
+ /**
71
+ * Vibrate the device for haptic feedback
72
+ * @param duration Duration of the vibration in milliseconds
73
+ */
74
+ const vibrate = (duration) => {
75
+ if (navigator.vibrate) {
76
+ navigator.vibrate(duration);
77
+ }
78
+ };
79
+ /**
80
+ * Drag start event handler
81
+ * @param e Event
82
+ */
83
+ const dragStartHandler = (e) => {
84
+ context.setStartIndex(index);
85
+ context.setIsDragging(true);
86
+ };
87
+ /**
88
+ * Drag over event handler
89
+ * @param e Event
90
+ */
91
+ const dragOverHandler = (e) => {
92
+ e.preventDefault();
93
+ e.stopPropagation();
94
+ setActive(context.startIndex - index);
95
+ };
96
+ /**
97
+ * Drag leave event handler
98
+ */
99
+ const dragExitHandler = () => {
100
+ setActive(0);
101
+ };
102
+ /**
103
+ * Drop event handler
104
+ * @param e Event
105
+ */
106
+ const dropHandler = (e) => {
107
+ e.preventDefault();
108
+ setActive(0);
109
+ context.drop(index);
110
+ context.setIsDragging(false);
111
+ };
112
+ /**
113
+ * Touch start event handler
114
+ * @param e Event
115
+ */
116
+ const touchStartHandler = (e) => {
117
+ const timer = setTimeout(() => {
118
+ context.setStartIndex(index);
119
+ context.setIsDragging(true);
120
+ context.setDragOver(index);
121
+ document.body.style.overflow = 'hidden';
122
+ vibrate(50);
123
+ }, 200);
124
+ setTouchTimer(timer);
125
+ };
126
+ /**
127
+ * Touch move event handler
128
+ * @param e Event
129
+ * @returns void
130
+ */
131
+ const touchMoveHandler = (e) => {
132
+ var _a;
133
+ const touch = e.touches[0];
134
+ if (!touch)
135
+ return;
136
+ if (context.isDragging) {
137
+ e.preventDefault();
138
+ // get the element under the touch point
139
+ const el = document.elementFromPoint(touch.clientX, touch.clientY);
140
+ const overAttr = (_a = el === null || el === void 0 ? void 0 : el.closest('[data-drag-index]')) === null || _a === void 0 ? void 0 : _a.getAttribute('data-drag-index');
141
+ const overIndex = overAttr != null ? parseInt(overAttr, 10) : null;
142
+ // if we know which index we're over, update visual state
143
+ if (overIndex !== null) {
144
+ context.setDragOver(overIndex);
145
+ }
146
+ }
147
+ else if (touchTimer) {
148
+ clearTimeout(touchTimer);
149
+ setTouchTimer(null);
150
+ }
151
+ };
152
+ /**
153
+ * Touch end event handler
154
+ * @param e Event
155
+ */
156
+ const touchEndHandler = (e) => {
157
+ if (touchTimer) {
158
+ clearTimeout(touchTimer);
159
+ setTouchTimer(null);
160
+ }
161
+ if (context.isDragging) {
162
+ context.drop(dragOver);
163
+ vibrate(50);
164
+ context.setIsDragging(false);
165
+ document.body.style.overflow = 'auto';
166
+ }
167
+ };
168
+ /** Cleanup touch timer on unmount */
169
+ useEffect(() => {
170
+ return () => {
171
+ if (touchTimer)
172
+ clearTimeout(touchTimer);
173
+ document.body.style.overflow = 'auto';
174
+ };
175
+ }, [touchTimer]);
176
+ /** Update active state based on dragOver changes */
177
+ useEffect(() => {
178
+ if (context.isDragging && dragOver === index) {
179
+ setActive(context.startIndex - index);
180
+ }
181
+ else {
182
+ setActive(0);
183
+ }
184
+ }, [dragOver, context.startIndex, index, context.isDragging]);
185
+ return _jsxs(Item, { draggable: !showIndicator, showIndicator: showIndicator, active: active, dragging: context.isDragging && context.startIndex === index, orientation: orientation, "data-drag-index": index, onDragStart: !showIndicator ? dragStartHandler : undefined, onDragOver: dragOverHandler, onDragLeave: dragExitHandler, onDrop: dropHandler, onTouchStart: !showIndicator ? touchStartHandler : undefined, onTouchMove: touchMoveHandler, onTouchEnd: touchEndHandler, onTouchCancel: touchEndHandler, children: [showIndicator && _jsx(DragKnob, { draggable: true, onDragStart: dragStartHandler, onTouchStart: touchStartHandler, children: _jsx(DragIndicator, {}) }), _jsx(Container, { children: children })] });
186
+ }
187
+ //# sourceMappingURL=DragItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DragItem.js","sourceRoot":"","sources":["../../../src/components/DragAndDrop/DragItem.tsx"],"names":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AAoD;IACpD,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,OAAO,CAAC,UAAU,IAAI,QAAQ,KAAK,KAAK,EAAE,CAAC;YAC3C,SAAS,CAAC,OAAO,CAAC,UAAU,GAAG,KAAK,CAAC,CAAC;QAC1C,CAAC;aAAM,CAAC;YACJ,SAAS,CAAC,CAAC,CAAC,CAAC;QACjB,CAAC;IACL,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,UAAU,EAAE,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;IAE9D,OAAO,MAAC,IAAI,IACR,SAAS,EAAE,CAAC,aAAa,EACzB,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,UAAU,KAAK,KAAK,EAC5D,WAAW,EAAE,WAAW,qBACP,KAAK,EACtB,WAAW,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,EAC1D,UAAU,EAAE,eAAe,EAC3B,WAAW,EAAE,eAAe,EAC5B,MAAM,EAAE,WAAW,EACnB,YAAY,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,EAC5D,WAAW,EAAE,gBAAgB,EAC7B,UAAU,EAAE,eAAe,EAC3B,aAAa,EAAE,eAAe,aAE7B,aAAa,IAAI,KAAC,QAAQ,IACvB,SAAS,QACT,WAAW,EAAE,gBAAgB,EAC7B,YAAY,EAAE,iBAAiB,YAClC,KAAC,aAAa,KAAG,GAAW,EAC7B,KAAC,SAAS,cAAE,QAAQ,GAAa,IAC9B,CAAC;AACZ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as DragAndDrop } from './DragAndDrop';
2
+ export { ORIENTATION } from './types';
@@ -0,0 +1,3 @@
1
+ export { default as DragAndDrop } from './DragAndDrop';
2
+ export { ORIENTATION } from './types';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DragAndDrop/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare enum ORIENTATION {
2
+ HORIZONTAL = "horizontal",
3
+ VERTICAL = "vertical"
4
+ }
5
+ export declare const DragContext: import("react").Context<{
6
+ startIndex: number;
7
+ setStartIndex: (value: number) => void;
8
+ drop: (index: number) => void;
9
+ isDragging: boolean;
10
+ setIsDragging: (value: boolean) => void;
11
+ setDragOver: (value: number) => void;
12
+ }>;
@@ -0,0 +1,8 @@
1
+ import { createContext } from "react";
2
+ export var ORIENTATION;
3
+ (function (ORIENTATION) {
4
+ ORIENTATION["HORIZONTAL"] = "horizontal";
5
+ ORIENTATION["VERTICAL"] = "vertical";
6
+ })(ORIENTATION || (ORIENTATION = {}));
7
+ export const DragContext = createContext(null);
8
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/DragAndDrop/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;AACvB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAOrC,IAAI,CAAC,CAAC"}
@@ -6,11 +6,11 @@ export declare enum DRAWER_POSITION {
6
6
  RIGHT = "RIGHT",
7
7
  BOTTOM = "BOTTOM"
8
8
  }
9
- declare type DrawerProps = PropTypes.InferProps<typeof Drawer.propTypes>;
9
+ type DrawerProps = PropTypes.InferProps<typeof Drawer.propTypes>;
10
10
  interface DrawerState {
11
11
  open: boolean;
12
12
  }
13
- export default class Drawer extends React.Component<DrawerProps, DrawerState> {
13
+ export default class Drawer extends React.Component<React.PropsWithChildren<DrawerProps>, DrawerState> {
14
14
  state: {
15
15
  open: boolean;
16
16
  };
@@ -43,5 +43,5 @@ export default class Drawer extends React.Component<DrawerProps, DrawerState> {
43
43
  private closeCallback;
44
44
  private onClose;
45
45
  getSnapshotBeforeUpdate(prevProps: DrawerProps): void;
46
- render(): JSX.Element;
46
+ render(): import("@emotion/react/jsx-runtime").JSX.Element;
47
47
  }
@@ -9,6 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
+ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
12
13
  import React from 'react';
13
14
  import PropTypes from 'prop-types';
14
15
  import styled from '@emotion/styled';
@@ -60,7 +61,7 @@ const positionMap = {
60
61
  [DRAWER_POSITION.RIGHT]: LAYER_POSITION.TOP_RIGHT,
61
62
  [DRAWER_POSITION.BOTTOM]: LAYER_POSITION.BOTTOM_LEFT,
62
63
  };
63
- export default class Drawer extends React.Component {
64
+ class Drawer extends React.Component {
64
65
  constructor() {
65
66
  super(...arguments);
66
67
  this.state = {
@@ -96,7 +97,7 @@ export default class Drawer extends React.Component {
96
97
  closeCallback: this.onClose,
97
98
  closeOnEsc,
98
99
  closeOnOverlayClick,
99
- component: (React.createElement(DrawerDiv, Object.assign({}, rest, { position: position, size: size, onClick: e => e.stopPropagation() }), children))
100
+ component: (_jsx(DrawerDiv, Object.assign({}, rest, { position: position, size: size, onClick: e => e.stopPropagation(), children: children })))
100
101
  });
101
102
  this.closeCallback = this.layer[1];
102
103
  this.forceUpdate();
@@ -105,7 +106,7 @@ export default class Drawer extends React.Component {
105
106
  render() {
106
107
  if (this.state.open && this.layer) {
107
108
  const [Component] = this.layer;
108
- return React.createElement(Component, null);
109
+ return _jsx(Component, {});
109
110
  }
110
111
  return null;
111
112
  }
@@ -136,4 +137,5 @@ Drawer.defaultProps = {
136
137
  closeOnEsc: true,
137
138
  closeOnOverlayClick: true,
138
139
  };
140
+ export default Drawer;
139
141
  //# sourceMappingURL=Drawer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,YAAY,EAAE,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAE/C,OAAO,EACH,MAAM,IAAI,YAAY,EACtB,IAAI,IAAI,UAAU,EAClB,MAAM,IAAI,YAAY,GACzB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,oCAAiB,CAAA;AACrB,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AAED,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC;IACrC,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE;QACpB,MAAM,EAAE,6BAA6B,IAAI,IAAI,OAAO,iCAAiC;QACrF,KAAK,EAAC,4BAA4B;KACrC;IACD,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE;QACrB,MAAM,EAAE,6BAA6B,IAAI,IAAI,OAAO,gCAAgC;QACpF,KAAK,EAAC,4BAA4B;KACrC;IACD,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE;QACtB,MAAM,EAAE;;;;sBAIM,IAAI,IAAI,MAAM;;;SAG3B;QACD,KAAK,EAAC,4BAA4B;KACrC;CACJ,CAAC,CAAC;AAEH,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAA2C;;;;;sCAKjC,SAAS,CAAC,YAAY;MACtD,K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M,gBAAS,GAAG;IACf,uBAAuB;IACvB,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IAC/B,6BAA6B;IAC7B,QAAQ,EAAE,SAAS,CAAC,KAAK,CAAC;QACtB,eAAe,CAAC,IAAI;QACpB,eAAe,CAAC,KAAK;QACrB,eAAe,CAAC,MAAM;KACzB,CAAC;IACF,yBAAyB;IACzB,IAAI,EAAE,SAAS,CAAC,MAAM;IACtB,0CAA0C;IAC1C,OAAO,EAAE,SAAS,CAAC,IAAI;IACvB,+BAA+B;IAC/B,UAAU,EAAE,SAAS,CAAC,IAAI;IAC1B,yCAAyC;IACzC,mBAAmB,EAAE,SAAS,CAAC,IAAI;IACnC,wDAAwD;IACxD,OAAO,EAAE,SAAS,CAAC,IAAI;CAC1B,AAnBe,CAmBf;AAEM,mBAAY,GAAG;IAClB,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,eAAe,CAAC,IAAI;IAC9B,UAAU,EAAE,IAAI;IAChB,mBAAmB,EAAE,IAAI;CAC5B,AALkB,CAKlB;eA/BgB,MAAM"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- declare function Group(props: React.PropsWithChildren<PropTypes.InferProps<typeof Group.propTypes>>): JSX.Element;
3
+ declare function Group(props: React.PropsWithChildren<PropTypes.InferProps<typeof Group.propTypes>>): import("@emotion/react/jsx-runtime").JSX.Element;
4
4
  declare namespace Group {
5
5
  var propTypes: {
6
6
  /** Error Message for the group */
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
2
2
  import PropTypes from 'prop-types';
3
3
  import styled from '@emotion/styled';
4
4
  import constants from '../../shared/constants';
@@ -76,9 +76,7 @@ const ErrorContainer = styled.div `
76
76
  font-size: 12px;
77
77
  `;
78
78
  export default function Group(props) {
79
- return (React.createElement(React.Fragment, null,
80
- React.createElement(Container, Object.assign({}, props), props.children),
81
- props.errorText && React.createElement(ErrorContainer, null, props.errorText)));
79
+ return (_jsxs(_Fragment, { children: [_jsx(Container, Object.assign({}, props, { children: props.children })), props.errorText && _jsx(ErrorContainer, { children: props.errorText })] }));
82
80
  }
83
81
  Group.propTypes = {
84
82
  /** Error Message for the group */
@@ -1 +1 @@
1
- {"version":3,"file":"Group.js","sourceRoot":"","sources":["../../../src/components/Groups/Group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAE/C,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAA8C;;4CAE9B,SAAS,CAAC,YAAY;;;;;;;;;qDASb,SAAS,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CA8CjC,SAAS,CAAC,YAAY;;;MAG1D,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;qCACI,SAAS,CAAC,KAAK;;;yCAGX,SAAS,CAAC,KAAK;;KAEnD,CAAA,CAAC,CAAC,EAAE;CACR,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;0BACP,SAAS,CAAC,KAAK;;;CAGxC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAA4E;IACtG,OAAO,CACH;QACI,oBAAC,SAAS,oBAAK,KAAK,GACf,KAAK,CAAC,QAAQ,CACP;QACV,KAAK,CAAC,SAAS,IAAI,oBAAC,cAAc,QAAE,KAAK,CAAC,SAAS,CAAkB,CACxE,CACN,CAAA;AACL,CAAC;AAED,KAAK,CAAC,SAAS,GAAG;IACd,kCAAkC;IAClC,SAAS,EAAE,SAAS,CAAC,MAAM;CAC9B,CAAA"}
1
+ {"version":3,"file":"Group.js","sourceRoot":"","sources":["../../../src/components/Groups/Group.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAE/C,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAA8C;;4CAE9B,SAAS,CAAC,YAAY;;;;;;;;;qDASb,SAAS,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CA8CjC,SAAS,CAAC,YAAY;;;MAG1D,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;qCACI,SAAS,CAAC,KAAK;;;yCAGX,SAAS,CAAC,KAAK;;KAEnD,CAAA,CAAC,CAAC,EAAE;CACR,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;0BACP,SAAS,CAAC,KAAK;;;CAGxC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAA4E;IACtG,OAAO,CACH,8BACI,KAAC,SAAS,oBAAK,KAAK,cACf,KAAK,CAAC,QAAQ,IACP,EACV,KAAK,CAAC,SAAS,IAAI,KAAC,cAAc,cAAE,KAAK,CAAC,SAAS,GAAkB,IACxE,CACN,CAAA;AACL,CAAC;AAED,KAAK,CAAC,SAAS,GAAG;IACd,kCAAkC;IAClC,SAAS,EAAE,SAAS,CAAC,MAAM;CAC9B,CAAA"}
@@ -1,3 +1,5 @@
1
- /// <reference types="react" />
2
- declare const _default: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, Pick<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "form" | "htmlFor">, object>;
1
+ declare const _default: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
4
+ }, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
3
5
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- declare type CheckboxProps = React.HTMLProps<HTMLInputElement> & PropTypes.InferProps<typeof Checkbox.propTypes>;
4
- declare function Checkbox(props: CheckboxProps): JSX.Element;
3
+ type CheckboxProps = Omit<React.HTMLProps<HTMLInputElement>, 'as'> & PropTypes.InferProps<typeof Checkbox.propTypes>;
4
+ declare function Checkbox(props: CheckboxProps): import("@emotion/react/jsx-runtime").JSX.Element;
5
5
  declare namespace Checkbox {
6
6
  var propTypes: {
7
7
  /** Label for the field */
@@ -1,4 +1,5 @@
1
- import React, { useCallback } from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
2
+ import { useCallback } from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import styled from '@emotion/styled';
4
5
  import constants from '../../shared/constants';
@@ -9,6 +10,7 @@ const Label = styled.label `
9
10
  const Input = styled.input `
10
11
  appearance: none;
11
12
  position: relative;
13
+ margin: 0;
12
14
 
13
15
  &::before {
14
16
  content: '';
@@ -104,9 +106,7 @@ export default function Checkbox(props) {
104
106
  }
105
107
  }
106
108
  }, []);
107
- return (React.createElement(Label, null,
108
- React.createElement(Input, Object.assign({}, props, { ref: ref, type: "checkbox" })),
109
- React.createElement("span", null, props.label)));
109
+ return (_jsxs(Label, { children: [_jsx(Input, Object.assign({}, props, { ref: ref, type: "checkbox" })), _jsx("span", { children: props.label })] }));
110
110
  }
111
111
  Checkbox.propTypes = {
112
112
  /** Label for the field */
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../src/components/Input/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAE/C,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAA;;;CAGzB,CAAC;AAEF,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAA;;;;;;;;gDAQsB,SAAS,CAAC,YAAY;;;;;;;8CAOxB,SAAS,CAAC,UAAU;;;;;;;;;;;;;;;;;;;2CAmBvB,SAAS,CAAC,OAAO;uCACrB,SAAS,CAAC,OAAO;;;;;;;;;;;;2CAYb,SAAS,CAAC,OAAO;uCACrB,SAAS;;;;;;;;;;;;uCAYT,SAAS,CAAC,OAAO;+CACT,SAAS,CAAC,aAAa;;;;gCAItC,SAAS,CAAC,OAAO;;;;;uCAKV,SAAS,CAAC,OAAO;;;;gCAIxB,SAAS,CAAC,OAAO;;;;;;;;;;;;;;;CAehD,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAoB;IACjD,MAAM,GAAG,GAAG,WAAW,CAAC,CAAC,IAAI,EAAE,EAAE;QAC7B,IAAI,IAAI,KAAK,IAAI,EAAE;YACf,IAAI,KAAK,CAAC,aAAa,EAAE;gBACrB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;aAC7B;SACJ;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO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C,IAAS,EAAE,EAAE;QAClC,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;YAChB,IAAI,KAAK,CAAC,aAAa,EAAE,CAAC;gBACtB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;YAC9B,CAAC;QACL,CAAC;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACH,MAAC,KAAK,eACF,KAAC,KAAK,oBAAK,KAAK,IAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAC,UAAU,IAAG,EAC9C,yBAAO,KAAK,CAAC,KAAK,GAAQ,IACtB,CACX,CAAC;AACN,CAAC;AAED,QAAQ,CAAC,SAAS,GAAG;IACjB,0BAA0B;IAC1B,KAAK,EAAE,SAAS,CAAC,MAAM;IACvB,6CAA6C;IAC7C,aAAa,EAAE,SAAS,CAAC,IAAI;CAChC,CAAA;AAED,QAAQ,CAAC,YAAY,GAAG;IACpB,aAAa,EAAE,KAAK;IACpB,KAAK,EAAE,EAAE;CACZ,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type DropdownProps<T> = {
2
+ type DropdownProps<T> = {
3
3
  /** Value of the control */
4
4
  value?: T | T[];
5
5
  /** If multiple elements can be selected */
@@ -15,7 +15,7 @@ declare type DropdownProps<T> = {
15
15
  /** Disables the field */
16
16
  disabled?: boolean;
17
17
  } & React.PropsWithChildren<{}>;
18
- declare function Dropdown<T>(props: DropdownProps<T>): JSX.Element;
18
+ declare function Dropdown<T>(props: DropdownProps<T>): import("@emotion/react/jsx-runtime").JSX.Element;
19
19
  declare namespace Dropdown {
20
20
  var defaultProps: {
21
21
  multiSelect: boolean;
@@ -1,4 +1,5 @@
1
- import React, { useEffect, useState } from 'react';
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
2
+ import { useEffect, useState } from 'react';
2
3
  import styled from '@emotion/styled';
3
4
  import { Menu } from '../Menu';
4
5
  import { Popover, POPOVER_POSITION } from '../Popover';
@@ -52,12 +53,12 @@ export default function Dropdown(props) {
52
53
  const changeHandler = (val) => {
53
54
  setValue(val);
54
55
  onChange === null || onChange === void 0 ? void 0 : onChange(val);
56
+ // Close dropdown after selection if not multiSelect
57
+ if (!multiSelect) {
58
+ setOpen(false);
59
+ }
55
60
  };
56
- return (React.createElement(Popover, { position: POPOVER_POSITION.BOTTOM_LEFT, open: open, element: () => (React.createElement(React.Fragment, null,
57
- React.createElement(Input, { type: 'text', value: value && String(value), label: props.label, errorText: props.errorText, onClick: clickHandler, onKeyUp: keyUp, required: props.required, disabled: props.disabled }),
58
- React.createElement(ArrowContainer, null,
59
- React.createElement(ExpandMore, null)))), onClose: () => setOpen(false) },
60
- React.createElement(Menu, { value: value, multiSelect: multiSelect, onChange: changeHandler }, props.children)));
61
+ return (_jsx(Popover, { position: POPOVER_POSITION.BOTTOM_LEFT, open: open, element: () => (_jsxs(_Fragment, { children: [_jsx(Input, { type: 'text', value: value && String(value), label: props.label, errorText: props.errorText, onClick: clickHandler, onKeyUp: keyUp, required: props.required, disabled: props.disabled }), _jsx(ArrowContainer, { children: _jsx(ExpandMore, {}) })] })), onClose: () => setOpen(false), children: _jsx(Menu, { value: value, multiSelect: multiSelect, onChange: changeHandler, children: props.children }) }));
61
62
  }
62
63
  Dropdown.defaultProps = {
63
64
  multiSelect: false,
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../../../src/components/Input/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAA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TMLInputElement> & {
2
+ type InputProps = React.AllHTMLAttributes<HTMLInputElement> & {
3
+ /** Label for the field */
3
4
  label?: string;
5
+ /** Error message for the field */
4
6
  errorText?: string;
5
- } & React.RefAttributes<HTMLInputElement>>;
7
+ };
8
+ declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "as"> & React.RefAttributes<HTMLInputElement>>;
6
9
  export default Input;