@sula-tech/webcomponents 0.20.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +7 -3
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{sula-avatar_31.cjs.entry.js → sula-avatar_32.cjs.entry.js} +411 -81
- package/dist/cjs/sula-avatar_32.cjs.entry.js.map +1 -0
- package/dist/cjs/{sula-menu.model-BDxbWyPG.js → sula-calendar.model-BI5cNrUo.js} +8 -2
- package/dist/cjs/sula-calendar.model-BI5cNrUo.js.map +1 -0
- 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/collection-manifest.json +1 -0
- package/dist/collection/components/sula-calendar/model/sula-calendar.model.js +6 -0
- package/dist/collection/components/sula-calendar/model/sula-calendar.model.js.map +1 -0
- package/dist/collection/components/sula-calendar/sula-calendar.css +1 -0
- package/dist/collection/components/sula-calendar/sula-calendar.js +747 -0
- package/dist/collection/components/sula-calendar/sula-calendar.js.map +1 -0
- package/dist/collection/components/sula-calendar/sula-calendar.stories.js +273 -0
- package/dist/collection/components/sula-calendar/sula-calendar.stories.js.map +1 -0
- package/dist/collection/components/sula-checkbox/sula-checkbox.js +3 -3
- package/dist/collection/components/sula-chip/sula-chip.js +3 -3
- 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.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 +27 -3
- package/dist/collection/components/sula-textfield/sula-textfield.js.map +1 -1
- package/dist/collection/components/sula-textfield/sula-textfield.stories.js +9 -0
- package/dist/collection/components/sula-textfield/sula-textfield.stories.js.map +1 -1
- 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/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-DmQoJS86.js → p-B_NGmHsm.js} +5 -5
- package/dist/components/{p-DmQoJS86.js.map → p-B_NGmHsm.js.map} +1 -1
- package/dist/components/{p-D0ZAC0yK.js → p-BjgwRn5o.js} +7 -7
- package/dist/components/{p-D0ZAC0yK.js.map → p-BjgwRn5o.js.map} +1 -1
- package/dist/components/{p-DGfvh6dZ.js → p-BlH9b-mx.js} +4 -4
- package/dist/components/{p-DGfvh6dZ.js.map → p-BlH9b-mx.js.map} +1 -1
- package/dist/components/p-Cp_4qTxj.js +10 -0
- package/dist/components/p-Cp_4qTxj.js.map +1 -0
- package/dist/components/{p-DqRqPukj.js → p-DaG0HavP.js} +4 -4
- package/dist/components/{p-DqRqPukj.js.map → p-DaG0HavP.js.map} +1 -1
- package/dist/components/{p-b7t6bSNa.js → p-DtVQ10Ux.js} +4 -4
- package/dist/components/{p-b7t6bSNa.js.map → p-DtVQ10Ux.js.map} +1 -1
- package/dist/components/{p-CJ2i2jVV.js → p-VozP-C7p.js} +5 -5
- package/dist/components/{p-CJ2i2jVV.js.map → p-VozP-C7p.js.map} +1 -1
- package/dist/components/{p-DmCNhtp_.js → p-rCU8ay8s.js} +3 -3
- package/dist/components/{p-DmCNhtp_.js.map → p-rCU8ay8s.js.map} +1 -1
- package/dist/components/p-rm8YKiRh.js +555 -0
- package/dist/components/p-rm8YKiRh.js.map +1 -0
- 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.d.ts +11 -0
- package/dist/components/sula-calendar.js +385 -0
- package/dist/components/sula-calendar.js.map +1 -0
- package/dist/components/sula-checkbox.js +4 -4
- package/dist/components/sula-chip.js +5 -5
- 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 -545
- package/dist/components/sula-textfield.js.map +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/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{sula-avatar_31.entry.js → sula-avatar_32.entry.js} +405 -76
- package/dist/esm/sula-avatar_32.entry.js.map +1 -0
- package/dist/esm/{sula-menu.model-Cs9RR1ZV.js → sula-calendar.model-BbsLJDfp.js} +9 -3
- package/dist/esm/sula-calendar.model-BbsLJDfp.js.map +1 -0
- 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/model/sula-calendar.model.d.ts +28 -0
- package/dist/types/components/sula-calendar/sula-calendar.d.ts +128 -0
- package/dist/types/components/sula-calendar/sula-calendar.stories.d.ts +159 -0
- package/dist/types/components/sula-textfield/sula-textfield.d.ts +4 -0
- package/dist/types/components/sula-textfield/sula-textfield.stories.d.ts +8 -0
- package/dist/types/components.d.ts +199 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/webcomponents/index.esm.js +1 -1
- package/dist/webcomponents/{p-f4ef50ea.entry.js → p-0004eff8.entry.js} +790 -366
- package/dist/webcomponents/p-0004eff8.entry.js.map +1 -0
- package/dist/webcomponents/{p-170854a5.entry.js → p-9a8a1133.entry.js} +16 -16
- package/dist/webcomponents/{p-Cs9RR1ZV.js → p-BbsLJDfp.js} +11 -4
- package/dist/webcomponents/p-BbsLJDfp.js.map +1 -0
- package/dist/webcomponents/{p-c58125e1.entry.js → p-aafb83bd.entry.js} +6 -6
- package/dist/webcomponents/webcomponents.esm.js +46 -23
- package/package.json +1 -1
- package/dist/cjs/sula-avatar_31.cjs.entry.js.map +0 -1
- package/dist/cjs/sula-menu.model-BDxbWyPG.js.map +0 -1
- package/dist/esm/sula-avatar_31.entry.js.map +0 -1
- package/dist/esm/sula-menu.model-Cs9RR1ZV.js.map +0 -1
- package/dist/webcomponents/p-Cs9RR1ZV.js.map +0 -1
- package/dist/webcomponents/p-f4ef50ea.entry.js.map +0 -1
- /package/dist/webcomponents/{p-170854a5.entry.js.map → p-9a8a1133.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-c58125e1.entry.js.map → p-aafb83bd.entry.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"sula-calendar.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,6teAA6te;;ACIrve,MAAM,YAAY,GAAG,6BAA6B;AAClD,MAAM,YAAY,GAAG,CAAC;AACtB,MAAM,eAAe,GAAG,OAAO;MAOlBA,cAAY,iBAAAC,kBAAA,CAAA,MAAA,YAAA,SAAAC,CAAA,CAAA;AALzB,IAAA,WAAA,GAAA;;;;;;;;;;AAWE;;AAEG;AACsB,QAAA,IAAK,CAAA,KAAA,GAAW,EAAE;AAO3C;;AAEG;AACK,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;AAOjC;;AAEG;AACK,QAAA,IAAA,CAAA,MAAM,GAAuB,kBAAkB,CAAC,OAAO;AAE/D;;AAEG;AACK,QAAA,IAAM,CAAA,MAAA,GAAW,OAAO;AAYhC;;AAEG;AACK,QAAA,IAAK,CAAA,KAAA,GAAY,KAAK;AAE9B;;AAEG;AACK,QAAA,IAAW,CAAA,WAAA,GAAY,IAAI;AAEnC;;AAEG;AACK,QAAA,IAAM,CAAA,MAAA,GAAY,KAAK;AAE/B;;A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CACF,CACF;;IAIV,MAAM,GAAA;AACJ,QAAA,QACE,CAAC,CAAA,IAAI,EAAC,EAAA,GAAA,EAAA,0CAAA,EAAA,GAAG,EAAE,IAAI,KAAK,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,EAAA,EACnC,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,iBAAiB,EAAA,EACzB,CAAC,IAAI,CAAC,MAAM,KACX,4DAAK,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAAE,SAAS,EAAE,IAAI,CAAC,kBAAkB,EAAA,EACrE,CAAA,CAAA,gBAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,MAAM,EAAE,IAAI,CAAC,kBAAkB,EAAE,EACjC,IAAI,EAAC,sBAAsB,EAC3B,WAAW,EAAE,IAAI,CAAC,KAAK,GAAG,yBAAyB,GAAG,YAAY,EAClE,QAAQ,EAAE,CAAC,IAAI,CAAC,WAAW,EAC3B,cAAc,EAAE,IAAI,CAAC,kBAAkB,EAAA,CACvB,CACd,CACP,EAEA,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC,WAAW,EAAE,CACrD,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["SulaCalendar","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/sula-calendar/sula-calendar.scss?tag=sula-calendar&encapsulation=shadow","src/components/sula-calendar/sula-calendar.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.calendar-panel {\n box-shadow: 0px 4px 19.7px 0px var(--color-box-shadow-shadow-color-2);\n}\n","import { Component, Event, EventEmitter, Host, Listen, Prop, State, Watch, h } from '@stencil/core';\nimport { SulaTextfieldStatus } from '../sula-textfield/model/sula-textfield.model';\nimport { SulaCalendarDay, SulaCalendarMonthChange, SulaCalendarRange, SulaCalendarStatus, SulaCalendarWeekday } from './model/sula-calendar.model';\n\nconst DATE_PATTERN = /^(\\d{2})\\/(\\d{2})\\/(\\d{4})$/;\nconst DAYS_IN_WEEK = 7;\nconst FALLBACK_LOCALE = 'pt-BR';\n\n@Component({\n tag: 'sula-calendar',\n styleUrl: 'sula-calendar.scss',\n shadow: true,\n})\nexport class SulaCalendar {\n /**\n * The calendar field label\n */\n @Prop() label: string;\n\n /**\n * Selected date in the `DD/MM/YYYY` format. In range mode the format is `DD/MM/YYYY - DD/MM/YYYY`\n */\n @Prop({ mutable: true }) value: string = '';\n\n /**\n * The calendar field placeholder\n */\n @Prop() placeholder?: string;\n\n /**\n * The calendar is disabled\n */\n @Prop() disabled: boolean = false;\n\n /**\n * The help text displayed below the field\n */\n @Prop() helpText?: string;\n\n /**\n * The calendar field status\n */\n @Prop() status: SulaCalendarStatus = SulaCalendarStatus.Default;\n\n /**\n * Locale used to format month and weekday names\n */\n @Prop() locale: string = 'pt-BR';\n\n /**\n * Earliest selectable date in the `DD/MM/YYYY` format\n */\n @Prop() minDate?: string;\n\n /**\n * Latest selectable date in the `DD/MM/YYYY` format\n */\n @Prop() maxDate?: string;\n\n /**\n * Enables selecting a date range (start and end dates) instead of a single date\n */\n @Prop() range: boolean = false;\n\n /**\n * Allows typing the date directly in the field. When false, the date can only be picked in the calendar\n */\n @Prop() allowTyping: boolean = true;\n\n /**\n * Renders only the calendar panel, without the input field\n */\n @Prop() inline: boolean = false;\n\n /**\n * First day of the week, where 0 is Sunday and 6 is Saturday\n */\n @Prop() firstDayOfWeek: number = 0;\n\n /**\n * Closes the calendar panel after a date is selected\n */\n @Prop() closeOnSelect: boolean = true;\n\n /**\n * Event emitted when a date is selected, with the date in the `DD/MM/YYYY` format\n */\n @Event() dateSelected: EventEmitter<string>;\n\n /**\n * Event emitted in range mode when both the start and end dates are selected, either by picking or by typing. In range mode `valueChanged` is not emitted\n */\n @Event() rangeSelected: EventEmitter<SulaCalendarRange>;\n\n /**\n * Event emitted when the value changes, either by typing or by selecting a date. Not emitted in range mode, use `rangeSelected` instead\n */\n @Event() valueChanged: EventEmitter<string>;\n\n /**\n * Event emitted when the displayed month changes\n */\n @Event() monthChanged: EventEmitter<SulaCalendarMonthChange>;\n\n /**\n * Event emitted when the calendar panel is opened\n */\n @Event() calendarOpened: EventEmitter<void>;\n\n /**\n * Event emitted when the calendar panel is closed\n */\n @Event() calendarClosed: EventEmitter<void>;\n\n @State() showCalendar: boolean = false;\n\n @State() openUpward: boolean = false;\n\n @State() viewMonth: number;\n\n @State() viewYear: number;\n\n @State() hoverDate: Date | null = null;\n\n node?: HTMLElement;\n\n panelNode?: HTMLElement;\n\n @Watch('value')\n handleValueChange() {\n this.hoverDate = null;\n\n // keeps the view on the current month while an incomplete date is being typed\n if (this.selectedDate) {\n this.syncViewWithValue();\n }\n }\n\n @Listen('click', { target: 'document' })\n handleDocumentClick(event: Event) {\n if (!this.showCalendar || !this.node) return;\n\n if (!event.composedPath().includes(this.node)) {\n this.close();\n }\n }\n\n @Listen('keydown', { target: 'document' })\n handleDocumentKeydown(event: KeyboardEvent) {\n if (this.showCalendar && event.key === 'Escape') {\n this.close();\n }\n }\n\n componentWillLoad() {\n this.syncViewWithValue();\n }\n\n componentDidRender() {\n if (this.showCalendar) {\n this.calculatePanelPosition();\n }\n }\n\n get selectedDate(): Date | null {\n return this.getRange().start;\n }\n\n private getRange(): { start: Date | null; end: Date | null } {\n if (!this.range) {\n return { start: this.parseDate(this.value), end: null };\n }\n\n const [startText, endText] = (this.value ?? '').split('-');\n\n return { start: this.parseDate(startText), end: this.parseDate(endText) };\n }\n\n private syncViewWithValue() {\n const reference = this.selectedDate ?? new Date();\n\n this.viewMonth = reference.getMonth();\n this.viewYear = reference.getFullYear();\n }\n\n private parseDate(value?: string): Date | null {\n const match = DATE_PATTERN.exec((value ?? '').trim());\n if (!match) return null;\n\n const day = Number(match[1]);\n const month = Number(match[2]);\n const year = Number(match[3]);\n const date = new Date(year, month - 1, day, 0, 0, 0, 0);\n\n const isValid = date.getDate() === day && date.getMonth() === month - 1 && date.getFullYear() === year;\n\n return isValid ? date : null;\n }\n\n private formatDate(date: Date): string {\n const day = `${date.getDate()}`.padStart(2, '0');\n const month = `${date.getMonth() + 1}`.padStart(2, '0');\n\n return `${day}/${month}/${date.getFullYear()}`;\n }\n\n private capitalize(text: string): string {\n return text.charAt(0).toUpperCase() + text.slice(1);\n }\n\n private isSameDay(first: Date, second: Date): boolean {\n return first.getDate() === second.getDate() && first.getMonth() === second.getMonth() && first.getFullYear() === second.getFullYear();\n }\n\n private isOutOfRange(date: Date, min: Date | null, max: Date | null): boolean {\n return (!!min && date.getTime() < min.getTime()) || (!!max && date.getTime() > max.getTime());\n }\n\n private get weekStart(): number {\n const value = Math.trunc(Number(this.firstDayOfWeek));\n\n return Number.isFinite(value) ? ((value % DAYS_IN_WEEK) + DAYS_IN_WEEK) % DAYS_IN_WEEK : 0;\n }\n\n // an invalid `locale` would make Intl throw and break the whole render\n private createFormatter(options: Intl.DateTimeFormatOptions): Intl.DateTimeFormat {\n try {\n return new Intl.DateTimeFormat(this.locale, options);\n } catch {\n return new Intl.DateTimeFormat(FALLBACK_LOCALE, options);\n }\n }\n\n getMonthLabel(): string {\n const date = new Date(this.viewYear, this.viewMonth, 1);\n const month = this.createFormatter({ month: 'short' }).format(date).replace(/\\./g, '');\n\n return `${this.capitalize(month)} ${this.viewYear}`;\n }\n\n getWeekdays(): SulaCalendarWeekday[] {\n const shortFormatter = this.createFormatter({ weekday: 'short' });\n const longFormatter = this.createFormatter({ weekday: 'long' });\n\n return Array.from({ length: DAYS_IN_WEEK }, (_, index) => {\n // 2024-01-07 is a Sunday, used as a stable reference to build the weekday sequence\n const date = new Date(2024, 0, 7 + ((index + this.weekStart) % DAYS_IN_WEEK));\n\n return {\n short: this.capitalize(shortFormatter.format(date).replace(/\\./g, '')),\n long: this.capitalize(longFormatter.format(date)),\n };\n });\n }\n\n getWeeks(): SulaCalendarDay[][] {\n const today = new Date();\n const { start, end } = this.getRange();\n const previewEnd = this.range && !!start && !end ? this.hoverDate : null;\n const rangeEnd = end ?? previewEnd;\n const hasRange = this.range && !!start && !!rangeEnd;\n const from = hasRange && start.getTime() > rangeEnd.getTime() ? rangeEnd : start;\n const to = hasRange && start.getTime() > rangeEnd.getTime() ? start : rangeEnd;\n const firstOfMonth = new Date(this.viewYear, this.viewMonth, 1);\n const min = this.parseDate(this.minDate);\n const max = this.parseDate(this.maxDate);\n const offset = (firstOfMonth.getDay() - this.weekStart + DAYS_IN_WEEK) % DAYS_IN_WEEK;\n const daysInMonth = new Date(this.viewYear, this.viewMonth + 1, 0).getDate();\n const totalCells = Math.ceil((offset + daysInMonth) / DAYS_IN_WEEK) * DAYS_IN_WEEK;\n const weeks: SulaCalendarDay[][] = [];\n\n for (let cell = 0; cell < totalCells; cell++) {\n const date = new Date(this.viewYear, this.viewMonth, cell - offset + 1);\n\n const day: SulaCalendarDay = {\n date,\n day: date.getDate(),\n isCurrentMonth: date.getMonth() === this.viewMonth && date.getFullYear() === this.viewYear,\n isSelected: (!!start && this.isSameDay(date, start)) || (this.range && !!end && this.isSameDay(date, end)),\n isRangeStart: hasRange && this.isSameDay(date, from),\n isRangeEnd: hasRange && this.isSameDay(date, to),\n isInRange: hasRange && date.getTime() > from.getTime() && date.getTime() < to.getTime(),\n isRangePreview: !!previewEnd && this.isSameDay(date, previewEnd) && !this.isSameDay(date, start),\n isToday: this.isSameDay(date, today),\n isDisabled: this.isOutOfRange(date, min, max),\n };\n\n if (cell % DAYS_IN_WEEK === 0) weeks.push([]);\n weeks[weeks.length - 1].push(day);\n }\n\n return weeks;\n }\n\n calculatePanelPosition() {\n if (!this.node || this.inline) return;\n\n const rect = this.node.getBoundingClientRect();\n const panelHeight = this.panelNode?.offsetHeight ?? 0;\n const spaceBelow = window.innerHeight - rect.bottom;\n const spaceAbove = rect.top;\n\n this.openUpward = spaceBelow < panelHeight && spaceAbove > spaceBelow;\n }\n\n open() {\n if (this.disabled || this.showCalendar) return;\n\n this.showCalendar = true;\n this.calendarOpened.emit();\n }\n\n close() {\n if (!this.showCalendar) return;\n\n this.showCalendar = false;\n this.hoverDate = null;\n this.calendarClosed.emit();\n }\n\n handleFieldClick = () => {\n this.open();\n };\n\n handleFieldKeydown = (event: KeyboardEvent) => {\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n this.open();\n }\n };\n\n handleInputChanged = (event: CustomEvent<string>) => {\n event.stopPropagation();\n\n const typedValue = event.detail ?? '';\n\n this.value = typedValue;\n\n if (this.range) {\n const { start, end } = this.getRange();\n\n if (start && end && start.getTime() <= end.getTime()) {\n this.rangeSelected.emit({ start: this.formatDate(start), end: this.formatDate(end) });\n }\n\n return;\n }\n\n this.valueChanged.emit(typedValue);\n };\n\n handlePreviousMonth = (event: MouseEvent) => {\n event.stopPropagation();\n this.changeMonth(-1);\n };\n\n handleNextMonth = (event: MouseEvent) => {\n event.stopPropagation();\n this.changeMonth(1);\n };\n\n changeMonth(step: number) {\n const date = new Date(this.viewYear, this.viewMonth + step, 1);\n\n this.viewMonth = date.getMonth();\n this.viewYear = date.getFullYear();\n\n this.monthChanged.emit({ month: this.viewMonth, year: this.viewYear });\n }\n\n handleSelectDay = (event: MouseEvent, day: SulaCalendarDay) => {\n event.stopPropagation();\n\n if (day.isDisabled || this.disabled) return;\n\n if (this.range) {\n this.selectRangeDay(day.date);\n return;\n }\n\n const formatted = this.formatDate(day.date);\n\n this.value = formatted;\n this.dateSelected.emit(formatted);\n this.valueChanged.emit(formatted);\n\n if (this.closeOnSelect && !this.inline) {\n this.close();\n }\n };\n\n selectRangeDay(date: Date) {\n const { start, end } = this.getRange();\n\n // first click, or a click after a complete range, starts a new range\n if (!start || end) {\n this.value = this.formatDate(date);\n return;\n }\n\n const [from, to] = date.getTime() < start.getTime() ? [date, start] : [start, date];\n const range: SulaCalendarRange = { start: this.formatDate(from), end: this.formatDate(to) };\n\n this.value = `${range.start} - ${range.end}`;\n this.rangeSelected.emit(range);\n\n if (this.closeOnSelect && !this.inline) {\n this.close();\n }\n }\n\n handleDayHover(day: SulaCalendarDay) {\n if (!this.range || day.isDisabled) return;\n\n this.hoverDate = day.date;\n }\n\n handleGridLeave = () => {\n this.hoverDate = null;\n };\n\n getTextfieldStatus(): SulaTextfieldStatus {\n return this.status === SulaCalendarStatus.Error ? SulaTextfieldStatus.Error : SulaTextfieldStatus.Default;\n }\n\n renderHeader() {\n return (\n <div class=\"flex h-28 w-full flex-row items-center justify-between gap-12 px-4\">\n <button\n type=\"button\"\n class=\"flex h-28 w-28 items-center justify-center rounded-xs hover:bg-states-empty-bg-hover\"\n aria-label=\"Mês anterior\"\n onClick={this.handlePreviousMonth}\n >\n <sula-icon icon=\"ph ph-caret-left\" customClass=\"text-base text-text-secondary\"></sula-icon>\n </button>\n\n <span class=\"text-label-medium-regular text-text-primary\" aria-live=\"polite\">\n {this.getMonthLabel()}\n </span>\n\n <button\n type=\"button\"\n class=\"flex h-28 w-28 items-center justify-center rounded-xs hover:bg-states-empty-bg-hover\"\n aria-label=\"Próximo mês\"\n onClick={this.handleNextMonth}\n >\n <sula-icon icon=\"ph ph-caret-right\" customClass=\"text-base text-text-secondary\"></sula-icon>\n </button>\n </div>\n );\n }\n\n renderDay(day: SulaCalendarDay) {\n return (\n <div\n role=\"gridcell\"\n aria-selected={day.isSelected ? 'true' : 'false'}\n aria-disabled={day.isDisabled ? 'true' : null}\n aria-current={day.isToday ? 'date' : null}\n class=\"relative flex w-full items-center justify-center\"\n onMouseEnter={() => this.handleDayHover(day)}\n >\n {(day.isInRange || day.isRangeStart !== day.isRangeEnd) && (\n <span\n data-range-background\n aria-hidden=\"true\"\n class={{\n 'absolute inset-y-0 bg-surface-on-body-brand': true,\n 'inset-x-0': day.isInRange,\n 'right-0 w-1/2': day.isRangeStart && !day.isRangeEnd,\n 'left-0 w-1/2': day.isRangeEnd && !day.isRangeStart,\n }}\n ></span>\n )}\n <button\n type=\"button\"\n disabled={day.isDisabled}\n aria-label={this.formatDate(day.date)}\n onClick={(event: MouseEvent) => this.handleSelectDay(event, day)}\n class={{\n 'relative flex h-36 w-36 items-center justify-center rounded-xxl text-label-small-regular transition-colors': true,\n 'bg-brand-primary text-neutral-neutral-1': day.isSelected,\n 'border border-brand-primary text-text-primary': day.isRangePreview && !day.isSelected,\n 'text-text-primary hover:bg-states-empty-bg-hover': !day.isSelected && day.isCurrentMonth && !day.isDisabled,\n 'text-text-secondary opacity-50 hover:bg-states-empty-bg-hover': !day.isSelected && !day.isCurrentMonth && !day.isDisabled,\n 'cursor-not-allowed text-text-disabled line-through': day.isDisabled,\n }}\n >\n {day.day}\n </button>\n </div>\n );\n }\n\n renderPanel() {\n return (\n <div\n ref={node => (this.panelNode = node)}\n role={this.inline ? 'group' : 'dialog'}\n aria-label=\"Calendário\"\n class={{\n 'calendar-panel flex w-full flex-col items-center rounded-lg border border-line-general bg-surface-body p-24': true,\n 'absolute left-0 z-50': !this.inline,\n 'bottom-full mb-8': !this.inline && this.openUpward,\n 'top-full mt-8': !this.inline && !this.openUpward,\n }}\n >\n <div class=\"flex w-full flex-col items-center gap-24\">\n {this.renderHeader()}\n\n <div class=\"flex w-full flex-col\" role=\"grid\">\n <div class=\"grid grid-cols-7\" role=\"row\">\n {this.getWeekdays().map(weekday => (\n <div role=\"columnheader\" title={weekday.long} class=\"flex h-22 w-full items-center justify-center text-label-small-regular text-text-secondary\">\n {weekday.short}\n </div>\n ))}\n </div>\n\n <div role=\"rowgroup\" class=\"grid gap-y-8 pt-8\" onMouseLeave={this.handleGridLeave}>\n {this.getWeeks().map(week => (\n <div class=\"grid grid-cols-7\" role=\"row\">\n {week.map(day => this.renderDay(day))}\n </div>\n ))}\n </div>\n </div>\n </div>\n </div>\n );\n }\n\n render() {\n return (\n <Host ref={node => (this.node = node)}>\n <div class=\"relative w-full\">\n {!this.inline && (\n <div onClick={this.handleFieldClick} onKeyDown={this.handleFieldKeydown}>\n <sula-textfield\n label={this.label}\n value={this.value}\n placeholder={this.placeholder}\n disabled={this.disabled}\n helpText={this.helpText}\n status={this.getTextfieldStatus()}\n icon=\"ph ph-calendar-blank\"\n maskPattern={this.range ? '99/99/9999 - 99/99/9999' : '99/99/9999'}\n readOnly={!this.allowTyping}\n onValueChanged={this.handleInputChanged}\n ></sula-textfield>\n </div>\n )}\n\n {(this.inline || this.showCalendar) && this.renderPanel()}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-DYfmicjp.js';
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-DaG0HavP.js';
|
|
3
3
|
|
|
4
4
|
var SulaCheckboxType;
|
|
5
5
|
(function (SulaCheckboxType) {
|
|
@@ -56,20 +56,20 @@ const SulaCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class SulaCheckbox exten
|
|
|
56
56
|
return 'text-negative-negative-1';
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '4f77b00d6b899f3522058e5a12e75dc8f78e4b88' }, h("div", { key: '3317fdf2630890849080592647f7ccdb1cc61205', class: {
|
|
60
60
|
'outline-none': true,
|
|
61
61
|
'flex items-center space-x-12': !!this.label && this.type === SulaCheckboxType.Default,
|
|
62
62
|
'flex items-center justify-between bg-surface-on-body rounded-md w-[280px] min-h-[85px] px-24 py-16': this.type === SulaCheckboxType.List,
|
|
63
63
|
'hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed cursor-pointer': this.type === SulaCheckboxType.List && !this.disabled,
|
|
64
64
|
'container-focus': this.isFocus && this.type === SulaCheckboxType.List,
|
|
65
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.toggle, tabIndex: 0 }, this.type === SulaCheckboxType.List && (h("div", { key: '
|
|
65
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.toggle, tabIndex: 0 }, this.type === SulaCheckboxType.List && (h("div", { key: '55cea9b5cda3730157689fdd76436522e21aabad', class: "flex flex-col flex-1 mr-16 overflow-hidden" }, !!this.label && h("label", { key: 'f28fe3e431513a849c0c7681ea4276032cf9064d', class: "text-text-primary font-bold text-base cursor-pointer break-words" }, this.label), !!this.subTitle && h("span", { key: '7cd21c254c9a980406293d6aa25254d6970a4956', class: "text-text-secondary text-base break-words" }, this.subTitle))), h("div", { key: '1ea3dff9029404e1048b5b31bcf3c825f8ccb751', tabIndex: 0, class: {
|
|
66
66
|
'flex justify-center items-center rounded-xs w-[27px] h-[27px] border outline-none flex-shrink-0': true,
|
|
67
67
|
'checkbox-focus': this.isFocus && this.type === SulaCheckboxType.Default,
|
|
68
68
|
'cursor-pointer active:bg-states-empty-bg-pressed': !this.disabled,
|
|
69
69
|
'bg-states-bg-disabled border-states-bg-disabled': this.disabled,
|
|
70
70
|
'bg-brand-primary border-brand-primary': this.checked,
|
|
71
71
|
'bg-surface-body border-line-input': !this.checked,
|
|
72
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, this.checked && (h("div", { key: '
|
|
72
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, this.checked && (h("div", { key: 'c1d3dbeeea39e1b02b45c0f1865d8ade0f3828f3', class: "flex justify-center items-center" }, h("sula-icon", { key: 'd9715bf7c4626e002ea3cb605ba1d3350aec74bc', icon: "ph-bold ph-check", customClass: `${this.getIconColor()} text-xl` })))), !!this.label && this.type === SulaCheckboxType.Default && h("label", { key: '8b2ddff7928b3b2b334dd12408db9ca26edbd9ea', class: "text-text-secondary text-base cursor-pointer break-words" }, this.label))));
|
|
73
73
|
}
|
|
74
74
|
static get style() { return sulaCheckboxCss; }
|
|
75
75
|
}, [1, "sula-checkbox", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-DYfmicjp.js';
|
|
2
|
-
import { d as defineCustomElement$3 } from './p-
|
|
3
|
-
import { d as defineCustomElement$2 } from './p-
|
|
2
|
+
import { d as defineCustomElement$3 } from './p-DaG0HavP.js';
|
|
3
|
+
import { d as defineCustomElement$2 } from './p-BlH9b-mx.js';
|
|
4
4
|
|
|
5
5
|
var SulaChipAppearance;
|
|
6
6
|
(function (SulaChipAppearance) {
|
|
@@ -82,7 +82,7 @@ const SulaChip$1 = /*@__PURE__*/ proxyCustomElement(class SulaChip extends H {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
render() {
|
|
85
|
-
return (h(Host, { key: '
|
|
85
|
+
return (h(Host, { key: '6365fc393123b069d9ebbc5d172286f2ba71ec8b', ref: node => (this.node = node) }, h("div", { key: '5f76bd23bd40fff870948219f9362e308d64e6a3', class: "w-fit relative" }, h("div", { key: '36dce9482f272108bf79e19e6ff5739c2ffb4ad8', class: {
|
|
86
86
|
'flex justify-center items-center px-16 py-2 rounded-xxl min-h-40 w-fit outline-none': true,
|
|
87
87
|
'bg-surface-on-body hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed': this.appearance === SulaChipAppearance.Default && !this.disabled && !this.selected,
|
|
88
88
|
'bg-brand-primary': this.selected && !this.disabled,
|
|
@@ -91,13 +91,13 @@ const SulaChip$1 = /*@__PURE__*/ proxyCustomElement(class SulaChip extends H {
|
|
|
91
91
|
'cursor-pointer': !this.disabled,
|
|
92
92
|
'border border-line-input chip-opened': !this.disabled && this.showItems,
|
|
93
93
|
'chip-focus': this.isFocused,
|
|
94
|
-
}, tabIndex: 0, onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("span", { key: '
|
|
94
|
+
}, tabIndex: 0, onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("span", { key: '8b9fdccc67e4dbbb24a2a3e01851909bc3f62fc7', class: {
|
|
95
95
|
'text-base font-bold leading-4': true,
|
|
96
96
|
'text-text-primary': this.appearance === SulaChipAppearance.Default && !this.disabled && !this.selected,
|
|
97
97
|
'text-negative-negative-2': this.appearance === SulaChipAppearance.Negative && !this.disabled && !this.selected,
|
|
98
98
|
'text-negative-negative-1': this.selected && !this.disabled,
|
|
99
99
|
'text-text-disabled': this.disabled,
|
|
100
|
-
} }, this.text), this.items.length > 0 && (h("div", { key: '
|
|
100
|
+
} }, this.text), this.items.length > 0 && (h("div", { key: 'e299a436e91fa8f824d82c0f3a4b4c4a4ba4c1ac', class: "flex items-center justify-center ml-8 leading-4" }, h("sula-icon", { key: 'c423065928a17bba7dcfc87e0007ee063e58f229', icon: `ph-bold ph-caret-${this.showItems ? 'up' : 'down'}`, customClass: this.getIconClass() })))), this.showItems && (h("div", { key: '9fc25a58fc1e524bf52801c79b697b0c2b04c33f', class: "absolute z-50 top-40 left-0" }, h("sula-menu-select-list", { key: '48ae0ea8db6a651bb552b940d92212726cd51244', items: this.items, onItemSelected: this.handleItemSelected }))))));
|
|
101
101
|
}
|
|
102
102
|
static get style() { return sulaChipCss; }
|
|
103
103
|
}, [1, "sula-chip", {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-DYfmicjp.js';
|
|
2
|
-
import { d as defineCustomElement$5 } from './p-
|
|
3
|
-
import { d as defineCustomElement$4 } from './p-
|
|
4
|
-
import { d as defineCustomElement$3 } from './p-
|
|
5
|
-
import { d as defineCustomElement$2 } from './p-
|
|
2
|
+
import { d as defineCustomElement$5 } from './p-BjgwRn5o.js';
|
|
3
|
+
import { d as defineCustomElement$4 } from './p-DaG0HavP.js';
|
|
4
|
+
import { d as defineCustomElement$3 } from './p-BlH9b-mx.js';
|
|
5
|
+
import { d as defineCustomElement$2 } from './p-VozP-C7p.js';
|
|
6
6
|
|
|
7
7
|
const icons = [
|
|
8
8
|
{
|
|
@@ -48501,13 +48501,13 @@ const SulaIconPicker$1 = /*@__PURE__*/ proxyCustomElement(class SulaIconPicker e
|
|
|
48501
48501
|
? { id: this.selectedIcon.className, title: this.selectedIcon.name, icon: this.selectedIcon.className }
|
|
48502
48502
|
: undefined;
|
|
48503
48503
|
const dropdownLabel = this.required && this.label ? `${this.label} *` : this.label;
|
|
48504
|
-
return (h(Host, { key: '
|
|
48504
|
+
return (h(Host, { key: '5a2c244adc8dc6fd220998c9f65a5cf42259c75f' }, h("div", { key: 'fd96ca2b1a0bc5c63051a23034ae4e190e0d2c24', class: "relative" }, h("sula-dropdown", { key: '58f30a933398eb4ee07c1362d7d8593f6b22e58c', ref: el => (this.dropdownEl = el), label: dropdownLabel, disabled: this.disabled, hasError: !!this.error, customContent: true, contentMaxHeight: this.menuMaxHeight, value: dropdownValue, onDropdownClicked: this.handleDropdownClicked, onDropdownFocused: this.handleDropdownFocused, onDropdownFocusedOut: this.handleDropdownFocusedOut }, this.showSearch && (h("div", { key: '057722c36ff1e396d82a09fd57a48363d9bb9b09', class: "border-b border-line-general bg-surface-body p-16", onClick: this.handleContentClick }, h("sula-search-bar", { key: '10bc23d96dad42d8efe09d29e5fc806dca4e6648', value: this.searchTerm, placeholder: this.searchPlaceholder, onValueChanged: this.handleSearchChange }))), h("div", { key: 'e32bf78b5d7812f4342d55eee8a449bf92f4df5f', class: "overflow-y-auto", role: "listbox", onClick: this.handleContentClick }, filteredIcons.length > 0 ? (h("div", { class: "grid gap-12 p-16", style: { gridTemplateColumns: 'repeat(auto-fill, minmax(56px, 56px))' } }, filteredIcons.map(icon => {
|
|
48505
48505
|
var _a, _b, _c;
|
|
48506
48506
|
return (h("button", { key: icon.name, type: "button", onClick: () => this.handleSelectIcon(icon), class: {
|
|
48507
48507
|
'flex h-56 w-56 items-center justify-center rounded-sm border-2 border-line-general transition-all hover:border-brand-primary hover:bg-surface-on-body-brand': true,
|
|
48508
48508
|
'border-brand-primary bg-surface-on-body-brand': ((_a = this.selectedIcon) === null || _a === void 0 ? void 0 : _a.name) === icon.name,
|
|
48509
48509
|
}, "aria-label": `Selecionar ícone ${icon.name}`, "aria-selected": ((_b = this.selectedIcon) === null || _b === void 0 ? void 0 : _b.name) === icon.name ? 'true' : 'false', role: "option" }, h("sula-icon", { icon: icon.className, customClass: `text-2xl ${((_c = this.selectedIcon) === null || _c === void 0 ? void 0 : _c.name) === icon.name ? 'text-brand-primary' : 'text-icon-primary'}` })));
|
|
48510
|
-
}))) : (h("div", { class: "p-32 text-center" }, h("span", { class: "text-base-paragraph-medium-regular text-text-tertiary" }, "Nenhum \u00EDcone encontrado"))))), this.error && (h("span", { key: '
|
|
48510
|
+
}))) : (h("div", { class: "p-32 text-center" }, h("span", { class: "text-base-paragraph-medium-regular text-text-tertiary" }, "Nenhum \u00EDcone encontrado"))))), this.error && (h("span", { key: 'f7dc8d804a1b660b24c8c1c8b47f4b5511cfa319', class: "text-base-label-small-regular text-feedback-error mt-8 block", role: "alert" }, this.error)))));
|
|
48511
48511
|
}
|
|
48512
48512
|
static get watchers() { return {
|
|
48513
48513
|
"value": ["handleValueChange"],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SulaMenuSelectList$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { S as SulaMenuSelectList$1, d as defineCustomElement$1 } from './p-BlH9b-mx.js';
|
|
2
2
|
|
|
3
3
|
const SulaMenuSelectList = SulaMenuSelectList$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-DYfmicjp.js';
|
|
2
2
|
import { S as SulaMenuDensity, a as SulaMenuLabelOverflow } from './p-Cs9RR1ZV.js';
|
|
3
|
-
import { d as defineCustomElement$2 } from './p-
|
|
3
|
+
import { d as defineCustomElement$2 } from './p-DaG0HavP.js';
|
|
4
4
|
|
|
5
5
|
const sulaMenuCss = "*,:after,:before{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{font-family:Figtree;line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.block{display:block}.flex{display:flex}.hidden{display:none}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host,:host button,:host input,:host option,:host select,:host textarea{font-family:Figtree,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:host{--sula-menu-width:256px;--sula-menu-collapsed-width:88px;--sula-menu-main-item-font-size:0.875rem;--sula-menu-main-item-line-height:1.25rem;--sula-menu-main-item-max-lines:2;--sula-menu-main-item-padding-block:0.5rem;display:block;height:100%;overflow:visible;position:relative;transition:width .36s cubic-bezier(.22,1,.36,1);width:var(--sula-menu-width)}:host(.menu-host--density-compact){--sula-menu-main-item-font-size:0.75rem;--sula-menu-main-item-line-height:1rem;--sula-menu-main-item-padding-block:0.375rem}:host(.menu-host--density-comfortable){--sula-menu-main-item-font-size:1rem;--sula-menu-main-item-line-height:1.5rem;--sula-menu-main-item-padding-block:0.625rem}:host(.menu-host--collapsed){width:var(--sula-menu-collapsed-width)}.menu-shell{min-height:100%;overflow:hidden;transform-origin:left top;transition:width .36s cubic-bezier(.22,1,.36,1),transform .36s cubic-bezier(.22,1,.36,1),box-shadow .36s cubic-bezier(.22,1,.36,1),border-radius .28s cubic-bezier(.4,0,.2,1),background-color .22s cubic-bezier(.4,0,.2,1);width:100%;will-change:width,transform,box-shadow,border-radius}.menu-shell--expanded{box-shadow:0 10px 24px rgba(15,23,42,.08),0 2px 8px rgba(15,23,42,.06)}.menu-shell--collapsed{box-shadow:0 8px 18px rgba(15,23,42,.06),0 1px 4px rgba(15,23,42,.04)}.menu-shell--preview{border-radius:0 24px 24px 0;bottom:0;box-shadow:0 28px 60px rgba(15,23,42,.18),0 10px 24px rgba(15,23,42,.12);left:0;position:absolute;top:0;transform:translateX(0);width:var(--sula-menu-width);z-index:2}.menu-header{gap:0;transition:padding .36s cubic-bezier(.22,1,.36,1),gap .24s cubic-bezier(.4,0,.2,1)}.menu-nav,.menu-toggle-wrapper{transition:padding .36s cubic-bezier(.22,1,.36,1)}.menu-brand-image{flex:0 0 auto;transition:margin .32s cubic-bezier(.22,1,.36,1),transform .32s cubic-bezier(.22,1,.36,1)}.menu-copy{display:block;max-width:220px;min-width:0;opacity:1;overflow:hidden;transform:translateX(0);transform-origin:left center;transition:max-width .32s cubic-bezier(.22,1,.36,1),opacity .2s cubic-bezier(.4,0,.2,1),transform .32s cubic-bezier(.22,1,.36,1),margin-left .32s cubic-bezier(.22,1,.36,1);white-space:nowrap;will-change:opacity,transform,max-width,margin-left}.menu-copy--visible{max-width:100%;opacity:1;pointer-events:auto;transform:translateX(0)}.menu-copy--hidden{max-width:0;opacity:0;pointer-events:none;transform:translateX(-10px)}.menu-title{flex:1 1 auto;min-width:0}.menu-title.menu-copy--visible{max-width:100%}.menu-item-label{flex:1 1 auto;font-size:var(--sula-menu-main-item-font-size);line-height:var(--sula-menu-main-item-line-height)}.menu-item-label--truncate{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-item-label--wrap{-webkit-box-orient:vertical;-webkit-line-clamp:var(--sula-menu-main-item-max-lines);line-clamp:var(--sula-menu-main-item-max-lines);display:-webkit-box;overflow:hidden;overflow-wrap:anywhere;text-overflow:clip;white-space:normal;word-break:break-word}.menu-item{padding-block:var(--sula-menu-main-item-padding-block);transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),padding .32s cubic-bezier(.22,1,.36,1)}.menu-item-caret{max-width:16px;opacity:1;overflow:hidden;transition:transform .28s cubic-bezier(.22,1,.36,1),opacity .18s cubic-bezier(.4,0,.2,1),max-width .28s cubic-bezier(.22,1,.36,1),margin-left .28s cubic-bezier(.22,1,.36,1)}.menu-item-caret--visible{margin-left:12px;max-width:16px;opacity:1}.menu-item-caret--hidden{margin-left:0;max-width:0;opacity:0;transform:translateX(-8px)}.menu-item-caret--expanded{transform:rotate(180deg)}.submenu{max-height:0;opacity:0;overflow:hidden;pointer-events:none;transform:translateY(-6px);transform-origin:top left;transition:max-height .26s cubic-bezier(.22,1,.36,1),opacity .12s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.22,1,.36,1);will-change:max-height,opacity,transform}.submenu--expanded{max-height:999px;opacity:1;pointer-events:auto;transform:translateY(0)}.submenu-item{transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),transform .24s cubic-bezier(.22,1,.36,1)}.submenu-item--branch{transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),border-color .24s cubic-bezier(.22,1,.36,1),margin-left .24s cubic-bezier(.22,1,.36,1)}.submenu-item-branch-content{min-width:0}.submenu-branch{transform-origin:top left}.submenu-grandchild-item{transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),transform .24s cubic-bezier(.22,1,.36,1)}.submenu-grandchild-label{display:block}.menu-toggle{transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),padding .32s cubic-bezier(.22,1,.36,1)}.menu-toggle-icon{flex:0 0 auto;transition:transform .32s cubic-bezier(.22,1,.36,1),border-color .22s cubic-bezier(.4,0,.2,1),background-color .22s cubic-bezier(.4,0,.2,1)}.menu-toggle-label{margin-left:0;white-space:nowrap}.menu-toggle-label.menu-copy--visible{margin-left:12px}@media (prefers-reduced-motion:reduce){.menu-brand-image,.menu-copy,.menu-header,.menu-item,.menu-item-caret,.menu-nav,.menu-shell,.menu-toggle,.menu-toggle-icon,.menu-toggle-wrapper,.submenu,.submenu-item,:host{transition:none}}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:300;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Light.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:300;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-LightItalic.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:400;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Regular.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:400;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Italic.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:500;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Medium.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:500;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-MediumItalic.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:600;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-SemiBold.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:600;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-SemiBoldItalic.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:700;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Bold.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:700;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-BoldItalic.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:800;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-ExtraBold.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:800;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-ExtraBoldItalic.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:900;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Black.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:900;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-BlackItalic.ttf) format(\"truetype\")}:root{--color-green-50:#f1f9f4;--color-green-100:#e6f4ed;--color-green-200:#cae7d8;--color-green-300:#a0d4b8;--color-green-400:#68bb8e;--color-green-500:#04843f;--color-green-600:#037236;--color-green-700:#03632f;--color-green-800:#035428;--color-green-900:#024521;--color-green-950:#012b15;--color-red-50:#fef6f6;--color-red-100:#fde8e8;--color-red-200:#fad1d1;--color-red-300:#f7abab;--color-red-400:#f17474;--color-red-500:#c80505;--color-red-600:#b30404;--color-red-700:#9f0404;--color-red-800:#860303;--color-red-900:#6d0303;--color-red-950:#330d00;--color-yellow-50:#fdf4e7;--color-yellow-100:#fcedd9;--color-yellow-200:#fae0bd;--color-yellow-300:#f6c788;--color-yellow-400:#f3b159;--color-yellow-500:#ef9928;--color-yellow-600:#e49226;--color-yellow-700:#d17e10;--color-yellow-800:#b46d0e;--color-yellow-900:#93590b;--color-yellow-950:#402705;--color-orange-50:#fef4f1;--color-orange-100:#fde8e2;--color-orange-200:#fbd2c6;--color-orange-300:#f8b4a0;--color-orange-400:#f58e70;--color-orange-500:#f05223;--color-orange-600:#ea4210;--color-orange-700:#d23b0e;--color-orange-800:#b5330c;--color-orange-900:#942a0a;--color-orange-950:#401204;--color-blue-50:#ecf0f9;--color-blue-100:#dde3f4;--color-blue-200:#b2c2e5;--color-blue-300:#7994d2;--color-blue-400:#4066bf;--color-blue-500:#001e64;--color-blue-600:#001c5c;--color-blue-700:#00174c;--color-blue-800:#00123d;--color-blue-900:#000f33;--color-blue-950:#000d2b;--color-ambar-50:#fff6eb;--color-ambar-100:#ffefdc;--color-ambar-200:#fedfb9;--color-ambar-300:#fdca8b;--color-ambar-400:#fdb359;--color-ambar-500:#fc9c26;--color-ambar-600:#ec8403;--color-ambar-700:#d87803;--color-ambar-800:#ba6803;--color-ambar-900:#975402;--color-ambar-950:#402301;--color-gray-50:#fff;--color-gray-100:#f3f4f4;--color-gray-200:#e5e6e6;--color-gray-300:#bfc0c0;--color-gray-400:#acaeae;--color-gray-500:#949595;--color-gray-600:#737575;--color-gray-700:#6c6e6e;--color-gray-800:#313333;--color-gray-900:#272929;--color-gray-950:#191d1d;--color-white-opacity-50:#ffffff0d;--color-white-opacity-100:#ffffff1a;--color-white-opacity-200:#ffffff26;--color-white-opacity-300:#ffffff45;--color-white-opacity-400:#ffffff5c;--color-white-opacity-500:#ffffff80;--color-white-opacity-600:#ffffff8c;--color-white-opacity-700:#ffffffa3;--color-white-opacity-800:#ffffffba;--color-white-opacity-900:#fffc;--color-white-opacity-950:#ffffffe8;--color-ciano-50:#f1f6fe;--color-ciano-100:#dfeafc;--color-ciano-200:#c3d9f9;--color-ciano-300:#90b9f4;--color-ciano-400:#5d98ee;--color-ciano-500:#1769e0;--color-ciano-600:#155fcb;--color-ciano-700:#1355b4;--color-ciano-800:#104899;--color-ciano-900:#0d3b7d;--color-ciano-950:#071e40;--color-extra-color-blue-light:#e7f0f4;--color-extra-color-blue-dark:#162931;--color-black-opacity-50:rgba(25,29,29,.02);--color-black-opacity-100:rgba(25,29,29,.05);--color-black-opacity-200:rgba(25,29,29,.11);--color-black-opacity-300:rgba(25,29,29,.28);--color-black-opacity-400:rgba(25,29,29,.36);--color-black-opacity-500:rgba(25,29,29,.44);--color-black-opacity-600:rgba(25,29,29,.62);--color-black-opacity-700:rgba(25,29,29,.64);--color-black-opacity-800:rgba(25,29,29,.72);--color-black-opacity-900:rgba(25,29,29,.8);--color-black-opacity-950:rgba(25,29,29,.96);--color-shadow-opacity-50:rgba(0,0,0,.04);--color-shadow-opacity-100:rgba(0,0,0,.06);--color-shadow-opacity-200:rgba(0,0,0,.12);--color-shadow-opacity-300:rgba(0,0,0,.2);--color-shadow-opacity-400:rgba(0,0,0,.32);--color-shadow-opacity-500:rgba(0,0,0,.5);--color-shadow-opacity-600:rgba(0,0,0,.55);--color-shadow-opacity-700:rgba(0,0,0,.64);--color-shadow-opacity-800:rgba(0,0,0,.73);--color-shadow-opacity-900:rgba(0,0,0,.8);--color-shadow-opacity-950:rgba(0,0,0,.91);--color-feedback-success:#04843f;--color-feedback-error:#c80505;--color-feedback-informational:#1355b4;--color-feedback-alert:#ef9928;--color-brand-primary:#f05223;--color-brand-secondary:#001c5c;--color-brand-tertiary-1:#1769e0;--color-brand-tertiary-2:#fc9c26;--color-surface-body:#fff;--color-surface-on-body:#f3f4f4;--color-surface-on-body-blue:#e7f0f4;--color-surface-on-body-brand:#fff6eb;--color-surface-on-body-feedback-success:#e6f4ed;--color-surface-on-body-feedback-error:#fde8e8;--color-surface-on-body-feedback-alert:#fdf4e7;--color-surface-on-body-feedback-info:#dfeafc;--color-text-brand:#f05223;--color-text-primary:#313333;--color-text-secondary:#6c6e6e;--color-text-disabled:#949595;--color-text-link:#1355b4;--color-states-empty-bg-hover:rgba(25,29,29,.05);--color-states-empty-bg-pressed:rgba(25,29,29,.11);--color-states-bg-disabled:rgba(25,29,29,.02);--color-states-bg-focus:#1355b4;--color-states-primary-hover:#ea4210;--color-states-primary-pressed:#d23b0e;--color-states-danger-hover:#b30404;--color-states-danger-pressed:#9f0404;--color-states-negative-hover:#e5e6e6;--color-states-negative-pressed:#bfc0c0;--color-icon-primary:#6c6e6e;--color-icon-secondary:#fff;--color-icon-tertiary:#b30404;--color-icon-disabled:#acaeae;--color-neutral-neutral-1:#fff;--color-neutral-neutral-2:#f3f4f4;--color-neutral-neutral-3:#acaeae;--color-neutral-neutral-4:#949595;--color-neutral-neutral-5:#737575;--color-neutral-neutral-6:#6c6e6e;--color-neutral-neutral-7:#313333;--color-neutral-neutral-8:#272929;--color-negative-negative-1:#fff;--color-negative-negative-2:#313333;--color-opacity-body:#fffc;--color-opacity-on-body:rgba(25,29,29,.02);--color-opacity-overlay:rgba(25,29,29,.62);--color-opacity-on-overlay:#ffffff1a;--color-opacity-toast:#ffffff45;--color-line-input:#949595;--color-line-general-strong:#bfc0c0;--color-line-general:#e5e6e6;--color-line-hair:rgba(25,29,29,.05);--color-box-shadow-body:#fff;--color-box-shadow-shadow-color-1:rgba(0,0,0,.04);--color-box-shadow-shadow-color-2:rgba(0,0,0,.06)}.static{position:static}.z-50{z-index:50}.mb-0{margin-bottom:0}.mb-3{margin-bottom:.75rem}.ml-8{margin-left:.5rem}.ml-\\[-2px\\]{margin-left:-2px}.ml-\\[1\\.6rem\\]{margin-left:1.6rem}.mr-6{margin-right:1.5rem}.h-10{height:2.5rem}.h-9{height:2.25rem}.h-full{height:100%}.max-h-10{max-height:2.5rem}.w-10{width:2.5rem}.w-9{width:2.25rem}.w-full{width:100%}.min-w-0{min-width:0}.max-w-10{max-width:2.5rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{user-select:none}.list-none{list-style-type:none}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-xs{border-radius:.5rem}.border{border-width:1px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-line-general{border-color:var(--color-line-general)}.border-negative-negative-1{border-color:var(--color-negative-negative-1)}.bg-box-shadow-body{background-color:var(--color-box-shadow-body)}.bg-brand-primary{background-color:var(--color-brand-primary)}.bg-surface-body{background-color:var(--color-surface-body)}.p-8{padding:.5rem}.px-0{padding-left:0;padding-right:0}.px-12{padding-left:.75rem;padding-right:.75rem}.px-20{padding-left:1.25rem;padding-right:1.25rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-16{padding-bottom:1rem;padding-top:1rem}.pb-12{padding-bottom:.75rem}.pb-16{padding-bottom:1rem}.pl-16{padding-left:1rem}.pl-20{padding-left:1.25rem}.pl-24{padding-left:1.5rem}.pl-8{padding-left:.5rem}.pt-12{padding-top:.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-tight{line-height:1.25}.text-icon-disabled{color:var(--color-icon-disabled)}.text-icon-primary{color:var(--color-icon-primary)}.text-negative-negative-1{color:var(--color-negative-negative-1)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:bg-box-shadow-body:hover{background-color:var(--color-box-shadow-body)}";
|
|
6
6
|
|
|
@@ -294,24 +294,24 @@ const SulaMenu$1 = /*@__PURE__*/ proxyCustomElement(class SulaMenu extends H {
|
|
|
294
294
|
}
|
|
295
295
|
render() {
|
|
296
296
|
const expandedView = !this.collapsed || this.previewExpanded;
|
|
297
|
-
return (h(Host, { key: '
|
|
297
|
+
return (h(Host, { key: '12aa38778852562834f6d30b3090b97143251514', class: {
|
|
298
298
|
'menu-host--collapsed': this.collapsed,
|
|
299
299
|
'menu-host--density-compact': this.density === SulaMenuDensity.Compact,
|
|
300
300
|
'menu-host--density-comfortable': this.density === SulaMenuDensity.Comfortable,
|
|
301
|
-
}, style: this.hostStyleVariables }, h("aside", { key: '
|
|
301
|
+
}, style: this.hostStyleVariables }, h("aside", { key: '6a990f913ca867498e3b5a7ba5daac0721c96c34', part: "shell", onMouseEnter: () => this.handleMenuMouseEnter(), onMouseLeave: () => this.handleMenuMouseLeave(), class: {
|
|
302
302
|
'menu-shell flex h-full flex-col bg-surface-body py-16 pt-12 shadow-md z-50': true,
|
|
303
303
|
'menu-shell--collapsed': this.collapsed && !this.previewExpanded,
|
|
304
304
|
'menu-shell--expanded': expandedView,
|
|
305
305
|
'menu-shell--preview': this.collapsed && this.previewExpanded,
|
|
306
|
-
} }, h("div", { key: '
|
|
306
|
+
} }, h("div", { key: '4325ec041b61b724df0e20d42bb7d507c563102b', class: {
|
|
307
307
|
'menu-header flex items-center pb-12': true,
|
|
308
308
|
'mb-3 px-7': expandedView,
|
|
309
309
|
'mb-0 justify-center px-0': !expandedView,
|
|
310
|
-
} }, this.image && (h("div", { key: '
|
|
310
|
+
} }, this.image && (h("div", { key: '1dd5dba04d19df0d0d556e5ad2c794df1e42a137', class: { 'menu-brand-image max-h-10 max-w-10 overflow-hidden': true, 'mr-6': expandedView } }, h("img", { key: 'd3431d836dcee0c9af25e595b0308a06662d1c34', src: this.image, alt: this.menuTitle }))), h("div", { key: '27013d62670dd2b5d1ce4f01d6b19bc8b91102fc', "aria-hidden": !expandedView, title: expandedView ? this.menuTitle : undefined, class: {
|
|
311
311
|
'menu-title menu-copy': true,
|
|
312
312
|
'menu-copy--visible': expandedView,
|
|
313
313
|
'menu-copy--hidden': !expandedView,
|
|
314
|
-
} }, h("h1", { key: '
|
|
314
|
+
} }, h("h1", { key: 'b510dc74292e7809d4f089d5e0a5edc5a0681339', part: "title", class: "truncate text-xl font-semibold leading-tight text-text-primary" }, this.menuTitle))), h("nav", { key: '817fe1b58ba7f0872c39cb39efad5e4cbde2757b', class: {
|
|
315
315
|
'menu-nav flex h-full flex-col overflow-y-auto overflow-x-hidden pb-16': true,
|
|
316
316
|
'px-20': expandedView,
|
|
317
317
|
'px-12': !expandedView,
|
|
@@ -344,15 +344,15 @@ const SulaMenu$1 = /*@__PURE__*/ proxyCustomElement(class SulaMenu extends H {
|
|
|
344
344
|
'menu-item-caret--visible': expandedView,
|
|
345
345
|
'menu-item-caret--hidden': !expandedView,
|
|
346
346
|
}, icon: "ph ph-caret-down", customClass: this.getCaretIconClass(item) }))), itemHasChildren && (h("ul", { "aria-hidden": !expandedView || !item.expanded, class: { 'submenu': true, 'submenu--expanded': expandedView && !!item.expanded, 'ml-[1.6rem] border-l border-line-general': true } }, this.renderSubmenuItems(item, expandedView)))));
|
|
347
|
-
})), h("div", { key: '
|
|
347
|
+
})), h("div", { key: '158feec60843a951a2f1ed7065edb6ab04af13e2', class: {
|
|
348
348
|
'menu-toggle-wrapper pb-16': true,
|
|
349
349
|
'px-20': expandedView,
|
|
350
350
|
'px-12': !expandedView,
|
|
351
|
-
} }, h("button", { key: '
|
|
351
|
+
} }, h("button", { key: '18956fc2aed75ed4b13985d2805c4f9615a68e33', type: "button", class: {
|
|
352
352
|
'menu-toggle flex w-full cursor-pointer items-center rounded-xs p-8 hover:bg-box-shadow-body': true,
|
|
353
353
|
'justify-start': expandedView,
|
|
354
354
|
'justify-center': !expandedView,
|
|
355
|
-
}, title: this.collapsed ? 'Fixar menu' : 'Ocultar menu', onClick: () => this.toggleMenu() }, h("div", { key: '
|
|
355
|
+
}, title: this.collapsed ? 'Fixar menu' : 'Ocultar menu', onClick: () => this.toggleMenu() }, h("div", { key: 'df6ff603abcaf3fb23e31699590ec566b39818e9', class: "menu-toggle-icon flex h-10 w-10 items-center justify-center rounded-full border border-line-general bg-surface-body" }, h("sula-icon", { key: '6b01bd52f802d2291802679ac56bc1017b8d0cef', icon: `ph ph-arrow-${this.collapsed ? 'right' : 'left'}`, customClass: "text-text-secondary text-xl" })), h("span", { key: 'd662bac6f8e2fd811a91af3513cf61c05840c303', part: "toggle-label", "aria-hidden": !expandedView, class: {
|
|
356
356
|
'menu-toggle-label menu-copy text-base text-text-secondary': true,
|
|
357
357
|
'menu-copy--visible': expandedView,
|
|
358
358
|
'menu-copy--hidden': !expandedView,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-DYfmicjp.js';
|
|
2
|
-
import { d as defineCustomElement$4, a as SulaButtonAppearance } from './p-
|
|
3
|
-
import { d as defineCustomElement$3 } from './p-
|
|
4
|
-
import { d as defineCustomElement$2 } from './p-
|
|
2
|
+
import { d as defineCustomElement$4, a as SulaButtonAppearance } from './p-DtVQ10Ux.js';
|
|
3
|
+
import { d as defineCustomElement$3 } from './p-DaG0HavP.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './p-rCU8ay8s.js';
|
|
5
5
|
|
|
6
6
|
var SulaModalType;
|
|
7
7
|
(function (SulaModalType) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h, d as Host } from './p-DYfmicjp.js';
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-DaG0HavP.js';
|
|
3
3
|
|
|
4
4
|
var SulaProgressBarAppearance;
|
|
5
5
|
(function (SulaProgressBarAppearance) {
|
|
@@ -74,10 +74,10 @@ const SulaProgressBar$1 = /*@__PURE__*/ proxyCustomElement(class SulaProgressBar
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
render() {
|
|
77
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: '4687f382c8ece70212ac86842a0300192f61ce61' }, h("div", { key: 'f93c2d0064b5be621740059047555aef9254e974', class: "flex flex-col w-full space-y-8" }, h("div", { key: '1cfd6fb923fd4a6216f1f0bb8696e3637ebeef7e', class: "flex justify-between items-center" }, h("label", { key: 'e0e48018d3ccf7da34611298d72d4daf7c90226c', class: "text-sm text-text-secondary leading-[14px]" }, this.topLabel), this.getProgressBarStateElement()), h("div", { key: '691331d0512e57de6d5ebf084393c7d48c99ab8b', style: { width: `${this.progress}%` }, class: {
|
|
78
78
|
'h-12 rounded-xxl': true,
|
|
79
79
|
[this.getProgressBarStyle()]: true,
|
|
80
|
-
} }), h("label", { key: '
|
|
80
|
+
} }), h("label", { key: '45964d2c60ae4d97572ffe25e7642e274123e0a7', class: "text-sm text-text-secondary leading-[14px]" }, this.bottomLabel))));
|
|
81
81
|
}
|
|
82
82
|
static get watchers() { return {
|
|
83
83
|
"progress": ["validateProgress"]
|
|
@@ -43,14 +43,14 @@ const SulaRadioButton$1 = /*@__PURE__*/ proxyCustomElement(class SulaRadioButton
|
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (h(Host, { key: '
|
|
46
|
+
return (h(Host, { key: '7a304d036ffbddc1ac6eab35214d3aa209c52e42' }, h("div", { key: '2231ebc8b13a1675ec72250d27710c72962e66ba', class: { 'w-fit': true, 'flex items-center': !!this.label }, onClick: this.handleClick }, h("div", { key: '6b41f5c42b5dbae6c7f53af3068ae57b2b305804', class: {
|
|
47
47
|
'min-w-[30px] min-h-[30px] rounded-full flex justify-center items-center outline-none': true,
|
|
48
48
|
'active:bg-states-empty-bg-pressed cursor-pointer': !this.disabled,
|
|
49
49
|
'bg-brand-primary': this.checked,
|
|
50
50
|
'border border-line-input': !this.checked,
|
|
51
51
|
'container-focus': this.radioIsFocus,
|
|
52
52
|
'bg-states-bg-disabled border-2 border-states-bg-disabled cursor-not-allowed': this.disabled,
|
|
53
|
-
}, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleFocusOut }, this.checked && h("div", { key: '
|
|
53
|
+
}, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleFocusOut }, this.checked && h("div", { key: '7663ea3f28465d9e85a3c4735a20fe954c2179fe', class: "bg-transparent border-2 border-negative-negative-1 w-[18px] h-[18px] rounded-full" })), this.label && h("label", { key: '5f4eb7bd6c94803fd509407d09c5dd15b76edcd7', class: { 'ml-16 text-base text-text-primary': true, 'cursor-pointer': !this.disabled } }, this.label))));
|
|
54
54
|
}
|
|
55
55
|
static get style() { return sulaRadioButtonCss; }
|
|
56
56
|
}, [1, "sula-radio-button", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-DYfmicjp.js';
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-DaG0HavP.js';
|
|
3
3
|
|
|
4
4
|
var SulaSegmentedControlType;
|
|
5
5
|
(function (SulaSegmentedControlType) {
|
|
@@ -61,7 +61,7 @@ const SulaSegmentedControl$1 = /*@__PURE__*/ proxyCustomElement(class SulaSegmen
|
|
|
61
61
|
return item.selected ? 'text-brand-primary' : 'text-text-primary';
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (h(Host, { key: '
|
|
64
|
+
return (h(Host, { key: 'e4d257cbdefcae292ace48939622ac2b6c86808d' }, h("div", { key: '831495bf8af249b2d0ded6fa457cf76c1020a1fa', class: {
|
|
65
65
|
'flex flex-row items-center rounded-xxl p-2 w-fit backdrop-blur-[20px]': true,
|
|
66
66
|
'bg-opacity-on-body': this.color === SulaSegmentedControlColor.Gray,
|
|
67
67
|
'bg-opacity-body': this.color === SulaSegmentedControlColor.White,
|
|
@@ -54,7 +54,7 @@ const SulaSwitch$1 = /*@__PURE__*/ proxyCustomElement(class SulaSwitch extends H
|
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return (h(Host, { key: '
|
|
57
|
+
return (h(Host, { key: '03ac13764a97e343c005d0b6ad86aedd63d3fcc0' }, h("div", { key: 'ddca75645b49d3b965011eb36e57a6eeaece645f', class: {
|
|
58
58
|
'outline-none': true,
|
|
59
59
|
'flex items-center space-x-12': !!this.label && this.type === SulaSwitchType.Default,
|
|
60
60
|
'flex items-center justify-between bg-surface-on-body rounded-md min-h-[85px] px-24 py-16': this.type === SulaSwitchType.List,
|
|
@@ -62,17 +62,17 @@ const SulaSwitch$1 = /*@__PURE__*/ proxyCustomElement(class SulaSwitch extends H
|
|
|
62
62
|
'w-[280px]': this.type === SulaSwitchType.List && !this.responsive,
|
|
63
63
|
'hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed cursor-pointer': this.type === SulaSwitchType.List && !this.disabled,
|
|
64
64
|
'container-focus': this.isFocus && this.type === SulaSwitchType.List,
|
|
65
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.handleClick, tabIndex: 0 }, this.type === SulaSwitchType.List && (h("div", { key: '
|
|
65
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.handleClick, tabIndex: 0 }, this.type === SulaSwitchType.List && (h("div", { key: 'e15ca8ec7506497d574a76b523ce5c4fd6def934', class: "flex flex-col flex-1 mr-16 overflow-hidden" }, !!this.label && h("label", { key: '2bcd6af3688e18d597b39db6ee2eb4355a3c0377', class: "text-text-primary font-bold text-base cursor-pointer break-words" }, this.label), !!this.subTitle && h("span", { key: '7433a736246106dddfff92f681c274d2ea6d6938', class: "text-text-secondary text-base break-words" }, this.subTitle))), h("div", { key: 'cfe3186e0a7409a0cfe2092f0cca822eecf45727', class: {
|
|
66
66
|
'switch-container w-56 h-32 flex items-center rounded-xxl p-2 outline-none': true,
|
|
67
67
|
'switch-on bg-brand-primary justify-end': this.active,
|
|
68
68
|
'switch-off bg-neutral-neutral-3 justify-start': !this.active,
|
|
69
69
|
'cursor-not-allowed bg-states-bg-disabled': this.disabled,
|
|
70
70
|
'switch-focus': this.isFocus && this.type === SulaSwitchType.Default,
|
|
71
|
-
}, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '
|
|
71
|
+
}, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '411f40ad8ad8b6395ea24a076f88602342126cfc', class: {
|
|
72
72
|
'switch-thumb w-[28px] h-[28px] rounded-full flex justify-center items-center': true,
|
|
73
73
|
'bg-negative-negative-1': !this.disabled,
|
|
74
74
|
'bg-states-bg-disabled shadow-md': this.disabled,
|
|
75
|
-
} }, h("div", { key: '
|
|
75
|
+
} }, h("div", { key: 'ee793fac1da4897922c413dc253b66b47bebaec2', class: {
|
|
76
76
|
'switch-indicator rounded-full': true,
|
|
77
77
|
'switch-indicator-on w-12 h-12 bg-brand-primary': this.active,
|
|
78
78
|
'switch-indicator-off w-[10px] h-4 bg-neutral-neutral-4': !this.active,
|
|
@@ -12,7 +12,7 @@ const SulaTableBody$1 = /*@__PURE__*/ proxyCustomElement(class SulaTableBody ext
|
|
|
12
12
|
replaceHostWithRenderedElement(this.host, 'tbody');
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: 'b9f5648337032d4e589e940439a0099f1d43cffa' }, h("tbody", { key: 'b7cdcb725274bd440f9561aada4c7aac517de710' }, h("slot", { key: '02978fec755b66e807c8b8c57d8da66ba348a45d' }))));
|
|
16
16
|
}
|
|
17
17
|
get host() { return this; }
|
|
18
18
|
static get style() { return sulaTableBodyCss; }
|
|
@@ -17,13 +17,13 @@ const SulaTableCell$1 = /*@__PURE__*/ proxyCustomElement(class SulaTableCell ext
|
|
|
17
17
|
replaceHostWithRenderedElement(this.host, 'td');
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '347aabb92b3ae336b47c092b4836a9683abdb945' }, h("td", { key: 'abe8e1a42e60ca0314f2bccedaf51953d6e3efe6', class: "align-middle text-left border-b border-dashed border-line-general" }, h("div", { key: '5fb52f18fea375e0db464b1a81194ae2a5f5d53f', class: {
|
|
21
21
|
'px-16 py-4 w-full flex flex-col justify-center items-start box-border text-label-medium-regular text-text-secondary': true,
|
|
22
22
|
'min-h-56': this.tableDensity === SulaTableDensity.Compact,
|
|
23
23
|
'min-h-60': this.tableDensity === SulaTableDensity.Default,
|
|
24
24
|
'min-h-64': this.tableDensity === SulaTableDensity.Spaced,
|
|
25
25
|
'min-h-72': this.tableDensity === SulaTableDensity.Confortable,
|
|
26
|
-
} }, h("slot", { key: '
|
|
26
|
+
} }, h("slot", { key: 'fce54db787004cec755f69f9eabd1931ed27f7cf' })))));
|
|
27
27
|
}
|
|
28
28
|
get host() { return this; }
|
|
29
29
|
static get style() { return sulaTableCellCss; }
|
|
@@ -17,13 +17,13 @@ const SulaTableHeadCell$1 = /*@__PURE__*/ proxyCustomElement(class SulaTableHead
|
|
|
17
17
|
replaceHostWithRenderedElement(this.host, 'th');
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '41e5f68802c240cd1e691e3df61066d585117122' }, h("th", { key: '42907dc4d92bb3f70ad1a2c88e2580a3c07b8bc5', scope: "col", class: "align-middle text-left border-b border-line-general" }, h("div", { key: '482ebc9be886ea48becf0f72035c26ec694ff8c8', class: {
|
|
21
21
|
'px-16 py-4 w-full flex justify-start items-center box-border text-label-small-bold text-text-secondary': true,
|
|
22
22
|
'min-h-40': this.tableDensity === SulaTableDensity.Compact,
|
|
23
23
|
'min-h-44': this.tableDensity === SulaTableDensity.Default,
|
|
24
24
|
'min-h-48': this.tableDensity === SulaTableDensity.Spaced,
|
|
25
25
|
'min-h-56': this.tableDensity === SulaTableDensity.Confortable,
|
|
26
|
-
} }, h("slot", { key: '
|
|
26
|
+
} }, h("slot", { key: '328c07d328409e3e6c571ada4e36ede8609d38f4' })))));
|
|
27
27
|
}
|
|
28
28
|
get host() { return this; }
|
|
29
29
|
static get style() { return sulaTableHeadCellCss; }
|
|
@@ -12,7 +12,7 @@ const SulaTableHeader$1 = /*@__PURE__*/ proxyCustomElement(class SulaTableHeader
|
|
|
12
12
|
replaceHostWithRenderedElement(this.host, 'thead');
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '9b60e1345817d85150547d9f6a8c4aea18fecf35' }, h("thead", { key: 'e1280134d0f2efa76aaada715771a9d3cb59c2cb' }, h("slot", { key: '9014c8901806203c448b8a263b39da14541ee4c2' }))));
|
|
16
16
|
}
|
|
17
17
|
get host() { return this; }
|
|
18
18
|
static get style() { return sulaTableHeaderCss; }
|
|
@@ -12,7 +12,7 @@ const SulaTableRow$1 = /*@__PURE__*/ proxyCustomElement(class SulaTableRow exten
|
|
|
12
12
|
replaceHostWithRenderedElement(this.host, 'tr');
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '2f3bfac0df53bdac8f2bcd85b09719da7cef4f1d' }, h("tr", { key: '5b4a56ae49d512bcbe0ff49c878fcbe2cfde6386' }, h("slot", { key: '7bc654792d9375c53f000e4fb9b370e16b3bed19' }))));
|
|
16
16
|
}
|
|
17
17
|
get host() { return this; }
|
|
18
18
|
static get style() { return sulaTableRowCss; }
|
|
@@ -21,15 +21,15 @@ const SulaTable$1 = /*@__PURE__*/ proxyCustomElement(class SulaTable extends H {
|
|
|
21
21
|
this.fullWidth = true;
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: 'c4c85f0a00f5848a5ceeee0fa975b98dd8aaca10', class: {
|
|
25
25
|
'block max-w-full overflow-x-auto': true,
|
|
26
|
-
} }, h("table", { key: '
|
|
26
|
+
} }, h("table", { key: '429f48bb7125d0623a0896e2ffd64b5096bf3dcc', class: {
|
|
27
27
|
'w-full': this.fullWidth && this.equalWidth,
|
|
28
28
|
'w-max': !this.equalWidth,
|
|
29
29
|
'min-w-full': this.fullWidth && !this.equalWidth,
|
|
30
30
|
'table-fixed': this.equalWidth,
|
|
31
31
|
'border-collapse border-spacing-0 box-border': true,
|
|
32
|
-
} }, h("slot", { key: '
|
|
32
|
+
} }, h("slot", { key: '8887f401133f605293b98b0408e3b605270fcaad' }))));
|
|
33
33
|
}
|
|
34
34
|
static get style() { return sulaTableCss; }
|
|
35
35
|
}, [4, "sula-table", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h, d as Host } from './p-DYfmicjp.js';
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-DaG0HavP.js';
|
|
3
3
|
|
|
4
4
|
var SulaTagSize;
|
|
5
5
|
(function (SulaTagSize) {
|
|
@@ -106,14 +106,14 @@ const SulaTag$1 = /*@__PURE__*/ proxyCustomElement(class SulaTag extends H {
|
|
|
106
106
|
return iconStatusStyles[this.iconStatus];
|
|
107
107
|
}
|
|
108
108
|
render() {
|
|
109
|
-
return (h(Host, { key: '
|
|
109
|
+
return (h(Host, { key: 'a2b77019aff1c066579e1b7aef2a95fba5039b71' }, h("div", { key: '63ff50af0b9ad7fe808d7d57865fe6febd855d94', class: {
|
|
110
110
|
'flex items-center rounded-xxl w-fit': true,
|
|
111
111
|
[this.getSizeClass()]: true,
|
|
112
112
|
[this.getAppearanceClass()]: true,
|
|
113
|
-
} }, this.icon && (h("div", { key: '
|
|
113
|
+
} }, this.icon && (h("div", { key: 'a7f85beae1c42d19fe6b03ba4bba5b64b1b8e076', class: {
|
|
114
114
|
'flex justify-center items-center mr-8 rounded-full leading-4 px-2 py-1': true,
|
|
115
115
|
[this.getIconStatusClass()]: true,
|
|
116
|
-
} }, h("sula-icon", { key: '
|
|
116
|
+
} }, h("sula-icon", { key: '4f2059c35afb8e6b0a51d54acac9b85988883e0c', icon: this.icon, "custom-class": "text-base text-negative-negative-1 leading-4" }))), h("span", { key: '6ec9221c71bab0fb9aa60b4e0bc70d1c681030a6', class: {
|
|
117
117
|
'text-base leading-4': true,
|
|
118
118
|
[this.getTextColorClass()]: true,
|
|
119
119
|
[this.getTextWeightClass()]: true,
|