@okam/stack-ui 1.2.0 → 1.4.0

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 (79) hide show
  1. package/{ArrowDown-1712d1b6.js → ArrowDown-54a4e9d3.js} +1 -1
  2. package/{ArrowDown-d43b4162.mjs → ArrowDown-62233deb.mjs} +1 -1
  3. package/{ArrowLeft-f409a840.mjs → ArrowLeft-8c14983f.mjs} +1 -1
  4. package/{ArrowLeft-d3f05521.js → ArrowLeft-ff99e568.js} +1 -1
  5. package/{BrandArrowRight-76384dc5.js → BrandArrowRight-bd396c15.js} +1 -1
  6. package/{BrandArrowRight-49e7e990.mjs → BrandArrowRight-d65c2e5f.mjs} +1 -1
  7. package/{Check-b462d3c7.mjs → Check-205d66a1.mjs} +1 -1
  8. package/{Check-177d024b.js → Check-d5164285.js} +1 -1
  9. package/{ChevronLeft-feef9450.js → ChevronLeft-b0b7cef2.js} +1 -1
  10. package/{ChevronLeft-b7dca00a.mjs → ChevronLeft-db9daad1.mjs} +1 -1
  11. package/{ChevronRight-a4782201.mjs → ChevronRight-3b61d181.mjs} +1 -1
  12. package/{ChevronRight-3a5571da.js → ChevronRight-9d8a2e81.js} +1 -1
  13. package/{CloseBtn-30ee2e13.mjs → CloseBtn-d74d901f.mjs} +1 -1
  14. package/{CloseBtn-3a0ca7e1.js → CloseBtn-e82b3c51.js} +1 -1
  15. package/{Facebook-6591414e.js → Facebook-dc270a7a.js} +1 -1
  16. package/{Facebook-4f8b3a0f.mjs → Facebook-e98c9059.mjs} +1 -1
  17. package/{FacebookColored-347fa465.mjs → FacebookColored-d57ea14a.mjs} +1 -1
  18. package/{FacebookColored-69bc09dc.js → FacebookColored-dfff8ee5.js} +1 -1
  19. package/{Globe-46988aa4.js → Globe-0fcd693d.js} +1 -1
  20. package/{Globe-6bd5fb0a.mjs → Globe-9142e00c.mjs} +1 -1
  21. package/{Instagram-2c7a4948.js → Instagram-716baeb0.js} +1 -1
  22. package/{Instagram-e7ae9f7d.mjs → Instagram-a3a39b40.mjs} +1 -1
  23. package/{InstagramColored-16d3ed77.js → InstagramColored-0134fb49.js} +1 -1
  24. package/{InstagramColored-bd066f21.mjs → InstagramColored-88fda38c.mjs} +1 -1
  25. package/{Link-c8a14eea.js → Link-53ca53dc.js} +1 -1
  26. package/{Link-433cedc8.mjs → Link-6ea3ed2d.mjs} +1 -1
  27. package/{Mail-b28672fa.mjs → Mail-91c52ad0.mjs} +1 -1
  28. package/{Mail-e9297805.js → Mail-cfe23bd7.js} +1 -1
  29. package/{Plus-8726d28e.js → Plus-03ca4a42.js} +1 -1
  30. package/{Plus-b65f9426.mjs → Plus-8bcb07ed.mjs} +1 -1
  31. package/{Share-2518b2a3.mjs → Share-732d8ba5.mjs} +1 -1
  32. package/{Share-6ca93f65.js → Share-a788142f.js} +1 -1
  33. package/{Twitter-731298fb.mjs → Twitter-137e96a6.mjs} +1 -1
  34. package/{Twitter-6498fa22.js → Twitter-6888ab44.js} +1 -1
  35. package/{TwitterColored-51ba5c2e.js → TwitterColored-0f1274ef.js} +1 -1
  36. package/{TwitterColored-d981c380.mjs → TwitterColored-3deaff15.mjs} +1 -1
  37. package/{Upload-a85a4b6a.mjs → Upload-aee8d238.mjs} +1 -1
  38. package/{Upload-302cba06.js → Upload-ea10c854.js} +1 -1
  39. package/{YouTube-4385e2aa.mjs → YouTube-3199edbb.mjs} +1 -1
  40. package/{YouTube-4cbcbfc5.js → YouTube-fc32e491.js} +1 -1
  41. package/{YouTubeColored-9154987c.mjs → YouTubeColored-71f6fbd4.mjs} +1 -1
  42. package/{YouTubeColored-877e6612.js → YouTubeColored-8a760e28.js} +1 -1
  43. package/components/Box/index.d.ts +5 -0
  44. package/components/Box/interface.d.ts +11 -0
  45. package/components/Calendar/components/CalendarCell.d.ts +3 -0
  46. package/components/Calendar/components/CalendarGrid.d.ts +3 -0
  47. package/components/Calendar/index.d.ts +3 -0
  48. package/components/Calendar/interface.d.ts +32 -0
  49. package/components/Date/index.d.ts +3 -0
  50. package/components/Date/interface.d.ts +6 -0
  51. package/components/Dialog/index.d.ts +2 -0
  52. package/components/Dialog/interface.d.ts +6 -0
  53. package/components/Lightbox/interface.d.ts +1 -0
  54. package/components/fields/Checkbox/Checkbox.interface.d.ts +24 -0
  55. package/components/fields/Checkbox/index.d.ts +3 -0
  56. package/components/fields/DatePicker/components/CalendarPopover.d.ts +2 -0
  57. package/components/fields/DatePicker/components/DateField.d.ts +4 -0
  58. package/components/fields/DatePicker/index.d.ts +3 -0
  59. package/components/fields/DatePicker/interface.d.ts +37 -0
  60. package/components/fields/Select/Select.d.ts +4 -0
  61. package/components/fields/Select/Select.interface.d.ts +17 -0
  62. package/components/fields/Select/components/Listbox.d.ts +4 -0
  63. package/components/fields/Select/components/Listbox.interface.d.ts +12 -0
  64. package/components/fields/Select/components/Popover.d.ts +3 -0
  65. package/components/fields/Select/components/Popover.interface.d.ts +12 -0
  66. package/components/fields/TextArea/index.d.ts +3 -0
  67. package/components/fields/TextArea/interface.d.ts +17 -0
  68. package/components/fields/TextInputField/index.d.ts +4 -0
  69. package/components/fields/TextInputField/interface.d.ts +23 -0
  70. package/index-7f55f097.js +30 -0
  71. package/index-b32341b0.mjs +17648 -0
  72. package/index.d.ts +9 -0
  73. package/index.js +1 -1
  74. package/index.mjs +31 -20
  75. package/package.json +1 -1
  76. package/providers/Theme/hooks.d.ts +1 -1
  77. package/providers/Theme/interface.d.ts +1 -1
  78. package/index-95c4948b.js +0 -3
  79. package/index-dbc3a715.mjs +0 -5828
