@dreamcommerce/aurora 3.1.29 → 3.1.31

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 (119) hide show
  1. package/README.md +0 -134
  2. package/build/cjs/packages/aurora/src/components/color_picker/color_picker.js +5 -3
  3. package/build/cjs/packages/aurora/src/components/color_picker/color_picker.js.map +1 -1
  4. package/build/cjs/packages/aurora/src/components/color_picker/components/pure_color_picker.js +5 -3
  5. package/build/cjs/packages/aurora/src/components/color_picker/components/pure_color_picker.js.map +1 -1
  6. package/build/cjs/packages/aurora/src/components/controls/color_picker_control/color_picker_control.js +4 -3
  7. package/build/cjs/packages/aurora/src/components/controls/color_picker_control/color_picker_control.js.map +1 -1
  8. package/build/cjs/packages/aurora/src/components/controls/multiselect_control/multiselect_control.js +4 -3
  9. package/build/cjs/packages/aurora/src/components/controls/multiselect_control/multiselect_control.js.map +1 -1
  10. package/build/cjs/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js +5 -3
  11. package/build/cjs/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js.map +1 -1
  12. package/build/cjs/packages/aurora/src/components/controls/select_control/select_control.js +4 -3
  13. package/build/cjs/packages/aurora/src/components/controls/select_control/select_control.js.map +1 -1
  14. package/build/cjs/packages/aurora/src/components/controls/text_area_control/text_area_control.js +4 -3
  15. package/build/cjs/packages/aurora/src/components/controls/text_area_control/text_area_control.js.map +1 -1
  16. package/build/cjs/packages/aurora/src/components/controls/values_syncer_control/values_syncer_control.js +4 -2
  17. package/build/cjs/packages/aurora/src/components/controls/values_syncer_control/values_syncer_control.js.map +1 -1
  18. package/build/cjs/packages/aurora/src/components/image_picker/image_picker.js +8 -4
  19. package/build/cjs/packages/aurora/src/components/image_picker/image_picker.js.map +1 -1
  20. package/build/cjs/packages/aurora/src/components/image_picker/image_picker_delete_button.js +3 -0
  21. package/build/cjs/packages/aurora/src/components/image_picker/image_picker_delete_button.js.map +1 -1
  22. package/build/cjs/packages/aurora/src/components/multiselect/multiselect.js +4 -3
  23. package/build/cjs/packages/aurora/src/components/multiselect/multiselect.js.map +1 -1
  24. package/build/cjs/packages/aurora/src/components/resizable/components/resizable_container.js +42 -0
  25. package/build/cjs/packages/aurora/src/components/resizable/components/resizable_container.js.map +1 -0
  26. package/build/cjs/packages/aurora/src/components/resizable/components/resizable_handle.js +39 -0
  27. package/build/cjs/packages/aurora/src/components/resizable/components/resizable_handle.js.map +1 -0
  28. package/build/cjs/packages/aurora/src/components/resizable/components/resizable_pure.js +41 -0
  29. package/build/cjs/packages/aurora/src/components/resizable/components/resizable_pure.js.map +1 -0
  30. package/build/cjs/packages/aurora/src/components/resizable/hooks/use_resizable.js +79 -0
  31. package/build/cjs/packages/aurora/src/components/resizable/hooks/use_resizable.js.map +1 -0
  32. package/build/cjs/packages/aurora/src/components/resizable/hooks/use_resizable_context.js +17 -0
  33. package/build/cjs/packages/aurora/src/components/resizable/hooks/use_resizable_context.js.map +1 -0
  34. package/build/cjs/packages/aurora/src/components/resizable/resizable.js +44 -0
  35. package/build/cjs/packages/aurora/src/components/resizable/resizable.js.map +1 -0
  36. package/build/cjs/packages/aurora/src/components/resizable/resizable_container_constants.js +21 -0
  37. package/build/cjs/packages/aurora/src/components/resizable/resizable_container_constants.js.map +1 -0
  38. package/build/cjs/packages/aurora/src/components/resizable/resizable_context.js +14 -0
  39. package/build/cjs/packages/aurora/src/components/resizable/resizable_context.js.map +1 -0
  40. package/build/cjs/packages/aurora/src/components/resizable/resizable_utils.js +37 -0
  41. package/build/cjs/packages/aurora/src/components/resizable/resizable_utils.js.map +1 -0
  42. package/build/cjs/packages/aurora/src/components/select/select.js +3 -2
  43. package/build/cjs/packages/aurora/src/components/select/select.js.map +1 -1
  44. package/build/cjs/packages/aurora/src/components/values_syncer/values_syncer.js +5 -2
  45. package/build/cjs/packages/aurora/src/components/values_syncer/values_syncer.js.map +1 -1
  46. package/build/cjs/packages/aurora/src/index.js +2 -0
  47. package/build/cjs/packages/aurora/src/index.js.map +1 -1
  48. package/build/esm/packages/aurora/src/components/color_picker/color_picker.d.ts +1 -1
  49. package/build/esm/packages/aurora/src/components/color_picker/color_picker.js +5 -3
  50. package/build/esm/packages/aurora/src/components/color_picker/color_picker.js.map +1 -1
  51. package/build/esm/packages/aurora/src/components/color_picker/components/pure_color_picker.d.ts +1 -1
  52. package/build/esm/packages/aurora/src/components/color_picker/components/pure_color_picker.js +5 -3
  53. package/build/esm/packages/aurora/src/components/color_picker/components/pure_color_picker.js.map +1 -1
  54. package/build/esm/packages/aurora/src/components/controls/color_picker_control/color_picker_control.d.ts +7 -2
  55. package/build/esm/packages/aurora/src/components/controls/color_picker_control/color_picker_control.js +4 -3
  56. package/build/esm/packages/aurora/src/components/controls/color_picker_control/color_picker_control.js.map +1 -1
  57. package/build/esm/packages/aurora/src/components/controls/multiselect_control/multiselect_control.d.ts +8 -2
  58. package/build/esm/packages/aurora/src/components/controls/multiselect_control/multiselect_control.js +4 -3
  59. package/build/esm/packages/aurora/src/components/controls/multiselect_control/multiselect_control.js.map +1 -1
  60. package/build/esm/packages/aurora/src/components/controls/radio_group_control/radio_group_control.d.ts +6 -2
  61. package/build/esm/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js +5 -3
  62. package/build/esm/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js.map +1 -1
  63. package/build/esm/packages/aurora/src/components/controls/select_control/select_control.d.ts +7 -2
  64. package/build/esm/packages/aurora/src/components/controls/select_control/select_control.js +4 -3
  65. package/build/esm/packages/aurora/src/components/controls/select_control/select_control.js.map +1 -1
  66. package/build/esm/packages/aurora/src/components/controls/text_area_control/text_area_control.d.ts +1 -1
  67. package/build/esm/packages/aurora/src/components/controls/text_area_control/text_area_control.js +4 -3
  68. package/build/esm/packages/aurora/src/components/controls/text_area_control/text_area_control.js.map +1 -1
  69. package/build/esm/packages/aurora/src/components/controls/values_syncer_control/values_syncer_control.d.ts +8 -5
  70. package/build/esm/packages/aurora/src/components/controls/values_syncer_control/values_syncer_control.js +4 -2
  71. package/build/esm/packages/aurora/src/components/controls/values_syncer_control/values_syncer_control.js.map +1 -1
  72. package/build/esm/packages/aurora/src/components/controls/xhr_image_picker_control/xhr_image_picker_control.d.ts +1 -1
  73. package/build/esm/packages/aurora/src/components/image_picker/image_picker.d.ts +1 -1
  74. package/build/esm/packages/aurora/src/components/image_picker/image_picker.js +8 -4
  75. package/build/esm/packages/aurora/src/components/image_picker/image_picker.js.map +1 -1
  76. package/build/esm/packages/aurora/src/components/image_picker/image_picker_delete_button.js +3 -0
  77. package/build/esm/packages/aurora/src/components/image_picker/image_picker_delete_button.js.map +1 -1
  78. package/build/esm/packages/aurora/src/components/multiselect/multiselect.d.ts +4 -5
  79. package/build/esm/packages/aurora/src/components/multiselect/multiselect.js +4 -3
  80. package/build/esm/packages/aurora/src/components/multiselect/multiselect.js.map +1 -1
  81. package/build/esm/packages/aurora/src/components/resizable/components/resizable_container.d.ts +3 -0
  82. package/build/esm/packages/aurora/src/components/resizable/components/resizable_container.js +34 -0
  83. package/build/esm/packages/aurora/src/components/resizable/components/resizable_container.js.map +1 -0
  84. package/build/esm/packages/aurora/src/components/resizable/components/resizable_handle.d.ts +8 -0
  85. package/build/esm/packages/aurora/src/components/resizable/components/resizable_handle.js +31 -0
  86. package/build/esm/packages/aurora/src/components/resizable/components/resizable_handle.js.map +1 -0
  87. package/build/esm/packages/aurora/src/components/resizable/components/resizable_pure.d.ts +3 -0
  88. package/build/esm/packages/aurora/src/components/resizable/components/resizable_pure.js +33 -0
  89. package/build/esm/packages/aurora/src/components/resizable/components/resizable_pure.js.map +1 -0
  90. package/build/esm/packages/aurora/src/components/resizable/hooks/use_resizable.d.ts +7 -0
  91. package/build/esm/packages/aurora/src/components/resizable/hooks/use_resizable.js +75 -0
  92. package/build/esm/packages/aurora/src/components/resizable/hooks/use_resizable.js.map +1 -0
  93. package/build/esm/packages/aurora/src/components/resizable/hooks/use_resizable_context.d.ts +2 -0
  94. package/build/esm/packages/aurora/src/components/resizable/hooks/use_resizable_context.js +13 -0
  95. package/build/esm/packages/aurora/src/components/resizable/hooks/use_resizable_context.js.map +1 -0
  96. package/build/esm/packages/aurora/src/components/resizable/resizable.d.ts +3 -0
  97. package/build/esm/packages/aurora/src/components/resizable/resizable.js +36 -0
  98. package/build/esm/packages/aurora/src/components/resizable/resizable.js.map +1 -0
  99. package/build/esm/packages/aurora/src/components/resizable/resizable_container_constants.d.ts +11 -0
  100. package/build/esm/packages/aurora/src/components/resizable/resizable_container_constants.js +14 -0
  101. package/build/esm/packages/aurora/src/components/resizable/resizable_container_constants.js.map +1 -0
  102. package/build/esm/packages/aurora/src/components/resizable/resizable_context.d.ts +3 -0
  103. package/build/esm/packages/aurora/src/components/resizable/resizable_context.js +10 -0
  104. package/build/esm/packages/aurora/src/components/resizable/resizable_context.js.map +1 -0
  105. package/build/esm/packages/aurora/src/components/resizable/resizable_utils.d.ts +5 -0
  106. package/build/esm/packages/aurora/src/components/resizable/resizable_utils.js +30 -0
  107. package/build/esm/packages/aurora/src/components/resizable/resizable_utils.js.map +1 -0
  108. package/build/esm/packages/aurora/src/components/select/select.d.ts +4 -5
  109. package/build/esm/packages/aurora/src/components/select/select.js +3 -2
  110. package/build/esm/packages/aurora/src/components/select/select.js.map +1 -1
  111. package/build/esm/packages/aurora/src/components/values_syncer/values_syncer.d.ts +1 -1
  112. package/build/esm/packages/aurora/src/components/values_syncer/values_syncer.js +5 -2
  113. package/build/esm/packages/aurora/src/components/values_syncer/values_syncer.js.map +1 -1
  114. package/build/esm/packages/aurora/src/components/xhr_image_picker/xhr_image_picker.d.ts +1 -1
  115. package/build/esm/packages/aurora/src/index.d.ts +1 -0
  116. package/build/esm/packages/aurora/src/index.js +1 -0
  117. package/build/esm/packages/aurora/src/index.js.map +1 -1
  118. package/build/index.css +1 -1
  119. package/package.json +1 -1
