scu-web-components 1.3.1 → 1.3.3
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/dist/custom-elements.json +90 -8
- package/dist/custom-elements.json.gz +0 -0
- package/dist/docs/components/ScwButton.json +1 -0
- package/dist/docs/components/ScwCheckbox.json +34 -4
- package/dist/docs/components/ScwHorizontalNav.json +20 -0
- package/dist/docs/components/ScwInput.json +33 -10
- package/dist/docs/components/ScwLink.json +1 -0
- package/dist/docs/components/ScwSelect.json +23 -1
- package/dist/docs/components/manifest.json +28 -28
- package/dist/docs/config.json +5 -5
- package/dist/scw-components.js +196 -156
- package/dist/scw-components.js.gz +0 -0
- package/dist/scw.js +323 -283
- package/dist/scw.js.gz +0 -0
- package/dist/tokens/segments/comp-scw-select/_default-mixins.scss +2 -2
- package/dist/tokens/segments/comp-scw-select/_default-vars.scss +1 -2
- package/dist/tokens/segments/comp-scw-select/_size-small-mixins.scss +2 -2
- package/dist/tokens/segments/comp-scw-select/_size-small-vars.scss +1 -2
- package/dist/tokens/segments/comp-scw-select/_state-disabled-mixins.scss +2 -2
- package/dist/tokens/segments/comp-scw-select/_state-disabled-size-small-mixins.scss +2 -2
- package/dist/tokens/segments/comp-scw-select/_state-disabled-size-small-vars.scss +1 -2
- package/dist/tokens/segments/comp-scw-select/_state-disabled-vars.scss +1 -2
- package/dist/tokens/segments/comp-scw-select/_state-error-mixins.scss +2 -2
- package/dist/tokens/segments/comp-scw-select/_state-error-size-small-mixins.scss +2 -2
- package/dist/tokens/segments/comp-scw-select/_state-error-size-small-vars.scss +1 -2
- package/dist/tokens/segments/comp-scw-select/_state-error-vars.scss +1 -2
- package/dist/tokens/segments/comp-scw-select/_state-focus-mixins.scss +2 -2
- package/dist/tokens/segments/comp-scw-select/_state-focus-size-small-mixins.scss +2 -2
- package/dist/tokens/segments/comp-scw-select/_state-focus-size-small-vars.scss +1 -2
- package/dist/tokens/segments/comp-scw-select/_state-focus-vars.scss +1 -2
- package/dist/tokens/source/assets/graphic-apple-app-store.js +1 -1
- package/dist/tokens/source/assets/graphic-apple-app-store.js.gz +0 -0
- package/dist/tokens/source/assets/graphic-apple-app-store.svg +1 -1
- package/dist/tokens/source/assets/graphic-apple-app-store.svg.gz +0 -0
- package/dist/tokens/source/assets/graphic-ehl.js +1 -1
- package/dist/tokens/source/assets/graphic-ehl.js.gz +0 -0
- package/dist/tokens/source/assets/graphic-ehl.svg +1 -1
- package/dist/tokens/source/assets/graphic-ehl.svg.gz +0 -0
- package/dist/tokens/source/assets/graphic-google-play-store.js +1 -1
- package/dist/tokens/source/assets/graphic-google-play-store.js.gz +0 -0
- package/dist/tokens/source/assets/graphic-google-play-store.svg +1 -1
- package/dist/tokens/source/assets/graphic-google-play-store.svg.gz +0 -0
- package/dist/tokens/source/assets/graphic-logo.js +1 -1
- package/dist/tokens/source/assets/graphic-logo.js.gz +0 -0
- package/dist/tokens/source/assets/graphic-logo.svg +1 -1
- package/dist/tokens/source/assets/graphic-logo.svg.gz +0 -0
- package/dist/tokens/source/assets/icon-clipboard-calculator.js +1 -1
- package/dist/tokens/source/assets/icon-clipboard-calculator.js.gz +0 -0
- package/dist/tokens/source/assets/icon-clipboard-calculator.svg +1 -1
- package/dist/tokens/source/assets/icon-clipboard-calculator.svg.gz +0 -0
- package/dist/tokens/source/componentScssMixins/components-scw-select-default-.json +2 -2
- package/dist/tokens/source/componentScssMixins/components-scw-select-default-.json.gz +0 -0
- package/dist/tokens/source/componentScssMixins/components-scw-select-size-small-.json +2 -2
- package/dist/tokens/source/componentScssMixins/components-scw-select-size-small-.json.gz +0 -0
- package/dist/tokens/source/componentScssMixins/components-scw-select-state-disabled-.json +2 -2
- package/dist/tokens/source/componentScssMixins/components-scw-select-state-disabled-.json.gz +0 -0
- package/dist/tokens/source/componentScssMixins/components-scw-select-state-disabled-size-small-.json +2 -2
- package/dist/tokens/source/componentScssMixins/components-scw-select-state-disabled-size-small-.json.gz +0 -0
- package/dist/tokens/source/componentScssMixins/components-scw-select-state-error-.json +2 -2
- package/dist/tokens/source/componentScssMixins/components-scw-select-state-error-.json.gz +0 -0
- package/dist/tokens/source/componentScssMixins/components-scw-select-state-error-size-small-.json +2 -2
- package/dist/tokens/source/componentScssMixins/components-scw-select-state-error-size-small-.json.gz +0 -0
- package/dist/tokens/source/componentScssMixins/components-scw-select-state-focus-.json +2 -2
- package/dist/tokens/source/componentScssMixins/components-scw-select-state-focus-.json.gz +0 -0
- package/dist/tokens/source/componentScssMixins/components-scw-select-state-focus-size-small-.json +2 -2
- package/dist/tokens/source/componentScssMixins/components-scw-select-state-focus-size-small-.json.gz +0 -0
- package/dist/tokens/source/componentScssMixins.json +16 -16
- package/dist/tokens/source/componentScssMixins.json.gz +0 -0
- package/dist/tokens/source/componentScssMixins.scss +16 -16
- package/dist/tokens/source/jsCss.js +1 -1
- package/dist/tokens/source/jsCss.js.gz +0 -0
- package/dist/tokens/source/jsCssGenerator.js +1 -1
- package/dist/tokens/source/jsCssGenerator.js.gz +0 -0
- package/dist/tokens/source/jsCssGeneratorSansAssets.js +1 -1
- package/dist/tokens/source/jsCssGeneratorSansAssets.js.gz +0 -0
- package/dist/tokens/source/scssVariables/components-scw-select-default-.json +2 -7
- package/dist/tokens/source/scssVariables/components-scw-select-default-.json.gz +0 -0
- package/dist/tokens/source/scssVariables/components-scw-select-size-small-.json +2 -7
- package/dist/tokens/source/scssVariables/components-scw-select-size-small-.json.gz +0 -0
- package/dist/tokens/source/scssVariables/components-scw-select-state-disabled-.json +2 -7
- package/dist/tokens/source/scssVariables/components-scw-select-state-disabled-.json.gz +0 -0
- package/dist/tokens/source/scssVariables/components-scw-select-state-disabled-size-small-.json +2 -7
- package/dist/tokens/source/scssVariables/components-scw-select-state-disabled-size-small-.json.gz +0 -0
- package/dist/tokens/source/scssVariables/components-scw-select-state-error-.json +2 -7
- package/dist/tokens/source/scssVariables/components-scw-select-state-error-.json.gz +0 -0
- package/dist/tokens/source/scssVariables/components-scw-select-state-error-size-small-.json +2 -7
- package/dist/tokens/source/scssVariables/components-scw-select-state-error-size-small-.json.gz +0 -0
- package/dist/tokens/source/scssVariables/components-scw-select-state-focus-.json +2 -7
- package/dist/tokens/source/scssVariables/components-scw-select-state-focus-.json.gz +0 -0
- package/dist/tokens/source/scssVariables/components-scw-select-state-focus-size-small-.json +2 -7
- package/dist/tokens/source/scssVariables/components-scw-select-state-focus-size-small-.json.gz +0 -0
- package/dist/tokens/source/scssVariables.json +16 -56
- package/dist/tokens/source/scssVariables.json.gz +0 -0
- package/dist/tokens/source/scssVariables.scss +8 -16
- package/dist/tokens/source/tokens.json +13 -45
- package/dist/tokens/source/tokens.json.gz +0 -0
- package/dist-node/scw-components.js +262 -222
- package/dist-node/scw.js +263 -223
- package/package.json +1 -1
- package/scripts/publish/releaseNotes.mjs +10 -0
|
@@ -1222,6 +1222,7 @@
|
|
|
1222
1222
|
"default": "'false'",
|
|
1223
1223
|
"description": "(ScwLink) If the link is disabled",
|
|
1224
1224
|
"attribute": "aria-disabled",
|
|
1225
|
+
"reflects": true,
|
|
1225
1226
|
"inheritedFrom": {
|
|
1226
1227
|
"name": "ScwComponent",
|
|
1227
1228
|
"module": "src/scw-component/ScwComponent.ts"
|
|
@@ -2650,6 +2651,17 @@
|
|
|
2650
2651
|
"description": "ScwCheckbox",
|
|
2651
2652
|
"name": "ScwCheckbox",
|
|
2652
2653
|
"members": [
|
|
2654
|
+
{
|
|
2655
|
+
"kind": "field",
|
|
2656
|
+
"name": "disabled",
|
|
2657
|
+
"type": {
|
|
2658
|
+
"text": "boolean"
|
|
2659
|
+
},
|
|
2660
|
+
"default": "false",
|
|
2661
|
+
"description": "if the checkbox is disabled",
|
|
2662
|
+
"attribute": "disabled",
|
|
2663
|
+
"reflects": true
|
|
2664
|
+
},
|
|
2653
2665
|
{
|
|
2654
2666
|
"kind": "field",
|
|
2655
2667
|
"name": "selected",
|
|
@@ -2713,6 +2725,11 @@
|
|
|
2713
2725
|
"name": "handleSelectedChange",
|
|
2714
2726
|
"description": "handleSelectedChange"
|
|
2715
2727
|
},
|
|
2728
|
+
{
|
|
2729
|
+
"kind": "method",
|
|
2730
|
+
"name": "handleDisabledChange",
|
|
2731
|
+
"description": "handleDisabledChange"
|
|
2732
|
+
},
|
|
2716
2733
|
{
|
|
2717
2734
|
"kind": "method",
|
|
2718
2735
|
"name": "valueChangeHandler",
|
|
@@ -3193,6 +3210,15 @@
|
|
|
3193
3210
|
}
|
|
3194
3211
|
],
|
|
3195
3212
|
"attributes": [
|
|
3213
|
+
{
|
|
3214
|
+
"name": "disabled",
|
|
3215
|
+
"type": {
|
|
3216
|
+
"text": "boolean"
|
|
3217
|
+
},
|
|
3218
|
+
"default": "false",
|
|
3219
|
+
"description": "if the checkbox is disabled",
|
|
3220
|
+
"fieldName": "disabled"
|
|
3221
|
+
},
|
|
3196
3222
|
{
|
|
3197
3223
|
"name": "selected",
|
|
3198
3224
|
"type": {
|
|
@@ -8806,6 +8832,26 @@
|
|
|
8806
8832
|
],
|
|
8807
8833
|
"description": "handleClick"
|
|
8808
8834
|
},
|
|
8835
|
+
{
|
|
8836
|
+
"kind": "method",
|
|
8837
|
+
"name": "handleFocus",
|
|
8838
|
+
"privacy": "private",
|
|
8839
|
+
"description": "handleFocus"
|
|
8840
|
+
},
|
|
8841
|
+
{
|
|
8842
|
+
"kind": "method",
|
|
8843
|
+
"name": "handleFocusOut",
|
|
8844
|
+
"privacy": "private",
|
|
8845
|
+
"parameters": [
|
|
8846
|
+
{
|
|
8847
|
+
"name": "event",
|
|
8848
|
+
"type": {
|
|
8849
|
+
"text": "FocusEvent"
|
|
8850
|
+
}
|
|
8851
|
+
}
|
|
8852
|
+
],
|
|
8853
|
+
"description": "handleFocusOut"
|
|
8854
|
+
},
|
|
8809
8855
|
{
|
|
8810
8856
|
"kind": "field",
|
|
8811
8857
|
"name": "element",
|
|
@@ -11270,7 +11316,8 @@
|
|
|
11270
11316
|
"text": "InputTypes"
|
|
11271
11317
|
},
|
|
11272
11318
|
"description": "(ScwInput) type of input field",
|
|
11273
|
-
"attribute": "type"
|
|
11319
|
+
"attribute": "type",
|
|
11320
|
+
"reflects": true
|
|
11274
11321
|
},
|
|
11275
11322
|
{
|
|
11276
11323
|
"kind": "field",
|
|
@@ -11417,6 +11464,15 @@
|
|
|
11417
11464
|
"description": "(ScwInput) Input accept property",
|
|
11418
11465
|
"attribute": "accept"
|
|
11419
11466
|
},
|
|
11467
|
+
{
|
|
11468
|
+
"kind": "field",
|
|
11469
|
+
"name": "toolTip",
|
|
11470
|
+
"type": {
|
|
11471
|
+
"text": "string | undefined"
|
|
11472
|
+
},
|
|
11473
|
+
"description": "(ScwInput) Tooltip text",
|
|
11474
|
+
"attribute": "tooltip"
|
|
11475
|
+
},
|
|
11420
11476
|
{
|
|
11421
11477
|
"kind": "field",
|
|
11422
11478
|
"name": "input",
|
|
@@ -11496,7 +11552,7 @@
|
|
|
11496
11552
|
"kind": "field",
|
|
11497
11553
|
"name": "boundOutsideClickHandler",
|
|
11498
11554
|
"type": {
|
|
11499
|
-
"text": "(e:Event) => void"
|
|
11555
|
+
"text": "(e: Event) => void"
|
|
11500
11556
|
},
|
|
11501
11557
|
"privacy": "private"
|
|
11502
11558
|
},
|
|
@@ -12215,6 +12271,14 @@
|
|
|
12215
12271
|
"description": "(ScwInput) Input accept property",
|
|
12216
12272
|
"fieldName": "accept"
|
|
12217
12273
|
},
|
|
12274
|
+
{
|
|
12275
|
+
"name": "tooltip",
|
|
12276
|
+
"type": {
|
|
12277
|
+
"text": "string | undefined"
|
|
12278
|
+
},
|
|
12279
|
+
"description": "(ScwInput) Tooltip text",
|
|
12280
|
+
"fieldName": "toolTip"
|
|
12281
|
+
},
|
|
12218
12282
|
{
|
|
12219
12283
|
"name": "form-type",
|
|
12220
12284
|
"type": {
|
|
@@ -12766,6 +12830,7 @@
|
|
|
12766
12830
|
"default": "'false'",
|
|
12767
12831
|
"description": "(ScwLink) If the link is disabled",
|
|
12768
12832
|
"attribute": "aria-disabled",
|
|
12833
|
+
"reflects": true,
|
|
12769
12834
|
"inheritedFrom": {
|
|
12770
12835
|
"name": "ScwComponent",
|
|
12771
12836
|
"module": "src/scw-component/ScwComponent.ts"
|
|
@@ -20722,6 +20787,15 @@
|
|
|
20722
20787
|
"attribute": "open",
|
|
20723
20788
|
"reflects": true
|
|
20724
20789
|
},
|
|
20790
|
+
{
|
|
20791
|
+
"kind": "field",
|
|
20792
|
+
"name": "toolTip",
|
|
20793
|
+
"type": {
|
|
20794
|
+
"text": "string | undefined"
|
|
20795
|
+
},
|
|
20796
|
+
"description": "(ScwInput) Tooltip text",
|
|
20797
|
+
"attribute": "tooltip"
|
|
20798
|
+
},
|
|
20725
20799
|
{
|
|
20726
20800
|
"kind": "field",
|
|
20727
20801
|
"name": "input",
|
|
@@ -21395,6 +21469,14 @@
|
|
|
21395
21469
|
"description": "(ScwInput) If select is open",
|
|
21396
21470
|
"fieldName": "open"
|
|
21397
21471
|
},
|
|
21472
|
+
{
|
|
21473
|
+
"name": "tooltip",
|
|
21474
|
+
"type": {
|
|
21475
|
+
"text": "string | undefined"
|
|
21476
|
+
},
|
|
21477
|
+
"description": "(ScwInput) Tooltip text",
|
|
21478
|
+
"fieldName": "toolTip"
|
|
21479
|
+
},
|
|
21398
21480
|
{
|
|
21399
21481
|
"name": "form-type",
|
|
21400
21482
|
"type": {
|
|
@@ -29516,12 +29598,6 @@
|
|
|
29516
29598
|
}
|
|
29517
29599
|
]
|
|
29518
29600
|
},
|
|
29519
|
-
{
|
|
29520
|
-
"kind": "javascript-module",
|
|
29521
|
-
"path": "src/utils/themes/enums.ts",
|
|
29522
|
-
"declarations": [],
|
|
29523
|
-
"exports": []
|
|
29524
|
-
},
|
|
29525
29601
|
{
|
|
29526
29602
|
"kind": "javascript-module",
|
|
29527
29603
|
"path": "src/utils/testing/colorContrast.ts",
|
|
@@ -29755,6 +29831,12 @@
|
|
|
29755
29831
|
}
|
|
29756
29832
|
}
|
|
29757
29833
|
]
|
|
29834
|
+
},
|
|
29835
|
+
{
|
|
29836
|
+
"kind": "javascript-module",
|
|
29837
|
+
"path": "src/utils/themes/enums.ts",
|
|
29838
|
+
"declarations": [],
|
|
29839
|
+
"exports": []
|
|
29758
29840
|
}
|
|
29759
29841
|
]
|
|
29760
29842
|
}
|
|
Binary file
|
|
@@ -4,6 +4,17 @@
|
|
|
4
4
|
"description": "",
|
|
5
5
|
"name": "ScwCheckbox",
|
|
6
6
|
"members": [
|
|
7
|
+
{
|
|
8
|
+
"kind": "field",
|
|
9
|
+
"name": "disabled",
|
|
10
|
+
"type": {
|
|
11
|
+
"text": "boolean"
|
|
12
|
+
},
|
|
13
|
+
"default": "false",
|
|
14
|
+
"description": "if the checkbox is disabled",
|
|
15
|
+
"attribute": "disabled",
|
|
16
|
+
"reflects": true
|
|
17
|
+
},
|
|
7
18
|
{
|
|
8
19
|
"kind": "field",
|
|
9
20
|
"name": "selected",
|
|
@@ -67,6 +78,11 @@
|
|
|
67
78
|
"name": "handleSelectedChange",
|
|
68
79
|
"description": "handleSelectedChange"
|
|
69
80
|
},
|
|
81
|
+
{
|
|
82
|
+
"kind": "method",
|
|
83
|
+
"name": "handleDisabledChange",
|
|
84
|
+
"description": "handleDisabledChange"
|
|
85
|
+
},
|
|
70
86
|
{
|
|
71
87
|
"kind": "method",
|
|
72
88
|
"name": "valueChangeHandler",
|
|
@@ -547,6 +563,15 @@
|
|
|
547
563
|
}
|
|
548
564
|
],
|
|
549
565
|
"attributes": [
|
|
566
|
+
{
|
|
567
|
+
"name": "disabled",
|
|
568
|
+
"type": {
|
|
569
|
+
"text": "boolean"
|
|
570
|
+
},
|
|
571
|
+
"default": "false",
|
|
572
|
+
"description": "if the checkbox is disabled",
|
|
573
|
+
"fieldName": "disabled"
|
|
574
|
+
},
|
|
550
575
|
{
|
|
551
576
|
"name": "selected",
|
|
552
577
|
"type": {
|
|
@@ -780,7 +805,7 @@
|
|
|
780
805
|
{
|
|
781
806
|
"title": "Simple",
|
|
782
807
|
"description": "A basic checkbox with a label",
|
|
783
|
-
"code": "\n <scw-checkbox aria-label=\"checkbox\"></scw-checkbox>\n <scw-checkbox
|
|
808
|
+
"code": "\n <scw-checkbox aria-label=\"checkbox\"></scw-checkbox>\n <scw-checkbox disabled aria-label=\"disabled\"></scw-checkbox>\n <scw-checkbox selected aria-label=\"checked\"></scw-checkbox>"
|
|
784
809
|
},
|
|
785
810
|
{
|
|
786
811
|
"title": "Feedback",
|
|
@@ -789,13 +814,18 @@
|
|
|
789
814
|
},
|
|
790
815
|
{
|
|
791
816
|
"title": "Validation",
|
|
792
|
-
"description": "scw-validation can be used to set validation rules with
|
|
793
|
-
"code": "<scw-checkbox required
|
|
817
|
+
"description": "scw-validation can be used to set validation rules with\n feedback. You can also set required, required-feedback, and\n required-label on fields that are required.",
|
|
818
|
+
"code": "<scw-checkbox required\n aria-label=\"checkbox\">\n </scw-checkbox>"
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"title": "Disabled",
|
|
822
|
+
"description": "The \"aria-disabled\" and \"disabled\" attributes\n have the same effect, but using \"aria-disabled\" will cause\n accessiblity issues. The \"disabled\" attribute should be\n should be used instead.",
|
|
823
|
+
"code": "\n <scw-checkbox\n disabled\n aria-label=\"disabled with Boolean attribute (preferred)\">\n </scw-checkbox>\n <scw-checkbox\n aria-disabled=\"true\"\n aria-label=\"disabled with ARIA attribute\"></scw-checkbox>\n "
|
|
794
824
|
},
|
|
795
825
|
{
|
|
796
826
|
"title": "Alignment",
|
|
797
827
|
"description": "By default text is aligned to the center of the checkbox.\n Text can also be set to align to the top by setting alignment = top.",
|
|
798
|
-
"code": "<scw-checkbox
|
|
828
|
+
"code": "<scw-checkbox\n aria-label=\"Aliquam blandit, odio id tincidunt faucibus, nisi massa\n pretium orci, vel commodo lacus elit non est. Proin condimentum iaculis\n sodales. In convallis augue eros, et semper justo consequat tempus.\n Fusce blandit ultrices diam, non porta risus elementum ut. Curabitur est\n nisi, vulputate eu convallis non, dapibus non lacus.\">\n </scw-checkbox>\n <scw-checkbox\n alignment=\"top\"\n aria-label=\"Aliquam blandit, odio id tincidunt faucibus, nisi massa\n pretium orci, vel commodo lacus elit non est. Proin condimentum iaculis\n sodales. In convallis augue eros, et semper justo consequat tempus.\n Fusce blandit ultrices diam, non porta risus elementum ut. Curabitur est\n nisi, vulputate eu convallis non, dapibus non lacus.\">\n </scw-checkbox>"
|
|
799
829
|
}
|
|
800
830
|
]
|
|
801
831
|
}
|
|
@@ -361,6 +361,26 @@
|
|
|
361
361
|
],
|
|
362
362
|
"description": "handleClick"
|
|
363
363
|
},
|
|
364
|
+
{
|
|
365
|
+
"kind": "method",
|
|
366
|
+
"name": "handleFocus",
|
|
367
|
+
"privacy": "private",
|
|
368
|
+
"description": "handleFocus"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"kind": "method",
|
|
372
|
+
"name": "handleFocusOut",
|
|
373
|
+
"privacy": "private",
|
|
374
|
+
"parameters": [
|
|
375
|
+
{
|
|
376
|
+
"name": "event",
|
|
377
|
+
"type": {
|
|
378
|
+
"text": "FocusEvent"
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"description": "handleFocusOut"
|
|
383
|
+
},
|
|
364
384
|
{
|
|
365
385
|
"kind": "field",
|
|
366
386
|
"name": "element",
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"text": "InputTypes"
|
|
22
22
|
},
|
|
23
23
|
"description": "(ScwInput) type of input field",
|
|
24
|
-
"attribute": "type"
|
|
24
|
+
"attribute": "type",
|
|
25
|
+
"reflects": true
|
|
25
26
|
},
|
|
26
27
|
{
|
|
27
28
|
"kind": "field",
|
|
@@ -168,6 +169,15 @@
|
|
|
168
169
|
"description": "(ScwInput) Input accept property",
|
|
169
170
|
"attribute": "accept"
|
|
170
171
|
},
|
|
172
|
+
{
|
|
173
|
+
"kind": "field",
|
|
174
|
+
"name": "toolTip",
|
|
175
|
+
"type": {
|
|
176
|
+
"text": "string | undefined"
|
|
177
|
+
},
|
|
178
|
+
"description": "(ScwInput) Tooltip text",
|
|
179
|
+
"attribute": "tooltip"
|
|
180
|
+
},
|
|
171
181
|
{
|
|
172
182
|
"kind": "field",
|
|
173
183
|
"name": "input",
|
|
@@ -247,7 +257,7 @@
|
|
|
247
257
|
"kind": "field",
|
|
248
258
|
"name": "boundOutsideClickHandler",
|
|
249
259
|
"type": {
|
|
250
|
-
"text": "(e:Event) => void"
|
|
260
|
+
"text": "(e: Event) => void"
|
|
251
261
|
},
|
|
252
262
|
"privacy": "private"
|
|
253
263
|
},
|
|
@@ -966,6 +976,14 @@
|
|
|
966
976
|
"description": "(ScwInput) Input accept property",
|
|
967
977
|
"fieldName": "accept"
|
|
968
978
|
},
|
|
979
|
+
{
|
|
980
|
+
"name": "tooltip",
|
|
981
|
+
"type": {
|
|
982
|
+
"text": "string | undefined"
|
|
983
|
+
},
|
|
984
|
+
"description": "(ScwInput) Tooltip text",
|
|
985
|
+
"fieldName": "toolTip"
|
|
986
|
+
},
|
|
969
987
|
{
|
|
970
988
|
"name": "form-type",
|
|
971
989
|
"type": {
|
|
@@ -1171,8 +1189,8 @@
|
|
|
1171
1189
|
"examples": [
|
|
1172
1190
|
{
|
|
1173
1191
|
"title": "Simple",
|
|
1174
|
-
"description": "A basic input with a label, placeholder, and default
|
|
1175
|
-
"code": "\n <scw-input
|
|
1192
|
+
"description": "A basic input with a label, placeholder, and default\n feedback set. Can also be different sizes such as small.",
|
|
1193
|
+
"code": "\n <scw-input\n scw-padding-bottom-2s\n default-feedback=\"Feedback\"\n placeholder=\"Placeholder\"\n label=\"Label\">\n </scw-input>\n <scw-input\n default-feedback=\"Feedback\"\n placeholder=\"Placeholder\"\n label=\"Label\"\n size=\"small\" >\n </scw-input>"
|
|
1176
1194
|
},
|
|
1177
1195
|
{
|
|
1178
1196
|
"title": "Value",
|
|
@@ -1181,33 +1199,38 @@
|
|
|
1181
1199
|
},
|
|
1182
1200
|
{
|
|
1183
1201
|
"title": "Disabled",
|
|
1184
|
-
"description": "The input can be disabled using ari-disabled
|
|
1202
|
+
"description": "The input can be disabled using ari-disabled\n preventing it from being interacted with. The input can also\n be set to read-only also preventing it from being interacted with.",
|
|
1185
1203
|
"code": "\n <scw-input\n label=\"Label\"\n value=\"Disabled\"\n aria-disabled=\"true\">\n </scw-input>\n <scw-input\n read-only\n label=\"Label\"\n value=\"Read Only\">\n </scw-input>"
|
|
1186
1204
|
},
|
|
1187
1205
|
{
|
|
1188
1206
|
"title": "Validation",
|
|
1189
|
-
"description": "scw-validation can be used to set validation rules with
|
|
1207
|
+
"description": "scw-validation can be used to set validation rules with\n feedback. You can also set required, required-feedback, and\n required-label on fields that are required. The default\n required-label is \"*\"",
|
|
1190
1208
|
"code": "\n <scw-input\n label=\"Required Email\"\n placeholder=\"Placeholder\"\n required\n required-feedback=\"this is so required\">\n <scw-validation>\n <scw-validate\n type=\"email\"\n feedback=\"Email, email, email...\">\n </scw-validate>\n </scw-validation>\n </scw-input>"
|
|
1191
1209
|
},
|
|
1192
1210
|
{
|
|
1193
1211
|
"title": "Types",
|
|
1194
|
-
"description": "You can set the input to auto format by\n changing the type. The current auto formats are telephone
|
|
1212
|
+
"description": "You can set the input to auto format by\n changing the type. The current auto formats are telephone,\n number, date, SSN, and currency. You can also use the password\n type to hide the input and the file type for selecting files.",
|
|
1195
1213
|
"code": "\n <scw-input\n scw-padding-bottom-2s\n label=\"Date\"\n placeholder=\"Date\"\n default-feedback=\"mm/dd/yyyy\"\n type=\"date\">\n </scw-input>\n <scw-input\n label=\"Currency\"\n placeholder=\"Currency\"\n type=\"currency\">\n </scw-input>\n <scw-input\n label=\"Number\"\n placeholder=\"Number\"\n type=\"number\">\n </scw-input>\n <scw-input\n label=\"Password\"\n placeholder=\"Password\"\n type=\"password\">\n </scw-input>\n <scw-input\n label=\"SSN/ITIN\"\n placeholder=\"SSN/ITIN\"\n type=\"ssn\">\n </scw-input>\n <scw-input\n type=\"file\"\n required\n label=\"File\">\n </scw-input>\n "
|
|
1196
1214
|
},
|
|
1197
1215
|
{
|
|
1198
1216
|
"title": "Clear",
|
|
1199
|
-
"description": "The clearable attribute makes a icon appear to
|
|
1217
|
+
"description": "The clearable attribute makes a icon appear to\n clear the input. The icon will be hidden when there is no value.",
|
|
1200
1218
|
"code": "\n <scw-input\n value=\"clearable\"\n clearable>\n </scw-input>"
|
|
1201
1219
|
},
|
|
1220
|
+
{
|
|
1221
|
+
"title": "Tooltip",
|
|
1222
|
+
"description": "The tooltip text.",
|
|
1223
|
+
"code": "\n <scw-input\n label=\"tooltip\"\n tooltip=\"Tooltip Text\"\n >\n </scw-input>"
|
|
1224
|
+
},
|
|
1202
1225
|
{
|
|
1203
1226
|
"title": "Icons",
|
|
1204
|
-
"description": "Icons can be added to the left and right of the
|
|
1227
|
+
"description": "Icons can be added to the left and right of the\n input field",
|
|
1205
1228
|
"code": "\n <scw-input\n right-icon=\"icon-envelope\"\n left-icon=\"icon-search\"\n placeholder=\"icon\">\n </scw-input>"
|
|
1206
1229
|
},
|
|
1207
1230
|
{
|
|
1208
1231
|
"title": "Dropdown",
|
|
1209
1232
|
"description": "A dropdown that appears when the input is selected. Fires\n scu-dropdown when clicked",
|
|
1210
|
-
"code": "\n <scw-input
|
|
1233
|
+
"code": "\n <scw-input\n dropdown-text=\"Dropdown Text\"\n dropdown-icon=\"icon-location-dot\"\n left-icon=\"icon-search\"\n\n\n scw-padding-bottom-2s\n default-feedback=\"Feedback\"\n placeholder=\"Placeholder\"\n label=\"Label\">\n </scw-input>\n <scw-input\n size=\"small\"\n dropdown-text=\"Dropdown Text\"\n dropdown-icon=\"icon-location-dot\"\n left-icon=\"icon-search\"\n scw-padding-bottom-2s\n default-feedback=\"Feedback\"\n placeholder=\"Placeholder\"\n label=\"Label\">\n </scw-input>"
|
|
1211
1234
|
},
|
|
1212
1235
|
{
|
|
1213
1236
|
"title": "Events",
|
|
@@ -45,6 +45,15 @@
|
|
|
45
45
|
"attribute": "open",
|
|
46
46
|
"reflects": true
|
|
47
47
|
},
|
|
48
|
+
{
|
|
49
|
+
"kind": "field",
|
|
50
|
+
"name": "toolTip",
|
|
51
|
+
"type": {
|
|
52
|
+
"text": "string | undefined"
|
|
53
|
+
},
|
|
54
|
+
"description": "(ScwInput) Tooltip text",
|
|
55
|
+
"attribute": "tooltip"
|
|
56
|
+
},
|
|
48
57
|
{
|
|
49
58
|
"kind": "field",
|
|
50
59
|
"name": "input",
|
|
@@ -718,6 +727,14 @@
|
|
|
718
727
|
"description": "(ScwInput) If select is open",
|
|
719
728
|
"fieldName": "open"
|
|
720
729
|
},
|
|
730
|
+
{
|
|
731
|
+
"name": "tooltip",
|
|
732
|
+
"type": {
|
|
733
|
+
"text": "string | undefined"
|
|
734
|
+
},
|
|
735
|
+
"description": "(ScwInput) Tooltip text",
|
|
736
|
+
"fieldName": "toolTip"
|
|
737
|
+
},
|
|
721
738
|
{
|
|
722
739
|
"name": "form-type",
|
|
723
740
|
"type": {
|
|
@@ -935,11 +952,16 @@
|
|
|
935
952
|
},
|
|
936
953
|
{
|
|
937
954
|
"title": "Dynamic",
|
|
938
|
-
"code": "\n <scw-stack>\n <scw-select\n label=\"Label\"\n value=\"saab\"\n dynamic>\n <scw-option aria-label=\"Volvo\" value=\"volvo\"></scw-option>\n <scw-option aria-label=\"Saab\" value=\"saab\"></scw-option>\n <scw-option aria-label=\"Mercedes\" value=\"mercedes\"></scw-option>\n <scw-option aria-label=\"Audi\" value=\"audi\"></scw-option>\n </scw-select>\n <scw-link\n aria-label=\"Change\"\n onclick=\"\n const ran = Math.random()
|
|
955
|
+
"code": "\n <scw-stack>\n <scw-select\n label=\"Label\"\n value=\"saab\"\n dynamic>\n <scw-option aria-label=\"Volvo\" value=\"volvo\"></scw-option>\n <scw-option aria-label=\"Saab\" value=\"saab\"></scw-option>\n <scw-option aria-label=\"Mercedes\" value=\"mercedes\"></scw-option>\n <scw-option aria-label=\"Audi\" value=\"audi\"></scw-option>\n </scw-select>\n <scw-link\n aria-label=\"Change\"\n onclick=\"\n const ran = Math.random();\n this.previousElementSibling.innerHTML = `\n <scw-option aria-label='Volvo ${ran}' value='volvo'></scw-option>\n <scw-option aria-label='Saab ${ran}' value='saab'></scw-option>\n <scw-option aria-label='Mercedes ${ran}' value='mercedes'></scw-option>\n <scw-option aria-label='Audi ${ran}' value='audi'></scw-option>\n `;\">\n </scw-link>\n </scw-stack>"
|
|
939
956
|
},
|
|
940
957
|
{
|
|
941
958
|
"title": "Placeholder",
|
|
942
959
|
"code": "\n <scw-select\n label=\"Label\"\n placeholder=\"Placeholder\"\n required>\n <scw-option aria-label=\"Volvo\" value=\"default\"></scw-option>\n <scw-option aria-label=\"Saab\" value=\"saab\"></scw-option>\n <scw-option aria-label=\"Mercedes\" value=\"anemail@email.com\"></scw-option>\n <scw-option aria-label=\"Audi\" value=\"audi\">Audi</scw-option>\n <scw-validation>\n <scw-validate\n type=\"email\"\n feedback=\"Email, email, email...\">\n </scw-validate>\n </scw-validation>\n </scw-select>"
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"title": "Tooltip",
|
|
963
|
+
"description": "A tooltip can be added to the select element",
|
|
964
|
+
"code": "\n <scw-select\n label=\"Label\"\n tooltip=\"This is a tooltip\"\n placeholder=\"Placeholder\"\n required>\n <scw-option aria-label=\"Volvo\" value=\"default\"></scw-option>\n <scw-option aria-label=\"Saab\" value=\"saab\"></scw-option>\n <scw-option aria-label=\"Mercedes\" value=\"anemail@email.com\"></scw-option>\n <scw-option aria-label=\"Audi\" value=\"audi\">Audi</scw-option>\n </scw-select>"
|
|
943
965
|
}
|
|
944
966
|
]
|
|
945
967
|
}
|
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
"tagName": "scw-alert",
|
|
12
12
|
"category": "interactive"
|
|
13
13
|
},
|
|
14
|
-
{
|
|
15
|
-
"name": "ScwBlock",
|
|
16
|
-
"fileName": "ScwBlock.json",
|
|
17
|
-
"tagName": "scw-block",
|
|
18
|
-
"category": "interactive"
|
|
19
|
-
},
|
|
20
14
|
{
|
|
21
15
|
"name": "ScwButton",
|
|
22
16
|
"fileName": "ScwButton.json",
|
|
23
17
|
"tagName": "scw-button",
|
|
24
18
|
"category": "interactive"
|
|
25
19
|
},
|
|
20
|
+
{
|
|
21
|
+
"name": "ScwBlock",
|
|
22
|
+
"fileName": "ScwBlock.json",
|
|
23
|
+
"tagName": "scw-block",
|
|
24
|
+
"category": "interactive"
|
|
25
|
+
},
|
|
26
26
|
{
|
|
27
27
|
"name": "ScwCallout",
|
|
28
28
|
"fileName": "ScwCallout.json",
|
|
@@ -125,6 +125,12 @@
|
|
|
125
125
|
"tagName": "scw-floating-button",
|
|
126
126
|
"category": "interactive"
|
|
127
127
|
},
|
|
128
|
+
{
|
|
129
|
+
"name": "ScwForm",
|
|
130
|
+
"fileName": "ScwForm.json",
|
|
131
|
+
"tagName": "scw-form",
|
|
132
|
+
"category": "form"
|
|
133
|
+
},
|
|
128
134
|
{
|
|
129
135
|
"name": "ScwFormComponent",
|
|
130
136
|
"fileName": "ScwFormComponent.json",
|
|
@@ -132,10 +138,10 @@
|
|
|
132
138
|
"category": "base"
|
|
133
139
|
},
|
|
134
140
|
{
|
|
135
|
-
"name": "
|
|
136
|
-
"fileName": "
|
|
137
|
-
"tagName": "scw-
|
|
138
|
-
"category": "
|
|
141
|
+
"name": "ScwHorizontalNav",
|
|
142
|
+
"fileName": "ScwHorizontalNav.json",
|
|
143
|
+
"tagName": "scw-horizontal-nav",
|
|
144
|
+
"category": "interactive"
|
|
139
145
|
},
|
|
140
146
|
{
|
|
141
147
|
"name": "ScwHorizontalNavItem",
|
|
@@ -149,12 +155,6 @@
|
|
|
149
155
|
"tagName": "scw-horizontal-nav-panel",
|
|
150
156
|
"category": "interactive"
|
|
151
157
|
},
|
|
152
|
-
{
|
|
153
|
-
"name": "ScwHorizontalNav",
|
|
154
|
-
"fileName": "ScwHorizontalNav.json",
|
|
155
|
-
"tagName": "scw-horizontal-nav",
|
|
156
|
-
"category": "interactive"
|
|
157
|
-
},
|
|
158
158
|
{
|
|
159
159
|
"name": "ScwIconFeature",
|
|
160
160
|
"fileName": "ScwIconFeature.json",
|
|
@@ -179,18 +179,18 @@
|
|
|
179
179
|
"tagName": "scw-layout-component",
|
|
180
180
|
"category": "layouts"
|
|
181
181
|
},
|
|
182
|
-
{
|
|
183
|
-
"name": "ScwLink",
|
|
184
|
-
"fileName": "ScwLink.json",
|
|
185
|
-
"tagName": "scw-link",
|
|
186
|
-
"category": "interactive"
|
|
187
|
-
},
|
|
188
182
|
{
|
|
189
183
|
"name": "ScwLinkBase",
|
|
190
184
|
"fileName": "ScwLinkBase.json",
|
|
191
185
|
"tagName": "scw-link-base",
|
|
192
186
|
"category": "interactive"
|
|
193
187
|
},
|
|
188
|
+
{
|
|
189
|
+
"name": "ScwLink",
|
|
190
|
+
"fileName": "ScwLink.json",
|
|
191
|
+
"tagName": "scw-link",
|
|
192
|
+
"category": "interactive"
|
|
193
|
+
},
|
|
194
194
|
{
|
|
195
195
|
"name": "ScwMenu",
|
|
196
196
|
"fileName": "ScwMenu.json",
|
|
@@ -227,18 +227,18 @@
|
|
|
227
227
|
"tagName": "scw-option",
|
|
228
228
|
"category": "form"
|
|
229
229
|
},
|
|
230
|
-
{
|
|
231
|
-
"name": "ScwPageAlert",
|
|
232
|
-
"fileName": "ScwPageAlert.json",
|
|
233
|
-
"tagName": "scw-page-alert",
|
|
234
|
-
"category": "interactive"
|
|
235
|
-
},
|
|
236
230
|
{
|
|
237
231
|
"name": "ScwPaneComponent",
|
|
238
232
|
"fileName": "ScwPaneComponent.json",
|
|
239
233
|
"tagName": "scw-pane-component",
|
|
240
234
|
"category": "layouts"
|
|
241
235
|
},
|
|
236
|
+
{
|
|
237
|
+
"name": "ScwPageAlert",
|
|
238
|
+
"fileName": "ScwPageAlert.json",
|
|
239
|
+
"tagName": "scw-page-alert",
|
|
240
|
+
"category": "interactive"
|
|
241
|
+
},
|
|
242
242
|
{
|
|
243
243
|
"name": "ScwProductCard",
|
|
244
244
|
"fileName": "ScwProductCard.json",
|
package/dist/docs/config.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Summit Credit Union Web Design System (SCW)",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"navigation": [
|
|
5
5
|
{
|
|
6
6
|
"id": "tokens",
|
|
7
7
|
"title": "Component SASS",
|
|
8
|
-
"url": "../tokens/tokens.html?1.3.
|
|
8
|
+
"url": "../tokens/tokens.html?1.3.3"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
"id": "css",
|
|
12
12
|
"title": "CSS",
|
|
13
|
-
"url": "../tokens/css.html?clipboardType=classes&1.3.
|
|
13
|
+
"url": "../tokens/css.html?clipboardType=classes&1.3.3"
|
|
14
14
|
}
|
|
15
15
|
],
|
|
16
|
-
"moduleEmbed": "const scw = await import('../scw.js?
|
|
17
|
-
"cssLink": "../scw.css?
|
|
16
|
+
"moduleEmbed": "const scw = await import('../scw.js?1750695583260'); scw.defineComponents();",
|
|
17
|
+
"cssLink": "../scw.css?1750695583260",
|
|
18
18
|
"documents": [
|
|
19
19
|
{
|
|
20
20
|
"title": "Install",
|