@carbon/ibm-products-web-components 0.17.0 → 0.18.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 +218 -10
- package/es/components/about-modal/about-modal.scss.js +1 -1
- package/es/components/options-tile/options-tile.d.ts +6 -6
- package/es/components/options-tile/options-tile.js +25 -25
- package/es/components/options-tile/options-tile.js.map +1 -1
- package/es/components/options-tile/options-tile.scss.js +1 -1
- package/es/components/options-tile/options-tile.test.js +4 -4
- package/es/components/options-tile/options-tile.test.js.map +1 -1
- package/es/components/side-panel/side-panel.scss.js +1 -1
- package/es/components/tearsheet/tearsheet.d.ts +3 -0
- package/es/components/tearsheet/tearsheet.js +39 -1
- package/es/components/tearsheet/tearsheet.js.map +1 -1
- package/es/components/tearsheet/tearsheet.scss.js +1 -1
- package/es/components/tearsheet/tearsheet.test.js +27 -1
- package/es/components/tearsheet/tearsheet.test.js.map +1 -1
- package/es/components/tearsheet/utils.d.ts +3 -0
- package/es/components/tearsheet/utils.js +40 -1
- package/es/components/tearsheet/utils.js.map +1 -1
- package/es/components/truncated-text/index.d.ts +9 -0
- package/es/components/truncated-text/index.js +9 -0
- package/es/components/truncated-text/index.js.map +1 -0
- package/es/components/truncated-text/truncated-text.d.ts +73 -0
- package/es/components/truncated-text/truncated-text.js +232 -0
- package/es/components/truncated-text/truncated-text.js.map +1 -0
- package/es/components/truncated-text/truncated-text.scss.js +13 -0
- package/es/components/truncated-text/truncated-text.scss.js.map +1 -0
- package/es/components/truncated-text/truncated-text.test.d.ts +7 -0
- package/es/components/truncated-text/truncated-text.test.js +77 -0
- package/es/components/truncated-text/truncated-text.test.js.map +1 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/index.js.map +1 -1
- package/es/package.json.js +1 -1
- package/es-custom/components/about-modal/about-modal.scss.js +1 -1
- package/es-custom/components/options-tile/options-tile.d.ts +6 -6
- package/es-custom/components/options-tile/options-tile.js +25 -25
- package/es-custom/components/options-tile/options-tile.js.map +1 -1
- package/es-custom/components/options-tile/options-tile.scss.js +1 -1
- package/es-custom/components/options-tile/options-tile.test.js +4 -4
- package/es-custom/components/options-tile/options-tile.test.js.map +1 -1
- package/es-custom/components/side-panel/side-panel.scss.js +1 -1
- package/es-custom/components/tearsheet/tearsheet.d.ts +3 -0
- package/es-custom/components/tearsheet/tearsheet.js +39 -1
- package/es-custom/components/tearsheet/tearsheet.js.map +1 -1
- package/es-custom/components/tearsheet/tearsheet.scss.js +1 -1
- package/es-custom/components/tearsheet/tearsheet.test.js +27 -1
- package/es-custom/components/tearsheet/tearsheet.test.js.map +1 -1
- package/es-custom/components/tearsheet/utils.d.ts +3 -0
- package/es-custom/components/tearsheet/utils.js +40 -1
- package/es-custom/components/tearsheet/utils.js.map +1 -1
- package/es-custom/components/truncated-text/index.d.ts +9 -0
- package/es-custom/components/truncated-text/index.js +9 -0
- package/es-custom/components/truncated-text/index.js.map +1 -0
- package/es-custom/components/truncated-text/truncated-text.d.ts +73 -0
- package/es-custom/components/truncated-text/truncated-text.js +232 -0
- package/es-custom/components/truncated-text/truncated-text.js.map +1 -0
- package/es-custom/components/truncated-text/truncated-text.scss.js +13 -0
- package/es-custom/components/truncated-text/truncated-text.scss.js.map +1 -0
- package/es-custom/components/truncated-text/truncated-text.test.d.ts +7 -0
- package/es-custom/components/truncated-text/truncated-text.test.js +77 -0
- package/es-custom/components/truncated-text/truncated-text.test.js.map +1 -0
- package/es-custom/index.d.ts +1 -0
- package/es-custom/index.js +1 -0
- package/es-custom/index.js.map +1 -1
- package/es-custom/package.json.js +1 -1
- package/lib/components/options-tile/options-tile.d.ts +6 -6
- package/lib/components/tearsheet/tearsheet.d.ts +3 -0
- package/lib/components/tearsheet/utils.d.ts +3 -0
- package/lib/components/truncated-text/index.d.ts +9 -0
- package/lib/components/truncated-text/truncated-text.d.ts +73 -0
- package/lib/components/truncated-text/truncated-text.test.d.ts +7 -0
- package/lib/index.d.ts +1 -0
- package/package.json +9 -9
- package/scss/components/api-key-modal/story-styles.scss +10 -0
- package/scss/components/options-tile/options-tile.scss +31 -5
- package/scss/components/tearsheet/tearsheet.scss +22 -6
- package/scss/components/truncated-text/story-styles.scss +13 -0
- package/scss/components/truncated-text/truncated-text.scss +122 -0
package/custom-elements.json
CHANGED
@@ -259,14 +259,14 @@
|
|
259
259
|
"default": "false"
|
260
260
|
},
|
261
261
|
{
|
262
|
-
"name": "
|
263
|
-
"description": "
|
262
|
+
"name": "titleId",
|
263
|
+
"description": "ID for the title",
|
264
264
|
"type": "string",
|
265
265
|
"default": "\"\""
|
266
266
|
},
|
267
267
|
{
|
268
|
-
"name": "
|
269
|
-
"description": "
|
268
|
+
"name": "titleText",
|
269
|
+
"description": "Text for the title",
|
270
270
|
"type": "string",
|
271
271
|
"default": "\"\""
|
272
272
|
},
|
@@ -286,16 +286,16 @@
|
|
286
286
|
"default": "false"
|
287
287
|
},
|
288
288
|
{
|
289
|
-
"name": "
|
290
|
-
"attribute": "
|
291
|
-
"description": "
|
289
|
+
"name": "titleId",
|
290
|
+
"attribute": "titleId",
|
291
|
+
"description": "ID for the title",
|
292
292
|
"type": "string",
|
293
293
|
"default": "\"\""
|
294
294
|
},
|
295
295
|
{
|
296
|
-
"name": "
|
297
|
-
"attribute": "
|
298
|
-
"description": "
|
296
|
+
"name": "titleText",
|
297
|
+
"attribute": "titleText",
|
298
|
+
"description": "Text for the title",
|
299
299
|
"type": "string",
|
300
300
|
"default": "\"\""
|
301
301
|
},
|
@@ -703,6 +703,214 @@
|
|
703
703
|
}
|
704
704
|
]
|
705
705
|
},
|
706
|
+
{
|
707
|
+
"name": "c4p-truncated-text",
|
708
|
+
"path": "./src/components/truncated-text/truncated-text.ts",
|
709
|
+
"description": "TruncatedText.",
|
710
|
+
"attributes": [
|
711
|
+
{
|
712
|
+
"name": "lines",
|
713
|
+
"description": "The maximum number of lines to display before truncation.",
|
714
|
+
"type": "number",
|
715
|
+
"default": "0"
|
716
|
+
},
|
717
|
+
{
|
718
|
+
"name": "value",
|
719
|
+
"description": "The string value to be truncated.",
|
720
|
+
"type": "string",
|
721
|
+
"default": "\"\""
|
722
|
+
},
|
723
|
+
{
|
724
|
+
"name": "align",
|
725
|
+
"description": "Specify how the tooltip should align with the content.",
|
726
|
+
"type": "string",
|
727
|
+
"default": "\"top\""
|
728
|
+
},
|
729
|
+
{
|
730
|
+
"name": "autoalign",
|
731
|
+
"description": "Specify whether a auto align functionality should be applied",
|
732
|
+
"type": "boolean",
|
733
|
+
"default": "false"
|
734
|
+
},
|
735
|
+
{
|
736
|
+
"name": "expand-label",
|
737
|
+
"description": "The label on expand button.",
|
738
|
+
"type": "string",
|
739
|
+
"default": "\"View more\""
|
740
|
+
},
|
741
|
+
{
|
742
|
+
"name": "collapse-label",
|
743
|
+
"description": "The label on the collapse button.",
|
744
|
+
"type": "string",
|
745
|
+
"default": "\"View less\""
|
746
|
+
},
|
747
|
+
{
|
748
|
+
"name": "with",
|
749
|
+
"description": "The method to display the full text when truncated. Options are \"tooltip\" or \"expand\". if not passed, the text would just be truncated with ellipsis.",
|
750
|
+
"type": "\"tooltip\" | \"expand\"",
|
751
|
+
"default": "\"tooltip\""
|
752
|
+
}
|
753
|
+
],
|
754
|
+
"properties": [
|
755
|
+
{
|
756
|
+
"name": "lines",
|
757
|
+
"attribute": "lines",
|
758
|
+
"description": "The maximum number of lines to display before truncation.",
|
759
|
+
"type": "number",
|
760
|
+
"default": "0"
|
761
|
+
},
|
762
|
+
{
|
763
|
+
"name": "value",
|
764
|
+
"attribute": "value",
|
765
|
+
"description": "The string value to be truncated.",
|
766
|
+
"type": "string",
|
767
|
+
"default": "\"\""
|
768
|
+
},
|
769
|
+
{
|
770
|
+
"name": "align",
|
771
|
+
"attribute": "align",
|
772
|
+
"description": "Specify how the tooltip should align with the content.",
|
773
|
+
"type": "string",
|
774
|
+
"default": "\"top\""
|
775
|
+
},
|
776
|
+
{
|
777
|
+
"name": "autoalign",
|
778
|
+
"attribute": "autoalign",
|
779
|
+
"description": "Specify whether a auto align functionality should be applied",
|
780
|
+
"type": "boolean",
|
781
|
+
"default": "false"
|
782
|
+
},
|
783
|
+
{
|
784
|
+
"name": "expandLabel",
|
785
|
+
"attribute": "expand-label",
|
786
|
+
"description": "The label on expand button.",
|
787
|
+
"type": "string",
|
788
|
+
"default": "\"View more\""
|
789
|
+
},
|
790
|
+
{
|
791
|
+
"name": "collapseLabel",
|
792
|
+
"attribute": "collapse-label",
|
793
|
+
"description": "The label on the collapse button.",
|
794
|
+
"type": "string",
|
795
|
+
"default": "\"View less\""
|
796
|
+
},
|
797
|
+
{
|
798
|
+
"name": "with",
|
799
|
+
"attribute": "with",
|
800
|
+
"description": "The method to display the full text when truncated. Options are \"tooltip\" or \"expand\". if not passed, the text would just be truncated with ellipsis.",
|
801
|
+
"type": "\"tooltip\" | \"expand\"",
|
802
|
+
"default": "\"tooltip\""
|
803
|
+
},
|
804
|
+
{
|
805
|
+
"name": "styles",
|
806
|
+
"default": "\"styles\""
|
807
|
+
}
|
808
|
+
]
|
809
|
+
},
|
810
|
+
{
|
811
|
+
"name": "elementName",
|
812
|
+
"path": "./src/components/truncated-text/truncated-text.ts",
|
813
|
+
"description": "TruncatedText.",
|
814
|
+
"attributes": [
|
815
|
+
{
|
816
|
+
"name": "lines",
|
817
|
+
"description": "The maximum number of lines to display before truncation.",
|
818
|
+
"type": "number",
|
819
|
+
"default": "0"
|
820
|
+
},
|
821
|
+
{
|
822
|
+
"name": "value",
|
823
|
+
"description": "The string value to be truncated.",
|
824
|
+
"type": "string",
|
825
|
+
"default": "\"\""
|
826
|
+
},
|
827
|
+
{
|
828
|
+
"name": "align",
|
829
|
+
"description": "Specify how the tooltip should align with the content.",
|
830
|
+
"type": "string",
|
831
|
+
"default": "\"top\""
|
832
|
+
},
|
833
|
+
{
|
834
|
+
"name": "autoalign",
|
835
|
+
"description": "Specify whether a auto align functionality should be applied",
|
836
|
+
"type": "boolean",
|
837
|
+
"default": "false"
|
838
|
+
},
|
839
|
+
{
|
840
|
+
"name": "expand-label",
|
841
|
+
"description": "The label on expand button.",
|
842
|
+
"type": "string",
|
843
|
+
"default": "\"View more\""
|
844
|
+
},
|
845
|
+
{
|
846
|
+
"name": "collapse-label",
|
847
|
+
"description": "The label on the collapse button.",
|
848
|
+
"type": "string",
|
849
|
+
"default": "\"View less\""
|
850
|
+
},
|
851
|
+
{
|
852
|
+
"name": "with",
|
853
|
+
"description": "The method to display the full text when truncated. Options are \"tooltip\" or \"expand\". if not passed, the text would just be truncated with ellipsis.",
|
854
|
+
"type": "\"tooltip\" | \"expand\"",
|
855
|
+
"default": "\"tooltip\""
|
856
|
+
}
|
857
|
+
],
|
858
|
+
"properties": [
|
859
|
+
{
|
860
|
+
"name": "lines",
|
861
|
+
"attribute": "lines",
|
862
|
+
"description": "The maximum number of lines to display before truncation.",
|
863
|
+
"type": "number",
|
864
|
+
"default": "0"
|
865
|
+
},
|
866
|
+
{
|
867
|
+
"name": "value",
|
868
|
+
"attribute": "value",
|
869
|
+
"description": "The string value to be truncated.",
|
870
|
+
"type": "string",
|
871
|
+
"default": "\"\""
|
872
|
+
},
|
873
|
+
{
|
874
|
+
"name": "align",
|
875
|
+
"attribute": "align",
|
876
|
+
"description": "Specify how the tooltip should align with the content.",
|
877
|
+
"type": "string",
|
878
|
+
"default": "\"top\""
|
879
|
+
},
|
880
|
+
{
|
881
|
+
"name": "autoalign",
|
882
|
+
"attribute": "autoalign",
|
883
|
+
"description": "Specify whether a auto align functionality should be applied",
|
884
|
+
"type": "boolean",
|
885
|
+
"default": "false"
|
886
|
+
},
|
887
|
+
{
|
888
|
+
"name": "expandLabel",
|
889
|
+
"attribute": "expand-label",
|
890
|
+
"description": "The label on expand button.",
|
891
|
+
"type": "string",
|
892
|
+
"default": "\"View more\""
|
893
|
+
},
|
894
|
+
{
|
895
|
+
"name": "collapseLabel",
|
896
|
+
"attribute": "collapse-label",
|
897
|
+
"description": "The label on the collapse button.",
|
898
|
+
"type": "string",
|
899
|
+
"default": "\"View less\""
|
900
|
+
},
|
901
|
+
{
|
902
|
+
"name": "with",
|
903
|
+
"attribute": "with",
|
904
|
+
"description": "The method to display the full text when truncated. Options are \"tooltip\" or \"expand\". if not passed, the text would just be truncated with ellipsis.",
|
905
|
+
"type": "\"tooltip\" | \"expand\"",
|
906
|
+
"default": "\"tooltip\""
|
907
|
+
},
|
908
|
+
{
|
909
|
+
"name": "styles",
|
910
|
+
"default": "\"styles\""
|
911
|
+
}
|
912
|
+
]
|
913
|
+
},
|
706
914
|
{
|
707
915
|
"name": "c4p-user-avatar",
|
708
916
|
"path": "./src/components/user-avatar/user-avatar.ts",
|