@momentum-design/components 0.53.9 → 0.54.0

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 (42) hide show
  1. package/dist/browser/index.js +350 -314
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/components/checkbox/checkbox.component.d.ts +1 -9
  4. package/dist/components/checkbox/checkbox.component.js +7 -21
  5. package/dist/components/checkbox/checkbox.styles.js +30 -67
  6. package/dist/components/checkbox/index.d.ts +1 -0
  7. package/dist/components/checkbox/index.js +1 -0
  8. package/dist/components/radio/index.d.ts +1 -0
  9. package/dist/components/radio/index.js +1 -0
  10. package/dist/components/radio/radio.component.d.ts +3 -11
  11. package/dist/components/radio/radio.component.js +10 -16
  12. package/dist/components/radio/radio.styles.js +36 -111
  13. package/dist/components/staticcheckbox/index.d.ts +8 -0
  14. package/dist/components/staticcheckbox/index.js +5 -0
  15. package/dist/components/staticcheckbox/staticcheckbox.component.d.ts +42 -0
  16. package/dist/components/staticcheckbox/staticcheckbox.component.js +76 -0
  17. package/dist/components/staticcheckbox/staticcheckbox.constants.d.ts +3 -0
  18. package/dist/components/staticcheckbox/staticcheckbox.constants.js +4 -0
  19. package/dist/components/staticcheckbox/staticcheckbox.styles.d.ts +2 -0
  20. package/dist/components/staticcheckbox/staticcheckbox.styles.js +60 -0
  21. package/dist/components/staticradio/index.d.ts +7 -0
  22. package/dist/components/staticradio/index.js +4 -0
  23. package/dist/components/staticradio/staticradio.component.d.ts +41 -0
  24. package/dist/components/staticradio/staticradio.component.js +67 -0
  25. package/dist/components/staticradio/staticradio.constants.d.ts +2 -0
  26. package/dist/components/staticradio/staticradio.constants.js +3 -0
  27. package/dist/components/staticradio/staticradio.styles.d.ts +2 -0
  28. package/dist/components/staticradio/staticradio.styles.js +86 -0
  29. package/dist/custom-elements.json +306 -70
  30. package/dist/index.d.ts +3 -1
  31. package/dist/index.js +3 -1
  32. package/dist/react/checkbox/index.d.ts +1 -9
  33. package/dist/react/checkbox/index.js +1 -9
  34. package/dist/react/index.d.ts +2 -0
  35. package/dist/react/index.js +2 -0
  36. package/dist/react/radio/index.d.ts +3 -11
  37. package/dist/react/radio/index.js +3 -11
  38. package/dist/react/staticcheckbox/index.d.ts +25 -0
  39. package/dist/react/staticcheckbox/index.js +34 -0
  40. package/dist/react/staticradio/index.d.ts +24 -0
  41. package/dist/react/staticradio/index.js +33 -0
  42. package/package.json +1 -1
@@ -2885,14 +2885,6 @@
2885
2885
  "description": "Allows customization of the background color on hover.",
2886
2886
  "name": "--mdc-checkbox-background-color-hover"
2887
2887
  },
2888
- {
2889
- "description": "Border color in high contrast.",
2890
- "name": "--mdc-checkbox-border-color"
2891
- },
2892
- {
2893
- "description": "Background color for a selected checkbox.",
2894
- "name": "--mdc-checkbox-checked-background-color"
2895
- },
2896
2888
  {
2897
2889
  "description": "Background color for a selected checkbox when hovered.",
2898
2890
  "name": "--mdc-checkbox-checked-background-color-hover"
@@ -2902,36 +2894,12 @@
2902
2894
  "name": "--mdc-checkbox-checked-pressed-icon-color"
2903
2895
  },
2904
2896
  {
2905
- "description": "Background color for a disabled checkbox.",
2906
- "name": "--mdc-checkbox-disabled-background-color"
2907
- },
2908
- {
2909
- "description": "Border color for a disabled checkbox.",
2910
- "name": "--mdc-checkbox-disabled-border-color"
2897
+ "description": "Background color for a selected checkbox when pressed.",
2898
+ "name": "--mdc-checkbox-pressed-icon-color"
2911
2899
  },
2912
2900
  {
2913
- "description": "Background color for a disabled, selected checkbox.",
2901
+ "description": "Background color for a selected checkbox when disabled.",
2914
2902
  "name": "--mdc-checkbox-disabled-checked-icon-color"
2915
- },
2916
- {
2917
- "description": "Icon color for a disabled checkbox.",
2918
- "name": "--mdc-checkbox-disabled-icon-color"
2919
- },
2920
- {
2921
- "description": "Background color for an unselected checkbox.",
2922
- "name": "--mdc-checkbox-icon-background-color"
2923
- },
2924
- {
2925
- "description": "Default background color for an unselected checkbox.",
2926
- "name": "--mdc-checkbox-icon-border-color"
2927
- },
2928
- {
2929
- "description": "Icon color for an unselected checkbox.",
2930
- "name": "--mdc-checkbox-icon-color"
2931
- },
2932
- {
2933
- "description": "Background color for a selected checkbox when pressed.",
2934
- "name": "--mdc-checkbox-pressed-icon-color"
2935
2903
  }
2936
2904
  ],
