@raystack/apsara 0.13.0 → 0.14.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../calendar/calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAM7D,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,EAAE,CAAC;AAIhD,eAAO,MAAM,QAAQ,yDAKlB,aAAa,4CA+Bf,CAAC"}
1
+ {"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../calendar/calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAM7D,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,EAAE,CAAC;AAIhD,eAAO,MAAM,QAAQ,yDAKlB,aAAa,4CAgCf,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { CalendarProps } from "./calendar";
2
+ import { TextfieldProps } from "~/textfield/textfield";
3
+ interface DatePickerProps {
4
+ side?: "top" | "right" | "bottom" | "left";
5
+ dateFormat?: string;
6
+ textFieldProps?: TextfieldProps;
7
+ calendarProps?: CalendarProps;
8
+ onSelect?: (date: Date) => void;
9
+ value?: Date;
10
+ }
11
+ export declare function DatePicker({ side, dateFormat, textFieldProps, calendarProps, value, onSelect, }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
13
+ //# sourceMappingURL=date-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../calendar/date-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,aAAa,EAAE,MAAM,YAAY,CAAC;AAKrD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD,UAAU,eAAe;IACvB,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAChC,KAAK,CAAC,EAAE,IAAI,CAAC;CACd;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAY,EACZ,UAAyB,EACzB,cAAc,EACd,aAAa,EACb,KAAkB,EAClB,QAAmB,GACpB,EAAE,eAAe,2CAoCjB"}
@@ -1,2 +1,4 @@
1
1
  export { Calendar } from "./calendar";
2
+ export { DatePicker } from "./date-picker";
3
+ export { RangePicker } from "./range-picker";
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../calendar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../calendar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { CalendarProps } from "./calendar";
2
+ import { TextfieldProps } from "~/textfield/textfield";
3
+ import { DateRange } from "react-day-picker";
4
+ interface RangePickerProps {
5
+ side?: "top" | "right" | "bottom" | "left";
6
+ dateFormat?: string;
7
+ textFieldProps?: TextfieldProps;
8
+ calendarProps?: CalendarProps;
9
+ onSelect?: (date: DateRange) => void;
10
+ pickerGroupClassName?: string;
11
+ value?: DateRange;
12
+ }
13
+ export declare function RangePicker({ side, dateFormat, textFieldProps, calendarProps, onSelect, value, pickerGroupClassName, }: RangePickerProps): import("react/jsx-runtime").JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=range-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range-picker.d.ts","sourceRoot":"","sources":["../../calendar/range-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,aAAa,EAAE,MAAM,YAAY,CAAC;AAKrD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,SAAS,EAA2B,MAAM,kBAAkB,CAAC;AAGtE,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACrC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAID,wBAAgB,WAAW,CAAC,EAC1B,IAAY,EACZ,UAAyB,EACzB,cAAc,EACd,aAAa,EACb,QAAmB,EACnB,KAGC,EACD,oBAAoB,GACrB,EAAE,gBAAgB,2CA4DlB"}
@@ -5,7 +5,8 @@ declare const errorstate: (props?: import("class-variance-authority/dist/types")
5
5
  type ErrorStateProps = PropsWithChildren<VariantProps<typeof errorstate>> & HTMLAttributes<HTMLElement> & {
6
6
  icon?: React.ReactElement;
7
7
  status?: Status;
8
+ message?: string;
8
9
  };
9
- export declare function ErrorState({ children, className, status, icon, ...props }: ErrorStateProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function ErrorState({ children, className, status, icon, message, ...props }: ErrorStateProps): import("react/jsx-runtime").JSX.Element;
10
11
  export {};
11
12
  //# sourceMappingURL=errorstate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errorstate.d.ts","sourceRoot":"","sources":["../../errorstate/errorstate.tsx"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