@momentum-design/components 0.16.2 → 0.16.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,5 +7,5 @@ const styles = [hostFitContentStyles, css `
7
7
  outline: none;
8
8
  border-radius: 0.25rem;
9
9
  }
10
- `, hostFocusRingStyles];
10
+ `, ...hostFocusRingStyles()];
11
11
  export default styles;
@@ -65,11 +65,6 @@ declare class Button extends Buttonsimple {
65
65
  * @default default
66
66
  */
67
67
  color: ButtonColor;
68
- /**
69
- * The tabindex of the button.
70
- * @default 0
71
- */
72
- tabIndex: number;
73
68
  /**
74
69
  * This property defines the ARIA role for the element. By default, it is set to 'button'.
75
70
  * Consumers should override this role when:
@@ -69,11 +69,6 @@ class Button extends Buttonsimple {
69
69
  * @default default
70
70
  */
71
71
  this.color = DEFAULTS.COLOR;
72
- /**
73
- * The tabindex of the button.
74
- * @default 0
75
- */
76
- this.tabIndex = 0;
77
72
  /**
78
73
  * This property defines the ARIA role for the element. By default, it is set to 'button'.
79
74
  * Consumers should override this role when:
@@ -238,10 +233,6 @@ __decorate([
238
233
  property({ type: String }),
239
234
  __metadata("design:type", String)
240
235
  ], Button.prototype, "color", void 0);
241
- __decorate([
242
- property({ type: Number, reflect: true }),
243
- __metadata("design:type", Object)
244
- ], Button.prototype, "tabIndex", void 0);
245
236
  __decorate([
246
237
  property({ type: String, reflect: true }),
247
238
  __metadata("design:type", Object)
@@ -1,6 +1,7 @@
1
1
  import { CSSResult, PropertyValueMap } from 'lit';
2
2
  import { Component } from '../../models';
3
3
  import { ButtonSize, ButtonType } from './buttonsimple.types';
4
+ declare const Buttonsimple_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/TabIndexMixin").TabIndexMixinInterface> & import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/DisabledMixin").DisabledMixinInterface> & typeof Component;
4
5
  /**
5
6
  * `mdc-buttonsimple` is a component that can be configured in various ways to suit different use cases.
6
7
  * It is used as an internal component and is not intended to be used directly by consumers.
@@ -9,7 +10,7 @@ import { ButtonSize, ButtonType } from './buttonsimple.types';
9
10
  * @tagname mdc-buttonsimple
10
11
  *
11
12
  */
12
- declare class Buttonsimple extends Component {
13
+ declare class Buttonsimple extends Buttonsimple_base {
13
14
  /**
14
15
  * The button's active state indicates whether it is currently toggled on (active) or off (inactive).
15
16
  * When the active state is true, the button is considered to be in an active state, meaning it is toggled on.
@@ -17,12 +18,6 @@ declare class Buttonsimple extends Component {
17
18
  * @default false
18
19
  */
19
20
  active: boolean;
20
- /**
21
- * Indicates whether the button is disabled.
22
- * When the button is disabled for user interaction; it is not focusable or clickable.
23
- * @default false
24
- */
25
- disabled: boolean;
26
21
  /**
27
22
  * Indicates whether the button is soft disabled.
28
23
  * When set to `true`, the button appears visually disabled but still allows
@@ -39,11 +34,6 @@ declare class Buttonsimple extends Component {
39
34
  * @default 32
40
35
  */
41
36
  size: ButtonSize;
42
- /**
43
- * The tabindex of the button.
44
- * @default 0
45
- */
46
- tabIndex: number;
47
37
  /**
48
38
  * This property defines the ARIA role for the element. By default, it is set to 'button'.
49
39
  * Consumers should override this role when:
@@ -12,6 +12,8 @@ import { property } from 'lit/decorators.js';
12
12
  import styles from './buttonsimple.styles';
13
13
  import { Component } from '../../models';
14
14
  import { BUTTON_TYPE, DEFAULTS } from './buttonsimple.constants';
15
+ import { DisabledMixin } from '../../utils/mixins/DisabledMixin';
16
+ import { TabIndexMixin } from '../../utils/mixins/TabIndexMixin';
15
17
  /**
16
18
  * `mdc-buttonsimple` is a component that can be configured in various ways to suit different use cases.
17
19
  * It is used as an internal component and is not intended to be used directly by consumers.
@@ -20,7 +22,7 @@ import { BUTTON_TYPE, DEFAULTS } from './buttonsimple.constants';
20
22
  * @tagname mdc-buttonsimple
21
23
  *
22
24
  */
23
- class Buttonsimple extends Component {
25
+ class Buttonsimple extends TabIndexMixin(DisabledMixin(Component)) {
24
26
  /** @internal */
25
27
  get form() {
26
28
  return this.internals.form;
@@ -34,12 +36,6 @@ class Buttonsimple extends Component {
34
36
  * @default false
35
37
  */
36
38
  this.active = false;
37
- /**
38
- * Indicates whether the button is disabled.
39
- * When the button is disabled for user interaction; it is not focusable or clickable.
40
- * @default false
41
- */
42
- this.disabled = false;
43
39
  /**
44
40
  * Indicates whether the button is soft disabled.
45
41
  * When set to `true`, the button appears visually disabled but still allows
@@ -56,11 +52,6 @@ class Buttonsimple extends Component {
56
52
  * @default 32
57
53
  */
58
54
  this.size = DEFAULTS.SIZE;
59
- /**
60
- * The tabindex of the button.
61
- * @default 0
62
- */
63
- this.tabIndex = 0;
64
55
  /**
65
56
  * This property defines the ARIA role for the element. By default, it is set to 'button'.
66
57
  * Consumers should override this role when:
@@ -210,10 +201,6 @@ __decorate([
210
201
  property({ type: Boolean }),
211
202
  __metadata("design:type", Object)
212
203
  ], Buttonsimple.prototype, "active", void 0);
213
- __decorate([
214
- property({ type: Boolean }),
215
- __metadata("design:type", Object)
216
- ], Buttonsimple.prototype, "disabled", void 0);
217
204
  __decorate([
218
205
  property({ type: Boolean, attribute: 'soft-disabled' }),
219
206
  __metadata("design:type", Object)
@@ -222,10 +209,6 @@ __decorate([
222
209
  property({ type: Number, reflect: true }),
223
210
  __metadata("design:type", Number)
224
211
  ], Buttonsimple.prototype, "size", void 0);
225
- __decorate([
226
- property({ type: Number, reflect: true }),
227
- __metadata("design:type", Object)
228
- ], Buttonsimple.prototype, "tabIndex", void 0);
229
212
  __decorate([
230
213
  property({ type: String, reflect: true }),
231
214
  __metadata("design:type", Object)
@@ -56,5 +56,5 @@ const styles = [hostFitContentStyles, css `
56
56
  :host([size="20"]){
57
57
  height: var(--mdc-button-height-size-20);
58
58
  }
