@traefik-labs/faency 13.7.0 → 13.7.1
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 +11 -3
- package/dist/components/AriaTable/AriaTable.vanilla.css.cjs.map +1 -1
- package/dist/components/AriaTable/AriaTable.vanilla.css.js.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.css.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.css.js.map +1 -1
- package/dist/components/Badge/Badge.vanilla.css.cjs.map +1 -1
- package/dist/components/Badge/Badge.vanilla.css.js.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.css.cjs.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.css.js.map +1 -1
- package/dist/components/Box/Box.vanilla.css.cjs.map +1 -1
- package/dist/components/Box/Box.vanilla.css.js.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.css.cjs.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.css.js.map +1 -1
- package/dist/components/Button/Button.vanilla.css.cjs.map +1 -1
- package/dist/components/Button/Button.vanilla.css.js.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.cjs.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.js.map +1 -1
- package/dist/components/Card/Card.vanilla.css.cjs.map +1 -1
- package/dist/components/Card/Card.vanilla.css.js.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.vanilla.css.cjs.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.vanilla.css.js.map +1 -1
- package/dist/components/Combobox/Combobox.vanilla.css.cjs.map +1 -1
- package/dist/components/Combobox/Combobox.vanilla.css.js.map +1 -1
- package/dist/components/Container/Container.vanilla.css.cjs.map +1 -1
- package/dist/components/Container/Container.vanilla.css.js.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.css.cjs.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.css.js.map +1 -1
- package/dist/components/Field/Field.vanilla.css.cjs.map +1 -1
- package/dist/components/Field/Field.vanilla.css.js.map +1 -1
- package/dist/components/Flex/Flex.vanilla.css.cjs.map +1 -1
- package/dist/components/Flex/Flex.vanilla.css.js.map +1 -1
- package/dist/components/Grid/Grid.vanilla.css.cjs.map +1 -1
- package/dist/components/Grid/Grid.vanilla.css.js.map +1 -1
- package/dist/components/IconButton/IconButton.vanilla.css.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.vanilla.css.js.map +1 -1
- package/dist/components/Image/Image.vanilla.css.cjs.map +1 -1
- package/dist/components/Image/Image.vanilla.css.js.map +1 -1
- package/dist/components/Input/Input.vanilla.css.cjs.map +1 -1
- package/dist/components/Input/Input.vanilla.css.js.map +1 -1
- package/dist/components/Label/Label.vanilla.css.cjs.map +1 -1
- package/dist/components/Label/Label.vanilla.css.js.map +1 -1
- package/dist/components/List/List.vanilla.css.cjs.map +1 -1
- package/dist/components/List/List.vanilla.css.js.map +1 -1
- package/dist/components/Meter/Meter.vanilla.css.cjs.map +1 -1
- package/dist/components/Meter/Meter.vanilla.css.js.map +1 -1
- package/dist/components/Panel/Panel.vanilla.css.cjs.map +1 -1
- package/dist/components/Panel/Panel.vanilla.css.js.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.css.cjs.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.css.js.map +1 -1
- package/dist/components/RowLink/RowLink.vanilla.css.cjs.map +1 -1
- package/dist/components/RowLink/RowLink.vanilla.css.js.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.vanilla.css.cjs.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.vanilla.css.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.css.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.css.js.map +1 -1
- package/dist/components/Spinner/Spinner.vanilla.css.cjs.map +1 -1
- package/dist/components/Spinner/Spinner.vanilla.css.js.map +1 -1
- package/dist/components/SplitLayout/SplitLayout.vanilla.css.cjs.map +1 -1
- package/dist/components/SplitLayout/SplitLayout.vanilla.css.js.map +1 -1
- package/dist/components/Table/Table.vanilla.css.cjs.map +1 -1
- package/dist/components/Table/Table.vanilla.css.js.map +1 -1
- package/dist/components/Text/Text.vanilla.css.cjs.map +1 -1
- package/dist/components/Text/Text.vanilla.css.js.map +1 -1
- package/dist/components/TextField/TextField.vanilla.css.cjs.map +1 -1
- package/dist/components/TextField/TextField.vanilla.css.js.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.css.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.css.js.map +1 -1
- package/dist/components/Toast/Toast.vanilla.css.cjs.map +1 -1
- package/dist/components/Toast/Toast.vanilla.css.js.map +1 -1
- package/dist/styles/themes.css.cjs.map +1 -1
- package/dist/styles/themes.css.js.map +1 -1
- package/dist/styles/tokens.css.cjs.map +1 -1
- package/dist/styles/tokens.css.js.map +1 -1
- package/dist/utils/warnOnce.cjs +8 -1
- package/dist/utils/warnOnce.cjs.map +1 -1
- package/dist/utils/warnOnce.js +8 -1
- package/dist/utils/warnOnce.js.map +1 -1
- package/package.json +16 -16
package/README.md
CHANGED
|
@@ -76,10 +76,16 @@ const App = () => (
|
|
|
76
76
|
|
|
77
77
|
## How to contribute
|
|
78
78
|
|
|
79
|
-
- Make sure you have Node
|
|
79
|
+
- Make sure you have the Node version in `.nvmrc` (`nvm use`), or if you prefer, you can work in a Docker container:
|
|
80
80
|
|
|
81
81
|
```sh
|
|
82
|
-
docker run -it -v $(pwd):/usr/local/src/ -w /usr/local/src/ -p
|
|
82
|
+
docker run -it --rm -v $(pwd):/usr/local/src/ -v faency-node-modules:/usr/local/src/node_modules -w /usr/local/src/ -p 6006:6006 -p 24678:24678 node:$(sed 's/^v//' .nvmrc) bash
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
- Enable Corepack, so `yarn` runs the Yarn version set in `package.json`
|
|
86
|
+
|
|
87
|
+
```sh
|
|
88
|
+
corepack enable
|
|
83
89
|
```
|
|
84
90
|
|
|
85
91
|
- Install the project dependencies
|
|
@@ -102,7 +108,9 @@ yarn patch-package
|
|
|
102
108
|
yarn storybook
|
|
103
109
|
```
|
|
104
110
|
|
|
105
|
-
|
|
111
|
+
Storybook opens in your browser and hot reloads whenever the code changes.
|
|
112
|
+
|
|
113
|
+
In the Docker container, run `yarn storybook --host 0.0.0.0` instead. Nothing opens by itself there, so open http://localhost:6006 on your machine.
|
|
106
114
|
|
|
107
115
|
### Writing stories
|
|
108
116
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AriaTable.vanilla.css.cjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"AriaTable.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AriaTable.vanilla.css.js","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"AriaTable.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.vanilla.css.cjs","names":[
|
|
1
|
+
{"version":3,"file":"Avatar.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.vanilla.css.js","names":[
|
|
1
|
+
{"version":3,"file":"Avatar.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.vanilla.css.cjs","names":[
|
|
1
|
+
{"version":3,"file":"Badge.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.vanilla.css.js","names":[
|
|
1
|
+
{"version":3,"file":"Badge.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blockquote.vanilla.css.cjs","names":[
|
|
1
|
+
{"version":3,"file":"Blockquote.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blockquote.vanilla.css.js","names":[
|
|
1
|
+
{"version":3,"file":"Blockquote.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.vanilla.css.cjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"Box.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.vanilla.css.js","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"Box.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bubble.vanilla.css.cjs","names":[
|
|
1
|
+
{"version":3,"file":"Bubble.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bubble.vanilla.css.js","names":[
|
|
1
|
+
{"version":3,"file":"Bubble.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.vanilla.css.cjs","names":[
|
|
1
|
+
{"version":3,"file":"Button.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.vanilla.css.js","names":[
|
|
1
|
+
{"version":3,"file":"Button.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonSwitch.vanilla.css.cjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"ButtonSwitch.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonSwitch.vanilla.css.js","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"ButtonSwitch.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.vanilla.css.cjs","names":[
|
|
1
|
+
{"version":3,"file":"Card.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.vanilla.css.js","names":[
|
|
1
|
+
{"version":3,"file":"Card.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeBlock.vanilla.css.cjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"CodeBlock.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeBlock.vanilla.css.js","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"CodeBlock.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Combobox.vanilla.css.cjs","names":[
|
|
1
|
+
{"version":3,"file":"Combobox.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Combobox.vanilla.css.js","names":[
|
|
1
|
+
{"version":3,"file":"Combobox.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.vanilla.css.cjs","names":[
|
|
1
|
+
{"version":3,"file":"Container.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.vanilla.css.js","names":[
|
|
1
|
+
{"version":3,"file":"Container.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Elevation.vanilla.css.cjs","names":[
|
|
1
|
+
{"version":3,"file":"Elevation.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Elevation.vanilla.css.js","names":[
|
|
1
|
+
{"version":3,"file":"Elevation.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.vanilla.css.cjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"Field.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.vanilla.css.js","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"Field.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Flex.vanilla.css.cjs","names":[
|
|
1
|
+
{"version":3,"file":"Flex.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Flex.vanilla.css.js","names":[
|
|
1
|
+
{"version":3,"file":"Flex.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.vanilla.css.cjs","names":[
|
|
1
|
+
{"version":3,"file":"Grid.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.vanilla.css.js","names":[
|
|
1
|
+
{"version":3,"file":"Grid.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.vanilla.css.cjs","names":[
|
|
1
|
+
{"version":3,"file":"IconButton.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.vanilla.css.js","names":[
|
|
1
|
+
{"version":3,"file":"IconButton.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.vanilla.css.cjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"Image.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.vanilla.css.js","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"Image.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.vanilla.css.cjs","names":["_7a468"],"sources":["../../../components/Input/Input.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { breakpoints } from '../../styles/breakpoints.css';\nimport { tokens } from '../../styles/tokens.css';\n\n// CONSTANTS\nconst FOCUS_SHADOW =\n '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)';\n\nconst SMALL_HEIGHT = tokens.sizes['5'];\nconst MEDIUM_HEIGHT = tokens.sizes['6'];\nconst LARGE_HEIGHT = tokens.sizes['7'];\n\nconst styledInputBase = style({\n // Reset\n appearance: 'none',\n borderWidth: '0',\n boxSizing: 'border-box',\n fontFamily: tokens.fonts.rubik,\n margin: '0',\n outline: 'none',\n padding: '0',\n width: '100%',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n\n // Custom\n position: 'relative',\n backgroundColor: 'transparent',\n borderRadius: 'inherit', // inherit border radius from InputWrapper\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputBorder}`,\n color: tokens.colors.inputText,\n fontVariantNumeric: 'tabular-nums',\n transition: 'box-shadow .1s ease-in-out',\n\n selectors: {\n '&[type=\"number\"]': {\n paddingRight: '0', // remove padding for number native controls\n },\n '&:-webkit-autofill, &:autofill': {\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputBorder}, inset 0 0 0 100px ${tokens.colors.inputBg}`,\n WebkitTextFillColor: tokens.colors.hiContrast,\n },\n '&:-webkit-autofill::first-line, &:autofill::first-line': {\n fontFamily: tokens.fonts.rubik,\n color: tokens.colors.hiContrast,\n },\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputFocusBorder}, ${FOCUS_SHADOW}`,\n },\n '&:-webkit-autofill:focus-visible, &:autofill:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputFocusBorder}, inset 0 0 0 100px ${tokens.colors.inputBg}, ${FOCUS_SHADOW}`,\n },\n '&::placeholder': {\n color: tokens.colors.inputPlaceholder,\n },\n '&:read-only:not(:disabled)': {\n boxShadow: 'none',\n },\n '&:disabled': {\n pointerEvents: 'none',\n color: tokens.colors.inputDisabledText,\n },\n },\n});\n\nexport const styledInputRecipe = recipe({\n base: styledInputBase,\n variants: {\n size: {\n small: {\n height: SMALL_HEIGHT,\n fontSize: tokens.fontSizes['1'],\n paddingLeft: tokens.space['2'],\n paddingRight: tokens.space['2'],\n lineHeight: tokens.sizes['5'],\n selectors: {\n '&:-webkit-autofill::first-line, &:autofill::first-line': {\n fontSize: tokens.fontSizes['1'],\n },\n },\n },\n medium: {\n height: MEDIUM_HEIGHT,\n fontSize: tokens.fontSizes['3'],\n paddingLeft: tokens.space['3'],\n paddingRight: tokens.space['3'],\n lineHeight: tokens.sizes['6'],\n selectors: {\n '&:-webkit-autofill::first-line, &:autofill::first-line': {\n fontSize: tokens.fontSizes['3'],\n },\n },\n },\n large: {\n height: LARGE_HEIGHT,\n fontSize: tokens.fontSizes['3'],\n paddingLeft: tokens.space['3'],\n paddingRight: tokens.space['3'],\n lineHeight: tokens.sizes['7'],\n selectors: {\n '&:-webkit-autofill::first-line, &:autofill::first-line': {\n fontSize: tokens.fontSizes['3'],\n },\n },\n },\n },\n variant: {\n ghost: {\n boxShadow: 'none',\n backgroundColor: 'transparent',\n selectors: {\n '&:disabled': {\n boxShadow: 'none',\n },\n '&:focus-visible': {\n backgroundColor: tokens.colors.loContrast,\n },\n },\n },\n },\n state: {\n invalid: {\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputInvalidBorder}`,\n selectors: {\n '&:-webkit-autofill, &:autofill': {\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputInvalidBorder}, inset 0 0 0 100px ${tokens.colors.inputBg}`,\n },\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputInvalidBorder}, ${FOCUS_SHADOW}`,\n },\n '&:-webkit-autofill:focus-visible, &:autofill:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputInvalidBorder}, inset 0 0 0 100px ${tokens.colors.inputBg}, ${FOCUS_SHADOW}`,\n },\n },\n },\n },\n cursor: {\n default: {\n cursor: 'default',\n '@media': {\n [breakpoints.hover]: {\n selectors: {\n '&:hover:not(:read-only)': {\n cursor: 'text',\n },\n },\n },\n },\n selectors: {\n '&:focus-visible:not(:read-only)': {\n cursor: 'text',\n },\n },\n },\n text: {\n cursor: 'text',\n },\n },\n startAdornment: {\n true: {},\n },\n endAdornment: {\n true: {},\n },\n },\n compoundVariants: [\n {\n variants: {\n variant: 'ghost',\n state: 'invalid',\n },\n style: {\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputInvalidBorder}`,\n },\n },\n // startAdornment compound variants\n {\n variants: {\n startAdornment: true,\n size: 'small',\n },\n style: {\n paddingInlineStart: `calc(${tokens.space['2']} + 15px)`,\n },\n },\n {\n variants: {\n startAdornment: true,\n size: 'medium',\n },\n style: {\n paddingInlineStart: `calc(${tokens.space['3']} + 15px)`,\n },\n },\n {\n variants: {\n startAdornment: true,\n size: 'large',\n },\n style: {\n paddingInlineStart: `calc(${tokens.space['3']} + 15px)`,\n },\n },\n // endAdornment compound variants\n {\n variants: {\n endAdornment: true,\n size: 'small',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['2']} + 15px)`,\n },\n },\n {\n variants: {\n endAdornment: true,\n size: 'medium',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['3']} + 15px)`,\n },\n },\n {\n variants: {\n endAdornment: true,\n size: 'large',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['3']} + 15px)`,\n },\n },\n // endAdornment + invalid compound variants\n {\n variants: {\n endAdornment: true,\n size: 'small',\n state: 'invalid',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['4']} + 30px)`, // size padding + adornment margins + icon size + icon size\n },\n },\n {\n variants: {\n endAdornment: true,\n size: 'medium',\n state: 'invalid',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['6']} + 30px)`,\n },\n },\n {\n variants: {\n endAdornment: true,\n size: 'large',\n state: 'invalid',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['6']} + 30px)`,\n },\n },\n ],\n defaultVariants: {\n size: 'medium',\n cursor: 'default',\n },\n});\n\nconst inputWrapperBase = style({\n // Reset\n outline: 'none',\n lineHeight: 0,\n\n position: 'relative',\n isolation: 'isolate',\n backgroundColor: tokens.colors.inputBg,\n color: tokens.colors.inputPlaceholder,\n\n selectors: {\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: '0',\n pointerEvents: 'none',\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: '0',\n pointerEvents: 'none',\n },\n '&:focus-visible::before': {\n backgroundColor: tokens.colors.inputFocusBg,\n },\n '&:focus-visible::after': {\n backgroundColor: tokens.colors.primary,\n opacity: '0.15',\n },\n },\n\n '@media': {\n [breakpoints.hover]: {\n selectors: {\n '&:hover::before': {\n backgroundColor: tokens.colors.inputHoverBg,\n },\n '&:hover::after': {\n backgroundColor: tokens.colors.primary,\n opacity: '0.05',\n },\n },\n },\n },\n});\n\nexport const inputWrapperRecipe = recipe({\n base: inputWrapperBase,\n variants: {\n disabled: {\n true: {\n opacity: '0.7',\n color: tokens.colors.inputDisabledText,\n '@media': {\n [breakpoints.hover]: {\n selectors: {\n '&:hover::before': {\n backgroundColor: 'inherit',\n },\n '&:hover::after': {\n backgroundColor: 'inherit',\n },\n },\n },\n },\n },\n },\n state: {\n invalid: {\n '@media': {\n [breakpoints.hover]: {\n selectors: {\n '&:hover::after': {\n backgroundColor: tokens.colors.inputInvalidBorder,\n },\n },\n },\n },\n },\n },\n size: {\n small: {\n borderRadius: tokens.radii['2'],\n selectors: {\n '&::before, &::after': {\n borderRadius: tokens.radii['2'],\n },\n },\n },\n medium: {\n borderRadius: tokens.radii['3'],\n selectors: {\n '&::before, &::after': {\n borderRadius: tokens.radii['3'],\n },\n },\n },\n large: {\n borderRadius: tokens.radii['3'],\n selectors: {\n '&::before, &::after': {\n borderRadius: tokens.radii['3'],\n },\n },\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n disabled: false,\n },\n});\n\nconst adornmentWrapperBase = style({\n position: 'absolute',\n top: '0',\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n});\n\nexport const adornmentWrapperRecipe = recipe({\n base: adornmentWrapperBase,\n variants: {\n size: {\n small: {\n marginLeft: `calc(${tokens.space['2']} / 2)`,\n marginRight: `calc(${tokens.space['2']} / 2)`,\n },\n medium: {\n marginLeft: `calc(${tokens.space['3']} / 2)`,\n marginRight: `calc(${tokens.space['3']} / 2)`,\n },\n large: {\n marginLeft: `calc(${tokens.space['3']} / 2)`,\n marginRight: `calc(${tokens.space['3']} / 2)`,\n },\n },\n variant: {\n start: {\n left: '0',\n zIndex: 1,\n pointerEvents: 'none',\n },\n end: {\n right: '0',\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Input.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.vanilla.css.js","names":["_7a468"],"sources":["../../../components/Input/Input.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { breakpoints } from '../../styles/breakpoints.css';\nimport { tokens } from '../../styles/tokens.css';\n\n// CONSTANTS\nconst FOCUS_SHADOW =\n '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)';\n\nconst SMALL_HEIGHT = tokens.sizes['5'];\nconst MEDIUM_HEIGHT = tokens.sizes['6'];\nconst LARGE_HEIGHT = tokens.sizes['7'];\n\nconst styledInputBase = style({\n // Reset\n appearance: 'none',\n borderWidth: '0',\n boxSizing: 'border-box',\n fontFamily: tokens.fonts.rubik,\n margin: '0',\n outline: 'none',\n padding: '0',\n width: '100%',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n\n // Custom\n position: 'relative',\n backgroundColor: 'transparent',\n borderRadius: 'inherit', // inherit border radius from InputWrapper\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputBorder}`,\n color: tokens.colors.inputText,\n fontVariantNumeric: 'tabular-nums',\n transition: 'box-shadow .1s ease-in-out',\n\n selectors: {\n '&[type=\"number\"]': {\n paddingRight: '0', // remove padding for number native controls\n },\n '&:-webkit-autofill, &:autofill': {\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputBorder}, inset 0 0 0 100px ${tokens.colors.inputBg}`,\n WebkitTextFillColor: tokens.colors.hiContrast,\n },\n '&:-webkit-autofill::first-line, &:autofill::first-line': {\n fontFamily: tokens.fonts.rubik,\n color: tokens.colors.hiContrast,\n },\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputFocusBorder}, ${FOCUS_SHADOW}`,\n },\n '&:-webkit-autofill:focus-visible, &:autofill:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputFocusBorder}, inset 0 0 0 100px ${tokens.colors.inputBg}, ${FOCUS_SHADOW}`,\n },\n '&::placeholder': {\n color: tokens.colors.inputPlaceholder,\n },\n '&:read-only:not(:disabled)': {\n boxShadow: 'none',\n },\n '&:disabled': {\n pointerEvents: 'none',\n color: tokens.colors.inputDisabledText,\n },\n },\n});\n\nexport const styledInputRecipe = recipe({\n base: styledInputBase,\n variants: {\n size: {\n small: {\n height: SMALL_HEIGHT,\n fontSize: tokens.fontSizes['1'],\n paddingLeft: tokens.space['2'],\n paddingRight: tokens.space['2'],\n lineHeight: tokens.sizes['5'],\n selectors: {\n '&:-webkit-autofill::first-line, &:autofill::first-line': {\n fontSize: tokens.fontSizes['1'],\n },\n },\n },\n medium: {\n height: MEDIUM_HEIGHT,\n fontSize: tokens.fontSizes['3'],\n paddingLeft: tokens.space['3'],\n paddingRight: tokens.space['3'],\n lineHeight: tokens.sizes['6'],\n selectors: {\n '&:-webkit-autofill::first-line, &:autofill::first-line': {\n fontSize: tokens.fontSizes['3'],\n },\n },\n },\n large: {\n height: LARGE_HEIGHT,\n fontSize: tokens.fontSizes['3'],\n paddingLeft: tokens.space['3'],\n paddingRight: tokens.space['3'],\n lineHeight: tokens.sizes['7'],\n selectors: {\n '&:-webkit-autofill::first-line, &:autofill::first-line': {\n fontSize: tokens.fontSizes['3'],\n },\n },\n },\n },\n variant: {\n ghost: {\n boxShadow: 'none',\n backgroundColor: 'transparent',\n selectors: {\n '&:disabled': {\n boxShadow: 'none',\n },\n '&:focus-visible': {\n backgroundColor: tokens.colors.loContrast,\n },\n },\n },\n },\n state: {\n invalid: {\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputInvalidBorder}`,\n selectors: {\n '&:-webkit-autofill, &:autofill': {\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputInvalidBorder}, inset 0 0 0 100px ${tokens.colors.inputBg}`,\n },\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputInvalidBorder}, ${FOCUS_SHADOW}`,\n },\n '&:-webkit-autofill:focus-visible, &:autofill:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputInvalidBorder}, inset 0 0 0 100px ${tokens.colors.inputBg}, ${FOCUS_SHADOW}`,\n },\n },\n },\n },\n cursor: {\n default: {\n cursor: 'default',\n '@media': {\n [breakpoints.hover]: {\n selectors: {\n '&:hover:not(:read-only)': {\n cursor: 'text',\n },\n },\n },\n },\n selectors: {\n '&:focus-visible:not(:read-only)': {\n cursor: 'text',\n },\n },\n },\n text: {\n cursor: 'text',\n },\n },\n startAdornment: {\n true: {},\n },\n endAdornment: {\n true: {},\n },\n },\n compoundVariants: [\n {\n variants: {\n variant: 'ghost',\n state: 'invalid',\n },\n style: {\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputInvalidBorder}`,\n },\n },\n // startAdornment compound variants\n {\n variants: {\n startAdornment: true,\n size: 'small',\n },\n style: {\n paddingInlineStart: `calc(${tokens.space['2']} + 15px)`,\n },\n },\n {\n variants: {\n startAdornment: true,\n size: 'medium',\n },\n style: {\n paddingInlineStart: `calc(${tokens.space['3']} + 15px)`,\n },\n },\n {\n variants: {\n startAdornment: true,\n size: 'large',\n },\n style: {\n paddingInlineStart: `calc(${tokens.space['3']} + 15px)`,\n },\n },\n // endAdornment compound variants\n {\n variants: {\n endAdornment: true,\n size: 'small',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['2']} + 15px)`,\n },\n },\n {\n variants: {\n endAdornment: true,\n size: 'medium',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['3']} + 15px)`,\n },\n },\n {\n variants: {\n endAdornment: true,\n size: 'large',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['3']} + 15px)`,\n },\n },\n // endAdornment + invalid compound variants\n {\n variants: {\n endAdornment: true,\n size: 'small',\n state: 'invalid',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['4']} + 30px)`, // size padding + adornment margins + icon size + icon size\n },\n },\n {\n variants: {\n endAdornment: true,\n size: 'medium',\n state: 'invalid',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['6']} + 30px)`,\n },\n },\n {\n variants: {\n endAdornment: true,\n size: 'large',\n state: 'invalid',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['6']} + 30px)`,\n },\n },\n ],\n defaultVariants: {\n size: 'medium',\n cursor: 'default',\n },\n});\n\nconst inputWrapperBase = style({\n // Reset\n outline: 'none',\n lineHeight: 0,\n\n position: 'relative',\n isolation: 'isolate',\n backgroundColor: tokens.colors.inputBg,\n color: tokens.colors.inputPlaceholder,\n\n selectors: {\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: '0',\n pointerEvents: 'none',\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: '0',\n pointerEvents: 'none',\n },\n '&:focus-visible::before': {\n backgroundColor: tokens.colors.inputFocusBg,\n },\n '&:focus-visible::after': {\n backgroundColor: tokens.colors.primary,\n opacity: '0.15',\n },\n },\n\n '@media': {\n [breakpoints.hover]: {\n selectors: {\n '&:hover::before': {\n backgroundColor: tokens.colors.inputHoverBg,\n },\n '&:hover::after': {\n backgroundColor: tokens.colors.primary,\n opacity: '0.05',\n },\n },\n },\n },\n});\n\nexport const inputWrapperRecipe = recipe({\n base: inputWrapperBase,\n variants: {\n disabled: {\n true: {\n opacity: '0.7',\n color: tokens.colors.inputDisabledText,\n '@media': {\n [breakpoints.hover]: {\n selectors: {\n '&:hover::before': {\n backgroundColor: 'inherit',\n },\n '&:hover::after': {\n backgroundColor: 'inherit',\n },\n },\n },\n },\n },\n },\n state: {\n invalid: {\n '@media': {\n [breakpoints.hover]: {\n selectors: {\n '&:hover::after': {\n backgroundColor: tokens.colors.inputInvalidBorder,\n },\n },\n },\n },\n },\n },\n size: {\n small: {\n borderRadius: tokens.radii['2'],\n selectors: {\n '&::before, &::after': {\n borderRadius: tokens.radii['2'],\n },\n },\n },\n medium: {\n borderRadius: tokens.radii['3'],\n selectors: {\n '&::before, &::after': {\n borderRadius: tokens.radii['3'],\n },\n },\n },\n large: {\n borderRadius: tokens.radii['3'],\n selectors: {\n '&::before, &::after': {\n borderRadius: tokens.radii['3'],\n },\n },\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n disabled: false,\n },\n});\n\nconst adornmentWrapperBase = style({\n position: 'absolute',\n top: '0',\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n});\n\nexport const adornmentWrapperRecipe = recipe({\n base: adornmentWrapperBase,\n variants: {\n size: {\n small: {\n marginLeft: `calc(${tokens.space['2']} / 2)`,\n marginRight: `calc(${tokens.space['2']} / 2)`,\n },\n medium: {\n marginLeft: `calc(${tokens.space['3']} / 2)`,\n marginRight: `calc(${tokens.space['3']} / 2)`,\n },\n large: {\n marginLeft: `calc(${tokens.space['3']} / 2)`,\n marginRight: `calc(${tokens.space['3']} / 2)`,\n },\n },\n variant: {\n start: {\n left: '0',\n zIndex: 1,\n pointerEvents: 'none',\n },\n end: {\n right: '0',\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Input.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.vanilla.css.cjs","names":[
|
|
1
|
+
{"version":3,"file":"Label.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.vanilla.css.js","names":[
|
|
1
|
+
{"version":3,"file":"Label.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.vanilla.css.cjs","names":[
|
|
1
|
+
{"version":3,"file":"List.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.vanilla.css.js","names":[
|
|
1
|
+
{"version":3,"file":"List.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Meter.vanilla.css.cjs","names":[
|
|
1
|
+
{"version":3,"file":"Meter.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Meter.vanilla.css.js","names":[
|
|
1
|
+
{"version":3,"file":"Meter.vanilla.css.js","names":[],"sources":[],"mappings":""}
|