@platform-blocks/ui 0.6.0 → 0.7.0

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 (74) hide show
  1. package/README.md +0 -24
  2. package/lib/cjs/index.js +476 -720
  3. package/lib/cjs/index.js.map +1 -1
  4. package/lib/components/Accordion/types.d.ts +5 -5
  5. package/lib/components/AutoComplete/types.d.ts +3 -3
  6. package/lib/components/Avatar/types.d.ts +3 -3
  7. package/lib/components/Badge/types.d.ts +3 -3
  8. package/lib/components/Block/types.d.ts +2 -2
  9. package/lib/components/Blockquote/types.d.ts +2 -2
  10. package/lib/components/Breadcrumbs/types.d.ts +4 -4
  11. package/lib/components/Calendar/types.d.ts +2 -2
  12. package/lib/components/Carousel/types.d.ts +3 -3
  13. package/lib/components/Chip/types.d.ts +3 -3
  14. package/lib/components/CodeBlock/types.d.ts +4 -4
  15. package/lib/components/ColorPicker/types.d.ts +4 -4
  16. package/lib/components/CopyButton/types.d.ts +2 -2
  17. package/lib/components/DatePicker/types.d.ts +2 -2
  18. package/lib/components/Dialog/Dialog.d.ts +1 -1
  19. package/lib/components/Dialog/types.d.ts +23 -2
  20. package/lib/components/Divider/types.d.ts +2 -2
  21. package/lib/components/Grid/types.d.ts +3 -3
  22. package/lib/components/HoverCard/types.d.ts +3 -3
  23. package/lib/components/Image/Image.d.ts +1 -1
  24. package/lib/components/Image/types.d.ts +6 -6
  25. package/lib/components/Indicator/types.d.ts +2 -2
  26. package/lib/components/Input/styles.d.ts +1 -12
  27. package/lib/components/Knob/components/SurfaceLayers.d.ts +2 -2
  28. package/lib/components/Knob/components/ThumbLayer.d.ts +1 -1
  29. package/lib/components/Knob/components/TickLayers.d.ts +2 -2
  30. package/lib/components/Knob/types.d.ts +11 -11
  31. package/lib/components/Layout/Layout.d.ts +1 -0
  32. package/lib/components/ListGroup/types.d.ts +4 -4
  33. package/lib/components/Loader/types.d.ts +2 -2
  34. package/lib/components/Masonry/types.d.ts +4 -4
  35. package/lib/components/Menu/types.d.ts +2 -2
  36. package/lib/components/Navigation/types.d.ts +2 -2
  37. package/lib/components/Notice/types.d.ts +2 -2
  38. package/lib/components/Pagination/types.d.ts +6 -6
  39. package/lib/components/Popover/types.d.ts +5 -5
  40. package/lib/components/Progress/types.d.ts +3 -3
  41. package/lib/components/QRCode/types.d.ts +2 -2
  42. package/lib/components/Rating/types.d.ts +2 -2
  43. package/lib/components/Ring/types.d.ts +7 -7
  44. package/lib/components/SegmentedControl/types.d.ts +4 -4
  45. package/lib/components/Select/Select.types.d.ts +1 -1
  46. package/lib/components/Skeleton/types.d.ts +4 -4
  47. package/lib/components/Slider/types.d.ts +7 -7
  48. package/lib/components/Spotlight/types.d.ts +6 -6
  49. package/lib/components/Table/Table.d.ts +4 -4
  50. package/lib/components/Tabs/types.d.ts +5 -5
  51. package/lib/components/TextArea/types.d.ts +2 -2
  52. package/lib/components/Timeline/types.d.ts +20 -0
  53. package/lib/components/Toast/types.d.ts +2 -2
  54. package/lib/components/Tooltip/types.d.ts +2 -2
  55. package/lib/components/Video/NativeVideoPlayer.d.ts +2 -2
  56. package/lib/components/Video/VideoControls.d.ts +2 -2
  57. package/lib/components/Video/YouTubePlayer.d.ts +2 -2
  58. package/lib/components/Video/types.d.ts +6 -6
  59. package/lib/components/Waveform/WaveformSkeleton.d.ts +2 -2
  60. package/lib/components/Waveform/types.d.ts +2 -2
  61. package/lib/components/index.d.ts +0 -2
  62. package/lib/components/types.d.ts +0 -1
  63. package/lib/core/utils/layout.d.ts +13 -16
  64. package/lib/core/utils/positioning-enhanced.d.ts +2 -0
  65. package/lib/esm/index.js +478 -720
  66. package/lib/esm/index.js.map +1 -1
  67. package/lib/index.d.ts +0 -4
  68. package/package.json +67 -57
  69. package/lib/components/Lottie/Lottie.d.ts +0 -30
  70. package/lib/components/Lottie/index.d.ts +0 -2
  71. package/lib/components/RichTextEditor/RichTextEditor.d.ts +0 -3
  72. package/lib/components/RichTextEditor/index.d.ts +0 -2
  73. package/lib/components/RichTextEditor/styles.d.ts +0 -61
  74. package/lib/components/RichTextEditor/types.d.ts +0 -150