59
- `, hostFocusRingStyles];
59
+ `, ...hostFocusRingStyles()];
60
60
  export default styles;
@@ -295,11 +295,12 @@
295
295
  "text": "boolean"
296
296
  },
297
297
  "default": "undefined as unknown",
298
- "description": "Indicates whether the button is disabled.\nWhen the button is disabled for user interaction; it is not focusable or clickable.",
298
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
299
299
  "attribute": "disabled",
300
+ "reflects": true,
300
301
  "inheritedFrom": {
301
- "name": "Buttonsimple",
302
- "module": "components/buttonsimple/buttonsimple.component.js"
302
+ "name": "DisabledMixin",
303
+ "module": "utils/mixins/DisabledMixin.js"
303
304
  }
304
305
  },
305
306
  {
@@ -447,12 +448,12 @@
447
448
  "text": "number"
448
449
  },
449
450
  "default": "0",
450
- "description": "The tabindex of the button.",
451
+ "description": "This property specifies the tab order of the element.",
451
452
  "attribute": "tabIndex",
452
453
  "reflects": true,
453
454
  "inheritedFrom": {
454
- "name": "Buttonsimple",
455
- "module": "components/buttonsimple/buttonsimple.component.js"
455
+ "name": "TabIndexMixin",
456
+ "module": "utils/mixins/TabIndexMixin.js"
456
457
  }
