smarthr-ui 97.0.0 → 98.0.0

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 (208) hide show
  1. package/lib/components/AppHeader/components/common/AppLauncherFeatures.cjs +1 -1
  2. package/lib/components/AppHeader/components/common/AppLauncherFeatures.js +1 -1
  3. package/lib/components/AppHeader/components/common/AppLauncherSortDropdown.cjs +1 -1
  4. package/lib/components/AppHeader/components/common/AppLauncherSortDropdown.js +1 -1
  5. package/lib/components/AppHeader/components/desktop/AppLauncher.cjs +5 -5
  6. package/lib/components/AppHeader/components/desktop/AppLauncher.cjs.map +1 -1
  7. package/lib/components/AppHeader/components/desktop/AppLauncher.js +5 -5
  8. package/lib/components/AppHeader/components/desktop/AppLauncher.js.map +1 -1
  9. package/lib/components/AppHeader/components/desktop/DesktopHeader.cjs +1 -1
  10. package/lib/components/AppHeader/components/desktop/DesktopHeader.js +1 -1
  11. package/lib/components/AppHeader/components/desktop/ReleaseNotesDropdown.cjs +1 -1
  12. package/lib/components/AppHeader/components/desktop/ReleaseNotesDropdown.js +1 -1
  13. package/lib/components/AppHeader/components/desktop/UserInfo.cjs +1 -1
  14. package/lib/components/AppHeader/components/desktop/UserInfo.js +1 -1
  15. package/lib/components/AppHeader/components/mobile/AppLauncher.cjs +1 -1
  16. package/lib/components/AppHeader/components/mobile/AppLauncher.js +1 -1
  17. package/lib/components/AppHeader/components/mobile/AppLauncherFilterDropdown.cjs +1 -1
  18. package/lib/components/AppHeader/components/mobile/AppLauncherFilterDropdown.js +1 -1
  19. package/lib/components/AppHeader/components/mobile/Help.cjs +1 -1
  20. package/lib/components/AppHeader/components/mobile/Help.js +1 -1
  21. package/lib/components/AppHeader/components/mobile/LanguageSelector.cjs +1 -1
  22. package/lib/components/AppHeader/components/mobile/LanguageSelector.js +1 -1
  23. package/lib/components/AppHeader/components/mobile/Menu.cjs +1 -1
  24. package/lib/components/AppHeader/components/mobile/Menu.js +1 -1
  25. package/lib/components/AppHeader/components/mobile/MenuAccordion.cjs +1 -1
  26. package/lib/components/AppHeader/components/mobile/MenuAccordion.js +1 -1
  27. package/lib/components/AppHeader/components/mobile/MenuDialog.cjs +2 -2
  28. package/lib/components/AppHeader/components/mobile/MenuDialog.js +2 -2
  29. package/lib/components/AppHeader/components/mobile/MenuSubHeading.cjs +1 -1
  30. package/lib/components/AppHeader/components/mobile/MenuSubHeading.js +1 -1
  31. package/lib/components/AppHeader/components/mobile/ReleaseNote.cjs +1 -1
  32. package/lib/components/AppHeader/components/mobile/ReleaseNote.js +1 -1
  33. package/lib/components/AppHeader/components/mobile/UserInfo.cjs +2 -2
  34. package/lib/components/AppHeader/components/mobile/UserInfo.js +2 -2
  35. package/lib/components/Browser/Browser.cjs +11 -7
  36. package/lib/components/Browser/Browser.cjs.map +1 -1
  37. package/lib/components/Browser/Browser.js +12 -8
  38. package/lib/components/Browser/Browser.js.map +1 -1
  39. package/lib/components/Calendar/Calendar.cjs +1 -1
  40. package/lib/components/Calendar/Calendar.js +1 -1
  41. package/lib/components/Calendar/CalendarTable.cjs +1 -1
  42. package/lib/components/Calendar/CalendarTable.js +1 -1
  43. package/lib/components/Calendar/YearPicker.cjs +1 -1
  44. package/lib/components/Calendar/YearPicker.js +1 -1
  45. package/lib/components/Combobox/MultiCombobox/MultiCombobox.cjs +122 -134
  46. package/lib/components/Combobox/MultiCombobox/MultiCombobox.cjs.map +1 -1
  47. package/lib/components/Combobox/MultiCombobox/MultiCombobox.js +123 -135
  48. package/lib/components/Combobox/MultiCombobox/MultiCombobox.js.map +1 -1
  49. package/lib/components/Combobox/MultiCombobox/MultiSelectedItem.cjs +1 -1
  50. package/lib/components/Combobox/MultiCombobox/MultiSelectedItem.js +1 -1
  51. package/lib/components/Combobox/SingleCombobox/SingleCombobox.cjs +96 -46
  52. package/lib/components/Combobox/SingleCombobox/SingleCombobox.cjs.map +1 -1
  53. package/lib/components/Combobox/SingleCombobox/SingleCombobox.js +98 -48
  54. package/lib/components/Combobox/SingleCombobox/SingleCombobox.js.map +1 -1
  55. package/lib/components/Combobox/useListbox.cjs +1 -1
  56. package/lib/components/Combobox/useListbox.js +1 -1
  57. package/lib/components/Combobox/useOptions.cjs +3 -1
  58. package/lib/components/Combobox/useOptions.cjs.map +1 -1
  59. package/lib/components/Combobox/useOptions.js +4 -2
  60. package/lib/components/Combobox/useOptions.js.map +1 -1
  61. package/lib/components/Dialog/ControlledActionDialog/ActionDialogContentInner.cjs +3 -3
  62. package/lib/components/Dialog/ControlledActionDialog/ActionDialogContentInner.cjs.map +1 -1
  63. package/lib/components/Dialog/ControlledActionDialog/ActionDialogContentInner.js +3 -3
  64. package/lib/components/Dialog/ControlledActionDialog/ActionDialogContentInner.js.map +1 -1
  65. package/lib/components/Dialog/ControlledFormDialog/FormDialogContentInner.cjs +3 -3
  66. package/lib/components/Dialog/ControlledFormDialog/FormDialogContentInner.cjs.map +1 -1
  67. package/lib/components/Dialog/ControlledFormDialog/FormDialogContentInner.js +3 -3
  68. package/lib/components/Dialog/ControlledFormDialog/FormDialogContentInner.js.map +1 -1
  69. package/lib/components/Dialog/ControlledMessageDialog/MessageDialogContentInner.cjs +1 -1
  70. package/lib/components/Dialog/ControlledMessageDialog/MessageDialogContentInner.js +1 -1
  71. package/lib/components/Dialog/ControlledStepFormDialog/ControlledStepFormDialog.cjs +1 -1
  72. package/lib/components/Dialog/ControlledStepFormDialog/ControlledStepFormDialog.js +1 -1
  73. package/lib/components/Dialog/ControlledStepFormDialog/StepFormDialogContentInner.cjs +2 -2
  74. package/lib/components/Dialog/ControlledStepFormDialog/StepFormDialogContentInner.cjs.map +1 -1
  75. package/lib/components/Dialog/ControlledStepFormDialog/StepFormDialogContentInner.js +2 -2
  76. package/lib/components/Dialog/ControlledStepFormDialog/StepFormDialogContentInner.js.map +1 -1
  77. package/lib/components/Dialog/DialogContentResponseStatusMessage.cjs +3 -8
  78. package/lib/components/Dialog/DialogContentResponseStatusMessage.cjs.map +1 -1
  79. package/lib/components/Dialog/DialogContentResponseStatusMessage.d.ts +1 -1
  80. package/lib/components/Dialog/DialogContentResponseStatusMessage.js +3 -8
  81. package/lib/components/Dialog/DialogContentResponseStatusMessage.js.map +1 -1
  82. package/lib/components/Dialog/FocusTrap.cjs +4 -1
  83. package/lib/components/Dialog/FocusTrap.cjs.map +1 -1
  84. package/lib/components/Dialog/FocusTrap.js +4 -1
  85. package/lib/components/Dialog/FocusTrap.js.map +1 -1
  86. package/lib/components/Dialog/ModelessDialog/ModelessDialog.cjs +1 -1
  87. package/lib/components/Dialog/ModelessDialog/ModelessDialog.js +1 -1
  88. package/lib/components/DropZone/DropZone.cjs +1 -1
  89. package/lib/components/DropZone/DropZone.js +1 -1
  90. package/lib/components/Dropdown/Dropdown.cjs +36 -34
  91. package/lib/components/Dropdown/Dropdown.cjs.map +1 -1
  92. package/lib/components/Dropdown/Dropdown.js +37 -35
  93. package/lib/components/Dropdown/Dropdown.js.map +1 -1
  94. package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuButton.cjs +1 -1
  95. package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuButton.js +1 -1
  96. package/lib/components/Dropdown/FilterDropdown/FilterDropdown.cjs +3 -5
  97. package/lib/components/Dropdown/FilterDropdown/FilterDropdown.cjs.map +1 -1
  98. package/lib/components/Dropdown/FilterDropdown/FilterDropdown.d.ts +1 -1
  99. package/lib/components/Dropdown/FilterDropdown/FilterDropdown.js +3 -5
  100. package/lib/components/Dropdown/FilterDropdown/FilterDropdown.js.map +1 -1
  101. package/lib/components/Dropdown/SortDropdown/useSortDropdown.cjs +1 -1
  102. package/lib/components/Dropdown/SortDropdown/useSortDropdown.js +1 -1
  103. package/lib/components/ErrorScreen/AuthErrorScreen.cjs +1 -1
  104. package/lib/components/ErrorScreen/AuthErrorScreen.js +1 -1
  105. package/lib/components/ErrorScreen/ForbiddenErrorScreen.cjs +1 -1
  106. package/lib/components/ErrorScreen/ForbiddenErrorScreen.js +1 -1
  107. package/lib/components/ErrorScreen/NotFoundErrorScreen.cjs +1 -1
  108. package/lib/components/ErrorScreen/NotFoundErrorScreen.js +1 -1
  109. package/lib/components/ErrorScreen/UnauthorizedErrorScreen.cjs +1 -1
  110. package/lib/components/ErrorScreen/UnauthorizedErrorScreen.js +1 -1
  111. package/lib/components/FormControl/FormControl.cjs +2 -22
  112. package/lib/components/FormControl/FormControl.cjs.map +1 -1
  113. package/lib/components/FormControl/FormControl.js +2 -22
  114. package/lib/components/FormControl/FormControl.js.map +1 -1
  115. package/lib/components/Header/AppLauncher/AppLauncher.cjs +1 -1
  116. package/lib/components/Header/AppLauncher/AppLauncher.js +1 -1
  117. package/lib/components/Header/LanguageSwitcher/LanguageSwitcher.cjs +1 -1
  118. package/lib/components/Header/LanguageSwitcher/LanguageSwitcher.js +1 -1
  119. package/lib/components/Icon/OpenInNewTabIcon.cjs +1 -1
  120. package/lib/components/Icon/OpenInNewTabIcon.js +1 -1
  121. package/lib/components/InformationPanel/InformationPanel.cjs +1 -1
  122. package/lib/components/InformationPanel/InformationPanel.js +1 -1
  123. package/lib/components/Input/SearchInput/SearchInputIcon.cjs +1 -1
  124. package/lib/components/Input/SearchInput/SearchInputIcon.js +1 -1
  125. package/lib/components/InputFile/InputFileMultiplyAppendable.cjs +1 -1
  126. package/lib/components/InputFile/InputFileMultiplyAppendable.js +1 -1
  127. package/lib/components/InputFile/InputFileNative.cjs +1 -1
  128. package/lib/components/InputFile/InputFileNative.js +1 -1
  129. package/lib/components/Layout/Cluster/Cluster.cjs +0 -1
  130. package/lib/components/Layout/Cluster/Cluster.cjs.map +1 -1
  131. package/lib/components/Layout/Cluster/Cluster.js +0 -1
  132. package/lib/components/Layout/Cluster/Cluster.js.map +1 -1
  133. package/lib/components/Layout/Container/Container.cjs +1 -5
  134. package/lib/components/Layout/Container/Container.cjs.map +1 -1
  135. package/lib/components/Layout/Container/Container.js +1 -5
  136. package/lib/components/Layout/Container/Container.js.map +1 -1
  137. package/lib/components/Layout/Stack/Stack.cjs +22 -22
  138. package/lib/components/Layout/Stack/Stack.cjs.map +1 -1
  139. package/lib/components/Layout/Stack/Stack.js +22 -22
  140. package/lib/components/Layout/Stack/Stack.js.map +1 -1
  141. package/lib/components/Loader/LoaderSpinner.cjs +1 -1
  142. package/lib/components/Loader/LoaderSpinner.js +1 -1
  143. package/lib/components/Pagination/Pagination.cjs +1 -1
  144. package/lib/components/Pagination/Pagination.js +1 -1
  145. package/lib/components/Pagination/PaginationItemButton.cjs +1 -1
  146. package/lib/components/Pagination/PaginationItemButton.js +1 -1
  147. package/lib/components/SideNav/SideNav.cjs +3 -22
  148. package/lib/components/SideNav/SideNav.cjs.map +1 -1
  149. package/lib/components/SideNav/SideNav.d.ts +2 -9
  150. package/lib/components/SideNav/SideNav.js +4 -23
  151. package/lib/components/SideNav/SideNav.js.map +1 -1
  152. package/lib/components/SideNav/SideNavContext.cjs +11 -0
  153. package/lib/components/SideNav/SideNavContext.cjs.map +1 -0
  154. package/lib/components/SideNav/SideNavContext.d.ts +7 -0
  155. package/lib/components/SideNav/SideNavContext.js +8 -0
  156. package/lib/components/SideNav/SideNavContext.js.map +1 -0
  157. package/lib/components/SideNav/SideNavItemButton.cjs +12 -7
  158. package/lib/components/SideNav/SideNavItemButton.cjs.map +1 -1
  159. package/lib/components/SideNav/SideNavItemButton.d.ts +5 -11
  160. package/lib/components/SideNav/SideNavItemButton.js +12 -7
  161. package/lib/components/SideNav/SideNavItemButton.js.map +1 -1
  162. package/lib/components/Table/Th.cjs +2 -2
  163. package/lib/components/Table/Th.cjs.map +1 -1
  164. package/lib/components/Table/Th.d.ts +0 -2
  165. package/lib/components/Table/Th.js +2 -2
  166. package/lib/components/Table/Th.js.map +1 -1
  167. package/lib/components/Table/ThCheckbox.cjs +1 -1
  168. package/lib/components/Table/ThCheckbox.js +1 -1
  169. package/lib/components/Table/ThSortButton.cjs +5 -6
  170. package/lib/components/Table/ThSortButton.cjs.map +1 -1
  171. package/lib/components/Table/ThSortButton.d.ts +1 -6
  172. package/lib/components/Table/ThSortButton.js +5 -6
  173. package/lib/components/Table/ThSortButton.js.map +1 -1
  174. package/lib/components/WarekiPicker/WarekiPicker.cjs +1 -1
  175. package/lib/components/WarekiPicker/WarekiPicker.js +1 -1
  176. package/lib/index.cjs +1 -6
  177. package/lib/index.cjs.map +1 -1
  178. package/lib/index.d.ts +0 -1
  179. package/lib/index.js +1 -4
  180. package/lib/index.js.map +1 -1
  181. package/lib/intl/Localizer.cjs +5 -1
  182. package/lib/intl/Localizer.cjs.map +1 -1
  183. package/lib/intl/Localizer.d.ts +1 -1
  184. package/lib/intl/Localizer.js +5 -1
  185. package/lib/intl/Localizer.js.map +1 -1
  186. package/metadata.json +1 -1
  187. package/package.json +1 -1
  188. package/smarthr-ui.css +0 -94
  189. package/lib/hooks/useDecorators.cjs +0 -18
  190. package/lib/hooks/useDecorators.cjs.map +0 -1
  191. package/lib/hooks/useDecorators.d.ts +0 -6
  192. package/lib/hooks/useDecorators.js +0 -16
  193. package/lib/hooks/useDecorators.js.map +0 -1
  194. package/lib/hooks/useDevice/DeviceProvider.cjs +0 -37
  195. package/lib/hooks/useDevice/DeviceProvider.cjs.map +0 -1
  196. package/lib/hooks/useDevice/DeviceProvider.d.ts +0 -4
  197. package/lib/hooks/useDevice/DeviceProvider.js +0 -35
  198. package/lib/hooks/useDevice/DeviceProvider.js.map +0 -1
  199. package/lib/hooks/useDevice/index.cjs +0 -10
  200. package/lib/hooks/useDevice/index.cjs.map +0 -1
  201. package/lib/hooks/useDevice/index.d.ts +0 -2
  202. package/lib/hooks/useDevice/index.js +0 -3
  203. package/lib/hooks/useDevice/index.js.map +0 -1
  204. package/lib/hooks/useDevice/useDevice.cjs +0 -11
  205. package/lib/hooks/useDevice/useDevice.cjs.map +0 -1
  206. package/lib/hooks/useDevice/useDevice.d.ts +0 -4
  207. package/lib/hooks/useDevice/useDevice.js +0 -8
  208. package/lib/hooks/useDevice/useDevice.js.map +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "smarthr-ui",