@@ -2,38 +2,35 @@ import { ViewStyle, DimensionValue } from 'react-native';
2
2
  export interface LayoutProps {
3
3
  /** Makes the component fill the full width of its parent */
4
4
  fullWidth?: boolean;
5
- /** Sets a specific width (shorthand for width) */
6
- w?: DimensionValue;
7
5
  /** Sets a specific width */
8
- width?: DimensionValue;
6
+ w?: DimensionValue;
9
7
  /** Sets a specific height */
10
- height?: DimensionValue;
8
+ h?: DimensionValue;
11
9
  /** Sets the maximum width */
12
- maxWidth?: DimensionValue;
10
+ maxW?: DimensionValue;
13
11
  /** Sets the minimum width */
14
- minWidth?: DimensionValue;
12
+ minW?: DimensionValue;
15
13
  /** Sets the maximum height */
16
- maxHeight?: DimensionValue;
14
+ maxH?: DimensionValue;
17
15
  /** Sets the minimum height */
18
- minHeight?: DimensionValue;
16
+ minH?: DimensionValue;
19
17
  }
20
18
  /**
21
19
  * Generates layout styles based on provided layout properties.
22
20
  *
23
21
  * @param props - The layout properties object
24
22
  * @param props.fullWidth - When true, sets width to 100%
25
- * @param props.w - Shorthand width property (overrides fullWidth)
26
- * @param props.width - Specific width value (overrides fullWidth and w)
27
- * @param props.height - Height value
28
- * @param props.maxWidth - Maximum width constraint
29
- * @param props.minWidth - Minimum width constraint
30
- * @param props.maxHeight - Maximum height constraint
31
- * @param props.minHeight - Minimum height constraint
23
+ * @param props.w - Width property (overrides fullWidth)
24
+ * @param props.h - Height value
25
+ * @param props.maxW - Maximum width constraint
26
+ * @param props.minW - Minimum width constraint
27
+ * @param props.maxH - Maximum height constraint
28
+ * @param props.minH - Minimum height constraint
32
29
  *
33
30
  * @returns A partial ViewStyle object containing the computed layout styles
34
31
  *
35
32
  * @remarks
36
- * Property precedence for width: width > w > fullWidth
33
+ * Property precedence for width: w > fullWidth
37
34
  * The function processes width properties in order of specificity, with more specific
38
35
  * properties overriding more general ones.
39
36
  */
@@ -38,6 +38,8 @@ export interface PositioningOptions {
38
38
  boundary?: number;
39
39
  /** Fallback placements to try if primary placement doesn't fit */
40
40
  fallbackPlacements?: PlacementType[];
41
+ /** Match the anchor element's width (useful for dropdown inputs) */
42
+ matchAnchorWidth?: boolean;
41
43
  }
42
44
  /**
43
45
  * Enhanced overlay positioning that prevents off-screen rendering with intelligent caching