@fluentui/web-components 2.0.1 → 2.1.2
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/CHANGELOG.json +61 -1
- package/CHANGELOG.md +38 -2
- package/dist/dts/anchor/anchor.stories.d.ts +1 -1
- package/dist/dts/badge/badge.stories.d.ts +1 -1
- package/dist/dts/button/button.stories.d.ts +1 -1
- package/dist/dts/calendar/calendar.stories.d.ts +86 -0
- package/dist/dts/calendar/calendar.styles.d.ts +7 -0
- package/dist/dts/calendar/index.d.ts +18 -0
- package/dist/dts/custom-elements.d.ts +13 -11
- package/dist/dts/menu/menu.stories.d.ts +1 -1
- package/dist/dts/text-area/text-area.stories.d.ts +1 -1
- package/dist/dts/text-field/text-field.stories.d.ts +1 -1
- package/dist/dts/tooltip/tooltip.stories.d.ts +1 -1
- package/dist/esm/accordion/accordion-item/accordion-item.styles.js +6 -5
- package/dist/esm/calendar/calendar.stories.js +115 -0
- package/dist/esm/calendar/calendar.styles.js +133 -0
- package/dist/esm/calendar/index.js +31 -0
- package/dist/esm/checkbox/checkbox.styles.js +0 -1
- package/dist/esm/custom-elements.js +3 -1
- package/dist/esm/divider/divider.styles.js +1 -2
- package/dist/esm/flipper/flipper.styles.js +0 -1
- package/dist/esm/listbox/listbox.styles.js +5 -1
- package/dist/esm/listbox-option/listbox-option.styles.js +0 -1
- package/dist/esm/menu/menu.styles.js +9 -2
- package/dist/esm/menu-item/menu-item.styles.js +1 -2
- package/dist/esm/progress/progress/progress.styles.js +0 -1
- package/dist/esm/progress/progress-ring/progress-ring.styles.js +0 -1
- package/dist/esm/radio/radio.styles.js +0 -1
- package/dist/esm/radio-group/radio-group.styles.js +0 -2
- package/dist/esm/slider/slider.styles.js +0 -1
- package/dist/esm/switch/switch.styles.js +3 -3
- package/dist/esm/tabs/tabs.stories.js +56 -2
- package/dist/esm/tabs/tabs.styles.js +1 -0
- package/dist/fluent-web-components.api.json +141 -12
- package/dist/web-components.d.ts +12 -0
- package/dist/web-components.js +700 -20
- package/dist/web-components.min.js +147 -143
- package/docs/api-report.md +12 -7
- package/package.json +1 -1
package/dist/web-components.js
CHANGED
|
@@ -3630,7 +3630,7 @@ function when(binding, templateOrTemplateBinding) {
|
|
|
3630
3630
|
return (source, context) => binding(source, context) ? getTemplate(source, context) : null;
|
|
3631
3631
|
}
|
|
3632
3632
|
|
|
3633
|
-
Object.freeze({
|
|
3633
|
+
const defaultRepeatOptions = Object.freeze({
|
|
3634
3634
|
positioning: false
|
|
3635
3635
|
});
|
|
3636
3636
|
|
|
@@ -3892,6 +3892,19 @@ class RepeatDirective extends HTMLDirective {
|
|
|
3892
3892
|
}
|
|
3893
3893
|
|
|
3894
3894
|
}
|
|
3895
|
+
/**
|
|
3896
|
+
* A directive that enables list rendering.
|
|
3897
|
+
* @param itemsBinding - The array to render.
|
|
3898
|
+
* @param templateOrTemplateBinding - The template or a template binding used obtain a template
|
|
3899
|
+
* to render for each item in the array.
|
|
3900
|
+
* @param options - Options used to turn on special repeat features.
|
|
3901
|
+
* @public
|
|
3902
|
+
*/
|
|
3903
|
+
|
|
3904
|
+
function repeat(itemsBinding, templateOrTemplateBinding, options = defaultRepeatOptions) {
|
|
3905
|
+
const templateBinding = typeof templateOrTemplateBinding === "function" ? templateOrTemplateBinding : () => templateOrTemplateBinding;
|
|
3906
|
+
return new RepeatDirective(itemsBinding, templateBinding, options);
|
|
3907
|
+
}
|
|
3895
3908
|
|
|
3896
3909
|
/**
|
|
3897
3910
|
* Creates a function that can be used to filter a Node array, selecting only elements.
|
|
@@ -4144,7 +4157,7 @@ const startSlotTemplate = (context, definition) => html`<span part="start" ${ref
|
|
|
4144
4157
|
* @deprecated - use endSlotTemplate
|
|
4145
4158
|
*/
|
|
4146
4159
|
|
|
4147
|
-
html`<span part="end" ${ref("endContainer")}><slot name="end" ${ref("end")} @slotchange="${x => x.handleEndContentChange()}"></slot></span>`;
|
|
4160
|
+
const endTemplate = html`<span part="end" ${ref("endContainer")}><slot name="end" ${ref("end")} @slotchange="${x => x.handleEndContentChange()}"></slot></span>`;
|
|
4148
4161
|
/**
|
|
4149
4162
|
* The template for the start element.
|
|
4150
4163
|
* For use with {@link StartEnd}
|
|
@@ -4153,7 +4166,7 @@ html`<span part="end" ${ref("endContainer")}><slot name="end" ${ref("end")} @slo
|
|
|
4153
4166
|
* @deprecated - use startSlotTemplate
|
|
4154
4167
|
*/
|
|
4155
4168
|
|
|
4156
|
-
html`<span part="start" ${ref("startContainer")}><slot name="start" ${ref("start")} @slotchange="${x => x.handleStartContentChange()}"></slot></span>`;
|
|
4169
|
+
const startTemplate = html`<span part="start" ${ref("startContainer")}><slot name="start" ${ref("start")} @slotchange="${x => x.handleStartContentChange()}"></slot></span>`;
|
|
4157
4170
|
|
|
4158
4171
|
/**
|
|
4159
4172
|
* The template for the {@link @microsoft/fast-foundation#(AccordionItem:class)} component.
|
|
@@ -8612,6 +8625,521 @@ __decorate$1([attr({
|
|
|
8612
8625
|
applyMixins(DelegatesARIAButton, ARIAGlobalStatesAndProperties);
|
|
8613
8626
|
applyMixins(Button$1, StartEnd, DelegatesARIAButton);
|
|
8614
8627
|
|
|
8628
|
+
/**
|
|
8629
|
+
* Date formatting utility
|
|
8630
|
+
* @public
|
|
8631
|
+
*/
|
|
8632
|
+
class DateFormatter {
|
|
8633
|
+
constructor(config) {
|
|
8634
|
+
/**
|
|
8635
|
+
* Formatting for the day
|
|
8636
|
+
* @public
|
|
8637
|
+
*/
|
|
8638
|
+
this.dayFormat = "numeric";
|
|
8639
|
+
/**
|
|
8640
|
+
* Formatting for the weekday labels
|
|
8641
|
+
* @public
|
|
8642
|
+
*/
|
|
8643
|
+
|
|
8644
|
+
this.weekdayFormat = "long";
|
|
8645
|
+
/**
|
|
8646
|
+
* Formatting for the month
|
|
8647
|
+
* @public
|
|
8648
|
+
*/
|
|
8649
|
+
|
|
8650
|
+
this.monthFormat = "long";
|
|
8651
|
+
/**
|
|
8652
|
+
* Formatting for the year
|
|
8653
|
+
* @public
|
|
8654
|
+
*/
|
|
8655
|
+
|
|
8656
|
+
this.yearFormat = "numeric";
|
|
8657
|
+
/**
|
|
8658
|
+
* Date used for formatting
|
|
8659
|
+
*/
|
|
8660
|
+
|
|
8661
|
+
this.date = new Date();
|
|
8662
|
+
/**
|
|
8663
|
+
* Add properties on construction
|
|
8664
|
+
*/
|
|
8665
|
+
|
|
8666
|
+
if (config) {
|
|
8667
|
+
for (const key in config) {
|
|
8668
|
+
const value = config[key];
|
|
8669
|
+
|
|
8670
|
+
if (key === "date") {
|
|
8671
|
+
this.date = this.getDateObject(value);
|
|
8672
|
+
} else {
|
|
8673
|
+
this[key] = value;
|
|
8674
|
+
}
|
|
8675
|
+
}
|
|
8676
|
+
}
|
|
8677
|
+
}
|
|
8678
|
+
/**
|
|
8679
|
+
* Helper function to make sure that the DateFormatter is working with an instance of Date
|
|
8680
|
+
* @param date - The date as an object, string or Date insance
|
|
8681
|
+
* @returns - A Date instance
|
|
8682
|
+
* @public
|
|
8683
|
+
*/
|
|
8684
|
+
|
|
8685
|
+
|
|
8686
|
+
getDateObject(date) {
|
|
8687
|
+
if (typeof date === "string") {
|
|
8688
|
+
const dates = date.split(/[/-]/);
|
|
8689
|
+
|
|
8690
|
+
if (dates.length < 3) {
|
|
8691
|
+
return new Date();
|
|
8692
|
+
}
|
|
8693
|
+
|
|
8694
|
+
return new Date(parseInt(dates[2], 10), parseInt(dates[0], 10) - 1, parseInt(dates[1], 10));
|
|
8695
|
+
} else if ("day" in date && "month" in date && "year" in date) {
|
|
8696
|
+
const {
|
|
8697
|
+
day,
|
|
8698
|
+
month,
|
|
8699
|
+
year
|
|
8700
|
+
} = date;
|
|
8701
|
+
return new Date(year, month - 1, day);
|
|
8702
|
+
}
|
|
8703
|
+
|
|
8704
|
+
return date;
|
|
8705
|
+
}
|
|
8706
|
+
/**
|
|
8707
|
+
*
|
|
8708
|
+
* @param date - a valide date as either a Date, string, objec or a DateFormatter
|
|
8709
|
+
* @param format - The formatting for the string
|
|
8710
|
+
* @param locale - locale data used for formatting
|
|
8711
|
+
* @returns A localized string of the date provided
|
|
8712
|
+
* @public
|
|
8713
|
+
*/
|
|
8714
|
+
|
|
8715
|
+
|
|
8716
|
+
getDate(date = this.date, format = {
|
|
8717
|
+
weekday: this.weekdayFormat,
|
|
8718
|
+
month: this.monthFormat,
|
|
8719
|
+
day: this.dayFormat,
|
|
8720
|
+
year: this.yearFormat
|
|
8721
|
+
}, locale = this.locale) {
|
|
8722
|
+
const dateObj = this.getDateObject(date);
|
|
8723
|
+
const optionsWithTimeZone = Object.assign({
|
|
8724
|
+
timeZone: "utc"
|
|
8725
|
+
}, format);
|
|
8726
|
+
return new Intl.DateTimeFormat(locale, optionsWithTimeZone).format(dateObj);
|
|
8727
|
+
}
|
|
8728
|
+
/**
|
|
8729
|
+
*
|
|
8730
|
+
* @param day - Day to localize
|
|
8731
|
+
* @param format - The formatting for the day
|
|
8732
|
+
* @param locale - The locale data used for formatting
|
|
8733
|
+
* @returns - A localized number for the day
|
|
8734
|
+
* @public
|
|
8735
|
+
*/
|
|
8736
|
+
|
|
8737
|
+
|
|
8738
|
+
getDay(day = this.date.getDate(), format = this.dayFormat, locale = this.locale) {
|
|
8739
|
+
return this.getDate({
|
|
8740
|
+
month: 1,
|
|
8741
|
+
day,
|
|
8742
|
+
year: 2020
|
|
8743
|
+
}, {
|
|
8744
|
+
day: format
|
|
8745
|
+
}, locale);
|
|
8746
|
+
}
|
|
8747
|
+
/**
|
|
8748
|
+
*
|
|
8749
|
+
* @param month - The month to localize
|
|
8750
|
+
* @param format - The formatting for the month
|
|
8751
|
+
* @param locale - The locale data used for formatting
|
|
8752
|
+
* @returns - A localized name of the month
|
|
8753
|
+
* @public
|
|
8754
|
+
*/
|
|
8755
|
+
|
|
8756
|
+
|
|
8757
|
+
getMonth(month = this.date.getMonth() + 1, format = this.monthFormat, locale = this.locale) {
|
|
8758
|
+
return this.getDate({
|
|
8759
|
+
month,
|
|
8760
|
+
day: 2,
|
|
8761
|
+
year: 2020
|
|
8762
|
+
}, {
|
|
8763
|
+
month: format
|
|
8764
|
+
}, locale);
|
|
8765
|
+
}
|
|
8766
|
+
/**
|
|
8767
|
+
*
|
|
8768
|
+
* @param year - The year to localize
|
|
8769
|
+
* @param format - The formatting for the year
|
|
8770
|
+
* @param locale - The locale data used for formatting
|
|
8771
|
+
* @returns - A localized string for the year
|
|
8772
|
+
* @public
|
|
8773
|
+
*/
|
|
8774
|
+
|
|
8775
|
+
|
|
8776
|
+
getYear(year = this.date.getFullYear(), format = this.yearFormat, locale = this.locale) {
|
|
8777
|
+
return this.getDate({
|
|
8778
|
+
month: 2,
|
|
8779
|
+
day: 2,
|
|
8780
|
+
year
|
|
8781
|
+
}, {
|
|
8782
|
+
year: format
|
|
8783
|
+
}, locale);
|
|
8784
|
+
}
|
|
8785
|
+
/**
|
|
8786
|
+
*
|
|
8787
|
+
* @param weekday - The number of the weekday, defaults to Sunday
|
|
8788
|
+
* @param format - The formatting for the weekday label
|
|
8789
|
+
* @param locale - The locale data used for formatting
|
|
8790
|
+
* @returns - A formatted weekday label
|
|
8791
|
+
* @public
|
|
8792
|
+
*/
|
|
8793
|
+
|
|
8794
|
+
|
|
8795
|
+
getWeekday(weekday = 0, format = this.weekdayFormat, locale = this.locale) {
|
|
8796
|
+
const date = `1-${weekday + 1}-2017`;
|
|
8797
|
+
return this.getDate(date, {
|
|
8798
|
+
weekday: format
|
|
8799
|
+
}, locale);
|
|
8800
|
+
}
|
|
8801
|
+
/**
|
|
8802
|
+
*
|
|
8803
|
+
* @param format - The formatting for the weekdays
|
|
8804
|
+
* @param locale - The locale data used for formatting
|
|
8805
|
+
* @returns - An array of the weekday labels
|
|
8806
|
+
* @public
|
|
8807
|
+
*/
|
|
8808
|
+
|
|
8809
|
+
|
|
8810
|
+
getWeekdays(format = this.weekdayFormat, locale = this.locale) {
|
|
8811
|
+
return Array(7).fill(null).map((_, day) => this.getWeekday(day, format, locale));
|
|
8812
|
+
}
|
|
8813
|
+
|
|
8814
|
+
}
|
|
8815
|
+
|
|
8816
|
+
/**
|
|
8817
|
+
* Calendar component
|
|
8818
|
+
* @public
|
|
8819
|
+
*/
|
|
8820
|
+
|
|
8821
|
+
class Calendar$1 extends FoundationElement {
|
|
8822
|
+
constructor() {
|
|
8823
|
+
super(...arguments);
|
|
8824
|
+
/**
|
|
8825
|
+
* date formatter utitlity for getting localized strings
|
|
8826
|
+
* @public
|
|
8827
|
+
*/
|
|
8828
|
+
|
|
8829
|
+
this.dateFormatter = new DateFormatter();
|
|
8830
|
+
/**
|
|
8831
|
+
* Readonly attribute for turning off data-grid
|
|
8832
|
+
* @public
|
|
8833
|
+
*/
|
|
8834
|
+
|
|
8835
|
+
this.readonly = false;
|
|
8836
|
+
/**
|
|
8837
|
+
* String repesentation of the full locale including market, calendar type and numbering system
|
|
8838
|
+
* @public
|
|
8839
|
+
*/
|
|
8840
|
+
|
|
8841
|
+
this.locale = "en-US";
|
|
8842
|
+
/**
|
|
8843
|
+
* Month to display
|
|
8844
|
+
* @public
|
|
8845
|
+
*/
|
|
8846
|
+
|
|
8847
|
+
this.month = new Date().getMonth() + 1;
|
|
8848
|
+
/**
|
|
8849
|
+
* Year of the month to display
|
|
8850
|
+
* @public
|
|
8851
|
+
*/
|
|
8852
|
+
|
|
8853
|
+
this.year = new Date().getFullYear();
|
|
8854
|
+
/**
|
|
8855
|
+
* Format style for the day
|
|
8856
|
+
* @public
|
|
8857
|
+
*/
|
|
8858
|
+
|
|
8859
|
+
this.dayFormat = "numeric";
|
|
8860
|
+
/**
|
|
8861
|
+
* Format style for the week day labels
|
|
8862
|
+
* @public
|
|
8863
|
+
*/
|
|
8864
|
+
|
|
8865
|
+
this.weekdayFormat = "short";
|
|
8866
|
+
/**
|
|
8867
|
+
* Format style for the month label
|
|
8868
|
+
* @public
|
|
8869
|
+
*/
|
|
8870
|
+
|
|
8871
|
+
this.monthFormat = "long";
|
|
8872
|
+
/**
|
|
8873
|
+
* Format style for the year used in the title
|
|
8874
|
+
* @public
|
|
8875
|
+
*/
|
|
8876
|
+
|
|
8877
|
+
this.yearFormat = "numeric";
|
|
8878
|
+
/**
|
|
8879
|
+
* Minimum number of weeks to show for the month
|
|
8880
|
+
* This can be used to normalize the calendar view
|
|
8881
|
+
* when changing or across multiple calendars
|
|
8882
|
+
* @public
|
|
8883
|
+
*/
|
|
8884
|
+
|
|
8885
|
+
this.minWeeks = 0;
|
|
8886
|
+
/**
|
|
8887
|
+
* A list of dates that should be shown as disabled
|
|
8888
|
+
* @public
|
|
8889
|
+
*/
|
|
8890
|
+
|
|
8891
|
+
this.disabledDates = "";
|
|
8892
|
+
/**
|
|
8893
|
+
* A list of dates that should be shown as highlighted
|
|
8894
|
+
* @public
|
|
8895
|
+
*/
|
|
8896
|
+
|
|
8897
|
+
this.selectedDates = "";
|
|
8898
|
+
/**
|
|
8899
|
+
* The number of miliseconds in a day
|
|
8900
|
+
* @internal
|
|
8901
|
+
*/
|
|
8902
|
+
|
|
8903
|
+
this.oneDayInMs = 86400000;
|
|
8904
|
+
}
|
|
8905
|
+
|
|
8906
|
+
localeChanged() {
|
|
8907
|
+
this.dateFormatter.locale = this.locale;
|
|
8908
|
+
}
|
|
8909
|
+
|
|
8910
|
+
dayFormatChanged() {
|
|
8911
|
+
this.dateFormatter.dayFormat = this.dayFormat;
|
|
8912
|
+
}
|
|
8913
|
+
|
|
8914
|
+
weekdayFormatChanged() {
|
|
8915
|
+
this.dateFormatter.weekdayFormat = this.weekdayFormat;
|
|
8916
|
+
}
|
|
8917
|
+
|
|
8918
|
+
monthFormatChanged() {
|
|
8919
|
+
this.dateFormatter.monthFormat = this.monthFormat;
|
|
8920
|
+
}
|
|
8921
|
+
|
|
8922
|
+
yearFormatChanged() {
|
|
8923
|
+
this.dateFormatter.yearFormat = this.yearFormat;
|
|
8924
|
+
}
|
|
8925
|
+
/**
|
|
8926
|
+
* Gets data needed to render about a calendar month as well as the previous and next months
|
|
8927
|
+
* @param year - year of the calendar
|
|
8928
|
+
* @param month - month of the calendar
|
|
8929
|
+
* @returns - an object with data about the current and 2 surrounding months
|
|
8930
|
+
* @public
|
|
8931
|
+
*/
|
|
8932
|
+
|
|
8933
|
+
|
|
8934
|
+
getMonthInfo(month = this.month, year = this.year) {
|
|
8935
|
+
const getFirstDay = date => new Date(date.getFullYear(), date.getMonth(), 1).getDay();
|
|
8936
|
+
|
|
8937
|
+
const getLength = date => {
|
|
8938
|
+
const nextMonth = new Date(date.getFullYear(), date.getMonth() + 1, 1);
|
|
8939
|
+
return new Date(nextMonth.getTime() - this.oneDayInMs).getDate();
|
|
8940
|
+
};
|
|
8941
|
+
|
|
8942
|
+
const thisMonth = new Date(year, month - 1);
|
|
8943
|
+
const nextMonth = new Date(year, month);
|
|
8944
|
+
const previousMonth = new Date(year, month - 2);
|
|
8945
|
+
return {
|
|
8946
|
+
length: getLength(thisMonth),
|
|
8947
|
+
month,
|
|
8948
|
+
start: getFirstDay(thisMonth),
|
|
8949
|
+
year,
|
|
8950
|
+
previous: {
|
|
8951
|
+
length: getLength(previousMonth),
|
|
8952
|
+
month: previousMonth.getMonth() + 1,
|
|
8953
|
+
start: getFirstDay(previousMonth),
|
|
8954
|
+
year: previousMonth.getFullYear()
|
|
8955
|
+
},
|
|
8956
|
+
next: {
|
|
8957
|
+
length: getLength(nextMonth),
|
|
8958
|
+
month: nextMonth.getMonth() + 1,
|
|
8959
|
+
start: getFirstDay(nextMonth),
|
|
8960
|
+
year: nextMonth.getFullYear()
|
|
8961
|
+
}
|
|
8962
|
+
};
|
|
8963
|
+
}
|
|
8964
|
+
/**
|
|
8965
|
+
* A list of calendar days
|
|
8966
|
+
* @param info - an object containing the information needed to render a calendar month
|
|
8967
|
+
* @param minWeeks - minimum number of weeks to show
|
|
8968
|
+
* @returns a list of days in a calendar month
|
|
8969
|
+
* @public
|
|
8970
|
+
*/
|
|
8971
|
+
|
|
8972
|
+
|
|
8973
|
+
getDays(info = this.getMonthInfo(), minWeeks = this.minWeeks) {
|
|
8974
|
+
minWeeks = minWeeks > 10 ? 10 : minWeeks;
|
|
8975
|
+
const {
|
|
8976
|
+
start,
|
|
8977
|
+
length,
|
|
8978
|
+
previous,
|
|
8979
|
+
next
|
|
8980
|
+
} = info;
|
|
8981
|
+
const days = [];
|
|
8982
|
+
let dayCount = 1 - start;
|
|
8983
|
+
|
|
8984
|
+
while (dayCount < length + 1 || days.length < minWeeks || days[days.length - 1].length % 7 !== 0) {
|
|
8985
|
+
const {
|
|
8986
|
+
month,
|
|
8987
|
+
year
|
|
8988
|
+
} = dayCount < 1 ? previous : dayCount > length ? next : info;
|
|
8989
|
+
const day = dayCount < 1 ? previous.length + dayCount : dayCount > length ? dayCount - length : dayCount;
|
|
8990
|
+
const dateString = `${month}-${day}-${year}`;
|
|
8991
|
+
const disabled = this.dateInString(dateString, this.disabledDates);
|
|
8992
|
+
const selected = this.dateInString(dateString, this.selectedDates);
|
|
8993
|
+
const date = {
|
|
8994
|
+
day,
|
|
8995
|
+
month,
|
|
8996
|
+
year,
|
|
8997
|
+
disabled,
|
|
8998
|
+
selected
|
|
8999
|
+
};
|
|
9000
|
+
const target = days[days.length - 1];
|
|
9001
|
+
|
|
9002
|
+
if (days.length === 0 || target.length % 7 === 0) {
|
|
9003
|
+
days.push([date]);
|
|
9004
|
+
} else {
|
|
9005
|
+
target.push(date);
|
|
9006
|
+
}
|
|
9007
|
+
|
|
9008
|
+
dayCount++;
|
|
9009
|
+
}
|
|
9010
|
+
|
|
9011
|
+
return days;
|
|
9012
|
+
}
|
|
9013
|
+
/**
|
|
9014
|
+
* A helper function that checks if a date exists in a list of dates
|
|
9015
|
+
* @param date - A date objec that includes the day, month and year
|
|
9016
|
+
* @param datesString - a comma separated list of dates
|
|
9017
|
+
* @returns - Returns true if it found the date in the list of dates
|
|
9018
|
+
* @public
|
|
9019
|
+
*/
|
|
9020
|
+
|
|
9021
|
+
|
|
9022
|
+
dateInString(date, datesString) {
|
|
9023
|
+
const dates = datesString.split(",").map(str => str.trim());
|
|
9024
|
+
date = typeof date === "string" ? date : `${date.getMonth() + 1}-${date.getDate()}-${date.getFullYear()}`;
|
|
9025
|
+
return dates.some(d => d === date);
|
|
9026
|
+
}
|
|
9027
|
+
/**
|
|
9028
|
+
* Creates a class string for the day container
|
|
9029
|
+
* @param date - date of the calendar cell
|
|
9030
|
+
* @returns - string of class names
|
|
9031
|
+
* @public
|
|
9032
|
+
*/
|
|
9033
|
+
|
|
9034
|
+
|
|
9035
|
+
getDayClassNames(date, todayString) {
|
|
9036
|
+
const {
|
|
9037
|
+
day,
|
|
9038
|
+
month,
|
|
9039
|
+
year,
|
|
9040
|
+
disabled,
|
|
9041
|
+
selected
|
|
9042
|
+
} = date;
|
|
9043
|
+
const today = todayString === `${month}-${day}-${year}`;
|
|
9044
|
+
const inactive = this.month !== month;
|
|
9045
|
+
return ["day", today && "today", inactive && "inactive", disabled && "disabled", selected && "selected"].filter(Boolean).join(" ");
|
|
9046
|
+
}
|
|
9047
|
+
/**
|
|
9048
|
+
* Returns a list of weekday labels
|
|
9049
|
+
* @returns An array of weekday text and full text if abbreviated
|
|
9050
|
+
* @public
|
|
9051
|
+
*/
|
|
9052
|
+
|
|
9053
|
+
|
|
9054
|
+
getWeekdayText() {
|
|
9055
|
+
const weekdayText = this.dateFormatter.getWeekdays().map(text => ({
|
|
9056
|
+
text
|
|
9057
|
+
}));
|
|
9058
|
+
|
|
9059
|
+
if (this.weekdayFormat !== "long") {
|
|
9060
|
+
const longText = this.dateFormatter.getWeekdays("long");
|
|
9061
|
+
weekdayText.forEach((weekday, index) => {
|
|
9062
|
+
weekday.abbr = longText[index];
|
|
9063
|
+
});
|
|
9064
|
+
}
|
|
9065
|
+
|
|
9066
|
+
return weekdayText;
|
|
9067
|
+
}
|
|
9068
|
+
/**
|
|
9069
|
+
* Emits the "date-select" event with the day, month and year.
|
|
9070
|
+
* @param date - Date cell
|
|
9071
|
+
* @public
|
|
9072
|
+
*/
|
|
9073
|
+
|
|
9074
|
+
|
|
9075
|
+
handleDateSelect(event, day) {
|
|
9076
|
+
event.preventDefault;
|
|
9077
|
+
this.$emit("dateselected", day);
|
|
9078
|
+
}
|
|
9079
|
+
/**
|
|
9080
|
+
* Handles keyboard events on a cell
|
|
9081
|
+
* @param event - Keyboard event
|
|
9082
|
+
* @param date - Date of the cell selected
|
|
9083
|
+
*/
|
|
9084
|
+
|
|
9085
|
+
|
|
9086
|
+
handleKeydown(event, date) {
|
|
9087
|
+
if (event.key === keyEnter) {
|
|
9088
|
+
this.handleDateSelect(event, date);
|
|
9089
|
+
}
|
|
9090
|
+
|
|
9091
|
+
return true;
|
|
9092
|
+
}
|
|
9093
|
+
|
|
9094
|
+
}
|
|
9095
|
+
|
|
9096
|
+
__decorate$1([attr({
|
|
9097
|
+
mode: "boolean"
|
|
9098
|
+
})], Calendar$1.prototype, "readonly", void 0);
|
|
9099
|
+
|
|
9100
|
+
__decorate$1([attr], Calendar$1.prototype, "locale", void 0);
|
|
9101
|
+
|
|
9102
|
+
__decorate$1([attr({
|
|
9103
|
+
converter: nullableNumberConverter
|
|
9104
|
+
})], Calendar$1.prototype, "month", void 0);
|
|
9105
|
+
|
|
9106
|
+
__decorate$1([attr({
|
|
9107
|
+
converter: nullableNumberConverter
|
|
9108
|
+
})], Calendar$1.prototype, "year", void 0);
|
|
9109
|
+
|
|
9110
|
+
__decorate$1([attr({
|
|
9111
|
+
attribute: "day-format",
|
|
9112
|
+
mode: "fromView"
|
|
9113
|
+
})], Calendar$1.prototype, "dayFormat", void 0);
|
|
9114
|
+
|
|
9115
|
+
__decorate$1([attr({
|
|
9116
|
+
attribute: "weekday-format",
|
|
9117
|
+
mode: "fromView"
|
|
9118
|
+
})], Calendar$1.prototype, "weekdayFormat", void 0);
|
|
9119
|
+
|
|
9120
|
+
__decorate$1([attr({
|
|
9121
|
+
attribute: "month-format",
|
|
9122
|
+
mode: "fromView"
|
|
9123
|
+
})], Calendar$1.prototype, "monthFormat", void 0);
|
|
9124
|
+
|
|
9125
|
+
__decorate$1([attr({
|
|
9126
|
+
attribute: "year-format",
|
|
9127
|
+
mode: "fromView"
|
|
9128
|
+
})], Calendar$1.prototype, "yearFormat", void 0);
|
|
9129
|
+
|
|
9130
|
+
__decorate$1([attr({
|
|
9131
|
+
attribute: "min-weeks",
|
|
9132
|
+
converter: nullableNumberConverter
|
|
9133
|
+
})], Calendar$1.prototype, "minWeeks", void 0);
|
|
9134
|
+
|
|
9135
|
+
__decorate$1([attr({
|
|
9136
|
+
attribute: "disabled-dates"
|
|
9137
|
+
})], Calendar$1.prototype, "disabledDates", void 0);
|
|
9138
|
+
|
|
9139
|
+
__decorate$1([attr({
|
|
9140
|
+
attribute: "selected-dates"
|
|
9141
|
+
})], Calendar$1.prototype, "selectedDates", void 0);
|
|
9142
|
+
|
|
8615
9143
|
/**
|
|
8616
9144
|
* Enumerates auto generated header options
|
|
8617
9145
|
* default option generates a non-sticky header row
|
|
@@ -9609,6 +10137,102 @@ const dataGridCellTemplate = (context, definition) => {
|
|
|
9609
10137
|
}}" class=" ${x => x.cellType === "columnheader" ? "column-header" : x.cellType === "rowheader" ? "row-header" : ""} "><slot></slot></template>`;
|
|
9610
10138
|
};
|
|
9611
10139
|
|
|
10140
|
+
/**
|
|
10141
|
+
* A basic Calendar title template that includes the month and year
|
|
10142
|
+
* @returns - A calendar title template
|
|
10143
|
+
* @public
|
|
10144
|
+
*/
|
|
10145
|
+
|
|
10146
|
+
const CalendarTitleTemplate = html`<div class="title" part="title" aria-label="${x => x.dateFormatter.getDate(`${x.month}-2-${x.year}`, {
|
|
10147
|
+
month: "long",
|
|
10148
|
+
year: "numeric"
|
|
10149
|
+
})}"><span part="month">${x => x.dateFormatter.getMonth(x.month)}</span><span part="year">${x => x.dateFormatter.getYear(x.year)}</span></div>`;
|
|
10150
|
+
/**
|
|
10151
|
+
* Calendar weekday label template
|
|
10152
|
+
* @returns - The weekday labels template
|
|
10153
|
+
* @public
|
|
10154
|
+
*/
|
|
10155
|
+
|
|
10156
|
+
const calendarWeekdayTemplate = context => {
|
|
10157
|
+
const cellTag = context.tagFor(DataGridCell);
|
|
10158
|
+
return html`<${cellTag} class="week-day" part="week-day" tabindex="-1" grid-column="${(x, c) => c.index + 1}" abbr="${x => x.abbr}">${x => x.text}</${cellTag}>`;
|
|
10159
|
+
};
|
|
10160
|
+
/**
|
|
10161
|
+
* A calendar day template
|
|
10162
|
+
* @param context - Element definition context for getting the cell tag for calendar-cell
|
|
10163
|
+
* @param todayString - A string representation for todays date
|
|
10164
|
+
* @returns - A calendar cell template for a given date
|
|
10165
|
+
* @public
|
|
10166
|
+
*/
|
|
10167
|
+
|
|
10168
|
+
const calendarCellTemplate = (context, todayString) => {
|
|
10169
|
+
const cellTag = context.tagFor(DataGridCell);
|
|
10170
|
+
return html`<${cellTag} class="${(x, c) => c.parentContext.parent.getDayClassNames(x, todayString)}" part="day" tabindex="-1" role="gridcell" grid-column="${(x, c) => c.index + 1}" @click="${(x, c) => c.parentContext.parent.handleDateSelect(c.event, x)}" @keydown="${(x, c) => c.parentContext.parent.handleKeydown(c.event, x)}" aria-label="${(x, c) => c.parentContext.parent.dateFormatter.getDate(`${x.month}-${x.day}-${x.year}`, {
|
|
10171
|
+
month: "long",
|
|
10172
|
+
day: "numeric"
|
|
10173
|
+
})}"><div class="date" part="${x => todayString === `${x.month}-${x.day}-${x.year}` ? "today" : "date"}">${(x, c) => c.parentContext.parent.dateFormatter.getDay(x.day)}</div><slot name="${x => x.month}-${x => x.day}-${x => x.year}"></slot></${cellTag}>`;
|
|
10174
|
+
};
|
|
10175
|
+
/**
|
|
10176
|
+
*
|
|
10177
|
+
* @param context - Element definition context for getting the cell tag for calendar-cell
|
|
10178
|
+
* @param todayString - A string representation for todays date
|
|
10179
|
+
* @returns - A template for a week of days
|
|
10180
|
+
* @public
|
|
10181
|
+
*/
|
|
10182
|
+
|
|
10183
|
+
const calendarRowTemplate = (context, todayString) => {
|
|
10184
|
+
const rowTag = context.tagFor(DataGridRow);
|
|
10185
|
+
return html`<${rowTag} class="week" part="week" role="row" role-type="default" grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr">${repeat(x => x, calendarCellTemplate(context, todayString), {
|
|
10186
|
+
positioning: true
|
|
10187
|
+
})}</${rowTag}>`;
|
|
10188
|
+
};
|
|
10189
|
+
/**
|
|
10190
|
+
* Interactive template using DataGrid
|
|
10191
|
+
* @param context - The templates context
|
|
10192
|
+
* @param todayString - string representation of todays date
|
|
10193
|
+
* @returns - interactive calendar template
|
|
10194
|
+
*
|
|
10195
|
+
* @internal
|
|
10196
|
+
*/
|
|
10197
|
+
|
|
10198
|
+
const interactiveCalendarGridTemplate = (context, todayString) => {
|
|
10199
|
+
const gridTag = context.tagFor(DataGrid);
|
|
10200
|
+
const rowTag = context.tagFor(DataGridRow);
|
|
10201
|
+
return html`<${gridTag} class="days interact" part="days" generate-header="none"><${rowTag} class="week-days" part="week-days" role="row" row-type="header" grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr">${repeat(x => x.getWeekdayText(), calendarWeekdayTemplate(context), {
|
|
10202
|
+
positioning: true
|
|
10203
|
+
})}</${rowTag}>${repeat(x => x.getDays(), calendarRowTemplate(context, todayString))}</${gridTag}>`;
|
|
10204
|
+
};
|
|
10205
|
+
/**
|
|
10206
|
+
* Non-interactive calendar template used for a readonly calendar
|
|
10207
|
+
* @param todayString - string representation of todays date
|
|
10208
|
+
* @returns - non-interactive calendar template
|
|
10209
|
+
*
|
|
10210
|
+
* @internal
|
|
10211
|
+
*/
|
|
10212
|
+
|
|
10213
|
+
const noninteractiveCalendarTemplate = todayString => {
|
|
10214
|
+
return html`<div class="days" part="days"><div class="week-days" part="week-days">${repeat(x => x.getWeekdayText(), html`<div class="week-day" part="week-day" abbr="${x => x.abbr}">${x => x.text}</div>`)}</div>${repeat(x => x.getDays(), html`<div class="week">${repeat(x => x, html`<div class="${(x, c) => c.parentContext.parent.getDayClassNames(x, todayString)}" part="day" aria-label="${(x, c) => c.parentContext.parent.dateFormatter.getDate(`${x.month}-${x.day}-${x.year}`, {
|
|
10215
|
+
month: "long",
|
|
10216
|
+
day: "numeric"
|
|
10217
|
+
})}"><div class="date" part="${x => todayString === `${x.month}-${x.day}-${x.year}` ? "today" : "date"}">${(x, c) => c.parentContext.parent.dateFormatter.getDay(x.day)}</div><slot name="${x => x.month}-${x => x.day}-${x => x.year}"></slot></div>`)}</div>`)}</div>`;
|
|
10218
|
+
};
|
|
10219
|
+
/**
|
|
10220
|
+
* The template for the {@link @microsoft/fast-foundation#(Calendar:class)} component.
|
|
10221
|
+
*
|
|
10222
|
+
* @param context - Element definition context for getting the cell tag for calendar-cell
|
|
10223
|
+
* @param definition - Foundation element definition
|
|
10224
|
+
* @returns - a template for a calendar month
|
|
10225
|
+
* @public
|
|
10226
|
+
*/
|
|
10227
|
+
|
|
10228
|
+
const calendarTemplate = (context, definition) => {
|
|
10229
|
+
var _a;
|
|
10230
|
+
|
|
10231
|
+
const today = new Date();
|
|
10232
|
+
const todayString = `${today.getMonth() + 1}-${today.getDate()}-${today.getFullYear()}`;
|
|
10233
|
+
return html`<template>${startTemplate} ${definition.title instanceof Function ? definition.title(context, definition) : (_a = definition.title) !== null && _a !== void 0 ? _a : ""}<slot></slot>${when(x => x.readonly === false, interactiveCalendarGridTemplate(context, todayString))} ${when(x => x.readonly === true, noninteractiveCalendarTemplate(todayString))} ${endTemplate}</template>`;
|
|
10234
|
+
};
|
|
10235
|
+
|
|
9612
10236
|
/**
|
|
9613
10237
|
* The template for the {@link @microsoft/fast-foundation#Card} component.
|
|
9614
10238
|
* @public
|
|
@@ -20920,7 +21544,7 @@ const neutralFillStealthActiveOnNeutralFillLayerRest = DesignToken.create('neutr
|
|
|
20920
21544
|
return buttonRecipe.evaluate(target, baseRecipe.evaluate(target).rest).active;
|
|
20921
21545
|
});
|
|
20922
21546
|
const accordionItemStyles$1 = (context, definition) => css`
|
|
20923
|
-
${display('flex')} :host{box-sizing:border-box;font-family:${bodyFont};flex-direction:column;font-size:${typeRampBaseFontSize};line-height:${typeRampBaseLineHeight};background:${neutralFillLayerRest};color:${neutralForegroundRest};border:calc(${strokeWidth} * 1px) solid ${neutralStrokeLayerRest};border-radius:calc(${layerCornerRadius} * 1px)}.region{display:none;padding:calc(${designUnit} * 2 * 1px);background:${neutralFillLayerAltRest}}.heading{display:grid;position:relative;grid-template-columns:auto 1fr auto auto;align-items:center
|
|
21547
|
+
${display('flex')} :host{box-sizing:border-box;font-family:${bodyFont};flex-direction:column;font-size:${typeRampBaseFontSize};line-height:${typeRampBaseLineHeight};background:${neutralFillLayerRest};color:${neutralForegroundRest};border:calc(${strokeWidth} * 1px) solid ${neutralStrokeLayerRest};border-radius:calc(${layerCornerRadius} * 1px)}.region{display:none;padding:calc(${designUnit} * 2 * 1px);background:${neutralFillLayerAltRest}}.heading{display:grid;position:relative;grid-template-columns:auto 1fr auto auto;align-items:center}.button{appearance:none;border:none;background:none;grid-column:2;grid-row:1;outline:none;margin:calc(${designUnit} * 3 * 1px) 0;padding:0 calc(${designUnit} * 2 * 1px);text-align:left;color:inherit;cursor:pointer;font-family:inherit}.button::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;cursor:pointer}.button:${focusVisible}::before{outline:none;border:calc(${strokeWidth} * 1px) solid ${focusStrokeOuter};border-radius:calc(${layerCornerRadius} * 1px);box-shadow:0 0 0 calc((${focusStrokeWidth} - ${strokeWidth}) * 1px) ${focusStrokeOuter}}:host(.expanded) .button:${focusVisible}::before{border-bottom-left-radius:0;border-bottom-right-radius:0}:host(.expanded) .region{display:block;border-top:calc(${strokeWidth} * 1px) solid ${neutralStrokeLayerRest};border-bottom-left-radius:calc((${layerCornerRadius} - ${strokeWidth}) * 1px);border-bottom-right-radius:calc((${layerCornerRadius} - ${strokeWidth}) * 1px)}.icon{display:flex;align-items:center;justify-content:center;grid-column:4;pointer-events:none;background:${neutralFillStealthRestOnNeutralFillLayerRest};border-radius:calc(${controlCornerRadius} * 1px);fill:currentcolor;width:calc(${heightNumber} * 1px);height:calc(${heightNumber} * 1px);margin:calc(${designUnit} * 2 * 1px)}.heading:hover .icon{background:${neutralFillStealthHoverOnNeutralFillLayerRest}}.heading:active .icon{background:${neutralFillStealthActiveOnNeutralFillLayerRest}}slot[name='collapsed-icon']{display:flex}:host(.expanded) slot[name='collapsed-icon']{display:none}slot[name='expanded-icon']{display:none}:host(.expanded) slot[name='expanded-icon']{display:flex}.start{display:flex;align-items:center;padding-inline-start:calc(${designUnit} * 2 * 1px);justify-content:center;grid-column:1}.end{display:flex;align-items:center;justify-content:center;grid-column:3}.icon,.start,.end{position:relative}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
20924
21548
|
.button:${focusVisible}::before{border-color:${SystemColors.Highlight};box-shadow:0 0 0 calc((${focusStrokeWidth} - ${strokeWidth}) * 1px) ${SystemColors.Highlight}}.icon{fill:${SystemColors.ButtonText}}`));
|
|
20925
21549
|
|
|
20926
21550
|
/**
|
|
@@ -21596,6 +22220,61 @@ const fluentButton = Button.compose({
|
|
|
21596
22220
|
|
|
21597
22221
|
const buttonStyles = buttonStyles$1;
|
|
21598
22222
|
|
|
22223
|
+
/**
|
|
22224
|
+
* LTR styles for calendar
|
|
22225
|
+
* @internal
|
|
22226
|
+
*/
|
|
22227
|
+
|
|
22228
|
+
const ltrStyles = css`
|
|
22229
|
+
.day.disabled::before{transform:translate(-50%,0) rotate(45deg)}`;
|
|
22230
|
+
/**
|
|
22231
|
+
* RTL styles for calendar
|
|
22232
|
+
* @internal
|
|
22233
|
+
*/
|
|
22234
|
+
|
|
22235
|
+
const rtlStyles = css`
|
|
22236
|
+
.day.disabled::before{transform:translate(50%,0) rotate(-45deg)}`;
|
|
22237
|
+
/**
|
|
22238
|
+
* Styles for calendar
|
|
22239
|
+
* @public
|
|
22240
|
+
*/
|
|
22241
|
+
|
|
22242
|
+
const calendarStyles = (context, definition) => css`
|
|
22243
|
+
${display("inline-block")} :host{--calendar-cell-size:calc((${baseHeightMultiplier} + 2 + ${density}) * ${designUnit} * 1px);--calendar-gap:2px;font-family:${bodyFont};font-size:${typeRampBaseFontSize};line-height:${typeRampBaseLineHeight};color:${neutralForegroundRest}}.title{padding:calc(${designUnit} * 2px);font-weight:600}.days{text-align:center}.week-days,.week{display:grid;grid-template-columns:repeat(7,1fr);grid-gap:var(--calendar-gap);border:0;padding:0}.day,.week-day{border:0;width:var(--calendar-cell-size);height:var(--calendar-cell-size);line-height:var(--calendar-cell-size);padding:0;box-sizing:initial}.week-day{font-weight:600}.day{border:calc(${strokeWidth} * 1px) solid transparent;border-radius:calc(${controlCornerRadius} * 1px)}.interact .day{cursor:pointer}.date{height:100%}.inactive .date,.inactive.disabled::before{color:${neutralForegroundHint}}.disabled::before{content:'';display:inline-block;width:calc(var(--calendar-cell-size) * .8);height:calc(${strokeWidth} * 1px);background:currentColor;position:absolute;margin-top:calc(var(--calendar-cell-size) / 2);transform-origin:center;z-index:1}.selected{color:${accentFillRest};border:1px solid ${accentFillRest};background:${fillColor}}.selected + .selected{border-start-start-radius:0;border-end-start-radius:0;border-inline-start-width:0;padding-inline-start:calc(var(--calendar-gap) + (${strokeWidth} + ${controlCornerRadius}) * 1px);margin-inline-start:calc((${controlCornerRadius} * -1px) - var(--calendar-gap))}.today.disabled::before{color:${foregroundOnAccentRest}}.today .date{color:${foregroundOnAccentRest};background:${accentFillRest};border-radius:50%;position:relative}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
22244
|
+
.day.selected{color:${SystemColors.Highlight}}.today .date{background:${SystemColors.Highlight};color:${SystemColors.HighlightText}}`), new DirectionalStyleSheetBehavior(ltrStyles, rtlStyles));
|
|
22245
|
+
|
|
22246
|
+
/**
|
|
22247
|
+
* Updated Calendar class that is readonly by default
|
|
22248
|
+
*/
|
|
22249
|
+
|
|
22250
|
+
class Calendar extends Calendar$1 {
|
|
22251
|
+
constructor() {
|
|
22252
|
+
super(...arguments);
|
|
22253
|
+
this.readonly = true;
|
|
22254
|
+
}
|
|
22255
|
+
|
|
22256
|
+
}
|
|
22257
|
+
|
|
22258
|
+
__decorate([attr({
|
|
22259
|
+
converter: booleanConverter
|
|
22260
|
+
})], Calendar.prototype, "readonly", void 0);
|
|
22261
|
+
/**
|
|
22262
|
+
* The Fluent Calendar Element. Implements {@link @microsoft/fast-foundation#Calendar},
|
|
22263
|
+
* {@link @microsoft/fast-foundation#calendarTemplate}
|
|
22264
|
+
*
|
|
22265
|
+
* @public
|
|
22266
|
+
* @remarks
|
|
22267
|
+
* HTML Element \<fluent-calendar\>
|
|
22268
|
+
*/
|
|
22269
|
+
|
|
22270
|
+
|
|
22271
|
+
const fluentCalendar = Calendar.compose({
|
|
22272
|
+
baseName: 'calendar',
|
|
22273
|
+
template: calendarTemplate,
|
|
22274
|
+
styles: calendarStyles,
|
|
22275
|
+
title: CalendarTitleTemplate
|
|
22276
|
+
});
|
|
22277
|
+
|
|
21599
22278
|
const cardStyles$1 = (context, definition) => css`
|
|
21600
22279
|
${display('block')} :host{display:block;contain:content;height:var(--card-height,100%);width:var(--card-width,100%);box-sizing:border-box;background:${fillColor};color:${neutralForegroundRest};border:calc(${strokeWidth} * 1px) solid ${neutralStrokeLayerRest};border-radius:calc(${layerCornerRadius} * 1px);box-shadow:${elevationShadowCardRest}}:host{content-visibility:auto}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
21601
22280
|
:host{background:${SystemColors.Canvas};color:${SystemColors.CanvasText}}`));
|
|
@@ -21682,7 +22361,7 @@ const fluentCard = Card.compose({
|
|
|
21682
22361
|
const cardStyles = cardStyles$1;
|
|
21683
22362
|
|
|
21684
22363
|
const checkboxStyles$1 = (context, definition) => css`
|
|
21685
|
-
${display('inline-flex')} :host{align-items:center;outline:none
|
|
22364
|
+
${display('inline-flex')} :host{align-items:center;outline:none;${
|
|
21686
22365
|
/*
|
|
21687
22366
|
* Chromium likes to select label text or the default slot when
|
|
21688
22367
|
* the checkbox is clicked. Maybe there is a better solution here?
|
|
@@ -22295,7 +22974,7 @@ const fluentDialog = Dialog.compose({
|
|
|
22295
22974
|
const dialogStyles = dialogStyles$1;
|
|
22296
22975
|
|
|
22297
22976
|
const dividerStyles$1 = (context, definition) => css`
|
|
22298
|
-
${display('block')} :host{box-sizing:content-box;height:0;
|
|
22977
|
+
${display('block')} :host{box-sizing:content-box;height:0;border:none;border-top:calc(${strokeWidth} * 1px) solid ${neutralStrokeDividerRest}}`;
|
|
22299
22978
|
|
|
22300
22979
|
/**
|
|
22301
22980
|
* The Fluent Divider Element. Implements {@link @microsoft/fast-foundation#Divider},
|
|
@@ -22320,7 +22999,7 @@ const fluentDivider = Divider.compose({
|
|
|
22320
22999
|
const dividerStyles = dividerStyles$1;
|
|
22321
23000
|
|
|
22322
23001
|
const flipperStyles$1 = (context, definition) => css`
|
|
22323
|
-
${display('inline-flex')} :host{height:calc((${heightNumber} + ${designUnit}) * 1px);justify-content:center;align-items:center;
|
|
23002
|
+
${display('inline-flex')} :host{height:calc((${heightNumber} + ${designUnit}) * 1px);justify-content:center;align-items:center;fill:currentcolor;color:${neutralFillStrongRest};background:padding-box linear-gradient(${neutralFillRest},${neutralFillRest}),border-box ${neutralStrokeControlRest};box-sizing:border-box;border:calc(${focusStrokeWidth} * 1px) solid transparent;border-radius:calc(${controlCornerRadius} * 1px);outline:none;padding:0}:host(.disabled){opacity:${disabledOpacity};cursor:${disabledCursor}}.next,.previous{display:flex}:host(:not(.disabled):hover){cursor:pointer}:host(:not(.disabled):hover){color:${neutralFillStrongHover}}:host(:not(.disabled):active){color:${neutralFillStrongActive}}:host(:${focusVisible}){border-color:${focusStrokeOuter}}:host::-moz-focus-inner{border:0}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
22324
23003
|
:host{background:${SystemColors.ButtonFace};border-color:${SystemColors.ButtonText}}:host .next,:host .previous{color:${SystemColors.ButtonText};fill:currentcolor}:host(:not(.disabled):hover){background:${SystemColors.Highlight}}:host(:not(.disabled):hover) .next,:host(:not(.disabled):hover) .previous{color:${SystemColors.HighlightText};fill:currentcolor}:host(.disabled){opacity:1}:host(.disabled),:host(.disabled) .next,:host(.disabled) .previous{border-color:${SystemColors.GrayText};color:${SystemColors.GrayText};fill:currentcolor}:host(:${focusVisible}){forced-color-adjust:none;border-color:${SystemColors.Highlight};box-shadow:0 0 0 2px ${SystemColors.ButtonFace},0 0 0 4px ${SystemColors.ButtonText}}`));
|
|
22325
23004
|
|
|
22326
23005
|
/**
|
|
@@ -22417,7 +23096,7 @@ const fluentHorizontalScroll = HorizontalScroll.compose({
|
|
|
22417
23096
|
const horizontalScrollStyles = horizontalScrollStyles$1;
|
|
22418
23097
|
|
|
22419
23098
|
const listboxStyles$1 = (context, definition) => css`
|
|
22420
|
-
${display('inline-flex')} :host{border:calc(${strokeWidth} * 1px) solid ${neutralStrokeRest};border-radius:calc(${controlCornerRadius} * 1px);box-sizing:border-box;flex-direction:column;padding:calc(${designUnit} * 1px) 0;outline:none}:host(:focus-within:not([disabled])){border-color:${focusStrokeOuter};box-shadow:0 0 0 1px ${focusStrokeOuter} inset}`;
|
|
23099
|
+
${display('inline-flex')} :host{border:calc(${strokeWidth} * 1px) solid ${neutralStrokeRest};border-radius:calc(${controlCornerRadius} * 1px);box-sizing:border-box;flex-direction:column;padding:calc(${designUnit} * 1px) 0;outline:none}::slotted(${context.tagFor(ListboxOption)}){margin:0 calc(${designUnit} * 1px)}:host(:focus-within:not([disabled])){border-color:${focusStrokeOuter};box-shadow:0 0 0 1px ${focusStrokeOuter} inset}`;
|
|
22421
23100
|
|
|
22422
23101
|
/**
|
|
22423
23102
|
* The Fluent listbox Custom Element. Implements, {@link @microsoft/fast-foundation#Listbox}
|
|
@@ -22443,7 +23122,7 @@ const fluentListbox = Listbox.compose({
|
|
|
22443
23122
|
const listboxStyles = listboxStyles$1;
|
|
22444
23123
|
|
|
22445
23124
|
const optionStyles = (context, definition) => css`
|
|
22446
|
-
${display('inline-flex')} :host{position:relative;font-family:${bodyFont};background:${neutralFillStealthRest};border-radius:calc(${controlCornerRadius} * 1px);border:calc(${focusStrokeWidth} * 1px) solid transparent;box-sizing:border-box;color:${neutralForegroundRest};cursor:pointer;fill:currentcolor;font-size:${typeRampBaseFontSize};height:calc(${heightNumber} * 1px);line-height:${typeRampBaseLineHeight};
|
|
23125
|
+
${display('inline-flex')} :host{position:relative;font-family:${bodyFont};background:${neutralFillStealthRest};border-radius:calc(${controlCornerRadius} * 1px);border:calc(${focusStrokeWidth} * 1px) solid transparent;box-sizing:border-box;color:${neutralForegroundRest};cursor:pointer;fill:currentcolor;font-size:${typeRampBaseFontSize};height:calc(${heightNumber} * 1px);line-height:${typeRampBaseLineHeight};outline:none;overflow:hidden;align-items:center;padding:0 calc(${designUnit} * 2.25px);user-select:none;white-space:nowrap}:host::before{content:'';display:block;position:absolute;left:0;top:calc((${heightNumber} / 4) - ${focusStrokeWidth} * 1px);width:3px;height:calc((${heightNumber} / 2) * 1px);background:transparent;border-radius:calc(${controlCornerRadius} * 1px)}:host(:not([disabled]):hover){background:${neutralFillStealthHover}}:host(:not([disabled]):active){background:${neutralFillStealthActive}}:host(:not([disabled]):active)::before{background:${accentFillRest};height:calc(((${heightNumber} / 2) - 6) * 1px)}:host([aria-selected='true'])::before{background:${accentFillRest}}:host(:${focusVisible}){border-color:${focusStrokeOuter};background:${neutralFillStealthFocus}}:host([aria-selected='true']){background:${neutralFillSecondaryRest}}:host(:not([disabled])[aria-selected='true']:hover){background:${neutralFillSecondaryHover}}:host(:not([disabled])[aria-selected='true']:active){background:${neutralFillSecondaryActive}}:host(:not([disabled]):not([aria-selected='true']):hover){background:${neutralFillStealthHover}}:host(:not([disabled]):not([aria-selected='true']):active){background:${neutralFillStealthActive}}:host([disabled]){cursor:${disabledCursor};opacity:${disabledOpacity}}.content{grid-column-start:2;justify-self:start;overflow:hidden;text-overflow:ellipsis}.start,.end,::slotted(svg){display:flex}::slotted([slot='end']){margin-inline-start:1ch}::slotted([slot='start']){margin-inline-end:1ch}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
22447
23126
|
:host{background:${SystemColors.ButtonFace};border-color:${SystemColors.ButtonFace};color:${SystemColors.ButtonText}}:host(:not([disabled]):not([aria-selected="true"]):hover),:host(:not([disabled])[aria-selected="true"]:hover),:host([aria-selected="true"]){forced-color-adjust:none;background:${SystemColors.Highlight};color:${SystemColors.HighlightText}}:host(:not([disabled]):active)::before,:host([aria-selected='true'])::before{background:${SystemColors.HighlightText}}:host([disabled]),:host([disabled]:not([aria-selected='true']):hover){background:${SystemColors.Canvas};color:${SystemColors.GrayText};fill:currentcolor;opacity:1}`));
|
|
22448
23127
|
|
|
22449
23128
|
/**
|
|
@@ -22470,7 +23149,7 @@ const fluentOption = ListboxOption.compose({
|
|
|
22470
23149
|
const OptionStyles = optionStyles;
|
|
22471
23150
|
|
|
22472
23151
|
const menuStyles$1 = (context, definition) => css`
|
|
22473
|
-
${display('block')} :host{background:${neutralLayerFloating};border:calc(${strokeWidth} * 1px) solid transparent;border-radius:calc(${layerCornerRadius} * 1px);box-shadow:${elevationShadowFlyout};
|
|
23152
|
+
${display('block')} :host{background:${neutralLayerFloating};border:calc(${strokeWidth} * 1px) solid transparent;border-radius:calc(${layerCornerRadius} * 1px);box-shadow:${elevationShadowFlyout};padding:calc(${designUnit} * 1px) 0;max-width:368px;min-width:64px}:host([slot='submenu']){width:max-content;margin:0 calc(${designUnit} * 2px)}::slotted(${context.tagFor(MenuItem)}){margin:0 calc(${designUnit} * 1px)}::slotted(${context.tagFor(Divider)}){margin:calc(${designUnit} * 1px) 0}::slotted(hr){box-sizing:content-box;height:0;margin:calc(${designUnit} * 1px) 0;border:none;border-top:calc(${strokeWidth} * 1px) solid ${neutralStrokeDividerRest}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
22474
23153
|
:host([slot='submenu']){background:${SystemColors.Canvas};border-color:${SystemColors.CanvasText}}`));
|
|
22475
23154
|
|
|
22476
23155
|
/**
|
|
@@ -22512,7 +23191,7 @@ const fluentMenu = Menu.compose({
|
|
|
22512
23191
|
const menuStyles = menuStyles$1;
|
|
22513
23192
|
|
|
22514
23193
|
const menuItemStyles$1 = (context, definition) => css`
|
|
22515
|
-
${display('grid')} :host{contain:layout;overflow:visible;font-family:${bodyFont};outline:none;box-sizing:border-box;height:calc(${heightNumber} * 1px);grid-template-columns:minmax(32px,auto) 1fr minmax(32px,auto);grid-template-rows:auto;justify-items:center;align-items:center;padding:0;
|
|
23194
|
+
${display('grid')} :host{contain:layout;overflow:visible;font-family:${bodyFont};outline:none;box-sizing:border-box;height:calc(${heightNumber} * 1px);grid-template-columns:minmax(32px,auto) 1fr minmax(32px,auto);grid-template-rows:auto;justify-items:center;align-items:center;padding:0;white-space:nowrap;color:${neutralForegroundRest};fill:currentcolor;cursor:pointer;font-size:${typeRampBaseFontSize};line-height:${typeRampBaseLineHeight};border-radius:calc(${controlCornerRadius} * 1px);border:calc(${strokeWidth} * 1px) solid transparent}:host(.indent-0){grid-template-columns:auto 1fr minmax(32px,auto)}:host(.indent-0) .content{grid-column:1;grid-row:1;margin-inline-start:10px}:host(.indent-0) .expand-collapse-glyph-container{grid-column:5;grid-row:1}:host(.indent-2){grid-template-columns:minmax(32px,auto) minmax(32px,auto) 1fr minmax(32px,auto) minmax(32px,auto)}:host(.indent-2) .content{grid-column:3;grid-row:1;margin-inline-start:10px}:host(.indent-2) .expand-collapse-glyph-container{grid-column:5;grid-row:1}:host(.indent-2) .start{grid-column:2}:host(.indent-2) .end{grid-column:4}:host(:${focusVisible}){border:calc(${strokeWidth} * 1px) solid ${focusStrokeOuter};box-shadow:0 0 0 calc((${focusStrokeWidth} - ${strokeWidth}) * 1px) ${focusStrokeOuter}}:host(:not([disabled]):hover){background:${neutralFillStealthHover}}:host(:not([disabled]):active),:host(.expanded){background:${neutralFillStealthActive};color:${neutralForegroundRest}}:host([disabled]){cursor:${disabledCursor};opacity:${disabledOpacity}}.content{grid-column-start:2;justify-self:start;overflow:hidden;text-overflow:ellipsis}.start,.end{display:flex;justify-content:center}:host(.indent-0[aria-haspopup='menu']){display:grid;grid-template-columns:minmax(32px,auto) auto 1fr minmax(32px,auto) minmax(32px,auto);align-items:center;min-height:32px}:host(.indent-1[aria-haspopup='menu']),:host(.indent-1[role='menuitemcheckbox']),:host(.indent-1[role='menuitemradio']){display:grid;grid-template-columns:minmax(32px,auto) auto 1fr minmax(32px,auto) minmax(32px,auto);align-items:center;min-height:32px}:host(.indent-2:not([aria-haspopup='menu'])) .end{grid-column:5}:host .input-container,:host .expand-collapse-glyph-container{display:none}:host([aria-haspopup='menu']) .expand-collapse-glyph-container,:host([role='menuitemcheckbox']) .input-container,:host([role='menuitemradio']) .input-container{display:grid}:host([aria-haspopup='menu']) .content,:host([role='menuitemcheckbox']) .content,:host([role='menuitemradio']) .content{grid-column-start:3}:host([aria-haspopup='menu'].indent-0) .content{grid-column-start:1}:host([aria-haspopup='menu']) .end,:host([role='menuitemcheckbox']) .end,:host([role='menuitemradio']) .end{grid-column-start:4}:host .expand-collapse,:host .checkbox,:host .radio{display:flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box;outline:none}:host .checkbox-indicator,:host .radio-indicator,slot[name='checkbox-indicator'],slot[name='radio-indicator']{display:none}::slotted([slot='end']:not(svg)){margin-inline-end:10px;color:${neutralForegroundHint}}:host([aria-checked='true']) .checkbox-indicator,:host([aria-checked='true']) slot[name='checkbox-indicator'],:host([aria-checked='true']) .radio-indicator,:host([aria-checked='true']) slot[name='radio-indicator']{display:flex}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
22516
23195
|
:host,::slotted([slot='end']:not(svg)){forced-color-adjust:none;color:${SystemColors.ButtonText};fill:currentcolor}:host(:not([disabled]):hover){background:${SystemColors.Highlight};color:${SystemColors.HighlightText};fill:currentcolor}:host(:hover) .start,:host(:hover) .end,:host(:hover)::slotted(svg),:host(:active) .start,:host(:active) .end,:host(:active)::slotted(svg),:host(:hover) ::slotted([slot='end']:not(svg)),:host(:${focusVisible}) ::slotted([slot='end']:not(svg)){color:${SystemColors.HighlightText};fill:currentcolor}:host(.expanded){background:${SystemColors.Highlight};border-color:${SystemColors.Highlight};color:${SystemColors.HighlightText}}:host(:${focusVisible}){background:${SystemColors.Highlight};border-color:${SystemColors.ButtonText};box-shadow:0 0 0 calc(${strokeWidth} * 1px) inset ${SystemColors.HighlightText};color:${SystemColors.HighlightText};fill:currentcolor}:host([disabled]),:host([disabled]:hover),:host([disabled]:hover) .start,:host([disabled]:hover) .end,:host([disabled]:hover)::slotted(svg),:host([disabled]:${focusVisible}){background:${SystemColors.ButtonFace};color:${SystemColors.GrayText};fill:currentcolor;opacity:1}:host([disabled]:${focusVisible}){border-color:${SystemColors.GrayText}}:host .expanded-toggle,:host .checkbox,:host .radio{border-color:${SystemColors.ButtonText};background:${SystemColors.HighlightText}}:host([checked]) .checkbox,:host([checked]) .radio{background:${SystemColors.HighlightText};border-color:${SystemColors.HighlightText}}:host(:hover) .expanded-toggle,:host(:hover) .checkbox,:host(:hover) .radio,:host(:${focusVisible}) .expanded-toggle,:host(:${focusVisible}) .checkbox,:host(:${focusVisible}) .radio,:host([checked]:hover) .checkbox,:host([checked]:hover) .radio,:host([checked]:${focusVisible}) .checkbox,:host([checked]:${focusVisible}) .radio{border-color:${SystemColors.HighlightText}}:host([aria-checked='true']){background:${SystemColors.Highlight};color:${SystemColors.HighlightText}}:host([aria-checked='true']) .checkbox-indicator,:host([aria-checked='true']) ::slotted([slot='checkbox-indicator']),:host([aria-checked='true']) ::slotted([slot='radio-indicator']){fill:${SystemColors.Highlight}}:host([aria-checked='true']) .radio-indicator{background:${SystemColors.Highlight}}`), new DirectionalStyleSheetBehavior(css`
|
|
22517
23196
|
.expand-collapse-glyph-container{transform:rotate(0deg)}`, css`
|
|
22518
23197
|
.expand-collapse-glyph-container{transform:rotate(180deg)}`));
|
|
@@ -22630,7 +23309,7 @@ const fluentNumberField = NumberField.compose({
|
|
|
22630
23309
|
});
|
|
22631
23310
|
|
|
22632
23311
|
const progressStyles$1 = (context, definition) => css`
|
|
22633
|
-
${display('flex')} :host{align-items:center;outline:none;height:calc((${strokeWidth} * 3) * 1px)
|
|
23312
|
+
${display('flex')} :host{align-items:center;outline:none;height:calc((${strokeWidth} * 3) * 1px)}.progress{background-color:${neutralStrokeStrongRest};border-radius:calc(${designUnit} * 1px);width:100%;height:calc(${strokeWidth} * 1px);display:flex;align-items:center;position:relative}.determinate{background-color:${accentFillRest};border-radius:calc(${designUnit} * 1px);height:calc((${strokeWidth} * 3) * 1px);transition:all 0.2s ease-in-out;display:flex}.indeterminate{height:calc((${strokeWidth} * 3) * 1px);border-radius:calc(${designUnit} * 1px);display:flex;width:100%;position:relative;overflow:hidden}.indeterminate-indicator-1{position:absolute;opacity:0;height:100%;background-color:${accentFillRest};border-radius:calc(${designUnit} * 1px);animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:40%;animation:indeterminate-1 2s infinite}.indeterminate-indicator-2{position:absolute;opacity:0;height:100%;background-color:${accentFillRest};border-radius:calc(${designUnit} * 1px);animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:60%;animation:indeterminate-2 2s infinite}:host(.paused) .indeterminate-indicator-1,:host(.paused) .indeterminate-indicator-2{animation:none;background-color:${neutralForegroundHint};width:100%;opacity:1}:host(.paused) .determinate{background-color:${neutralForegroundHint}}@keyframes indeterminate-1{0%{opacity:1;transform:translateX(-100%)}70%{opacity:1;transform:translateX(300%)}70.01%{opacity:0}100%{opacity:0;transform:translateX(300%)}}@keyframes indeterminate-2{0%{opacity:0;transform:translateX(-150%)}29.99%{opacity:0}30%{opacity:1;transform:translateX(-150%)}100%{transform:translateX(166.66%);opacity:1}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
22634
23313
|
.indeterminate-indicator-1,.indeterminate-indicator-2,.determinate,.progress{background-color:${SystemColors.ButtonText}}:host(.paused) .indeterminate-indicator-1,:host(.paused) .indeterminate-indicator-2,:host(.paused) .determinate{background-color:${SystemColors.GrayText}}`));
|
|
22635
23314
|
|
|
22636
23315
|
/**
|
|
@@ -22668,7 +23347,7 @@ const fluentProgress = Progress.compose({
|
|
|
22668
23347
|
const progressStyles = progressStyles$1;
|
|
22669
23348
|
|
|
22670
23349
|
const progressRingStyles$1 = (context, definition) => css`
|
|
22671
|
-
${display('flex')} :host{align-items:center;outline:none;height:calc(${heightNumber} * 1px);width:calc(${heightNumber} * 1px)
|
|
23350
|
+
${display('flex')} :host{align-items:center;outline:none;height:calc(${heightNumber} * 1px);width:calc(${heightNumber} * 1px)}.progress{height:100%;width:100%}.background{fill:none;stroke-width:2px}.determinate{stroke:${accentFillRest};fill:none;stroke-width:2px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out}.indeterminate-indicator-1{stroke:${accentFillRest};fill:none;stroke-width:2px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 2s linear infinite}:host(.paused) .indeterminate-indicator-1{animation:none;stroke:${neutralForegroundHint}}:host(.paused) .determinate{stroke:${neutralForegroundHint}}@keyframes spin-infinite{0%{stroke-dasharray:0.01px 43.97px;transform:rotate(0deg)}50%{stroke-dasharray:21.99px 21.99px;transform:rotate(450deg)}100%{stroke-dasharray:0.01px 43.97px;transform:rotate(1080deg)}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
22672
23351
|
.background{stroke:${SystemColors.Field}}.determinate,.indeterminate-indicator-1{stroke:${SystemColors.ButtonText}}:host(.paused) .determinate,:host(.paused) .indeterminate-indicator-1{stroke:${SystemColors.GrayText}}`));
|
|
22673
23352
|
|
|
22674
23353
|
/**
|
|
@@ -22718,7 +23397,7 @@ const fluentProgressRing = ProgressRing.compose({
|
|
|
22718
23397
|
const progressRingStyles = progressRingStyles$1;
|
|
22719
23398
|
|
|
22720
23399
|
const radioStyles = (context, definition) => css`
|
|
22721
|
-
${display('inline-flex')} :host{--input-size:calc((${heightNumber} / 2) + ${designUnit});align-items:center;outline:none
|
|
23400
|
+
${display('inline-flex')} :host{--input-size:calc((${heightNumber} / 2) + ${designUnit});align-items:center;outline:none;${
|
|
22722
23401
|
/*
|
|
22723
23402
|
* Chromium likes to select label text or the default slot when
|
|
22724
23403
|
* the radio button is clicked. Maybe there is a better solution here?
|
|
@@ -22756,7 +23435,7 @@ const fluentRadio = Radio.compose({
|
|
|
22756
23435
|
const RadioStyles = radioStyles;
|
|
22757
23436
|
|
|
22758
23437
|
const radioGroupStyles$1 = (context, definition) => css`
|
|
22759
|
-
${display('flex')} :host{align-items:flex-start;
|
|
23438
|
+
${display('flex')} :host{align-items:flex-start;flex-direction:column}.positioning-region{display:flex;flex-wrap:wrap}:host([orientation='vertical']) .positioning-region{flex-direction:column}:host([orientation='horizontal']) .positioning-region{flex-direction:row}`;
|
|
22760
23439
|
|
|
22761
23440
|
/**
|
|
22762
23441
|
* The Fluent Radio Group Element. Implements {@link @microsoft/fast-foundation#RadioGroup},
|
|
@@ -22876,7 +23555,7 @@ const fluentSkeleton = Skeleton.compose({
|
|
|
22876
23555
|
const skeletonStyles = skeletonStyles$1;
|
|
22877
23556
|
|
|
22878
23557
|
const sliderStyles$1 = (context, definition) => css`
|
|
22879
|
-
${display('inline-grid')} :host{--thumb-size:calc((${heightNumber} / 2) + ${designUnit} + (${strokeWidth} * 2));--thumb-translate:calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang:calc((${designUnit} / 2) * -1);--track-width:${designUnit};align-items:center;width:100%;
|
|
23558
|
+
${display('inline-grid')} :host{--thumb-size:calc((${heightNumber} / 2) + ${designUnit} + (${strokeWidth} * 2));--thumb-translate:calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang:calc((${designUnit} / 2) * -1);--track-width:${designUnit};align-items:center;width:100%;user-select:none;box-sizing:border-box;border-radius:calc(${controlCornerRadius} * 1px);outline:none;cursor:pointer}:host(.horizontal) .positioning-region{position:relative;margin:0 8px;display:grid;grid-template-rows:calc(var(--thumb-size) * 1px) 1fr}:host(.vertical) .positioning-region{position:relative;margin:0 8px;display:grid;height:100%;grid-template-columns:calc(var(--thumb-size) * 1px) 1fr}:host(:${focusVisible}) .thumb-cursor{box-shadow:0 0 0 2px ${fillColor},0 0 0 4px ${focusStrokeOuter}}.thumb-container{position:absolute;height:calc(var(--thumb-size) * 1px);width:calc(var(--thumb-size) * 1px);transition:all 0.2s ease}.thumb-cursor{display:flex;position:relative;border:none;width:calc(var(--thumb-size) * 1px);height:calc(var(--thumb-size) * 1px);background:padding-box linear-gradient(${neutralFillRest},${neutralFillRest}),border-box ${neutralStrokeControlRest};border:calc(${strokeWidth} * 1px) solid transparent;border-radius:50%;box-sizing:border-box}.thumb-cursor::after{content:'';display:block;border-radius:50%;width:100%;margin:4px;background:${accentFillRest}}:host(:not(.disabled)) .thumb-cursor:hover::after{background:${accentFillHover};margin:3px}:host(:not(.disabled)) .thumb-cursor:active::after{background:${accentFillActive};margin:5px}:host(:not(.disabled)) .thumb-cursor:hover{background:padding-box linear-gradient(${neutralFillRest},${neutralFillRest}),border-box ${neutralStrokeControlHover}}:host(:not(.disabled)) .thumb-cursor:active{background:padding-box linear-gradient(${neutralFillRest},${neutralFillRest}),border-box ${neutralStrokeControlActive}}.track-start{background:${accentFillRest};position:absolute;height:100%;left:0;border-radius:calc(${controlCornerRadius} * 1px)}:host(.horizontal) .thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5px)) translateY(calc(var(--thumb-translate) * 1px))}:host(.vertical) .thumb-container{transform:translateX(calc(var(--thumb-translate) * 1px)) translateY(calc(var(--thumb-size) * 0.5px))}:host(.horizontal){min-width:calc(var(--thumb-size) * 1px)}:host(.horizontal) .track{right:calc(var(--track-overhang) * 1px);left:calc(var(--track-overhang) * 1px);align-self:start;height:calc(var(--track-width) * 1px)}:host(.vertical) .track{top:calc(var(--track-overhang) * 1px);bottom:calc(var(--track-overhang) * 1px);width:calc(var(--track-width) * 1px);height:100%}.track{background:${neutralFillStrongRest};border:1px solid ${neutralStrokeStrongRest};border-radius:2px;box-sizing:border-box;position:absolute}:host(.vertical){height:100%;min-height:calc(${designUnit} * 60px);min-width:calc(${designUnit} * 20px)}:host(.vertical) .track-start{height:auto;width:100%;top:0}:host(.disabled),:host(.readonly){cursor:${disabledCursor}}:host(.disabled){opacity:${disabledOpacity}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
22880
23559
|
.thumb-cursor{forced-color-adjust:none;border-color:${SystemColors.FieldText};background:${SystemColors.FieldText}}:host(:not(.disabled)) .thumb-cursor:hover,:host(:not(.disabled)) .thumb-cursor:active{background:${SystemColors.Highlight}}.track{forced-color-adjust:none;background:${SystemColors.FieldText}}.thumb-cursor::after,:host(:not(.disabled)) .thumb-cursor:hover::after,:host(:not(.disabled)) .thumb-cursor:active::after{background:${SystemColors.Field}}:host(:${focusVisible}) .thumb-cursor{background:${SystemColors.Highlight};border-color:${SystemColors.Highlight};box-shadow:0 0 0 1px ${SystemColors.Field},0 0 0 3px ${SystemColors.FieldText}}:host(.disabled){opacity:1}:host(.disabled) .track,:host(.disabled) .thumb-cursor{forced-color-adjust:none;background:${SystemColors.GrayText}}`));
|
|
22881
23560
|
|
|
22882
23561
|
/**
|
|
@@ -22931,12 +23610,12 @@ const fluentSliderLabel = SliderLabel.compose({
|
|
|
22931
23610
|
const sliderLabelStyles = sliderLabelStyles$1;
|
|
22932
23611
|
|
|
22933
23612
|
const switchStyles$1 = (context, definition) => css`
|
|
22934
|
-
:host([hidden]){display:none}${display('inline-flex')} :host{align-items:center;outline:none;font-family:${bodyFont}
|
|
23613
|
+
:host([hidden]){display:none}${display('inline-flex')} :host{align-items:center;outline:none;font-family:${bodyFont};${
|
|
22935
23614
|
/*
|
|
22936
23615
|
* Chromium likes to select label text or the default slot when
|
|
22937
23616
|
* the checkbox is clicked. Maybe there is a better solution here?
|
|
22938
23617
|
*/
|
|
22939
|
-
''} user-select:none}:host(.disabled){opacity:${disabledOpacity}}:host(.disabled) .label,:host(.readonly) .label,:host(.disabled) .switch,:host(.readonly) .switch,:host(.disabled) .status-message,:host(.readonly) .status-message{cursor:${disabledCursor}}.switch{position:relative;outline:none;box-sizing:border-box;width:calc(((${heightNumber} / 2) + ${designUnit}) * 2px);height:calc(((${heightNumber} / 2) + ${designUnit}) * 1px);background:${neutralFillInputAltRest};border-radius:calc(${heightNumber} * 1px);border:calc(${strokeWidth} * 1px) solid ${neutralStrokeStrongRest};cursor:pointer}:host(:not(.disabled):hover) .switch{background:${neutralFillInputAltHover};border-color:${neutralStrokeStrongHover}}:host(:not(.disabled):active) .switch{background:${neutralFillInputAltActive};border-color:${neutralStrokeStrongActive}}:host(:${focusVisible}) .switch{box-shadow:0 0 0 1px ${fillColor},0 0 0 3px ${focusStrokeOuter};background:${neutralFillInputAltFocus};border-color:${focusStrokeOuter}}:host(.checked) .switch{background:${accentFillRest};border-color:transparent}:host(.checked:not(.disabled):hover) .switch{background:${accentFillHover};border-color:transparent}:host(.checked:not(.disabled):active) .switch{background:${accentFillActive};border-color:transparent}slot[name='switch']{position:absolute;display:flex;border:1px solid transparent;fill:${neutralForegroundRest};transition:all 0.2s ease-in-out}.status-message{color:${neutralForegroundRest};cursor:pointer;font-size:${typeRampBaseFontSize};line-height:${typeRampBaseLineHeight}}.label__hidden{display:none;visibility:hidden}.label{color:${neutralForegroundRest};font-size:${typeRampBaseFontSize};line-height:${typeRampBaseLineHeight};margin-inline-end:calc(${designUnit} * 2px + 2px);cursor:pointer}
|
|
23618
|
+
''} user-select:none}:host(.disabled){opacity:${disabledOpacity}}:host(.disabled) .label,:host(.readonly) .label,:host(.disabled) .switch,:host(.readonly) .switch,:host(.disabled) .status-message,:host(.readonly) .status-message{cursor:${disabledCursor}}.switch{position:relative;outline:none;box-sizing:border-box;width:calc(((${heightNumber} / 2) + ${designUnit}) * 2px);height:calc(((${heightNumber} / 2) + ${designUnit}) * 1px);background:${neutralFillInputAltRest};border-radius:calc(${heightNumber} * 1px);border:calc(${strokeWidth} * 1px) solid ${neutralStrokeStrongRest};cursor:pointer}:host(:not(.disabled):hover) .switch{background:${neutralFillInputAltHover};border-color:${neutralStrokeStrongHover}}:host(:not(.disabled):active) .switch{background:${neutralFillInputAltActive};border-color:${neutralStrokeStrongActive}}:host(:${focusVisible}) .switch{box-shadow:0 0 0 1px ${fillColor},0 0 0 3px ${focusStrokeOuter};background:${neutralFillInputAltFocus};border-color:${focusStrokeOuter}}:host(.checked) .switch{background:${accentFillRest};border-color:transparent}:host(.checked:not(.disabled):hover) .switch{background:${accentFillHover};border-color:transparent}:host(.checked:not(.disabled):active) .switch{background:${accentFillActive};border-color:transparent}slot[name='switch']{position:absolute;display:flex;border:1px solid transparent;fill:${neutralForegroundRest};transition:all 0.2s ease-in-out}.status-message{color:${neutralForegroundRest};cursor:pointer;font-size:${typeRampBaseFontSize};line-height:${typeRampBaseLineHeight}}.label__hidden{display:none;visibility:hidden}.label{color:${neutralForegroundRest};font-size:${typeRampBaseFontSize};line-height:${typeRampBaseLineHeight};margin-inline-end:calc(${designUnit} * 2px + 2px);cursor:pointer}::slotted([slot="checked-message"]),::slotted([slot="unchecked-message"]){margin-inline-start:calc(${designUnit} * 2px + 2px)}:host(.checked) .switch{background:${accentFillRest}}:host(.checked) .switch slot[name='switch']{fill:${foregroundOnAccentRest};filter:drop-shadow(0px 1px 1px rgba(0,0,0,0.15))}:host(.checked:not(.disabled)) .switch:hover{background:${accentFillHover}}:host(.checked:not(.disabled)) .switch:hover slot[name='switch']{fill:${foregroundOnAccentHover}}:host(.checked:not(.disabled)) .switch:active{background:${accentFillActive}}:host(.checked:not(.disabled)) .switch:active slot[name='switch']{fill:${foregroundOnAccentActive}}:host(.checked:${focusVisible}:not(.disabled)) .switch{box-shadow:0 0 0 1px ${fillColor},0 0 0 3px ${focusStrokeOuter};border-color:transparent}.unchecked-message{display:block}.checked-message{display:none}:host(.checked) .unchecked-message{display:none}:host(.checked) .checked-message{display:block}`.withBehaviors(new DirectionalStyleSheetBehavior(css`
|
|
22940
23619
|
slot[name='switch']{left:0}:host(.checked) slot[name='switch']{left:100%;transform:translateX(-100%)}`, css`
|
|
22941
23620
|
slot[name='switch']{right:0}:host(.checked) slot[name='switch']{right:100%;transform:translateX(100%)}`), forcedColorsStylesheetBehavior(css`
|
|
22942
23621
|
:host(:not(.disabled)) .switch slot[name='switch']{forced-color-adjust:none;fill:${SystemColors.FieldText}}.switch{background:${SystemColors.Field};border-color:${SystemColors.FieldText}}:host(.checked) .switch{background:${SystemColors.Highlight};border-color:${SystemColors.Highlight}}:host(:not(.disabled):hover) .switch,:host(:not(.disabled):active) .switch,:host(.checked:not(.disabled):hover) .switch{background:${SystemColors.HighlightText};border-color:${SystemColors.Highlight}}:host(.checked:not(.disabled)) .switch slot[name="switch"]{fill:${SystemColors.HighlightText}}:host(.checked:not(.disabled):hover) .switch slot[name='switch']{fill:${SystemColors.Highlight}}:host(:${focusVisible}) .switch{forced-color-adjust:none;background:${SystemColors.Field};border-color:${SystemColors.Highlight};box-shadow:0 0 0 1px ${SystemColors.Highlight},0 0 0 3px ${SystemColors.FieldText}}:host(.checked:${focusVisible}:not(.disabled)) .switch{forced-color-adjust:none;background:${SystemColors.Highlight};box-shadow:0 0 0 1px ${SystemColors.Field},0 0 0 3px ${SystemColors.FieldText};border-color:${SystemColors.Field}}:host(.disabled){opacity:1}:host(.disabled) slot[name='switch']{forced-color-adjust:none;fill:${SystemColors.GrayText}}:host(.disabled) .switch{background:${SystemColors.Field};border-color:${SystemColors.GrayText}}.status-message,.label{color:${SystemColors.FieldText}}`));
|
|
@@ -22969,7 +23648,7 @@ const fluentSwitch = Switch.compose({
|
|
|
22969
23648
|
const switchStyles = switchStyles$1;
|
|
22970
23649
|
|
|
22971
23650
|
const tabsStyles$1 = (context, definition) => css`
|
|
22972
|
-
${display('grid')} :host{box-sizing:border-box;font-family:${bodyFont};font-size:${typeRampBaseFontSize};line-height:${typeRampBaseLineHeight};color:${neutralForegroundRest};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}.tablist{display:grid;grid-template-rows:calc(${heightNumber} * 1px);auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end}.start,.end{align-self:center}.activeIndicator{grid-row:2;grid-column:1;width:20px;height:3px;border-radius:calc(${controlCornerRadius} * 1px);justify-self:center;background:${accentFillRest}}.activeIndicatorTransition{transition:transform 0.2s ease-in-out}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host(.vertical){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host(.vertical) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;width:100%}:host(.vertical) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host(.vertical) .end{grid-row:3}:host(.vertical) .activeIndicator{grid-column:1;grid-row:1;width:3px;height:20px;margin-inline-start:calc(${focusStrokeWidth} * 1px);border-radius:calc(${controlCornerRadius} * 1px);align-self:center;background:${accentFillRest}}:host(.vertical) .activeIndicatorTransition{transition:transform 0.2s linear}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
23651
|
+
${display('grid')} :host{box-sizing:border-box;font-family:${bodyFont};font-size:${typeRampBaseFontSize};line-height:${typeRampBaseLineHeight};color:${neutralForegroundRest};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}.tablist{display:grid;grid-template-rows:calc(${heightNumber} * 1px);auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end}.start,.end{align-self:center}.activeIndicator{grid-row:2;grid-column:1;width:20px;height:3px;border-radius:calc(${controlCornerRadius} * 1px);justify-self:center;background:${accentFillRest}}.activeIndicatorTransition{transition:transform 0.2s ease-in-out}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host(.vertical){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host(.vertical) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host(.vertical) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host(.vertical) .end{grid-row:3}:host(.vertical) .activeIndicator{grid-column:1;grid-row:1;width:3px;height:20px;margin-inline-start:calc(${focusStrokeWidth} * 1px);border-radius:calc(${controlCornerRadius} * 1px);align-self:center;background:${accentFillRest}}:host(.vertical) .activeIndicatorTransition{transition:transform 0.2s linear}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
22973
23652
|
.activeIndicator,:host(.vertical) .activeIndicator{background:${SystemColors.Highlight}}`));
|
|
22974
23653
|
|
|
22975
23654
|
const tabStyles$1 = (context, definition) => css`
|
|
@@ -23362,6 +24041,7 @@ const allComponents = {
|
|
|
23362
24041
|
fluentBreadcrumb,
|
|
23363
24042
|
fluentBreadcrumbItem,
|
|
23364
24043
|
fluentButton,
|
|
24044
|
+
fluentCalendar,
|
|
23365
24045
|
fluentCard,
|
|
23366
24046
|
fluentCheckbox,
|
|
23367
24047
|
fluentCombobox,
|
|
@@ -23437,4 +24117,4 @@ function provideFluentDesignSystem(element) {
|
|
|
23437
24117
|
|
|
23438
24118
|
const FluentDesignSystem = provideFluentDesignSystem().register(allComponents);
|
|
23439
24119
|
|
|
23440
|
-
export { AccentButtonStyles, Accordion, AccordionItem, Anchor, AnchoredRegion, Badge, Breadcrumb, BreadcrumbItem, Button, Card, Combobox, DataGrid, DataGridCell, DataGridRow, DesignSystemProvider, Dialog, DirectionalStyleSheetBehavior, Divider, Flipper, FluentDesignSystem, HorizontalScroll, HypertextStyles, LightweightButtonStyles, Listbox, Menu, MenuItem, NumberField, OptionStyles, OutlineButtonStyles, PaletteRGB, Progress, ProgressRing, Radio, RadioGroup, RadioStyles, Select, Skeleton, Slider, SliderLabel, StandardLuminance, StealthButtonStyles, SwatchRGB, Switch, Tab, TabPanel, Tabs, TextArea, TextField, Toolbar, Tooltip, TreeItem, TreeView, accentBaseColor, accentFillActive, accentFillActiveDelta, accentFillFocus, accentFillFocusDelta, accentFillHover, accentFillHoverDelta, accentFillRecipe, accentFillRest, accentFillRestDelta, accentForegroundActive, accentForegroundActiveDelta, accentForegroundCut, accentForegroundCutLarge, accentForegroundFocus, accentForegroundFocusDelta, accentForegroundHover, accentForegroundHoverDelta, accentForegroundRecipe, accentForegroundRest, accentForegroundRestDelta, accentPalette, accentStrokeControlActive, accentStrokeControlFocus, accentStrokeControlHover, accentStrokeControlRecipe, accentStrokeControlRest, accordionItemStyles, accordionStyles, allComponents, ambientShadow, anchorStyles, anchoredRegionStyles, badgeStyles, baseButtonStyles, baseHeightMultiplier, baseHorizontalSpacingMultiplier, baseLayerLuminance, bodyFont, breadcrumbItemStyles, breadcrumbStyles, buttonStyles, cardStyles, checkboxStyles, comboboxStyles, controlCornerRadius, cornerRadius, dataGridCellStyles, dataGridRowStyles, dataGridStyles, density, designUnit, dialogStyles, direction, directionalShadow, disabledOpacity, dividerStyles, elevatedCornerRadius, elevation, elevationShadowCardActive, elevationShadowCardActiveSize, elevationShadowCardFocus, elevationShadowCardFocusSize, elevationShadowCardHover, elevationShadowCardHoverSize, elevationShadowCardRest, elevationShadowCardRestSize, elevationShadowDialog, elevationShadowDialogSize, elevationShadowFlyout, elevationShadowFlyoutSize, elevationShadowRecipe, elevationShadowTooltip, elevationShadowTooltipSize, fillColor, flipperStyles, fluentAccordion, fluentAccordionItem, fluentAnchor, fluentAnchoredRegion, fluentBadge, fluentBreadcrumb, fluentBreadcrumbItem, fluentButton, fluentCard, fluentCheckbox, fluentCombobox, fluentDataGrid, fluentDataGridCell, fluentDataGridRow, fluentDesignSystemProvider, fluentDialog, fluentDivider, fluentFlipper, fluentHorizontalScroll, fluentListbox, fluentMenu, fluentMenuItem, fluentNumberField, fluentOption, fluentProgress, fluentProgressRing, fluentRadio, fluentRadioGroup, fluentSelect, fluentSkeleton, fluentSlider, fluentSliderLabel, fluentSwitch, fluentTab, fluentTabPanel, fluentTabs, fluentTextArea, fluentTextField, fluentToolbar, fluentTooltip, fluentTreeItem, fluentTreeView, focusOutlineWidth, focusStrokeInner, focusStrokeInnerRecipe, focusStrokeOuter, focusStrokeOuterRecipe, focusStrokeWidth, foregroundOnAccentActive, foregroundOnAccentActiveLarge, foregroundOnAccentFocus, foregroundOnAccentFocusLarge, foregroundOnAccentHover, foregroundOnAccentHoverLarge, foregroundOnAccentLargeRecipe, foregroundOnAccentRecipe, foregroundOnAccentRest, foregroundOnAccentRestLarge, heightNumber, horizontalScrollStyles, inputFilledForcedColorStyles, inputFilledStyles, inputForcedColorStyles, inputStateStyles, inputStyles, isDark, layerCornerRadius, listboxStyles, menuItemStyles, menuStyles, neutralBaseColor, neutralContrastFillActive, neutralContrastFillActiveDelta, neutralContrastFillFocus, neutralContrastFillFocusDelta, neutralContrastFillHover, neutralContrastFillHoverDelta, neutralContrastFillRest, neutralContrastFillRestDelta, neutralDivider, neutralDividerRestDelta, neutralFillActive, neutralFillActiveDelta, neutralFillCard, neutralFillCardDelta, neutralFillFocus, neutralFillFocusDelta, neutralFillHover, neutralFillHoverDelta, neutralFillInputActive, neutralFillInputActiveDelta, neutralFillInputAltActive, neutralFillInputAltActiveDelta, neutralFillInputAltFocus, neutralFillInputAltFocusDelta, neutralFillInputAltHover, neutralFillInputAltHoverDelta, neutralFillInputAltRecipe, neutralFillInputAltRest, neutralFillInputAltRestDelta, neutralFillInputFocus, neutralFillInputFocusDelta, neutralFillInputHover, neutralFillInputHoverDelta, neutralFillInputRecipe, neutralFillInputRest, neutralFillInputRestDelta, neutralFillInverseActive, neutralFillInverseActiveDelta, neutralFillInverseFocus, neutralFillInverseFocusDelta, neutralFillInverseHover, neutralFillInverseHoverDelta, neutralFillInverseRecipe, neutralFillInverseRest, neutralFillInverseRestDelta, neutralFillLayerActive, neutralFillLayerActiveDelta, neutralFillLayerAltRecipe, neutralFillLayerAltRest, neutralFillLayerAltRestDelta, neutralFillLayerHover, neutralFillLayerHoverDelta, neutralFillLayerRecipe, neutralFillLayerRest, neutralFillLayerRestDelta, neutralFillRecipe, neutralFillRest, neutralFillRestDelta, neutralFillSecondaryActive, neutralFillSecondaryActiveDelta, neutralFillSecondaryFocus, neutralFillSecondaryFocusDelta, neutralFillSecondaryHover, neutralFillSecondaryHoverDelta, neutralFillSecondaryRecipe, neutralFillSecondaryRest, neutralFillSecondaryRestDelta, neutralFillStealthActive, neutralFillStealthActiveDelta, neutralFillStealthFocus, neutralFillStealthFocusDelta, neutralFillStealthHover, neutralFillStealthHoverDelta, neutralFillStealthRecipe, neutralFillStealthRest, neutralFillStealthRestDelta, neutralFillStrongActive, neutralFillStrongActiveDelta, neutralFillStrongFocus, neutralFillStrongFocusDelta, neutralFillStrongHover, neutralFillStrongHoverDelta, neutralFillStrongRecipe, neutralFillStrongRest, neutralFillStrongRestDelta, neutralFillToggleActive, neutralFillToggleActiveDelta, neutralFillToggleFocus, neutralFillToggleFocusDelta, neutralFillToggleHover, neutralFillToggleHoverDelta, neutralFillToggleRest, neutralFillToggleRestDelta, neutralFocus, neutralFocusInnerAccent, neutralForegroundActive, neutralForegroundFocus, neutralForegroundHint, neutralForegroundHintRecipe, neutralForegroundHover, neutralForegroundRecipe, neutralForegroundRest, neutralLayer1, neutralLayer1Recipe, neutralLayer2, neutralLayer2Recipe, neutralLayer3, neutralLayer3Recipe, neutralLayer4, neutralLayer4Recipe, neutralLayerCardContainer, neutralLayerCardContainerRecipe, neutralLayerFloating, neutralLayerFloatingRecipe, neutralLayerL1, neutralLayerL2, neutralLayerL3, neutralLayerL4, neutralOutlineActive, neutralOutlineFocus, neutralOutlineHover, neutralOutlineRest, neutralPalette, neutralStrokeActive, neutralStrokeActiveDelta, neutralStrokeControlActive, neutralStrokeControlActiveDelta, neutralStrokeControlFocus, neutralStrokeControlFocusDelta, neutralStrokeControlHover, neutralStrokeControlHoverDelta, neutralStrokeControlRecipe, neutralStrokeControlRest, neutralStrokeControlRestDelta, neutralStrokeDividerRecipe, neutralStrokeDividerRest, neutralStrokeDividerRestDelta, neutralStrokeFocus, neutralStrokeFocusDelta, neutralStrokeHover, neutralStrokeHoverDelta, neutralStrokeInputActive, neutralStrokeInputFocus, neutralStrokeInputHover, neutralStrokeInputRecipe, neutralStrokeInputRest, neutralStrokeLayerActive, neutralStrokeLayerActiveDelta, neutralStrokeLayerHover, neutralStrokeLayerHoverDelta, neutralStrokeLayerRecipe, neutralStrokeLayerRest, neutralStrokeLayerRestDelta, neutralStrokeRecipe, neutralStrokeRest, neutralStrokeRestDelta, neutralStrokeStrongActive, neutralStrokeStrongActiveDelta, neutralStrokeStrongFocus, neutralStrokeStrongFocusDelta, neutralStrokeStrongHover, neutralStrokeStrongHoverDelta, neutralStrokeStrongRecipe, neutralStrokeStrongRest, numberFieldStyles, outlineWidth, progressRingStyles, progressStyles, provideFluentDesignSystem, radioGroupStyles, selectStyles, skeletonStyles, sliderLabelStyles, sliderStyles, strokeWidth, switchStyles, tabPanelStyles, tabStyles, tabsStyles, textAreaStyles, textFieldStyles, treeItemStyles, treeViewStyles, typeRampBaseFontSize, typeRampBaseLineHeight, typeRampMinus1FontSize, typeRampMinus1LineHeight, typeRampMinus2FontSize, typeRampMinus2LineHeight, typeRampPlus1FontSize, typeRampPlus1LineHeight, typeRampPlus2FontSize, typeRampPlus2LineHeight, typeRampPlus3FontSize, typeRampPlus3LineHeight, typeRampPlus4FontSize, typeRampPlus4LineHeight, typeRampPlus5FontSize, typeRampPlus5LineHeight, typeRampPlus6FontSize, typeRampPlus6LineHeight };
|
|
24120
|
+
export { AccentButtonStyles, Accordion, AccordionItem, Anchor, AnchoredRegion, Badge, Breadcrumb, BreadcrumbItem, Button, Card, Combobox, DataGrid, DataGridCell, DataGridRow, DesignSystemProvider, Dialog, DirectionalStyleSheetBehavior, Divider, Flipper, FluentDesignSystem, HorizontalScroll, HypertextStyles, LightweightButtonStyles, Listbox, Menu, MenuItem, NumberField, OptionStyles, OutlineButtonStyles, PaletteRGB, Progress, ProgressRing, Radio, RadioGroup, RadioStyles, Select, Skeleton, Slider, SliderLabel, StandardLuminance, StealthButtonStyles, SwatchRGB, Switch, Tab, TabPanel, Tabs, TextArea, TextField, Toolbar, Tooltip, TreeItem, TreeView, accentBaseColor, accentFillActive, accentFillActiveDelta, accentFillFocus, accentFillFocusDelta, accentFillHover, accentFillHoverDelta, accentFillRecipe, accentFillRest, accentFillRestDelta, accentForegroundActive, accentForegroundActiveDelta, accentForegroundCut, accentForegroundCutLarge, accentForegroundFocus, accentForegroundFocusDelta, accentForegroundHover, accentForegroundHoverDelta, accentForegroundRecipe, accentForegroundRest, accentForegroundRestDelta, accentPalette, accentStrokeControlActive, accentStrokeControlFocus, accentStrokeControlHover, accentStrokeControlRecipe, accentStrokeControlRest, accordionItemStyles, accordionStyles, allComponents, ambientShadow, anchorStyles, anchoredRegionStyles, badgeStyles, baseButtonStyles, baseHeightMultiplier, baseHorizontalSpacingMultiplier, baseLayerLuminance, bodyFont, breadcrumbItemStyles, breadcrumbStyles, buttonStyles, cardStyles, checkboxStyles, comboboxStyles, controlCornerRadius, cornerRadius, dataGridCellStyles, dataGridRowStyles, dataGridStyles, density, designUnit, dialogStyles, direction, directionalShadow, disabledOpacity, dividerStyles, elevatedCornerRadius, elevation, elevationShadowCardActive, elevationShadowCardActiveSize, elevationShadowCardFocus, elevationShadowCardFocusSize, elevationShadowCardHover, elevationShadowCardHoverSize, elevationShadowCardRest, elevationShadowCardRestSize, elevationShadowDialog, elevationShadowDialogSize, elevationShadowFlyout, elevationShadowFlyoutSize, elevationShadowRecipe, elevationShadowTooltip, elevationShadowTooltipSize, fillColor, flipperStyles, fluentAccordion, fluentAccordionItem, fluentAnchor, fluentAnchoredRegion, fluentBadge, fluentBreadcrumb, fluentBreadcrumbItem, fluentButton, fluentCalendar, fluentCard, fluentCheckbox, fluentCombobox, fluentDataGrid, fluentDataGridCell, fluentDataGridRow, fluentDesignSystemProvider, fluentDialog, fluentDivider, fluentFlipper, fluentHorizontalScroll, fluentListbox, fluentMenu, fluentMenuItem, fluentNumberField, fluentOption, fluentProgress, fluentProgressRing, fluentRadio, fluentRadioGroup, fluentSelect, fluentSkeleton, fluentSlider, fluentSliderLabel, fluentSwitch, fluentTab, fluentTabPanel, fluentTabs, fluentTextArea, fluentTextField, fluentToolbar, fluentTooltip, fluentTreeItem, fluentTreeView, focusOutlineWidth, focusStrokeInner, focusStrokeInnerRecipe, focusStrokeOuter, focusStrokeOuterRecipe, focusStrokeWidth, foregroundOnAccentActive, foregroundOnAccentActiveLarge, foregroundOnAccentFocus, foregroundOnAccentFocusLarge, foregroundOnAccentHover, foregroundOnAccentHoverLarge, foregroundOnAccentLargeRecipe, foregroundOnAccentRecipe, foregroundOnAccentRest, foregroundOnAccentRestLarge, heightNumber, horizontalScrollStyles, inputFilledForcedColorStyles, inputFilledStyles, inputForcedColorStyles, inputStateStyles, inputStyles, isDark, layerCornerRadius, listboxStyles, menuItemStyles, menuStyles, neutralBaseColor, neutralContrastFillActive, neutralContrastFillActiveDelta, neutralContrastFillFocus, neutralContrastFillFocusDelta, neutralContrastFillHover, neutralContrastFillHoverDelta, neutralContrastFillRest, neutralContrastFillRestDelta, neutralDivider, neutralDividerRestDelta, neutralFillActive, neutralFillActiveDelta, neutralFillCard, neutralFillCardDelta, neutralFillFocus, neutralFillFocusDelta, neutralFillHover, neutralFillHoverDelta, neutralFillInputActive, neutralFillInputActiveDelta, neutralFillInputAltActive, neutralFillInputAltActiveDelta, neutralFillInputAltFocus, neutralFillInputAltFocusDelta, neutralFillInputAltHover, neutralFillInputAltHoverDelta, neutralFillInputAltRecipe, neutralFillInputAltRest, neutralFillInputAltRestDelta, neutralFillInputFocus, neutralFillInputFocusDelta, neutralFillInputHover, neutralFillInputHoverDelta, neutralFillInputRecipe, neutralFillInputRest, neutralFillInputRestDelta, neutralFillInverseActive, neutralFillInverseActiveDelta, neutralFillInverseFocus, neutralFillInverseFocusDelta, neutralFillInverseHover, neutralFillInverseHoverDelta, neutralFillInverseRecipe, neutralFillInverseRest, neutralFillInverseRestDelta, neutralFillLayerActive, neutralFillLayerActiveDelta, neutralFillLayerAltRecipe, neutralFillLayerAltRest, neutralFillLayerAltRestDelta, neutralFillLayerHover, neutralFillLayerHoverDelta, neutralFillLayerRecipe, neutralFillLayerRest, neutralFillLayerRestDelta, neutralFillRecipe, neutralFillRest, neutralFillRestDelta, neutralFillSecondaryActive, neutralFillSecondaryActiveDelta, neutralFillSecondaryFocus, neutralFillSecondaryFocusDelta, neutralFillSecondaryHover, neutralFillSecondaryHoverDelta, neutralFillSecondaryRecipe, neutralFillSecondaryRest, neutralFillSecondaryRestDelta, neutralFillStealthActive, neutralFillStealthActiveDelta, neutralFillStealthFocus, neutralFillStealthFocusDelta, neutralFillStealthHover, neutralFillStealthHoverDelta, neutralFillStealthRecipe, neutralFillStealthRest, neutralFillStealthRestDelta, neutralFillStrongActive, neutralFillStrongActiveDelta, neutralFillStrongFocus, neutralFillStrongFocusDelta, neutralFillStrongHover, neutralFillStrongHoverDelta, neutralFillStrongRecipe, neutralFillStrongRest, neutralFillStrongRestDelta, neutralFillToggleActive, neutralFillToggleActiveDelta, neutralFillToggleFocus, neutralFillToggleFocusDelta, neutralFillToggleHover, neutralFillToggleHoverDelta, neutralFillToggleRest, neutralFillToggleRestDelta, neutralFocus, neutralFocusInnerAccent, neutralForegroundActive, neutralForegroundFocus, neutralForegroundHint, neutralForegroundHintRecipe, neutralForegroundHover, neutralForegroundRecipe, neutralForegroundRest, neutralLayer1, neutralLayer1Recipe, neutralLayer2, neutralLayer2Recipe, neutralLayer3, neutralLayer3Recipe, neutralLayer4, neutralLayer4Recipe, neutralLayerCardContainer, neutralLayerCardContainerRecipe, neutralLayerFloating, neutralLayerFloatingRecipe, neutralLayerL1, neutralLayerL2, neutralLayerL3, neutralLayerL4, neutralOutlineActive, neutralOutlineFocus, neutralOutlineHover, neutralOutlineRest, neutralPalette, neutralStrokeActive, neutralStrokeActiveDelta, neutralStrokeControlActive, neutralStrokeControlActiveDelta, neutralStrokeControlFocus, neutralStrokeControlFocusDelta, neutralStrokeControlHover, neutralStrokeControlHoverDelta, neutralStrokeControlRecipe, neutralStrokeControlRest, neutralStrokeControlRestDelta, neutralStrokeDividerRecipe, neutralStrokeDividerRest, neutralStrokeDividerRestDelta, neutralStrokeFocus, neutralStrokeFocusDelta, neutralStrokeHover, neutralStrokeHoverDelta, neutralStrokeInputActive, neutralStrokeInputFocus, neutralStrokeInputHover, neutralStrokeInputRecipe, neutralStrokeInputRest, neutralStrokeLayerActive, neutralStrokeLayerActiveDelta, neutralStrokeLayerHover, neutralStrokeLayerHoverDelta, neutralStrokeLayerRecipe, neutralStrokeLayerRest, neutralStrokeLayerRestDelta, neutralStrokeRecipe, neutralStrokeRest, neutralStrokeRestDelta, neutralStrokeStrongActive, neutralStrokeStrongActiveDelta, neutralStrokeStrongFocus, neutralStrokeStrongFocusDelta, neutralStrokeStrongHover, neutralStrokeStrongHoverDelta, neutralStrokeStrongRecipe, neutralStrokeStrongRest, numberFieldStyles, outlineWidth, progressRingStyles, progressStyles, provideFluentDesignSystem, radioGroupStyles, selectStyles, skeletonStyles, sliderLabelStyles, sliderStyles, strokeWidth, switchStyles, tabPanelStyles, tabStyles, tabsStyles, textAreaStyles, textFieldStyles, treeItemStyles, treeViewStyles, typeRampBaseFontSize, typeRampBaseLineHeight, typeRampMinus1FontSize, typeRampMinus1LineHeight, typeRampMinus2FontSize, typeRampMinus2LineHeight, typeRampPlus1FontSize, typeRampPlus1LineHeight, typeRampPlus2FontSize, typeRampPlus2LineHeight, typeRampPlus3FontSize, typeRampPlus3LineHeight, typeRampPlus4FontSize, typeRampPlus4LineHeight, typeRampPlus5FontSize, typeRampPlus5LineHeight, typeRampPlus6FontSize, typeRampPlus6LineHeight };
|