@cashub/ui 0.22.9 → 0.22.11
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/package.json +50 -59
- package/{dist/table → table}/Table.js +2 -1
- package/dist/package.json +0 -50
- package/setupTests.js +0 -9
- package/src/Tab/Tab.js +0 -11
- package/src/Tab/TabList.js +0 -20
- package/src/Tab/TabPanel.js +0 -35
- package/src/Tab/TabTab.js +0 -42
- package/src/Tab/__stories__/Tab.stories.js +0 -48
- package/src/Tab/__stories__/TabList.stories.js +0 -26
- package/src/Tab/__stories__/TabPanel.stories.js +0 -45
- package/src/Tab/__stories__/TabTab.stories.js +0 -30
- package/src/Tab/__test__/Tab.test.js +0 -43
- package/src/Tab/__test__/TabList.test.js +0 -22
- package/src/Tab/__test__/TabPanel.test.js +0 -27
- package/src/Tab/__test__/TabTab.test.js +0 -58
- package/src/Tab/index.js +0 -10
- package/src/Tab/subComponent/TabContext.js +0 -5
- package/src/animate/Collapse.js +0 -68
- package/src/animate/Loader.js +0 -36
- package/src/animate/NumberCounter.js +0 -49
- package/src/animate/PulseRing.js +0 -25
- package/src/animate/Spinner.js +0 -13
- package/src/animate/__stories__/Collapse.stories.js +0 -60
- package/src/animate/__stories__/Loader.stories.js +0 -33
- package/src/animate/__stories__/NumberCounter.stories.js +0 -29
- package/src/animate/__stories__/PulseRing.stories.js +0 -17
- package/src/animate/__stories__/Spinner.stories.js +0 -13
- package/src/animate/__test__/Collapse.test.js +0 -125
- package/src/animate/__test__/Loader.test.js +0 -42
- package/src/animate/__test__/NumberCounter.test.js +0 -71
- package/src/animate/__test__/PulseRing.test.js +0 -37
- package/src/animate/__test__/Spinner.test.js +0 -18
- package/src/animate/index.js +0 -5
- package/src/assets/css/autocomplete.css +0 -16
- package/src/assets/css/font.css +0 -4
- package/src/assets/css/global.css +0 -3
- package/src/assets/css/normalize.css +0 -386
- package/src/assets/font/helvetica/Helvetica.ttf +0 -0
- package/src/assets/font/nanumGothic/NanumGothic-Bold.ttf +0 -0
- package/src/assets/font/nanumGothic/NanumGothic-ExtraBold.ttf +0 -0
- package/src/assets/font/nanumGothic/NanumGothic-Regular.ttf +0 -0
- package/src/assets/icons/app-management.png +0 -0
- package/src/assets/icons/burger.png +0 -0
- package/src/assets/icons/file.svg +0 -1
- package/src/assets/icons/map_icon1.png +0 -0
- package/src/assets/icons/map_icon4.png +0 -0
- package/src/assets/images/bg-chart-circle.png +0 -0
- package/src/assets/images/bg-chart-triangle.png +0 -0
- package/src/assets/images/cashub-logo-only.png +0 -0
- package/src/assets/images/default-user.jpg +0 -0
- package/src/assets/images/logo-cashub.png +0 -0
- package/src/assets/images/map.png +0 -0
- package/src/assets/images/qrcode.png +0 -0
- package/src/backdrop/BaseBackdrop.js +0 -13
- package/src/backdrop/LoadingBackdrop.js +0 -12
- package/src/backdrop/ModalBackdrop.js +0 -10
- package/src/backdrop/__test__/BaseBackdrop.test.js +0 -10
- package/src/backdrop/__test__/LoadingBackdrop.test.js +0 -9
- package/src/backdrop/__test__/ModalBackdrop.test.js +0 -8
- package/src/backdrop/index.js +0 -3
- package/src/badge/Badge.js +0 -21
- package/src/badge/BadgeDot.js +0 -13
- package/src/badge/BadgeFill.js +0 -29
- package/src/badge/BadgeWithText.js +0 -21
- package/src/badge/__stories__/Badge.stories.js +0 -43
- package/src/badge/__stories__/BadgeDot.stories.js +0 -23
- package/src/badge/__stories__/BadgeFill.stories.js +0 -29
- package/src/badge/__stories__/BadgeWithText.stories.js +0 -26
- package/src/badge/__test__/Badge.test.js +0 -19
- package/src/badge/__test__/BadgeDot.test.js +0 -22
- package/src/badge/__test__/BadgeFill.test.js +0 -41
- package/src/badge/__test__/BadgeWithText.test.js +0 -22
- package/src/badge/index.js +0 -4
- package/src/billing/BarChart.js +0 -42
- package/src/billing/Grid.js +0 -30
- package/src/billing/Header2.js +0 -15
- package/src/billing/Header3.js +0 -32
- package/src/billing/Paragraph.js +0 -27
- package/src/billing/ParagraphGroup.js +0 -12
- package/src/billing/ParagraphText.js +0 -16
- package/src/billing/Section.js +0 -48
- package/src/billing/SectionBody.js +0 -7
- package/src/billing/SectionHeader.js +0 -16
- package/src/billing/__stories__/BarChart.stories.js_bak +0 -46
- package/src/billing/__stories__/Grid.stories.js_bak +0 -57
- package/src/billing/__stories__/Header2.stories.js_bak +0 -62
- package/src/billing/__stories__/Header3.stories.js_bak +0 -69
- package/src/billing/__stories__/Paragraph.stories.js_bak +0 -84
- package/src/billing/__stories__/ParagraphGroup.stories.js_bak +0 -68
- package/src/billing/__stories__/ParagraphText.stories.js_bak +0 -64
- package/src/billing/__stories__/Section.stories.js_bak +0 -115
- package/src/billing/__stories__/SectionBody.stories.js_bak +0 -62
- package/src/billing/__stories__/SectionHeader.stories.js-bak +0 -68
- package/src/breadcrumb/Breadcrumb.js +0 -66
- package/src/breadcrumb/__stories__/Breadcrumb.stories.js +0 -31
- package/src/breadcrumb/__test__/breadcrumb.test.js +0 -27
- package/src/breadcrumb/index.js +0 -1
- package/src/button/Button.js +0 -80
- package/src/button/ButtonGroup.js +0 -33
- package/src/button/IconButton.js +0 -40
- package/src/button/ScrollToTopButton.js +0 -48
- package/src/button/__stories__/Button.stories.js +0 -70
- package/src/button/__stories__/ButtonGroup.stories.js +0 -48
- package/src/button/__stories__/IconButton.stories.js +0 -30
- package/src/button/__stories__/ScrollToTopButton.stories.js +0 -22
- package/src/button/__test__/Button.test.js +0 -32
- package/src/button/__test__/ButtonGroup.test.js +0 -25
- package/src/button/__test__/IconButton.test.js +0 -34
- package/src/button/__test__/ScrollToTopButton.test.js +0 -19
- package/src/button/index.js +0 -4
- package/src/callout/Callout.js +0 -52
- package/src/callout/__stories__/Callout.stories.js +0 -23
- package/src/callout/__test__/Callout.test.js +0 -29
- package/src/callout/index.js +0 -1
- package/src/chart/BarChart.js +0 -134
- package/src/chart/DoughnutChart.js +0 -82
- package/src/chart/LineChart.js +0 -114
- package/src/chart/SingleBarChart.js +0 -27
- package/src/chart/__stories__/BarChart.stories.js +0 -54
- package/src/chart/__stories__/DoughnutChart.stories.js +0 -33
- package/src/chart/__stories__/LineChart.stories.js +0 -73
- package/src/chart/__stories__/SingleBarChart.stories.js +0 -22
- package/src/chart/index.js +0 -5
- package/src/chart/utils/customTooltip.js +0 -108
- package/src/chart/utils/htmlLegendPlugin.js +0 -88
- package/src/chart/utils/index.js +0 -3
- package/src/chart/utils/padEmptyChartBar.js +0 -37
- package/src/container/FlexContainer.js +0 -13
- package/src/container/__stories__/FlexContainer.stories.js +0 -39
- package/src/container/__test__/FlexContainer.test.js +0 -21
- package/src/container/index.js +0 -1
- package/src/cropper/Cropper.js +0 -49
- package/src/cropper/CropperModalHandler.js +0 -36
- package/src/cropper/__stories__/Cropper.stories.js +0 -32
- package/src/cropper/__test__/Cropper.test.js +0 -90
- package/src/cropper/index.js +0 -2
- package/src/cropper/subComponent/CropImageModal.js +0 -84
- package/src/datetimePicker/DatePicker.js +0 -493
- package/src/datetimePicker/DatePickerV2.js +0 -500
- package/src/datetimePicker/DatetimePicker.js +0 -218
- package/src/datetimePicker/DatetimePickerV2.js +0 -512
- package/src/datetimePicker/TimeInput.js +0 -45
- package/src/datetimePicker/TimePicker.js +0 -318
- package/src/datetimePicker/TimePickerStyle.js +0 -59
- package/src/datetimePicker/__stories__/DatePicker.stories.js +0 -51
- package/src/datetimePicker/__stories__/DatePickerV2.stories.js +0 -73
- package/src/datetimePicker/__stories__/DatetimePicker.stories.js +0 -71
- package/src/datetimePicker/__stories__/DatetimePickerV2.stories.js +0 -91
- package/src/datetimePicker/__stories__/TimeInput.stories.js +0 -67
- package/src/datetimePicker/__stories__/TimePicker.stories.js +0 -29
- package/src/datetimePicker/__test__/CustomTimeInput.test.js +0 -25
- package/src/datetimePicker/__test__/DatetimePicker.test.js +0 -121
- package/src/datetimePicker/__test__/TimeInput.test.js +0 -22
- package/src/datetimePicker/accordion/Month.js +0 -258
- package/src/datetimePicker/accordion/Year.js +0 -307
- package/src/datetimePicker/hooks/index.js +0 -3
- package/src/datetimePicker/hooks/useChangeNumber.js +0 -42
- package/src/datetimePicker/hooks/useDecrease.js +0 -31
- package/src/datetimePicker/hooks/useIncrease.js +0 -31
- package/src/datetimePicker/index.js +0 -7
- package/src/datetimePicker/provider/constant.js +0 -16
- package/src/datetimePicker/subComponent/Accordion.js +0 -407
- package/src/datetimePicker/subComponent/CustomTimeInput.js +0 -48
- package/src/datetimePicker/subComponent/DateTimePickerContext.js +0 -5
- package/src/datetimePicker/utils/GMTDate.js +0 -13
- package/src/datetimePicker/utils/pad.js +0 -9
- package/src/datetimePicker/utils/toUTC0.js +0 -10
- package/src/descriptionList/DescriptionDetail.js +0 -18
- package/src/descriptionList/DescriptionList.js +0 -15
- package/src/descriptionList/DescriptionTerm.js +0 -9
- package/src/descriptionList/__stories__/DescriptionDetail.stories.js +0 -39
- package/src/descriptionList/__stories__/DescriptionList.stories.js +0 -39
- package/src/descriptionList/__stories__/DescriptionTerm.stories.js +0 -13
- package/src/descriptionList/__test__/DescriptionDetail.test.js +0 -13
- package/src/descriptionList/__test__/DescriptionList.test.js +0 -12
- package/src/descriptionList/__test__/DescriptionTerm.test.js +0 -7
- package/src/descriptionList/index.js +0 -3
- package/src/divider/Divider.js +0 -21
- package/src/divider/__stories__/Divider.stories.js +0 -23
- package/src/divider/__test__/Divider.test.js +0 -24
- package/src/divider/index.js +0 -1
- package/src/dropdown/Dropdown.js +0 -50
- package/src/dropdown/DropdownButtonOption.js +0 -25
- package/src/dropdown/DropdownContent.js +0 -78
- package/src/dropdown/DropdownDivOption.js +0 -21
- package/src/dropdown/DropdownItem.js +0 -17
- package/src/dropdown/DropdownLinkOption.js +0 -19
- package/src/dropdown/DropdownToggle.js +0 -26
- package/src/dropdown/__stories__/Dropdown.stories.js +0 -46
- package/src/dropdown/__stories__/DropdownButtonOption.stories.js +0 -33
- package/src/dropdown/__stories__/DropdownContent.stories.js +0 -34
- package/src/dropdown/__stories__/DropdownDivOption.stories.js +0 -27
- package/src/dropdown/__stories__/DropdownItem.stories.js +0 -48
- package/src/dropdown/__stories__/DropdownLinkOption.stories.js +0 -63
- package/src/dropdown/__stories__/DropdownToggle.stories.js +0 -40
- package/src/dropdown/__test__/Dropdown.test.js +0 -132
- package/src/dropdown/__test__/DropdownButtonOption.test.js +0 -8
- package/src/dropdown/__test__/DropdownContent.test.js +0 -85
- package/src/dropdown/__test__/DropdownDivOption.test.js +0 -8
- package/src/dropdown/__test__/DropdownItem.test.js +0 -55
- package/src/dropdown/__test__/DropdownLinkOption.test.js +0 -14
- package/src/dropdown/__test__/DropdownToggle.test.js +0 -53
- package/src/dropdown/index.js +0 -12
- package/src/dropdown/subComponent/DropdownContext.js +0 -5
- package/src/dropzone/FileDropzone.js +0 -543
- package/src/dropzone/ImageDropzone.js +0 -365
- package/src/dropzone/__stories__/FileDropzone.stories.js +0 -148
- package/src/dropzone/__stories__/ImageDropzone.stories.js +0 -101
- package/src/dropzone/__test__/FileDropzone.test.js +0 -382
- package/src/dropzone/__test__/ImageDropzone.test.js +0 -290
- package/src/dropzone/__test__/Message.test.js +0 -14
- package/src/dropzone/index.js +0 -2
- package/src/dropzone/subComponent/Message.js +0 -16
- package/src/figure/IconFigure.js +0 -31
- package/src/figure/ImageFigure.js +0 -25
- package/src/figure/__stories__/IconFigure.stories.js +0 -25
- package/src/figure/__stories__/ImageFigure.stories.js +0 -26
- package/src/figure/__test__/IconFigure.test.js +0 -28
- package/src/figure/__test__/ImageFigure.test.js +0 -38
- package/src/figure/index.js +0 -2
- package/src/file/HiddenFileInput.js +0 -10
- package/src/file/index.js +0 -1
- package/src/form/Checkbox.js +0 -127
- package/src/form/FormItem.js +0 -7
- package/src/form/Input.js +0 -42
- package/src/form/Label.js +0 -33
- package/src/form/MutedText.js +0 -11
- package/src/form/RadioButton.js +0 -80
- package/src/form/Searchbox.js +0 -95
- package/src/form/Slider.js +0 -34
- package/src/form/SwitchButton.js +0 -86
- package/src/form/Textarea.js +0 -36
- package/src/form/TreeView.js +0 -77
- package/src/form/__stories__/Checkbox.stories.js +0 -63
- package/src/form/__stories__/FormItem.stories.js +0 -28
- package/src/form/__stories__/Input.stories.js +0 -30
- package/src/form/__stories__/Label.stories.js +0 -38
- package/src/form/__stories__/MutedText.stories.js +0 -27
- package/src/form/__stories__/RadioButton.stories.js +0 -48
- package/src/form/__stories__/Searchbox.stories.js +0 -24
- package/src/form/__stories__/Slider.stories.js +0 -46
- package/src/form/__stories__/SwitchButton.stories.js +0 -48
- package/src/form/__stories__/Textarea.stories.js +0 -19
- package/src/form/__stories__/TreeView.stories.js +0 -76
- package/src/form/__test__/Checkbox.test.js +0 -68
- package/src/form/__test__/FormItem.test.js +0 -8
- package/src/form/__test__/Input.test.js +0 -28
- package/src/form/__test__/Label.test.js +0 -33
- package/src/form/__test__/MutedText.test.js +0 -18
- package/src/form/__test__/RadioButton.test.js +0 -57
- package/src/form/__test__/Searchbox.test.js +0 -50
- package/src/form/__test__/Textarea.test.js +0 -25
- package/src/form/index.js +0 -11
- package/src/grid/Column.js +0 -36
- package/src/grid/Grid.js +0 -15
- package/src/grid/__stories__/Grid.stories.js +0 -38
- package/src/grid/__test__/Grid.test.js +0 -44
- package/src/grid/index.js +0 -2
- package/src/heading/Heading1.js +0 -11
- package/src/heading/Heading2.js +0 -13
- package/src/heading/Heading3.js +0 -21
- package/src/heading/__stories__/Heading1.stories.js +0 -24
- package/src/heading/__stories__/Heading2.stories.js +0 -24
- package/src/heading/__stories__/Heading3.stories.js +0 -24
- package/src/heading/__test__/Heading1.test.js +0 -21
- package/src/heading/__test__/Heading2.test.js +0 -34
- package/src/heading/__test__/Heading3.test.js +0 -46
- package/src/heading/index.js +0 -3
- package/src/helmet/Helmet.js +0 -12
- package/src/helmet/__test__/Helmet.test.js +0 -38
- package/src/helmet/index.js +0 -2
- package/src/iconbox/ApplicationIconBox.js +0 -62
- package/src/iconbox/IconBox.js +0 -54
- package/src/iconbox/IconBoxV2.js +0 -49
- package/src/iconbox/__stories__/ApplicationIconBox.stories.js +0 -53
- package/src/iconbox/__stories__/IconBox.stories.js +0 -34
- package/src/iconbox/__stories__/IconBoxFigure.stories.js +0 -67
- package/src/iconbox/__stories__/IconBoxFigure.stories_V2.stories.js +0 -41
- package/src/iconbox/__stories__/IconBoxImage.stories.js +0 -32
- package/src/iconbox/__stories__/IconBoxV2.stories.js +0 -60
- package/src/iconbox/__test__/ApplicationIconBox.test.js +0 -77
- package/src/iconbox/__test__/IconBox.test.js +0 -22
- package/src/iconbox/__test__/IconBoxFigure.test.js +0 -37
- package/src/iconbox/__test__/IconBoxImage.test.js +0 -32
- package/src/iconbox/__test__/IconBoxV2.test.js +0 -51
- package/src/iconbox/index.js +0 -3
- package/src/iconbox/subComponent/IconBoxFigure.js +0 -16
- package/src/iconbox/subComponent/IconBoxImage.js +0 -26
- package/src/image/ImageFluid.js +0 -12
- package/src/image/UploadImage.js +0 -287
- package/src/image/__stories__/ImageFluid.stories.js +0 -25
- package/src/image/__stories__/UploadImage.stories.js +0 -56
- package/src/image/__test__/ImageFluid.test.js +0 -44
- package/src/image/__test__/UploadImage.test.js +0 -315
- package/src/image/index.js +0 -2
- package/src/index.js +0 -42
- package/src/jsoneditor/JsonEditor.js +0 -132
- package/src/jsoneditor/__stories__/JsonEditor.stories.js +0 -55
- package/src/jsoneditor/__test__/JsonEditor.test.js +0 -52
- package/src/jsoneditor/index.js +0 -1
- package/src/keyframe/Pulse.js +0 -17
- package/src/keyframe/Spin.js +0 -9
- package/src/link/LinkSpan.js +0 -44
- package/src/link/__stories__/LinkSpan.stories.js +0 -27
- package/src/link/__test__/LinkSpan.test.js +0 -52
- package/src/link/index.js +0 -1
- package/src/map/GoogleMap.js +0 -383
- package/src/map/GoogleReverseGeolocation.js +0 -197
- package/src/map/LeafletMap.js +0 -264
- package/src/map/LeafletReverseGeolocation.js +0 -89
- package/src/map/__stories__/GoogleMap.stories.js +0 -137
- package/src/map/__stories__/GoogleReverseGeolocation.stories.js +0 -95
- package/src/map/__stories__/LeafletMap.stories.js +0 -136
- package/src/map/__stories__/LeafletReverseGeolocation.stories.js +0 -91
- package/src/map/__test__/LeafletReverseGeolocation.test.js +0 -245
- package/src/map/__test__/MapSearchBoxControl.test.js +0 -89
- package/src/map/index.js +0 -4
- package/src/map/subComponent/BasicLeafletMap.js +0 -33
- package/src/map/subComponent/GoogleMapContainer.js +0 -19
- package/src/map/subComponent/GoogleMapPopup.js +0 -115
- package/src/map/subComponent/GoogleMapWrapper.js +0 -27
- package/src/map/subComponent/GoogleMarkerSpiderfier.js +0 -13
- package/src/map/subComponent/LeafletDrawControl.js +0 -133
- package/src/map/subComponent/LeafletMapContainer.js +0 -163
- package/src/map/subComponent/MapSearchBoxControl.js +0 -43
- package/src/modal/StateModal.js +0 -139
- package/src/modal/TitleModal.js +0 -229
- package/src/modal/__stories__/StateModal.stories.js +0 -46
- package/src/modal/__stories__/TitleModal.stories.js +0 -56
- package/src/modal/__test__/StateModal.test.js +0 -144
- package/src/modal/index.js +0 -2
- package/src/paginate/Paginate.js +0 -132
- package/src/paginate/__stories__/Paginate.stories.js +0 -49
- package/src/paginate/__test__/Paginate.test.js +0 -124
- package/src/paginate/index.js +0 -1
- package/src/popover/Popover.js +0 -82
- package/src/popover/__stories__/Popover.stories.js +0 -44
- package/src/popover/index.js +0 -1
- package/src/qrcode/QRCode.js +0 -54
- package/src/qrcode/QRCodeContainter.js +0 -25
- package/src/qrcode/__stories__/QRCode.stories.js +0 -36
- package/src/qrcode/__stories__/QRCodeContainter.stories.js +0 -28
- package/src/qrcode/index.js +0 -2
- package/src/ribbon/Ribbon.js +0 -38
- package/src/ribbon/__stories__/Ribbon.stories.js +0 -25
- package/src/ribbon/index.js +0 -1
- package/src/section/Section.js +0 -66
- package/src/section/SectionBody.js +0 -34
- package/src/section/SectionHeader.js +0 -41
- package/src/section/SectionToolbar.js +0 -13
- package/src/section/SectionToolbarItem.js +0 -12
- package/src/section/__stories__/Section.stories.js +0 -52
- package/src/section/__stories__/SectionBody.stories.js +0 -40
- package/src/section/__stories__/SectionHeader.stories.js +0 -67
- package/src/section/__stories__/SectionToolbar.stories.js +0 -43
- package/src/section/__test__/Section.test.js +0 -98
- package/src/section/__test__/SectionBody.test.js +0 -89
- package/src/section/__test__/SectionHeader.test.js +0 -35
- package/src/section/__test__/SectionToolbar.test.js +0 -17
- package/src/section/index.js +0 -5
- package/src/select/InputSelect.js +0 -314
- package/src/select/Select.js +0 -764
- package/src/select/__stories__/InputSelect.stories.js +0 -60
- package/src/select/__stories__/Select.stories.js +0 -132
- package/src/select/__test__/Select.test.js +0 -219
- package/src/select/index.js +0 -2
- package/src/select/subComponent/ListBox.js +0 -15
- package/src/select/subComponent/Option.js +0 -22
- package/src/select/subComponent/OptionGroup.js +0 -18
- package/src/select/subComponent/Options.js +0 -24
- package/src/select/subComponent/SearchBox.js +0 -53
- package/src/select/subComponent/SelectedMultiple.js +0 -39
- package/src/select/subComponent/SelectedSingle.js +0 -10
- package/src/styles/GlobalStyle.js +0 -59
- package/src/styles/config/breakpoint.style.js +0 -8
- package/src/styles/config/header.style.js +0 -5
- package/src/styles/config/sidebar.style.js +0 -12
- package/src/styles/index.js +0 -2
- package/src/styles/mixin/backgroundColor.js +0 -13
- package/src/styles/mixin/borderColor.js +0 -13
- package/src/styles/mixin/color.js +0 -13
- package/src/styles/mixin/colorOnBackground.js +0 -13
- package/src/styles/mixin/inputPlaceholder.js +0 -26
- package/src/styles/mixin/media.js +0 -14
- package/src/styles/mixin/rounded.js +0 -12
- package/src/styles/mixin/scrollbar.js +0 -26
- package/src/styles/theme/dark.theme.js +0 -95
- package/src/styles/theme/light.theme.js +0 -95
- package/src/styles/theme/white.theme.js +0 -95
- package/src/styles/themes.js +0 -11
- package/src/table/GridTable.js +0 -325
- package/src/table/ImageBox.js +0 -37
- package/src/table/PermissionTable.js +0 -36
- package/src/table/Table.js +0 -441
- package/src/table/__mock__/columns.js +0 -28
- package/src/table/__mock__/data.js +0 -334
- package/src/table/__stories__/GridTable.stories.js +0 -129
- package/src/table/__stories__/ImageBox.stories.js +0 -27
- package/src/table/__stories__/PermissionTable.stories.js +0 -52
- package/src/table/__stories__/Table.stories.js +0 -138
- package/src/table/hooks/index.js +0 -2
- package/src/table/hooks/useCalculateDataRange.js +0 -26
- package/src/table/hooks/useGenerateSort.js +0 -37
- package/src/table/index.js +0 -4
- package/src/table/subComponent/BaseTableHeadCell.js +0 -48
- package/src/table/subComponent/GridTableFooter.js +0 -18
- package/src/table/subComponent/GridTableHeadCell.js +0 -14
- package/src/table/subComponent/Resizer.js +0 -79
- package/src/table/subComponent/TableFooter.js +0 -16
- package/src/table/subComponent/TableFooterInfo.js +0 -8
- package/src/table/subComponent/TableFooterPager.js +0 -26
- package/src/table/subComponent/TableHeadCell.js +0 -14
- package/src/table/subComponent/TableSort.js +0 -25
- package/src/tagify/TagifyStyle.js +0 -35
- package/src/tagify/Tags.js +0 -46
- package/src/tagify/__stories__/Tags.stories.js +0 -28
- package/src/tagify/index.js +0 -2
- package/src/text/Paragraph.js +0 -34
- package/src/text/__stories__/Paragraph.stories.js +0 -40
- package/src/text/index.js +0 -1
- package/src/timeline/Timeline.js +0 -98
- package/src/timeline/__stories__/Timeline.stories.js +0 -49
- package/src/timeline/index.js +0 -1
- package/src/toast/CustomToastContainer.js +0 -30
- package/src/toast/MessageContainer.js +0 -40
- package/src/toast/__stories__/MessageContainer.stories.js +0 -35
- package/src/toast/index.js +0 -3
- package/src/toast/show.js +0 -34
- package/src/toast/style.css +0 -1
- package/src/tooltip/Tooltip.js +0 -146
- package/src/tooltip/__stories__/Tooltip.stories.js +0 -49
- package/src/tooltip/__test__/tooltip.test.js +0 -130
- package/src/tooltip/index.js +0 -1
- package/src/wizard/Wizard.js +0 -276
- package/src/wizard/__stories__/Wizard.stories.js +0 -81
- package/src/wizard/__test__/Wizard.test.js +0 -173
- package/src/wizard/index.js +0 -1
- package/transformer/fileTransformer.js +0 -9
- /package/{dist/Tab → Tab}/Tab.js +0 -0
- /package/{dist/Tab → Tab}/TabList.js +0 -0
- /package/{dist/Tab → Tab}/TabPanel.js +0 -0
- /package/{dist/Tab → Tab}/TabTab.js +0 -0
- /package/{dist/Tab → Tab}/index.js +0 -0
- /package/{dist/Tab → Tab}/subComponent/TabContext.js +0 -0
- /package/{dist/animate → animate}/Collapse.js +0 -0
- /package/{dist/animate → animate}/Loader.js +0 -0
- /package/{dist/animate → animate}/NumberCounter.js +0 -0
- /package/{dist/animate → animate}/PulseRing.js +0 -0
- /package/{dist/animate → animate}/Spinner.js +0 -0
- /package/{dist/animate → animate}/index.js +0 -0
- /package/{dist/assets → assets}/css/autocomplete.css +0 -0
- /package/{dist/assets → assets}/css/font.css +0 -0
- /package/{dist/assets → assets}/css/global.css +0 -0
- /package/{dist/assets → assets}/css/normalize.css +0 -0
- /package/{dist/assets → assets}/font/helvetica/Helvetica.ttf +0 -0
- /package/{dist/assets → assets}/font/nanumGothic/NanumGothic-Bold.ttf +0 -0
- /package/{dist/assets → assets}/font/nanumGothic/NanumGothic-ExtraBold.ttf +0 -0
- /package/{dist/assets → assets}/font/nanumGothic/NanumGothic-Regular.ttf +0 -0
- /package/{dist/assets → assets}/icons/app-management.png +0 -0
- /package/{dist/assets → assets}/icons/burger.png +0 -0
- /package/{dist/assets → assets}/icons/file.svg +0 -0
- /package/{dist/assets → assets}/icons/map_icon1.png +0 -0
- /package/{dist/assets → assets}/icons/map_icon4.png +0 -0
- /package/{dist/assets → assets}/images/bg-chart-circle.png +0 -0
- /package/{dist/assets → assets}/images/bg-chart-triangle.png +0 -0
- /package/{dist/assets → assets}/images/cashub-logo-only.png +0 -0
- /package/{dist/assets → assets}/images/default-user.jpg +0 -0
- /package/{dist/assets → assets}/images/logo-cashub.png +0 -0
- /package/{dist/assets → assets}/images/map.png +0 -0
- /package/{dist/assets → assets}/images/qrcode.png +0 -0
- /package/{dist/backdrop → backdrop}/BaseBackdrop.js +0 -0
- /package/{dist/backdrop → backdrop}/LoadingBackdrop.js +0 -0
- /package/{dist/backdrop → backdrop}/ModalBackdrop.js +0 -0
- /package/{dist/backdrop → backdrop}/index.js +0 -0
- /package/{dist/badge → badge}/Badge.js +0 -0
- /package/{dist/badge → badge}/BadgeDot.js +0 -0
- /package/{dist/badge → badge}/BadgeFill.js +0 -0
- /package/{dist/badge → badge}/BadgeWithText.js +0 -0
- /package/{dist/badge → badge}/index.js +0 -0
- /package/{dist/billing → billing}/BarChart.js +0 -0
- /package/{dist/billing → billing}/Grid.js +0 -0
- /package/{dist/billing → billing}/Header2.js +0 -0
- /package/{dist/billing → billing}/Header3.js +0 -0
- /package/{dist/billing → billing}/Paragraph.js +0 -0
- /package/{dist/billing → billing}/ParagraphGroup.js +0 -0
- /package/{dist/billing → billing}/ParagraphText.js +0 -0
- /package/{dist/billing → billing}/Section.js +0 -0
- /package/{dist/billing → billing}/SectionBody.js +0 -0
- /package/{dist/billing → billing}/SectionHeader.js +0 -0
- /package/{dist/billing → billing}/__stories__/BarChart.stories.js_bak +0 -0
- /package/{dist/billing → billing}/__stories__/Grid.stories.js_bak +0 -0
- /package/{dist/billing → billing}/__stories__/Header2.stories.js_bak +0 -0
- /package/{dist/billing → billing}/__stories__/Header3.stories.js_bak +0 -0
- /package/{dist/billing → billing}/__stories__/Paragraph.stories.js_bak +0 -0
- /package/{dist/billing → billing}/__stories__/ParagraphGroup.stories.js_bak +0 -0
- /package/{dist/billing → billing}/__stories__/ParagraphText.stories.js_bak +0 -0
- /package/{dist/billing → billing}/__stories__/Section.stories.js_bak +0 -0
- /package/{dist/billing → billing}/__stories__/SectionBody.stories.js_bak +0 -0
- /package/{dist/billing → billing}/__stories__/SectionHeader.stories.js-bak +0 -0
- /package/{dist/breadcrumb → breadcrumb}/Breadcrumb.js +0 -0
- /package/{dist/breadcrumb → breadcrumb}/index.js +0 -0
- /package/{dist/button → button}/Button.js +0 -0
- /package/{dist/button → button}/ButtonGroup.js +0 -0
- /package/{dist/button → button}/IconButton.js +0 -0
- /package/{dist/button → button}/ScrollToTopButton.js +0 -0
- /package/{dist/button → button}/index.js +0 -0
- /package/{dist/callout → callout}/Callout.js +0 -0
- /package/{dist/callout → callout}/index.js +0 -0
- /package/{dist/chart → chart}/BarChart.js +0 -0
- /package/{dist/chart → chart}/DoughnutChart.js +0 -0
- /package/{dist/chart → chart}/LineChart.js +0 -0
- /package/{dist/chart → chart}/SingleBarChart.js +0 -0
- /package/{dist/chart → chart}/index.js +0 -0
- /package/{dist/chart → chart}/utils/customTooltip.js +0 -0
- /package/{dist/chart → chart}/utils/htmlLegendPlugin.js +0 -0
- /package/{dist/chart → chart}/utils/index.js +0 -0
- /package/{dist/chart → chart}/utils/padEmptyChartBar.js +0 -0
- /package/{dist/container → container}/FlexContainer.js +0 -0
- /package/{dist/container → container}/index.js +0 -0
- /package/{dist/cropper → cropper}/Cropper.js +0 -0
- /package/{dist/cropper → cropper}/CropperModalHandler.js +0 -0
- /package/{dist/cropper → cropper}/index.js +0 -0
- /package/{dist/cropper → cropper}/subComponent/CropImageModal.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/DatePicker.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/DatePickerV2.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/DatetimePicker.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/DatetimePickerV2.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/TimeInput.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/TimePicker.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/TimePickerStyle.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/accordion/Month.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/accordion/Year.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/hooks/index.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/hooks/useChangeNumber.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/hooks/useDecrease.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/hooks/useIncrease.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/index.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/provider/constant.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/subComponent/Accordion.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/subComponent/CustomTimeInput.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/subComponent/DateTimePickerContext.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/utils/GMTDate.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/utils/pad.js +0 -0
- /package/{dist/datetimePicker → datetimePicker}/utils/toUTC0.js +0 -0
- /package/{dist/descriptionList → descriptionList}/DescriptionDetail.js +0 -0
- /package/{dist/descriptionList → descriptionList}/DescriptionList.js +0 -0
- /package/{dist/descriptionList → descriptionList}/DescriptionTerm.js +0 -0
- /package/{dist/descriptionList → descriptionList}/index.js +0 -0
- /package/{dist/divider → divider}/Divider.js +0 -0
- /package/{dist/divider → divider}/index.js +0 -0
- /package/{dist/dropdown → dropdown}/Dropdown.js +0 -0
- /package/{dist/dropdown → dropdown}/DropdownButtonOption.js +0 -0
- /package/{dist/dropdown → dropdown}/DropdownContent.js +0 -0
- /package/{dist/dropdown → dropdown}/DropdownDivOption.js +0 -0
- /package/{dist/dropdown → dropdown}/DropdownItem.js +0 -0
- /package/{dist/dropdown → dropdown}/DropdownLinkOption.js +0 -0
- /package/{dist/dropdown → dropdown}/DropdownToggle.js +0 -0
- /package/{dist/dropdown → dropdown}/index.js +0 -0
- /package/{dist/dropdown → dropdown}/subComponent/DropdownContext.js +0 -0
- /package/{dist/dropzone → dropzone}/FileDropzone.js +0 -0
- /package/{dist/dropzone → dropzone}/ImageDropzone.js +0 -0
- /package/{dist/dropzone → dropzone}/index.js +0 -0
- /package/{dist/dropzone → dropzone}/subComponent/Message.js +0 -0
- /package/{dist/figure → figure}/IconFigure.js +0 -0
- /package/{dist/figure → figure}/ImageFigure.js +0 -0
- /package/{dist/figure → figure}/index.js +0 -0
- /package/{dist/file → file}/HiddenFileInput.js +0 -0
- /package/{dist/file → file}/index.js +0 -0
- /package/{dist/form → form}/Checkbox.js +0 -0
- /package/{dist/form → form}/FormItem.js +0 -0
- /package/{dist/form → form}/Input.js +0 -0
- /package/{dist/form → form}/Label.js +0 -0
- /package/{dist/form → form}/MutedText.js +0 -0
- /package/{dist/form → form}/RadioButton.js +0 -0
- /package/{dist/form → form}/Searchbox.js +0 -0
- /package/{dist/form → form}/Slider.js +0 -0
- /package/{dist/form → form}/SwitchButton.js +0 -0
- /package/{dist/form → form}/Textarea.js +0 -0
- /package/{dist/form → form}/TreeView.js +0 -0
- /package/{dist/form → form}/index.js +0 -0
- /package/{dist/grid → grid}/Column.js +0 -0
- /package/{dist/grid → grid}/Grid.js +0 -0
- /package/{dist/grid → grid}/index.js +0 -0
- /package/{dist/heading → heading}/Heading1.js +0 -0
- /package/{dist/heading → heading}/Heading2.js +0 -0
- /package/{dist/heading → heading}/Heading3.js +0 -0
- /package/{dist/heading → heading}/index.js +0 -0
- /package/{dist/helmet → helmet}/Helmet.js +0 -0
- /package/{dist/helmet → helmet}/index.js +0 -0
- /package/{dist/iconbox → iconbox}/ApplicationIconBox.js +0 -0
- /package/{dist/iconbox → iconbox}/IconBox.js +0 -0
- /package/{dist/iconbox → iconbox}/IconBoxV2.js +0 -0
- /package/{dist/iconbox → iconbox}/index.js +0 -0
- /package/{dist/iconbox → iconbox}/subComponent/IconBoxFigure.js +0 -0
- /package/{dist/iconbox → iconbox}/subComponent/IconBoxImage.js +0 -0
- /package/{dist/image → image}/ImageFluid.js +0 -0
- /package/{dist/image → image}/UploadImage.js +0 -0
- /package/{dist/image → image}/index.js +0 -0
- /package/{dist/index.js → index.js} +0 -0
- /package/{dist/jsoneditor → jsoneditor}/JsonEditor.js +0 -0
- /package/{dist/jsoneditor → jsoneditor}/index.js +0 -0
- /package/{dist/keyframe → keyframe}/Pulse.js +0 -0
- /package/{dist/keyframe → keyframe}/Spin.js +0 -0
- /package/{dist/link → link}/LinkSpan.js +0 -0
- /package/{dist/link → link}/index.js +0 -0
- /package/{dist/map → map}/GoogleMap.js +0 -0
- /package/{dist/map → map}/GoogleReverseGeolocation.js +0 -0
- /package/{dist/map → map}/LeafletMap.js +0 -0
- /package/{dist/map → map}/LeafletReverseGeolocation.js +0 -0
- /package/{dist/map → map}/index.js +0 -0
- /package/{dist/map → map}/subComponent/BasicLeafletMap.js +0 -0
- /package/{dist/map → map}/subComponent/GoogleMapContainer.js +0 -0
- /package/{dist/map → map}/subComponent/GoogleMapPopup.js +0 -0
- /package/{dist/map → map}/subComponent/GoogleMapWrapper.js +0 -0
- /package/{dist/map → map}/subComponent/GoogleMarkerSpiderfier.js +0 -0
- /package/{dist/map → map}/subComponent/LeafletDrawControl.js +0 -0
- /package/{dist/map → map}/subComponent/LeafletMapContainer.js +0 -0
- /package/{dist/map → map}/subComponent/MapSearchBoxControl.js +0 -0
- /package/{dist/modal → modal}/StateModal.js +0 -0
- /package/{dist/modal → modal}/TitleModal.js +0 -0
- /package/{dist/modal → modal}/index.js +0 -0
- /package/{dist/paginate → paginate}/Paginate.js +0 -0
- /package/{dist/paginate → paginate}/index.js +0 -0
- /package/{dist/popover → popover}/Popover.js +0 -0
- /package/{dist/popover → popover}/index.js +0 -0
- /package/{dist/qrcode → qrcode}/QRCode.js +0 -0
- /package/{dist/qrcode → qrcode}/QRCodeContainter.js +0 -0
- /package/{dist/qrcode → qrcode}/index.js +0 -0
- /package/{dist/ribbon → ribbon}/Ribbon.js +0 -0
- /package/{dist/ribbon → ribbon}/index.js +0 -0
- /package/{dist/section → section}/Section.js +0 -0
- /package/{dist/section → section}/SectionBody.js +0 -0
- /package/{dist/section → section}/SectionHeader.js +0 -0
- /package/{dist/section → section}/SectionToolbar.js +0 -0
- /package/{dist/section → section}/SectionToolbarItem.js +0 -0
- /package/{dist/section → section}/index.js +0 -0
- /package/{dist/select → select}/InputSelect.js +0 -0
- /package/{dist/select → select}/Select.js +0 -0
- /package/{dist/select → select}/index.js +0 -0
- /package/{dist/select → select}/subComponent/ListBox.js +0 -0
- /package/{dist/select → select}/subComponent/Option.js +0 -0
- /package/{dist/select → select}/subComponent/OptionGroup.js +0 -0
- /package/{dist/select → select}/subComponent/Options.js +0 -0
- /package/{dist/select → select}/subComponent/SearchBox.js +0 -0
- /package/{dist/select → select}/subComponent/SelectedMultiple.js +0 -0
- /package/{dist/select → select}/subComponent/SelectedSingle.js +0 -0
- /package/{dist/styles → styles}/GlobalStyle.js +0 -0
- /package/{dist/styles → styles}/config/breakpoint.style.js +0 -0
- /package/{dist/styles → styles}/config/header.style.js +0 -0
- /package/{dist/styles → styles}/config/sidebar.style.js +0 -0
- /package/{dist/styles → styles}/index.js +0 -0
- /package/{dist/styles → styles}/mixin/backgroundColor.js +0 -0
- /package/{dist/styles → styles}/mixin/borderColor.js +0 -0
- /package/{dist/styles → styles}/mixin/color.js +0 -0
- /package/{dist/styles → styles}/mixin/colorOnBackground.js +0 -0
- /package/{dist/styles → styles}/mixin/inputPlaceholder.js +0 -0
- /package/{dist/styles → styles}/mixin/media.js +0 -0
- /package/{dist/styles → styles}/mixin/rounded.js +0 -0
- /package/{dist/styles → styles}/mixin/scrollbar.js +0 -0
- /package/{dist/styles → styles}/theme/dark.theme.js +0 -0
- /package/{dist/styles → styles}/theme/light.theme.js +0 -0
- /package/{dist/styles → styles}/theme/white.theme.js +0 -0
- /package/{dist/styles → styles}/themes.js +0 -0
- /package/{dist/table → table}/GridTable.js +0 -0
- /package/{dist/table → table}/ImageBox.js +0 -0
- /package/{dist/table → table}/PermissionTable.js +0 -0
- /package/{dist/table → table}/__mock__/columns.js +0 -0
- /package/{dist/table → table}/__mock__/data.js +0 -0
- /package/{dist/table → table}/hooks/index.js +0 -0
- /package/{dist/table → table}/hooks/useCalculateDataRange.js +0 -0
- /package/{dist/table → table}/hooks/useGenerateSort.js +0 -0
- /package/{dist/table → table}/index.js +0 -0
- /package/{dist/table → table}/subComponent/BaseTableHeadCell.js +0 -0
- /package/{dist/table → table}/subComponent/GridTableFooter.js +0 -0
- /package/{dist/table → table}/subComponent/GridTableHeadCell.js +0 -0
- /package/{dist/table → table}/subComponent/Resizer.js +0 -0
- /package/{dist/table → table}/subComponent/TableFooter.js +0 -0
- /package/{dist/table → table}/subComponent/TableFooterInfo.js +0 -0
- /package/{dist/table → table}/subComponent/TableFooterPager.js +0 -0
- /package/{dist/table → table}/subComponent/TableHeadCell.js +0 -0
- /package/{dist/table → table}/subComponent/TableSort.js +0 -0
- /package/{dist/tagify → tagify}/TagifyStyle.js +0 -0
- /package/{dist/tagify → tagify}/Tags.js +0 -0
- /package/{dist/tagify → tagify}/index.js +0 -0
- /package/{dist/text → text}/Paragraph.js +0 -0
- /package/{dist/text → text}/index.js +0 -0
- /package/{dist/timeline → timeline}/Timeline.js +0 -0
- /package/{dist/timeline → timeline}/index.js +0 -0
- /package/{dist/toast → toast}/CustomToastContainer.js +0 -0
- /package/{dist/toast → toast}/MessageContainer.js +0 -0
- /package/{dist/toast → toast}/index.js +0 -0
- /package/{dist/toast → toast}/show.js +0 -0
- /package/{dist/toast → toast}/style.css +0 -0
- /package/{dist/tooltip → tooltip}/Tooltip.js +0 -0
- /package/{dist/tooltip → tooltip}/index.js +0 -0
- /package/{dist/wizard → wizard}/Wizard.js +0 -0
- /package/{dist/wizard → wizard}/index.js +0 -0
package/package.json
CHANGED
|
@@ -1,59 +1,50 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@cashub/ui",
|
|
3
|
-
"version": "0.22.
|
|
4
|
-
"private": false,
|
|
5
|
-
"author": "CASHUB Team",
|
|
6
|
-
"description": "CASHUB UI components library",
|
|
7
|
-
"main": "index.js",
|
|
8
|
-
"keywords": [
|
|
9
|
-
"CASHUB"
|
|
10
|
-
],
|
|
11
|
-
"license": "MIT",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"leaflet
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"react-
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"react
|
|
45
|
-
"react-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
"peerDependencies": {
|
|
53
|
-
"react": "^17.0.1",
|
|
54
|
-
"react-dom": "^17.0.1"
|
|
55
|
-
},
|
|
56
|
-
"publishConfig": {
|
|
57
|
-
"access": "public"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@cashub/ui",
|
|
3
|
+
"version": "0.22.11",
|
|
4
|
+
"private": false,
|
|
5
|
+
"author": "CASHUB Team",
|
|
6
|
+
"description": "CASHUB UI components library",
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"CASHUB"
|
|
10
|
+
],
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@cashub/hooks": "^0.3.1",
|
|
14
|
+
"@cashub/utils": "^0.5.0",
|
|
15
|
+
"@googlemaps/markerclusterer": "^2.5.1",
|
|
16
|
+
"@googlemaps/react-wrapper": "^1.1.35",
|
|
17
|
+
"@popperjs/core": "^2.11.5",
|
|
18
|
+
"@yaireo/tagify": "^4.12.0",
|
|
19
|
+
"brace": "^0.11.1",
|
|
20
|
+
"chart.js": "^3.8.0",
|
|
21
|
+
"cropperjs": "^1.5.12",
|
|
22
|
+
"jsoneditor": "^9.8.0",
|
|
23
|
+
"jsoneditor-react": "^3.1.2",
|
|
24
|
+
"leaflet": "^1.7.1",
|
|
25
|
+
"leaflet-draw": "^1.0.4",
|
|
26
|
+
"lodash.uniqueid": "^4.0.1",
|
|
27
|
+
"moment": "^2.29.3",
|
|
28
|
+
"overlapping-marker-spiderfier": "^1.1.4",
|
|
29
|
+
"qrcode.react": "^3.0.2",
|
|
30
|
+
"rc-time-picker": "^3.7.3",
|
|
31
|
+
"react-chartjs-2": "^3.3.0",
|
|
32
|
+
"react-datepicker": "^4.8.0",
|
|
33
|
+
"react-helmet-async": "^2.0.3",
|
|
34
|
+
"react-leaflet": "^3.1.0",
|
|
35
|
+
"react-leaflet-markercluster": "^3.0.0-rc1",
|
|
36
|
+
"react-outside-click-handler": "^1.3.0",
|
|
37
|
+
"react-popper": "^2.3.0",
|
|
38
|
+
"react-router-dom": "^5.2.0",
|
|
39
|
+
"react-toastify": "^7.0.4",
|
|
40
|
+
"react-transition-group": "^4.4.2",
|
|
41
|
+
"styled-components": "^5.3.0"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"react": "^17.0.1",
|
|
45
|
+
"react-dom": "^17.0.1"
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -166,6 +166,7 @@ const Table = _ref => {
|
|
|
166
166
|
}
|
|
167
167
|
let isCustom = false;
|
|
168
168
|
let renderedData = null;
|
|
169
|
+
const customContent = customPop ? customPop(value, row) : null;
|
|
169
170
|
if (custom && render) {
|
|
170
171
|
// call render function to get custom data(fully)
|
|
171
172
|
isCustom = true;
|
|
@@ -174,7 +175,7 @@ const Table = _ref => {
|
|
|
174
175
|
// call render function to get custom data(part)
|
|
175
176
|
renderedData = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
176
177
|
id: key,
|
|
177
|
-
onClick: event => showFullValue(event,
|
|
178
|
+
onClick: event => showFullValue(event, customContent),
|
|
178
179
|
children: render ? render(value, row) : String(value)
|
|
179
180
|
});
|
|
180
181
|
}
|
package/dist/package.json
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@cashub/ui",
|
|
3
|
-
"version": "0.22.9",
|
|
4
|
-
"private": false,
|
|
5
|
-
"author": "CASHUB Team",
|
|
6
|
-
"description": "CASHUB UI components library",
|
|
7
|
-
"main": "index.js",
|
|
8
|
-
"keywords": [
|
|
9
|
-
"CASHUB"
|
|
10
|
-
],
|
|
11
|
-
"license": "MIT",
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"@cashub/hooks": "^0.3.1",
|
|
14
|
-
"@cashub/utils": "^0.5.0",
|
|
15
|
-
"@googlemaps/markerclusterer": "^2.5.1",
|
|
16
|
-
"@googlemaps/react-wrapper": "^1.1.35",
|
|
17
|
-
"@popperjs/core": "^2.11.5",
|
|
18
|
-
"@yaireo/tagify": "^4.12.0",
|
|
19
|
-
"brace": "^0.11.1",
|
|
20
|
-
"chart.js": "^3.8.0",
|
|
21
|
-
"cropperjs": "^1.5.12",
|
|
22
|
-
"jsoneditor": "^9.8.0",
|
|
23
|
-
"jsoneditor-react": "^3.1.2",
|
|
24
|
-
"leaflet": "^1.7.1",
|
|
25
|
-
"leaflet-draw": "^1.0.4",
|
|
26
|
-
"lodash.uniqueid": "^4.0.1",
|
|
27
|
-
"moment": "^2.29.3",
|
|
28
|
-
"overlapping-marker-spiderfier": "^1.1.4",
|
|
29
|
-
"qrcode.react": "^3.0.2",
|
|
30
|
-
"rc-time-picker": "^3.7.3",
|
|
31
|
-
"react-chartjs-2": "^3.3.0",
|
|
32
|
-
"react-datepicker": "^4.8.0",
|
|
33
|
-
"react-helmet-async": "^2.0.3",
|
|
34
|
-
"react-leaflet": "^3.1.0",
|
|
35
|
-
"react-leaflet-markercluster": "^3.0.0-rc1",
|
|
36
|
-
"react-outside-click-handler": "^1.3.0",
|
|
37
|
-
"react-popper": "^2.3.0",
|
|
38
|
-
"react-router-dom": "^5.2.0",
|
|
39
|
-
"react-toastify": "^7.0.4",
|
|
40
|
-
"react-transition-group": "^4.4.2",
|
|
41
|
-
"styled-components": "^5.3.0"
|
|
42
|
-
},
|
|
43
|
-
"peerDependencies": {
|
|
44
|
-
"react": "^17.0.1",
|
|
45
|
-
"react-dom": "^17.0.1"
|
|
46
|
-
},
|
|
47
|
-
"publishConfig": {
|
|
48
|
-
"access": "public"
|
|
49
|
-
}
|
|
50
|
-
}
|
package/setupTests.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
|
2
|
-
// allows you to do things like:
|
|
3
|
-
// expect(element).toHaveTextContent(/react/i)
|
|
4
|
-
// learn more: https://github.com/testing-library/jest-dom
|
|
5
|
-
import '@testing-library/jest-dom';
|
|
6
|
-
|
|
7
|
-
// mock ResizeObserverModule
|
|
8
|
-
import * as ResizeObserverModule from 'resize-observer-polyfill';
|
|
9
|
-
global.ResizeObserver = ResizeObserverModule.default;
|
package/src/Tab/Tab.js
DELETED
package/src/Tab/TabList.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
const TabList = ({ children, ...props }) => {
|
|
4
|
-
return (
|
|
5
|
-
<Container role='tablist' {...props}>
|
|
6
|
-
{children}
|
|
7
|
-
</Container>
|
|
8
|
-
);
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const Container = styled.div`
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-wrap: wrap;
|
|
14
|
-
border-bottom: var(--border-width) solid var(--border-color);
|
|
15
|
-
margin-bottom: var(--spacing);
|
|
16
|
-
|
|
17
|
-
${({ noMargin }) => noMargin && 'margin-bottom: 0;'}
|
|
18
|
-
`;
|
|
19
|
-
|
|
20
|
-
export default TabList;
|
package/src/Tab/TabPanel.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { useContext, useEffect, useState, useMemo } from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import TabContext from './subComponent/TabContext';
|
|
4
|
-
|
|
5
|
-
const TabPanel = ({ children, name, ...props }) => {
|
|
6
|
-
const { selected } = useContext(TabContext);
|
|
7
|
-
const [rendered, setRendered] = useState(false);
|
|
8
|
-
|
|
9
|
-
const tabContent = useMemo(() => {
|
|
10
|
-
if (rendered) {
|
|
11
|
-
return children;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
return null;
|
|
15
|
-
}, [rendered, children]);
|
|
16
|
-
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
if (name === selected) {
|
|
19
|
-
setRendered(true);
|
|
20
|
-
}
|
|
21
|
-
}, [selected, name]);
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<Panel role='tabpanel' $display={selected === name} {...props}>
|
|
25
|
-
{tabContent}
|
|
26
|
-
</Panel>
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
const Panel = styled.div`
|
|
31
|
-
display: ${({ $display }) => ($display ? 'block' : 'none')};
|
|
32
|
-
position: relative;
|
|
33
|
-
`;
|
|
34
|
-
|
|
35
|
-
export default TabPanel;
|
package/src/Tab/TabTab.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { useContext, useCallback } from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import TabContext from './subComponent/TabContext';
|
|
4
|
-
|
|
5
|
-
const TabTab = ({ children, name, ...props }) => {
|
|
6
|
-
const { selected, onChange } = useContext(TabContext);
|
|
7
|
-
|
|
8
|
-
const handleClick = useCallback(() => {
|
|
9
|
-
if (selected !== name) {
|
|
10
|
-
onChange(name);
|
|
11
|
-
}
|
|
12
|
-
}, [name, selected, onChange]);
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<Tab role='tab' onClick={handleClick} active={selected === name} {...props}>
|
|
16
|
-
{children}
|
|
17
|
-
</Tab>
|
|
18
|
-
);
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const Tab = styled.button`
|
|
22
|
-
background: transparent;
|
|
23
|
-
color: var(--font-on-mute);
|
|
24
|
-
padding: 10px var(--spacing-s);
|
|
25
|
-
border: none;
|
|
26
|
-
border-bottom: 4px solid transparent;
|
|
27
|
-
transition: color 0.3s, border 0.3s;
|
|
28
|
-
cursor: pointer;
|
|
29
|
-
|
|
30
|
-
&:hover {
|
|
31
|
-
color: var(--font-on-background);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
${({ active }) =>
|
|
35
|
-
active &&
|
|
36
|
-
`
|
|
37
|
-
border-color: var(--color-primary);
|
|
38
|
-
color: var(--font-on-background);
|
|
39
|
-
`}
|
|
40
|
-
`;
|
|
41
|
-
|
|
42
|
-
export default TabTab;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
import Tab from '../';
|
|
3
|
-
|
|
4
|
-
const metadata = {
|
|
5
|
-
title: 'Tab/Tab',
|
|
6
|
-
component: Tab,
|
|
7
|
-
argTypes: {
|
|
8
|
-
onChange: {
|
|
9
|
-
action: '123',
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const Template = (args) => {
|
|
15
|
-
const { onChange } = args;
|
|
16
|
-
const [selectedTab, setSelectedTab] = useState('dashboard');
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<Tab
|
|
20
|
-
selected={selectedTab}
|
|
21
|
-
onChange={(event) => {
|
|
22
|
-
setSelectedTab(event);
|
|
23
|
-
onChange();
|
|
24
|
-
}}
|
|
25
|
-
>
|
|
26
|
-
<Tab.List>
|
|
27
|
-
<Tab.Tab name='dashboard'>Dashboard</Tab.Tab>
|
|
28
|
-
<Tab.Tab name='information'>Information</Tab.Tab>
|
|
29
|
-
<Tab.Tab name='license'>License</Tab.Tab>
|
|
30
|
-
</Tab.List>
|
|
31
|
-
<Tab.Panel name='dashboard' style={{ color: '#ffff' }}>
|
|
32
|
-
Dashboard Content
|
|
33
|
-
</Tab.Panel>
|
|
34
|
-
<Tab.Panel name='information' style={{ color: '#ffff' }}>
|
|
35
|
-
Information Content
|
|
36
|
-
</Tab.Panel>
|
|
37
|
-
<Tab.Panel name='license' style={{ color: '#ffff' }}>
|
|
38
|
-
License Content
|
|
39
|
-
</Tab.Panel>
|
|
40
|
-
</Tab>
|
|
41
|
-
);
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const Default = Template.bind({});
|
|
45
|
-
Default.args = {};
|
|
46
|
-
|
|
47
|
-
export default metadata;
|
|
48
|
-
export { Default };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import Tab from '../';
|
|
2
|
-
|
|
3
|
-
const metadata = {
|
|
4
|
-
title: 'Tab/TabList',
|
|
5
|
-
component: Tab,
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const Template = (args) => {
|
|
9
|
-
return (
|
|
10
|
-
<>
|
|
11
|
-
<Tab>
|
|
12
|
-
<Tab.List style={{ color: '#ffff' }} {...args}></Tab.List>
|
|
13
|
-
</Tab>
|
|
14
|
-
<p style={{ color: '#ffff' }}>content</p>
|
|
15
|
-
</>
|
|
16
|
-
);
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const Default = Template.bind({});
|
|
20
|
-
Default.args = {
|
|
21
|
-
children: 'this is a tab list',
|
|
22
|
-
noMargin: false,
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export default metadata;
|
|
26
|
-
export { Default };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
import Tab from '../';
|
|
3
|
-
|
|
4
|
-
const metadata = {
|
|
5
|
-
title: 'Tab/TabPanel',
|
|
6
|
-
component: Tab,
|
|
7
|
-
argTypes: {
|
|
8
|
-
children: {
|
|
9
|
-
description: 'TabPanel contnet',
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const Template = (args) => {
|
|
15
|
-
const [selectedTab, setSelectedTab] = useState('dashboard');
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<Tab selected={selectedTab} onChange={setSelectedTab}>
|
|
19
|
-
<Tab.List>
|
|
20
|
-
<Tab.Tab name='dashboard'>Dashboard</Tab.Tab>
|
|
21
|
-
<Tab.Tab name='information'>Information</Tab.Tab>
|
|
22
|
-
<Tab.Tab name='license'>License</Tab.Tab>
|
|
23
|
-
</Tab.List>
|
|
24
|
-
<Tab.Panel
|
|
25
|
-
name='dashboard'
|
|
26
|
-
style={{ color: '#ffff' }}
|
|
27
|
-
{...args}
|
|
28
|
-
></Tab.Panel>
|
|
29
|
-
<Tab.Panel
|
|
30
|
-
name='information'
|
|
31
|
-
style={{ color: 'orange' }}
|
|
32
|
-
{...args}
|
|
33
|
-
></Tab.Panel>
|
|
34
|
-
<Tab.Panel name='license' style={{ color: 'red' }} {...args}></Tab.Panel>
|
|
35
|
-
</Tab>
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
const Default = Template.bind({});
|
|
40
|
-
Default.args = {
|
|
41
|
-
children: <p>content</p>,
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export default metadata;
|
|
45
|
-
export { Default };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import Tab from '../';
|
|
2
|
-
|
|
3
|
-
const metadata = {
|
|
4
|
-
title: 'Tab/TabTab',
|
|
5
|
-
component: Tab,
|
|
6
|
-
argTypes: {
|
|
7
|
-
name: {
|
|
8
|
-
// description: "name",
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const Template = (args) => {
|
|
14
|
-
return (
|
|
15
|
-
<Tab>
|
|
16
|
-
<Tab.List>
|
|
17
|
-
<Tab.Tab name='dashboard' {...args}></Tab.Tab>
|
|
18
|
-
</Tab.List>
|
|
19
|
-
</Tab>
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const Default = Template.bind({});
|
|
24
|
-
Default.args = {
|
|
25
|
-
children: 'Dashboard',
|
|
26
|
-
// name: "dashboard",
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export default metadata;
|
|
30
|
-
export { Default };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { render, screen } from '@testing-library/react';
|
|
2
|
-
import 'jest-styled-components';
|
|
3
|
-
import Tab from '../Tab';
|
|
4
|
-
|
|
5
|
-
jest.mock('../subComponent/TabContext', () => {
|
|
6
|
-
return {
|
|
7
|
-
Provider: ({ value, children }) => {
|
|
8
|
-
return (
|
|
9
|
-
<div>
|
|
10
|
-
{children}
|
|
11
|
-
<div>selected: {value.selected}</div>
|
|
12
|
-
<div>onChange: {typeof value.onChange}</div>
|
|
13
|
-
</div>
|
|
14
|
-
);
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
describe('Test Tab Component', () => {
|
|
20
|
-
test('render Tab', () => {
|
|
21
|
-
render(<Tab>Tab content</Tab>);
|
|
22
|
-
|
|
23
|
-
const tab = screen.getByText('Tab content');
|
|
24
|
-
expect(tab).toBeInTheDocument();
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
test('context', () => {
|
|
28
|
-
const onChangeFunction = jest.fn();
|
|
29
|
-
const selectedValue = 'dashboard';
|
|
30
|
-
|
|
31
|
-
render(
|
|
32
|
-
<Tab onChange={onChangeFunction} selected={selectedValue}>
|
|
33
|
-
Tab content
|
|
34
|
-
</Tab>,
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
const selected = screen.getByText('selected: dashboard');
|
|
38
|
-
expect(selected).toBeInTheDocument();
|
|
39
|
-
|
|
40
|
-
const onChange = screen.getByText('onChange: function');
|
|
41
|
-
expect(onChange).toBeInTheDocument();
|
|
42
|
-
});
|
|
43
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { render, screen } from '@testing-library/react';
|
|
2
|
-
import 'jest-styled-components';
|
|
3
|
-
import TabList from '../TabList';
|
|
4
|
-
|
|
5
|
-
describe('Test TabList Component', () => {
|
|
6
|
-
test('render Tab list', () => {
|
|
7
|
-
render(<TabList>TabList content</TabList>);
|
|
8
|
-
|
|
9
|
-
const tablist = screen.getByRole('tablist');
|
|
10
|
-
expect(tablist).toBeInTheDocument();
|
|
11
|
-
|
|
12
|
-
const tabListChildren = screen.getByText('TabList content');
|
|
13
|
-
expect(tabListChildren).toBeInTheDocument();
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
test('variant style', () => {
|
|
17
|
-
render(<TabList noMargin>TabList content</TabList>);
|
|
18
|
-
|
|
19
|
-
const tablist = screen.getByRole('tablist');
|
|
20
|
-
expect(tablist).toHaveStyle('margin-bottom: 0');
|
|
21
|
-
});
|
|
22
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { render, screen } from '@testing-library/react';
|
|
2
|
-
import 'jest-styled-components';
|
|
3
|
-
import TabContext from '../subComponent/TabContext';
|
|
4
|
-
import TabPanel from '../TabPanel';
|
|
5
|
-
|
|
6
|
-
describe('Test TabPanel Component', () => {
|
|
7
|
-
const onChange = jest.fn();
|
|
8
|
-
const selected = 'dashboard';
|
|
9
|
-
|
|
10
|
-
test('render TabPanel', () => {
|
|
11
|
-
render(
|
|
12
|
-
<TabContext.Provider value={{ selected, onChange }}>
|
|
13
|
-
<TabPanel name='dashboard'>dashboard</TabPanel>
|
|
14
|
-
</TabContext.Provider>,
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
const tabpanel = screen.getByRole('tabpanel');
|
|
18
|
-
expect(tabpanel).toBeInTheDocument();
|
|
19
|
-
|
|
20
|
-
const tabPanelChildren = screen.getByText('dashboard');
|
|
21
|
-
expect(tabPanelChildren).toBeInTheDocument();
|
|
22
|
-
|
|
23
|
-
expect(tabpanel).toHaveStyle({
|
|
24
|
-
display: 'block',
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
});
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { render, screen } from '@testing-library/react';
|
|
2
|
-
import 'jest-styled-components';
|
|
3
|
-
import TabContext from '../subComponent/TabContext';
|
|
4
|
-
import TabTab from '../TabTab';
|
|
5
|
-
import userEvent from '@testing-library/user-event';
|
|
6
|
-
|
|
7
|
-
describe('Test TabTab Component', () => {
|
|
8
|
-
const onChange = jest.fn();
|
|
9
|
-
const selected = 'dashboard';
|
|
10
|
-
|
|
11
|
-
test('render TabTab', () => {
|
|
12
|
-
render(
|
|
13
|
-
<TabContext.Provider value={{ selected, onChange }}>
|
|
14
|
-
<TabTab name='information'>Information</TabTab>
|
|
15
|
-
</TabContext.Provider>,
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
const tab = screen.getByRole('tab');
|
|
19
|
-
expect(tab).toBeInTheDocument();
|
|
20
|
-
|
|
21
|
-
const tabChildren = screen.getByText('Information');
|
|
22
|
-
expect(tabChildren).toBeInTheDocument();
|
|
23
|
-
|
|
24
|
-
userEvent.hover(tab);
|
|
25
|
-
expect(tab).toHaveStyleRule('color', 'var(--color-white)', {
|
|
26
|
-
modifier: ':hover',
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
test('on change', () => {
|
|
31
|
-
render(
|
|
32
|
-
<TabContext.Provider value={{ selected, onChange }}>
|
|
33
|
-
<TabTab name='information'>Information</TabTab>
|
|
34
|
-
</TabContext.Provider>,
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
const tab = screen.getByRole('tab');
|
|
38
|
-
expect(tab).toBeInTheDocument();
|
|
39
|
-
|
|
40
|
-
const tabChildren = screen.getByText('Information');
|
|
41
|
-
expect(tabChildren).toBeInTheDocument();
|
|
42
|
-
|
|
43
|
-
userEvent.click(tab);
|
|
44
|
-
expect(onChange).toHaveBeenCalledTimes(1);
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
test('variant style', () => {
|
|
48
|
-
render(
|
|
49
|
-
<TabContext.Provider value={{ selected, onChange }}>
|
|
50
|
-
<TabTab name='dashboard'>Dashboard</TabTab>
|
|
51
|
-
</TabContext.Provider>,
|
|
52
|
-
);
|
|
53
|
-
|
|
54
|
-
const tab = screen.getByText('Dashboard', { selector: 'button' });
|
|
55
|
-
expect(tab).toHaveStyleRule('border-color', 'var(--color-primary)');
|
|
56
|
-
expect(tab).toHaveStyleRule('color', 'var(--color-white)');
|
|
57
|
-
});
|
|
58
|
-
});
|
package/src/Tab/index.js
DELETED