@alto-avios/alto-ui 2.1.0 → 2.3.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.
Files changed (46) hide show
  1. package/dist/assets/CardSection.css +1 -0
  2. package/dist/assets/Grid.css +1 -0
  3. package/dist/assets/Radio.css +1 -1
  4. package/dist/assets/backgroundColour.css +1 -0
  5. package/dist/assets/border.css +1 -0
  6. package/dist/assets/flex.css +1 -0
  7. package/dist/assets/padding.css +1 -0
  8. package/dist/components/Box/Box.d.ts +29 -0
  9. package/dist/components/Box/Box.js +35 -0
  10. package/dist/components/Box/Box.js.map +1 -0
  11. package/dist/components/Box/index.d.ts +1 -0
  12. package/dist/components/Box/index.js +5 -0
  13. package/dist/components/Box/index.js.map +1 -0
  14. package/dist/components/CardSection/CardSection.d.ts +23 -0
  15. package/dist/components/CardSection/CardSection.js +46 -0
  16. package/dist/components/CardSection/CardSection.js.map +1 -0
  17. package/dist/components/CardSection/index.d.ts +1 -0
  18. package/dist/components/CardSection/index.js +5 -0
  19. package/dist/components/CardSection/index.js.map +1 -0
  20. package/dist/components/Grid/Grid.d.ts +113 -0
  21. package/dist/components/Grid/Grid.js +87 -0
  22. package/dist/components/Grid/Grid.js.map +1 -0
  23. package/dist/components/Grid/index.d.ts +1 -0
  24. package/dist/components/Grid/index.js +5 -0
  25. package/dist/components/Grid/index.js.map +1 -0
  26. package/dist/components/Radio/Radio.js +3 -3
  27. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  28. package/dist/components/index.d.ts +2 -0
  29. package/dist/components/index.js +14 -10
  30. package/dist/components/index.js.map +1 -1
  31. package/dist/index.js +14 -10
  32. package/dist/index.js.map +1 -1
  33. package/dist/utils/backgroundColour/backgroundColour.d.ts +8 -0
  34. package/dist/utils/backgroundColour/backgroundColour.js +102 -0
  35. package/dist/utils/backgroundColour/backgroundColour.js.map +1 -0
  36. package/dist/utils/border/border.d.ts +10 -0
  37. package/dist/utils/border/border.js +147 -0
  38. package/dist/utils/border/border.js.map +1 -0
  39. package/dist/utils/fgColour/fgColor.d.ts +2 -0
  40. package/dist/utils/flex/flex.d.ts +12 -0
  41. package/dist/utils/flex/flex.js +126 -0
  42. package/dist/utils/flex/flex.js.map +1 -0
  43. package/dist/utils/padding/padding.d.ts +13 -0
  44. package/dist/utils/padding/padding.js +96 -0
  45. package/dist/utils/padding/padding.js.map +1 -0
  46. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ ._cardSection_1llfd_1{align-items:center;background:var(--alto-sem-color-bg-layer1-default);box-sizing:border-box;display:flex;flex-direction:column;padding:var(--alto-section-padding-vertical-default) var(--alto-section-margin-horizontal-default);width:100vw}._cardContainer_1llfd_11{align-self:stretch;background:var(--alto-sem-color-bg-layer2-default);border-radius:var(--alto-card-radius);display:flex;flex-direction:column;justify-content:flex-end;margin:auto;max-width:var(--alto-section-container-max-width);width:100%}._cardGrid_1llfd_23{-moz-column-gap:var(--alto-grid-gutter-default);column-gap:var(--alto-grid-gutter-default);display:grid;grid-template-areas:"content" "media";grid-template-columns:repeat(12,[col-start] 1fr)}._contentCell_1llfd_33{display:grid;grid-area:content;grid-column:col-start/span 12;padding:var(--alto-sem-space-2xl) 0}._contentBox_1llfd_40{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:var(--alto-sem-space-lg);margin:auto;max-width:628px;padding:0 var(--alto-section-margin-horizontal-default)}._mediaCell_1llfd_51{display:grid;grid-area:media;grid-column:col-start/span 12;margin:0}._mediaCell_1llfd_51 img{border-radius:var(--alto-card-radius);height:100%;-o-object-fit:cover;object-fit:cover;width:100%}._isReversed_1llfd_65 ._cardGrid_1llfd_23{grid-template-areas:"media" "content"}@media screen and (min-width:768px){._contentCell_1llfd_33{grid-column:2/11;padding:var(--alto-sem-space-3xl) 0}._contentBox_1llfd_40{padding:0}}@media screen and (min-width:1024px){._cardContainer_1llfd_11{align-items:flex-end;flex-direction:row;gap:var(--alto-grid-gutter-default);max-width:var(--alto-section-container-max-width)}._cardGrid_1llfd_23{grid-template-areas:"content media"}._contentCell_1llfd_33{grid-column:2/span 5;padding:var(--alto-sem-space-2xl) 0}._mediaCell_1llfd_51{grid-column:8/span 5}._isReversed_1llfd_65 ._cardGrid_1llfd_23{grid-template-areas:"media content"}._isReversed_1llfd_65 ._contentCell_1llfd_33{grid-column:7/span 5}._isReversed_1llfd_65 ._mediaCell_1llfd_51{grid-column:1/span 5}}
