dap-design-system 0.30.5 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dds.d.ts CHANGED
@@ -2906,6 +2906,56 @@ export declare class DapDSRadioGroup extends GenericFormElement {
2906
2906
  private _renderFeedback;
2907
2907
  }
2908
2908
 
2909
+ /**
2910
+ * `dap-ds-rating`
2911
+ * @summary Rating is a component that allows users to rate a product or service.
2912
+ * @element dap-ds-rating
2913
+ * @title - Rating
2914
+ *
2915
+ * @event dds-change - Event fired when the rating value changes.
2916
+ *
2917
+ * @csspart base - The main rating container.
2918
+ * @csspart star - The star element.
2919
+ * @csspart stars-container - The container of the stars.
2920
+ * @csspart icon - The icon of the star.
2921
+ */
2922
+ export declare class DapDSRating extends GenericFormElement {
2923
+ /** Reference to the live region for screen reader announcements */
2924
+ private _liveRegion;
2925
+ constructor();
2926
+ static styles: CSSResult;
2927
+ /** The label of the rating */
2928
+ label: string;
2929
+ /** The maximum number of stars */
2930
+ max: number;
2931
+ private _ratingContainer;
2932
+ private _hasFocus;
2933
+ private _hoverValue;
2934
+ private _uniqueId;
2935
+ connectedCallback(): void;
2936
+ disconnectedCallback(): void;
2937
+ firstUpdated(): void;
2938
+ _handleContainerFocus: () => void;
2939
+ _handleContainerBlur: () => void;
2940
+ _handleContainerKeyDown: (event: KeyboardEvent) => void;
2941
+ /**
2942
+ * Handle keyboard events for the entire component
2943
+ * This is a backup to catch keyboard events if they bubble up
2944
+ */
2945
+ _handleKeyDown: (event: KeyboardEvent) => void;
2946
+ _incrementRating(): void;
2947
+ _decrementRating(): void;
2948
+ _setRating(value: number): void;
2949
+ /**
2950
+ * Announce the current rating to screen readers
2951
+ */
2952
+ _announceRating(): void;
2953
+ _handleStarClick(value: number): void;
2954
+ _handleStarHover(value: number): void;
2955
+ _handleStarLeave(): void;
2956
+ render(): TemplateResult_2;
2957
+ }
2958
+
2909
2959
  /**
2910
2960
  * `dap-ds-search`
2911
2961
  * @summary A select is a form element that allows the user to select one option from a set.
@@ -4136,7 +4186,7 @@ declare interface LabelableElementInterface {
4136
4186
  optionalLabel: string;
4137
4187
  subtle: boolean;
4138
4188
  tooltipAriaLabel: string;
4139
- renderLabel(content?: unknown): unknown;
4189
+ renderLabel(id?: string, content?: unknown): unknown;
4140
4190
  }
4141
4191
 
4142
4192
  declare const LabeledChoiceElement: {
@@ -5228,6 +5278,38 @@ export declare class SystemSearchLine extends DdsElement {
5228
5278
  render(): TemplateResult_2;
5229
5279
  }
5230
5280
 
5281
+ /**
5282
+ * `dap-ds-icon-star-fill`
5283
+ * @summary An icon
5284
+ * @element dap-ds-icon-star-fill
5285
+ * @title - SystemStarFill
5286
+ * @group icon
5287
+ * @icontype system
5288
+ *
5289
+ * @attribute {number} size - (optional) The width and height in pixels
5290
+ * @attribute {boolean} selected - (optional) Sets the icon color via the `fill` attribute
5291
+ * @attribute {boolean} decorative - (optional) If `true` the SVG element will get `aria-hidden="true"`
5292
+ * @attribute {string} accessibilityTitle - (optional) When using the icon standalone, make it meaningful for accessibility
5293
+ * @attribute {boolean} focusable - (optional) If `true` the icon can receive focus
5294
+ *
5295
+ * @csspart base - The main icon container.
5296
+ */
5297
+ export declare class SystemStarFill extends DdsElement {
5298
+ /** (optional) The width and height in pixels */
5299
+ size?: number | undefined;
5300
+ /** (optional) Sets the icon color via the `fill` attribute */
5301
+ selected?: boolean;
5302
+ /** (optional) If `true` the SVG element will get `aria-hidden="true"` */
5303
+ decorative?: boolean;
5304
+ /** (optional) When using the icon standalone, make it meaningful for accessibility */
5305
+ accessibilityTitle?: string;
5306
+ /** (optional) If `true` the icon can receive focus */
5307
+ focusable?: boolean;
5308
+ static styles: CSSResult;
5309
+ protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
5310
+ render(): TemplateResult_2;
5311
+ }
5312
+
5231
5313
  /**
5232
5314
  * `dap-ds-icon-subtract-line`
5233
5315
  * @summary An icon
@@ -6119,6 +6201,13 @@ declare global {
6119
6201
  }
6120
6202
 
6121
6203
 
6204
+ declare global {
6205
+ interface HTMLElementTagNameMap {
6206
+ 'dap-ds-icon-star-fill': SystemStarFill;
6207
+ }
6208
+ }
6209
+
6210
+
6122
6211
  declare global {
6123
6212
  interface HTMLElementTagNameMap {
6124
6213
  'dap-ds-icon-subtract-line': SystemSubtractLine;
@@ -6231,6 +6320,13 @@ declare global {
6231
6320
  }
6232
6321
 
6233
6322
 
6323
+ declare global {
6324
+ interface HTMLElementTagNameMap {
6325
+ 'dap-ds-rating': DapDSRating;
6326
+ }
6327
+ }
6328
+
6329
+
6234
6330
  declare global {
6235
6331
  interface HTMLElementTagNameMap {
6236
6332
  'dap-ds-search': DapDSSearch;