@7shifts/sous-chef 3.65.0-beta.0 → 3.65.0-beta.1
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/hooks/useIsVisibleInViewPort/index.d.ts +2 -0
- package/dist/hooks/useIsVisibleInViewPort/useIsVisibleInViewPort.d.ts +12 -0
- package/dist/hooks/useViewPortIntersectionObserver/index.d.ts +2 -0
- package/dist/hooks/useViewPortIntersectionObserver/useViewPortIntersectionObserver.d.ts +10 -0
- package/dist/i18n/locales/en.json +6 -0
- package/dist/i18n/locales/es.json +6 -0
- package/dist/i18n/locales/fr.json +6 -0
- package/dist/i18n/locales/locales/en.json +0 -3
- package/dist/i18n/locales/locales/es.json +0 -3
- package/dist/i18n/locales/locales/fr.json +0 -3
- package/dist/index.js +425 -372
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +426 -373
- package/dist/index.modern.js.map +1 -1
- package/dist/overlay/index.d.ts +1 -2
- package/dist/tests/utils/mockIntersectionObserver.d.ts +9 -0
- package/package.json +1 -1
- package/dist/lists/DataTable/DataTableEmptyState/EmptyStateIllustration/EmptyStateIllustration.d.ts +0 -3
- package/dist/lists/DataTable/DataTableEmptyState/EmptyStateIllustration/index.d.ts +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type IsVisibleInViewPortResult = {
|
|
2
|
+
isVisible: boolean;
|
|
3
|
+
elementRef: (target: Element | null) => void;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Custom React hook that monitors the visibility of a referenced DOM element within the viewport
|
|
7
|
+
* using the Browser Intersection Observer API.
|
|
8
|
+
*
|
|
9
|
+
* @returns {IsVisibleInViewPortResult}
|
|
10
|
+
*/
|
|
11
|
+
declare function useIsVisibleInViewPort(): IsVisibleInViewPortResult;
|
|
12
|
+
export default useIsVisibleInViewPort;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type IntersectingCallback = (isIntersecting: boolean) => void;
|
|
2
|
+
/**
|
|
3
|
+
* @private
|
|
4
|
+
* @description For internal use only. For a general hook to check element visibility, use useIsVisibleInViewPort.
|
|
5
|
+
*/
|
|
6
|
+
declare function useViewPortIntersectionObserver(): {
|
|
7
|
+
observeElement: (target: Element, callback: IntersectingCallback) => void;
|
|
8
|
+
unobserveElement: (target: Element) => void;
|
|
9
|
+
};
|
|
10
|
+
export default useViewPortIntersectionObserver;
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"HintModal": {
|
|
14
14
|
"dontShowAgainLabel": "Don’t show this again"
|
|
15
15
|
},
|
|
16
|
+
"ConfirmModal": {
|
|
17
|
+
"cancel": "Cancel"
|
|
18
|
+
},
|
|
16
19
|
"Calendar": {
|
|
17
20
|
"sunday": "Sunday",
|
|
18
21
|
"monday": "Monday",
|
|
@@ -41,6 +44,9 @@
|
|
|
41
44
|
"emptyStateTitle": "No results found",
|
|
42
45
|
"emptyStateCaption": "Try adding a new item to the list or adjust your search terms."
|
|
43
46
|
},
|
|
47
|
+
"ActionList": {
|
|
48
|
+
"emptyStateTitle": "No action items"
|
|
49
|
+
},
|
|
44
50
|
"PhoneField": {
|
|
45
51
|
"malformedPhoneNumber": "Malformed phone number. Please enter a valid phone number."
|
|
46
52
|
}
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"HintModal": {
|
|
14
14
|
"dontShowAgainLabel": "No mostrar esto otra vez"
|
|
15
15
|
},
|
|
16
|
+
"ConfirmModal": {
|
|
17
|
+
"cancel": "Cancelar"
|
|
18
|
+
},
|
|
16
19
|
"Calendar": {
|
|
17
20
|
"sunday": "Domingo",
|
|
18
21
|
"monday": "Lunes",
|
|
@@ -41,6 +44,9 @@
|
|
|
41
44
|
"emptyStateTitle": "No se encontraron resultados",
|
|
42
45
|
"emptyStateCaption": "Intenta agregar un nuevo elemento a la lista o ajusta tus términos de búsqueda."
|
|
43
46
|
},
|
|
47
|
+
"ActionList": {
|
|
48
|
+
"emptyStateTitle": "Sin elementos de acción"
|
|
49
|
+
},
|
|
44
50
|
"PhoneField": {
|
|
45
51
|
"malformedPhoneNumber": "Número de teléfono mal formado. Por favor, ingresa un número de teléfono válido."
|
|
46
52
|
}
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"HintModal": {
|
|
14
14
|
"dontShowAgainLabel": "Ne plus afficher ce message"
|
|
15
15
|
},
|
|
16
|
+
"ConfirmModal": {
|
|
17
|
+
"cancel": "Annuler"
|
|
18
|
+
},
|
|
16
19
|
"Calendar": {
|
|
17
20
|
"sunday": "Dimanche",
|
|
18
21
|
"monday": "Lundi",
|
|
@@ -41,6 +44,9 @@
|
|
|
41
44
|
"emptyStateTitle": "Aucun résultat trouvé",
|
|
42
45
|
"emptyStateCaption": "Essayez d'ajouter un nouvel élément à la liste ou ajustez vos termes de recherche."
|
|
43
46
|
},
|
|
47
|
+
"ActionList": {
|
|
48
|
+
"emptyStateTitle": "Aucune action"
|
|
49
|
+
},
|
|
44
50
|
"PhoneField": {
|
|
45
51
|
"malformedPhoneNumber": "Numéro de téléphone mal formé. Veuillez entrer un numéro de téléphone valide."
|
|
46
52
|
}
|