@usetrip/react-ui 0.1.0 → 0.2.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 (55) hide show
  1. package/dist/AlertBox.cjs +1 -0
  2. package/dist/AlertBox.d.ts +15 -0
  3. package/dist/AlertBox.js +5 -0
  4. package/dist/Button.cjs +1 -0
  5. package/dist/Button.d.ts +22 -0
  6. package/dist/Button.js +6 -0
  7. package/dist/ButtonLink.cjs +1 -0
  8. package/dist/ButtonLink.d.ts +25 -0
  9. package/dist/ButtonLink.js +6 -0
  10. package/dist/CalendarInput.cjs +1 -0
  11. package/dist/CalendarInput.d.ts +19 -0
  12. package/dist/CalendarInput.js +5 -0
  13. package/dist/CustomEditor.cjs +1 -0
  14. package/dist/CustomEditor.d.ts +16 -0
  15. package/dist/CustomEditor.js +5 -0
  16. package/dist/InputCounter.cjs +1 -0
  17. package/dist/InputCounter.d.ts +18 -0
  18. package/dist/InputCounter.js +5 -0
  19. package/dist/RangeDatePicker.cjs +1 -0
  20. package/dist/RangeDatePicker.d.ts +17 -0
  21. package/dist/RangeDatePicker.js +5 -0
  22. package/dist/SearchInput.cjs +1 -0
  23. package/dist/SearchInput.d.ts +15 -0
  24. package/dist/SearchInput.js +5 -0
  25. package/dist/TextField.cjs +1 -0
  26. package/dist/TextField.d.ts +27 -0
  27. package/dist/TextField.js +5 -0
  28. package/dist/Typography.cjs +1 -0
  29. package/dist/Typography.d.ts +25 -0
  30. package/dist/Typography.js +5 -0
  31. package/dist/chunks/AlertBox-TM5iLIH2.js +26 -0
  32. package/dist/chunks/AlertBox-b6dgMZ5I.cjs +1 -0
  33. package/dist/chunks/Button-C2ZQLgBk.js +75 -0
  34. package/dist/chunks/Button-DjizmSRN.cjs +1 -0
  35. package/dist/chunks/ButtonLink-C1BjiV2m.cjs +1 -0
  36. package/dist/chunks/ButtonLink-CG6S2pym.js +105 -0
  37. package/dist/chunks/CalendarInput-CPV0f1Gl.cjs +1 -0
  38. package/dist/chunks/CalendarInput-CxvAV7hK.js +58 -0
  39. package/dist/chunks/CustomEditor-BW_Mgv0y.cjs +1 -0
  40. package/dist/chunks/CustomEditor-q2MqCUUF.js +28 -0
  41. package/dist/chunks/InputCounter-6ZYoaiaX.js +46 -0
  42. package/dist/chunks/InputCounter-srYivV6j.cjs +1 -0
  43. package/dist/chunks/RangeDatePicker-CoEU93mq.cjs +1 -0
  44. package/dist/chunks/RangeDatePicker-DwccOp_Y.js +458 -0
  45. package/dist/chunks/SearchInput-5J5H9Yfv.js +55 -0
  46. package/dist/chunks/SearchInput-Dp1Q72Co.cjs +1 -0
  47. package/dist/chunks/TextField-DX6eZufy.js +145 -0
  48. package/dist/chunks/TextField-Dr3vhUtA.cjs +1 -0
  49. package/dist/chunks/Typography-B892BQsd.js +166 -0
  50. package/dist/chunks/Typography-CTDehHO_.cjs +1 -0
  51. package/dist/chunks/utils-D1b-iVvd.cjs +1 -0
  52. package/dist/chunks/utils-D9fNSpDp.js +8 -0
  53. package/dist/index.cjs +1 -1
  54. package/dist/index.js +22 -1110
  55. package/package.json +52 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./chunks/AlertBox-b6dgMZ5I.cjs");exports.AlertBox=e.AlertBox;exports.default=e.AlertBox;
