@ds-gn/ui 0.6.1 → 0.7.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.
@@ -304,8 +304,9 @@ import { property } from "lit/decorators.js";
304
304
  import { keyed } from "lit/directives/keyed.js";
305
305
  import { styleMap } from "lit/directives/style-map.js";
306
306
  import {
307
- containerPaddingValues,
308
- containerSizeValues
307
+ containerSizeValues,
308
+ paddingBottomProps,
309
+ paddingTopProps
309
310
  } from "../../Container/src/Container.props.js";
310
311
 
311
312
  // components/FeatureTabs/src/FeatureTabs.css
@@ -1276,8 +1277,9 @@ class FeatureTabs extends Base {
1276
1277
  <section>
1277
1278
  <dsgn-container
1278
1279
  size="${containerSizeValues.XXL}"
1279
- padding-x="${containerPaddingValues.MD}"
1280
- padding-y="${containerPaddingValues.MD}"
1280
+ section
1281
+ .paddingTop=${this.paddingTop}
1282
+ .paddingBottom=${this.paddingBottom}
1281
1283
  >
1282
1284
  <div class="${headerClassNames()}">
1283
1285
  <slot name="header"></slot>
@@ -1300,6 +1302,12 @@ class FeatureTabs extends Base {
1300
1302
  `;
1301
1303
  }
1302
1304
  }
1305
+ __legacyDecorateClassTS([
1306
+ property({ ...paddingTopProps })
1307
+ ], FeatureTabs.prototype, "paddingTop", undefined);
1308
+ __legacyDecorateClassTS([
1309
+ property({ ...paddingBottomProps })
1310
+ ], FeatureTabs.prototype, "paddingBottom", undefined);
1303
1311
  __legacyDecorateClassTS([
1304
1312
  property({ ...surfaceProps })
1305
1313
  ], FeatureTabs.prototype, "surface", undefined);
@@ -3,7 +3,7 @@ import '../../Container/src/Container.js';
3
3
  import { type CSSResultGroup } from 'lit';
4
4
  import { Base } from '../../../common/Base/Base.js';
5
5
  import { type SurfaceType } from '../../../common/props/surface/surface.props.js';
6
- import { type ContainerPaddingType, type ContainerSizeType } from '../../Container/src/Container.props.js';
6
+ import { type ContainerSizeType, type SectionSpaceType } from '../../Container/src/Container.props.js';
7
7
  /**
8
8
  * @slot logo - Brand or logo content.
9
9
  * @slot col-1 - First footer column.
@@ -21,14 +21,10 @@ export declare class Footer extends Base {
21
21
  * Container max-width size
22
22
  */
23
23
  containerSize: ContainerSizeType;
24
- /**
25
- * Container horizontal padding
26
- */
27
- containerPaddingX: ContainerPaddingType;
28
- /**
29
- * Container vertical padding
30
- */
31
- containerPaddingY: ContainerPaddingType;
24
+ /** Space above the section. Unset follows the inherited section space. */
25
+ paddingTop?: SectionSpaceType;
26
+ /** Space below the section. Unset follows the inherited section space. */
27
+ paddingBottom?: SectionSpaceType;
32
28
  updated(changedProperties: Map<string | number | symbol, unknown>): void;
33
29
  render(): import("lit").TemplateResult<1>;
34
30
  }
@@ -124,11 +124,10 @@ var surfaceProps = enumCreator(Object.values(surfaceValues), "surface", String,
124
124
 
125
125
  // components/Footer/src/Footer.ts
126
126
  import {
127
- containerPaddingValues,
128
- containerPaddingXProps,
129
- containerPaddingYProps,
130
127
  containerSizeProps,
131
- containerSizeValues
128
+ containerSizeValues,
129
+ paddingBottomProps,
130
+ paddingTopProps
132
131
  } from "../../Container/src/Container.props.js";
133
132
 
134
133
  // components/Footer/src/Footer.css
@@ -303,8 +302,6 @@ class Footer extends Base {
303
302
  super(...arguments);
304
303
  this.surface = surfaceValues.DARK;
305
304
  this.containerSize = containerSizeValues.XXL;
306
- this.containerPaddingX = containerPaddingValues.SM;
307
- this.containerPaddingY = containerPaddingValues.LG;
308
305
  }
309
306
  static styles = [Base.styles, Footer_default];
310
307
  updated(changedProperties) {
@@ -316,8 +313,9 @@ class Footer extends Base {
316
313
  <footer class="${classNames()}">
317
314
  <dsgn-container
318
315
  size="${this.containerSize}"
319
- padding-x="${this.containerPaddingX}"
320
- padding-y="${this.containerPaddingY}"
316
+ section
317
+ .paddingTop=${this.paddingTop}
318
+ .paddingBottom=${this.paddingBottom}
321
319
  >
322
320
  <div class="${topClasses()}">
323
321
  <div class="${logoClasses()}">
@@ -350,11 +348,11 @@ __legacyDecorateClassTS([
350
348
  property({ ...containerSizeProps, attribute: "container-size" })
351
349
  ], Footer.prototype, "containerSize", undefined);
352
350
  __legacyDecorateClassTS([
353
- property({ ...containerPaddingXProps })
354
- ], Footer.prototype, "containerPaddingX", undefined);
351
+ property({ ...paddingTopProps })
352
+ ], Footer.prototype, "paddingTop", undefined);
355
353
  __legacyDecorateClassTS([
356
- property({ ...containerPaddingYProps })
357
- ], Footer.prototype, "containerPaddingY", undefined);
354
+ property({ ...paddingBottomProps })
355
+ ], Footer.prototype, "paddingBottom", undefined);
358
356
  defineElement("dsgn-footer", Footer);
359
357
  export {
360
358
  Footer
@@ -6,6 +6,7 @@ import '../../HeadingBlock/src/HeadingBlock.js';
6
6
  import { type CSSResultGroup } from 'lit';
7
7
  import { Base } from '../../../common/Base/Base.js';
8
8
  import { type SurfaceType } from '../../../common/props/surface/surface.props.js';
9
+ import { type SectionSpaceType } from '../../Container/src/Container.props.js';
9
10
  import { type HeroContentAlignType, type HeroLayoutType, type HeroMinHeightType } from './Hero.props.js';
10
11
  /**
11
12
  * @slot content - Primary hero content.
@@ -32,6 +33,10 @@ export declare class Hero extends Base {
32
33
  * Has no effect on asset-right / asset-left / asset-background layouts.
33
34
  */
34
35
  contentAlign: HeroContentAlignType;
36
+ /** Space above the section. Unset follows the inherited section space. */
37
+ paddingTop?: SectionSpaceType;
38
+ /** Space below the section. Unset follows the inherited section space. */
39
+ paddingBottom?: SectionSpaceType;
35
40
  updated(changedProperties: Map<string | number | symbol, unknown>): void;
36
41
  render(): import("lit").TemplateResult<1>;
37
42
  }
@@ -126,7 +126,11 @@ var surfaceValues = {
126
126
  var surfaceProps = enumCreator(Object.values(surfaceValues), "surface", String, { reflect: true });
127
127
 
128
128
  // components/Hero/src/Hero.ts
129
- import { containerSizeValues } from "../../Container/src/Container.props.js";
129
+ import {
130
+ containerSizeValues,
131
+ paddingBottomProps,
132
+ paddingTopProps
133
+ } from "../../Container/src/Container.props.js";
130
134
  import {
131
135
  gridAlignValues,
132
136
  gridColsValues,
@@ -399,8 +403,9 @@ var overlayClassNames = () => {
399
403
  var featuresClassNames = () => {
400
404
  return clsx_default("mt-14", "pb-6", "relative", "z-10");
401
405
  };
406
+ var featuresTypographyClassNames = () => clsx_default("font-mono", "text-xs", "text-text-tertiary", "tracking-[0.02em]", "uppercase");
402
407
  var featuresContentClassNames = (layout, contentAlign) => {
403
- return clsx_default("flex", "gap-10", "flex-wrap", "font-mono", "text-xs", "text-text-tertiary", "tracking-[0.02em]", "uppercase", layout === "centered" && contentAlign === "center" && "justify-center");
408
+ return clsx_default("flex", "gap-10", "flex-wrap", featuresTypographyClassNames(), layout === "centered" && contentAlign === "center" && "justify-center");
404
409
  };
405
410
  var centeredFormClassNames = (contentAlign) => {
406
411
  return clsx_default("flex", "w-full", contentAlign === "center" ? "justify-center" : "justify-start");
@@ -430,7 +435,12 @@ class Hero extends Base {
430
435
  </div>
431
436
  </div>
432
437
  <div class="${overlayClassNames()}"></div>
433
- <dsgn-container size="${containerSizeValues.XXL}">
438
+ <dsgn-container
439
+ size="${containerSizeValues.XXL}"
440
+ section
441
+ .paddingTop=${this.paddingTop}
442
+ .paddingBottom=${this.paddingBottom}
443
+ >
434
444
  <div class="${backgroundInnerClassNames()}">
435
445
  <slot name="content"></slot>
436
446
  <slot name="form"></slot>
@@ -447,7 +457,12 @@ class Hero extends Base {
447
457
  if (this.layout === heroLayoutValues.CENTERED) {
448
458
  return html2`
449
459
  <div class="${wrapperClassNames(this.layout, this.minHeight)}">
450
- <dsgn-container size="${containerSizeValues.XXL}">
460
+ <dsgn-container
461
+ size="${containerSizeValues.XXL}"
462
+ section
463
+ .paddingTop=${this.paddingTop}
464
+ .paddingBottom=${this.paddingBottom}
465
+ >
451
466
  <div class="${centeredInnerClassNames()}">
452
467
  <slot name="content"></slot>
453
468
  <div class="${centeredFormClassNames(this.contentAlign)}">
@@ -467,7 +482,12 @@ class Hero extends Base {
467
482
  }
468
483
  return html2`
469
484
  <div class="${wrapperClassNames(this.layout, this.minHeight)}">
470
- <dsgn-container size="${containerSizeValues.XXL}">
485
+ <dsgn-container
486
+ size="${containerSizeValues.XXL}"
487
+ section
488
+ .paddingTop=${this.paddingTop}
489
+ .paddingBottom=${this.paddingBottom}
490
+ >
471
491
  <dsgn-grid
472
492
  .cols=${gridColsValues.EIGHT_FOUR}
473
493
  .gap=${gridGapValues.LG}
@@ -500,6 +520,12 @@ __legacyDecorateClassTS([
500
520
  __legacyDecorateClassTS([
501
521
  property({ ...heroContentAlignProps })
502
522
  ], Hero.prototype, "contentAlign", undefined);
523
+ __legacyDecorateClassTS([
524
+ property({ ...paddingTopProps })
525
+ ], Hero.prototype, "paddingTop", undefined);
526
+ __legacyDecorateClassTS([
527
+ property({ ...paddingBottomProps })
528
+ ], Hero.prototype, "paddingBottom", undefined);
503
529
  defineElement("dsgn-hero", Hero);
504
530
  export {
505
531
  Hero
@@ -6,5 +6,6 @@ export declare const assetClassNames: (layout: HeroLayoutType) => string;
6
6
  export declare const assetInnerClassNames: (layout: HeroLayoutType) => string;
7
7
  export declare const overlayClassNames: () => string;
8
8
  export declare const featuresClassNames: () => string;
9
+ export declare const featuresTypographyClassNames: () => string;
9
10
  export declare const featuresContentClassNames: (layout?: HeroLayoutType, contentAlign?: HeroContentAlignType) => string;
10
11
  export declare const centeredFormClassNames: (contentAlign?: HeroContentAlignType) => string;
@@ -125,10 +125,7 @@ var surfaceValues = {
125
125
  var surfaceProps = enumCreator(Object.values(surfaceValues), "surface", String, { reflect: true });
126
126
 
127
127
  // components/Nav/src/Nav.ts
128
- import {
129
- containerPaddingValues,
130
- containerSizeValues
131
- } from "../../Container/src/Container.props.js";
128
+ import { containerSizeValues } from "../../Container/src/Container.props.js";
132
129
  // components/Icon/src/icons/menu.ts
133
130
  import { svg } from "lit";
134
131
  var menu = svg`<line x1="4" x2="20" y1="12" y2="12" /><line x1="4" x2="20" y1="6" y2="6" /><line x1="4" x2="20" y1="18" y2="18" />`;
@@ -672,11 +669,7 @@ class Nav extends Base {
672
669
  render() {
673
670
  return html2`
674
671
  <nav class="${classNames(this.transparent)}">
675
- <dsgn-container
676
- size="${containerSizeValues.XXL}"
677
- padding-x="${containerPaddingValues.SM}"
678
- padding-y="${containerPaddingValues.NONE}"
679
- >
672
+ <dsgn-container size="${containerSizeValues.XXL}">
680
673
  <div class="${innerClasses()}">
681
674
  <div class="${logoClasses()}">
682
675
  <slot name="logo"></slot>