@commercelayer/app-elements 1.7.2 → 1.8.1
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/{InputDateComponent-19744b8f.js → InputDateComponent-2f1ab98b.js} +1 -1
- package/dist/{main-db0cdf6a.js → main-45beb1e7.js} +6980 -6683
- package/dist/main.d.ts +2 -0
- package/dist/main.js +118 -115
- package/dist/style.css +1 -1
- package/dist/ui/atoms/AvatarLetter/AvatarLetter.d.ts +6 -1
- package/dist/ui/atoms/Icon/icons.d.ts +6 -1
- package/dist/ui/composite/OrganizationMenu.d.ts +21 -0
- package/dist/ui/composite/OrganizationMenu.test.d.ts +1 -0
- package/dist/ui/composite/SwitchMode.d.ts +6 -0
- package/dist/ui/composite/SwitchMode.test.d.ts +1 -0
- package/dist/ui/resources/ResourceListItem/common.d.ts +1 -1
- package/dist/ui/resources/ResourceTags.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as phosphor from '@phosphor-icons/react';
|
|
2
2
|
export declare const iconMapping: {
|
|
3
3
|
readonly arrowBendDownRight: phosphor.Icon;
|
|
4
|
+
readonly apps: phosphor.Icon;
|
|
4
5
|
readonly arrowCircleDown: phosphor.Icon;
|
|
5
6
|
readonly arrowClockwise: phosphor.Icon;
|
|
6
7
|
readonly arrowDown: phosphor.Icon;
|
|
@@ -12,6 +13,7 @@ export declare const iconMapping: {
|
|
|
12
13
|
readonly chatCircle: phosphor.Icon;
|
|
13
14
|
readonly check: phosphor.Icon;
|
|
14
15
|
readonly cloud: phosphor.Icon;
|
|
16
|
+
readonly credentials: phosphor.Icon;
|
|
15
17
|
readonly creditCard: phosphor.Icon;
|
|
16
18
|
readonly download: phosphor.Icon;
|
|
17
19
|
readonly eye: phosphor.Icon;
|
|
@@ -19,14 +21,17 @@ export declare const iconMapping: {
|
|
|
19
21
|
readonly funnel: phosphor.Icon;
|
|
20
22
|
readonly github: phosphor.Icon;
|
|
21
23
|
readonly google: phosphor.Icon;
|
|
24
|
+
readonly home: phosphor.Icon;
|
|
22
25
|
readonly hourglass: phosphor.Icon;
|
|
23
26
|
readonly magnifyingGlass: phosphor.Icon;
|
|
24
27
|
readonly minus: phosphor.Icon;
|
|
25
28
|
readonly package: phosphor.Icon;
|
|
26
29
|
readonly pencilSimple: phosphor.Icon;
|
|
27
30
|
readonly printer: phosphor.Icon;
|
|
31
|
+
readonly resources: phosphor.Icon;
|
|
32
|
+
readonly settings: phosphor.Icon;
|
|
28
33
|
readonly shoppingBag: phosphor.Icon;
|
|
29
|
-
readonly
|
|
34
|
+
readonly team: phosphor.Icon;
|
|
30
35
|
readonly truck: phosphor.Icon;
|
|
31
36
|
readonly upload: phosphor.Icon;
|
|
32
37
|
readonly user: phosphor.Icon;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { type FC, type ReactNode } from 'react';
|
|
2
|
+
export interface OrganizationMenuItemProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'children' | 'type'> {
|
|
3
|
+
/**
|
|
4
|
+
* the type will be used to render the icon and the label
|
|
5
|
+
*/
|
|
6
|
+
type: 'home' | 'apps' | 'resources' | 'credentials' | 'team' | 'settings';
|
|
7
|
+
/**
|
|
8
|
+
* set the active status of the menu item
|
|
9
|
+
*/
|
|
10
|
+
isActive?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Render the wrapper for the OrganizationMenuItem
|
|
14
|
+
*/
|
|
15
|
+
export declare const OrganizationMenuItem: FC<OrganizationMenuItemProps>;
|
|
16
|
+
/**
|
|
17
|
+
* Render the wrapper for the OrganizationMenuItem
|
|
18
|
+
*/
|
|
19
|
+
export declare const OrganizationMenu: FC<{
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -8,7 +8,7 @@ export declare const ListItemDescription: import('../../atoms/SkeletonTemplate')
|
|
|
8
8
|
}>;
|
|
9
9
|
export declare const ListItemIcon: import('../../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
10
10
|
color: "none" | "green" | "orange" | "red" | "gray" | "teal" | "white" | "black" | undefined;
|
|
11
|
-
icon: "download" | "package" | "arrowBendDownRight" | "arrowCircleDown" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowsLeftRight" | "arrowUpRight" | "asterisk" | "caretRight" | "chatCircle" | "check" | "cloud" | "creditCard" | "eye" | "flag" | "funnel" | "github" | "google" | "hourglass" | "magnifyingGlass" | "minus" | "pencilSimple" | "printer" | "shoppingBag" | "
|
|
11
|
+
icon: "download" | "package" | "settings" | "arrowBendDownRight" | "apps" | "arrowCircleDown" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowsLeftRight" | "arrowUpRight" | "asterisk" | "caretRight" | "chatCircle" | "check" | "cloud" | "credentials" | "creditCard" | "eye" | "flag" | "funnel" | "github" | "google" | "home" | "hourglass" | "magnifyingGlass" | "minus" | "pencilSimple" | "printer" | "resources" | "shoppingBag" | "team" | "truck" | "upload" | "user" | "warning" | "warningCircle" | "x";
|
|
12
12
|
delayMs?: number | undefined;
|
|
13
13
|
isLoading?: boolean | undefined;
|
|
14
14
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ListableResourceType } from '@commercelayer/sdk/lib/cjs/api';
|
|
2
|
-
type TaggableResource = Extract<ListableResourceType, 'addresses' | 'bundles' | 'customers' | 'coupons' | 'gift_cards' | 'line_items' | 'orders' | 'returns' | 'sku_options' | 'skus'>;
|
|
2
|
+
type TaggableResource = Extract<ListableResourceType, 'addresses' | 'bundles' | 'customers' | 'coupons' | 'gift_cards' | 'line_items' | 'orders' | 'returns' | 'sku_options' | 'skus' | 'shipments'>;
|
|
3
3
|
interface TagsOverlay {
|
|
4
4
|
/**
|
|
5
5
|
* Title shown as first line in edit overlay heading
|