@xfers/design-system 7.1.0-dev.89ea3acf11 → 7.1.0-dev.8fcc223fee

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 (35) hide show
  1. package/cjs/{StraitsXPersonalAccountLightLogo-63cb9f22.js → StraitsXPersonalAccountDarkLogo-95a3ea64.js} +1 -1
  2. package/cjs/StraitsXPersonalAccountDarkLogo-95a3ea64.js.map +1 -0
  3. package/cjs/index.js +50 -70
  4. package/cjs/index.js.map +1 -1
  5. package/cjs/logos.js +1 -1
  6. package/dist/components/Sidebar/CompanyProfile.js +2 -2
  7. package/dist/components/Sidebar/CompanyProfile.js.map +1 -1
  8. package/dist/components/Sidebar/CompanyProfileDropdown.js +18 -15
  9. package/dist/components/Sidebar/CompanyProfileDropdown.js.map +1 -1
  10. package/dist/components/Sidebar/Sidebar.js +101 -2
  11. package/dist/components/Sidebar/Sidebar.js.map +1 -1
  12. package/dist/components/Sidebar/index.js +4 -2
  13. package/dist/components/Sidebar/index.js.map +1 -1
  14. package/dist/components/Sidebar/styles.js +103 -19
  15. package/dist/components/Sidebar/styles.js.map +1 -1
  16. package/dist/index.js +3 -1
  17. package/dist/index.js.map +1 -1
  18. package/dist/types/components/Sidebar/CompanyProfile.d.ts +2 -4
  19. package/dist/types/components/Sidebar/CompanyProfileDropdown.d.ts +5 -13
  20. package/dist/types/components/Sidebar/Sidebar.d.ts +33 -0
  21. package/dist/types/components/Sidebar/index.d.ts +5 -4
  22. package/dist/types/components/Sidebar/styles.d.ts +11 -0
  23. package/dist/types/index.d.ts +2 -2
  24. package/es/StraitsXPersonalAccountDarkLogo-85aa39f5.js +2 -0
  25. package/es/StraitsXPersonalAccountDarkLogo-85aa39f5.js.map +1 -0
  26. package/es/index.js +362 -382
  27. package/es/index.js.map +1 -1
  28. package/es/logos.js +1 -1
  29. package/package.json +1 -1
  30. package/cjs/StraitsXPersonalAccountLightLogo-63cb9f22.js.map +0 -1
  31. package/dist/components/Sidebar/dropdownStyles.js +0 -120
  32. package/dist/components/Sidebar/dropdownStyles.js.map +0 -1
  33. package/dist/types/components/Sidebar/dropdownStyles.d.ts +0 -11
  34. package/es/StraitsXPersonalAccountLightLogo-f003f1e2.js +0 -2
  35. package/es/StraitsXPersonalAccountLightLogo-f003f1e2.js.map +0 -1
