@povio/ui 3.4.0-rc.37 → 3.4.0-rc.38

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 (190) hide show
  1. package/dist/{Accordion-KHMSEFyK.d.ts → Accordion-DonRhvvW.d.ts} +1 -1
  2. package/dist/{ActionModal-C4lfhfPx.d.ts → ActionModal-CKS0t-n3.d.ts} +1 -1
  3. package/dist/{Autocomplete-0tckACUz.d.ts → Autocomplete-BI6FtdoW.d.ts} +2 -2
  4. package/dist/{Breadcrumbs-JQIFk783.d.ts → Breadcrumbs-C46_H95J.d.ts} +2 -2
  5. package/dist/{Button-OxjPE7Hf.d.ts → Button-D0M9lMOR.d.ts} +3 -3
  6. package/dist/{Checkbox-Di3VlWJj.d.ts → Checkbox-CNkicnJS.d.ts} +1 -1
  7. package/dist/{CheckboxGroup-5r9b-9qT.d.ts → CheckboxGroup-DZh_fLq5.d.ts} +2 -2
  8. package/dist/{DatePicker-COJoYiqp.d.ts → DatePicker-DeG6fCcH.d.ts} +3 -3
  9. package/dist/{DatePickerInput-BJi1U0fr.d.ts → DatePickerInput-B7yVoI9Y.d.ts} +3 -3
  10. package/dist/{DateRangePicker-C8hu6_ms.d.ts → DateRangePicker-Cv68Vaea.d.ts} +4 -3
  11. package/dist/{DateTimePicker-BPCAME01.d.ts → DateTimePicker-C6bq3q29.d.ts} +4 -3
  12. package/dist/{FileUpload-Cn2Fel_W.d.ts → FileUpload-Bq9rj-1Y.d.ts} +1 -1
  13. package/dist/{FileUploadContainer-Cg1UdVE5.d.ts → FileUploadContainer-B1eKCPgg.d.ts} +1 -1
  14. package/dist/{Form-D0y6YSfq.d.ts → Form-Btgksbz7.d.ts} +1 -1
  15. package/dist/FormField-Iy2O8A4g.d.ts +37 -0
  16. package/dist/{IconButton-Dv45TT1w.d.ts → IconButton-CUpL6CsP.d.ts} +2 -2
  17. package/dist/{InlineIconButton-DvsOdnfE.d.ts → InlineIconButton-AQ8SViM3.d.ts} +3 -3
  18. package/dist/InputContent-jcMfOzpN.d.ts +27 -0
  19. package/dist/{InputUpload-CR7mp6ED.d.ts → InputUpload-DPsdXnOa.d.ts} +2 -2
  20. package/dist/{Inputs-Cuxfe-fC.d.ts → Inputs-BJ7TDMHF.d.ts} +1 -1
  21. package/dist/{Link-Bz8vOksk.d.ts → Link-CKi4C00S.d.ts} +4 -2
  22. package/dist/{Menu-ucX0h-jq.d.ts → Menu-BHpiqpJ9.d.ts} +5 -2
  23. package/dist/{MenuItem--lQvt0VV.d.ts → MenuItem-DLKC94Qs.d.ts} +1 -1
  24. package/dist/{Modal-9GwkBJOj.d.ts → Modal-BfN_MfR-.d.ts} +1 -1
  25. package/dist/{NumberInput-Cr_nD98h.d.ts → NumberInput-Dg6hLL09.d.ts} +3 -2
  26. package/dist/{NumberRangeInput-Dgm-8DFi.d.ts → NumberRangeInput-wnGLWvN2.d.ts} +2 -2
  27. package/dist/{Pagination-BBnE2yzX.d.ts → Pagination-uuqyFAu_.d.ts} +1 -1
  28. package/dist/{PaginationList-DhwiyUOh.d.ts → PaginationList-CmZBILfU.d.ts} +1 -1
  29. package/dist/{PasswordInput-DjDWoOHW.d.ts → PasswordInput-BOB31j1R.d.ts} +1 -1
  30. package/dist/{Pill-C0Ubkm_y.d.ts → Pill-vCBJdOTY.d.ts} +1 -1
  31. package/dist/{PillButton-MeVkDMKW.d.ts → PillButton-CEF431l4.d.ts} +1 -1
  32. package/dist/{QuerySelect-tupQOlAT.d.ts → QuerySelect-DizouUye.d.ts} +3 -3
  33. package/dist/RadioGroup-CF2UQgUc.d.ts +24 -0
  34. package/dist/{ResponsivePopover-B-Z9sFxq.d.ts → ResponsivePopover-BmURECUv.d.ts} +1 -1
  35. package/dist/{Segment-D6zpeIiW.d.ts → Segment-DK6lc8YX.d.ts} +2 -2
  36. package/dist/{Select-Do5qWHLj.d.ts → Select-C8oFyP8m.d.ts} +2 -2
  37. package/dist/{SelectBase-aSvWd7Cx.d.ts → SelectBase-BJHmul89.d.ts} +34 -35
  38. package/dist/{Slider-CdZdFERe.d.ts → Slider-CYGltM5_.d.ts} +2 -2
  39. package/dist/{SplitButton-DxrWH3EX.d.ts → SplitButton-CR4psHKW.d.ts} +3 -3
  40. package/dist/{Tag-DkTx1S7H.d.ts → Tag-DUvBTljf.d.ts} +1 -1
  41. package/dist/{TextArea-WosRv99w.d.ts → TextArea-Daj_Q1rm.d.ts} +2 -2
  42. package/dist/{TextButton-CJm2kbLZ.d.ts → TextButton-cigitfeH.d.ts} +3 -3
  43. package/dist/{TextEditor-CI9MAPyT.d.ts → TextEditor-DLRbKQc5.d.ts} +1 -1
  44. package/dist/TextInput-C4nfMF8d.d.ts +27 -0
  45. package/dist/{TimePicker-DivbHhCw.d.ts → TimePicker-Cmz97DBj.d.ts} +2 -2
  46. package/dist/Toast-DL8_g0WV.d.ts +16 -0
  47. package/dist/Toggle-C4NzfhYl.d.ts +19 -0
  48. package/dist/{ToggleButton-C0aNgZdw.d.ts → ToggleButton-3lINwoaV.d.ts} +2 -2
  49. package/dist/{Tooltip-BIoJ7tNr.d.ts → Tooltip-D1oFPqFF.d.ts} +1 -1
  50. package/dist/{autocomplete-bNuG6_dG.d.ts → autocomplete-UphTTkS4.d.ts} +3 -3
  51. package/dist/button-BQmy1LZS.d.ts +1 -0
  52. package/dist/{checkbox-BYnCRnOf.d.ts → checkbox-DY-2CBBN.d.ts} +1 -1
  53. package/dist/{checkbox-group-CeIFa44k.d.ts → checkbox-group-6Rcs6tZV.d.ts} +1 -1
  54. package/dist/components/accordion.d.ts +1 -1
  55. package/dist/components/action-modal.d.ts +1 -1
  56. package/dist/components/autocomplete.d.ts +1 -1
  57. package/dist/components/breadcrumbs.d.ts +1 -1
  58. package/dist/components/button.d.ts +1 -1
  59. package/dist/components/checkbox-group.d.ts +1 -1
  60. package/dist/components/checkbox.d.ts +1 -1
  61. package/dist/components/date-picker.d.ts +1 -1
  62. package/dist/components/date-range-picker.d.ts +1 -1
  63. package/dist/components/date-time-picker.d.ts +1 -1
  64. package/dist/components/file-upload-container.d.ts +2 -2
  65. package/dist/components/file-upload.d.ts +2 -2
  66. package/dist/components/form-field.d.ts +1 -1
  67. package/dist/components/icon-button.d.ts +1 -1
  68. package/dist/components/inline-icon-button.d.ts +1 -1
  69. package/dist/components/input-upload.d.ts +1 -1
  70. package/dist/components/link.d.ts +2 -2
  71. package/dist/components/menu.d.ts +2 -2
  72. package/dist/components/modal.d.ts +1 -1
  73. package/dist/components/number-input.d.ts +1 -1
  74. package/dist/components/number-range-input.d.ts +1 -1
  75. package/dist/components/pagination-list.d.ts +1 -1
  76. package/dist/components/pagination.d.ts +1 -1
  77. package/dist/components/password-input.d.ts +1 -1
  78. package/dist/components/pill-button.d.ts +1 -1
  79. package/dist/components/pill.d.ts +1 -1
  80. package/dist/components/query-autocomplete.d.ts +2 -2
  81. package/dist/components/query-select.d.ts +1 -1
  82. package/dist/components/radio-group.d.ts +1 -1
  83. package/dist/components/responsive-popover.d.ts +1 -1
  84. package/dist/components/segment.d.ts +2 -2
  85. package/dist/components/select.d.ts +2 -2
  86. package/dist/components/slider.d.ts +1 -1
  87. package/dist/components/split-button.d.ts +1 -1
  88. package/dist/components/tag.d.ts +1 -1
  89. package/dist/components/text-area.d.ts +1 -1
  90. package/dist/components/text-button.d.ts +1 -1
  91. package/dist/components/text-input.d.ts +1 -1
  92. package/dist/components/time-picker.d.ts +1 -1
  93. package/dist/components/toast.d.ts +2 -1
  94. package/dist/components/toggle-button.d.ts +1 -1
  95. package/dist/components/toggle.d.ts +1 -1
  96. package/dist/components/tooltip.d.ts +1 -1
  97. package/dist/components/use-toast.d.ts +1 -1
  98. package/dist/config/confirmation.d.ts +1 -1
  99. package/dist/config/link-context.d.ts +2 -2
  100. package/dist/config/ui-config.d.ts +2 -2
  101. package/dist/{confirmation.context-CLV-kSkd.d.ts → confirmation.context-D_kJeU8m.d.ts} +1 -1
  102. package/dist/{date-picker-gLc7aPL7.d.ts → date-picker-BYdmoeCA.d.ts} +1 -1
  103. package/dist/{date-range-picker-Vk7K6noM.d.ts → date-range-picker-DNXQEi8K.d.ts} +1 -1
  104. package/dist/{date-time-picker-Db_pMYsD.d.ts → date-time-picker-DDMrga9d.d.ts} +1 -1
  105. package/dist/{dynamicInputs-i58CWBjC.d.ts → dynamicInputs-CccdH-Ub.d.ts} +82 -75
  106. package/dist/{file-upload-JIICz2sD.d.ts → file-upload-CTRjAmXJ.d.ts} +2 -2
  107. package/dist/{fileUpload.types-DNAlG2R3.d.ts → fileUpload.types-DAPGUiNJ.d.ts} +3 -3
  108. package/dist/index-DCUSluLL.d.ts +269 -0
  109. package/dist/index.d.ts +73 -70
  110. package/dist/{input-upload-Bm68Vqws.d.ts → input-upload-D7bB0OTh.d.ts} +1 -1
  111. package/dist/{link.context-BUgF4OQ8.d.ts → link.context-C1RcdC0i.d.ts} +1 -1
  112. package/dist/{number-input-0eEiBuYH.d.ts → number-input-BtQFDlS1.d.ts} +1 -1
  113. package/dist/{number-range-input-Xe0GcGzn.d.ts → number-range-input-BG2xxkmT.d.ts} +1 -1
  114. package/dist/{password-input-Dzt77vHH.d.ts → password-input-qbDKPJXN.d.ts} +1 -1
  115. package/dist/{query-autocomplete-CHtcx_ND.d.ts → query-autocomplete-Wyffk38N.d.ts} +2 -2
  116. package/dist/{query-select-CD0iFQqR.d.ts → query-select-C5aXABf0.d.ts} +3 -3
  117. package/dist/{queryAutocomplete.types-DaTDttX5.d.ts → queryAutocomplete.types-B2k1Dbpj.d.ts} +3 -3
  118. package/dist/{radio-group-Bhnx7pCI.d.ts → radio-group-rT7SDzMI.d.ts} +1 -1
  119. package/dist/{RadioGroup-iry4UYlW.d.ts → radio.cva-9lpsise2.d.ts} +1 -23
  120. package/dist/rhf/autocomplete.d.ts +2 -2
  121. package/dist/rhf/checkbox-group.d.ts +2 -2
  122. package/dist/rhf/checkbox.d.ts +2 -2
  123. package/dist/rhf/date-picker.d.ts +2 -2
  124. package/dist/rhf/date-range-picker.d.ts +2 -2
  125. package/dist/rhf/date-time-picker.d.ts +2 -2
  126. package/dist/rhf/file-upload.d.ts +2 -2
  127. package/dist/rhf/input-upload.d.ts +2 -2
  128. package/dist/rhf/inputs.d.ts +1 -1
  129. package/dist/rhf/number-input.d.ts +2 -2
  130. package/dist/rhf/number-range-input.d.ts +2 -2
  131. package/dist/rhf/password-input.d.ts +2 -2
  132. package/dist/rhf/query-autocomplete.d.ts +1 -1
  133. package/dist/rhf/query-select.d.ts +1 -1
  134. package/dist/rhf/radio-group.d.ts +2 -2
  135. package/dist/rhf/segment.d.ts +2 -2
  136. package/dist/rhf/select.d.ts +2 -2
  137. package/dist/rhf/slider.d.ts +2 -2
  138. package/dist/rhf/text-area.d.ts +2 -2
  139. package/dist/rhf/text-editor.d.ts +2 -2
  140. package/dist/rhf/text-input.d.ts +2 -2
  141. package/dist/rhf/time-picker.d.ts +2 -2
  142. package/dist/rhf/toggle.d.ts +2 -2
  143. package/dist/rhf.d.ts +73 -70
  144. package/dist/{segment-CK9gjZ8s.d.ts → segment-oh4z5h5S.d.ts} +2 -2
  145. package/dist/{segment.types-CCpnAbOH.d.ts → segment.types-CW-stocu.d.ts} +1 -1
  146. package/dist/{select-D80pWSgi.d.ts → select-BurKoPIP.d.ts} +3 -3
  147. package/dist/{slider-MG-JqKNN.d.ts → slider-CPcjmgXV.d.ts} +1 -1
  148. package/dist/tanstack/autocomplete.d.ts +1 -1
  149. package/dist/tanstack/checkbox-group.d.ts +1 -1
  150. package/dist/tanstack/checkbox.d.ts +1 -1
  151. package/dist/tanstack/date-picker.d.ts +1 -1
  152. package/dist/tanstack/date-range-picker.d.ts +1 -1
  153. package/dist/tanstack/date-time-picker.d.ts +1 -1
  154. package/dist/tanstack/file-upload.d.ts +2 -2
  155. package/dist/tanstack/form.d.ts +1 -1
  156. package/dist/tanstack/input-upload.d.ts +1 -1
  157. package/dist/tanstack/inputs.d.ts +2 -2
  158. package/dist/tanstack/number-input.d.ts +1 -1
  159. package/dist/tanstack/number-range-input.d.ts +1 -1
  160. package/dist/tanstack/password-input.d.ts +1 -1
  161. package/dist/tanstack/query-select.d.ts +1 -1
  162. package/dist/tanstack/radio-group.d.ts +1 -1
  163. package/dist/tanstack/segment.d.ts +2 -2
  164. package/dist/tanstack/select.d.ts +1 -1
  165. package/dist/tanstack/slider.d.ts +1 -1
  166. package/dist/tanstack/table.d.ts +1 -2
  167. package/dist/tanstack/text-area.d.ts +1 -1
  168. package/dist/tanstack/text-editor.d.ts +1 -1
  169. package/dist/tanstack/text-input.d.ts +1 -1
  170. package/dist/tanstack/time-picker.d.ts +1 -1
  171. package/dist/tanstack/toggle.d.ts +1 -1
  172. package/dist/tanstack.d.ts +57 -54
  173. package/dist/{text-area-BOlfnGaF.d.ts → text-area-CCDmHkAZ.d.ts} +1 -1
  174. package/dist/{text-editor-CQGYgGI3.d.ts → text-editor-BD-5Q4VD.d.ts} +1 -1
  175. package/dist/text-editor.d.ts +1 -1
  176. package/dist/{text-input-JUX2SUzO.d.ts → text-input-CdZKbMu3.d.ts} +1 -1
  177. package/dist/{time-picker-Dm642_yK.d.ts → time-picker-D3gWP1hd.d.ts} +1 -1
  178. package/dist/{Toast-JL9yaI35.d.ts → toast.cva-C1ZPw_oP.d.ts} +1 -15
  179. package/dist/{toggle-IhObgudF.d.ts → toggle-DsRL_hSk.d.ts} +1 -1
  180. package/dist/{Toggle-vHKDihtx.d.ts → toggle.cva-2CGLc8aa.d.ts} +1 -18
  181. package/dist/types-BT18i837.d.ts +69 -0
  182. package/dist/{types-BSiv-Igp.d.ts → types-ZbFfCz06.d.ts} +16 -343
  183. package/dist/uiConfig.context-Bjb9TQ6Y.d.ts +126 -0
  184. package/dist/{useTableNav-CFHbvYvu.d.ts → useTableNav-B_mH8Lcl.d.ts} +19 -2
  185. package/dist/{useToast-B55ZUvwy.d.ts → useToast-q70ayd29.d.ts} +1 -1
  186. package/package.json +1 -1
  187. package/dist/FormField-CpPQoyv_.d.ts +0 -81
  188. package/dist/HeaderText-BrZaEuIn.d.ts +0 -19
  189. package/dist/button-CAOolCjz.d.ts +0 -1
  190. package/dist/uiConfig.context-BLXZG1Mu.d.ts +0 -90
