@bethinkpl/design-system 26.12.0 → 26.12.1
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/design-system.umd.cjs +18 -18
- package/dist/design-system.umd.cjs.map +1 -1
- package/dist/lib/js/components/Banner/Banner.vue.d.ts +4 -0
- package/dist/lib/js/components/Buttons/Button/Button.vue.d.ts +1 -0
- package/dist/lib/js/components/Buttons/IconButton/IconButton.vue.d.ts +2 -0
- package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +1 -0
- package/dist/lib/js/components/Chip/Chip.vue.d.ts +3 -0
- package/dist/lib/js/components/DatePickers/DateBox/DateBox.vue.d.ts +1 -0
- package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.vue.d.ts +2 -0
- package/dist/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.vue.d.ts +1 -0
- package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue.d.ts +7 -0
- package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue.d.ts +1 -0
- package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +4 -0
- package/dist/lib/js/components/Drawer/DrawerTile/DrawerTile.vue.d.ts +1 -0
- package/dist/lib/js/components/Form/Checkbox/Checkbox.vue.d.ts +1 -0
- package/dist/lib/js/components/Form/RadioButton/RadioButton.vue.d.ts +1 -0
- package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue.d.ts +3 -0
- package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.vue.d.ts +3 -0
- package/dist/lib/js/components/Icons/Icon/Icon.consts.d.ts +1 -0
- package/dist/lib/js/components/Modal/Modal.vue.d.ts +1 -0
- package/dist/lib/js/components/Modals/Modal/Modal.vue.d.ts +4 -0
- package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.vue.d.ts +4 -0
- package/dist/lib/js/components/Outline/OutlineItem/OutlineItem.vue.d.ts +1 -0
- package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +4 -0
- package/dist/lib/js/components/ProgressBar/ProgressBar.vue.d.ts +1 -0
- package/dist/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue.d.ts +1 -0
- package/dist/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue.d.ts +2 -0
- package/dist/lib/js/components/RichList/RichListItem/RichListItem.vue.d.ts +2 -0
- package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +1 -0
- package/dist/lib/js/components/SelectList/SelectListItemTile/SelectListItemTile.vue.d.ts +1 -0
- package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue.d.ts +1 -0
- package/dist/lib/js/components/SelectionTile/SelectionTile.vue.d.ts +3 -0
- package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.vue.d.ts +1 -0
- package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue.d.ts +1 -0
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +5 -0
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +5 -0
- package/dist/lib/js/components/Switch/Switch.vue.d.ts +1 -0
- package/dist/lib/js/components/Tile/Tile.sb.shared.d.ts +5 -0
- package/dist/lib/js/components/Tile/Tile.vue.d.ts +1 -0
- package/dist/lib/js/components/Toast/Toast.vue.d.ts +1 -0
- package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.vue.d.ts +1 -0
- package/dist/lib/js/icons/fontawesome.d.ts +1 -0
- package/docs/assets/{AccessStatus-9JQyuc7W.js → AccessStatus-BKJi9u47.js} +1 -1
- package/docs/assets/{AccessStatus.stories--EX9iZIr.js → AccessStatus.stories-XvWRutdA.js} +1 -1
- package/docs/assets/{Avatar-BK-QYdBb.js → Avatar-U_7Z6nZ2.js} +1 -1
- package/docs/assets/{Avatar.stories-DeG1BvTp.js → Avatar.stories-CVysqINz.js} +1 -1
- package/docs/assets/{Badge-DoA9PSt1.js → Badge-DSmH78WU.js} +1 -1
- package/docs/assets/{Badge.stories-CR3OCNAJ.js → Badge.stories-D-06ABBo.js} +1 -1
- package/docs/assets/{BadgeScore-DLegDXlH.js → BadgeScore-GfZixoUY.js} +1 -1
- package/docs/assets/{BadgeScore.stories-QVxhupec.js → BadgeScore.stories-D3zFKjT2.js} +1 -1
- package/docs/assets/{Banner-DsBGvY85.js → Banner-DDGfdClH.js} +1 -1
- package/docs/assets/{Banner.stories-Dwht3Bb9.js → Banner.stories-DRjfHQB5.js} +1 -1
- package/docs/assets/{BasicRichListItem-DphHumDQ.js → BasicRichListItem-CjGmKgW-.js} +1 -1
- package/docs/assets/{BasicRichListItem.stories-BlzhLCc3.js → BasicRichListItem.stories-W11x1b5C.js} +1 -1
- package/docs/assets/{BlockadeStatus-Da8KTxG1.js → BlockadeStatus-D6w6lZhK.js} +1 -1
- package/docs/assets/{BlockedeStatus.stories-Do9jrnuL.js → BlockedeStatus.stories-BPVIJ-7M.js} +1 -1
- package/docs/assets/{Button-C4sEOlKs.js → Button-yeAor0pZ.js} +1 -1
- package/docs/assets/{Button.stories-NdVmJ33i.js → Button.stories-C905FtVz.js} +1 -1
- package/docs/assets/{CardExpandable-NhyjRkWt.js → CardExpandable-t59MJJJ1.js} +1 -1
- package/docs/assets/{CardExpandable.stories-C_tWFj8w.js → CardExpandable.stories-GrQybWeN.js} +1 -1
- package/docs/assets/{Checkbox-DkAY8NEs.js → Checkbox-K_NwPnQU.js} +1 -1
- package/docs/assets/{Checkbox.stories-BrwBQXJR.js → Checkbox.stories-C5rsfJfn.js} +1 -1
- package/docs/assets/{Chip-B-ADwxNO.js → Chip-CkWK9-eU.js} +1 -1
- package/docs/assets/{Chip.stories-kPLmTkNS.js → Chip.stories-CmRxhdd5.js} +1 -1
- package/docs/assets/{Color-ERTF36HU-Clm3cjkG.js → Color-ERTF36HU-D5EeXymG.js} +1 -1
- package/docs/assets/{CounterToggle-UIp8wWvW.js → CounterToggle-UTpNPOSH.js} +1 -1
- package/docs/assets/{CounterToggle.stories-Bq4qXiSK.js → CounterToggle.stories-7sAIDH2d.js} +1 -1
- package/docs/assets/{DateBox.stories-D5ffs0iR.js → DateBox.stories-CvwVbLiI.js} +1 -1
- package/docs/assets/{DatePicker-e_OeoKNz.js → DatePicker-CYB-OeHU.js} +1 -1
- package/docs/assets/{DatePicker.stories-D9PiUfVD.js → DatePicker.stories-BCcRMVnc.js} +1 -1
- package/docs/assets/{DateRangePicker-D48XtTCY.js → DateRangePicker-BY0ptzDm.js} +1 -1
- package/docs/assets/{DateRangePicker.stories-DnSY5vgk.js → DateRangePicker.stories-CMoP8mIZ.js} +1 -1
- package/docs/assets/{DocsRenderer-CFRXHY34-DCdQFGQN.js → DocsRenderer-CFRXHY34-CTj1geou.js} +5 -5
- package/docs/assets/{DrawerHeader-CX7e6Nrr.js → DrawerHeader-6iOWRU4r.js} +1 -1
- package/docs/assets/{DrawerHeader.stories-m4CFnGvM.js → DrawerHeader.stories-BM2zQhqx.js} +1 -1
- package/docs/assets/{DrawerListItem-BZDRNfYO.js → DrawerListItem-BCPF0NKt.js} +1 -1
- package/docs/assets/{DrawerListItem.stories-C2-JTk6I.js → DrawerListItem.stories-Cyjmm297.js} +1 -1
- package/docs/assets/{DrawerListItemGroup.stories-DZR5aikG.js → DrawerListItemGroup.stories-COuFavcC.js} +1 -1
- package/docs/assets/{DrawerSection-B5Oegmdv.js → DrawerSection-B6PrbMVD.js} +1 -1
- package/docs/assets/{DrawerSection.stories-DjMQ5gil.js → DrawerSection.stories-DUmVgH2v.js} +1 -1
- package/docs/assets/{DrawerTile-BGBdJHoD.js → DrawerTile-CTrRTsz5.js} +1 -1
- package/docs/assets/{DrawerTile.stories-DF9kUMHL.js → DrawerTile.stories-BVrU34zb.js} +1 -1
- package/docs/assets/{Dropdown.stories-CZcJt8LC.js → Dropdown.stories-DHicOtyD.js} +1 -1
- package/docs/assets/{FeatureIcon-DClbrBzB.js → FeatureIcon-Zls5aPDA.js} +1 -1
- package/docs/assets/{FeatureIcon.stories-LYqkoMeR.js → FeatureIcon.stories-fkGRpy1k.js} +1 -1
- package/docs/assets/{GroupRichListItem-ClZnBLO7.js → GroupRichListItem-B5zdEDgJ.js} +1 -1
- package/docs/assets/{GroupRichListItem.stories--Nh0_xJQ.js → GroupRichListItem.stories-CGh-ncpD.js} +1 -1
- package/docs/assets/Icon-BPz80dqH.js +761 -0
- package/docs/assets/{Icon.stories-CBt3qHn_.js → Icon.stories-nMGhxKkt.js} +1 -1
- package/docs/assets/{IconButton-ClJVjUWD.js → IconButton-gTykCZIi.js} +1 -1
- package/docs/assets/{IconButton.stories-BBFkBebq.js → IconButton.stories-D4XVg9xV.js} +1 -1
- package/docs/assets/{IconText-s1bOsGRx.js → IconText-7zvo_ew8.js} +1 -1
- package/docs/assets/{IconText.stories-Q1DLLa96.js → IconText.stories-WHFYLn8K.js} +1 -1
- package/docs/assets/{Modal-DdUk6fYB.js → Modal-D7RDnkRT.js} +1 -1
- package/docs/assets/{Modal.stories-Bqs5-con.js → Modal.stories-DtonpbNd.js} +1 -1
- package/docs/assets/{ModalDialog-wYXqCv1T.js → ModalDialog-D-FrIv9r.js} +1 -1
- package/docs/assets/{ModalDialog.stories-tc5eJMKj.js → ModalDialog.stories-BO4kM0oI.js} +1 -1
- package/docs/assets/{OutlineItem-D6blFpRm.js → OutlineItem-DqMRN7G1.js} +1 -1
- package/docs/assets/{OutlineItem.stories-BuIiQaaq.js → OutlineItem.stories-DRj6zFWQ.js} +1 -1
- package/docs/assets/{OverlayHeader-DqAhQk90.js → OverlayHeader-D3BWUMCs.js} +1 -1
- package/docs/assets/{OverlayHeader.stories-DGOKHV71.js → OverlayHeader.stories-D22gEPwS.js} +1 -1
- package/docs/assets/{Pagination-9012fp-V.js → Pagination-xRPA6q3h.js} +1 -1
- package/docs/assets/{Pagination.stories-Dxy1hEXW.js → Pagination.stories-_aA1bDru.js} +1 -1
- package/docs/assets/{PopOver-DSFUlM-F.js → PopOver-DlmHqZVO.js} +1 -1
- package/docs/assets/{PopOver.stories-AVke2TUi.js → PopOver.stories-BrDXwbSj.js} +1 -1
- package/docs/assets/{ProgressBar-_uDnSqB3.js → ProgressBar-DcRQqf-M.js} +1 -1
- package/docs/assets/{ProgressBar.stories-Bb7Sit3i.js → ProgressBar.stories-DpjJPck1.js} +1 -1
- package/docs/assets/{ProgressDonutChart-n1jrTcby.js → ProgressDonutChart-O1ep3At7.js} +1 -1
- package/docs/assets/{ProgressDonutChart.stories-Cr2KMSFp.js → ProgressDonutChart.stories-DTDXTcvn.js} +1 -1
- package/docs/assets/{RadioButton-UNJFeydk.js → RadioButton-CO43G0Ta.js} +1 -1
- package/docs/assets/{RadioButton.stories-CuHc0c63.js → RadioButton.stories-BidHbpYh.js} +1 -1
- package/docs/assets/{RichListItem.stories-fvpCZzP3.js → RichListItem.stories-BjOiMMyE.js} +1 -1
- package/docs/assets/{SectionHeader-sQNtwLem.js → SectionHeader-CwB5neO2.js} +1 -1
- package/docs/assets/{SectionHeader.stories-DhIVzBMe.js → SectionHeader.stories-DU-5pOpU.js} +1 -1
- package/docs/assets/{SelectList.stories-hmXO5iG5.js → SelectList.stories-B8NokTyi.js} +1 -1
- package/docs/assets/{SelectListItem-u_v1_FGX.js → SelectListItem-DPuR0fG2.js} +1 -1
- package/docs/assets/{SelectListItem.stories-C_RQ0fTl.js → SelectListItem.stories-oxeMJs_v.js} +1 -1
- package/docs/assets/{SelectListItemTile-DPBYsYPw.js → SelectListItemTile-CWD-7N0p.js} +1 -1
- package/docs/assets/{SelectListItemTile.stories-Bz6D1rUb.js → SelectListItemTile.stories-qL9td0K7.js} +1 -1
- package/docs/assets/{SelectListItemToggle-DhuofgTc.js → SelectListItemToggle-Bd5zU5Vc.js} +1 -1
- package/docs/assets/{SelectListItemToggle.stories-hcEpayse.js → SelectListItemToggle.stories-DjnspGSK.js} +1 -1
- package/docs/assets/{SelectionControl-Bfsf0ykk.js → SelectionControl-Xe-aYMrS.js} +1 -1
- package/docs/assets/{SelectionTile-CElEjx03.js → SelectionTile-7OHQEA9w.js} +2 -2
- package/docs/assets/{SelectionTile.stories-Bj3p90ml.js → SelectionTile.stories-B5SdFlYE.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded-DyfuygAa.js → SurveyQuestionOpenEnded-DUybHAVt.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded.stories-Ce3wMMqQ.js → SurveyQuestionOpenEnded.stories-BgpHtIPu.js} +1 -1
- package/docs/assets/{SurveyQuestionScale-BFy_7BO5.js → SurveyQuestionScale-I7rmD2z-.js} +1 -1
- package/docs/assets/{SurveyQuestionScale.stories-BM_Zkn-d.js → SurveyQuestionScale.stories-D0AleMVQ.js} +1 -1
- package/docs/assets/{SurveyToggle-Cc-TFYAQ.js → SurveyToggle-BECsKZHH.js} +1 -1
- package/docs/assets/{SurveyToggle.stories-Dlz7KagF.js → SurveyToggle.stories-Bg752kec.js} +1 -1
- package/docs/assets/{Switch-DXVtM6f3.js → Switch-C8il24TP.js} +1 -1
- package/docs/assets/{Switch.stories-C0z2C6hD.js → Switch.stories-LgRcO-ZF.js} +1 -1
- package/docs/assets/{TabItem-CSiyWkmu.js → TabItem-Cceq5FQB.js} +1 -1
- package/docs/assets/{TabItem.stories-CdlIKUaz.js → TabItem.stories-CrJjqpPf.js} +1 -1
- package/docs/assets/{Tile-64IgKF2L.js → Tile-DvjxsEPO.js} +1 -1
- package/docs/assets/{Tile.sb.shared-C2zULufz.js → Tile.sb.shared-Cl6kkjNS.js} +1 -1
- package/docs/assets/{Tile.stories-C-whbIrd.js → Tile.stories-02ZVx-3c.js} +1 -1
- package/docs/assets/{Toast-BQ-Wj1-c.js → Toast-DKAzASvr.js} +1 -1
- package/docs/assets/{Toast.stories-DCt3TUKe.js → Toast.stories-CMk56GoR.js} +1 -1
- package/docs/assets/{ToggleButton-CPVawFGQ.js → ToggleButton-eR3n1vbs.js} +1 -1
- package/docs/assets/{ToggleButton.stories-47wxhxGb.js → ToggleButton.stories-Bu6_fUaj.js} +1 -1
- package/docs/assets/{Tooltip.stories-TJPAmU9m.js → Tooltip.stories-DKvJ8iAI.js} +1 -1
- package/docs/assets/{iframe-DdYOFeJw.js → iframe-C7WPYr8K.js} +3 -3
- package/docs/assets/{index-XtR2TUpS.js → index-B4SBaA-m.js} +1 -1
- package/docs/assets/{index-DtuWn4_o.js → index-DUBuPvUa.js} +1 -1
- package/docs/assets/{preview-CxCnGinY.js → preview-DQC24eOC.js} +1 -1
- package/docs/assets/{preview-CYLlXYqB.js → preview-H9MyyyLW.js} +2 -2
- package/docs/assets/{string-WbDRKdc6.js → string-CFc0pFCE.js} +1 -1
- package/docs/iframe.html +1 -1
- package/docs/project.json +1 -1
- package/lib/js/components/Avatar/Avatar.vue +2 -0
- package/lib/js/icons/fontawesome.ts +2 -0
- package/package.json +1 -1
- package/docs/assets/Icon-Dtb7OFDy.js +0 -761
|
@@ -72,6 +72,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
72
72
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
73
73
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
74
74
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
75
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
75
76
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
76
77
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
77
78
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -419,6 +420,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
419
420
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
420
421
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
421
422
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
423
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
422
424
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
423
425
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
424
426
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -1035,6 +1037,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1035
1037
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1036
1038
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1037
1039
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1040
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1038
1041
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1039
1042
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1040
1043
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -1481,6 +1484,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1481
1484
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1482
1485
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1483
1486
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1487
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1484
1488
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1485
1489
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1486
1490
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -1883,6 +1887,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1883
1887
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1884
1888
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1885
1889
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1890
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1886
1891
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1887
1892
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1888
1893
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
91
91
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
92
92
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
93
93
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
94
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
94
95
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
95
96
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
96
97
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -664,6 +665,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
664
665
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
665
666
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
666
667
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
668
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
667
669
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
668
670
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
669
671
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -1110,6 +1112,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1110
1112
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1111
1113
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1112
1114
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1115
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1113
1116
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1114
1117
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1115
1118
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -1685,6 +1688,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1685
1688
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1686
1689
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1687
1690
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1691
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1688
1692
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1689
1693
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1690
1694
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -2045,6 +2049,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2045
2049
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
2046
2050
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
2047
2051
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
2052
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
2048
2053
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
2049
2054
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
2050
2055
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -92,6 +92,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
92
92
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
93
93
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
94
94
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
95
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
95
96
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
96
97
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
97
98
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -52,6 +52,7 @@ export declare const data: () => {
|
|
|
52
52
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
53
53
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
54
54
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
55
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
55
56
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
56
57
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
57
58
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -372,6 +373,7 @@ export declare const components: {
|
|
|
372
373
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
373
374
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
374
375
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
376
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
375
377
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
376
378
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
377
379
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -685,6 +687,7 @@ export declare const components: {
|
|
|
685
687
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
686
688
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
687
689
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
690
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
688
691
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
689
692
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
690
693
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -1171,6 +1174,7 @@ export declare const components: {
|
|
|
1171
1174
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1172
1175
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1173
1176
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1177
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1174
1178
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1175
1179
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1176
1180
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -1617,6 +1621,7 @@ export declare const components: {
|
|
|
1617
1621
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1618
1622
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1619
1623
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1624
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1620
1625
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1621
1626
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
1622
1627
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -113,6 +113,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
113
113
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
114
114
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
115
115
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
116
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
116
117
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
117
118
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
118
119
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -245,6 +245,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
245
245
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
246
246
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
247
247
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
248
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
248
249
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
249
250
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
250
251
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -109,6 +109,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
109
109
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
110
110
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
111
111
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
112
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
112
113
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
113
114
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
114
115
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -40,6 +40,7 @@ export declare const FONTAWESOME_ICONS: {
|
|
|
40
40
|
readonly FA_CALENDAR_DAY: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
41
41
|
readonly FA_CALENDAR_DAYS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
42
42
|
readonly FA_CALENDAR_RANGE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
43
|
+
readonly FA_CALENDAR_XMARK: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
43
44
|
readonly FA_CAMERA_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
44
45
|
readonly FA_CARET_SQUARE_RIGHT_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
45
46
|
readonly FA_CART_SHOPPING: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as r,c as o,k as c,a as i,j as u,n as S,r as p,o as _}from"./vue.esm-bundler-DmkhfO_9.js";import{a as d,I as e,b as m}from"./Icon-
|
|
1
|
+
import{d as r,c as o,k as c,a as i,j as u,n as S,r as p,o as _}from"./vue.esm-bundler-DmkhfO_9.js";import{a as d,I as e,b as m}from"./Icon-BPz80dqH.js";import{C as s}from"./user-_JB5aHqq.js";import{_ as A}from"./_plugin-vue_export-helper-DlAUqK2U.js";const a=r({name:"AccessStatus",components:{Icon:d},props:{status:{type:String,required:!0}},data(){return{ICONS:Object.freeze(e),ICON_SIZES:Object.freeze(m)}},computed:{icon(){return this.status===s.ACTIVE?e.FA_UNLOCK_KEYHOLE:this.status===s.AWAITING?e.FA_HOURGLASS_START:e.FA_LOCK_KEYHOLE},statusClass(){return this.status===s.ACTIVE?"-ds-active":this.status===s.SUSPENDED?"-ds-suspended":""},text(){return this.status===s.ACTIVE?"Aktywny":this.status===s.AWAITING?"Oczekujący":this.status===s.SUSPENDED?"Zawieszony":this.status===s.DEACTIVATED?"Dezaktywowany":"Zakończony"}}}),f={class:"ds-accessStatus__text"};function C(t,I,E,l,N,O){const n=p("icon");return _(),o("div",{class:S(["ds-accessStatus",t.statusClass])},[c(n,{size:t.ICON_SIZES.X_SMALL,icon:t.icon,class:"ds-accessStatus__icon"},null,8,["size","icon"]),i("span",f,u(t.text),1)],2)}const k=A(a,[["render",C],["__scopeId","data-v-e1478a91"]]);a.__docgenInfo={displayName:"AccessStatus",exportName:"default",description:"",tags:{},props:[{name:"status",type:{name:"string"},required:!0}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Statuses/AccessStatus/AccessStatus.vue"]};export{k as A};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as r}from"./AccessStatus-
|
|
1
|
+
import{A as r}from"./AccessStatus-BKJi9u47.js";import{C as o}from"./user-_JB5aHqq.js";import"./vue.esm-bundler-DmkhfO_9.js";import"./Icon-BPz80dqH.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const l={title:"Components/Statuses/AccessStatus",component:r},c=n=>({components:{AccessStatus:r},setup(){return n},template:'<access-status :status="status" />'}),t=c.bind({}),p={status:o.ACTIVE},m={status:{control:"select",options:Object.values(o)}};t.argTypes=m;t.args=p;t.parameters={design:{type:"figma",url:"https://www.figma.com/file/izQdYyiBR1GQgFkaOIfIJI/LMS---DS---Components?node-id=3040%3A70712"}};var s,e,a;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`args => ({
|
|
2
2
|
components: {
|
|
3
3
|
AccessStatus
|
|
4
4
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as G,q as i,c as u,a as b,j as k,u as e,s as p,k as I,g as v,n as h,o}from"./vue.esm-bundler-DmkhfO_9.js";import{c as M,B as C,b as l,a as s}from"./Badge-
|
|
1
|
+
import{d as G,q as i,c as u,a as b,j as k,u as e,s as p,k as I,g as v,n as h,o}from"./vue.esm-bundler-DmkhfO_9.js";import{c as M,B as C,b as l,a as s}from"./Badge-DSmH78WU.js";import{I as d}from"./Icon-BPz80dqH.js";import{_ as O}from"./_plugin-vue_export-helper-DlAUqK2U.js";const a={XX_SMALL:"xx-small",X_SMALL:"x-small",SMALL:"small",MEDIUM:"medium",LARGE:"large",X_LARGE:"x-large"},_={ACTIVE:"active",INACTIVE:"inactive"},c={ACTIVE:"active",INACTIVE:"inactive",AWAITING:"awaiting",BLOCKED:"blocked",TEAM_MEMBER:"team-member"},q=["src","alt"],w={key:1,class:"ds-avatar__initials"},K={key:0,class:"ds-avatar__activityStatus"},F={key:1,class:"ds-avatar__accessStatus"},f=G({__name:"Avatar",props:{username:{},avatarUrl:{},size:{default:()=>a.X_SMALL},activityStatus:{},accessStatus:{},teamMemberImageUrl:{}},setup(r){const{initials:g,initialBackgroundColor:y}=V(),{accessStatusColor:T,accessStatusIcon:U,accessStatusSize:z,accessStatusImage:R}=B(),{activityStatusColor:X,activityStatusSize:N}=D();function V(){const t=["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e","#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50","#f1c40f","#e67e22","#e74c3c","#f39c12","#d35400","#c0392b"];function n(A){const[m,E]=A.split(/\s+/);return m&&E?`${m[0]}${E[0]}`.toUpperCase():m.substring(0,2).toUpperCase()}const S=i(()=>{if(r.avatarUrl)return;const A=(r.username.charCodeAt(0)-65)%16;return t[A]});return{initials:i(()=>n(r.username)),initialBackgroundColor:S}}function B(){const t=i(()=>{switch(r.accessStatus){case c.ACTIVE:return l.SUCCESS;case c.INACTIVE:case c.AWAITING:return l.NEUTRAL;case c.BLOCKED:return l.DANGER;default:return}}),n=i(()=>{switch(r.accessStatus){case c.ACTIVE:return d.FA_UNLOCK_KEYHOLE;case c.BLOCKED:case c.INACTIVE:return d.FA_LOCK_KEYHOLE;case c.AWAITING:return d.FA_HOURGLASS_START;default:return}}),S=i(()=>{switch(r.size){case a.XX_SMALL:return s.SMALL;case a.X_SMALL:return s.SMALL;case a.SMALL:return s.SMALL;case a.MEDIUM:return s.MEDIUM;case a.LARGE:return s.MEDIUM;case a.X_LARGE:default:return s.X_LARGE}}),L=i(()=>{if(r.accessStatus===c.TEAM_MEMBER)return r.teamMemberImageUrl});return{accessStatusColor:t,accessStatusIcon:n,accessStatusSize:S,accessStatusImage:L}}function D(){const t=i(()=>{switch(r.activityStatus){case _.ACTIVE:return l.SUCCESS;default:case _.INACTIVE:return l.NEUTRAL}}),n=i(()=>{switch(r.size){case a.XX_SMALL:return s.X_SMALL;case a.X_SMALL:return s.SMALL;case a.SMALL:return s.SMALL;case a.MEDIUM:return s.MEDIUM;case a.LARGE:return s.MEDIUM;case a.X_LARGE:default:return s.MEDIUM}});return{activityStatusColor:t,activityStatusSize:n}}return(t,n)=>(o(),u("div",{class:h(["ds-avatar",{"-ds-xx-small":t.size===e(a).XX_SMALL,"-ds-x-small":t.size===e(a).X_SMALL,"-ds-small":t.size===e(a).SMALL,"-ds-medium":t.size===e(a).MEDIUM,"-ds-large":t.size===e(a).LARGE,"-ds-x-large":t.size===e(a).X_LARGE}])},[b("div",{class:"ds-avatar__content",style:p({backgroundColor:e(y)})},[t.avatarUrl?(o(),u("img",{key:0,src:t.avatarUrl,alt:t.username,class:"ds-avatar__image"},null,8,q)):(o(),u("span",w,k(e(g)),1))],4),t.activityStatus?(o(),u("div",K,[I(e(C),{color:e(X),elevation:e(M).X_SMALL,size:e(N)},null,8,["color","elevation","size"])])):v("",!0),t.accessStatus?(o(),u("div",F,[I(e(C),{color:e(T),elevation:e(M).SMALL,icon:e(U),size:e(z),"image-url":e(R)},null,8,["color","elevation","icon","size","image-url"])])):v("",!0)],2))}}),x=O(f,[["__scopeId","data-v-e662d6a3"]]);f.__docgenInfo={exportName:"default",displayName:"Avatar",description:"",tags:{},props:[{name:"username",required:!0,type:{name:"string"}},{name:"avatarUrl",required:!1,type:{name:"string"}},{name:"size",required:!1,type:{name:"AvatarSize"}},{name:"activityStatus",required:!1,type:{name:"AvatarActivityStatus"}},{name:"accessStatus",required:!1,type:{name:"AvatarAccessStatus"}},{name:"teamMemberImageUrl",required:!1,type:{name:"string"}}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Avatar/Avatar.vue"]};export{x as A,a,c as b,_ as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as o,a as r,b as k,c as m}from"./Avatar-
|
|
1
|
+
import{A as o,a as r,b as k,c as m}from"./Avatar-U_7Z6nZ2.js";import"./vue.esm-bundler-DmkhfO_9.js";import"./Badge-DSmH78WU.js";import"./Icon-BPz80dqH.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const v={title:"Components/Avatar",component:o,render:s=>({components:{Avatar:o},setup(){return{args:s}},template:'<Avatar v-bind="args" />'}),argTypes:{size:{control:"select",options:Object.values(r)},accessStatus:{control:{type:"select",labels:{undefined:"None (undefined)"}},options:[void 0,...Object.values(k)]},activityStatus:{control:{type:"select",labels:{undefined:"None (undefined)"}},options:[void 0,...Object.values(m)]}}},e={args:{size:r.X_SMALL,username:"Dariusz Chrapek",avatarUrl:"https://wiecejnizlek.pl/wp-content/uploads/2021/08/Dariusz_Chrapek-uai-2996x2996-1-scaled.jpeg",teamMemberImageUrl:"https://lek.wiecejnizlek.pl/images/lek/logo-badge.svg"}};e.parameters={design:{type:"figma",url:"https://www.figma.com/design/izQdYyiBR1GQgFkaOIfIJI/LMS---DS-Components?node-id=12364-12175&t=UpUoIm9oCAaH4dEp-4"}};const a={render:s=>({components:{Avatar:o},setup(){return{args:s,names:["Arkadiusz Kowalski","Bartosz Nowak","Cezary Kowalczyk","Dariusz Chrapek","Edward Nowak","Feliks Kowalski","Grzegorz Nowak","Henryk Kowalczyk","Ireneusz Nowak","Jacek Kowalski","Kamil Nowak","Leszek Kowalczyk","Marek Nowak","Norbert Kowalski","Oskar Nowak","Piotr Kowalczyk"]}},template:'<div style="display: flex; gap: 12px; flex-wrap: wrap;"><div v-for="name in names"><Avatar v-bind="args" :username="name" /></div></div>'}),argTypes:{size:{control:"select",options:Object.values(r)},username:{control:!1},avatarUrl:{control:!1}},args:{size:r.X_SMALL,teamMemberImageUrl:"https://lek.wiecejnizlek.pl/images/lek/logo-badge.svg"}};var t,l,i;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
size: AVATAR_SIZES.X_SMALL,
|
|
4
4
|
username: 'Dariusz Chrapek',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as u,q as g,c as n,a as A,n as m,u as a,j as S,g as i,b as p,o as l}from"./vue.esm-bundler-DmkhfO_9.js";import{a as E,b as r}from"./Icon-
|
|
1
|
+
import{d as u,q as g,c as n,a as A,n as m,u as a,j as S,g as i,b as p,o as l}from"./vue.esm-bundler-DmkhfO_9.js";import{a as E,b as r}from"./Icon-BPz80dqH.js";import{_ as f}from"./_plugin-vue_export-helper-DlAUqK2U.js";const s={X_SMALL:"x-small",SMALL:"small",MEDIUM:"medium",LARGE:"large",X_LARGE:"x-large"},o={PRIMARY:"primary",SUCCESS:"success",DANGER:"danger",FAIL:"fail",NEUTRAL:"neutral"},d={NONE:"none",X_SMALL:"x-small",SMALL:"small"},M={key:0,class:"ds-badge__content"},_=["src"],t=u({__name:"Badge",props:{color:{default:()=>o.PRIMARY},size:{default:()=>s.SMALL},label:{},icon:{},imageUrl:{},elevation:{default:()=>d.X_SMALL}},setup(c){const L=g(()=>{switch(c.size){case s.SMALL:return r.XXX_SMALL;case s.MEDIUM:return r.XX_SMALL;case s.LARGE:return r.X_SMALL;case s.X_LARGE:default:return r.SMALL}});return(e,I)=>(l(),n("div",{class:m(["ds-badge",{"-ds-x-small":e.size===a(s).X_SMALL,"-ds-small":e.size===a(s).SMALL,"-ds-medium":e.size===a(s).MEDIUM,"-ds-large":e.size===a(s).LARGE,"-ds-x-large":e.size===a(s).X_LARGE,"-ds-color-primary":e.color===a(o).PRIMARY,"-ds-color-success":e.color===a(o).SUCCESS,"-ds-color-fail":e.color===a(o).FAIL,"-ds-color-danger":e.color===a(o).DANGER,"-ds-color-neutral":e.color===a(o).NEUTRAL}])},[A("div",{class:m(["ds-badge__elevation",{"-ds-no-elevation":e.elevation===a(d).NONE,"-ds-elevation-s":e.elevation===a(d).SMALL}])},null,2),!e.imageUrl&&!e.icon?(l(),n("div",M,S(e.label),1)):i("",!0),!e.imageUrl&&e.icon?(l(),p(a(E),{key:1,icon:e.icon,size:L.value,class:"ds-badge__icon"},null,8,["icon","size"])):i("",!0),e.imageUrl?(l(),n("img",{key:2,src:e.imageUrl,class:"ds-badge__image"},null,8,_)):i("",!0)],2))}}),v=f(t,[["__scopeId","data-v-a2fff7e3"]]);t.__docgenInfo={exportName:"default",displayName:"Badge",description:"",tags:{},props:[{name:"color",required:!1,type:{name:"BadgeColor"}},{name:"size",required:!1,type:{name:"BadgeSize"}},{name:"label",required:!1,type:{name:"string"}},{name:"icon",required:!1,type:{name:"IconItem"}},{name:"imageUrl",required:!1,type:{name:"string"}},{name:"elevation",required:!1,type:{name:"BadgeElevation"}}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Badge/Badge.vue"]};export{v as B,s as a,o as b,d as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{B as r,a as o,b as t,c as a}from"./Badge-
|
|
1
|
+
import{B as r,a as o,b as t,c as a}from"./Badge-DSmH78WU.js";import{I as s}from"./Icon-BPz80dqH.js";import{B as A,a as v}from"./Banner-DDGfdClH.js";import"./vue.esm-bundler-DmkhfO_9.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Button-yeAor0pZ.js";import"./Divider-CeZli6az.js";import"./IconButton-gTykCZIi.js";import"./device-9fgosCm4.js";function I(e){return`<div style="display: inline-flex; background: #ccc; padding: 16px; line-height: 0; margin-bottom: 16px;">${e}</div>
|
|
2
2
|
<ds-banner :color="BANNER_COLORS.WARNING" title="Taka kombinacja jest niezgodna z design systemem!" v-if="invalidUsage" />
|
|
3
3
|
`}const f={title:"Components/Badges/Badge",component:r,render:e=>({components:{Badge:r,DsBanner:A},setup(){return{BANNER_COLORS:v}},computed:{invalidUsage(){const L=(e.size===o.X_SMALL||e.size===o.SMALL)&&e.label,S=e.size===o.X_SMALL&&(e.icon||e.imageUrl);return L||S},props(){return{...e,icon:s[e.icon]}}},template:I('<Badge v-bind="props" />')}),argTypes:{color:{control:"select",options:Object.values(t)},size:{control:"select",options:Object.values(o)},icon:{control:"select",options:[null,...Object.keys(s)]},elevation:{control:"select",options:Object.values(a)}}},n={args:{color:t.PRIMARY,size:o.SMALL,label:"",icon:void 0,imageUrl:"",elevation:a.X_SMALL}};n.parameters={design:{type:"figma",url:"https://www.figma.com/design/izQdYyiBR1GQgFkaOIfIJI/LMS---DS-Components?node-id=12364-10601&m=dev"}};const i={args:{color:t.PRIMARY,size:o.SMALL,label:"",icon:void 0,imageUrl:"https://lek.wiecejnizlek.pl/images/lek/logo-badge.svg",elevation:a.X_SMALL}};var l,c,m;n.parameters={...n.parameters,docs:{...(l=n.parameters)==null?void 0:l.docs,source:{originalSource:`{
|
|
4
4
|
args: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u,I as d,b as s}from"./Icon-
|
|
1
|
+
import{a as u,I as d,b as s}from"./Icon-BPz80dqH.js";import{d as S,t as c,c as f,b as E,g as m,a as n,j as r,n as O,r as p,o}from"./vue.esm-bundler-DmkhfO_9.js";import{_}from"./_plugin-vue_export-helper-DlAUqK2U.js";const l={SUCCESS:"success",WARNING:"warning",FAIL:"fail",INVERTED:"inverted",NEUTRAL:"neutral",NEUTRAL_WEAK:"neutral-weak"},a={MEDIUM:"medium",SMALL:"small",XSMALL:"extra small"},t=S({name:"BadgeScore",components:{WnlIcon:u},props:{text:{type:String,required:!0},suffix:{type:String,required:!1,default:null},color:{type:String,required:!0,validator(e){return Object.values(l).includes(e)}},icon:{type:Object,default:null,validator(e){return Object.values(d).includes(c(e))}},size:{type:String,default:a.MEDIUM,validator(e){return Object.values(a).includes(e)}},fullWidth:{type:Boolean,default:!1}},data(){return{ICON_SIZES:Object.freeze(s),BADGE_SCORE_COLORS:Object.freeze(l),BADGE_SCORE_SIZES:Object.freeze(a)}},computed:{iconSize(){return this.size===a.SMALL?s.X_SMALL:this.size===a.XSMALL?s.XXX_SMALL:s.SMALL}}}),A={class:"ds-badgeScore__text"},C={class:"ds-badgeScore__suffix"};function L(e,R,g,B,I,D){const i=p("wnl-icon");return o(),f("div",{class:O(["ds-badgeScore",{"-ds-success":e.color===e.BADGE_SCORE_COLORS.SUCCESS,"-ds-warning":e.color===e.BADGE_SCORE_COLORS.WARNING,"-ds-fail":e.color===e.BADGE_SCORE_COLORS.FAIL,"-ds-inverted":e.color===e.BADGE_SCORE_COLORS.INVERTED,"-ds-neutralWeak":e.color===e.BADGE_SCORE_COLORS.NEUTRAL_WEAK,"-ds-neutral":e.color===e.BADGE_SCORE_COLORS.NEUTRAL,"-ds-small":e.size===e.BADGE_SCORE_SIZES.SMALL,"-ds-xsmall":e.size===e.BADGE_SCORE_SIZES.XSMALL,"-ds-fullWidth":e.fullWidth}])},[e.icon?(o(),E(i,{key:0,class:"ds-badgeScore__icon",icon:e.icon,size:e.iconSize},null,8,["icon","size"])):m("",!0),n("div",A,r(e.text),1),n("span",C,r(e.suffix),1)],2)}const N=_(t,[["render",L],["__scopeId","data-v-90b52384"]]);t.__docgenInfo={displayName:"BadgeScore",exportName:"default",description:"",tags:{},props:[{name:"text",type:{name:"string"},required:!0},{name:"suffix",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"color",type:{name:"string"},required:!0},{name:"icon",type:{name:"object"},defaultValue:{func:!1,value:"null"}},{name:"size",type:{name:"string"},defaultValue:{func:!1,value:"BADGE_SCORE_SIZES.MEDIUM"}},{name:"fullWidth",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/BadgeScore/BadgeScore.vue"]};export{N as B,l as a,a as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{B as s,a,b as S}from"./BadgeScore-
|
|
1
|
+
import{B as s,a,b as S}from"./BadgeScore-GfZixoUY.js";import{I as m}from"./Icon-BPz80dqH.js";import"./vue.esm-bundler-DmkhfO_9.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const B={title:"Components/Badges/BadgeScore",component:s},C=o=>({components:{BadgeScore:s},setup(){return o},template:'<badge-score :color="color" :suffix="suffix" :text="text" :size="size" :icon="ICONS[icon]" :fullWidth="fullWidth" />',data(){return{ICONS:Object.freeze(m)}}}),e=C.bind({});e.args={text:"42",suffix:"%",fullWidth:!1,color:a.SUCCESS,icon:"FA_LIGHTBULB",size:S.MEDIUM};e.argTypes={text:{control:"text"},suffix:{control:"text"},color:{control:"select",options:Object.values(a)},icon:{control:"select",options:[null,...Object.keys(m)]},size:{control:"select",options:Object.values(S)}};e.parameters={design:{type:"figma",url:"https://www.figma.com/file/izQdYyiBR1GQgFkaOIfIJI/LMS---DS---Components?node-id=4348%3A77330"}};const g=o=>({components:{BadgeScore:s},setup(){return o},template:'<badge-score :color="BADGE_SCORE_COLORS.WARNING" suffix="%" text="1" :full-width="fullWidth" />',data(){return{BADGE_SCORE_COLORS:Object.freeze(a)}}}),t=g.bind({});t.args={fullWidth:!1};const r=g.bind({});r.args={fullWidth:!0};var c,i,l;e.parameters={...e.parameters,docs:{...(c=e.parameters)==null?void 0:c.docs,source:{originalSource:`args => ({
|
|
2
2
|
components: {
|
|
3
3
|
BadgeScore
|
|
4
4
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as m,b as E,c as b,B as C,a as v,i as B,I as R}from"./Button-
|
|
1
|
+
import{D as m,b as E,c as b,B as C,a as v,i as B,I as R}from"./Button-yeAor0pZ.js";import{D as U,a as A}from"./Divider-CeZli6az.js";import{a as L,I as p}from"./Icon-BPz80dqH.js";import{I as h}from"./IconButton-gTykCZIi.js";import{d as y,t as g,c as s,a,n as r,k as l,g as o,j as O,f as u,e as D,r as i,o as t,l as k}from"./vue.esm-bundler-DmkhfO_9.js";import{_ as V}from"./_plugin-vue_export-helper-DlAUqK2U.js";const n={DEFAULT:"default",NEUTRAL:"neutral",INFO:"info",SUCCESS:"success",WARNING:"warning",FAIL:"fail",DANGER:"danger"},c={HORIZONTAL:"horizontal",VERTICAL:"vertical"},T=y({name:"Banner",components:{DsButton:m,DsDivider:U,DsIconButton:h,DsIcon:L},props:{icon:{type:Object,default:null,validator:e=>Object.values(p).includes(g(e))},buttonText:{type:String,default:null},closable:{type:Boolean,default:!1},color:{type:String,default:n.DEFAULT,validator:e=>Object.values(n).includes(e)},title:{type:String,required:!0},layout:{type:String,default:c.HORIZONTAL,validator:e=>Object.values(c).includes(e)},isExpanded:{type:Boolean,default:!1},isIconHiddenOnMobile:{type:Boolean,default:!1}},emits:["button-clicked","close","update:isExpanded"],data(){return{isExpandedInternal:!1,BUTTON_COLORS:Object.freeze(E),BUTTON_RADIUSES:Object.freeze(b),BUTTON_SIZES:Object.freeze(C),BUTTON_TYPES:Object.freeze(v),DIVIDER_PROMINENCES:Object.freeze(A),ICON_BUTTON_COLORS:Object.freeze(B),ICON_BUTTON_SIZES:Object.freeze(R),ICONS:Object.freeze(p)}},computed:{colorClass(){return{[n.NEUTRAL]:"-ds-neutral",[n.DEFAULT]:"-ds-default",[n.FAIL]:"-ds-fail",[n.INFO]:"-ds-info",[n.SUCCESS]:"-ds-success",[n.WARNING]:"-ds-warning",[n.DANGER]:"-ds-danger"}[this.color]},layoutClass(){return this.layout===c.VERTICAL?"-ds-vertical":"-ds-horizontal"}},watch:{isExpanded:{handler(e){e!==this.isExpandedInternal&&(this.isExpandedInternal=e)},immediate:!0}},methods:{toggleExpandedText(){this.isExpandedInternal=!this.isExpandedInternal,this.$emit("update:isExpanded",this.isExpandedInternal)}}}),z={class:"ds-banner"},$={class:"ds-banner__content"},j={class:"ds-banner__header"},x={class:"ds-banner__textWrapper"},F={class:"ds-banner__titleWrapper"},M=["textContent"],Z={key:0,class:"ds-banner__defaultText"},P={class:"ds-banner__rightWrapper"},H={key:0,class:"ds-banner__buttonWrapper"},W={key:1,class:"ds-banner__rightSlot"},w={key:0,class:"ds-banner__expander"},G={key:1,class:"ds-banner__close"},Y={key:0,class:"ds-banner__expandedContainer"},q={class:"ds-banner__expandedText"};function K(e,d,X,J,Q,ee){const N=i("ds-icon"),f=i("ds-button"),_=i("ds-icon-button"),S=i("ds-divider");return t(),s("div",z,[a("div",{class:r(["ds-banner__inner",[e.colorClass,e.layoutClass]])},[a("div",$,[a("div",j,[e.icon?(t(),s("div",{key:0,class:r(["ds-banner__iconContainer",{"-ds-hideOnMobile":e.isIconHiddenOnMobile}])},[l(N,{class:r(["ds-banner__icon",[e.colorClass]]),icon:e.icon},null,8,["class","icon"])],2)):o("",!0),a("div",x,[a("div",F,[a("div",{class:"ds-banner__title",textContent:O(e.title)},null,8,M),e.$slots.defaultText?(t(),s("div",Z,[u(e.$slots,"defaultText",{},void 0,!0)])):o("",!0)]),a("div",P,[e.buttonText?(t(),s("div",H,[l(f,{class:"ds-banner__ctaButton",color:e.BUTTON_COLORS.NEUTRAL,type:e.BUTTON_TYPES.OUTLINED,size:e.BUTTON_SIZES.SMALL,onClick:d[0]||(d[0]=I=>e.$emit("button-clicked"))},{default:D(()=>[k(O(e.buttonText),1)]),_:1},8,["color","type","size"])])):o("",!0),e.$slots.rightSlot?(t(),s("div",W,[u(e.$slots,"rightSlot",{},void 0,!0)])):o("",!0)])])]),e.$slots.expandedText?(t(),s("div",w,[l(_,{size:e.ICON_BUTTON_SIZES.SMALL,icon:e.isExpandedInternal?e.ICONS.FA_CHEVRON_UP:e.ICONS.FA_CHEVRON_DOWN,color:e.ICON_BUTTON_COLORS.NEUTRAL,radius:e.BUTTON_RADIUSES.CAPSULE,touchable:!1,onClick:e.toggleExpandedText},null,8,["size","icon","color","radius","onClick"])])):o("",!0),!e.$slots.expandedText&&e.closable?(t(),s("div",G,[l(_,{size:e.ICON_BUTTON_SIZES.SMALL,icon:e.ICONS.FA_XMARK,color:e.ICON_BUTTON_COLORS.NEUTRAL,radius:e.BUTTON_RADIUSES.CAPSULE,touchable:!1,onClick:d[1]||(d[1]=I=>e.$emit("close"))},null,8,["size","icon","color","radius"])])):o("",!0)]),e.$slots.expandedText&&e.isExpandedInternal?(t(),s("div",Y,[l(S,{prominence:e.DIVIDER_PROMINENCES.STRONG},null,8,["prominence"]),a("div",q,[u(e.$slots,"expandedText",{},void 0,!0)])])):o("",!0)],2)])}const de=V(T,[["render",K],["__scopeId","data-v-bc9b0b1a"]]);T.__docgenInfo={displayName:"Banner",exportName:"default",description:"",tags:{},props:[{name:"icon",type:{name:"object"},defaultValue:{func:!1,value:"null"}},{name:"buttonText",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"closable",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"color",type:{name:"string"},defaultValue:{func:!1,value:"BANNER_COLORS.DEFAULT"}},{name:"title",type:{name:"string"},required:!0},{name:"layout",type:{name:"string"},defaultValue:{func:!1,value:"BANNER_LAYOUTS.HORIZONTAL"}},{name:"isExpanded",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isIconHiddenOnMobile",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"button-clicked"},{name:"close"},{name:"update:isExpanded",type:{names:["undefined"]}}],slots:[{name:"defaultText"},{name:"rightSlot"},{name:"expandedText"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Banner/Banner.vue"]};export{de as B,n as a,c as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{B as a,a as l,b as s}from"./Banner-
|
|
1
|
+
import{B as a,a as l,b as s}from"./Banner-DDGfdClH.js";import{I as d}from"./Icon-BPz80dqH.js";import"./Button-yeAor0pZ.js";import"./vue.esm-bundler-DmkhfO_9.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Divider-CeZli6az.js";import"./IconButton-gTykCZIi.js";import"./device-9fgosCm4.js";const{useArgs:c}=__STORYBOOK_MODULE_PREVIEW_API__,E={title:"Components/Banner",component:a},m=r=>{const[b,i]=c();return{components:{Banner:a},setup(){return r},data(){return{ICONS:Object.freeze(d)}},methods:{onIsExpandedUpdated(p){i({isExpanded:p})}},template:`
|
|
2
2
|
<banner
|
|
3
3
|
:closable="closable"
|
|
4
4
|
:icon="ICONS[icon]"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as y,R as r,c as l,b as u,a as t,d as v,e as d,f as b}from"./GroupRichListItem-
|
|
1
|
+
import{i as y,R as r,c as l,b as u,a as t,d as v,e as d,f as b}from"./GroupRichListItem-B5zdEDgJ.js";import{D as T,T as p,c as n}from"./TextGroup-D5le3QVY.js";import{d as S,t as g,b as E,h as L,e as s,n as R,r as f,o as C,f as i,a as h,k as O}from"./vue.esm-bundler-DmkhfO_9.js";import{I as _,c as D}from"./Icon-BPz80dqH.js";import{_ as M}from"./_plugin-vue_export-helper-DlAUqK2U.js";const m=S({name:"BasicRichListItem",components:{DsTextGroup:T,RichListItem:y},props:{type:{type:String,default:r.DEFAULT,validator(e){return Object.values(r).includes(e)}},state:{type:String,default:l.DEFAULT,validator(e){return Object.values(l).includes(e)}},layout:{type:String,default:u.HORIZONTAL,validator(e){return Object.values(u).includes(e)}},size:{type:String,default:t.MEDIUM,validator(e){return Object.values(t).includes(e)}},isInteractive:{type:Boolean,default:!0},isDimmed:{type:Boolean,default:!1},isDraggable:{type:Boolean,default:!0},icon:{type:Object,default:null,validator(e){return Object.values(_).includes(g(e))}},iconColor:{type:String,default:null,validator(e){return Object.values(D).includes(e)}},iconColorHex:{type:String,default:null},borderColor:{type:String,default:null,validator(e){return Object.values(v).includes(e)}},borderColorHex:{type:String,default:null},text:{type:String,required:!0},textEllipsis:{type:Boolean,default:!1},eyebrow:{type:String,default:null},eyebrowEllipsis:{type:Boolean,default:!1},isEyebrowUppercase:{type:Boolean,default:!1},supportingText:{type:String,default:null},supportingTextEllipsis:{type:Boolean,default:!1},isSupportingTextTooltipEnabled:{type:Boolean,default:!1},backgroundColor:{type:String,default:d.NEUTRAL,validator(e){return Object.values(d).includes(e)}},elevation:{type:String,default:null,validator(e){return Object.values(b).includes(e)}},hasDraggableHandler:{type:Boolean,default:!0},hasActionsSlotDivider:{type:Boolean,default:!0},isSelectable:{type:Boolean,default:!0},isSelected:{type:Boolean,default:!1}},emits:{"update:is-selected":e=>!0},data(){return{hovered:!1,RICH_LIST_ITEM_SIZE:Object.freeze(t),RICH_LIST_ITEM_STATE:Object.freeze(l)}},computed:{textGroupSize(){return{[t.SMALL]:p.SMALL,[t.MEDIUM]:p.MEDIUM}[this.size]},textGroupState(){return this.state===l.LOADING?n.LOADING:this.hovered&&this.isInteractive?n.HOVERED:n.DEFAULT}}}),V={class:"ds-basicRichListItem__content"};function A(e,a,H,B,U,w){const c=f("ds-text-group"),I=f("rich-list-item");return C(),E(I,{size:e.size,type:e.type,layout:e.layout,"is-interactive":e.isInteractive,"is-draggable":e.isDraggable,icon:e.icon,"icon-color":e.iconColor,"icon-color-hex":e.iconColorHex,"is-dimmed":e.isDimmed,"border-color":e.borderColor,"border-color-hex":e.borderColorHex,state:e.state,"background-color":e.backgroundColor,elevation:e.elevation,"has-draggable-handler":e.hasDraggableHandler,"has-actions-slot-divider":e.hasActionsSlotDivider,"is-selectable":e.isSelectable,"is-selected":e.isSelected,class:R(["ds-basicRichListItem",{"-ds-loading":e.state===e.RICH_LIST_ITEM_STATE.LOADING,"-ds-small":e.size===e.RICH_LIST_ITEM_SIZE.SMALL}]),onMouseover:a[0]||(a[0]=o=>e.hovered=!0),onMouseleave:a[1]||(a[1]=o=>e.hovered=!1),"onUpdate:isSelected":a[2]||(a[2]=o=>e.$emit("update:is-selected",o))},L({content:s(()=>[h("div",V,[O(c,{"eyebrow-text":e.eyebrow,"eyebrow-text-ellipsis":e.eyebrowEllipsis,"is-eyebrow-text-uppercase":e.isEyebrowUppercase,"is-selected":e.isSelected,"is-interactive":!1,"main-text":e.text,"main-text-ellipsis":e.textEllipsis,"supporting-text":e.supportingText,"supporting-text-ellipsis":e.supportingTextEllipsis,size:e.textGroupSize,state:e.textGroupState,"is-supporting-text-tooltip-enabled":e.isSupportingTextTooltipEnabled},null,8,["eyebrow-text","eyebrow-text-ellipsis","is-eyebrow-text-uppercase","is-selected","main-text","main-text-ellipsis","supporting-text","supporting-text-ellipsis","size","state","is-supporting-text-tooltip-enabled"])])]),_:2},[e.$slots.media?{name:"media",fn:s(()=>[i(e.$slots,"media",{},void 0,!0)]),key:"0"}:void 0,e.$slots.metadata?{name:"metadata",fn:s(()=>[i(e.$slots,"metadata",{},void 0,!0)]),key:"1"}:void 0,e.$slots.actions?{name:"actions",fn:s(()=>[i(e.$slots,"actions",{},void 0,!0)]),key:"2"}:void 0]),1032,["size","type","layout","is-interactive","is-draggable","icon","icon-color","icon-color-hex","is-dimmed","border-color","border-color-hex","state","background-color","elevation","has-draggable-handler","has-actions-slot-divider","is-selectable","is-selected","class"])}const G=M(m,[["render",A],["__scopeId","data-v-d64ae189"]]);m.__docgenInfo={displayName:"BasicRichListItem",exportName:"default",description:"",tags:{},props:[{name:"type",type:{name:"RichListItemType"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_TYPE.DEFAULT"}},{name:"state",type:{name:"RichListItemState"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_STATE.DEFAULT"}},{name:"layout",type:{name:"RichListItemLayout"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_LAYOUT.HORIZONTAL"}},{name:"size",type:{name:"RichListItemSize"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_SIZE.MEDIUM"}},{name:"isInteractive",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isDimmed",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isDraggable",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"icon",type:{name:"IconItem"},defaultValue:{func:!1,value:"null"}},{name:"iconColor",type:{name:"IconColor"},defaultValue:{func:!1,value:"null"}},{name:"iconColorHex",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"borderColor",type:{name:"RichListItemBorderColor"},defaultValue:{func:!1,value:"null"}},{name:"borderColorHex",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"text",type:{name:"string"},required:!0},{name:"textEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"eyebrow",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"eyebrowEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isEyebrowUppercase",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"supportingText",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"supportingTextEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isSupportingTextTooltipEnabled",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"backgroundColor",type:{name:"RichListItemBackgroundColor"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_BACKGROUND_COLOR.NEUTRAL"}},{name:"elevation",type:{name:"RichListItemElevation"},defaultValue:{func:!1,value:"null"}},{name:"hasDraggableHandler",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"hasActionsSlotDivider",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isSelectable",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isSelected",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"update:is-selected"}],slots:[{name:"media"},{name:"metadata"},{name:"actions"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue"]};export{G as B};
|
package/docs/assets/{BasicRichListItem.stories-BlzhLCc3.js → BasicRichListItem.stories-W11x1b5C.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{B as l}from"./BasicRichListItem-
|
|
1
|
+
import{B as l}from"./BasicRichListItem-CjGmKgW-.js";import{R as p,a as n,b as c,c as m,d as h,e as d,f as C}from"./GroupRichListItem-B5zdEDgJ.js";import{c as T,I as a}from"./Icon-BPz80dqH.js";import"./Avatar-U_7Z6nZ2.js";import"./Badge-DSmH78WU.js";import"./BadgeScore-GfZixoUY.js";import"./Banner-DDGfdClH.js";import"./Button-yeAor0pZ.js";import"./ToggleButton-eR3n1vbs.js";import"./Card-BzXb8FVb.js";import"./CardExpandable-t59MJJJ1.js";import"./DatePicker-CYB-OeHU.js";import"./DateRangePicker-BY0ptzDm.js";import"./Divider-CeZli6az.js";import"./FeatureIcon-Zls5aPDA.js";import"./IconButton-gTykCZIi.js";import"./string-CFc0pFCE.js";import"./Modal-D7RDnkRT.js";import"./ModalDialog-D-FrIv9r.js";import"./NumberInCircle-CYZFaZ00.js";import"./TabItem-Cceq5FQB.js";import"./Tile-DvjxsEPO.js";import"./Toast-DKAzASvr.js";import"./AccessStatus-BKJi9u47.js";import"./BlockadeStatus-D6w6lZhK.js";import"./SurveyToggle-BECsKZHH.js";import"./SurveyQuestionScale-I7rmD2z-.js";import"./SurveyQuestionOpenEnded-DUybHAVt.js";import"./SectionHeader-CwB5neO2.js";import"./PageHeader-C5oCP3S2.js";import"./SectionTitle-BQZh7aFs.js";import"./Drawer-BAhS1Aex.js";import"./DrawerContent-BC_l9IKr.js";import"./DrawerDivider-DuTuIbLz.js";import"./DrawerHeader-6iOWRU4r.js";import"./DrawerListItem-BCPF0NKt.js";import"./DrawerListItemGroup-BTfrsZ_p.js";import"./DrawerTile-CTrRTsz5.js";import"./DrawerSection-B6PrbMVD.js";import"./OutlineItem-DqMRN7G1.js";import"./OutlineDivider-DItdz99b.js";import"./OutlineSectionHeader-CtypBCqR.js";import"./Chip-CkWK9-eU.js";import"./CounterToggle-UTpNPOSH.js";import"./SelectList-T6eJOYPv.js";import"./SelectListItem-DPuR0fG2.js";import"./SelectListItemDivider-CTuILyj9.js";import"./SelectListItemToggle-Bd5zU5Vc.js";import"./SelectListItemTile-CWD-7N0p.js";import"./SelectListSectionTitle-BOCjrVHo.js";import"./SelectionTile-7OHQEA9w.js";import"./LoadingBar-C1yAImWt.js";import"./PopOver-DlmHqZVO.js";import"./Dropdown-B75bqkCY.js";import"./ProgressBar-DcRQqf-M.js";import"./ProgressDonutChart-O1ep3At7.js";import"./IconText-7zvo_ew8.js";import"./Pagination-xRPA6q3h.js";import"./OverlayHeader-D3BWUMCs.js";import"./Well-Chn1RK_x.js";import"./ThreeColumnLayout-CFf8NRwP.js";import"./Switch-C8il24TP.js";import"./TextGroup-D5le3QVY.js";import"./Tooltip-DB8acOEc.js";import{I as E}from"./Image-B9jnhF_n.js";import"./Skeleton-DMxKKJ0Z.js";import{w as O}from"./decorator-CSnIf-k5.js";import"./vue.esm-bundler-DmkhfO_9.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Checkbox-K_NwPnQU.js";import"./SelectionControl-Xe-aYMrS.js";import"./iframe-C7WPYr8K.js";import"../sb-preview/runtime.js";import"./device-9fgosCm4.js";import"./user-_JB5aHqq.js";import"./vue-popper-DQfdblyw.js";import"./_commonjsHelpers-Chg3vePA.js";import"./v4-BZawosSj.js";const{useArgs:y}=__STORYBOOK_MODULE_PREVIEW_API__,Xe={title:"Components/RichList/BasicRichListItem",component:l,decorators:[e=>({components:{story:e},template:"<div style='display: flex;padding: 16px;'><story /></div>"}),O]},v=(e,i={})=>(e.argTypes={type:{options:Object.values(p),control:"select"},size:{options:Object.values(n),control:"select"},layout:{options:Object.values(c),control:{type:"select"}},state:{options:Object.values(m),control:"select"},iconColor:{options:[null,...Object.values(T)],control:"select"},borderColor:{options:[null,...Object.values(h)],control:"select"},icon:{options:[null,...Object.keys(a)],control:"select"},iconColorHex:{control:"text"},borderColorHex:{control:"text"},eyebrow:{control:"text"},eyebrowEllipsis:{control:"boolean"},isEyebrowUppercase:{control:"boolean"},text:{control:"text"},textEllipsis:{control:"boolean"},supportingText:{control:"text"},supportingTextEllipsis:{control:"boolean"},isSupportingTextTooltipEnabled:{control:"boolean"},metadata:{control:"text"},actions:{control:"text"},draggableIconClassName:{control:"text"},backgroundColor:{options:[null,...Object.values(d)],control:"select"},elevation:{options:[null,...Object.values(C)],control:"select"}},e.args={size:n.MEDIUM,type:p.DEFAULT,layout:c.HORIZONTAL,backgroundColor:d.NEUTRAL,elevation:null,isDimmed:!1,isDraggable:!0,hasDraggableHandler:!0,icon:null,iconColor:null,iconColorHex:"",hasActionsSlotDivider:!0,isSelectable:!0,isSelected:!0,borderColor:null,borderColorHex:"",state:m.DEFAULT,isInteractive:!0,draggableIconClassName:"draggableIconClassName-1",eyebrow:"Eyebrow Uppercase",eyebrowEllipsis:!1,isEyebrowUppercase:!1,text:"Długa nazwa gdy się nie mieści Praesentium dicta sit. Molestiae unde voluptatem eaque labore.",textEllipsis:!1,supportingText:"null",supportingTextEllipsis:!1,isSupportingTextTooltipEnabled:!1,metadata:"Metadata Slot",actions:"ACS",...i},e.parameters={actions:{handles:["icon-click","click","update:is-selected"]},layout:"fullscreen",design:{type:"figma",url:"https://www.figma.com/file/izQdYyiBR1GQgFkaOIfIJI/LMS---DS-Components?type=design&node-id=8673-2345&mode=design&t=QeEz8TmzxDbrGYK3-4"}},e),w=e=>{const[i,r]=y();return{components:{BasicRichListItem:l},setup(){return e},data(){return{ICONS:Object.freeze(a)}},methods:{updateIsSelected(s){r({isSelected:s})}},template:`
|
|
2
2
|
<basic-rich-list-item
|
|
3
3
|
:size="size"
|
|
4
4
|
:type="type"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as n,c as r,k as c,a as i,j as u,n as d,r as p,o as l}from"./vue.esm-bundler-DmkhfO_9.js";import{a as _,I as t,b as m}from"./Icon-
|
|
1
|
+
import{d as n,c as r,k as c,a as i,j as u,n as d,r as p,o as l}from"./vue.esm-bundler-DmkhfO_9.js";import{a as _,I as t,b as m}from"./Icon-BPz80dqH.js";import{a as e}from"./user-_JB5aHqq.js";import{_ as S}from"./_plugin-vue_export-helper-DlAUqK2U.js";const a=n({name:"BlockadeStatus",components:{Icon:_},props:{status:{type:String,required:!0}},data(){return{ICONS:Object.freeze(t),ICON_SIZES:Object.freeze(m)}},computed:{icon(){return this.status===e.ACTIVE?t.FA_LOCK_KEYHOLE:t.FA_UNLOCK_KEYHOLE},statusClass(){return this.status===e.ACTIVE?"-ds-active":""},text(){return this.status===e.ACTIVE?"Blokada dostępu":"Blokada zakończona"}}}),C={class:"ds-blockadeStatus__text"};function f(s,k,I,E,O,B){const o=p("icon");return l(),r("div",{class:d(["ds-blockadeStatus",s.statusClass])},[c(o,{size:s.ICON_SIZES.X_SMALL,icon:s.icon,class:"ds-blockadeStatus__icon"},null,8,["size","icon"]),i("span",C,u(s.text),1)],2)}const z=S(a,[["render",f],["__scopeId","data-v-a48935bf"]]);a.__docgenInfo={displayName:"BlockadeStatus",exportName:"default",description:"",tags:{},props:[{name:"status",type:{name:"string"},required:!0}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue"]};export{z as B};
|
package/docs/assets/{BlockedeStatus.stories-Do9jrnuL.js → BlockedeStatus.stories-BPVIJ-7M.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{B as o}from"./BlockadeStatus-
|
|
1
|
+
import{B as o}from"./BlockadeStatus-D6w6lZhK.js";import{a as r}from"./user-_JB5aHqq.js";import"./vue.esm-bundler-DmkhfO_9.js";import"./Icon-BPz80dqH.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const g={title:"Components/Statuses/BlockadeStatus",component:o},c=n=>({components:{BlockadeStatus:o},setup(){return n},template:'<blockade-status :status="status" />'}),t=c.bind({}),p={status:r.ACTIVE},m={status:{control:"select",options:Object.values(r)}};t.argTypes=m;t.args=p;t.parameters={design:{type:"figma",url:"https://www.figma.com/file/izQdYyiBR1GQgFkaOIfIJI/LMS---DS---Components?node-id=3040%3A70712"}};var s,e,a;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`args => ({
|
|
2
2
|
components: {
|
|
3
3
|
BlockadeStatus
|
|
4
4
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as L,I as o,b as a}from"./Icon-
|
|
1
|
+
import{a as L,I as o,b as a}from"./Icon-BPz80dqH.js";import{d as c,t as E,c as N,a as I,b as i,g as r,f,n as A,r as m,o as t}from"./vue.esm-bundler-DmkhfO_9.js";import{_ as U}from"./_plugin-vue_export-helper-DlAUqK2U.js";const s={SMALL:"small",MEDIUM:"medium",LARGE:"large"},n={FILLED:"filled",OUTLINED:"outlined",TEXT:"text"},T={PRIMARY:"primary",NEUTRAL:"neutral",DANGER:"danger",SUCCESS:"success",INVERTED:"inverted"},u={CAPSULE:"capsule",ROUNDED:"rounded"},S={DEFAULT:"default",HOVERED:"hovered",FOCUSED:"focused",DISABLED:"disabled",LOADING:"loading"},d={NONE:"none",X_SMALL:"x-small",SMALL:"small"},z={XX_SMALL:"xx-small",X_SMALL:"x-small",SMALL:"small",MEDIUM:"medium",LARGE:"large"},j={ICON_ONLY:"icon-only",OUTLINED:n.OUTLINED,FILLED:n.FILLED},V={ALL_IN_COLOR:"all-in-color",NEUTRAL_LABEL:"neutral-label"},D={PRIMARY:"primary",NEUTRAL:"neutral",NEUTRAL_WEAK:"neutral-weak",FAIL:"fail",DANGER:"danger",SUCCESS:"success",INVERTED:"inverted",WARNING:"warning",INFO:"info"},h={DEFAULT:"default",HOVERED:"hovered",FOCUSED:"focused",DISABLED:"disabled",LOADING:"loading"},O=c({name:"Button",components:{WnlIcon:L},props:{size:{type:String,default:s.MEDIUM,validator(e){return Object.values(s).includes(e)}},type:{type:String,default:n.FILLED,validator(e){return Object.values(n).includes(e)}},color:{type:String,default:T.PRIMARY,validator(e){return Object.values(D).includes(e)}},radius:{type:String,default:u.CAPSULE,validator(e){return Object.values(u).includes(e)}},state:{type:String,default:S.DEFAULT,validator(e){return Object.values(S).includes(e)}},iconLeft:{type:Object,default:null,validator(e){return Object.values(o).includes(E(e))}},iconRight:{type:Object,default:null,validator(e){return Object.values(o).includes(E(e))}},elevation:{type:String,default:d.NONE,validator(e){return Object.values(d).includes(e)}}},data(){return{ICONS:Object.freeze(o),ICON_SIZES:Object.freeze(a),BUTTON_TYPES:Object.freeze(n),COLORS:Object.freeze(T),RADIUSES:Object.freeze(u),SIZES:Object.freeze(s),STATES:Object.freeze(S),ELEVATIONS:Object.freeze(d)}},computed:{iconSize(){return this.size===this.SIZES.SMALL||this.size===this.SIZES.MEDIUM?a.XX_SMALL:a.X_SMALL},colorClassName(){return`-ds-color-${this.color}`},loadingIconSize(){return this.size===s.LARGE?a.MEDIUM:this.size===s.SMALL?a.X_SMALL:a.SMALL}}}),p={class:"ds-button__content"};function R(e,v,B,g,C,b){const l=m("wnl-icon");return t(),N("span",{class:A(["ds-button",{"-ds-outlined":e.type===e.BUTTON_TYPES.OUTLINED,"-ds-text":e.type===e.BUTTON_TYPES.TEXT,"-ds-small":e.size===e.SIZES.SMALL,"-ds-large":e.size===e.SIZES.LARGE,"-ds-rounded":e.type!==e.BUTTON_TYPES.TEXT&&e.radius===e.RADIUSES.ROUNDED,"-ds-hovered":e.state===e.STATES.HOVERED,"-ds-focused":e.state===e.STATES.FOCUSED,"-ds-loading":e.state===e.STATES.LOADING,"-ds-disabled":e.state===e.STATES.DISABLED,[e.colorClassName]:!0,"-ds-elevation-x-small":e.elevation===e.ELEVATIONS.X_SMALL,"-ds-elevation-small":e.elevation===e.ELEVATIONS.SMALL}])},[I("span",p,[e.iconLeft?(t(),i(l,{key:0,class:"ds-button__icon -ds-left",icon:e.iconLeft,size:e.iconSize},null,8,["icon","size"])):r("",!0),f(e.$slots,"default"),e.iconRight?(t(),i(l,{key:1,class:"ds-button__icon -ds-right",icon:e.iconRight,size:e.iconSize},null,8,["icon","size"])):r("",!0)]),e.state===e.STATES.LOADING?(t(),i(l,{key:0,class:"ds-button__loadingIcon",icon:e.ICONS.FAD_SPINNER_THIRD,size:e.loadingIconSize},null,8,["icon","size"])):r("",!0)],2)}const F=U(O,[["render",R]]);O.__docgenInfo={displayName:"Button",exportName:"default",description:"",tags:{},props:[{name:"size",type:{name:"string"},defaultValue:{func:!1,value:"BUTTON_SIZES.MEDIUM"}},{name:"type",type:{name:"string"},defaultValue:{func:!1,value:"BUTTON_TYPES.FILLED"}},{name:"color",type:{name:"string"},defaultValue:{func:!1,value:"BUTTON_COLORS.PRIMARY"}},{name:"radius",type:{name:"string"},defaultValue:{func:!1,value:"BUTTON_RADIUSES.CAPSULE"}},{name:"state",type:{name:"string"},defaultValue:{func:!1,value:"BUTTON_STATES.DEFAULT"}},{name:"iconLeft",type:{name:"object"},defaultValue:{func:!1,value:"null"}},{name:"iconRight",type:{name:"object"},defaultValue:{func:!1,value:"null"}},{name:"elevation",type:{name:"string"},defaultValue:{func:!1,value:"BUTTON_ELEVATIONS.NONE"}}],slots:[{name:"default"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Buttons/Button/Button.vue"]};export{s as B,F as D,z as I,n as a,T as b,u as c,S as d,d as e,j as f,V as g,h,D as i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as r,B as i,a as c,b as a,c as l,d as p,e as u}from"./Button-
|
|
1
|
+
import{D as r,B as i,a as c,b as a,c as l,d as p,e as u}from"./Button-yeAor0pZ.js";import{I as e}from"./Icon-BPz80dqH.js";import{w as O}from"./decorator-CSnIf-k5.js";import"./vue.esm-bundler-DmkhfO_9.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./v4-BZawosSj.js";const E={title:"Components/Buttons/Button",component:r,decorators:[O]},m=d=>({components:{Button:r},setup(){return d},template:`
|
|
2
2
|
<div :class="{ contrastBackground: isInverted }">
|
|
3
3
|
<Button
|
|
4
4
|
:size="size"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as u,b as c,h as f,e as a,r as s,o as t,a as r,j as m,k as x,f as n,c as E,g as C}from"./vue.esm-bundler-DmkhfO_9.js";import{C as h}from"./Card-BzXb8FVb.js";import{a as b,I,b as v}from"./Icon-
|
|
1
|
+
import{d as u,b as c,h as f,e as a,r as s,o as t,a as r,j as m,k as x,f as n,c as E,g as C}from"./vue.esm-bundler-DmkhfO_9.js";import{C as h}from"./Card-BzXb8FVb.js";import{a as b,I,b as v}from"./Icon-BPz80dqH.js";import{_ as y}from"./_plugin-vue_export-helper-DlAUqK2U.js";const o=u({name:"CardExpandable",components:{DsCard:h,DsIcon:b},props:{isExpanded:{type:Boolean,default:!1},isExpanderVisible:{type:Boolean,default:!0},expanderTextCollapsed:{type:String,default:"Rozwiń"},expanderTextExpanded:{type:String,default:"Zwiń"},headerHasPadding:{type:Boolean,default:!1},dividerUnderHeader:{type:Boolean,default:!1}},emits:{"update:isExpanded":e=>!0},data(){return{isExpandedInternal:!1,ICONS:Object.freeze(I),ICON_SIZES:Object.freeze(v)}},computed:{chevronRotation(){return this.isExpandedInternal?180:null}},watch:{isExpanded:{handler(e){e!==this.isExpandedInternal&&(this.isExpandedInternal=e)},immediate:!0}},methods:{onExpanderClick(){this.isExpandedInternal=!this.isExpandedInternal,this.$emit("update:isExpanded",this.isExpandedInternal)}}}),_={key:0,class:"ds-cardExpandable__expandedContent"},g={class:"ds-cardExpandable__expanderLabel"};function S(e,d,N,V,k,O){const i=s("ds-icon"),l=s("ds-card");return t(),c(l,{class:"ds-cardExpandable","header-has-padding":e.headerHasPadding,"divider-under-header":e.dividerUnderHeader},f({header:a(()=>[n(e.$slots,"header",{},void 0,!0)]),content:a(()=>[n(e.$slots,"content",{isExpanded:e.isExpandedInternal},void 0,!0),e.isExpandedInternal?(t(),E("div",_,[n(e.$slots,"expandedContent",{},void 0,!0)])):C("",!0)]),_:2},[e.isExpanderVisible?{name:"footer",fn:a(()=>[r("div",{class:"ds-cardExpandable__expander",onClick:d[0]||(d[0]=(...p)=>e.onExpanderClick&&e.onExpanderClick(...p))},[r("span",g,m(e.isExpandedInternal?e.expanderTextExpanded:e.expanderTextCollapsed),1),x(i,{class:"ds-cardExpandable__expanderIcon",icon:e.ICONS.FA_CHEVRON_DOWN,rotation:e.chevronRotation,size:e.ICON_SIZES.X_SMALL},null,8,["icon","rotation","size"])])]),key:"0"}:void 0]),1032,["header-has-padding","divider-under-header"])}const z=y(o,[["render",S],["__scopeId","data-v-762d08c5"]]);o.__docgenInfo={displayName:"CardExpandable",exportName:"default",description:"",tags:{},props:[{name:"isExpanded",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isExpanderVisible",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"expanderTextCollapsed",type:{name:"string"},defaultValue:{func:!1,value:"'Rozwiń'"}},{name:"expanderTextExpanded",type:{name:"string"},defaultValue:{func:!1,value:"'Zwiń'"}},{name:"headerHasPadding",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"dividerUnderHeader",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"update:isExpanded",type:{names:["undefined"]}}],slots:[{name:"header"},{name:"content",scoped:!0,bindings:[{name:"is-expanded",title:"binding"}]},{name:"expandedContent"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Cards/CardExpandable/CardExpandable.vue"]};export{z as C};
|
package/docs/assets/{CardExpandable.stories-C_tWFj8w.js → CardExpandable.stories-GrQybWeN.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as t}from"./CardExpandable-
|
|
1
|
+
import{C as t}from"./CardExpandable-t59MJJJ1.js";import"./vue.esm-bundler-DmkhfO_9.js";import"./Card-BzXb8FVb.js";import"./Divider-CeZli6az.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./LoadingBar-C1yAImWt.js";import"./Icon-BPz80dqH.js";const E={title:"Components/Cards/CardExpandable",component:t},p=r=>({components:{CardExpandable:t},setup(){return r},template:`
|
|
2
2
|
<card-expandable :is-expander-visible="isExpanderVisible" :expander-text-collapsed="expanderTextCollapsed"
|
|
3
3
|
:expander-text-expanded="expanderTextExpanded" :is-expanded="isExpanded"
|
|
4
4
|
:header-has-padding="headerHasPadding" :divider-under-header="dividerUnderHeader">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as u,b as i,r,o as c}from"./vue.esm-bundler-DmkhfO_9.js";import{S as p,a as d,b as f,c as C}from"./SelectionControl-
|
|
1
|
+
import{d as u,b as i,r,o as c}from"./vue.esm-bundler-DmkhfO_9.js";import{S as p,a as d,b as f,c as C}from"./SelectionControl-Xe-aYMrS.js";import{I as m}from"./Icon-BPz80dqH.js";import{_ as S}from"./_plugin-vue_export-helper-DlAUqK2U.js";const s={...p},o={...d},a=u({name:"Checkbox",components:{SelectionControl:f},props:{size:{type:String,default:s.SMALL,validator(e){return Object.values(s).includes(e)}},label:{type:String,default:null},isSelected:{type:Boolean,default:!1},state:{type:String,default:o.DEFAULT,validator(e){return Object.values(o).includes(e)}}},emits:["update:is-selected","input:focus","input:blur"],data(){return{SELECTION_CONTROL_TYPE:Object.freeze(C),ICONS:Object.freeze(m)}}});function O(e,t,E,T,_,I){const l=r("selection-control");return c(),i(l,{size:e.size,label:e.label,"is-selected":e.isSelected,"selected-icon":e.ICONS.FA_SQUARE_CHECK_SOLID,"not-selected-icon":e.ICONS.FA_SQUARE,state:e.state,type:e.SELECTION_CONTROL_TYPE.CHECKBOX,"onUpdate:isSelected":t[0]||(t[0]=n=>e.$emit("update:is-selected",n)),"onInput:focus":t[1]||(t[1]=n=>e.$emit("input:focus")),"onInput:blur":t[2]||(t[2]=n=>e.$emit("input:blur"))},null,8,["size","label","is-selected","selected-icon","not-selected-icon","state","type"])}const b=S(a,[["render",O]]);a.__docgenInfo={displayName:"Checkbox",exportName:"default",description:"",tags:{},props:[{name:"size",type:{name:"CheckboxSize"},defaultValue:{func:!1,value:"CHECKBOX_SIZE.SMALL"}},{name:"label",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"isSelected",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"state",type:{name:"CheckboxState"},defaultValue:{func:!1,value:"CHECKBOX_STATE.DEFAULT"}}],events:[{name:"update:is-selected"},{name:"input:focus"},{name:"input:blur"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Form/Checkbox/Checkbox.vue"]};const k=Object.freeze(Object.defineProperty({__proto__:null,default:b},Symbol.toStringTag,{value:"Module"}));export{o as C,b as D,s as a,k as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as r,C as n,a}from"./Checkbox-
|
|
1
|
+
import{D as r,C as n,a}from"./Checkbox-K_NwPnQU.js";import{a as i,b as d,t as g}from"./SelectionControl.sb.shared-BWifjoMU.js";import{w as l}from"./decorator-CSnIf-k5.js";import"./vue.esm-bundler-DmkhfO_9.js";import"./SelectionControl-Xe-aYMrS.js";import"./Icon-BPz80dqH.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./v4-BZawosSj.js";const{useArgs:u}=__STORYBOOK_MODULE_PREVIEW_API__,E={title:"Components/Form/Checkbox",component:r,decorators:[l]},_=p=>{const[h,c]=u();return{components:{Checkbox:r},setup(){return{args:p}},methods:{onIsSelectedUpdated(m){c({isSelected:m})}},template:g("checkbox")}},e=_.bind({});e.argTypes=i(a,n);e.args=d(a,n);e.parameters={actions:{handles:["click","toggle"]},design:{type:"figma",url:"https://www.figma.com/file/izQdYyiBR1GQgFkaOIfIJI/LMS---DS-Components?type=design&node-id=1552-34962&t=Ui6dF84wekRpqsXb-0"}};var t,s,o;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:`args => {
|
|
2
2
|
const [_, updateArgs] = useArgs();
|
|
3
3
|
return {
|
|
4
4
|
components: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as p}from"./IconButton-
|
|
1
|
+
import{I as p}from"./IconButton-gTykCZIi.js";import{i as a,e as m,h as A,I as C}from"./Button-yeAor0pZ.js";import{a as E,I as i,b as N}from"./Icon-BPz80dqH.js";import{d as O,t as T,c as u,f as L,g as S,a as _,j as R,b,n as U,s as v,r as c,o,k as y}from"./vue.esm-bundler-DmkhfO_9.js";import{_ as P}from"./_plugin-vue_export-helper-DlAUqK2U.js";const t={X_SMALL:"x-small",SMALL:"small"},s={PRIMARY:"primary",PRIMARY_STRONG:"primaryStrong",NEUTRAL:"neutral",FAIL:"fail",DANGER:"danger",SUCCESS:"success",INVERTED:"inverted",WARNING:"warning",INFO:"info"},l={DEFAULT:"default",DISABLED:"disabled"},n={CAPSULE:"capsule",ROUNDED:"rounded"},D={[s.INVERTED]:a.PRIMARY,[s.NEUTRAL]:a.NEUTRAL,[s.PRIMARY]:a.PRIMARY,[s.PRIMARY_STRONG]:a.PRIMARY,[s.FAIL]:a.FAIL,[s.DANGER]:a.DANGER,[s.WARNING]:a.WARNING,[s.SUCCESS]:a.SUCCESS,[s.INFO]:a.INFO},I=O({name:"Chip",components:{Icon:E,IconButton:p},props:{label:{type:String,required:!0},isLabelUppercase:{type:Boolean,default:!1},leftIcon:{type:Object,default:null,validator(e){return Object.values(i).includes(T(e))}},radius:{type:String,default:n.CAPSULE,validator(e){return Object.values(n).includes(e)}},size:{type:String,default:t.SMALL,validator(e){return Object.values(t).includes(e)}},color:{type:String,default:s.NEUTRAL,validator(e){return Object.values(s).includes(e)}},colorHex:{type:String,default:null},state:{type:String,default:l.DEFAULT,validator(e){return Object.values(l).includes(e)}},isRemovable:{type:Boolean,default:!1}},emits:["remove"],data(){return{ICONS:Object.freeze(i),BUTTON_ELEVATIONS:Object.freeze(m),ICON_BUTTON_STATES:Object.freeze(A),ICON_BUTTON_SIZES:Object.freeze(C),ICON_SIZES:Object.freeze(N),CHIP_SIZES:Object.freeze(t),CHIP_STATES:Object.freeze(l),CHIP_RADIUSES:Object.freeze(n)}},computed:{colorClassName(){return this.colorHex?"-ds-color-invertedHex":`-ds-color-${this.color}`},customStyle(){const e={};return this.colorHex&&(e.backgroundColor=this.colorHex),e},iconButtonColor(){return this.colorHex?a.NEUTRAL:D[this.color]||a.PRIMARY}}}),H=["title"],B={key:0,class:"ds-chip__leftIcon"},g={class:"ds-chip__label"};function M(e,r,h,z,j,V){const d=c("icon"),f=c("icon-button");return o(),u("div",{class:U(["ds-chip",{"-ds-x-small":e.size===e.CHIP_SIZES.X_SMALL,[e.colorClassName]:!0,"-ds-disabled":e.state===e.CHIP_STATES.DISABLED,"-ds-uppercase":e.isLabelUppercase,"-ds-rounded":e.radius===e.CHIP_RADIUSES.ROUNDED}]),title:e.label,style:v({backgroundColor:e.colorHex})},[e.$slots.accessory||e.leftIcon?(o(),u("span",B,[L(e.$slots,"accessory",{},()=>[y(d,{icon:e.leftIcon,size:e.size===e.CHIP_SIZES.X_SMALL?e.ICON_SIZES.XXX_SMALL:e.ICON_SIZES.XX_SMALL},null,8,["icon","size"])],!0)])):S("",!0),_("span",g,R(e.label),1),e.size!==e.CHIP_SIZES.X_SMALL&&e.isRemovable?(o(),b(f,{key:1,class:"ds-chip__remove",touchable:!1,state:e.state===e.CHIP_STATES.DISABLED?e.ICON_BUTTON_STATES.DISABLED:e.ICON_BUTTON_STATES.DEFAULT,color:e.iconButtonColor,size:e.ICON_BUTTON_SIZES.XX_SMALL,icon:e.ICONS.FA_XMARK,elevation:e.BUTTON_ELEVATIONS.X_SMALL,onClick:r[0]||(r[0]=X=>e.$emit("remove"))},null,8,["state","color","size","icon","elevation"])):S("",!0)],14,H)}const Y=P(I,[["render",M],["__scopeId","data-v-02de62e8"]]);I.__docgenInfo={displayName:"Chip",exportName:"default",description:"",tags:{},props:[{name:"label",type:{name:"string"},required:!0},{name:"isLabelUppercase",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"leftIcon",type:{name:"object"},defaultValue:{func:!1,value:"null"}},{name:"radius",type:{name:"string"},defaultValue:{func:!1,value:"CHIP_RADIUSES.CAPSULE"}},{name:"size",type:{name:"string"},defaultValue:{func:!1,value:"CHIP_SIZES.SMALL"}},{name:"color",type:{name:"string"},defaultValue:{func:!1,value:"CHIP_COLORS.NEUTRAL"}},{name:"colorHex",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"state",type:{name:"string"},defaultValue:{func:!1,value:"CHIP_STATES.DEFAULT"}},{name:"isRemovable",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"remove"}],slots:[{name:"accessory"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Chip/Chip.vue"]};export{Y as C,n as a,t as b,s as c,l as d};
|