smarthr-ui 99.4.0 → 99.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/AccordionPanel/AccordionPanelContent.cjs +1 -1
- package/lib/components/AccordionPanel/AccordionPanelContent.cjs.map +1 -1
- package/lib/components/AccordionPanel/AccordionPanelContent.js +1 -1
- package/lib/components/AccordionPanel/AccordionPanelContent.js.map +1 -1
- package/lib/components/AccordionPanel/AccordionPanelItem.cjs +1 -1
- package/lib/components/AccordionPanel/AccordionPanelItem.js +1 -1
- package/lib/components/AccordionPanel/AccordionPanelTrigger.cjs +2 -2
- package/lib/components/AccordionPanel/AccordionPanelTrigger.cjs.map +1 -1
- package/lib/components/AccordionPanel/AccordionPanelTrigger.js +2 -2
- package/lib/components/AccordionPanel/AccordionPanelTrigger.js.map +1 -1
- package/lib/components/AppHeader/AppHeader.cjs +35 -2
- package/lib/components/AppHeader/AppHeader.cjs.map +1 -1
- package/lib/components/AppHeader/AppHeader.js +35 -2
- package/lib/components/AppHeader/AppHeader.js.map +1 -1
- package/lib/components/AppHeader/components/common/AppLauncherFeatures.cjs +25 -3
- package/lib/components/AppHeader/components/common/AppLauncherFeatures.cjs.map +1 -1
- package/lib/components/AppHeader/components/common/AppLauncherFeatures.d.ts +2 -0
- package/lib/components/AppHeader/components/common/AppLauncherFeatures.js +25 -3
- package/lib/components/AppHeader/components/common/AppLauncherFeatures.js.map +1 -1
- package/lib/components/AppHeader/components/common/AppLauncherSortDropdown.cjs +5 -5
- package/lib/components/AppHeader/components/common/AppLauncherSortDropdown.cjs.map +1 -1
- package/lib/components/AppHeader/components/common/AppLauncherSortDropdown.js +4 -4
- package/lib/components/AppHeader/components/common/AppLauncherSortDropdown.js.map +1 -1
- package/lib/components/AppHeader/components/common/CommonButton.cjs +2 -2
- package/lib/components/AppHeader/components/common/CommonButton.cjs.map +1 -1
- package/lib/components/AppHeader/components/common/CommonButton.js +2 -2
- package/lib/components/AppHeader/components/common/CommonButton.js.map +1 -1
- package/lib/components/AppHeader/components/desktop/AppLauncher.cjs +7 -7
- package/lib/components/AppHeader/components/desktop/AppLauncher.cjs.map +1 -1
- package/lib/components/AppHeader/components/desktop/AppLauncher.d.ts +2 -0
- package/lib/components/AppHeader/components/desktop/AppLauncher.js +6 -6
- package/lib/components/AppHeader/components/desktop/AppLauncher.js.map +1 -1
- package/lib/components/AppHeader/components/desktop/DesktopHeader.cjs +3 -3
- package/lib/components/AppHeader/components/desktop/DesktopHeader.cjs.map +1 -1
- package/lib/components/AppHeader/components/desktop/DesktopHeader.d.ts +2 -2
- package/lib/components/AppHeader/components/desktop/DesktopHeader.js +3 -3
- package/lib/components/AppHeader/components/desktop/DesktopHeader.js.map +1 -1
- package/lib/components/AppHeader/components/desktop/Navigation.cjs +2 -2
- package/lib/components/AppHeader/components/desktop/Navigation.cjs.map +1 -1
- package/lib/components/AppHeader/components/desktop/Navigation.js +2 -2
- package/lib/components/AppHeader/components/desktop/Navigation.js.map +1 -1
- package/lib/components/AppHeader/components/desktop/ReleaseNotesDropdown.cjs +3 -3
- package/lib/components/AppHeader/components/desktop/ReleaseNotesDropdown.cjs.map +1 -1
- package/lib/components/AppHeader/components/desktop/ReleaseNotesDropdown.js +3 -3
- package/lib/components/AppHeader/components/desktop/ReleaseNotesDropdown.js.map +1 -1
- package/lib/components/AppHeader/components/desktop/UserInfo.cjs +2 -2
- package/lib/components/AppHeader/components/desktop/UserInfo.cjs.map +1 -1
- package/lib/components/AppHeader/components/desktop/UserInfo.js +2 -2
- package/lib/components/AppHeader/components/desktop/UserInfo.js.map +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.d.ts +2 -0
- 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/AppLauncherContext.cjs +8 -1
- package/lib/components/AppHeader/components/mobile/AppLauncherContext.cjs.map +1 -1
- package/lib/components/AppHeader/components/mobile/AppLauncherContext.d.ts +5 -1
- package/lib/components/AppHeader/components/mobile/AppLauncherContext.js +8 -1
- package/lib/components/AppHeader/components/mobile/AppLauncherContext.js.map +1 -1
- package/lib/components/AppHeader/components/mobile/AppLauncherFilterDropdown.cjs +6 -6
- package/lib/components/AppHeader/components/mobile/AppLauncherFilterDropdown.cjs.map +1 -1
- package/lib/components/AppHeader/components/mobile/AppLauncherFilterDropdown.js +5 -5
- package/lib/components/AppHeader/components/mobile/AppLauncherFilterDropdown.js.map +1 -1
- package/lib/components/AppHeader/components/mobile/LanguageSelector.cjs +3 -3
- package/lib/components/AppHeader/components/mobile/LanguageSelector.cjs.map +1 -1
- package/lib/components/AppHeader/components/mobile/LanguageSelector.js +3 -3
- package/lib/components/AppHeader/components/mobile/LanguageSelector.js.map +1 -1
- package/lib/components/AppHeader/components/mobile/Menu.cjs +17 -15
- package/lib/components/AppHeader/components/mobile/Menu.cjs.map +1 -1
- package/lib/components/AppHeader/components/mobile/Menu.js +16 -14
- package/lib/components/AppHeader/components/mobile/Menu.js.map +1 -1
- package/lib/components/AppHeader/components/mobile/MenuAccordion.cjs +3 -3
- package/lib/components/AppHeader/components/mobile/MenuAccordion.cjs.map +1 -1
- package/lib/components/AppHeader/components/mobile/MenuAccordion.js +3 -3
- package/lib/components/AppHeader/components/mobile/MenuAccordion.js.map +1 -1
- package/lib/components/AppHeader/components/mobile/MenuButton.cjs +1 -1
- package/lib/components/AppHeader/components/mobile/MenuButton.cjs.map +1 -1
- package/lib/components/AppHeader/components/mobile/MenuButton.js +1 -1
- package/lib/components/AppHeader/components/mobile/MenuButton.js.map +1 -1
- package/lib/components/AppHeader/components/mobile/MenuDialog.cjs +31 -20
- package/lib/components/AppHeader/components/mobile/MenuDialog.cjs.map +1 -1
- package/lib/components/AppHeader/components/mobile/MenuDialog.d.ts +3 -2
- package/lib/components/AppHeader/components/mobile/MenuDialog.js +32 -21
- package/lib/components/AppHeader/components/mobile/MenuDialog.js.map +1 -1
- package/lib/components/AppHeader/components/mobile/MobileHeader.cjs +6 -2
- package/lib/components/AppHeader/components/mobile/MobileHeader.cjs.map +1 -1
- package/lib/components/AppHeader/components/mobile/MobileHeader.d.ts +2 -2
- package/lib/components/AppHeader/components/mobile/MobileHeader.js +6 -2
- 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.cjs.map +1 -1
- package/lib/components/AppHeader/components/mobile/Navigation.js +1 -1
- package/lib/components/AppHeader/components/mobile/Navigation.js.map +1 -1
- package/lib/components/AppHeader/components/mobile/NavigationContext.cjs +3 -0
- package/lib/components/AppHeader/components/mobile/NavigationContext.cjs.map +1 -1
- package/lib/components/AppHeader/components/mobile/NavigationContext.js +3 -0
- package/lib/components/AppHeader/components/mobile/NavigationContext.js.map +1 -1
- package/lib/components/AppHeader/components/mobile/NavigationItem.cjs +5 -5
- package/lib/components/AppHeader/components/mobile/NavigationItem.cjs.map +1 -1
- package/lib/components/AppHeader/components/mobile/NavigationItem.js +5 -5
- package/lib/components/AppHeader/components/mobile/NavigationItem.js.map +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/ReleaseNoteContext.cjs +3 -0
- package/lib/components/AppHeader/components/mobile/ReleaseNoteContext.cjs.map +1 -1
- package/lib/components/AppHeader/components/mobile/ReleaseNoteContext.js +3 -0
- package/lib/components/AppHeader/components/mobile/ReleaseNoteContext.js.map +1 -1
- package/lib/components/AppHeader/components/mobile/TenantSelector.cjs +3 -3
- package/lib/components/AppHeader/components/mobile/TenantSelector.cjs.map +1 -1
- package/lib/components/AppHeader/components/mobile/TenantSelector.js +3 -3
- package/lib/components/AppHeader/components/mobile/TenantSelector.js.map +1 -1
- package/lib/components/AppHeader/components/mobile/UserInfo.cjs +1 -1
- package/lib/components/AppHeader/components/mobile/UserInfo.cjs.map +1 -1
- package/lib/components/AppHeader/components/mobile/UserInfo.js +1 -1
- package/lib/components/AppHeader/components/mobile/UserInfo.js.map +1 -1
- package/lib/components/AppHeader/hooks/useAppLauncher.cjs +2 -2
- package/lib/components/AppHeader/hooks/useAppLauncher.cjs.map +1 -1
- package/lib/components/AppHeader/hooks/useAppLauncher.js +1 -1
- package/lib/components/AppHeader/hooks/useAppLauncher.js.map +1 -1
- package/lib/components/AppHeader/types.d.ts +13 -0
- package/lib/components/AppNavi/AppNavi.cjs +3 -3
- package/lib/components/AppNavi/AppNavi.cjs.map +1 -1
- package/lib/components/AppNavi/AppNavi.js +3 -3
- package/lib/components/AppNavi/AppNavi.js.map +1 -1
- package/lib/components/AppNavi/AppNaviAnchor.cjs +1 -1
- package/lib/components/AppNavi/AppNaviAnchor.cjs.map +1 -1
- package/lib/components/AppNavi/AppNaviAnchor.js +1 -1
- package/lib/components/AppNavi/AppNaviAnchor.js.map +1 -1
- package/lib/components/AppNavi/AppNaviButton.cjs +1 -1
- package/lib/components/AppNavi/AppNaviButton.cjs.map +1 -1
- package/lib/components/AppNavi/AppNaviButton.js +1 -1
- package/lib/components/AppNavi/AppNaviButton.js.map +1 -1
- package/lib/components/AppNavi/AppNaviCustomTag.cjs +1 -1
- package/lib/components/AppNavi/AppNaviCustomTag.cjs.map +1 -1
- package/lib/components/AppNavi/AppNaviCustomTag.js +1 -1
- package/lib/components/AppNavi/AppNaviCustomTag.js.map +1 -1
- package/lib/components/AppNavi/AppNaviDropdown.cjs +3 -3
- package/lib/components/AppNavi/AppNaviDropdown.cjs.map +1 -1
- package/lib/components/AppNavi/AppNaviDropdown.js +3 -3
- package/lib/components/AppNavi/AppNaviDropdown.js.map +1 -1
- package/lib/components/AppNavi/AppNaviDropdownMenuButton.cjs +17 -19
- package/lib/components/AppNavi/AppNaviDropdownMenuButton.cjs.map +1 -1
- package/lib/components/AppNavi/AppNaviDropdownMenuButton.js +17 -19
- package/lib/components/AppNavi/AppNaviDropdownMenuButton.js.map +1 -1
- package/lib/components/Badge/Badge.cjs +24 -56
- package/lib/components/Badge/Badge.cjs.map +1 -1
- package/lib/components/Badge/Badge.d.ts +8 -86
- package/lib/components/Badge/Badge.js +24 -56
- package/lib/components/Badge/Badge.js.map +1 -1
- package/lib/components/BottomFixedArea/BottomFixedArea.cjs +1 -1
- package/lib/components/BottomFixedArea/BottomFixedArea.cjs.map +1 -1
- package/lib/components/BottomFixedArea/BottomFixedArea.js +1 -1
- package/lib/components/BottomFixedArea/BottomFixedArea.js.map +1 -1
- package/lib/components/Browser/Browser.cjs +10 -18
- package/lib/components/Browser/Browser.cjs.map +1 -1
- package/lib/components/Browser/Browser.js +10 -18
- package/lib/components/Browser/Browser.js.map +1 -1
- package/lib/components/Browser/BrowserColumn.cjs +1 -1
- package/lib/components/Browser/BrowserColumn.cjs.map +1 -1
- package/lib/components/Browser/BrowserColumn.js +1 -1
- package/lib/components/Browser/BrowserColumn.js.map +1 -1
- package/lib/components/Browser/BrowserItem.cjs +16 -31
- package/lib/components/Browser/BrowserItem.cjs.map +1 -1
- package/lib/components/Browser/BrowserItem.js +16 -31
- package/lib/components/Browser/BrowserItem.js.map +1 -1
- package/lib/components/Button/AnchorButton.cjs +2 -2
- package/lib/components/Button/AnchorButton.cjs.map +1 -1
- package/lib/components/Button/AnchorButton.js +2 -2
- package/lib/components/Button/AnchorButton.js.map +1 -1
- package/lib/components/Button/Button.cjs +9 -7
- package/lib/components/Button/Button.cjs.map +1 -1
- package/lib/components/Button/Button.js +9 -7
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/ButtonWrapper.cjs +2 -2
- package/lib/components/Button/ButtonWrapper.cjs.map +1 -1
- package/lib/components/Button/ButtonWrapper.js +2 -2
- package/lib/components/Button/ButtonWrapper.js.map +1 -1
- package/lib/components/Button/DisabledReason.cjs +3 -3
- package/lib/components/Button/DisabledReason.cjs.map +1 -1
- package/lib/components/Button/DisabledReason.js +3 -3
- package/lib/components/Button/DisabledReason.js.map +1 -1
- package/lib/components/Button/UnstyledButton.cjs +1 -1
- package/lib/components/Button/UnstyledButton.cjs.map +1 -1
- package/lib/components/Button/UnstyledButton.js +1 -1
- package/lib/components/Button/UnstyledButton.js.map +1 -1
- package/lib/components/Button/useButtonWrapper.cjs +1 -1
- package/lib/components/Button/useButtonWrapper.cjs.map +1 -1
- package/lib/components/Button/useButtonWrapper.js +1 -1
- package/lib/components/Button/useButtonWrapper.js.map +1 -1
- package/lib/components/Calendar/Calendar.cjs +3 -3
- package/lib/components/Calendar/Calendar.cjs.map +1 -1
- package/lib/components/Calendar/Calendar.js +3 -3
- package/lib/components/Calendar/Calendar.js.map +1 -1
- package/lib/components/Calendar/CalendarTable.cjs +3 -3
- package/lib/components/Calendar/CalendarTable.cjs.map +1 -1
- package/lib/components/Calendar/CalendarTable.js +3 -3
- package/lib/components/Calendar/CalendarTable.js.map +1 -1
- package/lib/components/Calendar/YearPicker.cjs +13 -14
- package/lib/components/Calendar/YearPicker.cjs.map +1 -1
- package/lib/components/Calendar/YearPicker.js +14 -15
- package/lib/components/Calendar/YearPicker.js.map +1 -1
- package/lib/components/Checkbox/Checkbox.cjs +3 -2
- package/lib/components/Checkbox/Checkbox.cjs.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +4 -3
- package/lib/components/Checkbox/Checkbox.js.map +1 -1
- package/lib/components/Chip/Chip.cjs +1 -1
- package/lib/components/Chip/Chip.cjs.map +1 -1
- package/lib/components/Chip/Chip.js +1 -1
- package/lib/components/Chip/Chip.js.map +1 -1
- package/lib/components/Combobox/ItemButton.cjs +2 -2
- package/lib/components/Combobox/ItemButton.cjs.map +1 -1
- package/lib/components/Combobox/ItemButton.js +2 -2
- package/lib/components/Combobox/ItemButton.js.map +1 -1
- package/lib/components/Combobox/MultiCombobox/MultiCombobox.cjs +18 -15
- package/lib/components/Combobox/MultiCombobox/MultiCombobox.cjs.map +1 -1
- package/lib/components/Combobox/MultiCombobox/MultiCombobox.js +16 -13
- package/lib/components/Combobox/MultiCombobox/MultiCombobox.js.map +1 -1
- package/lib/components/Combobox/MultiCombobox/MultiSelectedItem.cjs +5 -5
- package/lib/components/Combobox/MultiCombobox/MultiSelectedItem.cjs.map +1 -1
- package/lib/components/Combobox/MultiCombobox/MultiSelectedItem.js +4 -4
- package/lib/components/Combobox/MultiCombobox/MultiSelectedItem.js.map +1 -1
- package/lib/components/Combobox/SingleCombobox/SingleCombobox.cjs +16 -11
- package/lib/components/Combobox/SingleCombobox/SingleCombobox.cjs.map +1 -1
- package/lib/components/Combobox/SingleCombobox/SingleCombobox.js +15 -10
- package/lib/components/Combobox/SingleCombobox/SingleCombobox.js.map +1 -1
- package/lib/components/Combobox/useListbox.cjs +15 -12
- package/lib/components/Combobox/useListbox.cjs.map +1 -1
- package/lib/components/Combobox/useListbox.d.ts +5 -1
- package/lib/components/Combobox/useListbox.js +10 -7
- package/lib/components/Combobox/useListbox.js.map +1 -1
- package/lib/components/DatePicker/DatePicker.cjs +91 -71
- package/lib/components/DatePicker/DatePicker.cjs.map +1 -1
- package/lib/components/DatePicker/DatePicker.js +90 -70
- package/lib/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/components/DatePicker/Portal.cjs +17 -21
- package/lib/components/DatePicker/Portal.cjs.map +1 -1
- package/lib/components/DatePicker/Portal.d.ts +5 -4
- package/lib/components/DatePicker/Portal.js +18 -22
- package/lib/components/DatePicker/Portal.js.map +1 -1
- package/lib/components/DatePicker/datePickerHelper.cjs +12 -12
- package/lib/components/DatePicker/datePickerHelper.cjs.map +1 -1
- package/lib/components/DatePicker/datePickerHelper.js +12 -12
- package/lib/components/DatePicker/datePickerHelper.js.map +1 -1
- package/lib/components/DefinitionList/DefinitionListItem.cjs +3 -3
- package/lib/components/DefinitionList/DefinitionListItem.cjs.map +1 -1
- package/lib/components/DefinitionList/DefinitionListItem.js +2 -2
- package/lib/components/DefinitionList/DefinitionListItem.js.map +1 -1
- package/lib/components/Dialog/ControlledActionDialog/ActionDialogContentInner.cjs +5 -5
- package/lib/components/Dialog/ControlledActionDialog/ActionDialogContentInner.cjs.map +1 -1
- package/lib/components/Dialog/ControlledActionDialog/ActionDialogContentInner.js +5 -5
- package/lib/components/Dialog/ControlledActionDialog/ActionDialogContentInner.js.map +1 -1
- package/lib/components/Dialog/ControlledActionDialog/ControlledActionDialog.cjs +1 -1
- package/lib/components/Dialog/ControlledActionDialog/ControlledActionDialog.cjs.map +1 -1
- package/lib/components/Dialog/ControlledActionDialog/ControlledActionDialog.js +1 -1
- package/lib/components/Dialog/ControlledActionDialog/ControlledActionDialog.js.map +1 -1
- package/lib/components/Dialog/ControlledFormDialog/ControlledFormDialog.cjs +1 -1
- package/lib/components/Dialog/ControlledFormDialog/ControlledFormDialog.cjs.map +1 -1
- package/lib/components/Dialog/ControlledFormDialog/ControlledFormDialog.js +1 -1
- package/lib/components/Dialog/ControlledFormDialog/ControlledFormDialog.js.map +1 -1
- package/lib/components/Dialog/ControlledFormDialog/FormDialogContentInner.cjs +5 -5
- package/lib/components/Dialog/ControlledFormDialog/FormDialogContentInner.cjs.map +1 -1
- package/lib/components/Dialog/ControlledFormDialog/FormDialogContentInner.js +5 -5
- package/lib/components/Dialog/ControlledFormDialog/FormDialogContentInner.js.map +1 -1
- package/lib/components/Dialog/ControlledMessageDialog/ControlledMessageDialog.cjs +1 -1
- package/lib/components/Dialog/ControlledMessageDialog/ControlledMessageDialog.cjs.map +1 -1
- package/lib/components/Dialog/ControlledMessageDialog/ControlledMessageDialog.js +1 -1
- package/lib/components/Dialog/ControlledMessageDialog/ControlledMessageDialog.js.map +1 -1
- package/lib/components/Dialog/ControlledMessageDialog/MessageDialogContentInner.cjs +2 -2
- package/lib/components/Dialog/ControlledMessageDialog/MessageDialogContentInner.cjs.map +1 -1
- package/lib/components/Dialog/ControlledMessageDialog/MessageDialogContentInner.js +2 -2
- package/lib/components/Dialog/ControlledMessageDialog/MessageDialogContentInner.js.map +1 -1
- package/lib/components/Dialog/ControlledStepFormDialog/ControlledStepFormDialog.cjs +1 -1
- package/lib/components/Dialog/ControlledStepFormDialog/ControlledStepFormDialog.cjs.map +1 -1
- package/lib/components/Dialog/ControlledStepFormDialog/ControlledStepFormDialog.js +1 -1
- package/lib/components/Dialog/ControlledStepFormDialog/ControlledStepFormDialog.js.map +1 -1
- package/lib/components/Dialog/ControlledStepFormDialog/StepFormDialogContentInner.cjs +5 -5
- package/lib/components/Dialog/ControlledStepFormDialog/StepFormDialogContentInner.cjs.map +1 -1
- package/lib/components/Dialog/ControlledStepFormDialog/StepFormDialogContentInner.js +5 -5
- package/lib/components/Dialog/ControlledStepFormDialog/StepFormDialogContentInner.js.map +1 -1
- package/lib/components/Dialog/DialogCloser.cjs +1 -1
- package/lib/components/Dialog/DialogCloser.cjs.map +1 -1
- package/lib/components/Dialog/DialogCloser.js +1 -1
- package/lib/components/Dialog/DialogCloser.js.map +1 -1
- package/lib/components/Dialog/DialogContentInner.cjs +15 -7
- package/lib/components/Dialog/DialogContentInner.cjs.map +1 -1
- package/lib/components/Dialog/DialogContentInner.js +15 -7
- package/lib/components/Dialog/DialogContentInner.js.map +1 -1
- package/lib/components/Dialog/DialogContentResponseStatusMessage.cjs +1 -1
- package/lib/components/Dialog/DialogContentResponseStatusMessage.cjs.map +1 -1
- package/lib/components/Dialog/DialogContentResponseStatusMessage.js +1 -1
- package/lib/components/Dialog/DialogContentResponseStatusMessage.js.map +1 -1
- package/lib/components/Dialog/DialogHeading.cjs +1 -1
- package/lib/components/Dialog/DialogHeading.cjs.map +1 -1
- package/lib/components/Dialog/DialogHeading.js +1 -1
- package/lib/components/Dialog/DialogHeading.js.map +1 -1
- package/lib/components/Dialog/DialogOverlap.cjs +1 -1
- package/lib/components/Dialog/DialogOverlap.cjs.map +1 -1
- package/lib/components/Dialog/DialogOverlap.js +1 -1
- package/lib/components/Dialog/DialogOverlap.js.map +1 -1
- package/lib/components/Dialog/DialogTrigger.cjs +1 -1
- package/lib/components/Dialog/DialogTrigger.cjs.map +1 -1
- package/lib/components/Dialog/DialogTrigger.js +1 -1
- package/lib/components/Dialog/DialogTrigger.js.map +1 -1
- package/lib/components/Dialog/FocusTrap.cjs +2 -2
- package/lib/components/Dialog/FocusTrap.cjs.map +1 -1
- package/lib/components/Dialog/FocusTrap.js +1 -1
- package/lib/components/Dialog/FocusTrap.js.map +1 -1
- package/lib/components/Dialog/ModelessDialog/ModelessDialog.cjs +201 -135
- package/lib/components/Dialog/ModelessDialog/ModelessDialog.cjs.map +1 -1
- package/lib/components/Dialog/ModelessDialog/ModelessDialog.d.ts +0 -9
- package/lib/components/Dialog/ModelessDialog/ModelessDialog.js +202 -136
- package/lib/components/Dialog/ModelessDialog/ModelessDialog.js.map +1 -1
- package/lib/components/Dialog/RemoteDialogTrigger/RemoteDialogTrigger.cjs +1 -1
- package/lib/components/Dialog/RemoteDialogTrigger/RemoteDialogTrigger.cjs.map +1 -1
- package/lib/components/Dialog/RemoteDialogTrigger/RemoteDialogTrigger.js +1 -1
- package/lib/components/Dialog/RemoteDialogTrigger/RemoteDialogTrigger.js.map +1 -1
- package/lib/components/Dialog/RemoteDialogTrigger/useRemoteTrigger.cjs +2 -2
- package/lib/components/Dialog/RemoteDialogTrigger/useRemoteTrigger.cjs.map +1 -1
- package/lib/components/Dialog/RemoteDialogTrigger/useRemoteTrigger.js +1 -1
- package/lib/components/Dialog/RemoteDialogTrigger/useRemoteTrigger.js.map +1 -1
- package/lib/components/Disclosure/DisclosureContent.cjs +1 -1
- package/lib/components/Disclosure/DisclosureContent.cjs.map +1 -1
- package/lib/components/Disclosure/DisclosureContent.js +1 -1
- package/lib/components/Disclosure/DisclosureContent.js.map +1 -1
- package/lib/components/Disclosure/DisclosureTrigger.cjs +8 -8
- package/lib/components/Disclosure/DisclosureTrigger.cjs.map +1 -1
- package/lib/components/Disclosure/DisclosureTrigger.js +9 -9
- package/lib/components/Disclosure/DisclosureTrigger.js.map +1 -1
- package/lib/components/Disclosure/useDisclosure.cjs +2 -2
- package/lib/components/Disclosure/useDisclosure.cjs.map +1 -1
- package/lib/components/Disclosure/useDisclosure.js +1 -1
- package/lib/components/Disclosure/useDisclosure.js.map +1 -1
- package/lib/components/DropZone/DropZone.cjs +33 -28
- package/lib/components/DropZone/DropZone.cjs.map +1 -1
- package/lib/components/DropZone/DropZone.js +34 -29
- package/lib/components/DropZone/DropZone.js.map +1 -1
- package/lib/components/Dropdown/Dropdown.cjs +5 -6
- package/lib/components/Dropdown/Dropdown.cjs.map +1 -1
- package/lib/components/Dropdown/Dropdown.js +3 -4
- package/lib/components/Dropdown/Dropdown.js.map +1 -1
- package/lib/components/Dropdown/DropdownCloser.cjs +2 -2
- package/lib/components/Dropdown/DropdownCloser.cjs.map +1 -1
- package/lib/components/Dropdown/DropdownCloser.js +2 -2
- package/lib/components/Dropdown/DropdownCloser.js.map +1 -1
- package/lib/components/Dropdown/DropdownContentInner.cjs +2 -2
- package/lib/components/Dropdown/DropdownContentInner.cjs.map +1 -1
- package/lib/components/Dropdown/DropdownContentInner.js +1 -1
- package/lib/components/Dropdown/DropdownContentInner.js.map +1 -1
- package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuButton.cjs +18 -18
- package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuButton.cjs.map +1 -1
- package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuButton.js +19 -19
- package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuButton.js.map +1 -1
- package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuGroup.cjs +16 -30
- package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuGroup.cjs.map +1 -1
- package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuGroup.js +17 -31
- package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuGroup.js.map +1 -1
- package/lib/components/Dropdown/DropdownTrigger.cjs +2 -2
- package/lib/components/Dropdown/DropdownTrigger.cjs.map +1 -1
- package/lib/components/Dropdown/DropdownTrigger.js +2 -2
- package/lib/components/Dropdown/DropdownTrigger.js.map +1 -1
- package/lib/components/Dropdown/FilterDropdown/FilterDropdown.cjs +2 -2
- package/lib/components/Dropdown/FilterDropdown/FilterDropdown.cjs.map +1 -1
- package/lib/components/Dropdown/FilterDropdown/FilterDropdown.js +2 -2
- package/lib/components/Dropdown/FilterDropdown/FilterDropdown.js.map +1 -1
- package/lib/components/Dropdown/SortDropdown/SortDropdown.cjs +4 -4
- package/lib/components/Dropdown/SortDropdown/SortDropdown.cjs.map +1 -1
- package/lib/components/Dropdown/SortDropdown/SortDropdown.js +4 -4
- package/lib/components/Dropdown/SortDropdown/SortDropdown.js.map +1 -1
- package/lib/components/ErrorScreen/AuthErrorScreen.cjs +2 -2
- package/lib/components/ErrorScreen/AuthErrorScreen.cjs.map +1 -1
- package/lib/components/ErrorScreen/AuthErrorScreen.js +2 -2
- package/lib/components/ErrorScreen/AuthErrorScreen.js.map +1 -1
- package/lib/components/ErrorScreen/ErrorScreen.cjs +2 -2
- package/lib/components/ErrorScreen/ErrorScreen.cjs.map +1 -1
- package/lib/components/ErrorScreen/ErrorScreen.js +2 -2
- package/lib/components/ErrorScreen/ErrorScreen.js.map +1 -1
- package/lib/components/ErrorScreen/ForbiddenErrorScreen.cjs +2 -2
- package/lib/components/ErrorScreen/ForbiddenErrorScreen.cjs.map +1 -1
- package/lib/components/ErrorScreen/ForbiddenErrorScreen.js +2 -2
- package/lib/components/ErrorScreen/ForbiddenErrorScreen.js.map +1 -1
- package/lib/components/ErrorScreen/NotFoundErrorScreen.cjs +2 -2
- package/lib/components/ErrorScreen/NotFoundErrorScreen.cjs.map +1 -1
- package/lib/components/ErrorScreen/NotFoundErrorScreen.js +2 -2
- package/lib/components/ErrorScreen/NotFoundErrorScreen.js.map +1 -1
- package/lib/components/ErrorScreen/UnauthorizedErrorScreen.cjs +1 -1
- package/lib/components/ErrorScreen/UnauthorizedErrorScreen.cjs.map +1 -1
- package/lib/components/ErrorScreen/UnauthorizedErrorScreen.js +1 -1
- package/lib/components/ErrorScreen/UnauthorizedErrorScreen.js.map +1 -1
- package/lib/components/ErrorScreen/UnexpectedErrorScreen.cjs +3 -3
- package/lib/components/ErrorScreen/UnexpectedErrorScreen.cjs.map +1 -1
- package/lib/components/ErrorScreen/UnexpectedErrorScreen.js +3 -3
- package/lib/components/ErrorScreen/UnexpectedErrorScreen.js.map +1 -1
- package/lib/components/FileViewer/FileViewer.cjs +6 -6
- package/lib/components/FileViewer/FileViewer.cjs.map +1 -1
- package/lib/components/FileViewer/FileViewer.js +6 -6
- package/lib/components/FileViewer/FileViewer.js.map +1 -1
- package/lib/components/FileViewer/ImageViewer.cjs +21 -19
- package/lib/components/FileViewer/ImageViewer.cjs.map +1 -1
- package/lib/components/FileViewer/ImageViewer.js +22 -20
- package/lib/components/FileViewer/ImageViewer.js.map +1 -1
- package/lib/components/FileViewer/PDFViewer.cjs +1 -1
- package/lib/components/FileViewer/PDFViewer.cjs.map +1 -1
- package/lib/components/FileViewer/PDFViewer.js +1 -1
- package/lib/components/FileViewer/PDFViewer.js.map +1 -1
- package/lib/components/FileViewer/SearchController.cjs +5 -4
- package/lib/components/FileViewer/SearchController.cjs.map +1 -1
- package/lib/components/FileViewer/SearchController.js +5 -4
- package/lib/components/FileViewer/SearchController.js.map +1 -1
- package/lib/components/FormGroup/Fieldset.cjs +160 -0
- package/lib/components/FormGroup/Fieldset.cjs.map +1 -0
- package/lib/components/FormGroup/Fieldset.d.ts +9 -0
- package/lib/components/FormGroup/Fieldset.js +158 -0
- package/lib/components/FormGroup/Fieldset.js.map +1 -0
- package/lib/components/FormGroup/FormControl.cjs +119 -0
- package/lib/components/FormGroup/FormControl.cjs.map +1 -0
- package/lib/components/FormGroup/FormControl.d.ts +7 -0
- package/lib/components/FormGroup/FormControl.js +117 -0
- package/lib/components/FormGroup/FormControl.js.map +1 -0
- package/lib/components/FormGroup/FormGroup.cjs +28 -0
- package/lib/components/FormGroup/FormGroup.cjs.map +1 -0
- package/lib/components/FormGroup/FormGroup.d.ts +26 -0
- package/lib/components/FormGroup/FormGroup.js +24 -0
- package/lib/components/FormGroup/FormGroup.js.map +1 -0
- package/lib/components/FormGroup/constants.cjs +8 -0
- package/lib/components/FormGroup/constants.cjs.map +1 -0
- package/lib/components/FormGroup/constants.d.ts +2 -0
- package/lib/components/FormGroup/constants.js +5 -0
- package/lib/components/FormGroup/constants.js.map +1 -0
- package/lib/components/FormGroup/index.cjs +10 -0
- package/lib/components/FormGroup/index.d.ts +2 -0
- package/lib/components/{Fieldset → FormGroup}/index.js +1 -0
- package/lib/components/FormGroup/style.cjs +22 -0
- package/lib/components/FormGroup/style.cjs.map +1 -0
- package/lib/components/FormGroup/style.d.ts +45 -0
- package/lib/components/FormGroup/style.js +20 -0
- package/lib/components/FormGroup/style.js.map +1 -0
- package/lib/components/FormGroup/type.cjs +3 -0
- package/lib/components/FormGroup/type.cjs.map +1 -0
- package/lib/components/{FormControl/FormControl.d.ts → FormGroup/type.d.ts} +17 -14
- package/lib/components/FormGroup/type.js +2 -0
- package/lib/components/FormGroup/type.js.map +1 -0
- package/lib/components/FormGroup/useAutoBindErrorInput.cjs +30 -0
- package/lib/components/FormGroup/useAutoBindErrorInput.cjs.map +1 -0
- package/lib/components/FormGroup/useAutoBindErrorInput.d.ts +11 -0
- package/lib/components/FormGroup/useAutoBindErrorInput.js +28 -0
- package/lib/components/FormGroup/useAutoBindErrorInput.js.map +1 -0
- package/lib/components/FormGroup/useDescribedByIds.cjs +77 -0
- package/lib/components/FormGroup/useDescribedByIds.cjs.map +1 -0
- package/lib/components/FormGroup/useDescribedByIds.d.ts +17 -0
- package/lib/components/FormGroup/useDescribedByIds.js +75 -0
- package/lib/components/FormGroup/useDescribedByIds.js.map +1 -0
- package/lib/components/Header/AppLauncher/AppLauncher.cjs +3 -3
- package/lib/components/Header/AppLauncher/AppLauncher.cjs.map +1 -1
- package/lib/components/Header/AppLauncher/AppLauncher.js +3 -3
- package/lib/components/Header/AppLauncher/AppLauncher.js.map +1 -1
- package/lib/components/Header/Header.cjs +1 -1
- package/lib/components/Header/Header.cjs.map +1 -1
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/HeaderLink.cjs +1 -1
- package/lib/components/Header/HeaderLink.cjs.map +1 -1
- package/lib/components/Header/HeaderLink.d.ts +3 -38
- package/lib/components/Header/HeaderLink.js +1 -1
- package/lib/components/Header/HeaderLink.js.map +1 -1
- package/lib/components/Header/LanguageSwitcher/LanguageSwitcher.cjs +3 -3
- package/lib/components/Header/LanguageSwitcher/LanguageSwitcher.cjs.map +1 -1
- package/lib/components/Header/LanguageSwitcher/LanguageSwitcher.js +3 -3
- package/lib/components/Header/LanguageSwitcher/LanguageSwitcher.js.map +1 -1
- package/lib/components/Heading/Heading.cjs +2 -2
- package/lib/components/Heading/Heading.js +1 -1
- package/lib/components/Heading/PageHeading/PageHeading.cjs +29 -37
- package/lib/components/Heading/PageHeading/PageHeading.cjs.map +1 -1
- package/lib/components/Heading/PageHeading/PageHeading.js +29 -37
- package/lib/components/Heading/PageHeading/PageHeading.js.map +1 -1
- package/lib/components/Icon/FaIcon.cjs +4 -0
- package/lib/components/Icon/FaIcon.cjs.map +1 -1
- package/lib/components/Icon/FaIcon.d.ts +2 -0
- package/lib/components/Icon/FaIcon.js +4 -2
- package/lib/components/Icon/FaIcon.js.map +1 -1
- package/lib/components/Icon/OpenInNewTabIcon.cjs +0 -1
- package/lib/components/Icon/OpenInNewTabIcon.cjs.map +1 -1
- package/lib/components/Icon/OpenInNewTabIcon.js +0 -1
- package/lib/components/Icon/OpenInNewTabIcon.js.map +1 -1
- package/lib/components/Icon/WarningIcon.cjs +1 -1
- package/lib/components/Icon/WarningIcon.cjs.map +1 -1
- package/lib/components/Icon/WarningIcon.js +1 -1
- package/lib/components/Icon/WarningIcon.js.map +1 -1
- package/lib/components/Icon/generateIcon.cjs +2 -2
- package/lib/components/Icon/generateIcon.cjs.map +1 -1
- package/lib/components/Icon/generateIcon.js +2 -2
- package/lib/components/Icon/generateIcon.js.map +1 -1
- package/lib/components/Icon/index.cjs +2 -0
- package/lib/components/Icon/index.cjs.map +1 -1
- package/lib/components/Icon/index.js +1 -1
- package/lib/components/InformationPanel/InformationPanel.cjs +4 -4
- package/lib/components/InformationPanel/InformationPanel.cjs.map +1 -1
- package/lib/components/InformationPanel/InformationPanel.js +4 -4
- package/lib/components/InformationPanel/InformationPanel.js.map +1 -1
- package/lib/components/Input/CurrencyInput/CurrencyInput.cjs +5 -5
- package/lib/components/Input/CurrencyInput/CurrencyInput.cjs.map +1 -1
- package/lib/components/Input/CurrencyInput/CurrencyInput.js +3 -3
- package/lib/components/Input/CurrencyInput/CurrencyInput.js.map +1 -1
- package/lib/components/Input/Input.cjs +12 -12
- package/lib/components/Input/Input.cjs.map +1 -1
- package/lib/components/Input/Input.js +9 -9
- package/lib/components/Input/Input.js.map +1 -1
- package/lib/components/Input/InputWithTooltip/InputWithTooltip.cjs +2 -2
- package/lib/components/Input/InputWithTooltip/InputWithTooltip.cjs.map +1 -1
- package/lib/components/Input/InputWithTooltip/InputWithTooltip.js +2 -2
- package/lib/components/Input/InputWithTooltip/InputWithTooltip.js.map +1 -1
- package/lib/components/Input/SearchInput/SearchInput.cjs +1 -1
- package/lib/components/Input/SearchInput/SearchInput.cjs.map +1 -1
- package/lib/components/Input/SearchInput/SearchInput.js +1 -1
- package/lib/components/Input/SearchInput/SearchInput.js.map +1 -1
- package/lib/components/InputFile/FilePreviewDialog.cjs +7 -6
- package/lib/components/InputFile/FilePreviewDialog.cjs.map +1 -1
- package/lib/components/InputFile/FilePreviewDialog.js +7 -6
- package/lib/components/InputFile/FilePreviewDialog.js.map +1 -1
- package/lib/components/InputFile/InputFileMultiplyAppendable.cjs +10 -13
- package/lib/components/InputFile/InputFileMultiplyAppendable.cjs.map +1 -1
- package/lib/components/InputFile/InputFileMultiplyAppendable.js +11 -14
- package/lib/components/InputFile/InputFileMultiplyAppendable.js.map +1 -1
- package/lib/components/InputFile/InputFileNative.cjs +3 -3
- package/lib/components/InputFile/InputFileNative.cjs.map +1 -1
- package/lib/components/InputFile/InputFileNative.js +4 -4
- package/lib/components/InputFile/InputFileNative.js.map +1 -1
- package/lib/components/InputFile/parts.cjs +3 -3
- package/lib/components/InputFile/parts.cjs.map +1 -1
- package/lib/components/InputFile/parts.js +3 -3
- package/lib/components/InputFile/parts.js.map +1 -1
- package/lib/components/Layout/Center/Center.cjs +3 -3
- package/lib/components/Layout/Center/Center.js +2 -2
- package/lib/components/Layout/Cluster/Cluster.cjs +3 -3
- package/lib/components/Layout/Cluster/Cluster.js +2 -2
- package/lib/components/Layout/Container/Container.cjs +3 -3
- package/lib/components/Layout/Container/Container.cjs.map +1 -1
- package/lib/components/Layout/Container/Container.js +2 -2
- package/lib/components/Layout/Container/Container.js.map +1 -1
- package/lib/components/Layout/Reel/Reel.cjs +3 -3
- package/lib/components/Layout/Reel/Reel.js +2 -2
- package/lib/components/Layout/Sidebar/Sidebar.cjs +3 -3
- package/lib/components/Layout/Sidebar/Sidebar.js +2 -2
- package/lib/components/Layout/Stack/Stack.cjs +3 -3
- package/lib/components/Layout/Stack/Stack.js +2 -2
- package/lib/components/LineClamp/LineClamp.cjs +3 -3
- package/lib/components/LineClamp/LineClamp.cjs.map +1 -1
- package/lib/components/LineClamp/LineClamp.js +2 -2
- package/lib/components/LineClamp/LineClamp.js.map +1 -1
- package/lib/components/Loader/Loader.cjs +1 -1
- package/lib/components/Loader/Loader.cjs.map +1 -1
- package/lib/components/Loader/Loader.js +1 -1
- package/lib/components/Loader/Loader.js.map +1 -1
- package/lib/components/Loader/LoaderSpinner.cjs +0 -1
- package/lib/components/Loader/LoaderSpinner.cjs.map +1 -1
- package/lib/components/Loader/LoaderSpinner.js +0 -1
- package/lib/components/Loader/LoaderSpinner.js.map +1 -1
- package/lib/components/NotificationBar/NotificationBar.cjs +4 -4
- package/lib/components/NotificationBar/NotificationBar.cjs.map +1 -1
- package/lib/components/NotificationBar/NotificationBar.js +4 -4
- package/lib/components/NotificationBar/NotificationBar.js.map +1 -1
- package/lib/components/PageCounter/PageCounter.cjs +1 -1
- package/lib/components/PageCounter/PageCounter.cjs.map +1 -1
- package/lib/components/PageCounter/PageCounter.js +1 -1
- package/lib/components/PageCounter/PageCounter.js.map +1 -1
- package/lib/components/Pagination/Pagination.cjs +3 -3
- package/lib/components/Pagination/Pagination.cjs.map +1 -1
- package/lib/components/Pagination/Pagination.js +3 -3
- package/lib/components/Pagination/Pagination.js.map +1 -1
- package/lib/components/Pagination/PaginationControllerItemButton.cjs +2 -2
- package/lib/components/Pagination/PaginationControllerItemButton.cjs.map +1 -1
- package/lib/components/Pagination/PaginationControllerItemButton.js +2 -2
- package/lib/components/Pagination/PaginationControllerItemButton.js.map +1 -1
- package/lib/components/Pagination/PaginationItemButton.cjs +1 -1
- package/lib/components/Pagination/PaginationItemButton.cjs.map +1 -1
- package/lib/components/Pagination/PaginationItemButton.js +1 -1
- package/lib/components/Pagination/PaginationItemButton.js.map +1 -1
- package/lib/components/Panel/Groupbox/Groupbox.cjs +1 -1
- package/lib/components/Panel/Groupbox/Groupbox.cjs.map +1 -1
- package/lib/components/Panel/Groupbox/Groupbox.js +1 -1
- package/lib/components/Panel/Groupbox/Groupbox.js.map +1 -1
- package/lib/components/Panel/Panel.cjs +3 -3
- package/lib/components/Panel/Panel.js +2 -2
- package/lib/components/RadioButton/RadioButton.cjs +1 -1
- package/lib/components/RadioButton/RadioButton.cjs.map +1 -1
- package/lib/components/RadioButton/RadioButton.js +1 -1
- package/lib/components/RadioButton/RadioButton.js.map +1 -1
- package/lib/components/RadioButtonPanel/RadioButtonPanel.cjs +3 -47
- package/lib/components/RadioButtonPanel/RadioButtonPanel.cjs.map +1 -1
- package/lib/components/RadioButtonPanel/RadioButtonPanel.js +4 -48
- package/lib/components/RadioButtonPanel/RadioButtonPanel.js.map +1 -1
- package/lib/components/RadioButtonPanel/client/ClickablePanel.cjs +51 -0
- package/lib/components/RadioButtonPanel/client/ClickablePanel.cjs.map +1 -0
- package/lib/components/RadioButtonPanel/client/ClickablePanel.d.ts +8 -0
- package/lib/components/RadioButtonPanel/client/ClickablePanel.js +49 -0
- package/lib/components/RadioButtonPanel/client/ClickablePanel.js.map +1 -0
- package/lib/components/RadioButtonPanel/client/index.cjs +8 -0
- package/lib/components/RadioButtonPanel/client/index.d.ts +1 -0
- package/lib/components/RadioButtonPanel/client/index.js +2 -0
- package/lib/components/ResponseMessage/ResponseMessage.cjs +1 -1
- package/lib/components/ResponseMessage/ResponseMessage.cjs.map +1 -1
- package/lib/components/ResponseMessage/ResponseMessage.js +1 -1
- package/lib/components/ResponseMessage/ResponseMessage.js.map +1 -1
- package/lib/components/Scroller/Scroller.cjs +30 -38
- package/lib/components/Scroller/Scroller.cjs.map +1 -1
- package/lib/components/Scroller/Scroller.js +30 -38
- package/lib/components/Scroller/Scroller.js.map +1 -1
- package/lib/components/SectioningContent/SectioningContent.cjs +6 -11
- package/lib/components/SectioningContent/SectioningContent.cjs.map +1 -1
- package/lib/components/SectioningContent/SectioningContent.d.ts +0 -3
- package/lib/components/SectioningContent/SectioningContent.js +7 -11
- package/lib/components/SectioningContent/SectioningContent.js.map +1 -1
- package/lib/components/SectioningContent/{levelContext.cjs → client/components/LevelContext.cjs} +1 -1
- package/lib/components/SectioningContent/client/components/LevelContext.cjs.map +1 -0
- package/lib/components/SectioningContent/{levelContext.js → client/components/LevelContext.js} +1 -1
- package/lib/components/SectioningContent/client/components/LevelContext.js.map +1 -0
- package/lib/components/SectioningContent/client/components/SectioningFragment.cjs +14 -0
- package/lib/components/SectioningContent/client/components/SectioningFragment.cjs.map +1 -0
- package/lib/components/SectioningContent/client/components/SectioningFragment.d.ts +4 -0
- package/lib/components/SectioningContent/client/components/SectioningFragment.js +12 -0
- package/lib/components/SectioningContent/client/components/SectioningFragment.js.map +1 -0
- package/lib/components/SectioningContent/client/components/index.cjs +10 -0
- package/lib/components/SectioningContent/client/components/index.cjs.map +1 -0
- package/lib/components/SectioningContent/client/components/index.d.ts +2 -0
- package/lib/components/SectioningContent/client/components/index.js +3 -0
- package/lib/components/SectioningContent/client/components/index.js.map +1 -0
- package/lib/components/SectioningContent/client/hooks/index.cjs +8 -0
- package/lib/components/SectioningContent/client/hooks/index.d.ts +1 -0
- package/lib/components/SectioningContent/client/hooks/index.js +2 -0
- package/lib/components/SectioningContent/{useSectioningWrapper.cjs → client/hooks/useSectioningWrapper.cjs} +3 -2
- package/lib/components/SectioningContent/client/hooks/useSectioningWrapper.cjs.map +1 -0
- package/lib/components/SectioningContent/{useSectioningWrapper.js → client/hooks/useSectioningWrapper.js} +2 -1
- package/lib/components/SectioningContent/client/hooks/useSectioningWrapper.js.map +1 -0
- package/lib/components/SectioningContent/index.cjs +6 -4
- package/lib/components/SectioningContent/index.cjs.map +1 -1
- package/lib/components/SectioningContent/index.d.ts +2 -2
- package/lib/components/SectioningContent/index.js +4 -2
- package/lib/components/SectioningContent/index.js.map +1 -1
- package/lib/components/SegmentedControl/SegmentedControl.cjs +54 -56
- package/lib/components/SegmentedControl/SegmentedControl.cjs.map +1 -1
- package/lib/components/SegmentedControl/SegmentedControl.js +55 -57
- package/lib/components/SegmentedControl/SegmentedControl.js.map +1 -1
- package/lib/components/Select/Select.cjs +3 -3
- package/lib/components/Select/Select.cjs.map +1 -1
- package/lib/components/Select/Select.js +3 -3
- package/lib/components/Select/Select.js.map +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/SideNav/SideNav.cjs +1 -0
- package/lib/components/SideNav/SideNav.cjs.map +1 -1
- package/lib/components/SideNav/SideNav.js +1 -0
- package/lib/components/SideNav/SideNav.js.map +1 -1
- package/lib/components/SideNav/SideNavContext.cjs +3 -0
- package/lib/components/SideNav/SideNavContext.cjs.map +1 -1
- package/lib/components/SideNav/SideNavContext.js +3 -0
- package/lib/components/SideNav/SideNavContext.js.map +1 -1
- package/lib/components/SideNav/SideNavItemButton.cjs +4 -3
- package/lib/components/SideNav/SideNavItemButton.cjs.map +1 -1
- package/lib/components/SideNav/SideNavItemButton.js +4 -3
- package/lib/components/SideNav/SideNavItemButton.js.map +1 -1
- package/lib/components/SmartHRAILogo/SmartHRAILogo.cjs +1 -1
- package/lib/components/SmartHRAILogo/SmartHRAILogo.cjs.map +1 -1
- package/lib/components/SmartHRAILogo/SmartHRAILogo.js +1 -1
- package/lib/components/SmartHRAILogo/SmartHRAILogo.js.map +1 -1
- package/lib/components/SmartHRLogo/SmartHRLogo.cjs +1 -1
- package/lib/components/SmartHRLogo/SmartHRLogo.cjs.map +1 -1
- package/lib/components/SmartHRLogo/SmartHRLogo.js +1 -1
- package/lib/components/SmartHRLogo/SmartHRLogo.js.map +1 -1
- package/lib/components/StatusLabel/RequiredLabel/RequiredLabel.cjs +0 -1
- package/lib/components/StatusLabel/RequiredLabel/RequiredLabel.cjs.map +1 -1
- package/lib/components/StatusLabel/RequiredLabel/RequiredLabel.js +0 -1
- package/lib/components/StatusLabel/RequiredLabel/RequiredLabel.js.map +1 -1
- package/lib/components/Stepper/HorizontalStepItem.cjs +10 -11
- package/lib/components/Stepper/HorizontalStepItem.cjs.map +1 -1
- package/lib/components/Stepper/HorizontalStepItem.d.ts +2 -2
- package/lib/components/Stepper/HorizontalStepItem.js +10 -11
- package/lib/components/Stepper/HorizontalStepItem.js.map +1 -1
- package/lib/components/Stepper/StepCounter.cjs +6 -7
- package/lib/components/Stepper/StepCounter.cjs.map +1 -1
- package/lib/components/Stepper/StepCounter.d.ts +2 -1
- package/lib/components/Stepper/StepCounter.js +6 -7
- package/lib/components/Stepper/StepCounter.js.map +1 -1
- package/lib/components/Stepper/StepStatusIcon.cjs +2 -2
- package/lib/components/Stepper/StepStatusIcon.cjs.map +1 -1
- package/lib/components/Stepper/StepStatusIcon.d.ts +2 -1
- package/lib/components/Stepper/StepStatusIcon.js +2 -2
- package/lib/components/Stepper/StepStatusIcon.js.map +1 -1
- package/lib/components/Stepper/Stepper.cjs.map +1 -1
- package/lib/components/Stepper/Stepper.js.map +1 -1
- package/lib/components/Stepper/VerticalStepItem.cjs +10 -10
- package/lib/components/Stepper/VerticalStepItem.cjs.map +1 -1
- package/lib/components/Stepper/VerticalStepItem.d.ts +2 -2
- package/lib/components/Stepper/VerticalStepItem.js +10 -10
- package/lib/components/Stepper/VerticalStepItem.js.map +1 -1
- package/lib/components/Stepper/types.d.ts +3 -2
- package/lib/components/Switch/Switch.cjs +2 -2
- package/lib/components/Switch/Switch.cjs.map +1 -1
- package/lib/components/Switch/Switch.js +2 -2
- package/lib/components/Switch/Switch.js.map +1 -1
- package/lib/components/TabBar/{TabItem.cjs → client/TabItem.cjs} +13 -12
- package/lib/components/TabBar/client/TabItem.cjs.map +1 -0
- package/lib/components/TabBar/{TabItem.d.ts → client/TabItem.d.ts} +1 -1
- package/lib/components/TabBar/{TabItem.js → client/TabItem.js} +13 -12
- package/lib/components/TabBar/client/TabItem.js.map +1 -0
- package/lib/components/TabBar/client/index.cjs +8 -0
- package/lib/{hooks/useSV → components/TabBar/client}/index.cjs.map +1 -1
- package/lib/components/TabBar/client/index.d.ts +1 -0
- package/lib/components/TabBar/client/index.js +2 -0
- package/lib/components/TabBar/index.cjs +2 -2
- package/lib/components/TabBar/index.d.ts +1 -1
- package/lib/components/TabBar/index.js +1 -1
- package/lib/components/Table/TableReel.cjs +18 -23
- package/lib/components/Table/TableReel.cjs.map +1 -1
- package/lib/components/Table/TableReel.js +18 -23
- package/lib/components/Table/TableReel.js.map +1 -1
- package/lib/components/Table/TableScroller.cjs +4 -12
- package/lib/components/Table/TableScroller.cjs.map +1 -1
- package/lib/components/Table/TableScroller.js +4 -12
- package/lib/components/Table/TableScroller.js.map +1 -1
- package/lib/components/Table/Td.cjs +1 -1
- package/lib/components/Table/Td.cjs.map +1 -1
- package/lib/components/Table/Td.js +1 -1
- package/lib/components/Table/Td.js.map +1 -1
- package/lib/components/Table/TdCheckbox.cjs +1 -1
- package/lib/components/Table/TdCheckbox.cjs.map +1 -1
- package/lib/components/Table/TdCheckbox.js +1 -1
- package/lib/components/Table/TdCheckbox.js.map +1 -1
- package/lib/components/Table/Th.cjs +3 -3
- package/lib/components/Table/Th.cjs.map +1 -1
- package/lib/components/Table/Th.js +3 -3
- package/lib/components/Table/Th.js.map +1 -1
- package/lib/components/Table/ThCheckbox.cjs +2 -2
- package/lib/components/Table/ThCheckbox.cjs.map +1 -1
- package/lib/components/Table/ThCheckbox.js +2 -2
- package/lib/components/Table/ThCheckbox.js.map +1 -1
- package/lib/components/Table/ThSortButton.cjs +1 -1
- package/lib/components/Table/ThSortButton.cjs.map +1 -1
- package/lib/components/Table/ThSortButton.js +1 -1
- package/lib/components/Table/ThSortButton.js.map +1 -1
- package/lib/components/TextLink/HelpLink/HelpLink.cjs +1 -1
- package/lib/components/TextLink/HelpLink/HelpLink.cjs.map +1 -1
- package/lib/components/TextLink/HelpLink/HelpLink.js +1 -1
- package/lib/components/TextLink/HelpLink/HelpLink.js.map +1 -1
- package/lib/components/TextLink/TextLink.cjs +15 -10
- package/lib/components/TextLink/TextLink.cjs.map +1 -1
- package/lib/components/TextLink/TextLink.js +15 -10
- package/lib/components/TextLink/TextLink.js.map +1 -1
- package/lib/components/TextLink/{UpwardLink → client}/UpwardLink.cjs +3 -3
- package/lib/components/TextLink/client/UpwardLink.cjs.map +1 -0
- package/lib/components/TextLink/{UpwardLink → client}/UpwardLink.js +2 -2
- package/lib/components/TextLink/client/UpwardLink.js.map +1 -0
- package/lib/components/TextLink/client/index.cjs +8 -0
- package/lib/components/TextLink/client/index.cjs.map +1 -0
- package/lib/components/TextLink/index.cjs +2 -2
- package/lib/components/TextLink/index.d.ts +1 -1
- package/lib/components/TextLink/index.js +1 -1
- package/lib/components/Textarea/Textarea.cjs +8 -9
- package/lib/components/Textarea/Textarea.cjs.map +1 -1
- package/lib/components/Textarea/Textarea.js +8 -9
- package/lib/components/Textarea/Textarea.js.map +1 -1
- package/lib/components/Timeline/TimelineItem.cjs +3 -3
- package/lib/components/Timeline/TimelineItem.cjs.map +1 -1
- package/lib/components/Timeline/TimelineItem.js +3 -3
- package/lib/components/Timeline/TimelineItem.js.map +1 -1
- package/lib/components/Tooltip/{Tooltip.cjs → client/Tooltip.cjs} +8 -8
- package/lib/components/Tooltip/client/Tooltip.cjs.map +1 -0
- package/lib/components/Tooltip/{Tooltip.js → client/Tooltip.js} +5 -5
- package/lib/components/Tooltip/client/Tooltip.js.map +1 -0
- package/lib/components/Tooltip/{TooltipPortal.cjs → client/TooltipPortal.cjs} +6 -7
- package/lib/components/Tooltip/client/TooltipPortal.cjs.map +1 -0
- package/lib/components/Tooltip/{TooltipPortal.js → client/TooltipPortal.js} +5 -6
- package/lib/components/Tooltip/client/TooltipPortal.js.map +1 -0
- package/lib/components/Tooltip/client/index.cjs +8 -0
- package/lib/components/Tooltip/client/index.cjs.map +1 -0
- package/lib/components/Tooltip/client/index.d.ts +1 -0
- package/lib/components/Tooltip/client/index.js +2 -0
- package/lib/components/Tooltip/client/index.js.map +1 -0
- package/lib/components/Tooltip/index.cjs +2 -2
- package/lib/components/Tooltip/index.d.ts +1 -1
- package/lib/components/Tooltip/index.js +1 -1
- package/lib/components/VisuallyHiddenText/VisuallyHiddenText.cjs +8 -2
- package/lib/components/VisuallyHiddenText/VisuallyHiddenText.cjs.map +1 -1
- package/lib/components/VisuallyHiddenText/VisuallyHiddenText.js +8 -2
- package/lib/components/VisuallyHiddenText/VisuallyHiddenText.js.map +1 -1
- package/lib/components/WarekiPicker/WarekiPicker.cjs +1 -0
- package/lib/components/WarekiPicker/WarekiPicker.cjs.map +1 -1
- package/lib/components/WarekiPicker/WarekiPicker.js +1 -0
- package/lib/components/WarekiPicker/WarekiPicker.js.map +1 -1
- package/lib/hooks/client/useAnimationFrame/index.cjs +8 -0
- package/lib/hooks/client/useAnimationFrame/index.cjs.map +1 -0
- package/lib/hooks/client/useAnimationFrame/index.d.ts +1 -0
- package/lib/hooks/client/useAnimationFrame/index.js +2 -0
- package/lib/hooks/client/useAnimationFrame/index.js.map +1 -0
- package/lib/hooks/client/useAnimationFrame/useAnimationFrame.cjs.map +1 -0
- package/lib/hooks/client/useAnimationFrame/useAnimationFrame.js.map +1 -0
- package/lib/hooks/client/useCallbackRefCleanupForReact18/index.cjs +8 -0
- package/lib/hooks/client/useCallbackRefCleanupForReact18/index.cjs.map +1 -0
- package/lib/hooks/client/useCallbackRefCleanupForReact18/index.d.ts +1 -0
- package/lib/hooks/client/useCallbackRefCleanupForReact18/index.js +2 -0
- package/lib/hooks/client/useCallbackRefCleanupForReact18/index.js.map +1 -0
- package/lib/hooks/client/useCallbackRefCleanupForReact18/useCallbackRefCleanupForReact18.cjs +61 -0
- package/lib/hooks/client/useCallbackRefCleanupForReact18/useCallbackRefCleanupForReact18.cjs.map +1 -0
- package/lib/hooks/client/useCallbackRefCleanupForReact18/useCallbackRefCleanupForReact18.d.ts +39 -0
- package/lib/hooks/client/useCallbackRefCleanupForReact18/useCallbackRefCleanupForReact18.js +59 -0
- package/lib/hooks/client/useCallbackRefCleanupForReact18/useCallbackRefCleanupForReact18.js.map +1 -0
- package/lib/hooks/client/useEnhancedEffect.cjs.map +1 -0
- package/lib/hooks/client/useEnhancedEffect.js.map +1 -0
- package/lib/hooks/client/useEnvironment/EnvironmentProvider.cjs +38 -0
- package/lib/hooks/client/useEnvironment/EnvironmentProvider.cjs.map +1 -0
- package/lib/hooks/{useEnvironment → client/useEnvironment}/EnvironmentProvider.js +11 -11
- package/lib/hooks/client/useEnvironment/EnvironmentProvider.js.map +1 -0
- package/lib/hooks/client/useEnvironment/index.cjs +10 -0
- package/lib/hooks/client/useEnvironment/index.cjs.map +1 -0
- package/lib/hooks/client/useEnvironment/index.js.map +1 -0
- package/lib/hooks/client/useEnvironment/useEnvironment.cjs.map +1 -0
- package/lib/hooks/{useEnvironment → client/useEnvironment}/useEnvironment.d.ts +1 -1
- package/lib/hooks/client/useEnvironment/useEnvironment.js.map +1 -0
- package/lib/hooks/client/useEscapeCallbackRef.cjs +20 -0
- package/lib/hooks/client/useEscapeCallbackRef.cjs.map +1 -0
- package/lib/hooks/client/useEscapeCallbackRef.d.ts +1 -0
- package/lib/hooks/client/useEscapeCallbackRef.js +18 -0
- package/lib/hooks/client/useEscapeCallbackRef.js.map +1 -0
- package/lib/hooks/client/useMergeRefs/index.cjs +8 -0
- package/lib/hooks/client/useMergeRefs/index.cjs.map +1 -0
- package/lib/hooks/client/useMergeRefs/index.d.ts +1 -0
- package/lib/hooks/client/useMergeRefs/index.js +2 -0
- package/lib/hooks/client/useMergeRefs/index.js.map +1 -0
- package/lib/hooks/client/useMergeRefs/useMergeRefs.cjs.map +1 -0
- package/lib/hooks/client/useMergeRefs/useMergeRefs.js.map +1 -0
- package/lib/hooks/client/useOnce/index.cjs +8 -0
- package/lib/hooks/client/useOnce/index.cjs.map +1 -0
- package/lib/hooks/client/useOnce/index.d.ts +1 -0
- package/lib/hooks/client/useOnce/index.js +2 -0
- package/lib/hooks/client/useOnce/index.js.map +1 -0
- package/lib/hooks/client/useOnce/useOnce.cjs.map +1 -0
- package/lib/hooks/client/useOnce/useOnce.js.map +1 -0
- package/lib/hooks/{usePortal.cjs → client/usePortal.cjs} +18 -26
- package/lib/hooks/client/usePortal.cjs.map +1 -0
- package/lib/hooks/{usePortal.d.ts → client/usePortal.d.ts} +2 -3
- package/lib/hooks/{usePortal.js → client/usePortal.js} +15 -23
- package/lib/hooks/client/usePortal.js.map +1 -0
- package/lib/hooks/client/useSV/index.cjs +9 -0
- package/lib/hooks/client/useSV/index.js.map +1 -0
- package/lib/hooks/{useSV → client/useSV}/useSV.cjs +12 -12
- package/lib/hooks/client/useSV/useSV.cjs.map +1 -0
- package/lib/hooks/{useSV → client/useSV}/useSV.d.ts +1 -1
- package/lib/hooks/{useSV → client/useSV}/useSV.js +10 -10
- package/lib/hooks/client/useSV/useSV.js.map +1 -0
- package/lib/hooks/{useTheme.cjs → client/useTheme.cjs} +10 -10
- package/lib/hooks/client/useTheme.cjs.map +1 -0
- package/lib/hooks/{useTheme.d.ts → client/useTheme.d.ts} +2 -1
- package/lib/hooks/{useTheme.js → client/useTheme.js} +10 -10
- package/lib/hooks/client/useTheme.js.map +1 -0
- package/lib/hooks/useLatest.cjs +11 -5
- package/lib/hooks/useLatest.cjs.map +1 -1
- package/lib/hooks/useLatest.js +12 -6
- package/lib/hooks/useLatest.js.map +1 -1
- package/lib/index.cjs +21 -18
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +6 -5
- package/lib/index.js +11 -10
- package/lib/index.js.map +1 -1
- package/lib/intl/DateFormatter.cjs.map +1 -1
- package/lib/intl/DateFormatter.js.map +1 -1
- package/lib/intl/IntlProvider.cjs.map +1 -1
- package/lib/intl/IntlProvider.js.map +1 -1
- package/lib/intl/Localizer.cjs +1 -1
- package/lib/intl/Localizer.cjs.map +1 -1
- package/lib/intl/Localizer.js +1 -1
- package/lib/intl/Localizer.js.map +1 -1
- package/lib/intl/TimeFormatter.cjs.map +1 -1
- package/lib/intl/TimeFormatter.js.map +1 -1
- package/lib/intl/TimestampFormatter.cjs.map +1 -1
- package/lib/intl/TimestampFormatter.js.map +1 -1
- package/lib/intl/locales/index.d.ts +2 -0
- package/lib/intl/locales/ja.cjs +2 -0
- package/lib/intl/locales/ja.cjs.map +1 -1
- package/lib/intl/locales/ja.d.ts +2 -0
- package/lib/intl/locales/ja.js +2 -0
- package/lib/intl/locales/ja.js.map +1 -1
- package/lib/intl/locales/ja.json.cjs +2 -0
- package/lib/intl/locales/ja.json.cjs.map +1 -1
- package/lib/intl/locales/ja.json.js +2 -0
- package/lib/intl/locales/ja.json.js.map +1 -1
- package/lib/intl/useDateFormat.cjs.map +1 -1
- package/lib/intl/useDateFormat.js.map +1 -1
- package/lib/intl/useIntl.cjs.map +1 -1
- package/lib/intl/useIntl.js.map +1 -1
- package/lib/themes/createColor.cjs.map +1 -1
- package/lib/themes/createColor.d.ts +2 -0
- package/lib/themes/createColor.js.map +1 -1
- package/lib/themes/createLeading.cjs.map +1 -1
- package/lib/themes/createLeading.d.ts +1 -0
- package/lib/themes/createLeading.js.map +1 -1
- package/lib/themes/createShadow/createShadow.cjs +4 -0
- package/lib/themes/createShadow/createShadow.cjs.map +1 -1
- package/lib/themes/createShadow/createShadow.js +4 -0
- package/lib/themes/createShadow/createShadow.js.map +1 -1
- package/lib/vendor/.pnpm/react-icons@5.7.0_react@19.2.8/vendor/react-icons/fa6/index.cjs +6 -0
- package/lib/vendor/.pnpm/react-icons@5.7.0_react@19.2.8/vendor/react-icons/fa6/index.cjs.map +1 -1
- package/lib/vendor/.pnpm/react-icons@5.7.0_react@19.2.8/vendor/react-icons/fa6/index.js +5 -1
- package/lib/vendor/.pnpm/react-icons@5.7.0_react@19.2.8/vendor/react-icons/fa6/index.js.map +1 -1
- package/metadata.json +1 -1
- package/package.json +11 -10
- package/lib/components/Fieldset/Fieldset.cjs +0 -9
- package/lib/components/Fieldset/Fieldset.cjs.map +0 -1
- package/lib/components/Fieldset/Fieldset.d.ts +0 -7
- package/lib/components/Fieldset/Fieldset.js +0 -7
- package/lib/components/Fieldset/Fieldset.js.map +0 -1
- package/lib/components/Fieldset/index.cjs +0 -8
- package/lib/components/Fieldset/index.d.ts +0 -1
- package/lib/components/FormControl/FormControl.cjs +0 -273
- package/lib/components/FormControl/FormControl.cjs.map +0 -1
- package/lib/components/FormControl/FormControl.js +0 -270
- package/lib/components/FormControl/FormControl.js.map +0 -1
- package/lib/components/FormControl/index.cjs +0 -9
- package/lib/components/FormControl/index.d.ts +0 -1
- package/lib/components/FormControl/index.js +0 -2
- package/lib/components/SectioningContent/levelContext.cjs.map +0 -1
- package/lib/components/SectioningContent/levelContext.js.map +0 -1
- package/lib/components/SectioningContent/useSectioningWrapper.cjs.map +0 -1
- package/lib/components/SectioningContent/useSectioningWrapper.js.map +0 -1
- package/lib/components/TabBar/TabItem.cjs.map +0 -1
- package/lib/components/TabBar/TabItem.js.map +0 -1
- package/lib/components/TextLink/UpwardLink/UpwardLink.cjs.map +0 -1
- package/lib/components/TextLink/UpwardLink/UpwardLink.js.map +0 -1
- package/lib/components/TextLink/UpwardLink/index.cjs +0 -8
- package/lib/components/Tooltip/Tooltip.cjs.map +0 -1
- package/lib/components/Tooltip/Tooltip.js.map +0 -1
- package/lib/components/Tooltip/TooltipPortal.cjs.map +0 -1
- package/lib/components/Tooltip/TooltipPortal.js.map +0 -1
- package/lib/components/Tooltip/tooltipHelper.cjs +0 -47
- package/lib/components/Tooltip/tooltipHelper.cjs.map +0 -1
- package/lib/components/Tooltip/tooltipHelper.d.ts +0 -22
- package/lib/components/Tooltip/tooltipHelper.js +0 -45
- package/lib/components/Tooltip/tooltipHelper.js.map +0 -1
- package/lib/hooks/useAnimationFrame.cjs.map +0 -1
- package/lib/hooks/useAnimationFrame.js.map +0 -1
- package/lib/hooks/useEnhancedEffect.cjs.map +0 -1
- package/lib/hooks/useEnhancedEffect.js.map +0 -1
- package/lib/hooks/useEnvironment/EnvironmentProvider.cjs +0 -38
- package/lib/hooks/useEnvironment/EnvironmentProvider.cjs.map +0 -1
- package/lib/hooks/useEnvironment/EnvironmentProvider.js.map +0 -1
- package/lib/hooks/useEnvironment/index.cjs +0 -10
- package/lib/hooks/useEnvironment/useEnvironment.cjs.map +0 -1
- package/lib/hooks/useEnvironment/useEnvironment.js.map +0 -1
- package/lib/hooks/useHandleEscape.cjs +0 -24
- package/lib/hooks/useHandleEscape.cjs.map +0 -1
- package/lib/hooks/useHandleEscape.d.ts +0 -1
- package/lib/hooks/useHandleEscape.js +0 -22
- package/lib/hooks/useHandleEscape.js.map +0 -1
- package/lib/hooks/useMergeRefs.cjs.map +0 -1
- package/lib/hooks/useMergeRefs.js.map +0 -1
- package/lib/hooks/useOnce.cjs.map +0 -1
- package/lib/hooks/useOnce.js.map +0 -1
- package/lib/hooks/usePortal.cjs.map +0 -1
- package/lib/hooks/usePortal.js.map +0 -1
- package/lib/hooks/useSV/index.cjs +0 -9
- package/lib/hooks/useSV/useSV.cjs.map +0 -1
- package/lib/hooks/useSV/useSV.js.map +0 -1
- package/lib/hooks/useTheme.cjs.map +0 -1
- package/lib/hooks/useTheme.js.map +0 -1
- /package/lib/{hooks/useEnvironment → components/FormGroup}/index.cjs.map +0 -0
- /package/lib/{hooks/useEnvironment → components/FormGroup}/index.js.map +0 -0
- /package/lib/components/{Fieldset → RadioButtonPanel/client}/index.cjs.map +0 -0
- /package/lib/components/{Fieldset → RadioButtonPanel/client}/index.js.map +0 -0
- /package/lib/components/SectioningContent/{levelContext.d.ts → client/components/LevelContext.d.ts} +0 -0
- /package/lib/components/{TextLink/UpwardLink → SectioningContent/client/hooks}/index.cjs.map +0 -0
- /package/lib/components/{FormControl → SectioningContent/client/hooks}/index.js.map +0 -0
- /package/lib/components/SectioningContent/{useSectioningWrapper.d.ts → client/hooks/useSectioningWrapper.d.ts} +0 -0
- /package/lib/components/{TextLink/UpwardLink → TabBar/client}/index.js.map +0 -0
- /package/lib/components/TextLink/{UpwardLink → client}/UpwardLink.d.ts +0 -0
- /package/lib/components/TextLink/{UpwardLink → client}/index.d.ts +0 -0
- /package/lib/components/TextLink/{UpwardLink → client}/index.js +0 -0
- /package/lib/{hooks/useSV → components/TextLink/client}/index.js.map +0 -0
- /package/lib/components/Tooltip/{Tooltip.d.ts → client/Tooltip.d.ts} +0 -0
- /package/lib/components/Tooltip/{TooltipPortal.d.ts → client/TooltipPortal.d.ts} +0 -0
- /package/lib/hooks/{useAnimationFrame.cjs → client/useAnimationFrame/useAnimationFrame.cjs} +0 -0
- /package/lib/hooks/{useAnimationFrame.d.ts → client/useAnimationFrame/useAnimationFrame.d.ts} +0 -0
- /package/lib/hooks/{useAnimationFrame.js → client/useAnimationFrame/useAnimationFrame.js} +0 -0
- /package/lib/hooks/{useEnhancedEffect.cjs → client/useEnhancedEffect.cjs} +0 -0
- /package/lib/hooks/{useEnhancedEffect.d.ts → client/useEnhancedEffect.d.ts} +0 -0
- /package/lib/hooks/{useEnhancedEffect.js → client/useEnhancedEffect.js} +0 -0
- /package/lib/hooks/{useEnvironment → client/useEnvironment}/EnvironmentProvider.d.ts +0 -0
- /package/lib/hooks/{useEnvironment → client/useEnvironment}/index.d.ts +0 -0
- /package/lib/hooks/{useEnvironment → client/useEnvironment}/index.js +0 -0
- /package/lib/hooks/{useEnvironment → client/useEnvironment}/useEnvironment.cjs +0 -0
- /package/lib/hooks/{useEnvironment → client/useEnvironment}/useEnvironment.js +0 -0
- /package/lib/hooks/{useMergeRefs.cjs → client/useMergeRefs/useMergeRefs.cjs} +0 -0
- /package/lib/hooks/{useMergeRefs.d.ts → client/useMergeRefs/useMergeRefs.d.ts} +0 -0
- /package/lib/hooks/{useMergeRefs.js → client/useMergeRefs/useMergeRefs.js} +0 -0
- /package/lib/hooks/{useOnce.cjs → client/useOnce/useOnce.cjs} +0 -0
- /package/lib/hooks/{useOnce.d.ts → client/useOnce/useOnce.d.ts} +0 -0
- /package/lib/hooks/{useOnce.js → client/useOnce/useOnce.js} +0 -0
- /package/lib/{components/FormControl → hooks/client/useSV}/index.cjs.map +0 -0
- /package/lib/hooks/{useSV → client/useSV}/index.d.ts +0 -0
- /package/lib/hooks/{useSV → client/useSV}/index.js +0 -0
|
@@ -25,7 +25,7 @@ const AccordionPanelContent = ({ className, ...rest }) => {
|
|
|
25
25
|
const visible = React.useMemo(() => libs_map.getIsInclude(expandedItems, name), [expandedItems, name]);
|
|
26
26
|
const wrapperRef = React.useRef(null);
|
|
27
27
|
const actualClassName = React.useMemo(() => classNameGenerator({ className }), [className]);
|
|
28
|
-
return (jsxRuntime.jsx(Transition.default, { in: visible, timeout: 150,
|
|
28
|
+
return (jsxRuntime.jsx(Transition.default, { nodeRef: wrapperRef, in: visible, timeout: 150, children: (status) => (jsxRuntime.jsx("div", { ...rest, ref: wrapperRef, id: contentId, className: `${actualClassName} ${status}`, "aria-labelledby": triggerId, "aria-hidden": visible ? undefined : true })) }));
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
exports.AccordionPanelContent = AccordionPanelContent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionPanelContent.cjs","sources":["../../../src/components/AccordionPanel/AccordionPanelContent.tsx"],"sourcesContent":["'use client'\n\nimport {\n type ComponentPropsWithoutRef,\n type FC,\n type PropsWithChildren,\n useContext,\n useMemo,\n useRef,\n} from 'react'\nimport { Transition } from 'react-transition-group'\nimport { tv } from 'tailwind-variants'\n\nimport { getIsInclude } from '../../libs/map'\n\nimport { AccordionPanelContext } from './AccordionPanel'\nimport { AccordionPanelItemContext } from './AccordionPanelItem'\n\ntype BaseProps = PropsWithChildren\ntype Props = BaseProps & Omit<ComponentPropsWithoutRef<'div'>, keyof BaseProps>\n\nconst classNameGenerator = tv({\n base: [\n 'smarthr-ui-AccordionPanel-content',\n 'shr-invisible shr-max-h-0 shr-opacity-0 shr-transition-[max-height,_visible,_opacity] shr-duration-150 shr-ease-in-out',\n '[&.entered]:shr-visible [&.entered]:shr-max-h-[revert] [&.entered]:shr-opacity-100',\n // HINT: flexなどで囲まれると、非表示だが内容分高さが出てしまい、スクロール領域が不自然に伸びてしまう現象が起きる場合がある\n // 非表示の場合、visually hiddenを適用することで、内容としては残しつつ、高さを0にすることで回避する\n 'aria-[hidden]:shr-absolute aria-[hidden]:shr-h-px aria-[hidden]:shr-overflow-hidden',\n ],\n})\n\nexport const AccordionPanelContent: FC<Props> = ({ className, ...rest }) => {\n const { name, contentId, triggerId } = useContext(AccordionPanelItemContext)\n const { expandedItems } = useContext(AccordionPanelContext)\n const visible = useMemo(() => getIsInclude(expandedItems, name), [expandedItems, name])\n const wrapperRef = useRef<HTMLDivElement>(null)\n const actualClassName = useMemo(() => classNameGenerator({ className }), [className])\n\n return (\n <Transition in={visible} timeout={150}
|
|
1
|
+
{"version":3,"file":"AccordionPanelContent.cjs","sources":["../../../src/components/AccordionPanel/AccordionPanelContent.tsx"],"sourcesContent":["'use client'\n\nimport {\n type ComponentPropsWithoutRef,\n type FC,\n type PropsWithChildren,\n useContext,\n useMemo,\n useRef,\n} from 'react'\nimport { Transition } from 'react-transition-group'\nimport { tv } from 'tailwind-variants'\n\nimport { getIsInclude } from '../../libs/map'\n\nimport { AccordionPanelContext } from './AccordionPanel'\nimport { AccordionPanelItemContext } from './AccordionPanelItem'\n\ntype BaseProps = PropsWithChildren\ntype Props = BaseProps & Omit<ComponentPropsWithoutRef<'div'>, keyof BaseProps>\n\nconst classNameGenerator = tv({\n base: [\n 'smarthr-ui-AccordionPanel-content',\n 'shr-invisible shr-max-h-0 shr-opacity-0 shr-transition-[max-height,_visible,_opacity] shr-duration-150 shr-ease-in-out',\n '[&.entered]:shr-visible [&.entered]:shr-max-h-[revert] [&.entered]:shr-opacity-100',\n // HINT: flexなどで囲まれると、非表示だが内容分高さが出てしまい、スクロール領域が不自然に伸びてしまう現象が起きる場合がある\n // 非表示の場合、visually hiddenを適用することで、内容としては残しつつ、高さを0にすることで回避する\n 'aria-[hidden]:shr-absolute aria-[hidden]:shr-h-px aria-[hidden]:shr-overflow-hidden',\n ],\n})\n\nexport const AccordionPanelContent: FC<Props> = ({ className, ...rest }) => {\n const { name, contentId, triggerId } = useContext(AccordionPanelItemContext)\n const { expandedItems } = useContext(AccordionPanelContext)\n const visible = useMemo(() => getIsInclude(expandedItems, name), [expandedItems, name])\n const wrapperRef = useRef<HTMLDivElement>(null)\n const actualClassName = useMemo(() => classNameGenerator({ className }), [className])\n\n return (\n <Transition nodeRef={wrapperRef} in={visible} timeout={150}>\n {(status) => (\n <div\n {...rest}\n ref={wrapperRef}\n id={contentId}\n className={`${actualClassName} ${status}`}\n aria-labelledby={triggerId}\n aria-hidden={visible ? undefined : true}\n />\n )}\n </Transition>\n )\n}\n"],"names":[],"mappings":";;;;;;;;;;;AAqBA;AACE;;;;;;;AAOC;AACF;AAEM;AACL;;;AAGA;AACA;;AAgBF;;"}
|
|
@@ -23,7 +23,7 @@ const AccordionPanelContent = ({ className, ...rest }) => {
|
|
|
23
23
|
const visible = useMemo(() => getIsInclude(expandedItems, name), [expandedItems, name]);
|
|
24
24
|
const wrapperRef = useRef(null);
|
|
25
25
|
const actualClassName = useMemo(() => classNameGenerator({ className }), [className]);
|
|
26
|
-
return (jsx(Transition, { in: visible, timeout: 150,
|
|
26
|
+
return (jsx(Transition, { nodeRef: wrapperRef, in: visible, timeout: 150, children: (status) => (jsx("div", { ...rest, ref: wrapperRef, id: contentId, className: `${actualClassName} ${status}`, "aria-labelledby": triggerId, "aria-hidden": visible ? undefined : true })) }));
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export { AccordionPanelContent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionPanelContent.js","sources":["../../../src/components/AccordionPanel/AccordionPanelContent.tsx"],"sourcesContent":["'use client'\n\nimport {\n type ComponentPropsWithoutRef,\n type FC,\n type PropsWithChildren,\n useContext,\n useMemo,\n useRef,\n} from 'react'\nimport { Transition } from 'react-transition-group'\nimport { tv } from 'tailwind-variants'\n\nimport { getIsInclude } from '../../libs/map'\n\nimport { AccordionPanelContext } from './AccordionPanel'\nimport { AccordionPanelItemContext } from './AccordionPanelItem'\n\ntype BaseProps = PropsWithChildren\ntype Props = BaseProps & Omit<ComponentPropsWithoutRef<'div'>, keyof BaseProps>\n\nconst classNameGenerator = tv({\n base: [\n 'smarthr-ui-AccordionPanel-content',\n 'shr-invisible shr-max-h-0 shr-opacity-0 shr-transition-[max-height,_visible,_opacity] shr-duration-150 shr-ease-in-out',\n '[&.entered]:shr-visible [&.entered]:shr-max-h-[revert] [&.entered]:shr-opacity-100',\n // HINT: flexなどで囲まれると、非表示だが内容分高さが出てしまい、スクロール領域が不自然に伸びてしまう現象が起きる場合がある\n // 非表示の場合、visually hiddenを適用することで、内容としては残しつつ、高さを0にすることで回避する\n 'aria-[hidden]:shr-absolute aria-[hidden]:shr-h-px aria-[hidden]:shr-overflow-hidden',\n ],\n})\n\nexport const AccordionPanelContent: FC<Props> = ({ className, ...rest }) => {\n const { name, contentId, triggerId } = useContext(AccordionPanelItemContext)\n const { expandedItems } = useContext(AccordionPanelContext)\n const visible = useMemo(() => getIsInclude(expandedItems, name), [expandedItems, name])\n const wrapperRef = useRef<HTMLDivElement>(null)\n const actualClassName = useMemo(() => classNameGenerator({ className }), [className])\n\n return (\n <Transition in={visible} timeout={150}
|
|
1
|
+
{"version":3,"file":"AccordionPanelContent.js","sources":["../../../src/components/AccordionPanel/AccordionPanelContent.tsx"],"sourcesContent":["'use client'\n\nimport {\n type ComponentPropsWithoutRef,\n type FC,\n type PropsWithChildren,\n useContext,\n useMemo,\n useRef,\n} from 'react'\nimport { Transition } from 'react-transition-group'\nimport { tv } from 'tailwind-variants'\n\nimport { getIsInclude } from '../../libs/map'\n\nimport { AccordionPanelContext } from './AccordionPanel'\nimport { AccordionPanelItemContext } from './AccordionPanelItem'\n\ntype BaseProps = PropsWithChildren\ntype Props = BaseProps & Omit<ComponentPropsWithoutRef<'div'>, keyof BaseProps>\n\nconst classNameGenerator = tv({\n base: [\n 'smarthr-ui-AccordionPanel-content',\n 'shr-invisible shr-max-h-0 shr-opacity-0 shr-transition-[max-height,_visible,_opacity] shr-duration-150 shr-ease-in-out',\n '[&.entered]:shr-visible [&.entered]:shr-max-h-[revert] [&.entered]:shr-opacity-100',\n // HINT: flexなどで囲まれると、非表示だが内容分高さが出てしまい、スクロール領域が不自然に伸びてしまう現象が起きる場合がある\n // 非表示の場合、visually hiddenを適用することで、内容としては残しつつ、高さを0にすることで回避する\n 'aria-[hidden]:shr-absolute aria-[hidden]:shr-h-px aria-[hidden]:shr-overflow-hidden',\n ],\n})\n\nexport const AccordionPanelContent: FC<Props> = ({ className, ...rest }) => {\n const { name, contentId, triggerId } = useContext(AccordionPanelItemContext)\n const { expandedItems } = useContext(AccordionPanelContext)\n const visible = useMemo(() => getIsInclude(expandedItems, name), [expandedItems, name])\n const wrapperRef = useRef<HTMLDivElement>(null)\n const actualClassName = useMemo(() => classNameGenerator({ className }), [className])\n\n return (\n <Transition nodeRef={wrapperRef} in={visible} timeout={150}>\n {(status) => (\n <div\n {...rest}\n ref={wrapperRef}\n id={contentId}\n className={`${actualClassName} ${status}`}\n aria-labelledby={triggerId}\n aria-hidden={visible ? undefined : true}\n />\n )}\n </Transition>\n )\n}\n"],"names":[],"mappings":";;;;;;;;;AAqBA;AACE;;;;;;;AAOC;AACF;AAEM;AACL;;;AAGA;AACA;;AAgBF;;"}
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var React = require('react');
|
|
6
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 components_SectioningContent_SectioningContent = require('../SectioningContent/SectioningContent.cjs');
|
|
8
|
-
require('../SectioningContent/
|
|
8
|
+
require('../SectioningContent/client/components/LevelContext.cjs');
|
|
9
9
|
require('styled-components');
|
|
10
10
|
|
|
11
11
|
const AccordionPanelItemContext = React.createContext({
|
|
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { createContext, useMemo } from 'react';
|
|
4
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 { Section } from '../SectioningContent/SectioningContent.js';
|
|
6
|
-
import '../SectioningContent/
|
|
6
|
+
import '../SectioningContent/client/components/LevelContext.js';
|
|
7
7
|
import 'styled-components';
|
|
8
8
|
|
|
9
9
|
const AccordionPanelItemContext = createContext({
|
|
@@ -56,11 +56,11 @@ const AccordionPanelTrigger = ({ children, className, headingType = 'blockTitle'
|
|
|
56
56
|
const { name, contentId, triggerId } = React.useContext(components_AccordionPanel_AccordionPanelItem.AccordionPanelItemContext);
|
|
57
57
|
const { iconPosition, expandedItems, handleClickTrigger, handleKeyDown } = React.useContext(components_AccordionPanel_AccordionPanel.AccordionPanelContext);
|
|
58
58
|
const isExpanded = React.useMemo(() => libs_map.getIsInclude(expandedItems, name), [expandedItems, name]);
|
|
59
|
-
return (jsxRuntime.jsx(MemoizedHeadingButton, { ...rest,
|
|
59
|
+
return (jsxRuntime.jsx(MemoizedHeadingButton, { ...rest, triggerId: triggerId, contentId: contentId, name: name, isExpanded: isExpanded, iconPosition: iconPosition, headingType: headingType, unrecommendedHeadingTag: unrecommendedHeadingTag, classNames: classNames, handleClickTrigger: handleClickTrigger, handleKeyDown: handleKeyDown, children: children }));
|
|
60
60
|
};
|
|
61
61
|
const MemoizedHeadingButton = React.memo(({ children, name, triggerId, isExpanded, contentId, handleClickTrigger, handleKeyDown, classNames, iconPosition, headingType, unrecommendedHeadingTag, ...rest }) => (
|
|
62
62
|
// eslint-disable-next-line smarthr/a11y-heading-in-sectioning-content
|
|
63
|
-
jsxRuntime.jsx(components_Heading_Heading.Heading, {
|
|
63
|
+
jsxRuntime.jsx(components_Heading_Heading.Heading, { type: headingType, unrecommendedTag: unrecommendedHeadingTag, children: jsxRuntime.jsx("button", { ...rest, type: "button", id: triggerId, value: name, className: classNames.button, "aria-expanded": isExpanded, "aria-controls": contentId, "data-component": "AccordionHeaderButton", onClick: handleClickTrigger, onKeyDown: handleKeyDown, children: jsxRuntime.jsxs(components_Layout_Cluster_Cluster.Cluster, { as: "span", align: "center", className: classNames.titleWrapper, children: [iconPosition === 'left' && jsxRuntime.jsx(components_Icon_FaIcon.FaCaretRightIcon, { className: classNames.leftIcon }), jsxRuntime.jsx("span", { className: classNames.title, children: children }), iconPosition === 'right' && jsxRuntime.jsx(components_Icon_FaIcon.FaCaretDownIcon, { className: classNames.rightIcon })] }) }) })));
|
|
64
64
|
|
|
65
65
|
exports.AccordionPanelTrigger = AccordionPanelTrigger;
|
|
66
66
|
//# sourceMappingURL=AccordionPanelTrigger.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionPanelTrigger.cjs","sources":["../../../src/components/AccordionPanel/AccordionPanelTrigger.tsx"],"sourcesContent":["'use client'\n\nimport {\n type ComponentPropsWithoutRef,\n type FC,\n type KeyboardEventHandler,\n type MouseEvent,\n type PropsWithChildren,\n memo,\n useContext,\n useMemo,\n} from 'react'\nimport { tv } from 'tailwind-variants'\n\nimport { getIsInclude } from '../../libs/map'\nimport { Heading, type HeadingTagTypes } from '../Heading'\nimport { FaCaretDownIcon, FaCaretRightIcon } from '../Icon'\nimport { Cluster } from '../Layout'\n\nimport { AccordionPanelContext } from './AccordionPanel'\nimport { AccordionPanelItemContext } from './AccordionPanelItem'\n\nimport type { TextProps } from '../Text'\n\ntype BaseProps = PropsWithChildren<{\n /** ヘッダ部分のテキストのスタイル */\n headingType?: Exclude<TextProps['styleType'], 'screenTitle'>\n /**\n * 可能な限り利用せず、SectioningContent(Article, Aside, Nav, Section)を使ってHeadingと関連する範囲を明確に指定する方法を検討してください\n */\n unrecommendedHeadingTag?: HeadingTagTypes\n}>\ntype Props = BaseProps & Omit<ComponentPropsWithoutRef<'button'>, keyof BaseProps>\n\nconst classNameGenerator = tv({\n slots: {\n title: 'shr-grow shr-leading-tight',\n titleWrapper: 'shr-flex-nowrap',\n button: [\n 'smarthr-ui-AccordionPanel-trigger',\n 'shr-group shr-w-full shr-cursor-pointer shr-appearance-none shr-border-none shr-bg-transparent shr-px-1 shr-py-0.75 shr-text-left shr-text-inherit shr-text-color-inherit',\n 'disabled:shr-cursor-not-allowed disabled:shr-bg-white-darken disabled:shr-text-disabled',\n 'hover:shr-bg-white-darken',\n 'focus-visible:shr-focus-indicator',\n // Panel 直下に AccordionPanel がある場合、背景が付き抜けないように角丸を指定(Panel に overflow: hidden を与えるとフォーカスリングが表示されなくなる)\n '[.smarthr-ui-Panel_>_.smarthr-ui-AccordionPanel_.smarthr-ui-AccordionPanel-item:first-child_&]:shr-rounded-t-l [.smarthr-ui-Panel_>_.smarthr-ui-AccordionPanel_.smarthr-ui-AccordionPanel-item:last-child_&]:shr-rounded-b-l',\n ],\n leftIcon: 'shr-transition-transform shr-duration-100 group-aria-expanded:shr-rotate-90',\n rightIcon: 'group-aria-expanded:-shr-rotate-180',\n },\n compoundSlots: [\n {\n slots: ['leftIcon', 'rightIcon'],\n className: 'shr-shrink-0',\n },\n ],\n})\n\nexport const AccordionPanelTrigger: FC<Props> = ({\n children,\n className,\n headingType = 'blockTitle',\n unrecommendedHeadingTag,\n ...rest\n}) => {\n const classNames = useMemo(() => {\n const { title, titleWrapper, button, leftIcon, rightIcon } = classNameGenerator()\n\n return {\n title: title(),\n titleWrapper: titleWrapper(),\n button: button({ className }),\n leftIcon: leftIcon(),\n rightIcon: rightIcon(),\n }\n }, [className])\n\n const { name, contentId, triggerId } = useContext(AccordionPanelItemContext)\n const { iconPosition, expandedItems, handleClickTrigger, handleKeyDown } =\n useContext(AccordionPanelContext)\n\n const isExpanded = useMemo(() => getIsInclude(expandedItems, name), [expandedItems, name])\n\n return (\n <MemoizedHeadingButton\n {...rest}\n
|
|
1
|
+
{"version":3,"file":"AccordionPanelTrigger.cjs","sources":["../../../src/components/AccordionPanel/AccordionPanelTrigger.tsx"],"sourcesContent":["'use client'\n\nimport {\n type ComponentPropsWithoutRef,\n type FC,\n type KeyboardEventHandler,\n type MouseEvent,\n type PropsWithChildren,\n memo,\n useContext,\n useMemo,\n} from 'react'\nimport { tv } from 'tailwind-variants'\n\nimport { getIsInclude } from '../../libs/map'\nimport { Heading, type HeadingTagTypes } from '../Heading'\nimport { FaCaretDownIcon, FaCaretRightIcon } from '../Icon'\nimport { Cluster } from '../Layout'\n\nimport { AccordionPanelContext } from './AccordionPanel'\nimport { AccordionPanelItemContext } from './AccordionPanelItem'\n\nimport type { TextProps } from '../Text'\n\ntype BaseProps = PropsWithChildren<{\n /** ヘッダ部分のテキストのスタイル */\n headingType?: Exclude<TextProps['styleType'], 'screenTitle'>\n /**\n * 可能な限り利用せず、SectioningContent(Article, Aside, Nav, Section)を使ってHeadingと関連する範囲を明確に指定する方法を検討してください\n */\n unrecommendedHeadingTag?: HeadingTagTypes\n}>\ntype Props = BaseProps & Omit<ComponentPropsWithoutRef<'button'>, keyof BaseProps>\n\nconst classNameGenerator = tv({\n slots: {\n title: 'shr-grow shr-leading-tight',\n titleWrapper: 'shr-flex-nowrap',\n button: [\n 'smarthr-ui-AccordionPanel-trigger',\n 'shr-group shr-w-full shr-cursor-pointer shr-appearance-none shr-border-none shr-bg-transparent shr-px-1 shr-py-0.75 shr-text-left shr-text-inherit shr-text-color-inherit',\n 'disabled:shr-cursor-not-allowed disabled:shr-bg-white-darken disabled:shr-text-disabled',\n 'hover:shr-bg-white-darken',\n 'focus-visible:shr-focus-indicator',\n // Panel 直下に AccordionPanel がある場合、背景が付き抜けないように角丸を指定(Panel に overflow: hidden を与えるとフォーカスリングが表示されなくなる)\n '[.smarthr-ui-Panel_>_.smarthr-ui-AccordionPanel_.smarthr-ui-AccordionPanel-item:first-child_&]:shr-rounded-t-l [.smarthr-ui-Panel_>_.smarthr-ui-AccordionPanel_.smarthr-ui-AccordionPanel-item:last-child_&]:shr-rounded-b-l',\n ],\n leftIcon: 'shr-transition-transform shr-duration-100 group-aria-expanded:shr-rotate-90',\n rightIcon: 'group-aria-expanded:-shr-rotate-180',\n },\n compoundSlots: [\n {\n slots: ['leftIcon', 'rightIcon'],\n className: 'shr-shrink-0',\n },\n ],\n})\n\nexport const AccordionPanelTrigger: FC<Props> = ({\n children,\n className,\n headingType = 'blockTitle',\n unrecommendedHeadingTag,\n ...rest\n}) => {\n const classNames = useMemo(() => {\n const { title, titleWrapper, button, leftIcon, rightIcon } = classNameGenerator()\n\n return {\n title: title(),\n titleWrapper: titleWrapper(),\n button: button({ className }),\n leftIcon: leftIcon(),\n rightIcon: rightIcon(),\n }\n }, [className])\n\n const { name, contentId, triggerId } = useContext(AccordionPanelItemContext)\n const { iconPosition, expandedItems, handleClickTrigger, handleKeyDown } =\n useContext(AccordionPanelContext)\n\n const isExpanded = useMemo(() => getIsInclude(expandedItems, name), [expandedItems, name])\n\n return (\n <MemoizedHeadingButton\n {...rest}\n triggerId={triggerId}\n contentId={contentId}\n name={name}\n isExpanded={isExpanded}\n iconPosition={iconPosition}\n headingType={headingType}\n unrecommendedHeadingTag={unrecommendedHeadingTag}\n classNames={classNames}\n handleClickTrigger={handleClickTrigger}\n handleKeyDown={handleKeyDown}\n >\n {children}\n </MemoizedHeadingButton>\n )\n}\n\nconst MemoizedHeadingButton = memo<\n PropsWithChildren<\n Omit<ComponentPropsWithoutRef<'button'>, 'onClick' | 'onKeyDown'> & {\n name: string\n triggerId: string\n isExpanded: boolean\n contentId: string\n handleClickTrigger: (e: MouseEvent<HTMLButtonElement>) => void\n handleKeyDown: KeyboardEventHandler<HTMLButtonElement>\n classNames: {\n button: string\n titleWrapper: string\n leftIcon: string\n rightIcon: string\n title: string\n }\n iconPosition: 'left' | 'right'\n headingType: Exclude<TextProps['styleType'], 'screenTitle'>\n unrecommendedHeadingTag?: HeadingTagTypes\n }\n >\n>(\n ({\n children,\n name,\n triggerId,\n isExpanded,\n contentId,\n handleClickTrigger,\n handleKeyDown,\n classNames,\n iconPosition,\n headingType,\n unrecommendedHeadingTag,\n ...rest\n }) => (\n // eslint-disable-next-line smarthr/a11y-heading-in-sectioning-content\n <Heading type={headingType} unrecommendedTag={unrecommendedHeadingTag}>\n <button\n {...rest}\n type=\"button\"\n id={triggerId}\n value={name}\n className={classNames.button}\n aria-expanded={isExpanded}\n aria-controls={contentId}\n data-component=\"AccordionHeaderButton\"\n onClick={handleClickTrigger}\n onKeyDown={handleKeyDown}\n >\n {/* eslint-disable-next-line smarthr/best-practice-for-layouts */}\n <Cluster as=\"span\" align=\"center\" className={classNames.titleWrapper}>\n {iconPosition === 'left' && <FaCaretRightIcon className={classNames.leftIcon} />}\n <span className={classNames.title}>{children}</span>\n {iconPosition === 'right' && <FaCaretDownIcon className={classNames.rightIcon} />}\n </Cluster>\n </button>\n </Heading>\n ),\n)\n"],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAkCA;AACE;AACE;AACA;AACA;;;;;;;;AAQC;AACD;AACA;AACD;AACD;AACE;AACE;AACA;AACD;AACF;AACF;;AASC;AACE;;;;AAKE;;;;AAIJ;AAEA;AACA;;;AAsBF;AAEA;AAoCI;AACAA;;"}
|
|
@@ -54,11 +54,11 @@ const AccordionPanelTrigger = ({ children, className, headingType = 'blockTitle'
|
|
|
54
54
|
const { name, contentId, triggerId } = useContext(AccordionPanelItemContext);
|
|
55
55
|
const { iconPosition, expandedItems, handleClickTrigger, handleKeyDown } = useContext(AccordionPanelContext);
|
|
56
56
|
const isExpanded = useMemo(() => getIsInclude(expandedItems, name), [expandedItems, name]);
|
|
57
|
-
return (jsx(MemoizedHeadingButton, { ...rest,
|
|
57
|
+
return (jsx(MemoizedHeadingButton, { ...rest, triggerId: triggerId, contentId: contentId, name: name, isExpanded: isExpanded, iconPosition: iconPosition, headingType: headingType, unrecommendedHeadingTag: unrecommendedHeadingTag, classNames: classNames, handleClickTrigger: handleClickTrigger, handleKeyDown: handleKeyDown, children: children }));
|
|
58
58
|
};
|
|
59
59
|
const MemoizedHeadingButton = memo(({ children, name, triggerId, isExpanded, contentId, handleClickTrigger, handleKeyDown, classNames, iconPosition, headingType, unrecommendedHeadingTag, ...rest }) => (
|
|
60
60
|
// eslint-disable-next-line smarthr/a11y-heading-in-sectioning-content
|
|
61
|
-
jsx(Heading, {
|
|
61
|
+
jsx(Heading, { type: headingType, unrecommendedTag: unrecommendedHeadingTag, children: jsx("button", { ...rest, type: "button", id: triggerId, value: name, className: classNames.button, "aria-expanded": isExpanded, "aria-controls": contentId, "data-component": "AccordionHeaderButton", onClick: handleClickTrigger, onKeyDown: handleKeyDown, children: jsxs(Cluster, { as: "span", align: "center", className: classNames.titleWrapper, children: [iconPosition === 'left' && jsx(FaCaretRightIcon, { className: classNames.leftIcon }), jsx("span", { className: classNames.title, children: children }), iconPosition === 'right' && jsx(FaCaretDownIcon, { className: classNames.rightIcon })] }) }) })));
|
|
62
62
|
|
|
63
63
|
export { AccordionPanelTrigger };
|
|
64
64
|
//# sourceMappingURL=AccordionPanelTrigger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionPanelTrigger.js","sources":["../../../src/components/AccordionPanel/AccordionPanelTrigger.tsx"],"sourcesContent":["'use client'\n\nimport {\n type ComponentPropsWithoutRef,\n type FC,\n type KeyboardEventHandler,\n type MouseEvent,\n type PropsWithChildren,\n memo,\n useContext,\n useMemo,\n} from 'react'\nimport { tv } from 'tailwind-variants'\n\nimport { getIsInclude } from '../../libs/map'\nimport { Heading, type HeadingTagTypes } from '../Heading'\nimport { FaCaretDownIcon, FaCaretRightIcon } from '../Icon'\nimport { Cluster } from '../Layout'\n\nimport { AccordionPanelContext } from './AccordionPanel'\nimport { AccordionPanelItemContext } from './AccordionPanelItem'\n\nimport type { TextProps } from '../Text'\n\ntype BaseProps = PropsWithChildren<{\n /** ヘッダ部分のテキストのスタイル */\n headingType?: Exclude<TextProps['styleType'], 'screenTitle'>\n /**\n * 可能な限り利用せず、SectioningContent(Article, Aside, Nav, Section)を使ってHeadingと関連する範囲を明確に指定する方法を検討してください\n */\n unrecommendedHeadingTag?: HeadingTagTypes\n}>\ntype Props = BaseProps & Omit<ComponentPropsWithoutRef<'button'>, keyof BaseProps>\n\nconst classNameGenerator = tv({\n slots: {\n title: 'shr-grow shr-leading-tight',\n titleWrapper: 'shr-flex-nowrap',\n button: [\n 'smarthr-ui-AccordionPanel-trigger',\n 'shr-group shr-w-full shr-cursor-pointer shr-appearance-none shr-border-none shr-bg-transparent shr-px-1 shr-py-0.75 shr-text-left shr-text-inherit shr-text-color-inherit',\n 'disabled:shr-cursor-not-allowed disabled:shr-bg-white-darken disabled:shr-text-disabled',\n 'hover:shr-bg-white-darken',\n 'focus-visible:shr-focus-indicator',\n // Panel 直下に AccordionPanel がある場合、背景が付き抜けないように角丸を指定(Panel に overflow: hidden を与えるとフォーカスリングが表示されなくなる)\n '[.smarthr-ui-Panel_>_.smarthr-ui-AccordionPanel_.smarthr-ui-AccordionPanel-item:first-child_&]:shr-rounded-t-l [.smarthr-ui-Panel_>_.smarthr-ui-AccordionPanel_.smarthr-ui-AccordionPanel-item:last-child_&]:shr-rounded-b-l',\n ],\n leftIcon: 'shr-transition-transform shr-duration-100 group-aria-expanded:shr-rotate-90',\n rightIcon: 'group-aria-expanded:-shr-rotate-180',\n },\n compoundSlots: [\n {\n slots: ['leftIcon', 'rightIcon'],\n className: 'shr-shrink-0',\n },\n ],\n})\n\nexport const AccordionPanelTrigger: FC<Props> = ({\n children,\n className,\n headingType = 'blockTitle',\n unrecommendedHeadingTag,\n ...rest\n}) => {\n const classNames = useMemo(() => {\n const { title, titleWrapper, button, leftIcon, rightIcon } = classNameGenerator()\n\n return {\n title: title(),\n titleWrapper: titleWrapper(),\n button: button({ className }),\n leftIcon: leftIcon(),\n rightIcon: rightIcon(),\n }\n }, [className])\n\n const { name, contentId, triggerId } = useContext(AccordionPanelItemContext)\n const { iconPosition, expandedItems, handleClickTrigger, handleKeyDown } =\n useContext(AccordionPanelContext)\n\n const isExpanded = useMemo(() => getIsInclude(expandedItems, name), [expandedItems, name])\n\n return (\n <MemoizedHeadingButton\n {...rest}\n
|
|
1
|
+
{"version":3,"file":"AccordionPanelTrigger.js","sources":["../../../src/components/AccordionPanel/AccordionPanelTrigger.tsx"],"sourcesContent":["'use client'\n\nimport {\n type ComponentPropsWithoutRef,\n type FC,\n type KeyboardEventHandler,\n type MouseEvent,\n type PropsWithChildren,\n memo,\n useContext,\n useMemo,\n} from 'react'\nimport { tv } from 'tailwind-variants'\n\nimport { getIsInclude } from '../../libs/map'\nimport { Heading, type HeadingTagTypes } from '../Heading'\nimport { FaCaretDownIcon, FaCaretRightIcon } from '../Icon'\nimport { Cluster } from '../Layout'\n\nimport { AccordionPanelContext } from './AccordionPanel'\nimport { AccordionPanelItemContext } from './AccordionPanelItem'\n\nimport type { TextProps } from '../Text'\n\ntype BaseProps = PropsWithChildren<{\n /** ヘッダ部分のテキストのスタイル */\n headingType?: Exclude<TextProps['styleType'], 'screenTitle'>\n /**\n * 可能な限り利用せず、SectioningContent(Article, Aside, Nav, Section)を使ってHeadingと関連する範囲を明確に指定する方法を検討してください\n */\n unrecommendedHeadingTag?: HeadingTagTypes\n}>\ntype Props = BaseProps & Omit<ComponentPropsWithoutRef<'button'>, keyof BaseProps>\n\nconst classNameGenerator = tv({\n slots: {\n title: 'shr-grow shr-leading-tight',\n titleWrapper: 'shr-flex-nowrap',\n button: [\n 'smarthr-ui-AccordionPanel-trigger',\n 'shr-group shr-w-full shr-cursor-pointer shr-appearance-none shr-border-none shr-bg-transparent shr-px-1 shr-py-0.75 shr-text-left shr-text-inherit shr-text-color-inherit',\n 'disabled:shr-cursor-not-allowed disabled:shr-bg-white-darken disabled:shr-text-disabled',\n 'hover:shr-bg-white-darken',\n 'focus-visible:shr-focus-indicator',\n // Panel 直下に AccordionPanel がある場合、背景が付き抜けないように角丸を指定(Panel に overflow: hidden を与えるとフォーカスリングが表示されなくなる)\n '[.smarthr-ui-Panel_>_.smarthr-ui-AccordionPanel_.smarthr-ui-AccordionPanel-item:first-child_&]:shr-rounded-t-l [.smarthr-ui-Panel_>_.smarthr-ui-AccordionPanel_.smarthr-ui-AccordionPanel-item:last-child_&]:shr-rounded-b-l',\n ],\n leftIcon: 'shr-transition-transform shr-duration-100 group-aria-expanded:shr-rotate-90',\n rightIcon: 'group-aria-expanded:-shr-rotate-180',\n },\n compoundSlots: [\n {\n slots: ['leftIcon', 'rightIcon'],\n className: 'shr-shrink-0',\n },\n ],\n})\n\nexport const AccordionPanelTrigger: FC<Props> = ({\n children,\n className,\n headingType = 'blockTitle',\n unrecommendedHeadingTag,\n ...rest\n}) => {\n const classNames = useMemo(() => {\n const { title, titleWrapper, button, leftIcon, rightIcon } = classNameGenerator()\n\n return {\n title: title(),\n titleWrapper: titleWrapper(),\n button: button({ className }),\n leftIcon: leftIcon(),\n rightIcon: rightIcon(),\n }\n }, [className])\n\n const { name, contentId, triggerId } = useContext(AccordionPanelItemContext)\n const { iconPosition, expandedItems, handleClickTrigger, handleKeyDown } =\n useContext(AccordionPanelContext)\n\n const isExpanded = useMemo(() => getIsInclude(expandedItems, name), [expandedItems, name])\n\n return (\n <MemoizedHeadingButton\n {...rest}\n triggerId={triggerId}\n contentId={contentId}\n name={name}\n isExpanded={isExpanded}\n iconPosition={iconPosition}\n headingType={headingType}\n unrecommendedHeadingTag={unrecommendedHeadingTag}\n classNames={classNames}\n handleClickTrigger={handleClickTrigger}\n handleKeyDown={handleKeyDown}\n >\n {children}\n </MemoizedHeadingButton>\n )\n}\n\nconst MemoizedHeadingButton = memo<\n PropsWithChildren<\n Omit<ComponentPropsWithoutRef<'button'>, 'onClick' | 'onKeyDown'> & {\n name: string\n triggerId: string\n isExpanded: boolean\n contentId: string\n handleClickTrigger: (e: MouseEvent<HTMLButtonElement>) => void\n handleKeyDown: KeyboardEventHandler<HTMLButtonElement>\n classNames: {\n button: string\n titleWrapper: string\n leftIcon: string\n rightIcon: string\n title: string\n }\n iconPosition: 'left' | 'right'\n headingType: Exclude<TextProps['styleType'], 'screenTitle'>\n unrecommendedHeadingTag?: HeadingTagTypes\n }\n >\n>(\n ({\n children,\n name,\n triggerId,\n isExpanded,\n contentId,\n handleClickTrigger,\n handleKeyDown,\n classNames,\n iconPosition,\n headingType,\n unrecommendedHeadingTag,\n ...rest\n }) => (\n // eslint-disable-next-line smarthr/a11y-heading-in-sectioning-content\n <Heading type={headingType} unrecommendedTag={unrecommendedHeadingTag}>\n <button\n {...rest}\n type=\"button\"\n id={triggerId}\n value={name}\n className={classNames.button}\n aria-expanded={isExpanded}\n aria-controls={contentId}\n data-component=\"AccordionHeaderButton\"\n onClick={handleClickTrigger}\n onKeyDown={handleKeyDown}\n >\n {/* eslint-disable-next-line smarthr/best-practice-for-layouts */}\n <Cluster as=\"span\" align=\"center\" className={classNames.titleWrapper}>\n {iconPosition === 'left' && <FaCaretRightIcon className={classNames.leftIcon} />}\n <span className={classNames.title}>{children}</span>\n {iconPosition === 'right' && <FaCaretDownIcon className={classNames.rightIcon} />}\n </Cluster>\n </button>\n </Heading>\n ),\n)\n"],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;AAkCA;AACE;AACE;AACA;AACA;;;;;;;;AAQC;AACD;AACA;AACD;AACD;AACE;AACE;AACA;AACD;AACF;AACF;;AASC;AACE;;;;AAKE;;;;AAIJ;AAEA;AACA;;;AAsBF;AAEA;AAoCI;AACAA;;"}
|
|
@@ -2,18 +2,51 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var hooks_useLatest = require('../../hooks/useLatest.cjs');
|
|
5
7
|
var components_AppHeader_components_desktop_DesktopHeader = require('./components/desktop/DesktopHeader.cjs');
|
|
6
8
|
var components_AppHeader_components_mobile_MobileHeader = require('./components/mobile/MobileHeader.cjs');
|
|
7
9
|
var components_AppHeader_hooks_useMediaQuery = require('./hooks/useMediaQuery.cjs');
|
|
8
10
|
|
|
9
|
-
const
|
|
11
|
+
const EMPTY_FEATURES = [];
|
|
12
|
+
const AppHeader = ({ children, desktopAdditionalContent, desktopNavigationAdditionalContent, mobileAdditionalContent, features, fetchFeatures, ...rest }) => {
|
|
10
13
|
// NOTE: ヘッダーの出し分けは CSS によって行われているので、useMediaQuery による children の出し分けは本来不要ですが、
|
|
11
14
|
// wovn の言語切替カスタム UI の挿入対象となる DOM ("wovn-embedded-widget-anchor" クラスを持った div) が複数描画されていると、
|
|
12
15
|
// wovn のスクリプトの仕様上1つ目の DOM にしか UI が挿入されないため、やむを得ず children のみ React のレンダリングレベルでの出し分けをしています。
|
|
13
16
|
const isDesktop = components_AppHeader_hooks_useMediaQuery.useMediaQuery(components_AppHeader_hooks_useMediaQuery.mediaQuery.desktop);
|
|
17
|
+
const [lazyFeatures, setLazyFeatures] = React.useState({ loading: false, error: false, data: null });
|
|
18
|
+
const latest = hooks_useLatest.useLatest({ fetchFeatures, lazyFeatures });
|
|
19
|
+
const functions = React.useMemo(() => ({
|
|
20
|
+
handleOpenAppLauncher: () => {
|
|
21
|
+
// HINT: Desktop・Mobileの両ヘッダーが常にマウントされているため、取得中・取得済みの場合はスキップし、
|
|
22
|
+
// どちらから開いても fetchFeatures の呼び出しが1回だけになるようにする
|
|
23
|
+
if (latest.fetchFeatures && !latest.lazyFeatures.loading && !latest.lazyFeatures.data) {
|
|
24
|
+
setLazyFeatures({ loading: true, error: false, data: null });
|
|
25
|
+
// HINT: 失敗時は次回オープンで再試行できるようにする
|
|
26
|
+
const handleError = () => setLazyFeatures({ loading: false, error: true, data: null });
|
|
27
|
+
try {
|
|
28
|
+
latest
|
|
29
|
+
.fetchFeatures()
|
|
30
|
+
.then((data) => setLazyFeatures({ loading: false, error: false, data }), handleError);
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
// HINT: fetchFeatures が Promise を返す前に同期的に throw した場合も、loading のままにしない
|
|
34
|
+
handleError();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
}), [latest]);
|
|
39
|
+
const resolvedFeatures = fetchFeatures
|
|
40
|
+
? (lazyFeatures.data ?? EMPTY_FEATURES)
|
|
41
|
+
: (features ?? EMPTY_FEATURES);
|
|
42
|
+
const isAppLauncherAvailable = !!fetchFeatures || resolvedFeatures.length > 0;
|
|
43
|
+
// HINT: Desktopは Dropdown の onOpen(requestAnimationFrame経由)で取得を開始するため、
|
|
44
|
+
// パネルが開いてから実際に取得が始まるまでに1フレームの猶予がある。
|
|
45
|
+
// fetchFeatures 指定時に未取得かつ未エラーの状態はすべて取得中として扱い、その間に「該当なし」が表示されるのを防ぐ
|
|
46
|
+
const featuresLoading = !!fetchFeatures && lazyFeatures.data === null && !lazyFeatures.error;
|
|
14
47
|
// HINT: Desktop,Mobileの両ヘッダーは常にHTML上に存在し、cssでvisibleを切り替えることでSSR環境でのレイアウトシフトが発生しないようにしています
|
|
15
48
|
// 表示切替は画面幅によって決まり、SSR環境では判定出来ないためです
|
|
16
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(components_AppHeader_components_desktop_DesktopHeader.DesktopHeader, { ...rest, desktopAdditionalContent: desktopAdditionalContent, desktopNavigationAdditionalContent: desktopNavigationAdditionalContent, children: isDesktop ? children : undefined }), jsxRuntime.jsx(components_AppHeader_components_mobile_MobileHeader.MobileHeader, { ...rest, mobileAdditionalContent: mobileAdditionalContent, children: isDesktop ? undefined : children })] }));
|
|
49
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(components_AppHeader_components_desktop_DesktopHeader.DesktopHeader, { ...rest, desktopAdditionalContent: desktopAdditionalContent, desktopNavigationAdditionalContent: desktopNavigationAdditionalContent, features: resolvedFeatures, isAppLauncherAvailable: isAppLauncherAvailable, featuresLoading: featuresLoading, featuresError: lazyFeatures.error, handleOpenAppLauncher: functions.handleOpenAppLauncher, children: isDesktop ? children : undefined }), jsxRuntime.jsx(components_AppHeader_components_mobile_MobileHeader.MobileHeader, { ...rest, mobileAdditionalContent: mobileAdditionalContent, features: resolvedFeatures, isAppLauncherAvailable: isAppLauncherAvailable, featuresLoading: featuresLoading, featuresError: lazyFeatures.error, handleOpenAppLauncher: functions.handleOpenAppLauncher, children: isDesktop ? undefined : children })] }));
|
|
17
50
|
};
|
|
18
51
|
|
|
19
52
|
exports.AppHeader = AppHeader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppHeader.cjs","sources":["../../../src/components/AppHeader/AppHeader.tsx"],"sourcesContent":["'use client'\n\nimport { DesktopHeader } from './components/desktop/DesktopHeader'\nimport { MobileHeader } from './components/mobile/MobileHeader'\nimport { mediaQuery, useMediaQuery } from './hooks/useMediaQuery'\n\nimport type { HeaderProps } from './types'\nimport type { FC } from 'react'\n\nexport const AppHeader: FC<HeaderProps> = ({\n children,\n desktopAdditionalContent,\n desktopNavigationAdditionalContent,\n mobileAdditionalContent,\n ...rest\n}) => {\n // NOTE: ヘッダーの出し分けは CSS によって行われているので、useMediaQuery による children の出し分けは本来不要ですが、\n // wovn の言語切替カスタム UI の挿入対象となる DOM (\"wovn-embedded-widget-anchor\" クラスを持った div) が複数描画されていると、\n // wovn のスクリプトの仕様上1つ目の DOM にしか UI が挿入されないため、やむを得ず children のみ React のレンダリングレベルでの出し分けをしています。\n const isDesktop = useMediaQuery(mediaQuery.desktop)\n\n // HINT: Desktop,Mobileの両ヘッダーは常にHTML上に存在し、cssでvisibleを切り替えることでSSR環境でのレイアウトシフトが発生しないようにしています\n // 表示切替は画面幅によって決まり、SSR環境では判定出来ないためです\n return (\n <>\n <DesktopHeader\n {...rest}\n desktopAdditionalContent={desktopAdditionalContent}\n desktopNavigationAdditionalContent={desktopNavigationAdditionalContent}\n >\n {isDesktop ? children : undefined}\n </DesktopHeader>\n <MobileHeader
|
|
1
|
+
{"version":3,"file":"AppHeader.cjs","sources":["../../../src/components/AppHeader/AppHeader.tsx"],"sourcesContent":["'use client'\n\nimport { useMemo, useState } from 'react'\n\nimport { useLatest } from '../../hooks/useLatest'\n\nimport { DesktopHeader } from './components/desktop/DesktopHeader'\nimport { MobileHeader } from './components/mobile/MobileHeader'\nimport { mediaQuery, useMediaQuery } from './hooks/useMediaQuery'\n\nimport type { HeaderProps, Launcher } from './types'\nimport type { FC } from 'react'\n\nconst EMPTY_FEATURES: Array<Launcher['feature']> = []\n\nexport const AppHeader: FC<HeaderProps> = ({\n children,\n desktopAdditionalContent,\n desktopNavigationAdditionalContent,\n mobileAdditionalContent,\n features,\n fetchFeatures,\n ...rest\n}) => {\n // NOTE: ヘッダーの出し分けは CSS によって行われているので、useMediaQuery による children の出し分けは本来不要ですが、\n // wovn の言語切替カスタム UI の挿入対象となる DOM (\"wovn-embedded-widget-anchor\" クラスを持った div) が複数描画されていると、\n // wovn のスクリプトの仕様上1つ目の DOM にしか UI が挿入されないため、やむを得ず children のみ React のレンダリングレベルでの出し分けをしています。\n const isDesktop = useMediaQuery(mediaQuery.desktop)\n\n const [lazyFeatures, setLazyFeatures] = useState<{\n loading: boolean\n error: boolean\n data: Array<Launcher['feature']> | null\n }>({ loading: false, error: false, data: null })\n\n const latest = useLatest({ fetchFeatures, lazyFeatures })\n\n const functions = useMemo(\n () => ({\n handleOpenAppLauncher: () => {\n // HINT: Desktop・Mobileの両ヘッダーが常にマウントされているため、取得中・取得済みの場合はスキップし、\n // どちらから開いても fetchFeatures の呼び出しが1回だけになるようにする\n if (latest.fetchFeatures && !latest.lazyFeatures.loading && !latest.lazyFeatures.data) {\n setLazyFeatures({ loading: true, error: false, data: null })\n\n // HINT: 失敗時は次回オープンで再試行できるようにする\n const handleError = () => setLazyFeatures({ loading: false, error: true, data: null })\n\n try {\n latest\n .fetchFeatures()\n .then((data) => setLazyFeatures({ loading: false, error: false, data }), handleError)\n } catch {\n // HINT: fetchFeatures が Promise を返す前に同期的に throw した場合も、loading のままにしない\n handleError()\n }\n }\n },\n }),\n [latest],\n )\n\n const resolvedFeatures = fetchFeatures\n ? (lazyFeatures.data ?? EMPTY_FEATURES)\n : (features ?? EMPTY_FEATURES)\n const isAppLauncherAvailable = !!fetchFeatures || resolvedFeatures.length > 0\n // HINT: Desktopは Dropdown の onOpen(requestAnimationFrame経由)で取得を開始するため、\n // パネルが開いてから実際に取得が始まるまでに1フレームの猶予がある。\n // fetchFeatures 指定時に未取得かつ未エラーの状態はすべて取得中として扱い、その間に「該当なし」が表示されるのを防ぐ\n const featuresLoading = !!fetchFeatures && lazyFeatures.data === null && !lazyFeatures.error\n\n // HINT: Desktop,Mobileの両ヘッダーは常にHTML上に存在し、cssでvisibleを切り替えることでSSR環境でのレイアウトシフトが発生しないようにしています\n // 表示切替は画面幅によって決まり、SSR環境では判定出来ないためです\n return (\n <>\n <DesktopHeader\n {...rest}\n desktopAdditionalContent={desktopAdditionalContent}\n desktopNavigationAdditionalContent={desktopNavigationAdditionalContent}\n features={resolvedFeatures}\n isAppLauncherAvailable={isAppLauncherAvailable}\n featuresLoading={featuresLoading}\n featuresError={lazyFeatures.error}\n handleOpenAppLauncher={functions.handleOpenAppLauncher}\n >\n {isDesktop ? children : undefined}\n </DesktopHeader>\n <MobileHeader\n {...rest}\n mobileAdditionalContent={mobileAdditionalContent}\n features={resolvedFeatures}\n isAppLauncherAvailable={isAppLauncherAvailable}\n featuresLoading={featuresLoading}\n featuresError={lazyFeatures.error}\n handleOpenAppLauncher={functions.handleOpenAppLauncher}\n >\n {isDesktop ? undefined : children}\n </MobileHeader>\n </>\n )\n}\n"],"names":[],"mappings":";;;;;;;;;;AAaA;;;;;;;;AAwBE;;;;AAKM;AACE;;;AAKA;;AAEK;;;AAEH;;AAEA;;;;AAIP;;AAKD;AACA;;;;;AAKF;;;;AA+BF;;"}
|
|
@@ -1,17 +1,50 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { useState, useMemo } from 'react';
|
|
4
|
+
import { useLatest } from '../../hooks/useLatest.js';
|
|
3
5
|
import { DesktopHeader } from './components/desktop/DesktopHeader.js';
|
|
4
6
|
import { MobileHeader } from './components/mobile/MobileHeader.js';
|
|
5
7
|
import { useMediaQuery, mediaQuery } from './hooks/useMediaQuery.js';
|
|
6
8
|
|
|
7
|
-
const
|
|
9
|
+
const EMPTY_FEATURES = [];
|
|
10
|
+
const AppHeader = ({ children, desktopAdditionalContent, desktopNavigationAdditionalContent, mobileAdditionalContent, features, fetchFeatures, ...rest }) => {
|
|
8
11
|
// NOTE: ヘッダーの出し分けは CSS によって行われているので、useMediaQuery による children の出し分けは本来不要ですが、
|
|
9
12
|
// wovn の言語切替カスタム UI の挿入対象となる DOM ("wovn-embedded-widget-anchor" クラスを持った div) が複数描画されていると、
|
|
10
13
|
// wovn のスクリプトの仕様上1つ目の DOM にしか UI が挿入されないため、やむを得ず children のみ React のレンダリングレベルでの出し分けをしています。
|
|
11
14
|
const isDesktop = useMediaQuery(mediaQuery.desktop);
|
|
15
|
+
const [lazyFeatures, setLazyFeatures] = useState({ loading: false, error: false, data: null });
|
|
16
|
+
const latest = useLatest({ fetchFeatures, lazyFeatures });
|
|
17
|
+
const functions = useMemo(() => ({
|
|
18
|
+
handleOpenAppLauncher: () => {
|
|
19
|
+
// HINT: Desktop・Mobileの両ヘッダーが常にマウントされているため、取得中・取得済みの場合はスキップし、
|
|
20
|
+
// どちらから開いても fetchFeatures の呼び出しが1回だけになるようにする
|
|
21
|
+
if (latest.fetchFeatures && !latest.lazyFeatures.loading && !latest.lazyFeatures.data) {
|
|
22
|
+
setLazyFeatures({ loading: true, error: false, data: null });
|
|
23
|
+
// HINT: 失敗時は次回オープンで再試行できるようにする
|
|
24
|
+
const handleError = () => setLazyFeatures({ loading: false, error: true, data: null });
|
|
25
|
+
try {
|
|
26
|
+
latest
|
|
27
|
+
.fetchFeatures()
|
|
28
|
+
.then((data) => setLazyFeatures({ loading: false, error: false, data }), handleError);
|
|
29
|
+
}
|
|
30
|
+
catch {
|
|
31
|
+
// HINT: fetchFeatures が Promise を返す前に同期的に throw した場合も、loading のままにしない
|
|
32
|
+
handleError();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
}), [latest]);
|
|
37
|
+
const resolvedFeatures = fetchFeatures
|
|
38
|
+
? (lazyFeatures.data ?? EMPTY_FEATURES)
|
|
39
|
+
: (features ?? EMPTY_FEATURES);
|
|
40
|
+
const isAppLauncherAvailable = !!fetchFeatures || resolvedFeatures.length > 0;
|
|
41
|
+
// HINT: Desktopは Dropdown の onOpen(requestAnimationFrame経由)で取得を開始するため、
|
|
42
|
+
// パネルが開いてから実際に取得が始まるまでに1フレームの猶予がある。
|
|
43
|
+
// fetchFeatures 指定時に未取得かつ未エラーの状態はすべて取得中として扱い、その間に「該当なし」が表示されるのを防ぐ
|
|
44
|
+
const featuresLoading = !!fetchFeatures && lazyFeatures.data === null && !lazyFeatures.error;
|
|
12
45
|
// HINT: Desktop,Mobileの両ヘッダーは常にHTML上に存在し、cssでvisibleを切り替えることでSSR環境でのレイアウトシフトが発生しないようにしています
|
|
13
46
|
// 表示切替は画面幅によって決まり、SSR環境では判定出来ないためです
|
|
14
|
-
return (jsxs(Fragment, { children: [jsx(DesktopHeader, { ...rest, desktopAdditionalContent: desktopAdditionalContent, desktopNavigationAdditionalContent: desktopNavigationAdditionalContent, children: isDesktop ? children : undefined }), jsx(MobileHeader, { ...rest, mobileAdditionalContent: mobileAdditionalContent, children: isDesktop ? undefined : children })] }));
|
|
47
|
+
return (jsxs(Fragment, { children: [jsx(DesktopHeader, { ...rest, desktopAdditionalContent: desktopAdditionalContent, desktopNavigationAdditionalContent: desktopNavigationAdditionalContent, features: resolvedFeatures, isAppLauncherAvailable: isAppLauncherAvailable, featuresLoading: featuresLoading, featuresError: lazyFeatures.error, handleOpenAppLauncher: functions.handleOpenAppLauncher, children: isDesktop ? children : undefined }), jsx(MobileHeader, { ...rest, mobileAdditionalContent: mobileAdditionalContent, features: resolvedFeatures, isAppLauncherAvailable: isAppLauncherAvailable, featuresLoading: featuresLoading, featuresError: lazyFeatures.error, handleOpenAppLauncher: functions.handleOpenAppLauncher, children: isDesktop ? undefined : children })] }));
|
|
15
48
|
};
|
|
16
49
|
|
|
17
50
|
export { AppHeader };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppHeader.js","sources":["../../../src/components/AppHeader/AppHeader.tsx"],"sourcesContent":["'use client'\n\nimport { DesktopHeader } from './components/desktop/DesktopHeader'\nimport { MobileHeader } from './components/mobile/MobileHeader'\nimport { mediaQuery, useMediaQuery } from './hooks/useMediaQuery'\n\nimport type { HeaderProps } from './types'\nimport type { FC } from 'react'\n\nexport const AppHeader: FC<HeaderProps> = ({\n children,\n desktopAdditionalContent,\n desktopNavigationAdditionalContent,\n mobileAdditionalContent,\n ...rest\n}) => {\n // NOTE: ヘッダーの出し分けは CSS によって行われているので、useMediaQuery による children の出し分けは本来不要ですが、\n // wovn の言語切替カスタム UI の挿入対象となる DOM (\"wovn-embedded-widget-anchor\" クラスを持った div) が複数描画されていると、\n // wovn のスクリプトの仕様上1つ目の DOM にしか UI が挿入されないため、やむを得ず children のみ React のレンダリングレベルでの出し分けをしています。\n const isDesktop = useMediaQuery(mediaQuery.desktop)\n\n // HINT: Desktop,Mobileの両ヘッダーは常にHTML上に存在し、cssでvisibleを切り替えることでSSR環境でのレイアウトシフトが発生しないようにしています\n // 表示切替は画面幅によって決まり、SSR環境では判定出来ないためです\n return (\n <>\n <DesktopHeader\n {...rest}\n desktopAdditionalContent={desktopAdditionalContent}\n desktopNavigationAdditionalContent={desktopNavigationAdditionalContent}\n >\n {isDesktop ? children : undefined}\n </DesktopHeader>\n <MobileHeader
|
|
1
|
+
{"version":3,"file":"AppHeader.js","sources":["../../../src/components/AppHeader/AppHeader.tsx"],"sourcesContent":["'use client'\n\nimport { useMemo, useState } from 'react'\n\nimport { useLatest } from '../../hooks/useLatest'\n\nimport { DesktopHeader } from './components/desktop/DesktopHeader'\nimport { MobileHeader } from './components/mobile/MobileHeader'\nimport { mediaQuery, useMediaQuery } from './hooks/useMediaQuery'\n\nimport type { HeaderProps, Launcher } from './types'\nimport type { FC } from 'react'\n\nconst EMPTY_FEATURES: Array<Launcher['feature']> = []\n\nexport const AppHeader: FC<HeaderProps> = ({\n children,\n desktopAdditionalContent,\n desktopNavigationAdditionalContent,\n mobileAdditionalContent,\n features,\n fetchFeatures,\n ...rest\n}) => {\n // NOTE: ヘッダーの出し分けは CSS によって行われているので、useMediaQuery による children の出し分けは本来不要ですが、\n // wovn の言語切替カスタム UI の挿入対象となる DOM (\"wovn-embedded-widget-anchor\" クラスを持った div) が複数描画されていると、\n // wovn のスクリプトの仕様上1つ目の DOM にしか UI が挿入されないため、やむを得ず children のみ React のレンダリングレベルでの出し分けをしています。\n const isDesktop = useMediaQuery(mediaQuery.desktop)\n\n const [lazyFeatures, setLazyFeatures] = useState<{\n loading: boolean\n error: boolean\n data: Array<Launcher['feature']> | null\n }>({ loading: false, error: false, data: null })\n\n const latest = useLatest({ fetchFeatures, lazyFeatures })\n\n const functions = useMemo(\n () => ({\n handleOpenAppLauncher: () => {\n // HINT: Desktop・Mobileの両ヘッダーが常にマウントされているため、取得中・取得済みの場合はスキップし、\n // どちらから開いても fetchFeatures の呼び出しが1回だけになるようにする\n if (latest.fetchFeatures && !latest.lazyFeatures.loading && !latest.lazyFeatures.data) {\n setLazyFeatures({ loading: true, error: false, data: null })\n\n // HINT: 失敗時は次回オープンで再試行できるようにする\n const handleError = () => setLazyFeatures({ loading: false, error: true, data: null })\n\n try {\n latest\n .fetchFeatures()\n .then((data) => setLazyFeatures({ loading: false, error: false, data }), handleError)\n } catch {\n // HINT: fetchFeatures が Promise を返す前に同期的に throw した場合も、loading のままにしない\n handleError()\n }\n }\n },\n }),\n [latest],\n )\n\n const resolvedFeatures = fetchFeatures\n ? (lazyFeatures.data ?? EMPTY_FEATURES)\n : (features ?? EMPTY_FEATURES)\n const isAppLauncherAvailable = !!fetchFeatures || resolvedFeatures.length > 0\n // HINT: Desktopは Dropdown の onOpen(requestAnimationFrame経由)で取得を開始するため、\n // パネルが開いてから実際に取得が始まるまでに1フレームの猶予がある。\n // fetchFeatures 指定時に未取得かつ未エラーの状態はすべて取得中として扱い、その間に「該当なし」が表示されるのを防ぐ\n const featuresLoading = !!fetchFeatures && lazyFeatures.data === null && !lazyFeatures.error\n\n // HINT: Desktop,Mobileの両ヘッダーは常にHTML上に存在し、cssでvisibleを切り替えることでSSR環境でのレイアウトシフトが発生しないようにしています\n // 表示切替は画面幅によって決まり、SSR環境では判定出来ないためです\n return (\n <>\n <DesktopHeader\n {...rest}\n desktopAdditionalContent={desktopAdditionalContent}\n desktopNavigationAdditionalContent={desktopNavigationAdditionalContent}\n features={resolvedFeatures}\n isAppLauncherAvailable={isAppLauncherAvailable}\n featuresLoading={featuresLoading}\n featuresError={lazyFeatures.error}\n handleOpenAppLauncher={functions.handleOpenAppLauncher}\n >\n {isDesktop ? children : undefined}\n </DesktopHeader>\n <MobileHeader\n {...rest}\n mobileAdditionalContent={mobileAdditionalContent}\n features={resolvedFeatures}\n isAppLauncherAvailable={isAppLauncherAvailable}\n featuresLoading={featuresLoading}\n featuresError={lazyFeatures.error}\n handleOpenAppLauncher={functions.handleOpenAppLauncher}\n >\n {isDesktop ? undefined : children}\n </MobileHeader>\n </>\n )\n}\n"],"names":[],"mappings":";;;;;;;;AAaA;;;;;;;;AAwBE;;;;AAKM;AACE;;;AAKA;;AAEK;;;AAEH;;AAEA;;;;AAIP;;AAKD;AACA;;;;;AAKF;;;;AA+BF;;"}
|
|
@@ -14,7 +14,14 @@ require('../../../Button/UnstyledButton.cjs');
|
|
|
14
14
|
var components_Icon_FaIcon = require('../../../Icon/FaIcon.cjs');
|
|
15
15
|
require('../../../Icon/generateIcon.cjs');
|
|
16
16
|
require('../../../Icon/OpenInNewTabIcon.cjs');
|
|
17
|
+
require('../../../Layout/Stack/Stack.cjs');
|
|
18
|
+
require('../../../Layout/Cluster/Cluster.cjs');
|
|
19
|
+
require('../../../Layout/Reel/Reel.cjs');
|
|
20
|
+
require('../../../Layout/Sidebar/Sidebar.cjs');
|
|
21
|
+
var components_Layout_Center_Center = require('../../../Layout/Center/Center.cjs');
|
|
22
|
+
require('../../../Layout/Container/Container.cjs');
|
|
17
23
|
var components_LineClamp_LineClamp = require('../../../LineClamp/LineClamp.cjs');
|
|
24
|
+
var components_Loader_Loader = require('../../../Loader/Loader.cjs');
|
|
18
25
|
var components_Text_Text = require('../../../Text/Text.cjs');
|
|
19
26
|
var components_AppHeader_hooks_useMediaQuery = require('../../hooks/useMediaQuery.cjs');
|
|
20
27
|
var components_AppHeader_components_common_Translate = require('./Translate.cjs');
|
|
@@ -22,6 +29,8 @@ var components_AppHeader_components_common_Translate = require('./Translate.cjs'
|
|
|
22
29
|
const classNameGenerator = index.tv({
|
|
23
30
|
slots: {
|
|
24
31
|
empty: ['shr-p-1 shr-text-center'],
|
|
32
|
+
loadError: ['shr-whitespace-pre-wrap shr-p-1 shr-text-center'],
|
|
33
|
+
loading: ['shr-py-3'],
|
|
25
34
|
list: ['shr-list-none', '[&>li]:shr-px-0.5 [&>li]:shr-py-0.25'],
|
|
26
35
|
listItem: [
|
|
27
36
|
'smarthr-ui-AppLauncher-listItem',
|
|
@@ -31,20 +40,33 @@ const classNameGenerator = index.tv({
|
|
|
31
40
|
},
|
|
32
41
|
});
|
|
33
42
|
const CLASS_NAMES = (() => {
|
|
34
|
-
const { empty, list, listItem } = classNameGenerator();
|
|
43
|
+
const { empty, loadError, loading, list, listItem } = classNameGenerator();
|
|
35
44
|
return {
|
|
36
45
|
empty: empty(),
|
|
46
|
+
loadError: loadError(),
|
|
47
|
+
loading: loading(),
|
|
37
48
|
list: list(),
|
|
38
49
|
listItem: listItem(),
|
|
39
50
|
};
|
|
40
51
|
})();
|
|
41
|
-
const AppLauncherFeatures = ({ features, page
|
|
52
|
+
const AppLauncherFeatures = ({ features, page, loading, error }) => {
|
|
53
|
+
if (loading) {
|
|
54
|
+
return jsxRuntime.jsx(LoadingList, {});
|
|
55
|
+
}
|
|
56
|
+
if (error) {
|
|
57
|
+
return jsxRuntime.jsx(LoadErrorText, {});
|
|
58
|
+
}
|
|
59
|
+
return features.length === 0 ? jsxRuntime.jsx(EmptyList, {}) : jsxRuntime.jsx(FeatureList, { features: features, page: page });
|
|
60
|
+
};
|
|
61
|
+
const LoadingList = React.memo(() => (jsxRuntime.jsx(components_Layout_Center_Center.Center, { className: CLASS_NAMES.loading, children: jsxRuntime.jsx(components_Loader_Loader.Loader, {}) })));
|
|
62
|
+
const LoadErrorText = React.memo(() => (jsxRuntime.jsx("div", { className: CLASS_NAMES.loadError, children: jsxRuntime.jsx(components_Text_Text.Text, { size: "S", children: jsxRuntime.jsx(intl_Localizer.Localizer, { id: "smarthr-ui/AppHeader/Launcher/loadError", defaultText: `アプリ一覧の読み込みに失敗しました。
|
|
63
|
+
時間をおいて、やり直してください。` }) }) })));
|
|
42
64
|
const EmptyList = React.memo(() => (jsxRuntime.jsx("div", { className: CLASS_NAMES.empty, children: jsxRuntime.jsx(components_Text_Text.Text, { size: "S", children: jsxRuntime.jsx(components_AppHeader_components_common_Translate.Translate, { children: jsxRuntime.jsx(intl_Localizer.Localizer, { id: "smarthr-ui/AppHeader/Launcher/emptyText", defaultText: "\u8A72\u5F53\u3059\u308B\u30A2\u30D7\u30EA\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002" }) }) }) })));
|
|
43
65
|
const FeatureList = ({ features, page }) => {
|
|
44
66
|
const isFavorite = page === 'favorite';
|
|
45
67
|
return (jsxRuntime.jsx("ul", { className: CLASS_NAMES.list, children: features.map((feature) => (jsxRuntime.jsx(FeatureListItem, { href: feature.url, isFavorite: isFavorite, className: CLASS_NAMES.listItem, children: feature.name }, feature.id))) }));
|
|
46
68
|
};
|
|
47
|
-
const FeatureListItem = React.memo(({ href, children, isFavorite, className }) => (jsxRuntime.jsx("li", { children: jsxRuntime.jsx(components_Button_AnchorButton.AnchorButton, { href: href, target: "_blank", prefix: isFavorite && jsxRuntime.jsx(components_Icon_FaIcon.FaStarIcon, {}), suffix: jsxRuntime.jsx(components_Icon_FaIcon.FaArrowRightIcon, {}),
|
|
69
|
+
const FeatureListItem = React.memo(({ href, children, isFavorite, className }) => (jsxRuntime.jsx("li", { children: jsxRuntime.jsx(components_Button_AnchorButton.AnchorButton, { href: href, target: "_blank", variant: "text", wide: true, className: className, "data-favorite": isFavorite, prefix: isFavorite && jsxRuntime.jsx(components_Icon_FaIcon.FaStarIcon, {}), suffix: jsxRuntime.jsx(components_Icon_FaIcon.FaArrowRightIcon, {}), children: jsxRuntime.jsx(FeatureName, { children: children }) }) })));
|
|
48
70
|
const FeatureName = ({ children }) => {
|
|
49
71
|
const isDesktop = components_AppHeader_hooks_useMediaQuery.useMediaQuery(components_AppHeader_hooks_useMediaQuery.mediaQuery.desktop);
|
|
50
72
|
return isDesktop ? jsxRuntime.jsx(components_LineClamp_LineClamp.LineClamp, { maxLines: 2, children: children }) : children;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppLauncherFeatures.cjs","sources":["../../../../../src/components/AppHeader/components/common/AppLauncherFeatures.tsx"],"sourcesContent":["import { type FC, type PropsWithChildren, memo } from 'react'\nimport { tv } from 'tailwind-variants'\n\nimport { Localizer } from '../../../../intl'\nimport { AnchorButton } from '../../../Button'\nimport { FaArrowRightIcon, FaStarIcon } from '../../../Icon'\nimport { LineClamp } from '../../../LineClamp'\nimport { Text } from '../../../Text'\nimport { mediaQuery, useMediaQuery } from '../../hooks/useMediaQuery'\n\nimport { Translate } from './Translate'\n\nimport type { Launcher } from '../../types'\n\nconst classNameGenerator = tv({\n slots: {\n empty: ['shr-p-1 shr-text-center'],\n list: ['shr-list-none', '[&>li]:shr-px-0.5 [&>li]:shr-py-0.25'],\n listItem: [\n 'smarthr-ui-AppLauncher-listItem',\n 'shr-grid shr-min-h-[2.5rem] shr-grid-cols-[1rem_1fr_1rem] shr-gap-0.75 shr-whitespace-normal shr-px-1 shr-py-0 shr-text-left shr-leading-tight',\n 'data-[favorite=\"false\"]:shr-grid-cols-[1fr_1rem]',\n ],\n },\n})\n\nconst CLASS_NAMES = (() => {\n const { empty, list, listItem } = classNameGenerator()\n\n return {\n empty: empty(),\n list: list(),\n listItem: listItem(),\n }\n})()\n\ntype Props = {\n features: Array<Launcher['feature']>\n page: Launcher['page']\n}\n\nexport const AppLauncherFeatures: FC<Props> = ({ features, page })
|
|
1
|
+
{"version":3,"file":"AppLauncherFeatures.cjs","sources":["../../../../../src/components/AppHeader/components/common/AppLauncherFeatures.tsx"],"sourcesContent":["import { type FC, type PropsWithChildren, memo } from 'react'\nimport { tv } from 'tailwind-variants'\n\nimport { Localizer } from '../../../../intl'\nimport { AnchorButton } from '../../../Button'\nimport { FaArrowRightIcon, FaStarIcon } from '../../../Icon'\nimport { Center } from '../../../Layout'\nimport { LineClamp } from '../../../LineClamp'\nimport { Loader } from '../../../Loader'\nimport { Text } from '../../../Text'\nimport { mediaQuery, useMediaQuery } from '../../hooks/useMediaQuery'\n\nimport { Translate } from './Translate'\n\nimport type { Launcher } from '../../types'\n\nconst classNameGenerator = tv({\n slots: {\n empty: ['shr-p-1 shr-text-center'],\n loadError: ['shr-whitespace-pre-wrap shr-p-1 shr-text-center'],\n loading: ['shr-py-3'],\n list: ['shr-list-none', '[&>li]:shr-px-0.5 [&>li]:shr-py-0.25'],\n listItem: [\n 'smarthr-ui-AppLauncher-listItem',\n 'shr-grid shr-min-h-[2.5rem] shr-grid-cols-[1rem_1fr_1rem] shr-gap-0.75 shr-whitespace-normal shr-px-1 shr-py-0 shr-text-left shr-leading-tight',\n 'data-[favorite=\"false\"]:shr-grid-cols-[1fr_1rem]',\n ],\n },\n})\n\nconst CLASS_NAMES = (() => {\n const { empty, loadError, loading, list, listItem } = classNameGenerator()\n\n return {\n empty: empty(),\n loadError: loadError(),\n loading: loading(),\n list: list(),\n listItem: listItem(),\n }\n})()\n\ntype Props = {\n features: Array<Launcher['feature']>\n page: Launcher['page']\n loading?: boolean\n error?: boolean\n}\n\nexport const AppLauncherFeatures: FC<Props> = ({ features, page, loading, error }) => {\n if (loading) {\n return <LoadingList />\n }\n\n if (error) {\n return <LoadErrorText />\n }\n\n return features.length === 0 ? <EmptyList /> : <FeatureList features={features} page={page} />\n}\n\nconst LoadingList = memo(() => (\n <Center className={CLASS_NAMES.loading}>\n <Loader />\n </Center>\n))\n\nconst LoadErrorText = memo(() => (\n <div className={CLASS_NAMES.loadError}>\n <Text size=\"S\">\n <Localizer\n id=\"smarthr-ui/AppHeader/Launcher/loadError\"\n defaultText={`アプリ一覧の読み込みに失敗しました。\n時間をおいて、やり直してください。`}\n />\n </Text>\n </div>\n))\n\nconst EmptyList = memo(() => (\n <div className={CLASS_NAMES.empty}>\n <Text size=\"S\">\n <Translate>\n <Localizer\n id=\"smarthr-ui/AppHeader/Launcher/emptyText\"\n defaultText=\"該当するアプリが見つかりませんでした。\"\n />\n </Translate>\n </Text>\n </div>\n))\n\nconst FeatureList: FC<Props> = ({ features, page }) => {\n const isFavorite = page === 'favorite'\n\n return (\n <ul className={CLASS_NAMES.list}>\n {features.map((feature) => (\n <FeatureListItem\n key={feature.id}\n href={feature.url}\n isFavorite={isFavorite}\n className={CLASS_NAMES.listItem}\n >\n {feature.name}\n </FeatureListItem>\n ))}\n </ul>\n )\n}\n\nconst FeatureListItem = memo<{\n href: Props['features'][number]['url']\n children: Props['features'][number]['name']\n className: string\n isFavorite: boolean\n}>(({ href, children, isFavorite, className }) => (\n <li>\n <AnchorButton\n href={href}\n target=\"_blank\"\n variant=\"text\"\n wide\n className={className}\n data-favorite={isFavorite}\n prefix={isFavorite && <FaStarIcon />}\n suffix={<FaArrowRightIcon />}\n >\n <FeatureName>{children}</FeatureName>\n </AnchorButton>\n </li>\n))\n\nconst FeatureName: FC<PropsWithChildren> = ({ children }) => {\n const isDesktop = useMediaQuery(mediaQuery.desktop)\n\n return isDesktop ? <LineClamp maxLines={2}>{children}</LineClamp> : children\n}\n"],"names":["tv","_jsx","memo","Center","Loader","Text","Localizer","Translate","AnchorButton","FaStarIcon","FaArrowRightIcon","useMediaQuery","mediaQuery","LineClamp"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,MAAM,kBAAkB,GAAGA,QAAE,CAAC;AAC5B,IAAA,KAAK,EAAE;QACL,KAAK,EAAE,CAAC,yBAAyB,CAAC;QAClC,SAAS,EAAE,CAAC,iDAAiD,CAAC;QAC9D,OAAO,EAAE,CAAC,UAAU,CAAC;AACrB,QAAA,IAAI,EAAE,CAAC,eAAe,EAAE,sCAAsC,CAAC;AAC/D,QAAA,QAAQ,EAAE;YACR,iCAAiC;YACjC,gJAAgJ;YAChJ,kDAAkD;AACnD,SAAA;AACF,KAAA;AACF,CAAA,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,MAAK;AACxB,IAAA,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,kBAAkB,EAAE;IAE1E,OAAO;QACL,KAAK,EAAE,KAAK,EAAE;QACd,SAAS,EAAE,SAAS,EAAE;QACtB,OAAO,EAAE,OAAO,EAAE;QAClB,IAAI,EAAE,IAAI,EAAE;QACZ,QAAQ,EAAE,QAAQ,EAAE;KACrB;AACH,CAAC,GAAG;AASG,MAAM,mBAAmB,GAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,KAAI;IACnF,IAAI,OAAO,EAAE;QACX,OAAOC,cAAA,CAAC,WAAW,EAAA,EAAA,CAAG;IACxB;IAEA,IAAI,KAAK,EAAE;QACT,OAAOA,cAAA,CAAC,aAAa,EAAA,EAAA,CAAG;IAC1B;IAEA,OAAO,QAAQ,CAAC,MAAM,KAAK,CAAC,GAAGA,cAAA,CAAC,SAAS,EAAA,EAAA,CAAG,GAAGA,cAAA,CAAC,WAAW,EAAA,EAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAA,CAAI;AAChG;AAEA,MAAM,WAAW,GAAGC,UAAI,CAAC,OACvBD,cAAA,CAACE,sCAAM,EAAA,EAAC,SAAS,EAAE,WAAW,CAAC,OAAO,EAAA,QAAA,EACpCF,cAAA,CAACG,+BAAM,EAAA,EAAA,CAAG,EAAA,CACH,CACV,CAAC;AAEF,MAAM,aAAa,GAAGF,UAAI,CAAC,OACzBD,cAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,WAAW,CAAC,SAAS,EAAA,QAAA,EACnCA,cAAA,CAACI,yBAAI,EAAA,EAAC,IAAI,EAAC,GAAG,EAAA,QAAA,EACZJ,cAAA,CAACK,wBAAS,EAAA,EACR,EAAE,EAAC,yCAAyC,EAC5C,WAAW,EAAE,CAAA;AACH,iBAAA,CAAA,EAAA,CACV,EAAA,CACG,EAAA,CACH,CACP,CAAC;AAEF,MAAM,SAAS,GAAGJ,UAAI,CAAC,OACrBD,cAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,WAAW,CAAC,KAAK,YAC/BA,cAAA,CAACI,yBAAI,IAAC,IAAI,EAAC,GAAG,EAAA,QAAA,EACZJ,eAACM,0DAAS,EAAA,EAAA,QAAA,EACRN,eAACK,wBAAS,EAAA,EACR,EAAE,EAAC,yCAAyC,EAC5C,WAAW,EAAC,oHAAqB,EAAA,CACjC,EAAA,CACQ,GACP,EAAA,CACH,CACP,CAAC;AAEF,MAAM,WAAW,GAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAI;AACpD,IAAA,MAAM,UAAU,GAAG,IAAI,KAAK,UAAU;IAEtC,QACEL,uBAAI,SAAS,EAAE,WAAW,CAAC,IAAI,EAAA,QAAA,EAC5B,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,MACpBA,cAAA,CAAC,eAAe,EAAA,EAEd,IAAI,EAAE,OAAO,CAAC,GAAG,EACjB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,WAAW,CAAC,QAAQ,EAAA,QAAA,EAE9B,OAAO,CAAC,IAAI,EAAA,EALR,OAAO,CAAC,EAAE,CAMC,CACnB,CAAC,EAAA,CACC;AAET,CAAC;AAED,MAAM,eAAe,GAAGC,UAAI,CAKzB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAC3CD,cAAA,CAAA,IAAA,EAAA,EAAA,QAAA,EACEA,cAAA,CAACO,2CAAY,EAAA,EACX,IAAI,EAAE,IAAI,EACV,MAAM,EAAC,QAAQ,EACf,OAAO,EAAC,MAAM,EACd,IAAI,EAAA,IAAA,EACJ,SAAS,EAAE,SAAS,EAAA,eAAA,EACL,UAAU,EACzB,MAAM,EAAE,UAAU,IAAIP,eAACQ,iCAAU,EAAA,EAAA,CAAG,EACpC,MAAM,EAAER,cAAA,CAACS,uCAAgB,EAAA,EAAA,CAAG,YAE5BT,cAAA,CAAC,WAAW,EAAA,EAAA,QAAA,EAAE,QAAQ,EAAA,CAAe,EAAA,CACxB,EAAA,CACZ,CACN,CAAC;AAEF,MAAM,WAAW,GAA0B,CAAC,EAAE,QAAQ,EAAE,KAAI;IAC1D,MAAM,SAAS,GAAGU,sDAAa,CAACC,mDAAU,CAAC,OAAO,CAAC;AAEnD,IAAA,OAAO,SAAS,GAAGX,cAAA,CAACY,wCAAS,EAAA,EAAC,QAAQ,EAAE,CAAC,YAAG,QAAQ,EAAA,CAAa,GAAG,QAAQ;AAC9E,CAAC;;;;"}
|
|
@@ -12,7 +12,14 @@ import '../../../Button/UnstyledButton.js';
|
|
|
12
12
|
import { FaArrowRightIcon, FaStarIcon } from '../../../Icon/FaIcon.js';
|
|
13
13
|
import '../../../Icon/generateIcon.js';
|
|
14
14
|
import '../../../Icon/OpenInNewTabIcon.js';
|
|
15
|
+
import '../../../Layout/Stack/Stack.js';
|
|
16
|
+
import '../../../Layout/Cluster/Cluster.js';
|
|
17
|
+
import '../../../Layout/Reel/Reel.js';
|
|
18
|
+
import '../../../Layout/Sidebar/Sidebar.js';
|
|
19
|
+
import { Center } from '../../../Layout/Center/Center.js';
|
|
20
|
+
import '../../../Layout/Container/Container.js';
|
|
15
21
|
import { LineClamp } from '../../../LineClamp/LineClamp.js';
|
|
22
|
+
import { Loader } from '../../../Loader/Loader.js';
|
|
16
23
|
import { Text } from '../../../Text/Text.js';
|
|
17
24
|
import { useMediaQuery, mediaQuery } from '../../hooks/useMediaQuery.js';
|
|
18
25
|
import { Translate } from './Translate.js';
|
|
@@ -20,6 +27,8 @@ import { Translate } from './Translate.js';
|
|
|
20
27
|
const classNameGenerator = ce({
|
|
21
28
|
slots: {
|
|
22
29
|
empty: ['shr-p-1 shr-text-center'],
|
|
30
|
+
loadError: ['shr-whitespace-pre-wrap shr-p-1 shr-text-center'],
|
|
31
|
+
loading: ['shr-py-3'],
|
|
23
32
|
list: ['shr-list-none', '[&>li]:shr-px-0.5 [&>li]:shr-py-0.25'],
|
|
24
33
|
listItem: [
|
|
25
34
|
'smarthr-ui-AppLauncher-listItem',
|
|
@@ -29,20 +38,33 @@ const classNameGenerator = ce({
|
|
|
29
38
|
},
|
|
30
39
|
});
|
|
31
40
|
const CLASS_NAMES = (() => {
|
|
32
|
-
const { empty, list, listItem } = classNameGenerator();
|
|
41
|
+
const { empty, loadError, loading, list, listItem } = classNameGenerator();
|
|
33
42
|
return {
|
|
34
43
|
empty: empty(),
|
|
44
|
+
loadError: loadError(),
|
|
45
|
+
loading: loading(),
|
|
35
46
|
list: list(),
|
|
36
47
|
listItem: listItem(),
|
|
37
48
|
};
|
|
38
49
|
})();
|
|
39
|
-
const AppLauncherFeatures = ({ features, page
|
|
50
|
+
const AppLauncherFeatures = ({ features, page, loading, error }) => {
|
|
51
|
+
if (loading) {
|
|
52
|
+
return jsx(LoadingList, {});
|
|
53
|
+
}
|
|
54
|
+
if (error) {
|
|
55
|
+
return jsx(LoadErrorText, {});
|
|
56
|
+
}
|
|
57
|
+
return features.length === 0 ? jsx(EmptyList, {}) : jsx(FeatureList, { features: features, page: page });
|
|
58
|
+
};
|
|
59
|
+
const LoadingList = memo(() => (jsx(Center, { className: CLASS_NAMES.loading, children: jsx(Loader, {}) })));
|
|
60
|
+
const LoadErrorText = memo(() => (jsx("div", { className: CLASS_NAMES.loadError, children: jsx(Text, { size: "S", children: jsx(Localizer, { id: "smarthr-ui/AppHeader/Launcher/loadError", defaultText: `アプリ一覧の読み込みに失敗しました。
|
|
61
|
+
時間をおいて、やり直してください。` }) }) })));
|
|
40
62
|
const EmptyList = memo(() => (jsx("div", { className: CLASS_NAMES.empty, children: jsx(Text, { size: "S", children: jsx(Translate, { children: jsx(Localizer, { id: "smarthr-ui/AppHeader/Launcher/emptyText", defaultText: "\u8A72\u5F53\u3059\u308B\u30A2\u30D7\u30EA\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002" }) }) }) })));
|
|
41
63
|
const FeatureList = ({ features, page }) => {
|
|
42
64
|
const isFavorite = page === 'favorite';
|
|
43
65
|
return (jsx("ul", { className: CLASS_NAMES.list, children: features.map((feature) => (jsx(FeatureListItem, { href: feature.url, isFavorite: isFavorite, className: CLASS_NAMES.listItem, children: feature.name }, feature.id))) }));
|
|
44
66
|
};
|
|
45
|
-
const FeatureListItem = memo(({ href, children, isFavorite, className }) => (jsx("li", { children: jsx(ForwardedAnchorButton, { href: href, target: "_blank", prefix: isFavorite && jsx(FaStarIcon, {}), suffix: jsx(FaArrowRightIcon, {}),
|
|
67
|
+
const FeatureListItem = memo(({ href, children, isFavorite, className }) => (jsx("li", { children: jsx(ForwardedAnchorButton, { href: href, target: "_blank", variant: "text", wide: true, className: className, "data-favorite": isFavorite, prefix: isFavorite && jsx(FaStarIcon, {}), suffix: jsx(FaArrowRightIcon, {}), children: jsx(FeatureName, { children: children }) }) })));
|
|
46
68
|
const FeatureName = ({ children }) => {
|
|
47
69
|
const isDesktop = useMediaQuery(mediaQuery.desktop);
|
|
48
70
|
return isDesktop ? jsx(LineClamp, { maxLines: 2, children: children }) : children;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppLauncherFeatures.js","sources":["../../../../../src/components/AppHeader/components/common/AppLauncherFeatures.tsx"],"sourcesContent":["import { type FC, type PropsWithChildren, memo } from 'react'\nimport { tv } from 'tailwind-variants'\n\nimport { Localizer } from '../../../../intl'\nimport { AnchorButton } from '../../../Button'\nimport { FaArrowRightIcon, FaStarIcon } from '../../../Icon'\nimport { LineClamp } from '../../../LineClamp'\nimport { Text } from '../../../Text'\nimport { mediaQuery, useMediaQuery } from '../../hooks/useMediaQuery'\n\nimport { Translate } from './Translate'\n\nimport type { Launcher } from '../../types'\n\nconst classNameGenerator = tv({\n slots: {\n empty: ['shr-p-1 shr-text-center'],\n list: ['shr-list-none', '[&>li]:shr-px-0.5 [&>li]:shr-py-0.25'],\n listItem: [\n 'smarthr-ui-AppLauncher-listItem',\n 'shr-grid shr-min-h-[2.5rem] shr-grid-cols-[1rem_1fr_1rem] shr-gap-0.75 shr-whitespace-normal shr-px-1 shr-py-0 shr-text-left shr-leading-tight',\n 'data-[favorite=\"false\"]:shr-grid-cols-[1fr_1rem]',\n ],\n },\n})\n\nconst CLASS_NAMES = (() => {\n const { empty, list, listItem } = classNameGenerator()\n\n return {\n empty: empty(),\n list: list(),\n listItem: listItem(),\n }\n})()\n\ntype Props = {\n features: Array<Launcher['feature']>\n page: Launcher['page']\n}\n\nexport const AppLauncherFeatures: FC<Props> = ({ features, page })
|
|
1
|
+
{"version":3,"file":"AppLauncherFeatures.js","sources":["../../../../../src/components/AppHeader/components/common/AppLauncherFeatures.tsx"],"sourcesContent":["import { type FC, type PropsWithChildren, memo } from 'react'\nimport { tv } from 'tailwind-variants'\n\nimport { Localizer } from '../../../../intl'\nimport { AnchorButton } from '../../../Button'\nimport { FaArrowRightIcon, FaStarIcon } from '../../../Icon'\nimport { Center } from '../../../Layout'\nimport { LineClamp } from '../../../LineClamp'\nimport { Loader } from '../../../Loader'\nimport { Text } from '../../../Text'\nimport { mediaQuery, useMediaQuery } from '../../hooks/useMediaQuery'\n\nimport { Translate } from './Translate'\n\nimport type { Launcher } from '../../types'\n\nconst classNameGenerator = tv({\n slots: {\n empty: ['shr-p-1 shr-text-center'],\n loadError: ['shr-whitespace-pre-wrap shr-p-1 shr-text-center'],\n loading: ['shr-py-3'],\n list: ['shr-list-none', '[&>li]:shr-px-0.5 [&>li]:shr-py-0.25'],\n listItem: [\n 'smarthr-ui-AppLauncher-listItem',\n 'shr-grid shr-min-h-[2.5rem] shr-grid-cols-[1rem_1fr_1rem] shr-gap-0.75 shr-whitespace-normal shr-px-1 shr-py-0 shr-text-left shr-leading-tight',\n 'data-[favorite=\"false\"]:shr-grid-cols-[1fr_1rem]',\n ],\n },\n})\n\nconst CLASS_NAMES = (() => {\n const { empty, loadError, loading, list, listItem } = classNameGenerator()\n\n return {\n empty: empty(),\n loadError: loadError(),\n loading: loading(),\n list: list(),\n listItem: listItem(),\n }\n})()\n\ntype Props = {\n features: Array<Launcher['feature']>\n page: Launcher['page']\n loading?: boolean\n error?: boolean\n}\n\nexport const AppLauncherFeatures: FC<Props> = ({ features, page, loading, error }) => {\n if (loading) {\n return <LoadingList />\n }\n\n if (error) {\n return <LoadErrorText />\n }\n\n return features.length === 0 ? <EmptyList /> : <FeatureList features={features} page={page} />\n}\n\nconst LoadingList = memo(() => (\n <Center className={CLASS_NAMES.loading}>\n <Loader />\n </Center>\n))\n\nconst LoadErrorText = memo(() => (\n <div className={CLASS_NAMES.loadError}>\n <Text size=\"S\">\n <Localizer\n id=\"smarthr-ui/AppHeader/Launcher/loadError\"\n defaultText={`アプリ一覧の読み込みに失敗しました。\n時間をおいて、やり直してください。`}\n />\n </Text>\n </div>\n))\n\nconst EmptyList = memo(() => (\n <div className={CLASS_NAMES.empty}>\n <Text size=\"S\">\n <Translate>\n <Localizer\n id=\"smarthr-ui/AppHeader/Launcher/emptyText\"\n defaultText=\"該当するアプリが見つかりませんでした。\"\n />\n </Translate>\n </Text>\n </div>\n))\n\nconst FeatureList: FC<Props> = ({ features, page }) => {\n const isFavorite = page === 'favorite'\n\n return (\n <ul className={CLASS_NAMES.list}>\n {features.map((feature) => (\n <FeatureListItem\n key={feature.id}\n href={feature.url}\n isFavorite={isFavorite}\n className={CLASS_NAMES.listItem}\n >\n {feature.name}\n </FeatureListItem>\n ))}\n </ul>\n )\n}\n\nconst FeatureListItem = memo<{\n href: Props['features'][number]['url']\n children: Props['features'][number]['name']\n className: string\n isFavorite: boolean\n}>(({ href, children, isFavorite, className }) => (\n <li>\n <AnchorButton\n href={href}\n target=\"_blank\"\n variant=\"text\"\n wide\n className={className}\n data-favorite={isFavorite}\n prefix={isFavorite && <FaStarIcon />}\n suffix={<FaArrowRightIcon />}\n >\n <FeatureName>{children}</FeatureName>\n </AnchorButton>\n </li>\n))\n\nconst FeatureName: FC<PropsWithChildren> = ({ children }) => {\n const isDesktop = useMediaQuery(mediaQuery.desktop)\n\n return isDesktop ? <LineClamp maxLines={2}>{children}</LineClamp> : children\n}\n"],"names":["tv","_jsx","AnchorButton"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,MAAM,kBAAkB,GAAGA,EAAE,CAAC;AAC5B,IAAA,KAAK,EAAE;QACL,KAAK,EAAE,CAAC,yBAAyB,CAAC;QAClC,SAAS,EAAE,CAAC,iDAAiD,CAAC;QAC9D,OAAO,EAAE,CAAC,UAAU,CAAC;AACrB,QAAA,IAAI,EAAE,CAAC,eAAe,EAAE,sCAAsC,CAAC;AAC/D,QAAA,QAAQ,EAAE;YACR,iCAAiC;YACjC,gJAAgJ;YAChJ,kDAAkD;AACnD,SAAA;AACF,KAAA;AACF,CAAA,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,MAAK;AACxB,IAAA,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,kBAAkB,EAAE;IAE1E,OAAO;QACL,KAAK,EAAE,KAAK,EAAE;QACd,SAAS,EAAE,SAAS,EAAE;QACtB,OAAO,EAAE,OAAO,EAAE;QAClB,IAAI,EAAE,IAAI,EAAE;QACZ,QAAQ,EAAE,QAAQ,EAAE;KACrB;AACH,CAAC,GAAG;AASG,MAAM,mBAAmB,GAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,KAAI;IACnF,IAAI,OAAO,EAAE;QACX,OAAOC,GAAA,CAAC,WAAW,EAAA,EAAA,CAAG;IACxB;IAEA,IAAI,KAAK,EAAE;QACT,OAAOA,GAAA,CAAC,aAAa,EAAA,EAAA,CAAG;IAC1B;IAEA,OAAO,QAAQ,CAAC,MAAM,KAAK,CAAC,GAAGA,GAAA,CAAC,SAAS,EAAA,EAAA,CAAG,GAAGA,GAAA,CAAC,WAAW,EAAA,EAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAA,CAAI;AAChG;AAEA,MAAM,WAAW,GAAG,IAAI,CAAC,OACvBA,GAAA,CAAC,MAAM,EAAA,EAAC,SAAS,EAAE,WAAW,CAAC,OAAO,EAAA,QAAA,EACpCA,GAAA,CAAC,MAAM,EAAA,EAAA,CAAG,EAAA,CACH,CACV,CAAC;AAEF,MAAM,aAAa,GAAG,IAAI,CAAC,OACzBA,GAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,WAAW,CAAC,SAAS,EAAA,QAAA,EACnCA,GAAA,CAAC,IAAI,EAAA,EAAC,IAAI,EAAC,GAAG,EAAA,QAAA,EACZA,GAAA,CAAC,SAAS,EAAA,EACR,EAAE,EAAC,yCAAyC,EAC5C,WAAW,EAAE,CAAA;AACH,iBAAA,CAAA,EAAA,CACV,EAAA,CACG,EAAA,CACH,CACP,CAAC;AAEF,MAAM,SAAS,GAAG,IAAI,CAAC,OACrBA,GAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,WAAW,CAAC,KAAK,YAC/BA,GAAA,CAAC,IAAI,IAAC,IAAI,EAAC,GAAG,EAAA,QAAA,EACZA,IAAC,SAAS,EAAA,EAAA,QAAA,EACRA,IAAC,SAAS,EAAA,EACR,EAAE,EAAC,yCAAyC,EAC5C,WAAW,EAAC,oHAAqB,EAAA,CACjC,EAAA,CACQ,GACP,EAAA,CACH,CACP,CAAC;AAEF,MAAM,WAAW,GAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAI;AACpD,IAAA,MAAM,UAAU,GAAG,IAAI,KAAK,UAAU;IAEtC,QACEA,YAAI,SAAS,EAAE,WAAW,CAAC,IAAI,EAAA,QAAA,EAC5B,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,MACpBA,GAAA,CAAC,eAAe,EAAA,EAEd,IAAI,EAAE,OAAO,CAAC,GAAG,EACjB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,WAAW,CAAC,QAAQ,EAAA,QAAA,EAE9B,OAAO,CAAC,IAAI,EAAA,EALR,OAAO,CAAC,EAAE,CAMC,CACnB,CAAC,EAAA,CACC;AAET,CAAC;AAED,MAAM,eAAe,GAAG,IAAI,CAKzB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAC3CA,GAAA,CAAA,IAAA,EAAA,EAAA,QAAA,EACEA,GAAA,CAACC,qBAAY,EAAA,EACX,IAAI,EAAE,IAAI,EACV,MAAM,EAAC,QAAQ,EACf,OAAO,EAAC,MAAM,EACd,IAAI,EAAA,IAAA,EACJ,SAAS,EAAE,SAAS,EAAA,eAAA,EACL,UAAU,EACzB,MAAM,EAAE,UAAU,IAAID,IAAC,UAAU,EAAA,EAAA,CAAG,EACpC,MAAM,EAAEA,GAAA,CAAC,gBAAgB,EAAA,EAAA,CAAG,YAE5BA,GAAA,CAAC,WAAW,EAAA,EAAA,QAAA,EAAE,QAAQ,EAAA,CAAe,EAAA,CACxB,EAAA,CACZ,CACN,CAAC;AAEF,MAAM,WAAW,GAA0B,CAAC,EAAE,QAAQ,EAAE,KAAI;IAC1D,MAAM,SAAS,GAAG,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC;AAEnD,IAAA,OAAO,SAAS,GAAGA,GAAA,CAAC,SAAS,EAAA,EAAC,QAAQ,EAAE,CAAC,YAAG,QAAQ,EAAA,CAAa,GAAG,QAAQ;AAC9E,CAAC;;;;"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var React = require('react');
|
|
6
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
|
-
var
|
|
7
|
+
var hooks_client_useTheme = require('../../../../hooks/client/useTheme.cjs');
|
|
8
8
|
require('../../../../intl/IntlProvider.cjs');
|
|
9
9
|
require('react-intl');
|
|
10
10
|
var intl_Localizer = require('../../../../intl/Localizer.cjs');
|
|
@@ -75,12 +75,12 @@ const AppLauncherSortDropdown = ({ sortType, onSelectSortType }) => {
|
|
|
75
75
|
}
|
|
76
76
|
}, 0);
|
|
77
77
|
}, [onSelectSortType]);
|
|
78
|
-
return (jsxRuntime.jsxs(components_Dropdown_Dropdown.Dropdown, { children: [jsxRuntime.jsx(TriggerButton, { triggerRef: triggerRef, className: CLASS_NAMES.trigger, children: jsxRuntime.jsx(intl_Localizer.Localizer, { id: "smarthr-ui/AppHeader/Launcher/sortDropdownLabel", defaultText: "\u8868\u793A\u9806" }) }), jsxRuntime.jsx(components_Dropdown_DropdownContent.DropdownContent, { controllable: true, children: jsxRuntime.jsx("div", { role: "listbox", className: CLASS_NAMES.contentBody, children: options.map(([value, children], i) => (jsxRuntime.jsx(OptionButton, { value: value, selected: value === sortType,
|
|
78
|
+
return (jsxRuntime.jsxs(components_Dropdown_Dropdown.Dropdown, { children: [jsxRuntime.jsx(TriggerButton, { triggerRef: triggerRef, className: CLASS_NAMES.trigger, children: jsxRuntime.jsx(intl_Localizer.Localizer, { id: "smarthr-ui/AppHeader/Launcher/sortDropdownLabel", defaultText: "\u8868\u793A\u9806" }) }), jsxRuntime.jsx(components_Dropdown_DropdownContent.DropdownContent, { controllable: true, children: jsxRuntime.jsx("div", { role: "listbox", className: CLASS_NAMES.contentBody, children: options.map(([value, children], i) => (jsxRuntime.jsx(OptionButton, { value: value, selected: value === sortType, className: CLASS_NAMES.contentButton, onClick: onClickOption, children: children }, i))) }) })] }));
|
|
79
79
|
};
|
|
80
|
-
const TriggerButton = React.memo(({ triggerRef, children, className }) => (jsxRuntime.jsx(components_Dropdown_DropdownTrigger.DropdownTrigger, { children: jsxRuntime.jsx(components_Button_Button.Button, { ref: triggerRef,
|
|
80
|
+
const TriggerButton = React.memo(({ triggerRef, children, className }) => (jsxRuntime.jsx(components_Dropdown_DropdownTrigger.DropdownTrigger, { children: jsxRuntime.jsx(components_Button_Button.Button, { ref: triggerRef, variant: "text", size: "S", className: className, suffix: jsxRuntime.jsx(components_Icon_FaIcon.FaCaretDownIcon, {}), children: jsxRuntime.jsx(components_AppHeader_components_common_Translate.Translate, { children: children }) }) })));
|
|
81
81
|
const OptionButton = React.memo(({ value, selected, onClick, children, className }) => {
|
|
82
|
-
const theme =
|
|
83
|
-
return (jsxRuntime.jsx(components_Button_Button.Button, { value: value,
|
|
82
|
+
const theme = hooks_client_useTheme.useTheme();
|
|
83
|
+
return (jsxRuntime.jsx(components_Button_Button.Button, { role: "option", value: value, className: className, "aria-selected": selected, onClick: onClick, prefix: selected && (jsxRuntime.jsx(components_Icon_FaIcon.FaCheckIcon, { alt: jsxRuntime.jsx(components_AppHeader_components_common_Translate.Translate, { children: jsxRuntime.jsx(intl_Localizer.Localizer, { id: "smarthr-ui/AppHeader/Launcher/sortDropdownSelected", defaultText: "\u9078\u629E\u4E2D" }) }), color: theme.textColor.main })), children: jsxRuntime.jsx(components_AppHeader_components_common_Translate.Translate, { children: children }) }));
|
|
84
84
|
});
|
|
85
85
|
|
|
86
86
|
exports.AppLauncherSortDropdown = AppLauncherSortDropdown;
|