@@ -0,0 +1,126 @@
1
+ import { t as TypographyVariantProps } from "./typography.cva-7RYwLrA7.js";
2
+ import { n as ButtonVariantProps } from "./button.cva-zMNkoZH8.js";
3
+ import { t as CheckboxVariantProps } from "./checkbox.cva-Caaf2Ysq.js";
4
+ import { n as InputVariantProps } from "./input.cva-CfgCOIQW.js";
5
+ import { t as RadioVariantProps } from "./radio.cva-9lpsise2.js";
6
+ import { t as ToggleVariantProps } from "./toggle.cva-2CGLc8aa.js";
7
+ import { r as TypographyPropsCva } from "./Typography-BiHrVFpz.js";
8
+ import { r as ToastPosition } from "./index-B8r_kiw4.js";
9
+ import { t as ToastVariantProps } from "./toast.cva-C1ZPw_oP.js";
10
+ import { FC, PropsWithChildren, ReactElement, SVGProps } from "react";
11
+ //#region src/config/uiConfig.types.d.ts
12
+ type Breakpoint = "sm" | "md" | "lg" | "xl";
13
+ interface DateRangeRelativeOption {
14
+ value: string;
15
+ label: string;
16
+ getValue: () => {
17
+ start: string;
18
+ end: string;
19
+ };
20
+ isDisabled?: boolean;
21
+ }
22
+ type DatePickerIcon = boolean | FC<SVGProps<SVGSVGElement>> | ReactElement;
23
+ interface UIConfigOptions {
24
+ renderStaticInput: boolean;
25
+ responsive: {
26
+ ssrMatches: Partial<Record<Breakpoint, boolean>>;
27
+ };
28
+ input: Pick<InputVariantProps, "variant" | "as" | "size"> & {
29
+ isClearable?: boolean;
30
+ hideLabel?: boolean;
31
+ alwaysShowClear?: boolean;
32
+ };
33
+ button: Pick<ButtonVariantProps, "variant" | "size">;
34
+ numberInput: {
35
+ formatOptions?: Intl.NumberFormatOptions;
36
+ };
37
+ radioGroup: Pick<RadioVariantProps, "variant"> & {
38
+ hideLabel?: boolean;
39
+ fireBlurOnChange?: boolean;
40
+ };
41
+ checkbox: Pick<CheckboxVariantProps, "variant"> & {
42
+ fireBlurOnChange?: boolean;
43
+ };
44
+ select: {
45
+ selectionMode?: "single" | "multiple";
46
+ isSearchable?: boolean;
47
+ collapseAfter?: number;
48
+ selectedTagsType?: "tags" | "list";
49
+ hideSearchIcon?: boolean;
50
+ multiSelectAutoConfirm?: boolean;
51
+ searchDebounceDelay?: number;
52
+ fireBlurOnChange?: boolean;
53
+ renderStaticInput?: boolean;
54
+ };
55
+ queryAutocomplete: {
56
+ isInitialQueryDisabled?: boolean;
57
+ renderStaticInput?: boolean;
58
+ resolveSelectedItemsWithIds?: boolean;
59
+ searchDebounceDelay?: number;
60
+ };
61
+ querySelect: {
62
+ isInitialQueryDisabled?: boolean;
63
+ renderStaticInput?: boolean;
64
+ resolveSelectedItemsWithIds?: boolean;
65
+ searchDebounceDelay?: number;
66
+ };
67
+ toggle: Pick<ToggleVariantProps, "variant"> & {
68
+ fireBlurOnChange?: boolean;
69
+ };
70
+ slider: {
71
+ minValue?: number;
72
+ maxValue?: number;
73
+ };
74
+ dateInput: {
75
+ todayIcon?: DatePickerIcon;
76
+ todayIconButtonSize?: ButtonVariantProps["size"] | "none";
77
+ todayIconButtonComponent?: "iconButton" | "inlineIconButton";
78
+ todayIconPlacement?: "content" | "fieldLabel";
79
+ shouldForceLeadingZeros?: boolean;
80
+ disableManualEntry?: boolean;
81
+ shouldUpdateDateOnMonthYearChange?: boolean;
82
+ granularity?: "day" | "month" | "year";
83
+ autoFixYear?: boolean;
84
+ calendarIcon?: ReactElement;
85
+ dateTimeIcon?: ReactElement;
86
+ timeIcon?: ReactElement;
87
+ setDateValueOnDateSelection?: boolean;
88
+ timeZone?: string;
89
+ allowPartialRange?: boolean;
90
+ fireBlurOnChange?: boolean;
91
+ dateRangeOptions?: DateRangeRelativeOption[];
92
+ };
93
+ actionModal: {
94
+ titleTypography?: TypographyPropsCva;
95
+ descriptionTypography?: TypographyPropsCva;
96
+ };
97
+ bottomSheet: {
98
+ closeDragThreshold?: number;
99
+ closeVelocityThreshold?: number;
100
+ hideThumb?: boolean;
101
+ headerTypography?: TypographyVariantProps;
102
+ };
103
+ tableHeaderText: Pick<TypographyPropsCva, "variant" | "size">;
104
+ tableCellText: Pick<TypographyPropsCva, "variant" | "size">;
105
+ tag: {
106
+ textVariant?: TypographyVariantProps["variant"];
107
+ textSize?: TypographyVariantProps["size"];
108
+ };
109
+ toast: Pick<ToastVariantProps, "variant"> & {
110
+ position: ToastPosition;
111
+ };
112
+ }
113
+ type DeepRequired<T> = { [P in keyof T]-?: T[P] extends object ? DeepRequired<T[P]> : Exclude<T[P], null | undefined>; };
114
+ //#endregion
115
+ //#region src/config/uiConfig.context.d.ts
116
+ declare namespace UIConfig {
117
+ export type Options = UIConfigOptions;
118
+ interface ProviderProps {
119
+ config?: Partial<Options>;
120
+ }
121
+ export const Provider: ({ config, children }: PropsWithChildren<ProviderProps>) => import("react/jsx-runtime").JSX.Element;
122
+ export const useConfig: () => DeepRequired<UIConfigOptions>;
123
+ export {};
124
+ }
125
+ //#endregion
126
+ export { UIConfig as t };
@@ -1,10 +1,19 @@
1
1
  import { n as StyleMergeUtils, t as UIOverrides } from "./uiOverrides.context-BdokYcGO.js";
