dap-design-system 0.53.0 → 0.53.2

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.
@@ -1,7 +1,7 @@
1
1
  import { ButtonVariant } from '../components/button/button.component';
2
2
  import { default as DapDSFileInputListItem, FileListElement } from '../components/file-input/file-input-list-item.component';
3
3
  export type Common<T> = Pick<T, keyof T>;
4
- export type Size = 'lg' | 'md' | 'sm' | 'xs' | 'xxs';
4
+ export type Size = 'lg' | 'md' | 'sm' | 'xs' | 'xxs' | 'xl' | 'xxl';
5
5
  export type CommonSize = Extract<Size, 'xs' | 'sm' | 'lg'>;
6
6
  export type CommonFormElementSize = Extract<Size, 'sm' | 'md' | 'lg'>;
7
7
  export type Layout = 'horizontal' | 'vertical';
@@ -78,6 +78,15 @@ import { GenericFormElement } from '../../internal/mixin/genericFormElement';
78
78
  */
79
79
  export default class DapDSDatePicker extends GenericFormElement {
80
80
  private static nextId;
81
+ /**
82
+ * Property converter for date properties.
83
+ * Converts string attributes (from React) to Dayjs objects.
84
+ * Allows both attribute binding (strings) and property binding (Dayjs objects).
85
+ *
86
+ * Note: When properties are set directly (bypassing attributes), they are normalized
87
+ * in the `updated` lifecycle method via `normalizeDate`.
88
+ */
89
+ private static datePropertyConverter;
81
90
  private readonly inputId;
82
91
  private readonly labelId;
83
92
  private readonly descriptionId;
@@ -1,5 +1,4 @@
1
1
  import { PropertyValueMap } from 'lit';
2
- import { Size } from '../../common/types';
3
2
  import { DdsElement } from '../../internal/dds-hu-element';
4
3
  declare const SpinnerBaseWithSized: typeof DdsElement & {
5
4
  new (...args: any[]): import('../../internal/mixin/sizedMixin').SizedElementInterface;
@@ -30,16 +29,16 @@ export type SpinnerOrientation = 'vertical' | 'horizontal';
30
29
  * @cssprop --dds-spinner-text-spacing - Spacing between spinner and text (default: var(--dds-spacing-400))
31
30
  * @cssprop --dds-spinner-animation-duration - Duration of the spinner animation (default: 1s)
32
31
  *
33
- * @property { 'xxs' | 'xs' | 'sm' | 'md' | 'lg' } size - The size of the spinner. Default is `lg`. See SizedMixin.
32
+ * @property { 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' } size - The size of the spinner. Default is `lg`. See SizedMixin.
34
33
  * @property {string} sizeMap - Responsive size map (e.g. "md:lg"); see SizedMixin.
35
34
  */
36
35
  export default class DapDSSpinner extends SpinnerBaseWithSized {
36
+ constructor();
37
37
  /**
38
38
  * The variant of the spinner.
39
39
  * @type {"neutral" | "brand" | "negative" | "positive" | "inverted"}
40
40
  */
41
41
  variant: SpinnerVariant;
42
- size: Size;
43
42
  /** The size of the spinner in pixels. This overrides the size attribute */
44
43
  staticSize?: number;
45
44
  /** The loading text. */