@webority/ui-react 0.6.5 → 0.6.7

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.
@@ -20,6 +20,8 @@
20
20
  * @param {string} [props.leftIcon] Icon name
21
21
  * @param {string} [props.rightIcon] Icon name
22
22
  * @param {() => void} [props.onRightIconClick]
23
+ * @param {string} [props.rightIconLabel] Accessible name for the right-icon button. Defaults to
24
+ * the icon name, which is a poor label but not an absent one.
23
25
  * @param {string} [props.unit]
24
26
  * @param {string} [props.id]
25
27
  * @param {string} [props.name]
@@ -29,6 +31,10 @@
29
31
  * @param {boolean} [props.clearable=false] Show an ✕ button while the field has a value.
30
32
  * @param {boolean} [props.showCount=false] Show a live `count / maxLength` under the field.
31
33
  * @param {number} [props.maxLength] Character cap; the count turns red as it is approached.
34
+ * @param {import('react').ReactNode} [props.prefix] A bordered box before the input (e.g. ₹, https://).
35
+ * @param {import('react').ReactNode} [props.suffix] A bordered box after the input (e.g. .00, .com).
36
+ * @param {boolean} [props.floatingLabel=false] Label sits inside as a placeholder, then slides up
37
+ * on focus/fill. Opt-in variant; standalone only (no icon/unit/prefix in the same field).
32
38
  * @param {import('react').Ref<HTMLInputElement>} [ref]
33
39
  */
34
40
  declare const AppInput: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
@@ -0,0 +1,35 @@
1
+ import '@webority/ui-elements';
2
+ /**
3
+ * Code entry — MFA, email/phone verification, backup codes. Thin React wrapper over the
4
+ * shared `<wui-otp>` element, in the standard `.field` shell.
5
+ *
6
+ * It is ONE input with the segment boxes drawn underneath, not N inputs. That is what makes
7
+ * OS autofill work (iOS/Android hand an SMS code to the focused field, whole — six inputs
8
+ * get all six digits in box one or just the first, depending on version) and what makes a
9
+ * screen reader announce one labelled field instead of six unlabelled boxes. Paste is not a
10
+ * special case for the same reason.
11
+ *
12
+ * Scope is the INPUT, not the screen: resend timers, "didn't get a code" copy, masked
13
+ * destination text, lockout after N attempts and where to go on success are all product
14
+ * decisions and stay in the product.
15
+ *
16
+ * @param {object} props
17
+ * @param {string} [props.value]
18
+ * @param {(value: string) => void} [props.onChange]
19
+ * @param {(value: string) => void} [props.onComplete] Fires once, when the last character
20
+ * lands — so a form can submit itself without polling the value.
21
+ * @param {number} [props.length=6] Characters in the code. TOTP is 6; backup codes are often 8.
22
+ * @param {"numeric"|"alphanumeric"} [props.mode="numeric"] Drives the on-screen keyboard and
23
+ * what the field will accept.
24
+ * @param {string} [props.label]
25
+ * @param {boolean} [props.required=false]
26
+ * @param {string} [props.hint]
27
+ * @param {string} [props.error]
28
+ * @param {boolean} [props.disabled=false]
29
+ * @param {string} [props.name]
30
+ * @param {string} [props.id]
31
+ * @param {string} [props.className]
32
+ * @param {import('react').Ref<HTMLElement>} [ref]
33
+ */
34
+ declare const AppOtpInput: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
35
+ export default AppOtpInput;
@@ -1,9 +1,12 @@
1
1
  import '@webority/ui-elements';
2
- export default function AppSelect({ value, onChange, options, placeholder, searchPlaceholder, searchable, disabled, label, required, error, hint, help, helpLabel, id, name, fieldClassName, ...rest }: {
2
+ export default function AppSelect({ value, onChange, options, placeholder, searchPlaceholder, searchable, clearable, size, floatingLabel, disabled, label, required, error, hint, help, helpLabel, id, name, className, fieldClassName, ...rest }: {
3
3
  [x: string]: any;
4
+ className?: string;
5
+ clearable?: boolean;
4
6
  disabled: any;
5
7
  error: any;
6
8
  fieldClassName?: string;
9
+ floatingLabel?: boolean;
7
10
  help: any;
8
11
  helpLabel?: string;
9
12
  hint: any;
@@ -16,5 +19,6 @@ export default function AppSelect({ value, onChange, options, placeholder, searc
16
19
  required?: boolean;
17
20
  searchPlaceholder?: string;
18
21
  searchable?: boolean;
22
+ size: any;
19
23
  value: any;
20
24
  }): import("react").JSX.Element;
@@ -27,6 +27,7 @@ export { default as AppKpiTile } from './components/AppKpiTile.jsx';
27
27
  export { default as AppLogoPicker } from './components/AppLogoPicker.jsx';
28
28
  export { default as AppModal } from './components/AppModal.jsx';
29
29
  export { default as AppMultiSelect } from './components/AppMultiSelect.jsx';
30
+ export { default as AppOtpInput } from './components/AppOtpInput.jsx';
30
31
  export { default as AppPageHeader } from './components/AppPageHeader.jsx';
31
32
  export { default as AppPhoneNumberInput } from './components/AppPhoneNumberInput.jsx';
32
33
  export { default as AppPricingCard } from './components/AppPricingCard.jsx';