2
2
  import { c as ZodObject, h as output, i as ZodEnum } from "./schemas-CAtYiHoz.js";
3
3
  import { t as FieldPath } from "./form.binding-DWlFTecs.js";
4
- import { ComponentType, Dispatch, KeyboardEvent, ReactNode, SetStateAction } from "react";
4
+ import { n as TypographyProps } from "./Typography-BiHrVFpz.js";
5
+ import { CSSProperties, ComponentType, Dispatch, FC, KeyboardEvent, ReactNode, SetStateAction } from "react";
5
6
  import { CellContext, ColumnDef, ColumnMeta, ColumnOrderState, ColumnVisibilityState, OnChangeFn, PaginationState, Row, RowData, RowSelectionState, SortingState, StockFeatures, Table } from "@tanstack/react-table";
6
7
  import { TFunction } from "i18next";
7
8
  import { DragEndEvent, UniqueIdentifier } from "@dnd-kit/core";
9
+ //#region src/components/table/CellText.d.ts
10
+ interface CellTextProps extends Partial<Pick<TypographyProps, "variant" | "size">> {
11
+ children: ReactNode;
12
+ className?: string;
13
+ style?: CSSProperties;
14
+ }
15
+ declare const CellText: FC<CellTextProps>;
16
+ //#endregion
8
17
  //#region src/components/table/ColumnConfig.d.ts
