@cdx-ui/components 0.0.1-beta.140 → 0.0.1-beta.142

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 (148) hide show
  1. package/lib/commonjs/components/BottomSheet/index.js +8 -2
  2. package/lib/commonjs/components/BottomSheet/index.js.map +1 -1
  3. package/lib/commonjs/components/Calendar/CalendarMonthHeader.js +96 -0
  4. package/lib/commonjs/components/Calendar/CalendarMonthHeader.js.map +1 -0
  5. package/lib/commonjs/components/Calendar/CalendarYearPickerGrid.js +74 -0
  6. package/lib/commonjs/components/Calendar/CalendarYearPickerGrid.js.map +1 -0
  7. package/lib/commonjs/components/Calendar/flashCalendarAdapter.js +298 -0
  8. package/lib/commonjs/components/Calendar/flashCalendarAdapter.js.map +1 -0
  9. package/lib/commonjs/components/Calendar/index.js +149 -0
  10. package/lib/commonjs/components/Calendar/index.js.map +1 -0
  11. package/lib/commonjs/components/Calendar/styles.js +70 -0
  12. package/lib/commonjs/components/Calendar/styles.js.map +1 -0
  13. package/lib/commonjs/components/DateField/index.js +147 -0
  14. package/lib/commonjs/components/DateField/index.js.map +1 -0
  15. package/lib/commonjs/components/DateField/styles.js +34 -0
  16. package/lib/commonjs/components/DateField/styles.js.map +1 -0
  17. package/lib/commonjs/components/DatePicker/index.js +163 -0
  18. package/lib/commonjs/components/DatePicker/index.js.map +1 -0
  19. package/lib/commonjs/components/DateRangePicker/index.js +177 -0
  20. package/lib/commonjs/components/DateRangePicker/index.js.map +1 -0
  21. package/lib/commonjs/components/DateTimeField/index.js +96 -0
  22. package/lib/commonjs/components/DateTimeField/index.js.map +1 -0
  23. package/lib/commonjs/components/DateTimeList/index.js +180 -0
  24. package/lib/commonjs/components/DateTimeList/index.js.map +1 -0
  25. package/lib/commonjs/components/DateTimeList/styles.js +55 -0
  26. package/lib/commonjs/components/DateTimeList/styles.js.map +1 -0
  27. package/lib/commonjs/components/DateTimePicker/index.js +187 -0
  28. package/lib/commonjs/components/DateTimePicker/index.js.map +1 -0
  29. package/lib/commonjs/components/MonthCalendar/index.js +229 -0
  30. package/lib/commonjs/components/MonthCalendar/index.js.map +1 -0
  31. package/lib/commonjs/components/MonthPicker/index.js +163 -0
  32. package/lib/commonjs/components/MonthPicker/index.js.map +1 -0
  33. package/lib/commonjs/components/RangeCalendar/index.js +165 -0
  34. package/lib/commonjs/components/RangeCalendar/index.js.map +1 -0
  35. package/lib/commonjs/components/index.js +120 -0
  36. package/lib/commonjs/components/index.js.map +1 -1
  37. package/lib/commonjs/components/picker/PickerTrigger.js +49 -0
  38. package/lib/commonjs/components/picker/PickerTrigger.js.map +1 -0
  39. package/lib/commonjs/components/picker/styles.js +15 -0
  40. package/lib/commonjs/components/picker/styles.js.map +1 -0
  41. package/lib/commonjs/components/picker/surfaces.js +141 -0
  42. package/lib/commonjs/components/picker/surfaces.js.map +1 -0
  43. package/lib/module/components/BottomSheet/index.js +8 -2
  44. package/lib/module/components/BottomSheet/index.js.map +1 -1
  45. package/lib/module/components/Calendar/CalendarMonthHeader.js +92 -0
  46. package/lib/module/components/Calendar/CalendarMonthHeader.js.map +1 -0
  47. package/lib/module/components/Calendar/CalendarYearPickerGrid.js +70 -0
  48. package/lib/module/components/Calendar/CalendarYearPickerGrid.js.map +1 -0
  49. package/lib/module/components/Calendar/flashCalendarAdapter.js +290 -0
  50. package/lib/module/components/Calendar/flashCalendarAdapter.js.map +1 -0
  51. package/lib/module/components/Calendar/index.js +145 -0
  52. package/lib/module/components/Calendar/index.js.map +1 -0
  53. package/lib/module/components/Calendar/styles.js +66 -0
  54. package/lib/module/components/Calendar/styles.js.map +1 -0
  55. package/lib/module/components/DateField/index.js +143 -0
  56. package/lib/module/components/DateField/index.js.map +1 -0
  57. package/lib/module/components/DateField/styles.js +30 -0
  58. package/lib/module/components/DateField/styles.js.map +1 -0
  59. package/lib/module/components/DatePicker/index.js +159 -0
  60. package/lib/module/components/DatePicker/index.js.map +1 -0
  61. package/lib/module/components/DateRangePicker/index.js +173 -0
  62. package/lib/module/components/DateRangePicker/index.js.map +1 -0
  63. package/lib/module/components/DateTimeField/index.js +92 -0
  64. package/lib/module/components/DateTimeField/index.js.map +1 -0
  65. package/lib/module/components/DateTimeList/index.js +176 -0
  66. package/lib/module/components/DateTimeList/index.js.map +1 -0
  67. package/lib/module/components/DateTimeList/styles.js +52 -0
  68. package/lib/module/components/DateTimeList/styles.js.map +1 -0
  69. package/lib/module/components/DateTimePicker/index.js +183 -0
  70. package/lib/module/components/DateTimePicker/index.js.map +1 -0
  71. package/lib/module/components/MonthCalendar/index.js +225 -0
  72. package/lib/module/components/MonthCalendar/index.js.map +1 -0
  73. package/lib/module/components/MonthPicker/index.js +159 -0
  74. package/lib/module/components/MonthPicker/index.js.map +1 -0
  75. package/lib/module/components/RangeCalendar/index.js +161 -0
  76. package/lib/module/components/RangeCalendar/index.js.map +1 -0
  77. package/lib/module/components/index.js +10 -0
  78. package/lib/module/components/index.js.map +1 -1
  79. package/lib/module/components/picker/PickerTrigger.js +45 -0
  80. package/lib/module/components/picker/PickerTrigger.js.map +1 -0
  81. package/lib/module/components/picker/styles.js +12 -0
  82. package/lib/module/components/picker/styles.js.map +1 -0
  83. package/lib/module/components/picker/surfaces.js +135 -0
  84. package/lib/module/components/picker/surfaces.js.map +1 -0
  85. package/lib/typescript/components/BottomSheet/index.d.ts +2 -2
  86. package/lib/typescript/components/BottomSheet/index.d.ts.map +1 -1
  87. package/lib/typescript/components/Calendar/CalendarMonthHeader.d.ts +14 -0
  88. package/lib/typescript/components/Calendar/CalendarMonthHeader.d.ts.map +1 -0
  89. package/lib/typescript/components/Calendar/CalendarYearPickerGrid.d.ts +12 -0
  90. package/lib/typescript/components/Calendar/CalendarYearPickerGrid.d.ts.map +1 -0
  91. package/lib/typescript/components/Calendar/flashCalendarAdapter.d.ts +18 -0
  92. package/lib/typescript/components/Calendar/flashCalendarAdapter.d.ts.map +1 -0
  93. package/lib/typescript/components/Calendar/index.d.ts +19 -0
  94. package/lib/typescript/components/Calendar/index.d.ts.map +1 -0
  95. package/lib/typescript/components/Calendar/styles.d.ts +23 -0
  96. package/lib/typescript/components/Calendar/styles.d.ts.map +1 -0
  97. package/lib/typescript/components/DateField/index.d.ts +43 -0
  98. package/lib/typescript/components/DateField/index.d.ts.map +1 -0
  99. package/lib/typescript/components/DateField/styles.d.ts +15 -0
  100. package/lib/typescript/components/DateField/styles.d.ts.map +1 -0
  101. package/lib/typescript/components/DatePicker/index.d.ts +40 -0
  102. package/lib/typescript/components/DatePicker/index.d.ts.map +1 -0
  103. package/lib/typescript/components/DateRangePicker/index.d.ts +45 -0
  104. package/lib/typescript/components/DateRangePicker/index.d.ts.map +1 -0
  105. package/lib/typescript/components/DateTimeField/index.d.ts +29 -0
  106. package/lib/typescript/components/DateTimeField/index.d.ts.map +1 -0
  107. package/lib/typescript/components/DateTimeList/index.d.ts +19 -0
  108. package/lib/typescript/components/DateTimeList/index.d.ts.map +1 -0
  109. package/lib/typescript/components/DateTimeList/styles.d.ts +17 -0
  110. package/lib/typescript/components/DateTimeList/styles.d.ts.map +1 -0
  111. package/lib/typescript/components/DateTimePicker/index.d.ts +40 -0
  112. package/lib/typescript/components/DateTimePicker/index.d.ts.map +1 -0
  113. package/lib/typescript/components/MonthCalendar/index.d.ts +29 -0
  114. package/lib/typescript/components/MonthCalendar/index.d.ts.map +1 -0
  115. package/lib/typescript/components/MonthPicker/index.d.ts +40 -0
  116. package/lib/typescript/components/MonthPicker/index.d.ts.map +1 -0
  117. package/lib/typescript/components/RangeCalendar/index.d.ts +19 -0
  118. package/lib/typescript/components/RangeCalendar/index.d.ts.map +1 -0
  119. package/lib/typescript/components/index.d.ts +10 -0
  120. package/lib/typescript/components/index.d.ts.map +1 -1
  121. package/lib/typescript/components/picker/PickerTrigger.d.ts +25 -0
  122. package/lib/typescript/components/picker/PickerTrigger.d.ts.map +1 -0
  123. package/lib/typescript/components/picker/styles.d.ts +4 -0
  124. package/lib/typescript/components/picker/styles.d.ts.map +1 -0
  125. package/lib/typescript/components/picker/surfaces.d.ts +28 -0
  126. package/lib/typescript/components/picker/surfaces.d.ts.map +1 -0
  127. package/package.json +6 -4
  128. package/src/components/BottomSheet/index.tsx +7 -1
  129. package/src/components/Calendar/CalendarMonthHeader.tsx +124 -0
  130. package/src/components/Calendar/CalendarYearPickerGrid.tsx +101 -0
  131. package/src/components/Calendar/flashCalendarAdapter.ts +362 -0
  132. package/src/components/Calendar/index.tsx +151 -0
  133. package/src/components/Calendar/styles.ts +80 -0
  134. package/src/components/DateField/index.tsx +196 -0
  135. package/src/components/DateField/styles.ts +51 -0
  136. package/src/components/DatePicker/index.tsx +187 -0
  137. package/src/components/DateRangePicker/index.tsx +202 -0
  138. package/src/components/DateTimeField/index.tsx +128 -0
  139. package/src/components/DateTimeList/index.tsx +187 -0
  140. package/src/components/DateTimeList/styles.ts +59 -0
  141. package/src/components/DateTimePicker/index.tsx +233 -0
  142. package/src/components/MonthCalendar/index.tsx +252 -0
  143. package/src/components/MonthPicker/index.tsx +188 -0
  144. package/src/components/RangeCalendar/index.tsx +162 -0
  145. package/src/components/index.ts +10 -0
  146. package/src/components/picker/PickerTrigger.tsx +65 -0
  147. package/src/components/picker/styles.ts +17 -0
  148. package/src/components/picker/surfaces.tsx +174 -0
