@synerise/ds-factors 0.22.17 → 0.22.19

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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.22.19](https://github.com/Synerise/synerise-design/compare/@synerise/ds-factors@0.22.18...@synerise/ds-factors@0.22.19) (2024-05-10)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **date-picker:** added autoResize handling ([f3a759c](https://github.com/Synerise/synerise-design/commit/f3a759c2b40664cc2d225cb4eaaefcbbf70321fe))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.22.18](https://github.com/Synerise/synerise-design/compare/@synerise/ds-factors@0.22.17...@synerise/ds-factors@0.22.18) (2024-05-08)
18
+
19
+ **Note:** Version bump only for package @synerise/ds-factors
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.22.17](https://github.com/Synerise/synerise-design/compare/@synerise/ds-factors@0.22.16...@synerise/ds-factors@0.22.17) (2024-05-08)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-factors
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useMemo, useState } from 'react';
2
2
  import { getPopupContainer } from '@synerise/ds-utils';
3
- import DatePicker from '@synerise/ds-date-picker/dist/DatePicker';
3
+ import DatePicker from '@synerise/ds-date-picker';
4
4
 
5
5
  var DateInput = function DateInput(_ref) {
6
6
  var value = _ref.value,
@@ -53,6 +53,11 @@ var DateInput = function DateInput(_ref) {
53
53
  disabledSeconds: [],
54
54
  error: error,
55
55
  readOnly: readOnly,
56
+ inputProps: {
57
+ autoResize: {
58
+ minWidth: '123px'
59
+ }
60
+ },
56
61
  dropdownProps: {
57
62
  visible: opened,
58
63
  getPopupContainer: getPopupContainerOverride || getPopupContainer,
@@ -1,4 +1,5 @@
1
1
  import styled, { css } from 'styled-components';
2
+ import { Container } from '@synerise/ds-date-picker/dist/Elements/PickerInput/PickerInput.styles';
2
3
  var DEFAULT_WIDTH = {
3
4
  'text-autocomplete': '147px',
4
5
  'text-default': '147px',
@@ -8,7 +9,7 @@ var DEFAULT_WIDTH = {
8
9
  export var FactorInput = styled.div.withConfig({
9
10
  displayName: "FactorValuestyle__FactorInput",
10
11
  componentId: "sc-17jtnx3-0"
11
- })(["&&{", ";.ds-autocomplete{display:flex;> *{min-width:0;flex-grow:1;}.ant-select{width:100%;}.ant-select-selection-placeholder{padding:0;}.ant-select-selector{border-radius:", ";}}.ant-dropdown-trigger{input{border-radius:", ";}}}"], function (props) {
12
+ })(["&&{", ";", "{width:auto;}.ds-autocomplete{display:flex;> *{min-width:0;flex-grow:1;}.ant-select{width:100%;}.ant-select-selection-placeholder{padding:0;}.ant-select-selector{border-radius:", ";}}.ant-dropdown-trigger{input{border-radius:", ";}}}"], function (props) {
12
13
  var inputType = props.inputType,
13
14
  _props$inputTextType = props.inputTextType,
14
15
  inputTextType = _props$inputTextType === void 0 ? 'default' : _props$inputTextType;
@@ -18,10 +19,6 @@ export var FactorInput = styled.div.withConfig({
18
19
  return css(["&&&{min-width:173px;input{min-width:123px;}}"]);
19
20
  }
20
21
 
21
- if (inputType === 'date') {
22
- return css(["&&&{width:173px;.ant-input{width:173px;}}"]);
23
- }
24
-
25
22
  if (inputType === 'dateRange') {
26
23
  return css(["&&&{min-width:173px;}"]);
27
24
  }
@@ -32,7 +29,7 @@ export var FactorInput = styled.div.withConfig({
32
29
  }
33
30
 
34
31
  return false;
35
- }, function (props) {
32
+ }, Container, function (props) {
36
33
  return props.withoutTypeSelector ? '3px' : '0 3px 3px 0';
37
34
  }, function (props) {
38
35
  return props.withoutTypeSelector ? '3px' : '0 3px 3px 0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-factors",
3
- "version": "0.22.17",
3
+ "version": "0.22.19",
4
4
  "description": "Factors UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -33,25 +33,25 @@
33
33
  ],
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
- "@synerise/ds-autocomplete": "^0.7.8",
37
- "@synerise/ds-badge": "^0.6.57",
38
- "@synerise/ds-button": "^0.19.7",
39
- "@synerise/ds-date-picker": "^0.10.46",
40
- "@synerise/ds-date-range-picker": "^0.27.17",
41
- "@synerise/ds-dropdown": "^0.17.107",
42
- "@synerise/ds-icon": "^0.60.7",
43
- "@synerise/ds-information-card": "^0.4.1",
44
- "@synerise/ds-inline-edit": "^0.7.3",
45
- "@synerise/ds-input": "^0.21.0",
46
- "@synerise/ds-input-number": "^0.9.14",
47
- "@synerise/ds-menu": "^0.18.20",
48
- "@synerise/ds-modal": "^0.17.26",
49
- "@synerise/ds-result": "^0.6.52",
50
- "@synerise/ds-scrollbar": "^0.10.2",
51
- "@synerise/ds-skeleton": "^0.5.6",
52
- "@synerise/ds-tabs": "^0.13.108",
53
- "@synerise/ds-tooltip": "^0.14.25",
54
- "@synerise/ds-utils": "^0.26.3",
36
+ "@synerise/ds-autocomplete": "^0.7.10",
37
+ "@synerise/ds-badge": "^0.6.59",
38
+ "@synerise/ds-button": "^0.19.9",
39
+ "@synerise/ds-date-picker": "^0.10.48",
40
+ "@synerise/ds-date-range-picker": "^0.27.19",
41
+ "@synerise/ds-dropdown": "^0.17.109",
42
+ "@synerise/ds-icon": "^0.60.9",
43
+ "@synerise/ds-information-card": "^0.4.3",
44
+ "@synerise/ds-inline-edit": "^0.7.5",
45
+ "@synerise/ds-input": "^0.21.2",
46
+ "@synerise/ds-input-number": "^0.9.16",
47
+ "@synerise/ds-menu": "^0.18.22",
48
+ "@synerise/ds-modal": "^0.17.28",
49
+ "@synerise/ds-result": "^0.6.54",
50
+ "@synerise/ds-scrollbar": "^0.10.4",
51
+ "@synerise/ds-skeleton": "^0.5.8",
52
+ "@synerise/ds-tabs": "^0.13.110",
53
+ "@synerise/ds-tooltip": "^0.14.27",
54
+ "@synerise/ds-utils": "^0.26.5",
55
55
  "lodash": "^4.17.19",
56
56
  "react-intl": "3.12.0",
57
57
  "react-window": "1.8.5",
@@ -67,5 +67,5 @@
67
67
  "@testing-library/react": "10.0.1",
68
68
  "@testing-library/user-event": "^10.3.1"
69
69
  },
70
- "gitHead": "700312e731dcbedacd206fd1d3389e5725c80d24"
70
+ "gitHead": "dea3898f262a7c333c6fd8ef806036ed4368bde7"
71
71
  }