@launchpad-ui/form 0.8.14 → 0.8.15

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/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/RequiredAsterisk.tsx","../src/Label.tsx","../src/Checkbox.tsx","../src/utils/index.ts","../src/TextField.tsx","../src/CompactTextField.tsx","../src/FieldError.tsx","../src/FieldSet.tsx","../src/Form.tsx","../src/FormGroup.tsx","../src/FormHint.tsx","../src/FormField.tsx","../src/IconField.tsx","../src/Radio.tsx","../src/RadioGroup.tsx","../src/SelectField.tsx","../src/TextArea.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\n\nimport { cx } from 'classix';\n\nimport styles from './styles/Form.module.css';\n\ntype RequiredAsteriskProps = ComponentProps<'span'> & {\n 'data-test-id'?: string;\n};\n\nconst RequiredAsterisk = ({\n className,\n 'data-test-id': testId = 'required-asterisk',\n ...rest\n}: RequiredAsteriskProps) => {\n const classes = cx(styles.requiredAsterisk, className);\n\n return (\n <span {...rest} data-test-id={testId} className={classes}>\n *\n </span>\n );\n};\n\nexport { RequiredAsterisk };\nexport type { RequiredAsteriskProps };\n","import type { ComponentProps } from 'react';\n\nimport { cx } from 'classix';\n\nimport { RequiredAsterisk } from './RequiredAsterisk';\nimport styles from './styles/Form.module.css';\n\ntype LabelProps = ComponentProps<'label'> & {\n required?: boolean;\n optional?: boolean;\n disabled?: boolean;\n 'data-test-id'?: string;\n};\n\nconst Label = ({\n disabled,\n className,\n children,\n required = false,\n optional = false,\n 'data-test-id': testId = 'label',\n ...rest\n}: LabelProps) => {\n const classes = cx(styles.label, className, disabled && styles.labelDisabled);\n\n return (\n <label {...rest} data-test-id={testId} className={classes}>\n {children}\n {optional && !required && <small className={styles.labelOptional}>(optional)</small>}\n {required && !optional && <RequiredAsterisk />}\n </label>\n );\n};\n\nexport { Label };\nexport type { LabelProps };\n","import type { ComponentProps } from 'react';\n\nimport { forwardRef } from 'react';\n\nimport { Label } from './Label';\nimport styles from './styles/Form.module.css';\n\ntype CheckboxProps = ComponentProps<'input'> & {\n /**\n * The className to pass into the Checkbox's Label component\n */\n labelClassName?: string;\n 'data-test-id'?: string;\n};\n\nconst Checkbox = forwardRef<HTMLInputElement, CheckboxProps>(\n (\n {\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n children,\n disabled,\n checked,\n labelClassName,\n 'data-test-id': testId = 'checkbox',\n ...rest\n },\n ref\n ) => {\n const hasAriaLabel = ariaLabel !== undefined || ariaLabelledby !== undefined;\n if (!children && !hasAriaLabel) {\n console.warn(\n 'If you do not provide children, you must specify an aria-label for accessibility'\n );\n }\n\n return (\n <Label className={labelClassName}>\n <input\n {...rest}\n ref={ref}\n checked={checked}\n aria-checked={checked ? 'true' : 'false'}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n className={styles.checkbox}\n disabled={disabled}\n type=\"checkbox\"\n data-test-id={testId}\n />{' '}\n {disabled ? <span className={styles.labelDisabled}>{children}</span> : children}\n </Label>\n );\n }\n);\n\nCheckbox.displayName = 'Checkbox';\n\nexport { Checkbox };\nexport type { CheckboxProps };\n","type FieldPath = string | string[];\n\nconst createFieldErrorId = (fieldIdentifier?: FieldPath) =>\n fieldIdentifier ? `${[...fieldIdentifier].join('')}-err` : undefined;\n\nexport { createFieldErrorId };\nexport type { FieldPath };\n","import type { ComponentProps } from 'react';\n\nimport { cx } from 'classix';\nimport { forwardRef } from 'react';\n\nimport styles from './styles/Form.module.css';\nimport { createFieldErrorId } from './utils';\n\ntype TextFieldProps = ComponentProps<'input'> & {\n suffix?: string;\n tiny?: boolean;\n overrideWidth?: string;\n 'data-test-id'?: string;\n};\n\nconst TextField = forwardRef<HTMLInputElement, TextFieldProps>(\n (\n {\n className,\n type = 'text',\n tiny = false,\n readOnly,\n tabIndex = 0,\n suffix,\n overrideWidth,\n 'data-test-id': testId = 'text-field',\n ...rest\n },\n ref\n ) => {\n const classes = overrideWidth\n ? className\n : cx(styles.formInput, tiny && styles.formInputTiny, className);\n\n if (suffix) {\n return (\n <div className={styles.suffixContainer}>\n <input\n {...rest}\n type={type}\n data-test-id={testId}\n className={classes}\n readOnly={readOnly}\n ref={ref}\n aria-describedby={rest['aria-describedby'] || createFieldErrorId(rest.id)}\n />\n <label className={styles.suffix} htmlFor={rest.id}>\n {suffix}\n </label>\n </div>\n );\n }\n\n return (\n <input\n {...rest}\n type={type}\n className={classes}\n readOnly={readOnly}\n tabIndex={tabIndex}\n ref={ref}\n data-test-id={testId}\n style={\n overrideWidth\n ? {\n width: overrideWidth,\n }\n : undefined\n }\n aria-describedby={rest['aria-describedby'] || createFieldErrorId(rest.id)}\n />\n );\n }\n);\n\nTextField.displayName = 'TextField';\n\nexport { TextField };\nexport type { TextFieldProps };\n","import type { TextFieldProps } from './TextField';\nimport type { FocusEvent } from 'react';\n\nimport { cx } from 'classix';\nimport { forwardRef, useState } from 'react';\n\nimport { Label } from './Label';\nimport { TextField } from './TextField';\nimport styles from './styles/Form.module.css';\n\ntype CompactTextFieldProps = TextFieldProps & {\n label: string;\n needsErrorFeedback?: boolean;\n};\n\nconst CompactTextField = forwardRef<HTMLInputElement, CompactTextFieldProps>(\n (\n {\n className,\n id,\n label,\n needsErrorFeedback,\n value,\n onFocus,\n onBlur,\n 'data-test-id': testId = 'compact-text-field',\n ...rest\n },\n ref\n ) => {\n const [isActive, setIsActive] = useState(\n (typeof value === 'boolean' || value ? value.toString() : '').trim().length !== 0\n );\n\n const isActiveState = isActive || needsErrorFeedback;\n\n const classes = cx(styles.compactTextField, className, isActiveState && styles.isActive);\n\n const placeholder = isActiveState ? '' : label;\n\n const handleFocus = (event: FocusEvent<HTMLInputElement>) => {\n setIsActive(true);\n if (onFocus) {\n onFocus(event);\n }\n };\n\n const handleBlur = (event: FocusEvent<HTMLInputElement>) => {\n const value = event.target.value || '';\n setIsActive(value.trim().length !== 0);\n if (onBlur) {\n onBlur(event);\n }\n };\n\n return (\n <div className={classes} data-test-id={testId}>\n <Label htmlFor={id}>{label}</Label>\n <TextField\n {...rest}\n id={id}\n placeholder={placeholder}\n value={value}\n ref={ref}\n onFocus={handleFocus}\n onBlur={handleBlur}\n />\n </div>\n );\n }\n);\n\nCompactTextField.displayName = 'CompactTextField';\n\nexport { CompactTextField };\nexport type { CompactTextFieldProps };\n","import type { FieldPath } from './utils';\nimport type { ComponentProps } from 'react';\n\nimport { AlertRhombus } from '@launchpad-ui/icons';\nimport { cx } from 'classix';\n\nimport styles from './styles/Form.module.css';\nimport { createFieldErrorId } from './utils';\n\ntype FieldErrorProps = ComponentProps<'span'> & {\n name: FieldPath;\n errorMessage?: string;\n 'data-test-id'?: string;\n};\n\nconst FieldError = ({\n name,\n errorMessage,\n className,\n 'data-test-id': testId = 'field-error',\n ...rest\n}: FieldErrorProps) => {\n if (!errorMessage) {\n return null;\n }\n\n return (\n <span\n {...rest}\n className={cx(styles.fieldError, className)}\n aria-live=\"polite\"\n data-test-id={testId}\n aria-label=\"Error\"\n id={createFieldErrorId(name)}\n >\n <AlertRhombus size=\"small\" /> {errorMessage}\n </span>\n );\n};\n\nexport { FieldError };\nexport type { FieldErrorProps };\n","import type { ComponentProps } from 'react';\n\nimport { cx } from 'classix';\n\nimport styles from './styles/Form.module.css';\n\ntype FieldSetProps = ComponentProps<'fieldset'> & {\n 'data-test-id'?: string;\n};\n\nconst FieldSet = ({\n children,\n className,\n 'data-test-id': testId = 'field-set',\n ...rest\n}: FieldSetProps) => {\n const classes = cx(styles.fieldSet, className);\n\n return (\n <fieldset data-test-id={testId} className={classes} {...rest}>\n {children}\n </fieldset>\n );\n};\n\nexport { FieldSet };\nexport type { FieldSetProps };\n","import type { ComponentProps } from 'react';\n\nimport { cx } from 'classix';\n\nimport styles from './styles/Form.module.css';\n\ntype FormProps = ComponentProps<'form'> & {\n inline?: boolean;\n // Increases margin between form fields to make room for error messages.\n // This prevents the form from shifting when rendering a field error.\n // This may be desired when the form contains external links that will\n // shift while clicking if the form shifts from validation.\n hasIncreasedErrorMargin?: boolean;\n 'data-test-id'?: string;\n};\n\nconst Form = (props: FormProps) => {\n const {\n className,\n inline,\n children,\n hasIncreasedErrorMargin,\n 'data-test-id': testId = 'form',\n ...rest\n } = props;\n\n const classes = cx(\n styles.form,\n className,\n inline && styles.formInline,\n !!hasIncreasedErrorMargin && styles.formIncreasedErrorMargin\n );\n\n return (\n <form {...rest} data-test-id={testId} className={classes}>\n {children}\n </form>\n );\n};\n\nexport { Form };\nexport type { FormProps };\n","import type { ComponentProps } from 'react';\n\nimport { cx } from 'classix';\n\nimport styles from './styles/Form.module.css';\n\ntype FormGroupProps = ComponentProps<'fieldset'> & {\n name?: string | string[];\n ignoreValidation?: boolean;\n isInvalid?: boolean;\n 'data-test-id'?: string;\n};\n\nconst FormGroup = (props: FormGroupProps) => {\n const {\n className,\n name,\n ignoreValidation,\n isInvalid,\n children,\n 'data-test-id': testId = 'form-group',\n ...rest\n } = props;\n\n const classes = cx(\n styles.formGroup,\n className,\n !ignoreValidation && isInvalid && styles.isInvalid\n );\n\n return (\n <fieldset className={classes} data-test-id={testId} {...rest}>\n {children}\n </fieldset>\n );\n};\n\nexport { FormGroup };\nexport type { FormGroupProps };\n","import type { ComponentProps } from 'react';\n\nimport { cx } from 'classix';\n\nimport styles from './styles/Form.module.css';\n\ntype FormHintProps = ComponentProps<'div'> & {\n 'data-test-id'?: string;\n};\n\nconst FormHint = ({\n className,\n children,\n 'data-test-id': testId = 'form-hint',\n ...rest\n}: FormHintProps) => {\n const classes = cx(styles.hint, className);\n\n return (\n <div {...rest} data-test-id={testId} className={classes}>\n {children}\n </div>\n );\n};\n\nexport { FormHint };\nexport type { FormHintProps };\n","import { cx } from 'classix';\n\nimport { FieldError } from './FieldError';\nimport { FormGroup } from './FormGroup';\nimport { FormHint } from './FormHint';\nimport { Label } from './Label';\nimport styles from './styles/Form.module.css';\n\ntype FormFieldProps = {\n isRequired: boolean;\n label?: string;\n name: string;\n htmlFor: string;\n hint?: string;\n errorMessage?: string;\n ignoreValidation?: boolean;\n isInvalid?: boolean;\n children: JSX.Element;\n className?: string;\n onBlur?: (field: string) => void;\n 'data-test-id'?: string;\n};\n\nconst FormField = ({\n isRequired,\n label,\n name,\n htmlFor,\n hint,\n errorMessage,\n ignoreValidation,\n isInvalid,\n children,\n className,\n onBlur,\n 'data-test-id': testId = 'form-field',\n}: FormFieldProps) => {\n const handleBlur = () => {\n onBlur && onBlur(name);\n };\n\n return (\n <FormGroup\n className={cx(styles.field, className)}\n name={name}\n ignoreValidation={ignoreValidation}\n isInvalid={isInvalid}\n onBlur={handleBlur}\n data-test-id={testId}\n >\n {label && (\n <Label htmlFor={htmlFor} required={isRequired}>\n {label}\n </Label>\n )}\n {hint && <FormHint className={styles.hint}>{hint}</FormHint>}\n {children}\n <FieldError className={styles.fieldErrorMessage} name={name} errorMessage={errorMessage} />\n </FormGroup>\n );\n};\n\nexport type { FormFieldProps };\nexport { FormField };\n","import type { IconProps } from '@launchpad-ui/icons';\nimport type { ComponentProps } from 'react';\n\nimport { cx } from 'classix';\n\nimport styles from './styles/Form.module.css';\n\ntype IconFieldProps = ComponentProps<'div'> & {\n icon(args: IconProps): JSX.Element;\n children: JSX.Element | JSX.Element[];\n 'data-test-id'?: string;\n};\n\nconst IconField = ({\n icon,\n children,\n className,\n 'data-test-id': testId = 'icon-field',\n ...rest\n}: IconFieldProps) => {\n const Icon = icon;\n\n const classes = cx(styles.iconField, className);\n\n return (\n <div className={classes} data-test-id={testId} {...rest}>\n {children}\n <Icon size=\"small\" className={styles.iconFieldIcon} />\n </div>\n );\n};\n\nexport { IconField };\nexport type { IconFieldProps };\n","import type { CSSProperties, ComponentProps } from 'react';\n\nimport { cx } from 'classix';\n\nimport { Label } from './Label';\nimport styles from './styles/Form.module.css';\n\ntype RadioProps = Omit<ComponentProps<'input'>, 'type'> & {\n labelClassName?: string;\n labelStyle?: CSSProperties;\n 'data-test-id'?: string;\n};\n\nconst Radio = ({\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n checked = false,\n children,\n className,\n disabled = false,\n id,\n labelClassName,\n labelStyle,\n 'data-test-id': testId = 'radio',\n ...rest\n}: RadioProps) => {\n const hasAriaLabel = ariaLabel !== undefined || ariaLabelledby !== undefined;\n\n if (!children && !hasAriaLabel) {\n console.warn(\n 'If you do not provide children, you must specify an aria-label for accessibility'\n );\n }\n\n return (\n <>\n <input\n {...rest}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n className={cx(styles.radio, className)}\n checked={checked}\n disabled={disabled}\n id={id}\n data-test-id={testId}\n type=\"radio\"\n />\n <Label className={labelClassName} htmlFor={id} style={labelStyle}>\n {disabled ? <span className={styles.labelDisabled}>{children}</span> : children}\n </Label>\n </>\n );\n};\n\nexport { Radio };\nexport type { RadioProps };\n","import type { ChangeEvent, FormEvent, ReactElement, ReactNode } from 'react';\n\nimport { VisuallyHidden } from '@react-aria/visually-hidden';\nimport { Children, cloneElement, isValidElement, useRef } from 'react';\n\nimport { Label } from './Label';\nimport { Radio } from './Radio';\n\ntype RadioGroupProps = {\n /**\n * The legend that describes this groups of radio buttons. The legend\n * is important for screen reader users.\n */\n legend?: string;\n /**\n * The children passed into the RadioGroup.\n */\n children?: ReactNode;\n /**\n * Custom classname(s) passed to the fieldset inner div.\n */\n className?: string;\n /**\n * Set the underlying Radio to disabled if the Radio's disabled prop is undefined.\n */\n disabled?: boolean;\n /**\n * The RadioGroup's id.\n */\n id?: string;\n /**\n * 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.\n */\n name: string;\n /**\n * This function is passed into each Radio onChange synthetic event handler.\n */\n onChange?(e: ChangeEvent | FormEvent<HTMLInputElement>): void;\n /**\n * The value to compare against the Radio's value to determine if the Radio will be checked.\n */\n value: string;\n\n 'data-test-id'?: string;\n};\n\nconst RadioGroup = (props: RadioGroupProps) => {\n const {\n name,\n value,\n onChange,\n children,\n disabled,\n legend,\n 'data-test-id': testId = 'radio-group',\n ...rest\n } = props;\n const fieldsetRef = useRef<HTMLFieldSetElement>(null);\n\n function updateRadioElems(elem: ReactNode): ReactNode {\n if (!isValidElement(elem)) {\n return elem;\n }\n\n const item = elem as ReactElement;\n\n if (item?.type && item.type === Radio) {\n return cloneElement(item, {\n ...item.props,\n name,\n checked: item.props.value === value,\n onChange,\n disabled: typeof item.props?.disabled !== 'undefined' ? item.props.disabled : disabled,\n });\n }\n\n if (item?.type && item.type === Label) {\n return cloneElement(item, {\n ...item.props,\n onChange,\n disabled,\n });\n }\n\n const elemChildren = item?.props?.children;\n if (elemChildren) {\n if (Array.isArray(elemChildren)) {\n return cloneElement(item, {\n children: Children.map(elemChildren, (elemChild) => updateRadioElems(elemChild)),\n });\n }\n return cloneElement(item, {\n children: updateRadioElems(elemChildren),\n });\n }\n\n if (item?.type && item.type !== Radio && item.type !== Label) {\n return item;\n }\n\n return null;\n }\n\n const radios = Children.map(children, (child) => updateRadioElems(child));\n return (\n <fieldset data-test-id={testId} ref={fieldsetRef}>\n {legend && (\n <legend>\n <VisuallyHidden>{legend}</VisuallyHidden>\n </legend>\n )}\n <div {...rest}>{radios}</div>\n </fieldset>\n );\n};\n\nexport { RadioGroup };\nexport type { RadioGroupProps };\n","import type { ComponentProps } from 'react';\n\nimport { cx } from 'classix';\nimport { forwardRef } from 'react';\n\nimport styles from './styles/Form.module.css';\n\ntype SelectFieldProps = ComponentProps<'select'> & {\n 'data-test-id'?: string;\n};\n\nconst SelectField = forwardRef<HTMLSelectElement, SelectFieldProps>(\n ({ className, children, 'data-test-id': testId = 'select', ...rest }: SelectFieldProps, ref) => {\n const classes = cx(styles.formInput, className);\n\n return (\n <select {...rest} data-test-id={testId} className={classes} ref={ref}>\n {children}\n </select>\n );\n }\n);\n\nSelectField.displayName = 'SelectField';\n\nexport { SelectField };\nexport type { SelectFieldProps };\n","import type { KeyboardEvent, ComponentProps } from 'react';\n\nimport { cx } from 'classix';\nimport { forwardRef } from 'react';\n\nimport styles from './styles/Form.module.css';\nimport { createFieldErrorId } from './utils';\n\ntype TextAreaProps = ComponentProps<'textarea'> & {\n 'data-test-id'?: string;\n};\n\nconst TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(\n ({ className, 'data-test-id': testId = 'text-area', ...props }, ref) => {\n const onKeyDown = (e: KeyboardEvent<HTMLTextAreaElement>) => {\n if (\n e.key === 'ArrowRight' ||\n e.key === 'ArrowDown' ||\n e.key === 'ArrowUp' ||\n e.key === 'ArrowLeft'\n ) {\n e.stopPropagation();\n }\n if (e.key === 'Escape') {\n e.nativeEvent.stopImmediatePropagation();\n }\n };\n\n return (\n <textarea\n {...props}\n className={cx(styles.formInput, className)}\n ref={ref}\n data-test-id={testId}\n aria-describedby={props['aria-describedby'] || createFieldErrorId(props.id)}\n onKeyDown={onKeyDown}\n />\n );\n }\n);\n\nTextArea.displayName = 'TextArea';\n\nexport { TextArea };\nexport type { TextAreaProps };\n"],"names":["cx","jsx","forwardRef","jsxs","suffix","label","isActive","useState","value","AlertRhombus","isInvalid","hint","Fragment","useRef","isValidElement","cloneElement","Children","VisuallyHidden"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,MAAM,mBAAmB,CAAC;AAAA,EACxB;AAAA,EACA,gBAAgB,SAAS;AAAA,EACzB,GAAG;AACL,MAA6B;AAC3B,QAAM,UAAUA,QAAA,GAAG,OAAO,kBAAkB,SAAS;AAGnD,SAAAC,+BAAC,UAAM,GAAG,MAAM,gBAAc,QAAQ,WAAW,SAAS,UAE1D,IAAA,CAAA;AAEJ;ACRA,MAAM,QAAQ,CAAC;AAAA,EACb;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX,WAAW;AAAA,EACX,gBAAgB,SAAS;AAAA,EACzB,GAAG;AACL,MAAkB;AAChB,QAAM,UAAUD,QAAG,GAAA,OAAO,OAAO,WAAW,YAAY,OAAO,aA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AE,WAAW,gBAAgB,SAAS,aAAa,GAAG,MAAM,GAAG,QAAQ;AAChE,UAAA,YAAY,CAAC,MAA0C;AAEzD,UAAA,EAAE,QAAQ,gBACV,EAAE,QAAQ,eACV,EAAE,QAAQ,aACV,EAAE,QAAQ,aACV;AACA,UAAE,gBAAgB;AAAA,MACpB;AACI,UAAA,EAAE,QAAQ,UAAU;AACtB,UAAE,YAAY;MAChB;AAAA,IAAA;AAIA,WAAAD,2BAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACE,GAAG;AAAA,QACJ,WAAWD,QAAA,GAAG,OAAO,WAAW,SAAS;AAAA,QACzC;AAAA,QACA,gBAAc;AAAA,QACd,oBAAkB,MAAM,kBAAkB,KAAK,mBAAmB,MAAM,EAAE;AAAA,QAC1E;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AAEA,SAAS,cAAc;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/RequiredAsterisk.tsx","../src/Label.tsx","../src/Checkbox.tsx","../src/utils/index.ts","../src/TextField.tsx","../src/CompactTextField.tsx","../src/FieldError.tsx","../src/FieldSet.tsx","../src/Form.tsx","../src/FormGroup.tsx","../src/FormHint.tsx","../src/FormField.tsx","../src/IconField.tsx","../src/Radio.tsx","../src/RadioGroup.tsx","../src/SelectField.tsx","../src/TextArea.tsx","../src/useNumberField.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\n\nimport { cx } from 'classix';\n\nimport styles from './styles/Form.module.css';\n\ntype RequiredAsteriskProps = ComponentProps<'span'> & {\n 'data-test-id'?: string;\n};\n\nconst RequiredAsterisk = ({\n className,\n 'data-test-id': testId = 'required-asterisk',\n ...rest\n}: RequiredAsteriskProps) => {\n const classes = cx(styles.requiredAsterisk, className);\n\n return (\n <span {...rest} data-test-id={testId} className={classes}>\n *\n </span>\n );\n};\n\nexport { RequiredAsterisk };\nexport type { RequiredAsteriskProps };\n","import type { ComponentProps } from 'react';\n\nimport { cx } from 'classix';\n\nimport { RequiredAsterisk } from './RequiredAsterisk';\nimport styles from './styles/Form.module.css';\n\ntype LabelProps = ComponentProps<'label'> & {\n required?: boolean;\n optional?: boolean;\n disabled?: boolean;\n 'data-test-id'?: string;\n};\n\nconst Label = ({\n disabled,\n className,\n children,\n required = false,\n optional = false,\n 'data-test-id': testId = 'label',\n ...rest\n}: LabelProps) => {\n const classes = cx(styles.label, className, disabled && styles.labelDisabled);\n\n return (\n <label {...rest} data-test-id={testId} className={classes}>\n {children}\n {optional && !required && <small className={styles.labelOptional}>(optional)</small>}\n {required && !optional && <RequiredAsterisk />}\n </label>\n );\n};\n\nexport { Label };\nexport type { LabelProps };\n","import type { ComponentProps } from 'react';\n\nimport { forwardRef } from 'react';\n\nimport { Label } from './Label';\nimport styles from './styles/Form.module.css';\n\ntype CheckboxProps = ComponentProps<'input'> & {\n /**\n * The className to pass into the Checkbox's Label component\n */\n labelClassName?: string;\n 'data-test-id'?: string;\n};\n\nconst Checkbox = forwardRef<HTMLInputElement, CheckboxProps>(\n (\n {\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n children,\n disabled,\n checked,\n labelClassName,\n 'data-test-id': testId = 'checkbox',\n ...rest\n },\n ref\n ) => {\n const hasAriaLabel = ariaLabel !== undefined || ariaLabelledby !== undefined;\n if (!children && !hasAriaLabel) {\n console.warn(\n 'If you do not provide children, you must specify an aria-label for accessibility'\n );\n }\n\n return (\n <Label className={labelClassName}>\n <input\n {...rest}\n ref={ref}\n checked={checked}\n aria-checked={checked ? 'true' : 'false'}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n className={styles.checkbox}\n disabled={disabled}\n type=\"checkbox\"\n data-test-id={testId}\n />{' '}\n {disabled ? <span className={styles.labelDisabled}>{children}</span> : children}\n </Label>\n );\n }\n);\n\nCheckbox.displayName = 'Checkbox';\n\nexport { Checkbox };\nexport type { CheckboxProps };\n","import { useMemo, useRef } from 'react';\n\ntype FieldPath = string | string[];\n\nconst createFieldErrorId = (fieldIdentifier?: FieldPath) =>\n fieldIdentifier ? `${[...fieldIdentifier].join('')}-err` : undefined;\n\nfunction hasObjectChanged<T extends object>(obj1: T, obj2: T): boolean {\n return (\n Object.keys(obj1).length !== Object.keys(obj2).length ||\n Object.keys(obj1).some((k) => {\n const key = k as keyof T;\n return typeof obj1[key] === 'object' && typeof obj2[key] === 'object'\n ? hasObjectChanged(obj1[key] as T, obj2[key] as T)\n : obj1[key] !== obj2[key];\n })\n );\n}\n\nfunction useObjectMemo<T extends object>(obj: T) {\n const objRef = useRef(obj);\n\n return useMemo(() => {\n if (hasObjectChanged(obj, objRef.current)) {\n objRef.current = obj;\n }\n\n return objRef.current;\n }, [obj]);\n}\n\nexport { createFieldErrorId, useObjectMemo };\nexport type { FieldPath };\n","import type { ComponentProps } from 'react';\n\nimport { cx } from 'classix';\nimport { forwardRef } from 'react';\n\nimport styles from './styles/Form.module.css';\nimport { createFieldErrorId } from './utils';\n\ntype TextFieldProps = ComponentProps<'input'> & {\n suffix?: string;\n tiny?: boolean;\n overrideWidth?: string;\n 'data-test-id'?: string;\n};\n\nconst TextField = forwardRef<HTMLInputElement, TextFieldProps>(\n (\n {\n className,\n type = 'text',\n tiny = false,\n readOnly,\n tabIndex = 0,\n suffix,\n overrideWidth,\n 'data-test-id': testId = 'text-field',\n ...rest\n },\n ref\n ) => {\n const classes = overrideWidth\n ? className\n : cx(styles.formInput, tiny && styles.formInputTiny, className);\n\n if (suffix) {\n return (\n <div className={styles.suffixContainer}>\n <input\n {...rest}\n type={type}\n data-test-id={testId}\n className={classes}\n readOnly={readOnly}\n ref={ref}\n aria-describedby={rest['aria-describedby'] || createFieldErrorId(rest.id)}\n />\n <label className={styles.suffix} htmlFor={rest.id}>\n {suffix}\n </label>\n </div>\n );\n }\n\n return (\n <input\n {...rest}\n type={type}\n className={classes}\n readOnly={readOnly}\n tabIndex={tabIndex}\n ref={ref}\n data-test-id={testId}\n style={\n overrideWidth\n ? {\n width: overrideWidth,\n }\n : undefined\n }\n aria-describedby={rest['aria-describedby'] || createFieldErrorId(rest.id)}\n />\n );\n }\n);\n\nTextField.displayName = 'TextField';\n\nexport { TextField };\nexport type { TextFieldProps };\n","import type { TextFieldProps } from './TextField';\nimport type { FocusEvent } from 'react';\n\nimport { cx } from 'classix';\nimport { forwardRef, useState } from 'react';\n\nimport { Label } from './Label';\nimport { TextField } from './TextField';\nimport styles from './styles/Form.module.css';\n\ntype CompactTextFieldProps = TextFieldProps & {\n label: string;\n needsErrorFeedback?: boolean;\n};\n\nconst CompactTextField = forwardRef<HTMLInputElement, CompactTextFieldProps>(\n (\n {\n className,\n id,\n label,\n needsErrorFeedback,\n value,\n onFocus,\n onBlur,\n 'data-test-id': testId = 'compact-text-field',\n ...rest\n },\n ref\n ) => {\n const [isActive, setIsActive] = useState(\n (typeof value === 'boolean' || value ? value.toString() : '').trim().length !== 0\n );\n\n const isActiveState = isActive || needsErrorFeedback;\n\n const classes = cx(styles.compactTextField, className, isActiveState && styles.isActive);\n\n const placeholder = isActiveState ? '' : label;\n\n const handleFocus = (event: FocusEvent<HTMLInputElement>) => {\n setIsActive(true);\n if (onFocus) {\n onFocus(event);\n }\n };\n\n const handleBlur = (event: FocusEvent<HTMLInputElement>) => {\n const value = event.target.value || '';\n setIsActive(value.trim().length !== 0);\n if (onBlur) {\n onBlur(event);\n }\n };\n\n return (\n <div className={classes} data-test-id={testId}>\n <Label htmlFor={id}>{label}</Label>\n <TextField\n {...rest}\n id={id}\n placeholder={placeholder}\n value={value}\n ref={ref}\n onFocus={handleFocus}\n onBlur={handleBlur}\n />\n </div>\n );\n }\n);\n\nCompactTextField.displayName = 'CompactTextField';\n\nexport { CompactTextField };\nexport type { CompactTextFieldProps };\n","import type { FieldPath } from './utils';\nimport type { ComponentProps } from 'react';\n\nimport { AlertRhombus } from '@launchpad-ui/icons';\nimport { cx } from 'classix';\n\nimport styles from './styles/Form.module.css';\nimport { createFieldErrorId } from './utils';\n\ntype FieldErrorProps = ComponentProps<'span'> & {\n name: FieldPath;\n errorMessage?: string;\n 'data-test-id'?: string;\n};\n\nconst FieldError = ({\n name,\n errorMessage,\n className,\n 'data-test-id': testId = 'field-error',\n ...rest\n}: FieldErrorProps) => {\n if (!errorMessage) {\n return null;\n }\n\n return (\n <span\n {...rest}\n className={cx(styles.fieldError, className)}\n aria-live=\"polite\"\n data-test-id={testId}\n aria-label=\"Error\"\n id={createFieldErrorId(name)}\n >\n <AlertRhombus size=\"small\" /> {errorMessage}\n </span>\n );\n};\n\nexport { FieldError };\nexport type { FieldErrorProps };\n","import type { ComponentProps } from 'react';\n\nimport { cx } from 'classix';\n\nimport styles from './styles/Form.module.css';\n\ntype FieldSetProps = ComponentProps<'fieldset'> & {\n 'data-test-id'?: string;\n};\n\nconst FieldSet = ({\n children,\n className,\n 'data-test-id': testId = 'field-set',\n ...rest\n}: FieldSetProps) => {\n const classes = cx(styles.fieldSet, className);\n\n return (\n <fieldset data-test-id={testId} className={classes} {...rest}>\n {children}\n </fieldset>\n );\n};\n\nexport { FieldSet };\nexport type { FieldSetProps };\n","import type { ComponentProps } from 'react';\n\nimport { cx } from 'classix';\n\nimport styles from './styles/Form.module.css';\n\ntype FormProps = ComponentProps<'form'> & {\n inline?: boolean;\n // Increases margin between form fields to make room for error messages.\n // This prevents the form from shifting when rendering a field error.\n // This may be desired when the form contains external links that will\n // shift while clicking if the form shifts from validation.\n hasIncreasedErrorMargin?: boolean;\n 'data-test-id'?: string;\n};\n\nconst Form = (props: FormProps) => {\n const {\n className,\n inline,\n children,\n hasIncreasedErrorMargin,\n 'data-test-id': testId = 'form',\n ...rest\n } = props;\n\n const classes = cx(\n styles.form,\n className,\n inline && styles.formInline,\n !!hasIncreasedErrorMargin && styles.formIncreasedErrorMargin\n );\n\n return (\n <form {...rest} data-test-id={testId} className={classes}>\n {children}\n </form>\n );\n};\n\nexport { Form };\nexport type { FormProps };\n","import type { ComponentProps } from 'react';\n\nimport { cx } from 'classix';\n\nimport styles from './styles/Form.module.css';\n\ntype FormGroupProps = ComponentProps<'fieldset'> & {\n name?: string | string[];\n ignoreValidation?: boolean;\n isInvalid?: boolean;\n 'data-test-id'?: string;\n};\n\nconst FormGroup = (props: FormGroupProps) => {\n const {\n className,\n name,\n ignoreValidation,\n isInvalid,\n children,\n 'data-test-id': testId = 'form-group',\n ...rest\n } = props;\n\n const classes = cx(\n styles.formGroup,\n className,\n !ignoreValidation && isInvalid && styles.isInvalid\n );\n\n return (\n <fieldset className={classes} data-test-id={testId} {...rest}>\n {children}\n </fieldset>\n );\n};\n\nexport { FormGroup };\nexport type { FormGroupProps };\n","import type { ComponentProps } from 'react';\n\nimport { cx } from 'classix';\n\nimport styles from './styles/Form.module.css';\n\ntype FormHintProps = ComponentProps<'div'> & {\n 'data-test-id'?: string;\n};\n\nconst FormHint = ({\n className,\n children,\n 'data-test-id': testId = 'form-hint',\n ...rest\n}: FormHintProps) => {\n const classes = cx(styles.hint, className);\n\n return (\n <div {...rest} data-test-id={testId} className={classes}>\n {children}\n </div>\n );\n};\n\nexport { FormHint };\nexport type { FormHintProps };\n","import type { FieldErrorProps } from './FieldError';\nimport type { FormHintProps } from './FormHint';\nimport type { LabelProps } from './Label';\n\nimport { cx } from 'classix';\n\nimport { FieldError } from './FieldError';\nimport { FormGroup } from './FormGroup';\nimport { FormHint } from './FormHint';\nimport { Label } from './Label';\nimport styles from './styles/Form.module.css';\n\ntype FormFieldProps = {\n isRequired: boolean;\n label?: string;\n name: string;\n htmlFor: string;\n hint?: string;\n errorMessage?: string;\n ignoreValidation?: boolean;\n isInvalid?: boolean;\n children: JSX.Element;\n className?: string;\n onBlur?: (field: string) => void;\n 'data-test-id'?: string;\n LabelProps?: Partial<LabelProps>;\n FormHintProps?: Partial<FormHintProps>;\n FieldErrorProps?: Partial<FieldErrorProps>;\n};\n\nconst FormField = ({\n isRequired,\n label,\n name,\n htmlFor,\n hint,\n errorMessage,\n ignoreValidation,\n isInvalid,\n children,\n className,\n onBlur,\n 'data-test-id': testId = 'form-field',\n LabelProps = {},\n FormHintProps = {},\n FieldErrorProps = {},\n}: FormFieldProps) => {\n const handleBlur = () => {\n onBlur && onBlur(name);\n };\n\n return (\n <FormGroup\n className={cx(styles.field, className)}\n name={name}\n ignoreValidation={ignoreValidation}\n isInvalid={isInvalid}\n onBlur={handleBlur}\n data-test-id={testId}\n >\n {label && (\n <Label htmlFor={htmlFor} required={isRequired} {...LabelProps}>\n {label}\n </Label>\n )}\n {hint && (\n <FormHint className={styles.hint} {...FormHintProps}>\n {hint}\n </FormHint>\n )}\n {children}\n <FieldError\n className={styles.fieldErrorMessage}\n name={name}\n errorMessage={errorMessage}\n {...FieldErrorProps}\n />\n </FormGroup>\n );\n};\n\nexport type { FormFieldProps };\nexport { FormField };\n","import type { IconProps } from '@launchpad-ui/icons';\nimport type { ComponentProps } from 'react';\n\nimport { cx } from 'classix';\n\nimport styles from './styles/Form.module.css';\n\ntype IconFieldProps = ComponentProps<'div'> & {\n icon(args: IconProps): JSX.Element;\n children: JSX.Element | JSX.Element[];\n 'data-test-id'?: string;\n};\n\nconst IconField = ({\n icon,\n children,\n className,\n 'data-test-id': testId = 'icon-field',\n ...rest\n}: IconFieldProps) => {\n const Icon = icon;\n\n const classes = cx(styles.iconField, className);\n\n return (\n <div className={classes} data-test-id={testId} {...rest}>\n {children}\n <Icon size=\"small\" className={styles.iconFieldIcon} />\n </div>\n );\n};\n\nexport { IconField };\nexport type { IconFieldProps };\n","import type { CSSProperties, ComponentProps } from 'react';\n\nimport { cx } from 'classix';\n\nimport { Label } from './Label';\nimport styles from './styles/Form.module.css';\n\ntype RadioProps = Omit<ComponentProps<'input'>, 'type'> & {\n labelClassName?: string;\n labelStyle?: CSSProperties;\n 'data-test-id'?: string;\n};\n\nconst Radio = ({\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n checked = false,\n children,\n className,\n disabled = false,\n id,\n labelClassName,\n labelStyle,\n 'data-test-id': testId = 'radio',\n ...rest\n}: RadioProps) => {\n const hasAriaLabel = ariaLabel !== undefined || ariaLabelledby !== undefined;\n\n if (!children && !hasAriaLabel) {\n console.warn(\n 'If you do not provide children, you must specify an aria-label for accessibility'\n );\n }\n\n return (\n <>\n <input\n {...rest}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n className={cx(styles.radio, className)}\n checked={checked}\n disabled={disabled}\n id={id}\n data-test-id={testId}\n type=\"radio\"\n />\n <Label className={labelClassName} htmlFor={id} style={labelStyle}>\n {disabled ? <span className={styles.labelDisabled}>{children}</span> : children}\n </Label>\n </>\n );\n};\n\nexport { Radio };\nexport type { RadioProps };\n","import type { ChangeEvent, FormEvent, ReactElement, ReactNode } from 'react';\n\nimport { VisuallyHidden } from '@react-aria/visually-hidden';\nimport { Children, cloneElement, isValidElement, useRef } from 'react';\n\nimport { Label } from './Label';\nimport { Radio } from './Radio';\n\ntype RadioGroupProps = {\n /**\n * The legend that describes this groups of radio buttons. The legend\n * is important for screen reader users.\n */\n legend?: string;\n /**\n * The children passed into the RadioGroup.\n */\n children?: ReactNode;\n /**\n * Custom classname(s) passed to the fieldset inner div.\n */\n className?: string;\n /**\n * Set the underlying Radio to disabled if the Radio's disabled prop is undefined.\n */\n disabled?: boolean;\n /**\n * The RadioGroup's id.\n */\n id?: string;\n /**\n * 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.\n */\n name: string;\n /**\n * This function is passed into each Radio onChange synthetic event handler.\n */\n onChange?(e: ChangeEvent | FormEvent<HTMLInputElement>): void;\n /**\n * The value to compare against the Radio's value to determine if the Radio will be checked.\n */\n value: string;\n\n 'data-test-id'?: string;\n};\n\nconst RadioGroup = (props: RadioGroupProps) => {\n const {\n name,\n value,\n onChange,\n children,\n disabled,\n legend,\n 'data-test-id': testId = 'radio-group',\n ...rest\n } = props;\n const fieldsetRef = useRef<HTMLFieldSetElement>(null);\n\n function updateRadioElems(elem: ReactNode): ReactNode {\n if (!isValidElement(elem)) {\n return elem;\n }\n\n const item = elem as ReactElement;\n\n if (item?.type && item.type === Radio) {\n return cloneElement(item, {\n ...item.props,\n name,\n checked: item.props.value === value,\n onChange,\n disabled: typeof item.props?.disabled !== 'undefined' ? item.props.disabled : disabled,\n });\n }\n\n if (item?.type && item.type === Label) {\n return cloneElement(item, {\n ...item.props,\n onChange,\n disabled,\n });\n }\n\n const elemChildren = item?.props?.children;\n if (elemChildren) {\n if (Array.isArray(elemChildren)) {\n return cloneElement(item, {\n children: Children.map(elemChildren, (elemChild) => updateRadioElems(elemChild)),\n });\n }\n return cloneElement(item, {\n children: updateRadioElems(elemChildren),\n });\n }\n\n if (item?.type && item.type !== Radio && item.type !== Label) {\n return item;\n }\n\n return null;\n }\n\n const radios = Children.map(children, (child) => updateRadioElems(child));\n return (\n <fieldset data-test-id={testId} ref={fieldsetRef}>\n {legend && (\n <legend>\n <VisuallyHidden>{legend}</VisuallyHidden>\n </legend>\n )}\n <div {...rest}>{radios}</div>\n </fieldset>\n );\n};\n\nexport { RadioGroup };\nexport type { RadioGroupProps };\n","import type { ComponentProps } from 'react';\n\nimport { cx } from 'classix';\nimport { forwardRef } from 'react';\n\nimport styles from './styles/Form.module.css';\n\ntype SelectFieldProps = ComponentProps<'select'> & {\n 'data-test-id'?: string;\n};\n\nconst SelectField = forwardRef<HTMLSelectElement, SelectFieldProps>(\n ({ className, children, 'data-test-id': testId = 'select', ...rest }: SelectFieldProps, ref) => {\n const classes = cx(styles.formInput, className);\n\n return (\n <select {...rest} data-test-id={testId} className={classes} ref={ref}>\n {children}\n </select>\n );\n }\n);\n\nSelectField.displayName = 'SelectField';\n\nexport { SelectField };\nexport type { SelectFieldProps };\n","import type { KeyboardEvent, ComponentProps } from 'react';\n\nimport { cx } from 'classix';\nimport { forwardRef } from 'react';\n\nimport styles from './styles/Form.module.css';\nimport { createFieldErrorId } from './utils';\n\ntype TextAreaProps = ComponentProps<'textarea'> & {\n 'data-test-id'?: string;\n};\n\nconst TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(\n ({ className, 'data-test-id': testId = 'text-area', ...props }, ref) => {\n const onKeyDown = (e: KeyboardEvent<HTMLTextAreaElement>) => {\n if (\n e.key === 'ArrowRight' ||\n e.key === 'ArrowDown' ||\n e.key === 'ArrowUp' ||\n e.key === 'ArrowLeft'\n ) {\n e.stopPropagation();\n }\n if (e.key === 'Escape') {\n e.nativeEvent.stopImmediatePropagation();\n }\n };\n\n return (\n <textarea\n {...props}\n className={cx(styles.formInput, className)}\n ref={ref}\n data-test-id={testId}\n aria-describedby={props['aria-describedby'] || createFieldErrorId(props.id)}\n onKeyDown={onKeyDown}\n />\n );\n }\n);\n\nTextArea.displayName = 'TextArea';\n\nexport { TextArea };\nexport type { TextAreaProps };\n","import type { AriaButtonProps } from '@react-aria/button';\nimport type { AriaNumberFieldProps } from '@react-aria/numberfield';\n\nimport { ExpandLess, ExpandMore } from '@launchpad-ui/icons';\nimport { useButton } from '@react-aria/button';\nimport { useLocale } from '@react-aria/i18n';\nimport { useNumberField as useReactAriaNumberField } from '@react-aria/numberfield';\nimport { useNumberFieldState } from '@react-stately/numberfield';\nimport { cx } from 'classix';\nimport { useRef } from 'react';\n\nimport styles from './styles/Form.module.css';\nimport { useObjectMemo } from './utils';\n\ntype UseNumberFieldProps = AriaNumberFieldProps & {\n className?: string;\n 'data-test-id'?: string;\n id?: string;\n name?: string;\n};\n\nconst defaultFormatOptions: Intl.NumberFormatOptions = {\n maximumFractionDigits: 6,\n};\n\nconst useNumberField = ({\n className: rootClassName,\n 'data-test-id': testId = 'input',\n id,\n name,\n ...otherProps\n}: UseNumberFieldProps = {}): {\n fieldErrorProps: ReturnType<typeof useReactAriaNumberField>['errorMessageProps'];\n formHintProps: ReturnType<typeof useReactAriaNumberField>['descriptionProps'];\n labelProps: ReturnType<typeof useReactAriaNumberField>['labelProps'];\n renderNumberField: () => JSX.Element;\n} => {\n // @react-aria's hooks have a state-updating effect somewhere that depends on \"formatOptions\",\n // so we need to memoize it to prevent an infinite render loop.\n const formatOptions = useObjectMemo({\n ...defaultFormatOptions,\n ...otherProps.formatOptions,\n });\n const { locale } = useLocale();\n const numberFieldState = useNumberFieldState({ ...otherProps, locale, formatOptions });\n const inputRef = useRef<HTMLInputElement>(null);\n const {\n descriptionProps: formHintProps,\n errorMessageProps: fieldErrorProps,\n labelProps,\n groupProps,\n inputProps,\n incrementButtonProps,\n decrementButtonProps,\n } = useReactAriaNumberField({ ...otherProps, formatOptions, id }, numberFieldState, inputRef);\n\n return {\n fieldErrorProps,\n formHintProps,\n labelProps,\n renderNumberField: () => (\n <div {...groupProps} className={styles.numberField}>\n <input\n {...inputProps}\n className={cx(styles.formInput, styles['numberField-input'])}\n data-test-id={testId}\n name={name}\n ref={inputRef}\n />\n <div className={styles['numberField-stepperContainer']}>\n <Stepper {...incrementButtonProps}>\n <ExpandLess />\n </Stepper>\n <Stepper {...decrementButtonProps}>\n <ExpandMore />\n </Stepper>\n </div>\n </div>\n ),\n };\n};\n\nconst Stepper = (props: AriaButtonProps) => {\n const buttonRef = useRef<HTMLButtonElement>(null);\n const { buttonProps } = useButton(props, buttonRef);\n\n return (\n <button {...buttonProps} className={styles['numberField-stepper']} ref={buttonRef}>\n {props.children}\n </button>\n );\n};\n\nexport { useNumberField };\nexport type { UseNumberFieldProps };\n"],"names":["cx","jsx","forwardRef","jsxs","useRef","useMemo","suffix","label","isActive","useState","value","AlertRhombus","isInvalid","hint","Fragment","isValidElement","cloneElement","Children","VisuallyHidden","useLocale","useNumberFieldState","useReactAriaNumberField","ExpandLess","ExpandMore","useButton"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,MAAM,mBAAmB,CAAC;AAAA,EACxB;AAAA,EACA,gBAAgB,SAAS;AAAA,EACzB,GAAG;AACL,MAA6B;AAC3B,QAAM,UAAUA,QAAA,GAAG,OAAO,kBAAkB,SAAS;AAGnD,SAAAC,+BAAC,UAAM,GAAG,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8BAA8B,GACnD,UAAA;AAAA,QAAAF,+BAAC,SAAS,EAAA,GAAG,sBACX,UAAAA,+BAACqB,MAAAA,aAAW,CAAA,GACd;AAAA,uCACC,SAAS,EAAA,GAAG,sBACX,UAAArB,+BAACsB,MAAAA,aAAW,CAAA,GACd;AAAA,MAAA,GACF;AAAA,IAAA,GACF;AAAA,EAAA;AAGN;AAEA,MAAM,UAAU,CAAC,UAA2B;AACpC,QAAA,YAAYnB,aAA0B,IAAI;AAChD,QAAM,EAAE,YAAgB,IAAAoB,OAAA,UAAU,OAAO,SAAS;AAGhD,SAAAvB,2BAAA,IAAC,UAAQ,EAAA,GAAG,aAAa,WAAW,OAAO,qBAAqB,GAAG,KAAK,WACrE,UAAA,MAAM,SACT,CAAA;AAEJ;;;;;;;;;;;;;;;;;;"}
package/dist/style.css CHANGED
@@ -7,7 +7,7 @@
7
7
  --lp-component-form-color-text-label-disabled: var(--lp-color-gray-400);
8
8
  }
9
9
 
10
- ._formGroup_p76jo_10 {
10
+ ._formGroup_1u9hb_10 {
11
11
  margin: 2rem 0;
12
12
  padding: 0;
13
13
  border: none;
@@ -16,25 +16,25 @@
16
16
  /* The margin for .formGroup and the min-height of .form-fieldError
17
17
  should be equal to avoid content shift when errors are shown */
18
18
 
19
- ._formIncreasedErrorMargin_p76jo_18 ._formGroup_p76jo_10 {
19
+ ._formIncreasedErrorMargin_1u9hb_18 ._formGroup_1u9hb_10 {
20
20
  margin: 2.8rem 0;
21
21
  }
22
22
 
23
- ._formInline_p76jo_22 ._formGroup_p76jo_10 {
23
+ ._formInline_1u9hb_22 ._formGroup_1u9hb_10 {
24
24
  display: inline-block;
25
25
  vertical-align: middle;
26
26
  margin: 0;
27
27
  }
28
28
 
29
- ._form_p76jo_10 ._formGroup_p76jo_10:first-child {
29
+ ._form_1u9hb_10 ._formGroup_1u9hb_10:first-child {
30
30
  margin-top: 0;
31
31
  }
32
32
 
33
- ._form_p76jo_10 ._formGroup_p76jo_10:last-child {
33
+ ._form_1u9hb_10 ._formGroup_1u9hb_10:last-child {
34
34
  margin-bottom: 0;
35
35
  }
36
36
 
37
- ._formInput_p76jo_36 {
37
+ ._formInput_1u9hb_36 {
38
38
  display: block;
39
39
  width: 100%;
40
40
  padding: 0.6rem 1rem;
@@ -49,24 +49,24 @@
49
49
  height: 3.2rem;
50
50
  }
51
51
 
52
- ._formInput_p76jo_36:-moz-placeholder-shown {
52
+ ._formInput_1u9hb_36:-moz-placeholder-shown {
53
53
  overflow: hidden;
54
54
  text-overflow: ellipsis;
55
55
  }
56
56
 
57
- ._formInput_p76jo_36:placeholder-shown {
57
+ ._formInput_1u9hb_36:placeholder-shown {
58
58
  overflow: hidden;
59
59
  text-overflow: ellipsis;
60
60
  }
61
61
 
62
- ._formInput_p76jo_36._isFocused_p76jo_56,
63
- ._formInput_p76jo_36:focus {
62
+ ._formInput_1u9hb_36._isFocused_1u9hb_56,
63
+ ._formInput_1u9hb_36:focus {
64
64
  outline: 0;
65
65
  border-color: var(--lp-color-border-field-focus);
66
66
  box-shadow: 0 0 0 3px hsla(231.5, 100%, 62.5%, 0.1);
67
67
  }
68
68
 
69
- select._formInput_p76jo_36 {
69
+ select._formInput_1u9hb_36 {
70
70
  -webkit-appearance: none;
71
71
  -moz-appearance: none;
72
72
  appearance: none;
@@ -78,49 +78,49 @@ select._formInput_p76jo_36 {
78
78
  padding-right: 2rem;
79
79
  }
80
80
 
81
- ._iconField_p76jo_73 ._formInput_p76jo_36 {
81
+ ._iconField_1u9hb_73 ._formInput_1u9hb_36 {
82
82
  padding-left: 3rem;
83
83
  }
84
84
 
85
- ._suffixContainer_p76jo_77 ._formInput_p76jo_36 {
85
+ ._suffixContainer_1u9hb_77 ._formInput_1u9hb_36 {
86
86
  border: none;
87
87
  border-radius: var(--lp-border-radius-regular) 0 0 var(--lp-border-radius-regular);
88
88
  }
89
89
 
90
- ._isInvalid_p76jo_82 ._formInput_p76jo_36,
91
- ._form_p76jo_10 ._isInvalid_p76jo_82 .Select-control,
92
- ._form_p76jo_10 ._isInvalid_p76jo_82 .CustomSelect > div,
93
- ._form_p76jo_10 ._isInvalid_p76jo_82 ._formInput_p76jo_36 {
90
+ ._isInvalid_1u9hb_82 ._formInput_1u9hb_36,
91
+ ._form_1u9hb_10 ._isInvalid_1u9hb_82 .Select-control,
92
+ ._form_1u9hb_10 ._isInvalid_1u9hb_82 .CustomSelect > div,
93
+ ._form_1u9hb_10 ._isInvalid_1u9hb_82 ._formInput_1u9hb_36 {
94
94
  border-color: var(--lp-color-border-field-error);
95
95
  }
96
96
 
97
- ._suffixContainer_p76jo_77 ._formInput_p76jo_36:focus {
97
+ ._suffixContainer_1u9hb_77 ._formInput_1u9hb_36:focus {
98
98
  box-shadow: none;
99
99
  }
100
100
 
101
- ._inlineForm_p76jo_93 ._formGroup_p76jo_10 + ._formGroup_p76jo_10,
102
- ._inlineForm_p76jo_93 ._formGroup_p76jo_10 + .Button {
101
+ ._inlineForm_1u9hb_93 ._formGroup_1u9hb_10 + ._formGroup_1u9hb_10,
102
+ ._inlineForm_1u9hb_93 ._formGroup_1u9hb_10 + .Button {
103
103
  margin-left: 1rem;
104
104
  }
105
105
 
106
- ._label_p76jo_98 {
106
+ ._label_1u9hb_98 {
107
107
  font-size: 1.3rem;
108
108
  font-family: var(--lp-font-family-base);
109
109
  word-break: break-word;
110
110
  }
111
111
 
112
- ._labelDisabled_p76jo_104 {
112
+ ._labelDisabled_1u9hb_104 {
113
113
  color: var(--lp-color-gray-800);
114
114
  color: var(--lp-component-form-color-text-label-disabled);
115
115
  }
116
116
 
117
- ._labelOptional_p76jo_108 {
117
+ ._labelOptional_1u9hb_108 {
118
118
  margin-left: 0.4em;
119
119
  color: var(--lp-color-text-ui-secondary);
120
120
  fill: var(--lp-color-text-ui-secondary);
121
121
  }
122
122
 
123
- ._compactTextField_p76jo_114 ._label_p76jo_98 {
123
+ ._compactTextField_1u9hb_114 ._label_1u9hb_98 {
124
124
  position: absolute;
125
125
  top: -2px;
126
126
  left: 10px;
@@ -134,68 +134,68 @@ select._formInput_p76jo_36 {
134
134
  z-index: 1; /* Fixes layout issue in Firefox */
135
135
  }
136
136
 
137
- ._formGroup_p76jo_10 ._label_p76jo_98 {
137
+ ._formGroup_1u9hb_10 ._label_1u9hb_98 {
138
138
  display: flex;
139
139
  align-items: center;
140
140
  margin-bottom: 0.2rem;
141
141
  }
142
142
 
143
- ._formGroup_p76jo_10 ._label_p76jo_98 + ._label_p76jo_98 {
143
+ ._formGroup_1u9hb_10 ._label_1u9hb_98 + ._label_1u9hb_98 {
144
144
  margin-top: 0.5rem;
145
145
  }
146
146
 
147
- ._fieldError_p76jo_138 {
147
+ ._fieldError_1u9hb_138 {
148
148
  color: var(--lp-color-text-feedback-error);
149
149
  font-size: 1.3rem;
150
150
  }
151
151
 
152
- ._fieldError_p76jo_138 svg {
152
+ ._fieldError_1u9hb_138 svg {
153
153
  transform: translateY(-1px);
154
154
  }
155
155
 
156
156
  /* The margin for .formGroup and the min-height of .form-fieldError
157
157
  should be equal to avoid content shift when errors are shown */
158
158
 
159
- ._formIncreasedErrorMargin_p76jo_18 ._fieldError_p76jo_138 {
159
+ ._formIncreasedErrorMargin_1u9hb_18 ._fieldError_1u9hb_138 {
160
160
  min-height: 2.8rem;
161
161
  }
162
162
 
163
- ._label_p76jo_98 ._fieldError_p76jo_138 {
163
+ ._label_1u9hb_98 ._fieldError_1u9hb_138 {
164
164
  float: right;
165
165
  }
166
166
 
167
- ._form_p76jo_10:not(._inlineForm_p76jo_93) ._fieldError_p76jo_138 {
167
+ ._form_1u9hb_10:not(._inlineForm_1u9hb_93) ._fieldError_1u9hb_138 {
168
168
  display: block;
169
169
  padding-top: 0.5rem;
170
170
  text-align: left;
171
171
  }
172
172
 
173
- ._formIncreasedErrorMargin_p76jo_18:not(._inlineForm_p76jo_93) ._fieldError_p76jo_138 {
173
+ ._formIncreasedErrorMargin_1u9hb_18:not(._inlineForm_1u9hb_93) ._fieldError_1u9hb_138 {
174
174
  padding-top: 0.1rem;
175
175
  padding-bottom: 0.5rem;
176
176
  }
177
177
 
178
- ._form_p76jo_10 ._isInvalid_p76jo_82 ._label_p76jo_98 {
178
+ ._form_1u9hb_10 ._isInvalid_1u9hb_82 ._label_1u9hb_98 {
179
179
  color: var(--lp-color-text-feedback-error);
180
180
  }
181
181
 
182
- ._formInput_p76jo_36::-moz-placeholder {
182
+ ._formInput_1u9hb_36::-moz-placeholder {
183
183
  color: var(--lp-color-text-field-placeholder);
184
184
  }
185
185
 
186
- ._formInput_p76jo_36::placeholder {
186
+ ._formInput_1u9hb_36::placeholder {
187
187
  color: var(--lp-color-text-field-placeholder);
188
188
  }
189
189
 
190
- ._formIncreasedErrorMargin_p76jo_18 ._formGroup_p76jo_10._isInvalid_p76jo_82 {
190
+ ._formIncreasedErrorMargin_1u9hb_18 ._formGroup_1u9hb_10._isInvalid_1u9hb_82 {
191
191
  margin-bottom: 0;
192
192
  }
193
193
 
194
- ._formIncreasedErrorMargin_p76jo_18 ._formGroup_p76jo_10._isInvalid_p76jo_82 + ._formGroup_p76jo_10 {
194
+ ._formIncreasedErrorMargin_1u9hb_18 ._formGroup_1u9hb_10._isInvalid_1u9hb_82 + ._formGroup_1u9hb_10 {
195
195
  margin-top: 0;
196
196
  }
197
197
 
198
- ._hint_p76jo_184 {
198
+ ._hint_1u9hb_184 {
199
199
  display: block;
200
200
  margin-top: 0.3rem;
201
201
  font-size: 1.3rem;
@@ -203,75 +203,75 @@ select._formInput_p76jo_36 {
203
203
  color: var(--lp-color-text-ui-secondary);
204
204
  }
205
205
 
206
- ._field_p76jo_138 ._hint_p76jo_184 {
206
+ ._field_1u9hb_138 ._hint_1u9hb_184 {
207
207
  margin: 0;
208
208
  font-size: 1.3rem;
209
209
  color: var(--lp-color-text-ui-secondary);
210
210
  fill: var(--lp-color-text-ui-secondary);
211
211
  }
212
212
 
213
- ._form_p76jo_10 ._field_p76jo_138 label,
214
- ._form_p76jo_10 ._field_p76jo_138 ._isInvalid_p76jo_82 label {
213
+ ._form_1u9hb_10 ._field_1u9hb_138 label,
214
+ ._form_1u9hb_10 ._field_1u9hb_138 ._isInvalid_1u9hb_82 label {
215
215
  color: var(--lp-color-text-ui-primary);
216
216
  }
217
217
 
218
- ._fieldErrorMessage_p76jo_204 {
218
+ ._fieldErrorMessage_1u9hb_204 {
219
219
  color: var(--lp-color-text-feedback-error);
220
220
  font-size: 1.3rem;
221
221
  }
222
222
 
223
- ._field_p76jo_138._formGroup_p76jo_10 {
223
+ ._field_1u9hb_138._formGroup_1u9hb_10 {
224
224
  margin: 1rem 0;
225
225
  }
226
226
 
227
- ._field_p76jo_138._formGroup_p76jo_10:first-child {
227
+ ._field_1u9hb_138._formGroup_1u9hb_10:first-child {
228
228
  margin-top: 0;
229
229
  }
230
230
 
231
- input._formInput_p76jo_36:-moz-read-only {
231
+ input._formInput_1u9hb_36:-moz-read-only {
232
232
  opacity: 1;
233
233
  background-color: var(--lp-color-bg-field-disabled);
234
234
  color: var(--lp-color-text-field-disabled);
235
235
  border-color: var(--lp-color-border-field-disabled);
236
236
  }
237
237
 
238
- ._formInput_p76jo_36._isDisabled_p76jo_217,
239
- input._formInput_p76jo_36:disabled,
240
- select._formInput_p76jo_36:disabled,
241
- input._formInput_p76jo_36:read-only {
238
+ ._formInput_1u9hb_36._isDisabled_1u9hb_217,
239
+ input._formInput_1u9hb_36:disabled,
240
+ select._formInput_1u9hb_36:disabled,
241
+ input._formInput_1u9hb_36:read-only {
242
242
  opacity: 1;
243
243
  background-color: var(--lp-color-bg-field-disabled);
244
244
  color: var(--lp-color-text-field-disabled);
245
245
  border-color: var(--lp-color-border-field-disabled);
246
246
  }
247
247
 
248
- ._formInput_p76jo_36._isDisabled_p76jo_217:hover,
249
- ._formInput_p76jo_36:disabled:hover {
248
+ ._formInput_1u9hb_36._isDisabled_1u9hb_217:hover,
249
+ ._formInput_1u9hb_36:disabled:hover {
250
250
  cursor: not-allowed;
251
251
  }
252
252
 
253
- textarea._formInput_p76jo_36 {
253
+ textarea._formInput_1u9hb_36 {
254
254
  min-height: 2.5em;
255
255
  height: auto;
256
256
  resize: none;
257
257
  }
258
258
 
259
- textarea._formInput_p76jo_36:-moz-read-only {
259
+ textarea._formInput_1u9hb_36:-moz-read-only {
260
260
  opacity: 1;
261
261
  color: var(--lp-color-text-field-disabled);
262
262
  background-color: var(--lp-color-bg-field-disabled);
263
263
  border-color: var(--lp-color-border-field-disabled);
264
264
  }
265
265
 
266
- textarea._formInput_p76jo_36:disabled,
267
- textarea._formInput_p76jo_36:read-only {
266
+ textarea._formInput_1u9hb_36:disabled,
267
+ textarea._formInput_1u9hb_36:read-only {
268
268
  opacity: 1;
269
269
  color: var(--lp-color-text-field-disabled);
270
270
  background-color: var(--lp-color-bg-field-disabled);
271
271
  border-color: var(--lp-color-border-field-disabled);
272
272
  }
273
273
 
274
- input._formInput_p76jo_36::-webkit-autofill {
274
+ input._formInput_1u9hb_36::-webkit-autofill {
275
275
  box-shadow: 0 0 0 50px var(--lp-color-bg-field) inset;
276
276
  }
277
277
 
@@ -304,29 +304,29 @@ input[type='checkbox']:disabled {
304
304
  pointer-events: none;
305
305
  }
306
306
 
307
- ._formInput_p76jo_36[readonly],
308
- ._formInput_p76jo_36[readonly]:focus {
307
+ ._formInput_1u9hb_36[readonly],
308
+ ._formInput_1u9hb_36[readonly]:focus {
309
309
  color: var(--lp-color-text-ui-secondary);
310
310
  border-color: var(--lp-color-gray-500);
311
311
  box-shadow: none;
312
312
  }
313
313
 
314
- ._checkbox_p76jo_284 {
314
+ ._checkbox_1u9hb_284 {
315
315
  align-self: flex-start; /* Default for .label is center, but this looks bad on multi-line checkbox labels */
316
316
  flex-shrink: 0; /* Make sure the input itself doesn't shrink in flex layouts */
317
317
  margin-right: 0.5rem;
318
318
  margin-top: 0.4rem;
319
319
  }
320
320
 
321
- ._radio_p76jo_291 {
321
+ ._radio_1u9hb_291 {
322
322
  margin-right: 0.5rem;
323
323
  }
324
324
 
325
- ._number_p76jo_295 {
325
+ ._number_1u9hb_295 {
326
326
  min-width: 4.5rem;
327
327
  }
328
328
 
329
- ._suffixContainer_p76jo_77 {
329
+ ._suffixContainer_1u9hb_77 {
330
330
  display: inline-flex;
331
331
  border: 1px solid var(--lp-color-border-field);
332
332
  border-radius: var(--lp-border-radius-regular);
@@ -334,12 +334,12 @@ input[type='checkbox']:disabled {
334
334
  transition: all 0.1s linear;
335
335
  }
336
336
 
337
- ._suffixContainer_p76jo_77:focus-within {
337
+ ._suffixContainer_1u9hb_77:focus-within {
338
338
  border-color: var(--lp-color-border-field-focus);
339
339
  box-shadow: 0 0 0 3px hsla(231.5, 100%, 62.5%, 0.1);
340
340
  }
341
341
 
342
- ._suffixContainer_p76jo_77 ._suffix_p76jo_77 {
342
+ ._suffixContainer_1u9hb_77 ._suffix_1u9hb_77 {
343
343
  padding: 0 2px;
344
344
  background-color: var(--lp-color-bg-field-aside);
345
345
  color: var(--lp-color-text-ui-secondary);
@@ -350,8 +350,8 @@ input[type='checkbox']:disabled {
350
350
  position: initial;
351
351
  }
352
352
 
353
- ._suffix_p76jo_77::-webkit-outer-spin-button,
354
- ._suffix_p76jo_77::-webkit-inner-spin-button {
353
+ ._suffix_1u9hb_77::-webkit-outer-spin-button,
354
+ ._suffix_1u9hb_77::-webkit-inner-spin-button {
355
355
  -webkit-appearance: none;
356
356
  appearance: none;
357
357
  margin: 0;
@@ -359,13 +359,13 @@ input[type='checkbox']:disabled {
359
359
 
360
360
  /* Firefox */
361
361
 
362
- ._suffix_p76jo_77[type='number'] {
362
+ ._suffix_1u9hb_77[type='number'] {
363
363
  -webkit-appearance: textfield;
364
364
  -moz-appearance: textfield;
365
365
  appearance: textfield;
366
366
  }
367
367
 
368
- ._iconFieldIcon_p76jo_333 {
368
+ ._iconFieldIcon_1u9hb_333 {
369
369
  position: absolute;
370
370
  fill: var(--lp-color-fill-field);
371
371
  top: 50%;
@@ -373,33 +373,99 @@ input[type='checkbox']:disabled {
373
373
  left: 1rem;
374
374
  }
375
375
 
376
- ._formInputTiny_p76jo_341 {
376
+ ._formInputTiny_1u9hb_341 {
377
377
  padding: 0.1rem 0.6rem;
378
378
  height: 2.4rem;
379
379
  }
380
380
 
381
- ._iconField_p76jo_73 {
381
+ ._iconField_1u9hb_73 {
382
382
  position: relative;
383
383
  }
384
384
 
385
- ._requiredAsterisk_p76jo_350 {
385
+ ._requiredAsterisk_1u9hb_350 {
386
386
  color: var(--lp-color-text-feedback-error);
387
387
  }
388
388
 
389
- ._fieldSet_p76jo_354 {
389
+ ._fieldSet_1u9hb_354 {
390
390
  border: none;
391
391
  margin: 2rem 0;
392
392
  padding: 0;
393
393
  }
394
394
 
395
- ._compactTextField_p76jo_114 {
395
+ ._compactTextField_1u9hb_114 {
396
396
  position: relative;
397
397
  width: 100%;
398
398
  }
399
399
 
400
- ._compactTextField_p76jo_114._isActive_p76jo_365 ._label_p76jo_98 {
400
+ ._compactTextField_1u9hb_114._isActive_1u9hb_365 ._label_1u9hb_98 {
401
401
  border-radius: var(--lp-border-radius-regular);
402
402
  opacity: 1;
403
403
  pointer-events: auto;
404
404
  transform: translate(0, -8px) scale(0.9); /* 2d transform to avoid webkit blurry text */
405
405
  }
406
+
407
+ ._numberField_1u9hb_372 {
408
+ display: flex;
409
+ position: relative;
410
+ }
411
+
412
+ ._numberField_1u9hb_372 ._numberField-input_1u9hb_376 {
413
+ padding-right: 2.4rem;
414
+ }
415
+
416
+ ._numberField_1u9hb_372 ._numberField-stepperContainer_1u9hb_380 {
417
+ display: flex;
418
+ opacity: 0;
419
+ flex-direction: column;
420
+ position: absolute;
421
+ width: 2.4rem;
422
+ top: 1px;
423
+ bottom: 1px;
424
+ right: 1px;
425
+ transition: all var(--lp-duration-100) linear;
426
+ }
427
+
428
+ ._numberField_1u9hb_372 ._numberField-stepperContainer_1u9hb_380 ._numberField-stepper_1u9hb_380 {
429
+ --numberField-stepper-padding: 0.4rem;
430
+ --numberField-stepper-border-radius: calc(var(--lp-border-radius-regular) - 0.1rem);
431
+
432
+ background-color: var(--lp-color-bg-field);
433
+ flex: auto;
434
+ display: flex;
435
+ justify-content: center;
436
+ align-items: center;
437
+ cursor: pointer;
438
+ padding: 0 0.4rem;
439
+ padding: 0 var(--numberField-stepper-padding);
440
+ border: none;
441
+ border-radius: 0;
442
+ min-height: 1px;
443
+ overflow: hidden;
444
+ }
445
+
446
+ ._numberField_1u9hb_372 ._numberField-stepperContainer_1u9hb_380 ._numberField-stepper_1u9hb_380:first-child {
447
+ border-top-right-radius: var(--numberField-stepper-border-radius);
448
+ padding-top: var(--numberField-stepper-padding);
449
+ }
450
+
451
+ ._numberField_1u9hb_372 ._numberField-stepperContainer_1u9hb_380 ._numberField-stepper_1u9hb_380:last-child {
452
+ border-bottom-right-radius: var(--numberField-stepper-border-radius);
453
+ padding-bottom: var(--numberField-stepper-padding);
454
+ }
455
+
456
+ ._numberField_1u9hb_372 ._numberField-stepperContainer_1u9hb_380 ._numberField-stepper_1u9hb_380:hover {
457
+ background-color: var(--lp-color-bg-interactive-secondary-hover);
458
+ }
459
+
460
+ ._numberField_1u9hb_372 ._numberField-stepperContainer_1u9hb_380 ._numberField-stepper_1u9hb_380:active {
461
+ background-color: var(--lp-color-bg-interactive-secondary-active);
462
+ }
463
+
464
+ ._numberField_1u9hb_372 ._numberField-stepperContainer_1u9hb_380 ._numberField-stepper_1u9hb_380 span:has(svg) {
465
+ width: 100%;
466
+ color: var(--lp-color-text-ui-primary);
467
+ }
468
+
469
+ ._numberField_1u9hb_372:hover ._numberField-stepperContainer_1u9hb_380, ._numberField_1u9hb_372:has(input:focus) ._numberField-stepperContainer_1u9hb_380 {
470
+ opacity: 1;
471
+ }