@@ -0,0 +1 @@
1
+ ._grid_f3f0m_1{box-sizing:border-box;width:100%}._gridItem_f3f0m_6{min-height:0;min-width:0}
@@ -1 +1 @@
1
- ._radio_1csym_1{align-items:center;color:var(--alto-sem-color-fg-primary);cursor:pointer;display:flex;font-family:var(--alto-sem-text-body-font-family);font-size:var(--alto-sem-text-body-md-font-size);font-style:normal;font-weight:var(--alto-sem-text-body-regular-font-weight);forced-color-adjust:none;gap:var(--alto-sem-space-sm);justify-content:flex-start;letter-spacing:var(--alto-sem-text-body-md-letter-spacing);line-height:var(--alto-sem-text-body-md-line-height);min-height:48px}._radio_1csym_1:before{background-color:var(--alto-sem-color-bg-layer2-default);border:1px solid var(--alto-sem-color-border-primary-default);border-radius:var(--alto-sem-radius-circle);box-sizing:border-box;content:"";display:block;height:1.5rem;transition:all .2s;width:1.5rem}._radio_1csym_1[data-hovered]:before{border-color:var(--alto-sem-color-border-primary-hover)}._radio_1csym_1[data-focus-visible]:before{outline-offset:var(--alto-sem-border-width-md);outline-style:solid;outline-width:var(--alto-sem-border-width-md);transition:none}._defaultFocus_1csym_41[data-focus-visible]:before{outline-color:var(--alto-sem-color-border-accent)}._whiteFocus_1csym_45[data-focus-visible]:before{outline-color:var(--alto-sem-color-border-white)}._radio_1csym_1[data-pressed]:before{border-color:var(--alto-sem-color-border-primary-active)}._radio_1csym_1[data-selected]:before{background-color:var(--alto-sem-color-fg-critical-on-vibrant);border-color:var(--alto-sem-color-bg-accent-vibrant-default);border-width:.5rem}._radio_1csym_1[data-selected][data-hovered]:before{border-color:var(--alto-sem-color-bg-accent-vibrant-hover)}._radio_1csym_1[data-selected][data-focused]:before{border-color:var(--alto-sem-color-bg-accent-vibrant-active)}._radio_1csym_1[data-selected][data-focus-visible]:before{border-color:var(--alto-sem-color-bg-accent-vibrant-hover)}._radio_1csym_1[data-selected][data-pressed]:before{border-color:var(--alto-sem-color-bg-accent-vibrant-active)}._radio_1csym_1[data-invalid]:before{background:var(--alto-sem-color-bg-critical-subtle-default);border:var(--alto-sem-border-width-md) solid var(--alto-sem-color-border-critical);border-radius:var(--alto-sem-radius-circle)}._radio_1csym_1[data-invalid][data-hovered]:before{background-color:var(--alto-sem-color-bg-tertiary-hover);border-color:var(--alto-sem-color-border-critical)}._radio_1csym_1[data-invalid][data-focused]:before{border-color:var(--alto-sem-color-border-critical)}._radio_1csym_1[data-invalid][data-focus-visible]:before,._radio_1csym_1[data-invalid][data-pressed]:before{background-color:var(--alto-sem-color-bg-tertiary-active);border-color:var(--alto-sem-color-border-critical)}._radio_1csym_1[data-invalid][data-selected]:before{background-color:var(--alto-sem-color-fg-critical-on-vibrant);border-color:var(--alto-sem-color-bg-critical-vibrant-default);border-width:.5rem}._radio_1csym_1[data-disabled]{color:var(--alto-sem-color-fg-disabled-primary);cursor:default;font-family:var(--alto-sem-text-body-font-family);font-size:var(--alto-sem-text-body-md-font-size);font-style:normal;font-weight:var(--alto-sem-text-body-regular-font-weight);letter-spacing:var(--alto-sem-text-body-md-letter-spacing);line-height:var(--alto-sem-text-body-md-line-height)}._radio_1csym_1[data-disabled]:before{background:var(--alto-sem-color-bg-disabled-subtle);border:1px solid var(--alto-sem-color-border-disabled-subtle);border-radius:var(--alto-sem-radius-circle)}._radio_1csym_1[data-disabled][data-selected]:before{border-width:.5rem}
1
+ ._radio_1qy5u_1{align-items:center;color:var(--alto-sem-color-fg-primary);cursor:pointer;display:flex;font-family:var(--alto-sem-text-body-font-family);font-size:var(--alto-sem-text-body-md-font-size);font-style:normal;font-weight:var(--alto-sem-text-body-regular-font-weight);forced-color-adjust:none;gap:var(--alto-sem-space-sm);justify-content:flex-start;letter-spacing:var(--alto-sem-text-body-md-letter-spacing);line-height:var(--alto-sem-text-body-md-line-height);min-height:48px}._radio_1qy5u_1:before{background-color:var(--alto-sem-color-bg-layer2-default);border:1px solid var(--alto-sem-color-border-primary-default);border-radius:var(--alto-sem-radius-circle);box-sizing:border-box;content:"";display:block;height:1.5rem;transition:all .2s;width:1.5rem}._radio_1qy5u_1[data-hovered]:before{border-color:var(--alto-sem-color-border-primary-hover)}._radio_1qy5u_1[data-focus-visible]:before{outline-offset:var(--alto-sem-border-width-md);outline-style:solid;outline-width:var(--alto-sem-border-width-md);transition:none}._defaultFocus_1qy5u_41[data-focus-visible]:before{outline-color:var(--alto-sem-color-border-accent)}._whiteFocus_1qy5u_45[data-focus-visible]:before{outline-color:var(--alto-sem-color-border-white)}._radio_1qy5u_1[data-pressed]:before{border-color:var(--alto-sem-color-border-primary-active)}._radio_1qy5u_1[data-selected]:before{background-color:var(--alto-sem-color-fg-critical-on-vibrant);border-color:var(--alto-sem-color-bg-accent-vibrant-default);border-width:.5rem;box-shadow:0 0 0 1px var(--alto-sem-color-border-white)}._radio_1qy5u_1[data-selected][data-hovered]:before{border-color:var(--alto-sem-color-bg-accent-vibrant-hover)}._radio_1qy5u_1[data-selected][data-focused]:before{border-color:var(--alto-sem-color-bg-accent-vibrant-active)}._radio_1qy5u_1[data-selected][data-focus-visible]:before{border-color:var(--alto-sem-color-bg-accent-vibrant-hover)}._radio_1qy5u_1[data-selected][data-pressed]:before{border-color:var(--alto-sem-color-bg-accent-vibrant-active)}._radio_1qy5u_1[data-invalid]:before{background:var(--alto-sem-color-bg-critical-subtle-default);border:var(--alto-sem-border-width-md) solid var(--alto-sem-color-border-critical);border-radius:var(--alto-sem-radius-circle)}._radio_1qy5u_1[data-invalid][data-hovered]:before{background-color:var(--alto-sem-color-bg-tertiary-hover);border-color:var(--alto-sem-color-border-critical)}._radio_1qy5u_1[data-invalid][data-focused]:before{border-color:var(--alto-sem-color-border-critical)}._radio_1qy5u_1[data-invalid][data-focus-visible]:before,._radio_1qy5u_1[data-invalid][data-pressed]:before{background-color:var(--alto-sem-color-bg-tertiary-active);border-color:var(--alto-sem-color-border-critical)}._radio_1qy5u_1[data-invalid][data-selected]:before{background-color:var(--alto-sem-color-fg-critical-on-vibrant);border-color:var(--alto-sem-color-bg-critical-vibrant-default);border-width:.5rem}._radio_1qy5u_1[data-disabled]{color:var(--alto-sem-color-fg-disabled-primary);cursor:default;font-family:var(--alto-sem-text-body-font-family);font-size:var(--alto-sem-text-body-md-font-size);font-style:normal;font-weight:var(--alto-sem-text-body-regular-font-weight);letter-spacing:var(--alto-sem-text-body-md-letter-spacing);line-height:var(--alto-sem-text-body-md-line-height)}._radio_1qy5u_1[data-disabled]:before{background:var(--alto-sem-color-bg-disabled-subtle);border:1px solid var(--alto-sem-color-border-disabled-subtle);border-radius:var(--alto-sem-radius-circle)}._radio_1qy5u_1[data-disabled][data-selected]:before{border-width:.5rem}
@@ -0,0 +1 @@
1
+ ._backgroundColour-transparent_jawk2_1{background-color:transparent}._backgroundColour-base_jawk2_5{background-color:var(--alto-sem-color-bg-base)}._backgroundColour-layer1_jawk2_9{background-color:var(--alto-sem-color-bg-layer1-default)}._backgroundColour-layer2_jawk2_13{background-color:var(--alto-sem-color-bg-layer2-default)}._backgroundColour-layer3_jawk2_17{background-color:var(--alto-sem-color-bg-layer3-default)}._backgroundColour-accent-vibrant_jawk2_21{background-color:var(--alto-sem-color-bg-accent-vibrant-default)}._backgroundColour-accent-subtle_jawk2_25{background-color:var(--alto-sem-color-bg-accent-subtle-default)}._backgroundColour-accent-deep_jawk2_29{background-color:var(--alto-sem-color-bg-accent-deep-default)}._backgroundColour-critical-vibrant_jawk2_33{background-color:var(--alto-sem-color-bg-critical-vibrant-default)}._backgroundColour-critical-subtle_jawk2_37{background-color:var(--alto-sem-color-bg-critical-subtle-default)}._backgroundColour-warning-vibrant_jawk2_41{background-color:var(--alto-sem-color-bg-warning-vibrant-default)}._backgroundColour-warning-subtle_jawk2_45{background-color:var(--alto-sem-color-bg-warning-subtle-default)}._backgroundColour-caution-vibrant_jawk2_49{background-color:var(--alto-sem-color-bg-caution-vibrant-default)}._backgroundColour-caution-subtle_jawk2_53{background-color:var(--alto-sem-color-bg-caution-subtle-default)}._backgroundColour-success-vibrant_jawk2_57{background-color:var(--alto-sem-color-bg-success-vibrant-default)}._backgroundColour-success-subtle_jawk2_61{background-color:var(--alto-sem-color-bg-success-subtle-default)}._backgroundColour-information-vibrant_jawk2_65{background-color:var(--alto-sem-color-bg-information-vibrant-default)}._backgroundColour-information-subtle_jawk2_69{background-color:var(--alto-sem-color-bg-information-subtle-default)}._backgroundColour-inverse-vibrant_jawk2_73{background-color:var(--alto-sem-color-bg-inverse-vibrant-default)}._backgroundColour-inverse-subtle_jawk2_77{background-color:var(--alto-sem-color-bg-inverse-subtle-default)}._backgroundColour-white-vibrant_jawk2_81{background-color:var(--alto-sem-color-bg-white-vibrant-default)}._backgroundColour-white-subtle_jawk2_85{background-color:var(--alto-sem-color-bg-white-subtle-default)}._backgroundColour-disabled-vibrant_jawk2_89{background-color:var(--alto-sem-color-bg-disabled-vibrant)}._backgroundColour-disabled-subtle_jawk2_93{background-color:var(--alto-sem-color-bg-disabled-subtle)}._backgroundColour-sale-vibrant_jawk2_97{background-color:var(--alto-sem-color-bg-sale-vibrant-default)}
@@ -0,0 +1 @@
1
+ ._borderRadiusNone_1ka0b_1{border-radius:var(--alto-sem-radius-none)}._borderRadius6xs_1ka0b_5{border-radius:var(--alto-sem-radius-6xs)}._borderRadius5xs_1ka0b_9{border-radius:var(--alto-sem-radius-5xs)}._borderRadius4xs_1ka0b_13{border-radius:var(--alto-sem-radius-4xs)}._borderRadius3xs_1ka0b_17{border-radius:var(--alto-sem-radius-3xs)}._borderRadius2xs_1ka0b_21{border-radius:var(--alto-sem-radius-2xs)}._borderRadiusXs_1ka0b_25{border-radius:var(--alto-sem-radius-xs)}._borderRadiusSm_1ka0b_29{border-radius:var(--alto-sem-radius-sm)}._borderRadiusMd_1ka0b_33{border-radius:var(--alto-sem-radius-md)}._borderRadiusLg_1ka0b_37{border-radius:var(--alto-sem-radius-lg)}._borderRadiusXl_1ka0b_41{border-radius:var(--alto-sem-radius-xl)}._borderRadiusCircle_1ka0b_45{border-radius:var(--alto-sem-radius-circle)}._borderWidthNone_1ka0b_49{border-width:var(--alto-sem-border-width-none)}._borderWidthXs_1ka0b_53{border-width:var(--alto-sem-border-width-xs)}._borderWidthSm_1ka0b_57{border-width:var(--alto-sem-border-width-sm)}._borderWidthMd_1ka0b_61{border-width:var(--alto-sem-border-width-md)}._borderWidthLg_1ka0b_65{border-width:var(--alto-sem-border-width-lg)}._borderWidthXl_1ka0b_69{border-width:var(--alto-sem-border-width-xl)}._borderStyleNone_1ka0b_73{border-style:none}._borderStyleSolid_1ka0b_77{border-style:solid}._borderStyleDashed_1ka0b_81{border-style:dashed}._borderColourNone_1ka0b_85{border-color:transparent}._borderColourSecondary_1ka0b_89{border-color:var(--alto-sem-color-border-secondary)}._borderColourTertiary_1ka0b_93{border-color:var(--alto-sem-color-border-tertiary)}._borderColourAccent_1ka0b_97{border-color:var(--alto-sem-color-border-accent)}._borderColourCaution_1ka0b_101{border-color:var(--alto-sem-color-border-caution)}._borderColourCritical_1ka0b_105{border-color:var(--alto-sem-color-border-critical)}._borderColourInformation_1ka0b_109{border-color:var(--alto-sem-color-border-information)}._borderColourInverse_1ka0b_113{border-color:var(--alto-sem-color-border-inverse)}._borderColourSuccess_1ka0b_117{border-color:var(--alto-sem-color-border-success)}._borderColourWarning_1ka0b_121{border-color:var(--alto-sem-color-border-warning)}._borderColourWhite_1ka0b_125{border-color:var(--alto-sem-color-border-white)}
@@ -0,0 +1 @@
1
+ ._flex_1ug5y_1{display:flex}._flexInline_1ug5y_5{display:inline-flex}._flexJustifyContentStart_1ug5y_9{justify-content:flex-start}._flexJustifyContentCenter_1ug5y_13{justify-content:center}._flexJustifyContentEnd_1ug5y_17{justify-content:flex-end}._flexWrapWrap_1ug5y_21{flex-wrap:wrap}._flexWrapNowrap_1ug5y_25{flex-wrap:nowrap}._flexGrow1_1ug5y_29{flex-grow:1}._flexGrow0_1ug5y_33{flex-grow:0}._flexShrink1_1ug5y_37{flex-shrink:1}._flexShrink0_1ug5y_41{flex-shrink:0}._flexDirectionRow_1ug5y_45{flex-direction:row}._flexDirectionRowReverse_1ug5y_49{flex-direction:row-reverse}._flexDirectionColumn_1ug5y_53{flex-direction:column}._flexDirectionColumnReverse_1ug5y_57{flex-direction:column-reverse}._flexAlignItemsStart_1ug5y_61{align-items:flex-start}._flexAlignItemsCenter_1ug5y_65{align-items:center}._flexAlignItemsEnd_1ug5y_69{align-items:flex-end}._flexGap5xs_1ug5y_73{gap:var(--alto-sem-space-5xs)}._flexGap4xs_1ug5y_77{gap:var(--alto-sem-space-4xs)}._flexGap3xs_1ug5y_81{gap:var(--alto-sem-space-3xs)}._flexGap2xs_1ug5y_85{gap:var(--alto-sem-space-2xs)}._flexGapXs_1ug5y_89{gap:var(--alto-sem-space-xs)}._flexGapSm_1ug5y_93{gap:var(--alto-sem-space-sm)}._flexGapMd_1ug5y_97{gap:var(--alto-sem-space-md)}._flexGapLg_1ug5y_101{gap:var(--alto-sem-space-lg)}._flexGapXl_1ug5y_105{gap:var(--alto-sem-space-xl)}._flexGap2xl_1ug5y_109{gap:var(--alto-sem-space-2xl)}._flexGap3xl_1ug5y_113{gap:var(--alto-sem-space-3xl)}._flexGap4xl_1ug5y_117{gap:var(--alto-sem-space-4xl)}._flexGap5xl_1ug5y_121{gap:var(--alto-sem-space-5xl)}._flexGap6xl_1ug5y_125{gap:var(--alto-sem-space-6xl)}
@@ -0,0 +1 @@
1
+ ._paddingLg_bawps_1{padding:var(--alto-sem-space-lg)}._paddingMd_bawps_5{padding:var(--alto-sem-space-md)}._paddingSm_bawps_9{padding:var(--alto-sem-space-sm)}._paddingX-lg_bawps_13{padding-left:var(--alto-sem-space-lg);padding-right:var(--alto-sem-space-lg)}._paddingX-md_bawps_18{padding-left:var(--alto-sem-space-md);padding-right:var(--alto-sem-space-md)}._paddingX-sm_bawps_23{padding-left:var(--alto-sem-space-sm);padding-right:var(--alto-sem-space-sm)}._paddingY-lg_bawps_28{padding-bottom:var(--alto-sem-space-lg);padding-top:var(--alto-sem-space-lg)}._paddingY-md_bawps_33{padding-bottom:var(--alto-sem-space-md);padding-top:var(--alto-sem-space-md)}._paddingY-sm_bawps_38{padding-bottom:var(--alto-sem-space-sm);padding-top:var(--alto-sem-space-sm)}._paddingTopLg_bawps_43{padding-top:var(--alto-sem-space-lg)}._paddingTopMd_bawps_47{padding-top:var(--alto-sem-space-md)}._paddingTopSm_bawps_51{padding-top:var(--alto-sem-space-sm)}._paddingRightLg_bawps_55{padding-right:var(--alto-sem-space-lg)}._paddingRightMd_bawps_59{padding-right:var(--alto-sem-space-md)}._paddingRightSm_bawps_63{padding-right:var(--alto-sem-space-sm)}._paddingBottomLg_bawps_67{padding-bottom:var(--alto-sem-space-lg)}._paddingBottomMd_bawps_71{padding-bottom:var(--alto-sem-space-md)}._paddingBottomSm_bawps_75{padding-bottom:var(--alto-sem-space-sm)}._paddingLeftLg_bawps_79{padding-left:var(--alto-sem-space-lg)}._paddingLeftMd_bawps_83{padding-left:var(--alto-sem-space-md)}._paddingLeftSm_bawps_87{padding-left:var(--alto-sem-space-sm)}
@@ -0,0 +1,29 @@
1
+ import { default as React } from 'react';
2
+ import { BackgroundVariants } from '../../utils/backgroundColour/backgroundColour';
3
+ import { FlexVariants } from '../../utils/flex/flex';
4
+ import { BorderVariants } from '../../utils/border/border';
5
+ import { PaddingVariants } from '../../utils/padding/padding';
6
+ export interface BoxProps extends BackgroundVariants, FlexVariants, BorderVariants, PaddingVariants {
7
+ children: React.ReactNode;
8
+ /**
9
+ * The HTML element to render the Box as.
10
+ */
11
+ as?: "div" | "article";
12
+ /**
13
+ * The width of the Box.
14
+ * Accepts any valid CSS unit or "full"
15
+ */
16
+ width?: "full" | string;
17
+ /**
18
+ * The maximum width of the Box.
19
+ * Accepts any valid CSS unit.
20
+ */
21
+ maxWidth?: string;
22
+ /**
23
+ * The minimum width of the Box.
24
+ * Accepts any valid CSS unit.
25
+ */
26
+ minWidth?: string;
27
+ }
28
+ export declare const Box: ({ children, as: Component, width, maxWidth, minWidth, ...props }: BoxProps) => import("react/jsx-runtime").JSX.Element;
29
+ export default Box;
@@ -0,0 +1,35 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { backgroundColorVariants } from "../../utils/backgroundColour/backgroundColour.js";
3
+ import { flexVariants } from "../../utils/flex/flex.js";
4
+ import { borderVariants } from "../../utils/border/border.js";
5
+ import { paddingVariants } from "../../utils/padding/padding.js";
6
+ const Box = ({
7
+ children,
8
+ as: Component = "div",
9
+ width,
10
+ maxWidth,
11
+ minWidth,
12
+ ...props
13
+ }) => {
14
+ const borderWidth = !(props == null ? void 0 : props.borderWidth) && props.borderColour !== "none" ? "sm" : props.borderWidth;
15
+ const styles = {
16
+ width: width === "full" ? "100%" : width,
17
+ maxWidth,
18
+ minWidth
19
+ };
20
+ return /* @__PURE__ */ jsx(Component, { className: `${borderVariants({
21
+ ...props,
22
+ borderWidth
23
+ })} ${flexVariants({
24
+ ...props
25
+ })} ${paddingVariants({
26
+ ...props
27
+ })} ${backgroundColorVariants({
28
+ ...props
29
+ })}`, style: styles, children });
30
+ };
31
+ export {
32
+ Box,
33
+ Box as default
34
+ };
35
+ //# sourceMappingURL=Box.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Box.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1 @@
1
+ export { default } from './Box';
@@ -0,0 +1,5 @@
1
+ import { Box } from "./Box.js";
2
+ export {
3
+ Box as default
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,23 @@
1
+ export interface CardSectionProps {
2
+ /**
3
+ * Decides whether the card section should be reversed
4
+ * @default false
5
+ */
6
+ isReversed?: boolean;
7
+ /**
8
+ * The content of the card section
9
+ */
10
+ children: React.ReactNode;
11
+ }
12
+ interface CardSectionComponent extends React.ForwardRefExoticComponent<CardSectionProps & React.RefAttributes<HTMLElement>> {
13
+ Content: typeof Content;
14
+ Media: typeof Media;
15
+ }
16
+ declare const CardSection: CardSectionComponent;
17
+ declare const Content: ({ children }: {
18
+ children: React.ReactNode;
19
+ }) => import("react/jsx-runtime").JSX.Element;
20
+ declare const Media: ({ children }: {
21
+ children: React.ReactNode;
22
+ }) => import("react/jsx-runtime").JSX.Element;
23
+ export default CardSection;
@@ -0,0 +1,46 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { c as cva } from "../../index-Bi3v_EjJ.js";
3
+ import { forwardRef } from "react";
4
+ import '../../assets/CardSection.css';const cardSection$1 = "_cardSection_1llfd_1";
5
+ const cardContainer = "_cardContainer_1llfd_11";
6
+ const cardGrid = "_cardGrid_1llfd_23";
7
+ const contentCell = "_contentCell_1llfd_33";
8
+ const contentBox = "_contentBox_1llfd_40";
9
+ const mediaCell = "_mediaCell_1llfd_51";
10
+ const isReversed = "_isReversed_1llfd_65";
11
+ const styles = {
12
+ cardSection: cardSection$1,
13
+ cardContainer,
14
+ cardGrid,
15
+ contentCell,
16
+ contentBox,
17
+ mediaCell,
18
+ isReversed
19
+ };
20
+ const cardSection = cva(styles.cardSection, {
21
+ variants: {
22
+ isReversed: {
23
+ true: styles.isReversed
24
+ }
25
+ },
26
+ defaultVariants: {}
27
+ });
28
+ const CardSection = forwardRef(({
29
+ isReversed: isReversed2 = false,
30
+ children
31
+ }, ref) => /* @__PURE__ */ jsx("section", { ref, className: cardSection({
32
+ isReversed: isReversed2
33
+ }), children: /* @__PURE__ */ jsx("div", { className: styles.cardContainer, children: /* @__PURE__ */ jsx("div", { className: styles.cardGrid, children }) }) }));
34
+ CardSection.displayName = "CardSection";
35
+ const Content = ({
36
+ children
37
+ }) => /* @__PURE__ */ jsx("div", { className: styles.contentCell, children: /* @__PURE__ */ jsx("article", { className: styles.contentBox, children }) });
38
+ const Media = ({
39
+ children
40
+ }) => /* @__PURE__ */ jsx("figure", { className: styles.mediaCell, children });
41
+ CardSection.Content = Content;
42
+ CardSection.Media = Media;
43
+ export {
44
+ CardSection as default
45
+ };
46
+ //# sourceMappingURL=CardSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardSection.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1 @@
1
+ export { default } from './CardSection';
@@ -0,0 +1,5 @@
1
+ import { default as default2 } from "./CardSection.js";
2
+ export {
3
+ default2 as default
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,113 @@
1
+ import { default as React } from 'react';
2
+ type SpaceToken = 'default' | '5xs' | '4xs' | '3xs' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
3
+ type AutoFlowValue = 'row' | 'column' | 'dense' | 'row dense' | 'column dense';
4
+ type AlignContentValue = 'start' | 'end' | 'center' | 'stretch' | 'space-around' | 'space-between' | 'space-evenly';
5
+ export interface GridCellProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ /**
7
+ * Number of columns this cell should span
8
+ */
9
+ colSpan?: number;
10
+ /**
11
+ * Number of rows this cell should span
12
+ */
13
+ rowSpan?: number;
14
+ /**
15
+ * The starting column for this cell
16
+ */
17
+ colStart?: number;
18
+ /**
19
+ * The starting row for this cell
20
+ */
21
+ rowStart?: number;
22
+ /**
23
+ * The ending column for this cell
24
+ */
25
+ colEnd?: number;
26
+ /**
27
+ * The ending row for this cell
28
+ */
29
+ rowEnd?: number;
30
+ /**
31
+ * The content of the grid cell
32
+ */
33
+ children: React.ReactNode;
34
+ /**
35
+ * @internal
36
+ * Additional CSS properties to apply to the grid cell
37
+ */
38
+ style?: React.CSSProperties;
39
+ }
40
+ export declare const GridCell: ({ colSpan, rowSpan, colStart, colEnd, rowStart, rowEnd, children, style, ...rest }: GridCellProps) => import("react/jsx-runtime").JSX.Element;
41
+ export interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
42
+ /**
43
+ * Optional unique identifier for the grid
44
+ */
45
+ id?: string;
46
+ /**
47
+ * Sets the display to inline-grid if true, and grid if false
48
+ * @default false
49
+ */
50
+ isInline?: boolean;
51
+ /**
52
+ * Controls the vertical alignment of the content within the grid
53
+ */
54
+ alignContent?: AlignContentValue;
55
+ /**
56
+ * Determines how columns are automatically created in the grid
57
+ * e.g., "minmax(100px, 1fr)" or "200px"
58
+ */
59
+ autoColumns?: string;
60
+ /**
61
+ * Sets the flow direction and behavior of the grid's auto-placement
62
+ */
63
+ autoFlow?: AutoFlowValue;
64
+ /**
65
+ * Number of columns to create (generates equal-width columns)
66
+ * Takes precedence over templateColumns if both are provided
67
+ */
68
+ columns?: number;
69
+ /**
70
+ * Number of rows to create (generates equal-height rows)
71
+ * Takes precedence over templateRows if both are provided
72
+ */
73
+ rows?: number;
74
+ /**
75
+ * Defines the columns of the grid using CSS grid-template-columns syntax
76
+ * e.g. "1fr 1fr 1fr" or "200px 1fr 200px"
77
+ */
78
+ templateColumns?: string;
79
+ /**
80
+ * Defines the rows of the grid using CSS grid-template-rows syntax
81
+ * e.g. "auto auto" or "100px 1fr"
82
+ */
83
+ templateRows?: string;
84
+ /**
85
+ * Controls the overall space between grid cells
86
+ * @default 'default'
87
+ */
88
+ gap?: SpaceToken;
89
+ /**
90
+ * Controls the vertical space between rows
91
+ * @default 'default'
92
+ */
93
+ rowGap?: SpaceToken;
94
+ /**
95
+ * Controls the horizontal space between columns
96
+ * @default 'default'
97
+ */
98
+ columnGap?: SpaceToken;
99
+ /**
100
+ * The content of the grid
101
+ */
102
+ children: React.ReactNode;
103
+ /**
104
+ * @internal
105
+ * Additional CSS properties to apply to the grid
106
+ */
107
+ style?: React.CSSProperties;
108
+ }
109
+ export declare const Grid: {
110
+ ({ id, isInline, alignContent, autoColumns, autoFlow, columns, rows, templateColumns, templateRows, gap, rowGap, columnGap, children, style, ...rest }: GridProps): import("react/jsx-runtime").JSX.Element;
111
+ Cell: ({ colSpan, rowSpan, colStart, colEnd, rowStart, rowEnd, children, style, ...rest }: GridCellProps) => import("react/jsx-runtime").JSX.Element;
112
+ };
113
+ export default Grid;
@@ -0,0 +1,87 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import '../../assets/Grid.css';const grid = "_grid_f3f0m_1";
3
+ const gridItem = "_gridItem_f3f0m_6";
4
+ const styles = {
5
+ grid,
6
+ gridItem
7
+ };
8
+ const getGapValue = (token) => {
9
+ return token === "default" ? "var(--alto-grid-gutter-default)" : `var(--alto-sem-space-${token})`;
10
+ };
11
+ const GridCell = ({
12
+ colSpan,
13
+ rowSpan,
14
+ colStart,
15
+ colEnd,
16
+ rowStart,
17
+ rowEnd,
18
+ children,
19
+ style,
20
+ ...rest
21
+ }) => {
22
+ const gridCellStyle = {
23
+ ...colSpan && {
24
+ gridColumn: `span ${colSpan}`
25
+ },
26
+ ...rowSpan && {
27
+ gridRow: `span ${rowSpan}`
28
+ },
29
+ ...colStart && {
30
+ gridColumnStart: colStart
31
+ },
32
+ ...colEnd && {
33
+ gridColumnEnd: colEnd
34
+ },
35
+ ...rowStart && {
36
+ gridRowStart: rowStart
37
+ },
38
+ ...rowEnd && {
39
+ gridRowEnd: rowEnd
40
+ },
41
+ ...style
42
+ };
43
+ return /* @__PURE__ */ jsx("div", { className: styles.gridCell, style: gridCellStyle, ...rest, children });
44
+ };
45
+ const Grid = ({
46
+ id,
47
+ isInline = false,
48
+ alignContent,
49
+ autoColumns,
50
+ autoFlow,
51
+ columns,
52
+ rows,
53
+ templateColumns,
54
+ templateRows,
55
+ gap,
56
+ rowGap,
57
+ columnGap,
58
+ children,
59
+ style,
60
+ ...rest
61
+ }) => {
62
+ const effectiveTemplateColumns = columns ? `repeat(${columns}, 1fr)` : templateColumns;
63
+ const effectiveTemplateRows = rows ? `repeat(${rows}, 1fr)` : templateRows;
64
+ const gridStyle = {
65
+ display: isInline ? "inline-grid" : "grid",
66
+ gridTemplateColumns: effectiveTemplateColumns,
67
+ gridTemplateRows: effectiveTemplateRows,
68
+ gridAutoColumns: autoColumns,
69
+ gridAutoFlow: autoFlow,
70
+ alignContent,
71
+ ...rowGap || columnGap ? {
72
+ rowGap: getGapValue(rowGap || "default"),
73
+ columnGap: getGapValue(columnGap || "default")
74
+ } : {
75
+ gap: getGapValue(gap || "default")
76
+ },
77
+ ...style
78
+ };
79
+ return /* @__PURE__ */ jsx("div", { id, className: styles.grid, style: gridStyle, ...rest, children });
80
+ };
81
+ Grid.Cell = GridCell;
82
+ export {
83
+ Grid,
84
+ GridCell,
85
+ Grid as default
86
+ };
87
+ //# sourceMappingURL=Grid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Grid.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1 @@
1
+ export { default } from './Grid';
@@ -0,0 +1,5 @@
1
+ import { Grid } from "./Grid.js";
2
+ export {
3
+ Grid as default
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,9 +1,9 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { Radio as Radio$1 } from "react-aria-components";
3
3
  import { c as cva } from "../../index-Bi3v_EjJ.js";
4
- import '../../assets/Radio.css';const radio$1 = "_radio_1csym_1";
5
- const defaultFocus = "_defaultFocus_1csym_41";
6
- const whiteFocus = "_whiteFocus_1csym_45";
4
+ import '../../assets/Radio.css';const radio$1 = "_radio_1qy5u_1";
5
+ const defaultFocus = "_defaultFocus_1qy5u_41";
6
+ const whiteFocus = "_whiteFocus_1qy5u_45";
7
7
  const styles = {
8
8
  radio: radio$1,
9
9
  defaultFocus,
@@ -17,7 +17,7 @@ const RadioGroup = ({
17
17
  ...props
18
18
  }) => {
19
19
  return /* @__PURE__ */ jsxs(RadioGroup$1, { className: styles.radioGroup, isInvalid, isDisabled, "aria-label": label, ...props, children: [
20
- /* @__PURE__ */ jsx(FieldHeader, { label, description, errorMessage, isRequired, isInvalid }),
20
+ (label || description || errorMessage) && /* @__PURE__ */ jsx(FieldHeader, { label, description, errorMessage, isRequired, isInvalid }),
21
21
  children
22
22
  ] });
23
23
  };
@@ -1,6 +1,7 @@
1
1
  export { default as Badge } from './Badge';
2
2
  export { default as Button } from './Button';
3
3
  export { default as ButtonGroup } from './ButtonGroup';
4
+ export { default as CardSection } from './CardSection';
4
5
  export { default as Checkbox } from './Checkbox';
5
6
  export { default as CheckboxGroup } from './CheckboxGroup';
6
7
  export { default as DateField } from './DateField';
@@ -10,6 +11,7 @@ export { default as FieldDescription } from './FieldDescription';
10
11
  export { default as FieldError } from './FieldError';
11
12
  export { default as FieldHeader } from './FieldHeader';
12
13
  export { default as FieldLabel } from './FieldLabel';
14
+ export { default as Grid } from './Grid';
13
15
  export { default as Heading } from './Heading';
14
16
  export { default as Icon } from './Icon';
15
17
  export { default as IconButton } from './IconButton';
@@ -2,20 +2,22 @@ import '../assets/global.css';/* empty css */
2
2
  import { Badge } from "./Badge/Badge.js";
3
3
  import { Button } from "./Button/Button.js";
4
4
  import { ButtonGroup } from "./ButtonGroup/ButtonGroup.js";
5
+ import { default as default2 } from "./CardSection/CardSection.js";
5
6
  import { Checkbox } from "./Checkbox/Checkbox.js";
6
7
  import { CheckboxGroup } from "./CheckboxGroup/CheckboxGroup.js";
7
8
  import { DateField } from "./DateField/DateField.js";
8
9
  import { DestinationHeading } from "./DestinationHeading/DestinationHeading.js";
9
10
  import { Eyebrow } from "./Eyebrow/Eyebrow.js";
10
- import { default as default2 } from "./FieldDescription/FieldDescription.js";
11
+ import { default as default3 } from "./FieldDescription/FieldDescription.js";
11
12
  import { FieldError } from "./FieldError/FieldError.js";
12
13
  import { FieldHeader } from "./FieldHeader/FieldHeader.js";
13
14
  import { FieldLabel } from "./FieldLabel/FieldLabel.js";
15
+ import { Grid } from "./Grid/Grid.js";
14
16
  import { Heading } from "./Heading/Heading.js";
15
17
  import { Icon } from "./Icon/Icon.js";
16
18
  import { IconButton } from "./IconButton/IconButton.js";
17
- import { default as default3 } from "./Link/Link.js";
18
- import { default as default4 } from "./LoadingSpinner/LoadingSpinner.js";
19
+ import { default as default4 } from "./Link/Link.js";
20
+ import { default as default5 } from "./LoadingSpinner/LoadingSpinner.js";
19
21
  import { NewButton } from "./NewButton/NewButton.js";
20
22
  import { Radio } from "./Radio/Radio.js";
21
23
  import { RadioGroup } from "./RadioGroup/RadioGroup.js";
@@ -24,27 +26,29 @@ import { Tag } from "./Tag/Tag.js";
24
26
  import { TagGroup } from "./TagGroup/TagGroup.js";
25
27
  import { TextField } from "./TextField/TextField.js";
26
28
  import { TextAreaField } from "./TextAreaField/TextAreaField.js";
27
- import { default as default5 } from "./ToggleButton/ToggleButton.js";
28
- import { default as default6 } from "./ToggleIconButton/ToggleIconButton.js";
29
+ import { default as default6 } from "./ToggleButton/ToggleButton.js";
30
+ import { default as default7 } from "./ToggleIconButton/ToggleIconButton.js";
29
31
  import { Tooltip } from "./Tooltip/Tooltip.js";
30
32
  export {
31
33
  Badge,
32
34
  Button,
33
35
  ButtonGroup,
36
+ default2 as CardSection,
34
37
  Checkbox,
35
38
  CheckboxGroup,
36
39
  DateField,
37
40
  DestinationHeading,
38
41
  Eyebrow,
39
- default2 as FieldDescription,
42
+ default3 as FieldDescription,
40
43
  FieldError,
41
44
  FieldHeader,
42
45
  FieldLabel,
46
+ Grid,
43
47
  Heading,
44
48
  Icon,
45
49
  IconButton,
46
- default3 as Link,
47
- default4 as LoadingSpinner,
50
+ default4 as Link,
51
+ default5 as LoadingSpinner,
48
52
  NewButton,
49
53
  Radio,
50
54
  RadioGroup,
@@ -53,8 +57,8 @@ export {
53
57
  TagGroup,
54
58
  TextAreaField,
55
59
  TextField,
56
- default5 as ToggleButton,
57
- default6 as ToggleIconButton,
60
+ default6 as ToggleButton,
61
+ default7 as ToggleIconButton,
58
62
  Tooltip
59
63
  };
60
64
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.js CHANGED
@@ -2,20 +2,22 @@ import './assets/global.css';/* empty css */
2
2
  import { Badge } from "./components/Badge/Badge.js";
3
3
  import { Button } from "./components/Button/Button.js";
4
4
  import { ButtonGroup } from "./components/ButtonGroup/ButtonGroup.js";
5
+ import { default as default2 } from "./components/CardSection/CardSection.js";
5
6
  import { Checkbox } from "./components/Checkbox/Checkbox.js";
6
7
  import { CheckboxGroup } from "./components/CheckboxGroup/CheckboxGroup.js";
7
8
  import { DateField } from "./components/DateField/DateField.js";
8
9
  import { DestinationHeading } from "./components/DestinationHeading/DestinationHeading.js";
9
10
  import { Eyebrow } from "./components/Eyebrow/Eyebrow.js";
10
- import { default as default2 } from "./components/FieldDescription/FieldDescription.js";
11
+ import { default as default3 } from "./components/FieldDescription/FieldDescription.js";
11
12
  import { FieldError } from "./components/FieldError/FieldError.js";
12
13
  import { FieldHeader } from "./components/FieldHeader/FieldHeader.js";
13
14
  import { FieldLabel } from "./components/FieldLabel/FieldLabel.js";
15
+ import { Grid } from "./components/Grid/Grid.js";
14
16
  import { Heading } from "./components/Heading/Heading.js";
15
17
  import { Icon } from "./components/Icon/Icon.js";
16
18
  import { IconButton } from "./components/IconButton/IconButton.js";
17
- import { default as default3 } from "./components/Link/Link.js";
18
- import { default as default4 } from "./components/LoadingSpinner/LoadingSpinner.js";
19
+ import { default as default4 } from "./components/Link/Link.js";
20
+ import { default as default5 } from "./components/LoadingSpinner/LoadingSpinner.js";
19
21
  import { NewButton } from "./components/NewButton/NewButton.js";
20
22
  import { Radio } from "./components/Radio/Radio.js";
21
23
  import { RadioGroup } from "./components/RadioGroup/RadioGroup.js";
@@ -24,27 +26,29 @@ import { Tag } from "./components/Tag/Tag.js";
24
26
  import { TagGroup } from "./components/TagGroup/TagGroup.js";
25
27
  import { TextField } from "./components/TextField/TextField.js";
26
28
  import { TextAreaField } from "./components/TextAreaField/TextAreaField.js";
27
- import { default as default5 } from "./components/ToggleButton/ToggleButton.js";
28
- import { default as default6 } from "./components/ToggleIconButton/ToggleIconButton.js";
29
+ import { default as default6 } from "./components/ToggleButton/ToggleButton.js";
30
+ import { default as default7 } from "./components/ToggleIconButton/ToggleIconButton.js";
29
31
  import { Tooltip } from "./components/Tooltip/Tooltip.js";
30
32
  export {
31
33
  Badge,
32
34
  Button,
33
35
  ButtonGroup,
36
+ default2 as CardSection,
34
37
  Checkbox,
35
38
  CheckboxGroup,
36
39
  DateField,
37
40
  DestinationHeading,
38
41
  Eyebrow,
39
- default2 as FieldDescription,
42
+ default3 as FieldDescription,
40
43
  FieldError,
41
44
  FieldHeader,
42
45
  FieldLabel,
46
+ Grid,
43
47
  Heading,
44
48
  Icon,
45
49
  IconButton,
46
- default3 as Link,
47
- default4 as LoadingSpinner,
50
+ default4 as Link,
51
+ default5 as LoadingSpinner,
48
52
  NewButton,
49
53
  Radio,
50
54
  RadioGroup,
@@ -53,8 +57,8 @@ export {
53
57
  TagGroup,
54
58
  TextAreaField,
55
59
  TextField,
56
- default5 as ToggleButton,
57
- default6 as ToggleIconButton,
60
+ default6 as ToggleButton,
61
+ default7 as ToggleIconButton,
58
62
  Tooltip
59
63
  };
60
64
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { InputType } from 'storybook/internal/types';
3
+ export declare const backgroundColorVariants: (props?: ({
4
+ backgroundColour?: "base" | "transparent" | "layer1" | "layer2" | "layer3" | "accentVibrant" | "accentSubtle" | "accentDeep" | "criticalVibrant" | "criticalSubtle" | "warningVibrant" | "warningSubtle" | "cautionVibrant" | "cautionSubtle" | "successVibrant" | "successSubtle" | "informationVibrant" | "informationSubtle" | "inverseVibrant" | "inverseSubtle" | "whiteVibrant" | "whiteSubtle" | "disabledVibrant" | "disabledSubtle" | "saleVibrant" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export type BackgroundVariants = VariantProps<typeof backgroundColorVariants>;
7
+ export declare const backgroundColourOptions: BackgroundVariants["backgroundColour"][];
8
+ export declare const backgroundColourArgTypes: Record<string, InputType>;
@@ -0,0 +1,102 @@
1
+ import { c as cva } from "../../index-Bi3v_EjJ.js";
2
+ import '../../assets/backgroundColour.css';const styles = {
3
+ "backgroundColour-transparent": "_backgroundColour-transparent_jawk2_1",
4
+ "backgroundColour-base": "_backgroundColour-base_jawk2_5",
5
+ "backgroundColour-layer1": "_backgroundColour-layer1_jawk2_9",
6
+ "backgroundColour-layer2": "_backgroundColour-layer2_jawk2_13",
7
+ "backgroundColour-layer3": "_backgroundColour-layer3_jawk2_17",
8
+ "backgroundColour-accent-vibrant": "_backgroundColour-accent-vibrant_jawk2_21",
9
+ "backgroundColour-accent-subtle": "_backgroundColour-accent-subtle_jawk2_25",
10
+ "backgroundColour-accent-deep": "_backgroundColour-accent-deep_jawk2_29",
11
+ "backgroundColour-critical-vibrant": "_backgroundColour-critical-vibrant_jawk2_33",
12
+ "backgroundColour-critical-subtle": "_backgroundColour-critical-subtle_jawk2_37",
13
+ "backgroundColour-warning-vibrant": "_backgroundColour-warning-vibrant_jawk2_41",
14
+ "backgroundColour-warning-subtle": "_backgroundColour-warning-subtle_jawk2_45",
15
+ "backgroundColour-caution-vibrant": "_backgroundColour-caution-vibrant_jawk2_49",
16
+ "backgroundColour-caution-subtle": "_backgroundColour-caution-subtle_jawk2_53",
17
+ "backgroundColour-success-vibrant": "_backgroundColour-success-vibrant_jawk2_57",
18
+ "backgroundColour-success-subtle": "_backgroundColour-success-subtle_jawk2_61",
19
+ "backgroundColour-information-vibrant": "_backgroundColour-information-vibrant_jawk2_65",
20
+ "backgroundColour-information-subtle": "_backgroundColour-information-subtle_jawk2_69",
21
+ "backgroundColour-inverse-vibrant": "_backgroundColour-inverse-vibrant_jawk2_73",
22
+ "backgroundColour-inverse-subtle": "_backgroundColour-inverse-subtle_jawk2_77",
23
+ "backgroundColour-white-vibrant": "_backgroundColour-white-vibrant_jawk2_81",
24
+ "backgroundColour-white-subtle": "_backgroundColour-white-subtle_jawk2_85",
25
+ "backgroundColour-disabled-vibrant": "_backgroundColour-disabled-vibrant_jawk2_89",
26
+ "backgroundColour-disabled-subtle": "_backgroundColour-disabled-subtle_jawk2_93",
27
+ "backgroundColour-sale-vibrant": "_backgroundColour-sale-vibrant_jawk2_97"
28
+ };
29
+ const backgroundColorVariants = cva("", {
30
+ variants: {
31
+ backgroundColour: {
32
+ transparent: styles["backgroundColour-transparent"],
33
+ base: styles["backgroundColour-base"],
34
+ layer1: styles["backgroundColour-layer1"],
35
+ layer2: styles["backgroundColour-layer2"],
36
+ layer3: styles["backgroundColour-layer3"],
37
+ accentVibrant: styles["backgroundColour-accent-vibrant"],
38
+ accentSubtle: styles["backgroundColour-accent-subtle"],
39
+ accentDeep: styles["backgroundColour-accent-deep"],
40
+ criticalVibrant: styles["backgroundColour-critical-vibrant"],
41
+ criticalSubtle: styles["backgroundColour-critical-subtle"],
42
+ warningVibrant: styles["backgroundColour-warning-vibrant"],
43
+ warningSubtle: styles["backgroundColour-warning-subtle"],
44
+ cautionVibrant: styles["backgroundColour-caution-vibrant"],
45
+ cautionSubtle: styles["backgroundColour-caution-subtle"],
46
+ successVibrant: styles["backgroundColour-success-vibrant"],
47
+ successSubtle: styles["backgroundColour-success-subtle"],
48
+ informationVibrant: styles["backgroundColour-information-vibrant"],
49
+ informationSubtle: styles["backgroundColour-information-subtle"],
50
+ inverseVibrant: styles["backgroundColour-inverse-vibrant"],
51
+ inverseSubtle: styles["backgroundColour-inverse-subtle"],
52
+ whiteVibrant: styles["backgroundColour-white-vibrant"],
53
+ whiteSubtle: styles["backgroundColour-white-subtle"],
54
+ disabledVibrant: styles["backgroundColour-disabled-vibrant"],
55
+ disabledSubtle: styles["backgroundColour-disabled-subtle"],
56
+ saleVibrant: styles["backgroundColour-sale-vibrant"]
57
+ }
58
+ },
59
+ defaultVariants: {
60
+ backgroundColour: "transparent"
61
+ }
62
+ });
63
+ const backgroundColourOptions = [
64
+ "transparent",
65
+ "base",
66
+ "layer1",
67
+ "layer2",
68
+ "layer3",
69
+ "accentVibrant",
70
+ "accentSubtle",
71
+ "accentDeep",
72
+ "criticalVibrant",
73
+ "criticalSubtle",
74
+ "warningVibrant",
75
+ "warningSubtle",
76
+ "cautionVibrant",
77
+ "cautionSubtle",
78
+ "successVibrant",
79
+ "successSubtle",
80
+ "informationVibrant",
81
+ "informationSubtle",
82
+ "inverseVibrant",
83
+ "inverseSubtle",
84
+ "whiteVibrant",
85
+ "whiteSubtle",
86
+ "disabledVibrant",
87
+ "disabledSubtle",
88
+ "saleVibrant"
89
+ ];
90
+ const backgroundColourArgTypes = {
91
+ backgroundColour: {
92
+ control: "select",
93
+ options: backgroundColourOptions,
94
+ defaultValue: "transparent"
95
+ }
96
+ };
97
+ export {
98
+ backgroundColorVariants,
99
+ backgroundColourArgTypes,
100
+ backgroundColourOptions
101
+ };
102
+ //# sourceMappingURL=backgroundColour.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"backgroundColour.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { InputType } from 'storybook/internal/types';
3
+ export declare const borderVariants: (props?: ({
4
+ borderRadius?: "lg" | "sm" | "xs" | "none" | "md" | "xl" | "circle" | "5xs" | "4xs" | "3xs" | "2xs" | "6xs" | null | undefined;
5
+ borderWidth?: "lg" | "sm" | "xs" | "none" | "md" | "xl" | null | undefined;
6
+ borderStyle?: "none" | "dashed" | "solid" | null | undefined;
7
+ borderColour?: "none" | "white" | "critical" | "warning" | "caution" | "success" | "accent" | "secondary" | "tertiary" | "information" | "inverse" | null | undefined;
8
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
+ export type BorderVariants = VariantProps<typeof borderVariants>;
10
+ export declare const borderArgTypes: Record<string, InputType>;
@@ -0,0 +1,147 @@
1
+ import { c as cva } from "../../index-Bi3v_EjJ.js";
2
+ import '../../assets/border.css';const borderRadiusNone = "_borderRadiusNone_1ka0b_1";
3
+ const borderRadius6xs = "_borderRadius6xs_1ka0b_5";
4
+ const borderRadius5xs = "_borderRadius5xs_1ka0b_9";
5
+ const borderRadius4xs = "_borderRadius4xs_1ka0b_13";
6
+ const borderRadius3xs = "_borderRadius3xs_1ka0b_17";
7
+ const borderRadius2xs = "_borderRadius2xs_1ka0b_21";
8
+ const borderRadiusXs = "_borderRadiusXs_1ka0b_25";
9
+ const borderRadiusSm = "_borderRadiusSm_1ka0b_29";
10
+ const borderRadiusMd = "_borderRadiusMd_1ka0b_33";
11
+ const borderRadiusLg = "_borderRadiusLg_1ka0b_37";
12
+ const borderRadiusXl = "_borderRadiusXl_1ka0b_41";
13
+ const borderRadiusCircle = "_borderRadiusCircle_1ka0b_45";
14
+ const borderWidthNone = "_borderWidthNone_1ka0b_49";
15
+ const borderWidthXs = "_borderWidthXs_1ka0b_53";
16
+ const borderWidthSm = "_borderWidthSm_1ka0b_57";
17
+ const borderWidthMd = "_borderWidthMd_1ka0b_61";
18
+ const borderWidthLg = "_borderWidthLg_1ka0b_65";
19
+ const borderWidthXl = "_borderWidthXl_1ka0b_69";
20
+ const borderStyleNone = "_borderStyleNone_1ka0b_73";
21
+ const borderStyleSolid = "_borderStyleSolid_1ka0b_77";
22
+ const borderStyleDashed = "_borderStyleDashed_1ka0b_81";
23
+ const borderColourNone = "_borderColourNone_1ka0b_85";
24
+ const borderColourSecondary = "_borderColourSecondary_1ka0b_89";
25
+ const borderColourTertiary = "_borderColourTertiary_1ka0b_93";
26
+ const borderColourAccent = "_borderColourAccent_1ka0b_97";
27
+ const borderColourCaution = "_borderColourCaution_1ka0b_101";
28
+ const borderColourCritical = "_borderColourCritical_1ka0b_105";
29
+ const borderColourInformation = "_borderColourInformation_1ka0b_109";
30
+ const borderColourInverse = "_borderColourInverse_1ka0b_113";
31
+ const borderColourSuccess = "_borderColourSuccess_1ka0b_117";
32
+ const borderColourWarning = "_borderColourWarning_1ka0b_121";
33
+ const borderColourWhite = "_borderColourWhite_1ka0b_125";
34
+ const styles = {
35
+ borderRadiusNone,
36
+ borderRadius6xs,
37
+ borderRadius5xs,
38
+ borderRadius4xs,
39
+ borderRadius3xs,
40
+ borderRadius2xs,
41
+ borderRadiusXs,
42
+ borderRadiusSm,
43
+ borderRadiusMd,
44
+ borderRadiusLg,
45
+ borderRadiusXl,
46
+ borderRadiusCircle,
47
+ borderWidthNone,
48
+ borderWidthXs,
49
+ borderWidthSm,
50
+ borderWidthMd,
51
+ borderWidthLg,
52
+ borderWidthXl,
53
+ borderStyleNone,
54
+ borderStyleSolid,
55
+ borderStyleDashed,
56
+ borderColourNone,
57
+ borderColourSecondary,
58
+ borderColourTertiary,
59
+ borderColourAccent,
60
+ borderColourCaution,
61
+ borderColourCritical,
62
+ borderColourInformation,
63
+ borderColourInverse,
64
+ borderColourSuccess,
65
+ borderColourWarning,
66
+ borderColourWhite
67
+ };
68
+ const borderVariants = cva("", {
69
+ variants: {
70
+ borderRadius: {
71
+ none: styles["borderRadiusNone"],
72
+ "6xs": styles["borderRadius6xs"],
73
+ "5xs": styles["borderRadius5xs"],
74
+ "4xs": styles["borderRadius4xs"],
75
+ "3xs": styles["borderRadius3xs"],
76
+ "2xs": styles["borderRadius2xs"],
77
+ xs: styles["borderRadiusXs"],
78
+ sm: styles["borderRadiusSm"],
79
+ md: styles["borderRadiusMd"],
80
+ lg: styles["borderRadiusLg"],
81
+ xl: styles["borderRadiusXl"],
82
+ circle: styles["borderRadiusCircle"]
83
+ },
84
+ borderWidth: {
85
+ none: styles["borderWidthNone"],
86
+ xs: styles["borderWidthXs"],
87
+ sm: styles["borderWidthSm"],
88
+ md: styles["borderWidthMd"],
89
+ lg: styles["borderWidthLg"],
90
+ xl: styles["borderWidthXl"]
91
+ },
92
+ borderStyle: {
93
+ none: styles["borderStyleNone"],
94
+ solid: styles["borderStyleSolid"],
95
+ dashed: styles["borderStyleDashed"]
96
+ },
97
+ borderColour: {
98
+ none: styles["borderColourNone"],
99
+ secondary: styles["borderColourSecondary"],
100
+ tertiary: styles["borderColourTertiary"],
101
+ accent: styles["borderColourAccent"],
102
+ caution: styles["borderColourCaution"],
103
+ critical: styles["borderColourCritical"],
104
+ information: styles["borderColourInformation"],
105
+ inverse: styles["borderColourInverse"],
106
+ success: styles["borderColourSuccess"],
107
+ warning: styles["borderColourWarning"],
108
+ white: styles["borderColourWhite"]
109
+ }
110
+ },
111
+ defaultVariants: {
112
+ borderRadius: "none",
113
+ borderWidth: "none",
114
+ borderStyle: "solid",
115
+ borderColour: "none"
116
+ }
117
+ });
118
+ const borderArgTypes = {
119
+ borderRadius: {
120
+ control: "select",
121
+ options: [
122
+ "none",
123
+ "6xs",
124
+ "5xs",
125
+ "4xs",
126
+ "3xs",
127
+ "2xs",
128
+ "xs",
129
+ "sm",
130
+ "md",
131
+ "lg",
132
+ "xl",
133
+ "circle"
134
+ ],
135
+ defaultValue: "none"
136
+ },
137
+ borderWidth: {
138
+ control: "select",
139
+ options: ["none", "xs", "sm", "md", "lg", "xl"],
140
+ defaultValue: "none"
141
+ }
142
+ };
143
+ export {
144
+ borderArgTypes,
145
+ borderVariants
146
+ };
147
+ //# sourceMappingURL=border.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"border.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,3 +1,5 @@
1
+ import { VariantProps } from 'class-variance-authority';
1
2
  export declare const fgColorVariants: (props?: ({
2
3
  fgColor?: "default" | "accentPrimary" | "accentSecondary" | "secondary" | "criticalPrimary" | "whitePrimary" | "accentOnVibrant" | "accentOnVibrantAccent" | "accentOnSubtle" | "accentOnDeep" | "criticalOnVibrant" | "criticalOnSubtle" | "warningPrimary" | "warningOnVibrant" | "warningOnSubtle" | "cautionPrimary" | "cautionOnVibrant" | "cautionOnSubtle" | "successPrimary" | "successOnVibrant" | "successOnSubtle" | "informationPrimary" | "informationOnVibrant" | "informationOnSubtle" | "inversePrimary" | "inverseOnVibrant" | "inverseOnSubtle" | "whiteOnVibrant" | "whiteOnSubtle" | "disabledPrimary" | "disabledOnVibrant" | "disabledOnSubtle" | "salePrimary" | "saleOnVibrant" | null | undefined;
3
4
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
+ export type FgColorVariants = VariantProps<typeof fgColorVariants>;
@@ -0,0 +1,12 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ export declare const flexVariants: (props?: ({
3
+ display?: "flex" | "inline-flex" | null | undefined;
4
+ justifyContent?: "start" | "center" | "end" | null | undefined;
5
+ flexWrap?: "nowrap" | "wrap" | null | undefined;
6
+ flexGrow?: 0 | 1 | null | undefined;
7
+ flexShrink?: 0 | 1 | null | undefined;
8
+ flexDirection?: "row" | "column" | "column-reverse" | "row-reverse" | null | undefined;
9
+ alignItems?: "start" | "center" | "end" | null | undefined;
10
+ gap?: "lg" | "sm" | "xs" | "md" | "xl" | "5xs" | "4xs" | "3xs" | "2xs" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | null | undefined;
11
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
12
+ export type FlexVariants = VariantProps<typeof flexVariants>;
@@ -0,0 +1,126 @@
1
+ import { c as cva } from "../../index-Bi3v_EjJ.js";
2
+ import '../../assets/flex.css';const flex = "_flex_1ug5y_1";
3
+ const flexInline = "_flexInline_1ug5y_5";
4
+ const flexJustifyContentStart = "_flexJustifyContentStart_1ug5y_9";
5
+ const flexJustifyContentCenter = "_flexJustifyContentCenter_1ug5y_13";
6
+ const flexJustifyContentEnd = "_flexJustifyContentEnd_1ug5y_17";
7
+ const flexWrapWrap = "_flexWrapWrap_1ug5y_21";
8
+ const flexWrapNowrap = "_flexWrapNowrap_1ug5y_25";
9
+ const flexGrow1 = "_flexGrow1_1ug5y_29";
10
+ const flexGrow0 = "_flexGrow0_1ug5y_33";
11
+ const flexShrink1 = "_flexShrink1_1ug5y_37";
12
+ const flexShrink0 = "_flexShrink0_1ug5y_41";
13
+ const flexDirectionRow = "_flexDirectionRow_1ug5y_45";
14
+ const flexDirectionRowReverse = "_flexDirectionRowReverse_1ug5y_49";
15
+ const flexDirectionColumn = "_flexDirectionColumn_1ug5y_53";
16
+ const flexDirectionColumnReverse = "_flexDirectionColumnReverse_1ug5y_57";
17
+ const flexAlignItemsStart = "_flexAlignItemsStart_1ug5y_61";
18
+ const flexAlignItemsCenter = "_flexAlignItemsCenter_1ug5y_65";
19
+ const flexAlignItemsEnd = "_flexAlignItemsEnd_1ug5y_69";
20
+ const flexGap5xs = "_flexGap5xs_1ug5y_73";
21
+ const flexGap4xs = "_flexGap4xs_1ug5y_77";
22
+ const flexGap3xs = "_flexGap3xs_1ug5y_81";
23
+ const flexGap2xs = "_flexGap2xs_1ug5y_85";
24
+ const flexGapXs = "_flexGapXs_1ug5y_89";
25
+ const flexGapSm = "_flexGapSm_1ug5y_93";
26
+ const flexGapMd = "_flexGapMd_1ug5y_97";
27
+ const flexGapLg = "_flexGapLg_1ug5y_101";
28
+ const flexGapXl = "_flexGapXl_1ug5y_105";
29
+ const flexGap2xl = "_flexGap2xl_1ug5y_109";
30
+ const flexGap3xl = "_flexGap3xl_1ug5y_113";
31
+ const flexGap4xl = "_flexGap4xl_1ug5y_117";
32
+ const flexGap5xl = "_flexGap5xl_1ug5y_121";
33
+ const flexGap6xl = "_flexGap6xl_1ug5y_125";
34
+ const styles = {
35
+ flex,
36
+ flexInline,
37
+ flexJustifyContentStart,
38
+ flexJustifyContentCenter,
39
+ flexJustifyContentEnd,
40
+ flexWrapWrap,
41
+ flexWrapNowrap,
42
+ flexGrow1,
43
+ flexGrow0,
44
+ flexShrink1,
45
+ flexShrink0,
46
+ flexDirectionRow,
47
+ flexDirectionRowReverse,
48
+ flexDirectionColumn,
49
+ flexDirectionColumnReverse,
50
+ flexAlignItemsStart,
51
+ flexAlignItemsCenter,
52
+ flexAlignItemsEnd,
53
+ flexGap5xs,
54
+ flexGap4xs,
55
+ flexGap3xs,
56
+ flexGap2xs,
57
+ flexGapXs,
58
+ flexGapSm,
59
+ flexGapMd,
60
+ flexGapLg,
61
+ flexGapXl,
62
+ flexGap2xl,
63
+ flexGap3xl,
64
+ flexGap4xl,
65
+ flexGap5xl,
66
+ flexGap6xl
67
+ };
68
+ const flexVariants = cva("", {
69
+ variants: {
70
+ display: {
71
+ flex: styles["flex"],
72
+ "inline-flex": styles["flexInline"]
73
+ },
74
+ justifyContent: {
75
+ start: styles["flexJustifyContentStart"],
76
+ center: styles["flexJustifyContentCenter"],
77
+ end: styles["flexJustifyContentEnd"]
78
+ },
79
+ flexWrap: {
80
+ wrap: styles["flexWrapWrap"],
81
+ nowrap: styles["flexWrapNowrap"]
82
+ },
83
+ flexGrow: {
84
+ 0: styles["flexGrow0"],
85
+ 1: styles["flexGrow1"]
86
+ },
87
+ flexShrink: {
88
+ 0: styles["flexShrink0"],
89
+ 1: styles["flexShrink1"]
90
+ },
91
+ flexDirection: {
92
+ row: styles["flexDirectionRow"],
93
+ "row-reverse": styles["flexDirectionRowReverse"],
94
+ column: styles["flexDirectionColumn"],
95
+ "column-reverse": styles["flexDirectionColumnReverse"]
96
+ },
97
+ alignItems: {
98
+ start: styles["flexAlignItemsStart"],
99
+ center: styles["flexAlignItemsCenter"],
100
+ end: styles["flexAlignItemsEnd"]
101
+ },
102
+ gap: {
103
+ "5xs": styles["flexGap5xs"],
104
+ "4xs": styles["flexGap4xs"],
105
+ "3xs": styles["flexGap3xs"],
106
+ "2xs": styles["flexGap2xs"],
107
+ xs: styles["flexGapXs"],
108
+ sm: styles["flexGapSm"],
109
+ md: styles["flexGapMd"],
110
+ lg: styles["flexGapLg"],
111
+ xl: styles["flexGapXl"],
112
+ "2xl": styles["flexGap2xl"],
113
+ "3xl": styles["flexGap3xl"],
114
+ "4xl": styles["flexGap4xl"],
115
+ "5xl": styles["flexGap5xl"],
116
+ "6xl": styles["flexGap6xl"]
117
+ }
118
+ },
119
+ defaultVariants: {
120
+ display: "flex"
121
+ }
122
+ });
123
+ export {
124
+ flexVariants
125
+ };
126
+ //# sourceMappingURL=flex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flex.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,13 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { InputType } from 'storybook/internal/types';
3
+ export declare const paddingVariants: (props?: ({
4
+ padding?: "lg" | "sm" | "md" | null | undefined;
5
+ paddingX?: "lg" | "sm" | "md" | null | undefined;
6
+ paddingY?: "lg" | "sm" | "md" | null | undefined;
7
+ paddingTop?: "lg" | "sm" | "md" | null | undefined;
8
+ paddingRight?: "lg" | "sm" | "md" | null | undefined;
9
+ paddingBottom?: "lg" | "sm" | "md" | null | undefined;
10
+ paddingLeft?: "lg" | "sm" | "md" | null | undefined;
11
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
12
+ export type PaddingVariants = VariantProps<typeof paddingVariants>;
13
+ export declare const paddingArgTypes: Record<string, InputType>;
@@ -0,0 +1,96 @@
1
+ import { c as cva } from "../../index-Bi3v_EjJ.js";
2
+ import '../../assets/padding.css';const paddingLg = "_paddingLg_bawps_1";
3
+ const paddingMd = "_paddingMd_bawps_5";
4
+ const paddingSm = "_paddingSm_bawps_9";
5
+ const paddingTopLg = "_paddingTopLg_bawps_43";
6
+ const paddingTopMd = "_paddingTopMd_bawps_47";
7
+ const paddingTopSm = "_paddingTopSm_bawps_51";
8
+ const paddingRightLg = "_paddingRightLg_bawps_55";
9
+ const paddingRightMd = "_paddingRightMd_bawps_59";
10
+ const paddingRightSm = "_paddingRightSm_bawps_63";
11
+ const paddingBottomLg = "_paddingBottomLg_bawps_67";
12
+ const paddingBottomMd = "_paddingBottomMd_bawps_71";
13
+ const paddingBottomSm = "_paddingBottomSm_bawps_75";
14
+ const paddingLeftLg = "_paddingLeftLg_bawps_79";
15
+ const paddingLeftMd = "_paddingLeftMd_bawps_83";
16
+ const paddingLeftSm = "_paddingLeftSm_bawps_87";
17
+ const styles = {
18
+ paddingLg,
19
+ paddingMd,
20
+ paddingSm,
21
+ "paddingX-lg": "_paddingX-lg_bawps_13",
22
+ "paddingX-md": "_paddingX-md_bawps_18",
23
+ "paddingX-sm": "_paddingX-sm_bawps_23",
24
+ "paddingY-lg": "_paddingY-lg_bawps_28",
25
+ "paddingY-md": "_paddingY-md_bawps_33",
26
+ "paddingY-sm": "_paddingY-sm_bawps_38",
27
+ paddingTopLg,
28
+ paddingTopMd,
29
+ paddingTopSm,
30
+ paddingRightLg,
31
+ paddingRightMd,
32
+ paddingRightSm,
33
+ paddingBottomLg,
34
+ paddingBottomMd,
35
+ paddingBottomSm,
36
+ paddingLeftLg,
37
+ paddingLeftMd,
38
+ paddingLeftSm
39
+ };
40
+ const paddingControl = {
41
+ control: "select",
42
+ options: [null, "lg", "md", "sm"]
43
+ };
44
+ const paddingVariants = cva("", {
45
+ variants: {
46
+ padding: {
47
+ lg: styles["paddingLg"],
48
+ md: styles["paddingMd"],
49
+ sm: styles["paddingSm"]
50
+ },
51
+ paddingX: {
52
+ lg: styles["paddingX-lg"],
53
+ md: styles["paddingX-md"],
54
+ sm: styles["paddingX-sm"]
55
+ },
56
+ paddingY: {
57
+ lg: styles["paddingY-lg"],
58
+ md: styles["paddingY-md"],
59
+ sm: styles["paddingY-sm"]
60
+ },
61
+ paddingTop: {
62
+ lg: styles["paddingTopLg"],
63
+ md: styles["paddingTopMd"],
64
+ sm: styles["paddingTopSm"]
65
+ },
66
+ paddingRight: {
67
+ lg: styles["paddingRightLg"],
68
+ md: styles["paddingRightMd"],
69
+ sm: styles["paddingRightSm"]
70
+ },
71
+ paddingBottom: {
72
+ lg: styles["paddingBottomLg"],
73
+ md: styles["paddingBottomMd"],
74
+ sm: styles["paddingBottomSm"]
75
+ },
76
+ paddingLeft: {
77
+ lg: styles["paddingLeftLg"],
78
+ md: styles["paddingLeftMd"],
79
+ sm: styles["paddingLeftSm"]
80
+ }
81
+ }
82
+ });
83
+ const paddingArgTypes = {
84
+ padding: paddingControl,
85
+ paddingX: paddingControl,
86
+ paddingY: paddingControl,
87
+ paddingTop: paddingControl,
88
+ paddingRight: paddingControl,
89
+ paddingBottom: paddingControl,
90
+ paddingLeft: paddingControl
91
+ };
92
+ export {
93
+ paddingArgTypes,
94
+ paddingVariants
95
+ };
96
+ //# sourceMappingURL=padding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"padding.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alto-avios/alto-ui",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
4
4
  "description": "A react component library for Alto Design System",
5
5
  "author": "Ian Caldwell IAGL",
6
6
  "license": "MIT",
@@ -62,7 +62,7 @@
62
62
  "vite-plugin-lib-inject-css": "^2.1.1"
63
63
  },
64
64
  "peerDependencies": {
65
- "@alto-avios/alto-tokens": "^2.2.0",
65
+ "@alto-avios/alto-tokens": "^2.3.0",
66
66
  "react": "^18.0.0"
67
67
  },
68
68
  "main": "dist/index.js",