@@ -0,0 +1,15 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+
3
+ declare function AlertBox({ message, type, className }: Readonly<AlertBoxProps>): JSX.Element;
4
+ export { AlertBox }
5
+ export default AlertBox;
6
+
7
+ declare type AlertBoxProps = {
8
+ message: string;
9
+ type?: AlertType;
10
+ className?: string;
11
+ };
12
+
13
+ declare type AlertType = 'default' | 'info' | 'warning' | 'error' | 'success';
14
+
15
+ export { }
@@ -0,0 +1,5 @@
1
+ import { A as o, A as r } from "./chunks/AlertBox-TM5iLIH2.js";
2
+ export {
3
+ o as AlertBox,
4
+ r as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./chunks/Button-DjizmSRN.cjs");exports.Button=t.Button;exports.buttonVariants=t.buttonVariants;exports.default=t.Button;
@@ -0,0 +1,22 @@
1
+ import { ClassProp } from 'class-variance-authority/types';
2
+ import * as React_2 from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+
5
+ declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
6
+ export { Button }
7
+ export default Button;
8
+
9
+ export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
10
+ asChild?: boolean;
11
+ isLoading?: boolean;
12
+ startIcon?: React_2.ReactNode;
13
+ endIcon?: React_2.ReactNode;
14
+ }
15
+
16
+ export declare const buttonVariants: (props?: ({
17
+ variant?: "primary" | "link" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
18
+ size?: "sm" | "lg" | "md" | "full" | "icon" | null | undefined;
19
+ rounded?: "default" | "none" | "full" | null | undefined;
20
+ } & ClassProp) | undefined) => string;
21
+
22
+ export { }
package/dist/Button.js ADDED
@@ -0,0 +1,6 @@
1
+ import { B as o, b as s, B as n } from "./chunks/Button-C2ZQLgBk.js";
2
+ export {
3
+ o as Button,
4
+ s as buttonVariants,
5
+ n as default
6
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./chunks/ButtonLink-C1BjiV2m.cjs");exports.ButtonLink=t.ButtonLink;exports.buttonLinkVariants=t.buttonLinkVariants;exports.default=t.ButtonLink;
@@ -0,0 +1,25 @@
1
+ import { ClassProp } from 'class-variance-authority/types';
2
+ import * as React_2 from 'react';
3
+ import { To } from 'react-router-dom';
4
+ import { VariantProps } from 'class-variance-authority';
5
+
6
+ declare const ButtonLink: React_2.ForwardRefExoticComponent<ButtonLinkProps & React_2.RefAttributes<HTMLAnchorElement>>;
7
+ export { ButtonLink }
8
+ export default ButtonLink;
9
+
10
+ export declare interface ButtonLinkProps extends Omit<React_2.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>, VariantProps<typeof buttonLinkVariants> {
11
+ asChild?: boolean;
12
+ isLoading?: boolean;
13
+ startIcon?: React_2.ReactNode;
14
+ endIcon?: React_2.ReactNode;
15
+ to: To;
16
+ external?: boolean;
17
+ }
18
+
19
+ export declare const buttonLinkVariants: (props?: ({
20
+ variant?: "primary" | "link" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
21
+ size?: "sm" | "lg" | "md" | "full" | "icon" | null | undefined;
22
+ rounded?: "default" | "none" | "full" | null | undefined;
23
+ } & ClassProp) | undefined) => string;
24
+
25
+ export { }
@@ -0,0 +1,6 @@
1
+ import { B as n, b as o, B as s } from "./chunks/ButtonLink-CG6S2pym.js";
2
+ export {
3
+ n as ButtonLink,
4
+ o as buttonLinkVariants,
5
+ s as default
6
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./chunks/CalendarInput-CPV0f1Gl.cjs");exports.CalendarInput=e.CalendarInput;exports.default=e.CalendarInput;
@@ -0,0 +1,19 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+
3
+ declare function CalendarInput({ label, value, placeholder, onClick, onFocus, className, state, hintText, compact, }: CalendarInputProps): JSX.Element;
4
+ export { CalendarInput }
5
+ export default CalendarInput;
6
+
7
+ declare interface CalendarInputProps {
8
+ label: string;
9
+ value: string;
10
+ placeholder?: string;
11
+ onClick?: () => void;
12
+ onFocus?: () => void;
13
+ className?: string;
14
+ state?: 'warning' | 'error' | 'default';
15
+ hintText?: string;
16
+ compact?: boolean;
17
+ }
18
+
19
+ export { }
@@ -0,0 +1,5 @@
1
+ import { C as r, C as t } from "./chunks/CalendarInput-CxvAV7hK.js";
2
+ export {
3
+ r as CalendarInput,
4
+ t as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./chunks/CustomEditor-BW_Mgv0y.cjs");exports.CustomEditor=t.CustomEditor;exports.default=t.CustomEditor;
@@ -0,0 +1,16 @@
1
+ import { ComponentProps } from 'react';
2
+ import { ContentEditableEvent } from 'react-simple-wysiwyg';
3
+ import { JSX } from 'react/jsx-runtime';
4
+
5
+ declare function CustomEditor({ value, onChange, placeholder, containerProps }: CustomEditorProps): JSX.Element;
6
+ export { CustomEditor }
7
+ export default CustomEditor;
8
+
9
+ declare type CustomEditorProps = Readonly<{
10
+ value: string;
11
+ onChange: (e: ContentEditableEvent) => void;
12
+ placeholder?: string;
13
+ containerProps?: ComponentProps<'div'>;
14
+ }>;
15
+
16
+ export { }
@@ -0,0 +1,5 @@
1
+ import { C as a, C as r } from "./chunks/CustomEditor-q2MqCUUF.js";
2
+ export {
3
+ a as CustomEditor,
4
+ r as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./chunks/InputCounter-srYivV6j.cjs");exports.InputCounter=e.InputCounter;exports.default=e.InputCounter;
@@ -0,0 +1,18 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+
3
+ declare function InputCounter({ label, value, onIncrement, onDecrement, minValue, className, hintText, compact, }: InputCounterProps): JSX.Element;
4
+ export { InputCounter }
5
+ export default InputCounter;
6
+
7
+ declare interface InputCounterProps {
8
+ label: string;
9
+ value: number;
10
+ onIncrement: () => void;
11
+ onDecrement: () => void;
12
+ minValue?: number;
13
+ className?: string;
14
+ hintText?: string;
15
+ compact?: boolean;
16
+ }
17
+
18
+ export { }
@@ -0,0 +1,5 @@
1
+ import { I as e, I as o } from "./chunks/InputCounter-6ZYoaiaX.js";
2
+ export {
3
+ e as InputCounter,
4
+ o as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./chunks/RangeDatePicker-CoEU93mq.cjs");exports.RangeDatePicker=e.RangeDatePicker;exports.default=e.RangeDatePicker;
@@ -0,0 +1,17 @@
1
+ import { DateRange } from 'react-day-picker';
2
+ import { JSX } from 'react/jsx-runtime';
3
+
4
+ declare function RangeDatePicker({ isOpen, onClose, onSelect, initialRange, focusedField, minDate, }: RangeDatePickerProps): JSX.Element;
5
+ export { RangeDatePicker }
6
+ export default RangeDatePicker;
7
+
8
+ declare interface RangeDatePickerProps {
9
+ isOpen: boolean;
10
+ onClose: () => void;
11
+ onSelect: (range: DateRange | undefined) => void;
12
+ initialRange?: DateRange;
13
+ focusedField?: 'start' | 'end' | null;
14
+ minDate?: Date;
15
+ }
16
+
17
+ export { }
@@ -0,0 +1,5 @@
1
+ import { R as r, R as t } from "./chunks/RangeDatePicker-DwccOp_Y.js";
2
+ export {
3
+ r as RangeDatePicker,
4
+ t as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./chunks/SearchInput-Dp1Q72Co.cjs");exports.SearchInput=e.SearchInput;exports.default=e.SearchInput;
@@ -0,0 +1,15 @@
1
+ import { ForwardRefExoticComponent } from 'react';
2
+ import { RefAttributes } from 'react';
3
+
4
+ declare const SearchInput: ForwardRefExoticComponent<SearchInputProps & RefAttributes<HTMLInputElement>>;
5
+ export { SearchInput }
6
+ export default SearchInput;
7
+
8
+ declare interface SearchInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
9
+ placeholder?: string;
10
+ variant?: 'default' | 'compact';
11
+ size?: 'sm' | 'md' | 'lg' | 'full';
12
+ className?: string;
13
+ }
14
+
15
+ export { }
@@ -0,0 +1,5 @@
1
+ import { S as r, S as t } from "./chunks/SearchInput-5J5H9Yfv.js";
2
+ export {
3
+ r as SearchInput,
4
+ t as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./chunks/TextField-Dr3vhUtA.cjs");exports.TextField=e.TextField;exports.default=e.TextField;
@@ -0,0 +1,27 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+
3
+ declare type AutoCompleteTypes = 'off' | 'on' | 'name' | 'email' | 'username' | 'new-password' | 'current-password' | 'one-time-code' | 'organization' | 'street-address' | 'address-line1' | 'address-line2' | 'address-line3' | 'address-level1' | 'address-level2' | 'address-level3' | 'address-level4' | 'country' | 'country-name' | 'postal-code' | 'cc-name' | 'cc-number' | 'cc-exp' | 'cc-exp-month' | 'cc-exp-year' | 'cc-csc' | 'cc-type' | 'transaction-currency' | 'transaction-amount' | 'language' | 'bday' | 'bday-day' | 'bday-month' | 'bday-year' | 'sex' | 'tel' | 'tel-country-code' | 'tel-national' | 'tel-area-code' | 'tel-local' | 'tel-extension' | 'url' | 'photo';
4
+
5
+ declare function TextField({ label, placeholder, type, state, hintText, value, onChange, required, disabled, id, className, size, autoComplete, autoCapitalize, compact, }: TextFieldProps): JSX.Element;
6
+ export { TextField }
7
+ export default TextField;
8
+
9
+ declare type TextFieldProps = {
10
+ label?: string;
11
+ placeholder?: string;
12
+ type?: 'text' | 'password' | 'email' | 'number' | 'date';
13
+ state?: 'warning' | 'error' | 'default';
14
+ hintText?: string;
15
+ value?: string;
16
+ onChange?: (value: string) => void;
17
+ required?: boolean;
18
+ disabled?: boolean;
19
+ id?: string;
20
+ className?: string;
21
+ size?: 'sm' | 'md' | 'lg' | 'full';
22
+ autoComplete?: AutoCompleteTypes | string;
23
+ autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
24
+ compact?: boolean;
25
+ };
26
+
27
+ export { }
@@ -0,0 +1,5 @@
1
+ import { T as t, T } from "./chunks/TextField-DX6eZufy.js";
2
+ export {
3
+ t as TextField,
4
+ T as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./chunks/Typography-CTDehHO_.cjs");exports.Typography=e.Typography;exports.default=e.Typography;
@@ -0,0 +1,25 @@
1
+ import { ClassProp } from 'class-variance-authority/types';
2
+ import { HTMLAttributes } from 'react';
3
+ import { JSX } from 'react/jsx-runtime';
4
+ import { VariantProps } from 'class-variance-authority';
5
+
6
+ export declare type ElementType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div' | 'label';
7
+
8
+ declare const Typography: ({ className, variant, color, align, transform, weight, size, as, ...props }: TypographyProps) => JSX.Element;
9
+ export { Typography }
10
+ export default Typography;
11
+
12
+ export declare interface TypographyProps extends Omit<HTMLAttributes<HTMLElement>, 'color'>, VariantProps<typeof typographyVariantStyles> {
13
+ as?: ElementType;
14
+ }
15
+
16
+ declare const typographyVariantStyles: (props?: ({
17
+ variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "body1" | "body2" | "caption" | "label" | "button" | null | undefined;
18
+ color?: "default" | "muted" | "white" | "primary" | "success" | "warning" | "danger" | null | undefined;
19
+ align?: "left" | "center" | "right" | "justify" | null | undefined;
20
+ transform?: "uppercase" | "lowercase" | "capitalize" | "normal" | null | undefined;
21
+ weight?: "normal" | "light" | "medium" | "semibold" | "bold" | "extrabold" | null | undefined;
22
+ size?: "4xl" | "3xl" | "2xl" | "xs" | "sm" | "base" | "lg" | "xl" | "5xl" | null | undefined;
23
+ } & ClassProp) | undefined) => string;
24
+
25
+ export { }
@@ -0,0 +1,5 @@
1
+ import { T as p, T as r } from "./chunks/Typography-B892BQsd.js";
2
+ export {
3
+ p as Typography,
4
+ r as default
5
+ };
@@ -0,0 +1,26 @@
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import { c as l } from "./utils-D9fNSpDp.js";
3
+ import { T as d } from "./Typography-B892BQsd.js";
4
+ const i = {
5
+ default: { container: "bg-gray-50 border-gray-200", icon: "text-gray-500", text: "text-gray-700" },
6
+ info: { container: "bg-blue-50 border-blue-200", icon: "text-blue-500", text: "text-blue-700" },
7
+ warning: { container: "bg-yellow-50 border-yellow-200", icon: "text-yellow-500", text: "text-yellow-700" },
8
+ error: { container: "bg-red-50 border-red-200", icon: "text-red-500", text: "text-red-700" },
9
+ success: { container: "bg-green-50 border-green-200", icon: "text-green-500", text: "text-green-700" }
10
+ }, c = {
11
+ default: /* @__PURE__ */ e("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z", clipRule: "evenodd" }),
12
+ info: /* @__PURE__ */ e("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z", clipRule: "evenodd" }),
13
+ warning: /* @__PURE__ */ e("path", { fillRule: "evenodd", d: "M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z", clipRule: "evenodd" }),
14
+ error: /* @__PURE__ */ e("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z", clipRule: "evenodd" }),
15
+ success: /* @__PURE__ */ e("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z", clipRule: "evenodd" })
16
+ };
17
+ function g({ message: a, type: t = "error", className: o }) {
18
+ const r = i[t];
19
+ return /* @__PURE__ */ n("div", { className: l("w-full p-3 border rounded-lg flex items-start gap-2", r.container, o), children: [
20
+ /* @__PURE__ */ e("svg", { className: l("w-5 h-5 shrink-0 mt-0.5", r.icon), fill: "currentColor", viewBox: "0 0 20 20", "aria-hidden": "true", children: c[t] }),
21
+ /* @__PURE__ */ e(d, { variant: "body2", className: l("flex-1", r.text), children: a })
22
+ ] });
23
+ }
24
+ export {
25
+ g as A
26
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react/jsx-runtime"),r=require("./utils-D1b-iVvd.cjs"),o=require("./Typography-CTDehHO_.cjs"),d={default:{container:"bg-gray-50 border-gray-200",icon:"text-gray-500",text:"text-gray-700"},info:{container:"bg-blue-50 border-blue-200",icon:"text-blue-500",text:"text-blue-700"},warning:{container:"bg-yellow-50 border-yellow-200",icon:"text-yellow-500",text:"text-yellow-700"},error:{container:"bg-red-50 border-red-200",icon:"text-red-500",text:"text-red-700"},success:{container:"bg-green-50 border-green-200",icon:"text-green-500",text:"text-green-700"}},i={default:e.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"}),info:e.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"}),warning:e.jsx("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}),error:e.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}),success:e.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})};function c({message:n,type:l="error",className:a}){const t=d[l];return e.jsxs("div",{className:r.cn("w-full p-3 border rounded-lg flex items-start gap-2",t.container,a),children:[e.jsx("svg",{className:r.cn("w-5 h-5 shrink-0 mt-0.5",t.icon),fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:i[l]}),e.jsx(o.Typography,{variant:"body2",className:r.cn("flex-1",t.text),children:n})]})}exports.AlertBox=c;
@@ -0,0 +1,75 @@
1
+ import { jsxs as p, jsx as b } from "react/jsx-runtime";
2
+ import * as g from "react";
3
+ import { Slot as v } from "@radix-ui/react-slot";
4
+ import { cva as x } from "class-variance-authority";
5
+ import { Loader2 as h } from "lucide-react";
6
+ import { c as y } from "./utils-D9fNSpDp.js";
7
+ const w = x(
8
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background cursor-pointer",
9
+ {
10
+ variants: {
11
+ variant: {
12
+ primary: "bg-primary text-primary-foreground hover:bg-primary/90",
13
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
14
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
15
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
16
+ ghost: "hover:bg-accent hover:text-accent-foreground",
17
+ link: "underline-offset-4 hover:underline text-primary"
18
+ },
19
+ size: {
20
+ sm: "h-9 px-3 py-2 text-xs",
21
+ md: "h-10 py-2 px-4 text-sm",
22
+ lg: "h-12 px-6 py-3 text-base",
23
+ full: "h-12 w-full px-6 py-3 text-base",
24
+ icon: "h-10 w-10 p-0"
25
+ },
26
+ rounded: {
27
+ default: "rounded-md",
28
+ full: "rounded-full",
29
+ none: "rounded-none"
30
+ }
31
+ },
32
+ defaultVariants: {
33
+ variant: "primary",
34
+ size: "md",
35
+ rounded: "default"
36
+ }
37
+ }
38
+ ), j = g.forwardRef(
39
+ ({
40
+ className: r,
41
+ variant: t,
42
+ size: o,
43
+ rounded: n,
44
+ asChild: s = !1,
45
+ isLoading: e = !1,
46
+ startIcon: a,
47
+ endIcon: i,
48
+ disabled: d,
49
+ children: u,
50
+ ...c
51
+ }, l) => {
52
+ const f = s ? v : "button", m = d || e;
53
+ return /* @__PURE__ */ p(
54
+ f,
55
+ {
56
+ className: y(w({ variant: t, size: o, rounded: n, className: r })),
57
+ ref: l,
58
+ disabled: m,
59
+ "data-loading": e,
60
+ ...c,
61
+ children: [
62
+ e && /* @__PURE__ */ b(h, { className: "h-4 w-4 animate-spin" }),
63
+ !e && a,
64
+ u,
65
+ !e && i
66
+ ]
67
+ }
68
+ );
69
+ }
70
+ );
71
+ j.displayName = "Button";
72
+ export {
73
+ j as B,
74
+ w as b
75
+ };
@@ -0,0 +1 @@
1
+ "use strict";const s=require("react/jsx-runtime"),v=require("react"),y=require("@radix-ui/react-slot"),x=require("class-variance-authority"),h=require("lucide-react"),j=require("./utils-D1b-iVvd.cjs");function w(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const q=w(v),a=x.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background cursor-pointer",{variants:{variant:{primary:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",link:"underline-offset-4 hover:underline text-primary"},size:{sm:"h-9 px-3 py-2 text-xs",md:"h-10 py-2 px-4 text-sm",lg:"h-12 px-6 py-3 text-base",full:"h-12 w-full px-6 py-3 text-base",icon:"h-10 w-10 p-0"},rounded:{default:"rounded-md",full:"rounded-full",none:"rounded-none"}},defaultVariants:{variant:"primary",size:"md",rounded:"default"}}),i=q.forwardRef(({className:e,variant:r,size:t,rounded:o,asChild:c=!1,isLoading:n=!1,startIcon:u,endIcon:d,disabled:l,children:f,...b},p)=>{const g=c?y.Slot:"button",m=l||n;return s.jsxs(g,{className:j.cn(a({variant:r,size:t,rounded:o,className:e})),ref:p,disabled:m,"data-loading":n,...b,children:[n&&s.jsx(h.Loader2,{className:"h-4 w-4 animate-spin"}),!n&&u,f,!n&&d]})});i.displayName="Button";exports.Button=i;exports.buttonVariants=a;
@@ -0,0 +1 @@
1
+ "use strict";const i=require("react/jsx-runtime"),b=require("react"),y=require("@radix-ui/react-slot"),j=require("class-variance-authority"),f=require("lucide-react"),g=require("react-router-dom"),m=require("./utils-D1b-iVvd.cjs");function k(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>t[r]})}}return n.default=t,Object.freeze(n)}const w=k(b),a=j.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background cursor-pointer",{variants:{variant:{primary:"text-primary hover:text-primary/90 hover:underline underline-offset-4",secondary:"text-secondary hover:text-secondary/80 hover:underline underline-offset-4",destructive:"text-destructive hover:text-destructive/90 hover:underline underline-offset-4",outline:"border border-input text-foreground hover:text-accent-foreground hover:underline underline-offset-4",ghost:"hover:text-accent-foreground hover:underline underline-offset-4",link:"underline-offset-4 hover:underline text-primary"},size:{sm:"h-9 px-3 py-2 text-xs",md:"h-10 py-2 px-4 text-sm",lg:"h-12 px-6 py-3 text-base",full:"h-12 w-full px-6 py-3 text-base",icon:"h-10 w-10 p-0"},rounded:{default:"rounded-md",full:"rounded-full",none:"rounded-none"}},defaultVariants:{variant:"primary",size:"md",rounded:"default"}}),x=w.forwardRef(({className:t,variant:n,size:r,rounded:o,asChild:h=!1,isLoading:e=!1,startIcon:s,endIcon:u,to:p,external:v=!1,children:l,...c},d)=>h?i.jsxs(y.Slot,{className:m.cn(a({variant:n,size:r,rounded:o,className:t})),ref:d,"data-loading":e,...c,children:[e&&i.jsx(f.Loader2,{className:"h-4 w-4 animate-spin"}),!e&&s,l,!e&&u]}):v?i.jsxs("a",{href:p.toString(),className:m.cn(a({variant:n,size:r,rounded:o,className:t})),ref:d,"data-loading":e,target:"_blank",rel:"noopener noreferrer",...c,children:[e&&i.jsx(f.Loader2,{className:"h-4 w-4 animate-spin"}),!e&&s,l,!e&&u]}):i.jsxs(g.Link,{to:p,className:m.cn(a({variant:n,size:r,rounded:o,className:t})),ref:d,"data-loading":e,...c,children:[e&&i.jsx(f.Loader2,{className:"h-4 w-4 animate-spin"}),!e&&s,l,!e&&u]}));x.displayName="ButtonLink";exports.ButtonLink=x;exports.buttonLinkVariants=a;
@@ -0,0 +1,105 @@
1
+ import { jsxs as u, jsx as d } from "react/jsx-runtime";
2
+ import * as y from "react";
3
+ import { Slot as b } from "@radix-ui/react-slot";
4
+ import { cva as w } from "class-variance-authority";
5
+ import { Loader2 as m } from "lucide-react";
6
+ import { Link as k } from "react-router-dom";
7
+ import { c as p } from "./utils-D9fNSpDp.js";
8
+ const c = w(
9
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background cursor-pointer",
10
+ {
11
+ variants: {
12
+ variant: {
13
+ primary: "text-primary hover:text-primary/90 hover:underline underline-offset-4",
14
+ secondary: "text-secondary hover:text-secondary/80 hover:underline underline-offset-4",
15
+ destructive: "text-destructive hover:text-destructive/90 hover:underline underline-offset-4",
16
+ outline: "border border-input text-foreground hover:text-accent-foreground hover:underline underline-offset-4",
17
+ ghost: "hover:text-accent-foreground hover:underline underline-offset-4",
18
+ link: "underline-offset-4 hover:underline text-primary"
19
+ },
20
+ size: {
21
+ sm: "h-9 px-3 py-2 text-xs",
22
+ md: "h-10 py-2 px-4 text-sm",
23
+ lg: "h-12 px-6 py-3 text-base",
24
+ full: "h-12 w-full px-6 py-3 text-base",
25
+ icon: "h-10 w-10 p-0"
26
+ },
27
+ rounded: {
28
+ default: "rounded-md",
29
+ full: "rounded-full",
30
+ none: "rounded-none"
31
+ }
32
+ },
33
+ defaultVariants: {
34
+ variant: "primary",
35
+ size: "md",
36
+ rounded: "default"
37
+ }
38
+ }
39
+ ), g = y.forwardRef(
40
+ ({
41
+ className: r,
42
+ variant: t,
43
+ size: n,
44
+ rounded: o,
45
+ asChild: h = !1,
46
+ isLoading: e = !1,
47
+ startIcon: i,
48
+ endIcon: a,
49
+ to: x,
50
+ external: v = !1,
51
+ children: l,
52
+ ...s
53
+ }, f) => h ? /* @__PURE__ */ u(
54
+ b,
55
+ {
56
+ className: p(c({ variant: t, size: n, rounded: o, className: r })),
57
+ ref: f,
58
+ "data-loading": e,
59
+ ...s,
60
+ children: [
61
+ e && /* @__PURE__ */ d(m, { className: "h-4 w-4 animate-spin" }),
62
+ !e && i,
63
+ l,
64
+ !e && a
65
+ ]
66
+ }
67
+ ) : v ? /* @__PURE__ */ u(
68
+ "a",
69
+ {
70
+ href: x.toString(),
71
+ className: p(c({ variant: t, size: n, rounded: o, className: r })),
72
+ ref: f,
73
+ "data-loading": e,
74
+ target: "_blank",
75
+ rel: "noopener noreferrer",
76
+ ...s,
77
+ children: [
78
+ e && /* @__PURE__ */ d(m, { className: "h-4 w-4 animate-spin" }),
79
+ !e && i,
80
+ l,
81
+ !e && a
82
+ ]
83
+ }
84
+ ) : /* @__PURE__ */ u(
85
+ k,
86
+ {
87
+ to: x,
88
+ className: p(c({ variant: t, size: n, rounded: o, className: r })),
89
+ ref: f,
90
+ "data-loading": e,
91
+ ...s,
92
+ children: [
93
+ e && /* @__PURE__ */ d(m, { className: "h-4 w-4 animate-spin" }),
94
+ !e && i,
95
+ l,
96
+ !e && a
97
+ ]
98
+ }
99
+ )
100
+ );
101
+ g.displayName = "ButtonLink";
102
+ export {
103
+ g as B,
104
+ c as b
105
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react/jsx-runtime"),x=require("lucide-react"),p=require("./Typography-CTDehHO_.cjs");function f({label:n,value:d,placeholder:i="Selecione uma data",onClick:t,onFocus:r,className:u="",state:a="default",hintText:l,compact:s=!1}){const c=()=>{t==null||t(),r==null||r()},o=()=>{switch(a){case"warning":return"border-yellow-500 focus:ring-yellow-500";case"error":return"border-red-500 focus:ring-red-500";default:return"border-gray-300 focus:ring-blue-500"}},y=()=>{switch(a){case"warning":return"text-yellow-500";case"error":return"text-red-500";default:return"text-neutral-500"}};return e.jsxs("div",{className:u,children:[e.jsx(p.Typography,{as:"label",variant:"body2",className:`${s?"mb-0.5":"mb-2"} block`,children:n}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",value:d,placeholder:i,readOnly:!0,className:`w-full border rounded-md ${s?"py-1":"py-2"} pl-10 pr-3 focus:outline-none focus:ring-2 cursor-pointer ${o()}`,onClick:c,onFocus:r}),e.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:e.jsx(x.Calendar,{className:"h-4 w-4 text-gray-400"})})]}),e.jsx("div",{className:`${s?"h-3 mt-0":"h-5 mt-1"}`,children:l&&e.jsx("p",{className:`text-[12px] ${y()}`,children:l})})]})}exports.CalendarInput=f;
@@ -0,0 +1,58 @@
1
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
+ import { Calendar as p } from "lucide-react";
3
+ import { T as y } from "./Typography-B892BQsd.js";
4
+ function x({
5
+ label: d,
6
+ value: i,
7
+ placeholder: o = "Selecione uma data",
8
+ onClick: t,
9
+ onFocus: r,
10
+ className: u = "",
11
+ state: l = "default",
12
+ hintText: n,
13
+ compact: a = !1
14
+ }) {
15
+ const c = () => {
16
+ t == null || t(), r == null || r();
17
+ }, m = () => {
18
+ switch (l) {
19
+ case "warning":
20
+ return "border-yellow-500 focus:ring-yellow-500";
21
+ case "error":
22
+ return "border-red-500 focus:ring-red-500";
23
+ default:
24
+ return "border-gray-300 focus:ring-blue-500";
25
+ }
26
+ }, f = () => {
27
+ switch (l) {
28
+ case "warning":
29
+ return "text-yellow-500";
30
+ case "error":
31
+ return "text-red-500";
32
+ default:
33
+ return "text-neutral-500";
34
+ }
35
+ };
36
+ return /* @__PURE__ */ s("div", { className: u, children: [
37
+ /* @__PURE__ */ e(y, { as: "label", variant: "body2", className: `${a ? "mb-0.5" : "mb-2"} block`, children: d }),
38
+ /* @__PURE__ */ s("div", { className: "relative", children: [
39
+ /* @__PURE__ */ e(
40
+ "input",
41
+ {
42
+ type: "text",
43
+ value: i,
44
+ placeholder: o,
45
+ readOnly: !0,
46
+ className: `w-full border rounded-md ${a ? "py-1" : "py-2"} pl-10 pr-3 focus:outline-none focus:ring-2 cursor-pointer ${m()}`,
47
+ onClick: c,
48
+ onFocus: r
49
+ }
50
+ ),
51
+ /* @__PURE__ */ e("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none", children: /* @__PURE__ */ e(p, { className: "h-4 w-4 text-gray-400" }) })
52
+ ] }),
53
+ /* @__PURE__ */ e("div", { className: `${a ? "h-3 mt-0" : "h-5 mt-1"}`, children: n && /* @__PURE__ */ e("p", { className: `text-[12px] ${f()}`, children: n }) })
54
+ ] });
55
+ }
56
+ export {
57
+ x as C
58
+ };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("react/jsx-runtime"),s=require("react-simple-wysiwyg");function u({value:l,onChange:i,placeholder:d,containerProps:e}){return t.jsx(s.EditorProvider,{children:t.jsx(s.Editor,{value:l,onChange:i,placeholder:d,containerProps:{...e,className:`custom-editor-container ${(e==null?void 0:e.className)??""}`,style:{...e==null?void 0:e.style,backgroundColor:"white"}},children:t.jsxs(s.Toolbar,{className:"custom-editor-toolbar",children:[t.jsx(s.BtnBold,{}),t.jsx(s.BtnItalic,{}),t.jsx(s.BtnUnderline,{}),t.jsx(s.BtnStrikeThrough,{}),t.jsx(s.BtnNumberedList,{}),t.jsx(s.BtnBulletList,{})]})})})}exports.CustomEditor=u;