2937
2905
  "members": [
@@ -3506,7 +3474,7 @@
3506
3474
  "module": "/src/components/formfieldwrapper/formfieldwrapper.component"
3507
3475
  },
3508
3476
  "tagName": "mdc-checkbox",
3509
- "jsDoc": "/**\n * Checkboxes allow users to select multiple options from a list or turn an item/feature on or off.\n * These are often used in forms, settings, and selections in lists.\n *\n * A checkbox component contains an optional label and an optional helper text.\n *\n * To create a group of checkboxes, use the FormFieldGroup component.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-checkbox\n *\n * @event change - (React: onChange) Event that gets dispatched when the checkbox state changes.\n * @event focus - (React: onFocus) Event that gets dispatched when the checkbox receives focus.\n *\n * @cssproperty --mdc-checkbox-background-color-hover - Allows customization of the background color on hover.\n * @cssproperty --mdc-checkbox-border-color - Border color in high contrast.\n * @cssproperty --mdc-checkbox-checked-background-color - Background color for a selected checkbox.\n * @cssproperty --mdc-checkbox-checked-background-color-hover - Background color for a selected checkbox when hovered.\n * @cssproperty --mdc-checkbox-checked-pressed-icon-color - Background color for a selected checkbox when pressed.\n * @cssproperty --mdc-checkbox-disabled-background-color - Background color for a disabled checkbox.\n * @cssproperty --mdc-checkbox-disabled-border-color - Border color for a disabled checkbox.\n * @cssproperty --mdc-checkbox-disabled-checked-icon-color - Background color for a disabled, selected checkbox.\n * @cssproperty --mdc-checkbox-disabled-icon-color - Icon color for a disabled checkbox.\n * @cssproperty --mdc-checkbox-icon-background-color - Background color for an unselected checkbox.\n * @cssproperty --mdc-checkbox-icon-border-color - Default background color for an unselected checkbox.\n * @cssproperty --mdc-checkbox-icon-color - Icon color for an unselected checkbox.\n * @cssproperty --mdc-checkbox-pressed-icon-color - Background color for a selected checkbox when pressed.\n */",
3477
+ "jsDoc": "/**\n * Checkboxes allow users to select multiple options from a list or turn an item/feature on or off.\n * These are often used in forms, settings, and selections in lists.\n *\n * A checkbox component contains an optional label and an optional helper text.\n *\n * To create a group of checkboxes, use the FormFieldGroup component.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-checkbox\n *\n * @event change - (React: onChange) Event that gets dispatched when the checkbox state changes.\n * @event focus - (React: onFocus) Event that gets dispatched when the checkbox receives focus.\n *\n * @cssproperty --mdc-checkbox-background-color-hover - Allows customization of the background color on hover.\n * @cssproperty --mdc-checkbox-checked-background-color-hover - Background color for a selected checkbox when hovered.\n * @cssproperty --mdc-checkbox-checked-pressed-icon-color - Background color for a selected checkbox when pressed.\n * @cssproperty --mdc-checkbox-pressed-icon-color - Background color for a selected checkbox when pressed.\n * @cssproperty --mdc-checkbox-disabled-checked-icon-color - Background color for a selected checkbox when disabled.\n */",
3510
3478
  "customElement": true,
