@dodona/papyros 0.2.1 → 0.2.4

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.
@@ -74,7 +74,15 @@ export declare function renderButton(options: ButtonOptions): string;
74
74
  * @param {T} selected The initially selected element in the list, if any
75
75
  * @return {string} The string representation of the select options
76
76
  */
77
- export declare function getSelectOptions<T>(options: Array<T>, optionText: (option: T) => string, selected?: T): string;
77
+ export declare function renderSelectOptions<T>(options: Array<T>, optionText: (option: T) => string, selected?: T): string;
78
+ /**
79
+ * Build a string representation of an HTML label element
80
+ * @param {string} labelText Optional text to display in a label
81
+ * If not provided, no label is created
82
+ * @param {string} forElement The id of the element this label is for
83
+ * @return {string} The HTML string of the label
84
+ */
85
+ export declare function renderLabel(labelText: string | undefined, forElement: string): string;
78
86
  /**
79
87
  * Constructs an HTML select element
80
88
  * @param {string} selectId The HTML id for the element
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dodona/papyros",
3
- "version": "0.2.1",
3
+ "version": "0.2.4",
4
4
  "private": false,
5
5
  "homepage": ".",
6
6
  "devDependencies": {