@herca/r-kit 0.0.32 → 0.0.34

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.
@@ -139,4 +139,4 @@ type CalendarTypes = 'week' | 'month' | 'year' | 'day' | 'agenda';
139
139
 
140
140
  declare const Calendar: ({ showNavigator, showHeader, value, onChange, disabledDates, dayConfigs, defaultMonth, defaultYear, styleConfig, wrapperClassname, weekWrapperClassname, dayWrapperClassname, daysOfWeek, months, showNextNavigator, showPrevNavigator, mode, rangeValue, size, variant, events, showCalendarTooltip, type, onTypeChange, onEventClick, backdropOnClick, onMonthChange, onYearChange, showDefaultController, }: CalendarProps) => react_jsx_runtime.JSX.Element;
141
141
 
142
- export { type ButtonDropdownProps as B, Calendar as C, type DateRangeProps as D, type GetCalendarDaysProps as G, type CalendarDay as a, type CalendarDayConfig as b, type CalendarDayItemProps as c, type CalendarEvent as d, type CalendarGridProps as e, type CalendarProps as f, type CalendarState as g, type CalendarStyleConfig as h, type CalendarTypes as i, type DotConfig as j, type DropdownState as k };
142
+ export { type ButtonDropdownProps as B, type CalendarEvent as C, type DateRangeProps as D, type GetCalendarDaysProps as G, type CalendarDay as a, Calendar as b, type CalendarDayConfig as c, type CalendarDayItemProps as d, type CalendarGridProps as e, type CalendarProps as f, type CalendarState as g, type CalendarStyleConfig as h, type CalendarTypes as i, type DotConfig as j, type DropdownState as k };
@@ -139,4 +139,4 @@ type CalendarTypes = 'week' | 'month' | 'year' | 'day' | 'agenda';
139
139
 
140
140
  declare const Calendar: ({ showNavigator, showHeader, value, onChange, disabledDates, dayConfigs, defaultMonth, defaultYear, styleConfig, wrapperClassname, weekWrapperClassname, dayWrapperClassname, daysOfWeek, months, showNextNavigator, showPrevNavigator, mode, rangeValue, size, variant, events, showCalendarTooltip, type, onTypeChange, onEventClick, backdropOnClick, onMonthChange, onYearChange, showDefaultController, }: CalendarProps) => react_jsx_runtime.JSX.Element;
141
141
 
142
- export { type ButtonDropdownProps as B, Calendar as C, type DateRangeProps as D, type GetCalendarDaysProps as G, type CalendarDay as a, type CalendarDayConfig as b, type CalendarDayItemProps as c, type CalendarEvent as d, type CalendarGridProps as e, type CalendarProps as f, type CalendarState as g, type CalendarStyleConfig as h, type CalendarTypes as i, type DotConfig as j, type DropdownState as k };
142
+ export { type ButtonDropdownProps as B, type CalendarEvent as C, type DateRangeProps as D, type GetCalendarDaysProps as G, type CalendarDay as a, Calendar as b, type CalendarDayConfig as c, type CalendarDayItemProps as d, type CalendarGridProps as e, type CalendarProps as f, type CalendarState as g, type CalendarStyleConfig as h, type CalendarTypes as i, type DotConfig as j, type DropdownState as k };
@@ -1,5 +1,5 @@
1
- import { B as ButtonDropdownProps, G as GetCalendarDaysProps, d as CalendarEvent, a as CalendarDay } from '../../calendar-BrvWjqt1.cjs';
2
- export { C as Calendar, b as CalendarDayConfig, c as CalendarDayItemProps, e as CalendarGridProps, f as CalendarProps, g as CalendarState, h as CalendarStyleConfig, i as CalendarTypes, D as DateRangeProps, j as DotConfig, k as DropdownState } from '../../calendar-BrvWjqt1.cjs';
1
+ import { B as ButtonDropdownProps, G as GetCalendarDaysProps, C as CalendarEvent, a as CalendarDay } from '../../calendar-BCKSx4Z3.cjs';
2
+ export { b as Calendar, c as CalendarDayConfig, d as CalendarDayItemProps, e as CalendarGridProps, f as CalendarProps, g as CalendarState, h as CalendarStyleConfig, i as CalendarTypes, D as DateRangeProps, j as DotConfig, k as DropdownState } from '../../calendar-BCKSx4Z3.cjs';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { a as IconNameProps } from '../../type-Df0GlNrz.cjs';
5
5
  import 'react';
