@nordhealth/components 3.6.1 → 3.7.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 +360 -354
- package/lib/AutocompleteMixin-5a7e10b2.js +2 -0
- package/lib/{AutocompleteMixin-60503685.js.map → AutocompleteMixin-5a7e10b2.js.map} +1 -1
- package/lib/Avatar.js +1 -1
- package/lib/Avatar.js.map +1 -1
- package/lib/Badge.js +1 -1
- package/lib/Badge.js.map +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/ButtonGroup.js.map +1 -1
- package/lib/{Calendar-c68fd0d2.js → Calendar-38b5ce2b.js} +2 -2
- package/lib/{Calendar-c68fd0d2.js.map → Calendar-38b5ce2b.js.map} +1 -1
- package/lib/Calendar.js +1 -1
- package/lib/Card.js +1 -1
- package/lib/Card.js.map +1 -1
- package/lib/Checkbox.js +1 -1
- package/lib/Checkbox.js.map +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-253ecb24.js → Component-2253424f.js} +2 -2
- package/lib/Component-2253424f.js.map +1 -0
- package/lib/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/DateSelectEvent.js.map +1 -1
- package/lib/DirectionController-f35f5476.js.map +1 -1
- package/lib/Divider.js +1 -1
- package/lib/Divider.js.map +1 -1
- package/lib/DraftComponentMixin-9e4b7b34.js.map +1 -1
- package/lib/Drawer.js +1 -1
- package/lib/Drawer.js.map +1 -1
- package/lib/Dropdown.js +1 -1
- package/lib/Dropdown.js.map +1 -1
- package/lib/DropdownGroup.js +1 -1
- package/lib/DropdownGroup.js.map +1 -1
- package/lib/{DropdownItem-397cd757.js → DropdownItem-588f5a6b.js} +2 -2
- package/lib/DropdownItem-588f5a6b.js.map +1 -0
- package/lib/DropdownItem.js +1 -1
- package/lib/DropdownItem.js.map +1 -1
- package/lib/EmptyState.js +1 -1
- package/lib/EmptyState.js.map +1 -1
- package/lib/EventController-d99ebeef.js.map +1 -1
- package/lib/Fieldset.js +1 -1
- package/lib/Fieldset.js.map +1 -1
- package/lib/{FocusableMixin-003e1094.js → FocusableMixin-d30213b4.js} +2 -2
- package/lib/{FocusableMixin-003e1094.js.map → FocusableMixin-d30213b4.js.map} +1 -1
- package/lib/{FormAssociatedMixin-0638b151.js → FormAssociatedMixin-a278fda4.js} +2 -2
- package/lib/{FormAssociatedMixin-0638b151.js.map → FormAssociatedMixin-a278fda4.js.map} +1 -1
- package/lib/{FormField-0783cb5a.js → FormField-87551be2.js} +2 -2
- package/lib/FormField-87551be2.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Header.js.map +1 -1
- package/lib/Icon.js +1 -1
- package/lib/Icon.js.map +1 -1
- package/lib/IconManager.js +1 -1
- package/lib/IconManager.js.map +1 -1
- package/lib/Input.js +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/{InputMixin-87012c5a.js → InputMixin-83b5bd46.js} +2 -2
- package/lib/{InputMixin-87012c5a.js.map → InputMixin-83b5bd46.js.map} +1 -1
- package/lib/KeyboardController.js.map +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/LightDismissController-a2645ae6.js.map +1 -1
- package/lib/{LightDomController-2b7e42a2.js → LightDomController-5388d84c.js} +2 -2
- package/lib/{LightDomController-2b7e42a2.js.map → LightDomController-5388d84c.js.map} +1 -1
- package/lib/LocalizeController.js.map +1 -1
- package/lib/Message.js +1 -1
- package/lib/Message.js.map +1 -1
- package/lib/Modal.js +1 -1
- package/lib/Modal.js.map +1 -1
- package/lib/ModalController.js.map +1 -1
- package/lib/NavGroup.js +1 -1
- package/lib/NavGroup.js.map +1 -1
- package/lib/NavItem.js +1 -1
- package/lib/NavItem.js.map +1 -1
- package/lib/{NavToggle-d39f3c6d.js → NavToggle-cb2c3648.js} +2 -2
- package/lib/{NavToggle-d39f3c6d.js.map → NavToggle-cb2c3648.js.map} +1 -1
- package/lib/NavToggle.js +1 -1
- package/lib/Navigation.js +1 -1
- package/lib/Navigation.js.map +1 -1
- package/lib/Notification.js +1 -1
- package/lib/Notification.js.map +1 -1
- package/lib/NotificationGroup.js +1 -1
- package/lib/NotificationGroup.js.map +1 -1
- package/lib/{NotificationMixin-cea138a7.js → NotificationMixin-207f1f56.js} +2 -2
- package/lib/{NotificationMixin-cea138a7.js.map → NotificationMixin-207f1f56.js.map} +1 -1
- package/lib/Popout-2220e77b.js +2 -0
- package/lib/{Popout-1183c22b.js.map → Popout-2220e77b.js.map} +1 -1
- package/lib/Popout.js +1 -1
- package/lib/ProgressBar.js +1 -1
- package/lib/ProgressBar.js.map +1 -1
- package/lib/Qrcode.js +1 -1
- package/lib/Qrcode.js.map +1 -1
- package/lib/Radio.js +1 -1
- package/lib/Radio.js.map +1 -1
- package/lib/Range.js +1 -1
- package/lib/Range.js.map +1 -1
- package/lib/ScrollbarController-773c79f4.js.map +1 -1
- package/lib/Select.js +1 -1
- package/lib/Select.js.map +1 -1
- package/lib/SelectEvent.js.map +1 -1
- package/lib/ShortcutController-87615e31.js.map +1 -1
- package/lib/SizeMixin-ab074eff.js +2 -0
- package/lib/{SizeMixin-bc2098f4.js.map → SizeMixin-ab074eff.js.map} +1 -1
- package/lib/Skeleton.js +1 -1
- package/lib/Skeleton.js.map +1 -1
- package/lib/SlotController-d733c575.js.map +1 -1
- package/lib/Spinner.js +1 -1
- package/lib/Spinner.js.map +1 -1
- package/lib/Stack.js +1 -1
- package/lib/Stack.js.map +1 -1
- package/lib/{Sticky-220280e0.js → Sticky-c34c9b12.js} +2 -2
- package/lib/Sticky-c34c9b12.js.map +1 -0
- package/lib/Tab.js +1 -1
- package/lib/Tab.js.map +1 -1
- package/lib/TabGroup.js +1 -1
- package/lib/TabGroup.js.map +1 -1
- package/lib/TabPanel.js +1 -1
- package/lib/TabPanel.js.map +1 -1
- package/lib/Table.js +1 -1
- package/lib/Table.js.map +1 -1
- package/lib/{TextField-b455a6dd.js → TextField-2d778949.js} +2 -2
- package/lib/{TextField-b455a6dd.js.map → TextField-2d778949.js.map} +1 -1
- package/lib/Textarea.js +1 -1
- package/lib/Textarea.js.map +1 -1
- package/lib/Toast.js +1 -1
- package/lib/Toast.js.map +1 -1
- package/lib/ToastGroup.js +1 -1
- package/lib/ToastGroup.js.map +1 -1
- package/lib/Toggle.js +1 -1
- package/lib/Toggle.js.map +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/Tooltip.js.map +1 -1
- package/lib/TopBar.js +1 -1
- package/lib/TopBar.js.map +1 -1
- package/lib/VisuallyHidden.js +1 -1
- package/lib/VisuallyHidden.js.map +1 -1
- package/lib/bundle.js +35 -18
- package/lib/bundle.js.map +1 -1
- package/lib/{class-map-4a0dec4a.js → class-map-512f0bc1.js} +2 -2
- package/lib/class-map-512f0bc1.js.map +1 -0
- package/lib/collection-511dcfac.js +7 -0
- package/lib/collection-511dcfac.js.map +1 -0
- package/lib/cond-bb9ee891.js +2 -0
- package/lib/{cond-77258def.js.map → cond-bb9ee891.js.map} +1 -1
- package/lib/{directive-de55b00a.js → directive-e9ce14b4.js} +1 -1
- package/lib/directive-e9ce14b4.js.map +1 -0
- package/lib/events-d9666e88.js.map +1 -1
- package/lib/{if-defined-10508457.js → if-defined-cccde88f.js} +2 -2
- package/lib/if-defined-cccde88f.js.map +1 -0
- package/lib/index.js +1 -1
- package/lib/observe-a9c6dfb6.js.map +1 -1
- package/lib/positioning-2346bdd6.js +2 -0
- package/lib/positioning-2346bdd6.js.map +1 -0
- package/lib/{property-03f59dce.js → property-c78323b1.js} +2 -2
- package/lib/property-c78323b1.js.map +1 -0
- package/lib/{query-2d22378e.js → query-36bfe0e4.js} +1 -1
- package/lib/query-36bfe0e4.js.map +1 -0
- package/lib/query-assigned-elements-92ce7494.js +51 -0
- package/lib/query-assigned-elements-92ce7494.js.map +1 -0
- package/lib/{ref-f75a30b7.js → ref-99418ab4.js} +4 -4
- package/lib/ref-99418ab4.js.map +1 -0
- package/lib/src/avatar/Avatar.d.ts +3 -3
- package/lib/src/badge/Badge.d.ts +1 -1
- package/lib/src/banner/Banner.d.ts +1 -1
- package/lib/src/button-group/ButtonGroup.d.ts +2 -1
- package/lib/src/calendar/Calendar.d.ts +1 -1
- package/lib/src/card/Card.d.ts +1 -1
- package/lib/src/checkbox/Checkbox.d.ts +1 -1
- package/lib/src/command-menu/CommandMenu.d.ts +1 -1
- package/lib/src/command-menu/CommandMenuAction.d.ts +1 -1
- package/lib/src/date-picker/DatePicker.d.ts +1 -1
- package/lib/src/drawer/Drawer.d.ts +1 -1
- package/lib/src/dropdown/Dropdown.d.ts +2 -1
- package/lib/src/dropdown-group/DropdownGroup.d.ts +1 -1
- package/lib/src/empty-state/EmptyState.d.ts +1 -1
- package/lib/src/fieldset/Fieldset.d.ts +1 -1
- package/lib/src/header/Header.d.ts +1 -1
- package/lib/src/icon/Icon.d.ts +1 -1
- package/lib/src/input/Input.d.ts +1 -1
- package/lib/src/layout/Layout.d.ts +1 -1
- package/lib/src/modal/Modal.d.ts +2 -1
- package/lib/src/nav-group/NavGroup.d.ts +1 -1
- package/lib/src/nav-toggle/NavToggle.d.ts +1 -1
- package/lib/src/navigation/Navigation.d.ts +1 -1
- package/lib/src/notification/Notification.d.ts +1 -1
- package/lib/src/notification-group/NotificationGroup.d.ts +1 -1
- package/lib/src/popout/Popout.d.ts +1 -1
- package/lib/src/progress-bar/ProgressBar.d.ts +1 -1
- package/lib/src/qrcode/Qrcode.d.ts +1 -1
- package/lib/src/radio/Radio.d.ts +1 -1
- package/lib/src/range/Range.d.ts +1 -1
- package/lib/src/select/Select.d.ts +1 -1
- package/lib/src/skeleton/Skeleton.d.ts +1 -1
- package/lib/src/spinner/Spinner.d.ts +1 -1
- package/lib/src/stack/Stack.d.ts +1 -1
- package/lib/src/tab/Tab.d.ts +1 -1
- package/lib/src/tab-group/TabGroup.d.ts +1 -1
- package/lib/src/tab-panel/TabPanel.d.ts +1 -1
- package/lib/src/textarea/Textarea.d.ts +1 -1
- package/lib/src/toast/Toast.d.ts +1 -1
- package/lib/src/toast-group/ToastGroup.d.ts +1 -1
- package/lib/src/toggle/Toggle.d.ts +1 -1
- package/lib/src/tooltip/Tooltip.d.ts +1 -1
- package/lib/src/top-bar/TopBar.d.ts +1 -1
- package/lib/src/visually-hidden/VisuallyHidden.d.ts +1 -1
- package/lib/{state-70f38ceb.js → state-d31c6912.js} +2 -2
- package/lib/state-d31c6912.js.map +1 -0
- package/lib/style-map-f8a1c8d5.js +7 -0
- package/lib/style-map-f8a1c8d5.js.map +1 -0
- package/package.json +3 -3
- package/lib/AutocompleteMixin-60503685.js +0 -2
- package/lib/Component-253ecb24.js.map +0 -1
- package/lib/DropdownItem-397cd757.js.map +0 -1
- package/lib/FormField-0783cb5a.js.map +0 -1
- package/lib/Popout-1183c22b.js +0 -2
- package/lib/SizeMixin-bc2098f4.js +0 -2
- package/lib/Sticky-220280e0.js.map +0 -1
- package/lib/class-map-4a0dec4a.js.map +0 -1
- package/lib/collection-bba319d3.js +0 -7
- package/lib/collection-bba319d3.js.map +0 -1
- package/lib/cond-77258def.js +0 -2
- package/lib/directive-de55b00a.js.map +0 -1
- package/lib/if-defined-10508457.js.map +0 -1
- package/lib/positioning-a572d126.js +0 -2
- package/lib/positioning-a572d126.js.map +0 -1
- package/lib/property-03f59dce.js.map +0 -1
- package/lib/query-2d22378e.js.map +0 -1
- package/lib/query-assigned-elements-2f8275b7.js +0 -34
- package/lib/query-assigned-elements-2f8275b7.js.map +0 -1
- package/lib/ref-f75a30b7.js.map +0 -1
- package/lib/state-70f38ceb.js.map +0 -1
- package/lib/style-map-75ce20b3.js +0 -7
- package/lib/style-map-75ce20b3.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -628,6 +628,119 @@
|
|
|
628
628
|
}
|
|
629
629
|
]
|
|
630
630
|
},
|
|
631
|
+
{
|
|
632
|
+
"kind": "javascript-module",
|
|
633
|
+
"path": "src/badge/Badge.ts",
|
|
634
|
+
"declarations": [
|
|
635
|
+
{
|
|
636
|
+
"kind": "class",
|
|
637
|
+
"description": "Badges are used to inform users of the status of an object\nor of an action that’s been taken. Commonly used in tabular\ndata to indicate status.",
|
|
638
|
+
"name": "Badge",
|
|
639
|
+
"slots": [
|
|
640
|
+
{
|
|
641
|
+
"description": "The badge content.",
|
|
642
|
+
"name": ""
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"description": "Used to place an icon at the start of badge.",
|
|
646
|
+
"name": "icon"
|
|
647
|
+
}
|
|
648
|
+
],
|
|
649
|
+
"members": [
|
|
650
|
+
{
|
|
651
|
+
"kind": "field",
|
|
652
|
+
"name": "type",
|
|
653
|
+
"type": {
|
|
654
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
655
|
+
},
|
|
656
|
+
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
657
|
+
"deprecated": "Use `variant` instead. If you previously used `\"progress\"`, use `\"info\"` instead.",
|
|
658
|
+
"attribute": "type",
|
|
659
|
+
"reflects": true
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"kind": "field",
|
|
663
|
+
"name": "variant",
|
|
664
|
+
"type": {
|
|
665
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"neutral\" | \"info\" | undefined"
|
|
666
|
+
},
|
|
667
|
+
"description": "The style variant of the badge.\nDetermines the background color of the badge.",
|
|
668
|
+
"attribute": "variant",
|
|
669
|
+
"reflects": true
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"kind": "field",
|
|
673
|
+
"name": "strong",
|
|
674
|
+
"type": {
|
|
675
|
+
"text": "boolean"
|
|
676
|
+
},
|
|
677
|
+
"default": "false",
|
|
678
|
+
"description": "Strong badges are a secondary style for badges.\nThey provide more visual prominence and emphasize them.",
|
|
679
|
+
"attribute": "strong",
|
|
680
|
+
"reflects": true
|
|
681
|
+
}
|
|
682
|
+
],
|
|
683
|
+
"attributes": [
|
|
684
|
+
{
|
|
685
|
+
"name": "type",
|
|
686
|
+
"type": {
|
|
687
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
688
|
+
},
|
|
689
|
+
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
690
|
+
"deprecated": "Use `variant` instead. If you previously used `\"progress\"`, use `\"info\"` instead.",
|
|
691
|
+
"fieldName": "type"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"name": "variant",
|
|
695
|
+
"type": {
|
|
696
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"neutral\" | \"info\" | undefined"
|
|
697
|
+
},
|
|
698
|
+
"description": "The style variant of the badge.\nDetermines the background color of the badge.",
|
|
699
|
+
"fieldName": "variant"
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"name": "strong",
|
|
703
|
+
"type": {
|
|
704
|
+
"text": "boolean"
|
|
705
|
+
},
|
|
706
|
+
"default": "false",
|
|
707
|
+
"description": "Strong badges are a secondary style for badges.\nThey provide more visual prominence and emphasize them.",
|
|
708
|
+
"fieldName": "strong"
|
|
709
|
+
}
|
|
710
|
+
],
|
|
711
|
+
"superclass": {
|
|
712
|
+
"name": "LitElement",
|
|
713
|
+
"package": "lit"
|
|
714
|
+
},
|
|
715
|
+
"localization": [],
|
|
716
|
+
"status": "ready",
|
|
717
|
+
"category": "text",
|
|
718
|
+
"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 established variants and color patterns so that users can clearly identify the importance level.\n- Use to show a status update on a piece of information or action.\n- Use to mark something as a “draft” or “new”.\n- Use when you want to highlight something that has been added recently.\n- Always position badge so that it’s clear to understand what object it’s related to.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t make badges clickable. Instead use button component’s small variant.\n- Don’t use alternatives to existing badge variants.\n\n</div>\n\n---\n\n## Content guidelines\n\nBadge labels should use a single word to describe the status of an object. Only use two words if you need to describe a complex state:\n\n<div class=\"n-usage n-usage-do\">Complete</div>\n<div class=\"n-usage n-usage-dont\">Action completed</div>\n\nWhen writing badge 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\">Partially refunded</div>\n<div class=\"n-usage n-usage-dont\">Partially Refunded</div>\n\nAvoid unnecessary words and articles in badge labels, such as “is”, “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Pending</div>\n<div class=\"n-usage n-usage-dont\">Item is pending</div>\n\nAlways describe the status in the past tense:\n\n<div class=\"n-usage n-usage-do\">Refunded</div>\n<div class=\"n-usage n-usage-dont\">Refund</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |\n| `neutral` | The default style variant. |\n| `info` | Used to convey general information that isn’t critical. |\n| `success` | Used to convey success states. For example, you might want to show a badge that tells the user a payment was successful. |\n| `highlight` | Used to highlight specific items in the interface, like notifications. |\n| `danger` | Used to communicate problems that have to be resolved so that user can continue forward. Should always be used for highlighting errors. |\n| `warning` | Used to display information that needs a user’s attention attention and may require further steps. |\n| `progress` | Used to convey something that’s in progress. |\n",
|
|
719
|
+
"examples": [],
|
|
720
|
+
"dependencies": [],
|
|
721
|
+
"tagName": "nord-badge",
|
|
722
|
+
"customElement": true
|
|
723
|
+
}
|
|
724
|
+
],
|
|
725
|
+
"exports": [
|
|
726
|
+
{
|
|
727
|
+
"kind": "js",
|
|
728
|
+
"name": "default",
|
|
729
|
+
"declaration": {
|
|
730
|
+
"name": "Badge",
|
|
731
|
+
"module": "src/badge/Badge.ts"
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"kind": "custom-element-definition",
|
|
736
|
+
"name": "nord-badge",
|
|
737
|
+
"declaration": {
|
|
738
|
+
"name": "Badge",
|
|
739
|
+
"module": "src/badge/Badge.ts"
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
]
|
|
743
|
+
},
|
|
631
744
|
{
|
|
632
745
|
"kind": "javascript-module",
|
|
633
746
|
"path": "src/button/Button.ts",
|
|
@@ -1217,119 +1330,6 @@
|
|
|
1217
1330
|
}
|
|
1218
1331
|
]
|
|
1219
1332
|
},
|
|
1220
|
-
{
|
|
1221
|
-
"kind": "javascript-module",
|
|
1222
|
-
"path": "src/badge/Badge.ts",
|
|
1223
|
-
"declarations": [
|
|
1224
|
-
{
|
|
1225
|
-
"kind": "class",
|
|
1226
|
-
"description": "Badges are used to inform users of the status of an object\nor of an action that’s been taken. Commonly used in tabular\ndata to indicate status.",
|
|
1227
|
-
"name": "Badge",
|
|
1228
|
-
"slots": [
|
|
1229
|
-
{
|
|
1230
|
-
"description": "The badge content.",
|
|
1231
|
-
"name": ""
|
|
1232
|
-
},
|
|
1233
|
-
{
|
|
1234
|
-
"description": "Used to place an icon at the start of badge.",
|
|
1235
|
-
"name": "icon"
|
|
1236
|
-
}
|
|
1237
|
-
],
|
|
1238
|
-
"members": [
|
|
1239
|
-
{
|
|
1240
|
-
"kind": "field",
|
|
1241
|
-
"name": "type",
|
|
1242
|
-
"type": {
|
|
1243
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
1244
|
-
},
|
|
1245
|
-
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
1246
|
-
"deprecated": "Use `variant` instead. If you previously used `\"progress\"`, use `\"info\"` instead.",
|
|
1247
|
-
"attribute": "type",
|
|
1248
|
-
"reflects": true
|
|
1249
|
-
},
|
|
1250
|
-
{
|
|
1251
|
-
"kind": "field",
|
|
1252
|
-
"name": "variant",
|
|
1253
|
-
"type": {
|
|
1254
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"neutral\" | \"info\" | undefined"
|
|
1255
|
-
},
|
|
1256
|
-
"description": "The style variant of the badge.\nDetermines the background color of the badge.",
|
|
1257
|
-
"attribute": "variant",
|
|
1258
|
-
"reflects": true
|
|
1259
|
-
},
|
|
1260
|
-
{
|
|
1261
|
-
"kind": "field",
|
|
1262
|
-
"name": "strong",
|
|
1263
|
-
"type": {
|
|
1264
|
-
"text": "boolean"
|
|
1265
|
-
},
|
|
1266
|
-
"default": "false",
|
|
1267
|
-
"description": "Strong badges are a secondary style for badges.\nThey provide more visual prominence and emphasize them.",
|
|
1268
|
-
"attribute": "strong",
|
|
1269
|
-
"reflects": true
|
|
1270
|
-
}
|
|
1271
|
-
],
|
|
1272
|
-
"attributes": [
|
|
1273
|
-
{
|
|
1274
|
-
"name": "type",
|
|
1275
|
-
"type": {
|
|
1276
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
1277
|
-
},
|
|
1278
|
-
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
1279
|
-
"deprecated": "Use `variant` instead. If you previously used `\"progress\"`, use `\"info\"` instead.",
|
|
1280
|
-
"fieldName": "type"
|
|
1281
|
-
},
|
|
1282
|
-
{
|
|
1283
|
-
"name": "variant",
|
|
1284
|
-
"type": {
|
|
1285
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"neutral\" | \"info\" | undefined"
|
|
1286
|
-
},
|
|
1287
|
-
"description": "The style variant of the badge.\nDetermines the background color of the badge.",
|
|
1288
|
-
"fieldName": "variant"
|
|
1289
|
-
},
|
|
1290
|
-
{
|
|
1291
|
-
"name": "strong",
|
|
1292
|
-
"type": {
|
|
1293
|
-
"text": "boolean"
|
|
1294
|
-
},
|
|
1295
|
-
"default": "false",
|
|
1296
|
-
"description": "Strong badges are a secondary style for badges.\nThey provide more visual prominence and emphasize them.",
|
|
1297
|
-
"fieldName": "strong"
|
|
1298
|
-
}
|
|
1299
|
-
],
|
|
1300
|
-
"superclass": {
|
|
1301
|
-
"name": "LitElement",
|
|
1302
|
-
"package": "lit"
|
|
1303
|
-
},
|
|
1304
|
-
"localization": [],
|
|
1305
|
-
"status": "ready",
|
|
1306
|
-
"category": "text",
|
|
1307
|
-
"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 established variants and color patterns so that users can clearly identify the importance level.\n- Use to show a status update on a piece of information or action.\n- Use to mark something as a “draft” or “new”.\n- Use when you want to highlight something that has been added recently.\n- Always position badge so that it’s clear to understand what object it’s related to.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t make badges clickable. Instead use button component’s small variant.\n- Don’t use alternatives to existing badge variants.\n\n</div>\n\n---\n\n## Content guidelines\n\nBadge labels should use a single word to describe the status of an object. Only use two words if you need to describe a complex state:\n\n<div class=\"n-usage n-usage-do\">Complete</div>\n<div class=\"n-usage n-usage-dont\">Action completed</div>\n\nWhen writing badge 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\">Partially refunded</div>\n<div class=\"n-usage n-usage-dont\">Partially Refunded</div>\n\nAvoid unnecessary words and articles in badge labels, such as “is”, “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Pending</div>\n<div class=\"n-usage n-usage-dont\">Item is pending</div>\n\nAlways describe the status in the past tense:\n\n<div class=\"n-usage n-usage-do\">Refunded</div>\n<div class=\"n-usage n-usage-dont\">Refund</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |\n| `neutral` | The default style variant. |\n| `info` | Used to convey general information that isn’t critical. |\n| `success` | Used to convey success states. For example, you might want to show a badge that tells the user a payment was successful. |\n| `highlight` | Used to highlight specific items in the interface, like notifications. |\n| `danger` | Used to communicate problems that have to be resolved so that user can continue forward. Should always be used for highlighting errors. |\n| `warning` | Used to display information that needs a user’s attention attention and may require further steps. |\n| `progress` | Used to convey something that’s in progress. |\n",
|
|
1308
|
-
"examples": [],
|
|
1309
|
-
"dependencies": [],
|
|
1310
|
-
"tagName": "nord-badge",
|
|
1311
|
-
"customElement": true
|
|
1312
|
-
}
|
|
1313
|
-
],
|
|
1314
|
-
"exports": [
|
|
1315
|
-
{
|
|
1316
|
-
"kind": "js",
|
|
1317
|
-
"name": "default",
|
|
1318
|
-
"declaration": {
|
|
1319
|
-
"name": "Badge",
|
|
1320
|
-
"module": "src/badge/Badge.ts"
|
|
1321
|
-
}
|
|
1322
|
-
},
|
|
1323
|
-
{
|
|
1324
|
-
"kind": "custom-element-definition",
|
|
1325
|
-
"name": "nord-badge",
|
|
1326
|
-
"declaration": {
|
|
1327
|
-
"name": "Badge",
|
|
1328
|
-
"module": "src/badge/Badge.ts"
|
|
1329
|
-
}
|
|
1330
|
-
}
|
|
1331
|
-
]
|
|
1332
|
-
},
|
|
1333
1333
|
{
|
|
1334
1334
|
"kind": "javascript-module",
|
|
1335
1335
|
"path": "src/banner/Banner.ts",
|
|
@@ -1920,33 +1920,265 @@
|
|
|
1920
1920
|
},
|
|
1921
1921
|
{
|
|
1922
1922
|
"kind": "javascript-module",
|
|
1923
|
-
"path": "src/
|
|
1923
|
+
"path": "src/button-group/ButtonGroup.ts",
|
|
1924
1924
|
"declarations": [
|
|
1925
1925
|
{
|
|
1926
1926
|
"kind": "class",
|
|
1927
|
-
"description": "
|
|
1928
|
-
"name": "
|
|
1929
|
-
"
|
|
1927
|
+
"description": "Button groups are designed to bring together button controls that are of a similar nature. For example text formatting controls.",
|
|
1928
|
+
"name": "ButtonGroup",
|
|
1929
|
+
"cssProperties": [
|
|
1930
1930
|
{
|
|
1931
|
-
"description": "
|
|
1932
|
-
"name": "
|
|
1931
|
+
"description": "Controls the rounded corners of the button, using [border radius tokens](/tokens/#border-radius).",
|
|
1932
|
+
"name": "--n-button-group-border-radius",
|
|
1933
|
+
"default": "var(--n-border-radius-s)"
|
|
1933
1934
|
},
|
|
1934
1935
|
{
|
|
1935
|
-
"description": "
|
|
1936
|
-
"name": "
|
|
1937
|
-
|
|
1936
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1937
|
+
"name": "--n-button-group-box-shadow",
|
|
1938
|
+
"default": "var(--n-box-shadow)"
|
|
1939
|
+
}
|
|
1940
|
+
],
|
|
1941
|
+
"slots": [
|
|
1938
1942
|
{
|
|
1939
|
-
"description": "
|
|
1940
|
-
"name": "
|
|
1943
|
+
"description": "The button group content",
|
|
1944
|
+
"name": ""
|
|
1941
1945
|
}
|
|
1942
1946
|
],
|
|
1943
1947
|
"members": [
|
|
1944
1948
|
{
|
|
1945
1949
|
"kind": "field",
|
|
1946
|
-
"name": "
|
|
1947
|
-
"privacy": "
|
|
1948
|
-
"
|
|
1949
|
-
|
|
1950
|
+
"name": "dirController",
|
|
1951
|
+
"privacy": "private",
|
|
1952
|
+
"default": "new DirectionController(this)"
|
|
1953
|
+
},
|
|
1954
|
+
{
|
|
1955
|
+
"kind": "field",
|
|
1956
|
+
"name": "direction",
|
|
1957
|
+
"type": {
|
|
1958
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
1959
|
+
},
|
|
1960
|
+
"default": "\"horizontal\"",
|
|
1961
|
+
"description": "The direction of the button group.",
|
|
1962
|
+
"attribute": "direction",
|
|
1963
|
+
"reflects": true
|
|
1964
|
+
},
|
|
1965
|
+
{
|
|
1966
|
+
"kind": "field",
|
|
1967
|
+
"name": "role",
|
|
1968
|
+
"type": {
|
|
1969
|
+
"text": "string"
|
|
1970
|
+
},
|
|
1971
|
+
"default": "\"group\"",
|
|
1972
|
+
"description": "The appropriate role for the containing element.",
|
|
1973
|
+
"attribute": "role",
|
|
1974
|
+
"reflects": true
|
|
1975
|
+
}
|
|
1976
|
+
],
|
|
1977
|
+
"attributes": [
|
|
1978
|
+
{
|
|
1979
|
+
"name": "direction",
|
|
1980
|
+
"type": {
|
|
1981
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
1982
|
+
},
|
|
1983
|
+
"default": "\"horizontal\"",
|
|
1984
|
+
"description": "The direction of the button group.",
|
|
1985
|
+
"fieldName": "direction"
|
|
1986
|
+
},
|
|
1987
|
+
{
|
|
1988
|
+
"name": "role",
|
|
1989
|
+
"type": {
|
|
1990
|
+
"text": "string"
|
|
1991
|
+
},
|
|
1992
|
+
"default": "\"group\"",
|
|
1993
|
+
"description": "The appropriate role for the containing element.",
|
|
1994
|
+
"fieldName": "role"
|
|
1995
|
+
}
|
|
1996
|
+
],
|
|
1997
|
+
"superclass": {
|
|
1998
|
+
"name": "LitElement",
|
|
1999
|
+
"package": "lit"
|
|
2000
|
+
},
|
|
2001
|
+
"localization": [],
|
|
2002
|
+
"status": "new",
|
|
2003
|
+
"category": "structure",
|
|
2004
|
+
"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",
|
|
2005
|
+
"examples": [],
|
|
2006
|
+
"dependencies": [],
|
|
2007
|
+
"tagName": "nord-button-group",
|
|
2008
|
+
"customElement": true
|
|
2009
|
+
}
|
|
2010
|
+
],
|
|
2011
|
+
"exports": [
|
|
2012
|
+
{
|
|
2013
|
+
"kind": "js",
|
|
2014
|
+
"name": "default",
|
|
2015
|
+
"declaration": {
|
|
2016
|
+
"name": "ButtonGroup",
|
|
2017
|
+
"module": "src/button-group/ButtonGroup.ts"
|
|
2018
|
+
}
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
"kind": "custom-element-definition",
|
|
2022
|
+
"name": "nord-button-group",
|
|
2023
|
+
"declaration": {
|
|
2024
|
+
"name": "ButtonGroup",
|
|
2025
|
+
"module": "src/button-group/ButtonGroup.ts"
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
]
|
|
2029
|
+
},
|
|
2030
|
+
{
|
|
2031
|
+
"kind": "javascript-module",
|
|
2032
|
+
"path": "src/card/Card.ts",
|
|
2033
|
+
"declarations": [
|
|
2034
|
+
{
|
|
2035
|
+
"kind": "class",
|
|
2036
|
+
"description": "Cards are shadowed surfaces that display content and actions on a\nsingle topic. They should be easy to scan for relevant and\nactionable information.",
|
|
2037
|
+
"name": "Card",
|
|
2038
|
+
"cssProperties": [
|
|
2039
|
+
{
|
|
2040
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
2041
|
+
"name": "--n-card-border-radius",
|
|
2042
|
+
"default": "var(--n-border-radius)"
|
|
2043
|
+
},
|
|
2044
|
+
{
|
|
2045
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2046
|
+
"name": "--n-card-box-shadow",
|
|
2047
|
+
"default": "var(--n-box-shadow-popout)"
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
"description": "Controls the padding on all sides of the card.",
|
|
2051
|
+
"name": "--n-card-padding",
|
|
2052
|
+
"default": "var(--n-space-m)"
|
|
2053
|
+
},
|
|
2054
|
+
{
|
|
2055
|
+
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
2056
|
+
"name": "--n-card-slot-padding",
|
|
2057
|
+
"default": "var(--n-space-m)"
|
|
2058
|
+
}
|
|
2059
|
+
],
|
|
2060
|
+
"slots": [
|
|
2061
|
+
{
|
|
2062
|
+
"description": "The card content.",
|
|
2063
|
+
"name": ""
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
"description": "Optional slot that holds a header for the card.",
|
|
2067
|
+
"name": "header"
|
|
2068
|
+
},
|
|
2069
|
+
{
|
|
2070
|
+
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
2071
|
+
"name": "header-end"
|
|
2072
|
+
},
|
|
2073
|
+
{
|
|
2074
|
+
"description": "Optional slot that holds footer content for the card.",
|
|
2075
|
+
"name": "footer"
|
|
2076
|
+
}
|
|
2077
|
+
],
|
|
2078
|
+
"members": [
|
|
2079
|
+
{
|
|
2080
|
+
"kind": "field",
|
|
2081
|
+
"name": "headerSlot",
|
|
2082
|
+
"privacy": "private",
|
|
2083
|
+
"default": "new SlotController(this, \"header\")"
|
|
2084
|
+
},
|
|
2085
|
+
{
|
|
2086
|
+
"kind": "field",
|
|
2087
|
+
"name": "headerEndSlot",
|
|
2088
|
+
"privacy": "private",
|
|
2089
|
+
"default": "new SlotController(this, \"header-end\")"
|
|
2090
|
+
},
|
|
2091
|
+
{
|
|
2092
|
+
"kind": "field",
|
|
2093
|
+
"name": "footerSlot",
|
|
2094
|
+
"privacy": "private",
|
|
2095
|
+
"default": "new SlotController(this, \"footer\")"
|
|
2096
|
+
},
|
|
2097
|
+
{
|
|
2098
|
+
"kind": "field",
|
|
2099
|
+
"name": "padding",
|
|
2100
|
+
"type": {
|
|
2101
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
2102
|
+
},
|
|
2103
|
+
"default": "\"m\"",
|
|
2104
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2105
|
+
"attribute": "padding",
|
|
2106
|
+
"reflects": true
|
|
2107
|
+
}
|
|
2108
|
+
],
|
|
2109
|
+
"attributes": [
|
|
2110
|
+
{
|
|
2111
|
+
"name": "padding",
|
|
2112
|
+
"type": {
|
|
2113
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
2114
|
+
},
|
|
2115
|
+
"default": "\"m\"",
|
|
2116
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2117
|
+
"fieldName": "padding"
|
|
2118
|
+
}
|
|
2119
|
+
],
|
|
2120
|
+
"superclass": {
|
|
2121
|
+
"name": "LitElement",
|
|
2122
|
+
"package": "lit"
|
|
2123
|
+
},
|
|
2124
|
+
"localization": [],
|
|
2125
|
+
"status": "ready",
|
|
2126
|
+
"category": "structure",
|
|
2127
|
+
"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 display content and actions on a single topic inside a container.\n- Use to visually separate specific parts of content in an application view.\n- Use to wrap a form into a container, for example a login form.\n- Include a header when placing a [Table](/components/table) component inside the card.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place cards within cards. Consider using the [divider](/components/divider/) component to break up sections instead.\n- Don’t use when you need to capture user’s attention in a prominent way.\n- Don’t use to inform user about important changes or conditions in the interface.\n- Don’t use multiple primary buttons inside a card. A card should only contain a single primary action.\n\n</div>\n",
|
|
2128
|
+
"examples": [],
|
|
2129
|
+
"dependencies": [],
|
|
2130
|
+
"tagName": "nord-card",
|
|
2131
|
+
"customElement": true
|
|
2132
|
+
}
|
|
2133
|
+
],
|
|
2134
|
+
"exports": [
|
|
2135
|
+
{
|
|
2136
|
+
"kind": "js",
|
|
2137
|
+
"name": "default",
|
|
2138
|
+
"declaration": {
|
|
2139
|
+
"name": "Card",
|
|
2140
|
+
"module": "src/card/Card.ts"
|
|
2141
|
+
}
|
|
2142
|
+
},
|
|
2143
|
+
{
|
|
2144
|
+
"kind": "custom-element-definition",
|
|
2145
|
+
"name": "nord-card",
|
|
2146
|
+
"declaration": {
|
|
2147
|
+
"name": "Card",
|
|
2148
|
+
"module": "src/card/Card.ts"
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
]
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
"kind": "javascript-module",
|
|
2155
|
+
"path": "src/checkbox/Checkbox.ts",
|
|
2156
|
+
"declarations": [
|
|
2157
|
+
{
|
|
2158
|
+
"kind": "class",
|
|
2159
|
+
"description": "Checkboxes allow user to choose one or more options from a limited set of options.\nIf you have more than 10 options, please use Select component instead.",
|
|
2160
|
+
"name": "Checkbox",
|
|
2161
|
+
"slots": [
|
|
2162
|
+
{
|
|
2163
|
+
"description": "Use when a label requires more than plain text.",
|
|
2164
|
+
"name": "label"
|
|
2165
|
+
},
|
|
2166
|
+
{
|
|
2167
|
+
"description": "Optional slot that holds hint text for the input.",
|
|
2168
|
+
"name": "hint"
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
"description": "Optional slot that holds error text for the input.",
|
|
2172
|
+
"name": "error"
|
|
2173
|
+
}
|
|
2174
|
+
],
|
|
2175
|
+
"members": [
|
|
2176
|
+
{
|
|
2177
|
+
"kind": "field",
|
|
2178
|
+
"name": "formValue",
|
|
2179
|
+
"privacy": "protected",
|
|
2180
|
+
"readonly": true,
|
|
2181
|
+
"inheritedFrom": {
|
|
1950
2182
|
"name": "FormAssociatedMixin",
|
|
1951
2183
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1952
2184
|
}
|
|
@@ -2639,232 +2871,6 @@
|
|
|
2639
2871
|
}
|
|
2640
2872
|
]
|
|
2641
2873
|
},
|
|
2642
|
-
{
|
|
2643
|
-
"kind": "javascript-module",
|
|
2644
|
-
"path": "src/card/Card.ts",
|
|
2645
|
-
"declarations": [
|
|
2646
|
-
{
|
|
2647
|
-
"kind": "class",
|
|
2648
|
-
"description": "Cards are shadowed surfaces that display content and actions on a\nsingle topic. They should be easy to scan for relevant and\nactionable information.",
|
|
2649
|
-
"name": "Card",
|
|
2650
|
-
"cssProperties": [
|
|
2651
|
-
{
|
|
2652
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
2653
|
-
"name": "--n-card-border-radius",
|
|
2654
|
-
"default": "var(--n-border-radius)"
|
|
2655
|
-
},
|
|
2656
|
-
{
|
|
2657
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2658
|
-
"name": "--n-card-box-shadow",
|
|
2659
|
-
"default": "var(--n-box-shadow-popout)"
|
|
2660
|
-
},
|
|
2661
|
-
{
|
|
2662
|
-
"description": "Controls the padding on all sides of the card.",
|
|
2663
|
-
"name": "--n-card-padding",
|
|
2664
|
-
"default": "var(--n-space-m)"
|
|
2665
|
-
},
|
|
2666
|
-
{
|
|
2667
|
-
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
2668
|
-
"name": "--n-card-slot-padding",
|
|
2669
|
-
"default": "var(--n-space-m)"
|
|
2670
|
-
}
|
|
2671
|
-
],
|
|
2672
|
-
"slots": [
|
|
2673
|
-
{
|
|
2674
|
-
"description": "The card content.",
|
|
2675
|
-
"name": ""
|
|
2676
|
-
},
|
|
2677
|
-
{
|
|
2678
|
-
"description": "Optional slot that holds a header for the card.",
|
|
2679
|
-
"name": "header"
|
|
2680
|
-
},
|
|
2681
|
-
{
|
|
2682
|
-
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
2683
|
-
"name": "header-end"
|
|
2684
|
-
},
|
|
2685
|
-
{
|
|
2686
|
-
"description": "Optional slot that holds footer content for the card.",
|
|
2687
|
-
"name": "footer"
|
|
2688
|
-
}
|
|
2689
|
-
],
|
|
2690
|
-
"members": [
|
|
2691
|
-
{
|
|
2692
|
-
"kind": "field",
|
|
2693
|
-
"name": "headerSlot",
|
|
2694
|
-
"privacy": "private",
|
|
2695
|
-
"default": "new SlotController(this, \"header\")"
|
|
2696
|
-
},
|
|
2697
|
-
{
|
|
2698
|
-
"kind": "field",
|
|
2699
|
-
"name": "headerEndSlot",
|
|
2700
|
-
"privacy": "private",
|
|
2701
|
-
"default": "new SlotController(this, \"header-end\")"
|
|
2702
|
-
},
|
|
2703
|
-
{
|
|
2704
|
-
"kind": "field",
|
|
2705
|
-
"name": "footerSlot",
|
|
2706
|
-
"privacy": "private",
|
|
2707
|
-
"default": "new SlotController(this, \"footer\")"
|
|
2708
|
-
},
|
|
2709
|
-
{
|
|
2710
|
-
"kind": "field",
|
|
2711
|
-
"name": "padding",
|
|
2712
|
-
"type": {
|
|
2713
|
-
"text": "\"m\" | \"l\" | \"none\""
|
|
2714
|
-
},
|
|
2715
|
-
"default": "\"m\"",
|
|
2716
|
-
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2717
|
-
"attribute": "padding",
|
|
2718
|
-
"reflects": true
|
|
2719
|
-
}
|
|
2720
|
-
],
|
|
2721
|
-
"attributes": [
|
|
2722
|
-
{
|
|
2723
|
-
"name": "padding",
|
|
2724
|
-
"type": {
|
|
2725
|
-
"text": "\"m\" | \"l\" | \"none\""
|
|
2726
|
-
},
|
|
2727
|
-
"default": "\"m\"",
|
|
2728
|
-
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2729
|
-
"fieldName": "padding"
|
|
2730
|
-
}
|
|
2731
|
-
],
|
|
2732
|
-
"superclass": {
|
|
2733
|
-
"name": "LitElement",
|
|
2734
|
-
"package": "lit"
|
|
2735
|
-
},
|
|
2736
|
-
"localization": [],
|
|
2737
|
-
"status": "ready",
|
|
2738
|
-
"category": "structure",
|
|
2739
|
-
"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 display content and actions on a single topic inside a container.\n- Use to visually separate specific parts of content in an application view.\n- Use to wrap a form into a container, for example a login form.\n- Include a header when placing a [Table](/components/table) component inside the card.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place cards within cards. Consider using the [divider](/components/divider/) component to break up sections instead.\n- Don’t use when you need to capture user’s attention in a prominent way.\n- Don’t use to inform user about important changes or conditions in the interface.\n- Don’t use multiple primary buttons inside a card. A card should only contain a single primary action.\n\n</div>\n",
|
|
2740
|
-
"examples": [],
|
|
2741
|
-
"dependencies": [],
|
|
2742
|
-
"tagName": "nord-card",
|
|
2743
|
-
"customElement": true
|
|
2744
|
-
}
|
|
2745
|
-
],
|
|
2746
|
-
"exports": [
|
|
2747
|
-
{
|
|
2748
|
-
"kind": "js",
|
|
2749
|
-
"name": "default",
|
|
2750
|
-
"declaration": {
|
|
2751
|
-
"name": "Card",
|
|
2752
|
-
"module": "src/card/Card.ts"
|
|
2753
|
-
}
|
|
2754
|
-
},
|
|
2755
|
-
{
|
|
2756
|
-
"kind": "custom-element-definition",
|
|
2757
|
-
"name": "nord-card",
|
|
2758
|
-
"declaration": {
|
|
2759
|
-
"name": "Card",
|
|
2760
|
-
"module": "src/card/Card.ts"
|
|
2761
|
-
}
|
|
2762
|
-
}
|
|
2763
|
-
]
|
|
2764
|
-
},
|
|
2765
|
-
{
|
|
2766
|
-
"kind": "javascript-module",
|
|
2767
|
-
"path": "src/button-group/ButtonGroup.ts",
|
|
2768
|
-
"declarations": [
|
|
2769
|
-
{
|
|
2770
|
-
"kind": "class",
|
|
2771
|
-
"description": "Button groups are designed to bring together button controls that are of a similar nature. For example text formatting controls.",
|
|
2772
|
-
"name": "ButtonGroup",
|
|
2773
|
-
"cssProperties": [
|
|
2774
|
-
{
|
|
2775
|
-
"description": "Controls the rounded corners of the button, using [border radius tokens](/tokens/#border-radius).",
|
|
2776
|
-
"name": "--n-button-group-border-radius",
|
|
2777
|
-
"default": "var(--n-border-radius-s)"
|
|
2778
|
-
},
|
|
2779
|
-
{
|
|
2780
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2781
|
-
"name": "--n-button-group-box-shadow",
|
|
2782
|
-
"default": "var(--n-box-shadow)"
|
|
2783
|
-
}
|
|
2784
|
-
],
|
|
2785
|
-
"slots": [
|
|
2786
|
-
{
|
|
2787
|
-
"description": "The button group content",
|
|
2788
|
-
"name": ""
|
|
2789
|
-
}
|
|
2790
|
-
],
|
|
2791
|
-
"members": [
|
|
2792
|
-
{
|
|
2793
|
-
"kind": "field",
|
|
2794
|
-
"name": "direction",
|
|
2795
|
-
"type": {
|
|
2796
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
2797
|
-
},
|
|
2798
|
-
"default": "\"horizontal\"",
|
|
2799
|
-
"description": "The direction of the button group.",
|
|
2800
|
-
"attribute": "direction",
|
|
2801
|
-
"reflects": true
|
|
2802
|
-
},
|
|
2803
|
-
{
|
|
2804
|
-
"kind": "field",
|
|
2805
|
-
"name": "role",
|
|
2806
|
-
"type": {
|
|
2807
|
-
"text": "string"
|
|
2808
|
-
},
|
|
2809
|
-
"default": "\"group\"",
|
|
2810
|
-
"description": "The appropriate role for the containing element.",
|
|
2811
|
-
"attribute": "role",
|
|
2812
|
-
"reflects": true
|
|
2813
|
-
}
|
|
2814
|
-
],
|
|
2815
|
-
"attributes": [
|
|
2816
|
-
{
|
|
2817
|
-
"name": "direction",
|
|
2818
|
-
"type": {
|
|
2819
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
2820
|
-
},
|
|
2821
|
-
"default": "\"horizontal\"",
|
|
2822
|
-
"description": "The direction of the button group.",
|
|
2823
|
-
"fieldName": "direction"
|
|
2824
|
-
},
|
|
2825
|
-
{
|
|
2826
|
-
"name": "role",
|
|
2827
|
-
"type": {
|
|
2828
|
-
"text": "string"
|
|
2829
|
-
},
|
|
2830
|
-
"default": "\"group\"",
|
|
2831
|
-
"description": "The appropriate role for the containing element.",
|
|
2832
|
-
"fieldName": "role"
|
|
2833
|
-
}
|
|
2834
|
-
],
|
|
2835
|
-
"superclass": {
|
|
2836
|
-
"name": "LitElement",
|
|
2837
|
-
"package": "lit"
|
|
2838
|
-
},
|
|
2839
|
-
"localization": [],
|
|
2840
|
-
"status": "new",
|
|
2841
|
-
"category": "structure",
|
|
2842
|
-
"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",
|
|
2843
|
-
"examples": [],
|
|
2844
|
-
"dependencies": [],
|
|
2845
|
-
"tagName": "nord-button-group",
|
|
2846
|
-
"customElement": true
|
|
2847
|
-
}
|
|
2848
|
-
],
|
|
2849
|
-
"exports": [
|
|
2850
|
-
{
|
|
2851
|
-
"kind": "js",
|
|
2852
|
-
"name": "default",
|
|
2853
|
-
"declaration": {
|
|
2854
|
-
"name": "ButtonGroup",
|
|
2855
|
-
"module": "src/button-group/ButtonGroup.ts"
|
|
2856
|
-
}
|
|
2857
|
-
},
|
|
2858
|
-
{
|
|
2859
|
-
"kind": "custom-element-definition",
|
|
2860
|
-
"name": "nord-button-group",
|
|
2861
|
-
"declaration": {
|
|
2862
|
-
"name": "ButtonGroup",
|
|
2863
|
-
"module": "src/button-group/ButtonGroup.ts"
|
|
2864
|
-
}
|
|
2865
|
-
}
|
|
2866
|
-
]
|
|
2867
|
-
},
|
|
2868
2874
|
{
|
|
2869
2875
|
"kind": "javascript-module",
|
|
2870
2876
|
"path": "src/command-menu/CommandMenu.ts",
|