@nordhealth/components 2.16.0 → 2.16.1-2.16.1-alpha.1.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.
@@ -8865,6 +8865,73 @@
8865
8865
  }
8866
8866
  ]
8867
8867
  },
8868
+ {
8869
+ "kind": "javascript-module",
8870
+ "path": "src/nav-group/NavGroup.ts",
8871
+ "declarations": [
8872
+ {
8873
+ "kind": "class",
8874
+ "description": "Navigation group includes all the actions or items in a single\ngroup and is used for grouping items into related categories.",
8875
+ "name": "NavGroup",
8876
+ "slots": [
8877
+ {
8878
+ "description": "The default slot used for the nav items.",
8879
+ "name": ""
8880
+ }
8881
+ ],
8882
+ "members": [
8883
+ {
8884
+ "kind": "field",
8885
+ "name": "heading",
8886
+ "type": {
8887
+ "text": "string | undefined"
8888
+ },
8889
+ "description": "Heading and accessible label for the nav group",
8890
+ "attribute": "heading"
8891
+ }
8892
+ ],
8893
+ "attributes": [
8894
+ {
8895
+ "name": "heading",
8896
+ "type": {
8897
+ "text": "string | undefined"
8898
+ },
8899
+ "description": "Heading and accessible label for the nav group",
8900
+ "fieldName": "heading"
8901
+ }
8902
+ ],
8903
+ "superclass": {
8904
+ "name": "LitElement",
8905
+ "package": "lit"
8906
+ },
8907
+ "localization": [],
8908
+ "status": "ready",
8909
+ "category": "navigation",
8910
+ "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
8911
+ "examples": [],
8912
+ "tagName": "nord-nav-group",
8913
+ "customElement": true
8914
+ }
8915
+ ],
8916
+ "exports": [
8917
+ {
8918
+ "kind": "js",
8919
+ "name": "default",
8920
+ "declaration": {
8921
+ "name": "NavGroup",
8922
+ "module": "src/nav-group/NavGroup.ts"
8923
+ }
8924
+ },
8925
+ {
8926
+ "kind": "custom-element-definition",
8927
+ "name": "nord-nav-group",
8928
+ "declaration": {
8929
+ "name": "NavGroup",
8930
+ "module": "src/nav-group/NavGroup.ts"
8931
+ }
8932
+ }
8933
+ ]
8934
+ },
8868
8935
  {
8869
8936
  "kind": "javascript-module",
8870
8937
  "path": "src/nav-item/NavItem.ts",
@@ -9126,73 +9193,6 @@
9126
9193
  }
9127
9194
  ]
9128
9195
  },
9129
- {
9130
- "kind": "javascript-module",
9131
- "path": "src/nav-group/NavGroup.ts",
9132
- "declarations": [
9133
- {
9134
- "kind": "class",
9135
- "description": "Navigation group includes all the actions or items in a single\ngroup and is used for grouping items into related categories.",
9136
- "name": "NavGroup",
9137
- "slots": [
9138
- {
9139
- "description": "The default slot used for the nav items.",
9140
- "name": ""
9141
- }
9142
- ],
9143
- "members": [
9144
- {
9145
- "kind": "field",
9146
- "name": "heading",
9147
- "type": {
9148
- "text": "string | undefined"
9149
- },
9150
- "description": "Heading and accessible label for the nav group",
9151
- "attribute": "heading"
9152
- }
9153
- ],
9154
- "attributes": [
9155
- {
9156
- "name": "heading",
9157
- "type": {
9158
- "text": "string | undefined"
9159
- },
9160
- "description": "Heading and accessible label for the nav group",
9161
- "fieldName": "heading"
9162
- }
9163
- ],
9164
- "superclass": {
9165
- "name": "LitElement",
9166
- "package": "lit"
9167
- },
9168
- "localization": [],
9169
- "status": "ready",
9170
- "category": "navigation",
9171
- "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
9172
- "examples": [],
9173
- "tagName": "nord-nav-group",
9174
- "customElement": true
9175
- }
9176
- ],
9177
- "exports": [
9178
- {
9179
- "kind": "js",
9180
- "name": "default",
9181
- "declaration": {
9182
- "name": "NavGroup",
9183
- "module": "src/nav-group/NavGroup.ts"
9184
- }
9185
- },
9186
- {
9187
- "kind": "custom-element-definition",
9188
- "name": "nord-nav-group",
9189
- "declaration": {
9190
- "name": "NavGroup",
9191
- "module": "src/nav-group/NavGroup.ts"
9192
- }
9193
- }
9194
- ]
9195
- },
9196
9196
  {
9197
9197
  "kind": "javascript-module",
9198
9198
  "path": "src/nav-toggle/NavToggle.ts",
@@ -9350,7 +9350,14 @@
9350
9350
  "name": "footer"
9351
9351
  }
