@newtonschool/grauity 2.0.3 → 2.1.0-beta.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 (78) hide show
  1. package/dist/css/grauity-icons.scss +422 -438
  2. package/dist/fonts/grauity-icons.eot +0 -0
  3. package/dist/fonts/grauity-icons.ttf +0 -0
  4. package/dist/fonts/grauity-icons.woff +0 -0
  5. package/dist/fonts/grauity-icons.woff2 +0 -0
  6. package/dist/index.d.ts +342 -6
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/main.cjs +1 -1
  9. package/dist/main.cjs.map +1 -1
  10. package/dist/module.mjs +1 -1
  11. package/dist/module.mjs.map +1 -1
  12. package/dist/ui/core/icons/iconTags.d.ts +0 -5
  13. package/dist/ui/core/icons/iconTags.d.ts.map +1 -1
  14. package/dist/ui/core/icons/iconTypes.d.ts +2 -6
  15. package/dist/ui/core/icons/iconTypes.d.ts.map +1 -1
  16. package/dist/ui/elements/DropdownMenu/DropdownMenu.d.ts +5 -0
  17. package/dist/ui/elements/DropdownMenu/DropdownMenu.d.ts.map +1 -0
  18. package/dist/ui/elements/DropdownMenu/DropdownMenu.styles.d.ts +16 -0
  19. package/dist/ui/elements/DropdownMenu/DropdownMenu.styles.d.ts.map +1 -0
  20. package/dist/ui/elements/DropdownMenu/components/DropdownMenuFooter.d.ts +12 -0
  21. package/dist/ui/elements/DropdownMenu/components/DropdownMenuFooter.d.ts.map +1 -0
  22. package/dist/ui/elements/DropdownMenu/components/DropdownMenuHeader.d.ts +11 -0
  23. package/dist/ui/elements/DropdownMenu/components/DropdownMenuHeader.d.ts.map +1 -0
  24. package/dist/ui/elements/DropdownMenu/components/DropdownMenuOption.d.ts +9 -0
  25. package/dist/ui/elements/DropdownMenu/components/DropdownMenuOption.d.ts.map +1 -0
  26. package/dist/ui/elements/DropdownMenu/components/DropdownMenuSubHeader.d.ts +4 -0
  27. package/dist/ui/elements/DropdownMenu/components/DropdownMenuSubHeader.d.ts.map +1 -0
  28. package/dist/ui/elements/DropdownMenu/components/DropdownSearchBox.d.ts +10 -0
  29. package/dist/ui/elements/DropdownMenu/components/DropdownSearchBox.d.ts.map +1 -0
  30. package/dist/ui/elements/DropdownMenu/constants.d.ts +25 -0
  31. package/dist/ui/elements/DropdownMenu/constants.d.ts.map +1 -0
  32. package/dist/ui/elements/DropdownMenu/index.d.ts +3 -0
  33. package/dist/ui/elements/DropdownMenu/index.d.ts.map +1 -0
  34. package/dist/ui/elements/DropdownMenu/types.d.ts +169 -0
  35. package/dist/ui/elements/DropdownMenu/types.d.ts.map +1 -0
  36. package/dist/ui/elements/DropdownMenu/utils.d.ts +21 -0
  37. package/dist/ui/elements/DropdownMenu/utils.d.ts.map +1 -0
  38. package/dist/ui/elements/Form/Dropdown/Dropdown.d.ts +4 -0
  39. package/dist/ui/elements/Form/Dropdown/Dropdown.d.ts.map +1 -0
  40. package/dist/ui/elements/Form/Dropdown/Dropdown.styles.d.ts +4 -0
  41. package/dist/ui/elements/Form/Dropdown/Dropdown.styles.d.ts.map +1 -0
  42. package/dist/ui/elements/Form/Dropdown/DropdownTrigger.d.ts +5 -0
  43. package/dist/ui/elements/Form/Dropdown/DropdownTrigger.d.ts.map +1 -0
  44. package/dist/ui/elements/Form/Dropdown/index.d.ts +3 -0
  45. package/dist/ui/elements/Form/Dropdown/index.d.ts.map +1 -0
  46. package/dist/ui/elements/Form/Dropdown/types.d.ts +47 -0
  47. package/dist/ui/elements/Form/Dropdown/types.d.ts.map +1 -0
  48. package/dist/ui/elements/Form/Dropdown/utils.d.ts +13 -0
  49. package/dist/ui/elements/Form/Dropdown/utils.d.ts.map +1 -0
  50. package/dist/ui/elements/Form/FormRenderer/FormField.d.ts +4 -0
  51. package/dist/ui/elements/Form/FormRenderer/FormField.d.ts.map +1 -0
  52. package/dist/ui/elements/Form/FormRenderer/FormFieldWrappers/CheckboxWrapper.d.ts +4 -0
  53. package/dist/ui/elements/Form/FormRenderer/FormFieldWrappers/CheckboxWrapper.d.ts.map +1 -0
  54. package/dist/ui/elements/Form/FormRenderer/FormFieldWrappers/DropdownWrapper.d.ts +4 -0
  55. package/dist/ui/elements/Form/FormRenderer/FormFieldWrappers/DropdownWrapper.d.ts.map +1 -0
  56. package/dist/ui/elements/Form/FormRenderer/FormFieldWrappers/TextFieldWrapper.d.ts +4 -0
  57. package/dist/ui/elements/Form/FormRenderer/FormFieldWrappers/TextFieldWrapper.d.ts.map +1 -0
  58. package/dist/ui/elements/Form/FormRenderer/FormRenderer.d.ts +4 -0
  59. package/dist/ui/elements/Form/FormRenderer/FormRenderer.d.ts.map +1 -0
  60. package/dist/ui/elements/Form/FormRenderer/index.d.ts +3 -0
  61. package/dist/ui/elements/Form/FormRenderer/index.d.ts.map +1 -0
  62. package/dist/ui/elements/Form/FormRenderer/types.d.ts +146 -0
  63. package/dist/ui/elements/Form/FormRenderer/types.d.ts.map +1 -0
  64. package/dist/ui/elements/Form/FormRenderer/useFormHook.d.ts +4 -0
  65. package/dist/ui/elements/Form/FormRenderer/useFormHook.d.ts.map +1 -0
  66. package/dist/ui/elements/Form/FormRenderer/utils.d.ts +5 -0
  67. package/dist/ui/elements/Form/FormRenderer/utils.d.ts.map +1 -0
  68. package/dist/ui/elements/MultiSelectDropdown/MultiSelectDropdown.d.ts +5 -0
  69. package/dist/ui/elements/MultiSelectDropdown/MultiSelectDropdown.d.ts.map +1 -1
  70. package/dist/ui/elements/MultiSelectDropdown/types.d.ts +5 -0
  71. package/dist/ui/elements/MultiSelectDropdown/types.d.ts.map +1 -1
  72. package/dist/ui/elements/SelectDropdown/SelectDropdown.d.ts +5 -0
  73. package/dist/ui/elements/SelectDropdown/SelectDropdown.d.ts.map +1 -1
  74. package/dist/ui/elements/SelectDropdown/types.d.ts +5 -0
  75. package/dist/ui/elements/SelectDropdown/types.d.ts.map +1 -1
  76. package/dist/ui/index.d.ts +3 -0
  77. package/dist/ui/index.d.ts.map +1 -1
  78. package/package.json +3 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.styles.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Form/Dropdown/Dropdown.styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,cAAc,6NAM1B,CAAC;AAEF,eAAO,MAAM,qBAAqB,maAYjC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { DropdownTriggerInternalProps } from './types';
