@nordhealth/components 2.16.0 → 2.16.1-alpha.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.
- package/custom-elements.json +495 -483
- package/lib/Button.js +1 -1
- package/lib/Button.js.map +1 -1
- package/lib/{Calendar-88644376.js → Calendar-2cc56879.js} +1 -1
- package/lib/{Calendar-88644376.js.map → Calendar-2cc56879.js.map} +1 -1
- package/lib/Calendar.js +1 -1
- package/lib/DatePicker.js +1 -1
- package/lib/Navigation.js +1 -1
- package/lib/Navigation.js.map +1 -1
- package/lib/bundle.js +2 -2
- package/lib/bundle.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/src/button/Button.d.ts +1 -0
- package/lib/src/navigation/Navigation.d.ts +1 -0
- package/package.json +2 -2
package/custom-elements.json
CHANGED
|
@@ -674,6 +674,128 @@
|
|
|
674
674
|
}
|
|
675
675
|
]
|
|
676
676
|
},
|
|
677
|
+
{
|
|
678
|
+
"kind": "javascript-module",
|
|
679
|
+
"path": "src/button-group/ButtonGroup.ts",
|
|
680
|
+
"declarations": [
|
|
681
|
+
{
|
|
682
|
+
"kind": "class",
|
|
683
|
+
"description": "Button groups are designed to bring together button controls that are of a similar nature. For example text formatting controls.",
|
|
684
|
+
"name": "ButtonGroup",
|
|
685
|
+
"cssProperties": [
|
|
686
|
+
{
|
|
687
|
+
"description": "Controls the rounded corners of the button, using [border radius tokens](/tokens/#border-radius).",
|
|
688
|
+
"name": "--n-button-group-border-radius",
|
|
689
|
+
"default": "var(--n-border-radius-s)"
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
693
|
+
"name": "--n-button-group-box-shadow",
|
|
694
|
+
"default": "var(--n-box-shadow)"
|
|
695
|
+
}
|
|
696
|
+
],
|
|
697
|
+
"slots": [
|
|
698
|
+
{
|
|
699
|
+
"description": "The button group content",
|
|
700
|
+
"name": ""
|
|
701
|
+
}
|
|
702
|
+
],
|
|
703
|
+
"members": [
|
|
704
|
+
{
|
|
705
|
+
"kind": "field",
|
|
706
|
+
"name": "direction",
|
|
707
|
+
"type": {
|
|
708
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
709
|
+
},
|
|
710
|
+
"default": "\"horizontal\"",
|
|
711
|
+
"description": "The direction of the button group.",
|
|
712
|
+
"attribute": "direction",
|
|
713
|
+
"reflects": true
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"kind": "field",
|
|
717
|
+
"name": "role",
|
|
718
|
+
"type": {
|
|
719
|
+
"text": "string"
|
|
720
|
+
},
|
|
721
|
+
"default": "\"group\"",
|
|
722
|
+
"description": "The appropriate role for the containing element.",
|
|
723
|
+
"attribute": "role",
|
|
724
|
+
"reflects": true
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"kind": "field",
|
|
728
|
+
"name": "_warningLogged",
|
|
729
|
+
"type": {
|
|
730
|
+
"text": "boolean"
|
|
731
|
+
},
|
|
732
|
+
"privacy": "private",
|
|
733
|
+
"static": true,
|
|
734
|
+
"default": "false",
|
|
735
|
+
"inheritedFrom": {
|
|
736
|
+
"name": "DraftComponentMixin",
|
|
737
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
],
|
|
741
|
+
"attributes": [
|
|
742
|
+
{
|
|
743
|
+
"name": "direction",
|
|
744
|
+
"type": {
|
|
745
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
746
|
+
},
|
|
747
|
+
"default": "\"horizontal\"",
|
|
748
|
+
"description": "The direction of the button group.",
|
|
749
|
+
"fieldName": "direction"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"name": "role",
|
|
753
|
+
"type": {
|
|
754
|
+
"text": "string"
|
|
755
|
+
},
|
|
756
|
+
"default": "\"group\"",
|
|
757
|
+
"description": "The appropriate role for the containing element.",
|
|
758
|
+
"fieldName": "role"
|
|
759
|
+
}
|
|
760
|
+
],
|
|
761
|
+
"mixins": [
|
|
762
|
+
{
|
|
763
|
+
"name": "DraftComponentMixin",
|
|
764
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
765
|
+
}
|
|
766
|
+
],
|
|
767
|
+
"superclass": {
|
|
768
|
+
"name": "LitElement",
|
|
769
|
+
"package": "lit"
|
|
770
|
+
},
|
|
771
|
+
"localization": [],
|
|
772
|
+
"status": "draft",
|
|
773
|
+
"category": "structure",
|
|
774
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to group together buttons, or dropdowns, of a similar nature or purpose.\n- Use the appropriate `role` attribute on the button group to provide additional semantics.\n- Use an `aria-labelledby` attribute referencing another element to best explain the contents of the button group.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t add components other than buttons, dropdowns and in some instances visually hidden components to the button group.\n- Don’t skip the addition of an appropriate label if the added `role` attribute value calls for it.\n- Don’t use for building grid based layouts.\n\n</div>\n\n---\n\n## Content guidelines\n\nButton group labels should be accurate and predictable.\n",
|
|
775
|
+
"examples": [],
|
|
776
|
+
"tagName": "nord-button-group",
|
|
777
|
+
"customElement": true
|
|
778
|
+
}
|
|
779
|
+
],
|
|
780
|
+
"exports": [
|
|
781
|
+
{
|
|
782
|
+
"kind": "js",
|
|
783
|
+
"name": "default",
|
|
784
|
+
"declaration": {
|
|
785
|
+
"name": "ButtonGroup",
|
|
786
|
+
"module": "src/button-group/ButtonGroup.ts"
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"kind": "custom-element-definition",
|
|
791
|
+
"name": "nord-button-group",
|
|
792
|
+
"declaration": {
|
|
793
|
+
"name": "ButtonGroup",
|
|
794
|
+
"module": "src/button-group/ButtonGroup.ts"
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
]
|
|
798
|
+
},
|
|
677
799
|
{
|
|
678
800
|
"kind": "javascript-module",
|
|
679
801
|
"path": "src/banner/Banner.ts",
|
|
@@ -824,6 +946,11 @@
|
|
|
824
946
|
"description": "Controls the minimum block size, or height, of the button using our [spacing tokens](/tokens/#space).",
|
|
825
947
|
"name": "--n-button-min-block-size",
|
|
826
948
|
"default": "var(--n-space-xl)"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"description": "Controls the color of the dropdown icon, using our [color tokens](/tokens/#color).",
|
|
952
|
+
"name": "--n-button-dropdown-icon-color",
|
|
953
|
+
"default": "var(--n-color-icon)"
|
|
827
954
|
}
|
|
828
955
|
],
|
|
829
956
|
"slots": [
|
|
@@ -1296,128 +1423,6 @@
|
|
|
1296
1423
|
}
|
|
1297
1424
|
]
|
|
1298
1425
|
},
|
|
1299
|
-
{
|
|
1300
|
-
"kind": "javascript-module",
|
|
1301
|
-
"path": "src/button-group/ButtonGroup.ts",
|
|
1302
|
-
"declarations": [
|
|
1303
|
-
{
|
|
1304
|
-
"kind": "class",
|
|
1305
|
-
"description": "Button groups are designed to bring together button controls that are of a similar nature. For example text formatting controls.",
|
|
1306
|
-
"name": "ButtonGroup",
|
|
1307
|
-
"cssProperties": [
|
|
1308
|
-
{
|
|
1309
|
-
"description": "Controls the rounded corners of the button, using [border radius tokens](/tokens/#border-radius).",
|
|
1310
|
-
"name": "--n-button-group-border-radius",
|
|
1311
|
-
"default": "var(--n-border-radius-s)"
|
|
1312
|
-
},
|
|
1313
|
-
{
|
|
1314
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1315
|
-
"name": "--n-button-group-box-shadow",
|
|
1316
|
-
"default": "var(--n-box-shadow)"
|
|
1317
|
-
}
|
|
1318
|
-
],
|
|
1319
|
-
"slots": [
|
|
1320
|
-
{
|
|
1321
|
-
"description": "The button group content",
|
|
1322
|
-
"name": ""
|
|
1323
|
-
}
|
|
1324
|
-
],
|
|
1325
|
-
"members": [
|
|
1326
|
-
{
|
|
1327
|
-
"kind": "field",
|
|
1328
|
-
"name": "direction",
|
|
1329
|
-
"type": {
|
|
1330
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
1331
|
-
},
|
|
1332
|
-
"default": "\"horizontal\"",
|
|
1333
|
-
"description": "The direction of the button group.",
|
|
1334
|
-
"attribute": "direction",
|
|
1335
|
-
"reflects": true
|
|
1336
|
-
},
|
|
1337
|
-
{
|
|
1338
|
-
"kind": "field",
|
|
1339
|
-
"name": "role",
|
|
1340
|
-
"type": {
|
|
1341
|
-
"text": "string"
|
|
1342
|
-
},
|
|
1343
|
-
"default": "\"group\"",
|
|
1344
|
-
"description": "The appropriate role for the containing element.",
|
|
1345
|
-
"attribute": "role",
|
|
1346
|
-
"reflects": true
|
|
1347
|
-
},
|
|
1348
|
-
{
|
|
1349
|
-
"kind": "field",
|
|
1350
|
-
"name": "_warningLogged",
|
|
1351
|
-
"type": {
|
|
1352
|
-
"text": "boolean"
|
|
1353
|
-
},
|
|
1354
|
-
"privacy": "private",
|
|
1355
|
-
"static": true,
|
|
1356
|
-
"default": "false",
|
|
1357
|
-
"inheritedFrom": {
|
|
1358
|
-
"name": "DraftComponentMixin",
|
|
1359
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
],
|
|
1363
|
-
"attributes": [
|
|
1364
|
-
{
|
|
1365
|
-
"name": "direction",
|
|
1366
|
-
"type": {
|
|
1367
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
1368
|
-
},
|
|
1369
|
-
"default": "\"horizontal\"",
|
|
1370
|
-
"description": "The direction of the button group.",
|
|
1371
|
-
"fieldName": "direction"
|
|
1372
|
-
},
|
|
1373
|
-
{
|
|
1374
|
-
"name": "role",
|
|
1375
|
-
"type": {
|
|
1376
|
-
"text": "string"
|
|
1377
|
-
},
|
|
1378
|
-
"default": "\"group\"",
|
|
1379
|
-
"description": "The appropriate role for the containing element.",
|
|
1380
|
-
"fieldName": "role"
|
|
1381
|
-
}
|
|
1382
|
-
],
|
|
1383
|
-
"mixins": [
|
|
1384
|
-
{
|
|
1385
|
-
"name": "DraftComponentMixin",
|
|
1386
|
-
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
1387
|
-
}
|
|
1388
|
-
],
|
|
1389
|
-
"superclass": {
|
|
1390
|
-
"name": "LitElement",
|
|
1391
|
-
"package": "lit"
|
|
1392
|
-
},
|
|
1393
|
-
"localization": [],
|
|
1394
|
-
"status": "draft",
|
|
1395
|
-
"category": "structure",
|
|
1396
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to group together buttons, or dropdowns, of a similar nature or purpose.\n- Use the appropriate `role` attribute on the button group to provide additional semantics.\n- Use an `aria-labelledby` attribute referencing another element to best explain the contents of the button group.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t add components other than buttons, dropdowns and in some instances visually hidden components to the button group.\n- Don’t skip the addition of an appropriate label if the added `role` attribute value calls for it.\n- Don’t use for building grid based layouts.\n\n</div>\n\n---\n\n## Content guidelines\n\nButton group labels should be accurate and predictable.\n",
|
|
1397
|
-
"examples": [],
|
|
1398
|
-
"tagName": "nord-button-group",
|
|
1399
|
-
"customElement": true
|
|
1400
|
-
}
|
|
1401
|
-
],
|
|
1402
|
-
"exports": [
|
|
1403
|
-
{
|
|
1404
|
-
"kind": "js",
|
|
1405
|
-
"name": "default",
|
|
1406
|
-
"declaration": {
|
|
1407
|
-
"name": "ButtonGroup",
|
|
1408
|
-
"module": "src/button-group/ButtonGroup.ts"
|
|
1409
|
-
}
|
|
1410
|
-
},
|
|
1411
|
-
{
|
|
1412
|
-
"kind": "custom-element-definition",
|
|
1413
|
-
"name": "nord-button-group",
|
|
1414
|
-
"declaration": {
|
|
1415
|
-
"name": "ButtonGroup",
|
|
1416
|
-
"module": "src/button-group/ButtonGroup.ts"
|
|
1417
|
-
}
|
|
1418
|
-
}
|
|
1419
|
-
]
|
|
1420
|
-
},
|
|
1421
1426
|
{
|
|
1422
1427
|
"kind": "javascript-module",
|
|
1423
1428
|
"path": "src/calendar/Calendar.ts",
|
|
@@ -8867,18 +8872,85 @@
|
|
|
8867
8872
|
},
|
|
8868
8873
|
{
|
|
8869
8874
|
"kind": "javascript-module",
|
|
8870
|
-
"path": "src/nav-
|
|
8875
|
+
"path": "src/nav-group/NavGroup.ts",
|
|
8871
8876
|
"declarations": [
|
|
8872
8877
|
{
|
|
8873
8878
|
"kind": "class",
|
|
8874
|
-
"description": "Navigation
|
|
8875
|
-
"name": "
|
|
8879
|
+
"description": "Navigation group includes all the actions or items in a single\ngroup and is used for grouping items into related categories.",
|
|
8880
|
+
"name": "NavGroup",
|
|
8876
8881
|
"slots": [
|
|
8877
8882
|
{
|
|
8878
|
-
"description": "The default slot used for the nav
|
|
8883
|
+
"description": "The default slot used for the nav items.",
|
|
8879
8884
|
"name": ""
|
|
8880
|
-
}
|
|
8881
|
-
|
|
8885
|
+
}
|
|
8886
|
+
],
|
|
8887
|
+
"members": [
|
|
8888
|
+
{
|
|
8889
|
+
"kind": "field",
|
|
8890
|
+
"name": "heading",
|
|
8891
|
+
"type": {
|
|
8892
|
+
"text": "string | undefined"
|
|
8893
|
+
},
|
|
8894
|
+
"description": "Heading and accessible label for the nav group",
|
|
8895
|
+
"attribute": "heading"
|
|
8896
|
+
}
|
|
8897
|
+
],
|
|
8898
|
+
"attributes": [
|
|
8899
|
+
{
|
|
8900
|
+
"name": "heading",
|
|
8901
|
+
"type": {
|
|
8902
|
+
"text": "string | undefined"
|
|
8903
|
+
},
|
|
8904
|
+
"description": "Heading and accessible label for the nav group",
|
|
8905
|
+
"fieldName": "heading"
|
|
8906
|
+
}
|
|
8907
|
+
],
|
|
8908
|
+
"superclass": {
|
|
8909
|
+
"name": "LitElement",
|
|
8910
|
+
"package": "lit"
|
|
8911
|
+
},
|
|
8912
|
+
"localization": [],
|
|
8913
|
+
"status": "ready",
|
|
8914
|
+
"category": "navigation",
|
|
8915
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
|
|
8916
|
+
"examples": [],
|
|
8917
|
+
"tagName": "nord-nav-group",
|
|
8918
|
+
"customElement": true
|
|
8919
|
+
}
|
|
8920
|
+
],
|
|
8921
|
+
"exports": [
|
|
8922
|
+
{
|
|
8923
|
+
"kind": "js",
|
|
8924
|
+
"name": "default",
|
|
8925
|
+
"declaration": {
|
|
8926
|
+
"name": "NavGroup",
|
|
8927
|
+
"module": "src/nav-group/NavGroup.ts"
|
|
8928
|
+
}
|
|
8929
|
+
},
|
|
8930
|
+
{
|
|
8931
|
+
"kind": "custom-element-definition",
|
|
8932
|
+
"name": "nord-nav-group",
|
|
8933
|
+
"declaration": {
|
|
8934
|
+
"name": "NavGroup",
|
|
8935
|
+
"module": "src/nav-group/NavGroup.ts"
|
|
8936
|
+
}
|
|
8937
|
+
}
|
|
8938
|
+
]
|
|
8939
|
+
},
|
|
8940
|
+
{
|
|
8941
|
+
"kind": "javascript-module",
|
|
8942
|
+
"path": "src/nav-item/NavItem.ts",
|
|
8943
|
+
"declarations": [
|
|
8944
|
+
{
|
|
8945
|
+
"kind": "class",
|
|
8946
|
+
"description": "Navigation item populates sidebar navigation with links.\nEvery item should be placed inside a navigation group.",
|
|
8947
|
+
"name": "NavItem",
|
|
8948
|
+
"slots": [
|
|
8949
|
+
{
|
|
8950
|
+
"description": "The default slot used for the nav item's text.",
|
|
8951
|
+
"name": ""
|
|
8952
|
+
},
|
|
8953
|
+
{
|
|
8882
8954
|
"description": "Used for nesting navigation. When used the nav-item becomes a button to collapse the subnav, rather than a link.",
|
|
8883
8955
|
"name": "subnav"
|
|
8884
8956
|
}
|
|
@@ -9126,73 +9198,6 @@
|
|
|
9126
9198
|
}
|
|
9127
9199
|
]
|
|
9128
9200
|
},
|
|
9129
|
-
{
|
|
9130
|
-
"kind": "javascript-module",
|
|
9131
|
-
"path": "src/nav-group/NavGroup.ts",
|
|
9132
|
-
"declarations": [
|
|
9133
|
-
{
|
|
9134
|
-
"kind": "class",
|
|
9135
|
-
"description": "Navigation group includes all the actions or items in a single\ngroup and is used for grouping items into related categories.",
|
|
9136
|
-
"name": "NavGroup",
|
|
9137
|
-
"slots": [
|
|
9138
|
-
{
|
|
9139
|
-
"description": "The default slot used for the nav items.",
|
|
9140
|
-
"name": ""
|
|
9141
|
-
}
|
|
9142
|
-
],
|
|
9143
|
-
"members": [
|
|
9144
|
-
{
|
|
9145
|
-
"kind": "field",
|
|
9146
|
-
"name": "heading",
|
|
9147
|
-
"type": {
|
|
9148
|
-
"text": "string | undefined"
|
|
9149
|
-
},
|
|
9150
|
-
"description": "Heading and accessible label for the nav group",
|
|
9151
|
-
"attribute": "heading"
|
|
9152
|
-
}
|
|
9153
|
-
],
|
|
9154
|
-
"attributes": [
|
|
9155
|
-
{
|
|
9156
|
-
"name": "heading",
|
|
9157
|
-
"type": {
|
|
9158
|
-
"text": "string | undefined"
|
|
9159
|
-
},
|
|
9160
|
-
"description": "Heading and accessible label for the nav group",
|
|
9161
|
-
"fieldName": "heading"
|
|
9162
|
-
}
|
|
9163
|
-
],
|
|
9164
|
-
"superclass": {
|
|
9165
|
-
"name": "LitElement",
|
|
9166
|
-
"package": "lit"
|
|
9167
|
-
},
|
|
9168
|
-
"localization": [],
|
|
9169
|
-
"status": "ready",
|
|
9170
|
-
"category": "navigation",
|
|
9171
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
|
|
9172
|
-
"examples": [],
|
|
9173
|
-
"tagName": "nord-nav-group",
|
|
9174
|
-
"customElement": true
|
|
9175
|
-
}
|
|
9176
|
-
],
|
|
9177
|
-
"exports": [
|
|
9178
|
-
{
|
|
9179
|
-
"kind": "js",
|
|
9180
|
-
"name": "default",
|
|
9181
|
-
"declaration": {
|
|
9182
|
-
"name": "NavGroup",
|
|
9183
|
-
"module": "src/nav-group/NavGroup.ts"
|
|
9184
|
-
}
|
|
9185
|
-
},
|
|
9186
|
-
{
|
|
9187
|
-
"kind": "custom-element-definition",
|
|
9188
|
-
"name": "nord-nav-group",
|
|
9189
|
-
"declaration": {
|
|
9190
|
-
"name": "NavGroup",
|
|
9191
|
-
"module": "src/nav-group/NavGroup.ts"
|
|
9192
|
-
}
|
|
9193
|
-
}
|
|
9194
|
-
]
|
|
9195
|
-
},
|
|
9196
9201
|
{
|
|
9197
9202
|
"kind": "javascript-module",
|
|
9198
9203
|
"path": "src/nav-toggle/NavToggle.ts",
|
|
@@ -9350,7 +9355,14 @@
|
|
|
9350
9355
|
"name": "footer"
|
|
9351
9356
|
}
|
|
9352
9357
|
],
|
|
9353
|
-
"members": [
|
|
9358
|
+
"members": [
|
|
9359
|
+
{
|
|
9360
|
+
"kind": "field",
|
|
9361
|
+
"name": "headerSlot",
|
|
9362
|
+
"privacy": "private",
|
|
9363
|
+
"default": "new SlotController(this, \"header\")"
|
|
9364
|
+
}
|
|
9365
|
+
],
|
|
9354
9366
|
"superclass": {
|
|
9355
9367
|
"name": "LitElement",
|
|
9356
9368
|
"package": "lit"
|
|
@@ -9727,155 +9739,141 @@
|
|
|
9727
9739
|
},
|
|
9728
9740
|
{
|
|
9729
9741
|
"kind": "javascript-module",
|
|
9730
|
-
"path": "src/
|
|
9742
|
+
"path": "src/progress-bar/ProgressBar.ts",
|
|
9731
9743
|
"declarations": [
|
|
9732
9744
|
{
|
|
9733
9745
|
"kind": "class",
|
|
9734
|
-
"description": "
|
|
9735
|
-
"name": "
|
|
9736
|
-
"
|
|
9746
|
+
"description": "Progress Bar is used to visually represent the completion\nof a task or process. It shows how much of the task has\nbeen completed and how much is still left.",
|
|
9747
|
+
"name": "ProgressBar",
|
|
9748
|
+
"cssProperties": [
|
|
9737
9749
|
{
|
|
9738
|
-
"
|
|
9739
|
-
"name": "
|
|
9740
|
-
"
|
|
9741
|
-
"text": "HTMLElement"
|
|
9742
|
-
},
|
|
9743
|
-
"privacy": "private"
|
|
9750
|
+
"description": "Controls the thickness of the progress bar, using our [spacing tokens](/tokens/#space).",
|
|
9751
|
+
"name": "--n-progress-size",
|
|
9752
|
+
"default": "var(--n-space-s)"
|
|
9744
9753
|
},
|
|
9745
9754
|
{
|
|
9746
|
-
"
|
|
9747
|
-
"name": "
|
|
9748
|
-
"
|
|
9749
|
-
"text": "HTMLElement"
|
|
9750
|
-
},
|
|
9751
|
-
"privacy": "private"
|
|
9755
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
9756
|
+
"name": "--n-progress-border-radius",
|
|
9757
|
+
"default": "var(--n-border-radius-s)"
|
|
9752
9758
|
},
|
|
9759
|
+
{
|
|
9760
|
+
"description": "Controls the color of the progress bar, using [color tokens](/tokens/#color).",
|
|
9761
|
+
"name": "--n-progress-color",
|
|
9762
|
+
"default": "var(--n-color-accent)"
|
|
9763
|
+
}
|
|
9764
|
+
],
|
|
9765
|
+
"members": [
|
|
9753
9766
|
{
|
|
9754
9767
|
"kind": "field",
|
|
9755
9768
|
"name": "value",
|
|
9756
9769
|
"type": {
|
|
9757
|
-
"text": "
|
|
9770
|
+
"text": "number | undefined"
|
|
9758
9771
|
},
|
|
9759
|
-
"
|
|
9760
|
-
"description": "The value of the QR Code, most commonly an URL.",
|
|
9772
|
+
"description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
|
|
9761
9773
|
"attribute": "value",
|
|
9762
9774
|
"reflects": true
|
|
9763
9775
|
},
|
|
9764
9776
|
{
|
|
9765
9777
|
"kind": "field",
|
|
9766
|
-
"name": "
|
|
9767
|
-
"type": {
|
|
9768
|
-
"text": "string"
|
|
9769
|
-
},
|
|
9770
|
-
"default": "\"\"",
|
|
9771
|
-
"description": "Label used by assistive technology. If unspecified, the value will\nbe used instead.",
|
|
9772
|
-
"attribute": "label",
|
|
9773
|
-
"reflects": true
|
|
9774
|
-
},
|
|
9775
|
-
{
|
|
9776
|
-
"kind": "field",
|
|
9777
|
-
"name": "size",
|
|
9778
|
+
"name": "max",
|
|
9778
9779
|
"type": {
|
|
9779
9780
|
"text": "number"
|
|
9780
9781
|
},
|
|
9781
|
-
"default": "
|
|
9782
|
-
"description": "
|
|
9783
|
-
"attribute": "
|
|
9782
|
+
"default": "100",
|
|
9783
|
+
"description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
|
|
9784
|
+
"attribute": "max",
|
|
9784
9785
|
"reflects": true
|
|
9785
9786
|
},
|
|
9786
9787
|
{
|
|
9787
9788
|
"kind": "field",
|
|
9788
|
-
"name": "
|
|
9789
|
+
"name": "label",
|
|
9789
9790
|
"type": {
|
|
9790
9791
|
"text": "string"
|
|
9791
9792
|
},
|
|
9792
|
-
"default": "\"
|
|
9793
|
-
"description": "
|
|
9794
|
-
"attribute": "
|
|
9793
|
+
"default": "\"Current progress\"",
|
|
9794
|
+
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
9795
|
+
"attribute": "label",
|
|
9795
9796
|
"reflects": true
|
|
9796
9797
|
},
|
|
9797
9798
|
{
|
|
9798
9799
|
"kind": "field",
|
|
9799
|
-
"name": "
|
|
9800
|
-
"
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
"attribute": "background",
|
|
9806
|
-
"reflects": true
|
|
9800
|
+
"name": "focusableRef",
|
|
9801
|
+
"privacy": "protected",
|
|
9802
|
+
"inheritedFrom": {
|
|
9803
|
+
"name": "FocusableMixin",
|
|
9804
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9805
|
+
}
|
|
9807
9806
|
},
|
|
9808
9807
|
{
|
|
9809
|
-
"kind": "
|
|
9810
|
-
"name": "
|
|
9811
|
-
"
|
|
9812
|
-
|
|
9813
|
-
|
|
9814
|
-
|
|
9815
|
-
|
|
9816
|
-
|
|
9817
|
-
|
|
9808
|
+
"kind": "method",
|
|
9809
|
+
"name": "focus",
|
|
9810
|
+
"parameters": [
|
|
9811
|
+
{
|
|
9812
|
+
"name": "options",
|
|
9813
|
+
"optional": true,
|
|
9814
|
+
"type": {
|
|
9815
|
+
"text": "FocusOptions"
|
|
9816
|
+
},
|
|
9817
|
+
"description": "An object which controls aspects of the focusing process."
|
|
9818
|
+
}
|
|
9819
|
+
],
|
|
9820
|
+
"description": "Programmatically move focus to the component.",
|
|
9821
|
+
"inheritedFrom": {
|
|
9822
|
+
"name": "FocusableMixin",
|
|
9823
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9824
|
+
}
|
|
9818
9825
|
},
|
|
9819
9826
|
{
|
|
9820
9827
|
"kind": "method",
|
|
9821
|
-
"name": "
|
|
9822
|
-
"
|
|
9828
|
+
"name": "blur",
|
|
9829
|
+
"description": "Programmatically remove focus from the component.",
|
|
9830
|
+
"inheritedFrom": {
|
|
9831
|
+
"name": "FocusableMixin",
|
|
9832
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9833
|
+
}
|
|
9834
|
+
},
|
|
9835
|
+
{
|
|
9836
|
+
"kind": "method",
|
|
9837
|
+
"name": "click",
|
|
9838
|
+
"description": "Programmatically simulates a click on the component.",
|
|
9839
|
+
"inheritedFrom": {
|
|
9840
|
+
"name": "FocusableMixin",
|
|
9841
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9842
|
+
}
|
|
9823
9843
|
}
|
|
9824
9844
|
],
|
|
9825
9845
|
"attributes": [
|
|
9826
9846
|
{
|
|
9827
9847
|
"name": "value",
|
|
9828
9848
|
"type": {
|
|
9829
|
-
"text": "
|
|
9849
|
+
"text": "number | undefined"
|
|
9830
9850
|
},
|
|
9831
|
-
"
|
|
9832
|
-
"description": "The value of the QR Code, most commonly an URL.",
|
|
9851
|
+
"description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
|
|
9833
9852
|
"fieldName": "value"
|
|
9834
9853
|
},
|
|
9835
9854
|
{
|
|
9836
|
-
"name": "
|
|
9837
|
-
"type": {
|
|
9838
|
-
"text": "string"
|
|
9839
|
-
},
|
|
9840
|
-
"default": "\"\"",
|
|
9841
|
-
"description": "Label used by assistive technology. If unspecified, the value will\nbe used instead.",
|
|
9842
|
-
"fieldName": "label"
|
|
9843
|
-
},
|
|
9844
|
-
{
|
|
9845
|
-
"name": "size",
|
|
9855
|
+
"name": "max",
|
|
9846
9856
|
"type": {
|
|
9847
9857
|
"text": "number"
|
|
9848
9858
|
},
|
|
9849
|
-
"default": "
|
|
9850
|
-
"description": "
|
|
9851
|
-
"fieldName": "
|
|
9852
|
-
},
|
|
9853
|
-
{
|
|
9854
|
-
"name": "color",
|
|
9855
|
-
"type": {
|
|
9856
|
-
"text": "string"
|
|
9857
|
-
},
|
|
9858
|
-
"default": "\"var(--n-color-text)\"",
|
|
9859
|
-
"description": "The fill color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
9860
|
-
"fieldName": "color"
|
|
9859
|
+
"default": "100",
|
|
9860
|
+
"description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
|
|
9861
|
+
"fieldName": "max"
|
|
9861
9862
|
},
|
|
9862
9863
|
{
|
|
9863
|
-
"name": "
|
|
9864
|
+
"name": "label",
|
|
9864
9865
|
"type": {
|
|
9865
9866
|
"text": "string"
|
|
9866
9867
|
},
|
|
9867
|
-
"default": "\"
|
|
9868
|
-
"description": "
|
|
9869
|
-
"fieldName": "
|
|
9870
|
-
}
|
|
9868
|
+
"default": "\"Current progress\"",
|
|
9869
|
+
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
9870
|
+
"fieldName": "label"
|
|
9871
|
+
}
|
|
9872
|
+
],
|
|
9873
|
+
"mixins": [
|
|
9871
9874
|
{
|
|
9872
|
-
"name": "
|
|
9873
|
-
"
|
|
9874
|
-
"text": "\"L\" | \"M\" | \"Q\" | \"H\""
|
|
9875
|
-
},
|
|
9876
|
-
"default": "\"H\"",
|
|
9877
|
-
"description": "Error correction level makes the QR Code bigger and helps users to\nscan it without issues. L, M, Q and H values will use 7%, 15%, 25%\nand 30% of the QR code for error correction respectively.",
|
|
9878
|
-
"fieldName": "correction"
|
|
9875
|
+
"name": "FocusableMixin",
|
|
9876
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
9879
9877
|
}
|
|
9880
9878
|
],
|
|
9881
9879
|
"superclass": {
|
|
@@ -9884,11 +9882,10 @@
|
|
|
9884
9882
|
},
|
|
9885
9883
|
"localization": [],
|
|
9886
9884
|
"status": "ready",
|
|
9887
|
-
"category": "
|
|
9888
|
-
"
|
|
9889
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to allow people to access information on their smartphone without the need to type.\n- Always provide an alternative way to access the same information.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t hide important information behind a QR Code only.\n\n</div>\n",
|
|
9885
|
+
"category": "feedback",
|
|
9886
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to show the completion status of an ongoing task.\n- Use progress bar when you can determine the percentage of the completed task at any time.\n- Always provide an accessible label when using Progress Bar.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use in constrained spaces indicating indeterminate loading state, see [Spinner](/components/spinner/) instead.\n\n</div>\n",
|
|
9890
9887
|
"examples": [],
|
|
9891
|
-
"tagName": "nord-
|
|
9888
|
+
"tagName": "nord-progress-bar",
|
|
9892
9889
|
"customElement": true
|
|
9893
9890
|
}
|
|
9894
9891
|
],
|
|
@@ -9897,157 +9894,171 @@
|
|
|
9897
9894
|
"kind": "js",
|
|
9898
9895
|
"name": "default",
|
|
9899
9896
|
"declaration": {
|
|
9900
|
-
"name": "
|
|
9901
|
-
"module": "src/
|
|
9897
|
+
"name": "ProgressBar",
|
|
9898
|
+
"module": "src/progress-bar/ProgressBar.ts"
|
|
9902
9899
|
}
|
|
9903
9900
|
},
|
|
9904
9901
|
{
|
|
9905
9902
|
"kind": "custom-element-definition",
|
|
9906
|
-
"name": "nord-
|
|
9903
|
+
"name": "nord-progress-bar",
|
|
9907
9904
|
"declaration": {
|
|
9908
|
-
"name": "
|
|
9909
|
-
"module": "src/
|
|
9905
|
+
"name": "ProgressBar",
|
|
9906
|
+
"module": "src/progress-bar/ProgressBar.ts"
|
|
9910
9907
|
}
|
|
9911
9908
|
}
|
|
9912
9909
|
]
|
|
9913
9910
|
},
|
|
9914
9911
|
{
|
|
9915
9912
|
"kind": "javascript-module",
|
|
9916
|
-
"path": "src/
|
|
9913
|
+
"path": "src/qrcode/Qrcode.ts",
|
|
9917
9914
|
"declarations": [
|
|
9918
9915
|
{
|
|
9919
9916
|
"kind": "class",
|
|
9920
|
-
"description": "
|
|
9921
|
-
"name": "
|
|
9922
|
-
"
|
|
9917
|
+
"description": "QR Code component is used for providing information or links\nto users which they can quickly scan with their smartphone.",
|
|
9918
|
+
"name": "Qrcode",
|
|
9919
|
+
"members": [
|
|
9923
9920
|
{
|
|
9924
|
-
"
|
|
9925
|
-
"name": "
|
|
9926
|
-
"
|
|
9921
|
+
"kind": "field",
|
|
9922
|
+
"name": "canvas",
|
|
9923
|
+
"type": {
|
|
9924
|
+
"text": "HTMLElement"
|
|
9925
|
+
},
|
|
9926
|
+
"privacy": "private"
|
|
9927
9927
|
},
|
|
9928
9928
|
{
|
|
9929
|
-
"
|
|
9930
|
-
"name": "
|
|
9931
|
-
"
|
|
9929
|
+
"kind": "field",
|
|
9930
|
+
"name": "computed",
|
|
9931
|
+
"type": {
|
|
9932
|
+
"text": "HTMLElement"
|
|
9933
|
+
},
|
|
9934
|
+
"privacy": "private"
|
|
9932
9935
|
},
|
|
9933
|
-
{
|
|
9934
|
-
"description": "Controls the color of the progress bar, using [color tokens](/tokens/#color).",
|
|
9935
|
-
"name": "--n-progress-color",
|
|
9936
|
-
"default": "var(--n-color-accent)"
|
|
9937
|
-
}
|
|
9938
|
-
],
|
|
9939
|
-
"members": [
|
|
9940
9936
|
{
|
|
9941
9937
|
"kind": "field",
|
|
9942
9938
|
"name": "value",
|
|
9943
9939
|
"type": {
|
|
9944
|
-
"text": "
|
|
9940
|
+
"text": "string"
|
|
9945
9941
|
},
|
|
9946
|
-
"
|
|
9942
|
+
"default": "\"\"",
|
|
9943
|
+
"description": "The value of the QR Code, most commonly an URL.",
|
|
9947
9944
|
"attribute": "value",
|
|
9948
9945
|
"reflects": true
|
|
9949
9946
|
},
|
|
9950
9947
|
{
|
|
9951
9948
|
"kind": "field",
|
|
9952
|
-
"name": "
|
|
9949
|
+
"name": "label",
|
|
9953
9950
|
"type": {
|
|
9954
|
-
"text": "
|
|
9951
|
+
"text": "string"
|
|
9955
9952
|
},
|
|
9956
|
-
"default": "
|
|
9957
|
-
"description": "
|
|
9958
|
-
"attribute": "
|
|
9953
|
+
"default": "\"\"",
|
|
9954
|
+
"description": "Label used by assistive technology. If unspecified, the value will\nbe used instead.",
|
|
9955
|
+
"attribute": "label",
|
|
9959
9956
|
"reflects": true
|
|
9960
9957
|
},
|
|
9961
9958
|
{
|
|
9962
9959
|
"kind": "field",
|
|
9963
|
-
"name": "
|
|
9960
|
+
"name": "size",
|
|
9964
9961
|
"type": {
|
|
9965
|
-
"text": "
|
|
9962
|
+
"text": "number"
|
|
9966
9963
|
},
|
|
9967
|
-
"default": "
|
|
9968
|
-
"description": "
|
|
9969
|
-
"attribute": "
|
|
9964
|
+
"default": "128",
|
|
9965
|
+
"description": "The size of the rendered QR Code in pixels.",
|
|
9966
|
+
"attribute": "size",
|
|
9970
9967
|
"reflects": true
|
|
9971
9968
|
},
|
|
9972
9969
|
{
|
|
9973
9970
|
"kind": "field",
|
|
9974
|
-
"name": "
|
|
9975
|
-
"
|
|
9976
|
-
|
|
9977
|
-
|
|
9978
|
-
|
|
9979
|
-
|
|
9971
|
+
"name": "color",
|
|
9972
|
+
"type": {
|
|
9973
|
+
"text": "string"
|
|
9974
|
+
},
|
|
9975
|
+
"default": "\"var(--n-color-text)\"",
|
|
9976
|
+
"description": "The fill color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
9977
|
+
"attribute": "color",
|
|
9978
|
+
"reflects": true
|
|
9980
9979
|
},
|
|
9981
9980
|
{
|
|
9982
|
-
"kind": "
|
|
9983
|
-
"name": "
|
|
9984
|
-
"
|
|
9985
|
-
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
9989
|
-
|
|
9990
|
-
|
|
9991
|
-
"description": "An object which controls aspects of the focusing process."
|
|
9992
|
-
}
|
|
9993
|
-
],
|
|
9994
|
-
"description": "Programmatically move focus to the component.",
|
|
9995
|
-
"inheritedFrom": {
|
|
9996
|
-
"name": "FocusableMixin",
|
|
9997
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9998
|
-
}
|
|
9981
|
+
"kind": "field",
|
|
9982
|
+
"name": "background",
|
|
9983
|
+
"type": {
|
|
9984
|
+
"text": "string"
|
|
9985
|
+
},
|
|
9986
|
+
"default": "\"var(--n-color-surface)\"",
|
|
9987
|
+
"description": "The background color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
9988
|
+
"attribute": "background",
|
|
9989
|
+
"reflects": true
|
|
9999
9990
|
},
|
|
10000
9991
|
{
|
|
10001
|
-
"kind": "
|
|
10002
|
-
"name": "
|
|
10003
|
-
"
|
|
10004
|
-
|
|
10005
|
-
|
|
10006
|
-
|
|
10007
|
-
|
|
9992
|
+
"kind": "field",
|
|
9993
|
+
"name": "correction",
|
|
9994
|
+
"type": {
|
|
9995
|
+
"text": "\"L\" | \"M\" | \"Q\" | \"H\""
|
|
9996
|
+
},
|
|
9997
|
+
"default": "\"H\"",
|
|
9998
|
+
"description": "Error correction level makes the QR Code bigger and helps users to\nscan it without issues. L, M, Q and H values will use 7%, 15%, 25%\nand 30% of the QR code for error correction respectively.",
|
|
9999
|
+
"attribute": "correction",
|
|
10000
|
+
"reflects": true
|
|
10008
10001
|
},
|
|
10009
10002
|
{
|
|
10010
10003
|
"kind": "method",
|
|
10011
|
-
"name": "
|
|
10012
|
-
"
|
|
10013
|
-
"inheritedFrom": {
|
|
10014
|
-
"name": "FocusableMixin",
|
|
10015
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10016
|
-
}
|
|
10004
|
+
"name": "generate",
|
|
10005
|
+
"privacy": "private"
|
|
10017
10006
|
}
|
|
10018
10007
|
],
|
|
10019
10008
|
"attributes": [
|
|
10020
10009
|
{
|
|
10021
|
-
"name": "value",
|
|
10010
|
+
"name": "value",
|
|
10011
|
+
"type": {
|
|
10012
|
+
"text": "string"
|
|
10013
|
+
},
|
|
10014
|
+
"default": "\"\"",
|
|
10015
|
+
"description": "The value of the QR Code, most commonly an URL.",
|
|
10016
|
+
"fieldName": "value"
|
|
10017
|
+
},
|
|
10018
|
+
{
|
|
10019
|
+
"name": "label",
|
|
10022
10020
|
"type": {
|
|
10023
|
-
"text": "
|
|
10021
|
+
"text": "string"
|
|
10024
10022
|
},
|
|
10025
|
-
"
|
|
10026
|
-
"
|
|
10023
|
+
"default": "\"\"",
|
|
10024
|
+
"description": "Label used by assistive technology. If unspecified, the value will\nbe used instead.",
|
|
10025
|
+
"fieldName": "label"
|
|
10027
10026
|
},
|
|
10028
10027
|
{
|
|
10029
|
-
"name": "
|
|
10028
|
+
"name": "size",
|
|
10030
10029
|
"type": {
|
|
10031
10030
|
"text": "number"
|
|
10032
10031
|
},
|
|
10033
|
-
"default": "
|
|
10034
|
-
"description": "
|
|
10035
|
-
"fieldName": "
|
|
10032
|
+
"default": "128",
|
|
10033
|
+
"description": "The size of the rendered QR Code in pixels.",
|
|
10034
|
+
"fieldName": "size"
|
|
10036
10035
|
},
|
|
10037
10036
|
{
|
|
10038
|
-
"name": "
|
|
10037
|
+
"name": "color",
|
|
10039
10038
|
"type": {
|
|
10040
10039
|
"text": "string"
|
|
10041
10040
|
},
|
|
10042
|
-
"default": "\"
|
|
10043
|
-
"description": "
|
|
10044
|
-
"fieldName": "
|
|
10045
|
-
}
|
|
10046
|
-
],
|
|
10047
|
-
"mixins": [
|
|
10041
|
+
"default": "\"var(--n-color-text)\"",
|
|
10042
|
+
"description": "The fill color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
10043
|
+
"fieldName": "color"
|
|
10044
|
+
},
|
|
10048
10045
|
{
|
|
10049
|
-
"name": "
|
|
10050
|
-
"
|
|
10046
|
+
"name": "background",
|
|
10047
|
+
"type": {
|
|
10048
|
+
"text": "string"
|
|
10049
|
+
},
|
|
10050
|
+
"default": "\"var(--n-color-surface)\"",
|
|
10051
|
+
"description": "The background color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
10052
|
+
"fieldName": "background"
|
|
10053
|
+
},
|
|
10054
|
+
{
|
|
10055
|
+
"name": "correction",
|
|
10056
|
+
"type": {
|
|
10057
|
+
"text": "\"L\" | \"M\" | \"Q\" | \"H\""
|
|
10058
|
+
},
|
|
10059
|
+
"default": "\"H\"",
|
|
10060
|
+
"description": "Error correction level makes the QR Code bigger and helps users to\nscan it without issues. L, M, Q and H values will use 7%, 15%, 25%\nand 30% of the QR code for error correction respectively.",
|
|
10061
|
+
"fieldName": "correction"
|
|
10051
10062
|
}
|
|
10052
10063
|
],
|
|
10053
10064
|
"superclass": {
|
|
@@ -10056,10 +10067,11 @@
|
|
|
10056
10067
|
},
|
|
10057
10068
|
"localization": [],
|
|
10058
10069
|
"status": "ready",
|
|
10059
|
-
"category": "
|
|
10060
|
-
"
|
|
10070
|
+
"category": "image",
|
|
10071
|
+
"displayName": "QR Code",
|
|
10072
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to allow people to access information on their smartphone without the need to type.\n- Always provide an alternative way to access the same information.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t hide important information behind a QR Code only.\n\n</div>\n",
|
|
10061
10073
|
"examples": [],
|
|
10062
|
-
"tagName": "nord-
|
|
10074
|
+
"tagName": "nord-qrcode",
|
|
10063
10075
|
"customElement": true
|
|
10064
10076
|
}
|
|
10065
10077
|
],
|
|
@@ -10068,16 +10080,16 @@
|
|
|
10068
10080
|
"kind": "js",
|
|
10069
10081
|
"name": "default",
|
|
10070
10082
|
"declaration": {
|
|
10071
|
-
"name": "
|
|
10072
|
-
"module": "src/
|
|
10083
|
+
"name": "Qrcode",
|
|
10084
|
+
"module": "src/qrcode/Qrcode.ts"
|
|
10073
10085
|
}
|
|
10074
10086
|
},
|
|
10075
10087
|
{
|
|
10076
10088
|
"kind": "custom-element-definition",
|
|
10077
|
-
"name": "nord-
|
|
10089
|
+
"name": "nord-qrcode",
|
|
10078
10090
|
"declaration": {
|
|
10079
|
-
"name": "
|
|
10080
|
-
"module": "src/
|
|
10091
|
+
"name": "Qrcode",
|
|
10092
|
+
"module": "src/qrcode/Qrcode.ts"
|
|
10081
10093
|
}
|
|
10082
10094
|
}
|
|
10083
10095
|
]
|
|
@@ -12600,100 +12612,6 @@
|
|
|
12600
12612
|
}
|
|
12601
12613
|
]
|
|
12602
12614
|
},
|
|
12603
|
-
{
|
|
12604
|
-
"kind": "javascript-module",
|
|
12605
|
-
"path": "src/tab/Tab.ts",
|
|
12606
|
-
"declarations": [
|
|
12607
|
-
{
|
|
12608
|
-
"kind": "class",
|
|
12609
|
-
"description": "The interactive tab button for use within the tab group component.",
|
|
12610
|
-
"name": "Tab",
|
|
12611
|
-
"cssProperties": [
|
|
12612
|
-
{
|
|
12613
|
-
"description": "Controls the text color of the tab, using our [color tokens](/tokens/#color).",
|
|
12614
|
-
"name": "--n-tab-color",
|
|
12615
|
-
"default": "var(--n-color-text-weak)"
|
|
12616
|
-
},
|
|
12617
|
-
{
|
|
12618
|
-
"description": "Controls the font weight of the tab, using our [font tokens](/tokens/#font).",
|
|
12619
|
-
"name": "--n-tab-font-weight",
|
|
12620
|
-
"default": "var(--n-font-weight)"
|
|
12621
|
-
}
|
|
12622
|
-
],
|
|
12623
|
-
"slots": [
|
|
12624
|
-
{
|
|
12625
|
-
"description": "The tab button content.",
|
|
12626
|
-
"name": ""
|
|
12627
|
-
}
|
|
12628
|
-
],
|
|
12629
|
-
"members": [
|
|
12630
|
-
{
|
|
12631
|
-
"kind": "field",
|
|
12632
|
-
"name": "defaultSlot",
|
|
12633
|
-
"privacy": "private",
|
|
12634
|
-
"default": "new SlotController(this)"
|
|
12635
|
-
},
|
|
12636
|
-
{
|
|
12637
|
-
"kind": "field",
|
|
12638
|
-
"name": "selected",
|
|
12639
|
-
"type": {
|
|
12640
|
-
"text": "boolean"
|
|
12641
|
-
},
|
|
12642
|
-
"default": "false",
|
|
12643
|
-
"description": "Whether the tab item is selected",
|
|
12644
|
-
"attribute": "selected",
|
|
12645
|
-
"reflects": true
|
|
12646
|
-
},
|
|
12647
|
-
{
|
|
12648
|
-
"kind": "method",
|
|
12649
|
-
"name": "handleSelectionChange",
|
|
12650
|
-
"privacy": "protected",
|
|
12651
|
-
"description": "Apply accessible attributes and values to the tab button.\nObserve the selected property if it changes"
|
|
12652
|
-
}
|
|
12653
|
-
],
|
|
12654
|
-
"attributes": [
|
|
12655
|
-
{
|
|
12656
|
-
"name": "selected",
|
|
12657
|
-
"type": {
|
|
12658
|
-
"text": "boolean"
|
|
12659
|
-
},
|
|
12660
|
-
"default": "false",
|
|
12661
|
-
"description": "Whether the tab item is selected",
|
|
12662
|
-
"fieldName": "selected"
|
|
12663
|
-
}
|
|
12664
|
-
],
|
|
12665
|
-
"superclass": {
|
|
12666
|
-
"name": "LitElement",
|
|
12667
|
-
"package": "lit"
|
|
12668
|
-
},
|
|
12669
|
-
"localization": [],
|
|
12670
|
-
"status": "ready",
|
|
12671
|
-
"category": "navigation",
|
|
12672
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the tab component within the tab group component.\n- Use the `selected` option to signify if the tab is selected.\n- Use text, icons and other non-interactive content within the tab.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use tabs to navigate to other pages. Use navigation or links instead.\n- Don't use the tab component outside of the tab group component.\n- Don't add interactive elements, such as buttons and links, inside the tab component.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing tab labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in tab labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">The dashboard</div>\n\nAvoid ending tab labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients.</div>\n\nUse as few words as possible to describe each tab label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for tab labels:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n\n---\n\n## Additional considerations\n\n- If the content contained within the tabs UI has significance or is important for the user to see, consider using a different form of presentation that doesn't obscure it.\n- If there is a particular section you wish to show out of order of the tabs UI itself consider using the `selected` option to select the tab but prevent the order of the tabs being affected.\n",
|
|
12673
|
-
"examples": [],
|
|
12674
|
-
"tagName": "nord-tab",
|
|
12675
|
-
"customElement": true
|
|
12676
|
-
}
|
|
12677
|
-
],
|
|
12678
|
-
"exports": [
|
|
12679
|
-
{
|
|
12680
|
-
"kind": "js",
|
|
12681
|
-
"name": "default",
|
|
12682
|
-
"declaration": {
|
|
12683
|
-
"name": "Tab",
|
|
12684
|
-
"module": "src/tab/Tab.ts"
|
|
12685
|
-
}
|
|
12686
|
-
},
|
|
12687
|
-
{
|
|
12688
|
-
"kind": "custom-element-definition",
|
|
12689
|
-
"name": "nord-tab",
|
|
12690
|
-
"declaration": {
|
|
12691
|
-
"name": "Tab",
|
|
12692
|
-
"module": "src/tab/Tab.ts"
|
|
12693
|
-
}
|
|
12694
|
-
}
|
|
12695
|
-
]
|
|
12696
|
-
},
|
|
12697
12615
|
{
|
|
12698
12616
|
"kind": "javascript-module",
|
|
12699
12617
|
"path": "src/tab-group/TabGroup.ts",
|
|
@@ -12936,6 +12854,100 @@
|
|
|
12936
12854
|
}
|
|
12937
12855
|
]
|
|
12938
12856
|
},
|
|
12857
|
+
{
|
|
12858
|
+
"kind": "javascript-module",
|
|
12859
|
+
"path": "src/tab/Tab.ts",
|
|
12860
|
+
"declarations": [
|
|
12861
|
+
{
|
|
12862
|
+
"kind": "class",
|
|
12863
|
+
"description": "The interactive tab button for use within the tab group component.",
|
|
12864
|
+
"name": "Tab",
|
|
12865
|
+
"cssProperties": [
|
|
12866
|
+
{
|
|
12867
|
+
"description": "Controls the text color of the tab, using our [color tokens](/tokens/#color).",
|
|
12868
|
+
"name": "--n-tab-color",
|
|
12869
|
+
"default": "var(--n-color-text-weak)"
|
|
12870
|
+
},
|
|
12871
|
+
{
|
|
12872
|
+
"description": "Controls the font weight of the tab, using our [font tokens](/tokens/#font).",
|
|
12873
|
+
"name": "--n-tab-font-weight",
|
|
12874
|
+
"default": "var(--n-font-weight)"
|
|
12875
|
+
}
|
|
12876
|
+
],
|
|
12877
|
+
"slots": [
|
|
12878
|
+
{
|
|
12879
|
+
"description": "The tab button content.",
|
|
12880
|
+
"name": ""
|
|
12881
|
+
}
|
|
12882
|
+
],
|
|
12883
|
+
"members": [
|
|
12884
|
+
{
|
|
12885
|
+
"kind": "field",
|
|
12886
|
+
"name": "defaultSlot",
|
|
12887
|
+
"privacy": "private",
|
|
12888
|
+
"default": "new SlotController(this)"
|
|
12889
|
+
},
|
|
12890
|
+
{
|
|
12891
|
+
"kind": "field",
|
|
12892
|
+
"name": "selected",
|
|
12893
|
+
"type": {
|
|
12894
|
+
"text": "boolean"
|
|
12895
|
+
},
|
|
12896
|
+
"default": "false",
|
|
12897
|
+
"description": "Whether the tab item is selected",
|
|
12898
|
+
"attribute": "selected",
|
|
12899
|
+
"reflects": true
|
|
12900
|
+
},
|
|
12901
|
+
{
|
|
12902
|
+
"kind": "method",
|
|
12903
|
+
"name": "handleSelectionChange",
|
|
12904
|
+
"privacy": "protected",
|
|
12905
|
+
"description": "Apply accessible attributes and values to the tab button.\nObserve the selected property if it changes"
|
|
12906
|
+
}
|
|
12907
|
+
],
|
|
12908
|
+
"attributes": [
|
|
12909
|
+
{
|
|
12910
|
+
"name": "selected",
|
|
12911
|
+
"type": {
|
|
12912
|
+
"text": "boolean"
|
|
12913
|
+
},
|
|
12914
|
+
"default": "false",
|
|
12915
|
+
"description": "Whether the tab item is selected",
|
|
12916
|
+
"fieldName": "selected"
|
|
12917
|
+
}
|
|
12918
|
+
],
|
|
12919
|
+
"superclass": {
|
|
12920
|
+
"name": "LitElement",
|
|
12921
|
+
"package": "lit"
|
|
12922
|
+
},
|
|
12923
|
+
"localization": [],
|
|
12924
|
+
"status": "ready",
|
|
12925
|
+
"category": "navigation",
|
|
12926
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the tab component within the tab group component.\n- Use the `selected` option to signify if the tab is selected.\n- Use text, icons and other non-interactive content within the tab.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use tabs to navigate to other pages. Use navigation or links instead.\n- Don't use the tab component outside of the tab group component.\n- Don't add interactive elements, such as buttons and links, inside the tab component.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing tab labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in tab labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">The dashboard</div>\n\nAvoid ending tab labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients.</div>\n\nUse as few words as possible to describe each tab label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for tab labels:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n\n---\n\n## Additional considerations\n\n- If the content contained within the tabs UI has significance or is important for the user to see, consider using a different form of presentation that doesn't obscure it.\n- If there is a particular section you wish to show out of order of the tabs UI itself consider using the `selected` option to select the tab but prevent the order of the tabs being affected.\n",
|
|
12927
|
+
"examples": [],
|
|
12928
|
+
"tagName": "nord-tab",
|
|
12929
|
+
"customElement": true
|
|
12930
|
+
}
|
|
12931
|
+
],
|
|
12932
|
+
"exports": [
|
|
12933
|
+
{
|
|
12934
|
+
"kind": "js",
|
|
12935
|
+
"name": "default",
|
|
12936
|
+
"declaration": {
|
|
12937
|
+
"name": "Tab",
|
|
12938
|
+
"module": "src/tab/Tab.ts"
|
|
12939
|
+
}
|
|
12940
|
+
},
|
|
12941
|
+
{
|
|
12942
|
+
"kind": "custom-element-definition",
|
|
12943
|
+
"name": "nord-tab",
|
|
12944
|
+
"declaration": {
|
|
12945
|
+
"name": "Tab",
|
|
12946
|
+
"module": "src/tab/Tab.ts"
|
|
12947
|
+
}
|
|
12948
|
+
}
|
|
12949
|
+
]
|
|
12950
|
+
},
|
|
12939
12951
|
{
|
|
12940
12952
|
"kind": "javascript-module",
|
|
12941
12953
|
"path": "src/tab-panel/TabPanel.ts",
|