457
458
  },
458
459
  {
@@ -687,16 +688,16 @@
687
688
  }
688
689
  },
689
690
  {
690
- "name": "active",
691
+ "name": "tabIndex",
691
692
  "type": {
692
- "text": "boolean"
693
+ "text": "number"
693
694
  },
694
- "default": "false",
695
- "description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.",
696
- "fieldName": "active",
695
+ "default": "0",
696
+ "description": "This property specifies the tab order of the element.",
697
+ "fieldName": "tabIndex",
697
698
  "inheritedFrom": {
698
- "name": "Buttonsimple",
699
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
699
+ "name": "TabIndexMixin",
700
+ "module": "src/utils/mixins/TabIndexMixin.ts"
700
701
  }
701
702
  },
702
703
  {
@@ -705,34 +706,34 @@
705
706
  "text": "boolean"
706
707
  },
707
708
  "default": "false",
708
- "description": "Indicates whether the button is disabled.\nWhen the button is disabled for user interaction; it is not focusable or clickable.",
709
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
709
710
  "fieldName": "disabled",
710
711
  "inheritedFrom": {
711
- "name": "Buttonsimple",
712
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
712
+ "name": "DisabledMixin",
713
+ "module": "src/utils/mixins/DisabledMixin.ts"
713
714
  }
714
715
  },
715
716
  {
716
- "name": "soft-disabled",
717
+ "name": "active",
717
718
  "type": {
718
719
  "text": "boolean"
719
720
  },
720
721
  "default": "false",
721
- "description": "Indicates whether the button is soft disabled.\nWhen set to `true`, the button appears visually disabled but still allows\nfocus, click, and keyboard actions to be passed through.\n\n**Important:** When using soft disabled, consumers must ensure that\nthe button behaves like a disabled button, allowing only focus and\npreventing any interactions (clicks or keyboard actions) from triggering unintended actions.",
722
- "fieldName": "softDisabled",
722
+ "description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.",
723
+ "fieldName": "active",
723
724
  "inheritedFrom": {
724
725
  "name": "Buttonsimple",
725
726
  "module": "src/components/buttonsimple/buttonsimple.component.ts"
726
727
  }
727
728
  },
