@uh-design-system/component-library 0.1.0 → 0.2.0-alpha.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.
Files changed (185) hide show
  1. package/README.md +1 -0
  2. package/dist/cjs/app-globals-3a1e7e63.js +0 -2
  3. package/dist/cjs/ds-accordion_2.cjs.entry.js +930 -0
  4. package/dist/cjs/ds-button_2.cjs.entry.js +196 -0
  5. package/dist/cjs/ds-text-input.cjs.entry.js +137 -0
  6. package/dist/cjs/index-5a88e57b.js +82 -0
  7. package/dist/cjs/{index-eaf5876c.js → index-f7420801.js} +652 -149
  8. package/dist/cjs/index.cjs.js +0 -9
  9. package/dist/cjs/loader.cjs.js +2 -4
  10. package/dist/cjs/uh-component-library.cjs.js +3 -5
  11. package/dist/collection/collection-manifest.json +6 -2
  12. package/dist/collection/components/00-foundations/borders/borders.stories.js +7 -8
  13. package/dist/collection/components/00-foundations/breakpoints/breakpoints.stories.js +20 -0
  14. package/dist/collection/components/00-foundations/colours/colours.stories.js +9 -17
  15. package/dist/collection/components/00-foundations/icons/categories/actions.js +110 -0
  16. package/dist/collection/components/00-foundations/icons/categories/arrows.js +64 -0
  17. package/dist/collection/components/00-foundations/icons/categories/custom.js +10 -0
  18. package/dist/collection/components/00-foundations/icons/categories/information.js +94 -0
  19. package/dist/collection/components/00-foundations/icons/categories/media.js +76 -0
  20. package/dist/collection/components/00-foundations/icons/categories/navigation.js +50 -0
  21. package/dist/collection/components/00-foundations/icons/categories/notifications.js +64 -0
  22. package/dist/collection/components/00-foundations/icons/categories/text.js +18 -0
  23. package/dist/collection/components/00-foundations/icons/categories/users.js +52 -0
  24. package/dist/collection/components/00-foundations/icons/iconList.js +18 -293
  25. package/dist/collection/components/00-foundations/icons/icons.stories.js +0 -1
  26. package/dist/collection/components/00-foundations/spacing/spacing.stories.js +2 -3
  27. package/dist/collection/components/00-foundations/typography/typography.stories.js +52 -3
  28. package/dist/collection/components/01-base-components/ds-accordion/ds-accordion.css +130 -0
  29. package/dist/collection/components/01-base-components/ds-accordion/ds-accordion.js +217 -0
  30. package/dist/collection/components/01-base-components/ds-accordion/stories/ds-accordion.examples.stories.js +43 -0
  31. package/dist/collection/components/01-base-components/ds-accordion/stories/ds-accordion.features.stories.js +79 -0
  32. package/dist/collection/components/01-base-components/ds-accordion/stories/ds-accordion.stories.js +96 -0
  33. package/dist/collection/components/01-base-components/ds-button/ds-button.css +238 -0
  34. package/dist/collection/components/01-base-components/ds-button/ds-button.js +294 -0
  35. package/dist/collection/components/01-base-components/ds-button/stories/ds-button.examples.stories.js +28 -0
  36. package/dist/collection/components/01-base-components/ds-button/stories/ds-button.features.stories.js +77 -0
  37. package/dist/collection/components/01-base-components/ds-button/stories/ds-button.stories.js +79 -0
  38. package/dist/collection/components/01-base-components/ds-icon/ds-icon.css +1 -1
  39. package/dist/collection/components/01-base-components/ds-icon/ds-icon.js +18 -6
  40. package/dist/collection/components/01-base-components/ds-icon/ds-icon.stories.js +1 -2
  41. package/dist/collection/components/01-base-components/ds-text-input/ds-text-input.css +186 -0
  42. package/dist/collection/components/01-base-components/ds-text-input/ds-text-input.examples.stories.js +24 -0
  43. package/dist/collection/components/01-base-components/ds-text-input/ds-text-input.features.stories.js +126 -0
  44. package/dist/collection/components/01-base-components/ds-text-input/ds-text-input.js +665 -0
  45. package/dist/collection/components/01-base-components/ds-text-input/ds-text-input.stories.js +73 -0
  46. package/dist/collection/components/01-base-components/ds-text-input/utils.js +16 -0
  47. package/dist/collection/components/01-base-components/ds-visually-hidden/ds-visually-hidden.css +9 -0
  48. package/dist/collection/components/01-base-components/ds-visually-hidden/ds-visually-hidden.js +18 -0
  49. package/dist/collection/components/01-base-components/ds-visually-hidden/ds-visually-hidden.stories.js +9 -0
  50. package/dist/collection/index.js +1 -11
  51. package/dist/collection/utils/attributes.js +107 -0
  52. package/dist/collection/utils/borders/borderUtils.js +24 -4
  53. package/dist/collection/utils/breakpoints/breakpointsUtils.js +58 -0
  54. package/dist/collection/utils/colours/colourTypes.js +19 -0
  55. package/dist/collection/utils/colours/colourUtils.js +67 -47
  56. package/dist/collection/utils/spacing/spacingUtils.js +21 -9
  57. package/dist/collection/utils/tests/testUtils.js +21 -6
  58. package/dist/collection/utils/typography/typographyUtils.js +0 -1
  59. package/dist/collection/utils/utils.js +48 -3
  60. package/dist/components/ds-accordion.d.ts +11 -0
  61. package/dist/components/ds-accordion.js +96 -0
  62. package/dist/components/ds-button.d.ts +11 -0
  63. package/dist/components/ds-button.js +6 -0
  64. package/dist/components/ds-button2.js +209 -0
  65. package/dist/components/ds-icon.js +1 -540
  66. package/dist/components/ds-icon2.js +890 -0
  67. package/dist/components/ds-text-input.d.ts +11 -0
  68. package/dist/components/ds-text-input.js +200 -0
  69. package/dist/components/ds-visually-hidden.d.ts +11 -0
  70. package/dist/components/ds-visually-hidden.js +6 -0
  71. package/dist/components/ds-visually-hidden2.js +31 -0
  72. package/dist/components/index.js +1 -9
  73. package/dist/components/{p-dcfb6eb2.js → index2.js} +616 -146
  74. package/dist/components/index3.js +80 -0
  75. package/dist/esm/app-globals-0f993ce5.js +0 -2
  76. package/dist/esm/ds-accordion_2.entry.js +925 -0
  77. package/dist/esm/ds-button_2.entry.js +191 -0
  78. package/dist/esm/ds-text-input.entry.js +133 -0
  79. package/dist/esm/index-097075ad.js +80 -0
  80. package/dist/esm/{index-1586ada2.js → index-1d0a6586.js} +652 -150
  81. package/dist/esm/index.js +0 -6
  82. package/dist/esm/loader.js +3 -5
  83. package/dist/esm/uh-component-library.js +4 -6
  84. package/dist/loader/cdn.js +1 -0
  85. package/dist/loader/index.cjs.js +1 -0
  86. package/{loader → dist/loader}/index.d.ts +1 -1
  87. package/dist/loader/index.es2017.js +1 -0
  88. package/{loader → dist/loader}/index.js +1 -1
  89. package/dist/types/components/00-foundations/breakpoints/breakpoints.stories.d.ts +6 -0
  90. package/dist/types/components/00-foundations/colours/colours.stories.d.ts +3 -2
  91. package/dist/types/components/00-foundations/icons/categories/actions.d.ts +5 -0
  92. package/dist/types/components/00-foundations/icons/categories/arrows.d.ts +5 -0
  93. package/dist/types/components/00-foundations/icons/categories/custom.d.ts +5 -0
  94. package/dist/types/components/00-foundations/icons/categories/information.d.ts +5 -0
  95. package/dist/types/components/00-foundations/icons/categories/media.d.ts +5 -0
  96. package/dist/types/components/00-foundations/icons/categories/navigation.d.ts +5 -0
  97. package/dist/types/components/00-foundations/icons/categories/notifications.d.ts +5 -0
  98. package/dist/types/components/00-foundations/icons/categories/text.d.ts +5 -0
  99. package/dist/types/components/00-foundations/icons/categories/users.d.ts +5 -0
  100. package/dist/types/components/00-foundations/typography/typography.stories.d.ts +6 -5
  101. package/dist/types/components/01-base-components/ds-accordion/ds-accordion.d.ts +17 -0
  102. package/dist/types/components/01-base-components/ds-accordion/stories/ds-accordion.examples.stories.d.ts +9 -0
  103. package/dist/types/components/01-base-components/ds-accordion/stories/ds-accordion.features.stories.d.ts +13 -0
  104. package/dist/types/components/01-base-components/ds-accordion/stories/ds-accordion.stories.d.ts +8 -0
  105. package/dist/types/components/01-base-components/ds-button/ds-button.d.ts +33 -0
  106. package/dist/types/components/01-base-components/ds-button/stories/ds-button.examples.stories.d.ts +6 -0
  107. package/dist/types/components/01-base-components/ds-button/stories/ds-button.features.stories.d.ts +17 -0
  108. package/dist/types/components/01-base-components/ds-button/stories/ds-button.stories.d.ts +8 -0
  109. package/dist/types/components/01-base-components/ds-text-input/ds-text-input.d.ts +46 -0
  110. package/dist/types/components/01-base-components/ds-text-input/ds-text-input.examples.stories.d.ts +8 -0
  111. package/dist/types/components/01-base-components/ds-text-input/ds-text-input.features.stories.d.ts +18 -0
  112. package/dist/types/components/01-base-components/ds-text-input/ds-text-input.stories.d.ts +8 -0
  113. package/dist/types/components/01-base-components/ds-text-input/utils.d.ts +3 -0
  114. package/dist/types/components/01-base-components/ds-visually-hidden/ds-visually-hidden.d.ts +3 -0
  115. package/dist/types/components/01-base-components/ds-visually-hidden/ds-visually-hidden.stories.d.ts +7 -0
  116. package/dist/types/components.d.ts +152 -0
  117. package/dist/types/declarations.d.ts +4 -0
  118. package/dist/types/index.d.ts +0 -1
  119. package/dist/types/utils/attributes.d.ts +39 -0
  120. package/dist/types/utils/borders/borderUtils.d.ts +9 -0
  121. package/dist/types/utils/breakpoints/breakpointsUtils.d.ts +11 -0
  122. package/dist/types/utils/colours/colourTypes.d.ts +18 -0
  123. package/dist/types/utils/colours/colourUtils.d.ts +4 -14
  124. package/dist/types/utils/spacing/spacingUtils.d.ts +6 -3
  125. package/dist/types/utils/tests/testUtils.d.ts +2 -0
  126. package/dist/types/utils/utils.d.ts +20 -1
  127. package/dist/uh-component-library/app-globals-0f993ce5.js +1 -0
  128. package/dist/uh-component-library/ds-accordion_2.entry.js +1 -0
  129. package/dist/uh-component-library/ds-button_2.entry.js +1 -0
  130. package/dist/uh-component-library/ds-text-input.entry.js +1 -0
  131. package/dist/uh-component-library/index-097075ad.js +6 -0
  132. package/dist/uh-component-library/index-1d0a6586.js +2 -0
  133. package/dist/uh-component-library/index.esm.js +0 -2
  134. package/dist/uh-component-library/uh-component-library.esm.js +1 -2
  135. package/package.json +8 -15
  136. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  137. package/dist/cjs/ds-icon.cjs.entry.js +0 -522
  138. package/dist/cjs/ds-icon.cjs.entry.js.map +0 -1
  139. package/dist/cjs/index-eaf5876c.js.map +0 -1
  140. package/dist/cjs/index.cjs.js.map +0 -1
  141. package/dist/cjs/loader.cjs.js.map +0 -1
  142. package/dist/cjs/uh-component-library.cjs.js.map +0 -1
  143. package/dist/collection/components/00-foundations/borders/borders.stories.js.map +0 -1
  144. package/dist/collection/components/00-foundations/colours/colours.stories.js.map +0 -1
  145. package/dist/collection/components/00-foundations/icons/iconList.js.map +0 -1
  146. package/dist/collection/components/00-foundations/icons/icons.stories.js.map +0 -1
  147. package/dist/collection/components/00-foundations/spacing/spacing.stories.js.map +0 -1
  148. package/dist/collection/components/00-foundations/typography/headings.stories.js +0 -23
  149. package/dist/collection/components/00-foundations/typography/headings.stories.js.map +0 -1
  150. package/dist/collection/components/00-foundations/typography/text.stories.js +0 -17
  151. package/dist/collection/components/00-foundations/typography/text.stories.js.map +0 -1
  152. package/dist/collection/components/00-foundations/typography/typography.stories.js.map +0 -1
  153. package/dist/collection/components/01-base-components/ds-icon/ds-icon.js.map +0 -1
  154. package/dist/collection/components/01-base-components/ds-icon/ds-icon.stories.js.map +0 -1
  155. package/dist/collection/index.js.map +0 -1
  156. package/dist/collection/utils/borders/borderUtils.js.map +0 -1
  157. package/dist/collection/utils/colours/colourUtils.js.map +0 -1
  158. package/dist/collection/utils/spacing/spacingUtils.js.map +0 -1
  159. package/dist/collection/utils/tests/testUtils.js.map +0 -1
  160. package/dist/collection/utils/typography/typographyUtils.js.map +0 -1
  161. package/dist/collection/utils/utils.js.map +0 -1
  162. package/dist/components/ds-icon.js.map +0 -1
  163. package/dist/components/index.js.map +0 -1
  164. package/dist/components/p-dcfb6eb2.js.map +0 -1
  165. package/dist/esm/app-globals-0f993ce5.js.map +0 -1
  166. package/dist/esm/ds-icon.entry.js +0 -518
  167. package/dist/esm/ds-icon.entry.js.map +0 -1
  168. package/dist/esm/index-1586ada2.js.map +0 -1
  169. package/dist/esm/index.js.map +0 -1
  170. package/dist/esm/loader.js.map +0 -1
  171. package/dist/esm/uh-component-library.js.map +0 -1
  172. package/dist/types/components/00-foundations/typography/headings.stories.d.ts +0 -17
  173. package/dist/types/components/00-foundations/typography/text.stories.d.ts +0 -11
  174. package/dist/uh-component-library/index.esm.js.map +0 -1
  175. package/dist/uh-component-library/p-74d73de3.js +0 -3
  176. package/dist/uh-component-library/p-74d73de3.js.map +0 -1
  177. package/dist/uh-component-library/p-c7cd80a5.entry.js +0 -2
  178. package/dist/uh-component-library/p-c7cd80a5.entry.js.map +0 -1
  179. package/dist/uh-component-library/p-e1255160.js +0 -2
  180. package/dist/uh-component-library/p-e1255160.js.map +0 -1
  181. package/dist/uh-component-library/uh-component-library.esm.js.map +0 -1
  182. package/loader/cdn.js +0 -1
  183. package/loader/index.cjs.js +0 -1
  184. package/loader/index.es2017.js +0 -1
  185. /package/{loader → dist/loader}/package.json +0 -0
