@shape-digital-env/shape-ui 0.0.1 → 0.0.3

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 (206) hide show
  1. package/README.md +24 -85
  2. package/components/Accordion/Accordion.d.ts +32 -7
  3. package/components/Accordion/Accordion.d.ts.map +1 -1
  4. package/components/Accordion/Accordion.stories.d.ts +49 -6
  5. package/components/Accordion/Accordion.stories.d.ts.map +1 -1
  6. package/components/AccountAvatar/AccountAvatar.d.ts +2 -0
  7. package/components/AccountAvatar/AccountAvatar.d.ts.map +1 -1
  8. package/components/AccountAvatar/AccountAvatar.stories.d.ts +20 -7
  9. package/components/AccountAvatar/AccountAvatar.stories.d.ts.map +1 -1
  10. package/components/AppLogos/AppLogos.stories.d.ts +4 -6
  11. package/components/AppLogos/AppLogos.stories.d.ts.map +1 -1
  12. package/components/AppLogos/AuraLogo.d.ts +2 -0
  13. package/components/AppLogos/AuraLogo.d.ts.map +1 -1
  14. package/components/AppLogos/AuraLogoWithName.d.ts +2 -0
  15. package/components/AppLogos/AuraLogoWithName.d.ts.map +1 -1
  16. package/components/AppLogos/LighthouseLockup.d.ts +3 -0
  17. package/components/AppLogos/LighthouseLockup.d.ts.map +1 -1
  18. package/components/AppLogos/LighthouseLogo.d.ts +2 -0
  19. package/components/AppLogos/LighthouseLogo.d.ts.map +1 -1
  20. package/components/AppLogos/LighthouseLogoWithName.d.ts +2 -0
  21. package/components/AppLogos/LighthouseLogoWithName.d.ts.map +1 -1
  22. package/components/AppLogos/LumenLogo.d.ts +2 -0
  23. package/components/AppLogos/LumenLogo.d.ts.map +1 -1
  24. package/components/AppLogos/LumenLogoWithName.d.ts +2 -0
  25. package/components/AppLogos/LumenLogoWithName.d.ts.map +1 -1
  26. package/components/AppLogos/ReefLogo.d.ts +2 -0
  27. package/components/AppLogos/ReefLogo.d.ts.map +1 -1
  28. package/components/AppLogos/ReefLogoWithName.d.ts +2 -0
  29. package/components/AppLogos/ReefLogoWithName.d.ts.map +1 -1
  30. package/components/Button/Button.d.ts +13 -0
  31. package/components/Button/Button.d.ts.map +1 -1
  32. package/components/Button/Button.stories.d.ts +38 -4
  33. package/components/Button/Button.stories.d.ts.map +1 -1
  34. package/components/Card/Card.d.ts +1 -0
  35. package/components/Card/Card.d.ts.map +1 -1
  36. package/components/Card/Card.stories.d.ts +23 -4
  37. package/components/Card/Card.stories.d.ts.map +1 -1
  38. package/components/CellStyled/CellStyled.d.ts +5 -0
  39. package/components/CellStyled/CellStyled.d.ts.map +1 -1
  40. package/components/CellStyled/CellStyled.stories.d.ts +28 -4
  41. package/components/CellStyled/CellStyled.stories.d.ts.map +1 -1
  42. package/components/ChartWrapper/ChartWrapper.d.ts +4 -4
  43. package/components/ChartWrapper/ChartWrapper.d.ts.map +1 -1
  44. package/components/ChartWrapper/ChartWrapper.stories.d.ts +22 -5
  45. package/components/ChartWrapper/ChartWrapper.stories.d.ts.map +1 -1
  46. package/components/Checkbox/Checkbox.d.ts +4 -1
  47. package/components/Checkbox/Checkbox.d.ts.map +1 -1
  48. package/components/Checkbox/Checkbox.stories.d.ts +25 -7
  49. package/components/Checkbox/Checkbox.stories.d.ts.map +1 -1
  50. package/components/ClearFilters/ClearFilters.d.ts +5 -0
  51. package/components/ClearFilters/ClearFilters.d.ts.map +1 -1
  52. package/components/ClearFilters/ClearFilters.stories.d.ts +26 -5
  53. package/components/ClearFilters/ClearFilters.stories.d.ts.map +1 -1
  54. package/components/DateRangePicker/DateRangePicker.d.ts +17 -0
  55. package/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  56. package/components/DateRangePicker/DateRangePicker.stories.d.ts +55 -7
  57. package/components/DateRangePicker/DateRangePicker.stories.d.ts.map +1 -1
  58. package/components/Divider/Divider.d.ts +4 -4
  59. package/components/Divider/Divider.d.ts.map +1 -1
  60. package/components/Divider/Divider.stories.d.ts +27 -6
  61. package/components/Divider/Divider.stories.d.ts.map +1 -1
  62. package/components/DropdownMenu/DropdownMenu.d.ts +3 -0
  63. package/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  64. package/components/DropdownMenu/DropdownMenu.stories.d.ts +37 -3
  65. package/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
  66. package/components/ErrorFallback/ErrorFallback.d.ts +12 -0
  67. package/components/ErrorFallback/ErrorFallback.d.ts.map +1 -1
  68. package/components/ErrorFallback/ErrorFallback.stories.d.ts +291 -4
  69. package/components/ErrorFallback/ErrorFallback.stories.d.ts.map +1 -1
  70. package/components/ErrorOnLoadData/ErrorOnLoadData.d.ts +6 -0
  71. package/components/ErrorOnLoadData/ErrorOnLoadData.d.ts.map +1 -1
  72. package/components/ErrorOnLoadData/ErrorOnLoadData.stories.d.ts +1 -0
  73. package/components/ErrorOnLoadData/ErrorOnLoadData.stories.d.ts.map +1 -1
  74. package/components/Field/Field.stories.d.ts +19 -4
  75. package/components/Field/Field.stories.d.ts.map +1 -1
  76. package/components/Field/Field.types.d.ts +30 -0
  77. package/components/Field/Field.types.d.ts.map +1 -1
  78. package/components/Icon/Icon.d.ts +8 -4
  79. package/components/Icon/Icon.d.ts.map +1 -1
  80. package/components/Icon/Icon.stories.d.ts +36 -4
  81. package/components/Icon/Icon.stories.d.ts.map +1 -1
  82. package/components/Input/Input.d.ts +4 -0
  83. package/components/Input/Input.d.ts.map +1 -1
  84. package/components/Input/Input.stories.d.ts +328 -9
  85. package/components/Input/Input.stories.d.ts.map +1 -1
  86. package/components/LegendIcon/LegendIcon.d.ts +5 -2
  87. package/components/LegendIcon/LegendIcon.d.ts.map +1 -1
  88. package/components/LegendIcon/LegendIcon.stories.d.ts +3 -5
  89. package/components/LegendIcon/LegendIcon.stories.d.ts.map +1 -1
  90. package/components/LoginScreen/LoginScreen.d.ts +33 -5
  91. package/components/LoginScreen/LoginScreen.d.ts.map +1 -1
  92. package/components/LoginScreen/LoginScreen.stories.d.ts +6 -0
  93. package/components/LoginScreen/LoginScreen.stories.d.ts.map +1 -1
  94. package/components/Logo/Logo.d.ts +5 -0
  95. package/components/Logo/Logo.d.ts.map +1 -1
  96. package/components/Logo/Logo.stories.d.ts +27 -6
  97. package/components/Logo/Logo.stories.d.ts.map +1 -1
  98. package/components/MetricCard/MetricCard.d.ts +13 -1
  99. package/components/MetricCard/MetricCard.d.ts.map +1 -1
  100. package/components/MetricCard/MetricCard.stories.d.ts.map +1 -1
  101. package/components/Modal/Modal.d.ts +27 -16
  102. package/components/Modal/Modal.d.ts.map +1 -1
  103. package/components/Modal/Modal.stories.d.ts +41 -6
  104. package/components/Modal/Modal.stories.d.ts.map +1 -1
  105. package/components/MultiSelect/MultiSelect.d.ts +10 -0
  106. package/components/MultiSelect/MultiSelect.d.ts.map +1 -1
  107. package/components/MultiSelect/MultiSelect.stories.d.ts +66 -5
  108. package/components/MultiSelect/MultiSelect.stories.d.ts.map +1 -1
  109. package/components/PageHeader/PageHeader.d.ts +2 -0
  110. package/components/PageHeader/PageHeader.d.ts.map +1 -1
  111. package/components/PageHeader/PageHeader.stories.d.ts +28 -6
  112. package/components/PageHeader/PageHeader.stories.d.ts.map +1 -1
  113. package/components/Pagination/Pagination.d.ts +9 -0
  114. package/components/Pagination/Pagination.d.ts.map +1 -1
  115. package/components/Pagination/Pagination.stories.d.ts +60 -4
  116. package/components/Pagination/Pagination.stories.d.ts.map +1 -1
  117. package/components/RadioGroup/RadioGroup.d.ts +2 -0
  118. package/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  119. package/components/RadioGroup/RadioGroup.stories.d.ts +44 -5
  120. package/components/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
  121. package/components/Select/Select.d.ts +47 -14
  122. package/components/Select/Select.d.ts.map +1 -1
  123. package/components/Select/Select.stories.d.ts +105 -10
  124. package/components/Select/Select.stories.d.ts.map +1 -1
  125. package/components/ShapeLogo/ShapeLogo.d.ts +4 -1
  126. package/components/ShapeLogo/ShapeLogo.d.ts.map +1 -1
  127. package/components/ShapeLogo/ShapeLogo.stories.d.ts +29 -4
  128. package/components/ShapeLogo/ShapeLogo.stories.d.ts.map +1 -1
  129. package/components/SortableTableSection/SortableTableSection.d.ts +20 -4
  130. package/components/SortableTableSection/SortableTableSection.d.ts.map +1 -1
  131. package/components/SortableTableSection/SortableTableSection.stories.d.ts +44 -5
  132. package/components/SortableTableSection/SortableTableSection.stories.d.ts.map +1 -1
  133. package/components/Spinner/Spinner.d.ts +12 -2
  134. package/components/Spinner/Spinner.d.ts.map +1 -1
  135. package/components/Spinner/Spinner.stories.d.ts +26 -4
  136. package/components/Spinner/Spinner.stories.d.ts.map +1 -1
  137. package/components/Stepper/Stepper.d.ts +9 -1
  138. package/components/Stepper/Stepper.d.ts.map +1 -1
  139. package/components/Stepper/Stepper.stories.d.ts +308 -6
  140. package/components/Stepper/Stepper.stories.d.ts.map +1 -1
  141. package/components/Switch/Switch.stories.d.ts +24 -7
  142. package/components/Switch/Switch.stories.d.ts.map +1 -1
  143. package/components/Table/DataTable/DataTable.d.ts +1 -1
  144. package/components/Table/DataTable/DataTable.d.ts.map +1 -1
  145. package/components/Table/DataTable/DataTable.stories.d.ts +96 -9
  146. package/components/Table/DataTable/DataTable.stories.d.ts.map +1 -1
  147. package/components/Table/DataTable/DataTable.types.d.ts +61 -0
  148. package/components/Table/DataTable/DataTable.types.d.ts.map +1 -1
  149. package/components/Table/DataTable/components/DataTableBody.d.ts +2 -1
  150. package/components/Table/DataTable/components/DataTableBody.d.ts.map +1 -1
  151. package/components/Table/DataTable/components/DataTableCell/DataTableCell.d.ts +5 -0
  152. package/components/Table/DataTable/components/DataTableCell/DataTableCell.d.ts.map +1 -1
  153. package/components/Table/DataTable/components/DataTableCell/DataTableCell.utils.d.ts.map +1 -1
  154. package/components/Table/DataTable/components/DataTableHeader.d.ts.map +1 -1
  155. package/components/Table/DataTable/hooks/useDataTableColumns.d.ts.map +1 -1
  156. package/components/Table/Table.d.ts +12 -2
  157. package/components/Table/Table.d.ts.map +1 -1
  158. package/components/Table/Table.stories.d.ts +22 -7
  159. package/components/Table/Table.stories.d.ts.map +1 -1
  160. package/components/Tabs/Tabs.d.ts +12 -0
  161. package/components/Tabs/Tabs.d.ts.map +1 -1
  162. package/components/Tabs/Tabs.stories.d.ts +38 -5
  163. package/components/Tabs/Tabs.stories.d.ts.map +1 -1
  164. package/components/Textarea/Textarea.d.ts +4 -0
  165. package/components/Textarea/Textarea.d.ts.map +1 -1
  166. package/components/Textarea/Textarea.stories.d.ts +311 -7
  167. package/components/Textarea/Textarea.stories.d.ts.map +1 -1
  168. package/components/Title/Title.d.ts +1 -0
  169. package/components/Title/Title.d.ts.map +1 -1
  170. package/components/Title/Title.stories.d.ts +18 -4
  171. package/components/Title/Title.stories.d.ts.map +1 -1
  172. package/components/Toast/Toast.d.ts +18 -2
  173. package/components/Toast/Toast.d.ts.map +1 -1
  174. package/components/Toast/Toast.stories.d.ts +40 -5
  175. package/components/Toast/Toast.stories.d.ts.map +1 -1
  176. package/components/Tooltip/Tooltip.d.ts +13 -0
  177. package/components/Tooltip/Tooltip.d.ts.map +1 -1
  178. package/components/Tooltip/Tooltip.stories.d.ts +338 -3
  179. package/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
  180. package/index.js +9144 -9221
  181. package/lib/i18n.d.ts +8 -0
  182. package/lib/i18n.d.ts.map +1 -0
  183. package/lib/useSvgId.d.ts +8 -0
  184. package/lib/useSvgId.d.ts.map +1 -0
  185. package/locales/en/common.i18n.d.ts +19 -0
  186. package/locales/en/common.i18n.d.ts.map +1 -0
  187. package/locales/en/index.d.ts +19 -0
  188. package/locales/en/index.d.ts.map +1 -1
  189. package/locales/en/table.i18n.d.ts +1 -0
  190. package/locales/en/table.i18n.d.ts.map +1 -1
  191. package/locales/es/common.i18n.d.ts +19 -0
  192. package/locales/es/common.i18n.d.ts.map +1 -0
  193. package/locales/es/index.d.ts +19 -0
  194. package/locales/es/index.d.ts.map +1 -1
  195. package/locales/es/table.i18n.d.ts +1 -0
  196. package/locales/es/table.i18n.d.ts.map +1 -1
  197. package/locales/pt-br/common.i18n.d.ts +19 -0
  198. package/locales/pt-br/common.i18n.d.ts.map +1 -0
  199. package/locales/pt-br/index.d.ts +19 -0
  200. package/locales/pt-br/index.d.ts.map +1 -1
  201. package/locales/pt-br/table.i18n.d.ts +1 -0
  202. package/locales/pt-br/table.i18n.d.ts.map +1 -1
  203. package/package.json +4 -1
  204. package/styles.css +46 -1638
  205. package/components/Tabs/Tabs.figma.d.ts +0 -8
  206. package/components/Tabs/Tabs.figma.d.ts.map +0 -1
