@nordhealth/components 3.21.0 → 3.22.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +1717 -1715
- package/lib/AutocompleteMixin-D8eiOxvO.js +2 -0
- package/lib/{AutocompleteMixin-Dk_gVU09.js.map → AutocompleteMixin-D8eiOxvO.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-Cuumq57y.js +2 -0
- package/lib/Calendar-Cuumq57y.js.map +1 -0
- 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-DSU3Qp0O.js +2 -0
- package/lib/Component-DSU3Qp0O.js.map +1 -0
- package/lib/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/DateSelectEvent.js +1 -1
- package/lib/DirectionController-ChvNGESZ.js +2 -0
- package/lib/DirectionController-ChvNGESZ.js.map +1 -0
- package/lib/Divider.js +1 -1
- package/lib/Divider.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-BheCmR9u.js +2 -0
- package/lib/DropdownItem-BheCmR9u.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-BBOmvfLa.js +2 -0
- package/lib/EventController-BBOmvfLa.js.map +1 -0
- package/lib/Fieldset.js +1 -1
- package/lib/Fieldset.js.map +1 -1
- package/lib/FocusableMixin-BlQLNPdJ.js +2 -0
- package/lib/{FocusableMixin-DriuCNli.js.map → FocusableMixin-BlQLNPdJ.js.map} +1 -1
- package/lib/Footer.js +1 -1
- package/lib/Footer.js.map +1 -1
- package/lib/FormAssociatedMixin-DFL7yabe.js +2 -0
- package/lib/{FormAssociatedMixin-DXVeQVgN.js.map → FormAssociatedMixin-DFL7yabe.js.map} +1 -1
- package/lib/FormField-CUC_H-0e.js +2 -0
- package/lib/FormField-CUC_H-0e.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Header.js.map +1 -1
- package/lib/Icon.js +1 -6
- package/lib/Icon.js.map +1 -1
- package/lib/Input.js +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/InputMixin-LetXsCyv.js +2 -0
- package/lib/{InputMixin-B-nPfhjc.js.map → InputMixin-LetXsCyv.js.map} +1 -1
- package/lib/KeyboardController.js +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/{LightDismissController-BBolVMtn.js → LightDismissController-4pH8cdko.js} +2 -2
- package/lib/{LightDismissController-BBolVMtn.js.map → LightDismissController-4pH8cdko.js.map} +1 -1
- package/lib/LightDomController-DIwtVelV.js +2 -0
- package/lib/{LightDomController-BtyFuJKD.js.map → LightDomController-DIwtVelV.js.map} +1 -1
- package/lib/LightSlotController-Coyy4nqS.js +2 -0
- package/lib/LightSlotController-Coyy4nqS.js.map +1 -0
- package/lib/LocalizeController.js +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 +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-D-udBTou.js +2 -0
- package/lib/{NavToggle-BW4ie2pA.js.map → NavToggle-D-udBTou.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-DOUQsx7N.js +2 -0
- package/lib/{NotificationMixin-BMymOlRC.js.map → NotificationMixin-DOUQsx7N.js.map} +1 -1
- package/lib/Popout-5MtZ4gbP.js +2 -0
- package/lib/{Popout-C5zTBGWo.js.map → Popout-5MtZ4gbP.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 +18 -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/SegmentedControl.js +1 -1
- package/lib/SegmentedControl.js.map +1 -1
- package/lib/SegmentedControlItem.js +1 -1
- package/lib/SegmentedControlItem.js.map +1 -1
- package/lib/Select.js +1 -1
- package/lib/Select.js.map +1 -1
- package/lib/ShortcutController-BIb3WGzH.js +2 -0
- package/lib/ShortcutController-BIb3WGzH.js.map +1 -0
- package/lib/SizeMixin-CU9cLbLC.js +2 -0
- package/lib/{SizeMixin-DW6qUBEN.js.map → SizeMixin-CU9cLbLC.js.map} +1 -1
- package/lib/Skeleton.js +1 -1
- package/lib/Skeleton.js.map +1 -1
- package/lib/SlotController-Z6eG7LSZ.js +2 -0
- package/lib/SlotController-Z6eG7LSZ.js.map +1 -0
- 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-DqnqENYN.js +2 -0
- package/lib/Sticky-DqnqENYN.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/Tag.js +1 -1
- package/lib/Tag.js.map +1 -1
- package/lib/TagGroup.js +1 -1
- package/lib/TagGroup.js.map +1 -1
- package/lib/TextField-C5gYzfOp.js +2 -0
- package/lib/{TextField-CmHW8rL5.js.map → TextField-C5gYzfOp.js.map} +1 -1
- package/lib/TextSelectableMixin-Cfv__lHS.js +2 -0
- package/lib/{TextSelectableMixin-B_mtmFv0.js.map → TextSelectableMixin-Cfv__lHS.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 +17 -95
- package/lib/bundle.js.map +1 -1
- package/lib/collection-Dvg2XbxV.js +2 -0
- package/lib/collection-Dvg2XbxV.js.map +1 -0
- package/lib/cond-CI1KbneT.js +2 -0
- package/lib/{cond-Cuc_PMkN.js.map → cond-CI1KbneT.js.map} +1 -1
- package/lib/date-adapter.js +1 -1
- package/lib/index.js +1 -1
- package/lib/positioning-CsfLhMSW.js +2 -0
- package/lib/positioning-CsfLhMSW.js.map +1 -0
- package/lib/src/common/controllers/LightSlotController.d.ts +2 -2
- package/lib/src/common/controllers/ResizeController.d.ts +1 -1
- package/lib/src/common/controllers/ShortcutController.d.ts +2 -2
- package/lib/src/tooltip/Tooltip.d.ts +2 -1
- package/lib/tslib.es6-CmLYFWVC.js +2 -0
- package/lib/tslib.es6-CmLYFWVC.js.map +1 -0
- package/package.json +4 -3
- package/lib/AutocompleteMixin-Dk_gVU09.js +0 -2
- package/lib/Calendar-loNMUV5l.js +0 -2
- package/lib/Calendar-loNMUV5l.js.map +0 -1
- package/lib/Component-BuB0QgQM.js +0 -2
- package/lib/Component-BuB0QgQM.js.map +0 -1
- package/lib/DirectionController-DiJ1Su1I.js +0 -2
- package/lib/DirectionController-DiJ1Su1I.js.map +0 -1
- package/lib/DropdownItem-CPeMIqN8.js +0 -2
- package/lib/DropdownItem-CPeMIqN8.js.map +0 -1
- package/lib/EventController-BG-WpaBb.js +0 -2
- package/lib/EventController-BG-WpaBb.js.map +0 -1
- package/lib/FocusableMixin-DriuCNli.js +0 -2
- package/lib/FormAssociatedMixin-DXVeQVgN.js +0 -2
- package/lib/FormField-Cl7HHI9A.js +0 -2
- package/lib/FormField-Cl7HHI9A.js.map +0 -1
- package/lib/InputMixin-B-nPfhjc.js +0 -2
- package/lib/LightDomController-BtyFuJKD.js +0 -2
- package/lib/LightSlotController-BDkcldj-.js +0 -2
- package/lib/LightSlotController-BDkcldj-.js.map +0 -1
- package/lib/NavToggle-BW4ie2pA.js +0 -2
- package/lib/NotificationMixin-BMymOlRC.js +0 -2
- package/lib/Popout-C5zTBGWo.js +0 -2
- package/lib/ShortcutController-nMRUu6ns.js +0 -2
- package/lib/ShortcutController-nMRUu6ns.js.map +0 -1
- package/lib/SizeMixin-DW6qUBEN.js +0 -2
- package/lib/SlotController-BL-tOh6b.js +0 -2
- package/lib/SlotController-BL-tOh6b.js.map +0 -1
- package/lib/Sticky--4fNQ3K3.js +0 -2
- package/lib/Sticky--4fNQ3K3.js.map +0 -1
- package/lib/TextField-CmHW8rL5.js +0 -2
- package/lib/TextSelectableMixin-B_mtmFv0.js +0 -2
- package/lib/class-map-BQZJmA_8.js +0 -7
- package/lib/class-map-BQZJmA_8.js.map +0 -1
- package/lib/collection-CJHuUy_1.js +0 -7
- package/lib/collection-CJHuUy_1.js.map +0 -1
- package/lib/cond-Cuc_PMkN.js +0 -2
- package/lib/custom-element-CDWT-yC_.js +0 -30
- package/lib/custom-element-CDWT-yC_.js.map +0 -1
- package/lib/directive-DQ0jBES2.js +0 -7
- package/lib/directive-DQ0jBES2.js.map +0 -1
- package/lib/if-defined-C2kZHWU2.js +0 -7
- package/lib/if-defined-C2kZHWU2.js.map +0 -1
- package/lib/positioning-D0xRzCXq.js +0 -2
- package/lib/positioning-D0xRzCXq.js.map +0 -1
- package/lib/property-DeTTNf1t.js +0 -7
- package/lib/property-DeTTNf1t.js.map +0 -1
- package/lib/query-hiZs21fO.js +0 -12
- package/lib/query-hiZs21fO.js.map +0 -1
- package/lib/ref-BYkj-TPb.js +0 -17
- package/lib/ref-BYkj-TPb.js.map +0 -1
- package/lib/state-BFYKuryf.js +0 -7
- package/lib/state-BFYKuryf.js.map +0 -1
- package/lib/style-map-VR90KNpY.js +0 -7
- package/lib/style-map-VR90KNpY.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -1486,161 +1486,6 @@
|
|
|
1486
1486
|
}
|
|
1487
1487
|
]
|
|
1488
1488
|
},
|
|
1489
|
-
{
|
|
1490
|
-
"kind": "javascript-module",
|
|
1491
|
-
"path": "src/button-group/ButtonGroup.ts",
|
|
1492
|
-
"declarations": [
|
|
1493
|
-
{
|
|
1494
|
-
"kind": "class",
|
|
1495
|
-
"description": "Button groups are designed to bring together button controls that are of a similar nature. For example text formatting controls.",
|
|
1496
|
-
"name": "ButtonGroup",
|
|
1497
|
-
"cssProperties": [
|
|
1498
|
-
{
|
|
1499
|
-
"description": "Controls the rounded corners of the button group, using [border radius tokens](/tokens/#border-radius). Only relevant for the default variant.",
|
|
1500
|
-
"name": "--n-button-group-border-radius",
|
|
1501
|
-
"default": "var(--n-border-radius-s)"
|
|
1502
|
-
},
|
|
1503
|
-
{
|
|
1504
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow). Only relevant for the default variant.",
|
|
1505
|
-
"name": "--n-button-group-box-shadow",
|
|
1506
|
-
"default": "var(--n-box-shadow)"
|
|
1507
|
-
}
|
|
1508
|
-
],
|
|
1509
|
-
"slots": [
|
|
1510
|
-
{
|
|
1511
|
-
"description": "The button group content",
|
|
1512
|
-
"name": ""
|
|
1513
|
-
}
|
|
1514
|
-
],
|
|
1515
|
-
"members": [
|
|
1516
|
-
{
|
|
1517
|
-
"kind": "field",
|
|
1518
|
-
"name": "defaultSlot",
|
|
1519
|
-
"privacy": "private",
|
|
1520
|
-
"default": "new SlotController(this)"
|
|
1521
|
-
},
|
|
1522
|
-
{
|
|
1523
|
-
"kind": "field",
|
|
1524
|
-
"name": "dirController",
|
|
1525
|
-
"privacy": "private",
|
|
1526
|
-
"default": "new DirectionController(this)"
|
|
1527
|
-
},
|
|
1528
|
-
{
|
|
1529
|
-
"kind": "field",
|
|
1530
|
-
"name": "variant",
|
|
1531
|
-
"type": {
|
|
1532
|
-
"text": "\"default\" | \"spaced\""
|
|
1533
|
-
},
|
|
1534
|
-
"default": "\"default\"",
|
|
1535
|
-
"description": "The style variant of the button group.",
|
|
1536
|
-
"attribute": "variant",
|
|
1537
|
-
"reflects": true
|
|
1538
|
-
},
|
|
1539
|
-
{
|
|
1540
|
-
"kind": "field",
|
|
1541
|
-
"name": "direction",
|
|
1542
|
-
"type": {
|
|
1543
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
1544
|
-
},
|
|
1545
|
-
"default": "\"horizontal\"",
|
|
1546
|
-
"description": "The direction of the button group.",
|
|
1547
|
-
"attribute": "direction",
|
|
1548
|
-
"reflects": true
|
|
1549
|
-
},
|
|
1550
|
-
{
|
|
1551
|
-
"kind": "field",
|
|
1552
|
-
"name": "wrap",
|
|
1553
|
-
"type": {
|
|
1554
|
-
"text": "boolean"
|
|
1555
|
-
},
|
|
1556
|
-
"default": "false",
|
|
1557
|
-
"description": "Defines whether the buttons are forced in a single line\nor can be flowed into multiple lines (only applied when variant is set to `spaced`).",
|
|
1558
|
-
"attribute": "wrap",
|
|
1559
|
-
"reflects": true
|
|
1560
|
-
},
|
|
1561
|
-
{
|
|
1562
|
-
"kind": "field",
|
|
1563
|
-
"name": "role",
|
|
1564
|
-
"type": {
|
|
1565
|
-
"text": "string"
|
|
1566
|
-
},
|
|
1567
|
-
"default": "\"group\"",
|
|
1568
|
-
"description": "The appropriate role for the containing element.",
|
|
1569
|
-
"attribute": "role",
|
|
1570
|
-
"reflects": true
|
|
1571
|
-
}
|
|
1572
|
-
],
|
|
1573
|
-
"attributes": [
|
|
1574
|
-
{
|
|
1575
|
-
"name": "variant",
|
|
1576
|
-
"type": {
|
|
1577
|
-
"text": "\"default\" | \"spaced\""
|
|
1578
|
-
},
|
|
1579
|
-
"default": "\"default\"",
|
|
1580
|
-
"description": "The style variant of the button group.",
|
|
1581
|
-
"fieldName": "variant"
|
|
1582
|
-
},
|
|
1583
|
-
{
|
|
1584
|
-
"name": "direction",
|
|
1585
|
-
"type": {
|
|
1586
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
1587
|
-
},
|
|
1588
|
-
"default": "\"horizontal\"",
|
|
1589
|
-
"description": "The direction of the button group.",
|
|
1590
|
-
"fieldName": "direction"
|
|
1591
|
-
},
|
|
1592
|
-
{
|
|
1593
|
-
"name": "wrap",
|
|
1594
|
-
"type": {
|
|
1595
|
-
"text": "boolean"
|
|
1596
|
-
},
|
|
1597
|
-
"default": "false",
|
|
1598
|
-
"description": "Defines whether the buttons are forced in a single line\nor can be flowed into multiple lines (only applied when variant is set to `spaced`).",
|
|
1599
|
-
"fieldName": "wrap"
|
|
1600
|
-
},
|
|
1601
|
-
{
|
|
1602
|
-
"name": "role",
|
|
1603
|
-
"type": {
|
|
1604
|
-
"text": "string"
|
|
1605
|
-
},
|
|
1606
|
-
"default": "\"group\"",
|
|
1607
|
-
"description": "The appropriate role for the containing element.",
|
|
1608
|
-
"fieldName": "role"
|
|
1609
|
-
}
|
|
1610
|
-
],
|
|
1611
|
-
"superclass": {
|
|
1612
|
-
"name": "LitElement",
|
|
1613
|
-
"package": "lit"
|
|
1614
|
-
},
|
|
1615
|
-
"localization": [],
|
|
1616
|
-
"status": "ready",
|
|
1617
|
-
"category": "structure",
|
|
1618
|
-
"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\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| `default` | The default variant renders a group of segmented buttons to emphasize that they’re thematically-related. |\n| `spaced` | The spaced variant renders a gap between the buttons to space them out evenly. |\n",
|
|
1619
|
-
"examples": [],
|
|
1620
|
-
"dependencies": [],
|
|
1621
|
-
"tagName": "nord-button-group",
|
|
1622
|
-
"customElement": true
|
|
1623
|
-
}
|
|
1624
|
-
],
|
|
1625
|
-
"exports": [
|
|
1626
|
-
{
|
|
1627
|
-
"kind": "js",
|
|
1628
|
-
"name": "default",
|
|
1629
|
-
"declaration": {
|
|
1630
|
-
"name": "ButtonGroup",
|
|
1631
|
-
"module": "src/button-group/ButtonGroup.ts"
|
|
1632
|
-
}
|
|
1633
|
-
},
|
|
1634
|
-
{
|
|
1635
|
-
"kind": "custom-element-definition",
|
|
1636
|
-
"name": "nord-button-group",
|
|
1637
|
-
"declaration": {
|
|
1638
|
-
"name": "ButtonGroup",
|
|
1639
|
-
"module": "src/button-group/ButtonGroup.ts"
|
|
1640
|
-
}
|
|
1641
|
-
}
|
|
1642
|
-
]
|
|
1643
|
-
},
|
|
1644
1489
|
{
|
|
1645
1490
|
"kind": "javascript-module",
|
|
1646
1491
|
"path": "src/calendar/Calendar.ts",
|
|
@@ -2145,93 +1990,125 @@
|
|
|
2145
1990
|
},
|
|
2146
1991
|
{
|
|
2147
1992
|
"kind": "javascript-module",
|
|
2148
|
-
"path": "src/
|
|
1993
|
+
"path": "src/button-group/ButtonGroup.ts",
|
|
2149
1994
|
"declarations": [
|
|
2150
1995
|
{
|
|
2151
1996
|
"kind": "class",
|
|
2152
|
-
"description": "
|
|
2153
|
-
"name": "
|
|
1997
|
+
"description": "Button groups are designed to bring together button controls that are of a similar nature. For example text formatting controls.",
|
|
1998
|
+
"name": "ButtonGroup",
|
|
2154
1999
|
"cssProperties": [
|
|
2155
2000
|
{
|
|
2156
|
-
"description": "Controls
|
|
2157
|
-
"name": "--n-
|
|
2158
|
-
"default": "var(--n-border-radius)"
|
|
2159
|
-
},
|
|
2160
|
-
{
|
|
2161
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2162
|
-
"name": "--n-card-box-shadow",
|
|
2163
|
-
"default": "var(--n-box-shadow-popout)"
|
|
2164
|
-
},
|
|
2165
|
-
{
|
|
2166
|
-
"description": "Controls the padding on all sides of the card.",
|
|
2167
|
-
"name": "--n-card-padding",
|
|
2168
|
-
"default": "var(--n-space-m)"
|
|
2001
|
+
"description": "Controls the rounded corners of the button group, using [border radius tokens](/tokens/#border-radius). Only relevant for the default variant.",
|
|
2002
|
+
"name": "--n-button-group-border-radius",
|
|
2003
|
+
"default": "var(--n-border-radius-s)"
|
|
2169
2004
|
},
|
|
2170
2005
|
{
|
|
2171
|
-
"description": "Controls the
|
|
2172
|
-
"name": "--n-
|
|
2173
|
-
"default": "var(--n-
|
|
2006
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow). Only relevant for the default variant.",
|
|
2007
|
+
"name": "--n-button-group-box-shadow",
|
|
2008
|
+
"default": "var(--n-box-shadow)"
|
|
2174
2009
|
}
|
|
2175
2010
|
],
|
|
2176
2011
|
"slots": [
|
|
2177
2012
|
{
|
|
2178
|
-
"description": "The
|
|
2013
|
+
"description": "The button group content",
|
|
2179
2014
|
"name": ""
|
|
2180
|
-
},
|
|
2181
|
-
{
|
|
2182
|
-
"description": "Optional slot that holds a header for the card.",
|
|
2183
|
-
"name": "header"
|
|
2184
|
-
},
|
|
2185
|
-
{
|
|
2186
|
-
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
2187
|
-
"name": "header-end"
|
|
2188
|
-
},
|
|
2189
|
-
{
|
|
2190
|
-
"description": "Optional slot that holds footer content for the card.",
|
|
2191
|
-
"name": "footer"
|
|
2192
2015
|
}
|
|
2193
2016
|
],
|
|
2194
2017
|
"members": [
|
|
2195
2018
|
{
|
|
2196
2019
|
"kind": "field",
|
|
2197
|
-
"name": "
|
|
2020
|
+
"name": "defaultSlot",
|
|
2198
2021
|
"privacy": "private",
|
|
2199
|
-
"default": "new SlotController(this
|
|
2022
|
+
"default": "new SlotController(this)"
|
|
2200
2023
|
},
|
|
2201
2024
|
{
|
|
2202
2025
|
"kind": "field",
|
|
2203
|
-
"name": "
|
|
2026
|
+
"name": "dirController",
|
|
2204
2027
|
"privacy": "private",
|
|
2205
|
-
"default": "new
|
|
2028
|
+
"default": "new DirectionController(this)"
|
|
2206
2029
|
},
|
|
2207
2030
|
{
|
|
2208
2031
|
"kind": "field",
|
|
2209
|
-
"name": "
|
|
2210
|
-
"
|
|
2211
|
-
|
|
2032
|
+
"name": "variant",
|
|
2033
|
+
"type": {
|
|
2034
|
+
"text": "\"default\" | \"spaced\""
|
|
2035
|
+
},
|
|
2036
|
+
"default": "\"default\"",
|
|
2037
|
+
"description": "The style variant of the button group.",
|
|
2038
|
+
"attribute": "variant",
|
|
2039
|
+
"reflects": true
|
|
2212
2040
|
},
|
|
2213
2041
|
{
|
|
2214
2042
|
"kind": "field",
|
|
2215
|
-
"name": "
|
|
2043
|
+
"name": "direction",
|
|
2216
2044
|
"type": {
|
|
2217
|
-
"text": "\"
|
|
2045
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
2218
2046
|
},
|
|
2219
|
-
"default": "\"
|
|
2220
|
-
"description": "
|
|
2221
|
-
"attribute": "
|
|
2047
|
+
"default": "\"horizontal\"",
|
|
2048
|
+
"description": "The direction of the button group.",
|
|
2049
|
+
"attribute": "direction",
|
|
2050
|
+
"reflects": true
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
"kind": "field",
|
|
2054
|
+
"name": "wrap",
|
|
2055
|
+
"type": {
|
|
2056
|
+
"text": "boolean"
|
|
2057
|
+
},
|
|
2058
|
+
"default": "false",
|
|
2059
|
+
"description": "Defines whether the buttons are forced in a single line\nor can be flowed into multiple lines (only applied when variant is set to `spaced`).",
|
|
2060
|
+
"attribute": "wrap",
|
|
2061
|
+
"reflects": true
|
|
2062
|
+
},
|
|
2063
|
+
{
|
|
2064
|
+
"kind": "field",
|
|
2065
|
+
"name": "role",
|
|
2066
|
+
"type": {
|
|
2067
|
+
"text": "string"
|
|
2068
|
+
},
|
|
2069
|
+
"default": "\"group\"",
|
|
2070
|
+
"description": "The appropriate role for the containing element.",
|
|
2071
|
+
"attribute": "role",
|
|
2222
2072
|
"reflects": true
|
|
2223
2073
|
}
|
|
2224
2074
|
],
|
|
2225
2075
|
"attributes": [
|
|
2226
2076
|
{
|
|
2227
|
-
"name": "
|
|
2077
|
+
"name": "variant",
|
|
2228
2078
|
"type": {
|
|
2229
|
-
"text": "\"
|
|
2079
|
+
"text": "\"default\" | \"spaced\""
|
|
2230
2080
|
},
|
|
2231
|
-
"default": "\"
|
|
2232
|
-
"description": "
|
|
2233
|
-
"fieldName": "
|
|
2234
|
-
}
|
|
2081
|
+
"default": "\"default\"",
|
|
2082
|
+
"description": "The style variant of the button group.",
|
|
2083
|
+
"fieldName": "variant"
|
|
2084
|
+
},
|
|
2085
|
+
{
|
|
2086
|
+
"name": "direction",
|
|
2087
|
+
"type": {
|
|
2088
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
2089
|
+
},
|
|
2090
|
+
"default": "\"horizontal\"",
|
|
2091
|
+
"description": "The direction of the button group.",
|
|
2092
|
+
"fieldName": "direction"
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
"name": "wrap",
|
|
2096
|
+
"type": {
|
|
2097
|
+
"text": "boolean"
|
|
2098
|
+
},
|
|
2099
|
+
"default": "false",
|
|
2100
|
+
"description": "Defines whether the buttons are forced in a single line\nor can be flowed into multiple lines (only applied when variant is set to `spaced`).",
|
|
2101
|
+
"fieldName": "wrap"
|
|
2102
|
+
},
|
|
2103
|
+
{
|
|
2104
|
+
"name": "role",
|
|
2105
|
+
"type": {
|
|
2106
|
+
"text": "string"
|
|
2107
|
+
},
|
|
2108
|
+
"default": "\"group\"",
|
|
2109
|
+
"description": "The appropriate role for the containing element.",
|
|
2110
|
+
"fieldName": "role"
|
|
2111
|
+
}
|
|
2235
2112
|
],
|
|
2236
2113
|
"superclass": {
|
|
2237
2114
|
"name": "LitElement",
|
|
@@ -2240,10 +2117,10 @@
|
|
|
2240
2117
|
"localization": [],
|
|
2241
2118
|
"status": "ready",
|
|
2242
2119
|
"category": "structure",
|
|
2243
|
-
"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
|
|
2120
|
+
"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\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| `default` | The default variant renders a group of segmented buttons to emphasize that they’re thematically-related. |\n| `spaced` | The spaced variant renders a gap between the buttons to space them out evenly. |\n",
|
|
2244
2121
|
"examples": [],
|
|
2245
2122
|
"dependencies": [],
|
|
2246
|
-
"tagName": "nord-
|
|
2123
|
+
"tagName": "nord-button-group",
|
|
2247
2124
|
"customElement": true
|
|
2248
2125
|
}
|
|
2249
2126
|
],
|
|
@@ -2252,16 +2129,16 @@
|
|
|
2252
2129
|
"kind": "js",
|
|
2253
2130
|
"name": "default",
|
|
2254
2131
|
"declaration": {
|
|
2255
|
-
"name": "
|
|
2256
|
-
"module": "src/
|
|
2132
|
+
"name": "ButtonGroup",
|
|
2133
|
+
"module": "src/button-group/ButtonGroup.ts"
|
|
2257
2134
|
}
|
|
2258
2135
|
},
|
|
2259
2136
|
{
|
|
2260
2137
|
"kind": "custom-element-definition",
|
|
2261
|
-
"name": "nord-
|
|
2138
|
+
"name": "nord-button-group",
|
|
2262
2139
|
"declaration": {
|
|
2263
|
-
"name": "
|
|
2264
|
-
"module": "src/
|
|
2140
|
+
"name": "ButtonGroup",
|
|
2141
|
+
"module": "src/button-group/ButtonGroup.ts"
|
|
2265
2142
|
}
|
|
2266
2143
|
}
|
|
2267
2144
|
]
|
|
@@ -3004,6 +2881,129 @@
|
|
|
3004
2881
|
}
|
|
3005
2882
|
]
|
|
3006
2883
|
},
|
|
2884
|
+
{
|
|
2885
|
+
"kind": "javascript-module",
|
|
2886
|
+
"path": "src/card/Card.ts",
|
|
2887
|
+
"declarations": [
|
|
2888
|
+
{
|
|
2889
|
+
"kind": "class",
|
|
2890
|
+
"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.",
|
|
2891
|
+
"name": "Card",
|
|
2892
|
+
"cssProperties": [
|
|
2893
|
+
{
|
|
2894
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
2895
|
+
"name": "--n-card-border-radius",
|
|
2896
|
+
"default": "var(--n-border-radius)"
|
|
2897
|
+
},
|
|
2898
|
+
{
|
|
2899
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2900
|
+
"name": "--n-card-box-shadow",
|
|
2901
|
+
"default": "var(--n-box-shadow-popout)"
|
|
2902
|
+
},
|
|
2903
|
+
{
|
|
2904
|
+
"description": "Controls the padding on all sides of the card.",
|
|
2905
|
+
"name": "--n-card-padding",
|
|
2906
|
+
"default": "var(--n-space-m)"
|
|
2907
|
+
},
|
|
2908
|
+
{
|
|
2909
|
+
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
2910
|
+
"name": "--n-card-slot-padding",
|
|
2911
|
+
"default": "var(--n-space-m)"
|
|
2912
|
+
}
|
|
2913
|
+
],
|
|
2914
|
+
"slots": [
|
|
2915
|
+
{
|
|
2916
|
+
"description": "The card content.",
|
|
2917
|
+
"name": ""
|
|
2918
|
+
},
|
|
2919
|
+
{
|
|
2920
|
+
"description": "Optional slot that holds a header for the card.",
|
|
2921
|
+
"name": "header"
|
|
2922
|
+
},
|
|
2923
|
+
{
|
|
2924
|
+
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
2925
|
+
"name": "header-end"
|
|
2926
|
+
},
|
|
2927
|
+
{
|
|
2928
|
+
"description": "Optional slot that holds footer content for the card.",
|
|
2929
|
+
"name": "footer"
|
|
2930
|
+
}
|
|
2931
|
+
],
|
|
2932
|
+
"members": [
|
|
2933
|
+
{
|
|
2934
|
+
"kind": "field",
|
|
2935
|
+
"name": "headerSlot",
|
|
2936
|
+
"privacy": "private",
|
|
2937
|
+
"default": "new SlotController(this, \"header\")"
|
|
2938
|
+
},
|
|
2939
|
+
{
|
|
2940
|
+
"kind": "field",
|
|
2941
|
+
"name": "headerEndSlot",
|
|
2942
|
+
"privacy": "private",
|
|
2943
|
+
"default": "new SlotController(this, \"header-end\")"
|
|
2944
|
+
},
|
|
2945
|
+
{
|
|
2946
|
+
"kind": "field",
|
|
2947
|
+
"name": "footerSlot",
|
|
2948
|
+
"privacy": "private",
|
|
2949
|
+
"default": "new SlotController(this, \"footer\")"
|
|
2950
|
+
},
|
|
2951
|
+
{
|
|
2952
|
+
"kind": "field",
|
|
2953
|
+
"name": "padding",
|
|
2954
|
+
"type": {
|
|
2955
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
2956
|
+
},
|
|
2957
|
+
"default": "\"m\"",
|
|
2958
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2959
|
+
"attribute": "padding",
|
|
2960
|
+
"reflects": true
|
|
2961
|
+
}
|
|
2962
|
+
],
|
|
2963
|
+
"attributes": [
|
|
2964
|
+
{
|
|
2965
|
+
"name": "padding",
|
|
2966
|
+
"type": {
|
|
2967
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
2968
|
+
},
|
|
2969
|
+
"default": "\"m\"",
|
|
2970
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2971
|
+
"fieldName": "padding"
|
|
2972
|
+
}
|
|
2973
|
+
],
|
|
2974
|
+
"superclass": {
|
|
2975
|
+
"name": "LitElement",
|
|
2976
|
+
"package": "lit"
|
|
2977
|
+
},
|
|
2978
|
+
"localization": [],
|
|
2979
|
+
"status": "ready",
|
|
2980
|
+
"category": "structure",
|
|
2981
|
+
"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",
|
|
2982
|
+
"examples": [],
|
|
2983
|
+
"dependencies": [],
|
|
2984
|
+
"tagName": "nord-card",
|
|
2985
|
+
"customElement": true
|
|
2986
|
+
}
|
|
2987
|
+
],
|
|
2988
|
+
"exports": [
|
|
2989
|
+
{
|
|
2990
|
+
"kind": "js",
|
|
2991
|
+
"name": "default",
|
|
2992
|
+
"declaration": {
|
|
2993
|
+
"name": "Card",
|
|
2994
|
+
"module": "src/card/Card.ts"
|
|
2995
|
+
}
|
|
2996
|
+
},
|
|
2997
|
+
{
|
|
2998
|
+
"kind": "custom-element-definition",
|
|
2999
|
+
"name": "nord-card",
|
|
3000
|
+
"declaration": {
|
|
3001
|
+
"name": "Card",
|
|
3002
|
+
"module": "src/card/Card.ts"
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
3005
|
+
]
|
|
3006
|
+
},
|
|
3007
3007
|
{
|
|
3008
3008
|
"kind": "javascript-module",
|
|
3009
3009
|
"path": "src/command-menu/CommandMenu.ts",
|
|
@@ -7238,6 +7238,87 @@
|
|
|
7238
7238
|
}
|
|
7239
7239
|
]
|
|
7240
7240
|
},
|
|
7241
|
+
{
|
|
7242
|
+
"kind": "javascript-module",
|
|
7243
|
+
"path": "src/header/Header.ts",
|
|
7244
|
+
"declarations": [
|
|
7245
|
+
{
|
|
7246
|
+
"kind": "class",
|
|
7247
|
+
"description": "The header is a block of designated space for labelling the currently\nviewed context as well as providing primary actions.",
|
|
7248
|
+
"name": "Header",
|
|
7249
|
+
"slots": [
|
|
7250
|
+
{
|
|
7251
|
+
"description": "The header content.",
|
|
7252
|
+
"name": ""
|
|
7253
|
+
},
|
|
7254
|
+
{
|
|
7255
|
+
"description": "Optional slot for buttons, toggles, etc.",
|
|
7256
|
+
"name": "end"
|
|
7257
|
+
}
|
|
7258
|
+
],
|
|
7259
|
+
"members": [
|
|
7260
|
+
{
|
|
7261
|
+
"kind": "field",
|
|
7262
|
+
"name": "endSlot",
|
|
7263
|
+
"privacy": "private",
|
|
7264
|
+
"default": "new SlotController(this, \"end\")"
|
|
7265
|
+
},
|
|
7266
|
+
{
|
|
7267
|
+
"kind": "field",
|
|
7268
|
+
"name": "size",
|
|
7269
|
+
"type": {
|
|
7270
|
+
"text": "\"m\" | \"s\""
|
|
7271
|
+
},
|
|
7272
|
+
"default": "\"m\"",
|
|
7273
|
+
"description": "Controls the size of the header component.",
|
|
7274
|
+
"attribute": "size",
|
|
7275
|
+
"reflects": true
|
|
7276
|
+
}
|
|
7277
|
+
],
|
|
7278
|
+
"attributes": [
|
|
7279
|
+
{
|
|
7280
|
+
"name": "size",
|
|
7281
|
+
"type": {
|
|
7282
|
+
"text": "\"m\" | \"s\""
|
|
7283
|
+
},
|
|
7284
|
+
"default": "\"m\"",
|
|
7285
|
+
"description": "Controls the size of the header component.",
|
|
7286
|
+
"fieldName": "size"
|
|
7287
|
+
}
|
|
7288
|
+
],
|
|
7289
|
+
"superclass": {
|
|
7290
|
+
"name": "LitElement",
|
|
7291
|
+
"package": "lit"
|
|
7292
|
+
},
|
|
7293
|
+
"localization": [],
|
|
7294
|
+
"status": "ready",
|
|
7295
|
+
"category": "structure",
|
|
7296
|
+
"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 header component to show a heading to describe the current view.\n- Use the header component to hold primary actions.\n- Use the header component at a visual high position at full width.\n- Utilise the [`n-truncate`](/css/#miscellaneous-utilities) CSS helper to prevent long headings from wrapping.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t overcrowd the header component with too many actions or information.\n- Don’t nest the header component too deeply and restrict its available space.\n- Don’t add large amounts of content or long headings. Aim for headings that are short and concise.\n\n</div>\n\n---\n\n## Content guidelines\n\nThe header component should be a containing element placed high on the page to present high level controls and to describe the page itself. It shouldn’t be overcrowded with controls or information.\n\n<div class=\"n-usage n-usage-do\">[Menu] Dashboard [Account] [Log out]</div>\n<div class=\"n-usage n-usage-dont\">[Menu] Use the cards below to view various information [Export] [Save] [Edit Profile] [Log out] [Preferences]</div>\n",
|
|
7297
|
+
"examples": [],
|
|
7298
|
+
"dependencies": [],
|
|
7299
|
+
"tagName": "nord-header",
|
|
7300
|
+
"customElement": true
|
|
7301
|
+
}
|
|
7302
|
+
],
|
|
7303
|
+
"exports": [
|
|
7304
|
+
{
|
|
7305
|
+
"kind": "js",
|
|
7306
|
+
"name": "default",
|
|
7307
|
+
"declaration": {
|
|
7308
|
+
"name": "Header",
|
|
7309
|
+
"module": "src/header/Header.ts"
|
|
7310
|
+
}
|
|
7311
|
+
},
|
|
7312
|
+
{
|
|
7313
|
+
"kind": "custom-element-definition",
|
|
7314
|
+
"name": "nord-header",
|
|
7315
|
+
"declaration": {
|
|
7316
|
+
"name": "Header",
|
|
7317
|
+
"module": "src/header/Header.ts"
|
|
7318
|
+
}
|
|
7319
|
+
}
|
|
7320
|
+
]
|
|
7321
|
+
},
|
|
7241
7322
|
{
|
|
7242
7323
|
"kind": "javascript-module",
|
|
7243
7324
|
"path": "src/icon/Icon.ts",
|
|
@@ -9118,88 +9199,7 @@
|
|
|
9118
9199
|
},
|
|
9119
9200
|
{
|
|
9120
9201
|
"kind": "javascript-module",
|
|
9121
|
-
"path": "src/
|
|
9122
|
-
"declarations": [
|
|
9123
|
-
{
|
|
9124
|
-
"kind": "class",
|
|
9125
|
-
"description": "The header is a block of designated space for labelling the currently\nviewed context as well as providing primary actions.",
|
|
9126
|
-
"name": "Header",
|
|
9127
|
-
"slots": [
|
|
9128
|
-
{
|
|
9129
|
-
"description": "The header content.",
|
|
9130
|
-
"name": ""
|
|
9131
|
-
},
|
|
9132
|
-
{
|
|
9133
|
-
"description": "Optional slot for buttons, toggles, etc.",
|
|
9134
|
-
"name": "end"
|
|
9135
|
-
}
|
|
9136
|
-
],
|
|
9137
|
-
"members": [
|
|
9138
|
-
{
|
|
9139
|
-
"kind": "field",
|
|
9140
|
-
"name": "endSlot",
|
|
9141
|
-
"privacy": "private",
|
|
9142
|
-
"default": "new SlotController(this, \"end\")"
|
|
9143
|
-
},
|
|
9144
|
-
{
|
|
9145
|
-
"kind": "field",
|
|
9146
|
-
"name": "size",
|
|
9147
|
-
"type": {
|
|
9148
|
-
"text": "\"m\" | \"s\""
|
|
9149
|
-
},
|
|
9150
|
-
"default": "\"m\"",
|
|
9151
|
-
"description": "Controls the size of the header component.",
|
|
9152
|
-
"attribute": "size",
|
|
9153
|
-
"reflects": true
|
|
9154
|
-
}
|
|
9155
|
-
],
|
|
9156
|
-
"attributes": [
|
|
9157
|
-
{
|
|
9158
|
-
"name": "size",
|
|
9159
|
-
"type": {
|
|
9160
|
-
"text": "\"m\" | \"s\""
|
|
9161
|
-
},
|
|
9162
|
-
"default": "\"m\"",
|
|
9163
|
-
"description": "Controls the size of the header component.",
|
|
9164
|
-
"fieldName": "size"
|
|
9165
|
-
}
|
|
9166
|
-
],
|
|
9167
|
-
"superclass": {
|
|
9168
|
-
"name": "LitElement",
|
|
9169
|
-
"package": "lit"
|
|
9170
|
-
},
|
|
9171
|
-
"localization": [],
|
|
9172
|
-
"status": "ready",
|
|
9173
|
-
"category": "structure",
|
|
9174
|
-
"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 header component to show a heading to describe the current view.\n- Use the header component to hold primary actions.\n- Use the header component at a visual high position at full width.\n- Utilise the [`n-truncate`](/css/#miscellaneous-utilities) CSS helper to prevent long headings from wrapping.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t overcrowd the header component with too many actions or information.\n- Don’t nest the header component too deeply and restrict its available space.\n- Don’t add large amounts of content or long headings. Aim for headings that are short and concise.\n\n</div>\n\n---\n\n## Content guidelines\n\nThe header component should be a containing element placed high on the page to present high level controls and to describe the page itself. It shouldn’t be overcrowded with controls or information.\n\n<div class=\"n-usage n-usage-do\">[Menu] Dashboard [Account] [Log out]</div>\n<div class=\"n-usage n-usage-dont\">[Menu] Use the cards below to view various information [Export] [Save] [Edit Profile] [Log out] [Preferences]</div>\n",
|
|
9175
|
-
"examples": [],
|
|
9176
|
-
"dependencies": [],
|
|
9177
|
-
"tagName": "nord-header",
|
|
9178
|
-
"customElement": true
|
|
9179
|
-
}
|
|
9180
|
-
],
|
|
9181
|
-
"exports": [
|
|
9182
|
-
{
|
|
9183
|
-
"kind": "js",
|
|
9184
|
-
"name": "default",
|
|
9185
|
-
"declaration": {
|
|
9186
|
-
"name": "Header",
|
|
9187
|
-
"module": "src/header/Header.ts"
|
|
9188
|
-
}
|
|
9189
|
-
},
|
|
9190
|
-
{
|
|
9191
|
-
"kind": "custom-element-definition",
|
|
9192
|
-
"name": "nord-header",
|
|
9193
|
-
"declaration": {
|
|
9194
|
-
"name": "Header",
|
|
9195
|
-
"module": "src/header/Header.ts"
|
|
9196
|
-
}
|
|
9197
|
-
}
|
|
9198
|
-
]
|
|
9199
|
-
},
|
|
9200
|
-
{
|
|
9201
|
-
"kind": "javascript-module",
|
|
9202
|
-
"path": "src/localization/LocalizeController.ts",
|
|
9202
|
+
"path": "src/localization/LocalizeController.ts",
|
|
9203
9203
|
"declarations": [
|
|
9204
9204
|
{
|
|
9205
9205
|
"kind": "class",
|
|
@@ -10462,136 +10462,6 @@
|
|
|
10462
10462
|
}
|
|
10463
10463
|
]
|
|
10464
10464
|
},
|
|
10465
|
-
{
|
|
10466
|
-
"kind": "javascript-module",
|
|
10467
|
-
"path": "src/navigation/Navigation.ts",
|
|
10468
|
-
"declarations": [
|
|
10469
|
-
{
|
|
10470
|
-
"kind": "class",
|
|
10471
|
-
"description": "Navigation is used to display the primary navigation in the sidebar\nof an application. Navigation includes a list of links that users\nuse to move between sections of the application.",
|
|
10472
|
-
"name": "Navigation",
|
|
10473
|
-
"cssProperties": [
|
|
10474
|
-
{
|
|
10475
|
-
"description": "Controls the background color of the navigation element.",
|
|
10476
|
-
"name": "--n-navigation-background-color",
|
|
10477
|
-
"default": "var(--n-color-nav-surface)"
|
|
10478
|
-
}
|
|
10479
|
-
],
|
|
10480
|
-
"slots": [
|
|
10481
|
-
{
|
|
10482
|
-
"description": "The main section of the sidebar, for holding nav components.",
|
|
10483
|
-
"name": ""
|
|
10484
|
-
},
|
|
10485
|
-
{
|
|
10486
|
-
"description": "The top section of the sidebar.",
|
|
10487
|
-
"name": "header"
|
|
10488
|
-
},
|
|
10489
|
-
{
|
|
10490
|
-
"description": "The bottom section of the sidebar.",
|
|
10491
|
-
"name": "footer"
|
|
10492
|
-
}
|
|
10493
|
-
],
|
|
10494
|
-
"members": [
|
|
10495
|
-
{
|
|
10496
|
-
"kind": "field",
|
|
10497
|
-
"name": "headerSlot",
|
|
10498
|
-
"privacy": "private",
|
|
10499
|
-
"default": "new SlotController(this, \"header\")"
|
|
10500
|
-
},
|
|
10501
|
-
{
|
|
10502
|
-
"kind": "field",
|
|
10503
|
-
"name": "events",
|
|
10504
|
-
"privacy": "private",
|
|
10505
|
-
"default": "new EventController(this)"
|
|
10506
|
-
},
|
|
10507
|
-
{
|
|
10508
|
-
"kind": "field",
|
|
10509
|
-
"name": "allowItemsToRemainOpen",
|
|
10510
|
-
"type": {
|
|
10511
|
-
"text": "boolean"
|
|
10512
|
-
},
|
|
10513
|
-
"privacy": "private",
|
|
10514
|
-
"default": "false"
|
|
10515
|
-
},
|
|
10516
|
-
{
|
|
10517
|
-
"kind": "field",
|
|
10518
|
-
"name": "stickyFooter",
|
|
10519
|
-
"type": {
|
|
10520
|
-
"text": "boolean"
|
|
10521
|
-
},
|
|
10522
|
-
"default": "false",
|
|
10523
|
-
"description": "Controls whether the navigations's footer has sticky positioning.",
|
|
10524
|
-
"attribute": "sticky-footer",
|
|
10525
|
-
"reflects": true
|
|
10526
|
-
},
|
|
10527
|
-
{
|
|
10528
|
-
"kind": "field",
|
|
10529
|
-
"name": "handleActivate",
|
|
10530
|
-
"privacy": "private"
|
|
10531
|
-
}
|
|
10532
|
-
],
|
|
10533
|
-
"events": [
|
|
10534
|
-
{
|
|
10535
|
-
"type": {
|
|
10536
|
-
"text": "NordEvent"
|
|
10537
|
-
},
|
|
10538
|
-
"description": "Dispatched whenever a nav item's state changes between open and closed.",
|
|
10539
|
-
"name": "toggle"
|
|
10540
|
-
},
|
|
10541
|
-
{
|
|
10542
|
-
"type": {
|
|
10543
|
-
"text": "NordEvent"
|
|
10544
|
-
},
|
|
10545
|
-
"description": "Dispatched whenever a nav item has been marked as active",
|
|
10546
|
-
"name": "activate"
|
|
10547
|
-
}
|
|
10548
|
-
],
|
|
10549
|
-
"attributes": [
|
|
10550
|
-
{
|
|
10551
|
-
"name": "sticky-footer",
|
|
10552
|
-
"type": {
|
|
10553
|
-
"text": "boolean"
|
|
10554
|
-
},
|
|
10555
|
-
"default": "false",
|
|
10556
|
-
"description": "Controls whether the navigations's footer has sticky positioning.",
|
|
10557
|
-
"fieldName": "stickyFooter"
|
|
10558
|
-
}
|
|
10559
|
-
],
|
|
10560
|
-
"superclass": {
|
|
10561
|
-
"name": "LitElement",
|
|
10562
|
-
"package": "lit"
|
|
10563
|
-
},
|
|
10564
|
-
"localization": [],
|
|
10565
|
-
"status": "ready",
|
|
10566
|
-
"category": "navigation",
|
|
10567
|
-
"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 primary navigation items that perform an action when clicked. Each action should navigate to a URL or trigger another action like a modal overlay.\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place a `<nav>` element inside the navigation component, as it already contains one internally.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
|
|
10568
|
-
"examples": [],
|
|
10569
|
-
"dependencies": [
|
|
10570
|
-
"nav-item"
|
|
10571
|
-
],
|
|
10572
|
-
"tagName": "nord-navigation",
|
|
10573
|
-
"customElement": true
|
|
10574
|
-
}
|
|
10575
|
-
],
|
|
10576
|
-
"exports": [
|
|
10577
|
-
{
|
|
10578
|
-
"kind": "js",
|
|
10579
|
-
"name": "default",
|
|
10580
|
-
"declaration": {
|
|
10581
|
-
"name": "Navigation",
|
|
10582
|
-
"module": "src/navigation/Navigation.ts"
|
|
10583
|
-
}
|
|
10584
|
-
},
|
|
10585
|
-
{
|
|
10586
|
-
"kind": "custom-element-definition",
|
|
10587
|
-
"name": "nord-navigation",
|
|
10588
|
-
"declaration": {
|
|
10589
|
-
"name": "Navigation",
|
|
10590
|
-
"module": "src/navigation/Navigation.ts"
|
|
10591
|
-
}
|
|
10592
|
-
}
|
|
10593
|
-
]
|
|
10594
|
-
},
|
|
10595
10465
|
{
|
|
10596
10466
|
"kind": "javascript-module",
|
|
10597
10467
|
"path": "src/nav-toggle/NavToggle.ts",
|
|
@@ -10734,56 +10604,186 @@
|
|
|
10734
10604
|
},
|
|
10735
10605
|
{
|
|
10736
10606
|
"kind": "javascript-module",
|
|
10737
|
-
"path": "src/
|
|
10607
|
+
"path": "src/navigation/Navigation.ts",
|
|
10738
10608
|
"declarations": [
|
|
10739
10609
|
{
|
|
10740
10610
|
"kind": "class",
|
|
10741
|
-
"description": "
|
|
10742
|
-
"name": "
|
|
10611
|
+
"description": "Navigation is used to display the primary navigation in the sidebar\nof an application. Navigation includes a list of links that users\nuse to move between sections of the application.",
|
|
10612
|
+
"name": "Navigation",
|
|
10613
|
+
"cssProperties": [
|
|
10614
|
+
{
|
|
10615
|
+
"description": "Controls the background color of the navigation element.",
|
|
10616
|
+
"name": "--n-navigation-background-color",
|
|
10617
|
+
"default": "var(--n-color-nav-surface)"
|
|
10618
|
+
}
|
|
10619
|
+
],
|
|
10743
10620
|
"slots": [
|
|
10744
10621
|
{
|
|
10745
|
-
"description": "
|
|
10622
|
+
"description": "The main section of the sidebar, for holding nav components.",
|
|
10746
10623
|
"name": ""
|
|
10747
10624
|
},
|
|
10748
10625
|
{
|
|
10749
|
-
"description": "
|
|
10750
|
-
"name": "
|
|
10626
|
+
"description": "The top section of the sidebar.",
|
|
10627
|
+
"name": "header"
|
|
10628
|
+
},
|
|
10629
|
+
{
|
|
10630
|
+
"description": "The bottom section of the sidebar.",
|
|
10631
|
+
"name": "footer"
|
|
10751
10632
|
}
|
|
10752
10633
|
],
|
|
10753
10634
|
"members": [
|
|
10754
10635
|
{
|
|
10755
10636
|
"kind": "field",
|
|
10756
|
-
"name": "
|
|
10637
|
+
"name": "headerSlot",
|
|
10757
10638
|
"privacy": "private",
|
|
10758
|
-
"default": "new
|
|
10639
|
+
"default": "new SlotController(this, \"header\")"
|
|
10759
10640
|
},
|
|
10760
10641
|
{
|
|
10761
10642
|
"kind": "field",
|
|
10762
|
-
"name": "
|
|
10763
|
-
"privacy": "
|
|
10764
|
-
"
|
|
10765
|
-
"name": "NotificationMixin",
|
|
10766
|
-
"module": "src/common/mixins/NotificationMixin.ts"
|
|
10767
|
-
}
|
|
10643
|
+
"name": "events",
|
|
10644
|
+
"privacy": "private",
|
|
10645
|
+
"default": "new EventController(this)"
|
|
10768
10646
|
},
|
|
10769
10647
|
{
|
|
10770
10648
|
"kind": "field",
|
|
10771
|
-
"name": "
|
|
10649
|
+
"name": "allowItemsToRemainOpen",
|
|
10772
10650
|
"type": {
|
|
10773
10651
|
"text": "boolean"
|
|
10774
10652
|
},
|
|
10775
|
-
"privacy": "
|
|
10776
|
-
"default": "false"
|
|
10777
|
-
"inheritedFrom": {
|
|
10778
|
-
"name": "NotificationMixin",
|
|
10779
|
-
"module": "src/common/mixins/NotificationMixin.ts"
|
|
10780
|
-
}
|
|
10653
|
+
"privacy": "private",
|
|
10654
|
+
"default": "false"
|
|
10781
10655
|
},
|
|
10782
10656
|
{
|
|
10783
|
-
"kind": "
|
|
10784
|
-
"name": "
|
|
10785
|
-
"
|
|
10786
|
-
|
|
10657
|
+
"kind": "field",
|
|
10658
|
+
"name": "stickyFooter",
|
|
10659
|
+
"type": {
|
|
10660
|
+
"text": "boolean"
|
|
10661
|
+
},
|
|
10662
|
+
"default": "false",
|
|
10663
|
+
"description": "Controls whether the navigations's footer has sticky positioning.",
|
|
10664
|
+
"attribute": "sticky-footer",
|
|
10665
|
+
"reflects": true
|
|
10666
|
+
},
|
|
10667
|
+
{
|
|
10668
|
+
"kind": "field",
|
|
10669
|
+
"name": "handleActivate",
|
|
10670
|
+
"privacy": "private"
|
|
10671
|
+
}
|
|
10672
|
+
],
|
|
10673
|
+
"events": [
|
|
10674
|
+
{
|
|
10675
|
+
"type": {
|
|
10676
|
+
"text": "NordEvent"
|
|
10677
|
+
},
|
|
10678
|
+
"description": "Dispatched whenever a nav item's state changes between open and closed.",
|
|
10679
|
+
"name": "toggle"
|
|
10680
|
+
},
|
|
10681
|
+
{
|
|
10682
|
+
"type": {
|
|
10683
|
+
"text": "NordEvent"
|
|
10684
|
+
},
|
|
10685
|
+
"description": "Dispatched whenever a nav item has been marked as active",
|
|
10686
|
+
"name": "activate"
|
|
10687
|
+
}
|
|
10688
|
+
],
|
|
10689
|
+
"attributes": [
|
|
10690
|
+
{
|
|
10691
|
+
"name": "sticky-footer",
|
|
10692
|
+
"type": {
|
|
10693
|
+
"text": "boolean"
|
|
10694
|
+
},
|
|
10695
|
+
"default": "false",
|
|
10696
|
+
"description": "Controls whether the navigations's footer has sticky positioning.",
|
|
10697
|
+
"fieldName": "stickyFooter"
|
|
10698
|
+
}
|
|
10699
|
+
],
|
|
10700
|
+
"superclass": {
|
|
10701
|
+
"name": "LitElement",
|
|
10702
|
+
"package": "lit"
|
|
10703
|
+
},
|
|
10704
|
+
"localization": [],
|
|
10705
|
+
"status": "ready",
|
|
10706
|
+
"category": "navigation",
|
|
10707
|
+
"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 primary navigation items that perform an action when clicked. Each action should navigate to a URL or trigger another action like a modal overlay.\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place a `<nav>` element inside the navigation component, as it already contains one internally.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
|
|
10708
|
+
"examples": [],
|
|
10709
|
+
"dependencies": [
|
|
10710
|
+
"nav-item"
|
|
10711
|
+
],
|
|
10712
|
+
"tagName": "nord-navigation",
|
|
10713
|
+
"customElement": true
|
|
10714
|
+
}
|
|
10715
|
+
],
|
|
10716
|
+
"exports": [
|
|
10717
|
+
{
|
|
10718
|
+
"kind": "js",
|
|
10719
|
+
"name": "default",
|
|
10720
|
+
"declaration": {
|
|
10721
|
+
"name": "Navigation",
|
|
10722
|
+
"module": "src/navigation/Navigation.ts"
|
|
10723
|
+
}
|
|
10724
|
+
},
|
|
10725
|
+
{
|
|
10726
|
+
"kind": "custom-element-definition",
|
|
10727
|
+
"name": "nord-navigation",
|
|
10728
|
+
"declaration": {
|
|
10729
|
+
"name": "Navigation",
|
|
10730
|
+
"module": "src/navigation/Navigation.ts"
|
|
10731
|
+
}
|
|
10732
|
+
}
|
|
10733
|
+
]
|
|
10734
|
+
},
|
|
10735
|
+
{
|
|
10736
|
+
"kind": "javascript-module",
|
|
10737
|
+
"path": "src/notification/Notification.ts",
|
|
10738
|
+
"declarations": [
|
|
10739
|
+
{
|
|
10740
|
+
"kind": "class",
|
|
10741
|
+
"description": "Notifications provide important information that requires action or acknowledgement.\nA notification is displayed until the user dismisses it.",
|
|
10742
|
+
"name": "Notification",
|
|
10743
|
+
"slots": [
|
|
10744
|
+
{
|
|
10745
|
+
"description": "Default slot used for the notification text/message.",
|
|
10746
|
+
"name": ""
|
|
10747
|
+
},
|
|
10748
|
+
{
|
|
10749
|
+
"description": "Slot used for the notification icon.",
|
|
10750
|
+
"name": "icon"
|
|
10751
|
+
}
|
|
10752
|
+
],
|
|
10753
|
+
"members": [
|
|
10754
|
+
{
|
|
10755
|
+
"kind": "field",
|
|
10756
|
+
"name": "localize",
|
|
10757
|
+
"privacy": "private",
|
|
10758
|
+
"default": "new LocalizeController<\"nord-notification\">(this)"
|
|
10759
|
+
},
|
|
10760
|
+
{
|
|
10761
|
+
"kind": "field",
|
|
10762
|
+
"name": "notificationRef",
|
|
10763
|
+
"privacy": "protected",
|
|
10764
|
+
"inheritedFrom": {
|
|
10765
|
+
"name": "NotificationMixin",
|
|
10766
|
+
"module": "src/common/mixins/NotificationMixin.ts"
|
|
10767
|
+
}
|
|
10768
|
+
},
|
|
10769
|
+
{
|
|
10770
|
+
"kind": "field",
|
|
10771
|
+
"name": "dismissed",
|
|
10772
|
+
"type": {
|
|
10773
|
+
"text": "boolean"
|
|
10774
|
+
},
|
|
10775
|
+
"privacy": "protected",
|
|
10776
|
+
"default": "false",
|
|
10777
|
+
"inheritedFrom": {
|
|
10778
|
+
"name": "NotificationMixin",
|
|
10779
|
+
"module": "src/common/mixins/NotificationMixin.ts"
|
|
10780
|
+
}
|
|
10781
|
+
},
|
|
10782
|
+
{
|
|
10783
|
+
"kind": "method",
|
|
10784
|
+
"name": "dismiss",
|
|
10785
|
+
"description": "Programmatically dismiss the notification.\nThe returned promise resolves when notification's exit animation is complete.",
|
|
10786
|
+
"inheritedFrom": {
|
|
10787
10787
|
"name": "NotificationMixin",
|
|
10788
10788
|
"module": "src/common/mixins/NotificationMixin.ts"
|
|
10789
10789
|
}
|
|
@@ -10873,63 +10873,6 @@
|
|
|
10873
10873
|
}
|
|
10874
10874
|
]
|
|
10875
10875
|
},
|
|
10876
|
-
{
|
|
10877
|
-
"kind": "javascript-module",
|
|
10878
|
-
"path": "src/notification-group/NotificationGroup.ts",
|
|
10879
|
-
"declarations": [
|
|
10880
|
-
{
|
|
10881
|
-
"kind": "class",
|
|
10882
|
-
"description": "Notification group is used to position and style a group of notifications.",
|
|
10883
|
-
"name": "NotificationGroup",
|
|
10884
|
-
"slots": [
|
|
10885
|
-
{
|
|
10886
|
-
"description": "Default slot in which to place notifications.",
|
|
10887
|
-
"name": ""
|
|
10888
|
-
}
|
|
10889
|
-
],
|
|
10890
|
-
"members": [],
|
|
10891
|
-
"events": [
|
|
10892
|
-
{
|
|
10893
|
-
"type": {
|
|
10894
|
-
"text": "NordEvent"
|
|
10895
|
-
},
|
|
10896
|
-
"description": "Fired when a notification is dismissed, and its exit animation has completed. This event should be used to remove the dismissed notification from the DOM.",
|
|
10897
|
-
"name": "dismiss"
|
|
10898
|
-
}
|
|
10899
|
-
],
|
|
10900
|
-
"superclass": {
|
|
10901
|
-
"name": "LitElement",
|
|
10902
|
-
"package": "lit"
|
|
10903
|
-
},
|
|
10904
|
-
"localization": [],
|
|
10905
|
-
"status": "ready",
|
|
10906
|
-
"category": "feedback",
|
|
10907
|
-
"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 in combination with [Notification](/components/notification/) so that notifications get styled and positioned correctly.\n- Add as close to the start of your main content area as possible.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping anything other than notification components\n\n</div>\n\n---\n\n## Content guidelines\n\nNotification content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Patient arrived</div>\n\nWhen writing the notification content, be concise. Keep content to 1 to 2 sentence:\n\n<div class=\"n-usage n-usage-do\">You’ve reached the limit of 30 users included in your plan. Upgrade to add more.</div>\n<div class=\"n-usage n-usage-dont\">You have reached the user limit. Your clinic can only have a maximum of 30 users. To add more users, remove users you no longer need or upgrade your plan to add more.</div>\n\nWhen writing the notification 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\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen Arrived To Clinic With Pixie Cat.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen arrived to clinic with Pixie cat</div>\n\nAction link labels in notifications 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\">Start consultation</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing action link 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\">Start consultation</div>\n<div class=\"n-usage n-usage-dont\">Start Consultation</div>\n\nAvoid unnecessary words and articles in action link 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",
|
|
10908
|
-
"examples": [],
|
|
10909
|
-
"dependencies": [],
|
|
10910
|
-
"tagName": "nord-notification-group",
|
|
10911
|
-
"customElement": true
|
|
10912
|
-
}
|
|
10913
|
-
],
|
|
10914
|
-
"exports": [
|
|
10915
|
-
{
|
|
10916
|
-
"kind": "js",
|
|
10917
|
-
"name": "default",
|
|
10918
|
-
"declaration": {
|
|
10919
|
-
"name": "NotificationGroup",
|
|
10920
|
-
"module": "src/notification-group/NotificationGroup.ts"
|
|
10921
|
-
}
|
|
10922
|
-
},
|
|
10923
|
-
{
|
|
10924
|
-
"kind": "custom-element-definition",
|
|
10925
|
-
"name": "nord-notification-group",
|
|
10926
|
-
"declaration": {
|
|
10927
|
-
"name": "NotificationGroup",
|
|
10928
|
-
"module": "src/notification-group/NotificationGroup.ts"
|
|
10929
|
-
}
|
|
10930
|
-
}
|
|
10931
|
-
]
|
|
10932
|
-
},
|
|
10933
10876
|
{
|
|
10934
10877
|
"kind": "javascript-module",
|
|
10935
10878
|
"path": "src/popout/Popout.ts",
|
|
@@ -11273,6 +11216,63 @@
|
|
|
11273
11216
|
}
|
|
11274
11217
|
]
|
|
11275
11218
|
},
|
|
11219
|
+
{
|
|
11220
|
+
"kind": "javascript-module",
|
|
11221
|
+
"path": "src/notification-group/NotificationGroup.ts",
|
|
11222
|
+
"declarations": [
|
|
11223
|
+
{
|
|
11224
|
+
"kind": "class",
|
|
11225
|
+
"description": "Notification group is used to position and style a group of notifications.",
|
|
11226
|
+
"name": "NotificationGroup",
|
|
11227
|
+
"slots": [
|
|
11228
|
+
{
|
|
11229
|
+
"description": "Default slot in which to place notifications.",
|
|
11230
|
+
"name": ""
|
|
11231
|
+
}
|
|
11232
|
+
],
|
|
11233
|
+
"members": [],
|
|
11234
|
+
"events": [
|
|
11235
|
+
{
|
|
11236
|
+
"type": {
|
|
11237
|
+
"text": "NordEvent"
|
|
11238
|
+
},
|
|
11239
|
+
"description": "Fired when a notification is dismissed, and its exit animation has completed. This event should be used to remove the dismissed notification from the DOM.",
|
|
11240
|
+
"name": "dismiss"
|
|
11241
|
+
}
|
|
11242
|
+
],
|
|
11243
|
+
"superclass": {
|
|
11244
|
+
"name": "LitElement",
|
|
11245
|
+
"package": "lit"
|
|
11246
|
+
},
|
|
11247
|
+
"localization": [],
|
|
11248
|
+
"status": "ready",
|
|
11249
|
+
"category": "feedback",
|
|
11250
|
+
"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 in combination with [Notification](/components/notification/) so that notifications get styled and positioned correctly.\n- Add as close to the start of your main content area as possible.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping anything other than notification components\n\n</div>\n\n---\n\n## Content guidelines\n\nNotification content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Patient arrived</div>\n\nWhen writing the notification content, be concise. Keep content to 1 to 2 sentence:\n\n<div class=\"n-usage n-usage-do\">You’ve reached the limit of 30 users included in your plan. Upgrade to add more.</div>\n<div class=\"n-usage n-usage-dont\">You have reached the user limit. Your clinic can only have a maximum of 30 users. To add more users, remove users you no longer need or upgrade your plan to add more.</div>\n\nWhen writing the notification 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\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen Arrived To Clinic With Pixie Cat.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen arrived to clinic with Pixie cat</div>\n\nAction link labels in notifications 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\">Start consultation</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing action link 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\">Start consultation</div>\n<div class=\"n-usage n-usage-dont\">Start Consultation</div>\n\nAvoid unnecessary words and articles in action link 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",
|
|
11251
|
+
"examples": [],
|
|
11252
|
+
"dependencies": [],
|
|
11253
|
+
"tagName": "nord-notification-group",
|
|
11254
|
+
"customElement": true
|
|
11255
|
+
}
|
|
11256
|
+
],
|
|
11257
|
+
"exports": [
|
|
11258
|
+
{
|
|
11259
|
+
"kind": "js",
|
|
11260
|
+
"name": "default",
|
|
11261
|
+
"declaration": {
|
|
11262
|
+
"name": "NotificationGroup",
|
|
11263
|
+
"module": "src/notification-group/NotificationGroup.ts"
|
|
11264
|
+
}
|
|
11265
|
+
},
|
|
11266
|
+
{
|
|
11267
|
+
"kind": "custom-element-definition",
|
|
11268
|
+
"name": "nord-notification-group",
|
|
11269
|
+
"declaration": {
|
|
11270
|
+
"name": "NotificationGroup",
|
|
11271
|
+
"module": "src/notification-group/NotificationGroup.ts"
|
|
11272
|
+
}
|
|
11273
|
+
}
|
|
11274
|
+
]
|
|
11275
|
+
},
|
|
11276
11276
|
{
|
|
11277
11277
|
"kind": "javascript-module",
|
|
11278
11278
|
"path": "src/progress-bar/ProgressBar.ts",
|
|
@@ -11458,7 +11458,7 @@
|
|
|
11458
11458
|
"kind": "field",
|
|
11459
11459
|
"name": "canvas",
|
|
11460
11460
|
"type": {
|
|
11461
|
-
"text": "
|
|
11461
|
+
"text": "HTMLCanvasElement"
|
|
11462
11462
|
},
|
|
11463
11463
|
"privacy": "private"
|
|
11464
11464
|
},
|
|
@@ -11634,32 +11634,17 @@
|
|
|
11634
11634
|
},
|
|
11635
11635
|
{
|
|
11636
11636
|
"kind": "javascript-module",
|
|
11637
|
-
"path": "src/
|
|
11637
|
+
"path": "src/radio/Radio.ts",
|
|
11638
11638
|
"declarations": [
|
|
11639
11639
|
{
|
|
11640
11640
|
"kind": "class",
|
|
11641
|
-
"description": "
|
|
11642
|
-
"name": "
|
|
11641
|
+
"description": "Radio buttons are graphical user interface elements that allow user to choose only one option from\na predefined set of mutually exclusive options.",
|
|
11642
|
+
"name": "Radio",
|
|
11643
11643
|
"cssProperties": [
|
|
11644
11644
|
{
|
|
11645
|
-
"description": "Controls the
|
|
11646
|
-
"name": "--n-
|
|
11647
|
-
"default": "
|
|
11648
|
-
},
|
|
11649
|
-
{
|
|
11650
|
-
"description": "Controls the color of the portion of the track that represents the current value.",
|
|
11651
|
-
"name": "--n-range-track-color-active",
|
|
11652
|
-
"default": "var(--n-color-accent)"
|
|
11653
|
-
},
|
|
11654
|
-
{
|
|
11655
|
-
"description": "Controls the color of the portion of the track that represents the remaining value.",
|
|
11656
|
-
"name": "--n-range-track-color-inactive",
|
|
11657
|
-
"default": "var(--n-color-border-strong)"
|
|
11658
|
-
},
|
|
11659
|
-
{
|
|
11660
|
-
"description": "Controls the height of the track.",
|
|
11661
|
-
"name": "--n-range-track-size",
|
|
11662
|
-
"default": "3px"
|
|
11645
|
+
"description": "Controls the text color of the label, using our [color tokens](/tokens/#color).",
|
|
11646
|
+
"name": "--n-label-color",
|
|
11647
|
+
"default": "var(--n-color-text)"
|
|
11663
11648
|
}
|
|
11664
11649
|
],
|
|
11665
11650
|
"slots": [
|
|
@@ -11679,66 +11664,38 @@
|
|
|
11679
11664
|
"members": [
|
|
11680
11665
|
{
|
|
11681
11666
|
"kind": "field",
|
|
11682
|
-
"name": "
|
|
11683
|
-
"privacy": "private",
|
|
11684
|
-
"default": "new DirectionController(this)"
|
|
11685
|
-
},
|
|
11686
|
-
{
|
|
11687
|
-
"kind": "field",
|
|
11688
|
-
"name": "min",
|
|
11689
|
-
"type": {
|
|
11690
|
-
"text": "number"
|
|
11691
|
-
},
|
|
11692
|
-
"default": "0",
|
|
11693
|
-
"description": "Minimum value for the range slider.",
|
|
11694
|
-
"attribute": "min",
|
|
11695
|
-
"reflects": true
|
|
11696
|
-
},
|
|
11697
|
-
{
|
|
11698
|
-
"kind": "field",
|
|
11699
|
-
"name": "max",
|
|
11667
|
+
"name": "inputId",
|
|
11700
11668
|
"type": {
|
|
11701
|
-
"text": "
|
|
11669
|
+
"text": "string"
|
|
11702
11670
|
},
|
|
11703
|
-
"
|
|
11704
|
-
"
|
|
11705
|
-
"
|
|
11706
|
-
|
|
11671
|
+
"privacy": "protected",
|
|
11672
|
+
"default": "\"input\"",
|
|
11673
|
+
"inheritedFrom": {
|
|
11674
|
+
"name": "FormAssociatedMixin",
|
|
11675
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11676
|
+
}
|
|
11707
11677
|
},
|
|
11708
11678
|
{
|
|
11709
11679
|
"kind": "field",
|
|
11710
|
-
"name": "
|
|
11680
|
+
"name": "hintId",
|
|
11711
11681
|
"type": {
|
|
11712
|
-
"text": "
|
|
11682
|
+
"text": "string"
|
|
11713
11683
|
},
|
|
11714
|
-
"
|
|
11715
|
-
"
|
|
11716
|
-
"
|
|
11717
|
-
|
|
11684
|
+
"privacy": "protected",
|
|
11685
|
+
"default": "\"hint\"",
|
|
11686
|
+
"inheritedFrom": {
|
|
11687
|
+
"name": "FormAssociatedMixin",
|
|
11688
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11689
|
+
}
|
|
11718
11690
|
},
|
|
11719
11691
|
{
|
|
11720
11692
|
"kind": "field",
|
|
11721
|
-
"name": "
|
|
11693
|
+
"name": "errorId",
|
|
11722
11694
|
"type": {
|
|
11723
|
-
"text": "
|
|
11695
|
+
"text": "string"
|
|
11724
11696
|
},
|
|
11725
|
-
"default": "false",
|
|
11726
|
-
"description": "Controls whether the input expands to fill the width of its container.",
|
|
11727
|
-
"attribute": "expand",
|
|
11728
|
-
"reflects": true
|
|
11729
|
-
},
|
|
11730
|
-
{
|
|
11731
|
-
"kind": "method",
|
|
11732
|
-
"name": "handleInput",
|
|
11733
11697
|
"privacy": "protected",
|
|
11734
|
-
"
|
|
11735
|
-
{
|
|
11736
|
-
"name": "e",
|
|
11737
|
-
"type": {
|
|
11738
|
-
"text": "Event"
|
|
11739
|
-
}
|
|
11740
|
-
}
|
|
11741
|
-
],
|
|
11698
|
+
"default": "\"error\"",
|
|
11742
11699
|
"inheritedFrom": {
|
|
11743
11700
|
"name": "FormAssociatedMixin",
|
|
11744
11701
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11746,9 +11703,10 @@
|
|
|
11746
11703
|
},
|
|
11747
11704
|
{
|
|
11748
11705
|
"kind": "field",
|
|
11749
|
-
"name": "
|
|
11706
|
+
"name": "hintSlot",
|
|
11750
11707
|
"privacy": "protected",
|
|
11751
|
-
"default": "new
|
|
11708
|
+
"default": "new LightSlotController(this, { slotName: \"hint\", render: () => (this.hint ? html`<div slot=\"hint-internal\" id=${this.hintId}>${this.hint}</div>` : nothing), syncLightDom: element => { element.id = this.hintId }, })",
|
|
11709
|
+
"description": "For accessibility reasons, we render some parts of the component to the light DOM.",
|
|
11752
11710
|
"inheritedFrom": {
|
|
11753
11711
|
"name": "FormAssociatedMixin",
|
|
11754
11712
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11756,9 +11714,9 @@
|
|
|
11756
11714
|
},
|
|
11757
11715
|
{
|
|
11758
11716
|
"kind": "field",
|
|
11759
|
-
"name": "
|
|
11717
|
+
"name": "labelSlot",
|
|
11760
11718
|
"privacy": "protected",
|
|
11761
|
-
"default": "new
|
|
11719
|
+
"default": "new LightSlotController(this, { slotName: \"label\", render: () => (this.label ? html`<label slot=\"label-internal\" for=${this.inputId}>${this.label}</label>` : nothing), syncLightDom: element => { if (!isLabel(element)) { // eslint-disable-next-line no-console console.warn(`NORD: Only <label> elements should be placed in radio's \"label\" slot`) } else { element.htmlFor = this.inputId } }, })",
|
|
11762
11720
|
"inheritedFrom": {
|
|
11763
11721
|
"name": "FormAssociatedMixin",
|
|
11764
11722
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11766,9 +11724,9 @@
|
|
|
11766
11724
|
},
|
|
11767
11725
|
{
|
|
11768
11726
|
"kind": "field",
|
|
11769
|
-
"name": "
|
|
11727
|
+
"name": "errorSlot",
|
|
11770
11728
|
"privacy": "protected",
|
|
11771
|
-
"default": "new
|
|
11729
|
+
"default": "new LightSlotController(this, { slotName: \"error\", render: () => (this.error ? html`<div slot=\"error-internal\" id=${this.errorId}>${this.error}</div>` : nothing), syncLightDom: element => { element.id = this.hintId }, })",
|
|
11772
11730
|
"inheritedFrom": {
|
|
11773
11731
|
"name": "FormAssociatedMixin",
|
|
11774
11732
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11776,13 +11734,9 @@
|
|
|
11776
11734
|
},
|
|
11777
11735
|
{
|
|
11778
11736
|
"kind": "field",
|
|
11779
|
-
"name": "
|
|
11737
|
+
"name": "inputSlot",
|
|
11780
11738
|
"privacy": "protected",
|
|
11781
|
-
"default": "new
|
|
11782
|
-
"inheritedFrom": {
|
|
11783
|
-
"name": "FormAssociatedMixin",
|
|
11784
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11785
|
-
}
|
|
11739
|
+
"default": "new LightDomController(this, { render: () => html` <input slot=\"input\" @blur=${this.handleBlur} @focus=${this.handleFocus} ${ref(this.focusableRef)} class=\"n-input\" id=${this.inputId} type=\"radio\" name=${cond(this.name)} .value=${cond(this.value)} .checked=${this.checked} ?disabled=${this.disabled} ?required=${this.required} aria-describedby=${cond(this.getDescribedBy())} aria-invalid=${cond(this.getInvalid())} form=${cond(this._formId)} /> `, })"
|
|
11786
11740
|
},
|
|
11787
11741
|
{
|
|
11788
11742
|
"kind": "field",
|
|
@@ -11796,12 +11750,50 @@
|
|
|
11796
11750
|
},
|
|
11797
11751
|
{
|
|
11798
11752
|
"kind": "field",
|
|
11799
|
-
"name": "
|
|
11753
|
+
"name": "checked",
|
|
11800
11754
|
"type": {
|
|
11801
|
-
"text": "
|
|
11755
|
+
"text": "boolean"
|
|
11802
11756
|
},
|
|
11757
|
+
"default": "false",
|
|
11758
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
11759
|
+
"attribute": "checked",
|
|
11760
|
+
"reflects": true
|
|
11761
|
+
},
|
|
11762
|
+
{
|
|
11763
|
+
"kind": "method",
|
|
11764
|
+
"name": "handleCheckedChange",
|
|
11803
11765
|
"privacy": "protected",
|
|
11804
|
-
"
|
|
11766
|
+
"parameters": [
|
|
11767
|
+
{
|
|
11768
|
+
"name": "previousChecked",
|
|
11769
|
+
"type": {
|
|
11770
|
+
"text": "boolean"
|
|
11771
|
+
}
|
|
11772
|
+
}
|
|
11773
|
+
]
|
|
11774
|
+
},
|
|
11775
|
+
{
|
|
11776
|
+
"kind": "method",
|
|
11777
|
+
"name": "uncheckSiblings",
|
|
11778
|
+
"privacy": "private"
|
|
11779
|
+
},
|
|
11780
|
+
{
|
|
11781
|
+
"kind": "method",
|
|
11782
|
+
"name": "handleChange",
|
|
11783
|
+
"privacy": "protected",
|
|
11784
|
+
"parameters": [
|
|
11785
|
+
{
|
|
11786
|
+
"name": "e",
|
|
11787
|
+
"type": {
|
|
11788
|
+
"text": "Event"
|
|
11789
|
+
}
|
|
11790
|
+
}
|
|
11791
|
+
],
|
|
11792
|
+
"return": {
|
|
11793
|
+
"type": {
|
|
11794
|
+
"text": "void"
|
|
11795
|
+
}
|
|
11796
|
+
},
|
|
11805
11797
|
"inheritedFrom": {
|
|
11806
11798
|
"name": "FormAssociatedMixin",
|
|
11807
11799
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11809,25 +11801,34 @@
|
|
|
11809
11801
|
},
|
|
11810
11802
|
{
|
|
11811
11803
|
"kind": "field",
|
|
11812
|
-
"name": "
|
|
11804
|
+
"name": "handleBlur",
|
|
11805
|
+
"privacy": "private"
|
|
11806
|
+
},
|
|
11807
|
+
{
|
|
11808
|
+
"kind": "field",
|
|
11809
|
+
"name": "handleFocus",
|
|
11810
|
+
"privacy": "private"
|
|
11811
|
+
},
|
|
11812
|
+
{
|
|
11813
|
+
"kind": "field",
|
|
11814
|
+
"name": "size",
|
|
11813
11815
|
"type": {
|
|
11814
|
-
"text": "
|
|
11816
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
11815
11817
|
},
|
|
11816
|
-
"
|
|
11817
|
-
"
|
|
11818
|
+
"default": "\"m\"",
|
|
11819
|
+
"description": "The size of the component.",
|
|
11820
|
+
"attribute": "size",
|
|
11821
|
+
"reflects": true,
|
|
11818
11822
|
"inheritedFrom": {
|
|
11819
|
-
"name": "
|
|
11820
|
-
"module": "src/common/mixins/
|
|
11823
|
+
"name": "SizeMixin",
|
|
11824
|
+
"module": "src/common/mixins/SizeMixin.ts"
|
|
11821
11825
|
}
|
|
11822
11826
|
},
|
|
11823
11827
|
{
|
|
11824
11828
|
"kind": "field",
|
|
11825
|
-
"name": "
|
|
11826
|
-
"type": {
|
|
11827
|
-
"text": "string"
|
|
11828
|
-
},
|
|
11829
|
+
"name": "formData",
|
|
11829
11830
|
"privacy": "protected",
|
|
11830
|
-
"default": "
|
|
11831
|
+
"default": "new FormDataController(this, { value: () => this.formValue })",
|
|
11831
11832
|
"inheritedFrom": {
|
|
11832
11833
|
"name": "FormAssociatedMixin",
|
|
11833
11834
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11937,7 +11938,7 @@
|
|
|
11937
11938
|
},
|
|
11938
11939
|
{
|
|
11939
11940
|
"kind": "method",
|
|
11940
|
-
"name": "
|
|
11941
|
+
"name": "handleInput",
|
|
11941
11942
|
"privacy": "protected",
|
|
11942
11943
|
"parameters": [
|
|
11943
11944
|
{
|
|
@@ -12017,35 +12018,6 @@
|
|
|
12017
12018
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12018
12019
|
}
|
|
12019
12020
|
},
|
|
12020
|
-
{
|
|
12021
|
-
"kind": "field",
|
|
12022
|
-
"name": "autocomplete",
|
|
12023
|
-
"type": {
|
|
12024
|
-
"text": "AutocompleteAttribute"
|
|
12025
|
-
},
|
|
12026
|
-
"default": "\"off\"",
|
|
12027
|
-
"description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
|
|
12028
|
-
"attribute": "autocomplete",
|
|
12029
|
-
"inheritedFrom": {
|
|
12030
|
-
"name": "AutocompleteMixin",
|
|
12031
|
-
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
12032
|
-
}
|
|
12033
|
-
},
|
|
12034
|
-
{
|
|
12035
|
-
"kind": "field",
|
|
12036
|
-
"name": "readonly",
|
|
12037
|
-
"type": {
|
|
12038
|
-
"text": "boolean"
|
|
12039
|
-
},
|
|
12040
|
-
"default": "false",
|
|
12041
|
-
"description": "Makes the component readonly, so that it is not editable.\nReadonly differs from disabled in that readonly fields are still focusable and will be submitted with a form.",
|
|
12042
|
-
"attribute": "readonly",
|
|
12043
|
-
"reflects": true,
|
|
12044
|
-
"inheritedFrom": {
|
|
12045
|
-
"name": "ReadonlyMixin",
|
|
12046
|
-
"module": "src/common/mixins/ReadonlyMixin.ts"
|
|
12047
|
-
}
|
|
12048
|
-
},
|
|
12049
12021
|
{
|
|
12050
12022
|
"kind": "field",
|
|
12051
12023
|
"name": "disabled",
|
|
@@ -12174,96 +12146,58 @@
|
|
|
12174
12146
|
}
|
|
12175
12147
|
}
|
|
12176
12148
|
],
|
|
12177
|
-
"
|
|
12149
|
+
"attributes": [
|
|
12178
12150
|
{
|
|
12179
|
-
"name": "
|
|
12151
|
+
"name": "checked",
|
|
12180
12152
|
"type": {
|
|
12181
|
-
"text": "
|
|
12153
|
+
"text": "boolean"
|
|
12182
12154
|
},
|
|
12183
|
-
"
|
|
12155
|
+
"default": "false",
|
|
12156
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
12157
|
+
"fieldName": "checked"
|
|
12158
|
+
},
|
|
12159
|
+
{
|
|
12160
|
+
"name": "size",
|
|
12161
|
+
"type": {
|
|
12162
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
12163
|
+
},
|
|
12164
|
+
"default": "\"m\"",
|
|
12165
|
+
"description": "The size of the component.",
|
|
12166
|
+
"fieldName": "size",
|
|
12167
|
+
"inheritedFrom": {
|
|
12168
|
+
"name": "SizeMixin",
|
|
12169
|
+
"module": "src/common/mixins/SizeMixin.ts"
|
|
12170
|
+
}
|
|
12171
|
+
},
|
|
12172
|
+
{
|
|
12173
|
+
"name": "label",
|
|
12174
|
+
"type": {
|
|
12175
|
+
"text": "string"
|
|
12176
|
+
},
|
|
12177
|
+
"default": "\"\"",
|
|
12178
|
+
"description": "Label for the input.",
|
|
12179
|
+
"fieldName": "label",
|
|
12184
12180
|
"inheritedFrom": {
|
|
12185
12181
|
"name": "FormAssociatedMixin",
|
|
12186
12182
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12187
12183
|
}
|
|
12188
12184
|
},
|
|
12189
12185
|
{
|
|
12190
|
-
"name": "
|
|
12186
|
+
"name": "hint",
|
|
12191
12187
|
"type": {
|
|
12192
|
-
"text": "
|
|
12188
|
+
"text": "string | undefined"
|
|
12193
12189
|
},
|
|
12194
|
-
"description": "
|
|
12190
|
+
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
12191
|
+
"fieldName": "hint",
|
|
12195
12192
|
"inheritedFrom": {
|
|
12196
12193
|
"name": "FormAssociatedMixin",
|
|
12197
12194
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12198
12195
|
}
|
|
12199
|
-
}
|
|
12200
|
-
],
|
|
12201
|
-
"attributes": [
|
|
12196
|
+
},
|
|
12202
12197
|
{
|
|
12203
|
-
"name": "
|
|
12198
|
+
"name": "hide-label",
|
|
12204
12199
|
"type": {
|
|
12205
|
-
"text": "
|
|
12206
|
-
},
|
|
12207
|
-
"default": "0",
|
|
12208
|
-
"description": "Minimum value for the range slider.",
|
|
12209
|
-
"fieldName": "min"
|
|
12210
|
-
},
|
|
12211
|
-
{
|
|
12212
|
-
"name": "max",
|
|
12213
|
-
"type": {
|
|
12214
|
-
"text": "number"
|
|
12215
|
-
},
|
|
12216
|
-
"default": "10",
|
|
12217
|
-
"description": "Maximum value for the range slider.",
|
|
12218
|
-
"fieldName": "max"
|
|
12219
|
-
},
|
|
12220
|
-
{
|
|
12221
|
-
"name": "step",
|
|
12222
|
-
"type": {
|
|
12223
|
-
"text": "number"
|
|
12224
|
-
},
|
|
12225
|
-
"default": "1",
|
|
12226
|
-
"description": "Step amount for the range slider.",
|
|
12227
|
-
"fieldName": "step"
|
|
12228
|
-
},
|
|
12229
|
-
{
|
|
12230
|
-
"name": "expand",
|
|
12231
|
-
"type": {
|
|
12232
|
-
"text": "boolean"
|
|
12233
|
-
},
|
|
12234
|
-
"default": "false",
|
|
12235
|
-
"description": "Controls whether the input expands to fill the width of its container.",
|
|
12236
|
-
"fieldName": "expand"
|
|
12237
|
-
},
|
|
12238
|
-
{
|
|
12239
|
-
"name": "label",
|
|
12240
|
-
"type": {
|
|
12241
|
-
"text": "string"
|
|
12242
|
-
},
|
|
12243
|
-
"default": "\"\"",
|
|
12244
|
-
"description": "Label for the input.",
|
|
12245
|
-
"fieldName": "label",
|
|
12246
|
-
"inheritedFrom": {
|
|
12247
|
-
"name": "FormAssociatedMixin",
|
|
12248
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12249
|
-
}
|
|
12250
|
-
},
|
|
12251
|
-
{
|
|
12252
|
-
"name": "hint",
|
|
12253
|
-
"type": {
|
|
12254
|
-
"text": "string | undefined"
|
|
12255
|
-
},
|
|
12256
|
-
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
12257
|
-
"fieldName": "hint",
|
|
12258
|
-
"inheritedFrom": {
|
|
12259
|
-
"name": "FormAssociatedMixin",
|
|
12260
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12261
|
-
}
|
|
12262
|
-
},
|
|
12263
|
-
{
|
|
12264
|
-
"name": "hide-label",
|
|
12265
|
-
"type": {
|
|
12266
|
-
"text": "boolean"
|
|
12200
|
+
"text": "boolean"
|
|
12267
12201
|
},
|
|
12268
12202
|
"default": "false",
|
|
12269
12203
|
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
@@ -12323,32 +12257,6 @@
|
|
|
12323
12257
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12324
12258
|
}
|
|
12325
12259
|
},
|
|
12326
|
-
{
|
|
12327
|
-
"name": "autocomplete",
|
|
12328
|
-
"type": {
|
|
12329
|
-
"text": "AutocompleteAttribute"
|
|
12330
|
-
},
|
|
12331
|
-
"default": "\"off\"",
|
|
12332
|
-
"description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
|
|
12333
|
-
"fieldName": "autocomplete",
|
|
12334
|
-
"inheritedFrom": {
|
|
12335
|
-
"name": "AutocompleteMixin",
|
|
12336
|
-
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
12337
|
-
}
|
|
12338
|
-
},
|
|
12339
|
-
{
|
|
12340
|
-
"name": "readonly",
|
|
12341
|
-
"type": {
|
|
12342
|
-
"text": "boolean"
|
|
12343
|
-
},
|
|
12344
|
-
"default": "false",
|
|
12345
|
-
"description": "Makes the component readonly, so that it is not editable.\nReadonly differs from disabled in that readonly fields are still focusable and will be submitted with a form.",
|
|
12346
|
-
"fieldName": "readonly",
|
|
12347
|
-
"inheritedFrom": {
|
|
12348
|
-
"name": "ReadonlyMixin",
|
|
12349
|
-
"module": "src/common/mixins/ReadonlyMixin.ts"
|
|
12350
|
-
}
|
|
12351
|
-
},
|
|
12352
12260
|
{
|
|
12353
12261
|
"name": "disabled",
|
|
12354
12262
|
"type": {
|
|
@@ -12402,16 +12310,12 @@
|
|
|
12402
12310
|
],
|
|
12403
12311
|
"mixins": [
|
|
12404
12312
|
{
|
|
12405
|
-
"name": "
|
|
12406
|
-
"module": "/src/common/mixins/
|
|
12407
|
-
},
|
|
12408
|
-
{
|
|
12409
|
-
"name": "AutocompleteMixin",
|
|
12410
|
-
"module": "/src/common/mixins/AutocompleteMixin.js"
|
|
12313
|
+
"name": "SizeMixin",
|
|
12314
|
+
"module": "/src/common/mixins/SizeMixin.js"
|
|
12411
12315
|
},
|
|
12412
12316
|
{
|
|
12413
|
-
"name": "
|
|
12414
|
-
"module": "/src/common/mixins/
|
|
12317
|
+
"name": "FormAssociatedMixin",
|
|
12318
|
+
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
12415
12319
|
},
|
|
12416
12320
|
{
|
|
12417
12321
|
"name": "InputMixin",
|
|
@@ -12429,11 +12333,35 @@
|
|
|
12429
12333
|
"localization": [],
|
|
12430
12334
|
"status": "ready",
|
|
12431
12335
|
"category": "form",
|
|
12432
|
-
"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
|
|
12336
|
+
"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 a radio component when users can only select one option from a list.\n- Favor radios over a select component when there are a small number of options. This reduces the number of clicks a user has to make, increasing efficiency.\n- Radio buttons are grouped by their `name` attribute. Therefore, it is crucial that the same `name` is used for a group of radios.\n- Give each radio within a group a unique `value`.\n- Radios **must** be used in combination with a fieldset component.\n- In most cases, a stack component should be used to layout a group of radio buttons.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place interactive content (buttons, links etc) inside the label.\n- Don’t use when a user can select more than one option. In this case, use a checkbox instead.\n- Don’t use for “accepting terms of service” and similar functionality. Use a checkbox instead.\n- When you have more than 10 options to choose from. Consider using a select instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nRadio button labels should be clear, accurate and predictable. It should be possible for the user to understand what they are enabling or disabling:\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">Option 1</div>\n\nWhen writing radio 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 ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Blue</div>\n<div class=\"n-usage n-usage-dont\">Blue.</div>\n\nDo not use commas or semicolons at the end of each line\n\n<div class=\"n-usage n-usage-do\">Patient</div>\n<div class=\"n-usage n-usage-dont\">Patient;</div>\n\n---\n\n## Additional considerations\n\n- Hint text can be used to offer further information or explanation for an option.\n- Once a radio has been selected, users cannot return to having no radios selected without refreshing their browser window. Therefore, you should include \"None of the above\" or \"I do not know\" if they are valid options.\n- In most cases, radio buttons should be stacked vertically. However, radio buttons can be stacked horizontally when there are only two options with short labels. An example might be a yes/no question.\n",
|
|
12433
12337
|
"examples": [],
|
|
12434
12338
|
"dependencies": [],
|
|
12435
|
-
"tagName": "nord-
|
|
12436
|
-
"customElement": true
|
|
12339
|
+
"tagName": "nord-radio",
|
|
12340
|
+
"customElement": true,
|
|
12341
|
+
"events": [
|
|
12342
|
+
{
|
|
12343
|
+
"name": "input",
|
|
12344
|
+
"type": {
|
|
12345
|
+
"text": "NordEvent"
|
|
12346
|
+
},
|
|
12347
|
+
"description": "Fired as the user types into the input.",
|
|
12348
|
+
"inheritedFrom": {
|
|
12349
|
+
"name": "FormAssociatedMixin",
|
|
12350
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12351
|
+
}
|
|
12352
|
+
},
|
|
12353
|
+
{
|
|
12354
|
+
"name": "change",
|
|
12355
|
+
"type": {
|
|
12356
|
+
"text": "NordEvent"
|
|
12357
|
+
},
|
|
12358
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
12359
|
+
"inheritedFrom": {
|
|
12360
|
+
"name": "FormAssociatedMixin",
|
|
12361
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12362
|
+
}
|
|
12363
|
+
}
|
|
12364
|
+
]
|
|
12437
12365
|
}
|
|
12438
12366
|
],
|
|
12439
12367
|
"exports": [
|
|
@@ -12441,33 +12369,48 @@
|
|
|
12441
12369
|
"kind": "js",
|
|
12442
12370
|
"name": "default",
|
|
12443
12371
|
"declaration": {
|
|
12444
|
-
"name": "
|
|
12445
|
-
"module": "src/
|
|
12372
|
+
"name": "Radio",
|
|
12373
|
+
"module": "src/radio/Radio.ts"
|
|
12446
12374
|
}
|
|
12447
12375
|
},
|
|
12448
12376
|
{
|
|
12449
12377
|
"kind": "custom-element-definition",
|
|
12450
|
-
"name": "nord-
|
|
12378
|
+
"name": "nord-radio",
|
|
12451
12379
|
"declaration": {
|
|
12452
|
-
"name": "
|
|
12453
|
-
"module": "src/
|
|
12380
|
+
"name": "Radio",
|
|
12381
|
+
"module": "src/radio/Radio.ts"
|
|
12454
12382
|
}
|
|
12455
12383
|
}
|
|
12456
12384
|
]
|
|
12457
12385
|
},
|
|
12458
12386
|
{
|
|
12459
12387
|
"kind": "javascript-module",
|
|
12460
|
-
"path": "src/
|
|
12388
|
+
"path": "src/range/Range.ts",
|
|
12461
12389
|
"declarations": [
|
|
12462
12390
|
{
|
|
12463
12391
|
"kind": "class",
|
|
12464
|
-
"description": "
|
|
12465
|
-
"name": "
|
|
12392
|
+
"description": "Range input lets user specify a numeric value using a slider which\nmust be no less than a given value, and no more than another given value.",
|
|
12393
|
+
"name": "Range",
|
|
12466
12394
|
"cssProperties": [
|
|
12467
12395
|
{
|
|
12468
|
-
"description": "Controls the
|
|
12469
|
-
"name": "--n-
|
|
12470
|
-
"default": "
|
|
12396
|
+
"description": "Controls the size of the thumb.",
|
|
12397
|
+
"name": "--n-range-thumb-size",
|
|
12398
|
+
"default": "20px"
|
|
12399
|
+
},
|
|
12400
|
+
{
|
|
12401
|
+
"description": "Controls the color of the portion of the track that represents the current value.",
|
|
12402
|
+
"name": "--n-range-track-color-active",
|
|
12403
|
+
"default": "var(--n-color-accent)"
|
|
12404
|
+
},
|
|
12405
|
+
{
|
|
12406
|
+
"description": "Controls the color of the portion of the track that represents the remaining value.",
|
|
12407
|
+
"name": "--n-range-track-color-inactive",
|
|
12408
|
+
"default": "var(--n-color-border-strong)"
|
|
12409
|
+
},
|
|
12410
|
+
{
|
|
12411
|
+
"description": "Controls the height of the track.",
|
|
12412
|
+
"name": "--n-range-track-size",
|
|
12413
|
+
"default": "3px"
|
|
12471
12414
|
}
|
|
12472
12415
|
],
|
|
12473
12416
|
"slots": [
|
|
@@ -12487,38 +12430,66 @@
|
|
|
12487
12430
|
"members": [
|
|
12488
12431
|
{
|
|
12489
12432
|
"kind": "field",
|
|
12490
|
-
"name": "
|
|
12433
|
+
"name": "direction",
|
|
12434
|
+
"privacy": "private",
|
|
12435
|
+
"default": "new DirectionController(this)"
|
|
12436
|
+
},
|
|
12437
|
+
{
|
|
12438
|
+
"kind": "field",
|
|
12439
|
+
"name": "min",
|
|
12491
12440
|
"type": {
|
|
12492
|
-
"text": "
|
|
12441
|
+
"text": "number"
|
|
12493
12442
|
},
|
|
12494
|
-
"
|
|
12495
|
-
"
|
|
12496
|
-
"
|
|
12497
|
-
|
|
12498
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12499
|
-
}
|
|
12443
|
+
"default": "0",
|
|
12444
|
+
"description": "Minimum value for the range slider.",
|
|
12445
|
+
"attribute": "min",
|
|
12446
|
+
"reflects": true
|
|
12500
12447
|
},
|
|
12501
12448
|
{
|
|
12502
12449
|
"kind": "field",
|
|
12503
|
-
"name": "
|
|
12450
|
+
"name": "max",
|
|
12504
12451
|
"type": {
|
|
12505
|
-
"text": "
|
|
12452
|
+
"text": "number"
|
|
12506
12453
|
},
|
|
12507
|
-
"
|
|
12508
|
-
"
|
|
12509
|
-
"
|
|
12510
|
-
|
|
12511
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12512
|
-
}
|
|
12454
|
+
"default": "10",
|
|
12455
|
+
"description": "Maximum value for the range slider.",
|
|
12456
|
+
"attribute": "max",
|
|
12457
|
+
"reflects": true
|
|
12513
12458
|
},
|
|
12514
12459
|
{
|
|
12515
12460
|
"kind": "field",
|
|
12516
|
-
"name": "
|
|
12461
|
+
"name": "step",
|
|
12517
12462
|
"type": {
|
|
12518
|
-
"text": "
|
|
12463
|
+
"text": "number"
|
|
12464
|
+
},
|
|
12465
|
+
"default": "1",
|
|
12466
|
+
"description": "Step amount for the range slider.",
|
|
12467
|
+
"attribute": "step",
|
|
12468
|
+
"reflects": true
|
|
12469
|
+
},
|
|
12470
|
+
{
|
|
12471
|
+
"kind": "field",
|
|
12472
|
+
"name": "expand",
|
|
12473
|
+
"type": {
|
|
12474
|
+
"text": "boolean"
|
|
12519
12475
|
},
|
|
12476
|
+
"default": "false",
|
|
12477
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
12478
|
+
"attribute": "expand",
|
|
12479
|
+
"reflects": true
|
|
12480
|
+
},
|
|
12481
|
+
{
|
|
12482
|
+
"kind": "method",
|
|
12483
|
+
"name": "handleInput",
|
|
12520
12484
|
"privacy": "protected",
|
|
12521
|
-
"
|
|
12485
|
+
"parameters": [
|
|
12486
|
+
{
|
|
12487
|
+
"name": "e",
|
|
12488
|
+
"type": {
|
|
12489
|
+
"text": "Event"
|
|
12490
|
+
}
|
|
12491
|
+
}
|
|
12492
|
+
],
|
|
12522
12493
|
"inheritedFrom": {
|
|
12523
12494
|
"name": "FormAssociatedMixin",
|
|
12524
12495
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12526,10 +12497,9 @@
|
|
|
12526
12497
|
},
|
|
12527
12498
|
{
|
|
12528
12499
|
"kind": "field",
|
|
12529
|
-
"name": "
|
|
12500
|
+
"name": "labelSlot",
|
|
12530
12501
|
"privacy": "protected",
|
|
12531
|
-
"default": "new
|
|
12532
|
-
"description": "For accessibility reasons, we render some parts of the component to the light DOM.",
|
|
12502
|
+
"default": "new SlotController(this, \"label\")",
|
|
12533
12503
|
"inheritedFrom": {
|
|
12534
12504
|
"name": "FormAssociatedMixin",
|
|
12535
12505
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12537,9 +12507,9 @@
|
|
|
12537
12507
|
},
|
|
12538
12508
|
{
|
|
12539
12509
|
"kind": "field",
|
|
12540
|
-
"name": "
|
|
12510
|
+
"name": "errorSlot",
|
|
12541
12511
|
"privacy": "protected",
|
|
12542
|
-
"default": "new
|
|
12512
|
+
"default": "new SlotController(this, \"error\")",
|
|
12543
12513
|
"inheritedFrom": {
|
|
12544
12514
|
"name": "FormAssociatedMixin",
|
|
12545
12515
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12547,9 +12517,9 @@
|
|
|
12547
12517
|
},
|
|
12548
12518
|
{
|
|
12549
12519
|
"kind": "field",
|
|
12550
|
-
"name": "
|
|
12520
|
+
"name": "hintSlot",
|
|
12551
12521
|
"privacy": "protected",
|
|
12552
|
-
"default": "new
|
|
12522
|
+
"default": "new SlotController(this, \"hint\")",
|
|
12553
12523
|
"inheritedFrom": {
|
|
12554
12524
|
"name": "FormAssociatedMixin",
|
|
12555
12525
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12557,9 +12527,13 @@
|
|
|
12557
12527
|
},
|
|
12558
12528
|
{
|
|
12559
12529
|
"kind": "field",
|
|
12560
|
-
"name": "
|
|
12530
|
+
"name": "formData",
|
|
12561
12531
|
"privacy": "protected",
|
|
12562
|
-
"default": "new
|
|
12532
|
+
"default": "new FormDataController(this, { value: () => this.formValue })",
|
|
12533
|
+
"inheritedFrom": {
|
|
12534
|
+
"name": "FormAssociatedMixin",
|
|
12535
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12536
|
+
}
|
|
12563
12537
|
},
|
|
12564
12538
|
{
|
|
12565
12539
|
"kind": "field",
|
|
@@ -12573,50 +12547,12 @@
|
|
|
12573
12547
|
},
|
|
12574
12548
|
{
|
|
12575
12549
|
"kind": "field",
|
|
12576
|
-
"name": "
|
|
12550
|
+
"name": "inputId",
|
|
12577
12551
|
"type": {
|
|
12578
|
-
"text": "
|
|
12552
|
+
"text": "string"
|
|
12579
12553
|
},
|
|
12580
|
-
"default": "false",
|
|
12581
|
-
"description": "Controls whether the checkbox is checked or not.",
|
|
12582
|
-
"attribute": "checked",
|
|
12583
|
-
"reflects": true
|
|
12584
|
-
},
|
|
12585
|
-
{
|
|
12586
|
-
"kind": "method",
|
|
12587
|
-
"name": "handleCheckedChange",
|
|
12588
|
-
"privacy": "protected",
|
|
12589
|
-
"parameters": [
|
|
12590
|
-
{
|
|
12591
|
-
"name": "previousChecked",
|
|
12592
|
-
"type": {
|
|
12593
|
-
"text": "boolean"
|
|
12594
|
-
}
|
|
12595
|
-
}
|
|
12596
|
-
]
|
|
12597
|
-
},
|
|
12598
|
-
{
|
|
12599
|
-
"kind": "method",
|
|
12600
|
-
"name": "uncheckSiblings",
|
|
12601
|
-
"privacy": "private"
|
|
12602
|
-
},
|
|
12603
|
-
{
|
|
12604
|
-
"kind": "method",
|
|
12605
|
-
"name": "handleChange",
|
|
12606
12554
|
"privacy": "protected",
|
|
12607
|
-
"
|
|
12608
|
-
{
|
|
12609
|
-
"name": "e",
|
|
12610
|
-
"type": {
|
|
12611
|
-
"text": "Event"
|
|
12612
|
-
}
|
|
12613
|
-
}
|
|
12614
|
-
],
|
|
12615
|
-
"return": {
|
|
12616
|
-
"type": {
|
|
12617
|
-
"text": "void"
|
|
12618
|
-
}
|
|
12619
|
-
},
|
|
12555
|
+
"default": "\"input\"",
|
|
12620
12556
|
"inheritedFrom": {
|
|
12621
12557
|
"name": "FormAssociatedMixin",
|
|
12622
12558
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12624,34 +12560,25 @@
|
|
|
12624
12560
|
},
|
|
12625
12561
|
{
|
|
12626
12562
|
"kind": "field",
|
|
12627
|
-
"name": "
|
|
12628
|
-
"privacy": "private"
|
|
12629
|
-
},
|
|
12630
|
-
{
|
|
12631
|
-
"kind": "field",
|
|
12632
|
-
"name": "handleFocus",
|
|
12633
|
-
"privacy": "private"
|
|
12634
|
-
},
|
|
12635
|
-
{
|
|
12636
|
-
"kind": "field",
|
|
12637
|
-
"name": "size",
|
|
12563
|
+
"name": "errorId",
|
|
12638
12564
|
"type": {
|
|
12639
|
-
"text": "
|
|
12565
|
+
"text": "string"
|
|
12640
12566
|
},
|
|
12641
|
-
"
|
|
12642
|
-
"
|
|
12643
|
-
"attribute": "size",
|
|
12644
|
-
"reflects": true,
|
|
12567
|
+
"privacy": "protected",
|
|
12568
|
+
"default": "\"error\"",
|
|
12645
12569
|
"inheritedFrom": {
|
|
12646
|
-
"name": "
|
|
12647
|
-
"module": "src/common/mixins/
|
|
12570
|
+
"name": "FormAssociatedMixin",
|
|
12571
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12648
12572
|
}
|
|
12649
12573
|
},
|
|
12650
12574
|
{
|
|
12651
12575
|
"kind": "field",
|
|
12652
|
-
"name": "
|
|
12576
|
+
"name": "hintId",
|
|
12577
|
+
"type": {
|
|
12578
|
+
"text": "string"
|
|
12579
|
+
},
|
|
12653
12580
|
"privacy": "protected",
|
|
12654
|
-
"default": "
|
|
12581
|
+
"default": "\"hint\"",
|
|
12655
12582
|
"inheritedFrom": {
|
|
12656
12583
|
"name": "FormAssociatedMixin",
|
|
12657
12584
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12761,7 +12688,7 @@
|
|
|
12761
12688
|
},
|
|
12762
12689
|
{
|
|
12763
12690
|
"kind": "method",
|
|
12764
|
-
"name": "
|
|
12691
|
+
"name": "handleChange",
|
|
12765
12692
|
"privacy": "protected",
|
|
12766
12693
|
"parameters": [
|
|
12767
12694
|
{
|
|
@@ -12841,6 +12768,35 @@
|
|
|
12841
12768
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12842
12769
|
}
|
|
12843
12770
|
},
|
|
12771
|
+
{
|
|
12772
|
+
"kind": "field",
|
|
12773
|
+
"name": "autocomplete",
|
|
12774
|
+
"type": {
|
|
12775
|
+
"text": "AutocompleteAttribute"
|
|
12776
|
+
},
|
|
12777
|
+
"default": "\"off\"",
|
|
12778
|
+
"description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
|
|
12779
|
+
"attribute": "autocomplete",
|
|
12780
|
+
"inheritedFrom": {
|
|
12781
|
+
"name": "AutocompleteMixin",
|
|
12782
|
+
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
12783
|
+
}
|
|
12784
|
+
},
|
|
12785
|
+
{
|
|
12786
|
+
"kind": "field",
|
|
12787
|
+
"name": "readonly",
|
|
12788
|
+
"type": {
|
|
12789
|
+
"text": "boolean"
|
|
12790
|
+
},
|
|
12791
|
+
"default": "false",
|
|
12792
|
+
"description": "Makes the component readonly, so that it is not editable.\nReadonly differs from disabled in that readonly fields are still focusable and will be submitted with a form.",
|
|
12793
|
+
"attribute": "readonly",
|
|
12794
|
+
"reflects": true,
|
|
12795
|
+
"inheritedFrom": {
|
|
12796
|
+
"name": "ReadonlyMixin",
|
|
12797
|
+
"module": "src/common/mixins/ReadonlyMixin.ts"
|
|
12798
|
+
}
|
|
12799
|
+
},
|
|
12844
12800
|
{
|
|
12845
12801
|
"kind": "field",
|
|
12846
12802
|
"name": "disabled",
|
|
@@ -12969,28 +12925,66 @@
|
|
|
12969
12925
|
}
|
|
12970
12926
|
}
|
|
12971
12927
|
],
|
|
12972
|
-
"
|
|
12928
|
+
"events": [
|
|
12973
12929
|
{
|
|
12974
|
-
"name": "
|
|
12930
|
+
"name": "input",
|
|
12975
12931
|
"type": {
|
|
12976
|
-
"text": "
|
|
12932
|
+
"text": "NordEvent"
|
|
12977
12933
|
},
|
|
12978
|
-
"
|
|
12979
|
-
"
|
|
12980
|
-
|
|
12934
|
+
"description": "Fired as the user types into the input.",
|
|
12935
|
+
"inheritedFrom": {
|
|
12936
|
+
"name": "FormAssociatedMixin",
|
|
12937
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12938
|
+
}
|
|
12981
12939
|
},
|
|
12982
12940
|
{
|
|
12983
|
-
"name": "
|
|
12941
|
+
"name": "change",
|
|
12984
12942
|
"type": {
|
|
12985
|
-
"text": "
|
|
12943
|
+
"text": "NordEvent"
|
|
12986
12944
|
},
|
|
12987
|
-
"
|
|
12988
|
-
"description": "The size of the component.",
|
|
12989
|
-
"fieldName": "size",
|
|
12945
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
12990
12946
|
"inheritedFrom": {
|
|
12991
|
-
"name": "
|
|
12992
|
-
"module": "src/common/mixins/
|
|
12947
|
+
"name": "FormAssociatedMixin",
|
|
12948
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12993
12949
|
}
|
|
12950
|
+
}
|
|
12951
|
+
],
|
|
12952
|
+
"attributes": [
|
|
12953
|
+
{
|
|
12954
|
+
"name": "min",
|
|
12955
|
+
"type": {
|
|
12956
|
+
"text": "number"
|
|
12957
|
+
},
|
|
12958
|
+
"default": "0",
|
|
12959
|
+
"description": "Minimum value for the range slider.",
|
|
12960
|
+
"fieldName": "min"
|
|
12961
|
+
},
|
|
12962
|
+
{
|
|
12963
|
+
"name": "max",
|
|
12964
|
+
"type": {
|
|
12965
|
+
"text": "number"
|
|
12966
|
+
},
|
|
12967
|
+
"default": "10",
|
|
12968
|
+
"description": "Maximum value for the range slider.",
|
|
12969
|
+
"fieldName": "max"
|
|
12970
|
+
},
|
|
12971
|
+
{
|
|
12972
|
+
"name": "step",
|
|
12973
|
+
"type": {
|
|
12974
|
+
"text": "number"
|
|
12975
|
+
},
|
|
12976
|
+
"default": "1",
|
|
12977
|
+
"description": "Step amount for the range slider.",
|
|
12978
|
+
"fieldName": "step"
|
|
12979
|
+
},
|
|
12980
|
+
{
|
|
12981
|
+
"name": "expand",
|
|
12982
|
+
"type": {
|
|
12983
|
+
"text": "boolean"
|
|
12984
|
+
},
|
|
12985
|
+
"default": "false",
|
|
12986
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
12987
|
+
"fieldName": "expand"
|
|
12994
12988
|
},
|
|
12995
12989
|
{
|
|
12996
12990
|
"name": "label",
|
|
@@ -13080,6 +13074,32 @@
|
|
|
13080
13074
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
13081
13075
|
}
|
|
13082
13076
|
},
|
|
13077
|
+
{
|
|
13078
|
+
"name": "autocomplete",
|
|
13079
|
+
"type": {
|
|
13080
|
+
"text": "AutocompleteAttribute"
|
|
13081
|
+
},
|
|
13082
|
+
"default": "\"off\"",
|
|
13083
|
+
"description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
|
|
13084
|
+
"fieldName": "autocomplete",
|
|
13085
|
+
"inheritedFrom": {
|
|
13086
|
+
"name": "AutocompleteMixin",
|
|
13087
|
+
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
13088
|
+
}
|
|
13089
|
+
},
|
|
13090
|
+
{
|
|
13091
|
+
"name": "readonly",
|
|
13092
|
+
"type": {
|
|
13093
|
+
"text": "boolean"
|
|
13094
|
+
},
|
|
13095
|
+
"default": "false",
|
|
13096
|
+
"description": "Makes the component readonly, so that it is not editable.\nReadonly differs from disabled in that readonly fields are still focusable and will be submitted with a form.",
|
|
13097
|
+
"fieldName": "readonly",
|
|
13098
|
+
"inheritedFrom": {
|
|
13099
|
+
"name": "ReadonlyMixin",
|
|
13100
|
+
"module": "src/common/mixins/ReadonlyMixin.ts"
|
|
13101
|
+
}
|
|
13102
|
+
},
|
|
13083
13103
|
{
|
|
13084
13104
|
"name": "disabled",
|
|
13085
13105
|
"type": {
|
|
@@ -13132,14 +13152,18 @@
|
|
|
13132
13152
|
}
|
|
13133
13153
|
],
|
|
13134
13154
|
"mixins": [
|
|
13135
|
-
{
|
|
13136
|
-
"name": "SizeMixin",
|
|
13137
|
-
"module": "/src/common/mixins/SizeMixin.js"
|
|
13138
|
-
},
|
|
13139
13155
|
{
|
|
13140
13156
|
"name": "FormAssociatedMixin",
|
|
13141
13157
|
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
13142
13158
|
},
|
|
13159
|
+
{
|
|
13160
|
+
"name": "AutocompleteMixin",
|
|
13161
|
+
"module": "/src/common/mixins/AutocompleteMixin.js"
|
|
13162
|
+
},
|
|
13163
|
+
{
|
|
13164
|
+
"name": "ReadonlyMixin",
|
|
13165
|
+
"module": "/src/common/mixins/ReadonlyMixin.js"
|
|
13166
|
+
},
|
|
13143
13167
|
{
|
|
13144
13168
|
"name": "InputMixin",
|
|
13145
13169
|
"module": "/src/common/mixins/InputMixin.js"
|
|
@@ -13156,35 +13180,11 @@
|
|
|
13156
13180
|
"localization": [],
|
|
13157
13181
|
"status": "ready",
|
|
13158
13182
|
"category": "form",
|
|
13159
|
-
"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
|
|
13183
|
+
"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 let user specify a numeric value using a slider.\n- Use when the accuracy of the numeric value entered isn’t important.\n- Always use with a label, even if that label is hidden.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use when the accuracy of the numeric value entered is important.\n- For entering arbitrary numeric values. Use [input component](/components/input/) instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nRange labels act as a title for the range input. Labels should typically be short and in noun form:\n\n<div class=\"n-usage n-usage-do\">Lightness percentage</div>\n<div class=\"n-usage n-usage-dont\">What is the lightness percentage?</div>\n\nWhen writing range 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\">Item price</div>\n<div class=\"n-usage n-usage-dont\">Item Price</div>\n\nDo not use colons in range label:\n\n<div class=\"n-usage n-usage-do\">Color depth</div>\n<div class=\"n-usage n-usage-dont\">Color depth:</div>\n",
|
|
13160
13184
|
"examples": [],
|
|
13161
13185
|
"dependencies": [],
|
|
13162
|
-
"tagName": "nord-
|
|
13163
|
-
"customElement": true
|
|
13164
|
-
"events": [
|
|
13165
|
-
{
|
|
13166
|
-
"name": "input",
|
|
13167
|
-
"type": {
|
|
13168
|
-
"text": "NordEvent"
|
|
13169
|
-
},
|
|
13170
|
-
"description": "Fired as the user types into the input.",
|
|
13171
|
-
"inheritedFrom": {
|
|
13172
|
-
"name": "FormAssociatedMixin",
|
|
13173
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
13174
|
-
}
|
|
13175
|
-
},
|
|
13176
|
-
{
|
|
13177
|
-
"name": "change",
|
|
13178
|
-
"type": {
|
|
13179
|
-
"text": "NordEvent"
|
|
13180
|
-
},
|
|
13181
|
-
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
13182
|
-
"inheritedFrom": {
|
|
13183
|
-
"name": "FormAssociatedMixin",
|
|
13184
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
13185
|
-
}
|
|
13186
|
-
}
|
|
13187
|
-
]
|
|
13186
|
+
"tagName": "nord-range",
|
|
13187
|
+
"customElement": true
|
|
13188
13188
|
}
|
|
13189
13189
|
],
|
|
13190
13190
|
"exports": [
|
|
@@ -13192,33 +13192,119 @@
|
|
|
13192
13192
|
"kind": "js",
|
|
13193
13193
|
"name": "default",
|
|
13194
13194
|
"declaration": {
|
|
13195
|
-
"name": "
|
|
13196
|
-
"module": "src/
|
|
13195
|
+
"name": "Range",
|
|
13196
|
+
"module": "src/range/Range.ts"
|
|
13197
13197
|
}
|
|
13198
13198
|
},
|
|
13199
13199
|
{
|
|
13200
13200
|
"kind": "custom-element-definition",
|
|
13201
|
-
"name": "nord-
|
|
13201
|
+
"name": "nord-range",
|
|
13202
13202
|
"declaration": {
|
|
13203
|
-
"name": "
|
|
13204
|
-
"module": "src/
|
|
13203
|
+
"name": "Range",
|
|
13204
|
+
"module": "src/range/Range.ts"
|
|
13205
13205
|
}
|
|
13206
13206
|
}
|
|
13207
13207
|
]
|
|
13208
13208
|
},
|
|
13209
13209
|
{
|
|
13210
13210
|
"kind": "javascript-module",
|
|
13211
|
-
"path": "src/segmented-control
|
|
13211
|
+
"path": "src/segmented-control/SegmentedControl.ts",
|
|
13212
13212
|
"declarations": [
|
|
13213
13213
|
{
|
|
13214
13214
|
"kind": "class",
|
|
13215
|
-
"description": "Segmented control
|
|
13216
|
-
"name": "
|
|
13217
|
-
"
|
|
13215
|
+
"description": "Segmented control is used to pick one choice from a set of\nclosely related choices, and immediately apply that selection.",
|
|
13216
|
+
"name": "SegmentedControl",
|
|
13217
|
+
"slots": [
|
|
13218
13218
|
{
|
|
13219
|
-
"description": "
|
|
13220
|
-
"name": "
|
|
13221
|
-
|
|
13219
|
+
"description": "Default slot.",
|
|
13220
|
+
"name": ""
|
|
13221
|
+
}
|
|
13222
|
+
],
|
|
13223
|
+
"members": [
|
|
13224
|
+
{
|
|
13225
|
+
"kind": "field",
|
|
13226
|
+
"name": "defaultSlot",
|
|
13227
|
+
"privacy": "private",
|
|
13228
|
+
"default": "new SlotController(this)"
|
|
13229
|
+
},
|
|
13230
|
+
{
|
|
13231
|
+
"kind": "field",
|
|
13232
|
+
"name": "expand",
|
|
13233
|
+
"type": {
|
|
13234
|
+
"text": "boolean"
|
|
13235
|
+
},
|
|
13236
|
+
"default": "false",
|
|
13237
|
+
"description": "Controls whether the segmented control expands to fill the width of its container.",
|
|
13238
|
+
"attribute": "expand",
|
|
13239
|
+
"reflects": true
|
|
13240
|
+
}
|
|
13241
|
+
],
|
|
13242
|
+
"events": [
|
|
13243
|
+
{
|
|
13244
|
+
"type": {
|
|
13245
|
+
"text": "NordEvent"
|
|
13246
|
+
},
|
|
13247
|
+
"description": "Fired whenever a segmented control item has been checked.",
|
|
13248
|
+
"name": "change"
|
|
13249
|
+
}
|
|
13250
|
+
],
|
|
13251
|
+
"attributes": [
|
|
13252
|
+
{
|
|
13253
|
+
"name": "expand",
|
|
13254
|
+
"type": {
|
|
13255
|
+
"text": "boolean"
|
|
13256
|
+
},
|
|
13257
|
+
"default": "false",
|
|
13258
|
+
"description": "Controls whether the segmented control expands to fill the width of its container.",
|
|
13259
|
+
"fieldName": "expand"
|
|
13260
|
+
}
|
|
13261
|
+
],
|
|
13262
|
+
"superclass": {
|
|
13263
|
+
"name": "LitElement",
|
|
13264
|
+
"package": "lit"
|
|
13265
|
+
},
|
|
13266
|
+
"localization": [],
|
|
13267
|
+
"status": "new",
|
|
13268
|
+
"category": "action",
|
|
13269
|
+
"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 segmented control to allow users to pick one choice from a set of closely related choices, and immediately apply that selection.\n- Favor segmented control or [radio component](/components/radio/) over a select component when there are a small number of options. This reduces the number of clicks a user has to make, increasing efficiency.\n- Segmented control items are grouped by their `name` attribute. Therefore, it is crucial that the same `name` is used for a group of segmented control items.\n- Give each segmented control item within a group a unique `value`.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place interactive content (buttons, links etc) inside the label.\n- Don’t use when a user can select more than one option. In this case, use a [checkbox](/components/checkbox/) or [selectable tag](/components/tag/?example=selectable) instead.\n- Don’t use for “accepting terms of service” and similar functionality. Use a [checkbox](/components/checkbox/) instead.\n- When you have more than 5 options to choose from. Consider using a [select](/components/select/) instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nSegmented control labels should be clear, accurate and predictable. It should be possible for the user to understand what they are enabling or disabling:\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">Option 1</div>\n\nWhen writing segmented control 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 ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Blue</div>\n<div class=\"n-usage n-usage-dont\">Blue.</div>\n\nDo not use commas or semicolons at the end of each line\n\n<div class=\"n-usage n-usage-do\">Patient</div>\n<div class=\"n-usage n-usage-dont\">Patient;</div>\n\n---\n\n## Additional considerations\n\n- Once a segmented control item has been selected, users cannot return to having no items selected without refreshing their browser window. Therefore, you should always make sure one of the items is pre-selected.\n",
|
|
13270
|
+
"examples": [],
|
|
13271
|
+
"dependencies": [],
|
|
13272
|
+
"tagName": "nord-segmented-control",
|
|
13273
|
+
"customElement": true
|
|
13274
|
+
}
|
|
13275
|
+
],
|
|
13276
|
+
"exports": [
|
|
13277
|
+
{
|
|
13278
|
+
"kind": "js",
|
|
13279
|
+
"name": "default",
|
|
13280
|
+
"declaration": {
|
|
13281
|
+
"name": "SegmentedControl",
|
|
13282
|
+
"module": "src/segmented-control/SegmentedControl.ts"
|
|
13283
|
+
}
|
|
13284
|
+
},
|
|
13285
|
+
{
|
|
13286
|
+
"kind": "custom-element-definition",
|
|
13287
|
+
"name": "nord-segmented-control",
|
|
13288
|
+
"declaration": {
|
|
13289
|
+
"name": "SegmentedControl",
|
|
13290
|
+
"module": "src/segmented-control/SegmentedControl.ts"
|
|
13291
|
+
}
|
|
13292
|
+
}
|
|
13293
|
+
]
|
|
13294
|
+
},
|
|
13295
|
+
{
|
|
13296
|
+
"kind": "javascript-module",
|
|
13297
|
+
"path": "src/segmented-control-item/SegmentedControlItem.ts",
|
|
13298
|
+
"declarations": [
|
|
13299
|
+
{
|
|
13300
|
+
"kind": "class",
|
|
13301
|
+
"description": "Segmented control items populate a segmented control with options.\nEvery item should be placed inside a segmented control.",
|
|
13302
|
+
"name": "SegmentedControlItem",
|
|
13303
|
+
"cssProperties": [
|
|
13304
|
+
{
|
|
13305
|
+
"description": "Controls the rounded corners of the item, using [border radius tokens](/tokens/#border-radius).",
|
|
13306
|
+
"name": "--n-segmented-control-item-border-radius",
|
|
13307
|
+
"default": "var(--n-border-radius-s)"
|
|
13222
13308
|
},
|
|
13223
13309
|
{
|
|
13224
13310
|
"description": "Controls the spacing between elements within the item, using our [spacing tokens](/tokens/#space).",
|
|
@@ -13656,55 +13742,49 @@
|
|
|
13656
13742
|
},
|
|
13657
13743
|
{
|
|
13658
13744
|
"kind": "javascript-module",
|
|
13659
|
-
"path": "src/
|
|
13745
|
+
"path": "src/skeleton/Skeleton.ts",
|
|
13660
13746
|
"declarations": [
|
|
13661
13747
|
{
|
|
13662
13748
|
"kind": "class",
|
|
13663
|
-
"description": "
|
|
13664
|
-
"name": "
|
|
13665
|
-
"
|
|
13749
|
+
"description": "Skeletons are used to provide a low fidelity representation of content\nbefore it appears in a view. This improves the perceived loading time\nfor our users.",
|
|
13750
|
+
"name": "Skeleton",
|
|
13751
|
+
"cssProperties": [
|
|
13666
13752
|
{
|
|
13667
|
-
"description": "
|
|
13668
|
-
"name": ""
|
|
13669
|
-
|
|
13670
|
-
|
|
13671
|
-
"members": [
|
|
13753
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
13754
|
+
"name": "--n-skeleton-border-radius",
|
|
13755
|
+
"default": "var(--n-border-radius)"
|
|
13756
|
+
},
|
|
13672
13757
|
{
|
|
13673
|
-
"
|
|
13674
|
-
"name": "
|
|
13675
|
-
"
|
|
13676
|
-
"default": "new SlotController(this)"
|
|
13758
|
+
"description": "Controls the main color of the skeleton, using our [color tokens](/tokens/#color).",
|
|
13759
|
+
"name": "--n-skeleton-color",
|
|
13760
|
+
"default": "var(--n-color-border)"
|
|
13677
13761
|
},
|
|
13678
13762
|
{
|
|
13679
|
-
"
|
|
13680
|
-
"name": "
|
|
13681
|
-
"
|
|
13682
|
-
"text": "boolean"
|
|
13683
|
-
},
|
|
13684
|
-
"default": "false",
|
|
13685
|
-
"description": "Controls whether the segmented control expands to fill the width of its container.",
|
|
13686
|
-
"attribute": "expand",
|
|
13687
|
-
"reflects": true
|
|
13763
|
+
"description": "Controls the sheen color of the skeleton, using our [color tokens](/tokens/#color).",
|
|
13764
|
+
"name": "--n-skeleton-sheen-color",
|
|
13765
|
+
"default": "var(--n-color-border-strong)"
|
|
13688
13766
|
}
|
|
13689
13767
|
],
|
|
13690
|
-
"
|
|
13768
|
+
"members": [
|
|
13691
13769
|
{
|
|
13770
|
+
"kind": "field",
|
|
13771
|
+
"name": "effect",
|
|
13692
13772
|
"type": {
|
|
13693
|
-
"text": "
|
|
13773
|
+
"text": "\"pulse\" | \"sheen\" | undefined"
|
|
13694
13774
|
},
|
|
13695
|
-
"description": "
|
|
13696
|
-
"
|
|
13775
|
+
"description": "Determines which animation effect the skeleton will use.\nThe default is no animation.",
|
|
13776
|
+
"attribute": "effect",
|
|
13777
|
+
"reflects": true
|
|
13697
13778
|
}
|
|
13698
13779
|
],
|
|
13699
13780
|
"attributes": [
|
|
13700
13781
|
{
|
|
13701
|
-
"name": "
|
|
13782
|
+
"name": "effect",
|
|
13702
13783
|
"type": {
|
|
13703
|
-
"text": "
|
|
13784
|
+
"text": "\"pulse\" | \"sheen\" | undefined"
|
|
13704
13785
|
},
|
|
13705
|
-
"
|
|
13706
|
-
"
|
|
13707
|
-
"fieldName": "expand"
|
|
13786
|
+
"description": "Determines which animation effect the skeleton will use.\nThe default is no animation.",
|
|
13787
|
+
"fieldName": "effect"
|
|
13708
13788
|
}
|
|
13709
13789
|
],
|
|
13710
13790
|
"superclass": {
|
|
@@ -13712,12 +13792,12 @@
|
|
|
13712
13792
|
"package": "lit"
|
|
13713
13793
|
},
|
|
13714
13794
|
"localization": [],
|
|
13715
|
-
"status": "
|
|
13716
|
-
"category": "
|
|
13717
|
-
"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
|
|
13795
|
+
"status": "ready",
|
|
13796
|
+
"category": "feedback",
|
|
13797
|
+
"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 skeleton component for dynamic content only.\n- Use to give the user an indication of what the page layout will be like once loaded.\n- Mimick the actual layout using multiple Skeleton components.\n- Use `aria-busy=\"true\"` to indicate which area on the screen is currently loading and remove it or set it to `false` once loaded.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use Skeleton component for static content.\n- Don’t show placeholder content after Skeleton disappears that will change when the page fully loads.\n\n</div>\n",
|
|
13718
13798
|
"examples": [],
|
|
13719
13799
|
"dependencies": [],
|
|
13720
|
-
"tagName": "nord-
|
|
13800
|
+
"tagName": "nord-skeleton",
|
|
13721
13801
|
"customElement": true
|
|
13722
13802
|
}
|
|
13723
13803
|
],
|
|
@@ -13726,16 +13806,16 @@
|
|
|
13726
13806
|
"kind": "js",
|
|
13727
13807
|
"name": "default",
|
|
13728
13808
|
"declaration": {
|
|
13729
|
-
"name": "
|
|
13730
|
-
"module": "src/
|
|
13809
|
+
"name": "Skeleton",
|
|
13810
|
+
"module": "src/skeleton/Skeleton.ts"
|
|
13731
13811
|
}
|
|
13732
13812
|
},
|
|
13733
13813
|
{
|
|
13734
13814
|
"kind": "custom-element-definition",
|
|
13735
|
-
"name": "nord-
|
|
13815
|
+
"name": "nord-skeleton",
|
|
13736
13816
|
"declaration": {
|
|
13737
|
-
"name": "
|
|
13738
|
-
"module": "src/
|
|
13817
|
+
"name": "Skeleton",
|
|
13818
|
+
"module": "src/skeleton/Skeleton.ts"
|
|
13739
13819
|
}
|
|
13740
13820
|
}
|
|
13741
13821
|
]
|
|
@@ -14546,86 +14626,6 @@
|
|
|
14546
14626
|
}
|
|
14547
14627
|
]
|
|
14548
14628
|
},
|
|
14549
|
-
{
|
|
14550
|
-
"kind": "javascript-module",
|
|
14551
|
-
"path": "src/skeleton/Skeleton.ts",
|
|
14552
|
-
"declarations": [
|
|
14553
|
-
{
|
|
14554
|
-
"kind": "class",
|
|
14555
|
-
"description": "Skeletons are used to provide a low fidelity representation of content\nbefore it appears in a view. This improves the perceived loading time\nfor our users.",
|
|
14556
|
-
"name": "Skeleton",
|
|
14557
|
-
"cssProperties": [
|
|
14558
|
-
{
|
|
14559
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
14560
|
-
"name": "--n-skeleton-border-radius",
|
|
14561
|
-
"default": "var(--n-border-radius)"
|
|
14562
|
-
},
|
|
14563
|
-
{
|
|
14564
|
-
"description": "Controls the main color of the skeleton, using our [color tokens](/tokens/#color).",
|
|
14565
|
-
"name": "--n-skeleton-color",
|
|
14566
|
-
"default": "var(--n-color-border)"
|
|
14567
|
-
},
|
|
14568
|
-
{
|
|
14569
|
-
"description": "Controls the sheen color of the skeleton, using our [color tokens](/tokens/#color).",
|
|
14570
|
-
"name": "--n-skeleton-sheen-color",
|
|
14571
|
-
"default": "var(--n-color-border-strong)"
|
|
14572
|
-
}
|
|
14573
|
-
],
|
|
14574
|
-
"members": [
|
|
14575
|
-
{
|
|
14576
|
-
"kind": "field",
|
|
14577
|
-
"name": "effect",
|
|
14578
|
-
"type": {
|
|
14579
|
-
"text": "\"pulse\" | \"sheen\" | undefined"
|
|
14580
|
-
},
|
|
14581
|
-
"description": "Determines which animation effect the skeleton will use.\nThe default is no animation.",
|
|
14582
|
-
"attribute": "effect",
|
|
14583
|
-
"reflects": true
|
|
14584
|
-
}
|
|
14585
|
-
],
|
|
14586
|
-
"attributes": [
|
|
14587
|
-
{
|
|
14588
|
-
"name": "effect",
|
|
14589
|
-
"type": {
|
|
14590
|
-
"text": "\"pulse\" | \"sheen\" | undefined"
|
|
14591
|
-
},
|
|
14592
|
-
"description": "Determines which animation effect the skeleton will use.\nThe default is no animation.",
|
|
14593
|
-
"fieldName": "effect"
|
|
14594
|
-
}
|
|
14595
|
-
],
|
|
14596
|
-
"superclass": {
|
|
14597
|
-
"name": "LitElement",
|
|
14598
|
-
"package": "lit"
|
|
14599
|
-
},
|
|
14600
|
-
"localization": [],
|
|
14601
|
-
"status": "ready",
|
|
14602
|
-
"category": "feedback",
|
|
14603
|
-
"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 skeleton component for dynamic content only.\n- Use to give the user an indication of what the page layout will be like once loaded.\n- Mimick the actual layout using multiple Skeleton components.\n- Use `aria-busy=\"true\"` to indicate which area on the screen is currently loading and remove it or set it to `false` once loaded.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use Skeleton component for static content.\n- Don’t show placeholder content after Skeleton disappears that will change when the page fully loads.\n\n</div>\n",
|
|
14604
|
-
"examples": [],
|
|
14605
|
-
"dependencies": [],
|
|
14606
|
-
"tagName": "nord-skeleton",
|
|
14607
|
-
"customElement": true
|
|
14608
|
-
}
|
|
14609
|
-
],
|
|
14610
|
-
"exports": [
|
|
14611
|
-
{
|
|
14612
|
-
"kind": "js",
|
|
14613
|
-
"name": "default",
|
|
14614
|
-
"declaration": {
|
|
14615
|
-
"name": "Skeleton",
|
|
14616
|
-
"module": "src/skeleton/Skeleton.ts"
|
|
14617
|
-
}
|
|
14618
|
-
},
|
|
14619
|
-
{
|
|
14620
|
-
"kind": "custom-element-definition",
|
|
14621
|
-
"name": "nord-skeleton",
|
|
14622
|
-
"declaration": {
|
|
14623
|
-
"name": "Skeleton",
|
|
14624
|
-
"module": "src/skeleton/Skeleton.ts"
|
|
14625
|
-
}
|
|
14626
|
-
}
|
|
14627
|
-
]
|
|
14628
|
-
},
|
|
14629
14629
|
{
|
|
14630
14630
|
"kind": "javascript-module",
|
|
14631
14631
|
"path": "src/spinner/Spinner.ts",
|
|
@@ -17252,389 +17252,245 @@
|
|
|
17252
17252
|
},
|
|
17253
17253
|
{
|
|
17254
17254
|
"kind": "javascript-module",
|
|
17255
|
-
"path": "src/
|
|
17255
|
+
"path": "src/toggle/Toggle.ts",
|
|
17256
17256
|
"declarations": [
|
|
17257
17257
|
{
|
|
17258
17258
|
"kind": "class",
|
|
17259
|
-
"description": "
|
|
17260
|
-
"name": "
|
|
17261
|
-
"
|
|
17259
|
+
"description": "Toggle switch gives control over a feature or option that can be\nturned on or off. If a physical switch would work for the action, a\ntoggle is probably the best component to use.",
|
|
17260
|
+
"name": "Toggle",
|
|
17261
|
+
"cssProperties": [
|
|
17262
17262
|
{
|
|
17263
|
-
"description": "
|
|
17264
|
-
"name": ""
|
|
17265
|
-
|
|
17266
|
-
],
|
|
17267
|
-
"members": [
|
|
17268
|
-
{
|
|
17269
|
-
"kind": "method",
|
|
17270
|
-
"name": "addToast",
|
|
17271
|
-
"parameters": [
|
|
17272
|
-
{
|
|
17273
|
-
"name": "text",
|
|
17274
|
-
"type": {
|
|
17275
|
-
"text": "string"
|
|
17276
|
-
},
|
|
17277
|
-
"description": "The text/message of the toast."
|
|
17278
|
-
},
|
|
17279
|
-
{
|
|
17280
|
-
"name": "options",
|
|
17281
|
-
"default": "{}",
|
|
17282
|
-
"type": {
|
|
17283
|
-
"text": "ToastOptions"
|
|
17284
|
-
},
|
|
17285
|
-
"description": "An optional object for configuring the toast's `variant` and `autoDismiss`."
|
|
17286
|
-
}
|
|
17287
|
-
],
|
|
17288
|
-
"description": "Convenience method for creating and adding a toast to the group.",
|
|
17289
|
-
"return": {
|
|
17290
|
-
"type": {
|
|
17291
|
-
"text": "Toast"
|
|
17292
|
-
}
|
|
17293
|
-
}
|
|
17294
|
-
}
|
|
17295
|
-
],
|
|
17296
|
-
"events": [
|
|
17297
|
-
{
|
|
17298
|
-
"type": {
|
|
17299
|
-
"text": "NordEvent"
|
|
17300
|
-
},
|
|
17301
|
-
"description": "Fired when a toast is dismissed (via user action or auto-dismiss), and its exit animation has completed. This event should be used to remove the dismissed toast from the DOM.",
|
|
17302
|
-
"name": "dismiss"
|
|
17303
|
-
}
|
|
17304
|
-
],
|
|
17305
|
-
"superclass": {
|
|
17306
|
-
"name": "LitElement",
|
|
17307
|
-
"package": "lit"
|
|
17308
|
-
},
|
|
17309
|
-
"localization": [],
|
|
17310
|
-
"status": "ready",
|
|
17311
|
-
"category": "feedback",
|
|
17312
|
-
"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 in combination with [Toast](/components/toast/) so that toasts get styled and announced to screen readers correctly.\n- Add as close to the bottom of the document as possible, ideally near the body closing tag, to maintain correct stacking order.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping anything other than toast components\n\n</div>\n\n---\n\n## Content guidelines\n\nToast content should be clear, accurate and understandable by the user:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Your message has been sent</div>\n\nWhen writing the toast content, use the {noun} + {verb} content formula:\n\n<div class=\"n-usage n-usage-do\">Patient created</div>\n<div class=\"n-usage n-usage-dont\">Your patient has been successfully updated</div>\n\nUse a maximum of 3 words when writing the toast content:\n\n<div class=\"n-usage n-usage-do\">Product updated</div>\n<div class=\"n-usage n-usage-dont\">Your product was updated just now</div>\n\nWhen writing the toast 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\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message Sent</div>\n\nAvoid unnecessary words and articles in the toast content, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Changes saved</div>\n<div class=\"n-usage n-usage-dont\">The changes were saved</div>\n\nNever end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message sent.</div>\n\n---\n\n## Additional considerations\n\n- Toasts are complicated from an accessibility perspective. Whilst they are a convenient UI pattern for messaging, they present difficulties for keyboard or screen reader users. Therefore careful consideration should be given as to whether a toast is the correct choice.\n- If the message cannot be conveyed in 3 words or less, consider re-wording. If the message cannot be shortened any further, consider choosing a different pattern than toast.\n",
|
|
17313
|
-
"examples": [],
|
|
17314
|
-
"dependencies": [
|
|
17315
|
-
"toast"
|
|
17316
|
-
],
|
|
17317
|
-
"tagName": "nord-toast-group",
|
|
17318
|
-
"customElement": true
|
|
17319
|
-
}
|
|
17320
|
-
],
|
|
17321
|
-
"exports": [
|
|
17322
|
-
{
|
|
17323
|
-
"kind": "js",
|
|
17324
|
-
"name": "default",
|
|
17325
|
-
"declaration": {
|
|
17326
|
-
"name": "ToastGroup",
|
|
17327
|
-
"module": "src/toast-group/ToastGroup.ts"
|
|
17328
|
-
}
|
|
17329
|
-
},
|
|
17330
|
-
{
|
|
17331
|
-
"kind": "custom-element-definition",
|
|
17332
|
-
"name": "nord-toast-group",
|
|
17333
|
-
"declaration": {
|
|
17334
|
-
"name": "ToastGroup",
|
|
17335
|
-
"module": "src/toast-group/ToastGroup.ts"
|
|
17336
|
-
}
|
|
17337
|
-
}
|
|
17338
|
-
]
|
|
17339
|
-
},
|
|
17340
|
-
{
|
|
17341
|
-
"kind": "javascript-module",
|
|
17342
|
-
"path": "src/tooltip/Tooltip.ts",
|
|
17343
|
-
"declarations": [
|
|
17344
|
-
{
|
|
17345
|
-
"kind": "class",
|
|
17346
|
-
"description": "Tooltips are floating containers for displaying additional information\nfor the currently focused element. A tooltip can be useful when you want\nto e.g. give a hint about an existing Command Menu shortcut.",
|
|
17347
|
-
"name": "Tooltip",
|
|
17348
|
-
"cssProperties": [
|
|
17349
|
-
{
|
|
17350
|
-
"description": "Controls the maximum inline size, or width, of the tooltip.",
|
|
17351
|
-
"name": "--n-tooltip-max-size",
|
|
17352
|
-
"default": "50ch"
|
|
17263
|
+
"description": "Controls the text color of the label, using our [color tokens](/tokens/#color).",
|
|
17264
|
+
"name": "--n-label-color",
|
|
17265
|
+
"default": "var(--n-color-text)"
|
|
17353
17266
|
}
|
|
17354
17267
|
],
|
|
17355
17268
|
"slots": [
|
|
17356
17269
|
{
|
|
17357
|
-
"description": "
|
|
17358
|
-
"name": ""
|
|
17270
|
+
"description": "Use when a label requires more than plain text.",
|
|
17271
|
+
"name": "label"
|
|
17359
17272
|
},
|
|
17360
17273
|
{
|
|
17361
|
-
"description": "Optional slot that holds
|
|
17362
|
-
"name": "
|
|
17274
|
+
"description": "Optional slot that holds hint text for the input.",
|
|
17275
|
+
"name": "hint"
|
|
17276
|
+
},
|
|
17277
|
+
{
|
|
17278
|
+
"description": "Optional slot that holds error text for the input.",
|
|
17279
|
+
"name": "error"
|
|
17363
17280
|
}
|
|
17364
17281
|
],
|
|
17365
17282
|
"members": [
|
|
17366
17283
|
{
|
|
17367
17284
|
"kind": "field",
|
|
17368
|
-
"name": "
|
|
17369
|
-
"
|
|
17370
|
-
|
|
17371
|
-
|
|
17372
|
-
|
|
17373
|
-
|
|
17285
|
+
"name": "formValue",
|
|
17286
|
+
"privacy": "protected",
|
|
17287
|
+
"readonly": true,
|
|
17288
|
+
"inheritedFrom": {
|
|
17289
|
+
"name": "FormAssociatedMixin",
|
|
17290
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17291
|
+
}
|
|
17374
17292
|
},
|
|
17375
17293
|
{
|
|
17376
17294
|
"kind": "field",
|
|
17377
|
-
"name": "
|
|
17378
|
-
"
|
|
17379
|
-
|
|
17295
|
+
"name": "checked",
|
|
17296
|
+
"type": {
|
|
17297
|
+
"text": "boolean"
|
|
17298
|
+
},
|
|
17299
|
+
"default": "false",
|
|
17300
|
+
"description": "Controls whether the toggle is checked or not.",
|
|
17301
|
+
"attribute": "checked",
|
|
17302
|
+
"reflects": true
|
|
17380
17303
|
},
|
|
17381
17304
|
{
|
|
17382
17305
|
"kind": "field",
|
|
17383
|
-
"name": "
|
|
17384
|
-
"
|
|
17385
|
-
|
|
17306
|
+
"name": "reverse",
|
|
17307
|
+
"type": {
|
|
17308
|
+
"text": "boolean"
|
|
17309
|
+
},
|
|
17310
|
+
"default": "false",
|
|
17311
|
+
"description": "Controls whether the contents are displayed in reverse order,\nputting the label before the toggle.",
|
|
17312
|
+
"attribute": "reverse",
|
|
17313
|
+
"reflects": true
|
|
17386
17314
|
},
|
|
17387
17315
|
{
|
|
17388
17316
|
"kind": "field",
|
|
17389
|
-
"name": "
|
|
17317
|
+
"name": "size",
|
|
17390
17318
|
"type": {
|
|
17391
|
-
"text": "
|
|
17319
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
17392
17320
|
},
|
|
17393
|
-
"
|
|
17321
|
+
"default": "\"m\"",
|
|
17322
|
+
"description": "The size of the toggle switch.",
|
|
17323
|
+
"attribute": "size",
|
|
17324
|
+
"reflects": true
|
|
17394
17325
|
},
|
|
17395
17326
|
{
|
|
17396
|
-
"kind": "
|
|
17397
|
-
"name": "
|
|
17398
|
-
"
|
|
17399
|
-
|
|
17327
|
+
"kind": "method",
|
|
17328
|
+
"name": "handleChange",
|
|
17329
|
+
"privacy": "protected",
|
|
17330
|
+
"parameters": [
|
|
17331
|
+
{
|
|
17332
|
+
"name": "e",
|
|
17333
|
+
"type": {
|
|
17334
|
+
"text": "Event"
|
|
17335
|
+
}
|
|
17336
|
+
}
|
|
17337
|
+
],
|
|
17338
|
+
"return": {
|
|
17339
|
+
"type": {
|
|
17340
|
+
"text": "void"
|
|
17341
|
+
}
|
|
17400
17342
|
},
|
|
17401
|
-
"
|
|
17343
|
+
"inheritedFrom": {
|
|
17344
|
+
"name": "FormAssociatedMixin",
|
|
17345
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17346
|
+
}
|
|
17402
17347
|
},
|
|
17403
17348
|
{
|
|
17404
17349
|
"kind": "field",
|
|
17405
|
-
"name": "
|
|
17406
|
-
"privacy": "
|
|
17407
|
-
"
|
|
17350
|
+
"name": "labelSlot",
|
|
17351
|
+
"privacy": "protected",
|
|
17352
|
+
"default": "new SlotController(this, \"label\")",
|
|
17353
|
+
"inheritedFrom": {
|
|
17354
|
+
"name": "FormAssociatedMixin",
|
|
17355
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17356
|
+
}
|
|
17408
17357
|
},
|
|
17409
17358
|
{
|
|
17410
17359
|
"kind": "field",
|
|
17411
|
-
"name": "
|
|
17412
|
-
"
|
|
17413
|
-
|
|
17414
|
-
|
|
17415
|
-
|
|
17416
|
-
|
|
17417
|
-
|
|
17360
|
+
"name": "errorSlot",
|
|
17361
|
+
"privacy": "protected",
|
|
17362
|
+
"default": "new SlotController(this, \"error\")",
|
|
17363
|
+
"inheritedFrom": {
|
|
17364
|
+
"name": "FormAssociatedMixin",
|
|
17365
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17366
|
+
}
|
|
17418
17367
|
},
|
|
17419
17368
|
{
|
|
17420
17369
|
"kind": "field",
|
|
17421
|
-
"name": "
|
|
17422
|
-
"
|
|
17423
|
-
|
|
17424
|
-
|
|
17425
|
-
|
|
17426
|
-
|
|
17370
|
+
"name": "hintSlot",
|
|
17371
|
+
"privacy": "protected",
|
|
17372
|
+
"default": "new SlotController(this, \"hint\")",
|
|
17373
|
+
"inheritedFrom": {
|
|
17374
|
+
"name": "FormAssociatedMixin",
|
|
17375
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17376
|
+
}
|
|
17427
17377
|
},
|
|
17428
17378
|
{
|
|
17429
17379
|
"kind": "field",
|
|
17430
|
-
"name": "
|
|
17380
|
+
"name": "formData",
|
|
17381
|
+
"privacy": "protected",
|
|
17382
|
+
"default": "new FormDataController(this, { value: () => this.formValue })",
|
|
17383
|
+
"inheritedFrom": {
|
|
17384
|
+
"name": "FormAssociatedMixin",
|
|
17385
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17386
|
+
}
|
|
17387
|
+
},
|
|
17388
|
+
{
|
|
17389
|
+
"kind": "field",
|
|
17390
|
+
"name": "inputId",
|
|
17431
17391
|
"type": {
|
|
17432
|
-
"text": "
|
|
17392
|
+
"text": "string"
|
|
17433
17393
|
},
|
|
17434
|
-
"
|
|
17435
|
-
"
|
|
17436
|
-
"
|
|
17437
|
-
|
|
17394
|
+
"privacy": "protected",
|
|
17395
|
+
"default": "\"input\"",
|
|
17396
|
+
"inheritedFrom": {
|
|
17397
|
+
"name": "FormAssociatedMixin",
|
|
17398
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17399
|
+
}
|
|
17438
17400
|
},
|
|
17439
17401
|
{
|
|
17440
17402
|
"kind": "field",
|
|
17441
|
-
"name": "
|
|
17403
|
+
"name": "errorId",
|
|
17442
17404
|
"type": {
|
|
17443
17405
|
"text": "string"
|
|
17444
17406
|
},
|
|
17445
|
-
"
|
|
17446
|
-
"
|
|
17447
|
-
"
|
|
17448
|
-
|
|
17407
|
+
"privacy": "protected",
|
|
17408
|
+
"default": "\"error\"",
|
|
17409
|
+
"inheritedFrom": {
|
|
17410
|
+
"name": "FormAssociatedMixin",
|
|
17411
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17412
|
+
}
|
|
17449
17413
|
},
|
|
17450
17414
|
{
|
|
17451
17415
|
"kind": "field",
|
|
17452
|
-
"name": "
|
|
17416
|
+
"name": "hintId",
|
|
17453
17417
|
"type": {
|
|
17454
17418
|
"text": "string"
|
|
17455
17419
|
},
|
|
17456
|
-
"
|
|
17457
|
-
"
|
|
17458
|
-
"
|
|
17459
|
-
|
|
17420
|
+
"privacy": "protected",
|
|
17421
|
+
"default": "\"hint\"",
|
|
17422
|
+
"inheritedFrom": {
|
|
17423
|
+
"name": "FormAssociatedMixin",
|
|
17424
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17425
|
+
}
|
|
17460
17426
|
},
|
|
17461
17427
|
{
|
|
17462
17428
|
"kind": "field",
|
|
17463
|
-
"name": "
|
|
17429
|
+
"name": "label",
|
|
17464
17430
|
"type": {
|
|
17465
|
-
"text": "
|
|
17431
|
+
"text": "string"
|
|
17466
17432
|
},
|
|
17467
|
-
"default": "
|
|
17468
|
-
"description": "
|
|
17469
|
-
"attribute": "
|
|
17470
|
-
"reflects": true
|
|
17471
|
-
|
|
17472
|
-
|
|
17473
|
-
|
|
17474
|
-
|
|
17475
|
-
"privacy": "protected"
|
|
17476
|
-
},
|
|
17477
|
-
{
|
|
17478
|
-
"kind": "method",
|
|
17479
|
-
"name": "handleStateChange",
|
|
17480
|
-
"privacy": "private",
|
|
17481
|
-
"parameters": [
|
|
17482
|
-
{
|
|
17483
|
-
"name": "prevState",
|
|
17484
|
-
"type": {
|
|
17485
|
-
"text": "TooltipStates"
|
|
17486
|
-
}
|
|
17487
|
-
}
|
|
17488
|
-
]
|
|
17489
|
-
},
|
|
17490
|
-
{
|
|
17491
|
-
"kind": "field",
|
|
17492
|
-
"name": "updatePosition",
|
|
17493
|
-
"privacy": "private",
|
|
17494
|
-
"description": "Setting and updating the position of the tooltip"
|
|
17495
|
-
},
|
|
17496
|
-
{
|
|
17497
|
-
"kind": "field",
|
|
17498
|
-
"name": "hideTooltip",
|
|
17499
|
-
"privacy": "private"
|
|
17500
|
-
},
|
|
17501
|
-
{
|
|
17502
|
-
"kind": "field",
|
|
17503
|
-
"name": "reposition",
|
|
17504
|
-
"privacy": "private"
|
|
17505
|
-
},
|
|
17506
|
-
{
|
|
17507
|
-
"kind": "field",
|
|
17508
|
-
"name": "handleShow",
|
|
17509
|
-
"privacy": "private"
|
|
17510
|
-
},
|
|
17511
|
-
{
|
|
17512
|
-
"kind": "field",
|
|
17513
|
-
"name": "handleHide",
|
|
17514
|
-
"privacy": "private"
|
|
17515
|
-
},
|
|
17516
|
-
{
|
|
17517
|
-
"kind": "field",
|
|
17518
|
-
"name": "hideOnEscape",
|
|
17519
|
-
"privacy": "private"
|
|
17520
|
-
},
|
|
17521
|
-
{
|
|
17522
|
-
"kind": "field",
|
|
17523
|
-
"name": "addDescribedBy",
|
|
17524
|
-
"privacy": "private"
|
|
17433
|
+
"default": "\"\"",
|
|
17434
|
+
"description": "Label for the input.",
|
|
17435
|
+
"attribute": "label",
|
|
17436
|
+
"reflects": true,
|
|
17437
|
+
"inheritedFrom": {
|
|
17438
|
+
"name": "FormAssociatedMixin",
|
|
17439
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17440
|
+
}
|
|
17525
17441
|
},
|
|
17526
17442
|
{
|
|
17527
17443
|
"kind": "field",
|
|
17528
|
-
"name": "
|
|
17529
|
-
"privacy": "private"
|
|
17530
|
-
}
|
|
17531
|
-
],
|
|
17532
|
-
"attributes": [
|
|
17533
|
-
{
|
|
17534
|
-
"name": "position",
|
|
17444
|
+
"name": "hint",
|
|
17535
17445
|
"type": {
|
|
17536
|
-
"text": "
|
|
17446
|
+
"text": "string | undefined"
|
|
17537
17447
|
},
|
|
17538
|
-
"
|
|
17539
|
-
"
|
|
17540
|
-
"
|
|
17448
|
+
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
17449
|
+
"attribute": "hint",
|
|
17450
|
+
"reflects": true,
|
|
17451
|
+
"inheritedFrom": {
|
|
17452
|
+
"name": "FormAssociatedMixin",
|
|
17453
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17454
|
+
}
|
|
17541
17455
|
},
|
|
17542
17456
|
{
|
|
17543
|
-
"
|
|
17457
|
+
"kind": "field",
|
|
17458
|
+
"name": "hideLabel",
|
|
17544
17459
|
"type": {
|
|
17545
|
-
"text": "
|
|
17460
|
+
"text": "boolean"
|
|
17546
17461
|
},
|
|
17547
|
-
"default": "
|
|
17548
|
-
"description": "
|
|
17549
|
-
"
|
|
17462
|
+
"default": "false",
|
|
17463
|
+
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
17464
|
+
"attribute": "hide-label",
|
|
17465
|
+
"reflects": true,
|
|
17466
|
+
"inheritedFrom": {
|
|
17467
|
+
"name": "FormAssociatedMixin",
|
|
17468
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17469
|
+
}
|
|
17550
17470
|
},
|
|
17551
17471
|
{
|
|
17552
|
-
"
|
|
17472
|
+
"kind": "field",
|
|
17473
|
+
"name": "placeholder",
|
|
17553
17474
|
"type": {
|
|
17554
|
-
"text": "string"
|
|
17475
|
+
"text": "string | undefined"
|
|
17555
17476
|
},
|
|
17556
|
-
"
|
|
17557
|
-
"
|
|
17558
|
-
"
|
|
17477
|
+
"description": "Placeholder text to display within the input.",
|
|
17478
|
+
"attribute": "placeholder",
|
|
17479
|
+
"reflects": true,
|
|
17480
|
+
"inheritedFrom": {
|
|
17481
|
+
"name": "FormAssociatedMixin",
|
|
17482
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17483
|
+
}
|
|
17559
17484
|
},
|
|
17560
17485
|
{
|
|
17561
|
-
"
|
|
17486
|
+
"kind": "field",
|
|
17487
|
+
"name": "error",
|
|
17562
17488
|
"type": {
|
|
17563
|
-
"text": "
|
|
17489
|
+
"text": "string | undefined"
|
|
17564
17490
|
},
|
|
17565
|
-
"
|
|
17566
|
-
"
|
|
17567
|
-
"
|
|
17568
|
-
}
|
|
17569
|
-
],
|
|
17570
|
-
"superclass": {
|
|
17571
|
-
"name": "LitElement",
|
|
17572
|
-
"package": "lit"
|
|
17573
|
-
},
|
|
17574
|
-
"localization": [],
|
|
17575
|
-
"status": "ready",
|
|
17576
|
-
"category": "overlay",
|
|
17577
|
-
"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 a tooltip if an interactive element requires more explanation.\n- Use a tooltip to provide additional information, such as UI shortcuts.\n- Use the `label` attribute on icons used for shortcuts for accessibility.\n- Use clear and accurate phrasing.\n- Be consistent with positioning of tooltips in the user interface.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use interactive elements such as links or buttons inside a tooltip.\n- Don’t rely on tooltips when you have room to provide more explanation.\n- Don’t depend on tooltips for vital information.\n\n</div>\n\n---\n\n## Content guidelines\n\nTooltips should be clear and informative, but not imperative to using the interface they refer to. They should not contain interactive elements such as buttons or links.\n\n<div class=\"n-usage n-usage-do\">Export – Export data as a spreadsheet</div>\n<div class=\"n-usage n-usage-dont\">Export – Export data as a CSV, <u>more information on CSVs</u></div>\n\nTooltips should provide useful information and not repeat information that is already present.\n\n<div class=\"n-usage n-usage-do\">Export – Export data as a spreadsheet</div>\n<div class=\"n-usage n-usage-dont\">Export – Export data</div>\n\nWhen writing tooltips, 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\">Export data as a spreadsheet</div>\n<div class=\"n-usage n-usage-dont\">Export Data As a Spreadsheet</div>\n\nUse tooltips sparingly. If your UI is requiring a lot of tooltips, consider revising the interface to provide better explanations and better labelling.\n\n---\n\n## Additional considerations\n\n- Always provide a tooltip for icon-only buttons or a button with an associated keyboard shortcut.\n- Don’t use tooltip to communicate critical information, including errors.\n- Use sparingly. If you’re building something that requires a lot of tooltips, take a step back and work on clarifying the design and the language used instead.\n",
|
|
17578
|
-
"examples": [],
|
|
17579
|
-
"dependencies": [],
|
|
17580
|
-
"tagName": "nord-tooltip",
|
|
17581
|
-
"customElement": true
|
|
17582
|
-
}
|
|
17583
|
-
],
|
|
17584
|
-
"exports": [
|
|
17585
|
-
{
|
|
17586
|
-
"kind": "js",
|
|
17587
|
-
"name": "default",
|
|
17588
|
-
"declaration": {
|
|
17589
|
-
"name": "Tooltip",
|
|
17590
|
-
"module": "src/tooltip/Tooltip.ts"
|
|
17591
|
-
}
|
|
17592
|
-
},
|
|
17593
|
-
{
|
|
17594
|
-
"kind": "custom-element-definition",
|
|
17595
|
-
"name": "nord-tooltip",
|
|
17596
|
-
"declaration": {
|
|
17597
|
-
"name": "Tooltip",
|
|
17598
|
-
"module": "src/tooltip/Tooltip.ts"
|
|
17599
|
-
}
|
|
17600
|
-
}
|
|
17601
|
-
]
|
|
17602
|
-
},
|
|
17603
|
-
{
|
|
17604
|
-
"kind": "javascript-module",
|
|
17605
|
-
"path": "src/toggle/Toggle.ts",
|
|
17606
|
-
"declarations": [
|
|
17607
|
-
{
|
|
17608
|
-
"kind": "class",
|
|
17609
|
-
"description": "Toggle switch gives control over a feature or option that can be\nturned on or off. If a physical switch would work for the action, a\ntoggle is probably the best component to use.",
|
|
17610
|
-
"name": "Toggle",
|
|
17611
|
-
"cssProperties": [
|
|
17612
|
-
{
|
|
17613
|
-
"description": "Controls the text color of the label, using our [color tokens](/tokens/#color).",
|
|
17614
|
-
"name": "--n-label-color",
|
|
17615
|
-
"default": "var(--n-color-text)"
|
|
17616
|
-
}
|
|
17617
|
-
],
|
|
17618
|
-
"slots": [
|
|
17619
|
-
{
|
|
17620
|
-
"description": "Use when a label requires more than plain text.",
|
|
17621
|
-
"name": "label"
|
|
17622
|
-
},
|
|
17623
|
-
{
|
|
17624
|
-
"description": "Optional slot that holds hint text for the input.",
|
|
17625
|
-
"name": "hint"
|
|
17626
|
-
},
|
|
17627
|
-
{
|
|
17628
|
-
"description": "Optional slot that holds error text for the input.",
|
|
17629
|
-
"name": "error"
|
|
17630
|
-
}
|
|
17631
|
-
],
|
|
17632
|
-
"members": [
|
|
17633
|
-
{
|
|
17634
|
-
"kind": "field",
|
|
17635
|
-
"name": "formValue",
|
|
17636
|
-
"privacy": "protected",
|
|
17637
|
-
"readonly": true,
|
|
17491
|
+
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
17492
|
+
"attribute": "error",
|
|
17493
|
+
"reflects": true,
|
|
17638
17494
|
"inheritedFrom": {
|
|
17639
17495
|
"name": "FormAssociatedMixin",
|
|
17640
17496
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -17642,40 +17498,37 @@
|
|
|
17642
17498
|
},
|
|
17643
17499
|
{
|
|
17644
17500
|
"kind": "field",
|
|
17645
|
-
"name": "
|
|
17501
|
+
"name": "required",
|
|
17646
17502
|
"type": {
|
|
17647
17503
|
"text": "boolean"
|
|
17648
17504
|
},
|
|
17649
17505
|
"default": "false",
|
|
17650
|
-
"description": "
|
|
17651
|
-
"attribute": "
|
|
17652
|
-
"reflects": true
|
|
17506
|
+
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
17507
|
+
"attribute": "required",
|
|
17508
|
+
"reflects": true,
|
|
17509
|
+
"inheritedFrom": {
|
|
17510
|
+
"name": "FormAssociatedMixin",
|
|
17511
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17512
|
+
}
|
|
17653
17513
|
},
|
|
17654
17514
|
{
|
|
17655
17515
|
"kind": "field",
|
|
17656
|
-
"name": "
|
|
17516
|
+
"name": "hideRequired",
|
|
17657
17517
|
"type": {
|
|
17658
17518
|
"text": "boolean"
|
|
17659
17519
|
},
|
|
17660
17520
|
"default": "false",
|
|
17661
|
-
"description": "
|
|
17662
|
-
"attribute": "
|
|
17663
|
-
"reflects": true
|
|
17664
|
-
|
|
17665
|
-
|
|
17666
|
-
|
|
17667
|
-
|
|
17668
|
-
"type": {
|
|
17669
|
-
"text": "\"s\" | \"m\" | \"l\""
|
|
17670
|
-
},
|
|
17671
|
-
"default": "\"m\"",
|
|
17672
|
-
"description": "The size of the toggle switch.",
|
|
17673
|
-
"attribute": "size",
|
|
17674
|
-
"reflects": true
|
|
17521
|
+
"description": "Visually hide the required indicator, but still show\nrequired attribute to assistive technologies like screen readers.",
|
|
17522
|
+
"attribute": "hide-required",
|
|
17523
|
+
"reflects": true,
|
|
17524
|
+
"inheritedFrom": {
|
|
17525
|
+
"name": "FormAssociatedMixin",
|
|
17526
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17527
|
+
}
|
|
17675
17528
|
},
|
|
17676
17529
|
{
|
|
17677
17530
|
"kind": "method",
|
|
17678
|
-
"name": "
|
|
17531
|
+
"name": "handleInput",
|
|
17679
17532
|
"privacy": "protected",
|
|
17680
17533
|
"parameters": [
|
|
17681
17534
|
{
|
|
@@ -17685,227 +17538,24 @@
|
|
|
17685
17538
|
}
|
|
17686
17539
|
}
|
|
17687
17540
|
],
|
|
17688
|
-
"return": {
|
|
17689
|
-
"type": {
|
|
17690
|
-
"text": "void"
|
|
17691
|
-
}
|
|
17692
|
-
},
|
|
17693
17541
|
"inheritedFrom": {
|
|
17694
17542
|
"name": "FormAssociatedMixin",
|
|
17695
17543
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17696
17544
|
}
|
|
17697
17545
|
},
|
|
17698
17546
|
{
|
|
17699
|
-
"kind": "
|
|
17700
|
-
"name": "
|
|
17547
|
+
"kind": "method",
|
|
17548
|
+
"name": "renderLabel",
|
|
17701
17549
|
"privacy": "protected",
|
|
17702
|
-
"
|
|
17703
|
-
|
|
17704
|
-
|
|
17705
|
-
|
|
17706
|
-
|
|
17707
|
-
|
|
17708
|
-
|
|
17709
|
-
|
|
17710
|
-
|
|
17711
|
-
"privacy": "protected",
|
|
17712
|
-
"default": "new SlotController(this, \"error\")",
|
|
17713
|
-
"inheritedFrom": {
|
|
17714
|
-
"name": "FormAssociatedMixin",
|
|
17715
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17716
|
-
}
|
|
17717
|
-
},
|
|
17718
|
-
{
|
|
17719
|
-
"kind": "field",
|
|
17720
|
-
"name": "hintSlot",
|
|
17721
|
-
"privacy": "protected",
|
|
17722
|
-
"default": "new SlotController(this, \"hint\")",
|
|
17723
|
-
"inheritedFrom": {
|
|
17724
|
-
"name": "FormAssociatedMixin",
|
|
17725
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17726
|
-
}
|
|
17727
|
-
},
|
|
17728
|
-
{
|
|
17729
|
-
"kind": "field",
|
|
17730
|
-
"name": "formData",
|
|
17731
|
-
"privacy": "protected",
|
|
17732
|
-
"default": "new FormDataController(this, { value: () => this.formValue })",
|
|
17733
|
-
"inheritedFrom": {
|
|
17734
|
-
"name": "FormAssociatedMixin",
|
|
17735
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17736
|
-
}
|
|
17737
|
-
},
|
|
17738
|
-
{
|
|
17739
|
-
"kind": "field",
|
|
17740
|
-
"name": "inputId",
|
|
17741
|
-
"type": {
|
|
17742
|
-
"text": "string"
|
|
17743
|
-
},
|
|
17744
|
-
"privacy": "protected",
|
|
17745
|
-
"default": "\"input\"",
|
|
17746
|
-
"inheritedFrom": {
|
|
17747
|
-
"name": "FormAssociatedMixin",
|
|
17748
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17749
|
-
}
|
|
17750
|
-
},
|
|
17751
|
-
{
|
|
17752
|
-
"kind": "field",
|
|
17753
|
-
"name": "errorId",
|
|
17754
|
-
"type": {
|
|
17755
|
-
"text": "string"
|
|
17756
|
-
},
|
|
17757
|
-
"privacy": "protected",
|
|
17758
|
-
"default": "\"error\"",
|
|
17759
|
-
"inheritedFrom": {
|
|
17760
|
-
"name": "FormAssociatedMixin",
|
|
17761
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17762
|
-
}
|
|
17763
|
-
},
|
|
17764
|
-
{
|
|
17765
|
-
"kind": "field",
|
|
17766
|
-
"name": "hintId",
|
|
17767
|
-
"type": {
|
|
17768
|
-
"text": "string"
|
|
17769
|
-
},
|
|
17770
|
-
"privacy": "protected",
|
|
17771
|
-
"default": "\"hint\"",
|
|
17772
|
-
"inheritedFrom": {
|
|
17773
|
-
"name": "FormAssociatedMixin",
|
|
17774
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17775
|
-
}
|
|
17776
|
-
},
|
|
17777
|
-
{
|
|
17778
|
-
"kind": "field",
|
|
17779
|
-
"name": "label",
|
|
17780
|
-
"type": {
|
|
17781
|
-
"text": "string"
|
|
17782
|
-
},
|
|
17783
|
-
"default": "\"\"",
|
|
17784
|
-
"description": "Label for the input.",
|
|
17785
|
-
"attribute": "label",
|
|
17786
|
-
"reflects": true,
|
|
17787
|
-
"inheritedFrom": {
|
|
17788
|
-
"name": "FormAssociatedMixin",
|
|
17789
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17790
|
-
}
|
|
17791
|
-
},
|
|
17792
|
-
{
|
|
17793
|
-
"kind": "field",
|
|
17794
|
-
"name": "hint",
|
|
17795
|
-
"type": {
|
|
17796
|
-
"text": "string | undefined"
|
|
17797
|
-
},
|
|
17798
|
-
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
17799
|
-
"attribute": "hint",
|
|
17800
|
-
"reflects": true,
|
|
17801
|
-
"inheritedFrom": {
|
|
17802
|
-
"name": "FormAssociatedMixin",
|
|
17803
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17804
|
-
}
|
|
17805
|
-
},
|
|
17806
|
-
{
|
|
17807
|
-
"kind": "field",
|
|
17808
|
-
"name": "hideLabel",
|
|
17809
|
-
"type": {
|
|
17810
|
-
"text": "boolean"
|
|
17811
|
-
},
|
|
17812
|
-
"default": "false",
|
|
17813
|
-
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
17814
|
-
"attribute": "hide-label",
|
|
17815
|
-
"reflects": true,
|
|
17816
|
-
"inheritedFrom": {
|
|
17817
|
-
"name": "FormAssociatedMixin",
|
|
17818
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17819
|
-
}
|
|
17820
|
-
},
|
|
17821
|
-
{
|
|
17822
|
-
"kind": "field",
|
|
17823
|
-
"name": "placeholder",
|
|
17824
|
-
"type": {
|
|
17825
|
-
"text": "string | undefined"
|
|
17826
|
-
},
|
|
17827
|
-
"description": "Placeholder text to display within the input.",
|
|
17828
|
-
"attribute": "placeholder",
|
|
17829
|
-
"reflects": true,
|
|
17830
|
-
"inheritedFrom": {
|
|
17831
|
-
"name": "FormAssociatedMixin",
|
|
17832
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17833
|
-
}
|
|
17834
|
-
},
|
|
17835
|
-
{
|
|
17836
|
-
"kind": "field",
|
|
17837
|
-
"name": "error",
|
|
17838
|
-
"type": {
|
|
17839
|
-
"text": "string | undefined"
|
|
17840
|
-
},
|
|
17841
|
-
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
17842
|
-
"attribute": "error",
|
|
17843
|
-
"reflects": true,
|
|
17844
|
-
"inheritedFrom": {
|
|
17845
|
-
"name": "FormAssociatedMixin",
|
|
17846
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17847
|
-
}
|
|
17848
|
-
},
|
|
17849
|
-
{
|
|
17850
|
-
"kind": "field",
|
|
17851
|
-
"name": "required",
|
|
17852
|
-
"type": {
|
|
17853
|
-
"text": "boolean"
|
|
17854
|
-
},
|
|
17855
|
-
"default": "false",
|
|
17856
|
-
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
17857
|
-
"attribute": "required",
|
|
17858
|
-
"reflects": true,
|
|
17859
|
-
"inheritedFrom": {
|
|
17860
|
-
"name": "FormAssociatedMixin",
|
|
17861
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17862
|
-
}
|
|
17863
|
-
},
|
|
17864
|
-
{
|
|
17865
|
-
"kind": "field",
|
|
17866
|
-
"name": "hideRequired",
|
|
17867
|
-
"type": {
|
|
17868
|
-
"text": "boolean"
|
|
17869
|
-
},
|
|
17870
|
-
"default": "false",
|
|
17871
|
-
"description": "Visually hide the required indicator, but still show\nrequired attribute to assistive technologies like screen readers.",
|
|
17872
|
-
"attribute": "hide-required",
|
|
17873
|
-
"reflects": true,
|
|
17874
|
-
"inheritedFrom": {
|
|
17875
|
-
"name": "FormAssociatedMixin",
|
|
17876
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17877
|
-
}
|
|
17878
|
-
},
|
|
17879
|
-
{
|
|
17880
|
-
"kind": "method",
|
|
17881
|
-
"name": "handleInput",
|
|
17882
|
-
"privacy": "protected",
|
|
17883
|
-
"parameters": [
|
|
17884
|
-
{
|
|
17885
|
-
"name": "e",
|
|
17886
|
-
"type": {
|
|
17887
|
-
"text": "Event"
|
|
17888
|
-
}
|
|
17889
|
-
}
|
|
17890
|
-
],
|
|
17891
|
-
"inheritedFrom": {
|
|
17892
|
-
"name": "FormAssociatedMixin",
|
|
17893
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17894
|
-
}
|
|
17895
|
-
},
|
|
17896
|
-
{
|
|
17897
|
-
"kind": "method",
|
|
17898
|
-
"name": "renderLabel",
|
|
17899
|
-
"privacy": "protected",
|
|
17900
|
-
"parameters": [
|
|
17901
|
-
{
|
|
17902
|
-
"name": "additionalContent",
|
|
17903
|
-
"optional": true,
|
|
17904
|
-
"type": {
|
|
17905
|
-
"text": "TemplateResult"
|
|
17906
|
-
}
|
|
17907
|
-
}
|
|
17908
|
-
],
|
|
17550
|
+
"parameters": [
|
|
17551
|
+
{
|
|
17552
|
+
"name": "additionalContent",
|
|
17553
|
+
"optional": true,
|
|
17554
|
+
"type": {
|
|
17555
|
+
"text": "TemplateResult"
|
|
17556
|
+
}
|
|
17557
|
+
}
|
|
17558
|
+
],
|
|
17909
17559
|
"inheritedFrom": {
|
|
17910
17560
|
"name": "FormAssociatedMixin",
|
|
17911
17561
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -18106,165 +17756,542 @@
|
|
|
18106
17756
|
"fieldName": "reverse"
|
|
18107
17757
|
},
|
|
18108
17758
|
{
|
|
18109
|
-
"name": "size",
|
|
17759
|
+
"name": "size",
|
|
17760
|
+
"type": {
|
|
17761
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
17762
|
+
},
|
|
17763
|
+
"default": "\"m\"",
|
|
17764
|
+
"description": "The size of the toggle switch.",
|
|
17765
|
+
"fieldName": "size"
|
|
17766
|
+
},
|
|
17767
|
+
{
|
|
17768
|
+
"name": "label",
|
|
17769
|
+
"type": {
|
|
17770
|
+
"text": "string"
|
|
17771
|
+
},
|
|
17772
|
+
"default": "\"\"",
|
|
17773
|
+
"description": "Label for the input.",
|
|
17774
|
+
"fieldName": "label",
|
|
17775
|
+
"inheritedFrom": {
|
|
17776
|
+
"name": "FormAssociatedMixin",
|
|
17777
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17778
|
+
}
|
|
17779
|
+
},
|
|
17780
|
+
{
|
|
17781
|
+
"name": "hint",
|
|
17782
|
+
"type": {
|
|
17783
|
+
"text": "string | undefined"
|
|
17784
|
+
},
|
|
17785
|
+
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
17786
|
+
"fieldName": "hint",
|
|
17787
|
+
"inheritedFrom": {
|
|
17788
|
+
"name": "FormAssociatedMixin",
|
|
17789
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17790
|
+
}
|
|
17791
|
+
},
|
|
17792
|
+
{
|
|
17793
|
+
"name": "hide-label",
|
|
17794
|
+
"type": {
|
|
17795
|
+
"text": "boolean"
|
|
17796
|
+
},
|
|
17797
|
+
"default": "false",
|
|
17798
|
+
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
17799
|
+
"fieldName": "hideLabel",
|
|
17800
|
+
"inheritedFrom": {
|
|
17801
|
+
"name": "FormAssociatedMixin",
|
|
17802
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17803
|
+
}
|
|
17804
|
+
},
|
|
17805
|
+
{
|
|
17806
|
+
"name": "placeholder",
|
|
17807
|
+
"type": {
|
|
17808
|
+
"text": "string | undefined"
|
|
17809
|
+
},
|
|
17810
|
+
"description": "Placeholder text to display within the input.",
|
|
17811
|
+
"fieldName": "placeholder",
|
|
17812
|
+
"inheritedFrom": {
|
|
17813
|
+
"name": "FormAssociatedMixin",
|
|
17814
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17815
|
+
}
|
|
17816
|
+
},
|
|
17817
|
+
{
|
|
17818
|
+
"name": "error",
|
|
17819
|
+
"type": {
|
|
17820
|
+
"text": "string | undefined"
|
|
17821
|
+
},
|
|
17822
|
+
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
17823
|
+
"fieldName": "error",
|
|
17824
|
+
"inheritedFrom": {
|
|
17825
|
+
"name": "FormAssociatedMixin",
|
|
17826
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17827
|
+
}
|
|
17828
|
+
},
|
|
17829
|
+
{
|
|
17830
|
+
"name": "required",
|
|
17831
|
+
"type": {
|
|
17832
|
+
"text": "boolean"
|
|
17833
|
+
},
|
|
17834
|
+
"default": "false",
|
|
17835
|
+
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
17836
|
+
"fieldName": "required",
|
|
17837
|
+
"inheritedFrom": {
|
|
17838
|
+
"name": "FormAssociatedMixin",
|
|
17839
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17840
|
+
}
|
|
17841
|
+
},
|
|
17842
|
+
{
|
|
17843
|
+
"name": "hide-required",
|
|
17844
|
+
"type": {
|
|
17845
|
+
"text": "boolean"
|
|
17846
|
+
},
|
|
17847
|
+
"default": "false",
|
|
17848
|
+
"description": "Visually hide the required indicator, but still show\nrequired attribute to assistive technologies like screen readers.",
|
|
17849
|
+
"fieldName": "hideRequired",
|
|
17850
|
+
"inheritedFrom": {
|
|
17851
|
+
"name": "FormAssociatedMixin",
|
|
17852
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17853
|
+
}
|
|
17854
|
+
},
|
|
17855
|
+
{
|
|
17856
|
+
"name": "disabled",
|
|
17857
|
+
"type": {
|
|
17858
|
+
"text": "boolean"
|
|
17859
|
+
},
|
|
17860
|
+
"default": "false",
|
|
17861
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
17862
|
+
"fieldName": "disabled",
|
|
17863
|
+
"inheritedFrom": {
|
|
17864
|
+
"name": "InputMixin",
|
|
17865
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
17866
|
+
}
|
|
17867
|
+
},
|
|
17868
|
+
{
|
|
17869
|
+
"name": "name",
|
|
17870
|
+
"type": {
|
|
17871
|
+
"text": "string | undefined"
|
|
17872
|
+
},
|
|
17873
|
+
"description": "The name of the form component.",
|
|
17874
|
+
"fieldName": "name",
|
|
17875
|
+
"inheritedFrom": {
|
|
17876
|
+
"name": "InputMixin",
|
|
17877
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
17878
|
+
}
|
|
17879
|
+
},
|
|
17880
|
+
{
|
|
17881
|
+
"name": "value",
|
|
17882
|
+
"type": {
|
|
17883
|
+
"text": "string"
|
|
17884
|
+
},
|
|
17885
|
+
"default": "\"\"",
|
|
17886
|
+
"description": "The value of the form component.",
|
|
17887
|
+
"fieldName": "value",
|
|
17888
|
+
"inheritedFrom": {
|
|
17889
|
+
"name": "InputMixin",
|
|
17890
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
17891
|
+
}
|
|
17892
|
+
},
|
|
17893
|
+
{
|
|
17894
|
+
"name": "form",
|
|
17895
|
+
"type": {
|
|
17896
|
+
"text": "HTMLFormElement | null"
|
|
17897
|
+
},
|
|
17898
|
+
"description": "Gets the form, if any, associated with the form element.\nThe setter accepts a string, which is the id of the form.",
|
|
17899
|
+
"fieldName": "form",
|
|
17900
|
+
"inheritedFrom": {
|
|
17901
|
+
"name": "InputMixin",
|
|
17902
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
17903
|
+
}
|
|
17904
|
+
}
|
|
17905
|
+
],
|
|
17906
|
+
"mixins": [
|
|
17907
|
+
{
|
|
17908
|
+
"name": "FormAssociatedMixin",
|
|
17909
|
+
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
17910
|
+
},
|
|
17911
|
+
{
|
|
17912
|
+
"name": "InputMixin",
|
|
17913
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
17914
|
+
},
|
|
17915
|
+
{
|
|
17916
|
+
"name": "FocusableMixin",
|
|
17917
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
17918
|
+
}
|
|
17919
|
+
],
|
|
17920
|
+
"superclass": {
|
|
17921
|
+
"name": "LitElement",
|
|
17922
|
+
"package": "lit"
|
|
17923
|
+
},
|
|
17924
|
+
"localization": [],
|
|
17925
|
+
"status": "ready",
|
|
17926
|
+
"category": "form",
|
|
17927
|
+
"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 toggles when your intent is to turn something on or off instantly.\n- Use for any feature or option that can be turned on or off.\n- If a physical switch would work for the action, the toggle is probably the best component to use.\n- Use for making it possible to choose one or more options from a limited number of options.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Toggles should never require users to click a button to apply or save the setting.\n- Avoid using when you have more than 10 options to choose from.\n- Don’t change the selection of another toggle when another one is clicked. Only exception is when a toggle is used to make a bulk selection of multiple items.\n\n</div>\n\n---\n\n## Content guidelines\n\nToggle labels should be clear, accurate and predictable. It should be possible for the user to understand what they are selecting:\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">Option 1</div>\n\nWhen writing toggle 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\">User settings</div>\n<div class=\"n-usage n-usage-dont\">User Settings</div>\n\nAvoid ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Show dashboard</div>\n<div class=\"n-usage n-usage-dont\">Show dashboard.</div>\n\nDo not use commas or semicolons at the end of each line\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients;</div>\n",
|
|
17928
|
+
"examples": [],
|
|
17929
|
+
"dependencies": [],
|
|
17930
|
+
"tagName": "nord-toggle",
|
|
17931
|
+
"customElement": true,
|
|
17932
|
+
"events": [
|
|
17933
|
+
{
|
|
17934
|
+
"name": "input",
|
|
17935
|
+
"type": {
|
|
17936
|
+
"text": "NordEvent"
|
|
17937
|
+
},
|
|
17938
|
+
"description": "Fired as the user types into the input.",
|
|
17939
|
+
"inheritedFrom": {
|
|
17940
|
+
"name": "FormAssociatedMixin",
|
|
17941
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17942
|
+
}
|
|
17943
|
+
},
|
|
17944
|
+
{
|
|
17945
|
+
"name": "change",
|
|
17946
|
+
"type": {
|
|
17947
|
+
"text": "NordEvent"
|
|
17948
|
+
},
|
|
17949
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
17950
|
+
"inheritedFrom": {
|
|
17951
|
+
"name": "FormAssociatedMixin",
|
|
17952
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
17953
|
+
}
|
|
17954
|
+
}
|
|
17955
|
+
]
|
|
17956
|
+
}
|
|
17957
|
+
],
|
|
17958
|
+
"exports": [
|
|
17959
|
+
{
|
|
17960
|
+
"kind": "js",
|
|
17961
|
+
"name": "default",
|
|
17962
|
+
"declaration": {
|
|
17963
|
+
"name": "Toggle",
|
|
17964
|
+
"module": "src/toggle/Toggle.ts"
|
|
17965
|
+
}
|
|
17966
|
+
},
|
|
17967
|
+
{
|
|
17968
|
+
"kind": "custom-element-definition",
|
|
17969
|
+
"name": "nord-toggle",
|
|
17970
|
+
"declaration": {
|
|
17971
|
+
"name": "Toggle",
|
|
17972
|
+
"module": "src/toggle/Toggle.ts"
|
|
17973
|
+
}
|
|
17974
|
+
}
|
|
17975
|
+
]
|
|
17976
|
+
},
|
|
17977
|
+
{
|
|
17978
|
+
"kind": "javascript-module",
|
|
17979
|
+
"path": "src/toast-group/ToastGroup.ts",
|
|
17980
|
+
"declarations": [
|
|
17981
|
+
{
|
|
17982
|
+
"kind": "class",
|
|
17983
|
+
"description": "Toast group is used to position and style a group of toasts, whilst ensuring they are announced by screen readers.",
|
|
17984
|
+
"name": "ToastGroup",
|
|
17985
|
+
"slots": [
|
|
17986
|
+
{
|
|
17987
|
+
"description": "Default slot in which to place toasts.",
|
|
17988
|
+
"name": ""
|
|
17989
|
+
}
|
|
17990
|
+
],
|
|
17991
|
+
"members": [
|
|
17992
|
+
{
|
|
17993
|
+
"kind": "method",
|
|
17994
|
+
"name": "addToast",
|
|
17995
|
+
"parameters": [
|
|
17996
|
+
{
|
|
17997
|
+
"name": "text",
|
|
17998
|
+
"type": {
|
|
17999
|
+
"text": "string"
|
|
18000
|
+
},
|
|
18001
|
+
"description": "The text/message of the toast."
|
|
18002
|
+
},
|
|
18003
|
+
{
|
|
18004
|
+
"name": "options",
|
|
18005
|
+
"default": "{}",
|
|
18006
|
+
"type": {
|
|
18007
|
+
"text": "ToastOptions"
|
|
18008
|
+
},
|
|
18009
|
+
"description": "An optional object for configuring the toast's `variant` and `autoDismiss`."
|
|
18010
|
+
}
|
|
18011
|
+
],
|
|
18012
|
+
"description": "Convenience method for creating and adding a toast to the group.",
|
|
18013
|
+
"return": {
|
|
18014
|
+
"type": {
|
|
18015
|
+
"text": "Toast"
|
|
18016
|
+
}
|
|
18017
|
+
}
|
|
18018
|
+
}
|
|
18019
|
+
],
|
|
18020
|
+
"events": [
|
|
18021
|
+
{
|
|
18022
|
+
"type": {
|
|
18023
|
+
"text": "NordEvent"
|
|
18024
|
+
},
|
|
18025
|
+
"description": "Fired when a toast is dismissed (via user action or auto-dismiss), and its exit animation has completed. This event should be used to remove the dismissed toast from the DOM.",
|
|
18026
|
+
"name": "dismiss"
|
|
18027
|
+
}
|
|
18028
|
+
],
|
|
18029
|
+
"superclass": {
|
|
18030
|
+
"name": "LitElement",
|
|
18031
|
+
"package": "lit"
|
|
18032
|
+
},
|
|
18033
|
+
"localization": [],
|
|
18034
|
+
"status": "ready",
|
|
18035
|
+
"category": "feedback",
|
|
18036
|
+
"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 in combination with [Toast](/components/toast/) so that toasts get styled and announced to screen readers correctly.\n- Add as close to the bottom of the document as possible, ideally near the body closing tag, to maintain correct stacking order.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping anything other than toast components\n\n</div>\n\n---\n\n## Content guidelines\n\nToast content should be clear, accurate and understandable by the user:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Your message has been sent</div>\n\nWhen writing the toast content, use the {noun} + {verb} content formula:\n\n<div class=\"n-usage n-usage-do\">Patient created</div>\n<div class=\"n-usage n-usage-dont\">Your patient has been successfully updated</div>\n\nUse a maximum of 3 words when writing the toast content:\n\n<div class=\"n-usage n-usage-do\">Product updated</div>\n<div class=\"n-usage n-usage-dont\">Your product was updated just now</div>\n\nWhen writing the toast 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\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message Sent</div>\n\nAvoid unnecessary words and articles in the toast content, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Changes saved</div>\n<div class=\"n-usage n-usage-dont\">The changes were saved</div>\n\nNever end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message sent.</div>\n\n---\n\n## Additional considerations\n\n- Toasts are complicated from an accessibility perspective. Whilst they are a convenient UI pattern for messaging, they present difficulties for keyboard or screen reader users. Therefore careful consideration should be given as to whether a toast is the correct choice.\n- If the message cannot be conveyed in 3 words or less, consider re-wording. If the message cannot be shortened any further, consider choosing a different pattern than toast.\n",
|
|
18037
|
+
"examples": [],
|
|
18038
|
+
"dependencies": [
|
|
18039
|
+
"toast"
|
|
18040
|
+
],
|
|
18041
|
+
"tagName": "nord-toast-group",
|
|
18042
|
+
"customElement": true
|
|
18043
|
+
}
|
|
18044
|
+
],
|
|
18045
|
+
"exports": [
|
|
18046
|
+
{
|
|
18047
|
+
"kind": "js",
|
|
18048
|
+
"name": "default",
|
|
18049
|
+
"declaration": {
|
|
18050
|
+
"name": "ToastGroup",
|
|
18051
|
+
"module": "src/toast-group/ToastGroup.ts"
|
|
18052
|
+
}
|
|
18053
|
+
},
|
|
18054
|
+
{
|
|
18055
|
+
"kind": "custom-element-definition",
|
|
18056
|
+
"name": "nord-toast-group",
|
|
18057
|
+
"declaration": {
|
|
18058
|
+
"name": "ToastGroup",
|
|
18059
|
+
"module": "src/toast-group/ToastGroup.ts"
|
|
18060
|
+
}
|
|
18061
|
+
}
|
|
18062
|
+
]
|
|
18063
|
+
},
|
|
18064
|
+
{
|
|
18065
|
+
"kind": "javascript-module",
|
|
18066
|
+
"path": "src/tooltip/Tooltip.ts",
|
|
18067
|
+
"declarations": [
|
|
18068
|
+
{
|
|
18069
|
+
"kind": "class",
|
|
18070
|
+
"description": "Tooltips are floating containers for displaying additional information\nfor the currently focused element. A tooltip can be useful when you want\nto e.g. give a hint about an existing Command Menu shortcut.",
|
|
18071
|
+
"name": "Tooltip",
|
|
18072
|
+
"cssProperties": [
|
|
18073
|
+
{
|
|
18074
|
+
"description": "Controls the maximum inline size, or width, of the tooltip.",
|
|
18075
|
+
"name": "--n-tooltip-max-size",
|
|
18076
|
+
"default": "50ch"
|
|
18077
|
+
}
|
|
18078
|
+
],
|
|
18079
|
+
"slots": [
|
|
18080
|
+
{
|
|
18081
|
+
"description": "The tooltip content",
|
|
18082
|
+
"name": ""
|
|
18083
|
+
},
|
|
18084
|
+
{
|
|
18085
|
+
"description": "Optional slot that holds shortcut keys to access the subject",
|
|
18086
|
+
"name": "shortcut"
|
|
18087
|
+
}
|
|
18088
|
+
],
|
|
18089
|
+
"members": [
|
|
18090
|
+
{
|
|
18091
|
+
"kind": "field",
|
|
18092
|
+
"name": "lastOpened",
|
|
18093
|
+
"type": {
|
|
18094
|
+
"text": "Tooltip | undefined"
|
|
18095
|
+
},
|
|
18096
|
+
"privacy": "private",
|
|
18097
|
+
"static": true
|
|
18098
|
+
},
|
|
18099
|
+
{
|
|
18100
|
+
"kind": "field",
|
|
18101
|
+
"name": "shortcutSlot",
|
|
18102
|
+
"privacy": "private",
|
|
18103
|
+
"default": "new SlotController(this, \"shortcut\")"
|
|
18104
|
+
},
|
|
18105
|
+
{
|
|
18106
|
+
"kind": "field",
|
|
18107
|
+
"name": "events",
|
|
18108
|
+
"privacy": "private",
|
|
18109
|
+
"default": "new EventController(this)"
|
|
18110
|
+
},
|
|
18111
|
+
{
|
|
18112
|
+
"kind": "field",
|
|
18113
|
+
"name": "currentElement",
|
|
18114
|
+
"type": {
|
|
18115
|
+
"text": "FocusableElement | undefined"
|
|
18116
|
+
},
|
|
18117
|
+
"privacy": "private"
|
|
18118
|
+
},
|
|
18119
|
+
{
|
|
18120
|
+
"kind": "field",
|
|
18121
|
+
"name": "timeoutId",
|
|
18122
|
+
"type": {
|
|
18123
|
+
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
18124
|
+
},
|
|
18125
|
+
"privacy": "private"
|
|
18126
|
+
},
|
|
18127
|
+
{
|
|
18128
|
+
"kind": "field",
|
|
18129
|
+
"name": "proxy",
|
|
18130
|
+
"type": {
|
|
18131
|
+
"text": "HTMLSpanElement | undefined"
|
|
18132
|
+
},
|
|
18133
|
+
"privacy": "private",
|
|
18134
|
+
"description": "the proxy element is for cases where the targetElement is a web component,\nand the WC has a focusable child in its shadow root e.g. a button component.\nin this case, when the tooltip is shown, we inject the proxy into targetElement's shadow root\nand wire up aria-describedby from the focusable element to the proxy.\nwhen the tooltip is hidden, we remove the proxy and remove the aria-describedby relationship."
|
|
18135
|
+
},
|
|
18136
|
+
{
|
|
18137
|
+
"kind": "field",
|
|
18138
|
+
"name": "state",
|
|
18139
|
+
"type": {
|
|
18140
|
+
"text": "TooltipStates"
|
|
18141
|
+
},
|
|
18142
|
+
"privacy": "private",
|
|
18143
|
+
"default": "\"hidden\"",
|
|
18144
|
+
"description": "The current state of the tooltip, dependent on the state machine"
|
|
18145
|
+
},
|
|
18146
|
+
{
|
|
18147
|
+
"kind": "field",
|
|
18148
|
+
"name": "coords",
|
|
18149
|
+
"type": {
|
|
18150
|
+
"text": "[number, number]"
|
|
18151
|
+
},
|
|
18152
|
+
"privacy": "private",
|
|
18153
|
+
"default": "[0, 0]"
|
|
18154
|
+
},
|
|
18155
|
+
{
|
|
18156
|
+
"kind": "field",
|
|
18157
|
+
"name": "position",
|
|
18158
|
+
"type": {
|
|
18159
|
+
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\""
|
|
18160
|
+
},
|
|
18161
|
+
"default": "\"block-start\"",
|
|
18162
|
+
"description": "Control the position of the tooltip component.\nWhen set to \"none\", the tooltip will be shown above\nbut accommodate for browser boundaries.",
|
|
18163
|
+
"attribute": "position",
|
|
18164
|
+
"reflects": true
|
|
18165
|
+
},
|
|
18166
|
+
{
|
|
18167
|
+
"kind": "field",
|
|
18168
|
+
"name": "role",
|
|
18110
18169
|
"type": {
|
|
18111
|
-
"text": "
|
|
18170
|
+
"text": "string"
|
|
18112
18171
|
},
|
|
18113
|
-
"default": "\"
|
|
18114
|
-
"description": "The
|
|
18115
|
-
"
|
|
18172
|
+
"default": "\"tooltip\"",
|
|
18173
|
+
"description": "The tooltip role, set on the component by default.",
|
|
18174
|
+
"attribute": "role",
|
|
18175
|
+
"reflects": true
|
|
18116
18176
|
},
|
|
18117
18177
|
{
|
|
18118
|
-
"
|
|
18178
|
+
"kind": "field",
|
|
18179
|
+
"name": "id",
|
|
18119
18180
|
"type": {
|
|
18120
18181
|
"text": "string"
|
|
18121
18182
|
},
|
|
18122
18183
|
"default": "\"\"",
|
|
18123
|
-
"description": "
|
|
18124
|
-
"
|
|
18125
|
-
"
|
|
18126
|
-
"name": "FormAssociatedMixin",
|
|
18127
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
18128
|
-
}
|
|
18184
|
+
"description": "The id for the active element to reference via aria-describedby.",
|
|
18185
|
+
"attribute": "id",
|
|
18186
|
+
"reflects": true
|
|
18129
18187
|
},
|
|
18130
18188
|
{
|
|
18131
|
-
"
|
|
18189
|
+
"kind": "field",
|
|
18190
|
+
"name": "delay",
|
|
18132
18191
|
"type": {
|
|
18133
|
-
"text": "
|
|
18192
|
+
"text": "number"
|
|
18134
18193
|
},
|
|
18135
|
-
"
|
|
18136
|
-
"
|
|
18137
|
-
"
|
|
18138
|
-
|
|
18139
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
18140
|
-
}
|
|
18194
|
+
"default": "500",
|
|
18195
|
+
"description": "The delay in milliseconds before the tooltip is opened.",
|
|
18196
|
+
"attribute": "delay",
|
|
18197
|
+
"reflects": true
|
|
18141
18198
|
},
|
|
18142
18199
|
{
|
|
18143
|
-
"
|
|
18144
|
-
"
|
|
18145
|
-
|
|
18146
|
-
},
|
|
18147
|
-
"default": "false",
|
|
18148
|
-
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
18149
|
-
"fieldName": "hideLabel",
|
|
18150
|
-
"inheritedFrom": {
|
|
18151
|
-
"name": "FormAssociatedMixin",
|
|
18152
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
18153
|
-
}
|
|
18200
|
+
"kind": "method",
|
|
18201
|
+
"name": "handleIdChange",
|
|
18202
|
+
"privacy": "protected"
|
|
18154
18203
|
},
|
|
18155
18204
|
{
|
|
18156
|
-
"
|
|
18157
|
-
"
|
|
18158
|
-
|
|
18159
|
-
|
|
18160
|
-
|
|
18161
|
-
|
|
18162
|
-
|
|
18163
|
-
|
|
18164
|
-
|
|
18165
|
-
|
|
18205
|
+
"kind": "method",
|
|
18206
|
+
"name": "handleStateChange",
|
|
18207
|
+
"privacy": "private",
|
|
18208
|
+
"parameters": [
|
|
18209
|
+
{
|
|
18210
|
+
"name": "prevState",
|
|
18211
|
+
"type": {
|
|
18212
|
+
"text": "TooltipStates"
|
|
18213
|
+
}
|
|
18214
|
+
}
|
|
18215
|
+
]
|
|
18166
18216
|
},
|
|
18167
18217
|
{
|
|
18168
|
-
"
|
|
18169
|
-
"
|
|
18170
|
-
|
|
18171
|
-
|
|
18172
|
-
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
18173
|
-
"fieldName": "error",
|
|
18174
|
-
"inheritedFrom": {
|
|
18175
|
-
"name": "FormAssociatedMixin",
|
|
18176
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
18177
|
-
}
|
|
18218
|
+
"kind": "field",
|
|
18219
|
+
"name": "updatePosition",
|
|
18220
|
+
"privacy": "private",
|
|
18221
|
+
"description": "Setting and updating the position of the tooltip"
|
|
18178
18222
|
},
|
|
18179
18223
|
{
|
|
18180
|
-
"
|
|
18181
|
-
"
|
|
18182
|
-
|
|
18183
|
-
},
|
|
18184
|
-
"default": "false",
|
|
18185
|
-
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
18186
|
-
"fieldName": "required",
|
|
18187
|
-
"inheritedFrom": {
|
|
18188
|
-
"name": "FormAssociatedMixin",
|
|
18189
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
18190
|
-
}
|
|
18224
|
+
"kind": "field",
|
|
18225
|
+
"name": "hideTooltip",
|
|
18226
|
+
"privacy": "private"
|
|
18191
18227
|
},
|
|
18192
18228
|
{
|
|
18193
|
-
"
|
|
18194
|
-
"
|
|
18195
|
-
|
|
18196
|
-
},
|
|
18197
|
-
"default": "false",
|
|
18198
|
-
"description": "Visually hide the required indicator, but still show\nrequired attribute to assistive technologies like screen readers.",
|
|
18199
|
-
"fieldName": "hideRequired",
|
|
18200
|
-
"inheritedFrom": {
|
|
18201
|
-
"name": "FormAssociatedMixin",
|
|
18202
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
18203
|
-
}
|
|
18229
|
+
"kind": "field",
|
|
18230
|
+
"name": "reposition",
|
|
18231
|
+
"privacy": "private"
|
|
18204
18232
|
},
|
|
18205
18233
|
{
|
|
18206
|
-
"
|
|
18234
|
+
"kind": "field",
|
|
18235
|
+
"name": "handleShow",
|
|
18236
|
+
"privacy": "private"
|
|
18237
|
+
},
|
|
18238
|
+
{
|
|
18239
|
+
"kind": "field",
|
|
18240
|
+
"name": "handleHide",
|
|
18241
|
+
"privacy": "private"
|
|
18242
|
+
},
|
|
18243
|
+
{
|
|
18244
|
+
"kind": "field",
|
|
18245
|
+
"name": "hideOnEscape",
|
|
18246
|
+
"privacy": "private"
|
|
18247
|
+
},
|
|
18248
|
+
{
|
|
18249
|
+
"kind": "field",
|
|
18250
|
+
"name": "addDescribedBy",
|
|
18251
|
+
"privacy": "private"
|
|
18252
|
+
},
|
|
18253
|
+
{
|
|
18254
|
+
"kind": "field",
|
|
18255
|
+
"name": "removeDescribedBy",
|
|
18256
|
+
"privacy": "private"
|
|
18257
|
+
}
|
|
18258
|
+
],
|
|
18259
|
+
"attributes": [
|
|
18260
|
+
{
|
|
18261
|
+
"name": "position",
|
|
18207
18262
|
"type": {
|
|
18208
|
-
"text": "
|
|
18263
|
+
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\""
|
|
18209
18264
|
},
|
|
18210
|
-
"default": "
|
|
18211
|
-
"description": "
|
|
18212
|
-
"fieldName": "
|
|
18213
|
-
"inheritedFrom": {
|
|
18214
|
-
"name": "InputMixin",
|
|
18215
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
18216
|
-
}
|
|
18265
|
+
"default": "\"block-start\"",
|
|
18266
|
+
"description": "Control the position of the tooltip component.\nWhen set to \"none\", the tooltip will be shown above\nbut accommodate for browser boundaries.",
|
|
18267
|
+
"fieldName": "position"
|
|
18217
18268
|
},
|
|
18218
18269
|
{
|
|
18219
|
-
"name": "
|
|
18270
|
+
"name": "role",
|
|
18220
18271
|
"type": {
|
|
18221
|
-
"text": "string
|
|
18272
|
+
"text": "string"
|
|
18222
18273
|
},
|
|
18223
|
-
"
|
|
18224
|
-
"
|
|
18225
|
-
"
|
|
18226
|
-
"name": "InputMixin",
|
|
18227
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
18228
|
-
}
|
|
18274
|
+
"default": "\"tooltip\"",
|
|
18275
|
+
"description": "The tooltip role, set on the component by default.",
|
|
18276
|
+
"fieldName": "role"
|
|
18229
18277
|
},
|
|
18230
18278
|
{
|
|
18231
|
-
"name": "
|
|
18279
|
+
"name": "id",
|
|
18232
18280
|
"type": {
|
|
18233
18281
|
"text": "string"
|
|
18234
18282
|
},
|
|
18235
18283
|
"default": "\"\"",
|
|
18236
|
-
"description": "The
|
|
18237
|
-
"fieldName": "
|
|
18238
|
-
"inheritedFrom": {
|
|
18239
|
-
"name": "InputMixin",
|
|
18240
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
18241
|
-
}
|
|
18284
|
+
"description": "The id for the active element to reference via aria-describedby.",
|
|
18285
|
+
"fieldName": "id"
|
|
18242
18286
|
},
|
|
18243
18287
|
{
|
|
18244
|
-
"name": "
|
|
18288
|
+
"name": "delay",
|
|
18245
18289
|
"type": {
|
|
18246
|
-
"text": "
|
|
18290
|
+
"text": "number"
|
|
18247
18291
|
},
|
|
18248
|
-
"
|
|
18249
|
-
"
|
|
18250
|
-
"
|
|
18251
|
-
"name": "InputMixin",
|
|
18252
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
18253
|
-
}
|
|
18254
|
-
}
|
|
18255
|
-
],
|
|
18256
|
-
"mixins": [
|
|
18257
|
-
{
|
|
18258
|
-
"name": "FormAssociatedMixin",
|
|
18259
|
-
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
18260
|
-
},
|
|
18261
|
-
{
|
|
18262
|
-
"name": "InputMixin",
|
|
18263
|
-
"module": "/src/common/mixins/InputMixin.js"
|
|
18264
|
-
},
|
|
18265
|
-
{
|
|
18266
|
-
"name": "FocusableMixin",
|
|
18267
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
18292
|
+
"default": "500",
|
|
18293
|
+
"description": "The delay in milliseconds before the tooltip is opened.",
|
|
18294
|
+
"fieldName": "delay"
|
|
18268
18295
|
}
|
|
18269
18296
|
],
|
|
18270
18297
|
"superclass": {
|
|
@@ -18273,36 +18300,12 @@
|
|
|
18273
18300
|
},
|
|
18274
18301
|
"localization": [],
|
|
18275
18302
|
"status": "ready",
|
|
18276
|
-
"category": "
|
|
18277
|
-
"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
|
|
18303
|
+
"category": "overlay",
|
|
18304
|
+
"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 a tooltip if an interactive element requires more explanation.\n- Use a tooltip to provide additional information, such as UI shortcuts.\n- Use the `label` attribute on icons used for shortcuts for accessibility.\n- Use clear and accurate phrasing.\n- Be consistent with positioning of tooltips in the user interface.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use interactive elements such as links or buttons inside a tooltip.\n- Don’t rely on tooltips when you have room to provide more explanation.\n- Don’t depend on tooltips for vital information.\n\n</div>\n\n---\n\n## Content guidelines\n\nTooltips should be clear and informative, but not imperative to using the interface they refer to. They should not contain interactive elements such as buttons or links.\n\n<div class=\"n-usage n-usage-do\">Export – Export data as a spreadsheet</div>\n<div class=\"n-usage n-usage-dont\">Export – Export data as a CSV, <u>more information on CSVs</u></div>\n\nTooltips should provide useful information and not repeat information that is already present.\n\n<div class=\"n-usage n-usage-do\">Export – Export data as a spreadsheet</div>\n<div class=\"n-usage n-usage-dont\">Export – Export data</div>\n\nWhen writing tooltips, 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\">Export data as a spreadsheet</div>\n<div class=\"n-usage n-usage-dont\">Export Data As a Spreadsheet</div>\n\nUse tooltips sparingly. If your UI is requiring a lot of tooltips, consider revising the interface to provide better explanations and better labelling.\n\n---\n\n## Additional considerations\n\n- Always provide a tooltip for icon-only buttons or a button with an associated keyboard shortcut.\n- Don’t use tooltip to communicate critical information, including errors.\n- Use sparingly. If you’re building something that requires a lot of tooltips, take a step back and work on clarifying the design and the language used instead.\n",
|
|
18278
18305
|
"examples": [],
|
|
18279
18306
|
"dependencies": [],
|
|
18280
|
-
"tagName": "nord-
|
|
18281
|
-
"customElement": true
|
|
18282
|
-
"events": [
|
|
18283
|
-
{
|
|
18284
|
-
"name": "input",
|
|
18285
|
-
"type": {
|
|
18286
|
-
"text": "NordEvent"
|
|
18287
|
-
},
|
|
18288
|
-
"description": "Fired as the user types into the input.",
|
|
18289
|
-
"inheritedFrom": {
|
|
18290
|
-
"name": "FormAssociatedMixin",
|
|
18291
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
18292
|
-
}
|
|
18293
|
-
},
|
|
18294
|
-
{
|
|
18295
|
-
"name": "change",
|
|
18296
|
-
"type": {
|
|
18297
|
-
"text": "NordEvent"
|
|
18298
|
-
},
|
|
18299
|
-
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
18300
|
-
"inheritedFrom": {
|
|
18301
|
-
"name": "FormAssociatedMixin",
|
|
18302
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
18303
|
-
}
|
|
18304
|
-
}
|
|
18305
|
-
]
|
|
18307
|
+
"tagName": "nord-tooltip",
|
|
18308
|
+
"customElement": true
|
|
18306
18309
|
}
|
|
18307
18310
|
],
|
|
18308
18311
|
"exports": [
|
|
@@ -18310,16 +18313,16 @@
|
|
|
18310
18313
|
"kind": "js",
|
|
18311
18314
|
"name": "default",
|
|
18312
18315
|
"declaration": {
|
|
18313
|
-
"name": "
|
|
18314
|
-
"module": "src/
|
|
18316
|
+
"name": "Tooltip",
|
|
18317
|
+
"module": "src/tooltip/Tooltip.ts"
|
|
18315
18318
|
}
|
|
18316
18319
|
},
|
|
18317
18320
|
{
|
|
18318
18321
|
"kind": "custom-element-definition",
|
|
18319
|
-
"name": "nord-
|
|
18322
|
+
"name": "nord-tooltip",
|
|
18320
18323
|
"declaration": {
|
|
18321
|
-
"name": "
|
|
18322
|
-
"module": "src/
|
|
18324
|
+
"name": "Tooltip",
|
|
18325
|
+
"module": "src/tooltip/Tooltip.ts"
|
|
18323
18326
|
}
|
|
18324
18327
|
}
|
|
18325
18328
|
]
|
|
@@ -19089,7 +19092,7 @@
|
|
|
19089
19092
|
"kind": "field",
|
|
19090
19093
|
"name": "renderHook",
|
|
19091
19094
|
"type": {
|
|
19092
|
-
"text": "Comment"
|
|
19095
|
+
"text": "Comment | undefined"
|
|
19093
19096
|
},
|
|
19094
19097
|
"privacy": "private"
|
|
19095
19098
|
},
|
|
@@ -19097,7 +19100,7 @@
|
|
|
19097
19100
|
"kind": "field",
|
|
19098
19101
|
"name": "lightDom",
|
|
19099
19102
|
"type": {
|
|
19100
|
-
"text": "LightDomController"
|
|
19103
|
+
"text": "LightDomController | undefined"
|
|
19101
19104
|
},
|
|
19102
19105
|
"privacy": "private",
|
|
19103
19106
|
"default": "new LightDomController(host, { render: () => (this.hasContent ? nothing : this.options.render()), renderOptions: { renderBefore: this.renderHook }, })"
|
|
@@ -19285,10 +19288,9 @@
|
|
|
19285
19288
|
"kind": "field",
|
|
19286
19289
|
"name": "observer",
|
|
19287
19290
|
"type": {
|
|
19288
|
-
"text": "ResizeObserver"
|
|
19291
|
+
"text": "ResizeObserver | undefined"
|
|
19289
19292
|
},
|
|
19290
|
-
"privacy": "private"
|
|
19291
|
-
"default": "new ResizeObserver(([entry]) => { const [borderBoxSize] = entry.borderBoxSize this.borderBoxSize = borderBoxSize host.requestUpdate() })"
|
|
19293
|
+
"privacy": "private"
|
|
19292
19294
|
},
|
|
19293
19295
|
{
|
|
19294
19296
|
"kind": "field",
|