@@ -0,0 +1,40 @@
1
+ import { type ReactNode } from 'react';
2
+ import { View, type ViewProps } from 'react-native';
3
+ import { type DatePickerRootProps as DatePickerRootPrimitiveProps } from '@cdx-ui/primitives';
4
+ import { type CalendarProps } from '../Calendar';
5
+ import { type PickerTriggerProps } from '../picker/PickerTrigger';
6
+ export interface DatePickerProps extends DatePickerRootPrimitiveProps, Omit<ViewProps, 'children'> {
7
+ className?: string;
8
+ children?: ReactNode;
9
+ }
10
+ declare const DatePickerRoot: import("react").ForwardRefExoticComponent<DatePickerProps & import("react").RefAttributes<View>>;
11
+ declare const DatePickerTrigger: import("react").ForwardRefExoticComponent<Omit<PickerTriggerProps, "accessibilityLabel" | "disabled" | "open" | "setOpen" | "triggerRef"> & {
12
+ accessibilityLabel?: string;
13
+ } & import("react").RefAttributes<View>>;
14
+ declare const DatePickerTriggerIndicator: {
15
+ (): import("react/jsx-runtime").JSX.Element;
16
+ displayName: string;
17
+ };
18
+ type DatePickerCalendarProps = Omit<CalendarProps, 'value' | 'onValueChange' | 'minValue' | 'maxValue'>;
19
+ declare const DatePickerCalendar: import("react").ForwardRefExoticComponent<DatePickerCalendarProps & import("react").RefAttributes<View>>;
20
+ declare function DatePickerDialog({ children }: {
21
+ children: ReactNode;
22
+ }): import("react/jsx-runtime").JSX.Element;
23
+ declare function DatePickerBottomSheet({ children }: {
24
+ children: ReactNode;
25
+ }): import("react/jsx-runtime").JSX.Element;
26
+ declare function DatePickerPopover({ children, className }: {
27
+ children: ReactNode;
28
+ className?: string;
29
+ }): import("react/jsx-runtime").JSX.Element;
30
+ type DatePickerCompound = typeof DatePickerRoot & {
31
+ Trigger: typeof DatePickerTrigger;
32
+ TriggerIndicator: typeof DatePickerTriggerIndicator;
33
+ Calendar: typeof DatePickerCalendar;
34
+ Popover: typeof DatePickerPopover;
35
+ Dialog: typeof DatePickerDialog;
36
+ BottomSheet: typeof DatePickerBottomSheet;
37
+ };
38
+ export declare const DatePicker: DatePickerCompound;
39
+ export {};
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,EAML,KAAK,mBAAmB,IAAI,4BAA4B,EACzD,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAOjF,MAAM,WAAW,eAAgB,SAAQ,4BAA4B,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAChG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAID,QAAA,MAAM,cAAc,kGAyBnB,CAAC;AAWF,QAAA,MAAM,iBAAiB;yBAHA,MAAM;wCAkB5B,CAAC;AAIF,QAAA,MAAM,0BAA0B;;;CAE/B,CAAC;AAIF,KAAK,uBAAuB,GAAG,IAAI,CACjC,aAAa,EACb,OAAO,GAAG,eAAe,GAAG,UAAU,GAAG,UAAU,CACpD,CAAC;AAEF,QAAA,MAAM,kBAAkB,0GA0BtB,CAAC;AAIH,iBAAS,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAa9D;AAED,iBAAS,qBAAqB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAWnE;AAED,iBAAS,iBAAiB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAc9F;AAED,KAAK,kBAAkB,GAAG,OAAO,cAAc,GAAG;IAChD,OAAO,EAAE,OAAO,iBAAiB,CAAC;IAClC,gBAAgB,EAAE,OAAO,0BAA0B,CAAC;IACpD,QAAQ,EAAE,OAAO,kBAAkB,CAAC;IACpC,OAAO,EAAE,OAAO,iBAAiB,CAAC;IAClC,MAAM,EAAE,OAAO,gBAAgB,CAAC;IAChC,WAAW,EAAE,OAAO,qBAAqB,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,UAAU,EAOjB,kBAAkB,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { type ReactNode } from 'react';
2
+ import { View, type ViewProps } from 'react-native';
3
+ import { type DateRangePickerRootProps as DateRangePickerRootPrimitiveProps } from '@cdx-ui/primitives';
4
+ import { type RangeCalendarProps } from '../RangeCalendar';
5
+ import { type PickerTriggerProps } from '../picker/PickerTrigger';
6
+ export type { DateRangeValue } from '@cdx-ui/primitives';
7
+ export interface DateRangePickerProps extends DateRangePickerRootPrimitiveProps, Omit<ViewProps, 'children'> {
8
+ className?: string;
9
+ children?: ReactNode;
10
+ }
11
+ declare const DateRangePickerRoot: import("react").ForwardRefExoticComponent<DateRangePickerProps & import("react").RefAttributes<View>>;
12
+ declare const DateRangePickerTrigger: import("react").ForwardRefExoticComponent<Omit<PickerTriggerProps, "accessibilityLabel" | "disabled" | "open" | "setOpen" | "triggerRef"> & {
13
+ accessibilityLabel?: string;
14
+ } & import("react").RefAttributes<View>>;
15
+ declare const DateRangePickerTriggerIndicator: {
16
+ (): import("react/jsx-runtime").JSX.Element;
17
+ displayName: string;
18
+ };
19
+ declare const DateRangePickerRangeSeparator: {
20
+ (): import("react/jsx-runtime").JSX.Element;
21
+ displayName: string;
22
+ };
23
+ type DateRangePickerCalendarProps = Omit<RangeCalendarProps, 'startValue' | 'endValue' | 'onRangeChange' | 'focusedField' | 'onFocusedFieldChange'>;
24
+ declare const DateRangePickerCalendar: import("react").ForwardRefExoticComponent<DateRangePickerCalendarProps & import("react").RefAttributes<View>>;
25
+ declare function DateRangePickerDialog({ children }: {
26
+ children: ReactNode;
27
+ }): import("react/jsx-runtime").JSX.Element;
28
+ declare function DateRangePickerBottomSheet({ children }: {
29
+ children: ReactNode;
30
+ }): import("react/jsx-runtime").JSX.Element;
31
+ declare function DateRangePickerPopover({ children, className, }: {
32
+ children: ReactNode;
33
+ className?: string;
34
+ }): import("react/jsx-runtime").JSX.Element;
35
+ type DateRangePickerCompound = typeof DateRangePickerRoot & {
36
+ Trigger: typeof DateRangePickerTrigger;
37
+ TriggerIndicator: typeof DateRangePickerTriggerIndicator;
38
+ RangeSeparator: typeof DateRangePickerRangeSeparator;
39
+ Calendar: typeof DateRangePickerCalendar;
40
+ Popover: typeof DateRangePickerPopover;
41
+ Dialog: typeof DateRangePickerDialog;
42
+ BottomSheet: typeof DateRangePickerBottomSheet;
43
+ };
44
+ export declare const DateRangePicker: DateRangePickerCompound;
45
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DateRangePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAQ,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,EAML,KAAK,wBAAwB,IAAI,iCAAiC,EACnE,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAOjF,YAAY,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,WAAW,oBACf,SAAQ,iCAAiC,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IACtE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAID,QAAA,MAAM,mBAAmB,uGAyBxB,CAAC;AAWF,QAAA,MAAM,sBAAsB;yBAHL,MAAM;wCAkB5B,CAAC;AAIF,QAAA,MAAM,+BAA+B;;;CAEpC,CAAC;AAIF,QAAA,MAAM,6BAA6B;;;CAGlC,CAAC;AAIF,KAAK,4BAA4B,GAAG,IAAI,CACtC,kBAAkB,EAClB,YAAY,GAAG,UAAU,GAAG,eAAe,GAAG,cAAc,GAAG,sBAAsB,CACtF,CAAC;AAEF,QAAA,MAAM,uBAAuB,+GAwB5B,CAAC;AAIF,iBAAS,qBAAqB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAanE;AAED,iBAAS,0BAA0B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAWxE;AAED,iBAAS,sBAAsB,CAAC,EAC9B,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAcA;AAED,KAAK,uBAAuB,GAAG,OAAO,mBAAmB,GAAG;IAC1D,OAAO,EAAE,OAAO,sBAAsB,CAAC;IACvC,gBAAgB,EAAE,OAAO,+BAA+B,CAAC;IACzD,cAAc,EAAE,OAAO,6BAA6B,CAAC;IACrD,QAAQ,EAAE,OAAO,uBAAuB,CAAC;IACzC,OAAO,EAAE,OAAO,sBAAsB,CAAC;IACvC,MAAM,EAAE,OAAO,qBAAqB,CAAC;IACrC,WAAW,EAAE,OAAO,0BAA0B,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,eAAe,EAQtB,uBAAuB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { type ReactNode } from 'react';
2
+ import { View, type ViewProps } from 'react-native';
3
+ import { type DateTimeFieldRootProps as DateTimeFieldRootPrimitiveProps } from '@cdx-ui/primitives';
4
+ import { DateField } from '../DateField';
5
+ import { type DateFieldGroupVariantProps } from '../DateField/styles';
6
+ export interface DateTimeFieldProps extends DateTimeFieldRootPrimitiveProps, DateFieldGroupVariantProps, Omit<ViewProps, 'children'> {
7
+ className?: string;
8
+ children?: ReactNode;
9
+ /** When true (the default), the group stretches to fill its container; when false, it hugs the segments. */
10
+ fullWidth?: boolean;
11
+ }
12
+ declare const DateTimeFieldRoot: import("react").ForwardRefExoticComponent<DateTimeFieldProps & import("react").RefAttributes<View>>;
13
+ declare const DateTimeFieldInput: import("react").ForwardRefExoticComponent<{
14
+ children: (segment: import("@cdx-ui/formatters").DateSegment) => ReactNode;
15
+ className?: string;
16
+ } & Omit<ViewProps, "children"> & import("react").RefAttributes<View>>;
17
+ declare const DateTimeFieldSegment: import("react").ForwardRefExoticComponent<{
18
+ segment: import("@cdx-ui/formatters").DateSegment;
19
+ className?: string;
20
+ } & Omit<ViewProps, "children"> & import("react").RefAttributes<View>>;
21
+ type DateTimeFieldCompound = typeof DateTimeFieldRoot & {
22
+ Group: typeof DateField.Group;
23
+ Input: typeof DateTimeFieldInput;
24
+ Segment: typeof DateTimeFieldSegment;
25
+ Suffix: typeof DateField.Suffix;
26
+ };
27
+ export declare const DateTimeField: DateTimeFieldCompound;
28
+ export {};
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DateTimeField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAML,KAAK,sBAAsB,IAAI,+BAA+B,EAC/D,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAIL,KAAK,0BAA0B,EAChC,MAAM,qBAAqB,CAAC;AAW7B,MAAM,WAAW,kBACf,SAAQ,+BAA+B,EAAE,0BAA0B,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAChG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,4GAA4G;IAC5G,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,iBAAiB,qGA+BtB,CAAC;AAIF,QAAA,MAAM,kBAAkB;cAGV,CAAC,OAAO,EAAE,OAAO,oBAAoB,EAAE,WAAW,KAAK,SAAS;gBAC9D,MAAM;sEAYpB,CAAC;AAIH,QAAA,MAAM,oBAAoB;aAGb,OAAO,oBAAoB,EAAE,WAAW;gBACrC,MAAM;sEAgBpB,CAAC;AAIH,KAAK,qBAAqB,GAAG,OAAO,iBAAiB,GAAG;IACtD,KAAK,EAAE,OAAO,SAAS,CAAC,KAAK,CAAC;IAC9B,KAAK,EAAE,OAAO,kBAAkB,CAAC;IACjC,OAAO,EAAE,OAAO,oBAAoB,CAAC;IACrC,MAAM,EAAE,OAAO,SAAS,CAAC,MAAM,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,aAAa,EAKpB,qBAAqB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { type ReactNode } from 'react';
2
+ import { View, type ViewProps } from 'react-native';
3
+ import { type DateTimeListRootProps as DateTimeListRootPrimitiveProps } from '@cdx-ui/primitives';
4
+ export interface DateTimeListProps extends DateTimeListRootPrimitiveProps, Omit<ViewProps, 'children'> {
5
+ className?: string;
6
+ children?: ReactNode;
7
+ }
8
+ declare const DateTimeListRoot: import("react").ForwardRefExoticComponent<DateTimeListProps & import("react").RefAttributes<View>>;
9
+ declare function DateTimeListDateColumn(props: ViewProps): import("react/jsx-runtime").JSX.Element;
10
+ declare function DateTimeListTimeColumn(props: ViewProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function DateTimeListPeriodColumn(props: ViewProps): import("react/jsx-runtime").JSX.Element;
12
+ type DateTimeListCompound = typeof DateTimeListRoot & {
13
+ DateColumn: typeof DateTimeListDateColumn;
14
+ TimeColumn: typeof DateTimeListTimeColumn;
15
+ PeriodColumn: typeof DateTimeListPeriodColumn;
16
+ };
17
+ export declare const DateTimeList: DateTimeListCompound;
18
+ export {};
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DateTimeList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAmB,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAErE,OAAO,EAUL,KAAK,qBAAqB,IAAI,8BAA8B,EAC7D,MAAM,oBAAoB,CAAC;AAa5B,MAAM,WAAW,iBACf,SAAQ,8BAA8B,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAuCD,QAAA,MAAM,gBAAgB,oGA0BrB,CAAC;AAgDF,iBAAS,sBAAsB,CAAC,KAAK,EAAE,SAAS,2CAE/C;AAcD,iBAAS,sBAAsB,CAAC,KAAK,EAAE,SAAS,2CAU/C;AAED,iBAAS,wBAAwB,CAAC,KAAK,EAAE,SAAS,2CAEjD;AAED,KAAK,oBAAoB,GAAG,OAAO,gBAAgB,GAAG;IACpD,UAAU,EAAE,OAAO,sBAAsB,CAAC;IAC1C,UAAU,EAAE,OAAO,sBAAsB,CAAC;IAC1C,YAAY,EAAE,OAAO,wBAAwB,CAAC;CAC/C,CAAC;AAEF,eAAO,MAAM,YAAY,EAInB,oBAAoB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { type VariantProps } from '@cdx-ui/utils';
2
+ export declare const dateTimeListRootVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
3
+ export declare const dateTimeListHighlightVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
4
+ export declare const dateTimeListColumnsVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
5
+ export declare const dateTimeListColumnVariants: (props?: ({
6
+ column?: "date" | "hour" | "minute" | "second" | "period" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ export declare const dateTimeListOptionVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
9
+ export declare const dateTimeListOptionTextVariants: (props?: ({
10
+ selected?: boolean | null | undefined;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
+ export declare const dateTimeListEdgeFadeVariants: (props?: ({
13
+ edge?: "bottom" | "top" | null | undefined;
14
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
15
+ export type DateTimeListColumnVariantProps = VariantProps<typeof dateTimeListColumnVariants>;
16
+ export type DateTimeListEdgeFadeVariantProps = VariantProps<typeof dateTimeListEdgeFadeVariants>;
17
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/DateTimeList/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAUvD,eAAO,MAAM,wBAAwB,oFAEpC,CAAC;AAEF,eAAO,MAAM,6BAA6B,oFAIxC,CAAC;AAEH,eAAO,MAAM,2BAA2B,oFAA0C,CAAC;AAEnF,eAAO,MAAM,0BAA0B;;8EAWrC,CAAC;AAEH,eAAO,MAAM,0BAA0B,oFAAiD,CAAC;AAEzF,eAAO,MAAM,8BAA8B;;8EAQzC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;8EAQvC,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,YAAY,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC7F,MAAM,MAAM,gCAAgC,GAAG,YAAY,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { type ReactNode } from 'react';
2
+ import { View, type ViewProps } from 'react-native';
3
+ import { type DateTimePickerRootProps as DateTimePickerRootPrimitiveProps } from '@cdx-ui/primitives';
4
+ import { type DateTimeListProps } from '../DateTimeList';
5
+ import { type PickerTriggerProps } from '../picker/PickerTrigger';
6
+ export interface DateTimePickerProps extends DateTimePickerRootPrimitiveProps, Omit<ViewProps, 'children'> {
7
+ className?: string;
8
+ children?: ReactNode;
9
+ }
10
+ declare const DateTimePickerRoot: import("react").ForwardRefExoticComponent<DateTimePickerProps & import("react").RefAttributes<View>>;
11
+ declare const DateTimePickerTrigger: import("react").ForwardRefExoticComponent<Omit<PickerTriggerProps, "accessibilityLabel" | "disabled" | "open" | "setOpen" | "triggerRef"> & {
12
+ accessibilityLabel?: string;
13
+ } & import("react").RefAttributes<View>>;
14
+ declare const DateTimePickerTriggerIndicator: {
15
+ (): import("react/jsx-runtime").JSX.Element;
16
+ displayName: string;
17
+ };
18
+ type DateTimePickerListProps = Omit<DateTimeListProps, 'value' | 'onValueChange' | 'onUserInteract' | 'granularity' | 'hour12' | 'locale' | 'minValue' | 'maxValue'>;
19
+ declare const DateTimePickerList: import("react").ForwardRefExoticComponent<DateTimePickerListProps & import("react").RefAttributes<View>>;
20
+ declare function DateTimePickerDialog({ children }: {
21
+ children: ReactNode;
22
+ }): import("react/jsx-runtime").JSX.Element;
23
+ declare function DateTimePickerBottomSheet({ children }: {
24
+ children: ReactNode;
25
+ }): import("react/jsx-runtime").JSX.Element;
26
+ declare function DateTimePickerPopover({ children, className, }: {
27
+ children: ReactNode;
28
+ className?: string;
29
+ }): import("react/jsx-runtime").JSX.Element;
30
+ type DateTimePickerCompound = typeof DateTimePickerRoot & {
31
+ Trigger: typeof DateTimePickerTrigger;
32
+ TriggerIndicator: typeof DateTimePickerTriggerIndicator;
33
+ List: typeof DateTimePickerList;
34
+ Popover: typeof DateTimePickerPopover;
35
+ Dialog: typeof DateTimePickerDialog;
36
+ BottomSheet: typeof DateTimePickerBottomSheet;
37
+ };
38
+ export declare const DateTimePicker: DateTimePickerCompound;
39
+ export {};
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DateTimePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5F,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAML,KAAK,uBAAuB,IAAI,gCAAgC,EACjE,MAAM,oBAAoB,CAAC;AAK5B,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAOjF,MAAM,WAAW,mBACf,SAAQ,gCAAgC,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAID,QAAA,MAAM,kBAAkB,sGAyBvB,CAAC;AAWF,QAAA,MAAM,qBAAqB;yBAHJ,MAAM;wCAkB5B,CAAC;AAIF,QAAA,MAAM,8BAA8B;;;CAEnC,CAAC;AAIF,KAAK,uBAAuB,GAAG,IAAI,CACjC,iBAAiB,EACf,OAAO,GACP,eAAe,GACf,gBAAgB,GAChB,aAAa,GACb,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,UAAU,CACb,CAAC;AAEF,QAAA,MAAM,kBAAkB,0GA0DtB,CAAC;AAIH,iBAAS,oBAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAalE;AAED,iBAAS,yBAAyB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAWvE;AAED,iBAAS,qBAAqB,CAAC,EAC7B,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAcA;AAED,KAAK,sBAAsB,GAAG,OAAO,kBAAkB,GAAG;IACxD,OAAO,EAAE,OAAO,qBAAqB,CAAC;IACtC,gBAAgB,EAAE,OAAO,8BAA8B,CAAC;IACxD,IAAI,EAAE,OAAO,kBAAkB,CAAC;IAChC,OAAO,EAAE,OAAO,qBAAqB,CAAC;IACtC,MAAM,EAAE,OAAO,oBAAoB,CAAC;IACpC,WAAW,EAAE,OAAO,yBAAyB,CAAC;CAC/C,CAAC;AAEF,eAAO,MAAM,cAAc,EAOrB,sBAAsB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { type ReactNode } from 'react';
2
+ import { View, type ViewProps } from 'react-native';
3
+ import { type MonthCalendarRootProps } from '@cdx-ui/primitives';
4
+ export interface MonthCalendarProps extends Omit<MonthCalendarRootProps, 'children'>, Omit<ViewProps, 'children'> {
5
+ className?: string;
6
+ children?: ReactNode;
7
+ }
8
+ declare const MonthCalendarRoot: import("react").ForwardRefExoticComponent<MonthCalendarProps & import("react").RefAttributes<View>>;
9
+ declare const MonthCalendarHeader: import("react").ForwardRefExoticComponent<ViewProps & import("react").RefAttributes<View>>;
10
+ declare const MonthCalendarGrid: import("react").ForwardRefExoticComponent<ViewProps & import("react").RefAttributes<View>>;
11
+ declare const MonthCalendarCell: import("react").ForwardRefExoticComponent<{
12
+ month: number;
13
+ className?: string;
14
+ children?: ReactNode;
15
+ } & import("react").RefAttributes<View>>;
16
+ declare const MonthCalendarYearCell: import("react").ForwardRefExoticComponent<{
17
+ year: number;
18
+ className?: string;
19
+ children?: ReactNode;
20
+ } & import("react").RefAttributes<View>>;
21
+ type MonthCalendarCompound = typeof MonthCalendarRoot & {
22
+ Header: typeof MonthCalendarHeader;
23
+ Grid: typeof MonthCalendarGrid;
24
+ Cell: typeof MonthCalendarCell;
25
+ YearCell: typeof MonthCalendarYearCell;
26
+ };
27
+ export declare const MonthCalendar: MonthCalendarCompound;
28
+ export {};
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/MonthCalendar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAAmB,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAOL,KAAK,sBAAsB,EAC5B,MAAM,oBAAoB,CAAC;AAyB5B,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAWD,QAAA,MAAM,iBAAiB,qGAYtB,CAAC;AAIF,QAAA,MAAM,mBAAmB,4FAqEvB,CAAC;AAIH,QAAA,MAAM,iBAAiB,4FAqCrB,CAAC;AAIH,QAAA,MAAM,iBAAiB;WAEZ,MAAM;gBAAc,MAAM;eAAa,SAAS;wCAwBzD,CAAC;AAIH,QAAA,MAAM,qBAAqB;UAEjB,MAAM;gBAAc,MAAM;eAAa,SAAS;wCAuBxD,CAAC;AAIH,KAAK,qBAAqB,GAAG,OAAO,iBAAiB,GAAG;IACtD,MAAM,EAAE,OAAO,mBAAmB,CAAC;IACnC,IAAI,EAAE,OAAO,iBAAiB,CAAC;IAC/B,IAAI,EAAE,OAAO,iBAAiB,CAAC;IAC/B,QAAQ,EAAE,OAAO,qBAAqB,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,aAAa,EAKpB,qBAAqB,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { type ReactNode } from 'react';
2
+ import { View, type ViewProps } from 'react-native';
3
+ import { type MonthPickerRootProps as MonthPickerRootPrimitiveProps } from '@cdx-ui/primitives';
4
+ import { type MonthCalendarProps } from '../MonthCalendar';
5
+ import { type PickerTriggerProps } from '../picker/PickerTrigger';
6
+ export interface MonthPickerProps extends MonthPickerRootPrimitiveProps, Omit<ViewProps, 'children'> {
7
+ className?: string;
8
+ children?: ReactNode;
9
+ }
10
+ declare const MonthPickerRoot: import("react").ForwardRefExoticComponent<MonthPickerProps & import("react").RefAttributes<View>>;
11
+ declare const MonthPickerTrigger: import("react").ForwardRefExoticComponent<Omit<PickerTriggerProps, "accessibilityLabel" | "disabled" | "open" | "setOpen" | "triggerRef"> & {
12
+ accessibilityLabel?: string;
13
+ } & import("react").RefAttributes<View>>;
14
+ declare const MonthPickerTriggerIndicator: {
15
+ (): import("react/jsx-runtime").JSX.Element;
16
+ displayName: string;
17
+ };
18
+ type MonthPickerCalendarProps = Omit<MonthCalendarProps, 'value' | 'onValueChange' | 'minValue' | 'maxValue'>;
19
+ declare const MonthPickerCalendar: import("react").ForwardRefExoticComponent<MonthPickerCalendarProps & import("react").RefAttributes<View>>;
20
+ declare function MonthPickerDialog({ children }: {
21
+ children: ReactNode;
22
+ }): import("react/jsx-runtime").JSX.Element;
23
+ declare function MonthPickerBottomSheet({ children }: {
24
+ children: ReactNode;
25
+ }): import("react/jsx-runtime").JSX.Element;
26
+ declare function MonthPickerPopover({ children, className }: {
27
+ children: ReactNode;
28
+ className?: string;
29
+ }): import("react/jsx-runtime").JSX.Element;
30
+ type MonthPickerCompound = typeof MonthPickerRoot & {
31
+ Trigger: typeof MonthPickerTrigger;
32
+ TriggerIndicator: typeof MonthPickerTriggerIndicator;
33
+ Calendar: typeof MonthPickerCalendar;
34
+ Popover: typeof MonthPickerPopover;
35
+ Dialog: typeof MonthPickerDialog;
36
+ BottomSheet: typeof MonthPickerBottomSheet;
37
+ };
38
+ export declare const MonthPicker: MonthPickerCompound;
39
+ export {};
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/MonthPicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAML,KAAK,oBAAoB,IAAI,6BAA6B,EAC3D,MAAM,oBAAoB,CAAC;AAK5B,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAOjF,MAAM,WAAW,gBACf,SAAQ,6BAA6B,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAID,QAAA,MAAM,eAAe,mGAyBpB,CAAC;AAWF,QAAA,MAAM,kBAAkB;yBAHD,MAAM;wCAkB5B,CAAC;AAIF,QAAA,MAAM,2BAA2B;;;CAEhC,CAAC;AAIF,KAAK,wBAAwB,GAAG,IAAI,CAClC,kBAAkB,EAClB,OAAO,GAAG,eAAe,GAAG,UAAU,GAAG,UAAU,CACpD,CAAC;AAEF,QAAA,MAAM,mBAAmB,2GA0BvB,CAAC;AAIH,iBAAS,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAa/D;AAED,iBAAS,sBAAsB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAWpE;AAED,iBAAS,kBAAkB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAc/F;AAED,KAAK,mBAAmB,GAAG,OAAO,eAAe,GAAG;IAClD,OAAO,EAAE,OAAO,kBAAkB,CAAC;IACnC,gBAAgB,EAAE,OAAO,2BAA2B,CAAC;IACrD,QAAQ,EAAE,OAAO,mBAAmB,CAAC;IACrC,OAAO,EAAE,OAAO,kBAAkB,CAAC;IACnC,MAAM,EAAE,OAAO,iBAAiB,CAAC;IACjC,WAAW,EAAE,OAAO,sBAAsB,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,WAAW,EAOlB,mBAAmB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { type ReactNode } from 'react';
2
+ import { View, type ViewProps } from 'react-native';
3
+ import { type RangeCalendarRootProps } from '@cdx-ui/primitives';
4
+ export interface RangeCalendarProps extends Omit<RangeCalendarRootProps, 'children'>, Omit<ViewProps, 'children'> {
5
+ className?: string;
6
+ children?: ReactNode;
7
+ }
8
+ declare const RangeCalendarRoot: import("react").ForwardRefExoticComponent<RangeCalendarProps & import("react").RefAttributes<View>>;
9
+ declare const RangeCalendarHeader: import("react").ForwardRefExoticComponent<ViewProps & import("react").RefAttributes<View>>;
10
+ declare const RangeCalendarYearPicker: import("react").ForwardRefExoticComponent<ViewProps & import("react").RefAttributes<View>>;
11
+ declare const RangeCalendarGrid: import("react").ForwardRefExoticComponent<ViewProps & import("react").RefAttributes<View>>;
12
+ type RangeCalendarCompound = typeof RangeCalendarRoot & {
13
+ Header: typeof RangeCalendarHeader;
14
+ Grid: typeof RangeCalendarGrid;
15
+ YearPicker: typeof RangeCalendarYearPicker;
16
+ };
17
+ export declare const RangeCalendar: RangeCalendarCompound;
18
+ export {};
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/RangeCalendar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAKL,KAAK,sBAAsB,EAC5B,MAAM,oBAAoB,CAAC;AAa5B,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAYD,QAAA,MAAM,iBAAiB,qGAYtB,CAAC;AAIF,QAAA,MAAM,mBAAmB,4FAkBvB,CAAC;AAIH,QAAA,MAAM,uBAAuB,4FAiB5B,CAAC;AAIF,QAAA,MAAM,iBAAiB,4FAkDrB,CAAC;AAIH,KAAK,qBAAqB,GAAG,OAAO,iBAAiB,GAAG;IACtD,MAAM,EAAE,OAAO,mBAAmB,CAAC;IACnC,IAAI,EAAE,OAAO,iBAAiB,CAAC;IAC/B,UAAU,EAAE,OAAO,uBAAuB,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,aAAa,EAIpB,qBAAqB,CAAC"}
@@ -11,6 +11,16 @@ export * from './Carousel';
11
11
  export * from './Checkbox';
12
12
  export * from './Chip';
13
13
  export * from './CurrencyInput';
14
+ export * from './DateField';
15
+ export * from './Calendar';
16
+ export * from './RangeCalendar';
17
+ export * from './MonthCalendar';
18
+ export * from './DatePicker';
19
+ export * from './DateRangePicker';
20
+ export * from './MonthPicker';
21
+ export * from './DateTimeField';
22
+ export * from './DateTimeList';
23
+ export * from './DateTimePicker';
14
24
  export * from './Dialog';
15
25
  export * from './Divider';
16
26
  export * from './Field';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,uBAAuB,CAAC;AACtC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACzC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,uBAAuB,CAAC;AACtC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACzC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { type ReactNode, type RefObject } from 'react';
2
+ import { type PressableProps, type View } from 'react-native';
3
+ export interface PickerTriggerProps extends PressableProps {
4
+ /**
5
+ * Merge press / a11y props onto the single child instead of rendering a `Pressable`.
6
+ * Use when the trigger should be another interactive host (e.g. `IconButton`).
7
+ * For a larger field hit target, prefer wrapping `DateField.Group` as children
8
+ * without `asChild` so the outer `Pressable` covers the whole input chrome.
9
+ */
10
+ asChild?: boolean;
11
+ children?: ReactNode;
12
+ open: boolean;
13
+ setOpen: (open: boolean) => void;
14
+ disabled?: boolean;
15
+ triggerRef: RefObject<View | null>;
16
+ accessibilityLabel: string;
17
+ }
18
+ /**
19
+ * Shared open/close press host for date / month / date-time picker compounds.
20
+ * Compose two ways:
21
+ * - **Icon-only** (editable segmented fields): wrap `TriggerIndicator` inside `DateField.Suffix`
22
+ * - **Full-field** (range or overlay-primary selection): wrap the entire `DateField.Group`
23
+ */
24
+ export declare const PickerTrigger: import("react").ForwardRefExoticComponent<PickerTriggerProps & import("react").RefAttributes<View>>;
25
+ //# sourceMappingURL=PickerTrigger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PickerTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/picker/PickerTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,EAAa,KAAK,cAAc,EAAE,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AAIzE,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IACnC,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;GAKG;AACH,eAAO,MAAM,aAAa,qGAmCzB,CAAC"}
@@ -0,0 +1,4 @@
1
+ /** Keeps the picker popover above app chrome and other absolutely-positioned surfaces. */
2
+ export declare const PICKER_POPOVER_Z_INDEX = 9999;
3
+ export declare const pickerPopoverContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
4
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/picker/styles.ts"],"names":[],"mappings":"AAGA,0FAA0F;AAC1F,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C,eAAO,MAAM,4BAA4B,oFAUvC,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { type ReactNode, type RefObject } from 'react';
2
+ import { View } from 'react-native';
3
+ import { type BottomSheetModalProps } from '../BottomSheet';
4
+ export declare function PickerDialogSurface({ open, setOpen, registerSurface, children, }: {
5
+ open: boolean;
6
+ setOpen: (open: boolean) => void;
7
+ registerSurface: (type: 'dialog') => void;
8
+ children: ReactNode;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ type PickerBottomSheetSurfaceProps = {
11
+ open: boolean;
12
+ setOpen: (open: boolean) => void;
13
+ registerSurface: (type: 'bottomSheet') => void;
14
+ children: ReactNode;
15
+ } & Pick<BottomSheetModalProps, 'snapPoints' | 'enableDynamicSizing'>;
16
+ export declare function PickerBottomSheetSurface({ open, setOpen, registerSurface, children, snapPoints, enableDynamicSizing, }: PickerBottomSheetSurfaceProps): import("react/jsx-runtime").JSX.Element;
17
+ interface PickerPopoverSurfaceProps {
18
+ open: boolean;
19
+ setOpen: (open: boolean) => void;
20
+ registerSurface: (type: 'popover') => void;
21
+ anchorRef: RefObject<View | null>;
22
+ triggerRef?: RefObject<View | null>;
23
+ children: ReactNode;
24
+ className?: string;
25
+ }
26
+ export declare function PickerPopoverSurface({ open, setOpen, registerSurface, anchorRef, triggerRef, children, className, }: PickerPopoverSurfaceProps): import("react/jsx-runtime").JSX.Element | null;
27
+ export {};
28
+ //# sourceMappingURL=surfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surfaces.d.ts","sourceRoot":"","sources":["../../../../src/components/picker/surfaces.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACjG,OAAO,EAAc,IAAI,EAAE,MAAM,cAAc,CAAC;AAWhD,OAAO,EAA+B,KAAK,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAKzF,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,OAAO,EACP,eAAe,EACf,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,eAAe,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC1C,QAAQ,EAAE,SAAS,CAAC;CACrB,2CAUA;AAED,KAAK,6BAA6B,GAAG;IACnC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,eAAe,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;IAC/C,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,IAAI,CAAC,qBAAqB,EAAE,YAAY,GAAG,qBAAqB,CAAC,CAAC;AAEtE,wBAAgB,wBAAwB,CAAC,EACvC,IAAI,EACJ,OAAO,EACP,eAAe,EACf,QAAQ,EACR,UAA2B,EAC3B,mBAA2B,GAC5B,EAAE,6BAA6B,2CA+C/B;AAED,UAAU,yBAAyB;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,eAAe,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IAC3C,SAAS,EAAE,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IAClC,UAAU,CAAC,EAAE,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IACpC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,OAAO,EACP,eAAe,EACf,SAAS,EACT,UAAU,EACV,QAAQ,EACR,SAAS,GACV,EAAE,yBAAyB,kDAqD3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdx-ui/components",
3
- "version": "0.0.1-beta.140",
3
+ "version": "0.0.1-beta.142",
4
4
  "license": "MIT",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -74,11 +74,13 @@
74
74
  },
75
75
  "dependencies": {
76
76
  "@gorhom/bottom-sheet": "5.2.14",
77
+ "@marceloterreiro/flash-calendar": "2.0.0",
77
78
  "react-native-reanimated-carousel": "5.0.0-beta.5",
78
79
  "uniwind": "1.10.0",
79
- "@cdx-ui/utils": "0.0.1-beta.140",
80
- "@cdx-ui/primitives": "0.0.1-beta.140",
81
- "@cdx-ui/icons": "0.0.1-beta.140"
80
+ "@cdx-ui/formatters": "0.0.1-beta.133",
81
+ "@cdx-ui/primitives": "0.0.1-beta.142",
82
+ "@cdx-ui/utils": "0.0.1-beta.142",
83
+ "@cdx-ui/icons": "0.0.1-beta.142"
82
84
  },
83
85
  "devDependencies": {
84
86
  "@react-navigation/bottom-tabs": "*",
@@ -369,5 +369,11 @@ export const BottomSheet = {
369
369
 
370
370
  export function useBottomSheet() {
371
371
  const ref = useRef<BottomSheetModalRef>(null);
372
- return { ref, present: () => ref.current?.present(), dismiss: () => ref.current?.dismiss() };
372
+ const present = useCallback(() => {
373
+ ref.current?.present();
374
+ }, []);
375
+ const dismiss = useCallback(() => {
376
+ ref.current?.dismiss();
377
+ }, []);
378
+ return { ref, present, dismiss };
373
379
  }
@@ -0,0 +1,124 @@
1
+ import { forwardRef, useCallback, useMemo, type ComponentRef } from 'react';
2
+ import { Pressable, Text, View, type ViewProps } from 'react-native';
3
+ import {
4
+ formatCalendarMonthYear,
5
+ formatMonthId,
6
+ parseMonthId,
7
+ resolveDateComponentLabels,
8
+ type DateComponentLabels,
9
+ type MonthId,
10
+ } from '@cdx-ui/formatters';
11
+ import { cn } from '@cdx-ui/utils';
12
+ import { ChevronLeft, ChevronRight, KeyboardArrowDown } from '@cdx-ui/icons';
13
+ import { Icon } from '../Icon';
14
+ import { IconButton } from '../IconButton';
15
+ import {
16
+ calendarMonthHeaderIconVariants,
17
+ calendarMonthHeaderLabelVariants,
18
+ calendarMonthHeaderNavVariants,
19
+ calendarMonthHeaderToggleVariants,
20
+ calendarMonthHeaderVariants,
21
+ } from './styles';
22
+
23
+ export type CalendarNavigationView = 'month' | 'year';
24
+
25
+ export interface CalendarMonthHeaderProps extends ViewProps {
26
+ monthId: MonthId;
27
+ onMonthIdChange: (monthId: MonthId) => void;
28
+ disabled?: boolean;
29
+ view: CalendarNavigationView;
30
+ onViewChange: (view: CalendarNavigationView) => void;
31
+ locale?: string;
32
+ labels?: Partial<DateComponentLabels>;
33
+ }
34
+
35
+ export const CalendarMonthHeader = forwardRef<ComponentRef<typeof View>, CalendarMonthHeaderProps>(
36
+ (
37
+ {
38
+ monthId,
39
+ onMonthIdChange,
40
+ disabled = false,
41
+ view,
42
+ onViewChange,
43
+ locale = 'en-US',
44
+ labels: labelsProp,
45
+ className,
46
+ style,
47
+ ...props
48
+ },
49
+ ref,
50
+ ) => {
51
+ const labels = useMemo(() => resolveDateComponentLabels(labelsProp), [labelsProp]);
52
+ const label = formatCalendarMonthYear(monthId, { locale });
53
+ const isYearView = view === 'year';
54
+
55
+ const shiftMonth = useCallback(
56
+ (delta: number) => {
57
+ const parts = parseMonthId(monthId);
58
+ if (!parts) {
59
+ return;
60
+ }
61
+ const date = new Date(parts.year, parts.month - 1 + delta, 1);
62
+ onMonthIdChange(formatMonthId({ year: date.getFullYear(), month: date.getMonth() + 1 }));
63
+ },
64
+ [monthId, onMonthIdChange],
65
+ );
66
+
67
+ const toggleYearView = useCallback(() => {
68
+ if (disabled) {
69
+ return;
70
+ }
71
+ onViewChange(isYearView ? 'month' : 'year');
72
+ }, [disabled, isYearView, onViewChange]);
73
+
74
+ return (
75
+ <View
76
+ ref={ref}
77
+ className={cn(calendarMonthHeaderVariants(), className)}
78
+ style={style}
79
+ {...props}
80
+ >
81
+ <Pressable
82
+ accessibilityRole="button"
83
+ accessibilityLabel={isYearView ? labels.showCalendar : labels.showYearPicker}
84
+ disabled={disabled}
85
+ onPress={toggleYearView}
86
+ className={calendarMonthHeaderToggleVariants()}
87
+ >
88
+ <Text className={calendarMonthHeaderLabelVariants({ isYearView })} numberOfLines={1}>
89
+ {label}
90
+ </Text>
91
+ <Icon
92
+ as={isYearView ? KeyboardArrowDown : ChevronRight}
93
+ className={calendarMonthHeaderIconVariants({ isYearView })}
94
+ />
95
+ </Pressable>
96
+
97
+ {!isYearView ? (
98
+ <View className={calendarMonthHeaderNavVariants()}>
99
+ <IconButton
100
+ as={ChevronLeft}
101
+ variant="ghost"
102
+ color="neutral"
103
+ size="small"
104
+ accessibilityLabel={labels.previousMonth}
105
+ isDisabled={disabled}
106
+ onPress={() => shiftMonth(-1)}
107
+ />
108
+ <IconButton
109
+ as={ChevronRight}
110
+ variant="ghost"
111
+ color="neutral"
112
+ size="small"
113
+ accessibilityLabel={labels.nextMonth}
114
+ isDisabled={disabled}
115
+ onPress={() => shiftMonth(1)}
116
+ />
117
+ </View>
118
+ ) : null}
119
+ </View>
120
+ );
121
+ },
122
+ );
123
+
124
+ CalendarMonthHeader.displayName = 'CalendarMonthHeader';