@sebgroup/green-react 3.36.0 → 4.0.0-rc.20260326093457188
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/_rollupPluginBabelHelpers.js +33 -1
- package/index.js +4 -5
- package/package.json +2 -3
- package/src/index.js +4 -5
- package/src/lib/accordion/accordion-item.js +12 -12
- package/src/lib/accordion/accordion.js +5 -5
- package/src/lib/accordion/index.js +2 -2
- package/src/lib/alert-ribbon/alert-ribbon.js +23 -24
- package/src/lib/alert-ribbon/index.js +2 -3
- package/src/lib/badge/badge.js +16 -16
- package/src/lib/badge/index.js +1 -2
- package/src/lib/breadcrumb/breadcrumb.js +8 -8
- package/src/lib/breadcrumb/index.js +1 -1
- package/src/lib/card/card.js +6 -4
- package/src/lib/context-menu/context-menu.js +1 -0
- package/src/lib/datepicker/datepicker.js +20 -19
- package/src/lib/datepicker/index.js +2 -2
- package/src/lib/dropdown/dropdown.js +38 -36
- package/src/lib/dropdown/index.js +2 -2
- package/src/lib/filter-chips/filter-chips.js +1 -0
- package/src/lib/form/button/button.js +19 -18
- package/src/lib/form/button/index.js +2 -2
- package/src/lib/form/buttonGroup/buttonGroup.js +11 -10
- package/src/lib/form/buttonGroup/index.js +3 -3
- package/src/lib/form/checkbox/checkbox.js +27 -26
- package/src/lib/form/checkbox/index.js +3 -3
- package/src/lib/form/form.js +2 -3
- package/src/lib/form/formContext.js +15 -15
- package/src/lib/form/formItems.js +10 -9
- package/src/lib/form/group/group.js +9 -9
- package/src/lib/form/group/index.js +1 -1
- package/src/lib/form/iconButton/iconButton.js +3 -3
- package/src/lib/form/iconButton/index.js +2 -2
- package/src/lib/form/index.js +4 -4
- package/src/lib/form/input/index.js +4 -4
- package/src/lib/form/input/input.js +42 -40
- package/src/lib/form/radioButton/index.js +4 -4
- package/src/lib/form/radioButton/radioButton.js +16 -14
- package/src/lib/form/radioButton/radioGroup.js +12 -12
- package/src/lib/form/text/text.js +2 -2
- package/src/lib/form/textarea/index.js +3 -3
- package/src/lib/form/textarea/textarea.js +35 -34
- package/src/lib/form/useInput.js +2 -2
- package/src/lib/form/validateInput.js +7 -5
- package/src/lib/formItem/formItem.js +49 -30
- package/src/lib/formItem/index.js +3 -3
- package/src/lib/icon/icons/index.js +1 -1
- package/src/lib/icons/bankId.js +30 -33
- package/src/lib/icons/check.js +5 -9
- package/src/lib/icons/chevronDown.js +5 -9
- package/src/lib/icons/edit.js +18 -20
- package/src/lib/icons/index.js +3 -2
- package/src/lib/icons/infoCircle.js +12 -14
- package/src/lib/icons/square-exclamation.js +12 -14
- package/src/lib/icons/square-info.js +10 -13
- package/src/lib/icons/times.js +4 -8
- package/src/lib/in-page-wizard/inPageWizardStepCard.js +24 -23
- package/src/lib/in-page-wizard/index.js +4 -3
- package/src/lib/layout/flexbox/flexbox.js +16 -14
- package/src/lib/layout/index.js +1 -2
- package/src/lib/link/index.js +2 -2
- package/src/lib/link/link.js +20 -15
- package/src/lib/list/index.js +3 -3
- package/src/lib/list/list.js +21 -19
- package/src/lib/list/listItem.js +15 -13
- package/src/lib/modal/index.js +2 -3
- package/src/lib/modal/modal.js +43 -42
- package/src/lib/navbar/index.js +1 -2
- package/src/lib/navbar/navbar.js +12 -13
- package/src/lib/popover/popover.js +1 -0
- package/src/lib/segmented-control/index.js +2 -2
- package/src/lib/segmented-control/segmented-control.js +19 -14
- package/src/lib/select/index.js +3 -3
- package/src/lib/select/select.js +29 -28
- package/src/lib/shared/form-info.js +1 -0
- package/src/lib/shared/id.js +11 -0
- package/src/lib/shared/types.js +1 -0
- package/src/lib/shared/validator.js +12 -0
- package/src/lib/slider/index.js +2 -2
- package/src/lib/slider/slider.js +26 -19
- package/src/lib/stepper/index.js +2 -2
- package/src/lib/stepper/stepper.js +35 -33
- package/src/lib/table/components/Table.js +14 -14
- package/src/lib/table/components/index.js +0 -1
- package/src/lib/table/components/parts/TableBody/TableBody.js +9 -8
- package/src/lib/table/components/parts/TableBody/index.js +2 -2
- package/src/lib/table/components/parts/TableCell/TableCell.js +5 -5
- package/src/lib/table/components/parts/TableCell/index.js +2 -2
- package/src/lib/table/components/parts/TableHeader/TableHeader.js +7 -7
- package/src/lib/table/components/parts/TableHeader/index.js +2 -2
- package/src/lib/table/components/parts/TableHeaderCell/TableHeaderCell.js +23 -22
- package/src/lib/table/components/parts/TableHeaderCell/index.js +1 -2
- package/src/lib/table/components/parts/TableRow/TableRow.js +39 -40
- package/src/lib/table/components/parts/TableRow/index.js +1 -2
- package/src/lib/table/components/parts/helperFunctions/helperFunctions.js +11 -7
- package/src/lib/table/components/table-typings.js +3 -3
- package/src/lib/table/index.js +0 -1
- package/src/lib/table/story/multiple-story-tables.js +30 -31
- package/src/lib/tabs/index.js +1 -1
- package/src/lib/tabs/tabs.js +12 -12
- package/_tslib.js +0 -35
- package/src/index.d.ts +0 -27
- package/src/lib/accordion/accordion-item.d.ts +0 -19
- package/src/lib/accordion/accordion.d.ts +0 -9
- package/src/lib/accordion/index.d.ts +0 -2
- package/src/lib/alert-ribbon/alert-ribbon.d.ts +0 -19
- package/src/lib/alert-ribbon/index.d.ts +0 -1
- package/src/lib/badge/badge.d.ts +0 -25
- package/src/lib/badge/index.d.ts +0 -1
- package/src/lib/breadcrumb/breadcrumb.d.ts +0 -10
- package/src/lib/breadcrumb/index.d.ts +0 -1
- package/src/lib/card/card.d.ts +0 -11
- package/src/lib/card/index.d.ts +0 -1
- package/src/lib/context-menu/context-menu.d.ts +0 -12
- package/src/lib/context-menu/index.d.ts +0 -1
- package/src/lib/datepicker/datepicker.d.ts +0 -98
- package/src/lib/datepicker/index.d.ts +0 -1
- package/src/lib/dropdown/dropdown.d.ts +0 -67
- package/src/lib/dropdown/index.d.ts +0 -1
- package/src/lib/filter-chips/filter-chips.d.ts +0 -6
- package/src/lib/filter-chips/index.d.ts +0 -1
- package/src/lib/form/button/button.d.ts +0 -17
- package/src/lib/form/button/index.d.ts +0 -1
- package/src/lib/form/buttonGroup/buttonGroup.d.ts +0 -13
- package/src/lib/form/buttonGroup/index.d.ts +0 -1
- package/src/lib/form/checkbox/checkbox.d.ts +0 -18
- package/src/lib/form/checkbox/index.d.ts +0 -1
- package/src/lib/form/form.d.ts +0 -10
- package/src/lib/form/formContext.d.ts +0 -13
- package/src/lib/form/formItems.d.ts +0 -10
- package/src/lib/form/group/group.d.ts +0 -13
- package/src/lib/form/group/index.d.ts +0 -1
- package/src/lib/form/iconButton/iconButton.d.ts +0 -2
- package/src/lib/form/iconButton/index.d.ts +0 -1
- package/src/lib/form/index.d.ts +0 -12
- package/src/lib/form/input/index.d.ts +0 -1
- package/src/lib/form/input/input.d.ts +0 -53
- package/src/lib/form/radioButton/index.d.ts +0 -2
- package/src/lib/form/radioButton/radioButton.d.ts +0 -9
- package/src/lib/form/radioButton/radioGroup.d.ts +0 -21
- package/src/lib/form/text/index.d.ts +0 -1
- package/src/lib/form/text/text.d.ts +0 -9
- package/src/lib/form/textarea/index.d.ts +0 -1
- package/src/lib/form/textarea/textarea.d.ts +0 -23
- package/src/lib/form/useInput.d.ts +0 -5
- package/src/lib/form/validateInput.d.ts +0 -9
- package/src/lib/formItem/formItem.d.ts +0 -14
- package/src/lib/formItem/index.d.ts +0 -1
- package/src/lib/grouped-list/grouped-list.d.ts +0 -3
- package/src/lib/grouped-list/index.d.ts +0 -1
- package/src/lib/icon/icons/IconAi.d.ts +0 -1
- package/src/lib/icon/icons/IconAirplaneUp.d.ts +0 -1
- package/src/lib/icon/icons/IconArchive.d.ts +0 -1
- package/src/lib/icon/icons/IconArrow.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowBottomTop.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowBoxLeft.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowBoxLeftAlt.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowBoxRight.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowDown.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowInbox.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowLeft.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowLeftRight.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowOutOfBox.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowRight.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowRightCircle.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowRightDownCircle.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowRightUpCircle.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowRotateClockwise.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowRotateCounterClockwise.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowRotateLeftRight.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowRotateRightLeft.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowShareLeft.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowShareRight.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowSplit.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowUp.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowWallDown.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowWallLeft.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowWallRight.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowWallUp.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowsRepeat.d.ts +0 -1
- package/src/lib/icon/icons/IconArrowsRepeat.js +0 -1
- package/src/lib/icon/icons/IconAsterisk.d.ts +0 -1
- package/src/lib/icon/icons/IconAt.d.ts +0 -1
- package/src/lib/icon/icons/IconBack.d.ts +0 -1
- package/src/lib/icon/icons/IconBackward.d.ts +0 -1
- package/src/lib/icon/icons/IconBag.d.ts +0 -1
- package/src/lib/icon/icons/IconBank.d.ts +0 -1
- package/src/lib/icon/icons/IconBanknote.d.ts +0 -1
- package/src/lib/icon/icons/IconBanknote2.d.ts +0 -1
- package/src/lib/icon/icons/IconBarcode.d.ts +0 -1
- package/src/lib/icon/icons/IconBarsThree.d.ts +0 -1
- package/src/lib/icon/icons/IconBarsTwo.d.ts +0 -1
- package/src/lib/icon/icons/IconBasket.d.ts +0 -1
- package/src/lib/icon/icons/IconBatteryLoading.d.ts +0 -1
- package/src/lib/icon/icons/IconBell.d.ts +0 -1
- package/src/lib/icon/icons/IconBlock.d.ts +0 -1
- package/src/lib/icon/icons/IconBook.d.ts +0 -1
- package/src/lib/icon/icons/IconBookmark.d.ts +0 -1
- package/src/lib/icon/icons/IconBookmarkCheck.d.ts +0 -1
- package/src/lib/icon/icons/IconBookmarkDelete.d.ts +0 -1
- package/src/lib/icon/icons/IconBookmarkPlus.d.ts +0 -1
- package/src/lib/icon/icons/IconBookmarkRemove.d.ts +0 -1
- package/src/lib/icon/icons/IconBooks.d.ts +0 -1
- package/src/lib/icon/icons/IconBrandAppStore.d.ts +0 -1
- package/src/lib/icon/icons/IconBrandAppleMusic.d.ts +0 -1
- package/src/lib/icon/icons/IconBrandBankid.d.ts +0 -1
- package/src/lib/icon/icons/IconBrandChrome.d.ts +0 -1
- package/src/lib/icon/icons/IconBrandFacebook.d.ts +0 -1
- package/src/lib/icon/icons/IconBrandFigma.d.ts +0 -1
- package/src/lib/icon/icons/IconBrandFirefox.d.ts +0 -1
- package/src/lib/icon/icons/IconBrandGithub.d.ts +0 -1
- package/src/lib/icon/icons/IconBrandGreen.d.ts +0 -1
- package/src/lib/icon/icons/IconBrandInstagram.d.ts +0 -1
- package/src/lib/icon/icons/IconBrandLinkedin.d.ts +0 -1
- package/src/lib/icon/icons/IconBrandPlayStore.d.ts +0 -1
- package/src/lib/icon/icons/IconBrandRssFeed.d.ts +0 -1
- package/src/lib/icon/icons/IconBrandSeb.d.ts +0 -1
- package/src/lib/icon/icons/IconBrandSpotify.d.ts +0 -1
- package/src/lib/icon/icons/IconBrandStorybook.d.ts +0 -1
- package/src/lib/icon/icons/IconBrandSwishWord.d.ts +0 -1
- package/src/lib/icon/icons/IconBrandX.d.ts +0 -1
- package/src/lib/icon/icons/IconBrush.d.ts +0 -1
- package/src/lib/icon/icons/IconBubble.d.ts +0 -1
- package/src/lib/icon/icons/IconBubble.js +0 -1
- package/src/lib/icon/icons/IconBubbleAnnotation.d.ts +0 -1
- package/src/lib/icon/icons/IconBubbleDots.d.ts +0 -1
- package/src/lib/icon/icons/IconBubbleDots.js +0 -1
- package/src/lib/icon/icons/IconBubbleQuestion.d.ts +0 -1
- package/src/lib/icon/icons/IconBubbleQuestion.js +0 -1
- package/src/lib/icon/icons/IconBubbleQuotes.d.ts +0 -1
- package/src/lib/icon/icons/IconBubbleQuotes.js +0 -1
- package/src/lib/icon/icons/IconBubbleText.d.ts +0 -1
- package/src/lib/icon/icons/IconBubbleText.js +0 -1
- package/src/lib/icon/icons/IconBubbleWideAnnotation.d.ts +0 -1
- package/src/lib/icon/icons/IconBubbleWideAnnotation.js +0 -1
- package/src/lib/icon/icons/IconBubbles.d.ts +0 -1
- package/src/lib/icon/icons/IconBuildings.d.ts +0 -1
- package/src/lib/icon/icons/IconBulletList.d.ts +0 -1
- package/src/lib/icon/icons/IconCainLink.d.ts +0 -1
- package/src/lib/icon/icons/IconCainLink.js +0 -1
- package/src/lib/icon/icons/IconCalculator.d.ts +0 -1
- package/src/lib/icon/icons/IconCalendar.d.ts +0 -1
- package/src/lib/icon/icons/IconCalendarCheck.d.ts +0 -1
- package/src/lib/icon/icons/IconCalenderAdd.d.ts +0 -1
- package/src/lib/icon/icons/IconCall.d.ts +0 -1
- package/src/lib/icon/icons/IconCar.d.ts +0 -1
- package/src/lib/icon/icons/IconCarussel.d.ts +0 -1
- package/src/lib/icon/icons/IconChainLink.d.ts +0 -1
- package/src/lib/icon/icons/IconChainLinkBroken.d.ts +0 -1
- package/src/lib/icon/icons/IconChargingStation.d.ts +0 -1
- package/src/lib/icon/icons/IconChargingStation.js +0 -1
- package/src/lib/icon/icons/IconChartOne.d.ts +0 -1
- package/src/lib/icon/icons/IconChartOne.js +0 -1
- package/src/lib/icon/icons/IconChartPresentation.d.ts +0 -1
- package/src/lib/icon/icons/IconChartPresentation.js +0 -1
- package/src/lib/icon/icons/IconChartTwo.d.ts +0 -1
- package/src/lib/icon/icons/IconChecklist.d.ts +0 -1
- package/src/lib/icon/icons/IconCheckmark.d.ts +0 -1
- package/src/lib/icon/icons/IconChevronBottom.d.ts +0 -1
- package/src/lib/icon/icons/IconChevronDoubleDown.d.ts +0 -1
- package/src/lib/icon/icons/IconChevronDoubleLeft.d.ts +0 -1
- package/src/lib/icon/icons/IconChevronDoubleRight.d.ts +0 -1
- package/src/lib/icon/icons/IconChevronDoubleUp.d.ts +0 -1
- package/src/lib/icon/icons/IconChevronDownSmall.d.ts +0 -1
- package/src/lib/icon/icons/IconChevronGrabberVertical.d.ts +0 -1
- package/src/lib/icon/icons/IconChevronLeft.d.ts +0 -1
- package/src/lib/icon/icons/IconChevronLeftSmall.d.ts +0 -1
- package/src/lib/icon/icons/IconChevronRight.d.ts +0 -1
- package/src/lib/icon/icons/IconChevronRightSmall.d.ts +0 -1
- package/src/lib/icon/icons/IconChevronTop.d.ts +0 -1
- package/src/lib/icon/icons/IconChevronTopSmall.d.ts +0 -1
- package/src/lib/icon/icons/IconCircleBan.d.ts +0 -1
- package/src/lib/icon/icons/IconCircleCheck.d.ts +0 -1
- package/src/lib/icon/icons/IconCircleDots.d.ts +0 -1
- package/src/lib/icon/icons/IconCircleInfo.d.ts +0 -1
- package/src/lib/icon/icons/IconCircleMinus.d.ts +0 -1
- package/src/lib/icon/icons/IconCirclePlaceholderOn.d.ts +0 -1
- package/src/lib/icon/icons/IconCirclePlus.d.ts +0 -1
- package/src/lib/icon/icons/IconCircleQuestionmark.d.ts +0 -1
- package/src/lib/icon/icons/IconCircleX.d.ts +0 -1
- package/src/lib/icon/icons/IconCirclesThree.d.ts +0 -1
- package/src/lib/icon/icons/IconClock.d.ts +0 -1
- package/src/lib/icon/icons/IconCloudDownload.d.ts +0 -1
- package/src/lib/icon/icons/IconCloudUpload.d.ts +0 -1
- package/src/lib/icon/icons/IconCloudySun.d.ts +0 -1
- package/src/lib/icon/icons/IconCode.d.ts +0 -1
- package/src/lib/icon/icons/IconCodeBrackets.d.ts +0 -1
- package/src/lib/icon/icons/IconCompassRound.d.ts +0 -1
- package/src/lib/icon/icons/IconCookies.d.ts +0 -1
- package/src/lib/icon/icons/IconCopy.d.ts +0 -1
- package/src/lib/icon/icons/IconCreditCard.d.ts +0 -1
- package/src/lib/icon/icons/IconCreditCardAdd.d.ts +0 -1
- package/src/lib/icon/icons/IconCrossLarge.d.ts +0 -1
- package/src/lib/icon/icons/IconCrossSmall.d.ts +0 -1
- package/src/lib/icon/icons/IconCupHot.d.ts +0 -1
- package/src/lib/icon/icons/IconCursor.d.ts +0 -1
- package/src/lib/icon/icons/IconDevices.d.ts +0 -1
- package/src/lib/icon/icons/IconDirection.d.ts +0 -1
- package/src/lib/icon/icons/IconDollar.d.ts +0 -1
- package/src/lib/icon/icons/IconDotGridOneHorizontal.d.ts +0 -1
- package/src/lib/icon/icons/IconDotGridOneVertical.d.ts +0 -1
- package/src/lib/icon/icons/IconDotGridThree.d.ts +0 -1
- package/src/lib/icon/icons/IconDotGridTwo.d.ts +0 -1
- package/src/lib/icon/icons/IconEmail.d.ts +0 -1
- package/src/lib/icon/icons/IconEmojiAngry.d.ts +0 -1
- package/src/lib/icon/icons/IconEmojiNeutral.d.ts +0 -1
- package/src/lib/icon/icons/IconEmojiSad.d.ts +0 -1
- package/src/lib/icon/icons/IconEmojiSmile.d.ts +0 -1
- package/src/lib/icon/icons/IconEmojiSmiley.d.ts +0 -1
- package/src/lib/icon/icons/IconEuro.d.ts +0 -1
- package/src/lib/icon/icons/IconExpand.d.ts +0 -1
- package/src/lib/icon/icons/IconEyeOpen.d.ts +0 -1
- package/src/lib/icon/icons/IconEyeSlash.d.ts +0 -1
- package/src/lib/icon/icons/IconFashion.d.ts +0 -1
- package/src/lib/icon/icons/IconFastForward.d.ts +0 -1
- package/src/lib/icon/icons/IconFileBend.d.ts +0 -1
- package/src/lib/icon/icons/IconFileChart.d.ts +0 -1
- package/src/lib/icon/icons/IconFileText.d.ts +0 -1
- package/src/lib/icon/icons/IconFiles.d.ts +0 -1
- package/src/lib/icon/icons/IconFilter.d.ts +0 -1
- package/src/lib/icon/icons/IconFlag.d.ts +0 -1
- package/src/lib/icon/icons/IconFloppyDisk.d.ts +0 -1
- package/src/lib/icon/icons/IconFocus.d.ts +0 -1
- package/src/lib/icon/icons/IconFocusSquare.d.ts +0 -1
- package/src/lib/icon/icons/IconFocusSquare.js +0 -1
- package/src/lib/icon/icons/IconFolder.d.ts +0 -1
- package/src/lib/icon/icons/IconFolderAddRight.d.ts +0 -1
- package/src/lib/icon/icons/IconFolderPaper.d.ts +0 -1
- package/src/lib/icon/icons/IconFolderPaper.js +0 -1
- package/src/lib/icon/icons/IconFolderUpload.d.ts +0 -1
- package/src/lib/icon/icons/IconFolderUpload.js +0 -1
- package/src/lib/icon/icons/IconFullscreen.d.ts +0 -1
- package/src/lib/icon/icons/IconGift.d.ts +0 -1
- package/src/lib/icon/icons/IconGlobus.d.ts +0 -1
- package/src/lib/icon/icons/IconGraduateCap.d.ts +0 -1
- package/src/lib/icon/icons/IconGreenPower.d.ts +0 -1
- package/src/lib/icon/icons/IconGroup.d.ts +0 -1
- package/src/lib/icon/icons/IconGrowth.d.ts +0 -1
- package/src/lib/icon/icons/IconHeadphones.d.ts +0 -1
- package/src/lib/icon/icons/IconHeart.d.ts +0 -1
- package/src/lib/icon/icons/IconHeartBeat.d.ts +0 -1
- package/src/lib/icon/icons/IconHistory.d.ts +0 -1
- package/src/lib/icon/icons/IconHomeEnergyOne.d.ts +0 -1
- package/src/lib/icon/icons/IconHomeEnergyTwo.d.ts +0 -1
- package/src/lib/icon/icons/IconHomeOpen.d.ts +0 -1
- package/src/lib/icon/icons/IconHomeRoof.d.ts +0 -1
- package/src/lib/icon/icons/IconHorizontalAlignmentBottom.d.ts +0 -1
- package/src/lib/icon/icons/IconHourglass.d.ts +0 -1
- package/src/lib/icon/icons/IconImages.d.ts +0 -1
- package/src/lib/icon/icons/IconInboxEmpty.d.ts +0 -1
- package/src/lib/icon/icons/IconIndustry.d.ts +0 -1
- package/src/lib/icon/icons/IconInvite.d.ts +0 -1
- package/src/lib/icon/icons/IconInvite.js +0 -1
- package/src/lib/icon/icons/IconJpg.d.ts +0 -1
- package/src/lib/icon/icons/IconKey.d.ts +0 -1
- package/src/lib/icon/icons/IconKnifeSpoon.d.ts +0 -1
- package/src/lib/icon/icons/IconLab.d.ts +0 -1
- package/src/lib/icon/icons/IconLaw.d.ts +0 -1
- package/src/lib/icon/icons/IconLeisure.d.ts +0 -1
- package/src/lib/icon/icons/IconLightBulb.d.ts +0 -1
- package/src/lib/icon/icons/IconLightBulb.js +0 -1
- package/src/lib/icon/icons/IconLightBulbSimple.d.ts +0 -1
- package/src/lib/icon/icons/IconLightning.d.ts +0 -1
- package/src/lib/icon/icons/IconLineChartFour.d.ts +0 -1
- package/src/lib/icon/icons/IconLineChartOne.d.ts +0 -1
- package/src/lib/icon/icons/IconLineChartThree.d.ts +0 -1
- package/src/lib/icon/icons/IconLineChartTwo.d.ts +0 -1
- package/src/lib/icon/icons/IconLock.d.ts +0 -1
- package/src/lib/icon/icons/IconMacbookAir.d.ts +0 -1
- package/src/lib/icon/icons/IconMagnifyingGlass.d.ts +0 -1
- package/src/lib/icon/icons/IconMaintenance.d.ts +0 -1
- package/src/lib/icon/icons/IconMaintenance.js +0 -1
- package/src/lib/icon/icons/IconMapPin.d.ts +0 -1
- package/src/lib/icon/icons/IconMegaphone.d.ts +0 -1
- package/src/lib/icon/icons/IconMenuSidebar.d.ts +0 -1
- package/src/lib/icon/icons/IconMicOff.d.ts +0 -1
- package/src/lib/icon/icons/IconMicOn.d.ts +0 -1
- package/src/lib/icon/icons/IconMinimize.d.ts +0 -1
- package/src/lib/icon/icons/IconMinusLarge.d.ts +0 -1
- package/src/lib/icon/icons/IconMinusSmall.d.ts +0 -1
- package/src/lib/icon/icons/IconMoneyHand.d.ts +0 -1
- package/src/lib/icon/icons/IconMoneybag.d.ts +0 -1
- package/src/lib/icon/icons/IconMoon.d.ts +0 -1
- package/src/lib/icon/icons/IconMute.d.ts +0 -1
- package/src/lib/icon/icons/IconOffice.d.ts +0 -1
- package/src/lib/icon/icons/IconOther.d.ts +0 -1
- package/src/lib/icon/icons/IconOther.js +0 -1
- package/src/lib/icon/icons/IconPageAdd.d.ts +0 -1
- package/src/lib/icon/icons/IconPageText.d.ts +0 -1
- package/src/lib/icon/icons/IconPageText.js +0 -1
- package/src/lib/icon/icons/IconPaperPlaneTopRight.d.ts +0 -1
- package/src/lib/icon/icons/IconPaperclip.d.ts +0 -1
- package/src/lib/icon/icons/IconPause.d.ts +0 -1
- package/src/lib/icon/icons/IconPdf.d.ts +0 -1
- package/src/lib/icon/icons/IconPencelLine.d.ts +0 -1
- package/src/lib/icon/icons/IconPencelLine.js +0 -1
- package/src/lib/icon/icons/IconPencilSign.d.ts +0 -1
- package/src/lib/icon/icons/IconPencilSparkle.d.ts +0 -1
- package/src/lib/icon/icons/IconPencilWave.d.ts +0 -1
- package/src/lib/icon/icons/IconPension.d.ts +0 -1
- package/src/lib/icon/icons/IconPeople.d.ts +0 -1
- package/src/lib/icon/icons/IconPeopleA11y.d.ts +0 -1
- package/src/lib/icon/icons/IconPeopleAdd.d.ts +0 -1
- package/src/lib/icon/icons/IconPeopleAdded.d.ts +0 -1
- package/src/lib/icon/icons/IconPeopleCircle.d.ts +0 -1
- package/src/lib/icon/icons/IconPeopleCopy.d.ts +0 -1
- package/src/lib/icon/icons/IconPeopleProfile.d.ts +0 -1
- package/src/lib/icon/icons/IconPeopleRemove.d.ts +0 -1
- package/src/lib/icon/icons/IconPercent.d.ts +0 -1
- package/src/lib/icon/icons/IconPhone.d.ts +0 -1
- package/src/lib/icon/icons/IconPhoneDynamicIsland.d.ts +0 -1
- package/src/lib/icon/icons/IconPhoneDynamicIsland.js +0 -1
- package/src/lib/icon/icons/IconPieChart.d.ts +0 -1
- package/src/lib/icon/icons/IconPiggyBank.d.ts +0 -1
- package/src/lib/icon/icons/IconPin.d.ts +0 -1
- package/src/lib/icon/icons/IconPinch.d.ts +0 -1
- package/src/lib/icon/icons/IconPlay.d.ts +0 -1
- package/src/lib/icon/icons/IconPlayCircle.d.ts +0 -1
- package/src/lib/icon/icons/IconPlusLarge.d.ts +0 -1
- package/src/lib/icon/icons/IconPlusSmall.d.ts +0 -1
- package/src/lib/icon/icons/IconPng.d.ts +0 -1
- package/src/lib/icon/icons/IconPoop.d.ts +0 -1
- package/src/lib/icon/icons/IconPostcard.d.ts +0 -1
- package/src/lib/icon/icons/IconPound.d.ts +0 -1
- package/src/lib/icon/icons/IconPower.d.ts +0 -1
- package/src/lib/icon/icons/IconPowerPlant.d.ts +0 -1
- package/src/lib/icon/icons/IconPrinter.d.ts +0 -1
- package/src/lib/icon/icons/IconPush.d.ts +0 -1
- package/src/lib/icon/icons/IconQrCode.d.ts +0 -1
- package/src/lib/icon/icons/IconRainy.d.ts +0 -1
- package/src/lib/icon/icons/IconRaisingHand.d.ts +0 -1
- package/src/lib/icon/icons/IconReadingList.d.ts +0 -1
- package/src/lib/icon/icons/IconReceiptBill.d.ts +0 -1
- package/src/lib/icon/icons/IconReceiptionBell.d.ts +0 -1
- package/src/lib/icon/icons/IconRecord.d.ts +0 -1
- package/src/lib/icon/icons/IconRefund.d.ts +0 -1
- package/src/lib/icon/icons/IconRobot.d.ts +0 -1
- package/src/lib/icon/icons/IconRocket.d.ts +0 -1
- package/src/lib/icon/icons/IconRunShortcut.d.ts +0 -1
- package/src/lib/icon/icons/IconSafari.d.ts +0 -1
- package/src/lib/icon/icons/IconSchool.d.ts +0 -1
- package/src/lib/icon/icons/IconScissors.d.ts +0 -1
- package/src/lib/icon/icons/IconSearchMenu.d.ts +0 -1
- package/src/lib/icon/icons/IconSeb.d.ts +0 -1
- package/src/lib/icon/icons/IconSeb.js +0 -1
- package/src/lib/icon/icons/IconSettingsGear.d.ts +0 -1
- package/src/lib/icon/icons/IconSettingsSliderHor.d.ts +0 -1
- package/src/lib/icon/icons/IconSettingsSliderThree.d.ts +0 -1
- package/src/lib/icon/icons/IconSettingsSliderThree.js +0 -1
- package/src/lib/icon/icons/IconSettingsSliderVer.d.ts +0 -1
- package/src/lib/icon/icons/IconShapes.d.ts +0 -1
- package/src/lib/icon/icons/IconShare.d.ts +0 -1
- package/src/lib/icon/icons/IconShield.d.ts +0 -1
- package/src/lib/icon/icons/IconShieldChecked.d.ts +0 -1
- package/src/lib/icon/icons/IconShieldCrossed.d.ts +0 -1
- package/src/lib/icon/icons/IconShoppingBag.d.ts +0 -1
- package/src/lib/icon/icons/IconSignature.d.ts +0 -1
- package/src/lib/icon/icons/IconSmartwatch.d.ts +0 -1
- package/src/lib/icon/icons/IconSolar.d.ts +0 -1
- package/src/lib/icon/icons/IconSolarPanel.d.ts +0 -1
- package/src/lib/icon/icons/IconSolarPanel.js +0 -1
- package/src/lib/icon/icons/IconSort.d.ts +0 -1
- package/src/lib/icon/icons/IconSortAscending.d.ts +0 -1
- package/src/lib/icon/icons/IconSortDescending.d.ts +0 -1
- package/src/lib/icon/icons/IconSortDown.d.ts +0 -1
- package/src/lib/icon/icons/IconSortUp.d.ts +0 -1
- package/src/lib/icon/icons/IconSquareArrowTopRight.d.ts +0 -1
- package/src/lib/icon/icons/IconSquareBehindSquare.d.ts +0 -1
- package/src/lib/icon/icons/IconSquareCheck.d.ts +0 -1
- package/src/lib/icon/icons/IconSquareCheck.js +0 -1
- package/src/lib/icon/icons/IconSquareGridCircle.d.ts +0 -1
- package/src/lib/icon/icons/IconSquareInfo.d.ts +0 -1
- package/src/lib/icon/icons/IconSquareInfo.js +0 -1
- package/src/lib/icon/icons/IconSquareMinus.d.ts +0 -1
- package/src/lib/icon/icons/IconSquareMinus.js +0 -1
- package/src/lib/icon/icons/IconSquarePlaceholder.d.ts +0 -1
- package/src/lib/icon/icons/IconSquarePlus.d.ts +0 -1
- package/src/lib/icon/icons/IconSquarePlus.js +0 -1
- package/src/lib/icon/icons/IconSquareX.d.ts +0 -1
- package/src/lib/icon/icons/IconSquareX.js +0 -1
- package/src/lib/icon/icons/IconStar.d.ts +0 -1
- package/src/lib/icon/icons/IconStore.d.ts +0 -1
- package/src/lib/icon/icons/IconSuitcaseWork.d.ts +0 -1
- package/src/lib/icon/icons/IconSuitcaseWork.js +0 -1
- package/src/lib/icon/icons/IconSun.d.ts +0 -1
- package/src/lib/icon/icons/IconSunsetArrowDown.d.ts +0 -1
- package/src/lib/icon/icons/IconTag.d.ts +0 -1
- package/src/lib/icon/icons/IconTargetArrow.d.ts +0 -1
- package/src/lib/icon/icons/IconTelevision.d.ts +0 -1
- package/src/lib/icon/icons/IconTennis.d.ts +0 -1
- package/src/lib/icon/icons/IconTextEdit.d.ts +0 -1
- package/src/lib/icon/icons/IconThermostat.d.ts +0 -1
- package/src/lib/icon/icons/IconThumbsDown.d.ts +0 -1
- package/src/lib/icon/icons/IconThumbsUp.d.ts +0 -1
- package/src/lib/icon/icons/IconTicket.d.ts +0 -1
- package/src/lib/icon/icons/IconTodos.d.ts +0 -1
- package/src/lib/icon/icons/IconTodos.js +0 -1
- package/src/lib/icon/icons/IconTradingViewCandles.d.ts +0 -1
- package/src/lib/icon/icons/IconTrashCan.d.ts +0 -1
- package/src/lib/icon/icons/IconTree.d.ts +0 -1
- package/src/lib/icon/icons/IconTrendingFive.d.ts +0 -1
- package/src/lib/icon/icons/IconTrendingFour.d.ts +0 -1
- package/src/lib/icon/icons/IconTrendingOne.d.ts +0 -1
- package/src/lib/icon/icons/IconTrendingThree.d.ts +0 -1
- package/src/lib/icon/icons/IconTrendingTwo.d.ts +0 -1
- package/src/lib/icon/icons/IconTriangleExclamation.d.ts +0 -1
- package/src/lib/icon/icons/IconTruck.d.ts +0 -1
- package/src/lib/icon/icons/IconUmbrellaSecurity.d.ts +0 -1
- package/src/lib/icon/icons/IconUnlocked.d.ts +0 -1
- package/src/lib/icon/icons/IconVerticalAlignmentRight.d.ts +0 -1
- package/src/lib/icon/icons/IconVerticalAlignmentRight.js +0 -1
- package/src/lib/icon/icons/IconVolumeFull.d.ts +0 -1
- package/src/lib/icon/icons/IconVolumeHalf.d.ts +0 -1
- package/src/lib/icon/icons/IconVolumeOff.d.ts +0 -1
- package/src/lib/icon/icons/IconWallet.d.ts +0 -1
- package/src/lib/icon/icons/IconWarningSign.d.ts +0 -1
- package/src/lib/icon/icons/IconWifiFull.d.ts +0 -1
- package/src/lib/icon/icons/IconYoutube.d.ts +0 -1
- package/src/lib/icon/icons/IconZap.d.ts +0 -1
- package/src/lib/icon/icons/IconZoomIn.d.ts +0 -1
- package/src/lib/icon/icons/IconZoomOut.d.ts +0 -1
- package/src/lib/icon/icons/index.d.ts +0 -339
- package/src/lib/icons/bankId.d.ts +0 -6
- package/src/lib/icons/check.d.ts +0 -7
- package/src/lib/icons/chevronDown.d.ts +0 -7
- package/src/lib/icons/edit.d.ts +0 -6
- package/src/lib/icons/index.d.ts +0 -8
- package/src/lib/icons/infoCircle.d.ts +0 -6
- package/src/lib/icons/square-exclamation.d.ts +0 -6
- package/src/lib/icons/square-info.d.ts +0 -6
- package/src/lib/icons/times.d.ts +0 -6
- package/src/lib/in-page-wizard/inPageWizardStepCard.d.ts +0 -24
- package/src/lib/in-page-wizard/index.d.ts +0 -1
- package/src/lib/layout/flexbox/flexbox.d.ts +0 -16
- package/src/lib/layout/flexbox/types.d.ts +0 -5
- package/src/lib/layout/index.d.ts +0 -1
- package/src/lib/link/index.d.ts +0 -1
- package/src/lib/link/link.d.ts +0 -11
- package/src/lib/list/index.d.ts +0 -2
- package/src/lib/list/list.d.ts +0 -14
- package/src/lib/list/listItem.d.ts +0 -10
- package/src/lib/list/valueList.d.ts +0 -33
- package/src/lib/list/valueList.js +0 -2
- package/src/lib/modal/index.d.ts +0 -1
- package/src/lib/modal/modal.d.ts +0 -24
- package/src/lib/navbar/index.d.ts +0 -1
- package/src/lib/navbar/navbar.d.ts +0 -15
- package/src/lib/popover/index.d.ts +0 -1
- package/src/lib/popover/popover.d.ts +0 -5
- package/src/lib/segmented-control/index.d.ts +0 -1
- package/src/lib/segmented-control/segmented-control.d.ts +0 -35
- package/src/lib/select/index.d.ts +0 -1
- package/src/lib/select/select.d.ts +0 -33
- package/src/lib/slider/index.d.ts +0 -1
- package/src/lib/slider/slider.d.ts +0 -3
- package/src/lib/stepper/index.d.ts +0 -1
- package/src/lib/stepper/stepper.d.ts +0 -15
- package/src/lib/table/components/Table.d.ts +0 -13
- package/src/lib/table/components/context/TableContextProvider.d.ts +0 -19
- package/src/lib/table/components/index.d.ts +0 -9
- package/src/lib/table/components/parts/TableBody/TableBody.d.ts +0 -4
- package/src/lib/table/components/parts/TableBody/index.d.ts +0 -1
- package/src/lib/table/components/parts/TableCell/TableCell.d.ts +0 -3
- package/src/lib/table/components/parts/TableCell/index.d.ts +0 -1
- package/src/lib/table/components/parts/TableHeader/TableHeader.d.ts +0 -4
- package/src/lib/table/components/parts/TableHeader/index.d.ts +0 -1
- package/src/lib/table/components/parts/TableHeaderCell/TableHeaderCell.d.ts +0 -10
- package/src/lib/table/components/parts/TableHeaderCell/index.d.ts +0 -1
- package/src/lib/table/components/parts/TableRow/TableRow.d.ts +0 -15
- package/src/lib/table/components/parts/TableRow/index.d.ts +0 -1
- package/src/lib/table/components/parts/helperFunctions/helperFunctions.d.ts +0 -50
- package/src/lib/table/components/parts/helperFunctions/index.d.ts +0 -1
- package/src/lib/table/components/table-typings.d.ts +0 -14
- package/src/lib/table/index.d.ts +0 -1
- package/src/lib/table/story/multiple-story-tables.d.ts +0 -17
- package/src/lib/tabs/index.d.ts +0 -1
- package/src/lib/tabs/tabs.d.ts +0 -26
- package/src/types/index.d.ts +0 -1
- package/src/types/props/index.d.ts +0 -40
- package/valueList.js +0 -55
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React, { JSX, ReactNode } from 'react';
|
|
2
|
-
interface AccordionItemProps {
|
|
3
|
-
item: AccordionItemInterface;
|
|
4
|
-
index: number;
|
|
5
|
-
uuid: string;
|
|
6
|
-
}
|
|
7
|
-
export interface AccordionItemInterface {
|
|
8
|
-
label?: string;
|
|
9
|
-
customLabel?: ReactNode;
|
|
10
|
-
labelElementLevel: 2 | 3 | 4 | 5 | 6;
|
|
11
|
-
subLabel?: string;
|
|
12
|
-
content: JSX.Element;
|
|
13
|
-
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
14
|
-
onOpen?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
15
|
-
onClose?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
16
|
-
defaultOpen?: boolean;
|
|
17
|
-
}
|
|
18
|
-
declare const AccordionItem: ({ item, index, uuid }: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export default AccordionItem;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AccordionItemInterface } from './accordion-item';
|
|
2
|
-
export interface AccordionInterface {
|
|
3
|
-
items: AccordionItemInterface[];
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated Please use the `gds-details` web component from green-core instead
|
|
7
|
-
*/
|
|
8
|
-
export declare const Accordion: ({ items }: AccordionInterface) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default Accordion;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { AlertRibbonType } from '@sebgroup/extract';
|
|
3
|
-
export interface AlertRibbonProps {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
type?: AlertRibbonType;
|
|
6
|
-
header?: ReactNode;
|
|
7
|
-
footer?: ReactNode;
|
|
8
|
-
isCloseable?: boolean;
|
|
9
|
-
closeText?: string;
|
|
10
|
-
onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
11
|
-
role?: 'alert';
|
|
12
|
-
'aria-live'?: React.AriaAttributes['aria-live'];
|
|
13
|
-
closeAriaLabel?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated Please use the `gds-alert` web component from green-core instead
|
|
17
|
-
*/
|
|
18
|
-
export declare function AlertRibbon({ type, header, footer, children, closeText, isCloseable, onClose, role, 'aria-live': ariaLive, closeAriaLabel, }: AlertRibbonProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export default AlertRibbon;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './alert-ribbon';
|
package/src/lib/badge/badge.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { HTMLProps, ReactNode } from 'react';
|
|
2
|
-
import { BadgeType } from '@sebgroup/extract';
|
|
3
|
-
export interface BadgeProps extends HTMLProps<HTMLSpanElement> {
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
badgeType?: BadgeType;
|
|
6
|
-
isCloseable?: boolean;
|
|
7
|
-
closeText?: string;
|
|
8
|
-
customColor?: string;
|
|
9
|
-
customBackgroundColor?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Renders a badge component.
|
|
13
|
-
*
|
|
14
|
-
* @deprecated Please use the `gds-badge` web component from green-core instead
|
|
15
|
-
*
|
|
16
|
-
* @param {React.ReactNode} props.children - The content of the badge.
|
|
17
|
-
* @param {string} props.badgeType - The type of the badge.
|
|
18
|
-
* @param {boolean} props.isCloseable - Indicates if the badge is closeable.
|
|
19
|
-
* @param {string} props.closeText - The text for the close button.
|
|
20
|
-
* @param {string} props.customColor - The custom color for the badge.
|
|
21
|
-
* @param {string} props.customBackgroundColor - The custom background color for the badge.
|
|
22
|
-
* @returns {React.ReactNode} The rendered badge component.
|
|
23
|
-
*/
|
|
24
|
-
export declare function Badge({ children, badgeType, isCloseable, closeText, customColor, customBackgroundColor, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element | null;
|
|
25
|
-
export default Badge;
|
package/src/lib/badge/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './badge';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React, { JSX, PropsWithChildren } from 'react';
|
|
2
|
-
export type BreadcrumbProps = {
|
|
3
|
-
className?: string;
|
|
4
|
-
};
|
|
5
|
-
export type BreadcrumItembProps = JSX.IntrinsicElements['li'];
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated Please use the `gds-breadcrumbs` web component from green-core instead
|
|
8
|
-
*/
|
|
9
|
-
export declare const Breadcrumb: React.FC<PropsWithChildren<BreadcrumbProps>>;
|
|
10
|
-
export declare const BreadcrumbItem: React.FC<BreadcrumItembProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './breadcrumb';
|
package/src/lib/card/card.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface CardProps {
|
|
3
|
-
children?: ReactNode;
|
|
4
|
-
header?: ReactNode;
|
|
5
|
-
footer?: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Please use the `gds-card` web component from green-core instead
|
|
9
|
-
*/
|
|
10
|
-
export declare function Card({ children, header, footer }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default Card;
|
package/src/lib/card/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './card';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { GdsContextMenu, GdsMenuHeading, GdsMenuItem } from '@sebgroup/green-core/components/context-menu/context-menu.component';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated Please use the `gds-context-menu` web component from green-core instead
|
|
4
|
-
*/
|
|
5
|
-
export declare const ContextMenu: import("@lit/react").ReactWebComponent<GdsContextMenu, {
|
|
6
|
-
onMenuItemClick: string;
|
|
7
|
-
onUiStateChange: string;
|
|
8
|
-
}>;
|
|
9
|
-
export declare const MenuItem: import("@lit/react").ReactWebComponent<GdsMenuItem, {
|
|
10
|
-
onMenuItemClick: string;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const CoreMenuHeading: import("@lit/react").ReactWebComponent<GdsMenuHeading, {}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './context-menu';
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { GdsDatepicker } from '@sebgroup/green-core/components/datepicker/datepicker.component';
|
|
3
|
-
import { GdsValidator } from '@sebgroup/green-core/components/form/form-control';
|
|
4
|
-
export declare const CoreDatepicker: import("@lit/react").ReactWebComponent<GdsDatepicker, {
|
|
5
|
-
onchange: string;
|
|
6
|
-
}>;
|
|
7
|
-
export type DatepickerOptions = {
|
|
8
|
-
/**
|
|
9
|
-
* An array of dates that should be disabled in the calendar.
|
|
10
|
-
*/
|
|
11
|
-
disabledDates?: Date[];
|
|
12
|
-
/**
|
|
13
|
-
* Whether to disable weekends in the calendar.
|
|
14
|
-
*/
|
|
15
|
-
disabledWeekends?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Whether to hide the label above the input field.
|
|
18
|
-
*/
|
|
19
|
-
hideLabel?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Validation state of the form control. Setting this to true triggers the invalid state of the control.
|
|
22
|
-
*/
|
|
23
|
-
invalid?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Validate the form control element. Should return the validity state and an optional validation message.
|
|
26
|
-
*/
|
|
27
|
-
validator?: GdsValidator;
|
|
28
|
-
/**
|
|
29
|
-
* The label text displayed above the datepicker. This should always be set to a descriptive label.
|
|
30
|
-
*/
|
|
31
|
-
label?: string;
|
|
32
|
-
/**
|
|
33
|
-
* The maximum date that can be selected.
|
|
34
|
-
*/
|
|
35
|
-
maxDate?: Date;
|
|
36
|
-
/**
|
|
37
|
-
* The minimum date that can be selected.
|
|
38
|
-
*/
|
|
39
|
-
minDate?: Date;
|
|
40
|
-
/**
|
|
41
|
-
* Controls whether the datepicker popover is open.
|
|
42
|
-
*/
|
|
43
|
-
open?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Callback function that is called when the value of the Datepicker changes.
|
|
46
|
-
*/
|
|
47
|
-
onChange?: (value: any) => void;
|
|
48
|
-
/**
|
|
49
|
-
* Sets the datepicker as a required field for forms.
|
|
50
|
-
*/
|
|
51
|
-
required?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Whether to show a column of week numbers in the calendar.
|
|
54
|
-
*/
|
|
55
|
-
showWeeks?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Whether to use the small variant of the datepicker field.
|
|
58
|
-
*/
|
|
59
|
-
size?: 'small' | 'medium';
|
|
60
|
-
/**
|
|
61
|
-
* The test ID used for testing.
|
|
62
|
-
*/
|
|
63
|
-
testId?: string;
|
|
64
|
-
/**
|
|
65
|
-
* The Date value of the datepicker. This can be set to undefined to clear the datepicker.
|
|
66
|
-
* This can be a string if set via the value attribute in markup, or via the setAttribute DOM API.
|
|
67
|
-
*/
|
|
68
|
-
value?: Date;
|
|
69
|
-
/**
|
|
70
|
-
* The ref to the datepicker element.
|
|
71
|
-
*/
|
|
72
|
-
ref?: React.Ref<GdsDatepicker>;
|
|
73
|
-
/**
|
|
74
|
-
* The children of the datepicker.
|
|
75
|
-
*/
|
|
76
|
-
children?: React.ReactNode;
|
|
77
|
-
/**
|
|
78
|
-
* If the it will be possible to clear the selected date.
|
|
79
|
-
*/
|
|
80
|
-
clearable?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Whether to hide the today button under the calendar.
|
|
83
|
-
*/
|
|
84
|
-
hideTodayButton?: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* @deprecated Use `value` instead.
|
|
87
|
-
*/
|
|
88
|
-
selectedDate?: Date;
|
|
89
|
-
/**
|
|
90
|
-
* @deprecated Use `value` instead.
|
|
91
|
-
*/
|
|
92
|
-
currentDate?: Date;
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* @deprecated Please use the `gds-datepicker` web component from green-core instead
|
|
96
|
-
*/
|
|
97
|
-
export declare const Datepicker: React.ForwardRefExoticComponent<Omit<DatepickerOptions, "ref"> & React.RefAttributes<unknown>>;
|
|
98
|
-
export default Datepicker;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './datepicker';
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { GdsDropdown, GdsOption } from '@sebgroup/green-core/components/dropdown/dropdown.component';
|
|
2
|
-
export type CompareWith<T = any> = (o1: T, o2: T) => boolean;
|
|
3
|
-
export type SearchFilter<T = any> = (search: string, value: T) => boolean;
|
|
4
|
-
export type DropdownPlacements = 'bottom-start' | 'top-start';
|
|
5
|
-
export type OnChange<T = any> = (value: T) => void;
|
|
6
|
-
export type IndicatorType = 'success' | 'error' | 'info';
|
|
7
|
-
export type ValidatorType = 'Required' | 'Email';
|
|
8
|
-
export interface ValidatorRules {
|
|
9
|
-
type: ValidatorType;
|
|
10
|
-
custom?: () => string | undefined;
|
|
11
|
-
}
|
|
12
|
-
export interface IValidator {
|
|
13
|
-
message: string;
|
|
14
|
-
indicator: IndicatorType;
|
|
15
|
-
rules?: ValidatorRules;
|
|
16
|
-
}
|
|
17
|
-
export interface DropdownArgs {
|
|
18
|
-
compareWith?: CompareWith;
|
|
19
|
-
display?: string;
|
|
20
|
-
id?: string;
|
|
21
|
-
informationLabel?: string;
|
|
22
|
-
label?: string;
|
|
23
|
-
multiSelect?: boolean;
|
|
24
|
-
options: DropdownOption[];
|
|
25
|
-
searchFilter?: SearchFilter;
|
|
26
|
-
searchable?: boolean;
|
|
27
|
-
texts?: DropdownTexts;
|
|
28
|
-
useValue?: string;
|
|
29
|
-
validator?: IValidator;
|
|
30
|
-
value?: any;
|
|
31
|
-
/** Force width of the popover to match trigger */
|
|
32
|
-
syncPopoverWidth?: boolean;
|
|
33
|
-
/** Size of the dropdown trigger */
|
|
34
|
-
size?: 'small' | 'medium';
|
|
35
|
-
/** Hide the label */
|
|
36
|
-
hideLabel?: boolean;
|
|
37
|
-
/** Max height of the dropdown */
|
|
38
|
-
maxHeight?: number;
|
|
39
|
-
/** Whether to disable the mobile styles */
|
|
40
|
-
disableMobileStyles?: boolean;
|
|
41
|
-
/** Event handler for when the dropdown is opened or closed */
|
|
42
|
-
onGdsUiState?: (e: CustomEvent) => void;
|
|
43
|
-
}
|
|
44
|
-
export interface DropdownTexts {
|
|
45
|
-
placeholder?: string;
|
|
46
|
-
}
|
|
47
|
-
export interface DropdownOption {
|
|
48
|
-
label?: string;
|
|
49
|
-
value?: any;
|
|
50
|
-
selected?: boolean;
|
|
51
|
-
heading?: boolean;
|
|
52
|
-
[key: string]: any;
|
|
53
|
-
}
|
|
54
|
-
export declare const CoreDropdown: import("@lit/react").ReactWebComponent<GdsDropdown<any>, {
|
|
55
|
-
onChange: string;
|
|
56
|
-
onGdsUiState: string;
|
|
57
|
-
}>;
|
|
58
|
-
export declare const CoreOption: import("@lit/react").ReactWebComponent<GdsOption, {}>;
|
|
59
|
-
export interface DropdownProps extends DropdownArgs {
|
|
60
|
-
onChange?: OnChange;
|
|
61
|
-
required?: boolean;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* @deprecated Please use the `gds-dropdown` web component from green-core instead
|
|
65
|
-
*/
|
|
66
|
-
export declare const Dropdown: ({ compareWith, display, id, informationLabel, label, multiSelect, onChange, options, searchFilter, searchable, texts, useValue, validator, value, syncPopoverWidth, disableMobileStyles, onGdsUiState, required, ...props }: DropdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
67
|
-
export default Dropdown;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dropdown';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { GdsFilterChip, GdsFilterChips } from '@sebgroup/green-core/components/filter-chips/filter-chips.component';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated Please use the `gds-filter-chips` web component from green-core instead
|
|
4
|
-
*/
|
|
5
|
-
export declare const FilterChips: import("@lit/react").ReactWebComponent<GdsFilterChips<any>, {}>;
|
|
6
|
-
export declare const FilterChip: import("@lit/react").ReactWebComponent<GdsFilterChip<any>, {}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './filter-chips';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, DetailedHTMLProps } from 'react';
|
|
2
|
-
import { ButtonSize, ButtonVariant } from '@sebgroup/extract';
|
|
3
|
-
export interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
4
|
-
/** Button styling. Available options: 'primary', 'secondary', 'ghost' and 'tertiary'. */
|
|
5
|
-
variant?: ButtonVariant;
|
|
6
|
-
/** Styling button as active or not */
|
|
7
|
-
active?: boolean;
|
|
8
|
-
/** Button size. Available options: 'small' and 'large'. */
|
|
9
|
-
size?: ButtonSize;
|
|
10
|
-
/** Renders as a `data-testid` attribute on the `<button>` element, useful in testing scenarios. */
|
|
11
|
-
testId?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Please use the `gds-button` web component from green-core instead
|
|
15
|
-
*/
|
|
16
|
-
export declare const Button: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
17
|
-
export default Button;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './button';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { ButtonVariant } from '@sebgroup/extract';
|
|
3
|
-
import { ButtonProps } from '../button/button';
|
|
4
|
-
interface ButtonGroupProps {
|
|
5
|
-
children: ReactElement<ButtonProps> | ReactElement<ButtonProps>[];
|
|
6
|
-
/** Class names passed to the child elements */
|
|
7
|
-
className?: string;
|
|
8
|
-
selectedIndex?: number;
|
|
9
|
-
variant?: ButtonVariant;
|
|
10
|
-
id?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const ButtonGroup: ({ children, className, selectedIndex, variant, id, }: ButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export default ButtonGroup;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './buttonGroup';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FormEventHandler, HTMLProps } from 'react';
|
|
2
|
-
import { IValidator } from '@sebgroup/extract';
|
|
3
|
-
export interface CheckboxProps extends HTMLProps<HTMLInputElement> {
|
|
4
|
-
/** Use this prop to control the checked state of the checkbox */
|
|
5
|
-
checked?: boolean;
|
|
6
|
-
/** The label of the checkbox */
|
|
7
|
-
label?: string;
|
|
8
|
-
/** A test id that will be placed in the `data-testid` attribute on the input element */
|
|
9
|
-
testId?: string;
|
|
10
|
-
/** An object used to render the validation status for the component */
|
|
11
|
-
validator?: IValidator;
|
|
12
|
-
/** A handler function that takes the event and can act on it */
|
|
13
|
-
onChange?: FormEventHandler<HTMLInputElement>;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated Please use the `gds-checkbox` web component from green-core instead
|
|
17
|
-
*/
|
|
18
|
-
export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './checkbox';
|
package/src/lib/form/form.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HTMLProps, ReactNode } from 'react';
|
|
2
|
-
import { FormDirection, Size } from '@sebgroup/extract';
|
|
3
|
-
export interface FormProps extends HTMLProps<HTMLFormElement> {
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
direction?: FormDirection;
|
|
6
|
-
formSize?: Size;
|
|
7
|
-
onFormSubmit?: (values: any) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const Form: React.FC<FormProps>;
|
|
10
|
-
export default Form;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormProps } from './form';
|
|
3
|
-
interface FormContextReturnType {
|
|
4
|
-
setValues: React.Dispatch<React.SetStateAction<Record<string, any>>>;
|
|
5
|
-
setErrors: React.Dispatch<React.SetStateAction<Record<string, any>>>;
|
|
6
|
-
setFields: React.Dispatch<React.SetStateAction<Record<string, any>>>;
|
|
7
|
-
errors?: Record<string, any>;
|
|
8
|
-
values?: Record<string, any>;
|
|
9
|
-
}
|
|
10
|
-
export declare const FormContext: React.Context<FormContextReturnType>;
|
|
11
|
-
export declare const useFormContext: () => FormContextReturnType;
|
|
12
|
-
export declare const FormProvider: ({ children, direction, formSize, onSubmit, onFormSubmit, ...props }: React.PropsWithChildren<FormProps>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IValidator } from '@sebgroup/extract';
|
|
3
|
-
export interface FormItemsProps {
|
|
4
|
-
children: React.ReactElement<any>;
|
|
5
|
-
name: string;
|
|
6
|
-
validate?: IValidator;
|
|
7
|
-
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
8
|
-
}
|
|
9
|
-
export declare const FormItems: React.FC<FormItemsProps>;
|
|
10
|
-
export default FormItems;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
export interface GroupProps {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
error?: Error | string;
|
|
6
|
-
groupBorder?: boolean;
|
|
7
|
-
groupFocus?: boolean;
|
|
8
|
-
invalid?: boolean;
|
|
9
|
-
id?: string;
|
|
10
|
-
className?: classNames.Argument;
|
|
11
|
-
}
|
|
12
|
-
export declare function Group({ id, children, error, className, groupBorder, groupFocus, }: GroupProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export default Group;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './group';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './iconButton';
|
package/src/lib/form/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from './button/button';
|
|
2
|
-
export * from './iconButton/iconButton';
|
|
3
|
-
export * from './buttonGroup/buttonGroup';
|
|
4
|
-
export * from './checkbox/checkbox';
|
|
5
|
-
export * from './form';
|
|
6
|
-
export * from './formItems';
|
|
7
|
-
export * from './group/group';
|
|
8
|
-
export * from './input/input';
|
|
9
|
-
export * from './text/text';
|
|
10
|
-
export * from './radioButton/radioButton';
|
|
11
|
-
export * from './radioButton/radioGroup';
|
|
12
|
-
export * from './textarea/textarea';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './input';
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { DetailedHTMLProps, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { IExpandableInformation, IValidator } from '@sebgroup/extract';
|
|
3
|
-
export interface InputProps extends IExpandableInformation, DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
|
|
4
|
-
/**
|
|
5
|
-
* Data test id used for finding elements in test
|
|
6
|
-
*/
|
|
7
|
-
testId?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Function to format the value on change
|
|
10
|
-
*/
|
|
11
|
-
formatter?: (value: string) => string;
|
|
12
|
-
/**
|
|
13
|
-
* Additional descriptive text displayed below the label
|
|
14
|
-
*/
|
|
15
|
-
info?: ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* Label text describing the input field
|
|
18
|
-
*/
|
|
19
|
-
label?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Text displayed on the right side of the input, typically used for units like 'kr' or '%'
|
|
22
|
-
*/
|
|
23
|
-
unit?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Validation object for input validation
|
|
26
|
-
*/
|
|
27
|
-
validator?: IValidator;
|
|
28
|
-
/**
|
|
29
|
-
* Current value of the input field
|
|
30
|
-
*/
|
|
31
|
-
value?: string | number;
|
|
32
|
-
/**
|
|
33
|
-
* Callback function triggered when the input value changes
|
|
34
|
-
*/
|
|
35
|
-
onChangeInput?: (value: string) => string;
|
|
36
|
-
/**
|
|
37
|
-
* ID of another element that describes the input field
|
|
38
|
-
*/
|
|
39
|
-
'aria-describedby'?: string;
|
|
40
|
-
/**
|
|
41
|
-
* ARIA live region attribute for the form control footer, affecting how error messages are read by screen readers
|
|
42
|
-
*/
|
|
43
|
-
'aria-live'?: React.AriaAttributes['aria-live'];
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated Please use the `gds-input` web component from green-core instead
|
|
47
|
-
*/
|
|
48
|
-
export declare const Input: import("react").ForwardRefExoticComponent<Omit<InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
49
|
-
export declare const TextInput: import("react").ForwardRefExoticComponent<Omit<InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
50
|
-
export declare const EmailInput: import("react").ForwardRefExoticComponent<Omit<InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
51
|
-
export declare const NumberInput: import("react").ForwardRefExoticComponent<Omit<InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
52
|
-
export { RadioButton } from '../radioButton/radioButton';
|
|
53
|
-
export { Checkbox } from '../checkbox/checkbox';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { HTMLProps } from 'react';
|
|
2
|
-
import { IValidator } from '@sebgroup/extract';
|
|
3
|
-
export interface RadioButtonProps extends HTMLProps<HTMLInputElement> {
|
|
4
|
-
label: string;
|
|
5
|
-
testId?: string;
|
|
6
|
-
validator?: IValidator;
|
|
7
|
-
value: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const RadioButton: import("react").ForwardRefExoticComponent<Omit<RadioButtonProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IExpandableInformation, ILabelAndLabelInformation, IValidator } from '@sebgroup/extract';
|
|
3
|
-
export interface RadioGroupProps extends IExpandableInformation, ILabelAndLabelInformation {
|
|
4
|
-
/**
|
|
5
|
-
* Set the live region attribute of the form control footer, this will change how error messages are read by screen readers
|
|
6
|
-
* @default 'assertive'
|
|
7
|
-
*/
|
|
8
|
-
'aria-live'?: React.AriaAttributes['aria-live'];
|
|
9
|
-
label?: string;
|
|
10
|
-
title?: string;
|
|
11
|
-
valueSelected?: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
defaultSelected?: string;
|
|
14
|
-
validator?: IValidator;
|
|
15
|
-
onChangeRadio?: (value: string) => string;
|
|
16
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
17
|
-
name?: string;
|
|
18
|
-
horizontal?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare const RadioGroup: ({ "aria-live": ariaLive, defaultSelected, valueSelected, label, title, labelInformation, description, expandableInfo, expandableInfoButtonLabel, validator, onChangeRadio, onChange, name: propName, horizontal, children, }: React.PropsWithChildren<RadioGroupProps>) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export default RadioGroup;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './text';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
interface TextProps {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated Please use the `gds-text` web component from green-core instead
|
|
7
|
-
*/
|
|
8
|
-
export declare const Text: ({ children }: TextProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default Text;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './textarea';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DetailedHTMLProps, ReactNode } from 'react';
|
|
2
|
-
import { IExpandableInformation, IValidator } from '@sebgroup/extract';
|
|
3
|
-
export interface ITextAreaProps extends IExpandableInformation, DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> {
|
|
4
|
-
/**
|
|
5
|
-
* Set the live region attribute of the form control footer, this will change how error messages are read by screen readers
|
|
6
|
-
* @default 'assertive'
|
|
7
|
-
*/
|
|
8
|
-
'aria-live'?: React.AriaAttributes['aria-live'];
|
|
9
|
-
/** Data test id used for finding elements in test */
|
|
10
|
-
testId?: string;
|
|
11
|
-
/** Label describing the textarea */
|
|
12
|
-
label: string;
|
|
13
|
-
/** Extra describing text, below the label */
|
|
14
|
-
info?: ReactNode;
|
|
15
|
-
/** Validation object */
|
|
16
|
-
validator?: IValidator | undefined;
|
|
17
|
-
/** Value of textarea */
|
|
18
|
-
value?: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated Please use the `gds-textarea` web component from green-core instead
|
|
22
|
-
*/
|
|
23
|
-
export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<ITextAreaProps, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React, { InputHTMLAttributes, RefObject } from 'react';
|
|
2
|
-
declare const useInput: (props: InputHTMLAttributes<HTMLInputElement>, onChanges?: (event: React.ChangeEvent<HTMLInputElement>) => void, onChangeInput?: (value: string) => string) => InputHTMLAttributes<HTMLInputElement> & {
|
|
3
|
-
ref: RefObject<HTMLInputElement | null>;
|
|
4
|
-
};
|
|
5
|
-
export default useInput;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ValidatorRules } from '@sebgroup/extract';
|
|
2
|
-
interface InputTargetType {
|
|
3
|
-
name: string;
|
|
4
|
-
value: string;
|
|
5
|
-
type?: string;
|
|
6
|
-
checked?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const validateInputValue: (target: InputTargetType, rules: ValidatorRules, setError: React.Dispatch<React.SetStateAction<Record<string, any>>>) => string;
|
|
9
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React, { AriaAttributes, PropsWithChildren } from 'react';
|
|
2
|
-
import { IExpandableInformation, ILabelAndLabelInformation, IValidator } from '@sebgroup/extract';
|
|
3
|
-
interface FormItemProps extends IExpandableInformation, ILabelAndLabelInformation, PropsWithChildren {
|
|
4
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
-
onChangeInput?: (value: string) => string;
|
|
6
|
-
validator?: IValidator;
|
|
7
|
-
inputId?: string;
|
|
8
|
-
role?: string;
|
|
9
|
-
'aria-live'?: AriaAttributes['aria-live'];
|
|
10
|
-
/** Intended to use together with TextArea to show character counter. */
|
|
11
|
-
rightAlignedFooterInfo?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const FormItem: ({ expandableInfo, label, labelInformation, validator, inputId, children, expandableInfoButtonLabel, role, rightAlignedFooterInfo, "aria-live": ariaLive, }: FormItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './formItem';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { GdsGroupedList, GdsListItem } from '@sebgroup/green-core/components/grouped-list/grouped-list.component';
|
|
2
|
-
export declare const GroupedList: import("@lit/react").ReactWebComponent<GdsGroupedList, {}>;
|
|
3
|
-
export declare const ListItem: import("@lit/react").ReactWebComponent<GdsListItem, {}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './grouped-list';
|