design-zystem 1.0.288 → 1.0.289
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/index.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/index.mjs +8 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -98,6 +98,8 @@ interface RowProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
98
98
|
overflowY?: string;
|
|
99
99
|
/** Positioning scheme; `relative` makes the row the anchor of an absolutely positioned child. */
|
|
100
100
|
position?: string;
|
|
101
|
+
/** Explicit min-width. `minWidth="0"` lets a flex row shrink below its content size. */
|
|
102
|
+
minWidth?: string;
|
|
101
103
|
style?: CSSProperties;
|
|
102
104
|
className?: string;
|
|
103
105
|
}
|
|
@@ -122,6 +124,8 @@ interface ColProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
122
124
|
height?: string;
|
|
123
125
|
/** Floor height of a flex child; `minHeight="0"` lets it shrink below its content so an inner area can scroll. */
|
|
124
126
|
minHeight?: string;
|
|
127
|
+
/** `flex-shrink` factor. `flexShrink="0"` prevents the column from shrinking below its explicit `width`. */
|
|
128
|
+
flexShrink?: string;
|
|
125
129
|
/** Cross-axis alignment of the column itself, e.g. `stretch` to match the height of its siblings. */
|
|
126
130
|
alignSelf?: string;
|
|
127
131
|
/** Horizontal overflow; the column shows overflowing content by default. */
|
|
@@ -589,8 +593,12 @@ declare const colors: {
|
|
|
589
593
|
readonly badge_blue_bg: "#DBE9FE";
|
|
590
594
|
readonly badge_green_text: "#17803D";
|
|
591
595
|
readonly badge_green_bg: "#DCFCE7";
|
|
596
|
+
readonly badge_orange_text: "#C2410C";
|
|
597
|
+
readonly badge_orange_bg: "#FFF7ED";
|
|
592
598
|
readonly badge_purple_text: "#7230DB";
|
|
593
599
|
readonly badge_purple_bg: "#EDE9FE";
|
|
600
|
+
readonly badge_red_text: "#F44649";
|
|
601
|
+
readonly badge_red_bg: "#FCDDDE";
|
|
594
602
|
readonly brown_50: "#EFEBE9";
|
|
595
603
|
readonly brown_100: "#D7CCC8";
|
|
596
604
|
readonly brown_300: "#A1887F";
|
package/dist/index.d.ts
CHANGED
|
@@ -98,6 +98,8 @@ interface RowProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
98
98
|
overflowY?: string;
|
|
99
99
|
/** Positioning scheme; `relative` makes the row the anchor of an absolutely positioned child. */
|
|
100
100
|
position?: string;
|
|
101
|
+
/** Explicit min-width. `minWidth="0"` lets a flex row shrink below its content size. */
|
|
102
|
+
minWidth?: string;
|
|
101
103
|
style?: CSSProperties;
|
|
102
104
|
className?: string;
|
|
103
105
|
}
|
|
@@ -122,6 +124,8 @@ interface ColProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
122
124
|
height?: string;
|
|
123
125
|
/** Floor height of a flex child; `minHeight="0"` lets it shrink below its content so an inner area can scroll. */
|
|
124
126
|
minHeight?: string;
|
|
127
|
+
/** `flex-shrink` factor. `flexShrink="0"` prevents the column from shrinking below its explicit `width`. */
|
|
128
|
+
flexShrink?: string;
|
|
125
129
|
/** Cross-axis alignment of the column itself, e.g. `stretch` to match the height of its siblings. */
|
|
126
130
|
alignSelf?: string;
|
|
127
131
|
/** Horizontal overflow; the column shows overflowing content by default. */
|
|
@@ -589,8 +593,12 @@ declare const colors: {
|
|
|
589
593
|
readonly badge_blue_bg: "#DBE9FE";
|
|
590
594
|
readonly badge_green_text: "#17803D";
|
|
591
595
|
readonly badge_green_bg: "#DCFCE7";
|
|
596
|
+
readonly badge_orange_text: "#C2410C";
|
|
597
|
+
readonly badge_orange_bg: "#FFF7ED";
|
|
592
598
|
readonly badge_purple_text: "#7230DB";
|
|
593
599
|
readonly badge_purple_bg: "#EDE9FE";
|
|
600
|
+
readonly badge_red_text: "#F44649";
|
|
601
|
+
readonly badge_red_bg: "#FCDDDE";
|
|
594
602
|
readonly brown_50: "#EFEBE9";
|
|
595
603
|
readonly brown_100: "#D7CCC8";
|
|
596
604
|
readonly brown_300: "#A1887F";
|
package/dist/index.js
CHANGED
|
@@ -336,8 +336,12 @@ var colors = {
|
|
|
336
336
|
badge_blue_bg: "#DBE9FE",
|
|
337
337
|
badge_green_text: "#17803D",
|
|
338
338
|
badge_green_bg: "#DCFCE7",
|
|
339
|
+
badge_orange_text: "#C2410C",
|
|
340
|
+
badge_orange_bg: "#FFF7ED",
|
|
339
341
|
badge_purple_text: "#7230DB",
|
|
340
342
|
badge_purple_bg: "#EDE9FE",
|
|
343
|
+
badge_red_text: "#F44649",
|
|
344
|
+
badge_red_bg: "#FCDDDE",
|
|
341
345
|
// BROWN
|
|
342
346
|
brown_50: "#EFEBE9",
|
|
343
347
|
brown_100: "#D7CCC8",
|
|
@@ -485,6 +489,7 @@ var shouldForwardPropRow = (prop) => ![
|
|
|
485
489
|
"fullwidth",
|
|
486
490
|
"margin",
|
|
487
491
|
"width",
|
|
492
|
+
"minWidth",
|
|
488
493
|
"wrap",
|
|
489
494
|
"backgroundColor",
|
|
490
495
|
"flex",
|
|
@@ -504,6 +509,7 @@ var StyledRow = import_styled_components4.default.div.withConfig({
|
|
|
504
509
|
${(props) => props.overflowX ? `overflow-x: ${props.overflowX};` : ""}
|
|
505
510
|
${(props) => props.overflowY ? `overflow-y: ${props.overflowY};` : ""}
|
|
506
511
|
width: ${(props) => props.width || "100%"};
|
|
512
|
+
${(props) => props.minWidth ? `min-width: ${props.minWidth};` : ""}
|
|
507
513
|
max-height: ${(props) => props.maxHeight || "100%"};
|
|
508
514
|
${(props) => props.minHeight ? `min-height: ${props.minHeight};` : ""}
|
|
509
515
|
background-color: ${(props) => props.backgroundColor || "transparent"};
|
|
@@ -541,6 +547,7 @@ var shouldForwardPropCol = (prop) => ![
|
|
|
541
547
|
"minWidth",
|
|
542
548
|
"height",
|
|
543
549
|
"minHeight",
|
|
550
|
+
"flexShrink",
|
|
544
551
|
"alignSelf",
|
|
545
552
|
"overflowX",
|
|
546
553
|
"overflowY",
|
|
@@ -570,6 +577,7 @@ var StyledCol = import_styled_components5.default.div.withConfig({
|
|
|
570
577
|
max-height: 100%;
|
|
571
578
|
height: ${(props) => props.height || (props.fullHeight ? "100%" : "fit-content")};
|
|
572
579
|
${(props) => props.minHeight ? `min-height: ${props.minHeight};` : ""}
|
|
580
|
+
${(props) => props.flexShrink !== void 0 ? `flex-shrink: ${props.flexShrink};` : ""}
|
|
573
581
|
width: ${(props) => props.width || (props.fullWidth ? "100%" : props.size ? `${props.size / 12 * 100}%` : "fit-content")};
|
|
574
582
|
${(props) => props.minWidth ? `min-width: ${props.minWidth};` : ""}
|
|
575
583
|
${(props) => props.alignSelf ? `align-self: ${props.alignSelf};` : ""}
|
package/dist/index.mjs
CHANGED
|
@@ -197,8 +197,12 @@ var colors = {
|
|
|
197
197
|
badge_blue_bg: "#DBE9FE",
|
|
198
198
|
badge_green_text: "#17803D",
|
|
199
199
|
badge_green_bg: "#DCFCE7",
|
|
200
|
+
badge_orange_text: "#C2410C",
|
|
201
|
+
badge_orange_bg: "#FFF7ED",
|
|
200
202
|
badge_purple_text: "#7230DB",
|
|
201
203
|
badge_purple_bg: "#EDE9FE",
|
|
204
|
+
badge_red_text: "#F44649",
|
|
205
|
+
badge_red_bg: "#FCDDDE",
|
|
202
206
|
// BROWN
|
|
203
207
|
brown_50: "#EFEBE9",
|
|
204
208
|
brown_100: "#D7CCC8",
|
|
@@ -346,6 +350,7 @@ var shouldForwardPropRow = (prop) => ![
|
|
|
346
350
|
"fullwidth",
|
|
347
351
|
"margin",
|
|
348
352
|
"width",
|
|
353
|
+
"minWidth",
|
|
349
354
|
"wrap",
|
|
350
355
|
"backgroundColor",
|
|
351
356
|
"flex",
|
|
@@ -365,6 +370,7 @@ var StyledRow = styled4.div.withConfig({
|
|
|
365
370
|
${(props) => props.overflowX ? `overflow-x: ${props.overflowX};` : ""}
|
|
366
371
|
${(props) => props.overflowY ? `overflow-y: ${props.overflowY};` : ""}
|
|
367
372
|
width: ${(props) => props.width || "100%"};
|
|
373
|
+
${(props) => props.minWidth ? `min-width: ${props.minWidth};` : ""}
|
|
368
374
|
max-height: ${(props) => props.maxHeight || "100%"};
|
|
369
375
|
${(props) => props.minHeight ? `min-height: ${props.minHeight};` : ""}
|
|
370
376
|
background-color: ${(props) => props.backgroundColor || "transparent"};
|
|
@@ -402,6 +408,7 @@ var shouldForwardPropCol = (prop) => ![
|
|
|
402
408
|
"minWidth",
|
|
403
409
|
"height",
|
|
404
410
|
"minHeight",
|
|
411
|
+
"flexShrink",
|
|
405
412
|
"alignSelf",
|
|
406
413
|
"overflowX",
|
|
407
414
|
"overflowY",
|
|
@@ -431,6 +438,7 @@ var StyledCol = styled5.div.withConfig({
|
|
|
431
438
|
max-height: 100%;
|
|
432
439
|
height: ${(props) => props.height || (props.fullHeight ? "100%" : "fit-content")};
|
|
433
440
|
${(props) => props.minHeight ? `min-height: ${props.minHeight};` : ""}
|
|
441
|
+
${(props) => props.flexShrink !== void 0 ? `flex-shrink: ${props.flexShrink};` : ""}
|
|
434
442
|
width: ${(props) => props.width || (props.fullWidth ? "100%" : props.size ? `${props.size / 12 * 100}%` : "fit-content")};
|
|
435
443
|
${(props) => props.minWidth ? `min-width: ${props.minWidth};` : ""}
|
|
436
444
|
${(props) => props.alignSelf ? `align-self: ${props.alignSelf};` : ""}
|