@traefik-labs/faency 12.3.9 → 13.0.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/_virtual/_rolldown/runtime.cjs +2 -3
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/colors/deepBlue.cjs +1 -2
- package/dist/colors/deepBlue.js +1 -2
- package/dist/colors/elevation.cjs +1 -2
- package/dist/colors/elevation.js +1 -2
- package/dist/colors/grayBlue.cjs +1 -2
- package/dist/colors/grayBlue.js +1 -2
- package/dist/colors/index.cjs +1 -2
- package/dist/colors/index.cjs.map +1 -1
- package/dist/colors/index.js +1 -2
- package/dist/colors/index.js.map +1 -1
- package/dist/colors/neon.cjs +1 -2
- package/dist/colors/neon.js +1 -2
- package/dist/colors/orange.cjs +1 -2
- package/dist/colors/orange.js +1 -2
- package/dist/colors/red.cjs +1 -2
- package/dist/colors/red.js +1 -2
- package/dist/components/AccessibleIcon/AccessibleIcon.cjs +1 -2
- package/dist/components/AccessibleIcon/AccessibleIcon.cjs.map +1 -1
- package/dist/components/AccessibleIcon/AccessibleIcon.js +1 -2
- package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.cjs +1 -2
- package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.cjs.map +1 -1
- package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.js +1 -2
- package/dist/components/Accordion/Accordion.cjs +1 -2
- package/dist/components/Accordion/Accordion.cjs.map +1 -1
- package/dist/components/Accordion/Accordion.js +1 -2
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/Accordion.themes.cjs +1 -2
- package/dist/components/Accordion/Accordion.themes.cjs.map +1 -1
- package/dist/components/Accordion/Accordion.themes.js +1 -2
- package/dist/components/Accordion/Accordion.themes.js.map +1 -1
- package/dist/components/Alert/Alert.cjs +1 -2
- package/dist/components/Alert/Alert.cjs.map +1 -1
- package/dist/components/Alert/Alert.js +1 -2
- package/dist/components/AriaTable/AriaTable.cjs +1 -2
- package/dist/components/AriaTable/AriaTable.cjs.map +1 -1
- package/dist/components/AriaTable/AriaTable.js +1 -2
- package/dist/components/AriaTable/AriaTable.js.map +1 -1
- package/dist/components/Avatar/Avatar.cjs +1 -2
- package/dist/components/Avatar/Avatar.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.js +1 -2
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.cjs +8 -8
- package/dist/components/Avatar/Avatar.vanilla.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.css.cjs +1 -2
- package/dist/components/Avatar/Avatar.vanilla.css.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.css.js +1 -2
- package/dist/components/Avatar/Avatar.vanilla.css.js.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.js +8 -8
- package/dist/components/Avatar/Avatar.vanilla.js.map +1 -1
- package/dist/components/Badge/Badge.cjs +4 -4
- package/dist/components/Badge/Badge.cjs.map +1 -1
- package/dist/components/Badge/Badge.js +4 -4
- package/dist/components/Badge/Badge.js.map +1 -1
- package/dist/components/Badge/Badge.theme.cjs +1 -2
- package/dist/components/Badge/Badge.theme.js +1 -2
- package/dist/components/Badge/Badge.themes.cjs +1 -2
- package/dist/components/Badge/Badge.themes.cjs.map +1 -1
- package/dist/components/Badge/Badge.themes.js +1 -2
- package/dist/components/Badge/Badge.themes.js.map +1 -1
- package/dist/components/Badge/Badge.vanilla.cjs +8 -8
- package/dist/components/Badge/Badge.vanilla.cjs.map +1 -1
- package/dist/components/Badge/Badge.vanilla.css.cjs +1 -2
- package/dist/components/Badge/Badge.vanilla.css.cjs.map +1 -1
- package/dist/components/Badge/Badge.vanilla.css.js +1 -2
- package/dist/components/Badge/Badge.vanilla.css.js.map +1 -1
- package/dist/components/Badge/Badge.vanilla.js +8 -8
- package/dist/components/Badge/Badge.vanilla.js.map +1 -1
- package/dist/components/Blockquote/Blockquote.cjs +1 -2
- package/dist/components/Blockquote/Blockquote.cjs.map +1 -1
- package/dist/components/Blockquote/Blockquote.js +1 -2
- package/dist/components/Blockquote/Blockquote.vanilla.cjs +10 -10
- package/dist/components/Blockquote/Blockquote.vanilla.cjs.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.css.cjs +1 -2
- package/dist/components/Blockquote/Blockquote.vanilla.css.cjs.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.css.js +1 -2
- package/dist/components/Blockquote/Blockquote.vanilla.css.js.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.js +10 -10
- package/dist/components/Blockquote/Blockquote.vanilla.js.map +1 -1
- package/dist/components/Box/Box.cjs +1 -2
- package/dist/components/Box/Box.cjs.map +1 -1
- package/dist/components/Box/Box.js +1 -2
- package/dist/components/Box/Box.vanilla.cjs +1 -2
- package/dist/components/Box/Box.vanilla.cjs.map +1 -1
- package/dist/components/Box/Box.vanilla.css.cjs +1 -2
- package/dist/components/Box/Box.vanilla.css.js +1 -2
- package/dist/components/Box/Box.vanilla.js +1 -2
- package/dist/components/Bubble/Bubble.cjs +1 -2
- package/dist/components/Bubble/Bubble.cjs.map +1 -1
- package/dist/components/Bubble/Bubble.js +18 -17
- package/dist/components/Bubble/Bubble.js.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.cjs +7 -7
- package/dist/components/Bubble/Bubble.vanilla.cjs.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.css.cjs +1 -2
- package/dist/components/Bubble/Bubble.vanilla.css.cjs.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.css.js +1 -2
- package/dist/components/Bubble/Bubble.vanilla.css.js.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.js +7 -7
- package/dist/components/Bubble/Bubble.vanilla.js.map +1 -1
- package/dist/components/Button/Button.cjs +3 -3
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.themes.cjs +1 -2
- package/dist/components/Button/Button.themes.cjs.map +1 -1
- package/dist/components/Button/Button.themes.js +1 -2
- package/dist/components/Button/Button.themes.js.map +1 -1
- package/dist/components/Button/Button.vanilla.cjs +9 -9
- package/dist/components/Button/Button.vanilla.cjs.map +1 -1
- package/dist/components/Button/Button.vanilla.css.cjs +1 -2
- package/dist/components/Button/Button.vanilla.css.cjs.map +1 -1
- package/dist/components/Button/Button.vanilla.css.js +1 -2
- package/dist/components/Button/Button.vanilla.css.js.map +1 -1
- package/dist/components/Button/Button.vanilla.js +9 -9
- package/dist/components/Button/Button.vanilla.js.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.cjs +1 -2
- package/dist/components/ButtonSwitch/ButtonSwitch.cjs.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.js +1 -2
- package/dist/components/ButtonSwitch/ButtonSwitch.themes.cjs +1 -2
- package/dist/components/ButtonSwitch/ButtonSwitch.themes.cjs.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.themes.js +1 -2
- package/dist/components/ButtonSwitch/ButtonSwitch.themes.js.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs +1 -2
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.cjs +1 -2
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.js +1 -2
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js +1 -2
- package/dist/components/Card/Card.cjs +1 -2
- package/dist/components/Card/Card.cjs.map +1 -1
- package/dist/components/Card/Card.js +1 -2
- package/dist/components/Card/Card.theme.cjs +1 -2
- package/dist/components/Card/Card.theme.js +1 -2
- package/dist/components/Card/Card.themes.cjs +1 -2
- package/dist/components/Card/Card.themes.cjs.map +1 -1
- package/dist/components/Card/Card.themes.js +1 -2
- package/dist/components/Card/Card.themes.js.map +1 -1
- package/dist/components/Card/Card.vanilla.cjs +1 -2
- package/dist/components/Card/Card.vanilla.cjs.map +1 -1
- package/dist/components/Card/Card.vanilla.css.cjs +1 -2
- package/dist/components/Card/Card.vanilla.css.cjs.map +1 -1
- package/dist/components/Card/Card.vanilla.css.js +1 -2
- package/dist/components/Card/Card.vanilla.css.js.map +1 -1
- package/dist/components/Card/Card.vanilla.js +1 -2
- package/dist/components/Checkbox/Checkbox.cjs +1 -2
- package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -2
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.themes.cjs +1 -2
- package/dist/components/Checkbox/Checkbox.themes.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.themes.js +1 -2
- package/dist/components/Checkbox/Checkbox.themes.js.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.cjs +1 -2
- package/dist/components/CodeBlock/CodeBlock.cjs.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.js +1 -2
- package/dist/components/CodeBlock/CodeBlock.js.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.themes.cjs +1 -2
- package/dist/components/CodeBlock/CodeBlock.themes.cjs.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.themes.js +1 -2
- package/dist/components/CodeBlock/CodeBlock.themes.js.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.vanilla.cjs +1 -2
- package/dist/components/CodeBlock/CodeBlock.vanilla.cjs.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.vanilla.css.cjs +1 -2
- package/dist/components/CodeBlock/CodeBlock.vanilla.css.js +1 -2
- package/dist/components/CodeBlock/CodeBlock.vanilla.js +1 -2
- package/dist/components/CodeBlock/CodeBlock.vanilla.js.map +1 -1
- package/dist/components/CodeBlock/prism-extend.cjs +7 -3
- package/dist/components/CodeBlock/prism-extend.cjs.map +1 -1
- package/dist/components/CodeBlock/prism-extend.js +1 -2
- package/dist/components/Container/Container.cjs +1 -2
- package/dist/components/Container/Container.cjs.map +1 -1
- package/dist/components/Container/Container.js +1 -2
- package/dist/components/Container/Container.vanilla.cjs +6 -6
- package/dist/components/Container/Container.vanilla.cjs.map +1 -1
- package/dist/components/Container/Container.vanilla.css.cjs +1 -2
- package/dist/components/Container/Container.vanilla.css.cjs.map +1 -1
- package/dist/components/Container/Container.vanilla.css.js +1 -2
- package/dist/components/Container/Container.vanilla.css.js.map +1 -1
- package/dist/components/Container/Container.vanilla.js +6 -6
- package/dist/components/Container/Container.vanilla.js.map +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.cjs +1 -2
- package/dist/components/DateTimePicker/DateTimePicker.cjs.map +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.js +1 -2
- package/dist/components/DateTimePicker/DateTimePicker.js.map +1 -1
- package/dist/components/DateTimePickerInput/DateTimePickerInput.cjs +17 -14
- package/dist/components/DateTimePickerInput/DateTimePickerInput.cjs.map +1 -1
- package/dist/components/DateTimePickerInput/DateTimePickerInput.js +17 -14
- package/dist/components/DateTimePickerInput/DateTimePickerInput.js.map +1 -1
- package/dist/components/Dialog/Dialog.cjs +1 -2
- package/dist/components/Dialog/Dialog.cjs.map +1 -1
- package/dist/components/Dialog/Dialog.js +1 -2
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Dialog/Dialog.themes.cjs +1 -2
- package/dist/components/Dialog/Dialog.themes.cjs.map +1 -1
- package/dist/components/Dialog/Dialog.themes.js +1 -2
- package/dist/components/Dialog/Dialog.themes.js.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.cjs +1 -2
- package/dist/components/DropdownMenu/DropdownMenu.cjs.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +1 -2
- package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -1
- package/dist/components/DropdownMenu/styles.cjs +1 -2
- package/dist/components/DropdownMenu/styles.cjs.map +1 -1
- package/dist/components/DropdownMenu/styles.js +1 -2
- package/dist/components/Elevation/Elevation.cjs +1 -2
- package/dist/components/Elevation/Elevation.cjs.map +1 -1
- package/dist/components/Elevation/Elevation.js +1 -2
- package/dist/components/Elevation/Elevation.vanilla.cjs +3 -3
- package/dist/components/Elevation/Elevation.vanilla.cjs.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.css.cjs +1 -2
- package/dist/components/Elevation/Elevation.vanilla.css.cjs.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.css.js +1 -2
- package/dist/components/Elevation/Elevation.vanilla.css.js.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.js +3 -3
- package/dist/components/Elevation/Elevation.vanilla.js.map +1 -1
- package/dist/components/FaencyProvider.cjs +1 -2
- package/dist/components/FaencyProvider.cjs.map +1 -1
- package/dist/components/FaencyProvider.js +1 -2
- package/dist/components/FaencyProvider.js.map +1 -1
- package/dist/components/Flex/Flex.cjs +1 -2
- package/dist/components/Flex/Flex.cjs.map +1 -1
- package/dist/components/Flex/Flex.js +1 -2
- package/dist/components/Flex/Flex.vanilla.cjs +9 -9
- package/dist/components/Flex/Flex.vanilla.cjs.map +1 -1
- package/dist/components/Flex/Flex.vanilla.css.cjs +1 -2
- package/dist/components/Flex/Flex.vanilla.css.cjs.map +1 -1
- package/dist/components/Flex/Flex.vanilla.css.js +1 -2
- package/dist/components/Flex/Flex.vanilla.css.js.map +1 -1
- package/dist/components/Flex/Flex.vanilla.js +9 -9
- package/dist/components/Flex/Flex.vanilla.js.map +1 -1
- package/dist/components/Grid/Grid.cjs +1 -2
- package/dist/components/Grid/Grid.cjs.map +1 -1
- package/dist/components/Grid/Grid.js +1 -2
- package/dist/components/Grid/Grid.vanilla.cjs +10 -10
- package/dist/components/Grid/Grid.vanilla.cjs.map +1 -1
- package/dist/components/Grid/Grid.vanilla.css.cjs +1 -2
- package/dist/components/Grid/Grid.vanilla.css.cjs.map +1 -1
- package/dist/components/Grid/Grid.vanilla.css.js +1 -2
- package/dist/components/Grid/Grid.vanilla.css.js.map +1 -1
- package/dist/components/Grid/Grid.vanilla.js +10 -10
- package/dist/components/Grid/Grid.vanilla.js.map +1 -1
- package/dist/components/Heading/Heading.cjs +1 -2
- package/dist/components/Heading/Heading.cjs.map +1 -1
- package/dist/components/Heading/Heading.js +1 -2
- package/dist/components/Heading/Heading.themes.cjs +1 -2
- package/dist/components/Heading/Heading.themes.cjs.map +1 -1
- package/dist/components/Heading/Heading.themes.js +1 -2
- package/dist/components/Heading/Heading.themes.js.map +1 -1
- package/dist/components/IconButton/IconButton.cjs +1 -2
- package/dist/components/IconButton/IconButton.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.js +1 -2
- package/dist/components/IconButton/IconButton.themes.cjs +1 -2
- package/dist/components/IconButton/IconButton.themes.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.themes.js +1 -2
- package/dist/components/IconButton/IconButton.themes.js.map +1 -1
- package/dist/components/IconButton/IconButton.vanilla.cjs +6 -6
- package/dist/components/IconButton/IconButton.vanilla.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.vanilla.css.cjs +1 -2
- package/dist/components/IconButton/IconButton.vanilla.css.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.vanilla.css.js +1 -2
- package/dist/components/IconButton/IconButton.vanilla.css.js.map +1 -1
- package/dist/components/IconButton/IconButton.vanilla.js +6 -6
- package/dist/components/IconButton/IconButton.vanilla.js.map +1 -1
- package/dist/components/Image/Image.cjs +1 -2
- package/dist/components/Image/Image.cjs.map +1 -1
- package/dist/components/Image/Image.js +1 -2
- package/dist/components/Image/Image.vanilla.cjs +1 -2
- package/dist/components/Image/Image.vanilla.cjs.map +1 -1
- package/dist/components/Image/Image.vanilla.css.cjs +1 -2
- package/dist/components/Image/Image.vanilla.css.js +1 -2
- package/dist/components/Image/Image.vanilla.js +1 -2
- package/dist/components/Input/Input.cjs +1 -2
- package/dist/components/Input/Input.cjs.map +1 -1
- package/dist/components/Input/Input.js +1 -2
- package/dist/components/Input/Input.js.map +1 -1
- package/dist/components/Input/Input.theme.cjs +1 -2
- package/dist/components/Input/Input.theme.cjs.map +1 -1
- package/dist/components/Input/Input.theme.js +1 -2
- package/dist/components/Input/Input.themes.cjs +1 -2
- package/dist/components/Input/Input.themes.cjs.map +1 -1
- package/dist/components/Input/Input.themes.js +1 -2
- package/dist/components/Input/Input.themes.js.map +1 -1
- package/dist/components/Input/Input.vanilla.cjs +1 -2
- package/dist/components/Input/Input.vanilla.cjs.map +1 -1
- package/dist/components/Input/Input.vanilla.css.cjs +1 -2
- package/dist/components/Input/Input.vanilla.css.cjs.map +1 -1
- package/dist/components/Input/Input.vanilla.css.js +1 -2
- package/dist/components/Input/Input.vanilla.css.js.map +1 -1
- package/dist/components/Input/Input.vanilla.js +1 -2
- package/dist/components/Input/Input.vanilla.js.map +1 -1
- package/dist/components/Label/Label.cjs +1 -2
- package/dist/components/Label/Label.cjs.map +1 -1
- package/dist/components/Label/Label.js +1 -2
- package/dist/components/Label/Label.vanilla.cjs +10 -10
- package/dist/components/Label/Label.vanilla.cjs.map +1 -1
- package/dist/components/Label/Label.vanilla.css.cjs +1 -2
- package/dist/components/Label/Label.vanilla.css.cjs.map +1 -1
- package/dist/components/Label/Label.vanilla.css.js +1 -2
- package/dist/components/Label/Label.vanilla.css.js.map +1 -1
- package/dist/components/Label/Label.vanilla.js +10 -10
- package/dist/components/Label/Label.vanilla.js.map +1 -1
- package/dist/components/Link/Link.cjs +0 -1
- package/dist/components/Link/Link.cjs.map +1 -1
- package/dist/components/Link/Link.js +0 -1
- package/dist/components/Link/Link.themes.cjs +1 -2
- package/dist/components/Link/Link.themes.cjs.map +1 -1
- package/dist/components/Link/Link.themes.js +1 -2
- package/dist/components/Link/Link.themes.js.map +1 -1
- package/dist/components/List/List.cjs +1 -2
- package/dist/components/List/List.cjs.map +1 -1
- package/dist/components/List/List.js +1 -2
- package/dist/components/List/List.js.map +1 -1
- package/dist/components/List/List.themes.cjs +1 -2
- package/dist/components/List/List.themes.cjs.map +1 -1
- package/dist/components/List/List.themes.js +1 -2
- package/dist/components/List/List.themes.js.map +1 -1
- package/dist/components/Navigation/Navigation.cjs +1 -2
- package/dist/components/Navigation/Navigation.cjs.map +1 -1
- package/dist/components/Navigation/Navigation.js +1 -2
- package/dist/components/Navigation/Navigation.js.map +1 -1
- package/dist/components/Navigation/Navigation.themes.cjs +1 -2
- package/dist/components/Navigation/Navigation.themes.cjs.map +1 -1
- package/dist/components/Navigation/Navigation.themes.js +1 -2
- package/dist/components/Navigation/Navigation.themes.js.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenu.cjs +1 -2
- package/dist/components/NavigationMenu/NavigationMenu.cjs.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenu.js +1 -2
- package/dist/components/NavigationTree/NavigationTreeContainer.cjs +17 -12
- package/dist/components/NavigationTree/NavigationTreeContainer.cjs.map +1 -1
- package/dist/components/NavigationTree/NavigationTreeContainer.js +18 -13
- package/dist/components/NavigationTree/NavigationTreeContainer.js.map +1 -1
- package/dist/components/NavigationTree/NavigationTreeContext.cjs +16 -0
- package/dist/components/NavigationTree/NavigationTreeContext.cjs.map +1 -0
- package/dist/components/NavigationTree/NavigationTreeContext.js +13 -0
- package/dist/components/NavigationTree/NavigationTreeContext.js.map +1 -0
- package/dist/components/NavigationTree/NavigationTreeDrawer.cjs +14 -9
- package/dist/components/NavigationTree/NavigationTreeDrawer.cjs.map +1 -1
- package/dist/components/NavigationTree/NavigationTreeDrawer.js +15 -10
- package/dist/components/NavigationTree/NavigationTreeDrawer.js.map +1 -1
- package/dist/components/NavigationTree/NavigationTreeItem.cjs +17 -12
- package/dist/components/NavigationTree/NavigationTreeItem.cjs.map +1 -1
- package/dist/components/NavigationTree/NavigationTreeItem.js +17 -12
- package/dist/components/NavigationTree/NavigationTreeItem.js.map +1 -1
- package/dist/components/Overlay.cjs +1 -2
- package/dist/components/Overlay.cjs.map +1 -1
- package/dist/components/Overlay.js +1 -2
- package/dist/components/Panel/Panel.cjs +1 -2
- package/dist/components/Panel/Panel.cjs.map +1 -1
- package/dist/components/Panel/Panel.js +1 -2
- package/dist/components/Panel/Panel.theme.cjs +1 -2
- package/dist/components/Panel/Panel.theme.js +1 -2
- package/dist/components/Panel/Panel.vanilla.cjs +1 -2
- package/dist/components/Panel/Panel.vanilla.cjs.map +1 -1
- package/dist/components/Panel/Panel.vanilla.css.cjs +1 -2
- package/dist/components/Panel/Panel.vanilla.css.js +1 -2
- package/dist/components/Panel/Panel.vanilla.js +1 -2
- package/dist/components/Paragraph/Paragraph.cjs +1 -2
- package/dist/components/Paragraph/Paragraph.cjs.map +1 -1
- package/dist/components/Paragraph/Paragraph.js +1 -2
- package/dist/components/Paragraph/Paragraph.vanilla.cjs +3 -3
- package/dist/components/Paragraph/Paragraph.vanilla.cjs.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.css.cjs +1 -2
- package/dist/components/Paragraph/Paragraph.vanilla.css.cjs.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.css.js +1 -2
- package/dist/components/Paragraph/Paragraph.vanilla.css.js.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.js +3 -3
- package/dist/components/Paragraph/Paragraph.vanilla.js.map +1 -1
- package/dist/components/Popover/Popover.cjs +1 -2
- package/dist/components/Popover/Popover.cjs.map +1 -1
- package/dist/components/Popover/Popover.js +1 -2
- package/dist/components/Popover/Popover.js.map +1 -1
- package/dist/components/Radio/Radio.cjs +1 -2
- package/dist/components/Radio/Radio.cjs.map +1 -1
- package/dist/components/Radio/Radio.js +1 -2
- package/dist/components/Radio/Radio.js.map +1 -1
- package/dist/components/Radio/Radio.themes.cjs +1 -2
- package/dist/components/Radio/Radio.themes.cjs.map +1 -1
- package/dist/components/Radio/Radio.themes.js +1 -2
- package/dist/components/Radio/Radio.themes.js.map +1 -1
- package/dist/components/RadioAccordion/RadioAccordion.cjs +1 -2
- package/dist/components/RadioAccordion/RadioAccordion.cjs.map +1 -1
- package/dist/components/RadioAccordion/RadioAccordion.js +1 -2
- package/dist/components/RadioAccordion/RadioAccordion.js.map +1 -1
- package/dist/components/Select/Select.cjs +1 -2
- package/dist/components/Select/Select.cjs.map +1 -1
- package/dist/components/Select/Select.js +1 -2
- package/dist/components/Select/Select.js.map +1 -1
- package/dist/components/Select/Select.themes.cjs +1 -2
- package/dist/components/Select/Select.themes.cjs.map +1 -1
- package/dist/components/Select/Select.themes.js +1 -2
- package/dist/components/Select/Select.themes.js.map +1 -1
- package/dist/components/SidePanel/SidePanel.cjs +1 -2
- package/dist/components/SidePanel/SidePanel.cjs.map +1 -1
- package/dist/components/SidePanel/SidePanel.js +1 -2
- package/dist/components/SidePanel/SidePanel.js.map +1 -1
- package/dist/components/SidePanel/SidePanel.themes.cjs +1 -2
- package/dist/components/SidePanel/SidePanel.themes.cjs.map +1 -1
- package/dist/components/SidePanel/SidePanel.themes.js +1 -2
- package/dist/components/SidePanel/SidePanel.themes.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.cjs +1 -2
- package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.js +6 -5
- package/dist/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.themes.cjs +1 -2
- package/dist/components/Skeleton/Skeleton.themes.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.themes.js +1 -2
- package/dist/components/Skeleton/Skeleton.themes.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.cjs +3 -3
- package/dist/components/Skeleton/Skeleton.vanilla.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.css.cjs +1 -2
- package/dist/components/Skeleton/Skeleton.vanilla.css.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.css.js +1 -2
- package/dist/components/Skeleton/Skeleton.vanilla.css.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.js +3 -3
- package/dist/components/Skeleton/Skeleton.vanilla.js.map +1 -1
- package/dist/components/Switch/Switch.cjs +3 -4
- package/dist/components/Switch/Switch.cjs.map +1 -1
- package/dist/components/Switch/Switch.js +3 -4
- package/dist/components/Switch/Switch.js.map +1 -1
- package/dist/components/Switch/Switch.themes.cjs +1 -2
- package/dist/components/Switch/Switch.themes.cjs.map +1 -1
- package/dist/components/Switch/Switch.themes.js +1 -2
- package/dist/components/Switch/Switch.themes.js.map +1 -1
- package/dist/components/Table/Table.cjs +1 -2
- package/dist/components/Table/Table.cjs.map +1 -1
- package/dist/components/Table/Table.js +15 -14
- package/dist/components/Table/Table.js.map +1 -1
- package/dist/components/Table/Table.themes.cjs +1 -2
- package/dist/components/Table/Table.themes.cjs.map +1 -1
- package/dist/components/Table/Table.themes.js +1 -2
- package/dist/components/Table/Table.themes.js.map +1 -1
- package/dist/components/Tabs/Tabs.cjs +1 -2
- package/dist/components/Tabs/Tabs.cjs.map +1 -1
- package/dist/components/Tabs/Tabs.js +1 -2
- package/dist/components/Text/Text.cjs +1 -2
- package/dist/components/Text/Text.cjs.map +1 -1
- package/dist/components/Text/Text.js +1 -2
- package/dist/components/Text/Text.themes.cjs +1 -2
- package/dist/components/Text/Text.themes.cjs.map +1 -1
- package/dist/components/Text/Text.themes.js +1 -2
- package/dist/components/Text/Text.themes.js.map +1 -1
- package/dist/components/TextField/TextField.cjs +1 -2
- package/dist/components/TextField/TextField.cjs.map +1 -1
- package/dist/components/TextField/TextField.js +1 -2
- package/dist/components/TextField/TextField.js.map +1 -1
- package/dist/components/TextField/TextField.vanilla.cjs +1 -2
- package/dist/components/TextField/TextField.vanilla.cjs.map +1 -1
- package/dist/components/TextField/TextField.vanilla.js +1 -2
- package/dist/components/TextField/TextField.vanilla.js.map +1 -1
- package/dist/components/Textarea/Textarea.cjs +1 -2
- package/dist/components/Textarea/Textarea.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.js +1 -2
- package/dist/components/Textarea/Textarea.js.map +1 -1
- package/dist/components/Textarea/Textarea.theme.cjs +1 -2
- package/dist/components/Textarea/Textarea.theme.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.theme.js +1 -2
- package/dist/components/Textarea/Textarea.themes.cjs +1 -2
- package/dist/components/Textarea/Textarea.themes.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.themes.js +1 -2
- package/dist/components/Textarea/Textarea.themes.js.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.cjs +1 -2
- package/dist/components/Textarea/Textarea.vanilla.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.css.cjs +1 -2
- package/dist/components/Textarea/Textarea.vanilla.css.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.css.js +1 -2
- package/dist/components/Textarea/Textarea.vanilla.css.js.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.js +1 -2
- package/dist/components/Textarea/Textarea.vanilla.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.cjs +1 -2
- package/dist/components/Tooltip/Tooltip.cjs.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -2
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.themes.cjs +1 -2
- package/dist/components/Tooltip/Tooltip.themes.cjs.map +1 -1
- package/dist/components/Tooltip/Tooltip.themes.js +1 -2
- package/dist/components/Tooltip/Tooltip.themes.js.map +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.cjs +1 -2
- package/dist/components/VisuallyHidden/VisuallyHidden.cjs.map +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.js +1 -2
- package/dist/components/VisuallyHidden/VisuallyHidden.js.map +1 -1
- package/dist/components/colorSchemeContext.cjs +1 -2
- package/dist/components/colorSchemeContext.cjs.map +1 -1
- package/dist/components/colorSchemeContext.js +1 -2
- package/dist/index.d.ts +1 -1
- package/dist/stitches.config.cjs +1 -2
- package/dist/stitches.config.cjs.map +1 -1
- package/dist/stitches.config.js +1 -2
- package/dist/stitches.config.js.map +1 -1
- package/dist/styles/cssProps.cjs +24 -27
- package/dist/styles/cssProps.cjs.map +1 -1
- package/dist/styles/cssProps.js +24 -27
- package/dist/styles/cssProps.js.map +1 -1
- package/dist/styles/themeContext.cjs +1 -2
- package/dist/styles/themeContext.cjs.map +1 -1
- package/dist/styles/themeContext.js +1 -2
- package/dist/styles/themes.css.cjs +1 -2
- package/dist/styles/themes.css.js +1 -2
- package/dist/utils/deepMerge.cjs +1 -2
- package/dist/utils/deepMerge.js +1 -2
- package/dist/utils/getPrimaryColorInfo.cjs +1 -2
- package/dist/utils/getPrimaryColorInfo.js +1 -2
- package/package.json +64 -62
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
2
|
let tinycolor2 = require("tinycolor2");
|
|
3
3
|
tinycolor2 = require_runtime.__toESM(tinycolor2, 1);
|
|
4
|
-
|
|
4
|
+
// components/Input/Input.themes.ts
|
|
5
5
|
var Theme;
|
|
6
6
|
(function(_Theme) {
|
|
7
7
|
_Theme.getLight = (primaryColor) => ({
|
|
@@ -27,7 +27,6 @@ var Theme;
|
|
|
27
27
|
inputInvalidBorder: "$red9"
|
|
28
28
|
});
|
|
29
29
|
})(Theme || (Theme = {}));
|
|
30
|
-
//#endregion
|
|
31
30
|
Object.defineProperty(exports, "Theme", {
|
|
32
31
|
enumerable: true,
|
|
33
32
|
get: function() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.themes.cjs","names":[],"sources":["../../../components/Input/Input.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n export type Colors = {\n inputBg: Property.Color;\n inputBorder: Property.Color;\n inputFocusBg: Property.Color;\n inputFocusBorder: Property.Color;\n inputHoverBg: Property.Color;\n inputText: Property.Color;\n inputPlaceholder: Property.Color;\n inputDisabledText: Property.Color;\n inputInvalidBorder: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n inputBg: '$deepBlue1',\n inputBorder: '$grayBlue9',\n inputFocusBg: tinycolor('black').setAlpha(0.15).toHslString(),\n inputFocusBorder: primaryColor.helpers.pickScale(8),\n inputHoverBg: '$whiteA9',\n inputText: tinycolor('black').setAlpha(0.74).toHslString(),\n inputPlaceholder: '$blackA10',\n inputDisabledText: tinycolor('black').setAlpha(0.35).toHslString(),\n inputInvalidBorder: '$red9',\n });\n\n export const getDark: Factory = (primaryColor) => ({\n inputBg: '$grayBlue7',\n inputBorder: '$grayBlue9',\n inputFocusBg: tinycolor('black').setAlpha(0.15).toHslString(),\n inputFocusBorder: primaryColor.helpers.pickScale(11),\n inputHoverBg: '$whiteA4',\n inputText: tinycolor('white').setAlpha(0.8).toHslString(),\n inputPlaceholder: '$whiteA10',\n inputDisabledText: tinycolor('white').setAlpha(0.35).toHslString(),\n inputInvalidBorder: '$red9',\n });\n}\n"],"mappings":";;;;AAKO,
|
|
1
|
+
{"version":3,"file":"Input.themes.cjs","names":["tinycolor"],"sources":["../../../components/Input/Input.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n export type Colors = {\n inputBg: Property.Color;\n inputBorder: Property.Color;\n inputFocusBg: Property.Color;\n inputFocusBorder: Property.Color;\n inputHoverBg: Property.Color;\n inputText: Property.Color;\n inputPlaceholder: Property.Color;\n inputDisabledText: Property.Color;\n inputInvalidBorder: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n inputBg: '$deepBlue1',\n inputBorder: '$grayBlue9',\n inputFocusBg: tinycolor('black').setAlpha(0.15).toHslString(),\n inputFocusBorder: primaryColor.helpers.pickScale(8),\n inputHoverBg: '$whiteA9',\n inputText: tinycolor('black').setAlpha(0.74).toHslString(),\n inputPlaceholder: '$blackA10',\n inputDisabledText: tinycolor('black').setAlpha(0.35).toHslString(),\n inputInvalidBorder: '$red9',\n });\n\n export const getDark: Factory = (primaryColor) => ({\n inputBg: '$grayBlue7',\n inputBorder: '$grayBlue9',\n inputFocusBg: tinycolor('black').setAlpha(0.15).toHslString(),\n inputFocusBorder: primaryColor.helpers.pickScale(11),\n inputHoverBg: '$whiteA4',\n inputText: tinycolor('white').setAlpha(0.8).toHslString(),\n inputPlaceholder: '$whiteA10',\n inputDisabledText: tinycolor('white').setAlpha(0.35).toHslString(),\n inputInvalidBorder: '$red9',\n });\n}\n"],"mappings":";;;;AAKO,IAAU;CAAV,SAAA,QAAA;CAeQ,OAAA,YAAqB,kBAAkB;EAClD,SAAS;EACT,aAAa;EACb,eAAA,GAAcA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAC5D,kBAAkB,aAAa,QAAQ,UAAU,CAAC;EAClD,cAAc;EACd,YAAA,GAAWA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EACzD,kBAAkB;EAClB,oBAAA,GAAmBA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EACjE,oBAAoB;CACtB;CAEa,OAAA,WAAoB,kBAAkB;EACjD,SAAS;EACT,aAAa;EACb,eAAA,GAAcA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAC5D,kBAAkB,aAAa,QAAQ,UAAU,EAAE;EACnD,cAAc;EACd,YAAA,GAAWA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,EAAG,CAAC,CAAC,YAAY;EACxD,kBAAkB;EAClB,oBAAA,GAAmBA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EACjE,oBAAoB;CACtB;AACD,EAAA,CAAA,UAAA,QAAA,CAAA,EAAD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import tinycolor from "tinycolor2";
|
|
2
|
-
|
|
2
|
+
// components/Input/Input.themes.ts
|
|
3
3
|
var Theme;
|
|
4
4
|
(function(_Theme) {
|
|
5
5
|
_Theme.getLight = (primaryColor) => ({
|
|
@@ -25,7 +25,6 @@ var Theme;
|
|
|
25
25
|
inputInvalidBorder: "$red9"
|
|
26
26
|
});
|
|
27
27
|
})(Theme || (Theme = {}));
|
|
28
|
-
//#endregion
|
|
29
28
|
export { Theme };
|
|
30
29
|
|
|
31
30
|
//# sourceMappingURL=Input.themes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.themes.js","names":[],"sources":["../../../components/Input/Input.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n export type Colors = {\n inputBg: Property.Color;\n inputBorder: Property.Color;\n inputFocusBg: Property.Color;\n inputFocusBorder: Property.Color;\n inputHoverBg: Property.Color;\n inputText: Property.Color;\n inputPlaceholder: Property.Color;\n inputDisabledText: Property.Color;\n inputInvalidBorder: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n inputBg: '$deepBlue1',\n inputBorder: '$grayBlue9',\n inputFocusBg: tinycolor('black').setAlpha(0.15).toHslString(),\n inputFocusBorder: primaryColor.helpers.pickScale(8),\n inputHoverBg: '$whiteA9',\n inputText: tinycolor('black').setAlpha(0.74).toHslString(),\n inputPlaceholder: '$blackA10',\n inputDisabledText: tinycolor('black').setAlpha(0.35).toHslString(),\n inputInvalidBorder: '$red9',\n });\n\n export const getDark: Factory = (primaryColor) => ({\n inputBg: '$grayBlue7',\n inputBorder: '$grayBlue9',\n inputFocusBg: tinycolor('black').setAlpha(0.15).toHslString(),\n inputFocusBorder: primaryColor.helpers.pickScale(11),\n inputHoverBg: '$whiteA4',\n inputText: tinycolor('white').setAlpha(0.8).toHslString(),\n inputPlaceholder: '$whiteA10',\n inputDisabledText: tinycolor('white').setAlpha(0.35).toHslString(),\n inputInvalidBorder: '$red9',\n });\n}\n"],"mappings":";;AAKO,
|
|
1
|
+
{"version":3,"file":"Input.themes.js","names":[],"sources":["../../../components/Input/Input.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n export type Colors = {\n inputBg: Property.Color;\n inputBorder: Property.Color;\n inputFocusBg: Property.Color;\n inputFocusBorder: Property.Color;\n inputHoverBg: Property.Color;\n inputText: Property.Color;\n inputPlaceholder: Property.Color;\n inputDisabledText: Property.Color;\n inputInvalidBorder: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n inputBg: '$deepBlue1',\n inputBorder: '$grayBlue9',\n inputFocusBg: tinycolor('black').setAlpha(0.15).toHslString(),\n inputFocusBorder: primaryColor.helpers.pickScale(8),\n inputHoverBg: '$whiteA9',\n inputText: tinycolor('black').setAlpha(0.74).toHslString(),\n inputPlaceholder: '$blackA10',\n inputDisabledText: tinycolor('black').setAlpha(0.35).toHslString(),\n inputInvalidBorder: '$red9',\n });\n\n export const getDark: Factory = (primaryColor) => ({\n inputBg: '$grayBlue7',\n inputBorder: '$grayBlue9',\n inputFocusBg: tinycolor('black').setAlpha(0.15).toHslString(),\n inputFocusBorder: primaryColor.helpers.pickScale(11),\n inputHoverBg: '$whiteA4',\n inputText: tinycolor('white').setAlpha(0.8).toHslString(),\n inputPlaceholder: '$whiteA10',\n inputDisabledText: tinycolor('white').setAlpha(0.35).toHslString(),\n inputInvalidBorder: '$red9',\n });\n}\n"],"mappings":";;AAKO,IAAU;CAAV,SAAA,QAAA;CAeQ,OAAA,YAAqB,kBAAkB;EAClD,SAAS;EACT,aAAa;EACb,cAAc,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAC5D,kBAAkB,aAAa,QAAQ,UAAU,CAAC;EAClD,cAAc;EACd,WAAW,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EACzD,kBAAkB;EAClB,mBAAmB,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EACjE,oBAAoB;CACtB;CAEa,OAAA,WAAoB,kBAAkB;EACjD,SAAS;EACT,aAAa;EACb,cAAc,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAC5D,kBAAkB,aAAa,QAAQ,UAAU,EAAE;EACnD,cAAc;EACd,WAAW,UAAU,OAAO,CAAC,CAAC,SAAS,EAAG,CAAC,CAAC,YAAY;EACxD,kBAAkB;EAClB,mBAAmB,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EACjE,oBAAoB;CACtB;AACD,EAAA,CAAA,UAAA,QAAA,CAAA,EAAD"}
|
|
@@ -6,7 +6,7 @@ let react = require("react");
|
|
|
6
6
|
react = require_runtime.__toESM(react, 1);
|
|
7
7
|
let _vanilla_extract_dynamic = require("@vanilla-extract/dynamic");
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
-
|
|
9
|
+
// components/Input/Input.vanilla.tsx
|
|
10
10
|
var InputVanilla = react.default.forwardRef(({ size, startAdornment, endAdornment, css, variant, state, cursor, className, style, ...props }, forwardedRef) => {
|
|
11
11
|
const inputRef = react.default.useRef(null);
|
|
12
12
|
const { colors } = require_themeContext.useVanillaExtractTheme();
|
|
@@ -67,7 +67,6 @@ var InputVanilla = react.default.forwardRef(({ size, startAdornment, endAdornmen
|
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
InputVanilla.displayName = "InputVanilla";
|
|
70
|
-
//#endregion
|
|
71
70
|
exports.InputVanilla = InputVanilla;
|
|
72
71
|
|
|
73
72
|
//# sourceMappingURL=Input.vanilla.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.vanilla.cjs","names":[],"sources":["../../../components/Input/Input.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport React from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { adornmentWrapperRecipe, inputWrapperRecipe, styledInputRecipe } from './Input.vanilla.css';\n\ntype StyledInputRecipeVariants = NonNullable<RecipeVariants<typeof styledInputRecipe>>;\n\nexport interface InputVanillaOwnProps extends CSSProps {\n size?: StyledInputRecipeVariants['size'];\n variant?: StyledInputRecipeVariants['variant'];\n state?: StyledInputRecipeVariants['state'];\n cursor?: StyledInputRecipeVariants['cursor'];\n startAdornment?: React.ReactNode;\n endAdornment?: React.ReactNode;\n type?: string;\n}\n\nexport type InputVanillaProps = Omit<React.InputHTMLAttributes<any>, 'size'> & InputVanillaOwnProps;\n\nexport interface InputVanillaHandle extends HTMLInputElement {\n clear: () => void;\n}\n\nexport const InputVanilla = React.forwardRef<InputVanillaHandle, InputVanillaProps>(\n (\n { size, startAdornment, endAdornment, css, variant, state, cursor, className, style, ...props },\n forwardedRef,\n ) => {\n const inputRef = React.useRef<InputVanillaHandle>(null);\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n\n React.useImperativeHandle(forwardedRef, () => {\n const { current } = inputRef;\n if (current) {\n current.clear = () => {\n current.value = '';\n };\n }\n return current as InputVanillaHandle;\n }, [inputRef]);\n\n const hasStartAdornment = React.useMemo(() => Boolean(startAdornment), [startAdornment]);\n const hasEndAdornment = React.useMemo(() => Boolean(endAdornment), [endAdornment]);\n\n const inputWrapperClass = inputWrapperRecipe({\n disabled: props.disabled,\n state,\n size,\n });\n\n const styledInputClass = styledInputRecipe({\n size,\n variant,\n state,\n cursor,\n startAdornment: hasStartAdornment,\n endAdornment: hasEndAdornment,\n });\n\n const adornmentWrapperStartClass = adornmentWrapperRecipe({\n size,\n variant: 'start',\n });\n\n const adornmentWrapperEndClass = adornmentWrapperRecipe({\n size,\n variant: 'end',\n });\n\n return (\n <div className={`${inputWrapperClass} ${className || ''}`.trim()} style={mergedStyles}>\n {hasStartAdornment && <div className={adornmentWrapperStartClass}>{startAdornment}</div>}\n\n <input ref={inputRef} className={styledInputClass} {...props} />\n\n {hasEndAdornment && <div className={adornmentWrapperEndClass}>{endAdornment}</div>}\n </div>\n );\n },\n);\n\nInputVanilla.displayName = 'InputVanilla';\n"],"mappings":";;;;;;;;;AA0BA,IAAa,
|
|
1
|
+
{"version":3,"file":"Input.vanilla.cjs","names":["React","useVanillaExtractTheme","processCSSProp","assignInlineVars","inputWrapperRecipe","styledInputRecipe","adornmentWrapperRecipe"],"sources":["../../../components/Input/Input.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport React from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { adornmentWrapperRecipe, inputWrapperRecipe, styledInputRecipe } from './Input.vanilla.css';\n\ntype StyledInputRecipeVariants = NonNullable<RecipeVariants<typeof styledInputRecipe>>;\n\nexport interface InputVanillaOwnProps extends CSSProps {\n size?: StyledInputRecipeVariants['size'];\n variant?: StyledInputRecipeVariants['variant'];\n state?: StyledInputRecipeVariants['state'];\n cursor?: StyledInputRecipeVariants['cursor'];\n startAdornment?: React.ReactNode;\n endAdornment?: React.ReactNode;\n type?: string;\n}\n\nexport type InputVanillaProps = Omit<React.InputHTMLAttributes<any>, 'size'> & InputVanillaOwnProps;\n\nexport interface InputVanillaHandle extends HTMLInputElement {\n clear: () => void;\n}\n\nexport const InputVanilla = React.forwardRef<InputVanillaHandle, InputVanillaProps>(\n (\n { size, startAdornment, endAdornment, css, variant, state, cursor, className, style, ...props },\n forwardedRef,\n ) => {\n const inputRef = React.useRef<InputVanillaHandle>(null);\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n\n React.useImperativeHandle(forwardedRef, () => {\n const { current } = inputRef;\n if (current) {\n current.clear = () => {\n current.value = '';\n };\n }\n return current as InputVanillaHandle;\n }, [inputRef]);\n\n const hasStartAdornment = React.useMemo(() => Boolean(startAdornment), [startAdornment]);\n const hasEndAdornment = React.useMemo(() => Boolean(endAdornment), [endAdornment]);\n\n const inputWrapperClass = inputWrapperRecipe({\n disabled: props.disabled,\n state,\n size,\n });\n\n const styledInputClass = styledInputRecipe({\n size,\n variant,\n state,\n cursor,\n startAdornment: hasStartAdornment,\n endAdornment: hasEndAdornment,\n });\n\n const adornmentWrapperStartClass = adornmentWrapperRecipe({\n size,\n variant: 'start',\n });\n\n const adornmentWrapperEndClass = adornmentWrapperRecipe({\n size,\n variant: 'end',\n });\n\n return (\n <div className={`${inputWrapperClass} ${className || ''}`.trim()} style={mergedStyles}>\n {hasStartAdornment && <div className={adornmentWrapperStartClass}>{startAdornment}</div>}\n\n <input ref={inputRef} className={styledInputClass} {...props} />\n\n {hasEndAdornment && <div className={adornmentWrapperEndClass}>{endAdornment}</div>}\n </div>\n );\n },\n);\n\nInputVanilla.displayName = 'InputVanilla';\n"],"mappings":";;;;;;;;;AA0BA,IAAa,eAAeA,MAAAA,QAAM,YAE9B,EAAE,MAAM,gBAAgB,cAAc,KAAK,SAAS,OAAO,QAAQ,WAAW,OAAO,GAAG,SACxF,iBACG;CACH,MAAM,WAAWA,MAAAA,QAAM,OAA2B,IAAI;CACtD,MAAM,EAAE,WAAWC,qBAAAA,uBAAuB;CAC1C,MAAM,EAAE,OAAO,WAAW,SAASC,iBAAAA,eAAe,KAAK,MAAM;CAC7D,MAAM,eAAe;EAAE,GAAG;EAAW,GAAG;EAAO,IAAA,GAAGC,yBAAAA,iBAAAA,CAAiB,IAAI;CAAE;CAEzE,MAAA,QAAM,oBAAoB,oBAAoB;EAC5C,MAAM,EAAE,YAAY;EACpB,IAAI,SACF,QAAQ,cAAc;GACpB,QAAQ,QAAQ;EAClB;EAEF,OAAO;CACT,GAAG,CAAC,QAAQ,CAAC;CAEb,MAAM,oBAAoBH,MAAAA,QAAM,cAAc,QAAQ,cAAc,GAAG,CAAC,cAAc,CAAC;CACvF,MAAM,kBAAkBA,MAAAA,QAAM,cAAc,QAAQ,YAAY,GAAG,CAAC,YAAY,CAAC;CAEjF,MAAM,oBAAoBI,0BAAAA,mBAAmB;EAC3C,UAAU,MAAM;EAChB;EACA;CACF,CAAC;CAED,MAAM,mBAAmBC,0BAAAA,kBAAkB;EACzC;EACA;EACA;EACA;EACA,gBAAgB;EAChB,cAAc;CAChB,CAAC;CAED,MAAM,6BAA6BC,0BAAAA,uBAAuB;EACxD;EACA,SAAS;CACX,CAAC;CAED,MAAM,2BAA2BA,0BAAAA,uBAAuB;EACtD;EACA,SAAS;CACX,CAAC;CAED,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;EAAK,WAAW,GAAG,kBAAkB,GAAG,aAAa,KAAK,KAAK;EAAG,OAAO;EAAzE,UAAA;GACG,qBAAqB,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;IAAK,WAAW;IAA6B,UAAA;GAAoB,CAAA;GAEvF,iBAAA,GAAA,kBAAA,IAAA,CAAC,SAAD;IAAO,KAAK;IAAU,WAAW;IAAkB,GAAI;GAAQ,CAAA;GAE9D,mBAAmB,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;IAAK,WAAW;IAA2B,UAAA;GAAkB,CAAA;EAC9E;;AAET,CACF;AAEA,aAAa,cAAc"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
;/* empty css */
|
|
2
2
|
let _vanilla_extract_recipes_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
3
|
-
|
|
3
|
+
// components/Input/Input.vanilla.css.ts
|
|
4
4
|
var styledInputRecipe = (0, _vanilla_extract_recipes_createRuntimeFn.createRuntimeFn)({
|
|
5
5
|
defaultClassName: "_1st6suv1 _1st6suv0",
|
|
6
6
|
variantClassNames: {
|
|
@@ -101,7 +101,6 @@ var adornmentWrapperRecipe = (0, _vanilla_extract_recipes_createRuntimeFn.create
|
|
|
101
101
|
defaultVariants: { size: "medium" },
|
|
102
102
|
compoundVariants: []
|
|
103
103
|
});
|
|
104
|
-
//#endregion
|
|
105
104
|
exports.adornmentWrapperRecipe = adornmentWrapperRecipe;
|
|
106
105
|
exports.inputWrapperRecipe = inputWrapperRecipe;
|
|
107
106
|
exports.styledInputRecipe = styledInputRecipe;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.vanilla.css.cjs","names":[],"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 },\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 '&::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 '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputInvalidBorder}, ${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 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 },\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":["_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 },\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 '&::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 '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputInvalidBorder}, ${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 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 },\n end: {\n right: '0',\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\n"],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
-
|
|
3
|
+
// components/Input/Input.vanilla.css.ts
|
|
4
4
|
var styledInputRecipe = createRuntimeFn({
|
|
5
5
|
defaultClassName: "_1st6suv1 _1st6suv0",
|
|
6
6
|
variantClassNames: {
|
|
@@ -101,7 +101,6 @@ var adornmentWrapperRecipe = createRuntimeFn({
|
|
|
101
101
|
defaultVariants: { size: "medium" },
|
|
102
102
|
compoundVariants: []
|
|
103
103
|
});
|
|
104
|
-
//#endregion
|
|
105
104
|
export { adornmentWrapperRecipe, inputWrapperRecipe, styledInputRecipe };
|
|
106
105
|
|
|
107
106
|
//# sourceMappingURL=Input.vanilla.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.vanilla.css.js","names":[],"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 },\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 '&::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 '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputInvalidBorder}, ${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 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 },\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":["_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 },\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 '&::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 '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputInvalidBorder}, ${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 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 },\n end: {\n right: '0',\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\n"],"mappings":""}
|
|
@@ -4,7 +4,7 @@ import { adornmentWrapperRecipe, inputWrapperRecipe, styledInputRecipe } from ".
|
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// components/Input/Input.vanilla.tsx
|
|
8
8
|
var InputVanilla = React.forwardRef(({ size, startAdornment, endAdornment, css, variant, state, cursor, className, style, ...props }, forwardedRef) => {
|
|
9
9
|
const inputRef = React.useRef(null);
|
|
10
10
|
const { colors } = useVanillaExtractTheme();
|
|
@@ -65,7 +65,6 @@ var InputVanilla = React.forwardRef(({ size, startAdornment, endAdornment, css,
|
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
67
|
InputVanilla.displayName = "InputVanilla";
|
|
68
|
-
//#endregion
|
|
69
68
|
export { InputVanilla };
|
|
70
69
|
|
|
71
70
|
//# sourceMappingURL=Input.vanilla.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.vanilla.js","names":[],"sources":["../../../components/Input/Input.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport React from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { adornmentWrapperRecipe, inputWrapperRecipe, styledInputRecipe } from './Input.vanilla.css';\n\ntype StyledInputRecipeVariants = NonNullable<RecipeVariants<typeof styledInputRecipe>>;\n\nexport interface InputVanillaOwnProps extends CSSProps {\n size?: StyledInputRecipeVariants['size'];\n variant?: StyledInputRecipeVariants['variant'];\n state?: StyledInputRecipeVariants['state'];\n cursor?: StyledInputRecipeVariants['cursor'];\n startAdornment?: React.ReactNode;\n endAdornment?: React.ReactNode;\n type?: string;\n}\n\nexport type InputVanillaProps = Omit<React.InputHTMLAttributes<any>, 'size'> & InputVanillaOwnProps;\n\nexport interface InputVanillaHandle extends HTMLInputElement {\n clear: () => void;\n}\n\nexport const InputVanilla = React.forwardRef<InputVanillaHandle, InputVanillaProps>(\n (\n { size, startAdornment, endAdornment, css, variant, state, cursor, className, style, ...props },\n forwardedRef,\n ) => {\n const inputRef = React.useRef<InputVanillaHandle>(null);\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n\n React.useImperativeHandle(forwardedRef, () => {\n const { current } = inputRef;\n if (current) {\n current.clear = () => {\n current.value = '';\n };\n }\n return current as InputVanillaHandle;\n }, [inputRef]);\n\n const hasStartAdornment = React.useMemo(() => Boolean(startAdornment), [startAdornment]);\n const hasEndAdornment = React.useMemo(() => Boolean(endAdornment), [endAdornment]);\n\n const inputWrapperClass = inputWrapperRecipe({\n disabled: props.disabled,\n state,\n size,\n });\n\n const styledInputClass = styledInputRecipe({\n size,\n variant,\n state,\n cursor,\n startAdornment: hasStartAdornment,\n endAdornment: hasEndAdornment,\n });\n\n const adornmentWrapperStartClass = adornmentWrapperRecipe({\n size,\n variant: 'start',\n });\n\n const adornmentWrapperEndClass = adornmentWrapperRecipe({\n size,\n variant: 'end',\n });\n\n return (\n <div className={`${inputWrapperClass} ${className || ''}`.trim()} style={mergedStyles}>\n {hasStartAdornment && <div className={adornmentWrapperStartClass}>{startAdornment}</div>}\n\n <input ref={inputRef} className={styledInputClass} {...props} />\n\n {hasEndAdornment && <div className={adornmentWrapperEndClass}>{endAdornment}</div>}\n </div>\n );\n },\n);\n\nInputVanilla.displayName = 'InputVanilla';\n"],"mappings":";;;;;;;AA0BA,IAAa,eAAe,MAAM,YAE9B,EAAE,MAAM,gBAAgB,cAAc,KAAK,SAAS,OAAO,QAAQ,WAAW,OAAO,GAAG,SACxF,iBACG;CACH,MAAM,WAAW,MAAM,OAA2B,IAAI;CACtD,MAAM,EAAE,WAAW,uBAAuB;CAC1C,MAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;CAC7D,MAAM,eAAe;EAAE,GAAG;EAAW,GAAG;EAAO,GAAG,iBAAiB,IAAI;CAAE;CAEzE,MAAM,oBAAoB,oBAAoB;EAC5C,MAAM,EAAE,YAAY;EACpB,IAAI,SACF,QAAQ,cAAc;GACpB,QAAQ,QAAQ;EAClB;EAEF,OAAO;CACT,GAAG,CAAC,QAAQ,CAAC;CAEb,MAAM,oBAAoB,MAAM,cAAc,QAAQ,cAAc,GAAG,CAAC,cAAc,CAAC;CACvF,MAAM,kBAAkB,MAAM,cAAc,QAAQ,YAAY,GAAG,CAAC,YAAY,CAAC;CAEjF,MAAM,oBAAoB,mBAAmB;EAC3C,UAAU,MAAM;EAChB;EACA;CACF,CAAC;CAED,MAAM,mBAAmB,kBAAkB;EACzC;EACA;EACA;EACA;EACA,gBAAgB;EAChB,cAAc;CAChB,CAAC;CAED,MAAM,6BAA6B,uBAAuB;EACxD;EACA,SAAS;CACX,CAAC;CAED,MAAM,2BAA2B,uBAAuB;EACtD;EACA,SAAS;CACX,CAAC;CAED,OACE,qBAAC,OAAD;EAAK,WAAW,GAAG,kBAAkB,GAAG,aAAa,KAAK,KAAK;EAAG,OAAO;
|
|
1
|
+
{"version":3,"file":"Input.vanilla.js","names":[],"sources":["../../../components/Input/Input.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport React from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { adornmentWrapperRecipe, inputWrapperRecipe, styledInputRecipe } from './Input.vanilla.css';\n\ntype StyledInputRecipeVariants = NonNullable<RecipeVariants<typeof styledInputRecipe>>;\n\nexport interface InputVanillaOwnProps extends CSSProps {\n size?: StyledInputRecipeVariants['size'];\n variant?: StyledInputRecipeVariants['variant'];\n state?: StyledInputRecipeVariants['state'];\n cursor?: StyledInputRecipeVariants['cursor'];\n startAdornment?: React.ReactNode;\n endAdornment?: React.ReactNode;\n type?: string;\n}\n\nexport type InputVanillaProps = Omit<React.InputHTMLAttributes<any>, 'size'> & InputVanillaOwnProps;\n\nexport interface InputVanillaHandle extends HTMLInputElement {\n clear: () => void;\n}\n\nexport const InputVanilla = React.forwardRef<InputVanillaHandle, InputVanillaProps>(\n (\n { size, startAdornment, endAdornment, css, variant, state, cursor, className, style, ...props },\n forwardedRef,\n ) => {\n const inputRef = React.useRef<InputVanillaHandle>(null);\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n\n React.useImperativeHandle(forwardedRef, () => {\n const { current } = inputRef;\n if (current) {\n current.clear = () => {\n current.value = '';\n };\n }\n return current as InputVanillaHandle;\n }, [inputRef]);\n\n const hasStartAdornment = React.useMemo(() => Boolean(startAdornment), [startAdornment]);\n const hasEndAdornment = React.useMemo(() => Boolean(endAdornment), [endAdornment]);\n\n const inputWrapperClass = inputWrapperRecipe({\n disabled: props.disabled,\n state,\n size,\n });\n\n const styledInputClass = styledInputRecipe({\n size,\n variant,\n state,\n cursor,\n startAdornment: hasStartAdornment,\n endAdornment: hasEndAdornment,\n });\n\n const adornmentWrapperStartClass = adornmentWrapperRecipe({\n size,\n variant: 'start',\n });\n\n const adornmentWrapperEndClass = adornmentWrapperRecipe({\n size,\n variant: 'end',\n });\n\n return (\n <div className={`${inputWrapperClass} ${className || ''}`.trim()} style={mergedStyles}>\n {hasStartAdornment && <div className={adornmentWrapperStartClass}>{startAdornment}</div>}\n\n <input ref={inputRef} className={styledInputClass} {...props} />\n\n {hasEndAdornment && <div className={adornmentWrapperEndClass}>{endAdornment}</div>}\n </div>\n );\n },\n);\n\nInputVanilla.displayName = 'InputVanilla';\n"],"mappings":";;;;;;;AA0BA,IAAa,eAAe,MAAM,YAE9B,EAAE,MAAM,gBAAgB,cAAc,KAAK,SAAS,OAAO,QAAQ,WAAW,OAAO,GAAG,SACxF,iBACG;CACH,MAAM,WAAW,MAAM,OAA2B,IAAI;CACtD,MAAM,EAAE,WAAW,uBAAuB;CAC1C,MAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;CAC7D,MAAM,eAAe;EAAE,GAAG;EAAW,GAAG;EAAO,GAAG,iBAAiB,IAAI;CAAE;CAEzE,MAAM,oBAAoB,oBAAoB;EAC5C,MAAM,EAAE,YAAY;EACpB,IAAI,SACF,QAAQ,cAAc;GACpB,QAAQ,QAAQ;EAClB;EAEF,OAAO;CACT,GAAG,CAAC,QAAQ,CAAC;CAEb,MAAM,oBAAoB,MAAM,cAAc,QAAQ,cAAc,GAAG,CAAC,cAAc,CAAC;CACvF,MAAM,kBAAkB,MAAM,cAAc,QAAQ,YAAY,GAAG,CAAC,YAAY,CAAC;CAEjF,MAAM,oBAAoB,mBAAmB;EAC3C,UAAU,MAAM;EAChB;EACA;CACF,CAAC;CAED,MAAM,mBAAmB,kBAAkB;EACzC;EACA;EACA;EACA;EACA,gBAAgB;EAChB,cAAc;CAChB,CAAC;CAED,MAAM,6BAA6B,uBAAuB;EACxD;EACA,SAAS;CACX,CAAC;CAED,MAAM,2BAA2B,uBAAuB;EACtD;EACA,SAAS;CACX,CAAC;CAED,OACE,qBAAC,OAAD;EAAK,WAAW,GAAG,kBAAkB,GAAG,aAAa,KAAK,KAAK;EAAG,OAAO;EAAzE,UAAA;GACG,qBAAqB,oBAAC,OAAD;IAAK,WAAW;IAA6B,UAAA;GAAoB,CAAA;GAEvF,oBAAC,SAAD;IAAO,KAAK;IAAU,WAAW;IAAkB,GAAI;GAAQ,CAAA;GAE9D,mBAAmB,oBAAC,OAAD;IAAK,WAAW;IAA2B,UAAA;GAAkB,CAAA;EAC9E;;AAET,CACF;AAEA,aAAa,cAAc"}
|
|
@@ -3,7 +3,7 @@ const require_stitches_config = require("../../stitches.config.cjs");
|
|
|
3
3
|
const require_Text = require("../Text/Text.cjs");
|
|
4
4
|
let _radix_ui_react_label = require("@radix-ui/react-label");
|
|
5
5
|
_radix_ui_react_label = require_runtime.__toESM(_radix_ui_react_label, 1);
|
|
6
|
-
|
|
6
|
+
// components/Label/Label.tsx
|
|
7
7
|
var Label = require_stitches_config.styled(_radix_ui_react_label.Root, require_Text.Text, {
|
|
8
8
|
display: "inline-block",
|
|
9
9
|
verticalAlign: "middle",
|
|
@@ -16,7 +16,6 @@ var Label = require_stitches_config.styled(_radix_ui_react_label.Root, require_T
|
|
|
16
16
|
transform: "capitalize"
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
//#endregion
|
|
20
19
|
exports.Label = Label;
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=Label.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.cjs","names":[],"sources":["../../../components/Label/Label.tsx"],"sourcesContent":["import * as LabelPrimitive from '@radix-ui/react-label';\n\nimport { styled } from '../../stitches.config';\nimport { Text } from '../Text';\n\nexport const Label = styled(LabelPrimitive.Root, Text, {\n display: 'inline-block',\n verticalAlign: 'middle',\n cursor: 'default',\n fontWeight: '$medium',\n lineHeight: 2.18,\n\n defaultVariants: {\n size: '0',\n variant: 'subtle',\n transform: 'capitalize',\n },\n});\n"],"mappings":";;;;;;AAKA,IAAa,
|
|
1
|
+
{"version":3,"file":"Label.cjs","names":["styled","LabelPrimitive","Text"],"sources":["../../../components/Label/Label.tsx"],"sourcesContent":["import * as LabelPrimitive from '@radix-ui/react-label';\n\nimport { styled } from '../../stitches.config';\nimport { Text } from '../Text';\n\nexport const Label = styled(LabelPrimitive.Root, Text, {\n display: 'inline-block',\n verticalAlign: 'middle',\n cursor: 'default',\n fontWeight: '$medium',\n lineHeight: 2.18,\n\n defaultVariants: {\n size: '0',\n variant: 'subtle',\n transform: 'capitalize',\n },\n});\n"],"mappings":";;;;;;AAKA,IAAa,QAAQA,wBAAAA,OAAOC,sBAAe,MAAMC,aAAAA,MAAM;CACrD,SAAS;CACT,eAAe;CACf,QAAQ;CACR,YAAY;CACZ,YAAY;CAEZ,iBAAiB;EACf,MAAM;EACN,SAAS;EACT,WAAW;CACb;AACF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { styled } from "../../stitches.config.js";
|
|
2
2
|
import { Text } from "../Text/Text.js";
|
|
3
3
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
4
|
-
|
|
4
|
+
// components/Label/Label.tsx
|
|
5
5
|
var Label = styled(LabelPrimitive.Root, Text, {
|
|
6
6
|
display: "inline-block",
|
|
7
7
|
verticalAlign: "middle",
|
|
@@ -14,7 +14,6 @@ var Label = styled(LabelPrimitive.Root, Text, {
|
|
|
14
14
|
transform: "capitalize"
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
//#endregion
|
|
18
17
|
export { Label };
|
|
19
18
|
|
|
20
19
|
//# sourceMappingURL=Label.js.map
|
|
@@ -4,7 +4,7 @@ const require_Label_vanilla_css = require("./Label.vanilla.css.cjs");
|
|
|
4
4
|
let react = require("react");
|
|
5
5
|
let _vanilla_extract_dynamic = require("@vanilla-extract/dynamic");
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
-
|
|
7
|
+
// components/Label/Label.vanilla.tsx
|
|
8
8
|
var LabelVanillaComponentImpl = (0, react.forwardRef)(({ as, className, css, style, size, weight, variant, gradient, transform, noWrap, ...props }, ref) => {
|
|
9
9
|
const Component = as || "label";
|
|
10
10
|
const { colors } = require_themeContext.useVanillaExtractTheme();
|
|
@@ -14,23 +14,23 @@ var LabelVanillaComponentImpl = (0, react.forwardRef)(({ as, className, css, sty
|
|
|
14
14
|
...style,
|
|
15
15
|
...(0, _vanilla_extract_dynamic.assignInlineVars)(vars)
|
|
16
16
|
};
|
|
17
|
+
const recipeClass = require_Label_vanilla_css.labelRecipe({
|
|
18
|
+
size,
|
|
19
|
+
weight,
|
|
20
|
+
variant,
|
|
21
|
+
gradient,
|
|
22
|
+
transform,
|
|
23
|
+
noWrap
|
|
24
|
+
});
|
|
17
25
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
|
|
18
26
|
ref,
|
|
19
|
-
className: `${
|
|
20
|
-
size,
|
|
21
|
-
weight,
|
|
22
|
-
variant,
|
|
23
|
-
gradient,
|
|
24
|
-
transform,
|
|
25
|
-
noWrap
|
|
26
|
-
})} ${className || ""}`.trim(),
|
|
27
|
+
className: `${recipeClass} ${className || ""}`.trim(),
|
|
27
28
|
style: mergedStyles,
|
|
28
29
|
...props
|
|
29
30
|
});
|
|
30
31
|
});
|
|
31
32
|
LabelVanillaComponentImpl.displayName = "LabelVanilla";
|
|
32
33
|
var LabelVanilla = LabelVanillaComponentImpl;
|
|
33
|
-
//#endregion
|
|
34
34
|
exports.LabelVanilla = LabelVanilla;
|
|
35
35
|
|
|
36
36
|
//# sourceMappingURL=Label.vanilla.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.vanilla.cjs","names":[],"sources":["../../../components/Label/Label.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { labelRecipe } from './Label.vanilla.css';\n\ntype LabelRecipeVariants = NonNullable<RecipeVariants<typeof labelRecipe>>;\n\ninterface LabelOwnProps extends LabelRecipeVariants, CSSProps {}\n\nexport type LabelVanillaProps<C extends ElementType = 'label'> = PolymorphicComponentProps<\n C,\n LabelOwnProps\n>;\n\ntype LabelVanillaComponent = PolymorphicComponent<'label', LabelVanillaProps<ElementType>>;\n\nconst LabelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'label'>(\n {\n as,\n className,\n css,\n style,\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n ...props\n }: LabelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'label';\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = labelRecipe({ size, weight, variant, gradient, transform, noWrap });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nLabelVanillaComponentImpl.displayName = 'LabelVanilla';\n\nexport const LabelVanilla = LabelVanillaComponentImpl as LabelVanillaComponent;\n"],"mappings":";;;;;;;AAwBA,IAAM,6BAAA,
|
|
1
|
+
{"version":3,"file":"Label.vanilla.cjs","names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","labelRecipe"],"sources":["../../../components/Label/Label.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { labelRecipe } from './Label.vanilla.css';\n\ntype LabelRecipeVariants = NonNullable<RecipeVariants<typeof labelRecipe>>;\n\ninterface LabelOwnProps extends LabelRecipeVariants, CSSProps {}\n\nexport type LabelVanillaProps<C extends ElementType = 'label'> = PolymorphicComponentProps<\n C,\n LabelOwnProps\n>;\n\ntype LabelVanillaComponent = PolymorphicComponent<'label', LabelVanillaProps<ElementType>>;\n\nconst LabelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'label'>(\n {\n as,\n className,\n css,\n style,\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n ...props\n }: LabelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'label';\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = labelRecipe({ size, weight, variant, gradient, transform, noWrap });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nLabelVanillaComponentImpl.displayName = 'LabelVanilla';\n\nexport const LabelVanilla = LabelVanillaComponentImpl as LabelVanillaComponent;\n"],"mappings":";;;;;;;AAwBA,IAAM,6BAAA,GAA4BA,MAAAA,WAAAA,EAE9B,EACE,IACA,WACA,KACA,OACA,MACA,QACA,SACA,UACA,WACA,QACA,GAAG,SAEL,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAWC,qBAAAA,uBAAuB;CAE1C,MAAM,EAAE,OAAO,WAAW,SAASC,iBAAAA,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,IAAA,GAAGC,yBAAAA,iBAAAA,CAAiB,IAAI;CAC1B;CAEA,MAAM,cAAcC,0BAAAA,YAAY;EAAE;EAAM;EAAQ;EAAS;EAAU;EAAW;CAAO,CAAC;CAEtF,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EACO;EACL,WAAW,GAAG,YAAY,GAAG,aAAa,KAAK,KAAK;EACpD,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,0BAA0B,cAAc;AAExC,IAAa,eAAe"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
;/* empty css */
|
|
2
|
-
|
|
2
|
+
// components/Label/Label.vanilla.css.ts
|
|
3
3
|
var labelRecipe = (0, require("@vanilla-extract/recipes/createRuntimeFn").createRuntimeFn)({
|
|
4
4
|
defaultClassName: "_14umx1r1 _14umx1r0",
|
|
5
5
|
variantClassNames: {
|
|
@@ -49,7 +49,6 @@ var labelRecipe = (0, require("@vanilla-extract/recipes/createRuntimeFn").create
|
|
|
49
49
|
},
|
|
50
50
|
compoundVariants: []
|
|
51
51
|
});
|
|
52
|
-
//#endregion
|
|
53
52
|
exports.labelRecipe = labelRecipe;
|
|
54
53
|
|
|
55
54
|
//# sourceMappingURL=Label.vanilla.css.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.vanilla.css.cjs","names":[],"sources":["../../../components/Label/Label.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport {\n colorVariants,\n gradientVariants,\n noWrapVariants,\n sizeVariants,\n transformVariants,\n weightVariants,\n} from '../../styles/textVariants.css';\nimport { tokens } from '../../styles/tokens.css';\n\n// Base label styles (inherits from Text component with label-specific overrides)\nconst labelBase = style({\n margin: '0',\n fontFamily: tokens.fonts.rubik,\n fontVariantNumeric: 'tabular-nums',\n display: 'inline-block',\n verticalAlign: 'middle',\n cursor: 'default',\n fontWeight: tokens.fontWeights.medium,\n lineHeight: '2.18',\n});\n\nexport const labelRecipe = recipe({\n base: labelBase,\n\n variants: {\n size: sizeVariants,\n weight: weightVariants,\n variant: colorVariants,\n gradient: gradientVariants,\n transform: transformVariants,\n noWrap: noWrapVariants,\n },\n\n defaultVariants: {\n size: '0',\n variant: 'subtle',\n transform: 'capitalize',\n },\n});\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Label.vanilla.css.cjs","names":["_7a468"],"sources":["../../../components/Label/Label.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport {\n colorVariants,\n gradientVariants,\n noWrapVariants,\n sizeVariants,\n transformVariants,\n weightVariants,\n} from '../../styles/textVariants.css';\nimport { tokens } from '../../styles/tokens.css';\n\n// Base label styles (inherits from Text component with label-specific overrides)\nconst labelBase = style({\n margin: '0',\n fontFamily: tokens.fonts.rubik,\n fontVariantNumeric: 'tabular-nums',\n display: 'inline-block',\n verticalAlign: 'middle',\n cursor: 'default',\n fontWeight: tokens.fontWeights.medium,\n lineHeight: '2.18',\n});\n\nexport const labelRecipe = recipe({\n base: labelBase,\n\n variants: {\n size: sizeVariants,\n weight: weightVariants,\n variant: colorVariants,\n gradient: gradientVariants,\n transform: transformVariants,\n noWrap: noWrapVariants,\n },\n\n defaultVariants: {\n size: '0',\n variant: 'subtle',\n transform: 'capitalize',\n },\n});\n"],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
-
|
|
3
|
+
// components/Label/Label.vanilla.css.ts
|
|
4
4
|
var labelRecipe = createRuntimeFn({
|
|
5
5
|
defaultClassName: "_14umx1r1 _14umx1r0",
|
|
6
6
|
variantClassNames: {
|
|
@@ -50,7 +50,6 @@ var labelRecipe = createRuntimeFn({
|
|
|
50
50
|
},
|
|
51
51
|
compoundVariants: []
|
|
52
52
|
});
|
|
53
|
-
//#endregion
|
|
54
53
|
export { labelRecipe };
|
|
55
54
|
|
|
56
55
|
//# sourceMappingURL=Label.vanilla.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.vanilla.css.js","names":[],"sources":["../../../components/Label/Label.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport {\n colorVariants,\n gradientVariants,\n noWrapVariants,\n sizeVariants,\n transformVariants,\n weightVariants,\n} from '../../styles/textVariants.css';\nimport { tokens } from '../../styles/tokens.css';\n\n// Base label styles (inherits from Text component with label-specific overrides)\nconst labelBase = style({\n margin: '0',\n fontFamily: tokens.fonts.rubik,\n fontVariantNumeric: 'tabular-nums',\n display: 'inline-block',\n verticalAlign: 'middle',\n cursor: 'default',\n fontWeight: tokens.fontWeights.medium,\n lineHeight: '2.18',\n});\n\nexport const labelRecipe = recipe({\n base: labelBase,\n\n variants: {\n size: sizeVariants,\n weight: weightVariants,\n variant: colorVariants,\n gradient: gradientVariants,\n transform: transformVariants,\n noWrap: noWrapVariants,\n },\n\n defaultVariants: {\n size: '0',\n variant: 'subtle',\n transform: 'capitalize',\n },\n});\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Label.vanilla.css.js","names":["_7a468"],"sources":["../../../components/Label/Label.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport {\n colorVariants,\n gradientVariants,\n noWrapVariants,\n sizeVariants,\n transformVariants,\n weightVariants,\n} from '../../styles/textVariants.css';\nimport { tokens } from '../../styles/tokens.css';\n\n// Base label styles (inherits from Text component with label-specific overrides)\nconst labelBase = style({\n margin: '0',\n fontFamily: tokens.fonts.rubik,\n fontVariantNumeric: 'tabular-nums',\n display: 'inline-block',\n verticalAlign: 'middle',\n cursor: 'default',\n fontWeight: tokens.fontWeights.medium,\n lineHeight: '2.18',\n});\n\nexport const labelRecipe = recipe({\n base: labelBase,\n\n variants: {\n size: sizeVariants,\n weight: weightVariants,\n variant: colorVariants,\n gradient: gradientVariants,\n transform: transformVariants,\n noWrap: noWrapVariants,\n },\n\n defaultVariants: {\n size: '0',\n variant: 'subtle',\n transform: 'capitalize',\n },\n});\n"],"mappings":""}
|
|
@@ -4,7 +4,7 @@ import { labelRecipe } from "./Label.vanilla.css.js";
|
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
5
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// components/Label/Label.vanilla.tsx
|
|
8
8
|
var LabelVanillaComponentImpl = forwardRef(({ as, className, css, style, size, weight, variant, gradient, transform, noWrap, ...props }, ref) => {
|
|
9
9
|
const Component = as || "label";
|
|
10
10
|
const { colors } = useVanillaExtractTheme();
|
|
@@ -14,23 +14,23 @@ var LabelVanillaComponentImpl = forwardRef(({ as, className, css, style, size, w
|
|
|
14
14
|
...style,
|
|
15
15
|
...assignInlineVars(vars)
|
|
16
16
|
};
|
|
17
|
+
const recipeClass = labelRecipe({
|
|
18
|
+
size,
|
|
19
|
+
weight,
|
|
20
|
+
variant,
|
|
21
|
+
gradient,
|
|
22
|
+
transform,
|
|
23
|
+
noWrap
|
|
24
|
+
});
|
|
17
25
|
return /* @__PURE__ */ jsx(Component, {
|
|
18
26
|
ref,
|
|
19
|
-
className: `${
|
|
20
|
-
size,
|
|
21
|
-
weight,
|
|
22
|
-
variant,
|
|
23
|
-
gradient,
|
|
24
|
-
transform,
|
|
25
|
-
noWrap
|
|
26
|
-
})} ${className || ""}`.trim(),
|
|
27
|
+
className: `${recipeClass} ${className || ""}`.trim(),
|
|
27
28
|
style: mergedStyles,
|
|
28
29
|
...props
|
|
29
30
|
});
|
|
30
31
|
});
|
|
31
32
|
LabelVanillaComponentImpl.displayName = "LabelVanilla";
|
|
32
33
|
var LabelVanilla = LabelVanillaComponentImpl;
|
|
33
|
-
//#endregion
|
|
34
34
|
export { LabelVanilla };
|
|
35
35
|
|
|
36
36
|
//# sourceMappingURL=Label.vanilla.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.vanilla.js","names":[],"sources":["../../../components/Label/Label.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { labelRecipe } from './Label.vanilla.css';\n\ntype LabelRecipeVariants = NonNullable<RecipeVariants<typeof labelRecipe>>;\n\ninterface LabelOwnProps extends LabelRecipeVariants, CSSProps {}\n\nexport type LabelVanillaProps<C extends ElementType = 'label'> = PolymorphicComponentProps<\n C,\n LabelOwnProps\n>;\n\ntype LabelVanillaComponent = PolymorphicComponent<'label', LabelVanillaProps<ElementType>>;\n\nconst LabelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'label'>(\n {\n as,\n className,\n css,\n style,\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n ...props\n }: LabelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'label';\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = labelRecipe({ size, weight, variant, gradient, transform, noWrap });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nLabelVanillaComponentImpl.displayName = 'LabelVanilla';\n\nexport const LabelVanilla = LabelVanillaComponentImpl as LabelVanillaComponent;\n"],"mappings":";;;;;;;AAwBA,IAAM,4BAA4B,YAE9B,EACE,IACA,WACA,KACA,OACA,MACA,QACA,SACA,UACA,WACA,QACA,GAAG,SAEL,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAW,uBAAuB;CAE1C,MAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,GAAG,iBAAiB,IAAI;CAC1B;
|
|
1
|
+
{"version":3,"file":"Label.vanilla.js","names":[],"sources":["../../../components/Label/Label.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { labelRecipe } from './Label.vanilla.css';\n\ntype LabelRecipeVariants = NonNullable<RecipeVariants<typeof labelRecipe>>;\n\ninterface LabelOwnProps extends LabelRecipeVariants, CSSProps {}\n\nexport type LabelVanillaProps<C extends ElementType = 'label'> = PolymorphicComponentProps<\n C,\n LabelOwnProps\n>;\n\ntype LabelVanillaComponent = PolymorphicComponent<'label', LabelVanillaProps<ElementType>>;\n\nconst LabelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'label'>(\n {\n as,\n className,\n css,\n style,\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n ...props\n }: LabelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'label';\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = labelRecipe({ size, weight, variant, gradient, transform, noWrap });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nLabelVanillaComponentImpl.displayName = 'LabelVanilla';\n\nexport const LabelVanilla = LabelVanillaComponentImpl as LabelVanillaComponent;\n"],"mappings":";;;;;;;AAwBA,IAAM,4BAA4B,YAE9B,EACE,IACA,WACA,KACA,OACA,MACA,QACA,SACA,UACA,WACA,QACA,GAAG,SAEL,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAW,uBAAuB;CAE1C,MAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,GAAG,iBAAiB,IAAI;CAC1B;CAEA,MAAM,cAAc,YAAY;EAAE;EAAM;EAAQ;EAAS;EAAU;EAAW;CAAO,CAAC;CAEtF,OACE,oBAAC,WAAD;EACO;EACL,WAAW,GAAG,YAAY,GAAG,aAAa,KAAK,KAAK;EACpD,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,0BAA0B,cAAc;AAExC,IAAa,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.cjs","names":[],"sources":["../../../components/Link/Link.tsx"],"sourcesContent":["import { styled } from '../../stitches.config';\nimport { Text } from '../Text';\n\nexport const UnstyledLink = styled('a', {\n color: 'inherit',\n textDecoration: 'inherit',\n fontWeight: 'inherit',\n});\n\nexport const Link = styled('a', {\n alignItems: 'center',\n gap: '$1',\n flexShrink: 0,\n outline: 'none',\n\n textDecoration: 'underline',\n textUnderlineOffset: '3px',\n textDecorationColor: '$slate4',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n lineHeight: 'inherit',\n fontFamily: '$rubik',\n\n '@hover': {\n '&:hover': {\n textDecorationLine: 'underline',\n },\n },\n '&:focus': {\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineOffset: '2px',\n textDecorationLine: 'none',\n },\n [`& ${Text}`]: {\n color: 'inherit',\n },\n variants: {\n variant: {\n blue: {\n color: '$linkBlue',\n textDecoration: 'none',\n textDecorationColor: '$linkBlueTextDecoration',\n '&:focus': {\n outlineColor: '$linkBlueFocusOutline',\n },\n },\n primary: {\n color: '$linkPrimary',\n textDecorationColor: '$linkPrimaryTextDecoration',\n '@hover': {\n '&:hover': {\n textDecorationColor: '$linkPrimaryHoverTextDecoration',\n },\n },\n '&:focus': {\n outlineColor: '$linkPrimaryFocusOutline',\n },\n },\n subtle: {\n color: '$linkSubtle',\n textDecorationColor: '$linkSubtleTextDecoration',\n '@hover': {\n '&:hover': {\n textDecorationColor: '$linkSubtleHoverTextDecoration',\n },\n },\n '&:focus': {\n outlineColor: '$linkSubtleFocusOutline',\n },\n },\n contrast: {\n color: '$linkContrast',\n textDecorationColor: '$linkContrastTextDecoration',\n '@hover': {\n '&:hover': {\n textDecorationColor: '$linkContrastHoverTextDecoration',\n },\n },\n '&:focus': {\n outlineColor: '$linkContrastFocusOutline',\n },\n },\n },\n },\n defaultVariants: {\n variant: 'contrast',\n },\n});\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"Link.cjs","names":["styled","Text"],"sources":["../../../components/Link/Link.tsx"],"sourcesContent":["import { styled } from '../../stitches.config';\nimport { Text } from '../Text';\n\nexport const UnstyledLink = styled('a', {\n color: 'inherit',\n textDecoration: 'inherit',\n fontWeight: 'inherit',\n});\n\nexport const Link = styled('a', {\n alignItems: 'center',\n gap: '$1',\n flexShrink: 0,\n outline: 'none',\n\n textDecoration: 'underline',\n textUnderlineOffset: '3px',\n textDecorationColor: '$slate4',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n lineHeight: 'inherit',\n fontFamily: '$rubik',\n\n '@hover': {\n '&:hover': {\n textDecorationLine: 'underline',\n },\n },\n '&:focus': {\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineOffset: '2px',\n textDecorationLine: 'none',\n },\n [`& ${Text}`]: {\n color: 'inherit',\n },\n variants: {\n variant: {\n blue: {\n color: '$linkBlue',\n textDecoration: 'none',\n textDecorationColor: '$linkBlueTextDecoration',\n '&:focus': {\n outlineColor: '$linkBlueFocusOutline',\n },\n },\n primary: {\n color: '$linkPrimary',\n textDecorationColor: '$linkPrimaryTextDecoration',\n '@hover': {\n '&:hover': {\n textDecorationColor: '$linkPrimaryHoverTextDecoration',\n },\n },\n '&:focus': {\n outlineColor: '$linkPrimaryFocusOutline',\n },\n },\n subtle: {\n color: '$linkSubtle',\n textDecorationColor: '$linkSubtleTextDecoration',\n '@hover': {\n '&:hover': {\n textDecorationColor: '$linkSubtleHoverTextDecoration',\n },\n },\n '&:focus': {\n outlineColor: '$linkSubtleFocusOutline',\n },\n },\n contrast: {\n color: '$linkContrast',\n textDecorationColor: '$linkContrastTextDecoration',\n '@hover': {\n '&:hover': {\n textDecorationColor: '$linkContrastHoverTextDecoration',\n },\n },\n '&:focus': {\n outlineColor: '$linkContrastFocusOutline',\n },\n },\n },\n },\n defaultVariants: {\n variant: 'contrast',\n },\n});\n"],"mappings":";;AAG4BA,wBAAAA,OAAO,KAAK;CACtC,OAAO;CACP,gBAAgB;CAChB,YAAY;AACd,CAAC;AAED,IAAa,OAAOA,wBAAAA,OAAO,KAAK;CAC9B,YAAY;CACZ,KAAK;CACL,YAAY;CACZ,SAAS;CAET,gBAAgB;CAChB,qBAAqB;CACrB,qBAAqB;CACrB,yBAAyB;CACzB,YAAY;CACZ,YAAY;CAEZ,UAAU,EACR,WAAW,EACT,oBAAoB,YACtB,EACF;CACA,WAAW;EACT,cAAc;EACd,cAAc;EACd,eAAe;EACf,oBAAoB;CACtB;EACC,KAAKC,aAAAA,SAAS,EACb,OAAO,UACT;CACA,UAAU,EACR,SAAS;EACP,MAAM;GACJ,OAAO;GACP,gBAAgB;GAChB,qBAAqB;GACrB,WAAW,EACT,cAAc,wBAChB;EACF;EACA,SAAS;GACP,OAAO;GACP,qBAAqB;GACrB,UAAU,EACR,WAAW,EACT,qBAAqB,kCACvB,EACF;GACA,WAAW,EACT,cAAc,2BAChB;EACF;EACA,QAAQ;GACN,OAAO;GACP,qBAAqB;GACrB,UAAU,EACR,WAAW,EACT,qBAAqB,iCACvB,EACF;GACA,WAAW,EACT,cAAc,0BAChB;EACF;EACA,UAAU;GACR,OAAO;GACP,qBAAqB;GACrB,UAAU,EACR,WAAW,EACT,qBAAqB,mCACvB,EACF;GACA,WAAW,EACT,cAAc,4BAChB;EACF;CACF,EACF;CACA,iBAAiB,EACf,SAAS,WACX;AACF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
2
|
let tinycolor2 = require("tinycolor2");
|
|
3
3
|
tinycolor2 = require_runtime.__toESM(tinycolor2, 1);
|
|
4
|
-
|
|
4
|
+
// components/Link/Link.themes.ts
|
|
5
5
|
var Theme;
|
|
6
6
|
(function(_Theme) {
|
|
7
7
|
_Theme.getLight = (primaryColor) => ({
|
|
@@ -41,7 +41,6 @@ var Theme;
|
|
|
41
41
|
linkPrimaryFocusOutline: (0, tinycolor2.default)(primaryColor.value).lighten(16).toHslString()
|
|
42
42
|
});
|
|
43
43
|
})(Theme || (Theme = {}));
|
|
44
|
-
//#endregion
|
|
45
44
|
Object.defineProperty(exports, "Theme", {
|
|
46
45
|
enumerable: true,
|
|
47
46
|
get: function() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.themes.cjs","names":[],"sources":["../../../components/Link/Link.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n linkSubtle: Property.Color;\n linkBlueTextDecoration: Property.Color;\n linkBlueHoverTextDecoration: Property.Color;\n linkBlueFocusOutline: Property.Color;\n linkContrast: Property.Color;\n linkContrastTextDecoration: Property.Color;\n linkContrastHoverTextDecoration: Property.Color;\n linkContrastFocusOutline: Property.Color;\n linkSubtleTextDecoration: Property.Color;\n linkSubtleHoverTextDecoration: Property.Color;\n linkSubtleFocusOutline: Property.Color;\n linkPrimary: Property.Color;\n linkPrimaryTextDecoration: Property.Color;\n linkPrimaryHoverTextDecoration: Property.Color;\n linkPrimaryFocusOutline: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n linkBlue: '$blue11',\n linkBlueTextDecoration: '$blue7',\n linkBlueHoverTextDecoration: '$blue11',\n linkBlueFocusOutline: '$blue8',\n linkContrast: '$hiContrast',\n linkContrastTextDecoration: '$slate8',\n linkContrastHoverTextDecoration: '$hiContrast',\n linkContrastFocusOutline: '$slate8',\n linkSubtle: '$deepBlue7',\n linkSubtleTextDecoration: '$deepBlue5',\n linkSubtleHoverTextDecoration: '$deepBlue7',\n linkSubtleFocusOutline: '$deepBlue4',\n linkPrimary: tinycolor(primaryColor.value).darken(26).toHslString(),\n linkPrimaryTextDecoration: tinycolor(primaryColor.value).darken(16).toHslString(),\n linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(26).toHslString(),\n linkPrimaryFocusOutline: tinycolor(primaryColor.value).darken(16).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n linkBlue: '$blue11',\n linkBlueTextDecoration: '$blue8',\n linkBlueHoverTextDecoration: '$blue11',\n linkBlueFocusOutline: '$blue8',\n linkContrast: '$hiContrast',\n linkContrastTextDecoration: '$slate8',\n linkContrastHoverTextDecoration: '$hiContrast',\n linkContrastFocusOutline: '$slate8',\n linkSubtle: '$deepBlue6',\n linkSubtleTextDecoration: '$deepBlue4',\n linkSubtleHoverTextDecoration: '$deepBlue5',\n linkSubtleFocusOutline: '$deepBlue3',\n linkPrimary: '$primary',\n linkPrimaryTextDecoration: tinycolor(primaryColor.value).lighten(16).toHslString(),\n linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(20).toHslString(),\n linkPrimaryFocusOutline: tinycolor(primaryColor.value).lighten(16).toHslString(),\n });\n}\n"],"mappings":";;;;AAIO,
|
|
1
|
+
{"version":3,"file":"Link.themes.cjs","names":["tinycolor"],"sources":["../../../components/Link/Link.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n linkSubtle: Property.Color;\n linkBlueTextDecoration: Property.Color;\n linkBlueHoverTextDecoration: Property.Color;\n linkBlueFocusOutline: Property.Color;\n linkContrast: Property.Color;\n linkContrastTextDecoration: Property.Color;\n linkContrastHoverTextDecoration: Property.Color;\n linkContrastFocusOutline: Property.Color;\n linkSubtleTextDecoration: Property.Color;\n linkSubtleHoverTextDecoration: Property.Color;\n linkSubtleFocusOutline: Property.Color;\n linkPrimary: Property.Color;\n linkPrimaryTextDecoration: Property.Color;\n linkPrimaryHoverTextDecoration: Property.Color;\n linkPrimaryFocusOutline: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n linkBlue: '$blue11',\n linkBlueTextDecoration: '$blue7',\n linkBlueHoverTextDecoration: '$blue11',\n linkBlueFocusOutline: '$blue8',\n linkContrast: '$hiContrast',\n linkContrastTextDecoration: '$slate8',\n linkContrastHoverTextDecoration: '$hiContrast',\n linkContrastFocusOutline: '$slate8',\n linkSubtle: '$deepBlue7',\n linkSubtleTextDecoration: '$deepBlue5',\n linkSubtleHoverTextDecoration: '$deepBlue7',\n linkSubtleFocusOutline: '$deepBlue4',\n linkPrimary: tinycolor(primaryColor.value).darken(26).toHslString(),\n linkPrimaryTextDecoration: tinycolor(primaryColor.value).darken(16).toHslString(),\n linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(26).toHslString(),\n linkPrimaryFocusOutline: tinycolor(primaryColor.value).darken(16).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n linkBlue: '$blue11',\n linkBlueTextDecoration: '$blue8',\n linkBlueHoverTextDecoration: '$blue11',\n linkBlueFocusOutline: '$blue8',\n linkContrast: '$hiContrast',\n linkContrastTextDecoration: '$slate8',\n linkContrastHoverTextDecoration: '$hiContrast',\n linkContrastFocusOutline: '$slate8',\n linkSubtle: '$deepBlue6',\n linkSubtleTextDecoration: '$deepBlue4',\n linkSubtleHoverTextDecoration: '$deepBlue5',\n linkSubtleFocusOutline: '$deepBlue3',\n linkPrimary: '$primary',\n linkPrimaryTextDecoration: tinycolor(primaryColor.value).lighten(16).toHslString(),\n linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(20).toHslString(),\n linkPrimaryFocusOutline: tinycolor(primaryColor.value).lighten(16).toHslString(),\n });\n}\n"],"mappings":";;;;AAIO,IAAU;CAAV,SAAA,QAAA;CAqBQ,OAAA,YAAqB,kBAAkB;EAClD,UAAU;EACV,wBAAwB;EACxB,6BAA6B;EAC7B,sBAAsB;EACtB,cAAc;EACd,4BAA4B;EAC5B,iCAAiC;EACjC,0BAA0B;EAC1B,YAAY;EACZ,0BAA0B;EAC1B,+BAA+B;EAC/B,wBAAwB;EACxB,cAAA,GAAaA,WAAAA,QAAAA,CAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EAClE,4BAAA,GAA2BA,WAAAA,QAAAA,CAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EAChF,iCAAA,GAAgCA,WAAAA,QAAAA,CAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EACrF,0BAAA,GAAyBA,WAAAA,QAAAA,CAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;CAChF;CAEa,OAAA,WAAoB,kBAAkB;EACjD,UAAU;EACV,wBAAwB;EACxB,6BAA6B;EAC7B,sBAAsB;EACtB,cAAc;EACd,4BAA4B;EAC5B,iCAAiC;EACjC,0BAA0B;EAC1B,YAAY;EACZ,0BAA0B;EAC1B,+BAA+B;EAC/B,wBAAwB;EACxB,aAAa;EACb,4BAAA,GAA2BA,WAAAA,QAAAA,CAAU,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;EACjF,iCAAA,GAAgCA,WAAAA,QAAAA,CAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EACrF,0BAAA,GAAyBA,WAAAA,QAAAA,CAAU,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;CACjF;AACD,EAAA,CAAA,UAAA,QAAA,CAAA,EAAD"}
|