@connectif/ui-components 2.3.2 → 2.3.4

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.
@@ -606,6 +606,7 @@ export declare const icons: {
606
606
  'division-box': string;
607
607
  dna: string;
608
608
  dns: string;
609
+ 'dns-outline': string;
609
610
  'do-not-disturb': string;
610
611
  'do-not-disturb-off': string;
611
612
  dolby: string;
package/dist/index.js CHANGED
@@ -1479,6 +1479,7 @@ import {
1479
1479
  mdiDivisionBox,
1480
1480
  mdiDna,
1481
1481
  mdiDns,
1482
+ mdiDnsOutline,
1482
1483
  mdiDomain,
1483
1484
  mdiSquareRounded,
1484
1485
  mdiDotsHorizontal,
@@ -3260,6 +3261,7 @@ var icons = {
3260
3261
  "division-box": mdiDivisionBox,
3261
3262
  dna: mdiDna,
3262
3263
  dns: mdiDns,
3264
+ "dns-outline": mdiDnsOutline,
3263
3265
  "do-not-disturb": mdiMinusCircle,
3264
3266
  "do-not-disturb-off": mdiMinusCircleOff,
3265
3267
  dolby: "M2,5V19H22V5H2M6,17H4V7H6C8.86,7.09 11.1,9.33 11,12C11.1,14.67 8.86,16.91 6,17M20,17H18C15.14,16.91 12.9,14.67 13,12C12.9,9.33 15.14,7.09 18,7H20V17Z",
@@ -16022,10 +16024,15 @@ function formatDate(date, locale, timezone, format2) {
16022
16024
  const options = getDateTimeFormatOptions(timezone, format2);
16023
16025
  return new Intl.DateTimeFormat(locale, options).format(date);
16024
16026
  }
16025
- function getWeekDayNamesForLocale(locale, format2 = "long") {
16026
- const f = new Intl.DateTimeFormat(locale, { weekday: format2 }).format;
16027
- return Array.from(Array(7).keys()).map(
16028
- (day) => f(new Date(Date.UTC(2021, 5, day)))
16027
+ function getWeekDayNamesForLocale(locale, format2 = "long", timezone = "UTC") {
16028
+ const formatter = new Intl.DateTimeFormat(locale, {
16029
+ weekday: format2,
16030
+ timeZone: timezone
16031
+ }).format;
16032
+ const mondayAnchor = tz({ year: 2021, month: 5, date: 7 }, timezone);
16033
+ return Array.from(
16034
+ { length: 7 },
16035
+ (_v, i) => formatter(mondayAnchor.clone().add(i, "day").toDate())
16029
16036
  );
16030
16037
  }
16031
16038
  function getDateInputFormatForLocale(locale) {
@@ -19252,14 +19259,14 @@ var CalendarMonth_default = CalendarMonth;
19252
19259
  import * as React53 from "react";
19253
19260
  import { jsx as jsx103 } from "react/jsx-runtime";
19254
19261
  var DaysOfWeekRow = () => {
19255
- const { locale } = React53.useContext(IntlContext);
19262
+ const { locale, timezone } = React53.useContext(IntlContext);
19256
19263
  const daysOfWeekLong = React53.useMemo(
19257
- () => getWeekDayNamesForLocale(locale, "long"),
19258
- [locale]
19264
+ () => getWeekDayNamesForLocale(locale, "long", timezone),
19265
+ [locale, timezone]
19259
19266
  );
19260
19267
  const daysOfWeek = React53.useMemo(
19261
- () => getWeekDayNamesForLocale(locale, "narrow"),
19262
- [locale]
19268
+ () => getWeekDayNamesForLocale(locale, "narrow", timezone),
19269
+ [locale, timezone]
19263
19270
  );
19264
19271
  return /* @__PURE__ */ jsx103(
19265
19272
  Stack_default,
@@ -20724,14 +20731,14 @@ var TimezoneSelector_default = TimezoneSelector;
20724
20731
  import * as React59 from "react";
20725
20732
  import { jsx as jsx112 } from "react/jsx-runtime";
20726
20733
  var DaysOfWeekPicker = ({ value, onChange }) => {
20727
- const { locale } = React59.useContext(IntlContext);
20734
+ const { locale, timezone } = React59.useContext(IntlContext);
20728
20735
  const daysOfWeekLong = React59.useMemo(
20729
- () => getWeekDayNamesForLocale(locale, "long"),
20730
- [locale]
20736
+ () => getWeekDayNamesForLocale(locale, "long", timezone),
20737
+ [locale, timezone]
20731
20738
  );
20732
20739
  const daysOfWeek = React59.useMemo(
20733
- () => getWeekDayNamesForLocale(locale, "narrow"),
20734
- [locale]
20740
+ () => getWeekDayNamesForLocale(locale, "narrow", timezone),
20741
+ [locale, timezone]
20735
20742
  );
20736
20743
  const daysOfWeekValues = [
20737
20744
  "monday",