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.
- package/lib/components/AppHeader/components/common/AppLauncherFeatures.cjs +1 -1
- package/lib/components/AppHeader/components/common/AppLauncherFeatures.js +1 -1
- package/lib/components/AppHeader/components/common/AppLauncherSortDropdown.cjs +1 -1
- package/lib/components/AppHeader/components/common/AppLauncherSortDropdown.js +1 -1
- package/lib/components/AppHeader/components/desktop/AppLauncher.cjs +5 -5
- package/lib/components/AppHeader/components/desktop/AppLauncher.cjs.map +1 -1
- package/lib/components/AppHeader/components/desktop/AppLauncher.js +5 -5
- package/lib/components/AppHeader/components/desktop/AppLauncher.js.map +1 -1
- package/lib/components/AppHeader/components/desktop/DesktopHeader.cjs +1 -1
- package/lib/components/AppHeader/components/desktop/DesktopHeader.js +1 -1
- package/lib/components/AppHeader/components/desktop/ReleaseNotesDropdown.cjs +1 -1
- package/lib/components/AppHeader/components/desktop/ReleaseNotesDropdown.js +1 -1
- package/lib/components/AppHeader/components/desktop/UserInfo.cjs +1 -1
- package/lib/components/AppHeader/components/desktop/UserInfo.js +1 -1
- package/lib/components/AppHeader/components/mobile/AppLauncher.cjs +1 -1
- package/lib/components/AppHeader/components/mobile/AppLauncher.js +1 -1
- package/lib/components/AppHeader/components/mobile/AppLauncherFilterDropdown.cjs +1 -1
- package/lib/components/AppHeader/components/mobile/AppLauncherFilterDropdown.js +1 -1
- package/lib/components/AppHeader/components/mobile/Help.cjs +1 -1
- package/lib/components/AppHeader/components/mobile/Help.js +1 -1
- package/lib/components/AppHeader/components/mobile/LanguageSelector.cjs +1 -1
- package/lib/components/AppHeader/components/mobile/LanguageSelector.js +1 -1
- package/lib/components/AppHeader/components/mobile/Menu.cjs +1 -1
- package/lib/components/AppHeader/components/mobile/Menu.js +1 -1
- package/lib/components/AppHeader/components/mobile/MenuAccordion.cjs +1 -1
- package/lib/components/AppHeader/components/mobile/MenuAccordion.js +1 -1
- package/lib/components/AppHeader/components/mobile/MenuDialog.cjs +2 -2
- package/lib/components/AppHeader/components/mobile/MenuDialog.js +2 -2
- package/lib/components/AppHeader/components/mobile/MenuSubHeading.cjs +1 -1
- package/lib/components/AppHeader/components/mobile/MenuSubHeading.js +1 -1
- package/lib/components/AppHeader/components/mobile/ReleaseNote.cjs +1 -1
- package/lib/components/AppHeader/components/mobile/ReleaseNote.js +1 -1
- package/lib/components/AppHeader/components/mobile/UserInfo.cjs +2 -2
- package/lib/components/AppHeader/components/mobile/UserInfo.js +2 -2
- package/lib/components/Browser/Browser.cjs +11 -7
- package/lib/components/Browser/Browser.cjs.map +1 -1
- package/lib/components/Browser/Browser.js +12 -8
- package/lib/components/Browser/Browser.js.map +1 -1
- package/lib/components/Calendar/Calendar.cjs +1 -1
- package/lib/components/Calendar/Calendar.js +1 -1
- package/lib/components/Calendar/CalendarTable.cjs +1 -1
- package/lib/components/Calendar/CalendarTable.js +1 -1
- package/lib/components/Calendar/YearPicker.cjs +1 -1
- package/lib/components/Calendar/YearPicker.js +1 -1
- package/lib/components/Combobox/MultiCombobox/MultiCombobox.cjs +122 -134
- package/lib/components/Combobox/MultiCombobox/MultiCombobox.cjs.map +1 -1
- package/lib/components/Combobox/MultiCombobox/MultiCombobox.js +123 -135
- package/lib/components/Combobox/MultiCombobox/MultiCombobox.js.map +1 -1
- package/lib/components/Combobox/MultiCombobox/MultiSelectedItem.cjs +1 -1
- package/lib/components/Combobox/MultiCombobox/MultiSelectedItem.js +1 -1
- package/lib/components/Combobox/SingleCombobox/SingleCombobox.cjs +96 -46
- package/lib/components/Combobox/SingleCombobox/SingleCombobox.cjs.map +1 -1
- package/lib/components/Combobox/SingleCombobox/SingleCombobox.js +98 -48
- package/lib/components/Combobox/SingleCombobox/SingleCombobox.js.map +1 -1
- package/lib/components/Combobox/useListbox.cjs +1 -1
- package/lib/components/Combobox/useListbox.js +1 -1
- package/lib/components/Combobox/useOptions.cjs +3 -1
- package/lib/components/Combobox/useOptions.cjs.map +1 -1
- package/lib/components/Combobox/useOptions.js +4 -2
- package/lib/components/Combobox/useOptions.js.map +1 -1
- package/lib/components/Dialog/ControlledActionDialog/ActionDialogContentInner.cjs +3 -3
- package/lib/components/Dialog/ControlledActionDialog/ActionDialogContentInner.cjs.map +1 -1
- package/lib/components/Dialog/ControlledActionDialog/ActionDialogContentInner.js +3 -3
- package/lib/components/Dialog/ControlledActionDialog/ActionDialogContentInner.js.map +1 -1
- package/lib/components/Dialog/ControlledFormDialog/FormDialogContentInner.cjs +3 -3
- package/lib/components/Dialog/ControlledFormDialog/FormDialogContentInner.cjs.map +1 -1
- package/lib/components/Dialog/ControlledFormDialog/FormDialogContentInner.js +3 -3
- package/lib/components/Dialog/ControlledFormDialog/FormDialogContentInner.js.map +1 -1
- package/lib/components/Dialog/ControlledMessageDialog/MessageDialogContentInner.cjs +1 -1
- package/lib/components/Dialog/ControlledMessageDialog/MessageDialogContentInner.js +1 -1
- package/lib/components/Dialog/ControlledStepFormDialog/ControlledStepFormDialog.cjs +1 -1
- package/lib/components/Dialog/ControlledStepFormDialog/ControlledStepFormDialog.js +1 -1
- package/lib/components/Dialog/ControlledStepFormDialog/StepFormDialogContentInner.cjs +2 -2
- package/lib/components/Dialog/ControlledStepFormDialog/StepFormDialogContentInner.cjs.map +1 -1
- package/lib/components/Dialog/ControlledStepFormDialog/StepFormDialogContentInner.js +2 -2
- package/lib/components/Dialog/ControlledStepFormDialog/StepFormDialogContentInner.js.map +1 -1
- package/lib/components/Dialog/DialogContentResponseStatusMessage.cjs +3 -8
- package/lib/components/Dialog/DialogContentResponseStatusMessage.cjs.map +1 -1
- package/lib/components/Dialog/DialogContentResponseStatusMessage.d.ts +1 -1
- package/lib/components/Dialog/DialogContentResponseStatusMessage.js +3 -8
- package/lib/components/Dialog/DialogContentResponseStatusMessage.js.map +1 -1
- package/lib/components/Dialog/FocusTrap.cjs +4 -1
- package/lib/components/Dialog/FocusTrap.cjs.map +1 -1
- package/lib/components/Dialog/FocusTrap.js +4 -1
- package/lib/components/Dialog/FocusTrap.js.map +1 -1
- package/lib/components/Dialog/ModelessDialog/ModelessDialog.cjs +1 -1
- package/lib/components/Dialog/ModelessDialog/ModelessDialog.js +1 -1
- package/lib/components/DropZone/DropZone.cjs +1 -1
- package/lib/components/DropZone/DropZone.js +1 -1
- package/lib/components/Dropdown/Dropdown.cjs +36 -34
- package/lib/components/Dropdown/Dropdown.cjs.map +1 -1
- package/lib/components/Dropdown/Dropdown.js +37 -35
- package/lib/components/Dropdown/Dropdown.js.map +1 -1
- package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuButton.cjs +1 -1
- package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuButton.js +1 -1
- package/lib/components/Dropdown/FilterDropdown/FilterDropdown.cjs +3 -5
- package/lib/components/Dropdown/FilterDropdown/FilterDropdown.cjs.map +1 -1
- package/lib/components/Dropdown/FilterDropdown/FilterDropdown.d.ts +1 -1
- package/lib/components/Dropdown/FilterDropdown/FilterDropdown.js +3 -5
- package/lib/components/Dropdown/FilterDropdown/FilterDropdown.js.map +1 -1
- package/lib/components/Dropdown/SortDropdown/useSortDropdown.cjs +1 -1
- package/lib/components/Dropdown/SortDropdown/useSortDropdown.js +1 -1
- package/lib/components/ErrorScreen/AuthErrorScreen.cjs +1 -1
- package/lib/components/ErrorScreen/AuthErrorScreen.js +1 -1
- package/lib/components/ErrorScreen/ForbiddenErrorScreen.cjs +1 -1
- package/lib/components/ErrorScreen/ForbiddenErrorScreen.js +1 -1
- package/lib/components/ErrorScreen/NotFoundErrorScreen.cjs +1 -1
- package/lib/components/ErrorScreen/NotFoundErrorScreen.js +1 -1
- package/lib/components/ErrorScreen/UnauthorizedErrorScreen.cjs +1 -1
- package/lib/components/ErrorScreen/UnauthorizedErrorScreen.js +1 -1
- package/lib/components/FormControl/FormControl.cjs +2 -22
- package/lib/components/FormControl/FormControl.cjs.map +1 -1
- package/lib/components/FormControl/FormControl.js +2 -22
- package/lib/components/FormControl/FormControl.js.map +1 -1
- package/lib/components/Header/AppLauncher/AppLauncher.cjs +1 -1
- package/lib/components/Header/AppLauncher/AppLauncher.js +1 -1
- package/lib/components/Header/LanguageSwitcher/LanguageSwitcher.cjs +1 -1
- package/lib/components/Header/LanguageSwitcher/LanguageSwitcher.js +1 -1
- package/lib/components/Icon/OpenInNewTabIcon.cjs +1 -1
- package/lib/components/Icon/OpenInNewTabIcon.js +1 -1
- package/lib/components/InformationPanel/InformationPanel.cjs +1 -1
- package/lib/components/InformationPanel/InformationPanel.js +1 -1
- package/lib/components/Input/SearchInput/SearchInputIcon.cjs +1 -1
- package/lib/components/Input/SearchInput/SearchInputIcon.js +1 -1
- package/lib/components/InputFile/InputFileMultiplyAppendable.cjs +1 -1
- package/lib/components/InputFile/InputFileMultiplyAppendable.js +1 -1
- package/lib/components/InputFile/InputFileNative.cjs +1 -1
- package/lib/components/InputFile/InputFileNative.js +1 -1
- package/lib/components/Layout/Cluster/Cluster.cjs +0 -1
- package/lib/components/Layout/Cluster/Cluster.cjs.map +1 -1
- package/lib/components/Layout/Cluster/Cluster.js +0 -1
- package/lib/components/Layout/Cluster/Cluster.js.map +1 -1
- package/lib/components/Layout/Container/Container.cjs +1 -5
- package/lib/components/Layout/Container/Container.cjs.map +1 -1
- package/lib/components/Layout/Container/Container.js +1 -5
- package/lib/components/Layout/Container/Container.js.map +1 -1
- package/lib/components/Layout/Stack/Stack.cjs +22 -22
- package/lib/components/Layout/Stack/Stack.cjs.map +1 -1
- package/lib/components/Layout/Stack/Stack.js +22 -22
- package/lib/components/Layout/Stack/Stack.js.map +1 -1
- package/lib/components/Loader/LoaderSpinner.cjs +1 -1
- package/lib/components/Loader/LoaderSpinner.js +1 -1
- package/lib/components/Pagination/Pagination.cjs +1 -1
- package/lib/components/Pagination/Pagination.js +1 -1
- package/lib/components/Pagination/PaginationItemButton.cjs +1 -1
- package/lib/components/Pagination/PaginationItemButton.js +1 -1
- package/lib/components/SideNav/SideNav.cjs +3 -22
- package/lib/components/SideNav/SideNav.cjs.map +1 -1
- package/lib/components/SideNav/SideNav.d.ts +2 -9
- package/lib/components/SideNav/SideNav.js +4 -23
- package/lib/components/SideNav/SideNav.js.map +1 -1
- package/lib/components/SideNav/SideNavContext.cjs +11 -0
- package/lib/components/SideNav/SideNavContext.cjs.map +1 -0
- package/lib/components/SideNav/SideNavContext.d.ts +7 -0
- package/lib/components/SideNav/SideNavContext.js +8 -0
- package/lib/components/SideNav/SideNavContext.js.map +1 -0
- package/lib/components/SideNav/SideNavItemButton.cjs +12 -7
- package/lib/components/SideNav/SideNavItemButton.cjs.map +1 -1
- package/lib/components/SideNav/SideNavItemButton.d.ts +5 -11
- package/lib/components/SideNav/SideNavItemButton.js +12 -7
- package/lib/components/SideNav/SideNavItemButton.js.map +1 -1
- package/lib/components/Table/Th.cjs +2 -2
- package/lib/components/Table/Th.cjs.map +1 -1
- package/lib/components/Table/Th.d.ts +0 -2
- package/lib/components/Table/Th.js +2 -2
- package/lib/components/Table/Th.js.map +1 -1
- package/lib/components/Table/ThCheckbox.cjs +1 -1
- package/lib/components/Table/ThCheckbox.js +1 -1
- package/lib/components/Table/ThSortButton.cjs +5 -6
- package/lib/components/Table/ThSortButton.cjs.map +1 -1
- package/lib/components/Table/ThSortButton.d.ts +1 -6
- package/lib/components/Table/ThSortButton.js +5 -6
- package/lib/components/Table/ThSortButton.js.map +1 -1
- package/lib/components/WarekiPicker/WarekiPicker.cjs +1 -1
- package/lib/components/WarekiPicker/WarekiPicker.js +1 -1
- package/lib/index.cjs +1 -6
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -4
- package/lib/index.js.map +1 -1
- package/lib/intl/Localizer.cjs +5 -1
- package/lib/intl/Localizer.cjs.map +1 -1
- package/lib/intl/Localizer.d.ts +1 -1
- package/lib/intl/Localizer.js +5 -1
- package/lib/intl/Localizer.js.map +1 -1
- package/metadata.json +1 -1
- package/package.json +1 -1
- package/smarthr-ui.css +0 -94
- package/lib/hooks/useDecorators.cjs +0 -18
- package/lib/hooks/useDecorators.cjs.map +0 -1
- package/lib/hooks/useDecorators.d.ts +0 -6
- package/lib/hooks/useDecorators.js +0 -16
- package/lib/hooks/useDecorators.js.map +0 -1
- package/lib/hooks/useDevice/DeviceProvider.cjs +0 -37
- package/lib/hooks/useDevice/DeviceProvider.cjs.map +0 -1
- package/lib/hooks/useDevice/DeviceProvider.d.ts +0 -4
- package/lib/hooks/useDevice/DeviceProvider.js +0 -35
- package/lib/hooks/useDevice/DeviceProvider.js.map +0 -1
- package/lib/hooks/useDevice/index.cjs +0 -10
- package/lib/hooks/useDevice/index.cjs.map +0 -1
- package/lib/hooks/useDevice/index.d.ts +0 -2
- package/lib/hooks/useDevice/index.js +0 -3
- package/lib/hooks/useDevice/index.js.map +0 -1
- package/lib/hooks/useDevice/useDevice.cjs +0 -11
- package/lib/hooks/useDevice/useDevice.cjs.map +0 -1
- package/lib/hooks/useDevice/useDevice.d.ts +0 -4
- package/lib/hooks/useDevice/useDevice.js +0 -8
- package/lib/hooks/useDevice/useDevice.js.map +0 -1
package/package.json
CHANGED
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,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 +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,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;;"}
|