@qasa/qds-ui 0.36.0 → 0.37.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.
package/dist/index.d.ts CHANGED
@@ -879,15 +879,31 @@ type BreakpointsConfig$1<T> = PartialRecord<keyof Theme['breakpoints'], T> & {
879
879
  };
880
880
  type ResponsiveProp<T> = T | BreakpointsConfig$1<T>;
881
881
 
882
- declare const SIZE_CLASSES$4: {
883
- xs: string;
884
- sm: string;
885
- md: string;
886
- lg: string;
887
- xl: string;
888
- '2xl': string;
889
- };
890
- type AvatarSize = keyof typeof SIZE_CLASSES$4;
882
+ /**
883
+ * A responsive class map declared via `defineResponsiveClasses`. Carries both
884
+ * the per-key class strings and the default key used when no responsive value
885
+ * is provided.
886
+ *
887
+ * Construct only via `defineResponsiveClasses`; the build-time safelist scanner
888
+ * (`scripts/responsive-safelist/responsive-safelist.ts`) detects the literal
889
+ * call and emits `@source inline(...)` directives so Tailwind compiles the
890
+ * breakpoint-prefixed variants.
891
+ */
892
+ interface ResponsiveClassMap<T extends string> {
893
+ readonly classes: Record<T, string>;
894
+ readonly default: T;
895
+ }
896
+ /**
897
+ * Derives the size literal union from a class map.
898
+ *
899
+ * @example
900
+ * const SIZE_CLASSES = defineResponsiveClasses({ sm: 'h-10', md: 'h-12' }, 'md')
901
+ * type ButtonSize = ResponsiveSize<typeof SIZE_CLASSES>
902
+ */
903
+ type ResponsiveSize<M> = M extends ResponsiveClassMap<infer T> ? T : never;
904
+
905
+ declare const SIZE_CLASSES$7: ResponsiveClassMap<"2xl" | "xl" | "lg" | "md" | "sm" | "xs">;
906
+ type AvatarSize = ResponsiveSize<typeof SIZE_CLASSES$7>;
891
907
  interface AvatarOptions {
892
908
  /**
893
909
  * Source url of the image to display. If not passed
@@ -1073,17 +1089,11 @@ declare const UserIcon: react.ForwardRefExoticComponent<IconProps & react.RefAtt
1073
1089
  declare const XCircleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1074
1090
  declare const XIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1075
1091
 
1076
- declare const SIZE_CLASSES$3: {
1077
- xs: string;
1078
- sm: string;
1079
- md: string;
1080
- lg: string;
1081
- xl: string;
1082
- };
1092
+ declare const SIZE_CLASSES$6: ResponsiveClassMap<"xl" | "lg" | "md" | "sm" | "xs">;
1083
1093
  declare const buttonVariants: (props?: ({
1084
1094
  variant?: "primary" | "secondary" | "tertiary" | "danger" | null | undefined;
1085
1095
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1086
- type ButtonSize = keyof typeof SIZE_CLASSES$3;
1096
+ type ButtonSize = ResponsiveSize<typeof SIZE_CLASSES$6>;
1087
1097
  type ButtonVariant = NonNullable<VariantProps$1<typeof buttonVariants>['variant']>;
1088
1098
  interface ButtonOptions {
1089
1099
  /**
@@ -1129,9 +1139,22 @@ type PolymorphicButton = ForwardRefComponent<'button', ButtonOptions>;
1129
1139
  type ButtonProps = PropsOf<PolymorphicButton>;
1130
1140
  declare const Button: PolymorphicButton;
1131
1141
 
1132
- type DisplaySize = keyof Theme['typography']['display'];
1133
- type DisplayTextAlign = 'left' | 'center' | 'right';
1134
- type DisplayTextWrap = 'pretty' | 'balance' | 'wrap' | 'nowrap' | 'stable';
1142
+ declare const SIZE_CLASSES$5: ResponsiveClassMap<"2xl" | "3xl" | "xl" | "lg" | "md" | "sm" | "xs" | "2xs">;
1143
+ declare const TEXT_ALIGN_CLASSES$2: {
1144
+ readonly left: "text-left";
1145
+ readonly center: "text-center";
1146
+ readonly right: "text-right";
1147
+ };
1148
+ declare const TEXT_WRAP_CLASSES: {
1149
+ readonly pretty: "text-pretty";
1150
+ readonly balance: "text-balance";
1151
+ readonly wrap: "text-wrap";
1152
+ readonly nowrap: "text-nowrap";
1153
+ readonly stable: "[text-wrap:stable]";
1154
+ };
1155
+ type DisplaySize = ResponsiveSize<typeof SIZE_CLASSES$5>;
1156
+ type DisplayTextAlign = keyof typeof TEXT_ALIGN_CLASSES$2;
1157
+ type DisplayTextWrap = keyof typeof TEXT_WRAP_CLASSES;
1135
1158
  interface DisplayTextOptions {
1136
1159
  /**
1137
1160
  * Sets the visual size of the display text.
@@ -1369,8 +1392,27 @@ declare const DropdownMenu: typeof DropdownMenuRoot & {
1369
1392
  Divider: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1370
1393
  };
1371
1394
 
1372
- type HeadingSize = keyof Theme['typography']['title'];
1373
- type HeadingColor = keyof Theme['colors']['text'];
1395
+ declare const SIZE_CLASSES$4: ResponsiveClassMap<"lg" | "md" | "sm" | "xs" | "2xs" | "3xs">;
1396
+ declare const COLOR_CLASSES$2: {
1397
+ readonly default: "text-default";
1398
+ readonly strong: "text-strong";
1399
+ readonly subtle: "text-subtle";
1400
+ readonly disabled: "text-disabled";
1401
+ readonly negative: "text-negative";
1402
+ readonly warning: "text-warning";
1403
+ readonly positive: "text-positive";
1404
+ readonly onBrandPrimary: "text-onBrandPrimary";
1405
+ readonly onBrandSecondary: "text-onBrandSecondary";
1406
+ readonly onBrandTertiary: "text-onBrandTertiary";
1407
+ };
1408
+ declare const TEXT_ALIGN_CLASSES$1: {
1409
+ readonly left: "text-left";
1410
+ readonly center: "text-center";
1411
+ readonly right: "text-right";
1412
+ };
1413
+ type HeadingSize = ResponsiveSize<typeof SIZE_CLASSES$4>;
1414
+ type HeadingColor = keyof typeof COLOR_CLASSES$2;
1415
+ type HeadingTextAlign = keyof typeof TEXT_ALIGN_CLASSES$1;
1374
1416
  interface HeadingOptions {
1375
1417
  /**
1376
1418
  * Sets the visual size of the heading.
@@ -1392,7 +1434,7 @@ interface HeadingOptions {
1392
1434
  * Alignment of the heading
1393
1435
  * @default 'left'
1394
1436
  */
1395
- textAlign?: 'left' | 'center' | 'right';
1437
+ textAlign?: HeadingTextAlign;
1396
1438
  }
