@nordhealth/components 3.1.3 → 3.2.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 +680 -661
- package/lib/{AutocompleteMixin-3cf61f49.js → AutocompleteMixin-a98ada34.js} +2 -2
- package/lib/{AutocompleteMixin-3cf61f49.js.map → AutocompleteMixin-a98ada34.js.map} +1 -1
- package/lib/Avatar.js +1 -1
- package/lib/Badge.js +1 -1
- package/lib/Banner.js +1 -1
- package/lib/Button.js +1 -1
- package/lib/ButtonGroup.js +1 -1
- package/lib/{Calendar-b170e2fc.js → Calendar-3fd55b5d.js} +2 -2
- package/lib/{Calendar-b170e2fc.js.map → Calendar-3fd55b5d.js.map} +1 -1
- package/lib/Calendar.js +1 -1
- package/lib/Card.js +1 -1
- package/lib/Checkbox.js +1 -1
- package/lib/CommandMenu.js +1 -1
- package/lib/CommandMenuAction.js +1 -1
- package/lib/{Component-420bbc41.js → Component-1f694235.js} +2 -2
- package/lib/Component-1f694235.js.map +1 -0
- package/lib/DatePicker.js +1 -1
- package/lib/Divider.js +1 -1
- package/lib/Drawer.js +1 -1
- package/lib/Dropdown.js +1 -1
- package/lib/DropdownGroup.js +1 -1
- package/lib/{DropdownItem-a9bf32f4.js → DropdownItem-4a02675f.js} +2 -2
- package/lib/DropdownItem-4a02675f.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/Fieldset.js +1 -1
- package/lib/FocusableMixin-186c69a2.js +2 -0
- package/lib/{FocusableMixin-4300e44e.js.map → FocusableMixin-186c69a2.js.map} +1 -1
- package/lib/{FormAssociatedMixin-88e4bf5e.js → FormAssociatedMixin-5fedde68.js} +2 -2
- package/lib/{FormAssociatedMixin-88e4bf5e.js.map → FormAssociatedMixin-5fedde68.js.map} +1 -1
- package/lib/{FormField-cbfebb3f.js → FormField-3226fb17.js} +2 -2
- package/lib/FormField-3226fb17.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Icon.js +2 -2
- package/lib/Input.js +1 -1
- package/lib/{InputMixin-f9fb4034.js → InputMixin-d50cb41a.js} +2 -2
- package/lib/{InputMixin-f9fb4034.js.map → InputMixin-d50cb41a.js.map} +1 -1
- package/lib/Layout.js +1 -1
- package/lib/{LightDomController-f78fb046.js → LightDomController-8a770234.js} +2 -2
- package/lib/{LightDomController-f78fb046.js.map → LightDomController-8a770234.js.map} +1 -1
- package/lib/Message.js +1 -1
- package/lib/Modal.js +1 -1
- package/lib/NavGroup.js +1 -1
- package/lib/NavItem.js +1 -1
- package/lib/{NavToggle-11625962.js → NavToggle-fbd227e5.js} +2 -2
- package/lib/{NavToggle-11625962.js.map → NavToggle-fbd227e5.js.map} +1 -1
- package/lib/NavToggle.js +1 -1
- package/lib/Navigation.js +1 -1
- package/lib/Notification.js +1 -1
- package/lib/NotificationGroup.js +1 -1
- package/lib/{NotificationMixin-c06bb631.js → NotificationMixin-5e028561.js} +2 -2
- package/lib/{NotificationMixin-c06bb631.js.map → NotificationMixin-5e028561.js.map} +1 -1
- package/lib/{Popout-39425b6c.js → Popout-6a85e4b6.js} +2 -2
- package/lib/{Popout-39425b6c.js.map → Popout-6a85e4b6.js.map} +1 -1
- package/lib/Popout.js +1 -1
- package/lib/ProgressBar.js +1 -1
- package/lib/Qrcode.js +1 -1
- package/lib/Radio.js +1 -1
- package/lib/Range.js +1 -1
- package/lib/Select.js +1 -1
- package/lib/{SizeMixin-fb379434.js → SizeMixin-f04ac402.js} +2 -2
- package/lib/{SizeMixin-fb379434.js.map → SizeMixin-f04ac402.js.map} +1 -1
- package/lib/Skeleton.js +1 -1
- package/lib/Spinner.js +1 -1
- package/lib/Stack.js +1 -1
- package/lib/{Sticky-acc92284.js → Sticky-b4e6c315.js} +2 -2
- package/lib/Sticky-b4e6c315.js.map +1 -0
- package/lib/Tab.js +1 -1
- package/lib/TabGroup.js +1 -1
- package/lib/TabPanel.js +1 -1
- package/lib/Table.js +1 -1
- package/lib/{TextField-8b226327.js → TextField-3f901ec8.js} +2 -2
- package/lib/{TextField-8b226327.js.map → TextField-3f901ec8.js.map} +1 -1
- package/lib/Textarea.js +1 -1
- package/lib/Toast.js +1 -1
- package/lib/ToastGroup.js +1 -1
- package/lib/Toggle.js +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/TopBar.js +1 -1
- package/lib/VisuallyHidden.js +1 -1
- package/lib/bundle.js +4 -4
- package/lib/bundle.js.map +1 -1
- package/lib/{class-map-cb77ead2.js → class-map-c0d8e1e5.js} +2 -2
- package/lib/{class-map-cb77ead2.js.map → class-map-c0d8e1e5.js.map} +1 -1
- package/lib/{collection-2f8e38bd.js → collection-498f2b1f.js} +2 -2
- package/lib/{collection-2f8e38bd.js.map → collection-498f2b1f.js.map} +1 -1
- package/lib/cond-09498763.js +2 -0
- package/lib/{cond-44672025.js.map → cond-09498763.js.map} +1 -1
- package/lib/{if-defined-9b177db4.js → if-defined-8a007930.js} +2 -2
- package/lib/{if-defined-9b177db4.js.map → if-defined-8a007930.js.map} +1 -1
- package/lib/index.js +1 -1
- package/lib/{query-assigned-elements-15485e3d.js → query-assigned-elements-822fe360.js} +3 -3
- package/lib/query-assigned-elements-822fe360.js.map +1 -0
- package/lib/{ref-5526fb07.js → ref-6b46e5ea.js} +4 -4
- package/lib/{ref-5526fb07.js.map → ref-6b46e5ea.js.map} +1 -1
- package/lib/src/dropdown-item/DropdownItem.d.ts +10 -0
- package/lib/style-map-5b757428.js +7 -0
- package/lib/style-map-5b757428.js.map +1 -0
- package/package.json +2 -2
- package/lib/Component-420bbc41.js.map +0 -1
- package/lib/DropdownItem-a9bf32f4.js.map +0 -1
- package/lib/FocusableMixin-4300e44e.js +0 -2
- package/lib/FormField-cbfebb3f.js.map +0 -1
- package/lib/Sticky-acc92284.js.map +0 -1
- package/lib/cond-44672025.js +0 -2
- package/lib/query-assigned-elements-15485e3d.js.map +0 -1
- package/lib/style-map-ed7e6cc6.js +0 -7
- package/lib/style-map-ed7e6cc6.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -2021,129 +2021,6 @@
|
|
|
2021
2021
|
}
|
|
2022
2022
|
]
|
|
2023
2023
|
},
|
|
2024
|
-
{
|
|
2025
|
-
"kind": "javascript-module",
|
|
2026
|
-
"path": "src/card/Card.ts",
|
|
2027
|
-
"declarations": [
|
|
2028
|
-
{
|
|
2029
|
-
"kind": "class",
|
|
2030
|
-
"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.",
|
|
2031
|
-
"name": "Card",
|
|
2032
|
-
"cssProperties": [
|
|
2033
|
-
{
|
|
2034
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
2035
|
-
"name": "--n-card-border-radius",
|
|
2036
|
-
"default": "var(--n-border-radius)"
|
|
2037
|
-
},
|
|
2038
|
-
{
|
|
2039
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2040
|
-
"name": "--n-card-box-shadow",
|
|
2041
|
-
"default": "var(--n-box-shadow-popout)"
|
|
2042
|
-
},
|
|
2043
|
-
{
|
|
2044
|
-
"description": "Controls the padding on all sides of the card.",
|
|
2045
|
-
"name": "--n-card-padding",
|
|
2046
|
-
"default": "var(--n-space-m)"
|
|
2047
|
-
},
|
|
2048
|
-
{
|
|
2049
|
-
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
2050
|
-
"name": "--n-card-slot-padding",
|
|
2051
|
-
"default": "var(--n-space-m)"
|
|
2052
|
-
}
|
|
2053
|
-
],
|
|
2054
|
-
"slots": [
|
|
2055
|
-
{
|
|
2056
|
-
"description": "The card content.",
|
|
2057
|
-
"name": ""
|
|
2058
|
-
},
|
|
2059
|
-
{
|
|
2060
|
-
"description": "Optional slot that holds a header for the card.",
|
|
2061
|
-
"name": "header"
|
|
2062
|
-
},
|
|
2063
|
-
{
|
|
2064
|
-
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
2065
|
-
"name": "header-end"
|
|
2066
|
-
},
|
|
2067
|
-
{
|
|
2068
|
-
"description": "Optional slot that holds footer content for the card.",
|
|
2069
|
-
"name": "footer"
|
|
2070
|
-
}
|
|
2071
|
-
],
|
|
2072
|
-
"members": [
|
|
2073
|
-
{
|
|
2074
|
-
"kind": "field",
|
|
2075
|
-
"name": "headerSlot",
|
|
2076
|
-
"privacy": "private",
|
|
2077
|
-
"default": "new SlotController(this, \"header\")"
|
|
2078
|
-
},
|
|
2079
|
-
{
|
|
2080
|
-
"kind": "field",
|
|
2081
|
-
"name": "headerEndSlot",
|
|
2082
|
-
"privacy": "private",
|
|
2083
|
-
"default": "new SlotController(this, \"header-end\")"
|
|
2084
|
-
},
|
|
2085
|
-
{
|
|
2086
|
-
"kind": "field",
|
|
2087
|
-
"name": "footerSlot",
|
|
2088
|
-
"privacy": "private",
|
|
2089
|
-
"default": "new SlotController(this, \"footer\")"
|
|
2090
|
-
},
|
|
2091
|
-
{
|
|
2092
|
-
"kind": "field",
|
|
2093
|
-
"name": "padding",
|
|
2094
|
-
"type": {
|
|
2095
|
-
"text": "\"m\" | \"l\" | \"none\""
|
|
2096
|
-
},
|
|
2097
|
-
"default": "\"m\"",
|
|
2098
|
-
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2099
|
-
"attribute": "padding",
|
|
2100
|
-
"reflects": true
|
|
2101
|
-
}
|
|
2102
|
-
],
|
|
2103
|
-
"attributes": [
|
|
2104
|
-
{
|
|
2105
|
-
"name": "padding",
|
|
2106
|
-
"type": {
|
|
2107
|
-
"text": "\"m\" | \"l\" | \"none\""
|
|
2108
|
-
},
|
|
2109
|
-
"default": "\"m\"",
|
|
2110
|
-
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2111
|
-
"fieldName": "padding"
|
|
2112
|
-
}
|
|
2113
|
-
],
|
|
2114
|
-
"superclass": {
|
|
2115
|
-
"name": "LitElement",
|
|
2116
|
-
"package": "lit"
|
|
2117
|
-
},
|
|
2118
|
-
"localization": [],
|
|
2119
|
-
"status": "ready",
|
|
2120
|
-
"category": "structure",
|
|
2121
|
-
"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",
|
|
2122
|
-
"examples": [],
|
|
2123
|
-
"dependencies": [],
|
|
2124
|
-
"tagName": "nord-card",
|
|
2125
|
-
"customElement": true
|
|
2126
|
-
}
|
|
2127
|
-
],
|
|
2128
|
-
"exports": [
|
|
2129
|
-
{
|
|
2130
|
-
"kind": "js",
|
|
2131
|
-
"name": "default",
|
|
2132
|
-
"declaration": {
|
|
2133
|
-
"name": "Card",
|
|
2134
|
-
"module": "src/card/Card.ts"
|
|
2135
|
-
}
|
|
2136
|
-
},
|
|
2137
|
-
{
|
|
2138
|
-
"kind": "custom-element-definition",
|
|
2139
|
-
"name": "nord-card",
|
|
2140
|
-
"declaration": {
|
|
2141
|
-
"name": "Card",
|
|
2142
|
-
"module": "src/card/Card.ts"
|
|
2143
|
-
}
|
|
2144
|
-
}
|
|
2145
|
-
]
|
|
2146
|
-
},
|
|
2147
2024
|
{
|
|
2148
2025
|
"kind": "javascript-module",
|
|
2149
2026
|
"path": "src/checkbox/Checkbox.ts",
|
|
@@ -2865,6 +2742,129 @@
|
|
|
2865
2742
|
}
|
|
2866
2743
|
]
|
|
2867
2744
|
},
|
|
2745
|
+
{
|
|
2746
|
+
"kind": "javascript-module",
|
|
2747
|
+
"path": "src/card/Card.ts",
|
|
2748
|
+
"declarations": [
|
|
2749
|
+
{
|
|
2750
|
+
"kind": "class",
|
|
2751
|
+
"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.",
|
|
2752
|
+
"name": "Card",
|
|
2753
|
+
"cssProperties": [
|
|
2754
|
+
{
|
|
2755
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
2756
|
+
"name": "--n-card-border-radius",
|
|
2757
|
+
"default": "var(--n-border-radius)"
|
|
2758
|
+
},
|
|
2759
|
+
{
|
|
2760
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2761
|
+
"name": "--n-card-box-shadow",
|
|
2762
|
+
"default": "var(--n-box-shadow-popout)"
|
|
2763
|
+
},
|
|
2764
|
+
{
|
|
2765
|
+
"description": "Controls the padding on all sides of the card.",
|
|
2766
|
+
"name": "--n-card-padding",
|
|
2767
|
+
"default": "var(--n-space-m)"
|
|
2768
|
+
},
|
|
2769
|
+
{
|
|
2770
|
+
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
2771
|
+
"name": "--n-card-slot-padding",
|
|
2772
|
+
"default": "var(--n-space-m)"
|
|
2773
|
+
}
|
|
2774
|
+
],
|
|
2775
|
+
"slots": [
|
|
2776
|
+
{
|
|
2777
|
+
"description": "The card content.",
|
|
2778
|
+
"name": ""
|
|
2779
|
+
},
|
|
2780
|
+
{
|
|
2781
|
+
"description": "Optional slot that holds a header for the card.",
|
|
2782
|
+
"name": "header"
|
|
2783
|
+
},
|
|
2784
|
+
{
|
|
2785
|
+
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
2786
|
+
"name": "header-end"
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
"description": "Optional slot that holds footer content for the card.",
|
|
2790
|
+
"name": "footer"
|
|
2791
|
+
}
|
|
2792
|
+
],
|
|
2793
|
+
"members": [
|
|
2794
|
+
{
|
|
2795
|
+
"kind": "field",
|
|
2796
|
+
"name": "headerSlot",
|
|
2797
|
+
"privacy": "private",
|
|
2798
|
+
"default": "new SlotController(this, \"header\")"
|
|
2799
|
+
},
|
|
2800
|
+
{
|
|
2801
|
+
"kind": "field",
|
|
2802
|
+
"name": "headerEndSlot",
|
|
2803
|
+
"privacy": "private",
|
|
2804
|
+
"default": "new SlotController(this, \"header-end\")"
|
|
2805
|
+
},
|
|
2806
|
+
{
|
|
2807
|
+
"kind": "field",
|
|
2808
|
+
"name": "footerSlot",
|
|
2809
|
+
"privacy": "private",
|
|
2810
|
+
"default": "new SlotController(this, \"footer\")"
|
|
2811
|
+
},
|
|
2812
|
+
{
|
|
2813
|
+
"kind": "field",
|
|
2814
|
+
"name": "padding",
|
|
2815
|
+
"type": {
|
|
2816
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
2817
|
+
},
|
|
2818
|
+
"default": "\"m\"",
|
|
2819
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2820
|
+
"attribute": "padding",
|
|
2821
|
+
"reflects": true
|
|
2822
|
+
}
|
|
2823
|
+
],
|
|
2824
|
+
"attributes": [
|
|
2825
|
+
{
|
|
2826
|
+
"name": "padding",
|
|
2827
|
+
"type": {
|
|
2828
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
2829
|
+
},
|
|
2830
|
+
"default": "\"m\"",
|
|
2831
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2832
|
+
"fieldName": "padding"
|
|
2833
|
+
}
|
|
2834
|
+
],
|
|
2835
|
+
"superclass": {
|
|
2836
|
+
"name": "LitElement",
|
|
2837
|
+
"package": "lit"
|
|
2838
|
+
},
|
|
2839
|
+
"localization": [],
|
|
2840
|
+
"status": "ready",
|
|
2841
|
+
"category": "structure",
|
|
2842
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to 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",
|
|
2843
|
+
"examples": [],
|
|
2844
|
+
"dependencies": [],
|
|
2845
|
+
"tagName": "nord-card",
|
|
2846
|
+
"customElement": true
|
|
2847
|
+
}
|
|
2848
|
+
],
|
|
2849
|
+
"exports": [
|
|
2850
|
+
{
|
|
2851
|
+
"kind": "js",
|
|
2852
|
+
"name": "default",
|
|
2853
|
+
"declaration": {
|
|
2854
|
+
"name": "Card",
|
|
2855
|
+
"module": "src/card/Card.ts"
|
|
2856
|
+
}
|
|
2857
|
+
},
|
|
2858
|
+
{
|
|
2859
|
+
"kind": "custom-element-definition",
|
|
2860
|
+
"name": "nord-card",
|
|
2861
|
+
"declaration": {
|
|
2862
|
+
"name": "Card",
|
|
2863
|
+
"module": "src/card/Card.ts"
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
]
|
|
2867
|
+
},
|
|
2868
2868
|
{
|
|
2869
2869
|
"kind": "javascript-module",
|
|
2870
2870
|
"path": "src/command-menu/CommandMenu.ts",
|
|
@@ -6431,6 +6431,16 @@
|
|
|
6431
6431
|
"attribute": "href",
|
|
6432
6432
|
"reflects": true
|
|
6433
6433
|
},
|
|
6434
|
+
{
|
|
6435
|
+
"kind": "field",
|
|
6436
|
+
"name": "target",
|
|
6437
|
+
"type": {
|
|
6438
|
+
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
6439
|
+
},
|
|
6440
|
+
"default": "\"_self\"",
|
|
6441
|
+
"description": "When provided together with a href property, determines where\nto open the linked URL. The keywords have special meanings for\nwhere to load the URL: “_self” means the current browsing context,\n“_blank” usually a new tab but users can configure browsers this to\nopen a new window instead, “_parent” means the parent browsing\ncontext of the current one, but if no parent exists, behaves as\n_self, and finally “top” means the topmost browsing context.",
|
|
6442
|
+
"attribute": "target"
|
|
6443
|
+
},
|
|
6434
6444
|
{
|
|
6435
6445
|
"kind": "field",
|
|
6436
6446
|
"name": "focusableRef",
|
|
@@ -6486,6 +6496,15 @@
|
|
|
6486
6496
|
},
|
|
6487
6497
|
"description": "The url the dropdown item should link to.",
|
|
6488
6498
|
"fieldName": "href"
|
|
6499
|
+
},
|
|
6500
|
+
{
|
|
6501
|
+
"name": "target",
|
|
6502
|
+
"type": {
|
|
6503
|
+
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
6504
|
+
},
|
|
6505
|
+
"default": "\"_self\"",
|
|
6506
|
+
"description": "When provided together with a href property, determines where\nto open the linked URL. The keywords have special meanings for\nwhere to load the URL: “_self” means the current browsing context,\n“_blank” usually a new tab but users can configure browsers this to\nopen a new window instead, “_parent” means the parent browsing\ncontext of the current one, but if no parent exists, behaves as\n_self, and finally “top” means the topmost browsing context.",
|
|
6507
|
+
"fieldName": "target"
|
|
6489
6508
|
}
|
|
6490
6509
|
],
|
|
6491
6510
|
"mixins": [
|
|
@@ -6821,319 +6840,11 @@
|
|
|
6821
6840
|
}
|
|
6822
6841
|
},
|
|
6823
6842
|
{
|
|
6824
|
-
"kind": "custom-element-definition",
|
|
6825
|
-
"name": "nord-header",
|
|
6826
|
-
"declaration": {
|
|
6827
|
-
"name": "Header",
|
|
6828
|
-
"module": "src/header/Header.ts"
|
|
6829
|
-
}
|
|
6830
|
-
}
|
|
6831
|
-
]
|
|
6832
|
-
},
|
|
6833
|
-
{
|
|
6834
|
-
"kind": "javascript-module",
|
|
6835
|
-
"path": "src/icon/Icon.ts",
|
|
6836
|
-
"declarations": [
|
|
6837
|
-
{
|
|
6838
|
-
"kind": "class",
|
|
6839
|
-
"description": "Icons are used to provide additional meaning or in places where text label doesn’t fit.\nIcon component allows you to display an icon from the Nordicons library.",
|
|
6840
|
-
"name": "Icon",
|
|
6841
|
-
"slots": [
|
|
6842
|
-
{
|
|
6843
|
-
"description": "The default slot used for placing a custom SVG icon.",
|
|
6844
|
-
"name": ""
|
|
6845
|
-
}
|
|
6846
|
-
],
|
|
6847
|
-
"members": [
|
|
6848
|
-
{
|
|
6849
|
-
"kind": "field",
|
|
6850
|
-
"name": "manager",
|
|
6851
|
-
"privacy": "private",
|
|
6852
|
-
"static": true,
|
|
6853
|
-
"default": "new IconManager()"
|
|
6854
|
-
},
|
|
6855
|
-
{
|
|
6856
|
-
"kind": "method",
|
|
6857
|
-
"name": "registerResolver",
|
|
6858
|
-
"static": true,
|
|
6859
|
-
"parameters": [
|
|
6860
|
-
{
|
|
6861
|
-
"name": "resolver",
|
|
6862
|
-
"type": {
|
|
6863
|
-
"text": "IconResolver"
|
|
6864
|
-
},
|
|
6865
|
-
"description": "The resolver function to register."
|
|
6866
|
-
}
|
|
6867
|
-
],
|
|
6868
|
-
"description": "Register a custom icon resolver, which accepts the icon name as an parameter, and returns an SVG string.\nCan return a string synchronously, or a promise of a string.\nBy default, will load icons from the Nord CDN."
|
|
6869
|
-
},
|
|
6870
|
-
{
|
|
6871
|
-
"kind": "method",
|
|
6872
|
-
"name": "registerIcon",
|
|
6873
|
-
"static": true,
|
|
6874
|
-
"return": {
|
|
6875
|
-
"type": {
|
|
6876
|
-
"text": "void"
|
|
6877
|
-
}
|
|
6878
|
-
},
|
|
6879
|
-
"parameters": [
|
|
6880
|
-
{
|
|
6881
|
-
"name": "icon",
|
|
6882
|
-
"type": {
|
|
6883
|
-
"text": "{ title: string; default: string }"
|
|
6884
|
-
},
|
|
6885
|
-
"description": "An object representing the icon to be registered, where \"title\" is the icon's name, and \"default\" is the SVG string.\nThis is intended to be used in cases where you import an icon's entire ES module and register it directly."
|
|
6886
|
-
}
|
|
6887
|
-
],
|
|
6888
|
-
"description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
|
|
6889
|
-
},
|
|
6890
|
-
{
|
|
6891
|
-
"kind": "method",
|
|
6892
|
-
"name": "registerIcon",
|
|
6893
|
-
"static": true,
|
|
6894
|
-
"return": {
|
|
6895
|
-
"type": {
|
|
6896
|
-
"text": "void"
|
|
6897
|
-
}
|
|
6898
|
-
},
|
|
6899
|
-
"parameters": [
|
|
6900
|
-
{
|
|
6901
|
-
"name": "name",
|
|
6902
|
-
"type": {
|
|
6903
|
-
"text": "string"
|
|
6904
|
-
},
|
|
6905
|
-
"description": "The name of the icon to be registered."
|
|
6906
|
-
},
|
|
6907
|
-
{
|
|
6908
|
-
"name": "icon",
|
|
6909
|
-
"type": {
|
|
6910
|
-
"text": "string"
|
|
6911
|
-
},
|
|
6912
|
-
"description": "The SVG string for the icon."
|
|
6913
|
-
}
|
|
6914
|
-
],
|
|
6915
|
-
"description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
|
|
6916
|
-
},
|
|
6917
|
-
{
|
|
6918
|
-
"kind": "method",
|
|
6919
|
-
"name": "registerIcon",
|
|
6920
|
-
"static": true,
|
|
6921
|
-
"parameters": [
|
|
6922
|
-
{
|
|
6923
|
-
"name": "iconOrName",
|
|
6924
|
-
"type": {
|
|
6925
|
-
"text": "string | { title: string; default: string }"
|
|
6926
|
-
},
|
|
6927
|
-
"description": "The name of the icon to be registered or an object representing the icon to be registered, where \"title\" is the icon's name, and \"default\" is the SVG string."
|
|
6928
|
-
},
|
|
6929
|
-
{
|
|
6930
|
-
"name": "icon",
|
|
6931
|
-
"optional": true,
|
|
6932
|
-
"type": {
|
|
6933
|
-
"text": "string"
|
|
6934
|
-
},
|
|
6935
|
-
"description": "The SVG string for the icon."
|
|
6936
|
-
}
|
|
6937
|
-
],
|
|
6938
|
-
"description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
|
|
6939
|
-
},
|
|
6940
|
-
{
|
|
6941
|
-
"kind": "field",
|
|
6942
|
-
"name": "name",
|
|
6943
|
-
"type": {
|
|
6944
|
-
"text": "string"
|
|
6945
|
-
},
|
|
6946
|
-
"default": "\"\"",
|
|
6947
|
-
"description": "The name of the icon to display, as defined by [nordicons](/nordicons/).",
|
|
6948
|
-
"attribute": "name",
|
|
6949
|
-
"reflects": true
|
|
6950
|
-
},
|
|
6951
|
-
{
|
|
6952
|
-
"kind": "field",
|
|
6953
|
-
"name": "size",
|
|
6954
|
-
"type": {
|
|
6955
|
-
"text": "\"xxs\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\" | undefined"
|
|
6956
|
-
},
|
|
6957
|
-
"description": "The size of the icon.",
|
|
6958
|
-
"attribute": "size",
|
|
6959
|
-
"reflects": true
|
|
6960
|
-
},
|
|
6961
|
-
{
|
|
6962
|
-
"kind": "field",
|
|
6963
|
-
"name": "color",
|
|
6964
|
-
"type": {
|
|
6965
|
-
"text": "string | undefined"
|
|
6966
|
-
},
|
|
6967
|
-
"description": "The color of the icon.\nCan accept any valid CSS color value, including custom properties.",
|
|
6968
|
-
"attribute": "color",
|
|
6969
|
-
"reflects": true
|
|
6970
|
-
},
|
|
6971
|
-
{
|
|
6972
|
-
"kind": "field",
|
|
6973
|
-
"name": "label",
|
|
6974
|
-
"type": {
|
|
6975
|
-
"text": "string | undefined"
|
|
6976
|
-
},
|
|
6977
|
-
"description": "An accessible label for the icon.\nIf no label is supplied, the icon is hidden from assistive technology.",
|
|
6978
|
-
"attribute": "label",
|
|
6979
|
-
"reflects": true
|
|
6980
|
-
},
|
|
6981
|
-
{
|
|
6982
|
-
"kind": "field",
|
|
6983
|
-
"name": "svg",
|
|
6984
|
-
"type": {
|
|
6985
|
-
"text": "string"
|
|
6986
|
-
},
|
|
6987
|
-
"privacy": "private",
|
|
6988
|
-
"default": "\"\""
|
|
6989
|
-
},
|
|
6990
|
-
{
|
|
6991
|
-
"kind": "method",
|
|
6992
|
-
"name": "handleNameChange",
|
|
6993
|
-
"privacy": "protected"
|
|
6994
|
-
}
|
|
6995
|
-
],
|
|
6996
|
-
"attributes": [
|
|
6997
|
-
{
|
|
6998
|
-
"name": "name",
|
|
6999
|
-
"type": {
|
|
7000
|
-
"text": "string"
|
|
7001
|
-
},
|
|
7002
|
-
"default": "\"\"",
|
|
7003
|
-
"description": "The name of the icon to display, as defined by [nordicons](/nordicons/).",
|
|
7004
|
-
"fieldName": "name"
|
|
7005
|
-
},
|
|
7006
|
-
{
|
|
7007
|
-
"name": "size",
|
|
7008
|
-
"type": {
|
|
7009
|
-
"text": "\"xxs\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\" | undefined"
|
|
7010
|
-
},
|
|
7011
|
-
"description": "The size of the icon.",
|
|
7012
|
-
"fieldName": "size"
|
|
7013
|
-
},
|
|
7014
|
-
{
|
|
7015
|
-
"name": "color",
|
|
7016
|
-
"type": {
|
|
7017
|
-
"text": "string | undefined"
|
|
7018
|
-
},
|
|
7019
|
-
"description": "The color of the icon.\nCan accept any valid CSS color value, including custom properties.",
|
|
7020
|
-
"fieldName": "color"
|
|
7021
|
-
},
|
|
7022
|
-
{
|
|
7023
|
-
"name": "label",
|
|
7024
|
-
"type": {
|
|
7025
|
-
"text": "string | undefined"
|
|
7026
|
-
},
|
|
7027
|
-
"description": "An accessible label for the icon.\nIf no label is supplied, the icon is hidden from assistive technology.",
|
|
7028
|
-
"fieldName": "label"
|
|
7029
|
-
}
|
|
7030
|
-
],
|
|
7031
|
-
"superclass": {
|
|
7032
|
-
"name": "LitElement",
|
|
7033
|
-
"package": "lit"
|
|
7034
|
-
},
|
|
7035
|
-
"localization": [],
|
|
7036
|
-
"status": "ready",
|
|
7037
|
-
"category": "image",
|
|
7038
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<nord-button href=\"/nordicons/\" variant=\"primary\">View Nordicons</nord-button>\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to provide additional meaning in addition to a text label.\n- Use to help users who have difficulties with reading and attention.\n- Use in places where text label doesn’t fit (remember to add an accessible label for the icon).\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for decorative purposes alone.\n- Don’t use when a button’s action is already clear based on the text label.\n- Don’t use the same icon for differing purposes, as users will come to associate icons with specific types of actions.\n\n</div>\n\n---\n\n## Additional considerations\n\n- Icon components are hidden from assistive technologies by default.\n- Use `label` property to give an accessible label for the icon and to make it visible to assistive technologies.\n",
|
|
7039
|
-
"examples": [],
|
|
7040
|
-
"dependencies": [],
|
|
7041
|
-
"tagName": "nord-icon",
|
|
7042
|
-
"customElement": true
|
|
7043
|
-
}
|
|
7044
|
-
],
|
|
7045
|
-
"exports": [
|
|
7046
|
-
{
|
|
7047
|
-
"kind": "js",
|
|
7048
|
-
"name": "default",
|
|
7049
|
-
"declaration": {
|
|
7050
|
-
"name": "Icon",
|
|
7051
|
-
"module": "src/icon/Icon.ts"
|
|
7052
|
-
}
|
|
7053
|
-
},
|
|
7054
|
-
{
|
|
7055
|
-
"kind": "custom-element-definition",
|
|
7056
|
-
"name": "nord-icon",
|
|
7057
|
-
"declaration": {
|
|
7058
|
-
"name": "Icon",
|
|
7059
|
-
"module": "src/icon/Icon.ts"
|
|
7060
|
-
}
|
|
7061
|
-
}
|
|
7062
|
-
]
|
|
7063
|
-
},
|
|
7064
|
-
{
|
|
7065
|
-
"kind": "javascript-module",
|
|
7066
|
-
"path": "src/icon/IconManager.ts",
|
|
7067
|
-
"declarations": [
|
|
7068
|
-
{
|
|
7069
|
-
"kind": "class",
|
|
7070
|
-
"description": "",
|
|
7071
|
-
"name": "IconManager",
|
|
7072
|
-
"members": [
|
|
7073
|
-
{
|
|
7074
|
-
"kind": "field",
|
|
7075
|
-
"name": "cache",
|
|
7076
|
-
"privacy": "private",
|
|
7077
|
-
"default": "new Map<string, string | Promise<string>>()"
|
|
7078
|
-
},
|
|
7079
|
-
{
|
|
7080
|
-
"kind": "field",
|
|
7081
|
-
"name": "resolver",
|
|
7082
|
-
"type": {
|
|
7083
|
-
"text": "IconResolver"
|
|
7084
|
-
}
|
|
7085
|
-
},
|
|
7086
|
-
{
|
|
7087
|
-
"kind": "method",
|
|
7088
|
-
"name": "resolve",
|
|
7089
|
-
"parameters": [
|
|
7090
|
-
{
|
|
7091
|
-
"name": "name",
|
|
7092
|
-
"type": {
|
|
7093
|
-
"text": "string"
|
|
7094
|
-
}
|
|
7095
|
-
},
|
|
7096
|
-
{
|
|
7097
|
-
"name": "onResolved",
|
|
7098
|
-
"type": {
|
|
7099
|
-
"text": "(svg: string) => void"
|
|
7100
|
-
}
|
|
7101
|
-
}
|
|
7102
|
-
]
|
|
7103
|
-
},
|
|
7104
|
-
{
|
|
7105
|
-
"kind": "method",
|
|
7106
|
-
"name": "registerIcon",
|
|
7107
|
-
"parameters": [
|
|
7108
|
-
{
|
|
7109
|
-
"name": "iconOrName",
|
|
7110
|
-
"type": {
|
|
7111
|
-
"text": "string | { title: string; default: string }"
|
|
7112
|
-
}
|
|
7113
|
-
},
|
|
7114
|
-
{
|
|
7115
|
-
"name": "icon",
|
|
7116
|
-
"optional": true,
|
|
7117
|
-
"type": {
|
|
7118
|
-
"text": "string"
|
|
7119
|
-
}
|
|
7120
|
-
}
|
|
7121
|
-
]
|
|
7122
|
-
},
|
|
7123
|
-
{
|
|
7124
|
-
"kind": "method",
|
|
7125
|
-
"name": "clear"
|
|
7126
|
-
}
|
|
7127
|
-
]
|
|
7128
|
-
}
|
|
7129
|
-
],
|
|
7130
|
-
"exports": [
|
|
7131
|
-
{
|
|
7132
|
-
"kind": "js",
|
|
7133
|
-
"name": "IconManager",
|
|
6843
|
+
"kind": "custom-element-definition",
|
|
6844
|
+
"name": "nord-header",
|
|
7134
6845
|
"declaration": {
|
|
7135
|
-
"name": "
|
|
7136
|
-
"module": "src/
|
|
6846
|
+
"name": "Header",
|
|
6847
|
+
"module": "src/header/Header.ts"
|
|
7137
6848
|
}
|
|
7138
6849
|
}
|
|
7139
6850
|
]
|
|
@@ -7967,12 +7678,269 @@
|
|
|
7967
7678
|
"module": "/src/common/mixins/ReadonlyMixin.js"
|
|
7968
7679
|
},
|
|
7969
7680
|
{
|
|
7970
|
-
"name": "InputMixin",
|
|
7971
|
-
"module": "/src/common/mixins/InputMixin.js"
|
|
7681
|
+
"name": "InputMixin",
|
|
7682
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
7683
|
+
},
|
|
7684
|
+
{
|
|
7685
|
+
"name": "FocusableMixin",
|
|
7686
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
7687
|
+
}
|
|
7688
|
+
],
|
|
7689
|
+
"superclass": {
|
|
7690
|
+
"name": "LitElement",
|
|
7691
|
+
"package": "lit"
|
|
7692
|
+
},
|
|
7693
|
+
"localization": [],
|
|
7694
|
+
"status": "ready",
|
|
7695
|
+
"category": "form",
|
|
7696
|
+
"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 provide a text input where the expected input is short.\n- Use to only ask for information that’s really needed. Hide optional fields by default if possible or have them shown with a lower priority.\n- Use help text and placeholder to provide additional, non-critical instructions.\n- Validate input as soon as users have finished interacting with them (but not before).\n- Where necessary, label the input as “Optional” when you need to request input that’s not required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use when the expected text input is long. Use textarea component instead.\n- Don’t use the placeholder to provide information that’s required to use the input. Hint text should be used for this purpose instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nInput labels act as a title for the text field. Labels should typically be short and in noun form:\n\n<div class=\"n-usage n-usage-do\">Company name</div>\n<div class=\"n-usage n-usage-dont\">What is your company name?</div>\n\nWhen writing input 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\">Company name</div>\n<div class=\"n-usage n-usage-dont\">Company Name</div>\n\nWhen an input isn’t part of a form and is placed individually on a page, you could provide the input label as a call to action:\n\n<div class=\"n-usage n-usage-do\">Leave a comment</div>\n<div class=\"n-usage n-usage-dont\">Comment</div>\n\nDo not use colons in input label:\n\n<div class=\"n-usage n-usage-do\">First name</div>\n<div class=\"n-usage n-usage-dont\">First name:</div>\n\n---\n\n## Types\n\nThis section describes the different input types, their purpose, and when to use each type.\n\n| Name | Purpose |\n| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `text` | The default and most common variant. Displayed as a single-line text field. Line-breaks are automatically removed from the input value. |\n| `email` | A field for editing an email address. Looks similar to a text input, but has validation parameters and relevant keyboard for devices with dynamic keyboards. |\n| `password` | A single-line text field where the value is obscured. This type will alert user if a site is not secure. |\n| `tel` | A field for entering a telephone number. Displays a number keypad on mobile devices. |\n| `url` | A field variant that is used to let the user enter and edit an URL. |\n| `search` | A single-line text field for entering search strings. |\n| `number` | Used to let the user enter a number. |\n\n## Icon usage in input\n\nEach [input size](/components/input/?example=size) has a recommended icon size. The medium input uses the `s` icon size, the small input uses the `xs` icon size, and the large input uses the `m` icon size. The icon will adjust size automatically based on the button size, so you will get the correct behavior by default. However, this can be overridden by explicitly setting a size on the icon.\n",
|
|
7697
|
+
"examples": [],
|
|
7698
|
+
"dependencies": [
|
|
7699
|
+
"icon"
|
|
7700
|
+
],
|
|
7701
|
+
"tagName": "nord-input",
|
|
7702
|
+
"customElement": true,
|
|
7703
|
+
"events": [
|
|
7704
|
+
{
|
|
7705
|
+
"name": "input",
|
|
7706
|
+
"type": {
|
|
7707
|
+
"text": "NordEvent"
|
|
7708
|
+
},
|
|
7709
|
+
"description": "Fired as the user types into the input.",
|
|
7710
|
+
"inheritedFrom": {
|
|
7711
|
+
"name": "FormAssociatedMixin",
|
|
7712
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
7713
|
+
}
|
|
7714
|
+
},
|
|
7715
|
+
{
|
|
7716
|
+
"name": "change",
|
|
7717
|
+
"type": {
|
|
7718
|
+
"text": "NordEvent"
|
|
7719
|
+
},
|
|
7720
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
7721
|
+
"inheritedFrom": {
|
|
7722
|
+
"name": "FormAssociatedMixin",
|
|
7723
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
7724
|
+
}
|
|
7725
|
+
}
|
|
7726
|
+
]
|
|
7727
|
+
}
|
|
7728
|
+
],
|
|
7729
|
+
"exports": [
|
|
7730
|
+
{
|
|
7731
|
+
"kind": "js",
|
|
7732
|
+
"name": "default",
|
|
7733
|
+
"declaration": {
|
|
7734
|
+
"name": "Input",
|
|
7735
|
+
"module": "src/input/Input.ts"
|
|
7736
|
+
}
|
|
7737
|
+
},
|
|
7738
|
+
{
|
|
7739
|
+
"kind": "custom-element-definition",
|
|
7740
|
+
"name": "nord-input",
|
|
7741
|
+
"declaration": {
|
|
7742
|
+
"name": "Input",
|
|
7743
|
+
"module": "src/input/Input.ts"
|
|
7744
|
+
}
|
|
7745
|
+
}
|
|
7746
|
+
]
|
|
7747
|
+
},
|
|
7748
|
+
{
|
|
7749
|
+
"kind": "javascript-module",
|
|
7750
|
+
"path": "src/icon/Icon.ts",
|
|
7751
|
+
"declarations": [
|
|
7752
|
+
{
|
|
7753
|
+
"kind": "class",
|
|
7754
|
+
"description": "Icons are used to provide additional meaning or in places where text label doesn’t fit.\nIcon component allows you to display an icon from the Nordicons library.",
|
|
7755
|
+
"name": "Icon",
|
|
7756
|
+
"slots": [
|
|
7757
|
+
{
|
|
7758
|
+
"description": "The default slot used for placing a custom SVG icon.",
|
|
7759
|
+
"name": ""
|
|
7760
|
+
}
|
|
7761
|
+
],
|
|
7762
|
+
"members": [
|
|
7763
|
+
{
|
|
7764
|
+
"kind": "field",
|
|
7765
|
+
"name": "manager",
|
|
7766
|
+
"privacy": "private",
|
|
7767
|
+
"static": true,
|
|
7768
|
+
"default": "new IconManager()"
|
|
7769
|
+
},
|
|
7770
|
+
{
|
|
7771
|
+
"kind": "method",
|
|
7772
|
+
"name": "registerResolver",
|
|
7773
|
+
"static": true,
|
|
7774
|
+
"parameters": [
|
|
7775
|
+
{
|
|
7776
|
+
"name": "resolver",
|
|
7777
|
+
"type": {
|
|
7778
|
+
"text": "IconResolver"
|
|
7779
|
+
},
|
|
7780
|
+
"description": "The resolver function to register."
|
|
7781
|
+
}
|
|
7782
|
+
],
|
|
7783
|
+
"description": "Register a custom icon resolver, which accepts the icon name as an parameter, and returns an SVG string.\nCan return a string synchronously, or a promise of a string.\nBy default, will load icons from the Nord CDN."
|
|
7784
|
+
},
|
|
7785
|
+
{
|
|
7786
|
+
"kind": "method",
|
|
7787
|
+
"name": "registerIcon",
|
|
7788
|
+
"static": true,
|
|
7789
|
+
"return": {
|
|
7790
|
+
"type": {
|
|
7791
|
+
"text": "void"
|
|
7792
|
+
}
|
|
7793
|
+
},
|
|
7794
|
+
"parameters": [
|
|
7795
|
+
{
|
|
7796
|
+
"name": "icon",
|
|
7797
|
+
"type": {
|
|
7798
|
+
"text": "{ title: string; default: string }"
|
|
7799
|
+
},
|
|
7800
|
+
"description": "An object representing the icon to be registered, where \"title\" is the icon's name, and \"default\" is the SVG string.\nThis is intended to be used in cases where you import an icon's entire ES module and register it directly."
|
|
7801
|
+
}
|
|
7802
|
+
],
|
|
7803
|
+
"description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
|
|
7804
|
+
},
|
|
7805
|
+
{
|
|
7806
|
+
"kind": "method",
|
|
7807
|
+
"name": "registerIcon",
|
|
7808
|
+
"static": true,
|
|
7809
|
+
"return": {
|
|
7810
|
+
"type": {
|
|
7811
|
+
"text": "void"
|
|
7812
|
+
}
|
|
7813
|
+
},
|
|
7814
|
+
"parameters": [
|
|
7815
|
+
{
|
|
7816
|
+
"name": "name",
|
|
7817
|
+
"type": {
|
|
7818
|
+
"text": "string"
|
|
7819
|
+
},
|
|
7820
|
+
"description": "The name of the icon to be registered."
|
|
7821
|
+
},
|
|
7822
|
+
{
|
|
7823
|
+
"name": "icon",
|
|
7824
|
+
"type": {
|
|
7825
|
+
"text": "string"
|
|
7826
|
+
},
|
|
7827
|
+
"description": "The SVG string for the icon."
|
|
7828
|
+
}
|
|
7829
|
+
],
|
|
7830
|
+
"description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
|
|
7831
|
+
},
|
|
7832
|
+
{
|
|
7833
|
+
"kind": "method",
|
|
7834
|
+
"name": "registerIcon",
|
|
7835
|
+
"static": true,
|
|
7836
|
+
"parameters": [
|
|
7837
|
+
{
|
|
7838
|
+
"name": "iconOrName",
|
|
7839
|
+
"type": {
|
|
7840
|
+
"text": "string | { title: string; default: string }"
|
|
7841
|
+
},
|
|
7842
|
+
"description": "The name of the icon to be registered or an object representing the icon to be registered, where \"title\" is the icon's name, and \"default\" is the SVG string."
|
|
7843
|
+
},
|
|
7844
|
+
{
|
|
7845
|
+
"name": "icon",
|
|
7846
|
+
"optional": true,
|
|
7847
|
+
"type": {
|
|
7848
|
+
"text": "string"
|
|
7849
|
+
},
|
|
7850
|
+
"description": "The SVG string for the icon."
|
|
7851
|
+
}
|
|
7852
|
+
],
|
|
7853
|
+
"description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
|
|
7854
|
+
},
|
|
7855
|
+
{
|
|
7856
|
+
"kind": "field",
|
|
7857
|
+
"name": "name",
|
|
7858
|
+
"type": {
|
|
7859
|
+
"text": "string"
|
|
7860
|
+
},
|
|
7861
|
+
"default": "\"\"",
|
|
7862
|
+
"description": "The name of the icon to display, as defined by [nordicons](/nordicons/).",
|
|
7863
|
+
"attribute": "name",
|
|
7864
|
+
"reflects": true
|
|
7865
|
+
},
|
|
7866
|
+
{
|
|
7867
|
+
"kind": "field",
|
|
7868
|
+
"name": "size",
|
|
7869
|
+
"type": {
|
|
7870
|
+
"text": "\"xxs\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\" | undefined"
|
|
7871
|
+
},
|
|
7872
|
+
"description": "The size of the icon.",
|
|
7873
|
+
"attribute": "size",
|
|
7874
|
+
"reflects": true
|
|
7875
|
+
},
|
|
7876
|
+
{
|
|
7877
|
+
"kind": "field",
|
|
7878
|
+
"name": "color",
|
|
7879
|
+
"type": {
|
|
7880
|
+
"text": "string | undefined"
|
|
7881
|
+
},
|
|
7882
|
+
"description": "The color of the icon.\nCan accept any valid CSS color value, including custom properties.",
|
|
7883
|
+
"attribute": "color",
|
|
7884
|
+
"reflects": true
|
|
7885
|
+
},
|
|
7886
|
+
{
|
|
7887
|
+
"kind": "field",
|
|
7888
|
+
"name": "label",
|
|
7889
|
+
"type": {
|
|
7890
|
+
"text": "string | undefined"
|
|
7891
|
+
},
|
|
7892
|
+
"description": "An accessible label for the icon.\nIf no label is supplied, the icon is hidden from assistive technology.",
|
|
7893
|
+
"attribute": "label",
|
|
7894
|
+
"reflects": true
|
|
7895
|
+
},
|
|
7896
|
+
{
|
|
7897
|
+
"kind": "field",
|
|
7898
|
+
"name": "svg",
|
|
7899
|
+
"type": {
|
|
7900
|
+
"text": "string"
|
|
7901
|
+
},
|
|
7902
|
+
"privacy": "private",
|
|
7903
|
+
"default": "\"\""
|
|
7904
|
+
},
|
|
7905
|
+
{
|
|
7906
|
+
"kind": "method",
|
|
7907
|
+
"name": "handleNameChange",
|
|
7908
|
+
"privacy": "protected"
|
|
7909
|
+
}
|
|
7910
|
+
],
|
|
7911
|
+
"attributes": [
|
|
7912
|
+
{
|
|
7913
|
+
"name": "name",
|
|
7914
|
+
"type": {
|
|
7915
|
+
"text": "string"
|
|
7916
|
+
},
|
|
7917
|
+
"default": "\"\"",
|
|
7918
|
+
"description": "The name of the icon to display, as defined by [nordicons](/nordicons/).",
|
|
7919
|
+
"fieldName": "name"
|
|
7920
|
+
},
|
|
7921
|
+
{
|
|
7922
|
+
"name": "size",
|
|
7923
|
+
"type": {
|
|
7924
|
+
"text": "\"xxs\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\" | undefined"
|
|
7925
|
+
},
|
|
7926
|
+
"description": "The size of the icon.",
|
|
7927
|
+
"fieldName": "size"
|
|
7928
|
+
},
|
|
7929
|
+
{
|
|
7930
|
+
"name": "color",
|
|
7931
|
+
"type": {
|
|
7932
|
+
"text": "string | undefined"
|
|
7933
|
+
},
|
|
7934
|
+
"description": "The color of the icon.\nCan accept any valid CSS color value, including custom properties.",
|
|
7935
|
+
"fieldName": "color"
|
|
7972
7936
|
},
|
|
7973
7937
|
{
|
|
7974
|
-
"name": "
|
|
7975
|
-
"
|
|
7938
|
+
"name": "label",
|
|
7939
|
+
"type": {
|
|
7940
|
+
"text": "string | undefined"
|
|
7941
|
+
},
|
|
7942
|
+
"description": "An accessible label for the icon.\nIf no label is supplied, the icon is hidden from assistive technology.",
|
|
7943
|
+
"fieldName": "label"
|
|
7976
7944
|
}
|
|
7977
7945
|
],
|
|
7978
7946
|
"superclass": {
|
|
@@ -7981,36 +7949,95 @@
|
|
|
7981
7949
|
},
|
|
7982
7950
|
"localization": [],
|
|
7983
7951
|
"status": "ready",
|
|
7984
|
-
"category": "
|
|
7985
|
-
"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 provide
|
|
7952
|
+
"category": "image",
|
|
7953
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<nord-button href=\"/nordicons/\" variant=\"primary\">View Nordicons</nord-button>\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to provide additional meaning in addition to a text label.\n- Use to help users who have difficulties with reading and attention.\n- Use in places where text label doesn’t fit (remember to add an accessible label for the icon).\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for decorative purposes alone.\n- Don’t use when a button’s action is already clear based on the text label.\n- Don’t use the same icon for differing purposes, as users will come to associate icons with specific types of actions.\n\n</div>\n\n---\n\n## Additional considerations\n\n- Icon components are hidden from assistive technologies by default.\n- Use `label` property to give an accessible label for the icon and to make it visible to assistive technologies.\n",
|
|
7986
7954
|
"examples": [],
|
|
7987
|
-
"dependencies": [
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7955
|
+
"dependencies": [],
|
|
7956
|
+
"tagName": "nord-icon",
|
|
7957
|
+
"customElement": true
|
|
7958
|
+
}
|
|
7959
|
+
],
|
|
7960
|
+
"exports": [
|
|
7961
|
+
{
|
|
7962
|
+
"kind": "js",
|
|
7963
|
+
"name": "default",
|
|
7964
|
+
"declaration": {
|
|
7965
|
+
"name": "Icon",
|
|
7966
|
+
"module": "src/icon/Icon.ts"
|
|
7967
|
+
}
|
|
7968
|
+
},
|
|
7969
|
+
{
|
|
7970
|
+
"kind": "custom-element-definition",
|
|
7971
|
+
"name": "nord-icon",
|
|
7972
|
+
"declaration": {
|
|
7973
|
+
"name": "Icon",
|
|
7974
|
+
"module": "src/icon/Icon.ts"
|
|
7975
|
+
}
|
|
7976
|
+
}
|
|
7977
|
+
]
|
|
7978
|
+
},
|
|
7979
|
+
{
|
|
7980
|
+
"kind": "javascript-module",
|
|
7981
|
+
"path": "src/icon/IconManager.ts",
|
|
7982
|
+
"declarations": [
|
|
7983
|
+
{
|
|
7984
|
+
"kind": "class",
|
|
7985
|
+
"description": "",
|
|
7986
|
+
"name": "IconManager",
|
|
7987
|
+
"members": [
|
|
7993
7988
|
{
|
|
7994
|
-
"
|
|
7995
|
-
"
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
"description": "Fired as the user types into the input.",
|
|
7999
|
-
"inheritedFrom": {
|
|
8000
|
-
"name": "FormAssociatedMixin",
|
|
8001
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
8002
|
-
}
|
|
7989
|
+
"kind": "field",
|
|
7990
|
+
"name": "cache",
|
|
7991
|
+
"privacy": "private",
|
|
7992
|
+
"default": "new Map<string, string | Promise<string>>()"
|
|
8003
7993
|
},
|
|
8004
7994
|
{
|
|
8005
|
-
"
|
|
7995
|
+
"kind": "field",
|
|
7996
|
+
"name": "resolver",
|
|
8006
7997
|
"type": {
|
|
8007
|
-
"text": "
|
|
8008
|
-
},
|
|
8009
|
-
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
8010
|
-
"inheritedFrom": {
|
|
8011
|
-
"name": "FormAssociatedMixin",
|
|
8012
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
7998
|
+
"text": "IconResolver"
|
|
8013
7999
|
}
|
|
8000
|
+
},
|
|
8001
|
+
{
|
|
8002
|
+
"kind": "method",
|
|
8003
|
+
"name": "resolve",
|
|
8004
|
+
"parameters": [
|
|
8005
|
+
{
|
|
8006
|
+
"name": "name",
|
|
8007
|
+
"type": {
|
|
8008
|
+
"text": "string"
|
|
8009
|
+
}
|
|
8010
|
+
},
|
|
8011
|
+
{
|
|
8012
|
+
"name": "onResolved",
|
|
8013
|
+
"type": {
|
|
8014
|
+
"text": "(svg: string) => void"
|
|
8015
|
+
}
|
|
8016
|
+
}
|
|
8017
|
+
]
|
|
8018
|
+
},
|
|
8019
|
+
{
|
|
8020
|
+
"kind": "method",
|
|
8021
|
+
"name": "registerIcon",
|
|
8022
|
+
"parameters": [
|
|
8023
|
+
{
|
|
8024
|
+
"name": "iconOrName",
|
|
8025
|
+
"type": {
|
|
8026
|
+
"text": "string | { title: string; default: string }"
|
|
8027
|
+
}
|
|
8028
|
+
},
|
|
8029
|
+
{
|
|
8030
|
+
"name": "icon",
|
|
8031
|
+
"optional": true,
|
|
8032
|
+
"type": {
|
|
8033
|
+
"text": "string"
|
|
8034
|
+
}
|
|
8035
|
+
}
|
|
8036
|
+
]
|
|
8037
|
+
},
|
|
8038
|
+
{
|
|
8039
|
+
"kind": "method",
|
|
8040
|
+
"name": "clear"
|
|
8014
8041
|
}
|
|
8015
8042
|
]
|
|
8016
8043
|
}
|
|
@@ -8018,18 +8045,10 @@
|
|
|
8018
8045
|
"exports": [
|
|
8019
8046
|
{
|
|
8020
8047
|
"kind": "js",
|
|
8021
|
-
"name": "
|
|
8022
|
-
"declaration": {
|
|
8023
|
-
"name": "Input",
|
|
8024
|
-
"module": "src/input/Input.ts"
|
|
8025
|
-
}
|
|
8026
|
-
},
|
|
8027
|
-
{
|
|
8028
|
-
"kind": "custom-element-definition",
|
|
8029
|
-
"name": "nord-input",
|
|
8048
|
+
"name": "IconManager",
|
|
8030
8049
|
"declaration": {
|
|
8031
|
-
"name": "
|
|
8032
|
-
"module": "src/
|
|
8050
|
+
"name": "IconManager",
|
|
8051
|
+
"module": "src/icon/IconManager.ts"
|
|
8033
8052
|
}
|
|
8034
8053
|
}
|
|
8035
8054
|
]
|
|
@@ -13243,152 +13262,57 @@
|
|
|
13243
13262
|
"type": {
|
|
13244
13263
|
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
13245
13264
|
},
|
|
13246
|
-
"default": "\"m\"",
|
|
13247
|
-
"description": "The size of the spinner.",
|
|
13248
|
-
"attribute": "size",
|
|
13249
|
-
"reflects": true
|
|
13250
|
-
},
|
|
13251
|
-
{
|
|
13252
|
-
"kind": "field",
|
|
13253
|
-
"name": "color",
|
|
13254
|
-
"type": {
|
|
13255
|
-
"text": "string | undefined"
|
|
13256
|
-
},
|
|
13257
|
-
"description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
|
|
13258
|
-
"attribute": "color",
|
|
13259
|
-
"reflects": true
|
|
13260
|
-
},
|
|
13261
|
-
{
|
|
13262
|
-
"kind": "field",
|
|
13263
|
-
"name": "label",
|
|
13264
|
-
"type": {
|
|
13265
|
-
"text": "string | undefined"
|
|
13266
|
-
},
|
|
13267
|
-
"description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
|
|
13268
|
-
"attribute": "label",
|
|
13269
|
-
"reflects": true
|
|
13270
|
-
}
|
|
13271
|
-
],
|
|
13272
|
-
"attributes": [
|
|
13273
|
-
{
|
|
13274
|
-
"name": "size",
|
|
13275
|
-
"type": {
|
|
13276
|
-
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
13277
|
-
},
|
|
13278
|
-
"default": "\"m\"",
|
|
13279
|
-
"description": "The size of the spinner.",
|
|
13280
|
-
"fieldName": "size"
|
|
13281
|
-
},
|
|
13282
|
-
{
|
|
13283
|
-
"name": "color",
|
|
13284
|
-
"type": {
|
|
13285
|
-
"text": "string | undefined"
|
|
13286
|
-
},
|
|
13287
|
-
"description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
|
|
13288
|
-
"fieldName": "color"
|
|
13289
|
-
},
|
|
13290
|
-
{
|
|
13291
|
-
"name": "label",
|
|
13292
|
-
"type": {
|
|
13293
|
-
"text": "string | undefined"
|
|
13294
|
-
},
|
|
13295
|
-
"description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
|
|
13296
|
-
"fieldName": "label"
|
|
13297
|
-
}
|
|
13298
|
-
],
|
|
13299
|
-
"superclass": {
|
|
13300
|
-
"name": "LitElement",
|
|
13301
|
-
"package": "lit"
|
|
13302
|
-
},
|
|
13303
|
-
"localization": [],
|
|
13304
|
-
"status": "ready",
|
|
13305
|
-
"category": "feedback",
|
|
13306
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for indicating users that their action is being processed.\n- Use the label property to provide an accessible label for the spinner. If no label is supplied, the spinner is hidden from assistive technology.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use to show progress. Favor a progress bar instead.\n\n</div>\n",
|
|
13307
|
-
"examples": [],
|
|
13308
|
-
"dependencies": [],
|
|
13309
|
-
"tagName": "nord-spinner",
|
|
13310
|
-
"customElement": true
|
|
13311
|
-
}
|
|
13312
|
-
],
|
|
13313
|
-
"exports": [
|
|
13314
|
-
{
|
|
13315
|
-
"kind": "js",
|
|
13316
|
-
"name": "default",
|
|
13317
|
-
"declaration": {
|
|
13318
|
-
"name": "Spinner",
|
|
13319
|
-
"module": "src/spinner/Spinner.ts"
|
|
13320
|
-
}
|
|
13321
|
-
},
|
|
13322
|
-
{
|
|
13323
|
-
"kind": "custom-element-definition",
|
|
13324
|
-
"name": "nord-spinner",
|
|
13325
|
-
"declaration": {
|
|
13326
|
-
"name": "Spinner",
|
|
13327
|
-
"module": "src/spinner/Spinner.ts"
|
|
13328
|
-
}
|
|
13329
|
-
}
|
|
13330
|
-
]
|
|
13331
|
-
},
|
|
13332
|
-
{
|
|
13333
|
-
"kind": "javascript-module",
|
|
13334
|
-
"path": "src/tab/Tab.ts",
|
|
13335
|
-
"declarations": [
|
|
13336
|
-
{
|
|
13337
|
-
"kind": "class",
|
|
13338
|
-
"description": "The interactive tab button for use within the tab group component.",
|
|
13339
|
-
"name": "Tab",
|
|
13340
|
-
"cssProperties": [
|
|
13341
|
-
{
|
|
13342
|
-
"description": "Controls the text color of the tab, using our [color tokens](/tokens/#color).",
|
|
13343
|
-
"name": "--n-tab-color",
|
|
13344
|
-
"default": "var(--n-color-text-weak)"
|
|
13345
|
-
},
|
|
13346
|
-
{
|
|
13347
|
-
"description": "Controls the font weight of the tab, using our [font tokens](/tokens/#font).",
|
|
13348
|
-
"name": "--n-tab-font-weight",
|
|
13349
|
-
"default": "var(--n-font-weight)"
|
|
13350
|
-
}
|
|
13351
|
-
],
|
|
13352
|
-
"slots": [
|
|
13353
|
-
{
|
|
13354
|
-
"description": "The tab button content.",
|
|
13355
|
-
"name": ""
|
|
13356
|
-
}
|
|
13357
|
-
],
|
|
13358
|
-
"members": [
|
|
13359
|
-
{
|
|
13360
|
-
"kind": "field",
|
|
13361
|
-
"name": "defaultSlot",
|
|
13362
|
-
"privacy": "private",
|
|
13363
|
-
"default": "new SlotController(this)"
|
|
13265
|
+
"default": "\"m\"",
|
|
13266
|
+
"description": "The size of the spinner.",
|
|
13267
|
+
"attribute": "size",
|
|
13268
|
+
"reflects": true
|
|
13364
13269
|
},
|
|
13365
13270
|
{
|
|
13366
13271
|
"kind": "field",
|
|
13367
|
-
"name": "
|
|
13272
|
+
"name": "color",
|
|
13368
13273
|
"type": {
|
|
13369
|
-
"text": "
|
|
13274
|
+
"text": "string | undefined"
|
|
13370
13275
|
},
|
|
13371
|
-
"
|
|
13372
|
-
"
|
|
13373
|
-
"attribute": "selected",
|
|
13276
|
+
"description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
|
|
13277
|
+
"attribute": "color",
|
|
13374
13278
|
"reflects": true
|
|
13375
13279
|
},
|
|
13376
13280
|
{
|
|
13377
|
-
"kind": "
|
|
13378
|
-
"name": "
|
|
13379
|
-
"
|
|
13380
|
-
|
|
13281
|
+
"kind": "field",
|
|
13282
|
+
"name": "label",
|
|
13283
|
+
"type": {
|
|
13284
|
+
"text": "string | undefined"
|
|
13285
|
+
},
|
|
13286
|
+
"description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
|
|
13287
|
+
"attribute": "label",
|
|
13288
|
+
"reflects": true
|
|
13381
13289
|
}
|
|
13382
13290
|
],
|
|
13383
13291
|
"attributes": [
|
|
13384
13292
|
{
|
|
13385
|
-
"name": "
|
|
13293
|
+
"name": "size",
|
|
13386
13294
|
"type": {
|
|
13387
|
-
"text": "
|
|
13295
|
+
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
13388
13296
|
},
|
|
13389
|
-
"default": "
|
|
13390
|
-
"description": "
|
|
13391
|
-
"fieldName": "
|
|
13297
|
+
"default": "\"m\"",
|
|
13298
|
+
"description": "The size of the spinner.",
|
|
13299
|
+
"fieldName": "size"
|
|
13300
|
+
},
|
|
13301
|
+
{
|
|
13302
|
+
"name": "color",
|
|
13303
|
+
"type": {
|
|
13304
|
+
"text": "string | undefined"
|
|
13305
|
+
},
|
|
13306
|
+
"description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
|
|
13307
|
+
"fieldName": "color"
|
|
13308
|
+
},
|
|
13309
|
+
{
|
|
13310
|
+
"name": "label",
|
|
13311
|
+
"type": {
|
|
13312
|
+
"text": "string | undefined"
|
|
13313
|
+
},
|
|
13314
|
+
"description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
|
|
13315
|
+
"fieldName": "label"
|
|
13392
13316
|
}
|
|
13393
13317
|
],
|
|
13394
13318
|
"superclass": {
|
|
@@ -13397,11 +13321,11 @@
|
|
|
13397
13321
|
},
|
|
13398
13322
|
"localization": [],
|
|
13399
13323
|
"status": "ready",
|
|
13400
|
-
"category": "
|
|
13401
|
-
"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
|
|
13324
|
+
"category": "feedback",
|
|
13325
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for indicating users that their action is being processed.\n- Use the label property to provide an accessible label for the spinner. If no label is supplied, the spinner is hidden from assistive technology.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use to show progress. Favor a progress bar instead.\n\n</div>\n",
|
|
13402
13326
|
"examples": [],
|
|
13403
13327
|
"dependencies": [],
|
|
13404
|
-
"tagName": "nord-
|
|
13328
|
+
"tagName": "nord-spinner",
|
|
13405
13329
|
"customElement": true
|
|
13406
13330
|
}
|
|
13407
13331
|
],
|
|
@@ -13410,16 +13334,16 @@
|
|
|
13410
13334
|
"kind": "js",
|
|
13411
13335
|
"name": "default",
|
|
13412
13336
|
"declaration": {
|
|
13413
|
-
"name": "
|
|
13414
|
-
"module": "src/
|
|
13337
|
+
"name": "Spinner",
|
|
13338
|
+
"module": "src/spinner/Spinner.ts"
|
|
13415
13339
|
}
|
|
13416
13340
|
},
|
|
13417
13341
|
{
|
|
13418
13342
|
"kind": "custom-element-definition",
|
|
13419
|
-
"name": "nord-
|
|
13343
|
+
"name": "nord-spinner",
|
|
13420
13344
|
"declaration": {
|
|
13421
|
-
"name": "
|
|
13422
|
-
"module": "src/
|
|
13345
|
+
"name": "Spinner",
|
|
13346
|
+
"module": "src/spinner/Spinner.ts"
|
|
13423
13347
|
}
|
|
13424
13348
|
}
|
|
13425
13349
|
]
|
|
@@ -13582,19 +13506,66 @@
|
|
|
13582
13506
|
},
|
|
13583
13507
|
{
|
|
13584
13508
|
"kind": "javascript-module",
|
|
13585
|
-
"path": "src/tab
|
|
13509
|
+
"path": "src/tab/Tab.ts",
|
|
13586
13510
|
"declarations": [
|
|
13587
13511
|
{
|
|
13588
13512
|
"kind": "class",
|
|
13589
|
-
"description": "The
|
|
13590
|
-
"name": "
|
|
13513
|
+
"description": "The interactive tab button for use within the tab group component.",
|
|
13514
|
+
"name": "Tab",
|
|
13515
|
+
"cssProperties": [
|
|
13516
|
+
{
|
|
13517
|
+
"description": "Controls the text color of the tab, using our [color tokens](/tokens/#color).",
|
|
13518
|
+
"name": "--n-tab-color",
|
|
13519
|
+
"default": "var(--n-color-text-weak)"
|
|
13520
|
+
},
|
|
13521
|
+
{
|
|
13522
|
+
"description": "Controls the font weight of the tab, using our [font tokens](/tokens/#font).",
|
|
13523
|
+
"name": "--n-tab-font-weight",
|
|
13524
|
+
"default": "var(--n-font-weight)"
|
|
13525
|
+
}
|
|
13526
|
+
],
|
|
13591
13527
|
"slots": [
|
|
13592
13528
|
{
|
|
13593
|
-
"description": "The tab
|
|
13529
|
+
"description": "The tab button content.",
|
|
13594
13530
|
"name": ""
|
|
13595
13531
|
}
|
|
13596
13532
|
],
|
|
13597
|
-
"members": [
|
|
13533
|
+
"members": [
|
|
13534
|
+
{
|
|
13535
|
+
"kind": "field",
|
|
13536
|
+
"name": "defaultSlot",
|
|
13537
|
+
"privacy": "private",
|
|
13538
|
+
"default": "new SlotController(this)"
|
|
13539
|
+
},
|
|
13540
|
+
{
|
|
13541
|
+
"kind": "field",
|
|
13542
|
+
"name": "selected",
|
|
13543
|
+
"type": {
|
|
13544
|
+
"text": "boolean"
|
|
13545
|
+
},
|
|
13546
|
+
"default": "false",
|
|
13547
|
+
"description": "Whether the tab item is selected",
|
|
13548
|
+
"attribute": "selected",
|
|
13549
|
+
"reflects": true
|
|
13550
|
+
},
|
|
13551
|
+
{
|
|
13552
|
+
"kind": "method",
|
|
13553
|
+
"name": "handleSelectionChange",
|
|
13554
|
+
"privacy": "protected",
|
|
13555
|
+
"description": "Apply accessible attributes and values to the tab button.\nObserve the selected property if it changes"
|
|
13556
|
+
}
|
|
13557
|
+
],
|
|
13558
|
+
"attributes": [
|
|
13559
|
+
{
|
|
13560
|
+
"name": "selected",
|
|
13561
|
+
"type": {
|
|
13562
|
+
"text": "boolean"
|
|
13563
|
+
},
|
|
13564
|
+
"default": "false",
|
|
13565
|
+
"description": "Whether the tab item is selected",
|
|
13566
|
+
"fieldName": "selected"
|
|
13567
|
+
}
|
|
13568
|
+
],
|
|
13598
13569
|
"superclass": {
|
|
13599
13570
|
"name": "LitElement",
|
|
13600
13571
|
"package": "lit"
|
|
@@ -13602,10 +13573,10 @@
|
|
|
13602
13573
|
"localization": [],
|
|
13603
13574
|
"status": "ready",
|
|
13604
13575
|
"category": "navigation",
|
|
13605
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the tab
|
|
13576
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the tab component within the tab group component.\n- Use the `selected` option to signify if the tab is selected.\n- Use text, icons and other non-interactive content within the tab.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use tabs to navigate to other pages. Use navigation or links instead.\n- Don't use the tab component outside of the tab group component.\n- Don't add interactive elements, such as buttons and links, inside the tab component.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing tab labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in tab labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">The dashboard</div>\n\nAvoid ending tab labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients.</div>\n\nUse as few words as possible to describe each tab label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for tab labels:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n\n---\n\n## Additional considerations\n\n- If the content contained within the tabs UI has significance or is important for the user to see, consider using a different form of presentation that doesn't obscure it.\n- If there is a particular section you wish to show out of order of the tabs UI itself consider using the `selected` option to select the tab but prevent the order of the tabs being affected.\n",
|
|
13606
13577
|
"examples": [],
|
|
13607
13578
|
"dependencies": [],
|
|
13608
|
-
"tagName": "nord-tab
|
|
13579
|
+
"tagName": "nord-tab",
|
|
13609
13580
|
"customElement": true
|
|
13610
13581
|
}
|
|
13611
13582
|
],
|
|
@@ -13614,16 +13585,16 @@
|
|
|
13614
13585
|
"kind": "js",
|
|
13615
13586
|
"name": "default",
|
|
13616
13587
|
"declaration": {
|
|
13617
|
-
"name": "
|
|
13618
|
-
"module": "src/tab
|
|
13588
|
+
"name": "Tab",
|
|
13589
|
+
"module": "src/tab/Tab.ts"
|
|
13619
13590
|
}
|
|
13620
13591
|
},
|
|
13621
13592
|
{
|
|
13622
13593
|
"kind": "custom-element-definition",
|
|
13623
|
-
"name": "nord-tab
|
|
13594
|
+
"name": "nord-tab",
|
|
13624
13595
|
"declaration": {
|
|
13625
|
-
"name": "
|
|
13626
|
-
"module": "src/tab
|
|
13596
|
+
"name": "Tab",
|
|
13597
|
+
"module": "src/tab/Tab.ts"
|
|
13627
13598
|
}
|
|
13628
13599
|
}
|
|
13629
13600
|
]
|
|
@@ -13874,6 +13845,54 @@
|
|
|
13874
13845
|
}
|
|
13875
13846
|
]
|
|
13876
13847
|
},
|
|
13848
|
+
{
|
|
13849
|
+
"kind": "javascript-module",
|
|
13850
|
+
"path": "src/tab-panel/TabPanel.ts",
|
|
13851
|
+
"declarations": [
|
|
13852
|
+
{
|
|
13853
|
+
"kind": "class",
|
|
13854
|
+
"description": "The panel which contains content that can be revealed using a tab\nin the tab group component.",
|
|
13855
|
+
"name": "TabPanel",
|
|
13856
|
+
"slots": [
|
|
13857
|
+
{
|
|
13858
|
+
"description": "The tab panel content.",
|
|
13859
|
+
"name": ""
|
|
13860
|
+
}
|
|
13861
|
+
],
|
|
13862
|
+
"members": [],
|
|
13863
|
+
"superclass": {
|
|
13864
|
+
"name": "LitElement",
|
|
13865
|
+
"package": "lit"
|
|
13866
|
+
},
|
|
13867
|
+
"localization": [],
|
|
13868
|
+
"status": "ready",
|
|
13869
|
+
"category": "navigation",
|
|
13870
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the tab panel component within the tab group component.\n- Use both non-interactive and interactive elements within the contents of the tab panel.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use the tab panel component outside of the tab group component.\n- Don't obscure important information within a tab panel that isn't revealed by default.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing tab labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in tab labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">The dashboard</div>\n\nAvoid ending tab labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients.</div>\n\nUse as few words as possible to describe each tab label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for tab labels:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n\n---\n\n## Additional considerations\n\n- If the content contained within the tabs UI has significance or is important for the user to see, consider using a different form of presentation that doesn't obscure it.\n- If there is a particular tab panel you wish to show out of order of the tabs UI itself consider using the `selected` option on the related tab component to select the tab but prevent the order of the tabs being affected.\n",
|
|
13871
|
+
"examples": [],
|
|
13872
|
+
"dependencies": [],
|
|
13873
|
+
"tagName": "nord-tab-panel",
|
|
13874
|
+
"customElement": true
|
|
13875
|
+
}
|
|
13876
|
+
],
|
|
13877
|
+
"exports": [
|
|
13878
|
+
{
|
|
13879
|
+
"kind": "js",
|
|
13880
|
+
"name": "default",
|
|
13881
|
+
"declaration": {
|
|
13882
|
+
"name": "TabPanel",
|
|
13883
|
+
"module": "src/tab-panel/TabPanel.ts"
|
|
13884
|
+
}
|
|
13885
|
+
},
|
|
13886
|
+
{
|
|
13887
|
+
"kind": "custom-element-definition",
|
|
13888
|
+
"name": "nord-tab-panel",
|
|
13889
|
+
"declaration": {
|
|
13890
|
+
"name": "TabPanel",
|
|
13891
|
+
"module": "src/tab-panel/TabPanel.ts"
|
|
13892
|
+
}
|
|
13893
|
+
}
|
|
13894
|
+
]
|
|
13895
|
+
},
|
|
13877
13896
|
{
|
|
13878
13897
|
"kind": "javascript-module",
|
|
13879
13898
|
"path": "src/table/Table.ts",
|
|
@@ -17457,41 +17476,6 @@
|
|
|
17457
17476
|
}
|
|
17458
17477
|
]
|
|
17459
17478
|
},
|
|
17460
|
-
{
|
|
17461
|
-
"kind": "javascript-module",
|
|
17462
|
-
"path": "src/common/decorators/observe.ts",
|
|
17463
|
-
"declarations": [
|
|
17464
|
-
{
|
|
17465
|
-
"kind": "function",
|
|
17466
|
-
"name": "observe",
|
|
17467
|
-
"parameters": [
|
|
17468
|
-
{
|
|
17469
|
-
"name": "propertyName",
|
|
17470
|
-
"type": {
|
|
17471
|
-
"text": "string"
|
|
17472
|
-
}
|
|
17473
|
-
},
|
|
17474
|
-
{
|
|
17475
|
-
"name": "lifecycle",
|
|
17476
|
-
"default": "\"update\"",
|
|
17477
|
-
"type": {
|
|
17478
|
-
"text": "ObserveLifecycle"
|
|
17479
|
-
}
|
|
17480
|
-
}
|
|
17481
|
-
]
|
|
17482
|
-
}
|
|
17483
|
-
],
|
|
17484
|
-
"exports": [
|
|
17485
|
-
{
|
|
17486
|
-
"kind": "js",
|
|
17487
|
-
"name": "observe",
|
|
17488
|
-
"declaration": {
|
|
17489
|
-
"name": "observe",
|
|
17490
|
-
"module": "src/common/decorators/observe.ts"
|
|
17491
|
-
}
|
|
17492
|
-
}
|
|
17493
|
-
]
|
|
17494
|
-
},
|
|
17495
17479
|
{
|
|
17496
17480
|
"kind": "javascript-module",
|
|
17497
17481
|
"path": "src/common/directives/cond.ts",
|
|
@@ -17926,6 +17910,41 @@
|
|
|
17926
17910
|
}
|
|
17927
17911
|
]
|
|
17928
17912
|
},
|
|
17913
|
+
{
|
|
17914
|
+
"kind": "javascript-module",
|
|
17915
|
+
"path": "src/common/decorators/observe.ts",
|
|
17916
|
+
"declarations": [
|
|
17917
|
+
{
|
|
17918
|
+
"kind": "function",
|
|
17919
|
+
"name": "observe",
|
|
17920
|
+
"parameters": [
|
|
17921
|
+
{
|
|
17922
|
+
"name": "propertyName",
|
|
17923
|
+
"type": {
|
|
17924
|
+
"text": "string"
|
|
17925
|
+
}
|
|
17926
|
+
},
|
|
17927
|
+
{
|
|
17928
|
+
"name": "lifecycle",
|
|
17929
|
+
"default": "\"update\"",
|
|
17930
|
+
"type": {
|
|
17931
|
+
"text": "ObserveLifecycle"
|
|
17932
|
+
}
|
|
17933
|
+
}
|
|
17934
|
+
]
|
|
17935
|
+
}
|
|
17936
|
+
],
|
|
17937
|
+
"exports": [
|
|
17938
|
+
{
|
|
17939
|
+
"kind": "js",
|
|
17940
|
+
"name": "observe",
|
|
17941
|
+
"declaration": {
|
|
17942
|
+
"name": "observe",
|
|
17943
|
+
"module": "src/common/decorators/observe.ts"
|
|
17944
|
+
}
|
|
17945
|
+
}
|
|
17946
|
+
]
|
|
17947
|
+
},
|
|
17929
17948
|
{
|
|
17930
17949
|
"kind": "javascript-module",
|
|
17931
17950
|
"path": "src/common/mixins/AutocompleteMixin.ts",
|