oa-componentbook 0.18.302 → 0.18.304

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 (77) hide show
  1. package/build/components/oa-component-accordion/Accordion.js +21 -0
  2. package/build/components/oa-component-auto-complete/CustomAutoComplete.js +14 -0
  3. package/build/components/oa-component-bar-chart/BarChart.js +10 -0
  4. package/build/components/oa-component-bread-crumb/CustomBreadCrumb.js +12 -0
  5. package/build/components/oa-component-button/CustomButton.js +19 -0
  6. package/build/components/oa-component-checkbox/CustomCheckBox.js +32 -0
  7. package/build/components/oa-component-count-card/CustomCountCard.js +15 -0
  8. package/build/components/oa-component-datepicker/CustomDatePicker.js +13 -0
  9. package/build/components/oa-component-demo-border-radius/BorderRadiusDemo.js +11 -0
  10. package/build/components/oa-component-demo-color-variables/ColorVariablesDemo.js +9 -0
  11. package/build/components/oa-component-drawer/CustomDrawer.js +24 -0
  12. package/build/components/oa-component-dropdown/CustomDropdown.js +13 -0
  13. package/build/components/oa-component-form-item/CustomFormItem.js +13 -0
  14. package/build/components/oa-component-header/CustomHeader.js +8 -0
  15. package/build/components/oa-component-icons/CustomIcon.js +11 -0
  16. package/build/components/oa-component-info/CustomInfo.js +30 -0
  17. package/build/components/oa-component-input/CustomInput.js +5 -0
  18. package/build/components/oa-component-input-number/CustomInputNumber.js +11 -0
  19. package/build/components/oa-component-lable/CustomLable.js +5 -0
  20. package/build/components/oa-component-loader/CustomLoader.js +11 -0
  21. package/build/components/oa-component-modal/CustomModal.js +30 -0
  22. package/build/components/oa-component-popover/CustomPopover.js +9 -0
  23. package/build/components/oa-component-progress-bar/CustomProgressBar.js +10 -0
  24. package/build/components/oa-component-radio/CustomRadio.js +13 -0
  25. package/build/components/oa-component-select/CustomSelect.js +59 -0
  26. package/build/components/oa-component-table/CustomTable.js +33 -0
  27. package/build/components/oa-component-tabs/CustomTabs.js +13 -0
  28. package/build/components/oa-component-tag/CustomTag.js +10 -0
  29. package/build/components/oa-component-textarea/TextArea.js +22 -0
  30. package/build/components/oa-component-timeline/CustomTimeline.js +12 -0
  31. package/build/components/oa-component-timepicker/CustomTimePicker.js +12 -0
  32. package/build/components/oa-component-toggle/CustomToggle.js +14 -0
  33. package/build/components/oa-component-tooltip/CustomTooltip.js +10 -0
  34. package/build/components/oa-component-typography/Typography.js +15 -0
  35. package/build/components/oa-component-upload/CustomUpload.js +27 -0
  36. package/build/components/oa-component-viewer/CustomViewer.js +30 -0
  37. package/build/utils/common.js +7 -0
  38. package/build/utils/fix-decimal-places.js +7 -0
  39. package/build/utils/get-uuid.js +14 -0
  40. package/build/utils/hex-to-rgb.js +10 -0
  41. package/build/utils/random-generators.js +8 -0
  42. package/build/utils/rupee-formatters.js +28 -0
  43. package/build/widgets/oa-widget-add-spare-part/AddSparePartCollapseWidget.js +55 -0
  44. package/build/widgets/oa-widget-add-spare-part/AddSparePartWidget.js +27 -0
  45. package/build/widgets/oa-widget-address/AddressWidget.js +5 -0
  46. package/build/widgets/oa-widget-approval/ApprovalWidget.js +23 -0
  47. package/build/widgets/oa-widget-chat/ChatWidget.js +20 -0
  48. package/build/widgets/oa-widget-close-claim/CloseClaimWidget.js +31 -0
  49. package/build/widgets/oa-widget-custom-details/CustomDetails.js +7 -0
  50. package/build/widgets/oa-widget-customer-rating-card/CustomerRatingCard.js +23 -0
  51. package/build/widgets/oa-widget-date-dropdown/DateDropDown.js +116 -0
  52. package/build/widgets/oa-widget-detailcard/MembershipDetailCard.js +28 -0
  53. package/build/widgets/oa-widget-document-upload/DocUploadWidget.js +45 -0
  54. package/build/widgets/oa-widget-document-upload-card/DocUploadCardWidget.js +36 -0
  55. package/build/widgets/oa-widget-dropdown-search-input/DropdownSearchInput.js +50 -0
  56. package/build/widgets/oa-widget-form/CustomFormWidget.js +12 -0
  57. package/build/widgets/oa-widget-googlerating/GoogleRating.js +10 -0
  58. package/build/widgets/oa-widget-header/CustomHeaderWidget.js +27 -0
  59. package/build/widgets/oa-widget-input-pattern-pin/CustomPinPatternCaptureWidget.js +109 -9
  60. package/build/widgets/oa-widget-key-value/KeyValueWidget.js +10 -0
  61. package/build/widgets/oa-widget-location-access/LocationAccessWidget.js +13 -0
  62. package/build/widgets/oa-widget-membershipcard/MembershipCard.js +6 -0
  63. package/build/widgets/oa-widget-multiple-collapse-with-slots/MultipleCollapseWithSlots.js +16 -0
  64. package/build/widgets/oa-widget-notes/NotesWidget.js +5 -0
  65. package/build/widgets/oa-widget-plan-card/PlanCard.js +19 -0
  66. package/build/widgets/oa-widget-reimbursement-breakup/ReimbursementBreakupWidget.js +19 -0
  67. package/build/widgets/oa-widget-repair-service/RepairServiceWidget.js +11 -0
  68. package/build/widgets/oa-widget-send-payment-link/SendPaymentLinkWidget.js +29 -0
  69. package/build/widgets/oa-widget-servicecard/ServiceCard.js +24 -0
  70. package/build/widgets/oa-widget-spare-part/SparePartsCollapseWidget.js +30 -0
  71. package/build/widgets/oa-widget-spare-part/SparePartsWidget.js +14 -0
  72. package/build/widgets/oa-widget-stage-timeline/StageTimelineWidget.js +13 -0
  73. package/build/widgets/oa-widget-track-shipment/TrackShipmentWidget.js +15 -0
  74. package/build/widgets/oa-widget-upload-download/UploadDownloadWidget.js +12 -0
  75. package/build/widgets/oa-widget-view-history/ViewHistoryWidget.js +26 -0
  76. package/build/widgets/oa-widget-view-previous-description/ViewPreviousDescriptionWidget.js +26 -0
  77. package/package.json +1 -1
