@ethlete/components 1.0.0-next.106 → 1.0.0-next.108

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/components",
3
- "version": "1.0.0-next.106",
3
+ "version": "1.0.0-next.108",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ethlete-io/ethdk",
@@ -59,17 +59,19 @@
59
59
  display: block;
60
60
  color: var(--et-surface-text, CanvasText);
61
61
  border-block-end: 1px solid var(--_et-accordion-border-color);
62
+ }
62
63
 
63
- /* The hover lives on the trigger and the border on the host, so this has to reach back up with
64
- `:has()` - moving the rule onto `.et-accordion-trigger` would silently stop it applying. */
65
- @media (hover: hover) {
66
- &:has(.et-accordion-trigger:hover:not([aria-disabled='true'])) {
67
- --_et-accordion-border-color: color-mix(
68
- in srgb,
69
- var(--et-surface-tint, var(--et-surface-text, gray)) 35%,
70
- var(--et-surface-border, rgb(128 128 128 / 0.25))
71
- );
72
- }
64
+ @media (hover: hover) {
65
+ .et-accordion:not([data-open]):has(
66
+ > .et-accordion-heading > .et-accordion-trigger:not([aria-disabled='true']):hover
67
+ ),
68
+ .et-accordion:has(
69
+ + .et-accordion:not([data-open]) > .et-accordion-heading > .et-accordion-trigger:not([aria-disabled='true']):hover
70
+ ) {
71
+ --_et-accordion-border-color: var(
72
+ --et-accordion-border-hover-color,
73
+ var(--et-surface-border, rgb(128 128 128 / 0.25))
74
+ );
73
75
  }
74
76
  }
75
77
 
@@ -4,7 +4,7 @@
4
4
  align-items: center;
5
5
  box-sizing: border-box;
6
6
  block-size: 100%;
7
- padding-inline: 8px;
7
+ padding-inline-end: 8px;
8
8
  font-size: 16px;
9
9
  font-weight: 700;
10
10
  line-height: 1.3;
@@ -48,8 +48,6 @@
48
48
  .et-bracket-section-title-sticky {
49
49
  position: sticky;
50
50
  inset-inline-start: 0;
51
- box-sizing: border-box;
52
- padding-inline-start: var(--et-scrollable-start-fade-size, 0px);
53
51
  inline-size: max-content;
54
52
  max-inline-size: 100%;
55
53
  block-size: 100%;
@@ -37,6 +37,12 @@
37
37
  initial-value: 12px;
38
38
  }
39
39
 
40
+ @property --et-carousel-control-icon-size {
41
+ syntax: '<length>';
42
+ inherits: true;
43
+ initial-value: 14px;
44
+ }
45
+
40
46
  .et-carousel {
41
47
  display: flex;
42
48
  flex-direction: column;
@@ -146,9 +152,10 @@
146
152
  }
147
153
  }
148
154
 