9
18
  type ColumnDef$4<TData extends RowData, TValue = unknown> = ColumnDef<StockFeatures, TData, TValue>;
10
19
  type VisibilityState$2 = ColumnVisibilityState;
@@ -18,6 +27,14 @@ interface ColumnConfigModalProps<TData extends RowData, TValue> {
18
27
  }
19
28
  declare function ColumnConfigModal<TData extends RowData, TValue>({ isOpen, onClose, configColumns, visibleColumns, onVisibilityChange, onOrderChange }: ColumnConfigModalProps<TData, TValue>): import("react/jsx-runtime").JSX.Element | null;
20
29
  //#endregion
30
+ //#region src/components/table/HeaderText.d.ts
31
+ interface HeaderTextProps extends Partial<Pick<TypographyProps, "variant" | "size">> {
32
+ children: ReactNode;
33
+ className?: string;
34
+ style?: CSSProperties;
35
+ }
36
+ declare const HeaderText: FC<HeaderTextProps>;
37
+ //#endregion
21
38
  //#region src/components/table/table.cva.d.ts
22
39
  declare const tableRowDefinition: {
23
40
  base: string[];
@@ -271,4 +288,4 @@ declare function useTableNav(options?: Config): {
271
288
  tableNav: DataGridNav;
272
289
  };
273
290
  //#endregion
274
- export { ColumnConfigModal as C, tableRowDefinition as S, tableCellTextDefinition as _, DynamicColumnsOptions as a, tableHeadRowDefinition as b, PaginatedTableProps as c, InfiniteTableProps as d, InfiniteTableWrapperProps as f, TableRowVariantProps as g, TableWrapperProps as h, usePagination as i, PaginatedTableWrapperProps as l, TableProps as m, useTableColumnConfig as n, dynamicColumns as o, Table$1 as p, useSorting as r, PaginatedTable as s, useTableNav as t, InfiniteTable as u, tableDataDefinition as v, ColumnConfigModalProps as w, tableHeaderTextDefinition as x, tableHeadDataDefinition as y };
291
+ export { HeaderText as C, CellText as D, ColumnConfigModalProps as E, CellTextProps as O, tableRowDefinition as S, ColumnConfigModal as T, tableCellTextDefinition as _, DynamicColumnsOptions as a, tableHeadRowDefinition as b, PaginatedTableProps as c, InfiniteTableProps as d, InfiniteTableWrapperProps as f, TableRowVariantProps as g, TableWrapperProps as h, usePagination as i, PaginatedTableWrapperProps as l, TableProps as m, useTableColumnConfig as n, dynamicColumns as o, Table$1 as p, useSorting as r, PaginatedTable as s, useTableNav as t, InfiniteTable as u, tableDataDefinition as v, HeaderTextProps as w, tableHeaderTextDefinition as x, tableHeadDataDefinition as y };
@@ -1,5 +1,5 @@
1
1
  import { n as ToastOptions$1, r as ToastPosition, t as Id } from "./index-B8r_kiw4.js";
2
- import { r as ToastProps } from "./Toast-JL9yaI35.js";
2
+ import { r as ToastProps } from "./Toast-DL8_g0WV.js";
3
3
  //#region src/components/status/Toast/useToast.d.ts
4
4
  interface ToastParams extends Omit<ToastProps, "color"> {
5
5
  position?: ToastPosition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@povio/ui",
3
- "version": "3.4.0-rc.37",
3
+ "version": "3.4.0-rc.38",
4
4
  "type": "module",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,81 +0,0 @@
1
- import { D as DOMAttributes$1, s as InputProps } from "./types-BSiv-Igp.js";
2
- import { n as InlineIconButtonProps } from "./InlineIconButton-DvsOdnfE.js";
3
- import { n as FieldValues } from "./form.binding-DWlFTecs.js";
4
- import { t as FormFieldErrorProps } from "./FormFieldError-BT4uxbKY.js";
5
- import { t as ControlProps } from "./form.types-B9Vp8q2g.js";
6
- import { n as InputVariantProps } from "./input.cva-CfgCOIQW.js";
7
- import { FC, FocusEvent, FocusEventHandler, LabelHTMLAttributes, MouseEventHandler, PropsWithChildren, ReactElement, ReactNode, Ref, SVGProps } from "react";
8
- import { AriaTextFieldProps } from "@react-aria/textfield";
9
- //#region src/components/inputs/FormField/FormFieldHeader.d.ts
10
- interface FormFieldHeaderProps {
11
- label: string;
12
- tooltipText?: string;
13
- helperText?: string;
14
- isRequired?: boolean;
15
- rightContent?: ReactNode;
16
- isHeaderHidden?: boolean;
17
- isDisabled?: boolean;
18
- className?: string;
19
- labelProps?: DOMAttributes$1<HTMLLabelElement> & LabelHTMLAttributes<HTMLLabelElement>;
20
- }
21
- //#endregion
22
- //#region src/components/inputs/Input/shared/InputContent.d.ts
23
- interface InputContentProps {
24
- className?: string;
25
- unit?: string;
26
- isLoading?: boolean;
27
- isDisabled?: boolean;
28
- action?: {
29
- icon: InlineIconButtonProps["icon"];
30
- onClick: () => void;
31
- altText: string;
32
- className?: string;
33
- };
34
- leadingIcon?: FC<SVGProps<SVGSVGElement>> | ReactElement;
35
- trailingIcon?: FC<SVGProps<SVGSVGElement>> | ReactElement;
36
- isClearable?: boolean;
37
- isClearableIfDisabled?: boolean;
38
- value?: string | number | null;
39
- onChange?: (value: string) => void;
40
- onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
41
- headerProps?: FormFieldHeaderProps;
42
- }
43
- //#endregion
44
- //#region src/components/inputs/Input/TextInput/TextInput.d.ts
45
- type AllowedHTMLInputTypeAttribute = "email" | "hidden" | "tel" | "text" | "url";
46
- interface TextInputBaseProps extends FormFieldProps, InputVariantProps, Omit<InputContentProps, "ref" | "value" | "onChange" | "onBlur">, Omit<InputProps, "value" | "defaultValue" | "onChange" | "disabled" | "required" | "type" | "size" | "className" | keyof AriaTextFieldProps>, Omit<AriaTextFieldProps<HTMLInputElement>, "label"> {
47
- ref?: Ref<HTMLInputElement>;
48
- inputClassName?: string;
49
- type?: AllowedHTMLInputTypeAttribute;
50
- todayIcon?: boolean;
51
- isDirty?: boolean;
52
- autoFocusOnMount?: boolean;
53
- }
54
- interface TextInputProps extends TextInputBaseProps {
55
- renderStaticInput?: boolean;
56
- }
57
- type ControlledTextInputProps<TFieldValues extends Record<string, unknown>> = ControlProps<TextInputProps, TFieldValues>;
58
- /** @internal Exported for production render benchmarks. */
59
- declare const TextInputComponent: <TFieldValues extends FieldValues>({ renderStaticInput, ...props }: ControlledTextInputProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
60
- declare const TextInput: typeof TextInputComponent;
61
- //#endregion
62
- //#region src/components/inputs/FormField/FormField.d.ts
63
- interface FormFieldProps extends Omit<FormFieldHeaderProps, "className" | "labelProps">, Omit<FormFieldErrorProps, "className"> {
64
- errorMessageId?: string;
65
- helperTextId?: string;
66
- hideLabel?: boolean;
67
- headerClassName?: string;
68
- errorClassName?: string;
69
- className?: string;
70
- }
71
- interface FormFieldComponentProps extends PropsWithChildren<FormFieldProps> {
72
- ref?: Ref<HTMLDivElement>;
73
- labelProps?: FormFieldHeaderProps["labelProps"];
74
- as?: TextInputProps["as"];
75
- tabIndex?: number;
76
- onMouseEnter?: MouseEventHandler<HTMLDivElement>;
77
- onFocusCapture?: FocusEventHandler<HTMLDivElement>;
78
- }
79
- declare const FormField: ({ ref, as, label, tooltipText, helperText, helperTextId, isRequired, rightContent, isDisabled, error, errorMessageId, hideLabel, headerClassName, errorClassName, children, className, labelProps, isHeaderHidden, tabIndex, onMouseEnter, onFocusCapture }: FormFieldComponentProps) => import("react/jsx-runtime").JSX.Element;
80
- //#endregion
81
- export { TextInputComponent as a, TextInput as i, FormFieldProps as n, TextInputProps as o, ControlledTextInputProps as r, InputContentProps as s, FormField as t };
@@ -1,19 +0,0 @@
1
- import { n as TypographyProps } from "./Typography-BiHrVFpz.js";
2
- import { CSSProperties, FC, ReactNode } from "react";
3
- //#region src/components/table/CellText.d.ts
4
- interface CellTextProps extends Partial<Pick<TypographyProps, "variant" | "size">> {
5
- children: ReactNode;
6
- className?: string;
7
- style?: CSSProperties;
8
- }
9
- declare const CellText: FC<CellTextProps>;
10
- //#endregion
11
- //#region src/components/table/HeaderText.d.ts
12
- interface HeaderTextProps extends Partial<Pick<TypographyProps, "variant" | "size">> {
13
- children: ReactNode;
14
- className?: string;
15
- style?: CSSProperties;
16
- }
17
- declare const HeaderText: FC<HeaderTextProps>;
18
- //#endregion
19
- export { CellTextProps as i, HeaderTextProps as n, CellText as r, HeaderText as t };
@@ -1 +0,0 @@
1
- import "./types-BSiv-Igp.js";
@@ -1,90 +0,0 @@
1
- import { t as BottomSheetProps } from "./BottomSheet-BZXBtOHF.js";
2
- import { r as ButtonProps } from "./Button-OxjPE7Hf.js";
3
- import { i as CheckboxProps } from "./Checkbox-Di3VlWJj.js";
4
- import { o as TextInputProps } from "./FormField-CpPQoyv_.js";
5
- import { i as NumberInputProps } from "./NumberInput-Cr_nD98h.js";
6
- import { r as RadioGroupProps } from "./RadioGroup-iry4UYlW.js";
7
- import { t as SelectBaseProps } from "./SelectBase-aSvWd7Cx.js";
8
- import { r as SliderProps } from "./Slider-CdZdFERe.js";
9
- import { r as ToggleProps } from "./Toggle-vHKDihtx.js";
10
- import { n as ActionModalProps } from "./ActionModal-C4lfhfPx.js";
11
- import { r as ToastPosition } from "./index-B8r_kiw4.js";
12
- import { r as ToastProps } from "./Toast-JL9yaI35.js";
13
- import { n as TagProps } from "./Tag-DkTx1S7H.js";
14
- import { r as DatePickerProps } from "./DatePicker-COJoYiqp.js";
15
- import { i as DateRangeRelativeOption } from "./DateRangePicker-C8hu6_ms.js";
16
- import { i as CellTextProps, n as HeaderTextProps } from "./HeaderText-BrZaEuIn.js";
17
- import { PropsWithChildren, ReactElement } from "react";
18
- //#region src/hooks/useBreakpoint.d.ts
19
- type Breakpoint = "sm" | "md" | "lg" | "xl";
20
- declare function useBreakpoint(breakpointKey: Breakpoint): boolean;
21
- //#endregion
22
- //#region src/config/uiConfig.context.d.ts
23
- declare namespace UIConfig {
24
- type DeepRequired<T> = { [P in keyof T]-?: T[P] extends object ? DeepRequired<T[P]> : Exclude<T[P], null | undefined>; };
25
- export interface Options {
26
- renderStaticInput: boolean;
27
- responsive: {
28
- ssrMatches: Partial<Record<Breakpoint, boolean>>;
29
- };
30
- input: Pick<TextInputProps, "variant" | "isClearable" | "hideLabel" | "as" | "size"> & {
31
- alwaysShowClear?: boolean;
32
- };
33
- button: Pick<ButtonProps, "variant" | "size">;
34
- numberInput: Pick<NumberInputProps, "formatOptions">;
35
- radioGroup: Pick<RadioGroupProps, "variant" | "hideLabel"> & {
36
- fireBlurOnChange?: boolean;
37
- };
38
- checkbox: Pick<CheckboxProps, "variant"> & {
39
- fireBlurOnChange?: boolean;
40
- };
41
- select: Pick<SelectBaseProps, "selectionMode" | "isSearchable" | "collapseAfter" | "selectedTagsType" | "hideSearchIcon" | "multiSelectAutoConfirm" | "searchDebounceDelay"> & {
42
- fireBlurOnChange?: boolean;
43
- renderStaticInput?: boolean;
44
- };
45
- queryAutocomplete: {
46
- isInitialQueryDisabled?: boolean;
47
- renderStaticInput?: boolean;
48
- resolveSelectedItemsWithIds?: boolean;
49
- searchDebounceDelay?: number;
50
- };
51
- querySelect: {
52
- isInitialQueryDisabled?: boolean;
53
- renderStaticInput?: boolean;
54
- resolveSelectedItemsWithIds?: boolean;
55
- searchDebounceDelay?: number;
56
- };
57
- toggle: Pick<ToggleProps, "variant"> & {
58
- fireBlurOnChange?: boolean;
59
- };
60
- slider: Pick<SliderProps, "minValue" | "maxValue">;
61
- dateInput: Pick<DatePickerProps, "todayIcon" | "todayIconButtonSize" | "todayIconPlacement" | "shouldForceLeadingZeros" | "disableManualEntry" | "shouldUpdateDateOnMonthYearChange" | "granularity" | "autoFixYear"> & {
62
- calendarIcon?: ReactElement;
63
- dateTimeIcon?: ReactElement;
64
- timeIcon?: ReactElement;
65
- setDateValueOnDateSelection?: boolean;
66
- timeZone?: string;
67
- todayIconButtonComponent?: DatePickerProps["todayIconButtonComponent"];
68
- allowPartialRange?: boolean;
69
- fireBlurOnChange?: boolean;
70
- /** Additional choices shown by DateRangePicker in `relative` mode. */
71
- dateRangeOptions?: DateRangeRelativeOption[];
72
- };
73
- actionModal: Pick<ActionModalProps, "titleTypography" | "descriptionTypography">;
74
- bottomSheet: Pick<BottomSheetProps, "closeDragThreshold" | "closeVelocityThreshold" | "hideThumb" | "headerTypography">;
75
- tableHeaderText: Pick<HeaderTextProps, "variant" | "size">;
76
- tableCellText: Pick<CellTextProps, "variant" | "size">;
77
- tag: Pick<TagProps, "textVariant" | "textSize">;
78
- toast: Pick<ToastProps, "variant"> & {
79
- position: ToastPosition;
80
- };
81
- }
82
- interface ProviderProps {
83
- config?: Partial<Options>;
84
- }
85
- export const Provider: ({ config, children }: PropsWithChildren<ProviderProps>) => import("react/jsx-runtime").JSX.Element;
86
- export const useConfig: () => DeepRequired<Options>;
87
- export {};
88
- }
89
- //#endregion
90
- export { useBreakpoint as n, UIConfig as t };