@solostylist/ui-kit 1.0.171 → 1.0.172
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/s-ai-tool-bar/s-ai-tool-bar.js +79 -80
- package/dist/s-breadcrumbs/s-breadcrumbs.js +2 -2
- package/dist/s-button-link/s-button-link.js +2 -2
- package/dist/s-chat-input/s-chat-input.js +29 -29
- package/dist/s-chat-message/s-chat-message.js +14 -70
- package/dist/s-comment-message/s-comment-message.js +9 -9
- package/dist/s-countdown/s-count-box.js +2 -2
- package/dist/s-countdown/s-count-down.js +2 -2
- package/dist/s-error-layout/s-error-layout.js +2 -2
- package/dist/s-gallery/s-gallery.js +106 -119
- package/dist/s-glow-button/s-glow-button.d.ts +7 -1
- package/dist/s-glow-button/s-glow-button.js +39 -188
- package/dist/s-review/s-review.js +28 -28
- package/dist/s-skeleton/s-skeleton.js +2 -2
- package/dist/s-stripe/s-stripe.js +2 -2
- package/dist/s-tabs/s-tab-panel.js +2 -2
- package/dist/s-theme-demo/s-theme-demo.js +65 -65
- package/dist/s-theme-provider/s-theme-provider.js +2 -2
- package/dist/s-theme-switch/s-theme-switch.js +1 -1
- package/dist/theme/theme-primitives.d.ts +1 -0
- package/dist/theme/theme-primitives.js +29 -28
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
2
|
import * as g from "react";
|
|
3
|
-
import { Box as t, Typography as r, Stack as
|
|
3
|
+
import { Box as t, Typography as r, Stack as i, Card as d, CardContent as h, Divider as m, Alert as x, Chip as s, Paper as j } from "@mui/material";
|
|
4
4
|
import { SButton as n } from "../s-button/s-button.js";
|
|
5
|
-
import { SForm as
|
|
5
|
+
import { SForm as v } from "../s-form/s-form.js";
|
|
6
6
|
import { STextField as p } from "../s-text-field/s-text-field.js";
|
|
7
|
-
import
|
|
7
|
+
import y from "../s-theme-switch/s-theme-switch.js";
|
|
8
8
|
import { c as u } from "../createSvgIcon-DxwgGAVe.js";
|
|
9
9
|
import { F as b } from "../Favorite-DS5Gpq2s.js";
|
|
10
10
|
const f = u(/* @__PURE__ */ e.jsx("path", {
|
|
@@ -14,7 +14,7 @@ const f = u(/* @__PURE__ */ e.jsx("path", {
|
|
|
14
14
|
}), "Share"), w = u(/* @__PURE__ */ e.jsx("path", {
|
|
15
15
|
d: "M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"
|
|
16
16
|
}), "Star"), B = () => {
|
|
17
|
-
const
|
|
17
|
+
const l = [
|
|
18
18
|
{ name: "Primary", color: "primary.main" },
|
|
19
19
|
{ name: "Secondary", color: "secondary.main" },
|
|
20
20
|
{ name: "Success", color: "success.main" },
|
|
@@ -24,24 +24,24 @@ const f = u(/* @__PURE__ */ e.jsx("path", {
|
|
|
24
24
|
];
|
|
25
25
|
return /* @__PURE__ */ e.jsx(d, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ e.jsxs(h, { children: [
|
|
26
26
|
/* @__PURE__ */ e.jsx(r, { variant: "h5", gutterBottom: !0, children: "Color Palette" }),
|
|
27
|
-
/* @__PURE__ */ e.jsx(
|
|
27
|
+
/* @__PURE__ */ e.jsx(i, { direction: "row", flexWrap: "wrap", gap: 2, children: l.map((o) => /* @__PURE__ */ e.jsxs(t, { sx: { textAlign: "center" }, children: [
|
|
28
28
|
/* @__PURE__ */ e.jsx(
|
|
29
29
|
t,
|
|
30
30
|
{
|
|
31
31
|
sx: {
|
|
32
32
|
width: 60,
|
|
33
33
|
height: 60,
|
|
34
|
-
bgcolor:
|
|
34
|
+
bgcolor: o.color,
|
|
35
35
|
borderRadius: 1,
|
|
36
36
|
mb: 1,
|
|
37
37
|
boxShadow: 1
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
),
|
|
41
|
-
/* @__PURE__ */ e.jsx(r, { variant: "caption",
|
|
42
|
-
] },
|
|
41
|
+
/* @__PURE__ */ e.jsx(r, { variant: "caption", children: o.name })
|
|
42
|
+
] }, o.name)) }),
|
|
43
43
|
/* @__PURE__ */ e.jsx(r, { variant: "h6", sx: { mt: 3, mb: 2 }, children: "Background Colors" }),
|
|
44
|
-
/* @__PURE__ */ e.jsxs(
|
|
44
|
+
/* @__PURE__ */ e.jsxs(i, { direction: "row", gap: 2, flexWrap: "wrap", children: [
|
|
45
45
|
/* @__PURE__ */ e.jsx(
|
|
46
46
|
t,
|
|
47
47
|
{
|
|
@@ -73,76 +73,76 @@ const f = u(/* @__PURE__ */ e.jsx("path", {
|
|
|
73
73
|
}, T = () => /* @__PURE__ */ e.jsx(d, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ e.jsxs(h, { children: [
|
|
74
74
|
/* @__PURE__ */ e.jsx(r, { variant: "h5", gutterBottom: !0, children: "Typography System" }),
|
|
75
75
|
/* @__PURE__ */ e.jsx(r, { variant: "body2", color: "text.secondary", gutterBottom: !0, sx: { mb: 3 }, children: "Complete typography scale using Outfit font family with Material-UI variants" }),
|
|
76
|
-
/* @__PURE__ */ e.jsxs(
|
|
76
|
+
/* @__PURE__ */ e.jsxs(i, { spacing: 3, children: [
|
|
77
77
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
78
78
|
/* @__PURE__ */ e.jsx(r, { variant: "h6", color: "primary", gutterBottom: !0, children: "Headings" }),
|
|
79
|
-
/* @__PURE__ */ e.jsxs(
|
|
79
|
+
/* @__PURE__ */ e.jsxs(i, { spacing: 2, children: [
|
|
80
80
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
81
81
|
/* @__PURE__ */ e.jsx(r, { variant: "h1", gutterBottom: !0, children: "Display Large" }),
|
|
82
|
-
/* @__PURE__ */ e.jsx(r, { variant: "caption",
|
|
82
|
+
/* @__PURE__ */ e.jsx(r, { variant: "caption", children: "h1 - 3.5rem (56px), Weight 600 - Used for hero sections and primary headings" })
|
|
83
83
|
] }),
|
|
84
84
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
85
85
|
/* @__PURE__ */ e.jsx(r, { variant: "h2", gutterBottom: !0, children: "Display Medium" }),
|
|
86
|
-
/* @__PURE__ */ e.jsx(r, { variant: "caption",
|
|
86
|
+
/* @__PURE__ */ e.jsx(r, { variant: "caption", children: "h2 - 2.75rem (44px), Weight 600 - Used for page titles and major sections" })
|
|
87
87
|
] }),
|
|
88
88
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
89
89
|
/* @__PURE__ */ e.jsx(r, { variant: "h3", gutterBottom: !0, children: "Display Small" }),
|
|
90
|
-
/* @__PURE__ */ e.jsx(r, { variant: "caption",
|
|
90
|
+
/* @__PURE__ */ e.jsx(r, { variant: "caption", children: "h3 - 2.25rem (36px), Weight 600 - Used for large section headings" })
|
|
91
91
|
] }),
|
|
92
92
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
93
93
|
/* @__PURE__ */ e.jsx(r, { variant: "h4", gutterBottom: !0, children: "Headline Large" }),
|
|
94
|
-
/* @__PURE__ */ e.jsx(r, { variant: "caption",
|
|
94
|
+
/* @__PURE__ */ e.jsx(r, { variant: "caption", children: "h4 - 2rem (32px), Weight 600 - Used for card titles and content headings" })
|
|
95
95
|
] }),
|
|
96
96
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
97
97
|
/* @__PURE__ */ e.jsx(r, { variant: "h5", gutterBottom: !0, children: "Headline Medium" }),
|
|
98
|
-
/* @__PURE__ */ e.jsx(r, { variant: "caption",
|
|
98
|
+
/* @__PURE__ */ e.jsx(r, { variant: "caption", children: "h5 - 1.5rem (24px), Weight 600 - Used for subsection headings" })
|
|
99
99
|
] }),
|
|
100
100
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
101
101
|
/* @__PURE__ */ e.jsx(r, { variant: "h6", gutterBottom: !0, children: "Headline Small" }),
|
|
102
|
-
/* @__PURE__ */ e.jsx(r, { variant: "caption",
|
|
102
|
+
/* @__PURE__ */ e.jsx(r, { variant: "caption", children: "h6 - 1.25rem (20px), Weight 600 - Used for component titles and labels" })
|
|
103
103
|
] })
|
|
104
104
|
] })
|
|
105
105
|
] }),
|
|
106
106
|
/* @__PURE__ */ e.jsx(m, {}),
|
|
107
107
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
108
108
|
/* @__PURE__ */ e.jsx(r, { variant: "h6", color: "primary", gutterBottom: !0, children: "Body Text" }),
|
|
109
|
-
/* @__PURE__ */ e.jsxs(
|
|
109
|
+
/* @__PURE__ */ e.jsxs(i, { spacing: 2, children: [
|
|
110
110
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
111
111
|
/* @__PURE__ */ e.jsx(r, { variant: "body1", gutterBottom: !0, children: "Body Large - The primary text style used for most content. It provides excellent readability and is suitable for paragraphs, descriptions, and general text content. This is the main body text variant." }),
|
|
112
|
-
/* @__PURE__ */ e.jsx(r, { variant: "caption",
|
|
112
|
+
/* @__PURE__ */ e.jsx(r, { variant: "caption", children: "body1 - 1rem (16px), Weight 400, Line height 1.5" })
|
|
113
113
|
] }),
|
|
114
114
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
115
115
|
/* @__PURE__ */ e.jsx(r, { variant: "body2", gutterBottom: !0, children: "Body Medium - Secondary text style, often used for supporting information, captions, and less prominent content elements. Slightly smaller than body1 for hierarchy." }),
|
|
116
|
-
/* @__PURE__ */ e.jsx(r, { variant: "caption",
|
|
116
|
+
/* @__PURE__ */ e.jsx(r, { variant: "caption", children: "body2 - 0.875rem (14px), Weight 400, Line height 1.43" })
|
|
117
117
|
] })
|
|
118
118
|
] })
|
|
119
119
|
] }),
|
|
120
120
|
/* @__PURE__ */ e.jsx(m, {}),
|
|
121
121
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
122
122
|
/* @__PURE__ */ e.jsx(r, { variant: "h6", color: "primary", gutterBottom: !0, children: "Labels & Supporting Text" }),
|
|
123
|
-
/* @__PURE__ */ e.jsxs(
|
|
123
|
+
/* @__PURE__ */ e.jsxs(i, { spacing: 2, children: [
|
|
124
124
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
125
125
|
/* @__PURE__ */ e.jsx(r, { variant: "subtitle1", gutterBottom: !0, children: "Subtitle Large - Used for prominent secondary text" }),
|
|
126
|
-
/* @__PURE__ */ e.jsx(r, { variant: "caption",
|
|
126
|
+
/* @__PURE__ */ e.jsx(r, { variant: "caption", children: "subtitle1 - 1rem (16px), Weight 500" })
|
|
127
127
|
] }),
|
|
128
128
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
129
129
|
/* @__PURE__ */ e.jsx(r, { variant: "subtitle2", gutterBottom: !0, children: "Subtitle Small - Used for form labels and secondary headings" }),
|
|
130
|
-
/* @__PURE__ */ e.jsx(r, { variant: "caption",
|
|
130
|
+
/* @__PURE__ */ e.jsx(r, { variant: "caption", children: "subtitle2 - 0.875rem (14px), Weight 500" })
|
|
131
131
|
] }),
|
|
132
132
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
133
133
|
/* @__PURE__ */ e.jsx(r, { variant: "caption", component: "div", gutterBottom: !0, children: "Caption Text - Used for annotations, helper text, and fine print" }),
|
|
134
|
-
/* @__PURE__ */ e.jsx(r, { variant: "caption",
|
|
134
|
+
/* @__PURE__ */ e.jsx(r, { variant: "caption", children: "caption - 0.75rem (12px), Weight 400" })
|
|
135
135
|
] }),
|
|
136
136
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
137
137
|
/* @__PURE__ */ e.jsx(r, { variant: "overline", component: "div", gutterBottom: !0, children: "OVERLINE TEXT - USED FOR LABELS AND CATEGORIES" }),
|
|
138
|
-
/* @__PURE__ */ e.jsx(r, { variant: "caption",
|
|
138
|
+
/* @__PURE__ */ e.jsx(r, { variant: "caption", children: "overline - 0.75rem (12px), Weight 400, Uppercase, Letter spacing 0.5px" })
|
|
139
139
|
] })
|
|
140
140
|
] })
|
|
141
141
|
] }),
|
|
142
142
|
/* @__PURE__ */ e.jsx(m, {}),
|
|
143
143
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
144
144
|
/* @__PURE__ */ e.jsx(r, { variant: "h6", color: "primary", gutterBottom: !0, children: "Text Color Variants" }),
|
|
145
|
-
/* @__PURE__ */ e.jsxs(
|
|
145
|
+
/* @__PURE__ */ e.jsxs(i, { spacing: 1, children: [
|
|
146
146
|
/* @__PURE__ */ e.jsx(r, { variant: "body1", color: "text.primary", children: "Primary Text - Main content color" }),
|
|
147
147
|
/* @__PURE__ */ e.jsx(r, { variant: "body1", color: "text.secondary", children: "Secondary Text - Supporting content color" }),
|
|
148
148
|
/* @__PURE__ */ e.jsx(r, { variant: "body1", color: "text.disabled", children: "Disabled Text - Inactive content color" }),
|
|
@@ -154,17 +154,17 @@ const f = u(/* @__PURE__ */ e.jsx("path", {
|
|
|
154
154
|
] })
|
|
155
155
|
] })
|
|
156
156
|
] }) }), C = () => {
|
|
157
|
-
const [
|
|
157
|
+
const [l, o] = g.useState("");
|
|
158
158
|
return /* @__PURE__ */ e.jsx(d, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ e.jsxs(h, { children: [
|
|
159
159
|
/* @__PURE__ */ e.jsx(r, { variant: "h5", gutterBottom: !0, children: "SoloStylist Components" }),
|
|
160
|
-
/* @__PURE__ */ e.jsxs(
|
|
160
|
+
/* @__PURE__ */ e.jsxs(i, { spacing: 4, children: [
|
|
161
161
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
162
162
|
/* @__PURE__ */ e.jsx(r, { variant: "h6", gutterBottom: !0, children: "Enhanced Buttons" }),
|
|
163
163
|
/* @__PURE__ */ e.jsx(r, { variant: "body2", color: "text.secondary", gutterBottom: !0, sx: { mb: 3 }, children: "Comprehensive button system with all variants, colors, and sizes" }),
|
|
164
|
-
/* @__PURE__ */ e.jsxs(
|
|
164
|
+
/* @__PURE__ */ e.jsxs(i, { spacing: 3, children: [
|
|
165
165
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
166
166
|
/* @__PURE__ */ e.jsx(r, { variant: "subtitle2", gutterBottom: !0, children: "Button Variants" }),
|
|
167
|
-
/* @__PURE__ */ e.jsxs(
|
|
167
|
+
/* @__PURE__ */ e.jsxs(i, { direction: "row", spacing: 2, flexWrap: "wrap", gap: 1, children: [
|
|
168
168
|
/* @__PURE__ */ e.jsx(n, { variant: "contained", color: "primary", children: "Contained" }),
|
|
169
169
|
/* @__PURE__ */ e.jsx(n, { variant: "outlined", color: "primary", children: "Outlined" }),
|
|
170
170
|
/* @__PURE__ */ e.jsx(n, { variant: "text", color: "primary", children: "Text" })
|
|
@@ -172,7 +172,7 @@ const f = u(/* @__PURE__ */ e.jsx("path", {
|
|
|
172
172
|
] }),
|
|
173
173
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
174
174
|
/* @__PURE__ */ e.jsx(r, { variant: "subtitle2", gutterBottom: !0, children: "Color Variants (Contained)" }),
|
|
175
|
-
/* @__PURE__ */ e.jsxs(
|
|
175
|
+
/* @__PURE__ */ e.jsxs(i, { direction: "row", spacing: 2, flexWrap: "wrap", gap: 1, children: [
|
|
176
176
|
/* @__PURE__ */ e.jsx(n, { variant: "contained", color: "primary", children: "Primary" }),
|
|
177
177
|
/* @__PURE__ */ e.jsx(n, { variant: "contained", color: "secondary", children: "Secondary" }),
|
|
178
178
|
/* @__PURE__ */ e.jsx(n, { variant: "contained", color: "success", children: "Success" }),
|
|
@@ -183,7 +183,7 @@ const f = u(/* @__PURE__ */ e.jsx("path", {
|
|
|
183
183
|
] }),
|
|
184
184
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
185
185
|
/* @__PURE__ */ e.jsx(r, { variant: "subtitle2", gutterBottom: !0, children: "Color Variants (Outlined)" }),
|
|
186
|
-
/* @__PURE__ */ e.jsxs(
|
|
186
|
+
/* @__PURE__ */ e.jsxs(i, { direction: "row", spacing: 2, flexWrap: "wrap", gap: 1, children: [
|
|
187
187
|
/* @__PURE__ */ e.jsx(n, { variant: "outlined", color: "primary", children: "Primary" }),
|
|
188
188
|
/* @__PURE__ */ e.jsx(n, { variant: "outlined", color: "secondary", children: "Secondary" }),
|
|
189
189
|
/* @__PURE__ */ e.jsx(n, { variant: "outlined", color: "success", children: "Success" }),
|
|
@@ -194,7 +194,7 @@ const f = u(/* @__PURE__ */ e.jsx("path", {
|
|
|
194
194
|
] }),
|
|
195
195
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
196
196
|
/* @__PURE__ */ e.jsx(r, { variant: "subtitle2", gutterBottom: !0, children: "Button Sizes" }),
|
|
197
|
-
/* @__PURE__ */ e.jsxs(
|
|
197
|
+
/* @__PURE__ */ e.jsxs(i, { direction: "row", spacing: 2, alignItems: "center", flexWrap: "wrap", gap: 1, children: [
|
|
198
198
|
/* @__PURE__ */ e.jsx(n, { variant: "contained", color: "primary", size: "small", children: "Small" }),
|
|
199
199
|
/* @__PURE__ */ e.jsx(n, { variant: "contained", color: "primary", size: "medium", children: "Medium" }),
|
|
200
200
|
/* @__PURE__ */ e.jsx(n, { variant: "contained", color: "primary", size: "large", children: "Large" })
|
|
@@ -202,7 +202,7 @@ const f = u(/* @__PURE__ */ e.jsx("path", {
|
|
|
202
202
|
] }),
|
|
203
203
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
204
204
|
/* @__PURE__ */ e.jsx(r, { variant: "subtitle2", gutterBottom: !0, children: "Button States" }),
|
|
205
|
-
/* @__PURE__ */ e.jsxs(
|
|
205
|
+
/* @__PURE__ */ e.jsxs(i, { direction: "row", spacing: 2, flexWrap: "wrap", gap: 1, children: [
|
|
206
206
|
/* @__PURE__ */ e.jsx(n, { variant: "contained", color: "primary", children: "Default" }),
|
|
207
207
|
/* @__PURE__ */ e.jsx(n, { variant: "contained", color: "primary", disabled: !0, children: "Disabled" }),
|
|
208
208
|
/* @__PURE__ */ e.jsx(n, { variant: "outlined", color: "primary", disabled: !0, children: "Disabled Outlined" }),
|
|
@@ -211,7 +211,7 @@ const f = u(/* @__PURE__ */ e.jsx("path", {
|
|
|
211
211
|
] }),
|
|
212
212
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
213
213
|
/* @__PURE__ */ e.jsx(r, { variant: "subtitle2", gutterBottom: !0, children: "Buttons with Icons" }),
|
|
214
|
-
/* @__PURE__ */ e.jsxs(
|
|
214
|
+
/* @__PURE__ */ e.jsxs(i, { direction: "row", spacing: 2, flexWrap: "wrap", gap: 1, children: [
|
|
215
215
|
/* @__PURE__ */ e.jsx(n, { variant: "contained", color: "primary", startIcon: /* @__PURE__ */ e.jsx(f, {}), children: "Start Icon" }),
|
|
216
216
|
/* @__PURE__ */ e.jsx(n, { variant: "contained", color: "secondary", endIcon: /* @__PURE__ */ e.jsx(S, {}), children: "End Icon" }),
|
|
217
217
|
/* @__PURE__ */ e.jsx(n, { variant: "outlined", color: "success", startIcon: /* @__PURE__ */ e.jsx(w, {}), children: "Outlined + Icon" }),
|
|
@@ -222,13 +222,13 @@ const f = u(/* @__PURE__ */ e.jsx("path", {
|
|
|
222
222
|
] }),
|
|
223
223
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
224
224
|
/* @__PURE__ */ e.jsx(r, { variant: "h6", gutterBottom: !0, children: "Form Components with SForm" }),
|
|
225
|
-
/* @__PURE__ */ e.jsx(
|
|
225
|
+
/* @__PURE__ */ e.jsx(v, { label: "Sample Form", required: !0, children: /* @__PURE__ */ e.jsxs(i, { spacing: 3, children: [
|
|
226
226
|
/* @__PURE__ */ e.jsx(
|
|
227
227
|
p,
|
|
228
228
|
{
|
|
229
229
|
label: "Enhanced Text Field",
|
|
230
|
-
value:
|
|
231
|
-
onChange: (a) =>
|
|
230
|
+
value: l,
|
|
231
|
+
onChange: (a) => o(a.target.value),
|
|
232
232
|
placeholder: "Enter text here...",
|
|
233
233
|
helperText: "This is an enhanced STextField component",
|
|
234
234
|
fullWidth: !0
|
|
@@ -259,19 +259,19 @@ const f = u(/* @__PURE__ */ e.jsx("path", {
|
|
|
259
259
|
] }),
|
|
260
260
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
261
261
|
/* @__PURE__ */ e.jsx(r, { variant: "h6", gutterBottom: !0, children: "Theme Controls" }),
|
|
262
|
-
/* @__PURE__ */ e.jsx(
|
|
262
|
+
/* @__PURE__ */ e.jsx(i, { spacing: 2, children: /* @__PURE__ */ e.jsxs(t, { children: [
|
|
263
263
|
/* @__PURE__ */ e.jsx(r, { variant: "subtitle2", gutterBottom: !0, children: "Theme Switch Component" }),
|
|
264
|
-
/* @__PURE__ */ e.jsx(
|
|
264
|
+
/* @__PURE__ */ e.jsx(y, {})
|
|
265
265
|
] }) })
|
|
266
266
|
] })
|
|
267
267
|
] })
|
|
268
268
|
] }) });
|
|
269
269
|
}, I = () => /* @__PURE__ */ e.jsx(d, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ e.jsxs(h, { children: [
|
|
270
270
|
/* @__PURE__ */ e.jsx(r, { variant: "h5", gutterBottom: !0, children: "Interactive Components" }),
|
|
271
|
-
/* @__PURE__ */ e.jsxs(
|
|
271
|
+
/* @__PURE__ */ e.jsxs(i, { spacing: 3, children: [
|
|
272
272
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
273
273
|
/* @__PURE__ */ e.jsx(r, { variant: "h6", gutterBottom: !0, children: "Alerts" }),
|
|
274
|
-
/* @__PURE__ */ e.jsxs(
|
|
274
|
+
/* @__PURE__ */ e.jsxs(i, { spacing: 2, children: [
|
|
275
275
|
/* @__PURE__ */ e.jsx(x, { severity: "success", children: "Success alert - Operation completed successfully!" }),
|
|
276
276
|
/* @__PURE__ */ e.jsx(x, { severity: "warning", children: "Warning alert - Please review your input." }),
|
|
277
277
|
/* @__PURE__ */ e.jsx(x, { severity: "error", children: "Error alert - Something went wrong." }),
|
|
@@ -281,10 +281,10 @@ const f = u(/* @__PURE__ */ e.jsx("path", {
|
|
|
281
281
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
282
282
|
/* @__PURE__ */ e.jsx(r, { variant: "h6", gutterBottom: !0, children: "Chips & Tags" }),
|
|
283
283
|
/* @__PURE__ */ e.jsx(r, { variant: "body2", color: "text.secondary", gutterBottom: !0, sx: { mb: 3 }, children: "Comprehensive chip system with all colors, variants, and interactive states" }),
|
|
284
|
-
/* @__PURE__ */ e.jsxs(
|
|
284
|
+
/* @__PURE__ */ e.jsxs(i, { spacing: 3, children: [
|
|
285
285
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
286
286
|
/* @__PURE__ */ e.jsx(r, { variant: "subtitle2", gutterBottom: !0, children: "Color Variants" }),
|
|
287
|
-
/* @__PURE__ */ e.jsxs(
|
|
287
|
+
/* @__PURE__ */ e.jsxs(i, { direction: "row", spacing: 1, flexWrap: "wrap", gap: 1, children: [
|
|
288
288
|
/* @__PURE__ */ e.jsx(s, { label: "Default" }),
|
|
289
289
|
/* @__PURE__ */ e.jsx(s, { label: "Primary", color: "primary" }),
|
|
290
290
|
/* @__PURE__ */ e.jsx(s, { label: "Secondary", color: "secondary" }),
|
|
@@ -296,7 +296,7 @@ const f = u(/* @__PURE__ */ e.jsx("path", {
|
|
|
296
296
|
] }),
|
|
297
297
|
/* @__PURE__ */ e.jsxs(t, { children: [
|
|
298
298
|
/* @__PURE__ */ e.jsx(r, { variant: "subtitle2", gutterBottom: !0, children: "Chip Sizes" }),
|
|
299
|
-
/* @__PURE__ */ e.jsxs(
|
|
299
|
+
/* @__PURE__ */ e.jsxs(i, { direction: "row", spacing: 1, alignItems: "center", flexWrap: "wrap", gap: 1, children: [
|
|
300
300
|
/* @__PURE__ */ e.jsx(s, { label: "Small", color: "primary", size: "small" }),
|
|
301
301
|
/* @__PURE__ */ e.jsx(s, { label: "Medium", color: "primary", size: "medium" })
|
|
302
302
|
] })
|
|
@@ -305,15 +305,15 @@ const f = u(/* @__PURE__ */ e.jsx("path", {
|
|
|
305
305
|
] })
|
|
306
306
|
] })
|
|
307
307
|
] }) }), W = () => {
|
|
308
|
-
const
|
|
308
|
+
const l = [0, 1, 2, 4, 6, 8, 12, 16, 24];
|
|
309
309
|
return /* @__PURE__ */ e.jsx(d, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ e.jsxs(h, { children: [
|
|
310
310
|
/* @__PURE__ */ e.jsx(r, { variant: "h5", gutterBottom: !0, children: "Shadow System" }),
|
|
311
311
|
/* @__PURE__ */ e.jsx(r, { variant: "body2", color: "text.secondary", gutterBottom: !0, children: "Material-UI elevation system with custom shadows" }),
|
|
312
|
-
/* @__PURE__ */ e.jsx(
|
|
312
|
+
/* @__PURE__ */ e.jsx(i, { direction: "row", flexWrap: "wrap", gap: 3, sx: { mt: 2 }, children: l.map((o) => /* @__PURE__ */ e.jsxs(t, { sx: { textAlign: "center" }, children: [
|
|
313
313
|
/* @__PURE__ */ e.jsx(
|
|
314
314
|
j,
|
|
315
315
|
{
|
|
316
|
-
elevation:
|
|
316
|
+
elevation: o,
|
|
317
317
|
sx: {
|
|
318
318
|
width: 80,
|
|
319
319
|
height: 80,
|
|
@@ -323,17 +323,17 @@ const f = u(/* @__PURE__ */ e.jsx("path", {
|
|
|
323
323
|
mb: 1,
|
|
324
324
|
borderRadius: 2
|
|
325
325
|
},
|
|
326
|
-
children: /* @__PURE__ */ e.jsx(r, { variant: "h6", children:
|
|
326
|
+
children: /* @__PURE__ */ e.jsx(r, { variant: "h6", children: o })
|
|
327
327
|
}
|
|
328
328
|
),
|
|
329
|
-
/* @__PURE__ */ e.jsxs(r, { variant: "caption",
|
|
329
|
+
/* @__PURE__ */ e.jsxs(r, { variant: "caption", children: [
|
|
330
330
|
"Elevation ",
|
|
331
|
-
|
|
331
|
+
o
|
|
332
332
|
] })
|
|
333
|
-
] },
|
|
333
|
+
] }, o)) }),
|
|
334
334
|
/* @__PURE__ */ e.jsx(m, { sx: { my: 3 } }),
|
|
335
335
|
/* @__PURE__ */ e.jsx(r, { variant: "h6", gutterBottom: !0, children: "Custom Shadow Effects" }),
|
|
336
|
-
/* @__PURE__ */ e.jsx(
|
|
336
|
+
/* @__PURE__ */ e.jsx(i, { direction: "row", spacing: 3, flexWrap: "wrap", gap: 2, children: /* @__PURE__ */ e.jsx(
|
|
337
337
|
j,
|
|
338
338
|
{
|
|
339
339
|
sx: {
|
|
@@ -346,11 +346,11 @@ const f = u(/* @__PURE__ */ e.jsx("path", {
|
|
|
346
346
|
) })
|
|
347
347
|
] }) });
|
|
348
348
|
}, V = ({
|
|
349
|
-
title:
|
|
350
|
-
compact:
|
|
349
|
+
title: l = "SoloStylist UI Kit Theme Demo",
|
|
350
|
+
compact: o = !1,
|
|
351
351
|
sections: a = ["colors", "typography", "components", "forms", "interactive", "shadows"]
|
|
352
352
|
}) => {
|
|
353
|
-
const
|
|
353
|
+
const c = g.useMemo(
|
|
354
354
|
() => ({
|
|
355
355
|
colors: a.includes("colors"),
|
|
356
356
|
typography: a.includes("typography"),
|
|
@@ -361,17 +361,17 @@ const f = u(/* @__PURE__ */ e.jsx("path", {
|
|
|
361
361
|
}),
|
|
362
362
|
[a]
|
|
363
363
|
);
|
|
364
|
-
return /* @__PURE__ */ e.jsxs(t, { sx: { p:
|
|
364
|
+
return /* @__PURE__ */ e.jsxs(t, { sx: { p: o ? 2 : 3, maxWidth: 1200, mx: "auto" }, children: [
|
|
365
365
|
/* @__PURE__ */ e.jsxs(t, { sx: { mb: 4, textAlign: "center" }, children: [
|
|
366
|
-
/* @__PURE__ */ e.jsx(r, { variant: "h3", component: "h1", gutterBottom: !0, children:
|
|
366
|
+
/* @__PURE__ */ e.jsx(r, { variant: "h3", component: "h1", gutterBottom: !0, children: l }),
|
|
367
367
|
/* @__PURE__ */ e.jsx(r, { variant: "h6", color: "text.secondary", sx: { mb: 3 }, children: "Showcase of the SoloStylist UI Kit with modern theming capabilities" })
|
|
368
368
|
] }),
|
|
369
|
-
/* @__PURE__ */ e.jsxs(
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
(
|
|
373
|
-
|
|
374
|
-
|
|
369
|
+
/* @__PURE__ */ e.jsxs(i, { spacing: o ? 2 : 4, children: [
|
|
370
|
+
c.colors && /* @__PURE__ */ e.jsx(B, {}),
|
|
371
|
+
c.typography && /* @__PURE__ */ e.jsx(T, {}),
|
|
372
|
+
(c.components || c.forms) && /* @__PURE__ */ e.jsx(C, {}),
|
|
373
|
+
c.interactive && /* @__PURE__ */ e.jsx(I, {}),
|
|
374
|
+
c.shadows && /* @__PURE__ */ e.jsx(W, {})
|
|
375
375
|
] })
|
|
376
376
|
] });
|
|
377
377
|
};
|
|
@@ -387,7 +387,7 @@ Features:
|
|
|
387
387
|
- Interactive Material-UI components
|
|
388
388
|
- Shadow system visualization
|
|
389
389
|
- Responsive layout
|
|
390
|
-
- Professional styling`, displayName: "sthemedemo", props: { title: { defaultValue: { value: "SoloStylist UI Kit Theme Demo" }, description: "Optional title for the demo", name: "title", required: !1, type: { name: "string" } }, compact: { defaultValue: { value: "false" }, description: "Compact layout mode", name: "compact", required: !1, type: { name: "boolean" } }, sections: { defaultValue: { value: "['colors', 'typography', 'components', 'forms', 'interactive', 'shadows']" }, description: "Additional sections to show", name: "sections", required: !1, type: { name: '("typography" | "components" | "
|
|
390
|
+
- Professional styling`, displayName: "sthemedemo", props: { title: { defaultValue: { value: "SoloStylist UI Kit Theme Demo" }, description: "Optional title for the demo", name: "title", required: !1, type: { name: "string" } }, compact: { defaultValue: { value: "false" }, description: "Compact layout mode", name: "compact", required: !1, type: { name: "boolean" } }, sections: { defaultValue: { value: "['colors', 'typography', 'components', 'forms', 'interactive', 'shadows']" }, description: "Additional sections to show", name: "sections", required: !1, type: { name: '("typography" | "components" | "shadows" | "colors" | "forms" | "interactive")[]' } } } };
|
|
391
391
|
} catch {
|
|
392
392
|
}
|
|
393
393
|
export {
|
|
@@ -57,11 +57,11 @@ const o = ({
|
|
|
57
57
|
};
|
|
58
58
|
o.displayName = "SThemeProvider";
|
|
59
59
|
try {
|
|
60
|
-
o.displayName = "SThemeProvider", o.__docgenInfo = { description: "Central theme provider for the design system.", displayName: "SThemeProvider", props: { children: { defaultValue: null, description: "Child components to receive theme context", name: "children", required: !0, type: { name: "ReactNode" } }, disableCustomTheme: { defaultValue: null, description: "Disable custom theme for testing/docs (falls back to no theme)", name: "disableCustomTheme", required: !1, type: { name: "boolean" } }, themeComponents: { defaultValue: null, description: "Additional theme component overrides", name: "themeComponents", required: !1, type: { name: 'Components<Omit<Theme, "components">>' } }, defaultMode: { defaultValue: { value: "system" }, description: "Default color mode (defaults to 'system')", name: "defaultMode", required: !1, type: { name: "enum", value: [{ value: '"
|
|
60
|
+
o.displayName = "SThemeProvider", o.__docgenInfo = { description: "Central theme provider for the design system.", displayName: "SThemeProvider", props: { children: { defaultValue: null, description: "Child components to receive theme context", name: "children", required: !0, type: { name: "ReactNode" } }, disableCustomTheme: { defaultValue: null, description: "Disable custom theme for testing/docs (falls back to no theme)", name: "disableCustomTheme", required: !1, type: { name: "boolean" } }, themeComponents: { defaultValue: null, description: "Additional theme component overrides", name: "themeComponents", required: !1, type: { name: 'Components<Omit<Theme, "components">>' } }, defaultMode: { defaultValue: { value: "system" }, description: "Default color mode (defaults to 'system')", name: "defaultMode", required: !1, type: { name: "enum", value: [{ value: '"system"' }, { value: '"light"' }, { value: '"dark"' }] } }, theme: { defaultValue: null, description: "Custom theme object to merge with internal theme", name: "theme", required: !1, type: { name: "Theme" } } } };
|
|
61
61
|
} catch {
|
|
62
62
|
}
|
|
63
63
|
try {
|
|
64
|
-
sthemeprovider.displayName = "sthemeprovider", sthemeprovider.__docgenInfo = { description: "Central theme provider for the design system.", displayName: "sthemeprovider", props: { children: { defaultValue: null, description: "Child components to receive theme context", name: "children", required: !0, type: { name: "ReactNode" } }, disableCustomTheme: { defaultValue: null, description: "Disable custom theme for testing/docs (falls back to no theme)", name: "disableCustomTheme", required: !1, type: { name: "boolean" } }, themeComponents: { defaultValue: null, description: "Additional theme component overrides", name: "themeComponents", required: !1, type: { name: 'Components<Omit<Theme, "components">>' } }, defaultMode: { defaultValue: { value: "system" }, description: "Default color mode (defaults to 'system')", name: "defaultMode", required: !1, type: { name: "enum", value: [{ value: '"
|
|
64
|
+
sthemeprovider.displayName = "sthemeprovider", sthemeprovider.__docgenInfo = { description: "Central theme provider for the design system.", displayName: "sthemeprovider", props: { children: { defaultValue: null, description: "Child components to receive theme context", name: "children", required: !0, type: { name: "ReactNode" } }, disableCustomTheme: { defaultValue: null, description: "Disable custom theme for testing/docs (falls back to no theme)", name: "disableCustomTheme", required: !1, type: { name: "boolean" } }, themeComponents: { defaultValue: null, description: "Additional theme component overrides", name: "themeComponents", required: !1, type: { name: 'Components<Omit<Theme, "components">>' } }, defaultMode: { defaultValue: { value: "system" }, description: "Default color mode (defaults to 'system')", name: "defaultMode", required: !1, type: { name: "enum", value: [{ value: '"system"' }, { value: '"light"' }, { value: '"dark"' }] } }, theme: { defaultValue: null, description: "Custom theme object to merge with internal theme", name: "theme", required: !1, type: { name: "Theme" } } } };
|
|
65
65
|
} catch {
|
|
66
66
|
}
|
|
67
67
|
export {
|
|
@@ -37,7 +37,7 @@ const M = m(/* @__PURE__ */ e.jsx("path", {
|
|
|
37
37
|
return /* @__PURE__ */ e.jsx(w, { ref: n, onClick: h, sx: d, children: u ? /* @__PURE__ */ e.jsx(v, {}) : /* @__PURE__ */ e.jsx(M, {}) });
|
|
38
38
|
};
|
|
39
39
|
try {
|
|
40
|
-
sthemeswitch.displayName = "sthemeswitch", sthemeswitch.__docgenInfo = { description: "", displayName: "sthemeswitch", props: { mode: { defaultValue: null, description: "", name: "mode", required: !1, type: { name: "enum", value: [{ value: '"
|
|
40
|
+
sthemeswitch.displayName = "sthemeswitch", sthemeswitch.__docgenInfo = { description: "", displayName: "sthemeswitch", props: { mode: { defaultValue: null, description: "", name: "mode", required: !1, type: { name: "enum", value: [{ value: '"system"' }, { value: '"light"' }, { value: '"dark"' }] } }, setMode: { defaultValue: null, description: "", name: "setMode", required: !1, type: { name: "((mode: SThemeMode) => void)" } }, sx: { defaultValue: null, description: "", name: "sx", required: !1, type: { name: "SxProps<Theme>" } } } };
|
|
41
41
|
} catch {
|
|
42
42
|
}
|
|
43
43
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as m } from "../createTheme-3Wd3hHrj.js";
|
|
2
|
-
import { a as
|
|
3
|
-
const s = m(),
|
|
2
|
+
import { a as e } from "../colorManipulator-ep5lERxB.js";
|
|
3
|
+
const s = m(), r = {
|
|
4
4
|
50: "hsl(210, 100%, 95%)",
|
|
5
5
|
100: "hsl(210, 100%, 92%)",
|
|
6
6
|
200: "hsl(210, 100%, 80%)",
|
|
@@ -22,7 +22,7 @@ const s = m(), e = {
|
|
|
22
22
|
700: "hsl(220, 95%, 31%)",
|
|
23
23
|
800: "hsl(220, 100%, 24%)",
|
|
24
24
|
900: "hsl(220, 100%, 18%)"
|
|
25
|
-
},
|
|
25
|
+
}, t = {
|
|
26
26
|
50: "hsl(220, 35%, 97%)",
|
|
27
27
|
100: "hsl(220, 30%, 94%)",
|
|
28
28
|
200: "hsl(220, 20%, 88%)",
|
|
@@ -33,7 +33,7 @@ const s = m(), e = {
|
|
|
33
33
|
700: "hsl(220, 20%, 25%)",
|
|
34
34
|
800: "hsl(220, 30%, 6%)",
|
|
35
35
|
900: "hsl(220, 35%, 3%)"
|
|
36
|
-
},
|
|
36
|
+
}, a = {
|
|
37
37
|
50: "hsl(210, 20%, 98%)",
|
|
38
38
|
100: "hsl(210, 15%, 95%)",
|
|
39
39
|
200: "hsl(210, 12%, 89%)",
|
|
@@ -211,10 +211,10 @@ const s = m(), e = {
|
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
213
|
primary: {
|
|
214
|
-
contrastText:
|
|
215
|
-
light:
|
|
216
|
-
main:
|
|
217
|
-
dark:
|
|
214
|
+
contrastText: r[50],
|
|
215
|
+
light: r[400],
|
|
216
|
+
main: r[500],
|
|
217
|
+
dark: r[700],
|
|
218
218
|
white: "#ffffff",
|
|
219
219
|
black: "#000000"
|
|
220
220
|
},
|
|
@@ -242,19 +242,19 @@ const s = m(), e = {
|
|
|
242
242
|
main: n[500],
|
|
243
243
|
dark: n[700]
|
|
244
244
|
},
|
|
245
|
-
grey:
|
|
246
|
-
divider:
|
|
245
|
+
grey: t,
|
|
246
|
+
divider: e(t[700], 0.6),
|
|
247
247
|
background: {
|
|
248
|
-
default:
|
|
249
|
-
paper:
|
|
248
|
+
default: t[900],
|
|
249
|
+
paper: t[800]
|
|
250
250
|
},
|
|
251
251
|
text: {
|
|
252
252
|
primary: "rgb(255, 255, 255)",
|
|
253
|
-
secondary:
|
|
253
|
+
secondary: t[400]
|
|
254
254
|
},
|
|
255
255
|
action: {
|
|
256
|
-
hover:
|
|
257
|
-
selected:
|
|
256
|
+
hover: e(t[600], 0.2),
|
|
257
|
+
selected: e(t[600], 0.3)
|
|
258
258
|
},
|
|
259
259
|
baseShadow: "hsla(220, 30%, 5%, 0.7) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.8) 0px 8px 16px -5px"
|
|
260
260
|
}
|
|
@@ -322,19 +322,19 @@ const s = m(), e = {
|
|
|
322
322
|
main: o[500],
|
|
323
323
|
dark: o[700]
|
|
324
324
|
},
|
|
325
|
-
grey:
|
|
326
|
-
divider:
|
|
325
|
+
grey: a,
|
|
326
|
+
divider: e(a[300], 0.9),
|
|
327
327
|
background: {
|
|
328
|
-
default:
|
|
329
|
-
paper:
|
|
328
|
+
default: a[50],
|
|
329
|
+
paper: a[100]
|
|
330
330
|
},
|
|
331
331
|
text: {
|
|
332
332
|
primary: "rgb(32, 33, 36)",
|
|
333
|
-
secondary:
|
|
333
|
+
secondary: a[500]
|
|
334
334
|
},
|
|
335
335
|
action: {
|
|
336
|
-
hover:
|
|
337
|
-
selected:
|
|
336
|
+
hover: e(a[300], 0.2),
|
|
337
|
+
selected: e(a[300], 0.3)
|
|
338
338
|
},
|
|
339
339
|
baseShadow: "rgba(15, 23, 42, 0.08) 0px 2px 8px 0px, rgba(15, 23, 42, 0.04) 0px 1px 2px -1px"
|
|
340
340
|
// Premium shadows with subtle slate tint
|
|
@@ -390,21 +390,22 @@ const s = m(), e = {
|
|
|
390
390
|
},
|
|
391
391
|
caption: {
|
|
392
392
|
fontSize: s.typography.pxToRem(12),
|
|
393
|
-
fontWeight: 400
|
|
393
|
+
fontWeight: 400,
|
|
394
|
+
color: "var(--s-palette-text-secondary)"
|
|
394
395
|
}
|
|
395
396
|
}, W = {
|
|
396
397
|
borderRadius: 8
|
|
397
|
-
}, u = ["none", "var(--s-palette-baseShadow)", ...s.shadows.slice(2)],
|
|
398
|
+
}, u = ["none", "var(--s-palette-baseShadow)", ...s.shadows.slice(2)], v = u;
|
|
398
399
|
export {
|
|
399
400
|
h as blackAlpha,
|
|
400
401
|
d as blue,
|
|
401
|
-
|
|
402
|
+
r as brand,
|
|
402
403
|
z as colorSchemes,
|
|
403
|
-
|
|
404
|
+
t as gray,
|
|
404
405
|
n as green,
|
|
405
406
|
c as lightBlue,
|
|
406
407
|
i as lightBrand,
|
|
407
|
-
|
|
408
|
+
a as lightGray,
|
|
408
409
|
o as lightGreen,
|
|
409
410
|
p as lightOrange,
|
|
410
411
|
S as lightPurple,
|
|
@@ -412,7 +413,7 @@ export {
|
|
|
412
413
|
g as orange,
|
|
413
414
|
w as purple,
|
|
414
415
|
f as red,
|
|
415
|
-
|
|
416
|
+
v as shadows,
|
|
416
417
|
W as shape,
|
|
417
418
|
R as typography,
|
|
418
419
|
l as whiteAlpha
|