@uniformdev/design-system 19.179.1-alpha.1 → 19.179.2-alpha.22
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/esm/index.js +88 -21
- package/dist/index.d.mts +326 -323
- package/dist/index.d.ts +326 -323
- package/dist/index.js +92 -21
- package/package.json +18 -18
package/dist/esm/index.js
CHANGED
|
@@ -863,7 +863,8 @@ var button = css8`
|
|
|
863
863
|
cursor: pointer;
|
|
864
864
|
display: inline-flex;
|
|
865
865
|
font-weight: var(--fw-medium);
|
|
866
|
-
transition:
|
|
866
|
+
transition:
|
|
867
|
+
color var(--duration-fast) var(--timing-ease-out),
|
|
867
868
|
border-color var(--duration-fast) var(--timing-ease-out);
|
|
868
869
|
max-width: max-content;
|
|
869
870
|
gap: var(--spacing-sm);
|
|
@@ -1641,9 +1642,11 @@ var input = (whiteSpaceWrap) => css12`
|
|
|
1641
1642
|
width: 100%;
|
|
1642
1643
|
position: relative;
|
|
1643
1644
|
white-space: ${whiteSpaceWrap};
|
|
1644
|
-
transition:
|
|
1645
|
+
transition:
|
|
1646
|
+
background var(--duration-fast) var(--timing-ease-out),
|
|
1645
1647
|
border-color var(--duration-fast) var(--timing-ease-out),
|
|
1646
|
-
color var(--duration-fast) var(--timing-ease-out),
|
|
1648
|
+
color var(--duration-fast) var(--timing-ease-out),
|
|
1649
|
+
box-shadow var(--duration-fast) var(--timing-ease-out);
|
|
1647
1650
|
|
|
1648
1651
|
&::placeholder {
|
|
1649
1652
|
color: var(--gray-400);
|
|
@@ -1763,7 +1766,8 @@ var toggleInput = css12`
|
|
|
1763
1766
|
background: var(--white);
|
|
1764
1767
|
width: var(--spacing-md);
|
|
1765
1768
|
height: var(--spacing-md);
|
|
1766
|
-
transition:
|
|
1769
|
+
transition:
|
|
1770
|
+
background var(--duration-fast) var(--timing-ease-out),
|
|
1767
1771
|
border-color var(--duration-fast) var(--timing-ease-out),
|
|
1768
1772
|
color var(--duration-fast) var(--timing-ease-out);
|
|
1769
1773
|
|
|
@@ -2002,7 +2006,9 @@ var addButton = css15`
|
|
|
2002
2006
|
cursor: pointer;
|
|
2003
2007
|
display: inline-flex;
|
|
2004
2008
|
padding: 0;
|
|
2005
|
-
transition:
|
|
2009
|
+
transition:
|
|
2010
|
+
transform var(--duration-fast) var(--timing-ease-out),
|
|
2011
|
+
background var(--duration-slow);
|
|
2006
2012
|
transform: scale(0.95);
|
|
2007
2013
|
width: var(--max-size);
|
|
2008
2014
|
height: var(--max-size);
|
|
@@ -3119,10 +3125,37 @@ var customIcons = {
|
|
|
3119
3125
|
|
|
3120
3126
|
// src/components/Icons/systemIcons.tsx
|
|
3121
3127
|
import { GenIcon as GenIcon2 } from "@react-icons/all-files";
|
|
3128
|
+
import { CgGlobeAlt } from "@react-icons/all-files/cg/CgGlobeAlt";
|
|
3122
3129
|
import { CgList } from "@react-icons/all-files/cg/CgList";
|
|
3123
3130
|
import { CgPen } from "@react-icons/all-files/cg/CgPen";
|
|
3131
|
+
import { TbBinaryTree2 } from "@react-icons/all-files/tb/TbBinaryTree2";
|
|
3124
3132
|
import { TbBox } from "@react-icons/all-files/tb/TbBox";
|
|
3125
3133
|
var uniformComponentIcon = TbBox;
|
|
3134
|
+
var uniformConditionalValuesIcon = TbBinaryTree2;
|
|
3135
|
+
var uniformAiIcon = customIcons["magic-wand"];
|
|
3136
|
+
var uniformLocaleIcon = CgGlobeAlt;
|
|
3137
|
+
var uniformLocaleDisabledIcon = GenIcon2({
|
|
3138
|
+
tag: "svg",
|
|
3139
|
+
attr: { fill: "currentColor", viewBox: "0 0 24 24", role: "img" },
|
|
3140
|
+
child: [
|
|
3141
|
+
{
|
|
3142
|
+
tag: "path",
|
|
3143
|
+
attr: {
|
|
3144
|
+
fillRule: "evenodd",
|
|
3145
|
+
d: "M20.123 15.88A9 9 0 0 0 8.12 3.877l2.787 2.787c.03-.073.06-.145.092-.216.294-.661.592-1.073.823-1.292a.988.988 0 0 1 .178-.14.991.991 0 0 1 .178.14c.23.22.528.63.823 1.292.366.825.665 1.901.838 3.148l3.593 3.594a9.739 9.739 0 0 0 1.548-.665 6.968 6.968 0 0 1-.385 1.827l1.528 1.528ZM14.805 5.585c.691 1.53 1.136 3.62 1.19 5.945a9.939 9.939 0 0 0 1.557-.53c.6-.266.994-.536 1.226-.756a7.016 7.016 0 0 0-3.973-4.66ZM3.877 8.12A9 9 0 0 0 15.88 20.123l-2.787-2.787a7.89 7.89 0 0 1-.092.216c-.294.661-.593 1.073-.823 1.292a.996.996 0 0 1-.178.14.99.99 0 0 1-.178-.14c-.23-.22-.529-.63-.823-1.292-.367-.825-.666-1.901-.838-3.148L6.967 11.21a8.334 8.334 0 0 1-.519-.21c-.6-.266-.995-.536-1.226-.756a6.95 6.95 0 0 1 .183-.596L3.877 8.12Zm5.317 10.295c-.577-1.278-.982-2.947-1.131-4.817-1.183-.256-2.22-.624-3.044-1.073a7.004 7.004 0 0 0 4.175 5.89Z",
|
|
3146
|
+
clipRule: "evenodd"
|
|
3147
|
+
},
|
|
3148
|
+
child: []
|
|
3149
|
+
},
|
|
3150
|
+
{
|
|
3151
|
+
tag: "path",
|
|
3152
|
+
attr: {
|
|
3153
|
+
d: "M20.031 20.031a1.5 1.5 0 0 1-2.121 0L3.06 5.182a1.5 1.5 0 0 1 2.122-2.121L20.03 17.91a1.5 1.5 0 0 1 0 2.121Z"
|
|
3154
|
+
},
|
|
3155
|
+
child: []
|
|
3156
|
+
}
|
|
3157
|
+
]
|
|
3158
|
+
});
|
|
3126
3159
|
var uniformComponentPatternIcon = GenIcon2({
|
|
3127
3160
|
tag: "svg",
|
|
3128
3161
|
attr: {
|
|
@@ -12212,7 +12245,8 @@ var buttonStyle = (bgColor) => css24`
|
|
|
12212
12245
|
display: block;
|
|
12213
12246
|
font-size: var(--fs-sm);
|
|
12214
12247
|
line-height: 1.5;
|
|
12215
|
-
transition:
|
|
12248
|
+
transition:
|
|
12249
|
+
background-color var(--duration-fast) var(--timing-ease-out),
|
|
12216
12250
|
outline var(--duration-fast) var(--timing-ease-out);
|
|
12217
12251
|
outline: 1px solid transparent;
|
|
12218
12252
|
|
|
@@ -12624,7 +12658,8 @@ var CheckboxWithInfoInput = css29`
|
|
|
12624
12658
|
border-radius: var(--rounded-sm);
|
|
12625
12659
|
width: calc(var(--spacing-base) - 2px);
|
|
12626
12660
|
height: calc(var(--spacing-base) - 2px);
|
|
12627
|
-
transition:
|
|
12661
|
+
transition:
|
|
12662
|
+
background var(--duration-fast) var(--timing-ease-out),
|
|
12628
12663
|
border-color var(--duration-fast) var(--timing-ease-out),
|
|
12629
12664
|
color var(--duration-fast) var(--timing-ease-out);
|
|
12630
12665
|
|
|
@@ -13859,7 +13894,8 @@ var ButtonWithMenuContainer = css38`
|
|
|
13859
13894
|
display: inline-flex;
|
|
13860
13895
|
position: relative;
|
|
13861
13896
|
min-height: 24px;
|
|
13862
|
-
transition:
|
|
13897
|
+
transition:
|
|
13898
|
+
color var(--duration-fast) var(--timing-ease-out),
|
|
13863
13899
|
border-color var(--duration-fast) var(--timing-ease-out),
|
|
13864
13900
|
background-color var(--duration-fast) var(--timing-ease-out);
|
|
13865
13901
|
|
|
@@ -14840,7 +14876,8 @@ import { css as css48 } from "@emotion/react";
|
|
|
14840
14876
|
var ChipContainer = css48`
|
|
14841
14877
|
border-radius: var(--rounded-full);
|
|
14842
14878
|
display: inline-flex;
|
|
14843
|
-
transition:
|
|
14879
|
+
transition:
|
|
14880
|
+
background var(--duration-fast) var(--timing-ease-out),
|
|
14844
14881
|
color var(--duration-fast) var(--timing-ease-out);
|
|
14845
14882
|
position: relative;
|
|
14846
14883
|
|
|
@@ -15116,7 +15153,8 @@ var MultilineChipContainer = css49`
|
|
|
15116
15153
|
--gradient-rgb: var(--accent-primary-dark-rgb);
|
|
15117
15154
|
--gradient-rgb-hover: var(--accent-primary-dark-hover-rgb);
|
|
15118
15155
|
border-radius: var(--rounded-full);
|
|
15119
|
-
background:
|
|
15156
|
+
background:
|
|
15157
|
+
radial-gradient(
|
|
15120
15158
|
farthest-side at 100%,
|
|
15121
15159
|
rgba(var(--gradient-rgb), 0) 0%,
|
|
15122
15160
|
rgba(var(--gradient-rgb), 0.2) 80%,
|
|
@@ -15149,7 +15187,8 @@ var MultilineChipContainer = css49`
|
|
|
15149
15187
|
border: none;
|
|
15150
15188
|
&:hover,
|
|
15151
15189
|
&:focus {
|
|
15152
|
-
background:
|
|
15190
|
+
background:
|
|
15191
|
+
radial-gradient(
|
|
15153
15192
|
farthest-side at 100%,
|
|
15154
15193
|
rgba(var(--gradient-rgb-hover), 0) 0%,
|
|
15155
15194
|
rgba(var(--gradient-rgb-hover), 0.2) 80%,
|
|
@@ -15202,17 +15241,19 @@ var MultilineChip = ({ children, onClick, ...props }) => {
|
|
|
15202
15241
|
|
|
15203
15242
|
// src/components/Counter/Counter.styles.ts
|
|
15204
15243
|
import { css as css50 } from "@emotion/react";
|
|
15205
|
-
var counterContainer = (bgColor) => css50`
|
|
15244
|
+
var counterContainer = (bgColor, hasIcon) => css50`
|
|
15206
15245
|
align-items: center;
|
|
15207
15246
|
border-radius: var(--rounded-full);
|
|
15208
15247
|
border: 1px solid var(--gray-300);
|
|
15209
15248
|
background: ${bgColor};
|
|
15210
|
-
color: var(--typography-base);
|
|
15249
|
+
color: ${bgColor === "var(--accent-dark)" ? "white" : "var(--typography-base)"};
|
|
15211
15250
|
display: inline-flex;
|
|
15212
|
-
|
|
15251
|
+
gap: var(--spacing-xs);
|
|
15252
|
+
font-size: var(--fs-xs);
|
|
15213
15253
|
font-weight: var(--fw-regular);
|
|
15214
15254
|
justify-content: center;
|
|
15215
|
-
|
|
15255
|
+
padding: 4px;
|
|
15256
|
+
width: ${hasIcon ? "auto" : "var(--spacing-base)"};
|
|
15216
15257
|
height: var(--spacing-base);
|
|
15217
15258
|
`;
|
|
15218
15259
|
var counterZeroValue = css50`
|
|
@@ -15236,7 +15277,13 @@ var counterIcon = css50`
|
|
|
15236
15277
|
|
|
15237
15278
|
// src/components/Counter/Counter.tsx
|
|
15238
15279
|
import { jsx as jsx63, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
15239
|
-
var Counter = ({
|
|
15280
|
+
var Counter = ({
|
|
15281
|
+
count,
|
|
15282
|
+
bgColor = "transparent",
|
|
15283
|
+
icon,
|
|
15284
|
+
iconColor = "auto",
|
|
15285
|
+
...props
|
|
15286
|
+
}) => {
|
|
15240
15287
|
if (typeof count === "undefined") {
|
|
15241
15288
|
return null;
|
|
15242
15289
|
}
|
|
@@ -15245,7 +15292,19 @@ var Counter = ({ count, bgColor = "transparent", ...props }) => {
|
|
|
15245
15292
|
/* @__PURE__ */ jsx63(Icon, { icon: "math-plus", iconColor: "currentColor", size: "0.5rem", css: counterIcon })
|
|
15246
15293
|
] }) : count;
|
|
15247
15294
|
const formatCount = count === 0 ? /* @__PURE__ */ jsx63("span", { css: counterZeroValue, title: `${count}` }) : isTripleDigits;
|
|
15248
|
-
return /* @__PURE__ */
|
|
15295
|
+
return /* @__PURE__ */ jsxs39("div", { css: counterContainer(bgColor, Boolean(icon)), ...props, children: [
|
|
15296
|
+
icon ? /* @__PURE__ */ jsx63(
|
|
15297
|
+
"span",
|
|
15298
|
+
{
|
|
15299
|
+
css: [
|
|
15300
|
+
iconColor ? functionalColors : void 0,
|
|
15301
|
+
{ color: iconColor ? iconColor === "red" ? "var(--brand-secondary-5)" : iconColor : "inherit" }
|
|
15302
|
+
],
|
|
15303
|
+
children: /* @__PURE__ */ jsx63(Icon, { icon, iconColor: "currentColor", size: "0.6rem" })
|
|
15304
|
+
}
|
|
15305
|
+
) : null,
|
|
15306
|
+
/* @__PURE__ */ jsx63("span", { children: formatCount })
|
|
15307
|
+
] });
|
|
15249
15308
|
};
|
|
15250
15309
|
|
|
15251
15310
|
// src/components/DashedBox/DashedBox.styles.ts
|
|
@@ -19272,7 +19331,8 @@ var inputIconBtn = css88`
|
|
|
19272
19331
|
color: var(--gray-500);
|
|
19273
19332
|
background: none;
|
|
19274
19333
|
display: flex;
|
|
19275
|
-
transition:
|
|
19334
|
+
transition:
|
|
19335
|
+
background var(--duration-fast) var(--timing-ease-out),
|
|
19276
19336
|
color var(--duration-fast) var(--timing-ease-out);
|
|
19277
19337
|
|
|
19278
19338
|
&:hover,
|
|
@@ -19446,7 +19506,8 @@ var toggleInput2 = css89`
|
|
|
19446
19506
|
background: var(--white);
|
|
19447
19507
|
width: var(--spacing-base);
|
|
19448
19508
|
height: var(--spacing-base);
|
|
19449
|
-
transition:
|
|
19509
|
+
transition:
|
|
19510
|
+
background var(--duration-fast) var(--timing-ease-out),
|
|
19450
19511
|
border-color var(--duration-fast) var(--timing-ease-out),
|
|
19451
19512
|
color var(--duration-fast) var(--timing-ease-out);
|
|
19452
19513
|
font-size: var(--fs-sm);
|
|
@@ -19546,7 +19607,8 @@ var dataConnectButton = css89`
|
|
|
19546
19607
|
display: flex;
|
|
19547
19608
|
padding: var(--spacing-sm);
|
|
19548
19609
|
position: relative;
|
|
19549
|
-
transition:
|
|
19610
|
+
transition:
|
|
19611
|
+
background var(--duration-fast) var(--timing-ease-out),
|
|
19550
19612
|
outline-color var(--duration-fast) var(--timing-ease-out),
|
|
19551
19613
|
color var(--duration-fast) var(--timing-ease-out);
|
|
19552
19614
|
width: 100%;
|
|
@@ -22494,7 +22556,8 @@ var SwitchInput = (size) => css105`
|
|
|
22494
22556
|
width: ${size === "sm" ? "var(--spacing-base)" : "var(--spacing-md)"};
|
|
22495
22557
|
height: ${size === "sm" ? "var(--spacing-base)" : "var(--spacing-md)"};
|
|
22496
22558
|
margin-top: ${size === "sm" ? "var(--spacing-xs)" : "none"};
|
|
22497
|
-
transition:
|
|
22559
|
+
transition:
|
|
22560
|
+
transform var(--duration-fast) var(--timing-ease-out),
|
|
22498
22561
|
background-color var(--duration-fast) var(--timing-ease-out),
|
|
22499
22562
|
background-image var(--duration-fast) var(--timing-ease-out);
|
|
22500
22563
|
z-index: var(--z-10);
|
|
@@ -23110,12 +23173,16 @@ export {
|
|
|
23110
23173
|
supports,
|
|
23111
23174
|
textInput,
|
|
23112
23175
|
toast,
|
|
23176
|
+
uniformAiIcon,
|
|
23113
23177
|
uniformComponentIcon,
|
|
23114
23178
|
uniformComponentPatternIcon,
|
|
23115
23179
|
uniformCompositionPatternIcon,
|
|
23180
|
+
uniformConditionalValuesIcon,
|
|
23116
23181
|
uniformContentTypeIcon,
|
|
23117
23182
|
uniformEntryIcon,
|
|
23118
23183
|
uniformEntryPatternIcon,
|
|
23184
|
+
uniformLocaleDisabledIcon,
|
|
23185
|
+
uniformLocaleIcon,
|
|
23119
23186
|
useBreakpoint,
|
|
23120
23187
|
useCloseCurrentDrawer,
|
|
23121
23188
|
useCurrentDrawer,
|