@@ -0,0 +1,79 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
7
+ var resizable_container_constants = require('../resizable_container_constants.js');
8
+ var resizable_utils = require('../resizable_utils.js');
9
+
10
+ var useResizable = function useResizable(name, variant, widthConfig) {
11
+ var storageKey = "sve_resizable_".concat(name, "_width");
12
+ var _useState = React.useState(false),
13
+ _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
14
+ isResizing = _useState2[0],
15
+ setIsResizing = _useState2[1];
16
+ var isResizingRef = React.useRef(false);
17
+ var resizingDirection = React.useRef(resizable_container_constants.RESIZING_DIRECTIONS.left);
18
+ var initialMouseX = React.useRef(0);
19
+ var initialWidth = React.useRef(0);
20
+ var _useState3 = React.useState(function () {
21
+ return resizable_utils.getInitialWidth(storageKey, widthConfig);
22
+ }),
23
+ _useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
24
+ width = _useState4[0],
25
+ setWidth = _useState4[1];
26
+ var widthRef = React.useRef(width);
27
+ var handleMouseMove = React.useCallback(function (e) {
28
+ if (!isResizingRef.current) return;
29
+ var direction = variant === 'horizontal' ? resizingDirection.current : variant;
30
+ var newWidth = calculateNewWidth(e.clientX, direction, widthConfig, initialMouseX.current, initialWidth.current);
31
+ widthRef.current = newWidth;
32
+ setWidth(newWidth);
33
+ }, []);
34
+ var handleMouseUp = React.useCallback(function () {
35
+ if (!isResizingRef.current) return;
36
+ isResizingRef.current = false;
37
+ setIsResizing(false);
38
+ resizable_utils.removeEventListeners({
39
+ mousemove: handleMouseMove,
40
+ mouseup: handleMouseUp
41
+ });
42
+ resizable_utils.saveWidthToStorage(storageKey, widthRef.current);
43
+ }, []);
44
+ var handleResizing = React.useCallback(function (e, direction) {
45
+ e.preventDefault();
46
+ isResizingRef.current = true;
47
+ setIsResizing(true);
48
+ resizingDirection.current = direction;
49
+ initialMouseX.current = e.clientX;
50
+ initialWidth.current = widthRef.current;
51
+ resizable_utils.addEventListeners({
52
+ mousemove: handleMouseMove,
53
+ mouseup: handleMouseUp
54
+ });
55
+ }, []);
56
+ var calculateNewWidth = function calculateNewWidth(clientX, direction, widthConfig, initialMouseX, initialWidth) {
57
+ var min = widthConfig.min,
58
+ max = widthConfig.max;
59
+ var mouseDelta = clientX - initialMouseX;
60
+ var newWidth = direction === resizable_container_constants.RESIZING_DIRECTIONS.left ? initialWidth - mouseDelta : initialWidth + mouseDelta;
61
+ return Math.min(Math.max(newWidth, min), max);
62
+ };
63
+ React.useEffect(function () {
64
+ return function () {
65
+ resizable_utils.removeEventListeners({
66
+ mousemove: handleMouseMove,
67
+ mouseup: handleMouseUp
68
+ });
69
+ };
70
+ }, []);
71
+ return {
72
+ isResizing: isResizing,
73
+ currentWidth: width,
74
+ handleResizing: handleResizing
75
+ };
76
+ };
77
+
78
+ exports.default = useResizable;
79
+ //# sourceMappingURL=use_resizable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var resizable_context = require('../resizable_context.js');
7
+
8
+ function useResizableContext() {
9
+ var context = React.useContext(resizable_context.ResizableContext);
10
+ if (!context) {
11
+ throw new Error("Resizable component cannot be rendered outside the ResizableProvider component");
12
+ }
13
+ return context;
14
+ }
15
+
16
+ exports.useResizableContext = useResizableContext;
17
+ //# sourceMappingURL=use_resizable_context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -0,0 +1,44 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var use_resizable = require('./hooks/use_resizable.js');
7
+ var resizable_context = require('./resizable_context.js');
8
+ var resizable_pure = require('./components/resizable_pure.js');
9
+
10
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
+
12
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
+
14
+ var Resizable = function Resizable(_ref) {
15
+ var name = _ref.name,
16
+ children = _ref.children,
17
+ _ref$variant = _ref.variant,
18
+ variant = _ref$variant === void 0 ? 'left' : _ref$variant,
19
+ widthConfig = _ref.widthConfig,
20
+ onResize = _ref.onResize,
21
+ className = _ref.className;
22
+ var _useResizable = use_resizable['default'](name, variant, widthConfig),
23
+ isResizing = _useResizable.isResizing,
24
+ currentWidth = _useResizable.currentWidth,
25
+ handleResizing = _useResizable.handleResizing;
26
+ var contextVal = React.useMemo(function () {
27
+ return {
28
+ isResizing: isResizing,
29
+ currentWidth: currentWidth,
30
+ handleResizing: handleResizing
31
+ };
32
+ }, [isResizing, currentWidth, handleResizing]);
33
+ return /*#__PURE__*/React__default['default'].createElement(resizable_context.ResizableContext.Provider, {
34
+ value: contextVal
35
+ }, /*#__PURE__*/React__default['default'].createElement(resizable_pure.ResizablePure, {
36
+ className: className || '',
37
+ variant: variant,
38
+ widthConfig: widthConfig,
39
+ onResize: onResize
40
+ }, children));
41
+ };
42
+
43
+ exports.Resizable = Resizable;
44
+ //# sourceMappingURL=resizable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var RESIZE_HANDLE_VARIANTS = {
6
+ left: 'left',
7
+ right: 'right',
8
+ horizontal: 'horizontal'
9
+ };
10
+ var RESIZING_DIRECTIONS = {
11
+ left: 'left',
12
+ right: 'right'
13
+ };
14
+ var HANDLE_HOVER_SPACE = 8;
15
+ var RESIZABLE_CONTAINER_RESIZER_CLASS = 'js__resizable-container-resizer';
16
+
17
+ exports.HANDLE_HOVER_SPACE = HANDLE_HOVER_SPACE;
18
+ exports.RESIZABLE_CONTAINER_RESIZER_CLASS = RESIZABLE_CONTAINER_RESIZER_CLASS;
19
+ exports.RESIZE_HANDLE_VARIANTS = RESIZE_HANDLE_VARIANTS;
20
+ exports.RESIZING_DIRECTIONS = RESIZING_DIRECTIONS;
21
+ //# sourceMappingURL=resizable_container_constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+
7
+ var ResizableContext = /*#__PURE__*/React.createContext({
8
+ isResizing: false,
9
+ currentWidth: 0,
10
+ handleResizing: function handleResizing() {}
11
+ });
12
+
13
+ exports.ResizableContext = ResizableContext;
14
+ //# sourceMappingURL=resizable_context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
6
+
7
+ var getInitialWidth = function getInitialWidth(name, widthConfig) {
8
+ if (typeof window === 'undefined' || typeof localStorage === 'undefined') return widthConfig.default;
9
+ var saved = localStorage.getItem(name);
10
+ return saved ? Number(saved) : widthConfig.default;
11
+ };
12
+ var saveWidthToStorage = function saveWidthToStorage(name, width) {
13
+ if (typeof window === 'undefined' || typeof localStorage === 'undefined') return;
14
+ localStorage.setItem(name, width.toString());
15
+ };
16
+ var addEventListeners = function addEventListeners(events) {
17
+ Object.entries(events).forEach(function (_ref) {
18
+ var _ref2 = _rollupPluginBabelHelpers.slicedToArray(_ref, 2),
19
+ eventType = _ref2[0],
20
+ handler = _ref2[1];
21
+ document.addEventListener(eventType, handler);
22
+ });
23
+ };
24
+ var removeEventListeners = function removeEventListeners(events) {
25
+ Object.entries(events).forEach(function (_ref3) {
26
+ var _ref4 = _rollupPluginBabelHelpers.slicedToArray(_ref3, 2),
27
+ eventType = _ref4[0],
28
+ handler = _ref4[1];
29
+ document.removeEventListener(eventType, handler);
30
+ });
31
+ };
32
+
33
+ exports.addEventListeners = addEventListeners;
34
+ exports.getInitialWidth = getInitialWidth;
35
+ exports.removeEventListeners = removeEventListeners;
36
+ exports.saveWidthToStorage = saveWidthToStorage;
37
+ //# sourceMappingURL=resizable_utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -16,7 +16,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
16
16
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
17
17
 
