@mastra/playground-ui 5.1.4-alpha.3 → 5.1.4-alpha.5

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.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import React__default, { createContext, useContext, forwardRef, useState, useEffect, memo, useRef, useCallback, useMemo, Suspense, Fragment as Fragment$1, useId } from 'react';
3
+ import React__default, { createContext, useContext, forwardRef, useState, useEffect, memo, useRef, useCallback, useMemo, Suspense, Fragment as Fragment$1 } from 'react';
4
4
  import { MastraClient } from '@mastra/client-js';
5
5
  import { useMessage, MessagePrimitive, ActionBarPrimitive, useComposerRuntime, ComposerPrimitive, useAttachment, AttachmentPrimitive, ThreadPrimitive, useExternalStoreRuntime, CompositeAttachmentAdapter, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, AssistantRuntimeProvider } from '@assistant-ui/react';
6
6
  import { CheckIcon as CheckIcon$1, CopyIcon, Check, Copy, ChevronUpIcon, X, FileText, FileIcon, CircleXIcon, Mic, PlusIcon, ArrowUp, Search, RefreshCcwIcon, ChevronRight, SortAsc, SortDesc, ChevronUp, ChevronDown, LoaderCircle, ChevronDownIcon, ExternalLinkIcon, Network, PauseIcon, Loader2, CircleDashed, Footprints, CircleCheck, CircleX, Workflow, AlertCircleIcon, AlertCircle, CalendarIcon, Braces, Brackets, TrashIcon, Plus, Minus, Maximize } from 'lucide-react';
@@ -539,8 +539,8 @@ const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
539
539
  const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
540
540
  const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
541
541
  const isFraction = value => fractionRegex.test(value);
542
- const isNumber = value => !!value && !Number.isNaN(Number(value));
543
- const isInteger = value => !!value && Number.isInteger(Number(value));
542
+ const isNumber = value => Boolean(value) && !Number.isNaN(Number(value));
543
+ const isInteger = value => Boolean(value) && Number.isInteger(Number(value));
544
544
  const isPercent = value => value.endsWith('%') && isNumber(value.slice(0, -1));
545
545
  const isTshirtSize = value => tshirtUnitRegex.test(value);
546
546
  const isAny = () => true;
@@ -559,7 +559,7 @@ const isArbitraryLength = value => getIsArbitraryValue(value, isLabelLength, isL
559
559
  const isArbitraryNumber = value => getIsArbitraryValue(value, isLabelNumber, isNumber);
560
560
  const isArbitraryPosition = value => getIsArbitraryValue(value, isLabelPosition, isNever);
561
561
  const isArbitraryImage = value => getIsArbitraryValue(value, isLabelImage, isImage);
562
- const isArbitraryShadow = value => getIsArbitraryValue(value, isLabelShadow, isShadow);
562
+ const isArbitraryShadow = value => getIsArbitraryValue(value, isNever, isShadow);
563
563
  const isArbitraryVariable = value => arbitraryVariableRegex.test(value);
564
564
  const isArbitraryVariableLength = value => getIsArbitraryVariable(value, isLabelLength);
565
565
  const isArbitraryVariableFamilyName = value => getIsArbitraryVariable(value, isLabelFamilyName);
@@ -589,9 +589,11 @@ const getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) =>
589
589
  return false;
590
590
  };
591
591
  // Labels
592
- const isLabelPosition = label => label === 'position' || label === 'percentage';
593
- const isLabelImage = label => label === 'image' || label === 'url';
594
- const isLabelSize = label => label === 'length' || label === 'size' || label === 'bg-size';
592
+ const isLabelPosition = label => label === 'position';
593
+ const imageLabels = /*#__PURE__*/new Set(['image', 'url']);
594
+ const isLabelImage = label => imageLabels.has(label);
595
+ const sizeLabels = /*#__PURE__*/new Set(['length', 'size', 'percentage']);
596
+ const isLabelSize = label => sizeLabels.has(label);
595
597
  const isLabelLength = label => label === 'length';