3
+ declare const DropdownTrigger: React.ForwardRefExoticComponent<DropdownTriggerInternalProps & React.RefAttributes<HTMLDivElement>>;
4
+ export default DropdownTrigger;
5
+ //# sourceMappingURL=DropdownTrigger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownTrigger.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Form/Dropdown/DropdownTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,OAAO,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAEvD,QAAA,MAAM,eAAe,qGAuCnB,CAAC;AAEH,eAAe,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default } from './Dropdown';
2
+ export { type DropdownProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Form/Dropdown/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,47 @@
1
+ import { DropdownMenuProps } from '../../DropdownMenu';
2
+ export interface DropdownTriggerProps {
3
+ /**
4
+ * The name of the dropdown field
5
+ * @required
6
+ */
7
+ name: string;
8
+ /**
9
+ * The label for the dropdown field
10
+ */
11
+ label?: string;
12
+ /**
13
+ * The placeholder text for the dropdown field
14
+ * @default 'Select'
15
+ */
16
+ placeholder?: string;
17
+ /**
18
+ * Whether the dropdown field is required
19
+ * @default false
20
+ */
21
+ isRequired?: boolean;
22
+ /**
23
+ * Whether to disable the dropdown field
24
+
25
+ * @default false
26
+ */
27
+ isDisabled?: boolean;
28
+ /**
29
+ * The help message to display below the dropdown field
30
+ */
31
+ helpMessage?: string;
32
+ /**
33
+ * The error message to display when the dropdown field is invalid
34
+ */
35
+ errorMessage?: string;
36
+ }
37
+ export interface DropdownTriggerInternalProps extends DropdownTriggerProps {
38
+ onTriggerClick: () => void;
39
+ }
40
+ export interface DropdownProps extends DropdownTriggerProps, DropdownMenuProps {
41
+ /**
42
+ * The width of the dropdown menu.
43
+ * @default '100%'
44
+ */
45
+ width?: string;
46
+ }
47
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Form/Dropdown/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,WAAW,oBAAoB;IACjC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;QAII;IACJ,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,4BAA6B,SAAQ,oBAAoB;IACtE,cAAc,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,aAAc,SAAQ,oBAAoB,EAAE,iBAAiB;IAC1E;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ /**
3
+ * Calculates the position for a dropdown menu based on the position of a trigger element.
4
+ *
5
+ * @param triggerRef - A reference to the HTMLDivElement that triggers the dropdown menu.
6
+ * @param menuHeight - The height of the dropdown menu.
7
+ * @returns An object containing the top and left positions for the dropdown menu.
8
+ */
9
+ export declare function calculateDropdownMenuPosition(triggerRef: React.RefObject<HTMLDivElement>, menuHeight: number): {
10
+ top: number;
11
+ left: number;
12
+ };
13
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Form/Dropdown/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CACzC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,EAC3C,UAAU,EAAE,MAAM;;;EASrB"}
@@ -0,0 +1,4 @@
1
+ import { FormFieldProps } from './types';
2
+ declare const FormField: (props: FormFieldProps) => JSX.Element;
3
+ export default FormField;
4
+ //# sourceMappingURL=FormField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Form/FormRenderer/FormField.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAiB,MAAM,SAAS,CAAC;AAExD,QAAA,MAAM,SAAS,UAAW,cAAc,gBA2BvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { FormFieldProps } from '../types';
2
+ declare const CheckboxWrapper: (props: FormFieldProps) => JSX.Element;
3
+ export default CheckboxWrapper;
4
+ //# sourceMappingURL=CheckboxWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxWrapper.d.ts","sourceRoot":"","sources":["../../../../../../ui/elements/Form/FormRenderer/FormFieldWrappers/CheckboxWrapper.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG1C,QAAA,MAAM,eAAe,UAAW,cAAc,gBA6C7C,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { FormFieldProps } from '../types';
2
+ declare const DropdownWrapper: (props: FormFieldProps) => JSX.Element;
3
+ export default DropdownWrapper;
4
+ //# sourceMappingURL=DropdownWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownWrapper.d.ts","sourceRoot":"","sources":["../../../../../../ui/elements/Form/FormRenderer/FormFieldWrappers/DropdownWrapper.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG1C,QAAA,MAAM,eAAe,UAAW,cAAc,gBAyE7C,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { FormFieldProps } from '../types';
2
+ declare const TextFieldWrapper: (props: FormFieldProps) => JSX.Element;
3
+ export default TextFieldWrapper;
4
+ //# sourceMappingURL=TextFieldWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextFieldWrapper.d.ts","sourceRoot":"","sources":["../../../../../../ui/elements/Form/FormRenderer/FormFieldWrappers/TextFieldWrapper.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG1C,QAAA,MAAM,gBAAgB,UAAW,cAAc,gBAkC9C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { FormRendererProps } from './types';
2
+ declare const FormRenderer: (props: FormRendererProps) => JSX.Element;
3
+ export default FormRenderer;
4
+ //# sourceMappingURL=FormRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormRenderer.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Form/FormRenderer/FormRenderer.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAG5C,QAAA,MAAM,YAAY,UAAW,iBAAiB,gBAkC7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { type ConditionalProp, type FormConfig, type FormErrors, type FormField, type FormFieldBaseProps, type FormFieldCheckboxProps, type FormFieldCustomProps, type FormFieldDatePickerProps, type FormFieldDropdownMenuProps, type FormFieldDropdownProps, type FormFieldIconButtonProps, type FormFields, type FormFieldTextFieldProps, FormFieldType, type FormRow, FormRowColumnCondition, type FormState, type UseFormHookProps, type UseFormHookReturnProps, } from './types';
2
+ export { default as useFormHook } from './useFormHook';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Form/FormRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,aAAa,EACb,KAAK,OAAO,EACZ,sBAAsB,EACtB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,GAC9B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,146 @@
1
+ import React from 'react';
2
+ import { Schema } from 'yup';
3
+ import { IconButtonProps } from '../../Button';
4
+ import { CheckboxProps } from '../Checkbox';
5
+ import { DropdownProps } from '../Dropdown';
6
+ import { TextFieldProps } from '../TextField';
7
+ export interface FormState {
8
+ [key: string]: any;
9
+ }
10
+ export interface FormErrors {
11
+ [key: string]: string;
12
+ }
13
+ export declare enum FormFieldType {
14
+ TEXTFIELD = "TEXTFIELD",
15
+ DATE_PICKER = "DATE_PICKER",
16
+ DROPDOWN = "DROPDOWN",
17
+ DROPDOWN_MENU = "DROPDOWN_MENU",
18
+ ICON_BUTTON = "ICON_BUTTON",
19
+ CHECKBOX = "CHECKBOX",
20
+ CUSTOM = "CUSTOM"
21
+ }
22
+ export interface ConditionalProp {
23
+ propName: string;
24
+ propValue: any;
25
+ conditions: Array<{
26
+ prop: string;
27
+ value: any;
28
+ }>;
29
+ }
30
+ export interface FormFieldBaseProps {
31
+ type: FormFieldType;
32
+ renderer?: (props: FormFieldProps) => React.ReactNode;
33
+ rendererProps?: any;
34
+ schema?: Schema;
35
+ configProps?: any;
36
+ conditionalProps?: ConditionalProp[];
37
+ }
38
+ export interface FormFieldTextFieldProps extends FormFieldBaseProps {
39
+ type: FormFieldType.TEXTFIELD;
40
+ rendererProps: TextFieldProps;
41
+ }
42
+ export interface FormFieldDatePickerProps extends FormFieldBaseProps {
43
+ type: FormFieldType.DATE_PICKER;
44
+ rendererProps: TextFieldProps;
45
+ }
46
+ export interface FormFieldDropdownProps extends FormFieldBaseProps {
47
+ type: FormFieldType.DROPDOWN;
48
+ rendererProps: DropdownProps;
49
+ }
50
+ export interface FormFieldDropdownMenuProps extends FormFieldBaseProps {
51
+ type: FormFieldType.DROPDOWN_MENU;
52
+ rendererProps: DropdownProps;
53
+ }
54
+ export interface FormFieldIconButtonProps extends FormFieldBaseProps {
55
+ type: FormFieldType.ICON_BUTTON;
56
+ rendererProps: IconButtonProps;
57
+ }
58
+ export interface FormFieldCheckboxProps extends FormFieldBaseProps {
59
+ type: FormFieldType.CHECKBOX;
60
+ rendererProps: CheckboxProps;
61
+ }
62
+ export interface FormFieldCustomProps extends FormFieldBaseProps {
63
+ type: FormFieldType.CUSTOM;
64
+ rendererProps: any;
65
+ }
66
+ export type FormField = FormFieldTextFieldProps | FormFieldDatePickerProps | FormFieldDropdownProps | FormFieldDropdownMenuProps | FormFieldIconButtonProps | FormFieldCheckboxProps | FormFieldCustomProps;
67
+ export interface FormFields {
68
+ [key: string]: FormField;
69
+ }
70
+ export interface FormRow {
71
+ widths?: string;
72
+ column?: FormRowColumnCondition;
73
+ items?: FormField[];
74
+ }
75
+ export declare enum FormRowColumnCondition {
76
+ ALWAYS_COLUMN = "ALWAYS_COLUMN",
77
+ ALWAYS_ROW = "ALWAYS_ROW",
78
+ COLUMN_ON_MOBILE = "COLUMN_ON_MOBILE"
79
+ }
80
+ export interface FormConfig {
81
+ fields: FormFields;
82
+ initialState: FormState;
83
+ rows: FormRow[];
84
+ }
85
+ export interface UseFormHookProps {
86
+ /**
87
+ * The initial state of the form.
88
+ * @default {}
89
+ */
90
+ initialState?: FormState;
91
+ /**
92
+ * An array of form rows to be rendered.
93
+ * @default []
94
+ */
95
+ formRows?: FormRow[];
96
+ /**
97
+ * CSS properties to style the form rows.
98
+ * @default {}
99
+ */
100
+ rowStyles?: React.CSSProperties;
101
+ /**
102
+ * Flag to indicate if the form is being viewed on a mobile device.
103
+ * @default false
104
+ */
105
+ isMobileView?: boolean;
106
+ }
107
+ export interface UseFormHookReturnProps {
108
+ formData: FormState;
109
+ formRenderer: React.ReactNode;
110
+ validateFields: (fields: FormFields, data: FormState) => any;
111
+ changeFormData: (newData: FormState) => void;
112
+ }
113
+ export interface HandleFormFieldChangeProps {
114
+ name: string;
115
+ value: any;
116
+ }
117
+ export interface FormRendererProps {
118
+ formData?: FormState;
119
+ errors?: FormErrors;
120
+ formRows?: FormRow[];
121
+ rowStyles?: React.CSSProperties;
122
+ handleChange?: (props: HandleFormFieldChangeProps) => void;
123
+ isMobileView?: boolean;
124
+ }
125
+ export interface FormFieldProps {
126
+ formField: FormField;
127
+ error?: string;
128
+ formData: FormState;
129
+ handleChange: (props: HandleFormFieldChangeProps) => void;
130
+ }
131
+ export interface CheckFieldValidationProps {
132
+ field: FormField;
133
+ data: any;
134
+ }
135
+ export interface GetFormRowColumnValueProps {
136
+ column: FormRowColumnCondition;
137
+ isMobileView?: boolean;
138
+ }
139
+ export interface GetConditionalProps {
140
+ formField: FormField;
141
+ formData: FormState;
142
+ }
143
+ export interface GetConditionalPropsReturn {
144
+ [key: string]: any;
145
+ }
146
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Form/FormRenderer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,MAAM,WAAW,SAAS;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AACD,MAAM,WAAW,UAAU;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAGD,oBAAY,aAAa;IACrB,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,MAAM,WAAW;CACpB;AACD,MAAM,WAAW,eAAe;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,GAAG,CAAC;IACf,UAAU,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,GAAG,CAAA;KAAE,CAAC,CAAC;CACnD;AACD,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,KAAK,CAAC,SAAS,CAAC;IACtD,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAA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IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,IAAI,CAAC;CAC7D;AAGD,MAAM,WAAW,yBAAyB;IACtC,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,GAAG,CAAC;CACb;AACD,MAAM,WAAW,0BAA0B;IACvC,MAAM,EAAE,sBAAsB,CAAC;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B;AACD,MAAM,WAAW,mBAAmB;IAChC,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;CACvB;AACD,MAAM,WAAW,yBAAyB;IACtC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB"}
@@ -0,0 +1,4 @@
1
+ import { UseFormHookProps, UseFormHookReturnProps } from './types';
2
+ declare const useFormHook: ({ initialState, formRows, rowStyles, isMobileView, }: UseFormHookProps) => UseFormHookReturnProps;
3
+ export default useFormHook;
4
+ //# sourceMappingURL=useFormHook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFormHook.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Form/FormRenderer/useFormHook.tsx"],"names":[],"mappings":"AAGA,OAAO,EAKH,gBAAgB,EAChB,sBAAsB,EACzB,MAAM,SAAS,CAAC;AAGjB,QAAA,MAAM,WAAW,yDAKd,gBAAgB,KAAG,sBAoDrB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { CheckFieldValidationProps, GetConditionalProps, GetConditionalPropsReturn, GetFormRowColumnValueProps } from './types';
2
+ export declare function checkFieldValidation({ field, data, }: CheckFieldValidationProps): string;
3
+ export declare function getFormRowColumnValue({ column, isMobileView, }: GetFormRowColumnValueProps): boolean;
4
+ export declare function getConditionalProps({ formField, formData, }: GetConditionalProps): GetConditionalPropsReturn;
5
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Form/FormRenderer/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,yBAAyB,EAEzB,mBAAmB,EACnB,yBAAyB,EACzB,0BAA0B,EAC7B,MAAM,SAAS,CAAC;AAEjB,wBAAgB,oBAAoB,CAAC,EACjC,KAAK,EACL,IAAI,GACP,EAAE,yBAAyB,GAAG,MAAM,CAUpC;AAED,wBAAgB,qBAAqB,CAAC,EAClC,MAAM,EACN,YAAoB,GACvB,EAAE,0BAA0B,WAW5B;AAED,wBAAgB,mBAAmB,CAAC,EAChC,SAAS,EACT,QAAQ,GACX,EAAE,mBAAmB,GAAG,yBAAyB,CAqBjD"}
@@ -1,5 +1,10 @@
1
1
  import React from 'react';
2
2
  import { MultiSelectDropdownProps } from './types';
3
+ /**
4
+ * @deprecated This component is deprecated and will be removed in future releases.
5
+ * - Use the `DropdownMenu` component instead.
6
+ * @see {@link https://grauity.newtonschool.co/?path=/docs/elements-dropdownmenu--docs}
7
+ */
3
8
  declare const MultiSelectDropdown: React.ForwardRefExoticComponent<MultiSelectDropdownProps & React.RefAttributes<HTMLSelectElement>>;
4
9
  export default MultiSelectDropdown;
5
10
  //# sourceMappingURL=MultiSelectDropdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MultiSelectDropdown.d.ts","sourceRoot":"","sources":["../../../../ui/elements/MultiSelectDropdown/MultiSelectDropdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAON,MAAM,OAAO,CAAC;AAiBf,OAAO,EAAkB,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEnE,QAAA,MAAM,mBAAmB,oGAqLvB,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"MultiSelectDropdown.d.ts","sourceRoot":"","sources":["../../../../ui/elements/MultiSelectDropdown/MultiSelectDropdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAON,MAAM,OAAO,CAAC;AAiBf,OAAO,EAAkB,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEnE;;;;GAIG;AACH,QAAA,MAAM,mBAAmB,oGAqLvB,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
@@ -4,6 +4,11 @@ export interface DropdownOption {
4
4
  id: string;
5
5
  label: string;
6
6
  }
7
+ /**
8
+ * @deprecated This interface is deprecated and will be removed in future versions.
9
+ * - Use the `DropdownMenu` component instead.
10
+ * @see {@link https://grauity.newtonschool.co/?path=/docs/elements-dropdownmenu--docs}
11
+ */
7
12
  export interface MultiSelectDropdownProps {
8
13
  /**
9
14
  * Text to display when no option is selected.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/MultiSelectDropdown/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACH,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACpB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wBAAwB;IACrC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;;OAGG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAE9B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAE9C;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;I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,KAAK,IAAI,CAAC;IAE9C;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAEzD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACtC;AAED,MAAM,WAAW,qBAAqB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,0BAA2B,SAAQ,iBAAiB;CAAG;AAExE,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB;CAAG;AAEvE,MAAM,WAAW,uBAAwB,SAAQ,cAAc;CAAG;AAElE,MAAM,WAAW,2BAA4B,SAAQ,iBAAiB;CAAG;AAEzE,MAAM,WAAW,8BAA+B,SAAQ,gBAAgB;CAAG;AAE3E,MAAM,WAAW,2BAA4B,SAAQ,cAAc;IAC/D,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB"}
@@ -1,5 +1,10 @@
1
1
  import React from 'react';
2
2
  import { SelectDropdownProps } from './types';
3
+ /**
4
+ * @deprecated This component is deprecated and will be removed in future releases.
5
+ * - Use the `DropdownMenu` component instead.
6
+ * @see {@link https://grauity.newtonschool.co/?path=/docs/elements-dropdownmenu--docs}
7
+ */
3
8
  declare const SelectDropdown: React.ForwardRefExoticComponent<SelectDropdownProps & React.RefAttributes<HTMLSelectElement>>;
4
9
  export default SelectDropdown;
5
10
  //# sourceMappingURL=SelectDropdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectDropdown.d.ts","sourceRoot":"","sources":["../../../../ui/elements/SelectDropdown/SelectDropdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAczE,OAAO,EAAkB,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9D,QAAA,MAAM,cAAc,+FAkGnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"SelectDropdown.d.ts","sourceRoot":"","sources":["../../../../ui/elements/SelectDropdown/SelectDropdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAczE,OAAO,EAAkB,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9D;;;;GAIG;AACH,QAAA,MAAM,cAAc,+FAkGnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -5,6 +5,11 @@ export interface DropdownOption {
5
5
  id: number | string;
6
6
  label: string;
7
7
  }
8
+ /**
9
+ * @deprecated This interface is deprecated and will be removed in future versions.
10
+ * - Use the `DropdownMenu` component instead.
11
+ * @see {@link https://grauity.newtonschool.co/?path=/docs/elements-dropdownmenu--docs}
12
+ */
8
13
  export interface SelectDropdownProps {
9
14
  /**
10
15
  * Set of options available for selection.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/SelectDropdown/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,EACH,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACpB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC,cAA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M,WAAW,mBAAmB;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAE9B;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IAEvB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAE9C;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IAE5C;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEnC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,gCAAiC,SAAQ,iBAAiB;CAAG;AAE9E,MAAM,WAAW,kCAAmC,SAAQ,cAAc;IACtE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,6BAA8B,SAAQ,iBAAiB;IACpE,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,8BAA+B,SAAQ,gBAAgB;CAAG"}
@@ -40,4 +40,7 @@ export { default as NSRadioButton, type RadioButtonProps, } from './elements/For
40
40
  export { default as NSPagination, type PaginationProps, } from './elements/Pagination';
41
41
  export { SuccessMessage as NSSuccessMessage, type SuccessMessageProps, } from './elements/Form/SuccessMessage';
42
42
  export { default as NSOtpInput, type OtpInputFieldProps, } from './elements/Form/OtpInputField';
43
+ export { default as NSDropdownMenu, type BaseItemDividerProps as NSDropdownMenuBaseItemDividerProps, type BaseItemOptionProps as NSDropdownMenuBaseItemOptionProps, type BaseItemProps as NSDropdownMenuBaseItemProps, type BaseItemSubHeaderProps as NSDropdownMenuBaseItemSubHeaderProps, BaseItemType as NSDropdownMenuBaseItemType, type DropdownMenuProps as NSDropdownMenuProps, } from './elements/DropdownMenu';
44
+ export { type DropdownProps, default as NSDropdown, } from './elements/Form/Dropdown';
45
+ export { type ConditionalProp as NSConditionalProp, type FormConfig as NSFormConfig, type FormErrors as NSFormErrors, type FormField as NSFormField, type FormFieldBaseProps as NSFormFieldBaseProps, type FormFieldCheckboxProps as NSFormFieldCheckboxProps, type FormFieldCustomProps as NSFormFieldCustomProps, type FormFieldDatePickerProps as NSFormFieldDatePickerProps, type FormFieldDropdownMenuProps as NSFormFieldDropdownMenuProps, type FormFieldDropdownProps as NSFormFieldDropdownProps, type FormFieldIconButtonProps as NSFormFieldIconButtonProps, type FormFields as NSFormFields, type FormFieldTextFieldProps as NSFormFieldTextFieldProps, FormFieldType as NSFormFieldType, FormRowColumnCondition as NSFormRowColumnCondition, type FormRow as NSFormRowProps, type FormState as NSFormState, type UseFormHookProps as NSUseFormHookProps, type UseFormHookReturnProps as NSUseFormHookReturnProps, useFormHook as useNSFormHook, } from './elements/Form/FormRenderer';
43
46
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC9C,YAAY,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAGrC,OAAO,EACH,WAAW,IAAI,kBAAkB,EACjC,oBAAoB,EACpB,iBAAiB,IAAI,oBAAoB,EACzC,kBAAkB,IAAI,qBAAqB,EAC3C,WAAW,IAAI,aAAa,EAC5B,aAAa,IAAI,eAAe,EAChC,YAAY,IAAI,cAAc,EAC9B,YAAY,IAAI,cAAc,GACjC,MAAM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AY,IAAI,0BAA0B,EAC1C,KAAK,iBAAiB,IAAI,mBAAmB,GAChD,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACH,KAAK,aAAa,EAClB,OAAO,IAAI,UAAU,GACxB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EACH,KAAK,eAAe,IAAI,iBAAiB,EACzC,KAAK,UAAU,IAAI,YAAY,EAC/B,KAAK,UAAU,IAAI,YAAY,EAC/B,KAAK,SAAS,IAAI,WAAW,EAC7B,KAAK,kBAAkB,IAAI,oBAAoB,EAC/C,KAAK,sBAAsB,IAAI,wBAAwB,EACvD,KAAK,oBAAoB,IAAI,sBAAsB,EACnD,KAAK,wBAAwB,IAAI,0BAA0B,EAC3D,KAAK,0BAA0B,IAAI,4BAA4B,EAC/D,KAAK,sBAAsB,IAAI,wBAAwB,EACvD,KAAK,wBAAwB,IAAI,0BAA0B,EAC3D,KAAK,UAAU,IAAI,YAAY,EAC/B,KAAK,uBAAuB,IAAI,yBAAyB,EACzD,aAAa,IAAI,eAAe,EAChC,sBAAsB,IAAI,wBAAwB,EAClD,KAAK,OAAO,IAAI,cAAc,EAC9B,KAAK,SAAS,IAAI,WAAW,EAC7B,KAAK,gBAAgB,IAAI,kBAAkB,EAC3C,KAAK,sBAAsB,IAAI,wBAAwB,EACvD,WAAW,IAAI,aAAa,GAC/B,MAAM,8BAA8B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newtonschool/grauity",
3
- "version": "2.0.3",
3
+ "version": "2.1.0-beta.2",
4
4
  "description": "Design System for Newton School",
5
5
  "keywords": [
6
6
  "Newton School",
@@ -181,7 +181,8 @@
181
181
  "@floating-ui/dom": "^1.6.12",
182
182
  "classnames": "^2.3.2",
183
183
  "framer-motion": "^11.11.1",
184
- "lodash": "^4.17.21"
184
+ "lodash": "^4.17.21",
185
+ "yup": "^1.6.1"
185
186
  },
186
187
  "peerDependencies": {
187
188
  "react": ">=18.2.0",