@particle-network/ui-react 0.1.4-beta.0 → 0.1.4-beta.11

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.
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { type CalendarProps } from '@heroui/calendar';
3
+ export type UXCalendarProps = CalendarProps;
4
+ export declare const calendarClassNames: {
5
+ base: string;
6
+ prevButton: string;
7
+ nextButton: string;
8
+ title: string;
9
+ gridWrapper: string;
10
+ gridBody: string;
11
+ cell: string;
12
+ cellButton: string[];
13
+ };
14
+ export declare const UXCalendar: React.FC<UXCalendarProps>;
@@ -0,0 +1,24 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import "react";
3
+ import { Calendar } from "@heroui/calendar";
4
+ const calendarClassNames = {
5
+ base: 'bg-content1',
6
+ prevButton: 'text-foreground',
7
+ nextButton: 'text-foreground',
8
+ title: 'text-foreground',
9
+ gridWrapper: 'bg-content1',
10
+ gridBody: 'bg-content1',
11
+ cell: 'text-sm font-medium',
12
+ cellButton: [
13
+ 'data-[today=true]:after:content-[""] data-[today=true]:after:absolute data-[today=true]:after:h-1 data-[today=true]:after:w-1 data-[today=true]:after:rounded-full data-[today=true]:after:bg-primary data-[today=true]:after:-bottom-1.5'
14
+ ]
15
+ };
16
+ const UXCalendar = ({ classNames, ...props })=>/*#__PURE__*/ jsx(Calendar, {
17
+ classNames: {
18
+ ...calendarClassNames,
19
+ ...classNames
20
+ },
21
+ ...props
22
+ });
23
+ UXCalendar.displayName = 'UX.Calendar';
24
+ export { UXCalendar, calendarClassNames };
@@ -1,7 +1,8 @@
1
1
  import type React from 'react';
2
2
  import { type CheckboxProps } from '@heroui/checkbox';
3
3
  type ExtendedCheckboxProps = Omit<CheckboxProps, 'color'> & {
4
- color?: 'primary' | 'success' | 'warning' | 'danger' | 'bullish' | 'bearish';
4
+ color?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'bullish' | 'bearish';
5
+ labelPlacement?: 'left' | 'right';
5
6
  };
6
7
  declare const ExtendedCheckbox: React.ForwardRefExoticComponent<ExtendedCheckboxProps>;
7
8
  export default ExtendedCheckbox;