@@ -1,13 +1,332 @@
1
- import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { Input } from './Input';
3
- declare const meta: Meta<typeof Input>;
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { InputProps } from './Input';
3
+ declare const meta: {
4
+ title: string;
5
+ component: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<HTMLInputElement>>;
6
+ parameters: {
7
+ layout: string;
8
+ docs: {
9
+ description: {
10
+ component: string;
11
+ };
12
+ };
13
+ };
14
+ decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
15
+ error?: boolean | undefined;
16
+ accept?: string | undefined | undefined;
17
+ alt?: string | undefined | undefined;
18
+ autoComplete?: import('react').HTMLInputAutoCompleteAttribute | undefined;
19
+ capture?: boolean | "user" | "environment" | undefined | undefined;
20
+ checked?: boolean | undefined | undefined;
21
+ disabled?: boolean | undefined | undefined;
22
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
23
+ form?: string | undefined | undefined;
24
+ formAction?: string | undefined;
25
+ formEncType?: string | undefined | undefined;
26
+ formMethod?: string | undefined | undefined;
27
+ formNoValidate?: boolean | undefined | undefined;
28
+ formTarget?: string | undefined | undefined;
29
+ height?: number | string | undefined | undefined;
30
+ list?: string | undefined | undefined;
31
+ max?: number | string | undefined | undefined;
32
+ maxLength?: number | undefined | undefined;
33
+ min?: number | string | undefined | undefined;
34
+ minLength?: number | undefined | undefined;
35
+ multiple?: boolean | undefined | undefined;
36
+ name?: string | undefined | undefined;
37
+ pattern?: string | undefined | undefined;
38
+ placeholder?: string | undefined | undefined;
39
+ readOnly?: boolean | undefined | undefined;
40
+ required?: boolean | undefined | undefined;
41
+ size?: number | undefined | undefined;
42
+ src?: string | undefined | undefined;
43
+ step?: number | string | undefined | undefined;
44
+ type?: import('react').HTMLInputTypeAttribute | undefined;
45
+ value?: string | number | readonly string[] | undefined;
46
+ width?: number | string | undefined | undefined;
47
+ onChange?: import('react').ChangeEventHandler<HTMLInputElement> | undefined;
48
+ defaultChecked?: boolean | undefined | undefined;
49
+ defaultValue?: string | number | readonly string[] | undefined;
50
+ suppressContentEditableWarning?: boolean | undefined | undefined;
51
+ suppressHydrationWarning?: boolean | undefined | undefined;
52
+ accessKey?: string | undefined | undefined;
53
+ autoFocus?: boolean | undefined | undefined;
54
+ className?: string | undefined | undefined;
55
+ contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
56
+ contextMenu?: string | undefined | undefined;
57
+ dir?: string | undefined | undefined;
58
+ draggable?: (boolean | "false" | "true") | undefined;
59
+ hidden?: boolean | undefined | undefined;
60
+ id?: string | undefined | undefined;
61
+ lang?: string | undefined | undefined;
62
+ nonce?: string | undefined | undefined;
63
+ slot?: string | undefined | undefined;
64
+ spellCheck?: (boolean | "false" | "true") | undefined;
65
+ style?: import('react').CSSProperties | undefined;
66
+ tabIndex?: number | undefined | undefined;
67
+ title?: string | undefined | undefined;
68
+ translate?: "yes" | "no" | undefined | undefined;
69
+ radioGroup?: string | undefined | undefined;
70
+ role?: import('react').AriaRole | undefined;
71
+ about?: string | undefined | undefined;
72
+ content?: string | undefined | undefined;
73
+ datatype?: string | undefined | undefined;
74
+ inlist?: any;
75
+ prefix?: string | undefined | undefined;
76
+ property?: string | undefined | undefined;
77
+ rel?: string | undefined | undefined;
78
+ resource?: string | undefined | undefined;
79
+ rev?: string | undefined | undefined;
80
+ typeof?: string | undefined | undefined;
81
+ vocab?: string | undefined | undefined;
82
+ autoCapitalize?: string | undefined | undefined;
83
+ autoCorrect?: string | undefined | undefined;
84
+ autoSave?: string | undefined | undefined;
85
+ color?: string | undefined | undefined;
86
+ itemProp?: string | undefined | undefined;
87
+ itemScope?: boolean | undefined | undefined;
88
+ itemType?: string | undefined | undefined;
89
+ itemID?: string | undefined | undefined;
90
+ itemRef?: string | undefined | undefined;
91
+ results?: number | undefined | undefined;
92
+ security?: string | undefined | undefined;
93
+ unselectable?: "on" | "off" | undefined | undefined;
94
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
95
+ is?: string | undefined | undefined;
96
+ children?: import('react').ReactNode | Iterable<import('react').ReactNode>;
97
+ "aria-activedescendant"?: string | undefined | undefined;
98
+ "aria-atomic"?: (boolean | "false" | "true") | undefined;
99
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
100
+ "aria-braillelabel"?: string | undefined | undefined;
101
+ "aria-brailleroledescription"?: string | undefined | undefined;
102
+ "aria-busy"?: (boolean | "false" | "true") | undefined;
103
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
104
+ "aria-colcount"?: number | undefined | undefined;
105
+ "aria-colindex"?: number | undefined | undefined;
106
+ "aria-colindextext"?: string | undefined | undefined;
107
+ "aria-colspan"?: number | undefined | undefined;
108
+ "aria-controls"?: string | undefined | undefined;
109
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
110
+ "aria-describedby"?: string | undefined | undefined;
111
+ "aria-description"?: string | undefined | undefined;
112
+ "aria-details"?: string | undefined | undefined;
113
+ "aria-disabled"?: (boolean | "false" | "true") | undefined;
114
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
115
+ "aria-errormessage"?: string | undefined | undefined;
116
+ "aria-expanded"?: (boolean | "false" | "true") | undefined;
117
+ "aria-flowto"?: string | undefined | undefined;
118
+ "aria-grabbed"?: (boolean | "false" | "true") | undefined;
119
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
120
+ "aria-hidden"?: (boolean | "false" | "true") | undefined;
121
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
122
+ "aria-keyshortcuts"?: string | undefined | undefined;
123
+ "aria-label"?: string | undefined | undefined;
124
+ "aria-labelledby"?: string | undefined | undefined;
125
+ "aria-level"?: number | undefined | undefined;
126
+ "aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
127
+ "aria-modal"?: (boolean | "false" | "true") | undefined;
128
+ "aria-multiline"?: (boolean | "false" | "true") | undefined;
129
+ "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
130
+ "aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
131
+ "aria-owns"?: string | undefined | undefined;
132
+ "aria-placeholder"?: string | undefined | undefined;
133
+ "aria-posinset"?: number | undefined | undefined;
134
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
135
+ "aria-readonly"?: (boolean | "false" | "true") | undefined;
136
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
137
+ "aria-required"?: (boolean | "false" | "true") | undefined;
138
+ "aria-roledescription"?: string | undefined | undefined;
139
+ "aria-rowcount"?: number | undefined | undefined;
140
+ "aria-rowindex"?: number | undefined | undefined;
141
+ "aria-rowindextext"?: string | undefined | undefined;
142
+ "aria-rowspan"?: number | undefined | undefined;
143
+ "aria-selected"?: (boolean | "false" | "true") | undefined;
144
+ "aria-setsize"?: number | undefined | undefined;
145
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
146
+ "aria-valuemax"?: number | undefined | undefined;
147
+ "aria-valuemin"?: number | undefined | undefined;
148
+ "aria-valuenow"?: number | undefined | undefined;
149
+ "aria-valuetext"?: string | undefined | undefined;
150
+ dangerouslySetInnerHTML?: {
151
+ __html: string | TrustedHTML;
152
+ } | undefined | undefined;
153
+ onCopy?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
154
+ onCopyCapture?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
155
+ onCut?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
156
+ onCutCapture?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
157
+ onPaste?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
158
+ onPasteCapture?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
159
+ onCompositionEnd?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
160
+ onCompositionEndCapture?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
161
+ onCompositionStart?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
162
+ onCompositionStartCapture?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
163
+ onCompositionUpdate?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
164
+ onCompositionUpdateCapture?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
165
+ onFocus?: import('react').FocusEventHandler<HTMLInputElement> | undefined;
166
+ onFocusCapture?: import('react').FocusEventHandler<HTMLInputElement> | undefined;
167
+ onBlur?: import('react').FocusEventHandler<HTMLInputElement> | undefined;
168
+ onBlurCapture?: import('react').FocusEventHandler<HTMLInputElement> | undefined;
169
+ onChangeCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
170
+ onBeforeInput?: import('react').FormEventHandler<HTMLInputElement> | undefined;
171
+ onBeforeInputCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
172
+ onInput?: import('react').FormEventHandler<HTMLInputElement> | undefined;
173
+ onInputCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
174
+ onReset?: import('react').FormEventHandler<HTMLInputElement> | undefined;
175
+ onResetCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
176
+ onSubmit?: import('react').FormEventHandler<HTMLInputElement> | undefined;
177
+ onSubmitCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
178
+ onInvalid?: import('react').FormEventHandler<HTMLInputElement> | undefined;
179
+ onInvalidCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
180
+ onLoad?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
181
+ onLoadCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
182
+ onError?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
183
+ onErrorCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
184
+ onKeyDown?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
185
+ onKeyDownCapture?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
186
+ onKeyPress?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
187
+ onKeyPressCapture?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
188
+ onKeyUp?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
189
+ onKeyUpCapture?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
190
+ onAbort?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
191
+ onAbortCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
192
+ onCanPlay?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
193
+ onCanPlayCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
194
+ onCanPlayThrough?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
195
+ onCanPlayThroughCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
196
+ onDurationChange?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
197
+ onDurationChangeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
198
+ onEmptied?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
199
+ onEmptiedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
200
+ onEncrypted?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
201
+ onEncryptedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
202
+ onEnded?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
203
+ onEndedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
204
+ onLoadedData?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
205
+ onLoadedDataCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
206
+ onLoadedMetadata?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
207
+ onLoadedMetadataCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
208
+ onLoadStart?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
209
+ onLoadStartCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
210
+ onPause?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
211
+ onPauseCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
212
+ onPlay?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
213
+ onPlayCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
214
+ onPlaying?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
215
+ onPlayingCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
216
+ onProgress?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
217
+ onProgressCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
218
+ onRateChange?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
219
+ onRateChangeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
220
+ onResize?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
221
+ onResizeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
222
+ onSeeked?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
223
+ onSeekedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
224
+ onSeeking?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
225
+ onSeekingCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
226
+ onStalled?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
227
+ onStalledCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
228
+ onSuspend?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
229
+ onSuspendCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
230
+ onTimeUpdate?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
231
+ onTimeUpdateCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
232
+ onVolumeChange?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
233
+ onVolumeChangeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
234
+ onWaiting?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
235
+ onWaitingCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
236
+ onAuxClick?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
237
+ onAuxClickCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
238
+ onClick?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
239
+ onClickCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
240
+ onContextMenu?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
241
+ onContextMenuCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
242
+ onDoubleClick?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
243
+ onDoubleClickCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
244
+ onDrag?: import('react').DragEventHandler<HTMLInputElement> | undefined;
245
+ onDragCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
246
+ onDragEnd?: import('react').DragEventHandler<HTMLInputElement> | undefined;
247
+ onDragEndCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
248
+ onDragEnter?: import('react').DragEventHandler<HTMLInputElement> | undefined;
249
+ onDragEnterCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
250
+ onDragExit?: import('react').DragEventHandler<HTMLInputElement> | undefined;
251
+ onDragExitCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
252
+ onDragLeave?: import('react').DragEventHandler<HTMLInputElement> | undefined;
253
+ onDragLeaveCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
254
+ onDragOver?: import('react').DragEventHandler<HTMLInputElement> | undefined;
255
+ onDragOverCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
256
+ onDragStart?: import('react').DragEventHandler<HTMLInputElement> | undefined;
257
+ onDragStartCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
258
+ onDrop?: import('react').DragEventHandler<HTMLInputElement> | undefined;
259
+ onDropCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
260
+ onMouseDown?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
261
+ onMouseDownCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
262
+ onMouseEnter?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
263
+ onMouseLeave?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
264
+ onMouseMove?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
265
+ onMouseMoveCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
266
+ onMouseOut?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
267
+ onMouseOutCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
268
+ onMouseOver?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
269
+ onMouseOverCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
270
+ onMouseUp?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
271
+ onMouseUpCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
272
+ onSelect?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
273
+ onSelectCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
274
+ onTouchCancel?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
275
+ onTouchCancelCapture?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
276
+ onTouchEnd?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
277
+ onTouchEndCapture?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
278
+ onTouchMove?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
279
+ onTouchMoveCapture?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
280
+ onTouchStart?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
281
+ onTouchStartCapture?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
282
+ onPointerDown?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
283
+ onPointerDownCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
284
+ onPointerMove?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
285
+ onPointerMoveCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
286
+ onPointerUp?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
287
+ onPointerUpCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
288
+ onPointerCancel?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
289
+ onPointerCancelCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
290
+ onPointerEnter?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
291
+ onPointerLeave?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
292
+ onPointerOver?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
293
+ onPointerOverCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
294
+ onPointerOut?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
295
+ onPointerOutCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
296
+ onGotPointerCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
297
+ onGotPointerCaptureCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
298
+ onLostPointerCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
299
+ onLostPointerCaptureCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
300
+ onScroll?: import('react').UIEventHandler<HTMLInputElement> | undefined;
301
+ onScrollCapture?: import('react').UIEventHandler<HTMLInputElement> | undefined;
302
+ onWheel?: import('react').WheelEventHandler<HTMLInputElement> | undefined;
303
+ onWheelCapture?: import('react').WheelEventHandler<HTMLInputElement> | undefined;
304
+ onAnimationStart?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
305
+ onAnimationStartCapture?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
306
+ onAnimationEnd?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
307
+ onAnimationEndCapture?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
308
+ onAnimationIteration?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
309
+ onAnimationIterationCapture?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
310
+ onTransitionEnd?: import('react').TransitionEventHandler<HTMLInputElement> | undefined;
311
+ onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLInputElement> | undefined;
312
+ ref?: import('react').LegacyRef<HTMLInputElement> | undefined;
313
+ key?: import('react').Key | null | undefined;
314
+ }>) => import("react/jsx-runtime").JSX.Element)[];
315
+ args: {
316
+ "aria-label": string;
317
+ placeholder: string;
318
+ error: false;
319
+ disabled: false;
320
+ onChange: import('storybook/test').Mock<(...args: any[]) => any>;
321
+ };
322
+ };
4
323
  export default meta;
