@stack-spot/portal-layout 2.34.1 → 2.35.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/CHANGELOG.md +99 -0
- package/dist/Layout.d.ts +5 -1
- package/dist/Layout.d.ts.map +1 -1
- package/dist/Layout.js +18 -7
- package/dist/Layout.js.map +1 -1
- package/dist/LayoutOverlayManager.d.ts +8 -2
- package/dist/LayoutOverlayManager.d.ts.map +1 -1
- package/dist/LayoutOverlayManager.js +16 -8
- package/dist/LayoutOverlayManager.js.map +1 -1
- package/dist/components/NotificationCenter/NotificationsPanelFooter.js +1 -1
- package/dist/components/NotificationCenter/NotificationsPanelFooter.js.map +1 -1
- package/dist/components/NotificationCenter/dictionary.d.ts +1 -1
- package/dist/components/NotificationCenter/dictionary.d.ts.map +1 -1
- package/dist/components/NotificationCenter/dictionary.js +2 -2
- package/dist/components/NotificationCenter/dictionary.js.map +1 -1
- package/dist/components/OverlayContent.js +2 -2
- package/dist/components/error/ErrorBoundary.d.ts.map +1 -1
- package/dist/components/error/SilentErrorBoundary.d.ts.map +1 -1
- package/dist/components/menu/MenuSections.d.ts.map +1 -1
- package/dist/components/menu/MenuSections.js +14 -5
- package/dist/components/menu/MenuSections.js.map +1 -1
- package/dist/components/menu/types.d.ts +7 -0
- package/dist/components/menu/types.d.ts.map +1 -1
- package/dist/components/tour/StepNavigation.d.ts.map +1 -1
- package/dist/components/tour/StepNavigation.js +2 -1
- package/dist/components/tour/StepNavigation.js.map +1 -1
- package/dist/dictionary.js +2 -2
- package/dist/dictionary.js.map +1 -1
- package/dist/elements.d.ts +1 -0
- package/dist/elements.d.ts.map +1 -1
- package/dist/elements.js +1 -0
- package/dist/elements.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/layout.css +15 -3
- package/package.json +3 -3
- package/readme.md +0 -1
- package/src/Layout.tsx +36 -15
- package/src/LayoutOverlayManager.tsx +36 -15
- package/src/components/NotificationCenter/NotificationsPanelFooter.tsx +1 -1
- package/src/components/NotificationCenter/dictionary.ts +2 -2
- package/src/components/OverlayContent.tsx +2 -2
- package/src/components/menu/MenuSections.tsx +14 -5
- package/src/components/menu/types.ts +7 -0
- package/src/components/tour/StepNavigation.tsx +3 -1
- package/src/dictionary.ts +2 -2
- package/src/elements.ts +1 -0
- package/src/index.ts +1 -0
- package/src/layout.css +15 -3
|
@@ -35,7 +35,9 @@ export const StepNavigation = ({ stepKey, nextButton, prevButton }: NavigationPr
|
|
|
35
35
|
const t = useTranslate(translations)
|
|
36
36
|
|
|
37
37
|
return <Flex w={12} px={5} py={2} mt="-1px" bg="inverse.500" justifyContent="space-between" alignItems="center">
|
|
38
|
-
|
|
38
|
+
{ steps.length > 1 &&
|
|
39
|
+
<Text appearance="microtext1" colorScheme="inverse.contrastText">{currentStep + 1} {t.of} {steps.length}</Text>
|
|
40
|
+
}
|
|
39
41
|
<Flex sx={{ gap: '8px' }}>
|
|
40
42
|
{currentStep >= 1 &&
|
|
41
43
|
<Button sx={{ paddingInline: '20px' }} onClick={() => {
|
package/src/dictionary.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dictionary, getLanguage, useTranslate } from '@stack-spot/portal-translate'
|
|
1
|
+
import { Dictionary, getLanguage, ptEn, useTranslate } from '@stack-spot/portal-translate'
|
|
2
2
|
|
|
3
3
|
const dictionary = {
|
|
4
4
|
en: {
|
|
@@ -25,6 +25,6 @@ const dictionary = {
|
|
|
25
25
|
export const useDictionary = () => useTranslate(dictionary)
|
|
26
26
|
|
|
27
27
|
export function getDictionary() {
|
|
28
|
-
const language = getLanguage()
|
|
28
|
+
const language = getLanguage(ptEn)
|
|
29
29
|
return dictionary[language]
|
|
30
30
|
}
|
package/src/elements.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ export { RateComponent } from './components/Rate'
|
|
|
12
12
|
export { shouldShowNpsModal } from './components/Rate/hook'
|
|
13
13
|
export { ShowFeedbackModal, showRateUsModal } from './components/Rate/show-rate-us-modals'
|
|
14
14
|
export * from './components/tour'
|
|
15
|
+
export { TypeForm } from './components/TypeForm'
|
|
15
16
|
export { useTypeFormEffect } from './components/TypeForm/hook'
|
|
16
17
|
export { showTypeFormModal } from './components/TypeForm/show-typeform-modal'
|
|
17
18
|
export * from './elements'
|
package/src/layout.css
CHANGED
|
@@ -98,7 +98,12 @@ body {
|
|
|
98
98
|
left: calc(var(--menu-sections-width) + var(--menu-content-width));
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
#layout.
|
|
101
|
+
#layout.menu-inner-content-visible #page {
|
|
102
|
+
left: calc(var(--menu-sections-width) + calc(var(--menu-content-width) * 2));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
#layout.no-menu-sections:not(.menu-content-visible) #page,
|
|
106
|
+
#layout.no-menu-sections:not(.menu-inner-content-visible) #page {
|
|
102
107
|
border-top-left-radius: 0;
|
|
103
108
|
}
|
|
104
109
|
|
|
@@ -363,7 +368,8 @@ body {
|
|
|
363
368
|
pointer-events: auto;
|
|
364
369
|
}
|
|
365
370
|
|
|
366
|
-
#menuContent
|
|
371
|
+
#menuContent,
|
|
372
|
+
#menuInnerContent {
|
|
367
373
|
width: var(--menu-content-width);
|
|
368
374
|
transition: left ease-out var(--menu-animation-duration);
|
|
369
375
|
background-color: var(--light-400);
|
|
@@ -375,7 +381,13 @@ body {
|
|
|
375
381
|
border-top: 1px solid var(--light-300);
|
|
376
382
|
}
|
|
377
383
|
|
|
378
|
-
#
|
|
384
|
+
#menuInnerContent {
|
|
385
|
+
left: var(--menu-content-width);
|
|
386
|
+
border-left: 1px solid var(--light-300);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
#menuContent .goBackLink,
|
|
390
|
+
#menuInnerContent .goBackLink {
|
|
379
391
|
display: flex;
|
|
380
392
|
flex-direction: row;
|
|
381
393
|
align-items: center;
|