smarthr-ui 99.3.2 → 99.4.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/_virtual/plugin.cjs +1 -1
- package/lib/_virtual/plugin.js +1 -1
- package/lib/components/AccordionPanel/AccordionPanel.cjs +1 -1
- package/lib/components/AccordionPanel/AccordionPanel.js +1 -1
- package/lib/components/AccordionPanel/AccordionPanelContent.cjs +1 -1
- package/lib/components/AccordionPanel/AccordionPanelContent.js +1 -1
- package/lib/components/AccordionPanel/AccordionPanelItem.cjs +1 -1
- package/lib/components/AccordionPanel/AccordionPanelItem.js +1 -1
- package/lib/components/AccordionPanel/AccordionPanelTrigger.cjs +1 -1
- package/lib/components/AccordionPanel/AccordionPanelTrigger.js +1 -1
- 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/common/CommonButton.cjs +1 -1
- package/lib/components/AppHeader/components/common/CommonButton.js +1 -1
- package/lib/components/AppHeader/components/desktop/AppLauncher.cjs +3 -3
- package/lib/components/AppHeader/components/desktop/AppLauncher.cjs.map +1 -1
- package/lib/components/AppHeader/components/desktop/AppLauncher.js +3 -3
- 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/Navigation.cjs +1 -1
- package/lib/components/AppHeader/components/desktop/Navigation.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 +3 -3
- package/lib/components/AppHeader/components/mobile/AppLauncher.cjs.map +1 -1
- package/lib/components/AppHeader/components/mobile/AppLauncher.js +3 -3
- package/lib/components/AppHeader/components/mobile/AppLauncher.js.map +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/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/MenuDialog.cjs +1 -1
- package/lib/components/AppHeader/components/mobile/MenuDialog.js +1 -1
- package/lib/components/AppHeader/components/mobile/MobileHeader.cjs +1 -1
- package/lib/components/AppHeader/components/mobile/MobileHeader.cjs.map +1 -1
- package/lib/components/AppHeader/components/mobile/MobileHeader.js +1 -1
- package/lib/components/AppHeader/components/mobile/MobileHeader.js.map +1 -1
- package/lib/components/AppHeader/components/mobile/Navigation.cjs +1 -1
- package/lib/components/AppHeader/components/mobile/Navigation.js +1 -1
- package/lib/components/AppHeader/components/mobile/NavigationItem.cjs +1 -1
- package/lib/components/AppHeader/components/mobile/NavigationItem.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/TenantSelector.cjs +1 -1
- package/lib/components/AppHeader/components/mobile/TenantSelector.js +1 -1
- package/lib/components/AppHeader/components/mobile/UserInfo.cjs +1 -1
- package/lib/components/AppHeader/components/mobile/UserInfo.js +1 -1
- package/lib/components/AppHeader/hooks/useAppLauncher.cjs +10 -2
- package/lib/components/AppHeader/hooks/useAppLauncher.cjs.map +1 -1
- package/lib/components/AppHeader/hooks/useAppLauncher.d.ts +1 -0
- package/lib/components/AppHeader/hooks/useAppLauncher.js +10 -2
- package/lib/components/AppHeader/hooks/useAppLauncher.js.map +1 -1
- package/lib/components/AppNavi/AppNavi.cjs +1 -1
- package/lib/components/AppNavi/AppNavi.js +1 -1
- package/lib/components/AppNavi/AppNaviAnchor.cjs +1 -1
- package/lib/components/AppNavi/AppNaviAnchor.js +1 -1
- package/lib/components/AppNavi/AppNaviButton.cjs +1 -1
- package/lib/components/AppNavi/AppNaviButton.js +1 -1
- package/lib/components/AppNavi/AppNaviCustomTag.cjs +1 -1
- package/lib/components/AppNavi/AppNaviCustomTag.js +1 -1
- package/lib/components/AppNavi/AppNaviDropdown.cjs +1 -1
- package/lib/components/AppNavi/AppNaviDropdown.js +1 -1
- package/lib/components/AppNavi/AppNaviDropdownMenuButton.cjs +1 -1
- package/lib/components/AppNavi/AppNaviDropdownMenuButton.js +1 -1
- package/lib/components/AppNavi/itemClassNameGenerator.cjs +1 -1
- package/lib/components/AppNavi/itemClassNameGenerator.js +1 -1
- package/lib/components/Badge/Badge.cjs +1 -1
- package/lib/components/Badge/Badge.js +1 -1
- package/lib/components/BottomFixedArea/BottomFixedArea.cjs +1 -1
- package/lib/components/BottomFixedArea/BottomFixedArea.js +1 -1
- package/lib/components/Browser/Browser.cjs +1 -1
- package/lib/components/Browser/Browser.js +1 -1
- package/lib/components/Browser/BrowserColumn.cjs +1 -1
- package/lib/components/Browser/BrowserColumn.js +1 -1
- package/lib/components/Browser/BrowserItem.cjs +1 -1
- package/lib/components/Browser/BrowserItem.js +1 -1
- package/lib/components/Button/AnchorButton.cjs +1 -1
- package/lib/components/Button/AnchorButton.js +1 -1
- package/lib/components/Button/Button.cjs +1 -1
- package/lib/components/Button/Button.js +1 -1
- package/lib/components/Button/DisabledReason.cjs +1 -1
- package/lib/components/Button/DisabledReason.js +1 -1
- package/lib/components/Button/UnstyledButton.cjs +1 -1
- package/lib/components/Button/UnstyledButton.js +1 -1
- package/lib/components/Button/useButtonWrapper.cjs +1 -1
- package/lib/components/Button/useButtonWrapper.js +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/Checkbox/Checkbox.cjs +1 -1
- package/lib/components/Checkbox/Checkbox.js +1 -1
- package/lib/components/Chip/Chip.cjs +1 -1
- package/lib/components/Chip/Chip.js +1 -1
- package/lib/components/Combobox/ItemButton.cjs +1 -1
- package/lib/components/Combobox/ItemButton.js +1 -1
- package/lib/components/Combobox/MultiCombobox/MultiCombobox.cjs +15 -5
- package/lib/components/Combobox/MultiCombobox/MultiCombobox.cjs.map +1 -1
- package/lib/components/Combobox/MultiCombobox/MultiCombobox.js +16 -6
- 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 +7 -3
- package/lib/components/Combobox/SingleCombobox/SingleCombobox.cjs.map +1 -1
- package/lib/components/Combobox/SingleCombobox/SingleCombobox.js +8 -4
- package/lib/components/Combobox/SingleCombobox/SingleCombobox.js.map +1 -1
- package/lib/components/Combobox/useListbox.cjs +8 -4
- package/lib/components/Combobox/useListbox.cjs.map +1 -1
- package/lib/components/Combobox/useListbox.js +8 -4
- package/lib/components/Combobox/useListbox.js.map +1 -1
- package/lib/components/DatePicker/DatePicker.cjs +7 -3
- package/lib/components/DatePicker/DatePicker.cjs.map +1 -1
- package/lib/components/DatePicker/DatePicker.js +7 -3
- package/lib/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/components/DefinitionList/DefinitionList.cjs +1 -1
- package/lib/components/DefinitionList/DefinitionList.js +1 -1
- package/lib/components/DefinitionList/DefinitionListItem.cjs +8 -9
- package/lib/components/DefinitionList/DefinitionListItem.cjs.map +1 -1
- package/lib/components/DefinitionList/DefinitionListItem.js +8 -9
- package/lib/components/DefinitionList/DefinitionListItem.js.map +1 -1
- package/lib/components/Dialog/ControlledFormDialog/FormDialogContentInner.cjs +1 -1
- package/lib/components/Dialog/ControlledFormDialog/FormDialogContentInner.js +1 -1
- package/lib/components/Dialog/ControlledStepFormDialog/ControlledStepFormDialog.cjs +32 -4
- package/lib/components/Dialog/ControlledStepFormDialog/ControlledStepFormDialog.cjs.map +1 -1
- package/lib/components/Dialog/ControlledStepFormDialog/ControlledStepFormDialog.d.ts +1 -1
- package/lib/components/Dialog/ControlledStepFormDialog/ControlledStepFormDialog.js +29 -1
- package/lib/components/Dialog/ControlledStepFormDialog/ControlledStepFormDialog.js.map +1 -1
- package/lib/components/Dialog/ControlledStepFormDialog/StepFormDialogContentInner.cjs.map +1 -1
- package/lib/components/Dialog/ControlledStepFormDialog/StepFormDialogContentInner.d.ts +1 -2
- package/lib/components/Dialog/ControlledStepFormDialog/StepFormDialogContentInner.js.map +1 -1
- package/lib/components/Dialog/ControlledStepFormDialog/type.cjs +3 -0
- package/lib/components/Dialog/ControlledStepFormDialog/type.cjs.map +1 -0
- package/lib/components/Dialog/ControlledStepFormDialog/type.d.ts +25 -0
- package/lib/components/Dialog/ControlledStepFormDialog/type.js +2 -0
- package/lib/components/Dialog/ControlledStepFormDialog/type.js.map +1 -0
- package/lib/components/Dialog/DialogBody.cjs +1 -1
- package/lib/components/Dialog/DialogBody.js +1 -1
- package/lib/components/Dialog/DialogContentInner.cjs +1 -1
- package/lib/components/Dialog/DialogContentInner.js +1 -1
- package/lib/components/Dialog/DialogOverlap.cjs +1 -1
- package/lib/components/Dialog/DialogOverlap.js +1 -1
- package/lib/components/Dialog/FocusTrap.cjs +61 -44
- package/lib/components/Dialog/FocusTrap.cjs.map +1 -1
- package/lib/components/Dialog/FocusTrap.js +62 -45
- 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/Dialog/RemoteDialogTrigger/useRemoteTrigger.cjs +20 -10
- package/lib/components/Dialog/RemoteDialogTrigger/useRemoteTrigger.cjs.map +1 -1
- package/lib/components/Dialog/RemoteDialogTrigger/useRemoteTrigger.d.ts +1 -1
- package/lib/components/Dialog/RemoteDialogTrigger/useRemoteTrigger.js +20 -10
- package/lib/components/Dialog/RemoteDialogTrigger/useRemoteTrigger.js.map +1 -1
- package/lib/components/Dialog/dialogInnerStyle.cjs +1 -1
- package/lib/components/Dialog/dialogInnerStyle.js +1 -1
- package/lib/components/Disclosure/useDisclosure.cjs +6 -3
- package/lib/components/Disclosure/useDisclosure.cjs.map +1 -1
- package/lib/components/Disclosure/useDisclosure.js +6 -3
- package/lib/components/Disclosure/useDisclosure.js.map +1 -1
- package/lib/components/DropZone/DropZone.cjs +1 -1
- package/lib/components/DropZone/DropZone.js +1 -1
- package/lib/components/Dropdown/Dropdown.cjs +20 -9
- package/lib/components/Dropdown/Dropdown.cjs.map +1 -1
- package/lib/components/Dropdown/Dropdown.js +20 -9
- package/lib/components/Dropdown/Dropdown.js.map +1 -1
- package/lib/components/Dropdown/DropdownCloser.cjs +1 -1
- package/lib/components/Dropdown/DropdownCloser.js +1 -1
- package/lib/components/Dropdown/DropdownContentInner.cjs +79 -3
- package/lib/components/Dropdown/DropdownContentInner.cjs.map +1 -1
- package/lib/components/Dropdown/DropdownContentInner.js +81 -5
- package/lib/components/Dropdown/DropdownContentInner.js.map +1 -1
- package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuButton.cjs +70 -3
- package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuButton.cjs.map +1 -1
- package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuButton.js +71 -4
- package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuButton.js.map +1 -1
- package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuGroup.cjs +1 -1
- package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuGroup.js +1 -1
- package/lib/components/Dropdown/DropdownTrigger.cjs +1 -1
- package/lib/components/Dropdown/DropdownTrigger.js +1 -1
- package/lib/components/Dropdown/FilterDropdown/FilterDropdown.cjs +1 -1
- package/lib/components/Dropdown/FilterDropdown/FilterDropdown.js +1 -1
- package/lib/components/Dropdown/SortDropdown/SortDropdown.cjs +68 -14
- package/lib/components/Dropdown/SortDropdown/SortDropdown.cjs.map +1 -1
- package/lib/components/Dropdown/SortDropdown/SortDropdown.js +69 -15
- package/lib/components/Dropdown/SortDropdown/SortDropdown.js.map +1 -1
- package/lib/components/ErrorScreen/ErrorScreen.cjs +1 -1
- package/lib/components/ErrorScreen/ErrorScreen.js +1 -1
- package/lib/components/FileViewer/PDFViewer.cjs +27 -26
- package/lib/components/FileViewer/PDFViewer.cjs.map +1 -1
- package/lib/components/FileViewer/PDFViewer.js +28 -27
- package/lib/components/FileViewer/PDFViewer.js.map +1 -1
- package/lib/components/FileViewer/SearchController.cjs +1 -1
- package/lib/components/FileViewer/SearchController.js +1 -1
- package/lib/components/FloatArea/FloatArea.cjs +26 -85
- package/lib/components/FloatArea/FloatArea.cjs.map +1 -1
- package/lib/components/FloatArea/FloatArea.js +26 -85
- package/lib/components/FloatArea/FloatArea.js.map +1 -1
- package/lib/components/FormControl/FormControl.cjs +60 -41
- package/lib/components/FormControl/FormControl.cjs.map +1 -1
- package/lib/components/FormControl/FormControl.js +60 -41
- package/lib/components/FormControl/FormControl.js.map +1 -1
- package/lib/components/Header/AppLauncher/AppLauncher.cjs +5 -5
- package/lib/components/Header/AppLauncher/AppLauncher.cjs.map +1 -1
- package/lib/components/Header/AppLauncher/AppLauncher.js +5 -5
- package/lib/components/Header/AppLauncher/AppLauncher.js.map +1 -1
- package/lib/components/Header/Header.cjs +1 -1
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/HeaderDropdownMenuButton.cjs +1 -1
- package/lib/components/Header/HeaderDropdownMenuButton.js +1 -1
- package/lib/components/Header/HeaderLink.cjs +1 -1
- package/lib/components/Header/HeaderLink.js +1 -1
- package/lib/components/Header/LanguageSwitcher/LanguageSwitcher.cjs +1 -1
- package/lib/components/Header/LanguageSwitcher/LanguageSwitcher.js +1 -1
- package/lib/components/Heading/Heading.cjs +1 -1
- package/lib/components/Heading/Heading.js +1 -1
- package/lib/components/Heading/PageHeading/PageHeading.cjs +43 -27
- package/lib/components/Heading/PageHeading/PageHeading.cjs.map +1 -1
- package/lib/components/Heading/PageHeading/PageHeading.js +44 -28
- package/lib/components/Heading/PageHeading/PageHeading.js.map +1 -1
- package/lib/components/Icon/generateIcon.cjs +1 -1
- package/lib/components/Icon/generateIcon.js +1 -1
- package/lib/components/InformationPanel/InformationPanel.cjs +7 -7
- package/lib/components/InformationPanel/InformationPanel.cjs.map +1 -1
- package/lib/components/InformationPanel/InformationPanel.js +8 -8
- package/lib/components/InformationPanel/InformationPanel.js.map +1 -1
- package/lib/components/Input/CurrencyInput/CurrencyInput.cjs +17 -16
- package/lib/components/Input/CurrencyInput/CurrencyInput.cjs.map +1 -1
- package/lib/components/Input/CurrencyInput/CurrencyInput.js +18 -17
- package/lib/components/Input/CurrencyInput/CurrencyInput.js.map +1 -1
- package/lib/components/Input/Input.cjs +15 -16
- package/lib/components/Input/Input.cjs.map +1 -1
- package/lib/components/Input/Input.js +16 -17
- package/lib/components/Input/Input.js.map +1 -1
- package/lib/components/Input/InputWithTooltip/InputWithTooltip.cjs +3 -3
- package/lib/components/Input/InputWithTooltip/InputWithTooltip.cjs.map +1 -1
- package/lib/components/Input/InputWithTooltip/InputWithTooltip.js +3 -3
- package/lib/components/Input/InputWithTooltip/InputWithTooltip.js.map +1 -1
- package/lib/components/Input/SearchInput/SearchInput.cjs +10 -3
- package/lib/components/Input/SearchInput/SearchInput.cjs.map +1 -1
- package/lib/components/Input/SearchInput/SearchInput.js +10 -3
- package/lib/components/Input/SearchInput/SearchInput.js.map +1 -1
- package/lib/components/InputFile/style.cjs +1 -1
- package/lib/components/InputFile/style.js +1 -1
- package/lib/components/Layout/Center/Center.cjs +1 -1
- package/lib/components/Layout/Center/Center.js +1 -1
- package/lib/components/Layout/Cluster/Cluster.cjs +1 -1
- package/lib/components/Layout/Cluster/Cluster.js +1 -1
- package/lib/components/Layout/Container/Container.cjs +1 -1
- package/lib/components/Layout/Container/Container.js +1 -1
- package/lib/components/Layout/Reel/Reel.cjs +1 -1
- package/lib/components/Layout/Reel/Reel.js +1 -1
- package/lib/components/Layout/Sidebar/Sidebar.cjs +1 -1
- package/lib/components/Layout/Sidebar/Sidebar.js +1 -1
- package/lib/components/Layout/Stack/Stack.cjs +1 -1
- package/lib/components/Layout/Stack/Stack.js +1 -1
- package/lib/components/LineClamp/LineClamp.cjs +1 -1
- package/lib/components/LineClamp/LineClamp.js +1 -1
- package/lib/components/Loader/Loader.cjs +1 -1
- package/lib/components/Loader/Loader.js +1 -1
- package/lib/components/Loader/LoaderSpinner.cjs +1 -1
- package/lib/components/Loader/LoaderSpinner.js +1 -1
- package/lib/components/NotificationBar/NotificationBar.cjs +1 -1
- package/lib/components/NotificationBar/NotificationBar.js +1 -1
- package/lib/components/PageCounter/PageCounter.cjs +1 -1
- package/lib/components/PageCounter/PageCounter.js +1 -1
- package/lib/components/Pagination/Pagination.cjs +1 -1
- package/lib/components/Pagination/Pagination.js +1 -1
- package/lib/components/Panel/Groupbox/Groupbox.cjs +1 -1
- package/lib/components/Panel/Groupbox/Groupbox.js +1 -1
- package/lib/components/Panel/Panel.cjs +1 -1
- package/lib/components/Panel/Panel.js +1 -1
- package/lib/components/Picker/style.cjs +1 -1
- package/lib/components/Picker/style.js +1 -1
- package/lib/components/RadioButton/RadioButton.cjs +1 -1
- package/lib/components/RadioButton/RadioButton.js +1 -1
- package/lib/components/RadioButtonPanel/RadioButtonPanel.cjs +5 -4
- package/lib/components/RadioButtonPanel/RadioButtonPanel.cjs.map +1 -1
- package/lib/components/RadioButtonPanel/RadioButtonPanel.js +6 -5
- package/lib/components/RadioButtonPanel/RadioButtonPanel.js.map +1 -1
- package/lib/components/ResponseMessage/ResponseMessage.cjs +1 -1
- package/lib/components/ResponseMessage/ResponseMessage.js +1 -1
- package/lib/components/Scroller/Scroller.cjs +23 -13
- package/lib/components/Scroller/Scroller.cjs.map +1 -1
- package/lib/components/Scroller/Scroller.js +24 -14
- package/lib/components/Scroller/Scroller.js.map +1 -1
- package/lib/components/SegmentedControl/SegmentedControl.cjs +30 -23
- package/lib/components/SegmentedControl/SegmentedControl.cjs.map +1 -1
- package/lib/components/SegmentedControl/SegmentedControl.js +31 -24
- package/lib/components/SegmentedControl/SegmentedControl.js.map +1 -1
- package/lib/components/Select/Select.cjs +1 -1
- package/lib/components/Select/Select.js +1 -1
- package/lib/components/SideMenu/SideMenu.cjs +1 -1
- package/lib/components/SideMenu/SideMenu.js +1 -1
- package/lib/components/SideMenu/SideMenuGroup.cjs +1 -1
- package/lib/components/SideMenu/SideMenuGroup.js +1 -1
- package/lib/components/SideMenu/SideMenuItem.cjs +1 -1
- package/lib/components/SideMenu/SideMenuItem.js +1 -1
- package/lib/components/SideNav/SideNav.cjs +1 -1
- package/lib/components/SideNav/SideNav.js +1 -1
- package/lib/components/SideNav/SideNavItemButton.cjs +1 -1
- package/lib/components/SideNav/SideNavItemButton.js +1 -1
- package/lib/components/SmartHRLogo/SmartHRLogo.cjs +1 -1
- package/lib/components/SmartHRLogo/SmartHRLogo.js +1 -1
- package/lib/components/SpreadsheetTable/SpreadsheetTable.cjs +1 -1
- package/lib/components/SpreadsheetTable/SpreadsheetTable.js +1 -1
- package/lib/components/StatusLabel/StatusLabel.cjs +1 -1
- package/lib/components/StatusLabel/StatusLabel.js +1 -1
- package/lib/components/Stepper/HorizontalStepItem.cjs +1 -1
- package/lib/components/Stepper/HorizontalStepItem.js +1 -1
- package/lib/components/Stepper/StepCounter.cjs +1 -1
- package/lib/components/Stepper/StepCounter.js +1 -1
- package/lib/components/Stepper/StepStatusIcon.cjs +1 -1
- package/lib/components/Stepper/StepStatusIcon.js +1 -1
- package/lib/components/Stepper/Stepper.cjs +1 -1
- package/lib/components/Stepper/Stepper.js +1 -1
- package/lib/components/Stepper/VerticalStepItem.cjs +1 -1
- package/lib/components/Stepper/VerticalStepItem.js +1 -1
- package/lib/components/Switch/Switch.cjs +1 -1
- package/lib/components/Switch/Switch.js +1 -1
- package/lib/components/TabBar/TabBar.cjs +1 -1
- package/lib/components/TabBar/TabBar.js +1 -1
- package/lib/components/TabBar/TabItem.cjs +1 -1
- package/lib/components/TabBar/TabItem.js +1 -1
- package/lib/components/Table/BulkActionRow.cjs +1 -1
- package/lib/components/Table/BulkActionRow.js +1 -1
- package/lib/components/Table/EmptyTableBody.cjs +1 -1
- package/lib/components/Table/EmptyTableBody.js +1 -1
- package/lib/components/Table/Table.cjs +1 -1
- package/lib/components/Table/Table.js +1 -1
- package/lib/components/Table/TableReel.cjs +1 -1
- package/lib/components/Table/TableReel.js +1 -1
- package/lib/components/Table/Td.cjs +1 -1
- package/lib/components/Table/Td.js +1 -1
- package/lib/components/Table/TdCheckbox.cjs +1 -1
- package/lib/components/Table/TdCheckbox.js +1 -1
- package/lib/components/Table/TdRadioButton.cjs +1 -1
- package/lib/components/Table/TdRadioButton.js +1 -1
- package/lib/components/Table/Th.cjs +1 -1
- package/lib/components/Table/Th.js +1 -1
- package/lib/components/Table/ThCheckbox.cjs +1 -1
- package/lib/components/Table/ThCheckbox.js +1 -1
- package/lib/components/Table/ThSortButton.cjs +1 -1
- package/lib/components/Table/ThSortButton.js +1 -1
- package/lib/components/Table/reelShadowStyle.cjs +1 -1
- package/lib/components/Table/reelShadowStyle.js +1 -1
- package/lib/components/Text/Text.cjs +1 -1
- package/lib/components/Text/Text.js +1 -1
- package/lib/components/TextLink/TextLink.cjs +1 -1
- package/lib/components/TextLink/TextLink.js +1 -1
- package/lib/components/TextLink/UpwardLink/UpwardLink.cjs +1 -1
- package/lib/components/TextLink/UpwardLink/UpwardLink.js +1 -1
- package/lib/components/Textarea/Textarea.cjs +1 -1
- package/lib/components/Textarea/Textarea.js +1 -1
- package/lib/components/Timeline/Timeline.cjs +1 -1
- package/lib/components/Timeline/Timeline.js +1 -1
- package/lib/components/Timeline/TimelineItem.cjs +1 -1
- package/lib/components/Timeline/TimelineItem.js +1 -1
- package/lib/components/Tooltip/ControlledTooltip.cjs +1 -1
- package/lib/components/Tooltip/ControlledTooltip.js +1 -1
- package/lib/components/Tooltip/Tooltip.cjs +1 -1
- package/lib/components/Tooltip/Tooltip.js +1 -1
- package/lib/components/Tooltip/TooltipPortal.cjs +1 -1
- package/lib/components/Tooltip/TooltipPortal.js +1 -1
- package/lib/components/VisuallyHiddenText/VisuallyHiddenText.cjs +1 -1
- package/lib/components/VisuallyHiddenText/VisuallyHiddenText.js +1 -1
- package/lib/configureTwMerge.cjs +1 -1
- package/lib/configureTwMerge.js +1 -1
- package/lib/hooks/useAnimationFrame.cjs +40 -0
- package/lib/hooks/useAnimationFrame.cjs.map +1 -0
- package/lib/hooks/useAnimationFrame.d.ts +19 -0
- package/lib/hooks/useAnimationFrame.js +38 -0
- package/lib/hooks/useAnimationFrame.js.map +1 -0
- package/lib/hooks/useLatest.cjs +1 -2
- package/lib/hooks/useLatest.cjs.map +1 -1
- package/lib/hooks/useLatest.js +1 -2
- package/lib/hooks/useLatest.js.map +1 -1
- package/lib/hooks/useMediaQueries/useMediaQueries.cjs +41 -29
- package/lib/hooks/useMediaQueries/useMediaQueries.cjs.map +1 -1
- package/lib/hooks/useMediaQueries/useMediaQueries.js +42 -30
- package/lib/hooks/useMediaQueries/useMediaQueries.js.map +1 -1
- package/lib/hooks/useMergeRefs.cjs +56 -0
- package/lib/hooks/useMergeRefs.cjs.map +1 -0
- package/lib/hooks/useMergeRefs.d.ts +18 -0
- package/lib/hooks/useMergeRefs.js +54 -0
- package/lib/hooks/useMergeRefs.js.map +1 -0
- package/lib/hooks/useOnce.cjs +42 -0
- package/lib/hooks/useOnce.cjs.map +1 -0
- package/lib/hooks/useOnce.d.ts +19 -0
- package/lib/hooks/useOnce.js +40 -0
- package/lib/hooks/useOnce.js.map +1 -0
- package/lib/hooks/useSV/useSV.cjs +1 -1
- package/lib/hooks/useSV/useSV.js +1 -1
- package/lib/index.cjs +2 -0
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/{components/Input/CurrencyInput/currencyInputHelper.js → libs/formatNumericString.cjs} +11 -3
- package/lib/libs/formatNumericString.cjs.map +1 -0
- package/lib/libs/formatNumericString.d.ts +7 -0
- package/lib/{components/Input/CurrencyInput/currencyInputHelper.cjs → libs/formatNumericString.js} +9 -5
- package/lib/libs/formatNumericString.js.map +1 -0
- package/lib/vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/chunk-I2QGXAA3.cjs.map +1 -0
- package/lib/vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/chunk-I2QGXAA3.js.map +1 -0
- package/lib/vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.cjs.map +1 -0
- package/lib/vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.js.map +1 -0
- package/lib/vendor/.pnpm/tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helpers@0.5.23__@types_node@20.19.43_typescript@5.9.3_/vendor/tailwindcss/lib/public/create-plugin.cjs.map +1 -0
- package/lib/vendor/.pnpm/tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helpers@0.5.23__@types_node@20.19.43_typescript@5.9.3_/vendor/tailwindcss/lib/public/create-plugin.js.map +1 -0
- package/lib/vendor/.pnpm/tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helpers@0.5.23__@types_node@20.19.43_typescript@5.9.3_/vendor/tailwindcss/lib/util/createPlugin.cjs.map +1 -0
- package/lib/vendor/.pnpm/tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helpers@0.5.23__@types_node@20.19.43_typescript@5.9.3_/vendor/tailwindcss/lib/util/createPlugin.js.map +1 -0
- package/lib/vendor/.pnpm/tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helpers@0.5.23__@types_node@20.19.43_typescript@5.9.3_/vendor/tailwindcss/plugin.cjs.map +1 -0
- package/lib/vendor/.pnpm/tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helpers@0.5.23__@types_node@20.19.43_typescript@5.9.3_/vendor/tailwindcss/plugin.js.map +1 -0
- package/metadata.json +1 -1
- package/package.json +1 -1
- package/lib/components/Dialog/ControlledStepFormDialog/useStepFormDialogButton.cjs +0 -36
- package/lib/components/Dialog/ControlledStepFormDialog/useStepFormDialogButton.cjs.map +0 -1
- package/lib/components/Dialog/ControlledStepFormDialog/useStepFormDialogButton.d.ts +0 -32
- package/lib/components/Dialog/ControlledStepFormDialog/useStepFormDialogButton.js +0 -34
- package/lib/components/Dialog/ControlledStepFormDialog/useStepFormDialogButton.js.map +0 -1
- package/lib/components/Dropdown/DropdownMenuButton/useKeyboardNavigation.cjs +0 -78
- package/lib/components/Dropdown/DropdownMenuButton/useKeyboardNavigation.cjs.map +0 -1
- package/lib/components/Dropdown/DropdownMenuButton/useKeyboardNavigation.d.ts +0 -3
- package/lib/components/Dropdown/DropdownMenuButton/useKeyboardNavigation.js +0 -76
- package/lib/components/Dropdown/DropdownMenuButton/useKeyboardNavigation.js.map +0 -1
- package/lib/components/Dropdown/SortDropdown/useSortDropdown.cjs +0 -136
- package/lib/components/Dropdown/SortDropdown/useSortDropdown.cjs.map +0 -1
- package/lib/components/Dropdown/SortDropdown/useSortDropdown.d.ts +0 -34
- package/lib/components/Dropdown/SortDropdown/useSortDropdown.js +0 -134
- package/lib/components/Dropdown/SortDropdown/useSortDropdown.js.map +0 -1
- package/lib/components/Dropdown/useKeyboardNavigation.cjs +0 -90
- package/lib/components/Dropdown/useKeyboardNavigation.cjs.map +0 -1
- package/lib/components/Dropdown/useKeyboardNavigation.d.ts +0 -2
- package/lib/components/Dropdown/useKeyboardNavigation.js +0 -88
- package/lib/components/Dropdown/useKeyboardNavigation.js.map +0 -1
- package/lib/components/Input/CurrencyInput/currencyInputHelper.cjs.map +0 -1
- package/lib/components/Input/CurrencyInput/currencyInputHelper.d.ts +0 -1
- package/lib/components/Input/CurrencyInput/currencyInputHelper.js.map +0 -1
- package/lib/components/Input/SearchInput/SearchInputIcon.cjs +0 -18
- package/lib/components/Input/SearchInput/SearchInputIcon.cjs.map +0 -1
- package/lib/components/Input/SearchInput/SearchInputIcon.d.ts +0 -1
- package/lib/components/Input/SearchInput/SearchInputIcon.js +0 -16
- package/lib/components/Input/SearchInput/SearchInputIcon.js.map +0 -1
- package/lib/libs/object.cjs +0 -8
- package/lib/libs/object.cjs.map +0 -1
- package/lib/libs/object.d.ts +0 -6
- package/lib/libs/object.js +0 -5
- package/lib/libs/object.js.map +0 -1
- package/lib/vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3__/vendor/tailwind-variants/dist/chunk-I2QGXAA3.cjs.map +0 -1
- package/lib/vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3__/vendor/tailwind-variants/dist/chunk-I2QGXAA3.js.map +0 -1
- package/lib/vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3__/vendor/tailwind-variants/dist/index.cjs.map +0 -1
- package/lib/vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3__/vendor/tailwind-variants/dist/index.js.map +0 -1
- package/lib/vendor/.pnpm/tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3_/vendor/tailwindcss/lib/public/create-plugin.cjs.map +0 -1
- package/lib/vendor/.pnpm/tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3_/vendor/tailwindcss/lib/public/create-plugin.js.map +0 -1
- package/lib/vendor/.pnpm/tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3_/vendor/tailwindcss/lib/util/createPlugin.cjs.map +0 -1
- package/lib/vendor/.pnpm/tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3_/vendor/tailwindcss/lib/util/createPlugin.js.map +0 -1
- package/lib/vendor/.pnpm/tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3_/vendor/tailwindcss/plugin.cjs.map +0 -1
- package/lib/vendor/.pnpm/tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3_/vendor/tailwindcss/plugin.js.map +0 -1
- /package/lib/vendor/.pnpm/{tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3__ → tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c}/vendor/tailwind-variants/dist/chunk-I2QGXAA3.cjs +0 -0
- /package/lib/vendor/.pnpm/{tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3__ → tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c}/vendor/tailwind-variants/dist/chunk-I2QGXAA3.js +0 -0
- /package/lib/vendor/.pnpm/{tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3__ → tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c}/vendor/tailwind-variants/dist/index.cjs +0 -0
- /package/lib/vendor/.pnpm/{tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3__ → tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c}/vendor/tailwind-variants/dist/index.js +0 -0
- /package/lib/vendor/.pnpm/{tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3_ → tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helpers@0.5.23__@types_node@20.19.43_typescript@5.9.3_}/vendor/tailwindcss/lib/public/create-plugin.cjs +0 -0
- /package/lib/vendor/.pnpm/{tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3_ → tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helpers@0.5.23__@types_node@20.19.43_typescript@5.9.3_}/vendor/tailwindcss/lib/public/create-plugin.js +0 -0
- /package/lib/vendor/.pnpm/{tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3_ → tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helpers@0.5.23__@types_node@20.19.43_typescript@5.9.3_}/vendor/tailwindcss/lib/util/createPlugin.cjs +0 -0
- /package/lib/vendor/.pnpm/{tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3_ → tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helpers@0.5.23__@types_node@20.19.43_typescript@5.9.3_}/vendor/tailwindcss/lib/util/createPlugin.js +0 -0
- /package/lib/vendor/.pnpm/{tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3_ → tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helpers@0.5.23__@types_node@20.19.43_typescript@5.9.3_}/vendor/tailwindcss/plugin.cjs +0 -0
- /package/lib/vendor/.pnpm/{tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@types_node@20.19.43_typescript@5.9.3_ → tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helpers@0.5.23__@types_node@20.19.43_typescript@5.9.3_}/vendor/tailwindcss/plugin.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppLauncher.js","sources":["../../../../../src/components/AppHeader/components/mobile/AppLauncher.tsx"],"sourcesContent":["import { type FC, type PropsWithChildren, memo } from 'react'\nimport { tv } from 'tailwind-variants'\n\nimport { Localizer, useLocalize } from '../../../../intl'\nimport { UnstyledButton } from '../../../Button'\nimport { FaCircleXmarkIcon } from '../../../Icon'\nimport { SearchInput } from '../../../Input'\nimport { Cluster } from '../../../Layout'\nimport { Scroller } from '../../../Scroller'\nimport { Text } from '../../../Text'\nimport { HelpLink } from '../../../TextLink'\nimport { useAppLauncher } from '../../hooks/useAppLauncher'\nimport { AppLauncherFeatures } from '../common/AppLauncherFeatures'\nimport { AppLauncherSortDropdown } from '../common/AppLauncherSortDropdown'\nimport { Translate } from '../common/Translate'\n\nimport { AppLauncherFilterDropdown } from './AppLauncherFilterDropdown'\n\nimport type { Launcher } from '../../types'\n\ntype Props = {\n features: Array<Launcher['feature']>\n}\n\nconst classNameGenerator = tv({\n slots: {\n wrapper: ['smarthr-ui-AppLauncher', 'shr-flex shr-h-full shr-flex-col'],\n searchArea: [\n 'smarthr-ui-AppLauncher-searchArea',\n 'shr-border-b-shorthand shr-px-1 shr-py-0.75',\n '[&_.smarthr-ui-Input]:shr-h-[42px]',\n ],\n headArea: 'shr-px-1 shr-py-0.75',\n scrollArea: 'shr-flex-1 shr-basis-0',\n bottomArea: 'shr-border-t-shorthand shr-px-1 shr-py-0.75',\n },\n})\n\nconst CLASS_NAMES = (() => {\n const { wrapper, searchArea, headArea, scrollArea, bottomArea } = classNameGenerator()\n\n return {\n wrapper: wrapper(),\n searchArea: searchArea(),\n headArea: headArea(),\n scrollArea: scrollArea(),\n bottomArea: bottomArea(),\n }\n})()\n\nexport const AppLauncher: FC<Props> = ({ features: baseFeatures }) => {\n const {\n features,\n page,\n mode,\n sortType,\n searchQuery,\n changePage,\n setSortType,\n onChangeSearchQuery,\n onClickClearSearchQuery,\n } = useAppLauncher(baseFeatures)\n\n const { searchInputTitle } = useLocalize({\n searchInputTitle: {\n id: 'smarthr-ui/AppHeader/Launcher/searchInputTitle',\n defaultText: 'アプリ名を入力してください。',\n },\n })\n\n return (\n <div className={CLASS_NAMES.wrapper}>\n <div className={CLASS_NAMES.searchArea}>\n <SearchInput\n name=\"search\"\n title={searchInputTitle}\n tooltipMessage={<Translate>{searchInputTitle}</Translate>}\n width=\"100%\"\n value={searchQuery}\n suffix={mode === 'search' && <ClearSearchButton onClick={onClickClearSearchQuery} />}\n onChange={onChangeSearchQuery}\n />\n </div>\n\n <Cluster className={CLASS_NAMES.headArea} justify=\"space-between\" align=\"center\">\n {mode === 'search' ? (\n <SearchResultText>\n <Localizer id=\"smarthr-ui/AppHeader/Launcher/searchResultText\" defaultText=\"検索結果\" />\n </SearchResultText>\n ) : (\n <AppLauncherFilterDropdown page={page} handleSelectPage={changePage} />\n )}\n\n {(mode === 'search' || page === 'all') && (\n <AppLauncherSortDropdown sortType={sortType} onSelectSortType={setSortType} />\n )}\n </Cluster>\n\n <Scroller className={CLASS_NAMES.scrollArea} styleType=\"scroll\">\n <AppLauncherFeatures features={features} page={page} />\n </Scroller>\n\n <BottomArea className={CLASS_NAMES.bottomArea}>\n <Localizer id=\"smarthr-ui/AppHeader/Launcher/helpText\" defaultText=\"よく使うアプリとは\" />\n </BottomArea>\n </div>\n )\n}\n\nconst ClearSearchButton = memo<{ onClick: () => void }>(({ onClick }) => (\n <UnstyledButton onClick={onClick}>\n <FaCircleXmarkIcon />\n </UnstyledButton>\n))\n\nconst SearchResultText = memo<PropsWithChildren>(({ children }) => (\n <Text size=\"S\" weight=\"bold\">\n <Translate>{children}</Translate>\n </Text>\n))\n\nconst BottomArea = memo<PropsWithChildren<{ className: string }>>(({ children, className }) => (\n <div className={className}>\n <Text size=\"XS\">\n <HelpLink\n href=\"https://support.smarthr.jp/ja/help/articles/2bfd350d-8e8b-4bbd-a209-426d2eb302cc/\"\n target=\"_blank\"\n >\n <Translate>{children}</Translate>\n </HelpLink>\n </Text>\n </div>\n))\n"],"names":["tv","_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAM,kBAAkB,GAAGA,EAAE,CAAC;AAC5B,IAAA,KAAK,EAAE;AACL,QAAA,OAAO,EAAE,CAAC,wBAAwB,EAAE,kCAAkC,CAAC;AACvE,QAAA,UAAU,EAAE;YACV,mCAAmC;YACnC,6CAA6C;YAC7C,oCAAoC;AACrC,SAAA;AACD,QAAA,QAAQ,EAAE,sBAAsB;AAChC,QAAA,UAAU,EAAE,wBAAwB;AACpC,QAAA,UAAU,EAAE,6CAA6C;AAC1D,KAAA;AACF,CAAA,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,MAAK;AACxB,IAAA,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,kBAAkB,EAAE;IAEtF,OAAO;QACL,OAAO,EAAE,OAAO,EAAE;QAClB,UAAU,EAAE,UAAU,EAAE;QACxB,QAAQ,EAAE,QAAQ,EAAE;QACpB,UAAU,EAAE,UAAU,EAAE;QACxB,UAAU,EAAE,UAAU,EAAE;KACzB;AACH,CAAC,GAAG;AAEG,MAAM,WAAW,GAAc,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,KAAI;IACnE,MAAM,EACJ,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"AppLauncher.js","sources":["../../../../../src/components/AppHeader/components/mobile/AppLauncher.tsx"],"sourcesContent":["import { type FC, type PropsWithChildren, memo } from 'react'\nimport { tv } from 'tailwind-variants'\n\nimport { Localizer, useLocalize } from '../../../../intl'\nimport { UnstyledButton } from '../../../Button'\nimport { FaCircleXmarkIcon } from '../../../Icon'\nimport { SearchInput } from '../../../Input'\nimport { Cluster } from '../../../Layout'\nimport { Scroller } from '../../../Scroller'\nimport { Text } from '../../../Text'\nimport { HelpLink } from '../../../TextLink'\nimport { useAppLauncher } from '../../hooks/useAppLauncher'\nimport { AppLauncherFeatures } from '../common/AppLauncherFeatures'\nimport { AppLauncherSortDropdown } from '../common/AppLauncherSortDropdown'\nimport { Translate } from '../common/Translate'\n\nimport { AppLauncherFilterDropdown } from './AppLauncherFilterDropdown'\n\nimport type { Launcher } from '../../types'\n\ntype Props = {\n features: Array<Launcher['feature']>\n}\n\nconst classNameGenerator = tv({\n slots: {\n wrapper: ['smarthr-ui-AppLauncher', 'shr-flex shr-h-full shr-flex-col'],\n searchArea: [\n 'smarthr-ui-AppLauncher-searchArea',\n 'shr-border-b-shorthand shr-px-1 shr-py-0.75',\n '[&_.smarthr-ui-Input]:shr-h-[42px]',\n ],\n headArea: 'shr-px-1 shr-py-0.75',\n scrollArea: 'shr-flex-1 shr-basis-0',\n bottomArea: 'shr-border-t-shorthand shr-px-1 shr-py-0.75',\n },\n})\n\nconst CLASS_NAMES = (() => {\n const { wrapper, searchArea, headArea, scrollArea, bottomArea } = classNameGenerator()\n\n return {\n wrapper: wrapper(),\n searchArea: searchArea(),\n headArea: headArea(),\n scrollArea: scrollArea(),\n bottomArea: bottomArea(),\n }\n})()\n\nexport const AppLauncher: FC<Props> = ({ features: baseFeatures }) => {\n const {\n features,\n page,\n mode,\n sortType,\n searchQuery,\n changePage,\n setSortType,\n onChangeSearchQuery,\n onClickClearSearchQuery,\n callbackRef,\n } = useAppLauncher(baseFeatures)\n\n const { searchInputTitle } = useLocalize({\n searchInputTitle: {\n id: 'smarthr-ui/AppHeader/Launcher/searchInputTitle',\n defaultText: 'アプリ名を入力してください。',\n },\n })\n\n return (\n <div ref={callbackRef} className={CLASS_NAMES.wrapper}>\n <div className={CLASS_NAMES.searchArea}>\n <SearchInput\n name=\"search\"\n title={searchInputTitle}\n tooltipMessage={<Translate>{searchInputTitle}</Translate>}\n width=\"100%\"\n value={searchQuery}\n suffix={mode === 'search' && <ClearSearchButton onClick={onClickClearSearchQuery} />}\n onChange={onChangeSearchQuery}\n />\n </div>\n\n <Cluster className={CLASS_NAMES.headArea} justify=\"space-between\" align=\"center\">\n {mode === 'search' ? (\n <SearchResultText>\n <Localizer id=\"smarthr-ui/AppHeader/Launcher/searchResultText\" defaultText=\"検索結果\" />\n </SearchResultText>\n ) : (\n <AppLauncherFilterDropdown page={page} handleSelectPage={changePage} />\n )}\n\n {(mode === 'search' || page === 'all') && (\n <AppLauncherSortDropdown sortType={sortType} onSelectSortType={setSortType} />\n )}\n </Cluster>\n\n <Scroller className={CLASS_NAMES.scrollArea} styleType=\"scroll\">\n <AppLauncherFeatures features={features} page={page} />\n </Scroller>\n\n <BottomArea className={CLASS_NAMES.bottomArea}>\n <Localizer id=\"smarthr-ui/AppHeader/Launcher/helpText\" defaultText=\"よく使うアプリとは\" />\n </BottomArea>\n </div>\n )\n}\n\nconst ClearSearchButton = memo<{ onClick: () => void }>(({ onClick }) => (\n <UnstyledButton onClick={onClick}>\n <FaCircleXmarkIcon />\n </UnstyledButton>\n))\n\nconst SearchResultText = memo<PropsWithChildren>(({ children }) => (\n <Text size=\"S\" weight=\"bold\">\n <Translate>{children}</Translate>\n </Text>\n))\n\nconst BottomArea = memo<PropsWithChildren<{ className: string }>>(({ children, className }) => (\n <div className={className}>\n <Text size=\"XS\">\n <HelpLink\n href=\"https://support.smarthr.jp/ja/help/articles/2bfd350d-8e8b-4bbd-a209-426d2eb302cc/\"\n target=\"_blank\"\n >\n <Translate>{children}</Translate>\n </HelpLink>\n </Text>\n </div>\n))\n"],"names":["tv","_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAM,kBAAkB,GAAGA,EAAE,CAAC;AAC5B,IAAA,KAAK,EAAE;AACL,QAAA,OAAO,EAAE,CAAC,wBAAwB,EAAE,kCAAkC,CAAC;AACvE,QAAA,UAAU,EAAE;YACV,mCAAmC;YACnC,6CAA6C;YAC7C,oCAAoC;AACrC,SAAA;AACD,QAAA,QAAQ,EAAE,sBAAsB;AAChC,QAAA,UAAU,EAAE,wBAAwB;AACpC,QAAA,UAAU,EAAE,6CAA6C;AAC1D,KAAA;AACF,CAAA,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,MAAK;AACxB,IAAA,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,kBAA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,EAAA,EAAA,QAAA,EAAE,QAAQ,EAAA,CAAa,EAAA,CAC5B,CACR,CAAC;AAEF,MAAM,UAAU,GAAG,IAAI,CAA2C,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,MACxFA,GAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,SAAS,EAAA,QAAA,EACvBA,GAAA,CAAC,IAAI,EAAA,EAAC,IAAI,EAAC,IAAI,EAAA,QAAA,EACbA,IAAC,QAAQ,EAAA,EACP,IAAI,EAAC,mFAAmF,EACxF,MAAM,EAAC,QAAQ,YAEfA,GAAA,CAAC,SAAS,cAAE,QAAQ,EAAA,CAAa,GACxB,EAAA,CACN,EAAA,CACH,CACP,CAAC;;;;"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var index = require('./../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
6
|
+
var index = require('./../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.cjs');
|
|
7
7
|
var hooks_useTheme = require('../../../../hooks/useTheme.cjs');
|
|
8
8
|
require('../../../../intl/IntlProvider.cjs');
|
|
9
9
|
require('react-intl');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { memo, useCallback } from 'react';
|
|
4
|
-
import { tv as ce } from './../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
4
|
+
import { tv as ce } from './../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.js';
|
|
5
5
|
import { useTheme } from '../../../../hooks/useTheme.js';
|
|
6
6
|
import '../../../../intl/IntlProvider.js';
|
|
7
7
|
import 'react-intl';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index = require('./../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
5
|
+
var index = require('./../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.cjs');
|
|
6
6
|
var intl_IntlProvider = require('../../../../intl/IntlProvider.cjs');
|
|
7
7
|
var intl_useIntl = require('../../../../intl/useIntl.cjs');
|
|
8
8
|
require('react-intl');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { memo, useMemo, useCallback } from 'react';
|
|
3
|
-
import { tv as ce } from './../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
3
|
+
import { tv as ce } from './../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.js';
|
|
4
4
|
import { useAvailableLocales } from '../../../../intl/IntlProvider.js';
|
|
5
5
|
import { useIntl } from '../../../../intl/useIntl.js';
|
|
6
6
|
import 'react-intl';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index = require('./../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
5
|
+
var index = require('./../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.cjs');
|
|
6
6
|
var hooks_useHandleEscape = require('../../../../hooks/useHandleEscape.cjs');
|
|
7
7
|
var hooks_usePortal = require('../../../../hooks/usePortal.cjs');
|
|
8
8
|
require('../../../../intl/IntlProvider.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { memo, useContext, useCallback, useState, useEffect, useMemo } from 'react';
|
|
3
|
-
import { tv as ce } from './../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
3
|
+
import { tv as ce } from './../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.js';
|
|
4
4
|
import { useHandleEscape } from '../../../../hooks/useHandleEscape.js';
|
|
5
5
|
import { usePortal } from '../../../../hooks/usePortal.js';
|
|
6
6
|
import '../../../../intl/IntlProvider.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index = require('./../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
5
|
+
var index = require('./../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.cjs');
|
|
6
6
|
var hooks_useLatest = require('../../../../hooks/useLatest.cjs');
|
|
7
7
|
require('../../../../intl/IntlProvider.cjs');
|
|
8
8
|
var intl_useIntl = require('../../../../intl/useIntl.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useContext, useMemo, useEffect, useRef } from 'react';
|
|
3
|
-
import { tv as ce } from './../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
3
|
+
import { tv as ce } from './../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.js';
|
|
4
4
|
import { useLatest } from '../../../../hooks/useLatest.js';
|
|
5
5
|
import '../../../../intl/IntlProvider.js';
|
|
6
6
|
import { useLocalize } from '../../../../intl/useIntl.js';
|
|
@@ -33,7 +33,7 @@ const MobileHeader = ({ navigations, features, releaseNote, className = '', tena
|
|
|
33
33
|
releaseNote,
|
|
34
34
|
isReleaseNoteSelected,
|
|
35
35
|
setIsReleaseNoteSelected,
|
|
36
|
-
}, children: jsxRuntime.jsxs(components_Header_Header.Header, { ...rest, className: `${className} min-[752px]:!shr-hidden`, tenants: isMenuAvailable ? undefined : tenants, children: [children, jsxRuntime.jsx(components_AppHeader_components_mobile_Help.Help, { helpPageUrl: helpPageUrl, schoolUrl: schoolUrl }), jsxRuntime.jsx(components_AppHeader_components_mobile_UserInfo.UserInfo, { ...userInfo, locale: locale }), isMenuAvailable && (jsxRuntime.jsx(components_AppHeader_components_mobile_Menu.Menu, { appName: appName, tenantSelector: jsxRuntime.jsx(components_AppHeader_components_mobile_TenantSelector.TenantSelector, { tenants: tenants, currentTenantId: currentTenantId, onTenantSelect: onTenantSelect }), additionalContent: mobileAdditionalContent }))] }) }) }) }));
|
|
36
|
+
}, children: jsxRuntime.jsxs(components_Header_Header.Header, { ...rest, className: `${className} min-[752px]:!shr-hidden`, tenants: isMenuAvailable ? undefined : tenants, currentTenantId: isMenuAvailable ? undefined : currentTenantId, onTenantSelect: isMenuAvailable ? undefined : onTenantSelect, children: [children, jsxRuntime.jsx(components_AppHeader_components_mobile_Help.Help, { helpPageUrl: helpPageUrl, schoolUrl: schoolUrl }), jsxRuntime.jsx(components_AppHeader_components_mobile_UserInfo.UserInfo, { ...userInfo, locale: locale }), isMenuAvailable && (jsxRuntime.jsx(components_AppHeader_components_mobile_Menu.Menu, { appName: appName, tenantSelector: jsxRuntime.jsx(components_AppHeader_components_mobile_TenantSelector.TenantSelector, { tenants: tenants, currentTenantId: currentTenantId, onTenantSelect: onTenantSelect }), additionalContent: mobileAdditionalContent }))] }) }) }) }));
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
exports.MobileHeader = MobileHeader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileHeader.cjs","sources":["../../../../../src/components/AppHeader/components/mobile/MobileHeader.tsx"],"sourcesContent":["import { type FC, useState } from 'react'\n\nimport { Header } from '../../../Header'\n\nimport { AppLauncherContext } from './AppLauncherContext'\nimport { Help } from './Help'\nimport { Menu } from './Menu'\nimport { NavigationContext } from './NavigationContext'\nimport { ReleaseNoteContext } from './ReleaseNoteContext'\nimport { TenantSelector } from './TenantSelector'\nimport { UserInfo } from './UserInfo'\n\nimport type { HeaderProps, NavigationGroup } from '../../types'\n\nexport const MobileHeader: FC<HeaderProps> = ({\n navigations,\n features,\n releaseNote,\n className = '',\n tenants,\n children,\n helpPageUrl,\n schoolUrl,\n userInfo,\n appName,\n currentTenantId,\n onTenantSelect,\n mobileAdditionalContent,\n locale,\n ...rest\n}) => {\n const [isAppLauncherSelected, setIsAppLauncherSelected] = useState(false)\n const [isReleaseNoteSelected, setIsReleaseNoteSelected] = useState(false)\n const [selectedNavigationGroup, setSelectedNavigationGroup] = useState<NavigationGroup | null>(\n null,\n )\n\n // navigations の設定をメニューの解放条件とする\n const isMenuAvailable = navigations && navigations.length > 0\n\n return (\n <AppLauncherContext.Provider\n value={{\n features,\n isAppLauncherSelected,\n setIsAppLauncherSelected,\n }}\n >\n <NavigationContext.Provider\n value={{\n navigations: navigations ?? [],\n selectedNavigationGroup,\n setSelectedNavigationGroup,\n }}\n >\n <ReleaseNoteContext.Provider\n value={{\n releaseNote,\n isReleaseNoteSelected,\n setIsReleaseNoteSelected,\n }}\n >\n <Header\n {...rest}\n className={`${className} min-[752px]:!shr-hidden`}\n tenants={isMenuAvailable ? undefined : tenants}\n >\n {children}\n\n <Help helpPageUrl={helpPageUrl} schoolUrl={schoolUrl} />\n\n <UserInfo {...userInfo} locale={locale} />\n\n {isMenuAvailable && (\n <Menu\n appName={appName}\n tenantSelector={\n <TenantSelector\n tenants={tenants}\n currentTenantId={currentTenantId}\n onTenantSelect={onTenantSelect}\n />\n }\n additionalContent={mobileAdditionalContent}\n />\n )}\n </Header>\n </ReleaseNoteContext.Provider>\n </NavigationContext.Provider>\n </AppLauncherContext.Provider>\n )\n}\n"],"names":["useState","_jsx","AppLauncherContext","NavigationContext","ReleaseNoteContext","_jsxs","Header","Help","UserInfo","Menu","TenantSelector"],"mappings":";;;;;;;;;;;;;;;;;AAcO,MAAM,YAAY,GAAoB,CAAC,EAC5C,WAAW,EACX,QAAQ,EACR,WAAW,EACX,SAAS,GAAG,EAAE,EACd,OAAO,EACP,QAAQ,EACR,WAAW,EACX,SAAS,EACT,QAAQ,EACR,OAAO,EACP,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,MAAM,EACN,GAAG,IAAI,EACR,KAAI;IACH,MAAM,CAAC,qBAAqB,EAAE,wBAAwB,CAAC,GAAGA,cAAQ,CAAC,KAAK,CAAC;IACzE,MAAM,CAAC,qBAAqB,EAAE,wBAAwB,CAAC,GAAGA,cAAQ,CAAC,KAAK,CAAC;IACzE,MAAM,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,GAAGA,cAAQ,CACpE,IAAI,CACL;;IAGD,MAAM,eAAe,GAAG,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC;AAE7D,IAAA,QACEC,cAAA,CAACC,4EAAkB,CAAC,QAAQ,EAAA,EAC1B,KAAK,EAAE;YACL,QAAQ;YACR,qBAAqB;YACrB,wBAAwB;AACzB,SAAA,EAAA,QAAA,EAEDD,eAACE,0EAAiB,CAAC,QAAQ,EAAA,EACzB,KAAK,EAAE;gBACL,WAAW,EAAE,WAAW,IAAI,EAAE;gBAC9B,uBAAuB;gBACvB,0BAA0B;AAC3B,aAAA,EAAA,QAAA,EAEDF,eAACG,4EAAkB,CAAC,QAAQ,EAAA,EAC1B,KAAK,EAAE;oBACL,WAAW;oBACX,qBAAqB;oBACrB,wBAAwB;
|
|
1
|
+
{"version":3,"file":"MobileHeader.cjs","sources":["../../../../../src/components/AppHeader/components/mobile/MobileHeader.tsx"],"sourcesContent":["import { type FC, useState } from 'react'\n\nimport { Header } from '../../../Header'\n\nimport { AppLauncherContext } from './AppLauncherContext'\nimport { Help } from './Help'\nimport { Menu } from './Menu'\nimport { NavigationContext } from './NavigationContext'\nimport { ReleaseNoteContext } from './ReleaseNoteContext'\nimport { TenantSelector } from './TenantSelector'\nimport { UserInfo } from './UserInfo'\n\nimport type { HeaderProps, NavigationGroup } from '../../types'\n\nexport const MobileHeader: FC<HeaderProps> = ({\n navigations,\n features,\n releaseNote,\n className = '',\n tenants,\n children,\n helpPageUrl,\n schoolUrl,\n userInfo,\n appName,\n currentTenantId,\n onTenantSelect,\n mobileAdditionalContent,\n locale,\n ...rest\n}) => {\n const [isAppLauncherSelected, setIsAppLauncherSelected] = useState(false)\n const [isReleaseNoteSelected, setIsReleaseNoteSelected] = useState(false)\n const [selectedNavigationGroup, setSelectedNavigationGroup] = useState<NavigationGroup | null>(\n null,\n )\n\n // navigations の設定をメニューの解放条件とする\n const isMenuAvailable = navigations && navigations.length > 0\n\n return (\n <AppLauncherContext.Provider\n value={{\n features,\n isAppLauncherSelected,\n setIsAppLauncherSelected,\n }}\n >\n <NavigationContext.Provider\n value={{\n navigations: navigations ?? [],\n selectedNavigationGroup,\n setSelectedNavigationGroup,\n }}\n >\n <ReleaseNoteContext.Provider\n value={{\n releaseNote,\n isReleaseNoteSelected,\n setIsReleaseNoteSelected,\n }}\n >\n <Header\n {...rest}\n className={`${className} min-[752px]:!shr-hidden`}\n tenants={isMenuAvailable ? undefined : tenants}\n currentTenantId={isMenuAvailable ? undefined : currentTenantId}\n onTenantSelect={isMenuAvailable ? undefined : onTenantSelect}\n >\n {children}\n\n <Help helpPageUrl={helpPageUrl} schoolUrl={schoolUrl} />\n\n <UserInfo {...userInfo} locale={locale} />\n\n {isMenuAvailable && (\n <Menu\n appName={appName}\n tenantSelector={\n <TenantSelector\n tenants={tenants}\n currentTenantId={currentTenantId}\n onTenantSelect={onTenantSelect}\n />\n }\n additionalContent={mobileAdditionalContent}\n />\n )}\n </Header>\n </ReleaseNoteContext.Provider>\n </NavigationContext.Provider>\n </AppLauncherContext.Provider>\n )\n}\n"],"names":["useState","_jsx","AppLauncherContext","NavigationContext","ReleaseNoteContext","_jsxs","Header","Help","UserInfo","Menu","TenantSelector"],"mappings":";;;;;;;;;;;;;;;;;AAcO,MAAM,YAAY,GAAoB,CAAC,EAC5C,WAAW,EACX,QAAQ,EACR,WAAW,EACX,SAAS,GAAG,EAAE,EACd,OAAO,EACP,QAAQ,EACR,WAAW,EACX,SAAS,EACT,QAAQ,EACR,OAAO,EACP,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,MAAM,EACN,GAAG,IAAI,EACR,KAAI;IACH,MAAM,CAAC,qBAAqB,EAAE,wBAAwB,CAAC,GAAGA,cAAQ,CAAC,KAAK,CAAC;IACzE,MAAM,CAAC,qBAAqB,EAAE,wBAAwB,CAAC,GAAGA,cAAQ,CAAC,KAAK,CAAC;IACzE,MAAM,CAAC,uBA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AC1C,CACH,CAAA,EAAA,CACM,EAAA,CACmB,EAAA,CACH,EAAA,CACD;AAElC;;;;"}
|
|
@@ -31,7 +31,7 @@ const MobileHeader = ({ navigations, features, releaseNote, className = '', tena
|
|
|
31
31
|
releaseNote,
|
|
32
32
|
isReleaseNoteSelected,
|
|
33
33
|
setIsReleaseNoteSelected,
|
|
34
|
-
}, children: jsxs(Header, { ...rest, className: `${className} min-[752px]:!shr-hidden`, tenants: isMenuAvailable ? undefined : tenants, children: [children, jsx(Help, { helpPageUrl: helpPageUrl, schoolUrl: schoolUrl }), jsx(UserInfo, { ...userInfo, locale: locale }), isMenuAvailable && (jsx(Menu, { appName: appName, tenantSelector: jsx(TenantSelector, { tenants: tenants, currentTenantId: currentTenantId, onTenantSelect: onTenantSelect }), additionalContent: mobileAdditionalContent }))] }) }) }) }));
|
|
34
|
+
}, children: jsxs(Header, { ...rest, className: `${className} min-[752px]:!shr-hidden`, tenants: isMenuAvailable ? undefined : tenants, currentTenantId: isMenuAvailable ? undefined : currentTenantId, onTenantSelect: isMenuAvailable ? undefined : onTenantSelect, children: [children, jsx(Help, { helpPageUrl: helpPageUrl, schoolUrl: schoolUrl }), jsx(UserInfo, { ...userInfo, locale: locale }), isMenuAvailable && (jsx(Menu, { appName: appName, tenantSelector: jsx(TenantSelector, { tenants: tenants, currentTenantId: currentTenantId, onTenantSelect: onTenantSelect }), additionalContent: mobileAdditionalContent }))] }) }) }) }));
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
export { MobileHeader };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileHeader.js","sources":["../../../../../src/components/AppHeader/components/mobile/MobileHeader.tsx"],"sourcesContent":["import { type FC, useState } from 'react'\n\nimport { Header } from '../../../Header'\n\nimport { AppLauncherContext } from './AppLauncherContext'\nimport { Help } from './Help'\nimport { Menu } from './Menu'\nimport { NavigationContext } from './NavigationContext'\nimport { ReleaseNoteContext } from './ReleaseNoteContext'\nimport { TenantSelector } from './TenantSelector'\nimport { UserInfo } from './UserInfo'\n\nimport type { HeaderProps, NavigationGroup } from '../../types'\n\nexport const MobileHeader: FC<HeaderProps> = ({\n navigations,\n features,\n releaseNote,\n className = '',\n tenants,\n children,\n helpPageUrl,\n schoolUrl,\n userInfo,\n appName,\n currentTenantId,\n onTenantSelect,\n mobileAdditionalContent,\n locale,\n ...rest\n}) => {\n const [isAppLauncherSelected, setIsAppLauncherSelected] = useState(false)\n const [isReleaseNoteSelected, setIsReleaseNoteSelected] = useState(false)\n const [selectedNavigationGroup, setSelectedNavigationGroup] = useState<NavigationGroup | null>(\n null,\n )\n\n // navigations の設定をメニューの解放条件とする\n const isMenuAvailable = navigations && navigations.length > 0\n\n return (\n <AppLauncherContext.Provider\n value={{\n features,\n isAppLauncherSelected,\n setIsAppLauncherSelected,\n }}\n >\n <NavigationContext.Provider\n value={{\n navigations: navigations ?? [],\n selectedNavigationGroup,\n setSelectedNavigationGroup,\n }}\n >\n <ReleaseNoteContext.Provider\n value={{\n releaseNote,\n isReleaseNoteSelected,\n setIsReleaseNoteSelected,\n }}\n >\n <Header\n {...rest}\n className={`${className} min-[752px]:!shr-hidden`}\n tenants={isMenuAvailable ? undefined : tenants}\n >\n {children}\n\n <Help helpPageUrl={helpPageUrl} schoolUrl={schoolUrl} />\n\n <UserInfo {...userInfo} locale={locale} />\n\n {isMenuAvailable && (\n <Menu\n appName={appName}\n tenantSelector={\n <TenantSelector\n tenants={tenants}\n currentTenantId={currentTenantId}\n onTenantSelect={onTenantSelect}\n />\n }\n additionalContent={mobileAdditionalContent}\n />\n )}\n </Header>\n </ReleaseNoteContext.Provider>\n </NavigationContext.Provider>\n </AppLauncherContext.Provider>\n )\n}\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;AAcO,MAAM,YAAY,GAAoB,CAAC,EAC5C,WAAW,EACX,QAAQ,EACR,WAAW,EACX,SAAS,GAAG,EAAE,EACd,OAAO,EACP,QAAQ,EACR,WAAW,EACX,SAAS,EACT,QAAQ,EACR,OAAO,EACP,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,MAAM,EACN,GAAG,IAAI,EACR,KAAI;IACH,MAAM,CAAC,qBAAqB,EAAE,wBAAwB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC;IACzE,MAAM,CAAC,qBAAqB,EAAE,wBAAwB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC;IACzE,MAAM,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,GAAG,QAAQ,CACpE,IAAI,CACL;;IAGD,MAAM,eAAe,GAAG,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC;AAE7D,IAAA,QACEA,GAAA,CAAC,kBAAkB,CAAC,QAAQ,EAAA,EAC1B,KAAK,EAAE;YACL,QAAQ;YACR,qBAAqB;YACrB,wBAAwB;AACzB,SAAA,EAAA,QAAA,EAEDA,IAAC,iBAAiB,CAAC,QAAQ,EAAA,EACzB,KAAK,EAAE;gBACL,WAAW,EAAE,WAAW,IAAI,EAAE;gBAC9B,uBAAuB;gBACvB,0BAA0B;AAC3B,aAAA,EAAA,QAAA,EAEDA,IAAC,kBAAkB,CAAC,QAAQ,EAAA,EAC1B,KAAK,EAAE;oBACL,WAAW;oBACX,qBAAqB;oBACrB,wBAAwB;
|
|
1
|
+
{"version":3,"file":"MobileHeader.js","sources":["../../../../../src/components/AppHeader/components/mobile/MobileHeader.tsx"],"sourcesContent":["import { type FC, useState } from 'react'\n\nimport { Header } from '../../../Header'\n\nimport { AppLauncherContext } from './AppLauncherContext'\nimport { Help } from './Help'\nimport { Menu } from './Menu'\nimport { NavigationContext } from './NavigationContext'\nimport { ReleaseNoteContext } from './ReleaseNoteContext'\nimport { TenantSelector } from './TenantSelector'\nimport { UserInfo } from './UserInfo'\n\nimport type { HeaderProps, NavigationGroup } from '../../types'\n\nexport const MobileHeader: FC<HeaderProps> = ({\n navigations,\n features,\n releaseNote,\n className = '',\n tenants,\n children,\n helpPageUrl,\n schoolUrl,\n userInfo,\n appName,\n currentTenantId,\n onTenantSelect,\n mobileAdditionalContent,\n locale,\n ...rest\n}) => {\n const [isAppLauncherSelected, setIsAppLauncherSelected] = useState(false)\n const [isReleaseNoteSelected, setIsReleaseNoteSelected] = useState(false)\n const [selectedNavigationGroup, setSelectedNavigationGroup] = useState<NavigationGroup | null>(\n null,\n )\n\n // navigations の設定をメニューの解放条件とする\n const isMenuAvailable = navigations && navigations.length > 0\n\n return (\n <AppLauncherContext.Provider\n value={{\n features,\n isAppLauncherSelected,\n setIsAppLauncherSelected,\n }}\n >\n <NavigationContext.Provider\n value={{\n navigations: navigations ?? [],\n selectedNavigationGroup,\n setSelectedNavigationGroup,\n }}\n >\n <ReleaseNoteContext.Provider\n value={{\n releaseNote,\n isReleaseNoteSelected,\n setIsReleaseNoteSelected,\n }}\n >\n <Header\n {...rest}\n className={`${className} min-[752px]:!shr-hidden`}\n tenants={isMenuAvailable ? undefined : tenants}\n currentTenantId={isMenuAvailable ? undefined : currentTenantId}\n onTenantSelect={isMenuAvailable ? undefined : onTenantSelect}\n >\n {children}\n\n <Help helpPageUrl={helpPageUrl} schoolUrl={schoolUrl} />\n\n <UserInfo {...userInfo} locale={locale} />\n\n {isMenuAvailable && (\n <Menu\n appName={appName}\n tenantSelector={\n <TenantSelector\n tenants={tenants}\n currentTenantId={currentTenantId}\n onTenantSelect={onTenantSelect}\n />\n }\n additionalContent={mobileAdditionalContent}\n />\n )}\n </Header>\n </ReleaseNoteContext.Provider>\n </NavigationContext.Provider>\n </AppLauncherContext.Provider>\n )\n}\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;AAcO,MAAM,YAAY,GAAoB,CAAC,EAC5C,WAAW,EACX,QAAQ,EACR,WAAW,EACX,SAAS,GAAG,EAAE,EACd,OAAO,EACP,QAAQ,EACR,WAAW,EACX,SAAS,EACT,QAAQ,EACR,OAAO,EACP,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,MAAM,EACN,GAAG,I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H,OAAO,EAAE,OAAO,EAChB,cAAc,EACZA,GAAA,CAAC,cAAc,EAAA,EACb,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,cAAc,EAAA,CAC9B,EAEJ,iBAAiB,EAAE,uBAAuB,EAAA,CAC1C,CACH,CAAA,EAAA,CACM,EAAA,CACmB,EAAA,CACH,EAAA,CACD;AAElC;;;;"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index = require('./../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
5
|
+
var index = require('./../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.cjs');
|
|
6
6
|
var components_Text_Text = require('../../../Text/Text.cjs');
|
|
7
7
|
var components_AppHeader_utils = require('../../utils.cjs');
|
|
8
8
|
var components_AppHeader_components_mobile_NavigationItem = require('./NavigationItem.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { memo, useMemo } from 'react';
|
|
3
|
-
import { tv as ce } from './../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
3
|
+
import { tv as ce } from './../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.js';
|
|
4
4
|
import { Text } from '../../../Text/Text.js';
|
|
5
5
|
import { isChildNavigationGroup } from '../../utils.js';
|
|
6
6
|
import { NavigationItem } from './NavigationItem.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var index = require('./../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
6
|
+
var index = require('./../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.cjs');
|
|
7
7
|
var hooks_useLatest = require('../../../../hooks/useLatest.cjs');
|
|
8
8
|
var components_AppHeader_utils = require('../../utils.cjs');
|
|
9
9
|
var components_AppHeader_components_common_CommonButton = require('../common/CommonButton.cjs');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { memo, useMemo, useContext } from 'react';
|
|
4
|
-
import { tv as ce } from './../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
4
|
+
import { tv as ce } from './../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.js';
|
|
5
5
|
import { useLatest } from '../../../../hooks/useLatest.js';
|
|
6
6
|
import { isChildNavigation } from '../../utils.js';
|
|
7
7
|
import { commonButtonClassNameGenerator, CommonButton } from '../common/CommonButton.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index = require('./../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
5
|
+
var index = require('./../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.cjs');
|
|
6
6
|
require('../../../../intl/IntlProvider.cjs');
|
|
7
7
|
require('react-intl');
|
|
8
8
|
var intl_Localizer = require('../../../../intl/Localizer.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { memo, useContext } from 'react';
|
|
3
|
-
import { tv as ce } from './../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
3
|
+
import { tv as ce } from './../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.js';
|
|
4
4
|
import '../../../../intl/IntlProvider.js';
|
|
5
5
|
import 'react-intl';
|
|
6
6
|
import { Localizer } from '../../../../intl/Localizer.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index = require('./../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
5
|
+
var index = require('./../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.cjs');
|
|
6
6
|
var hooks_useLatest = require('../../../../hooks/useLatest.cjs');
|
|
7
7
|
var components_Dropdown_Dropdown = require('../../../Dropdown/Dropdown.cjs');
|
|
8
8
|
var components_Dropdown_DropdownTrigger = require('../../../Dropdown/DropdownTrigger.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { memo, useMemo } from 'react';
|
|
3
|
-
import { tv as ce } from './../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
3
|
+
import { tv as ce } from './../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.js';
|
|
4
4
|
import { useLatest } from '../../../../hooks/useLatest.js';
|
|
5
5
|
import { Dropdown } from '../../../Dropdown/Dropdown.js';
|
|
6
6
|
import { DropdownTrigger } from '../../../Dropdown/DropdownTrigger.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index = require('./../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
5
|
+
var index = require('./../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.cjs');
|
|
6
6
|
require('../../../../intl/IntlProvider.cjs');
|
|
7
7
|
require('react-intl');
|
|
8
8
|
var intl_Localizer = require('../../../../intl/Localizer.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { memo, useMemo, useState } from 'react';
|
|
3
|
-
import { tv as ce } from './../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
3
|
+
import { tv as ce } from './../../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.js';
|
|
4
4
|
import '../../../../intl/IntlProvider.js';
|
|
5
5
|
import 'react-intl';
|
|
6
6
|
import { Localizer } from '../../../../intl/Localizer.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
+
var hooks_useAnimationFrame = require('../../../hooks/useAnimationFrame.cjs');
|
|
4
5
|
|
|
5
6
|
const useAppLauncher = (baseFeatures) => {
|
|
6
7
|
const [page, setPage] = React.useState('favorite');
|
|
@@ -36,12 +37,18 @@ const useAppLauncher = (baseFeatures) => {
|
|
|
36
37
|
}
|
|
37
38
|
}, [mode]);
|
|
38
39
|
const onChangeSearchQuery = React.useCallback((e) => changeSearchQuery(e.currentTarget.value), [changeSearchQuery]);
|
|
40
|
+
const clearSearchQueryFrame = hooks_useAnimationFrame.useAnimationFrame();
|
|
39
41
|
const onClickClearSearchQuery = React.useCallback(() => {
|
|
40
42
|
// HINT: 別のスレッドにしないとドロップダウンが閉じてしまう
|
|
41
|
-
|
|
43
|
+
clearSearchQueryFrame.request(() => {
|
|
42
44
|
changeSearchQuery('');
|
|
43
45
|
});
|
|
44
|
-
}, [changeSearchQuery]);
|
|
46
|
+
}, [changeSearchQuery, clearSearchQueryFrame]);
|
|
47
|
+
const callbackRef = React.useCallback((node) => {
|
|
48
|
+
if (!node) {
|
|
49
|
+
clearSearchQueryFrame.cancel();
|
|
50
|
+
}
|
|
51
|
+
}, [clearSearchQueryFrame]);
|
|
45
52
|
return {
|
|
46
53
|
features,
|
|
47
54
|
page,
|
|
@@ -52,6 +59,7 @@ const useAppLauncher = (baseFeatures) => {
|
|
|
52
59
|
setSortType,
|
|
53
60
|
onChangeSearchQuery,
|
|
54
61
|
onClickClearSearchQuery,
|
|
62
|
+
callbackRef,
|
|
55
63
|
};
|
|
56
64
|
};
|
|
57
65
|
const sortFeatures = (features, { page, sortType, mode, searchQuery, }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppLauncher.cjs","sources":["../../../../src/components/AppHeader/hooks/useAppLauncher.ts"],"sourcesContent":["import { type ChangeEvent, useCallback, useEffect, useState } from 'react'\n\nimport type { Launcher } from '../types'\n\nexport const useAppLauncher = (baseFeatures: Array<Launcher['feature']>) => {\n const [page, setPage] = useState<Launcher['page']>('favorite')\n const [mode, setMode] = useState<Launcher['mode']>('default')\n const [sortType, setSortType] = useState<Launcher['sortType']>('default')\n const [searchQuery, setSearchQuery] = useState('')\n const [features, setFeatures] = useState<Array<Launcher['feature']>>(\n sortFeatures(baseFeatures, {\n page,\n mode,\n sortType,\n searchQuery,\n }),\n )\n\n useEffect(() => {\n setFeatures(\n sortFeatures(baseFeatures, {\n page,\n sortType,\n mode,\n searchQuery,\n }),\n )\n }, [baseFeatures, page, mode, sortType, searchQuery])\n\n const changePage = useCallback((newPage: Launcher['page']) => {\n setPage(newPage)\n setMode('default')\n setSearchQuery('')\n }, [])\n\n const changeSearchQuery = useCallback(\n (q: string) => {\n setSearchQuery(q)\n\n if (mode !== 'search') {\n setMode('search')\n } else if (q === '') {\n setMode('default')\n }\n },\n [mode],\n )\n\n const onChangeSearchQuery = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => changeSearchQuery(e.currentTarget.value),\n [changeSearchQuery],\n )\n const onClickClearSearchQuery = useCallback(() => {\n // HINT: 別のスレッドにしないとドロップダウンが閉じてしまう\n
|
|
1
|
+
{"version":3,"file":"useAppLauncher.cjs","sources":["../../../../src/components/AppHeader/hooks/useAppLauncher.ts"],"sourcesContent":["import { type ChangeEvent, useCallback, useEffect, useState } from 'react'\n\nimport { useAnimationFrame } from '../../../hooks/useAnimationFrame'\n\nimport type { Launcher } from '../types'\n\nexport const useAppLauncher = (baseFeatures: Array<Launcher['feature']>) => {\n const [page, setPage] = useState<Launcher['page']>('favorite')\n const [mode, setMode] = useState<Launcher['mode']>('default')\n const [sortType, setSortType] = useState<Launcher['sortType']>('default')\n const [searchQuery, setSearchQuery] = useState('')\n const [features, setFeatures] = useState<Array<Launcher['feature']>>(\n sortFeatures(baseFeatures, {\n page,\n mode,\n sortType,\n searchQuery,\n }),\n )\n\n useEffect(() => {\n setFeatures(\n sortFeatures(baseFeatures, {\n page,\n sortType,\n mode,\n searchQuery,\n }),\n )\n }, [baseFeatures, page, mode, sortType, searchQuery])\n\n const changePage = useCallback((newPage: Launcher['page']) => {\n setPage(newPage)\n setMode('default')\n setSearchQuery('')\n }, [])\n\n const changeSearchQuery = useCallback(\n (q: string) => {\n setSearchQuery(q)\n\n if (mode !== 'search') {\n setMode('search')\n } else if (q === '') {\n setMode('default')\n }\n },\n [mode],\n )\n\n const onChangeSearchQuery = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => changeSearchQuery(e.currentTarget.value),\n [changeSearchQuery],\n )\n\n const clearSearchQueryFrame = useAnimationFrame()\n\n const onClickClearSearchQuery = useCallback(() => {\n // HINT: 別のスレッドにしないとドロップダウンが閉じてしまう\n clearSearchQueryFrame.request(() => {\n changeSearchQuery('')\n })\n }, [changeSearchQuery, clearSearchQueryFrame])\n\n const callbackRef = useCallback(\n (node: HTMLElement | null) => {\n if (!node) {\n clearSearchQueryFrame.cancel()\n }\n },\n [clearSearchQueryFrame],\n )\n\n return {\n features,\n page,\n mode,\n sortType,\n searchQuery,\n changePage,\n setSortType,\n onChangeSearchQuery,\n onClickClearSearchQuery,\n callbackRef,\n }\n}\n\nconst sortFeatures = (\n features: Array<Launcher['feature']>,\n {\n page,\n sortType,\n mode,\n searchQuery,\n }: {\n page: Launcher['page']\n sortType: Launcher['sortType']\n mode: Launcher['mode']\n searchQuery: string\n },\n) => {\n if (mode !== 'search' && page === 'favorite') {\n const filtered = features.filter((item) => item.favorite)\n\n // feature の position の数値の順に並び替える。position が null または undefined の場合は最後に並べる\n return filtered.sort((a, b) => {\n if (a.position === null || a.position === undefined) {\n if (b.position === null || b.position === undefined) {\n return 0\n }\n\n return 1\n } else if (b.position === null || b.position === undefined) {\n return -1\n }\n\n return a.position - b.position\n })\n }\n\n const looseSearchQuery = normalize(searchQuery)\n const featuresRes =\n mode === 'search'\n ? features.filter((feature) => looseInclude(looseSearchQuery, feature.name))\n : [...features]\n\n switch (sortType) {\n case 'name/asc':\n return featuresRes.sort((a, b) => a.name.localeCompare(b.name))\n case 'name/desc':\n return featuresRes.sort((a, b) => b.name.localeCompare(a.name))\n }\n\n return featuresRes\n}\n\nexport const looseInclude = (looseSearchQuery: string, featureName: string) =>\n // HINT: normalizeは1文字ずつ変換処理を行う関係で思いため、変換せずにマッチするかどうかを確認する\n featureName.includes(looseSearchQuery) || normalize(featureName).includes(looseSearchQuery)\n\n// アルファベットの大文字小文字は同じものとして扱う。カタカナとひらがなも同じものとして扱う。\nconst normalize = (str: string) =>\n str.toLowerCase().replace(NORMALIZE_REGEX, (c) => String.fromCharCode(c.charCodeAt(0) - 0x60))\n\nconst NORMALIZE_REGEX = /[\\u30a1-\\u30f6]/g\n"],"names":["useState","useEffect","useCallback","useAnimationFrame"],"mappings":";;;;;AAMO,MAAM,cAAc,GAAG,CAAC,YAAwC,KAAI;IACzE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAGA,cAAQ,CAAmB,UAAU,CAAC;IAC9D,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAGA,cAAQ,CAAmB,SAAS,CAAC;IAC7D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAGA,cAAQ,CAAuB,SAAS,CAAC;IACzE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAGA,cAAQ,CAAC,EAAE,CAAC;IAClD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAGA,cAAQ,CACtC,YAAY,CAAC,YAAY,EAAE;QACzB,IAAI;QACJ,IAAI;QACJ,QAAQ;QACR,WAAW;AACZ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,IAAI,CAAC;AAC3E,UAAE,CAAC,GAAG,QAAQ,CAAC;IAEnB,QAAQ,QAAQ;AACd,QAAA,KAAK,UAAU;YACb,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AACjE,QAAA,KAAK,WAAW;YACd,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;;AAGnE,IAAA,OAAO,WAAW;AACpB,CAAC;MAEY,YAAY,GAAG,CAAC,gBAAwB,EAAE,WAAmB;AACxE;AACA,WAAW,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,SAAS,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,gBAAgB;AAE5F;AACA,MAAM,SAAS,GAAG,CAAC,GAAW,KAC5B,GAAG,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;AAEhG,MAAM,eAAe,GAAG,kBAAkB;;;;;"}
|
|
@@ -16,5 +16,6 @@ export declare const useAppLauncher: (baseFeatures: Array<Launcher["feature"]>)
|
|
|
16
16
|
setSortType: import("react").Dispatch<import("react").SetStateAction<"default" | "name/asc" | "name/desc">>;
|
|
17
17
|
onChangeSearchQuery: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
18
18
|
onClickClearSearchQuery: () => void;
|
|
19
|
+
callbackRef: (node: HTMLElement | null) => void;
|
|
19
20
|
};
|
|
20
21
|
export declare const looseInclude: (looseSearchQuery: string, featureName: string) => boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useState, useEffect, useCallback } from 'react';
|
|
2
|
+
import { useAnimationFrame } from '../../../hooks/useAnimationFrame.js';
|
|
2
3
|
|
|
3
4
|
const useAppLauncher = (baseFeatures) => {
|
|
4
5
|
const [page, setPage] = useState('favorite');
|
|
@@ -34,12 +35,18 @@ const useAppLauncher = (baseFeatures) => {
|
|
|
34
35
|
}
|
|
35
36
|
}, [mode]);
|
|
36
37
|
const onChangeSearchQuery = useCallback((e) => changeSearchQuery(e.currentTarget.value), [changeSearchQuery]);
|
|
38
|
+
const clearSearchQueryFrame = useAnimationFrame();
|
|
37
39
|
const onClickClearSearchQuery = useCallback(() => {
|
|
38
40
|
// HINT: 別のスレッドにしないとドロップダウンが閉じてしまう
|
|
39
|
-
|
|
41
|
+
clearSearchQueryFrame.request(() => {
|
|
40
42
|
changeSearchQuery('');
|
|
41
43
|
});
|
|
42
|
-
}, [changeSearchQuery]);
|
|
44
|
+
}, [changeSearchQuery, clearSearchQueryFrame]);
|
|
45
|
+
const callbackRef = useCallback((node) => {
|
|
46
|
+
if (!node) {
|
|
47
|
+
clearSearchQueryFrame.cancel();
|
|
48
|
+
}
|
|
49
|
+
}, [clearSearchQueryFrame]);
|
|
43
50
|
return {
|
|
44
51
|
features,
|
|
45
52
|
page,
|
|
@@ -50,6 +57,7 @@ const useAppLauncher = (baseFeatures) => {
|
|
|
50
57
|
setSortType,
|
|
51
58
|
onChangeSearchQuery,
|
|
52
59
|
onClickClearSearchQuery,
|
|
60
|
+
callbackRef,
|
|
53
61
|
};
|
|
54
62
|
};
|
|
55
63
|
const sortFeatures = (features, { page, sortType, mode, searchQuery, }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppLauncher.js","sources":["../../../../src/components/AppHeader/hooks/useAppLauncher.ts"],"sourcesContent":["import { type ChangeEvent, useCallback, useEffect, useState } from 'react'\n\nimport type { Launcher } from '../types'\n\nexport const useAppLauncher = (baseFeatures: Array<Launcher['feature']>) => {\n const [page, setPage] = useState<Launcher['page']>('favorite')\n const [mode, setMode] = useState<Launcher['mode']>('default')\n const [sortType, setSortType] = useState<Launcher['sortType']>('default')\n const [searchQuery, setSearchQuery] = useState('')\n const [features, setFeatures] = useState<Array<Launcher['feature']>>(\n sortFeatures(baseFeatures, {\n page,\n mode,\n sortType,\n searchQuery,\n }),\n )\n\n useEffect(() => {\n setFeatures(\n sortFeatures(baseFeatures, {\n page,\n sortType,\n mode,\n searchQuery,\n }),\n )\n }, [baseFeatures, page, mode, sortType, searchQuery])\n\n const changePage = useCallback((newPage: Launcher['page']) => {\n setPage(newPage)\n setMode('default')\n setSearchQuery('')\n }, [])\n\n const changeSearchQuery = useCallback(\n (q: string) => {\n setSearchQuery(q)\n\n if (mode !== 'search') {\n setMode('search')\n } else if (q === '') {\n setMode('default')\n }\n },\n [mode],\n )\n\n const onChangeSearchQuery = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => changeSearchQuery(e.currentTarget.value),\n [changeSearchQuery],\n )\n const onClickClearSearchQuery = useCallback(() => {\n // HINT: 別のスレッドにしないとドロップダウンが閉じてしまう\n
|
|
1
|
+
{"version":3,"file":"useAppLauncher.js","sources":["../../../../src/components/AppHeader/hooks/useAppLauncher.ts"],"sourcesContent":["import { type ChangeEvent, useCallback, useEffect, useState } from 'react'\n\nimport { useAnimationFrame } from '../../../hooks/useAnimationFrame'\n\nimport type { Launcher } from '../types'\n\nexport const useAppLauncher = (baseFeatures: Array<Launcher['feature']>) => {\n const [page, setPage] = useState<Launcher['page']>('favorite')\n const [mode, setMode] = useState<Launcher['mode']>('default')\n const [sortType, setSortType] = useState<Launcher['sortType']>('default')\n const [searchQuery, setSearchQuery] = useState('')\n const [features, setFeatures] = useState<Array<Launcher['feature']>>(\n sortFeatures(baseFeatures, {\n page,\n mode,\n sortType,\n searchQuery,\n }),\n )\n\n useEffect(() => {\n setFeatures(\n sortFeatures(baseFeatures, {\n page,\n sortType,\n mode,\n searchQuery,\n }),\n )\n }, [baseFeatures, page, mode, sortType, searchQuery])\n\n const changePage = useCallback((newPage: Launcher['page']) => {\n setPage(newPage)\n setMode('default')\n setSearchQuery('')\n }, [])\n\n const changeSearchQuery = useCallback(\n (q: string) => {\n setSearchQuery(q)\n\n if (mode !== 'search') {\n setMode('search')\n } else if (q === '') {\n setMode('default')\n }\n },\n [mode],\n )\n\n const onChangeSearchQuery = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => changeSearchQuery(e.currentTarget.value),\n [changeSearchQuery],\n )\n\n const clearSearchQueryFrame = useAnimationFrame()\n\n const onClickClearSearchQuery = useCallback(() => {\n // HINT: 別のスレッドにしないとドロップダウンが閉じてしまう\n clearSearchQueryFrame.request(() => {\n changeSearchQuery('')\n })\n }, [changeSearchQuery, clearSearchQueryFrame])\n\n const callbackRef = useCallback(\n (node: HTMLElement | null) => {\n if (!node) {\n clearSearchQueryFrame.cancel()\n }\n },\n [clearSearchQueryFrame],\n )\n\n return {\n features,\n page,\n mode,\n sortType,\n searchQuery,\n changePage,\n setSortType,\n onChangeSearchQuery,\n onClickClearSearchQuery,\n callbackRef,\n }\n}\n\nconst sortFeatures = (\n features: Array<Launcher['feature']>,\n {\n page,\n sortType,\n mode,\n searchQuery,\n }: {\n page: Launcher['page']\n sortType: Launcher['sortType']\n mode: Launcher['mode']\n searchQuery: string\n },\n) => {\n if (mode !== 'search' && page === 'favorite') {\n const filtered = features.filter((item) => item.favorite)\n\n // feature の position の数値の順に並び替える。position が null または undefined の場合は最後に並べる\n return filtered.sort((a, b) => {\n if (a.position === null || a.position === undefined) {\n if (b.position === null || b.position === undefined) {\n return 0\n }\n\n return 1\n } else if (b.position === null || b.position === undefined) {\n return -1\n }\n\n return a.position - b.position\n })\n }\n\n const looseSearchQuery = normalize(searchQuery)\n const featuresRes =\n mode === 'search'\n ? features.filter((feature) => looseInclude(looseSearchQuery, feature.name))\n : [...features]\n\n switch (sortType) {\n case 'name/asc':\n return featuresRes.sort((a, b) => a.name.localeCompare(b.name))\n case 'name/desc':\n return featuresRes.sort((a, b) => b.name.localeCompare(a.name))\n }\n\n return featuresRes\n}\n\nexport const looseInclude = (looseSearchQuery: string, featureName: string) =>\n // HINT: normalizeは1文字ずつ変換処理を行う関係で思いため、変換せずにマッチするかどうかを確認する\n featureName.includes(looseSearchQuery) || normalize(featureName).includes(looseSearchQuery)\n\n// アルファベットの大文字小文字は同じものとして扱う。カタカナとひらがなも同じものとして扱う。\nconst normalize = (str: string) =>\n str.toLowerCase().replace(NORMALIZE_REGEX, (c) => String.fromCharCode(c.charCodeAt(0) - 0x60))\n\nconst NORMALIZE_REGEX = /[\\u30a1-\\u30f6]/g\n"],"names":[],"mappings":";;;AAMO,MAAM,cAAc,GAAG,CAAC,YAAwC,KAAI;IACzE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAmB,UAAU,CAAC;IAC9D,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAmB,SAAS,CAAC;IAC7D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAuB,SAAS,CAAC;IACzE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC;IAClD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CACtC,YAAY,CAAC,YAAY,EAAE;QACzB,IAAI;QACJ,IAAI;QACJ,QAAQ;QACR,WAAW;AACZ,KAAA,CAAC,CACH;IAED,SAAS,CAAC,MAAK;AACb,QAAA,WAAW,CACT,YAAY,CAAC,YAAY,EAAE;YACzB,IAAI;YACJ,QAAQ;YACR,IAAI;YACJ,WAAW;AACZ,SAAA,CAAC,CACH;AACH,IAAA,CAAC,EAAE,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;AAErD,IAAA,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,OAAyB,KAAI;QAC3D,OAAO,CAAC,OAAO,CAAC;QAChB,OAAO,CAAC,SAAS,CAAC;QAClB,cAA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WAAW;AACpB,CAAC;MAEY,YAAY,GAAG,CAAC,gBAAwB,EAAE,WAAmB;AACxE;AACA,WAAW,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,SAAS,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,gBAAgB;AAE5F;AACA,MAAM,SAAS,GAAG,CAAC,GAAW,KAC5B,GAAG,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;AAEhG,MAAM,eAAe,GAAG,kBAAkB;;;;"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index = require('./../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
5
|
+
var index = require('./../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.cjs');
|
|
6
6
|
var components_SectioningContent_SectioningContent = require('../SectioningContent/SectioningContent.cjs');
|
|
7
7
|
require('../SectioningContent/levelContext.cjs');
|
|
8
8
|
require('styled-components');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { memo, useId, useMemo, Children, isValidElement, Fragment } from 'react';
|
|
3
|
-
import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
3
|
+
import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.js';
|
|
4
4
|
import { Nav } from '../SectioningContent/SectioningContent.js';
|
|
5
5
|
import '../SectioningContent/levelContext.js';
|
|
6
6
|
import 'styled-components';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index = require('./../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
5
|
+
var index = require('./../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.cjs');
|
|
6
6
|
var components_AppNavi_itemClassNameGenerator = require('./itemClassNameGenerator.cjs');
|
|
7
7
|
|
|
8
8
|
const classNameGenerator = index.tv({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef, useMemo } from 'react';
|
|
3
|
-
import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
3
|
+
import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.js';
|
|
4
4
|
import { itemClassNameGenerator } from './itemClassNameGenerator.js';
|
|
5
5
|
|
|
6
6
|
const classNameGenerator = ce({
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index = require('./../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
5
|
+
var index = require('./../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.cjs');
|
|
6
6
|
require('../Button/Button.cjs');
|
|
7
7
|
require('../Button/AnchorButton.cjs');
|
|
8
8
|
var components_Button_UnstyledButton = require('../Button/UnstyledButton.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
|
-
import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
3
|
+
import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.js';
|
|
4
4
|
import '../Button/Button.js';
|
|
5
5
|
import '../Button/AnchorButton.js';
|
|
6
6
|
import { UnstyledButton } from '../Button/UnstyledButton.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index = require('./../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
5
|
+
var index = require('./../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.cjs');
|
|
6
6
|
var components_AppNavi_itemClassNameGenerator = require('./itemClassNameGenerator.cjs');
|
|
7
7
|
|
|
8
8
|
const classNameGenerator = index.tv({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
|
-
import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
3
|
+
import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.js';
|
|
4
4
|
import { itemClassNameGenerator } from './itemClassNameGenerator.js';
|
|
5
5
|
|
|
6
6
|
const classNameGenerator = ce({
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index = require('./../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
5
|
+
var index = require('./../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.cjs');
|
|
6
6
|
require('../Button/Button.cjs');
|
|
7
7
|
require('../Button/AnchorButton.cjs');
|
|
8
8
|
var components_Button_UnstyledButton = require('../Button/UnstyledButton.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
|
-
import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
3
|
+
import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.js';
|
|
4
4
|
import '../Button/Button.js';
|
|
5
5
|
import '../Button/AnchorButton.js';
|
|
6
6
|
import { UnstyledButton } from '../Button/UnstyledButton.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index = require('./../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
5
|
+
var index = require('./../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.cjs');
|
|
6
6
|
require('../Dropdown/Dropdown.cjs');
|
|
7
7
|
require('../Dropdown/DropdownTrigger.cjs');
|
|
8
8
|
require('../Dropdown/DropdownContent.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { Children, isValidElement, Fragment as Fragment$1, cloneElement } from 'react';
|
|
3
|
-
import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@
|
|
3
|
+
import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.46_@swc_helper_93b9c5ee15e3d3d2221e194197be3b5c/vendor/tailwind-variants/dist/index.js';
|
|
4
4
|
import '../Dropdown/Dropdown.js';
|
|
5
5
|
import '../Dropdown/DropdownTrigger.js';
|
|
6
6
|
import '../Dropdown/DropdownContent.js';
|