596
598
  const isLabelNumber = label => label === 'number';
597
599
  const isLabelFamilyName = label => label === 'family-name';
@@ -614,7 +616,6 @@ const getDefaultConfig = () => {
614
616
  const themeRadius = fromTheme('radius');
615
617
  const themeShadow = fromTheme('shadow');
616
618
  const themeInsetShadow = fromTheme('inset-shadow');
617
- const themeTextShadow = fromTheme('text-shadow');
618
619
  const themeDropShadow = fromTheme('drop-shadow');
619
620
  const themeBlur = fromTheme('blur');
620
621
  const themePerspective = fromTheme('perspective');
@@ -629,16 +630,7 @@ const getDefaultConfig = () => {
629
630
  */
630
631
  /***/
631
632
  const scaleBreak = () => ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];
632
- const scalePosition = () => ['center', 'top', 'bottom', 'left', 'right', 'top-left',
633
- // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
634
- 'left-top', 'top-right',
635
- // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
636
- 'right-top', 'bottom-right',
637
- // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
638
- 'right-bottom', 'bottom-left',
639
- // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
640
- 'left-bottom'];
641
- const scalePositionWithArbitrary = () => [...scalePosition(), isArbitraryVariable, isArbitraryValue];
633
+ const scalePosition = () => ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];
642
634
  const scaleOverflow = () => ['auto', 'hidden', 'clip', 'visible', 'scroll'];
643
635
  const scaleOverscroll = () => ['auto', 'contain', 'none'];
644
636
  const scaleUnambiguousSpacing = () => [isArbitraryVariable, isArbitraryValue, themeSpacing];
@@ -646,34 +638,25 @@ const getDefaultConfig = () => {
646
638
  const scaleGridTemplateColsRows = () => [isInteger, 'none', 'subgrid', isArbitraryVariable, isArbitraryValue];
647
639
  const scaleGridColRowStartAndEnd = () => ['auto', {
648
640
  span: ['full', isInteger, isArbitraryVariable, isArbitraryValue]
649
- }, isInteger, isArbitraryVariable, isArbitraryValue];
641
+ }, isArbitraryVariable, isArbitraryValue];
650
642
  const scaleGridColRowStartOrEnd = () => [isInteger, 'auto', isArbitraryVariable, isArbitraryValue];
651
643
  const scaleGridAutoColsRows = () => ['auto', 'min', 'max', 'fr', isArbitraryVariable, isArbitraryValue];
652
- const scaleAlignPrimaryAxis = () => ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch', 'baseline', 'center-safe', 'end-safe'];
653
- const scaleAlignSecondaryAxis = () => ['start', 'end', 'center', 'stretch', 'center-safe', 'end-safe'];
644
+ const scaleAlignPrimaryAxis = () => ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch', 'baseline'];
645
+ const scaleAlignSecondaryAxis = () => ['start', 'end', 'center', 'stretch'];
654
646
  const scaleMargin = () => ['auto', ...scaleUnambiguousSpacing()];
655
647
  const scaleSizing = () => [isFraction, 'auto', 'full', 'dvw', 'dvh', 'lvw', 'lvh', 'svw', 'svh', 'min', 'max', 'fit', ...scaleUnambiguousSpacing()];
656
648
  const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue];
657
- const scaleBgPosition = () => [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition, {
658
- position: [isArbitraryVariable, isArbitraryValue]
659
- }];
660
- const scaleBgRepeat = () => ['no-repeat', {
661
- repeat: ['', 'x', 'y', 'space', 'round']
662
- }];
663
- const scaleBgSize = () => ['auto', 'cover', 'contain', isArbitraryVariableSize, isArbitrarySize, {
664
- size: [isArbitraryVariable, isArbitraryValue]
665
- }];
666
- const scaleGradientStopPosition = () => [isPercent, isArbitraryVariableLength, isArbitraryLength];
649
+ const scaleGradientStopPosition = () => [isPercent, isArbitraryLength];
667
650
  const scaleRadius = () => [
668
651
  // Deprecated since Tailwind CSS v4.0.0
669
652
  '', 'none', 'full', themeRadius, isArbitraryVariable, isArbitraryValue];