728
729
  {
729
- "name": "tabIndex",
730
+ "name": "soft-disabled",
730
731
  "type": {
731
- "text": "number"
732
+ "text": "boolean"
732
733
  },
733
- "default": "0",
734
- "description": "The tabindex of the button.",
735
- "fieldName": "tabIndex",
734
+ "default": "false",
735
+ "description": "Indicates whether the button is soft disabled.\nWhen set to `true`, the button appears visually disabled but still allows\nfocus, click, and keyboard actions to be passed through.\n\n**Important:** When using soft disabled, consumers must ensure that\nthe button behaves like a disabled button, allowing only focus and\npreventing any interactions (clicks or keyboard actions) from triggering unintended actions.",
736
+ "fieldName": "softDisabled",
736
737
  "inheritedFrom": {
737
738
  "name": "Buttonsimple",
738
739
  "module": "src/components/buttonsimple/buttonsimple.component.ts"
@@ -1190,21 +1191,6 @@
1190
1191
  "default": "default",
1191
1192
  "attribute": "color"
1192
1193
  },
1193
- {
1194
- "kind": "field",
1195
- "name": "tabIndex",
1196
- "type": {
1197
- "text": "number"
1198
- },
1199
- "default": "0",
1200
- "description": "The tabindex of the button.",
1201
- "attribute": "tabIndex",
1202
- "reflects": true,
1203
- "inheritedFrom": {
1204
- "name": "Buttonsimple",
1205
- "module": "components/buttonsimple/buttonsimple.component.js"
1206
- }
1207
- },
1208
1194
  {
1209
1195
  "kind": "field",
1210
1196
  "name": "role",
@@ -1294,16 +1280,17 @@
1294
1280
  },
1295
1281
  {
1296
1282
  "kind": "field",
1297
- "name": "active",
1283
+ "name": "tabIndex",
1298
1284
  "type": {
1299
- "text": "boolean"
1285
+ "text": "number"
1300
1286
  },
1301
- "default": "false",
1302
- "description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.",
1303
- "attribute": "active",
1287
+ "default": "0",
1288
+ "description": "This property specifies the tab order of the element.",
1289
+ "attribute": "tabIndex",
1290
+ "reflects": true,
1304
1291
  "inheritedFrom": {
1305
- "name": "Buttonsimple",
1306
- "module": "components/buttonsimple/buttonsimple.component.js"
1292
+ "name": "TabIndexMixin",
1293
+ "module": "utils/mixins/TabIndexMixin.js"
1307
1294
  }
1308
1295
  },
1309
1296
  {
@@ -1313,8 +1300,23 @@
1313
1300
  "text": "boolean"
1314
1301
  },
1315
1302
  "default": "false",
1316
- "description": "Indicates whether the button is disabled.\nWhen the button is disabled for user interaction; it is not focusable or clickable.",
1303
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
1317
1304
  "attribute": "disabled",
1305
+ "reflects": true,
1306
+ "inheritedFrom": {
1307
+ "name": "DisabledMixin",
1308
+ "module": "utils/mixins/DisabledMixin.js"
1309
+ }
1310
+ },
1311
+ {
1312
+ "kind": "field",
1313
+ "name": "active",
1314
+ "type": {
1315
+ "text": "boolean"
1316
+ },
1317
+ "default": "false",
1318
+ "description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.",
1319
+ "attribute": "active",
1318
1320
  "inheritedFrom": {
1319
1321
  "name": "Buttonsimple",
1320
1322
  "module": "components/buttonsimple/buttonsimple.component.js"
@@ -1533,52 +1535,52 @@
1533
1535
  "fieldName": "color"
1534
1536
  },
1535
1537
  {
1536
- "name": "tabIndex",
1538
+ "name": "role",
1539
+ "description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
1540
+ "default": "'button'",
1541
+ "fieldName": "role",
1537
1542
  "type": {
1538
- "text": "number"
1543
+ "text": "string"
1539
1544
  },
1540
- "default": "0",
1541
- "description": "The tabindex of the button.",
1542
- "fieldName": "tabIndex",
1543
1545
  "inheritedFrom": {
1544
1546
  "name": "Buttonsimple",
1545
1547
  "module": "src/components/buttonsimple/buttonsimple.component.ts"
1546
1548
  }
1547
1549
  },
1548
1550
  {
1549
- "name": "role",
1550
- "description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
1551
- "default": "'button'",
1552
- "fieldName": "role",
1551
+ "name": "tabIndex",
1553
1552
  "type": {
1554
- "text": "string"
1553
+ "text": "number"
1555
1554
  },
1555
+ "default": "0",
1556
+ "description": "This property specifies the tab order of the element.",
1557
+ "fieldName": "tabIndex",
1556
1558
  "inheritedFrom": {
1557
- "name": "Buttonsimple",
1558
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
1559
+ "name": "TabIndexMixin",
1560
+ "module": "src/utils/mixins/TabIndexMixin.ts"
1559
1561
  }
1560
1562
  },
1561
1563
  {
1562
- "name": "active",
1564
+ "name": "disabled",
1563
1565
  "type": {
1564
1566
  "text": "boolean"
1565
1567
  },
1566
1568
  "default": "false",
1567
- "description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.",
1568
- "fieldName": "active",
1569
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
1570
+ "fieldName": "disabled",
1569
1571
  "inheritedFrom": {
1570
- "name": "Buttonsimple",
1571
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
1572
+ "name": "DisabledMixin",
1573
+ "module": "src/utils/mixins/DisabledMixin.ts"
1572
1574
  }
1573
1575
  },
1574
1576
  {
1575
- "name": "disabled",
1577
+ "name": "active",
1576
1578
  "type": {
1577
1579
  "text": "boolean"
1578
1580
  },
1579
1581
  "default": "false",
1580
- "description": "Indicates whether the button is disabled.\nWhen the button is disabled for user interaction; it is not focusable or clickable.",
1581
- "fieldName": "disabled",
1582
+ "description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.",
1583
+ "fieldName": "active",
1582
1584
  "inheritedFrom": {
1583
1585
  "name": "Buttonsimple",
1584
1586
  "module": "src/components/buttonsimple/buttonsimple.component.ts"
@@ -1650,16 +1652,6 @@
1650
1652
  "description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.",
1651
1653
  "attribute": "active"
1652
1654
  },
1653
- {
1654
- "kind": "field",
1655
- "name": "disabled",
1656
- "type": {
1657
- "text": "boolean"
1658
- },
1659
- "default": "false",
1660
- "description": "Indicates whether the button is disabled.\nWhen the button is disabled for user interaction; it is not focusable or clickable.",
1661
- "attribute": "disabled"
1662
- },
1663
1655
  {
1664
1656
  "kind": "field",
1665
1657
  "name": "softDisabled",
@@ -1681,17 +1673,6 @@
1681
1673
  "attribute": "size",
1682
1674
  "reflects": true
1683
1675
  },
1684
- {
1685
- "kind": "field",
1686
- "name": "tabIndex",
1687
- "type": {
1688
- "text": "number"
1689
- },
1690
- "default": "0",
1691
- "description": "The tabindex of the button.",
1692
- "attribute": "tabIndex",
1693
- "reflects": true
1694
- },
1695
1676
  {
1696
1677
  "kind": "field",
1697
1678
  "name": "role",
@@ -1816,6 +1797,36 @@
1816
1797
  }
1817
1798
  ],
1818
1799
  "description": "Handles the keyup event on the button.\nIf the key is 'Enter' or 'Space', the button is clicked.\nIf the key is 'Space', the button is pressed. The native HTML button works in the same way."
1800
+ },
1801
+ {
1802
+ "kind": "field",
1803
+ "name": "tabIndex",
1804
+ "type": {
1805
+ "text": "number"
1806
+ },
1807
+ "default": "0",
1808
+ "description": "This property specifies the tab order of the element.",
1809
+ "attribute": "tabIndex",
1810
+ "reflects": true,
1811
+ "inheritedFrom": {
1812
+ "name": "TabIndexMixin",
1813
+ "module": "utils/mixins/TabIndexMixin.js"
1814
+ }
1815
+ },
1816
+ {
1817
+ "kind": "field",
1818
+ "name": "disabled",
1819
+ "type": {
1820
+ "text": "boolean"
1821
+ },
1822
+ "default": "false",
1823
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
1824
+ "attribute": "disabled",
1825
+ "reflects": true,
1826
+ "inheritedFrom": {
1827
+ "name": "DisabledMixin",
1828
+ "module": "utils/mixins/DisabledMixin.js"
1829
+ }
1819
1830
  }
