smarthr-ui 65.2.1 → 65.3.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/esm/components/AppHeader/hooks/useAppLauncher.d.ts +1 -1
- package/esm/components/AppHeader/hooks/useAppLauncher.js +19 -26
- package/esm/components/AppHeader/hooks/useAppLauncher.js.map +1 -1
- package/esm/components/AppHeader/hooks/useMediaQuery.js +16 -8
- package/esm/components/AppHeader/hooks/useMediaQuery.js.map +1 -1
- package/esm/components/AppHeader/utils.js +10 -3
- package/esm/components/AppHeader/utils.js.map +1 -1
- package/esm/components/Badge/Badge.d.ts +3 -3
- package/esm/components/Badge/Badge.js +28 -13
- package/esm/components/Badge/Badge.js.map +1 -1
- package/esm/components/Balloon/Balloon.d.ts +86 -4
- package/esm/components/Balloon/Balloon.js +5 -5
- package/esm/components/Balloon/Balloon.js.map +1 -1
- package/esm/components/Base/Base.d.ts +2 -2
- package/esm/components/Base/Base.js +18 -17
- package/esm/components/Base/Base.js.map +1 -1
- package/esm/components/Base/BaseColumn/BaseColumn.d.ts +2 -2
- package/esm/components/Base/BaseColumn/BaseColumn.js +3 -3
- package/esm/components/Base/BaseColumn/BaseColumn.js.map +1 -1
- package/esm/components/Browser/models/ItemNode.js +15 -18
- package/esm/components/Browser/models/ItemNode.js.map +1 -1
- package/esm/components/Browser/models/NodeContext.js +9 -21
- package/esm/components/Browser/models/NodeContext.js.map +1 -1
- package/esm/components/Browser/models/RootNode.js +1 -0
- package/esm/components/Browser/models/RootNode.js.map +1 -1
- package/esm/components/Button/AnchorButton.js +3 -6
- package/esm/components/Button/AnchorButton.js.map +1 -1
- package/esm/components/Button/Button.d.ts +5 -1
- package/esm/components/Button/Button.js +36 -20
- package/esm/components/Button/Button.js.map +1 -1
- package/esm/components/Button/ButtonWrapper.d.ts +6 -5
- package/esm/components/Button/ButtonWrapper.js +58 -37
- package/esm/components/Button/ButtonWrapper.js.map +1 -1
- package/esm/components/Button/DisabledDetail.d.ts +2 -2
- package/esm/components/Button/DisabledDetail.js +18 -12
- package/esm/components/Button/DisabledDetail.js.map +1 -1
- package/esm/components/Button/UnstyledButton.js +3 -3
- package/esm/components/Button/UnstyledButton.js.map +1 -1
- package/esm/components/Chip/Chip.d.ts +51 -2
- package/esm/components/Chip/Chip.js +14 -4
- package/esm/components/Chip/Chip.js.map +1 -1
- package/esm/components/ComboBox/ListBoxItemButton.js +6 -5
- package/esm/components/ComboBox/ListBoxItemButton.js.map +1 -1
- package/esm/components/ComboBox/MultiComboBox/MultiComboBox.js +64 -89
- package/esm/components/ComboBox/MultiComboBox/MultiComboBox.js.map +1 -1
- package/esm/components/ComboBox/MultiComboBox/MultiSelectedItem.d.ts +7 -3
- package/esm/components/ComboBox/MultiComboBox/MultiSelectedItem.js +49 -35
- package/esm/components/ComboBox/MultiComboBox/MultiSelectedItem.js.map +1 -1
- package/esm/components/ComboBox/SingleComboBox/SingleComboBox.d.ts +6 -6
- package/esm/components/ComboBox/SingleComboBox/SingleComboBox.js +65 -105
- package/esm/components/ComboBox/SingleComboBox/SingleComboBox.js.map +1 -1
- package/esm/components/ComboBox/useActiveOption.d.ts +1 -2
- package/esm/components/ComboBox/useActiveOption.js +8 -19
- package/esm/components/ComboBox/useActiveOption.js.map +1 -1
- package/esm/components/ComboBox/useFocusControl.js +25 -23
- package/esm/components/ComboBox/useFocusControl.js.map +1 -1
- package/esm/components/ComboBox/useListBox.js +4 -4
- package/esm/components/ComboBox/useListBox.js.map +1 -1
- package/esm/components/FormControl/FormControl.js +10 -7
- package/esm/components/FormControl/FormControl.js.map +1 -1
- package/esm/components/Heading/Heading.d.ts +25 -3
- package/esm/components/Heading/Heading.js +10 -13
- package/esm/components/Heading/Heading.js.map +1 -1
- package/esm/components/Input/CurrencyInput/CurrencyInput.js +1 -3
- package/esm/components/Input/CurrencyInput/CurrencyInput.js.map +1 -1
- package/esm/components/Layout/Center/Center.d.ts +1 -1
- package/esm/components/Layout/Center/Center.js +11 -10
- package/esm/components/Layout/Center/Center.js.map +1 -1
- package/esm/components/Layout/Cluster/Cluster.d.ts +1 -1
- package/esm/components/Layout/Cluster/Cluster.js +14 -4
- package/esm/components/Layout/Cluster/Cluster.js.map +1 -1
- package/esm/components/Layout/Reel/Reel.d.ts +2 -2
- package/esm/components/Layout/Reel/Reel.js +7 -4
- package/esm/components/Layout/Reel/Reel.js.map +1 -1
- package/esm/components/Layout/Sidebar/Sidebar.d.ts +2 -2
- package/esm/components/Layout/Sidebar/Sidebar.js +7 -4
- package/esm/components/Layout/Sidebar/Sidebar.js.map +1 -1
- package/esm/components/Layout/Stack/Stack.d.ts +2 -2
- package/esm/components/Layout/Stack/Stack.js +7 -4
- package/esm/components/Layout/Stack/Stack.js.map +1 -1
- package/esm/components/Pagination/Pagination.d.ts +1 -1
- package/esm/components/Pagination/Pagination.js +41 -32
- package/esm/components/Pagination/Pagination.js.map +1 -1
- package/esm/components/Pagination/PaginationControllerItemButton.d.ts +0 -1
- package/esm/components/Pagination/PaginationControllerItemButton.js +2 -2
- package/esm/components/Pagination/PaginationControllerItemButton.js.map +1 -1
- package/esm/components/Pagination/PaginationItemButton.d.ts +1 -2
- package/esm/components/Pagination/PaginationItemButton.js +3 -4
- package/esm/components/Pagination/PaginationItemButton.js.map +1 -1
- package/esm/components/Picker/DatetimeLocalPicker.js +8 -8
- package/esm/components/Picker/DatetimeLocalPicker.js.map +1 -1
- package/esm/components/Picker/MonthPicker.js +8 -8
- package/esm/components/Picker/MonthPicker.js.map +1 -1
- package/esm/components/Picker/TimePicker.js +8 -8
- package/esm/components/Picker/TimePicker.js.map +1 -1
- package/esm/components/Picker/style.d.ts +63 -15
- package/esm/components/Picker/style.js +6 -16
- package/esm/components/Picker/style.js.map +1 -1
- package/esm/components/RadioButton/RadioButton.js +21 -28
- package/esm/components/RadioButton/RadioButton.js.map +1 -1
- package/esm/components/RadioButtonPanel/RadioButtonPanel.js +6 -9
- package/esm/components/RadioButtonPanel/RadioButtonPanel.js.map +1 -1
- package/esm/components/ResponseMessage/ResponseMessage.d.ts +2 -2
- package/esm/components/ResponseMessage/ResponseMessage.js +3 -3
- package/esm/components/ResponseMessage/ResponseMessage.js.map +1 -1
- package/esm/components/SectioningContent/useSectioningWrapper.d.ts +2 -4
- package/esm/components/SectioningContent/useSectioningWrapper.js +4 -4
- package/esm/components/SectioningContent/useSectioningWrapper.js.map +1 -1
- package/esm/components/SegmentedControl/SegmentedControl.js +47 -47
- package/esm/components/SegmentedControl/SegmentedControl.js.map +1 -1
- package/esm/components/SmartHRLogo/SmartHRLogo.d.ts +53 -4
- package/esm/components/SmartHRLogo/SmartHRLogo.js +9 -11
- package/esm/components/SmartHRLogo/SmartHRLogo.js.map +1 -1
- package/esm/components/SpreadsheetTable/SpreadsheetTable.d.ts +1 -1
- package/esm/components/SpreadsheetTable/SpreadsheetTable.js +19 -10
- package/esm/components/SpreadsheetTable/SpreadsheetTable.js.map +1 -1
- package/esm/components/SpreadsheetTable/SpreadsheetTableCorner.d.ts +1 -1
- package/esm/components/SpreadsheetTable/SpreadsheetTableCorner.js +2 -2
- package/esm/components/SpreadsheetTable/SpreadsheetTableCorner.js.map +1 -1
- package/esm/components/StatusLabel/StatusLabel.d.ts +6 -5
- package/esm/components/StatusLabel/StatusLabel.js +18 -18
- package/esm/components/StatusLabel/StatusLabel.js.map +1 -1
- package/esm/components/Stepper/HorizontalStepItem.js +14 -16
- package/esm/components/Stepper/HorizontalStepItem.js.map +1 -1
- package/esm/components/Stepper/VerticalStepItem.js +4 -4
- package/esm/components/Stepper/VerticalStepItem.js.map +1 -1
- package/esm/components/Switch/Switch.js +16 -12
- package/esm/components/Switch/Switch.js.map +1 -1
- package/esm/components/TabBar/TabBar.js +8 -8
- package/esm/components/TabBar/TabBar.js.map +1 -1
- package/esm/components/TabBar/TabItem.js +13 -10
- package/esm/components/TabBar/TabItem.js.map +1 -1
- package/esm/components/Table/BulkActionRow.js +11 -5
- package/esm/components/Table/BulkActionRow.js.map +1 -1
- package/esm/components/Table/EmptyTableBody.js +9 -13
- package/esm/components/Table/EmptyTableBody.js.map +1 -1
- package/esm/components/Table/Table.d.ts +2 -2
- package/esm/components/Table/Table.js +3 -3
- package/esm/components/Table/Table.js.map +1 -1
- package/esm/components/Table/TableReel.js +8 -8
- package/esm/components/Table/TableReel.js.map +1 -1
- package/esm/components/Table/Td.d.ts +117 -4
- package/esm/components/Table/Td.js +26 -27
- package/esm/components/Table/Td.js.map +1 -1
- package/esm/components/Table/TdCheckbox.js +13 -6
- package/esm/components/Table/TdCheckbox.js.map +1 -1
- package/esm/components/Table/Th.d.ts +109 -4
- package/esm/components/Table/Th.js +51 -58
- package/esm/components/Table/Th.js.map +1 -1
- package/esm/components/Table/ThCheckbox.js +21 -21
- package/esm/components/Table/ThCheckbox.js.map +1 -1
- package/esm/components/Table/useReelCells.js +1 -1
- package/esm/components/Table/useReelCells.js.map +1 -1
- package/esm/components/Table/useReelShadow.d.ts +1 -1
- package/esm/components/Table/useReelShadow.js +1 -1
- package/esm/components/Table/useReelShadow.js.map +1 -1
- package/esm/components/Table/useTableHeadCellCount.js.map +1 -1
- package/esm/components/Text/Text.d.ts +6 -5
- package/esm/components/Text/Text.js +7 -6
- package/esm/components/Text/Text.js.map +1 -1
- package/esm/components/TextLink/TextLink.d.ts +3 -2
- package/esm/components/TextLink/TextLink.js +3 -2
- package/esm/components/TextLink/TextLink.js.map +1 -1
- package/esm/components/Textarea/Textarea.js +10 -15
- package/esm/components/Textarea/Textarea.js.map +1 -1
- package/esm/components/UpwardLink/UpwardLink.d.ts +3 -3
- package/esm/components/UpwardLink/UpwardLink.js +7 -7
- package/esm/components/UpwardLink/UpwardLink.js.map +1 -1
- package/esm/components/VisuallyHiddenText/VisuallyHiddenText.d.ts +4 -3
- package/esm/components/VisuallyHiddenText/VisuallyHiddenText.js +6 -5
- package/esm/components/VisuallyHiddenText/VisuallyHiddenText.js.map +1 -1
- package/esm/components/VisuallyHiddenText/index.d.ts +1 -1
- package/esm/components/VisuallyHiddenText/index.js +1 -1
- package/esm/components/VisuallyHiddenText/index.js.map +1 -1
- package/esm/hooks/useDecorators.d.ts +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.js +2 -0
- package/esm/index.js.map +1 -1
- package/esm/intl/DateFormatter.d.ts +9 -0
- package/esm/intl/DateFormatter.js +7 -0
- package/esm/intl/DateFormatter.js.map +1 -0
- package/esm/intl/IntlProvider.d.ts +7 -0
- package/esm/intl/IntlProvider.js +6 -0
- package/esm/intl/IntlProvider.js.map +1 -0
- package/esm/intl/Localizer.d.ts +11 -0
- package/esm/intl/Localizer.js +4 -0
- package/esm/intl/Localizer.js.map +1 -0
- package/esm/intl/index.d.ts +4 -0
- package/esm/intl/index.js +5 -0
- package/esm/intl/index.js.map +1 -0
- package/esm/intl/locales/en_us.d.ts +3 -0
- package/esm/intl/locales/en_us.js +6 -0
- package/esm/intl/locales/en_us.js.map +1 -0
- package/esm/intl/locales/id_id.d.ts +3 -0
- package/esm/intl/locales/id_id.js +6 -0
- package/esm/intl/locales/id_id.js.map +1 -0
- package/esm/intl/locales/index.d.ts +8 -0
- package/esm/intl/locales/index.js +9 -0
- package/esm/intl/locales/index.js.map +1 -0
- package/esm/intl/locales/ja.d.ts +3 -0
- package/esm/intl/locales/ja.js +6 -0
- package/esm/intl/locales/ja.js.map +1 -0
- package/esm/intl/locales/ko_kr.d.ts +3 -0
- package/esm/intl/locales/ko_kr.js +6 -0
- package/esm/intl/locales/ko_kr.js.map +1 -0
- package/esm/intl/locales/pt_br.d.ts +3 -0
- package/esm/intl/locales/pt_br.js +6 -0
- package/esm/intl/locales/pt_br.js.map +1 -0
- package/esm/intl/locales/vi_vn.d.ts +3 -0
- package/esm/intl/locales/vi_vn.js +6 -0
- package/esm/intl/locales/vi_vn.js.map +1 -0
- package/esm/intl/locales/zh_hans_cn.d.ts +3 -0
- package/esm/intl/locales/zh_hans_cn.js +6 -0
- package/esm/intl/locales/zh_hans_cn.js.map +1 -0
- package/esm/intl/locales/zh_hant_tw.d.ts +3 -0
- package/esm/intl/locales/zh_hant_tw.js +6 -0
- package/esm/intl/locales/zh_hant_tw.js.map +1 -0
- package/esm/intl/useIntl.d.ts +15 -0
- package/esm/intl/useIntl.js +28 -0
- package/esm/intl/useIntl.js.map +1 -0
- package/lib/components/AppHeader/hooks/useAppLauncher.d.ts +1 -1
- package/lib/components/AppHeader/hooks/useAppLauncher.js +19 -26
- package/lib/components/AppHeader/hooks/useAppLauncher.js.map +1 -1
- package/lib/components/AppHeader/hooks/useMediaQuery.js +15 -7
- package/lib/components/AppHeader/hooks/useMediaQuery.js.map +1 -1
- package/lib/components/AppHeader/utils.js +10 -3
- package/lib/components/AppHeader/utils.js.map +1 -1
- package/lib/components/Badge/Badge.d.ts +3 -3
- package/lib/components/Badge/Badge.js +28 -14
- package/lib/components/Badge/Badge.js.map +1 -1
- package/lib/components/Balloon/Balloon.d.ts +86 -4
- package/lib/components/Balloon/Balloon.js +5 -6
- package/lib/components/Balloon/Balloon.js.map +1 -1
- package/lib/components/Base/Base.d.ts +2 -2
- package/lib/components/Base/Base.js +19 -18
- package/lib/components/Base/Base.js.map +1 -1
- package/lib/components/Base/BaseColumn/BaseColumn.d.ts +2 -2
- package/lib/components/Base/BaseColumn/BaseColumn.js +4 -4
- package/lib/components/Base/BaseColumn/BaseColumn.js.map +1 -1
- package/lib/components/Browser/models/ItemNode.js +15 -18
- package/lib/components/Browser/models/ItemNode.js.map +1 -1
- package/lib/components/Browser/models/NodeContext.js +9 -21
- package/lib/components/Browser/models/NodeContext.js.map +1 -1
- package/lib/components/Browser/models/RootNode.js +1 -0
- package/lib/components/Browser/models/RootNode.js.map +1 -1
- package/lib/components/Button/AnchorButton.js +3 -6
- package/lib/components/Button/AnchorButton.js.map +1 -1
- package/lib/components/Button/Button.d.ts +5 -1
- package/lib/components/Button/Button.js +36 -20
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/ButtonWrapper.d.ts +6 -5
- package/lib/components/Button/ButtonWrapper.js +58 -37
- package/lib/components/Button/ButtonWrapper.js.map +1 -1
- package/lib/components/Button/DisabledDetail.d.ts +2 -2
- package/lib/components/Button/DisabledDetail.js +51 -15
- package/lib/components/Button/DisabledDetail.js.map +1 -1
- package/lib/components/Button/UnstyledButton.js +3 -3
- package/lib/components/Button/UnstyledButton.js.map +1 -1
- package/lib/components/Chip/Chip.d.ts +51 -2
- package/lib/components/Chip/Chip.js +15 -5
- package/lib/components/Chip/Chip.js.map +1 -1
- package/lib/components/ComboBox/ListBoxItemButton.js +5 -4
- package/lib/components/ComboBox/ListBoxItemButton.js.map +1 -1
- package/lib/components/ComboBox/MultiComboBox/MultiComboBox.js +64 -89
- package/lib/components/ComboBox/MultiComboBox/MultiComboBox.js.map +1 -1
- package/lib/components/ComboBox/MultiComboBox/MultiSelectedItem.d.ts +7 -3
- package/lib/components/ComboBox/MultiComboBox/MultiSelectedItem.js +48 -34
- package/lib/components/ComboBox/MultiComboBox/MultiSelectedItem.js.map +1 -1
- package/lib/components/ComboBox/SingleComboBox/SingleComboBox.d.ts +6 -6
- package/lib/components/ComboBox/SingleComboBox/SingleComboBox.js +64 -104
- package/lib/components/ComboBox/SingleComboBox/SingleComboBox.js.map +1 -1
- package/lib/components/ComboBox/useActiveOption.d.ts +1 -2
- package/lib/components/ComboBox/useActiveOption.js +8 -19
- package/lib/components/ComboBox/useActiveOption.js.map +1 -1
- package/lib/components/ComboBox/useFocusControl.js +25 -23
- package/lib/components/ComboBox/useFocusControl.js.map +1 -1
- package/lib/components/ComboBox/useListBox.js +4 -4
- package/lib/components/ComboBox/useListBox.js.map +1 -1
- package/lib/components/FormControl/FormControl.js +9 -6
- package/lib/components/FormControl/FormControl.js.map +1 -1
- package/lib/components/Heading/Heading.d.ts +25 -3
- package/lib/components/Heading/Heading.js +9 -14
- package/lib/components/Heading/Heading.js.map +1 -1
- package/lib/components/Input/CurrencyInput/CurrencyInput.js +1 -3
- package/lib/components/Input/CurrencyInput/CurrencyInput.js.map +1 -1
- package/lib/components/Layout/Center/Center.d.ts +1 -1
- package/lib/components/Layout/Center/Center.js +12 -11
- package/lib/components/Layout/Center/Center.js.map +1 -1
- package/lib/components/Layout/Cluster/Cluster.d.ts +1 -1
- package/lib/components/Layout/Cluster/Cluster.js +15 -5
- package/lib/components/Layout/Cluster/Cluster.js.map +1 -1
- package/lib/components/Layout/Reel/Reel.d.ts +2 -2
- package/lib/components/Layout/Reel/Reel.js +7 -4
- package/lib/components/Layout/Reel/Reel.js.map +1 -1
- package/lib/components/Layout/Sidebar/Sidebar.d.ts +2 -2
- package/lib/components/Layout/Sidebar/Sidebar.js +7 -4
- package/lib/components/Layout/Sidebar/Sidebar.js.map +1 -1
- package/lib/components/Layout/Stack/Stack.d.ts +2 -2
- package/lib/components/Layout/Stack/Stack.js +7 -4
- package/lib/components/Layout/Stack/Stack.js.map +1 -1
- package/lib/components/Pagination/Pagination.d.ts +1 -1
- package/lib/components/Pagination/Pagination.js +40 -31
- package/lib/components/Pagination/Pagination.js.map +1 -1
- package/lib/components/Pagination/PaginationControllerItemButton.d.ts +0 -1
- package/lib/components/Pagination/PaginationControllerItemButton.js +2 -2
- package/lib/components/Pagination/PaginationControllerItemButton.js.map +1 -1
- package/lib/components/Pagination/PaginationItemButton.d.ts +1 -2
- package/lib/components/Pagination/PaginationItemButton.js +3 -4
- package/lib/components/Pagination/PaginationItemButton.js.map +1 -1
- package/lib/components/Picker/DatetimeLocalPicker.js +7 -7
- package/lib/components/Picker/DatetimeLocalPicker.js.map +1 -1
- package/lib/components/Picker/MonthPicker.js +7 -7
- package/lib/components/Picker/MonthPicker.js.map +1 -1
- package/lib/components/Picker/TimePicker.js +7 -7
- package/lib/components/Picker/TimePicker.js.map +1 -1
- package/lib/components/Picker/style.d.ts +63 -15
- package/lib/components/Picker/style.js +8 -18
- package/lib/components/Picker/style.js.map +1 -1
- package/lib/components/RadioButton/RadioButton.js +21 -28
- package/lib/components/RadioButton/RadioButton.js.map +1 -1
- package/lib/components/RadioButtonPanel/RadioButtonPanel.js +6 -9
- package/lib/components/RadioButtonPanel/RadioButtonPanel.js.map +1 -1
- package/lib/components/ResponseMessage/ResponseMessage.d.ts +2 -2
- package/lib/components/ResponseMessage/ResponseMessage.js +3 -3
- package/lib/components/ResponseMessage/ResponseMessage.js.map +1 -1
- package/lib/components/SectioningContent/useSectioningWrapper.d.ts +2 -4
- package/lib/components/SectioningContent/useSectioningWrapper.js +4 -37
- package/lib/components/SectioningContent/useSectioningWrapper.js.map +1 -1
- package/lib/components/SegmentedControl/SegmentedControl.js +47 -47
- package/lib/components/SegmentedControl/SegmentedControl.js.map +1 -1
- package/lib/components/SmartHRLogo/SmartHRLogo.d.ts +53 -4
- package/lib/components/SmartHRLogo/SmartHRLogo.js +8 -11
- package/lib/components/SmartHRLogo/SmartHRLogo.js.map +1 -1
- package/lib/components/SpreadsheetTable/SpreadsheetTable.d.ts +1 -1
- package/lib/components/SpreadsheetTable/SpreadsheetTable.js +18 -9
- package/lib/components/SpreadsheetTable/SpreadsheetTable.js.map +1 -1
- package/lib/components/SpreadsheetTable/SpreadsheetTableCorner.d.ts +1 -1
- package/lib/components/SpreadsheetTable/SpreadsheetTableCorner.js +35 -6
- package/lib/components/SpreadsheetTable/SpreadsheetTableCorner.js.map +1 -1
- package/lib/components/StatusLabel/StatusLabel.d.ts +6 -5
- package/lib/components/StatusLabel/StatusLabel.js +18 -19
- package/lib/components/StatusLabel/StatusLabel.js.map +1 -1
- package/lib/components/Stepper/HorizontalStepItem.js +14 -16
- package/lib/components/Stepper/HorizontalStepItem.js.map +1 -1
- package/lib/components/Stepper/VerticalStepItem.js +2 -2
- package/lib/components/Stepper/VerticalStepItem.js.map +1 -1
- package/lib/components/Switch/Switch.js +15 -11
- package/lib/components/Switch/Switch.js.map +1 -1
- package/lib/components/TabBar/TabBar.js +8 -8
- package/lib/components/TabBar/TabBar.js.map +1 -1
- package/lib/components/TabBar/TabItem.js +12 -9
- package/lib/components/TabBar/TabItem.js.map +1 -1
- package/lib/components/Table/BulkActionRow.js +44 -8
- package/lib/components/Table/BulkActionRow.js.map +1 -1
- package/lib/components/Table/EmptyTableBody.js +9 -13
- package/lib/components/Table/EmptyTableBody.js.map +1 -1
- package/lib/components/Table/Table.d.ts +2 -2
- package/lib/components/Table/Table.js +3 -3
- package/lib/components/Table/Table.js.map +1 -1
- package/lib/components/Table/TableReel.js +7 -7
- package/lib/components/Table/TableReel.js.map +1 -1
- package/lib/components/Table/Td.d.ts +117 -4
- package/lib/components/Table/Td.js +24 -26
- package/lib/components/Table/Td.js.map +1 -1
- package/lib/components/Table/TdCheckbox.js +12 -5
- package/lib/components/Table/TdCheckbox.js.map +1 -1
- package/lib/components/Table/Th.d.ts +109 -4
- package/lib/components/Table/Th.js +49 -57
- package/lib/components/Table/Th.js.map +1 -1
- package/lib/components/Table/ThCheckbox.js +21 -21
- package/lib/components/Table/ThCheckbox.js.map +1 -1
- package/lib/components/Table/useReelCells.js +1 -1
- package/lib/components/Table/useReelCells.js.map +1 -1
- package/lib/components/Table/useReelShadow.d.ts +1 -1
- package/lib/components/Table/useReelShadow.js +2 -2
- package/lib/components/Table/useReelShadow.js.map +1 -1
- package/lib/components/Table/useTableHeadCellCount.js.map +1 -1
- package/lib/components/Text/Text.d.ts +6 -5
- package/lib/components/Text/Text.js +6 -6
- package/lib/components/Text/Text.js.map +1 -1
- package/lib/components/TextLink/TextLink.d.ts +3 -2
- package/lib/components/TextLink/TextLink.js +2 -1
- package/lib/components/TextLink/TextLink.js.map +1 -1
- package/lib/components/Textarea/Textarea.js +10 -15
- package/lib/components/Textarea/Textarea.js.map +1 -1
- package/lib/components/UpwardLink/UpwardLink.d.ts +3 -3
- package/lib/components/UpwardLink/UpwardLink.js +6 -7
- package/lib/components/UpwardLink/UpwardLink.js.map +1 -1
- package/lib/components/VisuallyHiddenText/VisuallyHiddenText.d.ts +4 -3
- package/lib/components/VisuallyHiddenText/VisuallyHiddenText.js +6 -6
- package/lib/components/VisuallyHiddenText/VisuallyHiddenText.js.map +1 -1
- package/lib/components/VisuallyHiddenText/index.d.ts +1 -1
- package/lib/components/VisuallyHiddenText/index.js +2 -2
- package/lib/components/VisuallyHiddenText/index.js.map +1 -1
- package/lib/hooks/useDecorators.d.ts +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +6 -1
- package/lib/index.js.map +1 -1
- package/lib/intl/DateFormatter.d.ts +9 -0
- package/lib/intl/DateFormatter.js +14 -0
- package/lib/intl/DateFormatter.js.map +1 -0
- package/lib/intl/IntlProvider.d.ts +7 -0
- package/lib/{components/Button/ButtonInner.js → intl/IntlProvider.js} +11 -27
- package/lib/intl/IntlProvider.js.map +1 -0
- package/lib/intl/Localizer.d.ts +11 -0
- package/lib/intl/Localizer.js +11 -0
- package/lib/intl/Localizer.js.map +1 -0
- package/lib/intl/index.d.ts +4 -0
- package/lib/intl/index.js +12 -0
- package/lib/intl/index.js.map +1 -0
- package/lib/intl/locales/en_us.d.ts +3 -0
- package/lib/intl/locales/en_us.js +9 -0
- package/lib/intl/locales/en_us.js.map +1 -0
- package/lib/intl/locales/id_id.d.ts +3 -0
- package/lib/intl/locales/id_id.js +9 -0
- package/lib/intl/locales/id_id.js.map +1 -0
- package/lib/intl/locales/index.d.ts +8 -0
- package/lib/intl/locales/index.js +20 -0
- package/lib/intl/locales/index.js.map +1 -0
- package/lib/intl/locales/ja.d.ts +3 -0
- package/lib/intl/locales/ja.js +9 -0
- package/lib/intl/locales/ja.js.map +1 -0
- package/lib/intl/locales/ko_kr.d.ts +3 -0
- package/lib/intl/locales/ko_kr.js +9 -0
- package/lib/intl/locales/ko_kr.js.map +1 -0
- package/lib/intl/locales/pt_br.d.ts +3 -0
- package/lib/intl/locales/pt_br.js +9 -0
- package/lib/intl/locales/pt_br.js.map +1 -0
- package/lib/intl/locales/vi_vn.d.ts +3 -0
- package/lib/intl/locales/vi_vn.js +9 -0
- package/lib/intl/locales/vi_vn.js.map +1 -0
- package/lib/intl/locales/zh_hans_cn.d.ts +3 -0
- package/lib/intl/locales/zh_hans_cn.js +9 -0
- package/lib/intl/locales/zh_hans_cn.js.map +1 -0
- package/lib/intl/locales/zh_hant_tw.d.ts +3 -0
- package/lib/intl/locales/zh_hant_tw.js +9 -0
- package/lib/intl/locales/zh_hant_tw.js.map +1 -0
- package/lib/intl/useIntl.d.ts +15 -0
- package/lib/intl/useIntl.js +65 -0
- package/lib/intl/useIntl.js.map +1 -0
- package/package.json +31 -28
- package/smarthr-ui.css +71 -8
- package/esm/components/Balloon/useClassNames.d.ts +0 -3
- package/esm/components/Balloon/useClassNames.js +0 -9
- package/esm/components/Balloon/useClassNames.js.map +0 -1
- package/esm/components/Button/ButtonInner.d.ts +0 -7
- package/esm/components/Button/ButtonInner.js +0 -25
- package/esm/components/Button/ButtonInner.js.map +0 -1
- package/esm/components/ComboBox/MultiComboBox/MultiSelectedItemTooltip.d.ts +0 -8
- package/esm/components/ComboBox/MultiComboBox/MultiSelectedItemTooltip.js +0 -6
- package/esm/components/ComboBox/MultiComboBox/MultiSelectedItemTooltip.js.map +0 -1
- package/esm/components/ComboBox/MultiComboBox/multiComboBoxHelper.d.ts +0 -1
- package/esm/components/ComboBox/MultiComboBox/multiComboBoxHelper.js +0 -7
- package/esm/components/ComboBox/MultiComboBox/multiComboBoxHelper.js.map +0 -1
- package/esm/components/Input/CurrencyInput/useClassNames.d.ts +0 -3
- package/esm/components/Input/CurrencyInput/useClassNames.js +0 -10
- package/esm/components/Input/CurrencyInput/useClassNames.js.map +0 -1
- package/esm/hooks/useClassNameGenerator.d.ts +0 -1
- package/esm/hooks/useClassNameGenerator.js +0 -11
- package/esm/hooks/useClassNameGenerator.js.map +0 -1
- package/lib/components/Balloon/useClassNames.d.ts +0 -3
- package/lib/components/Balloon/useClassNames.js +0 -12
- package/lib/components/Balloon/useClassNames.js.map +0 -1
- package/lib/components/Button/ButtonInner.d.ts +0 -7
- package/lib/components/Button/ButtonInner.js.map +0 -1
- package/lib/components/ComboBox/MultiComboBox/MultiSelectedItemTooltip.d.ts +0 -8
- package/lib/components/ComboBox/MultiComboBox/MultiSelectedItemTooltip.js +0 -13
- package/lib/components/ComboBox/MultiComboBox/MultiSelectedItemTooltip.js.map +0 -1
- package/lib/components/ComboBox/MultiComboBox/multiComboBoxHelper.d.ts +0 -1
- package/lib/components/ComboBox/MultiComboBox/multiComboBoxHelper.js +0 -10
- package/lib/components/ComboBox/MultiComboBox/multiComboBoxHelper.js.map +0 -1
- package/lib/components/Input/CurrencyInput/useClassNames.d.ts +0 -3
- package/lib/components/Input/CurrencyInput/useClassNames.js +0 -13
- package/lib/components/Input/CurrencyInput/useClassNames.js.map +0 -1
- package/lib/hooks/useClassNameGenerator.d.ts +0 -1
- package/lib/hooks/useClassNameGenerator.js +0 -14
- package/lib/hooks/useClassNameGenerator.js.map +0 -1
|
@@ -15,4 +15,4 @@ export declare const useAppLauncher: (baseFeatures: Array<Launcher["feature"]>)
|
|
|
15
15
|
setSortType: import("react").Dispatch<import("react").SetStateAction<"default" | "name/asc" | "name/desc">>;
|
|
16
16
|
changeSearchQuery: (q: string) => void;
|
|
17
17
|
};
|
|
18
|
-
export declare const looseInclude: (
|
|
18
|
+
export declare const looseInclude: (looseSearchQuery: string, featureName: string) => boolean;
|
|
@@ -28,10 +28,8 @@ export const useAppLauncher = (baseFeatures) => {
|
|
|
28
28
|
if (mode !== 'search') {
|
|
29
29
|
setMode('search');
|
|
30
30
|
}
|
|
31
|
-
else {
|
|
32
|
-
|
|
33
|
-
setMode('default');
|
|
34
|
-
}
|
|
31
|
+
else if (q === '') {
|
|
32
|
+
setMode('default');
|
|
35
33
|
}
|
|
36
34
|
}, [mode]);
|
|
37
35
|
return { features, page, mode, sortType, searchQuery, changePage, setSortType, changeSearchQuery };
|
|
@@ -41,39 +39,34 @@ const sortFeatures = (features, { page, sortType, mode, searchQuery, }) => {
|
|
|
41
39
|
const filtered = features.filter((item) => item.favorite);
|
|
42
40
|
// feature の position の数値の順に並び替える。position が null の場合は最後に並べる
|
|
43
41
|
return filtered.sort((a, b) => {
|
|
44
|
-
if (a.position === null
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
if (a.position === null) {
|
|
43
|
+
if (b.position === null) {
|
|
44
|
+
return 0;
|
|
45
|
+
}
|
|
48
46
|
return 1;
|
|
49
47
|
}
|
|
50
48
|
else if (b.position === null) {
|
|
51
49
|
return -1;
|
|
52
50
|
}
|
|
53
|
-
|
|
54
|
-
return a.position - b.position;
|
|
55
|
-
}
|
|
51
|
+
return a.position - b.position;
|
|
56
52
|
});
|
|
57
53
|
}
|
|
54
|
+
const looseSearchQuery = normalize(searchQuery);
|
|
58
55
|
const featuresRes = mode === 'search'
|
|
59
|
-
? features.filter((feature) => looseInclude(feature.name
|
|
56
|
+
? features.filter((feature) => looseInclude(looseSearchQuery, feature.name))
|
|
60
57
|
: [...features];
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
switch (sortType) {
|
|
59
|
+
case 'name/asc':
|
|
60
|
+
return featuresRes.sort((a, b) => a.name.localeCompare(b.name));
|
|
61
|
+
case 'name/desc':
|
|
62
|
+
return featuresRes.sort((a, b) => b.name.localeCompare(a.name));
|
|
66
63
|
}
|
|
67
64
|
return featuresRes;
|
|
68
65
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const normalizedB = normalize(b);
|
|
73
|
-
return normalizedA.includes(normalizedB);
|
|
74
|
-
};
|
|
66
|
+
export const looseInclude = (looseSearchQuery, featureName) =>
|
|
67
|
+
// HINT: normalizeは1文字ずつ変換処理を行う関係で思いため、変換せずにマッチするかどうかを確認する
|
|
68
|
+
featureName.includes(looseSearchQuery) || normalize(featureName).includes(looseSearchQuery);
|
|
75
69
|
// アルファベットの大文字小文字は同じものとして扱う。カタカナとひらがなも同じものとして扱う。
|
|
76
|
-
const normalize = (
|
|
77
|
-
|
|
78
|
-
.replace(/[\u30a1-\u30f6]/g, (match) => String.fromCharCode(match.charCodeAt(0) - 0x60));
|
|
70
|
+
const normalize = (str) => str.toLowerCase().replace(NORMALIZE_REGEX, (c) => String.fromCharCode(c.charCodeAt(0) - 0x60));
|
|
71
|
+
const NORMALIZE_REGEX = /[\u30a1-\u30f6]/g;
|
|
79
72
|
//# sourceMappingURL=useAppLauncher.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppLauncher.js","sourceRoot":"","sources":["../../../../src/components/AppHeader/hooks/useAppLauncher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAIxD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,YAAwC,EAAE,EAAE;IACzE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAmB,UAAU,CAAC,CAAA;IAC9D,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAmB,SAAS,CAAC,CAAA;IAC7D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAuB,SAAS,CAAC,CAAA;IACzE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAA;IAClD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CACtC,YAAY,CAAC,YAAY,EAAE;QACzB,IAAI;QACJ,IAAI;QACJ,QAAQ;QACR,WAAW;KACZ,CAAC,CACH,CAAA;IAED,SAAS,CAAC,GAAG,EAAE;QACb,WAAW,CACT,YAAY,CAAC,YAAY,EAAE;YACzB,IAAI;YACJ,QAAQ;YACR,IAAI;YACJ,WAAW;SACZ,CAAC,CACH,CAAA;IACH,CAAC,EAAE,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAA;IAErD,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,OAAyB,EAAE,EAAE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AAE,EAAE,CAChC,GAAG,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAA;AAEhG,MAAM,eAAe,GAAG,kBAAkB,CAAA"}
|
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useMemo, useSyncExternalStore } from 'react';
|
|
2
2
|
export const mediaQuery = {
|
|
3
3
|
desktop: 'min-width: 752px',
|
|
4
4
|
mobile: 'max-width: 751px',
|
|
5
5
|
};
|
|
6
|
+
const NOOP = () => undefined;
|
|
7
|
+
const RETURN_FALSE = () => false;
|
|
6
8
|
export const useMediaQuery = (query) => {
|
|
7
9
|
const mediaQueryList = useMemo(() => (typeof window === 'undefined' ? null : matchMedia(`(${query})`)), [query]);
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
const syncArgs = useMemo(() => ({
|
|
11
|
+
subscribe: (callback) => {
|
|
12
|
+
if (!mediaQueryList) {
|
|
13
|
+
return NOOP;
|
|
14
|
+
}
|
|
15
|
+
mediaQueryList.addEventListener('change', callback);
|
|
16
|
+
return () => {
|
|
17
|
+
mediaQueryList.removeEventListener('change', callback);
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
getSnapshot: () => mediaQueryList?.matches ?? false,
|
|
21
|
+
}), [mediaQueryList]);
|
|
22
|
+
return useSyncExternalStore(syncArgs.subscribe, syncArgs.getSnapshot, RETURN_FALSE);
|
|
15
23
|
};
|
|
16
24
|
//# sourceMappingURL=useMediaQuery.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMediaQuery.js","sourceRoot":"","sources":["../../../../src/components/AppHeader/hooks/useMediaQuery.ts"],"names":[],"mappings":"AAAA,OAA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"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
export const buildDisplayName = ({ email, empCode, firstName, lastName, }) => {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
if (firstName && lastName) {
|
|
3
|
+
return `${lastName} ${firstName}${empCode ? `(${empCode})` : ''}`;
|
|
4
|
+
}
|
|
5
|
+
else if (empCode) {
|
|
6
|
+
return empCode;
|
|
7
|
+
}
|
|
8
|
+
else if (email) {
|
|
9
|
+
return email;
|
|
10
|
+
}
|
|
11
|
+
return '';
|
|
5
12
|
};
|
|
6
13
|
export const isChildNavigation = (navigation) => 'href' in navigation || 'elementAs' in navigation || 'onClick' in navigation;
|
|
7
14
|
export const isChildNavigationGroup = (navigation) => navigation &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/AppHeader/utils.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAC/B,KAAK,EACL,OAAO,EACP,SAAS,EACT,QAAQ,GAMT,EAAE,EAAE;IACH,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/AppHeader/utils.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAC/B,KAAK,EACL,OAAO,EACP,SAAS,EACT,QAAQ,GAMT,EAAE,EAAE;IACH,IAAI,SAAS,IAAI,QAAQ,EAAE,CAAC;QAC1B,OAAO,GAAG,QAAQ,IAAI,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAA;IACnE,CAAC;SAAM,IAAI,OAAO,EAAE,CAAC;QACnB,OAAO,OAAO,CAAA;IAChB,CAAC;SAAM,IAAI,KAAK,EAAE,CAAC;QACjB,OAAO,KAAK,CAAA;IACd,CAAC;IAED,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,UAA6C,EACd,EAAE,CACjC,MAAM,IAAI,UAAU,IAAI,WAAW,IAAI,UAAU,IAAI,SAAS,IAAI,UAAU,CAAA;AAE9E,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,UAA6C,EACT,EAAE,CACtC,UAAU;IACV,kBAAkB,IAAI,UAAU;IAChC,OAAO,IAAI,UAAU;IACrB,CAAC,CAAC,WAAW,IAAI,UAAU,CAAC,CAAA"}
|
|
@@ -8,12 +8,12 @@ type BaseProps = PropsWithChildren<{
|
|
|
8
8
|
/** 0値を表示するかどうか */
|
|
9
9
|
showZero?: boolean;
|
|
10
10
|
/** 色の種類 */
|
|
11
|
-
type?: VariantProps<typeof
|
|
11
|
+
type?: VariantProps<typeof classNameGenerator>['color'];
|
|
12
12
|
/** ドット表示するかどうか */
|
|
13
13
|
dot?: boolean;
|
|
14
14
|
}>;
|
|
15
15
|
type BadgeProps = Omit<ComponentPropsWithoutRef<'span'>, keyof BaseProps> & BaseProps;
|
|
16
|
-
declare const
|
|
16
|
+
declare const classNameGenerator: import("tailwind-variants").TVReturnType<{
|
|
17
17
|
color: {
|
|
18
18
|
grey: {};
|
|
19
19
|
blue: {};
|
|
@@ -96,5 +96,5 @@ declare const badge: import("tailwind-variants").TVReturnType<{
|
|
|
96
96
|
true: {};
|
|
97
97
|
};
|
|
98
98
|
}>, unknown, unknown, undefined>>;
|
|
99
|
-
export declare const Badge: React.
|
|
99
|
+
export declare const Badge: React.NamedExoticComponent<BadgeProps>;
|
|
100
100
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { tv } from 'tailwind-variants';
|
|
3
3
|
import { Text } from '../Text';
|
|
4
|
-
const
|
|
4
|
+
const classNameGenerator = tv({
|
|
5
5
|
slots: {
|
|
6
6
|
wrapper: 'smarthr-ui-Badge shr-relative shr-inline-flex',
|
|
7
7
|
pill: ['shr-h-[1.75em] shr-min-w-[1.75em] shr-px-[0.5em] shr-tabular-nums'],
|
|
@@ -75,21 +75,36 @@ const badge = tv({
|
|
|
75
75
|
},
|
|
76
76
|
],
|
|
77
77
|
});
|
|
78
|
-
export const Badge = ({ count,
|
|
78
|
+
export const Badge = React.memo(({ count, showZero, ...rest }) => {
|
|
79
|
+
// ドット表示の場合、数値表示は無いため、早期returnする
|
|
80
|
+
if (rest.dot) {
|
|
81
|
+
return React.createElement(ActualBadge, { ...rest });
|
|
82
|
+
}
|
|
79
83
|
const actualCount = count && count > 0 ? count : showZero ? 0 : undefined;
|
|
80
|
-
|
|
81
|
-
|
|
84
|
+
// 0値を表示するでもない場合は何も表示しない
|
|
85
|
+
if (actualCount === undefined && !rest.children) {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
return React.createElement(ActualBadge, { ...rest, count: actualCount });
|
|
89
|
+
});
|
|
90
|
+
const ActualBadge = ({ count, overflowCount, type, dot, children, className, ...rest }) => {
|
|
91
|
+
// HINT: boolean化することでmemoが有効になる可能性を高くする
|
|
92
|
+
const withChildren = !!children;
|
|
93
|
+
const classNames = useMemo(() => {
|
|
94
|
+
const { wrapper, pill, dotElement } = classNameGenerator({
|
|
95
|
+
color: type || 'blue',
|
|
96
|
+
withChildren,
|
|
97
|
+
});
|
|
82
98
|
return {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
99
|
+
wrapper: wrapper({ className }),
|
|
100
|
+
pill: pill(),
|
|
101
|
+
dot: dotElement(),
|
|
86
102
|
};
|
|
87
|
-
}, [
|
|
88
|
-
|
|
89
|
-
if (!dot && !children && actualCount === undefined)
|
|
90
|
-
return null;
|
|
91
|
-
return (React.createElement("span", { ...props, className: wrapperStyle },
|
|
103
|
+
}, [withChildren, type, className]);
|
|
104
|
+
return (React.createElement("span", { ...rest, className: classNames.wrapper },
|
|
92
105
|
children,
|
|
93
|
-
dot ? (React.createElement(
|
|
106
|
+
dot ? (React.createElement(Dot, { className: classNames.dot })) : (React.createElement(CountText, { count: count, overflowCount: overflowCount, className: classNames.pill }))));
|
|
94
107
|
};
|
|
108
|
+
const Dot = React.memo(({ className }) => React.createElement("span", { className: className }));
|
|
109
|
+
const CountText = React.memo(({ count, overflowCount = 99, className }) => count !== undefined && (React.createElement(Text, { size: "XS", className: className }, count > overflowCount ? `${overflowCount}+` : count)));
|
|
95
110
|
//# sourceMappingURL=Badge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA+C,OAAO,EAAE,MAAM,OAAO,CAAA;AACnF,OAAO,EAAgB,EAAE,EAAE,MAAM,mBAAmB,CAAA;AAEpD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAgB9B,MAAM,
|
|
1
|
+
{"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA+C,OAAO,EAAE,MAAM,OAAO,CAAA;AACnF,OAAO,EAAgB,EAAE,EAAE,MAAM,mBAAmB,CAAA;AAEpD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAgB9B,MAAM,kBAAkB,GAAG,EAAE,CAAC;IAC5B,KAAK,EAAE;QACL,OAAO,EAAE,+CAA+C;QACxD,IAAI,EAAE,CAAC,mEAAmE,CAAC;QAC3E,UAAU,EAAE,CAAC,iCAAiC,CAAC;KAChD;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,IAAI,EAAE,EAAE;YACR,IAAI,EAAE,EAAE;YACR,MAAM,EAAE,EAAE;YACV,GAAG,EAAE,EAAE;SACR;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,EAAE;SACT;KACF;IACD,aAAa,EAAE;QACb;YACE,KAAK,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC;YAC7B,SAAS,EAAE;gBACT,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SAAS,EAAE,UAAU,CAAC,GAAG,GAAI,CACnC,CAAC,CAAC,CAAC,CACF,oBAAC,SAAS,IAAC,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,CAAC,IAAI,GAAI,CACtF,CACI,CACR,CAAA;AACH,CAAC,CAAA;AAED,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAwB,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,8BAAM,SAAS,EAAE,SAAS,GAAI,CAAC,CAAA;AAEhG,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAC1B,CAAC,EAAE,KAAK,EAAE,aAAa,GAAG,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,CAC3C,KAAK,KAAK,SAAS,IAAI,CACrB,oBAAC,IAAI,IAAC,IAAI,EAAC,IAAI,EAAC,SAAS,EAAE,SAAS,IACjC,KAAK,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,aAAa,GAAG,CAAC,CAAC,CAAC,KAAK,CAC/C,CACR,CACJ,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef,
|
|
1
|
+
import React, { ComponentPropsWithoutRef, PropsWithChildren } from 'react';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
|
-
declare const
|
|
3
|
+
declare const classNameGenerator: import("tailwind-variants").TVReturnType<{
|
|
4
4
|
horizontal: {
|
|
5
5
|
center: string[];
|
|
6
6
|
right: string;
|
|
@@ -78,10 +78,92 @@ declare const balloon: import("tailwind-variants").TVReturnType<{
|
|
|
78
78
|
middle: string[];
|
|
79
79
|
};
|
|
80
80
|
}>, unknown, unknown, undefined>>;
|
|
81
|
-
type Props = PropsWithChildren<VariantProps<typeof
|
|
81
|
+
type Props = PropsWithChildren<VariantProps<typeof classNameGenerator> & {
|
|
82
82
|
/** レンダリングするタグ */
|
|
83
83
|
as?: 'div' | 'span';
|
|
84
84
|
}>;
|
|
85
85
|
type ElementProps = Omit<ComponentPropsWithoutRef<'div'>, keyof Props>;
|
|
86
|
-
export declare const Balloon:
|
|
86
|
+
export declare const Balloon: React.NamedExoticComponent<VariantProps<import("tailwind-variants").TVReturnType<{
|
|
87
|
+
horizontal: {
|
|
88
|
+
center: string[];
|
|
89
|
+
right: string;
|
|
90
|
+
left: string;
|
|
91
|
+
};
|
|
92
|
+
vertical: {
|
|
93
|
+
top: string[];
|
|
94
|
+
bottom: string[];
|
|
95
|
+
middle: string[];
|
|
96
|
+
};
|
|
97
|
+
}, undefined, string[], import("tailwind-variants/dist/config").TVConfig<{
|
|
98
|
+
horizontal: {
|
|
99
|
+
center: string[];
|
|
100
|
+
right: string;
|
|
101
|
+
left: string;
|
|
102
|
+
};
|
|
103
|
+
vertical: {
|
|
104
|
+
top: string[];
|
|
105
|
+
bottom: string[];
|
|
106
|
+
middle: string[];
|
|
107
|
+
};
|
|
108
|
+
}, {
|
|
109
|
+
horizontal: {
|
|
110
|
+
center: string[];
|
|
111
|
+
right: string;
|
|
112
|
+
left: string;
|
|
113
|
+
};
|
|
114
|
+
vertical: {
|
|
115
|
+
top: string[];
|
|
116
|
+
bottom: string[];
|
|
117
|
+
middle: string[];
|
|
118
|
+
};
|
|
119
|
+
}>, {
|
|
120
|
+
horizontal: {
|
|
121
|
+
center: string[];
|
|
122
|
+
right: string;
|
|
123
|
+
left: string;
|
|
124
|
+
};
|
|
125
|
+
vertical: {
|
|
126
|
+
top: string[];
|
|
127
|
+
bottom: string[];
|
|
128
|
+
middle: string[];
|
|
129
|
+
};
|
|
130
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
131
|
+
horizontal: {
|
|
132
|
+
center: string[];
|
|
133
|
+
right: string;
|
|
134
|
+
left: string;
|
|
135
|
+
};
|
|
136
|
+
vertical: {
|
|
137
|
+
top: string[];
|
|
138
|
+
bottom: string[];
|
|
139
|
+
middle: string[];
|
|
140
|
+
};
|
|
141
|
+
}, undefined, string[], import("tailwind-variants/dist/config").TVConfig<{
|
|
142
|
+
horizontal: {
|
|
143
|
+
center: string[];
|
|
144
|
+
right: string;
|
|
145
|
+
left: string;
|
|
146
|
+
};
|
|
147
|
+
vertical: {
|
|
148
|
+
top: string[];
|
|
149
|
+
bottom: string[];
|
|
150
|
+
middle: string[];
|
|
151
|
+
};
|
|
152
|
+
}, {
|
|
153
|
+
horizontal: {
|
|
154
|
+
center: string[];
|
|
155
|
+
right: string;
|
|
156
|
+
left: string;
|
|
157
|
+
};
|
|
158
|
+
vertical: {
|
|
159
|
+
top: string[];
|
|
160
|
+
bottom: string[];
|
|
161
|
+
middle: string[];
|
|
162
|
+
};
|
|
163
|
+
}>, unknown, unknown, undefined>>> & {
|
|
164
|
+
/** レンダリングするタグ */
|
|
165
|
+
as?: "div" | "span";
|
|
166
|
+
} & {
|
|
167
|
+
children?: React.ReactNode | undefined;
|
|
168
|
+
} & ElementProps>;
|
|
87
169
|
export {};
|
|
@@ -2,7 +2,7 @@ import React, { useMemo } from 'react';
|
|
|
2
2
|
import { tv } from 'tailwind-variants';
|
|
3
3
|
// HINT: trianble部分はRetinaディスプレイなどで途切れてしまう場合があるので
|
|
4
4
|
// 1pxほど大きめに描画してbody部分と被るようにしています。
|
|
5
|
-
const
|
|
5
|
+
const classNameGenerator = tv({
|
|
6
6
|
base: [
|
|
7
7
|
'smarthr-ui-Balloon',
|
|
8
8
|
'shr-relative',
|
|
@@ -108,8 +108,8 @@ const balloon = tv({
|
|
|
108
108
|
},
|
|
109
109
|
],
|
|
110
110
|
});
|
|
111
|
-
export const Balloon = ({ horizontal, vertical, className, as: Component = 'div', ...props }) => {
|
|
112
|
-
const
|
|
113
|
-
return React.createElement(Component, { ...props, className:
|
|
114
|
-
};
|
|
111
|
+
export const Balloon = React.memo(({ horizontal, vertical, className, as: Component = 'div', ...props }) => {
|
|
112
|
+
const actualClassName = useMemo(() => classNameGenerator({ horizontal, vertical, className }), [horizontal, vertical, className]);
|
|
113
|
+
return React.createElement(Component, { ...props, className: actualClassName });
|
|
114
|
+
});
|
|
115
115
|
//# sourceMappingURL=Balloon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Balloon.js","sourceRoot":"","sources":["../../../src/components/Balloon/Balloon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Balloon.js","sourceRoot":"","sources":["../../../src/components/Balloon/Balloon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA+C,OAAO,EAAE,MAAM,OAAO,CAAA;AACnF,OAAO,EAAgB,EAAE,EAAE,MAAM,mBAAmB,CAAA;AAEpD,iDAAiD;AACjD,kCAAkC;AAClC,MAAM,kBAAkB,GAAG,EAAE,CAAC;IAC5B,IAAI,EAAE;QACJ,oBAAoB;QACpB,cAAc;QACd,kBAAkB;QAClB,aAAa;QACb,eAAe;QACf,4EAA4E;QAC5E,6DAA6D;QAC7D,mCAAmC;QACnC,0BAA0B;QAC1B,uBAAuB;QACvB,cAAc;QACd,gBAAgB;QAChB,iBAAiB;QACjB,oBAAoB;QACpB,wBAAwB;QACxB,oBAAoB;QACpB,oCAAoC;QACpC,wCAAwC;QACxC,gCAAgC;QAChC,mCAAmC;QACnC,uCAAuC;QACvC,mCAAmC;KACpC;IACD,QAAQ,EAAE;QACR,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,qBAAqB;gBACrB,+BAA+B;gBAC/B,oBAAoB;gBACpB,8BAA8B;aAC/B;YACD,KAAK,EAAE,EAAE;YACT,IAAI,EAAE,EAAE;SACT;QACD,QAAQ,EAAE;YACR,GAAG,EAAE;gBACH,uBAAuB;gBACvB,qBAAqB;gBACrB,oBAAoB;gBACpB,oDAAoD;gBACpD,qBAAqB;gBACrB,oBAAoB;gBACpB,mBAAmB;gBACnB,mDAAmD;aACpD;YACD,MAAM,EAAE;gBACN,0BAA0B;gBAC1B,qBAAqB;gBACrB,oBAAoB;gBACpB,iDAAiD;gBACjD,wBA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C,CAClC,CAAA;IAED,OAAO,oBAAC,SAAS,OAAK,KAAK,EAAE,SAAS,EAAE,eAAe,GAAI,CAAA;AAC7D,CAAC,CACF,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ComponentPropsWithRef, PropsWithChildren } from 'react';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import type { Gap } from '../../types';
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const baseClassNameGenerator: import("tailwind-variants").TVReturnType<{
|
|
5
5
|
paddingBlock: { [key in Gap]: string; };
|
|
6
6
|
paddingInline: { [key in Gap]: string; };
|
|
7
7
|
radius: {
|
|
@@ -199,7 +199,7 @@ export declare const base: import("tailwind-variants").TVReturnType<{
|
|
|
199
199
|
};
|
|
200
200
|
}>, unknown, unknown, undefined>>;
|
|
201
201
|
type Overflow = 'visible' | 'hidden' | 'clip' | 'scroll' | 'auto';
|
|
202
|
-
type Props = PropsWithChildren<Omit<VariantProps<typeof
|
|
202
|
+
type Props = PropsWithChildren<Omit<VariantProps<typeof baseClassNameGenerator>, 'paddingBlock' | 'paddingInline' | 'overflowBlock' | 'overflowInline'> & {
|
|
203
203
|
/** 境界とコンテンツの間の余白 */
|
|
204
204
|
padding?: Gap | SeparatePadding;
|
|
205
205
|
/** コンテンツが要素内に収まらない場合の処理方法 */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React, { forwardRef, useMemo } from 'react';
|
|
3
3
|
import { tv } from 'tailwind-variants';
|
|
4
4
|
import { useSectionWrapper } from '../SectioningContent/useSectioningWrapper';
|
|
5
|
-
export const
|
|
5
|
+
export const baseClassNameGenerator = tv({
|
|
6
6
|
base: 'smarthr-ui-Base shr-bg-white forced-colors:shr-border-shorthand contrast-more:shr-border-high-contrast',
|
|
7
7
|
variants: {
|
|
8
8
|
paddingBlock: {
|
|
@@ -80,24 +80,25 @@ export const base = tv({
|
|
|
80
80
|
},
|
|
81
81
|
},
|
|
82
82
|
});
|
|
83
|
-
export const Base = forwardRef(({ padding, radius
|
|
84
|
-
const
|
|
85
|
-
const
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
overflowInline,
|
|
95
|
-
layer,
|
|
83
|
+
export const Base = forwardRef(({ padding, radius, overflow, layer, as: Component = 'div', className, ...props }, ref) => {
|
|
84
|
+
const actualClassName = useMemo(() => {
|
|
85
|
+
const actualPadding = padding instanceof Object ? padding : { block: padding, inline: padding };
|
|
86
|
+
const actualOverflow = overflow instanceof Object ? overflow : { x: overflow, y: overflow };
|
|
87
|
+
return baseClassNameGenerator({
|
|
88
|
+
paddingBlock: actualPadding.block,
|
|
89
|
+
paddingInline: actualPadding.inline,
|
|
90
|
+
radius: radius ?? 'm',
|
|
91
|
+
overflowBlock: actualOverflow.y,
|
|
92
|
+
overflowInline: actualOverflow.x,
|
|
93
|
+
layer: layer ?? 1,
|
|
96
94
|
className,
|
|
97
95
|
});
|
|
98
|
-
}, [
|
|
96
|
+
}, [layer, overflow, padding, radius, className]);
|
|
99
97
|
const Wrapper = useSectionWrapper(Component);
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
const body = React.createElement(Component, { ...props, ref: ref, className: actualClassName });
|
|
99
|
+
if (Wrapper) {
|
|
100
|
+
return React.createElement(Wrapper, null, body);
|
|
101
|
+
}
|
|
102
|
+
return body;
|
|
102
103
|
});
|
|
103
104
|
//# sourceMappingURL=Base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../src/components/Base/Base.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,KAAK,EAAE,EAA4C,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC5F,OAAO,EAAgB,EAAE,EAAE,MAAM,mBAAmB,CAAA;AAEpD,OAAO,EAAE,iBAAiB,EAAE,MAA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E,MAAM,cAAc,GAAG,QAAQ,YAAY,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAA;QAE3F,OAAO,sBAAsB,CAAC;YAC5B,YAAY,EAAE,aAAa,CAAC,KAAK;YACjC,aAAa,EAAE,aAAa,CAAC,MAAM;YACnC,MAAM,EAAE,MAAM,IAAI,GAAG;YACrB,aAAa,EAAE,cAAc,CAAC,CAAC;YAC/B,cAAc,EAAE,cAAc,CAAC,CAAC;YAChC,KAAK,EAAE,KAAK,IAAI,CAAC;YACjB,SAAS;SACV,CAAC,CAAA;IACJ,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAA;IAEjD,MAAM,OAAO,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAA;IAC5C,MAAM,IAAI,GAAG,oBAAC,SAAS,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,eAAe,GAAI,CAAA;IAE3E,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,oBAAC,OAAO,QAAE,IAAI,CAAW,CAAA;IAClC,CAAC;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CACF,CAAA"}
|
|
@@ -2,9 +2,9 @@ import React, { ComponentProps } from 'react';
|
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import { Base } from '../Base';
|
|
4
4
|
type BaseProps = Omit<ComponentProps<typeof Base>, 'radius' | 'layer'>;
|
|
5
|
-
type Props = VariantProps<typeof
|
|
5
|
+
type Props = VariantProps<typeof classNameGenerator>;
|
|
6
6
|
type ElementProps = Omit<ComponentProps<'div'>, keyof BaseProps | keyof Props>;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const classNameGenerator: import("tailwind-variants").TVReturnType<{
|
|
8
8
|
bgColor: {
|
|
9
9
|
BACKGROUND: string;
|
|
10
10
|
COLUMN: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { tv } from 'tailwind-variants';
|
|
3
3
|
import { Base } from '../Base';
|
|
4
|
-
export const
|
|
4
|
+
export const classNameGenerator = tv({
|
|
5
5
|
base: 'shr-rounded-[unset]',
|
|
6
6
|
variants: {
|
|
7
7
|
bgColor: {
|
|
@@ -25,7 +25,7 @@ export const baseColumn = tv({
|
|
|
25
25
|
},
|
|
26
26
|
});
|
|
27
27
|
export const BaseColumn = ({ bgColor, padding = 1, className, ...props }) => {
|
|
28
|
-
const
|
|
29
|
-
return React.createElement(Base, { ...props, padding: padding, layer: 0, className:
|
|
28
|
+
const actualClassName = useMemo(() => classNameGenerator({ bgColor, className }), [bgColor, className]);
|
|
29
|
+
return React.createElement(Base, { ...props, padding: padding, layer: 0, className: actualClassName });
|
|
30
30
|
};
|
|
31
31
|
//# sourceMappingURL=BaseColumn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseColumn.js","sourceRoot":"","sources":["../../../../src/components/Base/BaseColumn/BaseColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAkB,OAAO,EAAE,MAAM,OAAO,CAAA;AACtD,OAAO,EAAgB,EAAE,EAAE,MAAM,mBAAmB,CAAA;AAEpD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAM9B,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"BaseColumn.js","sourceRoot":"","sources":["../../../../src/components/Base/BaseColumn/BaseColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAkB,OAAO,EAAE,MAAM,OAAO,CAAA;AACtD,OAAO,EAAgB,EAAE,EAAE,MAAM,mBAAmB,CAAA;AAEpD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAM9B,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;IACnC,IAAI,EAAE,qBAAqB;IAC3B,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,UAAU,EAAE,mBAAmB;YAC/B,MAAM,EAAE,eAAe;YACvB,SAAS,EAAE,kBAAkB;YAC7B,eAAe,EAAE,wBAAwB;YACzC,IAAI,EAAE,aAAa;YACnB,MAAM,EAAE,gCAAgC;YACxC,iBAAiB,EAAE,0BAA0B;YAC7C,KAAK,EAAE,cAAc;YACrB,MAAM,EAAE,+BAA+B;YACvC,MAAM,EAAE,+BAA+B;YACvC,MAAM,EAAE,+BAA+B;YACvC,MAAM,EAAE,+BAA+B;YACvC,OAAO,EAAE,gCAAgC;SAC1C;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,QAAQ;KAClB;CACF,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,UAAU,GAA+C,CAAC,EACrE,OAAO,EACP,OAAO,GAAG,CAAC,EACX,SAAS,EACT,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,eAAe,GAAG,OAAO,CAC7B,GAAG,EAAE,CAAC,kBAAkB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,EAChD,CAAC,OAAO,EAAE,SAAS,CAAC,CACrB,CAAA;IAED,OAAO,oBAAC,IAAI,OAAK,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,eAAe,GAAI,CAAA;AACpF,CAAC,CAAA"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _ItemNode_instances, _ItemNode_getIndex, _ItemNode_getDepth;
|
|
7
1
|
import { NodeContext } from './NodeContext';
|
|
8
2
|
const NODE_MAX_DEPTH = 3;
|
|
9
3
|
export class ItemNode {
|
|
4
|
+
value;
|
|
5
|
+
label;
|
|
6
|
+
context;
|
|
10
7
|
constructor(value, label, children = []) {
|
|
11
|
-
_ItemNode_instances.add(this);
|
|
12
8
|
this.value = value;
|
|
13
9
|
this.label = label;
|
|
14
10
|
this.context = new NodeContext(this);
|
|
@@ -26,7 +22,7 @@ export class ItemNode {
|
|
|
26
22
|
return this.context.children.map((child) => child.node);
|
|
27
23
|
}
|
|
28
24
|
append(that) {
|
|
29
|
-
if (
|
|
25
|
+
if (this.#getDepth() >= NODE_MAX_DEPTH) {
|
|
30
26
|
throw new Error(`Cannot append to a node deeper than ${NODE_MAX_DEPTH}`);
|
|
31
27
|
}
|
|
32
28
|
this.context.append(that.context);
|
|
@@ -35,7 +31,7 @@ export class ItemNode {
|
|
|
35
31
|
if (!this.parent) {
|
|
36
32
|
return;
|
|
37
33
|
}
|
|
38
|
-
const index =
|
|
34
|
+
const index = this.#getIndex();
|
|
39
35
|
if (index === -1) {
|
|
40
36
|
return;
|
|
41
37
|
}
|
|
@@ -45,7 +41,7 @@ export class ItemNode {
|
|
|
45
41
|
if (!this.parent) {
|
|
46
42
|
return;
|
|
47
43
|
}
|
|
48
|
-
const index =
|
|
44
|
+
const index = this.#getIndex();
|
|
49
45
|
if (index === -1) {
|
|
50
46
|
return;
|
|
51
47
|
}
|
|
@@ -84,13 +80,14 @@ export class ItemNode {
|
|
|
84
80
|
}
|
|
85
81
|
return;
|
|
86
82
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
83
|
+
#getIndex() {
|
|
84
|
+
if (!this.parent) {
|
|
85
|
+
return -1;
|
|
86
|
+
}
|
|
87
|
+
return this.parent.children.indexOf(this);
|
|
91
88
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
89
|
+
#getDepth() {
|
|
90
|
+
return this.getAncestors().length + 1;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
96
93
|
//# sourceMappingURL=ItemNode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemNode.js","sourceRoot":"","sources":["../../../../src/components/Browser/models/ItemNode.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ItemNode.js","sourceRoot":"","sources":["../../../../src/components/Browser/models/ItemNode.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,cAAc,GAAG,CAAC,CAAA;AAQxB,MAAM,OAAO,QAAQ;IACV,KAAK,CAAQ;IACb,KAAK,CAAQ;IACb,OAAO,CAAiC;IAEjD,YAAY,KAAa,EAAE,KAAa,EAAE,WAAuB,EAAE;QACjE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAA;QAEpC,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE,CAAC;YAC7B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QACpB,CAAC;IACH,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,IAAkB;QAC5B,OAAO,IAAI,QAAQ,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,KAAK,EACV,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CACzE,CAAA;IACH,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAA;IAClC,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,OAAO,C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