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,216 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
2
+ import React, { useEffect, useState } from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import styled from '@emotion/styled';
5
+ import constants from '../../shared/constants';
6
+ import Chip from '../Chip/Chip';
7
+ import { DragAndDrop, ORIENTATION } from '../DragAndDrop';
8
+ // Label component for the ChipInput
9
+ const Label = styled.label `
10
+ display: inline-flex;
11
+ flex-direction: column;
12
+ flex: 1;
13
+ position: relative;
14
+ margin: 10px 5px;
15
+ color: inherit;
16
+ padding: 0 8px;
17
+ width: 250px;
18
+ border-radius: 3px;
19
+ border: 1px solid var(--border-color, ${constants.BORDER_COLOR});
20
+ background-color: var(--background, ${constants.BACKGROUND});
21
+
22
+ /** Focused */
23
+ &:has(:focus), &:has(:active) {
24
+ border-color: var(--primary, ${constants.PRIMARY});
25
+ box-shadow: 0 0 0 4px var(--primary-light, ${constants.PRIMARY_LIGHT});
26
+ }
27
+
28
+ &:has(:focus) > span, &:has(:active) > span {
29
+ color: var(--primary, ${constants.PRIMARY});
30
+ }
31
+
32
+ /** Disabled */
33
+ &:has(:disabled) {
34
+ border-color: var(--disabled-border, ${constants.DISABLED_BORDER});
35
+ background-color: var(--disabled-background, ${constants.DISABLED_BACKGROUND});
36
+ }
37
+
38
+ &:has(:disabled) > span {
39
+ color: #777;
40
+ }
41
+
42
+ /** Invalid */
43
+ &:has(:focus:invalid) {
44
+ border-color: var(--error, ${constants.ERROR});
45
+ box-shadow: 0 0 0 4px var(--error-light, ${constants.ERROR_LIGHT});
46
+ }
47
+
48
+ ${props => props.touched ? `
49
+ &:has(:invalid) {
50
+ border-color: var(--error, ${constants.ERROR});
51
+ }
52
+
53
+ &:has(:invalid) > span {
54
+ color: var(--error, ${constants.ERROR});
55
+ }
56
+ ` : ''}
57
+
58
+ /** Error */
59
+ ${props => props.errorText ? `
60
+ border-color: var(--error, ${constants.ERROR});
61
+
62
+ & > span {
63
+ color: var(--error, ${constants.ERROR});
64
+ }
65
+ ` : ''}
66
+
67
+ /** Required */
68
+ &:has(:required) > span:after {
69
+ content: '*';
70
+ margin-left: 2px;
71
+ color: var(--error, ${constants.ERROR});
72
+ }
73
+
74
+ & > input {
75
+ border: none;
76
+ outline: none;
77
+ width: 100%;
78
+ line-height: 30px;
79
+ min-height: 30px;
80
+ }
81
+
82
+ /** Label Animation */
83
+ & > span {
84
+ position: absolute;
85
+ padding: 0 5px;
86
+ top: 0px;
87
+ left: 4px;
88
+ font-size: 14px;
89
+ line-height: 32px;
90
+ transition: all 300ms ease;
91
+ }
92
+
93
+ &:has(:focus) > span, &:has(:placeholder-shown) > span {
94
+ top: -8px;
95
+ background: var(--background, ${constants.BACKGROUND});
96
+ font-size: 12px;
97
+ line-height: 14px;
98
+ }
99
+
100
+ ${props => props.text !== '' ? `
101
+ & > span {
102
+ top: -8px;
103
+ background: var(--background, ${constants.BACKGROUND});
104
+ font-size: 12px;
105
+ line-height: 14px;
106
+ }
107
+ ` : ''}
108
+ `;
109
+ // Error message container
110
+ const ErrorContainer = styled.div `
111
+ color: var(--error, ${constants.ERROR});
112
+ padding-top: 3px;
113
+ font-size: 12px;
114
+ line-height: 14px;
115
+ margin-left: 3px;
116
+ `;
117
+ /**
118
+ * A chip input component that allows users to add and remove chips (tags) by typing and pressing Enter.
119
+ * @component
120
+ * @example
121
+ * ```tsx
122
+ * <ChipInput
123
+ * value={['tag1', 'tag2']}
124
+ * onChange={(newTags) => console.log(newTags)}
125
+ * label="Add tags"
126
+ * errorText="At least one tag is required"
127
+ * />
128
+ * ```
129
+ */
130
+ export default function ChipInput(props) {
131
+ const [text, setText] = useState('');
132
+ const [touched, setTouched] = useState(false);
133
+ const [value, setValue] = useState(props.value);
134
+ const InputRef = React.useRef(null);
135
+ // Sync internal value with props.value
136
+ useEffect(() => {
137
+ setValue(props.value);
138
+ }, [props.value]);
139
+ /**
140
+ * Update the chip values and notify changes.
141
+ * @param newValue The new array of chip values
142
+ */
143
+ const updateValue = (newValue) => {
144
+ var _a;
145
+ const deduped = Array.from(new Set(newValue));
146
+ setValue(deduped);
147
+ (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, deduped);
148
+ };
149
+ /**
150
+ * Marks the input as touched on focus.
151
+ * @param e React focus event
152
+ */
153
+ const handleFocus = (e) => {
154
+ setTouched(true);
155
+ if (props.onFocus) {
156
+ props.onFocus(e);
157
+ }
158
+ };
159
+ /**
160
+ * Change handler for the input field.
161
+ * @param e React change event
162
+ */
163
+ const handleChange = (e) => {
164
+ setText(e.target.value);
165
+ };
166
+ /**
167
+ * Adds a new chip on Enter key press.
168
+ * @param e React keyboard event
169
+ */
170
+ const handleKeyUp = (e) => {
171
+ if (e.key === 'Enter' && text.trim() !== '') {
172
+ const newValue = [...value, text.trim()];
173
+ updateValue(newValue);
174
+ setText('');
175
+ }
176
+ };
177
+ /**
178
+ * Removes a chip from the list.
179
+ * @param chipToRemove The chip value to remove
180
+ */
181
+ const removeChip = (chipToRemove) => {
182
+ const newValue = value.filter(chip => chip !== chipToRemove);
183
+ updateValue(newValue);
184
+ };
185
+ /**
186
+ * Moves a chip from one position to another.
187
+ * @param start The starting index of the item to move
188
+ * @param end The ending index where the item should be placed
189
+ */
190
+ const onDrop = (start, end) => {
191
+ // Clone existing elements
192
+ const newItems = [...value];
193
+ // Remove the element to be moved
194
+ const item = newItems.splice(start, 1);
195
+ // Add it back at the required position
196
+ newItems.splice(end, 0, item[0]);
197
+ // Update
198
+ updateValue(newItems);
199
+ };
200
+ // Render the component
201
+ return (_jsxs(Label, { text: text, touched: touched, errorText: props.errorText, children: [_jsx("input", Object.assign({}, props, { ref: InputRef, type: "text", value: text, onChange: handleChange, onFocus: handleFocus, onKeyUp: handleKeyUp, required: props.required && value.length === 0 })), _jsx("div", { children: (value === null || value === void 0 ? void 0 : value.length) > 0 && (_jsx(DragAndDrop, { orientation: ORIENTATION.HORIZONTAL, onDrop: onDrop, children: value.map((chip) => (_jsx(Chip, { label: chip, onCloseClick: () => removeChip(chip) }, chip))) })) }), _jsx("span", { children: props.label }), props.errorText && _jsx(ErrorContainer, { children: props.errorText })] }));
202
+ }
203
+ ChipInput.propTypes = {
204
+ /** Label for the field */
205
+ label: PropTypes.string.isRequired,
206
+ /** Error message for the field */
207
+ errorText: PropTypes.string,
208
+ /** Values to display as chips */
209
+ value: PropTypes.arrayOf(PropTypes.string),
210
+ /** Callback when chips change */
211
+ onChange: PropTypes.func,
212
+ };
213
+ ChipInput.defaultProps = {
214
+ value: [],
215
+ };
216
+ //# sourceMappingURL=ChipInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChipInput.js","sourceRoot":"","sources":["../../../src/components/ChipInput/ChipInput.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAC/C,OAAO,IAAI,MAAM,cAAc,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK1D,oCAAoC;AACpC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAIxB;;;;;;;;;;4CAU0C,SAAS,CAAC,YAAY;0CACxB,SAAS,CAAC,UAAU;;;;uCAIvB,SAAS,CAAC,OAAO;qDACH,SAAS,CAAC,aAAa;;;;gCAI5C,SAAS,CAAC,OAAO;;;;;+CAKF,SAAS,CAAC,eAAe;uDACjB,SAAS,CAAC,mBAAmB;;;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,cAAE,KAAK,CAAC,SAAS,GAAkB,IACnE,CACX,CAAC;AACN,CAAC;AAED,SAAS,CAAC,SAAS,GAAG;IAClB,0BAA0B;IAC1B,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;IAClC,kCAAkC;IAClC,SAAS,EAAE,SAAS,CAAC,MAAM;IAC3B,iCAAiC;IACjC,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC;IAC1C,iCAAiC;IACjC,QAAQ,EAAE,SAAS,CAAC,IAAI;CAC3B,CAAA;AAED,SAAS,CAAC,YAAY,GAAG;IACrB,KAAK,EAAE,EAAE;CACZ,CAAC"}
@@ -0,0 +1 @@
1
+ export { default as ChipInput } from './ChipInput';
@@ -0,0 +1,2 @@
1
+ export { default as ChipInput } from './ChipInput';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ChipInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- declare type AlertOption = PropTypes.InferProps<typeof AlertDialog.propTypes>;
3
+ type AlertOption = PropTypes.InferProps<typeof AlertDialog.propTypes>;
4
4
  export default class AlertDialog extends React.Component<AlertOption> {
5
5
  private dialog;
6
6
  static propTypes: {
7
7
  /** Shown as header of the dialog */
8
8
  header: PropTypes.Requireable<string>;
9
9
  /** Rendered in the body. */
10
- body: PropTypes.Validator<PropTypes.ReactNodeLike>;
10
+ body: PropTypes.Validator<any>;
11
11
  /** Accept button text, default value is `OK` */
12
12
  buttonText: PropTypes.Requireable<string>;
13
13
  /** props for the dialog */
@@ -18,6 +18,6 @@ export default class AlertDialog extends React.Component<AlertOption> {
18
18
  };
19
19
  show: () => Promise<unknown>;
20
20
  private close;
21
- render(): JSX.Element;
21
+ render(): import("@emotion/react/jsx-runtime").JSX.Element;
22
22
  }
23
23
  export {};
@@ -1,8 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
1
2
  import React, { createRef } from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import Dialog, { DialogBody, DialogFooter, DialogHeader } from './Dialog';
4
5
  import { Button } from '../Button';
5
- export default class AlertDialog extends React.Component {
6
+ class AlertDialog extends React.Component {
6
7
  constructor() {
7
8
  super(...arguments);
8
9
  this.dialog = createRef();
@@ -15,18 +16,14 @@ export default class AlertDialog extends React.Component {
15
16
  this.close = () => this.dialog.current.close();
16
17
  }
17
18
  render() {
18
- return (React.createElement(Dialog, Object.assign({}, this.props.dialogProps, { ref: this.dialog, closeOnEsc: false, closeOnOverlayClick: false }),
19
- this.props.header && React.createElement(DialogHeader, null, this.props.header),
20
- React.createElement(DialogBody, null, this.props.body),
21
- React.createElement(DialogFooter, null,
22
- React.createElement(Button, { onClick: this.close }, this.props.buttonText))));
19
+ return (_jsxs(Dialog, Object.assign({}, this.props.dialogProps, { ref: this.dialog, closeOnEsc: false, closeOnOverlayClick: false, children: [this.props.header && _jsx(DialogHeader, { children: this.props.header }), _jsx(DialogBody, { children: this.props.body }), _jsx(DialogFooter, { children: _jsx(Button, { onClick: this.close, children: this.props.buttonText }) })] })));
23
20
  }
24
21
  }
25
22
  AlertDialog.propTypes = {
26
23
  /** Shown as header of the dialog */
27
24
  header: PropTypes.string,
28
25
  /** Rendered in the body. */
29
- body: PropTypes.node.isRequired,
26
+ body: PropTypes.any.isRequired,
30
27
  /** Accept button text, default value is `OK` */
31
28
  buttonText: PropTypes.string,
32
29
  /** props for the dialog */
@@ -35,4 +32,5 @@ AlertDialog.propTypes = {
35
32
  AlertDialog.defaultProps = {
36
33
  buttonText: 'OK'
37
34
  };
35
+ export default AlertDialog;
38
36
  //# sourceMappingURL=AlertDialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AlertDialog.js","sourceRoot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mB,EAAE,KAAK,aAC7F,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,KAAC,YAAY,cAAE,IAAI,CAAC,KAAK,CAAC,MAAM,GAAgB,EACvE,KAAC,UAAU,cAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAc,EAC1C,KAAC,YAAY,cAAC,KAAC,MAAM,IAAC,OAAO,EAAE,IAAI,CAAC,KAAK,YAAG,IAAI,CAAC,KAAK,CAAC,UAAU,GAAU,GAAe,KACrF,CACZ,CAAC;IACN,CAAC;;AAhCM,qBAAS,GAAG;IACf,oCAAoC;IACpC,MAAM,EAAE,SAAS,CAAC,MAAM;IACxB,4BAA4B;IAC5B,IAAI,EAAE,SAAS,CAAC,GAAG,CAAC,UAAU;IAC9B,gDAAgD;IAChD,UAAU,EAAE,SAAS,CAAC,MAAM;IAC5B,2BAA2B;IAC3B,WAAW,EAAE,SAAS,CAAC,MAAM;CAChC,AATe,CASf;AAEM,wBAAY,GAAG;IAClB,UAAU,EAAE,IAAI;CACnB,AAFkB,CAElB;eAhBgB,WAAW"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- declare type ConfirmOption = PropTypes.InferProps<typeof ConfirmDialog.propTypes>;
3
+ type ConfirmOption = PropTypes.InferProps<typeof ConfirmDialog.propTypes>;
4
4
  export default class ConfirmDialog extends React.Component<ConfirmOption> {
5
5
  private dialog;
6
6
  static propTypes: {
@@ -22,6 +22,6 @@ export default class ConfirmDialog extends React.Component<ConfirmOption> {
22
22
  show: () => Promise<unknown>;
23
23
  private cancel;
24
24
  private confirm;
25
- render(): JSX.Element;
25
+ render(): import("@emotion/react/jsx-runtime").JSX.Element;
26
26
  }
27
27
  export {};
@@ -1,8 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
1
2
  import React, { createRef } from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import Dialog, { DialogBody, DialogFooter, DialogHeader } from './Dialog';
4
5
  import { Button, ActionButton } from '../Button';
5
- export default class ConfirmDialog extends React.Component {
6
+ class ConfirmDialog extends React.Component {
6
7
  constructor() {
7
8
  super(...arguments);
8
9
  this.dialog = createRef();
@@ -19,12 +20,7 @@ export default class ConfirmDialog extends React.Component {
19
20
  }
20
21
  render() {
21
22
  const { header, body, yesText, noText, dialogProps } = this.props;
22
- return (React.createElement(Dialog, Object.assign({}, dialogProps, { ref: this.dialog, closeOnEsc: false, closeOnOverlayClick: false }),
23
- header && React.createElement(DialogHeader, null, header),
24
- React.createElement(DialogBody, null, body),
25
- React.createElement(DialogFooter, null,
26
- React.createElement(Button, { onClick: this.cancel }, noText),
27
- React.createElement(ActionButton, { onClick: this.confirm }, yesText))));
23
+ return (_jsxs(Dialog, Object.assign({}, dialogProps, { ref: this.dialog, closeOnEsc: false, closeOnOverlayClick: false, children: [header && _jsx(DialogHeader, { children: header }), _jsx(DialogBody, { children: body }), _jsxs(DialogFooter, { children: [_jsx(Button, { onClick: this.cancel, children: noText }), _jsx(ActionButton, { onClick: this.confirm, children: yesText })] })] })));
28
24
  }
29
25
  }
30
26
  ConfirmDialog.propTypes = {
@@ -43,4 +39,5 @@ ConfirmDialog.defaultProps = {
43
39
  yesText: 'Yes',
44
40
  noText: 'No'
45
41
  };
42
+ export default ConfirmDialog;
46
43
  //# sourceMappingURL=ConfirmDialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmDialog.js","sourceRoot":"","sources":["../../../src/components/Dialog/ConfirmDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,MAAM,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAIjD,MAAM,CAAC,OAAO,OAAO,aAAc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CAAC,CAAC;QAChD,YAAO,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAe5D,CAAC;IAbG,MAAM;QACF,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAClE,OAAO,CACH,MAAC,MAAM,oBAAK,WAAW,IAAE,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,mBAAmB,EAAE,KAAK,aACnF,MAAM,IAAI,KAAC,YAAY,cAAE,MAAM,GAAgB,EAChD,KAAC,UAAU,cAAE,IAAI,GAAc,EAC/B,MAAC,YAAY,eACT,KAAC,MAAM,IAAC,OAAO,EAAE,IAAI,CAAC,MAAM,YAAG,MAAM,GAAU,EAC/C,KAAC,YAAY,IAAC,OAAO,EAAE,IAAI,CAAC,OAAO,YAAG,OAAO,GAAgB,IAClD,KACV,CACZ,CAAA;IACL,CAAC;;AA1CM,uBAAS,GAAG;IACf,oCAAoC;IACpC,MAAM,EAAE,SAAS,CAAC,MAAM;IACxB,qCAAqC;IACrC,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;IACjC,yBAAyB;IACzB,OAAO,EAAE,SAAS,CAAC,MAAM;IACzB,yBAAyB;IACzB,MAAM,EAAE,SAAS,CAAC,MAAM;IACxB,2BAA2B;IAC3B,WAAW,EAAE,SAAS,CAAC,MAAM;CAChC,AAXe,CAWf;AAEM,0BAAY,GAAG;IAClB,OAAO,EAAE,KAAK;IACd,MAAM,EAAE,IAAI;CACf,AAHkB,CAGlB;eAnBgB,aAAa"}
@@ -1,16 +1,13 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- export declare const DialogContainer: import("@emotion/styled-base").StyledComponent<Pick<React.PropsWithChildren<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<import("../Card/Card").CardExtraProps, "elevated"> & {
4
- theme?: object;
5
- }>, "key" | "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" | "elevated" | "theme"> & {
6
- ref?: ((instance: HTMLDivElement) => void) | React.RefObject<HTMLDivElement>;
7
- }, Pick<Pick<React.PropsWithChildren<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<import("../Card/Card").CardExtraProps, "elevated"> & {
8
- theme?: object;
9
- }>, "key" | "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" | "elevated" | "theme"> & {
10
- ref?: ((instance: HTMLDivElement) => void) | React.RefObject<HTMLDivElement>;
11
- }, "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" | "elevated" | "theme">, object>;
3
+ export declare const DialogContainer: import("@emotion/styled").StyledComponent<{
4
+ theme?: import("@emotion/react").Theme;
5
+ as?: React.ElementType;
6
+ } & import("../Card/Card").CardExtraProps & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
7
+ theme?: import("@emotion/react").Theme;
8
+ }, {}, {}>;
12
9
  export { Header as DialogHeader, Body as DialogBody, Footer as DialogFooter, } from '../../shared/styles';
13
- declare type DialogOptions = PropTypes.InferProps<typeof Dialog.propTypes>;
10
+ type DialogOptions = PropTypes.InferProps<typeof Dialog.propTypes>;
14
11
  interface DialogState {
15
12
  show: boolean;
16
13
  }
@@ -34,6 +31,6 @@ declare class Dialog extends React.Component<React.PropsWithChildren<DialogOptio
34
31
  open: (closeCallback?: (resp: any) => void) => void;
35
32
  close: (resp?: any) => void;
36
33
  private closeCallback;
37
- render(): JSX.Element;
34
+ render(): import("@emotion/react/jsx-runtime").JSX.Element;
38
35
  }
39
36
  export default Dialog;
@@ -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';
@@ -67,10 +68,10 @@ class Dialog extends React.Component {
67
68
  closeCallback: this.closeCallback,
68
69
  closeOnOverlayClick,
69
70
  position: LAYER_POSITION.DIALOG,
70
- component: (React.createElement(DialogContainer, Object.assign({}, rest, { onClick: e => e.stopPropagation(), elevated: true }), children))
71
+ component: (_jsx(DialogContainer, Object.assign({}, rest, { onClick: e => e.stopPropagation(), elevated: true, children: children })))
71
72
  });
72
73
  this.closeDialog = closeFn;
73
- return React.createElement(Component, null);
74
+ return _jsx(Component, {});
74
75
  }
75
76
  else {
76
77
  return null;
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.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,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;;;;;;;;;;;;;;;;CAgB1C,CAAC;AAEF,OAAO,EACH,MAAM,IAAI,YAAY,EACtB,IAAI,IAAI,UAAU,EAClB,MAAM,IAAI,YAAY,GACzB,MAAM,qBAAqB,CAAC;AAM7B,MAAM,MAAO,SAAQ,KAAK,CAAC,SAA8D;IAAzF;;QAgBI,UAAK,GAAG;YACJ,IAAI,EAAE,KAAK;SACd,CAAA;QAMM,SAAI,GAAG,CAAC,aAAmC,EAAE,EAAE;YAClD,IAAI,CAAC,QAAQ,CAAC;gBACV,IAAI,EAAE,IAAI;aACb,CAAC,CAAC;YACH,IAAI,CAAC,SAAS,GAAG,aAAa,CAAE;QACpC,CAAC,CAAA;QAEM,UAAK,GAAG,CAAC,IAAU,EAAE,EAAE;YAC1B,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC/C,CAAC,CAAA;QAEO,kBAAa,GAAG,CAAC,IAAU,EAAE,EAAE;YACnC,IAAI,CAAC,QAAQ,CAAC;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AAC,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC;IAC9C,CAAC;IAoBD,MAAM;QACF,MAAM,KAAwD,IAAI,CAAC,KAAK,EAAlE,EAAE,UAAU,EAAE,mBAAmB,EAAE,QAAQ,OAAuB,EAAlB,IAAI,cAApD,iDAAqD,CAAa,CAAC;QAEzE,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;YAClB,MAAM,CAAC,SAAS,EAAE,OAAO,CAAE,GAAG,YAAY,CAAC,WAAW,CAAC;gBACnD,SAAS,EAAE,GAAG;gBACd,OAAO,EAAE,IAAI;gBACb,UAAU;gBACV,aAAa,EAAE,IAAI,CAAC,aAAa;gBACjC,mBAAmB;gBACnB,QAAQ,EAAE,cAAc,CAAC,MAAM;gBAC/B,SAAS,EAAE,CACP,KAAC,eAAe,oBAAK,IAAI,IAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,EAAE,QAAQ,kBACjE,QAAQ,IACK,CACrB;aACJ,CAAC,CAAC;YACH,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC;YAC3B,OAAO,KAAC,SAAS,KAAG,CAAC;QACzB,CAAC;aAAM,CAAC;YACJ,OAAO,IAAI,CAAC;QAChB,CAAC;IACL,CAAC;;AA/DM,gBAAS,GAAG;IACf,kEAAkE;IAClE,UAAU,EAAE,SAAS,CAAC,IAAI;IAC1B,6DAA6D;IAC7D,mBAAmB,EAAE,SAAS,CAAC,IAAI;CACtC,AALe,CAKf;AAEM,mBAAY,GAAG;IAClB,UAAU,EAAE,IAAI;IAChB,mBAAmB,EAAE,IAAI;CAC5B,AAHkB,CAGlB;AAwDL,eAAe,MAAM,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- declare type PromptOption = PropTypes.InferProps<typeof PromptDialog.propTypes>;
3
+ type PromptOption = PropTypes.InferProps<typeof PromptDialog.propTypes>;
4
4
  export default class PromptDialog extends React.Component<PromptOption, {
5
5
  value: string;
6
6
  }> {
@@ -31,6 +31,6 @@ export default class PromptDialog extends React.Component<PromptOption, {
31
31
  private cancel;
32
32
  private submit;
33
33
  show: () => Promise<unknown>;
34
- render(): JSX.Element;
34
+ render(): import("@emotion/react/jsx-runtime").JSX.Element;
35
35
  }
36
36
  export {};
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
1
2
  import React, { createRef } from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import styled from '@emotion/styled';
@@ -7,7 +8,7 @@ import { Input } from '../Input';
7
8
  const BodyText = styled.p `
8
9
  margin-top: 0;
9
10
  `;
10
- export default class PromptDialog extends React.Component {
11
+ class PromptDialog extends React.Component {
11
12
  constructor(props) {
12
13
  super(props);
13
14
  this.dialog = createRef();
@@ -43,16 +44,7 @@ export default class PromptDialog extends React.Component {
43
44
  }
44
45
  render() {
45
46
  const { header, body, inputProps, submitText, cancelText, dialogProps } = this.props;
46
- return (React.createElement(Dialog, Object.assign({}, dialogProps, { ref: this.dialog, closeOnEsc: false, closeOnOverlayClick: false }),
47
- React.createElement("form", { onSubmit: this.submit },
48
- header && React.createElement(DialogHeader, null, header),
49
- React.createElement(DialogBody, null,
50
- React.createElement(BodyText, null, body),
51
- React.createElement("div", { style: { display: 'flex' } },
52
- React.createElement(Input, Object.assign({ style: { width: 'auto', flex: '1' }, value: this.state.value, onChange: this.valueChange, autoFocus: true }, inputProps)))),
53
- React.createElement(DialogFooter, null,
54
- React.createElement(Button, { type: 'button', onClick: this.cancel }, cancelText),
55
- React.createElement(ActionButton, null, submitText)))));
47
+ return (_jsx(Dialog, Object.assign({}, dialogProps, { ref: this.dialog, closeOnEsc: false, closeOnOverlayClick: false, children: _jsxs("form", { onSubmit: this.submit, children: [header && _jsx(DialogHeader, { children: header }), _jsxs(DialogBody, { children: [_jsx(BodyText, { children: body }), _jsx("div", { style: { display: 'flex' }, children: _jsx(Input, Object.assign({ style: { width: 'auto', flex: '1' }, value: this.state.value, onChange: this.valueChange, autoFocus: true }, inputProps)) })] }), _jsxs(DialogFooter, { children: [_jsx(Button, { type: 'button', onClick: this.cancel, children: cancelText }), _jsx(ActionButton, { children: submitText })] })] }) })));
56
48
  }
57
49
  }
58
50
  PromptDialog.propTypes = {
@@ -76,4 +68,5 @@ PromptDialog.defaultProps = {
76
68
  submitText: 'Submit',
77
69
  defaultValue: '',
78
70
  };
71
+ export default PromptDialog;
79
72
  //# sourceMappingURL=PromptDialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PromptDialog.js","sourceRoot":"","sources":["../../../src/components/Dialog/PromptDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,MAAM,EAAE,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAIjC,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAA;;CAExB,CAAA;AAED,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK,CAAC,SAA0C;IAwBtF,YAAY,KAAmB;QAC3B,KAAK,CAAC,KAAK,CAAC,CAAC;QAMT,WAAM,GAAG,SAAS,EAAU,CAAC;QAE7B,gBAAW,GAAG,CAAC,CAAsC,EAAE,EAAE;YAC7D,IAAI,CAAC,QAAQ,CAAC;gBACV,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK;aACxB,CAAC,CAAA;QACN,CAAC,CAAA;QAEO,WAAM,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK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M;IAC5B,oDAAoD;IACpD,UAAU,EAAE,SAAS,CAAC,MAAM;IAC5B,2BAA2B;IAC3B,UAAU,EAAE,SAAS,CAAC,MAAM;IAC5B,uCAAuC;IACvC,WAAW,EAAE,SAAS,CAAC,MAAM;CAChC,AAfe,CAef;AAEM,yBAAY,GAAG;IAClB,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,QAAQ;IACpB,YAAY,EAAE,EAAE;CACnB,AAJkB,CAIlB;eAtBgB,YAAY"}
@@ -0,0 +1,45 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { ORIENTATION } from './types';
3
+ type DragAndDropProps = {
4
+ /** Orientation of the list layout */
5
+ orientation: ORIENTATION;
6
+ /** Drop event handler */
7
+ onDrop: (start: number, end: number) => void;
8
+ /** Shows drag indicator against each list item */
9
+ showIndicator: boolean;
10
+ } & PropsWithChildren<{}>;
11
+ /**
12
+ * A drag and drop container component that enables reordering of child elements.
13
+ *
14
+ * @component
15
+ * @example
16
+ * ```tsx
17
+ * <DragAndDrop
18
+ * orientation={ORIENTATION.VERTICAL}
19
+ * onDrop={(start, end) => handleReorder(start, end)}
20
+ * showIndicator={true}
21
+ * >
22
+ * <div>Item 1</div>
23
+ * <div>Item 2</div>
24
+ * <div>Item 3</div>
25
+ * </DragAndDrop>
26
+ * ```
27
+ *
28
+ * @param {DragAndDropProps} props - The component props
29
+ * @param {ORIENTATION} props.orientation - Determines the layout direction (horizontal or vertical). Defaults to VERTICAL.
30
+ * @param {(start: number, end: number) => void} props.onDrop - Callback fired when an item is dropped, receives the start and end indices
31
+ * @param {boolean} props.showIndicator - Whether to display drag indicators for each list item. Defaults to false.
32
+ * @param {React.ReactNode} props.children - Child elements to be rendered as draggable items
33
+ *
34
+ * @returns {JSX.Element} A draggable container with reorderable items
35
+ */
36
+ declare function DragAndDrop(props: DragAndDropProps): import("@emotion/react/jsx-runtime").JSX.Element;
37
+ declare namespace DragAndDrop {
38
+ var defaultProps: {
39
+ /** Orientation of the list layout */
40
+ orientation: ORIENTATION;
41
+ /** Whether to display drag indicators for each list item */
42
+ showIndicator: boolean;
43
+ };
44
+ }
45
+ export default DragAndDrop;