1820
1831
  ],
1821
1832
  "attributes": [
@@ -1828,15 +1839,6 @@
1828
1839
  "description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.",
1829
1840
  "fieldName": "active"
1830
1841
  },
1831
- {
1832
- "name": "disabled",
1833
- "type": {
1834
- "text": "boolean"
1835
- },
1836
- "default": "false",
1837
- "description": "Indicates whether the button is disabled.\nWhen the button is disabled for user interaction; it is not focusable or clickable.",
1838
- "fieldName": "disabled"
1839
- },
1840
1842
  {
1841
1843
  "name": "soft-disabled",
1842
1844
  "type": {
@@ -1855,15 +1857,6 @@
1855
1857
  "default": "32",
1856
1858
  "fieldName": "size"
1857
1859
  },
1858
- {
1859
- "name": "tabIndex",
1860
- "type": {
1861
- "text": "number"
1862
- },
1863
- "default": "0",
1864
- "description": "The tabindex of the button.",
1865
- "fieldName": "tabIndex"
1866
- },
1867
1860
  {
1868
1861
  "name": "role",
1869
1862
  "description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
@@ -1878,6 +1871,42 @@
1878
1871
  "description": "This property defines the type attribute for the button element.\nThe type attribute specifies the behavior of the button when it is clicked.\n- **submit**: The button submits the form data to the server.\n- **reset**: The button resets the form data to its initial state.\n- **button**: The button does nothing when clicked.",
1879
1872
  "default": "button",
1880
1873
  "fieldName": "type"
1874
+ },
1875
+ {
1876
+ "name": "tabIndex",
1877
+ "type": {
1878
+ "text": "number"
1879
+ },
1880
+ "default": "0",
1881
+ "description": "This property specifies the tab order of the element.",
1882
+ "fieldName": "tabIndex",
1883
+ "inheritedFrom": {
1884
+ "name": "TabIndexMixin",
1885
+ "module": "src/utils/mixins/TabIndexMixin.ts"
1886
+ }
1887
+ },
1888
+ {
1889
+ "name": "disabled",
1890
+ "type": {
1891
+ "text": "boolean"
1892
+ },
1893
+ "default": "false",
1894
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
1895
+ "fieldName": "disabled",
1896
+ "inheritedFrom": {
1897
+ "name": "DisabledMixin",
1898
+ "module": "src/utils/mixins/DisabledMixin.ts"
1899
+ }
1900
+ }
1901
+ ],
1902
+ "mixins": [
1903
+ {
1904
+ "name": "TabIndexMixin",
1905
+ "module": "/src/utils/mixins/TabIndexMixin"
1906
+ },
1907
+ {
1908
+ "name": "DisabledMixin",
1909
+ "module": "/src/utils/mixins/DisabledMixin"
1881
1910
  }
1882
1911
  ],
