@financial-times/o3-form 0.5.2 → 0.5.4

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/cjs/CheckBox.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CheckBoxProps, F as FormFieldsetProps } from './index-D6jDTWIC.js';
2
+ import { C as CheckBoxProps, F as FormFieldsetProps } from './index-B6g8Gfrb.js';
3
3
 
4
4
  declare const CheckBoxItem: (props: CheckBoxProps) => react_jsx_runtime.JSX.Element;
5
5
  declare const CheckBox: (props: CheckBoxProps) => react_jsx_runtime.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { E as ErrorSummaryProps } from './index-D6jDTWIC.js';
2
+ import { E as ErrorSummaryProps } from './index-B6g8Gfrb.js';
3
3
 
4
4
  declare const ErrorSummary: ({ errors, errorMessage, }: ErrorSummaryProps) => react_jsx_runtime.JSX.Element;
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { P as PasswordInputProps } from './index-D6jDTWIC.js';
2
+ import { P as PasswordInputProps } from './index-B6g8Gfrb.js';
3
3
 
4
4
  declare const PasswordInput: ({ label, feedback, description, disabled, attributes, inputId, optional, }: PasswordInputProps) => react_jsx_runtime.JSX.Element;
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { R as RadioButtonProps, F as FormFieldsetProps } from './index-D6jDTWIC.js';
2
+ import { R as RadioButtonProps, F as FormFieldsetProps } from './index-B6g8Gfrb.js';
3
3
 
4
4
  declare const RadioButtonItem: (props: RadioButtonProps) => react_jsx_runtime.JSX.Element;
5
5
  declare const RadioButtonGroup: (props: FormFieldsetProps) => react_jsx_runtime.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { T as TextInputProps } from './index-D6jDTWIC.js';
2
+ import { T as TextInputProps } from './index-B6g8Gfrb.js';
3
3
 
4
4
  declare const TextInput: ({ label, feedback, description, disabled, length, attributes, inputId, optional, }: TextInputProps) => react_jsx_runtime.JSX.Element;
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { a as FeedbackProps } from '../index-D6jDTWIC.js';
2
+ import { a as FeedbackProps } from '../index-B6g8Gfrb.js';
3
3
 
4
4
  declare const Feedback: ({ message, type }: FeedbackProps) => react_jsx_runtime.JSX.Element;
5
5
 
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
 
3
3
  declare const Form: ({ children }: {
4
- children: JSX.Element | JSX.Element[];
4
+ children: React.JSX.Element | React.JSX.Element[];
5
5
  }) => react_jsx_runtime.JSX.Element;
6
6
 
7
7
  export { Form };
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { b as FormFieldProps, F as FormFieldsetProps } from '../index-D6jDTWIC.js';
2
+ import { b as FormFieldProps, F as FormFieldsetProps } from '../index-B6g8Gfrb.js';
3
3
 
4
4
  declare const LabeledFormField: ({ inputId, label, description, feedback, children, optional, }: FormFieldProps) => react_jsx_runtime.JSX.Element;
5
5
  declare const TitledFormField: ({ label, description, feedback, children, optional, }: FormFieldProps) => react_jsx_runtime.JSX.Element;