670
653
  const scaleBorderWidth = () => ['', isNumber, isArbitraryVariableLength, isArbitraryLength];
671
654
  const scaleLineStyle = () => ['solid', 'dashed', 'dotted', 'double'];
672
655
  const scaleBlendMode = () => ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'];
673
- const scaleMaskImagePosition = () => [isNumber, isPercent, isArbitraryVariablePosition, isArbitraryPosition];
674
656
  const scaleBlur = () => [
675
657
  // Deprecated since Tailwind CSS v4.0.0
676
658
  '', 'none', themeBlur, isArbitraryVariable, isArbitraryValue];
659
+ const scaleOrigin = () => ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryVariable, isArbitraryValue];
677
660
  const scaleRotate = () => ['none', isNumber, isArbitraryVariable, isArbitraryValue];
678
661
  const scaleScale = () => ['none', isNumber, isArbitraryVariable, isArbitraryValue];
679
662
  const scaleSkew = () => [isNumber, isArbitraryVariable, isArbitraryValue];
@@ -698,7 +681,6 @@ const getDefaultConfig = () => {
698
681
  shadow: [isTshirtSize],
699
682
  spacing: ['px', isNumber],
700
683
  text: [isTshirtSize],
701
- 'text-shadow': [isTshirtSize],
702
684
  tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest']
703
685
  },
