@vesture/react 0.3.1 → 0.3.3

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
@@ -1,10 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { ButtonHTMLAttributes, LabelHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, SelectHTMLAttributes, ReactNode, HTMLAttributes, ReactElement, MutableRefObject, AnchorHTMLAttributes, MouseEvent, ForwardedRef, CSSProperties } from 'react';
3
+ import { variant as variant$1, elevation } from './theme-hooks.js';
3
4
  import { Placement } from '@floating-ui/react';
4
5
  export { defaultThemeClass, defaultThemeVars, vars } from '@vesture/tokens';
5
6
 
6
- declare const variant$1: Record<"primary" | "secondary" | "ghost", string>;
7
-
8
7
  type ButtonVariant = keyof typeof variant$1;
9
8
  interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
10
9
  variant?: ButtonVariant;
@@ -48,8 +47,6 @@ interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type"
48
47
  }
49
48
  declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLInputElement>>;
50
49
 
51
- declare const elevation: Record<"overlay" | "flat" | "raised", string>;
52
-
53
50
  type CardElevation = keyof typeof elevation;
54
51
  interface CardProps extends HTMLAttributes<HTMLDivElement> {
55
52
  elevation?: CardElevation;
package/dist/index.js CHANGED
@@ -1,11 +1,12 @@
1
- // src/components/Button/Button.tsx
2
- import { forwardRef } from "react";
3
-
4
- // src/components/Button/Button.css.ts
5
- var button = "Button_button__w1yuq20";
6
- var variant = { primary: "Button_variant_primary__w1yuq21", secondary: "Button_variant_secondary__w1yuq22", ghost: "Button_variant_ghost__w1yuq23" };
1
+ import {
2
+ button,
3
+ card,
4
+ elevation,
5
+ variant
6
+ } from "./chunk-QKEAWZP5.js";
7
7
 
8
8
  // src/components/Button/Button.tsx
9
+ import { forwardRef } from "react";
9
10
  import { jsx } from "react/jsx-runtime";
10
11
  var Button = forwardRef(
11
12
  function Button2({ variant: variantProp = "primary", className, ...rest }, ref) {
@@ -152,12 +153,6 @@ var Switch = forwardRef8(function Switch2({ label: label4, className, ...rest },
152
153
 
153
154
  // src/components/Card/Card.tsx
154
155
  import { forwardRef as forwardRef9 } from "react";
155
-
156
- // src/components/Card/Card.css.ts
157
- var card = "Card_card__mv7u2g0";
158
- var elevation = { flat: "Card_elevation_flat__mv7u2g1", raised: "Card_elevation_raised__mv7u2g2", overlay: "Card_elevation_overlay__mv7u2g3" };
159
-
160
- // src/components/Card/Card.tsx
161
156
  import { jsx as jsx9 } from "react/jsx-runtime";
162
157
  var Card = forwardRef9(function Card2({ elevation: elevationProp = "flat", className, ...rest }, ref) {
163
158
  const classes = [card, elevation[elevationProp], className].filter(Boolean).join(" ");