149
- .et-carousel-control-icon {
150
- inline-size: 14px;
151
- block-size: 14px;
155
+ .et-carousel .et-carousel-control .et-icon-button-icon .et-carousel-control-icon {
156
+ inline-size: var(--et-carousel-control-icon-size);
157
+ block-size: var(--et-carousel-control-icon-size);
158
+ flex-shrink: 0;
152
159
 
153
160
  &:where(.et-carousel-control-icon--previous) {
154
161
  rotate: -90deg;
@@ -48,17 +48,20 @@
48
48
  #000 calc(100% - var(--_et-scrollable-mask-end)),
49
49
  transparent 100%
50
50
  ),
51
- linear-gradient(#000 0 0), linear-gradient(#000 0 0), linear-gradient(#000 0 0);
51
+ linear-gradient(#000 0 0), linear-gradient(#000 0 0), linear-gradient(#000 0 0),
52
+ var(--_et-scrollable-mask-hole-image, linear-gradient(transparent 0 0));
52
53
  mask-size:
53
54
  100% calc(100% - var(--_et-scrollable-scrollbar-size, 0px)),
54
55
  100% var(--_et-scrollable-scrollbar-size, 0px),
55
56
  var(--et-scrollable-mask-inset-start, 0px) 100%,
56
- var(--et-scrollable-mask-inset-end, 0px) 100%;
57
+ var(--et-scrollable-mask-inset-end, 0px) 100%,
58
+ var(--_et-scrollable-mask-hole-size, 0px 0px);
57
59
  mask-position:
58
60
  left top,
59
61
  left bottom,
60
62
  left top,
61
- right top;
63
+ right top,
64
+ var(--_et-scrollable-mask-hole-position, 0px 0px);
62
65
  mask-repeat: no-repeat;
63
66
 
64
67
  &:dir(rtl) {
@@ -70,12 +73,14 @@
70
73
  #000 calc(100% - var(--_et-scrollable-mask-end)),
71
74
  transparent 100%
72
75
  ),
73
- linear-gradient(#000 0 0), linear-gradient(#000 0 0), linear-gradient(#000 0 0);
76
+ linear-gradient(#000 0 0), linear-gradient(#000 0 0), linear-gradient(#000 0 0),
77
+ var(--_et-scrollable-mask-hole-image, linear-gradient(transparent 0 0));
74
78
  mask-position:
75
79
  right top,
76
80
  right bottom,
77
81
  right top,
78
- left top;
82
+ left top,
83
+ var(--_et-scrollable-mask-hole-position, 0px 0px);
79
84
  }
80
85
  }
81
86
 
@@ -93,24 +98,28 @@
93
98
  #000 calc(100% - var(--_et-scrollable-mask-end)),
94
99
  transparent 100%
95
100
  ),
96
- linear-gradient(#000 0 0), linear-gradient(#000 0 0), linear-gradient(#000 0 0);
101
+ linear-gradient(#000 0 0), linear-gradient(#000 0 0), linear-gradient(#000 0 0),
102
+ var(--_et-scrollable-mask-hole-image, linear-gradient(transparent 0 0));
97
103
  mask-size:
98
104
  calc(100% - var(--_et-scrollable-scrollbar-size, 0px)) 100%,
99
105
  var(--_et-scrollable-scrollbar-size, 0px) 100%,
100
106
  100% var(--et-scrollable-mask-inset-start, 0px),
101
- 100% var(--et-scrollable-mask-inset-end, 0px);
107
+ 100% var(--et-scrollable-mask-inset-end, 0px),
108
+ var(--_et-scrollable-mask-hole-size, 0px 0px);
102
109
  mask-position:
103
110
  left top,
104
111
  right top,
105
112
  left top,
106
- left bottom;
113
+ left bottom,
114
+ var(--_et-scrollable-mask-hole-position, 0px 0px);
107
115
 
108
116
  &:dir(rtl) {
109
117
  mask-position:
110
118
  right top,
111
119
  left top,
112
120
  right top,
113
- right bottom;
121
+ right bottom,
122
+ var(--_et-scrollable-mask-hole-position, 0px 0px);
114
123
  }
115
124
  }
116
125
 
@@ -213,12 +213,15 @@
213
213
  .et-tab-group__trigger:not(.et-tab-group__trigger--active):not(:disabled):active,
214
214
  .et-nav-tab-link:not(.et-nav-tab-link--active):not(.et-nav-tab-link--disabled):active {
215
215
  color: var(
216
- --et-tab-hover-color,
216
+ --et-tab-pressed-color,
217
217
  var(
218
- --et-tab-inactive-color,
218
+ --et-tab-hover-color,
219
219
  var(
220
- --et-surface-control-text-active,
221
- var(--et-surface-control-text-hover, var(--et-surface-control-text, inherit))
220
+ --et-tab-inactive-color,
221
+ var(
222
+ --et-surface-control-text-active,
223
+ var(--et-surface-control-text-hover, var(--et-surface-control-text, inherit))
224
+ )
222
225
  )
223
226
  )
224
227
  );
@@ -5806,9 +5806,30 @@ export declare class ScrollableLoadingTemplateDirective {
5806
5806
  };
5807
5807
  }, {}, never, never, true, never>;
5808
5808
  }
5809
+ /**
5810
+ * Keeps the box of this element out of the scrollable's edge masks, so a sticky child stays fully
5811
+ * visible at the edge while the content around it still fades. Put it on a descendant of `et-scrollable`.
5812
+ */
5813
+ export declare class ScrollableMaskHoleDirective {
5814
+ private scrollable;
5815
+ private element;
5816
+ enabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
5817
+ private dimensions;
5818
+ constructor();
5819
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollableMaskHoleDirective, never>;
5820
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollableMaskHoleDirective, "[etScrollableMaskHole]", never, {
5821
+ "enabled": {
5822
+ "alias": "etScrollableMaskHole";
5823
+ "required": false;
5824
+ "isSignal": true;
5825
+ };
5826
+ }, {}, never, never, true, never>;
5827
+ }
5809
5828
  export declare class ScrollableMasksComponent {
5810
5829
  private scrollable;
5830
+ private renderer;
5811
5831
  constructor();
5832
+ private writeMaskHoles;
5812
5833
  static ɵfac: i0.ɵɵFactoryDeclaration<ScrollableMasksComponent, never>;
5813
5834
  static ɵcmp: i0.ɵɵComponentDeclaration<ScrollableMasksComponent, "et-scrollable-masks, [et-scrollable-masks]", never, {}, {}, never, never, true, never>;
5814
5835
  }
@@ -5967,10 +5988,10 @@ export declare class ScrollableComponent {
5967
5988
  }
5968
5989
  /**
5969
5990
  * The base scrollable: the track, its edge masks, the loading template and the active-child /
5970
- * ignore-child markers. Deliberately lean - the chrome and the gestures ship as their own imports
5991
+ * ignore-child / mask-hole markers. Deliberately lean - the chrome and the gestures ship as their own imports
5971
5992
  * arrays, so a track you only scroll never pulls in the buttons' icon button or the drag primitives.
5972
5993
  */
5973
- export declare const SCROLLABLE_IMPORTS: readonly [typeof ScrollableComponent, typeof ScrollableActiveChildDirective, typeof ScrollableIgnoreChildDirective, typeof ScrollableLoadingTemplateDirective];
5994
+ export declare const SCROLLABLE_IMPORTS: readonly [typeof ScrollableComponent, typeof ScrollableActiveChildDirective, typeof ScrollableIgnoreChildDirective, typeof ScrollableLoadingTemplateDirective, typeof ScrollableMaskHoleDirective];
5974
5995
  /**
5975
5996
  * The scrollable's decorative chrome, applied on the `<et-scrollable>` itself: `etScrollableButtons` for
5976
5997
  * the previous/next buttons, `etScrollableNavigation` for the dots. Pulls in the icon button (and with it
@@ -6501,6 +6522,8 @@ export declare class CarouselComponent {
6501
6522
  autoplay: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
6502
6523
  /** Render the previous/next controls. @default true */
6503
6524
  showControls: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
6525
+ /** Registered icon name for the previous and next controls. Use artwork that points up. */
6526
+ controlIcon: import("@angular/core").InputSignal<string>;
6504
6527
  /** Render the slide dots, which double as the autoplay progress indicator. @default true */
6505
6528
  showDots: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
6506
6529
  /**
@@ -6546,6 +6569,11 @@ export declare class CarouselComponent {
6546
6569
  "required": false;
6547
6570
  "isSignal": true;
6548
6571
  };
6572
+ "controlIcon": {
6573
+ "alias": "controlIcon";
6574
+ "required": false;
6575
+ "isSignal": true;
6576
+ };
6549
6577
  "showDots": {
6550
6578
  "alias": "showDots";
6551
6579
  "required": false;
@@ -35936,6 +35964,8 @@ export declare class TabBarDirective {
35936
35964
  * per breakpoint; other `etScrollableButtons` options are accepted too. Wins over `provideScrollableConfig`.
35937
35965
  */
35938
35966
  scrollableButtons: import("@angular/core").InputSignal<boolean | ScrollableButtonsConfig | undefined>;
35967
+ /** Fades the bar's edges while it can scroll there, like a plain `<et-scrollable>`. */
35968
+ renderMasks: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
35939
35969
  private registeredTriggers;
35940
35970
  focusedIndex: import("@angular/core").WritableSignal<number>;
35941
35971
  selectedIndex: import("@angular/core").WritableSignal<number>;
@@ -35989,6 +36019,11 @@ export declare class TabBarDirective {
35989
36019
  "required": false;
35990
36020
  "isSignal": true;
35991
36021
  };
36022
+ "renderMasks": {
36023
+ "alias": "renderMasks";
36024
+ "required": false;
36025
+ "isSignal": true;
36026
+ };
35992
36027
  }, {}, never, never, true, never>;
35993
36028
  }
35994
36029
  export declare const TAB_BAR_TOKEN: InjectionToken<TabBarDirective>;
@@ -36126,6 +36161,7 @@ export declare class NavTabsComponent {
36126
36161
  "activeUnderline": "activeUnderline";
36127
36162
  "underlineWidth": "underlineWidth";
36128
36163
  "scrollableButtons": "scrollableButtons";
36164
+ "renderMasks": "renderMasks";
36129
36165
  };
36130
36166
  outputs: {};
36131
36167
  }, {
@@ -36323,6 +36359,7 @@ export declare class TabGroupComponent {
36323
36359
  "activeUnderline": "activeUnderline";
36324
36360
  "underlineWidth": "underlineWidth";
36325
36361
  "scrollableButtons": "scrollableButtons";
36362
+ "renderMasks": "renderMasks";
36326
36363
  };
36327
36364
  outputs: {};
36328
36365
  }, {
@@ -37557,5 +37594,5 @@ export declare const provideUnsavedChangesLabels: (labels: import("@ethlete/core
37557
37594
  export declare const injectUnsavedChangesLabels: () => import("@angular/core").Signal<UnsavedChangesLabels>;
37558
37595
  export declare const UNSAVED_CHANGES_LABELS: import("@angular/core").InjectionToken<import("@ethlete/core").LabelsSource<UnsavedChangesLabels>>;
37559
37596
  /** The version of `@ethlete/components` this build was cut from. */
37560
- export declare const COMPONENTS_VERSION = "1.0.0-next.106";
37597
+ export declare const COMPONENTS_VERSION = "1.0.0-next.108";
37561
37598
  export { type AlertDialogComponentSlot, type AlertDialogSlot, type AlertDialogTemplateSlot, type AppointmentTreeNode, BRACKET_DATA_LAYOUT, BRACKET_ERROR_CODES, BRACKET_FINAL_ALIGNMENT, BRACKET_ROUND_MIRROR_TYPE, BRACKET_SECTION_KEY, BRACKET_SWISS_GROUP_COLOR_TYPE, type Bracket, type BracketByeSlotSource, type BracketComponents, type BracketContinueComponent, type BracketDataLayout, type BracketDataSource, type BracketDrawing, type BracketEdge, type BracketExternalSlotSource, type BracketFinalAlignment, type BracketGradient, type BracketGradientStop, type BracketGridSection, type BracketLayoutSettings, BracketMap, type BracketMatch, type BracketMatchComponent, type BracketMatchFactor, type BracketMatchId, type BracketMatchInputs, type BracketMatchOutcomeSlotSource, type BracketMatchParticipant, type BracketMatchPosition, type BracketMatchRelation, type BracketMatchRelationNone, type BracketMatchRelationNothingToOne, type BracketMatchRelationOneToNothing, type BracketMatchRelationOneToOne, type BracketMatchRelationTwoToNothing, type BracketMatchRelationTwoToOne, type BracketMatchShortId, type BracketMatchSlot, type BracketMatchSource, type BracketMatchStatus, type BracketParticipant, type BracketParticipantMatch, type BracketPickMigration, type BracketPickMigrationOptions, type BracketPickSet, type BracketRect, type BracketRound, type BracketRoundHeaderComponent, type BracketRoundId, type BracketRoundMapWithSwissData, type BracketRoundMirrorType, type BracketRoundPosition, type BracketRoundRelation, type BracketRoundRelationNone, type BracketRoundRelationNothingToOne, type BracketRoundRelationOneToNothing, type BracketRoundRelationOneToOne, type BracketRoundRelationTwoToNothing, type BracketRoundRelationTwoToOne, type BracketRoundShortId, type BracketRoundSource, type BracketRoundSwissData, type BracketRoundSwissGroup, type BracketRoundSwissGroupId, type BracketRoundSwissGroupMap, type BracketRoundType, BracketRuntimeError, type BracketSectionKey, type BracketSectionTitleComponent, type BracketSeedSlotSource, type BracketSlotResolutionPolicy, type BracketSlotSource, type BracketSlotSourceKind, type BracketStandingRankSide, type BracketStandingRankSlotSource, type BracketSwissBucketSlotSource, type BracketSwissColors, type BracketSwissGroupColorType, type BracketWarning, COMMON_BRACKET_ROUND_TYPE, type CalendarBandPosition, type CalendarInterval, type CalendarPrecision, type CalendarSelectionFlags, type CalendarView, type CalendarWeekStartsOn, type CascaderCompareWith, type CascaderDataSource, type CascaderNode, type CommonBracketRoundType, type ComputedBracketGrid, type CreateBracketGridConfig, type CreateBracketOptions, type CreateGridAdapterOptions, DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE, type DateRangeSide, type DateRangeSide as TimeRangeInputSide, type DateRangeValue, type DateRangeValue as DateTimeRangeValue, type DateRangeValue as TimeRangeValue, type DoubleEliminationBracketRoundType, type DropzoneCropConfig, type DropzoneCropCorner, type DropzoneCropRect, type DropzoneCropShape, type DurationFormatSpec, type DurationSegment, type DurationUnit, GROUP_BRACKET_ROUND_TYPE, type GridAdapter, type GridAdapterBreakpoints, type GridConfig, type GroupBracketRoundType, type MatchParticipantId, type MatchParticipantShortId, type MatchParticipantSide, type ParticipantMatchResult, type PlaceholderBracketShape, type RichTextEditorHeadingLevel, type RichTextEditorImageFailure, type RichTextEditorImageFailureReason, type RichTextEditorImageUpload, type RichTextEditorImageUploadContext, type RichTextEditorImageUploadFn, type RichTextEditorTokenChip, type RichTextEditorTokenCodec, SINGLE_ELIMINATION_BRACKET_ROUND_TYPE, SWISS_BRACKET_ROUND_TYPE, type SchedulerAgendaDay, type SchedulerMonthDayCell, type SchedulerTimeGridAllDayEntry, type SchedulerTimeGridBlock, type SchedulerTimeGridDay, type SchedulerTimeGridSegment, type ScrollableActiveChildRef, type ScrollableButtonPosition, type ScrollableButtonsConfig, type ScrollableButtonsDefaults, type ScrollableChrome, type ScrollableChromeSlot, type ScrollableConfig, type ScrollableDirection, type ScrollableIntersectionChange, type ScrollableItemSize, type ScrollableLoadingTemplatePosition, type ScrollableLoadingTemplateRef, type ScrollableMaskVariant, type ScrollableNavigation, type ScrollableNavigationConfig, type ScrollableNavigationItem, type ScrollableResponsive, type ScrollableScrollMode, type ScrollableScrollOrigin, type ScrollableScrollState, type ScrollbarGeometry, type ScrollbarOrientation, type ScrollbarTarget, type SerializeOptions, type SingleEliminationBracketRoundType, type StandingPick, type StandingPickOutcome, type SwissBracketRoundType, TOURNAMENT_MODE, type TournamentMode, bracketSlot, createBracket, createPlaceholderBracketSource, injectRichTextEditorTools, isBracketSlotPredictable, migrateBracketPicks, resolveBracketSlot, standingRankSides, swapStandingRank, validateBracketSource };