@saasquatch/mint-components 1.15.0-16 → 1.15.0-17

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 (49) hide show
  1. package/dist/cjs/{ShadowViewAddon-8bab3674.js → ShadowViewAddon-974f6839.js} +58 -19
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-big-stat_41.cjs.entry.js +33 -3
  5. package/dist/cjs/sqm-stencilbook.cjs.entry.js +17 -2
  6. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +13 -0
  7. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +15 -7
  8. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +162 -2
  9. package/dist/collection/components/sqm-big-stat/useBigStat.js +10 -0
  10. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +13 -4
  11. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +3 -1
  12. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +4 -4
  13. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +20 -8
  14. package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +110 -2
  15. package/dist/esm/{ShadowViewAddon-967f1f54.js → ShadowViewAddon-6a9f6e48.js} +58 -19
  16. package/dist/esm/loader.js +1 -1
  17. package/dist/esm/mint-components.js +1 -1
  18. package/dist/esm/sqm-big-stat_41.entry.js +33 -3
  19. package/dist/esm/sqm-stencilbook.entry.js +17 -2
  20. package/dist/esm-es5/ShadowViewAddon-6a9f6e48.js +1 -0
  21. package/dist/esm-es5/loader.js +1 -1
  22. package/dist/esm-es5/mint-components.js +1 -1
  23. package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
  24. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  25. package/dist/mint-components/mint-components.esm.js +1 -1
  26. package/dist/mint-components/p-094b3b54.system.entry.js +1 -0
  27. package/dist/mint-components/{p-44eead35.entry.js → p-3d8c4dd2.entry.js} +3 -3
  28. package/dist/mint-components/p-72263a72.js +394 -0
  29. package/dist/mint-components/p-81d6479a.system.js +1 -0
  30. package/dist/mint-components/{p-b22a7b2d.entry.js → p-d30919cd.entry.js} +1 -1
  31. package/dist/mint-components/p-ead64a3d.system.entry.js +1 -0
  32. package/dist/mint-components/p-ee06426a.system.js +1 -1
  33. package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +2 -0
  34. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +5 -0
  35. package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +41 -0
  36. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +1 -1
  37. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +2 -1
  38. package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +3 -0
  39. package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +23 -0
  40. package/dist/types/components.d.ts +132 -4
  41. package/docs/docs.docx +0 -0
  42. package/docs/raisins.json +1 -1
  43. package/grapesjs/grapesjs.js +1 -1
  44. package/package.json +1 -1
  45. package/dist/esm-es5/ShadowViewAddon-967f1f54.js +0 -1
  46. package/dist/mint-components/p-266bbd02.system.js +0 -1
  47. package/dist/mint-components/p-8f6297b0.js +0 -394
  48. package/dist/mint-components/p-ae07ce99.system.entry.js +0 -1
  49. package/dist/mint-components/p-d68003fe.system.entry.js +0 -1
@@ -23,8 +23,19 @@ export class BigStat {
23
23
  *
24
24
  * @uiName Flex reverse
25
25
  * @default
26
+ * @uiGroup Style
26
27
  */
27
28
  this.flexReverse = false;
29
+ /**
30
+ * Controls the alignment of the flexbox
31
+ *
32
+ * @uiName Alignment
33
+ * @uiType string
34
+ * @uiEnum ["left", "right", "center"]
35
+ * @uiEnumNames ["Left", "Right", "Center"]
36
+ * @uiGroup Style
37
+ */
38
+ this.alignment = "center";
28
39
  this.ignored = true;
29
40
  withHooks(this);
30
41
  }
@@ -86,6 +97,9 @@ export class BigStat {
86
97
  }, {
87
98
  "text": undefined,
88
99
  "name": "default"
100
+ }, {
101
+ "text": "Style",
102
+ "name": "uiGroup"
89
103
  }],
90
104
  "text": "Controls the order of the stat value & description column"
91
105
  },
