@max-ts/kit 0.28.0 → 1.1.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 (83) hide show
  1. package/lib/components/Button/Button.d.ts +1 -1
  2. package/lib/components/Button/Button.d.ts.map +1 -1
  3. package/lib/components/Combobox/Combobox.d.ts +22 -0
  4. package/lib/components/Combobox/Combobox.d.ts.map +1 -0
  5. package/lib/components/Combobox/index.d.ts +3 -0
  6. package/lib/components/Combobox/index.d.ts.map +1 -0
  7. package/lib/components/Combobox/styles.css.d.ts +22 -0
  8. package/lib/components/Combobox/styles.css.d.ts.map +1 -0
  9. package/lib/components/Combobox/types.d.ts +26 -0
  10. package/lib/components/Combobox/types.d.ts.map +1 -0
  11. package/lib/components/Input/styles.css.d.ts +0 -2
  12. package/lib/components/Input/styles.css.d.ts.map +1 -1
  13. package/lib/components/InputGroup/InputGroup.d.ts +11 -0
  14. package/lib/components/InputGroup/InputGroup.d.ts.map +1 -0
  15. package/lib/components/InputGroup/index.d.ts +3 -0
  16. package/lib/components/InputGroup/index.d.ts.map +1 -0
  17. package/lib/components/InputGroup/styles.css.d.ts +10 -0
  18. package/lib/components/InputGroup/styles.css.d.ts.map +1 -0
  19. package/lib/components/InputGroup/types.d.ts +16 -0
  20. package/lib/components/InputGroup/types.d.ts.map +1 -0
  21. package/lib/components/PageLayout/Header/Header.d.ts +7 -33
  22. package/lib/components/PageLayout/Header/Header.d.ts.map +1 -1
  23. package/lib/components/PageLayout/Header/styles.css.d.ts +3 -8
  24. package/lib/components/PageLayout/Header/styles.css.d.ts.map +1 -1
  25. package/lib/components/PageLayout/PageLayout.d.ts +1 -1
  26. package/lib/components/Textarea/Textarea.d.ts +5 -0
  27. package/lib/components/Textarea/Textarea.d.ts.map +1 -0
  28. package/lib/components/Textarea/index.d.ts +2 -0
  29. package/lib/components/Textarea/index.d.ts.map +1 -0
  30. package/lib/components/Textarea/styles.css.d.ts +2 -0
  31. package/lib/components/Textarea/styles.css.d.ts.map +1 -0
  32. package/lib/components/index.d.ts +3 -0
  33. package/lib/components/index.d.ts.map +1 -1
  34. package/lib/index.d.ts +0 -1
  35. package/lib/index.d.ts.map +1 -1
  36. package/lib/index.mjs +338 -152
  37. package/lib/stories/Button.stories.d.ts +1 -1
  38. package/lib/stories/Combobox.stories.d.ts +8 -0
  39. package/lib/stories/Combobox.stories.d.ts.map +1 -0
  40. package/lib/stories/DashboardLayout.stories.d.ts.map +1 -1
  41. package/lib/stories/InputGroup.stories.d.ts +8 -0
  42. package/lib/stories/InputGroup.stories.d.ts.map +1 -0
  43. package/lib/stories/MaskField.stories.d.ts +0 -1
  44. package/lib/stories/MaskField.stories.d.ts.map +1 -1
  45. package/lib/stories/Sidebar/Sidebar.stories.d.ts.map +1 -1
  46. package/lib/stories/Textarea.stories.d.ts +8 -0
  47. package/lib/stories/Textarea.stories.d.ts.map +1 -0
  48. package/lib/styles.css +515 -81
  49. package/package.json +15 -12
  50. package/lib/form/Form/Form.d.ts +0 -46
  51. package/lib/form/Form/Form.d.ts.map +0 -1
  52. package/lib/form/Form/index.d.ts +0 -2
  53. package/lib/form/Form/index.d.ts.map +0 -1
  54. package/lib/form/FormMaskField/FormMaskField.d.ts +0 -5
  55. package/lib/form/FormMaskField/FormMaskField.d.ts.map +0 -1
  56. package/lib/form/FormMaskField/index.d.ts +0 -3
  57. package/lib/form/FormMaskField/index.d.ts.map +0 -1
  58. package/lib/form/FormMaskField/types.d.ts +0 -5
  59. package/lib/form/FormMaskField/types.d.ts.map +0 -1
  60. package/lib/form/FormSubmitButton/FormSubmitButton.d.ts +0 -7
  61. package/lib/form/FormSubmitButton/FormSubmitButton.d.ts.map +0 -1
  62. package/lib/form/FormSubmitButton/index.d.ts +0 -2
  63. package/lib/form/FormSubmitButton/index.d.ts.map +0 -1
  64. package/lib/form/FormTextField/FormTextField.d.ts +0 -8
  65. package/lib/form/FormTextField/FormTextField.d.ts.map +0 -1
  66. package/lib/form/FormTextField/index.d.ts +0 -3
  67. package/lib/form/FormTextField/index.d.ts.map +0 -1
  68. package/lib/form/FormTextField/types.d.ts +0 -5
  69. package/lib/form/FormTextField/types.d.ts.map +0 -1
  70. package/lib/form/external.d.ts +0 -2
  71. package/lib/form/external.d.ts.map +0 -1
  72. package/lib/form/hooks/index.d.ts +0 -3
  73. package/lib/form/hooks/index.d.ts.map +0 -1
  74. package/lib/form/hooks/useForm/index.d.ts +0 -2
  75. package/lib/form/hooks/useForm/index.d.ts.map +0 -1
  76. package/lib/form/hooks/useForm/useForm.d.ts +0 -5
  77. package/lib/form/hooks/useForm/useForm.d.ts.map +0 -1
  78. package/lib/form/hooks/useFormContext/index.d.ts +0 -2
  79. package/lib/form/hooks/useFormContext/index.d.ts.map +0 -1
  80. package/lib/form/index.d.ts +0 -8
  81. package/lib/form/index.d.ts.map +0 -1
  82. package/lib/form/types.d.ts +0 -8
  83. package/lib/form/types.d.ts.map +0 -1
