@paperless/core 0.1.0-alpha.49 → 0.1.0-alpha.51
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/CHANGELOG.md +22 -0
- package/dist/build/p-2c7eebe0.entry.js +1 -0
- package/dist/build/p-30026c58.entry.js +1 -0
- package/dist/build/p-a69581db.entry.js +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/index-f9c302b6.js +10 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-avatar-group.cjs.entry.js +19 -0
- package/dist/cjs/p-avatar.cjs.entry.js +5 -2
- package/dist/cjs/p-profile.cjs.entry.js +26 -0
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/atoms/avatar/avatar.component.css +9 -16
- package/dist/collection/components/atoms/avatar/avatar.component.js +6 -4
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.css +18 -0
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +36 -0
- package/dist/collection/components/atoms/divider/divider.component.css +1 -1
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -1
- package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.css +1 -1
- package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -1
- package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -1
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -1
- package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -1
- package/dist/collection/components/atoms/profile/profile.component.css +13 -0
- package/dist/collection/components/atoms/profile/profile.component.js +25 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
- package/dist/components/avatar.component.js +54 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/p-avatar-group.d.ts +11 -0
- package/dist/components/p-avatar-group.js +34 -0
- package/dist/components/p-avatar.js +1 -50
- package/dist/components/p-profile.d.ts +11 -0
- package/dist/components/p-profile.js +46 -0
- package/dist/esm/index-fff70567.js +10 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-avatar-group.entry.js +15 -0
- package/dist/esm/p-avatar.entry.js +5 -2
- package/dist/esm/p-profile.entry.js +22 -0
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/p-2c7eebe0.entry.js +1 -0
- package/dist/paperless/p-30026c58.entry.js +1 -0
- package/dist/paperless/p-a69581db.entry.js +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/atoms/avatar-group/avatar-group.component.d.ts +7 -0
- package/dist/types/components/atoms/profile/profile.component.d.ts +8 -0
- package/dist/types/components.d.ts +34 -0
- package/package.json +1 -1
- package/dist/build/p-19d84fe7.entry.js +0 -1
- package/dist/paperless/p-19d84fe7.entry.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 0.1.0-alpha.51 (2022-08-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **Atoms:** Add profile component ([6940b79](https://github.com/ionic-team/stencil-component-starter/commit/6940b79aa89a65e1da802c7a2bddcc79b4b5be7e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# 0.1.0-alpha.50 (2022-08-09)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **Atoms:** Add avatar group component ([a5db706](https://github.com/ionic-team/stencil-component-starter/commit/a5db7063e414c37748efd63918a2590571d90a87))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# 0.1.0-alpha.49 (2022-08-08)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as r,H as a}from"./p-0100c1a2.js";const i=class{constructor(r){t(this,r)}render(){return r(a,{class:"p-avatar-group"},r("slot",null),this.extra&&r("span",{class:"extra"},"+",this.extra))}};i.style=".static{position:static!important}.flex{display:flex!important}.-space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(-.25rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(-.25rem*var(--tw-space-x-reverse))!important}.overflow-hidden{overflow:hidden!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-storm-vague{--tw-text-opacity:1!important;color:rgb(152 154 183/var(--tw-text-opacity))!important}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}p-avatar-group{align-items:center;display:flex;overflow:hidden}p-avatar-group>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(-.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(-.25rem*var(--tw-space-x-reverse))}p-avatar-group p-avatar>img{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity));box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}p-avatar-group p-avatar:first-child{z-index:3}p-avatar-group p-avatar:nth-child(2){z-index:2}p-avatar-group p-avatar:nth-child(3){z-index:1}p-avatar-group .extra{--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;padding-left:1rem}";export{i as p_avatar_group}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as a,g as i}from"./p-0100c1a2.js";const r=class{constructor(e){t(this,e)}render(){const t=this._generateAvatar();return e(a,{class:"p-profile"},t,e("div",{class:"name"},e("slot",{name:"title"}),e("slot",{name:"subtitle"})))}_generateAvatar(){var t,a;const i=this._el.querySelector('p-avatar[slot="avatar"]');return e("p-avatar",{class:"flex",src:null!==(t=i.src)&&void 0!==t?t:null,"default-image":null!==(a=i.defaultImage)&&void 0!==a?a:null,variant:i.variant,size:"small"})}get _el(){return i(this)}};r.style=".static{position:static!important}.flex{display:flex!important}.flex-col{flex-direction:column!important}.gap-4{gap:1rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}:host{align-items:center;display:flex;gap:1rem}:host .name{display:flex;flex-direction:column;justify-content:center}:host .name>:first-child{--tw-text-opacity:1;color:rgb(39 40 56/var(--tw-text-opacity));font-size:.875rem;font-weight:600;line-height:1.25rem}:host .name>:nth-child(2){--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem}";export{r as p_profile}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as a,H as r}from"./p-0100c1a2.js";const i=class{constructor(a){t(this,a),this.variant="user",this.size="medium",this._src=this.src}render(){return this._src||this._setDefaultLink(),a(r,{class:"p-avatar"},a("img",{src:this._src,onError:()=>this._setDefaultLink()}))}_setDefaultLink(){var t;this._src=null!==(t=this.defaultImage)&&void 0!==t?t:"user"===this.variant?"/assets/images/avatar/user-default.svg":"/assets/images/avatar/company-default.svg"}};i.style=".static{position:static!important}.flex{display:flex!important}.w-10{width:2.5rem!important}.w-20{width:5rem!important}.w-28{width:7rem!important}.rounded{border-radius:.25rem!important}.object-cover{-o-object-fit:cover!important;object-fit:cover!important}p-avatar{display:inline-block}p-avatar>img{-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}p-avatar[size=small]>img{height:2.5rem;width:2.5rem}p-avatar[size=medium]>img{height:5rem;width:5rem}p-avatar[size=large]>img{height:7rem;width:7rem}p-avatar[variant=company]>img{border-radius:.25rem}p-avatar[variant=company][size=large]>img,p-avatar[variant=company][size=medium]>img{border-radius:.375rem}p-avatar[variant=user]>img{border-radius:100%}";export{i as p_avatar}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as i}from"./p-0100c1a2.js";(()=>{const i=import.meta.url,a={};return""!==i&&(a.resourcesUrl=new URL(".",i).href),e(a)})().then((e=>i([["p-19254809",[[1,"p-modal",{size:[1],variant:[1],header:[1],show:[4]}]]],["p-2c23d197",[[1,"p-stepper",{activeStep:[2,"active-step"],direction:[513]}]]],["p-fb1e33eb",[[1,"p-navigation-item",{active:[4],icon:[1],counter:[8],href:[1],target:[1]}]]],["p-ffeed7c6",[[0,"p-pagination",{page:[1538],pageSize:[2,"page-size"],total:[2]}]]],["p-27914eed",[[4,"p-card-header",{header:[1],arrow:[4]}]]],["p-b68368f3",[[1,"p-dropdown",{placement:[1],show:[4],insideClick:[4,"inside-click"],disableTriggerClick:[4,"disable-trigger-click"]},[[6,"click","documentClickHandler"]]]]],["p-6e60b92a",[[1,"p-helper"]]],["p-4a85b858",[[1,"p-info-panel",{variant:[1],header:[1],content:[1],closeable:[4]}]]],["p-3b491ca2",[[1,"p-segment-item",{active:[4],icon:[1],iconFlip:[1,"icon-flip"],iconRotate:[2,"icon-rotate"]}]]],["p-7784ee14",[[4,"p-status",{variant:[1],icon:[1],iconFlip:[1,"icon-flip"],iconRotate:[2,"icon-rotate"]}]]],["p-
|
|
1
|
+
import{p as e,b as i}from"./p-0100c1a2.js";(()=>{const i=import.meta.url,a={};return""!==i&&(a.resourcesUrl=new URL(".",i).href),e(a)})().then((e=>i([["p-19254809",[[1,"p-modal",{size:[1],variant:[1],header:[1],show:[4]}]]],["p-2c23d197",[[1,"p-stepper",{activeStep:[2,"active-step"],direction:[513]}]]],["p-fb1e33eb",[[1,"p-navigation-item",{active:[4],icon:[1],counter:[8],href:[1],target:[1]}]]],["p-ffeed7c6",[[0,"p-pagination",{page:[1538],pageSize:[2,"page-size"],total:[2]}]]],["p-27914eed",[[4,"p-card-header",{header:[1],arrow:[4]}]]],["p-b68368f3",[[1,"p-dropdown",{placement:[1],show:[4],insideClick:[4,"inside-click"],disableTriggerClick:[4,"disable-trigger-click"]},[[6,"click","documentClickHandler"]]]]],["p-6e60b92a",[[1,"p-helper"]]],["p-4a85b858",[[1,"p-info-panel",{variant:[1],header:[1],content:[1],closeable:[4]}]]],["p-30026c58",[[1,"p-profile"]]],["p-3b491ca2",[[1,"p-segment-item",{active:[4],icon:[1],iconFlip:[1,"icon-flip"],iconRotate:[2,"icon-rotate"]}]]],["p-7784ee14",[[4,"p-status",{variant:[1],icon:[1],iconFlip:[1,"icon-flip"],iconRotate:[2,"icon-rotate"]}]]],["p-2c7eebe0",[[4,"p-avatar-group",{extra:[2]}]]],["p-ccbddcbb",[[4,"p-card-body",{inheritText:[4,"inherit-text"]}]]],["p-67fc89a6",[[1,"p-card-container",{hoverable:[4]}]]],["p-3f6d3736",[[1,"p-dropdown-menu-item",{active:[4]}]]],["p-d069673f",[[0,"p-illustration",{variant:[1]}]]],["p-864ac423",[[4,"p-segment-container"]]],["p-a69581db",[[0,"p-avatar",{variant:[513],size:[513],defaultImage:[1,"default-image"],src:[1],_src:[32]}]]],["p-11d24001",[[1,"p-counter"]]],["p-c64e2313",[[4,"p-dropdown-menu-container"]]],["p-2120a0b7",[[1,"p-pagination-item",{active:[4]}]]],["p-f50c6e5b",[[1,"p-tooltip",{variant:[1],popover:[8],placement:[1],show:[4],canManuallyClose:[4,"can-manually-close"]},[[2,"click","clickHandler"],[6,"click","documentClickHandler"],[1,"mouseenter","mouseEnterHandler"],[0,"focus","mouseEnterHandler"],[1,"mouseleave","mouseLeaveHandler"],[0,"blur","mouseLeaveHandler"]]]]],["p-5438d70e",[[1,"p-divider"]]],["p-5101f35f",[[1,"p-modal-footer"],[1,"p-modal-backdrop"],[1,"p-modal-body",{variant:[1]}],[4,"p-modal-container",{size:[1]}],[1,"p-modal-header"]]],["p-0fc4e043",[[4,"p-button",{variant:[1],href:[1],target:[1],size:[1],loading:[4],chevron:[8],disabled:[4],icon:[1],iconOnly:[4,"icon-only"],iconPosition:[1,"icon-position"],iconFlip:[1,"icon-flip"],iconRotate:[2,"icon-rotate"],inheritText:[4,"inherit-text"]},[[2,"click","handleClick"]]],[1,"p-loader",{show:[4],variant:[1],color:[1],modalTitle:[1,"modal-title"],modalDescription:[1,"modal-description"]}],[0,"p-icon",{variant:[1],size:[1],rotate:[2],flip:[1]}]]],["p-7cf04cb4",[[1,"p-stepper-step",{align:[513],direction:[513],finished:[516],active:[516]}],[1,"p-stepper-line",{active:[516],direction:[513]}]]]],e)));
|
|
@@ -1617,10 +1617,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1617
1617
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1618
1618
|
/* webpackMode: "lazy" */
|
|
1619
1619
|
'./p-button_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1620
|
-
case 'p-avatar.cjs':
|
|
1620
|
+
case 'p-avatar-group.cjs':
|
|
1621
1621
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1622
1622
|
/* webpackMode: "lazy" */
|
|
1623
|
-
'./p-avatar.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1623
|
+
'./p-avatar-group.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1624
1624
|
case 'p-card-body.cjs':
|
|
1625
1625
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1626
1626
|
/* webpackMode: "lazy" */
|
|
@@ -1665,6 +1665,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1665
1665
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1666
1666
|
/* webpackMode: "lazy" */
|
|
1667
1667
|
'./p-pagination.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1668
|
+
case 'p-profile.cjs':
|
|
1669
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1670
|
+
/* webpackMode: "lazy" */
|
|
1671
|
+
'./p-profile.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1668
1672
|
case 'p-segment-container.cjs':
|
|
1669
1673
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1670
1674
|
/* webpackMode: "lazy" */
|
|
@@ -1681,6 +1685,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1681
1685
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1682
1686
|
/* webpackMode: "lazy" */
|
|
1683
1687
|
'./p-stepper.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1688
|
+
case 'p-avatar.cjs':
|
|
1689
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1690
|
+
/* webpackMode: "lazy" */
|
|
1691
|
+
'./p-avatar.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1684
1692
|
case 'p-counter.cjs':
|
|
1685
1693
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1686
1694
|
/* webpackMode: "lazy" */
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["p-modal.cjs",[[1,"p-modal",{"size":[1],"variant":[1],"header":[1],"show":[4]}]]],["p-stepper.cjs",[[1,"p-stepper",{"activeStep":[2,"active-step"],"direction":[513]}]]],["p-navigation-item.cjs",[[1,"p-navigation-item",{"active":[4],"icon":[1],"counter":[8],"href":[1],"target":[1]}]]],["p-pagination.cjs",[[0,"p-pagination",{"page":[1538],"pageSize":[2,"page-size"],"total":[2]}]]],["p-card-header.cjs",[[4,"p-card-header",{"header":[1],"arrow":[4]}]]],["p-dropdown.cjs",[[1,"p-dropdown",{"placement":[1],"show":[4],"insideClick":[4,"inside-click"],"disableTriggerClick":[4,"disable-trigger-click"]},[[6,"click","documentClickHandler"]]]]],["p-helper.cjs",[[1,"p-helper"]]],["p-info-panel.cjs",[[1,"p-info-panel",{"variant":[1],"header":[1],"content":[1],"closeable":[4]}]]],["p-segment-item.cjs",[[1,"p-segment-item",{"active":[4],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"]}]]],["p-status.cjs",[[4,"p-status",{"variant":[1],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"]}]]],["p-avatar.cjs",[[
|
|
17
|
+
return index.bootstrapLazy([["p-modal.cjs",[[1,"p-modal",{"size":[1],"variant":[1],"header":[1],"show":[4]}]]],["p-stepper.cjs",[[1,"p-stepper",{"activeStep":[2,"active-step"],"direction":[513]}]]],["p-navigation-item.cjs",[[1,"p-navigation-item",{"active":[4],"icon":[1],"counter":[8],"href":[1],"target":[1]}]]],["p-pagination.cjs",[[0,"p-pagination",{"page":[1538],"pageSize":[2,"page-size"],"total":[2]}]]],["p-card-header.cjs",[[4,"p-card-header",{"header":[1],"arrow":[4]}]]],["p-dropdown.cjs",[[1,"p-dropdown",{"placement":[1],"show":[4],"insideClick":[4,"inside-click"],"disableTriggerClick":[4,"disable-trigger-click"]},[[6,"click","documentClickHandler"]]]]],["p-helper.cjs",[[1,"p-helper"]]],["p-info-panel.cjs",[[1,"p-info-panel",{"variant":[1],"header":[1],"content":[1],"closeable":[4]}]]],["p-profile.cjs",[[1,"p-profile"]]],["p-segment-item.cjs",[[1,"p-segment-item",{"active":[4],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"]}]]],["p-status.cjs",[[4,"p-status",{"variant":[1],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"]}]]],["p-avatar-group.cjs",[[4,"p-avatar-group",{"extra":[2]}]]],["p-card-body.cjs",[[4,"p-card-body",{"inheritText":[4,"inherit-text"]}]]],["p-card-container.cjs",[[1,"p-card-container",{"hoverable":[4]}]]],["p-dropdown-menu-item.cjs",[[1,"p-dropdown-menu-item",{"active":[4]}]]],["p-illustration.cjs",[[0,"p-illustration",{"variant":[1]}]]],["p-segment-container.cjs",[[4,"p-segment-container"]]],["p-avatar.cjs",[[0,"p-avatar",{"variant":[513],"size":[513],"defaultImage":[1,"default-image"],"src":[1],"_src":[32]}]]],["p-counter.cjs",[[1,"p-counter"]]],["p-dropdown-menu-container.cjs",[[4,"p-dropdown-menu-container"]]],["p-pagination-item.cjs",[[1,"p-pagination-item",{"active":[4]}]]],["p-tooltip.cjs",[[1,"p-tooltip",{"variant":[1],"popover":[8],"placement":[1],"show":[4],"canManuallyClose":[4,"can-manually-close"]},[[2,"click","clickHandler"],[6,"click","documentClickHandler"],[1,"mouseenter","mouseEnterHandler"],[0,"focus","mouseEnterHandler"],[1,"mouseleave","mouseLeaveHandler"],[0,"blur","mouseLeaveHandler"]]]]],["p-divider.cjs",[[1,"p-divider"]]],["p-modal-backdrop_5.cjs",[[1,"p-modal-footer"],[1,"p-modal-backdrop"],[1,"p-modal-body",{"variant":[1]}],[4,"p-modal-container",{"size":[1]}],[1,"p-modal-header"]]],["p-button_3.cjs",[[4,"p-button",{"variant":[1],"href":[1],"target":[1],"size":[1],"loading":[4],"chevron":[8],"disabled":[4],"icon":[1],"iconOnly":[4,"icon-only"],"iconPosition":[1,"icon-position"],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"inheritText":[4,"inherit-text"]},[[2,"click","handleClick"]]],[1,"p-loader",{"show":[4],"variant":[1],"color":[1],"modalTitle":[1,"modal-title"],"modalDescription":[1,"modal-description"]}],[0,"p-icon",{"variant":[1],"size":[1],"rotate":[2],"flip":[1]}]]],["p-stepper-line_2.cjs",[[1,"p-stepper-step",{"align":[513],"direction":[513],"finished":[516],"active":[516]}],[1,"p-stepper-line",{"active":[516],"direction":[513]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-f9c302b6.js');
|
|
6
|
+
|
|
7
|
+
const avatarGroupComponentCss = ".static{position:static!important}.flex{display:flex!important}.-space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(-.25rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(-.25rem*var(--tw-space-x-reverse))!important}.overflow-hidden{overflow:hidden!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-storm-vague{--tw-text-opacity:1!important;color:rgb(152 154 183/var(--tw-text-opacity))!important}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}p-avatar-group{align-items:center;display:flex;overflow:hidden}p-avatar-group>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(-.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(-.25rem*var(--tw-space-x-reverse))}p-avatar-group p-avatar>img{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity));box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}p-avatar-group p-avatar:first-child{z-index:3}p-avatar-group p-avatar:nth-child(2){z-index:2}p-avatar-group p-avatar:nth-child(3){z-index:1}p-avatar-group .extra{--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;padding-left:1rem}";
|
|
8
|
+
|
|
9
|
+
const AvatarGroup = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (index.h(index.Host, { class: "p-avatar-group" }, index.h("slot", null), this.extra && index.h("span", { class: "extra" }, "+", this.extra)));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
AvatarGroup.style = avatarGroupComponentCss;
|
|
18
|
+
|
|
19
|
+
exports.p_avatar_group = AvatarGroup;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f9c302b6.js');
|
|
6
6
|
|
|
7
|
-
const avatarComponentCss = ".static{position:static!important}.w-10{width:2.5rem!important}.w-20{width:5rem!important}.w-28{width:7rem!important}.rounded{border-radius:.25rem!important}.object-cover{-o-object-fit:cover!important;object-fit:cover!important}
|
|
7
|
+
const avatarComponentCss = ".static{position:static!important}.flex{display:flex!important}.w-10{width:2.5rem!important}.w-20{width:5rem!important}.w-28{width:7rem!important}.rounded{border-radius:.25rem!important}.object-cover{-o-object-fit:cover!important;object-fit:cover!important}p-avatar{display:inline-block}p-avatar>img{-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}p-avatar[size=small]>img{height:2.5rem;width:2.5rem}p-avatar[size=medium]>img{height:5rem;width:5rem}p-avatar[size=large]>img{height:7rem;width:7rem}p-avatar[variant=company]>img{border-radius:.25rem}p-avatar[variant=company][size=large]>img,p-avatar[variant=company][size=medium]>img{border-radius:.375rem}p-avatar[variant=user]>img{border-radius:100%}";
|
|
8
8
|
|
|
9
9
|
const Avatar = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -20,7 +20,10 @@ const Avatar = class {
|
|
|
20
20
|
this._src = this.src;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
|
|
23
|
+
if (!this._src) {
|
|
24
|
+
this._setDefaultLink();
|
|
25
|
+
}
|
|
26
|
+
return (index.h(index.Host, { class: "p-avatar" }, index.h("img", { src: this._src, onError: () => this._setDefaultLink() })));
|
|
24
27
|
}
|
|
25
28
|
_setDefaultLink() {
|
|
26
29
|
var _a;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-f9c302b6.js');
|
|
6
|
+
|
|
7
|
+
const profileComponentCss = ".static{position:static!important}.flex{display:flex!important}.flex-col{flex-direction:column!important}.gap-4{gap:1rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}:host{align-items:center;display:flex;gap:1rem}:host .name{display:flex;flex-direction:column;justify-content:center}:host .name>:first-child{--tw-text-opacity:1;color:rgb(39 40 56/var(--tw-text-opacity));font-size:.875rem;font-weight:600;line-height:1.25rem}:host .name>:nth-child(2){--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem}";
|
|
8
|
+
|
|
9
|
+
const Profile = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
const avatar = this._generateAvatar();
|
|
15
|
+
return (index.h(index.Host, { class: "p-profile" }, avatar, index.h("div", { class: "name" }, index.h("slot", { name: "title" }), index.h("slot", { name: "subtitle" }))));
|
|
16
|
+
}
|
|
17
|
+
_generateAvatar() {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
const avatar = this._el.querySelector('p-avatar[slot="avatar"]');
|
|
20
|
+
return (index.h("p-avatar", { class: "flex", src: (_a = avatar.src) !== null && _a !== void 0 ? _a : null, "default-image": (_b = avatar.defaultImage) !== null && _b !== void 0 ? _b : null, variant: avatar.variant, size: "small" }));
|
|
21
|
+
}
|
|
22
|
+
get _el() { return index.getElement(this); }
|
|
23
|
+
};
|
|
24
|
+
Profile.style = profileComponentCss;
|
|
25
|
+
|
|
26
|
+
exports.p_profile = Profile;
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["p-modal.cjs",[[1,"p-modal",{"size":[1],"variant":[1],"header":[1],"show":[4]}]]],["p-stepper.cjs",[[1,"p-stepper",{"activeStep":[2,"active-step"],"direction":[513]}]]],["p-navigation-item.cjs",[[1,"p-navigation-item",{"active":[4],"icon":[1],"counter":[8],"href":[1],"target":[1]}]]],["p-pagination.cjs",[[0,"p-pagination",{"page":[1538],"pageSize":[2,"page-size"],"total":[2]}]]],["p-card-header.cjs",[[4,"p-card-header",{"header":[1],"arrow":[4]}]]],["p-dropdown.cjs",[[1,"p-dropdown",{"placement":[1],"show":[4],"insideClick":[4,"inside-click"],"disableTriggerClick":[4,"disable-trigger-click"]},[[6,"click","documentClickHandler"]]]]],["p-helper.cjs",[[1,"p-helper"]]],["p-info-panel.cjs",[[1,"p-info-panel",{"variant":[1],"header":[1],"content":[1],"closeable":[4]}]]],["p-segment-item.cjs",[[1,"p-segment-item",{"active":[4],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"]}]]],["p-status.cjs",[[4,"p-status",{"variant":[1],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"]}]]],["p-avatar.cjs",[[
|
|
18
|
+
return index.bootstrapLazy([["p-modal.cjs",[[1,"p-modal",{"size":[1],"variant":[1],"header":[1],"show":[4]}]]],["p-stepper.cjs",[[1,"p-stepper",{"activeStep":[2,"active-step"],"direction":[513]}]]],["p-navigation-item.cjs",[[1,"p-navigation-item",{"active":[4],"icon":[1],"counter":[8],"href":[1],"target":[1]}]]],["p-pagination.cjs",[[0,"p-pagination",{"page":[1538],"pageSize":[2,"page-size"],"total":[2]}]]],["p-card-header.cjs",[[4,"p-card-header",{"header":[1],"arrow":[4]}]]],["p-dropdown.cjs",[[1,"p-dropdown",{"placement":[1],"show":[4],"insideClick":[4,"inside-click"],"disableTriggerClick":[4,"disable-trigger-click"]},[[6,"click","documentClickHandler"]]]]],["p-helper.cjs",[[1,"p-helper"]]],["p-info-panel.cjs",[[1,"p-info-panel",{"variant":[1],"header":[1],"content":[1],"closeable":[4]}]]],["p-profile.cjs",[[1,"p-profile"]]],["p-segment-item.cjs",[[1,"p-segment-item",{"active":[4],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"]}]]],["p-status.cjs",[[4,"p-status",{"variant":[1],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"]}]]],["p-avatar-group.cjs",[[4,"p-avatar-group",{"extra":[2]}]]],["p-card-body.cjs",[[4,"p-card-body",{"inheritText":[4,"inherit-text"]}]]],["p-card-container.cjs",[[1,"p-card-container",{"hoverable":[4]}]]],["p-dropdown-menu-item.cjs",[[1,"p-dropdown-menu-item",{"active":[4]}]]],["p-illustration.cjs",[[0,"p-illustration",{"variant":[1]}]]],["p-segment-container.cjs",[[4,"p-segment-container"]]],["p-avatar.cjs",[[0,"p-avatar",{"variant":[513],"size":[513],"defaultImage":[1,"default-image"],"src":[1],"_src":[32]}]]],["p-counter.cjs",[[1,"p-counter"]]],["p-dropdown-menu-container.cjs",[[4,"p-dropdown-menu-container"]]],["p-pagination-item.cjs",[[1,"p-pagination-item",{"active":[4]}]]],["p-tooltip.cjs",[[1,"p-tooltip",{"variant":[1],"popover":[8],"placement":[1],"show":[4],"canManuallyClose":[4,"can-manually-close"]},[[2,"click","clickHandler"],[6,"click","documentClickHandler"],[1,"mouseenter","mouseEnterHandler"],[0,"focus","mouseEnterHandler"],[1,"mouseleave","mouseLeaveHandler"],[0,"blur","mouseLeaveHandler"]]]]],["p-divider.cjs",[[1,"p-divider"]]],["p-modal-backdrop_5.cjs",[[1,"p-modal-footer"],[1,"p-modal-backdrop"],[1,"p-modal-body",{"variant":[1]}],[4,"p-modal-container",{"size":[1]}],[1,"p-modal-header"]]],["p-button_3.cjs",[[4,"p-button",{"variant":[1],"href":[1],"target":[1],"size":[1],"loading":[4],"chevron":[8],"disabled":[4],"icon":[1],"iconOnly":[4,"icon-only"],"iconPosition":[1,"icon-position"],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"inheritText":[4,"inherit-text"]},[[2,"click","handleClick"]]],[1,"p-loader",{"show":[4],"variant":[1],"color":[1],"modalTitle":[1,"modal-title"],"modalDescription":[1,"modal-description"]}],[0,"p-icon",{"variant":[1],"size":[1],"rotate":[2],"flip":[1]}]]],["p-stepper-line_2.cjs",[[1,"p-stepper-step",{"align":[513],"direction":[513],"finished":[516],"active":[516]}],[1,"p-stepper-line",{"active":[516],"direction":[513]}]]]], options);
|
|
19
19
|
});
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"./components/atoms/icon/icon.component.js",
|
|
4
4
|
"./components/atoms/illustration/illustration.component.js",
|
|
5
5
|
"./components/atoms/avatar/avatar.component.js",
|
|
6
|
+
"./components/atoms/avatar-group/avatar-group.component.js",
|
|
6
7
|
"./components/atoms/button/button.component.js",
|
|
7
8
|
"./components/atoms/card-body/card-body.component.js",
|
|
8
9
|
"./components/atoms/card-container/card-container.component.js",
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
"./components/atoms/modal-footer/modal-footer.component.js",
|
|
21
22
|
"./components/atoms/modal-header/modal-header.component.js",
|
|
22
23
|
"./components/atoms/pagination-item/pagination-item.component.js",
|
|
24
|
+
"./components/atoms/profile/profile.component.js",
|
|
23
25
|
"./components/atoms/segment-container/segment-container.component.js",
|
|
24
26
|
"./components/atoms/segment-item/segment-item.component.js",
|
|
25
27
|
"./components/atoms/status/status.component.js",
|
|
@@ -1,31 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
p-avatar {
|
|
2
2
|
@apply inline-block;
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
p-avatar > img {
|
|
5
5
|
@apply object-cover object-center;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
:host(.size-small) > img {
|
|
7
|
+
p-avatar[size=small] > img {
|
|
9
8
|
@apply w-10 h-10;
|
|
10
9
|
}
|
|
11
|
-
|
|
12
|
-
:host(.size-medium) > img {
|
|
10
|
+
p-avatar[size=medium] > img {
|
|
13
11
|
@apply w-20 h-20;
|
|
14
12
|
}
|
|
15
|
-
|
|
16
|
-
:host(.size-large) > img {
|
|
13
|
+
p-avatar[size=large] > img {
|
|
17
14
|
@apply w-28 h-28;
|
|
18
15
|
}
|
|
19
|
-
|
|
20
|
-
:host(.variant-company) > img {
|
|
16
|
+
p-avatar[variant=company] > img {
|
|
21
17
|
@apply rounded;
|
|
22
18
|
}
|
|
23
|
-
|
|
24
|
-
:host(.variant-company.size-medium),
|
|
25
|
-
:host(.variant-company.size-large) {
|
|
19
|
+
p-avatar[variant=company][size=medium] > img, p-avatar[variant=company][size=large] > img {
|
|
26
20
|
@apply rounded-large;
|
|
27
21
|
}
|
|
28
|
-
|
|
29
|
-
:host(.variant-user) > img {
|
|
22
|
+
p-avatar[variant=user] > img {
|
|
30
23
|
@apply rounded-round;
|
|
31
|
-
} .static{position:static!important}
|
|
24
|
+
} .static{position:static!important}.flex{display:flex!important}.static{position:static!important}
|
|
@@ -12,7 +12,10 @@ export class Avatar {
|
|
|
12
12
|
this._src = this.src;
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
|
|
15
|
+
if (!this._src) {
|
|
16
|
+
this._setDefaultLink();
|
|
17
|
+
}
|
|
18
|
+
return (h(Host, { class: "p-avatar" },
|
|
16
19
|
h("img", { src: this._src, onError: () => this._setDefaultLink() })));
|
|
17
20
|
}
|
|
18
21
|
_setDefaultLink() {
|
|
@@ -23,7 +26,6 @@ export class Avatar {
|
|
|
23
26
|
: '/assets/images/avatar/company-default.svg');
|
|
24
27
|
}
|
|
25
28
|
static get is() { return "p-avatar"; }
|
|
26
|
-
static get encapsulation() { return "shadow"; }
|
|
27
29
|
static get originalStyleUrls() { return {
|
|
28
30
|
"$": ["avatar.component.scss"]
|
|
29
31
|
}; }
|
|
@@ -46,7 +48,7 @@ export class Avatar {
|
|
|
46
48
|
"text": "The variant of the avatar"
|
|
47
49
|
},
|
|
48
50
|
"attribute": "variant",
|
|
49
|
-
"reflect":
|
|
51
|
+
"reflect": true,
|
|
50
52
|
"defaultValue": "'user'"
|
|
51
53
|
},
|
|
52
54
|
"size": {
|
|
@@ -64,7 +66,7 @@ export class Avatar {
|
|
|
64
66
|
"text": "The size of the avatar"
|
|
65
67
|
},
|
|
66
68
|
"attribute": "size",
|
|
67
|
-
"reflect":
|
|
69
|
+
"reflect": true,
|
|
68
70
|
"defaultValue": "'medium'"
|
|
69
71
|
},
|
|
70
72
|
"defaultImage": {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
p-avatar-group {
|
|
2
|
+
@apply flex -space-x-1 overflow-hidden items-center;
|
|
3
|
+
}
|
|
4
|
+
p-avatar-group p-avatar > img {
|
|
5
|
+
@apply ring-2 ring-white;
|
|
6
|
+
}
|
|
7
|
+
p-avatar-group p-avatar:nth-child(1) {
|
|
8
|
+
z-index: 3;
|
|
9
|
+
}
|
|
10
|
+
p-avatar-group p-avatar:nth-child(2) {
|
|
11
|
+
z-index: 2;
|
|
12
|
+
}
|
|
13
|
+
p-avatar-group p-avatar:nth-child(3) {
|
|
14
|
+
z-index: 1;
|
|
15
|
+
}
|
|
16
|
+
p-avatar-group .extra {
|
|
17
|
+
@apply text-sm text-storm-vague pl-4;
|
|
18
|
+
} .static{position:static!important}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Component, h, Host, Prop } from '@stencil/core';
|
|
2
|
+
export class AvatarGroup {
|
|
3
|
+
render() {
|
|
4
|
+
return (h(Host, { class: "p-avatar-group" },
|
|
5
|
+
h("slot", null),
|
|
6
|
+
this.extra && h("span", { class: "extra" },
|
|
7
|
+
"+",
|
|
8
|
+
this.extra)));
|
|
9
|
+
}
|
|
10
|
+
static get is() { return "p-avatar-group"; }
|
|
11
|
+
static get originalStyleUrls() { return {
|
|
12
|
+
"$": ["avatar-group.component.scss"]
|
|
13
|
+
}; }
|
|
14
|
+
static get styleUrls() { return {
|
|
15
|
+
"$": ["avatar-group.component.css"]
|
|
16
|
+
}; }
|
|
17
|
+
static get properties() { return {
|
|
18
|
+
"extra": {
|
|
19
|
+
"type": "number",
|
|
20
|
+
"mutable": false,
|
|
21
|
+
"complexType": {
|
|
22
|
+
"original": "number",
|
|
23
|
+
"resolved": "number",
|
|
24
|
+
"references": {}
|
|
25
|
+
},
|
|
26
|
+
"required": false,
|
|
27
|
+
"optional": false,
|
|
28
|
+
"docs": {
|
|
29
|
+
"tags": [],
|
|
30
|
+
"text": "The amount to show after the avatars"
|
|
31
|
+
},
|
|
32
|
+
"attribute": "extra",
|
|
33
|
+
"reflect": false
|
|
34
|
+
}
|
|
35
|
+
}; }
|
|
36
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
@apply block h-px bg-mystic-medium my-2 w-full;
|
|
3
|
-
} .container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.static{position:static!important}.static{position:static!important}.w-80{width:20rem!important}.w-\[33\.5rem\]{width:33.5rem!important}.w-\[38rem\]{width:38rem!important}.w-\[47\.5rem\]{width:47.5rem!important}.w-\[57\.5rem\]{width:57.5rem!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.
|
|
3
|
+
} .container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.static{position:static!important}.static{position:static!important}.w-80{width:20rem!important}.w-\[33\.5rem\]{width:33.5rem!important}.w-\[38rem\]{width:38rem!important}.w-\[47\.5rem\]{width:47.5rem!important}.w-\[57\.5rem\]{width:57.5rem!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.mb-6{margin-bottom:1.5rem!important}.mt-0{margin-top:0!important}.static{position:static!important}.static{position:static!important}.mb-6{margin-bottom:1.5rem!important}.mt-0{margin-top:0!important}.static{position:static!important}
|
|
@@ -2,4 +2,4 @@ p-dropdown-menu-container {
|
|
|
2
2
|
@apply min-w-[222px];
|
|
3
3
|
@apply flex flex-col py-2 bg-white rounded-xxlarge;
|
|
4
4
|
@apply filter drop-shadow-4;
|
|
5
|
-
} .visible{visibility:visible!important}.static{position:static!important}.static{position:static!important}
|
|
5
|
+
} .visible{visibility:visible!important}.static{position:static!important}.static{position:static!important}.static{position:static!important}
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
@apply backdrop-blur-xs bg-storm/50;
|
|
5
5
|
@apply flex justify-center items-center;
|
|
6
6
|
@apply animate-fade-in;
|
|
7
|
-
} .container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.static{position:static!important}.static{position:static!important}.w-80{width:20rem!important}.w-\[33\.5rem\]{width:33.5rem!important}.w-\[38rem\]{width:38rem!important}.w-\[47\.5rem\]{width:47.5rem!important}.w-\[57\.5rem\]{width:57.5rem!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.
|
|
7
|
+
} .container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.static{position:static!important}.static{position:static!important}.w-80{width:20rem!important}.w-\[33\.5rem\]{width:33.5rem!important}.w-\[38rem\]{width:38rem!important}.w-\[47\.5rem\]{width:47.5rem!important}.w-\[57\.5rem\]{width:57.5rem!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.mb-6{margin-bottom:1.5rem!important}.mt-0{margin-top:0!important}.static{position:static!important}.static{position:static!important}
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
:host(.variant-table) {
|
|
6
6
|
@apply px-6;
|
|
7
|
-
} .container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.static{position:static!important}.static{position:static!important}.w-80{width:20rem!important}.w-\[33\.5rem\]{width:33.5rem!important}.w-\[38rem\]{width:38rem!important}.w-\[47\.5rem\]{width:47.5rem!important}.w-\[57\.5rem\]{width:57.5rem!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.
|
|
7
|
+
} .container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.static{position:static!important}.static{position:static!important}.w-80{width:20rem!important}.w-\[33\.5rem\]{width:33.5rem!important}.w-\[38rem\]{width:38rem!important}.w-\[47\.5rem\]{width:47.5rem!important}.w-\[57\.5rem\]{width:57.5rem!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.mb-6{margin-bottom:1.5rem!important}.mt-0{margin-top:0!important}.static{position:static!important}.static{position:static!important}
|
|
@@ -3,4 +3,4 @@ p-modal-container {
|
|
|
3
3
|
@apply bg-white rounded-xxlarge;
|
|
4
4
|
@apply overflow-hidden;
|
|
5
5
|
@apply shadow-4 !important;
|
|
6
|
-
} .container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.static{position:static!important}.static{position:static!important}.w-80{width:20rem!important}.w-\[33\.5rem\]{width:33.5rem!important}.w-\[38rem\]{width:38rem!important}.w-\[47\.5rem\]{width:47.5rem!important}.w-\[57\.5rem\]{width:57.5rem!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.
|
|
6
|
+
} .container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.static{position:static!important}.static{position:static!important}.w-80{width:20rem!important}.w-\[33\.5rem\]{width:33.5rem!important}.w-\[38rem\]{width:38rem!important}.w-\[47\.5rem\]{width:47.5rem!important}.w-\[57\.5rem\]{width:57.5rem!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.mb-6{margin-bottom:1.5rem!important}.mt-0{margin-top:0!important}.static{position:static!important}.static{position:static!important}.w-80{width:20rem!important}.w-\[33\.5rem\]{width:33.5rem!important}.w-\[38rem\]{width:38rem!important}.w-\[47\.5rem\]{width:47.5rem!important}.w-\[57\.5rem\]{width:57.5rem!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
@apply flex flex-col;
|
|
3
3
|
@apply pb-6 px-6;
|
|
4
|
-
} .container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.static{position:static!important}.static{position:static!important}.w-80{width:20rem!important}.w-\[33\.5rem\]{width:33.5rem!important}.w-\[38rem\]{width:38rem!important}.w-\[47\.5rem\]{width:47.5rem!important}.w-\[57\.5rem\]{width:57.5rem!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.
|
|
4
|
+
} .container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.static{position:static!important}.static{position:static!important}.w-80{width:20rem!important}.w-\[33\.5rem\]{width:33.5rem!important}.w-\[38rem\]{width:38rem!important}.w-\[47\.5rem\]{width:47.5rem!important}.w-\[57\.5rem\]{width:57.5rem!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.mb-6{margin-bottom:1.5rem!important}.mt-0{margin-top:0!important}.static{position:static!important}.static{position:static!important}.mb-6{margin-bottom:1.5rem!important}.mt-0{margin-top:0!important}
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
@apply block px-8 py-6;
|
|
4
4
|
@apply text-storm-dark text-3xl font-bold;
|
|
5
5
|
@apply border-b border-b-mystic-medium !important;
|
|
6
|
-
} .container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.static{position:static!important}.static{position:static!important}.w-80{width:20rem!important}.w-\[33\.5rem\]{width:33.5rem!important}.w-\[38rem\]{width:38rem!important}.w-\[47\.5rem\]{width:47.5rem!important}.w-\[57\.5rem\]{width:57.5rem!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.
|
|
6
|
+
} .container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.static{position:static!important}.static{position:static!important}.w-80{width:20rem!important}.w-\[33\.5rem\]{width:33.5rem!important}.w-\[38rem\]{width:38rem!important}.w-\[47\.5rem\]{width:47.5rem!important}.w-\[57\.5rem\]{width:57.5rem!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.mb-6{margin-bottom:1.5rem!important}.mt-0{margin-top:0!important}.static{position:static!important}.static{position:static!important}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
@apply flex gap-4 items-center;
|
|
3
|
+
}
|
|
4
|
+
:host .name {
|
|
5
|
+
@apply flex flex-col justify-center;
|
|
6
|
+
}
|
|
7
|
+
:host .name > *:nth-child(1) {
|
|
8
|
+
@apply text-sm text-storm-dark;
|
|
9
|
+
@apply font-semibold;
|
|
10
|
+
}
|
|
11
|
+
:host .name > *:nth-child(2) {
|
|
12
|
+
@apply text-sm text-storm-vague;
|
|
13
|
+
} .static{position:static!important}.flex{display:flex!important}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Component, Element, h, Host } from '@stencil/core';
|
|
2
|
+
export class Profile {
|
|
3
|
+
render() {
|
|
4
|
+
const avatar = this._generateAvatar();
|
|
5
|
+
return (h(Host, { class: "p-profile" },
|
|
6
|
+
avatar,
|
|
7
|
+
h("div", { class: "name" },
|
|
8
|
+
h("slot", { name: "title" }),
|
|
9
|
+
h("slot", { name: "subtitle" }))));
|
|
10
|
+
}
|
|
11
|
+
_generateAvatar() {
|
|
12
|
+
var _a, _b;
|
|
13
|
+
const avatar = this._el.querySelector('p-avatar[slot="avatar"]');
|
|
14
|
+
return (h("p-avatar", { class: "flex", src: (_a = avatar.src) !== null && _a !== void 0 ? _a : null, "default-image": (_b = avatar.defaultImage) !== null && _b !== void 0 ? _b : null, variant: avatar.variant, size: "small" }));
|
|
15
|
+
}
|
|
16
|
+
static get is() { return "p-profile"; }
|
|
17
|
+
static get encapsulation() { return "shadow"; }
|
|
18
|
+
static get originalStyleUrls() { return {
|
|
19
|
+
"$": ["profile.component.scss"]
|
|
20
|
+
}; }
|
|
21
|
+
static get styleUrls() { return {
|
|
22
|
+
"$": ["profile.component.css"]
|
|
23
|
+
}; }
|
|
24
|
+
static get elementRef() { return "_el"; }
|
|
25
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const avatarComponentCss = ".static{position:static!important}.flex{display:flex!important}.w-10{width:2.5rem!important}.w-20{width:5rem!important}.w-28{width:7rem!important}.rounded{border-radius:.25rem!important}.object-cover{-o-object-fit:cover!important;object-fit:cover!important}p-avatar{display:inline-block}p-avatar>img{-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}p-avatar[size=small]>img{height:2.5rem;width:2.5rem}p-avatar[size=medium]>img{height:5rem;width:5rem}p-avatar[size=large]>img{height:7rem;width:7rem}p-avatar[variant=company]>img{border-radius:.25rem}p-avatar[variant=company][size=large]>img,p-avatar[variant=company][size=medium]>img{border-radius:.375rem}p-avatar[variant=user]>img{border-radius:100%}";
|
|
4
|
+
|
|
5
|
+
const Avatar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
/**
|
|
10
|
+
* The variant of the avatar
|
|
11
|
+
*/
|
|
12
|
+
this.variant = 'user';
|
|
13
|
+
/**
|
|
14
|
+
* The size of the avatar
|
|
15
|
+
*/
|
|
16
|
+
this.size = 'medium';
|
|
17
|
+
this._src = this.src;
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
if (!this._src) {
|
|
21
|
+
this._setDefaultLink();
|
|
22
|
+
}
|
|
23
|
+
return (h(Host, { class: "p-avatar" }, h("img", { src: this._src, onError: () => this._setDefaultLink() })));
|
|
24
|
+
}
|
|
25
|
+
_setDefaultLink() {
|
|
26
|
+
var _a;
|
|
27
|
+
this._src =
|
|
28
|
+
(_a = this.defaultImage) !== null && _a !== void 0 ? _a : (this.variant === 'user'
|
|
29
|
+
? '/assets/images/avatar/user-default.svg'
|
|
30
|
+
: '/assets/images/avatar/company-default.svg');
|
|
31
|
+
}
|
|
32
|
+
static get style() { return avatarComponentCss; }
|
|
33
|
+
}, [0, "p-avatar", {
|
|
34
|
+
"variant": [513],
|
|
35
|
+
"size": [513],
|
|
36
|
+
"defaultImage": [1, "default-image"],
|
|
37
|
+
"src": [1],
|
|
38
|
+
"_src": [32]
|
|
39
|
+
}]);
|
|
40
|
+
function defineCustomElement() {
|
|
41
|
+
if (typeof customElements === "undefined") {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const components = ["p-avatar"];
|
|
45
|
+
components.forEach(tagName => { switch (tagName) {
|
|
46
|
+
case "p-avatar":
|
|
47
|
+
if (!customElements.get(tagName)) {
|
|
48
|
+
customElements.define(tagName, Avatar);
|
|
49
|
+
}
|
|
50
|
+
break;
|
|
51
|
+
} });
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { Avatar as A, defineCustomElement as d };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* paperless custom elements */
|
|
2
2
|
export { Avatar as PAvatar } from '../types/components/p-avatar/p-avatar';
|
|
3
|
+
export { AvatarGroup as PAvatarGroup } from '../types/components/p-avatar-group/p-avatar-group';
|
|
3
4
|
export { Button as PButton } from '../types/components/p-button/p-button';
|
|
4
5
|
export { CardBody as PCardBody } from '../types/components/p-card-body/p-card-body';
|
|
5
6
|
export { CardContainer as PCardContainer } from '../types/components/p-card-container/p-card-container';
|
|
@@ -23,6 +24,7 @@ export { ModalHeader as PModalHeader } from '../types/components/p-modal-header/
|
|
|
23
24
|
export { NavigationItem as PNavigationItem } from '../types/components/p-navigation-item/p-navigation-item';
|
|
24
25
|
export { Pagination as PPagination } from '../types/components/p-pagination/p-pagination';
|
|
25
26
|
export { PaginationItem as PPaginationItem } from '../types/components/p-pagination-item/p-pagination-item';
|
|
27
|
+
export { Profile as PProfile } from '../types/components/p-profile/p-profile';
|
|
26
28
|
export { SegmentContainer as PSegmentContainer } from '../types/components/p-segment-container/p-segment-container';
|
|
27
29
|
export { SegmentItem as PSegmentItem } from '../types/components/p-segment-item/p-segment-item';
|
|
28
30
|
export { Status as PStatus } from '../types/components/p-status/p-status';
|
package/dist/components/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
2
2
|
export { PAvatar, defineCustomElement as defineCustomElementPAvatar } from './p-avatar.js';
|
|
3
|
+
export { PAvatarGroup, defineCustomElement as defineCustomElementPAvatarGroup } from './p-avatar-group.js';
|
|
3
4
|
export { PButton, defineCustomElement as defineCustomElementPButton } from './p-button.js';
|
|
4
5
|
export { PCardBody, defineCustomElement as defineCustomElementPCardBody } from './p-card-body.js';
|
|
5
6
|
export { PCardContainer, defineCustomElement as defineCustomElementPCardContainer } from './p-card-container.js';
|
|
@@ -23,6 +24,7 @@ export { PModalHeader, defineCustomElement as defineCustomElementPModalHeader }
|
|
|
23
24
|
export { PNavigationItem, defineCustomElement as defineCustomElementPNavigationItem } from './p-navigation-item.js';
|
|
24
25
|
export { PPagination, defineCustomElement as defineCustomElementPPagination } from './p-pagination.js';
|
|
25
26
|
export { PPaginationItem, defineCustomElement as defineCustomElementPPaginationItem } from './p-pagination-item.js';
|
|
27
|
+
export { PProfile, defineCustomElement as defineCustomElementPProfile } from './p-profile.js';
|
|
26
28
|
export { PSegmentContainer, defineCustomElement as defineCustomElementPSegmentContainer } from './p-segment-container.js';
|
|
27
29
|
export { PSegmentItem, defineCustomElement as defineCustomElementPSegmentItem } from './p-segment-item.js';
|
|
28
30
|
export { PStatus, defineCustomElement as defineCustomElementPStatus } from './p-status.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PAvatarGroup extends Components.PAvatarGroup, HTMLElement {}
|
|
4
|
+
export const PAvatarGroup: {
|
|
5
|
+
prototype: PAvatarGroup;
|
|
6
|
+
new (): PAvatarGroup;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|