@bethinkpl/design-system 28.1.13 → 29.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/RadioButton-2gZZWwFy.js +63 -0
- package/dist/RadioButton-2gZZWwFy.js.map +1 -0
- package/dist/RadioButton-CjzX_0B_.js +63 -0
- package/dist/RadioButton-CjzX_0B_.js.map +1 -0
- package/dist/design-system.css +1 -1
- package/dist/design-system.js +1 -1
- package/dist/index-B1i8wBlD.js +25167 -0
- package/dist/index-B1i8wBlD.js.map +1 -0
- package/dist/index-OWTZc1Dt.js +25159 -0
- package/dist/index-OWTZc1Dt.js.map +1 -0
- package/dist/lib/js/components/Buttons/IconButton/IconButton.vue.d.ts +1 -1
- package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +1 -1
- package/dist/lib/js/components/Chip/Chip.vue.d.ts +2 -2
- package/dist/lib/js/components/DatePickers/DateBox/DateBox.vue.d.ts +1 -1
- package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.vue.d.ts +17 -17
- package/dist/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.vue.d.ts +17 -17
- package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue.d.ts +4 -4
- package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue.d.ts +1 -1
- package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +3 -3
- package/dist/lib/js/components/Form/Checkbox/Checkbox.vue.d.ts +1 -1
- package/dist/lib/js/components/Form/RadioButton/RadioButton.vue.d.ts +1 -1
- package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue.d.ts +2 -2
- package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.vue.d.ts +2 -2
- package/dist/lib/js/components/Icons/Icon/Icon.consts.d.ts +1 -1
- package/dist/lib/js/components/Modal/Modal.vue.d.ts +1 -1
- package/dist/lib/js/components/Modals/Modal/Modal.vue.d.ts +2 -2
- package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.vue.d.ts +2 -2
- package/dist/lib/js/components/Outline/OutlineItem/OutlineItem.vue.d.ts +1 -1
- package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +3 -3
- package/dist/lib/js/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
- package/dist/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue.d.ts +1 -1
- package/dist/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue.d.ts +5 -4
- package/dist/lib/js/components/RichList/RichListItem/RichListItem.vue.d.ts +2 -2
- package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +1 -1
- package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue.d.ts +1 -1
- package/dist/lib/js/components/SelectionTile/SelectionTile.vue.d.ts +3 -3
- package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.vue.d.ts +1 -1
- package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue.d.ts +1 -1
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +3 -3
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +3 -3
- package/dist/lib/js/components/Switch/Switch.vue.d.ts +1 -1
- package/dist/lib/js/components/Tile/Tile.sb.shared.d.ts +1 -1
- package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.vue.d.ts +1 -1
- package/dist/lib/js/icons/fontawesome.d.ts +1 -0
- package/docs/assets/{AccessStatus-DdL8SYsL.js → AccessStatus-gTZ35kWE.js} +1 -1
- package/docs/assets/{AccessStatus.stories-B_GH4GL4.js → AccessStatus.stories-CNlYo4yb.js} +1 -1
- package/docs/assets/{Avatar-CUjbAGTY.js → Avatar-BE7dVVOm.js} +1 -1
- package/docs/assets/{Avatar.stories-D5GObXyf.js → Avatar.stories-B_Kh3RtC.js} +1 -1
- package/docs/assets/{Badge-l1Gf7e-u.js → Badge-5Cw0lVjx.js} +1 -1
- package/docs/assets/{Badge.stories-B2IMkojZ.js → Badge.stories-Rrw9KmUy.js} +1 -1
- package/docs/assets/{BadgeScore-BWyVQiDF.js → BadgeScore-DOO7QEun.js} +1 -1
- package/docs/assets/{BadgeScore.stories-DbLmoMOp.js → BadgeScore.stories-Dv3btaRm.js} +1 -1
- package/docs/assets/{Banner-BUm2tk_M.js → Banner-CiGwWJXp.js} +1 -1
- package/docs/assets/{Banner.stories-pVP72ePd.js → Banner.stories-D7_kXnTN.js} +1 -1
- package/docs/assets/BasicRichListItem-BIKtfyVR.js +1 -0
- package/docs/assets/BasicRichListItem-C2YayYKm.css +1 -0
- package/docs/assets/{BasicRichListItem.stories-C1vHHu0O.js → BasicRichListItem.stories-9LRAW43r.js} +9 -3
- package/docs/assets/{BlockadeStatus-vP_NQHb_.js → BlockadeStatus-FRYRllaW.js} +1 -1
- package/docs/assets/{BlockedeStatus.stories-BBcrQCfM.js → BlockedeStatus.stories-C5U7gCzf.js} +1 -1
- package/docs/assets/{Button-QhwLVK52.js → Button-B2zUlKHR.js} +1 -1
- package/docs/assets/{Button.stories-CRHBZCOk.js → Button.stories-Du0ul-ee.js} +1 -1
- package/docs/assets/{CardExpandable-C59CX5JZ.js → CardExpandable-Cphp9zJo.js} +1 -1
- package/docs/assets/{CardExpandable.stories-BW9bvZBK.js → CardExpandable.stories-BYyvaQ5O.js} +1 -1
- package/docs/assets/{Checkbox-DUMsgnch.js → Checkbox-DEeTEf8x.js} +1 -1
- package/docs/assets/{Checkbox.stories-g_35oSry.js → Checkbox.stories-Cx8ZCqup.js} +1 -1
- package/docs/assets/{Chip-0W8FKghZ.js → Chip-C6ACB4fl.js} +1 -1
- package/docs/assets/{Chip.stories-DCcTcyD1.js → Chip.stories-upOIdUqx.js} +1 -1
- package/docs/assets/{Color-ERTF36HU-XT7op-oY.js → Color-ERTF36HU-BLjb_AXD.js} +1 -1
- package/docs/assets/{CounterToggle-DWugoxMC.js → CounterToggle-CBBFhB0y.js} +1 -1
- package/docs/assets/{CounterToggle.stories-DaY4XGNQ.js → CounterToggle.stories-CuoAnPiT.js} +1 -1
- package/docs/assets/{DateBox.stories-Y6a-6_-X.js → DateBox.stories-CfhRn5ds.js} +1 -1
- package/docs/assets/{DatePicker-Bxm154RQ.js → DatePicker-CuF_kTZp.js} +1 -1
- package/docs/assets/{DatePicker.stories-DdZ5k45-.js → DatePicker.stories-DnjR2_-o.js} +1 -1
- package/docs/assets/{DateRangePicker-C_vQHWsI.js → DateRangePicker-BmlgLign.js} +1 -1
- package/docs/assets/{DateRangePicker.stories-BubWOJV9.js → DateRangePicker.stories-CpaEKD12.js} +1 -1
- package/docs/assets/{DocsRenderer-CFRXHY34-DpLXJIgp.js → DocsRenderer-CFRXHY34-Dv514CPU.js} +5 -5
- package/docs/assets/{DrawerHeader-CA6Qcw9P.js → DrawerHeader-B73JIWxJ.js} +1 -1
- package/docs/assets/{DrawerHeader.stories-BFv0-FyP.js → DrawerHeader.stories-C6fnCICA.js} +1 -1
- package/docs/assets/{DrawerListItem-CI6QRTBw.js → DrawerListItem-B77TKMq3.js} +1 -1
- package/docs/assets/{DrawerListItem.stories-B_Omwslf.js → DrawerListItem.stories-CCySDWY_.js} +1 -1
- package/docs/assets/{DrawerListItemGroup.stories--XRp86A9.js → DrawerListItemGroup.stories-CUVA8vmw.js} +1 -1
- package/docs/assets/{DrawerSection-CyYhvvhd.js → DrawerSection-jmPiv0zV.js} +1 -1
- package/docs/assets/{DrawerSection.stories-CBvvj2kQ.js → DrawerSection.stories-in7ueh2L.js} +1 -1
- package/docs/assets/{DrawerTile-RB4v_36q.js → DrawerTile-TstvXnvE.js} +1 -1
- package/docs/assets/{DrawerTile.stories-DUU99Wef.js → DrawerTile.stories-BsPPenGK.js} +1 -1
- package/docs/assets/{Dropdown.stories-BMO92eF0.js → Dropdown.stories-Dq70KFPI.js} +1 -1
- package/docs/assets/{FeatureIcon-XW2P0b3h.js → FeatureIcon-D4m6z_nW.js} +1 -1
- package/docs/assets/{FeatureIcon.stories-DiOTA6of.js → FeatureIcon.stories-BDeTclEm.js} +1 -1
- package/docs/assets/{FormField-DWo2DIbf.js → FormField-Cabwnr1x.js} +1 -1
- package/docs/assets/{FormField.stories-cKPX7PXw.js → FormField.stories-B940dw_F.js} +1 -1
- package/docs/assets/{FormField.stories.shared-DcQ13z3c.js → FormField.stories.shared-DTa24XVV.js} +1 -1
- package/docs/assets/{FormFieldMessage-VsHd6t1M.js → FormFieldMessage-ReW8wyXl.js} +1 -1
- package/docs/assets/{FormFieldMessage.stories-D9lYPhyz.js → FormFieldMessage.stories-BC8EOk29.js} +1 -1
- package/docs/assets/{GroupRichListItem-B63S0oNZ.js → GroupRichListItem-Cne-DseP.js} +1 -1
- package/docs/assets/{GroupRichListItem.stories-C_zogGGz.js → GroupRichListItem.stories-B1iuOilR.js} +1 -1
- package/docs/assets/{HelpButton-DKmmVw1o.js → HelpButton-DtDWTLw6.js} +1 -1
- package/docs/assets/{HelpButton.stories-DRUjRTM9.js → HelpButton.stories-CpyP1SPG.js} +1 -1
- package/docs/assets/Icon-CrGnHcSg.js +558 -0
- package/docs/assets/{Icon.stories-BVa8sJmn.js → Icon.stories-BAc6nvEG.js} +1 -1
- package/docs/assets/{IconButton-DCpLAyGJ.js → IconButton-COu1YaXe.js} +1 -1
- package/docs/assets/{IconButton.stories-CFF-jOC7.js → IconButton.stories-_ChFVAIg.js} +1 -1
- package/docs/assets/{IconText-BfrRW56u.js → IconText-C0gfVDlj.js} +1 -1
- package/docs/assets/{IconText.stories-C1LRTwHr.js → IconText.stories-ExR2NVl1.js} +1 -1
- package/docs/assets/{InputField-Dpo1KWWx.js → InputField-ohZPvjR_.js} +1 -1
- package/docs/assets/{InputField.stories-CkS_Rxaj.js → InputField.stories-O4uV5x9e.js} +1 -1
- package/docs/assets/{Modal-exmOML9a.js → Modal-Cvfba84P.js} +1 -1
- package/docs/assets/{Modal.stories-BETa4dI9.js → Modal.stories-4GFwWRzg.js} +1 -1
- package/docs/assets/{ModalDialog-B_gXUq0d.js → ModalDialog-yI7htXrm.js} +1 -1
- package/docs/assets/{ModalDialog.stories-ByhMy9x1.js → ModalDialog.stories-30I2hLBU.js} +1 -1
- package/docs/assets/{OutlineItem-BxMLCjE8.js → OutlineItem-CYg3nFP2.js} +1 -1
- package/docs/assets/{OutlineItem.stories-DZHaGknZ.js → OutlineItem.stories-C9Pm_kmL.js} +1 -1
- package/docs/assets/{OverlayHeader-8oXx56Li.js → OverlayHeader-T0rtNJ5v.js} +1 -1
- package/docs/assets/{OverlayHeader.stories-D247lKaU.js → OverlayHeader.stories-BUJMeka9.js} +1 -1
- package/docs/assets/{Pagination-DiC4ugXW.js → Pagination-FSn6DfXQ.js} +1 -1
- package/docs/assets/{Pagination.stories-DGX81Eru.js → Pagination.stories-B_sAlKGS.js} +1 -1
- package/docs/assets/{PasswordField-D3ocBhmt.js → PasswordField-Boh6_ZnE.js} +1 -1
- package/docs/assets/{PasswordField.stories-D1nO6yWx.js → PasswordField.stories-V7OQZVC1.js} +1 -1
- package/docs/assets/{PopOver-C0o9qXV3.js → PopOver-CUdfwq3A.js} +1 -1
- package/docs/assets/{PopOver.stories-D0z3oZe8.js → PopOver.stories-FqPZWcJ9.js} +1 -1
- package/docs/assets/{ProgressBar-DqoLr1RZ.js → ProgressBar-BhZ_Zxla.js} +1 -1
- package/docs/assets/{ProgressBar.stories-C1ZlyiE-.js → ProgressBar.stories-6rmdb5hc.js} +1 -1
- package/docs/assets/{ProgressDonutChart-DZY2Yumi.js → ProgressDonutChart-BQ0JluTS.js} +1 -1
- package/docs/assets/{ProgressDonutChart.stories-Cfyr19MU.js → ProgressDonutChart.stories-CE3-MoEI.js} +1 -1
- package/docs/assets/{RadioButton-BLZJ5m6u.js → RadioButton-BrsYf8Vs.js} +1 -1
- package/docs/assets/{RadioButton.stories-Dazyjned.js → RadioButton.stories-DRu1CU2N.js} +1 -1
- package/docs/assets/{RichListItem.stories-CbAggYze.js → RichListItem.stories-S3S2i_8p.js} +1 -1
- package/docs/assets/{SectionHeader-Djcsatsq.js → SectionHeader-De5AG7Kp.js} +1 -1
- package/docs/assets/{SectionHeader.stories-7enmv9ba.js → SectionHeader.stories-CjbrwwDR.js} +1 -1
- package/docs/assets/{SelectList.stories-0hL_5dZ9.js → SelectList.stories-1UjfpWBy.js} +1 -1
- package/docs/assets/{SelectListItem-Dr7cinft.js → SelectListItem-C8rMqeD0.js} +1 -1
- package/docs/assets/{SelectListItem.stories-Bl3MhyPv.js → SelectListItem.stories-DfzBP45n.js} +1 -1
- package/docs/assets/{SelectListItemTile-D238R21e.js → SelectListItemTile-BgsZDxzP.js} +1 -1
- package/docs/assets/{SelectListItemTile.stories-B2GyM3tc.js → SelectListItemTile.stories-6DBqMWXb.js} +1 -1
- package/docs/assets/{SelectListItemToggle-Dfy8DGSU.js → SelectListItemToggle-Dl3WF6dN.js} +1 -1
- package/docs/assets/{SelectListItemToggle.stories-C1eSme2O.js → SelectListItemToggle.stories-DcII9AMh.js} +1 -1
- package/docs/assets/{SelectionControl-DvQZUuOE.js → SelectionControl-D6muFiQh.js} +1 -1
- package/docs/assets/{SelectionTile-A1OysdIQ.js → SelectionTile-CzdgmMQH.js} +2 -2
- package/docs/assets/{SelectionTile.stories-D4Q2c5Oz.js → SelectionTile.stories-F9SBtS6K.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded-mGjNtmo4.js → SurveyQuestionOpenEnded-CVdIPUom.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded.stories-CWWu-e5e.js → SurveyQuestionOpenEnded.stories-DOsOd2MI.js} +1 -1
- package/docs/assets/{SurveyQuestionScale-D0reDdf2.js → SurveyQuestionScale-BnI-ZPw4.js} +1 -1
- package/docs/assets/{SurveyQuestionScale.stories-D4DxUEmL.js → SurveyQuestionScale.stories-BgzaSJ_5.js} +1 -1
- package/docs/assets/{SurveyToggle-BfNRSf5A.js → SurveyToggle--5L10kQN.js} +1 -1
- package/docs/assets/{SurveyToggle.stories-BsVYqzek.js → SurveyToggle.stories-DYJX2c1g.js} +1 -1
- package/docs/assets/{Switch-D750BUyL.js → Switch-EVSQr4xA.js} +1 -1
- package/docs/assets/{Switch.stories-DLbAOgcV.js → Switch.stories-B1GuraxO.js} +1 -1
- package/docs/assets/{TabItem-Dd3ygQn_.js → TabItem-CLAMsyYY.js} +1 -1
- package/docs/assets/{TabItem.stories-CizWwXR7.js → TabItem.stories-Bqxh0fK_.js} +1 -1
- package/docs/assets/TextGroup-BC5JAQ0O.js +1 -0
- package/docs/assets/{TextGroup-BXmHKRr4.css → TextGroup-BLNwaBiu.css} +1 -1
- package/docs/assets/{TextGroup.stories-bCLjp0Xb.js → TextGroup.stories-BpYwN47b.js} +9 -5
- package/docs/assets/{Tile-CiWdoTxC.js → Tile-vZUZKJ4R.js} +1 -1
- package/docs/assets/{Tile.sb.shared-BcA1_mzJ.js → Tile.sb.shared-BPdrPz-t.js} +1 -1
- package/docs/assets/{Tile.stories-DDrX0d1_.js → Tile.stories-DhOHEROY.js} +1 -1
- package/docs/assets/{Toast-dGAuUtsV.js → Toast-_mJ5xyzu.js} +1 -1
- package/docs/assets/{Toast.stories-C74S_aLc.js → Toast.stories-D7VOzRIm.js} +1 -1
- package/docs/assets/{ToggleButton-CPF-mto5.js → ToggleButton-tLeRv-cp.js} +1 -1
- package/docs/assets/{ToggleButton.stories-Sfgl5ikD.js → ToggleButton.stories-xyKCdRN6.js} +1 -1
- package/docs/assets/{Tooltip.stories-xCdXD5v8.js → Tooltip.stories-CEYtvQ7C.js} +1 -1
- package/docs/assets/{Well-BBkGQfuA.js → Well-mxkLK5ek.js} +1 -1
- package/docs/assets/{Well.stories-BTl5qh5O.js → Well.stories-CSYBf4g_.js} +1 -1
- package/docs/assets/{iframe-D3Dx19_U.js → iframe-CsVJvPrv.js} +2 -2
- package/docs/assets/{index-CmIBy80s.js → index-BPmxonuA.js} +1 -1
- package/docs/assets/{index-C5ht-t8A.js → index-CBFM44IK.js} +1 -1
- package/docs/assets/{preview-CNbBbg06.js → preview-BF748A49.js} +2 -2
- package/docs/assets/{preview-bfIDNl2z.js → preview-DJDaYsjL.js} +1 -1
- package/docs/assets/{string-BliwjvpJ.js → string-Bp7KUZ_7.js} +1 -1
- package/docs/iframe.html +1 -1
- package/docs/preview.css +0 -4
- package/docs/project.json +1 -1
- package/lib/js/components/Icons/Icon/Icon.consts.ts +0 -2
- package/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.stories.ts +7 -0
- package/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue +6 -2
- package/lib/js/components/TextGroup/TextGroup.stories.ts +7 -1
- package/lib/js/components/TextGroup/TextGroup.vue +2 -1
- package/lib/js/icons/fontawesome.ts +2 -0
- package/lib/styles/_normalize.scss +0 -4
- package/package.json +8 -8
- package/docs/assets/BasicRichListItem-DHHCAjrn.css +0 -1
- package/docs/assets/BasicRichListItem-DvjGGtfr.js +0 -1
- package/docs/assets/Icon-S5zPLm_h.js +0 -761
- package/docs/assets/TextGroup-dzR19lzs.js +0 -1
- package/lib/images/icons/mobile-rotate.svg +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as _,b as y,I}from"./Icon-
|
|
1
|
+
import{a as _,b as y,I}from"./Icon-CrGnHcSg.js";import{d as p,k as g,o as n,a as s,H as d,c as u,g as m,f as i,e as $,l as b,v as C,m as N,I as w}from"./vue.esm-bundler-DcRN7CPI.js";import{_ as c}from"./_plugin-vue_export-helper-DlAUqK2U.js";const f=p({name:"Modal",components:{WnlIcon:_},inheritAttrs:!1,props:{showHeader:{type:Boolean,default:!0},animateScrollingContent:{type:Boolean,default:!1}},emits:["close-modal"],data(){return{ICONS:Object.freeze(I),ICON_SIZES:Object.freeze(y)}}}),E={key:0,class:"m-modal__header"},O={key:1,class:"m-modal__footer"};function T(e,a,o,l,t,S){const r=b("wnl-icon");return n(),g(w,{to:"body"},[s("div",N({class:"m-modal"},e.$attrs,{onClick:a[2]||(a[2]=d(h=>e.$emit("close-modal"),["stop"]))}),[s("div",{class:"m-modal__contentWrapper",onClick:a[1]||(a[1]=d(()=>{},["stop"]))},[e.showHeader?(n(),u("div",E,[i(e.$slots,"header",{},void 0,!0),$(r,{touchable:"",icon:e.ICONS.FA_XMARK,class:"m-modal__header__close",size:e.ICON_SIZES.SMALL,onClick:a[0]||(a[0]=d(h=>e.$emit("close-modal"),["stop"]))},null,8,["icon","size"])])):m("",!0),s("div",{class:C(["m-modal__content",{"scrollable-main-container":e.animateScrollingContent}])},[i(e.$slots,"default",{},void 0,!0)],2),a[3]||(a[3]=s("div",{class:"m-modal__content__shadow"},null,-1)),e.$slots.footer?(n(),u("div",O,[i(e.$slots,"footer",{},void 0,!0)])):m("",!0)])],16)])}const Q=c(f,[["render",T],["__scopeId","data-v-a18f33bc"]]);f.__docgenInfo={displayName:"Modal",exportName:"default",description:"",tags:{},props:[{name:"showHeader",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"animateScrollingContent",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"close-modal"}],slots:[{name:"header"},{name:"default"},{name:"footer"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Modal/Modal.vue"]};const z={DEFAULT:"default",DISABLED:"disabled"},j={ONE:"one",TWO:"two"},v=p({name:"SurveyQuestionTextarea",props:{value:{type:String,required:!0},placeholder:{type:String,default:"Wpisz swoją odpowiedź"},disabled:{type:Boolean,default:!1}},emits:["input"],watch:{value(){this.$refs.textarea.style.height="auto",this.$refs.textarea.style.height=this.$refs.textarea.scrollHeight+"px"}},methods:{onInput(e){this.$emit("input",e.target.value)}}}),k=["disabled","placeholder","value"];function M(e,a,o,l,t,S){return n(),u("textarea",{ref:"textarea",class:"ds-surveyQuestionTextarea",disabled:e.disabled,placeholder:e.placeholder,value:e.value,onInput:a[0]||(a[0]=(...r)=>e.onInput&&e.onInput(...r))},null,40,k)}const L=c(v,[["render",M],["__scopeId","data-v-a0f836ab"]]);v.__docgenInfo={displayName:"SurveyQuestionTextarea",exportName:"default",description:"",tags:{},props:[{name:"value",type:{name:"string"},required:!0},{name:"placeholder",type:{name:"string"},defaultValue:{func:!1,value:"'Wpisz swoją odpowiedź'"}},{name:"disabled",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"input",type:{names:["undefined"]}}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/SurveyQuestions/SurveyQuestionTextarea.vue"]};const H=e=>{for(var a="",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",l=o.length,t=0;t<e;t++)a+=o.charAt(Math.floor(Math.random()*l));return a};export{Q as M,z as S,j as a,L as b,H as r};
|
package/docs/iframe.html
CHANGED
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
</script>
|
|
511
511
|
<link rel="stylesheet" href="./preview.css">
|
|
512
512
|
|
|
513
|
-
<script type="module" crossorigin src="./assets/iframe-
|
|
513
|
+
<script type="module" crossorigin src="./assets/iframe-CsVJvPrv.js"></script>
|
|
514
514
|
</head>
|
|
515
515
|
|
|
516
516
|
<body>
|
package/docs/preview.css
CHANGED
package/docs/project.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1761134912141,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@vitest/coverage-c8":"0.33.0","@vitest/ui":"3.1.4","vitest":"3.1.4"},"packageManager":{"type":"yarn","version":"1.22.22"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/vue3-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/vue3","portableStoriesFileCount":3,"storybookVersion":"8.3.4","storybookVersionSpecifier":"^8.3.4","language":"typescript","storybookPackages":{"@storybook/vue3":{"version":"8.3.4"},"@storybook/vue3-vite":{"version":"8.3.4"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.3.4"}},"addons":{"@storybook/addon-actions":{"version":"8.3.4"},"@storybook/addon-designs":{"version":"8.0.3"},"@storybook/addon-docs":{"version":"8.3.4"},"@storybook/addon-controls":{"version":"8.3.4"},"@storybook/addon-storysource":{"version":"8.3.4"},"@storybook/addon-viewport":{"version":"8.3.4"}}}
|
|
@@ -7,7 +7,6 @@ import HideAnswers from '../../../../images/icons/icon-hide-answers.svg';
|
|
|
7
7
|
import SidebarFlipSolid from '../../../../images/icons/sidebar-flip-solid.svg';
|
|
8
8
|
import Change from '../../../../images/icons/change.svg';
|
|
9
9
|
import CloudDisconnected from '../../../../images/icons/cloud-disconnected.svg';
|
|
10
|
-
import MobileRotate from '../../../../images/icons/mobile-rotate.svg';
|
|
11
10
|
|
|
12
11
|
import { FONTAWESOME_ICONS } from '../../../icons/fontawesome';
|
|
13
12
|
import { Value } from '../../../utils/type.utils';
|
|
@@ -53,7 +52,6 @@ const BETHINK_ICONS = {
|
|
|
53
52
|
SIDEBAR_FLIP_SOLID: SidebarFlipSolid,
|
|
54
53
|
SLIDERS_SEARCH: SlidersSearch,
|
|
55
54
|
CLOUD_DISCONNECTED: CloudDisconnected,
|
|
56
|
-
MOBILE_ROTATE: MobileRotate, // this is FontAwesome 7 icon, after migration to v7, it should be moved to fontawesome.ts
|
|
57
55
|
} as const;
|
|
58
56
|
|
|
59
57
|
export const ICONS = {
|
|
@@ -90,6 +90,9 @@ const expandStory = (story: StoryFn<typeof BasicRichListItem>, args = {}) => {
|
|
|
90
90
|
metadata: {
|
|
91
91
|
control: 'text',
|
|
92
92
|
},
|
|
93
|
+
textSlot: {
|
|
94
|
+
control: 'text',
|
|
95
|
+
},
|
|
93
96
|
actions: {
|
|
94
97
|
control: 'text',
|
|
95
98
|
},
|
|
@@ -138,6 +141,7 @@ const expandStory = (story: StoryFn<typeof BasicRichListItem>, args = {}) => {
|
|
|
138
141
|
isSupportingTextTooltipEnabled: false,
|
|
139
142
|
|
|
140
143
|
metadata: 'Metadata Slot',
|
|
144
|
+
textSlot: '',
|
|
141
145
|
actions: 'ACS',
|
|
142
146
|
|
|
143
147
|
...args,
|
|
@@ -209,6 +213,9 @@ const InteractiveStoryTemplate: StoryFn<typeof BasicRichListItem> = (args) => {
|
|
|
209
213
|
<template v-if="metadata" #metadata>
|
|
210
214
|
<div v-html="metadata" />
|
|
211
215
|
</template>
|
|
216
|
+
<template v-if="textSlot" #text>
|
|
217
|
+
<div v-html="textSlot" />
|
|
218
|
+
</template>
|
|
212
219
|
<template v-if="actions" #actions>
|
|
213
220
|
<div v-html="actions" />
|
|
214
221
|
</template>
|
|
@@ -45,7 +45,11 @@
|
|
|
45
45
|
:size="textGroupSize"
|
|
46
46
|
:state="textGroupState"
|
|
47
47
|
:is-supporting-text-tooltip-enabled="isSupportingTextTooltipEnabled"
|
|
48
|
-
|
|
48
|
+
>
|
|
49
|
+
<template v-if="$slots.text" #mainText>
|
|
50
|
+
<slot name="text" />
|
|
51
|
+
</template>
|
|
52
|
+
</ds-text-group>
|
|
49
53
|
</div>
|
|
50
54
|
</template>
|
|
51
55
|
<template v-if="$slots.metadata" #metadata>
|
|
@@ -193,7 +197,7 @@ export default defineComponent({
|
|
|
193
197
|
},
|
|
194
198
|
text: {
|
|
195
199
|
type: String,
|
|
196
|
-
|
|
200
|
+
default: null,
|
|
197
201
|
},
|
|
198
202
|
textEllipsis: {
|
|
199
203
|
type: Boolean,
|
|
@@ -37,7 +37,9 @@ const StoryTemplate: StoryFn<typeof DsTextGroup> = (args) => ({
|
|
|
37
37
|
:is-supporting-text-tooltip-enabled-on-mobile="isSupportingTextTooltipEnabledOnMobile"
|
|
38
38
|
:is-supporting-text-tooltip-auto-filled-with-content="isSupportingTextTooltipAutoFilledWithContent"
|
|
39
39
|
:supporting-text-tooltip-content="supportingTextTooltipContent"
|
|
40
|
-
|
|
40
|
+
>
|
|
41
|
+
<template v-if="mainTextSlot" #mainText><div v-html="mainTextSlot" /></template>
|
|
42
|
+
</ds-text-group>
|
|
41
43
|
<div style="margin-top: 100px; color: #888">
|
|
42
44
|
<ds-divider />
|
|
43
45
|
<small>Use "null" in *Text props to get nullable value</small>
|
|
@@ -47,6 +49,7 @@ const StoryTemplate: StoryFn<typeof DsTextGroup> = (args) => ({
|
|
|
47
49
|
export const Interactive = StoryTemplate.bind({});
|
|
48
50
|
|
|
49
51
|
Interactive.args = {
|
|
52
|
+
mainTextSlot: '',
|
|
50
53
|
size: TEXT_GROUP_SIZES.MEDIUM,
|
|
51
54
|
color: TEXT_GROUP_COLORS.NEUTRAL,
|
|
52
55
|
eyebrowText: 'Eyebrow Uppercase Veritatis aspernatur cupiditate magnam quidem',
|
|
@@ -123,6 +126,9 @@ Interactive.argTypes = {
|
|
|
123
126
|
supportingTextTooltipContent: {
|
|
124
127
|
control: 'text',
|
|
125
128
|
},
|
|
129
|
+
mainTextSlot: {
|
|
130
|
+
control: 'text',
|
|
131
|
+
},
|
|
126
132
|
} as ArgTypes;
|
|
127
133
|
|
|
128
134
|
Interactive.parameters = {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<span v-else>{{ eyebrowText }}</span>
|
|
32
32
|
</div>
|
|
33
33
|
<div
|
|
34
|
-
v-if="mainText !== null"
|
|
34
|
+
v-if="mainText !== null || $slots.mainText"
|
|
35
35
|
class="ds-textGroup__main"
|
|
36
36
|
:class="{
|
|
37
37
|
'-ds-ellipsis': mainTextEllipsis,
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
<div v-if="isLoading" class="ds-textGroup__skeletonWrapper">
|
|
41
41
|
<ds-skeleton width="100%" height="100%" />
|
|
42
42
|
</div>
|
|
43
|
+
<template v-else-if="$slots.mainText"><slot name="mainText" /></template>
|
|
43
44
|
<span v-else-if="mainText === ''"> </span>
|
|
44
45
|
<span v-else>{{ mainText }}</span>
|
|
45
46
|
</div>
|
|
@@ -117,6 +117,7 @@ import { faMagnifyingGlass } from '@fortawesome/pro-regular-svg-icons/faMagnifyi
|
|
|
117
117
|
import { faMedal } from '@fortawesome/pro-regular-svg-icons/faMedal';
|
|
118
118
|
import { faMemoCircleInfo } from '@fortawesome/pro-regular-svg-icons/faMemoCircleInfo';
|
|
119
119
|
import { faMinus } from '@fortawesome/pro-regular-svg-icons/faMinus';
|
|
120
|
+
import { faMobileRotate } from '@fortawesome/pro-regular-svg-icons/faMobileRotate';
|
|
120
121
|
import { faMoneyBill1 } from '@fortawesome/pro-regular-svg-icons/faMoneyBill1';
|
|
121
122
|
import { faMusic } from '@fortawesome/pro-regular-svg-icons/faMusic';
|
|
122
123
|
import { faNotes } from '@fortawesome/pro-regular-svg-icons/faNotes';
|
|
@@ -395,6 +396,7 @@ export const FONTAWESOME_ICONS = {
|
|
|
395
396
|
FA_MESSAGE: faMessage,
|
|
396
397
|
FA_MESSAGES: faMessages,
|
|
397
398
|
FA_MINUS: faMinus,
|
|
399
|
+
FA_MOBILE_ROTATE: faMobileRotate,
|
|
398
400
|
FA_MONEY_BILL1: faMoneyBill1,
|
|
399
401
|
FA_MUSIC: faMusic,
|
|
400
402
|
FA_NOTES: faNotes,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bethinkpl/design-system",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "29.1.0",
|
|
4
4
|
"description": "Bethink universe design-system",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"synchronizeTypography": "npx ts-node tools/importers/SynchronizeTypographyTokens.ts"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@fortawesome/fontawesome-svg-core": "
|
|
39
|
-
"@fortawesome/free-brands-svg-icons": "
|
|
40
|
-
"@fortawesome/pro-duotone-svg-icons": "
|
|
41
|
-
"@fortawesome/pro-light-svg-icons": "
|
|
42
|
-
"@fortawesome/pro-regular-svg-icons": "
|
|
43
|
-
"@fortawesome/pro-solid-svg-icons": "
|
|
44
|
-
"@fortawesome/vue-fontawesome": "3.
|
|
38
|
+
"@fortawesome/fontawesome-svg-core": "7.0.1",
|
|
39
|
+
"@fortawesome/free-brands-svg-icons": "7.0.1",
|
|
40
|
+
"@fortawesome/pro-duotone-svg-icons": "7.0.1",
|
|
41
|
+
"@fortawesome/pro-light-svg-icons": "7.0.1",
|
|
42
|
+
"@fortawesome/pro-regular-svg-icons": "7.0.1",
|
|
43
|
+
"@fortawesome/pro-solid-svg-icons": "7.0.1",
|
|
44
|
+
"@fortawesome/vue-fontawesome": "3.1.2",
|
|
45
45
|
"@storybook/addon-actions": "^8.3.4",
|
|
46
46
|
"@storybook/addon-controls": "^8.3.4",
|
|
47
47
|
"@storybook/addon-designs": "^8.0.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ds-basicRichListItem[data-v-c8b54c95]{max-width:100%}.ds-basicRichListItem__content[data-v-c8b54c95]{display:flex;flex-direction:column;gap:4px;justify-content:center;min-width:0;padding:12px 0}.ds-basicRichListItem.-ds-small .ds-basicRichListItem__content[data-v-c8b54c95]{padding:8px 0}.ds-basicRichListItem.-ds-loading .ds-basicRichListItem__content[data-v-c8b54c95]{flex:1}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as y,j as v,k as b,s as T,h as l,v as S,l as u,o as g,f as n,a as E,e as L}from"./vue.esm-bundler-DcRN7CPI.js";import{c as R,I as C}from"./Icon-S5zPLm_h.js";import{D as h,T as i,c as r}from"./TextGroup-dzR19lzs.js";import{a as d,e as t,d as p,c as s,f,h as O,R as _,b as D}from"./GroupRichListItem-B63S0oNZ.js";import{_ as V}from"./_plugin-vue_export-helper-DlAUqK2U.js";const m=y({name:"BasicRichListItem",components:{DsTextGroup:h,RichListItem:O},props:{type:{type:String,default:f.DEFAULT,validator(e){return Object.values(f).includes(e)}},state:{type:String,default:s.DEFAULT,validator(e){return Object.values(s).includes(e)}},layout:{type:String,default:p.HORIZONTAL,validator(e){return Object.values(p).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(C).includes(v(e))}},iconColor:{type:String,default:null,validator(e){return Object.values(R).includes(e)}},iconColorHex:{type:String,default:null},borderColor:{type:String,default:null,validator(e){return Object.values(D).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(_).includes(e)}},hasDraggableHandler:{type:Boolean,default:!0},hasActionsSlotDivider:{type:Boolean,default:!0},isSelectable:{type:Boolean,default:!0},isSelected:{type:Boolean,default:!1},isTextGroupSelected:{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(s)}},computed:{textGroupSize(){return{[t.SMALL]:r.SMALL,[t.MEDIUM]:r.MEDIUM}[this.size]},textGroupState(){return this.state===s.LOADING?i.LOADING:this.hovered&&this.isInteractive?i.HOVERED:i.DEFAULT}}}),M={class:"ds-basicRichListItem__content"};function A(e,a,H,B,U,w){const c=u("ds-text-group"),I=u("rich-list-item");return g(),b(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:S(["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))},T({content:l(()=>[E("div",M,[L(c,{"eyebrow-text":e.eyebrow,"eyebrow-text-ellipsis":e.eyebrowEllipsis,"is-eyebrow-text-uppercase":e.isEyebrowUppercase,"is-selected":e.isTextGroupSelected,"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:l(()=>[n(e.$slots,"media",{},void 0,!0)]),key:"0"}:void 0,e.$slots.metadata?{name:"metadata",fn:l(()=>[n(e.$slots,"metadata",{},void 0,!0)]),key:"1"}:void 0,e.$slots.actions?{name:"actions",fn:l(()=>[n(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 k=V(m,[["render",A],["__scopeId","data-v-c8b54c95"]]);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"}},{name:"isTextGroupSelected",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{k as B};
|