@@ -8,7 +8,7 @@ export type ButtonProps = ButtonPrimitive.Props & {
8
8
  startAdornment?: React.ReactNode;
9
9
  endAdornment?: React.ReactNode;
10
10
  };
11
- declare const Button: ({ className, variant, size, startAdornment, endAdornment, isLoading, fullWidth, children, ...props }: ButtonProps) => import("react").JSX.Element;
11
+ declare const Button: ({ className, variant, size, startAdornment, endAdornment, isLoading, fullWidth, children, nativeButton, ...props }: ButtonProps) => import("react").JSX.Element;
12
12
  declare const buttonVariants: Record<ButtonVariant, string>, buttonSizes: Record<ButtonSize, string>;
13
13
  export { Button, buttonSizes, buttonVariants };
14
14
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGlE,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC,KAAK,GAAG;IACjD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B,CAAC;AAEF,QAAA,MAAM,MAAM,GAAI,sGAUb,WAAW,gCAsBb,CAAC;AAEF,QAAA,MAAQ,cAAc,iCAAE,WAAW,4BAAW,CAAC;AAE/C,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGlE,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC,KAAK,GAAG;IACjD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B,CAAC;AAEF,QAAA,MAAM,MAAM,GAAI,oHAWb,WAAW,gCAsBb,CAAC;AAEF,QAAA,MAAQ,cAAc,iCAAE,WAAW,4BAAW,CAAC;AAE/C,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { ComboboxProps } from './types';
2
+ declare function Combobox<Value = unknown, Multiple extends boolean | undefined = false>(props: ComboboxProps.Root<Value, Multiple>): import("react").JSX.Element;
3
+ declare namespace Combobox {
4
+ var Value: (props: ComboboxProps.Value) => import("react").JSX.Element;
5
+ var Trigger: ({ className, children, ...props }: ComboboxProps.Trigger) => import("react").JSX.Element;
6
+ var Clear: ({ className, children, ...props }: ComboboxProps.Clear) => import("react").JSX.Element;
7
+ var Input: ({ className, children, disabled, showTrigger, showClear, ...props }: ComboboxProps.Input) => import("react").JSX.Element;
8
+ var Content: ({ className, side, sideOffset, align, alignOffset, anchor, ...props }: ComboboxProps.Content) => import("react").JSX.Element;
9
+ var List: ({ className, ...props }: ComboboxProps.List) => import("react").JSX.Element;
10
+ var Item: ({ className, children, ...props }: ComboboxProps.Item) => import("react").JSX.Element;
11
+ var Group: ({ ...props }: ComboboxProps.Group) => import("react").JSX.Element;
12
+ var Label: ({ className, ...props }: ComboboxProps.Label) => import("react").JSX.Element;
13
+ var Collection: (props: ComboboxProps.Collection) => import("react").JSX.Element;
14
+ var Empty: ({ className, ...props }: ComboboxProps.Empty) => import("react").JSX.Element;
15
+ var Separator: ({ className, ...props }: ComboboxProps.Separator) => import("react").JSX.Element;
16
+ var Chips: ({ className, ...props }: ComboboxProps.Chips) => import("react").JSX.Element;
17
+ var Chip: ({ className, children, showRemove, ...props }: ComboboxProps.Chip) => import("react").JSX.Element;
18
+ var ChipsInput: ({ className, ...props }: ComboboxProps.ChipsInput) => import("react").JSX.Element;
19
+ }
20
+ declare function useComboboxAnchor(): import("react").RefObject<HTMLDivElement | null>;
21
+ export { Combobox, useComboboxAnchor };
22
+ //# sourceMappingURL=Combobox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,iBAAS,QAAQ,CAChB,KAAK,GAAG,OAAO,EACf,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,KAAK,EAC3C,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,+BAE3C;kBALQ,QAAQ;uBAOK,aAAa,CAAC,KAAK;qDAIW,aAAa,CAAC,OAAO;mDAavB,aAAa,CAAC,KAAK;qFAmBlE,aAAa,CAAC,KAAK;yFA6BnB,aAAa,CAAC,OAAO;wCAsBe,aAAa,CAAC,IAAI;kDAUR,aAAa,CAAC,IAAI;8BAetC,aAAa,CAAC,KAAK;yCAIR,aAAa,CAAC,KAAK;4BAUhC,aAAa,CAAC,UAAU;yCAIX,aAAa,CAAC,KAAK;6CAUf,aAAa,CAAC,SAAS;yCAU3B,aAAa,CAAC,KAAK;8DAexD,aAAa,CAAC,IAAI;8CA4BwB,aAAa,CAAC,UAAU;;AAUrE,iBAAS,iBAAiB,qDAEzB;AAkBD,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './Combobox';
2
+ export type { ComboboxProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,22 @@
1
+ export declare const trigger: string;
2
+ export declare const triggerIcon: string;
3
+ export declare const clearIcon: string;
4
+ export declare const controlButton: string;
5
+ export declare const inputGroup: string;
6
+ export declare const inputTrigger: string;
7
+ export declare const positioner: string;
8
+ export declare const content: string;
9
+ export declare const list: string;
10
+ export declare const item: string;
11
+ export declare const itemIndicator: string;
12
+ export declare const label: string;
13
+ export declare const empty: string;
14
+ export declare const separator: string;
15
+ export declare const chips: string;
16
+ export declare const chip: string;
17
+ export declare const chipWithRemove: string;
18
+ export declare const chipRemove: string;
19
+ export declare const chipRemoveButton: string;
20
+ export declare const chipsInput: string;
21
+ export declare const chipRemoveSize: Record<"icon-xs", string>;
22
+ //# sourceMappingURL=styles.css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/styles.css.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,OAAO,QAQlB,CAAC;AAEH,eAAO,MAAM,WAAW,QAKtB,CAAC;AAEH,eAAO,MAAM,SAAS,QAIpB,CAAC;AAEH,eAAO,MAAM,aAAa,QA6BxB,CAAC;AAEH,eAAO,MAAM,UAAU,QAErB,CAAC;AAEH,eAAO,MAAM,YAAY,QAAY,CAAC;AAMtC,eAAO,MAAM,UAAU,QAGrB,CAAC;AAEH,eAAO,MAAM,OAAO,QA2BlB,CAAC;AAEH,eAAO,MAAM,IAAI,QAYf,CAAC;AAEH,eAAO,MAAM,IAAI,QAuBf,CAAC;AAEH,eAAO,MAAM,aAAa,QASxB,CAAC;AAEH,eAAO,MAAM,KAAK,QAIhB,CAAC;AAEH,eAAO,MAAM,KAAK,QAQhB,CAAC;AAMH,eAAO,MAAM,SAAS,QAIpB,CAAC;AAEH,eAAO,MAAM,KAAK,QAuBhB,CAAC;AAEH,eAAO,MAAM,IAAI,QAsBf,CAAC;AAEH,eAAO,MAAM,cAAc,QAEzB,CAAC;AAEH,eAAO,MAAM,UAAU,QASrB,CAAC;AAEH,eAAO,MAAM,gBAAgB,QAW3B,CAAC;AAEH,eAAO,MAAM,UAAU,QASrB,CAAC;AAEH,eAAO,MAAM,cAAc,2BAMzB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { Combobox } from '@base-ui/react/combobox';
2
+ import type { Separator } from '@base-ui/react/separator';
3
+ export declare namespace ComboboxProps {
4
+ type Root<Value = unknown, Multiple extends boolean | undefined = false> = Combobox.Root.Props<Value, Multiple>;
5
+ type Value = Combobox.Value.Props;
6
+ type Trigger = Combobox.Trigger.Props;
7
+ type Clear = Combobox.Clear.Props;
8
+ type Input = Combobox.Input.Props & {
9
+ showTrigger?: boolean;
10
+ showClear?: boolean;
11
+ };
12
+ type Content = Combobox.Popup.Props & Pick<Combobox.Positioner.Props, 'side' | 'align' | 'sideOffset' | 'alignOffset' | 'anchor'>;
13
+ type List = Combobox.List.Props;
14
+ type Item = Combobox.Item.Props;
15
+ type Group = Combobox.Group.Props;
16
+ type Label = Combobox.GroupLabel.Props;
17
+ type Collection = Combobox.Collection.Props;
18
+ type Empty = Combobox.Empty.Props;
19
+ type Separator = Separator.Props;
20
+ type Chips = Combobox.Chips.Props;
21
+ type Chip = Combobox.Chip.Props & {
22
+ showRemove?: boolean;
23
+ };
24
+ type ChipsInput = Combobox.Input.Props;
25
+ }
26
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE1D,yBAAiB,aAAa,CAAC;IAC9B,KAAY,IAAI,CACf,KAAK,GAAG,OAAO,EACf,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,KAAK,IACzC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAEzC,KAAY,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;IAEzC,KAAY,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC;IAE7C,KAAY,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;IAEzC,KAAY,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,GAAG;QAC1C,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,SAAS,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;IAEF,KAAY,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,GACzC,IAAI,CACH,QAAQ,CAAC,UAAU,CAAC,KAAK,EACzB,MAAM,GAAG,OAAO,GAAG,YAAY,GAAG,aAAa,GAAG,QAAQ,CAC1D,CAAC;IAEH,KAAY,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC;IAEvC,KAAY,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC;IAEvC,KAAY,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;IAEzC,KAAY,KAAK,GAAG,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC;IAE9C,KAAY,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC;IAEnD,KAAY,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;IAEzC,KAAY,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC;IAExC,KAAY,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;IAEzC,KAAY,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,GAAG;QACxC,UAAU,CAAC,EAAE,OAAO,CAAC;KACrB,CAAC;IAEF,KAAY,UAAU,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;CAC9C"}
@@ -1,8 +1,6 @@
1
1
  export declare const container: string;
2
2
  export declare const variants: Record<"outlined" | "standard", string>;
3
3
  export declare const fullWidthClass: string;
4
- export declare const containerHover: string;
5
- export declare const containerFocusWithin: string;
6
4
  export declare const disabledClass: string;
7
5
  export declare const errorClass: string;
8
6
  export declare const input: string;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Input/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,QAarB,CAAC;AAEF,eAAO,MAAM,QAAQ,yCASnB,CAAC;AAEH,eAAO,MAAM,cAAc,QAEzB,CAAC;AAEH,eAAO,MAAM,cAAc,QAOzB,CAAC;AAEH,eAAO,MAAM,oBAAoB,QAM/B,CAAC;AAEH,eAAO,MAAM,aAAa,QAGxB,CAAC;AAEH,eAAO,MAAM,UAAU,QASrB,CAAC;AAGH,eAAO,MAAM,KAAK,QAmBhB,CAAC;AAGH,eAAO,MAAM,KAAK,oCAgBhB,CAAC;AAEH,eAAO,MAAM,SAAS,QAKpB,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAE7B,CAAC;AAEH,eAAO,MAAM,gBAAgB,QAE3B,CAAC"}
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Input/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,QAcrB,CAAC;AAEF,eAAO,MAAM,QAAQ,yCASnB,CAAC;AAEH,eAAO,MAAM,cAAc,QAEzB,CAAC;AAEH,eAAO,MAAM,aAAa,QAGxB,CAAC;AAEH,eAAO,MAAM,UAAU,QASrB,CAAC;AAGH,eAAO,MAAM,KAAK,QAmBhB,CAAC;AAGH,eAAO,MAAM,KAAK,oCAgBhB,CAAC;AAEH,eAAO,MAAM,SAAS,QAKpB,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAE7B,CAAC;AAEH,eAAO,MAAM,gBAAgB,QAE3B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { InputGroupProps } from './types';
2
+ declare function InputGroup({ className, ...props }: InputGroupProps.Root): import("react").JSX.Element;
3
+ declare namespace InputGroup {
4
+ var Addon: ({ className, align, ...props }: InputGroupProps.Addon) => import("react").JSX.Element;
5
+ var Button: ({ className, type, variant, size, ...props }: InputGroupProps.Button) => import("react").JSX.Element;
6
+ var Text: ({ className, ...props }: InputGroupProps.Text) => import("react").JSX.Element;
7
+ var Input: ({ className, ...props }: InputGroupProps.Input) => import("react").JSX.Element;
8
+ var Textarea: ({ className, ...props }: InputGroupProps.Textarea) => import("react").JSX.Element;
9
+ }
10
+ export { InputGroup };
11
+ //# sourceMappingURL=InputGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputGroup.d.ts","sourceRoot":"","sources":["../../../src/components/InputGroup/InputGroup.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,CAAC,IAAI,+BAQhE;kBARQ,UAAU;gDAchB,eAAe,CAAC,KAAK;+DAiBrB,eAAe,CAAC,MAAM;wCAYc,eAAe,CAAC,IAAI;yCAUnB,eAAe,CAAC,KAAK;4CAUlB,eAAe,CAAC,QAAQ;;AAgBnE,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './InputGroup';
2
+ export type { InputGroupProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/InputGroup/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare const root: string;
2
+ export declare const addon: string;
3
+ export declare const addonAlign: Record<"inline-end" | "inline-start" | "block-end" | "block-start", string>;
4
+ export declare const button: string;
5
+ export declare const buttonSize: Record<"xs" | "sm" | "icon-xs" | "icon-sm", string>;
6
+ export declare const text: string;
7
+ export declare const control: string;
8
+ export declare const input: string;
9
+ export declare const textarea: string;
10
+ //# sourceMappingURL=styles.css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/InputGroup/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,QAuCf,CAAC;AAEH,eAAO,MAAM,KAAK,QAUhB,CAAC;AAUH,eAAO,MAAM,UAAU,6EAqBrB,CAAC;AAEH,eAAO,MAAM,MAAM,QAEjB,CAAC;AAEH,eAAO,MAAM,UAAU,qDAsBrB,CAAC;AAEH,eAAO,MAAM,IAAI,QAMf,CAAC;AAEH,eAAO,MAAM,OAAO,QAoBlB,CAAC;AAEH,eAAO,MAAM,KAAK,QAGhB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAInB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { ComponentPropsWithRef } from 'react';
2
+ import type { ButtonProps } from '../Button';
3
+ export declare namespace InputGroupProps {
4
+ type Root = ComponentPropsWithRef<'div'>;
5
+ type Addon = ComponentPropsWithRef<'div'> & {
6
+ align?: 'inline-start' | 'inline-end' | 'block-start' | 'block-end';
7
+ };
8
+ type Button = Omit<ButtonProps, 'size' | 'type'> & {
9
+ size?: 'xs' | 'sm' | 'icon-xs' | 'icon-sm';
10
+ type?: 'button' | 'submit' | 'reset';
11
+ };
12
+ type Text = ComponentPropsWithRef<'span'>;
13
+ type Input = ComponentPropsWithRef<'input'>;
14
+ type Textarea = ComponentPropsWithRef<'textarea'>;
15
+ }
16
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/InputGroup/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C,yBAAiB,eAAe,CAAC;IAChC,KAAY,IAAI,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;IAEhD,KAAY,KAAK,GAAG,qBAAqB,CAAC,KAAK,CAAC,GAAG;QAClD,KAAK,CAAC,EAAE,cAAc,GAAG,YAAY,GAAG,aAAa,GAAG,WAAW,CAAC;KACpE,CAAC;IAEF,KAAY,MAAM,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG;QACzD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,CAAC;QAC3C,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;KACrC,CAAC;IAEF,KAAY,IAAI,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAEjD,KAAY,KAAK,GAAG,qBAAqB,CAAC,OAAO,CAAC,CAAC;IAEnD,KAAY,QAAQ,GAAG,qBAAqB,CAAC,UAAU,CAAC,CAAC;CACzD"}
@@ -1,46 +1,20 @@
1
- import { type ReactNode } from 'react';
2
- import { type ButtonProps } from '../../index.ts';
1
+ import { type ReactElement } from 'react';
3
2
  export type PageHeaderProps = {
4
3
  /**
5
- * Заголовок страницы
6
- * @example <PageHeader title="Заголовок страницы" />
4
+ * HTML title
5
+ * @example <PageHeader htmlTitle="Заголовок страницы" />
7
6
  */
8
- title: ReactNode | string;
9
- /**
10
- * Описание страницы
11
- * @example <PageHeader description="Описание страницы" />
12
- */
13
- subtitle?: ReactNode | string;
14
- /**
15
- * Хлебные крошки
16
- * @example <PageHeader breadcrumbs={
17
- * <Breadcrumbs>
18
- * <Link>Первая ссылка</Link>,
19
- * <Link>Вторая ссылка</Link>,
20
- * <>Текст</>
21
- * </Breadcrumbs>
22
- * } />
23
- */
24
- breadcrumbs?: ReactNode;
7
+ htmlTitle?: string;
25
8
  /**
26
9
  * Набор дополнительных действий
27
10
  * @example <PageHeader actions={<Button variant='link'>Перейти к счету</Button>} />
28
11
  */
29
- actions?: ReactNode;
12
+ actions?: ReactElement;
30
13
  /**
31
14
  * Название класса, применяется к корневому компоненту
32
15
  */
33
16
  className?: string;
34
- /**
35
- * Кнопка возврата на предыдущий экран
36
- * @example
37
- * <PageHeader
38
- * backButton={{
39
- * onClick: () => {},
40
- * }}
41
- * />
42
- */
43
- backButton?: Omit<ButtonProps, 'children' | 'variant'>;
17
+ children: ReactElement;
44
18
  };
45
- export declare const Header: (props: PageHeaderProps) => import("react").JSX.Element;
19
+ export declare const Header: ({ actions, className, htmlTitle, children, }: PageHeaderProps) => import("react").JSX.Element;
46
20
  //# sourceMappingURL=Header.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/PageLayout/Header/Header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAC;AAClD,OAAO,EAEN,KAAK,WAAW,EAIhB,MAAM,cAAc,CAAC;AAatB,MAAM,MAAM,eAAe,GAAG;IAC7B;;;OAGG;IACH,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;IAE1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAE9B;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;CACvD,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,OAAO,eAAe,gCAmD5C,CAAC"}
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/PageLayout/Header/Header.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAa,MAAM,OAAO,CAAC;AAIrD,MAAM,MAAM,eAAe,GAAG;IAC7B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,QAAQ,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,8CAKpB,eAAe,gCAajB,CAAC"}
@@ -1,9 +1,4 @@
1
- export declare const breadcrumbsClass: string;
2
- export declare const rootClass: string;
3
- export declare const buttonsClass: string;
4
- export declare const actionsClass: string;
5
- export declare const titleClass: string;
6
- export declare const titleContainerClass: string;
7
- export declare const subtitleClass: string;
8
- export declare const subtitleContainerClass: string;
1
+ export declare const root: string;
2
+ export declare const actions: string;
3
+ export declare const content: string;
9
4
  //# sourceMappingURL=styles.css.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/PageLayout/Header/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,QAQ5B,CAAC;AAEF,eAAO,MAAM,SAAS,QAWpB,CAAC;AAOH,eAAO,MAAM,YAAY,QAKvB,CAAC;AAEH,eAAO,MAAM,YAAY,QAMvB,CAAC;AAEH,eAAO,MAAM,UAAU,QAMrB,CAAC;AAEH,eAAO,MAAM,mBAAmB,QAK9B,CAAC;AAEH,eAAO,MAAM,aAAa,QAMxB,CAAC;AAEH,eAAO,MAAM,sBAAsB,QAKjC,CAAC"}
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/PageLayout/Header/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,QAWf,CAAC;AAEH,eAAO,MAAM,OAAO,QAMlB,CAAC;AAEH,eAAO,MAAM,OAAO,QAElB,CAAC"}
@@ -5,7 +5,7 @@ export type PageLayoutProps = {
5
5
  };
6
6
  export declare const PageLayout: {
7
7
  ({ children, className }: PageLayoutProps): import("react").JSX.Element;
8
- Header: (props: import("./Header").PageHeaderProps) => import("react").JSX.Element;
8
+ Header: ({ actions, className, htmlTitle, children, }: import("./Header").PageHeaderProps) => import("react").JSX.Element;
9
9
  Content: (props: import("./Content").PageContentProps) => import("react").JSX.Element;
10
10
  Footer: (props: import("./Footer").PageLayoutFooterProps) => import("react").JSX.Element;
11
11
  Aside: ({ children, className }: import("./Aside").PageAsideProps) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { ComponentPropsWithRef } from 'react';
2
+ export type TextareaProps = ComponentPropsWithRef<'textarea'>;
3
+ declare function Textarea({ className, ...props }: TextareaProps): import("react").JSX.Element;
4
+ export { Textarea };
5
+ //# sourceMappingURL=Textarea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAGnD,MAAM,MAAM,aAAa,GAAG,qBAAqB,CAAC,UAAU,CAAC,CAAC;AAE9D,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BAQvD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Textarea';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const textarea: string;
2
+ //# sourceMappingURL=styles.css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,QAmCnB,CAAC"}
@@ -11,6 +11,7 @@ export * from './Carousel';
11
11
  export * from './Checkbox';
12
12
  export * from './CircularProgress';
13
13
  export * from './Collapsible';
14
+ export * from './Combobox';
14
15
  export * from './ConfirmAction';
15
16
  export * from './ContentState';
16
17
  export * from './CopyTypography';
@@ -27,6 +28,7 @@ export * from './DropdownMenu';
27
28
  export * from './Empty';
28
29
  export * from './ImageCarousel';
29
30
  export * from './Input';
31
+ export * from './InputGroup';
30
32
  export * from './InputOTP';
31
33
  export * from './Label';
32
34
  export * from './MaskField';
@@ -45,6 +47,7 @@ export * from './Sheet';
45
47
  export * from './Sidebar';
46
48
  export * from './Slider';
47
49
  export * from './Tabs';
50
+ export * from './Textarea';
48
51
  export * from './TextField';
49
52
  export * from './ToggleGroup';
50
53
  export * from './Tooltip';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
package/lib/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export * from './components';
2
- export * from './form';
3
2
  export * from './hooks';
4
3
  export * from './theme';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}