3
3
  "description": "SmartHR ui components built with React.",
4
- "version": "97.0.0",
4
+ "version": "98.0.0",
5
5
  "author": "SmartHR-UI Team",
6
6
  "type": "module",
7
7
  "dependencies": {
package/smarthr-ui.css CHANGED
@@ -1936,84 +1936,6 @@ a {
1936
1936
  row-gap: 128px;
1937
1937
  }
1938
1938
 
1939
- .shr-space-y-0 > :not([hidden]) ~ :not([hidden]) {
1940
- --tw-space-y-reverse: 0;
1941
- margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
1942
- margin-bottom: calc(0px * var(--tw-space-y-reverse));
1943
- }
1944
-
1945
- .shr-space-y-0\.25 > :not([hidden]) ~ :not([hidden]) {
1946
- --tw-space-y-reverse: 0;
1947
- margin-top: calc(4px * calc(1 - var(--tw-space-y-reverse)));
1948
- margin-bottom: calc(4px * var(--tw-space-y-reverse));
1949
- }
1950
-
1951
- .shr-space-y-0\.5 > :not([hidden]) ~ :not([hidden]) {
1952
- --tw-space-y-reverse: 0;
1953
- margin-top: calc(8px * calc(1 - var(--tw-space-y-reverse)));
1954
- margin-bottom: calc(8px * var(--tw-space-y-reverse));
1955
- }
1956
-
1957
- .shr-space-y-0\.75 > :not([hidden]) ~ :not([hidden]) {
1958
- --tw-space-y-reverse: 0;
1959
- margin-top: calc(12px * calc(1 - var(--tw-space-y-reverse)));
1960
- margin-bottom: calc(12px * var(--tw-space-y-reverse));
1961
- }
1962
-
1963
- .shr-space-y-1 > :not([hidden]) ~ :not([hidden]) {
1964
- --tw-space-y-reverse: 0;
1965
- margin-top: calc(16px * calc(1 - var(--tw-space-y-reverse)));
1966
- margin-bottom: calc(16px * var(--tw-space-y-reverse));
1967
- }
1968
-
1969
- .shr-space-y-1\.25 > :not([hidden]) ~ :not([hidden]) {
1970
- --tw-space-y-reverse: 0;
1971
- margin-top: calc(20px * calc(1 - var(--tw-space-y-reverse)));
1972
- margin-bottom: calc(20px * var(--tw-space-y-reverse));
1973
- }
1974
-
1975
- .shr-space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
1976
- --tw-space-y-reverse: 0;
1977
- margin-top: calc(24px * calc(1 - var(--tw-space-y-reverse)));
1978
- margin-bottom: calc(24px * var(--tw-space-y-reverse));
1979
- }
1980
-
1981
- .shr-space-y-2 > :not([hidden]) ~ :not([hidden]) {
1982
- --tw-space-y-reverse: 0;
1983
- margin-top: calc(32px * calc(1 - var(--tw-space-y-reverse)));
1984
- margin-bottom: calc(32px * var(--tw-space-y-reverse));
1985
- }
1986
-
1987
- .shr-space-y-2\.5 > :not([hidden]) ~ :not([hidden]) {
1988
- --tw-space-y-reverse: 0;
1989
- margin-top: calc(40px * calc(1 - var(--tw-space-y-reverse)));
1990
- margin-bottom: calc(40px * var(--tw-space-y-reverse));
1991
- }
1992
-
1993
- .shr-space-y-3 > :not([hidden]) ~ :not([hidden]) {
1994
- --tw-space-y-reverse: 0;
1995
- margin-top: calc(48px * calc(1 - var(--tw-space-y-reverse)));
1996
- margin-bottom: calc(48px * var(--tw-space-y-reverse));
1997
- }
1998
-
1999
- .shr-space-y-3\.5 > :not([hidden]) ~ :not([hidden]) {
2000
- --tw-space-y-reverse: 0;
2001
- margin-top: calc(56px * calc(1 - var(--tw-space-y-reverse)));
2002
- margin-bottom: calc(56px * var(--tw-space-y-reverse));
2003
- }
2004
-
2005
- .shr-space-y-4 > :not([hidden]) ~ :not([hidden]) {
2006
- --tw-space-y-reverse: 0;
2007
- margin-top: calc(64px * calc(1 - var(--tw-space-y-reverse)));
2008
- margin-bottom: calc(64px * var(--tw-space-y-reverse));
2009
- }
2010
-
2011
- .shr-space-y-8 > :not([hidden]) ~ :not([hidden]) {
2012
- --tw-space-y-reverse: 0;
2013
- margin-top: calc(128px * calc(1 - var(--tw-space-y-reverse)));
2014
- margin-bottom: calc(128px * var(--tw-space-y-reverse));
2015
- }
2016
-
2017
1939
  .shr-divide-x > :not([hidden]) ~ :not([hidden]) {
2018
1940
  --tw-divide-x-reverse: 0;
2019
1941
  border-right-width: calc(1px * var(--tw-divide-x-reverse));
@@ -4162,10 +4084,6 @@ a {
4162
4084
  border-top-right-radius: 6px;
4163
4085
  }
4164
4086
 
4165
- .empty\:\!shr-mt-0:empty {
4166
- margin-top: 0 !important;
4167
- }
4168
-
4169
4087
  .empty\:shr-gap-0:empty {
4170
4088
  gap: 0;
4171
4089
  }
@@ -5228,14 +5146,6 @@ a {
5228
5146
  margin-bottom: auto;
5229
5147
  }
5230
5148
 
5231
- .\[\&\&\&\]\:shr--mt-0.\[\&\&\&\]\:shr--mt-0.\[\&\&\&\]\:shr--mt-0 {
5232
- margin-top: 0;
5233
- }
5234
-
5235
- .\[\&\&\&\]\:shr-mt-0.\[\&\&\&\]\:shr-mt-0.\[\&\&\&\]\:shr-mt-0 {
5236
- margin-top: 0;
5237
- }
5238
-
5239
5149
  .\[\&\&\&\]\:shr-whitespace-normal.\[\&\&\&\]\:shr-whitespace-normal.\[\&\&\&\]\:shr-whitespace-normal {
5240
5150
  white-space: normal;
5241
5151
  }
@@ -6444,10 +6354,6 @@ a {
6444
6354
  margin-top: 8px;
6445
6355
  }
6446
6356
 
6447
- :not([hidden]) ~ .\[\:not\(\[hidden\]\)_\~_\&\&\&\]\:shr-mt-1.\[\:not\(\[hidden\]\)_\~_\&\&\&\]\:shr-mt-1.\[\:not\(\[hidden\]\)_\~_\&\&\&\]\:shr-mt-1 {
6448
- margin-top: 16px;
6449
- }
6450
-
6451
6357
  [aria-pressed="true"]>.\[\[aria-pressed\=\"true\"\]\>\&\&\&\]\:shr-bg-main.\[\[aria-pressed\=\"true\"\]\>\&\&\&\]\:shr-bg-main.\[\[aria-pressed\=\"true\"\]\>\&\&\&\]\:shr-bg-main {
6452
6358
  --tw-bg-opacity: 1;
6453
6359
  background-color: rgb(0 119 199 / var(--tw-bg-opacity, 1));
@@ -1,18 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
-
5
- const useDecorators = (defaultTexts, decorators) => React.useMemo(() => {
6
- if (!decorators) {
7
- return defaultTexts;
8
- }
9
- const decorated = {};
10
- for (const key in defaultTexts) {
11
- const value = defaultTexts[key];
12
- decorated[key] = decorators[key]?.(value) || value;
13
- }
14
- return decorated;
15
- }, [decorators, defaultTexts]);
16
-
17
- exports.useDecorators = useDecorators;
18
- //# sourceMappingURL=useDecorators.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDecorators.cjs","sources":["../../src/hooks/useDecorators.ts"],"sourcesContent":["import { type ReactNode, useMemo } from 'react'\n\nexport type DecoratorsType<T extends string> = {\n [K in T]?: DecoratorType\n}\n\nexport type DecoratorType = (text: string) => ReactNode\n\nexport const useDecorators = <T extends string>(\n defaultTexts: { [K in T]: string },\n decorators: DecoratorsType<T> | undefined,\n) =>\n useMemo(() => {\n if (!decorators) {\n return defaultTexts\n }\n\n const decorated = {} as { [K in T]: ReactNode }\n\n for (const key in defaultTexts) {\n const value = defaultTexts[key]\n\n decorated[key] = decorators[key]?.(value) || value\n }\n\n return decorated\n }, [decorators, defaultTexts])\n"],"names":["useMemo"],"mappings":";;;;AAQO,MAAM,aAAa,GAAG,CAC3B,YAAkC,EAClC,UAAyC,KAEzCA,aAAO,CAAC,MAAK;IACX,IAAI,CAAC,UAAU,EAAE;AACf,QAAA,OAAO,YAAY;IACrB;IAEA,MAAM,SAAS,GAAG,EAA6B;AAE/C,IAAA,KAAK,MAAM,GAAG,IAAI,YAAY,EAAE;AAC9B,QAAA,MAAM,KAAK,GAAG,YAAY,CAAC,GAAG,CAAC;AAE/B,QAAA,SAAS,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,IAAI,KAAK;IACpD;AAEA,IAAA,OAAO,SAAS;AAClB,CAAC,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;;;;"}
@@ -1,6 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- export type DecoratorsType<T extends string> = {
3
- [K in T]?: DecoratorType;
4
- };
5
- export type DecoratorType = (text: string) => ReactNode;
6
- export declare const useDecorators: <T extends string>(defaultTexts: { [K_1 in T]: string; }, decorators: DecoratorsType<T> | undefined) => { [K in T]: ReactNode; };
@@ -1,16 +0,0 @@
1
- import { useMemo } from 'react';
2
-
3
- const useDecorators = (defaultTexts, decorators) => useMemo(() => {
4
- if (!decorators) {
5
- return defaultTexts;
6
- }
7
- const decorated = {};
8
- for (const key in defaultTexts) {
9
- const value = defaultTexts[key];
10
- decorated[key] = decorators[key]?.(value) || value;
11
- }
12
- return decorated;
13
- }, [decorators, defaultTexts]);
14
-
15
- export { useDecorators };
16
- //# sourceMappingURL=useDecorators.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDecorators.js","sources":["../../src/hooks/useDecorators.ts"],"sourcesContent":["import { type ReactNode, useMemo } from 'react'\n\nexport type DecoratorsType<T extends string> = {\n [K in T]?: DecoratorType\n}\n\nexport type DecoratorType = (text: string) => ReactNode\n\nexport const useDecorators = <T extends string>(\n defaultTexts: { [K in T]: string },\n decorators: DecoratorsType<T> | undefined,\n) =>\n useMemo(() => {\n if (!decorators) {\n return defaultTexts\n }\n\n const decorated = {} as { [K in T]: ReactNode }\n\n for (const key in defaultTexts) {\n const value = defaultTexts[key]\n\n decorated[key] = decorators[key]?.(value) || value\n }\n\n return decorated\n }, [decorators, defaultTexts])\n"],"names":[],"mappings":";;AAQO,MAAM,aAAa,GAAG,CAC3B,YAAkC,EAClC,UAAyC,KAEzC,OAAO,CAAC,MAAK;IACX,IAAI,CAAC,UAAU,EAAE;AACf,QAAA,OAAO,YAAY;IACrB;IAEA,MAAM,SAAS,GAAG,EAA6B;AAE/C,IAAA,KAAK,MAAM,GAAG,IAAI,YAAY,EAAE;AAC9B,QAAA,MAAM,KAAK,GAAG,YAAY,CAAC,GAAG,CAAC;AAE/B,QAAA,SAAS,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,IAAI,KAAK;IACpD;AAEA,IAAA,OAAO,SAAS;AAClB,CAAC,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;;;;"}
@@ -1,37 +0,0 @@
1
- "use client";
2
- 'use strict';
3
-
4
- var jsxRuntime = require('react/jsx-runtime');
5
- var React = require('react');
6
- require('../../themes/createSpacing.cjs');
7
- require('../../_virtual/index.cjs');
8
- require('../../_virtual/index2.cjs');
9
- require('../../themes/createColor.cjs');
10
- require('../../themes/createTextColor.cjs');
11
- require('styled-components');
12
- require('../../themes/createShadow/defaultShadow.cjs');
13
- require('../../themes/createWidth.cjs');
14
- var themes_createBreakpoint = require('../../themes/createBreakpoint.cjs');
15
- require('../../themes/createBackgroundColor.cjs');
16
- require('../../themes/createBorder.cjs');
17
- var hooks_useDevice_useDevice = require('./useDevice.cjs');
18
-
19
- const mediaQuery = {
20
- narrow: `(max-width: ${themes_createBreakpoint.defaultBreakpoint.SP}px)`,
21
- };
22
- const subscribe = (onStoreChange) => {
23
- const matchQueryList = matchMedia(mediaQuery.narrow);
24
- matchQueryList.addEventListener('change', onStoreChange);
25
- return () => {
26
- matchQueryList.removeEventListener('change', onStoreChange);
27
- };
28
- };
29
- const getSnapshot = () => matchMedia(mediaQuery.narrow).matches;
30
- const getServerSnapshot = () => null;
31
- const DeviceProvider = ({ children }) => {
32
- const isNarrowView = React.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
33
- return jsxRuntime.jsx(hooks_useDevice_useDevice.DeviceContext.Provider, { value: isNarrowView, children: children });
34
- };
35
-
36
- exports.DeviceProvider = DeviceProvider;
37
- //# sourceMappingURL=DeviceProvider.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeviceProvider.cjs","sources":["../../../src/hooks/useDevice/DeviceProvider.tsx"],"sourcesContent":["'use client'\n\nimport { type FC, type ReactNode, useSyncExternalStore } from 'react'\n\nimport { defaultBreakpoint } from '../../themes'\n\nimport { DeviceContext } from './useDevice'\n\nconst mediaQuery = {\n narrow: `(max-width: ${defaultBreakpoint.SP}px)`,\n}\n\nconst subscribe = (onStoreChange: () => void) => {\n const matchQueryList = matchMedia(mediaQuery.narrow)\n matchQueryList.addEventListener('change', onStoreChange)\n\n return () => {\n matchQueryList.removeEventListener('change', onStoreChange)\n }\n}\n\nconst getSnapshot = () => matchMedia(mediaQuery.narrow).matches\n\nconst getServerSnapshot = () => null\n\nexport const DeviceProvider: FC<{ children: ReactNode }> = ({ children }) => {\n const isNarrowView = useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot)\n\n return <DeviceContext.Provider value={isNarrowView}>{children}</DeviceContext.Provider>\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAQA;AACE;;AAGF;;AAEE;AAEA;AACE;AACF;AACF;AAEA;AAEA;;;;AAMA;;"}
@@ -1,4 +0,0 @@
1
- import { type FC, type ReactNode } from 'react';
2
- export declare const DeviceProvider: FC<{
3
- children: ReactNode;
4
- }>;
@@ -1,35 +0,0 @@
1
- "use client";
2
- import { jsx } from 'react/jsx-runtime';
3
- import { useSyncExternalStore } from 'react';
4
- import '../../themes/createSpacing.js';
5
- import '../../_virtual/index.js';
6
- import '../../_virtual/index2.js';
7
- import '../../themes/createColor.js';
8
- import '../../themes/createTextColor.js';
9
- import 'styled-components';
10
- import '../../themes/createShadow/defaultShadow.js';
11
- import '../../themes/createWidth.js';
12
- import { defaultBreakpoint } from '../../themes/createBreakpoint.js';
13
- import '../../themes/createBackgroundColor.js';
14
- import '../../themes/createBorder.js';
15
- import { DeviceContext } from './useDevice.js';
16
-
17
- const mediaQuery = {
18
- narrow: `(max-width: ${defaultBreakpoint.SP}px)`,
19
- };
20
- const subscribe = (onStoreChange) => {
21
- const matchQueryList = matchMedia(mediaQuery.narrow);
22
- matchQueryList.addEventListener('change', onStoreChange);
23
- return () => {
24
- matchQueryList.removeEventListener('change', onStoreChange);
25
- };
26
- };
27
- const getSnapshot = () => matchMedia(mediaQuery.narrow).matches;
28
- const getServerSnapshot = () => null;
29
- const DeviceProvider = ({ children }) => {
30
- const isNarrowView = useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
31
- return jsx(DeviceContext.Provider, { value: isNarrowView, children: children });
32
- };
33
-
34
- export { DeviceProvider };
35
- //# sourceMappingURL=DeviceProvider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeviceProvider.js","sources":["../../../src/hooks/useDevice/DeviceProvider.tsx"],"sourcesContent":["'use client'\n\nimport { type FC, type ReactNode, useSyncExternalStore } from 'react'\n\nimport { defaultBreakpoint } from '../../themes'\n\nimport { DeviceContext } from './useDevice'\n\nconst mediaQuery = {\n narrow: `(max-width: ${defaultBreakpoint.SP}px)`,\n}\n\nconst subscribe = (onStoreChange: () => void) => {\n const matchQueryList = matchMedia(mediaQuery.narrow)\n matchQueryList.addEventListener('change', onStoreChange)\n\n return () => {\n matchQueryList.removeEventListener('change', onStoreChange)\n }\n}\n\nconst getSnapshot = () => matchMedia(mediaQuery.narrow).matches\n\nconst getServerSnapshot = () => null\n\nexport const DeviceProvider: FC<{ children: ReactNode }> = ({ children }) => {\n const isNarrowView = useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot)\n\n return <DeviceContext.Provider value={isNarrowView}>{children}</DeviceContext.Provider>\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAQA;AACE;;AAGF;;AAEE;AAEA;AACE;AACF;AACF;AAEA;AAEA;;;;AAMA;;"}
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var hooks_useDevice_useDevice = require('./useDevice.cjs');
4
- var hooks_useDevice_DeviceProvider = require('./DeviceProvider.cjs');
5
-
6
-
7
-
8
- exports.useDevice = hooks_useDevice_useDevice.useDevice;
9
- exports.DeviceProvider = hooks_useDevice_DeviceProvider.DeviceProvider;
10
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,2 +0,0 @@
1
- export { useDevice } from './useDevice';
2
- export { DeviceProvider } from './DeviceProvider';
@@ -1,3 +0,0 @@
1
- export { useDevice } from './useDevice.js';
2
- export { DeviceProvider } from './DeviceProvider.js';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,11 +0,0 @@
1
- "use client";
2
- 'use strict';
3
-
4
- var React = require('react');
5
-
6
- const DeviceContext = React.createContext(null);
7
- const useDevice = () => ({ isNarrowView: React.useContext(DeviceContext) });
8
-
9
- exports.DeviceContext = DeviceContext;
10
- exports.useDevice = useDevice;
11
- //# sourceMappingURL=useDevice.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDevice.cjs","sources":["../../../src/hooks/useDevice/useDevice.ts"],"sourcesContent":["'use client'\nimport { createContext, useContext } from 'react'\n\nexport const DeviceContext = createContext<boolean | null>(null)\n\nexport const useDevice = () => ({ isNarrowView: useContext(DeviceContext) })\n"],"names":[],"mappings":";;;;;;AAKO;;;"}
@@ -1,4 +0,0 @@
1
- export declare const DeviceContext: import("react").Context<boolean | null>;
2
- export declare const useDevice: () => {
3
- isNarrowView: boolean | null;
4
- };
@@ -1,8 +0,0 @@
1
- "use client";
2
- import { createContext, useContext } from 'react';
3
-
4
- const DeviceContext = createContext(null);
5
- const useDevice = () => ({ isNarrowView: useContext(DeviceContext) });
6
-
7
- export { DeviceContext, useDevice };
8
- //# sourceMappingURL=useDevice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDevice.js","sources":["../../../src/hooks/useDevice/useDevice.ts"],"sourcesContent":["'use client'\nimport { createContext, useContext } from 'react'\n\nexport const DeviceContext = createContext<boolean | null>(null)\n\nexport const useDevice = () => ({ isNarrowView: useContext(DeviceContext) })\n"],"names":[],"mappings":";;;;AAKO;;"}