@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 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Breadcrumbs/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAiB,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAKvE,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE7D,eAAO,MAAM,kBAAkB;aAA4B,SAAS,GAAG,OAAO;UAAQ,cAAc;EAGlG,CAAC;AAEH,UAAU,gBAAgB;IACxB,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC9B,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AASD,QAAA,MAAM,WAAW;8DAAsF,gBAAgB;;;CAwBtH,CAAC;AAKF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -1,41 +0,0 @@
1
- import { type FC, type PropsWithChildren, type ReactNode, type RefAttributes } from 'react';
2
- import { type ToggleButtonGroupProps, type ToggleButtonProps } from 'react-aria-components';
3
- export declare const styles: {
4
- common: {
5
- root: string;
6
- icon: string;
7
- };
8
- sizes: {
9
- sm: {
10
- root: string;
11
- icon: string;
12
- };
13
- md: {
14
- root: string;
15
- icon: string;
16
- };
17
- lg: {
18
- root: string;
19
- icon: string;
20
- };
21
- };
22
- };
23
- type ButtonSize = keyof typeof styles.sizes;
24
- interface ButtonGroupItemProps extends ToggleButtonProps, RefAttributes<HTMLButtonElement> {
25
- iconLeading?: FC<{
26
- className?: string;
27
- }> | ReactNode;
28
- iconTrailing?: FC<{
29
- className?: string;
30
- }> | ReactNode;
31
- onClick?: () => void;
32
- className?: string;
33
- }
34
- export declare const ButtonGroupItem: ({ iconLeading: IconLeading, iconTrailing: IconTrailing, children, className, ...otherProps }: PropsWithChildren<ButtonGroupItemProps>) => import("react").JSX.Element;
35
- interface ButtonGroupProps extends Omit<ToggleButtonGroupProps, 'orientation'>, RefAttributes<HTMLDivElement> {
36
- size?: ButtonSize;
37
- className?: string;
38
- }
39
- export declare const ButtonGroup: ({ children, size, className, ...otherProps }: ButtonGroupProps) => import("react").JSX.Element;
40
- export {};
41
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/ButtonGroup/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAiB,KAAK,EAAE,EAAkB,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,KAAK,aAAa,EAAc,MAAM,OAAO,CAAC;AACvI,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AAE/B,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;CA4BjB,CAAC;AAEH,KAAK,UAAU,GAAG,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC;AAI5C,UAAU,oBAAqB,SAAQ,iBAAiB,EAAE,aAAa,CAAC,iBAAiB,CAAC;IACxF,WAAW,CAAC,EAAE,EAAE,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,SAAS,CAAC;IACrD,YAAY,CAAC,EAAE,EAAE,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,SAAS,CAAC;IACtD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,GAAI,8FAM7B,iBAAiB,CAAC,oBAAoB,CAAC,gCA2BzC,CAAC;AAEF,UAAU,gBAAiB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,aAAa,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC;IAC3G,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,GAAI,8CAAqD,gBAAgB,gCAYhG,CAAC"}
@@ -1,35 +0,0 @@
1
- import { type FC, type RefAttributes } from 'react';
2
- import type { ButtonProps as AriaButtonProps, MenuItemProps as AriaMenuItemProps, MenuProps as AriaMenuProps, PopoverProps as AriaPopoverProps, SeparatorProps as AriaSeparatorProps } from 'react-aria-components';
3
- import { MenuTrigger as AriaMenuTrigger } from 'react-aria-components';
4
- interface DropdownItemProps extends AriaMenuItemProps {
5
- /** The label of the item to be displayed. */
6
- label?: string;
7
- /** An addon to be displayed on the right side of the item. */
8
- addon?: string;
9
- /** If true, the item will not have any styles. */
10
- unstyled?: boolean;
11
- /** An icon to be displayed on the left side of the item. */
12
- icon?: FC<{
13
- className?: string;
14
- }>;
15
- /** Avatar URL to be displayed on the left side of the item. */
16
- avatarUrl?: string;
17
- /** The selection indicator to be displayed on the item. */
18
- selectionIndicator?: 'checkmark' | 'checkbox' | 'radio' | 'toggle' | 'none';
19
- }
20
- interface DropdownMenuProps<T extends object> extends AriaMenuProps<T> {
21
- }
22
- interface DropdownPopoverProps extends AriaPopoverProps {
23
- }
24
- export declare const Dropdown: {
25
- Root: typeof AriaMenuTrigger;
26
- Popover: (props: DropdownPopoverProps) => import("react").JSX.Element;
27
- Menu: <T extends object>(props: DropdownMenuProps<T>) => import("react").JSX.Element;
28
- Section: <T>(props: import("react-aria-components").MenuSectionProps<T> & React.RefAttributes<HTMLElement>) => import("react").ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
29
- SectionHeader: (props: import("react-aria-components").HeaderProps & React.RefAttributes<HTMLElement>) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
30
- Item: ({ label, children, addon, icon: Icon, avatarUrl, unstyled, selectionIndicator, ...props }: DropdownItemProps) => import("react").JSX.Element;
31
- Separator: (props: AriaSeparatorProps) => import("react").JSX.Element;
32
- DotsButton: (props: AriaButtonProps & RefAttributes<HTMLButtonElement>) => import("react").JSX.Element;
33
- };
34
- export {};
35
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Dropdown/index.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,aAAa,EAAe,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,EACV,WAAW,IAAI,eAAe,EAC9B,aAAa,IAAI,iBAAiB,EAClC,SAAS,IAAI,aAAa,EAC1B,YAAY,IAAI,gBAAgB,EAChC,cAAc,IAAI,kBAAkB,EAErC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,WAAW,IAAI,eAAe,EAG/B,MAAM,uBAAuB,CAAC;AAE/B,UAAU,iBAAkB,SAAQ,iBAAiB;IACnD,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4DAA4D;IAC5D,IAAI,CAAC,EAAE,EAAE,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClC,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2DAA2D;IAC3D,kBAAkB,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;CAC7E;AAoFD,UAAU,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;CAAG;AAazE,UAAU,oBAAqB,SAAQ,gBAAgB;CAAG;AA8C1D,eAAO,MAAM,QAAQ;;qBA5CW,oBAAoB;WAb9B,CAAC,SAAS,MAAM,SAAS,iBAAiB,CAAC,CAAC,CAAC;;;sGApF4D,iBAAiB;uBAsH9G,kBAAkB;wBAIjB,eAAe,GAAG,aAAa,CAAC,iBAAiB,CAAC;CA4BpF,CAAC"}
@@ -1,16 +0,0 @@
1
- import type { RadioGroupProps } from 'react-aria-components';
2
- interface AvatarItemType {
3
- id: string;
4
- name: string;
5
- username: string;
6
- title: string;
7
- avatarUrl: string;
8
- disabled?: boolean;
9
- }
10
- interface RadioGroupAvatarProps extends RadioGroupProps {
11
- size?: 'sm' | 'md';
12
- items: AvatarItemType[];
13
- }
14
- export declare const RadioGroupAvatar: ({ items, size, className, ...props }: RadioGroupAvatarProps) => import("react").JSX.Element;
15
- export {};
16
- //# sourceMappingURL=radio-group-avatar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radio-group-avatar.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/RadioGroup/components/radio-group-avatar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG7D,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,qBAAsB,SAAQ,eAAe;IACrD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB;AAED,eAAO,MAAM,gBAAgB,GAAI,sCAA6C,qBAAqB,gCAuClG,CAAC"}
@@ -1,9 +0,0 @@
1
- import { type RadioGroupProps } from 'react-aria-components';
2
- import type { RadioGroupItemType } from '../radioGroup.types';
3
- interface RadioGroupCheckboxProps extends RadioGroupProps {
4
- size?: 'sm' | 'md';
5
- items: RadioGroupItemType[];
6
- }
7
- export declare const RadioGroupCheckbox: ({ items, size, className, ...props }: RadioGroupCheckboxProps) => import("react").JSX.Element;
8
- export {};
9
- //# sourceMappingURL=radio-group-checkbox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radio-group-checkbox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/RadioGroup/components/radio-group-checkbox.tsx"],"names":[],"mappings":"AAIA,OAAO,EAA0F,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACrJ,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,UAAU,uBAAwB,SAAQ,eAAe;IACvD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,kBAAkB,EAAE,CAAC;CAC7B;AAED,eAAO,MAAM,kBAAkB,GAAI,sCAA6C,uBAAuB,gCA2CtG,CAAC"}
@@ -1,21 +0,0 @@
1
- import type { FC, ReactNode } from 'react';
2
- import type { RadioGroupProps } from 'react-aria-components';
3
- type IconCardItemType = {
4
- value: string;
5
- title: string;
6
- description: string;
7
- secondaryTitle?: string;
8
- disabled?: boolean;
9
- price?: string;
10
- badge?: ReactNode;
11
- icon: FC<{
12
- className?: string;
13
- }>;
14
- };
15
- interface RadioGroupIconCardProps extends RadioGroupProps {
16
- size?: 'sm' | 'md';
17
- items: IconCardItemType[];
18
- }
19
- export declare const RadioGroupIconCard: ({ items, size, className, ...props }: RadioGroupIconCardProps) => import("react").JSX.Element;
20
- export {};
21
- //# sourceMappingURL=radio-group-icon-card.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radio-group-icon-card.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/RadioGroup/components/radio-group-icon-card.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG7D,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,EAAE,EAAE,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClC,CAAC;AAEF,UAAU,uBAAwB,SAAQ,eAAe;IACvD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC3B;AAED,eAAO,MAAM,kBAAkB,GAAI,sCAA6C,uBAAuB,gCAsEtG,CAAC"}
@@ -1,19 +0,0 @@
1
- import type { FC } from 'react';
2
- import type { RadioGroupProps } from 'react-aria-components';
3
- type RadioGroupItemType = {
4
- value: string;
5
- title: string;
6
- disabled?: boolean;
7
- description: string;
8
- secondaryTitle: string;
9
- icon: FC<{
10
- className?: string;
11
- }>;
12
- };
13
- interface RadioGroupIconSimpleProps extends RadioGroupProps {
14
- size?: 'sm' | 'md';
15
- items: RadioGroupItemType[];
16
- }
17
- export declare const RadioGroupIconSimple: ({ items, size, className, ...props }: RadioGroupIconSimpleProps) => import("react").JSX.Element;
18
- export {};
19
- //# sourceMappingURL=radio-group-icon-simple.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radio-group-icon-simple.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/RadioGroup/components/radio-group-icon-simple.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG7D,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,EAAE,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClC,CAAC;AAEF,UAAU,yBAA0B,SAAQ,eAAe;IACzD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,kBAAkB,EAAE,CAAC;CAC7B;AAED,eAAO,MAAM,oBAAoB,GAAI,sCAA6C,yBAAyB,gCA8C1G,CAAC"}
@@ -1,16 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { RadioGroupProps } from 'react-aria-components';
3
- interface PaymentCardItemType {
4
- value: string;
5
- title: string;
6
- description: string;
7
- logo: ReactNode;
8
- disabled?: boolean;
9
- }
10
- interface RadioGroupPaymentIconProps extends RadioGroupProps {
11
- size?: 'sm' | 'md';
12
- items: PaymentCardItemType[];
13
- }
14
- export declare const RadioGroupPaymentIcon: ({ items, size, className, ...props }: RadioGroupPaymentIconProps) => import("react").JSX.Element;
15
- export {};
16
- //# sourceMappingURL=radio-group-payment-icon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radio-group-payment-icon.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/RadioGroup/components/radio-group-payment-icon.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG7D,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,0BAA2B,SAAQ,eAAe;IAC1D,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B;AAED,eAAO,MAAM,qBAAqB,GAAI,sCAA6C,0BAA0B,gCAgD5G,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { RadioGroupProps } from 'react-aria-components';
2
- import type { RadioGroupItemType } from '../radioGroup.types';
3
- interface RadioGroupRadioButtonProps extends RadioGroupProps {
4
- size?: 'sm' | 'md';
5
- items: RadioGroupItemType[];
6
- }
7
- export declare const RadioGroupRadioButton: ({ items, size, className, ...props }: RadioGroupRadioButtonProps) => import("react").JSX.Element;
8
- export {};
9
- //# sourceMappingURL=radio-group-radio-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radio-group-radio-button.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/RadioGroup/components/radio-group-radio-button.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,UAAU,0BAA2B,SAAQ,eAAe;IAC1D,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,kBAAkB,EAAE,CAAC;CAC7B;AAED,eAAO,MAAM,qBAAqB,GAAI,sCAA6C,0BAA0B,gCAwD5G,CAAC"}
@@ -1,7 +0,0 @@
1
- export { RadioGroupAvatar as Avatar } from './components/radio-group-avatar';
2
- export { RadioGroupCheckbox as Checkbox } from './components/radio-group-checkbox';
3
- export { RadioGroupIconCard as IconCard } from './components/radio-group-icon-card';
4
- export { RadioGroupIconSimple as IconSimple } from './components/radio-group-icon-simple';
5
- export { RadioGroupPaymentIcon as PaymentIcon } from './components/radio-group-payment-icon';
6
- export { RadioGroupRadioButton as RadioButton } from './components/radio-group-radio-button';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/RadioGroup/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,kBAAkB,IAAI,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,EAAE,kBAAkB,IAAI,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAAE,oBAAoB,IAAI,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAE,qBAAqB,IAAI,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAC7F,OAAO,EAAE,qBAAqB,IAAI,WAAW,EAAE,MAAM,uCAAuC,CAAC"}
@@ -1,12 +0,0 @@
1
- import type { FC } from 'react';
2
- export type RadioGroupItemType = {
3
- value: string;
4
- title: string;
5
- disabled?: boolean;
6
- description: string;
7
- secondaryTitle: string;
8
- icon: FC<{
9
- className?: string;
10
- }>;
11
- };
12
- //# sourceMappingURL=radioGroup.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radioGroup.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/RadioGroup/radioGroup.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,EAAE,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClC,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { ComponentPropsWithRef } from 'react';
2
- export declare const SectionHeader: {
3
- Root: (props: ComponentPropsWithRef<"div">) => import("react").JSX.Element;
4
- Group: (props: ComponentPropsWithRef<"div">) => import("react").JSX.Element;
5
- Actions: (props: ComponentPropsWithRef<"div">) => import("react").JSX.Element;
6
- Heading: (props: ComponentPropsWithRef<"h2">) => import("react").JSX.Element;
7
- Subheading: (props: ComponentPropsWithRef<"p">) => import("react").JSX.Element;
8
- };
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SectionHeader/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAgCnD,eAAO,MAAM,aAAa;kBA9BQ,qBAAqB,CAAC,KAAK,CAAC;mBAM3B,qBAAqB,CAAC,KAAK,CAAC;qBAM1B,qBAAqB,CAAC,KAAK,CAAC;qBAM5B,qBAAqB,CAAC,IAAI,CAAC;wBAMxB,qBAAqB,CAAC,GAAG,CAAC;CAYjE,CAAC"}
@@ -1,15 +0,0 @@
1
- import type { FC, ReactNode, RefAttributes } from 'react';
2
- import type { ComboBoxProps as AriaComboBoxProps, ListBoxProps as AriaListBoxProps } from 'react-aria-components';
3
- import { type CommonProps, type SelectItemType } from './select-shared';
4
- interface ComboBoxProps extends Omit<AriaComboBoxProps<SelectItemType>, 'children' | 'items'>, RefAttributes<HTMLDivElement>, CommonProps {
5
- shortcut?: boolean;
6
- items?: SelectItemType[];
7
- popoverClassName?: string;
8
- shortcutClassName?: string;
9
- /** Leading icon component displayed before the input. */
10
- icon?: FC | ReactNode;
11
- children: AriaListBoxProps<SelectItemType>['children'];
12
- }
13
- export declare const ComboBox: ({ placeholder, shortcut, size, children, items, shortcutClassName, icon, hideRequiredIndicator, ...otherProps }: ComboBoxProps) => import("react").JSX.Element;
14
- export {};
15
- //# sourceMappingURL=combobox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/Select/components/combobox.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAAE,EAA0C,SAAS,EAAO,aAAa,EAAE,MAAM,OAAO,CAAC;AAEvG,OAAO,KAAK,EAAE,aAAa,IAAI,iBAAiB,EAAgC,YAAY,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAShJ,OAAO,EAAE,KAAK,WAAW,EAAiB,KAAK,cAAc,EAAS,MAAM,iBAAiB,CAAC;AAE9F,UAAU,aAAc,SAAQ,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,EAAE,WAAW;IACvI,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,yDAAyD;IACzD,IAAI,CAAC,EAAE,EAAE,GAAG,SAAS,CAAC;IACtB,QAAQ,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC,UAAU,CAAC,CAAC;CACxD;AAoFD,eAAO,MAAM,QAAQ,GAAI,iHAUtB,aAAa,gCA4Df,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { RefAttributes } from 'react';
2
- import type { PopoverProps as AriaPopoverProps } from 'react-aria-components';
3
- interface PopoverProps extends AriaPopoverProps, RefAttributes<HTMLElement> {
4
- size: 'sm' | 'md' | 'lg';
5
- }
6
- export declare const Popover: (props: PopoverProps) => import("react").JSX.Element;
7
- export {};
8
- //# sourceMappingURL=popover.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/Select/components/popover.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG9E,UAAU,YAAa,SAAQ,gBAAgB,EAAE,aAAa,CAAC,WAAW,CAAC;IACzE,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC1B;AAED,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,gCAyB1C,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { ListBoxItemProps as AriaListBoxItemProps } from 'react-aria-components';
2
- import type { SelectItemType } from './select-shared';
3
- interface SelectItemProps extends Omit<AriaListBoxItemProps<SelectItemType>, 'id'>, SelectItemType {
4
- /** The selection indicator to be displayed on the item. */
5
- selectionIndicator?: 'checkmark' | 'checkbox' | 'none';
6
- /** The alignment of the selection indicator. */
7
- selectionIndicatorAlign?: 'left' | 'right';
8
- }
9
- export declare const SelectItem: ({ label, id, value, avatarUrl, supportingText, isDisabled, icon: Icon, className, children, selectionIndicator, selectionIndicatorAlign, ...props }: SelectItemProps) => import("react").JSX.Element;
10
- export {};
11
- //# sourceMappingURL=select-item.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"select-item.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/Select/components/select-item.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAEtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AA2BtD,UAAU,eAAgB,SAAQ,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,EAAE,cAAc;IAChG,2DAA2D;IAC3D,kBAAkB,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;IACvD,gDAAgD;IAChD,uBAAuB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5C;AAED,eAAO,MAAM,UAAU,GAAI,qJAaxB,eAAe,gCA6EjB,CAAC"}
@@ -1,59 +0,0 @@
1
- import type { FC, ReactNode } from 'react';
2
- export type SelectItemType = {
3
- /** Unique identifier for the item. */
4
- id: string | number;
5
- /** The primary display text. */
6
- label?: string;
7
- /** Avatar image URL. */
8
- avatarUrl?: string;
9
- /** Whether the item is disabled. */
10
- isDisabled?: boolean;
11
- /** Secondary text displayed alongside the label. */
12
- supportingText?: string;
13
- /** Leading icon component or element. */
14
- icon?: FC | ReactNode;
15
- };
16
- export interface CommonProps {
17
- /** Helper text displayed below the input. */
18
- hint?: string;
19
- /** Field label displayed above the input. */
20
- label?: string;
21
- /** Tooltip text for the help icon next to the label. */
22
- tooltip?: string;
23
- /**
24
- * The size of the component.
25
- * @default "md"
26
- */
27
- size?: 'sm' | 'md' | 'lg';
28
- /** Placeholder text when no value is selected. */
29
- placeholder?: string;
30
- /** Whether to hide the required indicator from the label. */
31
- hideRequiredIndicator?: boolean;
32
- }
33
- export declare const sizes: {
34
- sm: {
35
- root: string;
36
- withIcon: string;
37
- text: string;
38
- textContainer: string;
39
- shortcut: string;
40
- };
41
- md: {
42
- root: string;
43
- withIcon: string;
44
- text: string;
45
- textContainer: string;
46
- shortcut: string;
47
- };
48
- lg: {
49
- root: string;
50
- withIcon: string;
51
- text: string;
52
- textContainer: string;
53
- shortcut: string;
54
- };
55
- };
56
- export declare const SelectContext: import("react").Context<{
57
- size: "sm" | "md" | "lg";
58
- }>;
59
- //# sourceMappingURL=select-shared.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"select-shared.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/Select/components/select-shared.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG3C,MAAM,MAAM,cAAc,GAAG;IAC3B,sCAAsC;IACtC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oDAAoD;IACpD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yCAAyC;IACzC,IAAI,CAAC,EAAE,EAAE,GAAG,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6DAA6D;IAC7D,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;CAUjB,CAAC;AAEF,eAAO,MAAM,aAAa;UAAyB,IAAI,GAAG,IAAI,GAAG,IAAI;EAAmB,CAAC"}
@@ -1,19 +0,0 @@
1
- import type { FC, ReactNode, RefAttributes } from 'react';
2
- import type { SelectProps as AriaSelectProps } from 'react-aria-components';
3
- import { ComboBox } from './components/combobox';
4
- import { SelectItem } from './components/select-item';
5
- import { type CommonProps, type SelectItemType } from './components/select-shared';
6
- export { type CommonProps, SelectContext, type SelectItemType, sizes } from './components/select-shared';
7
- export interface SelectProps extends Omit<AriaSelectProps<SelectItemType>, 'children' | 'items'>, RefAttributes<HTMLDivElement>, CommonProps {
8
- items?: SelectItemType[];
9
- popoverClassName?: string;
10
- icon?: FC | ReactNode;
11
- children: ReactNode | ((item: SelectItemType) => ReactNode);
12
- }
13
- declare const Select: ({ placeholder, icon, size, children, items, label, hint, tooltip, hideRequiredIndicator, className, ...rest }: SelectProps) => import("react").JSX.Element;
14
- declare const _Select: typeof Select & {
15
- ComboBox: typeof ComboBox;
16
- Item: typeof SelectItem;
17
- };
18
- export { _Select as Select };
19
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Select/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAO,aAAa,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE5E,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,KAAK,WAAW,EAAiB,KAAK,cAAc,EAAS,MAAM,4BAA4B,CAAC;AAEzG,OAAO,EAAE,KAAK,WAAW,EAAE,aAAa,EAAE,KAAK,cAAc,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAEzG,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,EAAE,WAAW;IAC1I,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,EAAE,GAAG,SAAS,CAAC;IACtB,QAAQ,EAAE,SAAS,GAAG,CAAC,CAAC,IAAI,EAAE,cAAc,KAAK,SAAS,CAAC,CAAC;CAC7D;AAwED,QAAA,MAAM,MAAM,GAAI,+GAYb,WAAW,gCA8Bb,CAAC;AAEF,QAAA,MAAM,OAAO,EAAa,OAAO,MAAM,GAAG;IACxC,QAAQ,EAAE,OAAO,QAAQ,CAAC;IAC1B,IAAI,EAAE,OAAO,UAAU,CAAC;CACzB,CAAC;AAIF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,CAAC"}
@@ -1,24 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- export interface PageHeaderSimpleProps {
3
- /** Page title (rendered as the `h1`). */
4
- title?: string;
5
- /** Supporting text shown beneath the title. */
6
- description?: string;
7
- /**
8
- * Breadcrumb trail shown on desktop — pass a complete `<Breadcrumbs>` element so the
9
- * caller owns the items, divider and `type`. Hidden below the `lg` breakpoint.
10
- */
11
- breadcrumbs?: ReactNode;
12
- /** Mobile "back" link label. When set, a back link replaces the breadcrumbs below `lg`. */
13
- backLabel?: string;
14
- backHref?: string;
15
- /** Action buttons rendered to the right of the title on desktop. */
16
- actions?: ReactNode;
17
- /** Render the search inputs (mobile + desktop). */
18
- showSearch?: boolean;
19
- /** Render the divider beneath the title row. */
20
- withDivider?: boolean;
21
- className?: string;
22
- }
23
- export declare const PageHeaderSimple: ({ title, description, breadcrumbs, backLabel, backHref, actions, showSearch, withDivider, className, }: PageHeaderSimpleProps) => import("react").JSX.Element;
24
- //# sourceMappingURL=page-header-simple.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"page-header-simple.d.ts","sourceRoot":"","sources":["../../../../../../src/components/organisms/PageHeader/components/page-header-simple.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,qBAAqB;IACpC,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,2FAA2F;IAC3F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,mDAAmD;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gDAAgD;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,GAAI,wGAU9B,qBAAqB,gCAiCvB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { PageHeaderSimple as Simple } from './components/page-header-simple';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/PageHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,iCAAiC,CAAC"}
@@ -1,25 +0,0 @@
1
- import type { ReactElement } from 'react';
2
- /**
3
- * Props for the NotFoundPage component.
4
- * @param title - The title of the page. Defaults to "404".
5
- * @param description - The description of the page. Defaults to "The page you were looking for could not be found."
6
- */
7
- export interface NotFoundPageProps {
8
- /** Heading shown above the description. Defaults to "404". */
9
- readonly title?: string;
10
- /** Body copy explaining the error. Defaults to "The page you were looking for could not be found." */
11
- readonly description?: string;
12
- }
13
- /**
14
- * Generic 404 page template used by consuming apps as the fallback route.
15
- *
16
- * Lives under `components/templates/` per the atomic-design folder structure: it composes plain HTML
17
- * elements + Tailwind utilities into a complete page-shaped layout. Consumers (e.g. `App.routes.tsx`)
18
- * wrap this in a `<Route path="*">` and provide localised copy via props.
19
- *
20
- * Doubles as the Tailwind v4 + Option A CSS-isolation smoke test for the property-service MFE —
21
- * if these utility classes render correctly inside `#flipdish-micro-frontend` without polluting
22
- * Portal chrome, the scoping pipeline works end-to-end.
23
- */
24
- export declare const NotFoundPage: ({ title, description, }: NotFoundPageProps) => ReactElement;
25
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/templates/NotFoundPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,8DAA8D;IAC9D,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,sGAAsG;IACtG,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,GAAI,yBAG1B,iBAAiB,KAAG,YAKtB,CAAC"}
@@ -1,43 +0,0 @@
1
- import type { ErrorInfo, ReactNode } from 'react';
2
- export interface PageLayoutProps {
3
- /**
4
- * Stable, human-readable name of the page (e.g. "CollectionSettings"). Tags the
5
- * page-level error boundary so a thrown error can be attributed to a specific page
6
- * in logs/RUM, and is forwarded to `renderError` and `onError`.
7
- */
8
- pageName: string;
9
- /**
10
- * Header region. Compose `<PageHeader.Simple>` (or a feature wrapper around it)
11
- * here. Rendered OUTSIDE the error boundary so page chrome (breadcrumbs, back link)
12
- * stays usable when the content below throws.
13
- */
14
- header?: ReactNode;
15
- /** Page content, rendered INSIDE the error boundary. */
16
- children: ReactNode;
17
- /**
18
- * Replaces the default fallback shown when a child throws. Receives the thrown
19
- * error and `pageName` so consumers can render localised copy.
20
- */
21
- renderError?: (props: {
22
- error: Error;
23
- pageName: string;
24
- }) => ReactNode;
25
- /** Called when a child throws — wire app-level reporting (e.g. Datadog RUM) here. */
26
- onError?: (error: Error, info: ErrorInfo) => void;
27
- /** Extra classes merged onto the root `<main>`. */
28
- className?: string;
29
- }
30
- /**
31
- * Page-shaped template that standardises the MFE's page chrome: the centered `<main>`
32
- * scroll container, an optional header region, and a page-scoped error boundary keyed
33
- * by `pageName`. Consumers drop their page content in as children.
34
- *
35
- * The boundary wraps `children` only, not the header: content (data-fetching, forms,
36
- * dynamic logic) is where throws realistically happen, and keeping the header outside
37
- * means breadcrumbs/back link stay usable so the user can navigate away when content
38
- * fails — strictly better than blanking the whole page. A header throw (rare, since
39
- * it's static chrome) isn't caught here, but the app-level ErrorBoundary higher up the
40
- * tree still catches it; nothing goes unhandled.
41
- */
42
- export declare const PageLayout: ({ pageName, header, children, renderError, onError, className }: PageLayoutProps) => ReactNode;
43
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/templates/PageLayout/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,wDAAwD;IACxD,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,CAAC;IACvE,qFAAqF;IACrF,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IAClD,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAcD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,GAAI,iEAAiE,eAAe,KAAG,SAU7G,CAAC"}
@@ -1,25 +0,0 @@
1
- import { type RefObject } from 'react';
2
- /**
3
- * The options for the useResizeObserver hook.
4
- */
5
- type useResizeObserverOptionsType<T> = {
6
- /**
7
- * The ref to the element to observe.
8
- */
9
- ref: RefObject<T | undefined | null> | undefined;
10
- /**
11
- * The box to observe.
12
- */
13
- box?: ResizeObserverBoxOptions;
14
- /**
15
- * The callback function to call when the size changes.
16
- */
17
- onResize: () => void;
18
- };
19
- /**
20
- * A hook that observes the size of an element and calls a callback function when the size changes.
21
- * @param options - The options for the hook.
22
- */
23
- export declare function useResizeObserver<T extends Element>(options: useResizeObserverOptionsType<T>): void;
24
- export {};
25
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useResizeObserver/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAC;AAUlD;;GAEG;AACH,KAAK,4BAA4B,CAAC,CAAC,IAAI;IACrC;;OAEG;IACH,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;IACjD;;OAEG;IACH,GAAG,CAAC,EAAE,wBAAwB,CAAC;IAC/B;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,OAAO,EAAE,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,QAiC5F"}
@@ -1,32 +0,0 @@
1
- import type { ErrorInfo, ReactNode } from 'react';
2
- export interface ErrorBoundaryProps {
3
- /** Identifies this boundary in error logs/RUM (e.g. a page or feature name). */
4
- identifier: string;
5
- children: ReactNode;
6
- /** Static fallback node. Takes precedence over `somethingWentWrongText`. */
7
- fallback?: ReactNode;
8
- /** Error-aware fallback. Takes precedence over `fallback` and `somethingWentWrongText`. */
9
- renderFallback?: (error: Error) => ReactNode;
10
- /**
11
- * Text for the default centered fallback.
12
- * TODO(i18n): source from ui-library's own translation layer once it exists; until
13
- * then the consumer passes localised copy (defaults to English).
14
- */
15
- somethingWentWrongText?: string;
16
- /** Forwarded after the built-in log — wire app reporting (fdlogger/Datadog) here. */
17
- onError?: (error: Error, info: ErrorInfo) => void;
18
- /** Classes merged onto the default fallback container. */
19
- className?: string;
20
- }
21
- /**
22
- * Thin wrapper around `react-error-boundary` so consuming apps depend on a single
23
- * ui-library seam instead of importing `react-error-boundary` directly. Inspired by
24
- * FlipdishUI's `FDErrorBoundary`, minus the MUI styling and the hardcoded web logger
25
- * (reporting is injected via `onError` to keep the library cross-platform).
26
- *
27
- * Lives under `providers/` (not the visual atomic ladder) because it's a cross-cutting
28
- * behavioural wrapper, not a UI primitive. The boundary logic is RN-safe; the default
29
- * fallback renders a `<div>`, so an `index.native.tsx` sibling is needed before RN use.
30
- */
31
- export declare const ErrorBoundary: ({ identifier, children, fallback, renderFallback, somethingWentWrongText, onError, className, }: ErrorBoundaryProps) => ReactNode;
32
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/ErrorBoundary/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlD,MAAM,WAAW,kBAAkB;IACjC,gFAAgF;IAChF,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,2FAA2F;IAC3F,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,SAAS,CAAC;IAC7C;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,qFAAqF;IACrF,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IAClD,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,GAAI,iGAQ3B,kBAAkB,KAAG,SAoBvB,CAAC"}
@@ -1,22 +0,0 @@
1
- /**
2
- * Merge Tailwind class strings, resolving conflicts (last value wins). Accepts the
3
- * same inputs as tailwind-merge — strings, arrays, and falsy values for
4
- * conditionals — so it composes cleanly:
5
- *
6
- * cx('px-2', isActive && 'bg-primary', ['text-sm', null]);
7
- *
8
- * Pure JS with no DOM dependency, so the same helper works on web (PostCSS) and
9
- * React Native (NativeWind). Imported by components as
10
- * `@flipdish/ui-library/utilities/cx`.
11
- */
12
- export declare const cx: (...classLists: import("tailwind-merge").ClassNameValue[]) => string;
13
- type ClassValue = string | number;
14
- type ClassDefinition = Record<string, ClassValue | Record<string, ClassValue | Record<string, ClassValue>>>;
15
- /**
16
- * Identity helper that exists only so Tailwind IntelliSense recognises and sorts
17
- * the class strings held inside style-config objects (e.g. `tailwind-variants`
18
- * slot maps). Returns its argument unchanged.
19
- */
20
- export declare const sortCx: <T extends ClassDefinition>(classes: T) => T;
21
- export {};
22
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utilities/cx/index.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,EAAE,sEAAU,CAAC;AAE1B,KAAK,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAClC,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;AAE5G;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,eAAe,EAAE,SAAS,CAAC,KAAG,CAAY,CAAC"}