@dreamcommerce/aurora 3.0.0-66 → 3.0.0-68
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.
- package/build/cjs/external/@radix-ui/react-radio-group/dist/index.mjs.js +4 -0
- package/build/cjs/external/@radix-ui/react-radio-group/dist/index.mjs.js.map +1 -1
- package/build/cjs/packages/aurora/src/assets/icons/circle_icon.js +10 -0
- package/build/cjs/packages/aurora/src/assets/icons/circle_icon.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/accordion/accordion.js +4 -4
- package/build/cjs/packages/aurora/src/components/accordion/accordion_constants.js +2 -2
- package/build/cjs/packages/aurora/src/components/accordion/components/accordion_trigger.js +1 -1
- package/build/cjs/packages/aurora/src/components/accordion/context/accordion_context.js +1 -1
- package/build/cjs/packages/aurora/src/components/color_picker/color_picker.js +2 -2
- package/build/cjs/packages/aurora/src/components/controls/checkbox_control/checkbox_control.js +59 -0
- package/build/cjs/packages/aurora/src/components/controls/checkbox_control/checkbox_control.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/controls/color_picker_control/color_picker_control.js +1 -1
- package/build/cjs/packages/aurora/src/components/controls/controls_group/controls_group.js +21 -0
- package/build/cjs/packages/aurora/src/components/controls/controls_group/controls_group.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js +71 -0
- package/build/cjs/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/controls/select_control/select_control.js +63 -0
- package/build/cjs/packages/aurora/src/components/controls/select_control/select_control.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/controls/text_area_control/text_area_control.js +60 -0
- package/build/cjs/packages/aurora/src/components/controls/text_area_control/text_area_control.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/radio_group/components/radio_group_item.js +53 -0
- package/build/cjs/packages/aurora/src/components/radio_group/components/radio_group_item.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/text_area/text_area.js +49 -0
- package/build/cjs/packages/aurora/src/components/text_area/text_area.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/text_area/text_area_variants.js +10 -0
- package/build/cjs/packages/aurora/src/components/text_area/text_area_variants.js.map +1 -0
- package/build/cjs/packages/aurora/src/index.js +14 -2
- package/build/cjs/packages/aurora/src/index.js.map +1 -1
- package/build/esm/external/@radix-ui/react-radio-group/dist/index.mjs.js +3 -1
- package/build/esm/external/@radix-ui/react-radio-group/dist/index.mjs.js.map +1 -1
- package/build/esm/packages/aurora/src/assets/icons/circle_icon.js +5 -2
- package/build/esm/packages/aurora/src/assets/icons/circle_icon.js.map +1 -1
- package/build/esm/packages/aurora/src/components/accordion/accordion.js +5 -5
- package/build/esm/packages/aurora/src/components/accordion/accordion_constants.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/accordion/accordion_constants.js +2 -2
- package/build/esm/packages/aurora/src/components/accordion/accordion_types.d.ts +4 -4
- package/build/esm/packages/aurora/src/components/accordion/accordion_types.js.map +1 -1
- package/build/esm/packages/aurora/src/components/accordion/components/accordion_trigger.js +2 -2
- package/build/esm/packages/aurora/src/components/accordion/context/accordion_context.js +2 -2
- package/build/esm/packages/aurora/src/components/color_picker/color_picker.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/color_picker/color_picker.js +2 -2
- package/build/esm/packages/aurora/src/components/controls/checkbox_control/checkbox_control.js +51 -15
- package/build/esm/packages/aurora/src/components/controls/checkbox_control/checkbox_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/color_picker_control/color_picker_control.js +2 -2
- package/build/esm/packages/aurora/src/components/controls/controls_group/controls_group.js +12 -6
- package/build/esm/packages/aurora/src/components/controls/controls_group/controls_group.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js +63 -17
- package/build/esm/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/select_control/select_control.js +54 -14
- package/build/esm/packages/aurora/src/components/controls/select_control/select_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/text_area_control/text_area_control.js +50 -15
- package/build/esm/packages/aurora/src/components/controls/text_area_control/text_area_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/radio_group/components/radio_group_item.js +48 -20
- package/build/esm/packages/aurora/src/components/radio_group/components/radio_group_item.js.map +1 -1
- package/build/esm/packages/aurora/src/components/text_area/text_area.js +40 -6
- package/build/esm/packages/aurora/src/components/text_area/text_area.js.map +1 -1
- package/build/esm/packages/aurora/src/components/text_area/text_area_variants.js +6 -3
- package/build/esm/packages/aurora/src/components/text_area/text_area_variants.js.map +1 -1
- package/build/esm/packages/aurora/src/index.d.ts +8 -2
- package/build/esm/packages/aurora/src/index.js +8 -2
- package/build/esm/packages/aurora/src/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { forwardRef, createElement } from 'react';
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
3
|
import { Root } from '@radix-ui/react-accordion';
|
|
4
|
-
import {
|
|
4
|
+
import { ACCORDION_SIZES } from './accordion_constants.js';
|
|
5
5
|
import { AccordionContext } from './context/accordion_context.js';
|
|
6
6
|
|
|
7
|
-
var _excluded = ["className", "children", "
|
|
7
|
+
var _excluded = ["className", "children", "size"];
|
|
8
8
|
var Accordion = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
9
9
|
var className = _ref.className,
|
|
10
10
|
children = _ref.children,
|
|
11
|
-
_ref$
|
|
12
|
-
|
|
11
|
+
_ref$size = _ref.size,
|
|
12
|
+
size = _ref$size === void 0 ? ACCORDION_SIZES.default : _ref$size,
|
|
13
13
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
14
14
|
return /*#__PURE__*/createElement(Root, _objectSpread2({
|
|
15
15
|
ref: ref,
|
|
16
16
|
className: "aurora-group aurora-block aurora-w-full"
|
|
17
17
|
}, props), /*#__PURE__*/createElement(AccordionContext.Provider, {
|
|
18
18
|
value: {
|
|
19
|
-
|
|
19
|
+
size: size
|
|
20
20
|
}
|
|
21
21
|
}, children));
|
|
22
22
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { TCssBackgroundTokens, TCssBorderStyleTokens, TCssIconColorTokens } from "../../constants/css_tokens/css_tokens_types";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
4
|
-
import {
|
|
4
|
+
import { ACCORDION_SIZES } from "./accordion_constants";
|
|
5
5
|
import { Any } from 'ts-toolbelt';
|
|
6
|
-
export declare type
|
|
6
|
+
export declare type TAccordionSize = Any.Keys<typeof ACCORDION_SIZES>;
|
|
7
7
|
export declare type TAccordionContext = {
|
|
8
|
-
|
|
8
|
+
size: TAccordionSize;
|
|
9
9
|
};
|
|
10
10
|
export declare type TAccordionTriggerProps = {
|
|
11
11
|
backgroundColor?: TCssBackgroundTokens;
|
|
@@ -14,5 +14,5 @@ export declare type TAccordionTriggerProps = {
|
|
|
14
14
|
icon?: React.ReactNode;
|
|
15
15
|
} & React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>;
|
|
16
16
|
export declare type TAccordionProps = {
|
|
17
|
-
|
|
17
|
+
size?: TAccordionSize;
|
|
18
18
|
} & React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion_types.js","sourceRoot":"","sources":["../../../../../../../src/components/accordion/accordion_types.ts"],"names":[],"mappings":"AAAA,OAAiF,8CAA8C,CAAC;AAChI,OAAuB,OAAO,CAAC;AAC/B,OAAoC,2BAA2B,CAAC;AAChE,
|
|
1
|
+
{"version":3,"file":"accordion_types.js","sourceRoot":"","sources":["../../../../../../../src/components/accordion/accordion_types.ts"],"names":[],"mappings":"AAAA,OAAiF,8CAA8C,CAAC;AAChI,OAAuB,OAAO,CAAC;AAC/B,OAAoC,2BAA2B,CAAC;AAChE,OAAgC,iDAAiD,CAAC;AAClF,OAAoB,aAAa,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { forwardRef, useContext, createElement } from 'react';
|
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, defineProperty as _defineProperty, objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
3
|
import { Header, Trigger } from '@radix-ui/react-accordion';
|
|
4
4
|
import { CSS_ICON_COLOR_TOKENS_VALUES } from '../../../constants/css_tokens/css_icon_color_tokens.js';
|
|
5
|
-
import {
|
|
5
|
+
import { ACCORDION_SIZES } from '../accordion_constants.js';
|
|
6
6
|
import { AccordionContext } from '../context/accordion_context.js';
|
|
7
7
|
import { cn } from '../../../utilities/cn.js';
|
|
8
8
|
import { ArrowRightIcon } from '../../../assets/icons/arrow_right.js';
|
|
@@ -25,7 +25,7 @@ var AccordionTrigger = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
25
25
|
className: cn('aurora-flex aurora-items-center aurora-gap-2 aurora-py-2 aurora-pl-1.5 aurora-pr-4 aurora-text aurora-font-semibold aurora-transition-all [&[data-state=open]>svg]:aurora-rotate-90', _defineProperty({}, 'aurora-bg', !backgroundColor), className)
|
|
26
26
|
}, props), icon ? icon : (/*#__PURE__*/createElement(ArrowRightIcon, {
|
|
27
27
|
color: CSS_ICON_COLOR_TOKENS_VALUES[iconColor],
|
|
28
|
-
size: accordionContext.
|
|
28
|
+
size: accordionContext.size === ACCORDION_SIZES.default ? 24 : 20,
|
|
29
29
|
className: cn('aurora-shrink-0 aurora-text-muted-foreground aurora-transition-transform aurora-duration-200')
|
|
30
30
|
})), children));
|
|
31
31
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ACCORDION_SIZES } from '../accordion_constants.js';
|
|
3
3
|
|
|
4
4
|
var AccordionContext = /*#__PURE__*/React__default.createContext({
|
|
5
|
-
|
|
5
|
+
size: ACCORDION_SIZES.default
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
export { AccordionContext };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IColorPickerProps } from './color_picker_types';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const ColorPicker: ({ id, name, initialColor, colorVariables, errors, onChange, onCancel, onSave, withGradient: isWithGradient }: IColorPickerProps) => React.JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { ColorPickerContext } from './color_picker_context.js';
|
|
|
3
3
|
import ColorPickerPure from './components/pure_color_picker.js';
|
|
4
4
|
import useSetupColorPicker from './hooks/setup_color_piceker.js';
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var ColorPicker = function ColorPicker(_ref) {
|
|
7
7
|
var id = _ref.id,
|
|
8
8
|
name = _ref.name,
|
|
9
9
|
initialColor = _ref.initialColor,
|
|
@@ -80,5 +80,5 @@ var ColorPickerWithContext = function ColorPickerWithContext(_ref) {
|
|
|
80
80
|
}));
|
|
81
81
|
};
|
|
82
82
|
|
|
83
|
-
export {
|
|
83
|
+
export { ColorPicker };
|
|
84
84
|
//# sourceMappingURL=color_picker.js.map
|
package/build/esm/packages/aurora/src/components/controls/checkbox_control/checkbox_control.js
CHANGED
|
@@ -1,15 +1,51 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { HelperText } from '
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import '
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
+
import { Label } from '../../label/label.js';
|
|
4
|
+
import { HelperText } from '../../helper_text/helper_text.js';
|
|
5
|
+
import { ErrorList } from '../../error_list/error_list.js';
|
|
6
|
+
import { Control } from '../../control/control.js';
|
|
7
|
+
import { Checkbox } from '../../checkbox/checkbox.js';
|
|
8
|
+
|
|
9
|
+
var _excluded = ["id", "name", "label", "value", "tooltip", "helperText", "errors", "checked", "disabled", "required", "onCheckedChange"];
|
|
10
|
+
var CheckboxControl = function CheckboxControl(_ref) {
|
|
11
|
+
var id = _ref.id,
|
|
12
|
+
name = _ref.name,
|
|
13
|
+
label = _ref.label,
|
|
14
|
+
value = _ref.value,
|
|
15
|
+
tooltip = _ref.tooltip,
|
|
16
|
+
helperText = _ref.helperText,
|
|
17
|
+
errors = _ref.errors,
|
|
18
|
+
_ref$checked = _ref.checked,
|
|
19
|
+
checked = _ref$checked === void 0 ? false : _ref$checked,
|
|
20
|
+
_ref$disabled = _ref.disabled,
|
|
21
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
22
|
+
_ref$required = _ref.required,
|
|
23
|
+
required = _ref$required === void 0 ? false : _ref$required,
|
|
24
|
+
onCheckedChange = _ref.onCheckedChange,
|
|
25
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
26
|
+
return /*#__PURE__*/React__default.createElement(Control, null, /*#__PURE__*/React__default.createElement(Checkbox, _objectSpread2({
|
|
27
|
+
id: id,
|
|
28
|
+
name: name,
|
|
29
|
+
value: value,
|
|
30
|
+
checked: checked,
|
|
31
|
+
onCheckedChange: onCheckedChange,
|
|
32
|
+
required: required,
|
|
33
|
+
disabled: disabled,
|
|
34
|
+
errors: errors
|
|
35
|
+
}, rest)), /*#__PURE__*/React__default.createElement("div", {
|
|
36
|
+
className: "aurora-ml-2 aurora-flex aurora-flex-col aurora-gap-1"
|
|
37
|
+
}, label && (/*#__PURE__*/React__default.createElement("div", {
|
|
38
|
+
className: "aurora-mb-1"
|
|
39
|
+
}, /*#__PURE__*/React__default.createElement(Label, {
|
|
40
|
+
htmlFor: id,
|
|
41
|
+
required: required,
|
|
42
|
+
disabled: disabled,
|
|
43
|
+
tooltip: tooltip,
|
|
44
|
+
className: "aurora-text"
|
|
45
|
+
}, label))), helperText && /*#__PURE__*/React__default.createElement(HelperText, null, helperText), errors && /*#__PURE__*/React__default.createElement(ErrorList, {
|
|
46
|
+
errors: errors
|
|
47
|
+
})));
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export { CheckboxControl };
|
|
51
|
+
//# sourceMappingURL=checkbox_control.js.map
|
package/build/esm/packages/aurora/src/components/controls/checkbox_control/checkbox_control.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":
|
|
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;"}
|
|
@@ -3,7 +3,7 @@ import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _
|
|
|
3
3
|
import { Label } from '../../label/label.js';
|
|
4
4
|
import { ErrorList } from '../../error_list/error_list.js';
|
|
5
5
|
import { Control } from '../../control/control.js';
|
|
6
|
-
import {
|
|
6
|
+
import { ColorPicker } from '../../color_picker/color_picker.js';
|
|
7
7
|
|
|
8
8
|
var _excluded = ["label", "tooltip", "required", "id", "name", "errors", "initialColor", "colorVariables", "onChange", "onCancel", "onSave", "withGradient"];
|
|
9
9
|
var ColorPickerControl = function ColorPickerControl(_ref) {
|
|
@@ -28,7 +28,7 @@ var ColorPickerControl = function ColorPickerControl(_ref) {
|
|
|
28
28
|
tooltip: tooltip,
|
|
29
29
|
required: required,
|
|
30
30
|
className: "aurora-pb-1 aurora-text"
|
|
31
|
-
}, label)), /*#__PURE__*/React__default.createElement(
|
|
31
|
+
}, label)), /*#__PURE__*/React__default.createElement(ColorPicker, _objectSpread2({
|
|
32
32
|
id: id,
|
|
33
33
|
name: name,
|
|
34
34
|
initialColor: initialColor,
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import { Stack } from '
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Stack } from '../../stack/stack.js';
|
|
3
|
+
|
|
4
|
+
var ControlsGroup = function ControlsGroup(_ref) {
|
|
5
|
+
var children = _ref.children;
|
|
6
|
+
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
7
|
+
spacing: "4",
|
|
8
|
+
direction: "column"
|
|
9
|
+
}, children);
|
|
6
10
|
};
|
|
7
|
-
|
|
11
|
+
|
|
12
|
+
export { ControlsGroup };
|
|
13
|
+
//# sourceMappingURL=controls_group.js.map
|
package/build/esm/packages/aurora/src/components/controls/controls_group/controls_group.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/build/esm/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js
CHANGED
|
@@ -1,17 +1,63 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import '
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
+
import { Label } from '../../label/label.js';
|
|
4
|
+
import { HelperText } from '../../helper_text/helper_text.js';
|
|
5
|
+
import { ErrorList } from '../../error_list/error_list.js';
|
|
6
|
+
import { Control } from '../../control/control.js';
|
|
7
|
+
import { RadioGroup } from '../../radio_group/radio_group.js';
|
|
8
|
+
import { RadioGroupItem } from '../../radio_group/components/radio_group_item.js';
|
|
9
|
+
|
|
10
|
+
var _excluded = ["id", "name", "items", "label", "value", "defaultValue", "tooltip", "helperText", "errors", "disabled", "required", "onValueChange"];
|
|
11
|
+
var RadioGroupControl = function RadioGroupControl(_ref) {
|
|
12
|
+
var id = _ref.id,
|
|
13
|
+
name = _ref.name,
|
|
14
|
+
items = _ref.items,
|
|
15
|
+
label = _ref.label,
|
|
16
|
+
value = _ref.value,
|
|
17
|
+
defaultValue = _ref.defaultValue,
|
|
18
|
+
tooltip = _ref.tooltip,
|
|
19
|
+
helperText = _ref.helperText,
|
|
20
|
+
errors = _ref.errors,
|
|
21
|
+
_ref$disabled = _ref.disabled,
|
|
22
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
23
|
+
_ref$required = _ref.required,
|
|
24
|
+
required = _ref$required === void 0 ? false : _ref$required,
|
|
25
|
+
onValueChange = _ref.onValueChange,
|
|
26
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
27
|
+
return /*#__PURE__*/React__default.createElement(Control, {
|
|
28
|
+
classname: "aurora-flex-col"
|
|
29
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
30
|
+
className: "aurora-flex aurora-flex-col aurora-gap-2 aurora-mb-2"
|
|
31
|
+
}, label && (/*#__PURE__*/React__default.createElement(Label, {
|
|
32
|
+
htmlFor: id,
|
|
33
|
+
required: required,
|
|
34
|
+
disabled: disabled,
|
|
35
|
+
tooltip: tooltip,
|
|
36
|
+
className: "aurora-text"
|
|
37
|
+
}, label)), helperText && /*#__PURE__*/React__default.createElement(HelperText, null, helperText)), /*#__PURE__*/React__default.createElement(RadioGroup, _objectSpread2({
|
|
38
|
+
id: id,
|
|
39
|
+
name: name,
|
|
40
|
+
value: value,
|
|
41
|
+
defaultValue: defaultValue,
|
|
42
|
+
disabled: disabled,
|
|
43
|
+
required: required,
|
|
44
|
+
onValueChange: onValueChange
|
|
45
|
+
}, rest), items.map(function (item) {
|
|
46
|
+
return /*#__PURE__*/React__default.createElement(RadioGroupItem, {
|
|
47
|
+
key: "radio-button-".concat(value),
|
|
48
|
+
value: item.value,
|
|
49
|
+
id: item.id,
|
|
50
|
+
errors: !!errors,
|
|
51
|
+
required: required,
|
|
52
|
+
disabled: disabled,
|
|
53
|
+
label: item.label,
|
|
54
|
+
helperText: item.helperText,
|
|
55
|
+
tooltip: item.tooltip
|
|
56
|
+
});
|
|
57
|
+
})), /*#__PURE__*/React__default.createElement("div", null, errors && /*#__PURE__*/React__default.createElement(ErrorList, {
|
|
58
|
+
errors: errors
|
|
59
|
+
})));
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export { RadioGroupControl };
|
|
63
|
+
//# sourceMappingURL=radio_group_control.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":
|
|
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;"}
|
|
@@ -1,15 +1,55 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import '
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
+
import { Label } from '../../label/label.js';
|
|
4
|
+
import { HelperText } from '../../helper_text/helper_text.js';
|
|
5
|
+
import { ErrorList } from '../../error_list/error_list.js';
|
|
6
|
+
import { Control } from '../../control/control.js';
|
|
7
|
+
import { Select } from '../../select/select.js';
|
|
8
|
+
|
|
9
|
+
var _excluded = ["options", "id", "name", "label", "helperText", "tooltip", "placeholder", "searchPlaceholder", "hasSearch", "hasClearValueButton", "errors", "disabled", "defaultValue", "onValueChange", "innerAdditionalContent"];
|
|
10
|
+
var SelectControl = function SelectControl(_ref) {
|
|
11
|
+
var options = _ref.options,
|
|
12
|
+
id = _ref.id,
|
|
13
|
+
name = _ref.name,
|
|
14
|
+
label = _ref.label,
|
|
15
|
+
helperText = _ref.helperText,
|
|
16
|
+
tooltip = _ref.tooltip,
|
|
17
|
+
placeholder = _ref.placeholder,
|
|
18
|
+
searchPlaceholder = _ref.searchPlaceholder,
|
|
19
|
+
hasSearch = _ref.hasSearch,
|
|
20
|
+
hasClearValueButton = _ref.hasClearValueButton,
|
|
21
|
+
errors = _ref.errors,
|
|
22
|
+
disabled = _ref.disabled,
|
|
23
|
+
defaultValue = _ref.defaultValue,
|
|
24
|
+
onValueChange = _ref.onValueChange,
|
|
25
|
+
innerAdditionalContent = _ref.innerAdditionalContent,
|
|
26
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
27
|
+
return /*#__PURE__*/React__default.createElement(Control, {
|
|
28
|
+
classname: "aurora-flex-col"
|
|
29
|
+
}, label && (/*#__PURE__*/React__default.createElement("div", {
|
|
30
|
+
className: "aurora-mb-1"
|
|
31
|
+
}, /*#__PURE__*/React__default.createElement(Label, {
|
|
32
|
+
htmlFor: id,
|
|
33
|
+
tooltip: tooltip,
|
|
34
|
+
className: "aurora-text"
|
|
35
|
+
}, label))), /*#__PURE__*/React__default.createElement(Select, _objectSpread2({
|
|
36
|
+
id: id,
|
|
37
|
+
name: name,
|
|
38
|
+
defaultValue: defaultValue,
|
|
39
|
+
options: options,
|
|
40
|
+
disabled: disabled,
|
|
41
|
+
placeholder: placeholder,
|
|
42
|
+
hasSearch: hasSearch,
|
|
43
|
+
searchPlaceholder: searchPlaceholder,
|
|
44
|
+
innerAdditionalContent: innerAdditionalContent,
|
|
45
|
+
hasClearValueButton: hasClearValueButton,
|
|
46
|
+
hasError: !!errors,
|
|
47
|
+
onValueChange: onValueChange
|
|
48
|
+
}, props)), helperText && /*#__PURE__*/React__default.createElement(HelperText, null, helperText), errors && /*#__PURE__*/React__default.createElement(ErrorList, {
|
|
49
|
+
errors: errors
|
|
50
|
+
}));
|
|
51
|
+
};
|
|
14
52
|
SelectControl.displayName = 'SelectControl';
|
|
15
|
-
|
|
53
|
+
|
|
54
|
+
export { SelectControl };
|
|
55
|
+
//# sourceMappingURL=select_control.js.map
|
package/build/esm/packages/aurora/src/components/controls/select_control/select_control.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":
|
|
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;"}
|
package/build/esm/packages/aurora/src/components/controls/text_area_control/text_area_control.js
CHANGED
|
@@ -1,17 +1,52 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import '
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
+
import { Label } from '../../label/label.js';
|
|
4
|
+
import classnames from '../../../../../../external/classnames/index.js';
|
|
5
|
+
import { HelperText } from '../../helper_text/helper_text.js';
|
|
6
|
+
import { ErrorList } from '../../error_list/error_list.js';
|
|
7
|
+
import { Control } from '../../control/control.js';
|
|
8
|
+
import { TextArea } from '../../text_area/text_area.js';
|
|
9
|
+
|
|
10
|
+
var _excluded = ["id", "name", "label", "errors", "placeholder", "disabled", "readOnly", "value", "defaultValue", "helperText", "required", "tooltip", "onChange"];
|
|
11
|
+
var TextAreaControl = function TextAreaControl(_ref) {
|
|
12
|
+
var id = _ref.id,
|
|
13
|
+
name = _ref.name,
|
|
14
|
+
label = _ref.label,
|
|
15
|
+
errors = _ref.errors,
|
|
16
|
+
placeholder = _ref.placeholder,
|
|
17
|
+
disabled = _ref.disabled,
|
|
18
|
+
readOnly = _ref.readOnly,
|
|
19
|
+
value = _ref.value,
|
|
20
|
+
defaultValue = _ref.defaultValue,
|
|
21
|
+
helperText = _ref.helperText,
|
|
22
|
+
_ref$required = _ref.required,
|
|
23
|
+
required = _ref$required === void 0 ? false : _ref$required,
|
|
24
|
+
tooltip = _ref.tooltip,
|
|
25
|
+
onChange = _ref.onChange,
|
|
26
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
27
|
+
return /*#__PURE__*/React__default.createElement(Control, {
|
|
28
|
+
classname: "aurora-flex aurora-flex-col aurora-gap-2"
|
|
29
|
+
}, label && (/*#__PURE__*/React__default.createElement(Label, {
|
|
30
|
+
htmlFor: id,
|
|
31
|
+
required: required,
|
|
32
|
+
tooltip: tooltip,
|
|
33
|
+
disabled: disabled,
|
|
34
|
+
className: classnames('aurora-text-base aurora-text aurora-font-medium', disabled && 'aurora-text-subtle-light')
|
|
35
|
+
}, label)), /*#__PURE__*/React__default.createElement(TextArea, _objectSpread2({
|
|
36
|
+
id: id,
|
|
37
|
+
name: name,
|
|
38
|
+
placeholder: placeholder,
|
|
39
|
+
value: value,
|
|
40
|
+
defaultValue: defaultValue,
|
|
41
|
+
disabled: disabled,
|
|
42
|
+
readOnly: readOnly,
|
|
43
|
+
errors: errors,
|
|
44
|
+
onChange: onChange
|
|
45
|
+
}, props)), helperText && /*#__PURE__*/React__default.createElement(HelperText, null, helperText), errors && /*#__PURE__*/React__default.createElement(ErrorList, {
|
|
46
|
+
errors: errors
|
|
47
|
+
}));
|
|
15
48
|
};
|
|
16
49
|
TextAreaControl.displayName = 'TextAreaControl';
|
|
17
|
-
|
|
50
|
+
|
|
51
|
+
export { TextAreaControl };
|
|
52
|
+
//# sourceMappingURL=text_area_control.js.map
|
package/build/esm/packages/aurora/src/components/controls/text_area_control/text_area_control.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA,uBAAuB,gDAAoD;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,21 +1,49 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import '
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { forwardRef, createElement } from 'react';
|
|
2
|
+
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
+
import { cn } from '../../../utilities/cn.js';
|
|
4
|
+
import { Label } from '../../label/label.js';
|
|
5
|
+
import { HelperText } from '../../helper_text/helper_text.js';
|
|
6
|
+
import { Item as Item2, Indicator } from '../../../../../../external/@radix-ui/react-radio-group/dist/index.mjs.js';
|
|
7
|
+
import { CircleFillIcon } from '../../../assets/icons/circle_icon.js';
|
|
8
|
+
|
|
9
|
+
var _excluded = ["id", "value", "label", "tooltip", "helperText", "disabled", "required", "errors", "className"];
|
|
10
|
+
var RadioGroupItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
11
|
+
var id = _ref.id,
|
|
12
|
+
value = _ref.value,
|
|
13
|
+
label = _ref.label,
|
|
14
|
+
tooltip = _ref.tooltip,
|
|
15
|
+
helperText = _ref.helperText,
|
|
16
|
+
disabled = _ref.disabled,
|
|
17
|
+
required = _ref.required,
|
|
18
|
+
errors = _ref.errors,
|
|
19
|
+
className = _ref.className,
|
|
20
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
+
return /*#__PURE__*/createElement("div", {
|
|
22
|
+
className: "aurora-flex aurora-gap-2"
|
|
23
|
+
}, /*#__PURE__*/createElement(Item2, _objectSpread2({
|
|
24
|
+
id: id,
|
|
25
|
+
ref: ref,
|
|
26
|
+
value: value,
|
|
27
|
+
disabled: disabled,
|
|
28
|
+
required: required,
|
|
29
|
+
className: cn('aurora-h-5 aurora-w-5 aurora-rounded-full aurora-border focus data-[state=checked]:aurora-bg-primary', {
|
|
30
|
+
'!aurora-bg-active aurora-cursor-not-allowed': disabled,
|
|
31
|
+
'!aurora-bg-neutral-0 aurora-border-danger aurora-border-2': errors
|
|
32
|
+
}, className)
|
|
33
|
+
}, props), /*#__PURE__*/createElement(Indicator, {
|
|
34
|
+
className: "aurora-flex aurora-items-center aurora-justify-center"
|
|
35
|
+
}, /*#__PURE__*/createElement(CircleFillIcon, {
|
|
36
|
+
className: "aurora-h-2.5 aurora-w-2.5 aurora-fill-inverse"
|
|
37
|
+
}))), /*#__PURE__*/createElement("div", {
|
|
38
|
+
className: "aurora-flex aurora-flex-col aurora-gap-1"
|
|
39
|
+
}, label && (/*#__PURE__*/createElement(Label, {
|
|
40
|
+
htmlFor: id,
|
|
41
|
+
disabled: disabled,
|
|
42
|
+
tooltip: tooltip,
|
|
43
|
+
className: "aurora-text"
|
|
44
|
+
}, label)), helperText && /*#__PURE__*/createElement(HelperText, null, helperText)));
|
|
19
45
|
});
|
|
20
|
-
RadioGroupItem.displayName =
|
|
21
|
-
|
|
46
|
+
RadioGroupItem.displayName = Item2.displayName;
|
|
47
|
+
|
|
48
|
+
export { RadioGroupItem };
|
|
49
|
+
//# sourceMappingURL=radio_group_item.js.map
|
package/build/esm/packages/aurora/src/components/radio_group/components/radio_group_item.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,yCAAyC,0EAA8E;AACvH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|