@mainframework/dropzone 1.0.22 → 1.0.24

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.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use client";
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { useRef, memo, useId, useCallback, useState, useMemo } from 'react';
4
- import './shared/components/FileSelector/tailwind.css';
5
4
 
6
5
  //Use this to quickly get the file extensions
7
6
  //Devs can pass their own custom type mappings to override these defaults
@@ -643,7 +642,7 @@ const fromTheme = key => {
643
642
  };
644
643
  const arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
645
644
  const arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
646
- const fractionRegex = /^\d+\/\d+$/;
645
+ const fractionRegex = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/;
647
646
  const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
648
647
  const lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
649
648
  const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
@@ -769,6 +768,8 @@ const getDefaultConfig = () => {
769
768
  const scaleAlignSecondaryAxis = () => ['start', 'end', 'center', 'stretch', 'center-safe', 'end-safe'];
770
769
  const scaleMargin = () => ['auto', ...scaleUnambiguousSpacing()];
771
770
  const scaleSizing = () => [isFraction, 'auto', 'full', 'dvw', 'dvh', 'lvw', 'lvh', 'svw', 'svh', 'min', 'max', 'fit', ...scaleUnambiguousSpacing()];
771
+ const scaleSizingInline = () => [isFraction, 'screen', 'full', 'dvw', 'lvw', 'svw', 'min', 'max', 'fit', ...scaleUnambiguousSpacing()];
772
+ const scaleSizingBlock = () => [isFraction, 'screen', 'full', 'lh', 'dvh', 'lvh', 'svh', 'min', 'max', 'fit', ...scaleUnambiguousSpacing()];
772
773
  const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue];
