@traefik-labs/faency 13.7.1 → 13.7.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/README.md +1 -2
- package/dist/components/AriaTable/AriaTable.cjs +48 -22
- package/dist/components/AriaTable/AriaTable.cjs.map +1 -1
- package/dist/components/AriaTable/AriaTable.js +49 -23
- package/dist/components/AriaTable/AriaTable.js.map +1 -1
- package/dist/components/AriaTable/AriaTable.vanilla.cjs +8 -4
- package/dist/components/AriaTable/AriaTable.vanilla.cjs.map +1 -1
- package/dist/components/AriaTable/AriaTable.vanilla.js +8 -4
- package/dist/components/AriaTable/AriaTable.vanilla.js.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.cjs +5 -2
- package/dist/components/Avatar/Avatar.vanilla.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.js +5 -2
- package/dist/components/Avatar/Avatar.vanilla.js.map +1 -1
- package/dist/components/Badge/Badge.vanilla.cjs +2 -10
- package/dist/components/Badge/Badge.vanilla.cjs.map +1 -1
- package/dist/components/Badge/Badge.vanilla.js +2 -10
- package/dist/components/Badge/Badge.vanilla.js.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.cjs +5 -11
- package/dist/components/Blockquote/Blockquote.vanilla.cjs.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.js +5 -11
- package/dist/components/Blockquote/Blockquote.vanilla.js.map +1 -1
- package/dist/components/Box/Box.vanilla.cjs +2 -10
- package/dist/components/Box/Box.vanilla.cjs.map +1 -1
- package/dist/components/Box/Box.vanilla.js +2 -10
- package/dist/components/Box/Box.vanilla.js.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.cjs +2 -10
- package/dist/components/Bubble/Bubble.vanilla.cjs.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.js +2 -10
- package/dist/components/Bubble/Bubble.vanilla.js.map +1 -1
- package/dist/components/Button/Button.vanilla.cjs +2 -10
- package/dist/components/Button/Button.vanilla.cjs.map +1 -1
- package/dist/components/Button/Button.vanilla.js +2 -10
- package/dist/components/Button/Button.vanilla.js.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs +3 -17
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js +3 -17
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js.map +1 -1
- package/dist/components/Card/Card.vanilla.cjs +6 -11
- package/dist/components/Card/Card.vanilla.cjs.map +1 -1
- package/dist/components/Card/Card.vanilla.js +6 -11
- package/dist/components/Card/Card.vanilla.js.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.vanilla.cjs +3 -6
- package/dist/components/CodeBlock/CodeBlock.vanilla.cjs.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.vanilla.js +3 -6
- package/dist/components/CodeBlock/CodeBlock.vanilla.js.map +1 -1
- package/dist/components/Combobox/Combobox.vanilla.cjs +3 -10
- package/dist/components/Combobox/Combobox.vanilla.cjs.map +1 -1
- package/dist/components/Combobox/Combobox.vanilla.js +3 -10
- package/dist/components/Combobox/Combobox.vanilla.js.map +1 -1
- package/dist/components/Container/Container.vanilla.cjs +5 -11
- package/dist/components/Container/Container.vanilla.cjs.map +1 -1
- package/dist/components/Container/Container.vanilla.js +5 -11
- package/dist/components/Container/Container.vanilla.js.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.cjs +5 -11
- package/dist/components/Elevation/Elevation.vanilla.cjs.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.js +5 -11
- package/dist/components/Elevation/Elevation.vanilla.js.map +1 -1
- package/dist/components/Field/Field.vanilla.cjs +3 -9
- package/dist/components/Field/Field.vanilla.cjs.map +1 -1
- package/dist/components/Field/Field.vanilla.js +3 -9
- package/dist/components/Field/Field.vanilla.js.map +1 -1
- package/dist/components/Flex/Flex.vanilla.cjs +5 -11
- package/dist/components/Flex/Flex.vanilla.cjs.map +1 -1
- package/dist/components/Flex/Flex.vanilla.js +5 -11
- package/dist/components/Flex/Flex.vanilla.js.map +1 -1
- package/dist/components/Grid/Grid.vanilla.cjs +7 -11
- package/dist/components/Grid/Grid.vanilla.cjs.map +1 -1
- package/dist/components/Grid/Grid.vanilla.js +7 -11
- package/dist/components/Grid/Grid.vanilla.js.map +1 -1
- package/dist/components/Heading/Heading.vanilla.cjs +35 -0
- package/dist/components/Heading/Heading.vanilla.cjs.map +1 -0
- package/dist/components/Heading/Heading.vanilla.css.cjs +85 -0
- package/dist/components/Heading/Heading.vanilla.css.cjs.map +1 -0
- package/dist/components/Heading/Heading.vanilla.css.js +74 -0
- package/dist/components/Heading/Heading.vanilla.css.js.map +1 -0
- package/dist/components/Heading/Heading.vanilla.js +30 -0
- package/dist/components/Heading/Heading.vanilla.js.map +1 -0
- package/dist/components/IconButton/IconButton.vanilla.cjs +5 -11
- package/dist/components/IconButton/IconButton.vanilla.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.vanilla.js +5 -11
- package/dist/components/IconButton/IconButton.vanilla.js.map +1 -1
- package/dist/components/Image/Image.vanilla.cjs +2 -10
- package/dist/components/Image/Image.vanilla.cjs.map +1 -1
- package/dist/components/Image/Image.vanilla.js +2 -10
- package/dist/components/Image/Image.vanilla.js.map +1 -1
- package/dist/components/Input/Input.vanilla.cjs +2 -10
- package/dist/components/Input/Input.vanilla.cjs.map +1 -1
- package/dist/components/Input/Input.vanilla.js +2 -10
- package/dist/components/Input/Input.vanilla.js.map +1 -1
- package/dist/components/Label/Label.vanilla.cjs +5 -11
- package/dist/components/Label/Label.vanilla.cjs.map +1 -1
- package/dist/components/Label/Label.vanilla.js +5 -11
- package/dist/components/Label/Label.vanilla.js.map +1 -1
- package/dist/components/List/List.vanilla.cjs +10 -18
- package/dist/components/List/List.vanilla.cjs.map +1 -1
- package/dist/components/List/List.vanilla.js +7 -15
- package/dist/components/List/List.vanilla.js.map +1 -1
- package/dist/components/Meter/Meter.vanilla.cjs +3 -8
- package/dist/components/Meter/Meter.vanilla.cjs.map +1 -1
- package/dist/components/Meter/Meter.vanilla.js +3 -8
- package/dist/components/Meter/Meter.vanilla.js.map +1 -1
- package/dist/components/Panel/Panel.vanilla.cjs +2 -10
- package/dist/components/Panel/Panel.vanilla.cjs.map +1 -1
- package/dist/components/Panel/Panel.vanilla.js +2 -10
- package/dist/components/Panel/Panel.vanilla.js.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.cjs +5 -11
- package/dist/components/Paragraph/Paragraph.vanilla.cjs.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.js +5 -11
- package/dist/components/Paragraph/Paragraph.vanilla.js.map +1 -1
- package/dist/components/RowLink/RowLink.vanilla.cjs.map +1 -1
- package/dist/components/RowLink/RowLink.vanilla.js.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.vanilla.cjs +3 -14
- package/dist/components/SegmentedControl/SegmentedControl.vanilla.cjs.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.vanilla.js +3 -14
- package/dist/components/SegmentedControl/SegmentedControl.vanilla.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.cjs +2 -10
- package/dist/components/Skeleton/Skeleton.vanilla.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.js +2 -10
- package/dist/components/Skeleton/Skeleton.vanilla.js.map +1 -1
- package/dist/components/Spinner/Spinner.vanilla.cjs +3 -6
- package/dist/components/Spinner/Spinner.vanilla.cjs.map +1 -1
- package/dist/components/Spinner/Spinner.vanilla.js +3 -6
- package/dist/components/Spinner/Spinner.vanilla.js.map +1 -1
- package/dist/components/SplitLayout/SplitLayout.vanilla.cjs +3 -10
- package/dist/components/SplitLayout/SplitLayout.vanilla.cjs.map +1 -1
- package/dist/components/SplitLayout/SplitLayout.vanilla.js +3 -10
- package/dist/components/SplitLayout/SplitLayout.vanilla.js.map +1 -1
- package/dist/components/Table/Table.vanilla.cjs +8 -4
- package/dist/components/Table/Table.vanilla.cjs.map +1 -1
- package/dist/components/Table/Table.vanilla.js +8 -4
- package/dist/components/Table/Table.vanilla.js.map +1 -1
- package/dist/components/Text/Text.vanilla.cjs +5 -11
- package/dist/components/Text/Text.vanilla.cjs.map +1 -1
- package/dist/components/Text/Text.vanilla.js +5 -11
- package/dist/components/Text/Text.vanilla.js.map +1 -1
- package/dist/components/TextField/TextField.vanilla.cjs.map +1 -1
- package/dist/components/TextField/TextField.vanilla.js.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.cjs +2 -10
- package/dist/components/Textarea/Textarea.vanilla.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.js +2 -10
- package/dist/components/Textarea/Textarea.vanilla.js.map +1 -1
- package/dist/components/Toast/Toast.vanilla.cjs +4 -15
- package/dist/components/Toast/Toast.vanilla.cjs.map +1 -1
- package/dist/components/Toast/Toast.vanilla.js +4 -15
- package/dist/components/Toast/Toast.vanilla.js.map +1 -1
- package/dist/faency.css +118 -2
- package/dist/index.cjs +9 -0
- package/dist/index.d.cts +36800 -0
- package/dist/index.d.ts +248 -94
- package/dist/index.js +3 -1
- package/dist/styles/recipeVariants.cjs +15 -0
- package/dist/styles/recipeVariants.cjs.map +1 -0
- package/dist/styles/recipeVariants.js +15 -0
- package/dist/styles/recipeVariants.js.map +1 -0
- package/dist/styles/themeContext.cjs.map +1 -1
- package/dist/styles/themeContext.js.map +1 -1
- package/package.json +17 -7
package/dist/index.js
CHANGED
|
@@ -42,6 +42,7 @@ import { FlexVanilla } from "./components/Flex/Flex.vanilla.js";
|
|
|
42
42
|
import { Grid } from "./components/Grid/Grid.js";
|
|
43
43
|
import { GridVanilla } from "./components/Grid/Grid.vanilla.js";
|
|
44
44
|
import { H1, H2, H3, H4, H5, H6 } from "./components/Heading/Heading.js";
|
|
45
|
+
import { H1Vanilla, H2Vanilla, H3Vanilla, H4Vanilla, H5Vanilla, H6Vanilla } from "./components/Heading/Heading.vanilla.js";
|
|
45
46
|
import { IconButton } from "./components/IconButton/IconButton.js";
|
|
46
47
|
import { IconButtonVanilla } from "./components/IconButton/IconButton.vanilla.js";
|
|
47
48
|
import { Image } from "./components/Image/Image.js";
|
|
@@ -81,6 +82,7 @@ import { CaptionVanilla, TableVanilla, TbodyVanilla, TdVanilla, TfootVanilla, Th
|
|
|
81
82
|
import { sortRows, useTableSort } from "./components/Table/useTableSort.js";
|
|
82
83
|
import { TabsContainer, TabsContent, TabsList, TabsTrigger } from "./components/Tabs/Tabs.js";
|
|
83
84
|
import { Text } from "./components/Text/Text.js";
|
|
85
|
+
import { TextVanilla } from "./components/Text/Text.vanilla.js";
|
|
84
86
|
import { Textarea } from "./components/Textarea/Textarea.js";
|
|
85
87
|
import { TextareaVanilla } from "./components/Textarea/Textarea.vanilla.js";
|
|
86
88
|
import { TextField } from "./components/TextField/TextField.js";
|
|
@@ -95,4 +97,4 @@ import { darkTheme as darkTheme$1, lightTheme as lightTheme$1, themes } from "./
|
|
|
95
97
|
import { tokens } from "./styles/tokens.css.js";
|
|
96
98
|
import { AspectRatio } from "@radix-ui/react-aspect-ratio";
|
|
97
99
|
import { Portal } from "@radix-ui/react-portal";
|
|
98
|
-
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, H2, H3, H4, H5, H6, 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, 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 };
|
|
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 };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// styles/recipeVariants.ts
|
|
2
|
+
var withVariantKeys = (recipe) => (options) => {
|
|
3
|
+
let normalized;
|
|
4
|
+
for (const key in options) {
|
|
5
|
+
const value = options[key];
|
|
6
|
+
if (typeof value === "number") {
|
|
7
|
+
if (!normalized) normalized = { ...options };
|
|
8
|
+
normalized[key] = String(value);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return recipe(normalized ?? options);
|
|
12
|
+
};
|
|
13
|
+
exports.withVariantKeys = withVariantKeys;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=recipeVariants.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipeVariants.cjs","names":[],"sources":["../../styles/recipeVariants.ts"],"sourcesContent":["type RecipeFn = (options?: any) => string;\n\ntype NumericKey<T> = T extends `${infer N extends number}` ? N : never;\n\nexport type RecipeVariantProps<R extends RecipeFn> = {\n [K in keyof NonNullable<Parameters<R>[0]>]:\n NonNullable<Parameters<R>[0]>[K] | NumericKey<NonNullable<Parameters<R>[0]>[K]>;\n};\n\n// Compound variants match with ===, so 2 must become '2'.\nexport const withVariantKeys =\n <R extends RecipeFn>(recipe: R) =>\n (options?: RecipeVariantProps<R>): string => {\n let normalized: Record<string, unknown> | undefined;\n\n for (const key in options) {\n const value = options[key];\n if (typeof value === 'number') {\n if (!normalized) normalized = { ...options };\n normalized[key] = String(value);\n }\n }\n\n return recipe(normalized ?? options);\n };\n"],"mappings":";AAUA,IAAa,mBACU,YACpB,YAA4C;CAC3C,IAAI;CAEJ,KAAK,MAAM,OAAO,SAAS;EACzB,MAAM,QAAQ,QAAQ;EACtB,IAAI,OAAO,UAAU,UAAU;GAC7B,IAAI,CAAC,YAAY,aAAa,EAAE,GAAG,QAAQ;GAC3C,WAAW,OAAO,OAAO,KAAK;EAChC;CACF;CAEA,OAAO,OAAO,cAAc,OAAO;AACrC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// styles/recipeVariants.ts
|
|
2
|
+
var withVariantKeys = (recipe) => (options) => {
|
|
3
|
+
let normalized;
|
|
4
|
+
for (const key in options) {
|
|
5
|
+
const value = options[key];
|
|
6
|
+
if (typeof value === "number") {
|
|
7
|
+
if (!normalized) normalized = { ...options };
|
|
8
|
+
normalized[key] = String(value);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return recipe(normalized ?? options);
|
|
12
|
+
};
|
|
13
|
+
export { withVariantKeys };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=recipeVariants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipeVariants.js","names":[],"sources":["../../styles/recipeVariants.ts"],"sourcesContent":["type RecipeFn = (options?: any) => string;\n\ntype NumericKey<T> = T extends `${infer N extends number}` ? N : never;\n\nexport type RecipeVariantProps<R extends RecipeFn> = {\n [K in keyof NonNullable<Parameters<R>[0]>]:\n NonNullable<Parameters<R>[0]>[K] | NumericKey<NonNullable<Parameters<R>[0]>[K]>;\n};\n\n// Compound variants match with ===, so 2 must become '2'.\nexport const withVariantKeys =\n <R extends RecipeFn>(recipe: R) =>\n (options?: RecipeVariantProps<R>): string => {\n let normalized: Record<string, unknown> | undefined;\n\n for (const key in options) {\n const value = options[key];\n if (typeof value === 'number') {\n if (!normalized) normalized = { ...options };\n normalized[key] = String(value);\n }\n }\n\n return recipe(normalized ?? options);\n };\n"],"mappings":";AAUA,IAAa,mBACU,YACpB,YAA4C;CAC3C,IAAI;CAEJ,KAAK,MAAM,OAAO,SAAS;EACzB,MAAM,QAAQ,QAAQ;EACtB,IAAI,OAAO,UAAU,UAAU;GAC7B,IAAI,CAAC,YAAY,aAAa,EAAE,GAAG,QAAQ;GAC3C,WAAW,OAAO,OAAO,KAAK;EAChC;CACF;CAEA,OAAO,OAAO,cAAc,OAAO;AACrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themeContext.cjs","names":["createContext","useState","darkColors","lightColors","themes","useContext"],"sources":["../../styles/themeContext.tsx"],"sourcesContent":["import React, { createContext, useContext, useEffect, useState } from 'react';\n\nimport { darkColors, lightColors } from '
|
|
1
|
+
{"version":3,"file":"themeContext.cjs","names":["createContext","useState","darkColors","lightColors","themes","useContext"],"sources":["../../styles/themeContext.tsx"],"sourcesContent":["import React, { createContext, useContext, useEffect, useState } from 'react';\n\nimport { darkColors, lightColors } from '@/colors';\nimport { useIsomorphicLayoutEffect } from '@/utils/useIsomorphicLayoutEffect';\n\nimport { PrimaryColor, themes } from './themes.css';\n\nexport type ThemeMode = 'light' | 'dark' | 'system';\nexport type { PrimaryColor };\n\ninterface ThemeContextValue {\n mode: ThemeMode;\n resolvedTheme: 'light' | 'dark';\n primaryColor: PrimaryColor;\n colors: typeof lightColors | typeof darkColors;\n setMode: (mode: ThemeMode) => void;\n setPrimaryColor: (color: PrimaryColor) => void;\n}\n\nconst ThemeContext = createContext<ThemeContextValue | undefined>(undefined);\n\ninterface VanillaExtractThemeProviderProps {\n children: React.ReactNode;\n defaultTheme?: ThemeMode;\n primaryColor?: PrimaryColor;\n forcedTheme?: 'light' | 'dark';\n}\n\nexport function VanillaExtractThemeProvider({\n children,\n defaultTheme = 'system',\n primaryColor = 'blue',\n forcedTheme,\n}: VanillaExtractThemeProviderProps) {\n const [mode, setMode] = useState<ThemeMode>(defaultTheme);\n const [appliedPrimaryColor, setPrimaryColor] = useState<PrimaryColor>(primaryColor);\n const [systemTheme, setSystemTheme] = useState<'light' | 'dark'>(() => {\n if (forcedTheme) {\n return forcedTheme;\n }\n if (typeof window !== 'undefined') {\n return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';\n }\n return 'light';\n });\n\n useEffect(() => {\n setPrimaryColor(primaryColor);\n }, [primaryColor]);\n\n useEffect(() => {\n if (forcedTheme) {\n setSystemTheme(forcedTheme);\n return;\n }\n\n const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');\n setSystemTheme(mediaQuery.matches ? 'dark' : 'light');\n\n const handler = (e: MediaQueryListEvent) => {\n setSystemTheme(e.matches ? 'dark' : 'light');\n };\n\n mediaQuery.addEventListener('change', handler);\n return () => mediaQuery.removeEventListener('change', handler);\n }, [forcedTheme]);\n\n const resolvedTheme: 'light' | 'dark' = forcedTheme || (mode === 'system' ? systemTheme : mode);\n\n const baseColors = resolvedTheme === 'dark' ? darkColors : lightColors;\n\n const semanticColors =\n resolvedTheme === 'dark'\n ? {\n primary: darkColors[`${appliedPrimaryColor}9`],\n contentBg: darkColors['00dp'],\n hiContrast: 'white',\n loContrast: darkColors.deepBlue2,\n focusOutline: 'hsl(216, 100%, 64%)',\n divider: 'hsl(209, 29%, 19%)',\n background: '#0a0a0a',\n foreground: '#ffffff',\n muted: '#1a1a1a',\n mutedForeground: '#b4b4b4',\n card: '#1a1a1a',\n cardForeground: '#ffffff',\n popover: '#1a1a1a',\n popoverForeground: '#ffffff',\n border: '#3a3a3a',\n input: '#3a3a3a',\n accent: '#3b82f6',\n accentForeground: '#ffffff',\n destructive: '#dc2626',\n destructiveForeground: '#ffffff',\n ring: '#60a5fa',\n }\n : {\n primary: lightColors[`${appliedPrimaryColor}9`],\n contentBg: lightColors['00dp'],\n hiContrast: lightColors.deepBlue11,\n loContrast: 'white',\n focusOutline: 'hsl(216, 100%, 64%)',\n divider: 'hsl(207, 10%, 82%)',\n background: '#fcfcfc',\n foreground: '#1a1a1a',\n muted: '#f4f4f4',\n mutedForeground: '#646464',\n card: '#ffffff',\n cardForeground: '#1a1a1a',\n popover: '#ffffff',\n popoverForeground: '#1a1a1a',\n border: '#e3e3e3',\n input: '#e3e3e3',\n accent: '#60a5fa',\n accentForeground: '#ffffff',\n destructive: '#dc2626',\n destructiveForeground: '#ffffff',\n ring: '#3b82f6',\n };\n\n const colors = {\n ...baseColors,\n ...semanticColors,\n };\n\n // Apply the theme class synchronously before paint\n useIsomorphicLayoutEffect(() => {\n const themeClass = themes[resolvedTheme][appliedPrimaryColor];\n\n Object.values(themes.light).forEach((cls) => document.body.classList.remove(cls));\n Object.values(themes.dark).forEach((cls) => document.body.classList.remove(cls));\n\n document.body.classList.add(themeClass);\n\n return () => {\n document.body.classList.remove(themeClass);\n };\n }, [resolvedTheme, appliedPrimaryColor]);\n\n const contextValue: ThemeContextValue = {\n mode,\n resolvedTheme,\n primaryColor: appliedPrimaryColor,\n colors,\n setMode,\n setPrimaryColor,\n };\n\n return <ThemeContext.Provider value={contextValue}>{children}</ThemeContext.Provider>;\n}\n\nexport function useVanillaExtractTheme() {\n const context = useContext(ThemeContext);\n if (context === undefined) {\n throw new Error('useVanillaExtractTheme must be used within a VanillaExtractThemeProvider');\n }\n return context;\n}\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themeContext.js","names":[],"sources":["../../styles/themeContext.tsx"],"sourcesContent":["import React, { createContext, useContext, useEffect, useState } from 'react';\n\nimport { darkColors, lightColors } from '
|
|
1
|
+
{"version":3,"file":"themeContext.js","names":[],"sources":["../../styles/themeContext.tsx"],"sourcesContent":["import React, { createContext, useContext, useEffect, useState } from 'react';\n\nimport { darkColors, lightColors } from '@/colors';\nimport { useIsomorphicLayoutEffect } from '@/utils/useIsomorphicLayoutEffect';\n\nimport { PrimaryColor, themes } from './themes.css';\n\nexport type ThemeMode = 'light' | 'dark' | 'system';\nexport type { PrimaryColor };\n\ninterface ThemeContextValue {\n mode: ThemeMode;\n resolvedTheme: 'light' | 'dark';\n primaryColor: PrimaryColor;\n colors: typeof lightColors | typeof darkColors;\n setMode: (mode: ThemeMode) => void;\n setPrimaryColor: (color: PrimaryColor) => void;\n}\n\nconst ThemeContext = createContext<ThemeContextValue | undefined>(undefined);\n\ninterface VanillaExtractThemeProviderProps {\n children: React.ReactNode;\n defaultTheme?: ThemeMode;\n primaryColor?: PrimaryColor;\n forcedTheme?: 'light' | 'dark';\n}\n\nexport function VanillaExtractThemeProvider({\n children,\n defaultTheme = 'system',\n primaryColor = 'blue',\n forcedTheme,\n}: VanillaExtractThemeProviderProps) {\n const [mode, setMode] = useState<ThemeMode>(defaultTheme);\n const [appliedPrimaryColor, setPrimaryColor] = useState<PrimaryColor>(primaryColor);\n const [systemTheme, setSystemTheme] = useState<'light' | 'dark'>(() => {\n if (forcedTheme) {\n return forcedTheme;\n }\n if (typeof window !== 'undefined') {\n return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';\n }\n return 'light';\n });\n\n useEffect(() => {\n setPrimaryColor(primaryColor);\n }, [primaryColor]);\n\n useEffect(() => {\n if (forcedTheme) {\n setSystemTheme(forcedTheme);\n return;\n }\n\n const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');\n setSystemTheme(mediaQuery.matches ? 'dark' : 'light');\n\n const handler = (e: MediaQueryListEvent) => {\n setSystemTheme(e.matches ? 'dark' : 'light');\n };\n\n mediaQuery.addEventListener('change', handler);\n return () => mediaQuery.removeEventListener('change', handler);\n }, [forcedTheme]);\n\n const resolvedTheme: 'light' | 'dark' = forcedTheme || (mode === 'system' ? systemTheme : mode);\n\n const baseColors = resolvedTheme === 'dark' ? darkColors : lightColors;\n\n const semanticColors =\n resolvedTheme === 'dark'\n ? {\n primary: darkColors[`${appliedPrimaryColor}9`],\n contentBg: darkColors['00dp'],\n hiContrast: 'white',\n loContrast: darkColors.deepBlue2,\n focusOutline: 'hsl(216, 100%, 64%)',\n divider: 'hsl(209, 29%, 19%)',\n background: '#0a0a0a',\n foreground: '#ffffff',\n muted: '#1a1a1a',\n mutedForeground: '#b4b4b4',\n card: '#1a1a1a',\n cardForeground: '#ffffff',\n popover: '#1a1a1a',\n popoverForeground: '#ffffff',\n border: '#3a3a3a',\n input: '#3a3a3a',\n accent: '#3b82f6',\n accentForeground: '#ffffff',\n destructive: '#dc2626',\n destructiveForeground: '#ffffff',\n ring: '#60a5fa',\n }\n : {\n primary: lightColors[`${appliedPrimaryColor}9`],\n contentBg: lightColors['00dp'],\n hiContrast: lightColors.deepBlue11,\n loContrast: 'white',\n focusOutline: 'hsl(216, 100%, 64%)',\n divider: 'hsl(207, 10%, 82%)',\n background: '#fcfcfc',\n foreground: '#1a1a1a',\n muted: '#f4f4f4',\n mutedForeground: '#646464',\n card: '#ffffff',\n cardForeground: '#1a1a1a',\n popover: '#ffffff',\n popoverForeground: '#1a1a1a',\n border: '#e3e3e3',\n input: '#e3e3e3',\n accent: '#60a5fa',\n accentForeground: '#ffffff',\n destructive: '#dc2626',\n destructiveForeground: '#ffffff',\n ring: '#3b82f6',\n };\n\n const colors = {\n ...baseColors,\n ...semanticColors,\n };\n\n // Apply the theme class synchronously before paint\n useIsomorphicLayoutEffect(() => {\n const themeClass = themes[resolvedTheme][appliedPrimaryColor];\n\n Object.values(themes.light).forEach((cls) => document.body.classList.remove(cls));\n Object.values(themes.dark).forEach((cls) => document.body.classList.remove(cls));\n\n document.body.classList.add(themeClass);\n\n return () => {\n document.body.classList.remove(themeClass);\n };\n }, [resolvedTheme, appliedPrimaryColor]);\n\n const contextValue: ThemeContextValue = {\n mode,\n resolvedTheme,\n primaryColor: appliedPrimaryColor,\n colors,\n setMode,\n setPrimaryColor,\n };\n\n return <ThemeContext.Provider value={contextValue}>{children}</ThemeContext.Provider>;\n}\n\nexport function useVanillaExtractTheme() {\n const context = useContext(ThemeContext);\n if (context === undefined) {\n throw new Error('useVanillaExtractTheme must be used within a VanillaExtractThemeProvider');\n }\n return context;\n}\n"],"mappings":";;;;;;AAmBA,IAAM,eAAe,cAA6C,KAAA,CAAS;AAS3E,SAAgB,4BAA4B,EAC1C,UACA,eAAe,UACf,eAAe,QACf,eACmC;CACnC,MAAM,CAAC,MAAM,WAAW,SAAoB,YAAY;CACxD,MAAM,CAAC,qBAAqB,mBAAmB,SAAuB,YAAY;CAClF,MAAM,CAAC,aAAa,kBAAkB,eAAiC;EACrE,IAAI,aACF,OAAO;EAET,IAAI,OAAO,WAAW,aACpB,OAAO,OAAO,WAAW,8BAA8B,CAAC,CAAC,UAAU,SAAS;EAE9E,OAAO;CACT,CAAC;CAED,gBAAgB;EACd,gBAAgB,YAAY;CAC9B,GAAG,CAAC,YAAY,CAAC;CAEjB,gBAAgB;EACd,IAAI,aAAa;GACf,eAAe,WAAW;GAC1B;EACF;EAEA,MAAM,aAAa,OAAO,WAAW,8BAA8B;EACnE,eAAe,WAAW,UAAU,SAAS,OAAO;EAEpD,MAAM,WAAW,MAA2B;GAC1C,eAAe,EAAE,UAAU,SAAS,OAAO;EAC7C;EAEA,WAAW,iBAAiB,UAAU,OAAO;EAC7C,aAAa,WAAW,oBAAoB,UAAU,OAAO;CAC/D,GAAG,CAAC,WAAW,CAAC;CAEhB,MAAM,gBAAkC,gBAAgB,SAAS,WAAW,cAAc;CAE1F,MAAM,aAAa,kBAAkB,SAAS,aAAa;CAE3D,MAAM,iBACJ,kBAAkB,SACd;EACE,SAAS,WAAW,GAAG,oBAAoB;EAC3C,WAAW,WAAW;EACtB,YAAY;EACZ,YAAY,WAAW;EACvB,cAAc;EACd,SAAS;EACT,YAAY;EACZ,YAAY;EACZ,OAAO;EACP,iBAAiB;EACjB,MAAM;EACN,gBAAgB;EAChB,SAAS;EACT,mBAAmB;EACnB,QAAQ;EACR,OAAO;EACP,QAAQ;EACR,kBAAkB;EAClB,aAAa;EACb,uBAAuB;EACvB,MAAM;CACR,IACA;EACE,SAAS,YAAY,GAAG,oBAAoB;EAC5C,WAAW,YAAY;EACvB,YAAY,YAAY;EACxB,YAAY;EACZ,cAAc;EACd,SAAS;EACT,YAAY;EACZ,YAAY;EACZ,OAAO;EACP,iBAAiB;EACjB,MAAM;EACN,gBAAgB;EAChB,SAAS;EACT,mBAAmB;EACnB,QAAQ;EACR,OAAO;EACP,QAAQ;EACR,kBAAkB;EAClB,aAAa;EACb,uBAAuB;EACvB,MAAM;CACR;CAEN,MAAM,SAAS;EACb,GAAG;EACH,GAAG;CACL;CAGA,gCAAgC;EAC9B,MAAM,aAAa,OAAO,cAAc,CAAC;EAEzC,OAAO,OAAO,OAAO,KAAK,CAAC,CAAC,SAAS,QAAQ,SAAS,KAAK,UAAU,OAAO,GAAG,CAAC;EAChF,OAAO,OAAO,OAAO,IAAI,CAAC,CAAC,SAAS,QAAQ,SAAS,KAAK,UAAU,OAAO,GAAG,CAAC;EAE/E,SAAS,KAAK,UAAU,IAAI,UAAU;EAEtC,aAAa;GACX,SAAS,KAAK,UAAU,OAAO,UAAU;EAC3C;CACF,GAAG,CAAC,eAAe,mBAAmB,CAAC;CAEvC,MAAM,eAAkC;EACtC;EACA;EACA,cAAc;EACd;EACA;EACA;CACF;CAEA,OAAO,oBAAC,aAAa,UAAd;EAAuB,OAAO;EAAe;CAAgC,CAAA;AACtF;AAEA,SAAgB,yBAAyB;CACvC,MAAM,UAAU,WAAW,YAAY;CACvC,IAAI,YAAY,KAAA,GACd,MAAM,IAAI,MAAM,0EAA0E;CAE5F,OAAO;AACT"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@traefik-labs/faency",
|
|
3
3
|
"description": "Traefik Labs design system",
|
|
4
|
-
"version": "13.7.
|
|
4
|
+
"version": "13.7.2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"traefiklabs",
|
|
@@ -11,14 +11,23 @@
|
|
|
11
11
|
"radix-ui",
|
|
12
12
|
"a11y"
|
|
13
13
|
],
|
|
14
|
-
"main": "dist/index.
|
|
14
|
+
"main": "dist/index.cjs",
|
|
15
|
+
"module": "dist/index.js",
|
|
15
16
|
"type": "module",
|
|
16
17
|
"modulesDir": "dist",
|
|
17
18
|
"exports": {
|
|
18
19
|
".": {
|
|
19
|
-
"import":
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
"import": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"default": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"require": {
|
|
25
|
+
"types": "./dist/index.d.cts",
|
|
26
|
+
"default": "./dist/index.cjs"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"./style.css": "./dist/faency.css",
|
|
30
|
+
"./package.json": "./package.json"
|
|
22
31
|
},
|
|
23
32
|
"files": [
|
|
24
33
|
"dist"
|
|
@@ -36,8 +45,9 @@
|
|
|
36
45
|
"scripts": {
|
|
37
46
|
"prettier": "prettier --write .",
|
|
38
47
|
"build": "vite build",
|
|
39
|
-
"lint": "eslint \"./components/**/*.{ts,tsx}\"",
|
|
40
|
-
"lint:fix": "eslint --fix \"./components/**/*.{ts,tsx}\"",
|
|
48
|
+
"lint": "eslint \"./components/**/*.{ts,tsx}\" \"./styles/**/*.{ts,tsx}\"",
|
|
49
|
+
"lint:fix": "eslint --fix \"./components/**/*.{ts,tsx}\" \"./styles/**/*.{ts,tsx}\"",
|
|
50
|
+
"typecheck": "tsc --noEmit",
|
|
41
51
|
"storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider storybook dev -p 6006 -h localhost",
|
|
42
52
|
"storybook-docs": "storybook dev --docs",
|
|
43
53
|
"build-storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider storybook build",
|