Skip to content

Commit

Permalink
fix: change method for importing enUS locale
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-capsule42 committed Nov 5, 2024
1 parent 322fc0c commit 3d6abce
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion demo/api.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import AuroLibraryRuntimeUtils from '@aurodesignsystem/auro-library/scripts/util
import { __decorate } from 'tslib';
import { property } from 'lit/decorators.js';
import { getTime, startOfDay, format, parse, endOfMonth, getDay, addDays, addMonths, addYears, subMonths, subYears, getMonth, getYear } from 'date-fns';
import { enUS } from 'date-fns/esm/locale/index.js';
import { enUS } from 'date-fns/locale';
import { classMap } from 'lit/directives/class-map.js';
import { AuroPopover } from '@aurodesignsystem/auro-popover/src/auro-popover.js';
import chevronLeft from '@alaskaairux/icons/dist/icons/interface/chevron-left.mjs';
Expand Down
2 changes: 1 addition & 1 deletion demo/index.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import AuroLibraryRuntimeUtils from '@aurodesignsystem/auro-library/scripts/util
import { __decorate } from 'tslib';
import { property } from 'lit/decorators.js';
import { getTime, startOfDay, format, parse, endOfMonth, getDay, addDays, addMonths, addYears, subMonths, subYears, getMonth, getYear } from 'date-fns';
import { enUS } from 'date-fns/esm/locale/index.js';
import { enUS } from 'date-fns/locale';
import { classMap } from 'lit/directives/class-map.js';
import { AuroPopover } from '@aurodesignsystem/auro-popover/src/auro-popover.js';
import chevronLeft from '@alaskaairux/icons/dist/icons/interface/chevron-left.mjs';
Expand Down
2 changes: 1 addition & 1 deletion src/auro-calendar-cell.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { LitElement } from "lit";
import { html } from 'lit/static-html.js';
import { classMap } from 'lit/directives/class-map.js';
import { format, startOfDay } from 'date-fns';
import { enUS } from 'date-fns/esm/locale/index.js';
import { enUS } from 'date-fns/locale';

import styleCss from './style-auro-calendar-cell-css.js';
import colorCss from './color-cell-css.js';
Expand Down
4 changes: 2 additions & 2 deletions vendor/wc-range-datepicker/range-datepicker-calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { __decorate } from "tslib";
import { html, css, LitElement } from 'lit';
import { property } from 'lit/decorators.js';
import { addDays, addMonths, addYears, endOfMonth, format, getDay, parse, startOfDay, subMonths, subYears, } from 'date-fns';
import { enUS } from 'date-fns/esm/locale/index.js';
import './range-date-picker-cell.js';
import { enUS } from 'date-fns/locale';
import './range-datepicker-cell.js';
import { Day } from './day.js';

/* eslint-disable max-lines, no-void, no-magic-numbers, no-underscore-dangle, init-declarations, no-extra-parens, prefer-destructuring, no-unused-expressions */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { __decorate } from "tslib";
import { LitElement, html, css } from 'lit';
import { property } from 'lit/decorators.js';
import { format, getTime, startOfDay } from 'date-fns';
import { enUS } from 'date-fns/esm/locale/index.js';
import { enUS } from 'date-fns/locale';

/* eslint-disable prefer-rest-params, no-void, no-magic-numbers, no-underscore-dangle, init-declarations, no-extra-parens, max-params */

Expand Down

0 comments on commit 3d6abce

Please sign in to comment.