@spaced-out/ui-design-system 0.4.13-beta.0 → 0.4.13-beta.1
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/.cspell/custom-words.txt +2 -0
- package/CHANGELOG.md +7 -0
- package/cspell.json +3 -1
- package/gulpfile.js +2 -1
- package/lib/styles/index.js +535 -275
- package/package.json +2 -2
- package/lib/components/AIPromptFlow/AIPromptFlow.stories.tsx +0 -465
- package/lib/components/Accordion/Accordion.stories.tsx +0 -165
- package/lib/components/Accordion/Accordion.tsx +0 -112
- package/lib/components/Accordion/AccordionGroup.stories.tsx +0 -215
- package/lib/components/Accordion/AccordionGroup.tsx +0 -77
- package/lib/components/Accordion/index.ts +0 -2
- package/lib/components/Avatar/Avatar.stories.tsx +0 -152
- package/lib/components/Avatar/Avatar.tsx +0 -272
- package/lib/components/Avatar/index.ts +0 -1
- package/lib/components/AvatarGroup/AvatarGroup.stories.tsx +0 -138
- package/lib/components/AvatarGroup/AvatarGroup.tsx +0 -164
- package/lib/components/AvatarGroup/index.ts +0 -1
- package/lib/components/Badge/Badge.stories.tsx +0 -131
- package/lib/components/Badge/Badge.tsx +0 -149
- package/lib/components/Badge/index.ts +0 -1
- package/lib/components/BadgedIcon/BadgedIcon.stories.tsx +0 -80
- package/lib/components/BadgedIcon/BadgedIcon.tsx +0 -76
- package/lib/components/BadgedIcon/index.ts +0 -1
- package/lib/components/Banner/Banner.stories.tsx +0 -187
- package/lib/components/Banner/Banner.tsx +0 -55
- package/lib/components/Banner/index.ts +0 -1
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.stories.tsx +0 -114
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.tsx +0 -52
- package/lib/components/Breadcrumbs/BreadcrumbLink/index.ts +0 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.tsx +0 -189
- package/lib/components/Breadcrumbs/Breadcrumbs.tsx +0 -59
- package/lib/components/Breadcrumbs/index.ts +0 -2
- package/lib/components/Button/Button.stories.tsx +0 -220
- package/lib/components/Button/Button.tsx +0 -285
- package/lib/components/Button/index.ts +0 -8
- package/lib/components/ButtonDropdown/ButtonDropdown.stories.tsx +0 -677
- package/lib/components/ButtonDropdown/ButtonDropdown.tsx +0 -221
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.stories.tsx +0 -624
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.tsx +0 -167
- package/lib/components/ButtonDropdown/index.ts +0 -2
- package/lib/components/ButtonTabs/ButtonTab/ButtonTab.stories.tsx +0 -125
- package/lib/components/ButtonTabs/ButtonTab/ButtonTab.tsx +0 -76
- package/lib/components/ButtonTabs/ButtonTab/index.ts +0 -1
- package/lib/components/ButtonTabs/ButtonTabDropdown.tsx +0 -147
- package/lib/components/ButtonTabs/ButtonTabs.stories.tsx +0 -393
- package/lib/components/ButtonTabs/ButtonTabs.tsx +0 -119
- package/lib/components/ButtonTabs/index.ts +0 -2
- package/lib/components/Card/Card.stories.tsx +0 -245
- package/lib/components/Card/Card.tsx +0 -172
- package/lib/components/Card/index.ts +0 -1
- package/lib/components/Charts/ChartTooltip/index.ts +0 -13
- package/lib/components/Charts/ChartWrapper/ChartWrapper.tsx +0 -179
- package/lib/components/Charts/ChartWrapper/index.ts +0 -1
- package/lib/components/Charts/ColumnChart/ColumnChart.stories.tsx +0 -574
- package/lib/components/Charts/ColumnChart/ColumnChart.tsx +0 -125
- package/lib/components/Charts/ColumnChart/index.ts +0 -1
- package/lib/components/Charts/DonutChart/DonutChart.stories.tsx +0 -415
- package/lib/components/Charts/DonutChart/DonutChart.tsx +0 -155
- package/lib/components/Charts/DonutChart/index.ts +0 -1
- package/lib/components/Charts/FunnelChart/FunnelChart.stories.tsx +0 -510
- package/lib/components/Charts/FunnelChart/FunnelChart.tsx +0 -110
- package/lib/components/Charts/FunnelChart/index.ts +0 -1
- package/lib/components/Charts/LineChart/LineChart.stories.tsx +0 -590
- package/lib/components/Charts/LineChart/LineChart.tsx +0 -109
- package/lib/components/Charts/LineChart/index.ts +0 -1
- package/lib/components/Charts/SpiderChart/SpiderChart.stories.tsx +0 -467
- package/lib/components/Charts/SpiderChart/SpiderChart.tsx +0 -104
- package/lib/components/Charts/SpiderChart/index.ts +0 -1
- package/lib/components/Charts/index.ts +0 -11
- package/lib/components/ChatBubble/ChatAnchor.stories.tsx +0 -95
- package/lib/components/ChatBubble/ChatBubble.stories.tsx +0 -277
- package/lib/components/ChatBubble/ChatBubble.tsx +0 -232
- package/lib/components/ChatBubble/index.ts +0 -1
- package/lib/components/Checkbox/Checkbox.stories.tsx +0 -180
- package/lib/components/Checkbox/Checkbox.tsx +0 -168
- package/lib/components/Checkbox/CheckboxGroup.stories.tsx +0 -381
- package/lib/components/Checkbox/CheckboxGroup.tsx +0 -119
- package/lib/components/Checkbox/index.ts +0 -2
- package/lib/components/Chip/Chip.stories.tsx +0 -335
- package/lib/components/Chip/Chip.tsx +0 -204
- package/lib/components/Chip/index.ts +0 -2
- package/lib/components/CircularLoader/CircularLoader.stories.tsx +0 -75
- package/lib/components/CircularLoader/CircularLoader.tsx +0 -51
- package/lib/components/CircularLoader/index.ts +0 -1
- package/lib/components/CollapsibleCard/CollapsibleCard.stories.tsx +0 -311
- package/lib/components/CollapsibleCard/CollapsibleCard.tsx +0 -135
- package/lib/components/CollapsibleCard/index.ts +0 -1
- package/lib/components/Combobox/Combobox.stories.tsx +0 -306
- package/lib/components/Combobox/Combobox.tsx +0 -297
- package/lib/components/Combobox/helper.ts +0 -201
- package/lib/components/Combobox/index.ts +0 -1
- package/lib/components/ConditionalWrapper/ConditionalWrapper.stories.tsx +0 -51
- package/lib/components/ConditionalWrapper/ConditionalWrapper.ts +0 -16
- package/lib/components/ConditionalWrapper/index.ts +0 -1
- package/lib/components/DateRangePicker/Calendar.tsx +0 -110
- package/lib/components/DateRangePicker/DateRangePicker.stories.tsx +0 -397
- package/lib/components/DateRangePicker/DateRangePicker.tsx +0 -210
- package/lib/components/DateRangePicker/DateRangeWrapper.tsx +0 -386
- package/lib/components/DateRangePicker/Day.tsx +0 -74
- package/lib/components/DateRangePicker/index.ts +0 -1
- package/lib/components/Dialog/Dialog.stories.tsx +0 -254
- package/lib/components/Dialog/Dialog.tsx +0 -222
- package/lib/components/Dialog/index.ts +0 -1
- package/lib/components/Disclaimer/Disclaimer.stories.tsx +0 -148
- package/lib/components/Disclaimer/Disclaimer.tsx +0 -35
- package/lib/components/Disclaimer/index.ts +0 -1
- package/lib/components/Dropdown/Dropdown.stories.tsx +0 -785
- package/lib/components/Dropdown/Dropdown.tsx +0 -174
- package/lib/components/Dropdown/SimpleDropdown.stories.tsx +0 -534
- package/lib/components/Dropdown/SimpleDropdown.tsx +0 -167
- package/lib/components/Dropdown/index.ts +0 -2
- package/lib/components/EmptyState/EmptyImages/CalendarEmptyImage.tsx +0 -108
- package/lib/components/EmptyState/EmptyImages/ChartEmptyImage.tsx +0 -194
- package/lib/components/EmptyState/EmptyImages/DataEmptyImage.tsx +0 -116
- package/lib/components/EmptyState/EmptyImages/FileEmptyImage.tsx +0 -133
- package/lib/components/EmptyState/EmptyImages/MessageEmptyImage.tsx +0 -64
- package/lib/components/EmptyState/EmptyImages/UploadEmptyImage.tsx +0 -67
- package/lib/components/EmptyState/EmptyImages/index.ts +0 -6
- package/lib/components/EmptyState/EmptyState.stories.tsx +0 -104
- package/lib/components/EmptyState/EmptyState.tsx +0 -83
- package/lib/components/EmptyState/index.ts +0 -1
- package/lib/components/ErrorMessage/ErrorImages/ForbiddenImage.tsx +0 -85
- package/lib/components/ErrorMessage/ErrorImages/NotFoundImage.tsx +0 -117
- package/lib/components/ErrorMessage/ErrorImages/ServerErrorImage.tsx +0 -237
- package/lib/components/ErrorMessage/ErrorImages/UnauthorizedImage.tsx +0 -73
- package/lib/components/ErrorMessage/ErrorImages/index.ts +0 -4
- package/lib/components/ErrorMessage/ErrorMessage.stories.tsx +0 -112
- package/lib/components/ErrorMessage/ErrorMessage.tsx +0 -87
- package/lib/components/ErrorMessage/index.ts +0 -1
- package/lib/components/FileUpload/FileBlock/FileBlock.stories.tsx +0 -85
- package/lib/components/FileUpload/FileBlock/FileBlock.tsx +0 -136
- package/lib/components/FileUpload/FileBlock/index.ts +0 -1
- package/lib/components/FileUpload/FileUpload.stories.tsx +0 -958
- package/lib/components/FileUpload/FileUpload.tsx +0 -206
- package/lib/components/FileUpload/index.ts +0 -2
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.stories.tsx +0 -345
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.tsx +0 -163
- package/lib/components/FilterButtonOverlay/index.ts +0 -1
- package/lib/components/FocusManager/FocusManager.stories.tsx +0 -117
- package/lib/components/FocusManager/FocusManager.tsx +0 -59
- package/lib/components/FocusManager/index.ts +0 -1
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.stories.tsx +0 -557
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.tsx +0 -156
- package/lib/components/FocusManagerWithArrowKeyNavigation/index.ts +0 -1
- package/lib/components/FormTitleWrapper/FormTitleWrapper.stories.tsx +0 -173
- package/lib/components/FormTitleWrapper/FormTitleWrapper.tsx +0 -63
- package/lib/components/FormTitleWrapper/index.ts +0 -1
- package/lib/components/Grid/Col.stories.tsx +0 -114
- package/lib/components/Grid/Grid.tsx +0 -119
- package/lib/components/Grid/GridPatterns.stories.tsx +0 -420
- package/lib/components/Grid/Row.stories.tsx +0 -135
- package/lib/components/Grid/Tablist.layout.stories.tsx +0 -281
- package/lib/components/Grid/index.ts +0 -1
- package/lib/components/Icon/ClickableIcon.tsx +0 -104
- package/lib/components/Icon/Icon.docs.ts +0 -118
- package/lib/components/Icon/Icon.stories.tsx +0 -79
- package/lib/components/Icon/Icon.tsx +0 -78
- package/lib/components/Icon/SemanticIcon.stories.tsx +0 -74
- package/lib/components/Icon/SemanticIcon.tsx +0 -49
- package/lib/components/Icon/index.ts +0 -3
- package/lib/components/InContextAlert/InContextAlert.stories.tsx +0 -164
- package/lib/components/InContextAlert/InContextAlert.tsx +0 -204
- package/lib/components/InContextAlert/index.ts +0 -1
- package/lib/components/InfinitePagination/InfinitePagination.stories.tsx +0 -323
- package/lib/components/InfinitePagination/InfinitePagination.tsx +0 -121
- package/lib/components/InfinitePagination/index.ts +0 -1
- package/lib/components/InlineDropdown/InlineDropdown.stories.tsx +0 -415
- package/lib/components/InlineDropdown/InlineDropdown.tsx +0 -175
- package/lib/components/InlineDropdown/SimpleInlineDropdown.stories.tsx +0 -513
- package/lib/components/InlineDropdown/SimpleInlineDropdown.tsx +0 -165
- package/lib/components/InlineDropdown/index.ts +0 -2
- package/lib/components/Input/Input.stories.tsx +0 -590
- package/lib/components/Input/Input.tsx +0 -336
- package/lib/components/Input/NativeColorpicker.stories.tsx +0 -337
- package/lib/components/Input/NativeDatepicker.stories.tsx +0 -424
- package/lib/components/Input/index.ts +0 -1
- package/lib/components/KPIBox/KPIBox.stories.tsx +0 -321
- package/lib/components/KPIBox/KPIBox.tsx +0 -94
- package/lib/components/KPIBox/index.ts +0 -1
- package/lib/components/LinearLoader/LinearLoader.stories.tsx +0 -132
- package/lib/components/LinearLoader/LinearLoader.tsx +0 -48
- package/lib/components/LinearLoader/index.ts +0 -1
- package/lib/components/Link/Link.stories.tsx +0 -302
- package/lib/components/Link/Link.tsx +0 -231
- package/lib/components/Link/index.ts +0 -1
- package/lib/components/Menu/Menu.stories.tsx +0 -1046
- package/lib/components/Menu/Menu.tsx +0 -391
- package/lib/components/Menu/MenuOptionButton.tsx +0 -206
- package/lib/components/Menu/index.ts +0 -2
- package/lib/components/Modal/Modal.stories.tsx +0 -430
- package/lib/components/Modal/Modal.tsx +0 -379
- package/lib/components/Modal/index.ts +0 -8
- package/lib/components/Notification/Notification.stories.tsx +0 -132
- package/lib/components/Notification/Notification.tsx +0 -140
- package/lib/components/Notification/index.ts +0 -1
- package/lib/components/OptionButton/OptionButton.stories.tsx +0 -397
- package/lib/components/OptionButton/OptionButton.tsx +0 -149
- package/lib/components/OptionButton/SimpleOptionButton.stories.tsx +0 -525
- package/lib/components/OptionButton/SimpleOptionButton.tsx +0 -160
- package/lib/components/OptionButton/index.ts +0 -2
- package/lib/components/PageTitle/PageTitle.stories.tsx +0 -257
- package/lib/components/PageTitle/PageTitle.tsx +0 -276
- package/lib/components/PageTitle/index.ts +0 -1
- package/lib/components/Pagination/Pagination.stories.tsx +0 -259
- package/lib/components/Pagination/Pagination.tsx +0 -147
- package/lib/components/Pagination/PaginationItem.tsx +0 -118
- package/lib/components/Pagination/index.ts +0 -1
- package/lib/components/Panel/Panel.stories.tsx +0 -452
- package/lib/components/Panel/Panel.tsx +0 -181
- package/lib/components/Panel/index.ts +0 -2
- package/lib/components/ProgressDonut/ProgressDonut.stories.tsx +0 -97
- package/lib/components/ProgressDonut/ProgressDonut.tsx +0 -111
- package/lib/components/ProgressDonut/index.ts +0 -1
- package/lib/components/PromptChip/PromptChip.stories.tsx +0 -202
- package/lib/components/PromptChip/PromptChip.tsx +0 -166
- package/lib/components/PromptChip/index.ts +0 -1
- package/lib/components/PromptInput/PromptInput.stories.tsx +0 -349
- package/lib/components/PromptInput/PromptInput.tsx +0 -190
- package/lib/components/PromptInput/index.ts +0 -1
- package/lib/components/RadioButton/RadioButton.stories.tsx +0 -157
- package/lib/components/RadioButton/RadioButton.tsx +0 -135
- package/lib/components/RadioButton/RadioGroup.stories.tsx +0 -283
- package/lib/components/RadioButton/RadioGroup.tsx +0 -90
- package/lib/components/RadioButton/index.ts +0 -2
- package/lib/components/RadioTile/RadioTile.stories.tsx +0 -276
- package/lib/components/RadioTile/RadioTile.tsx +0 -107
- package/lib/components/RadioTile/index.ts +0 -1
- package/lib/components/RangeSlider/RangeSlider.stories.tsx +0 -342
- package/lib/components/RangeSlider/RangeSlider.tsx +0 -201
- package/lib/components/RangeSlider/index.ts +0 -1
- package/lib/components/Rating/Rating.stories.tsx +0 -257
- package/lib/components/Rating/Rating.tsx +0 -141
- package/lib/components/Rating/index.ts +0 -1
- package/lib/components/ScoreBar/ScoreBar.stories.tsx +0 -182
- package/lib/components/ScoreBar/ScoreBar.tsx +0 -133
- package/lib/components/ScoreBar/index.ts +0 -1
- package/lib/components/SearchInput/SearchInput.stories.tsx +0 -260
- package/lib/components/SearchInput/SearchInput.tsx +0 -81
- package/lib/components/SearchInput/index.ts +0 -2
- package/lib/components/Separator/Separator.stories.tsx +0 -95
- package/lib/components/Separator/Separator.tsx +0 -57
- package/lib/components/Separator/index.ts +0 -1
- package/lib/components/Shimmer/Shimmer.stories.tsx +0 -317
- package/lib/components/Shimmer/Shimmer.tsx +0 -143
- package/lib/components/Shimmer/index.ts +0 -1
- package/lib/components/SideMenuLink/SideMenuLink.stories.tsx +0 -153
- package/lib/components/SideMenuLink/SideMenuLink.tsx +0 -344
- package/lib/components/SideMenuLink/index.ts +0 -1
- package/lib/components/StatusIndicator/StatusIndicator.stories.tsx +0 -130
- package/lib/components/StatusIndicator/StatusIndicator.tsx +0 -62
- package/lib/components/StatusIndicator/index.ts +0 -1
- package/lib/components/Stepper/Step/Step.stories.tsx +0 -117
- package/lib/components/Stepper/Step/Step.tsx +0 -125
- package/lib/components/Stepper/Step/StepContent.tsx +0 -40
- package/lib/components/Stepper/Step/StepLabel.tsx +0 -40
- package/lib/components/Stepper/Step/index.ts +0 -3
- package/lib/components/Stepper/Stepper.stories.tsx +0 -422
- package/lib/components/Stepper/Stepper.tsx +0 -68
- package/lib/components/Stepper/index.ts +0 -2
- package/lib/components/StickyBar/StickyBar.stories.tsx +0 -152
- package/lib/components/StickyBar/StickyBar.tsx +0 -65
- package/lib/components/StickyBar/index.ts +0 -1
- package/lib/components/SubMenu/SubMenu.stories.tsx +0 -413
- package/lib/components/SubMenu/SubMenu.tsx +0 -96
- package/lib/components/SubMenu/SubMenuGroup.tsx +0 -161
- package/lib/components/SubMenu/SubMenuItem.tsx +0 -170
- package/lib/components/SubMenu/SubMenuLink.tsx +0 -87
- package/lib/components/SubMenu/index.ts +0 -4
- package/lib/components/Table/BasicTable.stories.tsx +0 -647
- package/lib/components/Table/BulkActions.stories.tsx +0 -267
- package/lib/components/Table/Cell.tsx +0 -125
- package/lib/components/Table/DefaultRow.tsx +0 -159
- package/lib/components/Table/DefaultTableHeader.tsx +0 -244
- package/lib/components/Table/InlineEdit.stories.tsx +0 -390
- package/lib/components/Table/StaticTable.tsx +0 -230
- package/lib/components/Table/Table.docs.ts +0 -495
- package/lib/components/Table/Table.tsx +0 -135
- package/lib/components/Table/TableActionBar.tsx +0 -55
- package/lib/components/Table/TableBottomBar.tsx +0 -25
- package/lib/components/Table/TableTopBar.tsx +0 -25
- package/lib/components/Table/dummyTableData.ts +0 -2189
- package/lib/components/Table/hooks.ts +0 -102
- package/lib/components/Table/index.ts +0 -8
- package/lib/components/Tabs/Tab/Tab.stories.tsx +0 -151
- package/lib/components/Tabs/Tab/Tab.tsx +0 -152
- package/lib/components/Tabs/Tab/index.ts +0 -1
- package/lib/components/Tabs/TabList/TabDropdown.tsx +0 -125
- package/lib/components/Tabs/TabList/TabList.stories.tsx +0 -172
- package/lib/components/Tabs/TabList/TabList.tsx +0 -178
- package/lib/components/Tabs/TabList/index.ts +0 -1
- package/lib/components/Tabs/index.ts +0 -2
- package/lib/components/Text/HighlightedText.stories.tsx +0 -122
- package/lib/components/Text/Text.stories.tsx +0 -302
- package/lib/components/Text/Text.tsx +0 -882
- package/lib/components/Text/index.ts +0 -30
- package/lib/components/TextTile/TextTile.stories.tsx +0 -89
- package/lib/components/TextTile/TextTile.tsx +0 -51
- package/lib/components/TextTile/index.ts +0 -1
- package/lib/components/Textarea/Textarea.stories.tsx +0 -324
- package/lib/components/Textarea/Textarea.tsx +0 -148
- package/lib/components/Textarea/index.ts +0 -2
- package/lib/components/Timeline/Timeline.stories.tsx +0 -272
- package/lib/components/Timeline/Timeline.tsx +0 -57
- package/lib/components/Timeline/TimelineItem/TimelineItem.stories.tsx +0 -216
- package/lib/components/Timeline/TimelineItem/TimelineItem.tsx +0 -128
- package/lib/components/Timeline/TimelineItem/index.ts +0 -1
- package/lib/components/Timeline/index.ts +0 -2
- package/lib/components/Toast/Toast.stories.tsx +0 -274
- package/lib/components/Toast/Toast.tsx +0 -264
- package/lib/components/Toast/ToastContainer.tsx +0 -123
- package/lib/components/Toast/ToastManager.ts +0 -60
- package/lib/components/Toast/index.ts +0 -10
- package/lib/components/Toggle/Toggle.stories.tsx +0 -175
- package/lib/components/Toggle/Toggle.tsx +0 -121
- package/lib/components/Toggle/index.ts +0 -1
- package/lib/components/TokenListInput/TokenListInput.stories.tsx +0 -678
- package/lib/components/TokenListInput/TokenListInput.tsx +0 -393
- package/lib/components/TokenListInput/TokenValueChips.tsx +0 -69
- package/lib/components/TokenListInput/index.ts +0 -1
- package/lib/components/Tooltip/Tooltip.stories.tsx +0 -316
- package/lib/components/Tooltip/Tooltip.tsx +0 -188
- package/lib/components/Tooltip/index.ts +0 -1
- package/lib/components/Truncate/Truncate.stories.tsx +0 -106
- package/lib/components/Truncate/Truncate.tsx +0 -80
- package/lib/components/Truncate/index.ts +0 -2
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.stories.tsx +0 -147
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.tsx +0 -109
- package/lib/components/TruncatedTextWithTooltip/index.ts +0 -1
- package/lib/components/Typeahead/SimpleTypeahead.stories.tsx +0 -567
- package/lib/components/Typeahead/SimpleTypeahead.tsx +0 -159
- package/lib/components/Typeahead/Typeahead.stories.tsx +0 -552
- package/lib/components/Typeahead/Typeahead.tsx +0 -243
- package/lib/components/Typeahead/index.ts +0 -2
- package/lib/components/WeekdayPicker/WeekdayPicker.stories.tsx +0 -263
- package/lib/components/WeekdayPicker/WeekdayPicker.tsx +0 -224
- package/lib/components/WeekdayPicker/index.ts +0 -1
- package/lib/components/index.ts +0 -77
- package/lib/hooks/index.ts +0 -16
- package/lib/hooks/useArbitraryOptionAddition/index.ts +0 -1
- package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.stories.tsx +0 -158
- package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.ts +0 -127
- package/lib/hooks/useCopyToClipboard/index.ts +0 -1
- package/lib/hooks/useCopyToClipboard/useCopyToClipboard.stories.tsx +0 -112
- package/lib/hooks/useCopyToClipboard/useCopyToClipboard.ts +0 -29
- package/lib/hooks/useDebounce/index.ts +0 -1
- package/lib/hooks/useDebounce/useDebounce.stories.tsx +0 -82
- package/lib/hooks/useDebounce/useDebounce.ts +0 -15
- package/lib/hooks/useFileUpload/index.ts +0 -1
- package/lib/hooks/useFileUpload/useFileUpload.stories.tsx +0 -468
- package/lib/hooks/useFileUpload/useFileUpload.ts +0 -326
- package/lib/hooks/useFilteredOptions/index.ts +0 -1
- package/lib/hooks/useFilteredOptions/useFilteredOptions.stories.tsx +0 -142
- package/lib/hooks/useFilteredOptions/useFilteredOptions.ts +0 -92
- package/lib/hooks/useInfiniteScroll/index.ts +0 -1
- package/lib/hooks/useInfiniteScroll/useInfiniteScroll.ts +0 -85
- package/lib/hooks/useInputState/index.ts +0 -1
- package/lib/hooks/useInputState/useInputState.stories.tsx +0 -62
- package/lib/hooks/useInputState/useInputState.ts +0 -24
- package/lib/hooks/useLockedBody/index.ts +0 -1
- package/lib/hooks/useLockedBody/useLockedBody.stories.tsx +0 -71
- package/lib/hooks/useLockedBody/useLockedBody.ts +0 -53
- package/lib/hooks/useModal/index.ts +0 -1
- package/lib/hooks/useModal/useModal.stories.tsx +0 -134
- package/lib/hooks/useModal/useModal.ts +0 -36
- package/lib/hooks/useMountTransition/index.ts +0 -25
- package/lib/hooks/useMountTransition/useMountTransition.stories.tsx +0 -64
- package/lib/hooks/usePagination/index.ts +0 -1
- package/lib/hooks/usePagination/usePagination.stories.tsx +0 -72
- package/lib/hooks/usePagination/usePagination.ts +0 -151
- package/lib/hooks/useReferenceElementWidth/index.ts +0 -1
- package/lib/hooks/useReferenceElementWidth/useReferenceElementWidth.ts +0 -19
- package/lib/hooks/useResizeObserver/index.ts +0 -1
- package/lib/hooks/useResizeObserver/useResizeObserver.ts +0 -29
- package/lib/hooks/useToastPortal/index.ts +0 -1
- package/lib/hooks/useToastPortal/useToastPortal.ts +0 -34
- package/lib/hooks/useToggle/index.ts +0 -1
- package/lib/hooks/useToggle/useToggle.stories.tsx +0 -70
- package/lib/hooks/useToggle/useToggle.ts +0 -13
- package/lib/hooks/useWindowSize/index.ts +0 -1
- package/lib/hooks/useWindowSize/useWindowSize.stories.tsx +0 -62
- package/lib/hooks/useWindowSize/useWindowSize.ts +0 -39
- package/lib/index.ts +0 -6
- package/lib/styles/index.ts +0 -533
- package/lib/styles/variables/_border.ts +0 -23
- package/lib/styles/variables/_color.ts +0 -207
- package/lib/styles/variables/_elevation.ts +0 -13
- package/lib/styles/variables/_font.ts +0 -59
- package/lib/styles/variables/_motion.ts +0 -11
- package/lib/styles/variables/_opacity.ts +0 -29
- package/lib/styles/variables/_shadow.ts +0 -47
- package/lib/styles/variables/_size.ts +0 -113
- package/lib/styles/variables/_space.ts +0 -23
- package/lib/types/charts.ts +0 -247
- package/lib/types/common.ts +0 -11
- package/lib/types/cssvariables.d.ts +0 -8
- package/lib/types/date-range-picker.ts +0 -20
- package/lib/types/flow-to-typescript-codemod.d.ts +0 -48
- package/lib/types/global.d.ts +0 -84
- package/lib/types/index.ts +0 -6
- package/lib/types/menu.ts +0 -13
- package/lib/types/toast.ts +0 -34
- package/lib/types/typography.ts +0 -17
- package/lib/utils/array/are-arrays-equal.ts +0 -12
- package/lib/utils/array/index.ts +0 -1
- package/lib/utils/charts/charts.ts +0 -110
- package/lib/utils/charts/columnChart.ts +0 -62
- package/lib/utils/charts/donutChart.ts +0 -123
- package/lib/utils/charts/funnelChart.ts +0 -97
- package/lib/utils/charts/helpers.ts +0 -65
- package/lib/utils/charts/index.ts +0 -7
- package/lib/utils/charts/lineChart.ts +0 -51
- package/lib/utils/charts/spiderChart.ts +0 -57
- package/lib/utils/charts/typography.ts +0 -52
- package/lib/utils/classify/classify.stories.tsx +0 -65
- package/lib/utils/classify/index.ts +0 -27
- package/lib/utils/click-away/ClickAway.stories.tsx +0 -248
- package/lib/utils/click-away/click-away.ts +0 -230
- package/lib/utils/click-away/index.ts +0 -1
- package/lib/utils/date-range-picker/date-range-picker.ts +0 -430
- package/lib/utils/date-range-picker/index.ts +0 -2
- package/lib/utils/date-range-picker/timezones.ts +0 -263
- package/lib/utils/dom/dom.stories.tsx +0 -59
- package/lib/utils/dom/dom.ts +0 -247
- package/lib/utils/dom/index.ts +0 -1
- package/lib/utils/helpers/helpers.stories.tsx +0 -124
- package/lib/utils/helpers/helpers.ts +0 -51
- package/lib/utils/helpers/index.ts +0 -1
- package/lib/utils/index.ts +0 -14
- package/lib/utils/makeClassNameComponent/index.ts +0 -1
- package/lib/utils/makeClassNameComponent/makeClassNameComponent.stories.tsx +0 -46
- package/lib/utils/makeClassNameComponent/makeClassNameComponent.tsx +0 -60
- package/lib/utils/menu/index.ts +0 -1
- package/lib/utils/menu/menu.ts +0 -174
- package/lib/utils/merge-refs/index.ts +0 -1
- package/lib/utils/merge-refs/merge-refs.stories.tsx +0 -92
- package/lib/utils/merge-refs/merge-refs.ts +0 -16
- package/lib/utils/rating/index.ts +0 -1
- package/lib/utils/rating/rating.ts +0 -30
- package/lib/utils/score-bar/index.ts +0 -1
- package/lib/utils/score-bar/score-bar.ts +0 -45
- package/lib/utils/string/index.ts +0 -1
- package/lib/utils/string/string.stories.tsx +0 -71
- package/lib/utils/string/string.ts +0 -26
- package/lib/utils/token-list-input/token-list-input.ts +0 -32
- package/lib/utils/tokens/index.ts +0 -1
- package/lib/utils/tokens/tokens.ts +0 -237
package/lib/types/charts.ts
DELETED
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
export type ChartOptions = {
|
|
2
|
-
chart?: {
|
|
3
|
-
polar?: boolean;
|
|
4
|
-
type?: string;
|
|
5
|
-
// @ts-ignore - TS2300 - Duplicate identifier 'spacing'.
|
|
6
|
-
spacing?: Array<number>;
|
|
7
|
-
margin?: Array<number>;
|
|
8
|
-
style?: CSSObject;
|
|
9
|
-
// @ts-ignore - TS2300 - Duplicate identifier 'spacing'. | TS2717 - Subsequent property declarations must have the same type. Property 'spacing' must be of type 'number[] | undefined', but here has type '[number, number, number, number] | undefined'.
|
|
10
|
-
spacing?: [number, number, number, number];
|
|
11
|
-
spacingBottom?: number;
|
|
12
|
-
spacingLeft?: number;
|
|
13
|
-
spacingRight?: number;
|
|
14
|
-
spacingTop?: number;
|
|
15
|
-
};
|
|
16
|
-
title?: {
|
|
17
|
-
align?: string;
|
|
18
|
-
floating?: boolean;
|
|
19
|
-
margin?: number;
|
|
20
|
-
style?: {
|
|
21
|
-
color?: string;
|
|
22
|
-
fontWeight?: string;
|
|
23
|
-
};
|
|
24
|
-
text?: string | null;
|
|
25
|
-
useHTML?: boolean;
|
|
26
|
-
verticalAlign?: 'top' | 'middle' | 'bottom';
|
|
27
|
-
widthAdjust?: number;
|
|
28
|
-
x?: number;
|
|
29
|
-
y?: number;
|
|
30
|
-
};
|
|
31
|
-
exporting?: {
|
|
32
|
-
allowHTML?: boolean;
|
|
33
|
-
allowTableSorting?: boolean;
|
|
34
|
-
buttons?: {
|
|
35
|
-
contextButton?: {
|
|
36
|
-
enabled?: boolean;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
enabled?: boolean;
|
|
40
|
-
filename?: string;
|
|
41
|
-
showExportInProgress?: boolean;
|
|
42
|
-
showTable?: boolean;
|
|
43
|
-
sourceHeight?: number;
|
|
44
|
-
sourceWidth?: number;
|
|
45
|
-
useRowspanHeaders?: boolean;
|
|
46
|
-
width?: number;
|
|
47
|
-
};
|
|
48
|
-
credits?: Credits;
|
|
49
|
-
tooltip?: Tooltip;
|
|
50
|
-
xAxis?: AxisOptions;
|
|
51
|
-
yAxis?: AxisOptions;
|
|
52
|
-
zAxis?: AxisOptions;
|
|
53
|
-
drilldown?: Drilldown;
|
|
54
|
-
// @ts-ignore - TS2300 - Duplicate identifier 'legend'.
|
|
55
|
-
legend?: LegendOptionsType;
|
|
56
|
-
plotOptions?: PlotOptionsType;
|
|
57
|
-
series?: Array<SeriesOptionsType>;
|
|
58
|
-
subtitle?: {
|
|
59
|
-
useHTML: boolean;
|
|
60
|
-
text?: string;
|
|
61
|
-
verticalAlign?: 'middle';
|
|
62
|
-
align?: string;
|
|
63
|
-
style?: CSSObject;
|
|
64
|
-
x?: number;
|
|
65
|
-
};
|
|
66
|
-
pane?: {
|
|
67
|
-
center?: [string, string];
|
|
68
|
-
size?: string;
|
|
69
|
-
};
|
|
70
|
-
// @ts-ignore - TS2300 - Duplicate identifier 'legend'. | TS2717 - Subsequent property declarations must have the same type. Property 'legend' must be of type 'LegendOptionsType | undefined', but here has type 'Legend | undefined'.
|
|
71
|
-
legend?: Legend;
|
|
72
|
-
navigation?: Navigation;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export type AxisOptions = {
|
|
76
|
-
categories?: Array<string>;
|
|
77
|
-
gridLineInterpolation?: 'circle' | 'polygon';
|
|
78
|
-
lineWidth?: number;
|
|
79
|
-
tickmarkPlacement?: string;
|
|
80
|
-
labels?: {
|
|
81
|
-
align?: string;
|
|
82
|
-
distance?: number;
|
|
83
|
-
style?: CSSObject;
|
|
84
|
-
};
|
|
85
|
-
title?: {
|
|
86
|
-
text?: string;
|
|
87
|
-
margin?: number;
|
|
88
|
-
style?: CSSObject;
|
|
89
|
-
};
|
|
90
|
-
type?: string;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
export type BreadcrumbsOptions = {
|
|
94
|
-
floating?: boolean;
|
|
95
|
-
style?: CSSObject;
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
export type LegendOptionsType = {
|
|
99
|
-
layout?: string;
|
|
100
|
-
align?: string;
|
|
101
|
-
verticalAlign?: string;
|
|
102
|
-
itemMarginBottom?: number;
|
|
103
|
-
padding?: number;
|
|
104
|
-
itemStyle?: CSSObject;
|
|
105
|
-
enabled?: boolean;
|
|
106
|
-
symbolHeight?: number;
|
|
107
|
-
symbolWidth?: number;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
export type CSSObject = {
|
|
111
|
-
alignItems?: string;
|
|
112
|
-
color?: string;
|
|
113
|
-
display?: string;
|
|
114
|
-
fontFamily?: string;
|
|
115
|
-
fontSize?: string;
|
|
116
|
-
fontStyle?: string;
|
|
117
|
-
fontWeight?: string;
|
|
118
|
-
letterSpacing?: string;
|
|
119
|
-
lineHeight?: string;
|
|
120
|
-
margin?: number;
|
|
121
|
-
textAlign?: string;
|
|
122
|
-
minWidth?: string;
|
|
123
|
-
maxWidth?: string;
|
|
124
|
-
minHeight?: string;
|
|
125
|
-
maxHeight?: string;
|
|
126
|
-
alignContent?: string;
|
|
127
|
-
overflow?: string;
|
|
128
|
-
textOverflow?: string;
|
|
129
|
-
zIndex?: number;
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
export type DataOptionsType = {
|
|
133
|
-
y?: number;
|
|
134
|
-
name?: string;
|
|
135
|
-
color?: string;
|
|
136
|
-
drilldown?: string;
|
|
137
|
-
id?: string;
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
export type SeriesOptionsType = {
|
|
141
|
-
id?: string;
|
|
142
|
-
name?: string;
|
|
143
|
-
data: Array<DataOptionsType>;
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
export type Drilldown = {
|
|
147
|
-
activeAxisLabelStyle?: CSSObject;
|
|
148
|
-
activeDataLabelStyle?: CSSObject;
|
|
149
|
-
series?: Array<SeriesOptionsType>;
|
|
150
|
-
breadcrumbs?: BreadcrumbsOptions;
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
export type PlotOptionsType = Partial<Record<'pie' | 'line' | 'funnel', {
|
|
154
|
-
innerSize?: string;
|
|
155
|
-
allowPointSelect?: boolean;
|
|
156
|
-
cursor?: 'pointer';
|
|
157
|
-
dataLabels?: {
|
|
158
|
-
enabled?: boolean;
|
|
159
|
-
distance?: number;
|
|
160
|
-
connectorColor?: string;
|
|
161
|
-
useHTML?: boolean;
|
|
162
|
-
format?: string;
|
|
163
|
-
style?: CSSObject;
|
|
164
|
-
};
|
|
165
|
-
showInLegend?: boolean;
|
|
166
|
-
center?: [string, string];
|
|
167
|
-
size?: string;
|
|
168
|
-
// @ts-ignore - TS2300 - Duplicate identifier 'minSize'.
|
|
169
|
-
minSize?: number | string;
|
|
170
|
-
borderWidth?: number;
|
|
171
|
-
borderRadius?: number;
|
|
172
|
-
neckWidth?: string | number;
|
|
173
|
-
neckHeight?: string | number;
|
|
174
|
-
// @ts-ignore - TS2300 - Duplicate identifier 'minSize'.
|
|
175
|
-
minSize?: string | number;
|
|
176
|
-
width?: string | number;
|
|
177
|
-
}>>;
|
|
178
|
-
|
|
179
|
-
export type Tooltip = {
|
|
180
|
-
useHTML?: boolean;
|
|
181
|
-
followPointer?: boolean;
|
|
182
|
-
backgroundColor?: string;
|
|
183
|
-
style?: CSSObject;
|
|
184
|
-
outside?: boolean;
|
|
185
|
-
headerFormat?: string;
|
|
186
|
-
pointFormat?: string;
|
|
187
|
-
shared?: boolean;
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
export type Legend = {
|
|
191
|
-
align?: 'left' | 'center' | 'right';
|
|
192
|
-
alignColumns?: boolean;
|
|
193
|
-
backgroundColor?: string;
|
|
194
|
-
borderColor?: string;
|
|
195
|
-
borderRadius?: number;
|
|
196
|
-
borderWidth?: number;
|
|
197
|
-
className?: string;
|
|
198
|
-
enabled?: boolean;
|
|
199
|
-
floating?: boolean;
|
|
200
|
-
itemDistance?: number;
|
|
201
|
-
// @ts-ignore - TS2300 - Duplicate identifier 'itemMarginBottom'.
|
|
202
|
-
itemMarginBottom?: number;
|
|
203
|
-
// @ts-ignore - TS2300 - Duplicate identifier 'itemMarginBottom'.
|
|
204
|
-
itemMarginBottom?: number;
|
|
205
|
-
// @ts-ignore - TS2300 - Duplicate identifier 'itemMarginBottom'.
|
|
206
|
-
itemMarginBottom?: number;
|
|
207
|
-
labelFormat?: string;
|
|
208
|
-
layout?: 'horizontal' | 'vertical' | 'proximate';
|
|
209
|
-
margin?: number;
|
|
210
|
-
maxHeight?: number;
|
|
211
|
-
padding?: number;
|
|
212
|
-
reversed?: boolean;
|
|
213
|
-
x?: number;
|
|
214
|
-
y?: number;
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
export type Credits = {
|
|
218
|
-
enabled?: boolean;
|
|
219
|
-
href?: string;
|
|
220
|
-
position?: {
|
|
221
|
-
align?: 'right' | 'left';
|
|
222
|
-
verticalAlign?: 'bottom' | 'top';
|
|
223
|
-
x?: number;
|
|
224
|
-
y?: number;
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
export type Navigation = {
|
|
229
|
-
breadcrumbs?: Breadcrumbs;
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
export type Breadcrumbs = {
|
|
233
|
-
position?: Position;
|
|
234
|
-
style?: CSSObject;
|
|
235
|
-
buttonTheme?: ButtonTheme;
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
export type ButtonTheme = {
|
|
239
|
-
style?: CSSObject;
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
export type Position = {
|
|
243
|
-
align?: string;
|
|
244
|
-
verticalAlign?: string;
|
|
245
|
-
x?: number;
|
|
246
|
-
y?: number;
|
|
247
|
-
};
|
package/lib/types/common.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type GroupAlign = 'vertical' | 'horizontal-fixed' | 'horizontal-fluid';
|
|
2
|
-
|
|
3
|
-
export const ALERT_SEMANTIC = Object.freeze({
|
|
4
|
-
neutral: 'neutral',
|
|
5
|
-
success: 'success',
|
|
6
|
-
information: 'information',
|
|
7
|
-
warning: 'warning',
|
|
8
|
-
danger: 'danger',
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
export type AlertSemanticType = typeof ALERT_SEMANTIC[keyof typeof ALERT_SEMANTIC];
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export type TimeUnit = 'years' | 'months' | 'days' | 'd' | 'M' | 'y';
|
|
2
|
-
export type DateRange = {
|
|
3
|
-
startDate?: string | null | undefined;
|
|
4
|
-
endDate?: string | null | undefined;
|
|
5
|
-
};
|
|
6
|
-
export type DateRangePickerErrorTypes = {
|
|
7
|
-
[key: string]: {
|
|
8
|
-
type: string;
|
|
9
|
-
description: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export type DateRangePickerError = {
|
|
13
|
-
type: string;
|
|
14
|
-
description: string;
|
|
15
|
-
};
|
|
16
|
-
export type DateRangeWithTimezone = ((DateRange) & {
|
|
17
|
-
startDateUTC?: string | null | undefined;
|
|
18
|
-
endDateUTC?: string | null | undefined;
|
|
19
|
-
timezone?: string;
|
|
20
|
-
});
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
declare module 'flow-to-typescript-codemod' {
|
|
2
|
-
export declare namespace Flow {
|
|
3
|
-
// Abstract Component utility type
|
|
4
|
-
// https://flow.org/en/docs/react/types/#toc-react-abstractcomponent
|
|
5
|
-
type AbstractComponent<Config, Instance = any> = React.ComponentType<
|
|
6
|
-
React.PropsWithoutRef<Config> & React.RefAttributes<Instance>
|
|
7
|
-
>;
|
|
8
|
-
|
|
9
|
-
// Class utility type
|
|
10
|
-
// https://flow.org/en/docs/types/utilities/#toc-class
|
|
11
|
-
// https://github.com/piotrwitek/utility-types/blob/df2502ef504c4ba8bd9de81a45baef112b7921d0/src/utility-types.ts#L158
|
|
12
|
-
type Class<T> = new (...args: any[]) => T;
|
|
13
|
-
|
|
14
|
-
// $Diff utility type
|
|
15
|
-
// https://flow.org/en/docs/types/utilities/#toc-diff
|
|
16
|
-
// https://github.com/piotrwitek/utility-types/blob/df2502ef504c4ba8bd9de81a45baef112b7921d0/src/utility-types.ts#L50
|
|
17
|
-
type Diff<T extends U, U extends object> = Pick<
|
|
18
|
-
T,
|
|
19
|
-
SetComplement<keyof T, keyof U>
|
|
20
|
-
>;
|
|
21
|
-
|
|
22
|
-
type ComponentProps<T> = T extends
|
|
23
|
-
| React.ComponentType<infer P>
|
|
24
|
-
| React.Component<infer P>
|
|
25
|
-
? React.ComponentProps<T>
|
|
26
|
-
: HasComponentProps<T>;
|
|
27
|
-
|
|
28
|
-
type ObjMap<
|
|
29
|
-
O extends Record<string, any>,
|
|
30
|
-
F extends (...args: any[]) => any
|
|
31
|
-
> = { [P in keyof O]: ReturnType<F> };
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// Helper types
|
|
35
|
-
type SetComplement<A, B extends A> = A extends B ? never : A;
|
|
36
|
-
|
|
37
|
-
type DefaultProps<T> = T extends { defaultProps: infer D } ? D : {};
|
|
38
|
-
|
|
39
|
-
type OmitDefaultProps<T, D> = Omit<T, keyof D> &
|
|
40
|
-
Partial<Pick<T, Extract<keyof T, keyof D>>> &
|
|
41
|
-
Partial<Pick<D, Extract<keyof D, keyof T>>>;
|
|
42
|
-
|
|
43
|
-
type HasComponentProps<T, D extends unknown = DefaultProps<T>> = T extends (
|
|
44
|
-
prop: infer P
|
|
45
|
-
) => React.ReactElement
|
|
46
|
-
? OmitDefaultProps<P, D>
|
|
47
|
-
: never;
|
|
48
|
-
}
|
package/lib/types/global.d.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
// TypeScript declarations to replace Flow stubs
|
|
2
|
-
|
|
3
|
-
// CSS Modules
|
|
4
|
-
declare module '*.css' {
|
|
5
|
-
const content: { [className: string]: string };
|
|
6
|
-
export default content;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
declare module '*.module.css' {
|
|
10
|
-
const content: { [className: string]: string };
|
|
11
|
-
export default content;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
// File imports (images, audio, etc.)
|
|
16
|
-
declare module '*.png' {
|
|
17
|
-
const content: string;
|
|
18
|
-
export default content;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare module '*.jpg' {
|
|
22
|
-
const content: string;
|
|
23
|
-
export default content;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
declare module '*.jpeg' {
|
|
27
|
-
const content: string;
|
|
28
|
-
export default content;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
declare module '*.gif' {
|
|
32
|
-
const content: string;
|
|
33
|
-
export default content;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
declare module '*.mp3' {
|
|
37
|
-
const content: string;
|
|
38
|
-
export default content;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
declare module '*.wav' {
|
|
42
|
-
const content: string;
|
|
43
|
-
export default content;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// SVG imports
|
|
47
|
-
declare module '*.svg' {
|
|
48
|
-
import React from 'react';
|
|
49
|
-
|
|
50
|
-
interface SVGProps {
|
|
51
|
-
className?: string;
|
|
52
|
-
style?: React.CSSProperties;
|
|
53
|
-
width?: number;
|
|
54
|
-
height?: number;
|
|
55
|
-
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
const SVGComponent: React.FC<SVGProps>;
|
|
59
|
-
export default SVGComponent;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
declare module '*.svg?noDimensions' {
|
|
63
|
-
import React from 'react';
|
|
64
|
-
|
|
65
|
-
interface SVGProps {
|
|
66
|
-
className?: string;
|
|
67
|
-
style?: React.CSSProperties;
|
|
68
|
-
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const SVGComponent: React.FC<SVGProps>;
|
|
72
|
-
export default SVGComponent;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
declare module '*.svg?noAttrs' {
|
|
76
|
-
import React from 'react';
|
|
77
|
-
|
|
78
|
-
const SVGComponent: React.FC;
|
|
79
|
-
export default SVGComponent;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
package/lib/types/index.ts
DELETED
package/lib/types/menu.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type MenuClassNames = Readonly<{
|
|
2
|
-
wrapper?: string;
|
|
3
|
-
option?: string;
|
|
4
|
-
groupTitle?: string;
|
|
5
|
-
optionTextContainer?: string;
|
|
6
|
-
optionTextLabel?: string;
|
|
7
|
-
header?: string;
|
|
8
|
-
footer?: string;
|
|
9
|
-
}>;
|
|
10
|
-
|
|
11
|
-
export type MenuLabelTooltip = {
|
|
12
|
-
maxLines?: number;
|
|
13
|
-
};
|
package/lib/types/toast.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export const POSITIONS = {
|
|
5
|
-
TOP_CENTER: 'topCenter',
|
|
6
|
-
TOP_LEFT: 'topLeft',
|
|
7
|
-
TOP_RIGHT: 'topRight',
|
|
8
|
-
BOTTOM_LEFT: 'bottomLeft',
|
|
9
|
-
BOTTOM_RIGHT: 'bottomRight',
|
|
10
|
-
BOTTOM_CENTER: 'bottomCenter',
|
|
11
|
-
} as const;
|
|
12
|
-
|
|
13
|
-
export const ACTIONS = {
|
|
14
|
-
ADD: 'ADD',
|
|
15
|
-
REMOVE: 'REMOVE',
|
|
16
|
-
} as const;
|
|
17
|
-
|
|
18
|
-
export type positionTypes = typeof POSITIONS[keyof typeof POSITIONS];
|
|
19
|
-
export type actionTypes = typeof ACTIONS[keyof typeof ACTIONS];
|
|
20
|
-
export type contentTypes = React.ReactNode;
|
|
21
|
-
|
|
22
|
-
export type ToastOptions = {
|
|
23
|
-
timeout?: number;
|
|
24
|
-
position?: positionTypes;
|
|
25
|
-
autoClose?: boolean;
|
|
26
|
-
uniqueCode?: string | number;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export type optionTypes = ((ToastOptions) & {
|
|
30
|
-
id: string;
|
|
31
|
-
key?: string;
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export type callbackFuncTypes = (type: actionTypes, content: contentTypes, options: optionTypes) => void;
|
package/lib/types/typography.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export const TEXT_COLORS = Object.freeze({
|
|
2
|
-
primary: 'primary',
|
|
3
|
-
secondary: 'secondary',
|
|
4
|
-
tertiary: 'tertiary',
|
|
5
|
-
disabled: 'disabled',
|
|
6
|
-
clickable: 'clickable',
|
|
7
|
-
neutral: 'neutral',
|
|
8
|
-
success: 'success',
|
|
9
|
-
information: 'information',
|
|
10
|
-
warning: 'warning',
|
|
11
|
-
danger: 'danger',
|
|
12
|
-
inversePrimary: 'inversePrimary',
|
|
13
|
-
inverseSecondary: 'inverseSecondary',
|
|
14
|
-
favorite: 'favorite',
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
export type ColorTypes = typeof TEXT_COLORS[keyof typeof TEXT_COLORS];
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
type ItemComparer<Item> = (a: Item, b: Item) => boolean;
|
|
2
|
-
|
|
3
|
-
export function areArraysEqual<Item>(
|
|
4
|
-
array1: Item[],
|
|
5
|
-
array2: Item[],
|
|
6
|
-
itemComparer: ItemComparer<Item> = (a: Item, b: Item) => a === b,
|
|
7
|
-
): boolean {
|
|
8
|
-
return (
|
|
9
|
-
array1.length === array2.length &&
|
|
10
|
-
array1.every((value, index) => itemComparer(value, array2[index]))
|
|
11
|
-
);
|
|
12
|
-
}
|
package/lib/utils/array/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './are-arrays-equal';
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
colorDataViz1,
|
|
3
|
-
colorDataViz2,
|
|
4
|
-
colorDataViz3,
|
|
5
|
-
colorDataViz4,
|
|
6
|
-
colorDataViz5,
|
|
7
|
-
colorDataViz6,
|
|
8
|
-
colorDataViz7,
|
|
9
|
-
colorDataViz8,
|
|
10
|
-
colorFillInversePrimary,
|
|
11
|
-
colorTextSecondary,
|
|
12
|
-
colorTooltipFill,
|
|
13
|
-
} from '../../styles/variables/_color';
|
|
14
|
-
import type {ChartOptions} from '../../types/charts';
|
|
15
|
-
|
|
16
|
-
import {deepMerge} from './helpers';
|
|
17
|
-
import {formLabelSmall, subTitleExtraSmall} from './typography';
|
|
18
|
-
|
|
19
|
-
import css from '../../components/Charts/ChartTooltip/ChartTooltip.module.css';
|
|
20
|
-
import typographyCss from '../../styles/typography.module.css';
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export const DATA_VIZ_COLORS = [
|
|
24
|
-
colorDataViz1,
|
|
25
|
-
colorDataViz2,
|
|
26
|
-
colorDataViz3,
|
|
27
|
-
colorDataViz4,
|
|
28
|
-
colorDataViz5,
|
|
29
|
-
colorDataViz6,
|
|
30
|
-
colorDataViz7,
|
|
31
|
-
colorDataViz8,
|
|
32
|
-
] as const;
|
|
33
|
-
|
|
34
|
-
export const getDataVizColor = (dataIndex: number): string => {
|
|
35
|
-
const colorIndex = dataIndex % DATA_VIZ_COLORS.length;
|
|
36
|
-
return DATA_VIZ_COLORS[colorIndex];
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export const breadcrumbStyle = {
|
|
40
|
-
...subTitleExtraSmall,
|
|
41
|
-
color: colorTextSecondary,
|
|
42
|
-
} as const;
|
|
43
|
-
|
|
44
|
-
export const commonChartOptions: Partial<ChartOptions> = {
|
|
45
|
-
chart: {
|
|
46
|
-
spacingBottom: 0,
|
|
47
|
-
spacingLeft: 0,
|
|
48
|
-
spacingRight: 0,
|
|
49
|
-
},
|
|
50
|
-
title: {
|
|
51
|
-
text: null,
|
|
52
|
-
},
|
|
53
|
-
exporting: {
|
|
54
|
-
buttons: {
|
|
55
|
-
contextButton: {
|
|
56
|
-
enabled: false,
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
credits: {
|
|
61
|
-
enabled: false,
|
|
62
|
-
},
|
|
63
|
-
tooltip: {
|
|
64
|
-
followPointer: false,
|
|
65
|
-
backgroundColor: colorTooltipFill,
|
|
66
|
-
useHTML: true,
|
|
67
|
-
outside: true,
|
|
68
|
-
headerFormat: `<span class="${typographyCss.bodySmall} ${css.tooltipHeader}">{point.key}</span>`,
|
|
69
|
-
pointFormat: `<span class=${css.tooltipPoint}>
|
|
70
|
-
<span style="background-color:{point.color};" class=${css.indicatorCircle}></span>
|
|
71
|
-
<span class="${css.tooltipContent} ${typographyCss.bodyMedium}"> {series.name}: {point.y}</span>
|
|
72
|
-
</span>`,
|
|
73
|
-
},
|
|
74
|
-
drilldown: {
|
|
75
|
-
breadcrumbs: {
|
|
76
|
-
floating: true,
|
|
77
|
-
style: breadcrumbStyle,
|
|
78
|
-
// @ts-ignore - TS2322 - Type '{ floating: true; style: { readonly color: "#565656"; readonly fontSize: "12px"; readonly letterSpacing: "0em"; readonly fontFamily: "Centra No 2"; readonly fontStyle: "normal"; readonly margin: 0; readonly fontWeight: "500"; readonly display: "flex"; readonly alignItems: "center"; }; buttonTheme: { ...; }; }' is not assignable to type 'BreadcrumbsOptions'.
|
|
79
|
-
buttonTheme: {
|
|
80
|
-
style: breadcrumbStyle,
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
legend: {
|
|
85
|
-
// @ts-ignore - TS2322 - Type '{ paddingTop: string; fontSize: "12px"; fontFamily: "Centra No 2"; fontStyle: "normal"; margin: 0; color: "#17172A"; letterSpacing: "0em"; fontWeight: "500"; display: "flex"; alignItems: "center"; }' is not assignable to type 'CSSObject'.
|
|
86
|
-
itemStyle: {...formLabelSmall, paddingTop: '1px'},
|
|
87
|
-
symbolHeight: 8,
|
|
88
|
-
enabled: true,
|
|
89
|
-
},
|
|
90
|
-
xAxis: {
|
|
91
|
-
type: 'category',
|
|
92
|
-
// @ts-ignore - TS2322 - Type '{ type: string; padding: number; }' is not assignable to type 'AxisOptions'.
|
|
93
|
-
padding: 0,
|
|
94
|
-
},
|
|
95
|
-
navigation: {
|
|
96
|
-
breadcrumbs: {
|
|
97
|
-
buttonTheme: {
|
|
98
|
-
style: {
|
|
99
|
-
color: colorFillInversePrimary,
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
// @ts-ignore - TS2322 - Type '{ buttonTheme: { style: { color: string; }; }; separator: { text: string; }; }' is not assignable to type 'Breadcrumbs'.
|
|
103
|
-
separator: {
|
|
104
|
-
text: '>',
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
export const mergeChartUserOptions = (defaultoptions: ChartOptions, userOptions: ChartOptions): ChartOptions => deepMerge(defaultoptions, userOptions);
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import {colorBorderPrimary} from '../../styles/variables/_color';
|
|
2
|
-
import type {ChartOptions} from '../../types/charts';
|
|
3
|
-
|
|
4
|
-
import {commonChartOptions} from './charts';
|
|
5
|
-
import {
|
|
6
|
-
activeLabelStyle,
|
|
7
|
-
bottomLegendRow,
|
|
8
|
-
xAxisLabelStyle,
|
|
9
|
-
xAxisTitleStyle,
|
|
10
|
-
yAxisLabelStyle,
|
|
11
|
-
yAxisTitleStyle,
|
|
12
|
-
} from './helpers';
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* This function modifies the the common chart behavior to column chart default behavior.
|
|
16
|
-
* It will not take userPassed option into account.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
export const getColumnChartOptions = (): ChartOptions => ({
|
|
20
|
-
...commonChartOptions,
|
|
21
|
-
chart: {
|
|
22
|
-
...commonChartOptions.chart,
|
|
23
|
-
type: 'column',
|
|
24
|
-
},
|
|
25
|
-
legend: {
|
|
26
|
-
...commonChartOptions.legend,
|
|
27
|
-
...bottomLegendRow,
|
|
28
|
-
symbolWidth: 18,
|
|
29
|
-
},
|
|
30
|
-
xAxis: {
|
|
31
|
-
...commonChartOptions.xAxis,
|
|
32
|
-
labels: {
|
|
33
|
-
style: xAxisLabelStyle,
|
|
34
|
-
},
|
|
35
|
-
title: {
|
|
36
|
-
margin: 12,
|
|
37
|
-
style: xAxisTitleStyle,
|
|
38
|
-
},
|
|
39
|
-
// @ts-ignore - TS2322 - Type '{ labels: { style: { readonly fontSize: "12px"; readonly letterSpacing: "0.01em"; readonly fontFamily: "Centra No 2"; readonly fontStyle: "normal"; readonly margin: 0; readonly color: "#17172A"; readonly fontWeight: "500"; readonly display: "flex"; readonly alignItems: "center"; }; }; ... 6 more ...; type?: string |...' is not assignable to type 'AxisOptions'.
|
|
40
|
-
lineColor: colorBorderPrimary,
|
|
41
|
-
},
|
|
42
|
-
yAxis: {
|
|
43
|
-
labels: {
|
|
44
|
-
align: 'right',
|
|
45
|
-
distance: 12,
|
|
46
|
-
style: yAxisLabelStyle,
|
|
47
|
-
},
|
|
48
|
-
title: {
|
|
49
|
-
margin: 12,
|
|
50
|
-
style: yAxisTitleStyle,
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
drilldown: {
|
|
54
|
-
activeAxisLabelStyle: activeLabelStyle,
|
|
55
|
-
activeDataLabelStyle: activeLabelStyle,
|
|
56
|
-
breadcrumbs: {
|
|
57
|
-
floating: true,
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
export const columnPlotWidth = 28;
|