@commercelayer/app-elements 0.0.18 → 0.0.20
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/{Async-dfbb24cc.js → Async-86d7b52d.js} +18 -17
- package/dist/{InputDateComponent-ac582487.js → InputDateComponent-8fe235f4.js} +2542 -2381
- package/dist/{Select-31ba58f6.js → Select-c5f20a31.js} +2 -2
- package/dist/helpers/date.d.ts +4 -2
- package/dist/hooks/useClickAway.d.ts +1 -1
- package/dist/{main-d9ba2cb1.js → main-b7422b94.js} +1968 -1638
- package/dist/main.d.ts +1 -1
- package/dist/main.js +22 -21
- package/dist/{overrides-3bddf394.js → overrides-c4c3ace4.js} +1630 -1529
- package/dist/providers/CoreSdkProvider/index.d.ts +2 -2
- package/dist/providers/CoreSdkProvider/makeSdkClient.d.ts +1 -1
- package/dist/providers/ErrorBoundary.d.ts +1 -1
- package/dist/providers/TokenProvider/getInfoFromJwt.d.ts +1 -1
- package/dist/providers/TokenProvider/index.d.ts +3 -4
- package/dist/providers/TokenProvider/reducer.d.ts +2 -2
- package/dist/providers/TokenProvider/storage.d.ts +2 -2
- package/dist/providers/TokenProvider/types.d.ts +6 -6
- package/dist/providers/TokenProvider/url.d.ts +1 -1
- package/dist/providers/TokenProvider/validateToken.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/ui/atoms/A.d.ts +0 -1
- package/dist/ui/atoms/Avatar.d.ts +0 -1
- package/dist/ui/atoms/Badge.d.ts +1 -1
- package/dist/ui/atoms/Button.d.ts +3 -4
- package/dist/ui/atoms/Card.d.ts +0 -1
- package/dist/ui/atoms/Container.d.ts +0 -1
- package/dist/ui/atoms/EmptyState.d.ts +2 -2
- package/dist/ui/atoms/FlexRow.d.ts +2 -3
- package/dist/ui/atoms/Hint.d.ts +2 -2
- package/dist/ui/atoms/Icon.d.ts +19 -18
- package/dist/ui/atoms/Legend.d.ts +1 -1
- package/dist/ui/atoms/PageHeading.d.ts +2 -3
- package/dist/ui/atoms/RadialProgress.d.ts +1 -1
- package/dist/ui/atoms/Skeleton.d.ts +1 -1
- package/dist/ui/atoms/SkeletonTemplate.d.ts +5 -5
- package/dist/ui/atoms/Spacer.d.ts +2 -3
- package/dist/ui/atoms/Stack.d.ts +1 -1
- package/dist/ui/atoms/StatusDot.d.ts +1 -1
- package/dist/ui/atoms/Tabs.d.ts +1 -1
- package/dist/ui/atoms/Text.d.ts +6 -7
- package/dist/ui/atoms/dropdown/DropdownMenu.d.ts +0 -1
- package/dist/ui/atoms/dropdown/DropdownMenuDivider.d.ts +0 -1
- package/dist/ui/atoms/dropdown/DropdownMenuItem.d.ts +0 -1
- package/dist/ui/atoms/tables/Td.d.ts +0 -1
- package/dist/ui/atoms/tables/Th.d.ts +0 -1
- package/dist/ui/atoms/tables/Tr.d.ts +0 -1
- package/dist/ui/composite/ContextMenu.d.ts +0 -1
- package/dist/ui/composite/PageLayout.d.ts +2 -2
- package/dist/ui/composite/Report.d.ts +1 -1
- package/dist/ui/forms/Input.d.ts +2 -3
- package/dist/ui/forms/InputCheckbox.d.ts +3 -4
- package/dist/ui/forms/InputDate/InputDateComponent.d.ts +3 -4
- package/dist/ui/forms/InputDate/index.d.ts +3 -4
- package/dist/ui/forms/InputDateRange.d.ts +3 -4
- package/dist/ui/forms/InputFeedback.d.ts +1 -1
- package/dist/ui/forms/InputFile.d.ts +2 -3
- package/dist/ui/forms/InputJson.d.ts +1 -1
- package/dist/ui/forms/InputReadonly.d.ts +1 -1
- package/dist/ui/forms/InputSelect/Async.d.ts +3 -3
- package/dist/ui/forms/InputSelect/Select.d.ts +2 -2
- package/dist/ui/forms/InputSelect/index.d.ts +23 -6
- package/dist/ui/forms/InputSelect/overrides.d.ts +2 -2
- package/dist/ui/forms/InputSelect/styles.d.ts +3 -3
- package/dist/ui/forms/InputTextArea.d.ts +2 -3
- package/dist/ui/forms/InputToggleBox.d.ts +1 -2
- package/dist/ui/forms/InputToggleListBox.d.ts +1 -2
- package/dist/ui/forms/InputWrapper.d.ts +2 -2
- package/dist/ui/forms/Label.d.ts +0 -1
- package/dist/ui/forms/RadioButtons.d.ts +4 -5
- package/dist/ui/forms/ToggleButtons.d.ts +5 -6
- package/dist/ui/lists/List.d.ts +3 -3
- package/dist/ui/lists/ListDetails.d.ts +1 -1
- package/dist/ui/lists/ListDetailsItem.d.ts +1 -1
- package/dist/ui/lists/ListItem.d.ts +4 -5
- package/dist/ui/resources/ResourceList/index.d.ts +5 -5
- package/dist/ui/resources/ResourceList/infiniteFetcher.d.ts +3 -3
- package/dist/ui/resources/ResourceList/reducer.d.ts +2 -2
- package/dist/ui/tables/TableData.d.ts +1 -1
- package/dist/utils/children.d.ts +1 -1
- package/package.json +22 -22
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
2
|
import a, { forwardRef as s } from "react";
|
|
3
|
-
import { u as m, S as c, d as p, s as i } from "./overrides-
|
|
3
|
+
import { u as m, S as c, d as p, s as i } from "./overrides-c4c3ace4.js";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./main-
|
|
5
|
+
import "./main-b7422b94.js";
|
|
6
6
|
import "@commercelayer/sdk";
|
|
7
7
|
var l = /* @__PURE__ */ s(function(e, t) {
|
|
8
8
|
var o = m(e);
|
package/dist/helpers/date.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type Format = 'full' | 'noTime' | 'noYear';
|
|
2
|
+
type FormatDateOptions = {
|
|
3
3
|
/**
|
|
4
4
|
* JavaScript ISO date string. Example '2022-10-06T11:59:30.371Z'
|
|
5
5
|
*/
|
|
@@ -34,4 +34,6 @@ declare type FormatDateOptions = {
|
|
|
34
34
|
* @returns a nice string representation. Example: 'Jul 21, 2022' or 'Jul 21, 2022 · 1:16 PM' if includeTime
|
|
35
35
|
*/
|
|
36
36
|
export declare function formatDate({ isoDate, timezone, ...opts }: FormatDateOptions): string;
|
|
37
|
+
export declare function isCurrentYear(isoDate: string): boolean;
|
|
38
|
+
export declare function isToday(isoDate: string): boolean;
|
|
37
39
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
2
|
export declare const useClickAway: (onClickAway?: () => void) => RefObject<HTMLDivElement> | undefined;
|