@spesia/ui 1.8.21 → 1.9.7
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/README.md +1 -1
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/client.d.ts +7 -0
- package/dist/client.js +16 -0
- package/dist/components/Logo/Logo.js +121 -0
- package/dist/components/Logo3d/Logo3d.js +61 -0
- package/dist/components/checkbox/Checked.js +47 -0
- package/dist/components/checkbox/Unchecked.js +70 -0
- package/dist/components/chip-list/ChipList.js +97 -0
- package/dist/components/container-grid/ContainerGrid.js +110 -0
- package/dist/components/date-picker/DatePicker/DatePicker.js +62 -0
- package/dist/components/date-picker/PeriodPicker/PeriodPicker.js +374 -0
- package/dist/components/date-picker/utils.js +27 -0
- package/dist/components/filters/Checked.js +26 -0
- package/dist/components/filters/FilterList.js +121 -0
- package/dist/components/filters/Unchecked.js +26 -0
- package/dist/components/index.d.ts +0 -9
- package/dist/components/radio/Checked.js +34 -0
- package/dist/components/radio/Unchecked.js +48 -0
- package/dist/components/trending-chip/TrendingChip.js +93 -0
- package/dist/helpers/suitCx.js +17 -0
- package/dist/helpers/utils.js +11 -0
- package/dist/hooks/useContainerDimension.js +23 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +13 -37197
- package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js +42 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultOptions.js +7 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/formatters.js +515 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.js +11 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/protectedTokens.js +20 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.js +6 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.js +8 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarDays.js +16 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/format.js +59 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDayOfYear.js +11 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeek.js +12 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeekYear.js +15 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeek.js +12 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeekYear.js +17 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isDate.js +7 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameDay.js +14 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameMonth.js +13 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameYear.js +13 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isValid.js +9 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.js +21 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfDay.js +9 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfISOWeek.js +8 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfISOWeekYear.js +11 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.js +11 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeekYear.js +13 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfYear.js +9 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.js +8 -0
- package/dist/styles/alert/alert.js +70 -0
- package/dist/styles/button/button.js +195 -0
- package/dist/styles/card/card.js +16 -0
- package/dist/styles/checkbox/checkbox.js +46 -0
- package/dist/styles/chip/chip.js +115 -0
- package/dist/styles/colors.js +435 -0
- package/dist/styles/dialog/dialog.js +34 -0
- package/dist/styles/form/form.js +18 -0
- package/dist/styles/index.js +53 -0
- package/dist/styles/input/input.js +127 -0
- package/dist/styles/list/list.js +42 -0
- package/dist/styles/palette.js +150 -0
- package/dist/styles/radio/radio.js +37 -0
- package/dist/styles/slider/slider.js +55 -0
- package/dist/styles/switch/switch.js +63 -0
- package/dist/styles/tab/tab.js +70 -0
- package/dist/styles/tooltip/tooltip.js +19 -0
- package/dist/styles/typography.js +139 -0
- package/dist/themes.js +35 -0
- package/package.json +6 -1
- /package/dist/components/{TrendingChip → trending-chip}/TrendingChip.d.ts +0 -0
package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.js
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { buildMatchFn as a } from "../../_lib/buildMatchFn.js";
|
|
2
|
+
import { buildMatchPatternFn as i } from "../../_lib/buildMatchPatternFn.js";
|
|
3
|
+
const n = /^(\d+)(th|st|nd|rd)?/i, e = /\d+/i, r = {
|
|
4
|
+
narrow: /^(b|a)/i,
|
|
5
|
+
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
6
|
+
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
7
|
+
}, s = {
|
|
8
|
+
any: [/^b/i, /^(a|c)/i]
|
|
9
|
+
}, o = {
|
|
10
|
+
narrow: /^[1234]/i,
|
|
11
|
+
abbreviated: /^q[1234]/i,
|
|
12
|
+
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
13
|
+
}, d = {
|
|
14
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
15
|
+
}, m = {
|
|
16
|
+
narrow: /^[jfmasond]/i,
|
|
17
|
+
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
18
|
+
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
19
|
+
}, h = {
|
|
20
|
+
narrow: [
|
|
21
|
+
/^j/i,
|
|
22
|
+
/^f/i,
|
|
23
|
+
/^m/i,
|
|
24
|
+
/^a/i,
|
|
25
|
+
/^m/i,
|
|
26
|
+
/^j/i,
|
|
27
|
+
/^j/i,
|
|
28
|
+
/^a/i,
|
|
29
|
+
/^s/i,
|
|
30
|
+
/^o/i,
|
|
31
|
+
/^n/i,
|
|
32
|
+
/^d/i
|
|
33
|
+
],
|
|
34
|
+
any: [
|
|
35
|
+
/^ja/i,
|
|
36
|
+
/^f/i,
|
|
37
|
+
/^mar/i,
|
|
38
|
+
/^ap/i,
|
|
39
|
+
/^may/i,
|
|
40
|
+
/^jun/i,
|
|
41
|
+
/^jul/i,
|
|
42
|
+
/^au/i,
|
|
43
|
+
/^s/i,
|
|
44
|
+
/^o/i,
|
|
45
|
+
/^n/i,
|
|
46
|
+
/^d/i
|
|
47
|
+
]
|
|
48
|
+
}, c = {
|
|
49
|
+
narrow: /^[smtwf]/i,
|
|
50
|
+
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
51
|
+
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
52
|
+
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
53
|
+
}, u = {
|
|
54
|
+
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
55
|
+
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
56
|
+
}, P = {
|
|
57
|
+
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
58
|
+
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
59
|
+
}, y = {
|
|
60
|
+
any: {
|
|
61
|
+
am: /^a/i,
|
|
62
|
+
pm: /^p/i,
|
|
63
|
+
midnight: /^mi/i,
|
|
64
|
+
noon: /^no/i,
|
|
65
|
+
morning: /morning/i,
|
|
66
|
+
afternoon: /afternoon/i,
|
|
67
|
+
evening: /evening/i,
|
|
68
|
+
night: /night/i
|
|
69
|
+
}
|
|
70
|
+
}, l = {
|
|
71
|
+
ordinalNumber: i({
|
|
72
|
+
matchPattern: n,
|
|
73
|
+
parsePattern: e,
|
|
74
|
+
valueCallback: (t) => parseInt(t, 10)
|
|
75
|
+
}),
|
|
76
|
+
era: a({
|
|
77
|
+
matchPatterns: r,
|
|
78
|
+
defaultMatchWidth: "wide",
|
|
79
|
+
parsePatterns: s,
|
|
80
|
+
defaultParseWidth: "any"
|
|
81
|
+
}),
|
|
82
|
+
quarter: a({
|
|
83
|
+
matchPatterns: o,
|
|
84
|
+
defaultMatchWidth: "wide",
|
|
85
|
+
parsePatterns: d,
|
|
86
|
+
defaultParseWidth: "any",
|
|
87
|
+
valueCallback: (t) => t + 1
|
|
88
|
+
}),
|
|
89
|
+
month: a({
|
|
90
|
+
matchPatterns: m,
|
|
91
|
+
defaultMatchWidth: "wide",
|
|
92
|
+
parsePatterns: h,
|
|
93
|
+
defaultParseWidth: "any"
|
|
94
|
+
}),
|
|
95
|
+
day: a({
|
|
96
|
+
matchPatterns: c,
|
|
97
|
+
defaultMatchWidth: "wide",
|
|
98
|
+
parsePatterns: u,
|
|
99
|
+
defaultParseWidth: "any"
|
|
100
|
+
}),
|
|
101
|
+
dayPeriod: a({
|
|
102
|
+
matchPatterns: P,
|
|
103
|
+
defaultMatchWidth: "any",
|
|
104
|
+
parsePatterns: y,
|
|
105
|
+
defaultParseWidth: "any"
|
|
106
|
+
})
|
|
107
|
+
};
|
|
108
|
+
export {
|
|
109
|
+
l as match
|
|
110
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { formatDistance as o } from "./en-US/_lib/formatDistance.js";
|
|
2
|
+
import { formatLong as t } from "./en-US/_lib/formatLong.js";
|
|
3
|
+
import { formatRelative as a } from "./en-US/_lib/formatRelative.js";
|
|
4
|
+
import { localize as r } from "./en-US/_lib/localize.js";
|
|
5
|
+
import { match as e } from "./en-US/_lib/match.js";
|
|
6
|
+
const s = {
|
|
7
|
+
code: "en-US",
|
|
8
|
+
formatDistance: o,
|
|
9
|
+
formatLong: t,
|
|
10
|
+
formatRelative: a,
|
|
11
|
+
localize: r,
|
|
12
|
+
match: e,
|
|
13
|
+
options: {
|
|
14
|
+
weekStartsOn: 0,
|
|
15
|
+
firstWeekContainsDate: 1
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
s as default,
|
|
20
|
+
s as enUS
|
|
21
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { constructFrom as a } from "./constructFrom.js";
|
|
2
|
+
import { getISOWeekYear as f } from "./getISOWeekYear.js";
|
|
3
|
+
import { startOfISOWeek as s } from "./startOfISOWeek.js";
|
|
4
|
+
function O(t, e) {
|
|
5
|
+
const o = f(t, e), r = a(t, 0);
|
|
6
|
+
return r.setFullYear(o, 0, 4), r.setHours(0, 0, 0, 0), s(r);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
O as default,
|
|
10
|
+
O as startOfISOWeekYear
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getDefaultOptions as s } from "./_lib/defaultOptions.js";
|
|
2
|
+
import { toDate as w } from "./toDate.js";
|
|
3
|
+
function m(u, e) {
|
|
4
|
+
var c, O, l, k;
|
|
5
|
+
const a = s(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((O = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : O.weekStartsOn) ?? a.weekStartsOn ?? ((k = (l = a.locale) == null ? void 0 : l.options) == null ? void 0 : k.weekStartsOn) ?? 0, t = w(u, e == null ? void 0 : e.in), f = t.getDay(), d = (f < r ? 7 : 0) + f - r;
|
|
6
|
+
return t.setDate(t.getDate() - d), t.setHours(0, 0, 0, 0), t;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
m as default,
|
|
10
|
+
m as startOfWeek
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { getDefaultOptions as W } from "./_lib/defaultOptions.js";
|
|
2
|
+
import { constructFrom as n } from "./constructFrom.js";
|
|
3
|
+
import { getWeekYear as u } from "./getWeekYear.js";
|
|
4
|
+
import { startOfWeek as D } from "./startOfWeek.js";
|
|
5
|
+
function g(r, e) {
|
|
6
|
+
var f, s, c, k;
|
|
7
|
+
const a = W(), l = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((s = (f = e == null ? void 0 : e.locale) == null ? void 0 : f.options) == null ? void 0 : s.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((k = (c = a.locale) == null ? void 0 : c.options) == null ? void 0 : k.firstWeekContainsDate) ?? 1, m = u(r, e), t = n((e == null ? void 0 : e.in) || r, 0);
|
|
8
|
+
return t.setFullYear(m, 0, l), t.setHours(0, 0, 0, 0), D(t, e);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
g as default,
|
|
12
|
+
g as startOfWeekYear
|
|
13
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { colors as r } from "../colors.js";
|
|
2
|
+
const n = {
|
|
3
|
+
MuiAlert: {
|
|
4
|
+
styleOverrides: {
|
|
5
|
+
root: (t) => {
|
|
6
|
+
if (!t.ownerState.severity)
|
|
7
|
+
return;
|
|
8
|
+
const e = t.theme.palette[t.ownerState.severity];
|
|
9
|
+
if (e)
|
|
10
|
+
return {
|
|
11
|
+
borderRadius: t.theme.spacing(2),
|
|
12
|
+
borderColor: e.main,
|
|
13
|
+
"&.MuiAlert-filled": {
|
|
14
|
+
color: e.contrastText,
|
|
15
|
+
background: e.main,
|
|
16
|
+
".MuiAlert-icon > svg path": {
|
|
17
|
+
fill: e.contrastText
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"&.MuiAlert-dark": {
|
|
21
|
+
color: e.contrastTextAlt,
|
|
22
|
+
background: e.dark,
|
|
23
|
+
".MuiAlert-icon > svg path": {
|
|
24
|
+
fill: e.contrastTextAlt
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
".MuiAlertTitle-root": {
|
|
28
|
+
fontWeight: "bold",
|
|
29
|
+
fontSize: 14
|
|
30
|
+
},
|
|
31
|
+
".MuiAlert-message": {
|
|
32
|
+
fontWeight: 400
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
standard: (t) => {
|
|
37
|
+
if (!t.ownerState.severity)
|
|
38
|
+
return {
|
|
39
|
+
color: t.theme.palette.mode === "light" ? r.secondary.grey[70] : r.secondary.grey[20],
|
|
40
|
+
background: t.theme.palette.mode === "light" ? r.secondary.grey[20] : r.secondary.grey[70]
|
|
41
|
+
};
|
|
42
|
+
const e = t.theme.palette[t.ownerState.severity];
|
|
43
|
+
if (e)
|
|
44
|
+
return {
|
|
45
|
+
color: t.theme.palette.mode === "light" ? r.secondary.grey[70] : r.secondary.grey[20],
|
|
46
|
+
background: e.transparent,
|
|
47
|
+
".MuiAlert-icon": {
|
|
48
|
+
color: e.main
|
|
49
|
+
},
|
|
50
|
+
".MuiAlert-icon > svg path": {
|
|
51
|
+
fill: e.main
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
},
|
|
55
|
+
outlined: (t) => {
|
|
56
|
+
if (!t.ownerState.severity)
|
|
57
|
+
return;
|
|
58
|
+
const e = t.theme.palette[t.ownerState.severity];
|
|
59
|
+
if (e)
|
|
60
|
+
return {
|
|
61
|
+
border: "1px solid",
|
|
62
|
+
borderColor: e.main
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
export {
|
|
69
|
+
n as alertStyles
|
|
70
|
+
};
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { darken as s } from "@mui/material";
|
|
2
|
+
import { colors as e, primitives as a } from "../colors.js";
|
|
3
|
+
const x = {
|
|
4
|
+
MuiButtonBase: {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
disableRipple: !0
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
MuiButton: {
|
|
10
|
+
defaultProps: {
|
|
11
|
+
disableElevation: !0
|
|
12
|
+
},
|
|
13
|
+
styleOverrides: {
|
|
14
|
+
root: (r) => ({
|
|
15
|
+
fontWeight: 500,
|
|
16
|
+
textTransform: "none",
|
|
17
|
+
height: "48px",
|
|
18
|
+
boxShadow: "none",
|
|
19
|
+
fontSize: "15px",
|
|
20
|
+
borderRadius: a.borderRadius.full,
|
|
21
|
+
padding: `${r.theme.spacing(4)} ${r.theme.spacing(6)}`,
|
|
22
|
+
"&.MuiButton-sizeLarge": {
|
|
23
|
+
fontSize: "17px",
|
|
24
|
+
padding: `${r.theme.spacing(5)} ${r.theme.spacing(8)}`,
|
|
25
|
+
borderRadius: a.borderRadius.full,
|
|
26
|
+
height: "56px"
|
|
27
|
+
},
|
|
28
|
+
"&.MuiButton-sizeSmall": {
|
|
29
|
+
fontSize: "15px",
|
|
30
|
+
padding: `${r.theme.spacing(3)} ${r.theme.spacing(4)}`,
|
|
31
|
+
borderRadius: a.borderRadius.full,
|
|
32
|
+
height: "40px"
|
|
33
|
+
},
|
|
34
|
+
"&:disabled": {
|
|
35
|
+
opacity: 0.5
|
|
36
|
+
}
|
|
37
|
+
}),
|
|
38
|
+
contained: (r) => {
|
|
39
|
+
var t;
|
|
40
|
+
if (!r.ownerState.color) return;
|
|
41
|
+
const o = (t = r.theme.vars) == null ? void 0 : t.palette[r.ownerState.color];
|
|
42
|
+
if (o)
|
|
43
|
+
return {
|
|
44
|
+
background: o.main,
|
|
45
|
+
color: o.contrastText,
|
|
46
|
+
border: `1px solid ${o.main}`,
|
|
47
|
+
boxShadow: "none",
|
|
48
|
+
fontWeight: 600,
|
|
49
|
+
"&:hover": {
|
|
50
|
+
background: o.hover,
|
|
51
|
+
color: o.contrastText,
|
|
52
|
+
borderColor: o.hover
|
|
53
|
+
},
|
|
54
|
+
"&:focus": {
|
|
55
|
+
background: o.focus,
|
|
56
|
+
color: o.contrastText,
|
|
57
|
+
borderColor: o.focus
|
|
58
|
+
},
|
|
59
|
+
"&:active": {
|
|
60
|
+
background: o.active,
|
|
61
|
+
color: o.text,
|
|
62
|
+
borderColor: o.focus
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
outlined: (r) => {
|
|
67
|
+
var t;
|
|
68
|
+
if (!r.ownerState.color) return;
|
|
69
|
+
const o = (t = r.theme.vars) == null ? void 0 : t.palette[r.ownerState.color];
|
|
70
|
+
if (o)
|
|
71
|
+
return {
|
|
72
|
+
background: "transparent",
|
|
73
|
+
color: o.text,
|
|
74
|
+
boxShadow: "none",
|
|
75
|
+
border: `1px solid ${o.border}`,
|
|
76
|
+
borderRadius: a.borderRadius.full,
|
|
77
|
+
"&:hover": {
|
|
78
|
+
background: o.light,
|
|
79
|
+
borderColor: o.light
|
|
80
|
+
},
|
|
81
|
+
"&:focus": {
|
|
82
|
+
background: o.lighter,
|
|
83
|
+
borderColor: o.lighter
|
|
84
|
+
},
|
|
85
|
+
"&:active": {
|
|
86
|
+
background: o.border,
|
|
87
|
+
borderColor: o.border,
|
|
88
|
+
color: o.contrastTextAlt
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
text: (r) => {
|
|
93
|
+
var t;
|
|
94
|
+
if (!r.ownerState.color) return;
|
|
95
|
+
const o = (t = r.theme.vars) == null ? void 0 : t.palette[r.ownerState.color];
|
|
96
|
+
if (o)
|
|
97
|
+
return {
|
|
98
|
+
background: "transparent",
|
|
99
|
+
color: o.text,
|
|
100
|
+
boxShadow: "none",
|
|
101
|
+
border: "none",
|
|
102
|
+
"&:hover": {
|
|
103
|
+
background: "transparent",
|
|
104
|
+
color: o.text
|
|
105
|
+
},
|
|
106
|
+
"&:focus": {
|
|
107
|
+
background: "transparent",
|
|
108
|
+
color: o.dark
|
|
109
|
+
},
|
|
110
|
+
"&:active": {
|
|
111
|
+
background: "transparent",
|
|
112
|
+
color: o.text,
|
|
113
|
+
textDecoration: "underline"
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
},
|
|
117
|
+
containedPrimary: ({ theme: r }) => ({
|
|
118
|
+
backgroundColor: r.palette.background.primaryButton,
|
|
119
|
+
borderColor: e.primary.brown[50],
|
|
120
|
+
color: r.palette.background.coralBold,
|
|
121
|
+
".MuiButton-icon": { color: r.palette.text.tertiaryIcon },
|
|
122
|
+
"&:hover": {
|
|
123
|
+
backgroundColor: e.primary.brown[80],
|
|
124
|
+
color: r.palette.text.contrastText
|
|
125
|
+
},
|
|
126
|
+
"&:focus": {
|
|
127
|
+
backgroundColor: e.primary.brown[80],
|
|
128
|
+
color: r.palette.text.contrastText
|
|
129
|
+
},
|
|
130
|
+
"&:disabled": {
|
|
131
|
+
backgroundColor: r.palette.background.primaryButton,
|
|
132
|
+
borderColor: e.primary.brown[50],
|
|
133
|
+
color: r.palette.text.contrastText,
|
|
134
|
+
opacity: 0.5
|
|
135
|
+
}
|
|
136
|
+
}),
|
|
137
|
+
outlinedPrimary: ({ theme: r }) => {
|
|
138
|
+
var o, t, n, l, d, i, c, u, b;
|
|
139
|
+
return {
|
|
140
|
+
backgroundColor: (o = r.vars) == null ? void 0 : o.palette.background.secondaryButton,
|
|
141
|
+
color: (t = r.vars) == null ? void 0 : t.palette.text.primary,
|
|
142
|
+
"&:hover": {
|
|
143
|
+
color: (n = r.vars) == null ? void 0 : n.palette.text.primary,
|
|
144
|
+
backgroundColor: (l = r.vars) == null ? void 0 : l.palette.background.default,
|
|
145
|
+
borderColor: e.primary.beige[20],
|
|
146
|
+
...r.applyStyles("dark", {
|
|
147
|
+
borderColor: e.primary.beige[60]
|
|
148
|
+
})
|
|
149
|
+
},
|
|
150
|
+
"&:focus": {
|
|
151
|
+
color: (d = r.vars) == null ? void 0 : d.palette.text.secondary,
|
|
152
|
+
backgroundColor: (i = r.vars) == null ? void 0 : i.palette.background.default,
|
|
153
|
+
borderColor: e.primary.beige[20],
|
|
154
|
+
...r.applyStyles("dark", {
|
|
155
|
+
borderColor: e.primary.beige[60]
|
|
156
|
+
})
|
|
157
|
+
},
|
|
158
|
+
"&:disabled": {
|
|
159
|
+
backgroundColor: (c = r.vars) == null ? void 0 : c.palette.background.secondaryButton,
|
|
160
|
+
color: (u = r.vars) == null ? void 0 : u.palette.text.primary,
|
|
161
|
+
opacity: 0.5
|
|
162
|
+
},
|
|
163
|
+
borderColor: e.primary.beige[20],
|
|
164
|
+
...r.applyStyles("dark", {
|
|
165
|
+
borderColor: e.primary.beige[60]
|
|
166
|
+
}),
|
|
167
|
+
".MuiButton-icon": { color: (b = r.vars) == null ? void 0 : b.palette.text.secondaryIcon }
|
|
168
|
+
};
|
|
169
|
+
},
|
|
170
|
+
transparent: ({ theme: r }) => ({
|
|
171
|
+
border: "1px solid rgba(255, 243, 240, 0.60)",
|
|
172
|
+
boxShadow: "0 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 1px 1px 0 rgba(255, 255, 255, 0.45) inset",
|
|
173
|
+
backgroundColor: r.palette.background.tertiaryButton,
|
|
174
|
+
"&:hover": {
|
|
175
|
+
backgroundColor: s(
|
|
176
|
+
r.palette.background.tertiaryButton,
|
|
177
|
+
0.05
|
|
178
|
+
)
|
|
179
|
+
}
|
|
180
|
+
}),
|
|
181
|
+
textPrimary: ({ theme: r }) => {
|
|
182
|
+
var o, t;
|
|
183
|
+
return {
|
|
184
|
+
color: (o = r.vars) == null ? void 0 : o.palette.text.primary,
|
|
185
|
+
"&:hover": {
|
|
186
|
+
color: (t = r.vars) == null ? void 0 : t.palette.text.secondary
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
export {
|
|
194
|
+
x as buttonStyles
|
|
195
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
2
|
+
import s from "../../components/checkbox/Checked.js";
|
|
3
|
+
import l from "../../components/checkbox/Unchecked.js";
|
|
4
|
+
const C = {
|
|
5
|
+
MuiCheckbox: {
|
|
6
|
+
defaultProps: {
|
|
7
|
+
icon: /* @__PURE__ */ b(l, {}),
|
|
8
|
+
checkedIcon: /* @__PURE__ */ b(s, {})
|
|
9
|
+
},
|
|
10
|
+
styleOverrides: {
|
|
11
|
+
root: (e) => {
|
|
12
|
+
var o, c, r, i, h, t, k, a;
|
|
13
|
+
return {
|
|
14
|
+
border: "none",
|
|
15
|
+
"&.MuiCheckbox-colorError svg.Checkbox-icon .Checkbox-border": {
|
|
16
|
+
fill: (o = e.theme.vars) == null ? void 0 : o.palette.error.main
|
|
17
|
+
},
|
|
18
|
+
"&.MuiCheckbox-colorError svg.Checkbox-icon .Checkbox-checkmark": {
|
|
19
|
+
stroke: (c = e.theme.vars) == null ? void 0 : c.palette.error.main
|
|
20
|
+
},
|
|
21
|
+
"&.MuiCheckbox-colorSuccess svg.Checkbox-icon .Checkbox-border": {
|
|
22
|
+
fill: (r = e.theme.vars) == null ? void 0 : r.palette.success.main
|
|
23
|
+
},
|
|
24
|
+
"&.MuiCheckbox-colorSuccess svg.Checkbox-icon .Checkbox-checkmark": {
|
|
25
|
+
stroke: (i = e.theme.vars) == null ? void 0 : i.palette.success.main
|
|
26
|
+
},
|
|
27
|
+
"&.MuiCheckbox-colorWarning svg.Checkbox-icon .Checkbox-border": {
|
|
28
|
+
fill: (h = e.theme.vars) == null ? void 0 : h.palette.warning.main
|
|
29
|
+
},
|
|
30
|
+
"&.MuiCheckbox-colorWarning svg.Checkbox-icon .Checkbox-checkmark": {
|
|
31
|
+
stroke: (t = e.theme.vars) == null ? void 0 : t.palette.warning.main
|
|
32
|
+
},
|
|
33
|
+
"&.Mui-disabled svg.Checkbox-icon .Checkbox-border": {
|
|
34
|
+
fill: (k = e.theme.vars) == null ? void 0 : k.palette.primary.lighter
|
|
35
|
+
},
|
|
36
|
+
"&.Mui-disabled svg.Checkbox-icon .Checkbox-checkmark": {
|
|
37
|
+
stroke: (a = e.theme.vars) == null ? void 0 : a.palette.primary.lighter
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
C as checkboxStyles
|
|
46
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import g from "lodash/capitalize";
|
|
2
|
+
const c = (r, a) => {
|
|
3
|
+
var l, t, i;
|
|
4
|
+
const o = g(r.toString());
|
|
5
|
+
if (o)
|
|
6
|
+
return {
|
|
7
|
+
[`&.MuiChip-color${o}`]: {
|
|
8
|
+
color: (l = a.vars) == null ? void 0 : l.palette[r].dark,
|
|
9
|
+
border: `1px solid ${(t = a.vars) == null ? void 0 : t.palette[r].main}`,
|
|
10
|
+
"&:hover": {
|
|
11
|
+
background: (i = a.vars) == null ? void 0 : i.palette[r].lighter
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
}, e = (r, a) => {
|
|
16
|
+
var l, t, i, d;
|
|
17
|
+
const o = g(r.toString());
|
|
18
|
+
if (o)
|
|
19
|
+
return {
|
|
20
|
+
[`&.MuiChip-color${o}`]: {
|
|
21
|
+
color: (l = a.vars) == null ? void 0 : l.palette[r].dark,
|
|
22
|
+
background: (t = a.vars) == null ? void 0 : t.palette[r].lighter,
|
|
23
|
+
border: `1px solid ${(i = a.vars) == null ? void 0 : i.palette[r].main}`,
|
|
24
|
+
"&:hover": {
|
|
25
|
+
background: (d = a.vars) == null ? void 0 : d.palette[r].light
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}, v = {
|
|
30
|
+
MuiChip: {
|
|
31
|
+
styleOverrides: {
|
|
32
|
+
root: ({ theme: r }) => {
|
|
33
|
+
var a, o, l, t, i, d, n, s, p, u, b;
|
|
34
|
+
return {
|
|
35
|
+
fontWeight: "500",
|
|
36
|
+
"&.MuiChip-sizeSmall": {
|
|
37
|
+
height: 24,
|
|
38
|
+
fontSize: 12
|
|
39
|
+
},
|
|
40
|
+
"&.MuiChip-sizeMedium": {
|
|
41
|
+
height: 32,
|
|
42
|
+
fontSize: 14
|
|
43
|
+
},
|
|
44
|
+
background: (a = r.vars) == null ? void 0 : a.palette.background.default,
|
|
45
|
+
color: (o = r.vars) == null ? void 0 : o.palette.text.primary,
|
|
46
|
+
border: `1px solid ${(l = r.vars) == null ? void 0 : l.palette.border.secondary}`,
|
|
47
|
+
"&:hover": {
|
|
48
|
+
background: (t = r.vars) == null ? void 0 : t.palette.neutral.lighter,
|
|
49
|
+
color: (i = r.vars) == null ? void 0 : i.palette.text.primary,
|
|
50
|
+
"&.MuiChip-deletable": {
|
|
51
|
+
background: (d = r.vars) == null ? void 0 : d.palette.neutral.light
|
|
52
|
+
},
|
|
53
|
+
"&.MuiChip-clickable": {
|
|
54
|
+
background: (n = r.vars) == null ? void 0 : n.palette.background.secondaryPaper
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"&.MuiChip-clickable:active": {
|
|
58
|
+
background: (s = r.vars) == null ? void 0 : s.palette.background.default,
|
|
59
|
+
color: (p = r.vars) == null ? void 0 : p.palette.text.primary
|
|
60
|
+
},
|
|
61
|
+
"&:disabled": {
|
|
62
|
+
background: (u = r.vars) == null ? void 0 : u.palette.neutral.light,
|
|
63
|
+
color: (b = r.vars) == null ? void 0 : b.palette.text.disabled
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
filled: ({ theme: r }) => {
|
|
68
|
+
var a, o, l, t, i;
|
|
69
|
+
return {
|
|
70
|
+
background: (a = r.vars) == null ? void 0 : a.palette.background.secondaryPaper,
|
|
71
|
+
border: `1px solid ${(o = r.vars) == null ? void 0 : o.palette.border.primary}`,
|
|
72
|
+
"&:hover": {
|
|
73
|
+
background: (l = r.vars) == null ? void 0 : l.palette.background.coralBold
|
|
74
|
+
},
|
|
75
|
+
"&.MuiChip-clickable:active": {
|
|
76
|
+
background: (t = r.vars) == null ? void 0 : t.palette.background.coralBold
|
|
77
|
+
},
|
|
78
|
+
"&:disabled": {
|
|
79
|
+
color: (i = r.vars) == null ? void 0 : i.palette.text.disabled,
|
|
80
|
+
opacity: 0.7
|
|
81
|
+
},
|
|
82
|
+
...e("success", r),
|
|
83
|
+
...e("error", r),
|
|
84
|
+
...e("warning", r),
|
|
85
|
+
...e("info", r),
|
|
86
|
+
...e("primary", r),
|
|
87
|
+
...e("secondary", r),
|
|
88
|
+
...e("neutral", r)
|
|
89
|
+
};
|
|
90
|
+
},
|
|
91
|
+
outlined: ({ theme: r }) => {
|
|
92
|
+
var a;
|
|
93
|
+
return {
|
|
94
|
+
background: "transparent",
|
|
95
|
+
"&.MuiChip-clickable:active": {
|
|
96
|
+
background: (a = r.vars) == null ? void 0 : a.palette.background.transparent
|
|
97
|
+
},
|
|
98
|
+
"&:disabled": {
|
|
99
|
+
background: "transparent"
|
|
100
|
+
},
|
|
101
|
+
...c("success", r),
|
|
102
|
+
...c("error", r),
|
|
103
|
+
...c("warning", r),
|
|
104
|
+
...c("info", r),
|
|
105
|
+
...c("primary", r),
|
|
106
|
+
...c("secondary", r),
|
|
107
|
+
...c("neutral", r)
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
export {
|
|
114
|
+
v as chipStyles
|
|
115
|
+
};
|