@nordhealth/components 2.17.0 → 2.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +585 -585
- package/lib/{AutocompleteMixin-5163f8db.js → AutocompleteMixin-3cf61f49.js} +2 -2
- package/lib/{AutocompleteMixin-5163f8db.js.map → AutocompleteMixin-3cf61f49.js.map} +1 -1
- package/lib/Avatar.js +1 -1
- package/lib/Badge.js +1 -1
- package/lib/Banner.js +1 -1
- package/lib/Banner.js.map +1 -1
- package/lib/Button.js +1 -1
- package/lib/Button.js.map +1 -1
- package/lib/ButtonGroup.js +1 -1
- package/lib/{Calendar-8ee21eab.js → Calendar-70103fd4.js} +2 -2
- package/lib/{Calendar-8ee21eab.js.map → Calendar-70103fd4.js.map} +1 -1
- package/lib/Calendar.js +1 -1
- package/lib/Card.js +1 -1
- package/lib/Checkbox.js +1 -1
- package/lib/CommandMenu.js +1 -1
- package/lib/CommandMenu.js.map +1 -1
- package/lib/CommandMenuAction.js +1 -1
- package/lib/CommandMenuAction.js.map +1 -1
- package/lib/{Component-449e40fb.js → Component-420bbc41.js} +2 -2
- package/lib/Component-420bbc41.js.map +1 -0
- package/lib/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/Divider.js +1 -1
- package/lib/Drawer.js +1 -1
- package/lib/Dropdown.js +1 -1
- package/lib/Dropdown.js.map +1 -1
- package/lib/DropdownGroup.js +1 -1
- package/lib/DropdownItem.js +1 -1
- package/lib/EmptyState.js +1 -1
- package/lib/Fieldset.js +1 -1
- package/lib/FocusableMixin-4300e44e.js +2 -0
- package/lib/{FocusableMixin-32631bff.js.map → FocusableMixin-4300e44e.js.map} +1 -1
- package/lib/{FormAssociatedMixin-9e798802.js → FormAssociatedMixin-edf83ac6.js} +2 -2
- package/lib/{FormAssociatedMixin-9e798802.js.map → FormAssociatedMixin-edf83ac6.js.map} +1 -1
- package/lib/{FormField-3f772bad.js → FormField-cbfebb3f.js} +2 -2
- package/lib/FormField-cbfebb3f.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Icon.js +2 -2
- package/lib/Icon.js.map +1 -1
- package/lib/IconManager.js +1 -1
- package/lib/Input.js +1 -1
- package/lib/{InputMixin-7fa755e1.js → InputMixin-4037827f.js} +2 -2
- package/lib/{InputMixin-7fa755e1.js.map → InputMixin-4037827f.js.map} +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/{LightDomController-052f446a.js → LightDomController-f78fb046.js} +2 -2
- package/lib/{LightDomController-052f446a.js.map → LightDomController-f78fb046.js.map} +1 -1
- package/lib/Modal.js +1 -1
- package/lib/NavGroup.js +1 -1
- package/lib/NavItem.js +1 -1
- package/lib/NavToggle.js +1 -1
- package/lib/NavToggle.js.map +1 -1
- package/lib/Navigation.js +1 -1
- package/lib/Notification.js +1 -1
- package/lib/NotificationGroup.js +1 -1
- package/lib/{NotificationMixin-86b09bcd.js → NotificationMixin-c06bb631.js} +2 -2
- package/lib/{NotificationMixin-86b09bcd.js.map → NotificationMixin-c06bb631.js.map} +1 -1
- package/lib/{Popout-bb7ff989.js → Popout-9f0393b2.js} +2 -2
- package/lib/{Popout-bb7ff989.js.map → Popout-9f0393b2.js.map} +1 -1
- package/lib/Popout.js +1 -1
- package/lib/ProgressBar.js +1 -1
- package/lib/Qrcode.js +1 -1
- package/lib/Qrcode.js.map +1 -1
- package/lib/Radio.js +1 -1
- package/lib/Range.js +1 -1
- package/lib/Select.js +1 -1
- package/lib/{SizeMixin-4d04817d.js → SizeMixin-fb379434.js} +2 -2
- package/lib/{SizeMixin-4d04817d.js.map → SizeMixin-fb379434.js.map} +1 -1
- package/lib/Skeleton.js +1 -1
- package/lib/Spinner.js +1 -1
- package/lib/Stack.js +1 -1
- package/lib/{Sticky-c4cf185e.js → Sticky-69666e8c.js} +2 -2
- package/lib/Sticky-69666e8c.js.map +1 -0
- package/lib/Tab.js +1 -1
- package/lib/TabGroup.js +1 -1
- package/lib/TabPanel.js +1 -1
- package/lib/Table.js +1 -1
- package/lib/{TextField-55a08df5.js → TextField-d617d0ad.js} +2 -2
- package/lib/{TextField-55a08df5.js.map → TextField-d617d0ad.js.map} +1 -1
- package/lib/Textarea.js +1 -1
- package/lib/Toast.js +1 -1
- package/lib/ToastGroup.js +1 -1
- package/lib/Toggle.js +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/VisuallyHidden.js +1 -1
- package/lib/bundle.js +17 -18
- package/lib/bundle.js.map +1 -1
- package/lib/class-map-cb77ead2.js +7 -0
- package/lib/{class-map-21152cee.js.map → class-map-cb77ead2.js.map} +1 -1
- package/lib/collection-2f8e38bd.js +7 -0
- package/lib/{collection-7eee4e72.js.map → collection-2f8e38bd.js.map} +1 -1
- package/lib/cond-44672025.js +2 -0
- package/lib/{cond-2da54107.js.map → cond-44672025.js.map} +1 -1
- package/lib/{if-defined-720964c0.js → if-defined-9b177db4.js} +2 -2
- package/lib/{if-defined-720964c0.js.map → if-defined-9b177db4.js.map} +1 -1
- package/lib/index.js +1 -1
- package/lib/positioning-cc75c800.js +2 -0
- package/lib/positioning-cc75c800.js.map +1 -0
- package/lib/query-assigned-elements-15485e3d.js +34 -0
- package/lib/query-assigned-elements-15485e3d.js.map +1 -0
- package/lib/ref-5526fb07.js +17 -0
- package/lib/{ref-c44e9f3c.js.map → ref-5526fb07.js.map} +1 -1
- package/lib/style-map-ed7e6cc6.js +7 -0
- package/lib/style-map-ed7e6cc6.js.map +1 -0
- package/package.json +3 -3
- package/lib/Component-449e40fb.js.map +0 -1
- package/lib/FocusableMixin-32631bff.js +0 -2
- package/lib/FormField-3f772bad.js.map +0 -1
- package/lib/Sticky-c4cf185e.js.map +0 -1
- package/lib/class-map-21152cee.js +0 -7
- package/lib/collection-7eee4e72.js +0 -7
- package/lib/cond-2da54107.js +0 -2
- package/lib/positioning-3bbd3548.js +0 -2
- package/lib/positioning-3bbd3548.js.map +0 -1
- package/lib/query-assigned-elements-cf502539.js +0 -35
- package/lib/query-assigned-elements-cf502539.js.map +0 -1
- package/lib/ref-c44e9f3c.js +0 -17
- package/lib/style-map-2e8fcab6.js +0 -7
- package/lib/style-map-2e8fcab6.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -697,6 +697,214 @@
|
|
|
697
697
|
}
|
|
698
698
|
]
|
|
699
699
|
},
|
|
700
|
+
{
|
|
701
|
+
"kind": "javascript-module",
|
|
702
|
+
"path": "src/banner/Banner.ts",
|
|
703
|
+
"declarations": [
|
|
704
|
+
{
|
|
705
|
+
"kind": "class",
|
|
706
|
+
"description": "Banner informs users about important changes or conditions in the\ninterface. Use this component if you need to communicate to users\nin a prominent way.",
|
|
707
|
+
"name": "Banner",
|
|
708
|
+
"cssProperties": [
|
|
709
|
+
{
|
|
710
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
711
|
+
"name": "--n-banner-border-radius",
|
|
712
|
+
"default": "var(--n-border-radius)"
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
716
|
+
"name": "--n-banner-box-shadow",
|
|
717
|
+
"default": "var(--n-box-shadow-card)"
|
|
718
|
+
}
|
|
719
|
+
],
|
|
720
|
+
"slots": [
|
|
721
|
+
{
|
|
722
|
+
"description": "default slot",
|
|
723
|
+
"name": ""
|
|
724
|
+
}
|
|
725
|
+
],
|
|
726
|
+
"members": [
|
|
727
|
+
{
|
|
728
|
+
"kind": "field",
|
|
729
|
+
"name": "variant",
|
|
730
|
+
"type": {
|
|
731
|
+
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
732
|
+
},
|
|
733
|
+
"default": "\"info\"",
|
|
734
|
+
"description": "The style variant of the banner.",
|
|
735
|
+
"attribute": "variant",
|
|
736
|
+
"reflects": true
|
|
737
|
+
}
|
|
738
|
+
],
|
|
739
|
+
"attributes": [
|
|
740
|
+
{
|
|
741
|
+
"name": "variant",
|
|
742
|
+
"type": {
|
|
743
|
+
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
744
|
+
},
|
|
745
|
+
"default": "\"info\"",
|
|
746
|
+
"description": "The style variant of the banner.",
|
|
747
|
+
"fieldName": "variant"
|
|
748
|
+
}
|
|
749
|
+
],
|
|
750
|
+
"superclass": {
|
|
751
|
+
"name": "LitElement",
|
|
752
|
+
"package": "lit"
|
|
753
|
+
},
|
|
754
|
+
"localization": [],
|
|
755
|
+
"status": "ready",
|
|
756
|
+
"category": "feedback",
|
|
757
|
+
"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 this component if you need to communicate in a prominent way.\n- Place banner at the top of the section it applies to.\n- Use for highlighting errors and success statuses.\n- Put banner close to the context it’s referring to.\n- Move focus to the banner if it’s relevant to the current workflow.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Move focus to banner if it appears on page load.\n- Use for highlighting general content or as a banner.\n- Use to replace an error page.\n\n</div>\n\n---\n\n## Content guidelines\n\nBanner content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident. Please see our status page for more details.</div>\n<div class=\"n-usage n-usage-dont\">There was an error.</div>\n\nWhen writing banner content, always write it 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\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re Experiencing An Incident.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re experiencing an incident</div>\n",
|
|
758
|
+
"examples": [],
|
|
759
|
+
"dependencies": [
|
|
760
|
+
"icon"
|
|
761
|
+
],
|
|
762
|
+
"tagName": "nord-banner",
|
|
763
|
+
"customElement": true
|
|
764
|
+
}
|
|
765
|
+
],
|
|
766
|
+
"exports": [
|
|
767
|
+
{
|
|
768
|
+
"kind": "js",
|
|
769
|
+
"name": "default",
|
|
770
|
+
"declaration": {
|
|
771
|
+
"name": "Banner",
|
|
772
|
+
"module": "src/banner/Banner.ts"
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
"kind": "custom-element-definition",
|
|
777
|
+
"name": "nord-banner",
|
|
778
|
+
"declaration": {
|
|
779
|
+
"name": "Banner",
|
|
780
|
+
"module": "src/banner/Banner.ts"
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
]
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
"kind": "javascript-module",
|
|
787
|
+
"path": "src/button-group/ButtonGroup.ts",
|
|
788
|
+
"declarations": [
|
|
789
|
+
{
|
|
790
|
+
"kind": "class",
|
|
791
|
+
"description": "Button groups are designed to bring together button controls that are of a similar nature. For example text formatting controls.",
|
|
792
|
+
"name": "ButtonGroup",
|
|
793
|
+
"cssProperties": [
|
|
794
|
+
{
|
|
795
|
+
"description": "Controls the rounded corners of the button, using [border radius tokens](/tokens/#border-radius).",
|
|
796
|
+
"name": "--n-button-group-border-radius",
|
|
797
|
+
"default": "var(--n-border-radius-s)"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
801
|
+
"name": "--n-button-group-box-shadow",
|
|
802
|
+
"default": "var(--n-box-shadow)"
|
|
803
|
+
}
|
|
804
|
+
],
|
|
805
|
+
"slots": [
|
|
806
|
+
{
|
|
807
|
+
"description": "The button group content",
|
|
808
|
+
"name": ""
|
|
809
|
+
}
|
|
810
|
+
],
|
|
811
|
+
"members": [
|
|
812
|
+
{
|
|
813
|
+
"kind": "field",
|
|
814
|
+
"name": "direction",
|
|
815
|
+
"type": {
|
|
816
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
817
|
+
},
|
|
818
|
+
"default": "\"horizontal\"",
|
|
819
|
+
"description": "The direction of the button group.",
|
|
820
|
+
"attribute": "direction",
|
|
821
|
+
"reflects": true
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"kind": "field",
|
|
825
|
+
"name": "role",
|
|
826
|
+
"type": {
|
|
827
|
+
"text": "string"
|
|
828
|
+
},
|
|
829
|
+
"default": "\"group\"",
|
|
830
|
+
"description": "The appropriate role for the containing element.",
|
|
831
|
+
"attribute": "role",
|
|
832
|
+
"reflects": true
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"kind": "field",
|
|
836
|
+
"name": "_warningLogged",
|
|
837
|
+
"type": {
|
|
838
|
+
"text": "boolean"
|
|
839
|
+
},
|
|
840
|
+
"privacy": "private",
|
|
841
|
+
"static": true,
|
|
842
|
+
"default": "false",
|
|
843
|
+
"inheritedFrom": {
|
|
844
|
+
"name": "DraftComponentMixin",
|
|
845
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
],
|
|
849
|
+
"attributes": [
|
|
850
|
+
{
|
|
851
|
+
"name": "direction",
|
|
852
|
+
"type": {
|
|
853
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
854
|
+
},
|
|
855
|
+
"default": "\"horizontal\"",
|
|
856
|
+
"description": "The direction of the button group.",
|
|
857
|
+
"fieldName": "direction"
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"name": "role",
|
|
861
|
+
"type": {
|
|
862
|
+
"text": "string"
|
|
863
|
+
},
|
|
864
|
+
"default": "\"group\"",
|
|
865
|
+
"description": "The appropriate role for the containing element.",
|
|
866
|
+
"fieldName": "role"
|
|
867
|
+
}
|
|
868
|
+
],
|
|
869
|
+
"mixins": [
|
|
870
|
+
{
|
|
871
|
+
"name": "DraftComponentMixin",
|
|
872
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
873
|
+
}
|
|
874
|
+
],
|
|
875
|
+
"superclass": {
|
|
876
|
+
"name": "LitElement",
|
|
877
|
+
"package": "lit"
|
|
878
|
+
},
|
|
879
|
+
"localization": [],
|
|
880
|
+
"status": "draft",
|
|
881
|
+
"category": "structure",
|
|
882
|
+
"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 labels should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">View user settings</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing button 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 button labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n",
|
|
883
|
+
"examples": [],
|
|
884
|
+
"dependencies": [],
|
|
885
|
+
"tagName": "nord-button-group",
|
|
886
|
+
"customElement": true
|
|
887
|
+
}
|
|
888
|
+
],
|
|
889
|
+
"exports": [
|
|
890
|
+
{
|
|
891
|
+
"kind": "js",
|
|
892
|
+
"name": "default",
|
|
893
|
+
"declaration": {
|
|
894
|
+
"name": "ButtonGroup",
|
|
895
|
+
"module": "src/button-group/ButtonGroup.ts"
|
|
896
|
+
}
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"kind": "custom-element-definition",
|
|
900
|
+
"name": "nord-button-group",
|
|
901
|
+
"declaration": {
|
|
902
|
+
"name": "ButtonGroup",
|
|
903
|
+
"module": "src/button-group/ButtonGroup.ts"
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
]
|
|
907
|
+
},
|
|
700
908
|
{
|
|
701
909
|
"kind": "javascript-module",
|
|
702
910
|
"path": "src/button/Button.ts",
|
|
@@ -1242,246 +1450,38 @@
|
|
|
1242
1450
|
},
|
|
1243
1451
|
{
|
|
1244
1452
|
"kind": "javascript-module",
|
|
1245
|
-
"path": "src/
|
|
1453
|
+
"path": "src/calendar/Calendar.ts",
|
|
1246
1454
|
"declarations": [
|
|
1247
1455
|
{
|
|
1248
1456
|
"kind": "class",
|
|
1249
|
-
"description": "
|
|
1250
|
-
"name": "
|
|
1457
|
+
"description": "Calendar allows user to pick a date. It comes with built-in\nfunctionality that allows you to set a minimum and a maximum allowed date.\nPlease note that the date must be passed in ISO-8601 format.",
|
|
1458
|
+
"name": "Calendar",
|
|
1251
1459
|
"cssProperties": [
|
|
1252
1460
|
{
|
|
1253
1461
|
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
1254
|
-
"name": "--n-
|
|
1462
|
+
"name": "--n-calendar-border-radius",
|
|
1255
1463
|
"default": "var(--n-border-radius)"
|
|
1256
1464
|
},
|
|
1257
1465
|
{
|
|
1258
1466
|
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1259
|
-
"name": "--n-
|
|
1260
|
-
"default": "var(--n-box-shadow-
|
|
1261
|
-
}
|
|
1262
|
-
],
|
|
1263
|
-
"slots": [
|
|
1264
|
-
{
|
|
1265
|
-
"description": "default slot",
|
|
1266
|
-
"name": ""
|
|
1467
|
+
"name": "--n-calendar-box-shadow",
|
|
1468
|
+
"default": "var(--n-box-shadow-popout)"
|
|
1267
1469
|
}
|
|
1268
1470
|
],
|
|
1269
1471
|
"members": [
|
|
1270
1472
|
{
|
|
1271
1473
|
"kind": "field",
|
|
1272
|
-
"name": "
|
|
1474
|
+
"name": "monthSelectNode",
|
|
1273
1475
|
"type": {
|
|
1274
|
-
"text": "
|
|
1476
|
+
"text": "HTMLElement"
|
|
1275
1477
|
},
|
|
1276
|
-
"
|
|
1277
|
-
|
|
1278
|
-
"attribute": "variant",
|
|
1279
|
-
"reflects": true
|
|
1280
|
-
}
|
|
1281
|
-
],
|
|
1282
|
-
"attributes": [
|
|
1478
|
+
"privacy": "private"
|
|
1479
|
+
},
|
|
1283
1480
|
{
|
|
1284
|
-
"
|
|
1481
|
+
"kind": "field",
|
|
1482
|
+
"name": "focusedDayNode",
|
|
1285
1483
|
"type": {
|
|
1286
|
-
"text": "
|
|
1287
|
-
},
|
|
1288
|
-
"default": "\"info\"",
|
|
1289
|
-
"description": "The style variant of the banner.",
|
|
1290
|
-
"fieldName": "variant"
|
|
1291
|
-
}
|
|
1292
|
-
],
|
|
1293
|
-
"superclass": {
|
|
1294
|
-
"name": "LitElement",
|
|
1295
|
-
"package": "lit"
|
|
1296
|
-
},
|
|
1297
|
-
"localization": [],
|
|
1298
|
-
"status": "ready",
|
|
1299
|
-
"category": "feedback",
|
|
1300
|
-
"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 this component if you need to communicate in a prominent way.\n- Place banner at the top of the section it applies to.\n- Use for highlighting errors and success statuses.\n- Put banner close to the context it’s referring to.\n- Move focus to the banner if it’s relevant to the current workflow.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Move focus to banner if it appears on page load.\n- Use for highlighting general content or as a banner.\n- Use to replace an error page.\n\n</div>\n\n---\n\n## Content guidelines\n\nBanner content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident. Please see our status page for more details.</div>\n<div class=\"n-usage n-usage-dont\">There was an error.</div>\n\nWhen writing banner content, always write it 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\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re Experiencing An Incident.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re experiencing an incident</div>\n",
|
|
1301
|
-
"examples": [],
|
|
1302
|
-
"dependencies": [
|
|
1303
|
-
"icon"
|
|
1304
|
-
],
|
|
1305
|
-
"tagName": "nord-banner",
|
|
1306
|
-
"customElement": true
|
|
1307
|
-
}
|
|
1308
|
-
],
|
|
1309
|
-
"exports": [
|
|
1310
|
-
{
|
|
1311
|
-
"kind": "js",
|
|
1312
|
-
"name": "default",
|
|
1313
|
-
"declaration": {
|
|
1314
|
-
"name": "Banner",
|
|
1315
|
-
"module": "src/banner/Banner.ts"
|
|
1316
|
-
}
|
|
1317
|
-
},
|
|
1318
|
-
{
|
|
1319
|
-
"kind": "custom-element-definition",
|
|
1320
|
-
"name": "nord-banner",
|
|
1321
|
-
"declaration": {
|
|
1322
|
-
"name": "Banner",
|
|
1323
|
-
"module": "src/banner/Banner.ts"
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
]
|
|
1327
|
-
},
|
|
1328
|
-
{
|
|
1329
|
-
"kind": "javascript-module",
|
|
1330
|
-
"path": "src/button-group/ButtonGroup.ts",
|
|
1331
|
-
"declarations": [
|
|
1332
|
-
{
|
|
1333
|
-
"kind": "class",
|
|
1334
|
-
"description": "Button groups are designed to bring together button controls that are of a similar nature. For example text formatting controls.",
|
|
1335
|
-
"name": "ButtonGroup",
|
|
1336
|
-
"cssProperties": [
|
|
1337
|
-
{
|
|
1338
|
-
"description": "Controls the rounded corners of the button, using [border radius tokens](/tokens/#border-radius).",
|
|
1339
|
-
"name": "--n-button-group-border-radius",
|
|
1340
|
-
"default": "var(--n-border-radius-s)"
|
|
1341
|
-
},
|
|
1342
|
-
{
|
|
1343
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1344
|
-
"name": "--n-button-group-box-shadow",
|
|
1345
|
-
"default": "var(--n-box-shadow)"
|
|
1346
|
-
}
|
|
1347
|
-
],
|
|
1348
|
-
"slots": [
|
|
1349
|
-
{
|
|
1350
|
-
"description": "The button group content",
|
|
1351
|
-
"name": ""
|
|
1352
|
-
}
|
|
1353
|
-
],
|
|
1354
|
-
"members": [
|
|
1355
|
-
{
|
|
1356
|
-
"kind": "field",
|
|
1357
|
-
"name": "direction",
|
|
1358
|
-
"type": {
|
|
1359
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
1360
|
-
},
|
|
1361
|
-
"default": "\"horizontal\"",
|
|
1362
|
-
"description": "The direction of the button group.",
|
|
1363
|
-
"attribute": "direction",
|
|
1364
|
-
"reflects": true
|
|
1365
|
-
},
|
|
1366
|
-
{
|
|
1367
|
-
"kind": "field",
|
|
1368
|
-
"name": "role",
|
|
1369
|
-
"type": {
|
|
1370
|
-
"text": "string"
|
|
1371
|
-
},
|
|
1372
|
-
"default": "\"group\"",
|
|
1373
|
-
"description": "The appropriate role for the containing element.",
|
|
1374
|
-
"attribute": "role",
|
|
1375
|
-
"reflects": true
|
|
1376
|
-
},
|
|
1377
|
-
{
|
|
1378
|
-
"kind": "field",
|
|
1379
|
-
"name": "_warningLogged",
|
|
1380
|
-
"type": {
|
|
1381
|
-
"text": "boolean"
|
|
1382
|
-
},
|
|
1383
|
-
"privacy": "private",
|
|
1384
|
-
"static": true,
|
|
1385
|
-
"default": "false",
|
|
1386
|
-
"inheritedFrom": {
|
|
1387
|
-
"name": "DraftComponentMixin",
|
|
1388
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
1389
|
-
}
|
|
1390
|
-
}
|
|
1391
|
-
],
|
|
1392
|
-
"attributes": [
|
|
1393
|
-
{
|
|
1394
|
-
"name": "direction",
|
|
1395
|
-
"type": {
|
|
1396
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
1397
|
-
},
|
|
1398
|
-
"default": "\"horizontal\"",
|
|
1399
|
-
"description": "The direction of the button group.",
|
|
1400
|
-
"fieldName": "direction"
|
|
1401
|
-
},
|
|
1402
|
-
{
|
|
1403
|
-
"name": "role",
|
|
1404
|
-
"type": {
|
|
1405
|
-
"text": "string"
|
|
1406
|
-
},
|
|
1407
|
-
"default": "\"group\"",
|
|
1408
|
-
"description": "The appropriate role for the containing element.",
|
|
1409
|
-
"fieldName": "role"
|
|
1410
|
-
}
|
|
1411
|
-
],
|
|
1412
|
-
"mixins": [
|
|
1413
|
-
{
|
|
1414
|
-
"name": "DraftComponentMixin",
|
|
1415
|
-
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
1416
|
-
}
|
|
1417
|
-
],
|
|
1418
|
-
"superclass": {
|
|
1419
|
-
"name": "LitElement",
|
|
1420
|
-
"package": "lit"
|
|
1421
|
-
},
|
|
1422
|
-
"localization": [],
|
|
1423
|
-
"status": "draft",
|
|
1424
|
-
"category": "structure",
|
|
1425
|
-
"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 labels should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">View user settings</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing button 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 button labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n",
|
|
1426
|
-
"examples": [],
|
|
1427
|
-
"dependencies": [],
|
|
1428
|
-
"tagName": "nord-button-group",
|
|
1429
|
-
"customElement": true
|
|
1430
|
-
}
|
|
1431
|
-
],
|
|
1432
|
-
"exports": [
|
|
1433
|
-
{
|
|
1434
|
-
"kind": "js",
|
|
1435
|
-
"name": "default",
|
|
1436
|
-
"declaration": {
|
|
1437
|
-
"name": "ButtonGroup",
|
|
1438
|
-
"module": "src/button-group/ButtonGroup.ts"
|
|
1439
|
-
}
|
|
1440
|
-
},
|
|
1441
|
-
{
|
|
1442
|
-
"kind": "custom-element-definition",
|
|
1443
|
-
"name": "nord-button-group",
|
|
1444
|
-
"declaration": {
|
|
1445
|
-
"name": "ButtonGroup",
|
|
1446
|
-
"module": "src/button-group/ButtonGroup.ts"
|
|
1447
|
-
}
|
|
1448
|
-
}
|
|
1449
|
-
]
|
|
1450
|
-
},
|
|
1451
|
-
{
|
|
1452
|
-
"kind": "javascript-module",
|
|
1453
|
-
"path": "src/calendar/Calendar.ts",
|
|
1454
|
-
"declarations": [
|
|
1455
|
-
{
|
|
1456
|
-
"kind": "class",
|
|
1457
|
-
"description": "Calendar allows user to pick a date. It comes with built-in\nfunctionality that allows you to set a minimum and a maximum allowed date.\nPlease note that the date must be passed in ISO-8601 format.",
|
|
1458
|
-
"name": "Calendar",
|
|
1459
|
-
"cssProperties": [
|
|
1460
|
-
{
|
|
1461
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
1462
|
-
"name": "--n-calendar-border-radius",
|
|
1463
|
-
"default": "var(--n-border-radius)"
|
|
1464
|
-
},
|
|
1465
|
-
{
|
|
1466
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1467
|
-
"name": "--n-calendar-box-shadow",
|
|
1468
|
-
"default": "var(--n-box-shadow-popout)"
|
|
1469
|
-
}
|
|
1470
|
-
],
|
|
1471
|
-
"members": [
|
|
1472
|
-
{
|
|
1473
|
-
"kind": "field",
|
|
1474
|
-
"name": "monthSelectNode",
|
|
1475
|
-
"type": {
|
|
1476
|
-
"text": "HTMLElement"
|
|
1477
|
-
},
|
|
1478
|
-
"privacy": "private"
|
|
1479
|
-
},
|
|
1480
|
-
{
|
|
1481
|
-
"kind": "field",
|
|
1482
|
-
"name": "focusedDayNode",
|
|
1483
|
-
"type": {
|
|
1484
|
-
"text": "HTMLButtonElement"
|
|
1484
|
+
"text": "HTMLButtonElement"
|
|
1485
1485
|
},
|
|
1486
1486
|
"privacy": "private"
|
|
1487
1487
|
},
|
|
@@ -12689,177 +12689,76 @@
|
|
|
12689
12689
|
},
|
|
12690
12690
|
{
|
|
12691
12691
|
"kind": "javascript-module",
|
|
12692
|
-
"path": "src/
|
|
12692
|
+
"path": "src/stack/Stack.ts",
|
|
12693
12693
|
"declarations": [
|
|
12694
12694
|
{
|
|
12695
12695
|
"kind": "class",
|
|
12696
|
-
"description": "
|
|
12697
|
-
"name": "
|
|
12696
|
+
"description": "Stack component manages layout of immediate children along the\nvertical or horizontal axis with optional spacing between each child.",
|
|
12697
|
+
"name": "Stack",
|
|
12698
|
+
"cssProperties": [
|
|
12699
|
+
{
|
|
12700
|
+
"description": "Controls the spacing between items, using our [spacing tokens](/tokens/#space).",
|
|
12701
|
+
"name": "--n-stack-gap",
|
|
12702
|
+
"default": "var(--n-space-m)"
|
|
12703
|
+
}
|
|
12704
|
+
],
|
|
12705
|
+
"slots": [
|
|
12706
|
+
{
|
|
12707
|
+
"description": "The stack content.",
|
|
12708
|
+
"name": ""
|
|
12709
|
+
}
|
|
12710
|
+
],
|
|
12698
12711
|
"members": [
|
|
12699
12712
|
{
|
|
12700
12713
|
"kind": "field",
|
|
12701
|
-
"name": "
|
|
12714
|
+
"name": "gap",
|
|
12702
12715
|
"type": {
|
|
12703
|
-
"text": "\"
|
|
12716
|
+
"text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
12704
12717
|
},
|
|
12705
12718
|
"default": "\"m\"",
|
|
12706
|
-
"description": "The
|
|
12707
|
-
"attribute": "
|
|
12719
|
+
"description": "The space injected between components.",
|
|
12720
|
+
"attribute": "gap",
|
|
12708
12721
|
"reflects": true
|
|
12709
12722
|
},
|
|
12710
12723
|
{
|
|
12711
12724
|
"kind": "field",
|
|
12712
|
-
"name": "
|
|
12725
|
+
"name": "direction",
|
|
12713
12726
|
"type": {
|
|
12714
|
-
"text": "
|
|
12727
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
12715
12728
|
},
|
|
12716
|
-
"
|
|
12717
|
-
"
|
|
12729
|
+
"default": "\"vertical\"",
|
|
12730
|
+
"description": "The direction of the stack.",
|
|
12731
|
+
"attribute": "direction",
|
|
12718
12732
|
"reflects": true
|
|
12719
12733
|
},
|
|
12720
12734
|
{
|
|
12721
12735
|
"kind": "field",
|
|
12722
|
-
"name": "
|
|
12736
|
+
"name": "alignItems",
|
|
12723
12737
|
"type": {
|
|
12724
|
-
"text": "
|
|
12738
|
+
"text": "\"center\" | \"start\" | \"end\" | \"stretch\" | undefined"
|
|
12725
12739
|
},
|
|
12726
|
-
"
|
|
12727
|
-
"
|
|
12740
|
+
"default": "\"stretch\"",
|
|
12741
|
+
"description": "How to align the child items inside the stack.",
|
|
12742
|
+
"attribute": "align-items",
|
|
12728
12743
|
"reflects": true
|
|
12729
|
-
}
|
|
12730
|
-
],
|
|
12731
|
-
"attributes": [
|
|
12744
|
+
},
|
|
12732
12745
|
{
|
|
12733
|
-
"
|
|
12746
|
+
"kind": "field",
|
|
12747
|
+
"name": "responsive",
|
|
12734
12748
|
"type": {
|
|
12735
|
-
"text": "
|
|
12749
|
+
"text": "boolean"
|
|
12736
12750
|
},
|
|
12737
|
-
"default": "
|
|
12738
|
-
"description": "
|
|
12739
|
-
"
|
|
12751
|
+
"default": "false",
|
|
12752
|
+
"description": "This property is deprecated and will be removed in a future version. We recommend using standard [CSS media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries) over this property. Please see the [updated usage example](/components/stack/?example=using+responsive+media+query).",
|
|
12753
|
+
"deprecated": "true",
|
|
12754
|
+
"attribute": "responsive",
|
|
12755
|
+
"reflects": true
|
|
12740
12756
|
},
|
|
12741
12757
|
{
|
|
12742
|
-
"
|
|
12758
|
+
"kind": "field",
|
|
12759
|
+
"name": "wrap",
|
|
12743
12760
|
"type": {
|
|
12744
|
-
"text": "
|
|
12745
|
-
},
|
|
12746
|
-
"description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
|
|
12747
|
-
"fieldName": "color"
|
|
12748
|
-
},
|
|
12749
|
-
{
|
|
12750
|
-
"name": "label",
|
|
12751
|
-
"type": {
|
|
12752
|
-
"text": "string | undefined"
|
|
12753
|
-
},
|
|
12754
|
-
"description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
|
|
12755
|
-
"fieldName": "label"
|
|
12756
|
-
}
|
|
12757
|
-
],
|
|
12758
|
-
"superclass": {
|
|
12759
|
-
"name": "LitElement",
|
|
12760
|
-
"package": "lit"
|
|
12761
|
-
},
|
|
12762
|
-
"localization": [],
|
|
12763
|
-
"status": "ready",
|
|
12764
|
-
"category": "feedback",
|
|
12765
|
-
"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 for indicating users that their action is being processed.\n- Use the label property to provide an accessible label for the spinner. If no label is supplied, the spinner is hidden from assistive technology.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use to show progress. Favor a progress bar instead.\n\n</div>\n",
|
|
12766
|
-
"examples": [],
|
|
12767
|
-
"dependencies": [],
|
|
12768
|
-
"tagName": "nord-spinner",
|
|
12769
|
-
"customElement": true
|
|
12770
|
-
}
|
|
12771
|
-
],
|
|
12772
|
-
"exports": [
|
|
12773
|
-
{
|
|
12774
|
-
"kind": "js",
|
|
12775
|
-
"name": "default",
|
|
12776
|
-
"declaration": {
|
|
12777
|
-
"name": "Spinner",
|
|
12778
|
-
"module": "src/spinner/Spinner.ts"
|
|
12779
|
-
}
|
|
12780
|
-
},
|
|
12781
|
-
{
|
|
12782
|
-
"kind": "custom-element-definition",
|
|
12783
|
-
"name": "nord-spinner",
|
|
12784
|
-
"declaration": {
|
|
12785
|
-
"name": "Spinner",
|
|
12786
|
-
"module": "src/spinner/Spinner.ts"
|
|
12787
|
-
}
|
|
12788
|
-
}
|
|
12789
|
-
]
|
|
12790
|
-
},
|
|
12791
|
-
{
|
|
12792
|
-
"kind": "javascript-module",
|
|
12793
|
-
"path": "src/stack/Stack.ts",
|
|
12794
|
-
"declarations": [
|
|
12795
|
-
{
|
|
12796
|
-
"kind": "class",
|
|
12797
|
-
"description": "Stack component manages layout of immediate children along the\nvertical or horizontal axis with optional spacing between each child.",
|
|
12798
|
-
"name": "Stack",
|
|
12799
|
-
"cssProperties": [
|
|
12800
|
-
{
|
|
12801
|
-
"description": "Controls the spacing between items, using our [spacing tokens](/tokens/#space).",
|
|
12802
|
-
"name": "--n-stack-gap",
|
|
12803
|
-
"default": "var(--n-space-m)"
|
|
12804
|
-
}
|
|
12805
|
-
],
|
|
12806
|
-
"slots": [
|
|
12807
|
-
{
|
|
12808
|
-
"description": "The stack content.",
|
|
12809
|
-
"name": ""
|
|
12810
|
-
}
|
|
12811
|
-
],
|
|
12812
|
-
"members": [
|
|
12813
|
-
{
|
|
12814
|
-
"kind": "field",
|
|
12815
|
-
"name": "gap",
|
|
12816
|
-
"type": {
|
|
12817
|
-
"text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
12818
|
-
},
|
|
12819
|
-
"default": "\"m\"",
|
|
12820
|
-
"description": "The space injected between components.",
|
|
12821
|
-
"attribute": "gap",
|
|
12822
|
-
"reflects": true
|
|
12823
|
-
},
|
|
12824
|
-
{
|
|
12825
|
-
"kind": "field",
|
|
12826
|
-
"name": "direction",
|
|
12827
|
-
"type": {
|
|
12828
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
12829
|
-
},
|
|
12830
|
-
"default": "\"vertical\"",
|
|
12831
|
-
"description": "The direction of the stack.",
|
|
12832
|
-
"attribute": "direction",
|
|
12833
|
-
"reflects": true
|
|
12834
|
-
},
|
|
12835
|
-
{
|
|
12836
|
-
"kind": "field",
|
|
12837
|
-
"name": "alignItems",
|
|
12838
|
-
"type": {
|
|
12839
|
-
"text": "\"center\" | \"start\" | \"end\" | \"stretch\" | undefined"
|
|
12840
|
-
},
|
|
12841
|
-
"default": "\"stretch\"",
|
|
12842
|
-
"description": "How to align the child items inside the stack.",
|
|
12843
|
-
"attribute": "align-items",
|
|
12844
|
-
"reflects": true
|
|
12845
|
-
},
|
|
12846
|
-
{
|
|
12847
|
-
"kind": "field",
|
|
12848
|
-
"name": "responsive",
|
|
12849
|
-
"type": {
|
|
12850
|
-
"text": "boolean"
|
|
12851
|
-
},
|
|
12852
|
-
"default": "false",
|
|
12853
|
-
"description": "This property is deprecated and will be removed in a future version. We recommend using standard [CSS media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries) over this property. Please see the [updated usage example](/components/stack/?example=using+responsive+media+query).",
|
|
12854
|
-
"deprecated": "true",
|
|
12855
|
-
"attribute": "responsive",
|
|
12856
|
-
"reflects": true
|
|
12857
|
-
},
|
|
12858
|
-
{
|
|
12859
|
-
"kind": "field",
|
|
12860
|
-
"name": "wrap",
|
|
12861
|
-
"type": {
|
|
12862
|
-
"text": "boolean"
|
|
12761
|
+
"text": "boolean"
|
|
12863
12762
|
},
|
|
12864
12763
|
"default": "false",
|
|
12865
12764
|
"description": "Defines whether the Stack items are forced in a single line\nor can be flowed into multiple lines.",
|
|
@@ -12966,6 +12865,107 @@
|
|
|
12966
12865
|
}
|
|
12967
12866
|
]
|
|
12968
12867
|
},
|
|
12868
|
+
{
|
|
12869
|
+
"kind": "javascript-module",
|
|
12870
|
+
"path": "src/spinner/Spinner.ts",
|
|
12871
|
+
"declarations": [
|
|
12872
|
+
{
|
|
12873
|
+
"kind": "class",
|
|
12874
|
+
"description": "Spinner component is used to indicate users that their action is being\nprocessed. You can customize the size and color of the spinner with the\nprovided properties.",
|
|
12875
|
+
"name": "Spinner",
|
|
12876
|
+
"members": [
|
|
12877
|
+
{
|
|
12878
|
+
"kind": "field",
|
|
12879
|
+
"name": "size",
|
|
12880
|
+
"type": {
|
|
12881
|
+
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
12882
|
+
},
|
|
12883
|
+
"default": "\"m\"",
|
|
12884
|
+
"description": "The size of the spinner.",
|
|
12885
|
+
"attribute": "size",
|
|
12886
|
+
"reflects": true
|
|
12887
|
+
},
|
|
12888
|
+
{
|
|
12889
|
+
"kind": "field",
|
|
12890
|
+
"name": "color",
|
|
12891
|
+
"type": {
|
|
12892
|
+
"text": "string | undefined"
|
|
12893
|
+
},
|
|
12894
|
+
"description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
|
|
12895
|
+
"attribute": "color",
|
|
12896
|
+
"reflects": true
|
|
12897
|
+
},
|
|
12898
|
+
{
|
|
12899
|
+
"kind": "field",
|
|
12900
|
+
"name": "label",
|
|
12901
|
+
"type": {
|
|
12902
|
+
"text": "string | undefined"
|
|
12903
|
+
},
|
|
12904
|
+
"description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
|
|
12905
|
+
"attribute": "label",
|
|
12906
|
+
"reflects": true
|
|
12907
|
+
}
|
|
12908
|
+
],
|
|
12909
|
+
"attributes": [
|
|
12910
|
+
{
|
|
12911
|
+
"name": "size",
|
|
12912
|
+
"type": {
|
|
12913
|
+
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
12914
|
+
},
|
|
12915
|
+
"default": "\"m\"",
|
|
12916
|
+
"description": "The size of the spinner.",
|
|
12917
|
+
"fieldName": "size"
|
|
12918
|
+
},
|
|
12919
|
+
{
|
|
12920
|
+
"name": "color",
|
|
12921
|
+
"type": {
|
|
12922
|
+
"text": "string | undefined"
|
|
12923
|
+
},
|
|
12924
|
+
"description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
|
|
12925
|
+
"fieldName": "color"
|
|
12926
|
+
},
|
|
12927
|
+
{
|
|
12928
|
+
"name": "label",
|
|
12929
|
+
"type": {
|
|
12930
|
+
"text": "string | undefined"
|
|
12931
|
+
},
|
|
12932
|
+
"description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
|
|
12933
|
+
"fieldName": "label"
|
|
12934
|
+
}
|
|
12935
|
+
],
|
|
12936
|
+
"superclass": {
|
|
12937
|
+
"name": "LitElement",
|
|
12938
|
+
"package": "lit"
|
|
12939
|
+
},
|
|
12940
|
+
"localization": [],
|
|
12941
|
+
"status": "ready",
|
|
12942
|
+
"category": "feedback",
|
|
12943
|
+
"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 for indicating users that their action is being processed.\n- Use the label property to provide an accessible label for the spinner. If no label is supplied, the spinner is hidden from assistive technology.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use to show progress. Favor a progress bar instead.\n\n</div>\n",
|
|
12944
|
+
"examples": [],
|
|
12945
|
+
"dependencies": [],
|
|
12946
|
+
"tagName": "nord-spinner",
|
|
12947
|
+
"customElement": true
|
|
12948
|
+
}
|
|
12949
|
+
],
|
|
12950
|
+
"exports": [
|
|
12951
|
+
{
|
|
12952
|
+
"kind": "js",
|
|
12953
|
+
"name": "default",
|
|
12954
|
+
"declaration": {
|
|
12955
|
+
"name": "Spinner",
|
|
12956
|
+
"module": "src/spinner/Spinner.ts"
|
|
12957
|
+
}
|
|
12958
|
+
},
|
|
12959
|
+
{
|
|
12960
|
+
"kind": "custom-element-definition",
|
|
12961
|
+
"name": "nord-spinner",
|
|
12962
|
+
"declaration": {
|
|
12963
|
+
"name": "Spinner",
|
|
12964
|
+
"module": "src/spinner/Spinner.ts"
|
|
12965
|
+
}
|
|
12966
|
+
}
|
|
12967
|
+
]
|
|
12968
|
+
},
|
|
12969
12969
|
{
|
|
12970
12970
|
"kind": "javascript-module",
|
|
12971
12971
|
"path": "src/tab/Tab.ts",
|
|
@@ -13244,216 +13244,31 @@
|
|
|
13244
13244
|
],
|
|
13245
13245
|
"attributes": [
|
|
13246
13246
|
{
|
|
13247
|
-
"name": "label",
|
|
13248
|
-
"type": {
|
|
13249
|
-
"text": "string"
|
|
13250
|
-
},
|
|
13251
|
-
"default": "\"\"",
|
|
13252
|
-
"description": "Adds an accessible label to the tab list container.",
|
|
13253
|
-
"fieldName": "label"
|
|
13254
|
-
},
|
|
13255
|
-
{
|
|
13256
|
-
"name": "padding",
|
|
13257
|
-
"type": {
|
|
13258
|
-
"text": "\"m\" | \"l\" | \"none\" | undefined"
|
|
13259
|
-
},
|
|
13260
|
-
"default": "\"m\"",
|
|
13261
|
-
"description": "Controls the padding of the tab group component.",
|
|
13262
|
-
"fieldName": "padding"
|
|
13263
|
-
},
|
|
13264
|
-
{
|
|
13265
|
-
"name": "sticky",
|
|
13266
|
-
"type": {
|
|
13267
|
-
"text": "boolean"
|
|
13268
|
-
},
|
|
13269
|
-
"default": "false",
|
|
13270
|
-
"description": "Whether the tab list sticks to the top of the tab group as you scroll.",
|
|
13271
|
-
"fieldName": "sticky"
|
|
13272
|
-
}
|
|
13273
|
-
],
|
|
13274
|
-
"superclass": {
|
|
13275
|
-
"name": "LitElement",
|
|
13276
|
-
"package": "lit"
|
|
13277
|
-
},
|
|
13278
|
-
"localization": [],
|
|
13279
|
-
"status": "ready",
|
|
13280
|
-
"category": "navigation",
|
|
13281
|
-
"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 multiple panels to be contained within a single window.\n- Use the tab panel and tab components within the tab group component.\n- Use the tab and tab panel components in order to create a tab group content structure.\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 other components to the tab and tab panel within the tab group component.\n- Don't obscure important information within a tab panel that isn't revealed by default.\n- Don't add a tab or tab panel component without providing an accompanying panel or tab.\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 tab panel you wish to show out of order of the tabs UI itself consider using the `selected` option on the tab component related to the panel to select the tab but prevent the order of the tabs being affected.\n",
|
|
13282
|
-
"examples": [],
|
|
13283
|
-
"dependencies": [
|
|
13284
|
-
"tab"
|
|
13285
|
-
],
|
|
13286
|
-
"tagName": "nord-tab-group",
|
|
13287
|
-
"customElement": true
|
|
13288
|
-
}
|
|
13289
|
-
],
|
|
13290
|
-
"exports": [
|
|
13291
|
-
{
|
|
13292
|
-
"kind": "js",
|
|
13293
|
-
"name": "default",
|
|
13294
|
-
"declaration": {
|
|
13295
|
-
"name": "TabGroup",
|
|
13296
|
-
"module": "src/tab-group/TabGroup.ts"
|
|
13297
|
-
}
|
|
13298
|
-
},
|
|
13299
|
-
{
|
|
13300
|
-
"kind": "custom-element-definition",
|
|
13301
|
-
"name": "nord-tab-group",
|
|
13302
|
-
"declaration": {
|
|
13303
|
-
"name": "TabGroup",
|
|
13304
|
-
"module": "src/tab-group/TabGroup.ts"
|
|
13305
|
-
}
|
|
13306
|
-
}
|
|
13307
|
-
]
|
|
13308
|
-
},
|
|
13309
|
-
{
|
|
13310
|
-
"kind": "javascript-module",
|
|
13311
|
-
"path": "src/tab-panel/TabPanel.ts",
|
|
13312
|
-
"declarations": [
|
|
13313
|
-
{
|
|
13314
|
-
"kind": "class",
|
|
13315
|
-
"description": "The panel which contains content that can be revealed using a tab\nin the tab group component.",
|
|
13316
|
-
"name": "TabPanel",
|
|
13317
|
-
"slots": [
|
|
13318
|
-
{
|
|
13319
|
-
"description": "The tab panel content.",
|
|
13320
|
-
"name": ""
|
|
13321
|
-
}
|
|
13322
|
-
],
|
|
13323
|
-
"members": [],
|
|
13324
|
-
"superclass": {
|
|
13325
|
-
"name": "LitElement",
|
|
13326
|
-
"package": "lit"
|
|
13327
|
-
},
|
|
13328
|
-
"localization": [],
|
|
13329
|
-
"status": "ready",
|
|
13330
|
-
"category": "navigation",
|
|
13331
|
-
"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 panel component within the tab group component.\n- Use both non-interactive and interactive elements within the contents of the tab panel.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use the tab panel component outside of the tab group component.\n- Don't obscure important information within a tab panel that isn't revealed by default.\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 tab panel you wish to show out of order of the tabs UI itself consider using the `selected` option on the related tab component to select the tab but prevent the order of the tabs being affected.\n",
|
|
13332
|
-
"examples": [],
|
|
13333
|
-
"dependencies": [],
|
|
13334
|
-
"tagName": "nord-tab-panel",
|
|
13335
|
-
"customElement": true
|
|
13336
|
-
}
|
|
13337
|
-
],
|
|
13338
|
-
"exports": [
|
|
13339
|
-
{
|
|
13340
|
-
"kind": "js",
|
|
13341
|
-
"name": "default",
|
|
13342
|
-
"declaration": {
|
|
13343
|
-
"name": "TabPanel",
|
|
13344
|
-
"module": "src/tab-panel/TabPanel.ts"
|
|
13345
|
-
}
|
|
13346
|
-
},
|
|
13347
|
-
{
|
|
13348
|
-
"kind": "custom-element-definition",
|
|
13349
|
-
"name": "nord-tab-panel",
|
|
13350
|
-
"declaration": {
|
|
13351
|
-
"name": "TabPanel",
|
|
13352
|
-
"module": "src/tab-panel/TabPanel.ts"
|
|
13353
|
-
}
|
|
13354
|
-
}
|
|
13355
|
-
]
|
|
13356
|
-
},
|
|
13357
|
-
{
|
|
13358
|
-
"kind": "javascript-module",
|
|
13359
|
-
"path": "src/table/Table.ts",
|
|
13360
|
-
"declarations": [
|
|
13361
|
-
{
|
|
13362
|
-
"kind": "class",
|
|
13363
|
-
"description": "Table is used to organize and display information from a data set.\nProvides table styles in addition to features like sticky\nheaders and support for narrow viewports.",
|
|
13364
|
-
"name": "Table",
|
|
13365
|
-
"cssProperties": [
|
|
13366
|
-
{
|
|
13367
|
-
"description": "Controls the padding around the table cells.",
|
|
13368
|
-
"name": "--n-table-td-padding",
|
|
13369
|
-
"default": "calc(var(--n-space-m) * 0.95)"
|
|
13370
|
-
},
|
|
13371
|
-
{
|
|
13372
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
13373
|
-
"name": "--n-table-border-radius",
|
|
13374
|
-
"default": "var(--n-border-radius-s)"
|
|
13375
|
-
}
|
|
13376
|
-
],
|
|
13377
|
-
"slots": [
|
|
13378
|
-
{
|
|
13379
|
-
"description": "Default slot which holds the HTML `<table>` element.",
|
|
13380
|
-
"name": ""
|
|
13381
|
-
}
|
|
13382
|
-
],
|
|
13383
|
-
"members": [
|
|
13384
|
-
{
|
|
13385
|
-
"kind": "field",
|
|
13386
|
-
"name": "density",
|
|
13387
|
-
"type": {
|
|
13388
|
-
"text": "\"condensed\" | \"default\" | \"relaxed\""
|
|
13389
|
-
},
|
|
13390
|
-
"default": "\"default\"",
|
|
13391
|
-
"description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
|
|
13392
|
-
"attribute": "density",
|
|
13393
|
-
"reflects": true
|
|
13394
|
-
},
|
|
13395
|
-
{
|
|
13396
|
-
"kind": "field",
|
|
13397
|
-
"name": "scrollSnap",
|
|
13398
|
-
"type": {
|
|
13399
|
-
"text": "boolean"
|
|
13400
|
-
},
|
|
13401
|
-
"default": "false",
|
|
13402
|
-
"description": "Enables scroll-snapping, meaning the scroll position is always column-aligned.",
|
|
13403
|
-
"attribute": "scroll-snap",
|
|
13404
|
-
"reflects": true
|
|
13405
|
-
},
|
|
13406
|
-
{
|
|
13407
|
-
"kind": "field",
|
|
13408
|
-
"name": "striped",
|
|
13409
|
-
"type": {
|
|
13410
|
-
"text": "boolean"
|
|
13411
|
-
},
|
|
13412
|
-
"default": "false",
|
|
13413
|
-
"description": "Controls whether to use zebra striping on tables, which can improve readability.",
|
|
13414
|
-
"attribute": "striped",
|
|
13415
|
-
"reflects": true
|
|
13416
|
-
},
|
|
13417
|
-
{
|
|
13418
|
-
"kind": "method",
|
|
13419
|
-
"name": "renderStyles",
|
|
13420
|
-
"privacy": "private",
|
|
13421
|
-
"description": "renders table styles into nearest root.\nthis is necessary since we do not use shadow dom."
|
|
13422
|
-
},
|
|
13423
|
-
{
|
|
13424
|
-
"kind": "method",
|
|
13425
|
-
"name": "createRenderRoot",
|
|
13426
|
-
"privacy": "protected",
|
|
13427
|
-
"description": "opt out of shadow dom"
|
|
13428
|
-
}
|
|
13429
|
-
],
|
|
13430
|
-
"attributes": [
|
|
13431
|
-
{
|
|
13432
|
-
"name": "density",
|
|
13247
|
+
"name": "label",
|
|
13433
13248
|
"type": {
|
|
13434
|
-
"text": "
|
|
13249
|
+
"text": "string"
|
|
13435
13250
|
},
|
|
13436
|
-
"default": "\"
|
|
13437
|
-
"description": "
|
|
13438
|
-
"fieldName": "
|
|
13251
|
+
"default": "\"\"",
|
|
13252
|
+
"description": "Adds an accessible label to the tab list container.",
|
|
13253
|
+
"fieldName": "label"
|
|
13439
13254
|
},
|
|
13440
13255
|
{
|
|
13441
|
-
"name": "
|
|
13256
|
+
"name": "padding",
|
|
13442
13257
|
"type": {
|
|
13443
|
-
"text": "
|
|
13258
|
+
"text": "\"m\" | \"l\" | \"none\" | undefined"
|
|
13444
13259
|
},
|
|
13445
|
-
"default": "
|
|
13446
|
-
"description": "
|
|
13447
|
-
"fieldName": "
|
|
13260
|
+
"default": "\"m\"",
|
|
13261
|
+
"description": "Controls the padding of the tab group component.",
|
|
13262
|
+
"fieldName": "padding"
|
|
13448
13263
|
},
|
|
13449
13264
|
{
|
|
13450
|
-
"name": "
|
|
13265
|
+
"name": "sticky",
|
|
13451
13266
|
"type": {
|
|
13452
13267
|
"text": "boolean"
|
|
13453
13268
|
},
|
|
13454
13269
|
"default": "false",
|
|
13455
|
-
"description": "
|
|
13456
|
-
"fieldName": "
|
|
13270
|
+
"description": "Whether the tab list sticks to the top of the tab group as you scroll.",
|
|
13271
|
+
"fieldName": "sticky"
|
|
13457
13272
|
}
|
|
13458
13273
|
],
|
|
13459
13274
|
"superclass": {
|
|
@@ -13462,28 +13277,61 @@
|
|
|
13462
13277
|
},
|
|
13463
13278
|
"localization": [],
|
|
13464
13279
|
"status": "ready",
|
|
13465
|
-
"category": "
|
|
13466
|
-
"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
|
|
13467
|
-
"examples": [
|
|
13468
|
-
|
|
13469
|
-
|
|
13470
|
-
|
|
13471
|
-
|
|
13472
|
-
|
|
13473
|
-
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13280
|
+
"category": "navigation",
|
|
13281
|
+
"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 multiple panels to be contained within a single window.\n- Use the tab panel and tab components within the tab group component.\n- Use the tab and tab panel components in order to create a tab group content structure.\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 other components to the tab and tab panel within the tab group component.\n- Don't obscure important information within a tab panel that isn't revealed by default.\n- Don't add a tab or tab panel component without providing an accompanying panel or tab.\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 tab panel you wish to show out of order of the tabs UI itself consider using the `selected` option on the tab component related to the panel to select the tab but prevent the order of the tabs being affected.\n",
|
|
13282
|
+
"examples": [],
|
|
13283
|
+
"dependencies": [
|
|
13284
|
+
"tab"
|
|
13285
|
+
],
|
|
13286
|
+
"tagName": "nord-tab-group",
|
|
13287
|
+
"customElement": true
|
|
13288
|
+
}
|
|
13289
|
+
],
|
|
13290
|
+
"exports": [
|
|
13291
|
+
{
|
|
13292
|
+
"kind": "js",
|
|
13293
|
+
"name": "default",
|
|
13294
|
+
"declaration": {
|
|
13295
|
+
"name": "TabGroup",
|
|
13296
|
+
"module": "src/tab-group/TabGroup.ts"
|
|
13297
|
+
}
|
|
13298
|
+
},
|
|
13299
|
+
{
|
|
13300
|
+
"kind": "custom-element-definition",
|
|
13301
|
+
"name": "nord-tab-group",
|
|
13302
|
+
"declaration": {
|
|
13303
|
+
"name": "TabGroup",
|
|
13304
|
+
"module": "src/tab-group/TabGroup.ts"
|
|
13305
|
+
}
|
|
13306
|
+
}
|
|
13307
|
+
]
|
|
13308
|
+
},
|
|
13309
|
+
{
|
|
13310
|
+
"kind": "javascript-module",
|
|
13311
|
+
"path": "src/tab-panel/TabPanel.ts",
|
|
13312
|
+
"declarations": [
|
|
13313
|
+
{
|
|
13314
|
+
"kind": "class",
|
|
13315
|
+
"description": "The panel which contains content that can be revealed using a tab\nin the tab group component.",
|
|
13316
|
+
"name": "TabPanel",
|
|
13317
|
+
"slots": [
|
|
13480
13318
|
{
|
|
13481
|
-
"
|
|
13482
|
-
"name": "
|
|
13319
|
+
"description": "The tab panel content.",
|
|
13320
|
+
"name": ""
|
|
13483
13321
|
}
|
|
13484
13322
|
],
|
|
13323
|
+
"members": [],
|
|
13324
|
+
"superclass": {
|
|
13325
|
+
"name": "LitElement",
|
|
13326
|
+
"package": "lit"
|
|
13327
|
+
},
|
|
13328
|
+
"localization": [],
|
|
13329
|
+
"status": "ready",
|
|
13330
|
+
"category": "navigation",
|
|
13331
|
+
"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 panel component within the tab group component.\n- Use both non-interactive and interactive elements within the contents of the tab panel.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use the tab panel component outside of the tab group component.\n- Don't obscure important information within a tab panel that isn't revealed by default.\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 tab panel you wish to show out of order of the tabs UI itself consider using the `selected` option on the related tab component to select the tab but prevent the order of the tabs being affected.\n",
|
|
13332
|
+
"examples": [],
|
|
13485
13333
|
"dependencies": [],
|
|
13486
|
-
"tagName": "nord-
|
|
13334
|
+
"tagName": "nord-tab-panel",
|
|
13487
13335
|
"customElement": true
|
|
13488
13336
|
}
|
|
13489
13337
|
],
|
|
@@ -13492,16 +13340,16 @@
|
|
|
13492
13340
|
"kind": "js",
|
|
13493
13341
|
"name": "default",
|
|
13494
13342
|
"declaration": {
|
|
13495
|
-
"name": "
|
|
13496
|
-
"module": "src/
|
|
13343
|
+
"name": "TabPanel",
|
|
13344
|
+
"module": "src/tab-panel/TabPanel.ts"
|
|
13497
13345
|
}
|
|
13498
13346
|
},
|
|
13499
13347
|
{
|
|
13500
13348
|
"kind": "custom-element-definition",
|
|
13501
|
-
"name": "nord-
|
|
13349
|
+
"name": "nord-tab-panel",
|
|
13502
13350
|
"declaration": {
|
|
13503
|
-
"name": "
|
|
13504
|
-
"module": "src/
|
|
13351
|
+
"name": "TabPanel",
|
|
13352
|
+
"module": "src/tab-panel/TabPanel.ts"
|
|
13505
13353
|
}
|
|
13506
13354
|
}
|
|
13507
13355
|
]
|
|
@@ -14367,6 +14215,158 @@
|
|
|
14367
14215
|
}
|
|
14368
14216
|
]
|
|
14369
14217
|
},
|
|
14218
|
+
{
|
|
14219
|
+
"kind": "javascript-module",
|
|
14220
|
+
"path": "src/table/Table.ts",
|
|
14221
|
+
"declarations": [
|
|
14222
|
+
{
|
|
14223
|
+
"kind": "class",
|
|
14224
|
+
"description": "Table is used to organize and display information from a data set.\nProvides table styles in addition to features like sticky\nheaders and support for narrow viewports.",
|
|
14225
|
+
"name": "Table",
|
|
14226
|
+
"cssProperties": [
|
|
14227
|
+
{
|
|
14228
|
+
"description": "Controls the padding around the table cells.",
|
|
14229
|
+
"name": "--n-table-td-padding",
|
|
14230
|
+
"default": "calc(var(--n-space-m) * 0.95)"
|
|
14231
|
+
},
|
|
14232
|
+
{
|
|
14233
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
14234
|
+
"name": "--n-table-border-radius",
|
|
14235
|
+
"default": "var(--n-border-radius-s)"
|
|
14236
|
+
}
|
|
14237
|
+
],
|
|
14238
|
+
"slots": [
|
|
14239
|
+
{
|
|
14240
|
+
"description": "Default slot which holds the HTML `<table>` element.",
|
|
14241
|
+
"name": ""
|
|
14242
|
+
}
|
|
14243
|
+
],
|
|
14244
|
+
"members": [
|
|
14245
|
+
{
|
|
14246
|
+
"kind": "field",
|
|
14247
|
+
"name": "density",
|
|
14248
|
+
"type": {
|
|
14249
|
+
"text": "\"condensed\" | \"default\" | \"relaxed\""
|
|
14250
|
+
},
|
|
14251
|
+
"default": "\"default\"",
|
|
14252
|
+
"description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
|
|
14253
|
+
"attribute": "density",
|
|
14254
|
+
"reflects": true
|
|
14255
|
+
},
|
|
14256
|
+
{
|
|
14257
|
+
"kind": "field",
|
|
14258
|
+
"name": "scrollSnap",
|
|
14259
|
+
"type": {
|
|
14260
|
+
"text": "boolean"
|
|
14261
|
+
},
|
|
14262
|
+
"default": "false",
|
|
14263
|
+
"description": "Enables scroll-snapping, meaning the scroll position is always column-aligned.",
|
|
14264
|
+
"attribute": "scroll-snap",
|
|
14265
|
+
"reflects": true
|
|
14266
|
+
},
|
|
14267
|
+
{
|
|
14268
|
+
"kind": "field",
|
|
14269
|
+
"name": "striped",
|
|
14270
|
+
"type": {
|
|
14271
|
+
"text": "boolean"
|
|
14272
|
+
},
|
|
14273
|
+
"default": "false",
|
|
14274
|
+
"description": "Controls whether to use zebra striping on tables, which can improve readability.",
|
|
14275
|
+
"attribute": "striped",
|
|
14276
|
+
"reflects": true
|
|
14277
|
+
},
|
|
14278
|
+
{
|
|
14279
|
+
"kind": "method",
|
|
14280
|
+
"name": "renderStyles",
|
|
14281
|
+
"privacy": "private",
|
|
14282
|
+
"description": "renders table styles into nearest root.\nthis is necessary since we do not use shadow dom."
|
|
14283
|
+
},
|
|
14284
|
+
{
|
|
14285
|
+
"kind": "method",
|
|
14286
|
+
"name": "createRenderRoot",
|
|
14287
|
+
"privacy": "protected",
|
|
14288
|
+
"description": "opt out of shadow dom"
|
|
14289
|
+
}
|
|
14290
|
+
],
|
|
14291
|
+
"attributes": [
|
|
14292
|
+
{
|
|
14293
|
+
"name": "density",
|
|
14294
|
+
"type": {
|
|
14295
|
+
"text": "\"condensed\" | \"default\" | \"relaxed\""
|
|
14296
|
+
},
|
|
14297
|
+
"default": "\"default\"",
|
|
14298
|
+
"description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
|
|
14299
|
+
"fieldName": "density"
|
|
14300
|
+
},
|
|
14301
|
+
{
|
|
14302
|
+
"name": "scroll-snap",
|
|
14303
|
+
"type": {
|
|
14304
|
+
"text": "boolean"
|
|
14305
|
+
},
|
|
14306
|
+
"default": "false",
|
|
14307
|
+
"description": "Enables scroll-snapping, meaning the scroll position is always column-aligned.",
|
|
14308
|
+
"fieldName": "scrollSnap"
|
|
14309
|
+
},
|
|
14310
|
+
{
|
|
14311
|
+
"name": "striped",
|
|
14312
|
+
"type": {
|
|
14313
|
+
"text": "boolean"
|
|
14314
|
+
},
|
|
14315
|
+
"default": "false",
|
|
14316
|
+
"description": "Controls whether to use zebra striping on tables, which can improve readability.",
|
|
14317
|
+
"fieldName": "striped"
|
|
14318
|
+
}
|
|
14319
|
+
],
|
|
14320
|
+
"superclass": {
|
|
14321
|
+
"name": "LitElement",
|
|
14322
|
+
"package": "lit"
|
|
14323
|
+
},
|
|
14324
|
+
"localization": [],
|
|
14325
|
+
"status": "ready",
|
|
14326
|
+
"category": "list",
|
|
14327
|
+
"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 when you need to display tabular data in a view.\n- Use a `<table>` element directly within the component.\n- Use inside a [Card](/components/card/?example=with+table), and give the card a header.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use to display list data.\n- Don’t use to display basic key and value pairs, consider a [description list](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl) instead.\n- Don’t use tables for layout.\n- Don't use a primary button in every row of a table.\n\n</div>\n\n---\n\n## Content guidelines\n\nHeaders in a table should be clear, accurate and predictable. When writing headers, 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\">User account</div>\n<div class=\"n-usage n-usage-dont\">User Account</div>\n\nInclude units of measurement symbols in the table header so they aren’t repeated throughout every single column:\n\n<div class=\"n-usage n-usage-do\">Temperature °C</div>\n<div class=\"n-usage n-usage-dont\">Temperature</div>\n\nAvoid unnecessary words and articles in table headers, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Description</div>\n<div class=\"n-usage n-usage-dont\">A description</div>\n\nKeep decimals consistent. For example, don’t use 3 decimals in one row and 2 in others:\n\n<div class=\"n-usage n-usage-do\">30.00<br/>25.00</div>\n<div class=\"n-usage n-usage-dont\">30.000<br/>25.0</div>\n\n---\n\n## Additional considerations\n\n- Nord’s table component acts as a lightweight and un-opinionated _wrapper_ component for enhancing tabular data. It is up to the user of this component to make sure that the table markup they use is accessible.\n- Despite the name the Nord table component does not supplement the HTML `<table>` element. Please ensure that a `<table>` element is a direct descendant of the table component.\n- It’s important to pay close attention to semantics when authoring tables. The markup in the examples can be used as a starting point. However, be aware that [HTML tables have a large feature set](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table) which cannot be fully covered in this documentation.\n- When making adjustments to table columns such as width, color, alignment and other styles please consider using the HTML `<col>` and `<colgroup>` elements for applying them. Further information on the `<col>` and `<colgroup>` elements can be [found in the MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col).\n\n---\n\n## Advanced use-cases\n\nThe table component itself does not provide any functionality, only styles. This works well for simple or static tables, but there are instances where functionality such as sorting, resizing, or column dragging are required. This kind of functionality is out of scope for the table component, as the spectrum of possible use-cases is too broad for a single component to cover effectively. Whilst the table component is limited out of the box, these same limitations make it easy to integrate with third-party libraries which offer advanced functionality.\n\nBroadly speaking, there are two categories of library for building advanced tables: _headless_ and _component-based_.\n\n### Which kind of table library should I use?\n\nEach approach has subtle tradeoffs. Understanding these subtleties will help you make the right decision for your application and team.\n\n#### Component-based Table Libraries\n\nComponent-based table libraries will typically supply you with a feature-rich drop-in solution, and ready-to-use components/markup complete with styles/theming.\n\n**Pros:**\n\n- Ship with ready-to-use markup/styles.\n- Little setup required.\n- Turn-key experience.\n\n**Cons:**\n\n- Less control over markup.\n- Custom styles are typically theme-based.\n- Larger bundle-sizes.\n\nIf you want a ready-to-use table and design/bundle-size are not hard requirements, then you should consider using a component-based table library.\n\n#### Headless Table Libraries\n\nHeadless table libraries will typically supply you with functions, state, utilities and event listeners to build your own table markup or attach to existing table markups.\n\n**Pros:**\n\n- Full control over markup and styles.\n- Supports all styling patterns (CSS, CSS-in-JS, UI libraries, etc).\n- Smaller bundle-sizes.\n\n**Cons:**\n\n- More setup and effort required.\n- No markup, styles or themes provided.\n\nIf you want a lighter-weight table or full control over the design, then you should consider using a headless table library.\n\n### Recommendation for headless libraries\n\nIn the headless category, we recommend [Tanstack Table](https://tanstack.com/table/). Tanstack table offers integrations for many UI frameworks, such as Vue and React. It is easy to work with, and because it does not bring any HTML or styles itself, you can use it to render a plain, semantic `<table>` wrapped in a `<nord-table>`, and you will get all the necessary styles.\n\nWe have created examples in both Vue and React, showing how to combine Tanstack table with Nord's table component, in order to build a table with both sorting and resizable columns. Check out the [React example](/components/table/?example=with+react+and+tanstack+table) and likewise the [Vue example](/components/table/?example=with+vue+and+tanstack+table).\n\n<nord-stack direction=\"horizontal\" class=\"n-margin-bs-l\">\n <nord-button href=\"https://github.com/nordhealth/advanced-table-examples/tree/main/nord-react-tanstack-table\" target=\"_blank\">\n <nord-icon name=\"generic-github\" size=\"s\" slot=\"start\"></nord-icon>\n React / Tanstack table source\n </nord-button>\n <nord-button href=\"https://github.com/nordhealth/advanced-table-examples/tree/main/nord-vue-tanstack-table\" target=\"_blank\">\n <nord-icon name=\"generic-github\" size=\"s\" slot=\"start\"></nord-icon>\n Vue / Tanstack table source\n </nord-button>\n</nord-stack>\n\n### Recommendation for component-based libraries\n\nIn the component-based category, we recommend [AG Grid](https://www.ag-grid.com/), specifically the community edition. AG Grid is feature-rich, has extensive documentation, and offers integrations for many UI frameworks, such as Vue and React. AG Grid takes control of all rendering and output, but offers extension points for taking control of some aspects. It does not output a `<table>` element, so it cannot be used with Nord's own table component.\n\nHowever it can be styled via themes, and we have created a Nord theme using our design tokens. The theme is published on npm as `@nordhealth/ag-theme-nord`. To use the theme, include the CSS in your project and add the class `ag-theme-nord` to the element wrapping AG Grid.\n\nWe have created examples in both Vue and React showing how to combine AG Grid with Nord's theme, in order to build a table with sorting, resizable columns, draggable and re-orderable columns, plus sticky/pinned columns. Check out the [React example](/components/table/?example=with+react+and+ag+grid) and likewise the [Vue example](/components/table/?example=with+vue+and+ag+grid).\n\n<nord-stack direction=\"horizontal\" class=\"n-margin-bs-l n-margin-be-s\">\n <nord-button href=\"https://github.com/nordhealth/advanced-table-examples/tree/main/nord-react-ag-grid\" target=\"_blank\">\n <nord-icon name=\"generic-github\" size=\"s\" slot=\"start\"></nord-icon>\n React / AG Grid table source\n </nord-button>\n <nord-button href=\"https://github.com/nordhealth/advanced-table-examples/tree/main/nord-vue-ag-grid\" target=\"_blank\">\n <nord-icon name=\"generic-github\" size=\"s\" slot=\"start\"></nord-icon>\n Vue / AG Grid table source\n </nord-button>\n</nord-stack>\n",
|
|
14328
|
+
"examples": [
|
|
14329
|
+
{
|
|
14330
|
+
"url": "https://stackblitz.com/github/nordhealth/advanced-table-examples/tree/main/nord-react-tanstack-table?embed=1&file=src/DataTable/DataTable.tsx&hideNavigation=1&view=preview",
|
|
14331
|
+
"name": "with react and tanstack table"
|
|
14332
|
+
},
|
|
14333
|
+
{
|
|
14334
|
+
"url": "https://stackblitz.com/github/nordhealth/advanced-table-examples/tree/main/nord-react-ag-grid?embed=1&file=src/DataTable/DataTable.tsx&hideNavigation=1&view=preview",
|
|
14335
|
+
"name": "with react and ag grid"
|
|
14336
|
+
},
|
|
14337
|
+
{
|
|
14338
|
+
"url": "https://stackblitz.com/github/nordhealth/advanced-table-examples/tree/main/nord-vue-tanstack-table?embed=1&file=src/components/DataTable/DataTable.vue&hideNavigation=1&view=preview",
|
|
14339
|
+
"name": "with vue and tanstack table"
|
|
14340
|
+
},
|
|
14341
|
+
{
|
|
14342
|
+
"url": "https://stackblitz.com/github/nordhealth/advanced-table-examples/tree/main/nord-vue-ag-grid?embed=1&file=src/components/DataTable/DataTable.vue&hideNavigation=1&view=preview",
|
|
14343
|
+
"name": "with vue and ag grid"
|
|
14344
|
+
}
|
|
14345
|
+
],
|
|
14346
|
+
"dependencies": [],
|
|
14347
|
+
"tagName": "nord-table",
|
|
14348
|
+
"customElement": true
|
|
14349
|
+
}
|
|
14350
|
+
],
|
|
14351
|
+
"exports": [
|
|
14352
|
+
{
|
|
14353
|
+
"kind": "js",
|
|
14354
|
+
"name": "default",
|
|
14355
|
+
"declaration": {
|
|
14356
|
+
"name": "Table",
|
|
14357
|
+
"module": "src/table/Table.ts"
|
|
14358
|
+
}
|
|
14359
|
+
},
|
|
14360
|
+
{
|
|
14361
|
+
"kind": "custom-element-definition",
|
|
14362
|
+
"name": "nord-table",
|
|
14363
|
+
"declaration": {
|
|
14364
|
+
"name": "Table",
|
|
14365
|
+
"module": "src/table/Table.ts"
|
|
14366
|
+
}
|
|
14367
|
+
}
|
|
14368
|
+
]
|
|
14369
|
+
},
|
|
14370
14370
|
{
|
|
14371
14371
|
"kind": "javascript-module",
|
|
14372
14372
|
"path": "src/toast/Toast.ts",
|