@ionic/core 9.0.11-dev.11793726772.1e883321 → 9.0.11-dev.11793727726.19b906b5
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/components/ion-action-sheet.js +1 -1
- package/components/ion-alert.js +1 -1
- package/components/ion-content.js +1 -1
- package/components/ion-datetime-button.js +1 -1
- package/components/ion-datetime.js +1 -1
- package/components/ion-modal.js +1 -1
- package/components/ion-popover.js +1 -1
- package/components/ion-select-modal.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/ion-toast.js +1 -1
- package/components/{p-DtZimz8H.js → p-1HReh-CB.js} +1 -1
- package/components/{p-BCQSEpww.js → p-B7ExaLVL.js} +1 -1
- package/components/{p-CseHeZbU.js → p-BCYVFy50.js} +1 -1
- package/components/p-ByE0slik.js +4 -0
- package/components/p-DgNvIX46.js +4 -0
- package/components/p-DmyvpOqm.js +4 -0
- package/components/p-mG85e2ek.js +4 -0
- package/css/ionic/bundle.ionic.css +1 -1
- package/css/ionic/bundle.ionic.css.map +1 -1
- package/css/ionic/core.ionic.css +1 -1
- package/css/ionic/core.ionic.css.map +1 -1
- package/css/ionic/global.bundle.ionic.css.map +1 -1
- package/css/ionic/link.ionic.css.map +1 -1
- package/css/ionic/typography.ionic.css.map +1 -1
- package/dist/cjs/ion-action-sheet.cjs.entry.js +1 -1
- package/dist/cjs/ion-alert.cjs.entry.js +1 -1
- package/dist/cjs/ion-app_8.cjs.entry.js +5 -13
- package/dist/cjs/ion-datetime-button.cjs.entry.js +33 -6
- package/dist/cjs/ion-datetime.cjs.entry.js +353 -36
- package/dist/cjs/ion-modal.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +1 -1
- package/dist/cjs/ion-toast.cjs.entry.js +1 -1
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/action-sheet/action-sheet.ionic.css +1 -1
- package/dist/collection/components/alert/alert.ionic.css +1 -1
- package/dist/collection/components/content/{content.ios.css → content.css} +41 -65
- package/dist/collection/components/content/content.js +5 -9
- package/dist/collection/components/datetime/datetime.ionic.css +179 -5
- package/dist/collection/components/datetime/datetime.ios.css +134 -2
- package/dist/collection/components/datetime/datetime.js +406 -33
- package/dist/collection/components/datetime/datetime.md.css +120 -0
- package/dist/collection/components/datetime/utils/state.js +18 -1
- package/dist/collection/components/datetime-button/datetime-button.js +34 -6
- package/dist/collection/components/modal/modal.ionic.css +2 -2
- package/dist/collection/components/popover/popover.ionic.css +1 -2
- package/dist/collection/components/toast/toast.ionic.css +1 -1
- package/dist/docs.json +160 -127
- package/dist/esm/{format-NT7iHsbA.js → format-DUHrIiJq.js} +1 -1
- package/dist/esm/ion-action-sheet.entry.js +1 -1
- package/dist/esm/ion-alert.entry.js +1 -1
- package/dist/esm/ion-app_8.entry.js +5 -13
- package/dist/esm/ion-datetime-button.entry.js +34 -7
- package/dist/esm/ion-datetime.entry.js +354 -37
- package/dist/esm/ion-modal.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +1 -1
- package/dist/esm/ion-toast.entry.js +1 -1
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/html.html-data.json +20 -0
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-b076511a.entry.js → p-3674a7de.entry.js} +1 -1
- package/dist/ionic/p-56d77e95.entry.js +4 -0
- package/dist/ionic/{p-3ddd32cc.entry.js → p-5a024b02.entry.js} +1 -1
- package/dist/ionic/p-9cce1ed5.entry.js +4 -0
- package/dist/ionic/{p-BtccSO5J.js → p-CaOPF8Xt.js} +1 -1
- package/dist/ionic/p-b30b468d.entry.js +4 -0
- package/dist/ionic/p-ceca04fb.entry.js +4 -0
- package/dist/ionic/p-d7da66b1.entry.js +4 -0
- package/dist/ionic/p-f02c29cd.entry.js +4 -0
- package/dist/types/components/datetime/datetime-interface.d.ts +4 -0
- package/dist/types/components/datetime/datetime.d.ts +71 -2
- package/dist/types/components/datetime/utils/state.d.ts +5 -2
- package/dist/types/components.d.ts +33 -0
- package/hydrate/index.js +405 -61
- package/hydrate/index.mjs +405 -61
- package/package.json +2 -2
- package/components/p-Da8LCPwo.js +0 -4
- package/components/p-DibGn4gb.js +0 -4
- package/components/p-NZGZhPF5.js +0 -4
- package/components/p-PFwuhbqg.js +0 -4
- package/dist/collection/components/content/content.ionic.css +0 -352
- package/dist/collection/components/content/content.md.css +0 -347
- package/dist/ionic/p-0743a26a.entry.js +0 -4
- package/dist/ionic/p-1d87b153.entry.js +0 -4
- package/dist/ionic/p-39e3be74.entry.js +0 -4
- package/dist/ionic/p-a1555032.entry.js +0 -4
- package/dist/ionic/p-ad46d2fd.entry.js +0 -4
- package/dist/ionic/p-dbf53341.entry.js +0 -4
|
@@ -349,11 +349,108 @@
|
|
|
349
349
|
|
|
350
350
|
:host .calendar-day-wrapper {
|
|
351
351
|
display: flex;
|
|
352
|
+
position: relative;
|
|
352
353
|
align-items: center;
|
|
353
354
|
justify-content: center;
|
|
354
355
|
min-width: 0;
|
|
355
356
|
min-height: 0;
|
|
356
357
|
overflow: visible;
|
|
358
|
+
/**
|
|
359
|
+
* Create a stacking context so the range track
|
|
360
|
+
* (::before with z-index: -1) stays behind the
|
|
361
|
+
* day button but above the host background.
|
|
362
|
+
*/
|
|
363
|
+
z-index: 0;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Each day in the range draws its own piece of the track with a
|
|
368
|
+
* ::before. In-range days fill the cell, while the start and end
|
|
369
|
+
* caps cover the half between the pill center and the next day.
|
|
370
|
+
*
|
|
371
|
+
* Grid columns are `1fr`, so cell edges land on fractional pixels
|
|
372
|
+
* and a cell's track can fall a hairline short of its neighbor's.
|
|
373
|
+
* Each day therefore extends 1px toward the next day in the range,
|
|
374
|
+
* which the next day paints over except inside such a gap.
|
|
375
|
+
*
|
|
376
|
+
* @prop --range-background: The background color of the range selection track.
|
|
377
|
+
*/
|
|
378
|
+
:host .calendar-day-wrapper-in-range::before,
|
|
379
|
+
:host .calendar-day-wrapper-range-start::before,
|
|
380
|
+
:host .calendar-day-wrapper-range-end::before {
|
|
381
|
+
position: absolute;
|
|
382
|
+
top: 50%;
|
|
383
|
+
inset-inline-start: 0;
|
|
384
|
+
inset-inline-end: 0;
|
|
385
|
+
height: var(--range-track-height);
|
|
386
|
+
transform: translateY(-50%);
|
|
387
|
+
/**
|
|
388
|
+
* `--range-background` is translucent by default, so it is layered
|
|
389
|
+
* over the datetime background to paint an opaque track. Where two
|
|
390
|
+
* days overlap, the color stays the same instead of doubling up
|
|
391
|
+
* into a darker line.
|
|
392
|
+
*/
|
|
393
|
+
background: linear-gradient(var(--range-background), var(--range-background)), linear-gradient(var(--background), var(--background));
|
|
394
|
+
content: "";
|
|
395
|
+
z-index: -1;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
:host .calendar-day-wrapper-range-start::before {
|
|
399
|
+
inset-inline-start: 50%;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
:host .calendar-day-wrapper-range-end::before {
|
|
403
|
+
inset-inline-end: 50%;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Only extend toward a day that draws the track as well. The last
|
|
408
|
+
* day of a week is followed by the next row, and the next day is
|
|
409
|
+
* unpainted when it ends the selection or is disabled inside the
|
|
410
|
+
* range, so extending there would leave a 1px nub.
|
|
411
|
+
*/
|
|
412
|
+
:host .calendar-day-wrapper-in-range:not(:nth-child(7n)):has(+ .calendar-day-wrapper-in-range)::before,
|
|
413
|
+
:host .calendar-day-wrapper-in-range:not(:nth-child(7n)):has(+ .calendar-day-wrapper-range-end)::before,
|
|
414
|
+
:host .calendar-day-wrapper-range-start:not(:nth-child(7n)):has(+ .calendar-day-wrapper-in-range)::before,
|
|
415
|
+
:host .calendar-day-wrapper-range-start:not(:nth-child(7n)):has(+ .calendar-day-wrapper-range-end)::before {
|
|
416
|
+
inset-inline-end: -1px;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* A range that continues onto the next week runs the track
|
|
421
|
+
* through the grid padding to the edge of the calendar.
|
|
422
|
+
*/
|
|
423
|
+
:host .calendar-day-wrapper-in-range:nth-child(7n)::before,
|
|
424
|
+
:host .calendar-day-wrapper-range-start:nth-child(7n)::before {
|
|
425
|
+
inset-inline-end: calc(var(--range-track-edge-overflow, 0px) * -1);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
:host .calendar-day-wrapper-in-range:nth-child(7n+1)::before,
|
|
429
|
+
:host .calendar-day-wrapper-range-end:nth-child(7n+1)::before {
|
|
430
|
+
inset-inline-start: calc(var(--range-track-edge-overflow, 0px) * -1);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* When a single day is both the start and end of the range,
|
|
435
|
+
* do not show a track since there is nothing to connect.
|
|
436
|
+
*/
|
|
437
|
+
:host .calendar-day-wrapper-range-start.calendar-day-wrapper-range-end::before {
|
|
438
|
+
display: none;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* When the component is disabled, fade the whole grid once instead of
|
|
443
|
+
* fading each day. Fading a day makes it its own compositing group, so
|
|
444
|
+
* the 1px that each day extends toward the next would be painted twice
|
|
445
|
+
* and read as a darker seam. The day buttons drop their own disabled
|
|
446
|
+
* opacity so the grid is the only thing applying it.
|
|
447
|
+
*/
|
|
448
|
+
:host(.datetime-disabled.datetime-range) .calendar-month-grid {
|
|
449
|
+
opacity: 0.4;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
:host(.datetime-disabled.datetime-range) .calendar-month-grid .calendar-day[disabled] {
|
|
453
|
+
opacity: 1;
|
|
357
454
|
}
|
|
358
455
|
|
|
359
456
|
/**
|
|
@@ -900,6 +997,29 @@ ion-picker {
|
|
|
900
997
|
color: var(--ion-color-step-500, var(--ion-text-color-step-500, gray));
|
|
901
998
|
}
|
|
902
999
|
|
|
1000
|
+
:host {
|
|
1001
|
+
--range-background: rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.12);
|
|
1002
|
+
--range-track-height: 42px;
|
|
1003
|
+
--range-track-edge-overflow: 10px;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
:host(.ion-color) {
|
|
1007
|
+
--range-background: rgba(var(--ion-color-base-rgb), 0.12);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
:host .calendar-day.calendar-day-range-start,
|
|
1011
|
+
:host .calendar-day.calendar-day-range-end {
|
|
1012
|
+
border-radius: 50%;
|
|
1013
|
+
background: var(--ion-color-primary, #0054e9);
|
|
1014
|
+
color: var(--ion-color-primary-contrast, #fff);
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
:host(.ion-color) .calendar-day.calendar-day-range-start,
|
|
1018
|
+
:host(.ion-color) .calendar-day.calendar-day-range-end {
|
|
1019
|
+
background: var(--ion-color-base);
|
|
1020
|
+
color: var(--ion-color-contrast);
|
|
1021
|
+
}
|
|
1022
|
+
|
|
903
1023
|
:host .datetime-time {
|
|
904
1024
|
-webkit-padding-start: 16px;
|
|
905
1025
|
padding-inline-start: 16px;
|
|
@@ -74,7 +74,7 @@ export const isDayDisabled = (refParts, minParts, maxParts, dayValues) => {
|
|
|
74
74
|
* Given a locale, a date, the selected date(s), and today's date,
|
|
75
75
|
* generate the state for a given calendar day button.
|
|
76
76
|
*/
|
|
77
|
-
export const getCalendarDayState = (locale, refParts, activeParts, todayParts, minParts, maxParts, dayValues) => {
|
|
77
|
+
export const getCalendarDayState = (locale, refParts, activeParts, todayParts, minParts, maxParts, dayValues, rangeParts) => {
|
|
78
78
|
/**
|
|
79
79
|
* activeParts signals what day(s) are currently selected in the datetime.
|
|
80
80
|
* If multiple="true", this will be an array, but the logic in this util
|
|
@@ -90,6 +90,20 @@ export const getCalendarDayState = (locale, refParts, activeParts, todayParts, m
|
|
|
90
90
|
const isActive = activePartsArray.find((parts) => isSameDay(refParts, parts)) !== undefined;
|
|
91
91
|
const isToday = isSameDay(refParts, todayParts);
|
|
92
92
|
const disabled = isDayDisabled(refParts, minParts, maxParts, dayValues);
|
|
93
|
+
/**
|
|
94
|
+
* Range state: determine if this day is the range start, end, or in between.
|
|
95
|
+
*/
|
|
96
|
+
let isRangeStart = false;
|
|
97
|
+
let isRangeEnd = false;
|
|
98
|
+
let isInRange = false;
|
|
99
|
+
if (rangeParts) {
|
|
100
|
+
const { start, end } = rangeParts;
|
|
101
|
+
isRangeStart = isSameDay(refParts, start);
|
|
102
|
+
if (end) {
|
|
103
|
+
isRangeEnd = isSameDay(refParts, end);
|
|
104
|
+
isInRange = !disabled && !isRangeStart && !isRangeEnd && isAfter(refParts, start) && isBefore(refParts, end);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
93
107
|
/**
|
|
94
108
|
* Note that we always return one object regardless of whether activeParts
|
|
95
109
|
* was an array, since we pare down to one value for isActive.
|
|
@@ -98,6 +112,9 @@ export const getCalendarDayState = (locale, refParts, activeParts, todayParts, m
|
|
|
98
112
|
disabled,
|
|
99
113
|
isActive,
|
|
100
114
|
isToday,
|
|
115
|
+
isRangeStart,
|
|
116
|
+
isRangeEnd,
|
|
117
|
+
isInRange,
|
|
101
118
|
ariaSelected: isActive ? 'true' : null,
|
|
102
119
|
ariaLabel: generateDayAriaLabel(locale, isToday, refParts),
|
|
103
120
|
text: refParts.day != null ? getDay(locale, refParts) : null,
|
|
@@ -6,6 +6,7 @@ import { componentOnReady, addEventListener } from "../../utils/helpers";
|
|
|
6
6
|
import { printIonError } from "../../utils/logging/index";
|
|
7
7
|
import { createColorClasses } from "../../utils/theme";
|
|
8
8
|
import { getIonTheme } from "../../global/ionic-global";
|
|
9
|
+
import { isAfter } from "../datetime/utils/comparison";
|
|
9
10
|
import { getLocalizedDateTime, getLocalizedTime } from "../datetime/utils/format";
|
|
10
11
|
import { getHourCycle } from "../datetime/utils/helpers";
|
|
11
12
|
import { parseDate } from "../datetime/utils/parse";
|
|
@@ -53,7 +54,7 @@ export class DatetimeButton {
|
|
|
53
54
|
if (!datetimeEl) {
|
|
54
55
|
return;
|
|
55
56
|
}
|
|
56
|
-
const { value, locale, formatOptions, hourCycle, preferWheel, multiple, titleSelectedDatesFormatter } = datetimeEl;
|
|
57
|
+
const { value, locale, formatOptions, hourCycle, preferWheel, multiple, selectionMode, titleSelectedDatesFormatter, } = datetimeEl;
|
|
57
58
|
const parsedValues = this.getParsedDateValues(value);
|
|
58
59
|
/**
|
|
59
60
|
* Both ion-datetime and ion-datetime-button default to today's date and
|
|
@@ -65,6 +66,8 @@ export class DatetimeButton {
|
|
|
65
66
|
if (!parsedDatetimes) {
|
|
66
67
|
return;
|
|
67
68
|
}
|
|
69
|
+
const isRangeMode = selectionMode === 'range';
|
|
70
|
+
const isMultipleMode = selectionMode === 'multiple' || (selectionMode === undefined && multiple);
|
|
68
71
|
/**
|
|
69
72
|
* If developers incorrectly use multiple="true"
|
|
70
73
|
* with non "date" datetimes, then just select
|
|
@@ -74,11 +77,12 @@ export class DatetimeButton {
|
|
|
74
77
|
*/
|
|
75
78
|
const firstParsedDatetime = parsedDatetimes[0];
|
|
76
79
|
const computedHourCycle = getHourCycle(locale, hourCycle);
|
|
80
|
+
const dateFormatOptions = formatOptions?.date ?? { month: 'short', day: 'numeric', year: 'numeric' };
|
|
77
81
|
this.dateText = this.timeText = undefined;
|
|
78
82
|
switch (datetimePresentation) {
|
|
79
83
|
case 'date-time':
|
|
80
84
|
case 'time-date':
|
|
81
|
-
const dateText = getLocalizedDateTime(locale, firstParsedDatetime,
|
|
85
|
+
const dateText = getLocalizedDateTime(locale, firstParsedDatetime, dateFormatOptions);
|
|
82
86
|
const timeText = getLocalizedTime(locale, firstParsedDatetime, computedHourCycle, formatOptions?.time);
|
|
83
87
|
if (preferWheel) {
|
|
84
88
|
this.dateText = `${dateText} ${timeText}`;
|
|
@@ -89,7 +93,31 @@ export class DatetimeButton {
|
|
|
89
93
|
}
|
|
90
94
|
break;
|
|
91
95
|
case 'date':
|
|
92
|
-
if (
|
|
96
|
+
if (isRangeMode && parsedValues.length >= 2) {
|
|
97
|
+
/**
|
|
98
|
+
* Use the first and last entries in date order, matching
|
|
99
|
+
* how ion-datetime reads a range value.
|
|
100
|
+
*/
|
|
101
|
+
let startIndex = 0;
|
|
102
|
+
let endIndex = parsedValues.length - 1;
|
|
103
|
+
if (isAfter(parsedDatetimes[startIndex], parsedDatetimes[endIndex])) {
|
|
104
|
+
[startIndex, endIndex] = [endIndex, startIndex];
|
|
105
|
+
}
|
|
106
|
+
const rangeValues = [parsedValues[startIndex], parsedValues[endIndex]];
|
|
107
|
+
const startDate = getLocalizedDateTime(locale, parsedDatetimes[startIndex], dateFormatOptions);
|
|
108
|
+
const endDate = getLocalizedDateTime(locale, parsedDatetimes[endIndex], dateFormatOptions);
|
|
109
|
+
let rangeText = `${startDate} - ${endDate}`;
|
|
110
|
+
if (titleSelectedDatesFormatter !== undefined) {
|
|
111
|
+
try {
|
|
112
|
+
rangeText = titleSelectedDatesFormatter(rangeValues);
|
|
113
|
+
}
|
|
114
|
+
catch (e) {
|
|
115
|
+
printIonError('[ion-datetime-button] - Exception in provided `titleSelectedDatesFormatter`:', e);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
this.dateText = rangeText;
|
|
119
|
+
}
|
|
120
|
+
else if (isMultipleMode && parsedValues.length !== 1) {
|
|
93
121
|
let headerText = `${parsedValues.length} days`; // default/fallback for multiple selection
|
|
94
122
|
if (titleSelectedDatesFormatter !== undefined) {
|
|
95
123
|
try {
|
|
@@ -102,7 +130,7 @@ export class DatetimeButton {
|
|
|
102
130
|
this.dateText = headerText;
|
|
103
131
|
}
|
|
104
132
|
else {
|
|
105
|
-
this.dateText = getLocalizedDateTime(locale, firstParsedDatetime,
|
|
133
|
+
this.dateText = getLocalizedDateTime(locale, firstParsedDatetime, dateFormatOptions);
|
|
106
134
|
}
|
|
107
135
|
break;
|
|
108
136
|
case 'time':
|
|
@@ -339,11 +367,11 @@ export class DatetimeButton {
|
|
|
339
367
|
render() {
|
|
340
368
|
const { color, dateText, timeText, selectedButton, datetimeActive, disabled } = this;
|
|
341
369
|
const theme = getIonTheme(this);
|
|
342
|
-
return (h(Host, { key: '
|
|
370
|
+
return (h(Host, { key: 'e022c5c280d4f889c1ba7ca3e96b38063c5add30', class: createColorClasses(color, {
|
|
343
371
|
[theme]: true,
|
|
344
372
|
[`${selectedButton}-active`]: datetimeActive,
|
|
345
373
|
['datetime-button-disabled']: disabled,
|
|
346
|
-
}) }, dateText && (h("button", { key: '
|
|
374
|
+
}) }, dateText && (h("button", { key: 'b1267d98cefbce7666b0cafa083c42f3116e2398', class: "ion-activatable", id: "date-button", "aria-expanded": datetimeActive ? 'true' : 'false', onClick: this.handleDateClick, disabled: disabled, part: "native", ref: (el) => (this.dateTargetEl = el) }, h("slot", { key: '3fdfa6adf73ee1e35cdb7f318f1d1ddcf4ab4d7b', name: "date-target" }, dateText), theme === 'md' && h("ion-ripple-effect", { key: 'a832d63c77fffe8d7e0d28827bbb469726373d1e' }))), timeText && (h("button", { key: 'c589bdf2b8221609713f0d3554494dd08a1f2e5b', class: "ion-activatable", id: "time-button", "aria-expanded": datetimeActive ? 'true' : 'false', onClick: this.handleTimeClick, disabled: disabled, part: "native", ref: (el) => (this.timeTargetEl = el) }, h("slot", { key: '10769ddadf7933d78744facaaa153bb413ff484a', name: "time-target" }, timeText), theme === 'md' && h("ion-ripple-effect", { key: '7832de031919ddfb312528b45a3dc8e1c20edea6' })))));
|
|
347
375
|
}
|
|
348
376
|
static get is() { return "ion-datetime-button"; }
|
|
349
377
|
static get encapsulation() { return "shadow"; }
|
|
@@ -208,8 +208,8 @@ ion-backdrop {
|
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
:host {
|
|
211
|
-
--background: var(--token-bg-surface-
|
|
212
|
-
--box-shadow: var(--token-elevation-
|
|
211
|
+
--background: var(--token-bg-surface-default, var(--token-primitives-base-white, #ffffff));
|
|
212
|
+
--box-shadow: var(--token-elevation-3, var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-6, 6px) var(--token-shadow-blur-32, 32px) var(--token-shadow-spread-0, 0px) var(--token-shadow-6, rgba(0, 0, 0, 0.16)), var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-2, 2px) var(--token-shadow-blur-7, 7px) var(--token-shadow-spread-0, 0px) var(--token-shadow-2, rgba(0, 0, 0, 0.05)));
|
|
213
213
|
--backdrop-opacity: 0.7;
|
|
214
214
|
color: var(--token-text-default, var(--token-primitives-neutral-1200, #242528));
|
|
215
215
|
}
|
|
@@ -262,8 +262,7 @@
|
|
|
262
262
|
:host {
|
|
263
263
|
--width: 250px;
|
|
264
264
|
--max-height: 90%;
|
|
265
|
-
--
|
|
266
|
-
--box-shadow: var(--token-elevation-3, var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-6, 6px) var(--token-shadow-blur-32, 32px) var(--token-shadow-spread-0, 0px) var(--token-shadow-6, rgba(0, 0, 0, 0.16)), var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-2, 2px) var(--token-shadow-blur-7, 7px) var(--token-shadow-spread-0, 0px) var(--token-shadow-2, rgba(0, 0, 0, 0.05)));
|
|
265
|
+
--box-shadow: var(--token-elevation-4, var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-15, 15px) var(--token-shadow-blur-48, 48px) var(--token-shadow-spread-0, 0px) var(--token-shadow-7, rgba(0, 0, 0, 0.18)), var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-3, 3px) var(--token-shadow-blur-12, 12px) var(--token-shadow-spread-0, 0px) var(--token-shadow-5, rgba(0, 0, 0, 0.12)));
|
|
267
266
|
--backdrop-opacity: 0.3;
|
|
268
267
|
}
|
|
269
268
|
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
:host {
|
|
238
|
-
--box-shadow: var(--token-elevation-
|
|
238
|
+
--box-shadow: var(--token-elevation-4, var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-15, 15px) var(--token-shadow-blur-48, 48px) var(--token-shadow-spread-0, 0px) var(--token-shadow-7, rgba(0, 0, 0, 0.18)), var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-3, 3px) var(--token-shadow-blur-12, 12px) var(--token-shadow-spread-0, 0px) var(--token-shadow-5, rgba(0, 0, 0, 0.12)));
|
|
239
239
|
--max-width: 343px;
|
|
240
240
|
--start: var(--token-space-200, var(--token-scale-200, 8px));
|
|
241
241
|
--end: var(--token-space-200, var(--token-scale-200, 8px));
|