773
774
  const scaleBgPosition = () => [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition, {
774
775
  position: [isArbitraryVariable, isArbitraryValue]
@@ -967,40 +968,66 @@ const getDefaultConfig = () => {
967
968
  */
968
969
  position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],
969
970
  /**
970
- * Top / Right / Bottom / Left
971
+ * Inset
971
972
  * @see https://tailwindcss.com/docs/top-right-bottom-left
972
973
  */
973
974
  inset: [{
974
975
  inset: scaleInset()
975
976
  }],
976
977
  /**
977
- * Right / Left
978
+ * Inset Inline
978
979
  * @see https://tailwindcss.com/docs/top-right-bottom-left
979
980
  */
980
981
  'inset-x': [{
981
982
  'inset-x': scaleInset()
982
983
  }],
983
984
  /**
984
- * Top / Bottom
985
+ * Inset Block
985
986
  * @see https://tailwindcss.com/docs/top-right-bottom-left
986
987
  */
987
988
  'inset-y': [{
988
989
  'inset-y': scaleInset()
989
990
  }],
990
991
  /**
991
- * Start
992
+ * Inset Inline Start
992
993
  * @see https://tailwindcss.com/docs/top-right-bottom-left
994
+ * @todo class group will be renamed to `inset-s` in next major release
993
995
  */
994
996
  start: [{
997
+ 'inset-s': scaleInset(),
998
+ /**
999
+ * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
1000
+ * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
1001
+ */
995
1002
  start: scaleInset()
996
1003
  }],
997
1004
  /**
998
- * End
1005
+ * Inset Inline End
999
1006
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1007
+ * @todo class group will be renamed to `inset-e` in next major release
1000
1008
  */
1001
1009
  end: [{
1010
+ 'inset-e': scaleInset(),
1011
+ /**
1012
+ * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
1013
+ * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
1014
+ */
1002
1015
  end: scaleInset()
1003
1016
  }],
1017
+ /**
1018
+ * Inset Block Start
1019
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
1020
+ */
1021
+ 'inset-bs': [{
1022
+ 'inset-bs': scaleInset()
1023
+ }],
1024
+ /**
1025
+ * Inset Block End
1026
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
1027
+ */
1028
+ 'inset-be': [{
1029
+ 'inset-be': scaleInset()
1030
+ }],
1004
1031
  /**
1005
1032
  * Top
1006
1033
  * @see https://tailwindcss.com/docs/top-right-bottom-left
@@ -1267,33 +1294,47 @@ const getDefaultConfig = () => {
1267
1294
  p: scaleUnambiguousSpacing()
1268
1295
  }],
1269
1296
  /**
1270
- * Padding X
1297
+ * Padding Inline
1271
1298
  * @see https://tailwindcss.com/docs/padding
1272
1299
  */
1273
1300
  px: [{
1274
1301
  px: scaleUnambiguousSpacing()
1275
1302
  }],
1276
1303
  /**
1277
- * Padding Y
1304
+ * Padding Block
1278
1305
  * @see https://tailwindcss.com/docs/padding
1279
1306
  */
1280
1307
  py: [{
1281
1308
  py: scaleUnambiguousSpacing()
1282
1309
  }],
1283
1310
  /**
1284
- * Padding Start
1311
+ * Padding Inline Start
1285
1312
  * @see https://tailwindcss.com/docs/padding
1286
1313
  */
1287
1314
  ps: [{
1288
1315
  ps: scaleUnambiguousSpacing()
1289
1316
  }],
1290
1317
  /**
1291
- * Padding End
1318
+ * Padding Inline End
1292
1319
  * @see https://tailwindcss.com/docs/padding
1293
1320
  */
1294
1321
  pe: [{
1295
1322
  pe: scaleUnambiguousSpacing()
1296
1323
  }],
1324
+ /**
1325
+ * Padding Block Start
1326
+ * @see https://tailwindcss.com/docs/padding
1327
+ */
1328
+ pbs: [{
1329
+ pbs: scaleUnambiguousSpacing()
1330
+ }],
1331
+ /**
1332
+ * Padding Block End
1333
+ * @see https://tailwindcss.com/docs/padding
1334
+ */
1335
+ pbe: [{
1336
+ pbe: scaleUnambiguousSpacing()
1337
+ }],
1297
1338
  /**
1298
1339
  * Padding Top
1299
1340
  * @see https://tailwindcss.com/docs/padding
@@ -1330,33 +1371,47 @@ const getDefaultConfig = () => {
1330
1371
  m: scaleMargin()
1331
1372
  }],
1332
1373
  /**
1333
- * Margin X
1374
+ * Margin Inline
1334
1375
  * @see https://tailwindcss.com/docs/margin
1335
1376
  */
1336
1377
  mx: [{
1337
1378
  mx: scaleMargin()
1338
1379
  }],
1339
1380
  /**
1340
- * Margin Y
1381
+ * Margin Block
1341
1382
  * @see https://tailwindcss.com/docs/margin
1342
1383
  */
1343
1384
  my: [{
1344
1385
  my: scaleMargin()
1345
1386
  }],
1346
1387
  /**
1347
- * Margin Start
1388
+ * Margin Inline Start
1348
1389
  * @see https://tailwindcss.com/docs/margin
1349
1390
  */
1350
1391
  ms: [{
1351
1392
  ms: scaleMargin()
1352
1393
  }],
1353
1394
  /**
1354
- * Margin End
1395
+ * Margin Inline End
1355
1396
  * @see https://tailwindcss.com/docs/margin
1356
1397
  */
1357
1398
  me: [{
1358
1399
  me: scaleMargin()
1359
1400
  }],
1401
+ /**
1402
+ * Margin Block Start
1403
+ * @see https://tailwindcss.com/docs/margin
1404
+ */
1405
+ mbs: [{
1406
+ mbs: scaleMargin()
1407
+ }],
1408
+ /**
1409
+ * Margin Block End
1410
+ * @see https://tailwindcss.com/docs/margin
1411
+ */
1412
+ mbe: [{
1413
+ mbe: scaleMargin()
1414
+ }],
1360
1415
  /**
1361
1416
  * Margin Top
1362
1417
  * @see https://tailwindcss.com/docs/margin
@@ -1419,6 +1474,48 @@ const getDefaultConfig = () => {
1419
1474
  size: [{
1420
1475
  size: scaleSizing()
1421
1476
  }],
1477
+ /**
1478
+ * Inline Size
1479
+ * @see https://tailwindcss.com/docs/width
1480
+ */
1481
+ 'inline-size': [{
1482
+ inline: ['auto', ...scaleSizingInline()]
1483
+ }],
1484
+ /**
1485
+ * Min-Inline Size
1486
+ * @see https://tailwindcss.com/docs/min-width
1487
+ */
1488
+ 'min-inline-size': [{
1489
+ 'min-inline': ['auto', ...scaleSizingInline()]
1490
+ }],
1491
+ /**
1492
+ * Max-Inline Size
1493
+ * @see https://tailwindcss.com/docs/max-width
1494
+ */
1495
+ 'max-inline-size': [{
1496
+ 'max-inline': ['none', ...scaleSizingInline()]
1497
+ }],
1498
+ /**
1499
+ * Block Size
1500
+ * @see https://tailwindcss.com/docs/height
1501
+ */
1502
+ 'block-size': [{
1503
+ block: ['auto', ...scaleSizingBlock()]
1504
+ }],
1505
+ /**
1506
+ * Min-Block Size
1507
+ * @see https://tailwindcss.com/docs/min-height
1508
+ */
1509
+ 'min-block-size': [{
1510
+ 'min-block': ['auto', ...scaleSizingBlock()]
1511
+ }],
1512
+ /**
1513
+ * Max-Block Size
1514
+ * @see https://tailwindcss.com/docs/max-height
1515
+ */
1516
+ 'max-block-size': [{
1517
+ 'max-block': ['none', ...scaleSizingBlock()]
1518
+ }],
1422
1519
  /**
1423
1520
  * Width
1424
1521
  * @see https://tailwindcss.com/docs/width
@@ -1507,6 +1604,13 @@ const getDefaultConfig = () => {
1507
1604
  'font-family': [{
1508
1605
  font: [isArbitraryVariableFamilyName, isArbitraryFamilyName, themeFont]
1509
1606
  }],
1607
+ /**
1608
+ * Font Feature Settings
1609
+ * @see https://tailwindcss.com/docs/font-feature-settings
1610
+ */
1611
+ 'font-features': [{
1612
+ 'font-features': [isArbitraryValue]
1613
+ }],
1510
1614
  /**
1511
1615
  * Font Variant Numeric
1512
1616
  * @see https://tailwindcss.com/docs/font-variant-numeric
@@ -1924,33 +2028,47 @@ const getDefaultConfig = () => {
1924
2028
  border: scaleBorderWidth()
1925
2029
  }],
1926
2030
  /**
1927
- * Border Width X
2031
+ * Border Width Inline
1928
2032
  * @see https://tailwindcss.com/docs/border-width
1929
2033
  */
1930
2034
  'border-w-x': [{
1931
2035
  'border-x': scaleBorderWidth()
1932
2036
  }],
1933
2037
  /**
1934
- * Border Width Y
2038
+ * Border Width Block
1935
2039
  * @see https://tailwindcss.com/docs/border-width
1936
2040
  */
1937
2041
  'border-w-y': [{
1938
2042
  'border-y': scaleBorderWidth()
1939
2043
  }],
1940
2044
  /**
1941
- * Border Width Start
2045
+ * Border Width Inline Start
1942
2046
  * @see https://tailwindcss.com/docs/border-width
1943
2047
  */
1944
2048
  'border-w-s': [{
1945
2049
  'border-s': scaleBorderWidth()
1946
2050
  }],
1947
2051
  /**
1948
- * Border Width End
2052
+ * Border Width Inline End
1949
2053
  * @see https://tailwindcss.com/docs/border-width
1950
2054
  */
1951
2055
  'border-w-e': [{
1952
2056
  'border-e': scaleBorderWidth()
1953
2057
  }],
2058
+ /**
2059
+ * Border Width Block Start
2060
+ * @see https://tailwindcss.com/docs/border-width
2061
+ */
2062
+ 'border-w-bs': [{
2063
+ 'border-bs': scaleBorderWidth()
2064
+ }],
2065
+ /**
2066
+ * Border Width Block End
2067
+ * @see https://tailwindcss.com/docs/border-width
2068
+ */
2069
+ 'border-w-be': [{
2070
+ 'border-be': scaleBorderWidth()
2071
+ }],
1954
2072
  /**
1955
2073
  * Border Width Top
1956
2074
  * @see https://tailwindcss.com/docs/border-width
@@ -2025,33 +2143,47 @@ const getDefaultConfig = () => {
2025
2143
  border: scaleColor()
2026
2144
  }],
2027
2145
  /**
2028
- * Border Color X
2146
+ * Border Color Inline
2029
2147
  * @see https://tailwindcss.com/docs/border-color
2030
2148
  */
2031
2149
  'border-color-x': [{
2032
2150
  'border-x': scaleColor()
2033
2151
  }],
2034
2152
  /**
2035
- * Border Color Y
2153
+ * Border Color Block
2036
2154
  * @see https://tailwindcss.com/docs/border-color
2037
2155
  */
2038
2156
  'border-color-y': [{
2039
2157
  'border-y': scaleColor()
2040
2158
  }],
2041
2159
  /**
2042
- * Border Color S
2160
+ * Border Color Inline Start
2043
2161
  * @see https://tailwindcss.com/docs/border-color
2044
2162
  */
2045
2163
  'border-color-s': [{
2046
2164
  'border-s': scaleColor()
2047
2165
  }],
2048
2166
  /**
2049
- * Border Color E
2167
+ * Border Color Inline End
2050
2168
  * @see https://tailwindcss.com/docs/border-color
2051
2169
  */
2052
2170
  'border-color-e': [{
2053
2171
  'border-e': scaleColor()
2054
2172
  }],
2173
+ /**
2174
+ * Border Color Block Start
2175
+ * @see https://tailwindcss.com/docs/border-color
2176
+ */
2177
+ 'border-color-bs': [{
2178
+ 'border-bs': scaleColor()
2179
+ }],
2180
+ /**
2181
+ * Border Color Block End
2182
+ * @see https://tailwindcss.com/docs/border-color
2183
+ */
2184
+ 'border-color-be': [{
2185
+ 'border-be': scaleColor()
2186
+ }],
2055
2187
  /**
2056
2188
  * Border Color Top
2057
2189
  * @see https://tailwindcss.com/docs/border-color
@@ -2912,33 +3044,47 @@ const getDefaultConfig = () => {
2912
3044
  'scroll-m': scaleUnambiguousSpacing()
2913
3045
  }],
2914
3046
  /**
2915
- * Scroll Margin X
3047
+ * Scroll Margin Inline
2916
3048
  * @see https://tailwindcss.com/docs/scroll-margin
2917
3049
  */
2918
3050
  'scroll-mx': [{
2919
3051
  'scroll-mx': scaleUnambiguousSpacing()
2920
3052
  }],
2921
3053
  /**
2922
- * Scroll Margin Y
3054
+ * Scroll Margin Block
2923
3055
  * @see https://tailwindcss.com/docs/scroll-margin
2924
3056
  */
2925
3057
  'scroll-my': [{
2926
3058
  'scroll-my': scaleUnambiguousSpacing()
2927
3059
  }],
2928
3060
  /**
2929
- * Scroll Margin Start
3061
+ * Scroll Margin Inline Start
2930
3062
  * @see https://tailwindcss.com/docs/scroll-margin
2931
3063
  */
2932
3064
  'scroll-ms': [{
2933
3065
  'scroll-ms': scaleUnambiguousSpacing()
2934
3066
  }],
2935
3067
  /**
2936
- * Scroll Margin End
3068
+ * Scroll Margin Inline End
2937
3069
  * @see https://tailwindcss.com/docs/scroll-margin
2938
3070
  */
2939
3071
  'scroll-me': [{
2940
3072
  'scroll-me': scaleUnambiguousSpacing()
2941
3073
  }],
3074
+ /**
3075
+ * Scroll Margin Block Start
3076
+ * @see https://tailwindcss.com/docs/scroll-margin
3077
+ */
3078
+ 'scroll-mbs': [{
3079
+ 'scroll-mbs': scaleUnambiguousSpacing()
3080
+ }],
3081
+ /**
3082
+ * Scroll Margin Block End
3083
+ * @see https://tailwindcss.com/docs/scroll-margin
3084
+ */
3085
+ 'scroll-mbe': [{
3086
+ 'scroll-mbe': scaleUnambiguousSpacing()
3087
+ }],
2942
3088
  /**
2943
3089
  * Scroll Margin Top
2944
3090
  * @see https://tailwindcss.com/docs/scroll-margin
@@ -2975,33 +3121,47 @@ const getDefaultConfig = () => {
2975
3121
  'scroll-p': scaleUnambiguousSpacing()
2976
3122
  }],
2977
3123
  /**
2978
- * Scroll Padding X
3124
+ * Scroll Padding Inline
2979
3125
  * @see https://tailwindcss.com/docs/scroll-padding
2980
3126
  */
2981
3127
  'scroll-px': [{
2982
3128
  'scroll-px': scaleUnambiguousSpacing()
2983
3129
  }],
2984
3130
  /**
2985
- * Scroll Padding Y
3131
+ * Scroll Padding Block
2986
3132
  * @see https://tailwindcss.com/docs/scroll-padding
2987
3133
  */
2988
3134
  'scroll-py': [{
2989
3135
  'scroll-py': scaleUnambiguousSpacing()
2990
3136
  }],
2991
3137
  /**
2992
- * Scroll Padding Start
3138
+ * Scroll Padding Inline Start
2993
3139
  * @see https://tailwindcss.com/docs/scroll-padding
2994
3140
  */
2995
3141
  'scroll-ps': [{
2996
3142
  'scroll-ps': scaleUnambiguousSpacing()
2997
3143
  }],
2998
3144
  /**
2999
- * Scroll Padding End
3145
+ * Scroll Padding Inline End
3000
3146
  * @see https://tailwindcss.com/docs/scroll-padding
3001
3147
  */
3002
3148
  'scroll-pe': [{
3003
3149
  'scroll-pe': scaleUnambiguousSpacing()
3004
3150
  }],
3151
+ /**
3152
+ * Scroll Padding Block Start
3153
+ * @see https://tailwindcss.com/docs/scroll-padding
3154
+ */
3155
+ 'scroll-pbs': [{
3156
+ 'scroll-pbs': scaleUnambiguousSpacing()
3157
+ }],
3158
+ /**
3159
+ * Scroll Padding Block End
3160
+ * @see https://tailwindcss.com/docs/scroll-padding
3161
+ */
3162
+ 'scroll-pbe': [{
3163
+ 'scroll-pbe': scaleUnambiguousSpacing()
3164
+ }],
3005
3165
  /**
3006
3166
  * Scroll Padding Top
3007
3167
  * @see https://tailwindcss.com/docs/scroll-padding
@@ -3136,15 +3296,15 @@ const getDefaultConfig = () => {
3136
3296
  conflictingClassGroups: {
3137
3297
  overflow: ['overflow-x', 'overflow-y'],
3138
3298
  overscroll: ['overscroll-x', 'overscroll-y'],
3139
- inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],
3299
+ inset: ['inset-x', 'inset-y', 'inset-bs', 'inset-be', 'start', 'end', 'top', 'right', 'bottom', 'left'],
3140
3300
  'inset-x': ['right', 'left'],
3141
3301
  'inset-y': ['top', 'bottom'],
3142
3302
  flex: ['basis', 'grow', 'shrink'],
3143
3303
  gap: ['gap-x', 'gap-y'],
3144
- p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],
3304
+ p: ['px', 'py', 'ps', 'pe', 'pbs', 'pbe', 'pt', 'pr', 'pb', 'pl'],
3145
3305
  px: ['pr', 'pl'],
3146
3306
  py: ['pt', 'pb'],
3147
- m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],
3307
+ m: ['mx', 'my', 'ms', 'me', 'mbs', 'mbe', 'mt', 'mr', 'mb', 'ml'],
3148
3308
  mx: ['mr', 'ml'],
3149
3309
  my: ['mt', 'mb'],
3150
3310
  size: ['w', 'h'],
@@ -3164,18 +3324,18 @@ const getDefaultConfig = () => {
3164
3324
  'rounded-b': ['rounded-br', 'rounded-bl'],
3165
3325
  'rounded-l': ['rounded-tl', 'rounded-bl'],
3166
3326
  'border-spacing': ['border-spacing-x', 'border-spacing-y'],
3167
- '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'],
3327
+ 'border-w': ['border-w-x', 'border-w-y', 'border-w-s', 'border-w-e', 'border-w-bs', 'border-w-be', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],
3168
3328
  'border-w-x': ['border-w-r', 'border-w-l'],
3169
3329
  'border-w-y': ['border-w-t', 'border-w-b'],
3170
- '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'],
3330
+ 'border-color': ['border-color-x', 'border-color-y', 'border-color-s', 'border-color-e', 'border-color-bs', 'border-color-be', 'border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],
3171
3331
  'border-color-x': ['border-color-r', 'border-color-l'],
3172
3332
  'border-color-y': ['border-color-t', 'border-color-b'],
3173
3333
  translate: ['translate-x', 'translate-y', 'translate-none'],
3174
3334
  'translate-none': ['translate', 'translate-x', 'translate-y', 'translate-z'],
3175
- 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],
3335
+ 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mbs', 'scroll-mbe', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],
3176
3336
  'scroll-mx': ['scroll-mr', 'scroll-ml'],
3177
3337
  'scroll-my': ['scroll-mt', 'scroll-mb'],
3178
- 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],
3338
+ 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pbs', 'scroll-pbe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],
3179
3339
  'scroll-px': ['scroll-pr', 'scroll-pl'],
3180
3340
  'scroll-py': ['scroll-pt', 'scroll-pb'],
3181
3341
  touch: ['touch-x', 'touch-y', 'touch-pz'],
@@ -3193,6 +3353,36 @@ const twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
3193
3353
 
3194
3354
  const mergeStyles = (...inputs) => twMerge(clsx(inputs));
3195
3355
 
3356
+ function styleInject(css, ref) {
3357
+ if ( ref === void 0 ) ref = {};
3358
+ var insertAt = ref.insertAt;
3359
+
3360
+ if (typeof document === 'undefined') { return; }
3361
+
3362
+ var head = document.head || document.getElementsByTagName('head')[0];
3363
+ var style = document.createElement('style');
3364
+ style.type = 'text/css';
3365
+
3366
+ if (insertAt === 'top') {
3367
+ if (head.firstChild) {
3368
+ head.insertBefore(style, head.firstChild);
3369
+ } else {
3370
+ head.appendChild(style);
3371
+ }
3372
+ } else {
3373
+ head.appendChild(style);
3374
+ }
3375
+
3376
+ if (style.styleSheet) {
3377
+ style.styleSheet.cssText = css;
3378
+ } else {
3379
+ style.appendChild(document.createTextNode(css));
3380
+ }
3381
+ }
3382
+
3383
+ var css_248z = "/*! tailwindcss v4.2.0 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){.file-selector-scope *,.file-selector-scope ::backdrop,.file-selector-scope :after,.file-selector-scope :before{--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{.file-selector-scope,.file-selector-scope :host{--color-yellow-400:oklch(85.2% .199 91.936);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--spacing:.25rem;--font-weight-bold:700;--radius-md:.375rem}}@layer base,components;@layer utilities{.file-selector-scope .flex{display:flex}.file-selector-scope .h-full{height:100%}.file-selector-scope .min-h-0{min-height:calc(var(--spacing)*0)}.file-selector-scope .min-h-\\[120px\\]{min-height:120px}.file-selector-scope .w-full{width:100%}.file-selector-scope .flex-1{flex:1}.file-selector-scope .cursor-pointer{cursor:pointer}.file-selector-scope .flex-col{flex-direction:column}.file-selector-scope .rounded-md{border-radius:var(--radius-md)}.file-selector-scope .border{border-style:var(--tw-border-style);border-width:1px}.file-selector-scope .border-2{border-style:var(--tw-border-style);border-width:2px}.file-selector-scope .border-dashed{--tw-border-style:dashed;border-style:dashed}.file-selector-scope .border-gray-300{border-color:var(--color-gray-300)}.file-selector-scope .border-gray-500{border-color:var(--color-gray-500)}.file-selector-scope .border-yellow-400{border-color:var(--color-yellow-400)}.file-selector-scope .bg-inherit{background-color:inherit}.file-selector-scope .p-4{padding:calc(var(--spacing)*4)}.file-selector-scope .px-4{padding-inline:calc(var(--spacing)*4)}.file-selector-scope .py-2{padding-block:calc(var(--spacing)*2)}.file-selector-scope .text-center{text-align:center}.file-selector-scope .font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.file-selector-scope .text-gray-600{color:var(--color-gray-600)}.file-selector-scope .text-inherit{color:inherit}.file-selector-scope .shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media (hover:hover){.file-selector-scope .hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}}}.file-selector-scope .hiddenInput{display:none}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}";
3384
+ styleInject(css_248z);
3385
+
3196
3386
  const withDragDefaults = (handler) => {
3197
3387
  return (e) => {
3198
3388
  e.preventDefault();
@@ -3201,10 +3391,8 @@ const withDragDefaults = (handler) => {
3201
3391
  };
3202
3392
  };
3203
3393
 
3204
- if (typeof window !== "undefined") {
3205
- import('./shared/components/FileSelector/tailwind.css');
3206
- }
3207
3394
  const defaultAcceptTypes = ".png, .jpg, .jpeg, .pdf, .svg, image/svg+xml, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document";
3395
+ const SCOPE_CLASS = "file-selector-scope";
3208
3396
  const defaultInputClassName = "hiddenInput";
3209
3397
  const defaultClickableAreaClassName = "dropzone border-dashed border-2 border-gray-500 p-4 rounded-md text-center cursor-pointer bg-inherit hover:border-gray-400 text-inherit font-bold py-2 px-4";
3210
3398
  const defaultDropZoneWrapperClassName = "flex flex-col min-h-[120px] border border-gray-300 rounded-md shadow-md";
@@ -3243,7 +3431,7 @@ onChange, onDragOver, onDrop, onDragEnter, onDragLeave, }) => {
3243
3431
  const resolvedDropZoneWrapperClassName = mergeStyles(dropZoneWrapperClassName ?? defaultDropZoneWrapperClassName);
3244
3432
  const resolvedMessageParagraphClassName = mergeStyles(messageParagraphClassName ?? defaultMessageParagraphClassName);
3245
3433
  const resolvedInputId = inputId ?? messageId;
3246
- return (jsxs("div", { role: "group", "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, className: resolvedDropZoneWrapperClassName, draggable: false, children: [jsx("button", { type: "button", className: resolvedClickableAreaClassName, onClick: internalOnClick, onDragOver: internalOnDragOver, onDrop: internalOnDrop, onDragEnter: internalOnDragEnter, onDragLeave: internalOnDragLeave, draggable: false, "aria-label": ariaLabelButton, "aria-labelledby": ariaLabelledBy ?? messageId, "aria-controls": resolvedInputId, "aria-haspopup": "dialog", children: jsx("p", { id: messageId, className: resolvedMessageParagraphClassName, children: messageParagraph }) }), jsx("input", { ref: fileInputRef, id: resolvedInputId, type: "file", className: inputClasses, onChange: onChange, accept: acceptTypes, multiple: true, "aria-hidden": "true", tabIndex: -1 })] }));
3434
+ return (jsxs("div", { role: "group", "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, className: mergeStyles(SCOPE_CLASS, resolvedDropZoneWrapperClassName), draggable: false, children: [jsx("button", { type: "button", className: resolvedClickableAreaClassName, onClick: internalOnClick, onDragOver: internalOnDragOver, onDrop: internalOnDrop, onDragEnter: internalOnDragEnter, onDragLeave: internalOnDragLeave, draggable: false, "aria-label": ariaLabelButton, "aria-labelledby": ariaLabelledBy ?? messageId, "aria-controls": resolvedInputId, "aria-haspopup": "dialog", children: jsx("p", { id: messageId, className: resolvedMessageParagraphClassName, children: messageParagraph }) }), jsx("input", { ref: fileInputRef, id: resolvedInputId, type: "file", className: inputClasses, onChange: onChange, accept: acceptTypes, multiple: true, "aria-hidden": "true", tabIndex: -1 })] }));
3247
3435
  };
3248
3436
  const FileSelector = memo(FileSelectorComponent);
3249
3437
  FileSelector.displayName = "FileSelector";