18
18
  var _excluded = ["children", "id", "value", "options", "disabled", "placeholder", "hasSearch", "searchPlaceholder", "hasClearValueButton", "innerAdditionalContent", "enableLocalSearch", "localSearchNotFoundContent", "errors", "onValueChange", "onScroll", "onSearch", "onClose", "hasError"];
19
- var Select = function Select(_ref) {
19
+ var Select = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
20
20
  var _selectedOption$value;
21
21
  var children = _ref.children,
22
22
  id = _ref.id,
@@ -74,6 +74,7 @@ var Select = function Select(_ref) {
74
74
  }, /*#__PURE__*/React__default['default'].createElement(select_trigger.SelectTrigger, {
75
75
  id: id,
76
76
  hasError: hasError || !!(errors !== null && errors !== void 0 && errors.length),
77
+ ref: ref,
77
78
  clearValueButton: value && hasClearValueButton && onValueChange && (/*#__PURE__*/React__default['default'].createElement("div", {
78
79
  onPointerDown: function onPointerDown(e) {
79
80
  return e.stopPropagation();
@@ -98,7 +99,7 @@ var Select = function Select(_ref) {
98
99
  enableLocalSearch: enableLocalSearch,
99
100
  localSearchNotFoundContent: localSearchNotFoundContent
100
101
  }));
101
- };
102
+ });
102
103
  Select.displayName = SelectPrimitive.Root.displayName;
103
104
 
104
105
  exports.Select = Select;
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -14,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
14
14
 
15
15
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
16
16
 
17
- var ValuesSyncer = function ValuesSyncer(_ref) {
17
+ var ValuesSyncerInternal = function ValuesSyncerInternal(_ref, ref) {
18
18
  var firstControl = _ref.firstControl,
19
19
  secondControl = _ref.secondControl,
20
20
  firstValue = _ref.firstValue,
@@ -94,7 +94,8 @@ var ValuesSyncer = function ValuesSyncer(_ref) {
94
94
  return /*#__PURE__*/React__default['default'].createElement(stack.Stack, {
95
95
  spacing: "3",
96
96
  align: "end",
97
- className: cn.cn('aurora-items-end', className)
97
+ className: cn.cn('aurora-items-end', className),
98
+ ref: ref
98
99
  }, firstControl(firstValue, handleFirstControlChange), /*#__PURE__*/React__default['default'].createElement("button", {
99
100
  type: "button",
100
101
  disabled: disableLockButton,
@@ -110,6 +111,8 @@ var ValuesSyncer = function ValuesSyncer(_ref) {
110
111
  color: !disableLockButton ? css_icon_color_tokens.CSS_ICON_COLOR_TOKENS_VALUES.base : css_icon_color_tokens.CSS_ICON_COLOR_TOKENS_VALUES.subtle
111
112
  }))), secondControl(secondValue, handleSecondControlChange));
112
113
  };
114
+ var ValuesSyncer = /*#__PURE__*/React__default['default'].forwardRef(ValuesSyncerInternal);
115
+ ValuesSyncer.displayName = 'ValuesSyncer';
113
116
 
114
117
  exports.ValuesSyncer = ValuesSyncer;
115
118
  //# sourceMappingURL=values_syncer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -131,6 +131,7 @@ var toast_viewport = require('./components/toast/components/toast_viewport.js');
131
131
  var anchor_presets_constants = require('./components/anchor_presets/anchor_presets_constants.js');
132
132
  var anchor_presets = require('./components/anchor_presets/anchor_presets.js');
133
133
  var anchor_presets_control = require('./components/controls/anchor_presets_control/anchor_presets_control.js');
134
+ var resizable = require('./components/resizable/resizable.js');
134
135
 
135
136
 
136
137
 
@@ -283,4 +284,5 @@ exports.ToastViewport = toast_viewport.ToastViewport;
283
284
  exports.ANCHOR_PRESETS_VALUES = anchor_presets_constants.ANCHOR_PRESETS_VALUES;
284
285
  exports.AnchorPresets = anchor_presets.AnchorPresets;
285
286
  exports.AnchorPresetsControl = anchor_presets_control.AnchorPresetsControl;
287
+ exports.Resizable = resizable.Resizable;
286
288
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { IColorPickerProps } from './color_picker_types';
3
- export declare const ColorPicker: ({ id, name, value, colorVariables, errors, onChange, onCancel, onSave, onPickShade, withGradient: isWithGradient, disabled, ...rest }: IColorPickerProps) => React.JSX.Element;
3
+ export declare const ColorPicker: React.ForwardRefExoticComponent<IColorPickerProps & React.RefAttributes<HTMLButtonElement>>;
@@ -5,7 +5,7 @@ import ColorPickerPure from './components/pure_color_picker.js';
5
5
  import useSetupColorPicker from './hooks/setup_color_picker.js';
6
6
 
7
7
  var _excluded = ["id", "name", "value", "colorVariables", "errors", "onChange", "onCancel", "onSave", "onPickShade", "withGradient", "disabled"];
8
- var ColorPicker = function ColorPicker(_ref) {
8
+ var ColorPicker = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
9
9
  var id = _ref.id,
10
10
  name = _ref.name,
11
11
  value = _ref.value,
@@ -96,9 +96,11 @@ var ColorPicker = function ColorPicker(_ref) {
96
96
  id: id,
97
97
  name: name,
98
98
  errors: errors,
99
- disabled: disabled
99
+ disabled: disabled,
100
+ ref: ref
100
101
  }, rest)));
101
- };
102
+ });
103
+ ColorPicker.displayName = 'ColorPicker';
102
104
 