@@ -27,13 +27,13 @@ interface RadioButtonProps extends BaseInputProps {
27
27
  interface FormFieldsetProps {
28
28
  label: string;
29
29
  description?: string;
30
- children: JSX.Element | JSX.Element[];
30
+ children: React.JSX.Element | React.JSX.Element[];
31
31
  feedback?: FeedbackProps;
32
32
  optional?: boolean;
33
33
  }
34
34
  interface FormFieldProps extends BaseInputProps {
35
35
  feedback?: FeedbackProps;
36
- children: JSX.Element & JSX.IntrinsicElements['input'];
36
+ children: React.JSX.Element & JSX.IntrinsicElements['input'];
37
37
  }
38
38
  type FeedbackProps = {
39
39
  errorElementIds?: string[];
package/cjs/index.d.ts CHANGED
@@ -7,4 +7,4 @@ export { ErrorSummary } from './Error-summary.js';
7
7
  export { PasswordInput } from './PasswordInput.js';
8
8
  export { TextInput } from './TextInput.js';
9
9
  import 'react/jsx-runtime';
10
- import './index-D6jDTWIC.js';
10
+ import './index-B6g8Gfrb.js';
package/css/main.css CHANGED
@@ -28,7 +28,7 @@
28
28
  }
29
29
  .o3-form-field :is(.o3-form-field__label, .o3-form-field__title, .o3-form-field__legend) {
30
30
  font-family: var(--o3-type-body-highlight-font-family);
31
- font-size: var(--o3-type-body-highlight-font-family);
31
+ font-size: var(--o3-type-body-highlight-font-size);
32
32
  font-weight: var(--o3-type-body-highlight-font-weight);
33
33
  line-height: var(--o3-type-body-highlight-line-height);
34
34
  color: var(--o3-color-use-case-body-text);
@@ -41,7 +41,7 @@
41
41
  }
42
42
  .o3-form-field .o3-form-input__description {
43
43
  font-family: var(--o3-type-body-base-font-family);
44
- font-size: var(--o3-type-body-base-font-family);
44
+ font-size: var(--o3-type-body-base-font-size);
45
45
  font-weight: var(--o3-type-body-base-font-weight);
46
46
  line-height: var(--o3-type-body-base-line-height);
47
47
  color: var(--o3-color-use-case-body-text);
package/esm/CheckBox.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CheckBoxProps, F as FormFieldsetProps } from './index-D6jDTWIC.js';
2
+ import { C as CheckBoxProps, F as FormFieldsetProps } from './index-B6g8Gfrb.js';
3
3
 
4
4
  declare const CheckBoxItem: (props: CheckBoxProps) => react_jsx_runtime.JSX.Element;
5
5
  declare const CheckBox: (props: CheckBoxProps) => react_jsx_runtime.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { E as ErrorSummaryProps } from './index-D6jDTWIC.js';
2
+ import { E as ErrorSummaryProps } from './index-B6g8Gfrb.js';
3
3
 
4
4
  declare const ErrorSummary: ({ errors, errorMessage, }: ErrorSummaryProps) => react_jsx_runtime.JSX.Element;
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { P as PasswordInputProps } from './index-D6jDTWIC.js';
2
+ import { P as PasswordInputProps } from './index-B6g8Gfrb.js';
3
3
 
4
4
  declare const PasswordInput: ({ label, feedback, description, disabled, attributes, inputId, optional, }: PasswordInputProps) => react_jsx_runtime.JSX.Element;
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { R as RadioButtonProps, F as FormFieldsetProps } from './index-D6jDTWIC.js';
2
+ import { R as RadioButtonProps, F as FormFieldsetProps } from './index-B6g8Gfrb.js';
3
3
 
4
4
  declare const RadioButtonItem: (props: RadioButtonProps) => react_jsx_runtime.JSX.Element;
5
5
  declare const RadioButtonGroup: (props: FormFieldsetProps) => react_jsx_runtime.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { T as TextInputProps } from './index-D6jDTWIC.js';
2
+ import { T as TextInputProps } from './index-B6g8Gfrb.js';
3
3
 
4
4
  declare const TextInput: ({ label, feedback, description, disabled, length, attributes, inputId, optional, }: TextInputProps) => react_jsx_runtime.JSX.Element;
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { a as FeedbackProps } from '../index-D6jDTWIC.mjs';
2
+ import { a as FeedbackProps } from '../index-B6g8Gfrb.mjs';
3
3
 
4
4
  declare const Feedback: ({ message, type }: FeedbackProps) => react_jsx_runtime.JSX.Element;
5
5
 
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
 
3
3
  declare const Form: ({ children }: {
4
- children: JSX.Element | JSX.Element[];
4
+ children: React.JSX.Element | React.JSX.Element[];
5
5
  }) => react_jsx_runtime.JSX.Element;
6
6
 
7
7
  export { Form };
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { b as FormFieldProps, F as FormFieldsetProps } from '../index-D6jDTWIC.mjs';
2
+ import { b as FormFieldProps, F as FormFieldsetProps } from '../index-B6g8Gfrb.mjs';
3
3
 
4
4
  declare const LabeledFormField: ({ inputId, label, description, feedback, children, optional, }: FormFieldProps) => react_jsx_runtime.JSX.Element;
5
5
  declare const TitledFormField: ({ label, description, feedback, children, optional, }: FormFieldProps) => react_jsx_runtime.JSX.Element;
@@ -27,13 +27,13 @@ interface RadioButtonProps extends BaseInputProps {
27
27
  interface FormFieldsetProps {
28
28
  label: string;
29
29
  description?: string;
30
- children: JSX.Element | JSX.Element[];
30
+ children: React.JSX.Element | React.JSX.Element[];
31
31
  feedback?: FeedbackProps;
32
32
  optional?: boolean;
33
33
  }
34
34
  interface FormFieldProps extends BaseInputProps {
35
35
  feedback?: FeedbackProps;
36
- children: JSX.Element & JSX.IntrinsicElements['input'];
36
+ children: React.JSX.Element & JSX.IntrinsicElements['input'];
37
37
  }
38
38
  type FeedbackProps = {
39
39
  errorElementIds?: string[];
package/esm/index.d.ts CHANGED
@@ -7,4 +7,4 @@ export { ErrorSummary } from './Error-summary.js';
7
7
  export { PasswordInput } from './PasswordInput.js';
8
8
  export { TextInput } from './TextInput.js';
9
9
  import 'react/jsx-runtime';
10
- import './index-D6jDTWIC.js';
10
+ import './index-B6g8Gfrb.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/o3-form",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "Provides a viewport-aware tooltip for annotating or or highlighting other aspects of a product's UI",
5
5
  "keywords": [
6
6
  "form",