1397
1439
  type HeadingComponent = ForwardRefComponent<'h2', HeadingOptions>;
1398
1440
  /**
@@ -1410,15 +1452,11 @@ declare const HintBox: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLPr
1410
1452
  Title: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & react.RefAttributes<HTMLParagraphElement>>;
1411
1453
  };
1412
1454
 
1413
- declare const SIZE_CLASSES$2: {
1414
- xs: string;
1415
- sm: string;
1416
- md: string;
1417
- };
1455
+ declare const SIZE_CLASSES$3: ResponsiveClassMap<"md" | "sm" | "xs">;
1418
1456
  declare const iconButtonVariants: (props?: ({
1419
1457
  variant?: "white" | "primary" | "secondary" | "tertiary" | "danger" | "ghost" | null | undefined;
1420
1458
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1421
- type IconButtonSize = keyof typeof SIZE_CLASSES$2;
1459
+ type IconButtonSize = ResponsiveSize<typeof SIZE_CLASSES$3>;
1422
1460
  type IconButtonVariant = NonNullable<VariantProps$1<typeof iconButtonVariants>['variant']>;
1423
1461
  interface IconButtonOptions {
1424
1462
  icon: ElementType<IconProps>;
@@ -1491,11 +1529,8 @@ interface TextFieldProps extends Omit<HTMLQdsProps<'input'>, OmittedProps$7>, Te
1491
1529
  }
1492
1530
  declare const TextField: react.ForwardRefExoticComponent<TextFieldProps & react.RefAttributes<HTMLInputElement>>;
1493
1531
 
1494
- declare const SIZE_CLASSES$1: {
1495
- sm: string;
1496
- md: string;
1497
- };
1498
- declare const COLOR_CLASSES: {
1532
+ declare const SIZE_CLASSES$2: ResponsiveClassMap<"md" | "sm">;
1533
+ declare const COLOR_CLASSES$1: {
1499
1534
  readonly strong: "text-strong";
1500
1535
  readonly default: "text-default";
1501
1536
  readonly subtle: "text-subtle";
@@ -1507,8 +1542,8 @@ declare const COLOR_CLASSES: {
1507
1542
  readonly onBrandSecondary: "text-onBrandSecondary";
1508
1543
  readonly onBrandTertiary: "text-onBrandTertiary";
1509
1544
  };
1510
- type LabelSize = keyof typeof SIZE_CLASSES$1;
1511
- type LabelColor = keyof typeof COLOR_CLASSES;
1545
+ type LabelSize = ResponsiveSize<typeof SIZE_CLASSES$2>;
1546
+ type LabelColor = keyof typeof COLOR_CLASSES$1;
1512
1547
  interface LabelOptions {
1513
1548
  /**
1514
1549
  * Size of the label
@@ -1538,11 +1573,8 @@ type LinkComponent = ForwardRefComponent<'a', LinkOptions>;
1538
1573
  type LinkProps = PropsOf<LinkComponent>;
1539
1574
  declare const Link: LinkComponent;
1540
1575
 
1541
- declare const SIZE_CLASSES: {
1542
- sm: string;
1543
- md: string;
1544
- };
1545
- type LoadingDotsSize = keyof typeof SIZE_CLASSES;
1576
+ declare const SIZE_CLASSES$1: ResponsiveClassMap<"md" | "sm">;
1577
+ type LoadingDotsSize = ResponsiveSize<typeof SIZE_CLASSES$1>;
1546
1578
  interface LoadingDotsOptions {
1547
1579
  size?: ResponsiveProp<LoadingDotsSize>;
1548
1580
  }
@@ -1550,109 +1582,27 @@ interface LoadingDotsProps extends HTMLQdsProps<'span'>, LoadingDotsOptions {
1550
1582
  }
1551
1583
  declare const LoadingDots: react.ForwardRefExoticComponent<LoadingDotsProps & react.RefAttributes<HTMLSpanElement>>;
1552
1584
 
1553
- type NamedStyles = Record<string, CSSObject>;
1554
- type StyleInterpolation<T> = (theme: Theme) => T;
1555
- /**
1556
- * Creates a collection of named style rules.
1557
- */
1558
- declare function createStyleVariants<T extends NamedStyles>(styles: StyleInterpolation<T>): (theme: Theme) => T;
1559
- /**
1560
- * Create a style object. Useful for creating styles that depend on the theme.
1561
- */
1562
- declare function createStyle<T extends CSSObject>(styles: StyleInterpolation<T>): (theme: Theme) => T;
1563
- type VariantProps<T extends ReturnType<typeof createStyle | typeof createStyleVariants>> = keyof ReturnType<T>;
1564
- /**
1565
- * Converts css `px` unit to `rem`.
1566
- * Assumes the root font size is 16px.
1567
- */
1568
- declare const pxToRem: (px: number) => string;
1569
-
1570
- declare const getFormFieldBaseStyles: (theme: Theme) => {
1571
- '&::placeholder': {
1572
- color: string;
1573
- };
1574
- '&:hover': {
1575
- borderColor: string;
1576
- };
1577
- '&:focus': {
1578
- outline: number;
1579
- borderColor: string;
1580
- boxShadow: `0 0 0 1px ${string}`;
1581
- };
1582
- '&[aria-invalid="true"]': {
1583
- borderColor: string;
1584
- '&:focus': {
1585
- boxShadow: `0 0 0 1px ${string}`;
1586
- };
1587
- };
1588
- '&[disabled], &:disabled, &[data-disabled]': {
1589
- opacity: number;
1590
- borderColor: string;
1591
- };
1592
- transitionProperty: "opacity, border-color, box-shadow";
1593
- transitionDuration: "120ms";
1594
- transitionTimingFunction: "ease";
1595
- fontFamily: string;
1596
- fontWeight: string;
1597
- fontSize: string;
1598
- lineHeight: string;
1599
- letterSpacing: string;
1600
- width: string;
1601
- minWidth: number;
1602
- appearance: "none";
1603
- paddingLeft: string;
1604
- paddingRight: string;
1605
- border: string;
1606
- borderRadius: string;
1607
- backgroundColor: string;
1608
- color: string;
1609
- WebkitTouchCallout: "none";
1610
- WebkitTapHighlightColor: "transparent";
1611
- '&::-webkit-date-and-time-value': {
1612
- textAlign: "left";
1613
- };
1614
- alignItems: "center";
1585
+ declare const SIZE_CLASSES: ResponsiveClassMap<"xl" | "lg" | "md" | "sm" | "xs">;
1586
+ declare const COLOR_CLASSES: {
1587
+ readonly default: "text-default";
1588
+ readonly strong: "text-strong";
1589
+ readonly subtle: "text-subtle";
1590
+ readonly disabled: "text-disabled";
1591
+ readonly negative: "text-negative";
1592
+ readonly warning: "text-warning";
1593
+ readonly positive: "text-positive";
1594
+ readonly onBrandPrimary: "text-onBrandPrimary";
1595
+ readonly onBrandSecondary: "text-onBrandSecondary";
1596
+ readonly onBrandTertiary: "text-onBrandTertiary";
1615
1597
  };
1616
-
1617
- declare const getSizeStyles: (theme: Theme) => {
1618
- xs: {
1619
- fontFamily: string;
1620
- fontWeight: string;
1621
- fontSize: string;
1622
- lineHeight: string;
1623
- letterSpacing: string;
1624
- };
1625
- sm: {
1626
- fontFamily: string;
1627
- fontWeight: string;
1628
- fontSize: string;
1629
- lineHeight: string;
1630
- letterSpacing: string;
1631
- };
1632
- md: {
1633
- fontFamily: string;
1634
- fontWeight: string;
1635
- fontSize: string;
1636
- lineHeight: string;
1637
- letterSpacing: string;
1638
- };
1639
- lg: {
1640
- fontFamily: string;
1641
- fontWeight: string;
1642
- fontSize: string;
1643
- lineHeight: string;
1644
- letterSpacing: string;
1645
- };
1646
- xl: {
1647
- fontFamily: string;
1648
- fontWeight: string;
1649
- fontSize: string;
1650
- lineHeight: string;
1651
- letterSpacing: string;
1652
- };
1598
+ declare const TEXT_ALIGN_CLASSES: {
1599
+ readonly left: "text-left";
1600
+ readonly center: "text-center";
1601
+ readonly right: "text-right";
1653
1602
  };
1654
- type ParagraphSize = VariantProps<typeof getSizeStyles>;
1655
- type ParagraphColor = keyof Theme['colors']['text'];
1603
+ type ParagraphSize = ResponsiveSize<typeof SIZE_CLASSES>;
1604
+ type ParagraphColor = keyof typeof COLOR_CLASSES;
1605
+ type ParagraphTextAlign = keyof typeof TEXT_ALIGN_CLASSES;
1656
1606
  interface ParagraphOptions {
1657
1607
  /**
1658
1608
  * Sets the visual size of the text
@@ -1672,7 +1622,7 @@ interface ParagraphOptions {
1672
1622
  * Alignment of the paragraph
1673
1623
  * @default 'left'
1674
1624
  */
1675
- textAlign?: 'left' | 'center' | 'right';
1625
+ textAlign?: ParagraphTextAlign;
1676
1626
  }
1677
1627
  type ParagraphComponent = ForwardRefComponent<'p', ParagraphOptions>;
1678
1628
  /**
@@ -1713,7 +1663,6 @@ interface SelectBaseProps extends Omit<HTMLQdsProps<'select'>, OmittedProps$6>,
1713
1663
  declare const SelectBase: react.ForwardRefExoticComponent<SelectBaseProps & react.RefAttributes<HTMLSelectElement>>;
1714
1664
 
1715
1665
  type ResizeProp = 'none' | 'both' | 'horizontal' | 'vertical';
1716
- type MinRowsProp = number;
1717
1666
  interface TextareaBaseOptions {
1718
1667
  /**
1719
1668
  * If `true`, the textarea will be invalid
@@ -1739,7 +1688,7 @@ interface TextareaBaseOptions {
1739
1688
  *
1740
1689
  * @default 3
1741
1690
  */
1742
- minRows?: MinRowsProp;
1691
+ minRows?: number;
1743
1692
  }
1744
1693
  type OmittedProps$5 = 'children' | 'readOnly' | 'size' | 'disabled' | 'required' | 'rows' | 'cols';
1745
1694
  interface TextareaBaseProps extends Omit<HTMLQdsProps<'textarea'>, OmittedProps$5>, TextareaBaseOptions {
@@ -1870,7 +1819,9 @@ declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAtt
1870
1819
  Option: react.ForwardRefExoticComponent<SelectOptionProps & react.RefAttributes<HTMLOptionElement>>;
1871
1820
  };
1872
1821
 
1873
- type Spacing = keyof Theme['spacing'];
1822
+ declare const X_SIZE_CLASSES: ResponsiveClassMap<"4x" | "0x" | "1x" | "2x" | "3x" | "5x" | "6x" | "8x" | "10x" | "12x" | "14x" | "16x" | "20x" | "24x">;
1823
+ declare const Y_SIZE_CLASSES: ResponsiveClassMap<"4x" | "0x" | "1x" | "2x" | "3x" | "5x" | "6x" | "8x" | "10x" | "12x" | "14x" | "16x" | "20x" | "24x">;
1824
+ type Spacing = ResponsiveSize<typeof X_SIZE_CLASSES> & ResponsiveSize<typeof Y_SIZE_CLASSES>;
1874
1825
  interface SpacerOptions {
1875
1826
  axis?: 'x' | 'y';
1876
1827
  size: ResponsiveProp<Spacing>;
@@ -1885,12 +1836,20 @@ interface SpacerProps extends HTMLQdsProps<'span'>, SpacerOptions {
1885
1836
  */
1886
1837
  declare const Spacer: react.ForwardRefExoticComponent<SpacerProps & react.RefAttributes<HTMLSpanElement>>;
1887
1838
 
1888
- type AlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
1889
- type JustifyContent = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
1890
- type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
1891
- type FlexWrap = 'wrap' | 'nowrap' | 'wrap-reverse';
1892
-
1893
- type GapProp = keyof Theme['spacing'];
1839
+ declare const DIRECTION_CLASSES: ResponsiveClassMap<"row" | "column" | "column-reverse" | "row-reverse">;
1840
+ declare const JUSTIFY_CONTENT_CLASSES: ResponsiveClassMap<"center" | "flex-end" | "flex-start" | "space-around" | "space-between" | "space-evenly">;
1841
+ declare const ALIGN_ITEMS_CLASSES: ResponsiveClassMap<"center" | "flex-end" | "flex-start" | "baseline" | "stretch">;
1842
+ declare const GAP_CLASSES: ResponsiveClassMap<"4x" | "0x" | "1x" | "2x" | "3x" | "5x" | "6x" | "8x" | "10x" | "12x" | "14x" | "16x" | "20x" | "24x">;
1843
+ declare const WRAP_CLASSES: {
1844
+ readonly wrap: "flex-wrap";
1845
+ readonly nowrap: "flex-nowrap";
1846
+ readonly 'wrap-reverse': "flex-wrap-reverse";
1847
+ };
1848
+ type FlexDirection = ResponsiveSize<typeof DIRECTION_CLASSES>;
1849
+ type JustifyContent = ResponsiveSize<typeof JUSTIFY_CONTENT_CLASSES>;
1850
+ type AlignItems = ResponsiveSize<typeof ALIGN_ITEMS_CLASSES>;
1851
+ type GapProp = ResponsiveSize<typeof GAP_CLASSES>;
1852
+ type FlexWrap = keyof typeof WRAP_CLASSES;
1894
1853
  interface StackOptions {
1895
1854
  /**
1896
1855
  * The direction of the stack.
@@ -2026,6 +1985,80 @@ declare const toast: ((text: string, options?: ToastOptions) => Id) & {
2026
1985
  removeAll: () => void;
2027
1986
  };
2028
1987
 
1988
+ type NamedStyles = Record<string, CSSObject>;
1989
+ type StyleInterpolation<T> = (theme: Theme) => T;
1990
+ /**
1991
+ * @deprecated Tied to the Emotion theme. Will be removed when Emotion is dropped.
1992
+ * Compose styles directly with Tailwind classes.
1993
+ */
1994
+ declare function createStyleVariants<T extends NamedStyles>(styles: StyleInterpolation<T>): (theme: Theme) => T;
1995
+ /**
1996
+ * @deprecated Tied to the Emotion theme. Will be removed when Emotion is dropped.
1997
+ * Compose styles directly with Tailwind classes.
1998
+ */
1999
+ declare function createStyle<T extends CSSObject>(styles: StyleInterpolation<T>): (theme: Theme) => T;
2000
+ /**
2001
+ * @deprecated Tied to the Emotion theme. Will be removed when Emotion is dropped.
2002
+ */
2003
+ type VariantProps<T extends ReturnType<typeof createStyle | typeof createStyleVariants>> = keyof ReturnType<T>;
2004
+ /**
2005
+ * @deprecated Will be removed when Emotion is dropped.
2006
+ * Use Tailwind spacing utilities instead, eg. `p-4` for 16px padding.
2007
+ * If you need a raw value, reference the CSS variable directly: `var(--spacing-4)`.
2008
+ */
2009
+ declare const pxToRem: (px: number) => string;
2010
+
2011
+ /**
2012
+ * @deprecated Emotion-based form field base styles. Will be removed when Emotion is dropped.
2013
+ * Use the form primitives (`input-base`, `textarea-base`, `select-base`) or compose Tailwind classes directly.
2014
+ */
2015
+ declare const getFormFieldBaseStyles: (theme: Theme) => {
2016
+ '&::placeholder': {
2017
+ color: string;
2018
+ };
2019
+ '&:hover': {
2020
+ borderColor: string;
2021
+ };
2022
+ '&:focus': {
2023
+ outline: number;
2024
+ borderColor: string;
2025
+ boxShadow: `0 0 0 1px ${string}`;
2026
+ };
2027
+ '&[aria-invalid="true"]': {
2028
+ borderColor: string;
2029
+ '&:focus': {
2030
+ boxShadow: `0 0 0 1px ${string}`;
2031
+ };
2032
+ };
2033
+ '&[disabled], &:disabled, &[data-disabled]': {
2034
+ opacity: number;
2035
+ borderColor: string;
2036
+ };
2037
+ transitionProperty: "opacity, border-color, box-shadow";
2038
+ transitionDuration: "120ms";
2039
+ transitionTimingFunction: "ease";
2040
+ fontFamily: string;
2041
+ fontWeight: string;
2042
+ fontSize: string;
2043
+ lineHeight: string;
2044
+ letterSpacing: string;
2045
+ width: string;
2046
+ minWidth: number;
2047
+ appearance: "none";
2048
+ paddingLeft: string;
2049
+ paddingRight: string;
2050
+ border: string;
2051
+ borderRadius: string;
2052
+ backgroundColor: string;
2053
+ color: string;
2054
+ WebkitTouchCallout: "none";
2055
+ WebkitTapHighlightColor: "transparent";
2056
+ '&::-webkit-date-and-time-value': {
2057
+ textAlign: "left";
2058
+ };
2059
+ alignItems: "center";
2060
+ };
2061
+
2029
2062
  interface UseBreakpointOptions {
2030
2063
  /**
2031
2064
  * If `true` the initial value will be `base` instead of the current breakpoint.
@@ -2037,6 +2070,11 @@ interface UseBreakpointOptions {
2037
2070
  }
2038
2071
  /**
2039
2072
  * Hook for getting the current breakpoint.
2073
+ *
2074
+ * @deprecated Prefer Tailwind responsive classes (`md:hidden`, `hidden md:block`, etc.) for
2075
+ * styling and conditional rendering. For JS logic that genuinely needs a breakpoint read
2076
+ * (scroll lock, keydown gates, etc.), use a media-query hook such as `useMediaQuery` from
2077
+ * `usehooks-ts`.
2040
2078
  */
2041
2079
  declare function useBreakpoint(params?: UseBreakpointOptions): {
2042
2080
  currentBreakpoint: "2xl" | "base" | "xl" | "lg" | "md" | "sm";
@@ -2050,6 +2088,11 @@ type UseBreakpointValueProps<T> = BreakpointsConfig<T>;
2050
2088
  /**
2051
2089
  * Hook for getting a value based on the current breakpoint.
2052
2090
  *
2091
+ * @deprecated Prefer Tailwind responsive classes (`md:hidden`, `hidden md:block`, etc.) for
2092
+ * styling and conditional rendering. For JS logic that genuinely needs a breakpoint read
2093
+ * (scroll lock, keydown gates, etc.), use a media-query hook such as `useMediaQuery` from
2094
+ * `usehooks-ts`.
2095
+ *
2053
2096
  * @example
2054
2097
  * const width = useBreakpointValue({ base: '150px', md: '250px' })
2055
2098
  */