103
105
  export { ColorPicker };
104
106
  //# sourceMappingURL=color_picker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,4 +1,4 @@
1
1
  import { IColorPickerPureProps } from '../color_picker_types';
2
2
  import React from 'react';
3
- declare const ColorPickerPure: React.FC<IColorPickerPureProps>;
3
+ declare const ColorPickerPure: React.ForwardRefExoticComponent<IColorPickerPureProps & React.RefAttributes<HTMLButtonElement>>;
4
4
  export default ColorPickerPure;
@@ -14,7 +14,7 @@ import { ColorPickerInput } from './color_picker_input.js';
14
14
  import { PopoverContent } from '../../popover/components/popover_content.js';
15
15
 
16
16
  var _excluded = ["id", "name", "errors", "disabled", "className", "children", "triggerClassName"];
17
- var ColorPickerPure = function ColorPickerPure(_ref) {
17
+ var ColorPickerPure = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
18
18
  var id = _ref.id,
19
19
  name = _ref.name,
20
20
  errors = _ref.errors,
@@ -53,7 +53,8 @@ var ColorPickerPure = function ColorPickerPure(_ref) {
53
53
  setIsColorPickerOpened(true);
54
54
  },
55
55
  disabled: disabled,
56
- className: cn('aurora-w-full', triggerClassName)
56
+ className: cn('aurora-w-full', triggerClassName),
57
+ ref: ref
57
58
  }, !children && (/*#__PURE__*/React__default.createElement(ColorPickerInput, {
58
59
  id: id,
59
60
  name: name,
@@ -67,7 +68,8 @@ var ColorPickerPure = function ColorPickerPure(_ref) {
67
68
  })), children), /*#__PURE__*/React__default.createElement(PopoverContent, _objectSpread2({
68
69
  className: cn('aurora-rounded-16 aurora-overflow-hidden aurora-z-[99999] js__aurora-color-picker', className)
69
70
  }, rest), /*#__PURE__*/React__default.createElement(ColorPickerContent, null))));
