@majoo-ui/react 1.60.30-rc.1 → 1.60.31-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.esm.js +56 -43
  2. package/index.umd.js +56 -43
  3. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -53063,56 +53063,69 @@ function InputMapPicker(props) {
53063
53063
  }
53064
53064
  const isDesktop = useMediaQuery('(min-width: 767px)');
53065
53065
  return jsxs(React__default.Fragment, {
53066
- children: [jsxs(ContainerInput, Object.assign({
53067
- css: css
53066
+ children: [jsxs(Flex$1, Object.assign({
53067
+ direction: "column",
53068
+ gap: 3,
53069
+ align: "start"
53068
53070
  }, {
53069
- children: [jsx(Image, {
53070
- css: {
53071
- borderRadius: 8,
53072
- height: 64
53073
- },
53074
- src: img$c,
53075
- alt: "map-picker",
53076
- width: "100%"
53077
- }, void 0), jsx(Box, Object.assign({
53078
- css: {
53079
- position: 'absolute',
53080
- top: 0,
53081
- right: 0,
53082
- bottom: 0,
53083
- left: 0,
53084
- backgroundColor: 'rgba(39, 42, 42, 0.6)',
53085
- borderRadius: 8
53086
- }
53071
+ children: [jsxs(ContainerInput, Object.assign({
53072
+ css: css
53087
53073
  }, {
53088
- children: jsxs(Flex$1, Object.assign({
53089
- align: "center",
53090
- justify: "between",
53091
- gap: 6,
53074
+ children: [jsx(Image, {
53092
53075
  css: {
53093
- height: '100%',
53094
- padding: 16
53076
+ borderRadius: 8,
53077
+ height: 64
53078
+ },
53079
+ src: img$c,
53080
+ alt: "map-picker",
53081
+ width: "100%"
53082
+ }, void 0), jsx(Box, Object.assign({
53083
+ css: {
53084
+ position: 'absolute',
53085
+ top: 0,
53086
+ right: 0,
53087
+ bottom: 0,
53088
+ left: 0,
53089
+ backgroundColor: 'rgba(39, 42, 42, 0.6)',
53090
+ borderRadius: 8
53095
53091
  }
53096
53092
  }, {
53097
- children: [jsx(Paragraph, Object.assign({
53093
+ children: jsxs(Flex$1, Object.assign({
53094
+ align: "center",
53095
+ justify: "between",
53096
+ gap: 6,
53098
53097
  css: {
53099
- color: '$textWhite',
53100
- fontWeight: 600,
53101
- flex: 1
53102
- },
53103
- isTruncated: true
53104
- }, {
53105
- children: (_a = customInputValue !== null && customInputValue !== void 0 ? customInputValue : inputValue) !== null && _a !== void 0 ? _a : t('mapPlaceholder', 'Tandai lokasi dalam peta')
53106
- }), void 0), jsx(Button$4, Object.assign({
53107
- type: "button",
53108
- size: "sm",
53109
- buttonType: "secondary",
53110
- onClick: handleClick
53098
+ height: '100%',
53099
+ padding: 16
53100
+ }
53111
53101
  }, {
53112
- children: buttonLabel !== null && buttonLabel !== void 0 ? buttonLabel : t('buttonLabelText', 'Ubah Lokasi')
53113
- }), void 0)]
53114
- }), void 0)
53115
- }), void 0)]
53102
+ children: [jsx(Paragraph, Object.assign({
53103
+ css: {
53104
+ color: '$textWhite',
53105
+ fontWeight: 600,
53106
+ flex: 1
53107
+ },
53108
+ isTruncated: true
53109
+ }, {
53110
+ children: (_a = customInputValue !== null && customInputValue !== void 0 ? customInputValue : inputValue) !== null && _a !== void 0 ? _a : t('mapPlaceholder', 'Tandai lokasi dalam peta')
53111
+ }), void 0), isDesktop ? jsx(Button$4, Object.assign({
53112
+ type: "button",
53113
+ size: "sm",
53114
+ buttonType: "secondary",
53115
+ onClick: handleClick
53116
+ }, {
53117
+ children: buttonLabel !== null && buttonLabel !== void 0 ? buttonLabel : t('buttonLabelText', 'Ubah Lokasi')
53118
+ }), void 0) : null]
53119
+ }), void 0)
53120
+ }), void 0)]
53121
+ }), void 0), !isDesktop ? jsx(Button$4, Object.assign({
53122
+ type: "button",
53123
+ size: "md",
53124
+ buttonType: "secondary",
53125
+ onClick: handleClick
53126
+ }, {
53127
+ children: buttonLabel !== null && buttonLabel !== void 0 ? buttonLabel : t('buttonLabelText', 'Ubah Lokasi')
53128
+ }), void 0) : null]
53116
53129
  }), void 0), jsxs(ModalDialog, Object.assign({
53117
53130
  width: isDesktop ? 565 : '100%',
53118
53131
  layer: "$modal",
package/index.umd.js CHANGED
@@ -53682,56 +53682,69 @@
53682
53682
  }
53683
53683
  var isDesktop = useMediaQuery('(min-width: 767px)');
53684
53684
  return jsxRuntime.jsxs(React__default["default"].Fragment, {
53685
- children: [jsxRuntime.jsxs(ContainerInput, __assign({
53686
- css: css
53685
+ children: [jsxRuntime.jsxs(Flex$1, __assign({
53686
+ direction: "column",
53687
+ gap: 3,
53688
+ align: "start"
53687
53689
  }, {
53688
- children: [jsxRuntime.jsx(Image, {
53689
- css: {
53690
- borderRadius: 8,
53691
- height: 64
53692
- },
53693
- src: img$c,
53694
- alt: "map-picker",
53695
- width: "100%"
53696
- }, void 0), jsxRuntime.jsx(Box, __assign({
53697
- css: {
53698
- position: 'absolute',
53699
- top: 0,
53700
- right: 0,
53701
- bottom: 0,
53702
- left: 0,
53703
- backgroundColor: 'rgba(39, 42, 42, 0.6)',
53704
- borderRadius: 8
53705
- }
53690
+ children: [jsxRuntime.jsxs(ContainerInput, __assign({
53691
+ css: css
53706
53692
  }, {
53707
- children: jsxRuntime.jsxs(Flex$1, __assign({
53708
- align: "center",
53709
- justify: "between",
53710
- gap: 6,
53693
+ children: [jsxRuntime.jsx(Image, {
53711
53694
  css: {
53712
- height: '100%',
53713
- padding: 16
53695
+ borderRadius: 8,
53696
+ height: 64
53697
+ },
53698
+ src: img$c,
53699
+ alt: "map-picker",
53700
+ width: "100%"
53701
+ }, void 0), jsxRuntime.jsx(Box, __assign({
53702
+ css: {
53703
+ position: 'absolute',
53704
+ top: 0,
53705
+ right: 0,
53706
+ bottom: 0,
53707
+ left: 0,
53708
+ backgroundColor: 'rgba(39, 42, 42, 0.6)',
53709
+ borderRadius: 8
53714
53710
  }
53715
53711
  }, {
53716
- children: [jsxRuntime.jsx(Paragraph, __assign({
53712
+ children: jsxRuntime.jsxs(Flex$1, __assign({
53713
+ align: "center",
53714
+ justify: "between",
53715
+ gap: 6,
53717
53716
  css: {
53718
- color: '$textWhite',
53719
- fontWeight: 600,
53720
- flex: 1
53721
- },
53722
- isTruncated: true
53723
- }, {
53724
- children: (_a = customInputValue !== null && customInputValue !== void 0 ? customInputValue : inputValue) !== null && _a !== void 0 ? _a : t('mapPlaceholder', 'Tandai lokasi dalam peta')
53725
- }), void 0), jsxRuntime.jsx(Button$4, __assign({
53726
- type: "button",
53727
- size: "sm",
53728
- buttonType: "secondary",
53729
- onClick: handleClick
53717
+ height: '100%',
53718
+ padding: 16
53719
+ }
53730
53720
  }, {
53731
- children: buttonLabel !== null && buttonLabel !== void 0 ? buttonLabel : t('buttonLabelText', 'Ubah Lokasi')
53732
- }), void 0)]
53733
- }), void 0)
53734
- }), void 0)]
53721
+ children: [jsxRuntime.jsx(Paragraph, __assign({
53722
+ css: {
53723
+ color: '$textWhite',
53724
+ fontWeight: 600,
53725
+ flex: 1
53726
+ },
53727
+ isTruncated: true
53728
+ }, {
53729
+ children: (_a = customInputValue !== null && customInputValue !== void 0 ? customInputValue : inputValue) !== null && _a !== void 0 ? _a : t('mapPlaceholder', 'Tandai lokasi dalam peta')
53730
+ }), void 0), isDesktop ? jsxRuntime.jsx(Button$4, __assign({
53731
+ type: "button",
53732
+ size: "sm",
53733
+ buttonType: "secondary",
53734
+ onClick: handleClick
53735
+ }, {
53736
+ children: buttonLabel !== null && buttonLabel !== void 0 ? buttonLabel : t('buttonLabelText', 'Ubah Lokasi')
53737
+ }), void 0) : null]
53738
+ }), void 0)
53739
+ }), void 0)]
53740
+ }), void 0), !isDesktop ? jsxRuntime.jsx(Button$4, __assign({
53741
+ type: "button",
53742
+ size: "md",
53743
+ buttonType: "secondary",
53744
+ onClick: handleClick
53745
+ }, {
53746
+ children: buttonLabel !== null && buttonLabel !== void 0 ? buttonLabel : t('buttonLabelText', 'Ubah Lokasi')
53747
+ }), void 0) : null]
53735
53748
  }), void 0), jsxRuntime.jsxs(ModalDialog, __assign({
53736
53749
  width: isDesktop ? 565 : '100%',
53737
53750
  layer: "$modal",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@majoo-ui/react",
3
- "version": "1.60.30-rc.1",
3
+ "version": "1.60.31-rc.1",
4
4
  "dependencies": {
5
5
  "@majoo-ui/core": "^1.31.3",
6
6
  "@majoo-ui/helpers": "^1.30.5",