@arkyn/components 3.0.8 → 3.0.10
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.
- package/dist/components/calendar/_calendarProvider.d.ts.map +1 -1
- package/dist/components/calendar/calendarTableTd/index.d.ts.map +1 -1
- package/dist/components/currencyInput/index.d.ts +1 -1
- package/dist/components/datePicker/datePickerCalendarContainer/index.d.ts +1 -0
- package/dist/components/datePicker/datePickerCalendarContainer/index.d.ts.map +1 -1
- package/dist/components/datePicker/datePickerContainer/index.d.ts +5 -1
- package/dist/components/datePicker/datePickerContainer/index.d.ts.map +1 -1
- package/dist/components/datePicker/index.d.ts.map +1 -1
- package/dist/components/drawer/drawerContainer/index.d.ts.map +1 -1
- package/dist/components/googleAnalytics/snippets/generateGAElements.d.ts.map +1 -1
- package/dist/components/googleTagManager/snippets/appendToDataLayer.d.ts.map +1 -1
- package/dist/components/googleTagManager/snippets/generateGTMElements.d.ts.map +1 -1
- package/dist/components/imageUpload/index.d.ts +1 -1
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/modal/modalContainer/index.d.ts.map +1 -1
- package/dist/components/multiSelect/index.d.ts +1 -1
- package/dist/components/multiSelect/index.d.ts.map +1 -1
- package/dist/components/multiSelect/multiSelectContainer/index.d.ts +6 -1
- package/dist/components/multiSelect/multiSelectContainer/index.d.ts.map +1 -1
- package/dist/components/multiSelect/multiSelectOption/index.d.ts +2 -0
- package/dist/components/multiSelect/multiSelectOption/index.d.ts.map +1 -1
- package/dist/components/multiSelect/multiSelectOptionsContainer/index.d.ts +1 -0
- package/dist/components/multiSelect/multiSelectOptionsContainer/index.d.ts.map +1 -1
- package/dist/components/popover/index.d.ts.map +1 -1
- package/dist/components/richText/index.d.ts +1 -1
- package/dist/components/richText/index.d.ts.map +1 -1
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/index.d.ts.map +1 -1
- package/dist/components/select/selectContainer/index.d.ts +6 -1
- package/dist/components/select/selectContainer/index.d.ts.map +1 -1
- package/dist/components/select/selectOption/index.d.ts +2 -0
- package/dist/components/select/selectOption/index.d.ts.map +1 -1
- package/dist/components/select/selectOptionsContainer/index.d.ts +1 -0
- package/dist/components/select/selectOptionsContainer/index.d.ts.map +1 -1
- package/dist/hooks/useEscapeKey.d.ts +24 -0
- package/dist/hooks/useEscapeKey.d.ts.map +1 -0
- package/dist/hooks/useFlipPosition.d.ts +38 -0
- package/dist/hooks/useFlipPosition.d.ts.map +1 -0
- package/dist/hooks/useFocusTrap.d.ts +28 -0
- package/dist/hooks/useFocusTrap.d.ts.map +1 -0
- package/dist/index.js +1120 -881
- package/dist/index.js.map +1 -1
- package/dist/modules/components/calendar/_calendarProvider.js +47 -34
- package/dist/modules/components/calendar/_calendarProvider.js.map +1 -1
- package/dist/modules/components/calendar/calendarTableTd/index.js +7 -2
- package/dist/modules/components/calendar/calendarTableTd/index.js.map +1 -1
- package/dist/modules/components/calendar/calendarTableTd/styles.css +1 -1
- package/dist/modules/components/calendar/styles.css +2 -2
- package/dist/modules/components/currencyInput/index.js.map +1 -1
- package/dist/modules/components/datePicker/datePickerCalendarContainer/index.js +12 -16
- package/dist/modules/components/datePicker/datePickerCalendarContainer/index.js.map +1 -1
- package/dist/modules/components/datePicker/datePickerContainer/index.js +9 -2
- package/dist/modules/components/datePicker/datePickerContainer/index.js.map +1 -1
- package/dist/modules/components/datePicker/index.js +63 -44
- package/dist/modules/components/datePicker/index.js.map +1 -1
- package/dist/modules/components/datePicker/styles.css +4 -4
- package/dist/modules/components/drawer/drawerContainer/index.js +31 -23
- package/dist/modules/components/drawer/drawerContainer/index.js.map +1 -1
- package/dist/modules/components/facebookPixel/pixel.js +1 -1
- package/dist/modules/components/facebookPixel/pixel.js.map +1 -1
- package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js +7 -6
- package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js.map +1 -1
- package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js +7 -6
- package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js.map +1 -1
- package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js +20 -14
- package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js.map +1 -1
- package/dist/modules/components/imageUpload/index.js.map +1 -1
- package/dist/modules/components/input/index.js.map +1 -1
- package/dist/modules/components/modal/modalContainer/index.js +30 -22
- package/dist/modules/components/modal/modalContainer/index.js.map +1 -1
- package/dist/modules/components/multiSelect/index.js +119 -79
- package/dist/modules/components/multiSelect/index.js.map +1 -1
- package/dist/modules/components/multiSelect/multiSelectContainer/index.js +10 -2
- package/dist/modules/components/multiSelect/multiSelectContainer/index.js.map +1 -1
- package/dist/modules/components/multiSelect/multiSelectOption/index.js +7 -3
- package/dist/modules/components/multiSelect/multiSelectOption/index.js.map +1 -1
- package/dist/modules/components/multiSelect/multiSelectOption/styles.css +1 -1
- package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js +19 -23
- package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js.map +1 -1
- package/dist/modules/components/multiSelect/styles.css +1 -1
- package/dist/modules/components/popover/index.js +23 -17
- package/dist/modules/components/popover/index.js.map +1 -1
- package/dist/modules/components/richText/index.js +1 -1
- package/dist/modules/components/richText/index.js.map +1 -1
- package/dist/modules/components/searchPlaces.js +1 -1
- package/dist/modules/components/searchPlaces.js.map +1 -1
- package/dist/modules/components/select/index.js +120 -80
- package/dist/modules/components/select/index.js.map +1 -1
- package/dist/modules/components/select/selectContainer/index.js +10 -2
- package/dist/modules/components/select/selectContainer/index.js.map +1 -1
- package/dist/modules/components/select/selectOption/index.js +5 -2
- package/dist/modules/components/select/selectOption/index.js.map +1 -1
- package/dist/modules/components/select/selectOption/styles.css +1 -1
- package/dist/modules/components/select/selectOptionsContainer/index.js +18 -23
- package/dist/modules/components/select/selectOptionsContainer/index.js.map +1 -1
- package/dist/modules/components/select/styles.css +1 -1
- package/dist/modules/hooks/useEscapeKey.js +18 -0
- package/dist/modules/hooks/useEscapeKey.js.map +1 -0
- package/dist/modules/hooks/useFlipPosition.js +26 -0
- package/dist/modules/hooks/useFlipPosition.js.map +1 -0
- package/dist/modules/hooks/useFocusTrap.js +44 -0
- package/dist/modules/hooks/useFocusTrap.js.map +1 -0
- package/dist/modules/utils/escapeForInlineScript.js +14 -0
- package/dist/modules/utils/escapeForInlineScript.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/utils/escapeForInlineScript.d.ts +23 -0
- package/dist/utils/escapeForInlineScript.d.ts.map +1 -0
- package/package.json +16 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_calendarProvider.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/_calendarProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"_calendarProvider.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/_calendarProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,SAAS,EAKd,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,KAAK,cAAc,EAAe,MAAM,gBAAgB,CAAC;AAElE,KAAK,oBAAoB,GAAG;IAC3B,SAAS,EAAE,IAAI,EAAE,CAAC;IAClB,QAAQ,EAAE,IAAI,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC/C,SAAS,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC9C,UAAU,EAAE,cAAc,CAAC;IAC3B,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EA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D,iBAAS,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,+BA6HrD;AAED,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/calendar/calendarTableTd/index.tsx"],"names":[],"mappings":"AACA,OAAO,cAAc,CAAC;AAEtB,KAAK,oBAAoB,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,YAAY,GAAG,WAAW,GAAG,cAAc,CAAC;IACrD,QAAQ,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;CAC1C,CAAC;AAEF,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/calendar/calendarTableTd/index.tsx"],"names":[],"mappings":"AACA,OAAO,cAAc,CAAC;AAEtB,KAAK,oBAAoB,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,YAAY,GAAG,WAAW,GAAG,cAAc,CAAC;IACrD,QAAQ,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;CAC1C,CAAC;AAEF,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,+BAgCnD;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -83,7 +83,7 @@ type CurrencyInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "
|
|
|
83
83
|
* @param props.leftIcon - Lucide icon inside the input on the left.
|
|
84
84
|
* @param props.rightIcon - Lucide icon inside the input on the right.
|
|
85
85
|
* @param props.showAsterisk - Appends `*` to the label.
|
|
86
|
-
* @param props.orientation - Layout direction. Default: "
|
|
86
|
+
* @param props.orientation - Layout direction. Default: "vertical"
|
|
87
87
|
* @param props.unShowFieldTemplate - Skips wrapper, label, and error rendering. Default: false
|
|
88
88
|
*
|
|
89
89
|
* **...Other valid HTML properties for `<input>` (except `type`, `max`, `value`, `defaultValue`, `onChange`, `placeholder`)**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/datePicker/datePickerCalendarContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/datePicker/datePickerCalendarContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAK/C,OAAO,cAAc,CAAC;AAEtB,KAAK,gCAAgC,GAAG;IACvC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,iBAAS,2BAA2B,CAAC,KAAK,EAAE,gCAAgC,sCAqB3E;AAED,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
1
|
+
import type { KeyboardEvent, ReactNode, RefObject } from "react";
|
|
2
2
|
import "./styles.css";
|
|
3
3
|
type DatePickerContainerProps = {
|
|
4
4
|
children: ReactNode;
|
|
@@ -13,6 +13,10 @@ type DatePickerContainerProps = {
|
|
|
13
13
|
id: string;
|
|
14
14
|
variant: "solid" | "outline" | "underline";
|
|
15
15
|
size: "md" | "lg";
|
|
16
|
+
containerRef?: RefObject<HTMLDivElement | null>;
|
|
17
|
+
onContainerKeyDown?: (e: KeyboardEvent<HTMLDivElement>) => void;
|
|
18
|
+
tabIndex?: number;
|
|
19
|
+
ariaControls?: string;
|
|
16
20
|
};
|
|
17
21
|
declare function DatePickerContainer(props: DatePickerContainerProps): import("react").JSX.Element;
|
|
18
22
|
export { DatePickerContainer };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/datePicker/datePickerContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/datePicker/datePickerContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,cAAc,CAAC;AAEtB,KAAK,wBAAwB,GAAG;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;IAC3C,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,YAAY,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAChD,kBAAkB,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,iBAAS,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,+BAyC3D;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/datePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/datePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EACN,KAAK,UAAU,EAKf,MAAM,OAAO,CAAC;AAwBf,KAAK,mBAAmB,GAAG;IAC1B,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,wDAAwD;IACxD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,oEAAoE;IACpE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wFAAwF;IACxF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,uDAAuD;IACvD,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACjD;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;IAC5C,2EAA2E;IAC3E,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I,CAAC;IACxB,kEAAkE;IAClE,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACpC,oEAAoE;IACpE,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,KAAK,eAAe,GAAG,qBAAqB,GAAG,oBAAoB,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,iBAAS,UAAU,CAAC,KAAK,EAAE,eAAe,+BA8PzC;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawerContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawerContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,cAAc,EAInB,MAAM,OAAO,CAAC;AAMf,OAAO,cAAc,CAAC;AAEtB,KAAK,oBAAoB,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG;IACzD,8CAA8C;IAC9C,SAAS,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,sCAoEnD;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateGAElements.d.ts","sourceRoot":"","sources":["../../../../src/components/googleAnalytics/snippets/generateGAElements.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generateGAElements.d.ts","sourceRoot":"","sources":["../../../../src/components/googleAnalytics/snippets/generateGAElements.ts"],"names":[],"mappings":"AAEA,KAAK,uBAAuB,GAAG;IAC9B,aAAa,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,iBAAS,kBAAkB,CAAC,KAAK,EAAE,uBAAuB;;;EAkBzD;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appendToDataLayer.d.ts","sourceRoot":"","sources":["../../../../src/components/googleTagManager/snippets/appendToDataLayer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"appendToDataLayer.d.ts","sourceRoot":"","sources":["../../../../src/components/googleTagManager/snippets/appendToDataLayer.ts"],"names":[],"mappings":"AAKA,KAAK,iBAAiB,GAAG;IACxB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,aAAa,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,iBAAS,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,UAgBlD;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateGTMElements.d.ts","sourceRoot":"","sources":["../../../../src/components/googleTagManager/snippets/generateGTMElements.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generateGTMElements.d.ts","sourceRoot":"","sources":["../../../../src/components/googleTagManager/snippets/generateGTMElements.ts"],"names":[],"mappings":"AAMA,KAAK,wBAAwB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAWF,iBAAS,mBAAmB,CAAC,KAAK,EAAE,wBAAwB;;;;EAoC3D;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -56,7 +56,7 @@ type ImageUploadProps = {
|
|
|
56
56
|
* @param props.fileName - Form-data field name for the file. Default: "file"
|
|
57
57
|
* @param props.fileResponseName - Server response property containing the URL. Default: "url"
|
|
58
58
|
* @param props.onChange - Callback fired after a successful upload, receives the image URL.
|
|
59
|
-
* @param props.orientation - Layout direction. Default: "
|
|
59
|
+
* @param props.orientation - Layout direction. Default: "vertical"
|
|
60
60
|
* @param props.unShowFieldTemplate - Skips wrapper, label, and error rendering. Default: false
|
|
61
61
|
*
|
|
62
62
|
* @returns ImageUpload JSX element wrapped in `FieldTemplate`.
|
|
@@ -61,7 +61,7 @@ type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "prefix"
|
|
|
61
61
|
* @param props.leftIcon - Lucide icon inside the input on the left.
|
|
62
62
|
* @param props.rightIcon - Lucide icon inside the input on the right.
|
|
63
63
|
* @param props.showAsterisk - Appends `*` to the label.
|
|
64
|
-
* @param props.orientation - Layout direction (`horizontal` | `vertical` | `horizontalReverse`). Default: "
|
|
64
|
+
* @param props.orientation - Layout direction (`horizontal` | `vertical` | `horizontalReverse`). Default: "vertical"
|
|
65
65
|
* @param props.unShowFieldTemplate - Skips wrapper, label, and error rendering. Default: false
|
|
66
66
|
*
|
|
67
67
|
* **...Other valid HTML properties for `<input>`**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/modal/modalContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/modal/modalContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,cAAc,EAInB,MAAM,OAAO,CAAC;AAMf,OAAO,cAAc,CAAC;AAEtB,KAAK,mBAAmB,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG;IACxD,6CAA6C;IAC7C,SAAS,EAAE,OAAO,CAAC;IACnB,6DAA6D;IAC7D,aAAa,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,iBAAS,cAAc,CAAC,IAAI,EAAE,mBAAmB,sCAkEhD;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -91,7 +91,7 @@ type MultiSelectProps = {
|
|
|
91
91
|
* @param props.onSearch - Callback fired when the search query changes.
|
|
92
92
|
* @param props.size - MultiSelect size (`md` | `lg`). Default: "md"
|
|
93
93
|
* @param props.variant - Visual style variant. Default: "solid"
|
|
94
|
-
* @param props.orientation - Layout direction. Default: "
|
|
94
|
+
* @param props.orientation - Layout direction. Default: "vertical"
|
|
95
95
|
* @param props.unShowFieldTemplate - Skips wrapper, label, and error rendering. Default: false
|
|
96
96
|
*
|
|
97
97
|
* @returns MultiSelect JSX element wrapped in `FieldTemplate`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/multiSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/multiSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EACN,KAAK,UAAU,EAKf,MAAM,OAAO,CAAC;AAef,KAAK,gBAAgB,GAAG;IACvB,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,wDAAwD;IACxD,EAAE,CAAC,EAAE,MAAM,CA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AQ,CAAC,EAAE,UAAU,CAAC;IACtB,sDAAsD;IACtD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sFAAsF;IACtF,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,mBAAmB,CAAC;CAC9D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AAEH,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BAkQ3C;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
1
|
+
import type { KeyboardEvent, ReactNode, RefObject } from "react";
|
|
2
2
|
import "./styles.css";
|
|
3
3
|
type MultiSelectContainerProps = {
|
|
4
4
|
children: ReactNode;
|
|
@@ -13,6 +13,11 @@ type MultiSelectContainerProps = {
|
|
|
13
13
|
id: string;
|
|
14
14
|
variant: "solid" | "outline" | "underline";
|
|
15
15
|
size: "md" | "lg";
|
|
16
|
+
containerRef?: RefObject<HTMLDivElement | null>;
|
|
17
|
+
onContainerKeyDown?: (e: KeyboardEvent<HTMLDivElement>) => void;
|
|
18
|
+
tabIndex?: number;
|
|
19
|
+
ariaControls?: string;
|
|
20
|
+
ariaActiveDescendant?: string;
|
|
16
21
|
};
|
|
17
22
|
declare function MultiSelectContainer(props: MultiSelectContainerProps): import("react").JSX.Element;
|
|
18
23
|
export { MultiSelectContainer };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/multiSelect/multiSelectContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/multiSelect/multiSelectContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,cAAc,CAAC;AAEtB,KAAK,yBAAyB,GAAG;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;IAC3C,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,YAAY,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAChD,kBAAkB,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,iBAAS,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,+BA2C7D;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/multiSelect/multiSelectOption/index.tsx"],"names":[],"mappings":"AACA,OAAO,cAAc,CAAC;AAEtB,KAAK,sBAAsB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C,CAAC;AAEF,iBAAS,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/multiSelect/multiSelectOption/index.tsx"],"names":[],"mappings":"AACA,OAAO,cAAc,CAAC;AAEtB,KAAK,sBAAsB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C,CAAC;AAEF,iBAAS,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BA4BvD;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/multiSelect/multiSelectOptionsContainer/index.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/multiSelect/multiSelectOptionsContainer/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAMjE,OAAO,cAAc,CAAC;AAEtB,KAAK,gCAAgC,GAAG;IACvC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC,CAAC;AAEF,iBAAS,2BAA2B,CAAC,KAAK,EAAE,gCAAgC,sCAqC3E;AAED,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/popover/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/popover/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAoB,MAAM,OAAO,CAAC;AAKzD,OAAO,cAAc,CAAC;AAEtB,KAAK,gBAAgB,GAClB,YAAY,GACZ,aAAa,GACb,SAAS,GACT,UAAU,GACV,KAAK,GACL,MAAM,GACN,QAAQ,GACR,OAAO,CAAC;AAEX,KAAK,YAAY,GAAG;IACnB,4DAA4D;IAC5D,QAAQ,EAAE,SAAS,CAAC;IACpB,gEAAgE;IAChE,MAAM,EAAE,SAAS,CAAC;IAClB,6EAA6E;IAC7E,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH,iBAAS,OAAO,CAAC,KAAK,EAAE,YAAY,+BA2CnC;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -24,7 +24,7 @@ import "./styles.css";
|
|
|
24
24
|
* @param props.isError - Forces the error visual state.
|
|
25
25
|
* @param props.id - Custom id for the editable area element.
|
|
26
26
|
* @param props.showAsterisk - Appends `*` to the label.
|
|
27
|
-
* @param props.orientation - Layout direction. Default: "
|
|
27
|
+
* @param props.orientation - Layout direction. Default: "vertical"
|
|
28
28
|
* @param props.unShowFieldTemplate - Skips wrapper, label, and error rendering. Default: false
|
|
29
29
|
*
|
|
30
30
|
* @returns RichText JSX element wrapped in `FieldTemplate`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/richText/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAEX,aAAa,EACb,MAAM,2BAA2B,CAAC;AASnC,OAAO,cAAc,CAAC;AAEtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AAEH,iBAAS,QAAQ,CAAC,KAAK,EAAE,aAAa,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/richText/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAEX,aAAa,EACb,MAAM,2BAA2B,CAAC;AASnC,OAAO,cAAc,CAAC;AAEtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AAEH,iBAAS,QAAQ,CAAC,KAAK,EAAE,aAAa,+BA0MrC;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -90,7 +90,7 @@ type SelectProps = {
|
|
|
90
90
|
* @param props.onSearch - Callback fired when the search query changes.
|
|
91
91
|
* @param props.size - Select size (`md` | `lg`). Default: "md"
|
|
92
92
|
* @param props.variant - Visual style variant. Default: "solid"
|
|
93
|
-
* @param props.orientation - Layout direction. Default: "
|
|
93
|
+
* @param props.orientation - Layout direction. Default: "vertical"
|
|
94
94
|
* @param props.unShowFieldTemplate - Skips wrapper, label, and error rendering. Default: false
|
|
95
95
|
*
|
|
96
96
|
* @returns Select JSX element wrapped in `FieldTemplate`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/select/index.tsx"],"names":[],"mappings":"AAAA,OA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AsD;IACtD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,kDAAkD;IAClD,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACjD;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;IAC5C,sEAAsE;IACtE,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAC7B,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,sDAAsD;IACtD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sFAAsF;IACtF,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,mBAAmB,CAAC;CAC9D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AAEH,iBAAS,MAAM,CAAC,KAAK,EAAE,WAAW,+BA2PjC;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
1
|
+
import type { KeyboardEvent, ReactNode, RefObject } from "react";
|
|
2
2
|
import "./styles.css";
|
|
3
3
|
type SelectContainerProps = {
|
|
4
4
|
children: ReactNode;
|
|
@@ -13,6 +13,11 @@ type SelectContainerProps = {
|
|
|
13
13
|
id: string;
|
|
14
14
|
variant: "solid" | "outline" | "underline";
|
|
15
15
|
size: "md" | "lg";
|
|
16
|
+
containerRef?: RefObject<HTMLDivElement | null>;
|
|
17
|
+
onContainerKeyDown?: (e: KeyboardEvent<HTMLDivElement>) => void;
|
|
18
|
+
tabIndex?: number;
|
|
19
|
+
ariaControls?: string;
|
|
20
|
+
ariaActiveDescendant?: string;
|
|
16
21
|
};
|
|
17
22
|
declare function SelectContainer(props: SelectContainerProps): import("react").JSX.Element;
|
|
18
23
|
export { SelectContainer };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/select/selectContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/select/selectContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,cAAc,CAAC;AAEtB,KAAK,oBAAoB,GAAG;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;IAC3C,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,YAAY,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAChD,kBAAkB,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,+BA2CnD;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/select/selectOption/index.tsx"],"names":[],"mappings":"AACA,OAAO,cAAc,CAAC;AAEtB,KAAK,iBAAiB,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C,CAAC;AAEF,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/select/selectOption/index.tsx"],"names":[],"mappings":"AACA,OAAO,cAAc,CAAC;AAEtB,KAAK,iBAAiB,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C,CAAC;AAEF,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BA4B7C;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/select/selectOptionsContainer/index.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/select/selectOptionsContainer/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAMjE,OAAO,cAAc,CAAC;AAEtB,KAAK,2BAA2B,GAAG;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC,CAAC;AAEF,iBAAS,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,sCAoCjE;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useEscapeKey, invokes a callback when the `Escape` key is pressed while active.
|
|
3
|
+
*
|
|
4
|
+
* Listens on `document`, so it fires regardless of which descendant currently
|
|
5
|
+
* has focus. The callback is always the latest one passed in, without
|
|
6
|
+
* re-attaching the listener on every render.
|
|
7
|
+
*
|
|
8
|
+
* Used internally by `ModalContainer`, `DrawerContainer`, and `Popover` to
|
|
9
|
+
* close the overlay on Escape.
|
|
10
|
+
*
|
|
11
|
+
* @param isActive - When `true`, the Escape key listener is attached.
|
|
12
|
+
* @param onEscape - Called when Escape is pressed while `isActive` is `true`.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* function CustomOverlay({ isOpen, onClose }) {
|
|
17
|
+
* useEscapeKey(isOpen, onClose);
|
|
18
|
+
* return isOpen ? <div role="dialog">...</div> : null;
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare function useEscapeKey(isActive: boolean, onEscape: () => void): void;
|
|
23
|
+
export { useEscapeKey };
|
|
24
|
+
//# sourceMappingURL=useEscapeKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEscapeKey.d.ts","sourceRoot":"","sources":["../../src/hooks/useEscapeKey.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,iBAAS,YAAY,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAiBnE;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
type FlipPosition = "bottom" | "top";
|
|
3
|
+
/**
|
|
4
|
+
* useFlipPosition, computes whether a floating panel should render `"bottom"`
|
|
5
|
+
* or `"top"` relative to its anchor, flipping to `"top"` when there isn't
|
|
6
|
+
* enough viewport space below it.
|
|
7
|
+
*
|
|
8
|
+
* The anchor used for the calculation is `containerRef.current.parentElement`,
|
|
9
|
+
* matching how `SelectOptionsContainer`, `MultiSelectOptionsContainer`, and
|
|
10
|
+
* `DatePickerCalendarContainer` render their floating panel as a sibling
|
|
11
|
+
* positioned relative to that parent.
|
|
12
|
+
*
|
|
13
|
+
* Recomputes when `isActive` becomes `true`, and again on every `resize`
|
|
14
|
+
* event while `isActive` stays `true`, so the position stays correct if the
|
|
15
|
+
* viewport is resized while the panel is open.
|
|
16
|
+
*
|
|
17
|
+
* Only positioning is handled here — no selection, focus, or keyboard logic.
|
|
18
|
+
*
|
|
19
|
+
* @param containerRef - Ref to the floating panel element (its `parentElement` is used as the anchor).
|
|
20
|
+
* @param isActive - When `true`, the position is computed and kept up to date.
|
|
21
|
+
* @param estimatedContainerHeight - Estimated height (px) of the floating panel, used to decide if it fits below the anchor.
|
|
22
|
+
* @returns `"bottom"` or `"top"`.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* function CustomFloatingPanel({ isOpen }) {
|
|
27
|
+
* const containerRef = useRef<HTMLDivElement>(null);
|
|
28
|
+
* const position = useFlipPosition(containerRef, isOpen, 300);
|
|
29
|
+
* return isOpen ? (
|
|
30
|
+
* <div ref={containerRef} className={`panel ${position}`} />
|
|
31
|
+
* ) : null;
|
|
32
|
+
* }
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
declare function useFlipPosition(containerRef: RefObject<HTMLElement | null>, isActive: boolean, estimatedContainerHeight: number): FlipPosition;
|
|
36
|
+
export type { FlipPosition };
|
|
37
|
+
export { useFlipPosition };
|
|
38
|
+
//# sourceMappingURL=useFlipPosition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFlipPosition.d.ts","sourceRoot":"","sources":["../../src/hooks/useFlipPosition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAE5D,KAAK,YAAY,GAAG,QAAQ,GAAG,KAAK,CAAC;AAErC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,iBAAS,eAAe,CACvB,YAAY,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,EAC3C,QAAQ,EAAE,OAAO,EACjB,wBAAwB,EAAE,MAAM,GAC9B,YAAY,CAqCd;AAED,YAAY,EAAE,YAAY,EAAE,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* useFocusTrap, keeps keyboard focus inside a container while `isActive`.
|
|
4
|
+
*
|
|
5
|
+
* On activation, saves the currently focused element and moves focus to the
|
|
6
|
+
* first focusable descendant of `containerRef.current` (or to the container
|
|
7
|
+
* itself when it has none). While active, `Tab`/`Shift+Tab` cycle focus
|
|
8
|
+
* between the first and last focusable descendants instead of leaving the
|
|
9
|
+
* container. On deactivation (or unmount), focus is restored to the element
|
|
10
|
+
* that was focused right before activation.
|
|
11
|
+
*
|
|
12
|
+
* Used internally by `ModalContainer`, `DrawerContainer`, and `Popover`.
|
|
13
|
+
*
|
|
14
|
+
* @param isActive - When `true`, focus is moved into and trapped inside the container.
|
|
15
|
+
* @param containerRef - Ref to the container that should trap focus. Give the element `tabIndex={-1}` so it can still receive focus when it has no focusable children.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* function CustomOverlay({ isOpen }) {
|
|
20
|
+
* const containerRef = useRef<HTMLDivElement>(null);
|
|
21
|
+
* useFocusTrap(isOpen, containerRef);
|
|
22
|
+
* return isOpen ? <div ref={containerRef} tabIndex={-1}>...</div> : null;
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
declare function useFocusTrap(isActive: boolean, containerRef: RefObject<HTMLElement | null>): void;
|
|
27
|
+
export { useFocusTrap };
|
|
28
|
+
//# sourceMappingURL=useFocusTrap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAmB1D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,iBAAS,YAAY,CACpB,QAAQ,EAAE,OAAO,EACjB,YAAY,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,GACzC,IAAI,CA+CN;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|