@@ -1,120 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.DropdownDivider = exports.DropdownMenuLabel = exports.DropdownSecondaryText = exports.DropdownPrimaryText = exports.DropdownRowContent = exports.DropdownMenuRow = exports.DropdownRow = exports.DropdownSectionLabel = exports.DropdownPanel = void 0;
7
- const styled_1 = __importDefault(require("@emotion/styled"));
8
- const fontStyles_1 = require("../../constants/fontStyles");
9
- const colors_1 = require("../../constants/Colors/colors");
10
- // ─── Company profile dropdown ───
11
- exports.DropdownPanel = styled_1.default.div `
12
- position: absolute;
13
- top: calc(100% + 4px);
14
- left: 0;
15
- z-index: 10;
16
- width: 208px;
17
- box-sizing: border-box;
18
- padding: 8px 0;
19
- border-radius: 12px;
20
- overflow: hidden;
21
- display: flex;
22
- flex-direction: column;
23
- align-items: flex-start;
24
- background-color: ${colors_1.SURFACE.NEUTRAL};
25
- box-shadow:
26
- 0px 12px 16px -4px rgba(10, 13, 18, 0.08),
27
- 0px 4px 6px -2px rgba(10, 13, 18, 0.03);
28
- `;
29
- exports.DropdownSectionLabel = styled_1.default.div `
30
- display: flex;
31
- align-items: center;
32
- padding: 8px 12px;
33
- width: 100%;
34
- box-sizing: border-box;
35
- font-family: ${fontStyles_1.MAIN_FONT}, ${fontStyles_1.FALLBACK_FONT};
36
- font-weight: 400;
37
- font-size: 12px;
38
- line-height: normal;
39
- color: ${colors_1.BASE.ON_NEUTRAL_SECONDARY};
40
- white-space: nowrap;
41
- `;
42
- exports.DropdownRow = styled_1.default.div `
43
- display: flex;
44
- align-items: center;
45
- gap: 8px;
46
- padding: 8px 12px;
47
- width: 100%;
48
- box-sizing: border-box;
49
- cursor: pointer;
50
- background-color: ${(props) => props.active ? colors_1.COMPONENT.SIDEBAR_ACTIVE : 'transparent'};
51
-
52
- &:hover {
53
- background-color: ${(props) => props.active ? colors_1.COMPONENT.SIDEBAR_ACTIVE : colors_1.INTERACTIVE.HOVER_SURFACE};
54
- }
55
- `;
56
- exports.DropdownMenuRow = styled_1.default.div `
57
- display: flex;
58
- align-items: center;
59
- gap: 8px;
60
- padding: 12px;
61
- width: 100%;
62
- box-sizing: border-box;
63
- cursor: pointer;
64
-
65
- &:hover {
66
- background-color: ${colors_1.INTERACTIVE.HOVER_SURFACE};
67
- }
68
- `;
69
- exports.DropdownRowContent = styled_1.default.div `
70
- display: flex;
71
- flex-direction: column;
72
- align-items: flex-start;
73
- justify-content: center;
74
- gap: 4px;
75
- flex: 1 0 0;
76
- min-width: 0;
77
- `;
78
- exports.DropdownPrimaryText = styled_1.default.span `
79
- width: 100%;
80
- font-family: ${fontStyles_1.MAIN_FONT}, ${fontStyles_1.FALLBACK_FONT};
81
- font-weight: 400;
82
- font-size: 16px;
83
- line-height: normal;
84
- color: ${colors_1.BASE.ON_NEUTRAL};
85
- overflow-wrap: break-word;
86
- `;
87
- exports.DropdownSecondaryText = styled_1.default.span `
88
- width: 100%;
89
- font-family: ${fontStyles_1.MAIN_FONT}, ${fontStyles_1.FALLBACK_FONT};
90
- font-weight: 400;
91
- font-size: 14px;
92
- line-height: normal;
93
- color: ${colors_1.BASE.ON_NEUTRAL_SECONDARY};
94
- overflow-wrap: break-word;
95
- `;
96
- exports.DropdownMenuLabel = styled_1.default.span `
97
- width: 100%;
98
- font-family: ${fontStyles_1.MAIN_FONT}, ${fontStyles_1.FALLBACK_FONT};
99
- font-weight: 400;
100
- font-size: 16px;
101
- line-height: normal;
102
- color: ${colors_1.BASE.ON_NEUTRAL_SECONDARY};
103
- overflow-wrap: break-word;
104
- `;
105
- exports.DropdownDivider = styled_1.default.div `
106
- width: 100%;
107
- height: 14px;
108
- flex-shrink: 0;
109
- display: flex;
110
- align-items: center;
111
-
112
- &::after {
113
- content: '';
114
- display: block;
115
- width: calc(100% - 24px);
116
- margin: 0 12px;
117
- border-top: 1px solid ${colors_1.BASE.LINE};
118
- }
119
- `;
120
- //# sourceMappingURL=dropdownStyles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dropdownStyles.js","sourceRoot":"","sources":["../../../src/components/Sidebar/dropdownStyles.ts"],"names":[],"mappings":";;;;;;AAAA,6DAAoC;AACpC,2DAAqE;AACrE,0DAKsC;AAEtC,mCAAmC;AAEtB,QAAA,aAAa,GAAG,gBAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;sBAajB,gBAAO,CAAC,OAAO;;;;CAIpC,CAAA;AAEY,QAAA,oBAAoB,GAAG,gBAAM,CAAC,GAAG,CAAA;;;;;;iBAM7B,sBAAS,KAAK,0BAAa;;;;WAIjC,aAAI,CAAC,oBAAoB;;CAEnC,CAAA;AAEY,QAAA,WAAW,GAAG,gBAAM,CAAC,GAAG,CAAsB;;;;;;;;sBAQrC,CAAC,KAAK,EAAE,EAAE,CAC5B,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,kBAAS,CAAC,cAAc,CAAC,CAAC,CAAC,aAAa;;;wBAGnC,CAAC,KAAK,EAAE,EAAE,CAC5B,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,kBAAS,CAAC,cAAc,CAAC,CAAC,CAAC,oBAAW,CAAC,aAAa;;CAExE,CAAA;AAEY,QAAA,eAAe,GAAG,gBAAM,CAAC,GAAG,CAAA;;;;;;;;;;wBAUjB,oBAAW,CAAC,aAAa;;CAEhD,CAAA;AAEY,QAAA,kBAAkB,GAAG,gBAAM,CAAC,GAAG,CAAA;;;;;;;;CAQ3C,CAAA;AAEY,QAAA,mBAAmB,GAAG,gBAAM,CAAC,IAAI,CAAA;;iBAE7B,sBAAS,KAAK,0BAAa;;;;WAIjC,aAAI,CAAC,UAAU;;CAEzB,CAAA;AAEY,QAAA,qBAAqB,GAAG,gBAAM,CAAC,IAAI,CAAA;;iBAE/B,sBAAS,KAAK,0BAAa;;;;WAIjC,aAAI,CAAC,oBAAoB;;CAEnC,CAAA;AAEY,QAAA,iBAAiB,GAAG,gBAAM,CAAC,IAAI,CAAA;;iBAE3B,sBAAS,KAAK,0BAAa;;;;WAIjC,aAAI,CAAC,oBAAoB;;CAEnC,CAAA;AAEY,QAAA,eAAe,GAAG,gBAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;4BAYb,aAAI,CAAC,IAAI;;CAEpC,CAAA"}
@@ -1,11 +0,0 @@
1
- export declare const DropdownPanel: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
2
- export declare const DropdownSectionLabel: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
3
- export declare const DropdownRow: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
4
- active?: boolean;
5
- }, object>;
6
- export declare const DropdownMenuRow: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
7
- export declare const DropdownRowContent: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
8
- export declare const DropdownPrimaryText: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
9
- export declare const DropdownSecondaryText: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
10
- export declare const DropdownMenuLabel: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
11
- export declare const DropdownDivider: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;