@launchpad-ui/form 0.15.12 → 0.15.13

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 (44) hide show
  1. package/dist/Checkbox.d.ts +17 -0
  2. package/dist/Checkbox.d.ts.map +1 -0
  3. package/dist/CompactTextField.d.ts +14 -0
  4. package/dist/CompactTextField.d.ts.map +1 -0
  5. package/dist/FieldError.d.ts +16 -0
  6. package/dist/FieldError.d.ts.map +1 -0
  7. package/dist/FieldSet.d.ts +13 -0
  8. package/dist/FieldSet.d.ts.map +1 -0
  9. package/dist/Form.d.ts +15 -0
  10. package/dist/Form.d.ts.map +1 -0
  11. package/dist/FormField.d.ts +30 -0
  12. package/dist/FormField.d.ts.map +1 -0
  13. package/dist/FormGroup.d.ts +16 -0
  14. package/dist/FormGroup.d.ts.map +1 -0
  15. package/dist/FormHint.d.ts +13 -0
  16. package/dist/FormHint.d.ts.map +1 -0
  17. package/dist/IconField.d.ts +19 -0
  18. package/dist/IconField.d.ts.map +1 -0
  19. package/dist/Label.d.ts +16 -0
  20. package/dist/Label.d.ts.map +1 -0
  21. package/dist/Radio.d.ts +15 -0
  22. package/dist/Radio.d.ts.map +1 -0
  23. package/dist/RadioGroup.d.ts +46 -0
  24. package/dist/RadioGroup.d.ts.map +1 -0
  25. package/dist/RequiredAsterisk.d.ts +13 -0
  26. package/dist/RequiredAsterisk.d.ts.map +1 -0
  27. package/dist/SelectField.d.ts +13 -0
  28. package/dist/SelectField.d.ts.map +1 -0
  29. package/dist/TextArea.d.ts +13 -0
  30. package/dist/TextArea.d.ts.map +1 -0
  31. package/dist/TextField.d.ts +16 -0
  32. package/dist/TextField.d.ts.map +1 -0
  33. package/dist/index.d.ts +35 -0
  34. package/dist/index.d.ts.map +1 -0
  35. package/dist/index.es.js +558 -0
  36. package/dist/index.es.js.map +1 -0
  37. package/dist/index.js +594 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/style.css +2 -0
  40. package/dist/useNumberField.d.ts +23 -0
  41. package/dist/useNumberField.d.ts.map +1 -0
  42. package/dist/utils/index.d.ts +6 -0
  43. package/dist/utils/index.d.ts.map +1 -0
  44. package/package.json +3 -3