@@ -6,6 +6,9 @@ const ExtendedCheckbox = extendVariants(Checkbox, {
6
6
  primary: {
7
7
  wrapper: 'after:bg-primary after:text-primary-foreground text-primary-foreground'
8
8
  },
9
+ secondary: {
10
+ wrapper: 'after:bg-tertiary after:text-tertiary-foreground text-tertiary-foreground'
11
+ },
9
12
  success: {
10
13
  wrapper: 'after:bg-success after:text-success-foreground text-success-foreground'
11
14
  },
@@ -25,9 +28,9 @@ const ExtendedCheckbox = extendVariants(Checkbox, {
25
28
  size: {
26
29
  sm: {
27
30
  wrapper: [
28
- 'w-3.5 h-3.5 me-sm',
31
+ 'w-3.5 h-3.5 me-0',
29
32
  'rounded-[calc(theme(borderRadius.medium)*0.2)]',
30
- 'before:rounded-[calc(theme(borderRadius.medium)*0.2)] before:border-foreground-300 before:border-1.5',
33
+ 'before:rounded-[calc(theme(borderRadius.medium)*0.2)] before:border-secondary before:border-1.5',
31
34
  'after:rounded-[calc(theme(borderRadius.medium)*0.2)]'
32
35
  ],
33
36
  label: '!text-body3 font-medium',
@@ -35,9 +38,9 @@ const ExtendedCheckbox = extendVariants(Checkbox, {
35
38
  },
36
39
  md: {
37
40
  wrapper: [
38
- 'w-4 h-4 me-2',
41
+ 'w-4 h-4 me-0',
39
42
  'rounded-[calc(theme(borderRadius.medium)*0.2)]',
40
- 'before:rounded-[calc(theme(borderRadius.medium)*0.2)] before:border-foreground-300 before:border-2',
43
+ 'before:rounded-[calc(theme(borderRadius.medium)*0.2)] before:border-secondary before:border-2',
41
44
  'after:rounded-[calc(theme(borderRadius.medium)*0.2)]'
42
45
  ],
43
46
  label: '!text-body2 font-medium',
@@ -45,9 +48,9 @@ const ExtendedCheckbox = extendVariants(Checkbox, {
45
48
  },
46
49
  lg: {
47
50
  wrapper: [
48
- 'w-5 h-5 me-2',
51
+ 'w-[18px] h-[18px] me-0',
49
52
  'rounded-[calc(theme(borderRadius.medium)*0.3)]',
50
- 'before:rounded-[calc(theme(borderRadius.medium)*0.3)] before:border-foreground-300 before:border-2',
53
+ 'before:rounded-[calc(theme(borderRadius.medium)*0.3)] before:border-secondary before:border-2',
51
54
  'after:rounded-[calc(theme(borderRadius.medium)*0.3)]'
52
55
  ],
53
56
  label: '!text-body1 font-medium',
@@ -138,13 +141,22 @@ const ExtendedCheckbox = extendVariants(Checkbox, {
138
141
  icon: 'transition-opacity motion-reduce:transition-none',
139
142
  label: 'transition-colors-opacity before:transition-width motion-reduce:transition-none'
140
143
  }
144
+ },
145
+ labelPlacement: {
146
+ left: {
147
+ base: 'flex-row-reverse gap-2'
148
+ },
149
+ right: {
150
+ base: 'flex-row gap-2'
151
+ }
141
152
  }
142
153
  },
143
154
  defaultVariants: {
144
155
  color: 'primary',
145
156
  size: 'md',
146
157
  isDisabled: false,
147
- lineThrough: false
158
+ lineThrough: false,
159
+ labelPlacement: 'right'
148
160
  }
149
161
  });
150
162
  const checkbox_extend = ExtendedCheckbox;
@@ -3,7 +3,8 @@ import { type CheckboxGroupProps } from '@heroui/checkbox';
3
3
  import ExtendedCheckbox from './checkbox.extend';
4
4
  export type UXCheckboxProps = React.ComponentPropsWithRef<typeof ExtendedCheckbox>;
5
5
  declare const UXCheckbox: React.ForwardRefExoticComponent<Omit<Omit<import("@heroui/checkbox").CheckboxProps, "color"> & {
6
- color?: "primary" | "success" | "warning" | "danger" | "bullish" | "bearish";
6
+ color?: "primary" | "secondary" | "success" | "warning" | "danger" | "bullish" | "bearish";
7
+ labelPlacement?: "left" | "right";
7
8
  }, "ref"> & React.RefAttributes<HTMLInputElement>>;
8
9
  export default UXCheckbox;
9
10
  export declare const UXCheckboxGroup: import("@heroui/system-rsc").InternalForwardRefRenderFunction<"div", CheckboxGroupProps, never>;
@@ -0,0 +1,7 @@
1
+ import type React from 'react';
2
+ import { type PopoverProps } from '@heroui/popover';
3
+ type ExtendedPopoverProps = Omit<PopoverProps, 'color'> & {
4
+ color?: 'default';
5
+ };
6
+ declare const ExtendedPopover: React.ForwardRefExoticComponent<ExtendedPopoverProps>;
7
+ export default ExtendedPopover;
@@ -0,0 +1,26 @@
1
+ import { Popover } from "@heroui/popover";
2
+ import { extendVariants } from "@heroui/system-rsc";
3
+ const ExtendedPopover = extendVariants(Popover, {
4
+ variants: {
5
+ size: {
6
+ md: {
7
+ content: 'text-tiny !p-md max-w-[300px]'
8
+ }
9
+ },
10
+ color: {
11
+ default: {
12
+ base: 'before:bg-content1 before:shadow-box',
13
+ content: 'bg-content1 text-foreground-300 shadow-box'
14
+ }
15
+ }
16
+ },
17
+ defaultVariants: {
18
+ color: 'default',
19
+ radius: 'md',
20
+ size: 'md',
21
+ shadow: 'md',
22
+ backdrop: 'transparent'
23
+ }
24
+ });
25
+ const date_range_picker_extend = ExtendedPopover;
26
+ export { date_range_picker_extend as default };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { type DateRangePickerProps } from '@heroui/date-picker';
3
+ export type UXDateRangePickerProps = DateRangePickerProps;
4
+ export declare const UXDateRangePicker: React.FC<UXDateRangePickerProps>;
@@ -0,0 +1,56 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import "react";
3
+ import { DateRangePicker } from "@heroui/date-picker";
4
+ import { CalendarIcon } from "../../icons/index.js";
5
+ import { calendarClassNames } from "../UXCalendar/index.js";
6
+ const classes = {
7
+ inputWrapper: 'bg-background-200 h-[30px] min-h-[30px] rounded-small',
8
+ focus: 'focus:bg-primary/30 focus:shadow-none focus:outline-none'
9
+ };
10
+ const UXDateRangePicker = ({ classNames, ...props })=>/*#__PURE__*/ jsx(DateRangePicker, {
11
+ classNames: {
12
+ inputWrapper: classes.inputWrapper,
13
+ input: [
14
+ 'gap-px',
15
+ classes.focus
16
+ ],
17
+ segment: [
18
+ 'text-foreground text-xs font-medium',
19
+ classes.focus
20
+ ],
21
+ separator: 'text-foreground-100',
22
+ timeInputWrapper: 'bg-content1',
23
+ timeInput: classes.focus,
24
+ selectorButton: 'w-6 h-6 min-w-6 rounded-sm',
25
+ selectorIcon: 'text-secondary',
26
+ ...classNames
27
+ },
28
+ calendarProps: {
29
+ classNames: calendarClassNames
30
+ },
31
+ popoverProps: {
32
+ classNames: {
33
+ base: 'before:bg-content1 before:shadow-box',
34
+ content: 'bg-content1 text-foreground-300 shadow-box'
35
+ }
36
+ },
37
+ timeInputProps: {
38
+ classNames: {
39
+ base: [
40
+ '[&>[data-slot="input-wrapper"]]:h-[30px] [&>[data-slot="input-wrapper"]]:min-h-[30px] [&>[data-slot="input-wrapper"]]:rounded-small [&>[data-slot="input-wrapper"]]:bg-background-200',
41
+ '[&_[data-slot=segment]:focus]:bg-primary/30 [&_[data-slot=segment]:focus]:shadow-none [&_[data-slot=segment]:focus]:outline-none'
42
+ ]
43
+ }
44
+ },
45
+ selectorIcon: /*#__PURE__*/ jsx(CalendarIcon, {
46
+ size: 18,
47
+ color: "tertiary"
48
+ }),
49
+ granularity: "second",
50
+ visibleMonths: 2,
51
+ hourCycle: 24,
52
+ firstDayOfWeek: "sun",
53
+ ...props
54
+ });
55
+ UXDateRangePicker.displayName = 'UX.DateRangePicker';
56
+ export { UXDateRangePicker };
@@ -325,18 +325,18 @@ declare const UXInput: React.ForwardRefExoticComponent<Omit<Omit<{
325
325
  capture?: boolean | "user" | "environment" | undefined;
326
326
  checked?: boolean | undefined;
327
327
  src?: string | undefined;
328
- classNames?: import("@heroui/theme").SlotsToClasses<"label" | "inputWrapper" | "base" | "input" | "description" | "errorMessage" | "mainWrapper" | "innerWrapper" | "clearButton" | "helperWrapper"> | undefined;
328
+ classNames?: import("@heroui/theme").SlotsToClasses<"label" | "inputWrapper" | "base" | "input" | "errorMessage" | "helperWrapper" | "description" | "innerWrapper" | "mainWrapper" | "clearButton"> | undefined;
329
+ isReadOnly?: boolean | undefined;
330
+ validationState?: import("@react-types/shared").ValidationState | undefined;
331
+ errorMessage?: React.ReactNode | ((v: import("@react-types/shared").ValidationResult) => React.ReactNode);
329
332
  placeholder?: string | undefined;
330
333
  readOnly?: boolean | undefined;
331
334
  required?: boolean | undefined;
332
335
  onValueChange?: ((value: string) => void) | undefined;
333
- isReadOnly?: boolean | undefined;
334
336
  isRequired?: boolean | undefined;
335
- validationState?: import("@react-types/shared").ValidationState | undefined;
336
337
  validationBehavior?: "aria" | "native" | undefined;
337
338
  validate?: ((value: string) => import("@react-types/shared").ValidationError | true | null | undefined) | undefined;
338
339
  description?: React.ReactNode;
339
- errorMessage?: React.ReactNode | ((v: import("@react-types/shared").ValidationResult) => React.ReactNode);
340
340
  isClearable?: boolean | undefined;
341
341
  baseRef?: React.Ref<HTMLDivElement> | undefined;
342
342
  wrapperRef?: React.Ref<HTMLDivElement> | undefined;
@@ -322,18 +322,18 @@ declare const ExtendedInput: import("react").ForwardRefExoticComponent<Omit<{
322
322
  capture?: boolean | "user" | "environment" | undefined;
323
323
  checked?: boolean | undefined;
324
324
  src?: string | undefined;
325
- classNames?: import("@heroui/theme").SlotsToClasses<"label" | "inputWrapper" | "base" | "input" | "description" | "errorMessage" | "mainWrapper" | "innerWrapper" | "clearButton" | "helperWrapper"> | undefined;
325
+ classNames?: import("@heroui/theme").SlotsToClasses<"label" | "inputWrapper" | "base" | "input" | "errorMessage" | "helperWrapper" | "description" | "innerWrapper" | "mainWrapper" | "clearButton"> | undefined;
326
+ isReadOnly?: boolean | undefined;
327
+ validationState?: import("@react-types/shared").ValidationState | undefined;
328
+ errorMessage?: import("react").ReactNode | ((v: import("@react-types/shared").ValidationResult) => import("react").ReactNode);
326
329
  placeholder?: string | undefined;
327
330
  readOnly?: boolean | undefined;
328
331
  required?: boolean | undefined;
329
332
  onValueChange?: ((value: string) => void) | undefined;
330
- isReadOnly?: boolean | undefined;
331
333
  isRequired?: boolean | undefined;
332
- validationState?: import("@react-types/shared").ValidationState | undefined;
333
334
  validationBehavior?: "aria" | "native" | undefined;
334
335
  validate?: ((value: string) => import("@react-types/shared").ValidationError | true | null | undefined) | undefined;
335
336
  description?: import("react").ReactNode;
336
- errorMessage?: import("react").ReactNode | ((v: import("@react-types/shared").ValidationResult) => import("react").ReactNode);
337
337
  isClearable?: boolean | undefined;
338
338
  baseRef?: import("react").Ref<HTMLDivElement> | undefined;
339
339
  wrapperRef?: import("react").Ref<HTMLDivElement> | undefined;
@@ -320,12 +320,12 @@ declare const UXSwitch: React.ForwardRefExoticComponent<Omit<Omit<{
320
320
  checked?: boolean | undefined;
321
321
  src?: string | undefined;
322
322
  classNames?: import("@heroui/theme").SlotsToClasses<"label" | "base" | "startContent" | "endContent" | "wrapper" | "hiddenInput" | "thumb" | "thumbIcon"> | undefined;
323
+ isReadOnly?: boolean | undefined;
323
324
  placeholder?: string | undefined;
324
325
  readOnly?: boolean | undefined;
325
326
  required?: boolean | undefined;
326
327
  onValueChange?: ((isSelected: boolean) => void) | undefined;
327
328
  defaultSelected?: boolean | undefined;
328
- isReadOnly?: boolean | undefined;
329
329
  thumbIcon?: React.ReactNode | ((props: import("@heroui/switch").SwitchThumbIconProps) => React.ReactNode);
330
330
  }, "ref"> & React.RefAttributes<React.ReactElement<unknown, string | React.JSXElementConstructor<any>>>, "ref"> & React.RefAttributes<HTMLInputElement>>;
331
331
  export default UXSwitch;
@@ -317,12 +317,12 @@ declare const ExtendedSwitch: import("react").ForwardRefExoticComponent<Omit<{
317
317
  checked?: boolean | undefined;
318
318
  src?: string | undefined;
319
319
  classNames?: import("@heroui/theme").SlotsToClasses<"label" | "base" | "startContent" | "endContent" | "wrapper" | "hiddenInput" | "thumb" | "thumbIcon"> | undefined;
320
+ isReadOnly?: boolean | undefined;
320
321
  placeholder?: string | undefined;
321
322
  readOnly?: boolean | undefined;
322
323
  required?: boolean | undefined;
323
324
  onValueChange?: ((isSelected: boolean) => void) | undefined;
324
325
  defaultSelected?: boolean | undefined;
325
- isReadOnly?: boolean | undefined;
326
326
  thumbIcon?: import("react").ReactNode | ((props: import("@heroui/switch").SwitchThumbIconProps) => import("react").ReactNode);
327
327
  }, "ref"> & import("react").RefAttributes<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>>>;
328
328
  export default ExtendedSwitch;
@@ -301,6 +301,8 @@ export declare const UXTable: import("@heroui/system-rsc").InternalForwardRefRen
301
301
  frame?: boolean | undefined;
302
302
  rules?: "none" | "all" | "groups" | "rows" | "columns" | undefined;
303
303
  classNames?: import("@heroui/theme").SlotsToClasses<"table" | "base" | "tbody" | "td" | "tfoot" | "th" | "thead" | "tr" | "wrapper" | "sortIcon" | "emptyWrapper" | "loadingWrapper"> | undefined;
304
+ topContent?: React.ReactNode;
305
+ bottomContent?: React.ReactNode;
304
306
  scrollRef?: import("@react-types/shared").RefObject<HTMLElement | null> | undefined;
305
307
  isVirtualized?: boolean | undefined;
306
308
  escapeKeyBehavior?: "none" | "clearSelection" | undefined;
@@ -310,8 +312,6 @@ export declare const UXTable: import("@heroui/system-rsc").InternalForwardRefRen
310
312
  selectedKeys?: "all" | Iterable<import("@react-types/shared").Key> | undefined;
311
313
  defaultSelectedKeys?: "all" | Iterable<import("@react-types/shared").Key> | undefined;
312
314
  onSelectionChange?: ((keys: import("@react-types/shared").Selection) => void) | undefined;
313
- topContent?: React.ReactNode;
314
- bottomContent?: React.ReactNode;
315
315
  baseRef?: import("@heroui/react-utils").ReactRef<HTMLElement | null> | undefined;
316
316
  isCompact?: boolean | undefined;
317
317
  keyboardDelegate?: import("@react-types/shared").KeyboardDelegate | undefined;
@@ -298,6 +298,8 @@ declare const ExtendedTable: import("react").ForwardRefExoticComponent<Omit<{
298
298
  frame?: boolean | undefined;
299
299
  rules?: "none" | "all" | "groups" | "rows" | "columns" | undefined;
300
300
  classNames?: import("@heroui/theme").SlotsToClasses<"table" | "base" | "tbody" | "td" | "tfoot" | "th" | "thead" | "tr" | "wrapper" | "sortIcon" | "emptyWrapper" | "loadingWrapper"> | undefined;
301
+ topContent?: import("react").ReactNode;
302
+ bottomContent?: import("react").ReactNode;
301
303
  scrollRef?: import("@react-types/shared").RefObject<HTMLElement | null> | undefined;
302
304
  isVirtualized?: boolean | undefined;
303
305
  escapeKeyBehavior?: "none" | "clearSelection" | undefined;
@@ -307,8 +309,6 @@ declare const ExtendedTable: import("react").ForwardRefExoticComponent<Omit<{
307
309
  selectedKeys?: "all" | Iterable<import("@react-types/shared").Key> | undefined;
308
310
  defaultSelectedKeys?: "all" | Iterable<import("@react-types/shared").Key> | undefined;
309
311
  onSelectionChange?: ((keys: import("@react-types/shared").Selection) => void) | undefined;
310
- topContent?: import("react").ReactNode;
311
- bottomContent?: import("react").ReactNode;
312
312
  baseRef?: import("@heroui/react-utils").ReactRef<HTMLElement | null> | undefined;
313
313
  isCompact?: boolean | undefined;
314
314
  keyboardDelegate?: import("@react-types/shared").KeyboardDelegate | undefined;
@@ -4,25 +4,25 @@ const tabsClasses = {
4
4
  variant: {
5
5
  solid: {
6
6
  tabList: 'gap-0 bg-background-400',
7
- tab: 'py-0',
7
+ tab: 'py-0 !outline-none',
8
8
  cursor: 'shadow-none inset-0',
9
9
  tabContent: 'text-foreground-300 font-medium'
10
10
  },
11
11
  switch: {
12
12
  tabList: 'p-0 gap-0 bg-background-200',
13
- tab: 'py-0',
13
+ tab: 'py-0 !outline-none',
14
14
  cursor: 'shadow-none inset-0',
15
15
  tabContent: 'text-foreground-300 font-medium'
16
16
  },
17
17
  light: {
18
18
  tabList: 'p-0 gap-md rounded-none bg-transparent dark:bg-transparent',
19
- tab: 'py-0 h-full',
19
+ tab: 'py-0 h-full !outline-none',
20
20
  cursor: 'shadow-none',
21
21
  tabContent: 'text-foreground-300 font-medium'
22
22
  },
23
23
  text: {
24
24
  tabList: 'p-0 rounded-none bg-transparent dark:bg-transparent',
25
- tab: 'font-medium p-0 h-fit rounded-none',
25
+ tab: 'font-medium p-0 h-fit rounded-none !outline-none',
26
26
  tabContent: 'text-foreground-300 font-medium',
27
27
  cursor: 'hidden'
28
28
  }
@@ -290,8 +290,10 @@ declare const ExtendedTooltip: import("react").ForwardRefExoticComponent<Omit<{
290
290
  as?: import("@heroui/system-rsc").As<any> | undefined;
291
291
  onClose?: ((() => void) & (() => void)) | undefined;
292
292
  classNames?: import("@heroui/theme").SlotsToClasses<"content" | "base" | "arrow"> | undefined;
293
- placement?: import("@heroui/aria-utils").OverlayPlacement | undefined;
294
293
  isOpen?: boolean | undefined;
294
+ defaultOpen?: boolean | undefined;
295
+ onOpenChange?: ((isOpen: boolean) => void) | undefined;
296
+ placement?: import("@heroui/aria-utils").OverlayPlacement | undefined;
295
297
  containerPadding?: number | undefined;
296
298
  crossOffset?: number | undefined;
297
299
  shouldFlip?: boolean | undefined;
@@ -305,8 +307,6 @@ declare const ExtendedTooltip: import("react").ForwardRefExoticComponent<Omit<{
305
307
  isTriggerDisabled?: boolean | undefined;
306
308
  motionProps?: Omit<import("framer-motion").HTMLMotionProps<"div">, "ref"> | undefined;
307
309
  portalContainer?: Element | undefined;
308
- defaultOpen?: boolean | undefined;
309
- onOpenChange?: ((isOpen: boolean) => void) | undefined;
310
310
  trigger?: "focus" | undefined;
311
311
  delay?: number | undefined;
312
312
  closeDelay?: number | undefined;
@@ -3,14 +3,20 @@ import { Tooltip } from "@heroui/tooltip";
3
3
  const ExtendedTooltip = extendVariants(Tooltip, {
4
4
  variants: {
5
5
  size: {
6
+ sm: {
7
+ content: '!p-sm max-w-[300px]'
8
+ },
6
9
  md: {
7
- content: 'text-tiny leading-1.4 !p-md max-w-[300px] break-all hyphens-manual wrap-break-word'
10
+ content: '!p-md max-w-[300px]'
11
+ },
12
+ lg: {
13
+ content: '!p-lg max-w-[300px]'
8
14
  }
9
15
  },
10
16
  color: {
11
17
  default: {
12
18
  base: 'before:bg-content1 before:shadow-box',
13
- content: 'bg-content1 text-foreground-300 shadow-box'
19
+ content: 'bg-content1 text-foreground-300 shadow-box text-tiny leading-1.4 break-words wrap-break-word'
14
20
  }
15
21
  }
16
22
  },
@@ -15,10 +15,12 @@ export { default as ProgressWrapper } from './ProgressWrapper';
15
15
  export { default as Text } from './typography/Text';
16
16
  export type { TextProps } from './typography/Text.type';
17
17
  export * from './UXButton';
18
+ export * from './UXCalendar';
18
19
  export { default as UXCheckbox } from './UXCheckbox';
19
20
  export * from './UXCheckbox';
20
21
  export type { UXChipProps } from './UXChip';
21
22
  export { default as UXChip } from './UXChip';
23
+ export * from './UXDateRangePicker';
22
24
  export type { UXDividerProps } from './UXDivider';
23
25
  export { default as UXDivider } from './UXDivider';
24
26
  export * from './UXDropdown';
@@ -20,7 +20,9 @@ import UXSwitch from "./UXSwitch/index.js";
20
20
  import UXTabs from "./UXTabs/index.js";
21
21
  import UXTooltip from "./UXTooltip/index.js";
22
22
  export * from "./UXButton/index.js";
23
+ export * from "./UXCalendar/index.js";
23
24
  export * from "./UXCheckbox/index.js";
25
+ export * from "./UXDateRangePicker/index.js";
24
26
  export * from "./UXDropdown/index.js";
25
27
  export * from "./UXEmpty/index.js";
26
28
  export * from "./UXInput/index.js";
@@ -11,3 +11,4 @@ export declare const CircleQuestionIcon: React.FC<IconProps>;
11
11
  export declare const EmptyIcon: React.FC<IconProps>;
12
12
  export declare const ChevronRightIcon: React.FC<IconProps>;
13
13
  export declare const ChevronLeftIcon: React.FC<IconProps>;
14
+ export declare const CalendarIcon: React.FC<IconProps>;
@@ -89,4 +89,21 @@ const ChevronLeftIcon = ({ size = 16, color = 'currentColor', ...props })=>/*#__
89
89
  fill: getColor(color)
90
90
  })
91
91
  });
92
- export { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CircleQuestionIcon, CloseIcon, EmptyIcon };
92
+ const CalendarIcon = ({ size = 16, color = 'currentColor', ...props })=>/*#__PURE__*/ jsxs("svg", {
93
+ width: size,
94
+ height: size,
95
+ viewBox: "0 0 24 24",
96
+ fill: "none",
97
+ ...props,
98
+ children: [
99
+ /*#__PURE__*/ jsx("path", {
100
+ d: "M16.5557 2C16.895 2 17.1698 2.28823 17.1699 2.64355V3.86914H19.0664C20.0829 3.86914 20.9099 4.73498 20.9102 5.7998V18.6689C20.9102 19.7338 20.0829 20.5996 19.0664 20.5996H4.93359C3.91709 20.5996 3.08984 19.7338 3.08984 18.6689V5.7998C3.08992 4.73498 3.91714 3.86914 4.93359 3.86914H6.83008V2.64355C6.83018 2.28823 7.10497 2 7.44434 2C7.78365 2.00007 8.05849 2.28828 8.05859 2.64355V3.86914H15.9414V2.64355C15.9415 2.28828 16.2164 2.00008 16.5557 2ZM4.31934 10.2148V18.6689C4.31944 19.0238 4.59468 19.3125 4.93359 19.3125H19.0664C19.4051 19.3125 19.6808 19.0238 19.6807 18.6689V10.2148H4.31934ZM15.0254 14.0654C15.3784 14.0655 15.6648 14.3652 15.665 14.7354C15.665 15.1056 15.3787 15.4061 15.0254 15.4062H8.97461C8.62121 15.4062 8.33496 15.1056 8.33496 14.7354C8.33516 14.3652 8.62133 14.0655 8.97461 14.0654H15.0254ZM4.93359 5.15625C4.59488 5.15625 4.31941 5.44468 4.31934 5.7998V8.92676H19.6807V5.7998C19.6806 5.44468 19.4053 5.15625 19.0664 5.15625H17.1699V6.2959C17.1699 6.65154 16.8951 6.94043 16.5557 6.94043C16.2163 6.94035 15.9414 6.65126 15.9414 6.2959V5.15625H8.05859V6.2959C8.05859 6.65149 7.78371 6.94036 7.44434 6.94043C7.1049 6.94043 6.83008 6.65131 6.83008 6.2959V5.15625H4.93359Z",
101
+ fill: getColor(color)
102
+ }),
103
+ /*#__PURE__*/ jsx("path", {
104
+ d: "M16.5557 2V1.9H16.5556L16.5557 2ZM17.1699 2.64355H17.2699V2.64353L17.1699 2.64355ZM17.1699 3.86914H17.0699V3.96914H17.1699V3.86914ZM20.9102 5.7998H21.0102V5.79978L20.9102 5.7998ZM3.08984 5.7998L2.98984 5.7998V5.7998H3.08984ZM6.83008 3.86914V3.96914H6.93008V3.86914H6.83008ZM6.83008 2.64355L6.73008 2.64353V2.64355H6.83008ZM7.44434 2L7.44436 1.9H7.44434V2ZM8.05859 2.64355H8.15859V2.64353L8.05859 2.64355ZM8.05859 3.86914H7.95859V3.96914H8.05859V3.86914ZM15.9414 3.86914V3.96914H16.0414V3.86914H15.9414ZM15.9414 2.64355L15.8414 2.64353V2.64355H15.9414ZM4.31934 10.2148V10.1148H4.21934V10.2148H4.31934ZM4.31934 18.6689H4.21934V18.669L4.31934 18.6689ZM19.6807 18.6689H19.5807V18.669L19.6807 18.6689ZM19.6807 10.2148H19.7807V10.1148H19.6807V10.2148ZM15.0254 14.0654L15.0254 13.9654H15.0254V14.0654ZM15.665 14.7354H15.765V14.7353L15.665 14.7354ZM15.0254 15.4062V15.5063H15.0254L15.0254 15.4062ZM8.97461 15.4062L8.9746 15.5063H8.97461V15.4062ZM8.33496 14.7354L8.23496 14.7353V14.7354H8.33496ZM8.97461 14.0654V13.9654H8.9746L8.97461 14.0654ZM4.31934 5.7998L4.21934 5.79978V5.7998H4.31934ZM4.31934 8.92676H4.21934V9.02676H4.31934V8.92676ZM19.6807 8.92676V9.02676H19.7807V8.92676H19.6807ZM19.6807 5.7998H19.7807V5.79978L19.6807 5.7998ZM17.1699 5.15625V5.05625H17.0699V5.15625H17.1699ZM16.5557 6.94043L16.5556 7.04043H16.5557V6.94043ZM15.9414 5.15625H16.0414V5.05625H15.9414V5.15625ZM8.05859 5.15625V5.05625H7.95859V5.15625H8.05859ZM7.44434 6.94043V7.04043H7.44436L7.44434 6.94043ZM6.83008 5.15625H6.93008V5.05625H6.83008V5.15625ZM16.5557 2V2.1C16.8354 2.1 17.0698 2.33897 17.0699 2.64358L17.1699 2.64355L17.2699 2.64353C17.2698 2.23749 16.9547 1.9 16.5557 1.9V2ZM17.1699 2.64355H17.0699V3.86914H17.1699H17.2699V2.64355H17.1699ZM17.1699 3.86914V3.96914H19.0664V3.86914V3.76914H17.1699V3.86914ZM19.0664 3.86914V3.96914C20.0233 3.96914 20.8099 4.78581 20.8102 5.79983L20.9102 5.7998L21.0102 5.79978C21.0098 4.68414 20.1424 3.76914 19.0664 3.76914V3.86914ZM20.9102 5.7998H20.8102V18.6689H20.9102H21.0102V5.7998H20.9102ZM20.9102 18.6689H20.8102C20.8102 19.683 20.0234 20.4996 19.0664 20.4996V20.5996V20.6996C20.1424 20.6996 21.0102 19.7847 21.0102 18.6689H20.9102ZM19.0664 20.5996V20.4996H4.93359V20.5996V20.6996H19.0664V20.5996ZM4.93359 20.5996V20.4996C3.9766 20.4996 3.18984 19.683 3.18984 18.6689H3.08984H2.98984C2.98984 19.7847 3.85759 20.6996 4.93359 20.6996V20.5996ZM3.08984 18.6689H3.18984V5.7998H3.08984H2.98984V18.6689H3.08984ZM3.08984 5.7998L3.18984 5.79981C3.18992 4.78582 3.97665 3.96914 4.93359 3.96914V3.86914V3.76914C3.85763 3.76914 2.98992 4.68413 2.98984 5.7998L3.08984 5.7998ZM4.93359 3.86914V3.96914H6.83008V3.86914V3.76914H4.93359V3.86914ZM6.83008 3.86914H6.93008V2.64355H6.83008H6.73008V3.86914H6.83008ZM6.83008 2.64355L6.93008 2.64358C6.93017 2.33897 7.16458 2.1 7.44434 2.1V2V1.9C7.04535 1.9 6.7302 2.23749 6.73008 2.64353L6.83008 2.64355ZM7.44434 2L7.44431 2.1C7.72405 2.10006 7.95851 2.33904 7.95859 2.64358L8.05859 2.64355L8.15859 2.64353C8.15848 2.23751 7.84325 1.90008 7.44436 1.9L7.44434 2ZM8.05859 2.64355H7.95859V3.86914H8.05859H8.15859V2.64355H8.05859ZM8.05859 3.86914V3.96914H15.9414V3.86914V3.76914H8.05859V3.86914ZM15.9414 3.86914H16.0414V2.64355H15.9414H15.8414V3.86914H15.9414ZM15.9414 2.64355L16.0414 2.64358C16.0415 2.33905 16.276 2.10007 16.5557 2.1L16.5557 2L16.5556 1.9C16.1568 1.9001 15.8415 2.23751 15.8414 2.64353L15.9414 2.64355ZM4.31934 10.2148H4.21934V18.6689H4.31934H4.41934V10.2148H4.31934ZM4.31934 18.6689L4.21934 18.669C4.21946 19.0746 4.53506 19.4125 4.93359 19.4125V19.3125V19.2125C4.65429 19.2125 4.41943 18.9731 4.41934 18.6689L4.31934 18.6689ZM4.93359 19.3125V19.4125H19.0664V19.3125V19.2125H4.93359V19.3125ZM19.0664 19.3125V19.4125C19.4646 19.4125 19.7808 19.0746 19.7807 18.6689L19.6807 18.6689L19.5807 18.669C19.5808 18.973 19.3456 19.2125 19.0664 19.2125V19.3125ZM19.6807 18.6689H19.7807V10.2148H19.6807H19.5807V18.6689H19.6807ZM19.6807 10.2148V10.1148H4.31934V10.2148V10.3148H19.6807V10.2148ZM15.0254 14.0654L15.0254 14.1654C15.3189 14.1655 15.5649 14.4161 15.565 14.7354L15.665 14.7354L15.765 14.7353C15.7648 14.3144 15.438 13.9655 15.0254 13.9654L15.0254 14.0654ZM15.665 14.7354H15.565C15.565 15.0549 15.319 15.3061 15.0253 15.3062L15.0254 15.4062L15.0254 15.5063C15.4384 15.506 15.765 15.1562 15.765 14.7354H15.665ZM15.0254 15.4062V15.3062H8.97461V15.4062V15.5063H15.0254V15.4062ZM8.97461 15.4062L8.97462 15.3062C8.6809 15.3062 8.43496 15.055 8.43496 14.7354H8.33496H8.23496C8.23496 15.1563 8.56151 15.5062 8.9746 15.5063L8.97461 15.4062ZM8.33496 14.7354L8.43496 14.7354C8.43513 14.416 8.6809 14.1655 8.97462 14.1654L8.97461 14.0654L8.9746 13.9654C8.56176 13.9655 8.23519 14.3144 8.23496 14.7353L8.33496 14.7354ZM8.97461 14.0654V14.1654H15.0254V14.0654V13.9654H8.97461V14.0654ZM4.93359 5.15625V5.05625C4.53532 5.05625 4.21942 5.39388 4.21934 5.79978L4.31934 5.7998L4.41934 5.79983C4.4194 5.49548 4.65444 5.25625 4.93359 5.25625V5.15625ZM4.31934 5.7998H4.21934V8.92676H4.31934H4.41934V5.7998H4.31934ZM4.31934 8.92676V9.02676H19.6807V8.92676V8.82676H4.31934V8.92676ZM19.6807 8.92676H19.7807V5.7998H19.6807H19.5807V8.92676H19.6807ZM19.6807 5.7998L19.7807 5.79978C19.7806 5.39391 19.4649 5.05625 19.0664 5.05625V5.15625V5.25625C19.3458 5.25625 19.5806 5.49546 19.5807 5.79983L19.6807 5.7998ZM19.0664 5.15625V5.05625H17.1699V5.15625V5.25625H19.0664V5.15625ZM17.1699 5.15625H17.0699V6.2959H17.1699H17.2699V5.15625H17.1699ZM17.1699 6.2959H17.0699C17.0699 6.60095 16.8353 6.84043 16.5557 6.84043V6.94043V7.04043C16.9549 7.04043 17.2699 6.70213 17.2699 6.2959H17.1699ZM16.5557 6.94043L16.5557 6.84043C16.2761 6.84036 16.0414 6.60068 16.0414 6.2959H15.9414H15.8414C15.8414 6.70185 16.1565 7.04033 16.5556 7.04043L16.5557 6.94043ZM15.9414 6.2959H16.0414V5.15625H15.9414H15.8414V6.2959H15.9414ZM15.9414 5.15625V5.05625H8.05859V5.15625V5.25625H15.9414V5.15625ZM8.05859 5.15625H7.95859V6.2959H8.05859H8.15859V5.15625H8.05859ZM8.05859 6.2959H7.95859C7.95859 6.60089 7.72397 6.84037 7.44431 6.84043L7.44434 6.94043L7.44436 7.04043C7.84345 7.04035 8.15859 6.7021 8.15859 6.2959H8.05859ZM7.44434 6.94043V6.84043C7.16468 6.84043 6.93008 6.60075 6.93008 6.2959H6.83008H6.73008C6.73008 6.70188 7.04512 7.04043 7.44434 7.04043V6.94043ZM6.83008 6.2959H6.93008V5.15625H6.83008H6.73008V6.2959H6.83008ZM6.83008 5.15625V5.05625H4.93359V5.15625V5.25625H6.83008V5.15625Z",
105
+ fill: getColor(color)
106
+ })
107
+ ]
108
+ });
109
+ export { CalendarIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CircleQuestionIcon, CloseIcon, EmptyIcon };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-network/ui-react",
3
- "version": "0.1.4-beta.0",
3
+ "version": "0.1.4-beta.11",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -39,8 +39,8 @@
39
39
  "@types/react": "^19.1.10",
40
40
  "react": "^19.1.0",
41
41
  "typescript": "^5.8.3",
42
- "@particle-network/eslint-config": "0.3.0",
43
- "@particle-network/lintstaged-config": "0.1.0"
42
+ "@particle-network/lintstaged-config": "0.1.0",
43
+ "@particle-network/eslint-config": "0.3.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": ">=16.9.0",
@@ -124,6 +124,9 @@ module.exports = {
124
124
  content1: {
125
125
  DEFAULT: '#FFFFFF',
126
126
  },
127
+ overlay: {
128
+ DEFAULT: '#FFFFFF',
129
+ },
127
130
  background: {
128
131
  200: '#E8E8ED',
129
132
  300: '#F0F0F2',
@@ -149,7 +152,11 @@ module.exports = {
149
152
  foreground: '#FFFFFF',
150
153
  },
151
154
  secondary: {
152
- DEFAULT: '#E8E8EB',
155
+ DEFAULT: '#767A80',
156
+ foreground: '#FFFFFF',
157
+ },
158
+ tertiary: {
159
+ DEFAULT: '#C0C0C9',
153
160
  foreground: '#000000',
154
161
  },
155
162
  success: {
@@ -175,6 +182,9 @@ module.exports = {
175
182
  content1: {
176
183
  DEFAULT: '#17171C',
177
184
  },
185
+ overlay: {
186
+ DEFAULT: '#17171C',
187
+ },
178
188
  background: {
179
189
  200: '#1F1F23',
180
190
  300: '#17171C',
@@ -200,7 +210,11 @@ module.exports = {
200
210
  foreground: '#FFFFFF',
201
211
  },
202
212
  secondary: {
203
- DEFAULT: '#1F1F23',
213
+ DEFAULT: '#A1A1AA',
214
+ foreground: '#FFFFFF',
215
+ },
216
+ tertiary: {
217
+ DEFAULT: '#4E4E56',
204
218
  foreground: '#FFFFFF',
205
219
  },
206
220
  success: {