@sellmate/design-system 0.0.43 → 0.0.44
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/{esm/resolveColor-BYf-ybt2.js → cjs/color-Oz29vj7L.js} +6 -14
- package/dist/cjs/color-Oz29vj7L.js.map +1 -0
- package/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/resolveColor-CauSLF0s.js +18 -0
- package/dist/{esm/resolveColor-BYf-ybt2.js.map → cjs/resolveColor-CauSLF0s.js.map} +1 -1
- package/dist/cjs/sd-badge.cjs.entry.js +3 -2
- package/dist/cjs/sd-badge.entry.cjs.js.map +1 -1
- package/dist/cjs/sd-button.sd-checkbox.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table-backup.sd-tooltip.sd-tooltip-portal.entry.cjs.js.map +1 -0
- package/dist/cjs/{sd-button_15.cjs.entry.js → sd-button_12.cjs.entry.js} +184 -175
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-range-picker.cjs.entry.js +2 -2
- package/dist/cjs/sd-guide.cjs.entry.js +85 -0
- package/dist/cjs/sd-guide.entry.cjs.js.map +1 -0
- package/dist/cjs/sd-modal-card.cjs.entry.js +56 -0
- package/dist/cjs/sd-modal-card.entry.cjs.js.map +1 -0
- package/dist/cjs/sd-popover.cjs.entry.js +2 -3
- package/dist/cjs/sd-popover.entry.cjs.js.map +1 -1
- package/dist/cjs/sd-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-multiple-group.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-multiple.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-option-group.cjs.entry.js +3 -3
- package/dist/cjs/sd-table.cjs.entry.js +242 -0
- package/dist/cjs/sd-table.entry.cjs.js.map +1 -0
- package/dist/cjs/sd-tag.cjs.entry.js +1 -1
- package/dist/cjs/sd-tbody.sd-th.sd-tr.entry.cjs.js.map +1 -0
- package/dist/cjs/sd-tbody_3.cjs.entry.js +44 -0
- package/dist/cjs/sd-td.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sd-badge/sd-badge.js +1 -1
- package/dist/collection/components/sd-button/sd-button.css +6 -0
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +1 -1
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +2 -2
- package/dist/collection/components/sd-guide/sd-guide.css +6 -0
- package/dist/collection/components/sd-guide/sd-guide.js +25 -4
- package/dist/collection/components/sd-guide/sd-guide.js.map +1 -1
- package/dist/collection/components/sd-icon/sd-icon.js +1 -1
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +1 -1
- package/dist/collection/components/sd-modal-card/sd-modal-card.css +50 -0
- package/dist/collection/components/sd-modal-card/sd-modal-card.js +387 -0
- package/dist/collection/components/sd-modal-card/sd-modal-card.js.map +1 -0
- package/dist/collection/components/sd-pagination/sd-pagination.js +2 -17
- package/dist/collection/components/sd-pagination/sd-pagination.js.map +1 -1
- package/dist/collection/components/sd-popover/sd-popover.js +2 -3
- package/dist/collection/components/sd-popover/sd-popover.js.map +1 -1
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-progress/sd-progress.js +2 -2
- package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
- package/dist/collection/components/sd-select/sd-select.js +2 -2
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +2 -2
- package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js +2 -2
- package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
- package/dist/collection/components/sd-table/sd-table.js +3 -3
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +1 -1
- package/dist/collection/components/sd-table/sd-td/sd-td.js +2 -2
- package/dist/collection/components/sd-table/sd-th/sd-th.js +1 -1
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +1 -1
- package/dist/collection/components/sd-table-backup/sd-table-backup.css +14 -0
- package/dist/collection/components/sd-table-backup/sd-table-backup.js +176 -27
- package/dist/collection/components/sd-table-backup/sd-table-backup.js.map +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +4 -4
- package/dist/collection/components/sd-tooltip-portal/sd-tooltip-portal.js +1 -1
- package/dist/components/{p-DdLgl05o.js → p-B6GiEilD.js} +3 -3
- package/dist/components/{p-DdLgl05o.js.map → p-B6GiEilD.js.map} +1 -1
- package/dist/components/{p-zBDALS_T.js → p-BBhUxTuK.js} +9 -9
- package/dist/components/{p-zBDALS_T.js.map → p-BBhUxTuK.js.map} +1 -1
- package/dist/components/{p-vpG6iign.js → p-BlDZogGu.js} +3 -3
- package/dist/components/{p-vpG6iign.js.map → p-BlDZogGu.js.map} +1 -1
- package/dist/components/{p-CJYeJzO3.js → p-Bn_wuPsh.js} +7 -7
- package/dist/components/{p-CJYeJzO3.js.map → p-Bn_wuPsh.js.map} +1 -1
- package/dist/components/{p-DEpODYm6.js → p-C9qV_qzP.js} +5 -18
- package/dist/components/p-C9qV_qzP.js.map +1 -0
- package/dist/components/{p-DURogU3W.js → p-CIkSynaQ.js} +3 -3
- package/dist/components/{p-DURogU3W.js.map → p-CIkSynaQ.js.map} +1 -1
- package/dist/components/{p-CXuU0Q0J.js → p-CMcI4ZlP.js} +4 -4
- package/dist/components/p-CMcI4ZlP.js.map +1 -0
- package/dist/components/{p-4n8y_ubX.js → p-Cb33bhDR.js} +3 -3
- package/dist/components/{p-4n8y_ubX.js.map → p-Cb33bhDR.js.map} +1 -1
- package/dist/components/{p-B9diVGL_.js → p-D2rvzY8X.js} +3 -3
- package/dist/components/{p-B9diVGL_.js.map → p-D2rvzY8X.js.map} +1 -1
- package/dist/components/{p-DkdbagIN.js → p-DCDoqfn8.js} +3 -3
- package/dist/components/{p-DkdbagIN.js.map → p-DCDoqfn8.js.map} +1 -1
- package/dist/components/{p-C5VIAyqc.js → p-DWfls6IE.js} +9 -9
- package/dist/components/{p-C5VIAyqc.js.map → p-DWfls6IE.js.map} +1 -1
- package/dist/components/{p-D1PUeI-N.js → p-DsXAGqf9.js} +3 -3
- package/dist/components/{p-D1PUeI-N.js.map → p-DsXAGqf9.js.map} +1 -1
- package/dist/components/{p-CrKCm3ZD.js → p-WhZES_rm.js} +5 -5
- package/dist/components/{p-CrKCm3ZD.js.map → p-WhZES_rm.js.map} +1 -1
- package/dist/components/{p-CgMn3XX-.js → p-lS2AF6uZ.js} +5 -5
- package/dist/components/{p-CgMn3XX-.js.map → p-lS2AF6uZ.js.map} +1 -1
- package/dist/components/{p-CgvMD0f4.js → p-t7JZlmXM.js} +3 -3
- package/dist/components/{p-CgvMD0f4.js.map → p-t7JZlmXM.js.map} +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/sd-date-picker.js +4 -4
- package/dist/components/sd-date-range-picker.js +5 -5
- package/dist/components/sd-guide.js +10 -8
- package/dist/components/sd-guide.js.map +1 -1
- package/dist/components/sd-icon.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-loading-spinner.js +1 -1
- package/dist/components/sd-modal-card.d.ts +11 -0
- package/dist/components/sd-modal-card.js +95 -0
- package/dist/components/sd-modal-card.js.map +1 -0
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +5 -6
- package/dist/components/sd-popover.js.map +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-progress.js +2 -2
- package/dist/components/sd-select-multiple-group.js +7 -7
- package/dist/components/sd-select-multiple.js +7 -7
- package/dist/components/sd-select-option-group.js +1 -1
- package/dist/components/sd-select-option.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-table-backup.js +131 -39
- package/dist/components/sd-table-backup.js.map +1 -1
- package/dist/components/sd-table.js +16 -16
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.js +2 -2
- package/dist/components/sd-th.js +1 -1
- package/dist/components/sd-tooltip-portal.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/components/sd-tr.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/p-059ca6cb.entry.js +2 -0
- package/dist/design-system/p-0d776157.entry.js +2 -0
- package/dist/design-system/p-0d776157.entry.js.map +1 -0
- package/dist/design-system/{p-da63329a.entry.js → p-3574f319.entry.js} +2 -2
- package/dist/design-system/{p-90e25920.entry.js → p-390283f7.entry.js} +2 -2
- package/dist/design-system/p-4386db36.entry.js +2 -0
- package/dist/design-system/p-4386db36.entry.js.map +1 -0
- package/dist/design-system/p-6320b9c6.entry.js +2 -0
- package/dist/design-system/{p-8b64e66b.entry.js.map → p-6320b9c6.entry.js.map} +1 -1
- package/dist/design-system/p-7b4fe5bf.entry.js +2 -0
- package/dist/design-system/p-7e8db11c.entry.js +2 -0
- package/dist/design-system/p-7e8db11c.entry.js.map +1 -0
- package/dist/design-system/p-826c6517.entry.js +2 -0
- package/dist/design-system/p-826c6517.entry.js.map +1 -0
- package/dist/design-system/{p-e76b69e2.entry.js → p-8734ded6.entry.js} +2 -2
- package/dist/design-system/p-BoLmB6pG.js +2 -0
- package/dist/design-system/{p-BYf-ybt2.js.map → p-BoLmB6pG.js.map} +1 -1
- package/dist/design-system/{p-BYf-ybt2.js → p-CgyTlXBV.js} +2 -2
- package/dist/design-system/p-CgyTlXBV.js.map +1 -0
- package/dist/design-system/{p-e1eb49de.entry.js → p-ce8fe1fd.entry.js} +2 -2
- package/dist/design-system/{p-c70b5ef1.entry.js → p-d4b5575e.entry.js} +2 -2
- package/dist/design-system/p-d4e043c5.entry.js +2 -0
- package/dist/design-system/p-d4e043c5.entry.js.map +1 -0
- package/dist/design-system/{p-2d43c3ce.entry.js → p-db0f705b.entry.js} +2 -2
- package/dist/design-system/p-de32d163.entry.js +2 -0
- package/dist/design-system/p-de32d163.entry.js.map +1 -0
- package/dist/design-system/p-f9d01bdb.entry.js +2 -0
- package/dist/design-system/p-f9d01bdb.entry.js.map +1 -0
- package/dist/design-system/sd-badge.entry.esm.js.map +1 -1
- package/dist/design-system/sd-button.sd-checkbox.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table-backup.sd-tooltip.sd-tooltip-portal.entry.esm.js.map +1 -0
- package/dist/design-system/sd-guide.entry.esm.js.map +1 -0
- package/dist/design-system/sd-modal-card.entry.esm.js.map +1 -0
- package/dist/design-system/sd-popover.entry.esm.js.map +1 -1
- package/dist/design-system/sd-table.entry.esm.js.map +1 -0
- package/dist/design-system/sd-tbody.sd-th.sd-tr.entry.esm.js.map +1 -0
- package/dist/{cjs/resolveColor-DxvExwgo.js → esm/color-CgyTlXBV.js} +4 -17
- package/dist/esm/color-CgyTlXBV.js.map +1 -0
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/resolveColor-CswQ9y2Q.js +16 -0
- package/dist/{cjs/resolveColor-DxvExwgo.js.map → esm/resolveColor-CswQ9y2Q.js.map} +1 -1
- package/dist/esm/sd-badge.entry.js +3 -2
- package/dist/esm/sd-badge.entry.js.map +1 -1
- package/dist/esm/sd-button.sd-checkbox.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table-backup.sd-tooltip.sd-tooltip-portal.entry.js.map +1 -0
- package/dist/esm/{sd-button_15.entry.js → sd-button_12.entry.js} +183 -171
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-date-picker.entry.js +1 -1
- package/dist/esm/sd-date-range-picker.entry.js +2 -2
- package/dist/esm/sd-guide.entry.js +83 -0
- package/dist/esm/sd-guide.entry.js.map +1 -0
- package/dist/esm/sd-modal-card.entry.js +54 -0
- package/dist/esm/sd-modal-card.entry.js.map +1 -0
- package/dist/esm/sd-popover.entry.js +2 -3
- package/dist/esm/sd-popover.entry.js.map +1 -1
- package/dist/esm/sd-progress.entry.js +2 -2
- package/dist/esm/sd-select-multiple-group.entry.js +2 -2
- package/dist/esm/sd-select-multiple.entry.js +2 -2
- package/dist/esm/sd-select-option-group.entry.js +3 -3
- package/dist/esm/sd-table.entry.js +240 -0
- package/dist/esm/sd-table.entry.js.map +1 -0
- package/dist/esm/sd-tag.entry.js +1 -1
- package/dist/esm/sd-tbody.sd-th.sd-tr.entry.js.map +1 -0
- package/dist/esm/sd-tbody_3.entry.js +40 -0
- package/dist/esm/sd-td.entry.js +2 -2
- package/dist/types/components/sd-guide/sd-guide.d.ts +1 -0
- package/dist/types/components/sd-modal-card/sd-modal-card.d.ts +25 -0
- package/dist/types/components/sd-pagination/sd-pagination.d.ts +0 -1
- package/dist/types/components/sd-table-backup/sd-table-backup.d.ts +15 -0
- package/dist/types/components.d.ts +129 -0
- package/hydrate/index.js +234 -85
- package/hydrate/index.mjs +234 -85
- package/package.json +2 -2
- package/dist/cjs/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table.sd-tbody.sd-th.sd-tooltip.sd-tooltip-portal.sd-tr.entry.cjs.js.map +0 -1
- package/dist/cjs/sd-loading-spinner.cjs.entry.js +0 -18
- package/dist/cjs/sd-loading-spinner.entry.cjs.js.map +0 -1
- package/dist/cjs/sd-table-backup.cjs.entry.js +0 -278
- package/dist/cjs/sd-table-backup.entry.cjs.js.map +0 -1
- package/dist/components/p-CXuU0Q0J.js.map +0 -1
- package/dist/components/p-DEpODYm6.js.map +0 -1
- package/dist/design-system/p-34d84584.entry.js +0 -2
- package/dist/design-system/p-34d84584.entry.js.map +0 -1
- package/dist/design-system/p-5eb63212.entry.js +0 -2
- package/dist/design-system/p-66a3fe4d.entry.js +0 -2
- package/dist/design-system/p-66a3fe4d.entry.js.map +0 -1
- package/dist/design-system/p-7dbd4fe6.entry.js +0 -2
- package/dist/design-system/p-874ce442.entry.js +0 -2
- package/dist/design-system/p-874ce442.entry.js.map +0 -1
- package/dist/design-system/p-8b64e66b.entry.js +0 -2
- package/dist/design-system/p-9e5946b6.entry.js +0 -2
- package/dist/design-system/p-9e5946b6.entry.js.map +0 -1
- package/dist/design-system/p-e572253b.entry.js +0 -2
- package/dist/design-system/p-e572253b.entry.js.map +0 -1
- package/dist/design-system/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table.sd-tbody.sd-th.sd-tooltip.sd-tooltip-portal.sd-tr.entry.esm.js.map +0 -1
- package/dist/design-system/sd-loading-spinner.entry.esm.js.map +0 -1
- package/dist/design-system/sd-table-backup.entry.esm.js.map +0 -1
- package/dist/esm/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table.sd-tbody.sd-th.sd-tooltip.sd-tooltip-portal.sd-tr.entry.js.map +0 -1
- package/dist/esm/sd-loading-spinner.entry.js +0 -16
- package/dist/esm/sd-loading-spinner.entry.js.map +0 -1
- package/dist/esm/sd-table-backup.entry.js +0 -276
- package/dist/esm/sd-table-backup.entry.js.map +0 -1
- /package/dist/design-system/{p-5eb63212.entry.js.map → p-059ca6cb.entry.js.map} +0 -0
- /package/dist/design-system/{p-da63329a.entry.js.map → p-3574f319.entry.js.map} +0 -0
- /package/dist/design-system/{p-90e25920.entry.js.map → p-390283f7.entry.js.map} +0 -0
- /package/dist/design-system/{p-7dbd4fe6.entry.js.map → p-7b4fe5bf.entry.js.map} +0 -0
- /package/dist/design-system/{p-e76b69e2.entry.js.map → p-8734ded6.entry.js.map} +0 -0
- /package/dist/design-system/{p-e1eb49de.entry.js.map → p-ce8fe1fd.entry.js.map} +0 -0
- /package/dist/design-system/{p-c70b5ef1.entry.js.map → p-d4b5575e.entry.js.map} +0 -0
- /package/dist/design-system/{p-2d43c3ce.entry.js.map → p-db0f705b.entry.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-guide.js","sourceRoot":"","sources":["../../../src/components/sd-guide/sd-guide.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAI7C,MAAM,WAAW,GAAG;IACnB,IAAI,EAAE,QAAQ;IACd,GAAG,EAAE,WAAW;IAChB,OAAO,EAAE,aAAa;IACtB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,cAAc;CACrB,CAAC;AAEF,MAAM,UAAU,GAAG;IAClB,IAAI,EAAE;QACL,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,EAAE;QACR,KAAK,EAAE,MAAM,CAAC,QAAQ;KACtB;IACD,GAAG,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE;IACpD,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE;IAC5D,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE;IACzD,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,gBAAgB,EAAE;CACzD,CAAC;AAMX,MAAM,OAAO,OAAO;IACR,EAAE,CAAe;IAEpB,IAAI,GAAc,MAAM,CAAC;IACzB,KAAK,GAAW,EAAE,CAAC;I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DAAmD;AACnD,uDAAuD;AACvD,sDAAsD;AACtD,qDAAqD","sourcesContent":["import { Component, Element, Host, Prop, State, h } from '@stencil/core';\r\nimport colors from '../../styles/color.json';\r\n\r\ntype GuideType = 'help' | 'pdf' | 'youtube' | 'notion' | 'event';\r\n\r\nconst GUIDE_LABEL = {\r\n help: '활용 TIP',\r\n pdf: 'PDF Guide',\r\n youtube: 'Video Guide',\r\n notion: '사용법 안내',\r\n event: 'Event Button',\r\n};\r\n\r\nconst GUIDE_ICON = {\r\n help: {\r\n name: 'helpOutline',\r\n size: 20,\r\n color: colors.green_70,\r\n },\r\n pdf: { name: 'pdf', size: 20, color: colors.red_75 },\r\n youtube: { name: 'youtube', size: 20, color: colors.red_75 },\r\n notion: { name: 'notion', size: 16, color: colors.black },\r\n event: { name: 'event', size: 16, color: colors.brilliantblue_70 },\r\n} as const;\r\n\r\n@Component({\r\n tag: 'sd-guide',\r\n styleUrl: 'sd-guide.scss',\r\n})\r\nexport class SdGuide {\r\n @Element() el!: HTMLElement;\r\n\r\n @Prop() type: GuideType = 'help';\r\n @Prop() label: string = '';\r\n @Prop() message: string | string[] = '';\r\n @Prop() guideUrl: string = '';\r\n @Prop() popupTitle: string = '';\r\n @Prop() popupWidth?: number;\r\n\r\n @State() popupShow: boolean = false;\r\n\r\n private guideRef?: HTMLElement;\r\n\r\n private handleClickGuide = () => {\r\n if (this.type === 'help') {\r\n this.popupShow = !this.popupShow;\r\n return;\r\n }\r\n\r\n if (this.guideUrl) {\r\n window.open(this.guideUrl, '_blank');\r\n }\r\n };\r\n\r\n private get guideClass(): string {\r\n const classes = ['sd-guide', `sd-guide--${this.type}`];\r\n\r\n if (this.popupShow) classes.push('sd-guide--active');\r\n\r\n return classes.join(' ');\r\n }\r\n\r\n closeDropdown = () => {\r\n this.popupShow = false;\r\n };\r\n\r\n render() {\r\n const { name: iconName, size: iconSize, color: iconColor } = GUIDE_ICON[this.type];\r\n\r\n return (\r\n <Host\r\n style={{\r\n '--sd-guide-color': GUIDE_ICON[this.type].color,\r\n }}\r\n >\r\n <sd-button\r\n ref={el => (this.guideRef = el as unknown as HTMLElement)}\r\n class={this.guideClass}\r\n variant={this.popupShow ? 'primary' : 'outline'}\r\n label={this.label || GUIDE_LABEL[this.type]}\r\n size=\"sm\"\r\n color={this.popupShow ? GUIDE_ICON[this.type].color : 'grey_45'}\r\n icon={iconName}\r\n iconColor={this.popupShow ? 'white' : iconColor}\r\n iconSize={iconSize}\r\n noHover={this.popupShow}\r\n onSdClick={this.handleClickGuide}\r\n />\r\n {this.type === 'help' && this.popupShow && (\r\n <sd-portal\r\n open={this.popupShow}\r\n parentRef={this.guideRef}\r\n onSdClose={this.closeDropdown}\r\n offset={[0, 4]}\r\n >\r\n <div\r\n class=\"sd-guide__popup\"\r\n style={{ width: this.popupWidth ? this.popupWidth + 'px' : '426px' } as any}\r\n >\r\n <sd-button\r\n class=\"sd-guide__popup__close\"\r\n icon=\"close\"\r\n color={colors.grey_65}\r\n size=\"md\"\r\n variant=\"ghost\"\r\n noHover\r\n // buttonStyle={{ padding: '0px', minHeight: '0px' }}\r\n onSdClick={this.closeDropdown}\r\n />\r\n <div class=\"sd-guide__popup__header\">\r\n <sd-icon name=\"helpOutline\" size={24} color={colors.green_65} />\r\n <h3 class=\"sd-guide__popup__title\">{this.popupTitle || GUIDE_LABEL[this.type]}</h3>\r\n </div>\r\n <ul class=\"sd-guide__popup__list\">{this.renderListItem(this.message)}</ul>\r\n </div>\r\n </sd-portal>\r\n )}\r\n </Host>\r\n );\r\n }\r\n\r\n // 현재 2depth까지만 스타일 적용\r\n renderListItem(message: string | string[], depth: number = 0): HTMLElement[] {\r\n const listItems: HTMLElement[] = [];\r\n\r\n if (Array.isArray(message)) {\r\n const depthMsg = message.map(msg => this.renderListItem(msg, depth + 1));\r\n listItems.push(...depthMsg.flat());\r\n } else {\r\n listItems.push(this.renderLi(message, depth));\r\n }\r\n\r\n return listItems;\r\n }\r\n\r\n renderLi = (message: string, depth: number) => {\r\n const listContent = message.replace(/ /gi, ' ');\r\n return (\r\n <li class={`sd-guide__popup__list__item sd-guide__popup__list__item--depth-${depth}`}>\r\n <p innerHTML={listContent}></p>\r\n </li>\r\n );\r\n };\r\n}\r\n\r\n// <sd-guide id=\"sd-guide-1\"></sd-guide>\r\n// <sd-guide id=\"sd-guide-2\" type=\"pdf\"></sd-guide>\r\n// <sd-guide id=\"sd-guide-3\" type=\"youtube\"></sd-guide>\r\n// <sd-guide id=\"sd-guide-4\" type=\"notion\"></sd-guide>\r\n// <sd-guide id=\"sd-guide-5\" type=\"event\"></sd-guide>\r\n"]}
|
|
@@ -25,7 +25,7 @@ export class SdIcon {
|
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
27
|
const IconComponent = Icons[this.name]?.[this.size];
|
|
28
|
-
return (h("i", { key: '
|
|
28
|
+
return (h("i", { key: '738453a8bc8d1b9bb67fbaaffb7de203c2982c30', class: this.getIconClasses(), style: this.iconStyle }, h(IconComponent, { key: '2f970609756be608b660a522949dd79cca64fcc8', color: this.resolvedColor })));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "sd-icon"; }
|
|
31
31
|
static get originalStyleUrls() {
|
|
@@ -89,11 +89,11 @@ export class SdInput {
|
|
|
89
89
|
'--input-width': typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
90
90
|
}
|
|
91
91
|
: {};
|
|
92
|
-
return (h(Host, { key: '
|
|
92
|
+
return (h(Host, { key: '87a102220530a2e06620619967f1925f193b4794', style: inputWidth }, this.label && h("div", { key: 'dec1ef5b27dadc7b2c6c0e9f5dab978b338b5a45', class: "sd-input__label" }, this.label), h("label", { key: '72ba8b8b0019fd1bfc222207df4b42735457873d', class: {
|
|
93
93
|
'sd-input': true,
|
|
94
94
|
[this.getInputStatus()]: true,
|
|
95
95
|
'sd-input--barcode': !!this.barcode,
|
|
96
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("slot", { key: '
|
|
96
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("slot", { key: '7745177f5638351670adb3610325d44df156826e', name: "prefix" }), h("input", { key: '976949537b8071a409d94e93f803128946d73d48', ref: el => (this.nativeEl = el), class: `sd-input__native_element ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onChange: this.handleChange, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event) }), h("slot", { key: 'b62387e0c2122cfb9f5599a108d54682df59fef6', name: "suffix" }), this.clearable && this.internalValue && (h("sd-icon", { key: 'b860d9c2387adf97d7317bba550b169ac9f4ac49', name: "close", color: "#888", class: "sd-input__clear-icon", onClick: () => {
|
|
97
97
|
this.internalValue = '';
|
|
98
98
|
this.sdChange?.emit(this.internalValue);
|
|
99
99
|
this.sdInput?.emit(this.internalValue);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class SdLoadingSpinner {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: '54446b42c83eff572c2d0d63c367a7e407d722a5' }, h("svg", { key: '92ad1f0446dc5912a656512d09ab4b8b3b262156', class: "sd-loading-spinner text-positive", width: "72px", height: "72px", viewBox: "25 25 50 50" }, h("circle", { key: 'b9b0c2ea5233fb5f5c784d0262c6ba526dc00622', class: "path", cx: "50", cy: "50", r: "20", fill: "none", stroke: "currentColor", "stroke-width": "5", "stroke-miterlimit": "10" }))));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "sd-loading-spinner"; }
|
|
7
7
|
static get originalStyleUrls() {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
sd-modal-card {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
sd-modal-card .sd-modal-card {
|
|
5
|
+
position: relative;
|
|
6
|
+
padding: 40px 32px;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
box-shadow: 4px 4px 24px 4px rgba(0, 0, 0, 0.2);
|
|
9
|
+
}
|
|
10
|
+
sd-modal-card .sd-modal-card__close-button {
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 16px;
|
|
13
|
+
right: 16px;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
sd-modal-card .sd-modal-card sd-icon.sd-modal-card__icon {
|
|
17
|
+
display: block;
|
|
18
|
+
width: 32px;
|
|
19
|
+
height: 32px;
|
|
20
|
+
margin: 0 auto 12px auto;
|
|
21
|
+
}
|
|
22
|
+
sd-modal-card .sd-modal-card__title {
|
|
23
|
+
color: var(--point-color);
|
|
24
|
+
font-size: 18px;
|
|
25
|
+
font-weight: 700;
|
|
26
|
+
line-height: 30px;
|
|
27
|
+
text-align: center;
|
|
28
|
+
margin: 0 0 20px 0;
|
|
29
|
+
}
|
|
30
|
+
sd-modal-card .sd-modal-card__message {
|
|
31
|
+
color: #222222;
|
|
32
|
+
font-weight: 400;
|
|
33
|
+
font-size: 12px;
|
|
34
|
+
line-height: 22px;
|
|
35
|
+
text-align: center;
|
|
36
|
+
margin: 0;
|
|
37
|
+
}
|
|
38
|
+
sd-modal-card .sd-modal-card__button-container {
|
|
39
|
+
display: flex;
|
|
40
|
+
margin: 32px auto 0 auto;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: 8px;
|
|
44
|
+
}
|
|
45
|
+
sd-modal-card .sd-modal-card__button-container.flex-column {
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
}
|
|
48
|
+
sd-modal-card .sd-modal-card__button-container button.sd-modal-card__button {
|
|
49
|
+
width: 89px;
|
|
50
|
+
}
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { resolveColor } from "../../utils/color";
|
|
3
|
+
export class SdModalCard {
|
|
4
|
+
type = 'info';
|
|
5
|
+
system = 'normal';
|
|
6
|
+
useCloseButton = true;
|
|
7
|
+
modalTitle = 'normal';
|
|
8
|
+
buttonFlexDirection = 'row';
|
|
9
|
+
buttonProps = [
|
|
10
|
+
{
|
|
11
|
+
label: '확인',
|
|
12
|
+
color: 'grey_80',
|
|
13
|
+
size: 'md',
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
message = [];
|
|
17
|
+
modalClass = '';
|
|
18
|
+
sdClose;
|
|
19
|
+
sdConfirm;
|
|
20
|
+
get pointColor() {
|
|
21
|
+
if (this.type !== 'normal') {
|
|
22
|
+
return 'grey_95';
|
|
23
|
+
}
|
|
24
|
+
switch (this.system) {
|
|
25
|
+
case 'positive':
|
|
26
|
+
return resolveColor('brilliantblue_75');
|
|
27
|
+
case 'negative':
|
|
28
|
+
return resolveColor('red_75');
|
|
29
|
+
default:
|
|
30
|
+
return resolveColor('grey_95');
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
get getModalClass() {
|
|
34
|
+
let modalClass = `sd-modal-card ${this.modalClass}`;
|
|
35
|
+
modalClass += ' ' + `sd-modal-card-${this.system}`;
|
|
36
|
+
return modalClass;
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
return (h(Host, { key: 'a7b84787e02fd73d3df5af58011b92bd70bf5418', style: { '--point-color': this.pointColor } }, h("div", { key: 'ee1e08e2dca1c4192bbdf21cba148a1ad72459e1', class: this.getModalClass }, this.useCloseButton && (h("sd-icon", { key: 'ec9aad87db22a57f01326db6fac695eb2d4617ad', class: "sd-modal-card__close-button", name: "close", size: "20", color: "grey_65", onClick: () => this.sdClose.emit() })), this.type !== 'normal' && (h("sd-icon", { key: 'ccf36cbb5ef0a793d422cee2312d338436bd6d61', class: "sd-modal-card__icon", name: this.type === 'info' ? 'notificationOutline' : 'warningOutline', size: "32", color: this.type === 'info' ? 'brilliantblue_75' : 'red_75' })), h("h2", { key: '9d1e9f949bc75697960d2c44667f7cad52d976c4', class: "sd-modal-card__title" }, this.modalTitle), h("slot", { key: 'f2b75146e58d78ac8431a1549068e9a219be4506' }, h("div", { key: '75d035874b34f388c3c6acb60f4a90dae46ff7e6', class: `sd-modal-card__message-container` }, this.message.map(msg => (h("p", { class: "sd-modal-card__message" }, msg))))), h("div", { key: '39f99159776d7c107b2b3410e5681a67766b2ce8', class: `sd-modal-card__button-container flex-${this.buttonFlexDirection}` }, this.buttonProps.map(button => (h("sd-button", { class: 'sd-modal-card__button', variant: button.variant ? button.variant : 'outline', label: button.label, color: button.color, size: button.size, onClick: () => !button.type || button.type === 'confirm' ? this.sdConfirm.emit() : this.sdClose.emit(), ...(button.class && { class: button.class }) })))))));
|
|
40
|
+
}
|
|
41
|
+
static get is() { return "sd-modal-card"; }
|
|
42
|
+
static get originalStyleUrls() {
|
|
43
|
+
return {
|
|
44
|
+
"$": ["sd-modal-card.scss"]
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
static get styleUrls() {
|
|
48
|
+
return {
|
|
49
|
+
"$": ["sd-modal-card.css"]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static get properties() {
|
|
53
|
+
return {
|
|
54
|
+
"type": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"mutable": false,
|
|
57
|
+
"complexType": {
|
|
58
|
+
"original": "'info' | 'warning' | 'normal'",
|
|
59
|
+
"resolved": "\"info\" | \"normal\" | \"warning\"",
|
|
60
|
+
"references": {}
|
|
61
|
+
},
|
|
62
|
+
"required": false,
|
|
63
|
+
"optional": false,
|
|
64
|
+
"docs": {
|
|
65
|
+
"tags": [],
|
|
66
|
+
"text": ""
|
|
67
|
+
},
|
|
68
|
+
"getter": false,
|
|
69
|
+
"setter": false,
|
|
70
|
+
"reflect": false,
|
|
71
|
+
"attribute": "type",
|
|
72
|
+
"defaultValue": "'info'"
|
|
73
|
+
},
|
|
74
|
+
"system": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"mutable": false,
|
|
77
|
+
"complexType": {
|
|
78
|
+
"original": "'normal' | 'positive' | 'negative'",
|
|
79
|
+
"resolved": "\"negative\" | \"normal\" | \"positive\"",
|
|
80
|
+
"references": {}
|
|
81
|
+
},
|
|
82
|
+
"required": false,
|
|
83
|
+
"optional": false,
|
|
84
|
+
"docs": {
|
|
85
|
+
"tags": [],
|
|
86
|
+
"text": ""
|
|
87
|
+
},
|
|
88
|
+
"getter": false,
|
|
89
|
+
"setter": false,
|
|
90
|
+
"reflect": false,
|
|
91
|
+
"attribute": "system",
|
|
92
|
+
"defaultValue": "'normal'"
|
|
93
|
+
},
|
|
94
|
+
"useCloseButton": {
|
|
95
|
+
"type": "boolean",
|
|
96
|
+
"mutable": false,
|
|
97
|
+
"complexType": {
|
|
98
|
+
"original": "boolean",
|
|
99
|
+
"resolved": "boolean",
|
|
100
|
+
"references": {}
|
|
101
|
+
},
|
|
102
|
+
"required": false,
|
|
103
|
+
"optional": false,
|
|
104
|
+
"docs": {
|
|
105
|
+
"tags": [],
|
|
106
|
+
"text": ""
|
|
107
|
+
},
|
|
108
|
+
"getter": false,
|
|
109
|
+
"setter": false,
|
|
110
|
+
"reflect": false,
|
|
111
|
+
"attribute": "use-close-button",
|
|
112
|
+
"defaultValue": "true"
|
|
113
|
+
},
|
|
114
|
+
"modalTitle": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"mutable": false,
|
|
117
|
+
"complexType": {
|
|
118
|
+
"original": "string",
|
|
119
|
+
"resolved": "string",
|
|
120
|
+
"references": {}
|
|
121
|
+
},
|
|
122
|
+
"required": false,
|
|
123
|
+
"optional": false,
|
|
124
|
+
"docs": {
|
|
125
|
+
"tags": [],
|
|
126
|
+
"text": ""
|
|
127
|
+
},
|
|
128
|
+
"getter": false,
|
|
129
|
+
"setter": false,
|
|
130
|
+
"reflect": false,
|
|
131
|
+
"attribute": "modal-title",
|
|
132
|
+
"defaultValue": "'normal'"
|
|
133
|
+
},
|
|
134
|
+
"buttonFlexDirection": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"mutable": false,
|
|
137
|
+
"complexType": {
|
|
138
|
+
"original": "'row' | 'column'",
|
|
139
|
+
"resolved": "\"column\" | \"row\"",
|
|
140
|
+
"references": {}
|
|
141
|
+
},
|
|
142
|
+
"required": false,
|
|
143
|
+
"optional": false,
|
|
144
|
+
"docs": {
|
|
145
|
+
"tags": [],
|
|
146
|
+
"text": ""
|
|
147
|
+
},
|
|
148
|
+
"getter": false,
|
|
149
|
+
"setter": false,
|
|
150
|
+
"reflect": false,
|
|
151
|
+
"attribute": "button-flex-direction",
|
|
152
|
+
"defaultValue": "'row'"
|
|
153
|
+
},
|
|
154
|
+
"buttonProps": {
|
|
155
|
+
"type": "unknown",
|
|
156
|
+
"mutable": false,
|
|
157
|
+
"complexType": {
|
|
158
|
+
"original": "SdModalCardButtonProps[]",
|
|
159
|
+
"resolved": "SdModalCardButtonProps[]",
|
|
160
|
+
"references": {
|
|
161
|
+
"SdModalCardButtonProps": {
|
|
162
|
+
"location": "local",
|
|
163
|
+
"path": "C:/Users/KimMeeKyeong/Documents/sellmate/frontend/design-system/packages/stencil/src/components/sd-modal-card/sd-modal-card.tsx",
|
|
164
|
+
"id": "src/components/sd-modal-card/sd-modal-card.tsx::SdModalCardButtonProps"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"required": false,
|
|
169
|
+
"optional": false,
|
|
170
|
+
"docs": {
|
|
171
|
+
"tags": [],
|
|
172
|
+
"text": ""
|
|
173
|
+
},
|
|
174
|
+
"getter": false,
|
|
175
|
+
"setter": false,
|
|
176
|
+
"defaultValue": "[\r\n {\r\n label: '\uD655\uC778',\r\n color: 'grey_80',\r\n size: 'md',\r\n },\r\n ]"
|
|
177
|
+
},
|
|
178
|
+
"message": {
|
|
179
|
+
"type": "unknown",
|
|
180
|
+
"mutable": false,
|
|
181
|
+
"complexType": {
|
|
182
|
+
"original": "string[]",
|
|
183
|
+
"resolved": "string[]",
|
|
184
|
+
"references": {}
|
|
185
|
+
},
|
|
186
|
+
"required": false,
|
|
187
|
+
"optional": false,
|
|
188
|
+
"docs": {
|
|
189
|
+
"tags": [],
|
|
190
|
+
"text": ""
|
|
191
|
+
},
|
|
192
|
+
"getter": false,
|
|
193
|
+
"setter": false,
|
|
194
|
+
"defaultValue": "[]"
|
|
195
|
+
},
|
|
196
|
+
"modalClass": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"mutable": false,
|
|
199
|
+
"complexType": {
|
|
200
|
+
"original": "string",
|
|
201
|
+
"resolved": "string",
|
|
202
|
+
"references": {}
|
|
203
|
+
},
|
|
204
|
+
"required": false,
|
|
205
|
+
"optional": false,
|
|
206
|
+
"docs": {
|
|
207
|
+
"tags": [],
|
|
208
|
+
"text": ""
|
|
209
|
+
},
|
|
210
|
+
"getter": false,
|
|
211
|
+
"setter": false,
|
|
212
|
+
"reflect": false,
|
|
213
|
+
"attribute": "modal-class",
|
|
214
|
+
"defaultValue": "''"
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
static get events() {
|
|
219
|
+
return [{
|
|
220
|
+
"method": "sdClose",
|
|
221
|
+
"name": "sdClose",
|
|
222
|
+
"bubbles": true,
|
|
223
|
+
"cancelable": true,
|
|
224
|
+
"composed": true,
|
|
225
|
+
"docs": {
|
|
226
|
+
"tags": [],
|
|
227
|
+
"text": ""
|
|
228
|
+
},
|
|
229
|
+
"complexType": {
|
|
230
|
+
"original": "MouseEvent",
|
|
231
|
+
"resolved": "MouseEvent",
|
|
232
|
+
"references": {
|
|
233
|
+
"MouseEvent": {
|
|
234
|
+
"location": "global",
|
|
235
|
+
"id": "global::MouseEvent"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}, {
|
|
240
|
+
"method": "sdConfirm",
|
|
241
|
+
"name": "sdConfirm",
|
|
242
|
+
"bubbles": true,
|
|
243
|
+
"cancelable": true,
|
|
244
|
+
"composed": true,
|
|
245
|
+
"docs": {
|
|
246
|
+
"tags": [],
|
|
247
|
+
"text": ""
|
|
248
|
+
},
|
|
249
|
+
"complexType": {
|
|
250
|
+
"original": "MouseEvent",
|
|
251
|
+
"resolved": "MouseEvent",
|
|
252
|
+
"references": {
|
|
253
|
+
"MouseEvent": {
|
|
254
|
+
"location": "global",
|
|
255
|
+
"id": "global::MouseEvent"
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}];
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
// <div
|
|
263
|
+
// style="
|
|
264
|
+
// width: 100%;
|
|
265
|
+
// display: flex;
|
|
266
|
+
// justify-content: center;
|
|
267
|
+
// align-items: center;
|
|
268
|
+
// gap: 40px;
|
|
269
|
+
// margin-top: 50px;
|
|
270
|
+
// "
|
|
271
|
+
// >
|
|
272
|
+
// <sd-modal-card id="1"></sd-modal-card>
|
|
273
|
+
// <sd-modal-card id="2"></sd-modal-card>
|
|
274
|
+
// <sd-modal-card id="3"></sd-modal-card>
|
|
275
|
+
// </div>
|
|
276
|
+
// <div
|
|
277
|
+
// style="
|
|
278
|
+
// width: 100%;
|
|
279
|
+
// display: flex;
|
|
280
|
+
// justify-content: center;
|
|
281
|
+
// align-items: center;
|
|
282
|
+
// gap: 40px;
|
|
283
|
+
// margin-top: 50px;
|
|
284
|
+
// "
|
|
285
|
+
// >
|
|
286
|
+
// <sd-modal-card id="4"></sd-modal-card>
|
|
287
|
+
// <sd-modal-card id="5"></sd-modal-card>
|
|
288
|
+
// <sd-modal-card id="6"></sd-modal-card>
|
|
289
|
+
// </div>
|
|
290
|
+
// <div
|
|
291
|
+
// style="
|
|
292
|
+
// width: 100%;
|
|
293
|
+
// display: flex;
|
|
294
|
+
// justify-content: center;
|
|
295
|
+
// align-items: center;
|
|
296
|
+
// gap: 40px;
|
|
297
|
+
// margin-top: 50px;
|
|
298
|
+
// margin-bottom: 50px;
|
|
299
|
+
// "
|
|
300
|
+
// >
|
|
301
|
+
// <sd-modal-card id="7"></sd-modal-card>
|
|
302
|
+
// <sd-modal-card id="8"></sd-modal-card>
|
|
303
|
+
// <sd-modal-card id="9"></sd-modal-card>
|
|
304
|
+
// </div>
|
|
305
|
+
// <script>
|
|
306
|
+
// document.addEventListener('DOMContentLoaded', event => {
|
|
307
|
+
// const modalCard1 = document.getElementById('1');
|
|
308
|
+
// const modalCard2 = document.getElementById('2');
|
|
309
|
+
// const modalCard3 = document.getElementById('3');
|
|
310
|
+
// const modalCard4 = document.getElementById('4');
|
|
311
|
+
// const modalCard5 = document.getElementById('5');
|
|
312
|
+
// const modalCard6 = document.getElementById('6');
|
|
313
|
+
// const modalCard7 = document.getElementById('7');
|
|
314
|
+
// const modalCard8 = document.getElementById('8');
|
|
315
|
+
// const modalCard9 = document.getElementById('9');
|
|
316
|
+
// const message = [
|
|
317
|
+
// 'Lorem ipsum dolor sit amet, consectetur adipisicing elit,',
|
|
318
|
+
// 'incididunt ut labore et dolore magna aliqua.',
|
|
319
|
+
// ];
|
|
320
|
+
// const buttonProps = [
|
|
321
|
+
// {
|
|
322
|
+
// label: '취소',
|
|
323
|
+
// color: 'grey_80',
|
|
324
|
+
// size: 'md',
|
|
325
|
+
// type: 'cancel',
|
|
326
|
+
// },
|
|
327
|
+
// {
|
|
328
|
+
// label: '확인',
|
|
329
|
+
// color: 'oceanblue_75',
|
|
330
|
+
// size: 'md',
|
|
331
|
+
// variant: 'primary',
|
|
332
|
+
// },
|
|
333
|
+
// ];
|
|
334
|
+
// const colButtonProps = [
|
|
335
|
+
// {
|
|
336
|
+
// label: '확인',
|
|
337
|
+
// color: 'oceanblue_75',
|
|
338
|
+
// size: 'md',
|
|
339
|
+
// variant: 'primary',
|
|
340
|
+
// },
|
|
341
|
+
// {
|
|
342
|
+
// label: '취소',
|
|
343
|
+
// color: 'grey_80',
|
|
344
|
+
// size: 'md',
|
|
345
|
+
// type: 'cancel',
|
|
346
|
+
// },
|
|
347
|
+
// ];
|
|
348
|
+
// const handleClose = () => {
|
|
349
|
+
// console.log('Modal closed');
|
|
350
|
+
// };
|
|
351
|
+
// const handleConfirm = () => {
|
|
352
|
+
// console.log('Modal confirmed');
|
|
353
|
+
// };
|
|
354
|
+
// modalCard1.message = message;
|
|
355
|
+
// modalCard2.message = message;
|
|
356
|
+
// modalCard3.message = message;
|
|
357
|
+
// modalCard4.message = message;
|
|
358
|
+
// modalCard5.message = message;
|
|
359
|
+
// modalCard6.message = message;
|
|
360
|
+
// modalCard7.message = message;
|
|
361
|
+
// modalCard8.message = message;
|
|
362
|
+
// modalCard9.message = message;
|
|
363
|
+
// modalCard4.type = 'warning';
|
|
364
|
+
// modalCard5.type = 'warning';
|
|
365
|
+
// modalCard6.type = 'warning';
|
|
366
|
+
// modalCard7.type = 'normal';
|
|
367
|
+
// modalCard8.type = 'normal';
|
|
368
|
+
// modalCard9.type = 'normal';
|
|
369
|
+
// modalCard8.system = 'positive';
|
|
370
|
+
// modalCard9.system = 'negative';
|
|
371
|
+
// modalCard2.buttonProps = buttonProps;
|
|
372
|
+
// modalCard3.buttonProps = colButtonProps;
|
|
373
|
+
// modalCard3.buttonFlexDirection = 'column';
|
|
374
|
+
// const warningButtonProps = [buttonProps[0], { ...buttonProps[1], color: 'red_75' }];
|
|
375
|
+
// const warningColButtonProps = [{ ...colButtonProps[0], color: 'red_75' }, colButtonProps[1]];
|
|
376
|
+
// modalCard5.buttonProps = warningButtonProps;
|
|
377
|
+
// modalCard6.buttonProps = warningColButtonProps;
|
|
378
|
+
// modalCard6.buttonFlexDirection = 'column';
|
|
379
|
+
// modalCard1.addEventListener('sdClose', handleClose);
|
|
380
|
+
// modalCard2.addEventListener('sdClose', handleClose);
|
|
381
|
+
// modalCard3.addEventListener('sdClose', handleClose);
|
|
382
|
+
// modalCard1.addEventListener('sdConfirm', handleConfirm);
|
|
383
|
+
// modalCard2.addEventListener('sdConfirm', handleConfirm);
|
|
384
|
+
// modalCard3.addEventListener('sdConfirm', handleConfirm);
|
|
385
|
+
// });
|
|
386
|
+
// </script>
|
|
387
|
+
//# sourceMappingURL=sd-modal-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sd-modal-card.js","sourceRoot":"","sources":["../../../src/components/sd-modal-card/sd-modal-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAgBjD,MAAM,OAAO,WAAW;IACf,IAAI,GAAkC,MAAM,CAAC;IAC7C,MAAM,GAAuC,QAAQ,CAAC;IACtD,cAAc,GAAY,IAAI,CAAC;IAC/B,UAAU,GAAW,QAAQ,CAAC;IAC9B,mBAAmB,GAAqB,KAAK,CAAC;IAC9C,WAAW,GAA6B;QAC/C;YACC,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,IAAI;SACV;KACD,CAAC;IACM,OAAO,GAAa,EAAE,CAAC;IAE/B,UAAU,GAAW,EAAE,CAAC;IAEf,OAAO,CAA4B;IACnC,SAAS,CAA4B;IAE9C,IAAY,UAAU;QACrB,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC5B,OAAO,SAAS,CAAC;QAClB,CAAC;QAED,QAAQ,IAAI,CAAC,MAAM,EAAE,CAAC;YACrB,KAAK,UAAU;gBACd,OAAO,YAAY,CAAC,kBAAkB,CAAC,CAAC;YACzC,KAAK,UAAU;gBACd,OAAO,YAAY,CAAC,QAAQ,CAAC,CAAC;YAC/B;gBACC,OAAO,YAAY,CAAC,SAAS,CAAC,CAAC;QACjC,CAAC;IACF,CAAC;IAED,IAAY,aAAa;QACxB,IAAI,UAAU,GAAG,iBAAiB,IAAI,CAAC,UAAU,EAAE,CAAC;QACpD,UAAU,IAAI,GAAG,GAAG,iBAAiB,IAAI,CAAC,MAAM,EAAE,CAAC;QACnD,OAAO,UAAU,CA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AC5C,4CAA4C;AAC5C,WAAW;AACX,WAAW;AACX,8DAA8D;AAC9D,uDAAuD;AACvD,uDAAuD;AACvD,uDAAuD;AACvD,uDAAuD;AACvD,uDAAuD;AACvD,uDAAuD;AACvD,uDAAuD;AACvD,uDAAuD;AACvD,uDAAuD;AACvD,wBAAwB;AACxB,oEAAoE;AACpE,uDAAuD;AACvD,SAAS;AACT,4BAA4B;AAC5B,SAAS;AACT,qBAAqB;AACrB,0BAA0B;AAC1B,oBAAoB;AACpB,wBAAwB;AACxB,UAAU;AACV,SAAS;AACT,qBAAqB;AACrB,+BAA+B;AAC/B,oBAAoB;AACpB,4BAA4B;AAC5B,UAAU;AACV,SAAS;AACT,+BAA+B;AAC/B,SAAS;AACT,qBAAqB;AACrB,+BAA+B;AAC/B,oBAAoB;AACpB,4BAA4B;AAC5B,UAAU;AACV,SAAS;AACT,qBAAqB;AACrB,0BAA0B;AAC1B,oBAAoB;AACpB,wBAAwB;AACxB,UAAU;AACV,SAAS;AACT,kCAAkC;AAClC,oCAAoC;AACpC,SAAS;AACT,oCAAoC;AACpC,uCAAuC;AACvC,SAAS;AACT,oCAAoC;AACpC,oCAAoC;AACpC,oCAAoC;AACpC,oCAAoC;AACpC,oCAAoC;AACpC,oCAAoC;AACpC,oCAAoC;AACpC,oCAAoC;AACpC,oCAAoC;AAEpC,mCAAmC;AACnC,mCAAmC;AACnC,mCAAmC;AACnC,kCAAkC;AAClC,kCAAkC;AAClC,kCAAkC;AAElC,sCAAsC;AACtC,sCAAsC;AAEtC,4CAA4C;AAC5C,+CAA+C;AAC/C,iDAAiD;AAEjD,2FAA2F;AAC3F,oGAAoG;AACpG,mDAAmD;AACnD,sDAAsD;AACtD,iDAAiD;AAEjD,2DAA2D;AAC3D,2DAA2D;AAC3D,2DAA2D;AAC3D,+DAA+D;AAC/D,+DAA+D;AAC/D,+DAA+D;AAC/D,SAAS;AACT,cAAc","sourcesContent":["import { Component, Event, EventEmitter, Host, Prop, h } from '@stencil/core';\r\nimport { resolveColor } from '../../utils/color';\r\nimport { ButtonSize, ButtonVariant } from '../sd-button/sd-button';\r\n\r\nexport interface SdModalCardButtonProps {\r\n label: string;\r\n color: string;\r\n size: ButtonSize;\r\n variant?: ButtonVariant;\r\n class?: string;\r\n type?: 'confirm' | 'cancel';\r\n}\r\n\r\n@Component({\r\n tag: 'sd-modal-card',\r\n styleUrl: 'sd-modal-card.scss',\r\n})\r\nexport class SdModalCard {\r\n @Prop() type: 'info' | 'warning' | 'normal' = 'info';\r\n @Prop() system: 'normal' | 'positive' | 'negative' = 'normal';\r\n @Prop() useCloseButton: boolean = true;\r\n @Prop() modalTitle: string = 'normal';\r\n @Prop() buttonFlexDirection: 'row' | 'column' = 'row';\r\n @Prop() buttonProps: SdModalCardButtonProps[] = [\r\n {\r\n label: '확인',\r\n color: 'grey_80',\r\n size: 'md',\r\n },\r\n ];\r\n @Prop() message: string[] = [];\r\n @Prop()\r\n modalClass: string = '';\r\n\r\n @Event() sdClose!: EventEmitter<MouseEvent>;\r\n @Event() sdConfirm!: EventEmitter<MouseEvent>;\r\n\r\n private get pointColor(): string {\r\n if (this.type !== 'normal') {\r\n return 'grey_95';\r\n }\r\n\r\n switch (this.system) {\r\n case 'positive':\r\n return resolveColor('brilliantblue_75');\r\n case 'negative':\r\n return resolveColor('red_75');\r\n default:\r\n return resolveColor('grey_95');\r\n }\r\n }\r\n\r\n private get getModalClass(): string {\r\n let modalClass = `sd-modal-card ${this.modalClass}`;\r\n modalClass += ' ' + `sd-modal-card-${this.system}`;\r\n return modalClass;\r\n }\r\n\r\n render() {\r\n return (\r\n <Host style={{ '--point-color': this.pointColor }}>\r\n <div class={this.getModalClass}>\r\n {this.useCloseButton && (\r\n <sd-icon\r\n class=\"sd-modal-card__close-button\"\r\n name=\"close\"\r\n size=\"20\"\r\n color=\"grey_65\"\r\n onClick={() => this.sdClose.emit()}\r\n />\r\n )}\r\n {this.type !== 'normal' && (\r\n <sd-icon\r\n class=\"sd-modal-card__icon\"\r\n name={this.type === 'info' ? 'notificationOutline' : 'warningOutline'}\r\n size=\"32\"\r\n color={this.type === 'info' ? 'brilliantblue_75' : 'red_75'}\r\n />\r\n )}\r\n <h2 class=\"sd-modal-card__title\">{this.modalTitle}</h2>\r\n <slot>\r\n <div class={`sd-modal-card__message-container`}>\r\n {this.message.map(msg => (\r\n <p class=\"sd-modal-card__message\">{msg}</p>\r\n ))}\r\n </div>\r\n </slot>\r\n <div class={`sd-modal-card__button-container flex-${this.buttonFlexDirection}`}>\r\n {this.buttonProps.map(button => (\r\n <sd-button\r\n class={'sd-modal-card__button'}\r\n variant={button.variant ? button.variant : 'outline'}\r\n label={button.label}\r\n color={button.color}\r\n size={button.size}\r\n onClick={() =>\r\n !button.type || button.type === 'confirm' ? this.sdConfirm.emit() : this.sdClose.emit()\r\n }\r\n {...(button.class && { class: button.class })}\r\n ></sd-button>\r\n ))}\r\n </div>\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n\r\n// <div\r\n// style=\"\r\n// width: 100%;\r\n// display: flex;\r\n// justify-content: center;\r\n// align-items: center;\r\n// gap: 40px;\r\n// margin-top: 50px;\r\n// \"\r\n// >\r\n// <sd-modal-card id=\"1\"></sd-modal-card>\r\n// <sd-modal-card id=\"2\"></sd-modal-card>\r\n// <sd-modal-card id=\"3\"></sd-modal-card>\r\n// </div>\r\n// <div\r\n// style=\"\r\n// width: 100%;\r\n// display: flex;\r\n// justify-content: center;\r\n// align-items: center;\r\n// gap: 40px;\r\n// margin-top: 50px;\r\n// \"\r\n// >\r\n// <sd-modal-card id=\"4\"></sd-modal-card>\r\n// <sd-modal-card id=\"5\"></sd-modal-card>\r\n// <sd-modal-card id=\"6\"></sd-modal-card>\r\n// </div>\r\n// <div\r\n// style=\"\r\n// width: 100%;\r\n// display: flex;\r\n// justify-content: center;\r\n// align-items: center;\r\n// gap: 40px;\r\n// margin-top: 50px;\r\n// margin-bottom: 50px;\r\n// \"\r\n// >\r\n// <sd-modal-card id=\"7\"></sd-modal-card>\r\n// <sd-modal-card id=\"8\"></sd-modal-card>\r\n// <sd-modal-card id=\"9\"></sd-modal-card>\r\n// </div>\r\n// <script>\r\n// document.addEventListener('DOMContentLoaded', event => {\r\n// const modalCard1 = document.getElementById('1');\r\n// const modalCard2 = document.getElementById('2');\r\n// const modalCard3 = document.getElementById('3');\r\n// const modalCard4 = document.getElementById('4');\r\n// const modalCard5 = document.getElementById('5');\r\n// const modalCard6 = document.getElementById('6');\r\n// const modalCard7 = document.getElementById('7');\r\n// const modalCard8 = document.getElementById('8');\r\n// const modalCard9 = document.getElementById('9');\r\n// const message = [\r\n// 'Lorem ipsum dolor sit amet, consectetur adipisicing elit,',\r\n// 'incididunt ut labore et dolore magna aliqua.',\r\n// ];\r\n// const buttonProps = [\r\n// {\r\n// label: '취소',\r\n// color: 'grey_80',\r\n// size: 'md',\r\n// type: 'cancel',\r\n// },\r\n// {\r\n// label: '확인',\r\n// color: 'oceanblue_75',\r\n// size: 'md',\r\n// variant: 'primary',\r\n// },\r\n// ];\r\n// const colButtonProps = [\r\n// {\r\n// label: '확인',\r\n// color: 'oceanblue_75',\r\n// size: 'md',\r\n// variant: 'primary',\r\n// },\r\n// {\r\n// label: '취소',\r\n// color: 'grey_80',\r\n// size: 'md',\r\n// type: 'cancel',\r\n// },\r\n// ];\r\n// const handleClose = () => {\r\n// console.log('Modal closed');\r\n// };\r\n// const handleConfirm = () => {\r\n// console.log('Modal confirmed');\r\n// };\r\n// modalCard1.message = message;\r\n// modalCard2.message = message;\r\n// modalCard3.message = message;\r\n// modalCard4.message = message;\r\n// modalCard5.message = message;\r\n// modalCard6.message = message;\r\n// modalCard7.message = message;\r\n// modalCard8.message = message;\r\n// modalCard9.message = message;\r\n\r\n// modalCard4.type = 'warning';\r\n// modalCard5.type = 'warning';\r\n// modalCard6.type = 'warning';\r\n// modalCard7.type = 'normal';\r\n// modalCard8.type = 'normal';\r\n// modalCard9.type = 'normal';\r\n\r\n// modalCard8.system = 'positive';\r\n// modalCard9.system = 'negative';\r\n\r\n// modalCard2.buttonProps = buttonProps;\r\n// modalCard3.buttonProps = colButtonProps;\r\n// modalCard3.buttonFlexDirection = 'column';\r\n\r\n// const warningButtonProps = [buttonProps[0], { ...buttonProps[1], color: 'red_75' }];\r\n// const warningColButtonProps = [{ ...colButtonProps[0], color: 'red_75' }, colButtonProps[1]];\r\n// modalCard5.buttonProps = warningButtonProps;\r\n// modalCard6.buttonProps = warningColButtonProps;\r\n// modalCard6.buttonFlexDirection = 'column';\r\n\r\n// modalCard1.addEventListener('sdClose', handleClose);\r\n// modalCard2.addEventListener('sdClose', handleClose);\r\n// modalCard3.addEventListener('sdClose', handleClose);\r\n// modalCard1.addEventListener('sdConfirm', handleConfirm);\r\n// modalCard2.addEventListener('sdConfirm', handleConfirm);\r\n// modalCard3.addEventListener('sdConfirm', handleConfirm);\r\n// });\r\n// </script>\r\n"]}
|
|
@@ -12,12 +12,6 @@ export class SdPagination {
|
|
|
12
12
|
lastPage = 1;
|
|
13
13
|
simple = false;
|
|
14
14
|
pageChange;
|
|
15
|
-
onPropChange() {
|
|
16
|
-
console.log('Pagination props changed', {
|
|
17
|
-
currentPage: this.currentPage,
|
|
18
|
-
lastPage: this.lastPage,
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
15
|
get paginationClasses() {
|
|
22
16
|
const classes = ['sd-pagination'];
|
|
23
17
|
if (this.simple) {
|
|
@@ -73,12 +67,12 @@ export class SdPagination {
|
|
|
73
67
|
}
|
|
74
68
|
}
|
|
75
69
|
render() {
|
|
76
|
-
return (h("div", { key: '
|
|
70
|
+
return (h("div", { key: '3b65d74d4b70b8b3292a20daa5d89ffb7d9a66e7', class: this.paginationClasses }, h("div", { key: 'a3be2b1c24ac6ac7ecde25223d9208e63e558bf3', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "pagination-info" }, h("span", { class: "current-page" }, this.currentPage), h("span", null, "/"), h("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
77
71
|
'pagination-btn': true,
|
|
78
72
|
'pagination-btn--selected': this.currentPage === n,
|
|
79
73
|
}, disabled: this.currentPage === n, style: {
|
|
80
74
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
81
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: '
|
|
75
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: '9c145c18eacc2ab0115d162cbb50e5ad3ea62c80', class: "append-btns" }, this.renderNextButtons())));
|
|
82
76
|
}
|
|
83
77
|
static get is() { return "sd-pagination"; }
|
|
84
78
|
static get originalStyleUrls() {
|
|
@@ -173,14 +167,5 @@ export class SdPagination {
|
|
|
173
167
|
}
|
|
174
168
|
}];
|
|
175
169
|
}
|
|
176
|
-
static get watchers() {
|
|
177
|
-
return [{
|
|
178
|
-
"propName": "currentPage",
|
|
179
|
-
"methodName": "onPropChange"
|
|
180
|
-
}, {
|
|
181
|
-
"propName": "lastPage",
|
|
182
|
-
"methodName": "onPropChange"
|
|
183
|
-
}];
|
|
184
|
-
}
|
|
185
170
|
}
|
|
186
171
|
//# sourceMappingURL=sd-pagination.js.map
|