704
686
  classGroups: {
@@ -801,7 +783,7 @@ const getDefaultConfig = () => {
801
783
  * @see https://tailwindcss.com/docs/object-position
802
784
  */
803
785
  'object-position': [{
804
- object: scalePositionWithArbitrary()
786
+ object: [...scalePosition(), isArbitraryValue, isArbitraryVariable]
805
787
  }],
806
788
  /**
807
789
  * Overflow
@@ -1108,18 +1090,14 @@ const getDefaultConfig = () => {
1108
1090
  * @see https://tailwindcss.com/docs/align-items
1109
1091
  */
1110
1092
  'align-items': [{
1111
- items: [...scaleAlignSecondaryAxis(), {
1112
- baseline: ['', 'last']
1113
- }]
1093
+ items: [...scaleAlignSecondaryAxis(), 'baseline']
1114
1094
  }],
1115
1095
  /**
1116
1096
  * Align Self
1117
1097
  * @see https://tailwindcss.com/docs/align-self
1118
1098
  */
1119
1099
  'align-self': [{
1120
- self: ['auto', ...scaleAlignSecondaryAxis(), {
1121
- baseline: ['', 'last']
1122
- }]
1100
+ self: ['auto', ...scaleAlignSecondaryAxis(), 'baseline']
1123
1101
  }],
1124
1102
  /**
1125
1103
  * Place Content
@@ -1334,21 +1312,21 @@ const getDefaultConfig = () => {
1334
1312
  * @see https://tailwindcss.com/docs/height
1335
1313
  */
1336
1314
  h: [{
1337
- h: ['screen', 'lh', ...scaleSizing()]
1315
+ h: ['screen', ...scaleSizing()]
1338
1316
  }],
1339
1317
  /**
1340
1318
  * Min-Height
1341
1319
  * @see https://tailwindcss.com/docs/min-height
1342
1320
  */
1343
1321
  'min-h': [{
1344
- 'min-h': ['screen', 'lh', 'none', ...scaleSizing()]
1322
+ 'min-h': ['screen', 'none', ...scaleSizing()]
1345
1323
  }],
1346
1324
  /**
1347
1325
  * Max-Height
1348
1326
  * @see https://tailwindcss.com/docs/max-height
1349
1327
  */
1350
1328
  'max-h': [{
1351
- 'max-h': ['screen', 'lh', ...scaleSizing()]
1329
+ 'max-h': ['screen', ...scaleSizing()]
1352
1330
  }],
1353
1331
  // ------------------
1354
1332
  // --- Typography ---
@@ -1564,13 +1542,6 @@ const getDefaultConfig = () => {
1564
1542
  break: [{
1565
1543
  break: ['normal', 'words', 'all', 'keep']
1566
1544
  }],
1567
- /**
1568
- * Overflow Wrap
1569
- * @see https://tailwindcss.com/docs/overflow-wrap
1570
- */
1571
- wrap: [{
1572
- wrap: ['break-word', 'anywhere', 'normal']
1573
- }],
1574
1545
  /**
1575
1546
  * Hyphens
1576
1547
  * @see https://tailwindcss.com/docs/hyphens
@@ -1614,21 +1585,23 @@ const getDefaultConfig = () => {
1614
1585
  * @see https://tailwindcss.com/docs/background-position
1615
1586
  */
1616
1587
  'bg-position': [{
1617
- bg: scaleBgPosition()
1588
+ bg: [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition]
1618
1589
  }],
1619
1590
  /**
1620
1591
  * Background Repeat
1621
1592
  * @see https://tailwindcss.com/docs/background-repeat
1622
1593
  */
1623
1594
  'bg-repeat': [{
1624
- bg: scaleBgRepeat()
1595
+ bg: ['no-repeat', {
1596
+ repeat: ['', 'x', 'y', 'space', 'round']
1597
+ }]
1625
1598
  }],
1626
1599
  /**
1627
1600
  * Background Size
1628
1601
  * @see https://tailwindcss.com/docs/background-size
1629
1602
  */
1630
1603
  'bg-size': [{
1631
- bg: scaleBgSize()
1604
+ bg: ['auto', 'cover', 'contain', isArbitraryVariableSize, isArbitrarySize]
1632
1605
  }],
1633
1606
  /**
1634
1607
  * Background Image
@@ -1997,7 +1970,7 @@ const getDefaultConfig = () => {
1997
1970
  * @see https://tailwindcss.com/docs/outline-color
1998
1971
  */
1999
1972
  'outline-color': [{
2000
- outline: scaleColor()
1973
+ outline: [themeColor]
2001
1974
  }],
2002
1975
  // ---------------
2003
1976
  // --- Effects ---
@@ -2023,7 +1996,7 @@ const getDefaultConfig = () => {
2023
1996
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
2024
1997
  */
2025
1998
  'inset-shadow': [{
2026
- 'inset-shadow': ['none', themeInsetShadow, isArbitraryVariableShadow, isArbitraryShadow]
1999
+ 'inset-shadow': ['none', isArbitraryVariable, isArbitraryValue, themeInsetShadow]
2027
2000
  }],
2028
2001
  /**
2029
2002
  * Inset Box Shadow Color
@@ -2085,20 +2058,6 @@ const getDefaultConfig = () => {
2085
2058
  'inset-ring-color': [{
2086
2059
  'inset-ring': scaleColor()
2087
2060
  }],
2088
- /**
2089
- * Text Shadow
2090
- * @see https://tailwindcss.com/docs/text-shadow
2091
- */
2092
- 'text-shadow': [{
2093
- 'text-shadow': ['none', themeTextShadow, isArbitraryVariableShadow, isArbitraryShadow]
2094
- }],
2095
- /**
2096
- * Text Shadow Color
2097
- * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
2098
- */
2099
- 'text-shadow-color': [{
2100
- 'text-shadow': scaleColor()
2101
- }],
2102
2061
  /**
2103
2062
  * Opacity
2104
2063
  * @see https://tailwindcss.com/docs/opacity
@@ -2120,202 +2079,6 @@ const getDefaultConfig = () => {
2120
2079
  'bg-blend': [{
2121
2080
  'bg-blend': scaleBlendMode()
2122
2081
  }],
2123
- /**
2124
- * Mask Clip
2125
- * @see https://tailwindcss.com/docs/mask-clip
2126
- */
2127
- 'mask-clip': [{
2128
- 'mask-clip': ['border', 'padding', 'content', 'fill', 'stroke', 'view']
2129
- }, 'mask-no-clip'],
2130
- /**
2131
- * Mask Composite
2132
- * @see https://tailwindcss.com/docs/mask-composite
2133
- */
2134
- 'mask-composite': [{
2135
- mask: ['add', 'subtract', 'intersect', 'exclude']
2136
- }],
2137
- /**
2138
- * Mask Image
2139
- * @see https://tailwindcss.com/docs/mask-image
2140
- */
2141
- 'mask-image-linear-pos': [{
2142
- 'mask-linear': [isNumber]
2143
- }],
2144
- 'mask-image-linear-from-pos': [{
2145
- 'mask-linear-from': scaleMaskImagePosition()
2146
- }],
2147
- 'mask-image-linear-to-pos': [{
2148
- 'mask-linear-to': scaleMaskImagePosition()
2149
- }],
2150
- 'mask-image-linear-from-color': [{
2151
- 'mask-linear-from': scaleColor()
2152
- }],
2153
- 'mask-image-linear-to-color': [{
2154
- 'mask-linear-to': scaleColor()
2155
- }],
2156
- 'mask-image-t-from-pos': [{
2157
- 'mask-t-from': scaleMaskImagePosition()
2158
- }],
2159
- 'mask-image-t-to-pos': [{
2160
- 'mask-t-to': scaleMaskImagePosition()
2161
- }],
2162
- 'mask-image-t-from-color': [{
2163
- 'mask-t-from': scaleColor()
2164
- }],
2165
- 'mask-image-t-to-color': [{
2166
- 'mask-t-to': scaleColor()
2167
- }],
2168
- 'mask-image-r-from-pos': [{
2169
- 'mask-r-from': scaleMaskImagePosition()
2170
- }],
2171
- 'mask-image-r-to-pos': [{
2172
- 'mask-r-to': scaleMaskImagePosition()
2173
- }],
2174
- 'mask-image-r-from-color': [{
2175
- 'mask-r-from': scaleColor()
2176
- }],
2177
- 'mask-image-r-to-color': [{
2178
- 'mask-r-to': scaleColor()
2179
- }],
2180
- 'mask-image-b-from-pos': [{
2181
- 'mask-b-from': scaleMaskImagePosition()
2182
- }],
2183
- 'mask-image-b-to-pos': [{
2184
- 'mask-b-to': scaleMaskImagePosition()
2185
- }],
2186
- 'mask-image-b-from-color': [{
2187
- 'mask-b-from': scaleColor()
2188
- }],
2189
- 'mask-image-b-to-color': [{
2190
- 'mask-b-to': scaleColor()
2191
- }],
2192
- 'mask-image-l-from-pos': [{
2193
- 'mask-l-from': scaleMaskImagePosition()
2194
- }],
2195
- 'mask-image-l-to-pos': [{
2196
- 'mask-l-to': scaleMaskImagePosition()
2197
- }],
2198
- 'mask-image-l-from-color': [{
2199
- 'mask-l-from': scaleColor()
2200
- }],
2201
- 'mask-image-l-to-color': [{
2202
- 'mask-l-to': scaleColor()
2203
- }],
2204
- 'mask-image-x-from-pos': [{
2205
- 'mask-x-from': scaleMaskImagePosition()
2206
- }],
2207
- 'mask-image-x-to-pos': [{
2208
- 'mask-x-to': scaleMaskImagePosition()
2209
- }],
2210
- 'mask-image-x-from-color': [{
2211
- 'mask-x-from': scaleColor()
2212
- }],
2213
- 'mask-image-x-to-color': [{
2214
- 'mask-x-to': scaleColor()
2215
- }],
2216
- 'mask-image-y-from-pos': [{
2217
- 'mask-y-from': scaleMaskImagePosition()
2218
- }],
2219
- 'mask-image-y-to-pos': [{
2220
- 'mask-y-to': scaleMaskImagePosition()
2221
- }],
2222
- 'mask-image-y-from-color': [{
2223
- 'mask-y-from': scaleColor()
2224
- }],
2225
- 'mask-image-y-to-color': [{
2226
- 'mask-y-to': scaleColor()
2227
- }],
2228
- 'mask-image-radial': [{
2229
- 'mask-radial': [isArbitraryVariable, isArbitraryValue]
2230
- }],
2231
- 'mask-image-radial-from-pos': [{
2232
- 'mask-radial-from': scaleMaskImagePosition()
2233
- }],
2234
- 'mask-image-radial-to-pos': [{
2235
- 'mask-radial-to': scaleMaskImagePosition()
2236
- }],
2237
- 'mask-image-radial-from-color': [{
2238
- 'mask-radial-from': scaleColor()
2239
- }],
2240
- 'mask-image-radial-to-color': [{
2241
- 'mask-radial-to': scaleColor()
2242
- }],
2243
- 'mask-image-radial-shape': [{
2244
- 'mask-radial': ['circle', 'ellipse']
2245
- }],
2246
- 'mask-image-radial-size': [{
2247
- 'mask-radial': [{
2248
- closest: ['side', 'corner'],
2249
- farthest: ['side', 'corner']
2250
- }]
2251
- }],
2252
- 'mask-image-radial-pos': [{
2253
- 'mask-radial-at': scalePosition()
2254
- }],
2255
- 'mask-image-conic-pos': [{
2256
- 'mask-conic': [isNumber]
2257
- }],
2258
- 'mask-image-conic-from-pos': [{
2259
- 'mask-conic-from': scaleMaskImagePosition()
2260
- }],
2261
- 'mask-image-conic-to-pos': [{
2262
- 'mask-conic-to': scaleMaskImagePosition()
2263
- }],
2264
- 'mask-image-conic-from-color': [{
2265
- 'mask-conic-from': scaleColor()
2266
- }],
2267
- 'mask-image-conic-to-color': [{
2268
- 'mask-conic-to': scaleColor()
2269
- }],
2270
- /**
2271
- * Mask Mode
2272
- * @see https://tailwindcss.com/docs/mask-mode
2273
- */
2274
- 'mask-mode': [{
2275
- mask: ['alpha', 'luminance', 'match']
2276
- }],
2277
- /**
2278
- * Mask Origin
2279
- * @see https://tailwindcss.com/docs/mask-origin
2280
- */
2281
- 'mask-origin': [{
2282
- 'mask-origin': ['border', 'padding', 'content', 'fill', 'stroke', 'view']
2283
- }],
2284
- /**
2285
- * Mask Position
2286
- * @see https://tailwindcss.com/docs/mask-position
2287
- */
2288
- 'mask-position': [{
2289
- mask: scaleBgPosition()
2290
- }],
2291
- /**
2292
- * Mask Repeat
2293
- * @see https://tailwindcss.com/docs/mask-repeat
2294
- */
2295
- 'mask-repeat': [{
2296
- mask: scaleBgRepeat()
2297
- }],
2298
- /**
2299
- * Mask Size
2300
- * @see https://tailwindcss.com/docs/mask-size
2301
- */
2302
- 'mask-size': [{
2303
- mask: scaleBgSize()
2304
- }],
2305
- /**
2306
- * Mask Type
2307
- * @see https://tailwindcss.com/docs/mask-type
2308
- */
2309
- 'mask-type': [{
2310
- 'mask-type': ['alpha', 'luminance']
2311
- }],
2312
- /**
2313
- * Mask Image
2314
- * @see https://tailwindcss.com/docs/mask-image
2315
- */
2316
- 'mask-image': [{
2317
- mask: ['none', isArbitraryVariable, isArbitraryValue]
2318
- }],
2319
2082
  // ---------------
2320
2083
  // --- Filters ---
2321
2084
  // ---------------
@@ -2356,14 +2119,7 @@ const getDefaultConfig = () => {
2356
2119
  'drop-shadow': [{
2357
2120
  'drop-shadow': [
2358
2121
  // Deprecated since Tailwind CSS v4.0.0
2359
- '', 'none', themeDropShadow, isArbitraryVariableShadow, isArbitraryShadow]
2360
- }],
2361
- /**
2362
- * Drop Shadow Color
2363
- * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
2364
- */
2365
- 'drop-shadow-color': [{
2366
- 'drop-shadow': scaleColor()
2122
+ '', 'none', themeDropShadow, isArbitraryVariable, isArbitraryValue]
2367
2123
  }],
2368
2124
  /**
2369
2125
  * Grayscale
@@ -2584,7 +2340,7 @@ const getDefaultConfig = () => {
2584
2340
  * @see https://tailwindcss.com/docs/perspective-origin
2585
2341
  */
2586
2342
  'perspective-origin': [{
2587
- 'perspective-origin': scalePositionWithArbitrary()
2343
+ 'perspective-origin': scaleOrigin()
2588
2344
  }],
2589
2345
  /**
2590
2346
  * Rotate
@@ -2680,7 +2436,7 @@ const getDefaultConfig = () => {
2680
2436
  * @see https://tailwindcss.com/docs/transform-origin
2681
2437
  */
2682
2438
  'transform-origin': [{
2683
- origin: scalePositionWithArbitrary()
2439
+ origin: scaleOrigin()
2684
2440
  }],
2685
2441
  /**
2686
2442
  * Transform Style
@@ -3048,10 +2804,10 @@ const getDefaultConfig = () => {
3048
2804
  'rounded-b': ['rounded-br', 'rounded-bl'],
3049
2805
  'rounded-l': ['rounded-tl', 'rounded-bl'],
3050
2806
  'border-spacing': ['border-spacing-x', 'border-spacing-y'],
3051
- 'border-w': ['border-w-x', 'border-w-y', 'border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],
2807
+ 'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],
3052
2808
  'border-w-x': ['border-w-r', 'border-w-l'],
3053
2809
  'border-w-y': ['border-w-t', 'border-w-b'],
3054
- 'border-color': ['border-color-x', 'border-color-y', 'border-color-s', 'border-color-e', 'border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],
2810
+ 'border-color': ['border-color-s', 'border-color-e', 'border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],
3055
2811
  'border-color-x': ['border-color-r', 'border-color-l'],
3056
2812
  'border-color-y': ['border-color-t', 'border-color-b'],
3057
2813
  translate: ['translate-x', 'translate-y', 'translate-none'],
@@ -3070,7 +2826,7 @@ const getDefaultConfig = () => {
3070
2826
  conflictingClassGroupModifiers: {
3071
2827
  'font-size': ['leading']
3072
2828
  },
3073
- orderSensitiveModifiers: ['*', '**', 'after', 'backdrop', 'before', 'details-content', 'file', 'first-letter', 'first-line', 'marker', 'placeholder', 'selection']
2829
+ orderSensitiveModifiers: ['before', 'after', 'placeholder', 'file', 'marker', 'selection', 'first-line', 'first-letter', 'backdrop', '*', '**']
3074
2830
  };
3075
2831
  };
3076
2832
  const twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
@@ -10000,60 +9756,9 @@ function WorkflowTrigger({ workflowId, setRunId }) {
10000
9756
  ] });
10001
9757
  })
10002
9758
  ] }),
10003
- result && /* @__PURE__ */ jsx("div", { className: "p-5 border-b-sm border-border1", children: /* @__PURE__ */ jsx(WorkflowJsonDialog, { result: restResult }) }),
10004
- result && /* @__PURE__ */ jsx(WorkflowResultSection, { result, workflow })
9759
+ result && /* @__PURE__ */ jsx("div", { className: "p-5 border-b-sm border-border1", children: /* @__PURE__ */ jsx(WorkflowJsonDialog, { result: restResult }) })
10005
9760
  ] });
10006
9761
  }
