@luzmo/lucero 0.0.16 → 0.0.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/components/NumberFormatter-DewVDY5w.cjs +18 -0
- package/components/NumberFormatter-DgOUVrge.js +136 -0
- package/components/NumberParser-Dik4a0h-.cjs +18 -0
- package/components/NumberParser-ci9J5EKv.js +173 -0
- package/components/accordion/index.cjs +1 -1
- package/components/accordion/index.js +2 -2
- package/components/action-bar/index.cjs +1 -1
- package/components/action-bar/index.js +2 -2
- package/components/action-button/index.cjs +1 -1
- package/components/action-button/index.js +2 -2
- package/components/action-group/index.js +1 -1
- package/components/action-menu/index.cjs +1 -1
- package/components/action-menu/index.js +3 -3
- package/components/avatar/index.js +1 -1
- package/components/button/index.cjs +1 -1
- package/components/button/index.js +3 -3
- package/components/button-group/index.js +1 -1
- package/components/calendar/calendar.d.ts +218 -0
- package/components/calendar/index.cjs +18 -0
- package/components/calendar/index.d.ts +7 -0
- package/components/calendar/index.js +28 -0
- package/components/checkbox/index.cjs +1 -1
- package/components/checkbox/index.js +2 -2
- package/components/class-map-Buyb1CLm.cjs +22 -0
- package/components/class-map-CJko4aXp.js +51 -0
- package/components/{close-button-DOA-6eL0.cjs → close-button-BQJ2wHkM.cjs} +1 -1
- package/components/{close-button-DU58NTKR.js → close-button-DN2cjFRq.js} +1 -1
- package/components/color-area/index.js +1 -1
- package/components/color-field/index.cjs +1 -1
- package/components/color-field/index.js +2 -2
- package/components/color-handle/index.js +1 -1
- package/components/color-loupe/index.js +1 -1
- package/components/color-menu/index.js +1 -1
- package/components/color-picker/index.js +1 -1
- package/components/color-slider/index.js +1 -1
- package/components/date-time-picker/date-time-picker.d.ts +269 -0
- package/components/date-time-picker/helpers.d.ts +10 -0
- package/components/date-time-picker/index.cjs +105 -0
- package/components/date-time-picker/index.d.ts +7 -0
- package/components/date-time-picker/index.js +1126 -0
- package/components/date-time-picker/segments/date/day-segment.d.ts +9 -0
- package/components/date-time-picker/segments/date/month-segment.d.ts +9 -0
- package/components/date-time-picker/segments/date/year-segment.d.ts +12 -0
- package/components/date-time-picker/segments/date-time-segments.d.ts +35 -0
- package/components/date-time-picker/segments/editable-segment.d.ts +21 -0
- package/components/date-time-picker/segments/literal-segment.d.ts +6 -0
- package/components/date-time-picker/segments/modifiers/clear-modifier.d.ts +5 -0
- package/components/date-time-picker/segments/modifiers/decrement-modifier.d.ts +5 -0
- package/components/date-time-picker/segments/modifiers/increment-modifier.d.ts +5 -0
- package/components/date-time-picker/segments/modifiers/input-modifier.d.ts +13 -0
- package/components/date-time-picker/segments/modifiers/segments-modifier.d.ts +18 -0
- package/components/date-time-picker/segments/segments-factory.d.ts +16 -0
- package/components/date-time-picker/segments/segments-formatter.d.ts +17 -0
- package/components/date-time-picker/segments/time/day-period-segment.d.ts +18 -0
- package/components/date-time-picker/segments/time/hour-segment.d.ts +19 -0
- package/components/date-time-picker/segments/time/millisecond-segment.d.ts +7 -0
- package/components/date-time-picker/segments/time/minute-segment.d.ts +7 -0
- package/components/date-time-picker/segments/time/second-segment.d.ts +7 -0
- package/components/date-time-picker/types.d.ts +41 -0
- package/components/divider/index.js +1 -1
- package/components/field-group/index.js +1 -1
- package/components/field-label/index.js +1 -1
- package/components/icon/index.cjs +1 -1
- package/components/icon/index.js +2 -2
- package/components/index-BziWAe4P.cjs +113 -0
- package/components/index-vWdA-LXe.js +1490 -0
- package/components/index.cjs +1 -1
- package/components/index.js +135 -129
- package/components/infield-button/index.cjs +1 -1
- package/components/infield-button/index.js +2 -2
- package/components/label/index.js +1 -1
- package/components/menu/index.cjs +66 -1
- package/components/menu/index.js +874 -10
- package/components/multi-language-field/index.js +1 -1
- package/components/number-field/index.cjs +6 -6
- package/components/number-field/index.js +128 -394
- package/components/observe-slot-presence-CmVi0zTc.js +68 -0
- package/components/observe-slot-presence-bc9chhsi.cjs +18 -0
- package/components/overlay/index.js +1 -1
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +3 -3
- package/components/{picker-C9HmjRgR.js → picker-BxEG2NdV.js} +110 -138
- package/components/picker-DROquiIZ.cjs +123 -0
- package/components/picker-button/index.cjs +37 -0
- package/components/picker-button/index.d.ts +7 -0
- package/components/picker-button/index.js +87 -0
- package/components/picker-button/picker-button.d.ts +21 -0
- package/components/popover/index.js +1 -1
- package/components/progress-circle/index.js +1 -1
- package/components/radio/index.cjs +1 -1
- package/components/radio/index.js +2 -2
- package/components/search/index.cjs +1 -1
- package/components/search/index.js +3 -3
- package/components/slider/index.js +1 -1
- package/components/swatch/index.cjs +1 -1
- package/components/swatch/index.js +2 -2
- package/components/switch/index.cjs +1 -1
- package/components/switch/index.js +2 -2
- package/components/tags/index.cjs +1 -1
- package/components/tags/index.js +2 -2
- package/components/text-field/index.cjs +1 -1
- package/components/text-field/index.js +3 -3
- package/components/text-field-BTnBJoP9.js +314 -0
- package/components/text-field-mxJCYues.cjs +85 -0
- package/components/text-field.module-ColtFhf_.js +21 -0
- package/components/text-field.module-p_VF2tC_.cjs +18 -0
- package/components/toast/index.cjs +1 -1
- package/components/toast/index.js +3 -3
- package/components/tooltip/index.js +1 -1
- package/components/unit-input/index.cjs +1 -1
- package/components/unit-input/index.js +2 -2
- package/custom-elements.json +1 -1
- package/index.d.ts +3 -0
- package/package.json +16 -1
- package/components/index-4SZZSkew.cjs +0 -83
- package/components/index-AM-58E5r.js +0 -936
- package/components/picker-B05XA8I1.cjs +0 -127
- package/components/text-field-5_ev9way.cjs +0 -85
- package/components/text-field-CvKSS59x.js +0 -313
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ZonedDateTime } from '@internationalized/date';
|
|
2
|
+
import { EditableSegment } from '../editable-segment.js';
|
|
3
|
+
export declare class DaySegment extends EditableSegment {
|
|
4
|
+
minValue: number;
|
|
5
|
+
maxValue: number;
|
|
6
|
+
value?: number;
|
|
7
|
+
constructor(formatted: string, label: string);
|
|
8
|
+
setLimits(currentDate: ZonedDateTime, month?: number, year?: number): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ZonedDateTime } from '@internationalized/date';
|
|
2
|
+
import { EditableSegment } from '../editable-segment';
|
|
3
|
+
export declare class MonthSegment extends EditableSegment {
|
|
4
|
+
minValue: number;
|
|
5
|
+
maxValue: number;
|
|
6
|
+
value?: number;
|
|
7
|
+
constructor(formatted: string, label: string);
|
|
8
|
+
setLimits(currentDate: ZonedDateTime): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ZonedDateTime } from '@internationalized/date';
|
|
2
|
+
import { EditableSegment } from '../editable-segment';
|
|
3
|
+
export declare class YearSegment extends EditableSegment {
|
|
4
|
+
minValue: number;
|
|
5
|
+
maxValue: number;
|
|
6
|
+
value?: number;
|
|
7
|
+
constructor(formatted: string, label: string);
|
|
8
|
+
setLimits(currentDate: ZonedDateTime): void;
|
|
9
|
+
increment(currentDate: ZonedDateTime): void;
|
|
10
|
+
decrement(currentDate: ZonedDateTime): void;
|
|
11
|
+
clear(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CalendarDate, CalendarDateTime } from '@internationalized/date';
|
|
2
|
+
import { EditableSegmentType, Precision } from '../types';
|
|
3
|
+
import { DaySegment } from './date/day-segment';
|
|
4
|
+
import { MonthSegment } from './date/month-segment';
|
|
5
|
+
import { YearSegment } from './date/year-segment';
|
|
6
|
+
import { EditableSegment } from './editable-segment';
|
|
7
|
+
import { LiteralSegment } from './literal-segment';
|
|
8
|
+
import { DayPeriodSegment } from './time/day-period-segment';
|
|
9
|
+
import { HourSegment } from './time/hour-segment';
|
|
10
|
+
import { MillisecondSegment } from './time/millisecond-segment';
|
|
11
|
+
import { MinuteSegment } from './time/minute-segment';
|
|
12
|
+
import { SecondSegment } from './time/second-segment';
|
|
13
|
+
export type Segment = EditableSegment | LiteralSegment;
|
|
14
|
+
export declare class DateTimeSegments {
|
|
15
|
+
private segments;
|
|
16
|
+
constructor(segments: Segment[]);
|
|
17
|
+
get all(): Segment[];
|
|
18
|
+
get editableValues(): (number | undefined)[];
|
|
19
|
+
get year(): YearSegment | undefined;
|
|
20
|
+
get month(): MonthSegment | undefined;
|
|
21
|
+
get day(): DaySegment | undefined;
|
|
22
|
+
get hour(): HourSegment | undefined;
|
|
23
|
+
get minute(): MinuteSegment | undefined;
|
|
24
|
+
get second(): SecondSegment | undefined;
|
|
25
|
+
get millisecond(): MillisecondSegment | undefined;
|
|
26
|
+
get dayPeriod(): DayPeriodSegment | undefined;
|
|
27
|
+
getByType(type: EditableSegmentType): EditableSegment | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Returns a `CalendarDate` object with the year, month and day values of the segments if they are all defined. The time values
|
|
30
|
+
* are checked and included based on the precision provided, returning a `CalendarDateTime` instead.
|
|
31
|
+
*
|
|
32
|
+
* @param precision - The precision to use when creating the date object
|
|
33
|
+
*/
|
|
34
|
+
getFormattedDate(precision?: Precision): CalendarDate | CalendarDateTime | undefined;
|
|
35
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ZonedDateTime } from '@internationalized/date';
|
|
2
|
+
import { NumberParser } from '@internationalized/number';
|
|
3
|
+
import { EditableSegmentLimits, EditableSegmentType, SegmentPlaceholder } from '../types';
|
|
4
|
+
export declare abstract class EditableSegment {
|
|
5
|
+
type: EditableSegmentType;
|
|
6
|
+
formatted: string;
|
|
7
|
+
placeholder: SegmentPlaceholder;
|
|
8
|
+
label: string;
|
|
9
|
+
abstract minValue: number;
|
|
10
|
+
abstract maxValue: number;
|
|
11
|
+
abstract value?: number;
|
|
12
|
+
constructor(type: EditableSegmentType, formatted: string, label: string);
|
|
13
|
+
increment(_value?: ZonedDateTime): void;
|
|
14
|
+
decrement(_value?: ZonedDateTime): void;
|
|
15
|
+
setValueFromDate(currentDate: ZonedDateTime): void;
|
|
16
|
+
clear(): void;
|
|
17
|
+
handleInput(eventData: string, numberParser: NumberParser): void;
|
|
18
|
+
private isInputValueCompliant;
|
|
19
|
+
get inputValidationLimits(): EditableSegmentLimits;
|
|
20
|
+
updateValueToLimits(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NumberParser } from '@internationalized/number';
|
|
2
|
+
import { EditableSegment } from '../editable-segment';
|
|
3
|
+
import { SegmentsModifier, SegmentsModifierParams } from './segments-modifier';
|
|
4
|
+
export interface InputSegmentsModifierParams extends SegmentsModifierParams {
|
|
5
|
+
eventData: string | null;
|
|
6
|
+
numberParser: NumberParser;
|
|
7
|
+
}
|
|
8
|
+
export declare class InputModifier extends SegmentsModifier {
|
|
9
|
+
private eventData;
|
|
10
|
+
private numberParser;
|
|
11
|
+
constructor(params: InputSegmentsModifierParams);
|
|
12
|
+
protected modifySegment(segment: EditableSegment): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DateFormatter, ZonedDateTime } from '@internationalized/date';
|
|
2
|
+
import { EditableSegmentType } from '../../types';
|
|
3
|
+
import { DateTimeSegments } from '../date-time-segments';
|
|
4
|
+
import { type EditableSegment } from '../editable-segment';
|
|
5
|
+
export interface SegmentsModifierParams {
|
|
6
|
+
dateFormatter: DateFormatter;
|
|
7
|
+
segments: DateTimeSegments;
|
|
8
|
+
currentDate: ZonedDateTime;
|
|
9
|
+
}
|
|
10
|
+
export declare abstract class SegmentsModifier {
|
|
11
|
+
protected segments: DateTimeSegments;
|
|
12
|
+
protected dateFormatter: DateFormatter;
|
|
13
|
+
protected currentDate: ZonedDateTime;
|
|
14
|
+
constructor(params: SegmentsModifierParams);
|
|
15
|
+
modify(segmentType: EditableSegmentType): DateTimeSegments;
|
|
16
|
+
private updateSegmentsLimits;
|
|
17
|
+
protected abstract modifySegment(segment: EditableSegment): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DateFormatter, ZonedDateTime } from '@internationalized/date';
|
|
2
|
+
import { DateTimeSegments } from './date-time-segments';
|
|
3
|
+
export declare class SegmentsFactory {
|
|
4
|
+
private dateFormatter;
|
|
5
|
+
private numberFormatter;
|
|
6
|
+
private dateTimeFieldDisplayNames;
|
|
7
|
+
constructor(dateFormatter: DateFormatter);
|
|
8
|
+
/**
|
|
9
|
+
* Creates the `DateTimeSegments` needed for the DateTimePicker
|
|
10
|
+
* @param currentDate - The date to create the segments from. This is used to set the limits and values of the segments.
|
|
11
|
+
* @param setValues - If true, the segments will have their values set from the currentDate. If false, the segments will have no values.
|
|
12
|
+
*/
|
|
13
|
+
createSegments(currentDate: ZonedDateTime, setValues?: boolean): DateTimeSegments;
|
|
14
|
+
private createSegment;
|
|
15
|
+
private displayNameOfType;
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DateFormatter, ZonedDateTime } from '@internationalized/date';
|
|
2
|
+
import { DateTimeSegments } from './date-time-segments';
|
|
3
|
+
export declare class SegmentsFormatter {
|
|
4
|
+
private dateFormatter;
|
|
5
|
+
private numberFormatter;
|
|
6
|
+
private currentDate;
|
|
7
|
+
constructor(dateFormatter: DateFormatter, currentDate: ZonedDateTime);
|
|
8
|
+
/**
|
|
9
|
+
* Formats all the `DateTimeSegments` to have the formatted property based on the value property, according to the date formatter.
|
|
10
|
+
* @param segments - `DateTimeSegments` to format
|
|
11
|
+
* @returns Formatted DateTimeSegments
|
|
12
|
+
*/
|
|
13
|
+
format(segments: DateTimeSegments): DateTimeSegments;
|
|
14
|
+
private setSegmentsFormatted;
|
|
15
|
+
private padSegmentsFormatted;
|
|
16
|
+
private getDateInfoWithDefaults;
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DateFormatter, ZonedDateTime } from '@internationalized/date';
|
|
2
|
+
import { AM, PM } from '../../types';
|
|
3
|
+
import { EditableSegment } from '../editable-segment';
|
|
4
|
+
export declare class DayPeriodSegment extends EditableSegment {
|
|
5
|
+
minValue: typeof AM;
|
|
6
|
+
maxValue: typeof PM;
|
|
7
|
+
value?: typeof AM | typeof PM;
|
|
8
|
+
private localizedMinValue;
|
|
9
|
+
private localizedMaxValue;
|
|
10
|
+
constructor(formatted: string, label: string);
|
|
11
|
+
private toggleAmPm;
|
|
12
|
+
increment(): void;
|
|
13
|
+
decrement(): void;
|
|
14
|
+
setValueFromDate(currentDate: ZonedDateTime): void;
|
|
15
|
+
handleInput(eventData: string): void;
|
|
16
|
+
setLocalizedLimits(dateFormatter: DateFormatter): void;
|
|
17
|
+
private getDayPeriodFromDate;
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ZonedDateTime } from '@internationalized/date';
|
|
2
|
+
import { EditableSegmentLimits } from '../../types';
|
|
3
|
+
import { EditableSegment } from '../editable-segment';
|
|
4
|
+
export declare class HourSegment extends EditableSegment {
|
|
5
|
+
minValue: number;
|
|
6
|
+
maxValue: number;
|
|
7
|
+
value?: number;
|
|
8
|
+
constructor(formatted: string, label: string);
|
|
9
|
+
setLimits(is12HourClock?: boolean): void;
|
|
10
|
+
setValueFromDate(currentDate: ZonedDateTime, is12HourClock?: boolean): void;
|
|
11
|
+
/**
|
|
12
|
+
* Returns the limits used to validate a user typed-in value.
|
|
13
|
+
*
|
|
14
|
+
* Different limits are needed when the user is typing in the hour segment and the clock is in 12-hour format due to the fact that
|
|
15
|
+
* the hour value of 0 should be displayed as 12. Therefore, in the 12h format, the user should be able to type in "12" but not "00",
|
|
16
|
+
* for the 00 time, which is represented by the value of 0 of the hour segment.
|
|
17
|
+
*/
|
|
18
|
+
get inputValidationLimits(): EditableSegmentLimits;
|
|
19
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { CalendarLabels } from '../calendar/calendar';
|
|
2
|
+
export declare const SegmentTypes: {
|
|
3
|
+
readonly Year: "year";
|
|
4
|
+
readonly Month: "month";
|
|
5
|
+
readonly Day: "day";
|
|
6
|
+
readonly Hour: "hour";
|
|
7
|
+
readonly Minute: "minute";
|
|
8
|
+
readonly Second: "second";
|
|
9
|
+
readonly Millisecond: "fractionalSecond";
|
|
10
|
+
readonly DayPeriod: "dayPeriod";
|
|
11
|
+
readonly Literal: "literal";
|
|
12
|
+
};
|
|
13
|
+
export type LiteralSegmentType = 'literal';
|
|
14
|
+
export type EditableSegmentType = Exclude<(typeof SegmentTypes)[keyof typeof SegmentTypes], LiteralSegmentType>;
|
|
15
|
+
export type SegmentType = EditableSegmentType | LiteralSegmentType;
|
|
16
|
+
export declare const SegmentPlaceholders: Readonly<Record<EditableSegmentType, string>>;
|
|
17
|
+
export type SegmentPlaceholder = (typeof SegmentPlaceholders)[EditableSegmentType];
|
|
18
|
+
export declare const Precisions: {
|
|
19
|
+
readonly Day: "day";
|
|
20
|
+
readonly Hour: "hour";
|
|
21
|
+
readonly Minute: "minute";
|
|
22
|
+
readonly Second: "second";
|
|
23
|
+
readonly Millisecond: "millisecond";
|
|
24
|
+
};
|
|
25
|
+
export type Precision = (typeof Precisions)[keyof typeof Precisions];
|
|
26
|
+
export type EditableSegmentLimits = {
|
|
27
|
+
minValue: number;
|
|
28
|
+
maxValue: number;
|
|
29
|
+
};
|
|
30
|
+
export type DateTimePickerLabels = CalendarLabels & {
|
|
31
|
+
empty: string;
|
|
32
|
+
calendar: string;
|
|
33
|
+
};
|
|
34
|
+
/** AM modifier: `0` hours */
|
|
35
|
+
export declare const AM = 0;
|
|
36
|
+
/** PM modifier: `12` hours */
|
|
37
|
+
export declare const PM = 12;
|
|
38
|
+
/** A base leap year used to allow for maximum number of days in February */
|
|
39
|
+
export declare const DEFAULT_LEAP_YEAR = 2000;
|
|
40
|
+
export declare const MAX_DAYS_PER_MONTH = 31;
|
|
41
|
+
export declare const MAX_DAYS_IN_LEAP_FEBRUARY = 29;
|
|
@@ -21,7 +21,7 @@ import { s as b } from "../divider.module-DwOuLGU3.js";
|
|
|
21
21
|
const n = () => {
|
|
22
22
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
23
23
|
const r = document.createElement("style");
|
|
24
|
-
r.setAttribute("data-luzmo-vars", ""), r.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color
|
|
24
|
+
r.setAttribute("data-luzmo-vars", ""), r.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(r);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
n();
|
|
@@ -19,7 +19,7 @@ import { L as r } from "../field-group-DAhrTCfl.js";
|
|
|
19
19
|
const l = () => {
|
|
20
20
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
21
21
|
const o = document.createElement("style");
|
|
22
|
-
o.setAttribute("data-luzmo-vars", ""), o.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color
|
|
22
|
+
o.setAttribute("data-luzmo-vars", ""), o.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(o);
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
l();
|
|
@@ -19,7 +19,7 @@ import { L as r } from "../field-label-CAFfGxEL.js";
|
|
|
19
19
|
const l = () => {
|
|
20
20
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
21
21
|
const o = document.createElement("style");
|
|
22
|
-
o.setAttribute("data-luzmo-vars", ""), o.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color
|
|
22
|
+
o.setAttribute("data-luzmo-vars", ""), o.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(o);
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
l();
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("@luzmo/icons"),
|
|
18
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("@luzmo/icons"),e=require("../base-B7Pfl2if.cjs"),m=require("../if-defined-B56xGmAg.cjs"),d=":host{pointer-events:none;transform:none;transform:var(--luzmo-icon-transform, none);block-size:var(--luzmo-icon-block-size, var(--luzmo-icon-size, var(--icon-size)));font-size:var(--luzmo-icon-block-size, var(--luzmo-icon-size, var(--icon-size)));color:inherit;color:var(--luzmo-icon-color, inherit);fill:currentColor;text-align:center;display:inline-block}::slotted(svg),:host(:not([block])) svg,:host(:not([block])) img{vertical-align:var(--luzmo-icon-vertical-align, -.125em)!important}:host([block]){display:block;--icon-vertical-align: 0;vertical-align:0}:host([block]) ::slotted(svg),:host([block]) svg,:host([block]) img{--icon-vertical-align: 0;vertical-align:var(--luzmo-icon-vertical-align, 0)}:host([size=xxs]){--icon-size: var(--luzmo-icon-size-xxs)}:host([size=xs]){--icon-size: var(--luzmo-icon-size-xs)}:host([size=s]){--icon-size: var(--luzmo-icon-size-s)}:host,:host([size=m]){--icon-size: var(--luzmo-icon-size-m)}:host([size=l]){--icon-size: var(--luzmo-icon-size-l)}:host([size=xl]){--icon-size: var(--luzmo-icon-size-xl)}:host([size=xxl]){--icon-size: var(--luzmo-icon-size-xxl)}:host(:not(:root)){overflow:visible}@media (forced-colors: active){:host{forced-color-adjust:auto}}img,svg,::slotted(*){height:100%;vertical-align:top;color:inherit}@media (forced-colors: active){img,svg,::slotted(*){forced-color-adjust:auto}}";var h=Object.defineProperty,u=(t,i,n,z)=>{for(var o=void 0,s=t.length-1,l;s>=0;s--)(l=t[s])&&(o=l(i,n,o)||o);return o&&h(i,n,o),o};class a extends e.LuzmoElement{constructor(){super(...arguments),this.label=""}static get styles(){return[e.r(d)]}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}update(i){i.has("label")&&(this.label?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")),super.update(i)}render(){return e.x` <slot></slot> `}}u([e.n({reflect:!0})],a.prototype,"label");u([e.n({reflect:!0})],a.prototype,"size");var p=Object.defineProperty,c=(t,i,n,z)=>{for(var o=void 0,s=t.length-1,l;s>=0;s--)(l=t[s])&&(o=l(i,n,o)||o);return o&&p(i,n,o),o};class r extends a{constructor(){super(...arguments),this.block=!1}render(){return this.icon?v.luzmoIcon(this.icon,this.options):this.src?e.x` <img src=${this.src} alt=${m.o(this.label)} /> `:super.render()}}c([e.n()],r.prototype,"src");c([e.n()],r.prototype,"options");c([e.n()],r.prototype,"icon");c([e.n({type:Boolean})],r.prototype,"block");customElements.get("luzmo-icon")||customElements.define("luzmo-icon",r);exports.LuzmoIcon=r;
|
package/components/icon/index.js
CHANGED
|
@@ -21,11 +21,11 @@ import { o as p } from "../if-defined-BSAr_4u4.js";
|
|
|
21
21
|
const d = () => {
|
|
22
22
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
23
23
|
const l = document.createElement("style");
|
|
24
|
-
l.setAttribute("data-luzmo-vars", ""), l.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color
|
|
24
|
+
l.setAttribute("data-luzmo-vars", ""), l.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(l);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
d();
|
|
28
|
-
const h = ":host{pointer-events:none;transform:none;transform:var(--luzmo-icon-transform, none);block-size:var(--luzmo-icon-block-size, var(--luzmo-icon-size, var(--icon-size)));font-size:var(--luzmo-icon-block-size, var(--luzmo-icon-size, var(--icon-size)));color:inherit;color:var(--luzmo-icon-color, inherit);fill:currentColor;text-align:center;display:inline-block}::slotted(svg),:host svg,:host img{vertical-align:var(--luzmo-icon-vertical-align, -.125em)!important}:host([block]){display:block;vertical-align:0}:host([block]) svg,:host([block]) img{vertical-align:var(--luzmo-icon-vertical-align, 0)}:host([size=xxs]){--icon-size: var(--luzmo-icon-size-xxs)}:host([size=xs]){--icon-size: var(--luzmo-icon-size-xs)}:host([size=s]){--icon-size: var(--luzmo-icon-size-s)}:host,:host([size=m]){--icon-size: var(--luzmo-icon-size-m)}:host([size=l]){--icon-size: var(--luzmo-icon-size-l)}:host([size=xl]){--icon-size: var(--luzmo-icon-size-xl)}:host([size=xxl]){--icon-size: var(--luzmo-icon-size-xxl)}:host(:not(:root)){overflow:visible}@media (forced-colors: active){:host{forced-color-adjust:auto}}img,svg,::slotted(*){height:100%;vertical-align:top;color:inherit}@media (forced-colors: active){img,svg,::slotted(*){forced-color-adjust:auto}}";
|
|
28
|
+
const h = ":host{pointer-events:none;transform:none;transform:var(--luzmo-icon-transform, none);block-size:var(--luzmo-icon-block-size, var(--luzmo-icon-size, var(--icon-size)));font-size:var(--luzmo-icon-block-size, var(--luzmo-icon-size, var(--icon-size)));color:inherit;color:var(--luzmo-icon-color, inherit);fill:currentColor;text-align:center;display:inline-block}::slotted(svg),:host(:not([block])) svg,:host(:not([block])) img{vertical-align:var(--luzmo-icon-vertical-align, -.125em)!important}:host([block]){display:block;--icon-vertical-align: 0;vertical-align:0}:host([block]) ::slotted(svg),:host([block]) svg,:host([block]) img{--icon-vertical-align: 0;vertical-align:var(--luzmo-icon-vertical-align, 0)}:host([size=xxs]){--icon-size: var(--luzmo-icon-size-xxs)}:host([size=xs]){--icon-size: var(--luzmo-icon-size-xs)}:host([size=s]){--icon-size: var(--luzmo-icon-size-s)}:host,:host([size=m]){--icon-size: var(--luzmo-icon-size-m)}:host([size=l]){--icon-size: var(--luzmo-icon-size-l)}:host([size=xl]){--icon-size: var(--luzmo-icon-size-xl)}:host([size=xxl]){--icon-size: var(--luzmo-icon-size-xxl)}:host(:not(:root)){overflow:visible}@media (forced-colors: active){:host{forced-color-adjust:auto}}img,svg,::slotted(*){height:100%;vertical-align:top;color:inherit}@media (forced-colors: active){img,svg,::slotted(*){forced-color-adjust:auto}}";
|
|
29
29
|
var v = Object.defineProperty, a = (l, e, t, z) => {
|
|
30
30
|
for (var o = void 0, r = l.length - 1, c; r >= 0; r--)
|
|
31
31
|
(c = l[r]) && (o = c(e, t, o) || o);
|