9352
9352
  ],
9353
- "members": [],
9353
+ "members": [
9354
+ {
9355
+ "kind": "field",
9356
+ "name": "headerSlot",
9357
+ "privacy": "private",
9358
+ "default": "new SlotController(this, \"header\")"
9359
+ }
9360
+ ],
9354
9361
  "superclass": {
9355
9362
  "name": "LitElement",
9356
9363
  "package": "lit"
@@ -9725,6 +9732,177 @@
9725
9732
  }
9726
9733
  ]
9727
9734
  },
9735
+ {
9736
+ "kind": "javascript-module",
9737
+ "path": "src/progress-bar/ProgressBar.ts",
9738
+ "declarations": [
9739
+ {
9740
+ "kind": "class",
9741
+ "description": "Progress Bar is used to visually represent the completion\nof a task or process. It shows how much of the task has\nbeen completed and how much is still left.",
9742
+ "name": "ProgressBar",
9743
+ "cssProperties": [
9744
+ {
9745
+ "description": "Controls the thickness of the progress bar, using our [spacing tokens](/tokens/#space).",
9746
+ "name": "--n-progress-size",
9747
+ "default": "var(--n-space-s)"
9748
+ },
9749
+ {
9750
+ "description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
9751
+ "name": "--n-progress-border-radius",
9752
+ "default": "var(--n-border-radius-s)"
9753
+ },
9754
+ {
9755
+ "description": "Controls the color of the progress bar, using [color tokens](/tokens/#color).",
9756
+ "name": "--n-progress-color",
9757
+ "default": "var(--n-color-accent)"
9758
+ }
9759
+ ],
9760
+ "members": [
9761
+ {
9762
+ "kind": "field",
9763
+ "name": "value",
9764
+ "type": {
9765
+ "text": "number | undefined"
9766
+ },
9767
+ "description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
9768
+ "attribute": "value",
9769
+ "reflects": true
9770
+ },
9771
+ {
9772
+ "kind": "field",
9773
+ "name": "max",
9774
+ "type": {
9775
+ "text": "number"
9776
+ },
9777
+ "default": "100",
9778
+ "description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
9779
+ "attribute": "max",
9780
+ "reflects": true
9781
+ },
9782
+ {
9783
+ "kind": "field",
9784
+ "name": "label",
9785
+ "type": {
9786
+ "text": "string"
9787
+ },
9788
+ "default": "\"Current progress\"",
9789
+ "description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
9790
+ "attribute": "label",
9791
+ "reflects": true
9792
+ },
9793
+ {
9794
+ "kind": "field",
9795
+ "name": "focusableRef",
9796
+ "privacy": "protected",
9797
+ "inheritedFrom": {
9798
+ "name": "FocusableMixin",
9799
+ "module": "src/common/mixins/FocusableMixin.ts"
9800
+ }
9801
+ },
9802
+ {
9803
+ "kind": "method",
9804
+ "name": "focus",
9805
+ "parameters": [
9806
+ {
9807
+ "name": "options",
9808
+ "optional": true,
9809
+ "type": {
9810
+ "text": "FocusOptions"
9811
+ },
9812
+ "description": "An object which controls aspects of the focusing process."
9813
+ }
9814
+ ],
9815
+ "description": "Programmatically move focus to the component.",
9816
+ "inheritedFrom": {
9817
+ "name": "FocusableMixin",
9818
+ "module": "src/common/mixins/FocusableMixin.ts"
9819
+ }
9820
+ },
9821
+ {
9822
+ "kind": "method",
9823
+ "name": "blur",
9824
+ "description": "Programmatically remove focus from the component.",
9825
+ "inheritedFrom": {
9826
+ "name": "FocusableMixin",
9827
+ "module": "src/common/mixins/FocusableMixin.ts"
9828
+ }
9829
+ },
9830
+ {
9831
+ "kind": "method",
9832
+ "name": "click",
9833
+ "description": "Programmatically simulates a click on the component.",
9834
+ "inheritedFrom": {
9835
+ "name": "FocusableMixin",
9836
+ "module": "src/common/mixins/FocusableMixin.ts"
9837
+ }
9838
+ }
9839
+ ],
9840
+ "attributes": [
9841
+ {
9842
+ "name": "value",
9843
+ "type": {
9844
+ "text": "number | undefined"
9845
+ },
9846
+ "description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
9847
+ "fieldName": "value"
9848
+ },
9849
+ {
9850
+ "name": "max",
9851
+ "type": {
9852
+ "text": "number"
9853
+ },
9854
+ "default": "100",
9855
+ "description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
9856
+ "fieldName": "max"
9857
+ },
9858
+ {
9859
+ "name": "label",
9860
+ "type": {
9861
+ "text": "string"
9862
+ },
9863
+ "default": "\"Current progress\"",
9864
+ "description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
9865
+ "fieldName": "label"
9866
+ }
9867
+ ],
9868
+ "mixins": [
9869
+ {
9870
+ "name": "FocusableMixin",
9871
+ "module": "/src/common/mixins/FocusableMixin.js"
9872
+ }
9873
+ ],
9874
+ "superclass": {
9875
+ "name": "LitElement",
9876
+ "package": "lit"
9877
+ },
9878
+ "localization": [],
9879
+ "status": "ready",
9880
+ "category": "feedback",
9881
+ "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to show the completion status of an ongoing task.\n- Use progress bar when you can determine the percentage of the completed task at any time.\n- Always provide an accessible label when using Progress Bar.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use in constrained spaces indicating indeterminate loading state, see [Spinner](/components/spinner/) instead.\n\n</div>\n",
9882
+ "examples": [],
9883
+ "tagName": "nord-progress-bar",
9884
+ "customElement": true
9885
+ }
9886
+ ],
9887
+ "exports": [
9888
+ {
9889
+ "kind": "js",
9890
+ "name": "default",
9891
+ "declaration": {
9892
+ "name": "ProgressBar",
9893
+ "module": "src/progress-bar/ProgressBar.ts"
9894
+ }
9895
+ },
9896
+ {
9897
+ "kind": "custom-element-definition",
9898
+ "name": "nord-progress-bar",
9899
+ "declaration": {
9900
+ "name": "ProgressBar",
9901
+ "module": "src/progress-bar/ProgressBar.ts"
9902
+ }
9903
+ }
9904
+ ]
9905
+ },
9728
9906
  {
9729
9907
  "kind": "javascript-module",
9730
9908
  "path": "src/qrcode/Qrcode.ts",
@@ -9911,177 +10089,6 @@
9911
10089
  }
