dap-design-system 0.20.0 → 0.21.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
@@ -1410,6 +1410,7 @@ export declare class DapDSCheckbox extends LabelPositionedFormElement {
1410
1410
  * @property {string} label - The label of the select.
1411
1411
  * @property {string} description - The description of the select.
1412
1412
  * @property {string} tooltip - The tooltip of the select.
1413
+ * @property {'top' | 'right' | 'bottom' | 'left'} tooltipPlacement - The tooltip placement of the input.
1413
1414
  * @property {'xs' | 'sm' | 'sm'} size - The size of the select. Default is 'md'.
1414
1415
  * @property {boolean} disabled - Whether the select is disabled.
1415
1416
  * @property {boolean} required - Whether the select is required.
@@ -1501,6 +1502,7 @@ export declare class DapDSContentSwitcherItem extends DdsElement {
1501
1502
  * @property {string} placeholder - The placeholder of the input.
1502
1503
  * @property {string} description - The description of the input.
1503
1504
  * @property {string} tooltip - The tooltip of the input.
1505
+ * @property {'top' | 'right' | 'bottom' | 'left'} tooltipPlacement - The position of the tooltip. Can be `top`, `right`, `bottom`, or `left`.
1504
1506
  * @property {'success' | 'error'} status - The status of the input. Can be `success` or `error`.
1505
1507
  * @property {'xs' | 'sm' | 'sm'} size - The size of the input. Default is `sm`.
1506
1508
  * @property {string} name - The name of the input.
@@ -1569,6 +1571,7 @@ export declare class DapDSDAPBadge extends DdsElement {
1569
1571
  * @property {boolean} readonly - The readonly state of the datepicker.
1570
1572
  * @property {boolean} autofocus - The autofocus state of the datepicker.
1571
1573
  * @property {string} tooltip - The tooltip of the datepicker.
1574
+ * @property {'top' | 'right' | 'bottom' | 'left'} tooltipPlacement - The tooltip placement of the datepicker.
1572
1575
  * @property {string} feedback - The feedback of the datepicker.
1573
1576
  * @property {'negative' | 'positive' | 'warning'} feedbackType - The feedback type of the datepicker.
1574
1577
  * @property {boolean} optional - The optional state of the datepicker.
@@ -1738,6 +1741,7 @@ declare const DapDSFeedback_base: typeof DdsElement & {
1738
1741
  * @property {string} label - The label for the file input.
1739
1742
  * @property {string} description - The description for the file input.
1740
1743
  * @property {string} tooltip - The tooltip for the file input.
1744
+ * @property {'top' | 'right' | 'bottom' | 'left'} tooltipPlacement - The tooltip placement of the input.
1741
1745
  * @property {boolean} disabled - Whether the file input is disabled.
1742
1746
  * @property { 'xs' | 'sm' | 'lg' } size - The size of the file input.
1743
1747
  * @property {string} feedback - The feedback for the file input.
@@ -2012,6 +2016,7 @@ export declare class DapDSIconButton extends DdsElement {
2012
2016
  * @property {string} placeholder - The placeholder of the input.
2013
2017
  * @property {boolean} loading - The loading state of the input. Default is false.
2014
2018
  * @property {string} tooltip - The tooltip of the input.
2019
+ * @property {'top' | 'right' | 'bottom' | 'left'} tooltipPlacement - The tooltip placement of the input.
2015
2020
  * @property {string} feedback - The feedback of the input.
2016
2021
  * @property {'negative' | 'positive' | 'warning'} feedbackType - The feedback type of the input. Can be `negative`, `positive`, or `warning`.
2017
2022
  * @property {'succes' | 'error'} status - The status of the input. Can be `success` or `error`.
@@ -2070,6 +2075,7 @@ export declare class DapDSInput extends InputBaseElement {
2070
2075
  * @property {string} label - The label of the input group.
2071
2076
  * @property {string} description - The description of the input group.
2072
2077
  * @property {string} tooltip - The tooltip of the input group.
2078
+ * @property {'top' | 'right' | 'bottom' | 'left'} tooltipPlacement - The tooltip placement of the input group.
2073
2079
  * @property {boolean} disabled - Whether the input group is disabled.
2074
2080
  * @property {'xs' | 'sm' | 'lg'} size - The size of the input group. Default is `sm`. Can be `sm` or `lg`.
2075
2081
  * @property {boolean} required - Whether the input group is required.
@@ -2261,6 +2267,7 @@ export declare class DapDSModal extends ModalBaseElement {
2261
2267
  * @property {string} placeholder - The placeholder of the input.
2262
2268
  * @property {string} description - The description of the input.
2263
2269
  * @property {string} tooltip - The tooltip of the input.
2270
+ * @property {'top' | 'right' | 'bottom' | 'left'} tooltipPlacement - The tooltip placement of the input.
2264
2271
  * @property {'success' | 'error'} status - The status of the input. Can be `success` or `error`.
2265
2272
  * @property {'xs' | 'sm' | 'sm'} size - The size of the input. Default is `sm`. Can be `sm` or `lg`.
2266
2273
  * @property {string} name - The name of the input.
@@ -2447,6 +2454,7 @@ export declare class DapDSOverlay extends DdsElement {
2447
2454
  * @property {string} placeholder - The placeholder of the password input.
2448
2455
  * @property {string} description - The description of the password input.
2449
2456
  * @property {string} tooltip - The tooltip of the password input.
2457
+ * @property {'top' | 'right' | 'bottom' | 'left'} tooltipPlacement - The tooltip placement of the input.
2450
2458
  * @property {string} status - The status of the password input. Can be `success` or `error`.
2451
2459
  * @property {'xs' | 'sm' | 'sm'} size - The size of the password input. Default is `sm`.
2452
2460
  * @property {string} name - The name of the password input.
@@ -2601,6 +2609,7 @@ export declare class DapDSRadioButton extends LabelPositionedFormElement {
2601
2609
  * @property {string} label - The label of the radio group.
2602
2610
  * @property {string} description - The description of the radio group.
2603
2611
  * @property {string} tooltip - The tooltip of the radio group.
2612
+ * @property {'top' | 'right' | 'bottom' | 'left'} tooltipPlacement - The tooltip placement of the radio group.
2604
2613
  * @property {string} feedback - The feedback of the radio group.
2605
2614
  * @property {'negative' | 'positive' | 'warning'} feedbackType - The feedback type of the radio group. Can be `negative`, `positive`, or `warning`.
2606
2615
  * @property {boolean} optional - The optional state of the radio group.
@@ -2618,6 +2627,12 @@ export declare class DapDSRadioButton extends LabelPositionedFormElement {
2618
2627
  * @csspart container - The container of the radio group items.
2619
2628
  */
2620
2629
  export declare class DapDSRadioGroup extends GenericFormElement {
2630
+ /** The placement of the tooltip.
2631
+ * @type { 'top' | 'right' | 'bottom' | 'left' }
2632
+ */
2633
+ tooltipPlacement: PopupPlacement;
2634
+ hiddenInput: HTMLInputElement;
2635
+ optionalLabel: string;
2621
2636
  static styles: CSSResult;
2622
2637
  attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
2623
2638
  private _handleSlotChange;
@@ -2717,6 +2732,7 @@ export declare class DapDSSearch extends ComboboxBaseElement {
2717
2732
  * @property {string} label - The label of the select.
2718
2733
  * @property {string} description - The description of the select.
2719
2734
  * @property {string} tooltip - The tooltip of the select.
2735
+ * @property {'top' | 'right' | 'bottom' | 'left'} tooltipPlacement - The tooltip placement of the select.
2720
2736
  * @property {'xs' | 'sm' | 'lg'} size - The size of the select. Default is `sm`.
2721
2737
  * @property {boolean} disabled - Whether the select is disabled.
2722
2738
  * @property {boolean} required - Whether the select is required.
@@ -2797,6 +2813,94 @@ export declare class DapDSSelect extends GenericFormElement {
2797
2813
  render(): TemplateResult_2;
2798
2814
  }
2799
2815
 
2816
+ /**
2817
+ * `dap-ds-sidenav`
2818
+ * @summary Side navigation is a list of links that are used to navigate to different sections of a page.
2819
+ * @element dap-ds-sidenav
2820
+ * @title - Side navigation
2821
+ *
2822
+ * @event dds-item-click - Event fired when the side navigation item is clicked.
2823
+ *
2824
+ * @slot - The content of the side navigation.
2825
+ *
2826
+ * @csspart base - The main side navigation container.
2827
+ * @csspart menu - The menu of the side navigation.
2828
+ */
2829
+ export declare class DapDSSideNav extends DdsElement {
2830
+ /** The label of the side navigation, if aria label is not provided, it will be used as aria label */
2831
+ label: string;
2832
+ /** The active href of the side navigation, to explicitly set the active item, if not provided, it will be set based on the current location */
2833
+ activeHref: string;
2834
+ static styles: CSSResult;
2835
+ protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
2836
+ attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
2837
+ private removeActive;
2838
+ private setActive;
2839
+ render(): TemplateResult_2;
2840
+ }
2841
+
2842
+ /**
2843
+ * `dap-ds-sidenav-group`
2844
+ * @summary Side navigation group
2845
+ * @element dap-ds-sidenav-group
2846
+ * @title - Side navigation group
2847
+ * @group side-navigation
2848
+ *
2849
+ * @event dds-item-click - Event fired when the side navigation item is clicked.
2850
+ *
2851
+ * @slot - The content of the side navigation group.
2852
+ * @slot submenu - The submenu of the side navigation group.
2853
+ * @slot suffix - The suffix of the side navigation group.
2854
+ *
2855
+ * @csspart base - The main side navigation group container.
2856
+ * @csspart title - The title of the side navigation group.
2857
+ * @csspart link - The link of the side navigation group.
2858
+ * @csspart toggle - The toggle button of the side navigation group.
2859
+ * @csspart submenu - The submenu of the side navigation group.
2860
+ */
2861
+ export declare class DapDSSideNavGroup extends DdsElement {
2862
+ /** The href of the side navigation item */
2863
+ href: string;
2864
+ /** Whether the side navigation item is active */
2865
+ active: boolean;
2866
+ /** The spacing of the side navigation item
2867
+ * @type {'top' | 'bottom' | 'both' | 'none'}
2868
+ */
2869
+ spacing: Spacing_2;
2870
+ /** Whether the side navigation group is open */
2871
+ open: boolean;
2872
+ static styles: CSSResult;
2873
+ render(): TemplateResult_2;
2874
+ }
2875
+
2876
+ /**
2877
+ * `dap-ds-sidenav-item`
2878
+ * @summary Side navigation item
2879
+ * @element dap-ds-sidenav-item
2880
+ * @title - Side navigation item
2881
+ * @group side-navigation
2882
+ *
2883
+ * @event dds-item-click - Event fired when the side navigation item is clicked.
2884
+ *
2885
+ * @slot - The content of the side navigation item.
2886
+ * @slot suffix - The suffix of the side navigation item.
2887
+ *
2888
+ * @csspart base - The main side navigation item container.
2889
+ * @csspart link - The link of the side navigation item.
2890
+ */
2891
+ export declare class DapDSSideNavItem extends DdsElement {
2892
+ /** The href of the side navigation item */
2893
+ href: string;
2894
+ /** Whether the side navigation item is active */
2895
+ active: boolean;
2896
+ /** The spacing of the side navigation item
2897
+ * @type {'top' | 'bottom' | 'both' | 'none'}
2898
+ */
2899
+ spacing: Spacing_3;
2900
+ static styles: CSSResult;
2901
+ render(): TemplateResult_2;
2902
+ }
2903
+
2800
2904
  /**
2801
2905
  * `dap-ds-skip-link`
2802
2906
  * @summary A skip link is a link that allows keyboard users to skip to the main content of a page.
@@ -3140,6 +3244,8 @@ export declare class DapDSTableRow extends DdsElement {
3140
3244
  * @property {boolean} disabled - The disabled state of the textarea.
3141
3245
  * @property {number} minlength - The minimum length of the textarea.
3142
3246
  * @property {string} value - The value of the textarea.
3247
+ * @property {string} tooltip - The tooltip of the textarea.
3248
+ * @property {'top' | 'right' | 'bottom' | 'left'} tooltipPlacement - The tooltip placement of the textarea.
3143
3249
  * @property {InputStatus} status - The status of the textarea. Can be `success` or `error`.
3144
3250
  * @property {boolean} readonly - The readonly state of the textarea.
3145
3251
  * @property {boolean} required - The required state of the textarea.
@@ -3433,6 +3539,8 @@ export declare type DdsInputEvent = CustomEvent<Record<PropertyKey, never>>;
3433
3539
 
3434
3540
  export declare type DdsInvalidDateEvent = CustomEvent<Record<PropertyKey, never>>;
3435
3541
 
3542
+ export declare type DdsItemClickEvent = CustomEvent<Record<PropertyKey, never>>;
3543
+
3436
3544
  export declare type DdsKeydownEvent = CustomEvent<Record<PropertyKey, never>>;
3437
3545
 
3438
3546
  export declare type DdsNotAllowedEvent = CustomEvent<Record<PropertyKey, never>>;
@@ -3685,6 +3793,7 @@ declare interface LabelableElementInterface {
3685
3793
  label?: string;
3686
3794
  description?: string;
3687
3795
  tooltip?: string;
3796
+ tooltipPlacement: PopupPlacement;
3688
3797
  feedbackId?: string;
3689
3798
  size: Size;
3690
3799
  required: boolean;
@@ -3833,6 +3942,10 @@ export declare type SnackbarPosition = 'bottom-left' | 'bottom-right' | 'bottom-
3833
3942
 
3834
3943
  export declare type Spacing = 0 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 1000 | 1200 | 1400 | 1600 | 1800 | 2000 | 2400 | 3000 | 4000 | 5000 | 6000;
3835
3944
 
3945
+ declare type Spacing_2 = 'top' | 'bottom' | 'both' | 'none';
3946
+
3947
+ declare type Spacing_3 = 'top' | 'bottom' | 'both' | 'none';
3948
+
3836
3949
  declare type SpinnerVariant = 'neutral' | 'brand' | 'negative' | 'positive' | 'inverted';
3837
3950
 
3838
3951
  /**
@@ -4975,6 +5088,13 @@ declare global {
4975
5088
  }
4976
5089
 
4977
5090
 
5091
+ declare global {
5092
+ interface GlobalEventHandlersEventMap {
5093
+ 'dds-item-click': DdsItemClickEvent;
5094
+ }
5095
+ }
5096
+
5097
+
4978
5098
  declare global {
4979
5099
  interface GlobalEventHandlersEventMap {
4980
5100
  'dds-keydown': DdsKeydownEvent;
@@ -5729,6 +5849,14 @@ declare global {
5729
5849
  }
5730
5850
 
5731
5851
 
5852
+ declare global {
5853
+ interface HTMLElementTagNameMap {
5854
+ 'dap-ds-sidenav': DapDSSideNav;
5855
+ 'dap-ds-sidenav-item': DapDSSideNavItem;
5856
+ }
5857
+ }
5858
+
5859
+
5732
5860
  declare global {
5733
5861
  interface HTMLElementTagNameMap {
5734
5862
  'dap-ds-skip-link': DapDSSkipLink;