@momentum-design/components 0.53.7 → 0.53.9
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/dist/browser/index.js +173 -182
- package/dist/browser/index.js.map +3 -3
- package/dist/components/buttonsimple/buttonsimple.component.d.ts +2 -2
- package/dist/components/buttonsimple/buttonsimple.component.js +5 -14
- package/dist/components/link/link.component.d.ts +29 -18
- package/dist/components/link/link.component.js +67 -39
- package/dist/components/link/link.styles.js +34 -48
- package/dist/components/link/link.types.d.ts +7 -1
- package/dist/custom-elements.json +177 -24
- package/dist/react/link/index.d.ts +13 -3
- package/dist/react/link/index.js +12 -3
- package/package.json +1 -1
@@ -138,8 +138,11 @@
|
|
138
138
|
{
|
139
139
|
"kind": "field",
|
140
140
|
"name": "ariaStateKey",
|
141
|
+
"type": {
|
142
|
+
"text": "string | undefined"
|
143
|
+
},
|
141
144
|
"description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
|
142
|
-
"default": "'aria-pressed'",
|
145
|
+
"default": "'aria-pressed' (when)",
|
143
146
|
"attribute": "ariaStateKey",
|
144
147
|
"reflects": true,
|
145
148
|
"inheritedFrom": {
|
@@ -405,8 +408,11 @@
|
|
405
408
|
},
|
406
409
|
{
|
407
410
|
"name": "ariaStateKey",
|
411
|
+
"type": {
|
412
|
+
"text": "string | undefined"
|
413
|
+
},
|
408
414
|
"description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
|
409
|
-
"default": "'aria-pressed'",
|
415
|
+
"default": "'aria-pressed' (when)",
|
410
416
|
"fieldName": "ariaStateKey",
|
411
417
|
"inheritedFrom": {
|
412
418
|
"name": "Buttonsimple",
|
@@ -1004,8 +1010,11 @@
|
|
1004
1010
|
{
|
1005
1011
|
"kind": "field",
|
1006
1012
|
"name": "ariaStateKey",
|
1013
|
+
"type": {
|
1014
|
+
"text": "string | undefined"
|
1015
|
+
},
|
1007
1016
|
"description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
|
1008
|
-
"default": "'aria-pressed'",
|
1017
|
+
"default": "'aria-pressed' (when)",
|
1009
1018
|
"attribute": "ariaStateKey",
|
1010
1019
|
"reflects": true,
|
1011
1020
|
"inheritedFrom": {
|
@@ -1373,8 +1382,11 @@
|
|
1373
1382
|
},
|
1374
1383
|
{
|
1375
1384
|
"name": "ariaStateKey",
|
1385
|
+
"type": {
|
1386
|
+
"text": "string | undefined"
|
1387
|
+
},
|
1376
1388
|
"description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
|
1377
|
-
"default": "'aria-pressed'",
|
1389
|
+
"default": "'aria-pressed' (when)",
|
1378
1390
|
"fieldName": "ariaStateKey",
|
1379
1391
|
"inheritedFrom": {
|
1380
1392
|
"name": "Buttonsimple",
|
@@ -2141,8 +2153,11 @@
|
|
2141
2153
|
{
|
2142
2154
|
"kind": "field",
|
2143
2155
|
"name": "ariaStateKey",
|
2156
|
+
"type": {
|
2157
|
+
"text": "string | undefined"
|
2158
|
+
},
|
2144
2159
|
"description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
|
2145
|
-
"default": "'aria-pressed'",
|
2160
|
+
"default": "'aria-pressed' (when)",
|
2146
2161
|
"attribute": "ariaStateKey",
|
2147
2162
|
"reflects": true,
|
2148
2163
|
"inheritedFrom": {
|
@@ -2427,8 +2442,11 @@
|
|
2427
2442
|
},
|
2428
2443
|
{
|
2429
2444
|
"name": "ariaStateKey",
|
2445
|
+
"type": {
|
2446
|
+
"text": "string | undefined"
|
2447
|
+
},
|
2430
2448
|
"description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
|
2431
|
-
"default": "'aria-pressed'",
|
2449
|
+
"default": "'aria-pressed' (when)",
|
2432
2450
|
"fieldName": "ariaStateKey",
|
2433
2451
|
"inheritedFrom": {
|
2434
2452
|
"name": "Buttonsimple",
|
@@ -2559,8 +2577,11 @@
|
|
2559
2577
|
{
|
2560
2578
|
"kind": "field",
|
2561
2579
|
"name": "ariaStateKey",
|
2580
|
+
"type": {
|
2581
|
+
"text": "string | undefined"
|
2582
|
+
},
|
2562
2583
|
"description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
|
2563
|
-
"default": "'aria-pressed'",
|
2584
|
+
"default": "'aria-pressed' (when)",
|
2564
2585
|
"attribute": "ariaStateKey",
|
2565
2586
|
"reflects": true
|
2566
2587
|
},
|
@@ -2778,8 +2799,11 @@
|
|
2778
2799
|
},
|
2779
2800
|
{
|
2780
2801
|
"name": "ariaStateKey",
|
2802
|
+
"type": {
|
2803
|
+
"text": "string | undefined"
|
2804
|
+
},
|
2781
2805
|
"description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
|
2782
|
-
"default": "'aria-pressed'",
|
2806
|
+
"default": "'aria-pressed' (when)",
|
2783
2807
|
"fieldName": "ariaStateKey"
|
2784
2808
|
},
|
2785
2809
|
{
|
@@ -3664,8 +3688,11 @@
|
|
3664
3688
|
{
|
3665
3689
|
"kind": "field",
|
3666
3690
|
"name": "ariaStateKey",
|
3691
|
+
"type": {
|
3692
|
+
"text": "string | undefined"
|
3693
|
+
},
|
3667
3694
|
"description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
|
3668
|
-
"default": "'aria-pressed'",
|
3695
|
+
"default": "'aria-pressed' (when)",
|
3669
3696
|
"attribute": "ariaStateKey",
|
3670
3697
|
"reflects": true,
|
3671
3698
|
"inheritedFrom": {
|
@@ -3943,8 +3970,11 @@
|
|
3943
3970
|
},
|
3944
3971
|
{
|
3945
3972
|
"name": "ariaStateKey",
|
3973
|
+
"type": {
|
3974
|
+
"text": "string | undefined"
|
3975
|
+
},
|
3946
3976
|
"description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
|
3947
|
-
"default": "'aria-pressed'",
|
3977
|
+
"default": "'aria-pressed' (when)",
|
3948
3978
|
"fieldName": "ariaStateKey",
|
3949
3979
|
"inheritedFrom": {
|
3950
3980
|
"name": "Buttonsimple",
|
@@ -6077,8 +6107,11 @@
|
|
6077
6107
|
{
|
6078
6108
|
"kind": "field",
|
6079
6109
|
"name": "ariaStateKey",
|
6110
|
+
"type": {
|
6111
|
+
"text": "string | undefined"
|
6112
|
+
},
|
6080
6113
|
"description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
|
6081
|
-
"default": "'aria-pressed'",
|
6114
|
+
"default": "'aria-pressed' (when)",
|
6082
6115
|
"attribute": "ariaStateKey",
|
6083
6116
|
"reflects": true,
|
6084
6117
|
"inheritedFrom": {
|
@@ -6364,8 +6397,11 @@
|
|
6364
6397
|
},
|
6365
6398
|
{
|
6366
6399
|
"name": "ariaStateKey",
|
6400
|
+
"type": {
|
6401
|
+
"text": "string | undefined"
|
6402
|
+
},
|
6367
6403
|
"description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
|
6368
|
-
"default": "'aria-pressed'",
|
6404
|
+
"default": "'aria-pressed' (when)",
|
6369
6405
|
"fieldName": "ariaStateKey",
|
6370
6406
|
"inheritedFrom": {
|
6371
6407
|
"name": "Buttonsimple",
|
@@ -8608,7 +8644,7 @@
|
|
8608
8644
|
"declarations": [
|
8609
8645
|
{
|
8610
8646
|
"kind": "class",
|
8611
|
-
"description": "`mdc-link` component can be used to navigate to a different page\nwithin the application or to an external site. It can be used to link to\nemails or phone numbers.\n\nThe `children` of the link component is expected to be
|
8647
|
+
"description": "`mdc-link` component can be used to navigate to a different page\nwithin the application or to an external site. It can be used to link to\nemails or phone numbers.\n\nThe `children` of the link component is expected to be the text content.\n\nFor `icon`, the `mdc-icon` component is used to render the icon.",
|
8612
8648
|
"name": "Link",
|
8613
8649
|
"cssProperties": [
|
8614
8650
|
{
|
@@ -8690,6 +8726,43 @@
|
|
8690
8726
|
"attribute": "size",
|
8691
8727
|
"reflects": true
|
8692
8728
|
},
|
8729
|
+
{
|
8730
|
+
"kind": "field",
|
8731
|
+
"name": "href",
|
8732
|
+
"type": {
|
8733
|
+
"text": "string"
|
8734
|
+
},
|
8735
|
+
"default": "'#'",
|
8736
|
+
"description": "Href for navigation. The URL that the hyperlink points to",
|
8737
|
+
"attribute": "href",
|
8738
|
+
"reflects": true
|
8739
|
+
},
|
8740
|
+
{
|
8741
|
+
"kind": "field",
|
8742
|
+
"name": "target",
|
8743
|
+
"type": {
|
8744
|
+
"text": "string"
|
8745
|
+
},
|
8746
|
+
"default": "'_self'",
|
8747
|
+
"description": "Optional target: _blank, _self, _parent, _top and _unfencedTop",
|
8748
|
+
"attribute": "target",
|
8749
|
+
"reflects": true
|
8750
|
+
},
|
8751
|
+
{
|
8752
|
+
"kind": "field",
|
8753
|
+
"name": "rel",
|
8754
|
+
"type": {
|
8755
|
+
"text": "string | undefined"
|
8756
|
+
},
|
8757
|
+
"description": "Optional rel attribute that defines the relationship of the linked URL as space-separated link types.",
|
8758
|
+
"attribute": "rel",
|
8759
|
+
"reflects": true
|
8760
|
+
},
|
8761
|
+
{
|
8762
|
+
"kind": "field",
|
8763
|
+
"name": "handleNavigation",
|
8764
|
+
"privacy": "private"
|
8765
|
+
},
|
8693
8766
|
{
|
8694
8767
|
"kind": "method",
|
8695
8768
|
"name": "getIconSize",
|
@@ -8711,16 +8784,10 @@
|
|
8711
8784
|
"type": {
|
8712
8785
|
"text": "boolean"
|
8713
8786
|
},
|
8714
|
-
"description": "
|
8787
|
+
"description": "Whether the element should be disabled"
|
8715
8788
|
}
|
8716
8789
|
],
|
8717
|
-
"description": "
|
8718
|
-
},
|
8719
|
-
{
|
8720
|
-
"kind": "method",
|
8721
|
-
"name": "updateTrailingIcon",
|
8722
|
-
"privacy": "private",
|
8723
|
-
"description": "Method to create and append trailing icon to the first anchor element in the slot.\nIf no icon name is provided, no icon will be rendered."
|
8790
|
+
"description": "Sets or removes `aria-disabled` and updates `tabIndex` to reflect\nthe disabled state. When disabled, the element becomes unfocusable;\nwhen enabled, the previous `tabIndex` is restored."
|
8724
8791
|
},
|
8725
8792
|
{
|
8726
8793
|
"kind": "field",
|
@@ -8737,6 +8804,21 @@
|
|
8737
8804
|
"module": "utils/mixins/DisabledMixin.js"
|
8738
8805
|
}
|
8739
8806
|
},
|
8807
|
+
{
|
8808
|
+
"kind": "field",
|
8809
|
+
"name": "tabIndex",
|
8810
|
+
"type": {
|
8811
|
+
"text": "number"
|
8812
|
+
},
|
8813
|
+
"default": "0",
|
8814
|
+
"description": "This property specifies the tab order of the element.",
|
8815
|
+
"attribute": "tabIndex",
|
8816
|
+
"reflects": true,
|
8817
|
+
"inheritedFrom": {
|
8818
|
+
"name": "TabIndexMixin",
|
8819
|
+
"module": "utils/mixins/TabIndexMixin.js"
|
8820
|
+
}
|
8821
|
+
},
|
8740
8822
|
{
|
8741
8823
|
"kind": "field",
|
8742
8824
|
"name": "iconName",
|
@@ -8751,6 +8833,28 @@
|
|
8751
8833
|
}
|
8752
8834
|
}
|
8753
8835
|
],
|
8836
|
+
"events": [
|
8837
|
+
{
|
8838
|
+
"description": "(React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.",
|
8839
|
+
"name": "click",
|
8840
|
+
"reactName": "onClick"
|
8841
|
+
},
|
8842
|
+
{
|
8843
|
+
"description": "(React: onKeyDown) Fired when the user presses a key while the buttonLink has focus.",
|
8844
|
+
"name": "keydown",
|
8845
|
+
"reactName": "onKeyDown"
|
8846
|
+
},
|
8847
|
+
{
|
8848
|
+
"description": "(React: onFocus) Fired when the buttonLink receives keyboard or mouse focus.",
|
8849
|
+
"name": "focus",
|
8850
|
+
"reactName": "onFocus"
|
8851
|
+
},
|
8852
|
+
{
|
8853
|
+
"description": "(React: onBlur) Fired when the buttonLink loses keyboard or mouse focus.",
|
8854
|
+
"name": "blur",
|
8855
|
+
"reactName": "onBlur"
|
8856
|
+
}
|
8857
|
+
],
|
8754
8858
|
"attributes": [
|
8755
8859
|
{
|
8756
8860
|
"name": "inline",
|
@@ -8779,6 +8883,32 @@
|
|
8779
8883
|
"default": "large",
|
8780
8884
|
"fieldName": "size"
|
8781
8885
|
},
|
8886
|
+
{
|
8887
|
+
"name": "href",
|
8888
|
+
"type": {
|
8889
|
+
"text": "string"
|
8890
|
+
},
|
8891
|
+
"default": "'#'",
|
8892
|
+
"description": "Href for navigation. The URL that the hyperlink points to",
|
8893
|
+
"fieldName": "href"
|
8894
|
+
},
|
8895
|
+
{
|
8896
|
+
"name": "target",
|
8897
|
+
"type": {
|
8898
|
+
"text": "string"
|
8899
|
+
},
|
8900
|
+
"default": "'_self'",
|
8901
|
+
"description": "Optional target: _blank, _self, _parent, _top and _unfencedTop",
|
8902
|
+
"fieldName": "target"
|
8903
|
+
},
|
8904
|
+
{
|
8905
|
+
"name": "rel",
|
8906
|
+
"type": {
|
8907
|
+
"text": "string | undefined"
|
8908
|
+
},
|
8909
|
+
"description": "Optional rel attribute that defines the relationship of the linked URL as space-separated link types.",
|
8910
|
+
"fieldName": "rel"
|
8911
|
+
},
|
8782
8912
|
{
|
8783
8913
|
"name": "disabled",
|
8784
8914
|
"type": {
|
@@ -8792,6 +8922,19 @@
|
|
8792
8922
|
"module": "src/utils/mixins/DisabledMixin.ts"
|
8793
8923
|
}
|
8794
8924
|
},
|
8925
|
+
{
|
8926
|
+
"name": "tabIndex",
|
8927
|
+
"type": {
|
8928
|
+
"text": "number"
|
8929
|
+
},
|
8930
|
+
"default": "0",
|
8931
|
+
"description": "This property specifies the tab order of the element.",
|
8932
|
+
"fieldName": "tabIndex",
|
8933
|
+
"inheritedFrom": {
|
8934
|
+
"name": "TabIndexMixin",
|
8935
|
+
"module": "src/utils/mixins/TabIndexMixin.ts"
|
8936
|
+
}
|
8937
|
+
},
|
8795
8938
|
{
|
8796
8939
|
"name": "icon-name",
|
8797
8940
|
"type": {
|
@@ -8810,6 +8953,10 @@
|
|
8810
8953
|
"name": "DisabledMixin",
|
8811
8954
|
"module": "/src/utils/mixins/DisabledMixin"
|
8812
8955
|
},
|
8956
|
+
{
|
8957
|
+
"name": "TabIndexMixin",
|
8958
|
+
"module": "/src/utils/mixins/TabIndexMixin"
|
8959
|
+
},
|
8813
8960
|
{
|
8814
8961
|
"name": "IconNameMixin",
|
8815
8962
|
"module": "/src/utils/mixins/IconNameMixin"
|
@@ -8820,7 +8967,7 @@
|
|
8820
8967
|
"module": "/src/models"
|
8821
8968
|
},
|
8822
8969
|
"tagName": "mdc-link",
|
8823
|
-
"jsDoc": "/**\n * `mdc-link` component can be used to navigate to a different page\n * within the application or to an external site. It can be used to link to\n * emails or phone numbers.\n *\n * The `children` of the link component is expected to be
|
8970
|
+
"jsDoc": "/**\n * `mdc-link` component can be used to navigate to a different page\n * within the application or to an external site. It can be used to link to\n * emails or phone numbers.\n *\n * The `children` of the link component is expected to be the text content.\n *\n * For `icon`, the `mdc-icon` component is used to render the icon.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-link\n *\n * @event click - (React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.\n * @event keydown - (React: onKeyDown) Fired when the user presses a key while the buttonLink has focus.\n * @event focus - (React: onFocus) Fired when the buttonLink receives keyboard or mouse focus.\n * @event blur - (React: onBlur) Fired when the buttonLink loses keyboard or mouse focus.\n *\n * @cssproperty --mdc-link-border-radius - Border radius of the link\n * @cssproperty --mdc-link-color-active - Text and icon color of the link in active state\n * @cssproperty --mdc-link-color-disabled - Text and icon color of the link in disabled state\n * @cssproperty --mdc-link-color-hover - Text and icon color of the link in hover state\n * @cssproperty --mdc-link-color-normal - Text and icon color of the link in normal state\n * @cssproperty --mdc-link-icon-margin-left - Gap between the text and icon (only applicable when an icon is set)\n * @cssproperty --mdc-link-inverted-color-active - Text and icon color of the inverted link in active state\n * @cssproperty --mdc-link-inverted-color-disabled - Text and icon color of the inverted link in disabled state\n * @cssproperty --mdc-link-inverted-color-hover - Text and icon color of the inverted link in hover state\n * @cssproperty --mdc-link-inverted-color-normal - Text and icon color of the inverted link in normal state\n * @cssproperty --mdc-link-text-decoration-disabled - Text decoration of the link in disabled state for all variants\n */",
|
8824
8971
|
"customElement": true
|
8825
8972
|
}
|
8826
8973
|
],
|
@@ -16722,8 +16869,11 @@
|
|
16722
16869
|
{
|
16723
16870
|
"kind": "field",
|
16724
16871
|
"name": "ariaStateKey",
|
16872
|
+
"type": {
|
16873
|
+
"text": "string | undefined"
|
16874
|
+
},
|
16725
16875
|
"description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
|
16726
|
-
"default": "'aria-pressed'",
|
16876
|
+
"default": "'aria-pressed' (when)",
|
16727
16877
|
"attribute": "ariaStateKey",
|
16728
16878
|
"reflects": true,
|
16729
16879
|
"inheritedFrom": {
|
@@ -17016,8 +17166,11 @@
|
|
17016
17166
|
},
|
17017
17167
|
{
|
17018
17168
|
"name": "ariaStateKey",
|
17169
|
+
"type": {
|
17170
|
+
"text": "string | undefined"
|
17171
|
+
},
|
17019
17172
|
"description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
|
17020
|
-
"default": "'aria-pressed'",
|
17173
|
+
"default": "'aria-pressed' (when)",
|
17021
17174
|
"fieldName": "ariaStateKey",
|
17022
17175
|
"inheritedFrom": {
|
17023
17176
|
"name": "Buttonsimple",
|
@@ -1,11 +1,11 @@
|
|
1
|
+
import { type EventName } from '@lit/react';
|
1
2
|
import Component from '../../components/link';
|
2
3
|
/**
|
3
4
|
* `mdc-link` component can be used to navigate to a different page
|
4
5
|
* within the application or to an external site. It can be used to link to
|
5
6
|
* emails or phone numbers.
|
6
7
|
*
|
7
|
-
* The `children` of the link component is expected to be
|
8
|
-
* containing the text, href, and other attributes.
|
8
|
+
* The `children` of the link component is expected to be the text content.
|
9
9
|
*
|
10
10
|
* For `icon`, the `mdc-icon` component is used to render the icon.
|
11
11
|
*
|
@@ -13,6 +13,11 @@ import Component from '../../components/link';
|
|
13
13
|
*
|
14
14
|
* @tagname mdc-link
|
15
15
|
*
|
16
|
+
* @event click - (React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.
|
17
|
+
* @event keydown - (React: onKeyDown) Fired when the user presses a key while the buttonLink has focus.
|
18
|
+
* @event focus - (React: onFocus) Fired when the buttonLink receives keyboard or mouse focus.
|
19
|
+
* @event blur - (React: onBlur) Fired when the buttonLink loses keyboard or mouse focus.
|
20
|
+
*
|
16
21
|
* @cssproperty --mdc-link-border-radius - Border radius of the link
|
17
22
|
* @cssproperty --mdc-link-color-active - Text and icon color of the link in active state
|
18
23
|
* @cssproperty --mdc-link-color-disabled - Text and icon color of the link in disabled state
|
@@ -25,5 +30,10 @@ import Component from '../../components/link';
|
|
25
30
|
* @cssproperty --mdc-link-inverted-color-normal - Text and icon color of the inverted link in normal state
|
26
31
|
* @cssproperty --mdc-link-text-decoration-disabled - Text decoration of the link in disabled state for all variants
|
27
32
|
*/
|
28
|
-
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
33
|
+
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
34
|
+
onClick: EventName<MouseEvent>;
|
35
|
+
onKeyDown: EventName<KeyboardEvent>;
|
36
|
+
onFocus: EventName<FocusEvent>;
|
37
|
+
onBlur: EventName<Event>;
|
38
|
+
}>;
|
29
39
|
export default reactWrapper;
|
package/dist/react/link/index.js
CHANGED
@@ -7,8 +7,7 @@ import { TAG_NAME } from '../../components/link/link.constants';
|
|
7
7
|
* within the application or to an external site. It can be used to link to
|
8
8
|
* emails or phone numbers.
|
9
9
|
*
|
10
|
-
* The `children` of the link component is expected to be
|
11
|
-
* containing the text, href, and other attributes.
|
10
|
+
* The `children` of the link component is expected to be the text content.
|
12
11
|
*
|
13
12
|
* For `icon`, the `mdc-icon` component is used to render the icon.
|
14
13
|
*
|
@@ -16,6 +15,11 @@ import { TAG_NAME } from '../../components/link/link.constants';
|
|
16
15
|
*
|
17
16
|
* @tagname mdc-link
|
18
17
|
*
|
18
|
+
* @event click - (React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.
|
19
|
+
* @event keydown - (React: onKeyDown) Fired when the user presses a key while the buttonLink has focus.
|
20
|
+
* @event focus - (React: onFocus) Fired when the buttonLink receives keyboard or mouse focus.
|
21
|
+
* @event blur - (React: onBlur) Fired when the buttonLink loses keyboard or mouse focus.
|
22
|
+
*
|
19
23
|
* @cssproperty --mdc-link-border-radius - Border radius of the link
|
20
24
|
* @cssproperty --mdc-link-color-active - Text and icon color of the link in active state
|
21
25
|
* @cssproperty --mdc-link-color-disabled - Text and icon color of the link in disabled state
|
@@ -32,7 +36,12 @@ const reactWrapper = createComponent({
|
|
32
36
|
tagName: TAG_NAME,
|
33
37
|
elementClass: Component,
|
34
38
|
react: React,
|
35
|
-
events: {
|
39
|
+
events: {
|
40
|
+
onClick: 'click',
|
41
|
+
onKeyDown: 'keydown',
|
42
|
+
onFocus: 'focus',
|
43
|
+
onBlur: 'blur',
|
44
|
+
},
|
36
45
|
displayName: 'Link',
|
37
46
|
});
|
38
47
|
export default reactWrapper;
|
package/package.json
CHANGED