@jarllyng/nostromo 3.10.0 → 3.11.0

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 (89) hide show
  1. package/README.md +1 -1
  2. package/dist/animations.css +29 -1
  3. package/dist/chunk-27UORO2F.cjs +3 -0
  4. package/dist/chunk-27UORO2F.cjs.map +1 -0
  5. package/dist/chunk-BDRP7ALG.cjs +3 -0
  6. package/dist/chunk-BDRP7ALG.cjs.map +1 -0
  7. package/dist/chunk-BJPJB6IA.cjs +3 -0
  8. package/dist/chunk-BJPJB6IA.cjs.map +1 -0
  9. package/dist/chunk-K45ZUJ42.js +3 -0
  10. package/dist/chunk-K45ZUJ42.js.map +1 -0
  11. package/dist/chunk-MINSU2YF.js +3 -0
  12. package/dist/chunk-MINSU2YF.js.map +1 -0
  13. package/dist/chunk-NM5NVIAK.js +3 -0
  14. package/dist/chunk-NM5NVIAK.js.map +1 -0
  15. package/dist/components/core/alert.d.cts +1 -1
  16. package/dist/components/core/alert.d.ts +1 -1
  17. package/dist/components/core/badge.d.cts +1 -1
  18. package/dist/components/core/badge.d.ts +1 -1
  19. package/dist/components/core/breadcrumb.d.cts +1 -1
  20. package/dist/components/core/breadcrumb.d.ts +1 -1
  21. package/dist/components/core/button.d.cts +2 -2
  22. package/dist/components/core/button.d.ts +2 -2
  23. package/dist/components/core/carousel.cjs +3 -0
  24. package/dist/components/core/carousel.cjs.map +1 -0
  25. package/dist/components/core/carousel.d.cts +71 -0
  26. package/dist/components/core/carousel.d.ts +71 -0
  27. package/dist/components/core/carousel.js +3 -0
  28. package/dist/components/core/carousel.js.map +1 -0
  29. package/dist/components/core/checkbox.d.cts +1 -1
  30. package/dist/components/core/checkbox.d.ts +1 -1
  31. package/dist/components/core/dialog.d.cts +1 -1
  32. package/dist/components/core/dialog.d.ts +1 -1
  33. package/dist/components/core/error-message.d.cts +1 -1
  34. package/dist/components/core/error-message.d.ts +1 -1
  35. package/dist/components/core/form.cjs +1 -1
  36. package/dist/components/core/form.js +1 -1
  37. package/dist/components/core/helper-text.d.cts +1 -1
  38. package/dist/components/core/helper-text.d.ts +1 -1
  39. package/dist/components/core/icon.d.cts +2 -2
  40. package/dist/components/core/icon.d.ts +2 -2
  41. package/dist/components/core/input-otp.cjs +3 -0
  42. package/dist/components/core/input-otp.cjs.map +1 -0
  43. package/dist/components/core/input-otp.d.cts +50 -0
  44. package/dist/components/core/input-otp.d.ts +50 -0
  45. package/dist/components/core/input-otp.js +3 -0
  46. package/dist/components/core/input-otp.js.map +1 -0
  47. package/dist/components/core/input.d.cts +1 -1
  48. package/dist/components/core/input.d.ts +1 -1
  49. package/dist/components/core/label.d.cts +1 -1
  50. package/dist/components/core/label.d.ts +1 -1
  51. package/dist/components/core/pagination.d.cts +1 -1
  52. package/dist/components/core/pagination.d.ts +1 -1
  53. package/dist/components/core/progress.d.cts +3 -3
  54. package/dist/components/core/progress.d.ts +3 -3
  55. package/dist/components/core/radio-group.d.cts +1 -1
  56. package/dist/components/core/radio-group.d.ts +1 -1
  57. package/dist/components/core/resizable.cjs +3 -0
  58. package/dist/components/core/resizable.cjs.map +1 -0
  59. package/dist/components/core/resizable.d.cts +362 -0
  60. package/dist/components/core/resizable.d.ts +362 -0
  61. package/dist/components/core/resizable.js +3 -0
  62. package/dist/components/core/resizable.js.map +1 -0
  63. package/dist/components/core/select.d.cts +3 -3
  64. package/dist/components/core/select.d.ts +3 -3
  65. package/dist/components/core/skeleton.d.cts +1 -1
  66. package/dist/components/core/skeleton.d.ts +1 -1
  67. package/dist/components/core/switch.d.cts +1 -1
  68. package/dist/components/core/switch.d.ts +1 -1
  69. package/dist/components/core/textarea.d.cts +1 -1
  70. package/dist/components/core/textarea.d.ts +1 -1
  71. package/dist/components/core/toast.d.cts +2 -2
  72. package/dist/components/core/toast.d.ts +2 -2
  73. package/dist/components/core/tooltip.d.cts +2 -2
  74. package/dist/components/core/tooltip.d.ts +2 -2
  75. package/dist/components/marketing/features.d.cts +2 -2
  76. package/dist/components/marketing/features.d.ts +2 -2
  77. package/dist/components/marketing/gallery.d.cts +1 -1
  78. package/dist/components/marketing/gallery.d.ts +1 -1
  79. package/dist/components/marketing/pricing.d.cts +1 -1
  80. package/dist/components/marketing/pricing.d.ts +1 -1
  81. package/dist/components/marketing/testimonials.d.cts +1 -1
  82. package/dist/components/marketing/testimonials.d.ts +1 -1
  83. package/dist/index.cjs +1 -1
  84. package/dist/index.cjs.map +1 -1
  85. package/dist/index.d.cts +6 -0
  86. package/dist/index.d.ts +6 -0
  87. package/dist/index.js +1 -1
  88. package/dist/index.js.map +1 -1
  89. package/package.json +48 -3
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- 'use strict';var chunk7YFUAGIW_cjs=require('../../chunk-7YFUAGIW.cjs'),chunkXPIBRXTW_cjs=require('../../chunk-XPIBRXTW.cjs'),chunkV77N662N_cjs=require('../../chunk-V77N662N.cjs'),chunkITRGJNWL_cjs=require('../../chunk-ITRGJNWL.cjs'),r=require('react'),reactSlot=require('@radix-ui/react-slot'),reactHookForm=require('react-hook-form');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var r__namespace=/*#__PURE__*/_interopNamespace(r);var v=reactHookForm.FormProvider,f=r__namespace.createContext(null);function N({...e}){let t=r__namespace.useId(),o=r__namespace.useMemo(()=>({name:e.name,id:t}),[e.name,t]);return r__namespace.createElement(f.Provider,{value:o},r__namespace.createElement(reactHookForm.Controller,{...e}))}function i(){let e=r__namespace.useContext(f);if(!e)throw new Error("useFormField must be used inside a <FormField>. Without it there is no field id to attach a label or a message to.");let{errors:t}=reactHookForm.useFormState({name:e.name}),o=e.name.split(".").reduce((s,a)=>s?.[a],t);return {name:e.name,formItemId:e.id,formDescriptionId:`${e.id}-description`,formMessageId:`${e.id}-message`,error:o}}function g({className:e,...t}){return r__namespace.createElement("div",{className:chunkITRGJNWL_cjs.a("space-y-1.5",e),...t})}g.displayName="FormItem";var y=r__namespace.forwardRef(({className:e,...t},o)=>{let{error:s,formItemId:a}=i();return r__namespace.createElement(chunkXPIBRXTW_cjs.b,{ref:o,htmlFor:a,className:chunkITRGJNWL_cjs.a(s&&"text-destructive",e),...t})});y.displayName="FormLabel";var C=r__namespace.forwardRef(({...e},t)=>{let{error:o,formItemId:s,formDescriptionId:a,formMessageId:n}=i();return r__namespace.createElement(reactSlot.Slot,{ref:t,id:s,"aria-describedby":o?`${a} ${n}`:a,"aria-invalid":o?true:void 0,...e})});C.displayName="FormControl";var I=r__namespace.forwardRef(({...e},t)=>{let{formDescriptionId:o}=i();return r__namespace.createElement(chunk7YFUAGIW_cjs.b,{ref:t,id:o,...e})});I.displayName="FormDescription";var M=r__namespace.forwardRef(({children:e,...t},o)=>{let{error:s,formMessageId:a}=i(),n=s?.message??e;return n?r__namespace.createElement(chunkV77N662N_cjs.b,{ref:o,id:a,...t},n):null});M.displayName="FormMessage";Object.defineProperty(exports,"useFormContext",{enumerable:true,get:function(){return reactHookForm.useFormContext}});exports.Form=v;exports.FormControl=C;exports.FormDescription=I;exports.FormField=N;exports.FormItem=g;exports.FormLabel=y;exports.FormMessage=M;exports.useFormField=i;//# sourceMappingURL=form.cjs.map
2
+ 'use strict';var chunkV77N662N_cjs=require('../../chunk-V77N662N.cjs'),chunk7YFUAGIW_cjs=require('../../chunk-7YFUAGIW.cjs'),chunkXPIBRXTW_cjs=require('../../chunk-XPIBRXTW.cjs'),chunkITRGJNWL_cjs=require('../../chunk-ITRGJNWL.cjs'),r=require('react'),reactSlot=require('@radix-ui/react-slot'),reactHookForm=require('react-hook-form');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var r__namespace=/*#__PURE__*/_interopNamespace(r);var v=reactHookForm.FormProvider,f=r__namespace.createContext(null);function N({...e}){let t=r__namespace.useId(),o=r__namespace.useMemo(()=>({name:e.name,id:t}),[e.name,t]);return r__namespace.createElement(f.Provider,{value:o},r__namespace.createElement(reactHookForm.Controller,{...e}))}function i(){let e=r__namespace.useContext(f);if(!e)throw new Error("useFormField must be used inside a <FormField>. Without it there is no field id to attach a label or a message to.");let{errors:t}=reactHookForm.useFormState({name:e.name}),o=e.name.split(".").reduce((s,a)=>s?.[a],t);return {name:e.name,formItemId:e.id,formDescriptionId:`${e.id}-description`,formMessageId:`${e.id}-message`,error:o}}function g({className:e,...t}){return r__namespace.createElement("div",{className:chunkITRGJNWL_cjs.a("space-y-1.5",e),...t})}g.displayName="FormItem";var y=r__namespace.forwardRef(({className:e,...t},o)=>{let{error:s,formItemId:a}=i();return r__namespace.createElement(chunkXPIBRXTW_cjs.b,{ref:o,htmlFor:a,className:chunkITRGJNWL_cjs.a(s&&"text-destructive",e),...t})});y.displayName="FormLabel";var C=r__namespace.forwardRef(({...e},t)=>{let{error:o,formItemId:s,formDescriptionId:a,formMessageId:n}=i();return r__namespace.createElement(reactSlot.Slot,{ref:t,id:s,"aria-describedby":o?`${a} ${n}`:a,"aria-invalid":o?true:void 0,...e})});C.displayName="FormControl";var I=r__namespace.forwardRef(({...e},t)=>{let{formDescriptionId:o}=i();return r__namespace.createElement(chunk7YFUAGIW_cjs.b,{ref:t,id:o,...e})});I.displayName="FormDescription";var M=r__namespace.forwardRef(({children:e,...t},o)=>{let{error:s,formMessageId:a}=i(),n=s?.message??e;return n?r__namespace.createElement(chunkV77N662N_cjs.b,{ref:o,id:a,...t},n):null});M.displayName="FormMessage";Object.defineProperty(exports,"useFormContext",{enumerable:true,get:function(){return reactHookForm.useFormContext}});exports.Form=v;exports.FormControl=C;exports.FormDescription=I;exports.FormField=N;exports.FormItem=g;exports.FormLabel=y;exports.FormMessage=M;exports.useFormField=i;//# sourceMappingURL=form.cjs.map
3
3
  //# sourceMappingURL=form.cjs.map
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import {b as b$1}from'../../chunk-ABA7B5DE.js';import {b}from'../../chunk-LYVCB45L.js';import {b as b$2}from'../../chunk-XQUZ7DUN.js';import {a}from'../../chunk-AC2JBXHQ.js';import*as r from'react';import {Slot}from'@radix-ui/react-slot';import {useFormState,FormProvider,Controller}from'react-hook-form';export{useFormContext}from'react-hook-form';var v=FormProvider,f=r.createContext(null);function N({...e}){let t=r.useId(),o=r.useMemo(()=>({name:e.name,id:t}),[e.name,t]);return r.createElement(f.Provider,{value:o},r.createElement(Controller,{...e}))}function i(){let e=r.useContext(f);if(!e)throw new Error("useFormField must be used inside a <FormField>. Without it there is no field id to attach a label or a message to.");let{errors:t}=useFormState({name:e.name}),o=e.name.split(".").reduce((s,a)=>s?.[a],t);return {name:e.name,formItemId:e.id,formDescriptionId:`${e.id}-description`,formMessageId:`${e.id}-message`,error:o}}function g({className:e,...t}){return r.createElement("div",{className:a("space-y-1.5",e),...t})}g.displayName="FormItem";var y=r.forwardRef(({className:e,...t},o)=>{let{error:s,formItemId:a$1}=i();return r.createElement(b,{ref:o,htmlFor:a$1,className:a(s&&"text-destructive",e),...t})});y.displayName="FormLabel";var C=r.forwardRef(({...e},t)=>{let{error:o,formItemId:s,formDescriptionId:a,formMessageId:n}=i();return r.createElement(Slot,{ref:t,id:s,"aria-describedby":o?`${a} ${n}`:a,"aria-invalid":o?true:void 0,...e})});C.displayName="FormControl";var I=r.forwardRef(({...e},t)=>{let{formDescriptionId:o}=i();return r.createElement(b$1,{ref:t,id:o,...e})});I.displayName="FormDescription";var M=r.forwardRef(({children:e,...t},o)=>{let{error:s,formMessageId:a}=i(),n=s?.message??e;return n?r.createElement(b$2,{ref:o,id:a,...t},n):null});M.displayName="FormMessage";export{v as Form,C as FormControl,I as FormDescription,N as FormField,g as FormItem,y as FormLabel,M as FormMessage,i as useFormField};//# sourceMappingURL=form.js.map
2
+ import {b as b$2}from'../../chunk-XQUZ7DUN.js';import {b as b$1}from'../../chunk-ABA7B5DE.js';import {b}from'../../chunk-LYVCB45L.js';import {a}from'../../chunk-AC2JBXHQ.js';import*as r from'react';import {Slot}from'@radix-ui/react-slot';import {useFormState,FormProvider,Controller}from'react-hook-form';export{useFormContext}from'react-hook-form';var v=FormProvider,f=r.createContext(null);function N({...e}){let t=r.useId(),o=r.useMemo(()=>({name:e.name,id:t}),[e.name,t]);return r.createElement(f.Provider,{value:o},r.createElement(Controller,{...e}))}function i(){let e=r.useContext(f);if(!e)throw new Error("useFormField must be used inside a <FormField>. Without it there is no field id to attach a label or a message to.");let{errors:t}=useFormState({name:e.name}),o=e.name.split(".").reduce((s,a)=>s?.[a],t);return {name:e.name,formItemId:e.id,formDescriptionId:`${e.id}-description`,formMessageId:`${e.id}-message`,error:o}}function g({className:e,...t}){return r.createElement("div",{className:a("space-y-1.5",e),...t})}g.displayName="FormItem";var y=r.forwardRef(({className:e,...t},o)=>{let{error:s,formItemId:a$1}=i();return r.createElement(b,{ref:o,htmlFor:a$1,className:a(s&&"text-destructive",e),...t})});y.displayName="FormLabel";var C=r.forwardRef(({...e},t)=>{let{error:o,formItemId:s,formDescriptionId:a,formMessageId:n}=i();return r.createElement(Slot,{ref:t,id:s,"aria-describedby":o?`${a} ${n}`:a,"aria-invalid":o?true:void 0,...e})});C.displayName="FormControl";var I=r.forwardRef(({...e},t)=>{let{formDescriptionId:o}=i();return r.createElement(b$1,{ref:t,id:o,...e})});I.displayName="FormDescription";var M=r.forwardRef(({children:e,...t},o)=>{let{error:s,formMessageId:a}=i(),n=s?.message??e;return n?r.createElement(b$2,{ref:o,id:a,...t},n):null});M.displayName="FormMessage";export{v as Form,C as FormControl,I as FormDescription,N as FormField,g as FormItem,y as FormLabel,M as FormMessage,i as useFormField};//# sourceMappingURL=form.js.map
3
3
  //# sourceMappingURL=form.js.map
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const helperTextVariants: (props?: ({
6
- variant?: "default" | "success" | "error" | "warning" | "info" | null | undefined;
6
+ variant?: "error" | "default" | "success" | "warning" | "info" | null | undefined;
7
7
  size?: "default" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface HelperTextProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof helperTextVariants> {
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const helperTextVariants: (props?: ({
6
- variant?: "default" | "success" | "error" | "warning" | "info" | null | undefined;
6
+ variant?: "error" | "default" | "success" | "warning" | "info" | null | undefined;
7
7
  size?: "default" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface HelperTextProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof helperTextVariants> {
@@ -6,8 +6,8 @@ declare const iconMap: Record<string, React__default.ElementType>;
6
6
  type IconName = keyof typeof iconMap;
7
7
  declare const iconVariants: (props?: ({
8
8
  size?: "sm" | "lg" | "xl" | "xs" | "md" | "2xl" | "3xl" | null | undefined;
9
- weight?: "light" | "fill" | "bold" | "thin" | "regular" | "duotone" | null | undefined;
10
- color?: "secondary" | "success" | "error" | "current" | "warning" | "muted" | "primary" | null | undefined;
9
+ weight?: "fill" | "bold" | "light" | "thin" | "regular" | "duotone" | null | undefined;
10
+ color?: "error" | "secondary" | "success" | "current" | "warning" | "muted" | "primary" | null | undefined;
11
11
  } & class_variance_authority_types.ClassProp) | undefined) => string;
12
12
  interface IconProps extends Omit<React__default.HTMLAttributes<SVGSVGElement>, "color">, VariantProps<typeof iconVariants> {
13
13
  name: IconName;
@@ -6,8 +6,8 @@ declare const iconMap: Record<string, React__default.ElementType>;
6
6
  type IconName = keyof typeof iconMap;
7
7
  declare const iconVariants: (props?: ({
8
8
  size?: "sm" | "lg" | "xl" | "xs" | "md" | "2xl" | "3xl" | null | undefined;
9
- weight?: "light" | "fill" | "bold" | "thin" | "regular" | "duotone" | null | undefined;
10
- color?: "secondary" | "success" | "error" | "current" | "warning" | "muted" | "primary" | null | undefined;
9
+ weight?: "fill" | "bold" | "light" | "thin" | "regular" | "duotone" | null | undefined;
10
+ color?: "error" | "secondary" | "success" | "current" | "warning" | "muted" | "primary" | null | undefined;
11
11
  } & class_variance_authority_types.ClassProp) | undefined) => string;
12
12
  interface IconProps extends Omit<React__default.HTMLAttributes<SVGSVGElement>, "color">, VariantProps<typeof iconVariants> {
13
13
  name: IconName;
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ 'use strict';var chunkBJPJB6IA_cjs=require('../../chunk-BJPJB6IA.cjs');require('../../chunk-ITRGJNWL.cjs');Object.defineProperty(exports,"InputOTP",{enumerable:true,get:function(){return chunkBJPJB6IA_cjs.a}});Object.defineProperty(exports,"InputOTPGroup",{enumerable:true,get:function(){return chunkBJPJB6IA_cjs.b}});Object.defineProperty(exports,"InputOTPSeparator",{enumerable:true,get:function(){return chunkBJPJB6IA_cjs.d}});Object.defineProperty(exports,"InputOTPSlot",{enumerable:true,get:function(){return chunkBJPJB6IA_cjs.c}});//# sourceMappingURL=input-otp.cjs.map
3
+ //# sourceMappingURL=input-otp.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"input-otp.cjs"}
@@ -0,0 +1,50 @@
1
+ import * as React from 'react';
2
+ import { OTPInputProps } from 'input-otp';
3
+
4
+ /**
5
+ * A one-time code, one character per box.
6
+ *
7
+ * There is exactly one `<input>`, stretched across the whole row and made
8
+ * invisible. The boxes are divs that read their character out of context. That
9
+ * is what makes paste, autofill, `autocomplete="one-time-code"`, backspace and
10
+ * mobile keyboards work: the browser sees a single ordinary text field. A row of
11
+ * six real inputs looks the same and gets all of that wrong.
12
+ *
13
+ * The consequence, and the one thing worth knowing: the caret you see is drawn
14
+ * by CSS, because the real caret is not where the boxes are.
15
+ *
16
+ * ## Slots are positional
17
+ *
18
+ * `InputOTPSlot` takes an `index`, and the indices must run 0..maxLength-1 in
19
+ * document order. Nothing enforces it, because the boxes are yours to arrange -
20
+ * `InputOTPSeparator` sits between groups, and the grouping is a visual choice
21
+ * that this component should not make for you.
22
+ */
23
+ /**
24
+ * `containerClassName` styles the row of boxes; `className` styles the hidden
25
+ * input.
26
+ *
27
+ * A re-export rather than an interface of our own. The upstream type is a union
28
+ * - `render` or `children`, never both - and `interface extends` flattens a
29
+ * union into one object with every member optional, which would let both through
30
+ * at once. Same reason the props below are spread whole instead of destructured:
31
+ * `Omit` over a union collapses it too.
32
+ */
33
+ type InputOTPProps = OTPInputProps;
34
+ declare const InputOTP: React.ForwardRefExoticComponent<OTPInputProps & React.RefAttributes<HTMLInputElement>>;
35
+ /**
36
+ * One group of boxes.
37
+ *
38
+ * The boxes inside a group share borders, so the group reads as one field split
39
+ * into cells rather than as separate inputs.
40
+ */
41
+ declare const InputOTPGroup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
42
+ interface InputOTPSlotProps extends React.HTMLAttributes<HTMLDivElement> {
43
+ /** Position in the code, from 0. Must match the order on screen. */
44
+ index: number;
45
+ }
46
+ declare const InputOTPSlot: React.ForwardRefExoticComponent<InputOTPSlotProps & React.RefAttributes<HTMLDivElement>>;
47
+ /** A gap between groups. Decorative, so it is hidden rather than announced. */
48
+ declare const InputOTPSeparator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
49
+
50
+ export { InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputOTPSlotProps };
@@ -0,0 +1,50 @@
1
+ import * as React from 'react';
2
+ import { OTPInputProps } from 'input-otp';
3
+
4
+ /**
5
+ * A one-time code, one character per box.
6
+ *
7
+ * There is exactly one `<input>`, stretched across the whole row and made
8
+ * invisible. The boxes are divs that read their character out of context. That
9
+ * is what makes paste, autofill, `autocomplete="one-time-code"`, backspace and
10
+ * mobile keyboards work: the browser sees a single ordinary text field. A row of
11
+ * six real inputs looks the same and gets all of that wrong.
12
+ *
13
+ * The consequence, and the one thing worth knowing: the caret you see is drawn
14
+ * by CSS, because the real caret is not where the boxes are.
15
+ *
16
+ * ## Slots are positional
17
+ *
18
+ * `InputOTPSlot` takes an `index`, and the indices must run 0..maxLength-1 in
19
+ * document order. Nothing enforces it, because the boxes are yours to arrange -
20
+ * `InputOTPSeparator` sits between groups, and the grouping is a visual choice
21
+ * that this component should not make for you.
22
+ */
23
+ /**
24
+ * `containerClassName` styles the row of boxes; `className` styles the hidden
25
+ * input.
26
+ *
27
+ * A re-export rather than an interface of our own. The upstream type is a union
28
+ * - `render` or `children`, never both - and `interface extends` flattens a
29
+ * union into one object with every member optional, which would let both through
30
+ * at once. Same reason the props below are spread whole instead of destructured:
31
+ * `Omit` over a union collapses it too.
32
+ */
33
+ type InputOTPProps = OTPInputProps;
34
+ declare const InputOTP: React.ForwardRefExoticComponent<OTPInputProps & React.RefAttributes<HTMLInputElement>>;
35
+ /**
36
+ * One group of boxes.
37
+ *
38
+ * The boxes inside a group share borders, so the group reads as one field split
39
+ * into cells rather than as separate inputs.
40
+ */
41
+ declare const InputOTPGroup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
42
+ interface InputOTPSlotProps extends React.HTMLAttributes<HTMLDivElement> {
43
+ /** Position in the code, from 0. Must match the order on screen. */
44
+ index: number;
45
+ }
46
+ declare const InputOTPSlot: React.ForwardRefExoticComponent<InputOTPSlotProps & React.RefAttributes<HTMLDivElement>>;
47
+ /** A gap between groups. Decorative, so it is hidden rather than announced. */
48
+ declare const InputOTPSeparator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
49
+
50
+ export { InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputOTPSlotProps };
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ export{a as InputOTP,b as InputOTPGroup,d as InputOTPSeparator,c as InputOTPSlot}from'../../chunk-K45ZUJ42.js';import'../../chunk-AC2JBXHQ.js';//# sourceMappingURL=input-otp.js.map
3
+ //# sourceMappingURL=input-otp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"input-otp.js"}
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const inputVariants: (props?: ({
6
- variant?: "default" | "subtle" | "success" | "error" | null | undefined;
6
+ variant?: "error" | "default" | "subtle" | "success" | null | undefined;
7
7
  inputSize?: "default" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof inputVariants> {
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const inputVariants: (props?: ({
6
- variant?: "default" | "subtle" | "success" | "error" | null | undefined;
6
+ variant?: "error" | "default" | "subtle" | "success" | null | undefined;
7
7
  inputSize?: "default" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof inputVariants> {
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const labelVariants: (props?: ({
6
- variant?: "default" | "success" | "error" | "warning" | "info" | "muted" | null | undefined;
6
+ variant?: "error" | "default" | "success" | "warning" | "info" | "muted" | null | undefined;
7
7
  size?: "default" | "sm" | "lg" | null | undefined;
8
8
  weight?: "bold" | "normal" | "medium" | "semibold" | null | undefined;
9
9
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const labelVariants: (props?: ({
6
- variant?: "default" | "success" | "error" | "warning" | "info" | "muted" | null | undefined;
6
+ variant?: "error" | "default" | "success" | "warning" | "info" | "muted" | null | undefined;
7
7
  size?: "default" | "sm" | "lg" | null | undefined;
8
8
  weight?: "bold" | "normal" | "medium" | "semibold" | null | undefined;
9
9
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -7,7 +7,7 @@ declare const paginationVariants: (props?: ({
7
7
  size?: "default" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  declare const paginationItemVariants: (props?: ({
10
- variant?: "default" | "outline" | "ghost" | "link" | null | undefined;
10
+ variant?: "link" | "default" | "outline" | "ghost" | null | undefined;
11
11
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
12
12
  } & class_variance_authority_types.ClassProp) | undefined) => string;
13
13
  interface PaginationProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof paginationVariants> {
@@ -7,7 +7,7 @@ declare const paginationVariants: (props?: ({
7
7
  size?: "default" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  declare const paginationItemVariants: (props?: ({
10
- variant?: "default" | "outline" | "ghost" | "link" | null | undefined;
10
+ variant?: "link" | "default" | "outline" | "ghost" | null | undefined;
11
11
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
12
12
  } & class_variance_authority_types.ClassProp) | undefined) => string;
13
13
  interface PaginationProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof paginationVariants> {
@@ -4,15 +4,15 @@ import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const progressVariants: (props?: ({
6
6
  size?: "sm" | "lg" | "xl" | "md" | null | undefined;
7
- variant?: "default" | "success" | "error" | "warning" | "alien" | "primary" | "energy" | "health" | null | undefined;
7
+ variant?: "error" | "default" | "success" | "warning" | "alien" | "primary" | "energy" | "health" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  declare const progressBarVariants: (props?: ({
10
- variant?: "default" | "success" | "error" | "warning" | "alien" | "primary" | "energy" | "health" | null | undefined;
10
+ variant?: "error" | "default" | "success" | "warning" | "alien" | "primary" | "energy" | "health" | null | undefined;
11
11
  animated?: boolean | null | undefined;
12
12
  glow?: boolean | null | undefined;
13
13
  } & class_variance_authority_types.ClassProp) | undefined) => string;
14
14
  declare const progressLabelVariants: (props?: ({
15
- variant?: "default" | "success" | "error" | "warning" | "alien" | "primary" | "energy" | "health" | null | undefined;
15
+ variant?: "error" | "default" | "success" | "warning" | "alien" | "primary" | "energy" | "health" | null | undefined;
16
16
  } & class_variance_authority_types.ClassProp) | undefined) => string;
17
17
  interface ProgressProps extends React__default.HTMLAttributes<HTMLDivElement>, VariantProps<typeof progressVariants> {
18
18
  value: number;
@@ -4,15 +4,15 @@ import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const progressVariants: (props?: ({
6
6
  size?: "sm" | "lg" | "xl" | "md" | null | undefined;
7
- variant?: "default" | "success" | "error" | "warning" | "alien" | "primary" | "energy" | "health" | null | undefined;
7
+ variant?: "error" | "default" | "success" | "warning" | "alien" | "primary" | "energy" | "health" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  declare const progressBarVariants: (props?: ({
10
- variant?: "default" | "success" | "error" | "warning" | "alien" | "primary" | "energy" | "health" | null | undefined;
10
+ variant?: "error" | "default" | "success" | "warning" | "alien" | "primary" | "energy" | "health" | null | undefined;
11
11
  animated?: boolean | null | undefined;
12
12
  glow?: boolean | null | undefined;
13
13
  } & class_variance_authority_types.ClassProp) | undefined) => string;
14
14
  declare const progressLabelVariants: (props?: ({
15
- variant?: "default" | "success" | "error" | "warning" | "alien" | "primary" | "energy" | "health" | null | undefined;
15
+ variant?: "error" | "default" | "success" | "warning" | "alien" | "primary" | "energy" | "health" | null | undefined;
16
16
  } & class_variance_authority_types.ClassProp) | undefined) => string;
17
17
  interface ProgressProps extends React__default.HTMLAttributes<HTMLDivElement>, VariantProps<typeof progressVariants> {
18
18
  value: number;
@@ -6,7 +6,7 @@ declare const radioGroupVariants: (props?: ({
6
6
  orientation?: "horizontal" | "vertical" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
8
  declare const radioItemVariants: (props?: ({
9
- variant?: "default" | "success" | "error" | null | undefined;
9
+ variant?: "error" | "default" | "success" | null | undefined;
10
10
  size?: "default" | "sm" | "lg" | null | undefined;
11
11
  } & class_variance_authority_types.ClassProp) | undefined) => string;
12
12
  interface RadioGroupProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof radioGroupVariants> {
@@ -6,7 +6,7 @@ declare const radioGroupVariants: (props?: ({
6
6
  orientation?: "horizontal" | "vertical" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
8
  declare const radioItemVariants: (props?: ({
9
- variant?: "default" | "success" | "error" | null | undefined;
9
+ variant?: "error" | "default" | "success" | null | undefined;
10
10
  size?: "default" | "sm" | "lg" | null | undefined;
11
11
  } & class_variance_authority_types.ClassProp) | undefined) => string;
12
12
  interface RadioGroupProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof radioGroupVariants> {
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ 'use strict';var chunk27UORO2F_cjs=require('../../chunk-27UORO2F.cjs');require('../../chunk-ITRGJNWL.cjs');Object.defineProperty(exports,"ResizableHandle",{enumerable:true,get:function(){return chunk27UORO2F_cjs.c}});Object.defineProperty(exports,"ResizablePanel",{enumerable:true,get:function(){return chunk27UORO2F_cjs.b}});Object.defineProperty(exports,"ResizablePanelGroup",{enumerable:true,get:function(){return chunk27UORO2F_cjs.a}});//# sourceMappingURL=resizable.cjs.map
3
+ //# sourceMappingURL=resizable.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"resizable.cjs"}