70
- };
71
+ });
72
+ ColorPickerPure.displayName = 'ColorPickerPure';
71
73
 
72
74
  export default ColorPickerPure;
73
75
  //# sourceMappingURL=pure_color_picker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,qFAAyF;AACxH,iCAAiC,iFAAqF;AACtH,0BAA0B,uFAA2F;AACrH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,qFAAyF;AACxH,iCAAiC,iFAAqF;AACtH,0BAA0B,uFAA2F;AACrH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,3 +1,8 @@
1
1
  import React from 'react';
2
- import { TColorPickerControlProps } from './color_picker_control_types';
3
- export declare const ColorPickerControl: React.FC<TColorPickerControlProps>;
2
+ export declare const ColorPickerControl: React.ForwardRefExoticComponent<import("../../color_picker/color_picker_types").IColorPickerProps & {
3
+ label?: React.ReactNode;
4
+ helperText?: React.ReactNode;
5
+ tooltip?: React.ReactNode;
6
+ errors?: string | string[] | undefined;
7
+ required?: boolean | undefined;
8
+ } & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & React.RefAttributes<HTMLButtonElement>>;
@@ -8,7 +8,7 @@ import { Label } from '../../label/label.js';
8
8
  import { ColorPicker } from '../../color_picker/color_picker.js';