@@ -0,0 +1,17 @@
1
+ import type { ComponentProps } from 'react';
2
+ type CheckboxProps = ComponentProps<'input'> & {
3
+ /**
4
+ * The className to pass into the Checkbox's Label component
5
+ */
6
+ labelClassName?: string;
7
+ 'data-test-id'?: string;
8
+ };
9
+ /**
10
+ * @deprecated use `Checkbox` or `CheckboxGroup` from `@launchpad-ui/components` instead
11
+ *
12
+ * https://launchpad.launchdarkly.com/?path=/docs/components-forms-checkbox--docs
13
+ */
14
+ declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
15
+ export { Checkbox };
16
+ export type { CheckboxProps };
17
+ //# sourceMappingURL=Checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../src/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAO5C,KAAK,aAAa,GAAG,cAAc,CAAC,OAAO,CAAC,GAAG;IAC9C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,QAAQ,yHAuCb,CAAC;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { TextFieldProps } from './TextField';
2
+ type CompactTextFieldProps = TextFieldProps & {
3
+ label: string;
4
+ needsErrorFeedback?: boolean;
5
+ };
6
+ /**
7
+ * @deprecated use `TextField` from `@launchpad-ui/components` instead
8
+ *
9
+ * https://launchpad.launchdarkly.com/?path=/docs/components-forms-textfield--docs
10
+ */
11
+ declare const CompactTextField: import("react").ForwardRefExoticComponent<Omit<CompactTextFieldProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
12
+ export { CompactTextField };
13
+ export type { CompactTextFieldProps };
14
+ //# sourceMappingURL=CompactTextField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompactTextField.d.ts","sourceRoot":"","sources":["../src/CompactTextField.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AASlD,KAAK,qBAAqB,GAAG,cAAc,GAAG;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,iIAuDrB,CAAC;AAIF,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,qBAAqB,EAAE,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { ComponentProps } from 'react';
2
+ import type { FieldPath } from './utils';
3
+ type FieldErrorProps = ComponentProps<'span'> & {
4
+ name: FieldPath;
5
+ errorMessage?: string;
6
+ 'data-test-id'?: string;
7
+ };
8
+ /**
9
+ * @deprecated use `FieldError` from `@launchpad-ui/components` instead
10
+ *
11
+ * https://launchpad.launchdarkly.com/?path=/docs/components-forms-textfield--docs
12
+ */
13
+ declare const FieldError: ({ name, errorMessage, className, "data-test-id": testId, ...rest }: FieldErrorProps) => import("react/jsx-runtime").JSX.Element | null;
14
+ export { FieldError };
15
+ export type { FieldErrorProps };
16
+ //# sourceMappingURL=FieldError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldError.d.ts","sourceRoot":"","sources":["../src/FieldError.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAQzC,KAAK,eAAe,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAC/C,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,UAAU,GAAI,oEAMjB,eAAe,mDAkBjB,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { ComponentProps } from 'react';
2
+ type FieldSetProps = ComponentProps<'fieldset'> & {
3
+ 'data-test-id'?: string;
4
+ };
5
+ /**
6
+ * @deprecated use `FieldGroup` from `@launchpad-ui/components` instead
7
+ *
8
+ * https://launchpad.launchdarkly.com/?path=/docs/components-forms-fieldgroup--docs
9
+ */
10
+ declare const FieldSet: ({ children, className, "data-test-id": testId, ...rest }: FieldSetProps) => import("react/jsx-runtime").JSX.Element;
11
+ export { FieldSet };
12
+ export type { FieldSetProps };
13
+ //# sourceMappingURL=FieldSet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldSet.d.ts","sourceRoot":"","sources":["../src/FieldSet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAM5C,KAAK,aAAa,GAAG,cAAc,CAAC,UAAU,CAAC,GAAG;IACjD,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,QAAQ,GAAI,0DAKf,aAAa,4CAQf,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
package/dist/Form.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ import type { ComponentProps } from 'react';
2
+ type FormProps = ComponentProps<'form'> & {
3
+ inline?: boolean;
4
+ hasIncreasedErrorMargin?: boolean;
5
+ 'data-test-id'?: string;
6
+ };
7
+ /**
8
+ * @deprecated use `Form` from `@launchpad-ui/components` instead
9
+ *
10
+ * https://launchpad.launchdarkly.com/?path=/docs/components-forms-form--docs
11
+ */
12
+ declare const Form: (props: FormProps) => import("react/jsx-runtime").JSX.Element;
13
+ export { Form };
14
+ export type { FormProps };
15
+ //# sourceMappingURL=Form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../src/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAM5C,KAAK,SAAS,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IAKjB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,IAAI,GAAI,OAAO,SAAS,4CAsB7B,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,YAAY,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { JSX } from 'react';
2
+ import type { FieldErrorProps } from './FieldError';
3
+ import type { FormHintProps } from './FormHint';
4
+ import type { LabelProps } from './Label';
5
+ type FormFieldProps = {
6
+ isRequired: boolean;
7
+ label?: string;
8
+ name: string;
9
+ htmlFor: string;
10
+ hint?: string;
11
+ errorMessage?: string;
12
+ ignoreValidation?: boolean;
13
+ isInvalid?: boolean;
14
+ children: JSX.Element;
15
+ className?: string;
16
+ onBlur?: (field: string) => void;
17
+ 'data-test-id'?: string;
18
+ LabelProps?: Partial<LabelProps>;
19
+ FormHintProps?: Partial<FormHintProps>;
20
+ FieldErrorProps?: Partial<FieldErrorProps>;
21
+ };
22
+ /**
23
+ * @deprecated use form elements from `@launchpad-ui/components` instead
24
+ *
25
+ * https://launchpad.launchdarkly.com/?path=/docs/components-forms-textfield--docs
26
+ */
27
+ declare const FormField: ({ isRequired, label, name, htmlFor, hint, errorMessage, ignoreValidation, isInvalid, children, className, onBlur, "data-test-id": testId, LabelProps, FormHintProps, FieldErrorProps, }: FormFieldProps) => import("react/jsx-runtime").JSX.Element;
28
+ export type { FormFieldProps };
29
+ export { FormField };
30
+ //# sourceMappingURL=FormField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../src/FormField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAU1C,KAAK,cAAc,GAAG;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IACvC,eAAe,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CAC3C,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,SAAS,GAAI,yLAgBhB,cAAc,4CAiChB,CAAC;AAEF,YAAY,EAAE,cAAc,EAAE,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { ComponentProps } from 'react';
2
+ type FormGroupProps = ComponentProps<'fieldset'> & {
3
+ name?: string | string[];
4
+ ignoreValidation?: boolean;
5
+ isInvalid?: boolean;
6
+ 'data-test-id'?: string;
7
+ };
8
+ /**
9
+ * @deprecated use `FieldGroup` from `@launchpad-ui/components` instead
10
+ *
11
+ * https://launchpad.launchdarkly.com/?path=/docs/components-forms-fieldgroup--docs
12
+ */
13
+ declare const FormGroup: (props: FormGroupProps) => import("react/jsx-runtime").JSX.Element;
14
+ export { FormGroup };
15
+ export type { FormGroupProps };
16
+ //# sourceMappingURL=FormGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormGroup.d.ts","sourceRoot":"","sources":["../src/FormGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAM5C,KAAK,cAAc,GAAG,cAAc,CAAC,UAAU,CAAC,GAAG;IAClD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,SAAS,GAAI,OAAO,cAAc,4CAuBvC,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,YAAY,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { ComponentProps } from 'react';
2
+ type FormHintProps = ComponentProps<'div'> & {
3
+ 'data-test-id'?: string;
4
+ };
5
+ /**
6
+ * @deprecated use `Text` with `[slot='description']` from `@launchpad-ui/components` instead
7
+ *
8
+ * https://launchpad.launchdarkly.com/?path=/docs/components-forms-textfield--docs
9
+ */
10
+ declare const FormHint: ({ className, children, "data-test-id": testId, ...rest }: FormHintProps) => import("react/jsx-runtime").JSX.Element;
11
+ export { FormHint };
12
+ export type { FormHintProps };
13
+ //# sourceMappingURL=FormHint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormHint.d.ts","sourceRoot":"","sources":["../src/FormHint.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAM5C,KAAK,aAAa,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,QAAQ,GAAI,0DAKf,aAAa,4CAQf,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { IconProps } from '@launchpad-ui/icons';
2
+ import type { ComponentProps, JSX, ReactElement } from 'react';
3
+ type IconFieldProps = ComponentProps<'div'> & {
4
+ icon: ReactElement<IconProps>;
5
+ children: JSX.Element | JSX.Element[];
6
+ 'data-test-id'?: string;
7
+ tooltip?: string | JSX.Element;
8
+ renderIconLast?: boolean;
9
+ ariaLabel?: string;
10
+ };
11
+ /**
12
+ * @deprecated use `Group` from `@launchpad-ui/components` instead
13
+ *
14
+ * https://launchpad.launchdarkly.com/?path=/docs/components-content-group--docs
15
+ */
16
+ declare const IconField: ({ icon, children, className, "data-test-id": testId, tooltip, renderIconLast, ariaLabel, ...rest }: IconFieldProps) => import("react/jsx-runtime").JSX.Element;
17
+ export { IconField };
18
+ export type { IconFieldProps };
19
+ //# sourceMappingURL=IconField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconField.d.ts","sourceRoot":"","sources":["../src/IconField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAS/D,KAAK,cAAc,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAC7C,IAAI,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IAC9B,QAAQ,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,SAAS,GAAI,oGAShB,cAAc,4CA+BhB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,YAAY,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { ComponentProps } from 'react';
2
+ type LabelProps = ComponentProps<'label'> & {
3
+ required?: boolean;
4
+ optional?: boolean;
5
+ disabled?: boolean;
6
+ 'data-test-id'?: string;
7
+ };
8
+ /**
9
+ * @deprecated use `Label` from `@launchpad-ui/components` instead
10
+ *
11
+ * https://launchpad.launchdarkly.com/?path=/docs/components-forms-textfield--docs
12
+ */
13
+ declare const Label: ({ disabled, className, children, required, optional, "data-test-id": testId, ...rest }: LabelProps) => import("react/jsx-runtime").JSX.Element;
14
+ export { Label };
15
+ export type { LabelProps };
16
+ //# sourceMappingURL=Label.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../src/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAO5C,KAAK,UAAU,GAAG,cAAc,CAAC,OAAO,CAAC,GAAG;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,KAAK,GAAI,wFAQZ,UAAU,4CAUZ,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,YAAY,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { ComponentProps, CSSProperties } from 'react';
2
+ type RadioProps = Omit<ComponentProps<'input'>, 'type'> & {
3
+ labelClassName?: string;
4
+ labelStyle?: CSSProperties;
5
+ 'data-test-id'?: string;
6
+ };
7
+ /**
8
+ * @deprecated use `RadioGroup` from `@launchpad-ui/components` instead
9
+ *
10
+ * https://launchpad.launchdarkly.com/?path=/docs/components-forms-radiogroup--docs
11
+ */
12
+ declare const Radio: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, checked, children, className, disabled, id, labelClassName, labelStyle, "data-test-id": testId, ...rest }: RadioProps) => import("react/jsx-runtime").JSX.Element;
13
+ export { Radio };
14
+ export type { RadioProps };
15
+ //# sourceMappingURL=Radio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../src/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAO3D,KAAK,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,GAAG;IACzD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,KAAK,GAAI,yKAYZ,UAAU,4CA2BZ,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,YAAY,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,46 @@
1
+ import type { ChangeEvent, FormEvent, ReactNode } from 'react';
2
+ type RadioGroupProps = {
3
+ /**
4
+ * The legend that describes this groups of radio buttons. The legend
5
+ * is important for screen reader users.
6
+ */
7
+ legend?: string;
8
+ /**
9
+ * The children passed into the RadioGroup.
10
+ */
11
+ children?: ReactNode;
12
+ /**
13
+ * Custom classname(s) passed to the fieldset inner div.
14
+ */
15
+ className?: string;
16
+ /**
17
+ * Set the underlying Radio to disabled if the Radio's disabled prop is undefined.
18
+ */
19
+ disabled?: boolean;
20
+ /**
21
+ * The RadioGroup's id.
22
+ */
23
+ id?: string;
24
+ /**
25
+ * Name to apply to the underlying Radio. The same name value is passed to each Radio when grouping in a RadioGroup for screen reader support.
26
+ */
27
+ name: string;
28
+ /**
29
+ * This function is passed into each Radio onChange synthetic event handler.
30
+ */
31
+ onChange?(e: ChangeEvent | FormEvent<HTMLInputElement>): void;
32
+ /**
33
+ * The value to compare against the Radio's value to determine if the Radio will be checked.
34
+ */
35
+ value: string;
36
+ 'data-test-id'?: string;
37
+ };
38
+ /**
39
+ * @deprecated use `RadioGroup` from `@launchpad-ui/components` instead
40
+ *
41
+ * https://launchpad.launchdarkly.com/?path=/docs/components-forms-radiogroup--docs
42
+ */
43
+ declare const RadioGroup: (props: RadioGroupProps) => import("react/jsx-runtime").JSX.Element;
44
+ export { RadioGroup };
45
+ export type { RadioGroupProps };
46
+ //# sourceMappingURL=RadioGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../src/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAQ7E,KAAK,eAAe,GAAG;IACtB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,CAAC,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IAC9D;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,UAAU,GAAI,OAAO,eAAe,4CAqEzC,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { ComponentProps } from 'react';
2
+ type RequiredAsteriskProps = ComponentProps<'span'> & {
3
+ 'data-test-id'?: string;
4
+ };
5
+ /**
6
+ * @deprecated use `Label` from `@launchpad-ui/components` instead
7
+ *
8
+ * https://launchpad.launchdarkly.com/?path=/docs/components-forms-textfield--docs
9
+ */
10
+ declare const RequiredAsterisk: ({ className, "data-test-id": testId, ...rest }: RequiredAsteriskProps) => import("react/jsx-runtime").JSX.Element;
11
+ export { RequiredAsterisk };
12
+ export type { RequiredAsteriskProps };
13
+ //# sourceMappingURL=RequiredAsterisk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequiredAsterisk.d.ts","sourceRoot":"","sources":["../src/RequiredAsterisk.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAM5C,KAAK,qBAAqB,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IACrD,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,GAAI,gDAIvB,qBAAqB,4CAQvB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,qBAAqB,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { ComponentProps } from 'react';
2
+ type SelectFieldProps = ComponentProps<'select'> & {
3
+ 'data-test-id'?: string;
4
+ };
5
+ /**
6
+ * @deprecated use `Select` from `@launchpad-ui/components` instead
7
+ *
8
+ * https://launchpad.launchdarkly.com/?path=/docs/components-pickers-select--docs
9
+ */
10
+ declare const SelectField: import("react").ForwardRefExoticComponent<Omit<SelectFieldProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
11
+ export { SelectField };
12
+ export type { SelectFieldProps };
13
+ //# sourceMappingURL=SelectField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectField.d.ts","sourceRoot":"","sources":["../src/SelectField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAO5C,KAAK,gBAAgB,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG;IAClD,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,WAAW,6HAUhB,CAAC;AAIF,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { ComponentProps } from 'react';
2
+ type TextAreaProps = ComponentProps<'textarea'> & {
3
+ 'data-test-id'?: string;
4
+ };
5
+ /**
6
+ * @deprecated use `TextArea` from `@launchpad-ui/components` instead
7
+ *
8
+ * https://launchpad.launchdarkly.com/?path=/docs/components-forms-textfield--docs#multi%20line
9
+ */
10
+ declare const TextArea: import("react").ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
11
+ export { TextArea };
12
+ export type { TextAreaProps };
13
+ //# sourceMappingURL=TextArea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../src/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,OAAO,CAAC;AAQ3D,KAAK,aAAa,GAAG,cAAc,CAAC,UAAU,CAAC,GAAG;IACjD,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,QAAQ,4HA2Bb,CAAC;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { ComponentProps } from 'react';
2
+ type TextFieldProps = ComponentProps<'input'> & {
3
+ suffix?: string;
4
+ tiny?: boolean;
5
+ overrideWidth?: string;
6
+ 'data-test-id'?: string;
7
+ };
8
+ /**
9
+ * @deprecated use `TextField` from `@launchpad-ui/components` instead
10
+ *
11
+ * https://launchpad.launchdarkly.com/?path=/docs/components-forms-textfield--docs
12
+ */
13
+ declare const TextField: import("react").ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
14
+ export { TextField };
15
+ export type { TextFieldProps };
16
+ //# sourceMappingURL=TextField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../src/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAQ5C,KAAK,cAAc,GAAG,cAAc,CAAC,OAAO,CAAC,GAAG;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,SAAS,0HAgEd,CAAC;AAIF,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,YAAY,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,35 @@
1
+ export type { CheckboxProps } from './Checkbox';
2
+ export type { CompactTextFieldProps } from './CompactTextField';
3
+ export type { FieldErrorProps } from './FieldError';
4
+ export type { FieldSetProps } from './FieldSet';
5
+ export type { FormProps } from './Form';
6
+ export type { FormFieldProps } from './FormField';
7
+ export type { FormGroupProps } from './FormGroup';
8
+ export type { FormHintProps } from './FormHint';
9
+ export type { IconFieldProps } from './IconField';
10
+ export type { LabelProps } from './Label';
11
+ export type { RadioProps } from './Radio';
12
+ export type { RadioGroupProps } from './RadioGroup';
13
+ export type { RequiredAsteriskProps } from './RequiredAsterisk';
14
+ export type { SelectFieldProps } from './SelectField';
15
+ export type { TextAreaProps } from './TextArea';
16
+ export type { TextFieldProps } from './TextField';
17
+ export type { UseNumberFieldProps } from './useNumberField';
18
+ export { Checkbox } from './Checkbox';
19
+ export { CompactTextField } from './CompactTextField';
20
+ export { FieldError } from './FieldError';
21
+ export { FieldSet } from './FieldSet';
22
+ export { Form } from './Form';
23
+ export { FormField } from './FormField';
24
+ export { FormGroup } from './FormGroup';
25
+ export { FormHint } from './FormHint';
26
+ export { IconField } from './IconField';
27
+ export { Label } from './Label';
28
+ export { Radio } from './Radio';
29
+ export { RadioGroup } from './RadioGroup';
30
+ export { RequiredAsterisk } from './RequiredAsterisk';
31
+ export { SelectField } from './SelectField';
32
+ export { TextArea } from './TextArea';
33
+ export { TextField } from './TextField';
34
+ export { useNumberField } from './useNumberField';
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}