3511
3479
  "slots": [
3512
3480
  {
@@ -12978,34 +12946,10 @@
12978
12946
  "description": "Radio allow users to select single options from a list or turn an item/feature on or off.\nThese are often used in forms, settings, and selection in lists.\n\nA radio component contains an optional label, optional info icon and an optional helper text.",
12979
12947
  "name": "Radio",
12980
12948
  "cssProperties": [
12981
- {
12982
- "description": "size of the inner circle",
12983
- "name": "--mdc-radio-inner-circle-size"
12984
- },
12985
12949
  {
12986
12950
  "description": "color of the label when disabled",
12987
12951
  "name": "--mdc-radio-text-disabled-color"
12988
12952
  },
12989
- {
12990
- "description": "color of the radio button border when disabled",
12991
- "name": "--mdc-radio-disabled-border-color"
12992
- },
12993
- {
12994
- "description": "color of the radio button border when normal",
12995
- "name": "--mdc-radio-normal-border-color"
12996
- },
12997
- {
12998
- "description": "background color of the inner circle when normal",
12999
- "name": "--mdc-radio-inner-circle-normal-background"
13000
- },
13001
- {
13002
- "description": "background color of the inner circle when disabled",
13003
- "name": "--mdc-radio-inner-circle-disabled-background"
13004
- },
13005
- {
13006
- "description": "color of the radio button when inactive",
13007
- "name": "--mdc-radio-control-inactive-color"
13008
- },
13009
12953
  {
13010
12954
  "description": "color of the radio button when inactive and hovered",
13011
12955
  "name": "--mdc-radio-control-inactive-hover"
@@ -13014,14 +12958,6 @@
13014
12958
  "description": "color of the radio button when inactive and pressed",
13015
12959
  "name": "--mdc-radio-control-inactive-pressed-color"
13016
12960
  },
13017
- {
13018
- "description": "background color of the radio button when inactive and disabled",
13019
- "name": "--mdc-radio-control-inactive-disabled-background"
13020
- },
13021
- {
13022
- "description": "color of the radio button when active",
13023
- "name": "--mdc-radio-control-active-color"
13024
- },
13025
12961
  {
13026
12962
  "description": "color of the radio button when active and hovered",
13027
12963
  "name": "--mdc-radio-control-active-hover-color"
@@ -13031,8 +12967,16 @@
13031
12967
  "name": "--mdc-radio-control-active-pressed-color"
13032
12968
  },
13033
12969
  {
13034
- "description": "background color of the radio button when active and disabled",
12970
+ "description": "color of the radio button when disabled",
12971
+ "name": "--mdc-radio-disabled-border-color"
12972
+ },
12973
+ {
12974
+ "description": "color of the radio button when active and disabled",
13035
12975
  "name": "--mdc-radio-control-active-disabled-background"
12976
+ },
12977
+ {
12978
+ "description": "color of the radio button when inactive and disabled",
12979
+ "name": "--mdc-radio-control-inactive-disabled-background"
13036
12980
  }
13037
12981
  ],
13038
12982
  "members": [
@@ -13681,7 +13625,7 @@
13681
13625
  "module": "/src/components/formfieldwrapper/formfieldwrapper.component"
13682
13626
  },
13683
13627
  "tagName": "mdc-radio",
13684
- "jsDoc": "/**\n * Radio allow users to select single options from a list or turn an item/feature on or off.\n * These are often used in forms, settings, and selection in lists.\n *\n * A radio component contains an optional label, optional info icon and an optional helper text.\n * @dependency mdc-formfieldwrapper\n *\n * @tagname mdc-radio\n *\n * @event change - (React: onChange) Event that gets dispatched when the radio state changes.\n * @event focus - (React: onFocus) Event that gets dispatched when the radio receives focus.\n *\n * @cssproperty --mdc-radio-inner-circle-size - size of the inner circle\n * @cssproperty --mdc-radio-text-disabled-color - color of the label when disabled\n * @cssproperty --mdc-radio-disabled-border-color - color of the radio button border when disabled\n * @cssproperty --mdc-radio-normal-border-color - color of the radio button border when normal\n * @cssproperty --mdc-radio-inner-circle-normal-background - background color of the inner circle when normal\n * @cssproperty --mdc-radio-inner-circle-disabled-background - background color of the inner circle when disabled\n * @cssproperty --mdc-radio-control-inactive-color - color of the radio button when inactive\n * @cssproperty --mdc-radio-control-inactive-hover - color of the radio button when inactive and hovered\n * @cssproperty --mdc-radio-control-inactive-pressed-color - color of the radio button when inactive and pressed\n * @cssproperty --mdc-radio-control-inactive-disabled-background - background color of the radio button when\n * inactive and disabled\n * @cssproperty --mdc-radio-control-active-color - color of the radio button when active\n * @cssproperty --mdc-radio-control-active-hover-color - color of the radio button when active and hovered\n * @cssproperty --mdc-radio-control-active-pressed-color - color of the radio button when active and pressed\n * @cssproperty --mdc-radio-control-active-disabled-background - background color of the radio button\n * when active and disabled\n *\n */",
13628
+ "jsDoc": "/**\n * Radio allow users to select single options from a list or turn an item/feature on or off.\n * These are often used in forms, settings, and selection in lists.\n *\n * A radio component contains an optional label, optional info icon and an optional helper text.\n * @dependency mdc-formfieldwrapper\n *\n * @tagname mdc-radio\n *\n * @event change - (React: onChange) Event that gets dispatched when the radio state changes.\n * @event focus - (React: onFocus) Event that gets dispatched when the radio receives focus.\n *\n * @cssproperty --mdc-radio-text-disabled-color - color of the label when disabled\n * @cssproperty --mdc-radio-control-inactive-hover - color of the radio button when inactive and hovered\n * @cssproperty --mdc-radio-control-inactive-pressed-color - color of the radio button when inactive and pressed\n * @cssproperty --mdc-radio-control-active-hover-color - color of the radio button when active and hovered\n * @cssproperty --mdc-radio-control-active-pressed-color - color of the radio button when active and pressed\n * @cssproperty --mdc-radio-disabled-border-color - color of the radio button when disabled\n * @cssproperty --mdc-radio-control-active-disabled-background - color of the radio button when active and disabled\n * @cssproperty --mdc-radio-control-inactive-disabled-background - color of the radio button when inactive and disabled\n *\n */",
13685
13629
  "customElement": true,
13686
13630
  "slots": [
13687
13631
  {
@@ -16437,6 +16381,298 @@
16437
16381
  }
16438
16382
  ]
16439
16383
  },
16384
+ {
16385
+ "kind": "javascript-module",
16386
+ "path": "components/staticcheckbox/staticcheckbox.component.js",
16387
+ "declarations": [
16388
+ {
16389
+ "kind": "class",
16390
+ "description": "This is a decorative component that is styled to look as a checkbox.\n\nIt has 3 properties - checked, indeterminate and disabled.\n\nWe are using the same styling that has been created for the `mdc-checkbox` component.",
16391
+ "name": "StaticCheckbox",
16392
+ "cssProperties": [
16393
+ {
16394
+ "description": "Border color in high contrast.",
16395
+ "name": "--mdc-staticcheckbox-border-color"
16396
+ },
16397
+ {
16398
+ "description": "Background color for a selected checkbox.",
16399
+ "name": "--mdc-staticcheckbox-checked-background-color"
16400
+ },
16401
+ {
16402
+ "description": "Background color for a disabled checkbox.",
16403
+ "name": "--mdc-staticcheckbox-disabled-background-color"
16404
+ },
16405
+ {
16406
+ "description": "Border color for a disabled checkbox.",
16407
+ "name": "--mdc-checkbox-disabled-border-color"
16408
+ },
16409
+ {
16410
+ "description": "Background color for a disabled, selected checkbox.",
16411
+ "name": "--mdc-checkbox-disabled-checked-icon-color"
16412
+ },
16413
+ {
16414
+ "description": "Icon color for a disabled checkbox.",
16415
+ "name": "--mdc-staticcheckbox-disabled-icon-color"
16416
+ },
16417
+ {
16418
+ "description": "Background color for an unselected checkbox.",
16419
+ "name": "--mdc-staticcheckbox-icon-background-color"
16420
+ },
16421
+ {
16422
+ "description": "Default background color for an unselected checkbox.",
16423
+ "name": "--mdc-staticcheckbox-icon-border-color"
16424
+ },
16425
+ {
16426
+ "description": "Icon color for an unselected checkbox.",
16427
+ "name": "--mdc-staticcheckbox-icon-color"
16428
+ }
16429
+ ],
16430
+ "members": [
16431
+ {
16432
+ "kind": "field",
16433
+ "name": "checked",
16434
+ "type": {
16435
+ "text": "boolean"
16436
+ },
16437
+ "default": "false",
16438
+ "description": "Determines whether the checkbox is selected or unselected.",
16439
+ "attribute": "checked",
16440
+ "reflects": true
16441
+ },
16442
+ {
16443
+ "kind": "field",
16444
+ "name": "indeterminate",
16445
+ "type": {
16446
+ "text": "boolean"
16447
+ },
16448
+ "default": "false",
16449
+ "description": "Determines whether the checkbox is in an indeterminate state.",
16450
+ "attribute": "indeterminate",
16451
+ "reflects": true
16452
+ },
16453
+ {
16454
+ "kind": "field",
16455
+ "name": "disabled",
16456
+ "type": {
16457
+ "text": "boolean | undefined"
16458
+ },
16459
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
16460
+ "default": "undefined",
16461
+ "attribute": "disabled",
16462
+ "reflects": true,
16463
+ "inheritedFrom": {
16464
+ "name": "DisabledMixin",
16465
+ "module": "utils/mixins/DisabledMixin.js"
16466
+ }
16467
+ }
16468
+ ],
16469
+ "attributes": [
16470
+ {
16471
+ "name": "checked",
16472
+ "type": {
16473
+ "text": "boolean"
16474
+ },
16475
+ "default": "false",
16476
+ "description": "Determines whether the checkbox is selected or unselected.",
16477
+ "fieldName": "checked"
16478
+ },
16479
+ {
16480
+ "name": "indeterminate",
16481
+ "type": {
16482
+ "text": "boolean"
16483
+ },
16484
+ "default": "false",
16485
+ "description": "Determines whether the checkbox is in an indeterminate state.",
16486
+ "fieldName": "indeterminate"
16487
+ },
16488
+ {
16489
+ "name": "disabled",
16490
+ "type": {
16491
+ "text": "boolean | undefined"
16492
+ },
16493
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
16494
+ "default": "undefined",
16495
+ "fieldName": "disabled",
16496
+ "inheritedFrom": {
16497
+ "name": "DisabledMixin",
16498
+ "module": "src/utils/mixins/DisabledMixin.ts"
16499
+ }
16500
+ }
16501
+ ],
16502
+ "mixins": [
16503
+ {
16504
+ "name": "DisabledMixin",
16505
+ "module": "/src/utils/mixins/DisabledMixin"
16506
+ }
16507
+ ],
16508
+ "superclass": {
16509
+ "name": "Component",
16510
+ "module": "/src/models"
16511
+ },
16512
+ "tagName": "mdc-staticcheckbox",
16513
+ "jsDoc": "/**\n * This is a decorative component that is styled to look as a checkbox.\n *\n * It has 3 properties - checked, indeterminate and disabled.\n *\n * We are using the same styling that has been created for the `mdc-checkbox` component.\n *\n * @tagname mdc-staticcheckbox\n *\n * @dependency mdc-icon\n *\n * @cssproperty --mdc-staticcheckbox-border-color - Border color in high contrast.\n * @cssproperty --mdc-staticcheckbox-checked-background-color - Background color for a selected checkbox.\n * @cssproperty --mdc-staticcheckbox-disabled-background-color - Background color for a disabled checkbox.\n * @cssproperty --mdc-checkbox-disabled-border-color - Border color for a disabled checkbox.\n * @cssproperty --mdc-checkbox-disabled-checked-icon-color - Background color for a disabled, selected checkbox.\n * @cssproperty --mdc-staticcheckbox-disabled-icon-color - Icon color for a disabled checkbox.\n * @cssproperty --mdc-staticcheckbox-icon-background-color - Background color for an unselected checkbox.\n * @cssproperty --mdc-staticcheckbox-icon-border-color - Default background color for an unselected checkbox.\n * @cssproperty --mdc-staticcheckbox-icon-color - Icon color for an unselected checkbox.\n *\n */",
16514
+ "customElement": true
16515
+ }
16516
+ ],
16517
+ "exports": [
16518
+ {
16519
+ "kind": "js",
16520
+ "name": "default",
16521
+ "declaration": {
16522
+ "name": "StaticCheckbox",
16523
+ "module": "components/staticcheckbox/staticcheckbox.component.js"
16524
+ }
16525
+ }
16526
+ ]
16527
+ },
16528
+ {
16529
+ "kind": "javascript-module",
16530
+ "path": "components/staticradio/staticradio.component.js",
16531
+ "declarations": [
16532
+ {
16533
+ "kind": "class",
16534
+ "description": "This is a decorative component that is styled to look as a radio.\nIt has 2 properties - checked and disabled.\n\nWe are using the same styling that has been created for the `mdc-radio` component.",
16535
+ "name": "StaticRadio",
16536
+ "cssProperties": [
16537
+ {
16538
+ "description": "size of the inner circle",
16539
+ "name": "--mdc-staticradio-inner-circle-size"
16540
+ },
16541
+ {
16542
+ "description": "color of the label when disabled",
16543
+ "name": "--mdc-staticradio-text-disabled-color"
16544
+ },
16545
+ {
16546
+ "description": "color of the radio button border when normal",
16547
+ "name": "--mdc-staticradio-normal-border-color"
16548
+ },
16549
+ {
16550
+ "description": "color of the radio button border when disabled",
16551
+ "name": "--mdc-staticradio-disabled-border-color"
16552
+ },
16553
+ {
16554
+ "description": "background color of the inner circle when normal",
16555
+ "name": "--mdc-staticradio-inner-circle-normal-background"
16556
+ },
16557
+ {
16558
+ "description": "background color of the inner circle when disabled",
16559
+ "name": "--mdc-staticradio-inner-circle-disabled-background"
16560
+ },
16561
+ {
16562
+ "description": "color of the radio button when inactive",
16563
+ "name": "--mdc-staticradio-control-inactive-color"
16564
+ },
16565
+ {
16566
+ "description": "background color of the radio button when inactive and disabled",
16567
+ "name": "--mdc-staticradio-control-inactive-disabled-background"
16568
+ },
16569
+ {
16570
+ "description": "color of the radio button when active",
16571
+ "name": "--mdc-staticradio-control-active-color"
16572
+ },
16573
+ {
16574
+ "description": "background color of the radio button when active and disabled",
16575
+ "name": "--mdc-staticradio-control-active-disabled-background"
16576
+ }
16577
+ ],
16578
+ "members": [
16579
+ {
16580
+ "kind": "field",
16581
+ "name": "checked",
16582
+ "type": {
16583
+ "text": "boolean"
16584
+ },
16585
+ "default": "false",
16586
+ "description": "Determines whether the radio is selected or unselected.",
16587
+ "attribute": "checked",
16588
+ "reflects": true
16589
+ },
16590
+ {
16591
+ "kind": "field",
16592
+ "name": "readonly",
16593
+ "type": {
16594
+ "text": "boolean"
16595
+ },
16596
+ "default": "false",
16597
+ "description": "Determines whether the radio is read-only.",
16598
+ "attribute": "readonly",
16599
+ "reflects": true
16600
+ },
16601
+ {
16602
+ "kind": "field",
16603
+ "name": "disabled",
16604
+ "type": {
16605
+ "text": "boolean | undefined"
16606
+ },
16607
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
16608
+ "default": "undefined",
16609
+ "attribute": "disabled",
16610
+ "reflects": true,
16611
+ "inheritedFrom": {
16612
+ "name": "DisabledMixin",
16613
+ "module": "utils/mixins/DisabledMixin.js"
16614
+ }
16615
+ }
16616
+ ],
16617
+ "attributes": [
16618
+ {
16619
+ "name": "checked",
16620
+ "type": {
16621
+ "text": "boolean"
16622
+ },
16623
+ "default": "false",
16624
+ "description": "Determines whether the radio is selected or unselected.",
16625
+ "fieldName": "checked"
16626
+ },
16627
+ {
16628
+ "name": "readonly",
16629
+ "type": {
16630
+ "text": "boolean"
16631
+ },
16632
+ "default": "false",
16633
+ "description": "Determines whether the radio is read-only.",
16634
+ "fieldName": "readonly"
16635
+ },
16636
+ {
16637
+ "name": "disabled",
16638
+ "type": {
16639
+ "text": "boolean | undefined"
16640
+ },
16641
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
16642
+ "default": "undefined",
16643
+ "fieldName": "disabled",
16644
+ "inheritedFrom": {
16645
+ "name": "DisabledMixin",
16646
+ "module": "src/utils/mixins/DisabledMixin.ts"
16647
+ }
16648
+ }
16649
+ ],
16650
+ "mixins": [
16651
+ {
16652
+ "name": "DisabledMixin",
16653
+ "module": "/src/utils/mixins/DisabledMixin"
16654
+ }
16655
+ ],
16656
+ "superclass": {
16657
+ "name": "Component",
16658
+ "module": "/src/models"
16659
+ },
16660
+ "tagName": "mdc-staticradio",
16661
+ "jsDoc": "/**\n * This is a decorative component that is styled to look as a radio.\n * It has 2 properties - checked and disabled.\n *\n * We are using the same styling that has been created for the `mdc-radio` component.\n *\n * @tagname mdc-staticradio\n *\n * @cssproperty --mdc-staticradio-inner-circle-size - size of the inner circle\n * @cssproperty --mdc-staticradio-text-disabled-color - color of the label when disabled\n * @cssproperty --mdc-staticradio-normal-border-color - color of the radio button border when normal\n * @cssproperty --mdc-staticradio-disabled-border-color - color of the radio button border when disabled\n * @cssproperty --mdc-staticradio-inner-circle-normal-background - background color of the inner circle when normal\n * @cssproperty --mdc-staticradio-inner-circle-disabled-background - background color of the inner circle when disabled\n * @cssproperty --mdc-staticradio-control-inactive-color - color of the radio button when inactive\n * @cssproperty --mdc-staticradio-control-inactive-disabled-background - background color of the radio button when\n * inactive and disabled\n * @cssproperty --mdc-staticradio-control-active-color - color of the radio button when active\n * @cssproperty --mdc-staticradio-control-active-disabled-background - background color of the radio button\n * when active and disabled\n */",
16662
+ "customElement": true
16663
+ }
16664
+ ],
16665
+ "exports": [
16666
+ {
16667
+ "kind": "js",
16668
+ "name": "default",
16669
+ "declaration": {
16670
+ "name": "StaticRadio",
16671
+ "module": "components/staticradio/staticradio.component.js"
16672
+ }
16673
+ }
16674
+ ]
16675
+ },
16440
16676
  {
16441
16677
  "kind": "javascript-module",
16442
16678
  "path": "components/tab/tab.component.js",
package/dist/index.d.ts CHANGED
@@ -9,6 +9,8 @@ import Button from './components/button';
9
9
  import Checkbox from './components/checkbox';
10
10
  import Chip from './components/chip';
11
11
  import Coachmark from './components/coachmark';
12
+ import StaticCheckbox from './components/staticcheckbox';
13
+ import StaticRadio from './components/staticradio';
12
14
  import Divider from './components/divider';
13
15
  import FilterChip from './components/filterchip';
14
16
  import FormfieldGroup from './components/formfieldgroup';
@@ -47,6 +49,6 @@ import type { SpinnerSize, SpinnerVariant } from './components/spinner/spinner.t
47
49
  import type { TextType } from './components/text/text.types';
48
50
  import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
49
51
  import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES } from './components/button/button.constants';
50
- export { AlertChip, Avatar, AvatarButton, Badge, Bullet, Button, Checkbox, Chip, Coachmark, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, List, ListItem, Marker, Popover, Presence, Radio, RadioGroup, Spinner, Tab, Text, ThemeProvider, Toggle, VirtualizedList, Option, OptGroup, Progressbar, ScreenreaderAnnouncer, Textarea, Tooltip, Searchfield, Brandvisual, Appheader, Select, TabList, Progressspinner, };
52
+ export { AlertChip, Avatar, AvatarButton, Badge, Bullet, Button, Checkbox, Chip, Coachmark, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, List, ListItem, Marker, Popover, Presence, Radio, RadioGroup, Spinner, Tab, Text, ThemeProvider, Toggle, VirtualizedList, Option, OptGroup, Progressbar, ScreenreaderAnnouncer, StaticCheckbox, StaticRadio, Textarea, Tooltip, Searchfield, Brandvisual, Appheader, Select, TabList, Progressspinner, };
51
53
  export type { TextType, SpinnerSize, SpinnerVariant, PopoverPlacement, BadgeType, IconButtonSize, PillButtonSize, ButtonVariant, ButtonColor, };
52
54
  export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES };
