@majoo-ui/react 1.60.25 → 1.60.27

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.
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { CSS } from '../../../../config/stitches.config';
3
- interface InputDateRangeProps {
3
+ import { InputSelectProps } from '..';
4
+ interface InputDateRangeProps extends InputSelectProps {
4
5
  /**
5
6
  * Specify the InputDateRange placeholder.
6
7
  */
@@ -700,7 +700,7 @@ export declare type Option = {
700
700
  group?: string;
701
701
  isGroup?: boolean;
702
702
  };
703
- interface InputSelectProps extends Omit<DownshiftProps<Option>, 'initialSelectedItem' | 'defaultValue'> {
703
+ export interface InputSelectProps extends Omit<DownshiftProps<Option>, 'initialSelectedItem' | 'defaultValue'> {
704
704
  /**
705
705
  * Array of options.<br/>
706
706
  * type Option = {<br/>
package/index.esm.js CHANGED
@@ -20251,23 +20251,25 @@ function CustomDatePicker({
20251
20251
  }, void 0);
20252
20252
  }
20253
20253
 
20254
- const InputDateRange = /*#__PURE__*/React.forwardRef(({
20255
- onChange,
20256
- placeholder,
20257
- size: _size = 'sm',
20258
- disabled: _disabled = false,
20259
- placement: _placement = 'bottom',
20260
- readOnly: _readOnly = false,
20261
- isInvalid: _isInvalid = false,
20262
- css
20263
- }, ref) => {
20254
+ const InputDateRange = /*#__PURE__*/React.forwardRef((_a, ref) => {
20255
+ var {
20256
+ onChange,
20257
+ placeholder,
20258
+ size = 'sm',
20259
+ disabled = false,
20260
+ placement = 'bottom',
20261
+ readOnly = false,
20262
+ isInvalid = false,
20263
+ css
20264
+ } = _a,
20265
+ props = __rest(_a, ["onChange", "placeholder", "size", "disabled", "placement", "readOnly", "isInvalid", "css"]);
20264
20266
  const {
20265
20267
  t,
20266
20268
  i18n
20267
20269
  } = useTranslation('translation');
20268
20270
  const language = i18n.language;
20269
20271
  const pickerOptions = language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn;
20270
- return jsx(InputSelect, {
20272
+ return jsx(InputSelect, Object.assign({}, props, {
20271
20273
  option: pickerOptions.map(option => ({
20272
20274
  name: option.label,
20273
20275
  value: option.value
@@ -20276,13 +20278,13 @@ const InputDateRange = /*#__PURE__*/React.forwardRef(({
20276
20278
  if (onChange) onChange(advancePickerDate(selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value, undefined));
20277
20279
  },
20278
20280
  placeholder: placeholder || t('placeholder.select', 'Pilih'),
20279
- size: _size,
20280
- disabled: _disabled,
20281
- placement: _placement,
20282
- readOnly: _readOnly,
20283
- isInvalid: _isInvalid,
20281
+ size: size,
20282
+ disabled: disabled,
20283
+ placement: placement,
20284
+ readOnly: readOnly,
20285
+ isInvalid: isInvalid,
20284
20286
  css: css
20285
- }, void 0);
20287
+ }), void 0);
20286
20288
  });
20287
20289
 
20288
20290
  const _excluded$9 = ["className", "defaultValue", "value", "name", "disabled", "orientation", "dir", "min", "max", "step", "onValueChange", "minStepsBetweenThumbs", "color", "size", "width", "height"];
@@ -24381,7 +24383,8 @@ function Table({
24381
24383
  direction: "column",
24382
24384
  gap: 3,
24383
24385
  css: {
24384
- margin: '56px auto 100px'
24386
+ margin: '56px auto 100px',
24387
+ wordBreak: 'break-word'
24385
24388
  }
24386
24389
  }, {
24387
24390
  children: [customEmptyDataProps.doodleImage, customEmptyDataProps.title, customEmptyDataProps.description]
@@ -25594,7 +25597,8 @@ function AlertDialog(props) {
25594
25597
  }, /*#__PURE__*/React__default.createElement(Paragraph, {
25595
25598
  paragraph: "longContentRegular",
25596
25599
  css: {
25597
- textAlign: 'justify'
25600
+ textAlign: 'justify',
25601
+ wordBreak: 'break-word'
25598
25602
  },
25599
25603
  __self: this,
25600
25604
  __source: {
package/index.umd.js CHANGED
@@ -20572,13 +20572,14 @@
20572
20572
  readOnly = _e === void 0 ? false : _e,
20573
20573
  _f = _a.isInvalid,
20574
20574
  isInvalid = _f === void 0 ? false : _f,
20575
- css = _a.css;
20575
+ css = _a.css,
20576
+ props = __rest(_a, ["onChange", "placeholder", "size", "disabled", "placement", "readOnly", "isInvalid", "css"]);
20576
20577
  var _g = reactI18next.useTranslation('translation'),
20577
20578
  t = _g.t,
20578
20579
  i18n = _g.i18n;
20579
20580
  var language = i18n.language;
20580
20581
  var pickerOptions = language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn;
20581
- return jsxRuntime.jsx(InputSelect, {
20582
+ return jsxRuntime.jsx(InputSelect, __assign({}, props, {
20582
20583
  option: pickerOptions.map(function (option) {
20583
20584
  return {
20584
20585
  name: option.label,
@@ -20595,7 +20596,7 @@
20595
20596
  readOnly: readOnly,
20596
20597
  isInvalid: isInvalid,
20597
20598
  css: css
20598
- }, void 0);
20599
+ }), void 0);
20599
20600
  });
20600
20601
 
20601
20602
  const _excluded$9 = ["className", "defaultValue", "value", "name", "disabled", "orientation", "dir", "min", "max", "step", "onValueChange", "minStepsBetweenThumbs", "color", "size", "width", "height"];
@@ -24840,7 +24841,8 @@
24840
24841
  direction: "column",
24841
24842
  gap: 3,
24842
24843
  css: {
24843
- margin: '56px auto 100px'
24844
+ margin: '56px auto 100px',
24845
+ wordBreak: 'break-word'
24844
24846
  }
24845
24847
  }, {
24846
24848
  children: [customEmptyDataProps.doodleImage, customEmptyDataProps.title, customEmptyDataProps.description]
@@ -26068,7 +26070,8 @@
26068
26070
  }, /*#__PURE__*/React__default["default"].createElement(Paragraph, {
26069
26071
  paragraph: "longContentRegular",
26070
26072
  css: {
26071
- textAlign: 'justify'
26073
+ textAlign: 'justify',
26074
+ wordBreak: 'break-word'
26072
26075
  },
26073
26076
  __self: this,
26074
26077
  __source: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@majoo-ui/react",
3
- "version": "1.60.25",
3
+ "version": "1.60.27",
4
4
  "dependencies": {
5
5
  "@majoo-ui/core": "^1.31.3",
6
6
  "@majoo-ui/helpers": "^1.30.5",