@sula-tech/webcomponents 0.22.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sula-avatar_32.cjs.entry.js +124 -78
- package/dist/cjs/sula-avatar_32.cjs.entry.js.map +1 -1
- package/dist/cjs/sula-toast-stack.cjs.entry.js +4 -4
- package/dist/cjs/sula-toast.cjs.entry.js +2 -2
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/components/sula-calendar/sula-calendar.css +1 -1
- package/dist/collection/components/sula-calendar/sula-calendar.js +56 -17
- package/dist/collection/components/sula-calendar/sula-calendar.js.map +1 -1
- package/dist/collection/components/sula-calendar/sula-calendar.stories.js +16 -1
- package/dist/collection/components/sula-calendar/sula-calendar.stories.js.map +1 -1
- package/dist/collection/components/sula-chip/sula-chip.css +1 -1
- package/dist/collection/components/sula-chip/sula-chip.js +30 -4
- package/dist/collection/components/sula-chip/sula-chip.js.map +1 -1
- package/dist/collection/components/sula-chip/sula-chip.stories.js +55 -0
- package/dist/collection/components/sula-chip/sula-chip.stories.js.map +1 -1
- package/dist/collection/components/sula-dropdown/sula-dropdown.js +3 -3
- package/dist/collection/components/sula-icon/sula-icon.css +1 -1
- package/dist/collection/components/sula-icon/sula-icon.js +1 -1
- package/dist/collection/components/sula-icon-picker/sula-icon-picker.js +2 -2
- package/dist/collection/components/sula-loader/sula-loader.js +1 -1
- package/dist/collection/components/sula-menu/sula-menu.js +8 -8
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.css +1 -1
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js +1 -1
- package/dist/collection/components/sula-progress-bar/sula-progress-bar.js +2 -2
- package/dist/collection/components/sula-radio-button/sula-radio-button.js +2 -2
- package/dist/collection/components/sula-search-bar/sula-search-bar.js +2 -2
- package/dist/collection/components/sula-segmented-control/sula-segmented-control.js +1 -1
- package/dist/collection/components/sula-switch/sula-switch.js +4 -4
- package/dist/collection/components/sula-table/sula-table.js +3 -3
- package/dist/collection/components/sula-table-body/sula-table-body.js +1 -1
- package/dist/collection/components/sula-table-cell/sula-table-cell.js +2 -2
- package/dist/collection/components/sula-table-head-cell/sula-table-head-cell.js +2 -2
- package/dist/collection/components/sula-table-header/sula-table-header.js +1 -1
- package/dist/collection/components/sula-table-row/sula-table-row.js +1 -1
- package/dist/collection/components/sula-tag/sula-tag.js +3 -3
- package/dist/collection/components/sula-textarea/sula-textarea.js +6 -6
- package/dist/collection/components/sula-textfield/sula-textfield.css +1 -1
- package/dist/collection/components/sula-textfield/sula-textfield.js +2 -2
- package/dist/collection/components/sula-tiles/sula-tiles.js +1 -1
- package/dist/collection/components/sula-timeline-list/sula-timeline-list.js +1 -1
- package/dist/collection/components/sula-toast/sula-toast.js +2 -2
- package/dist/collection/components/sula-toast-stack/sula-toast-stack.js +4 -4
- package/dist/collection/components/sula-toggle/sula-toggle.js +1 -1
- package/dist/collection/components/sula-tooltip/sula-tooltip.js +1 -1
- package/dist/components/{p-MPkJUrNl.js → p-BORy1230.js} +3 -3
- package/dist/components/{p-MPkJUrNl.js.map → p-BORy1230.js.map} +1 -1
- package/dist/components/{p-DwyYG9oc.js → p-BhhQBGyJ.js} +5 -5
- package/dist/components/{p-DwyYG9oc.js.map → p-BhhQBGyJ.js.map} +1 -1
- package/dist/components/{p-D5G0T47I.js → p-DRskhGOW.js} +5 -5
- package/dist/components/{p-D5G0T47I.js.map → p-DRskhGOW.js.map} +1 -1
- package/dist/components/{p-jplrktAF.js → p-DjPqgTzy.js} +4 -4
- package/dist/components/{p-jplrktAF.js.map → p-DjPqgTzy.js.map} +1 -1
- package/dist/components/{p-t7f_qmad.js → p-Dl7qXhBf.js} +7 -7
- package/dist/components/{p-t7f_qmad.js.map → p-Dl7qXhBf.js.map} +1 -1
- package/dist/components/{p-DGAtNvje.js → p-DzGiAQVF.js} +6 -6
- package/dist/components/{p-DGAtNvje.js.map → p-DzGiAQVF.js.map} +1 -1
- package/dist/components/{p-CXm0qTFO.js → p-V9D4rqf7.js} +4 -4
- package/dist/components/{p-CXm0qTFO.js.map → p-V9D4rqf7.js.map} +1 -1
- package/dist/components/{p-fAOl4EhI.js → p-jsqtM3Ie.js} +5 -5
- package/dist/components/{p-fAOl4EhI.js.map → p-jsqtM3Ie.js.map} +1 -1
- package/dist/components/sula-avatar.js +1 -1
- package/dist/components/sula-badge.js +1 -1
- package/dist/components/sula-breadcrumb.js +1 -1
- package/dist/components/sula-button.js +1 -1
- package/dist/components/sula-calendar.js +59 -20
- package/dist/components/sula-calendar.js.map +1 -1
- package/dist/components/sula-checkbox.js +1 -1
- package/dist/components/sula-chip.js +15 -7
- package/dist/components/sula-chip.js.map +1 -1
- package/dist/components/sula-dropdown.js +1 -1
- package/dist/components/sula-icon-picker.js +6 -6
- package/dist/components/sula-icon.js +1 -1
- package/dist/components/sula-loader.js +1 -1
- package/dist/components/sula-menu-select-list.js +1 -1
- package/dist/components/sula-menu.js +9 -9
- package/dist/components/sula-modal.js +3 -3
- package/dist/components/sula-progress-bar.js +3 -3
- package/dist/components/sula-radio-button.js +2 -2
- package/dist/components/sula-search-bar.js +1 -1
- package/dist/components/sula-segmented-control.js +2 -2
- package/dist/components/sula-switch.js +4 -4
- package/dist/components/sula-table-body.js +1 -1
- package/dist/components/sula-table-cell.js +2 -2
- package/dist/components/sula-table-head-cell.js +2 -2
- package/dist/components/sula-table-header.js +1 -1
- package/dist/components/sula-table-row.js +1 -1
- package/dist/components/sula-table.js +3 -3
- package/dist/components/sula-tag.js +4 -4
- package/dist/components/sula-textarea.js +6 -6
- package/dist/components/sula-textfield.js +1 -1
- package/dist/components/sula-tiles.js +2 -2
- package/dist/components/sula-timeline-list.js +2 -2
- package/dist/components/sula-toast-stack.js +6 -6
- package/dist/components/sula-toast.js +1 -1
- package/dist/components/sula-toggle.js +2 -2
- package/dist/components/sula-tooltip.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sula-avatar_32.entry.js +124 -78
- package/dist/esm/sula-avatar_32.entry.js.map +1 -1
- package/dist/esm/sula-toast-stack.entry.js +4 -4
- package/dist/esm/sula-toast.entry.js +2 -2
- package/dist/esm/webcomponents.js +1 -1
- package/dist/types/components/sula-calendar/sula-calendar.d.ts +9 -3
- package/dist/types/components/sula-calendar/sula-calendar.stories.d.ts +1 -0
- package/dist/types/components/sula-chip/sula-chip.d.ts +5 -0
- package/dist/types/components/sula-chip/sula-chip.stories.d.ts +12 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/webcomponents/{p-df271629.entry.js → p-18c84807.entry.js} +6 -6
- package/dist/webcomponents/{p-22b10b91.entry.js → p-20b3135d.entry.js} +399 -315
- package/dist/webcomponents/p-20b3135d.entry.js.map +1 -0
- package/dist/webcomponents/{p-c552c435.entry.js → p-705e2424.entry.js} +16 -16
- package/dist/webcomponents/webcomponents.esm.js +4 -3
- package/package.json +1 -1
- package/dist/webcomponents/p-22b10b91.entry.js.map +0 -1
- /package/dist/webcomponents/{p-df271629.entry.js.map → p-18c84807.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-c552c435.entry.js.map → p-705e2424.entry.js.map} +0 -0
|
@@ -37,7 +37,7 @@ export class SulaTimelineList {
|
|
|
37
37
|
return iconByStatus[status];
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'a915cb5598fcda55d5be011f56bcc2249369883c' }, h("div", { key: '46621aa7b649672e5d6103d05b6f56dcb5e08fb5', class: "flex flex-col bg-surface-on-body px-24 py-32 w-fit rounded-md" }, this.sulaTimelineList.map((item, index) => {
|
|
41
41
|
const isLastItem = index === this.sulaTimelineList.length - 1;
|
|
42
42
|
return (h("div", { class: {
|
|
43
43
|
'relative timeline-item': true,
|
|
@@ -171,10 +171,10 @@ export class SulaToast {
|
|
|
171
171
|
}
|
|
172
172
|
render() {
|
|
173
173
|
const intent = this.intent;
|
|
174
|
-
return (h(Host, { key: '
|
|
174
|
+
return (h(Host, { key: '50370f6063bd87ddcbfefc45987c04eb602ab9ea', onMouseEnter: () => this.setHover(true), onMouseLeave: () => this.setHover(false), onFocusin: () => {
|
|
175
175
|
this.focused = true;
|
|
176
176
|
this.updateTimeout();
|
|
177
|
-
}, onFocusout: this.handleFocusOut }, h("div", { key: '
|
|
177
|
+
}, onFocusout: this.handleFocusOut }, h("div", { key: '4334d01b1188afc4663ebadc48a84dcb4d393c99', part: "container", class: `toast-surface relative isolate box-border flex items-center w-full p-16 gap-12 rounded-sm border bg-opacity-toast ${intent.border} ${this.animated ? 'toast-surface--animated' : ''}`, style: { '--toast-border-color': intent.borderColor } }, this.icon && (h("div", { key: 'b87bf80bd8932414ae5d709e2be0d5feaefd3a8e', part: "icon", "aria-hidden": "true", class: `flex shrink-0 items-center justify-center w-44 h-44 rounded-xxl ${intent.background}` }, h("sula-icon", { key: 'b6f18a65ceab18e373f1fda59142b0eab3c575cf', icon: this.icon, customClass: `text-2xl ${intent.color}`, class: "flex leading-none" }))), h("div", { key: 'bff56cc0964d97824221c48d91e876ac6110df47', part: "content", class: `flex min-w-0 flex-1 flex-col gap-8 ${this.closable ? 'pr-48' : ''}` }, h("div", { key: 'c6d1d46a7f255cfda53e4883c6164370bee8a534', class: "flex flex-col gap-4" }, this.toastTitle && (h("p", { key: '110d11cb987cca1f426adb43b411ad20ba95a21d', class: "toast-copy toast-title text-label-medium-bold text-text-primary", title: this.toastTitle }, this.toastTitle)), this.message && (h("p", { key: 'afd5df30339ed228d417cbee8b3795077d5c9b69', class: "toast-copy toast-message text-label-medium-regular text-text-secondary", title: this.message }, this.message))), this.actionText && (h("button", { key: '4a332f3df90a682960f7569e42d4be89d897b429', type: "button", class: `toast-copy toast-action self-start text-left text-label-medium-bold text-text-link underline rounded ${FOCUS_RING_CLASSES}`, title: this.actionText, onClick: () => this.toastAction.emit() }, this.actionText))), this.closable && (h("button", { key: '927e70871fc1c94404dddfb33095e7713870d18a', part: "close-button", type: "button", "aria-label": this.closeLabel, class: `absolute top-16 right-16 flex items-center justify-center w-24 h-24 rounded ${intent.color} ${FOCUS_RING_CLASSES}`, onClick: () => this.toastDismissRequested.emit({ reason: 'close' }) }, h("sula-icon", { key: '4e0a9b4ad00ab928eb470b09dec7dc0793706a81', "aria-hidden": "true", icon: "ph ph-x", customClass: "text-2xl", class: "flex leading-none" }))), h("svg", { key: '328c4ab25330dd17918b1cad64eb05ab1feb8546', class: "toast-border", "aria-hidden": "true", focusable: "false" }, h("rect", { key: '6896a2bb9f74b96faef4d0e12c01d537f61fc36c', class: "toast-border__path", pathLength: "1" }))), h("div", { key: '13b17899ac49ffae21d73155b691a13e3b5e2f5f', class: "sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.announcement === 'polite' ? this.announcedText : ''), h("div", { key: '589a7c8956b6952b55cc5383a74cf339db86ad19', class: "sr-only", role: "alert", "aria-live": "assertive", "aria-atomic": "true" }, this.announcement === 'assertive' ? this.announcedText : '')));
|
|
178
178
|
}
|
|
179
179
|
static get is() { return "sula-toast"; }
|
|
180
180
|
static get encapsulation() { return "shadow"; }
|
|
@@ -198,7 +198,7 @@ export class SulaToastStack {
|
|
|
198
198
|
render() {
|
|
199
199
|
const expanded = this.expanded;
|
|
200
200
|
const visibleItems = this.visibleItems;
|
|
201
|
-
return (h(Host, { key: '
|
|
201
|
+
return (h(Host, { key: 'c02d5830981122b0267e560f911ee98cdd726bd7' }, h("section", { key: 'cbfa6dcdd964fc1d42546a43e5980dc49e84b30f', ref: el => (this.region = el), role: "region", "aria-label": "Notifica\u00E7\u00F5es", tabIndex: 0, class: "toast-region w-full rounded-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-feedback-informational focus-visible:outline-offset-2", onMouseEnter: () => {
|
|
202
202
|
if (!this.noHover)
|
|
203
203
|
this.hovering = true;
|
|
204
204
|
}, onMouseLeave: () => (this.hovering = false), onPointerDown: () => {
|
|
@@ -207,7 +207,7 @@ export class SulaToastStack {
|
|
|
207
207
|
}, onKeyDown: () => {
|
|
208
208
|
this.keyboardInteraction = true;
|
|
209
209
|
this.stopRetainingPointerExpansion();
|
|
210
|
-
}, onFocusin: () => (this.focused = true), onFocusout: this.handleFocusOut }, h("div", { key: '
|
|
210
|
+
}, onFocusin: () => (this.focused = true), onFocusout: this.handleFocusOut }, h("div", { key: 'ee70118013b6e5e3313db30c27571bf3cc3009af', ref: el => (this.list = el), class: { 'toast-list relative flex flex-col gap-12': true, 'toast-list--collapsed': !expanded }, style: {
|
|
211
211
|
'--toast-layer-offset': `${Math.max(0, visibleItems.length - 1) * LAYER_OFFSET}px`,
|
|
212
212
|
} }, visibleItems.map((item, index) => {
|
|
213
213
|
var _a, _b, _c, _d;
|
|
@@ -221,9 +221,9 @@ export class SulaToastStack {
|
|
|
221
221
|
'--toast-depth': String(depth),
|
|
222
222
|
'--toast-width': `${100 - Math.min(depth, MAX_VISIBLE_LAYERS - 1) * LAYER_WIDTH_STEP}%`,
|
|
223
223
|
} }, h("sula-toast", { toastTitle: item.title, message: (_a = item.message) !== null && _a !== void 0 ? _a : '', type: item.type, icon: item.icon, actionText: (_b = item.actionText) !== null && _b !== void 0 ? _b : '', closable: (_c = item.closable) !== null && _c !== void 0 ? _c : true, duration: item.duration, closeLabel: (_d = item.closeLabel) !== null && _d !== void 0 ? _d : 'Fechar notificação', paused: covered || this.hovering || this.focused || this.retainingPointerExpansion, announcement: "off", animated: depth === 0, onToastDismissRequested: event => this.dismiss(event, item.id), onToastAction: event => this.action(event, item.id) })));
|
|
224
|
-
}))), h("div", { key: '
|
|
224
|
+
}))), h("div", { key: '37091de2d263942ad15dbdc52cd229b98a8f7c1c', class: "sr-only", role: "status", "aria-live": "polite", "aria-atomic": "false", "aria-relevant": "additions text" }, this.announcements
|
|
225
225
|
.filter(record => record.priority === 'polite')
|
|
226
|
-
.map(record => (h("p", { key: record.version }, record.text)))), h("div", { key: '
|
|
226
|
+
.map(record => (h("p", { key: record.version }, record.text)))), h("div", { key: 'a5bc35d0759a6a71cb9b7d9ad76cfd3ce9fee9b6', class: "sr-only", role: "alert", "aria-live": "assertive", "aria-atomic": "false", "aria-relevant": "additions text" }, this.announcements
|
|
227
227
|
.filter(record => record.priority === 'assertive')
|
|
228
228
|
.map(record => (h("p", { key: record.version }, record.text))))));
|
|
229
229
|
}
|
|
@@ -38,7 +38,7 @@ export class SulaToggle {
|
|
|
38
38
|
return `${base} bg-surface-on-body hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed`;
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '9932a2f2ed794a43616d04ceb53a10603588c285' }, h("button", { key: '3b32faebf54a67b32980cffa332d948b71305c3f', id: "favorite-button", class: this.getButtonClass(), disabled: this.buttonDisabled, onClick: this.handleClick, "aria-pressed": this.selected ? 'true' : 'false', "aria-label": this.selected ? 'Remover dos favoritos' : 'Adicionar aos favoritos' }, h("sula-icon", { key: 'c18f0ab25acf0b5a4e46e4220a6f3d23adc7bff1', icon: this.getIconName(), customClass: `text-2xl ${this.getIconColorClass()} ${!this.buttonDisabled && !this.selected ? 'active:text-feedback-error' : ''}`, class: "flex leading-6" }))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "sula-toggle"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -190,7 +190,7 @@ export class SulaTooltip {
|
|
|
190
190
|
const hostClass = isParentMode
|
|
191
191
|
? 'absolute inset-0 pointer-events-none overflow-visible'
|
|
192
192
|
: 'inline-block relative';
|
|
193
|
-
return (h(Host, { key: '
|
|
193
|
+
return (h(Host, { key: '88acf87157002b05c31b841ccffcd0e6a8eae66f', class: hostClass }, !isParentMode && (h("div", { key: 'cad7b81dae803913cfb6692a32c990860aee4107', class: this.getIconClasses(), onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, role: "button", "aria-label": "Tooltip trigger", ref: (el) => (this.triggerEl = el) }, h("sula-icon", { key: '5daf27b3c8d0bd818c6f7245c29d05125da98759', class: "flex leading-[0]", icon: this.icon, customClass: this.iconClass }))), !this.appendToBody && this.displayText && (h("div", { key: 'cd5a954318cfcfc39438a256ce4f2b0ed1c183a1', class: this.getHintClasses(), role: "tooltip", ref: (el) => (this.hintEl = el) }, this.displayText, h("div", { key: '26c294248c595dd90053bfa2d1ef5cbd8fb4f4cc', class: "tooltip-arrow", "data-popper-arrow": true, ref: (el) => (this.arrowEl = el) })))));
|
|
194
194
|
}
|
|
195
195
|
static get is() { return "sula-tooltip"; }
|
|
196
196
|
static get encapsulation() { return "shadow"; }
|
|
@@ -27109,7 +27109,7 @@ const SulaLoader = /*@__PURE__*/ proxyCustomElement(class SulaLoader extends H {
|
|
|
27109
27109
|
}
|
|
27110
27110
|
render() {
|
|
27111
27111
|
const { width, height } = this.getDimensions();
|
|
27112
|
-
return (h$1(Host, { key: '
|
|
27112
|
+
return (h$1(Host, { key: 'beccc30ff4b8f8eff308f964b8bb68218c7594d7' }, h$1("div", { key: 'c80294a47001a1693182e6ec413449d1a466f99a', ref: el => (this.containerRef = el), style: {
|
|
27113
27113
|
width: width,
|
|
27114
27114
|
height: height,
|
|
27115
27115
|
} })));
|
|
@@ -27136,6 +27136,6 @@ function defineCustomElement() {
|
|
|
27136
27136
|
defineCustomElement();
|
|
27137
27137
|
|
|
27138
27138
|
export { SulaLoader as S, SulaLoaderSize as a, defineCustomElement as d };
|
|
27139
|
-
//# sourceMappingURL=p-
|
|
27139
|
+
//# sourceMappingURL=p-BORy1230.js.map
|
|
27140
27140
|
|
|
27141
|
-
//# sourceMappingURL=p-
|
|
27141
|
+
//# sourceMappingURL=p-BORy1230.js.map
|