@stack-spot/portal-components 2.25.4-beta.1 → 2.25.5
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 +22 -13
- package/dist/components/BannerWarning.d.ts +4 -1
- package/dist/components/BannerWarning.d.ts.map +1 -1
- package/dist/components/BannerWarning.js +3 -2
- package/dist/components/BannerWarning.js.map +1 -1
- package/dist/components/InfoMaintenanceBanner.d.ts +8 -0
- package/dist/components/InfoMaintenanceBanner.d.ts.map +1 -0
- package/dist/components/InfoMaintenanceBanner.js +23 -0
- package/dist/components/InfoMaintenanceBanner.js.map +1 -0
- package/dist/components/SelectionList.d.ts +2 -2
- package/dist/components/SelectionList.d.ts.map +1 -1
- package/dist/components/SelectionList.js +2 -2
- 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/package.json +4 -7
- package/src/components/BannerWarning.tsx +11 -9
- package/src/components/InfoMaintenanceBanner.tsx +29 -0
- package/src/components/SelectionList.tsx +4 -4
- package/src/index.ts +2 -0
- package/dist/components/Accordion/accordion.css +0 -32
- package/dist/components/Accordion/index.d.ts +0 -219
- package/dist/components/Accordion/index.d.ts.map +0 -1
- package/dist/components/Accordion/index.js +0 -275
- package/dist/components/Accordion/index.js.map +0 -1
- package/src/components/Accordion/accordion.css +0 -32
- package/src/components/Accordion/index.tsx +0 -544
package/CHANGELOG.md
CHANGED
|
@@ -1,37 +1,46 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [2.25.
|
|
3
|
+
## [2.25.5](https://github.com/stack-spot/portal-commons/compare/portal-components@v2.25.4...portal-components@v2.25.5) (2025-08-15)
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
### Bug Fixes
|
|
7
7
|
|
|
8
|
-
* accessibility file insert ([
|
|
8
|
+
* adjusts accessibility file insert ([#1379](https://github.com/stack-spot/portal-commons/issues/1379)) ([753ad4e](https://github.com/stack-spot/portal-commons/commit/753ad4ea5ce01e0f4bcee15c08229ceb8e8dc02d))
|
|
9
9
|
|
|
10
|
-
## [2.25.
|
|
10
|
+
## [2.25.4](https://github.com/stack-spot/portal-commons/compare/portal-components@v2.25.3...portal-components@v2.25.4) (2025-08-15)
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
### Bug Fixes
|
|
14
14
|
|
|
15
|
-
*
|
|
15
|
+
* Removed sx props banner warning ([#1418](https://github.com/stack-spot/portal-commons/issues/1418)) ([6fbbe2c](https://github.com/stack-spot/portal-commons/commit/6fbbe2c0ae6157cf7c6908af6d49b1dc7e5686a6))
|
|
16
16
|
|
|
17
|
-
## [2.25.
|
|
17
|
+
## [2.25.3](https://github.com/stack-spot/portal-commons/compare/portal-components@v2.25.2...portal-components@v2.25.3) (2025-08-15)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
### Bug Fixes
|
|
21
21
|
|
|
22
|
-
*
|
|
23
|
-
* adjusts accessibility file insert ([#1387](https://github.com/stack-spot/portal-commons/issues/1387)) ([29ceb74](https://github.com/stack-spot/portal-commons/commit/29ceb74d95f46dcba1f51b184bfb919fffbf8136))
|
|
24
|
-
* error messages ([#1283](https://github.com/stack-spot/portal-commons/issues/1283)) ([6a186ef](https://github.com/stack-spot/portal-commons/commit/6a186ef47b90b94a6b0861b8042ddd90062c3d95))
|
|
22
|
+
* type banner warning sx ([#1410](https://github.com/stack-spot/portal-commons/issues/1410)) ([c91b6e7](https://github.com/stack-spot/portal-commons/commit/c91b6e792107246b9025aad010ab3a1ee9f5855a))
|
|
25
23
|
|
|
26
|
-
## [2.25.
|
|
24
|
+
## [2.25.2](https://github.com/stack-spot/portal-commons/compare/portal-components@v2.25.1...portal-components@v2.25.2) (2025-08-15)
|
|
27
25
|
|
|
28
26
|
|
|
29
27
|
### Bug Fixes
|
|
30
28
|
|
|
31
|
-
*
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
* banner warning ([#1408](https://github.com/stack-spot/portal-commons/issues/1408)) ([9275385](https://github.com/stack-spot/portal-commons/commit/927538519908b87469c5ac2351eace94087cb4bb))
|
|
30
|
+
|
|
31
|
+
## [2.25.1](https://github.com/stack-spot/portal-commons/compare/portal-components@v2.25.0...portal-components@v2.25.1) (2025-08-14)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* maintenance banner ([#1406](https://github.com/stack-spot/portal-commons/issues/1406)) ([41c5258](https://github.com/stack-spot/portal-commons/commit/41c52588c7ab4377da31e79cf4e31b17b7b714c0))
|
|
37
|
+
|
|
38
|
+
## [2.25.0](https://github.com/stack-spot/portal-commons/compare/portal-components@v2.24.3...portal-components@v2.25.0) (2025-08-14)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Features
|
|
42
|
+
|
|
43
|
+
* InfoMaintenanceBanner ([#1404](https://github.com/stack-spot/portal-commons/issues/1404)) ([d36bec1](https://github.com/stack-spot/portal-commons/commit/d36bec16c87882ec6d7fc18bbb9e59e0fb8aad16))
|
|
35
44
|
|
|
36
45
|
## [2.24.3](https://github.com/stack-spot/portal-commons/compare/portal-components@v2.24.2...portal-components@v2.24.3) (2025-07-22)
|
|
37
46
|
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { SxProp } from '@citric/core';
|
|
1
2
|
/**
|
|
2
3
|
* A styled and dismissible alert box for showing important warnings for the user.
|
|
3
4
|
*
|
|
4
5
|
* This renders a yellow box with an exclamation icon. The content passed as parameter is placed on the right of the icon.
|
|
5
6
|
* @param props an object containing the content (children) to show inside the alert box.
|
|
6
7
|
*/
|
|
7
|
-
export declare const BannerWarning: ({ children }: {
|
|
8
|
+
export declare const BannerWarning: ({ children, showCloseButton }: {
|
|
8
9
|
children: React.ReactNode;
|
|
10
|
+
sx?: SxProp;
|
|
11
|
+
showCloseButton?: boolean;
|
|
9
12
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
13
|
//# sourceMappingURL=BannerWarning.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BannerWarning.d.ts","sourceRoot":"","sources":["../../src/components/BannerWarning.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BannerWarning.d.ts","sourceRoot":"","sources":["../../src/components/BannerWarning.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyB,MAAM,EAAQ,MAAM,cAAc,CAAA;AAMlE;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,+BAC5B;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAA;CAAE,mDA4EtE,CAAA"}
|
|
@@ -10,7 +10,7 @@ import { getCookie, setCookie } from '../utils/cookie.js';
|
|
|
10
10
|
* This renders a yellow box with an exclamation icon. The content passed as parameter is placed on the right of the icon.
|
|
11
11
|
* @param props an object containing the content (children) to show inside the alert box.
|
|
12
12
|
*/
|
|
13
|
-
export const BannerWarning = ({ children }) => {
|
|
13
|
+
export const BannerWarning = ({ children, showCloseButton = true }) => {
|
|
14
14
|
const bannerKey = 'bannerClosed';
|
|
15
15
|
const [isVisible, setIsVisible] = useState(() => {
|
|
16
16
|
if (typeof window !== 'undefined') {
|
|
@@ -34,12 +34,13 @@ export const BannerWarning = ({ children }) => {
|
|
|
34
34
|
display: 'flex',
|
|
35
35
|
justifyContent: 'space-between',
|
|
36
36
|
height: 'auto',
|
|
37
|
+
padding: `${showCloseButton ? '0.5rem' : '1rem'}`,
|
|
37
38
|
}, children: [_jsxs(Flex, { sx: {
|
|
38
39
|
alignItems: 'center',
|
|
39
40
|
flexWrap: 'nowrap',
|
|
40
41
|
}, children: [_jsx(IconBox, { size: "sm", colorIcon: "light.500", children: _jsx(ExclamationTriangle, {}) }), _jsx(Text, { sx: {
|
|
41
42
|
ml: 5,
|
|
42
|
-
}, appearance: "body2", colorScheme: "warning.contrastText", children: children })] }), _jsx(Button, { appearance: 'text', onClick: handleClose, sx: {
|
|
43
|
+
}, appearance: "body2", colorScheme: "warning.contrastText", children: children })] }), showCloseButton && _jsx(Button, { appearance: 'text', onClick: handleClose, sx: {
|
|
43
44
|
p: 0,
|
|
44
45
|
ml: 2,
|
|
45
46
|
}, children: _jsx(IconBox, { size: "lg", colorIcon: "light.500", children: _jsx(TimesCircleFill, {}) }) })] }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BannerWarning.js","sourceRoot":"","sources":["../../src/components/BannerWarning.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"BannerWarning.js","sourceRoot":"","sources":["../../src/components/BannerWarning.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAU,IAAI,EAAE,MAAM,cAAc,CAAA;AAClE,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEtD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAE,eAAe,GAAG,IAAI,EACO,EAAE,EAAE;IACzE,MAAM,SAAS,GAAG,cAAc,CAAA;IAEhC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE;QAC9C,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;YAClC,MAAM,cAAc,GAAG,SAAS,CAAC,SAAS,CAAC,KAAK,MAAM,CAAA;YACtD,OAAO,CAAC,cAAc,CAAA;QACxB,CAAC;QACD,OAAO,KAAK,CAAA;IACd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AAe,KAAG,GACX,GACH,IACH,GACH,CACR,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface InfoMaintenanceBannerProps {
|
|
2
|
+
date: Date;
|
|
3
|
+
initialHour: string;
|
|
4
|
+
endHour: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const InfoMaintenanceBanner: ({ date, initialHour, endHour }: InfoMaintenanceBannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=InfoMaintenanceBanner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InfoMaintenanceBanner.d.ts","sourceRoot":"","sources":["../../src/components/InfoMaintenanceBanner.tsx"],"names":[],"mappings":"AAKA,UAAU,0BAA0B;IAClC,IAAI,EAAE,IAAI,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,qBAAqB,GAAI,gCAAgC,0BAA0B,4CAQ/F,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Text } from '@citric/core';
|
|
3
|
+
import { interpolate, useLanguage, useTranslate } from '@stack-spot/portal-translate';
|
|
4
|
+
import { format } from 'date-fns';
|
|
5
|
+
import { enUS, ptBR } from 'date-fns/locale';
|
|
6
|
+
export const InfoMaintenanceBanner = ({ date, initialHour, endHour }) => {
|
|
7
|
+
const t = useTranslate(dictionary);
|
|
8
|
+
const language = useLanguage();
|
|
9
|
+
const locale = language === 'pt' ? ptBR : enUS;
|
|
10
|
+
const dateToString = language === 'en' ?
|
|
11
|
+
format(date, "MMMM do',' yyyy", { locale }) :
|
|
12
|
+
format(date, "dd 'de' MMMM 'de' yyyy", { locale });
|
|
13
|
+
return _jsx(Text, { children: interpolate(t.info, dateToString, initialHour, endHour) });
|
|
14
|
+
};
|
|
15
|
+
const dictionary = {
|
|
16
|
+
en: {
|
|
17
|
+
info: 'We would like to inform you that StackSpot will undergo maintenance on $0, from $1 (GMT-3) to $2. During this period, this web portal will be temporarily unavailable.',
|
|
18
|
+
},
|
|
19
|
+
pt: {
|
|
20
|
+
info: 'Gostaríamos de informar que a StackSpot passará por manutenção no dia $0, das $1 (GMT-3) às $2. Durante este período, este portal web estará temporariamente indisponível.',
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=InfoMaintenanceBanner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InfoMaintenanceBanner.js","sourceRoot":"","sources":["../../src/components/InfoMaintenanceBanner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAQ5C,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAA8B,EAAE,EAAE;IAClG,MAAM,CAAC,GAAG,YAAY,CAAC,UAAU,CAAC,CAAA;IAClC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAA;IAC9B,MAAM,MAAM,GAAG,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA;IAC9C,MAAM,YAAY,GAAG,QAAQ,KAAK,IAAI,CAAC,CAAC;QACtC,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;QAC7C,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAA;IACpD,OAAO,KAAC,IAAI,cAAE,WAAW,CAAC,CAAC,CAAC,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,OAAO,CAAC,GAAQ,CAAA;AAC/E,CAAC,CAAA;AAED,MAAM,UAAU,GAAG;IACjB,EAAE,EAAE;QACF,IAAI,EAAE,wKAAwK;KAC/K;IACD,EAAE,EAAE;QACF,IAAI,EAAE,4KAA4K;KACnL;CACF,CAAA"}
|
|
@@ -64,8 +64,8 @@ export interface ListAction extends ItemWithIcon, Action {
|
|
|
64
64
|
*/
|
|
65
65
|
className?: string;
|
|
66
66
|
/**
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
* Defines the ARIA role of the element for accessibility purposes. Example: "button", "dialog", etc.
|
|
68
|
+
*/
|
|
69
69
|
role?: string;
|
|
70
70
|
}
|
|
71
71
|
interface ListGroup {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionList.d.ts","sourceRoot":"","sources":["../../src/components/SelectionList.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAsB,MAAM,0BAA0B,CAAA;AAExE,OAAO,EAAE,YAAY,EAA6C,MAAM,OAAO,CAAA;AAK/E,UAAU,WAAW;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,WAAW,CAAC;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC7C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,CAAC;IACjE;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAA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AQ,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAkID;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,GAAI,qGAE3B,kBAAkB,4CAiHpB,CAAA"}
|
|
@@ -28,7 +28,7 @@ const SelectionBox = styled.div `
|
|
|
28
28
|
padding-inline: ${({ $showListAsCard }) => $showListAsCard ? '8px' : '0'};
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
.section-title, li > a {
|
|
32
32
|
height: 40px;
|
|
33
33
|
padding: 0 8px;
|
|
34
34
|
display: flex;
|
|
@@ -48,7 +48,7 @@ const SelectionBox = styled.div `
|
|
|
48
48
|
overflow: hidden;
|
|
49
49
|
text-overflow: ellipsis;
|
|
50
50
|
}
|
|
51
|
-
}
|
|
51
|
+
}
|
|
52
52
|
|
|
53
53
|
li.action {
|
|
54
54
|
background-color: ${({ $showListAsCard }) => $showListAsCard ? theme.color.light['400'] : ''};
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { AsyncContent } from './components/AsyncContent.js';
|
|
|
2
2
|
export { BannerWarning } from './components/BannerWarning.js';
|
|
3
3
|
export { ButtonLoading } from './components/ButtonLoading.js';
|
|
4
4
|
export { ChatBot } from './components/ChatBot.js';
|
|
5
|
+
export { InfoMaintenanceBanner } from './components/InfoMaintenanceBanner.js';
|
|
5
6
|
export * from './components/Select/index.js';
|
|
6
7
|
export * from './components/Select/types.js';
|
|
7
8
|
export { useDateFormatter } from './hooks/date.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,kBAAkB,EAAE,UAAU,IAAI,oBAAoB,EAAE,iCAAiC,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AACpJ,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,cAAc,uBAAuB,CAAA;AACrC,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAA;AAC1E,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,kBAAkB,EAAE,UAAU,IAAI,oBAAoB,EAAE,iCAAiC,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AACpJ,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,cAAc,uBAAuB,CAAA;AACrC,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export { AsyncContent } from './components/AsyncContent.js';
|
|
|
2
2
|
export { BannerWarning } from './components/BannerWarning.js';
|
|
3
3
|
export { ButtonLoading } from './components/ButtonLoading.js';
|
|
4
4
|
export { ChatBot } from './components/ChatBot.js';
|
|
5
|
+
export { InfoMaintenanceBanner } from './components/InfoMaintenanceBanner.js';
|
|
5
6
|
export * from './components/Select/index.js';
|
|
6
7
|
export * from './components/Select/types.js';
|
|
7
8
|
export { useDateFormatter } from './hooks/date.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC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OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,kBAAkB,EAAE,UAAU,IAAI,oBAAoB,EAAE,iCAAiC,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AACpJ,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,cAAc,uBAAuB,CAAA;AACrC,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stack-spot/portal-components",
|
|
3
|
-
"version": "2.25.
|
|
3
|
+
"version": "2.25.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,14 +27,12 @@
|
|
|
27
27
|
"./FadingOverflow": "./dist/components/FadingOverflow.js",
|
|
28
28
|
"./Table": "./dist/components/Table/index.js",
|
|
29
29
|
"./ContentValidateFilter": "./dist/components/ContentValidateFilter.js",
|
|
30
|
-
"./Form": "./dist/components/form/Form/index.js"
|
|
31
|
-
"./Accordion": "./dist/components/Accordion/index.js"
|
|
30
|
+
"./Form": "./dist/components/form/Form/index.js"
|
|
32
31
|
},
|
|
33
32
|
"scripts": {
|
|
34
|
-
"build": "rimraf dist && tsc && tsc-esm-fix --target='dist'
|
|
33
|
+
"build": "rimraf dist && tsc && tsc-esm-fix --target='dist'",
|
|
35
34
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
36
|
-
"check-tree-shaking": "agadoo"
|
|
37
|
-
"cpy-accordion-css": "cpy src/components/Accordion/accordion.css dist/components/Accordion --flat"
|
|
35
|
+
"check-tree-shaking": "agadoo"
|
|
38
36
|
},
|
|
39
37
|
"peerDependencies": {
|
|
40
38
|
"@citric/core": "^6.5.1",
|
|
@@ -53,7 +51,6 @@
|
|
|
53
51
|
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
|
54
52
|
"@typescript-eslint/parser": "^6.10.0",
|
|
55
53
|
"agadoo": "^3.0.0",
|
|
56
|
-
"cpy-cli": "^5.0.0",
|
|
57
54
|
"eslint": "^8.53.0",
|
|
58
55
|
"eslint-plugin-filenames": "^1.3.2",
|
|
59
56
|
"eslint-plugin-import": "^2.29.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { Button, Flex, IconBox, Text } from '@citric/core'
|
|
2
|
+
import { Button, Flex, IconBox, SxProp, Text } from '@citric/core'
|
|
3
3
|
import { ExclamationTriangle, TimesCircleFill } from '@citric/icons'
|
|
4
4
|
import { Alert } from '@citric/ui'
|
|
5
5
|
import { useState } from 'react'
|
|
@@ -11,7 +11,8 @@ import { getCookie, setCookie } from '../utils/cookie'
|
|
|
11
11
|
* This renders a yellow box with an exclamation icon. The content passed as parameter is placed on the right of the icon.
|
|
12
12
|
* @param props an object containing the content (children) to show inside the alert box.
|
|
13
13
|
*/
|
|
14
|
-
export const BannerWarning = ({ children
|
|
14
|
+
export const BannerWarning = ({ children, showCloseButton = true }:
|
|
15
|
+
{ children: React.ReactNode, sx?: SxProp, showCloseButton?: boolean }) => {
|
|
15
16
|
const bannerKey = 'bannerClosed'
|
|
16
17
|
|
|
17
18
|
const [isVisible, setIsVisible] = useState(() => {
|
|
@@ -41,14 +42,15 @@ export const BannerWarning = ({ children }: { children: React.ReactNode }) => {
|
|
|
41
42
|
py: 1,
|
|
42
43
|
alignItems: 'center',
|
|
43
44
|
display: 'flex',
|
|
44
|
-
justifyContent: 'space-between',
|
|
45
|
+
justifyContent: 'space-between',
|
|
45
46
|
height: 'auto',
|
|
47
|
+
padding: `${showCloseButton ? '0.5rem' : '1rem'}`,
|
|
46
48
|
}}
|
|
47
49
|
>
|
|
48
50
|
<Flex
|
|
49
51
|
sx={{
|
|
50
|
-
alignItems: 'center',
|
|
51
|
-
flexWrap: 'nowrap',
|
|
52
|
+
alignItems: 'center',
|
|
53
|
+
flexWrap: 'nowrap',
|
|
52
54
|
}}
|
|
53
55
|
>
|
|
54
56
|
<IconBox
|
|
@@ -59,7 +61,7 @@ export const BannerWarning = ({ children }: { children: React.ReactNode }) => {
|
|
|
59
61
|
</IconBox>
|
|
60
62
|
<Text
|
|
61
63
|
sx={{
|
|
62
|
-
ml:5,
|
|
64
|
+
ml: 5,
|
|
63
65
|
}}
|
|
64
66
|
appearance="body2"
|
|
65
67
|
colorScheme="warning.contrastText"
|
|
@@ -67,8 +69,8 @@ export const BannerWarning = ({ children }: { children: React.ReactNode }) => {
|
|
|
67
69
|
{children}
|
|
68
70
|
</Text>
|
|
69
71
|
</Flex>
|
|
70
|
-
|
|
71
|
-
<Button
|
|
72
|
+
|
|
73
|
+
{showCloseButton && <Button
|
|
72
74
|
appearance={'text'}
|
|
73
75
|
onClick={handleClose}
|
|
74
76
|
sx={{
|
|
@@ -82,7 +84,7 @@ export const BannerWarning = ({ children }: { children: React.ReactNode }) => {
|
|
|
82
84
|
>
|
|
83
85
|
<TimesCircleFill />
|
|
84
86
|
</IconBox>
|
|
85
|
-
</Button>
|
|
87
|
+
</Button>}
|
|
86
88
|
</Alert>
|
|
87
89
|
</Flex>
|
|
88
90
|
)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Text } from '@citric/core'
|
|
2
|
+
import { interpolate, useLanguage, useTranslate } from '@stack-spot/portal-translate'
|
|
3
|
+
import { format } from 'date-fns'
|
|
4
|
+
import { enUS, ptBR } from 'date-fns/locale'
|
|
5
|
+
|
|
6
|
+
interface InfoMaintenanceBannerProps {
|
|
7
|
+
date: Date,
|
|
8
|
+
initialHour: string,
|
|
9
|
+
endHour: string,
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const InfoMaintenanceBanner = ({ date, initialHour, endHour }: InfoMaintenanceBannerProps) => {
|
|
13
|
+
const t = useTranslate(dictionary)
|
|
14
|
+
const language = useLanguage()
|
|
15
|
+
const locale = language === 'pt' ? ptBR : enUS
|
|
16
|
+
const dateToString = language === 'en' ?
|
|
17
|
+
format(date, "MMMM do',' yyyy", { locale }) :
|
|
18
|
+
format(date, "dd 'de' MMMM 'de' yyyy", { locale })
|
|
19
|
+
return <Text>{interpolate(t.info, dateToString, initialHour, endHour)}</Text>
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const dictionary = {
|
|
23
|
+
en: {
|
|
24
|
+
info: 'We would like to inform you that StackSpot will undergo maintenance on $0, from $1 (GMT-3) to $2. During this period, this web portal will be temporarily unavailable.',
|
|
25
|
+
},
|
|
26
|
+
pt: {
|
|
27
|
+
info: 'Gostaríamos de informar que a StackSpot passará por manutenção no dia $0, das $1 (GMT-3) às $2. Durante este período, este portal web estará temporariamente indisponível.',
|
|
28
|
+
},
|
|
29
|
+
}
|
|
@@ -75,8 +75,8 @@ export interface ListAction extends ItemWithIcon, Action {
|
|
|
75
75
|
*/
|
|
76
76
|
className?: string,
|
|
77
77
|
/**
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
* Defines the ARIA role of the element for accessibility purposes. Example: "button", "dialog", etc.
|
|
79
|
+
*/
|
|
80
80
|
role?: string,
|
|
81
81
|
}
|
|
82
82
|
|
|
@@ -188,7 +188,7 @@ const SelectionBox = styled.div<{ $maxHeight: string, $scroll?: boolean, $showLi
|
|
|
188
188
|
padding-inline: ${({ $showListAsCard }) => $showListAsCard ? '8px' : '0'};
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
|
|
191
|
+
.section-title, li > a {
|
|
192
192
|
height: 40px;
|
|
193
193
|
padding: 0 8px;
|
|
194
194
|
display: flex;
|
|
@@ -208,7 +208,7 @@ const SelectionBox = styled.div<{ $maxHeight: string, $scroll?: boolean, $showLi
|
|
|
208
208
|
overflow: hidden;
|
|
209
209
|
text-overflow: ellipsis;
|
|
210
210
|
}
|
|
211
|
-
}
|
|
211
|
+
}
|
|
212
212
|
|
|
213
213
|
li.action {
|
|
214
214
|
background-color: ${({ $showListAsCard }) => $showListAsCard ? theme.color.light['400'] : ''};
|
package/src/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { AsyncContent } from './components/AsyncContent'
|
|
|
2
2
|
export { BannerWarning } from './components/BannerWarning'
|
|
3
3
|
export { ButtonLoading } from './components/ButtonLoading'
|
|
4
4
|
export { ChatBot } from './components/ChatBot'
|
|
5
|
+
export { InfoMaintenanceBanner } from './components/InfoMaintenanceBanner'
|
|
5
6
|
export * from './components/Select'
|
|
6
7
|
export * from './components/Select/types'
|
|
7
8
|
export { useDateFormatter } from './hooks/date'
|
|
@@ -15,3 +16,4 @@ export * from './utils/accessibility'
|
|
|
15
16
|
export * from './utils/cookie'
|
|
16
17
|
export { delay } from './utils/promise'
|
|
17
18
|
export { readFile } from './utils/read-file'
|
|
19
|
+
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
.accordion-chevron {
|
|
2
|
-
transition: transform 0.3s ease;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.accordion-chevron[data-state='open'] {
|
|
6
|
-
transform: rotate(180deg);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.accordion-content {
|
|
10
|
-
max-height: max-content;
|
|
11
|
-
height: 0;
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
transition: all 0.3s ease;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.accordion-content[data-state='open'] {
|
|
17
|
-
height: var(--accordion-content-height);
|
|
18
|
-
overflow: inherit;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.accordion-content[data-state='closed'] {
|
|
22
|
-
padding-top: 0;
|
|
23
|
-
padding-bottom: 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.accordion-content hr {
|
|
27
|
-
visibility: hidden;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.accordion-content[data-state='open'] hr {
|
|
31
|
-
visibility: visible;
|
|
32
|
-
}
|