@traefik-labs/faency 13.7.2 → 13.8.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/components/Select/Select.vanilla.cjs +136 -0
- package/dist/components/Select/Select.vanilla.cjs.map +1 -0
- package/dist/components/Select/Select.vanilla.css.cjs +69 -0
- package/dist/components/Select/Select.vanilla.css.cjs.map +1 -0
- package/dist/components/Select/Select.vanilla.css.js +58 -0
- package/dist/components/Select/Select.vanilla.css.js.map +1 -0
- package/dist/components/Select/Select.vanilla.js +129 -0
- package/dist/components/Select/Select.vanilla.js.map +1 -0
- package/dist/components/Switch/Switch.vanilla.cjs +70 -0
- package/dist/components/Switch/Switch.vanilla.cjs.map +1 -0
- package/dist/components/Switch/Switch.vanilla.css.cjs +17 -0
- package/dist/components/Switch/Switch.vanilla.css.cjs.map +1 -0
- package/dist/components/Switch/Switch.vanilla.css.js +17 -0
- package/dist/components/Switch/Switch.vanilla.css.js.map +1 -0
- package/dist/components/Switch/Switch.vanilla.js +68 -0
- package/dist/components/Switch/Switch.vanilla.js.map +1 -0
- package/dist/faency.css +2995 -2530
- package/dist/index.cjs +8 -0
- package/dist/index.d.cts +168 -0
- package/dist/index.d.ts +168 -0
- package/dist/index.js +3 -1
- package/dist/styles/tokens.css.cjs +146 -133
- package/dist/styles/tokens.css.js +146 -133
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -72,12 +72,14 @@ const require_RadioAccordion = require("./components/RadioAccordion/RadioAccordi
|
|
|
72
72
|
const require_RowLink = require("./components/RowLink/RowLink.cjs");
|
|
73
73
|
const require_SegmentedControl_vanilla = require("./components/SegmentedControl/SegmentedControl.vanilla.cjs");
|
|
74
74
|
const require_Select = require("./components/Select/Select.cjs");
|
|
75
|
+
const require_Select_vanilla = require("./components/Select/Select.vanilla.cjs");
|
|
75
76
|
const require_SidePanel = require("./components/SidePanel/SidePanel.cjs");
|
|
76
77
|
const require_Skeleton = require("./components/Skeleton/Skeleton.cjs");
|
|
77
78
|
const require_Skeleton_vanilla = require("./components/Skeleton/Skeleton.vanilla.cjs");
|
|
78
79
|
const require_Spinner_vanilla = require("./components/Spinner/Spinner.vanilla.cjs");
|
|
79
80
|
const require_SplitLayout_vanilla = require("./components/SplitLayout/SplitLayout.vanilla.cjs");
|
|
80
81
|
const require_Switch = require("./components/Switch/Switch.cjs");
|
|
82
|
+
const require_Switch_vanilla = require("./components/Switch/Switch.vanilla.cjs");
|
|
81
83
|
const require_Table = require("./components/Table/Table.cjs");
|
|
82
84
|
const require_Table_vanilla = require("./components/Table/Table.vanilla.cjs");
|
|
83
85
|
const require_useTableSort = require("./components/Table/useTableSort.cjs");
|
|
@@ -253,6 +255,11 @@ exports.RowLink = require_RowLink.RowLink;
|
|
|
253
255
|
exports.SegmentedControlItemVanilla = require_SegmentedControl_vanilla.SegmentedControlItemVanilla;
|
|
254
256
|
exports.SegmentedControlVanilla = require_SegmentedControl_vanilla.SegmentedControlVanilla;
|
|
255
257
|
exports.Select = require_Select.Select;
|
|
258
|
+
exports.SelectGroupVanilla = require_Select_vanilla.SelectGroupVanilla;
|
|
259
|
+
exports.SelectItemVanilla = require_Select_vanilla.SelectItemVanilla;
|
|
260
|
+
exports.SelectLabelVanilla = require_Select_vanilla.SelectLabelVanilla;
|
|
261
|
+
exports.SelectSeparatorVanilla = require_Select_vanilla.SelectSeparatorVanilla;
|
|
262
|
+
exports.SelectVanilla = require_Select_vanilla.SelectVanilla;
|
|
256
263
|
exports.SidePanel = require_SidePanel.SidePanel;
|
|
257
264
|
exports.Skeleton = require_Skeleton.Skeleton;
|
|
258
265
|
exports.SkeletonVanilla = require_Skeleton_vanilla.SkeletonVanilla;
|
|
@@ -262,6 +269,7 @@ exports.SplitLayoutMainVanilla = require_SplitLayout_vanilla.SplitLayoutMainVani
|
|
|
262
269
|
exports.SplitLayoutVanilla = require_SplitLayout_vanilla.SplitLayoutVanilla;
|
|
263
270
|
exports.StyledContent = require_Dialog.StyledContent;
|
|
264
271
|
exports.Switch = require_Switch.Switch;
|
|
272
|
+
exports.SwitchVanilla = require_Switch_vanilla.SwitchVanilla;
|
|
265
273
|
exports.Table = require_Table.Table;
|
|
266
274
|
exports.TableVanilla = require_Table_vanilla.TableVanilla;
|
|
267
275
|
exports.TabsContainer = require_Tabs.TabsContainer;
|
package/dist/index.d.cts
CHANGED
|
@@ -42,6 +42,7 @@ import { ReactNode } from 'react';
|
|
|
42
42
|
import { RefAttributes } from 'react';
|
|
43
43
|
import { RemoveIndex } from '@stitches/react/types/stitches';
|
|
44
44
|
import { RuntimeFn } from '@vanilla-extract/recipes';
|
|
45
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
45
46
|
import type * as Stitches from '@stitches/react';
|
|
46
47
|
import { String as String_2 } from '@stitches/react/types/util';
|
|
47
48
|
import { StyledComponent } from '@stitches/react/types/styled-component';
|
|
@@ -19912,10 +19913,117 @@ export declare interface SegmentedControlVanillaProps extends Omit<ComponentProp
|
|
|
19912
19913
|
|
|
19913
19914
|
export declare const Select: default_2.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & default_2.RefAttributes<HTMLSelectElement>>;
|
|
19914
19915
|
|
|
19916
|
+
export declare const SelectGroupVanilla: default_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectGroupProps, "asChild"> & CSSProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
19917
|
+
|
|
19918
|
+
export declare type SelectGroupVanillaProps = Omit<SelectPrimitive.SelectGroupProps, 'asChild'> & CSSProps;
|
|
19919
|
+
|
|
19920
|
+
export declare const SelectItemVanilla: default_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps, "asChild"> & CSSProps & {
|
|
19921
|
+
/** A second line under the item, shown in the list only. */
|
|
19922
|
+
description?: default_2.ReactNode;
|
|
19923
|
+
} & default_2.RefAttributes<HTMLDivElement>>;
|
|
19924
|
+
|
|
19925
|
+
export declare type SelectItemVanillaProps = Omit<SelectPrimitive.SelectItemProps, 'asChild'> & CSSProps & {
|
|
19926
|
+
/** A second line under the item, shown in the list only. */
|
|
19927
|
+
description?: default_2.ReactNode;
|
|
19928
|
+
};
|
|
19929
|
+
|
|
19930
|
+
export declare const SelectLabelVanilla: default_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps, "asChild"> & CSSProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
19931
|
+
|
|
19932
|
+
export declare type SelectLabelVanillaProps = Omit<SelectPrimitive.SelectLabelProps, 'asChild'> & CSSProps;
|
|
19933
|
+
|
|
19915
19934
|
declare type SelectProps = Omit<default_2.ComponentProps<typeof StyledSelect>, 'size'> & SelectVariants & {
|
|
19916
19935
|
css?: CSS_2;
|
|
19917
19936
|
};
|
|
19918
19937
|
|
|
19938
|
+
declare type SelectRootProps = Omit<SelectPrimitive.SelectProps, 'children' | 'autoComplete' | 'onValueChange'>;
|
|
19939
|
+
|
|
19940
|
+
export declare const SelectSeparatorVanilla: default_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps, "asChild"> & CSSProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
19941
|
+
|
|
19942
|
+
export declare type SelectSeparatorVanillaProps = Omit<SelectPrimitive.SelectSeparatorProps, 'asChild'> & CSSProps;
|
|
19943
|
+
|
|
19944
|
+
declare const selectTriggerRecipe: RuntimeFn< {
|
|
19945
|
+
size: {
|
|
19946
|
+
small: {
|
|
19947
|
+
height: string;
|
|
19948
|
+
borderRadius: string;
|
|
19949
|
+
fontSize: string;
|
|
19950
|
+
paddingInlineStart: string;
|
|
19951
|
+
paddingInlineEnd: string;
|
|
19952
|
+
gap: string;
|
|
19953
|
+
};
|
|
19954
|
+
medium: {
|
|
19955
|
+
height: string;
|
|
19956
|
+
borderRadius: string;
|
|
19957
|
+
fontSize: string;
|
|
19958
|
+
paddingInlineStart: string;
|
|
19959
|
+
paddingInlineEnd: string;
|
|
19960
|
+
gap: string;
|
|
19961
|
+
};
|
|
19962
|
+
large: {
|
|
19963
|
+
height: string;
|
|
19964
|
+
borderRadius: string;
|
|
19965
|
+
fontSize: string;
|
|
19966
|
+
paddingInlineStart: string;
|
|
19967
|
+
paddingInlineEnd: string;
|
|
19968
|
+
gap: string;
|
|
19969
|
+
};
|
|
19970
|
+
};
|
|
19971
|
+
variant: {
|
|
19972
|
+
ghost: {
|
|
19973
|
+
boxShadow: "none";
|
|
19974
|
+
backgroundColor: "transparent";
|
|
19975
|
+
selectors: {
|
|
19976
|
+
'&:focus-visible': {
|
|
19977
|
+
backgroundColor: `var(--${string})`;
|
|
19978
|
+
boxShadow: `inset 0 0 0 1px var(--${string}), 0 0 0 1px var(--${string})`;
|
|
19979
|
+
};
|
|
19980
|
+
};
|
|
19981
|
+
'@media': {
|
|
19982
|
+
"(any-hover: hover)": {
|
|
19983
|
+
selectors: {
|
|
19984
|
+
'&:hover': {
|
|
19985
|
+
boxShadow: `inset 0 0 0 1px var(--${string})`;
|
|
19986
|
+
backgroundColor: `var(--${string})`;
|
|
19987
|
+
};
|
|
19988
|
+
};
|
|
19989
|
+
};
|
|
19990
|
+
};
|
|
19991
|
+
};
|
|
19992
|
+
};
|
|
19993
|
+
state: {
|
|
19994
|
+
invalid: {
|
|
19995
|
+
boxShadow: `inset 0 0 0 1px var(--${string})`;
|
|
19996
|
+
selectors: {
|
|
19997
|
+
'&:focus-visible': {
|
|
19998
|
+
boxShadow: `inset 0 0 0 2px var(--${string}), 0 1px 5px 0 hsla(0, 0%, 0%, 0.2), 0 3px 1px -2px hsla(0, 0%, 0%, 0.12), 0 2px 2px 0 hsla(0, 0%, 0%, 0.14)`;
|
|
19999
|
+
};
|
|
20000
|
+
};
|
|
20001
|
+
};
|
|
20002
|
+
};
|
|
20003
|
+
}>;
|
|
20004
|
+
|
|
20005
|
+
declare type SelectTriggerVariants = RecipeVariantProps<typeof selectTriggerRecipe>;
|
|
20006
|
+
|
|
20007
|
+
export declare const SelectVanilla: default_2.ForwardRefExoticComponent<Omit<default_2.ButtonHTMLAttributes<HTMLButtonElement>, "form" | "open" | "value" | "name" | "type" | "children" | "onChange" | "defaultValue" | "dir" | "disabled" | "required" | "onOpenChange" | "defaultOpen"> & SelectRootProps & CSSProps & {
|
|
20008
|
+
onValueChange?: (value: string) => void;
|
|
20009
|
+
placeholder?: default_2.ReactNode;
|
|
20010
|
+
autoComplete?: string;
|
|
20011
|
+
size?: SelectTriggerVariants["size"];
|
|
20012
|
+
variant?: SelectTriggerVariants["variant"];
|
|
20013
|
+
state?: SelectTriggerVariants["state"];
|
|
20014
|
+
children?: default_2.ReactNode;
|
|
20015
|
+
} & default_2.RefAttributes<HTMLButtonElement>>;
|
|
20016
|
+
|
|
20017
|
+
export declare type SelectVanillaProps = Omit<default_2.ButtonHTMLAttributes<HTMLButtonElement>, keyof SelectRootProps | 'children' | 'type' | 'onChange'> & SelectRootProps & CSSProps & {
|
|
20018
|
+
onValueChange?: (value: string) => void;
|
|
20019
|
+
placeholder?: default_2.ReactNode;
|
|
20020
|
+
autoComplete?: string;
|
|
20021
|
+
size?: SelectTriggerVariants['size'];
|
|
20022
|
+
variant?: SelectTriggerVariants['variant'];
|
|
20023
|
+
state?: SelectTriggerVariants['state'];
|
|
20024
|
+
children?: default_2.ReactNode;
|
|
20025
|
+
};
|
|
20026
|
+
|
|
19919
20027
|
declare type SelectVariants = VariantProps<typeof StyledSelect> & VariantProps<typeof SelectWrapper> & VariantProps<typeof StyledCaretSortIcon>;
|
|
19920
20028
|
|
|
19921
20029
|
declare const SelectWrapper: StyledComponent<"div", {
|
|
@@ -31317,6 +31425,47 @@ declare type SwitchProps = SwitchPrimitiveProps & SwitchVariants & {
|
|
|
31317
31425
|
css?: CSS_2;
|
|
31318
31426
|
};
|
|
31319
31427
|
|
|
31428
|
+
declare const switchRecipe: RuntimeFn< {
|
|
31429
|
+
size: {
|
|
31430
|
+
'1': {
|
|
31431
|
+
width: number;
|
|
31432
|
+
height: number;
|
|
31433
|
+
vars: {
|
|
31434
|
+
[thumbDiameter]: string;
|
|
31435
|
+
[thumbOffOffset]: string;
|
|
31436
|
+
[thumbOnOffset]: string;
|
|
31437
|
+
};
|
|
31438
|
+
};
|
|
31439
|
+
'2': {
|
|
31440
|
+
width: number;
|
|
31441
|
+
height: number;
|
|
31442
|
+
vars: {
|
|
31443
|
+
[thumbDiameter]: string;
|
|
31444
|
+
[thumbOffOffset]: string;
|
|
31445
|
+
[thumbOnOffset]: string;
|
|
31446
|
+
};
|
|
31447
|
+
};
|
|
31448
|
+
};
|
|
31449
|
+
}>;
|
|
31450
|
+
|
|
31451
|
+
declare type SwitchRecipeVariants = RecipeVariantProps<typeof switchRecipe>;
|
|
31452
|
+
|
|
31453
|
+
export declare const SwitchVanilla: SwitchVanillaComponent;
|
|
31454
|
+
|
|
31455
|
+
declare type SwitchVanillaComponent = PolymorphicComponent<'button', SwitchVanillaProps<ElementType>>;
|
|
31456
|
+
|
|
31457
|
+
declare interface SwitchVanillaOwnProps extends SwitchRecipeVariants, CSSProps {
|
|
31458
|
+
checked?: boolean;
|
|
31459
|
+
defaultChecked?: boolean;
|
|
31460
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
31461
|
+
disabled?: boolean;
|
|
31462
|
+
required?: boolean;
|
|
31463
|
+
name?: string;
|
|
31464
|
+
value?: string;
|
|
31465
|
+
}
|
|
31466
|
+
|
|
31467
|
+
export declare type SwitchVanillaProps<C extends ElementType = 'button'> = PolymorphicComponentProps<C, SwitchVanillaOwnProps>;
|
|
31468
|
+
|
|
31320
31469
|
declare type SwitchVariants = VariantProps<typeof StyledSwitch>;
|
|
31321
31470
|
|
|
31322
31471
|
export declare const Table: StyledComponent<"table", {
|
|
@@ -36012,6 +36161,12 @@ declare type ThRecipeVariants = RecipeVariantProps<typeof thRecipe>;
|
|
|
36012
36161
|
|
|
36013
36162
|
declare type ThRecipeVariants_2 = RecipeVariantProps<typeof thRecipe>;
|
|
36014
36163
|
|
|
36164
|
+
declare const thumbDiameter: `var(--${string})`;
|
|
36165
|
+
|
|
36166
|
+
declare const thumbOffOffset: `var(--${string})`;
|
|
36167
|
+
|
|
36168
|
+
declare const thumbOnOffset: `var(--${string})`;
|
|
36169
|
+
|
|
36015
36170
|
export declare const ThVanilla: default_2.ForwardRefExoticComponent<Omit<default_2.ThHTMLAttributes<HTMLTableCellElement>, "align"> & CSSProps & ThRecipeVariants_2 & TableSortProps & default_2.RefAttributes<HTMLTableCellElement>>;
|
|
36016
36171
|
|
|
36017
36172
|
export declare type ThVanillaProps = Omit<default_2.ThHTMLAttributes<HTMLTableCellElement>, 'align'> & CSSProps & ThRecipeVariants_2 & TableSortProps;
|
|
@@ -36643,6 +36798,14 @@ export declare const vanillaTokens: {
|
|
|
36643
36798
|
inputPlaceholder: `var(--${string})`;
|
|
36644
36799
|
inputDisabledText: `var(--${string})`;
|
|
36645
36800
|
inputInvalidBorder: `var(--${string})`;
|
|
36801
|
+
selectBg: `var(--${string})`;
|
|
36802
|
+
selectBorder: `var(--${string})`;
|
|
36803
|
+
selectFocusBorder: `var(--${string})`;
|
|
36804
|
+
selectHoverBg: `var(--${string})`;
|
|
36805
|
+
selectText: `var(--${string})`;
|
|
36806
|
+
selectPlaceholder: `var(--${string})`;
|
|
36807
|
+
selectDisabledText: `var(--${string})`;
|
|
36808
|
+
selectInvalidBorder: `var(--${string})`;
|
|
36646
36809
|
textareaBg: `var(--${string})`;
|
|
36647
36810
|
textareaBorder: `var(--${string})`;
|
|
36648
36811
|
textareaFocusBg: `var(--${string})`;
|
|
@@ -36686,6 +36849,11 @@ export declare const vanillaTokens: {
|
|
|
36686
36849
|
listItemHoverBg: `var(--${string})`;
|
|
36687
36850
|
listItemActiveBg: `var(--${string})`;
|
|
36688
36851
|
listItemFocusBorder: `var(--${string})`;
|
|
36852
|
+
switchBackground: `var(--${string})`;
|
|
36853
|
+
switchActiveBackground: `var(--${string})`;
|
|
36854
|
+
switchFocusBorder: `var(--${string})`;
|
|
36855
|
+
switchThumb: `var(--${string})`;
|
|
36856
|
+
switchInvalidBorder: `var(--${string})`;
|
|
36689
36857
|
toneSuccessSolid: `var(--${string})`;
|
|
36690
36858
|
toneSuccessText: `var(--${string})`;
|
|
36691
36859
|
toneSuccessSurface: `var(--${string})`;
|
package/dist/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ import { ReactNode } from 'react';
|
|
|
42
42
|
import { RefAttributes } from 'react';
|
|
43
43
|
import { RemoveIndex } from '@stitches/react/types/stitches';
|
|
44
44
|
import { RuntimeFn } from '@vanilla-extract/recipes';
|
|
45
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
45
46
|
import type * as Stitches from '@stitches/react';
|
|
46
47
|
import { String as String_2 } from '@stitches/react/types/util';
|
|
47
48
|
import { StyledComponent } from '@stitches/react/types/styled-component';
|
|
@@ -19912,10 +19913,117 @@ export declare interface SegmentedControlVanillaProps extends Omit<ComponentProp
|
|
|
19912
19913
|
|
|
19913
19914
|
export declare const Select: default_2.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & default_2.RefAttributes<HTMLSelectElement>>;
|
|
19914
19915
|
|
|
19916
|
+
export declare const SelectGroupVanilla: default_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectGroupProps, "asChild"> & CSSProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
19917
|
+
|
|
19918
|
+
export declare type SelectGroupVanillaProps = Omit<SelectPrimitive.SelectGroupProps, 'asChild'> & CSSProps;
|
|
19919
|
+
|
|
19920
|
+
export declare const SelectItemVanilla: default_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps, "asChild"> & CSSProps & {
|
|
19921
|
+
/** A second line under the item, shown in the list only. */
|
|
19922
|
+
description?: default_2.ReactNode;
|
|
19923
|
+
} & default_2.RefAttributes<HTMLDivElement>>;
|
|
19924
|
+
|
|
19925
|
+
export declare type SelectItemVanillaProps = Omit<SelectPrimitive.SelectItemProps, 'asChild'> & CSSProps & {
|
|
19926
|
+
/** A second line under the item, shown in the list only. */
|
|
19927
|
+
description?: default_2.ReactNode;
|
|
19928
|
+
};
|
|
19929
|
+
|
|
19930
|
+
export declare const SelectLabelVanilla: default_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps, "asChild"> & CSSProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
19931
|
+
|
|
19932
|
+
export declare type SelectLabelVanillaProps = Omit<SelectPrimitive.SelectLabelProps, 'asChild'> & CSSProps;
|
|
19933
|
+
|
|
19915
19934
|
declare type SelectProps = Omit<default_2.ComponentProps<typeof StyledSelect>, 'size'> & SelectVariants & {
|
|
19916
19935
|
css?: CSS_2;
|
|
19917
19936
|
};
|
|
19918
19937
|
|
|
19938
|
+
declare type SelectRootProps = Omit<SelectPrimitive.SelectProps, 'children' | 'autoComplete' | 'onValueChange'>;
|
|
19939
|
+
|
|
19940
|
+
export declare const SelectSeparatorVanilla: default_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps, "asChild"> & CSSProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
19941
|
+
|
|
19942
|
+
export declare type SelectSeparatorVanillaProps = Omit<SelectPrimitive.SelectSeparatorProps, 'asChild'> & CSSProps;
|
|
19943
|
+
|
|
19944
|
+
declare const selectTriggerRecipe: RuntimeFn< {
|
|
19945
|
+
size: {
|
|
19946
|
+
small: {
|
|
19947
|
+
height: string;
|
|
19948
|
+
borderRadius: string;
|
|
19949
|
+
fontSize: string;
|
|
19950
|
+
paddingInlineStart: string;
|
|
19951
|
+
paddingInlineEnd: string;
|
|
19952
|
+
gap: string;
|
|
19953
|
+
};
|
|
19954
|
+
medium: {
|
|
19955
|
+
height: string;
|
|
19956
|
+
borderRadius: string;
|
|
19957
|
+
fontSize: string;
|
|
19958
|
+
paddingInlineStart: string;
|
|
19959
|
+
paddingInlineEnd: string;
|
|
19960
|
+
gap: string;
|
|
19961
|
+
};
|
|
19962
|
+
large: {
|
|
19963
|
+
height: string;
|
|
19964
|
+
borderRadius: string;
|
|
19965
|
+
fontSize: string;
|
|
19966
|
+
paddingInlineStart: string;
|
|
19967
|
+
paddingInlineEnd: string;
|
|
19968
|
+
gap: string;
|
|
19969
|
+
};
|
|
19970
|
+
};
|
|
19971
|
+
variant: {
|
|
19972
|
+
ghost: {
|
|
19973
|
+
boxShadow: "none";
|
|
19974
|
+
backgroundColor: "transparent";
|
|
19975
|
+
selectors: {
|
|
19976
|
+
'&:focus-visible': {
|
|
19977
|
+
backgroundColor: `var(--${string})`;
|
|
19978
|
+
boxShadow: `inset 0 0 0 1px var(--${string}), 0 0 0 1px var(--${string})`;
|
|
19979
|
+
};
|
|
19980
|
+
};
|
|
19981
|
+
'@media': {
|
|
19982
|
+
"(any-hover: hover)": {
|
|
19983
|
+
selectors: {
|
|
19984
|
+
'&:hover': {
|
|
19985
|
+
boxShadow: `inset 0 0 0 1px var(--${string})`;
|
|
19986
|
+
backgroundColor: `var(--${string})`;
|
|
19987
|
+
};
|
|
19988
|
+
};
|
|
19989
|
+
};
|
|
19990
|
+
};
|
|
19991
|
+
};
|
|
19992
|
+
};
|
|
19993
|
+
state: {
|
|
19994
|
+
invalid: {
|
|
19995
|
+
boxShadow: `inset 0 0 0 1px var(--${string})`;
|
|
19996
|
+
selectors: {
|
|
19997
|
+
'&:focus-visible': {
|
|
19998
|
+
boxShadow: `inset 0 0 0 2px var(--${string}), 0 1px 5px 0 hsla(0, 0%, 0%, 0.2), 0 3px 1px -2px hsla(0, 0%, 0%, 0.12), 0 2px 2px 0 hsla(0, 0%, 0%, 0.14)`;
|
|
19999
|
+
};
|
|
20000
|
+
};
|
|
20001
|
+
};
|
|
20002
|
+
};
|
|
20003
|
+
}>;
|
|
20004
|
+
|
|
20005
|
+
declare type SelectTriggerVariants = RecipeVariantProps<typeof selectTriggerRecipe>;
|
|
20006
|
+
|
|
20007
|
+
export declare const SelectVanilla: default_2.ForwardRefExoticComponent<Omit<default_2.ButtonHTMLAttributes<HTMLButtonElement>, "form" | "open" | "value" | "name" | "type" | "children" | "onChange" | "defaultValue" | "dir" | "disabled" | "required" | "onOpenChange" | "defaultOpen"> & SelectRootProps & CSSProps & {
|
|
20008
|
+
onValueChange?: (value: string) => void;
|
|
20009
|
+
placeholder?: default_2.ReactNode;
|
|
20010
|
+
autoComplete?: string;
|
|
20011
|
+
size?: SelectTriggerVariants["size"];
|
|
20012
|
+
variant?: SelectTriggerVariants["variant"];
|
|
20013
|
+
state?: SelectTriggerVariants["state"];
|
|
20014
|
+
children?: default_2.ReactNode;
|
|
20015
|
+
} & default_2.RefAttributes<HTMLButtonElement>>;
|
|
20016
|
+
|
|
20017
|
+
export declare type SelectVanillaProps = Omit<default_2.ButtonHTMLAttributes<HTMLButtonElement>, keyof SelectRootProps | 'children' | 'type' | 'onChange'> & SelectRootProps & CSSProps & {
|
|
20018
|
+
onValueChange?: (value: string) => void;
|
|
20019
|
+
placeholder?: default_2.ReactNode;
|
|
20020
|
+
autoComplete?: string;
|
|
20021
|
+
size?: SelectTriggerVariants['size'];
|
|
20022
|
+
variant?: SelectTriggerVariants['variant'];
|
|
20023
|
+
state?: SelectTriggerVariants['state'];
|
|
20024
|
+
children?: default_2.ReactNode;
|
|
20025
|
+
};
|
|
20026
|
+
|
|
19919
20027
|
declare type SelectVariants = VariantProps<typeof StyledSelect> & VariantProps<typeof SelectWrapper> & VariantProps<typeof StyledCaretSortIcon>;
|
|
19920
20028
|
|
|
19921
20029
|
declare const SelectWrapper: StyledComponent<"div", {
|
|
@@ -31317,6 +31425,47 @@ declare type SwitchProps = SwitchPrimitiveProps & SwitchVariants & {
|
|
|
31317
31425
|
css?: CSS_2;
|
|
31318
31426
|
};
|
|
31319
31427
|
|
|
31428
|
+
declare const switchRecipe: RuntimeFn< {
|
|
31429
|
+
size: {
|
|
31430
|
+
'1': {
|
|
31431
|
+
width: number;
|
|
31432
|
+
height: number;
|
|
31433
|
+
vars: {
|
|
31434
|
+
[thumbDiameter]: string;
|
|
31435
|
+
[thumbOffOffset]: string;
|
|
31436
|
+
[thumbOnOffset]: string;
|
|
31437
|
+
};
|
|
31438
|
+
};
|
|
31439
|
+
'2': {
|
|
31440
|
+
width: number;
|
|
31441
|
+
height: number;
|
|
31442
|
+
vars: {
|
|
31443
|
+
[thumbDiameter]: string;
|
|
31444
|
+
[thumbOffOffset]: string;
|
|
31445
|
+
[thumbOnOffset]: string;
|
|
31446
|
+
};
|
|
31447
|
+
};
|
|
31448
|
+
};
|
|
31449
|
+
}>;
|
|
31450
|
+
|
|
31451
|
+
declare type SwitchRecipeVariants = RecipeVariantProps<typeof switchRecipe>;
|
|
31452
|
+
|
|
31453
|
+
export declare const SwitchVanilla: SwitchVanillaComponent;
|
|
31454
|
+
|
|
31455
|
+
declare type SwitchVanillaComponent = PolymorphicComponent<'button', SwitchVanillaProps<ElementType>>;
|
|
31456
|
+
|
|
31457
|
+
declare interface SwitchVanillaOwnProps extends SwitchRecipeVariants, CSSProps {
|
|
31458
|
+
checked?: boolean;
|
|
31459
|
+
defaultChecked?: boolean;
|
|
31460
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
31461
|
+
disabled?: boolean;
|
|
31462
|
+
required?: boolean;
|
|
31463
|
+
name?: string;
|
|
31464
|
+
value?: string;
|
|
31465
|
+
}
|
|
31466
|
+
|
|
31467
|
+
export declare type SwitchVanillaProps<C extends ElementType = 'button'> = PolymorphicComponentProps<C, SwitchVanillaOwnProps>;
|
|
31468
|
+
|
|
31320
31469
|
declare type SwitchVariants = VariantProps<typeof StyledSwitch>;
|
|
31321
31470
|
|
|
31322
31471
|
export declare const Table: StyledComponent<"table", {
|
|
@@ -36012,6 +36161,12 @@ declare type ThRecipeVariants = RecipeVariantProps<typeof thRecipe>;
|
|
|
36012
36161
|
|
|
36013
36162
|
declare type ThRecipeVariants_2 = RecipeVariantProps<typeof thRecipe>;
|
|
36014
36163
|
|
|
36164
|
+
declare const thumbDiameter: `var(--${string})`;
|
|
36165
|
+
|
|
36166
|
+
declare const thumbOffOffset: `var(--${string})`;
|
|
36167
|
+
|
|
36168
|
+
declare const thumbOnOffset: `var(--${string})`;
|
|
36169
|
+
|
|
36015
36170
|
export declare const ThVanilla: default_2.ForwardRefExoticComponent<Omit<default_2.ThHTMLAttributes<HTMLTableCellElement>, "align"> & CSSProps & ThRecipeVariants_2 & TableSortProps & default_2.RefAttributes<HTMLTableCellElement>>;
|
|
36016
36171
|
|
|
36017
36172
|
export declare type ThVanillaProps = Omit<default_2.ThHTMLAttributes<HTMLTableCellElement>, 'align'> & CSSProps & ThRecipeVariants_2 & TableSortProps;
|
|
@@ -36643,6 +36798,14 @@ export declare const vanillaTokens: {
|
|
|
36643
36798
|
inputPlaceholder: `var(--${string})`;
|
|
36644
36799
|
inputDisabledText: `var(--${string})`;
|
|
36645
36800
|
inputInvalidBorder: `var(--${string})`;
|
|
36801
|
+
selectBg: `var(--${string})`;
|
|
36802
|
+
selectBorder: `var(--${string})`;
|
|
36803
|
+
selectFocusBorder: `var(--${string})`;
|
|
36804
|
+
selectHoverBg: `var(--${string})`;
|
|
36805
|
+
selectText: `var(--${string})`;
|
|
36806
|
+
selectPlaceholder: `var(--${string})`;
|
|
36807
|
+
selectDisabledText: `var(--${string})`;
|
|
36808
|
+
selectInvalidBorder: `var(--${string})`;
|
|
36646
36809
|
textareaBg: `var(--${string})`;
|
|
36647
36810
|
textareaBorder: `var(--${string})`;
|
|
36648
36811
|
textareaFocusBg: `var(--${string})`;
|
|
@@ -36686,6 +36849,11 @@ export declare const vanillaTokens: {
|
|
|
36686
36849
|
listItemHoverBg: `var(--${string})`;
|
|
36687
36850
|
listItemActiveBg: `var(--${string})`;
|
|
36688
36851
|
listItemFocusBorder: `var(--${string})`;
|
|
36852
|
+
switchBackground: `var(--${string})`;
|
|
36853
|
+
switchActiveBackground: `var(--${string})`;
|
|
36854
|
+
switchFocusBorder: `var(--${string})`;
|
|
36855
|
+
switchThumb: `var(--${string})`;
|
|
36856
|
+
switchInvalidBorder: `var(--${string})`;
|
|
36689
36857
|
toneSuccessSolid: `var(--${string})`;
|
|
36690
36858
|
toneSuccessText: `var(--${string})`;
|
|
36691
36859
|
toneSuccessSurface: `var(--${string})`;
|
package/dist/index.js
CHANGED
|
@@ -71,12 +71,14 @@ import { RadioAccordionContent, RadioAccordionItem, RadioAccordionRoot, RadioAcc
|
|
|
71
71
|
import { RowLink, rowLinkRowStyles, rowLinkTableStyles } from "./components/RowLink/RowLink.js";
|
|
72
72
|
import { SegmentedControlItemVanilla, SegmentedControlVanilla } from "./components/SegmentedControl/SegmentedControl.vanilla.js";
|
|
73
73
|
import { Select } from "./components/Select/Select.js";
|
|
74
|
+
import { SelectGroupVanilla, SelectItemVanilla, SelectLabelVanilla, SelectSeparatorVanilla, SelectVanilla } from "./components/Select/Select.vanilla.js";
|
|
74
75
|
import { SidePanel } from "./components/SidePanel/SidePanel.js";
|
|
75
76
|
import { Skeleton } from "./components/Skeleton/Skeleton.js";
|
|
76
77
|
import { SkeletonVanilla } from "./components/Skeleton/Skeleton.vanilla.js";
|
|
77
78
|
import { SpinnerVanilla } from "./components/Spinner/Spinner.vanilla.js";
|
|
78
79
|
import { SplitLayoutAsideVanilla, SplitLayoutMainVanilla, SplitLayoutVanilla } from "./components/SplitLayout/SplitLayout.vanilla.js";
|
|
79
80
|
import { Switch } from "./components/Switch/Switch.js";
|
|
81
|
+
import { SwitchVanilla } from "./components/Switch/Switch.vanilla.js";
|
|
80
82
|
import { Caption as Caption$1, Table as Table$1, Tbody as Tbody$1, Td as Td$1, Tfoot as Tfoot$1, Th as Th$1, Thead as Thead$1, Tr as Tr$1 } from "./components/Table/Table.js";
|
|
81
83
|
import { CaptionVanilla, TableVanilla, TbodyVanilla, TdVanilla, TfootVanilla, ThVanilla, TheadVanilla, TrVanilla } from "./components/Table/Table.vanilla.js";
|
|
82
84
|
import { sortRows, useTableSort } from "./components/Table/useTableSort.js";
|
|
@@ -97,4 +99,4 @@ import { darkTheme as darkTheme$1, lightTheme as lightTheme$1, themes } from "./
|
|
|
97
99
|
import { tokens } from "./styles/tokens.css.js";
|
|
98
100
|
import { AspectRatio } from "@radix-ui/react-aspect-ratio";
|
|
99
101
|
import { Portal } from "@radix-ui/react-portal";
|
|
100
|
-
export { AccessibleIcon, AccessibleIconVanilla, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, Alert, Caption as AriaCaption, AriaCaptionVanilla, Table as AriaTable, AriaTableVanilla, Tbody as AriaTbody, AriaTbodyVanilla, Td as AriaTd, AriaTdVanilla, Tfoot as AriaTfoot, AriaTfootVanilla, Th as AriaTh, AriaThVanilla, Thead as AriaThead, AriaTheadVanilla, Tr as AriaTr, AriaTrVanilla, AspectRatio, Avatar, AvatarVanilla, COLORS as BADGE_COLORS_VANILLA, Badge, BadgeVanilla, Blockquote, BlockquoteVanilla, Box, BoxVanilla, Bubble, BubbleVanilla, Button, ButtonSwitchContainer, ButtonSwitchContainerVanilla, ButtonSwitchItem, ButtonSwitchItemVanilla, ButtonVanilla, Caption$1 as Caption, CaptionVanilla, Card, CardVanilla, Checkbox, CodeBlock, CodeBlockVanilla, ComboboxVanilla, Container, ContainerVanilla, DateTimePicker, DateTimePickerInput, Dialog, DialogCloseIconButton, DialogClosePrimitive, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, Elevation, ElevationVanilla, FaencyProvider, Field, FieldVanilla, Flex, FlexVanilla, Grid, GridVanilla, H1, H1Vanilla, H2, H2Vanilla, H3, H3Vanilla, H4, H4Vanilla, H5, H5Vanilla, H6, H6Vanilla, IconButton, IconButtonVanilla, Image, ImageVanilla, Input, InputVanilla, Label, LabelVanilla, Li, LiVanilla, Link, MeterVanilla, NavigationContainer, NavigationDrawer, NavigationItem, NavigationLink, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NavigationTreeContainer, NavigationTreeDrawer, NavigationTreeItem, Ol, OlVanilla, Overlay, Panel, PanelVanilla, Paragraph, ParagraphVanilla, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Portal, Radio, RadioAccordionContent, RadioAccordionItem, RadioAccordionRoot, RadioAccordionTrigger, RadioGroup, RowLink, SegmentedControlItemVanilla, SegmentedControlVanilla, Select, SidePanel, Skeleton, SkeletonVanilla, SpinnerVanilla, SplitLayoutAsideVanilla, SplitLayoutMainVanilla, SplitLayoutVanilla, StyledContent, Switch, Table$1 as Table, TableVanilla, TabsContainer, TabsContent, TabsList, TabsTrigger, Tbody$1 as Tbody, TbodyVanilla, Td$1 as Td, TdVanilla, Text, TextField, TextFieldVanilla, TextVanilla, Textarea, TextareaVanilla, Tfoot$1 as Tfoot, TfootVanilla, Th$1 as Th, ThVanilla, Thead$1 as Thead, TheadVanilla, ToastActionVanilla, ToastDescriptionVanilla, ToastProviderVanilla, ToastTitleVanilla, ToastVanilla, Tooltip, TooltipContent, TooltipRoot, TooltipTrigger, Tr$1 as Tr, TrVanilla, Ul, UlVanilla, VanillaExtractThemeProvider, VisuallyHidden, config, createTheme, css, darkTheme, elevationVariants, getCssText, globalCss, keyframes, lightTheme, panelStyles, rowLinkRowStyles, rowLinkTableStyles, sortRows, styled, useColorScheme, useFieldControl, useTableSort, useToast, useVanillaExtractTheme, darkTheme$1 as vanillaDarkTheme, lightTheme$1 as vanillaLightTheme, themes as vanillaThemes, tokens as vanillaTokens };
|
|
102
|
+
export { AccessibleIcon, AccessibleIconVanilla, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, Alert, Caption as AriaCaption, AriaCaptionVanilla, Table as AriaTable, AriaTableVanilla, Tbody as AriaTbody, AriaTbodyVanilla, Td as AriaTd, AriaTdVanilla, Tfoot as AriaTfoot, AriaTfootVanilla, Th as AriaTh, AriaThVanilla, Thead as AriaThead, AriaTheadVanilla, Tr as AriaTr, AriaTrVanilla, AspectRatio, Avatar, AvatarVanilla, COLORS as BADGE_COLORS_VANILLA, Badge, BadgeVanilla, Blockquote, BlockquoteVanilla, Box, BoxVanilla, Bubble, BubbleVanilla, Button, ButtonSwitchContainer, ButtonSwitchContainerVanilla, ButtonSwitchItem, ButtonSwitchItemVanilla, ButtonVanilla, Caption$1 as Caption, CaptionVanilla, Card, CardVanilla, Checkbox, CodeBlock, CodeBlockVanilla, ComboboxVanilla, Container, ContainerVanilla, DateTimePicker, DateTimePickerInput, Dialog, DialogCloseIconButton, DialogClosePrimitive, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, Elevation, ElevationVanilla, FaencyProvider, Field, FieldVanilla, Flex, FlexVanilla, Grid, GridVanilla, H1, H1Vanilla, H2, H2Vanilla, H3, H3Vanilla, H4, H4Vanilla, H5, H5Vanilla, H6, H6Vanilla, IconButton, IconButtonVanilla, Image, ImageVanilla, Input, InputVanilla, Label, LabelVanilla, Li, LiVanilla, Link, MeterVanilla, NavigationContainer, NavigationDrawer, NavigationItem, NavigationLink, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NavigationTreeContainer, NavigationTreeDrawer, NavigationTreeItem, Ol, OlVanilla, Overlay, Panel, PanelVanilla, Paragraph, ParagraphVanilla, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Portal, Radio, RadioAccordionContent, RadioAccordionItem, RadioAccordionRoot, RadioAccordionTrigger, RadioGroup, RowLink, SegmentedControlItemVanilla, SegmentedControlVanilla, Select, SelectGroupVanilla, SelectItemVanilla, SelectLabelVanilla, SelectSeparatorVanilla, SelectVanilla, SidePanel, Skeleton, SkeletonVanilla, SpinnerVanilla, SplitLayoutAsideVanilla, SplitLayoutMainVanilla, SplitLayoutVanilla, StyledContent, Switch, SwitchVanilla, Table$1 as Table, TableVanilla, TabsContainer, TabsContent, TabsList, TabsTrigger, Tbody$1 as Tbody, TbodyVanilla, Td$1 as Td, TdVanilla, Text, TextField, TextFieldVanilla, TextVanilla, Textarea, TextareaVanilla, Tfoot$1 as Tfoot, TfootVanilla, Th$1 as Th, ThVanilla, Thead$1 as Thead, TheadVanilla, ToastActionVanilla, ToastDescriptionVanilla, ToastProviderVanilla, ToastTitleVanilla, ToastVanilla, Tooltip, TooltipContent, TooltipRoot, TooltipTrigger, Tr$1 as Tr, TrVanilla, Ul, UlVanilla, VanillaExtractThemeProvider, VisuallyHidden, config, createTheme, css, darkTheme, elevationVariants, getCssText, globalCss, keyframes, lightTheme, panelStyles, rowLinkRowStyles, rowLinkTableStyles, sortRows, styled, useColorScheme, useFieldControl, useTableSort, useToast, useVanillaExtractTheme, darkTheme$1 as vanillaDarkTheme, lightTheme$1 as vanillaLightTheme, themes as vanillaThemes, tokens as vanillaTokens };
|