@quartzds/core 1.0.0-beta.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.
Files changed (160) hide show
  1. package/README.md +136 -0
  2. package/components/floating-ui.dom.esm.js +1402 -0
  3. package/components/floating-ui.dom.esm.js.map +1 -0
  4. package/components/helpers.js +174 -0
  5. package/components/helpers.js.map +1 -0
  6. package/components/icon.js +175 -0
  7. package/components/icon.js.map +1 -0
  8. package/components/index.d.ts +52 -0
  9. package/components/index.js +117 -0
  10. package/components/index.js.map +1 -0
  11. package/components/label.js +55 -0
  12. package/components/label.js.map +1 -0
  13. package/components/qds-button.d.ts +11 -0
  14. package/components/qds-button.js +148 -0
  15. package/components/qds-button.js.map +1 -0
  16. package/components/qds-checkbox.d.ts +11 -0
  17. package/components/qds-checkbox.js +156 -0
  18. package/components/qds-checkbox.js.map +1 -0
  19. package/components/qds-dropdown.d.ts +11 -0
  20. package/components/qds-dropdown.js +259 -0
  21. package/components/qds-dropdown.js.map +1 -0
  22. package/components/qds-icon.d.ts +11 -0
  23. package/components/qds-icon.js +13 -0
  24. package/components/qds-icon.js.map +1 -0
  25. package/components/qds-inline-link.d.ts +11 -0
  26. package/components/qds-inline-link.js +89 -0
  27. package/components/qds-inline-link.js.map +1 -0
  28. package/components/qds-input.d.ts +11 -0
  29. package/components/qds-input.js +244 -0
  30. package/components/qds-input.js.map +1 -0
  31. package/components/qds-label.d.ts +11 -0
  32. package/components/qds-label.js +13 -0
  33. package/components/qds-label.js.map +1 -0
  34. package/components/qds-radio.d.ts +11 -0
  35. package/components/qds-radio.js +109 -0
  36. package/components/qds-radio.js.map +1 -0
  37. package/components/qds-switch.d.ts +11 -0
  38. package/components/qds-switch.js +119 -0
  39. package/components/qds-switch.js.map +1 -0
  40. package/components/qds-title.d.ts +11 -0
  41. package/components/qds-title.js +94 -0
  42. package/components/qds-title.js.map +1 -0
  43. package/components/qds-tooltip.d.ts +11 -0
  44. package/components/qds-tooltip.js +325 -0
  45. package/components/qds-tooltip.js.map +1 -0
  46. package/dist/cjs/floating-ui.dom.esm-71fa96af.js +1410 -0
  47. package/dist/cjs/floating-ui.dom.esm-71fa96af.js.map +1 -0
  48. package/dist/cjs/helpers-0b23af3f.js +184 -0
  49. package/dist/cjs/helpers-0b23af3f.js.map +1 -0
  50. package/dist/cjs/index-f19b2823.js +2030 -0
  51. package/dist/cjs/index-f19b2823.js.map +1 -0
  52. package/dist/cjs/index.cjs.js +115 -0
  53. package/dist/cjs/index.cjs.js.map +1 -0
  54. package/dist/cjs/library-4803c801.js +62 -0
  55. package/dist/cjs/library-4803c801.js.map +1 -0
  56. package/dist/cjs/loader.cjs.js +29 -0
  57. package/dist/cjs/loader.cjs.js.map +1 -0
  58. package/dist/cjs/qds-button.cjs.entry.js +110 -0
  59. package/dist/cjs/qds-button.cjs.entry.js.map +1 -0
  60. package/dist/cjs/qds-checkbox.cjs.entry.js +116 -0
  61. package/dist/cjs/qds-checkbox.cjs.entry.js.map +1 -0
  62. package/dist/cjs/qds-dropdown.cjs.entry.js +227 -0
  63. package/dist/cjs/qds-dropdown.cjs.entry.js.map +1 -0
  64. package/dist/cjs/qds-icon.cjs.entry.js +113 -0
  65. package/dist/cjs/qds-icon.cjs.entry.js.map +1 -0
  66. package/dist/cjs/qds-inline-link.cjs.entry.js +61 -0
  67. package/dist/cjs/qds-inline-link.cjs.entry.js.map +1 -0
  68. package/dist/cjs/qds-input.cjs.entry.js +200 -0
  69. package/dist/cjs/qds-input.cjs.entry.js.map +1 -0
  70. package/dist/cjs/qds-label.cjs.entry.js +39 -0
  71. package/dist/cjs/qds-label.cjs.entry.js.map +1 -0
  72. package/dist/cjs/qds-radio.cjs.entry.js +74 -0
  73. package/dist/cjs/qds-radio.cjs.entry.js.map +1 -0
  74. package/dist/cjs/qds-switch.cjs.entry.js +79 -0
  75. package/dist/cjs/qds-switch.cjs.entry.js.map +1 -0
  76. package/dist/cjs/qds-title.cjs.entry.js +66 -0
  77. package/dist/cjs/qds-title.cjs.entry.js.map +1 -0
  78. package/dist/cjs/qds-tooltip.cjs.entry.js +284 -0
  79. package/dist/cjs/qds-tooltip.cjs.entry.js.map +1 -0
  80. package/dist/cjs/qds.cjs.js +33 -0
  81. package/dist/cjs/qds.cjs.js.map +1 -0
  82. package/dist/custom-elements.json +3976 -0
  83. package/dist/docs.d.ts +148 -0
  84. package/dist/docs.json +3918 -0
  85. package/dist/esm/floating-ui.dom.esm-f96ac766.js +1402 -0
  86. package/dist/esm/floating-ui.dom.esm-f96ac766.js.map +1 -0
  87. package/dist/esm/helpers-5c189a19.js +174 -0
  88. package/dist/esm/helpers-5c189a19.js.map +1 -0
  89. package/dist/esm/index-1bc8e218.js +2000 -0
  90. package/dist/esm/index-1bc8e218.js.map +1 -0
  91. package/dist/esm/index.js +106 -0
  92. package/dist/esm/index.js.map +1 -0
  93. package/dist/esm/library-aa6893c0.js +58 -0
  94. package/dist/esm/library-aa6893c0.js.map +1 -0
  95. package/dist/esm/loader.js +25 -0
  96. package/dist/esm/loader.js.map +1 -0
  97. package/dist/esm/polyfills/core-js.js +11 -0
  98. package/dist/esm/polyfills/css-shim.js +1 -0
  99. package/dist/esm/polyfills/dom.js +79 -0
  100. package/dist/esm/polyfills/es5-html-element.js +1 -0
  101. package/dist/esm/polyfills/index.js +34 -0
  102. package/dist/esm/polyfills/system.js +6 -0
  103. package/dist/esm/qds-button.entry.js +106 -0
  104. package/dist/esm/qds-button.entry.js.map +1 -0
  105. package/dist/esm/qds-checkbox.entry.js +112 -0
  106. package/dist/esm/qds-checkbox.entry.js.map +1 -0
  107. package/dist/esm/qds-dropdown.entry.js +223 -0
  108. package/dist/esm/qds-dropdown.entry.js.map +1 -0
  109. package/dist/esm/qds-icon.entry.js +109 -0
  110. package/dist/esm/qds-icon.entry.js.map +1 -0
  111. package/dist/esm/qds-inline-link.entry.js +57 -0
  112. package/dist/esm/qds-inline-link.entry.js.map +1 -0
  113. package/dist/esm/qds-input.entry.js +196 -0
  114. package/dist/esm/qds-input.entry.js.map +1 -0
  115. package/dist/esm/qds-label.entry.js +35 -0
  116. package/dist/esm/qds-label.entry.js.map +1 -0
  117. package/dist/esm/qds-radio.entry.js +70 -0
  118. package/dist/esm/qds-radio.entry.js.map +1 -0
  119. package/dist/esm/qds-switch.entry.js +75 -0
  120. package/dist/esm/qds-switch.entry.js.map +1 -0
  121. package/dist/esm/qds-title.entry.js +62 -0
  122. package/dist/esm/qds-title.entry.js.map +1 -0
  123. package/dist/esm/qds-tooltip.entry.js +280 -0
  124. package/dist/esm/qds-tooltip.entry.js.map +1 -0
  125. package/dist/esm/qds.js +28 -0
  126. package/dist/esm/qds.js.map +1 -0
  127. package/dist/types/components/button/button.d.ts +209 -0
  128. package/dist/types/components/checkbox/checkbox.d.ts +136 -0
  129. package/dist/types/components/create-story.d.ts +5 -0
  130. package/dist/types/components/dropdown/dropdown.d.ts +135 -0
  131. package/dist/types/components/icon/default-library.d.ts +4 -0
  132. package/dist/types/components/icon/icon.d.ts +31 -0
  133. package/dist/types/components/icon/library.d.ts +19 -0
  134. package/dist/types/components/icon/request.d.ts +12 -0
  135. package/dist/types/components/icon/system-library.d.ts +4 -0
  136. package/dist/types/components/inline-link/inline-link.d.ts +208 -0
  137. package/dist/types/components/input/input.d.ts +386 -0
  138. package/dist/types/components/label/label.d.ts +33 -0
  139. package/dist/types/components/radio/radio.d.ts +110 -0
  140. package/dist/types/components/switch/switch.d.ts +115 -0
  141. package/dist/types/components/title/title.d.ts +42 -0
  142. package/dist/types/components/tooltip/tooltip.d.ts +147 -0
  143. package/dist/types/components.d.ts +1692 -0
  144. package/dist/types/helpers.d.ts +49 -0
  145. package/dist/types/index.d.ts +4 -0
  146. package/dist/types/qds-test.d.ts +18 -0
  147. package/dist/types/stencil-public-runtime.d.ts +1638 -0
  148. package/dist/types/utils.d.ts +65 -0
  149. package/dist/vscode.html-custom-data.json +947 -0
  150. package/hydrate/index.d.ts +218 -0
  151. package/hydrate/index.js +9690 -0
  152. package/hydrate/package.json +6 -0
  153. package/loader/cdn.js +7 -0
  154. package/loader/index.cjs.js +7 -0
  155. package/loader/index.d.ts +21 -0
  156. package/loader/index.es2017.js +7 -0
  157. package/loader/index.js +8 -0
  158. package/loader/package.json +11 -0
  159. package/package.json +231 -0
  160. package/styles/core.css +379 -0