package/dist/index.js CHANGED
@@ -10,6 +10,8 @@ import Button from './components/button';
10
10
  import Checkbox from './components/checkbox';
11
11
  import Chip from './components/chip';
12
12
  import Coachmark from './components/coachmark';
13
+ import StaticCheckbox from './components/staticcheckbox';
14
+ import StaticRadio from './components/staticradio';
13
15
  import Divider from './components/divider';
14
16
  import FilterChip from './components/filterchip';
15
17
  import FormfieldGroup from './components/formfieldgroup';
@@ -45,6 +47,6 @@ import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
45
47
  // Constants / Utils Imports
46
48
  import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES, } from './components/button/button.constants';
47
49
  // Components Exports
48
- export { AlertChip, Avatar, AvatarButton, Badge, Bullet, Button, Checkbox, Chip, Coachmark, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, List, ListItem, Marker, Popover, Presence, Radio, RadioGroup, Spinner, Tab, Text, ThemeProvider, Toggle, VirtualizedList, Option, OptGroup, Progressbar, ScreenreaderAnnouncer, Textarea, Tooltip, Searchfield, Brandvisual, Appheader, Select, TabList, Progressspinner, };
50
+ export { AlertChip, Avatar, AvatarButton, Badge, Bullet, Button, Checkbox, Chip, Coachmark, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, List, ListItem, Marker, Popover, Presence, Radio, RadioGroup, Spinner, Tab, Text, ThemeProvider, Toggle, VirtualizedList, Option, OptGroup, Progressbar, ScreenreaderAnnouncer, StaticCheckbox, StaticRadio, Textarea, Tooltip, Searchfield, Brandvisual, Appheader, Select, TabList, Progressspinner, };
49
51
  // Constants / Utils Exports
