@spaced-out/ui-design-system 0.5.2 → 0.5.4

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 (216) hide show
  1. package/.cspell/custom-words.txt +6 -0
  2. package/.dependency-cruiser.cjs +22 -0
  3. package/.prettierrc +1 -0
  4. package/.storybook/public/depgraph.json +23818 -0
  5. package/.vscode/keybindings.json +7 -0
  6. package/.vscode/settings.json +6 -1
  7. package/CHANGELOG.md +20 -0
  8. package/cspell.json +1 -0
  9. package/lib/components/Accordion/Accordion.d.ts.map +1 -1
  10. package/lib/components/Accordion/Accordion.js +4 -4
  11. package/lib/components/Accordion/AccordionGroup.d.ts.map +1 -1
  12. package/lib/components/Accordion/AccordionGroup.js +1 -8
  13. package/lib/components/Badge/Badge.d.ts +5 -4
  14. package/lib/components/Badge/Badge.d.ts.map +1 -1
  15. package/lib/components/Banner/Banner.d.ts +3 -2
  16. package/lib/components/Banner/Banner.d.ts.map +1 -1
  17. package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts +3 -2
  18. package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts.map +1 -1
  19. package/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  20. package/lib/components/Button/Button.d.ts +8 -7
  21. package/lib/components/Button/Button.d.ts.map +1 -1
  22. package/lib/components/Button/Button.js +2 -6
  23. package/lib/components/ButtonDropdown/ButtonDropdown.d.ts +3 -2
  24. package/lib/components/ButtonDropdown/ButtonDropdown.d.ts.map +1 -1
  25. package/lib/components/ButtonDropdown/ButtonDropdown.stories.d.ts +1455 -35
  26. package/lib/components/ButtonDropdown/ButtonDropdown.stories.d.ts.map +1 -1
  27. package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts +3 -3
  28. package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts.map +1 -1
  29. package/lib/components/ButtonDropdown/SimpleButtonDropdown.stories.d.ts +2328 -56
  30. package/lib/components/ButtonDropdown/SimpleButtonDropdown.stories.d.ts.map +1 -1
  31. package/lib/components/ButtonTabs/ButtonTabDropdown.d.ts +3 -2
  32. package/lib/components/ButtonTabs/ButtonTabDropdown.d.ts.map +1 -1
  33. package/lib/components/Card/Card.d.ts +3 -2
  34. package/lib/components/Card/Card.d.ts.map +1 -1
  35. package/lib/components/Charts/ColumnChart/ColumnChart.d.ts +3 -2
  36. package/lib/components/Charts/ColumnChart/ColumnChart.d.ts.map +1 -1
  37. package/lib/components/Charts/ColumnChart/ColumnChart.js +2 -6
  38. package/lib/components/Charts/DonutChart/DonutChart.d.ts +3 -2
  39. package/lib/components/Charts/DonutChart/DonutChart.d.ts.map +1 -1
  40. package/lib/components/Charts/DonutChart/DonutChart.js +2 -6
  41. package/lib/components/Charts/FunnelChart/FunnelChart.d.ts +3 -2
  42. package/lib/components/Charts/FunnelChart/FunnelChart.d.ts.map +1 -1
  43. package/lib/components/Charts/FunnelChart/FunnelChart.js +2 -6
  44. package/lib/components/Charts/LineChart/LineChart.d.ts +3 -2
  45. package/lib/components/Charts/LineChart/LineChart.d.ts.map +1 -1
  46. package/lib/components/Charts/LineChart/LineChart.js +2 -6
  47. package/lib/components/Charts/SpiderChart/SpiderChart.d.ts +3 -2
  48. package/lib/components/Charts/SpiderChart/SpiderChart.d.ts.map +1 -1
  49. package/lib/components/ChatBubble/ChatBubble.d.ts.map +1 -1
  50. package/lib/components/ChatBubble/ChatBubble.js +1 -4
  51. package/lib/components/Checkbox/Checkbox.d.ts +3 -2
  52. package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
  53. package/lib/components/Checkbox/CheckboxGroup.stories.d.ts +3 -2
  54. package/lib/components/Checkbox/CheckboxGroup.stories.d.ts.map +1 -1
  55. package/lib/components/Chip/Chip.d.ts +7 -6
  56. package/lib/components/Chip/Chip.d.ts.map +1 -1
  57. package/lib/components/Combobox/Combobox.d.ts.map +1 -1
  58. package/lib/components/Combobox/Combobox.js +1 -3
  59. package/lib/components/Combobox/Combobox.stories.d.ts +4 -3
  60. package/lib/components/Combobox/Combobox.stories.d.ts.map +1 -1
  61. package/lib/components/DateRangePicker/DateRangeWrapper.d.ts.map +1 -1
  62. package/lib/components/DateRangePicker/DateRangeWrapper.js +1 -1
  63. package/lib/components/DateRangePicker/Day.d.ts.map +1 -1
  64. package/lib/components/DateRangePicker/Day.js +2 -7
  65. package/lib/components/Dialog/Dialog.d.ts +5 -4
  66. package/lib/components/Dialog/Dialog.d.ts.map +1 -1
  67. package/lib/components/Dropdown/Dropdown.d.ts +3 -2
  68. package/lib/components/Dropdown/Dropdown.d.ts.map +1 -1
  69. package/lib/components/Dropdown/Dropdown.js +1 -3
  70. package/lib/components/Dropdown/Dropdown.stories.d.ts.map +1 -1
  71. package/lib/components/Dropdown/SimpleDropdown.d.ts +3 -3
  72. package/lib/components/Dropdown/SimpleDropdown.d.ts.map +1 -1
  73. package/lib/components/Dropdown/SimpleDropdown.js +1 -3
  74. package/lib/components/FileUpload/FileUpload.d.ts +3 -2
  75. package/lib/components/FileUpload/FileUpload.d.ts.map +1 -1
  76. package/lib/components/FileUpload/FileUpload.js +0 -1
  77. package/lib/components/FilterButtonOverlay/FilterButtonOverlay.d.ts +3 -2
  78. package/lib/components/FilterButtonOverlay/FilterButtonOverlay.d.ts.map +1 -1
  79. package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts +3 -2
  80. package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts.map +1 -1
  81. package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.stories.d.ts.map +1 -1
  82. package/lib/components/Icon/ClickableIcon.d.ts +3 -2
  83. package/lib/components/Icon/ClickableIcon.d.ts.map +1 -1
  84. package/lib/components/Icon/ClickableIcon.js +2 -3
  85. package/lib/components/Icon/SemanticIcon.d.ts +3 -2
  86. package/lib/components/Icon/SemanticIcon.d.ts.map +1 -1
  87. package/lib/components/InContextAlert/InContextAlert.d.ts +3 -2
  88. package/lib/components/InContextAlert/InContextAlert.d.ts.map +1 -1
  89. package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.d.ts +3 -2
  90. package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.d.ts.map +1 -1
  91. package/lib/components/InlineDropdown/InlineDropdown.d.ts +3 -2
  92. package/lib/components/InlineDropdown/InlineDropdown.d.ts.map +1 -1
  93. package/lib/components/InlineDropdown/InlineDropdown.stories.d.ts +873 -21
  94. package/lib/components/InlineDropdown/InlineDropdown.stories.d.ts.map +1 -1
  95. package/lib/components/InlineDropdown/SimpleInlineDropdown.d.ts +3 -3
  96. package/lib/components/InlineDropdown/SimpleInlineDropdown.d.ts.map +1 -1
  97. package/lib/components/InlineDropdown/SimpleInlineDropdown.js +1 -0
  98. package/lib/components/InlineDropdown/SimpleInlineDropdown.stories.d.ts +1746 -42
  99. package/lib/components/InlineDropdown/SimpleInlineDropdown.stories.d.ts.map +1 -1
  100. package/lib/components/Input/Input.d.ts +3 -2
  101. package/lib/components/Input/Input.d.ts.map +1 -1
  102. package/lib/components/Link/Link.d.ts +5 -4
  103. package/lib/components/Link/Link.d.ts.map +1 -1
  104. package/lib/components/Link/Link.js +1 -3
  105. package/lib/components/Menu/Menu.d.ts +3 -2
  106. package/lib/components/Menu/Menu.d.ts.map +1 -1
  107. package/lib/components/Menu/MenuOptionButton.d.ts +5 -3
  108. package/lib/components/Menu/MenuOptionButton.d.ts.map +1 -1
  109. package/lib/components/Menu/MenuOptionButton.js +1 -5
  110. package/lib/components/Modal/Modal.d.ts +3 -2
  111. package/lib/components/Modal/Modal.d.ts.map +1 -1
  112. package/lib/components/Notification/Notification.d.ts +3 -2
  113. package/lib/components/Notification/Notification.d.ts.map +1 -1
  114. package/lib/components/OptionButton/OptionButton.d.ts +3 -2
  115. package/lib/components/OptionButton/OptionButton.d.ts.map +1 -1
  116. package/lib/components/OptionButton/OptionButton.stories.d.ts.map +1 -1
  117. package/lib/components/OptionButton/SimpleOptionButton.d.ts +3 -3
  118. package/lib/components/OptionButton/SimpleOptionButton.d.ts.map +1 -1
  119. package/lib/components/OptionButton/SimpleOptionButton.stories.d.ts +1164 -28
  120. package/lib/components/OptionButton/SimpleOptionButton.stories.d.ts.map +1 -1
  121. package/lib/components/Pagination/Pagination.d.ts +9 -5
  122. package/lib/components/Pagination/Pagination.d.ts.map +1 -1
  123. package/lib/components/Pagination/Pagination.js +1 -3
  124. package/lib/components/Pagination/Pagination.stories.d.ts +9 -1
  125. package/lib/components/Pagination/Pagination.stories.d.ts.map +1 -1
  126. package/lib/components/Panel/Panel.d.ts +3 -2
  127. package/lib/components/Panel/Panel.d.ts.map +1 -1
  128. package/lib/components/PromptChip/PromptChip.d.ts.map +1 -1
  129. package/lib/components/PromptChip/PromptChip.js +2 -6
  130. package/lib/components/PromptInput/PromptInput.d.ts.map +1 -1
  131. package/lib/components/PromptInput/PromptInput.js +1 -3
  132. package/lib/components/PromptInput/PromptInput.stories.d.ts.map +1 -1
  133. package/lib/components/RadioButton/RadioButton.d.ts +3 -2
  134. package/lib/components/RadioButton/RadioButton.d.ts.map +1 -1
  135. package/lib/components/RadioButton/RadioGroup.stories.d.ts.map +1 -1
  136. package/lib/components/Rating/Rating.d.ts.map +1 -1
  137. package/lib/components/Rating/Rating.js +3 -10
  138. package/lib/components/SearchInput/SearchInput.d.ts +3 -2
  139. package/lib/components/SearchInput/SearchInput.d.ts.map +1 -1
  140. package/lib/components/Stepper/Step/Step.d.ts.map +1 -1
  141. package/lib/components/Stepper/Step/Step.js +2 -7
  142. package/lib/components/SubMenu/SubMenu.stories.d.ts.map +1 -1
  143. package/lib/components/SubMenu/SubMenuGroup.d.ts.map +1 -1
  144. package/lib/components/SubMenu/SubMenuGroup.js +4 -4
  145. package/lib/components/SubMenu/SubMenuItem.d.ts +1 -0
  146. package/lib/components/SubMenu/SubMenuItem.d.ts.map +1 -1
  147. package/lib/components/Table/StaticTable.js +1 -1
  148. package/lib/components/Table/Table.d.ts.map +1 -1
  149. package/lib/components/Table/Table.js +3 -1
  150. package/lib/components/Table/Table.module.css +1 -0
  151. package/lib/components/Tabs/Tab/Tab.d.ts.map +1 -1
  152. package/lib/components/Tabs/Tab/Tab.js +1 -3
  153. package/lib/components/TextTile/TextTile.d.ts.map +1 -1
  154. package/lib/components/Textarea/Textarea.d.ts +3 -2
  155. package/lib/components/Textarea/Textarea.d.ts.map +1 -1
  156. package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts.map +1 -1
  157. package/lib/components/Timeline/TimelineItem/TimelineItem.js +1 -3
  158. package/lib/components/Toast/ToastContainer.d.ts.map +1 -1
  159. package/lib/components/TokenListInput/TokenListInput.d.ts.map +1 -1
  160. package/lib/components/TokenListInput/TokenListInput.stories.d.ts +3 -2
  161. package/lib/components/TokenListInput/TokenListInput.stories.d.ts.map +1 -1
  162. package/lib/components/Tooltip/Tooltip.d.ts +3 -2
  163. package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
  164. package/lib/components/Typeahead/SimpleTypeahead.d.ts +4 -3
  165. package/lib/components/Typeahead/SimpleTypeahead.d.ts.map +1 -1
  166. package/lib/components/Typeahead/SimpleTypeahead.stories.d.ts.map +1 -1
  167. package/lib/components/Typeahead/Typeahead.d.ts +5 -4
  168. package/lib/components/Typeahead/Typeahead.d.ts.map +1 -1
  169. package/lib/components/Typeahead/Typeahead.js +3 -7
  170. package/lib/components/Typeahead/Typeahead.stories.d.ts.map +1 -1
  171. package/lib/components/WeekdayPicker/WeekdayPicker.d.ts +1 -0
  172. package/lib/components/WeekdayPicker/WeekdayPicker.d.ts.map +1 -1
  173. package/lib/components/WeekdayPicker/WeekdayPicker.js +9 -3
  174. package/lib/components/WeekdayPicker/WeekdayPicker.module.css +1 -6
  175. package/lib/devtools/DependencyGraph/DependencyGraph.stories.d.ts +19 -0
  176. package/lib/devtools/DependencyGraph/DependencyGraph.stories.d.ts.map +1 -0
  177. package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.d.ts +3 -3
  178. package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.d.ts.map +1 -1
  179. package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.js +5 -18
  180. package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.stories.d.ts.map +1 -1
  181. package/lib/hooks/useFileUpload/useFileUpload.d.ts +12 -8
  182. package/lib/hooks/useFileUpload/useFileUpload.d.ts.map +1 -1
  183. package/lib/hooks/useFileUpload/useFileUpload.js +2 -19
  184. package/lib/hooks/useFileUpload/useFileUpload.stories.d.ts.map +1 -1
  185. package/lib/hooks/useFilteredOptions/useFilteredOptions.d.ts +7 -3
  186. package/lib/hooks/useFilteredOptions/useFilteredOptions.d.ts.map +1 -1
  187. package/lib/hooks/useFilteredOptions/useFilteredOptions.js +2 -6
  188. package/lib/hooks/useInputState/useInputState.js +1 -3
  189. package/lib/hooks/useMountTransition/index.d.ts.map +1 -1
  190. package/lib/hooks/useMountTransition/index.js +0 -2
  191. package/lib/hooks/usePagination/usePagination.d.ts +1 -1
  192. package/lib/hooks/usePagination/usePagination.d.ts.map +1 -1
  193. package/lib/hooks/usePagination/usePagination.js +0 -3
  194. package/lib/hooks/usePagination/usePagination.stories.d.ts +1 -1
  195. package/lib/hooks/useResizeObserver/useResizeObserver.d.ts +1 -1
  196. package/lib/hooks/useResizeObserver/useResizeObserver.d.ts.map +1 -1
  197. package/lib/hooks/useResizeObserver/useResizeObserver.js +2 -5
  198. package/lib/hooks/useToastPortal/useToastPortal.d.ts.map +1 -1
  199. package/lib/hooks/useToastPortal/useToastPortal.js +0 -4
  200. package/lib/hooks/useToggle/useToggle.stories.d.ts.map +1 -1
  201. package/lib/types/date-range-picker.d.ts +3 -2
  202. package/lib/types/date-range-picker.d.ts.map +1 -1
  203. package/lib/types/index.d.ts +1 -0
  204. package/lib/types/index.d.ts.map +1 -1
  205. package/lib/types/index.js +11 -0
  206. package/lib/types/toast.d.ts +3 -2
  207. package/lib/types/toast.d.ts.map +1 -1
  208. package/lib/types/utils.d.ts +101 -0
  209. package/lib/types/utils.d.ts.map +1 -0
  210. package/lib/types/utils.js +5 -0
  211. package/lib/utils/click-away/ClickAway.stories.d.ts.map +1 -1
  212. package/lib/utils/click-away/click-away.d.ts +11 -11
  213. package/lib/utils/click-away/click-away.d.ts.map +1 -1
  214. package/lib/utils/helpers/helpers.stories.d.ts.map +1 -1
  215. package/lib/utils/merge-refs/merge-refs.stories.d.ts.map +1 -1
  216. package/package.json +10 -2
