dap-design-system 0.55.6 → 0.56.1
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/components/radio-button/radio-button.component.d.ts +8 -21
- package/dist/components/typography/typography.component.d.ts +2 -2
- package/dist/{components-BBr8It7c.js → components-DbfOkrus.js} +1054 -1060
- package/dist/components-DbfOkrus.js.map +1 -0
- package/dist/components.js +1 -1
- package/dist/dds.js +1 -1
- package/dist/manifest/types/vue/index.d.ts +212 -206
- package/dist/manifest/vscode.html-custom-data.json +192 -177
- package/dist/manifest/web-types.json +362 -341
- package/dist/react/index.d.ts +8 -8
- package/dist/react-types.ts +8 -8
- package/dist/react.js +76 -76
- package/dist/react.js.map +1 -1
- package/dist/scss/mixins.scss +31 -0
- package/dist/scss/variables-azure.scss +890 -0
- package/dist/scss/variables-cold-grey.scss +890 -0
- package/dist/scss/variables-dark.scss +890 -0
- package/dist/scss/variables-high-contrast.scss +890 -0
- package/dist/scss/variables-light-oklch.scss +779 -0
- package/dist/scss/variables-light.scss +890 -0
- package/dist/scss/variables-teal.scss +890 -0
- package/dist/scss/variables-violet.scss +890 -0
- package/package.json +2 -1
- package/dist/components-BBr8It7c.js.map +0 -1
|
@@ -79,6 +79,10 @@ export default class DapDSRadioButton extends LabeledChoiceElement {
|
|
|
79
79
|
private readonly input;
|
|
80
80
|
/** Whether the radio button is focusable */
|
|
81
81
|
focusable: boolean;
|
|
82
|
+
/** Position in set — set by radio-group for correct screen reader counting */
|
|
83
|
+
posInSet?: number;
|
|
84
|
+
/** Set size — set by radio-group for correct screen reader counting */
|
|
85
|
+
setSize?: number;
|
|
82
86
|
/** Whether the radio button should prevent the default action */
|
|
83
87
|
preventDefault: boolean;
|
|
84
88
|
/** Whether the radio button is readonly */
|
|
@@ -91,12 +95,10 @@ export default class DapDSRadioButton extends LabeledChoiceElement {
|
|
|
91
95
|
type: 'normal' | 'background';
|
|
92
96
|
static readonly styles: import('lit').CSSResult;
|
|
93
97
|
constructor();
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
*/
|
|
99
|
-
private getAriaDescribedBy;
|
|
98
|
+
connectedCallback(): void;
|
|
99
|
+
disconnectedCallback(): void;
|
|
100
|
+
private _onHostKeydown;
|
|
101
|
+
private _syncHostAria;
|
|
100
102
|
/**
|
|
101
103
|
* Handles click events on the radio button.
|
|
102
104
|
* Manages the checked state and emits change events.
|
|
@@ -110,23 +112,8 @@ export default class DapDSRadioButton extends LabeledChoiceElement {
|
|
|
110
112
|
* @private
|
|
111
113
|
*/
|
|
112
114
|
private handleInput;
|
|
113
|
-
/**
|
|
114
|
-
* Handles keyboard events on the radio button.
|
|
115
|
-
* Provides enhanced keyboard navigation and accessibility.
|
|
116
|
-
* @param {KeyboardEvent} event - The keyboard event
|
|
117
|
-
* @private
|
|
118
|
-
*/
|
|
119
|
-
private handleKeyDown;
|
|
120
115
|
get focusElement(): HTMLInputElement;
|
|
121
|
-
/**
|
|
122
|
-
* Programmatically focuses the radio button input element.
|
|
123
|
-
* @public
|
|
124
|
-
*/
|
|
125
116
|
focus(): void;
|
|
126
|
-
/**
|
|
127
|
-
* Programmatically blurs the radio button input element.
|
|
128
|
-
* @public
|
|
129
|
-
*/
|
|
130
117
|
blur(): void;
|
|
131
118
|
/**
|
|
132
119
|
* Handles invalid events on the radio button input.
|
|
@@ -2,7 +2,7 @@ import { PropertyValueMap } from 'lit';
|
|
|
2
2
|
import { Common, Size } from '../../common/types';
|
|
3
3
|
import { DdsElement } from '../../internal/dds-hu-element';
|
|
4
4
|
export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body' | 'caption' | 'description';
|
|
5
|
-
export type TypographySize = Extract<Size, 'lg' | 'md' | 'sm'> | null | undefined;
|
|
5
|
+
export type TypographySize = Extract<Size, 'lg' | 'md' | 'sm' | 'xs'> | null | undefined;
|
|
6
6
|
type HeadingProps = {
|
|
7
7
|
variant: Extract<TypographyVariant, 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;
|
|
8
8
|
size?: TypographySize;
|
|
@@ -62,7 +62,7 @@ export default class DapDSTypography extends DdsElement implements Common<Typogr
|
|
|
62
62
|
variant: TypographyVariant;
|
|
63
63
|
/**
|
|
64
64
|
* The size of the typography.
|
|
65
|
-
* @type {'sm' | 'md' | 'lg'}
|
|
65
|
+
* @type {'xs' | 'sm' | 'md' | 'lg'}
|
|
66
66
|
*/
|
|
67
67
|
size?: TypographySize;
|
|
68
68
|
/**
|