se-design 0.0.97 → 0.0.99
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/assets/icons/attachment.svg +3 -0
- package/dist/assets/icons/banner-demo-img.svg +51 -0
- package/dist/assets/icons/file-red.svg +8 -0
- package/dist/assets/icons/next.svg +3 -0
- package/dist/assets/icons/padlock.svg +5 -0
- package/dist/assets/icons/slideout.svg +12 -0
- package/dist/assets/icons/sms.svg +3 -0
- package/dist/assets/icons/space.svg +3 -0
- package/dist/assets/style.css +1 -1
- package/dist/components/Badge/index.d.ts +11 -0
- package/dist/components/Banner/index.d.ts +18 -0
- package/dist/components/Button/index.d.ts +5 -1
- package/dist/components/Dropdown/index.d.ts +1 -1
- package/dist/components/HamburgerMenu/index.d.ts +2 -4
- package/dist/components/Header/index.d.ts +2 -1
- package/dist/components/Icon/index.d.ts +5 -1
- package/dist/components/KebabMenu/index.d.ts +1 -1
- package/dist/components/LabelChip/index.d.ts +6 -1
- package/dist/components/MenuItem/index.d.ts +1 -1
- package/dist/components/Pagination/index.d.ts +9 -0
- package/dist/components/Popover/index.d.ts +3 -3
- package/dist/components/SidebarOverlay/index.d.ts +2 -1
- package/dist/components/Tabs/index.d.ts +14 -0
- package/dist/components/Toggle/index.d.ts +1 -0
- package/dist/components/Tooltip/index.d.ts +2 -1
- package/dist/components/index.d.ts +4 -1
- package/dist/index.js +39 -33
- package/dist/index.js.map +1 -1
- package/dist/index10.js +30 -22
- package/dist/index10.js.map +1 -1
- package/dist/index11.js +30 -30
- package/dist/index11.js.map +1 -1
- package/dist/index12.js +18 -21
- package/dist/index12.js.map +1 -1
- package/dist/index13.js +100 -5
- package/dist/index13.js.map +1 -1
- package/dist/index14.js +29 -63
- package/dist/index14.js.map +1 -1
- package/dist/index15.js +27 -12
- package/dist/index15.js.map +1 -1
- package/dist/index16.js +70 -36
- package/dist/index16.js.map +1 -1
- package/dist/index17.js +20 -32
- package/dist/index17.js.map +1 -1
- package/dist/index18.js +22 -9
- package/dist/index18.js.map +1 -1
- package/dist/index19.js +58 -18
- package/dist/index19.js.map +1 -1
- package/dist/index20.js +133 -30
- package/dist/index20.js.map +1 -1
- package/dist/index21.js +18 -47
- package/dist/index21.js.map +1 -1
- package/dist/index22.js +44 -5
- package/dist/index22.js.map +1 -1
- package/dist/index23.js +29 -22
- package/dist/index23.js.map +1 -1
- package/dist/index24.js +62 -6
- package/dist/index24.js.map +1 -1
- package/dist/index25.js +27 -2
- package/dist/index25.js.map +1 -1
- package/dist/index26.js +1 -1
- package/dist/index26.js.map +1 -1
- package/dist/index27.js +1 -1
- package/dist/index27.js.map +1 -1
- package/dist/index28.js +1 -1
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +1 -1
- package/dist/index29.js.map +1 -1
- package/dist/index3.js +71 -0
- package/dist/index3.js.map +1 -0
- package/dist/index30.js +1 -1
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +2 -2
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +1 -1
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +2 -149
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +5 -0
- package/dist/index34.js.map +1 -0
- package/dist/index35.js +5 -0
- package/dist/index35.js.map +1 -0
- package/dist/index36.js +2 -2
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +2 -33
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +2 -405
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +2 -2
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +49 -41
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +2 -2
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +2 -10
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +148 -9
- package/dist/index42.js.map +1 -1
- package/dist/index46.js +9 -5
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +9 -5
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +4 -37
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +170 -2
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +63 -14
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +11 -8
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +5 -326
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +5 -49
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +38 -2
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +2 -76
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +7 -92
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +323 -48
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +49 -7
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +2 -5
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +72 -48
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +24 -35
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +93 -2
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +52 -2
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +11 -0
- package/dist/index62.js.map +1 -0
- package/dist/index63.js +8 -0
- package/dist/index63.js.map +1 -0
- package/dist/index64.js +55 -0
- package/dist/index64.js.map +1 -0
- package/dist/index65.js +5 -0
- package/dist/index65.js.map +1 -0
- package/dist/index66.js +5 -0
- package/dist/index66.js.map +1 -0
- package/dist/index7.js +19 -38
- package/dist/index7.js.map +1 -1
- package/dist/index8.js +46 -3
- package/dist/index8.js.map +1 -1
- package/dist/index9.js +33 -24
- package/dist/index9.js.map +1 -1
- package/dist/typographyMixin.scss +79 -0
- package/package.json +11 -5
- package/dist/assets/colors.css +0 -1
- package/dist/assets/src/components/SidebarOverlay/style.css +0 -1
- package/dist/assets/src/components/TableContentLoader/style.css +0 -1
- package/dist/components/Button/Button.stories.d.ts +0 -26
- package/dist/components/HamburgerMenu/HamburgerMenu.stories.d.ts +0 -6
- package/dist/components/Icon/Icon.stories.d.ts +0 -6
- package/dist/components/Icon/Icon.types.d.ts +0 -4
- package/dist/components/KebabMenu/KebabMenu.stories.d.ts +0 -8
- package/dist/components/Modal/Modal.stories.d.ts +0 -12
- package/dist/components/SplitButton/SplitButton.stories.d.ts +0 -13
- package/dist/components/Tag/index.d.ts +0 -6
- package/dist/index43.js +0 -8
- package/dist/index43.js.map +0 -1
- package/dist/index44.js +0 -173
- package/dist/index44.js.map +0 -1
- package/dist/index45.js +0 -14
- package/dist/index45.js.map +0 -1
package/dist/index7.js
CHANGED
@@ -1,43 +1,24 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
`,
|
19
|
-
children: [
|
20
|
-
/* @__PURE__ */ o.jsx(
|
21
|
-
"input",
|
22
|
-
{
|
23
|
-
className: "opacity-0 hidden",
|
24
|
-
type: "checkbox",
|
25
|
-
checked: e,
|
26
|
-
onChange: n,
|
27
|
-
disabled: s
|
28
|
-
}
|
29
|
-
),
|
30
|
-
/* @__PURE__ */ o.jsx(
|
31
|
-
"span",
|
32
|
-
{
|
33
|
-
className: `block w-3 h-3 rounded-full bg-[var(--color-white)] transform transition-transform ${e ? "translate-x-4" : ""}`
|
34
|
-
}
|
35
|
-
)
|
36
|
-
]
|
1
|
+
import s from "react";
|
2
|
+
const d = (e) => {
|
3
|
+
const {
|
4
|
+
label: o,
|
5
|
+
className: r,
|
6
|
+
textColor: t = "var(--color-gray-700)",
|
7
|
+
bgColor: a = "var(--color-blue-300)",
|
8
|
+
textTransform: l = "none",
|
9
|
+
fontWeight: n = ""
|
10
|
+
} = e;
|
11
|
+
return /* @__PURE__ */ s.createElement("span", {
|
12
|
+
className: `se-design-badge inline-block px-1 text-sm rounded leading-5 ${r}`,
|
13
|
+
style: {
|
14
|
+
color: t,
|
15
|
+
backgroundColor: a,
|
16
|
+
textTransform: l,
|
17
|
+
fontWeight: n
|
37
18
|
}
|
38
|
-
);
|
19
|
+
}, o);
|
39
20
|
};
|
40
21
|
export {
|
41
|
-
|
22
|
+
d as Badge
|
42
23
|
};
|
43
24
|
//# sourceMappingURL=index7.js.map
|
package/dist/index7.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index7.js","sources":["../src/components/
|
1
|
+
{"version":3,"file":"index7.js","sources":["../src/components/Badge/index.tsx"],"sourcesContent":["import React, { FC } from 'react';\n\ntype BadgeProps = {\n label: string;\n textColor?: string;\n bgColor?: string;\n className?: string;\n textTransform?: 'uppercase' | 'lowercase' | 'capitalize' | 'none';\n fontWeight?: 'bold' | 'normal';\n};\n\nexport const Badge: FC<BadgeProps> = (props) => {\n const { label, className, textColor = 'var(--color-gray-700)', bgColor = 'var(--color-blue-300)', textTransform = 'none', fontWeight = '' } = props;\n return (\n <span className={`se-design-badge inline-block px-1 text-sm rounded leading-5 ${className}`} style={{ color: textColor, backgroundColor: bgColor, textTransform, fontWeight }}>\n {label}\n </span>\n );\n};\n"],"names":["React__default","Badge","props","label","className","textColor","bgColor","textTransform","fontWeight","React","createElement","style","color","backgroundColor"],"mappings":"AAWO,OAAAA,OAAA;AAAA,MAAMC,IAAyBC,CAAUA,MAAA;AACxC,QAAA;AAAA,IAAEC,OAAAA;AAAAA,IAAOC,WAAAA;AAAAA,IAAWC,WAAAA,IAAY;AAAA,IAAyBC,SAAAA,IAAU;AAAA,IAAyBC,eAAAA,IAAgB;AAAA,IAAQC,YAAAA,IAAa;AAAA,EAAA,IAAON;AAE5IO,SAAAA,gBAAAA,EAAAC,cAAA,QAAA;AAAA,IAAMN,WAAW,+DAA+DA,CAAS;AAAA,IAAIO,OAAO;AAAA,MAAEC,OAAOP;AAAAA,MAAWQ,iBAAiBP;AAAAA,MAASC,eAAAA;AAAAA,MAAeC,YAAAA;AAAAA,IAAAA;AAAAA,KAC9JL,CACG;AAEV;"}
|
package/dist/index8.js
CHANGED
@@ -1,6 +1,49 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import t from "react";
|
2
|
+
import { Icon as u } from "./index4.js";
|
3
|
+
const y = (r) => {
|
4
|
+
const {
|
5
|
+
label: l,
|
6
|
+
icon: e,
|
7
|
+
iconPosition: o = "right",
|
8
|
+
iconRotation: s = "0",
|
9
|
+
textTransform: i = "none",
|
10
|
+
textColor: c = "var(--color-gray-700)",
|
11
|
+
bgColor: m = "var(--color-blue-300)",
|
12
|
+
fontWeight: g = "",
|
13
|
+
size: n = "md",
|
14
|
+
onClick: d = () => {
|
15
|
+
}
|
16
|
+
} = r, x = {
|
17
|
+
0: "",
|
18
|
+
90: "rotate-90",
|
19
|
+
180: "rotate-180",
|
20
|
+
270: "-rotate-90"
|
21
|
+
}, p = {
|
22
|
+
sm: "px-1",
|
23
|
+
md: "px-1.5 py-1",
|
24
|
+
lg: "px-1.5 py-1"
|
25
|
+
}, f = {
|
26
|
+
sm: "text-xs leading-5 font-normal leading-5",
|
27
|
+
md: "text-sm leading-5 font-normal leading-5",
|
28
|
+
lg: "text-base leading-5 font-normal leading-5"
|
29
|
+
}, a = (b) => /* @__PURE__ */ t.createElement(u, {
|
30
|
+
name: b,
|
31
|
+
className: `transition-transform duration-200 ${x[s]}`
|
32
|
+
});
|
33
|
+
return /* @__PURE__ */ t.createElement("div", {
|
34
|
+
className: `se-design-label-chip text-[var(--color-gray-700)] w-fit flex items-center gap-1 text-base font-normal rounded-[6px] leading-4 cursor-pointer ${p[n]}`,
|
35
|
+
style: {
|
36
|
+
color: c,
|
37
|
+
backgroundColor: m,
|
38
|
+
textTransform: i,
|
39
|
+
fontWeight: g
|
40
|
+
},
|
41
|
+
onClick: d
|
42
|
+
}, o === "left" && e && a(e), /* @__PURE__ */ t.createElement("span", {
|
43
|
+
className: `inline-block ${f[n]}`
|
44
|
+
}, l), o === "right" && e && a(e));
|
45
|
+
};
|
3
46
|
export {
|
4
|
-
|
47
|
+
y as LabelChip
|
5
48
|
};
|
6
49
|
//# sourceMappingURL=index8.js.map
|
package/dist/index8.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index8.js","sources":["../src/components/
|
1
|
+
{"version":3,"file":"index8.js","sources":["../src/components/LabelChip/index.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { Icon } from 'components/Icon';\n\ntype LabelChipProps = {\n label: string;\n icon?: string;\n iconPosition?: 'left' | 'right';\n iconRotation?: '0' | '90' | '180' | '270';\n textTransform?: 'uppercase' | 'lowercase' | 'capitalize' | 'none';\n textColor?: string;\n bgColor?: string;\n fontWeight?: 'bold' | 'normal';\n size?: 'sm' | 'md' | 'lg';\n onClick?: () => void;\n};\n\nexport const LabelChip: FC<LabelChipProps> = (props) => {\n const { label, icon, iconPosition = 'right', iconRotation = '0', textTransform = 'none', textColor = 'var(--color-gray-700)', bgColor = 'var(--color-blue-300)', fontWeight = '', size = 'md', onClick = () => {} } = props;\n\n const iconRotationClasses = {\n '0': '',\n '90': 'rotate-90',\n '180': 'rotate-180',\n '270': '-rotate-90'\n }\n\n const sizeClasses = {\n sm: 'px-1',\n md: 'px-1.5 py-1',\n lg: 'px-1.5 py-1'\n }\n const labelClasses = {\n sm: 'text-xs leading-5 font-normal leading-5',\n md: 'text-sm leading-5 font-normal leading-5',\n lg: 'text-base leading-5 font-normal leading-5'\n }\n\n const getIconJsx = (icon: string) => {\n return (\n <Icon\n name={icon}\n className={`transition-transform duration-200 ${iconRotationClasses[iconRotation]}`}\n />\n )\n }\n return (\n <div className={`se-design-label-chip text-[var(--color-gray-700)] w-fit flex items-center gap-1 text-base font-normal rounded-[6px] leading-4 cursor-pointer ${sizeClasses[size]}`} style={{ color: textColor, backgroundColor: bgColor, textTransform, fontWeight }} onClick={onClick}>\n {iconPosition === 'left' && icon && getIconJsx(icon)}\n <span className={`inline-block ${labelClasses[size]}`}>{label}</span>\n {iconPosition === 'right' && icon && getIconJsx(icon)}\n </div>\n );\n};\n"],"names":["React__default","Icon","LabelChip","props","label","icon","iconPosition","iconRotation","textTransform","textColor","bgColor","fontWeight","size","onClick","iconRotationClasses","sizeClasses","sm","md","lg","labelClasses","getIconJsx","React","createElement","name","className","style","color","backgroundColor"],"mappings":"AAgBO,OAAAA,OAAA;AAAA,SAAA,QAAAC,SAAA;AAAA,MAAMC,IAAiCC,CAAUA,MAAA;AAChD,QAAA;AAAA,IAAEC,OAAAA;AAAAA,IAAOC,MAAAA;AAAAA,IAAMC,cAAAA,IAAe;AAAA,IAASC,cAAAA,IAAe;AAAA,IAAKC,eAAAA,IAAgB;AAAA,IAAQC,WAAAA,IAAY;AAAA,IAAyBC,SAAAA,IAAU;AAAA,IAAyBC,YAAAA,IAAa;AAAA,IAAIC,MAAAA,IAAO;AAAA,IAAMC,SAAAA,IAAUA,MAAM;AAAA,IAAA;AAAA,EAAC,IAAMV,GAEhNW,IAAsB;AAAA,IAC1B,GAAK;AAAA,IACL,IAAM;AAAA,IACN,KAAO;AAAA,IACP,KAAO;AAAA,EACT,GAEMC,IAAc;AAAA,IAClBC,IAAI;AAAA,IACJC,IAAI;AAAA,IACJC,IAAI;AAAA,EACN,GACMC,IAAe;AAAA,IACnBH,IAAI;AAAA,IACJC,IAAI;AAAA,IACJC,IAAI;AAAA,EACN,GAEME,IAAaA,CAACf,MAEhBgB,gBAAAA,EAAAC,cAACrB,GAAI;AAAA,IACHsB,MAAMlB;AAAAA,IACNmB,WAAW,qCAAqCV,EAAoBP,CAAY,CAAC;AAAA,EAAA,CAClF;AAIHc,SAAAA,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKE,WAAW,gJAAgJT,EAAYH,CAAI,CAAC;AAAA,IAAIa,OAAO;AAAA,MAAEC,OAAOjB;AAAAA,MAAWkB,iBAAiBjB;AAAAA,MAASF,eAAAA;AAAAA,MAAeG,YAAAA;AAAAA,IAAW;AAAA,IAAGE,SAAAA;AAAAA,EAAAA,GACpQP,MAAiB,UAAUD,KAAQe,EAAWf,CAAI,GACnDiB,gBAAAA,EAAAA,cAAA,QAAA;AAAA,IAAME,WAAW,gBAAgBL,EAAaP,CAAI,CAAC;AAAA,EAAA,GAAKR,CAAY,GACnEE,MAAiB,WAAWD,KAAQe,EAAWf,CAAI,CACjD;AAET;"}
|
package/dist/index9.js
CHANGED
@@ -1,28 +1,37 @@
|
|
1
|
-
import
|
2
|
-
import {
|
3
|
-
const
|
4
|
-
const {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
1
|
+
import e from "react";
|
2
|
+
import { Button as c } from "./index3.js";
|
3
|
+
const u = (l) => {
|
4
|
+
const {
|
5
|
+
title: t,
|
6
|
+
content: n,
|
7
|
+
successButtonType: a,
|
8
|
+
cancelButtonType: s,
|
9
|
+
successButtonText: o,
|
10
|
+
cancelButtonText: m,
|
11
|
+
cancelAction: r,
|
12
|
+
successAction: i
|
13
|
+
} = l;
|
14
|
+
return /* @__PURE__ */ e.createElement("div", {
|
15
|
+
className: "se-design-modal fixed inset-0 flex items-start justify-center z-50 backdrop-brightness-50"
|
16
|
+
}, /* @__PURE__ */ e.createElement("div", {
|
17
|
+
className: "modal-content flex flex-col gap-3 bg-[var(--color-white)] rounded shadow-lg p-8 mt-14 w-[500px]"
|
18
|
+
}, t && /* @__PURE__ */ e.createElement("div", {
|
19
|
+
className: "text-lg font-semibold"
|
20
|
+
}, t), /* @__PURE__ */ e.createElement("p", {
|
21
|
+
className: "leading-normal"
|
22
|
+
}, n), /* @__PURE__ */ e.createElement("div", {
|
23
|
+
className: "flex items-center justify-end gap-4 pt-2"
|
24
|
+
}, /* @__PURE__ */ e.createElement(c, {
|
25
|
+
type: s,
|
26
|
+
onClick: r,
|
27
|
+
label: m
|
28
|
+
}), /* @__PURE__ */ e.createElement(c, {
|
29
|
+
type: a,
|
30
|
+
onClick: i,
|
31
|
+
label: o
|
32
|
+
}))));
|
24
33
|
};
|
25
34
|
export {
|
26
|
-
|
35
|
+
u as Modal
|
27
36
|
};
|
28
37
|
//# sourceMappingURL=index9.js.map
|
package/dist/index9.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index9.js","sources":["../src/components/
|
1
|
+
{"version":3,"file":"index9.js","sources":["../src/components/Modal/index.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { Button } from 'src/components/Button';\n\nexport interface ModalProps {\n title?: string;\n content: string;\n successButtonText: string;\n cancelButtonText: string;\n successButtonType: 'primary' | 'secondary' | 'negative' | 'negative-secondary';\n cancelButtonType: 'primary' | 'secondary' | 'negative' | 'negative-secondary';\n cancelAction?: () => void;\n successAction?: () => void;\n}\n\nexport const Modal: FC<ModalProps> = (props) => {\n const {\n title,\n content,\n successButtonType,\n cancelButtonType,\n successButtonText,\n cancelButtonText,\n cancelAction,\n successAction\n } = props;\n\n return (\n <div className=\"se-design-modal fixed inset-0 flex items-start justify-center z-50 backdrop-brightness-50\">\n <div className=\"modal-content flex flex-col gap-3 bg-[var(--color-white)] rounded shadow-lg p-8 mt-14 w-[500px]\">\n {title && <div className=\"text-lg font-semibold\">{title}</div>}\n <p className=\"leading-normal\">{content}</p>\n <div className=\"flex items-center justify-end gap-4 pt-2\">\n <Button type={cancelButtonType} onClick={cancelAction} label={cancelButtonText} />\n <Button type={successButtonType} onClick={successAction} label={successButtonText} />\n </div>\n </div>\n </div>\n );\n};\n"],"names":["React__default","Button","Modal","props","title","content","successButtonType","cancelButtonType","successButtonText","cancelButtonText","cancelAction","successAction","React","createElement","className","type","onClick","label"],"mappings":"AAcO,OAAAA,OAAA;AAAA,SAAA,UAAAC,SAAA;AAAA,MAAMC,IAAyBC,CAAUA,MAAA;AACxC,QAAA;AAAA,IACJC,OAAAA;AAAAA,IACAC,SAAAA;AAAAA,IACAC,mBAAAA;AAAAA,IACAC,kBAAAA;AAAAA,IACAC,mBAAAA;AAAAA,IACAC,kBAAAA;AAAAA,IACAC,cAAAA;AAAAA,IACAC,eAAAA;AAAAA,EAAAA,IACER;AAGFS,SAAAA,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKC,WAAU;AAAA,EAAA,GACbD,gBAAAA,EAAAA,cAAA,OAAA;AAAA,IAAKC,WAAU;AAAA,EACZV,GAAAA,KAASS,gBAAAA,EAAAA,cAAA,OAAA;AAAA,IAAKC,WAAU;AAAA,EAAyBV,GAAAA,CAAW,GAC7DQ,gBAAAA,EAAAC,cAAA,KAAA;AAAA,IAAGC,WAAU;AAAA,EAAkBT,GAAAA,CAAW,GAC1CO,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKC,WAAU;AAAA,EAAA,GACbD,gBAAAA,EAAAA,cAACZ,GAAM;AAAA,IAACc,MAAMR;AAAAA,IAAkBS,SAASN;AAAAA,IAAcO,OAAOR;AAAAA,EAAAA,CAAmB,GACjFI,gBAAAA,EAAAA,cAACZ,GAAM;AAAA,IAACc,MAAMT;AAAAA,IAAmBU,SAASL;AAAAA,IAAeM,OAAOT;AAAAA,EAAoB,CAAA,CACjF,CACF,CACF;AAET;"}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
// Mixin for typography
|
2
|
+
@mixin heading_semibold {
|
3
|
+
font-size: 24px;
|
4
|
+
line-height: 28px;
|
5
|
+
font-weight: 600;
|
6
|
+
}
|
7
|
+
|
8
|
+
@mixin heading_one_regular {
|
9
|
+
font-size: 20px;
|
10
|
+
line-height: 24px;
|
11
|
+
font-weight: 400;
|
12
|
+
}
|
13
|
+
|
14
|
+
@mixin heading_two_regular{
|
15
|
+
font-size: 18px;
|
16
|
+
line-height: 24px;
|
17
|
+
font-weight: 400;
|
18
|
+
}
|
19
|
+
|
20
|
+
@mixin heading_semibold {
|
21
|
+
font-size: 18px;
|
22
|
+
line-height: 24px;
|
23
|
+
font-weight: 600;
|
24
|
+
}
|
25
|
+
|
26
|
+
@mixin subheading_regular {
|
27
|
+
font-size: 16px;
|
28
|
+
line-height: 20px;
|
29
|
+
font-weight: 400;
|
30
|
+
}
|
31
|
+
|
32
|
+
@mixin subheading_semibold {
|
33
|
+
font-size: 16px;
|
34
|
+
line-height: 20px;
|
35
|
+
font-weight: 600;
|
36
|
+
}
|
37
|
+
|
38
|
+
@mixin body_text_large_regular {
|
39
|
+
font-size: 18px;
|
40
|
+
line-height: 22px;
|
41
|
+
font-weight: 400;
|
42
|
+
}
|
43
|
+
|
44
|
+
@mixin body_text_normal_regular {
|
45
|
+
font-size: 16px;
|
46
|
+
line-height: 24px;
|
47
|
+
font-weight: 400;
|
48
|
+
}
|
49
|
+
|
50
|
+
@mixin body_text_normal_semibold {
|
51
|
+
font-size: 16px;
|
52
|
+
line-height: 24px;
|
53
|
+
font-weight: 600;
|
54
|
+
}
|
55
|
+
|
56
|
+
@mixin body_text_small_semibold {
|
57
|
+
font-size: 14px;
|
58
|
+
line-height: 20px;
|
59
|
+
font-weight: 600;
|
60
|
+
}
|
61
|
+
|
62
|
+
@mixin body_text_small_regular {
|
63
|
+
font-size: 14px;
|
64
|
+
line-height: 20px;
|
65
|
+
font-weight: 400;
|
66
|
+
}
|
67
|
+
|
68
|
+
@mixin caption_regular {
|
69
|
+
font-size: 14px;
|
70
|
+
line-height: 18px;
|
71
|
+
font-weight: 400;
|
72
|
+
}
|
73
|
+
|
74
|
+
@mixin caption_semibold {
|
75
|
+
font-size: 14px;
|
76
|
+
line-height: 18px;
|
77
|
+
font-weight: 600;
|
78
|
+
}
|
79
|
+
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "se-design",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.99",
|
4
4
|
"type": "module",
|
5
5
|
"module": "dist/index.js",
|
6
6
|
"exports": {
|
@@ -8,11 +8,10 @@
|
|
8
8
|
"import": "./dist/index.js"
|
9
9
|
},
|
10
10
|
"./style.css": "./dist/assets/style.css",
|
11
|
-
"./
|
11
|
+
"./typographyMixin.scss": "./dist/typographyMixin.scss"
|
12
12
|
},
|
13
13
|
"files": [
|
14
|
-
"dist"
|
15
|
-
"dist/assets"
|
14
|
+
"dist"
|
16
15
|
],
|
17
16
|
"scripts": {
|
18
17
|
"dev": "vite",
|
@@ -31,6 +30,7 @@
|
|
31
30
|
"access": "public"
|
32
31
|
},
|
33
32
|
"devDependencies": {
|
33
|
+
"@babel/preset-react": "^7.26.3",
|
34
34
|
"@chromatic-com/storybook": "^1.6.1",
|
35
35
|
"@storybook/addon-essentials": "^8.2.7",
|
36
36
|
"@storybook/addon-interactions": "^8.2.7",
|
@@ -63,5 +63,11 @@
|
|
63
63
|
},
|
64
64
|
"dependencies": {
|
65
65
|
"@tailwindcss/forms": "^0.5.10"
|
66
|
-
}
|
66
|
+
},
|
67
|
+
"engines": {
|
68
|
+
"node": ">=14.0.0"
|
69
|
+
},
|
70
|
+
"browserslist": [
|
71
|
+
"supports es6-module"
|
72
|
+
]
|
67
73
|
}
|
package/dist/assets/colors.css
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
:root{--color-blue-50: #F5F9FD;--color-blue-100: #E9F2FC;--color-blue-200: #D6ECFB;--color-blue-300: #D7E6F9;--color-blue-400: #96CBF5;--color-blue-500: #1088E7;--color-blue-600: #0167C2;--color-gray-50: #F2F4F8;--color-gray-100: #EAEFF9;--color-gray-200: #E4E9F1;--color-gray-300: #E1E4EB;--color-gray-400: #C9D4E3;--color-gray-500: #A1B3CF;--color-gray-600: #92A1B9;--color-gray-700: #415575;--color-gray-800: #2D3A48;--color-gray-900: #1B2636;--color-green-50: #E5F7ED;--color-green-400: #7BE79C;--color-green-500: #56CF8A;--color-green-700: #219653;--color-yellow-50: #FFF2D7;--color-yellow-400: #954A29;--color-red-50: #FEEBE6;--color-red-400: #FE4773;--color-red-700: #CB384E;--color-white: #FFFFFF;--color-purple-50: #F6F3FF;--color-purple-100: #F5EBFD;--color-purple-200: #F1E4FF;--color-purple-300: #EAD5FF;--color-purple-800: #9335F0}
|
@@ -1 +0,0 @@
|
|
1
|
-
.sidebar-overlay-container{z-index:1;height:100%;transition:all .3s ease-in-out}.sidebar-overlay-container .overlay-content{height:100%;display:flex;flex-direction:column}.sidebar-overlay-container.left-aligned{left:0;transform:translate(-100%)}.sidebar-overlay-container.left-aligned.open-sidebar{transform:translate(0)}.sidebar-overlay-container.right-aligned{right:0;transform:translate(100%)}.sidebar-overlay-container.right-aligned.open-sidebar{transform:translate(0)}.sidebar-overlay-container.abs{position:absolute}.sidebar-overlay-container.fxd{position:fixed}.sidebar-overlay-container.right-aligned{box-shadow:0 0 24px #0000000d}.sidebar-overlay-container.left-aligned{box-shadow:7px 0 14px #00000017}.sidebar-overlay-container .close{height:100%}.sidebar-overlay-container .overlay-close{position:absolute;right:15px;cursor:pointer;margin-top:5px}
|
@@ -1 +0,0 @@
|
|
1
|
-
.loader td{padding:1rem 1rem 1rem 0}.loader td div{height:20px;width:80%;border-radius:72px}.loader td:last-child div{width:100%}.loader .loading-animation{animation:shimmer 3s infinite linear;background:linear-gradient(to right,#f4f8fd 5%,#f0f3f7 25%,#f4f8fd 35%);background-size:1000px 100%}@keyframes shimmer{0%{background-position:-1000px 0}to{background-position:1000px 0}}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
2
|
-
import { ButtonProps } from '.';
|
3
|
-
declare const meta: {
|
4
|
-
title: string;
|
5
|
-
component: import('react').FC<ButtonProps>;
|
6
|
-
args: {
|
7
|
-
onClick: import('@vitest/spy').Mock<(...args: any[]) => any>;
|
8
|
-
};
|
9
|
-
parameters: {
|
10
|
-
layout: string;
|
11
|
-
};
|
12
|
-
tags: string[];
|
13
|
-
};
|
14
|
-
export default meta;
|
15
|
-
type Story = StoryObj<ButtonProps>;
|
16
|
-
export declare const Primary: Story;
|
17
|
-
export declare const Secondary: Story;
|
18
|
-
export declare const Purchase: Story;
|
19
|
-
export declare const PurchaseSecondary: Story;
|
20
|
-
export declare const Negative: Story;
|
21
|
-
export declare const NegativeSecondary: Story;
|
22
|
-
export declare const Disabled: Story;
|
23
|
-
export declare const PrimaryWithLeftIcon: Story;
|
24
|
-
export declare const PrimaryWithRightIcon: Story;
|
25
|
-
export declare const PrimarySmall: Story;
|
26
|
-
export declare const SecondaryLink: Story;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
2
|
-
import { KebabMenu } from './index';
|
3
|
-
declare const meta: Meta<typeof KebabMenu>;
|
4
|
-
export default meta;
|
5
|
-
type Story = StoryObj<typeof meta>;
|
6
|
-
export declare const PrimaryKebabMenu: Story;
|
7
|
-
export declare const SecondaryKebabMenu: Story;
|
8
|
-
export declare const KebabMenuWithSelectedItem: Story;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
2
|
-
import { ModalProps } from '.';
|
3
|
-
declare const meta: {
|
4
|
-
title: string;
|
5
|
-
component: import('react').FC<ModalProps>;
|
6
|
-
tags: string[];
|
7
|
-
};
|
8
|
-
export default meta;
|
9
|
-
type Story = StoryObj<ModalProps>;
|
10
|
-
export declare const Default: Story;
|
11
|
-
export declare const modalWithPrimaryButton: Story;
|
12
|
-
export declare const modalWithoutHeader: Story;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
2
|
-
import { SplitButtonProps } from '.';
|
3
|
-
declare const meta: {
|
4
|
-
title: string;
|
5
|
-
component: import('react').FC<SplitButtonProps>;
|
6
|
-
parameters: {
|
7
|
-
layout: string;
|
8
|
-
};
|
9
|
-
tags: string[];
|
10
|
-
};
|
11
|
-
export default meta;
|
12
|
-
type Story = StoryObj<SplitButtonProps>;
|
13
|
-
export declare const Primary: Story;
|
package/dist/index43.js
DELETED
package/dist/index43.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index43.js","sources":["../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"],"sourcesContent":["import setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _inheritsLoose(t, o) {\n t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o);\n}\nexport { _inheritsLoose as default };"],"names":["_setPrototypeOf","_inheritsLoose","t","o","setPrototypeOf"],"mappings":"AACA,OAAAA,OAAA;AAAA,SAASC,EAAeC,GAAGC,GAAG;AAC5B,EAAAD,EAAE,YAAY,OAAO,OAAOC,EAAE,SAAS,GAAGD,EAAE,UAAU,cAAcA,GAAGE,EAAeF,GAAGC,CAAC;AAC5F;","x_google_ignoreList":[0]}
|