dap-design-system 0.57.9 → 0.57.11
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/checkbox/checkbox.component.d.ts +1 -0
- package/dist/components/code-puncher/code-puncher.component.d.ts +1 -0
- package/dist/components/copybox-input/copybox-input.component.d.ts +1 -0
- package/dist/components/datepicker/datepicker.component.d.ts +1 -0
- package/dist/components/file-input/file-input.component.d.ts +2 -0
- package/dist/components/form/form-label/form-label.component.d.ts +1 -0
- package/dist/components/form/input-group/input-group.component.d.ts +1 -0
- package/dist/components/form/radio-group/radio-group.component.d.ts +1 -0
- package/dist/components/input/input.component.d.ts +1 -0
- package/dist/components/label/label.component.d.ts +1 -0
- package/dist/components/number-input/number-input.component.d.ts +1 -0
- package/dist/components/password-input/password-input.component.d.ts +1 -0
- package/dist/components/radio-button/radio-button.component.d.ts +1 -0
- package/dist/components/select/select.component.d.ts +1 -0
- package/dist/components/sidenav/sidenav.component.d.ts +18 -0
- package/dist/components/switch/switch.component.d.ts +1 -0
- package/dist/components/textarea/textarea.component.d.ts +1 -0
- package/dist/components/timepicker/timepicker.component.d.ts +1 -0
- package/dist/{components-DM_rlHV7.js → components-CA_k-c0E.js} +2476 -2441
- package/dist/components-CA_k-c0E.js.map +1 -0
- package/dist/components.js +1 -1
- package/dist/components.native.css +21 -21
- package/dist/components.native.css.map +1 -1
- package/dist/dds.js +2 -2
- package/dist/{icon-DiAH7AY5.js → icon-vfk3FBvE.js} +199 -194
- package/dist/{icon-DiAH7AY5.js.map → icon-vfk3FBvE.js.map} +1 -1
- package/dist/icons.js +1 -1
- package/dist/internal/mixin/labelableMixin.d.ts +1 -0
- package/dist/manifest/types/vue/index.d.ts +371 -326
- package/dist/manifest/vscode.html-custom-data.json +193 -188
- package/dist/manifest/web-types.json +534 -434
- package/dist/react/dap-ds-checkbox/index.d.ts +1 -0
- package/dist/react/dap-ds-code-puncher/index.d.ts +1 -0
- package/dist/react/dap-ds-copybox-input/index.d.ts +1 -0
- package/dist/react/dap-ds-datepicker/index.d.ts +1 -0
- package/dist/react/dap-ds-file-input/index.d.ts +2 -0
- package/dist/react/dap-ds-form-label/index.d.ts +1 -0
- package/dist/react/dap-ds-input/index.d.ts +1 -0
- package/dist/react/dap-ds-input-group/index.d.ts +1 -0
- package/dist/react/dap-ds-label/index.d.ts +1 -0
- package/dist/react/dap-ds-number-input/index.d.ts +1 -0
- package/dist/react/dap-ds-password-input/index.d.ts +1 -0
- package/dist/react/dap-ds-radio-button/index.d.ts +1 -0
- package/dist/react/dap-ds-radio-group/index.d.ts +1 -0
- package/dist/react/dap-ds-select/index.d.ts +1 -0
- package/dist/react/dap-ds-switch/index.d.ts +1 -0
- package/dist/react/dap-ds-textarea/index.d.ts +1 -0
- package/dist/react/dap-ds-timepicker/index.d.ts +1 -0
- package/dist/react/index.d.ts +14 -14
- package/dist/react-types.ts +15 -15
- package/dist/react.js +232 -232
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/dist/components-DM_rlHV7.js.map +0 -1
|
@@ -28,6 +28,7 @@ import { LabeledChoiceElement } from '../../internal/mixin/labeledChoiceElement'
|
|
|
28
28
|
* @property {boolean} invalid - The invalid state of the checkbox.
|
|
29
29
|
* @property {boolean} optional - The optional state of the checkbox.
|
|
30
30
|
* @property {string} optionalLabel - The optional label of the checkbox.
|
|
31
|
+
* @property {string} requiredLabel - The required indicator of the checkbox. (default: '*')
|
|
31
32
|
*
|
|
32
33
|
* @csspart base - The main checkbox container.
|
|
33
34
|
* @csspart label - The label of the checkbox.
|
|
@@ -21,6 +21,7 @@ import { GenericFormElement } from '../../internal/mixin/genericFormElement';
|
|
|
21
21
|
* @property {boolean} disabled - Disable all slots. Default is false.
|
|
22
22
|
* @property {boolean} readonly - Read-only state. Default is false.
|
|
23
23
|
* @property {boolean} required - Required for form validation. Default is false.
|
|
24
|
+
* @property {string} requiredLabel - Indicator of required text. (default: '*')
|
|
24
25
|
* @property {string} name - Form element name.
|
|
25
26
|
* @property {string} autocomplete - Autocomplete hint. Default is 'one-time-code'.
|
|
26
27
|
*
|
|
@@ -23,6 +23,7 @@ import { InputBaseElement } from '../input/input-base-element';
|
|
|
23
23
|
* @property {boolean} loading - The loading state of the input. Default is false.
|
|
24
24
|
* @property {boolean} optional - The optional state of the input.
|
|
25
25
|
* @property {string} optionalLabel - The optional label of the input.
|
|
26
|
+
* @property {string} requiredLabel - The required indicator of the input. (default: '*')
|
|
26
27
|
* @property {boolean} subtle - The weight of the label. Default is `false`
|
|
27
28
|
* @property {string} copyButtonAriaLabel - The aria label of the copy button.
|
|
28
29
|
*
|
|
@@ -22,6 +22,7 @@ import { GenericFormElement } from '../../internal/mixin/genericFormElement';
|
|
|
22
22
|
* @property {'negative' | 'positive' | 'warning'} feedbackType - The feedback type of the datepicker.
|
|
23
23
|
* @property {boolean} optional - The optional state of the datepicker.
|
|
24
24
|
* @property {string} optionalLabel - The optional label of the datepicker.
|
|
25
|
+
* @property {string} requiredLabel - The required indicator of the datepicker. (default: '*')
|
|
25
26
|
* @property {boolean} subtle - The weight of the label. Default is `false`
|
|
26
27
|
* @property {string} autocomplete - The autocomplete of the datepicker.
|
|
27
28
|
* @property {boolean} autofocus - The autofocus of the datepicker.
|
|
@@ -19,7 +19,9 @@ import { default as DapDSFileInputList } from './file-input-list.component';
|
|
|
19
19
|
* @property {string} feedback - The feedback for the file input.
|
|
20
20
|
* @property {'negative' | 'positive' | 'warning'} feedbackType - The type of feedback for the file input.
|
|
21
21
|
* @property {boolean} required - Whether the file input is required.
|
|
22
|
+
* @property {string} requiredLabel - The required indicator of the file input. (default: '*')
|
|
22
23
|
* @property {boolean} optional - Whether the file input is optional.
|
|
24
|
+
* @property {string} optionalLabel - The optional label of the file input.
|
|
23
25
|
* @property {boolean} subtle - Font weight of the feedback label. Default is `false` which is bold.
|
|
24
26
|
* @property {string} uploadButtonLabel - The label for the upload button.
|
|
25
27
|
* @property {string} browseButtonLabel - The label for the browse button.
|
|
@@ -17,6 +17,7 @@ declare const DapDSFormLabel_base: {
|
|
|
17
17
|
* @property {boolean} subtle - Text weight of the label.
|
|
18
18
|
* @property {boolean} optional - If the label is optional.
|
|
19
19
|
* @property {boolean} required - If the label is required.
|
|
20
|
+
* @property {string} requiredLabel - Indicator of required text. (default: '*')
|
|
20
21
|
* @property {string} label - The label text.
|
|
21
22
|
*
|
|
22
23
|
* @csspart base - The main form label container.
|
|
@@ -14,6 +14,7 @@ import { GenericFormElement } from '../../../internal/mixin/genericFormElement';
|
|
|
14
14
|
* @property {'top' | 'right' | 'bottom' | 'left'} tooltipPlacement - The tooltip placement of the input group.
|
|
15
15
|
* @property {string} tooltipAriaLabel - The aria label of the tooltip.
|
|
16
16
|
* @property {string} optionalLabel - The label of the input group when it is optional.
|
|
17
|
+
* @property {string} requiredLabel - The indicator of the input group when it is required. (default: '*')
|
|
17
18
|
* @property {boolean} disabled - Whether the input group is disabled.
|
|
18
19
|
* @property {'xs' | 'sm' | 'lg'} size - The size of the input group. Default is `sm`.
|
|
19
20
|
* @property {boolean} required - Whether the input group is required.
|
|
@@ -23,6 +23,7 @@ import { GenericFormElement } from '../../../internal/mixin/genericFormElement';
|
|
|
23
23
|
* @property {'negative' | 'positive' | 'warning'} feedbackType - The feedback type of the radio group. Can be `negative`, `positive`, or `warning`.
|
|
24
24
|
* @property {boolean} optional - The optional state of the radio group.
|
|
25
25
|
* @property {string} optionalLabel - Text of optional label.
|
|
26
|
+
* @property {string} requiredLabel - Text of required indicator. (default: '*')
|
|
26
27
|
* @property {boolean} subtle - The weight of the label. Default is `false`
|
|
27
28
|
* @property {'xs' | 'sm' | 'lg'} size - The size of the radio group. Default is `sm`.
|
|
28
29
|
* @property {boolean} subtle - Font weight of the feedback label. Default is `false` which is bold.
|
|
@@ -8,6 +8,7 @@ import { InputBaseElement } from './input-base-element';
|
|
|
8
8
|
* @property {string} label - The label of the input.
|
|
9
9
|
* @property {string} description - The description of the input.
|
|
10
10
|
* @property {string} optionalLabel - Text of optional label.
|
|
11
|
+
* @property {string} requiredLabel - Text of required indicator. (default: '*')
|
|
11
12
|
* @property {boolean} subtle - Text weight of label. If true the label is subtle. Default value is false.
|
|
12
13
|
* @property {string} value - The value of the input.
|
|
13
14
|
* @property {string} placeholder - The placeholder of the input.
|
|
@@ -16,6 +16,7 @@ declare const DapDSLabel_base: {
|
|
|
16
16
|
* @property {'top' | 'right' | 'bottom' | 'left'} tooltipPlacement - The tooltip placement of the label.
|
|
17
17
|
* @property {boolean} optional - If the label is optional. Default value is `false`.
|
|
18
18
|
* @property {string} optionalLabel - Label of optional text
|
|
19
|
+
* @property {string} requiredLabel - Indicator of required text (default: '*')
|
|
19
20
|
* @property {boolean} subtle - Text weight of label. If true the label is subtle. Default value is `false`.
|
|
20
21
|
* @property {boolean} disabled - The disabled state of the label. Default is `false`.
|
|
21
22
|
* @property {boolean} required - The required state of the label. Default is `false`.
|
|
@@ -32,6 +32,7 @@ import { InputBaseElement } from '../input/input-base-element';
|
|
|
32
32
|
* @property {boolean} loading - The loading state of the input. Default is false.
|
|
33
33
|
* @property {boolean} optional - The optional state of the input.
|
|
34
34
|
* @property {string} optionalLabel - The optional label of the input.
|
|
35
|
+
* @property {string} requiredLabel - The required indicator of the input. (default: '*')
|
|
35
36
|
* @property {boolean} subtle - The weight of the label. Default is `false`
|
|
36
37
|
* @property {boolean} disableEnter - Disables the enter key from being used to submit the form.
|
|
37
38
|
* @property {boolean} hideControls - Hides the increment and decrement buttons.
|
|
@@ -23,6 +23,7 @@ import { InputBaseElement } from '../input/input-base-element';
|
|
|
23
23
|
* @property {boolean} loading - The loading state of the password input. Default is false.
|
|
24
24
|
* @property {boolean} optional - The optional state of the password input.
|
|
25
25
|
* @property {string} optionalLabel - The optional label of the password input.
|
|
26
|
+
* @property {string} requiredLabel - The required indicator of the password input. (default: '*')
|
|
26
27
|
* @property {boolean} subtle - The weight of the label. Default is `false`
|
|
27
28
|
*
|
|
28
29
|
* @event {{ value: string }} dds-change - Fired when the input value changes.
|
|
@@ -28,6 +28,7 @@ import { LabeledChoiceElement } from '../../internal/mixin/labeledChoiceElement'
|
|
|
28
28
|
* @property {boolean} invalid - The invalid state of the radio button.
|
|
29
29
|
* @property {boolean} optional - The optional state of the radio button.
|
|
30
30
|
* @property {string} optionalLabel - The optional label of the radio button.
|
|
31
|
+
* @property {string} requiredLabel - The required indicator of the radio button. (default: '*')
|
|
31
32
|
* @property {boolean} preventDefault - Whether the radio button should prevent the default action.
|
|
32
33
|
* @property {boolean} focusable - Whether the radio button is focusable.
|
|
33
34
|
* @property {'normal' | 'background'} type - The type of the radio button.
|
|
@@ -29,6 +29,7 @@ import { default as DapDSOptionList } from '../option-list/option-list.component
|
|
|
29
29
|
* @property {string} status - The status of the select. Can be `success` or `error`.
|
|
30
30
|
* @property {boolean} optional - The optional state of the select.
|
|
31
31
|
* @property {string} optionalLabel - The optional label of the select.
|
|
32
|
+
* @property {string} requiredLabel - The required indicator of the select. (default: '*')
|
|
32
33
|
* @property {boolean} subtle - The weight of the label. Default is `false`
|
|
33
34
|
*
|
|
34
35
|
* @csspart base - The main select container.
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { PropertyValueMap } from 'lit';
|
|
2
2
|
import { DdsElement } from '../../internal/dds-hu-element';
|
|
3
|
+
declare const LANDMARK_TAGS: {
|
|
4
|
+
readonly aside: import('lit-html/static.js').StaticValue;
|
|
5
|
+
readonly nav: import('lit-html/static.js').StaticValue;
|
|
6
|
+
};
|
|
7
|
+
export type SideNavLandmark = keyof typeof LANDMARK_TAGS;
|
|
3
8
|
/**
|
|
4
9
|
* `dap-ds-sidenav`
|
|
5
10
|
* @summary Side navigation is a list of links that are used to navigate to different sections of a page.
|
|
@@ -20,6 +25,18 @@ export default class DapDSSideNav extends DdsElement {
|
|
|
20
25
|
activeHref: string;
|
|
21
26
|
/** The size of the side navigation */
|
|
22
27
|
size: 'xs' | 'sm' | 'lg';
|
|
28
|
+
/**
|
|
29
|
+
* The landmark element to render. `aside` exposes a complementary landmark; `nav`
|
|
30
|
+
* exposes a navigation landmark, so the sidenav is listed when a screen-reader user
|
|
31
|
+
* asks for the page's navigation.
|
|
32
|
+
*
|
|
33
|
+
* Defaults to `aside` because that is what this component has always rendered, and
|
|
34
|
+
* changing the landmark of every existing sidenav is not this component's call: a
|
|
35
|
+
* sidenav that is genuinely a sidebar should stay complementary. Set `nav` when the
|
|
36
|
+
* sidenav is the primary way to move around the view.
|
|
37
|
+
* @type {'aside' | 'nav'}
|
|
38
|
+
*/
|
|
39
|
+
landmark: SideNavLandmark;
|
|
23
40
|
static readonly styles: import('lit').CSSResult;
|
|
24
41
|
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
25
42
|
attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
|
|
@@ -28,3 +45,4 @@ export default class DapDSSideNav extends DdsElement {
|
|
|
28
45
|
private handleClick;
|
|
29
46
|
render(): import('lit-html').TemplateResult;
|
|
30
47
|
}
|
|
48
|
+
export {};
|
|
@@ -21,6 +21,7 @@ import { LabeledChoiceElement } from '../../internal/mixin/labeledChoiceElement'
|
|
|
21
21
|
* @property {'negative' | 'positive' | 'warning'} feedbackType - The feedback type of the switch.
|
|
22
22
|
* @property {boolean} optional - The optional state of the switch.
|
|
23
23
|
* @property {string} optionalLabel - The optional label of the switch.
|
|
24
|
+
* @property {string} requiredLabel - The required indicator of the switch. (default: '*')
|
|
24
25
|
*
|
|
25
26
|
* @cssProperty --dds-switch-width - Width of the switch control (default: var(--dds-spacing-1000)
|
|
26
27
|
* @cssProperty --dds-switch-height - Height of the switch control (default: var(--dds-spacing-600))
|
|
@@ -20,6 +20,7 @@ import { GenericFormElement } from '../../internal/mixin/genericFormElement';
|
|
|
20
20
|
* @property {'negative' | 'positive' | 'warning'} feedbackType - The feedback type of the textarea. Can be `negative`, `positive`, or `warning`.
|
|
21
21
|
* @property {boolean} optional - The optional state of the textarea.
|
|
22
22
|
* @property {string} optionalLabel - The optional label of the textarea.
|
|
23
|
+
* @property {string} requiredLabel - The required indicator of the textarea. (default: '*')
|
|
23
24
|
* @property {boolean} subtle - The weight of the label. Default is `false`
|
|
24
25
|
* @property {boolean} autofocus - The autofocus state of the textarea.
|
|
25
26
|
*
|
|
@@ -22,6 +22,7 @@ import { GenericFormElement } from '../../internal/mixin/genericFormElement';
|
|
|
22
22
|
* @property {'negative' | 'positive' | 'warning'} feedbackType - The feedback type of the timepicker.
|
|
23
23
|
* @property {boolean} optional - The optional state of the timepicker.
|
|
24
24
|
* @property {string} optionalLabel - The optional label of the timepicker.
|
|
25
|
+
* @property {string} requiredLabel - The required indicator of the timepicker. (default: '*')
|
|
25
26
|
* @property {boolean} subtle - The weight of the label. Default is `false`
|
|
26
27
|
* @property {string} autocomplete - The autocomplete of the timepicker.
|
|
27
28
|
* @property {string} placeholder - The placeholder of the timepicker.
|