@@ -0,0 +1,665 @@
1
+ import { Fragment, h } from "@stencil/core";
2
+ import classNames from "classnames";
3
+ import { idGenerator } from "./utils";
4
+ const INPUT_TYPE_ICONS_MAP = {
5
+ search: 'search',
6
+ };
7
+ const INPUT_TYPE_ACTION_BUTTON_ICON_MAP = {
8
+ search: ({ clearButtonVisible }) => (clearButtonVisible ? 'cancel_fill' : ''),
9
+ password: ({ passwordInputVisible }) => (passwordInputVisible ? 'visibility_off_fill' : 'visibility_fill'),
10
+ };
11
+ const assistiveTextIdGenerator = idGenerator('ds-assistive-text');
12
+ const visuallyHiddenAssistiveTextIdGenerator = idGenerator('visually-hidden-assistive-text');
13
+ const successTextIdGenerator = idGenerator('success-text');
14
+ const errorTextIdGenerator = idGenerator('error-text');
15
+ export class DsTextInput {
16
+ constructor() {
17
+ this.assistiveTextId = assistiveTextIdGenerator.next().value;
18
+ this.visuallyHiddenAssistiveTextId = visuallyHiddenAssistiveTextIdGenerator.next().value;
19
+ this.successTextId = successTextIdGenerator.next().value;
20
+ this.errorTextId = errorTextIdGenerator.next().value;
21
+ this.onActionButtonClicked = (e) => {
22
+ e.stopPropagation();
23
+ switch (this.type) {
24
+ case 'password':
25
+ return this.togglePasswordVisibility();
26
+ case 'search':
27
+ this.clearInput();
28
+ default:
29
+ return;
30
+ }
31
+ };
32
+ this.label = undefined;
33
+ this.placeholder = undefined;
34
+ this.id = 'input';
35
+ this.name = undefined;
36
+ this.disabled = undefined;
37
+ this.required = undefined;
38
+ this.readonly = undefined;
39
+ this.value = undefined;
40
+ this.min = undefined;
41
+ this.max = undefined;
42
+ this.maxlength = undefined;
43
+ this.pattern = undefined;
44
+ this.autocomplete = undefined;
45
+ this.errorText = undefined;
46
+ this.successText = undefined;
47
+ this.assistiveText = undefined;
48
+ this.actionButtonAriaLabel = undefined;
49
+ this.hiddenAssistiveText = undefined;
50
+ this.prefixText = undefined;
51
+ this.suffixText = undefined;
52
+ this.icon = '';
53
+ this.type = 'text';
54
+ this.ariaLabel = undefined;
55
+ this.ariaLabelledBy = undefined;
56
+ this.ariaDescribedby = undefined;
57
+ this.hasFocus = false;
58
+ this.clearButtonVisible = false;
59
+ this.passwordInputVisible = false;
60
+ this.inputActive = false;
61
+ }
62
+ async togglePasswordVisibility() {
63
+ return (this.passwordInputVisible = !this.passwordInputVisible);
64
+ }
65
+ async clearInput() {
66
+ this.inputElement.value = '';
67
+ this.inputElement.focus();
68
+ this.clearButtonVisible = false;
69
+ }
70
+ renderValidityMessage(type) {
71
+ const textId = type === 'success' ? this.successTextId : this.errorTextId;
72
+ const text = type === 'success' ? this.successText : this.errorText;
73
+ const icon = type === 'success' ? 'check_circle_fill' : 'warning_fill';
74
+ const className = type + '-text';
75
+ return (h("slot", { name: className }, text && (h("div", { class: `${className}-container` }, h("ds-icon", { name: icon }), h("small", { id: textId, class: className }, text)))));
76
+ }
77
+ renderPrefixContent() {
78
+ if (this.prefixText) {
79
+ return (h("slot", { name: "prefix" }, h("span", { class: "prefix" }, this.prefixText)));
80
+ }
81
+ const prefixIcon = this.icon || INPUT_TYPE_ICONS_MAP[this.type];
82
+ if (prefixIcon) {
83
+ return (h("slot", { name: "prefix" }, h("ds-icon", { class: "prefix", name: prefixIcon })));
84
+ }
85
+ return null;
86
+ }
87
+ renderSuffixContent() {
88
+ var _a, _b;
89
+ if (this.suffixText) {
90
+ return (h("slot", { name: "suffix" }, h("span", { class: "suffix" }, this.suffixText)));
91
+ }
92
+ const actionButtonIcon = (_b = (_a = INPUT_TYPE_ACTION_BUTTON_ICON_MAP[this.type]) === null || _a === void 0 ? void 0 : _a.call(INPUT_TYPE_ACTION_BUTTON_ICON_MAP, this)) !== null && _b !== void 0 ? _b : '';
93
+ const ariaPressed = this.type === 'password' ? this.passwordInputVisible : undefined;
94
+ if (actionButtonIcon) {
95
+ return (h("slot", { name: "suffix" }, h("ds-button", { ref: e => (this.suffixButtonElement = e), variant: "supplementary", colour: "black", class: "suffix", disabled: false, icon: actionButtonIcon, onClick: this.onActionButtonClicked, "aria-pressed": ariaPressed, "aria-label": this.actionButtonAriaLabel })));
96
+ }
97
+ return null;
98
+ }
99
+ handleInputContainerClick(e) {
100
+ if (e.target === this.suffixButtonElement)
101
+ return;
102
+ this.inputElement.focus();
103
+ }
104
+ render() {
105
+ const inputType = this.type === 'password' && this.passwordInputVisible ? 'text' : this.type;
106
+ return (h(Fragment, { key: '6d7c594001a3103009b407b8ff83d2c1280d014a' }, h("div", { key: '76051b2e72023d0a11fe07f10390b787e7466f02', class: "label-container" }, h("slot", { key: '3c6aa9d9ad95523cd241fddf19be9f3b61cc6a5e', name: "label" }, h("label", { key: '9adea3cfcbd36030bdf66dd9ddc64a1483910c0f', class: classNames({ required: this.required }), htmlFor: this.id }, this.label)), h("slot", { key: '12466889750015207ac3f56159c70795e797d433', name: "help-text" }, h("small", { key: '4c4ae48f06cb9633d5f306ae14da8ccc5d09699e', id: this.assistiveTextId }, this.assistiveText), h("ds-visually-hidden", { key: '899469a328caf988e955bc2f3e4bc15664f01de3', id: this.visuallyHiddenAssistiveTextId }, this.hiddenAssistiveText))), h("div", { key: 'b8afbafcafc45a83b9bf177a09d585745ff2d7bf', onMouseDown: () => (this.inputActive = true), onMouseUp: () => (this.inputActive = false), onClick: e => this.handleInputContainerClick(e), class: classNames('input-container', {
107
+ disabled: this.disabled,
108
+ readonly: this.readonly,
109
+ valid: !!this.successText,
110
+ invalid: !!this.errorText,
111
+ focus: this.hasFocus,
112
+ active: !!this.inputActive,
113
+ }) }, this.renderPrefixContent(), h("input", { key: '75b925eced73863f039c31f7c8abaf8996532f7c', ref: e => (this.inputElement = e), id: this.id, name: this.name, "aria-label": this.ariaLabel, "aria-labelledby": this.ariaLabelledBy, "aria-describedby": this.ariaDescribedby ||
114
+ classNames(this.assistiveTextId, this.visuallyHiddenAssistiveTextId, {
115
+ [this.successTextId]: this.successText,
116
+ [this.errorTextId]: this.errorText,
117
+ }), disabled: this.disabled, required: this.required, readonly: this.readonly, value: this.value, type: inputType, min: this.min, max: this.max, maxlength: this.maxlength, pattern: this.pattern, placeholder: this.placeholder, autocomplete: this.autocomplete, onInput: e => (this.clearButtonVisible = !!e.target.value), onFocus: () => (this.hasFocus = true), onBlur: () => (this.hasFocus = false) }), this.renderSuffixContent()), this.renderValidityMessage('error'), this.renderValidityMessage('success')));
118
+ }
119
+ static get is() { return "ds-text-input"; }
120
+ static get encapsulation() { return "scoped"; }
121
+ static get originalStyleUrls() {
122
+ return {
123
+ "$": ["ds-text-input.scss"]
124
+ };
125
+ }
126
+ static get styleUrls() {
127
+ return {
128
+ "$": ["ds-text-input.css"]
129
+ };
130
+ }
131
+ static get properties() {
132
+ return {
133
+ "label": {
134
+ "type": "string",
135
+ "mutable": false,
136
+ "complexType": {
137
+ "original": "string",
138
+ "resolved": "string",
139
+ "references": {}
140
+ },
141
+ "required": false,
142
+ "optional": true,
143
+ "docs": {
144
+ "tags": [],
145
+ "text": ""
146
+ },
147
+ "getter": false,
148
+ "setter": false,
149
+ "attribute": "label",
150
+ "reflect": false
151
+ },
152
+ "placeholder": {
153
+ "type": "string",
154
+ "mutable": false,
155
+ "complexType": {
156
+ "original": "string",
157
+ "resolved": "string",
158
+ "references": {}
159
+ },
160
+ "required": false,
161
+ "optional": true,
162
+ "docs": {
163
+ "tags": [],
164
+ "text": ""
165
+ },
166
+ "getter": false,
167
+ "setter": false,
168
+ "attribute": "placeholder",
169
+ "reflect": false
170
+ },
171
+ "id": {
172
+ "type": "string",
173
+ "mutable": false,
174
+ "complexType": {
175
+ "original": "string",
176
+ "resolved": "string",
177
+ "references": {}
178
+ },
179
+ "required": false,
180
+ "optional": true,
181
+ "docs": {
182
+ "tags": [],
183
+ "text": ""
184
+ },
185
+ "getter": false,
186
+ "setter": false,
187
+ "attribute": "id",
188
+ "reflect": false,
189
+ "defaultValue": "'input'"
190
+ },
191
+ "name": {
192
+ "type": "string",
193
+ "mutable": false,
194
+ "complexType": {
195
+ "original": "string",
196
+ "resolved": "string",
197
+ "references": {}
198
+ },
199
+ "required": false,
200
+ "optional": false,
201
+ "docs": {
202
+ "tags": [],
203
+ "text": ""
204
+ },
205
+ "getter": false,
206
+ "setter": false,
207
+ "attribute": "name",
208
+ "reflect": false
209
+ },
210
+ "disabled": {
211
+ "type": "boolean",
212
+ "mutable": false,
213
+ "complexType": {
214
+ "original": "boolean",
215
+ "resolved": "boolean",
216
+ "references": {}
217
+ },
218
+ "required": false,
219
+ "optional": true,
220
+ "docs": {
221
+ "tags": [],
222
+ "text": ""
223
+ },
224
+ "getter": false,
225
+ "setter": false,
226
+ "attribute": "disabled",
227
+ "reflect": false
228
+ },
229
+ "required": {
230
+ "type": "boolean",
231
+ "mutable": false,
232
+ "complexType": {
233
+ "original": "boolean",
234
+ "resolved": "boolean",
235
+ "references": {}
236
+ },
237
+ "required": false,
238
+ "optional": true,
239
+ "docs": {
240
+ "tags": [],
241
+ "text": ""
242
+ },
243
+ "getter": false,
244
+ "setter": false,
245
+ "attribute": "required",
246
+ "reflect": false
247
+ },
248
+ "readonly": {
249
+ "type": "boolean",
250
+ "mutable": false,
251
+ "complexType": {
252
+ "original": "boolean",
253
+ "resolved": "boolean",
254
+ "references": {}
255
+ },
256
+ "required": false,
257
+ "optional": true,
258
+ "docs": {
259
+ "tags": [],
260
+ "text": ""
261
+ },
262
+ "getter": false,
263
+ "setter": false,
264
+ "attribute": "readonly",
265
+ "reflect": false
266
+ },
267
+ "value": {
268
+ "type": "string",
269
+ "mutable": false,
270
+ "complexType": {
271
+ "original": "string",
272
+ "resolved": "string",
273
+ "references": {}
274
+ },
275
+ "required": false,
276
+ "optional": true,
277
+ "docs": {
278
+ "tags": [],
279
+ "text": ""
280
+ },
281
+ "getter": false,
282
+ "setter": false,
283
+ "attribute": "value",
284
+ "reflect": false
285
+ },
286
+ "min": {
287
+ "type": "number",
288
+ "mutable": false,
289
+ "complexType": {
290
+ "original": "number",
291
+ "resolved": "number",
292
+ "references": {}
293
+ },
294
+ "required": false,
295
+ "optional": true,
296
+ "docs": {
297
+ "tags": [],
298
+ "text": ""
299
+ },
300
+ "getter": false,
301
+ "setter": false,
302
+ "attribute": "min",
303
+ "reflect": false
304
+ },
305
+ "max": {
306
+ "type": "number",
307
+ "mutable": false,
308
+ "complexType": {
309
+ "original": "number",
310
+ "resolved": "number",
311
+ "references": {}
312
+ },
313
+ "required": false,
314
+ "optional": true,
315
+ "docs": {
316
+ "tags": [],
317
+ "text": ""
318
+ },
319
+ "getter": false,
320
+ "setter": false,
321
+ "attribute": "max",
322
+ "reflect": false
323
+ },
324
+ "maxlength": {
325
+ "type": "number",
326
+ "mutable": false,
327
+ "complexType": {
328
+ "original": "number",
329
+ "resolved": "number",
330
+ "references": {}
331
+ },
332
+ "required": false,
333
+ "optional": true,
334
+ "docs": {
335
+ "tags": [],
336
+ "text": ""
337
+ },
338
+ "getter": false,
339
+ "setter": false,
340
+ "attribute": "maxlength",
341
+ "reflect": false
342
+ },
343
+ "pattern": {
344
+ "type": "string",
345
+ "mutable": false,
346
+ "complexType": {
347
+ "original": "string",
348
+ "resolved": "string",
349
+ "references": {}
350
+ },
351
+ "required": false,
352
+ "optional": true,
353
+ "docs": {
354
+ "tags": [],
355
+ "text": ""
356
+ },
357
+ "getter": false,
358
+ "setter": false,
359
+ "attribute": "pattern",
360
+ "reflect": false
361
+ },
362
+ "autocomplete": {
363
+ "type": "string",
364
+ "mutable": false,
365
+ "complexType": {
366
+ "original": "string",
367
+ "resolved": "string",
368
+ "references": {}
369
+ },
370
+ "required": false,
371
+ "optional": true,
372
+ "docs": {
373
+ "tags": [],
374
+ "text": ""
375
+ },
376
+ "getter": false,
377
+ "setter": false,
378
+ "attribute": "autocomplete",
379
+ "reflect": false
380
+ },
381
+ "errorText": {
382
+ "type": "string",
383
+ "mutable": false,
384
+ "complexType": {
385
+ "original": "string",
386
+ "resolved": "string",
387
+ "references": {}
388
+ },
389
+ "required": false,
390
+ "optional": true,
391
+ "docs": {
392
+ "tags": [],
393
+ "text": ""
394
+ },
395
+ "getter": false,
396
+ "setter": false,
397
+ "attribute": "error-text",
398
+ "reflect": false
399
+ },
400
+ "successText": {
401
+ "type": "string",
402
+ "mutable": false,
403
+ "complexType": {
404
+ "original": "string",
405
+ "resolved": "string",
406
+ "references": {}
407
+ },
408
+ "required": false,
409
+ "optional": true,
410
+ "docs": {
411
+ "tags": [],
412
+ "text": ""
413
+ },
414
+ "getter": false,
415
+ "setter": false,
416
+ "attribute": "success-text",
417
+ "reflect": false
418
+ },
419
+ "assistiveText": {
420
+ "type": "string",
421
+ "mutable": false,
422
+ "complexType": {
423
+ "original": "string",
424
+ "resolved": "string",
425
+ "references": {}
426
+ },
427
+ "required": false,
428
+ "optional": true,
429
+ "docs": {
430
+ "tags": [],
431
+ "text": ""
432
+ },
433
+ "getter": false,
434
+ "setter": false,
435
+ "attribute": "assistive-text",
436
+ "reflect": false
437
+ },
438
+ "actionButtonAriaLabel": {
439
+ "type": "string",
440
+ "mutable": false,
441
+ "complexType": {
442
+ "original": "string",
443
+ "resolved": "string",
444
+ "references": {}
445
+ },
446
+ "required": false,
447
+ "optional": true,
448
+ "docs": {
449
+ "tags": [],
450
+ "text": ""
451
+ },
452
+ "getter": false,
453
+ "setter": false,
454
+ "attribute": "action-button-aria-label",
455
+ "reflect": false
456
+ },
457
+ "hiddenAssistiveText": {
458
+ "type": "string",
459
+ "mutable": false,
460
+ "complexType": {
461
+ "original": "string",
462
+ "resolved": "string",
463
+ "references": {}
464
+ },
465
+ "required": false,
466
+ "optional": true,
467
+ "docs": {
468
+ "tags": [],
469
+ "text": ""
470
+ },
471
+ "getter": false,
472
+ "setter": false,
473
+ "attribute": "hidden-assistive-text",
474
+ "reflect": false
475
+ },
476
+ "prefixText": {
477
+ "type": "string",
478
+ "mutable": false,
479
+ "complexType": {
480
+ "original": "string",
481
+ "resolved": "string",
482
+ "references": {}
483
+ },
484
+ "required": false,
485
+ "optional": true,
486
+ "docs": {
487
+ "tags": [],
488
+ "text": ""
489
+ },
490
+ "getter": false,
491
+ "setter": false,
492
+ "attribute": "prefix-text",
493
+ "reflect": false
494
+ },
495
+ "suffixText": {
496
+ "type": "string",
497
+ "mutable": false,
498
+ "complexType": {
499
+ "original": "string",
500
+ "resolved": "string",
501
+ "references": {}
502
+ },
503
+ "required": false,
504
+ "optional": true,
505
+ "docs": {
506
+ "tags": [],
507
+ "text": ""
508
+ },
509
+ "getter": false,
510
+ "setter": false,
511
+ "attribute": "suffix-text",
512
+ "reflect": false
513
+ },
514
+ "icon": {
515
+ "type": "string",
516
+ "mutable": false,
517
+ "complexType": {
518
+ "original": "string",
519
+ "resolved": "string",
520
+ "references": {}
521
+ },
522
+ "required": false,
523
+ "optional": false,
524
+ "docs": {
525
+ "tags": [],
526
+ "text": ""
527
+ },
528
+ "getter": false,
529
+ "setter": false,
530
+ "attribute": "icon",
531
+ "reflect": false,
532
+ "defaultValue": "''"
533
+ },
534
+ "type": {
535
+ "type": "string",
536
+ "mutable": false,
537
+ "complexType": {
538
+ "original": "TextInputType",
539
+ "resolved": "\"email\" | \"loading\" | \"number\" | \"password\" | \"search\" | \"tel\" | \"text\" | \"url\"",
540
+ "references": {
541
+ "TextInputType": {
542
+ "location": "import",
543
+ "path": "./utils",
544
+ "id": "src/components/01-base-components/ds-text-input/utils.ts::TextInputType"
545
+ }
546
+ }
547
+ },
548
+ "required": false,
549
+ "optional": false,
550
+ "docs": {
551
+ "tags": [],
552
+ "text": ""
553
+ },
554
+ "getter": false,
555
+ "setter": false,
556
+ "attribute": "type",
557
+ "reflect": false,
558
+ "defaultValue": "'text'"
559
+ },
560
+ "ariaLabel": {
561
+ "type": "string",
562
+ "mutable": false,
563
+ "complexType": {
564
+ "original": "string",
565
+ "resolved": "string",
566
+ "references": {}
567
+ },
568
+ "required": false,
569
+ "optional": true,
570
+ "docs": {
571
+ "tags": [],
572
+ "text": ""
573
+ },
574
+ "getter": false,
575
+ "setter": false,
576
+ "attribute": "aria-label",
577
+ "reflect": false
578
+ },
579
+ "ariaLabelledBy": {
580
+ "type": "string",
581
+ "mutable": false,
582
+ "complexType": {
583
+ "original": "string",
584
+ "resolved": "string",
585
+ "references": {}
586
+ },
587
+ "required": false,
588
+ "optional": true,
589
+ "docs": {
590
+ "tags": [],
591
+ "text": ""
592
+ },
593
+ "getter": false,
594
+ "setter": false,
595
+ "attribute": "aria-labelledby",
596
+ "reflect": false
597
+ },
598
+ "ariaDescribedby": {
599
+ "type": "string",
600
+ "mutable": false,
601
+ "complexType": {
602
+ "original": "string",
603
+ "resolved": "string",
604
+ "references": {}
605
+ },
606
+ "required": false,
607
+ "optional": true,
608
+ "docs": {
609
+ "tags": [],
610
+ "text": ""
611
+ },
612
+ "getter": false,
613
+ "setter": false,
614
+ "attribute": "aria-describedby",
615
+ "reflect": false
616
+ }
617
+ };
618
+ }
619
+ static get states() {
620
+ return {
621
+ "hasFocus": {},
622
+ "clearButtonVisible": {},
623
+ "passwordInputVisible": {},
624
+ "inputActive": {}
625
+ };
626
+ }
627
+ static get methods() {
628
+ return {
629
+ "togglePasswordVisibility": {
630
+ "complexType": {
631
+ "signature": "() => Promise<boolean>",
632
+ "parameters": [],
633
+ "references": {
634
+ "Promise": {
635
+ "location": "global",
636
+ "id": "global::Promise"
637
+ }
638
+ },
639
+ "return": "Promise<boolean>"
640
+ },
641
+ "docs": {
642
+ "text": "",
643
+ "tags": []
644
+ }
645
+ },
646
+ "clearInput": {
647
+ "complexType": {
648
+ "signature": "() => Promise<void>",
649
+ "parameters": [],
650
+ "references": {
651
+ "Promise": {
652
+ "location": "global",
653
+ "id": "global::Promise"
654
+ }
655
+ },
656
+ "return": "Promise<void>"
657
+ },
658
+ "docs": {
659
+ "text": "",
660
+ "tags": []
661
+ }
662
+ }
663
+ };
664
+ }
665
+ }