9
9
 
10
10
  var _excluded = ["label", "tooltip", "required", "id", "name", "errors", "value", "colorVariables", "onChange", "onCancel", "onSave", "onPickShade", "withGradient", "helperText", "disabled"];
11
- var ColorPickerControl = function ColorPickerControl(_ref) {
11
+ var ColorPickerControl = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
12
12
  var label = _ref.label,
13
13
  tooltip = _ref.tooltip,
14
14
  _ref$required = _ref.required,
@@ -43,13 +43,14 @@ var ColorPickerControl = function ColorPickerControl(_ref) {
43
43
  onSave: onSave,
44
44
  onPickShade: onPickShade,
45
45
  withGradient: withGradient,
46
- disabled: disabled
46
+ disabled: disabled,
47
+ ref: ref
47
48
  }, rest)), helperText ? /*#__PURE__*/React__default.createElement(HelperText, {
48
49
  color: disabled ? CSS_TEXT_COLOR_TOKENS.subtleLight : undefined
49
50
  }, helperText) : null, errors ? /*#__PURE__*/React__default.createElement(ErrorList, {
50
51
  errors: errors
51
52
  }) : null);
52
- };
53
+ });
53
54
  ColorPickerControl.displayName = 'ColorPickerControl';
54
55
 
55
56
  export { ColorPickerControl };
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,3 +1,9 @@
1
1
  import React from 'react';
