gantri-components 1.7.8 → 1.9.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 +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/lib/components/aspect-ratio/aspect-ratio.d.ts +3 -0
- package/dist/lib/components/aspect-ratio/aspect-ratio.presets.d.ts +2 -0
- package/dist/lib/components/aspect-ratio/aspect-ratio.styles.d.ts +5 -0
- package/dist/lib/components/aspect-ratio/aspect-ratio.types.d.ts +11 -0
- package/dist/lib/components/aspect-ratio/index.d.ts +1 -0
- package/dist/lib/components/box/box.d.ts +3 -0
- package/dist/lib/components/box/box.presets.d.ts +2 -0
- package/dist/lib/components/box/box.styles.d.ts +2 -0
- package/dist/lib/components/box/box.types.d.ts +38 -0
- package/dist/lib/components/box/index.d.ts +1 -0
- package/dist/lib/components/button/button.d.ts +3 -0
- package/dist/lib/components/button/button.presets.d.ts +2 -0
- package/dist/lib/components/button/button.styles.d.ts +3 -0
- package/dist/lib/components/button/button.types.d.ts +32 -0
- package/dist/lib/components/button/index.d.ts +1 -0
- package/dist/lib/components/cell/cell.d.ts +3 -0
- package/dist/lib/components/cell/cell.presets.d.ts +2 -0
- package/dist/lib/components/cell/cell.styles.d.ts +2 -0
- package/dist/lib/components/cell/cell.types.d.ts +33 -0
- package/dist/lib/components/cell/index.d.ts +1 -0
- package/dist/lib/components/checkbox/checkbox.d.ts +3 -0
- package/dist/lib/components/checkbox/checkbox.presets.d.ts +2 -0
- package/dist/lib/components/checkbox/checkbox.styles.d.ts +4 -0
- package/dist/lib/components/checkbox/checkbox.types.d.ts +12 -0
- package/dist/lib/components/checkbox/index.d.ts +1 -0
- package/dist/lib/components/flex/flex.d.ts +3 -0
- package/dist/lib/components/flex/flex.presets.d.ts +2 -0
- package/dist/lib/components/flex/flex.styles.d.ts +3 -0
- package/dist/lib/components/flex/flex.types.d.ts +11 -0
- package/dist/lib/components/flex/index.d.ts +1 -0
- package/dist/lib/components/grid/grid.d.ts +3 -0
- package/dist/lib/components/grid/grid.presets.d.ts +2 -0
- package/dist/lib/components/grid/grid.styles.d.ts +2 -0
- package/dist/lib/components/grid/grid.types.d.ts +26 -0
- package/dist/lib/components/grid/index.d.ts +1 -0
- package/dist/lib/components/icon/generated/actions/Funnel16.d.ts +3 -0
- package/dist/lib/components/icon/generated/actions/Funnel24.d.ts +3 -0
- package/dist/lib/components/icon/generated/actions/Gear16.d.ts +3 -0
- package/dist/lib/components/icon/generated/actions/Gear24.d.ts +3 -0
- package/dist/lib/components/icon/generated/actions/LifeBuoy16.d.ts +3 -0
- package/dist/lib/components/icon/generated/actions/LifeBuoy24.d.ts +3 -0
- package/dist/lib/components/icon/generated/actions/Link16.d.ts +3 -0
- package/dist/lib/components/icon/generated/actions/Link24.d.ts +3 -0
- package/dist/lib/components/icon/generated/actions/Star16.d.ts +3 -0
- package/dist/lib/components/icon/generated/actions/Star24.d.ts +3 -0
- package/dist/lib/components/icon/generated/actions/StarFilled16.d.ts +3 -0
- package/dist/lib/components/icon/generated/actions/StarFilled24.d.ts +3 -0
- package/dist/lib/components/icon/generated/actions/ThumbsUp16.d.ts +3 -0
- package/dist/lib/components/icon/generated/actions/ThumbsUp24.d.ts +3 -0
- package/dist/lib/components/icon/generated/actions/TrashCan16.d.ts +3 -0
- package/dist/lib/components/icon/generated/actions/TrashCan24.d.ts +3 -0
- package/dist/lib/components/icon/generated/actions/index.d.ts +16 -0
- package/dist/lib/components/icon/generated/alert/Bell16.d.ts +3 -0
- package/dist/lib/components/icon/generated/alert/Bell24.d.ts +3 -0
- package/dist/lib/components/icon/generated/alert/BellFilled16.d.ts +3 -0
- package/dist/lib/components/icon/generated/alert/BellFilled24.d.ts +3 -0
- package/dist/lib/components/icon/generated/alert/ICircle16.d.ts +3 -0
- package/dist/lib/components/icon/generated/alert/ICircle24.d.ts +3 -0
- package/dist/lib/components/icon/generated/alert/LightningBolt16.d.ts +3 -0
- package/dist/lib/components/icon/generated/alert/LightningBolt24.d.ts +3 -0
- package/dist/lib/components/icon/generated/alert/LightningBoltFilled16.d.ts +3 -0
- package/dist/lib/components/icon/generated/alert/LightningBoltFilled24.d.ts +3 -0
- package/dist/lib/components/icon/generated/alert/QuestionMarkCircle16.d.ts +3 -0
- package/dist/lib/components/icon/generated/alert/QuestionMarkCircle24.d.ts +3 -0
- package/dist/lib/components/icon/generated/alert/WarningTriangle16.d.ts +3 -0
- package/dist/lib/components/icon/generated/alert/WarningTriangle24.d.ts +3 -0
- package/dist/lib/components/icon/generated/alert/index.d.ts +14 -0
- package/dist/lib/components/icon/generated/animated/Loader24.d.ts +3 -0
- package/dist/lib/components/icon/generated/animated/index.d.ts +1 -0
- package/dist/lib/components/icon/generated/arrows/ArrowChevronDoubleDown16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowChevronDoubleDown24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowChevronDoubleLeft16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowChevronDoubleLeft24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowChevronDoubleRight16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowChevronDoubleRight24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowChevronDoubleUp16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowChevronDoubleUp24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowChevronDown16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowChevronDown24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowChevronLeft16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowChevronLeft24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowChevronRight16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowChevronRight24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowChevronUp16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowChevronUp24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowDown16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowDown24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowDownload16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowDownload24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowExternal16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowExternal24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowLeft16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowLeft24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowLineDown16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowLineDown24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowLineLeft16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowLineLeft24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowLineRight16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowLineRight24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowLineUp16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowLineUp24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowRight16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowRight24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowTriangleDown16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowTriangleDown24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowTriangleLeft16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowTriangleLeft24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowTriangleRight16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowTriangleRight24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowTriangleUp16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowTriangleUp24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowTriangleUpdown16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowTriangleUpdown24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowTriangleUpdownDownFilled16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowTriangleUpdownDownFilled24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowTriangleUpdownFilled16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowTriangleUpdownFilled24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowTriangleUpdownTopFilled16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowTriangleUpdownTopFilled24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowUp16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowUp24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowUpdown16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowUpdown24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowUpdownFilled16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowUpdownFilled24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowUpload16.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/ArrowUpload24.d.ts +3 -0
- package/dist/lib/components/icon/generated/arrows/index.d.ts +58 -0
- package/dist/lib/components/icon/generated/data/ChartBar16.d.ts +3 -0
- package/dist/lib/components/icon/generated/data/ChartBar24.d.ts +3 -0
- package/dist/lib/components/icon/generated/data/index.d.ts +2 -0
- package/dist/lib/components/icon/generated/docs/DocumentBlank16.d.ts +3 -0
- package/dist/lib/components/icon/generated/docs/DocumentBlank24.d.ts +3 -0
- package/dist/lib/components/icon/generated/docs/Pencil16.d.ts +3 -0
- package/dist/lib/components/icon/generated/docs/Pencil24.d.ts +3 -0
- package/dist/lib/components/icon/generated/docs/index.d.ts +4 -0
- package/dist/lib/components/icon/generated/index.d.ts +16 -0
- package/dist/lib/components/icon/generated/location/House16.d.ts +3 -0
- package/dist/lib/components/icon/generated/location/House24.d.ts +3 -0
- package/dist/lib/components/icon/generated/location/LocationCalifornia16.d.ts +3 -0
- package/dist/lib/components/icon/generated/location/LocationCalifornia24.d.ts +3 -0
- package/dist/lib/components/icon/generated/location/LocationPin16.d.ts +3 -0
- package/dist/lib/components/icon/generated/location/LocationPin24.d.ts +3 -0
- package/dist/lib/components/icon/generated/location/index.d.ts +6 -0
- package/dist/lib/components/icon/generated/logos/LogoApple16.d.ts +3 -0
- package/dist/lib/components/icon/generated/logos/LogoApple24.d.ts +3 -0
- package/dist/lib/components/icon/generated/logos/LogoFacebook16.d.ts +3 -0
- package/dist/lib/components/icon/generated/logos/LogoFacebook24.d.ts +3 -0
- package/dist/lib/components/icon/generated/logos/LogoGithub16.d.ts +3 -0
- package/dist/lib/components/icon/generated/logos/LogoGithub24.d.ts +3 -0
- package/dist/lib/components/icon/generated/logos/LogoGoogle16.d.ts +3 -0
- package/dist/lib/components/icon/generated/logos/LogoGoogle24.d.ts +3 -0
- package/dist/lib/components/icon/generated/logos/LogoInstagram16.d.ts +3 -0
- package/dist/lib/components/icon/generated/logos/LogoInstagram24.d.ts +3 -0
- package/dist/lib/components/icon/generated/logos/LogoLinkedin16.d.ts +3 -0
- package/dist/lib/components/icon/generated/logos/LogoLinkedin24.d.ts +3 -0
- package/dist/lib/components/icon/generated/logos/LogoPinterest16.d.ts +3 -0
- package/dist/lib/components/icon/generated/logos/LogoPinterest24.d.ts +3 -0
- package/dist/lib/components/icon/generated/logos/LogoTwitter16.d.ts +3 -0
- package/dist/lib/components/icon/generated/logos/LogoTwitter24.d.ts +3 -0
- package/dist/lib/components/icon/generated/logos/LogoYoutube16.d.ts +3 -0
- package/dist/lib/components/icon/generated/logos/LogoYoutube24.d.ts +3 -0
- package/dist/lib/components/icon/generated/logos/index.d.ts +18 -0
- package/dist/lib/components/icon/generated/machine/Laptop16.d.ts +3 -0
- package/dist/lib/components/icon/generated/machine/Laptop24.d.ts +3 -0
- package/dist/lib/components/icon/generated/machine/index.d.ts +2 -0
- package/dist/lib/components/icon/generated/media/Photo16.d.ts +3 -0
- package/dist/lib/components/icon/generated/media/Photo24.d.ts +3 -0
- package/dist/lib/components/icon/generated/media/PhotoFilled16.d.ts +3 -0
- package/dist/lib/components/icon/generated/media/PhotoFilled24.d.ts +3 -0
- package/dist/lib/components/icon/generated/media/index.d.ts +4 -0
- package/dist/lib/components/icon/generated/payment/Cash16.d.ts +3 -0
- package/dist/lib/components/icon/generated/payment/Cash24.d.ts +3 -0
- package/dist/lib/components/icon/generated/payment/CreditCard16.d.ts +3 -0
- package/dist/lib/components/icon/generated/payment/CreditCard24.d.ts +3 -0
- package/dist/lib/components/icon/generated/payment/GiftBox16.d.ts +3 -0
- package/dist/lib/components/icon/generated/payment/GiftBox24.d.ts +3 -0
- package/dist/lib/components/icon/generated/payment/GiftCard16.d.ts +3 -0
- package/dist/lib/components/icon/generated/payment/GiftCard24.d.ts +3 -0
- package/dist/lib/components/icon/generated/payment/ShoppingBag16.d.ts +3 -0
- package/dist/lib/components/icon/generated/payment/ShoppingBag24.d.ts +3 -0
- package/dist/lib/components/icon/generated/payment/index.d.ts +10 -0
- package/dist/lib/components/icon/generated/people/People16.d.ts +3 -0
- package/dist/lib/components/icon/generated/people/People24.d.ts +3 -0
- package/dist/lib/components/icon/generated/people/Person16.d.ts +3 -0
- package/dist/lib/components/icon/generated/people/Person24.d.ts +3 -0
- package/dist/lib/components/icon/generated/people/index.d.ts +4 -0
- package/dist/lib/components/icon/generated/time/Calendar16.d.ts +3 -0
- package/dist/lib/components/icon/generated/time/Calendar24.d.ts +3 -0
- package/dist/lib/components/icon/generated/time/Clock16.d.ts +3 -0
- package/dist/lib/components/icon/generated/time/Clock24.d.ts +3 -0
- package/dist/lib/components/icon/generated/time/ClockFilled16.d.ts +3 -0
- package/dist/lib/components/icon/generated/time/ClockFilled24.d.ts +3 -0
- package/dist/lib/components/icon/generated/time/index.d.ts +6 -0
- package/dist/lib/components/icon/generated/ui-control/CheckMark16.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/CheckMark24.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/CheckMarkCircleFilled16.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/CheckMarkCircleFilled24.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/Grid16.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/Grid24.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/LinesThree16.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/LinesThree24.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/LinesTwo16.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/LinesTwo24.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/Minus16.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/Minus24.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/MinusCircle16.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/MinusCircle24.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/Plus16.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/Plus24.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/PlusCircle16.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/PlusCircle24.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/ThreeDotsCluster16.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/ThreeDotsCluster24.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/ThreeDotsHorizontal16.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/ThreeDotsHorizontal24.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/X16.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/X24.d.ts +3 -0
- package/dist/lib/components/icon/generated/ui-control/index.d.ts +24 -0
- package/dist/lib/components/icon/generated/view/EyeOpen16.d.ts +3 -0
- package/dist/lib/components/icon/generated/view/EyeOpen24.d.ts +3 -0
- package/dist/lib/components/icon/generated/view/MagnifyingGlass16.d.ts +3 -0
- package/dist/lib/components/icon/generated/view/MagnifyingGlass24.d.ts +3 -0
- package/dist/lib/components/icon/generated/view/MagnifyingGlassFilled16.d.ts +3 -0
- package/dist/lib/components/icon/generated/view/MagnifyingGlassFilled24.d.ts +3 -0
- package/dist/lib/components/icon/generated/view/index.d.ts +6 -0
- package/dist/lib/components/icon/generated/work/Assemble16.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/Assemble24.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/BasketFilled16.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/BasketFilled24.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/Box16.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/Box24.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/Corner16.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/Corner24.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/CubeOutline16.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/CubeOutline24.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/Leaf16.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/Leaf24.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/LightBulb16.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/LightBulb24.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/Mask16.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/Mask24.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/PCircle16.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/PCircle24.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/PrintNozzle16.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/PrintNozzle24.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/RfidSignal16.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/RfidSignal24.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/SandPaper16.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/SandPaper24.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/Sun16.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/Sun24.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/TriangleRuler16.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/TriangleRuler24.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/WaterDrop16.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/WaterDrop24.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/Wrench16.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/Wrench24.d.ts +3 -0
- package/dist/lib/components/icon/generated/work/index.d.ts +32 -0
- package/dist/lib/components/icon/icon.d.ts +3 -0
- package/dist/lib/components/icon/icon.hooks.d.ts +1 -0
- package/dist/lib/components/icon/icon.presets.d.ts +2 -0
- package/dist/lib/components/icon/icon.styles.d.ts +1 -0
- package/dist/lib/components/icon/icon.type.d.ts +2 -0
- package/dist/lib/components/icon/icon.types.d.ts +18 -0
- package/dist/lib/components/icon/index.d.ts +2 -0
- package/dist/lib/components/image/image.d.ts +3 -0
- package/dist/lib/components/image/image.helpers.d.ts +5 -0
- package/dist/lib/components/image/image.presets.d.ts +3 -0
- package/dist/lib/components/image/image.styles.d.ts +3 -0
- package/dist/lib/components/image/image.types.d.ts +38 -0
- package/dist/lib/components/image/index.d.ts +1 -0
- package/dist/lib/components/index.d.ts +10 -0
- package/dist/lib/components/radio/index.d.ts +1 -0
- package/dist/lib/components/radio/radio.d.ts +6 -0
- package/dist/lib/components/radio/radio.presets.d.ts +2 -0
- package/dist/lib/components/radio/radio.styles.d.ts +4 -0
- package/dist/lib/components/radio/radio.types.d.ts +12 -0
- package/dist/lib/components/stack/index.d.ts +1 -0
- package/dist/lib/components/stack/stack.d.ts +3 -0
- package/dist/lib/components/stack/stack.presets.d.ts +2 -0
- package/dist/lib/components/stack/stack.types.d.ts +3 -0
- package/dist/lib/components/typography/index.d.ts +1 -0
- package/dist/lib/components/typography/typography.d.ts +11 -0
- package/dist/lib/components/typography/typography.presets.d.ts +2 -0
- package/dist/lib/components/typography/typography.styles.d.ts +2 -0
- package/dist/lib/components/typography/typography.types.d.ts +46 -0
- package/dist/lib/helpers/layout.helpers.d.ts +17 -0
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/styles/base.d.ts +1 -0
- package/dist/lib/styles/index.d.ts +5 -0
- package/dist/lib/styles/media.d.ts +10 -0
- package/dist/lib/styles/theme-provider.d.ts +5 -0
- package/dist/lib/styles/theme.d.ts +179 -0
- package/dist/lib/styles/theme.stories.d.ts +6 -0
- package/dist/lib/types/common.d.ts +1 -0
- package/dist/lib/types/layout.d.ts +8 -0
- package/dist/lib/types/resolution-aware-prop.type.d.ts +7 -0
- package/package.json +5 -3
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AppSize, ResolutionAwareProp, ResolutionAwarePropBase } from '../types/resolution-aware-prop.type';
|
|
2
|
+
import { ExtractStyleFromResolutionAwarePropEntry } from '../types/layout';
|
|
3
|
+
export declare function extractValuesFromResolutionAwareProp<T = unknown>(prop: unknown): ResolutionAwarePropBase<T>;
|
|
4
|
+
export declare const isResolutionAwareProperty: (prop: unknown) => prop is any;
|
|
5
|
+
export declare const getResolutionPrefix: () => AppSize;
|
|
6
|
+
export declare const extractValueFromResolutionAwareProp: (prop: any, size: AppSize) => any;
|
|
7
|
+
export declare const calculateDimensionsFromAspectRatio: (aspectRatio: string) => {
|
|
8
|
+
height: string;
|
|
9
|
+
width: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function generateStylesForResolutionAwareProps<T>(entries: ExtractStyleFromResolutionAwarePropEntry[]): import("styled-components").FlattenSimpleInterpolation;
|
|
12
|
+
export declare const isLargeScreen: () => boolean;
|
|
13
|
+
export declare const isSmallScreen: () => boolean;
|
|
14
|
+
export declare const extractValueFromResolutionAwarePropertyForCurrentScreenSize: (property: ResolutionAwareProp<any>) => any;
|
|
15
|
+
export declare const getAspectRatioByCategory: (category: string) => string;
|
|
16
|
+
export declare const isCssPropertyValueDefined: (property?: unknown) => unknown;
|
|
17
|
+
export declare const getAspectRatio: (width: number, height: number) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GlobalStyle: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PaletteColor } from './theme';
|
|
2
|
+
export { combinationsByColor, getThemeColor, getThemeSpacing, palette, lightTheme, darkTheme, } from './theme';
|
|
3
|
+
export { ThemeProvider } from './theme-provider';
|
|
4
|
+
export { media } from './media';
|
|
5
|
+
export type { PaletteColor };
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { DefaultTheme } from 'styled-components';
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
|
+
import { ResolutionAwareProp } from '../types/resolution-aware-prop.type';
|
|
4
|
+
export declare type PaletteColor = 'blue_100' | 'blue_200' | 'blue_300' | 'blue_400' | 'blue_500' | 'gold_100' | 'gold_200' | 'gold_300' | 'gold_400' | 'gold_500' | 'green_100' | 'green_200' | 'green_300' | 'green_400' | 'green_500' | 'monochrome_050' | 'monochrome_100' | 'monochrome_200' | 'monochrome_300' | 'monochrome_400' | 'monochrome_500' | 'monochrome_600' | 'monochrome_700' | 'monochrome_800' | 'monochrome_900' | 'monochrome_black' | 'monochrome_white' | 'pink_300' | 'pink_400' | 'pink_500' | 'red_100' | 'red_200' | 'red_300' | 'red_400' | 'red_500' | 'translucent_black' | 'translucent_cream' | 'translucent_white' | 'yellow_100' | 'yellow_200' | 'yellow_300' | 'yellow_400' | 'yellow_500' | string;
|
|
5
|
+
export declare const palette: Record<PaletteColor, string>;
|
|
6
|
+
declare module 'styled-components' {
|
|
7
|
+
interface FontInfo {
|
|
8
|
+
family: string;
|
|
9
|
+
familyMedium?: string;
|
|
10
|
+
familySmaller?: string;
|
|
11
|
+
fontWeight?: Property.FontWeight;
|
|
12
|
+
lineHeight: string;
|
|
13
|
+
lineHeightMedium?: string;
|
|
14
|
+
lineHeightSmaller: string;
|
|
15
|
+
size: string;
|
|
16
|
+
sizeMedium?: string;
|
|
17
|
+
sizeSmaller: string;
|
|
18
|
+
}
|
|
19
|
+
interface DefaultTheme {
|
|
20
|
+
border: string;
|
|
21
|
+
borderRadius: string;
|
|
22
|
+
colors: {
|
|
23
|
+
dividers: {
|
|
24
|
+
t1: PaletteColor;
|
|
25
|
+
t2: PaletteColor;
|
|
26
|
+
t3: PaletteColor;
|
|
27
|
+
};
|
|
28
|
+
iconography: {
|
|
29
|
+
alert: PaletteColor;
|
|
30
|
+
link: PaletteColor;
|
|
31
|
+
t1: PaletteColor;
|
|
32
|
+
t2: PaletteColor;
|
|
33
|
+
t3: PaletteColor;
|
|
34
|
+
warning: PaletteColor;
|
|
35
|
+
};
|
|
36
|
+
palette: Record<PaletteColor, string>;
|
|
37
|
+
surface: {
|
|
38
|
+
alert: PaletteColor;
|
|
39
|
+
hover: PaletteColor;
|
|
40
|
+
level1: PaletteColor;
|
|
41
|
+
level2: PaletteColor;
|
|
42
|
+
level3: PaletteColor;
|
|
43
|
+
selected: PaletteColor;
|
|
44
|
+
success: PaletteColor;
|
|
45
|
+
successAlt: PaletteColor;
|
|
46
|
+
warning: PaletteColor;
|
|
47
|
+
};
|
|
48
|
+
typography: {
|
|
49
|
+
alert: PaletteColor;
|
|
50
|
+
alt: PaletteColor;
|
|
51
|
+
link: PaletteColor;
|
|
52
|
+
success: PaletteColor;
|
|
53
|
+
t1: PaletteColor;
|
|
54
|
+
t2: PaletteColor;
|
|
55
|
+
t3: PaletteColor;
|
|
56
|
+
warning: PaletteColor;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
dimensions: {
|
|
60
|
+
gridGutter: ResolutionAwareProp<string>;
|
|
61
|
+
headerHeight: ResolutionAwareProp<string>;
|
|
62
|
+
maxWidth: string;
|
|
63
|
+
spacing: {
|
|
64
|
+
s1: string;
|
|
65
|
+
s2: string;
|
|
66
|
+
s3: string;
|
|
67
|
+
s4: string;
|
|
68
|
+
s5: string;
|
|
69
|
+
s6: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
fonts: {
|
|
73
|
+
boldFontFamily: string;
|
|
74
|
+
h1: FontInfo;
|
|
75
|
+
h2: FontInfo;
|
|
76
|
+
h3: FontInfo;
|
|
77
|
+
h4: FontInfo;
|
|
78
|
+
h5: FontInfo;
|
|
79
|
+
hero: FontInfo;
|
|
80
|
+
p0: FontInfo;
|
|
81
|
+
p1: FontInfo;
|
|
82
|
+
p2: FontInfo;
|
|
83
|
+
p3: FontInfo;
|
|
84
|
+
regularFontFamily: string;
|
|
85
|
+
};
|
|
86
|
+
name: string;
|
|
87
|
+
shadow: string;
|
|
88
|
+
transitions: {
|
|
89
|
+
base: string;
|
|
90
|
+
slow: string;
|
|
91
|
+
slowest: string;
|
|
92
|
+
turtle: string;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export declare const lightTheme: DefaultTheme;
|
|
97
|
+
export declare const darkTheme: DefaultTheme;
|
|
98
|
+
export declare const getThemeColor: (color: PaletteColor, currentTheme?: DefaultTheme) => string;
|
|
99
|
+
export declare const getThemeSpacing: (property: string, currentTheme?: DefaultTheme) => any;
|
|
100
|
+
export declare const combinationsByColor: (appTheme?: DefaultTheme) => {
|
|
101
|
+
alert: {
|
|
102
|
+
background: string;
|
|
103
|
+
color: string;
|
|
104
|
+
hover: string;
|
|
105
|
+
selected: string;
|
|
106
|
+
};
|
|
107
|
+
black: {
|
|
108
|
+
background: string;
|
|
109
|
+
color: string;
|
|
110
|
+
hover: string;
|
|
111
|
+
selected: string;
|
|
112
|
+
};
|
|
113
|
+
blue: {
|
|
114
|
+
background: string;
|
|
115
|
+
color: string;
|
|
116
|
+
hover: string;
|
|
117
|
+
selected: string;
|
|
118
|
+
};
|
|
119
|
+
gold: {
|
|
120
|
+
background: string;
|
|
121
|
+
color: string;
|
|
122
|
+
hover: string;
|
|
123
|
+
selected: string;
|
|
124
|
+
};
|
|
125
|
+
green: {
|
|
126
|
+
background: string;
|
|
127
|
+
color: string;
|
|
128
|
+
hover: string;
|
|
129
|
+
selected: string;
|
|
130
|
+
};
|
|
131
|
+
grey: {
|
|
132
|
+
background: string;
|
|
133
|
+
color: string;
|
|
134
|
+
hover: string;
|
|
135
|
+
selected: string;
|
|
136
|
+
};
|
|
137
|
+
greyLight: {
|
|
138
|
+
background: string;
|
|
139
|
+
color: string;
|
|
140
|
+
hover: string;
|
|
141
|
+
selected: string;
|
|
142
|
+
};
|
|
143
|
+
pink: {
|
|
144
|
+
background: string;
|
|
145
|
+
color: string;
|
|
146
|
+
hover: string;
|
|
147
|
+
selected: string;
|
|
148
|
+
};
|
|
149
|
+
primary: {
|
|
150
|
+
background: string;
|
|
151
|
+
color: string;
|
|
152
|
+
hover: string;
|
|
153
|
+
selected: string;
|
|
154
|
+
};
|
|
155
|
+
secondary: {
|
|
156
|
+
background: string;
|
|
157
|
+
color: string;
|
|
158
|
+
hover: string;
|
|
159
|
+
selected: string;
|
|
160
|
+
};
|
|
161
|
+
secondaryAlt: {
|
|
162
|
+
background: string;
|
|
163
|
+
color: string;
|
|
164
|
+
hover: string;
|
|
165
|
+
selected: string;
|
|
166
|
+
};
|
|
167
|
+
white: {
|
|
168
|
+
background: string;
|
|
169
|
+
color: string;
|
|
170
|
+
hover: string;
|
|
171
|
+
selected: string;
|
|
172
|
+
};
|
|
173
|
+
yellow: {
|
|
174
|
+
background: string;
|
|
175
|
+
color: string;
|
|
176
|
+
hover: string;
|
|
177
|
+
selected: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
@@ -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;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AppSize, ResolutionAwareProp } from './resolution-aware-prop.type';
|
|
2
|
+
export interface ExtractStyleFromResolutionAwarePropEntry {
|
|
3
|
+
cssProperty: string;
|
|
4
|
+
isImportant?: boolean;
|
|
5
|
+
lookIn?: any;
|
|
6
|
+
resolutionAwareProp: ResolutionAwareProp<any> | ResolutionAwareProp<any>[];
|
|
7
|
+
valueFormatter?: (value: any | any[], size: AppSize) => string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare type AppSize = 'lg' | 'md' | 'sm';
|
|
2
|
+
export interface ResolutionAwarePropBase<T> {
|
|
3
|
+
lg?: T;
|
|
4
|
+
md?: T;
|
|
5
|
+
sm?: T;
|
|
6
|
+
}
|
|
7
|
+
export declare type ResolutionAwareProp<T> = T extends boolean ? boolean | ResolutionAwarePropBase<T> | any : T | ResolutionAwarePropBase<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gantri-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"umd": "dist/index.umd.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean-build": "npm-run-all clean build",
|
|
14
|
-
"build": "
|
|
14
|
+
"build": "rollup -c",
|
|
15
15
|
"build-watch": "rollup -c -w",
|
|
16
16
|
"clean": "rimraf dist",
|
|
17
17
|
"typecheck": "tsc -p --noEmit",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@commitlint/config-conventional": "^16.2.1",
|
|
40
40
|
"@react-theming/storybook-addon": "^1.1.5",
|
|
41
41
|
"@rollup/plugin-babel": "^5.3.1",
|
|
42
|
-
"@rollup/plugin-commonjs": "^
|
|
42
|
+
"@rollup/plugin-commonjs": "^22.0.0",
|
|
43
43
|
"@rollup/plugin-json": "^4.1.0",
|
|
44
44
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
45
45
|
"@rollup/plugin-replace": "^4.0.0",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"@storybook/testing-library": "^0.0.10",
|
|
60
60
|
"@storybook/theming": "^6.4.22",
|
|
61
61
|
"@svgr/cli": "^6.2.1",
|
|
62
|
+
"@types/lodash.capitalize": "^4.2.7",
|
|
62
63
|
"@types/lodash.isobject": "^3.0.6",
|
|
63
64
|
"@types/react": "17.0.39",
|
|
64
65
|
"@types/react-input-mask": "^3.0.1",
|
|
@@ -105,6 +106,7 @@
|
|
|
105
106
|
"dependencies": {
|
|
106
107
|
"@cloudinary/url-gen": "^1.7.0",
|
|
107
108
|
"formik": "^2.2.9",
|
|
109
|
+
"lodash.capitalize": "^4.2.1",
|
|
108
110
|
"lodash.isobject": "^3.0.2",
|
|
109
111
|
"react-i18next": "^11.16.1",
|
|
110
112
|
"react-input-mask": "^2.0.4",
|