@seed-design/react 0.0.29 → 0.0.31

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 (67) hide show
  1. package/lib/components/ContextualFloatingButton/ContextualFloatingButton.cjs +54 -0
  2. package/lib/components/ContextualFloatingButton/ContextualFloatingButton.d.ts +8 -0
  3. package/lib/components/ContextualFloatingButton/ContextualFloatingButton.d.ts.map +1 -0
  4. package/lib/components/ContextualFloatingButton/ContextualFloatingButton.js +31 -0
  5. package/lib/components/ContextualFloatingButton/index.cjs +9 -0
  6. package/lib/components/ContextualFloatingButton/index.d.ts +2 -0
  7. package/lib/components/ContextualFloatingButton/index.d.ts.map +1 -0
  8. package/lib/components/ContextualFloatingButton/index.js +1 -0
  9. package/lib/components/ExtendedFab/ExtendedFab.d.ts +6 -0
  10. package/lib/components/ExtendedFab/ExtendedFab.d.ts.map +1 -1
  11. package/lib/components/Fab/Fab.d.ts +6 -0
  12. package/lib/components/Fab/Fab.d.ts.map +1 -1
  13. package/lib/components/Float/Float.cjs +97 -0
  14. package/lib/components/Float/Float.d.ts +17 -0
  15. package/lib/components/Float/Float.d.ts.map +1 -0
  16. package/lib/components/Float/Float.js +74 -0
  17. package/lib/components/Float/index.cjs +9 -0
  18. package/lib/components/Float/index.d.ts +2 -0
  19. package/lib/components/Float/index.d.ts.map +1 -0
  20. package/lib/components/Float/index.js +1 -0
  21. package/lib/components/FloatingActionButton/FloatingActionButton.cjs +18 -0
  22. package/lib/components/FloatingActionButton/FloatingActionButton.d.ts +14 -0
  23. package/lib/components/FloatingActionButton/FloatingActionButton.d.ts.map +1 -0
  24. package/lib/components/FloatingActionButton/FloatingActionButton.js +12 -0
  25. package/lib/components/FloatingActionButton/FloatingActionButton.namespace.cjs +11 -0
  26. package/lib/components/FloatingActionButton/FloatingActionButton.namespace.d.ts +2 -0
  27. package/lib/components/FloatingActionButton/FloatingActionButton.namespace.d.ts.map +1 -0
  28. package/lib/components/FloatingActionButton/FloatingActionButton.namespace.js +1 -0
  29. package/lib/components/FloatingActionButton/index.cjs +13 -0
  30. package/lib/components/FloatingActionButton/index.d.ts +3 -0
  31. package/lib/components/FloatingActionButton/index.d.ts.map +1 -0
  32. package/lib/components/FloatingActionButton/index.js +3 -0
  33. package/lib/components/Icon/Icon.d.ts +1 -1
  34. package/lib/components/Icon/Icon.d.ts.map +1 -1
  35. package/lib/components/Tabs/Tabs.namespace.cjs +5 -0
  36. package/lib/components/Tabs/Tabs.namespace.d.ts +1 -0
  37. package/lib/components/Tabs/Tabs.namespace.d.ts.map +1 -1
  38. package/lib/components/Tabs/Tabs.namespace.js +1 -0
  39. package/lib/components/Tabs/index.cjs +5 -0
  40. package/lib/components/Tabs/index.d.ts +1 -0
  41. package/lib/components/Tabs/index.d.ts.map +1 -1
  42. package/lib/components/Tabs/index.js +1 -0
  43. package/lib/components/index.cjs +15 -0
  44. package/lib/components/index.d.ts +3 -0
  45. package/lib/components/index.d.ts.map +1 -1
  46. package/lib/components/index.js +6 -0
  47. package/lib/index.cjs +15 -0
  48. package/lib/index.js +6 -0
  49. package/lib/utils/styled.cjs +4 -0
  50. package/lib/utils/styled.d.ts +3 -1
  51. package/lib/utils/styled.d.ts.map +1 -1
  52. package/lib/utils/styled.js +4 -0
  53. package/package.json +5 -5
  54. package/src/components/ContextualFloatingButton/ContextualFloatingButton.tsx +49 -0
  55. package/src/components/ContextualFloatingButton/index.ts +4 -0
  56. package/src/components/ExtendedFab/ExtendedFab.tsx +6 -0
  57. package/src/components/Fab/Fab.tsx +6 -0
  58. package/src/components/Float/Float.tsx +116 -0
  59. package/src/components/Float/index.ts +1 -0
  60. package/src/components/FloatingActionButton/FloatingActionButton.namespace.tsx +8 -0
  61. package/src/components/FloatingActionButton/FloatingActionButton.tsx +38 -0
  62. package/src/components/FloatingActionButton/index.ts +10 -0
  63. package/src/components/Icon/Icon.tsx +1 -1
  64. package/src/components/Tabs/Tabs.namespace.ts +2 -0
  65. package/src/components/Tabs/index.ts +2 -0
  66. package/src/components/index.ts +3 -0
  67. package/src/utils/styled.tsx +10 -1