50
52
  export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES };
@@ -16,18 +16,10 @@ import Component from '../../components/checkbox';
16
16
  * @event focus - (React: onFocus) Event that gets dispatched when the checkbox receives focus.
17
17
  *
18
18
  * @cssproperty --mdc-checkbox-background-color-hover - Allows customization of the background color on hover.
19
- * @cssproperty --mdc-checkbox-border-color - Border color in high contrast.
20
- * @cssproperty --mdc-checkbox-checked-background-color - Background color for a selected checkbox.
21
19
  * @cssproperty --mdc-checkbox-checked-background-color-hover - Background color for a selected checkbox when hovered.
22
20
  * @cssproperty --mdc-checkbox-checked-pressed-icon-color - Background color for a selected checkbox when pressed.
23
- * @cssproperty --mdc-checkbox-disabled-background-color - Background color for a disabled checkbox.
24
- * @cssproperty --mdc-checkbox-disabled-border-color - Border color for a disabled checkbox.
25
- * @cssproperty --mdc-checkbox-disabled-checked-icon-color - Background color for a disabled, selected checkbox.
26
- * @cssproperty --mdc-checkbox-disabled-icon-color - Icon color for a disabled checkbox.
27
- * @cssproperty --mdc-checkbox-icon-background-color - Background color for an unselected checkbox.
28
- * @cssproperty --mdc-checkbox-icon-border-color - Default background color for an unselected checkbox.
29
- * @cssproperty --mdc-checkbox-icon-color - Icon color for an unselected checkbox.
30
21
  * @cssproperty --mdc-checkbox-pressed-icon-color - Background color for a selected checkbox when pressed.