9912
10090
  ]
9913
10091
  },
9914
- {
9915
- "kind": "javascript-module",
9916
- "path": "src/progress-bar/ProgressBar.ts",
9917
- "declarations": [
9918
- {
9919
- "kind": "class",
9920
- "description": "Progress Bar is used to visually represent the completion\nof a task or process. It shows how much of the task has\nbeen completed and how much is still left.",
9921
- "name": "ProgressBar",
9922
- "cssProperties": [
9923
- {
9924
- "description": "Controls the thickness of the progress bar, using our [spacing tokens](/tokens/#space).",
9925
- "name": "--n-progress-size",
9926
- "default": "var(--n-space-s)"
9927
- },
9928
- {
9929
- "description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
9930
- "name": "--n-progress-border-radius",
9931
- "default": "var(--n-border-radius-s)"
9932
- },
9933
- {
9934
- "description": "Controls the color of the progress bar, using [color tokens](/tokens/#color).",
9935
- "name": "--n-progress-color",
9936
- "default": "var(--n-color-accent)"
9937
- }
9938
- ],
9939
- "members": [
9940
- {
9941
- "kind": "field",
9942
- "name": "value",
9943
- "type": {
9944
- "text": "number | undefined"
9945
- },
9946
- "description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
9947
- "attribute": "value",
9948
- "reflects": true
9949
- },
9950
- {
9951
- "kind": "field",
9952
- "name": "max",
9953
- "type": {
9954
- "text": "number"
9955
- },
9956
- "default": "100",
9957
- "description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
9958
- "attribute": "max",
9959
- "reflects": true
9960
- },
9961
- {
9962
- "kind": "field",
9963
- "name": "label",
9964
- "type": {
9965
- "text": "string"
9966
- },
9967
- "default": "\"Current progress\"",
9968
- "description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
9969
- "attribute": "label",
9970
- "reflects": true
9971
- },
9972
- {
9973
- "kind": "field",
9974
- "name": "focusableRef",
9975
- "privacy": "protected",
9976
- "inheritedFrom": {
9977
- "name": "FocusableMixin",
9978
- "module": "src/common/mixins/FocusableMixin.ts"
9979
- }
9980
- },
9981
- {
9982
- "kind": "method",
9983
- "name": "focus",
9984
- "parameters": [
9985
- {
9986
- "name": "options",
9987
- "optional": true,
9988
- "type": {
9989
- "text": "FocusOptions"
9990
- },
9991
- "description": "An object which controls aspects of the focusing process."
9992
- }
9993
- ],
9994
- "description": "Programmatically move focus to the component.",
9995
- "inheritedFrom": {
9996
- "name": "FocusableMixin",
9997
- "module": "src/common/mixins/FocusableMixin.ts"
9998
- }
9999
- },
10000
- {
10001
- "kind": "method",
10002
- "name": "blur",
10003
- "description": "Programmatically remove focus from the component.",
10004
- "inheritedFrom": {
10005
- "name": "FocusableMixin",
10006
- "module": "src/common/mixins/FocusableMixin.ts"
10007
- }
10008
- },
10009
- {
10010
- "kind": "method",
10011
- "name": "click",
10012
- "description": "Programmatically simulates a click on the component.",
10013
- "inheritedFrom": {
10014
- "name": "FocusableMixin",
10015
- "module": "src/common/mixins/FocusableMixin.ts"
10016
- }
10017
- }
10018
- ],
10019
- "attributes": [
10020
- {
10021
- "name": "value",
10022
- "type": {
10023
- "text": "number | undefined"
10024
- },
10025
- "description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
10026
- "fieldName": "value"
10027
- },
10028
- {
10029
- "name": "max",
10030
- "type": {
10031
- "text": "number"
10032
- },
10033
- "default": "100",
10034
- "description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
10035
- "fieldName": "max"
10036
- },
10037
- {
10038
- "name": "label",
10039
- "type": {
10040
- "text": "string"
10041
- },
10042
- "default": "\"Current progress\"",
10043
- "description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
10044
- "fieldName": "label"
10045
- }
10046
- ],
10047
- "mixins": [
10048
- {
10049
- "name": "FocusableMixin",
10050
- "module": "/src/common/mixins/FocusableMixin.js"
10051
- }
10052
- ],
10053
- "superclass": {
10054
- "name": "LitElement",
10055
- "package": "lit"
10056
- },
10057
- "localization": [],
10058
- "status": "ready",
10059
- "category": "feedback",
10060
- "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to show the completion status of an ongoing task.\n- Use progress bar when you can determine the percentage of the completed task at any time.\n- Always provide an accessible label when using Progress Bar.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use in constrained spaces indicating indeterminate loading state, see [Spinner](/components/spinner/) instead.\n\n</div>\n",
10061
- "examples": [],
10062
- "tagName": "nord-progress-bar",
10063
- "customElement": true
10064
- }
10065
- ],
10066
- "exports": [
10067
- {
10068
- "kind": "js",
10069
- "name": "default",
10070
- "declaration": {
10071
- "name": "ProgressBar",
10072
- "module": "src/progress-bar/ProgressBar.ts"
10073
- }
10074
- },
10075
- {
10076
- "kind": "custom-element-definition",
10077
- "name": "nord-progress-bar",
10078
- "declaration": {
10079
- "name": "ProgressBar",
10080
- "module": "src/progress-bar/ProgressBar.ts"
10081
- }
10082
- }
10083
- ]
10084
- },
10085
10092
  {
10086
10093
  "kind": "javascript-module",
10087
10094
  "path": "src/radio/Radio.ts",
package/lib/NavGroup.js CHANGED
@@ -1,2 +1,2 @@
1
- import{i as e,_ as i,s as n,y as t,b as o,e as r}from"./query-assigned-elements-cf502539.js";import{e as a}from"./property-03f59dce.js";import"./Icon.js";import"./state-70f38ceb.js";import"./if-defined-720964c0.js";import"./directive-de55b00a.js";import"./cond-2da54107.js";import"./IconManager.js";import"./Component-449e40fb.js";import"./observe-a9c6dfb6.js";const s=e`:host{color:var(--n-color-text-weak);font-weight:var(--n-font-weight);line-height:var(--n-line-height-tight);white-space:nowrap;text-overflow:ellipsis;user-select:none;all:unset;display:block;font-family:var(--n-font-family);font-size:var(--n-font-size-m)}*,::after,::before{box-sizing:border-box}[role=list]{margin-block-end:var(--n-space-m);min-inline-size:100%;list-style:none;appearance:none;border:0;box-sizing:border-box;margin:0;padding:0}.n-heading{min-inline-size:100%;color:var(--n-color-nav-heading);font-weight:var(--n-font-weight-active);line-height:var(--n-line-height-tight);padding-inline-start:var(--n-space-s);margin-block-end:var(--n-space-s);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}`;let l=class extends n{render(){return t`${this.heading?t`<p id="heading" aria-hidden="true" class="n-heading">${this.heading}</p>`:o}<div role="list" aria-labelledby="${this.heading?"heading":o}"><slot></slot></div>`}};l.styles=s,i([a()],l.prototype,"heading",void 0),l=i([r("nord-nav-group")],l);var d=l;export{d as default};
1
+ import{i as e,_ as i,s as n,y as t,b as o,e as r}from"./query-assigned-elements-cf502539.js";import{e as a}from"./property-03f59dce.js";import"./Icon.js";import"./state-70f38ceb.js";import"./if-defined-720964c0.js";import"./directive-de55b00a.js";import"./cond-2da54107.js";import"./IconManager.js";import"./Component-449e40fb.js";import"./observe-a9c6dfb6.js";const s=e`:host{color:var(--n-color-text-weak);font-weight:var(--n-font-weight);line-height:var(--n-line-height-tight);white-space:nowrap;text-overflow:ellipsis;user-select:none;all:unset;display:block;font-family:var(--n-font-family);font-size:var(--n-font-size-m)}*,::after,::before{box-sizing:border-box}[role=list]{margin-block-end:var(--n-space-m);min-inline-size:100%;list-style:none;appearance:none;border:0;box-sizing:border-box;margin:0;padding:0}.n-heading{min-inline-size:100%;color:var(--n-color-nav-heading);font-size:var(--n-font-size-s);font-weight:var(--n-font-weight-active);line-height:var(--n-line-height-tight);padding-inline-start:var(--n-space-s);margin-block-start:var(--n-space-m);margin-block-end:var(--n-space-s);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}`;let l=class extends n{render(){return t`${this.heading?t`<p id="heading" aria-hidden="true" class="n-heading">${this.heading}</p>`:o}<div role="list" aria-labelledby="${this.heading?"heading":o}"><slot></slot></div>`}};l.styles=s,i([a()],l.prototype,"heading",void 0),l=i([r("nord-nav-group")],l);var d=l;export{d as default};
2
2
  //# sourceMappingURL=NavGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavGroup.js","sources":["../src/nav-group/NavGroup.ts"],"sourcesContent":["import { LitElement, html, nothing } from \"lit\"\nimport { customElement, property } from \"lit/decorators.js\"\nimport \"../icon/Icon.js\"\n\nimport style from \"./NavGroup.css\"\n\n/**\n * Navigation group includes all the actions or items in a single\n * group and is used for grouping items into related categories.\n *\n * @category navigation\n * @status ready\n * @slot - The default slot used for the nav items.\n */\n@customElement(\"nord-nav-group\")\nexport default class NavGroup extends LitElement {\n static styles = style\n\n /**\n * Heading and accessible label for the nav group\n */\n @property() heading?: string\n\n render() {\n return html`\n ${this.heading ? html`<p id=\"heading\" aria-hidden=\"true\" class=\"n-heading\">${this.heading}</p>` : nothing}\n <div role=\"list\" aria-labelledby=${this.heading ? \"heading\" : nothing}>\n <slot></slot>\n </div>\n `\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"nord-nav-group\": NavGroup\n }\n}\n"],"names":["NavGroup","LitElement","render","html","this","heading","nothing","styles","style","__decorate","property","prototype","customElement"],"mappings":"qkCAeA,IAAqBA,EAArB,cAAsCC,EAQpCC,SACE,OAAOC,CAAI,GACPC,KAAKC,QAAUF,CAAI,wDAAwDC,KAAKC,cAAgBC,sCAC/DF,KAAKC,QAAU,UAAYC,wBAIjE,GAdMN,EAAMO,OAAGC,EAKJC,EAAA,CAAXC,KAA2BV,EAAAW,UAAA,eAAA,GANTX,EAAQS,EAAA,CAD5BG,EAAc,mBACMZ,SAAAA"}
1
+ {"version":3,"file":"NavGroup.js","sources":["../src/nav-group/NavGroup.ts"],"sourcesContent":["import { LitElement, html, nothing } from \"lit\"\nimport { customElement, property } from \"lit/decorators.js\"\nimport \"../icon/Icon.js\"\n\nimport style from \"./NavGroup.css\"\n\n/**\n * Navigation group includes all the actions or items in a single\n * group and is used for grouping items into related categories.\n *\n * @category navigation\n * @status ready\n * @slot - The default slot used for the nav items.\n */\n@customElement(\"nord-nav-group\")\nexport default class NavGroup extends LitElement {\n static styles = style\n\n /**\n * Heading and accessible label for the nav group\n */\n @property() heading?: string\n\n render() {\n return html`\n ${this.heading ? html`<p id=\"heading\" aria-hidden=\"true\" class=\"n-heading\">${this.heading}</p>` : nothing}\n <div role=\"list\" aria-labelledby=${this.heading ? \"heading\" : nothing}>\n <slot></slot>\n </div>\n `\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"nord-nav-group\": NavGroup\n }\n}\n"],"names":["NavGroup","LitElement","render","html","this","heading","nothing","styles","style","__decorate","property","prototype","customElement"],"mappings":"woCAeA,IAAqBA,EAArB,cAAsCC,EAQpCC,SACE,OAAOC,CAAI,GACPC,KAAKC,QAAUF,CAAI,wDAAwDC,KAAKC,cAAgBC,sCAC/DF,KAAKC,QAAU,UAAYC,wBAIjE,GAdMN,EAAMO,OAAGC,EAKJC,EAAA,CAAXC,KAA2BV,EAAAW,UAAA,eAAA,GANTX,EAAQS,EAAA,CAD5BG,EAAc,mBACMZ,SAAAA"}
package/lib/Navigation.js CHANGED
@@ -1,2 +1,2 @@
1
- import{i as o,_ as n,s as e,y as t,e as r}from"./query-assigned-elements-cf502539.js";const a=o`:host{all:unset;display:flex;flex-direction:column;block-size:100%;background:var(--n-color-nav-surface);overflow:hidden auto}*,::after,::before{box-sizing:border-box}nav{flex-grow:1;padding:var(--n-space-m)}slot[name=footer],slot[name=header]{display:flex;flex-direction:column;justify-content:center;--n-button-text-align:start;--n-button-background-color:transparent;--n-button-border-color:transparent;--n-button-box-shadow:none;--n-button-gradient:none;--n-button-padding-inline:calc(var(--n-space-s) / 2)}::slotted(:is([slot=header],[slot=footer]):not([open]):focus-within){--n-button-border-color:var(--n-color-accent)}slot[name=header]{--n-button-border-radius:0;--n-button-padding-inline:calc((var(--n-space-l) / 1.5) - 1px);--n-button-font-weight:var(--n-font-weight-heading);--n-button-font-size:var(--n-font-size-l);--n-button-min-block-size:calc(var(--n-space-xxl) - 2px);--n-select-block-size:var(--n-button-min-block-size);min-block-size:var(--n-button-min-block-size);padding:1px 1px 0;border-block-end:1px solid var(--n-color-border)}slot[name=footer]{--n-button-color:var(--n-color-text-weak);margin:var(--n-space-m)}::slotted(:is([slot=header]:hover,[slot=header][open])){box-shadow:0 -1px 0 1px var(--n-color-nav-hover);background-color:var(--n-color-nav-hover)}::slotted(:is([slot=footer]:hover,[slot=footer][open])){--n-button-border-color:var(--n-color-border-hover)}`;let l=class extends e{render(){return t`<slot name="header"></slot><nav><slot></slot></nav><slot name="footer"></slot>`}};l.styles=a,l=n([r("nord-navigation")],l);var s=l;export{s as default};
1
+ import{i as o,_ as n,s as e,y as t,e as r}from"./query-assigned-elements-cf502539.js";import{S as a}from"./SlotController-d733c575.js";import"./EventController-d99ebeef.js";const s=o`:host{all:unset;display:flex;flex-direction:column;block-size:100%;background:var(--n-color-nav-surface);overflow:hidden auto}*,::after,::before{box-sizing:border-box}nav{flex-grow:1;padding:var(--n-space-s) var(--n-space-m) var(--n-space-m)}slot[name=footer],slot[name=header]{display:flex;flex-direction:column;justify-content:center;--n-button-text-align:start;--n-button-background-color:transparent;--n-button-border-color:transparent;--n-button-box-shadow:none;--n-button-gradient:none;--n-button-padding-inline:calc(var(--n-space-s) / 2)}::slotted(:is([slot=header],[slot=footer]):not([open]):focus-within){--n-button-border-color:var(--n-color-accent)}slot[name=header]{--n-button-border-radius:0;--n-button-padding-inline:calc((var(--n-space-l) / 1.5) - 1px);--n-button-font-weight:var(--n-font-weight-heading);--n-button-font-size:var(--n-font-size-l);--n-button-min-block-size:calc(var(--n-space-xxl) - 2px);--n-select-block-size:var(--n-button-min-block-size);min-block-size:var(--n-button-min-block-size);padding:1px 1px 0;border-block-end:1px solid var(--n-color-border)}slot[name=footer]{--n-button-color:var(--n-color-text-weak);margin:var(--n-space-m)}slot[name=header][hidden]{display:none}::slotted(:is([slot=header]:hover,[slot=header][open])){box-shadow:0 -1px 0 1px var(--n-color-nav-hover);background-color:var(--n-color-nav-hover)}::slotted(:is([slot=footer]:hover,[slot=footer][open])){--n-button-border-color:var(--n-color-border-hover)}`;let l=class extends e{constructor(){super(...arguments),this.headerSlot=new a(this,"header")}render(){return t`<slot name="header" ?hidden="${this.headerSlot.isEmpty}"></slot><nav><slot></slot></nav><slot name="footer"></slot>`}};l.styles=s,l=n([r("nord-navigation")],l);var d=l;export{d as default};
2
2
  //# sourceMappingURL=Navigation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Navigation.js","sources":["../src/navigation/Navigation.ts"],"sourcesContent":["/* eslint-disable lit-a11y/click-events-have-key-events */\nimport { LitElement, html } from \"lit\"\nimport { customElement } from \"lit/decorators.js\"\n\nimport style from \"./Navigation.css\"\n\n/**\n * Navigation is used to display the primary navigation in the sidebar\n * of an application. Navigation includes a list of links that users\n * use to move between sections of the application.\n *\n * @status ready\n * @category navigation\n * @slot - The main section of the sidebar, for holding nav components.\n * @slot header - The top section of the sidebar.\n * @slot footer - The bottom section of the sidebar.\n */\n@customElement(\"nord-navigation\")\nexport default class Navigation extends LitElement {\n static styles = style\n\n render() {\n return html`\n <slot name=\"header\"></slot>\n <nav>\n <slot></slot>\n </nav>\n <slot name=\"footer\"></slot>\n `\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"nord-navigation\": Navigation\n }\n}\n"],"names":["Navigation","LitElement","render","html","styles","style","__decorate","customElement"],"mappings":"g9CAkBA,IAAqBA,EAArB,cAAwCC,EAGtCC,SACE,OAAOC,CAAI,gFAOZ,GAVMH,EAAMI,OAAGC,EADGL,EAAUM,EAAA,CAD9BC,EAAc,oBACMP,SAAAA"}
1
+ {"version":3,"file":"Navigation.js","sources":["../src/navigation/Navigation.ts"],"sourcesContent":["/* eslint-disable lit-a11y/click-events-have-key-events */\nimport { LitElement, html } from \"lit\"\nimport { customElement } from \"lit/decorators.js\"\nimport { SlotController } from \"../common/controllers/SlotController.js\"\n\nimport style from \"./Navigation.css\"\n\n/**\n * Navigation is used to display the primary navigation in the sidebar\n * of an application. Navigation includes a list of links that users\n * use to move between sections of the application.\n *\n * @status ready\n * @category navigation\n * @slot - The main section of the sidebar, for holding nav components.\n * @slot header - The top section of the sidebar.\n * @slot footer - The bottom section of the sidebar.\n */\n@customElement(\"nord-navigation\")\nexport default class Navigation extends LitElement {\n static styles = style\n\n private headerSlot = new SlotController(this, \"header\")\n\n render() {\n return html`\n <slot name=\"header\" ?hidden=${this.headerSlot.isEmpty}></slot>\n <nav>\n <slot></slot>\n </nav>\n <slot name=\"footer\"></slot>\n `\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"nord-navigation\": Navigation\n }\n}\n"],"names":["Navigation","LitElement","constructor","this","headerSlot","SlotController","render","html","isEmpty","styles","style","__decorate","customElement"],"mappings":"gnDAmBA,IAAqBA,EAArB,cAAwCC,EAAxCC,kCAGUC,KAAUC,WAAG,IAAIC,EAAeF,KAAM,SAW/C,CATCG,SACE,OAAOC,CAAI,gCACqBJ,KAAKC,WAAWI,qEAMjD,GAZMR,EAAMS,OAAGC,EADGV,EAAUW,EAAA,CAD9BC,EAAc,oBACMZ,SAAAA"}