@@ -20,7 +20,7 @@ export function handleColor(color: string | undefined) {
20
20
  return vars.$color[type]?.[value] ?? color;
21
21
  }
22
22
 
23
- export function handleDimension(dimension: string | 0 | undefined) {
23
+ export function handleDimension(dimension: string | 0 | undefined): string | undefined {
24
24
  if (dimension == null) {
25
25
  return undefined;
26
26
  }
@@ -266,6 +266,8 @@ export interface StyleProps {
266
266
 
267
267
  overflowY?: "visible" | "hidden" | "scroll" | "auto";
268
268
 
269
+ zIndex?: number | (string & {});
270
+
269
271
  flexGrow?: 0 | 1 | (number & {});
270
272
 
271
273
  flexShrink?: 0 | (number & {});
@@ -317,6 +319,9 @@ export interface StyleProps {
317
319
  | "flexEnd"; // @deprecated Use `flex-end` instead.
318
320
 
319
321
  gap?: Dimension | `spacingX.${SpacingX}` | `spacingY.${SpacingY}` | 0 | (string & {});
322
+
323
+ // NOTE: Not sure how to treat transform/translate right now, mark as unstable until we have a better solution.
324
+ unstable_transform?: string;
320
325
  }
321
326
 
322
327
  interface UseStyleProps extends StyleProps {
@@ -372,6 +377,7 @@ export function useStyleProps<T extends UseStyleProps>(
372
377
  position,
373
378
  overflowX,
374
379
  overflowY,
380
+ zIndex,
375
381
  flexGrow,
376
382
  flexShrink,
377
383
  flexDirection,
@@ -381,6 +387,7 @@ export function useStyleProps<T extends UseStyleProps>(
381
387
  alignContent,
382
388
  alignSelf,
383
389
  gap,
390
+ unstable_transform,
384
391
  style,
385
392
  ...restProps
386
393
  } = props;
@@ -426,6 +433,7 @@ export function useStyleProps<T extends UseStyleProps>(
426
433
  "--seed-box-position": position,
427
434
  "--seed-box-overflow-x": overflowX,
428
435
  "--seed-box-overflow-y": overflowY,
436
+ "--seed-box-z-index": zIndex,
429
437
  "--seed-box-flex-grow": flexGrow,
430
438
  "--seed-box-flex-shrink": flexShrink,
431
439
  "--seed-box-flex-direction": handleFlexDirection(flexDirection),
@@ -434,6 +442,7 @@ export function useStyleProps<T extends UseStyleProps>(
434
442
  "--seed-box-align-items": handleAlignItems(alignItems),
435
443
  "--seed-box-align-content": handleAlignItems(alignContent),
436
444
  "--seed-box-align-self": handleAlignItems(alignSelf),
445
+ "--seed-box-unstable-transform": unstable_transform,
437
446
  ...style,
438
447
  } as React.CSSProperties,
439
448
  restProps,