gantri-components 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +5718 -3120
- package/lib/components/aspect-ratio/aspect-ratio.d.ts +3 -0
- package/lib/components/aspect-ratio/aspect-ratio.presets.d.ts +2 -0
- package/lib/components/aspect-ratio/aspect-ratio.styles.d.ts +5 -0
- package/lib/components/aspect-ratio/aspect-ratio.types.d.ts +11 -0
- package/lib/components/aspect-ratio/index.d.ts +1 -0
- package/lib/components/box/box.d.ts +3 -0
- package/lib/components/box/box.presets.d.ts +2 -0
- package/lib/components/box/box.styles.d.ts +2 -0
- package/lib/components/box/box.types.d.ts +38 -0
- package/lib/components/box/index.d.ts +1 -0
- package/lib/components/button/button.d.ts +3 -0
- package/lib/components/button/button.presets.d.ts +2 -0
- package/lib/components/button/button.styles.d.ts +3 -0
- package/lib/components/button/button.types.d.ts +32 -0
- package/lib/components/button/index.d.ts +1 -0
- package/lib/components/cell/cell.d.ts +3 -0
- package/lib/components/cell/cell.presets.d.ts +2 -0
- package/lib/components/cell/cell.styles.d.ts +2 -0
- package/lib/components/cell/cell.types.d.ts +34 -0
- package/lib/components/cell/index.d.ts +1 -0
- package/lib/components/checkbox/checkbox.d.ts +3 -0
- package/lib/components/checkbox/checkbox.presets.d.ts +2 -0
- package/lib/components/checkbox/checkbox.styles.d.ts +4 -0
- package/lib/components/checkbox/checkbox.types.d.ts +12 -0
- package/lib/components/checkbox/index.d.ts +1 -0
- package/lib/components/flex/flex.d.ts +3 -0
- package/lib/components/flex/flex.presets.d.ts +2 -0
- package/lib/components/flex/flex.styles.d.ts +3 -0
- package/lib/components/flex/flex.types.d.ts +11 -0
- package/lib/components/flex/index.d.ts +1 -0
- package/lib/components/grid/grid.d.ts +3 -0
- package/lib/components/grid/grid.presets.d.ts +2 -0
- package/lib/components/grid/grid.styles.d.ts +2 -0
- package/lib/components/grid/grid.types.d.ts +26 -0
- package/lib/components/grid/index.d.ts +1 -0
- package/lib/components/icon/generated/actions/Funnel16.d.ts +3 -0
- package/lib/components/icon/generated/actions/Funnel24.d.ts +3 -0
- package/lib/components/icon/generated/actions/Gear16.d.ts +3 -0
- package/lib/components/icon/generated/actions/Gear24.d.ts +3 -0
- package/lib/components/icon/generated/actions/LifeBuoy16.d.ts +3 -0
- package/lib/components/icon/generated/actions/LifeBuoy24.d.ts +3 -0
- package/lib/components/icon/generated/actions/Link16.d.ts +3 -0
- package/lib/components/icon/generated/actions/Link24.d.ts +3 -0
- package/lib/components/icon/generated/actions/Star16.d.ts +3 -0
- package/lib/components/icon/generated/actions/Star24.d.ts +3 -0
- package/lib/components/icon/generated/actions/StarFilled16.d.ts +3 -0
- package/lib/components/icon/generated/actions/StarFilled24.d.ts +3 -0
- package/lib/components/icon/generated/actions/ThumbsUp16.d.ts +3 -0
- package/lib/components/icon/generated/actions/ThumbsUp24.d.ts +3 -0
- package/lib/components/icon/generated/actions/TrashCan16.d.ts +3 -0
- package/lib/components/icon/generated/actions/TrashCan24.d.ts +3 -0
- package/lib/components/icon/generated/actions/index.d.ts +16 -0
- package/lib/components/icon/generated/alert/Bell16.d.ts +3 -0
- package/lib/components/icon/generated/alert/Bell24.d.ts +3 -0
- package/lib/components/icon/generated/alert/BellFilled16.d.ts +3 -0
- package/lib/components/icon/generated/alert/BellFilled24.d.ts +3 -0
- package/lib/components/icon/generated/alert/ICircle16.d.ts +3 -0
- package/lib/components/icon/generated/alert/ICircle24.d.ts +3 -0
- package/lib/components/icon/generated/alert/LightningBolt16.d.ts +3 -0
- package/lib/components/icon/generated/alert/LightningBolt24.d.ts +3 -0
- package/lib/components/icon/generated/alert/LightningBoltFilled16.d.ts +3 -0
- package/lib/components/icon/generated/alert/LightningBoltFilled24.d.ts +3 -0
- package/lib/components/icon/generated/alert/QuestionMarkCircle16.d.ts +3 -0
- package/lib/components/icon/generated/alert/QuestionMarkCircle24.d.ts +3 -0
- package/lib/components/icon/generated/alert/WarningTriangle16.d.ts +3 -0
- package/lib/components/icon/generated/alert/WarningTriangle24.d.ts +3 -0
- package/lib/components/icon/generated/alert/index.d.ts +14 -0
- package/lib/components/icon/generated/animated/Loader24.d.ts +3 -0
- package/lib/components/icon/generated/animated/index.d.ts +1 -0
- package/lib/components/icon/generated/arrows/ArrowChevronDoubleDown16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowChevronDoubleDown24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowChevronDoubleLeft16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowChevronDoubleLeft24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowChevronDoubleRight16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowChevronDoubleRight24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowChevronDoubleUp16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowChevronDoubleUp24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowChevronDown16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowChevronDown24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowChevronLeft16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowChevronLeft24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowChevronRight16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowChevronRight24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowChevronUp16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowChevronUp24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowDown16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowDown24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowDownload16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowDownload24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowExternal16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowExternal24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowLeft16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowLeft24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowLineDown16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowLineDown24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowLineLeft16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowLineLeft24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowLineRight16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowLineRight24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowLineUp16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowLineUp24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowRight16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowRight24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowTriangleDown16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowTriangleDown24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowTriangleLeft16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowTriangleLeft24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowTriangleRight16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowTriangleRight24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowTriangleUp16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowTriangleUp24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowTriangleUpdown16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowTriangleUpdown24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowTriangleUpdownDownFilled16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowTriangleUpdownDownFilled24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowTriangleUpdownFilled16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowTriangleUpdownFilled24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowTriangleUpdownTopFilled16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowTriangleUpdownTopFilled24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowUp16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowUp24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowUpdown16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowUpdown24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowUpdownFilled16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowUpdownFilled24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowUpload16.d.ts +3 -0
- package/lib/components/icon/generated/arrows/ArrowUpload24.d.ts +3 -0
- package/lib/components/icon/generated/arrows/index.d.ts +58 -0
- package/lib/components/icon/generated/data/ChartBar16.d.ts +3 -0
- package/lib/components/icon/generated/data/ChartBar24.d.ts +3 -0
- package/lib/components/icon/generated/data/index.d.ts +2 -0
- package/lib/components/icon/generated/docs/DocumentBlank16.d.ts +3 -0
- package/lib/components/icon/generated/docs/DocumentBlank24.d.ts +3 -0
- package/lib/components/icon/generated/docs/Pencil16.d.ts +3 -0
- package/lib/components/icon/generated/docs/Pencil24.d.ts +3 -0
- package/lib/components/icon/generated/docs/index.d.ts +4 -0
- package/lib/components/icon/generated/location/House16.d.ts +3 -0
- package/lib/components/icon/generated/location/House24.d.ts +3 -0
- package/lib/components/icon/generated/location/LocationCalifornia16.d.ts +3 -0
- package/lib/components/icon/generated/location/LocationCalifornia24.d.ts +3 -0
- package/lib/components/icon/generated/location/LocationPin16.d.ts +3 -0
- package/lib/components/icon/generated/location/LocationPin24.d.ts +3 -0
- package/lib/components/icon/generated/location/index.d.ts +6 -0
- package/lib/components/icon/generated/logos/LogoApple16.d.ts +3 -0
- package/lib/components/icon/generated/logos/LogoApple24.d.ts +3 -0
- package/lib/components/icon/generated/logos/LogoFacebook16.d.ts +3 -0
- package/lib/components/icon/generated/logos/LogoFacebook24.d.ts +3 -0
- package/lib/components/icon/generated/logos/LogoGithub16.d.ts +3 -0
- package/lib/components/icon/generated/logos/LogoGithub24.d.ts +3 -0
- package/lib/components/icon/generated/logos/LogoGoogle16.d.ts +3 -0
- package/lib/components/icon/generated/logos/LogoGoogle24.d.ts +3 -0
- package/lib/components/icon/generated/logos/LogoInstagram16.d.ts +3 -0
- package/lib/components/icon/generated/logos/LogoInstagram24.d.ts +3 -0
- package/lib/components/icon/generated/logos/LogoLinkedin16.d.ts +3 -0
- package/lib/components/icon/generated/logos/LogoLinkedin24.d.ts +3 -0
- package/lib/components/icon/generated/logos/LogoPinterest16.d.ts +3 -0
- package/lib/components/icon/generated/logos/LogoPinterest24.d.ts +3 -0
- package/lib/components/icon/generated/logos/LogoTwitter16.d.ts +3 -0
- package/lib/components/icon/generated/logos/LogoTwitter24.d.ts +3 -0
- package/lib/components/icon/generated/logos/LogoYoutube16.d.ts +3 -0
- package/lib/components/icon/generated/logos/LogoYoutube24.d.ts +3 -0
- package/lib/components/icon/generated/logos/index.d.ts +18 -0
- package/lib/components/icon/generated/machine/Laptop16.d.ts +3 -0
- package/lib/components/icon/generated/machine/Laptop24.d.ts +3 -0
- package/lib/components/icon/generated/machine/index.d.ts +2 -0
- package/lib/components/icon/generated/media/Photo16.d.ts +3 -0
- package/lib/components/icon/generated/media/Photo24.d.ts +3 -0
- package/lib/components/icon/generated/media/PhotoFilled16.d.ts +3 -0
- package/lib/components/icon/generated/media/PhotoFilled24.d.ts +3 -0
- package/lib/components/icon/generated/media/index.d.ts +4 -0
- package/lib/components/icon/generated/payment/Cash16.d.ts +3 -0
- package/lib/components/icon/generated/payment/Cash24.d.ts +3 -0
- package/lib/components/icon/generated/payment/CreditCard16.d.ts +3 -0
- package/lib/components/icon/generated/payment/CreditCard24.d.ts +3 -0
- package/lib/components/icon/generated/payment/GiftBox16.d.ts +3 -0
- package/lib/components/icon/generated/payment/GiftBox24.d.ts +3 -0
- package/lib/components/icon/generated/payment/GiftCard16.d.ts +3 -0
- package/lib/components/icon/generated/payment/GiftCard24.d.ts +3 -0
- package/lib/components/icon/generated/payment/ShoppingBag16.d.ts +3 -0
- package/lib/components/icon/generated/payment/ShoppingBag24.d.ts +3 -0
- package/lib/components/icon/generated/payment/index.d.ts +10 -0
- package/lib/components/icon/generated/people/People16.d.ts +3 -0
- package/lib/components/icon/generated/people/People24.d.ts +3 -0
- package/lib/components/icon/generated/people/Person16.d.ts +3 -0
- package/lib/components/icon/generated/people/Person24.d.ts +3 -0
- package/lib/components/icon/generated/people/index.d.ts +4 -0
- package/lib/components/icon/generated/time/Calendar16.d.ts +3 -0
- package/lib/components/icon/generated/time/Calendar24.d.ts +3 -0
- package/lib/components/icon/generated/time/Clock16.d.ts +3 -0
- package/lib/components/icon/generated/time/Clock24.d.ts +3 -0
- package/lib/components/icon/generated/time/ClockFilled16.d.ts +3 -0
- package/lib/components/icon/generated/time/ClockFilled24.d.ts +3 -0
- package/lib/components/icon/generated/time/index.d.ts +6 -0
- package/lib/components/icon/generated/ui-control/CheckMark16.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/CheckMark24.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/CheckMarkCircleFilled16.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/CheckMarkCircleFilled24.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/Grid16.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/Grid24.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/LinesThree16.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/LinesThree24.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/LinesTwo16.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/LinesTwo24.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/Minus16.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/Minus24.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/MinusCircle16.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/MinusCircle24.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/Plus16.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/Plus24.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/PlusCircle16.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/PlusCircle24.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/ThreeDotsCluster16.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/ThreeDotsCluster24.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/ThreeDotsHorizontal16.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/ThreeDotsHorizontal24.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/X16.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/X24.d.ts +3 -0
- package/lib/components/icon/generated/ui-control/index.d.ts +24 -0
- package/lib/components/icon/generated/view/EyeOpen16.d.ts +3 -0
- package/lib/components/icon/generated/view/EyeOpen24.d.ts +3 -0
- package/lib/components/icon/generated/view/MagnifyingGlass16.d.ts +3 -0
- package/lib/components/icon/generated/view/MagnifyingGlass24.d.ts +3 -0
- package/lib/components/icon/generated/view/MagnifyingGlassFilled16.d.ts +3 -0
- package/lib/components/icon/generated/view/MagnifyingGlassFilled24.d.ts +3 -0
- package/lib/components/icon/generated/view/index.d.ts +6 -0
- package/lib/components/icon/generated/work/Assemble16.d.ts +3 -0
- package/lib/components/icon/generated/work/Assemble24.d.ts +3 -0
- package/lib/components/icon/generated/work/BasketFilled16.d.ts +3 -0
- package/lib/components/icon/generated/work/BasketFilled24.d.ts +3 -0
- package/lib/components/icon/generated/work/Box16.d.ts +3 -0
- package/lib/components/icon/generated/work/Box24.d.ts +3 -0
- package/lib/components/icon/generated/work/Corner16.d.ts +3 -0
- package/lib/components/icon/generated/work/Corner24.d.ts +3 -0
- package/lib/components/icon/generated/work/CubeOutline16.d.ts +3 -0
- package/lib/components/icon/generated/work/CubeOutline24.d.ts +3 -0
- package/lib/components/icon/generated/work/Leaf16.d.ts +3 -0
- package/lib/components/icon/generated/work/Leaf24.d.ts +3 -0
- package/lib/components/icon/generated/work/LightBulb16.d.ts +3 -0
- package/lib/components/icon/generated/work/LightBulb24.d.ts +3 -0
- package/lib/components/icon/generated/work/Mask16.d.ts +3 -0
- package/lib/components/icon/generated/work/Mask24.d.ts +3 -0
- package/lib/components/icon/generated/work/PCircle16.d.ts +3 -0
- package/lib/components/icon/generated/work/PCircle24.d.ts +3 -0
- package/lib/components/icon/generated/work/PrintNozzle16.d.ts +3 -0
- package/lib/components/icon/generated/work/PrintNozzle24.d.ts +3 -0
- package/lib/components/icon/generated/work/RfidSignal16.d.ts +3 -0
- package/lib/components/icon/generated/work/RfidSignal24.d.ts +3 -0
- package/lib/components/icon/generated/work/SandPaper16.d.ts +3 -0
- package/lib/components/icon/generated/work/SandPaper24.d.ts +3 -0
- package/lib/components/icon/generated/work/Sun16.d.ts +3 -0
- package/lib/components/icon/generated/work/Sun24.d.ts +3 -0
- package/lib/components/icon/generated/work/TriangleRuler16.d.ts +3 -0
- package/lib/components/icon/generated/work/TriangleRuler24.d.ts +3 -0
- package/lib/components/icon/generated/work/WaterDrop16.d.ts +3 -0
- package/lib/components/icon/generated/work/WaterDrop24.d.ts +3 -0
- package/lib/components/icon/generated/work/Wrench16.d.ts +3 -0
- package/lib/components/icon/generated/work/Wrench24.d.ts +3 -0
- package/lib/components/icon/generated/work/index.d.ts +32 -0
- package/lib/components/icon/icon.d.ts +1 -1
- package/lib/components/icon/icon.presets.d.ts +1 -1
- package/lib/components/icon/icon.type.d.ts +2 -1
- package/lib/components/icon/{icon.props.d.ts → icon.types.d.ts} +2 -4
- package/lib/components/icon/index.d.ts +1 -1
- package/lib/components/image/image.d.ts +3 -0
- package/lib/components/image/image.helpers.d.ts +5 -0
- package/lib/components/image/image.presets.d.ts +3 -0
- package/lib/components/image/image.styles.d.ts +3 -0
- package/lib/components/image/image.types.d.ts +38 -0
- package/lib/components/image/index.d.ts +1 -0
- package/lib/components/index.d.ts +10 -0
- package/lib/components/radio/index.d.ts +1 -0
- package/lib/components/radio/radio.d.ts +6 -0
- package/lib/components/radio/radio.presets.d.ts +2 -0
- package/lib/components/radio/radio.styles.d.ts +4 -0
- package/lib/components/radio/radio.types.d.ts +12 -0
- package/lib/components/stack/index.d.ts +1 -0
- package/lib/components/stack/stack.d.ts +3 -0
- package/lib/components/stack/stack.presets.d.ts +2 -0
- package/lib/components/stack/stack.types.d.ts +3 -0
- package/lib/components/typography/index.d.ts +1 -0
- package/lib/components/typography/typography.d.ts +11 -0
- package/lib/components/typography/typography.presets.d.ts +2 -0
- package/lib/components/typography/typography.styles.d.ts +2 -0
- package/lib/components/typography/typography.types.d.ts +46 -0
- package/lib/helpers/layout.helpers.d.ts +4 -3
- package/lib/index.d.ts +2 -4
- package/lib/styles/base.d.ts +1 -0
- package/lib/styles/theme.d.ts +2 -2
- package/lib/styles/theme.stories.d.ts +6 -0
- package/lib/types/common.d.ts +1 -0
- package/lib/types/resolution-aware-prop.type.d.ts +1 -1
- package/package.json +24 -16
- package/lib/components/Button/Button.d.ts +0 -29
- package/lib/components/Button/index.d.ts +0 -1
- package/lib/components/icon/generated/30DaysReturn.d.ts +0 -3
- package/lib/components/icon/generated/Address.d.ts +0 -3
- package/lib/components/icon/generated/Affirm.d.ts +0 -3
- package/lib/components/icon/generated/AffirmBlue.d.ts +0 -3
- package/lib/components/icon/generated/Amex.d.ts +0 -3
- package/lib/components/icon/generated/ApplePay.d.ts +0 -3
- package/lib/components/icon/generated/Ar.d.ts +0 -3
- package/lib/components/icon/generated/ArrowCircle.d.ts +0 -3
- package/lib/components/icon/generated/ArrowDown.d.ts +0 -3
- package/lib/components/icon/generated/ArrowLeft.d.ts +0 -3
- package/lib/components/icon/generated/ArrowRight.d.ts +0 -3
- package/lib/components/icon/generated/Behance.d.ts +0 -3
- package/lib/components/icon/generated/Bell.d.ts +0 -3
- package/lib/components/icon/generated/BellTransparent.d.ts +0 -3
- package/lib/components/icon/generated/BlankCard.d.ts +0 -3
- package/lib/components/icon/generated/Box.d.ts +0 -3
- package/lib/components/icon/generated/Branch.d.ts +0 -3
- package/lib/components/icon/generated/Bulb.d.ts +0 -3
- package/lib/components/icon/generated/Calendar.d.ts +0 -3
- package/lib/components/icon/generated/California.d.ts +0 -3
- package/lib/components/icon/generated/Camera.d.ts +0 -3
- package/lib/components/icon/generated/CameraSquare.d.ts +0 -3
- package/lib/components/icon/generated/Cart.d.ts +0 -3
- package/lib/components/icon/generated/Chain.d.ts +0 -3
- package/lib/components/icon/generated/Check.d.ts +0 -3
- package/lib/components/icon/generated/CheckFill.d.ts +0 -3
- package/lib/components/icon/generated/CheckReverse.d.ts +0 -3
- package/lib/components/icon/generated/CheckRound.d.ts +0 -3
- package/lib/components/icon/generated/ChevronDown.d.ts +0 -3
- package/lib/components/icon/generated/ChevronLeft.d.ts +0 -3
- package/lib/components/icon/generated/ChevronRight.d.ts +0 -3
- package/lib/components/icon/generated/Clip.d.ts +0 -3
- package/lib/components/icon/generated/Close.d.ts +0 -3
- package/lib/components/icon/generated/Cloud.d.ts +0 -3
- package/lib/components/icon/generated/Dashboard.d.ts +0 -3
- package/lib/components/icon/generated/DashboardChart.d.ts +0 -3
- package/lib/components/icon/generated/Design.d.ts +0 -3
- package/lib/components/icon/generated/Dimming.d.ts +0 -3
- package/lib/components/icon/generated/DisabledArrows.d.ts +0 -3
- package/lib/components/icon/generated/DisabledInputArrow.d.ts +0 -3
- package/lib/components/icon/generated/Discover.d.ts +0 -3
- package/lib/components/icon/generated/Docs.d.ts +0 -3
- package/lib/components/icon/generated/Dollar.d.ts +0 -3
- package/lib/components/icon/generated/Dots.d.ts +0 -3
- package/lib/components/icon/generated/DotsAnimated.d.ts +0 -3
- package/lib/components/icon/generated/Download.d.ts +0 -3
- package/lib/components/icon/generated/Drag.d.ts +0 -3
- package/lib/components/icon/generated/DragHandler.d.ts +0 -3
- package/lib/components/icon/generated/ElkLogo.d.ts +0 -3
- package/lib/components/icon/generated/Email.d.ts +0 -3
- package/lib/components/icon/generated/EmailRound.d.ts +0 -3
- package/lib/components/icon/generated/Error.d.ts +0 -3
- package/lib/components/icon/generated/FacebookBlack.d.ts +0 -3
- package/lib/components/icon/generated/FacebookTransparent.d.ts +0 -3
- package/lib/components/icon/generated/Flower.d.ts +0 -3
- package/lib/components/icon/generated/FreeShipping.d.ts +0 -3
- package/lib/components/icon/generated/Gift.d.ts +0 -3
- package/lib/components/icon/generated/GiftCard.d.ts +0 -3
- package/lib/components/icon/generated/GiftGold.d.ts +0 -3
- package/lib/components/icon/generated/GiftTeal.d.ts +0 -3
- package/lib/components/icon/generated/Google.d.ts +0 -3
- package/lib/components/icon/generated/Guarantee.d.ts +0 -3
- package/lib/components/icon/generated/Hand.d.ts +0 -3
- package/lib/components/icon/generated/Heart.d.ts +0 -3
- package/lib/components/icon/generated/HeartOutlined.d.ts +0 -3
- package/lib/components/icon/generated/Help.d.ts +0 -3
- package/lib/components/icon/generated/House.d.ts +0 -3
- package/lib/components/icon/generated/IconBell.d.ts +0 -3
- package/lib/components/icon/generated/IconCheck.d.ts +0 -3
- package/lib/components/icon/generated/IconDotArrow.d.ts +0 -3
- package/lib/components/icon/generated/IconDotModalClose.d.ts +0 -3
- package/lib/components/icon/generated/IconDownload.d.ts +0 -3
- package/lib/components/icon/generated/IconInfo.d.ts +0 -3
- package/lib/components/icon/generated/IconJobsAssemble.d.ts +0 -3
- package/lib/components/icon/generated/IconJobsBondo.d.ts +0 -3
- package/lib/components/icon/generated/IconJobsPack.d.ts +0 -3
- package/lib/components/icon/generated/IconJobsPrint.d.ts +0 -3
- package/lib/components/icon/generated/IconJobsQa.d.ts +0 -3
- package/lib/components/icon/generated/IconJobsSand.d.ts +0 -3
- package/lib/components/icon/generated/IconMenu.d.ts +0 -3
- package/lib/components/icon/generated/IconMenuClose.d.ts +0 -3
- package/lib/components/icon/generated/IconMore.d.ts +0 -3
- package/lib/components/icon/generated/IconReorderOff.d.ts +0 -3
- package/lib/components/icon/generated/IconReorderOn.d.ts +0 -3
- package/lib/components/icon/generated/IconSequence.d.ts +0 -3
- package/lib/components/icon/generated/IconStar.d.ts +0 -3
- package/lib/components/icon/generated/IconStarFilled.d.ts +0 -3
- package/lib/components/icon/generated/IconUpload.d.ts +0 -3
- package/lib/components/icon/generated/IconUserProfile.d.ts +0 -3
- package/lib/components/icon/generated/IconUserStats.d.ts +0 -3
- package/lib/components/icon/generated/Info.d.ts +0 -3
- package/lib/components/icon/generated/InputArrow.d.ts +0 -3
- package/lib/components/icon/generated/Instagram.d.ts +0 -3
- package/lib/components/icon/generated/InstagramColored.d.ts +0 -3
- package/lib/components/icon/generated/Lamp.d.ts +0 -3
- package/lib/components/icon/generated/Leaf.d.ts +0 -3
- package/lib/components/icon/generated/Led.d.ts +0 -3
- package/lib/components/icon/generated/LeftQuote.d.ts +0 -3
- package/lib/components/icon/generated/Letter.d.ts +0 -3
- package/lib/components/icon/generated/Link.d.ts +0 -3
- package/lib/components/icon/generated/LiveTracking.d.ts +0 -3
- package/lib/components/icon/generated/Loader.d.ts +0 -3
- package/lib/components/icon/generated/Logo.d.ts +0 -3
- package/lib/components/icon/generated/Mastercard.d.ts +0 -3
- package/lib/components/icon/generated/Menu.d.ts +0 -3
- package/lib/components/icon/generated/MenuDown.d.ts +0 -3
- package/lib/components/icon/generated/MinusCircle.d.ts +0 -3
- package/lib/components/icon/generated/Moon.d.ts +0 -3
- package/lib/components/icon/generated/NavHelp.d.ts +0 -3
- package/lib/components/icon/generated/Next.d.ts +0 -3
- package/lib/components/icon/generated/One.d.ts +0 -3
- package/lib/components/icon/generated/Paint.d.ts +0 -3
- package/lib/components/icon/generated/Pencil.d.ts +0 -3
- package/lib/components/icon/generated/Pinterest.d.ts +0 -3
- package/lib/components/icon/generated/PinterestColored.d.ts +0 -3
- package/lib/components/icon/generated/Play.d.ts +0 -3
- package/lib/components/icon/generated/PlayFull.d.ts +0 -3
- package/lib/components/icon/generated/Plus.d.ts +0 -3
- package/lib/components/icon/generated/PlusCircle.d.ts +0 -3
- package/lib/components/icon/generated/PlusCircleBold.d.ts +0 -3
- package/lib/components/icon/generated/Pointing.d.ts +0 -3
- package/lib/components/icon/generated/Previous.d.ts +0 -3
- package/lib/components/icon/generated/Ray.d.ts +0 -3
- package/lib/components/icon/generated/Reach.d.ts +0 -3
- package/lib/components/icon/generated/ReachLogo.d.ts +0 -3
- package/lib/components/icon/generated/Returns.d.ts +0 -3
- package/lib/components/icon/generated/RightArrow.d.ts +0 -3
- package/lib/components/icon/generated/Ruler.d.ts +0 -3
- package/lib/components/icon/generated/Search.d.ts +0 -3
- package/lib/components/icon/generated/Settings.d.ts +0 -3
- package/lib/components/icon/generated/Share.d.ts +0 -3
- package/lib/components/icon/generated/SprkLogo.d.ts +0 -3
- package/lib/components/icon/generated/Star.d.ts +0 -3
- package/lib/components/icon/generated/StarHalf.d.ts +0 -3
- package/lib/components/icon/generated/StarOutlined.d.ts +0 -3
- package/lib/components/icon/generated/Sun.d.ts +0 -3
- package/lib/components/icon/generated/Tip.d.ts +0 -3
- package/lib/components/icon/generated/Trash.d.ts +0 -3
- package/lib/components/icon/generated/TrashRound.d.ts +0 -3
- package/lib/components/icon/generated/Trunk.d.ts +0 -3
- package/lib/components/icon/generated/Twitter.d.ts +0 -3
- package/lib/components/icon/generated/TwitterTransparent.d.ts +0 -3
- package/lib/components/icon/generated/User.d.ts +0 -3
- package/lib/components/icon/generated/UserSmiling.d.ts +0 -3
- package/lib/components/icon/generated/Visa.d.ts +0 -3
- package/lib/components/icon/generated/Warranty.d.ts +0 -3
- package/lib/components/icon/generated/Website.d.ts +0 -3
- package/lib/components/icon/generated/Windows.d.ts +0 -3
- package/lib/components/icon/generated/Wishlist.d.ts +0 -3
- package/lib/components/icon/generated/World.d.ts +0 -3
- package/lib/components/icon/generated/Yotpo.d.ts +0 -3
- package/lib/components/icon/generated/index.d.ts +0 -151
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const StyledRadioContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const StyledRadio: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const StyledRadioInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const StyledRadioMarker: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TextVariant } from '../typography/typography.types';
|
|
2
|
+
export interface RadioProps {
|
|
3
|
+
groupValue?: any;
|
|
4
|
+
labelPosition?: 'left' | 'right';
|
|
5
|
+
labelText?: string;
|
|
6
|
+
labelTx?: string;
|
|
7
|
+
labelVariant?: TextVariant;
|
|
8
|
+
name: string;
|
|
9
|
+
onChange?: (event: any) => void;
|
|
10
|
+
onSelected?: (value: any) => void;
|
|
11
|
+
value?: any;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Stack } from './stack';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './typography';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TypographyProps } from './typography.types';
|
|
3
|
+
export declare const variantToType: {
|
|
4
|
+
readonly badge: "span";
|
|
5
|
+
readonly hero: "h1";
|
|
6
|
+
readonly p0: "p";
|
|
7
|
+
readonly p1: "p";
|
|
8
|
+
readonly p2: "p";
|
|
9
|
+
readonly p3: "p";
|
|
10
|
+
};
|
|
11
|
+
export declare const Typography: React.ForwardRefExoticComponent<TypographyProps & React.RefAttributes<unknown>>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
import { DefaultTheme } from 'styled-components';
|
|
3
|
+
import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
|
|
4
|
+
export declare type TextAlign = 'string' | 'left' | 'center' | 'right' | 'unset';
|
|
5
|
+
export declare type TextVariant = 'p0' | 'p1' | 'p2' | 'p3' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'hero';
|
|
6
|
+
export declare type TextStyle = 'regular' | 'bold';
|
|
7
|
+
export interface TypographyProps {
|
|
8
|
+
align?: ResolutionAwareProp<string>;
|
|
9
|
+
alignSelf?: ResolutionAwareProp<Property.AlignSelf>;
|
|
10
|
+
color?: keyof DefaultTheme['colors']['typography'];
|
|
11
|
+
display?: ResolutionAwareProp<Property.Display>;
|
|
12
|
+
fontSize?: ResolutionAwareProp<Property.Font>;
|
|
13
|
+
fontWeight?: Property.FontWeight;
|
|
14
|
+
hidden?: ResolutionAwareProp<boolean>;
|
|
15
|
+
horizontalMargin?: ResolutionAwareProp<Property.Margin>;
|
|
16
|
+
horizontalPadding?: ResolutionAwareProp<Property.Padding>;
|
|
17
|
+
htmlFor?: string;
|
|
18
|
+
htmlText?: string;
|
|
19
|
+
justifySelf?: ResolutionAwareProp<Property.JustifySelf>;
|
|
20
|
+
letterSpacing?: ResolutionAwareProp<Property.LetterSpacing>;
|
|
21
|
+
lineHeight?: ResolutionAwareProp<Property.LineHeight>;
|
|
22
|
+
margin?: ResolutionAwareProp<Property.Margin>;
|
|
23
|
+
marginBottom?: ResolutionAwareProp<Property.MarginBottom>;
|
|
24
|
+
marginLeft?: ResolutionAwareProp<Property.MarginLeft>;
|
|
25
|
+
marginRight?: ResolutionAwareProp<Property.MarginRight>;
|
|
26
|
+
marginTop?: ResolutionAwareProp<Property.MarginTop>;
|
|
27
|
+
maxWidth?: ResolutionAwareProp<string>;
|
|
28
|
+
minWidth?: ResolutionAwareProp<string>;
|
|
29
|
+
onClick?: () => void;
|
|
30
|
+
padding?: ResolutionAwareProp<Property.Padding>;
|
|
31
|
+
paddingBottom?: ResolutionAwareProp<Property.PaddingBottom>;
|
|
32
|
+
paddingLeft?: ResolutionAwareProp<Property.PaddingLeft>;
|
|
33
|
+
paddingRight?: ResolutionAwareProp<Property.PaddingRight>;
|
|
34
|
+
paddingTop?: ResolutionAwareProp<Property.PaddingTop>;
|
|
35
|
+
text?: string | number;
|
|
36
|
+
textShadow?: Property.TextShadow;
|
|
37
|
+
textStyle?: TextStyle;
|
|
38
|
+
transform?: Property.TextTransform;
|
|
39
|
+
tx?: string;
|
|
40
|
+
txValues?: Record<string, unknown>;
|
|
41
|
+
type?: string;
|
|
42
|
+
variant?: TextVariant;
|
|
43
|
+
verticalMargin?: ResolutionAwareProp<Property.Margin>;
|
|
44
|
+
verticalPadding?: ResolutionAwareProp<Property.Padding>;
|
|
45
|
+
whiteSpace?: ResolutionAwareProp<any>;
|
|
46
|
+
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { AppSize, ResolutionAwareProp, ResolutionAwarePropBase } from '../types/resolution-aware-prop.type';
|
|
2
2
|
import { ExtractStyleFromResolutionAwarePropEntry } from '../types/layout';
|
|
3
|
-
export declare
|
|
3
|
+
export declare function extractValuesFromResolutionAwareProp<T = unknown>(prop: unknown): ResolutionAwarePropBase<T>;
|
|
4
|
+
export declare const isResolutionAwareProperty: (prop: unknown) => prop is any;
|
|
4
5
|
export declare const getResolutionPrefix: () => AppSize;
|
|
5
6
|
export declare const extractValueFromResolutionAwareProp: (prop: any, size: AppSize) => any;
|
|
6
7
|
export declare const calculateDimensionsFromAspectRatio: (aspectRatio: string) => {
|
|
7
8
|
height: string;
|
|
8
9
|
width: string;
|
|
9
10
|
};
|
|
10
|
-
export declare
|
|
11
|
+
export declare function generateStylesForResolutionAwareProps<T>(entries: ExtractStyleFromResolutionAwarePropEntry[]): import("styled-components").FlattenSimpleInterpolation;
|
|
11
12
|
export declare const isLargeScreen: () => boolean;
|
|
12
13
|
export declare const isSmallScreen: () => boolean;
|
|
13
14
|
export declare const extractValueFromResolutionAwarePropertyForCurrentScreenSize: (property: ResolutionAwareProp<any>) => any;
|
|
14
15
|
export declare const getAspectRatioByCategory: (category: string) => string;
|
|
15
|
-
export declare const isCssPropertyValueDefined: (property
|
|
16
|
+
export declare const isCssPropertyValueDefined: (property?: unknown) => unknown;
|
|
16
17
|
export declare const getAspectRatio: (width: number, height: number) => string;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { ThemeProvider, darkTheme, lightTheme, combinationsByColor, getThemeColor, palette, media, } from './styles';
|
|
4
|
-
export { Button, Icon };
|
|
1
|
+
export { Box, Button, Cell, Flex, Grid, Icon, Radio, Stack, Typography, } from './components';
|
|
2
|
+
export { ThemeProvider, darkTheme, lightTheme, combinationsByColor, getThemeColor, getThemeSpacing, palette, media, } from './styles';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const generateGlobalStyles: () => import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
package/lib/styles/theme.d.ts
CHANGED
|
@@ -70,7 +70,6 @@ declare module 'styled-components' {
|
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
72
|
fonts: {
|
|
73
|
-
badge: FontInfo;
|
|
74
73
|
boldFontFamily: string;
|
|
75
74
|
h1: FontInfo;
|
|
76
75
|
h2: FontInfo;
|
|
@@ -78,7 +77,6 @@ declare module 'styled-components' {
|
|
|
78
77
|
h4: FontInfo;
|
|
79
78
|
h5: FontInfo;
|
|
80
79
|
hero: FontInfo;
|
|
81
|
-
link: FontInfo;
|
|
82
80
|
p0: FontInfo;
|
|
83
81
|
p1: FontInfo;
|
|
84
82
|
p2: FontInfo;
|
|
@@ -98,6 +96,7 @@ declare module 'styled-components' {
|
|
|
98
96
|
declare const lightTheme: DefaultTheme;
|
|
99
97
|
declare const darkTheme: DefaultTheme;
|
|
100
98
|
export declare const getThemeColor: (color: PaletteColor, currentTheme?: DefaultTheme) => string;
|
|
99
|
+
export declare const getThemeSpacing: (property: string, currentTheme?: DefaultTheme) => any;
|
|
101
100
|
declare const combinationsByColor: (appTheme?: DefaultTheme) => {
|
|
102
101
|
alert: {
|
|
103
102
|
background: string;
|
|
@@ -155,6 +154,7 @@ declare const combinationsByColor: (appTheme?: DefaultTheme) => {
|
|
|
155
154
|
};
|
|
156
155
|
secondary: {
|
|
157
156
|
background: string;
|
|
157
|
+
color: string;
|
|
158
158
|
hover: string;
|
|
159
159
|
selected: string;
|
|
160
160
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Meta } from '@storybook/react/types-6-0';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const ColorsPalette: () => JSX.Element;
|
|
6
|
+
export declare const ThemeColors: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type Optional<T> = T | null | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gantri-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/src/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
"storybook": "start-storybook -p 6006",
|
|
14
14
|
"build-storybook": "build-storybook",
|
|
15
15
|
"prepare": "husky install",
|
|
16
|
-
"generate-icons": "
|
|
17
|
-
"
|
|
18
|
-
"git-add:svgs": "cd src/components/icon/generated && git add --all",
|
|
19
|
-
"clean:svgs": "cd src/components/icon/generated && del-cli *.tsx"
|
|
16
|
+
"generate-icons": "node scripts/generate-icons.js",
|
|
17
|
+
"prebuild": "yarn generate-icons"
|
|
20
18
|
},
|
|
21
19
|
"peerDependencies": {
|
|
20
|
+
"formik": "^2.2.9",
|
|
22
21
|
"react": "^17.0.2",
|
|
23
|
-
"react-dom": "^17.0.2"
|
|
22
|
+
"react-dom": "^17.0.2",
|
|
23
|
+
"styled-components": "^5.3.3"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@babel/core": "^7.17.5",
|
|
@@ -36,17 +36,19 @@
|
|
|
36
36
|
"@semantic-release/github": "^8.0.2",
|
|
37
37
|
"@semantic-release/npm": "^9.0.1",
|
|
38
38
|
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
39
|
-
"@storybook/addon-actions": "^6.4.
|
|
40
|
-
"@storybook/addon-essentials": "^6.4.
|
|
41
|
-
"@storybook/addon-interactions": "^6.4.
|
|
42
|
-
"@storybook/addon-links": "^6.4.
|
|
43
|
-
"@storybook/addons": "^6.4.
|
|
44
|
-
"@storybook/react": "^6.4.
|
|
45
|
-
"@storybook/testing-library": "^0.0.
|
|
46
|
-
"@storybook/theming": "^6.4.
|
|
39
|
+
"@storybook/addon-actions": "^6.4.22",
|
|
40
|
+
"@storybook/addon-essentials": "^6.4.22",
|
|
41
|
+
"@storybook/addon-interactions": "^6.4.22",
|
|
42
|
+
"@storybook/addon-links": "^6.4.22",
|
|
43
|
+
"@storybook/addons": "^6.4.22",
|
|
44
|
+
"@storybook/react": "^6.4.22",
|
|
45
|
+
"@storybook/testing-library": "^0.0.10",
|
|
46
|
+
"@storybook/theming": "^6.4.22",
|
|
47
47
|
"@svgr/cli": "^6.2.1",
|
|
48
48
|
"@types/lodash.isobject": "^3.0.6",
|
|
49
|
-
"@types/react": "
|
|
49
|
+
"@types/react": "17.0.39",
|
|
50
|
+
"@types/react-input-mask": "^3.0.1",
|
|
51
|
+
"@types/styled-components": "^5.1.25",
|
|
50
52
|
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
|
51
53
|
"@typescript-eslint/parser": "^5.14.0",
|
|
52
54
|
"babel-loader": "^8.2.3",
|
|
@@ -64,6 +66,7 @@
|
|
|
64
66
|
"eslint-plugin-react": "^7.29.3",
|
|
65
67
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
66
68
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
69
|
+
"eslint-plugin-storybook": "^0.5.10",
|
|
67
70
|
"eslint-plugin-typescript-sort-keys": "^2.1.0",
|
|
68
71
|
"husky": "^7.0.4",
|
|
69
72
|
"lint-staged": "^12.3.5",
|
|
@@ -71,6 +74,7 @@
|
|
|
71
74
|
"prettier": "^2.5.1",
|
|
72
75
|
"react": "^17.0.2",
|
|
73
76
|
"react-dom": "^17.0.2",
|
|
77
|
+
"react-use": "^17.3.2",
|
|
74
78
|
"rollup": "^2.70.0",
|
|
75
79
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
76
80
|
"rollup-plugin-postcss": "^4.0.2",
|
|
@@ -78,8 +82,12 @@
|
|
|
78
82
|
"typescript": "^4.6.2"
|
|
79
83
|
},
|
|
80
84
|
"dependencies": {
|
|
81
|
-
"@
|
|
85
|
+
"@cloudinary/url-gen": "^1.7.0",
|
|
86
|
+
"formik": "^2.2.9",
|
|
82
87
|
"lodash.isobject": "^3.0.2",
|
|
88
|
+
"react-i18next": "^11.16.1",
|
|
89
|
+
"react-input-mask": "^2.0.4",
|
|
90
|
+
"react-spring": "^9.4.4",
|
|
83
91
|
"styled-components": "^5.3.3",
|
|
84
92
|
"styled-media-query": "^2.1.2"
|
|
85
93
|
},
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './Button.css';
|
|
3
|
-
export interface ButtonProps {
|
|
4
|
-
/**
|
|
5
|
-
* What background color to use
|
|
6
|
-
*/
|
|
7
|
-
backgroundColor?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Button contents
|
|
10
|
-
*/
|
|
11
|
-
label: string;
|
|
12
|
-
/**
|
|
13
|
-
* Optional click handler
|
|
14
|
-
*/
|
|
15
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
16
|
-
/**
|
|
17
|
-
* Is this the principal call to action on the page?
|
|
18
|
-
*/
|
|
19
|
-
primary?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* How large should the button be??
|
|
22
|
-
*/
|
|
23
|
-
size?: 'small' | 'medium' | 'large';
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Primary UI component for user interaction
|
|
27
|
-
*/
|
|
28
|
-
declare const Button: ({ primary, backgroundColor, size, onClick, label, }: ButtonProps) => JSX.Element;
|
|
29
|
-
export default Button;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Button';
|