@rededor/cura 2.0.0-alpha.14 → 2.0.0-alpha.17
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/assets/assets/icons/iconset-default-list.ts +1 -1
- package/dist/assets/assets/icons/iconset-default-tmp.svg +78 -2
- package/dist/assets/assets/icons/iconset-default.svg +1 -1
- package/dist/cjs/cura-accordion_22.cjs.entry.js +39 -83
- package/dist/cjs/cura-display.cjs.entry.js +1 -1
- package/dist/cjs/cura-icons-view.cjs.entry.js +1 -1
- package/dist/cjs/cura-input-textarea.cjs.entry.js +236 -0
- package/dist/cjs/cura-loader-bar.cjs.entry.js +1 -1
- package/dist/cjs/cura-radio.cjs.entry.js +1 -1
- package/dist/cjs/cura-switch.cjs.entry.js +1 -1
- package/dist/cjs/cura-tabs-button.cjs.entry.js +1 -1
- package/dist/cjs/cura-tabs-transparent.cjs.entry.js +1 -1
- package/dist/cjs/cura.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/utils-DMHZ2n4p.js +47 -0
- package/dist/collection/assets/icons/iconset-default-list.js +1 -1
- package/dist/collection/assets/icons/iconset-default-tmp.svg +78 -2
- package/dist/collection/assets/icons/iconset-default.svg +1 -1
- package/dist/collection/assets-raw/icons/default/airCond.svg +3 -0
- package/dist/collection/assets-raw/icons/default/backspaceDelete.svg +3 -0
- package/dist/collection/assets-raw/icons/default/bathroom.svg +3 -0
- package/dist/collection/assets-raw/icons/default/bed.svg +3 -0
- package/dist/collection/assets-raw/icons/default/blinds.svg +3 -0
- package/dist/collection/assets-raw/icons/default/clean.svg +3 -0
- package/dist/collection/assets-raw/icons/default/docs.svg +4 -0
- package/dist/collection/assets-raw/icons/default/door.svg +3 -0
- package/dist/collection/assets-raw/icons/default/keyboardArrows.svg +3 -0
- package/dist/collection/assets-raw/icons/default/keyboardNum.svg +10 -0
- package/dist/collection/assets-raw/icons/default/lampSmart.svg +3 -0
- package/dist/collection/assets-raw/icons/default/mobileRotate2.svg +1 -1
- package/dist/collection/assets-raw/icons/default/nutrition.svg +3 -0
- package/dist/collection/assets-raw/icons/default/pause.svg +3 -0
- package/dist/collection/assets-raw/icons/default/sink.svg +3 -0
- package/dist/collection/assets-raw/icons/default/stop.svg +1 -1
- package/dist/collection/assets-raw/icons/default/tv.svg +3 -0
- package/dist/collection/assets-raw/icons/default/userChecklist.svg +3 -0
- package/dist/collection/assets-raw/icons/default/window.svg +3 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/cura-calendar/cura-calendar.js +20 -27
- package/dist/collection/components/forms/cura-input-textarea/cura-input-textarea.css +174 -0
- package/dist/collection/components/forms/cura-input-textarea/cura-input-textarea.js +613 -0
- package/dist/collection/components/forms/cura-input-textarea/cura-input-textarea.stories.js +222 -0
- package/dist/collection/components/forms/cura-label/cura-label.js +1 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.js +1 -1
- package/dist/collection/components/forms/cura-select/cura-select.js +3 -3
- package/dist/collection/components/forms/cura-select-options/cura-select-option.js +1 -1
- package/dist/collection/components/forms/cura-switch/cura-switch.js +1 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +1 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +1 -1
- package/dist/collection/components/tabs/cura-tabs/cura-tabs.js +1 -1
- package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js +1 -1
- package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js +1 -1
- package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js +1 -1
- package/dist/collection/components/text/cura-display/cura-display.js +1 -1
- package/dist/collection/components/text/cura-heading/cura-heading.js +1 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +1 -1
- package/dist/components/cura-accordion-item.js +1 -1
- package/dist/components/cura-alert.js +1 -1
- package/dist/components/cura-badge-counter.js +1 -1
- package/dist/components/cura-badge-distance.js +1 -1
- package/dist/components/cura-badge-pill.js +1 -1
- package/dist/components/cura-button-outline.js +1 -1
- package/dist/components/cura-button-select.js +1 -1
- package/dist/components/cura-button-transparent.js +1 -1
- package/dist/components/cura-button.js +1 -1
- package/dist/components/cura-calendar.js +1 -1
- package/dist/components/cura-checkbox.js +1 -1
- package/dist/components/cura-display.js +1 -1
- package/dist/components/cura-dropdown-search-category.js +1 -1
- package/dist/components/cura-dropdown-search-not-found.js +1 -1
- package/dist/components/cura-dropdown-search.js +1 -1
- package/dist/components/cura-heading.js +1 -1
- package/dist/components/cura-icons-view.js +1 -1
- package/dist/components/cura-input-date.js +1 -1
- package/dist/components/cura-input-text.js +1 -1
- package/dist/components/cura-input-textarea.d.ts +11 -0
- package/dist/components/cura-input-textarea.js +1 -0
- package/dist/components/cura-label.js +1 -1
- package/dist/components/cura-loader-bar.js +1 -1
- package/dist/components/cura-loader-circle.js +1 -1
- package/dist/components/cura-modal.js +1 -1
- package/dist/components/cura-paragraph.js +1 -1
- package/dist/components/cura-radio.js +1 -1
- package/dist/components/cura-select-option.js +1 -1
- package/dist/components/cura-select.js +1 -1
- package/dist/components/cura-stepper-item.js +1 -1
- package/dist/components/cura-stepper.js +1 -1
- package/dist/components/cura-switch.js +1 -1
- package/dist/components/cura-tabs-button.js +1 -1
- package/dist/components/cura-tabs-group.js +1 -1
- package/dist/components/cura-tabs-transparent.js +1 -1
- package/dist/components/cura-tabs.js +1 -1
- package/dist/components/cura-toast.js +1 -1
- package/dist/components/cura-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-B2TDH4aP.js +1 -0
- package/dist/components/{p-Oyg5hynZ.js → p-BHVSbubb.js} +1 -1
- package/dist/components/{p-BBtCzdwH.js → p-BKDpza6x.js} +1 -1
- package/dist/components/{p-BOQ-9WHP.js → p-BuETJyzc.js} +1 -1
- package/dist/components/{p-BGBnVlL3.js → p-CksTHXxZ.js} +1 -1
- package/dist/components/{p-I4AXUk2V.js → p-D4hCuriT.js} +1 -1
- package/dist/components/p-DQP7jRHp.js +1 -0
- package/dist/components/p-DgK8dEko.js +1 -0
- package/dist/components/{p-BXFxWVl3.js → p-DgQJ968V.js} +1 -1
- package/dist/components/{p-BFGkepgq.js → p-Dmalf4Oj.js} +1 -1
- package/dist/components/{p-DbZtk_CM.js → p-KovUKiTX.js} +1 -1
- package/dist/components/{p-Bac-rr_f.js → p-PiUhcFob.js} +1 -1
- package/dist/components/{p-BmMvoH-m.js → p-TnCIk87O.js} +1 -1
- package/dist/components/{p-Cm1Vfoc6.js → p-i55vIhdM.js} +1 -1
- package/dist/cura/cura.esm.js +1 -1
- package/dist/cura/{p-71fffffa.entry.js → p-1c48aaa7.entry.js} +1 -1
- package/dist/cura/{p-2572a4f9.entry.js → p-4178e3e6.entry.js} +1 -1
- package/dist/cura/p-5b26a166.entry.js +1 -0
- package/dist/cura/p-CUmwazb8.js +1 -0
- package/dist/cura/p-a305e17a.entry.js +1 -0
- package/dist/cura/{p-8b29b763.entry.js → p-b157025d.entry.js} +1 -1
- package/dist/cura/{p-1ecb2249.entry.js → p-bd649bed.entry.js} +1 -1
- package/dist/cura/p-cc5d2e34.entry.js +1 -0
- package/dist/cura/{p-04b5c710.entry.js → p-d43fb791.entry.js} +1 -1
- package/dist/cura/{p-a5c4849c.entry.js → p-d64ef37d.entry.js} +1 -1
- package/dist/esm/cura-accordion_22.entry.js +32 -76
- package/dist/esm/cura-display.entry.js +1 -1
- package/dist/esm/cura-icons-view.entry.js +1 -1
- package/dist/esm/cura-input-textarea.entry.js +234 -0
- package/dist/esm/cura-loader-bar.entry.js +1 -1
- package/dist/esm/cura-radio.entry.js +1 -1
- package/dist/esm/cura-switch.entry.js +1 -1
- package/dist/esm/cura-tabs-button.entry.js +1 -1
- package/dist/esm/cura-tabs-transparent.entry.js +1 -1
- package/dist/esm/cura.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/utils-BZCR971L.js +41 -0
- package/dist/types/components/cura-calendar/cura-calendar.d.ts +3 -6
- package/dist/types/components/forms/cura-input-textarea/cura-input-textarea.d.ts +116 -0
- package/dist/types/components/forms/cura-input-textarea/cura-input-textarea.stories.d.ts +188 -0
- package/dist/types/components.d.ts +210 -0
- package/package.json +4 -2
- package/dist/components/p-BJafC0R3.js +0 -1
- package/dist/components/p-nqT7t82E.js +0 -1
- package/dist/cura/p-c287c69e.entry.js +0 -1
- package/dist/cura/p-c987ddde.entry.js +0 -1
|
@@ -4,7 +4,6 @@ import enAU from "date-fns/locale/en-AU";
|
|
|
4
4
|
import ptBR from "date-fns/locale/pt-BR";
|
|
5
5
|
export class CuraCalendar {
|
|
6
6
|
constructor() {
|
|
7
|
-
this.isMounted = false;
|
|
8
7
|
/**
|
|
9
8
|
* Disable component
|
|
10
9
|
*
|
|
@@ -346,6 +345,7 @@ export class CuraCalendar {
|
|
|
346
345
|
if (direction === 'next')
|
|
347
346
|
newMonth = addMonths(this.currentDate, 1);
|
|
348
347
|
this.currentDate = newMonth;
|
|
348
|
+
this.sendEventChangeDateInView(Boolean(this.collapsed), newMonth);
|
|
349
349
|
}
|
|
350
350
|
/**
|
|
351
351
|
* Handle the month dropdown change.
|
|
@@ -356,7 +356,9 @@ export class CuraCalendar {
|
|
|
356
356
|
const { months } = this.fetchMonthNames();
|
|
357
357
|
const newMonth = event.detail;
|
|
358
358
|
this.selectMonth = newMonth;
|
|
359
|
-
|
|
359
|
+
const currentDateUpdated = new Date(getYear(this.currentDate), months.indexOf(newMonth), 1);
|
|
360
|
+
this.currentDate = currentDateUpdated;
|
|
361
|
+
this.sendEventChangeDateInView(Boolean(this.collapsed), currentDateUpdated);
|
|
360
362
|
}
|
|
361
363
|
/**
|
|
362
364
|
* Handle the year input change.
|
|
@@ -366,7 +368,9 @@ export class CuraCalendar {
|
|
|
366
368
|
onYearDropdownChange(event) {
|
|
367
369
|
const newYear = event.detail;
|
|
368
370
|
this.selectYear = newYear;
|
|
369
|
-
|
|
371
|
+
const currentDateUpdated = new Date(newYear, getMonth(this.currentDate), 1);
|
|
372
|
+
this.currentDate = currentDateUpdated;
|
|
373
|
+
this.sendEventChangeDateInView(Boolean(this.collapsed), currentDateUpdated);
|
|
370
374
|
}
|
|
371
375
|
/**
|
|
372
376
|
* Flatten date ranges into individual dates.
|
|
@@ -473,10 +477,10 @@ export class CuraCalendar {
|
|
|
473
477
|
this.collapsed = true;
|
|
474
478
|
return this.fetchDaysOfWeek();
|
|
475
479
|
}
|
|
476
|
-
fetchDaysOfWeek() {
|
|
480
|
+
fetchDaysOfWeek(currentDate) {
|
|
477
481
|
const DAYS_IN_CALENDAR_VIEW = 7;
|
|
478
|
-
const start = startOfWeek(this.currentDate);
|
|
479
|
-
const end = endOfWeek(this.currentDate);
|
|
482
|
+
const start = startOfWeek(currentDate || this.currentDate);
|
|
483
|
+
const end = endOfWeek(currentDate || this.currentDate);
|
|
480
484
|
const daysIncurrentDate = eachDayOfInterval({ start, end });
|
|
481
485
|
return daysIncurrentDate.slice(0, DAYS_IN_CALENDAR_VIEW);
|
|
482
486
|
}
|
|
@@ -487,11 +491,12 @@ export class CuraCalendar {
|
|
|
487
491
|
if (direction === 'next')
|
|
488
492
|
newWeek = addWeeks(this.currentDate, 1);
|
|
489
493
|
this.currentDate = newWeek;
|
|
494
|
+
this.sendEventChangeDateInView(Boolean(this.collapsed), newWeek);
|
|
490
495
|
}
|
|
491
|
-
fetchDaysOfMonth() {
|
|
496
|
+
fetchDaysOfMonth(currentDate) {
|
|
492
497
|
const DAYS_IN_CALENDAR_VIEW = 35;
|
|
493
|
-
const start = startOfMonth(this.currentDate);
|
|
494
|
-
const end = endOfMonth(this.currentDate);
|
|
498
|
+
const start = startOfMonth(currentDate || this.currentDate);
|
|
499
|
+
const end = endOfMonth(currentDate || this.currentDate);
|
|
495
500
|
const daysIncurrentDate = eachDayOfInterval({ start, end });
|
|
496
501
|
const startWeekDay = getDay(start);
|
|
497
502
|
const prevMonthEnd = endOfMonth(subMonths(start, 1));
|
|
@@ -621,10 +626,10 @@ export class CuraCalendar {
|
|
|
621
626
|
'--color-neutral-purewhite': window.CuraAPI.theme.colors.getColor(`neutral-purewhite`)
|
|
622
627
|
};
|
|
623
628
|
}
|
|
624
|
-
sendEventChangeDateInView(isCollapsed) {
|
|
629
|
+
sendEventChangeDateInView(isCollapsed, currentDate) {
|
|
625
630
|
const eventData = {
|
|
626
|
-
datesInView: isCollapsed ? this.fetchDaysOfWeek() : this.fetchDaysOfMonth(),
|
|
627
|
-
monthDays: this.fetchDaysOfMonth()
|
|
631
|
+
datesInView: isCollapsed ? this.fetchDaysOfWeek(currentDate) : this.fetchDaysOfMonth(currentDate),
|
|
632
|
+
monthDays: this.fetchDaysOfMonth(currentDate)
|
|
628
633
|
};
|
|
629
634
|
this.changeDateInView.emit(eventData);
|
|
630
635
|
}
|
|
@@ -644,23 +649,14 @@ export class CuraCalendar {
|
|
|
644
649
|
}
|
|
645
650
|
this.defaultDates = this.expandDateRanges(newValue);
|
|
646
651
|
}
|
|
647
|
-
watchDatesInViewChange() {
|
|
648
|
-
if (!this.isMounted) {
|
|
649
|
-
return;
|
|
650
|
-
}
|
|
651
|
-
this.sendEventChangeDateInView(Boolean(this.collapsed));
|
|
652
|
-
}
|
|
653
652
|
watchCollapse(isCollapsed) {
|
|
654
|
-
this.sendEventChangeDateInView(isCollapsed);
|
|
655
|
-
}
|
|
656
|
-
componentDidLoad() {
|
|
657
|
-
this.isMounted = true;
|
|
653
|
+
this.sendEventChangeDateInView(isCollapsed, this.currentDate);
|
|
658
654
|
}
|
|
659
655
|
render() {
|
|
660
656
|
const { months } = this.fetchMonthNames();
|
|
661
|
-
return (h(Host, { key: '
|
|
657
|
+
return (h(Host, { key: 'ce5e455df204f6d7a8a3a34eba8198d33e1dd798', style: this.getHostCSSProperties() }, h("div", { key: 'b09f8c9ae06a38f0c04022a3c76ca89aed67f694', class: `calendar ${this.floating ? 'floating' : ''} ${this.embedded ? 'embedded' : ''} ${this.getDisabledClassModifier()}`, style: this.styles }, h("header", { key: 'c70bc378b8427424d4128f98b6f39f3a43d18e8b', class: "header" }, h("div", { key: 'cdda360107fd69b8a32e7773dfcb9f94bc63b517', class: `month-year ${this.type === 'dropdown' && 'dropdown'}` }, h("cura-icon", { key: 'a19af085d074aa74ba3a51712ed62228a4244911', class: `icon ${this.type === 'dropdown' && 'dropdown'}`, name: "left", disabled: this.isDisabled, color: this.determinePrevButtonColor(), onClick: this.handlePrevMonth }), this.type === 'dropdown' ? (h("div", { class: "select" }, h("cura-select", { disabled: this.isDisabled, size: "small", class: "drop-month", mode: "transparent", value: months[getMonth(this.currentDate)], onSelected: e => this.onMonthDropdownChange(e) }, months.map((month, index) => (h("cura-select-option", { size: "xsmall", key: index, value: month }, month)))), h("cura-select", { disabled: this.isDisabled, size: "small", class: "drop-year", mode: "transparent", value: getYear(this.currentDate).toString(), onSelected: e => this.onYearDropdownChange(e) }, this.fetchYearList().map((year, index) => (h("cura-select-option", { key: index, value: year.toString() }, year.toString())))))) : (h("cura-label", { color: !this.isDisabled ? 'neutral-black' : 'neutral-dark', size: "small" }, months[getMonth(this.currentDate)].slice(0, 3), ", ", getYear(this.currentDate))), h("cura-icon", { key: '0e9917d69adf95a5f4566d1269738d8ea4a11036', class: `icon ${this.type === 'dropdown' && 'dropdown'}`, name: "right", disabled: this.isDisabled, color: "primary-base", onClick: this.handleNextMonth }))), h("span", { key: 'f5249c9c7ebeae18af57c43bbd988aa7c21b7b04', class: "days-of-week" }, this.fetchWeekDays().map(this.renderItemWeekDays)), h("div", { key: '2465a9c40856462242a80f1fda2abf7dc2648012', class: "dates" }, !this.collapsed
|
|
662
658
|
? this.fetchDaysOfMonth().map((day, index) => (h("div", { key: index, class: this.getClasses(day), onClick: () => this.onDateClick(day) }, day ? format(day, 'd') : '')))
|
|
663
|
-
: this.fetchDaysOfWeek().map((day, index) => (h("div", { key: index, class: this.getClasses(day), onClick: () => this.onDateClick(day) }, day ? format(day, 'd') : '')))), this.collapsed !== null ? (this.collapsed ? (h("div", { class: "collapsed-container" }, h("cura-button-transparent", { disabled: this.isDisabled, onClick: () => this.showNotColapsedCalendar(), size: "small", color: "primary", fontColor: "dark", iconName: "plusCircle" }, "Veja mais datas"))) : (h("div", { class: "collapsed-container" }, h("cura-button-transparent", { onClick: () => this.showColapsedCalendar(), size: "small", color: "primary", fontColor: "dark", iconName: "minusCircle" }, "Veja menos datas")))) : null, this.isLoading && (h("div", { key: '
|
|
659
|
+
: this.fetchDaysOfWeek().map((day, index) => (h("div", { key: index, class: this.getClasses(day), onClick: () => this.onDateClick(day) }, day ? format(day, 'd') : '')))), this.collapsed !== null ? (this.collapsed ? (h("div", { class: "collapsed-container" }, h("cura-button-transparent", { disabled: this.isDisabled, onClick: () => this.showNotColapsedCalendar(), size: "small", color: "primary", fontColor: "dark", iconName: "plusCircle" }, "Veja mais datas"))) : (h("div", { class: "collapsed-container" }, h("cura-button-transparent", { onClick: () => this.showColapsedCalendar(), size: "small", color: "primary", fontColor: "dark", iconName: "minusCircle" }, "Veja menos datas")))) : null, this.isLoading && (h("div", { key: 'fba41e2fd1b743d534f763e690b8eaf8f741f2f4', class: "loading-container" }, h("cura-loader-circle", { key: '9780c689a48c0c6ef2804ba6e9864338dd6a21a9', color: "primary", size: "large" }), h("slot", { key: 'c0e9eee4818991d9fd6ac8322aa183cf574abb65', name: "loadingMessage" }))))));
|
|
664
660
|
}
|
|
665
661
|
static get is() { return "cura-calendar"; }
|
|
666
662
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1293,9 +1289,6 @@ export class CuraCalendar {
|
|
|
1293
1289
|
}, {
|
|
1294
1290
|
"propName": "defaultDate",
|
|
1295
1291
|
"methodName": "handleDefaultDateChange"
|
|
1296
|
-
}, {
|
|
1297
|
-
"propName": "currentDate",
|
|
1298
|
-
"methodName": "watchDatesInViewChange"
|
|
1299
1292
|
}, {
|
|
1300
1293
|
"propName": "collapsed",
|
|
1301
1294
|
"methodName": "watchCollapse"
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.required {
|
|
8
|
+
color: var(--error-base);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.cura-textarea-group {
|
|
12
|
+
width: 100%;
|
|
13
|
+
font-family: var(--font-family);
|
|
14
|
+
text-align: left !important;
|
|
15
|
+
}
|
|
16
|
+
.cura-textarea-group .helper-max-wrapper {
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
.cura-textarea-group .helper-text {
|
|
22
|
+
margin-top: 8px;
|
|
23
|
+
color: var(--neutral-dark);
|
|
24
|
+
}
|
|
25
|
+
.cura-textarea-group .max-length {
|
|
26
|
+
display: flex;
|
|
27
|
+
}
|
|
28
|
+
.cura-textarea-group cura-label {
|
|
29
|
+
margin-bottom: 8px;
|
|
30
|
+
}
|
|
31
|
+
.cura-textarea-group .cura-textarea-field {
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 64px;
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
background-color: var(--neutral-purewhite);
|
|
37
|
+
border: 2px solid var(--neutral-medium);
|
|
38
|
+
border-radius: 4px;
|
|
39
|
+
color: var(--primary-base);
|
|
40
|
+
letter-spacing: 0.32px;
|
|
41
|
+
line-height: 20px;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
}
|
|
45
|
+
.cura-textarea-group .cura-textarea-field textarea {
|
|
46
|
+
flex: 1;
|
|
47
|
+
width: 100%;
|
|
48
|
+
height: 100%;
|
|
49
|
+
background: transparent;
|
|
50
|
+
border: none;
|
|
51
|
+
outline: none;
|
|
52
|
+
color: var(--neutral-dark);
|
|
53
|
+
font-family: var(--font-family);
|
|
54
|
+
font-weight: var(--font-weight-medium);
|
|
55
|
+
font-size: 14px;
|
|
56
|
+
box-sizing: border-box;
|
|
57
|
+
padding: 16px 16px 0px 8px;
|
|
58
|
+
min-height: 64px;
|
|
59
|
+
resize: vertical;
|
|
60
|
+
}
|
|
61
|
+
.cura-textarea-group .cura-textarea-field textarea:not(.resizable) {
|
|
62
|
+
resize: none;
|
|
63
|
+
}
|
|
64
|
+
.cura-textarea-group .cura-textarea-field textarea::placeholder {
|
|
65
|
+
color: var(--neutral-dark);
|
|
66
|
+
}
|
|
67
|
+
.cura-textarea-group .cura-textarea-field .feedback-icon {
|
|
68
|
+
padding-left: 16px;
|
|
69
|
+
padding-top: 16px;
|
|
70
|
+
}
|
|
71
|
+
.cura-textarea-group .cura-textarea-field cura-loader-circle {
|
|
72
|
+
margin: 0px 12px;
|
|
73
|
+
}
|
|
74
|
+
.cura-textarea-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly) .cura-textarea-field {
|
|
75
|
+
border-color: var(--neutral-dark);
|
|
76
|
+
}
|
|
77
|
+
.cura-textarea-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly) .cura-textarea-field textarea {
|
|
78
|
+
color: var(--neutral-dark);
|
|
79
|
+
}
|
|
80
|
+
.cura-textarea-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly) .cura-textarea-field textarea::placeholder {
|
|
81
|
+
color: var(--neutral-dark);
|
|
82
|
+
}
|
|
83
|
+
.cura-textarea-group:focus-within .cura-textarea-field {
|
|
84
|
+
border: 2px solid var(--info-base) !important;
|
|
85
|
+
background-color: var(--neutral-purewhite);
|
|
86
|
+
outline: none;
|
|
87
|
+
}
|
|
88
|
+
.cura-textarea-group:focus-within .cura-textarea-field textarea {
|
|
89
|
+
color: var(--neutral-black) !important;
|
|
90
|
+
}
|
|
91
|
+
.cura-textarea-group.success .cura-textarea-field {
|
|
92
|
+
border: 2px solid var(--success-dark) !important;
|
|
93
|
+
background-color: var(--success-lighter) !important;
|
|
94
|
+
}
|
|
95
|
+
.cura-textarea-group.success .cura-textarea-field textarea {
|
|
96
|
+
color: var(--success-darker) !important;
|
|
97
|
+
}
|
|
98
|
+
.cura-textarea-group.success .cura-textarea-field textarea::placeholder {
|
|
99
|
+
color: var(--success-darker) !important;
|
|
100
|
+
}
|
|
101
|
+
.cura-textarea-group.error .cura-textarea-field {
|
|
102
|
+
border: 2px solid var(--error-dark) !important;
|
|
103
|
+
background-color: var(--error-lighter) !important;
|
|
104
|
+
}
|
|
105
|
+
.cura-textarea-group.error .cura-textarea-field textarea {
|
|
106
|
+
color: var(--error-darker) !important;
|
|
107
|
+
}
|
|
108
|
+
.cura-textarea-group.error .cura-textarea-field textarea::placeholder {
|
|
109
|
+
color: var(--error-darker) !important;
|
|
110
|
+
}
|
|
111
|
+
.cura-textarea-group.isLoading {
|
|
112
|
+
cursor: wait;
|
|
113
|
+
}
|
|
114
|
+
.cura-textarea-group.isLoading .cura-textarea-field {
|
|
115
|
+
background-color: var(--neutral-white) !important;
|
|
116
|
+
border: 2px solid var(--primary-base) !important;
|
|
117
|
+
}
|
|
118
|
+
.cura-textarea-group.isLoading .cura-textarea-field textarea {
|
|
119
|
+
cursor: wait;
|
|
120
|
+
color: var(--primary-base) !important;
|
|
121
|
+
}
|
|
122
|
+
.cura-textarea-group.isLoading .cura-textarea-field textarea::placeholder {
|
|
123
|
+
color: var(--primary-base) !important;
|
|
124
|
+
}
|
|
125
|
+
.cura-textarea-group.disabled .cura-textarea-field {
|
|
126
|
+
background-color: var(--neutral-white);
|
|
127
|
+
border: 2px solid var(--neutral-base);
|
|
128
|
+
}
|
|
129
|
+
.cura-textarea-group.disabled .cura-textarea-field textarea {
|
|
130
|
+
color: var(--neutral-medium);
|
|
131
|
+
}
|
|
132
|
+
.cura-textarea-group.disabled .cura-textarea-field textarea::placeholder {
|
|
133
|
+
color: var(--neutral-medium);
|
|
134
|
+
}
|
|
135
|
+
.cura-textarea-group.readOnly[read-only] .cura-textarea-field {
|
|
136
|
+
cursor: default;
|
|
137
|
+
}
|
|
138
|
+
.cura-textarea-group.readOnly[read-only] .cura-textarea-field textarea {
|
|
139
|
+
cursor: default;
|
|
140
|
+
}
|
|
141
|
+
.cura-textarea-group.small .cura-textarea-field {
|
|
142
|
+
height: 64px;
|
|
143
|
+
}
|
|
144
|
+
.cura-textarea-group.small .cura-textarea-field textarea {
|
|
145
|
+
font-size: 12px;
|
|
146
|
+
line-height: 13px;
|
|
147
|
+
letter-spacing: 0.72px;
|
|
148
|
+
min-height: 64px;
|
|
149
|
+
}
|
|
150
|
+
.cura-textarea-group.small .helper-text {
|
|
151
|
+
font-weight: var(--font-weight-regular);
|
|
152
|
+
}
|
|
153
|
+
.cura-textarea-group.medium .cura-textarea-field {
|
|
154
|
+
height: 64px;
|
|
155
|
+
}
|
|
156
|
+
.cura-textarea-group.medium .cura-textarea-field textarea {
|
|
157
|
+
font-size: 14px;
|
|
158
|
+
line-height: 16px;
|
|
159
|
+
letter-spacing: 0.56px;
|
|
160
|
+
min-height: 64px;
|
|
161
|
+
}
|
|
162
|
+
.cura-textarea-group.medium .helper-text {
|
|
163
|
+
font-weight: var(--font-weight-regular);
|
|
164
|
+
}
|
|
165
|
+
.cura-textarea-group.large .cura-textarea-field {
|
|
166
|
+
height: 64px;
|
|
167
|
+
}
|
|
168
|
+
.cura-textarea-group.large .cura-textarea-field textarea {
|
|
169
|
+
font-size: 16px;
|
|
170
|
+
min-height: 64px;
|
|
171
|
+
}
|
|
172
|
+
.cura-textarea-group.large .helper-text {
|
|
173
|
+
font-weight: var(--font-weight-bold);
|
|
174
|
+
}
|