@vaneui/ui 0.3.1-alpha.20251117134835.2318245 → 0.3.1-alpha.20251129115555.bcd1100

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
@@ -5749,11 +5749,385 @@ const ThemedComponent = react.forwardRef(function ThemedComponent(allProps, ref)
5749
5749
  return (jsxRuntime.jsx(Tag, { ref: ref, className: finalClasses, ...finalProps, children: props.children }));
5750
5750
  });
5751
5751
 
5752
+ /**
5753
+ * Button - A clickable button element with customizable appearance and behavior
5754
+ *
5755
+ * @example
5756
+ * ```tsx
5757
+ * // Basic button
5758
+ * <Button>Click me</Button>
5759
+ *
5760
+ * // With size, appearance, and variant
5761
+ * <Button lg primary filled>Submit</Button>
5762
+ *
5763
+ * // Outlined button
5764
+ * <Button outlined secondary>Cancel</Button>
5765
+ *
5766
+ * // As a link
5767
+ * <Button href="/about">Learn More</Button>
5768
+ * ```
5769
+ *
5770
+ * @param props - Button props
5771
+ * @param props.children - Button content
5772
+ * @param props.className - Additional CSS classes to merge with theme classes
5773
+ *
5774
+
5775
+ * SIZE PROPS:
5776
+ * @param props.xs - Extra small size
5777
+ * @param props.sm - Small size
5778
+ * @param props.md - Medium size (default)
5779
+ * @param props.lg - Large size
5780
+ * @param props.xl - Extra large size
5781
+ *
5782
+
5783
+ * ALIGNMENT PROPS (Cross-axis):
5784
+ * @param props.itemsStart - Align items to start (top/left)
5785
+ * @param props.itemsEnd - Align items to end (bottom/right)
5786
+ * @param props.itemsCenter - Align items to center
5787
+ * @param props.itemsBaseline - Align items to baseline
5788
+ * @param props.itemsStretch - Stretch items to fill container
5789
+ *
5790
+
5791
+ * ALIGNMENT PROPS (Main-axis):
5792
+ * @param props.justifyStart - Justify content to start
5793
+ * @param props.justifyEnd - Justify content to end
5794
+ * @param props.justifyCenter - Justify content to center
5795
+ * @param props.justifyBetween - Space between items
5796
+ * @param props.justifyAround - Space around items
5797
+ * @param props.justifyEvenly - Space evenly between items
5798
+ *
5799
+
5800
+ * POSITION PROPS:
5801
+ * @param props.relative - Relative positioning
5802
+ * @param props.absolute - Absolute positioning
5803
+ * @param props.fixed - Fixed positioning
5804
+ * @param props.sticky - Sticky positioning
5805
+ * @param props.static - Static positioning
5806
+ *
5807
+
5808
+ * DISPLAY PROPS:
5809
+ * @param props.flex - Display as flex container
5810
+ * @param props.block - Display as block
5811
+ * @param props.inline - Display as inline
5812
+ * @param props.inlineBlock - Display as inline-block
5813
+ * @param props.inlineFlex - Display as inline-flex
5814
+ * @param props.grid - Display as grid
5815
+ * @param props.inlineGrid - Display as inline-grid
5816
+ * @param props.contents - Display as contents
5817
+ * @param props.hidden - Hide element (display: none)
5818
+ *
5819
+
5820
+ * OVERFLOW PROPS:
5821
+ * @param props.overflowAuto - Auto overflow on both axes
5822
+ * @param props.overflowHidden - Hidden overflow on both axes
5823
+ * @param props.overflowVisible - Visible overflow on both axes
5824
+ * @param props.overflowScroll - Scrollable overflow on both axes
5825
+ * @param props.overflowXAuto - Auto overflow on X axis
5826
+ * @param props.overflowYAuto - Auto overflow on Y axis
5827
+ * @param props.overflowXHidden - Hidden overflow on X axis
5828
+ * @param props.overflowYHidden - Hidden overflow on Y axis
5829
+ *
5830
+
5831
+ * FLEXBOX PROPS:
5832
+ * @param props.wrap - Enable flex wrap
5833
+ * @param props.reverse - Reverse the order of children
5834
+ *
5835
+
5836
+ * LAYOUT PROPS:
5837
+ * @param props.gap - Enable gap spacing between children
5838
+ * @param props.noGap - Disable gap spacing
5839
+ * @param props.padding - Enable internal padding
5840
+ * @param props.noPadding - Disable internal padding
5841
+ *
5842
+
5843
+ * FLEXBOX DIRECTION PROPS:
5844
+ * @param props.row - Flex direction row (horizontal)
5845
+ * @param props.column - Flex direction column (vertical)
5846
+ * @param props.rowReverse - Flex direction row-reverse
5847
+ * @param props.columnReverse - Flex direction column-reverse
5848
+ *
5849
+
5850
+ * APPEARANCE PROPS:
5851
+ * @param props.default - Default color appearance
5852
+ * @param props.primary - Primary color appearance (blue)
5853
+ * @param props.secondary - Secondary color appearance (gray)
5854
+ * @param props.tertiary - Tertiary color appearance
5855
+ * @param props.accent - Accent color appearance (rose)
5856
+ * @param props.success - Success color appearance (green)
5857
+ * @param props.danger - Danger color appearance (red)
5858
+ * @param props.warning - Warning color appearance (amber)
5859
+ * @param props.info - Info color appearance (cyan)
5860
+ * @param props.link - Link color appearance
5861
+ *
5862
+
5863
+ * BORDER PROPS:
5864
+ * @param props.border - Enable border on all sides
5865
+ * @param props.borderT - Enable border on top
5866
+ * @param props.borderB - Enable border on bottom
5867
+ * @param props.borderL - Enable border on left
5868
+ * @param props.borderR - Enable border on right
5869
+ * @param props.borderX - Enable border on left and right
5870
+ * @param props.borderY - Enable border on top and bottom
5871
+ * @param props.noBorder - Disable all borders
5872
+ *
5873
+
5874
+ * VISUAL DECORATION PROPS:
5875
+ * @param props.shadow - Enable drop shadow
5876
+ * @param props.noShadow - Disable drop shadow
5877
+ * @param props.ring - Enable focus ring
5878
+ * @param props.noRing - Disable focus ring
5879
+ * @param props.focusVisible - Enable focus-visible outline
5880
+ * @param props.noFocusVisible - Disable focus-visible outline
5881
+ *
5882
+
5883
+ * SHAPE PROPS:
5884
+ * @param props.rounded - Medium rounded corners (default)
5885
+ * @param props.pill - Fully rounded corners (circular)
5886
+ * @param props.sharp - No rounded corners (square)
5887
+ *
5888
+
5889
+ * FONT WEIGHT PROPS:
5890
+ * @param props.thin - Thin font weight (100)
5891
+ * @param props.extralight - Extra light font weight (200)
5892
+ * @param props.light - Light font weight (300)
5893
+ * @param props.normal - Normal font weight (400)
5894
+ * @param props.medium - Medium font weight (500)
5895
+ * @param props.semibold - Semibold font weight (600)
5896
+ * @param props.bold - Bold font weight (700)
5897
+ * @param props.extrabold - Extra bold font weight (800)
5898
+ * @param props.black - Black font weight (900)
5899
+ *
5900
+
5901
+ * FONT STYLE PROPS:
5902
+ * @param props.italic - Italic font style
5903
+ * @param props.notItalic - Not italic (normal) font style
5904
+ *
5905
+
5906
+ * TEXT DECORATION PROPS:
5907
+ * @param props.underline - Underline text decoration
5908
+ * @param props.lineThrough - Line-through text decoration
5909
+ * @param props.noUnderline - No text decoration
5910
+ *
5911
+
5912
+ * TEXT TRANSFORM PROPS:
5913
+ * @param props.uppercase - Transform text to uppercase
5914
+ * @param props.lowercase - Transform text to lowercase
5915
+ * @param props.capitalize - Capitalize first letter of each word
5916
+ * @param props.normalCase - Normal text case (no transformation)
5917
+ *
5918
+
5919
+ * FONT FAMILY PROPS:
5920
+ * @param props.sans - Sans-serif font family (default)
5921
+ * @param props.serif - Serif font family
5922
+ * @param props.mono - Monospace font family
5923
+ *
5924
+
5925
+ * TEXT ALIGNMENT PROPS:
5926
+ * @param props.textLeft - Align text to left
5927
+ * @param props.textCenter - Align text to center
5928
+ * @param props.textRight - Align text to right
5929
+ * @param props.textJustify - Justify text
5930
+ *
5931
+
5932
+ * VARIANT PROPS:
5933
+ * @param props.filled - Filled variant with solid background
5934
+ * @param props.outlined - Outlined variant with border only
5935
+ * @param props.ghost - Ghost variant with minimal styling
5936
+ *
5937
+ * @see {@link ButtonProps} for the complete type definition
5938
+ */
5752
5939
  const Button = react.forwardRef(function Button(props, ref) {
5753
5940
  const theme = useTheme();
5754
5941
  return jsxRuntime.jsx(ThemedComponent, { ref: ref, theme: theme.button, ...props });
5755
5942
  });
