@flipdish/ui-library 0.2.1 → 0.2.2

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.
Files changed (124) hide show
  1. package/README.md +66 -297
  2. package/dist/hooks/useBreakpoints/index.cjs +39 -0
  3. package/dist/hooks/useBreakpoints/index.cjs.map +1 -0
  4. package/dist/hooks/useBreakpoints/index.d.ts +19 -0
  5. package/dist/hooks/useBreakpoints/index.d.ts.map +1 -0
  6. package/dist/hooks/useBreakpoints/index.js +37 -0
  7. package/dist/hooks/useBreakpoints/index.js.map +1 -0
  8. package/dist/hooks/useClipboard/index.cjs +70 -0
  9. package/dist/hooks/useClipboard/index.cjs.map +1 -0
  10. package/dist/hooks/useClipboard/index.d.ts +29 -0
  11. package/dist/hooks/useClipboard/index.d.ts.map +1 -0
  12. package/dist/hooks/useClipboard/index.js +68 -0
  13. package/dist/hooks/useClipboard/index.js.map +1 -0
  14. package/dist/providers/RouteProvider/index.cjs +16 -0
  15. package/dist/providers/RouteProvider/index.cjs.map +1 -0
  16. package/dist/providers/RouteProvider/index.d.ts +12 -0
  17. package/dist/providers/RouteProvider/index.d.ts.map +1 -0
  18. package/dist/providers/RouteProvider/index.js +14 -0
  19. package/dist/providers/RouteProvider/index.js.map +1 -0
  20. package/dist/providers/ThemeProvider/index.cjs +54 -0
  21. package/dist/providers/ThemeProvider/index.cjs.map +1 -0
  22. package/dist/providers/ThemeProvider/index.d.ts +31 -0
  23. package/dist/providers/ThemeProvider/index.d.ts.map +1 -0
  24. package/dist/providers/ThemeProvider/index.js +51 -0
  25. package/dist/providers/ThemeProvider/index.js.map +1 -0
  26. package/package.json +17 -17
  27. package/dist/src/components/atoms/Avatar/avatar.utils.d.ts +0 -10
  28. package/dist/src/components/atoms/Avatar/avatar.utils.d.ts.map +0 -1
  29. package/dist/src/components/atoms/Avatar/components/avatar-add-button.d.ts +0 -9
  30. package/dist/src/components/atoms/Avatar/components/avatar-add-button.d.ts.map +0 -1
  31. package/dist/src/components/atoms/Avatar/components/avatar-company-icon.d.ts +0 -8
  32. package/dist/src/components/atoms/Avatar/components/avatar-company-icon.d.ts.map +0 -1
  33. package/dist/src/components/atoms/Avatar/components/avatar-count.d.ts +0 -7
  34. package/dist/src/components/atoms/Avatar/components/avatar-count.d.ts.map +0 -1
  35. package/dist/src/components/atoms/Avatar/components/avatar-online-indicator.d.ts +0 -8
  36. package/dist/src/components/atoms/Avatar/components/avatar-online-indicator.d.ts.map +0 -1
  37. package/dist/src/components/atoms/Avatar/components/verified-tick.d.ts +0 -7
  38. package/dist/src/components/atoms/Avatar/components/verified-tick.d.ts.map +0 -1
  39. package/dist/src/components/atoms/Avatar/index.d.ts +0 -65
  40. package/dist/src/components/atoms/Avatar/index.d.ts.map +0 -1
  41. package/dist/src/components/atoms/Badge/badge.types.d.ts +0 -22
  42. package/dist/src/components/atoms/Badge/badge.types.d.ts.map +0 -1
  43. package/dist/src/components/atoms/Badge/index.d.ts +0 -129
  44. package/dist/src/components/atoms/Badge/index.d.ts.map +0 -1
  45. package/dist/src/components/atoms/Button/index.d.ts +0 -111
  46. package/dist/src/components/atoms/Button/index.d.ts.map +0 -1
  47. package/dist/src/components/atoms/Checkbox/index.d.ts +0 -26
  48. package/dist/src/components/atoms/Checkbox/index.d.ts.map +0 -1
  49. package/dist/src/components/atoms/Divider/index.d.ts +0 -17
  50. package/dist/src/components/atoms/Divider/index.d.ts.map +0 -1
  51. package/dist/src/components/atoms/Dot/index.d.ts +0 -5
  52. package/dist/src/components/atoms/Dot/index.d.ts.map +0 -1
  53. package/dist/src/components/atoms/FeaturedIcon/index.d.ts +0 -15
  54. package/dist/src/components/atoms/FeaturedIcon/index.d.ts.map +0 -1
  55. package/dist/src/components/atoms/Input/components/hint-text.d.ts +0 -15
  56. package/dist/src/components/atoms/Input/components/hint-text.d.ts.map +0 -1
  57. package/dist/src/components/atoms/Input/components/label.d.ts +0 -16
  58. package/dist/src/components/atoms/Input/components/label.d.ts.map +0 -1
  59. package/dist/src/components/atoms/Input/index.d.ts +0 -60
  60. package/dist/src/components/atoms/Input/index.d.ts.map +0 -1
  61. package/dist/src/components/atoms/LoadingIndicator/index.d.ts +0 -19
  62. package/dist/src/components/atoms/LoadingIndicator/index.d.ts.map +0 -1
  63. package/dist/src/components/atoms/RadioButton/index.d.ts +0 -33
  64. package/dist/src/components/atoms/RadioButton/index.d.ts.map +0 -1
  65. package/dist/src/components/atoms/Toggle/index.d.ts +0 -21
  66. package/dist/src/components/atoms/Toggle/index.d.ts.map +0 -1
  67. package/dist/src/components/atoms/Tooltip/index.d.ts +0 -30
  68. package/dist/src/components/atoms/Tooltip/index.d.ts.map +0 -1
  69. package/dist/src/components/molecules/Breadcrumbs/components/breadcrumb-account-item.d.ts +0 -13
  70. package/dist/src/components/molecules/Breadcrumbs/components/breadcrumb-account-item.d.ts.map +0 -1
  71. package/dist/src/components/molecules/Breadcrumbs/components/breadcrumb-item.d.ts +0 -19
  72. package/dist/src/components/molecules/Breadcrumbs/components/breadcrumb-item.d.ts.map +0 -1
  73. package/dist/src/components/molecules/Breadcrumbs/index.d.ts +0 -25
  74. package/dist/src/components/molecules/Breadcrumbs/index.d.ts.map +0 -1
  75. package/dist/src/components/molecules/ButtonGroup/index.d.ts +0 -41
  76. package/dist/src/components/molecules/ButtonGroup/index.d.ts.map +0 -1
  77. package/dist/src/components/molecules/Dropdown/index.d.ts +0 -35
  78. package/dist/src/components/molecules/Dropdown/index.d.ts.map +0 -1
  79. package/dist/src/components/molecules/RadioGroup/components/radio-group-avatar.d.ts +0 -16
  80. package/dist/src/components/molecules/RadioGroup/components/radio-group-avatar.d.ts.map +0 -1
  81. package/dist/src/components/molecules/RadioGroup/components/radio-group-checkbox.d.ts +0 -9
  82. package/dist/src/components/molecules/RadioGroup/components/radio-group-checkbox.d.ts.map +0 -1
  83. package/dist/src/components/molecules/RadioGroup/components/radio-group-icon-card.d.ts +0 -21
  84. package/dist/src/components/molecules/RadioGroup/components/radio-group-icon-card.d.ts.map +0 -1
  85. package/dist/src/components/molecules/RadioGroup/components/radio-group-icon-simple.d.ts +0 -19
  86. package/dist/src/components/molecules/RadioGroup/components/radio-group-icon-simple.d.ts.map +0 -1
  87. package/dist/src/components/molecules/RadioGroup/components/radio-group-payment-icon.d.ts +0 -16
  88. package/dist/src/components/molecules/RadioGroup/components/radio-group-payment-icon.d.ts.map +0 -1
  89. package/dist/src/components/molecules/RadioGroup/components/radio-group-radio-button.d.ts +0 -9
  90. package/dist/src/components/molecules/RadioGroup/components/radio-group-radio-button.d.ts.map +0 -1
  91. package/dist/src/components/molecules/RadioGroup/index.d.ts +0 -7
  92. package/dist/src/components/molecules/RadioGroup/index.d.ts.map +0 -1
  93. package/dist/src/components/molecules/RadioGroup/radioGroup.types.d.ts +0 -12
  94. package/dist/src/components/molecules/RadioGroup/radioGroup.types.d.ts.map +0 -1
  95. package/dist/src/components/molecules/SectionHeader/index.d.ts +0 -9
  96. package/dist/src/components/molecules/SectionHeader/index.d.ts.map +0 -1
  97. package/dist/src/components/molecules/Select/components/combobox.d.ts +0 -15
  98. package/dist/src/components/molecules/Select/components/combobox.d.ts.map +0 -1
  99. package/dist/src/components/molecules/Select/components/popover.d.ts +0 -8
  100. package/dist/src/components/molecules/Select/components/popover.d.ts.map +0 -1
  101. package/dist/src/components/molecules/Select/components/select-item.d.ts +0 -11
  102. package/dist/src/components/molecules/Select/components/select-item.d.ts.map +0 -1
  103. package/dist/src/components/molecules/Select/components/select-shared.d.ts +0 -59
  104. package/dist/src/components/molecules/Select/components/select-shared.d.ts.map +0 -1
  105. package/dist/src/components/molecules/Select/index.d.ts +0 -19
  106. package/dist/src/components/molecules/Select/index.d.ts.map +0 -1
  107. package/dist/src/components/organisms/PageHeader/components/page-header-simple.d.ts +0 -24
  108. package/dist/src/components/organisms/PageHeader/components/page-header-simple.d.ts.map +0 -1
  109. package/dist/src/components/organisms/PageHeader/index.d.ts +0 -2
  110. package/dist/src/components/organisms/PageHeader/index.d.ts.map +0 -1
  111. package/dist/src/components/templates/NotFoundPage/index.d.ts +0 -25
  112. package/dist/src/components/templates/NotFoundPage/index.d.ts.map +0 -1
  113. package/dist/src/components/templates/PageLayout/index.d.ts +0 -43
  114. package/dist/src/components/templates/PageLayout/index.d.ts.map +0 -1
  115. package/dist/src/hooks/useResizeObserver/index.d.ts +0 -25
  116. package/dist/src/hooks/useResizeObserver/index.d.ts.map +0 -1
  117. package/dist/src/providers/ErrorBoundary/index.d.ts +0 -32
  118. package/dist/src/providers/ErrorBoundary/index.d.ts.map +0 -1
  119. package/dist/src/utilities/cx/index.d.ts +0 -22
  120. package/dist/src/utilities/cx/index.d.ts.map +0 -1
  121. package/dist/src/utilities/isReactComponent/index.d.ts +0 -24
  122. package/dist/src/utilities/isReactComponent/index.d.ts.map +0 -1
  123. package/dist/src/utilities/renderUtils/index.d.ts +0 -56
  124. package/dist/src/utilities/renderUtils/index.d.ts.map +0 -1