2
- import { TMultiSelectControlProps } from './multiselect_control_types';
3
- export declare const MultiSelectControl: React.FC<TMultiSelectControlProps>;
2
+ export declare const MultiSelectControl: React.ForwardRefExoticComponent<import("../../multiselect/multiselect_types").TMultiSelectProps & {
3
+ id: string;
4
+ label?: React.ReactNode;
5
+ helperText?: React.ReactNode;
6
+ tooltip?: React.ReactNode;
7
+ errors?: string | string[] | undefined;
8
+ required?: boolean | undefined;
9
+ } & React.RefAttributes<HTMLButtonElement>>;
@@ -8,7 +8,7 @@ import { Label } from '../../label/label.js';
8
8
  import { MultiSelect } from '../../multiselect/multiselect.js';
9
9
 
10
10
  var _excluded = ["id", "options", "placeholder", "disabled", "label", "helperText", "tooltip", "errors", "onValueChange", "required"];
11
- var MultiSelectControl = function MultiSelectControl(_ref) {
11
+ var MultiSelectControl = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
12
12
  var id = _ref.id,
13
13
  options = _ref.options,
14
14
  placeholder = _ref.placeholder,
@@ -33,13 +33,14 @@ var MultiSelectControl = function MultiSelectControl(_ref) {
33
33
  placeholder: placeholder,
34
34
  disabled: disabled,
35
35
  onValueChange: onValueChange,
36
- errors: errors
36
+ errors: errors,
37
+ ref: ref
37
38
  }, props)), helperText ? /*#__PURE__*/React__default.createElement(HelperText, {
38
39
  color: disabled ? CSS_TEXT_COLOR_TOKENS.subtleLight : undefined
39
40
  }, helperText) : null, errors ? /*#__PURE__*/React__default.createElement(ErrorList, {
40
41
  errors: errors
41
42
  }) : null);
42
- };
43
+ });
43
44
  MultiSelectControl.displayName = 'MultiSelectControl';
44
45
 
45
46
  export { MultiSelectControl };
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
- import { TRadioGroupControlProps } from './radio_group_control_types';
3
- export declare const RadioGroupControl: React.FC<TRadioGroupControlProps>;
2
+ export declare const RadioGroupControl: React.ForwardRefExoticComponent<import("../../radio_group/radio_group_types").TRadioGroupProps & {
3
+ items: import("../../radio_group/radio_group_types").TRadioGroupItemProps[];
4
+ label?: React.ReactNode;
5
+ tooltip?: React.ReactNode;
6
+ helperText?: React.ReactNode;
7
+ } & React.RefAttributes<HTMLDivElement>>;
@@ -10,7 +10,7 @@ import { RadioGroup } from '../../radio_group/radio_group.js';
10
10
  import { RadioGroupItem } from '../../radio_group/components/radio_group_item.js';
11
11
 
12
12
  var _excluded = ["id", "name", "items", "label", "value", "defaultValue", "tooltip", "helperText", "errors", "disabled", "required", "onValueChange"];