5
- type Story = StoryObj<typeof Input>;
324
+ type Story = StoryObj<typeof meta>;
6
325
  export declare const Default: Story;
7
- export declare const WithLabel: Story;
8
- export declare const Date: Story;
9
- export declare const ErrorState: Story;
10
- export declare const RequiredInsideField: Story;
11
- export declare const Disabled: Story;
326
+ export declare const Types: Story;
327
+ export declare const States: Story;
328
+ export declare const LongContent: Story;
12
329
  export declare const WithEndAdornment: Story;
330
+ export declare const Controlled: Story;
331
+ export declare const InsideField: Story;
13
332
  //# sourceMappingURL=Input.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.stories.tsx"],"names":[],"mappings":"AAAA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B,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAmBnB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAcpB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAKzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAa9B,CAAC;AAsBF,eAAO,MAAM,UAAU,EAAE,KAGxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAmCzB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { IconDefinition } from '../Icon';
3
+ /** Shape of the legend marker, matching the chart series it labels. */
3
4
  export declare enum ELegendIconType {
4
5
  GRADIENT = "gradient",
5
6
  DASHED = "dashed",
@@ -7,11 +8,13 @@ export declare enum ELegendIconType {
7
8
  LINE = "line"
8
9
  }
9
10
  interface LegendIconProps extends React.HTMLAttributes<HTMLSpanElement> {
11
+ /** Marker shape. Ignored when `icon` is given. */
10
12
  iconType: ELegendIconType;
13
+ /** Any CSS color, including tokens such as `var(--color-blue-100)`. */
11
14
  color: string;
12
- /** Ícone de `@shape/shape-ui/icons/<nome>`. */
15
+ /** Icon from `@shape/shape-ui/icons/<name>`, rendered instead of the `iconType` marker. */
13
16
  icon?: IconDefinition;
14
17
  }
15
- export declare const LegendIcon: ({ iconType, color, icon, ...props }: LegendIconProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const LegendIcon: React.ForwardRefExoticComponent<LegendIconProps & React.RefAttributes<HTMLSpanElement>>;
16
19
  export {};
17
20
  //# sourceMappingURL=LegendIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LegendIcon.d.ts","sourceRoot":"","sources":["../../../src/components/LegendIcon/LegendIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAIpD,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,UAAU,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IACrE,QAAQ,EAAE,eAAe,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB;AAED,eAAO,MAAM,UAAU,wCAKpB,eAAe,4CA6CjB,CAAC"}
1
+ {"version":3,"file":"LegendIcon.d.ts","sourceRoot":"","sources":["../../../src/components/LegendIcon/LegendIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAEpD,uEAAuE;AACvE,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,UAAU,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IACrE,kDAAkD;IAClD,QAAQ,EAAE,eAAe,CAAC;IAC1B,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAC;IACd,2FAA2F;IAC3F,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB;AAED,eAAO,MAAM,UAAU,yFA4DtB,CAAC"}
@@ -3,9 +3,7 @@ import { LegendIcon } from './index';
3
3
  declare const meta: Meta<typeof LegendIcon>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof LegendIcon>;
6
- export declare const Line: Story;
7
- export declare const Dashed: Story;
8
- export declare const Gradient: Story;
9
- export declare const AllTypes: Story;
10
- export declare const MultipleColors: Story;
6
+ export declare const Default: Story;
7
+ export declare const Variants: Story;
8
+ export declare const Colors: Story;
11
9
  //# sourceMappingURL=LegendIcon.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LegendIcon.stories.d.ts","sourceRoot":"","sources":["../../../src/components/LegendIcon/LegendIcon.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAmB,MAAM,SAAS,CAAC;AAStD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAiBjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,IAAI,EAAE,KAKlB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAKpB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAWtB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAa5B,CAAC"}
1
+ {"version":3,"file":"LegendIcon.stories.d.ts","sourceRoot":"","sources":["../../../src/components/LegendIcon/LegendIcon.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAmB,MAAM,SAAS,CAAC;AAUtD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAiBjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,QAAQ,EAAE,KAetB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAapB,CAAC"}
@@ -1,39 +1,67 @@
1
1
  import { default as React } from 'react';
2
+ /** One product in the app selector. */
2
3
  export interface AppEntry {
4
+ /** Product identifier; used as the React key. */
3
5
  id: "lighthouse" | "aura" | "lumen" | "reef";
6
+ /** Product symbol shown before the label, e.g. `<AuraLogo />`. */
4
7
  logo: React.ReactNode;
8
+ /** `true` renders a link to `href`; `false` renders the entry greyed out and not clickable. */
5
9
  accessible: boolean;
10
+ /** Product name shown beside the logo. */
6
11
  label: string;
12
+ /** Where the entry links to when `accessible`. */
7
13
  href: string;
8
14
  }
15
+ /** First step: the user types an email. */
9
16
  export interface EmailStepProps {
17
+ /** Renders the email step. */
10
18
  variant: "email";
19
+ /** Current value of the email input. */
11
20
  email: string;
21
+ /** Called with the new value on every keystroke. */
12
22
  onEmailChange: (value: string) => void;
23
+ /** Enables the Continue button. The app decides what a valid email is. */
13
24
  isEmailValid: boolean;
25
+ /** Shows a spinner in the Continue button and disables it. */
14
26
  isLoading: boolean;
27
+ /** Error shown under the input, which is also marked invalid. */
15
28
  error?: "domain-not-found" | "idp-unavailable" | "network";
29
+ /** Called when the form is submitted (Continue button or Enter). */
16
30
  onContinue: () => void;
31
+ /** Link for "Contact support". Only `https:` and `mailto:` URLs are rendered. */
17
32
  contactSupportUrl?: string;
18
33
  }
34
+ /** Second step: the user types the password for `email`. */
19
35
  export interface PasswordStepProps {
36
+ /** Renders the password step. */
20
37
  variant: "password";
38
+ /** Email chosen in the first step, shown above the input. */
21
39
  email: string;
40
+ /** Current value of the password input. */
22
41
  password: string;
42
+ /** Called with the new value on every keystroke. */
23
43
  onPasswordChange: (value: string) => void;
44
+ /** Shows a spinner in the Sign in button and disables it. */
24
45
  isLoading: boolean;
46
+ /** Error shown under the input, which is also marked invalid. */
25
47
  error?: "invalid-credentials" | "idp-unavailable" | "network";
48
+ /** Called when the form is submitted (Sign in button or Enter). */
26
49
  onSignIn: () => void;
50
+ /** Link for "Contact support". Only `https:` and `mailto:` URLs are rendered. */
27
51
  contactSupportUrl?: string;
28
52
  }
53
+ /** After sign-in: the user picks a product. */
29
54
  export interface AppSelectorProps {
55
+ /** `"app-selector-403"` adds a "no access" heading, for when the requested app was denied. */
30
56
  variant: "app-selector" | "app-selector-403";
57
+ /** Products to list, in order. */
31
58
  apps: AppEntry[];
59
+ /** Link for "Contact support". Only `https:` and `mailto:` URLs are rendered. */
32
60
  contactSupportUrl?: string;
33
61
  }
34
- export type LoginScreenProps = EmailStepProps | PasswordStepProps | AppSelectorProps;
35
- export declare function LoginScreen(props: LoginScreenProps): import("react/jsx-runtime").JSX.Element;
36
- export declare namespace LoginScreen {
37
- var displayName: string;
38
- }
62
+ export type LoginScreenProps = (EmailStepProps | PasswordStepProps | AppSelectorProps) & {
63
+ /** Classes for the full-page root element. */
64
+ className?: string;
65
+ };
66
+ export declare const LoginScreen: React.ForwardRefExoticComponent<LoginScreenProps & React.RefAttributes<HTMLDivElement>>;
39
67
  //# sourceMappingURL=LoginScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoginScreen.d.ts","sourceRoot":"","sources":["../../../src/components/LoginScreen/LoginScreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAC7C,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,kBAAkB,GAAG,iBAAiB,GAAG,SAAS,CAAC;IAC3D,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE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@@ import { LoginScreen } from './LoginScreen';
3
3
  declare const meta: Meta<typeof LoginScreen>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof LoginScreen>;
6
+ export declare const Interactive: Story;
6
7
  export declare const EmailStepDefault: Story;
7
8
  export declare const EmailStepValid: Story;
8
9
  export declare const EmailStepLoading: Story;
@@ -12,7 +13,12 @@ export declare const EmailStepErrorNetwork: Story;
12
13
  export declare const PasswordStepDefault: Story;
13
14
  export declare const PasswordStepLoading: Story;
14
15
  export declare const PasswordStepErrorCredentials: Story;
16
+ export declare const PasswordStepErrorIdP: Story;
17
+ export declare const PasswordStepErrorNetwork: Story;
15
18
  export declare const AppSelectorDefault: Story;
16
19
  export declare const AppSelectorPartialAccess: Story;
20
+ export declare const AppSelectorEmpty: Story;
17
21
  export declare const AppSelector403: Story;
22
+ export declare const WithoutSupportLink: Story;
23
+ export declare const UnsafeSupportLink: Story;
18
24
  //# sourceMappingURL=LoginScreen.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoginScreen.stories.d.ts","sourceRoot":"","sources":["../../../src/components/LoginScreen/LoginScreen.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAqC5C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAalC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAM1C,eAAO,MAAM,gBAAgB,EAAE,KAU9B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAU5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAU9B,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAWlC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAW/B,CAAC;AAEF,eAAO,MAAM,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MAAM,kBAAkB,EAAE,KAGhC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,KAetC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAG9B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAY5B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAQhC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAgB/B,CAAC"}
@@ -1,18 +1,23 @@
1
1
  import * as React from "react";
2
2
  interface LogoBaseProps {
3
+ /** Name the logo stands for; builds the accessible name ("{name} logo"). Without it the name is "Logo". */
3
4
  logoString?: string;
5
+ /** Image URL. Nothing is rendered while it is empty. */
4
6
  src?: string;
7
+ /** CSS height of the image. @default "var(--size-logo-h)" */
5
8
  height?: string;
6
9
  /** Applied to the root element: the `<button>` when `onClick` is set, the `<img>` otherwise. */
7
10
  className?: string;
8
11
  }
9
12
  /** Renders the logo inside a `<button>`; `ref` points at the `<button>`. */
10
13
  export interface ClickableLogoProps extends LogoBaseProps {
14
+ /** Called when the logo is clicked. Setting it wraps the image in a `<button>`. */
11
15
  onClick: () => void;
12
16
  ref?: React.Ref<HTMLButtonElement>;
13
17
  }
14
18
  /** Renders a bare `<img>`; `ref` points at the `<img>`. */
15
19
  export interface StaticLogoProps extends LogoBaseProps {
20
+ /** Leave unset for a static `<img>`. */
16
21
  onClick?: undefined;
17
22
  ref?: React.Ref<HTMLImageElement>;
18
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../src/components/Logo/Logo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,UAAU,aAAa;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gGAAgG;IAChG,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,4EAA4E;AAC5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AG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;CACnC;AAED,KAAK,aAAa,GAAG;IACnB,CAAC,KAAK,EAAE,kBAAkB,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IACvD,CAAC,KAAK,EAAE,eAAe,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AA+CF,qGAAqG;AACrG,eAAO,MAAM,IAAI,EAA0B,aAAa,CAAC"}
@@ -1,9 +1,30 @@
1
- import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { Logo } from './index';
3
- declare const meta: Meta<typeof Logo>;
1
+ import { ComponentType } from 'react';
2
+ import { StoryObj } from '@storybook/react-vite';
3
+ import { StaticLogoProps } from './index';
4
+ type LogoArgs = Omit<StaticLogoProps, "onClick" | "ref"> & {
5
+ onClick?: () => void;
6
+ };
7
+ declare const meta: {
8
+ title: string;
9
+ component: ComponentType<LogoArgs>;
10
+ parameters: {
11
+ layout: string;
12
+ docs: {
13
+ description: {
14
+ component: string;
15
+ };
16
+ };
17
+ };
18
+ args: {
19
+ src: string;
20
+ logoString: string;
21
+ };
22
+ };
4
23
  export default meta;
5
- type Story = StoryObj<typeof Logo>;
6
- export declare const Shape: Story;
7
- export declare const ShapeCustomWidth: Story;
24
+ type Story = StoryObj<typeof meta>;
25
+ export declare const Default: Story;
26
+ export declare const CustomHeight: Story;
8
27
  export declare const Clickable: Story;
28
+ export declare const WithoutName: Story;
29
+ export declare const WithoutSource: Story;
9
30
  //# sourceMappingURL=Logo.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Logo/Logo.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAU3B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAE9B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC"}
1
+ {"version":3,"file":"Logo.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Logo/Logo.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAQ,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAQrD,KAAK,QAAQ,GAAG,IAAI,CAAC,eAAe,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG;IACzD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,IAAI;;eAEW,aAAa,CAAC,QAAQ,CAAC;;;;;;;;;;;;;CAWlB,CAAC;AAE3B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAoC,CAAC;AAEhE,eAAO,MAAM,SAAS,EAAE,KAOvB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAazB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAa3B,CAAC"}
@@ -1,15 +1,27 @@
1
1
  import { ReactNode } from 'react';
2
+ import * as React from "react";
2
3
  export type MetricCardProps = {
4
+ /** Called when the card is clicked. The card is always a `<button>`. */
3
5
  onClick?: () => void;
6
+ /** Text of a tooltip on an info icon next to the title. No icon when omitted. */
4
7
  tooltipText?: string;
8
+ /** Renders the card as the chosen one. */
9
+ selected?: boolean;
10
+ /** @deprecated Use `selected`. */
5
11
  isSelected?: boolean;
12
+ /** Tailwind width class of the card. @default "w-full" */
6
13
  width?: string;
14
+ className?: string;
15
+ /** What the card shows. */
7
16
  metric: {
17
+ /** Title on top; also builds the `data-testid` of each part. */
8
18
  title: string;
19
+ /** Value in the middle, already formatted by the consumer. */
9
20
  value: string | number;
21
+ /** Unit under the value. */
10
22
  unit: ReactNode;
11
23
  };
12
24
  };
13
25
  export declare const getTestId: (title: string, part?: "title" | "value" | "unit") => string;
14
- export declare const MetricCard: ({ tooltipText, isSelected, onClick, metric, width, }: MetricCardProps) => import("react/jsx-runtime").JSX.Element;
26
+ export declare const MetricCard: React.ForwardRefExoticComponent<MetricCardProps & React.RefAttributes<HTMLButtonElement>>;
15
27
  //# sourceMappingURL=MetricCard.d.ts.map