22
+ * @cssproperty --mdc-checkbox-disabled-checked-icon-color - Background color for a selected checkbox when disabled.
31
23
  */
32
24
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
33
25
  onChange: EventName<Event>;
@@ -18,18 +18,10 @@ import { TAG_NAME } from '../../components/checkbox/checkbox.constants';
18
18
  * @event focus - (React: onFocus) Event that gets dispatched when the checkbox receives focus.
19
19
  *
20
20
  * @cssproperty --mdc-checkbox-background-color-hover - Allows customization of the background color on hover.
21
- * @cssproperty --mdc-checkbox-border-color - Border color in high contrast.
22
- * @cssproperty --mdc-checkbox-checked-background-color - Background color for a selected checkbox.
23
21
  * @cssproperty --mdc-checkbox-checked-background-color-hover - Background color for a selected checkbox when hovered.
24
22
  * @cssproperty --mdc-checkbox-checked-pressed-icon-color - Background color for a selected checkbox when pressed.
25
- * @cssproperty --mdc-checkbox-disabled-background-color - Background color for a disabled checkbox.
26
- * @cssproperty --mdc-checkbox-disabled-border-color - Border color for a disabled checkbox.
27
- * @cssproperty --mdc-checkbox-disabled-checked-icon-color - Background color for a disabled, selected checkbox.
28
- * @cssproperty --mdc-checkbox-disabled-icon-color - Icon color for a disabled checkbox.
29
- * @cssproperty --mdc-checkbox-icon-background-color - Background color for an unselected checkbox.
30
- * @cssproperty --mdc-checkbox-icon-border-color - Default background color for an unselected checkbox.
31
- * @cssproperty --mdc-checkbox-icon-color - Icon color for an unselected checkbox.
32
23
  * @cssproperty --mdc-checkbox-pressed-icon-color - Background color for a selected checkbox when pressed.