13
- var RadioGroupControl = function RadioGroupControl(_ref) {
13
+ var RadioGroupControl = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
14
14
  var id = _ref.id,
15
15
  name = _ref.name,
16
16
  items = _ref.items,
@@ -46,7 +46,8 @@ var RadioGroupControl = function RadioGroupControl(_ref) {
46
46
  defaultValue: defaultValue,
47
47
  disabled: disabled,
48
48
  required: required,
49
- onValueChange: onValueChange
49
+ onValueChange: onValueChange,
50
+ ref: ref
50
51
  }, rest), items.map(function (item) {
51
52
  return /*#__PURE__*/React__default.createElement(RadioGroupItem, {
52
53
  key: "radio-button-".concat(item.value),
@@ -61,7 +62,8 @@ var RadioGroupControl = function RadioGroupControl(_ref) {
61
62
  })), errors ? /*#__PURE__*/React__default.createElement(ErrorList, {
62
63
  errors: errors
63
64
  }) : null);
64
- };
65
+ });
66
+ RadioGroupControl.displayName = 'RadioGroupControl';
65
67
 
66
68
  export { RadioGroupControl };
67
69
  //# sourceMappingURL=radio_group_control.js.map
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,3 +1,8 @@
1
1
  import React from 'react';
2
- import { TSelectControlProps } from './select_control_types';
3
- export declare const SelectControl: React.FC<TSelectControlProps>;
2
+ export declare const SelectControl: React.ForwardRefExoticComponent<import("../../select/select_types").TSelectProps & {
3
+ label?: React.ReactNode;
4
+ helperText?: React.ReactNode;
5
+ tooltip?: React.ReactNode;
6
+ errors?: string | string[] | undefined;
7
+ required?: boolean | undefined;
8
+ } & React.RefAttributes<HTMLButtonElement>>;
@@ -8,7 +8,7 @@ import { Label } from '../../label/label.js';
8
8
  import { Select } from '../../select/select.js';
9
9
 
10
10
  var _excluded = ["options", "id", "name", "label", "helperText", "tooltip", "placeholder", "searchPlaceholder", "hasSearch", "hasClearValueButton", "errors", "disabled", "value", "onValueChange", "onScroll", "innerAdditionalContent", "required"];
11
- var SelectControl = function SelectControl(_ref) {
11
+ var SelectControl = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
12
12
  var options = _ref.options,
13
13
  id = _ref.id,
14
14
  name = _ref.name,
@@ -46,13 +46,14 @@ var SelectControl = function SelectControl(_ref) {
46
46
  errors: errors,
47
47
  value: value,
48
48
  onValueChange: onValueChange,
49
- onScroll: onScroll
49
+ onScroll: onScroll,
50
+ ref: ref
50
51
  }, props)), helperText ? /*#__PURE__*/React__default.createElement(HelperText, {
51
52
  color: disabled ? CSS_TEXT_COLOR_TOKENS.subtleLight : undefined
52
53
  }, helperText) : null, errors ? /*#__PURE__*/React__default.createElement(ErrorList, {
53
54
  errors: errors
54
55
  }) : null);
55
- };
56
+ });
56
57
  SelectControl.displayName = 'SelectControl';
57
58
 
58
59
  export { SelectControl };
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { TTextAreaControlProps } from './text_area_control_types';
3
- export declare const TextAreaControl: React.FC<TTextAreaControlProps>;
3
+ export declare const TextAreaControl: React.ForwardRefExoticComponent<TTextAreaControlProps & React.RefAttributes<HTMLTextAreaElement>>;
@@ -8,7 +8,7 @@ import { Label } from '../../label/label.js';
8
8
  import { TextArea } from '../../text_area/text_area.js';
9
9
 
10
10
  var _excluded = ["id", "name", "label", "errors", "placeholder", "disabled", "readOnly", "value", "helperText", "required", "tooltip", "onChange"];
11
- var TextAreaControl = function TextAreaControl(_ref) {
11
+ var TextAreaControl = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
12
12
  var id = _ref.id,
13
13
  name = _ref.name,
14
14
  label = _ref.label,
@@ -38,13 +38,14 @@ var TextAreaControl = function TextAreaControl(_ref) {
38
38
  disabled: disabled,
39
39
  readOnly: readOnly,
40
40
  errors: errors,
41
- onChange: onChange
41
+ onChange: onChange,
42
+ ref: ref
42
43
  }, props)), helperText ? /*#__PURE__*/React__default.createElement(HelperText, {
43
44
  color: disabled ? CSS_TEXT_COLOR_TOKENS.subtleLight : undefined
44
45
  }, helperText) : null, errors ? /*#__PURE__*/React__default.createElement(ErrorList, {
45
46
  errors: errors
46
47
  }) : null);
47
- };
48
+ });
48
49
  TextAreaControl.displayName = 'TextAreaControl';
49
50
 
50
51
  export { TextAreaControl };