@@ -12,6 +12,13 @@ var _styles = require("./styles");
12
12
  var _ColorVariablesMap = _interopRequireDefault(require("../../global-css/ColorVariablesMap"));
13
13
  var _MaterialIcon = _interopRequireDefault(require("../oa-component-icons/MaterialIcon"));
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+ /**
16
+ * Renders a MaterialIcon that rotates depending on the state of isActive.
17
+ *
18
+ * @param {boolean} isActive - Whether the icon should be rotated or not.
19
+ *
20
+ * @returns {React.ReactElement} - A React element representing the CollapseIcon.
21
+ */
15
22
  function CollapseIcon(_ref) {
16
23
  let {
17
24
  isActive
@@ -25,6 +32,20 @@ function CollapseIcon(_ref) {
25
32
  CollapseIcon.propTypes = {
26
33
  isActive: _propTypes.default.bool.isRequired
27
34
  };
35
+
36
+ /**
37
+ * Accordion component that renders a collapsible panel with the given header text, body content,
38
+ * and optional small text. The component is disabled if the `disabled` prop is true.
39
+ *
40
+ * @param {React.ReactNode} body - Content to be rendered in the collapsible panel.
41
+ * @param {string} [dataTest] - String to be used as a data-test attribute on the component.
42
+ * @param {boolean} [disabled=false] - Whether the component is disabled or not.
43
+ * @param {string} headerText - Text to be displayed as the header of the collapsible panel.
44
+ * @param {string} [smallText] - Optional small text to be displayed next to the header text.
45
+ * @param {string | number} [key] - Key to be used for the collapsible panel.
46
+ * @param {string | number} [defaultActiveKey] - Key of the collapsible panel that should be active by default.
47
+ * @param {boolean} [hasContentPadding=true] - Whether to apply content padding to the collapsible panel or not.
48
+ */
28
49
  function Accordion(_ref2) {
29
50
  let {
30
51
  body,
@@ -25,6 +25,20 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typ
25
25
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
26
26
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
27
27
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
28
+ /**
29
+ * CustomAutoComplete is a wrapper around AntD's AutoComplete component.
30
+ * It applies styles (like colors and font sizes) to the component.
31
+ * It also takes an array of options and if the value of an option is a string or a number,
32
+ * it wraps the value in a Typography component with the correct color and font size.
33
+ *
34
+ * @param {{data-test: string, options: Array<Object>, [key: string]: any}} props - Props for the component.
35
+ * @param {string} [props.data-test] - data-test attribute for the component.
36
+ * @param {Array<Object>} [props.options] - Options for the AutoComplete component.
37
+ * Each object in the array should contain a property 'value' and can contain a property 'disabled'.
38
+ * If the value of an option is a string or a number, it will be wrapped in a Typography component.
39
+ * @param {Object} [props] - Any other props for the AutoComplete component.
40
+ * @return {React.ReactElement} - The rendered component.
41
+ */
28
42
  function CustomAutoComplete(_ref) {
29
43
  let {
30
44
  'data-test': dataTest,
@@ -22,6 +22,16 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
22
22
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
23
23
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
24
24
  const FullSizeContainer = _styledComponents.default.section(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n \n display: inline-block;\n position: relative;\n width: 100%;\n padding-bottom: ", "%;\n vertical-align: top;\n overflow: hidden;\n\n .bar-chart-svg {\n display: inline-block;\n position: absolute;\n top: 0;\n left: 0;\n }\n\n .empty-component-container {\n display: ", ";\n position: absolute;\n top: ", ";\n left: ", ";\n transform: translate(-50%, -50%) scale(1.2);\n }\n"])), props => 100 / props.$aspectRatio, props => props !== null && props !== void 0 && props.$showNoData ? 'block' : 'none', props => "calc(50% + (".concat(props.$marginTop, "px - ").concat(props.$marginBottom, "px) / 2)"), props => "calc(50% + (".concat(props.$marginLeft, "px - ").concat(props.$marginRight, "px) / 2)"));
25
+
26
+ /**
27
+ * Function to create a curved bar path based on the provided parameters.
28
+ * @param {number} x - The x-coordinate of the top-left corner of the bar.
29
+ * @param {number} y - The y-coordinate of the top-left corner of the bar.
30
+ * @param {number} width - The width of the bar.
31
+ * @param {number} height - The height of the bar.
32
+ * @param {number} r - The radius of the curved corners.
33
+ * @returns {string} The SVG path string for the curved bar.
34
+ */
25
35
  function curvedBar(x, y, width, height, r) {
26
36
  // x coordinates of top of arcs
27
37
  const x0 = x + r;
@@ -9,6 +9,18 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
  var _antd = require("antd");
10
10
  var _ColorVariablesMap = _interopRequireDefault(require("../../global-css/ColorVariablesMap"));
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ /**
13
+ * A custom implementation of antd's Breadcrumb component.
14
+ * This component provides a styled breadcrumb in accordance with the OneAssist design language.
15
+ * The colors used are as follows:
16
+ * - The color of other items in breadcrumb: --color-secondary-content
17
+ * - The color of last item in breadcrumb: --color-primary
18
+ * - The color of items that are links: --color-secondary-content
19
+ * - The color of items that are links, during hover: --color-primary-hover
20
+ * - The color of separator: --color-secondary-content
21
+ * - The margin of separator: 4px
22
+ * The background color of text on hover is set to --color-primary-background.
23
+ */
12
24
  function CustomBreadCrumb(props) {
13
25
  return /*#__PURE__*/_react.default.createElement(_antd.ConfigProvider, {
14
26
  theme: {
@@ -16,6 +16,25 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
16
16
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
17
17
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
18
18
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19
+ /**
20
+ * CustomButton component renders a styled button with various configurations.
21
+ *
22
+ * @param {string} className - Additional class names for the button.
23
+ * @param {boolean} disabled - Disables the button if set to true.
24
+ * @param {function} onClick - Callback function to handle button click events.
25
+ * @param {string} htmlType - Specifies the HTML type of the button (e.g., 'button', 'submit').
26
+ * @param {object} iconConfig - Configuration for the button's icon, containing:
27
+ * - `icon`: React node for the icon.
28
+ * - `position`: Position of the icon, either 'left' or 'right'.
29
+ * @param {ReactNode} label - The text or content displayed on the button.
30
+ * @param {boolean} showEllipsis - Shows ellipsis if the label is too long.
31
+ * @param {string} size - Size of the button, can be 'small', 'medium', or 'large'.
32
+ * @param {string} type - Type of button, defining its style (e.g., 'primary', 'danger-primary').
33
+ * @param {string} dataTest - Data attribute for testing purposes.
34
+ * @param {object} domProps - Additional props to be spread onto the button element.
35
+ *
36
+ * @returns {ReactElement} A styled button component.
37
+ */
19
38
  function CustomButton(_ref) {
20
39
  let {
21
40
  className,
@@ -17,6 +17,19 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
17
17
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
18
18
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19
19
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
20
+ /**
21
+ * Returns the theme configuration for a custom checkbox component.
22
+ *
23
+ * The theme includes the following properties:
24
+ * - colorTextDisabled: The color of the text when the checkbox is disabled.
25
+ * - colorPrimaryHover: The color of the checkbox when hovered.
26
+ * - colorPrimary: The primary color of the checkbox.
27
+ * - colorBgContainerDisabled: The background color of the checkbox when disabled.
28
+ * - colorBorder: The color of the checkbox border.
29
+ * - colorText: The color of the text associated with the checkbox.
30
+ * - borderRadiusSM: The small border radius applied to the checkbox.
31
+ * - paddingXS: The extra small padding applied to the checkbox.
32
+ */
20
33
  const getCheckboxTheme = () => ({
21
34
  token: {
22
35
  colorTextDisabled: _ColorVariablesMap.default['--color-disabled-button'],
@@ -29,6 +42,25 @@ const getCheckboxTheme = () => ({
29
42
  paddingXS: '12px'
30
43
  }
31
44
  });
45
+
46
+ /**
47
+ * A custom checkbox component with an accompanying label.
48
+ *
49
+ * This component wraps around the `antd` `Checkbox` component.
50
+ * It provides the following features:
51
+ * - A themed checkbox.
52
+ * - A label that can be a string, number, or a node.
53
+ * - A `data-test` attribute to aid with testing.
54
+ * - A `size` prop to control the size of the label accompanying the checkbox.
55
+ * - All props of the `antd` `Checkbox` component are applicable here as well.
56
+ *
57
+ * @param {Object} props Component props.
58
+ * @param {string} [props.data-test] A unique identifier for the component for testing purposes.
59
+ * @param {string|number|node} [props.label] The label to be displayed next to the checkbox.
60
+ * @param {function} [props.onChange] The callback function to be called when the checkbox state changes.
61
+ * @param {string} [props.size] The size of the label accompanying the checkbox. It can be either 'large' or 'small'.
62
+ * @param {Object} [props.antDesignProps] The extra props to be passed to the `antd` `Checkbox` component.
63
+ */
32
64
  exports.getCheckboxTheme = getCheckboxTheme;
33
65
  function CustomCheckBox(_ref) {
34
66
  let {
@@ -11,6 +11,21 @@ var _typographyOptions = require("../../global-css/typography-options");
11
11
  var _colorOptions = require("../../global-css/color-options");
12
12
  var _styles = require("./styles");
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+ /**
15
+ * A card component that displays a label, an image and a subtext.
16
+ * Used for displaying counts in a grid layout.
17
+ *
18
+ * @param {string} label - The label text to be displayed.
19
+ * @param {string} imgPath - The path to the image to be displayed.
20
+ * @param {string} subText - The subtext to be displayed.
21
+ * @param {string} labelTypography - The typography option for the label. See typographyOptions for all available options.
22
+ * @param {string} labelColor - The color option for the label. See colorOptions for all available options.
23
+ * @param {string} subTextTypography - The typography option for the subtext. See typographyOptions for all available options.
24
+ * @param {string} subTextColor - The color option for the subtext. See colorOptions for all available options.
25
+ * @param {string} imgWidth - The width of the image to be displayed.
26
+ *
27
+ * @returns {ReactElement} A React element representing the card component.
28
+ */
14
29
  function CustomCountCard(_ref) {
15
30
  let {
16
31
  label,
@@ -22,6 +22,19 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
22
22
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
23
23
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
24
24
  const FullWidthDatePicker = (0, _styledComponents.default)(_antd.DatePicker)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n"])));
25
+
26
+ /**
27
+ * A custom datepicker component.
28
+ *
29
+ * The component includes a Material UI icon on the right side of the input field.
30
+ * The component is fully customizable and can be used with any of the options
31
+ * provided by the antd datepicker component.
32
+ *
33
+ * @param {Object} props - The props for the component
34
+ * @prop {string} ['data-test'] - The data-test value for the component
35
+ *
36
+ * @return {ReactElement} The rendered component
37
+ */
25
38
  function CustomDatePicker(_ref) {
26
39
  let {
27
40
  'data-test': dataTest
@@ -10,6 +10,17 @@ var _styles = require("./styles");
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
  // Import the styles from the separate file
12
12
 
13
+ /**
14
+ * A component to demonstrate the various border radius values in the design system.
15
+ *
16
+ * @param {string} className - The desired border radius style from the design system.
17
+ * One of 'border-radius-xlarge', 'border-radius-large',
18
+ * 'border-radius-medium', 'border-radius-small',
19
+ * 'border-radius-xsmall', 'border-radius-none', or
20
+ * 'border-radius-full'.
21
+ *
22
+ * @return {ReactElement} A styled <div> element with the specified border radius.
23
+ */
13
24
  function BorderRadiusDemo(_ref) {
14
25
  let {
15
26
  className
@@ -11,6 +11,15 @@ var _colorOptions = require("../../global-css/color-options");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  // Import the styles from the separate file
13
13
 
14
+ /**
15
+ * Component that renders a block with a background color specified by the
16
+ * given color variable, and displays the name of the variable.
17
+ *
18
+ * @param {string} color - The name of the color variable to use.
19
+ * (e.g. 'primary', 'background-dark', 'background-info', etc.)
20
+ *
21
+ * @returns {React.ReactNode} The rendered component.
22
+ */
14
23
  function ColorVariablesDemo(_ref) {
15
24
  let {
16
25
  color
@@ -24,12 +24,36 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
24
24
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
25
25
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
26
26
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
27
+ /**
28
+ * @description
29
+ * A utility function to convert a string or a number into a valid drawer title.
30
+ * If the title is a string or a number, it will be rendered as a Typography component with type-sl1-700 and primary-content color.
31
+ * If it is a valid React element, it will be rendered directly.
32
+ * If it is anything else, it will be rendered as undefined.
33
+ * @param {string | number | React.ReactElement} title - The title to be rendered.
34
+ * @returns {React.ReactElement | undefined} - The rendered title or undefined.
35
+ */
27
36
  function DrawerTitle(title) {
28
37
  return ((0, _utils.isString)(title) || (0, _utils.isNumber)(title)) && /*#__PURE__*/_react.default.createElement(_Typography.default, {
29
38
  typography: "type-sl1-700",
30
39
  color: "primary-content"
31
40
  }, title) || /*#__PURE__*/_react.default.isValidElement(title) && title || undefined;
32
41
  }
42
+
43
+ /**
44
+ * A custom implementation of the antd Drawer component.
45
+ * @param {object} props - The props object.
46
+ * @param {Array<object>} [props.buttonConfig] - An array of button configurations to be rendered in the footer.
47
+ * @param {*} [props.children] - The content of the drawer.
48
+ * @param {boolean} [props.isBaseDrawer] - If true, the drawer is a base drawer and a close icon is rendered at the top right corner.
49
+ * @param {function} [props.onClose] - Called when the drawer is closed.
50
+ * @param {boolean} [props.open] - If true, the drawer is open.
51
+ * @param {string} [props.placement] - The viewport placement of the drawer. If the drawer is open on mobile, this prop will be set to 'bottom'.
52
+ * @param {string | number | React.ReactElement} [props.title] - The title of the drawer. If a string or a number, it will be rendered as a Typography component with type-sl1-700 and primary-content color. If a valid React element, it will be rendered directly.
53
+ * @param {string | number} [props.height] - The height of the drawer.
54
+ * @param {string | number} [props.width] - The width of the drawer.
55
+ * @param {string} [props.data-test] - The data-test attribute to be applied to the drawer.
56
+ */
33
57
  function CustomDrawer(_ref) {
34
58
  let {
35
59
  buttonConfig,
@@ -14,6 +14,19 @@ var _Typography = _interopRequireDefault(require("../oa-component-typography/Typ
14
14
  var _styles = _interopRequireDefault(require("./styles"));
15
15
  require("./customClass.css");
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+ /**
18
+ * CustomDropdown is a component that renders a dropdown menu.
19
+ * It is styled using an Ant Design Dropdown component and can be customized with different themes.
20
+ *
21
+ * @param {Object} props - The properties object.
22
+ * @param {string} props.displayText - Text to display within the dropdown trigger.
23
+ * @param {Array} props.items - Array of menu items to display in the dropdown.
24
+ * @param {React.node} props.children - React node to render as children within the dropdown trigger.
25
+ * @param {boolean} props.firstLetterIcon - Flag to display the first letter of the second word in displayText as an icon.
26
+ * @param {Array<string>} props.trigger - Event(s) that trigger the dropdown display, e.g., 'click', 'hover'.
27
+ * @param {string} props.placement - Position of the dropdown relative to the trigger element.
28
+ * @param {string} props.type - Theme type for the dropdown style.
29
+ */
17
30
  function CustomDropdown(_ref) {
18
31
  var _displayText$split;
19
32
  let {
@@ -24,6 +24,19 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
24
24
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
25
25
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
26
26
  const StyledFormItem = (0, _styledComponents.default)(_antd.Form.Item)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n label{\n height: auto !important;\n color: var(--color-primary-content) !important;\n margin: 0 0 4px !important;\n }\n .ant-col-24.ant-form-item-label{\n padding: 0;\n }\n"])));
27
+
28
+ /**
29
+ * A wrapper around Ant Design's Form.Item component that styles the label
30
+ * and removes the minimum height.
31
+ *
32
+ * @param {string} label - The label of the form item.
33
+ * @param {string} labelPosition - The position of the label. Defaults to "left".
34
+ * @param {string} name - The name of the form item.
35
+ * @param {React.ReactNode} children - The children of the form item.
36
+ * @param {object} props - Any additional props to pass to the Form.Item component.
37
+ *
38
+ * @returns {React.ReactElement} A styled Form.Item component.
39
+ */
27
40
  function CustomFormItem(_ref) {
28
41
  let {
29
42
  label,
@@ -16,6 +16,14 @@ var _Typography = _interopRequireDefault(require("../oa-component-typography/Typ
16
16
  var _CustomInput = _interopRequireDefault(require("../oa-component-input/CustomInput"));
17
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
18
  const noRefCheck = () => {};
19
+
20
+ /**
21
+ * HeaderBar is a component that displays a header bar with a back button and two different layouts for desktop and mobile.
22
+ * The desktop view displays the header with a search button, export button and an add button.
23
+ * The mobile view displays the search, export and add icons.
24
+ *
25
+ * @return {ReactElement} - the rendered component
26
+ */
19
27
  function HeaderBar() {
20
28
  return /*#__PURE__*/_react.default.createElement(_styles.StyleContainer, null, /*#__PURE__*/_react.default.createElement("div", {
21
29
  className: "customHeader"
@@ -25,6 +25,17 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typ
25
25
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
26
26
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
27
27
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
28
+ /**
29
+ * A simple wrapper around the Ant Design Icon component,
30
+ * which uses SizedSvg underneath. See the documentation for
31
+ * SizedSvg for more information.
32
+ *
33
+ * The only prop that is not passed to SizedSvg is `style`, which
34
+ * is merged with the style object that is passed to Icon.
35
+ *
36
+ * @param {Object} props - all the props to pass to SizedSvg
37
+ * @returns {React.ReactElement} - the rendered component
38
+ */
28
39
  function CustomIcon(_ref) {
29
40
  let {
30
41
  alt,
@@ -14,6 +14,22 @@ var _Typography = _interopRequireDefault(require("../oa-component-typography/Typ
14
14
  var _colorOptions = require("../../global-css/color-options");
15
15
  require("antd/dist/reset.css");
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+ /**
18
+ * A component for displaying a single piece of information with an optional icon
19
+ * and/or button. The icon can be placed on either the left or right of the text.
20
+ * If the icon is a valid React element, its size is adjusted based on the presence
21
+ * of a title. If a title is not provided, the icon size is 20. If a title is
22
+ * provided, the icon size is 24.
23
+ *
24
+ * @param {object} buttonConfig - Configuration for the button.
25
+ * @param {string} color - The background color of the component.
26
+ * @param {string} description - The text to be displayed.
27
+ * @param {string} fontColor - The color of the text.
28
+ * @param {object} iconConfig - Configuration for the icon.
29
+ * @param {string} title - The title to be displayed.
30
+ *
31
+ * @returns {ReactElement} A styled component with the specified properties.
32
+ */
17
33
  function CustomInfo(_ref) {
18
34
  let {
19
35
  buttonConfig,
@@ -23,11 +39,25 @@ function CustomInfo(_ref) {
23
39
  iconConfig,
24
40
  title
25
41
  } = _ref;
42
+ /**
43
+ * Renders the icon based on the presence of a title.
44
+ * If a title is not provided and the icon is a valid React element,
45
+ * it returns a cloned version of the icon with a size of 20.
46
+ * If a title is provided and the icon is a valid React element,
47
+ * it returns a cloned version of the icon with a size of 24.
48
+ */
26
49
  const renderIcon = () => !title ? /*#__PURE__*/_react.default.isValidElement(iconConfig.icon) && /*#__PURE__*/_react.default.cloneElement(iconConfig.icon, {
27
50
  size: 20
28
51
  }) : /*#__PURE__*/_react.default.isValidElement(iconConfig.icon) && /*#__PURE__*/_react.default.cloneElement(iconConfig.icon, {
29
52
  size: 24
30
53
  });
54
+
55
+ /**
56
+ * Adds a tooltip to the icon if the iconConfig has a tooltipText property.
57
+ * Otherwise, just renders the icon.
58
+ *
59
+ * @returns {React.ReactNode} The rendered icon with or without a tooltip.
60
+ */
31
61
  const conditionallyAddTooltipToIcon = () => {
32
62
  var _iconConfig$tooltipTe;
33
63
  return (iconConfig === null || iconConfig === void 0 || (_iconConfig$tooltipTe = iconConfig.tooltipText) === null || _iconConfig$tooltipTe === void 0 ? void 0 : _iconConfig$tooltipTe.length) > 0 ? /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
@@ -20,6 +20,11 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
20
20
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
21
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
22
22
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
23
+ /**
24
+ * CustomInput is a component that renders an input field with customizable styling.
25
+ * It automatically focuses on the input field when mounted if autoFocus is set to true.
26
+ * The component allows customization of padding, border colors, box shadows, placeholder text color, and more.
27
+ */
23
28
  function CustomInput(_ref) {
24
29
  let {
25
30
  'data-test': dataTest,
@@ -20,6 +20,17 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
20
20
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
21
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
22
22
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
23
+ /**
24
+ * CustomInputNumber is a component that renders a number input field with customizable styling.
25
+ * It automatically focuses on the input field when mounted if autoFocus is set to true.
26
+ * The component allows customization of padding, border colors, box shadows, placeholder text color, and more.
27
+ *
28
+ * @param {Object} props - The props for the component
29
+ * @prop {string} ['data-test'] - The data-test value for the component
30
+ * @prop {boolean} [autoFocus=false] - Whether to autofocus on the input field
31
+ *
32
+ * @return {ReactElement} The rendered component
33
+ */
23
34
  function CustomInputNumber(_ref) {
24
35
  let {
25
36
  'data-test': dataTest,
@@ -12,6 +12,11 @@ var _styles = require("./styles");
12
12
  var _Typography = _interopRequireDefault(require("../oa-component-typography/Typography"));
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
14
  const text = /*#__PURE__*/_react.default.createElement("span", null, "prompt text");
15
+ /**
16
+ * CustomLabel component displays a label with optional info circle tooltip.
17
+ *
18
+ * @param {boolean} showInfoCircle - Flag to show the info circle tooltip.
19
+ */
15
20
  function CustomLabel(_ref) {
16
21
  let {
17
22
  showInfoCircle
@@ -14,6 +14,17 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
14
14
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
15
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
16
16
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
17
+ /**
18
+ * A custom loader component that extends Ant Design's Spin component.
19
+ *
20
+ * @param {React.ReactNode} children - The DOM element on which the loader should be centered.
21
+ * @param {string} contentHeight - The height of the content that this loader is spinning over.
22
+ * @param {number} delay - The delay in which the loader should be displayed.
23
+ * @param {string} size - The size of the loader (small, default, or large).
24
+ * @param {boolean} spinning - Determines whether the loader is displayed or hidden.
25
+ * @param {object} antDesignProps - Any additional props that should be passed to the Ant Design Spin component.
26
+ * @returns {ReactElement} The rendered CustomLoader component.
27
+ */
17
28
  function CustomLoader(_ref) {
18
29
  let {
19
30
  children,
@@ -19,6 +19,36 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
19
19
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
20
20
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
21
21
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
22
+ /**
23
+ * This is a custom Modal component that extends the default antd Modal
24
+ * component.
25
+ *
26
+ * The open state of the modal is controlled by the parent component.
27
+ *
28
+ * The parent can also provide a callback function to be called when the
29
+ * cancel button is clicked.
30
+ *
31
+ * The width of the modal can be customized by providing a width prop.
32
+ *
33
+ * The buttons for the modal can be customized by providing a buttonConfig
34
+ * prop.
35
+ *
36
+ * The title of the modal can be provided as a string or as an image.
37
+ *
38
+ * The children of the modal can be provided as a string or a number, or as
39
+ * JSX elements.
40
+ *
41
+ * The typography of the title and description can be customized by providing
42
+ * a typographies object.
43
+ *
44
+ * The modal is centered by default.
45
+ *
46
+ * The modal is rendered with a gray background.
47
+ *
48
+ * The modal is rendered with a close button.
49
+ *
50
+ * The parent can provide additional props to the Modal component.
51
+ */
22
52
  function CustomModal(_ref) {
23
53
  let {
24
54
  buttonConfig,
@@ -13,6 +13,15 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
13
13
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14
14
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
15
15
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16
+ /**
17
+ * A Popover component that wraps its content in a span with a click event.
18
+ * This is useful for handling clicks on the content of the popover.
19
+ *
20
+ * @param {React.ReactNode} children - The element that triggers the popover.
21
+ * @param {React.ReactNode} content - The content of the popover.
22
+ * @param {Function} onContentClick - The function that is called when the content is clicked.
23
+ * @param {Object} props - Any other props that can be passed to the Popover component.
24
+ */
16
25
  function CustomPopover(_ref) {
17
26
  let {
18
27
  children,
@@ -11,6 +11,16 @@ var _Typography = _interopRequireDefault(require("../oa-component-typography/Typ
11
11
  var _ColorVariablesMap = _interopRequireDefault(require("../../global-css/ColorVariablesMap"));
12
12
  var _styles = require("./styles");
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+ /**
15
+ * Displays a progress bar indicating the current step out of the total steps.
16
+ *
17
+ * @param {number} currentStep - The current step number being displayed.
18
+ * @param {number} totalStep - The total number of steps in the progress.
19
+ * @param {string} headingColor - The color used for the step text heading.
20
+ * @param {string} barColor - The color used for the progress bar.
21
+ *
22
+ * @returns {React.ReactElement} A component displaying the current progress.
23
+ */
14
24
  function ProgressBar(_ref) {
15
25
  let {
16
26
  currentStep,
@@ -16,6 +16,19 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
16
16
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
17
17
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
18
18
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19
+ /**
20
+ * Returns the theme configuration for a custom radio component.
21
+ *
22
+ * The theme includes the following properties:
23
+ * - token: An object containing theme-specific tokens.
24
+ * - colorPrimary: The primary color of the radio component.
25
+ * - colorBorder: The color of the radio component's border.
26
+ * - colorTextDisabled: The color of the text when the radio component is disabled.
27
+ * - colorText: The color of the text for the radio component.
28
+ * - components: An object containing component-specific properties.
29
+ * - Radio: The configuration for the radio component.
30
+ * - wrapperMarginInlineEnd: The margin applied to the end of the radio wrapper.
31
+ */
19
32
  const getRadioTheme = () => ({
20
33
  token: {
21
34
  colorPrimary: _ColorVariablesMap.default['--color-primary'],