10007
- const WorkflowResultSection = ({ result, workflow }) => {
10008
- const workflowState = result.payload.workflowState;
10009
- if (typeof workflowState.result === "string" || typeof workflowState.result === "number" || typeof workflowState.result === "boolean") {
10010
- return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1 p-5", children: [
10011
- /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx(Txt, { as: "label", htmlFor: "string-result", variant: "ui-sm", className: "text-icon3", children: "Workflow Result" }) }),
10012
- /* @__PURE__ */ jsx(Input, { id: "string-result", defaultValue: String(workflowState.result) })
10013
- ] });
10014
- }
10015
- const hasResult = Object.keys(workflowState.result || {}).length > 0;
10016
- if (!hasResult) return null;
10017
- return /* @__PURE__ */ jsxs("div", { className: "p-5", children: [
10018
- /* @__PURE__ */ jsx(Txt, { variant: "ui-sm", className: "text-icon3", children: "Final Output" }),
10019
- /* @__PURE__ */ jsx("ul", { className: "pt-4", children: Object.entries(workflowState.result || {}).map(([stepId, stepResult]) => {
10020
- const stepDefinition = workflow.steps[stepId];
10021
- return /* @__PURE__ */ jsx(
10022
- "li",
10023
- {
10024
- className: "border-b-sm border-dashed border-border1 last:border-b-0 py-4 first:pt-0 last:pb-0",
10025
- children: /* @__PURE__ */ jsx(WorkflowResultFinishedStep, { stepResult, stepDefinition })
10026
- },
10027
- stepId
10028
- );
10029
- }) })
10030
- ] });
10031
- };
10032
- const WorkflowResultFinishedStep = ({ stepResult, stepDefinition }) => {
10033
- const id = useId();
10034
- try {
10035
- const zodObjectSchema = resolveSerializedZodOutput(jsonSchemaToZod(parse(stepDefinition.outputSchema)));
10036
- if (zodObjectSchema?._def?.typeName === "ZodString") {
10037
- return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
10038
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
10039
- /* @__PURE__ */ jsx(Icon, { children: /* @__PURE__ */ jsx(Footprints, { className: "text-icon3" }) }),
10040
- /* @__PURE__ */ jsx(Txt, { as: "label", htmlFor: id, variant: "ui-sm", className: "text-icon3", children: stepDefinition.description })
10041
- ] }),
10042
- /* @__PURE__ */ jsx(Input, { id, defaultValue: stepResult })
10043
- ] });
10044
- }
10045
- return /* @__PURE__ */ jsxs("div", { children: [
10046
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 pb-2", children: [
10047
- /* @__PURE__ */ jsx(Icon, { children: /* @__PURE__ */ jsx(Footprints, { className: "text-icon3" }) }),
10048
- /* @__PURE__ */ jsx(Txt, { variant: "ui-sm", className: "text-icon3", children: stepDefinition.description })
10049
- ] }),
10050
- /* @__PURE__ */ jsx(DynamicForm, { schema: zodObjectSchema, defaultValues: stepResult })
10051
- ] });
10052
- } catch (err) {
10053
- console.error("Error parsing output schema", err);
10054
- return /* @__PURE__ */ jsx(Txt, { children: "An error occured. Please open an issue on GitHub." });
10055
- }
10056
- };
10057
9762
  const WorkflowJsonDialog = ({ result }) => {
10058
9763
  const [open, setOpen] = useState(false);
10059
9764
  return /* @__PURE__ */ jsxs(Fragment, { children: [