@@ -116,11 +130,15 @@ export class BigStat {
116
130
  }, {
117
131
  "text": "[\"Left\", \"Right\", \"Center\"]",
118
132
  "name": "uiEnumNames"
133
+ }, {
134
+ "text": "Style",
135
+ "name": "uiGroup"
119
136
  }],
120
137
  "text": "Controls the alignment of the flexbox"
121
138
  },
122
139
  "attribute": "alignment",
123
- "reflect": false
140
+ "reflect": false,
141
+ "defaultValue": "\"center\""
124
142
  },
125
143
  "programId": {
126
144
  "type": "string",
@@ -145,12 +163,154 @@ export class BigStat {
145
163
  "attribute": "program-id",
146
164
  "reflect": false
147
165
  },
166
+ "statTextColor": {
167
+ "type": "string",
168
+ "mutable": false,
169
+ "complexType": {
170
+ "original": "string",
171
+ "resolved": "string",
172
+ "references": {}
173
+ },
174
+ "required": false,
175
+ "optional": true,
176
+ "docs": {
177
+ "tags": [{
178
+ "text": "Stat text color",
179
+ "name": "uiName"
180
+ }, {
181
+ "text": "color",
182
+ "name": "uiWidget"
183
+ }, {
184
+ "text": "string",
185
+ "name": "uiType"
186
+ }, {
187
+ "text": "color",
188
+ "name": "format"
189
+ }, {
190
+ "text": "Style",
191
+ "name": "uiGroup"
192
+ }],
193
+ "text": "Color of the stat text"
194
+ },
195
+ "attribute": "stat-text-color",
196
+ "reflect": false
197
+ },
198
+ "statFontSize": {
199
+ "type": "number",
200
+ "mutable": false,
201
+ "complexType": {
202
+ "original": "number",
203
+ "resolved": "number",
204
+ "references": {}
205
+ },
206
+ "required": false,
207
+ "optional": true,
208
+ "docs": {
209
+ "tags": [{
210
+ "text": "Stat font size",
211
+ "name": "uiName"
212
+ }, {
213
+ "text": "string",
214
+ "name": "uiType"
215
+ }, {
216
+ "text": "Style",
217
+ "name": "uiGroup"
218
+ }],
219
+ "text": "Font size of the stat text in pixels"
220
+ },
221
+ "attribute": "stat-font-size",
222
+ "reflect": false
223
+ },
224
+ "statFontWeight": {
225
+ "type": "number",
226
+ "mutable": false,
227
+ "complexType": {
228
+ "original": "number",
229
+ "resolved": "number",
230
+ "references": {}
231
+ },
232
+ "required": false,
233
+ "optional": true,
234
+ "docs": {
235
+ "tags": [{
236
+ "text": "Stat font size",
237
+ "name": "uiName"
238
+ }, {
239
+ "text": "Style",
240
+ "name": "uiGroup"
241
+ }, {
242
+ "text": "[100, 200, 300, 400, 500, 600, 700, 800, 900]",
243
+ "name": "uiEnum"
244
+ }, {
245
+ "text": "[\"Thin\", \"Extra Light\", \"Light\", \"Normal\", \"Medium\", \"Semi Bold\", \"Bold\", \"Extra Bold\", \"Heavy\"]",
246
+ "name": "uiEnumNames"
247
+ }],
248
+ "text": "Font size of the stat text in pixels"
249
+ },
250
+ "attribute": "stat-font-weight",
251
+ "reflect": false
252
+ },
253
+ "descriptionTextColor": {
254
+ "type": "string",
255
+ "mutable": false,
256
+ "complexType": {
257
+ "original": "string",
258
+ "resolved": "string",
259
+ "references": {}
260
+ },
261
+ "required": false,
262
+ "optional": true,
263
+ "docs": {
264
+ "tags": [{
265
+ "text": "Description text color",
266
+ "name": "uiName"
267
+ }, {
268
+ "text": "color",
269
+ "name": "uiWidget"
270
+ }, {
271
+ "text": "string",
272
+ "name": "uiType"
273
+ }, {
274
+ "text": "color",
275
+ "name": "format"
276
+ }, {
277
+ "text": "Style",
278
+ "name": "uiGroup"
279
+ }],
280
+ "text": "Color of the description text"
281
+ },
282
+ "attribute": "description-text-color",
283
+ "reflect": false
284
+ },
285
+ "descriptionFontSize": {
286
+ "type": "number",
287
+ "mutable": false,
288
+ "complexType": {
289
+ "original": "number",
290
+ "resolved": "number",
291
+ "references": {}
292
+ },
293
+ "required": false,
294
+ "optional": true,
295
+ "docs": {
296
+ "tags": [{
297
+ "text": "Description font size",
298
+ "name": "uiName"
299
+ }, {
300
+ "text": "Style",
301
+ "name": "uiGroup"
302
+ }],
303
+ "text": "Font size of the description text in pixels"
304
+ },
305
+ "attribute": "description-font-size",
306
+ "reflect": false
307
+ },
148
308
  "demoData": {
149
309
  "type": "unknown",
150
310
  "mutable": false,
151
311
  "complexType": {
152
312
  "original": "DemoData<BigStatViewProps>",
153
- "resolved": "{ loading?: boolean; value?: number; statvalue?: string; flexReverse?: boolean; alignment?: \"left\" | \"right\" | \"center\"; labelSlot?: VNode; }",
313
+ "resolved": "{ loading?: boolean; value?: number; statvalue?: string; flexReverse?: boolean; alignment?: \"left\" | \"right\" | \"center\"; labelSlot?: VNode; statTextColor?: string; statFontSize?: number; descriptionTextColor?: string; descriptionFontSize?: number; statFontWeight?: number; }",
154
314
  "references": {
155
315
  "DemoData": {
156
316
  "location": "import",
@@ -890,6 +890,11 @@ export function useBigStat(props) {
890
890
  flexReverse,
891
891
  alignment,
892
892
  loading: false,
893
+ statTextColor: props.statTextColor,
894
+ statFontSize: props.statFontSize,
895
+ descriptionTextColor: props.descriptionTextColor,
896
+ descriptionFontSize: props.descriptionFontSize,
897
+ statFontWeight: props.statFontWeight,
893
898
  },
894
899
  label: "BAD PROP TYPE",
895
900
  };
@@ -919,6 +924,11 @@ export function useBigStat(props) {
919
924
  loading: stat === null || stat === void 0 ? void 0 : stat.loading,
920
925
  flexReverse,
921
926
  alignment,
927
+ statTextColor: props.statTextColor,
928
+ statFontSize: props.statFontSize,
929
+ descriptionTextColor: props.descriptionTextColor,
930
+ descriptionFontSize: props.descriptionFontSize,
931
+ statFontWeight: props.statFontWeight,
922
932
  },
923
933
  label,
924
934
  };
@@ -13,8 +13,12 @@ export function useDemoBigStat(props) {
13
13
  value: 0,
14
14
  statvalue: "!!!",
15
15
  loading: false,
16
- flexReverse: false,
17
- alignment: "center",
16
+ flexReverse: props.flexReverse,
17
+ alignment: props.alignment,
18
+ statTextColor: props.statTextColor,
19
+ statFontSize: props.statFontSize,
20
+ descriptionTextColor: props.descriptionTextColor,
21
+ descriptionFontSize: props.descriptionFontSize,
18
22
  },
19
23
  label: "BAD PROP TYPE",
20
24
  };
@@ -26,8 +30,13 @@ export function useDemoBigStat(props) {
26
30
  props: deepmerge({
27
31
  statvalue: "12345",
28
32
  value: 0,
29
- flexReverse: false,
30
- alignment: "center",
33
+ flexReverse: props.flexReverse,
34
+ alignment: props.alignment,
35
+ statTextColor: props.statTextColor,
36
+ statFontSize: props.statFontSize,
37
+ descriptionTextColor: props.descriptionTextColor,
38
+ descriptionFontSize: props.descriptionFontSize,
39
+ statFontWeight: props.statFontWeight,
31
40
  }, props.demoData || {}, { arrayMerge: (_, a) => a }),
32
41
  label: label !== null && label !== void 0 ? label : "Demo Label",
33
42
  };
@@ -8,7 +8,9 @@ export function ProgramExplainerStepView(props) {
8
8
  width: "100%",
9
9
  padding: "var(--sl-spacing-x-large)",
10
10
  lineHeight: "var(--sl-line-height-dense)",
11
- borderRadius: props.borderRadius || "var(--sl-border-radius-large)",
11
+ borderRadius: props.borderRadius
12
+ ? `${props.borderRadius}px`
13
+ : "var(--sl-border-radius-large)",
12
14
  color: props.textColor || "var(--sqm-text)",
13
15
  background: props.backgroundColor || "var(--sl-color-primary-50)",
14
16
  "@media (max-width: 499px)": {
@@ -115,11 +115,11 @@ export class ProgramExplainerStep {
115
115
  "reflect": false
116
116
  },
117
117
  "borderRadius": {
118
- "type": "string",
118
+ "type": "number",
119
119
  "mutable": false,
120
120
  "complexType": {
121
- "original": "string",
122
- "resolved": "string",
121
+ "original": "number",
122
+ "resolved": "number",
123
123
  "references": {}
124
124
  },
125
125
  "required": false,
@@ -132,7 +132,7 @@ export class ProgramExplainerStep {
132
132
  "text": "number",
133
133
  "name": "type"
134
134
  }],
135
- "text": ""
135
+ "text": "Amount in pixels"
136
136
  },
137
137
  "attribute": "border-radius",
138
138
  "reflect": false
@@ -5,25 +5,37 @@ export function StatContainerView(props, children) {
5
5
  const spaceValue = getComputedStyle(document.documentElement).getPropertyValue(`--sl-spacing-${props.space}`);
6
6
  return `${Math.floor(parseInt(spaceValue) / 2)}rem`;
7
7
  };
8
- // Dependent on props, not feasiable to move out
8
+ // take alignment variable and convert it to CSS flexbox alignment
9
+ const alignment = props.alignment === "center"
10
+ ? "center"
11
+ : props.alignment === "right"
12
+ ? "flex-end"
13
+ : "flex-start";
14
+ // Dependent on props, not feasible to move out
9
15
  const style = {
10
16
  StatContainer: {
11
17
  width: "100%",
12
- display: props.display || "grid",
13
- "grid-template-columns": "repeat(auto-fill, minmax(130px, auto))",
14
- gap: divideSpace(),
15
- // First set of styles applies when shadow DOM is disabled, second set applies when shadow DOM is enabled
18
+ display: "flex",
19
+ flexWrap: "wrap",
20
+ alignItems: "center",
21
+ justifyContent: alignment,
22
+ flexDirection: "row",
23
+ gap: `var(--sl-spacing-${props.gap})`,
24
+ // Apply border styles conditionally based on the hideBorder prop
16
25
  "& > *": {
17
- "border-right": "1px solid #EAEAEA",
26
+ "border-right": props.hideBorder
27
+ ? "none"
28
+ : "1px solid var(--sqm-text-subdued)",
18
29
  "padding-right": divideSpace(),
19
30
  },
20
31
  "& > :last-child": {
21
32
  "border-right": "none",
22
33
  },
23
34
  "& > ::slotted(*)": {
24
- "border-right": "1px solid #EAEAEA",
35
+ "border-right": props.hideBorder
36
+ ? "none"
37
+ : "1px solid var(--sqm-text-subdued)",
25
38
  "padding-right": divideSpace(),
26
- height: "100%",
27
39
  },
28
40
  "& > ::slotted(*:last-child)": {
29
41
  "border-right": "none",
@@ -21,12 +21,29 @@ export class StatContainer {
21
21
  */
22
22
  this.space = "xxx-large";
23
23
  /**
24
+ * @undocumented
24
25
  * @uiName Display
25
26
  * @uiType string
26
27
  * @uiEnum ["grid", "flex"]
27
28
  * @uiEnumNames ["Grid", "Flex"]
28
29
  */
29
- this.display = "grid";
30
+ this.display = "flex";
31
+ /**
32
+ * Controls the alignment of the flexbox
33
+ *
34
+ * @uiName Alignment
35
+ * @uiType string
36
+ * @uiEnum ["left", "right", "center"]
37
+ * @uiEnumNames ["Left", "Right", "Center"]
38
+ */
39
+ this.alignment = "center";
40
+ /**
41
+ * @uiName Gap
42
+ * @uiType string
43
+ * @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
44
+ * @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
45
+ */
46
+ this.gap = "x-large";
30
47
  withHooks(this);
31
48
  }
32
49
  disconnectedCallback() { }
@@ -84,6 +101,9 @@ export class StatContainer {
84
101
  "optional": false,
85
102
  "docs": {
86
103
  "tags": [{
104
+ "text": undefined,
105
+ "name": "undocumented"
106
+ }, {
87
107
  "text": "Display",
88
108
  "name": "uiName"
89
109
  }, {
@@ -100,7 +120,95 @@ export class StatContainer {
100
120
  },
101
121
  "attribute": "display",
102
122
  "reflect": false,
103
- "defaultValue": "\"grid\""
123
+ "defaultValue": "\"flex\""
124
+ },
125
+ "hideBorder": {
126
+ "type": "boolean",
127
+ "mutable": false,
128
+ "complexType": {
129
+ "original": "boolean",
130
+ "resolved": "boolean",
131
+ "references": {}
132
+ },
133
+ "required": false,
134
+ "optional": true,
135
+ "docs": {
136
+ "tags": [{
137
+ "text": "Hide border",
138
+ "name": "uiName"
139
+ }, {
140
+ "text": "boolean",
141
+ "name": "uiType"
142
+ }],
143
+ "text": "Hide the seperating border between stats"
144
+ },
145
+ "attribute": "hide-border",
146
+ "reflect": false
147
+ },
148
+ "alignment": {
149
+ "type": "string",
150
+ "mutable": false,
151
+ "complexType": {
152
+ "original": "\"left\" | \"right\" | \"center\"",
153
+ "resolved": "\"center\" | \"left\" | \"right\"",
154
+ "references": {}
155
+ },
156
+ "required": false,
157
+ "optional": true,
158
+ "docs": {
159
+ "tags": [{
160
+ "text": "Alignment",
161
+ "name": "uiName"
162
+ }, {
163
+ "text": "string",
164
+ "name": "uiType"
165
+ }, {
166
+ "text": "[\"left\", \"right\", \"center\"]",
167
+ "name": "uiEnum"
168
+ }, {
169
+ "text": "[\"Left\", \"Right\", \"Center\"]",
170
+ "name": "uiEnumNames"
171
+ }],
172
+ "text": "Controls the alignment of the flexbox"
173
+ },
174
+ "attribute": "alignment",
175
+ "reflect": false,
176
+ "defaultValue": "\"center\""
177
+ },
178
+ "gap": {
179
+ "type": "string",
180
+ "mutable": false,
181
+ "complexType": {
182
+ "original": "Spacing",
183
+ "resolved": "\"large\" | \"medium\" | \"none\" | \"small\" | \"x-large\" | \"x-small\" | \"xx-large\" | \"xx-small\" | \"xxx-large\" | \"xxx-small\" | \"xxxx-large\"",
184
+ "references": {
185
+ "Spacing": {
186
+ "location": "import",
187
+ "path": "../../global/mixins"
188
+ }
189
+ }
190
+ },
191
+ "required": false,
192
+ "optional": false,
193
+ "docs": {
194
+ "tags": [{
195
+ "text": "Gap",
196
+ "name": "uiName"
197
+ }, {
198
+ "text": "string",
199
+ "name": "uiType"
200
+ }, {
201
+ "text": "[\"none\", \"xxx-small\", \"xx-small\", \"x-small\", \"small\", \"medium\", \"large\", \"x-large\", \"xx-large\", \"xxx-large\", \"xxxx-large\"]",
202
+ "name": "uiEnum"
203
+ }, {
204
+ "text": "[\"None\", \"XXX-Small\", \"XX-Small\", \"X-Small\", \"Small\", \"Medium\", \"Large\", \"X-Large\", \"XX-Large\", \"XXX-Large\", \"XXXX-Large\"]",
205
+ "name": "uiEnumNames"
206
+ }],
207
+ "text": ""
208
+ },
209
+ "attribute": "gap",
210
+ "reflect": false,
211
+ "defaultValue": "\"x-large\""
104
212
  }
105
213
  }; }
106
214
  static get states() { return {
@@ -225,13 +225,13 @@ function LeaderboardView(props) {
225
225
  }
226
226
 
227
227
  function BigStatView(props) {
228
- const { statvalue, flexReverse, alignment } = props;
229
- // Dependent on props, not feasiable to move out
228
+ const { statvalue, flexReverse, alignment, statTextColor, statFontSize, descriptionTextColor, descriptionFontSize, statFontWeight, } = props;
229
+ // Dependent on props, not feasible to move out
230
230
  const style = {
231
231
  Container: {
232
232
  display: "flex",
233
- height: "inherit",
234
- "justify-content": "space-between",
233
+ // height: "inherit",
234
+ // "justify-content": "space-between",
235
235
  "flex-direction": `${flexReverse ? "column-reverse" : "column"}`,
236
236
  "align-items": `${alignment === "left"
237
237
  ? "flex-start"
@@ -240,14 +240,22 @@ function BigStatView(props) {
240
240
  : "center"}`,
241
241
  },
242
242
  Stat: {
243
- "font-size": "var(--sl-font-size-x-large)",
243
+ "font-size": statFontSize
244
+ ? `${statFontSize}px`
245
+ : "var(--sl-font-size-xx-large)",
244
246
  "text-align": alignment,
247
+ color: statTextColor || "var(--sqm-text)",
248
+ lineHeight: "35px",
249
+ fontWeight: statFontWeight || "var(--sl-font-weight-normal)",
245
250
  },
246
251
  Description: {
247
- "font-size": "var(--sl-font-size-small)",
252
+ "font-size": descriptionFontSize
253
+ ? `${descriptionFontSize}px`
254
+ : "var(--sl-font-size-small)",
248
255
  "font-weight": "var(--sl-font-weight-normal)",
249
- color: "var(--sqm-text-subdued)",
256
+ color: descriptionTextColor || "var(--sqm-text)",
250
257
  "text-align": alignment,
258
+ lineHeight: "20px",
251
259
  },
252
260
  };
253
261
  const sheet = createStyleSheet(style);
@@ -1405,6 +1413,11 @@ function useBigStat(props) {
1405
1413
  flexReverse,
1406
1414
  alignment,
1407
1415
  loading: false,
1416
+ statTextColor: props.statTextColor,
1417
+ statFontSize: props.statFontSize,
1418
+ descriptionTextColor: props.descriptionTextColor,
1419
+ descriptionFontSize: props.descriptionFontSize,
1420
+ statFontWeight: props.statFontWeight,
1408
1421
  },
1409
1422
  label: "BAD PROP TYPE",
1410
1423
  };
@@ -1434,6 +1447,11 @@ function useBigStat(props) {
1434
1447
  loading: stat === null || stat === void 0 ? void 0 : stat.loading,
1435
1448
  flexReverse,
1436
1449
  alignment,
1450
+ statTextColor: props.statTextColor,
1451
+ statFontSize: props.statFontSize,
1452
+ descriptionTextColor: props.descriptionTextColor,
1453
+ descriptionFontSize: props.descriptionFontSize,
1454
+ statFontWeight: props.statFontWeight,
1437
1455
  },
1438
1456
  label,
1439
1457
  };
@@ -1450,8 +1468,12 @@ function useDemoBigStat(props) {
1450
1468
  value: 0,
1451
1469
  statvalue: "!!!",
1452
1470
  loading: false,
1453
- flexReverse: false,
1454
- alignment: "center",
1471
+ flexReverse: props.flexReverse,
1472
+ alignment: props.alignment,
1473
+ statTextColor: props.statTextColor,
1474
+ statFontSize: props.statFontSize,
1475
+ descriptionTextColor: props.descriptionTextColor,
1476
+ descriptionFontSize: props.descriptionFontSize,
1455
1477
  },
1456
1478
  label: "BAD PROP TYPE",
1457
1479
  };
@@ -1463,8 +1485,13 @@ function useDemoBigStat(props) {
1463
1485
  props: cjs({
1464
1486
  statvalue: "12345",
1465
1487
  value: 0,
1466
- flexReverse: false,
1467
- alignment: "center",
1488
+ flexReverse: props.flexReverse,
1489
+ alignment: props.alignment,
1490
+ statTextColor: props.statTextColor,
1491
+ statFontSize: props.statFontSize,
1492
+ descriptionTextColor: props.descriptionTextColor,
1493
+ descriptionFontSize: props.descriptionFontSize,
1494
+ statFontWeight: props.statFontWeight,
1468
1495
  }, props.demoData || {}, { arrayMerge: (_, a) => a }),
1469
1496
  label: label !== null && label !== void 0 ? label : "Demo Label",
1470
1497
  };
@@ -1475,25 +1502,37 @@ function StatContainerView(props, children) {
1475
1502
  const spaceValue = getComputedStyle(document.documentElement).getPropertyValue(`--sl-spacing-${props.space}`);
1476
1503
  return `${Math.floor(parseInt(spaceValue) / 2)}rem`;
1477
1504
  };
1478
- // Dependent on props, not feasiable to move out
1505
+ // take alignment variable and convert it to CSS flexbox alignment
1506
+ const alignment = props.alignment === "center"
1507
+ ? "center"
1508
+ : props.alignment === "right"
1509
+ ? "flex-end"
1510
+ : "flex-start";
1511
+ // Dependent on props, not feasible to move out
1479
1512
  const style = {
1480
1513
  StatContainer: {
1481
1514
  width: "100%",
1482
- display: props.display || "grid",
1483
- "grid-template-columns": "repeat(auto-fill, minmax(130px, auto))",
1484
- gap: divideSpace(),
1485
- // First set of styles applies when shadow DOM is disabled, second set applies when shadow DOM is enabled
1515
+ display: "flex",
1516
+ flexWrap: "wrap",
1517
+ alignItems: "center",
1518
+ justifyContent: alignment,
1519
+ flexDirection: "row",
1520
+ gap: `var(--sl-spacing-${props.gap})`,
1521
+ // Apply border styles conditionally based on the hideBorder prop
1486
1522
  "& > *": {
1487
- "border-right": "1px solid #EAEAEA",
1523
+ "border-right": props.hideBorder
1524
+ ? "none"
1525
+ : "1px solid var(--sqm-text-subdued)",
1488
1526
  "padding-right": divideSpace(),
1489
1527
  },
1490
1528
  "& > :last-child": {
1491
1529
  "border-right": "none",
1492
1530
  },
1493
1531
  "& > ::slotted(*)": {
1494
- "border-right": "1px solid #EAEAEA",
1532
+ "border-right": props.hideBorder
1533
+ ? "none"
1534
+ : "1px solid var(--sqm-text-subdued)",
1495
1535
  "padding-right": divideSpace(),
1496
- height: "100%",
1497
1536
  },
1498
1537
  "& > ::slotted(*:last-child)": {
1499
1538
  "border-right": "none",