24
+ * @cssproperty --mdc-checkbox-disabled-checked-icon-color - Background color for a selected checkbox when disabled.
33
25
  */
34
26
  const reactWrapper = createComponent({
35
27
  tagName: TAG_NAME,
@@ -34,6 +34,8 @@ export { default as ScreenreaderAnnouncer } from './screenreaderannouncer';
34
34
  export { default as Searchfield } from './searchfield';
35
35
  export { default as Select } from './select';
36
36
  export { default as Spinner } from './spinner';
37
+ export { default as StaticCheckbox } from './staticcheckbox';
38
+ export { default as StaticRadio } from './staticradio';
37
39
  export { default as Tab } from './tab';
38
40
  export { default as TabList } from './tablist';
39
41
  export { default as Text } from './text';
@@ -34,6 +34,8 @@ export { default as ScreenreaderAnnouncer } from './screenreaderannouncer';
34
34
  export { default as Searchfield } from './searchfield';
35
35
  export { default as Select } from './select';
36
36
  export { default as Spinner } from './spinner';
37
+ export { default as StaticCheckbox } from './staticcheckbox';
38
+ export { default as StaticRadio } from './staticradio';
37
39
  export { default as Tab } from './tab';
38
40
  export { default as TabList } from './tablist';
39
41
  export { default as Text } from './text';
@@ -12,22 +12,14 @@ import Component from '../../components/radio';
12
12
  * @event change - (React: onChange) Event that gets dispatched when the radio state changes.
13
13
  * @event focus - (React: onFocus) Event that gets dispatched when the radio receives focus.
14
14
  *
15
- * @cssproperty --mdc-radio-inner-circle-size - size of the inner circle
16
15
  * @cssproperty --mdc-radio-text-disabled-color - color of the label when disabled
17
- * @cssproperty --mdc-radio-disabled-border-color - color of the radio button border when disabled
18
- * @cssproperty --mdc-radio-normal-border-color - color of the radio button border when normal
19
- * @cssproperty --mdc-radio-inner-circle-normal-background - background color of the inner circle when normal
20
- * @cssproperty --mdc-radio-inner-circle-disabled-background - background color of the inner circle when disabled
21
- * @cssproperty --mdc-radio-control-inactive-color - color of the radio button when inactive
22
16
  * @cssproperty --mdc-radio-control-inactive-hover - color of the radio button when inactive and hovered
23
17
  * @cssproperty --mdc-radio-control-inactive-pressed-color - color of the radio button when inactive and pressed
24
- * @cssproperty --mdc-radio-control-inactive-disabled-background - background color of the radio button when
25
- * inactive and disabled
26
- * @cssproperty --mdc-radio-control-active-color - color of the radio button when active
27
18
  * @cssproperty --mdc-radio-control-active-hover-color - color of the radio button when active and hovered
28
19
  * @cssproperty --mdc-radio-control-active-pressed-color - color of the radio button when active and pressed
29
- * @cssproperty --mdc-radio-control-active-disabled-background - background color of the radio button
30
- * when active and disabled
20
+ * @cssproperty --mdc-radio-disabled-border-color - color of the radio button when disabled
21
+ * @cssproperty --mdc-radio-control-active-disabled-background - color of the radio button when active and disabled
22
+ * @cssproperty --mdc-radio-control-inactive-disabled-background - color of the radio button when inactive and disabled
31
23
  *
32
24
  */
33
25
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
@@ -14,22 +14,14 @@ import { TAG_NAME } from '../../components/radio/radio.constants';
14
14
  * @event change - (React: onChange) Event that gets dispatched when the radio state changes.
15
15
  * @event focus - (React: onFocus) Event that gets dispatched when the radio receives focus.
16
16
  *
17
- * @cssproperty --mdc-radio-inner-circle-size - size of the inner circle
18
17
  * @cssproperty --mdc-radio-text-disabled-color - color of the label when disabled
19
- * @cssproperty --mdc-radio-disabled-border-color - color of the radio button border when disabled
20
- * @cssproperty --mdc-radio-normal-border-color - color of the radio button border when normal
21
- * @cssproperty --mdc-radio-inner-circle-normal-background - background color of the inner circle when normal
22
- * @cssproperty --mdc-radio-inner-circle-disabled-background - background color of the inner circle when disabled
23
- * @cssproperty --mdc-radio-control-inactive-color - color of the radio button when inactive
24
18
  * @cssproperty --mdc-radio-control-inactive-hover - color of the radio button when inactive and hovered
25
19
  * @cssproperty --mdc-radio-control-inactive-pressed-color - color of the radio button when inactive and pressed
26
- * @cssproperty --mdc-radio-control-inactive-disabled-background - background color of the radio button when
27
- * inactive and disabled
28
- * @cssproperty --mdc-radio-control-active-color - color of the radio button when active
29
20
  * @cssproperty --mdc-radio-control-active-hover-color - color of the radio button when active and hovered
30
21
  * @cssproperty --mdc-radio-control-active-pressed-color - color of the radio button when active and pressed
31
- * @cssproperty --mdc-radio-control-active-disabled-background - background color of the radio button
32
- * when active and disabled
22
+ * @cssproperty --mdc-radio-disabled-border-color - color of the radio button when disabled
23
+ * @cssproperty --mdc-radio-control-active-disabled-background - color of the radio button when active and disabled
24
+ * @cssproperty --mdc-radio-control-inactive-disabled-background - color of the radio button when inactive and disabled
33
25
  *
34
26
  */
35
27
  const reactWrapper = createComponent({
@@ -0,0 +1,25 @@
1
+ import Component from '../../components/staticcheckbox';
2
+ /**
3
+ * This is a decorative component that is styled to look as a checkbox.
4
+ *
5
+ * It has 3 properties - checked, indeterminate and disabled.
6
+ *
7
+ * We are using the same styling that has been created for the `mdc-checkbox` component.
8
+ *
9
+ * @tagname mdc-staticcheckbox
10
+ *
11
+ * @dependency mdc-icon
12
+ *
13
+ * @cssproperty --mdc-staticcheckbox-border-color - Border color in high contrast.
14
+ * @cssproperty --mdc-staticcheckbox-checked-background-color - Background color for a selected checkbox.
15
+ * @cssproperty --mdc-staticcheckbox-disabled-background-color - Background color for a disabled checkbox.
16
+ * @cssproperty --mdc-checkbox-disabled-border-color - Border color for a disabled checkbox.
17
+ * @cssproperty --mdc-checkbox-disabled-checked-icon-color - Background color for a disabled, selected checkbox.
18
+ * @cssproperty --mdc-staticcheckbox-disabled-icon-color - Icon color for a disabled checkbox.
19
+ * @cssproperty --mdc-staticcheckbox-icon-background-color - Background color for an unselected checkbox.
20
+ * @cssproperty --mdc-staticcheckbox-icon-border-color - Default background color for an unselected checkbox.
21
+ * @cssproperty --mdc-staticcheckbox-icon-color - Icon color for an unselected checkbox.
22
+ *
23
+ */
24
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
25
+ export default reactWrapper;