1883
1912
  "superclass": {
@@ -3022,8 +3051,8 @@
3022
3051
  "type": {
3023
3052
  "text": "boolean"
3024
3053
  },
3025
- "privacy": "public",
3026
3054
  "default": "false",
3055
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
3027
3056
  "attribute": "disabled",
3028
3057
  "reflects": true
3029
3058
  }
@@ -3035,6 +3064,7 @@
3035
3064
  "text": "boolean"
3036
3065
  },
3037
3066
  "default": "false",
3067
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
3038
3068
  "fieldName": "disabled"
3039
3069
  }
3040
3070
  ],
@@ -3074,19 +3104,20 @@
3074
3104
  "type": {
3075
3105
  "text": "number"
3076
3106
  },
3077
- "privacy": "public",
3078
3107
  "default": "0",
3079
- "attribute": "tabindex",
3108
+ "description": "This property specifies the tab order of the element.",
3109
+ "attribute": "tabIndex",
3080
3110
  "reflects": true
3081
3111
  }
3082
3112
  ],
3083
3113
  "attributes": [
3084
3114
  {
3085
- "name": "tabindex",
3115
+ "name": "tabIndex",
3086
3116
  "type": {
3087
3117
  "text": "number"
3088
3118
  },
3089
3119
  "default": "0",
3120
+ "description": "This property specifies the tab order of the element.",
3090
3121
  "fieldName": "tabIndex"
3091
3122
  }
3092
3123
  ],
@@ -12,6 +12,11 @@ export const DisabledMixin = (superClass) => {
12
12
  class InnerMixinClass extends superClass {
13
13
  constructor() {
14
14
  super(...arguments);
15
+ /**
16
+ * Indicates whether the component is disabled.
17
+ * When the component is disabled for user interaction; it is not focusable or clickable.
18
+ * @default false
19
+ */
15
20
  this.disabled = false;
16
21
  }
17
22
  }
@@ -12,11 +12,15 @@ export const TabIndexMixin = (superClass) => {
12
12
  class InnerMixinClass extends superClass {
13
13
  constructor() {
14
14
  super(...arguments);
15
+ /**
16
+ * This property specifies the tab order of the element.
17
+ * @default 0
18
+ */
15
19
  this.tabIndex = 0;
16
20
  }
17
21
  }
18
22
  __decorate([
19
- property({ reflect: true, type: Number, attribute: 'tabindex' }),
23
+ property({ reflect: true, type: Number }),
20
24
  __metadata("design:type", Object)
21
25
  ], InnerMixinClass.prototype, "tabIndex", void 0);
22
26
  // Cast return type to your mixin's interface intersected with the superClass type
@@ -1,3 +1,3 @@
1
1
  declare const hostFitContentStyles: import("lit").CSSResult;
2
- declare const hostFocusRingStyles: import("lit").CSSResult;
2
+ declare const hostFocusRingStyles: (applyFocusRingOnClass?: boolean) => import("lit").CSSResult[];
3
3
  export { hostFitContentStyles, hostFocusRingStyles };