@@ -14,14 +14,11 @@ function useResizeObserver() {
14
14
  if (!node) {
15
15
  return;
16
16
  }
17
-
18
- // @ts-ignore - TS2345 - Argument of type '([entry]: [any]) => void' is not assignable to parameter of type 'ResizeObserverCallback'.
19
- const resizeObserver = new ResizeObserver(_ref => {
20
- let [entry] = _ref;
17
+ const resizeObserver = new ResizeObserver(entries => {
18
+ const [entry] = entries;
21
19
  setHeight(entry.contentRect.height);
22
20
  });
23
21
  resizeObserver.observe(node);
24
- // @ts-ignore - TS2339 - Property 'getBoundingClientRect' does not exist on type 'never'.
25
22
  setHeight(node.getBoundingClientRect().height);
26
23
  return () => {
27
24
  resizeObserver.disconnect();
@@ -1 +1 @@
1
- {"version":3,"file":"useToastPortal.d.ts","sourceRoot":"","sources":["../../../src/hooks/useToastPortal/useToastPortal.ts"],"names":[],"mappings":"AAMA,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE;QACR,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;KAChC,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,eAE5B,cAAc,KAAG;IAClB,MAAM,EAAE,OAAO,CAAC;CAgBjB,CAAC"}
1
+ {"version":3,"file":"useToastPortal.d.ts","sourceRoot":"","sources":["../../../src/hooks/useToastPortal/useToastPortal.ts"],"names":[],"mappings":"AAMA,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE;QACR,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;KAChC,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,eAE5B,cAAc,KAAG;IAClB,MAAM,EAAE,OAAO,CAAC;CAcjB,CAAC"}
@@ -12,12 +12,8 @@ const useToastPortal = _ref => {
12
12
  toastRef
13
13
  } = _ref;
14
14
  const [loaded, setLoaded] = (0, _react.useState)(false);
15
-
16
- // @ts-ignore - TS2345 - Argument of type '() => () => HTMLDivElement' is not assignable to parameter of type 'EffectCallback'.
17
15
  (0, _react.useEffect)(() => {
18
16
  const div = document.createElement('div');
19
-
20
- // @ts-ignore - TS2540 - Cannot assign to 'style' because it is a read-only property.
21
17
  div.style = `position: fixed; bottom: ${_space.spaceMedium}; left: ${_space.spaceMedium}; z-index: ${_elevation.elevationToast};`;
22
18
  document.body.prepend(div);
23
19
  toastRef.current = div;
@@ -1 +1 @@
1
- {"version":3,"file":"useToggle.stories.d.ts","sourceRoot":"","sources":["../../../src/hooks/useToggle/useToggle.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;;;;;;;;;;;;;AAKtC,wBA2CE;AAEF,eAAO,MAAM,OAAO,QAAO,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAcxE,CAAC"}
1
+ {"version":3,"file":"useToggle.stories.d.ts","sourceRoot":"","sources":["../../../src/hooks/useToggle/useToggle.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;;;;;;;;;;;;;AAKtC,wBA2CE;AAEF,eAAO,MAAM,OAAO,QAAO,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAWxE,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { Over } from './utils';
1
2
  export type TimeUnit = 'years' | 'months' | 'days' | 'd' | 'M' | 'y';
2
3
  export type DateRange = {
3
4
  startDate?: string | null | undefined;
@@ -13,9 +14,9 @@ export type DateRangePickerError = {
13
14
  type: string;
14
15
  description: string;
15
16
  };
16
- export type DateRangeWithTimezone = DateRange & {
17
+ export type DateRangeWithTimezone = Over<DateRange, {
17
18
  startDateUTC?: string | null | undefined;
18
19
  endDateUTC?: string | null | undefined;
19
20
  timezone?: string;
20
- };
21
+ }>;
21
22
  //# sourceMappingURL=date-range-picker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-range-picker.d.ts","sourceRoot":"","sources":["../../src/types/date-range-picker.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AACrE,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACrC,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG;IACtC,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG;IAC9C,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"date-range-picker.d.ts","sourceRoot":"","sources":["../../src/types/date-range-picker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,SAAS,CAAC;AAGlC,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AACrE,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACrC,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG;IACtC,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,SAAS,EACT;IACE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CACF,CAAC"}
@@ -4,4 +4,5 @@ export * from './date-range-picker';
4
4
  export * from './menu';
5
5
  export * from './toast';
6
6
  export * from './typography';
7
+ export * from './utils';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
@@ -68,4 +68,15 @@ Object.keys(_typography).forEach(function (key) {
68
68
  return _typography[key];
69
69
  }
70
70
  });
71
+ });
72
+ var _utils = require("./utils");
73
+ Object.keys(_utils).forEach(function (key) {
74
+ if (key === "default" || key === "__esModule") return;
75
+ if (key in exports && exports[key] === _utils[key]) return;
76
+ Object.defineProperty(exports, key, {
77
+ enumerable: true,
78
+ get: function () {
79
+ return _utils[key];
80
+ }
81
+ });
71
82
  });
@@ -1,4 +1,5 @@
1
1
  import type * as React from 'react';
2
+ import type { Over } from './utils';
2
3
  export declare const POSITIONS: {
3
4
  readonly TOP_CENTER: "topCenter";
4
5
  readonly TOP_LEFT: "topLeft";
@@ -20,9 +21,9 @@ export type ToastOptions = {
20
21
  autoClose?: boolean;
21
22
  uniqueCode?: string | number;
22
23
  };
23
- export type optionTypes = ToastOptions & {
24
+ export type optionTypes = Over<ToastOptions, {
24
25
  id: string;
25
26
  key?: string;
26
- };
27
+ }>;
27
28
  export type callbackFuncTypes = (type: actionTypes, content: contentTypes, options: optionTypes) => void;
28
29
  //# sourceMappingURL=toast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../src/types/toast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,eAAO,MAAM,SAAS;;;;;;;CAOZ,CAAC;AAEX,eAAO,MAAM,OAAO;;;CAGV,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AACvE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO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,GAAG,IAAI,CAC5B,YAAY,EACZ;IACE,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CACF,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAC9B,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE,WAAW,KACjB,IAAI,CAAC"}
@@ -0,0 +1,101 @@
1
+ /**
2
+ * ------------------------------------------------------------------------
3
+ * Utility types for Flow-style spread + override semantics
4
+ * ------------------------------------------------------------------------
5
+ *
6
+ * WHY THIS Type EXISTS
7
+ * --------------------
8
+ * In Flow you can write:
9
+ *
10
+ * type B = { ...A, c: number };
11
+ *
12
+ * which means "take all of A's properties, but if there is a conflict,
13
+ * override with the new definition." In TypeScript, doing the naive
14
+ *
15
+ * type B = A & { c: number };
16
+ *
17
+ * will give you `c: string & number` (=> `never`) instead of the
18
+ * intended override. That leads to subtle bugs or unusable types.
19
+ *
20
+ * To avoid this pitfall and to set a clear team standard, we define
21
+ * short utilities here (`Over`, `OverAll`, etc.) that encode the
22
+ * intended semantics: **include everything from the left, right side
23
+ * wins on conflicts**.
24
+ *
25
+ *
26
+ * WHAT EACH UTILITY DOES
27
+ * ----------------------
28
+ *
29
+ * Over<T, R>
30
+ * - Include all properties from T
31
+ * - Add properties from R
32
+ * - For overlapping keys, R overrides T
33
+ *
34
+ * OverAll<T, [R1, R2, ...]>
35
+ * - Fold multiple overrides in sequence, left → right
36
+ * - Equivalent to: Over(Over(Over(T, R1), R2), ...)
37
+ * - Rightmost definition of a key always wins
38
+ *
39
+ * OverOnly<T, R>
40
+ * - Same as Over, but disallows adding brand-new keys
41
+ * - Useful when you want to enforce "true override only"
42
+ *
43
+ * OverAllOnly<T, [R1, R2, ...]>
44
+ * - Same as OverAll, but strict: every key in every R must
45
+ * already exist in T (or an earlier override)
46
+ *
47
+ *
48
+ * EXAMPLES
49
+ * --------
50
+ *
51
+ * // Base shape
52
+ * type A = { a: boolean; b: number; c: string };
53
+ *
54
+ * // Simple override
55
+ * type B = Over<A, { c: number }>;
56
+ * // => { a: boolean; b: number; c: number }
57
+ *
58
+ * // Multiple overrides
59
+ * type C = OverAll<A, [
60
+ * { c: number },
61
+ * { b: string },
62
+ * { d: Date }
63
+ * ]>;
64
+ * // => { a: boolean; c: number; b: string; d: Date }
65
+ *
66
+ * // Strict variant (no new keys allowed)
67
+ * type D = OverOnly<A, { c: number }>; // OK
68
+ * type E = OverOnly<A, { d: Date }>; // ERROR (d not in A)
69
+ *
70
+ *
71
+ * DESIGN SYSTEM USAGE
72
+ * -------------------
73
+ * - Use **Over** by default whenever you would otherwise write
74
+ * `A & { ... }`. This ensures right-biased override and prevents
75
+ * "never" bugs.
76
+ *
77
+ * - Use **OverAll** if you are combining 3+ prop bags or when you
78
+ * have `A & B & C & { ... }`.
79
+ *
80
+ * - Use **OverOnly / OverAllOnly** when you want to *forbid*
81
+ * introducing brand-new props, e.g. when extending a public API
82
+ * contract that must not grow new keys.
83
+ *
84
+ *
85
+ * TEAM STANDARD
86
+ * -------------
87
+ * ✅ Always prefer Over / OverAll for prop composition in DS components.
88
+ * ❌ Avoid raw `& { ... }` intersections for overrides — they will
89
+ * produce `never` on conflicts.
90
+ *
91
+ * This makes our type contracts predictable, Flow-like, and safer
92
+ * against accidental regressions when new keys are added upstream.
93
+ *
94
+ */
95
+ export type Over<T extends object, R extends object> = Omit<T, keyof R> & R;
96
+ export type OverAll<T extends object, Rs extends readonly object[]> = Rs extends [infer H extends object, ...infer Tail extends readonly object[]] ? OverAll<Over<T, H>, Tail> : T;
97
+ export type OverOnly<T extends object, R extends {
98
+ [K in keyof R & keyof T]: unknown;
99
+ } & object> = Omit<T, keyof R> & R;
100
+ export type OverAllOnly<T extends object, Rs extends readonly object[]> = Rs extends [infer H extends object, ...infer Tail extends readonly object[]] ? OverAllOnly<OverOnly<T, H>, Tail> : T;
101
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/types/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6FG;AAEH,MAAM,MAAM,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;AAE5E,MAAM,MAAM,OAAO,CACjB,CAAC,SAAS,MAAM,EAChB,EAAE,SAAS,SAAS,MAAM,EAAE,IAC1B,EAAE,SAAS,CAAC,MAAM,CAAC,SAAS,MAAM,EAAE,GAAG,MAAM,IAAI,SAAS,SAAS,MAAM,EAAE,CAAC,GAC5E,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,GACzB,CAAC,CAAC;AAGN,MAAM,MAAM,QAAQ,CAClB,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS;KAAE,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,OAAO;CAAC,GAAG,MAAM,IACpD,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;AAEzB,MAAM,MAAM,WAAW,CACrB,CAAC,SAAS,MAAM,EAChB,EAAE,SAAS,SAAS,MAAM,EAAE,IAC1B,EAAE,SAAS,CAAC,MAAM,CAAC,SAAS,MAAM,EAAE,GAAG,MAAM,IAAI,SAAS,SAAS,MAAM,EAAE,CAAC,GAC5E,WAAW,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,GACjC,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -1 +1 @@
1
- {"version":3,"file":"ClickAway.stories.d.ts","sourceRoot":"","sources":["../../../src/utils/click-away/ClickAway.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,wBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAM3D,wBA4IE;AAEF,eAAO,MAAM,UAAU;WAAU,cAAc;;;;CA0F9C,CAAC"}
1
+ {"version":3,"file":"ClickAway.stories.d.ts","sourceRoot":"","sources":["../../../src/utils/click-away/ClickAway.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,wBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAM3D,wBA4IE;AAEF,eAAO,MAAM,UAAU;WAAU,cAAc;;;;CA4F9C,CAAC"}
@@ -1,14 +1,14 @@
1
1
  import * as React from 'react';
2
- type BoundaryRefType<T> = React.RefObject<T | null>;
3
- type TriggerRefType<T> = React.RefObject<T | null>;
4
- export type ChildProps = {
2
+ type BoundaryRefType<T extends HTMLElement> = React.RefObject<T | null>;
3
+ type TriggerRefType<T extends HTMLElement> = React.RefObject<T | null>;
4
+ export type ChildProps<TTrigger extends HTMLElement = HTMLButtonElement, TBoundary extends HTMLElement = HTMLDivElement> = {
5
5
  onOpen: () => void;
6
6
  isOpen: boolean;
7
7
  height: number | null | undefined;
8
8
  pageBottom: number | null | undefined;
9
9
  clickAway: () => void;
10
- boundaryRef: BoundaryRefType<HTMLElement>;
11
- triggerRef: TriggerRefType<HTMLElement>;
10
+ boundaryRef: BoundaryRefType<TBoundary>;
11
+ triggerRef: TriggerRefType<TTrigger>;
12
12
  };
13
13
  export type ClickAwayRefType = {
14
14
  current: {
@@ -16,9 +16,9 @@ export type ClickAwayRefType = {
16
16
  forceOpen: () => void;
17
17
  } | null | undefined;
18
18
  } | null | undefined;
19
- export type ClickAwayProps = {
19
+ export type ClickAwayProps<TTrigger extends HTMLElement = HTMLButtonElement, TBoundary extends HTMLElement = HTMLDivElement> = {
20
20
  closeOnEscapeKeypress?: boolean;
21
- children: (props: ChildProps) => React.ReactNode;
21
+ children: (props: ChildProps<TTrigger, TBoundary>) => React.ReactNode;
22
22
  onChange?: (isOpen: boolean) => unknown;
23
23
  clickAwayRef?: ClickAwayRefType;
24
24
  /**
@@ -49,17 +49,17 @@ type ClickAwayState = {
49
49
  height: number | null | undefined;
50
50
  pageBottom: number | null | undefined;
51
51
  };
52
- export declare class ClickAway extends React.Component<ClickAwayProps, ClickAwayState> {
52
+ export declare class ClickAway<TTrigger extends HTMLElement = HTMLButtonElement, TBoundary extends HTMLElement = HTMLDivElement> extends React.Component<ClickAwayProps<TTrigger, TBoundary>, ClickAwayState> {
53
53
  static defaultProps: {
54
54
  containsNestedFloatingPortals?: boolean;
55
55
  closeOnEscapeKeypress?: boolean;
56
56
  };
57
57
  state: ClickAwayState;
58
58
  el: HTMLElement | null | undefined;
59
- boundaryRef: BoundaryRefType<HTMLElement>;
60
- triggerRef: TriggerRefType<HTMLElement>;
59
+ boundaryRef: BoundaryRefType<TBoundary>;
60
+ triggerRef: TriggerRefType<TTrigger>;
61
61
  componentDidMount(): void;
62
- componentDidUpdate(_prevProps: ClickAwayProps, prevState: ClickAwayState): void;
62
+ componentDidUpdate(_prevProps: Readonly<ClickAwayProps<TTrigger, TBoundary>>, prevState: Readonly<ClickAwayState>): void;
63
63
  componentWillUnmount(): void;
64
64
  render(): React.ReactNode;
65
65
  handleOpenClick: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"click-away.d.ts","sourceRoot":"","sources":["../../../src/utils/click-away/click-away.ts"],"names":[],"mappings":"AAAA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,WAAW,GAAG,cAAc,CAC9C,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,cAAc,CAAC;IAC5E,MAAM,CAAC,YAAY,EAAE;QACnB,6BAA6B,CAAC,EAAE,OAAO,CAAC;QACxC,qBAAqB,CAAC,EAAE,OAAO,CAAC;KACjC,CAGC;IAEF,KAAK,EAAE,cAAc,CAInB;IAEF,EAAE,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAQ;IAC1C,WAAW,EAAE,eAAe,CAAC,SAAS,CAAC,CAAgC;IACvE,UAAU,EAAE,cAAc,CAAC,QAAQ,CAAC,CAA+B;IAEnE,iBAAiB;IASjB,kBAAkB,CAChB,UAAU,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,EACzD,SAAS,EAAE,QAAQ,CAAC,cAAc,CAAC,GAClC,IAAI;IAyBP,oBAAoB;IAUpB,MAAM,IAAI,KAAK,CAAC,SAAS;IAoBzB,eAAe,EAAE,MAAM,IAAI,CAezB;IAEF,gBAAgB,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,IAAI,CAmCzC;IAEF,2BAA2B,EAAE,CAAC,GAAG,CAAC,EAAE,aAAa,KAAK,IAAI,CAMxD;IAEF,UAAU,EAAE,MAAM,IAAI,CAEpB;IAEF,cAAc,EAAE,MAAM,OAAO,CACmC;IAEhE,UAAU,IAAI,MAAM;CAKrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.stories.d.ts","sourceRoot":"","sources":["../../../src/utils/helpers/helpers.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;;;;;;;;;;;;AAWtC,wBA+BE;AAEF,eAAO,MAAM,OAAO,QAAO,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CA+ExE,CAAC"}
1
+ {"version":3,"file":"helpers.stories.d.ts","sourceRoot":"","sources":["../../../src/utils/helpers/helpers.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;;;;;;;;;;;;AAWtC,wBA+BE;AAEF,eAAO,MAAM,OAAO,QAAO,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAmExE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"merge-refs.stories.d.ts","sourceRoot":"","sources":["../../../src/utils/merge-refs/merge-refs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;;;;;;;;;;;;AAW9C,wBAqBE;AAEF,eAAO,MAAM,OAAO,QAAO,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAyDxE,CAAC"}
1
+ {"version":3,"file":"merge-refs.stories.d.ts","sourceRoot":"","sources":["../../../src/utils/merge-refs/merge-refs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;;;;;;;;;;;;AAW9C,wBAqBE;AAEF,eAAO,MAAM,OAAO,QAAO,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAqDxE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "Sense UI components library",
5
5
  "author": {
6
6
  "name": "Spaced Out"
@@ -40,7 +40,8 @@
40
40
  "fix:forwardref:check": "yarn flow && echo '✅ Type checking completed'",
41
41
  "fix:unused": "node scripts/fix-unused-variables-targeted.js",
42
42
  "fix:unused:all": "node scripts/fix-unused-variables.js",
43
- "fix:all": "yarn fix:forwardref && yarn fix:unused && yarn fix:forwardref:check"
43
+ "fix:all": "yarn fix:forwardref && yarn fix:unused && yarn fix:forwardref:check",
44
+ "dep:json": "depcruise \"src/**/*.{ts,tsx}\" --output-type json > .storybook/public/depgraph.json"
44
45
  },
45
46
  "keywords": [
46
47
  "React",
@@ -72,6 +73,7 @@
72
73
  "@babel/core": "^7.18.13",
73
74
  "@babel/eslint-parser": "^7.28.0",
74
75
  "@babel/eslint-plugin": "^7.25.9",
76
+ "@babel/parser": "^7.28.3",
75
77
  "@babel/preset-env": "^7.28.3",
76
78
  "@babel/preset-react": "^7.27.1",
77
79
  "@babel/preset-typescript": "^7.27.1",
@@ -101,6 +103,7 @@
101
103
  "@types/react-dom": "~19.1.7",
102
104
  "@types/react-window": "^1.8.8",
103
105
  "@types/standard-version": "~7.1.3",
106
+ "@xyflow/react": "^12.8.4",
104
107
  "all-contributors-cli": "^6.20.0",
105
108
  "babel-eslint": "^10.1.0",
106
109
  "babel-jest": "^28.1.3",
@@ -110,7 +113,10 @@
110
113
  "babel-preset-react-app": "^10.0.0",
111
114
  "chalk": "^5.0.1",
112
115
  "chromatic": "^6.11.4",
116
+ "classnames": "^2.5.1",
113
117
  "cspell": "^9.1.2",
118
+ "dependency-cruiser": "^17.0.1",
119
+ "elkjs": "^0.10.0",
114
120
  "eslint": "^9.9.0",
115
121
  "eslint-plugin-ft-flow": "^3.0.11",
116
122
  "eslint-plugin-import": "^2.32.0",
@@ -121,6 +127,7 @@
121
127
  "eslint-plugin-storybook": "^9.1.2",
122
128
  "eslint-plugin-unused-imports": "^4.1.4",
123
129
  "flow-bin": "^0.184.0",
130
+ "glob": "^11.0.3",
124
131
  "globals": "^16.3.0",
125
132
  "gulp": "^4.0.2",
126
133
  "gulp-babel": "^8.0.0",
@@ -134,6 +141,7 @@
134
141
  "prettier": "^2.5.1",
135
142
  "react": "^19.1.0",
136
143
  "react-dom": "^19.1.0",
144
+ "recast": "^0.23.11",
137
145
  "rimraf": "^3.0.2",
138
146
  "simple-git": "^3.12.0",
139
147
  "standard-version": "^9.5.0",