@nordhealth/components 4.16.1 → 4.17.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 +883 -883
- package/lib/{Calendar-CKgiq2S1.js → Calendar-20BBxuFj.js} +2 -2
- package/lib/Calendar-20BBxuFj.js.map +1 -0
- package/lib/Calendar.js +1 -1
- package/lib/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/bundle.js +2 -2
- package/lib/bundle.js.map +1 -1
- package/lib/index.js +1 -1
- package/package.json +4 -4
- package/lib/Calendar-CKgiq2S1.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -873,6 +873,211 @@
|
|
|
873
873
|
}
|
|
874
874
|
]
|
|
875
875
|
},
|
|
876
|
+
{
|
|
877
|
+
"kind": "javascript-module",
|
|
878
|
+
"path": "src/banner/Banner.stories.ts",
|
|
879
|
+
"declarations": [
|
|
880
|
+
{
|
|
881
|
+
"kind": "variable",
|
|
882
|
+
"name": "meta",
|
|
883
|
+
"type": {
|
|
884
|
+
"text": "Meta"
|
|
885
|
+
},
|
|
886
|
+
"default": "{ title: 'Components/Banner', component: 'nord-banner', tags: ['autodocs'], argTypes: { variant: { control: 'select', options: ['info', 'danger', 'success', 'warning'], }, content: { control: 'text' }, }, parameters: { controls: { disable: true } }, }"
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
"kind": "variable",
|
|
890
|
+
"name": "Playground",
|
|
891
|
+
"type": {
|
|
892
|
+
"text": "Story"
|
|
893
|
+
},
|
|
894
|
+
"default": "{ parameters: { controls: { disable: false } }, args: { content: 'This is a banner message.', variant: 'info', }, render: args => html` <nord-banner variant=${args.variant}>${args.content}</nord-banner> `, }"
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"kind": "variable",
|
|
898
|
+
"name": "Basic",
|
|
899
|
+
"type": {
|
|
900
|
+
"text": "Story"
|
|
901
|
+
},
|
|
902
|
+
"default": "{ render: () => html` <nord-stack> <nord-banner variant=\"info\"> We’ve updated your plan, make sure you know how these changes affect it. <a href=\"#\">Learn more</a>. </nord-banner> <nord-banner variant=\"danger\"> We’re experiencing an incident. Please see our <a href=\"#\">status page</a> for more details. </nord-banner> <nord-banner variant=\"warning\"> Payment details missing. To stay on your current plan, <a href=\"#\">add payment details</a>. </nord-banner> <nord-banner variant=\"success\"> Your order has been shipped and will arrive on May 27th. <a href=\"#\">Track order</a>. </nord-banner> </nord-stack> `, }"
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"kind": "variable",
|
|
906
|
+
"name": "InfoBanner",
|
|
907
|
+
"type": {
|
|
908
|
+
"text": "Story"
|
|
909
|
+
},
|
|
910
|
+
"default": "{ render: () => html` <nord-banner> We’ve updated your plan, make sure you know how these changes affect it. <a href=\"#\">Learn more</a>. </nord-banner> `, }"
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"kind": "variable",
|
|
914
|
+
"name": "InsideCard",
|
|
915
|
+
"type": {
|
|
916
|
+
"text": "Story"
|
|
917
|
+
},
|
|
918
|
+
"default": "{ render: () => html` <nord-card> <h2 slot=\"header\">Paid invoices</h2> <nord-stack> <nord-banner variant=\"info\"> We’ve updated your plan, make sure you know how these changes affect it. <a href=\"#\">Learn more</a>. </nord-banner> <nord-banner variant=\"danger\"> We’re experiencing an incident. Please see our <a href=\"#\">status page</a> for more details. </nord-banner> <nord-banner variant=\"warning\"> Payment details missing. To stay on your current plan, <a href=\"#\">add payment details</a>. </nord-banner> <nord-banner variant=\"success\"> Your order has been shipped and will arrive on May 27th. <a href=\"#\">Track order</a>. </nord-banner> </nord-stack> </nord-card> `, }"
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"kind": "variable",
|
|
922
|
+
"name": "NextToButton",
|
|
923
|
+
"type": {
|
|
924
|
+
"text": "Story"
|
|
925
|
+
},
|
|
926
|
+
"default": "{ render: () => html` <nord-stack direction=\"horizontal\" justify-content=\"start\"> <nord-button href=\"#\" variant=\"primary\" size=\"l\">Submit ticket</nord-button> <nord-banner>You need to be logged in with a Nordhealth account to submit tickets.</nord-banner> </nord-stack> `, }"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"kind": "variable",
|
|
930
|
+
"name": "WithForm",
|
|
931
|
+
"type": {
|
|
932
|
+
"text": "Story"
|
|
933
|
+
},
|
|
934
|
+
"default": "{ render: () => html` <nord-stack style=\"max-inline-size: 340px; margin: var(--n-space-xl) auto\"> <nord-banner shadow variant=\"warning\">You’ve been signed out. Please sign in to continue.</nord-banner> <nord-card padding=\"l\"> <h1 slot=\"header\">Sign in to Nord</h1> <form action=\"#\"> <nord-stack> <nord-input label=\"Username\" expand required hide-required name=\"username\" type=\"email\" placeholder=\"user@example.com\" ></nord-input> <nord-input label=\"Password\" expand required hide-required name=\"password\" type=\"password\" placeholder=\"••••••••\" > </nord-input> <nord-button type=\"submit\" expand variant=\"primary\">Sign in</nord-button> </nord-stack> </form> </nord-card> <nord-card class=\"n-align-center\"> New to Nord? <a href=\"#\">Create an account</a>. </nord-card> </nord-stack> `, }"
|
|
935
|
+
}
|
|
936
|
+
],
|
|
937
|
+
"exports": [
|
|
938
|
+
{
|
|
939
|
+
"kind": "js",
|
|
940
|
+
"name": "default",
|
|
941
|
+
"declaration": {
|
|
942
|
+
"name": "meta",
|
|
943
|
+
"module": "src/banner/Banner.stories.ts"
|
|
944
|
+
}
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"kind": "js",
|
|
948
|
+
"name": "Playground",
|
|
949
|
+
"declaration": {
|
|
950
|
+
"name": "Playground",
|
|
951
|
+
"module": "src/banner/Banner.stories.ts"
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"kind": "js",
|
|
956
|
+
"name": "Basic",
|
|
957
|
+
"declaration": {
|
|
958
|
+
"name": "Basic",
|
|
959
|
+
"module": "src/banner/Banner.stories.ts"
|
|
960
|
+
}
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"kind": "js",
|
|
964
|
+
"name": "InfoBanner",
|
|
965
|
+
"declaration": {
|
|
966
|
+
"name": "InfoBanner",
|
|
967
|
+
"module": "src/banner/Banner.stories.ts"
|
|
968
|
+
}
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"kind": "js",
|
|
972
|
+
"name": "InsideCard",
|
|
973
|
+
"declaration": {
|
|
974
|
+
"name": "InsideCard",
|
|
975
|
+
"module": "src/banner/Banner.stories.ts"
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"kind": "js",
|
|
980
|
+
"name": "NextToButton",
|
|
981
|
+
"declaration": {
|
|
982
|
+
"name": "NextToButton",
|
|
983
|
+
"module": "src/banner/Banner.stories.ts"
|
|
984
|
+
}
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
"kind": "js",
|
|
988
|
+
"name": "WithForm",
|
|
989
|
+
"declaration": {
|
|
990
|
+
"name": "WithForm",
|
|
991
|
+
"module": "src/banner/Banner.stories.ts"
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
]
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"kind": "javascript-module",
|
|
998
|
+
"path": "src/banner/Banner.ts",
|
|
999
|
+
"declarations": [
|
|
1000
|
+
{
|
|
1001
|
+
"kind": "class",
|
|
1002
|
+
"description": "Banner informs users about important changes or conditions in the\ninterface. Use this component if you need to communicate to users\nin a prominent way.",
|
|
1003
|
+
"name": "Banner",
|
|
1004
|
+
"cssProperties": [
|
|
1005
|
+
{
|
|
1006
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
1007
|
+
"name": "--n-banner-border-radius",
|
|
1008
|
+
"default": "var(--n-border-radius)"
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1012
|
+
"name": "--n-banner-box-shadow",
|
|
1013
|
+
"default": "var(--n-box-shadow-card)"
|
|
1014
|
+
}
|
|
1015
|
+
],
|
|
1016
|
+
"slots": [
|
|
1017
|
+
{
|
|
1018
|
+
"description": "default slot",
|
|
1019
|
+
"name": ""
|
|
1020
|
+
}
|
|
1021
|
+
],
|
|
1022
|
+
"members": [
|
|
1023
|
+
{
|
|
1024
|
+
"kind": "field",
|
|
1025
|
+
"name": "variant",
|
|
1026
|
+
"type": {
|
|
1027
|
+
"text": "'info' | 'danger' | 'success' | 'warning'"
|
|
1028
|
+
},
|
|
1029
|
+
"default": "'info'",
|
|
1030
|
+
"description": "The style variant of the banner.",
|
|
1031
|
+
"attribute": "variant",
|
|
1032
|
+
"reflects": true
|
|
1033
|
+
}
|
|
1034
|
+
],
|
|
1035
|
+
"attributes": [
|
|
1036
|
+
{
|
|
1037
|
+
"name": "variant",
|
|
1038
|
+
"type": {
|
|
1039
|
+
"text": "'info' | 'danger' | 'success' | 'warning'"
|
|
1040
|
+
},
|
|
1041
|
+
"default": "'info'",
|
|
1042
|
+
"description": "The style variant of the banner.",
|
|
1043
|
+
"fieldName": "variant"
|
|
1044
|
+
}
|
|
1045
|
+
],
|
|
1046
|
+
"superclass": {
|
|
1047
|
+
"name": "LitElement",
|
|
1048
|
+
"package": "lit"
|
|
1049
|
+
},
|
|
1050
|
+
"localization": [],
|
|
1051
|
+
"status": "ready",
|
|
1052
|
+
"category": "feedback",
|
|
1053
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use this component if you need to communicate in a prominent way.\n- Place banner at the top of the section it applies to.\n- Use for highlighting errors and success statuses.\n- Put banner close to the context it’s referring to.\n- Move focus to the banner if it’s relevant to the current workflow.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Move focus to banner if it appears on page load.\n- Use for highlighting general content or as a banner.\n- Use to replace an error page.\n\n</div>\n\n---\n\n## Content guidelines\n\nBanner content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident. Please see our status page for more details.</div>\n<div class=\"n-usage n-usage-dont\">There was an error.</div>\n\nWhen writing banner content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re Experiencing An Incident.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re experiencing an incident</div>\n",
|
|
1054
|
+
"examples": [],
|
|
1055
|
+
"dependencies": [
|
|
1056
|
+
"icon"
|
|
1057
|
+
],
|
|
1058
|
+
"tagName": "nord-banner",
|
|
1059
|
+
"customElement": true
|
|
1060
|
+
}
|
|
1061
|
+
],
|
|
1062
|
+
"exports": [
|
|
1063
|
+
{
|
|
1064
|
+
"kind": "js",
|
|
1065
|
+
"name": "default",
|
|
1066
|
+
"declaration": {
|
|
1067
|
+
"name": "Banner",
|
|
1068
|
+
"module": "src/banner/Banner.ts"
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
"kind": "custom-element-definition",
|
|
1073
|
+
"name": "nord-banner",
|
|
1074
|
+
"declaration": {
|
|
1075
|
+
"name": "Banner",
|
|
1076
|
+
"module": "src/banner/Banner.ts"
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
]
|
|
1080
|
+
},
|
|
876
1081
|
{
|
|
877
1082
|
"kind": "javascript-module",
|
|
878
1083
|
"path": "src/badge/Badge.stories.ts",
|
|
@@ -1160,7 +1365,7 @@
|
|
|
1160
1365
|
},
|
|
1161
1366
|
{
|
|
1162
1367
|
"kind": "javascript-module",
|
|
1163
|
-
"path": "src/
|
|
1368
|
+
"path": "src/button/Button.stories.ts",
|
|
1164
1369
|
"declarations": [
|
|
1165
1370
|
{
|
|
1166
1371
|
"kind": "variable",
|
|
@@ -1168,7 +1373,7 @@
|
|
|
1168
1373
|
"type": {
|
|
1169
1374
|
"text": "Meta"
|
|
1170
1375
|
},
|
|
1171
|
-
"default": "{ title: 'Components/
|
|
1376
|
+
"default": "{ title: 'Components/Button', component: 'nord-button', tags: ['autodocs'], argTypes: { variant: { control: 'select', options: ['default', 'primary', 'dashed', 'plain', 'danger'], }, size: { control: 'select', options: ['s', 'm', 'l'], }, href: { control: 'text' }, download: { control: 'boolean' }, target: { control: 'select', options: ['_self', '_blank', '_parent', '_top'], }, expand: { control: 'boolean' }, square: { control: 'boolean' }, loading: { control: 'boolean' }, hideDropdownIcon: { control: 'boolean' }, disabled: { control: 'boolean' }, name: { control: 'text' }, value: { control: 'text' }, content: { control: 'text' }, }, parameters: { controls: { disable: true } }, }"
|
|
1172
1377
|
},
|
|
1173
1378
|
{
|
|
1174
1379
|
"kind": "variable",
|
|
@@ -1176,260 +1381,55 @@
|
|
|
1176
1381
|
"type": {
|
|
1177
1382
|
"text": "Story"
|
|
1178
1383
|
},
|
|
1179
|
-
"default": "{ parameters: { controls: { disable: false } }, args: { content: '
|
|
1384
|
+
"default": "{ parameters: { controls: { disable: false } }, args: { content: 'Button', variant: 'default', size: 'm', download: false, target: '_self', expand: false, square: false, loading: false, hideDropdownIcon: false, disabled: false, }, render: args => html` <nord-button variant=${args.variant} size=${args.size} href=${args.href || nothing} ?download=${args.download} target=${args.target} ?expand=${args.expand} ?square=${args.square} ?loading=${args.loading} ?hide-dropdown-icon=${args.hideDropdownIcon} ?disabled=${args.disabled} name=${args.name || nothing} value=${args.value || nothing}>${args.content}</nord-button> `, }"
|
|
1180
1385
|
},
|
|
1181
1386
|
{
|
|
1182
1387
|
"kind": "variable",
|
|
1183
|
-
"name": "
|
|
1388
|
+
"name": "ButtonAsLink",
|
|
1184
1389
|
"type": {
|
|
1185
1390
|
"text": "Story"
|
|
1186
1391
|
},
|
|
1187
|
-
"default": "{ render: () => html` <nord-stack
|
|
1392
|
+
"default": "{ render: () => html` <nord-stack gap=\"s\" direction=\"horizontal\" wrap> <nord-button href=\"#\">Default</nord-button> <nord-button href=\"#\" variant=\"primary\">Primary</nord-button> <nord-button href=\"#\" variant=\"danger\">Danger</nord-button> <nord-button href=\"#\" variant=\"dashed\"> <nord-icon slot=\"start\" name=\"interface-filter\"></nord-icon> Filter </nord-button> <nord-button href=\"#\" square> <nord-icon name=\"interface-menu-small\" label=\"Options\"></nord-icon> </nord-button> <nord-button href=\"#\" variant=\"plain\">Plain</nord-button> <nord-button href=\"#\" disabled>Disabled</nord-button> </nord-stack> `, }"
|
|
1188
1393
|
},
|
|
1189
1394
|
{
|
|
1190
1395
|
"kind": "variable",
|
|
1191
|
-
"name": "
|
|
1396
|
+
"name": "ButtonWithDropdownButHideIcon",
|
|
1192
1397
|
"type": {
|
|
1193
1398
|
"text": "Story"
|
|
1194
1399
|
},
|
|
1195
|
-
"default": "{ render: () => html` <nord-
|
|
1400
|
+
"default": "{ render: () => html` <nord-stack direction=\"horizontal\"> <nord-dropdown size=\"s\"> <nord-button variant=\"primary\" slot=\"toggle\" hide-dropdown-icon> Create new </nord-button> <nord-dropdown-item>Patient record</nord-dropdown-item> <nord-dropdown-item>User record</nord-dropdown-item> </nord-dropdown> </nord-stack> `, }"
|
|
1196
1401
|
},
|
|
1197
1402
|
{
|
|
1198
1403
|
"kind": "variable",
|
|
1199
|
-
"name": "
|
|
1404
|
+
"name": "ButtonWithDropdown",
|
|
1200
1405
|
"type": {
|
|
1201
1406
|
"text": "Story"
|
|
1202
1407
|
},
|
|
1203
|
-
"default": "{ render: () => html` <nord-
|
|
1408
|
+
"default": "{ render: () => html` <nord-stack direction=\"horizontal\"> <nord-dropdown size=\"s\"> <nord-button variant=\"primary\" slot=\"toggle\"> Create new </nord-button> <nord-dropdown-item>Patient record</nord-dropdown-item> <nord-dropdown-item>User record</nord-dropdown-item> </nord-dropdown> </nord-stack> `, }"
|
|
1204
1409
|
},
|
|
1205
1410
|
{
|
|
1206
1411
|
"kind": "variable",
|
|
1207
|
-
"name": "
|
|
1412
|
+
"name": "CustomBackground",
|
|
1208
1413
|
"type": {
|
|
1209
1414
|
"text": "Story"
|
|
1210
1415
|
},
|
|
1211
|
-
"default": "{ render: () => html` <nord-stack
|
|
1416
|
+
"default": "{ render: () => html` <nord-stack gap=\"s\" direction=\"horizontal\" wrap> <nord-button style=\"--n-button-background-color: var(--n-color-status-success)\" variant=\"primary\"> Primary </nord-button> <nord-button style=\"--n-button-background-color: var(--n-color-status-success-weak)\">Default</nord-button> <nord-button style=\"--n-button-background-color: var(--n-color-status-success-weak)\" variant=\"plain\"> Plain </nord-button> </nord-stack> `, }"
|
|
1212
1417
|
},
|
|
1213
1418
|
{
|
|
1214
1419
|
"kind": "variable",
|
|
1215
|
-
"name": "
|
|
1420
|
+
"name": "Disabled",
|
|
1216
1421
|
"type": {
|
|
1217
1422
|
"text": "Story"
|
|
1218
1423
|
},
|
|
1219
|
-
"default": "{ render: () => html
|
|
1220
|
-
}
|
|
1221
|
-
],
|
|
1222
|
-
"exports": [
|
|
1223
|
-
{
|
|
1224
|
-
"kind": "js",
|
|
1225
|
-
"name": "default",
|
|
1226
|
-
"declaration": {
|
|
1227
|
-
"name": "meta",
|
|
1228
|
-
"module": "src/banner/Banner.stories.ts"
|
|
1229
|
-
}
|
|
1424
|
+
"default": "{ render: () => html`<nord-button disabled>Disabled</nord-button>`, }"
|
|
1230
1425
|
},
|
|
1231
1426
|
{
|
|
1232
|
-
"kind": "
|
|
1233
|
-
"name": "
|
|
1234
|
-
"
|
|
1235
|
-
"
|
|
1236
|
-
|
|
1237
|
-
}
|
|
1238
|
-
},
|
|
1239
|
-
{
|
|
1240
|
-
"kind": "js",
|
|
1241
|
-
"name": "Basic",
|
|
1242
|
-
"declaration": {
|
|
1243
|
-
"name": "Basic",
|
|
1244
|
-
"module": "src/banner/Banner.stories.ts"
|
|
1245
|
-
}
|
|
1246
|
-
},
|
|
1247
|
-
{
|
|
1248
|
-
"kind": "js",
|
|
1249
|
-
"name": "InfoBanner",
|
|
1250
|
-
"declaration": {
|
|
1251
|
-
"name": "InfoBanner",
|
|
1252
|
-
"module": "src/banner/Banner.stories.ts"
|
|
1253
|
-
}
|
|
1254
|
-
},
|
|
1255
|
-
{
|
|
1256
|
-
"kind": "js",
|
|
1257
|
-
"name": "InsideCard",
|
|
1258
|
-
"declaration": {
|
|
1259
|
-
"name": "InsideCard",
|
|
1260
|
-
"module": "src/banner/Banner.stories.ts"
|
|
1261
|
-
}
|
|
1262
|
-
},
|
|
1263
|
-
{
|
|
1264
|
-
"kind": "js",
|
|
1265
|
-
"name": "NextToButton",
|
|
1266
|
-
"declaration": {
|
|
1267
|
-
"name": "NextToButton",
|
|
1268
|
-
"module": "src/banner/Banner.stories.ts"
|
|
1269
|
-
}
|
|
1270
|
-
},
|
|
1271
|
-
{
|
|
1272
|
-
"kind": "js",
|
|
1273
|
-
"name": "WithForm",
|
|
1274
|
-
"declaration": {
|
|
1275
|
-
"name": "WithForm",
|
|
1276
|
-
"module": "src/banner/Banner.stories.ts"
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
]
|
|
1280
|
-
},
|
|
1281
|
-
{
|
|
1282
|
-
"kind": "javascript-module",
|
|
1283
|
-
"path": "src/banner/Banner.ts",
|
|
1284
|
-
"declarations": [
|
|
1285
|
-
{
|
|
1286
|
-
"kind": "class",
|
|
1287
|
-
"description": "Banner informs users about important changes or conditions in the\ninterface. Use this component if you need to communicate to users\nin a prominent way.",
|
|
1288
|
-
"name": "Banner",
|
|
1289
|
-
"cssProperties": [
|
|
1290
|
-
{
|
|
1291
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
1292
|
-
"name": "--n-banner-border-radius",
|
|
1293
|
-
"default": "var(--n-border-radius)"
|
|
1294
|
-
},
|
|
1295
|
-
{
|
|
1296
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1297
|
-
"name": "--n-banner-box-shadow",
|
|
1298
|
-
"default": "var(--n-box-shadow-card)"
|
|
1299
|
-
}
|
|
1300
|
-
],
|
|
1301
|
-
"slots": [
|
|
1302
|
-
{
|
|
1303
|
-
"description": "default slot",
|
|
1304
|
-
"name": ""
|
|
1305
|
-
}
|
|
1306
|
-
],
|
|
1307
|
-
"members": [
|
|
1308
|
-
{
|
|
1309
|
-
"kind": "field",
|
|
1310
|
-
"name": "variant",
|
|
1311
|
-
"type": {
|
|
1312
|
-
"text": "'info' | 'danger' | 'success' | 'warning'"
|
|
1313
|
-
},
|
|
1314
|
-
"default": "'info'",
|
|
1315
|
-
"description": "The style variant of the banner.",
|
|
1316
|
-
"attribute": "variant",
|
|
1317
|
-
"reflects": true
|
|
1318
|
-
}
|
|
1319
|
-
],
|
|
1320
|
-
"attributes": [
|
|
1321
|
-
{
|
|
1322
|
-
"name": "variant",
|
|
1323
|
-
"type": {
|
|
1324
|
-
"text": "'info' | 'danger' | 'success' | 'warning'"
|
|
1325
|
-
},
|
|
1326
|
-
"default": "'info'",
|
|
1327
|
-
"description": "The style variant of the banner.",
|
|
1328
|
-
"fieldName": "variant"
|
|
1329
|
-
}
|
|
1330
|
-
],
|
|
1331
|
-
"superclass": {
|
|
1332
|
-
"name": "LitElement",
|
|
1333
|
-
"package": "lit"
|
|
1334
|
-
},
|
|
1335
|
-
"localization": [],
|
|
1336
|
-
"status": "ready",
|
|
1337
|
-
"category": "feedback",
|
|
1338
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use this component if you need to communicate in a prominent way.\n- Place banner at the top of the section it applies to.\n- Use for highlighting errors and success statuses.\n- Put banner close to the context it’s referring to.\n- Move focus to the banner if it’s relevant to the current workflow.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Move focus to banner if it appears on page load.\n- Use for highlighting general content or as a banner.\n- Use to replace an error page.\n\n</div>\n\n---\n\n## Content guidelines\n\nBanner content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident. Please see our status page for more details.</div>\n<div class=\"n-usage n-usage-dont\">There was an error.</div>\n\nWhen writing banner content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re Experiencing An Incident.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re experiencing an incident</div>\n",
|
|
1339
|
-
"examples": [],
|
|
1340
|
-
"dependencies": [
|
|
1341
|
-
"icon"
|
|
1342
|
-
],
|
|
1343
|
-
"tagName": "nord-banner",
|
|
1344
|
-
"customElement": true
|
|
1345
|
-
}
|
|
1346
|
-
],
|
|
1347
|
-
"exports": [
|
|
1348
|
-
{
|
|
1349
|
-
"kind": "js",
|
|
1350
|
-
"name": "default",
|
|
1351
|
-
"declaration": {
|
|
1352
|
-
"name": "Banner",
|
|
1353
|
-
"module": "src/banner/Banner.ts"
|
|
1354
|
-
}
|
|
1355
|
-
},
|
|
1356
|
-
{
|
|
1357
|
-
"kind": "custom-element-definition",
|
|
1358
|
-
"name": "nord-banner",
|
|
1359
|
-
"declaration": {
|
|
1360
|
-
"name": "Banner",
|
|
1361
|
-
"module": "src/banner/Banner.ts"
|
|
1362
|
-
}
|
|
1363
|
-
}
|
|
1364
|
-
]
|
|
1365
|
-
},
|
|
1366
|
-
{
|
|
1367
|
-
"kind": "javascript-module",
|
|
1368
|
-
"path": "src/button/Button.stories.ts",
|
|
1369
|
-
"declarations": [
|
|
1370
|
-
{
|
|
1371
|
-
"kind": "variable",
|
|
1372
|
-
"name": "meta",
|
|
1373
|
-
"type": {
|
|
1374
|
-
"text": "Meta"
|
|
1375
|
-
},
|
|
1376
|
-
"default": "{ title: 'Components/Button', component: 'nord-button', tags: ['autodocs'], argTypes: { variant: { control: 'select', options: ['default', 'primary', 'dashed', 'plain', 'danger'], }, size: { control: 'select', options: ['s', 'm', 'l'], }, href: { control: 'text' }, download: { control: 'boolean' }, target: { control: 'select', options: ['_self', '_blank', '_parent', '_top'], }, expand: { control: 'boolean' }, square: { control: 'boolean' }, loading: { control: 'boolean' }, hideDropdownIcon: { control: 'boolean' }, disabled: { control: 'boolean' }, name: { control: 'text' }, value: { control: 'text' }, content: { control: 'text' }, }, parameters: { controls: { disable: true } }, }"
|
|
1377
|
-
},
|
|
1378
|
-
{
|
|
1379
|
-
"kind": "variable",
|
|
1380
|
-
"name": "Playground",
|
|
1381
|
-
"type": {
|
|
1382
|
-
"text": "Story"
|
|
1383
|
-
},
|
|
1384
|
-
"default": "{ parameters: { controls: { disable: false } }, args: { content: 'Button', variant: 'default', size: 'm', download: false, target: '_self', expand: false, square: false, loading: false, hideDropdownIcon: false, disabled: false, }, render: args => html` <nord-button variant=${args.variant} size=${args.size} href=${args.href || nothing} ?download=${args.download} target=${args.target} ?expand=${args.expand} ?square=${args.square} ?loading=${args.loading} ?hide-dropdown-icon=${args.hideDropdownIcon} ?disabled=${args.disabled} name=${args.name || nothing} value=${args.value || nothing}>${args.content}</nord-button> `, }"
|
|
1385
|
-
},
|
|
1386
|
-
{
|
|
1387
|
-
"kind": "variable",
|
|
1388
|
-
"name": "ButtonAsLink",
|
|
1389
|
-
"type": {
|
|
1390
|
-
"text": "Story"
|
|
1391
|
-
},
|
|
1392
|
-
"default": "{ render: () => html` <nord-stack gap=\"s\" direction=\"horizontal\" wrap> <nord-button href=\"#\">Default</nord-button> <nord-button href=\"#\" variant=\"primary\">Primary</nord-button> <nord-button href=\"#\" variant=\"danger\">Danger</nord-button> <nord-button href=\"#\" variant=\"dashed\"> <nord-icon slot=\"start\" name=\"interface-filter\"></nord-icon> Filter </nord-button> <nord-button href=\"#\" square> <nord-icon name=\"interface-menu-small\" label=\"Options\"></nord-icon> </nord-button> <nord-button href=\"#\" variant=\"plain\">Plain</nord-button> <nord-button href=\"#\" disabled>Disabled</nord-button> </nord-stack> `, }"
|
|
1393
|
-
},
|
|
1394
|
-
{
|
|
1395
|
-
"kind": "variable",
|
|
1396
|
-
"name": "ButtonWithDropdownButHideIcon",
|
|
1397
|
-
"type": {
|
|
1398
|
-
"text": "Story"
|
|
1399
|
-
},
|
|
1400
|
-
"default": "{ render: () => html` <nord-stack direction=\"horizontal\"> <nord-dropdown size=\"s\"> <nord-button variant=\"primary\" slot=\"toggle\" hide-dropdown-icon> Create new </nord-button> <nord-dropdown-item>Patient record</nord-dropdown-item> <nord-dropdown-item>User record</nord-dropdown-item> </nord-dropdown> </nord-stack> `, }"
|
|
1401
|
-
},
|
|
1402
|
-
{
|
|
1403
|
-
"kind": "variable",
|
|
1404
|
-
"name": "ButtonWithDropdown",
|
|
1405
|
-
"type": {
|
|
1406
|
-
"text": "Story"
|
|
1407
|
-
},
|
|
1408
|
-
"default": "{ render: () => html` <nord-stack direction=\"horizontal\"> <nord-dropdown size=\"s\"> <nord-button variant=\"primary\" slot=\"toggle\"> Create new </nord-button> <nord-dropdown-item>Patient record</nord-dropdown-item> <nord-dropdown-item>User record</nord-dropdown-item> </nord-dropdown> </nord-stack> `, }"
|
|
1409
|
-
},
|
|
1410
|
-
{
|
|
1411
|
-
"kind": "variable",
|
|
1412
|
-
"name": "CustomBackground",
|
|
1413
|
-
"type": {
|
|
1414
|
-
"text": "Story"
|
|
1415
|
-
},
|
|
1416
|
-
"default": "{ render: () => html` <nord-stack gap=\"s\" direction=\"horizontal\" wrap> <nord-button style=\"--n-button-background-color: var(--n-color-status-success)\" variant=\"primary\"> Primary </nord-button> <nord-button style=\"--n-button-background-color: var(--n-color-status-success-weak)\">Default</nord-button> <nord-button style=\"--n-button-background-color: var(--n-color-status-success-weak)\" variant=\"plain\"> Plain </nord-button> </nord-stack> `, }"
|
|
1417
|
-
},
|
|
1418
|
-
{
|
|
1419
|
-
"kind": "variable",
|
|
1420
|
-
"name": "Disabled",
|
|
1421
|
-
"type": {
|
|
1422
|
-
"text": "Story"
|
|
1423
|
-
},
|
|
1424
|
-
"default": "{ render: () => html`<nord-button disabled>Disabled</nord-button>`, }"
|
|
1425
|
-
},
|
|
1426
|
-
{
|
|
1427
|
-
"kind": "variable",
|
|
1428
|
-
"name": "Expanded",
|
|
1429
|
-
"type": {
|
|
1430
|
-
"text": "Story"
|
|
1431
|
-
},
|
|
1432
|
-
"default": "{ render: () => html` <nord-stack direction=\"vertical\" gap=\"s\"> <nord-button expand>Default</nord-button> <nord-button variant=\"primary\" expand>Primary</nord-button> <nord-button variant=\"danger\" expand>Danger</nord-button> <nord-button variant=\"dashed\" expand>Filter</nord-button> <nord-button variant=\"plain\" expand>Plain</nord-button> <nord-button disabled expand>Disabled</nord-button> </nord-stack> `, }"
|
|
1427
|
+
"kind": "variable",
|
|
1428
|
+
"name": "Expanded",
|
|
1429
|
+
"type": {
|
|
1430
|
+
"text": "Story"
|
|
1431
|
+
},
|
|
1432
|
+
"default": "{ render: () => html` <nord-stack direction=\"vertical\" gap=\"s\"> <nord-button expand>Default</nord-button> <nord-button variant=\"primary\" expand>Primary</nord-button> <nord-button variant=\"danger\" expand>Danger</nord-button> <nord-button variant=\"dashed\" expand>Filter</nord-button> <nord-button variant=\"plain\" expand>Plain</nord-button> <nord-button disabled expand>Disabled</nord-button> </nord-stack> `, }"
|
|
1433
1433
|
},
|
|
1434
1434
|
{
|
|
1435
1435
|
"kind": "variable",
|
|
@@ -2560,7 +2560,7 @@
|
|
|
2560
2560
|
},
|
|
2561
2561
|
{
|
|
2562
2562
|
"kind": "javascript-module",
|
|
2563
|
-
"path": "src/
|
|
2563
|
+
"path": "src/card/Card.stories.ts",
|
|
2564
2564
|
"declarations": [
|
|
2565
2565
|
{
|
|
2566
2566
|
"kind": "variable",
|
|
@@ -2568,7 +2568,7 @@
|
|
|
2568
2568
|
"type": {
|
|
2569
2569
|
"text": "Meta"
|
|
2570
2570
|
},
|
|
2571
|
-
"default": "{ title: 'Components/
|
|
2571
|
+
"default": "{ title: 'Components/Card', component: 'nord-card', tags: ['autodocs'], argTypes: { padding: { control: 'select', options: ['m', 'l', 'none'], }, footerDivider: { control: 'boolean' }, content: { control: 'text' }, }, parameters: { controls: { disable: true } }, }"
|
|
2572
2572
|
},
|
|
2573
2573
|
{
|
|
2574
2574
|
"kind": "variable",
|
|
@@ -2576,7 +2576,7 @@
|
|
|
2576
2576
|
"type": {
|
|
2577
2577
|
"text": "Story"
|
|
2578
2578
|
},
|
|
2579
|
-
"default": "{ parameters: { controls: { disable: false } }, args: {
|
|
2579
|
+
"default": "{ parameters: { controls: { disable: false } }, args: { content: 'Card content goes here.', padding: 'm', footerDivider: false, }, render: args => html` <nord-card padding=${args.padding} ?footer-divider=${args.footerDivider}>${args.content}</nord-card> `, }"
|
|
2580
2580
|
},
|
|
2581
2581
|
{
|
|
2582
2582
|
"kind": "variable",
|
|
@@ -2584,71 +2584,95 @@
|
|
|
2584
2584
|
"type": {
|
|
2585
2585
|
"text": "Story"
|
|
2586
2586
|
},
|
|
2587
|
-
"default": "{ render: () => html
|
|
2587
|
+
"default": "{ render: () => html` <nord-card> Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nulla provident aliquid corporis tempora eius quam, quae vel molestias esse maxime aperiam totam suscipit. Nobis consectetur optio reprehenderit animi? Suscipit, quibusdam? </nord-card> `, }"
|
|
2588
2588
|
},
|
|
2589
2589
|
{
|
|
2590
2590
|
"kind": "variable",
|
|
2591
|
-
"name": "
|
|
2591
|
+
"name": "Padding",
|
|
2592
2592
|
"type": {
|
|
2593
2593
|
"text": "Story"
|
|
2594
2594
|
},
|
|
2595
|
-
"default": "{ render: () => html
|
|
2595
|
+
"default": "{ render: () => html` <nord-stack> <nord-card padding=\"none\"> Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nulla provident aliquid corporis tempora eius quam, quae vel molestias esse maxime aperiam totam suscipit. Nobis consectetur optio reprehenderit animi? Suscipit, quibusdam? </nord-card> <nord-card padding=\"m\"> Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nulla provident aliquid corporis tempora eius quam, quae vel molestias esse maxime aperiam totam suscipit. Nobis consectetur optio reprehenderit animi? Suscipit, quibusdam? </nord-card> <nord-card padding=\"l\"> Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nulla provident aliquid corporis tempora eius quam, quae vel molestias esse maxime aperiam totam suscipit. Nobis consectetur optio reprehenderit animi? Suscipit, quibusdam? </nord-card> </nord-stack> `, }"
|
|
2596
2596
|
},
|
|
2597
2597
|
{
|
|
2598
2598
|
"kind": "variable",
|
|
2599
|
-
"name": "
|
|
2599
|
+
"name": "ResponsiveCardLayout",
|
|
2600
2600
|
"type": {
|
|
2601
2601
|
"text": "Story"
|
|
2602
2602
|
},
|
|
2603
|
-
"default": "{ render: () => html
|
|
2603
|
+
"default": "{ render: () => html` <style>@media (max-width: 768px) { .stack { flex-direction: column; } }</style> <nord-stack class=\"stack\" direction=\"horizontal\" gap=\"l\"> <nord-card padding=\"l\"> <h2 slot=\"header\">Account overview</h2> <nord-stack direction=\"horizontal\"> <nord-stack gap=\"l\"> <p> View all saved data on your Nordhealth account and choose what activity is kept to personalize your experience. </p> <nord-button variant=\"primary\">Manage your account</nord-button> </nord-stack> </nord-stack> </nord-card> <nord-card padding=\"l\"> <h2 slot=\"header\">Security checkup</h2> <nord-stack direction=\"horizontal\"> <nord-stack gap=\"l\"> <p>Our Security Checkup analyzed your account and data. We found no recommended actions this time.</p> <nord-button variant=\"primary\">Manage security</nord-button> </nord-stack> </nord-stack> </nord-card> </nord-stack> `, }"
|
|
2604
2604
|
},
|
|
2605
2605
|
{
|
|
2606
2606
|
"kind": "variable",
|
|
2607
|
-
"name": "
|
|
2607
|
+
"name": "WithAlignedFooters",
|
|
2608
2608
|
"type": {
|
|
2609
2609
|
"text": "Story"
|
|
2610
2610
|
},
|
|
2611
|
-
"default": "{ render: () =>
|
|
2611
|
+
"default": "{ render: () => html` <nord-stack direction=\"horizontal\"> <nord-card footer-divider> Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nulla provident aliquid corporis tempora eius quam, quae vel molestias esse maxime aperiam totam suscipit. <div slot=\"footer\"> <p class=\"n-typescale-m\">Footer content</p> </div> </nord-card> <nord-card footer-divider> Lorem ipsum, dolor sit amet consectetur adipisicing elit. <div slot=\"footer\"> <p class=\"n-typescale-m\">Footer content</p> </div> </nord-card> <nord-card footer-divider> Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nulla provident aliquid corporis tempora eius quam, quae vel molestias esse maxime aperiam totam suscipit. Nobis consectetur optio reprehenderit animi? Suscipit, quibusdam? <div slot=\"footer\"> <p class=\"n-typescale-m\">Footer content</p> </div> </nord-card> </nord-stack> `, }"
|
|
2612
2612
|
},
|
|
2613
2613
|
{
|
|
2614
2614
|
"kind": "variable",
|
|
2615
|
-
"name": "
|
|
2615
|
+
"name": "WithCustomHeader",
|
|
2616
2616
|
"type": {
|
|
2617
2617
|
"text": "Story"
|
|
2618
2618
|
},
|
|
2619
|
-
"default": "{ render: () => html
|
|
2619
|
+
"default": "{ render: () => html` <style>nord-card { --n-card-header-background: var(--n-color-surface-raised); }</style> <nord-card padding=\"m\"> <h2 slot=\"header\">Header content</h2> Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nulla provident aliquid corporis tempora eius quam, quae vel molestias esse maxime aperiam totam suscipit. Nobis consectetur optio reprehenderit animi? Suscipit, quibusdam? </nord-card> `, }"
|
|
2620
2620
|
},
|
|
2621
2621
|
{
|
|
2622
2622
|
"kind": "variable",
|
|
2623
|
-
"name": "
|
|
2623
|
+
"name": "WithForm",
|
|
2624
2624
|
"type": {
|
|
2625
2625
|
"text": "Story"
|
|
2626
2626
|
},
|
|
2627
|
-
"default": "{ render: () =>
|
|
2627
|
+
"default": "{ render: () => html` <nord-stack style=\"max-inline-size: 340px; margin: var(--n-space-xl) auto\"> <nord-banner shadow variant=\"warning\">You’ve been signed out. Please sign in to continue.</nord-banner> <nord-card padding=\"l\"> <h1 slot=\"header\">Sign in to Nord</h1> <form action=\"#\"> <nord-stack> <nord-input label=\"Username\" expand required hide-required name=\"username\" type=\"email\" placeholder=\"user@example.com\" ></nord-input> <nord-input label=\"Password\" expand required hide-required name=\"password\" type=\"password\" placeholder=\"••••••••\" > </nord-input> <nord-button type=\"submit\" expand variant=\"primary\">Sign in</nord-button> </nord-stack> </form> </nord-card> <nord-card class=\"n-align-center\"> New to Nord? <a href=\"#\">Create an account</a>. </nord-card> </nord-stack> `, }"
|
|
2628
2628
|
},
|
|
2629
2629
|
{
|
|
2630
2630
|
"kind": "variable",
|
|
2631
|
-
"name": "
|
|
2631
|
+
"name": "WithHeaderActions",
|
|
2632
2632
|
"type": {
|
|
2633
2633
|
"text": "Story"
|
|
2634
2634
|
},
|
|
2635
|
-
"default": "{ render: () =>
|
|
2635
|
+
"default": "{ render: () => html` <nord-card padding=\"none\"> <h2 slot=\"header\">Your items</h2> <div slot=\"header-end\"> <nord-input size=\"s\" label=\"Search\" hide-label placeholder=\"Item name\" type=\"search\"></nord-input> <nord-select hide-label size=\"s\" label=\"Filter by state\" placeholder=\"Please select\"> <nord-icon slot=\"icon\" name=\"interface-filter\"></nord-icon> <option value=\"active\">Active</option> <option value=\"archived\">Archived</option> </nord-select> <nord-select hide-label size=\"s\" label=\"Sort\" placeholder=\"Please select\"> <nord-icon slot=\"icon\" name=\"arrow-up-down-long\"></nord-icon> <option>Creation date</option> <option>Last modified date</option> </nord-select> </div> <nord-table> <table> <thead> <tr> <th class=\"n-table-align-right\">ID</th> <th>Name</th> <th>Description</th> <th>State</th> <th class=\"n-table-align-right\">Creation date</th> <th class=\"n-table-align-right\">Last modified date</th> </tr> </thead> <tbody> <tr> <td class=\"n-table-align-right\">01</td> <td>Item name 1</td> <td class=\"n-caption\">Lorem ipsum dolor sit amet consectetur adipisicing elit. Adipisci, necessitatibus!</td> <td> <nord-badge variant=\"success\">Active</nord-badge> </td> <td class=\"n-caption n-table-align-right\">20.3.2020</td> <td class=\"n-caption n-table-align-right\">20.3.2021</td> </tr> <tr> <td class=\"n-table-align-right\">02</td> <td>Item name 2</td> <td class=\"n-caption\">Lorem ipsum dolor sit amet consectetur adipisicing elit. Adipisci, necessitatibus!</td> <td> <nord-badge variant=\"warning\">Archived</nord-badge> </td> <td class=\"n-caption n-table-align-right\">19.3.2020</td> <td class=\"n-caption n-table-align-right\">19.3.2021</td> </tr> <tr> <td class=\"n-table-align-right\">03</td> <td>Item name 3</td> <td class=\"n-caption\">Lorem ipsum dolor sit amet consectetur adipisicing elit. Adipisci, necessitatibus!</td> <td> <nord-badge variant=\"success\">Active</nord-badge> </td> <td class=\"n-caption n-table-align-right\">18.3.2020</td> <td class=\"n-caption n-table-align-right\">18.3.2021</td> </tr> <tr> <td class=\"n-table-align-right\">04</td> <td>Item name 4</td> <td class=\"n-caption\">Lorem ipsum dolor sit amet consectetur adipisicing elit. Adipisci, necessitatibus!</td> <td> <nord-badge variant=\"success\">Active</nord-badge> </td> <td class=\"n-caption n-table-align-right\">17.3.2020</td> <td class=\"n-caption n-table-align-right\">17.3.2021</td> </tr> <tr> <td class=\"n-table-align-right\">05</td> <td>Item name 5</td> <td class=\"n-caption\">Lorem ipsum dolor sit amet consectetur adipisicing elit. Adipisci, necessitatibus!</td> <td> <nord-badge variant=\"warning\">Archived</nord-badge> </td> <td class=\"n-caption n-table-align-right\">16.3.2020</td> <td class=\"n-caption n-table-align-right\">16.3.2021</td> </tr> </tbody> </table> </nord-table> </nord-card> `, }"
|
|
2636
2636
|
},
|
|
2637
2637
|
{
|
|
2638
2638
|
"kind": "variable",
|
|
2639
|
-
"name": "
|
|
2639
|
+
"name": "WithHeaderAndFooter",
|
|
2640
2640
|
"type": {
|
|
2641
2641
|
"text": "Story"
|
|
2642
2642
|
},
|
|
2643
|
-
"default": "{ render: () => html
|
|
2643
|
+
"default": "{ render: () => html` <nord-card padding=\"m\"> <h2 slot=\"header\">Header content</h2> Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nulla provident aliquid corporis tempora eius quam, quae vel molestias esse maxime aperiam totam suscipit. Nobis consectetur optio reprehenderit animi? Suscipit, quibusdam? <div slot=\"footer\">Footer content</div> </nord-card> `, }"
|
|
2644
2644
|
},
|
|
2645
2645
|
{
|
|
2646
2646
|
"kind": "variable",
|
|
2647
|
-
"name": "
|
|
2647
|
+
"name": "WithScrollableContent",
|
|
2648
2648
|
"type": {
|
|
2649
2649
|
"text": "Story"
|
|
2650
2650
|
},
|
|
2651
|
-
"default": "{ render: () => html` <nord-
|
|
2651
|
+
"default": "{ render: () => html` <style>.content { padding: var(--n-space-m); max-block-size: 200px; overflow-x: auto; }</style> <nord-stack style=\"max-inline-size: 340px; margin: var(--n-space-l) auto\"> <nord-card padding=\"none\"> <h2 slot=\"header\">Header content</h2> <div class=\"content\"> Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nulla provident aliquid corporis tempora eius quam, quae vel molestias esse maxime aperiam totam suscipit. Nobis consectetur optio reprehenderit animi? Suscipit, quibusdam? Vivamus non tincidunt lacus. Vestibulum et vestibulum turpis, non elementum justo. Cras nec est tincidunt, faucibus neque vitae, pretium purus. Nulla euismod mauris purus, a hendrerit sapien pretium interdum. Nulla at quam enim. Vestibulum leo sem, hendrerit ultricies porttitor eu, facilisis eget leo. Aliquam molestie sapien arcu, eu pulvinar magna suscipit quis. Fusce at ultricies nunc. Aenean vitae nulla at ligula imperdiet vulputate. Aliquam erat volutpat. </div> </nord-card> </nord-stack> `, }"
|
|
2652
|
+
},
|
|
2653
|
+
{
|
|
2654
|
+
"kind": "variable",
|
|
2655
|
+
"name": "WithScrollableTable",
|
|
2656
|
+
"type": {
|
|
2657
|
+
"text": "Story"
|
|
2658
|
+
},
|
|
2659
|
+
"default": "{ render: () => html` <style>nord-table.scrollable { max-block-size: 240px; } nord-table.scrollable th { position: sticky; inset-block-start: 0; z-index: var(--n-index-sticky); }</style> <nord-card padding=\"none\"> <h2 slot=\"header\">Table heading</h2> <nord-table class=\"scrollable\"> <table> <thead> <tr> <th class=\"n-table-align-right\">Amount</th> <th>Status</th> <th>Description</th> <th>Method</th> <th class=\"n-table-align-right\">Date</th> <th class=\"n-table-align-right\">Actions</th> </tr> </thead> <tbody> <tr> <td class=\"n-table-align-right\">350,00 €</td> <td><nord-badge>Neutral</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">20.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">29,90 €</td> <td><nord-badge>Neutral</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">20.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">50,00 €</td> <td><nord-badge variant=\"info\">Info</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">19.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">49,00 €</td> <td><nord-badge variant=\"info\">Info</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">17.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">1023,00 €</td> <td><nord-badge variant=\"info\">Info</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">12.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">32,00 €</td> <td><nord-badge variant=\"highlight\">Highlight</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">10.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">40,00 €</td> <td><nord-badge variant=\"highlight\">Highlight</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">9.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">28,52 €</td> <td><nord-badge variant=\"highlight\">Highlight</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">4.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">350,00 €</td> <td><nord-badge variant=\"success\">Success</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">4.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">220,00 €</td> <td><nord-badge variant=\"success\">Success</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">3.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">50,00 €</td> <td><nord-badge variant=\"success\">Success</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">1.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">350,00 €</td> <td><nord-badge variant=\"success\">Success</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">30.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">29,90 €</td> <td><nord-badge variant=\"warning\">Warning</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">28.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">50,00 €</td> <td><nord-badge variant=\"success\">Success</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">28.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">49,00 €</td> <td><nord-badge variant=\"success\">Success</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">26.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">1023,00 €</td> <td><nord-badge variant=\"danger\">Alert</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">24.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">32,00 €</td> <td><nord-badge variant=\"success\">Success</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">23.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">40,00 €</td> <td><nord-badge variant=\"warning\">Warning</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">22.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">28,52 €</td> <td><nord-badge variant=\"warning\">Warning</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">21.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">350,00 €</td> <td><nord-badge variant=\"success\">Success</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">20.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">220,00 €</td> <td><nord-badge variant=\"success\">Success</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">18.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> </tbody> </table> </nord-table> </nord-card> `, }"
|
|
2660
|
+
},
|
|
2661
|
+
{
|
|
2662
|
+
"kind": "variable",
|
|
2663
|
+
"name": "WithSections",
|
|
2664
|
+
"type": {
|
|
2665
|
+
"text": "Story"
|
|
2666
|
+
},
|
|
2667
|
+
"default": "{ render: () => html` <nord-card padding=\"none\"> <div class=\"n-padding-m\"> Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nulla provident aliquid corporis tempora eius quam, quae vel molestias esse maxime aperiam totam suscipit. Nobis consectetur optio reprehenderit animi? Suscipit, quibusdam? </div> <nord-divider></nord-divider> <div class=\"n-padding-m\"> Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nulla provident aliquid corporis tempora eius quam, quae vel molestias esse maxime aperiam totam suscipit. Nobis consectetur optio reprehenderit animi? Suscipit, quibusdam? </div> <nord-divider></nord-divider> <div class=\"n-padding-m\"> Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nulla provident aliquid corporis tempora eius quam, quae vel molestias esse maxime aperiam totam suscipit. Nobis consectetur optio reprehenderit animi? Suscipit, quibusdam? </div> </nord-card> `, }"
|
|
2668
|
+
},
|
|
2669
|
+
{
|
|
2670
|
+
"kind": "variable",
|
|
2671
|
+
"name": "WithTable",
|
|
2672
|
+
"type": {
|
|
2673
|
+
"text": "Story"
|
|
2674
|
+
},
|
|
2675
|
+
"default": "{ render: () => html` <nord-card padding=\"none\"> <h2 slot=\"header\">Table heading</h2> <nord-table> <table> <thead> <tr> <th class=\"n-table-align-right\">Amount</th> <th>Description</th> <th>Method</th> <th class=\"n-table-align-right\">Date</th> </tr> </thead> <tbody> <tr> <td class=\"n-table-align-right\">350,00 €</td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td>Card</td> <td class=\"n-table-align-right\">20.3.2021</td> </tr> <tr> <td class=\"n-table-align-right\">29,90 €</td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td>Card</td> <td class=\"n-table-align-right\">19.3.2021</td> </tr> <tr> <td class=\"n-table-align-right\">50,00 €</td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td>Card</td> <td class=\"n-table-align-right\">18.3.2021</td> </tr> <tr> <td class=\"n-table-align-right\">290,00 €</td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td>Card</td> <td class=\"n-table-align-right\">17.3.2021</td> </tr> <tr> <td class=\"n-table-align-right\">49,90 €</td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td>Card</td> <td class=\"n-table-align-right\">16.3.2021</td> </tr> <tr> <td class=\"n-table-align-right\">25,00 €</td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td>Card</td> <td class=\"n-table-align-right\">15.3.2021</td> </tr> </tbody> </table> </nord-table> </nord-card> `, }"
|
|
2652
2676
|
}
|
|
2653
2677
|
],
|
|
2654
2678
|
"exports": [
|
|
@@ -2657,7 +2681,7 @@
|
|
|
2657
2681
|
"name": "default",
|
|
2658
2682
|
"declaration": {
|
|
2659
2683
|
"name": "meta",
|
|
2660
|
-
"module": "src/
|
|
2684
|
+
"module": "src/card/Card.stories.ts"
|
|
2661
2685
|
}
|
|
2662
2686
|
},
|
|
2663
2687
|
{
|
|
@@ -2665,7 +2689,7 @@
|
|
|
2665
2689
|
"name": "Playground",
|
|
2666
2690
|
"declaration": {
|
|
2667
2691
|
"name": "Playground",
|
|
2668
|
-
"module": "src/
|
|
2692
|
+
"module": "src/card/Card.stories.ts"
|
|
2669
2693
|
}
|
|
2670
2694
|
},
|
|
2671
2695
|
{
|
|
@@ -2673,529 +2697,245 @@
|
|
|
2673
2697
|
"name": "Basic",
|
|
2674
2698
|
"declaration": {
|
|
2675
2699
|
"name": "Basic",
|
|
2676
|
-
"module": "src/
|
|
2700
|
+
"module": "src/card/Card.stories.ts"
|
|
2677
2701
|
}
|
|
2678
2702
|
},
|
|
2679
2703
|
{
|
|
2680
2704
|
"kind": "js",
|
|
2681
|
-
"name": "
|
|
2705
|
+
"name": "Padding",
|
|
2682
2706
|
"declaration": {
|
|
2683
|
-
"name": "
|
|
2684
|
-
"module": "src/
|
|
2707
|
+
"name": "Padding",
|
|
2708
|
+
"module": "src/card/Card.stories.ts"
|
|
2685
2709
|
}
|
|
2686
2710
|
},
|
|
2687
2711
|
{
|
|
2688
2712
|
"kind": "js",
|
|
2689
|
-
"name": "
|
|
2713
|
+
"name": "ResponsiveCardLayout",
|
|
2690
2714
|
"declaration": {
|
|
2691
|
-
"name": "
|
|
2692
|
-
"module": "src/
|
|
2715
|
+
"name": "ResponsiveCardLayout",
|
|
2716
|
+
"module": "src/card/Card.stories.ts"
|
|
2693
2717
|
}
|
|
2694
2718
|
},
|
|
2695
2719
|
{
|
|
2696
2720
|
"kind": "js",
|
|
2697
|
-
"name": "
|
|
2721
|
+
"name": "WithAlignedFooters",
|
|
2698
2722
|
"declaration": {
|
|
2699
|
-
"name": "
|
|
2700
|
-
"module": "src/
|
|
2723
|
+
"name": "WithAlignedFooters",
|
|
2724
|
+
"module": "src/card/Card.stories.ts"
|
|
2701
2725
|
}
|
|
2702
2726
|
},
|
|
2703
2727
|
{
|
|
2704
2728
|
"kind": "js",
|
|
2705
|
-
"name": "
|
|
2729
|
+
"name": "WithCustomHeader",
|
|
2706
2730
|
"declaration": {
|
|
2707
|
-
"name": "
|
|
2708
|
-
"module": "src/
|
|
2731
|
+
"name": "WithCustomHeader",
|
|
2732
|
+
"module": "src/card/Card.stories.ts"
|
|
2709
2733
|
}
|
|
2710
2734
|
},
|
|
2711
2735
|
{
|
|
2712
2736
|
"kind": "js",
|
|
2713
|
-
"name": "
|
|
2737
|
+
"name": "WithForm",
|
|
2714
2738
|
"declaration": {
|
|
2715
|
-
"name": "
|
|
2716
|
-
"module": "src/
|
|
2739
|
+
"name": "WithForm",
|
|
2740
|
+
"module": "src/card/Card.stories.ts"
|
|
2717
2741
|
}
|
|
2718
2742
|
},
|
|
2719
2743
|
{
|
|
2720
2744
|
"kind": "js",
|
|
2721
|
-
"name": "
|
|
2745
|
+
"name": "WithHeaderActions",
|
|
2722
2746
|
"declaration": {
|
|
2723
|
-
"name": "
|
|
2724
|
-
"module": "src/
|
|
2747
|
+
"name": "WithHeaderActions",
|
|
2748
|
+
"module": "src/card/Card.stories.ts"
|
|
2725
2749
|
}
|
|
2726
2750
|
},
|
|
2727
2751
|
{
|
|
2728
2752
|
"kind": "js",
|
|
2729
|
-
"name": "
|
|
2753
|
+
"name": "WithHeaderAndFooter",
|
|
2730
2754
|
"declaration": {
|
|
2731
|
-
"name": "
|
|
2732
|
-
"module": "src/
|
|
2755
|
+
"name": "WithHeaderAndFooter",
|
|
2756
|
+
"module": "src/card/Card.stories.ts"
|
|
2733
2757
|
}
|
|
2734
2758
|
},
|
|
2735
2759
|
{
|
|
2736
2760
|
"kind": "js",
|
|
2737
|
-
"name": "
|
|
2761
|
+
"name": "WithScrollableContent",
|
|
2738
2762
|
"declaration": {
|
|
2739
|
-
"name": "
|
|
2740
|
-
"module": "src/
|
|
2763
|
+
"name": "WithScrollableContent",
|
|
2764
|
+
"module": "src/card/Card.stories.ts"
|
|
2765
|
+
}
|
|
2766
|
+
},
|
|
2767
|
+
{
|
|
2768
|
+
"kind": "js",
|
|
2769
|
+
"name": "WithScrollableTable",
|
|
2770
|
+
"declaration": {
|
|
2771
|
+
"name": "WithScrollableTable",
|
|
2772
|
+
"module": "src/card/Card.stories.ts"
|
|
2773
|
+
}
|
|
2774
|
+
},
|
|
2775
|
+
{
|
|
2776
|
+
"kind": "js",
|
|
2777
|
+
"name": "WithSections",
|
|
2778
|
+
"declaration": {
|
|
2779
|
+
"name": "WithSections",
|
|
2780
|
+
"module": "src/card/Card.stories.ts"
|
|
2781
|
+
}
|
|
2782
|
+
},
|
|
2783
|
+
{
|
|
2784
|
+
"kind": "js",
|
|
2785
|
+
"name": "WithTable",
|
|
2786
|
+
"declaration": {
|
|
2787
|
+
"name": "WithTable",
|
|
2788
|
+
"module": "src/card/Card.stories.ts"
|
|
2741
2789
|
}
|
|
2742
2790
|
}
|
|
2743
2791
|
]
|
|
2744
2792
|
},
|
|
2745
2793
|
{
|
|
2746
2794
|
"kind": "javascript-module",
|
|
2747
|
-
"path": "src/
|
|
2795
|
+
"path": "src/card/Card.ts",
|
|
2748
2796
|
"declarations": [
|
|
2749
2797
|
{
|
|
2750
2798
|
"kind": "class",
|
|
2751
|
-
"description": "
|
|
2752
|
-
"name": "
|
|
2799
|
+
"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.",
|
|
2800
|
+
"name": "Card",
|
|
2753
2801
|
"cssProperties": [
|
|
2754
2802
|
{
|
|
2755
2803
|
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
2756
|
-
"name": "--n-
|
|
2804
|
+
"name": "--n-card-border-radius",
|
|
2757
2805
|
"default": "var(--n-border-radius)"
|
|
2758
2806
|
},
|
|
2759
2807
|
{
|
|
2760
2808
|
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2761
|
-
"name": "--n-
|
|
2809
|
+
"name": "--n-card-box-shadow",
|
|
2762
2810
|
"default": "var(--n-box-shadow-popout)"
|
|
2763
|
-
}
|
|
2764
|
-
],
|
|
2765
|
-
"members": [
|
|
2766
|
-
{
|
|
2767
|
-
"kind": "field",
|
|
2768
|
-
"name": "monthSelectNode",
|
|
2769
|
-
"type": {
|
|
2770
|
-
"text": "HTMLElement"
|
|
2771
|
-
},
|
|
2772
|
-
"privacy": "private"
|
|
2773
2811
|
},
|
|
2774
2812
|
{
|
|
2775
|
-
"
|
|
2776
|
-
"name": "
|
|
2777
|
-
"
|
|
2778
|
-
"text": "HTMLButtonElement"
|
|
2779
|
-
},
|
|
2780
|
-
"privacy": "private"
|
|
2813
|
+
"description": "Controls the padding on all sides of the card.",
|
|
2814
|
+
"name": "--n-card-padding",
|
|
2815
|
+
"default": "var(--n-space-m)"
|
|
2781
2816
|
},
|
|
2782
2817
|
{
|
|
2783
|
-
"
|
|
2784
|
-
"name": "
|
|
2785
|
-
"
|
|
2786
|
-
"default": "new DirectionController(this)"
|
|
2818
|
+
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
2819
|
+
"name": "--n-card-slot-padding",
|
|
2820
|
+
"default": "var(--n-space-m)"
|
|
2787
2821
|
},
|
|
2788
2822
|
{
|
|
2789
|
-
"
|
|
2790
|
-
"name": "
|
|
2791
|
-
"
|
|
2792
|
-
"default": "new SwipeController(this, { matchesGesture: isHorizontalSwipe, onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1), })"
|
|
2823
|
+
"description": "Controls the background color of the card header.",
|
|
2824
|
+
"name": "--n-card-header-background",
|
|
2825
|
+
"default": "transparent"
|
|
2793
2826
|
},
|
|
2794
2827
|
{
|
|
2795
|
-
"
|
|
2796
|
-
"name": "
|
|
2797
|
-
"
|
|
2828
|
+
"description": "Controls the border color of the card header and footer divider.",
|
|
2829
|
+
"name": "--n-card-border-color",
|
|
2830
|
+
"default": "var(--n-color-border)"
|
|
2798
2831
|
},
|
|
2799
2832
|
{
|
|
2800
|
-
"
|
|
2801
|
-
"name": "
|
|
2802
|
-
"
|
|
2803
|
-
"default": "new LocalizeController<'nord-calendar'>(this, { onLangChange: () => this.handleLangChange(), })"
|
|
2833
|
+
"description": "Controls the block (top and bottom) padding of the card header.",
|
|
2834
|
+
"name": "--n-card-header-padding-block",
|
|
2835
|
+
"default": "var(--n-space-m)"
|
|
2804
2836
|
},
|
|
2805
2837
|
{
|
|
2806
|
-
"
|
|
2807
|
-
"name": "
|
|
2808
|
-
"
|
|
2809
|
-
"text": "Intl.DateTimeFormat"
|
|
2810
|
-
},
|
|
2811
|
-
"privacy": "private",
|
|
2812
|
-
"description": "Whilst dateAdapter is used for handling the formatting/parsing dates in the input,\nthese are used to format dates exclusively for the benefit of screen readers.\n\nWe prefer DateTimeFormat over date.toLocaleDateString, as the former has\nbetter performance when formatting large number of dates. See:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString#Performance"
|
|
2838
|
+
"description": "Controls the inline (left and right) padding of the card header.",
|
|
2839
|
+
"name": "--n-card-header-padding-inline",
|
|
2840
|
+
"default": "var(--n-card-slot-padding)"
|
|
2813
2841
|
},
|
|
2814
2842
|
{
|
|
2815
|
-
"
|
|
2816
|
-
"name": "
|
|
2817
|
-
"
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
},
|
|
2843
|
+
"description": "Controls the flex-grow value of the header slot.",
|
|
2844
|
+
"name": "--n-card-header-slot-flex-grow",
|
|
2845
|
+
"default": "0"
|
|
2846
|
+
}
|
|
2847
|
+
],
|
|
2848
|
+
"slots": [
|
|
2822
2849
|
{
|
|
2823
|
-
"
|
|
2824
|
-
"name": "
|
|
2825
|
-
"type": {
|
|
2826
|
-
"text": "string[]"
|
|
2827
|
-
},
|
|
2828
|
-
"privacy": "private"
|
|
2850
|
+
"description": "The card content.",
|
|
2851
|
+
"name": ""
|
|
2829
2852
|
},
|
|
2830
2853
|
{
|
|
2831
|
-
"
|
|
2832
|
-
"name": "
|
|
2833
|
-
"type": {
|
|
2834
|
-
"text": "string[]"
|
|
2835
|
-
},
|
|
2836
|
-
"privacy": "private"
|
|
2854
|
+
"description": "Optional slot that holds a header for the card.",
|
|
2855
|
+
"name": "header"
|
|
2837
2856
|
},
|
|
2838
2857
|
{
|
|
2839
|
-
"
|
|
2840
|
-
"name": "
|
|
2841
|
-
"type": {
|
|
2842
|
-
"text": "string[]"
|
|
2843
|
-
},
|
|
2844
|
-
"privacy": "private"
|
|
2858
|
+
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
2859
|
+
"name": "header-end"
|
|
2845
2860
|
},
|
|
2846
2861
|
{
|
|
2847
|
-
"
|
|
2848
|
-
"name": "
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
"default": "''",
|
|
2853
|
-
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
2854
|
-
"attribute": "value"
|
|
2855
|
-
},
|
|
2862
|
+
"description": "Optional slot that holds footer content for the card.",
|
|
2863
|
+
"name": "footer"
|
|
2864
|
+
}
|
|
2865
|
+
],
|
|
2866
|
+
"members": [
|
|
2856
2867
|
{
|
|
2857
2868
|
"kind": "field",
|
|
2858
|
-
"name": "
|
|
2859
|
-
"
|
|
2860
|
-
|
|
2861
|
-
},
|
|
2862
|
-
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
2863
|
-
"attribute": "first-day-of-week",
|
|
2864
|
-
"reflects": true
|
|
2869
|
+
"name": "headerSlot",
|
|
2870
|
+
"privacy": "private",
|
|
2871
|
+
"default": "new SlotController(this, 'header')"
|
|
2865
2872
|
},
|
|
2866
2873
|
{
|
|
2867
2874
|
"kind": "field",
|
|
2868
|
-
"name": "
|
|
2869
|
-
"
|
|
2870
|
-
|
|
2871
|
-
},
|
|
2872
|
-
"description": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the max property.",
|
|
2873
|
-
"attribute": "min",
|
|
2874
|
-
"reflects": true
|
|
2875
|
+
"name": "headerEndSlot",
|
|
2876
|
+
"privacy": "private",
|
|
2877
|
+
"default": "new SlotController(this, 'header-end')"
|
|
2875
2878
|
},
|
|
2876
2879
|
{
|
|
2877
2880
|
"kind": "field",
|
|
2878
|
-
"name": "
|
|
2879
|
-
"
|
|
2880
|
-
|
|
2881
|
-
},
|
|
2882
|
-
"description": "Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the min property.",
|
|
2883
|
-
"attribute": "max",
|
|
2884
|
-
"reflects": true
|
|
2881
|
+
"name": "footerSlot",
|
|
2882
|
+
"privacy": "private",
|
|
2883
|
+
"default": "new SlotController(this, 'footer')"
|
|
2885
2884
|
},
|
|
2886
2885
|
{
|
|
2887
2886
|
"kind": "field",
|
|
2888
|
-
"name": "
|
|
2887
|
+
"name": "padding",
|
|
2889
2888
|
"type": {
|
|
2890
|
-
"text": "
|
|
2889
|
+
"text": "'m' | 'l' | 'none'"
|
|
2891
2890
|
},
|
|
2892
|
-
"
|
|
2893
|
-
"
|
|
2891
|
+
"default": "'m'",
|
|
2892
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2893
|
+
"attribute": "padding",
|
|
2894
2894
|
"reflects": true
|
|
2895
2895
|
},
|
|
2896
2896
|
{
|
|
2897
2897
|
"kind": "field",
|
|
2898
|
-
"name": "
|
|
2898
|
+
"name": "footerDivider",
|
|
2899
2899
|
"type": {
|
|
2900
2900
|
"text": "boolean"
|
|
2901
2901
|
},
|
|
2902
2902
|
"default": "false",
|
|
2903
|
-
"description": "
|
|
2904
|
-
"attribute": "
|
|
2903
|
+
"description": "When set, adds a divider border above the footer slot.",
|
|
2904
|
+
"attribute": "footer-divider",
|
|
2905
2905
|
"reflects": true
|
|
2906
|
-
}
|
|
2906
|
+
}
|
|
2907
|
+
],
|
|
2908
|
+
"attributes": [
|
|
2907
2909
|
{
|
|
2908
|
-
"
|
|
2909
|
-
"name": "isDateDisabled",
|
|
2910
|
+
"name": "padding",
|
|
2910
2911
|
"type": {
|
|
2911
|
-
"text": "
|
|
2912
|
+
"text": "'m' | 'l' | 'none'"
|
|
2912
2913
|
},
|
|
2913
|
-
"default": "
|
|
2914
|
-
"description": "Controls
|
|
2914
|
+
"default": "'m'",
|
|
2915
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2916
|
+
"fieldName": "padding"
|
|
2915
2917
|
},
|
|
2916
2918
|
{
|
|
2917
|
-
"
|
|
2918
|
-
"name": "isDateHighlighted",
|
|
2919
|
-
"type": {
|
|
2920
|
-
"text": "(date: Date) => string | boolean"
|
|
2921
|
-
},
|
|
2922
|
-
"default": "isDateHighlighted",
|
|
2923
|
-
"description": "Controls which days are highlighted with a small indicator.\nReturning a \"falsy\" value will not show an indicator.\nReturning \"truthy\" value will show the indicator, but without an accessible label.\nReturning a string will show the indicator, and use the string as accessible label.\nIt is recommended to return a string rather than a truthy value whenever possible."
|
|
2924
|
-
},
|
|
2925
|
-
{
|
|
2926
|
-
"kind": "field",
|
|
2927
|
-
"name": "activeFocus",
|
|
2928
|
-
"type": {
|
|
2929
|
-
"text": "boolean"
|
|
2930
|
-
},
|
|
2931
|
-
"privacy": "private",
|
|
2932
|
-
"default": "false"
|
|
2933
|
-
},
|
|
2934
|
-
{
|
|
2935
|
-
"kind": "field",
|
|
2936
|
-
"name": "focusedDay",
|
|
2937
|
-
"privacy": "private",
|
|
2938
|
-
"default": "new Date()"
|
|
2939
|
-
},
|
|
2940
|
-
{
|
|
2941
|
-
"kind": "method",
|
|
2942
|
-
"name": "focus",
|
|
2943
|
-
"parameters": [
|
|
2944
|
-
{
|
|
2945
|
-
"name": "options",
|
|
2946
|
-
"optional": true,
|
|
2947
|
-
"type": {
|
|
2948
|
-
"text": "FocusOptions & { target: 'day' | 'month' }"
|
|
2949
|
-
},
|
|
2950
|
-
"description": "An object which controls aspects of the focusing process."
|
|
2951
|
-
}
|
|
2952
|
-
],
|
|
2953
|
-
"description": "Programmatically move focus to the calendar."
|
|
2954
|
-
},
|
|
2955
|
-
{
|
|
2956
|
-
"kind": "method",
|
|
2957
|
-
"name": "handleValueChange",
|
|
2958
|
-
"privacy": "protected"
|
|
2959
|
-
},
|
|
2960
|
-
{
|
|
2961
|
-
"kind": "method",
|
|
2962
|
-
"name": "handleFocusedDayChange",
|
|
2963
|
-
"privacy": "protected"
|
|
2964
|
-
},
|
|
2965
|
-
{
|
|
2966
|
-
"kind": "method",
|
|
2967
|
-
"name": "handleLangChange",
|
|
2968
|
-
"privacy": "private"
|
|
2969
|
-
},
|
|
2970
|
-
{
|
|
2971
|
-
"kind": "field",
|
|
2972
|
-
"name": "handleDaySelect",
|
|
2973
|
-
"privacy": "private"
|
|
2974
|
-
},
|
|
2975
|
-
{
|
|
2976
|
-
"kind": "method",
|
|
2977
|
-
"name": "getToday",
|
|
2978
|
-
"privacy": "private"
|
|
2979
|
-
},
|
|
2980
|
-
{
|
|
2981
|
-
"kind": "method",
|
|
2982
|
-
"name": "addDays",
|
|
2983
|
-
"privacy": "private",
|
|
2984
|
-
"parameters": [
|
|
2985
|
-
{
|
|
2986
|
-
"name": "days",
|
|
2987
|
-
"type": {
|
|
2988
|
-
"text": "number"
|
|
2989
|
-
}
|
|
2990
|
-
}
|
|
2991
|
-
]
|
|
2992
|
-
},
|
|
2993
|
-
{
|
|
2994
|
-
"kind": "method",
|
|
2995
|
-
"name": "addMonths",
|
|
2996
|
-
"privacy": "private",
|
|
2997
|
-
"parameters": [
|
|
2998
|
-
{
|
|
2999
|
-
"name": "months",
|
|
3000
|
-
"type": {
|
|
3001
|
-
"text": "number"
|
|
3002
|
-
}
|
|
3003
|
-
}
|
|
3004
|
-
]
|
|
3005
|
-
},
|
|
3006
|
-
{
|
|
3007
|
-
"kind": "method",
|
|
3008
|
-
"name": "addYears",
|
|
3009
|
-
"privacy": "private",
|
|
3010
|
-
"parameters": [
|
|
3011
|
-
{
|
|
3012
|
-
"name": "years",
|
|
3013
|
-
"type": {
|
|
3014
|
-
"text": "number"
|
|
3015
|
-
}
|
|
3016
|
-
}
|
|
3017
|
-
]
|
|
3018
|
-
},
|
|
3019
|
-
{
|
|
3020
|
-
"kind": "method",
|
|
3021
|
-
"name": "startOfWeek",
|
|
3022
|
-
"privacy": "private"
|
|
3023
|
-
},
|
|
3024
|
-
{
|
|
3025
|
-
"kind": "method",
|
|
3026
|
-
"name": "endOfWeek",
|
|
3027
|
-
"privacy": "private"
|
|
3028
|
-
},
|
|
3029
|
-
{
|
|
3030
|
-
"kind": "method",
|
|
3031
|
-
"name": "setMonth",
|
|
3032
|
-
"privacy": "private",
|
|
3033
|
-
"parameters": [
|
|
3034
|
-
{
|
|
3035
|
-
"name": "month",
|
|
3036
|
-
"type": {
|
|
3037
|
-
"text": "number"
|
|
3038
|
-
}
|
|
3039
|
-
}
|
|
3040
|
-
]
|
|
3041
|
-
},
|
|
3042
|
-
{
|
|
3043
|
-
"kind": "method",
|
|
3044
|
-
"name": "setYear",
|
|
3045
|
-
"privacy": "private",
|
|
3046
|
-
"parameters": [
|
|
3047
|
-
{
|
|
3048
|
-
"name": "year",
|
|
3049
|
-
"type": {
|
|
3050
|
-
"text": "number"
|
|
3051
|
-
}
|
|
3052
|
-
}
|
|
3053
|
-
]
|
|
3054
|
-
},
|
|
3055
|
-
{
|
|
3056
|
-
"kind": "method",
|
|
3057
|
-
"name": "setFocusedDay",
|
|
3058
|
-
"privacy": "private",
|
|
3059
|
-
"parameters": [
|
|
3060
|
-
{
|
|
3061
|
-
"name": "day",
|
|
3062
|
-
"type": {
|
|
3063
|
-
"text": "Date"
|
|
3064
|
-
}
|
|
3065
|
-
}
|
|
3066
|
-
]
|
|
3067
|
-
},
|
|
3068
|
-
{
|
|
3069
|
-
"kind": "field",
|
|
3070
|
-
"name": "handleMonthSelect",
|
|
3071
|
-
"privacy": "private"
|
|
3072
|
-
},
|
|
3073
|
-
{
|
|
3074
|
-
"kind": "field",
|
|
3075
|
-
"name": "handleYearSelect",
|
|
3076
|
-
"privacy": "private"
|
|
3077
|
-
},
|
|
3078
|
-
{
|
|
3079
|
-
"kind": "field",
|
|
3080
|
-
"name": "handleNextMonthClick",
|
|
3081
|
-
"privacy": "private"
|
|
3082
|
-
},
|
|
3083
|
-
{
|
|
3084
|
-
"kind": "field",
|
|
3085
|
-
"name": "handlePreviousMonthClick",
|
|
3086
|
-
"privacy": "private"
|
|
3087
|
-
},
|
|
3088
|
-
{
|
|
3089
|
-
"kind": "field",
|
|
3090
|
-
"name": "enableActiveFocus",
|
|
3091
|
-
"privacy": "private"
|
|
3092
|
-
},
|
|
3093
|
-
{
|
|
3094
|
-
"kind": "field",
|
|
3095
|
-
"name": "disableActiveFocus",
|
|
3096
|
-
"privacy": "private"
|
|
3097
|
-
}
|
|
3098
|
-
],
|
|
3099
|
-
"events": [
|
|
3100
|
-
{
|
|
3101
|
-
"name": "nord-focus-date",
|
|
3102
|
-
"type": {
|
|
3103
|
-
"text": "DateSelectEvent"
|
|
3104
|
-
},
|
|
3105
|
-
"description": "Dispatched when the calendar's focused date changes."
|
|
3106
|
-
},
|
|
3107
|
-
{
|
|
3108
|
-
"type": {
|
|
3109
|
-
"text": "DateSelectEvent"
|
|
3110
|
-
},
|
|
3111
|
-
"description": "Dispatched when a date is selected and the value changes.",
|
|
3112
|
-
"name": "change"
|
|
3113
|
-
}
|
|
3114
|
-
],
|
|
3115
|
-
"attributes": [
|
|
3116
|
-
{
|
|
3117
|
-
"name": "value",
|
|
3118
|
-
"type": {
|
|
3119
|
-
"text": "string"
|
|
3120
|
-
},
|
|
3121
|
-
"default": "''",
|
|
3122
|
-
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
3123
|
-
"fieldName": "value"
|
|
3124
|
-
},
|
|
3125
|
-
{
|
|
3126
|
-
"name": "first-day-of-week",
|
|
3127
|
-
"type": {
|
|
3128
|
-
"text": "DaysOfWeek"
|
|
3129
|
-
},
|
|
3130
|
-
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
3131
|
-
"fieldName": "firstDayOfWeek"
|
|
3132
|
-
},
|
|
3133
|
-
{
|
|
3134
|
-
"name": "min",
|
|
3135
|
-
"type": {
|
|
3136
|
-
"text": "string | undefined"
|
|
3137
|
-
},
|
|
3138
|
-
"description": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the max property.",
|
|
3139
|
-
"fieldName": "min"
|
|
3140
|
-
},
|
|
3141
|
-
{
|
|
3142
|
-
"name": "max",
|
|
3143
|
-
"type": {
|
|
3144
|
-
"text": "string | undefined"
|
|
3145
|
-
},
|
|
3146
|
-
"description": "Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the min property.",
|
|
3147
|
-
"fieldName": "max"
|
|
3148
|
-
},
|
|
3149
|
-
{
|
|
3150
|
-
"name": "today",
|
|
3151
|
-
"type": {
|
|
3152
|
-
"text": "string | undefined"
|
|
3153
|
-
},
|
|
3154
|
-
"description": "The date that is considered today. Must be in IS0-8601 format: YYYY-MM-DD.\nIf not set, the current local date of the user is used.",
|
|
3155
|
-
"fieldName": "today"
|
|
3156
|
-
},
|
|
3157
|
-
{
|
|
3158
|
-
"name": "expand",
|
|
2919
|
+
"name": "footer-divider",
|
|
3159
2920
|
"type": {
|
|
3160
2921
|
"text": "boolean"
|
|
3161
2922
|
},
|
|
3162
2923
|
"default": "false",
|
|
3163
|
-
"description": "
|
|
3164
|
-
"fieldName": "
|
|
2924
|
+
"description": "When set, adds a divider border above the footer slot.",
|
|
2925
|
+
"fieldName": "footerDivider"
|
|
3165
2926
|
}
|
|
3166
2927
|
],
|
|
3167
2928
|
"superclass": {
|
|
3168
2929
|
"name": "LitElement",
|
|
3169
2930
|
"package": "lit"
|
|
3170
2931
|
},
|
|
3171
|
-
"localization": [
|
|
3172
|
-
{
|
|
3173
|
-
"name": "prevMonthLabel",
|
|
3174
|
-
"description": "Accessible label for the previous month button."
|
|
3175
|
-
},
|
|
3176
|
-
{
|
|
3177
|
-
"name": "nextMonthLabel",
|
|
3178
|
-
"description": "Accessible label for the next month button."
|
|
3179
|
-
},
|
|
3180
|
-
{
|
|
3181
|
-
"name": "monthSelectLabel",
|
|
3182
|
-
"description": "Accessible label for the month select."
|
|
3183
|
-
},
|
|
3184
|
-
{
|
|
3185
|
-
"name": "yearSelectLabel",
|
|
3186
|
-
"description": "Accessible label for the year select."
|
|
3187
|
-
}
|
|
3188
|
-
],
|
|
2932
|
+
"localization": [],
|
|
3189
2933
|
"status": "ready",
|
|
3190
|
-
"category": "
|
|
3191
|
-
"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
|
|
2934
|
+
"category": "structure",
|
|
2935
|
+
"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",
|
|
3192
2936
|
"examples": [],
|
|
3193
|
-
"dependencies": [
|
|
3194
|
-
|
|
3195
|
-
"button",
|
|
3196
|
-
"visually-hidden"
|
|
3197
|
-
],
|
|
3198
|
-
"tagName": "nord-calendar",
|
|
2937
|
+
"dependencies": [],
|
|
2938
|
+
"tagName": "nord-card",
|
|
3199
2939
|
"customElement": true
|
|
3200
2940
|
}
|
|
3201
2941
|
],
|
|
@@ -3204,72 +2944,23 @@
|
|
|
3204
2944
|
"kind": "js",
|
|
3205
2945
|
"name": "default",
|
|
3206
2946
|
"declaration": {
|
|
3207
|
-
"name": "
|
|
3208
|
-
"module": "src/
|
|
2947
|
+
"name": "Card",
|
|
2948
|
+
"module": "src/card/Card.ts"
|
|
3209
2949
|
}
|
|
3210
2950
|
},
|
|
3211
2951
|
{
|
|
3212
2952
|
"kind": "custom-element-definition",
|
|
3213
|
-
"name": "nord-
|
|
3214
|
-
"declaration": {
|
|
3215
|
-
"name": "Calendar",
|
|
3216
|
-
"module": "src/calendar/Calendar.ts"
|
|
3217
|
-
}
|
|
3218
|
-
}
|
|
3219
|
-
]
|
|
3220
|
-
},
|
|
3221
|
-
{
|
|
3222
|
-
"kind": "javascript-module",
|
|
3223
|
-
"path": "src/calendar/DateSelectEvent.ts",
|
|
3224
|
-
"declarations": [
|
|
3225
|
-
{
|
|
3226
|
-
"kind": "class",
|
|
3227
|
-
"description": "",
|
|
3228
|
-
"name": "DateSelectEvent",
|
|
3229
|
-
"superclass": {
|
|
3230
|
-
"name": "NordEvent",
|
|
3231
|
-
"module": "/src/common/events.js"
|
|
3232
|
-
}
|
|
3233
|
-
}
|
|
3234
|
-
],
|
|
3235
|
-
"exports": [
|
|
3236
|
-
{
|
|
3237
|
-
"kind": "js",
|
|
3238
|
-
"name": "DateSelectEvent",
|
|
3239
|
-
"declaration": {
|
|
3240
|
-
"name": "DateSelectEvent",
|
|
3241
|
-
"module": "src/calendar/DateSelectEvent.ts"
|
|
3242
|
-
}
|
|
3243
|
-
}
|
|
3244
|
-
]
|
|
3245
|
-
},
|
|
3246
|
-
{
|
|
3247
|
-
"kind": "javascript-module",
|
|
3248
|
-
"path": "src/calendar/localization.ts",
|
|
3249
|
-
"declarations": [
|
|
3250
|
-
{
|
|
3251
|
-
"kind": "variable",
|
|
3252
|
-
"name": "calendarLocalization",
|
|
3253
|
-
"type": {
|
|
3254
|
-
"text": "object"
|
|
3255
|
-
},
|
|
3256
|
-
"default": "{ prevMonthLabel: 'Previous month', nextMonthLabel: 'Next month', monthSelectLabel: 'Month', yearSelectLabel: 'Year', }"
|
|
3257
|
-
}
|
|
3258
|
-
],
|
|
3259
|
-
"exports": [
|
|
3260
|
-
{
|
|
3261
|
-
"kind": "js",
|
|
3262
|
-
"name": "default",
|
|
2953
|
+
"name": "nord-card",
|
|
3263
2954
|
"declaration": {
|
|
3264
|
-
"name": "
|
|
3265
|
-
"module": "src/
|
|
2955
|
+
"name": "Card",
|
|
2956
|
+
"module": "src/card/Card.ts"
|
|
3266
2957
|
}
|
|
3267
2958
|
}
|
|
3268
2959
|
]
|
|
3269
2960
|
},
|
|
3270
2961
|
{
|
|
3271
2962
|
"kind": "javascript-module",
|
|
3272
|
-
"path": "src/
|
|
2963
|
+
"path": "src/calendar/Calendar.stories.ts",
|
|
3273
2964
|
"declarations": [
|
|
3274
2965
|
{
|
|
3275
2966
|
"kind": "variable",
|
|
@@ -3277,7 +2968,7 @@
|
|
|
3277
2968
|
"type": {
|
|
3278
2969
|
"text": "Meta"
|
|
3279
2970
|
},
|
|
3280
|
-
"default": "{ title: 'Components/
|
|
2971
|
+
"default": "{ title: 'Components/Calendar', component: 'nord-calendar', tags: ['autodocs'], argTypes: { value: { control: 'text' }, firstDayOfWeek: { control: 'text' }, min: { control: 'text' }, max: { control: 'text' }, today: { control: 'text' }, expand: { control: 'boolean' }, }, parameters: { controls: { disable: true } }, }"
|
|
3281
2972
|
},
|
|
3282
2973
|
{
|
|
3283
2974
|
"kind": "variable",
|
|
@@ -3285,7 +2976,7 @@
|
|
|
3285
2976
|
"type": {
|
|
3286
2977
|
"text": "Story"
|
|
3287
2978
|
},
|
|
3288
|
-
"default": "{ parameters: { controls: { disable: false } }, args: {
|
|
2979
|
+
"default": "{ parameters: { controls: { disable: false } }, args: { expand: false, }, render: args => html` <nord-calendar value=${args.value || nothing} first-day-of-week=${args.firstDayOfWeek || nothing} min=${args.min || nothing} max=${args.max || nothing} today=${args.today || nothing} ?expand=${args.expand}>Content</nord-calendar> `, }"
|
|
3289
2980
|
},
|
|
3290
2981
|
{
|
|
3291
2982
|
"kind": "variable",
|
|
@@ -3293,95 +2984,71 @@
|
|
|
3293
2984
|
"type": {
|
|
3294
2985
|
"text": "Story"
|
|
3295
2986
|
},
|
|
3296
|
-
"default": "{ render: () => html
|
|
3297
|
-
},
|
|
3298
|
-
{
|
|
3299
|
-
"kind": "variable",
|
|
3300
|
-
"name": "Padding",
|
|
3301
|
-
"type": {
|
|
3302
|
-
"text": "Story"
|
|
3303
|
-
},
|
|
3304
|
-
"default": "{ render: () => html` <nord-stack> <nord-card padding=\"none\"> Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nulla provident aliquid corporis tempora eius quam, quae vel molestias esse maxime aperiam totam suscipit. Nobis consectetur optio reprehenderit animi? Suscipit, quibusdam? </nord-card> <nord-card padding=\"m\"> Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nulla provident aliquid corporis tempora eius quam, quae vel molestias esse maxime aperiam totam suscipit. Nobis consectetur optio reprehenderit animi? Suscipit, quibusdam? </nord-card> <nord-card padding=\"l\"> Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nulla provident aliquid corporis tempora eius quam, quae vel molestias esse maxime aperiam totam suscipit. Nobis consectetur optio reprehenderit animi? Suscipit, quibusdam? </nord-card> </nord-stack> `, }"
|
|
3305
|
-
},
|
|
3306
|
-
{
|
|
3307
|
-
"kind": "variable",
|
|
3308
|
-
"name": "ResponsiveCardLayout",
|
|
3309
|
-
"type": {
|
|
3310
|
-
"text": "Story"
|
|
3311
|
-
},
|
|
3312
|
-
"default": "{ render: () => html` <style>@media (max-width: 768px) { .stack { flex-direction: column; } }</style> <nord-stack class=\"stack\" direction=\"horizontal\" gap=\"l\"> <nord-card padding=\"l\"> <h2 slot=\"header\">Account overview</h2> <nord-stack direction=\"horizontal\"> <nord-stack gap=\"l\"> <p> View all saved data on your Nordhealth account and choose what activity is kept to personalize your experience. </p> <nord-button variant=\"primary\">Manage your account</nord-button> </nord-stack> </nord-stack> </nord-card> <nord-card padding=\"l\"> <h2 slot=\"header\">Security checkup</h2> <nord-stack direction=\"horizontal\"> <nord-stack gap=\"l\"> <p>Our Security Checkup analyzed your account and data. We found no recommended actions this time.</p> <nord-button variant=\"primary\">Manage security</nord-button> </nord-stack> </nord-stack> </nord-card> </nord-stack> `, }"
|
|
3313
|
-
},
|
|
3314
|
-
{
|
|
3315
|
-
"kind": "variable",
|
|
3316
|
-
"name": "WithAlignedFooters",
|
|
3317
|
-
"type": {
|
|
3318
|
-
"text": "Story"
|
|
3319
|
-
},
|
|
3320
|
-
"default": "{ render: () => html` <nord-stack direction=\"horizontal\"> <nord-card footer-divider> Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nulla provident aliquid corporis tempora eius quam, quae vel molestias esse maxime aperiam totam suscipit. <div slot=\"footer\"> <p class=\"n-typescale-m\">Footer content</p> </div> </nord-card> <nord-card footer-divider> Lorem ipsum, dolor sit amet consectetur adipisicing elit. <div slot=\"footer\"> <p class=\"n-typescale-m\">Footer content</p> </div> </nord-card> <nord-card footer-divider> Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nulla provident aliquid corporis tempora eius quam, quae vel molestias esse maxime aperiam totam suscipit. Nobis consectetur optio reprehenderit animi? Suscipit, quibusdam? <div slot=\"footer\"> <p class=\"n-typescale-m\">Footer content</p> </div> </nord-card> </nord-stack> `, }"
|
|
2987
|
+
"default": "{ render: () => html`<nord-calendar></nord-calendar>`, }"
|
|
3321
2988
|
},
|
|
3322
2989
|
{
|
|
3323
2990
|
"kind": "variable",
|
|
3324
|
-
"name": "
|
|
2991
|
+
"name": "ChangeToday",
|
|
3325
2992
|
"type": {
|
|
3326
2993
|
"text": "Story"
|
|
3327
2994
|
},
|
|
3328
|
-
"default": "{ render: () => html
|
|
2995
|
+
"default": "{ render: () => html`<nord-calendar value=\"2025-01-03\" today=\"2026-03-06\"></nord-calendar>`, }"
|
|
3329
2996
|
},
|
|
3330
2997
|
{
|
|
3331
2998
|
"kind": "variable",
|
|
3332
|
-
"name": "
|
|
2999
|
+
"name": "DateSelected",
|
|
3333
3000
|
"type": {
|
|
3334
3001
|
"text": "Story"
|
|
3335
3002
|
},
|
|
3336
|
-
"default": "{ render: () => html
|
|
3003
|
+
"default": "{ render: () => html`<nord-calendar value=\"2022-01-11\"></nord-calendar>`, }"
|
|
3337
3004
|
},
|
|
3338
3005
|
{
|
|
3339
3006
|
"kind": "variable",
|
|
3340
|
-
"name": "
|
|
3007
|
+
"name": "DisablingDays",
|
|
3341
3008
|
"type": {
|
|
3342
3009
|
"text": "Story"
|
|
3343
3010
|
},
|
|
3344
|
-
"default": "{ render: () =>
|
|
3011
|
+
"default": "{ render: () => { const container = document.createElement('div') container.innerHTML = `<nord-calendar value=\"2022-01-12\"></nord-calendar>` const calendar = container.querySelector('nord-calendar') calendar.isDateDisabled = function isWeekend(date) { return date.getDay() === 0 || date.getDay() === 6 } return container }, }"
|
|
3345
3012
|
},
|
|
3346
3013
|
{
|
|
3347
3014
|
"kind": "variable",
|
|
3348
|
-
"name": "
|
|
3015
|
+
"name": "Expanded",
|
|
3349
3016
|
"type": {
|
|
3350
3017
|
"text": "Story"
|
|
3351
3018
|
},
|
|
3352
|
-
"default": "{ render: () => html
|
|
3019
|
+
"default": "{ render: () => html`<nord-calendar expand></nord-calendar>`, }"
|
|
3353
3020
|
},
|
|
3354
3021
|
{
|
|
3355
3022
|
"kind": "variable",
|
|
3356
|
-
"name": "
|
|
3023
|
+
"name": "FocusDateEvent",
|
|
3357
3024
|
"type": {
|
|
3358
3025
|
"text": "Story"
|
|
3359
3026
|
},
|
|
3360
|
-
"default": "{ render: () =>
|
|
3027
|
+
"default": "{ render: () => { const container = document.createElement('div') container.innerHTML = `<nord-stack> <output></output> <nord-calendar value=\"2022-02-16\"></nord-calendar> </nord-stack>` const calendar = container.querySelector('nord-calendar') const output = container.querySelector('output') calendar.addEventListener('nord-focus-date', (e) => { const formatted = e.date.toLocaleDateString('en', { year: 'numeric', month: 'long', day: 'numeric' }) output.innerText = `Focused day: ${formatted}` }) return container }, }"
|
|
3361
3028
|
},
|
|
3362
3029
|
{
|
|
3363
3030
|
"kind": "variable",
|
|
3364
|
-
"name": "
|
|
3031
|
+
"name": "HighlightingDays",
|
|
3365
3032
|
"type": {
|
|
3366
3033
|
"text": "Story"
|
|
3367
3034
|
},
|
|
3368
|
-
"default": "{ render: () => html` <style>nord-table.scrollable { max-block-size: 240px; } nord-table.scrollable th { position: sticky; inset-block-start: 0; z-index: var(--n-index-sticky); }</style> <nord-card padding=\"none\"> <h2 slot=\"header\">Table heading</h2> <nord-table class=\"scrollable\"> <table> <thead> <tr> <th class=\"n-table-align-right\">Amount</th> <th>Status</th> <th>Description</th> <th>Method</th> <th class=\"n-table-align-right\">Date</th> <th class=\"n-table-align-right\">Actions</th> </tr> </thead> <tbody> <tr> <td class=\"n-table-align-right\">350,00 €</td> <td><nord-badge>Neutral</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">20.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">29,90 €</td> <td><nord-badge>Neutral</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">20.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">50,00 €</td> <td><nord-badge variant=\"info\">Info</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">19.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">49,00 €</td> <td><nord-badge variant=\"info\">Info</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">17.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">1023,00 €</td> <td><nord-badge variant=\"info\">Info</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">12.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">32,00 €</td> <td><nord-badge variant=\"highlight\">Highlight</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">10.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">40,00 €</td> <td><nord-badge variant=\"highlight\">Highlight</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">9.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">28,52 €</td> <td><nord-badge variant=\"highlight\">Highlight</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">4.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">350,00 €</td> <td><nord-badge variant=\"success\">Success</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">4.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">220,00 €</td> <td><nord-badge variant=\"success\">Success</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">3.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">50,00 €</td> <td><nord-badge variant=\"success\">Success</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">1.3.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">350,00 €</td> <td><nord-badge variant=\"success\">Success</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">30.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">29,90 €</td> <td><nord-badge variant=\"warning\">Warning</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">28.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">50,00 €</td> <td><nord-badge variant=\"success\">Success</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">28.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">49,00 €</td> <td><nord-badge variant=\"success\">Success</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">26.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">1023,00 €</td> <td><nord-badge variant=\"danger\">Alert</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">24.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">32,00 €</td> <td><nord-badge variant=\"success\">Success</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">23.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">40,00 €</td> <td><nord-badge variant=\"warning\">Warning</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">22.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">28,52 €</td> <td><nord-badge variant=\"warning\">Warning</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">21.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">350,00 €</td> <td><nord-badge variant=\"success\">Success</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">20.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> <tr> <td class=\"n-table-align-right\">220,00 €</td> <td><nord-badge variant=\"success\">Success</nord-badge></td> <td class=\"n-table-ellipsis\"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer adipiscing </td> <td class=\"n-caption\">Card</td> <td class=\"n-caption n-table-align-right\">18.2.2021</td> <td> <div class=\"n-table-actions\"> <nord-button size=\"s\" square> <nord-visually-hidden>Actions</nord-visually-hidden> <nord-icon name=\"interface-menu-small\"></nord-icon> </nord-button> </div> </td> </tr> </tbody> </table> </nord-table> </nord-card> `, }"
|
|
3035
|
+
"default": "{ render: () => { const container = document.createElement('div') container.innerHTML = `<nord-stack> <p>Highlighted dates are fully booked</p> <nord-calendar value=\"2022-01-12\"></nord-calendar> </nord-stack>` const calendar = container.querySelector('nord-calendar') // as an example, highlight every sixth day calendar.isDateHighlighted = (date) => { return date.getDate() % 6 === 0 ? 'fully booked' : false } return container }, }"
|
|
3369
3036
|
},
|
|
3370
3037
|
{
|
|
3371
3038
|
"kind": "variable",
|
|
3372
|
-
"name": "
|
|
3039
|
+
"name": "Inline",
|
|
3373
3040
|
"type": {
|
|
3374
3041
|
"text": "Story"
|
|
3375
3042
|
},
|
|
3376
|
-
"default": "{ render: () => html
|
|
3043
|
+
"default": "{ render: () => html`<nord-calendar style=\"--n-calendar-box-shadow: none\"></nord-calendar>`, }"
|
|
3377
3044
|
},
|
|
3378
3045
|
{
|
|
3379
3046
|
"kind": "variable",
|
|
3380
|
-
"name": "
|
|
3047
|
+
"name": "UsingMinMax",
|
|
3381
3048
|
"type": {
|
|
3382
3049
|
"text": "Story"
|
|
3383
3050
|
},
|
|
3384
|
-
"default": "{ render: () => html` <nord-
|
|
3051
|
+
"default": "{ render: () => html` <nord-calendar value=\"2021-02-14\" min=\"2021-02-08\" max=\"2021-02-21\"></nord-calendar> `, }"
|
|
3385
3052
|
}
|
|
3386
3053
|
],
|
|
3387
3054
|
"exports": [
|
|
@@ -3390,7 +3057,7 @@
|
|
|
3390
3057
|
"name": "default",
|
|
3391
3058
|
"declaration": {
|
|
3392
3059
|
"name": "meta",
|
|
3393
|
-
"module": "src/
|
|
3060
|
+
"module": "src/calendar/Calendar.stories.ts"
|
|
3394
3061
|
}
|
|
3395
3062
|
},
|
|
3396
3063
|
{
|
|
@@ -3398,7 +3065,7 @@
|
|
|
3398
3065
|
"name": "Playground",
|
|
3399
3066
|
"declaration": {
|
|
3400
3067
|
"name": "Playground",
|
|
3401
|
-
"module": "src/
|
|
3068
|
+
"module": "src/calendar/Calendar.stories.ts"
|
|
3402
3069
|
}
|
|
3403
3070
|
},
|
|
3404
3071
|
{
|
|
@@ -3406,245 +3073,529 @@
|
|
|
3406
3073
|
"name": "Basic",
|
|
3407
3074
|
"declaration": {
|
|
3408
3075
|
"name": "Basic",
|
|
3409
|
-
"module": "src/
|
|
3410
|
-
}
|
|
3411
|
-
},
|
|
3412
|
-
{
|
|
3413
|
-
"kind": "js",
|
|
3414
|
-
"name": "Padding",
|
|
3415
|
-
"declaration": {
|
|
3416
|
-
"name": "Padding",
|
|
3417
|
-
"module": "src/card/Card.stories.ts"
|
|
3418
|
-
}
|
|
3419
|
-
},
|
|
3420
|
-
{
|
|
3421
|
-
"kind": "js",
|
|
3422
|
-
"name": "ResponsiveCardLayout",
|
|
3423
|
-
"declaration": {
|
|
3424
|
-
"name": "ResponsiveCardLayout",
|
|
3425
|
-
"module": "src/card/Card.stories.ts"
|
|
3426
|
-
}
|
|
3427
|
-
},
|
|
3428
|
-
{
|
|
3429
|
-
"kind": "js",
|
|
3430
|
-
"name": "WithAlignedFooters",
|
|
3431
|
-
"declaration": {
|
|
3432
|
-
"name": "WithAlignedFooters",
|
|
3433
|
-
"module": "src/card/Card.stories.ts"
|
|
3076
|
+
"module": "src/calendar/Calendar.stories.ts"
|
|
3434
3077
|
}
|
|
3435
3078
|
},
|
|
3436
3079
|
{
|
|
3437
3080
|
"kind": "js",
|
|
3438
|
-
"name": "
|
|
3081
|
+
"name": "ChangeToday",
|
|
3439
3082
|
"declaration": {
|
|
3440
|
-
"name": "
|
|
3441
|
-
"module": "src/
|
|
3083
|
+
"name": "ChangeToday",
|
|
3084
|
+
"module": "src/calendar/Calendar.stories.ts"
|
|
3442
3085
|
}
|
|
3443
3086
|
},
|
|
3444
3087
|
{
|
|
3445
3088
|
"kind": "js",
|
|
3446
|
-
"name": "
|
|
3089
|
+
"name": "DateSelected",
|
|
3447
3090
|
"declaration": {
|
|
3448
|
-
"name": "
|
|
3449
|
-
"module": "src/
|
|
3091
|
+
"name": "DateSelected",
|
|
3092
|
+
"module": "src/calendar/Calendar.stories.ts"
|
|
3450
3093
|
}
|
|
3451
3094
|
},
|
|
3452
3095
|
{
|
|
3453
3096
|
"kind": "js",
|
|
3454
|
-
"name": "
|
|
3097
|
+
"name": "DisablingDays",
|
|
3455
3098
|
"declaration": {
|
|
3456
|
-
"name": "
|
|
3457
|
-
"module": "src/
|
|
3099
|
+
"name": "DisablingDays",
|
|
3100
|
+
"module": "src/calendar/Calendar.stories.ts"
|
|
3458
3101
|
}
|
|
3459
3102
|
},
|
|
3460
3103
|
{
|
|
3461
3104
|
"kind": "js",
|
|
3462
|
-
"name": "
|
|
3105
|
+
"name": "Expanded",
|
|
3463
3106
|
"declaration": {
|
|
3464
|
-
"name": "
|
|
3465
|
-
"module": "src/
|
|
3107
|
+
"name": "Expanded",
|
|
3108
|
+
"module": "src/calendar/Calendar.stories.ts"
|
|
3466
3109
|
}
|
|
3467
3110
|
},
|
|
3468
3111
|
{
|
|
3469
3112
|
"kind": "js",
|
|
3470
|
-
"name": "
|
|
3113
|
+
"name": "FocusDateEvent",
|
|
3471
3114
|
"declaration": {
|
|
3472
|
-
"name": "
|
|
3473
|
-
"module": "src/
|
|
3115
|
+
"name": "FocusDateEvent",
|
|
3116
|
+
"module": "src/calendar/Calendar.stories.ts"
|
|
3474
3117
|
}
|
|
3475
3118
|
},
|
|
3476
3119
|
{
|
|
3477
3120
|
"kind": "js",
|
|
3478
|
-
"name": "
|
|
3121
|
+
"name": "HighlightingDays",
|
|
3479
3122
|
"declaration": {
|
|
3480
|
-
"name": "
|
|
3481
|
-
"module": "src/
|
|
3123
|
+
"name": "HighlightingDays",
|
|
3124
|
+
"module": "src/calendar/Calendar.stories.ts"
|
|
3482
3125
|
}
|
|
3483
3126
|
},
|
|
3484
3127
|
{
|
|
3485
3128
|
"kind": "js",
|
|
3486
|
-
"name": "
|
|
3129
|
+
"name": "Inline",
|
|
3487
3130
|
"declaration": {
|
|
3488
|
-
"name": "
|
|
3489
|
-
"module": "src/
|
|
3131
|
+
"name": "Inline",
|
|
3132
|
+
"module": "src/calendar/Calendar.stories.ts"
|
|
3490
3133
|
}
|
|
3491
3134
|
},
|
|
3492
3135
|
{
|
|
3493
3136
|
"kind": "js",
|
|
3494
|
-
"name": "
|
|
3137
|
+
"name": "UsingMinMax",
|
|
3495
3138
|
"declaration": {
|
|
3496
|
-
"name": "
|
|
3497
|
-
"module": "src/
|
|
3139
|
+
"name": "UsingMinMax",
|
|
3140
|
+
"module": "src/calendar/Calendar.stories.ts"
|
|
3498
3141
|
}
|
|
3499
3142
|
}
|
|
3500
3143
|
]
|
|
3501
3144
|
},
|
|
3502
3145
|
{
|
|
3503
3146
|
"kind": "javascript-module",
|
|
3504
|
-
"path": "src/
|
|
3147
|
+
"path": "src/calendar/Calendar.ts",
|
|
3505
3148
|
"declarations": [
|
|
3506
3149
|
{
|
|
3507
3150
|
"kind": "class",
|
|
3508
|
-
"description": "
|
|
3509
|
-
"name": "
|
|
3151
|
+
"description": "Calendar allows user to pick a date. It comes with built-in\nfunctionality that allows you to set a minimum and a maximum allowed date.\nPlease note that the date must be passed in ISO-8601 format.",
|
|
3152
|
+
"name": "Calendar",
|
|
3510
3153
|
"cssProperties": [
|
|
3511
3154
|
{
|
|
3512
3155
|
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
3513
|
-
"name": "--n-
|
|
3156
|
+
"name": "--n-calendar-border-radius",
|
|
3514
3157
|
"default": "var(--n-border-radius)"
|
|
3515
3158
|
},
|
|
3516
3159
|
{
|
|
3517
3160
|
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
3518
|
-
"name": "--n-
|
|
3161
|
+
"name": "--n-calendar-box-shadow",
|
|
3519
3162
|
"default": "var(--n-box-shadow-popout)"
|
|
3163
|
+
}
|
|
3164
|
+
],
|
|
3165
|
+
"members": [
|
|
3166
|
+
{
|
|
3167
|
+
"kind": "field",
|
|
3168
|
+
"name": "monthSelectNode",
|
|
3169
|
+
"type": {
|
|
3170
|
+
"text": "HTMLElement"
|
|
3171
|
+
},
|
|
3172
|
+
"privacy": "private"
|
|
3520
3173
|
},
|
|
3521
3174
|
{
|
|
3522
|
-
"
|
|
3523
|
-
"name": "
|
|
3524
|
-
"
|
|
3175
|
+
"kind": "field",
|
|
3176
|
+
"name": "focusedDayNode",
|
|
3177
|
+
"type": {
|
|
3178
|
+
"text": "HTMLButtonElement"
|
|
3179
|
+
},
|
|
3180
|
+
"privacy": "private"
|
|
3525
3181
|
},
|
|
3526
3182
|
{
|
|
3527
|
-
"
|
|
3528
|
-
"name": "
|
|
3529
|
-
"
|
|
3183
|
+
"kind": "field",
|
|
3184
|
+
"name": "direction",
|
|
3185
|
+
"privacy": "private",
|
|
3186
|
+
"default": "new DirectionController(this)"
|
|
3187
|
+
},
|
|
3188
|
+
{
|
|
3189
|
+
"kind": "field",
|
|
3190
|
+
"name": "swipe",
|
|
3191
|
+
"privacy": "private",
|
|
3192
|
+
"default": "new SwipeController(this, { matchesGesture: isHorizontalSwipe, onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1), })"
|
|
3193
|
+
},
|
|
3194
|
+
{
|
|
3195
|
+
"kind": "field",
|
|
3196
|
+
"name": "shortcuts",
|
|
3197
|
+
"privacy": "private"
|
|
3198
|
+
},
|
|
3199
|
+
{
|
|
3200
|
+
"kind": "field",
|
|
3201
|
+
"name": "localize",
|
|
3202
|
+
"privacy": "private",
|
|
3203
|
+
"default": "new LocalizeController<'nord-calendar'>(this, { onLangChange: () => this.handleLangChange(), })"
|
|
3204
|
+
},
|
|
3205
|
+
{
|
|
3206
|
+
"kind": "field",
|
|
3207
|
+
"name": "dateFormatShort",
|
|
3208
|
+
"type": {
|
|
3209
|
+
"text": "Intl.DateTimeFormat"
|
|
3210
|
+
},
|
|
3211
|
+
"privacy": "private",
|
|
3212
|
+
"description": "Whilst dateAdapter is used for handling the formatting/parsing dates in the input,\nthese are used to format dates exclusively for the benefit of screen readers.\n\nWe prefer DateTimeFormat over date.toLocaleDateString, as the former has\nbetter performance when formatting large number of dates. See:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString#Performance"
|
|
3213
|
+
},
|
|
3214
|
+
{
|
|
3215
|
+
"kind": "field",
|
|
3216
|
+
"name": "monthNames",
|
|
3217
|
+
"type": {
|
|
3218
|
+
"text": "string[]"
|
|
3219
|
+
},
|
|
3220
|
+
"privacy": "private"
|
|
3221
|
+
},
|
|
3222
|
+
{
|
|
3223
|
+
"kind": "field",
|
|
3224
|
+
"name": "monthNamesShort",
|
|
3225
|
+
"type": {
|
|
3226
|
+
"text": "string[]"
|
|
3227
|
+
},
|
|
3228
|
+
"privacy": "private"
|
|
3229
|
+
},
|
|
3230
|
+
{
|
|
3231
|
+
"kind": "field",
|
|
3232
|
+
"name": "dayNames",
|
|
3233
|
+
"type": {
|
|
3234
|
+
"text": "string[]"
|
|
3235
|
+
},
|
|
3236
|
+
"privacy": "private"
|
|
3237
|
+
},
|
|
3238
|
+
{
|
|
3239
|
+
"kind": "field",
|
|
3240
|
+
"name": "dayNamesShort",
|
|
3241
|
+
"type": {
|
|
3242
|
+
"text": "string[]"
|
|
3243
|
+
},
|
|
3244
|
+
"privacy": "private"
|
|
3245
|
+
},
|
|
3246
|
+
{
|
|
3247
|
+
"kind": "field",
|
|
3248
|
+
"name": "value",
|
|
3249
|
+
"type": {
|
|
3250
|
+
"text": "string"
|
|
3251
|
+
},
|
|
3252
|
+
"default": "''",
|
|
3253
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
3254
|
+
"attribute": "value"
|
|
3255
|
+
},
|
|
3256
|
+
{
|
|
3257
|
+
"kind": "field",
|
|
3258
|
+
"name": "firstDayOfWeek",
|
|
3259
|
+
"type": {
|
|
3260
|
+
"text": "DaysOfWeek"
|
|
3261
|
+
},
|
|
3262
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
3263
|
+
"attribute": "first-day-of-week",
|
|
3264
|
+
"reflects": true
|
|
3265
|
+
},
|
|
3266
|
+
{
|
|
3267
|
+
"kind": "field",
|
|
3268
|
+
"name": "min",
|
|
3269
|
+
"type": {
|
|
3270
|
+
"text": "string | undefined"
|
|
3271
|
+
},
|
|
3272
|
+
"description": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the max property.",
|
|
3273
|
+
"attribute": "min",
|
|
3274
|
+
"reflects": true
|
|
3275
|
+
},
|
|
3276
|
+
{
|
|
3277
|
+
"kind": "field",
|
|
3278
|
+
"name": "max",
|
|
3279
|
+
"type": {
|
|
3280
|
+
"text": "string | undefined"
|
|
3281
|
+
},
|
|
3282
|
+
"description": "Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the min property.",
|
|
3283
|
+
"attribute": "max",
|
|
3284
|
+
"reflects": true
|
|
3285
|
+
},
|
|
3286
|
+
{
|
|
3287
|
+
"kind": "field",
|
|
3288
|
+
"name": "today",
|
|
3289
|
+
"type": {
|
|
3290
|
+
"text": "string | undefined"
|
|
3291
|
+
},
|
|
3292
|
+
"description": "The date that is considered today. Must be in IS0-8601 format: YYYY-MM-DD.\nIf not set, the current local date of the user is used.",
|
|
3293
|
+
"attribute": "today",
|
|
3294
|
+
"reflects": true
|
|
3295
|
+
},
|
|
3296
|
+
{
|
|
3297
|
+
"kind": "field",
|
|
3298
|
+
"name": "expand",
|
|
3299
|
+
"type": {
|
|
3300
|
+
"text": "boolean"
|
|
3301
|
+
},
|
|
3302
|
+
"default": "false",
|
|
3303
|
+
"description": "Controls whether the calendar expands to fill the width of its container.",
|
|
3304
|
+
"attribute": "expand",
|
|
3305
|
+
"reflects": true
|
|
3306
|
+
},
|
|
3307
|
+
{
|
|
3308
|
+
"kind": "field",
|
|
3309
|
+
"name": "isDateDisabled",
|
|
3310
|
+
"type": {
|
|
3311
|
+
"text": "DatePredicate"
|
|
3312
|
+
},
|
|
3313
|
+
"default": "isDateDisabled",
|
|
3314
|
+
"description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
|
|
3315
|
+
},
|
|
3316
|
+
{
|
|
3317
|
+
"kind": "field",
|
|
3318
|
+
"name": "isDateHighlighted",
|
|
3319
|
+
"type": {
|
|
3320
|
+
"text": "(date: Date) => string | boolean"
|
|
3321
|
+
},
|
|
3322
|
+
"default": "isDateHighlighted",
|
|
3323
|
+
"description": "Controls which days are highlighted with a small indicator.\nReturning a \"falsy\" value will not show an indicator.\nReturning \"truthy\" value will show the indicator, but without an accessible label.\nReturning a string will show the indicator, and use the string as accessible label.\nIt is recommended to return a string rather than a truthy value whenever possible."
|
|
3324
|
+
},
|
|
3325
|
+
{
|
|
3326
|
+
"kind": "field",
|
|
3327
|
+
"name": "activeFocus",
|
|
3328
|
+
"type": {
|
|
3329
|
+
"text": "boolean"
|
|
3330
|
+
},
|
|
3331
|
+
"privacy": "private",
|
|
3332
|
+
"default": "false"
|
|
3333
|
+
},
|
|
3334
|
+
{
|
|
3335
|
+
"kind": "field",
|
|
3336
|
+
"name": "focusedDay",
|
|
3337
|
+
"privacy": "private",
|
|
3338
|
+
"default": "new Date()"
|
|
3339
|
+
},
|
|
3340
|
+
{
|
|
3341
|
+
"kind": "method",
|
|
3342
|
+
"name": "focus",
|
|
3343
|
+
"parameters": [
|
|
3344
|
+
{
|
|
3345
|
+
"name": "options",
|
|
3346
|
+
"optional": true,
|
|
3347
|
+
"type": {
|
|
3348
|
+
"text": "FocusOptions & { target: 'day' | 'month' }"
|
|
3349
|
+
},
|
|
3350
|
+
"description": "An object which controls aspects of the focusing process."
|
|
3351
|
+
}
|
|
3352
|
+
],
|
|
3353
|
+
"description": "Programmatically move focus to the calendar."
|
|
3354
|
+
},
|
|
3355
|
+
{
|
|
3356
|
+
"kind": "method",
|
|
3357
|
+
"name": "handleValueChange",
|
|
3358
|
+
"privacy": "protected"
|
|
3359
|
+
},
|
|
3360
|
+
{
|
|
3361
|
+
"kind": "method",
|
|
3362
|
+
"name": "handleFocusedDayChange",
|
|
3363
|
+
"privacy": "protected"
|
|
3364
|
+
},
|
|
3365
|
+
{
|
|
3366
|
+
"kind": "method",
|
|
3367
|
+
"name": "handleLangChange",
|
|
3368
|
+
"privacy": "private"
|
|
3369
|
+
},
|
|
3370
|
+
{
|
|
3371
|
+
"kind": "field",
|
|
3372
|
+
"name": "handleDaySelect",
|
|
3373
|
+
"privacy": "private"
|
|
3374
|
+
},
|
|
3375
|
+
{
|
|
3376
|
+
"kind": "method",
|
|
3377
|
+
"name": "getToday",
|
|
3378
|
+
"privacy": "private"
|
|
3379
|
+
},
|
|
3380
|
+
{
|
|
3381
|
+
"kind": "method",
|
|
3382
|
+
"name": "addDays",
|
|
3383
|
+
"privacy": "private",
|
|
3384
|
+
"parameters": [
|
|
3385
|
+
{
|
|
3386
|
+
"name": "days",
|
|
3387
|
+
"type": {
|
|
3388
|
+
"text": "number"
|
|
3389
|
+
}
|
|
3390
|
+
}
|
|
3391
|
+
]
|
|
3392
|
+
},
|
|
3393
|
+
{
|
|
3394
|
+
"kind": "method",
|
|
3395
|
+
"name": "addMonths",
|
|
3396
|
+
"privacy": "private",
|
|
3397
|
+
"parameters": [
|
|
3398
|
+
{
|
|
3399
|
+
"name": "months",
|
|
3400
|
+
"type": {
|
|
3401
|
+
"text": "number"
|
|
3402
|
+
}
|
|
3403
|
+
}
|
|
3404
|
+
]
|
|
3405
|
+
},
|
|
3406
|
+
{
|
|
3407
|
+
"kind": "method",
|
|
3408
|
+
"name": "addYears",
|
|
3409
|
+
"privacy": "private",
|
|
3410
|
+
"parameters": [
|
|
3411
|
+
{
|
|
3412
|
+
"name": "years",
|
|
3413
|
+
"type": {
|
|
3414
|
+
"text": "number"
|
|
3415
|
+
}
|
|
3416
|
+
}
|
|
3417
|
+
]
|
|
3530
3418
|
},
|
|
3531
3419
|
{
|
|
3532
|
-
"
|
|
3533
|
-
"name": "
|
|
3534
|
-
"
|
|
3420
|
+
"kind": "method",
|
|
3421
|
+
"name": "startOfWeek",
|
|
3422
|
+
"privacy": "private"
|
|
3535
3423
|
},
|
|
3536
3424
|
{
|
|
3537
|
-
"
|
|
3538
|
-
"name": "
|
|
3539
|
-
"
|
|
3425
|
+
"kind": "method",
|
|
3426
|
+
"name": "endOfWeek",
|
|
3427
|
+
"privacy": "private"
|
|
3540
3428
|
},
|
|
3541
3429
|
{
|
|
3542
|
-
"
|
|
3543
|
-
"name": "
|
|
3544
|
-
"
|
|
3430
|
+
"kind": "method",
|
|
3431
|
+
"name": "setMonth",
|
|
3432
|
+
"privacy": "private",
|
|
3433
|
+
"parameters": [
|
|
3434
|
+
{
|
|
3435
|
+
"name": "month",
|
|
3436
|
+
"type": {
|
|
3437
|
+
"text": "number"
|
|
3438
|
+
}
|
|
3439
|
+
}
|
|
3440
|
+
]
|
|
3545
3441
|
},
|
|
3546
3442
|
{
|
|
3547
|
-
"
|
|
3548
|
-
"name": "
|
|
3549
|
-
"
|
|
3443
|
+
"kind": "method",
|
|
3444
|
+
"name": "setYear",
|
|
3445
|
+
"privacy": "private",
|
|
3446
|
+
"parameters": [
|
|
3447
|
+
{
|
|
3448
|
+
"name": "year",
|
|
3449
|
+
"type": {
|
|
3450
|
+
"text": "number"
|
|
3451
|
+
}
|
|
3452
|
+
}
|
|
3453
|
+
]
|
|
3550
3454
|
},
|
|
3551
3455
|
{
|
|
3552
|
-
"
|
|
3553
|
-
"name": "
|
|
3554
|
-
"
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3456
|
+
"kind": "method",
|
|
3457
|
+
"name": "setFocusedDay",
|
|
3458
|
+
"privacy": "private",
|
|
3459
|
+
"parameters": [
|
|
3460
|
+
{
|
|
3461
|
+
"name": "day",
|
|
3462
|
+
"type": {
|
|
3463
|
+
"text": "Date"
|
|
3464
|
+
}
|
|
3465
|
+
}
|
|
3466
|
+
]
|
|
3561
3467
|
},
|
|
3562
3468
|
{
|
|
3563
|
-
"
|
|
3564
|
-
"name": "
|
|
3469
|
+
"kind": "field",
|
|
3470
|
+
"name": "handleMonthSelect",
|
|
3471
|
+
"privacy": "private"
|
|
3565
3472
|
},
|
|
3566
3473
|
{
|
|
3567
|
-
"
|
|
3568
|
-
"name": "
|
|
3474
|
+
"kind": "field",
|
|
3475
|
+
"name": "handleYearSelect",
|
|
3476
|
+
"privacy": "private"
|
|
3569
3477
|
},
|
|
3570
|
-
{
|
|
3571
|
-
"description": "Optional slot that holds footer content for the card.",
|
|
3572
|
-
"name": "footer"
|
|
3573
|
-
}
|
|
3574
|
-
],
|
|
3575
|
-
"members": [
|
|
3576
3478
|
{
|
|
3577
3479
|
"kind": "field",
|
|
3578
|
-
"name": "
|
|
3579
|
-
"privacy": "private"
|
|
3580
|
-
"default": "new SlotController(this, 'header')"
|
|
3480
|
+
"name": "handleNextMonthClick",
|
|
3481
|
+
"privacy": "private"
|
|
3581
3482
|
},
|
|
3582
3483
|
{
|
|
3583
3484
|
"kind": "field",
|
|
3584
|
-
"name": "
|
|
3585
|
-
"privacy": "private"
|
|
3586
|
-
"default": "new SlotController(this, 'header-end')"
|
|
3485
|
+
"name": "handlePreviousMonthClick",
|
|
3486
|
+
"privacy": "private"
|
|
3587
3487
|
},
|
|
3588
3488
|
{
|
|
3589
3489
|
"kind": "field",
|
|
3590
|
-
"name": "
|
|
3591
|
-
"privacy": "private"
|
|
3592
|
-
"default": "new SlotController(this, 'footer')"
|
|
3490
|
+
"name": "enableActiveFocus",
|
|
3491
|
+
"privacy": "private"
|
|
3593
3492
|
},
|
|
3594
3493
|
{
|
|
3595
3494
|
"kind": "field",
|
|
3596
|
-
"name": "
|
|
3495
|
+
"name": "disableActiveFocus",
|
|
3496
|
+
"privacy": "private"
|
|
3497
|
+
}
|
|
3498
|
+
],
|
|
3499
|
+
"events": [
|
|
3500
|
+
{
|
|
3501
|
+
"name": "nord-focus-date",
|
|
3597
3502
|
"type": {
|
|
3598
|
-
"text": "
|
|
3503
|
+
"text": "DateSelectEvent"
|
|
3599
3504
|
},
|
|
3600
|
-
"
|
|
3601
|
-
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
3602
|
-
"attribute": "padding",
|
|
3603
|
-
"reflects": true
|
|
3505
|
+
"description": "Dispatched when the calendar's focused date changes."
|
|
3604
3506
|
},
|
|
3605
3507
|
{
|
|
3606
|
-
"kind": "field",
|
|
3607
|
-
"name": "footerDivider",
|
|
3608
3508
|
"type": {
|
|
3609
|
-
"text": "
|
|
3509
|
+
"text": "DateSelectEvent"
|
|
3610
3510
|
},
|
|
3611
|
-
"
|
|
3612
|
-
"
|
|
3613
|
-
"attribute": "footer-divider",
|
|
3614
|
-
"reflects": true
|
|
3511
|
+
"description": "Dispatched when a date is selected and the value changes.",
|
|
3512
|
+
"name": "change"
|
|
3615
3513
|
}
|
|
3616
3514
|
],
|
|
3617
3515
|
"attributes": [
|
|
3618
3516
|
{
|
|
3619
|
-
"name": "
|
|
3517
|
+
"name": "value",
|
|
3620
3518
|
"type": {
|
|
3621
|
-
"text": "
|
|
3519
|
+
"text": "string"
|
|
3622
3520
|
},
|
|
3623
|
-
"default": "'
|
|
3624
|
-
"description": "
|
|
3625
|
-
"fieldName": "
|
|
3521
|
+
"default": "''",
|
|
3522
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
3523
|
+
"fieldName": "value"
|
|
3626
3524
|
},
|
|
3627
3525
|
{
|
|
3628
|
-
"name": "
|
|
3526
|
+
"name": "first-day-of-week",
|
|
3527
|
+
"type": {
|
|
3528
|
+
"text": "DaysOfWeek"
|
|
3529
|
+
},
|
|
3530
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
3531
|
+
"fieldName": "firstDayOfWeek"
|
|
3532
|
+
},
|
|
3533
|
+
{
|
|
3534
|
+
"name": "min",
|
|
3535
|
+
"type": {
|
|
3536
|
+
"text": "string | undefined"
|
|
3537
|
+
},
|
|
3538
|
+
"description": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the max property.",
|
|
3539
|
+
"fieldName": "min"
|
|
3540
|
+
},
|
|
3541
|
+
{
|
|
3542
|
+
"name": "max",
|
|
3543
|
+
"type": {
|
|
3544
|
+
"text": "string | undefined"
|
|
3545
|
+
},
|
|
3546
|
+
"description": "Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the min property.",
|
|
3547
|
+
"fieldName": "max"
|
|
3548
|
+
},
|
|
3549
|
+
{
|
|
3550
|
+
"name": "today",
|
|
3551
|
+
"type": {
|
|
3552
|
+
"text": "string | undefined"
|
|
3553
|
+
},
|
|
3554
|
+
"description": "The date that is considered today. Must be in IS0-8601 format: YYYY-MM-DD.\nIf not set, the current local date of the user is used.",
|
|
3555
|
+
"fieldName": "today"
|
|
3556
|
+
},
|
|
3557
|
+
{
|
|
3558
|
+
"name": "expand",
|
|
3629
3559
|
"type": {
|
|
3630
3560
|
"text": "boolean"
|
|
3631
3561
|
},
|
|
3632
3562
|
"default": "false",
|
|
3633
|
-
"description": "
|
|
3634
|
-
"fieldName": "
|
|
3563
|
+
"description": "Controls whether the calendar expands to fill the width of its container.",
|
|
3564
|
+
"fieldName": "expand"
|
|
3635
3565
|
}
|
|
3636
3566
|
],
|
|
3637
3567
|
"superclass": {
|
|
3638
3568
|
"name": "LitElement",
|
|
3639
3569
|
"package": "lit"
|
|
3640
3570
|
},
|
|
3641
|
-
"localization": [
|
|
3571
|
+
"localization": [
|
|
3572
|
+
{
|
|
3573
|
+
"name": "prevMonthLabel",
|
|
3574
|
+
"description": "Accessible label for the previous month button."
|
|
3575
|
+
},
|
|
3576
|
+
{
|
|
3577
|
+
"name": "nextMonthLabel",
|
|
3578
|
+
"description": "Accessible label for the next month button."
|
|
3579
|
+
},
|
|
3580
|
+
{
|
|
3581
|
+
"name": "monthSelectLabel",
|
|
3582
|
+
"description": "Accessible label for the month select."
|
|
3583
|
+
},
|
|
3584
|
+
{
|
|
3585
|
+
"name": "yearSelectLabel",
|
|
3586
|
+
"description": "Accessible label for the year select."
|
|
3587
|
+
}
|
|
3588
|
+
],
|
|
3642
3589
|
"status": "ready",
|
|
3643
|
-
"category": "
|
|
3644
|
-
"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
|
|
3590
|
+
"category": "list",
|
|
3591
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use when the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n",
|
|
3645
3592
|
"examples": [],
|
|
3646
|
-
"dependencies": [
|
|
3647
|
-
|
|
3593
|
+
"dependencies": [
|
|
3594
|
+
"icon",
|
|
3595
|
+
"button",
|
|
3596
|
+
"visually-hidden"
|
|
3597
|
+
],
|
|
3598
|
+
"tagName": "nord-calendar",
|
|
3648
3599
|
"customElement": true
|
|
3649
3600
|
}
|
|
3650
3601
|
],
|
|
@@ -3653,16 +3604,65 @@
|
|
|
3653
3604
|
"kind": "js",
|
|
3654
3605
|
"name": "default",
|
|
3655
3606
|
"declaration": {
|
|
3656
|
-
"name": "
|
|
3657
|
-
"module": "src/
|
|
3607
|
+
"name": "Calendar",
|
|
3608
|
+
"module": "src/calendar/Calendar.ts"
|
|
3658
3609
|
}
|
|
3659
3610
|
},
|
|
3660
3611
|
{
|
|
3661
3612
|
"kind": "custom-element-definition",
|
|
3662
|
-
"name": "nord-
|
|
3613
|
+
"name": "nord-calendar",
|
|
3663
3614
|
"declaration": {
|
|
3664
|
-
"name": "
|
|
3665
|
-
"module": "src/
|
|
3615
|
+
"name": "Calendar",
|
|
3616
|
+
"module": "src/calendar/Calendar.ts"
|
|
3617
|
+
}
|
|
3618
|
+
}
|
|
3619
|
+
]
|
|
3620
|
+
},
|
|
3621
|
+
{
|
|
3622
|
+
"kind": "javascript-module",
|
|
3623
|
+
"path": "src/calendar/DateSelectEvent.ts",
|
|
3624
|
+
"declarations": [
|
|
3625
|
+
{
|
|
3626
|
+
"kind": "class",
|
|
3627
|
+
"description": "",
|
|
3628
|
+
"name": "DateSelectEvent",
|
|
3629
|
+
"superclass": {
|
|
3630
|
+
"name": "NordEvent",
|
|
3631
|
+
"module": "/src/common/events.js"
|
|
3632
|
+
}
|
|
3633
|
+
}
|
|
3634
|
+
],
|
|
3635
|
+
"exports": [
|
|
3636
|
+
{
|
|
3637
|
+
"kind": "js",
|
|
3638
|
+
"name": "DateSelectEvent",
|
|
3639
|
+
"declaration": {
|
|
3640
|
+
"name": "DateSelectEvent",
|
|
3641
|
+
"module": "src/calendar/DateSelectEvent.ts"
|
|
3642
|
+
}
|
|
3643
|
+
}
|
|
3644
|
+
]
|
|
3645
|
+
},
|
|
3646
|
+
{
|
|
3647
|
+
"kind": "javascript-module",
|
|
3648
|
+
"path": "src/calendar/localization.ts",
|
|
3649
|
+
"declarations": [
|
|
3650
|
+
{
|
|
3651
|
+
"kind": "variable",
|
|
3652
|
+
"name": "calendarLocalization",
|
|
3653
|
+
"type": {
|
|
3654
|
+
"text": "object"
|
|
3655
|
+
},
|
|
3656
|
+
"default": "{ prevMonthLabel: 'Previous month', nextMonthLabel: 'Next month', monthSelectLabel: 'Month', yearSelectLabel: 'Year', }"
|
|
3657
|
+
}
|
|
3658
|
+
],
|
|
3659
|
+
"exports": [
|
|
3660
|
+
{
|
|
3661
|
+
"kind": "js",
|
|
3662
|
+
"name": "default",
|
|
3663
|
+
"declaration": {
|
|
3664
|
+
"name": "calendarLocalization",
|
|
3665
|
+
"module": "src/calendar/localization.ts"
|
|
3666
3666
|
}
|
|
3667
3667
|
}
|
|
3668
3668
|
]
|