@vesture/react 0.3.1 → 0.3.2
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/chunk-QKEAWZP5.js +15 -0
- package/dist/chunk-QKEAWZP5.js.map +1 -0
- package/dist/index.d.ts +1 -4
- package/dist/index.js +7 -12
- package/dist/index.js.map +1 -1
- package/dist/theme-hooks.css +82 -0
- package/dist/theme-hooks.css.map +1 -0
- package/dist/theme-hooks.d.ts +7 -0
- package/dist/theme-hooks.js +13 -0
- package/dist/theme-hooks.js.map +1 -0
- package/package.json +5 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/components/Button/Button.css.ts
|
|
2
|
+
var button = "Button_button__w1yuq20";
|
|
3
|
+
var variant = { primary: "Button_variant_primary__w1yuq21", secondary: "Button_variant_secondary__w1yuq22", ghost: "Button_variant_ghost__w1yuq23" };
|
|
4
|
+
|
|
5
|
+
// src/components/Card/Card.css.ts
|
|
6
|
+
var card = "Card_card__mv7u2g0";
|
|
7
|
+
var elevation = { flat: "Card_elevation_flat__mv7u2g1", raised: "Card_elevation_raised__mv7u2g2", overlay: "Card_elevation_overlay__mv7u2g3" };
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
button,
|
|
11
|
+
variant,
|
|
12
|
+
card,
|
|
13
|
+
elevation
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=chunk-QKEAWZP5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Button/Button.css.ts","../src/components/Card/Card.css.ts"],"sourcesContent":["import 'src/components/Button/Button.css.ts.vanilla.css?source=#H4sIAAAAAAAAA52UTXObMBCG7_4VHOOZKGM7_UjJqT10csmpuXuEtMA2oKXSYkw7-e8diREGl6SeXACtnnc_JW6-tcxk9tnw2nfbvv212yR_Vkmi0TWV7NMETYUGRF7B8X6VJLLCwghkqF2aKDAM1pt_to4x74Uiw2B4ulXIJk0O0l4J4RqpQBzdfr977uWuK9YeyMmwyGWNVR_BYMpI95Hcbk6ow98wA73hUY_ohxPaARYlz-DB9Aga23qU3AVJKLT8V-LtD8H85B-jSgZVRlaDFVZqbF3UDStRj1nRlO1QcxnRqS3S3ZR23FdwRgdbpPspragimyZspXGNtGDYbzZSazSFYDobhhubUK6nYEbMVF_GVpDznDzVjTPSTnu7jKrWOl9AQxhPUKgFGcmIxlIDlvs0yaR6Liy1Rg8lX88acJ2MxqNwpdTUnXnSrZX-I2ZT08z8XbrToNX6TMxY-3Ly1qgFHyAdmmJUQ1BTy_4cpYkhA_erl9XN8u1Lc1KtEwd0mFUQ7uKphrF1YSUCGuMc1m951ehkVoEODmOPDbGQVUUd6JBiIxX63m5uPk59HaRFaXjfWKyl7aPT7ZDc2RxiimEhRsmQ46dhxK9yT3Acu_5lfUkOaUkHsKkhvhprXF-e2INXx4ifL4soFeMB3h3ya5DHmHeLMR0oMnoSdXeBf9faXKrR83bhrzDFh51I69cmw5OR3F6Y7BtD-U86P9jS6erAYryiJH83h1i3rzTm7P_3rsLmgd570hbG8vIXi1T-enoHAAA';\nexport var button = 'Button_button__w1yuq20';\nexport var variant = {primary:'Button_variant_primary__w1yuq21',secondary:'Button_variant_secondary__w1yuq22',ghost:'Button_variant_ghost__w1yuq23'};","import 'src/components/Card/Card.css.ts.vanilla.css?source=LkNhcmRfY2FyZF9fbXY3dTJnMCB7CiAgYmFja2dyb3VuZDogdmFyKC0tY29sb3Itc3VyZmFjZV9fMmt5YTJ3MSk7CiAgYm9yZGVyLXJhZGl1czogdmFyKC0tcmFkaXVzLWxnX18ya3lhMndwKTsKICBib3JkZXItd2lkdGg6IHZhcigtLWJvcmRlci13aWR0aF9fMmt5YTJ3dyk7CiAgYm9yZGVyLXN0eWxlOiB2YXIoLS1ib3JkZXItc3R5bGVfXzJreWEyd3kpOwogIGJvcmRlci1jb2xvcjogdmFyKC0tY29sb3ItYm9yZGVyX18ya3lhMndkKTsKICBwYWRkaW5nOiB2YXIoLS1zcGFjZS1sZ19fMmt5YTJ3aik7Cn0KLkNhcmRfZWxldmF0aW9uX2ZsYXRfX212N3UyZzEgewogIGJveC1zaGFkb3c6IHZhcigtLXNoYWRvdy1ub25lX18ya3lhMndyKTsKfQouQ2FyZF9lbGV2YXRpb25fcmFpc2VkX19tdjd1MmcyIHsKICBib3gtc2hhZG93OiB2YXIoLS1zaGFkb3ctc21fXzJreWEyd3MpOwogIGJhY2tncm91bmQ6IHZhcigtLWNvbG9yLXN1cmZhY2VSYWlzZWRfXzJreWEydzIpOwp9Ci5DYXJkX2VsZXZhdGlvbl9vdmVybGF5X19tdjd1MmczIHsKICBib3gtc2hhZG93OiB2YXIoLS1zaGFkb3ctbGdfXzJreWEyd3UpOwogIGJhY2tncm91bmQ6IHZhcigtLWNvbG9yLXN1cmZhY2VSYWlzZWRfXzJreWEydzIpOwp9';\nexport var card = 'Card_card__mv7u2g0';\nexport var elevation = {flat:'Card_elevation_flat__mv7u2g1',raised:'Card_elevation_raised__mv7u2g2',overlay:'Card_elevation_overlay__mv7u2g3'};"],"mappings":";AACO,IAAI,SAAS;AACb,IAAI,UAAU,EAAC,SAAQ,mCAAkC,WAAU,qCAAoC,OAAM,gCAA+B;;;ACD5I,IAAI,OAAO;AACX,IAAI,YAAY,EAAC,MAAK,gCAA+B,QAAO,kCAAiC,SAAQ,kCAAiC;","names":[]}
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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(" ");
|