@@ -1,129 +0,0 @@
1
- import type { MouseEventHandler, ReactNode } from 'react';
2
- import type { BadgeColors, BadgeTypes, BadgeTypeToColorMap, FlagTypes, IconComponentType, Sizes } from './badge.types';
3
- export declare const filledColors: Record<BadgeColors, {
4
- root: string;
5
- addon: string;
6
- addonButton: string;
7
- }>;
8
- declare const withPillTypes: {
9
- "pill-color": {
10
- common: string;
11
- styles: Record<BadgeColors, {
12
- root: string;
13
- addon: string;
14
- addonButton: string;
15
- }>;
16
- };
17
- color: {
18
- common: string;
19
- styles: Record<BadgeColors, {
20
- root: string;
21
- addon: string;
22
- addonButton: string;
23
- }>;
24
- };
25
- modern: {
26
- common: string;
27
- styles: {
28
- gray: {
29
- root: string;
30
- addon: string;
31
- addonButton: string;
32
- };
33
- };
34
- };
35
- };
36
- declare const withBadgeTypes: {
37
- "pill-color": {
38
- common: string;
39
- styles: Record<BadgeColors, {
40
- root: string;
41
- addon: string;
42
- addonButton: string;
43
- }>;
44
- };
45
- color: {
46
- common: string;
47
- styles: Record<BadgeColors, {
48
- root: string;
49
- addon: string;
50
- addonButton: string;
51
- }>;
52
- };
53
- modern: {
54
- common: string;
55
- styles: Record<BadgeColors, {
56
- root: string;
57
- addon: string;
58
- }>;
59
- };
60
- };
61
- export type BadgeColor<T extends BadgeTypes> = BadgeTypeToColorMap<typeof withPillTypes>[T];
62
- interface BadgeProps<T extends BadgeTypes> {
63
- type?: T;
64
- size?: Sizes;
65
- color?: BadgeColor<T>;
66
- children: ReactNode;
67
- className?: string;
68
- }
69
- export declare const Badge: <T extends BadgeTypes>(props: BadgeProps<T>) => import("react").JSX.Element;
70
- interface BadgeWithDotProps<T extends BadgeTypes> {
71
- type?: T;
72
- size?: Sizes;
73
- color?: BadgeTypeToColorMap<typeof withBadgeTypes>[T];
74
- className?: string;
75
- children: ReactNode;
76
- }
77
- export declare const BadgeWithDot: <T extends BadgeTypes>(props: BadgeWithDotProps<T>) => import("react").JSX.Element;
78
- interface BadgeWithIconProps<T extends BadgeTypes> {
79
- type?: T;
80
- size?: Sizes;
81
- color?: BadgeTypeToColorMap<typeof withBadgeTypes>[T];
82
- iconLeading?: IconComponentType;
83
- iconTrailing?: IconComponentType;
84
- children: ReactNode;
85
- className?: string;
86
- }
87
- export declare const BadgeWithIcon: <T extends BadgeTypes>(props: BadgeWithIconProps<T>) => import("react").JSX.Element;
88
- interface BadgeWithFlagProps<T extends BadgeTypes> {
89
- type?: T;
90
- size?: Sizes;
91
- flag?: FlagTypes;
92
- color?: BadgeTypeToColorMap<typeof withPillTypes>[T];
93
- children: ReactNode;
94
- }
95
- export declare const BadgeWithFlag: <T extends BadgeTypes>(props: BadgeWithFlagProps<T>) => import("react").JSX.Element;
96
- interface BadgeWithImageProps<T extends BadgeTypes> {
97
- type?: T;
98
- size?: Sizes;
99
- imgSrc: string;
100
- color?: BadgeTypeToColorMap<typeof withPillTypes>[T];
101
- children: ReactNode;
102
- }
103
- export declare const BadgeWithImage: <T extends BadgeTypes>(props: BadgeWithImageProps<T>) => import("react").JSX.Element;
104
- interface BadgeWithButtonProps<T extends BadgeTypes> {
105
- type?: T;
106
- size?: Sizes;
107
- icon?: IconComponentType;
108
- color?: BadgeTypeToColorMap<typeof withPillTypes>[T];
109
- children: ReactNode;
110
- /**
111
- * The label for the button.
112
- */
113
- buttonLabel?: string;
114
- /**
115
- * The click event handler for the button.
116
- */
117
- onButtonClick?: MouseEventHandler<HTMLButtonElement>;
118
- }
119
- export declare const BadgeWithButton: <T extends BadgeTypes>(props: BadgeWithButtonProps<T>) => import("react").JSX.Element;
120
- interface BadgeIconProps<T extends BadgeTypes> {
121
- type?: T;
122
- size?: Sizes;
123
- icon: IconComponentType;
124
- color?: BadgeTypeToColorMap<typeof withPillTypes>[T];
125
- children?: ReactNode;
126
- }
127
- export declare const BadgeIcon: <T extends BadgeTypes>(props: BadgeIconProps<T>) => import("react").JSX.Element;
128
- export {};
129
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Badge/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,mBAAmB,EAAE,SAAS,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGvH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,WAAW,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CA6DlG,CAAC;AAOF,QAAA,MAAM,aAAa;;;;kBApEoC,MAAM;mBAAS,MAAM;yBAAe,MAAM;;;;;;kBAA1C,MAAM;mBAAS,MAAM;yBAAe,MAAM;;;;;;;;;;;;;CAuFhG,CAAC;AAEF,QAAA,MAAM,cAAc;;;;kBAzFmC,MAAM;mBAAS,MAAM;yBAAe,MAAM;;;;;;kBAA1C,MAAM;mBAAS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AED,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,UAAU,EAAE,OAAO,oBAAoB,CAAC,CAAC,CAAC,gCAuCnF,CAAC;AAEF,UAAU,cAAc,CAAC,CAAC,SAAS,UAAU;IAC3C,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,CAAC,EAAE,mBAAmB,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;IACrD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,UAAU,EAAE,OAAO,cAAc,CAAC,CAAC,CAAC,gCA4BvE,CAAC"}
@@ -1,111 +0,0 @@
1
- import type { FC, ReactElement, ReactNode } from 'react';
2
- import type { ButtonProps as AriaButtonProps, LinkProps as AriaLinkProps } from 'react-aria-components';
3
- export declare const styles: {
4
- common: {
5
- root: string;
6
- icon: string;
7
- };
8
- sizes: {
9
- xs: {
10
- root: string;
11
- linkRoot: string;
12
- };
13
- sm: {
14
- root: string;
15
- linkRoot: string;
16
- };
17
- md: {
18
- root: string;
19
- linkRoot: string;
20
- };
21
- lg: {
22
- root: string;
23
- linkRoot: string;
24
- };
25
- xl: {
26
- root: string;
27
- linkRoot: string;
28
- };
29
- };
30
- colors: {
31
- primary: {
32
- root: string;
33
- };
34
- secondary: {
35
- root: string;
36
- };
37
- tertiary: {
38
- root: string;
39
- };
40
- 'link-color': {
41
- root: string;
42
- };
43
- 'link-gray': {
44
- root: string;
45
- };
46
- 'primary-destructive': {
47
- root: string;
48
- };
49
- 'secondary-destructive': {
50
- root: string;
51
- };
52
- 'tertiary-destructive': {
53
- root: string;
54
- };
55
- 'link-destructive': {
56
- root: string;
57
- };
58
- };
59
- };
60
- /**
61
- * Common props shared between button and anchor variants
62
- */
63
- export interface CommonProps {
64
- /** Disables the button and shows a disabled state */
65
- isDisabled?: boolean;
66
- /** Shows a loading spinner and disables the button */
67
- isLoading?: boolean;
68
- /** The size variant of the button */
69
- size?: keyof typeof styles.sizes;
70
- /** The color variant of the button */
71
- color?: keyof typeof styles.colors;
72
- /** Icon component or element to show before the text */
73
- iconLeading?: FC<{
74
- className?: string;
75
- }> | ReactNode;
76
- /** Icon component or element to show after the text */
77
- iconTrailing?: FC<{
78
- className?: string;
79
- }> | ReactNode;
80
- /** Removes horizontal padding from the text content */
81
- noTextPadding?: boolean;
82
- /** When true, keeps the text visible during loading state */
83
- showTextWhileLoading?: boolean;
84
- children?: ReactNode;
85
- className?: string;
86
- }
87
- /**
88
- * Props for the button variant (non-link)
89
- */
90
- export interface ButtonProps extends CommonProps, Omit<AriaButtonProps, 'children' | 'className'> {
91
- }
92
- /**
93
- * Props for the link variant (anchor tag)
94
- */
95
- export interface LinkProps extends CommonProps, Omit<AriaLinkProps, 'children' | 'className'> {
96
- href: NonNullable<AriaLinkProps['href']>;
97
- }
98
- /** Union type of button and link props */
99
- export type Props = ButtonProps | LinkProps;
100
- /**
101
- * Triggers an action or navigates to a destination. Renders as a native
102
- * `<button>` by default, or as an `<a>` when an `href` prop is provided.
103
- * For navigation-only actions, prefer a link styled with one of the `link-*` colors.
104
- *
105
- * @summary action trigger or navigation control
106
- */
107
- export declare const Button: {
108
- (props: LinkProps): ReactElement<LinkProps>;
109
- (props: ButtonProps): ReactElement<ButtonProps>;
110
- };
111
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Button/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGxG,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,KAAK,EAAE,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC;CAsFjD,CAAC"}
@@ -1,26 +0,0 @@
1
- import type { ReactNode, Ref } from 'react';
2
- import { type CheckboxProps as AriaCheckboxProps } from 'react-aria-components';
3
- export interface CheckboxBaseProps {
4
- size?: 'sm' | 'md';
5
- className?: string;
6
- isFocusVisible?: boolean;
7
- isSelected?: boolean;
8
- isDisabled?: boolean;
9
- isIndeterminate?: boolean;
10
- }
11
- export declare const CheckboxBase: {
12
- ({ className, isSelected, isDisabled, isIndeterminate, size, isFocusVisible }: CheckboxBaseProps): import("react").JSX.Element;
13
- displayName: string;
14
- };
15
- interface CheckboxProps extends AriaCheckboxProps {
16
- ref?: Ref<HTMLLabelElement>;
17
- size?: 'sm' | 'md';
18
- label?: ReactNode;
19
- hint?: ReactNode;
20
- }
21
- export declare const Checkbox: {
22
- ({ label, hint, size, className, ...ariaCheckboxProps }: CheckboxProps): import("react").JSX.Element;
23
- displayName: string;
24
- };
25
- export {};
26
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Checkbox/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAA4B,KAAK,aAAa,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1G,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,YAAY;mFAAiG,iBAAiB;;CAwC1I,CAAC;AAGF,UAAU,aAAc,SAAQ,iBAAiB;IAC/C,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAC5B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,eAAO,MAAM,QAAQ;6DAAmE,aAAa;;CAsDpG,CAAC"}
@@ -1,17 +0,0 @@
1
- import type { HTMLAttributes } from 'react';
2
- interface DividerProps extends HTMLAttributes<HTMLHRElement> {
3
- /**
4
- * The axis the divider is drawn along.
5
- * @default "horizontal"
6
- */
7
- orientation?: 'horizontal' | 'vertical';
8
- }
9
- /**
10
- * A thin rule that visually separates content. Renders a 1px line filled with the
11
- * `border-secondary` token, stretching to fill its container on the cross axis.
12
- * Uses a native `<hr>` (implicit `role="separator"`); `border-0` clears Preflight's
13
- * default rule so the line is drawn via background colour instead.
14
- */
15
- export declare const Divider: ({ orientation, className, ...props }: DividerProps) => import("react").JSX.Element;
16
- export {};
17
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Divider/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,UAAU,YAAa,SAAQ,cAAc,CAAC,aAAa,CAAC;IAC1D;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACzC;AAED;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAI,sCAAqD,YAAY,gCAQxF,CAAC"}
@@ -1,5 +0,0 @@
1
- import type { HTMLAttributes } from 'react';
2
- export declare const Dot: ({ size, ...props }: HTMLAttributes<HTMLOrSVGElement> & {
3
- size?: "sm" | "md";
4
- }) => import("react").JSX.Element;
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Dot/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAe5C,eAAO,MAAM,GAAG,GAAI,oBAA2B,cAAc,CAAC,gBAAgB,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;CAAE,gCAOvG,CAAC"}
@@ -1,15 +0,0 @@
1
- import type { FC, ReactNode, Ref } from 'react';
2
- interface FeaturedIconProps {
3
- ref?: Ref<HTMLDivElement>;
4
- children?: ReactNode;
5
- className?: string;
6
- icon?: FC<{
7
- className?: string;
8
- }> | ReactNode;
9
- size?: 'sm' | 'md' | 'lg' | 'xl';
10
- color: 'brand' | 'gray' | 'success' | 'warning' | 'error';
11
- theme?: 'light' | 'gradient' | 'dark' | 'outline' | 'modern' | 'modern-neue';
12
- }
13
- export declare const FeaturedIcon: (props: FeaturedIconProps) => import("react").JSX.Element;
14
- export {};
15
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/FeaturedIcon/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAqHhD,UAAU,iBAAiB;IACzB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,EAAE,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,SAAS,CAAC;IAC9C,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAC1D,KAAK,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAC;CAC9E;AAED,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,gCAwBpD,CAAC"}
@@ -1,15 +0,0 @@
1
- import type { ReactNode, Ref } from 'react';
2
- import type { TextProps as AriaTextProps } from 'react-aria-components';
3
- interface HintTextProps extends AriaTextProps {
4
- /** Indicates that the hint text is an error message. */
5
- isInvalid?: boolean;
6
- ref?: Ref<HTMLElement>;
7
- size?: 'sm' | 'md';
8
- children: ReactNode;
9
- }
10
- export declare const HintText: {
11
- ({ isInvalid, className, size, ...props }: HintTextProps): import("react").JSX.Element;
12
- displayName: string;
13
- };
14
- export {};
15
- //# sourceMappingURL=hint-text.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hint-text.d.ts","sourceRoot":"","sources":["../../../../../../src/components/atoms/Input/components/hint-text.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGxE,UAAU,aAAc,SAAQ,aAAa;IAC3C,wDAAwD;IACxD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;IACvB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,QAAQ;+CAAqD,aAAa;;CAoBtF,CAAC"}
@@ -1,16 +0,0 @@
1
- import type { ReactNode, Ref } from 'react';
2
- import type { LabelProps as AriaLabelProps } from 'react-aria-components';
3
- interface LabelProps extends AriaLabelProps {
4
- children: ReactNode;
5
- isInvalid?: boolean;
6
- isRequired?: boolean;
7
- tooltip?: string;
8
- tooltipDescription?: string;
9
- ref?: Ref<HTMLLabelElement>;
10
- }
11
- export declare const Label: {
12
- ({ isInvalid, isRequired, tooltip, tooltipDescription, className, ...props }: LabelProps): import("react").JSX.Element;
13
- displayName: string;
14
- };
15
- export {};
16
- //# sourceMappingURL=label.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../../../../src/components/atoms/Input/components/label.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG1E,UAAU,UAAW,SAAQ,cAAc;IACzC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC7B;AAED,eAAO,MAAM,KAAK;kFAAiF,UAAU;;CAyC5G,CAAC"}
@@ -1,60 +0,0 @@
1
- import { type ComponentType, type HTMLAttributes, type ReactNode, type Ref } from 'react';
2
- import type { InputProps as AriaInputProps, TextFieldProps as AriaTextFieldProps } from 'react-aria-components';
3
- export { HintText } from './components/hint-text';
4
- export { Label } from './components/label';
5
- export interface InputBaseProps extends Omit<AriaInputProps, 'size'> {
6
- /** Tooltip message on hover. */
7
- tooltip?: string;
8
- /** Whether the input is invalid. */
9
- isInvalid?: boolean;
10
- /** Whether the input is disabled. */
11
- isDisabled?: boolean;
12
- /** Whether the input is required. */
13
- isRequired?: boolean;
14
- /**
15
- * Input size.
16
- * @default "sm"
17
- */
18
- size?: 'sm' | 'md' | 'lg';
19
- /** Placeholder text. */
20
- placeholder?: string;
21
- /** Class name for the icon. */
22
- iconClassName?: string;
23
- /** Class name for the input. */
24
- inputClassName?: string;
25
- /** Class name for the input wrapper. */
26
- wrapperClassName?: string;
27
- /** Class name for the tooltip. */
28
- tooltipClassName?: string;
29
- /** Keyboard shortcut to display. */
30
- shortcut?: string | boolean;
31
- ref?: Ref<HTMLInputElement>;
32
- groupRef?: Ref<HTMLDivElement>;
33
- /** Icon component to display on the left side of the input. */
34
- icon?: ComponentType<HTMLAttributes<HTMLOrSVGElement>>;
35
- }
36
- export declare const InputBase: {
37
- ({ ref, tooltip, shortcut, groupRef, size, isInvalid, isDisabled, isRequired, icon: Icon, placeholder, wrapperClassName, tooltipClassName, inputClassName, iconClassName, type, ...inputProps }: InputBaseProps): import("react").JSX.Element;
38
- displayName: string;
39
- };
40
- interface TextFieldContextProps extends Partial<Pick<InputBaseProps, 'size' | 'wrapperClassName' | 'inputClassName' | 'iconClassName' | 'tooltipClassName'>> {
41
- }
42
- export interface TextFieldProps extends AriaTextFieldProps, TextFieldContextProps {
43
- }
44
- export declare const TextField: {
45
- ({ className, size, inputClassName, wrapperClassName, iconClassName, tooltipClassName, ...props }: TextFieldProps): import("react").JSX.Element;
46
- displayName: string;
47
- };
48
- export interface InputProps extends AriaTextFieldProps, Pick<InputBaseProps, 'ref' | 'placeholder' | 'icon' | 'shortcut' | 'tooltip' | 'groupRef' | 'size' | 'wrapperClassName' | 'inputClassName' | 'iconClassName' | 'tooltipClassName'> {
49
- /** Label text for the input */
50
- label?: string;
51
- /** Helper text displayed below the input */
52
- hint?: ReactNode;
53
- /** Whether to hide required indicator from label */
54
- hideRequiredIndicator?: boolean;
55
- }
56
- export declare const Input: {
57
- ({ size, placeholder, icon: Icon, label, hint, shortcut, hideRequiredIndicator, className, ref, groupRef, tooltip, iconClassName, inputClassName, wrapperClassName, tooltipClassName, type, ...props }: InputProps): import("react").JSX.Element;
58
- displayName: string;
59
- };
60
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Input/index.tsx"],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iBnB,cAAc;;CA8IhB,CAAC;AAIF,UAAU,qBACR,SAAQ,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,kBAAkB,GAAG,gBAAgB,GAAG,eAAe,GAAG,kBAAkB,CAAC,CAAC;CAAG;AAIjI,MAAM,WAAW,cAAe,SAAQ,kBAAkB,EAAE,qBAAqB;CAAG;AAEpF,eAAO,MAAM,SAAS;uGAQnB,cAAc;;CAahB,CAAC;AAIF,MAAM,WAAW,UACf,SAAQ,kBAAkB,EACxB,IAAI,CACF,cAAc,EACZ,KAAK,GACL,aAAa,GACb,MAAM,GACN,UAAU,GACV,SAAS,GACT,UAAU,GACV,MAAM,GACN,kBAAkB,GAClB,gBAAgB,GAChB,eAAe,GACf,kBAAkB,CACrB;IACH,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,oDAAoD;IACpD,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,eAAO,MAAM,KAAK;4MAkBf,UAAU;;CAiCZ,CAAC"}
@@ -1,19 +0,0 @@
1
- interface LoadingIndicatorProps {
2
- /**
3
- * The visual style of the loading indicator.
4
- * @default 'line-simple'
5
- */
6
- type?: 'line-simple' | 'line-spinner' | 'dot-circle';
7
- /**
8
- * The size of the loading indicator.
9
- * @default 'sm'
10
- */
11
- size?: 'sm' | 'md' | 'lg' | 'xl';
12
- /**
13
- * Optional text label displayed below the indicator.
14
- */
15
- label?: string;
16
- }
17
- export declare const LoadingIndicator: ({ type, size, label }: LoadingIndicatorProps) => import("react").JSX.Element;
18
- export {};
19
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/LoadingIndicator/index.tsx"],"names":[],"mappings":"AA2BA,UAAU,qBAAqB;IAC7B;;;OAGG;IACH,IAAI,CAAC,EAAE,aAAa,GAAG,cAAc,GAAG,YAAY,CAAC;IACrD;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,gBAAgB,GAAI,uBAA8C,qBAAqB,gCAiFnG,CAAC"}
@@ -1,33 +0,0 @@
1
- import { type ReactNode, type Ref } from 'react';
2
- import { type RadioGroupProps as AriaRadioGroupProps, type RadioProps as AriaRadioProps } from 'react-aria-components';
3
- export interface RadioGroupContextType {
4
- size?: 'sm' | 'md';
5
- }
6
- export interface RadioButtonBaseProps {
7
- size?: 'sm' | 'md';
8
- className?: string;
9
- isFocusVisible?: boolean;
10
- isSelected?: boolean;
11
- isDisabled?: boolean;
12
- }
13
- export declare const RadioButtonBase: {
14
- ({ className, isFocusVisible, isSelected, isDisabled, size }: RadioButtonBaseProps): import("react").JSX.Element;
15
- displayName: string;
16
- };
17
- interface RadioButtonProps extends AriaRadioProps {
18
- size?: 'sm' | 'md';
19
- label?: ReactNode;
20
- hint?: ReactNode;
21
- ref?: Ref<HTMLLabelElement>;
22
- }
23
- export declare const RadioButton: {
24
- ({ label, hint, className, size, ...ariaRadioProps }: RadioButtonProps): import("react").JSX.Element;
25
- displayName: string;
26
- };
27
- interface RadioGroupProps extends RadioGroupContextType, AriaRadioGroupProps {
28
- children: ReactNode;
29
- className?: string;
30
- }
31
- export declare const RadioGroup: ({ children, className, size, ...props }: RadioGroupProps) => import("react").JSX.Element;
32
- export {};
33
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/RadioButton/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAiB,KAAK,SAAS,EAAE,KAAK,GAAG,EAAc,MAAM,OAAO,CAAC;AAC5E,OAAO,EAGL,KAAK,eAAe,IAAI,mBAAmB,EAC3C,KAAK,UAAU,IAAI,cAAc,EAClC,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACpB;AAID,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,eAAe;kEAAwE,oBAAoB;;CAkBvH,CAAC;AAGF,UAAU,gBAAiB,SAAQ,cAAc;IAC/C,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC7B;AAED,eAAO,MAAM,WAAW;0DAAgE,gBAAgB;;CAyDvG,CAAC;AAGF,UAAU,eAAgB,SAAQ,qBAAqB,EAAE,mBAAmB;IAC1E,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,UAAU,GAAI,yCAAgD,eAAe,gCAQzF,CAAC"}
@@ -1,21 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { SwitchProps as AriaSwitchProps } from 'react-aria-components';
3
- interface ToggleBaseProps {
4
- size?: 'sm' | 'md';
5
- slim?: boolean;
6
- className?: string;
7
- isHovered?: boolean;
8
- isFocusVisible?: boolean;
9
- isSelected?: boolean;
10
- isDisabled?: boolean;
11
- }
12
- export declare const ToggleBase: ({ className, isHovered, isDisabled, isFocusVisible, isSelected, slim, size }: ToggleBaseProps) => import("react").JSX.Element;
13
- interface ToggleProps extends AriaSwitchProps {
14
- size?: 'sm' | 'md';
15
- label?: string;
16
- hint?: ReactNode;
17
- slim?: boolean;
18
- }
19
- export declare const Toggle: ({ label, hint, className, size, slim, ...ariaSwitchProps }: ToggleProps) => import("react").JSX.Element;
20
- export {};
21
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Toggle/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG5E,UAAU,eAAe;IACvB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,GAAI,8EAAqF,eAAe,gCA0D9H,CAAC;AAiBF,UAAU,WAAY,SAAQ,eAAe;IAC3C,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,MAAM,GAAI,4DAAmE,WAAW,gCAyCpG,CAAC"}
@@ -1,30 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { ButtonProps as AriaButtonProps, TooltipProps as AriaTooltipProps, TooltipTriggerComponentProps as AriaTooltipTriggerComponentProps } from 'react-aria-components';
3
- interface TooltipProps extends AriaTooltipTriggerComponentProps, Omit<AriaTooltipProps, 'children'> {
4
- /**
5
- * The title of the tooltip.
6
- */
7
- title: ReactNode;
8
- /**
9
- * The description of the tooltip.
10
- */
11
- description?: ReactNode;
12
- /**
13
- * Whether to show the arrow on the tooltip.
14
- *
15
- * @default false
16
- */
17
- arrow?: boolean;
18
- /**
19
- * Delay in milliseconds before the tooltip is shown.
20
- *
21
- * @default 300
22
- */
23
- delay?: number;
24
- }
25
- export declare const Tooltip: ({ title, description, children, arrow, delay, closeDelay, trigger, isDisabled, isOpen, defaultOpen, offset, crossOffset, placement, onOpenChange, ...tooltipProps }: TooltipProps) => import("react").JSX.Element;
26
- interface TooltipTriggerProps extends AriaButtonProps {
27
- }
28
- export declare const TooltipTrigger: ({ children, className, ...buttonProps }: TooltipTriggerProps) => import("react").JSX.Element;
29
- export {};
30
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Tooltip/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EACV,WAAW,IAAI,eAAe,EAC9B,YAAY,IAAI,gBAAgB,EAChC,4BAA4B,IAAI,gCAAgC,EACjE,MAAM,uBAAuB,CAAC;AAQ/B,UAAU,YAAa,SAAQ,gCAAgC,EAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC;IACjG;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,OAAO,GAAI,qKAgBrB,YAAY,gCAiDd,CAAC;AAEF,UAAU,mBAAoB,SAAQ,eAAe;CAAG;AAExD,eAAO,MAAM,cAAc,GAAI,yCAAyC,mBAAmB,gCAS1F,CAAC"}
@@ -1,13 +0,0 @@
1
- export interface BreadcrumbAccountItemData {
2
- id: string;
3
- name: string;
4
- email: string;
5
- avatar: string;
6
- }
7
- export interface BreadcrumbAccountItemProps {
8
- items: BreadcrumbAccountItemData[];
9
- selectedKey: string;
10
- onSelectionChange: (key: string) => void;
11
- }
12
- export declare const BreadcrumbAccountItem: ({ items, selectedKey, onSelectionChange }: BreadcrumbAccountItemProps) => import("react").JSX.Element;
13
- //# sourceMappingURL=breadcrumb-account-item.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"breadcrumb-account-item.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/Breadcrumbs/components/breadcrumb-account-item.tsx"],"names":[],"mappings":"AAWA,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,yBAAyB,EAAE,CAAC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AAED,eAAO,MAAM,qBAAqB,GAAI,2CAA2C,0BAA0B,gCA4E1G,CAAC"}
@@ -1,19 +0,0 @@
1
- import { type FC, type ReactNode } from 'react';
2
- import { type BreadcrumbProps as AriaBreadcrumbProps } from 'react-aria-components';
3
- import { type BreadcrumbType } from '../index';
4
- export interface BreadcrumbItemProps extends AriaBreadcrumbProps {
5
- href?: string;
6
- divider?: 'chevron' | 'slash';
7
- type?: BreadcrumbType;
8
- isEllipsis?: boolean;
9
- children?: ReactNode;
10
- className?: string;
11
- icon?: FC<{
12
- className?: string;
13
- }> | ReactNode;
14
- /** Avatar image URL. Renders an avatar-in-ring instead of the default icon + label. */
15
- avatarSrc?: string;
16
- onClick?: () => void;
17
- }
18
- export declare const BreadcrumbItem: ({ href, icon, divider, type, isEllipsis, children, onClick, avatarSrc, className, ...otherProps }: BreadcrumbItemProps) => import("react").JSX.Element;
19
- //# sourceMappingURL=breadcrumb-item.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"breadcrumb-item.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/Breadcrumbs/components/breadcrumb-item.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,EAAkB,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AAC5E,OAAO,EAEL,KAAK,eAAe,IAAI,mBAAmB,EAG5C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AA+DnE,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC9D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,EAAE,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,SAAS,CAAC;IAC9C,uFAAuF;IACvF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,cAAc,GAAI,mGAW5B,mBAAmB,gCA0DrB,CAAC"}
@@ -1,25 +0,0 @@
1
- import React, { type ReactNode } from 'react';
2
- export type BreadcrumbType = 'text' | 'text-line' | 'button';
3
- export declare const BreadcrumbsContext: React.Context<{
4
- divider: "chevron" | "slash";
5
- type: BreadcrumbType;
6
- }>;
7
- interface BreadcrumbsProps {
8
- divider?: 'chevron' | 'slash';
9
- children: ReactNode;
10
- type?: BreadcrumbType;
11
- className?: string;
12
- /**
13
- * The maximum number of visible items. If the number of items
14
- * exceeds this value, the breadcrumbs will collapse into a single
15
- * item with an ellipsis that can be expanded.
16
- */
17
- maxVisibleItems?: number;
18
- }
19
- declare const Breadcrumbs: {
20
- ({ children, divider, type, className, maxVisibleItems }: BreadcrumbsProps): React.JSX.Element;
21
- Item: ({ href, icon, divider, type, isEllipsis, children, onClick, avatarSrc, className, ...otherProps }: import("./components/breadcrumb-item").BreadcrumbItemProps) => React.JSX.Element;
22
- AccountItem: ({ items, selectedKey, onSelectionChange }: import("./components/breadcrumb-account-item").BreadcrumbAccountItemProps) => React.JSX.Element;
23
- };
24
- export { Breadcrumbs };
25
- //# sourceMappingURL=index.d.ts.map