@openfin/ui-library 0.1.20 → 0.1.21

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.
@@ -5,7 +5,6 @@ export declare type BaseInputProps = InputHTMLAttributes<HTMLInputElement> & {
5
5
  label?: string;
6
6
  type?: string;
7
7
  renderInput?: Function;
8
- isFullWidth?: true;
9
8
  } & WithStatusProps;
10
9
  /**
11
10
  * @private This should not be exposed beyond the ui-library.
@@ -15,8 +14,5 @@ export declare const BaseInput: import("react").ForwardRefExoticComponent<InputH
15
14
  label?: string | undefined;
16
15
  type?: string | undefined;
17
16
  renderInput?: Function | undefined;
18
- isFullWidth?: true | undefined;
19
17
  } & WithStatusProps & import("react").RefAttributes<HTMLInputElement>>;
20
- export declare const StyledInputField: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, InputHTMLAttributes<HTMLInputElement> & WithStatusProps & {
21
- isFullWidth?: true | undefined;
22
- }, never>;
18
+ export declare const StyledInputField: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, InputHTMLAttributes<HTMLInputElement> & WithStatusProps, never>;
@@ -36,6 +36,8 @@ exports.BaseInput.displayName = 'BaseInput';
36
36
  const LabelWrapper = styled_components_1.default(Box_1.Box) `
37
37
  align-items: ${({ inline }) => (inline ? 'center' : 'flex-start')};
38
38
  flex-direction: ${({ inline }) => (inline ? 'row-reverse' : 'column')};
39
+ justify-content: ${({ inline }) => (inline ? 'flex-end' : 'flex-start')};
40
+ width: 100%;
39
41
 
40
42
  ${({ inline, theme }) => inline &&
41
43
  `
@@ -67,7 +69,7 @@ exports.StyledInputField = styled_components_1.default.input `
67
69
  font-size: ${({ theme }) => theme.fontSize.base};
68
70
  padding: ${({ theme }) => `${theme.px.small} ${theme.px.base}`};
69
71
  transition: border-color var(--openfin-ui-globalTransition);
70
- width: ${({ isFullWidth }) => isFullWidth && '100%'};
72
+ width: 100%;
71
73
 
72
74
  &:focus {
73
75
  outline: 0;
@@ -7,5 +7,4 @@ export declare const Checkbox: React.ForwardRefExoticComponent<React.InputHTMLAt
7
7
  label?: string | undefined;
8
8
  type?: string | undefined;
9
9
  renderInput?: Function | undefined;
10
- isFullWidth?: true | undefined;
11
10
  } & WithStatusProps & React.RefAttributes<HTMLInputElement>>;
@@ -63,6 +63,7 @@ const StyledInputContainer = styled_components_1.default.div `
63
63
  position: relative;
64
64
  overflow: hidden;
65
65
  border-radius: ${({ theme }) => theme.radius.small};
66
+ width: 100%;
66
67
  `;
67
68
  const ControlContainer = styled_components_1.default(Box_1.Box) `
68
69
  align-items: center;
@@ -6,5 +6,4 @@ export declare const TextInput: import("react").ForwardRefExoticComponent<import
6
6
  label?: string | undefined;
7
7
  type?: string | undefined;
8
8
  renderInput?: Function | undefined;
9
- isFullWidth?: true | undefined;
10
9
  } & import("../../system/HOC").WithStatusProps & import("react").RefAttributes<HTMLInputElement>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfin/ui-library",
3
3
  "description": "OpenFin UI Component Library",
4
- "version": "0.1.20",
4
+ "version": "0.1.21",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "repository": "github:openfin/ui-library",