@brightspace-ui/core 3.175.0 → 3.175.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/components/inputs/docs/input-numeric.md +2 -2
- package/components/inputs/docs/input-text.md +1 -1
- package/components/inputs/input-number.js +1 -1
- package/components/inputs/input-percent.js +1 -1
- package/components/inputs/input-text.js +2 -2
- package/components/inputs/input-textarea.js +2 -2
- package/custom-elements.json +8 -8
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ The `<d2l-input-number>` element is similar to `<d2l-input-text>`, except it's i
|
|
|
38
38
|
| `autocomplete` | String | Specifies which types of values [can be autofilled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) by the browser. |
|
|
39
39
|
| `autofocus` | Boolean, default: `false` | When set, will automatically place focus on the input. |
|
|
40
40
|
| `disabled` | Boolean, default: `false` | Disables the input. |
|
|
41
|
-
| `input-width` | String, default: `4rem` | Restricts the maximum width of the input box without
|
|
41
|
+
| `input-width` | String, default: `4rem` | Restricts the maximum width of the input box without restricting the width of the label. |
|
|
42
42
|
| `label-hidden` | Boolean, default: `false` | Hides the label visually. Hidden labels are still read by screen readers so make sure to set an appropriate label. |
|
|
43
43
|
| `labelled-by` | String | HTML id of an element in the same shadow root which acts as the input's label |
|
|
44
44
|
| `max` | Number | Maximum value allowed. |
|
|
@@ -100,7 +100,7 @@ The `<d2l-input-percent>` element is similar to `<d2l-input-number>`, except it
|
|
|
100
100
|
| `label` | String, required | Explicitly defined label for the element. |
|
|
101
101
|
| `autofocus` | Boolean, default: `false` | When set, will automatically place focus on the input. |
|
|
102
102
|
| `disabled` | Boolean, default: `false` | Disables the input. |
|
|
103
|
-
| `input-width` | String, default: `4rem` | Restricts the maximum width of the input box without
|
|
103
|
+
| `input-width` | String, default: `4rem` | Restricts the maximum width of the input box without restricting the width of the label. |
|
|
104
104
|
| `label-hidden` | Boolean, default: `false` | Hides the label visually. Hidden labels are still read by screen readers so make sure to set an appropriate label. |
|
|
105
105
|
| `max-fraction-digits` | Number | Maximum number of digits allowed after the decimal place. |
|
|
106
106
|
| `min-fraction-digits` | Number | Minimum number of digits allowed after the decimal place. |
|
|
@@ -53,7 +53,7 @@ The `<d2l-input-text>` element is a simple wrapper around the native `<input typ
|
|
|
53
53
|
| `autofocus` | Boolean | When set, will automatically place focus on the input |
|
|
54
54
|
| `description` | String | A description to be added to the `input` for accessibility |
|
|
55
55
|
| `disabled` | Boolean | Disables the input |
|
|
56
|
-
| `input-width` | String, default: `100%` | Restricts the maximum width of the input box without
|
|
56
|
+
| `input-width` | String, default: `100%` | Restricts the maximum width of the input box without restricting the width of the label |
|
|
57
57
|
| `instructions` | String | Additional information relating to how to use the component |
|
|
58
58
|
| `label-hidden` | Boolean | Hides the label visually (moves it to the input's `aria-label` attribute) |
|
|
59
59
|
| `labelled-by` | String | HTML id of an element in the same shadow root which acts as the input's label |
|
|
@@ -102,7 +102,7 @@ class InputNumber extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixi
|
|
|
102
102
|
*/
|
|
103
103
|
hideInvalidIcon: { attribute: 'hide-invalid-icon', type: Boolean, reflect: true },
|
|
104
104
|
/**
|
|
105
|
-
* Restricts the maximum width of the input box without
|
|
105
|
+
* Restricts the maximum width of the input box without restricting the width of the label
|
|
106
106
|
* @type {string}
|
|
107
107
|
*/
|
|
108
108
|
inputWidth: { attribute: 'input-width', type: String },
|
|
@@ -28,7 +28,7 @@ class InputPercent extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMix
|
|
|
28
28
|
*/
|
|
29
29
|
disabled: { type: Boolean },
|
|
30
30
|
/**
|
|
31
|
-
* Restricts the maximum width of the input box without
|
|
31
|
+
* Restricts the maximum width of the input box without restricting the width of the label.
|
|
32
32
|
* @type {string}
|
|
33
33
|
*/
|
|
34
34
|
inputWidth: { attribute: 'input-width', type: String },
|
|
@@ -72,7 +72,7 @@ class InputText extends InputInlineHelpMixin(PropertyRequiredMixin(FocusMixin(La
|
|
|
72
72
|
*/
|
|
73
73
|
hideInvalidTooltip: { attribute: 'hide-invalid-tooltip', type: Boolean, reflect: true },
|
|
74
74
|
/**
|
|
75
|
-
* Restricts the maximum width of the input box without
|
|
75
|
+
* Restricts the maximum width of the input box without restricting the width of the label.
|
|
76
76
|
* @type {string}
|
|
77
77
|
*/
|
|
78
78
|
inputWidth: { attribute: 'input-width', type: String },
|
|
@@ -431,7 +431,7 @@ class InputText extends InputInlineHelpMixin(PropertyRequiredMixin(FocusMixin(La
|
|
|
431
431
|
maxWidth: this.inputWidth
|
|
432
432
|
};
|
|
433
433
|
const labelStyles = {
|
|
434
|
-
minWidth: this.skeleton ?
|
|
434
|
+
minWidth: this.inputWidth && !this.skeleton ? `min(100%, ${this.inputWidth})` : undefined
|
|
435
435
|
};
|
|
436
436
|
|
|
437
437
|
const firstSlotName = (this.dir === 'rtl') ? 'right' : 'left';
|
|
@@ -40,7 +40,7 @@ class InputTextArea extends InputInlineHelpMixin(FocusMixin(LabelledMixin(FormEl
|
|
|
40
40
|
*/
|
|
41
41
|
disabled: { type: Boolean, reflect: true },
|
|
42
42
|
/**
|
|
43
|
-
* Restricts the maximum width of the input box without
|
|
43
|
+
* Restricts the maximum width of the input box without restricting the width of the label.
|
|
44
44
|
* @type {string}
|
|
45
45
|
*/
|
|
46
46
|
inputWidth: { attribute: 'input-width', type: String },
|
|
@@ -229,7 +229,7 @@ class InputTextArea extends InputInlineHelpMixin(FocusMixin(LabelledMixin(FormEl
|
|
|
229
229
|
maxWidth: this.inputWidth
|
|
230
230
|
};
|
|
231
231
|
const labelStyles = {
|
|
232
|
-
minWidth: this.skeleton ?
|
|
232
|
+
minWidth: this.inputWidth && !this.skeleton ? `min(100%, ${this.inputWidth})` : undefined
|
|
233
233
|
};
|
|
234
234
|
|
|
235
235
|
const textarea = html`
|
package/custom-elements.json
CHANGED
|
@@ -6651,7 +6651,7 @@
|
|
|
6651
6651
|
},
|
|
6652
6652
|
{
|
|
6653
6653
|
"name": "input-width",
|
|
6654
|
-
"description": "Restricts the maximum width of the input box without
|
|
6654
|
+
"description": "Restricts the maximum width of the input box without restricting the width of the label",
|
|
6655
6655
|
"type": "string",
|
|
6656
6656
|
"default": "\"4rem\""
|
|
6657
6657
|
},
|
|
@@ -6784,7 +6784,7 @@
|
|
|
6784
6784
|
{
|
|
6785
6785
|
"name": "inputWidth",
|
|
6786
6786
|
"attribute": "input-width",
|
|
6787
|
-
"description": "Restricts the maximum width of the input box without
|
|
6787
|
+
"description": "Restricts the maximum width of the input box without restricting the width of the label",
|
|
6788
6788
|
"type": "string",
|
|
6789
6789
|
"default": "\"4rem\""
|
|
6790
6790
|
},
|
|
@@ -6885,7 +6885,7 @@
|
|
|
6885
6885
|
"attributes": [
|
|
6886
6886
|
{
|
|
6887
6887
|
"name": "input-width",
|
|
6888
|
-
"description": "Restricts the maximum width of the input box without
|
|
6888
|
+
"description": "Restricts the maximum width of the input box without restricting the width of the label.",
|
|
6889
6889
|
"type": "string"
|
|
6890
6890
|
},
|
|
6891
6891
|
{
|
|
@@ -6946,7 +6946,7 @@
|
|
|
6946
6946
|
{
|
|
6947
6947
|
"name": "inputWidth",
|
|
6948
6948
|
"attribute": "input-width",
|
|
6949
|
-
"description": "Restricts the maximum width of the input box without
|
|
6949
|
+
"description": "Restricts the maximum width of the input box without restricting the width of the label.",
|
|
6950
6950
|
"type": "string"
|
|
6951
6951
|
},
|
|
6952
6952
|
{
|
|
@@ -7381,7 +7381,7 @@
|
|
|
7381
7381
|
},
|
|
7382
7382
|
{
|
|
7383
7383
|
"name": "input-width",
|
|
7384
|
-
"description": "Restricts the maximum width of the input box without
|
|
7384
|
+
"description": "Restricts the maximum width of the input box without restricting the width of the label.",
|
|
7385
7385
|
"type": "string"
|
|
7386
7386
|
},
|
|
7387
7387
|
{
|
|
@@ -7547,7 +7547,7 @@
|
|
|
7547
7547
|
{
|
|
7548
7548
|
"name": "inputWidth",
|
|
7549
7549
|
"attribute": "input-width",
|
|
7550
|
-
"description": "Restricts the maximum width of the input box without
|
|
7550
|
+
"description": "Restricts the maximum width of the input box without restricting the width of the label.",
|
|
7551
7551
|
"type": "string"
|
|
7552
7552
|
},
|
|
7553
7553
|
{
|
|
@@ -7766,7 +7766,7 @@
|
|
|
7766
7766
|
},
|
|
7767
7767
|
{
|
|
7768
7768
|
"name": "input-width",
|
|
7769
|
-
"description": "Restricts the maximum width of the input box without
|
|
7769
|
+
"description": "Restricts the maximum width of the input box without restricting the width of the label.",
|
|
7770
7770
|
"type": "string"
|
|
7771
7771
|
},
|
|
7772
7772
|
{
|
|
@@ -7862,7 +7862,7 @@
|
|
|
7862
7862
|
{
|
|
7863
7863
|
"name": "inputWidth",
|
|
7864
7864
|
"attribute": "input-width",
|
|
7865
|
-
"description": "Restricts the maximum width of the input box without
|
|
7865
|
+
"description": "Restricts the maximum width of the input box without restricting the width of the label.",
|
|
7866
7866
|
"type": "string"
|
|
7867
7867
|
},
|
|
7868
7868
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.175.
|
|
3
|
+
"version": "3.175.1",
|
|
4
4
|
"description": "A collection of accessible, free, open-source web components for building Brightspace applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/BrightspaceUI/core.git",
|