@wireapp/react-ui-kit 9.46.0 → 9.46.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.
@@ -1 +1 @@
1
- {"version":3,"file":"SelectStyles.d.ts","sourceRoot":"","sources":["../../src/Form/SelectStyles.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAKzC,OAAO,EAAC,KAAK,EAAC,MAAM,WAAW,CAAC;AAEhC,UAAU,kBAAkB;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IACvC,UAAU,EAAE,SAAS,CAAC;IACtB,YAAY,EAAE,SAAS,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,oEAMtB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2MnB,CAAC"}
@@ -28,34 +28,8 @@ const customStyles = ({ theme, markInvalid = false, menuPosition = 'absolute', c
28
28
  indicatorsContainer: provided => ({
29
29
  ...provided,
30
30
  }),
31
- container: (_, { isDisabled, selectProps, options }) => {
32
- const { menuIsOpen } = selectProps;
33
- const isSelectDisabled = selectProps.isDisabled;
31
+ container: (_, { options }) => {
34
32
  return {
35
- '& > div > div[class$="-Control"]': {
36
- ...(0, Input_1.inputStyle)(theme, { disabled: isSelectDisabled, markInvalid }),
37
- borderRadius: 12,
38
- minHeight: 48,
39
- ...(isDisabled && {
40
- backgroundColor: theme.Input.backgroundColorDisabled,
41
- color: theme.Select.disabledColor,
42
- cursor: 'default',
43
- }),
44
- ...(markInvalid && {
45
- boxShadow: `0 0 0 1px ${theme.general.dangerColor}`,
46
- }),
47
- ...(menuIsOpen && {
48
- boxShadow: `0 0 0 1px ${theme.general.primaryColor}`,
49
- '&:hover': {
50
- boxShadow: `0 0 0 1px ${theme.general.primaryColor}`,
51
- },
52
- }),
53
- cursor: !isSelectDisabled && 'pointer',
54
- '&:focus:visible, active': {
55
- boxShadow: !isSelectDisabled && `0 0 0 1px ${theme.general.primaryColor}`,
56
- },
57
- ...controlCSS,
58
- },
59
33
  '& > div': (0, SelectComponents_1.isGroup)(options)
60
34
  ? {
61
35
  display: 'inline',
@@ -76,7 +50,7 @@ const customStyles = ({ theme, markInvalid = false, menuPosition = 'absolute', c
76
50
  },
77
51
  };
78
52
  },
79
- control: (_provided, { options }) => ({
53
+ control: (_provided, { isDisabled, selectProps, options }) => ({
80
54
  display: 'flex',
81
55
  alignItems: 'center',
82
56
  appearance: 'none',
@@ -87,6 +61,26 @@ const customStyles = ({ theme, markInvalid = false, menuPosition = 'absolute', c
87
61
  position: 'absolute',
88
62
  zIndex: -9999,
89
63
  }),
64
+ ...(0, Input_1.inputStyle)(theme, { disabled: selectProps.isDisabled, markInvalid }),
65
+ borderRadius: 12,
66
+ ...(isDisabled && {
67
+ backgroundColor: theme.Input.backgroundColorDisabled,
68
+ color: theme.Select.disabledColor,
69
+ cursor: 'default',
70
+ }),
71
+ ...(markInvalid && {
72
+ boxShadow: `0 0 0 1px ${theme.general.dangerColor}`,
73
+ }),
74
+ ...(selectProps.menuIsOpen && {
75
+ boxShadow: `0 0 0 1px ${theme.general.primaryColor}`,
76
+ '&:hover': {
77
+ boxShadow: `0 0 0 1px ${theme.general.primaryColor}`,
78
+ },
79
+ }),
80
+ cursor: !selectProps.isDisabled && 'pointer',
81
+ '&:focus:visible, active': {
82
+ boxShadow: !selectProps.isDisabled && `0 0 0 1px ${theme.general.primaryColor}`,
83
+ },
90
84
  ...controlCSS,
91
85
  }),
92
86
  dropdownIndicator: (provided, selectProps) => {
package/package.json CHANGED
@@ -77,6 +77,6 @@
77
77
  "test:watch": "jest --watch",
78
78
  "test:update": "jest --updateSnapshot"
79
79
  },
80
- "version": "9.46.0",
81
- "gitHead": "f84e0dca4b5b8e45d334b18fddae468cc60afe45"
80
+ "version": "9.46.1",
81
+ "gitHead": "a07b2a42e08f7e9112e2629bb945d63e617c6a3f"
82
82
  }