@cerberus-design/react 1.3.0-rc.3 → 1.4.0-rc.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/components/admonition/primitives.cjs +1 -1
- package/dist/components/admonition/primitives.d.cts +2 -2
- package/dist/components/admonition/primitives.d.ts +2 -2
- package/dist/components/admonition/primitives.js +1 -1
- package/dist/components/combobox/combobox.d.cts +2 -3
- package/dist/components/combobox/combobox.d.ts +2 -3
- package/dist/components/combobox/index.cjs +1 -0
- package/dist/components/combobox/index.js +2 -2
- package/dist/components/combobox/parts.cjs +1 -0
- package/dist/components/combobox/parts.d.cts +4 -0
- package/dist/components/combobox/parts.d.ts +4 -0
- package/dist/components/combobox/parts.js +2 -1
- package/dist/components/combobox/primitives.cjs +2 -0
- package/dist/components/combobox/primitives.d.cts +4 -2
- package/dist/components/combobox/primitives.d.ts +4 -2
- package/dist/components/combobox/primitives.js +2 -1
- package/dist/components/field/field.d.cts +2 -1
- package/dist/components/field/field.d.ts +2 -1
- package/dist/components/file-upload/file-status.cjs +28 -28
- package/dist/components/file-upload/file-status.js +28 -28
- package/dist/components/marquee/Marquee.1.d.cts +1 -0
- package/dist/components/marquee/Marquee.1.d.ts +1 -0
- package/dist/components/marquee/index.cjs +10 -0
- package/dist/components/marquee/index.d.cts +2 -0
- package/dist/components/marquee/index.d.ts +2 -0
- package/dist/components/marquee/index.js +3 -0
- package/dist/components/marquee/marquee.cjs +46 -0
- package/dist/components/marquee/marquee.d.cts +23 -0
- package/dist/components/marquee/marquee.d.ts +23 -0
- package/dist/components/marquee/marquee.js +46 -0
- package/dist/components/marquee/primitives.cjs +18 -0
- package/dist/components/marquee/primitives.d.cts +16 -0
- package/dist/components/marquee/primitives.d.ts +16 -0
- package/dist/components/marquee/primitives.js +13 -0
- package/dist/components/marquee/utils.cjs +33 -0
- package/dist/components/marquee/utils.d.cts +4 -0
- package/dist/components/marquee/utils.d.ts +4 -0
- package/dist/components/marquee/utils.js +31 -0
- package/dist/components/notifications/center.cjs +11 -13
- package/dist/components/notifications/center.d.cts +0 -2
- package/dist/components/notifications/center.d.ts +0 -2
- package/dist/components/notifications/center.js +12 -13
- package/dist/components/notifications/index.cjs +0 -1
- package/dist/components/notifications/index.js +2 -2
- package/dist/components/notifications/match-icon.cjs +3 -4
- package/dist/components/notifications/match-icon.js +3 -4
- package/dist/components/tag/closable.cjs +1 -1
- package/dist/components/tag/closable.js +1 -1
- package/dist/config/icons/default.cjs +5 -1
- package/dist/config/icons/default.js +6 -2
- package/dist/config/types.d.cts +4 -0
- package/dist/config/types.d.ts +4 -0
- package/dist/index.cjs +140 -106
- package/dist/index.client.d.cts +2 -1
- package/dist/index.client.d.ts +2 -1
- package/dist/index.client.js +3 -2
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -4
- package/dist/panda.buildinfo.json +3 -1
- package/package.json +19 -19
|
@@ -9,7 +9,7 @@ var { withSlotRecipe, withNoRecipe } = require_index.createCerberusPrimitive(sty
|
|
|
9
9
|
/**
|
|
10
10
|
* The `AdmonitionRoot` component is the container for the Admonition.
|
|
11
11
|
*/
|
|
12
|
-
var AdmonitionRoot = withSlotRecipe("
|
|
12
|
+
var AdmonitionRoot = withSlotRecipe("div", "root", { defaultProps: {
|
|
13
13
|
"data-scope": "admonition",
|
|
14
14
|
"data-part": "root"
|
|
15
15
|
} });
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AdmonitionVariantProps } from 'styled-system/recipes';
|
|
2
2
|
import { CerberusProps } from '../../system/index';
|
|
3
|
-
import { ForwardRefExoticComponent,
|
|
3
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefAttributes } from 'react';
|
|
4
4
|
import { CerberusPrimitiveProps } from '../..';
|
|
5
5
|
/**
|
|
6
6
|
* The `AdmonitionRoot` component is the container for the Admonition.
|
|
7
7
|
*/
|
|
8
|
-
export declare const AdmonitionRoot: ForwardRefExoticComponent<Omit< CerberusPrimitiveProps<
|
|
8
|
+
export declare const AdmonitionRoot: ForwardRefExoticComponent<Omit< CerberusPrimitiveProps<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
9
9
|
export type AdmonitionRootProps = CerberusProps<'aside'> & AdmonitionVariantProps;
|
|
10
10
|
/**
|
|
11
11
|
* The `AdmonitionIndicator` component is the indicator for the Admonition.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AdmonitionVariantProps } from 'styled-system/recipes';
|
|
2
2
|
import { CerberusProps } from '../../system/index';
|
|
3
|
-
import { ForwardRefExoticComponent,
|
|
3
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefAttributes } from 'react';
|
|
4
4
|
import { CerberusPrimitiveProps } from '../..';
|
|
5
5
|
/**
|
|
6
6
|
* The `AdmonitionRoot` component is the container for the Admonition.
|
|
7
7
|
*/
|
|
8
|
-
export declare const AdmonitionRoot: ForwardRefExoticComponent<Omit< CerberusPrimitiveProps<
|
|
8
|
+
export declare const AdmonitionRoot: ForwardRefExoticComponent<Omit< CerberusPrimitiveProps<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
9
9
|
export type AdmonitionRootProps = CerberusProps<'aside'> & AdmonitionVariantProps;
|
|
10
10
|
/**
|
|
11
11
|
* The `AdmonitionIndicator` component is the indicator for the Admonition.
|
|
@@ -9,7 +9,7 @@ var { withSlotRecipe, withNoRecipe } = createCerberusPrimitive(admonition);
|
|
|
9
9
|
/**
|
|
10
10
|
* The `AdmonitionRoot` component is the container for the Admonition.
|
|
11
11
|
*/
|
|
12
|
-
var AdmonitionRoot = withSlotRecipe("
|
|
12
|
+
var AdmonitionRoot = withSlotRecipe("div", "root", { defaultProps: {
|
|
13
13
|
"data-scope": "admonition",
|
|
14
14
|
"data-part": "root"
|
|
15
15
|
} });
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ComboboxRootProps } from '@ark-ui/react/combobox';
|
|
2
2
|
import { ComboboxVariantProps } from 'styled-system/recipes';
|
|
3
|
-
import { SelectCollectionItem } from '../select/select';
|
|
4
3
|
import { FieldInputElProps } from '../field/index';
|
|
5
|
-
export interface ComboboxProps extends ComboboxRootProps<
|
|
4
|
+
export interface ComboboxProps<T> extends ComboboxRootProps<T>, ComboboxVariantProps {
|
|
6
5
|
/**
|
|
7
6
|
* The label that appears above the combobox input.
|
|
8
7
|
*/
|
|
@@ -12,4 +11,4 @@ export interface ComboboxProps extends ComboboxRootProps<SelectCollectionItem>,
|
|
|
12
11
|
*/
|
|
13
12
|
startIcon?: FieldInputElProps['startIcon'];
|
|
14
13
|
}
|
|
15
|
-
export declare function Combobox(props: ComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function Combobox<T>(props: ComboboxProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ComboboxRootProps } from '@ark-ui/react/combobox';
|
|
2
2
|
import { ComboboxVariantProps } from 'styled-system/recipes';
|
|
3
|
-
import { SelectCollectionItem } from '../select/select';
|
|
4
3
|
import { FieldInputElProps } from '../field/index';
|
|
5
|
-
export interface ComboboxProps extends ComboboxRootProps<
|
|
4
|
+
export interface ComboboxProps<T> extends ComboboxRootProps<T>, ComboboxVariantProps {
|
|
6
5
|
/**
|
|
7
6
|
* The label that appears above the combobox input.
|
|
8
7
|
*/
|
|
@@ -12,4 +11,4 @@ export interface ComboboxProps extends ComboboxRootProps<SelectCollectionItem>,
|
|
|
12
11
|
*/
|
|
13
12
|
startIcon?: FieldInputElProps['startIcon'];
|
|
14
13
|
}
|
|
15
|
-
export declare function Combobox(props: ComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function Combobox<T>(props: ComboboxProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,6 +11,7 @@ exports.ComboItemWithIndicator = require_item.ComboItemWithIndicator;
|
|
|
11
11
|
exports.Combobox = require_combobox.Combobox;
|
|
12
12
|
exports.ComboboxClearTrigger = require_primitives.ComboboxClearTrigger;
|
|
13
13
|
exports.ComboboxContent = require_primitives.ComboboxContent;
|
|
14
|
+
exports.ComboboxContext = require_primitives.ComboboxContext;
|
|
14
15
|
exports.ComboboxControl = require_primitives.ComboboxControl;
|
|
15
16
|
exports.ComboboxInput = require_primitives.ComboboxInput;
|
|
16
17
|
exports.ComboboxItem = require_primitives.ComboboxItem;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComboItemText, ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxItemGroup, ComboboxItemGroupLabel, ComboboxItemIndicator, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxRoot, ComboboxStartIcon, ComboboxTrigger } from "./primitives.js";
|
|
1
|
+
import { ComboItemText, ComboboxClearTrigger, ComboboxContent, ComboboxContext, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxItemGroup, ComboboxItemGroupLabel, ComboboxItemIndicator, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxRoot, ComboboxStartIcon, ComboboxTrigger } from "./primitives.js";
|
|
2
2
|
import { ComboboxParts } from "./parts.js";
|
|
3
3
|
import { Combobox } from "./combobox.js";
|
|
4
4
|
import { ComboItemWithIndicator } from "./item.js";
|
|
5
5
|
import { ComboItemGroup } from "./item-group.js";
|
|
6
6
|
import { useStatefulCollection } from "./use-stateful-collection.js";
|
|
7
|
-
export { ComboItemGroup, ComboItemText, ComboItemWithIndicator, Combobox, ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxItemGroup, ComboboxItemGroupLabel, ComboboxItemIndicator, ComboboxItemText, ComboboxLabel, ComboboxParts, ComboboxPositioner, ComboboxRoot, ComboboxStartIcon, ComboboxTrigger, useStatefulCollection };
|
|
7
|
+
export { ComboItemGroup, ComboItemText, ComboItemWithIndicator, Combobox, ComboboxClearTrigger, ComboboxContent, ComboboxContext, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxItemGroup, ComboboxItemGroupLabel, ComboboxItemIndicator, ComboboxItemText, ComboboxLabel, ComboboxParts, ComboboxPositioner, ComboboxRoot, ComboboxStartIcon, ComboboxTrigger, useStatefulCollection };
|
|
@@ -10,6 +10,7 @@ const require_primitives = require("./primitives.cjs");
|
|
|
10
10
|
* the entire family of components vs. only what you use.
|
|
11
11
|
*/
|
|
12
12
|
var ComboboxParts = {
|
|
13
|
+
Context: require_primitives.ComboboxContext,
|
|
13
14
|
Root: require_primitives.ComboboxRoot,
|
|
14
15
|
Label: require_primitives.ComboboxLabel,
|
|
15
16
|
Control: require_primitives.ComboboxControl,
|
|
@@ -4,6 +4,10 @@ import { ElementType } from 'react';
|
|
|
4
4
|
* @module 'combobox/parts'
|
|
5
5
|
*/
|
|
6
6
|
interface ComboboxPartsValue {
|
|
7
|
+
/**
|
|
8
|
+
* A uitility component to pass the context without a hook.
|
|
9
|
+
*/
|
|
10
|
+
Context: ElementType;
|
|
7
11
|
/**
|
|
8
12
|
* The context provider for the Select component.
|
|
9
13
|
*/
|
|
@@ -4,6 +4,10 @@ import { ElementType } from 'react';
|
|
|
4
4
|
* @module 'combobox/parts'
|
|
5
5
|
*/
|
|
6
6
|
interface ComboboxPartsValue {
|
|
7
|
+
/**
|
|
8
|
+
* A uitility component to pass the context without a hook.
|
|
9
|
+
*/
|
|
10
|
+
Context: ElementType;
|
|
7
11
|
/**
|
|
8
12
|
* The context provider for the Select component.
|
|
9
13
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxItemGroup, ComboboxItemGroupLabel, ComboboxItemIndicator, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxRoot, ComboboxTrigger } from "./primitives.js";
|
|
1
|
+
import { ComboboxClearTrigger, ComboboxContent, ComboboxContext, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxItemGroup, ComboboxItemGroupLabel, ComboboxItemIndicator, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxRoot, ComboboxTrigger } from "./primitives.js";
|
|
2
2
|
//#region src/components/combobox/parts.ts
|
|
3
3
|
/**
|
|
4
4
|
* An Object containing the parts of the Radio component. For users that
|
|
@@ -10,6 +10,7 @@ import { ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput,
|
|
|
10
10
|
* the entire family of components vs. only what you use.
|
|
11
11
|
*/
|
|
12
12
|
var ComboboxParts = {
|
|
13
|
+
Context: ComboboxContext,
|
|
13
14
|
Root: ComboboxRoot,
|
|
14
15
|
Label: ComboboxLabel,
|
|
15
16
|
Control: ComboboxControl,
|
|
@@ -12,6 +12,7 @@ var { withSlotRecipe } = require_index.createCerberusPrimitive(styled_system_rec
|
|
|
12
12
|
* The ComboboxRoot component is the context provider for the Combobox
|
|
13
13
|
* component.
|
|
14
14
|
*/
|
|
15
|
+
var ComboboxContext = _ark_ui_react_combobox.Combobox.Context;
|
|
15
16
|
var ComboboxRoot = withSlotRecipe(_ark_ui_react_combobox.Combobox.Root, "root");
|
|
16
17
|
/**
|
|
17
18
|
* The label that appears above the combobox input.
|
|
@@ -70,6 +71,7 @@ var ComboItemText = ComboboxItemText;
|
|
|
70
71
|
exports.ComboItemText = ComboItemText;
|
|
71
72
|
exports.ComboboxClearTrigger = ComboboxClearTrigger;
|
|
72
73
|
exports.ComboboxContent = ComboboxContent;
|
|
74
|
+
exports.ComboboxContext = ComboboxContext;
|
|
73
75
|
exports.ComboboxControl = ComboboxControl;
|
|
74
76
|
exports.ComboboxInput = ComboboxInput;
|
|
75
77
|
exports.ComboboxItem = ComboboxItem;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { Combobox, ComboboxClearTriggerProps as ArkComboboxClearTriggerProps, ComboboxContentProps as ArkComboboxContentProps, ComboboxControlProps as ArkComboboxControlProps, ComboboxInputProps as ArkComboboxInputProps, ComboboxItemGroupLabelProps as ArkComboboxItemGroupLabelProps, ComboboxItemGroupProps as ArkComboboxItemGroupProps, ComboboxItemIndicatorProps as ArkComboboxItemIndicatorProps, ComboboxItemProps as ArkComboboxItemProps, ComboboxItemTextProps as ArkComboboxItemTextProps, ComboboxLabelProps as ArkComboboxLabelProps, ComboboxPositionerProps as ArkComboboxPositionerProps, ComboboxRootProps as ArkComboboxRootProps, ComboboxTriggerProps as ArkComboboxTriggerProps } from '@ark-ui/react/combobox';
|
|
1
|
+
import { Combobox, ComboboxContextProps as ArkComboboxContextProps, ComboboxClearTriggerProps as ArkComboboxClearTriggerProps, ComboboxContentProps as ArkComboboxContentProps, ComboboxControlProps as ArkComboboxControlProps, ComboboxInputProps as ArkComboboxInputProps, ComboboxItemGroupLabelProps as ArkComboboxItemGroupLabelProps, ComboboxItemGroupProps as ArkComboboxItemGroupProps, ComboboxItemIndicatorProps as ArkComboboxItemIndicatorProps, ComboboxItemProps as ArkComboboxItemProps, ComboboxItemTextProps as ArkComboboxItemTextProps, ComboboxLabelProps as ArkComboboxLabelProps, ComboboxPositionerProps as ArkComboboxPositionerProps, ComboboxRootProps as ArkComboboxRootProps, ComboboxTriggerProps as ArkComboboxTriggerProps } from '@ark-ui/react/combobox';
|
|
2
2
|
import { HTMLArkProps } from '@ark-ui/react/factory';
|
|
3
3
|
import { SelectCollectionItem } from '../select/select';
|
|
4
4
|
import { ComboboxVariantProps } from 'styled-system/recipes';
|
|
5
5
|
import { CerberusPrimitiveProps } from '../../system/index';
|
|
6
|
-
import { ForwardRefExoticComponent, RefAttributes, ClassAttributes, HTMLAttributes } from 'react';
|
|
6
|
+
import { ReactNode, ForwardRefExoticComponent, RefAttributes, ClassAttributes, HTMLAttributes } from 'react';
|
|
7
7
|
import { PolymorphicProps } from '@ark-ui/react';
|
|
8
8
|
/**
|
|
9
9
|
* The ComboboxRoot component is the context provider for the Combobox
|
|
10
10
|
* component.
|
|
11
11
|
*/
|
|
12
|
+
export declare const ComboboxContext: <T extends unknown>(props: Combobox.ContextProps<T>) => ReactNode;
|
|
13
|
+
export type ComboboxContextProps<T> = ArkComboboxContextProps<T>;
|
|
12
14
|
export declare const ComboboxRoot: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<Omit<Combobox.RootProps<unknown>, never> & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
13
15
|
export type ComboboxRootProps = CerberusPrimitiveProps<ArkComboboxRootProps<SelectCollectionItem> & ComboboxVariantProps>;
|
|
14
16
|
/**
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { Combobox, ComboboxClearTriggerProps as ArkComboboxClearTriggerProps, ComboboxContentProps as ArkComboboxContentProps, ComboboxControlProps as ArkComboboxControlProps, ComboboxInputProps as ArkComboboxInputProps, ComboboxItemGroupLabelProps as ArkComboboxItemGroupLabelProps, ComboboxItemGroupProps as ArkComboboxItemGroupProps, ComboboxItemIndicatorProps as ArkComboboxItemIndicatorProps, ComboboxItemProps as ArkComboboxItemProps, ComboboxItemTextProps as ArkComboboxItemTextProps, ComboboxLabelProps as ArkComboboxLabelProps, ComboboxPositionerProps as ArkComboboxPositionerProps, ComboboxRootProps as ArkComboboxRootProps, ComboboxTriggerProps as ArkComboboxTriggerProps } from '@ark-ui/react/combobox';
|
|
1
|
+
import { Combobox, ComboboxContextProps as ArkComboboxContextProps, ComboboxClearTriggerProps as ArkComboboxClearTriggerProps, ComboboxContentProps as ArkComboboxContentProps, ComboboxControlProps as ArkComboboxControlProps, ComboboxInputProps as ArkComboboxInputProps, ComboboxItemGroupLabelProps as ArkComboboxItemGroupLabelProps, ComboboxItemGroupProps as ArkComboboxItemGroupProps, ComboboxItemIndicatorProps as ArkComboboxItemIndicatorProps, ComboboxItemProps as ArkComboboxItemProps, ComboboxItemTextProps as ArkComboboxItemTextProps, ComboboxLabelProps as ArkComboboxLabelProps, ComboboxPositionerProps as ArkComboboxPositionerProps, ComboboxRootProps as ArkComboboxRootProps, ComboboxTriggerProps as ArkComboboxTriggerProps } from '@ark-ui/react/combobox';
|
|
2
2
|
import { HTMLArkProps } from '@ark-ui/react/factory';
|
|
3
3
|
import { SelectCollectionItem } from '../select/select';
|
|
4
4
|
import { ComboboxVariantProps } from 'styled-system/recipes';
|
|
5
5
|
import { CerberusPrimitiveProps } from '../../system/index';
|
|
6
|
-
import { ForwardRefExoticComponent, RefAttributes, ClassAttributes, HTMLAttributes } from 'react';
|
|
6
|
+
import { ReactNode, ForwardRefExoticComponent, RefAttributes, ClassAttributes, HTMLAttributes } from 'react';
|
|
7
7
|
import { PolymorphicProps } from '@ark-ui/react';
|
|
8
8
|
/**
|
|
9
9
|
* The ComboboxRoot component is the context provider for the Combobox
|
|
10
10
|
* component.
|
|
11
11
|
*/
|
|
12
|
+
export declare const ComboboxContext: <T extends unknown>(props: Combobox.ContextProps<T>) => ReactNode;
|
|
13
|
+
export type ComboboxContextProps<T> = ArkComboboxContextProps<T>;
|
|
12
14
|
export declare const ComboboxRoot: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<Omit<Combobox.RootProps<unknown>, never> & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
13
15
|
export type ComboboxRootProps = CerberusPrimitiveProps<ArkComboboxRootProps<SelectCollectionItem> & ComboboxVariantProps>;
|
|
14
16
|
/**
|
|
@@ -12,6 +12,7 @@ var { withSlotRecipe } = createCerberusPrimitive(combobox);
|
|
|
12
12
|
* The ComboboxRoot component is the context provider for the Combobox
|
|
13
13
|
* component.
|
|
14
14
|
*/
|
|
15
|
+
var ComboboxContext = Combobox.Context;
|
|
15
16
|
var ComboboxRoot = withSlotRecipe(Combobox.Root, "root");
|
|
16
17
|
/**
|
|
17
18
|
* The label that appears above the combobox input.
|
|
@@ -67,4 +68,4 @@ var ComboboxItemIndicator = withSlotRecipe(Combobox.ItemIndicator, "itemIndicato
|
|
|
67
68
|
var ComboboxStartIcon = withSlotRecipe(ark.span, "startIcon");
|
|
68
69
|
var ComboItemText = ComboboxItemText;
|
|
69
70
|
//#endregion
|
|
70
|
-
export { ComboItemText, ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxItemGroup, ComboboxItemGroupLabel, ComboboxItemIndicator, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxRoot, ComboboxStartIcon, ComboboxTrigger };
|
|
71
|
+
export { ComboItemText, ComboboxClearTrigger, ComboboxContent, ComboboxContext, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxItemGroup, ComboboxItemGroupLabel, ComboboxItemIndicator, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxRoot, ComboboxStartIcon, ComboboxTrigger };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FieldRootProps } from '@ark-ui/react/field';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
import { CerberusPrimitiveProps } from '../../system/types';
|
|
3
4
|
export interface FieldProps extends FieldRootProps {
|
|
4
5
|
/**
|
|
@@ -8,7 +9,7 @@ export interface FieldProps extends FieldRootProps {
|
|
|
8
9
|
/**
|
|
9
10
|
* The helper text of the field.
|
|
10
11
|
*/
|
|
11
|
-
helperText?:
|
|
12
|
+
helperText?: ReactNode;
|
|
12
13
|
/**
|
|
13
14
|
* A helper text positioned at the end of the field. Good for Textarea fields.
|
|
14
15
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FieldRootProps } from '@ark-ui/react/field';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
import { CerberusPrimitiveProps } from '../../system/types';
|
|
3
4
|
export interface FieldProps extends FieldRootProps {
|
|
4
5
|
/**
|
|
@@ -8,7 +9,7 @@ export interface FieldProps extends FieldRootProps {
|
|
|
8
9
|
/**
|
|
9
10
|
* The helper text of the field.
|
|
10
11
|
*/
|
|
11
|
-
helperText?:
|
|
12
|
+
helperText?: ReactNode;
|
|
12
13
|
/**
|
|
13
14
|
* A helper text positioned at the end of the field. Good for Textarea fields.
|
|
14
15
|
*/
|
|
@@ -44,10 +44,10 @@ function FileStatus(props) {
|
|
|
44
44
|
const modalIconPalette = (0, react.useMemo)(() => getModalIconPalette(status), [status]);
|
|
45
45
|
const styles = (0, react.useMemo)(() => {
|
|
46
46
|
switch (status) {
|
|
47
|
-
case
|
|
48
|
-
case
|
|
49
|
-
case
|
|
50
|
-
case
|
|
47
|
+
case "todo": return (0, styled_system_recipes.fileStatus)({ status: "todo" });
|
|
48
|
+
case "processing": return (0, styled_system_recipes.fileStatus)({ status: "processing" });
|
|
49
|
+
case "done": return (0, styled_system_recipes.fileStatus)({ status: "done" });
|
|
50
|
+
case "error": return (0, styled_system_recipes.fileStatus)({ status: "error" });
|
|
51
51
|
default: return (0, styled_system_recipes.fileStatus)();
|
|
52
52
|
}
|
|
53
53
|
}, [status]);
|
|
@@ -110,19 +110,19 @@ function MatchFileStatusIcon(props) {
|
|
|
110
110
|
const { icons } = require_cerberus.useCerberusContext();
|
|
111
111
|
const { waitingFileUploader: TodoIcon, fileUploader: FileUploaderIcon, invalidAlt: InvalidIcon, successNotification: DoneIcon } = icons;
|
|
112
112
|
switch (props.status) {
|
|
113
|
-
case
|
|
114
|
-
case
|
|
115
|
-
case
|
|
116
|
-
case
|
|
113
|
+
case "todo": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TodoIcon, { size: props.size });
|
|
114
|
+
case "processing": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FileUploaderIcon, { size: props.size });
|
|
115
|
+
case "done": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DoneIcon, { size: props.size });
|
|
116
|
+
case "error": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InvalidIcon, { size: props.size });
|
|
117
117
|
default: throw new Error("Unknown status");
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
function MatchFileStatusText(props) {
|
|
121
121
|
switch (props.status) {
|
|
122
|
-
case
|
|
123
|
-
case
|
|
124
|
-
case
|
|
125
|
-
case
|
|
122
|
+
case "todo": return "Waiting to upload";
|
|
123
|
+
case "processing": return `${props.now}% Complete`;
|
|
124
|
+
case "done": return "File uploaded successfully";
|
|
125
|
+
case "error": return "There was an error uploading the file";
|
|
126
126
|
default: throw new Error("Invalid status");
|
|
127
127
|
}
|
|
128
128
|
}
|
|
@@ -130,37 +130,37 @@ function MatchStatusAction(props) {
|
|
|
130
130
|
const { icons } = require_cerberus.useCerberusContext();
|
|
131
131
|
const { close: CloseIcon, redo: RedoIcon, delete: TrashIcon } = icons;
|
|
132
132
|
switch (props.status) {
|
|
133
|
-
case
|
|
134
|
-
case
|
|
135
|
-
case
|
|
136
|
-
case
|
|
133
|
+
case "todo":
|
|
134
|
+
case "processing": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseIcon, {});
|
|
135
|
+
case "error": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RedoIcon, {});
|
|
136
|
+
case "done": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TrashIcon, {});
|
|
137
137
|
default: throw new Error("Invalid status");
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
function getStatusActionLabel(status) {
|
|
141
141
|
switch (status) {
|
|
142
|
-
case
|
|
143
|
-
case
|
|
144
|
-
case
|
|
145
|
-
case
|
|
142
|
+
case "todo":
|
|
143
|
+
case "processing": return "Cancel";
|
|
144
|
+
case "error": return "Retry";
|
|
145
|
+
case "done": return "Delete";
|
|
146
146
|
default: return "";
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
function getPalette(status) {
|
|
150
150
|
switch (status) {
|
|
151
|
-
case
|
|
152
|
-
case
|
|
153
|
-
case
|
|
154
|
-
case
|
|
151
|
+
case "todo":
|
|
152
|
+
case "processing": return "danger";
|
|
153
|
+
case "error": return "action";
|
|
154
|
+
case "done": return "danger";
|
|
155
155
|
default: return "action";
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
function getModalIconPalette(status) {
|
|
159
159
|
switch (status) {
|
|
160
|
-
case
|
|
161
|
-
case
|
|
162
|
-
case
|
|
163
|
-
case
|
|
160
|
+
case "todo":
|
|
161
|
+
case "processing": return "charon-light";
|
|
162
|
+
case "error": return "hades-dark";
|
|
163
|
+
case "done": return "thanatos-dark";
|
|
164
164
|
default: return "charon-light";
|
|
165
165
|
}
|
|
166
166
|
}
|
|
@@ -44,10 +44,10 @@ function FileStatus(props) {
|
|
|
44
44
|
const modalIconPalette = useMemo(() => getModalIconPalette(status), [status]);
|
|
45
45
|
const styles = useMemo(() => {
|
|
46
46
|
switch (status) {
|
|
47
|
-
case
|
|
48
|
-
case
|
|
49
|
-
case
|
|
50
|
-
case
|
|
47
|
+
case "todo": return fileStatus({ status: "todo" });
|
|
48
|
+
case "processing": return fileStatus({ status: "processing" });
|
|
49
|
+
case "done": return fileStatus({ status: "done" });
|
|
50
|
+
case "error": return fileStatus({ status: "error" });
|
|
51
51
|
default: return fileStatus();
|
|
52
52
|
}
|
|
53
53
|
}, [status]);
|
|
@@ -110,19 +110,19 @@ function MatchFileStatusIcon(props) {
|
|
|
110
110
|
const { icons } = useCerberusContext();
|
|
111
111
|
const { waitingFileUploader: TodoIcon, fileUploader: FileUploaderIcon, invalidAlt: InvalidIcon, successNotification: DoneIcon } = icons;
|
|
112
112
|
switch (props.status) {
|
|
113
|
-
case
|
|
114
|
-
case
|
|
115
|
-
case
|
|
116
|
-
case
|
|
113
|
+
case "todo": return /* @__PURE__ */ jsx(TodoIcon, { size: props.size });
|
|
114
|
+
case "processing": return /* @__PURE__ */ jsx(FileUploaderIcon, { size: props.size });
|
|
115
|
+
case "done": return /* @__PURE__ */ jsx(DoneIcon, { size: props.size });
|
|
116
|
+
case "error": return /* @__PURE__ */ jsx(InvalidIcon, { size: props.size });
|
|
117
117
|
default: throw new Error("Unknown status");
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
function MatchFileStatusText(props) {
|
|
121
121
|
switch (props.status) {
|
|
122
|
-
case
|
|
123
|
-
case
|
|
124
|
-
case
|
|
125
|
-
case
|
|
122
|
+
case "todo": return "Waiting to upload";
|
|
123
|
+
case "processing": return `${props.now}% Complete`;
|
|
124
|
+
case "done": return "File uploaded successfully";
|
|
125
|
+
case "error": return "There was an error uploading the file";
|
|
126
126
|
default: throw new Error("Invalid status");
|
|
127
127
|
}
|
|
128
128
|
}
|
|
@@ -130,37 +130,37 @@ function MatchStatusAction(props) {
|
|
|
130
130
|
const { icons } = useCerberusContext();
|
|
131
131
|
const { close: CloseIcon, redo: RedoIcon, delete: TrashIcon } = icons;
|
|
132
132
|
switch (props.status) {
|
|
133
|
-
case
|
|
134
|
-
case
|
|
135
|
-
case
|
|
136
|
-
case
|
|
133
|
+
case "todo":
|
|
134
|
+
case "processing": return /* @__PURE__ */ jsx(CloseIcon, {});
|
|
135
|
+
case "error": return /* @__PURE__ */ jsx(RedoIcon, {});
|
|
136
|
+
case "done": return /* @__PURE__ */ jsx(TrashIcon, {});
|
|
137
137
|
default: throw new Error("Invalid status");
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
function getStatusActionLabel(status) {
|
|
141
141
|
switch (status) {
|
|
142
|
-
case
|
|
143
|
-
case
|
|
144
|
-
case
|
|
145
|
-
case
|
|
142
|
+
case "todo":
|
|
143
|
+
case "processing": return "Cancel";
|
|
144
|
+
case "error": return "Retry";
|
|
145
|
+
case "done": return "Delete";
|
|
146
146
|
default: return "";
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
function getPalette(status) {
|
|
150
150
|
switch (status) {
|
|
151
|
-
case
|
|
152
|
-
case
|
|
153
|
-
case
|
|
154
|
-
case
|
|
151
|
+
case "todo":
|
|
152
|
+
case "processing": return "danger";
|
|
153
|
+
case "error": return "action";
|
|
154
|
+
case "done": return "danger";
|
|
155
155
|
default: return "action";
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
function getModalIconPalette(status) {
|
|
159
159
|
switch (status) {
|
|
160
|
-
case
|
|
161
|
-
case
|
|
162
|
-
case
|
|
163
|
-
case
|
|
160
|
+
case "todo":
|
|
161
|
+
case "processing": return "charon-light";
|
|
162
|
+
case "error": return "hades-dark";
|
|
163
|
+
case "done": return "thanatos-dark";
|
|
164
164
|
default: return "charon-light";
|
|
165
165
|
}
|
|
166
166
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_primitives = require("./primitives.cjs");
|
|
3
|
+
const require_marquee = require("./marquee.cjs");
|
|
4
|
+
exports.Marquee = require_marquee.Marquee;
|
|
5
|
+
exports.MarqueeContent = require_primitives.MarqueeContent;
|
|
6
|
+
exports.MarqueeEdge = require_primitives.MarqueeEdge;
|
|
7
|
+
exports.MarqueeItem = require_primitives.MarqueeItem;
|
|
8
|
+
exports.MarqueeRoot = require_primitives.MarqueeRoot;
|
|
9
|
+
exports.MarqueeRootProvider = require_primitives.MarqueeRootProvider;
|
|
10
|
+
exports.MarqueeViewport = require_primitives.MarqueeViewport;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { MarqueeContent, MarqueeEdge, MarqueeItem, MarqueeRoot, MarqueeRootProvider, MarqueeViewport } from "./primitives.js";
|
|
2
|
+
import { Marquee } from "./marquee.js";
|
|
3
|
+
export { Marquee, MarqueeContent, MarqueeEdge, MarqueeItem, MarqueeRoot, MarqueeRootProvider, MarqueeViewport };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const require_show = require("../show/show.cjs");
|
|
2
|
+
const require_primitives = require("./primitives.cjs");
|
|
3
|
+
const require_utils = require("./utils.cjs");
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
+
let _ark_ui_react = require("@ark-ui/react");
|
|
6
|
+
//#region src/components/marquee/marquee.tsx
|
|
7
|
+
/**
|
|
8
|
+
* The marquee component displays a horizontally scrolling content with optional edges.
|
|
9
|
+
* @description [Marquee Docs](https://cerberus.digitalu.design/docs/components/marquee)
|
|
10
|
+
*/
|
|
11
|
+
function Marquee(props) {
|
|
12
|
+
const { children, edges, ...rootProps } = props;
|
|
13
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_primitives.MarqueeRoot, {
|
|
14
|
+
autoFill: true,
|
|
15
|
+
...rootProps,
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_show.Show, {
|
|
18
|
+
when: require_utils.shouldShowEdge([
|
|
19
|
+
"start",
|
|
20
|
+
"top",
|
|
21
|
+
"both"
|
|
22
|
+
], edges),
|
|
23
|
+
children: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_primitives.MarqueeEdge, { side: require_utils.getStartEdge(edges, rootProps.side) })
|
|
24
|
+
}),
|
|
25
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_primitives.MarqueeViewport, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_primitives.MarqueeContent, { children }) }),
|
|
26
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_show.Show, {
|
|
27
|
+
when: require_utils.shouldShowEdge([
|
|
28
|
+
"end",
|
|
29
|
+
"bottom",
|
|
30
|
+
"both"
|
|
31
|
+
], edges),
|
|
32
|
+
children: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_primitives.MarqueeEdge, { side: require_utils.getEndEdge(edges, rootProps.side) })
|
|
33
|
+
})
|
|
34
|
+
]
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
Marquee.Context = _ark_ui_react.MarqueeContext;
|
|
38
|
+
Marquee.RootProvider = require_primitives.MarqueeRootProvider;
|
|
39
|
+
Marquee.Root = require_primitives.MarqueeRoot;
|
|
40
|
+
Marquee.Edge = require_primitives.MarqueeEdge;
|
|
41
|
+
Marquee.Viewport = require_primitives.MarqueeViewport;
|
|
42
|
+
Marquee.Content = require_primitives.MarqueeContent;
|
|
43
|
+
Marquee.Item = require_primitives.MarqueeItem;
|
|
44
|
+
Marquee.displayName = "Cerberus.Marquee";
|
|
45
|
+
//#endregion
|
|
46
|
+
exports.Marquee = Marquee;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MarqueeRootProps } from './primitives';
|
|
2
|
+
export type MarqueeEdgeOption = 'both' | MarqueeRootProps['side'];
|
|
3
|
+
export type MarqueeProps = MarqueeRootProps & {
|
|
4
|
+
/**
|
|
5
|
+
* When provided, the marquee will display edges listed in the array.
|
|
6
|
+
*/
|
|
7
|
+
edges?: MarqueeEdgeOption[];
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The marquee component displays a horizontally scrolling content with optional edges.
|
|
11
|
+
* @description [Marquee Docs](https://cerberus.digitalu.design/docs/components/marquee)
|
|
12
|
+
*/
|
|
13
|
+
export declare function Marquee(props: MarqueeProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare namespace Marquee {
|
|
15
|
+
var Context: (props: import("@ark-ui/react").MarqueeContextProps) => import("react").ReactNode;
|
|
16
|
+
var RootProvider: import("react").ForwardRefExoticComponent<Omit<import("../..").CerberusPrimitiveProps<import("@ark-ui/react").MarqueeRootProviderProps & import("react").RefAttributes<HTMLDivElement>>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
17
|
+
var Root: import("react").ForwardRefExoticComponent<Omit<import("../..").CerberusPrimitiveProps<import("@ark-ui/react").MarqueeRootProps & import("react").RefAttributes<HTMLDivElement>>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
18
|
+
var Edge: import("react").ForwardRefExoticComponent<Omit<import("../..").CerberusPrimitiveProps<import("@ark-ui/react").MarqueeEdgeProps & import("react").RefAttributes<HTMLDivElement>>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
19
|
+
var Viewport: import("react").ForwardRefExoticComponent<Omit<import("../..").CerberusPrimitiveProps<import("@ark-ui/react").MarqueeViewportProps & import("react").RefAttributes<HTMLDivElement>>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
20
|
+
var Content: import("react").ForwardRefExoticComponent<Omit<import("../..").CerberusPrimitiveProps<import("@ark-ui/react").MarqueeContentProps & import("react").RefAttributes<HTMLDivElement>>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
21
|
+
var Item: import("react").ForwardRefExoticComponent<Omit<import("../..").CerberusPrimitiveProps<import("@ark-ui/react").MarqueeItemProps & import("react").RefAttributes<HTMLDivElement>>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MarqueeRootProps } from './primitives';
|
|
2
|
+
export type MarqueeEdgeOption = 'both' | MarqueeRootProps['side'];
|
|
3
|
+
export type MarqueeProps = MarqueeRootProps & {
|
|
4
|
+
/**
|
|
5
|
+
* When provided, the marquee will display edges listed in the array.
|
|
6
|
+
*/
|
|
7
|
+
edges?: MarqueeEdgeOption[];
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The marquee component displays a horizontally scrolling content with optional edges.
|
|
11
|
+
* @description [Marquee Docs](https://cerberus.digitalu.design/docs/components/marquee)
|
|
12
|
+
*/
|
|
13
|
+
export declare function Marquee(props: MarqueeProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare namespace Marquee {
|
|
15
|
+
var Context: (props: import("@ark-ui/react").MarqueeContextProps) => import("react").ReactNode;
|
|
16
|
+
var RootProvider: import("react").ForwardRefExoticComponent<Omit<import("../..").CerberusPrimitiveProps<import("@ark-ui/react").MarqueeRootProviderProps & import("react").RefAttributes<HTMLDivElement>>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
17
|
+
var Root: import("react").ForwardRefExoticComponent<Omit<import("../..").CerberusPrimitiveProps<import("@ark-ui/react").MarqueeRootProps & import("react").RefAttributes<HTMLDivElement>>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
18
|
+
var Edge: import("react").ForwardRefExoticComponent<Omit<import("../..").CerberusPrimitiveProps<import("@ark-ui/react").MarqueeEdgeProps & import("react").RefAttributes<HTMLDivElement>>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
19
|
+
var Viewport: import("react").ForwardRefExoticComponent<Omit<import("../..").CerberusPrimitiveProps<import("@ark-ui/react").MarqueeViewportProps & import("react").RefAttributes<HTMLDivElement>>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
20
|
+
var Content: import("react").ForwardRefExoticComponent<Omit<import("../..").CerberusPrimitiveProps<import("@ark-ui/react").MarqueeContentProps & import("react").RefAttributes<HTMLDivElement>>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
21
|
+
var Item: import("react").ForwardRefExoticComponent<Omit<import("../..").CerberusPrimitiveProps<import("@ark-ui/react").MarqueeItemProps & import("react").RefAttributes<HTMLDivElement>>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|