@@ -0,0 +1,12 @@
1
+ import type React from 'react';
2
+ import type { AriaListBoxOptions, AriaOptionProps } from 'react-aria';
3
+ import type { ListState } from 'react-stately';
4
+ import type { TDefaultComponent } from '../../../../types/components';
5
+ export interface TListBoxProps extends AriaListBoxOptions<unknown>, TDefaultComponent {
6
+ listBoxRef?: React.RefObject<any>;
7
+ state: ListState<unknown>;
8
+ }
9
+ export interface TOptionProps extends AriaOptionProps, TDefaultComponent {
10
+ item: any;
11
+ state: ListState<unknown>;
12
+ }
@@ -0,0 +1,3 @@
1
+ import type { TPopoverProps } from './Popover.interface';
2
+ declare const Popover: (props: TPopoverProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Popover;
@@ -0,0 +1,12 @@
1
+ import type React from 'react';
2
+ import type { AriaPopoverProps } from 'react-aria';
3
+ import type { OverlayTriggerState } from 'react-stately';
4
+ import type { TToken } from '../../../../providers/Theme/interface';
5
+ import type { TDefaultComponent } from '../../../../types/components';
6
+ export interface TPopoverProps extends Omit<AriaPopoverProps, 'popoverRef'>, TDefaultComponent {
7
+ children: React.ReactNode;
8
+ state: OverlayTriggerState;
9
+ variant?: string;
10
+ popoverRef?: React.RefObject<HTMLDivElement>;
11
+ tokens: TToken;
12
+ }
@@ -0,0 +1,3 @@
1
+ import type { TTextAreaProps } from './interface';
2
+ declare const TextArea: (props: TTextAreaProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default TextArea;
@@ -0,0 +1,17 @@
1
+ import type { RefCallBack } from 'react-hook-form';
2
+ import type { TDefaultComponent, TReactHookForm } from '../../../types/components';
3
+ export type TFieldReactHookForm = TReactHookForm & TDefaultComponent;
4
+ export interface TTextAreaProps extends TFieldReactHookForm {
5
+ id: string;
6
+ label?: string;
7
+ name: string;
8
+ placeholder?: string;
9
+ required?: boolean;
10
+ disabled?: boolean;
11
+ errorMessage?: string;
12
+ isError?: boolean;
13
+ ariaLabel?: string;
14
+ value?: string;
15
+ fieldRef?: RefCallBack;
16
+ type?: string;
17
+ }
@@ -0,0 +1,4 @@
1
+ import type { TTextInputProps } from './interface';
2
+ declare const TextInputField: (props: TTextInputProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ReactHookFormInput: (props: TTextInputProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default TextInputField;
@@ -0,0 +1,23 @@
1
+ import type React from 'react';
2
+ import type { RefCallBack } from 'react-hook-form';
3
+ import type { TDefaultComponent, TReactHookForm } from '../../../types/components';
4
+ export type TFieldReactHookForm = TReactHookForm & TDefaultComponent;
5
+ export interface TTextInputProps extends TFieldReactHookForm {
6
+ id: string;
7
+ label?: string;
8
+ name: string;
9
+ placeholder?: string;
10
+ required?: boolean;
11
+ disabled?: boolean;
12
+ errorMessage?: string;
13
+ isError?: boolean;
14
+ ariaLabel?: string;
15
+ value?: string;
16
+ fieldRef?: RefCallBack;
17
+ type?: string;
18
+ children?: React.ReactNode;
19
+ }
20
+ export interface TTextInputStyle extends TDefaultComponent {
21
+ isError?: boolean;
22
+ errorMessage?: string;
23
+ }