@@ -1,5 +1,5 @@
1
- import { B as ButtonDropdownProps, G as GetCalendarDaysProps, d as CalendarEvent, a as CalendarDay } from '../../calendar-BrvWjqt1.js';
2
- export { C as Calendar, b as CalendarDayConfig, c as CalendarDayItemProps, e as CalendarGridProps, f as CalendarProps, g as CalendarState, h as CalendarStyleConfig, i as CalendarTypes, D as DateRangeProps, j as DotConfig, k as DropdownState } from '../../calendar-BrvWjqt1.js';
1
+ import { B as ButtonDropdownProps, G as GetCalendarDaysProps, C as CalendarEvent, a as CalendarDay } from '../../calendar-BCKSx4Z3.js';
2
+ export { b as Calendar, c as CalendarDayConfig, d as CalendarDayItemProps, e as CalendarGridProps, f as CalendarProps, g as CalendarState, h as CalendarStyleConfig, i as CalendarTypes, D as DateRangeProps, j as DotConfig, k as DropdownState } from '../../calendar-BCKSx4Z3.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { a as IconNameProps } from '../../type-Df0GlNrz.js';
5
5
  import 'react';
@@ -58,12 +58,12 @@ declare const Checkbox: react__default.FC<CheckboxProps & {
58
58
 
59
59
  declare const CheckboxVariants: (props?: ({
60
60
  size?: "sm" | "md" | "lg" | null | undefined;
61
- color?: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "orange" | "purple" | "gray" | null | undefined;
61
+ color?: "info" | "success" | "warning" | "danger" | "primary" | "orange" | "purple" | "secondary" | "gray" | null | undefined;
62
62
  checked?: boolean | null | undefined;
63
63
  } & class_variance_authority_types.ClassProp) | undefined) => string;
64
64
  declare const CheckboxIndicatorVariants: (props?: ({
65
65
  size?: "sm" | "md" | "lg" | null | undefined;
66
- color?: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "orange" | "purple" | "gray" | null | undefined;
66
+ color?: "info" | "success" | "warning" | "danger" | "primary" | "orange" | "purple" | "secondary" | "gray" | null | undefined;
67
67
  icon?: "check" | "minus" | null | undefined;
68
68
  } & class_variance_authority_types.ClassProp) | undefined) => string;
69
69
 
@@ -58,12 +58,12 @@ declare const Checkbox: react__default.FC<CheckboxProps & {
58
58
 
59
59
  declare const CheckboxVariants: (props?: ({
60
60
  size?: "sm" | "md" | "lg" | null | undefined;
61
- color?: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "orange" | "purple" | "gray" | null | undefined;
61
+ color?: "info" | "success" | "warning" | "danger" | "primary" | "orange" | "purple" | "secondary" | "gray" | null | undefined;
62
62
  checked?: boolean | null | undefined;
63
63
  } & class_variance_authority_types.ClassProp) | undefined) => string;
64
64
  declare const CheckboxIndicatorVariants: (props?: ({
65
65
  size?: "sm" | "md" | "lg" | null | undefined;
66
- color?: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "orange" | "purple" | "gray" | null | undefined;
66
+ color?: "info" | "success" | "warning" | "danger" | "primary" | "orange" | "purple" | "secondary" | "gray" | null | undefined;
67
67
  icon?: "check" | "minus" | null | undefined;
68
68
  } & class_variance_authority_types.ClassProp) | undefined) => string;
69
69
 
@@ -5,8 +5,8 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
5
5
 
6
6
  declare const chipVariants: (props?: ({
7
7
  size?: "sm" | "md" | "lg" | null | undefined;
8
- color?: "primary" | "success" | "danger" | "warning" | "info" | "orange" | "purple" | "gray" | null | undefined;
9
- state?: "disabled" | "default" | "selected" | null | undefined;
8
+ color?: "info" | "success" | "warning" | "danger" | "primary" | "orange" | "purple" | "gray" | null | undefined;
9
+ state?: "default" | "disabled" | "selected" | null | undefined;
10
10
  block?: boolean | null | undefined;
11
11
  } & class_variance_authority_types.ClassProp) | undefined) => string;
12
12
  type ChipVariants = VariantProps<typeof chipVariants>;
@@ -5,8 +5,8 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
5
5
 
6
6
  declare const chipVariants: (props?: ({
7
7
  size?: "sm" | "md" | "lg" | null | undefined;
8
- color?: "primary" | "success" | "danger" | "warning" | "info" | "orange" | "purple" | "gray" | null | undefined;
9
- state?: "disabled" | "default" | "selected" | null | undefined;
8
+ color?: "info" | "success" | "warning" | "danger" | "primary" | "orange" | "purple" | "gray" | null | undefined;
9
+ state?: "default" | "disabled" | "selected" | null | undefined;
10
10
  block?: boolean | null | undefined;
11
11
  } & class_variance_authority_types.ClassProp) | undefined) => string;
12
12
  type ChipVariants = VariantProps<typeof chipVariants>;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { C as Calendar } from '../../calendar-BrvWjqt1.cjs';
3
+ import { b as Calendar } from '../../calendar-BCKSx4Z3.cjs';
4
4
 
5
5
  type DatePickerMode = 'single' | 'range';
6
6
  interface DateRange {
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { C as Calendar } from '../../calendar-BrvWjqt1.js';
3
+ import { b as Calendar } from '../../calendar-BCKSx4Z3.js';
4
4
 
5
5
  type DatePickerMode = 'single' | 'range';
6
6
  interface DateRange {
@@ -4,11 +4,11 @@ import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const modalVariants: (props?: ({
6
6
  size?: "sm" | "md" | "lg" | "xs" | "full" | null | undefined;
7
- state?: "open" | "closed" | null | undefined;
7
+ state?: "closed" | "open" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  declare const modalOverlayVariants: (props?: ({
10
10
  position?: "center" | "top" | "bottom" | null | undefined;
11
- state?: "open" | "closed" | null | undefined;
11
+ state?: "closed" | "open" | null | undefined;
12
12
  } & class_variance_authority_types.ClassProp) | undefined) => string;
13
13
  type modalOverlayVariantsProps = VariantProps<typeof modalOverlayVariants>;
14
14
  type ModalVariantProps = VariantProps<typeof modalVariants>;
@@ -4,11 +4,11 @@ import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const modalVariants: (props?: ({
6
6
  size?: "sm" | "md" | "lg" | "xs" | "full" | null | undefined;
7
- state?: "open" | "closed" | null | undefined;
7
+ state?: "closed" | "open" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  declare const modalOverlayVariants: (props?: ({
10
10
  position?: "center" | "top" | "bottom" | null | undefined;
11
- state?: "open" | "closed" | null | undefined;
11
+ state?: "closed" | "open" | null | undefined;
12
12
  } & class_variance_authority_types.ClassProp) | undefined) => string;
13
13
  type modalOverlayVariantsProps = VariantProps<typeof modalOverlayVariants>;
14
14
  type ModalVariantProps = VariantProps<typeof modalVariants>;
@@ -27,7 +27,7 @@ declare const Switch: react__default.FC<SwitchProps & {
27
27
 
28
28
  declare const SwitchVariants: (props?: ({
29
29
  size?: "sm" | "md" | "lg" | null | undefined;
30
- color?: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "orange" | "purple" | "gray" | null | undefined;
30
+ color?: "info" | "success" | "warning" | "danger" | "primary" | "orange" | "purple" | "secondary" | "gray" | null | undefined;
31
31
  } & class_variance_authority_types.ClassProp) | undefined) => string;
32
32
  declare const SwitchThumbVariants: (props?: ({
33
33
  size?: "sm" | "md" | "lg" | null | undefined;
@@ -27,7 +27,7 @@ declare const Switch: react__default.FC<SwitchProps & {
27
27
 
28
28
  declare const SwitchVariants: (props?: ({
29
29
  size?: "sm" | "md" | "lg" | null | undefined;
30
- color?: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "orange" | "purple" | "gray" | null | undefined;
30
+ color?: "info" | "success" | "warning" | "danger" | "primary" | "orange" | "purple" | "secondary" | "gray" | null | undefined;
31
31
  } & class_variance_authority_types.ClassProp) | undefined) => string;
32
32
  declare const SwitchThumbVariants: (props?: ({
33
33
  size?: "sm" | "md" | "lg" | null | undefined;
package/dist/index.d.cts CHANGED
@@ -1,43 +1,2 @@
1
- export { BaseCheckbox, Checkbox, CheckboxGroup, CheckboxGroupContextValue, CheckboxGroupProps, CheckboxIndicatorVariants, CheckboxProps, CheckboxVariants, ColorType, IconType, SizeType } from './components/checkbox/index.cjs';
2
- export { Chip, ChipArrayProps, ChipContext, ChipContextValue, ChipGroup, ChipOptionProps, ChipProps, ChipSelectedProps, ChipValue, ChipVariants, ColorVariantType, chipVariants } from './components/chip/index.cjs';
3
- export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './components/collapsible/index.cjs';
4
- export { Sidebar, SidebarContent, SidebarContext, SidebarContextProps, SidebarFooter, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuGroup, SidebarMenuItem, SidebarProvider, SidebarTrigger, useSidebar } from './components/sidebar/index.cjs';
5
- export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from './components/sheet/index.cjs';
6
- export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './components/tooltip/index.cjs';
7
- export { Modal, ModalBody, ModalDescription, ModalFooter, ModalHeader, ModalTitle } from './components/modal/index.cjs';
8
- export { FileItem, InputFile, InputFileProps, InputFileRef, ModalPreviewAttachment, PlayerProps, PreviewItem, PreviewItemProps } from './components/input-file/index.cjs';
9
- export { ButtonIconProps, Counter, CounterControllerProps, CounterProps, handleDecrement, handleIncrement, handleInputChange, handleKeyDown, normalize } from './components/counter/index.cjs';
10
- export { InputOTP, InputOTPProps } from './components/input-otp/index.cjs';
11
- export { Dropdown, DropdownContent, DropdownItem, DropdownTrigger } from './components/dropdown/index.cjs';
12
- export { Input, InputProps, InputVariantProps, inputVariants } from './components/input/index.cjs';
13
- export { Table, TableBody, TableBodyProps, TableCell, TableCellHead, TableCellHeadProps, TableCellProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TablePagination, TablePaginationProps, TableRootProps, TableRow, TableRowProps, generatePages } from './components/table/index.cjs';
14
- export { CalendarBaseProps, CalendarOverrideProps, CalendarRangeOverrideProps, DateFormat, DatePicker, DatePickerMode, DatePickerProps, DateRange, formatDateLocal, formatDateToString, getFormatConfig, monthsFull, monthsShort, parseMonthName } from './components/date-picker/index.cjs';
15
- export { Textarea, TextareaProps } from './components/textarea/index.cjs';
16
- export { BaseSwitch, Switch, SwitchThumbVariants, SwitchVariants } from './components/switch/index.cjs';
17
- export { ToastProvider, useToast } from './components/toast/index.cjs';
18
- export { FormDescription, FormDescriptionProps, FormErrorMessage, FormErrorMessageProps, FormErrorMessages, FormErrorMessagesProps, FormField, FormFieldProps, FormHint, FormHintProps, FormLabel, FormLabelProps, FormSizeType } from './components/form/index.cjs';
19
- export { Select } from './components/select/index.cjs';
20
- export { Tabs, TabsContent, TabsList, TabsTrigger } from './components/tabs/index.cjs';
21
- export { ButtonGroup, ButtonGroupItem, ButtonGroupProps } from './components/button-group/index.cjs';
22
- export { B as ButtonDropdownProps, C as Calendar, a as CalendarDay, b as CalendarDayConfig, c as CalendarDayItemProps, d as CalendarEvent, e as CalendarGridProps, f as CalendarProps, g as CalendarState, h as CalendarStyleConfig, i as CalendarTypes, D as DateRangeProps, j as DotConfig, k as DropdownState, G as GetCalendarDaysProps } from './calendar-BrvWjqt1.cjs';
23
- export { ButtonDropdown, ButtonNavigator, ItemDropdown, getCalendarDays, getWeekEventSegments, isSameDate, isToday, parseLocalDate, toDateOnly } from './components/calendar/index.cjs';
24
- import 'react';
25
- import 'class-variance-authority/types';
26
- import 'class-variance-authority';
27
- import 'react/jsx-runtime';
28
- import '@radix-ui/react-collapsible';
29
- import '@radix-ui/react-dialog';
30
- import '@radix-ui/react-tooltip';
31
- import './type-Df0GlNrz.cjs';
32
- import '@radix-ui/react-dropdown-menu';
33
- import './type-C_qxMk54.cjs';
34
- import './components/button/index.cjs';
35
1
 
36
- declare function useCopy(): {
37
- copy: (text: string) => Promise<void>;
38
- copied: boolean;
39
- };
40
-
41
- declare function useIsMobile(): boolean;
42
-
43
- export { useCopy, useIsMobile };
2
+ export { }
package/dist/index.d.ts CHANGED
@@ -1,43 +1,2 @@
1
- export { BaseCheckbox, Checkbox, CheckboxGroup, CheckboxGroupContextValue, CheckboxGroupProps, CheckboxIndicatorVariants, CheckboxProps, CheckboxVariants, ColorType, IconType, SizeType } from './components/checkbox/index.js';
2
- export { Chip, ChipArrayProps, ChipContext, ChipContextValue, ChipGroup, ChipOptionProps, ChipProps, ChipSelectedProps, ChipValue, ChipVariants, ColorVariantType, chipVariants } from './components/chip/index.js';
3
- export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './components/collapsible/index.js';
4
- export { Sidebar, SidebarContent, SidebarContext, SidebarContextProps, SidebarFooter, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuGroup, SidebarMenuItem, SidebarProvider, SidebarTrigger, useSidebar } from './components/sidebar/index.js';
5
- export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from './components/sheet/index.js';
6
- export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './components/tooltip/index.js';
7
- export { Modal, ModalBody, ModalDescription, ModalFooter, ModalHeader, ModalTitle } from './components/modal/index.js';
8
- export { FileItem, InputFile, InputFileProps, InputFileRef, ModalPreviewAttachment, PlayerProps, PreviewItem, PreviewItemProps } from './components/input-file/index.js';
9
- export { ButtonIconProps, Counter, CounterControllerProps, CounterProps, handleDecrement, handleIncrement, handleInputChange, handleKeyDown, normalize } from './components/counter/index.js';
10
- export { InputOTP, InputOTPProps } from './components/input-otp/index.js';
11
- export { Dropdown, DropdownContent, DropdownItem, DropdownTrigger } from './components/dropdown/index.js';
12
- export { Input, InputProps, InputVariantProps, inputVariants } from './components/input/index.js';
13
- export { Table, TableBody, TableBodyProps, TableCell, TableCellHead, TableCellHeadProps, TableCellProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TablePagination, TablePaginationProps, TableRootProps, TableRow, TableRowProps, generatePages } from './components/table/index.js';
14
- export { CalendarBaseProps, CalendarOverrideProps, CalendarRangeOverrideProps, DateFormat, DatePicker, DatePickerMode, DatePickerProps, DateRange, formatDateLocal, formatDateToString, getFormatConfig, monthsFull, monthsShort, parseMonthName } from './components/date-picker/index.js';
15
- export { Textarea, TextareaProps } from './components/textarea/index.js';
16
- export { BaseSwitch, Switch, SwitchThumbVariants, SwitchVariants } from './components/switch/index.js';
17
- export { ToastProvider, useToast } from './components/toast/index.js';
18
- export { FormDescription, FormDescriptionProps, FormErrorMessage, FormErrorMessageProps, FormErrorMessages, FormErrorMessagesProps, FormField, FormFieldProps, FormHint, FormHintProps, FormLabel, FormLabelProps, FormSizeType } from './components/form/index.js';
19
- export { Select } from './components/select/index.js';
20
- export { Tabs, TabsContent, TabsList, TabsTrigger } from './components/tabs/index.js';
21
- export { ButtonGroup, ButtonGroupItem, ButtonGroupProps } from './components/button-group/index.js';
22
- export { B as ButtonDropdownProps, C as Calendar, a as CalendarDay, b as CalendarDayConfig, c as CalendarDayItemProps, d as CalendarEvent, e as CalendarGridProps, f as CalendarProps, g as CalendarState, h as CalendarStyleConfig, i as CalendarTypes, D as DateRangeProps, j as DotConfig, k as DropdownState, G as GetCalendarDaysProps } from './calendar-BrvWjqt1.js';
23
- export { ButtonDropdown, ButtonNavigator, ItemDropdown, getCalendarDays, getWeekEventSegments, isSameDate, isToday, parseLocalDate, toDateOnly } from './components/calendar/index.js';
24
- import 'react';
25
- import 'class-variance-authority/types';
26
- import 'class-variance-authority';
27
- import 'react/jsx-runtime';
28
- import '@radix-ui/react-collapsible';
29
- import '@radix-ui/react-dialog';
30
- import '@radix-ui/react-tooltip';
31
- import './type-Df0GlNrz.js';
32
- import '@radix-ui/react-dropdown-menu';
33
- import './type-C_qxMk54.js';
34
- import './components/button/index.js';
35
1
 
36
- declare function useCopy(): {
37
- copy: (text: string) => Promise<void>;
38
- copied: boolean;
39
- };
40
-
41
- declare function useIsMobile(): boolean;
42
-
43
- export { useCopy, useIsMobile };
2
+ export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herca/r-kit",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "description": "UI Kit untuk pengembangan adplikasi internal HerCa.",
5
5
  "keywords": [
6
6
  "React",