gantri-components 1.1.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 +6495 -1278
- 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 +3 -2
- package/lib/components/icon/icon.hooks.d.ts +1 -0
- package/lib/components/icon/icon.presets.d.ts +2 -0
- package/lib/components/icon/icon.styles.d.ts +1 -0
- package/lib/components/icon/icon.type.d.ts +2 -0
- package/lib/components/icon/icon.types.d.ts +18 -0
- package/lib/components/icon/index.d.ts +1 -0
- 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 +17 -0
- package/lib/index.d.ts +2 -4
- package/lib/styles/base.d.ts +1 -0
- package/lib/{theme → styles}/index.d.ts +1 -0
- package/lib/styles/media.d.ts +10 -0
- package/lib/{theme → styles}/theme-provider.d.ts +0 -0
- package/lib/{theme → 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/layout.d.ts +8 -0
- package/lib/types/resolution-aware-prop.type.d.ts +1 -1
- package/package.json +31 -14
- package/lib/components/Button/Button.d.ts +0 -29
- package/lib/components/Button/index.d.ts +0 -1
|
@@ -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
|
+
}
|
|
@@ -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;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { ThemeProvider, darkTheme, lightTheme, combinationsByColor, getThemeColor, palette, } from './theme';
|
|
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>;
|
|
File without changes
|
|
@@ -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;
|
|
@@ -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
|
+
}
|
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",
|
|
@@ -12,11 +12,15 @@
|
|
|
12
12
|
"build": "rollup -c",
|
|
13
13
|
"storybook": "start-storybook -p 6006",
|
|
14
14
|
"build-storybook": "build-storybook",
|
|
15
|
-
"prepare": "husky install"
|
|
15
|
+
"prepare": "husky install",
|
|
16
|
+
"generate-icons": "node scripts/generate-icons.js",
|
|
17
|
+
"prebuild": "yarn generate-icons"
|
|
16
18
|
},
|
|
17
19
|
"peerDependencies": {
|
|
20
|
+
"formik": "^2.2.9",
|
|
18
21
|
"react": "^17.0.2",
|
|
19
|
-
"react-dom": "^17.0.2"
|
|
22
|
+
"react-dom": "^17.0.2",
|
|
23
|
+
"styled-components": "^5.3.3"
|
|
20
24
|
},
|
|
21
25
|
"devDependencies": {
|
|
22
26
|
"@babel/core": "^7.17.5",
|
|
@@ -32,18 +36,23 @@
|
|
|
32
36
|
"@semantic-release/github": "^8.0.2",
|
|
33
37
|
"@semantic-release/npm": "^9.0.1",
|
|
34
38
|
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
35
|
-
"@storybook/addon-actions": "^6.4.
|
|
36
|
-
"@storybook/addon-essentials": "^6.4.
|
|
37
|
-
"@storybook/addon-interactions": "^6.4.
|
|
38
|
-
"@storybook/addon-links": "^6.4.
|
|
39
|
-
"@storybook/addons": "^6.4.
|
|
40
|
-
"@storybook/react": "^6.4.
|
|
41
|
-
"@storybook/testing-library": "^0.0.
|
|
42
|
-
"@storybook/theming": "^6.4.
|
|
43
|
-
"@
|
|
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
|
+
"@svgr/cli": "^6.2.1",
|
|
48
|
+
"@types/lodash.isobject": "^3.0.6",
|
|
49
|
+
"@types/react": "17.0.39",
|
|
50
|
+
"@types/react-input-mask": "^3.0.1",
|
|
51
|
+
"@types/styled-components": "^5.1.25",
|
|
44
52
|
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
|
45
53
|
"@typescript-eslint/parser": "^5.14.0",
|
|
46
54
|
"babel-loader": "^8.2.3",
|
|
55
|
+
"del-cli": "^4.0.1",
|
|
47
56
|
"eslint": "^8.10.0",
|
|
48
57
|
"eslint-config-airbnb": "^19.0.4",
|
|
49
58
|
"eslint-config-airbnb-typescript": "^16.1.0",
|
|
@@ -57,6 +66,7 @@
|
|
|
57
66
|
"eslint-plugin-react": "^7.29.3",
|
|
58
67
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
59
68
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
69
|
+
"eslint-plugin-storybook": "^0.5.10",
|
|
60
70
|
"eslint-plugin-typescript-sort-keys": "^2.1.0",
|
|
61
71
|
"husky": "^7.0.4",
|
|
62
72
|
"lint-staged": "^12.3.5",
|
|
@@ -64,6 +74,7 @@
|
|
|
64
74
|
"prettier": "^2.5.1",
|
|
65
75
|
"react": "^17.0.2",
|
|
66
76
|
"react-dom": "^17.0.2",
|
|
77
|
+
"react-use": "^17.3.2",
|
|
67
78
|
"rollup": "^2.70.0",
|
|
68
79
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
69
80
|
"rollup-plugin-postcss": "^4.0.2",
|
|
@@ -71,8 +82,14 @@
|
|
|
71
82
|
"typescript": "^4.6.2"
|
|
72
83
|
},
|
|
73
84
|
"dependencies": {
|
|
74
|
-
"@
|
|
75
|
-
"
|
|
85
|
+
"@cloudinary/url-gen": "^1.7.0",
|
|
86
|
+
"formik": "^2.2.9",
|
|
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",
|
|
91
|
+
"styled-components": "^5.3.3",
|
|
92
|
+
"styled-media-query": "^2.1.2"
|
|
76
93
|
},
|
|
77
94
|
"files": [
|
|
78
95
|
"lib"
|
|
@@ -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';
|