@coopdigital/react 0.51.1 → 0.52.0
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/dist/components/DatePicker/datepicker-utils.js +1 -1
- package/dist/components/FieldMarkers/Error.js +1 -1
- package/dist/components/FieldMarkers/Hint.js +1 -1
- package/dist/components/FieldMarkers/Label.js +1 -1
- package/dist/components/FieldMarkers/Legend.js +1 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +1 -1
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +1 -1
- package/dist/node_modules/date-fns/addDays.js +1 -1
- package/dist/node_modules/date-fns/addMonths.js +1 -1
- package/dist/node_modules/date-fns/addWeeks.js +1 -1
- package/dist/node_modules/date-fns/addYears.js +1 -1
- package/dist/node_modules/date-fns/constructFrom.js +1 -1
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +1 -1
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +1 -1
- package/dist/node_modules/date-fns/eachMonthOfInterval.js +1 -1
- package/dist/node_modules/date-fns/eachYearOfInterval.js +1 -1
- package/dist/node_modules/date-fns/endOfISOWeek.js +1 -1
- package/dist/node_modules/date-fns/endOfMonth.js +1 -1
- package/dist/node_modules/date-fns/endOfWeek.js +1 -1
- package/dist/node_modules/date-fns/endOfYear.js +1 -1
- package/dist/node_modules/date-fns/format.js +1 -1
- package/dist/node_modules/date-fns/getDayOfYear.js +1 -1
- package/dist/node_modules/date-fns/getDaysInMonth.js +1 -1
- package/dist/node_modules/date-fns/getDefaultOptions.js +1 -1
- package/dist/node_modules/date-fns/getISODay.js +1 -1
- package/dist/node_modules/date-fns/getISOWeek.js +1 -1
- package/dist/node_modules/date-fns/getISOWeekYear.js +1 -1
- package/dist/node_modules/date-fns/getMonth.js +1 -1
- package/dist/node_modules/date-fns/getWeek.js +1 -1
- package/dist/node_modules/date-fns/getWeekYear.js +1 -1
- package/dist/node_modules/date-fns/getYear.js +1 -1
- package/dist/node_modules/date-fns/isAfter.js +1 -1
- package/dist/node_modules/date-fns/isBefore.js +1 -1
- package/dist/node_modules/date-fns/isDate.js +1 -1
- package/dist/node_modules/date-fns/isSameDay.js +1 -1
- package/dist/node_modules/date-fns/isSameMonth.js +1 -1
- package/dist/node_modules/date-fns/isSameYear.js +1 -1
- package/dist/node_modules/date-fns/isValid.js +1 -1
- package/dist/node_modules/date-fns/locale/en-US.js +1 -1
- package/dist/node_modules/date-fns/max.js +1 -1
- package/dist/node_modules/date-fns/min.js +1 -1
- package/dist/node_modules/date-fns/parse.js +1 -1
- package/dist/node_modules/date-fns/setDay.js +1 -1
- package/dist/node_modules/date-fns/setISODay.js +1 -1
- package/dist/node_modules/date-fns/setISOWeek.js +1 -1
- package/dist/node_modules/date-fns/setMonth.js +1 -1
- package/dist/node_modules/date-fns/setWeek.js +1 -1
- package/dist/node_modules/date-fns/setYear.js +1 -1
- package/dist/node_modules/date-fns/startOfDay.js +1 -1
- package/dist/node_modules/date-fns/startOfISOWeek.js +1 -1
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +1 -1
- package/dist/node_modules/date-fns/startOfMonth.js +1 -1
- package/dist/node_modules/date-fns/startOfWeek.js +1 -1
- package/dist/node_modules/date-fns/startOfWeekYear.js +1 -1
- package/dist/node_modules/date-fns/startOfYear.js +1 -1
- package/dist/node_modules/date-fns/toDate.js +1 -1
- package/dist/node_modules/date-fns/transpose.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +1 -1
- package/package.json +11 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isValid } from '../../node_modules/date-fns/isValid.js';
|
|
2
2
|
import { parse } from '../../node_modules/date-fns/parse.js';
|
|
3
3
|
import { addYears } from '../../node_modules/date-fns/addYears.js';
|
|
4
|
-
import {
|
|
4
|
+
import { format } from '../../node_modules/date-fns/format.js';
|
|
5
5
|
import { isBefore } from '../../node_modules/date-fns/isBefore.js';
|
|
6
6
|
|
|
7
7
|
function isValidDate(date) {
|
|
@@ -10,4 +10,4 @@ const Legend = ({ children, className, isVisible = true, ref, ...props }) => {
|
|
|
10
10
|
return (jsxs(Fragment, { children: [jsx("legend", { className: "sr-only", children: children }), isVisible && (jsx("div", { ...componentProps, ref: ref, children: children }))] }));
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
export { Legend
|
|
13
|
+
export { Legend };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { evaluate, getSideAxis, getSide, clamp, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, getAlignmentSides, getAlignment, min, max, getPaddingObject, rectToClientRect, getOppositeAxis,
|
|
1
|
+
import { evaluate, getSideAxis, getSide, clamp, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, getAlignmentSides, getAlignment, min, max, getAlignmentAxis, getPaddingObject, rectToClientRect, getOppositeAxis, sides, getAxisLength } from '../../utils/dist/floating-ui.utils.js';
|
|
2
2
|
|
|
3
3
|
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
4
4
|
let {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { offset as offset$1, shift as shift$1, flip as flip$1, size as size$1, hide as hide$1,
|
|
1
|
+
import { computePosition as computePosition$1, offset as offset$1, shift as shift$1, flip as flip$1, size as size$1, hide as hide$1, arrow as arrow$1, limitShift as limitShift$1 } from '../../core/dist/floating-ui.core.js';
|
|
2
2
|
import { createCoords, round, max, min, rectToClientRect, floor } from '../../utils/dist/floating-ui.utils.js';
|
|
3
3
|
import { isElement, getDocumentElement, getOverflowAncestors, getComputedStyle as getComputedStyle$1, isHTMLElement, getWindow, isTopLayer, getParentNode, isLastTraversableNode, isTableElement, isContainingBlock, getContainingBlock, getNodeName, isOverflowElement, getNodeScroll, getFrameElement, isWebKit } from '../../utils/dist/floating-ui.utils.dom.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { offset as offset$1, shift as shift$1, flip as flip$1, size as size$1, hide as hide$1,
|
|
1
|
+
import { computePosition, offset as offset$1, shift as shift$1, flip as flip$1, size as size$1, hide as hide$1, arrow as arrow$2, limitShift as limitShift$1 } from '../../dom/dist/floating-ui.dom.js';
|
|
2
2
|
export { autoUpdate, platform } from '../../dom/dist/floating-ui.dom.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { useLayoutEffect } from 'react';
|
|
@@ -8,7 +8,7 @@ import { DismissableLayer } from '../../react-dismissable-layer/dist/index.js';
|
|
|
8
8
|
import { useFocusGuards } from '../../react-focus-guards/dist/index.js';
|
|
9
9
|
import { FocusScope } from '../../react-focus-scope/dist/index.js';
|
|
10
10
|
import { useId } from '../../react-id/dist/index.js';
|
|
11
|
-
import {
|
|
11
|
+
import { Root as Root2$1, createPopperScope, Anchor, Content, Arrow } from '../../react-popper/dist/index.js';
|
|
12
12
|
import { Portal as Portal$1 } from '../../react-portal/dist/index.js';
|
|
13
13
|
import { Presence } from '../../react-presence/dist/index.js';
|
|
14
14
|
import { Primitive } from '../../react-primitive/dist/index.js';
|
|
@@ -59,4 +59,4 @@ function differenceInCalendarDays(laterDate, earlierDate, options) {
|
|
|
59
59
|
return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export { differenceInCalendarDays
|
|
62
|
+
export { differenceInCalendarDays };
|
|
@@ -420,4 +420,4 @@ function cleanEscapedString(input) {
|
|
|
420
420
|
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
421
421
|
}
|
|
422
422
|
|
|
423
|
-
export { format
|
|
423
|
+
export { format, format as formatDate, formatters, longFormatters };
|
|
@@ -34,7 +34,7 @@ import { startOfISOWeek } from '../../../../date-fns/startOfISOWeek.js';
|
|
|
34
34
|
import { startOfMonth } from '../../../../date-fns/startOfMonth.js';
|
|
35
35
|
import { startOfWeek } from '../../../../date-fns/startOfWeek.js';
|
|
36
36
|
import { startOfYear } from '../../../../date-fns/startOfYear.js';
|
|
37
|
-
import {
|
|
37
|
+
import { format } from '../../../../date-fns/format.js';
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* A wrapper class around [date-fns](http://date-fns.org) that provides utility
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { enUS as enUS$1 } from '../../../../date-fns/locale/en-US.js';
|
|
2
|
-
import {
|
|
2
|
+
import { format } from '../../../../date-fns/format.js';
|
|
3
3
|
|
|
4
4
|
/** English (United States) locale extended with DayPicker-specific translations. */
|
|
5
5
|
const enUS = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coopdigital/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.52.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -56,20 +56,20 @@
|
|
|
56
56
|
"description": "React components for the Experience Library design system",
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@axe-core/playwright": "^4.11.0",
|
|
59
|
-
"@playwright/test": "^1.
|
|
60
|
-
"@storybook/addon-a11y": "^10.
|
|
61
|
-
"@storybook/addon-docs": "^10.
|
|
62
|
-
"@storybook/addon-onboarding": "^10.
|
|
63
|
-
"@storybook/react-vite": "^10.
|
|
59
|
+
"@playwright/test": "^1.58.0",
|
|
60
|
+
"@storybook/addon-a11y": "^10.2.0",
|
|
61
|
+
"@storybook/addon-docs": "^10.2.0",
|
|
62
|
+
"@storybook/addon-onboarding": "^10.2.0",
|
|
63
|
+
"@storybook/react-vite": "^10.2.0",
|
|
64
64
|
"@testing-library/jest-dom": "^6.9.1",
|
|
65
|
-
"@testing-library/react": "^16.3.
|
|
66
|
-
"@types/react": "^19.2.
|
|
65
|
+
"@testing-library/react": "^16.3.2",
|
|
66
|
+
"@types/react": "^19.2.9",
|
|
67
67
|
"@types/react-dom": "^19.2.3",
|
|
68
68
|
"react": "^19.2.3",
|
|
69
69
|
"react-dom": "^19.2.3",
|
|
70
70
|
"resize-observer-polyfill": "^1.5.1",
|
|
71
71
|
"serve": "^14.2.5",
|
|
72
|
-
"storybook": "^10.
|
|
72
|
+
"storybook": "^10.2.0",
|
|
73
73
|
"storybook-addon-tag-badges": "^3.0.4"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
@@ -80,10 +80,10 @@
|
|
|
80
80
|
"storybook": "$storybook"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@coopdigital/styles": "^0.
|
|
83
|
+
"@coopdigital/styles": "^0.44.0",
|
|
84
84
|
"@radix-ui/react-popover": "^1.1.15",
|
|
85
85
|
"clsx": "^2.1.1",
|
|
86
86
|
"react-day-picker": "^9.12.0"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "7c4237c85692fb84fcd5929486a47f669097fa1a"
|
|
89
89
|
}
|