@@ -0,0 +1,386 @@
1
+ import type { ComponentInterface } from '../../stencil-public-runtime';
2
+ export type AutoCapitalize = 'characters' | 'none' | 'off' | 'on' | 'sentences' | 'words';
3
+ export type AutoComplete = 'additional-name' | 'address-level1' | 'address-level2' | 'address-level3' | 'address-level4' | 'address-line1' | 'address-line2' | 'address-line3' | 'bday-day' | 'bday-month' | 'bday-year' | 'bday' | 'cc-additional-name' | 'cc-csc' | 'cc-exp-month' | 'cc-exp-year' | 'cc-exp' | 'cc-family-name' | 'cc-given-name' | 'cc-name' | 'cc-number' | 'cc-type' | 'country-name' | 'country' | 'current-password' | 'email' | 'family-name' | 'given-name' | 'honorific-prefix' | 'honorific-suffix' | 'impp' | 'language' | 'name' | 'new-password' | 'nickname' | 'off' | 'on' | 'one-time-code' | 'organization-title' | 'organization' | 'photo' | 'postal-code' | 'sex' | 'street-address' | 'tel-area-code' | 'tel-country-code' | 'tel-extension' | 'tel-local' | 'tel-national' | 'tel' | 'transaction-amount' | 'transaction-currency' | 'url' | 'username';
4
+ export type EnterKeyHint = 'done' | 'enter' | 'go' | 'next' | 'previous' | 'search' | 'send';
5
+ export type InputType = 'color' | 'date' | 'datetime-local' | 'email' | 'month' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'time' | 'url' | 'week';
6
+ export type InputMode = 'decimal' | 'email' | 'none' | 'numeric' | 'search' | 'tel' | 'text' | 'url';
7
+ export type InputSize = 'large' | 'small' | 'standard';
8
+ export type InputValue = number | string | null;
9
+ export type SelectDirection = 'backward' | 'forward' | 'none';
10
+ export type QdsInputEventDetail = Pick<InputEvent, 'data' | 'inputType' | 'isComposing'>;
11
+ /**
12
+ * The `<qds-input>` element is used to create interactive controls for
13
+ * web-based forms in order to accept data from the user; a wide variety of
14
+ * types of input data and control widgets are available, depending on the
15
+ * device and
16
+ * [user agent](https://developer.mozilla.org/docs/Glossary/User_agent).
17
+ *
18
+ * @see https://quartz.se.com/build/components/input
19
+ */
20
+ export declare class Input implements ComponentInterface {
21
+ /**
22
+ * Defines if the input is in an invalid state. Validity is determined by
23
+ * attributes such as `type`, `pattern`, `min`, `max`, `required`, `step`,
24
+ * `minlength`, and `maxlength` using
25
+ * [constraint validation](https://developer.mozilla.org/docs/Web/Guide/HTML/Constraint_validation).
26
+ */
27
+ invalid?: boolean;
28
+ /**
29
+ * The input's size.
30
+ *
31
+ * > **_NOTE:_** The native
32
+ * [`size` HTML attribute](https://developer.mozilla.org/docs/Web/HTML/Attributes/size)
33
+ * is not supported. CSS `width` should be used instead if this functionality
34
+ * is needed.
35
+ */
36
+ readonly size: InputSize;
37
+ /**
38
+ * Controls whether and how input is automatically capitalized as it is
39
+ * entered/edited by the user. Only valid for `search`, `tel`, and `text`
40
+ * inputs. Possible values:
41
+ *
42
+ * - `"off"` or `"none"`: No auto-capitalization is applied (all letters
43
+ * default to lowercase).
44
+ * - `"on"` or `"sentences"`: The first letter of each sentence defaults to a
45
+ * capital letter; all other letters default to lowercase.
46
+ * - `"words"`: The first letter of each word defaults to a capital letter;
47
+ * all other letters default to lowercase.
48
+ * - `"characters"`: All letters default to uppercase.
49
+ *
50
+ * @webnative
51
+ */
52
+ readonly autoCapitalize?: AutoCapitalize;
53
+ /**
54
+ * Indicates whether the value of the input can be automatically completed by
55
+ * the browser.
56
+ *
57
+ * @webnative
58
+ */
59
+ readonly autoComplete?: AutoComplete;
60
+ /**
61
+ * Specify whether the input should have focus when the page loads.
62
+ *
63
+ * @webnative
64
+ */
65
+ readonly autoFocus?: boolean;
66
+ /**
67
+ * Prevents the input from being interacted with: it cannot be pressed or
68
+ * focused.
69
+ *
70
+ * @webnative
71
+ */
72
+ disabled?: boolean;
73
+ /**
74
+ * What action label (or icon) to present for the enter key on virtual
75
+ * keyboards. Possible values:
76
+ *
77
+ * - `"done"`: Typically meaning there is nothing more to input and the input
78
+ * method editor (IME) will be closed.
79
+ * - `"enter"`: Typically inserting a new line.
80
+ * - `"go"`: Typically meaning to take the user to the target of the text
81
+ * they typed.
82
+ * - `"next"`: Typically taking the user to the next field that will accept
83
+ * text.
84
+ * - `"previous"`: Typically taking the user to the previous field that will
85
+ * accept text.
86
+ * - `"search"`: Typically taking the user to the results of searching for
87
+ * the text they have typed.
88
+ * - `"send"`: Typically delivering the text to its target.
89
+ *
90
+ * @webnative
91
+ */
92
+ readonly enterkeyhint?: EnterKeyHint;
93
+ /**
94
+ * The [`<form>`](https://developer.mozilla.org/docs/Web/HTML/Element/form)
95
+ * element to associate the input with (its form owner).
96
+ *
97
+ * The value of this attribute must be the id of a `<form>` in the same
98
+ * document. If this attribute is not set, the `<qds-input>` is associated
99
+ * with its ancestor `<form>` element, if any.
100
+ *
101
+ * This attribute lets you associate `<qds-input>` elements to `<form>`s
102
+ * anywhere in the document, not just inside a `<form>`. It can also override
103
+ * an ancestor `<form>` element.
104
+ *
105
+ * @webnative
106
+ */
107
+ readonly form?: string;
108
+ /**
109
+ * Provide a hint to browsers as to the type of virtual keyboard
110
+ * configuration to use when editing this element or its contents.
111
+ *
112
+ * @webnative
113
+ */
114
+ readonly inputmode?: InputMode;
115
+ /**
116
+ * Defines the greatest value in the range of permitted values. If the
117
+ * `value` entered into the input exceeds this, the input fails
118
+ * [constraint validation](https://developer.mozilla.org/docs/Web/Guide/HTML/Constraint_validation).
119
+ * Only valid for `date`, `datetime-local`, `month`, `time`, and `week`
120
+ * inputs.
121
+ *
122
+ * If this value isn't a valid number, then the input has no maximum value.
123
+ *
124
+ * @webnative
125
+ */
126
+ readonly max?: number | string;
127
+ /**
128
+ * The maximum number of characters (as UTF-16 code units) the user can enter
129
+ * into the input. This must be an non-negative integer value. If no
130
+ * `maxlength` is specified, or an invalid value is specified, the input has
131
+ * no maximum length. Only valid for `email`, `password`, `search`, `tel`,
132
+ * `text`, and `url` inputs.
133
+ *
134
+ * The input will fail
135
+ * [constraint validation](https://developer.mozilla.org/docs/Web/Guide/HTML/Constraint_validation)
136
+ * if the length of the text entered into the field is greater than
137
+ * `maxlength` UTF-16 code units long. By default, browsers prevent users
138
+ * from entering more characters than allowed by the `maxlength` attribute. See
139
+ * [Client-side validation](https://developer.mozilla.org/docs/Web/HTML/Element/input#client-side_validation)
140
+ * for more information.
141
+ *
142
+ * @webnative
143
+ */
144
+ readonly maxLength?: number;
145
+ /**
146
+ * Defines the most negative value in the range of permitted values. If the
147
+ * `value` entered into the input is less than this, the input fails
148
+ * [constraint validation](https://developer.mozilla.org/docs/Web/Guide/HTML/Constraint_validation).
149
+ * Only valid for `date`, `datetime-local`, `month`, `time`, and `week`
150
+ * inputs.
151
+ *
152
+ * This value must be less than or equal to the value of the `max` attribute.
153
+ * If this value isn't a valid number, then the input has no minimum value.
154
+ *
155
+ * @webnative
156
+ */
157
+ readonly min?: number | string;
158
+ /**
159
+ * The minimum number of characters (as UTF-16 code units) the user can enter
160
+ * into the input. This must be an non-negative integer value smaller than or
161
+ * equal to the value specified by `maxlength`. If no `minlength` is
162
+ * specified, or an invalid value is specified, the input has no minimum
163
+ * length. Only valid for `email`, `password`, `search`, `tel`, `text`, and
164
+ * `url` inputs.
165
+ *
166
+ * The input will fail
167
+ * [constraint validation](https://developer.mozilla.org/docs/Web/Guide/HTML/Constraint_validation)
168
+ * if the length of the text entered into the field is fewer than `minlength`
169
+ * UTF-16 code units long, preventing form submission. See
170
+ * [Client-side validation](https://developer.mozilla.org/docs/Web/HTML/Element/input#client-side_validation)
171
+ * for more information.
172
+ *
173
+ * @webnative
174
+ */
175
+ readonly minLength?: number;
176
+ /**
177
+ * Specifies if multiple comma-separated email addresses can be entered. Only
178
+ * valid for `email` inputs.
179
+ *
180
+ * @webnative
181
+ */
182
+ readonly multiple?: boolean;
183
+ /**
184
+ * The name of the control, which is submitted with the form data. An
185
+ * incrementing input ID is used by default.
186
+ *
187
+ * @webnative
188
+ */
189
+ readonly name: string;
190
+ /**
191
+ * Defines a regular expression that the input's `value` must match in order
192
+ * for the value to pass
193
+ * [constraint validation](https://developer.mozilla.org/docs/Web/Guide/HTML/Constraint_validation).
194
+ * It must be a valid JavaScript regular expression, as used by the
195
+ * [`RegExp`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)
196
+ * type, and as documented in MDN's
197
+ * [guide on regular expressions](https://developer.mozilla.org/docs/Web/JavaScript/Guide/Regular_Expressions);
198
+ * the `'u'` flag is specified when compiling the regular expression, so that
199
+ * the pattern is treated as a sequence of Unicode code points, instead of as
200
+ * ASCII. No forward slashes should be specified around the pattern text.
201
+ * Only valid for `email`, `password`, `search`, `tel`, `text`, and `url`
202
+ * inputs.
203
+ *
204
+ * If the `pattern` is invalid, no regular expression is applied and this
205
+ * property is ignored. If the pattern is valid and a non-empty value does
206
+ * not match the pattern, constraint validation will prevent form submission.
207
+ *
208
+ * @webnative
209
+ */
210
+ readonly pattern?: string;
211
+ /**
212
+ * Text that appears in the input when it has no value set. Only valid for
213
+ * `email`, `number`, `password`, `search`, `tel`, `text`, and `url` inputs.
214
+ *
215
+ * @webnative
216
+ */
217
+ readonly placeholder?: string;
218
+ /**
219
+ * The value of the input cannot be edited. Not valid for `color` inputs.
220
+ *
221
+ * @webnative
222
+ */
223
+ readonly readOnly?: boolean;
224
+ /**
225
+ * A value must be specified for the input before the owning form can be
226
+ * submitted. Not valid for `color` inputs.
227
+ *
228
+ * See
229
+ * [Client-side validation](https://developer.mozilla.org/docs/Web/HTML/Element/input#client-side_validation)
230
+ * and the
231
+ * [HTML attribute: `required`](https://developer.mozilla.org/docs/Web/HTML/Attributes/required)
232
+ * for more information.
233
+ *
234
+ * @webnative
235
+ */
236
+ readonly required?: boolean;
237
+ /**
238
+ * Defines whether the input may be checked for spelling errors.
239
+ *
240
+ * @webnative
241
+ */
242
+ readonly spellCheck?: boolean;
243
+ /**
244
+ * Specifies the granularity that the `value` must adhere to. Only valid for
245
+ * `date`, `datetime-local`, `month`, `number`, `time`, and `week` inputs.
246
+ *
247
+ * The value must be a positive number—integer or float—or the special value
248
+ * `any`, which means no stepping is implied, and any value is allowed
249
+ * (barring other constraints, such as `min` and `max`).
250
+ *
251
+ * If `any` is not explicitly set, valid values for the `number` are the
252
+ * basis for stepping — the `min` value and increments of the step value, up
253
+ * to the `max` value, if specified.
254
+ *
255
+ * @webnative
256
+ */
257
+ readonly step?: number | 'any';
258
+ /**
259
+ * The type of input to render:
260
+ *
261
+ * - `"date"`: An input for entering a date (year, month, and day, with no
262
+ * time). Opens a date picker or numeric wheels for year, month, day when
263
+ * active in supporting browsers.
264
+ * - `"datetime-local"`: An input for entering a date and time, with no time
265
+ * zone. Opens a date picker or numeric wheels for date and time components
266
+ * when active in supporting browsers.
267
+ * - `"email"`: An input for editing an email address. Looks like a `"text"`
268
+ * input, but has validation parameters and relevant keyboard in supporting
269
+ * browsers and devices with dynamic keyboards.
270
+ * - `"month"`: An input for entering a month and year, with no time zone.
271
+ * - `"number"`: An input for entering a number. Displays a spinner and adds
272
+ * default validation when supported. Displays a numeric keypad in some
273
+ * devices with dynamic keypads.
274
+ * - `"password"`: A single-line text input whose value is obscured. Will
275
+ * alert user if site is not secure.
276
+ * - `"search"`: A single-line text input for entering search strings.
277
+ * Line-breaks are automatically removed from the input value. May include a
278
+ * delete icon in supporting browsers that can be used to clear the input.
279
+ * Displays a search icon instead of enter key on some devices with dynamic
280
+ * keypads.
281
+ * - `"tel"`: An input for entering a telephone number. Displays a telephone
282
+ * keypad in some devices with dynamic keypads.
283
+ * - `"text"`: A single-line text input. Line-breaks are automatically
284
+ * removed from the input value.
285
+ * - `"time"`: An input for entering a time value with no time zone.
286
+ * - `"url"`: An input for entering a URL. Looks like a `"text"` input, but
287
+ * has validation parameters and relevant keyboard in supporting browsers and
288
+ * devices with dynamic keyboards.
289
+ * - `"week"`: An input for entering a date consisting of a week-year number
290
+ * and a week number with no time zone.
291
+ *
292
+ * @webnative
293
+ */
294
+ readonly type?: InputType;
295
+ /**
296
+ * The value of the input.
297
+ *
298
+ * @webnative
299
+ */
300
+ value?: InputValue;
301
+ /**
302
+ * Emitted when the input loses focus.
303
+ */
304
+ private readonly blurEmitter;
305
+ /**
306
+ * Emitted when an alteration to the input's value is committed by the user.
307
+ */
308
+ private readonly changeEmitter;
309
+ /**
310
+ * Emitted when the input gains focus.
311
+ */
312
+ private readonly focusEmitter;
313
+ /**
314
+ * Emitted when the input's value changes.
315
+ */
316
+ private readonly inputEmitter;
317
+ private readonly element;
318
+ private inheritedAttributes;
319
+ private input?;
320
+ private get computedDisabled();
321
+ /**
322
+ * Returns true if the element's value passes validity checks; otherwise,
323
+ * returns false, fires an invalid event at the element, and (if the event
324
+ * isn't canceled) reports the problem to the user.
325
+ */
326
+ reportValidity(): Promise<boolean>;
327
+ /**
328
+ * Selects the entire content of the `<qds-input>` element if the element's
329
+ * content is selectable.
330
+ */
331
+ select(): Promise<void>;
332
+ /**
333
+ * Sets a custom validity message for the input. If this message is not the
334
+ * empty string, then the element is considered invalid.
335
+ */
336
+ setCustomValidity(message: string): Promise<void>;
337
+ /**
338
+ * Sets the contents of the specified range of characters in the input element to a given string.
339
+ *
340
+ * @param replacement The string to insert.
341
+ * @param start The 0-based index of the first character to replace. Defaults to the current selectionStart value (the start of the user's current selection).
342
+ * @param end The 0-based index of the character _after_ the last character to replace. Defaults to the current selectionEnd value (the end of the user's current selection).
343
+ * @param selectionMode A string defining how the selection should be set after the text has been replaced. Possible values:
344
+ *
345
+ * - `"select"` selects the newly inserted text.
346
+ * - `"start"` moves the selection to just before the inserted text.
347
+ * - `"end"` moves the selection to just after the inserted text.
348
+ * - `"preserve"` attempts to preserve the selection.
349
+ */
350
+ setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): Promise<void>;
351
+ /**
352
+ * Selects the specified range of characters within the input.
353
+ *
354
+ * @param start The offset into the input for the start of the selection.
355
+ * @param end The offset into the input for the end of the selection.
356
+ * @param direction The direction in which the selection is performed.
357
+ */
358
+ setSelectionRange(start: number | null, end: number | null, direction?: SelectDirection): Promise<void>;
359
+ /**
360
+ * Decrements the `value` by (`step` * n), where n defaults to 1 if not
361
+ * specified.
362
+ *
363
+ * @param n Amount to decrement the value by.
364
+ */
365
+ stepDown(n?: number): Promise<void>;
366
+ /**
367
+ * Increments the `value` by (`step` * n), where n defaults to 1 if not
368
+ * specified.
369
+ *
370
+ * @param n Amount to increment the value by.
371
+ */
372
+ stepUp(n?: number): Promise<void>;
373
+ protected disabledChanged(): void;
374
+ protected stepChanged(): void;
375
+ protected valueChanged(): void;
376
+ componentWillLoad(): void;
377
+ render(): any;
378
+ private readonly ref;
379
+ private readonly onBlur;
380
+ private readonly onChange;
381
+ private readonly onClick;
382
+ private readonly onFocus;
383
+ private readonly onInput;
384
+ private readonly onInvalid;
385
+ }
386
+ //# sourceMappingURL=input.d.ts.map
@@ -0,0 +1,33 @@
1
+ import type { ComponentInterface } from '../../stencil-public-runtime';
2
+ export type LabelSize = 'large' | 'small' | 'standard';
3
+ /**
4
+ * `<qds-label>` elements represent a caption for an item in a user interface.
5
+ *
6
+ * @see https://quartz.se.com/build/components/label
7
+ */
8
+ export declare class Label implements ComponentInterface {
9
+ /**
10
+ * Adds vertical margin to the label for alignment.
11
+ *
12
+ * This is useful when creating inline layouts so that the first lines have
13
+ * the correct vertical centering.
14
+ */
15
+ readonly inline: boolean;
16
+ /**
17
+ * Specify the labelled item as required by appending a red asterisk (*).
18
+ */
19
+ readonly required: boolean;
20
+ /**
21
+ * The label's size.
22
+ */
23
+ readonly size: LabelSize;
24
+ /**
25
+ * The label's text.
26
+ */
27
+ readonly text?: string;
28
+ private readonly element;
29
+ private inheritedAttributes;
30
+ componentWillLoad(): void;
31
+ render(): any;
32
+ }
33
+ //# sourceMappingURL=label.d.ts.map
@@ -0,0 +1,110 @@
1
+ import type { ComponentInterface } from '../../stencil-public-runtime';
2
+ export type RadioValue = number | string | null;
3
+ export type RadioSize = 'large' | 'small' | 'standard';
4
+ /**
5
+ * `<qds-radio>` elements are rendered as circles that are filled when
6
+ * selected. They are generally used in **radio groups** — collections of radio
7
+ * buttons describing a set of related options.
8
+ *
9
+ * Only one radio button in a given radio group can be selected at the same
10
+ * time.
11
+ *
12
+ * @see https://quartz.se.com/build/components/radio
13
+ */
14
+ export declare class Radio implements ComponentInterface {
15
+ /**
16
+ * Adds vertical margin to the radio for alignment.
17
+ *
18
+ * This is useful when creating inline layouts so that the first lines have
19
+ * the correct vertical centering.
20
+ */
21
+ readonly inline: boolean;
22
+ /**
23
+ * The radio button's size.
24
+ */
25
+ readonly size: RadioSize;
26
+ /**
27
+ * The radio button's text.
28
+ */
29
+ readonly text?: string;
30
+ /**
31
+ * Sets the radio button's state.
32
+ *
33
+ * @webnative
34
+ */
35
+ checked?: boolean;
36
+ /**
37
+ * Prevents the radio button from being interacted with: it cannot be pressed
38
+ * or focused.
39
+ *
40
+ * @webnative
41
+ */
42
+ disabled?: boolean;
43
+ /**
44
+ * The [`<form>`](https://developer.mozilla.org/docs/Web/HTML/Element/form)
45
+ * element to associate the radio button with (its form owner).
46
+ *
47
+ * The value of this property must be the id of a `<form>` in the same
48
+ * document. If this property is not set, the `<qds-radio>` is associated
49
+ * with its ancestor `<form>` element, if any.
50
+ *
51
+ * This property lets you associate `<qds-radio>` elements to `<form>`s
52
+ * anywhere in the document, not just inside a `<form>`. It can also override
53
+ * an ancestor `<form>` element.
54
+ *
55
+ * @webnative
56
+ */
57
+ readonly form?: string;
58
+ /**
59
+ * Specify the radio group this radio button belongs to.
60
+ *
61
+ * Once a radio group is established, selecting any radio button in that
62
+ * group automatically deselects any currently-selected radio button in the
63
+ * same group.
64
+ *
65
+ * @webnative
66
+ */
67
+ readonly name?: string;
68
+ /**
69
+ * Specify the group the radio button belongs to as required.
70
+ *
71
+ * If any radio button in a same-named group of radio buttons has the
72
+ * `required` attribute, a radio button in that group must be checked,
73
+ * although it doesn't have to be the one with the attribute applied.
74
+ *
75
+ * @webnative
76
+ */
77
+ readonly required?: boolean;
78
+ /**
79
+ * The value of the radio button, submitted as a name/value pair with form
80
+ * data.
81
+ *
82
+ * @webnative
83
+ */
84
+ value?: RadioValue;
85
+ /**
86
+ * Emitted when the radio button loses focus.
87
+ */
88
+ private readonly blurEmitter;
89
+ /**
90
+ * Emitted when the radio button is checked by the user.
91
+ */
92
+ private readonly changeEmitter;
93
+ /**
94
+ * Emitted when the radio button gains focus.
95
+ */
96
+ private readonly focusEmitter;
97
+ private readonly element;
98
+ private inheritedAttributes;
99
+ private input?;
100
+ private get computedDisabled();
101
+ private get hasText();
102
+ protected onClick(): void;
103
+ componentWillLoad(): void;
104
+ render(): any;
105
+ private readonly ref;
106
+ private readonly onBlur;
107
+ private readonly onChange;
108
+ private readonly onFocus;
109
+ }
110
+ //# sourceMappingURL=radio.d.ts.map
@@ -0,0 +1,115 @@
1
+ import type { ComponentInterface } from '../../stencil-public-runtime';
2
+ export type SwitchValue = number | string | null;
3
+ export type SwitchSize = 'large' | 'small' | 'standard';
4
+ /**
5
+ * @see https://quartz.se.com/build/components/switch
6
+ */
7
+ export declare class Switch implements ComponentInterface {
8
+ /**
9
+ * Adds vertical margin to the switch for alignment.
10
+ *
11
+ * This is useful when creating inline layouts so that the first lines have
12
+ * the correct vertical centering.
13
+ */
14
+ readonly inline: boolean;
15
+ /**
16
+ * The name of the checked icon to render.
17
+ *
18
+ * Available names depend on the icon library being used.
19
+ */
20
+ readonly iconCheckedName?: string;
21
+ /**
22
+ * The name of a registered checked icon library.
23
+ */
24
+ readonly iconCheckedLibrary: string;
25
+ /**
26
+ * The name of the unchecked icon to render.
27
+ *
28
+ * Available names depend on the icon library being used.
29
+ */
30
+ readonly iconUncheckedName?: string;
31
+ /**
32
+ * The name of a registered unchecked icon library.
33
+ */
34
+ readonly iconUncheckedLibrary: string;
35
+ /**
36
+ * The switches's size.
37
+ */
38
+ readonly size: SwitchSize;
39
+ /**
40
+ * The switch's checked text.
41
+ */
42
+ readonly textChecked?: string;
43
+ /**
44
+ * The switch's unchecked text.
45
+ */
46
+ readonly textUnchecked?: string;
47
+ /**
48
+ * Specify whether the switch should have focus when the page loads.
49
+ *
50
+ * @webnative
51
+ */
52
+ readonly autoFocus?: boolean;
53
+ /**
54
+ *Sets the switch's state.
55
+ *
56
+ * @webnative
57
+ */
58
+ checked?: boolean;
59
+ /**
60
+ * Prevents the switch from being interacted with: it cannot be pressed or
61
+ *focused.
62
+ *
63
+ * @webnative
64
+ */
65
+ disabled?: boolean;
66
+ /**
67
+ * The [`<form>`](https://developer.mozilla.org/docs/Web/HTML/Element/form)
68
+ * element to associate the switch with (its form owner).
69
+ *
70
+ * The value of this property must be the id of a `<form>` in the same
71
+ * document. If this property is not set, the `<qds-switch>` is associated
72
+ * with its ancestor `<form>` element, if any.
73
+ *
74
+ * This property lets you associate `<qds-switch>` elements to `<form>`s
75
+ * anywhere in the document, not just inside a `<form>`. It can also override
76
+ *an ancestor `<form>` element.
77
+ *
78
+ * @webnative
79
+ */
80
+ readonly form?: string;
81
+ /**
82
+ * The name of the switch, which is submitted with the form data. An
83
+ *incrementing ID is used by default.
84
+ *
85
+ * @webnative
86
+ */
87
+ readonly name: string;
88
+ /**
89
+ * The value of the switch, submitted as a name/value pair with form data.
90
+ *
91
+ * @webnative
92
+ */
93
+ value?: SwitchValue;
94
+ /**
95
+ * Emitted when the switch loses focus.
96
+ */
97
+ private readonly blurEmitter;
98
+ /**
99
+ * Emitted when a change to the switch's state is committed by the user.
100
+ */
101
+ private readonly changeEmitter;
102
+ /**
103
+ * Emitted when the switch gains focus.
104
+ */
105
+ private readonly focusEmitter;
106
+ private readonly element;
107
+ private inheritedAttributes;
108
+ private get computedDisabled();
109
+ protected onClick(event: MouseEvent): void;
110
+ componentWillLoad(): void;
111
+ render(): any;
112
+ private readonly onBlur;
113
+ private readonly onFocus;
114
+ }
115
+ //# sourceMappingURL=switch.d.ts.map
@@ -0,0 +1,42 @@
1
+ import type { ComponentInterface } from '../../stencil-public-runtime';
2
+ export type Layer = 'accessory' | 'main' | 'navigation' | 'panel' | 'popup';
3
+ export type Level = 'section' | 'subsection';
4
+ export type Tag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
5
+ /**
6
+ * @slot Content to display for the title.
7
+ * @see https://quartz.se.com/build/components/title
8
+ */
9
+ export declare class Title implements ComponentInterface {
10
+ /**
11
+ * The name of the icon to render.
12
+ *
13
+ * Available names depend on the icon library being used.
14
+ */
15
+ readonly iconName?: string;
16
+ /**
17
+ * The name of a registered icon library.
18
+ */
19
+ readonly iconLibrary: string;
20
+ /**
21
+ * Text to display for the kicker.
22
+ */
23
+ readonly kicker?: string;
24
+ readonly layer: Layer;
25
+ readonly level?: Level;
26
+ /**
27
+ * Text to display for the subtitle.
28
+ */
29
+ readonly subtitle?: string;
30
+ /**
31
+ * HTML tag to use to render the title.
32
+ */
33
+ readonly tag: Tag;
34
+ private readonly element;
35
+ private inheritedAttributes;
36
+ private get hasSubtitle();
37
+ private get hasKicker();
38
+ private get hasIcon();
39
+ componentWillLoad(): void;
40
+ render(): any;
41
+ }
42
+ //# sourceMappingURL=title.d.ts.map