5756
5943
 
5944
+ /**
5945
+ * Badge - A small label for status, categories, counts, or notifications
5946
+ *
5947
+ * @example
5948
+ * ```tsx
5949
+ * // Basic badge
5950
+ * <Badge>New</Badge>
5951
+ *
5952
+ * // Status badge with appearance and variant
5953
+ * <Badge success filled pill>Active</Badge>
5954
+ *
5955
+ * // Count badge
5956
+ * <Badge danger filled>3</Badge>
5957
+ *
5958
+ * // As a link
5959
+ * <Badge href="/notifications" primary outlined>5 New</Badge>
5960
+ * ```
5961
+ *
5962
+ * @param props - Badge props
5963
+ * @param props.children - Badge content
5964
+ * @param props.className - Additional CSS classes to merge with theme classes
5965
+ *
5966
+
5967
+ * SIZE PROPS:
5968
+ * @param props.xs - Extra small size
5969
+ * @param props.sm - Small size
5970
+ * @param props.md - Medium size (default)
5971
+ * @param props.lg - Large size
5972
+ * @param props.xl - Extra large size
5973
+ *
5974
+
5975
+ * ALIGNMENT PROPS (Cross-axis):
5976
+ * @param props.itemsStart - Align items to start (top/left)
5977
+ * @param props.itemsEnd - Align items to end (bottom/right)
5978
+ * @param props.itemsCenter - Align items to center
5979
+ * @param props.itemsBaseline - Align items to baseline
5980
+ * @param props.itemsStretch - Stretch items to fill container
5981
+ *
5982
+
5983
+ * ALIGNMENT PROPS (Main-axis):
5984
+ * @param props.justifyStart - Justify content to start
5985
+ * @param props.justifyEnd - Justify content to end
5986
+ * @param props.justifyCenter - Justify content to center
5987
+ * @param props.justifyBetween - Space between items
5988
+ * @param props.justifyAround - Space around items
5989
+ * @param props.justifyEvenly - Space evenly between items
5990
+ *
5991
+
5992
+ * POSITION PROPS:
5993
+ * @param props.relative - Relative positioning
5994
+ * @param props.absolute - Absolute positioning
5995
+ * @param props.fixed - Fixed positioning
5996
+ * @param props.sticky - Sticky positioning
5997
+ * @param props.static - Static positioning
5998
+ *
5999
+
6000
+ * DISPLAY PROPS:
6001
+ * @param props.flex - Display as flex container
6002
+ * @param props.block - Display as block
6003
+ * @param props.inline - Display as inline
6004
+ * @param props.inlineBlock - Display as inline-block
6005
+ * @param props.inlineFlex - Display as inline-flex
6006
+ * @param props.grid - Display as grid
6007
+ * @param props.inlineGrid - Display as inline-grid
6008
+ * @param props.contents - Display as contents
6009
+ * @param props.hidden - Hide element (display: none)
6010
+ *
6011
+
6012
+ * OVERFLOW PROPS:
6013
+ * @param props.overflowAuto - Auto overflow on both axes
6014
+ * @param props.overflowHidden - Hidden overflow on both axes
6015
+ * @param props.overflowVisible - Visible overflow on both axes
6016
+ * @param props.overflowScroll - Scrollable overflow on both axes
6017
+ * @param props.overflowXAuto - Auto overflow on X axis
6018
+ * @param props.overflowYAuto - Auto overflow on Y axis
6019
+ * @param props.overflowXHidden - Hidden overflow on X axis
6020
+ * @param props.overflowYHidden - Hidden overflow on Y axis
6021
+ *
6022
+
6023
+ * FLEXBOX PROPS:
6024
+ * @param props.wrap - Enable flex wrap
6025
+ * @param props.reverse - Reverse the order of children
6026
+ *
6027
+
6028
+ * LAYOUT PROPS:
6029
+ * @param props.gap - Enable gap spacing between children
6030
+ * @param props.noGap - Disable gap spacing
6031
+ * @param props.padding - Enable internal padding
6032
+ * @param props.noPadding - Disable internal padding
6033
+ *
6034
+
6035
+ * FLEXBOX DIRECTION PROPS:
6036
+ * @param props.row - Flex direction row (horizontal)
6037
+ * @param props.column - Flex direction column (vertical)
6038
+ * @param props.rowReverse - Flex direction row-reverse
6039
+ * @param props.columnReverse - Flex direction column-reverse
6040
+ *
6041
+
6042
+ * APPEARANCE PROPS:
6043
+ * @param props.default - Default color appearance
6044
+ * @param props.primary - Primary color appearance (blue)
6045
+ * @param props.secondary - Secondary color appearance (gray)
6046
+ * @param props.tertiary - Tertiary color appearance
6047
+ * @param props.accent - Accent color appearance (rose)
6048
+ * @param props.success - Success color appearance (green)
6049
+ * @param props.danger - Danger color appearance (red)
6050
+ * @param props.warning - Warning color appearance (amber)
6051
+ * @param props.info - Info color appearance (cyan)
6052
+ * @param props.link - Link color appearance
6053
+ *
6054
+
6055
+ * BORDER PROPS:
6056
+ * @param props.border - Enable border on all sides
6057
+ * @param props.borderT - Enable border on top
6058
+ * @param props.borderB - Enable border on bottom
6059
+ * @param props.borderL - Enable border on left
6060
+ * @param props.borderR - Enable border on right
6061
+ * @param props.borderX - Enable border on left and right
6062
+ * @param props.borderY - Enable border on top and bottom
6063
+ * @param props.noBorder - Disable all borders
6064
+ *
6065
+
6066
+ * VISUAL DECORATION PROPS:
6067
+ * @param props.shadow - Enable drop shadow
6068
+ * @param props.noShadow - Disable drop shadow
6069
+ * @param props.ring - Enable focus ring
6070
+ * @param props.noRing - Disable focus ring
6071
+ * @param props.focusVisible - Enable focus-visible outline
6072
+ * @param props.noFocusVisible - Disable focus-visible outline
6073
+ *
6074
+
6075
+ * SHAPE PROPS:
6076
+ * @param props.rounded - Medium rounded corners (default)
6077
+ * @param props.pill - Fully rounded corners (circular)
6078
+ * @param props.sharp - No rounded corners (square)
6079
+ *
6080
+
6081
+ * FONT WEIGHT PROPS:
6082
+ * @param props.thin - Thin font weight (100)
6083
+ * @param props.extralight - Extra light font weight (200)
6084
+ * @param props.light - Light font weight (300)
6085
+ * @param props.normal - Normal font weight (400)
6086
+ * @param props.medium - Medium font weight (500)
6087
+ * @param props.semibold - Semibold font weight (600)
6088
+ * @param props.bold - Bold font weight (700)
6089
+ * @param props.extrabold - Extra bold font weight (800)
6090
+ * @param props.black - Black font weight (900)
6091
+ *
6092
+
6093
+ * FONT STYLE PROPS:
6094
+ * @param props.italic - Italic font style
6095
+ * @param props.notItalic - Not italic (normal) font style
6096
+ *
6097
+
6098
+ * TEXT DECORATION PROPS:
6099
+ * @param props.underline - Underline text decoration
6100
+ * @param props.lineThrough - Line-through text decoration
6101
+ * @param props.noUnderline - No text decoration
6102
+ *
6103
+
6104
+ * TEXT TRANSFORM PROPS:
6105
+ * @param props.uppercase - Transform text to uppercase
6106
+ * @param props.lowercase - Transform text to lowercase
6107
+ * @param props.capitalize - Capitalize first letter of each word
6108
+ * @param props.normalCase - Normal text case (no transformation)
6109
+ *
6110
+
6111
+ * FONT FAMILY PROPS:
6112
+ * @param props.sans - Sans-serif font family (default)
6113
+ * @param props.serif - Serif font family
6114
+ * @param props.mono - Monospace font family
6115
+ *
6116
+
6117
+ * TEXT ALIGNMENT PROPS:
6118
+ * @param props.textLeft - Align text to left
6119
+ * @param props.textCenter - Align text to center
6120
+ * @param props.textRight - Align text to right
6121
+ * @param props.textJustify - Justify text
6122
+ *
6123
+
6124
+ * VARIANT PROPS:
6125
+ * @param props.filled - Filled variant with solid background
6126
+ * @param props.outlined - Outlined variant with border only
6127
+ * @param props.ghost - Ghost variant with minimal styling
6128
+ *
6129
+ * @see {@link BadgeProps} for the complete type definition
6130
+ */
5757
6131
  const Badge = react.forwardRef(function Badge(props, ref) {
5758
6132
  const theme = useTheme();
5759
6133
  return jsxRuntime.jsx(ThemedComponent, { theme: theme.badge, ref: ref, ...props });