@traefik-labs/faency 12.2.1 → 12.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/_virtual/_rolldown/runtime.cjs +33 -0
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/colors/deepBlue.cjs +68 -59
- package/dist/colors/deepBlue.cjs.map +1 -1
- package/dist/colors/deepBlue.js +64 -59
- package/dist/colors/deepBlue.js.map +1 -1
- package/dist/colors/elevation.cjs +28 -19
- package/dist/colors/elevation.cjs.map +1 -1
- package/dist/colors/elevation.js +24 -19
- package/dist/colors/elevation.js.map +1 -1
- package/dist/colors/grayBlue.cjs +68 -59
- package/dist/colors/grayBlue.cjs.map +1 -1
- package/dist/colors/grayBlue.js +64 -59
- package/dist/colors/grayBlue.js.map +1 -1
- package/dist/colors/index.cjs +68 -83
- package/dist/colors/index.cjs.map +1 -1
- package/dist/colors/index.js +68 -85
- package/dist/colors/index.js.map +1 -1
- package/dist/colors/neon.cjs +68 -59
- package/dist/colors/neon.cjs.map +1 -1
- package/dist/colors/neon.js +64 -59
- package/dist/colors/neon.js.map +1 -1
- package/dist/colors/orange.cjs +68 -59
- package/dist/colors/orange.cjs.map +1 -1
- package/dist/colors/orange.js +64 -59
- package/dist/colors/orange.js.map +1 -1
- package/dist/colors/red.cjs +68 -59
- package/dist/colors/red.cjs.map +1 -1
- package/dist/colors/red.js +64 -59
- package/dist/colors/red.js.map +1 -1
- package/dist/components/AccessibleIcon/AccessibleIcon.cjs +8 -22
- package/dist/components/AccessibleIcon/AccessibleIcon.cjs.map +1 -1
- package/dist/components/AccessibleIcon/AccessibleIcon.js +6 -5
- package/dist/components/AccessibleIcon/AccessibleIcon.js.map +1 -1
- package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.cjs +8 -22
- package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.cjs.map +1 -1
- package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.js +6 -5
- package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.js.map +1 -1
- package/dist/components/Accordion/Accordion.cjs +113 -145
- package/dist/components/Accordion/Accordion.cjs.map +1 -1
- package/dist/components/Accordion/Accordion.js +108 -131
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/Accordion.themes.cjs +30 -21
- package/dist/components/Accordion/Accordion.themes.cjs.map +1 -1
- package/dist/components/Accordion/Accordion.themes.js +20 -19
- package/dist/components/Accordion/Accordion.themes.js.map +1 -1
- package/dist/components/Alert/Alert.cjs +15 -38
- package/dist/components/Alert/Alert.cjs.map +1 -1
- package/dist/components/Alert/Alert.js +14 -37
- package/dist/components/Alert/Alert.js.map +1 -1
- package/dist/components/AriaTable/AriaTable.cjs +154 -185
- package/dist/components/AriaTable/AriaTable.cjs.map +1 -1
- package/dist/components/AriaTable/AriaTable.js +151 -191
- package/dist/components/AriaTable/AriaTable.js.map +1 -1
- package/dist/components/Avatar/Avatar.cjs +132 -170
- package/dist/components/Avatar/Avatar.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.js +128 -152
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.cjs +42 -39
- package/dist/components/Avatar/Avatar.vanilla.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.css.cjs +50 -6
- package/dist/components/Avatar/Avatar.vanilla.css.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.css.js +49 -8
- package/dist/components/Avatar/Avatar.vanilla.css.js.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.js +38 -21
- package/dist/components/Avatar/Avatar.vanilla.js.map +1 -1
- package/dist/components/Badge/Badge.cjs +106 -132
- package/dist/components/Badge/Badge.cjs.map +1 -1
- package/dist/components/Badge/Badge.js +103 -131
- package/dist/components/Badge/Badge.js.map +1 -1
- package/dist/components/Badge/Badge.theme.cjs +10 -9
- package/dist/components/Badge/Badge.theme.cjs.map +1 -1
- package/dist/components/Badge/Badge.theme.js +11 -11
- package/dist/components/Badge/Badge.theme.js.map +1 -1
- package/dist/components/Badge/Badge.themes.cjs +24 -15
- package/dist/components/Badge/Badge.themes.cjs.map +1 -1
- package/dist/components/Badge/Badge.themes.js +14 -13
- package/dist/components/Badge/Badge.themes.js.map +1 -1
- package/dist/components/Badge/Badge.vanilla.cjs +42 -45
- package/dist/components/Badge/Badge.vanilla.cjs.map +1 -1
- package/dist/components/Badge/Badge.vanilla.css.cjs +116 -6
- package/dist/components/Badge/Badge.vanilla.css.cjs.map +1 -1
- package/dist/components/Badge/Badge.vanilla.css.js +115 -7
- package/dist/components/Badge/Badge.vanilla.css.js.map +1 -1
- package/dist/components/Badge/Badge.vanilla.js +40 -45
- package/dist/components/Badge/Badge.vanilla.js.map +1 -1
- package/dist/components/Blockquote/Blockquote.cjs +9 -8
- package/dist/components/Blockquote/Blockquote.cjs.map +1 -1
- package/dist/components/Blockquote/Blockquote.js +8 -7
- package/dist/components/Blockquote/Blockquote.js.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.cjs +35 -44
- package/dist/components/Blockquote/Blockquote.vanilla.cjs.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.css.cjs +53 -5
- package/dist/components/Blockquote/Blockquote.vanilla.css.cjs.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.css.js +53 -5
- package/dist/components/Blockquote/Blockquote.vanilla.css.js.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.js +32 -42
- package/dist/components/Blockquote/Blockquote.vanilla.js.map +1 -1
- package/dist/components/Box/Box.cjs +5 -8
- package/dist/components/Box/Box.cjs.map +1 -1
- package/dist/components/Box/Box.js +6 -8
- package/dist/components/Box/Box.js.map +1 -1
- package/dist/components/Box/Box.vanilla.cjs +28 -31
- package/dist/components/Box/Box.vanilla.cjs.map +1 -1
- package/dist/components/Box/Box.vanilla.css.cjs +4 -3
- package/dist/components/Box/Box.vanilla.css.cjs.map +1 -1
- package/dist/components/Box/Box.vanilla.css.js +5 -4
- package/dist/components/Box/Box.vanilla.css.js.map +1 -1
- package/dist/components/Box/Box.vanilla.js +25 -29
- package/dist/components/Box/Box.vanilla.js.map +1 -1
- package/dist/components/Bubble/Bubble.cjs +96 -78
- package/dist/components/Bubble/Bubble.cjs.map +1 -1
- package/dist/components/Bubble/Bubble.js +96 -80
- package/dist/components/Bubble/Bubble.js.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.cjs +32 -32
- package/dist/components/Bubble/Bubble.vanilla.cjs.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.css.cjs +32 -5
- package/dist/components/Bubble/Bubble.vanilla.css.cjs.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.css.js +32 -5
- package/dist/components/Bubble/Bubble.vanilla.css.js.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.js +29 -30
- package/dist/components/Bubble/Bubble.vanilla.js.map +1 -1
- package/dist/components/Button/Button.cjs +228 -284
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.js +225 -284
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.themes.cjs +46 -37
- package/dist/components/Button/Button.themes.cjs.map +1 -1
- package/dist/components/Button/Button.themes.js +36 -35
- package/dist/components/Button/Button.themes.js.map +1 -1
- package/dist/components/Button/Button.vanilla.cjs +34 -43
- package/dist/components/Button/Button.vanilla.cjs.map +1 -1
- package/dist/components/Button/Button.vanilla.css.cjs +68 -5
- package/dist/components/Button/Button.vanilla.css.cjs.map +1 -1
- package/dist/components/Button/Button.vanilla.css.js +68 -5
- package/dist/components/Button/Button.vanilla.css.js.map +1 -1
- package/dist/components/Button/Button.vanilla.js +31 -41
- package/dist/components/Button/Button.vanilla.js.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.cjs +53 -77
- package/dist/components/ButtonSwitch/ButtonSwitch.cjs.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.js +51 -61
- package/dist/components/ButtonSwitch/ButtonSwitch.js.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.themes.cjs +27 -20
- package/dist/components/ButtonSwitch/ButtonSwitch.themes.cjs.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.themes.js +20 -19
- package/dist/components/ButtonSwitch/ButtonSwitch.themes.js.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs +65 -99
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.cjs +4 -3
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.cjs.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.js +5 -5
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.js.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js +61 -81
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js.map +1 -1
- package/dist/components/Card/Card.cjs +77 -98
- package/dist/components/Card/Card.cjs.map +1 -1
- package/dist/components/Card/Card.js +74 -97
- package/dist/components/Card/Card.js.map +1 -1
- package/dist/components/Card/Card.theme.cjs +18 -22
- package/dist/components/Card/Card.theme.cjs.map +1 -1
- package/dist/components/Card/Card.theme.js +19 -24
- package/dist/components/Card/Card.theme.js.map +1 -1
- package/dist/components/Card/Card.themes.cjs +38 -29
- package/dist/components/Card/Card.themes.cjs.map +1 -1
- package/dist/components/Card/Card.themes.js +28 -27
- package/dist/components/Card/Card.themes.js.map +1 -1
- package/dist/components/Card/Card.vanilla.cjs +35 -41
- package/dist/components/Card/Card.vanilla.cjs.map +1 -1
- package/dist/components/Card/Card.vanilla.css.cjs +46 -7
- package/dist/components/Card/Card.vanilla.css.cjs.map +1 -1
- package/dist/components/Card/Card.vanilla.css.js +45 -8
- package/dist/components/Card/Card.vanilla.css.js.map +1 -1
- package/dist/components/Card/Card.vanilla.js +33 -40
- package/dist/components/Card/Card.vanilla.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.cjs +84 -112
- package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +80 -94
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.themes.cjs +44 -35
- package/dist/components/Checkbox/Checkbox.themes.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.themes.js +34 -33
- package/dist/components/Checkbox/Checkbox.themes.js.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.cjs +154 -174
- package/dist/components/CodeBlock/CodeBlock.cjs.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.js +150 -172
- package/dist/components/CodeBlock/CodeBlock.js.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.themes.cjs +21 -18
- package/dist/components/CodeBlock/CodeBlock.themes.cjs.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.themes.js +14 -17
- package/dist/components/CodeBlock/CodeBlock.themes.js.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.vanilla.cjs +131 -158
- package/dist/components/CodeBlock/CodeBlock.vanilla.cjs.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.vanilla.css.cjs +4 -3
- package/dist/components/CodeBlock/CodeBlock.vanilla.css.cjs.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.vanilla.css.js +5 -12
- package/dist/components/CodeBlock/CodeBlock.vanilla.css.js.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.vanilla.js +127 -156
- package/dist/components/CodeBlock/CodeBlock.vanilla.js.map +1 -1
- package/dist/components/Container/Container.cjs +20 -36
- package/dist/components/Container/Container.cjs.map +1 -1
- package/dist/components/Container/Container.js +21 -36
- package/dist/components/Container/Container.js.map +1 -1
- package/dist/components/Container/Container.vanilla.cjs +32 -33
- package/dist/components/Container/Container.vanilla.cjs.map +1 -1
- package/dist/components/Container/Container.vanilla.css.cjs +19 -5
- package/dist/components/Container/Container.vanilla.css.cjs.map +1 -1
- package/dist/components/Container/Container.vanilla.css.js +19 -5
- package/dist/components/Container/Container.vanilla.css.js.map +1 -1
- package/dist/components/Container/Container.vanilla.js +28 -31
- package/dist/components/Container/Container.vanilla.js.map +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.cjs +264 -279
- package/dist/components/DateTimePicker/DateTimePicker.cjs.map +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.js +258 -275
- package/dist/components/DateTimePicker/DateTimePicker.js.map +1 -1
- package/dist/components/DateTimePickerInput/DateTimePickerInput.cjs +142 -155
- package/dist/components/DateTimePickerInput/DateTimePickerInput.cjs.map +1 -1
- package/dist/components/DateTimePickerInput/DateTimePickerInput.js +139 -154
- package/dist/components/DateTimePickerInput/DateTimePickerInput.js.map +1 -1
- package/dist/components/Dialog/Dialog.cjs +68 -78
- package/dist/components/Dialog/Dialog.cjs.map +1 -1
- package/dist/components/Dialog/Dialog.js +63 -68
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Dialog/Dialog.themes.cjs +15 -12
- package/dist/components/Dialog/Dialog.themes.cjs.map +1 -1
- package/dist/components/Dialog/Dialog.themes.js +8 -11
- package/dist/components/Dialog/Dialog.themes.js.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.cjs +64 -58
- package/dist/components/DropdownMenu/DropdownMenu.cjs.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +59 -49
- package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -1
- package/dist/components/DropdownMenu/styles.cjs +39 -47
- package/dist/components/DropdownMenu/styles.cjs.map +1 -1
- package/dist/components/DropdownMenu/styles.js +38 -49
- package/dist/components/DropdownMenu/styles.js.map +1 -1
- package/dist/components/Elevation/Elevation.cjs +31 -36
- package/dist/components/Elevation/Elevation.cjs.map +1 -1
- package/dist/components/Elevation/Elevation.js +31 -37
- package/dist/components/Elevation/Elevation.js.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.cjs +28 -28
- package/dist/components/Elevation/Elevation.vanilla.cjs.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.css.cjs +18 -5
- package/dist/components/Elevation/Elevation.vanilla.css.cjs.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.css.js +18 -5
- package/dist/components/Elevation/Elevation.vanilla.css.js.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.js +25 -26
- package/dist/components/Elevation/Elevation.vanilla.js.map +1 -1
- package/dist/components/FaencyProvider.cjs +11 -7
- package/dist/components/FaencyProvider.cjs.map +1 -1
- package/dist/components/FaencyProvider.js +8 -6
- package/dist/components/FaencyProvider.js.map +1 -1
- package/dist/components/Flex/Flex.cjs +56 -118
- package/dist/components/Flex/Flex.cjs.map +1 -1
- package/dist/components/Flex/Flex.js +57 -118
- package/dist/components/Flex/Flex.js.map +1 -1
- package/dist/components/Flex/Flex.vanilla.cjs +35 -33
- package/dist/components/Flex/Flex.vanilla.cjs.map +1 -1
- package/dist/components/Flex/Flex.vanilla.css.cjs +54 -5
- package/dist/components/Flex/Flex.vanilla.css.cjs.map +1 -1
- package/dist/components/Flex/Flex.vanilla.css.js +54 -5
- package/dist/components/Flex/Flex.vanilla.css.js.map +1 -1
- package/dist/components/Flex/Flex.vanilla.js +31 -31
- package/dist/components/Flex/Flex.vanilla.js.map +1 -1
- package/dist/components/Grid/Grid.cjs +68 -158
- package/dist/components/Grid/Grid.cjs.map +1 -1
- package/dist/components/Grid/Grid.js +69 -158
- package/dist/components/Grid/Grid.js.map +1 -1
- package/dist/components/Grid/Grid.vanilla.cjs +39 -51
- package/dist/components/Grid/Grid.vanilla.cjs.map +1 -1
- package/dist/components/Grid/Grid.vanilla.css.cjs +65 -5
- package/dist/components/Grid/Grid.vanilla.css.cjs.map +1 -1
- package/dist/components/Grid/Grid.vanilla.css.js +65 -5
- package/dist/components/Grid/Grid.vanilla.css.js.map +1 -1
- package/dist/components/Grid/Grid.vanilla.js +35 -49
- package/dist/components/Grid/Grid.vanilla.js.map +1 -1
- package/dist/components/Heading/Heading.cjs +39 -48
- package/dist/components/Heading/Heading.cjs.map +1 -1
- package/dist/components/Heading/Heading.js +39 -53
- package/dist/components/Heading/Heading.js.map +1 -1
- package/dist/components/Heading/Heading.themes.cjs +18 -13
- package/dist/components/Heading/Heading.themes.cjs.map +1 -1
- package/dist/components/Heading/Heading.themes.js +8 -11
- package/dist/components/Heading/Heading.themes.js.map +1 -1
- package/dist/components/IconButton/IconButton.cjs +80 -107
- package/dist/components/IconButton/IconButton.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.js +79 -106
- package/dist/components/IconButton/IconButton.js.map +1 -1
- package/dist/components/IconButton/IconButton.themes.cjs +25 -18
- package/dist/components/IconButton/IconButton.themes.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.themes.js +18 -17
- package/dist/components/IconButton/IconButton.themes.js.map +1 -1
- package/dist/components/IconButton/IconButton.vanilla.cjs +31 -32
- package/dist/components/IconButton/IconButton.vanilla.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.vanilla.css.cjs +29 -5
- package/dist/components/IconButton/IconButton.vanilla.css.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.vanilla.css.js +29 -5
- package/dist/components/IconButton/IconButton.vanilla.css.js.map +1 -1
- package/dist/components/IconButton/IconButton.vanilla.js +28 -30
- package/dist/components/IconButton/IconButton.vanilla.js.map +1 -1
- package/dist/components/Image/Image.cjs +7 -8
- package/dist/components/Image/Image.cjs.map +1 -1
- package/dist/components/Image/Image.js +8 -8
- package/dist/components/Image/Image.js.map +1 -1
- package/dist/components/Image/Image.vanilla.cjs +28 -31
- package/dist/components/Image/Image.vanilla.cjs.map +1 -1
- package/dist/components/Image/Image.vanilla.css.cjs +4 -3
- package/dist/components/Image/Image.vanilla.css.cjs.map +1 -1
- package/dist/components/Image/Image.vanilla.css.js +5 -4
- package/dist/components/Image/Image.vanilla.css.js.map +1 -1
- package/dist/components/Image/Image.vanilla.js +25 -29
- package/dist/components/Image/Image.vanilla.js.map +1 -1
- package/dist/components/Input/Input.cjs +262 -374
- package/dist/components/Input/Input.cjs.map +1 -1
- package/dist/components/Input/Input.js +259 -373
- package/dist/components/Input/Input.js.map +1 -1
- package/dist/components/Input/Input.theme.cjs +27 -36
- package/dist/components/Input/Input.theme.cjs.map +1 -1
- package/dist/components/Input/Input.theme.js +25 -37
- package/dist/components/Input/Input.theme.js.map +1 -1
- package/dist/components/Input/Input.themes.cjs +38 -29
- package/dist/components/Input/Input.themes.cjs.map +1 -1
- package/dist/components/Input/Input.themes.js +28 -27
- package/dist/components/Input/Input.themes.js.map +1 -1
- package/dist/components/Input/Input.vanilla.cjs +71 -54
- package/dist/components/Input/Input.vanilla.cjs.map +1 -1
- package/dist/components/Input/Input.vanilla.css.cjs +107 -7
- package/dist/components/Input/Input.vanilla.css.cjs.map +1 -1
- package/dist/components/Input/Input.vanilla.css.js +106 -9
- package/dist/components/Input/Input.vanilla.css.js.map +1 -1
- package/dist/components/Input/Input.vanilla.js +68 -53
- package/dist/components/Input/Input.vanilla.js.map +1 -1
- package/dist/components/Label/Label.cjs +20 -34
- package/dist/components/Label/Label.cjs.map +1 -1
- package/dist/components/Label/Label.js +17 -16
- package/dist/components/Label/Label.js.map +1 -1
- package/dist/components/Label/Label.vanilla.cjs +35 -44
- package/dist/components/Label/Label.vanilla.cjs.map +1 -1
- package/dist/components/Label/Label.vanilla.css.cjs +54 -6
- package/dist/components/Label/Label.vanilla.css.cjs.map +1 -1
- package/dist/components/Label/Label.vanilla.css.js +54 -6
- package/dist/components/Label/Label.vanilla.css.js.map +1 -1
- package/dist/components/Label/Label.vanilla.js +32 -42
- package/dist/components/Label/Label.vanilla.js.map +1 -1
- package/dist/components/Link/Link.cjs +55 -85
- package/dist/components/Link/Link.cjs.map +1 -1
- package/dist/components/Link/Link.js +53 -83
- package/dist/components/Link/Link.js.map +1 -1
- package/dist/components/Link/Link.themes.cjs +52 -43
- package/dist/components/Link/Link.themes.cjs.map +1 -1
- package/dist/components/Link/Link.themes.js +42 -41
- package/dist/components/Link/Link.themes.js.map +1 -1
- package/dist/components/List/List.cjs +156 -187
- package/dist/components/List/List.cjs.map +1 -1
- package/dist/components/List/List.js +151 -186
- package/dist/components/List/List.js.map +1 -1
- package/dist/components/List/List.themes.cjs +23 -16
- package/dist/components/List/List.themes.cjs.map +1 -1
- package/dist/components/List/List.themes.js +16 -15
- package/dist/components/List/List.themes.js.map +1 -1
- package/dist/components/Navigation/Navigation.cjs +149 -163
- package/dist/components/Navigation/Navigation.cjs.map +1 -1
- package/dist/components/Navigation/Navigation.js +146 -165
- package/dist/components/Navigation/Navigation.js.map +1 -1
- package/dist/components/Navigation/Navigation.themes.cjs +44 -35
- package/dist/components/Navigation/Navigation.themes.cjs.map +1 -1
- package/dist/components/Navigation/Navigation.themes.js +34 -33
- package/dist/components/Navigation/Navigation.themes.js.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenu.cjs +53 -62
- package/dist/components/NavigationMenu/NavigationMenu.cjs.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenu.js +49 -51
- package/dist/components/NavigationMenu/NavigationMenu.js.map +1 -1
- package/dist/components/NavigationTree/NavigationTreeContainer.cjs +22 -22
- package/dist/components/NavigationTree/NavigationTreeContainer.cjs.map +1 -1
- package/dist/components/NavigationTree/NavigationTreeContainer.js +19 -21
- package/dist/components/NavigationTree/NavigationTreeContainer.js.map +1 -1
- package/dist/components/NavigationTree/NavigationTreeDrawer.cjs +18 -17
- package/dist/components/NavigationTree/NavigationTreeDrawer.cjs.map +1 -1
- package/dist/components/NavigationTree/NavigationTreeDrawer.js +16 -17
- package/dist/components/NavigationTree/NavigationTreeDrawer.js.map +1 -1
- package/dist/components/NavigationTree/NavigationTreeItem.cjs +77 -103
- package/dist/components/NavigationTree/NavigationTreeItem.cjs.map +1 -1
- package/dist/components/NavigationTree/NavigationTreeItem.js +73 -101
- package/dist/components/NavigationTree/NavigationTreeItem.js.map +1 -1
- package/dist/components/Overlay.cjs +7 -8
- package/dist/components/Overlay.cjs.map +1 -1
- package/dist/components/Overlay.js +7 -9
- package/dist/components/Overlay.js.map +1 -1
- package/dist/components/Panel/Panel.cjs +10 -9
- package/dist/components/Panel/Panel.cjs.map +1 -1
- package/dist/components/Panel/Panel.js +10 -10
- package/dist/components/Panel/Panel.js.map +1 -1
- package/dist/components/Panel/Panel.theme.cjs +6 -9
- package/dist/components/Panel/Panel.theme.cjs.map +1 -1
- package/dist/components/Panel/Panel.theme.js +7 -11
- package/dist/components/Panel/Panel.theme.js.map +1 -1
- package/dist/components/Panel/Panel.vanilla.cjs +28 -27
- package/dist/components/Panel/Panel.vanilla.cjs.map +1 -1
- package/dist/components/Panel/Panel.vanilla.css.cjs +4 -3
- package/dist/components/Panel/Panel.vanilla.css.cjs.map +1 -1
- package/dist/components/Panel/Panel.vanilla.css.js +5 -4
- package/dist/components/Panel/Panel.vanilla.css.js.map +1 -1
- package/dist/components/Panel/Panel.vanilla.js +25 -25
- package/dist/components/Panel/Panel.vanilla.js.map +1 -1
- package/dist/components/Paragraph/Paragraph.cjs +42 -33
- package/dist/components/Paragraph/Paragraph.cjs.map +1 -1
- package/dist/components/Paragraph/Paragraph.js +40 -33
- package/dist/components/Paragraph/Paragraph.js.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.cjs +28 -32
- package/dist/components/Paragraph/Paragraph.vanilla.cjs.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.css.cjs +14 -5
- package/dist/components/Paragraph/Paragraph.vanilla.css.cjs.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.css.js +14 -5
- package/dist/components/Paragraph/Paragraph.vanilla.css.js.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.js +25 -30
- package/dist/components/Paragraph/Paragraph.vanilla.js.map +1 -1
- package/dist/components/Popover/Popover.cjs +53 -77
- package/dist/components/Popover/Popover.cjs.map +1 -1
- package/dist/components/Popover/Popover.js +49 -64
- package/dist/components/Popover/Popover.js.map +1 -1
- package/dist/components/Radio/Radio.cjs +84 -119
- package/dist/components/Radio/Radio.cjs.map +1 -1
- package/dist/components/Radio/Radio.js +80 -104
- package/dist/components/Radio/Radio.js.map +1 -1
- package/dist/components/Radio/Radio.themes.cjs +36 -27
- package/dist/components/Radio/Radio.themes.cjs.map +1 -1
- package/dist/components/Radio/Radio.themes.js +26 -25
- package/dist/components/Radio/Radio.themes.js.map +1 -1
- package/dist/components/RadioAccordion/RadioAccordion.cjs +40 -42
- package/dist/components/RadioAccordion/RadioAccordion.cjs.map +1 -1
- package/dist/components/RadioAccordion/RadioAccordion.js +37 -44
- package/dist/components/RadioAccordion/RadioAccordion.js.map +1 -1
- package/dist/components/Select/Select.cjs +189 -234
- package/dist/components/Select/Select.cjs.map +1 -1
- package/dist/components/Select/Select.js +186 -233
- package/dist/components/Select/Select.js.map +1 -1
- package/dist/components/Select/Select.themes.cjs +27 -24
- package/dist/components/Select/Select.themes.cjs.map +1 -1
- package/dist/components/Select/Select.themes.js +19 -22
- package/dist/components/Select/Select.themes.js.map +1 -1
- package/dist/components/SidePanel/SidePanel.cjs +102 -121
- package/dist/components/SidePanel/SidePanel.cjs.map +1 -1
- package/dist/components/SidePanel/SidePanel.js +97 -102
- package/dist/components/SidePanel/SidePanel.js.map +1 -1
- package/dist/components/SidePanel/SidePanel.themes.cjs +15 -12
- package/dist/components/SidePanel/SidePanel.themes.cjs.map +1 -1
- package/dist/components/SidePanel/SidePanel.themes.js +8 -11
- package/dist/components/SidePanel/SidePanel.themes.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.cjs +51 -63
- package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.js +51 -65
- package/dist/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.themes.cjs +21 -14
- package/dist/components/Skeleton/Skeleton.themes.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.themes.js +14 -13
- package/dist/components/Skeleton/Skeleton.themes.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.cjs +28 -32
- package/dist/components/Skeleton/Skeleton.vanilla.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.css.cjs +17 -5
- package/dist/components/Skeleton/Skeleton.vanilla.css.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.css.js +17 -5
- package/dist/components/Skeleton/Skeleton.vanilla.css.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.js +25 -30
- package/dist/components/Skeleton/Skeleton.vanilla.js.map +1 -1
- package/dist/components/Switch/Switch.cjs +81 -113
- package/dist/components/Switch/Switch.cjs.map +1 -1
- package/dist/components/Switch/Switch.js +77 -95
- package/dist/components/Switch/Switch.js.map +1 -1
- package/dist/components/Switch/Switch.themes.cjs +28 -19
- package/dist/components/Switch/Switch.themes.cjs.map +1 -1
- package/dist/components/Switch/Switch.themes.js +18 -17
- package/dist/components/Switch/Switch.themes.js.map +1 -1
- package/dist/components/Table/Table.cjs +197 -272
- package/dist/components/Table/Table.cjs.map +1 -1
- package/dist/components/Table/Table.js +193 -278
- package/dist/components/Table/Table.js.map +1 -1
- package/dist/components/Table/Table.themes.cjs +42 -33
- package/dist/components/Table/Table.themes.cjs.map +1 -1
- package/dist/components/Table/Table.themes.js +32 -31
- package/dist/components/Table/Table.themes.js.map +1 -1
- package/dist/components/Tabs/Tabs.cjs +34 -52
- package/dist/components/Tabs/Tabs.cjs.map +1 -1
- package/dist/components/Tabs/Tabs.js +32 -38
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Text/Text.cjs +64 -127
- package/dist/components/Text/Text.cjs.map +1 -1
- package/dist/components/Text/Text.js +65 -127
- package/dist/components/Text/Text.js.map +1 -1
- package/dist/components/Text/Text.themes.cjs +30 -21
- package/dist/components/Text/Text.themes.cjs.map +1 -1
- package/dist/components/Text/Text.themes.js +20 -19
- package/dist/components/Text/Text.themes.js.map +1 -1
- package/dist/components/TextField/TextField.cjs +124 -164
- package/dist/components/TextField/TextField.cjs.map +1 -1
- package/dist/components/TextField/TextField.js +119 -161
- package/dist/components/TextField/TextField.js.map +1 -1
- package/dist/components/TextField/TextField.vanilla.cjs +124 -164
- package/dist/components/TextField/TextField.vanilla.cjs.map +1 -1
- package/dist/components/TextField/TextField.vanilla.js +119 -161
- package/dist/components/TextField/TextField.vanilla.js.map +1 -1
- package/dist/components/Textarea/Textarea.cjs +189 -276
- package/dist/components/Textarea/Textarea.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.js +185 -274
- package/dist/components/Textarea/Textarea.js.map +1 -1
- package/dist/components/Textarea/Textarea.theme.cjs +27 -36
- package/dist/components/Textarea/Textarea.theme.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.theme.js +25 -37
- package/dist/components/Textarea/Textarea.theme.js.map +1 -1
- package/dist/components/Textarea/Textarea.themes.cjs +38 -29
- package/dist/components/Textarea/Textarea.themes.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.themes.js +28 -27
- package/dist/components/Textarea/Textarea.themes.js.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.cjs +83 -95
- package/dist/components/Textarea/Textarea.vanilla.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.css.cjs +41 -6
- package/dist/components/Textarea/Textarea.vanilla.css.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.css.js +40 -8
- package/dist/components/Textarea/Textarea.vanilla.css.js.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.js +79 -93
- package/dist/components/Textarea/Textarea.vanilla.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.cjs +67 -98
- package/dist/components/Tooltip/Tooltip.cjs.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +62 -82
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.themes.cjs +21 -14
- package/dist/components/Tooltip/Tooltip.themes.cjs.map +1 -1
- package/dist/components/Tooltip/Tooltip.themes.js +14 -13
- package/dist/components/Tooltip/Tooltip.themes.js.map +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.cjs +8 -22
- package/dist/components/VisuallyHidden/VisuallyHidden.cjs.map +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.js +6 -5
- package/dist/components/VisuallyHidden/VisuallyHidden.js.map +1 -1
- package/dist/components/colorSchemeContext.cjs +43 -37
- package/dist/components/colorSchemeContext.cjs.map +1 -1
- package/dist/components/colorSchemeContext.js +41 -38
- package/dist/components/colorSchemeContext.js.map +1 -1
- package/dist/faency.css +291 -291
- package/dist/index.cjs +253 -250
- package/dist/index.js +31 -198
- package/dist/stitches.config.cjs +271 -262
- package/dist/stitches.config.cjs.map +1 -1
- package/dist/stitches.config.js +268 -271
- package/dist/stitches.config.js.map +1 -1
- package/dist/styles/cssProps.cjs +265 -292
- package/dist/styles/cssProps.cjs.map +1 -1
- package/dist/styles/cssProps.js +266 -293
- package/dist/styles/cssProps.js.map +1 -1
- package/dist/styles/themeContext.cjs +110 -115
- package/dist/styles/themeContext.cjs.map +1 -1
- package/dist/styles/themeContext.js +107 -115
- package/dist/styles/themeContext.js.map +1 -1
- package/dist/styles/themes.css.cjs +24 -4
- package/dist/styles/themes.css.cjs.map +1 -1
- package/dist/styles/themes.css.js +25 -7
- package/dist/styles/themes.css.js.map +1 -1
- package/dist/utils/deepMerge.cjs +25 -0
- package/dist/utils/deepMerge.cjs.map +1 -0
- package/dist/utils/deepMerge.js +25 -0
- package/dist/utils/deepMerge.js.map +1 -0
- package/dist/utils/getPrimaryColorInfo.cjs +10 -10
- package/dist/utils/getPrimaryColorInfo.cjs.map +1 -1
- package/dist/utils/getPrimaryColorInfo.js +10 -11
- package/dist/utils/getPrimaryColorInfo.js.map +1 -1
- package/package.json +93 -122
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -1,109 +1,85 @@
|
|
|
1
|
+
import { styled } from "../../stitches.config.js";
|
|
2
|
+
import React from "react";
|
|
1
3
|
import { jsx } from "react/jsx-runtime";
|
|
2
4
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
borderRadius: "$round",
|
|
21
|
-
backgroundColor: "$contentBg"
|
|
22
|
-
}
|
|
5
|
+
//#region components/Radio/Radio.tsx
|
|
6
|
+
var RadioGroup = styled(RadioGroupPrimitive.Root, { display: "flex" });
|
|
7
|
+
var INDICATOR_BASE_STYLES = {
|
|
8
|
+
alignItems: "center",
|
|
9
|
+
display: "flex",
|
|
10
|
+
height: "100%",
|
|
11
|
+
justifyContent: "center",
|
|
12
|
+
width: "100%",
|
|
13
|
+
position: "relative",
|
|
14
|
+
"&::after": {
|
|
15
|
+
content: "\"\"",
|
|
16
|
+
display: "block",
|
|
17
|
+
width: "7px",
|
|
18
|
+
height: "7px",
|
|
19
|
+
borderRadius: "$round",
|
|
20
|
+
backgroundColor: "$contentBg"
|
|
21
|
+
}
|
|
23
22
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
color: "$hiContrast",
|
|
47
|
-
boxShadow: "inset 0 0 0 1px $colors$radioBorder",
|
|
48
|
-
overflow: "hidden",
|
|
49
|
-
"&[data-state=checked]": {
|
|
50
|
-
backgroundColor: "$radioIndicator"
|
|
51
|
-
}
|
|
23
|
+
var StyledIndicator = styled(RadioGroupPrimitive.Indicator, INDICATOR_BASE_STYLES);
|
|
24
|
+
var RADIO_BASE_STYLES = {
|
|
25
|
+
all: "unset",
|
|
26
|
+
boxSizing: "border-box",
|
|
27
|
+
userSelect: "none",
|
|
28
|
+
"&::before": { boxSizing: "border-box" },
|
|
29
|
+
"&::after": { boxSizing: "border-box" },
|
|
30
|
+
alignItems: "center",
|
|
31
|
+
appearance: "none",
|
|
32
|
+
display: "inline-flex",
|
|
33
|
+
justifyContent: "center",
|
|
34
|
+
lineHeight: "1",
|
|
35
|
+
margin: "0",
|
|
36
|
+
outline: "none",
|
|
37
|
+
padding: "0",
|
|
38
|
+
textDecoration: "none",
|
|
39
|
+
WebkitTapHighlightColor: "rgba(0,0,0,0)",
|
|
40
|
+
borderRadius: "50%",
|
|
41
|
+
color: "$hiContrast",
|
|
42
|
+
boxShadow: "inset 0 0 0 1px $colors$radioBorder",
|
|
43
|
+
overflow: "hidden",
|
|
44
|
+
"&[data-state=checked]": { backgroundColor: "$radioIndicator" }
|
|
52
45
|
};
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
"2": {
|
|
85
|
-
width: "$5",
|
|
86
|
-
height: "$5",
|
|
87
|
-
[`& ${StyledIndicator}`]: {
|
|
88
|
-
"&::after": {
|
|
89
|
-
width: "$3",
|
|
90
|
-
height: "$3"
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
defaultVariants: {
|
|
97
|
-
size: "1"
|
|
98
|
-
}
|
|
46
|
+
var StyledRadio = styled(RadioGroupPrimitive.Item, RADIO_BASE_STYLES, {
|
|
47
|
+
"@hover": { "&:hover": {
|
|
48
|
+
cursor: "pointer",
|
|
49
|
+
boxShadow: "inset 0 0 0 1px $colors$radioHoverBorder"
|
|
50
|
+
} },
|
|
51
|
+
"&:focus-visible": {
|
|
52
|
+
outline: "none",
|
|
53
|
+
boxShadow: "inset 0 0 0 1px $colors$radioFocusBorder, 0 0 0 1px $colors$radioFocusBorder"
|
|
54
|
+
},
|
|
55
|
+
"&:disabled": {
|
|
56
|
+
pointerEvents: "none",
|
|
57
|
+
"&::placeholder": { color: "$radioDisabledText" },
|
|
58
|
+
"&[data-state=checked]": { backgroundColor: "$radioIndicatorDisabledBg" },
|
|
59
|
+
[`& ${StyledIndicator}`]: { "&::after": { backgroundColor: "$radioDisabledBg" } }
|
|
60
|
+
},
|
|
61
|
+
variants: { size: {
|
|
62
|
+
"1": {
|
|
63
|
+
width: "$3",
|
|
64
|
+
height: "$3"
|
|
65
|
+
},
|
|
66
|
+
"2": {
|
|
67
|
+
width: "$5",
|
|
68
|
+
height: "$5",
|
|
69
|
+
[`& ${StyledIndicator}`]: { "&::after": {
|
|
70
|
+
width: "$3",
|
|
71
|
+
height: "$3"
|
|
72
|
+
} }
|
|
73
|
+
}
|
|
74
|
+
} },
|
|
75
|
+
defaultVariants: { size: "1" }
|
|
99
76
|
});
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
//# sourceMappingURL=Radio.js.map
|
|
77
|
+
var Radio = React.forwardRef((props, forwardedRef) => /* @__PURE__ */ jsx(StyledRadio, {
|
|
78
|
+
...props,
|
|
79
|
+
ref: forwardedRef,
|
|
80
|
+
children: /* @__PURE__ */ jsx(StyledIndicator, {})
|
|
81
|
+
}));
|
|
82
|
+
//#endregion
|
|
83
|
+
export { INDICATOR_BASE_STYLES, RADIO_BASE_STYLES, Radio, RadioGroup };
|
|
84
|
+
|
|
85
|
+
//# sourceMappingURL=Radio.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.js","sources":["../../../components/Radio/Radio.tsx"],"sourcesContent":["import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\n\nexport const RadioGroup = styled(RadioGroupPrimitive.Root, {\n display: 'flex',\n});\n\nexport const INDICATOR_BASE_STYLES = {\n alignItems: 'center',\n display: 'flex',\n height: '100%',\n justifyContent: 'center',\n width: '100%',\n position: 'relative',\n '&::after': {\n content: '\"\"',\n display: 'block',\n width: '7px',\n height: '7px',\n borderRadius: '$round',\n backgroundColor: '$contentBg',\n },\n};\n\nconst StyledIndicator = styled(RadioGroupPrimitive.Indicator, INDICATOR_BASE_STYLES);\n\nexport const RADIO_BASE_STYLES = {\n all: 'unset',\n boxSizing: 'border-box',\n userSelect: 'none',\n '&::before': {\n boxSizing: 'border-box',\n },\n '&::after': {\n boxSizing: 'border-box',\n },\n alignItems: 'center',\n appearance: 'none',\n display: 'inline-flex',\n justifyContent: 'center',\n lineHeight: '1',\n margin: '0',\n outline: 'none',\n padding: '0',\n textDecoration: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n\n borderRadius: '50%',\n color: '$hiContrast',\n boxShadow: 'inset 0 0 0 1px $colors$radioBorder',\n overflow: 'hidden',\n '&[data-state=checked]': {\n backgroundColor: '$radioIndicator',\n },\n};\nconst StyledRadio = styled(RadioGroupPrimitive.Item, RADIO_BASE_STYLES, {\n '@hover': {\n '&:hover': {\n cursor: 'pointer',\n boxShadow: 'inset 0 0 0 1px $colors$radioHoverBorder',\n },\n },\n '&:focus-visible': {\n outline: 'none',\n boxShadow: 'inset 0 0 0 1px $colors$radioFocusBorder, 0 0 0 1px $colors$radioFocusBorder',\n },\n\n '&:disabled': {\n pointerEvents: 'none',\n '&::placeholder': {\n color: '$radioDisabledText',\n },\n '&[data-state=checked]': {\n backgroundColor: '$radioIndicatorDisabledBg',\n },\n\n [`& ${StyledIndicator}`]: {\n '&::after': {\n backgroundColor: '$radioDisabledBg',\n },\n },\n },\n\n variants: {\n size: {\n '1': {\n width: '$3',\n height: '$3',\n },\n '2': {\n width: '$5',\n height: '$5',\n\n [`& ${StyledIndicator}`]: {\n '&::after': {\n width: '$3',\n height: '$3',\n },\n },\n },\n },\n },\n defaultVariants: {\n size: '1',\n },\n});\n\nexport type RadioVariants = VariantProps<typeof StyledRadio>;\ntype RadioGroupItemPrimitiveProps = Omit<\n React.ComponentProps<typeof RadioGroupPrimitive.Item>,\n 'as'\n>;\nexport type RadioProps = RadioGroupItemPrimitiveProps & RadioVariants & { css?: CSS };\n\nexport const Radio = React.forwardRef<React.ElementRef<typeof StyledRadio>, RadioProps>(\n (props, forwardedRef) => (\n <StyledRadio {...props} ref={forwardedRef}>\n <StyledIndicator />\n </StyledRadio>\n )\n);\n"],"
|
|
1
|
+
{"version":3,"file":"Radio.js","names":[],"sources":["../../../components/Radio/Radio.tsx"],"sourcesContent":["import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\n\nexport const RadioGroup = styled(RadioGroupPrimitive.Root, {\n display: 'flex',\n});\n\nexport const INDICATOR_BASE_STYLES = {\n alignItems: 'center',\n display: 'flex',\n height: '100%',\n justifyContent: 'center',\n width: '100%',\n position: 'relative',\n '&::after': {\n content: '\"\"',\n display: 'block',\n width: '7px',\n height: '7px',\n borderRadius: '$round',\n backgroundColor: '$contentBg',\n },\n};\n\nconst StyledIndicator = styled(RadioGroupPrimitive.Indicator, INDICATOR_BASE_STYLES);\n\nexport const RADIO_BASE_STYLES = {\n all: 'unset',\n boxSizing: 'border-box',\n userSelect: 'none',\n '&::before': {\n boxSizing: 'border-box',\n },\n '&::after': {\n boxSizing: 'border-box',\n },\n alignItems: 'center',\n appearance: 'none',\n display: 'inline-flex',\n justifyContent: 'center',\n lineHeight: '1',\n margin: '0',\n outline: 'none',\n padding: '0',\n textDecoration: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n\n borderRadius: '50%',\n color: '$hiContrast',\n boxShadow: 'inset 0 0 0 1px $colors$radioBorder',\n overflow: 'hidden',\n '&[data-state=checked]': {\n backgroundColor: '$radioIndicator',\n },\n};\nconst StyledRadio = styled(RadioGroupPrimitive.Item, RADIO_BASE_STYLES, {\n '@hover': {\n '&:hover': {\n cursor: 'pointer',\n boxShadow: 'inset 0 0 0 1px $colors$radioHoverBorder',\n },\n },\n '&:focus-visible': {\n outline: 'none',\n boxShadow: 'inset 0 0 0 1px $colors$radioFocusBorder, 0 0 0 1px $colors$radioFocusBorder',\n },\n\n '&:disabled': {\n pointerEvents: 'none',\n '&::placeholder': {\n color: '$radioDisabledText',\n },\n '&[data-state=checked]': {\n backgroundColor: '$radioIndicatorDisabledBg',\n },\n\n [`& ${StyledIndicator}`]: {\n '&::after': {\n backgroundColor: '$radioDisabledBg',\n },\n },\n },\n\n variants: {\n size: {\n '1': {\n width: '$3',\n height: '$3',\n },\n '2': {\n width: '$5',\n height: '$5',\n\n [`& ${StyledIndicator}`]: {\n '&::after': {\n width: '$3',\n height: '$3',\n },\n },\n },\n },\n },\n defaultVariants: {\n size: '1',\n },\n});\n\nexport type RadioVariants = VariantProps<typeof StyledRadio>;\ntype RadioGroupItemPrimitiveProps = Omit<\n React.ComponentProps<typeof RadioGroupPrimitive.Item>,\n 'as'\n>;\nexport type RadioProps = RadioGroupItemPrimitiveProps & RadioVariants & { css?: CSS };\n\nexport const Radio = React.forwardRef<React.ElementRef<typeof StyledRadio>, RadioProps>(\n (props, forwardedRef) => (\n <StyledRadio {...props} ref={forwardedRef}>\n <StyledIndicator />\n </StyledRadio>\n )\n);\n"],"mappings":";;;;;AAKA,IAAa,aAAa,OAAO,oBAAoB,MAAM,EACzD,SAAS,QACV,CAAC;AAEF,IAAa,wBAAwB;CACnC,YAAY;CACZ,SAAS;CACT,QAAQ;CACR,gBAAgB;CAChB,OAAO;CACP,UAAU;CACV,YAAY;EACV,SAAS;EACT,SAAS;EACT,OAAO;EACP,QAAQ;EACR,cAAc;EACd,iBAAiB;EAClB;CACF;AAED,IAAM,kBAAkB,OAAO,oBAAoB,WAAW,sBAAsB;AAEpF,IAAa,oBAAoB;CAC/B,KAAK;CACL,WAAW;CACX,YAAY;CACZ,aAAa,EACX,WAAW,cACZ;CACD,YAAY,EACV,WAAW,cACZ;CACD,YAAY;CACZ,YAAY;CACZ,SAAS;CACT,gBAAgB;CAChB,YAAY;CACZ,QAAQ;CACR,SAAS;CACT,SAAS;CACT,gBAAgB;CAChB,yBAAyB;CAEzB,cAAc;CACd,OAAO;CACP,WAAW;CACX,UAAU;CACV,yBAAyB,EACvB,iBAAiB,mBAClB;CACF;AACD,IAAM,cAAc,OAAO,oBAAoB,MAAM,mBAAmB;CACtE,UAAU,EACR,WAAW;EACT,QAAQ;EACR,WAAW;EACZ,EACF;CACD,mBAAmB;EACjB,SAAS;EACT,WAAW;EACZ;CAED,cAAc;EACZ,eAAe;EACf,kBAAkB,EAChB,OAAO,sBACR;EACD,yBAAyB,EACvB,iBAAiB,6BAClB;GAEA,KAAK,oBAAoB,EACxB,YAAY,EACV,iBAAiB,oBAClB,EACF;EACF;CAED,UAAU,EACR,MAAM;EACJ,KAAK;GACH,OAAO;GACP,QAAQ;GACT;EACD,KAAK;GACH,OAAO;GACP,QAAQ;IAEP,KAAK,oBAAoB,EACxB,YAAY;IACV,OAAO;IACP,QAAQ;IACT,EACF;GACF;EACF,EACF;CACD,iBAAiB,EACf,MAAM,KACP;CACF,CAAC;AASF,IAAa,QAAQ,MAAM,YACxB,OAAO,iBACN,oBAAC,aAAD;CAAa,GAAI;CAAO,KAAK;WAC3B,oBAAC,iBAAD,EAAmB,CAAA;CACP,CAAA,CAEjB"}
|
|
@@ -1,27 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
})
|
|
27
|
-
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
let tinycolor2 = require("tinycolor2");
|
|
3
|
+
tinycolor2 = require_runtime.__toESM(tinycolor2, 1);
|
|
4
|
+
//#region components/Radio/Radio.themes.ts
|
|
5
|
+
var Theme;
|
|
6
|
+
(function(_Theme) {
|
|
7
|
+
_Theme.getLight = (primaryColor) => ({
|
|
8
|
+
radioIndicator: "$primary",
|
|
9
|
+
radioBorder: "$grayBlue9",
|
|
10
|
+
radioHoverBg: "transparent",
|
|
11
|
+
radioHoverBorder: "$primary",
|
|
12
|
+
radioFocusBorder: "$primary",
|
|
13
|
+
radioDisabledBg: "$deepBlue3",
|
|
14
|
+
radioDisabledBorder: "$deepBlue5",
|
|
15
|
+
radioIndicatorDisabledBg: (0, tinycolor2.default)(primaryColor.value).setAlpha(.6).toHslString()
|
|
16
|
+
});
|
|
17
|
+
_Theme.getDark = (primaryColor) => ({
|
|
18
|
+
radioIndicator: "$primary",
|
|
19
|
+
radioBorder: "$grayBlue9",
|
|
20
|
+
radioHoverBg: "$deepBlue3",
|
|
21
|
+
radioHoverBorder: "$primary",
|
|
22
|
+
radioFocusBorder: "$primary",
|
|
23
|
+
radioDisabledBg: "$deepBlue3",
|
|
24
|
+
radioDisabledBorder: "$deepBlue4",
|
|
25
|
+
radioIndicatorDisabledBg: (0, tinycolor2.default)(primaryColor.value).setAlpha(.6).toHslString()
|
|
26
|
+
});
|
|
27
|
+
})(Theme || (Theme = {}));
|
|
28
|
+
//#endregion
|
|
29
|
+
Object.defineProperty(exports, "Theme", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function() {
|
|
32
|
+
return Theme;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=Radio.themes.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.themes.cjs","sources":["../../../components/Radio/Radio.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 radioBorder: Property.Color;\n radioHoverBg: Property.Color;\n radioHoverBorder: Property.Color;\n radioFocusBorder: Property.Color;\n radioDisabledBg: Property.Color;\n radioDisabledBorder: Property.Color;\n radioIndicatorDisabledBg: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: 'transparent',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue5',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: '$deepBlue3',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue4',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n}\n"],"
|
|
1
|
+
{"version":3,"file":"Radio.themes.cjs","names":[],"sources":["../../../components/Radio/Radio.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 radioBorder: Property.Color;\n radioHoverBg: Property.Color;\n radioHoverBorder: Property.Color;\n radioFocusBorder: Property.Color;\n radioDisabledBg: Property.Color;\n radioDisabledBorder: Property.Color;\n radioIndicatorDisabledBg: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: 'transparent',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue5',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: '$deepBlue3',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue4',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n}\n"],"mappings":";;;;AAIO,IAAA;;AAaQ,QAAA,YAAqB,kBAAkB;EAClD,gBAAgB;EAChB,aAAa;EACb,cAAc;EACd,kBAAkB;EAClB,kBAAkB;EAClB,iBAAiB;EACjB,qBAAqB;EACrB,2BAAA,GAAA,WAAA,SAAoC,aAAa,MAAM,CAAC,SAAS,GAAI,CAAC,aAAa;EACpF;AAEY,QAAA,WAAoB,kBAAkB;EACjD,gBAAgB;EAChB,aAAa;EACb,cAAc;EACd,kBAAkB;EAClB,kBAAkB;EAClB,iBAAiB;EACjB,qBAAqB;EACrB,2BAAA,GAAA,WAAA,SAAoC,aAAa,MAAM,CAAC,SAAS,GAAI,CAAC,aAAa;EACpF;yBACF"}
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import tinycolor from "tinycolor2";
|
|
2
|
+
//#region components/Radio/Radio.themes.ts
|
|
2
3
|
var Theme;
|
|
3
|
-
((
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
(function(_Theme) {
|
|
5
|
+
_Theme.getLight = (primaryColor) => ({
|
|
6
|
+
radioIndicator: "$primary",
|
|
7
|
+
radioBorder: "$grayBlue9",
|
|
8
|
+
radioHoverBg: "transparent",
|
|
9
|
+
radioHoverBorder: "$primary",
|
|
10
|
+
radioFocusBorder: "$primary",
|
|
11
|
+
radioDisabledBg: "$deepBlue3",
|
|
12
|
+
radioDisabledBorder: "$deepBlue5",
|
|
13
|
+
radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(.6).toHslString()
|
|
14
|
+
});
|
|
15
|
+
_Theme.getDark = (primaryColor) => ({
|
|
16
|
+
radioIndicator: "$primary",
|
|
17
|
+
radioBorder: "$grayBlue9",
|
|
18
|
+
radioHoverBg: "$deepBlue3",
|
|
19
|
+
radioHoverBorder: "$primary",
|
|
20
|
+
radioFocusBorder: "$primary",
|
|
21
|
+
radioDisabledBg: "$deepBlue3",
|
|
22
|
+
radioDisabledBorder: "$deepBlue4",
|
|
23
|
+
radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(.6).toHslString()
|
|
24
|
+
});
|
|
24
25
|
})(Theme || (Theme = {}));
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
//# sourceMappingURL=Radio.themes.js.map
|
|
26
|
+
//#endregion
|
|
27
|
+
export { Theme };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=Radio.themes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.themes.js","sources":["../../../components/Radio/Radio.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 radioBorder: Property.Color;\n radioHoverBg: Property.Color;\n radioHoverBorder: Property.Color;\n radioFocusBorder: Property.Color;\n radioDisabledBg: Property.Color;\n radioDisabledBorder: Property.Color;\n radioIndicatorDisabledBg: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: 'transparent',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue5',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: '$deepBlue3',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue4',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n}\n"],"
|
|
1
|
+
{"version":3,"file":"Radio.themes.js","names":[],"sources":["../../../components/Radio/Radio.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 radioBorder: Property.Color;\n radioHoverBg: Property.Color;\n radioHoverBorder: Property.Color;\n radioFocusBorder: Property.Color;\n radioDisabledBg: Property.Color;\n radioDisabledBorder: Property.Color;\n radioIndicatorDisabledBg: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: 'transparent',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue5',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: '$deepBlue3',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue4',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n}\n"],"mappings":";;AAIO,IAAA;;AAaQ,QAAA,YAAqB,kBAAkB;EAClD,gBAAgB;EAChB,aAAa;EACb,cAAc;EACd,kBAAkB;EAClB,kBAAkB;EAClB,iBAAiB;EACjB,qBAAqB;EACrB,0BAA0B,UAAU,aAAa,MAAM,CAAC,SAAS,GAAI,CAAC,aAAa;EACpF;AAEY,QAAA,WAAoB,kBAAkB;EACjD,gBAAgB;EAChB,aAAa;EACb,cAAc;EACd,kBAAkB;EAClB,kBAAkB;EAClB,iBAAiB;EACjB,qBAAqB;EACrB,0BAA0B,UAAU,aAAa,MAAM,CAAC,SAAS,GAAI,CAAC,aAAa;EACpF;yBACF"}
|
|
@@ -1,50 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
value,
|
|
14
|
-
ref: forwardedRef,
|
|
15
|
-
css: { display: "inherit", flexDirection: "column" },
|
|
16
|
-
...props,
|
|
17
|
-
children
|
|
18
|
-
}
|
|
19
|
-
);
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_stitches_config = require("../../stitches.config.cjs");
|
|
3
|
+
const require_Accordion = require("../Accordion/Accordion.cjs");
|
|
4
|
+
const require_Radio = require("../Radio/Radio.cjs");
|
|
5
|
+
let react = require("react");
|
|
6
|
+
react = require_runtime.__toESM(react, 1);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
//#region components/RadioAccordion/RadioAccordion.tsx
|
|
9
|
+
var RadioAccordionRoot = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Accordion.AccordionRoot, {
|
|
10
|
+
...props,
|
|
11
|
+
type: "single",
|
|
12
|
+
collapsible: false
|
|
20
13
|
});
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
var RadioAccordionItem = react.default.forwardRef(({ value, children, ...props }, forwardedRef) => {
|
|
15
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Accordion.AccordionItem, {
|
|
16
|
+
value,
|
|
17
|
+
ref: forwardedRef,
|
|
18
|
+
css: {
|
|
19
|
+
display: "inherit",
|
|
20
|
+
flexDirection: "column"
|
|
21
|
+
},
|
|
22
|
+
...props,
|
|
23
|
+
children
|
|
24
|
+
});
|
|
28
25
|
});
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
boxShadow: "inset 0 0 0 1px $colors$radioHoverBorder"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
26
|
+
var StyledRadio = require_stitches_config.styled("div", require_Radio.RADIO_BASE_STYLES, {
|
|
27
|
+
width: 18,
|
|
28
|
+
height: 18,
|
|
29
|
+
mr: "$2",
|
|
30
|
+
"[data-state=open] > &": { backgroundColor: "$radioIndicator" }
|
|
38
31
|
});
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
32
|
+
var StyledIndicator = require_stitches_config.styled("div", require_Radio.INDICATOR_BASE_STYLES);
|
|
33
|
+
var StyledRadioAccordionTrigger = require_stitches_config.styled(require_Accordion.StyledAccordionTrigger, { "@hover": { "&:hover": { [`& ${StyledRadio}`]: { boxShadow: "inset 0 0 0 1px $colors$radioHoverBorder" } } } });
|
|
34
|
+
var RadioAccordionTrigger = react.default.forwardRef(({ children, ...props }, ref) => {
|
|
35
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Accordion.StyledAccordionHeader, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledRadioAccordionTrigger, {
|
|
36
|
+
ref,
|
|
37
|
+
...props,
|
|
38
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledRadio, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledIndicator, {}) }), children]
|
|
39
|
+
}) });
|
|
44
40
|
});
|
|
45
|
-
|
|
41
|
+
var RadioAccordionContent = require_Accordion.AccordionContent;
|
|
42
|
+
//#endregion
|
|
46
43
|
exports.RadioAccordionContent = RadioAccordionContent;
|
|
47
44
|
exports.RadioAccordionItem = RadioAccordionItem;
|
|
48
45
|
exports.RadioAccordionRoot = RadioAccordionRoot;
|
|
49
46
|
exports.RadioAccordionTrigger = RadioAccordionTrigger;
|
|
50
|
-
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=RadioAccordion.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioAccordion.cjs","sources":["../../../components/RadioAccordion/RadioAccordion.tsx"],"sourcesContent":["import type { AccordionSingleProps } from '@radix-ui/react-accordion';\nimport React, { ComponentProps } from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport {\n AccordionContent,\n AccordionItem,\n AccordionRoot,\n AccordionTriggerProps,\n StyledAccordionHeader,\n StyledAccordionTrigger,\n} from '../Accordion';\nimport { INDICATOR_BASE_STYLES, RADIO_BASE_STYLES } from '../Radio';\n\nexport interface RadioAccordionRootProps\n extends Omit<AccordionSingleProps, 'type' | 'collapsible'>,\n Omit<VariantProps<typeof AccordionRoot>, 'type' | 'collapsible'> {\n css?: CSS; // could not skipped\n}\n\nexport const RadioAccordionRoot: (props: RadioAccordionRootProps) => JSX.Element = (props) => (\n <AccordionRoot {...props} type=\"single\" collapsible={false} />\n);\n\nexport interface RadioAccordionItemProps\n extends ComponentProps<typeof AccordionItem>,\n VariantProps<typeof AccordionItem> {}\nexport const RadioAccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionItem>,\n RadioAccordionItemProps\n>(({ value, children, ...props }, forwardedRef) => {\n return (\n <AccordionItem\n value={value}\n ref={forwardedRef}\n css={{ display: 'inherit', flexDirection: 'column' }}\n {...props}\n >\n {children}\n </AccordionItem>\n );\n});\n\nconst StyledRadio = styled('div', RADIO_BASE_STYLES, {\n width: 18,\n height: 18,\n mr: '$2',\n '[data-state=open] > &': {\n backgroundColor: '$radioIndicator',\n },\n});\n\nconst StyledIndicator = styled('div', INDICATOR_BASE_STYLES);\n\nconst StyledRadioAccordionTrigger = styled(StyledAccordionTrigger, {\n '@hover': {\n '&:hover': {\n [`& ${StyledRadio}`]: {\n boxShadow: 'inset 0 0 0 1px $colors$radioHoverBorder',\n },\n },\n },\n});\n\nexport interface RadioAccordionTriggerProps extends AccordionTriggerProps {}\nexport const RadioAccordionTrigger = React.forwardRef<\n React.ElementRef<typeof StyledRadioAccordionTrigger>,\n RadioAccordionTriggerProps\n>(({ children, ...props }, ref) => {\n return (\n <StyledAccordionHeader>\n <StyledRadioAccordionTrigger ref={ref} {...props}>\n <StyledRadio>\n <StyledIndicator />\n </StyledRadio>\n {children}\n </StyledRadioAccordionTrigger>\n </StyledAccordionHeader>\n );\n});\n\nexport const RadioAccordionContent = AccordionContent;\n"],"
|
|
1
|
+
{"version":3,"file":"RadioAccordion.cjs","names":[],"sources":["../../../components/RadioAccordion/RadioAccordion.tsx"],"sourcesContent":["import type { AccordionSingleProps } from '@radix-ui/react-accordion';\nimport React, { ComponentProps } from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport {\n AccordionContent,\n AccordionItem,\n AccordionRoot,\n AccordionTriggerProps,\n StyledAccordionHeader,\n StyledAccordionTrigger,\n} from '../Accordion';\nimport { INDICATOR_BASE_STYLES, RADIO_BASE_STYLES } from '../Radio';\n\nexport interface RadioAccordionRootProps\n extends Omit<AccordionSingleProps, 'type' | 'collapsible'>,\n Omit<VariantProps<typeof AccordionRoot>, 'type' | 'collapsible'> {\n css?: CSS; // could not skipped\n}\n\nexport const RadioAccordionRoot: (props: RadioAccordionRootProps) => JSX.Element = (props) => (\n <AccordionRoot {...props} type=\"single\" collapsible={false} />\n);\n\nexport interface RadioAccordionItemProps\n extends ComponentProps<typeof AccordionItem>,\n VariantProps<typeof AccordionItem> {}\nexport const RadioAccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionItem>,\n RadioAccordionItemProps\n>(({ value, children, ...props }, forwardedRef) => {\n return (\n <AccordionItem\n value={value}\n ref={forwardedRef}\n css={{ display: 'inherit', flexDirection: 'column' }}\n {...props}\n >\n {children}\n </AccordionItem>\n );\n});\n\nconst StyledRadio = styled('div', RADIO_BASE_STYLES, {\n width: 18,\n height: 18,\n mr: '$2',\n '[data-state=open] > &': {\n backgroundColor: '$radioIndicator',\n },\n});\n\nconst StyledIndicator = styled('div', INDICATOR_BASE_STYLES);\n\nconst StyledRadioAccordionTrigger = styled(StyledAccordionTrigger, {\n '@hover': {\n '&:hover': {\n [`& ${StyledRadio}`]: {\n boxShadow: 'inset 0 0 0 1px $colors$radioHoverBorder',\n },\n },\n },\n});\n\nexport interface RadioAccordionTriggerProps extends AccordionTriggerProps {}\nexport const RadioAccordionTrigger = React.forwardRef<\n React.ElementRef<typeof StyledRadioAccordionTrigger>,\n RadioAccordionTriggerProps\n>(({ children, ...props }, ref) => {\n return (\n <StyledAccordionHeader>\n <StyledRadioAccordionTrigger ref={ref} {...props}>\n <StyledRadio>\n <StyledIndicator />\n </StyledRadio>\n {children}\n </StyledRadioAccordionTrigger>\n </StyledAccordionHeader>\n );\n});\n\nexport const RadioAccordionContent = AccordionContent;\n"],"mappings":";;;;;;;;AAoBA,IAAa,sBAAuE,UAClF,iBAAA,GAAA,kBAAA,KAAC,kBAAA,eAAD;CAAe,GAAI;CAAO,MAAK;CAAS,aAAa;CAAS,CAAA;AAMhE,IAAa,qBAAqB,MAAA,QAAM,YAGrC,EAAE,OAAO,UAAU,GAAG,SAAS,iBAAiB;AACjD,QACE,iBAAA,GAAA,kBAAA,KAAC,kBAAA,eAAD;EACS;EACP,KAAK;EACL,KAAK;GAAE,SAAS;GAAW,eAAe;GAAU;EACpD,GAAI;EAEH;EACa,CAAA;EAElB;AAEF,IAAM,cAAc,wBAAA,OAAO,OAAO,cAAA,mBAAmB;CACnD,OAAO;CACP,QAAQ;CACR,IAAI;CACJ,yBAAyB,EACvB,iBAAiB,mBAClB;CACF,CAAC;AAEF,IAAM,kBAAkB,wBAAA,OAAO,OAAO,cAAA,sBAAsB;AAE5D,IAAM,8BAA8B,wBAAA,OAAO,kBAAA,wBAAwB,EACjE,UAAU,EACR,WAAW,GACR,KAAK,gBAAgB,EACpB,WAAW,4CACZ,EACF,EACF,EACF,CAAC;AAGF,IAAa,wBAAwB,MAAA,QAAM,YAGxC,EAAE,UAAU,GAAG,SAAS,QAAQ;AACjC,QACE,iBAAA,GAAA,kBAAA,KAAC,kBAAA,uBAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,MAAC,6BAAD;EAAkC;EAAK,GAAI;YAA3C,CACE,iBAAA,GAAA,kBAAA,KAAC,aAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,KAAC,iBAAD,EAAmB,CAAA,EACP,CAAA,EACb,SAC2B;KACR,CAAA;EAE1B;AAEF,IAAa,wBAAwB,kBAAA"}
|
|
@@ -1,50 +1,43 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React from "react";
|
|
3
1
|
import { styled } from "../../stitches.config.js";
|
|
4
2
|
import { AccordionContent, AccordionItem, AccordionRoot, StyledAccordionHeader, StyledAccordionTrigger } from "../Accordion/Accordion.js";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
css: { display: "inherit", flexDirection: "column" },
|
|
14
|
-
...props,
|
|
15
|
-
children
|
|
16
|
-
}
|
|
17
|
-
);
|
|
3
|
+
import { INDICATOR_BASE_STYLES, RADIO_BASE_STYLES } from "../Radio/Radio.js";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region components/RadioAccordion/RadioAccordion.tsx
|
|
7
|
+
var RadioAccordionRoot = (props) => /* @__PURE__ */ jsx(AccordionRoot, {
|
|
8
|
+
...props,
|
|
9
|
+
type: "single",
|
|
10
|
+
collapsible: false
|
|
18
11
|
});
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
var RadioAccordionItem = React.forwardRef(({ value, children, ...props }, forwardedRef) => {
|
|
13
|
+
return /* @__PURE__ */ jsx(AccordionItem, {
|
|
14
|
+
value,
|
|
15
|
+
ref: forwardedRef,
|
|
16
|
+
css: {
|
|
17
|
+
display: "inherit",
|
|
18
|
+
flexDirection: "column"
|
|
19
|
+
},
|
|
20
|
+
...props,
|
|
21
|
+
children
|
|
22
|
+
});
|
|
26
23
|
});
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
boxShadow: "inset 0 0 0 1px $colors$radioHoverBorder"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
24
|
+
var StyledRadio = styled("div", RADIO_BASE_STYLES, {
|
|
25
|
+
width: 18,
|
|
26
|
+
height: 18,
|
|
27
|
+
mr: "$2",
|
|
28
|
+
"[data-state=open] > &": { backgroundColor: "$radioIndicator" }
|
|
36
29
|
});
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
30
|
+
var StyledIndicator = styled("div", INDICATOR_BASE_STYLES);
|
|
31
|
+
var StyledRadioAccordionTrigger = styled(StyledAccordionTrigger, { "@hover": { "&:hover": { [`& ${StyledRadio}`]: { boxShadow: "inset 0 0 0 1px $colors$radioHoverBorder" } } } });
|
|
32
|
+
var RadioAccordionTrigger = React.forwardRef(({ children, ...props }, ref) => {
|
|
33
|
+
return /* @__PURE__ */ jsx(StyledAccordionHeader, { children: /* @__PURE__ */ jsxs(StyledRadioAccordionTrigger, {
|
|
34
|
+
ref,
|
|
35
|
+
...props,
|
|
36
|
+
children: [/* @__PURE__ */ jsx(StyledRadio, { children: /* @__PURE__ */ jsx(StyledIndicator, {}) }), children]
|
|
37
|
+
}) });
|
|
42
38
|
});
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
RadioAccordionTrigger
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=RadioAccordion.js.map
|
|
39
|
+
var RadioAccordionContent = AccordionContent;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { RadioAccordionContent, RadioAccordionItem, RadioAccordionRoot, RadioAccordionTrigger };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=RadioAccordion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioAccordion.js","sources":["../../../components/RadioAccordion/RadioAccordion.tsx"],"sourcesContent":["import type { AccordionSingleProps } from '@radix-ui/react-accordion';\nimport React, { ComponentProps } from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport {\n AccordionContent,\n AccordionItem,\n AccordionRoot,\n AccordionTriggerProps,\n StyledAccordionHeader,\n StyledAccordionTrigger,\n} from '../Accordion';\nimport { INDICATOR_BASE_STYLES, RADIO_BASE_STYLES } from '../Radio';\n\nexport interface RadioAccordionRootProps\n extends Omit<AccordionSingleProps, 'type' | 'collapsible'>,\n Omit<VariantProps<typeof AccordionRoot>, 'type' | 'collapsible'> {\n css?: CSS; // could not skipped\n}\n\nexport const RadioAccordionRoot: (props: RadioAccordionRootProps) => JSX.Element = (props) => (\n <AccordionRoot {...props} type=\"single\" collapsible={false} />\n);\n\nexport interface RadioAccordionItemProps\n extends ComponentProps<typeof AccordionItem>,\n VariantProps<typeof AccordionItem> {}\nexport const RadioAccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionItem>,\n RadioAccordionItemProps\n>(({ value, children, ...props }, forwardedRef) => {\n return (\n <AccordionItem\n value={value}\n ref={forwardedRef}\n css={{ display: 'inherit', flexDirection: 'column' }}\n {...props}\n >\n {children}\n </AccordionItem>\n );\n});\n\nconst StyledRadio = styled('div', RADIO_BASE_STYLES, {\n width: 18,\n height: 18,\n mr: '$2',\n '[data-state=open] > &': {\n backgroundColor: '$radioIndicator',\n },\n});\n\nconst StyledIndicator = styled('div', INDICATOR_BASE_STYLES);\n\nconst StyledRadioAccordionTrigger = styled(StyledAccordionTrigger, {\n '@hover': {\n '&:hover': {\n [`& ${StyledRadio}`]: {\n boxShadow: 'inset 0 0 0 1px $colors$radioHoverBorder',\n },\n },\n },\n});\n\nexport interface RadioAccordionTriggerProps extends AccordionTriggerProps {}\nexport const RadioAccordionTrigger = React.forwardRef<\n React.ElementRef<typeof StyledRadioAccordionTrigger>,\n RadioAccordionTriggerProps\n>(({ children, ...props }, ref) => {\n return (\n <StyledAccordionHeader>\n <StyledRadioAccordionTrigger ref={ref} {...props}>\n <StyledRadio>\n <StyledIndicator />\n </StyledRadio>\n {children}\n </StyledRadioAccordionTrigger>\n </StyledAccordionHeader>\n );\n});\n\nexport const RadioAccordionContent = AccordionContent;\n"],"
|
|
1
|
+
{"version":3,"file":"RadioAccordion.js","names":[],"sources":["../../../components/RadioAccordion/RadioAccordion.tsx"],"sourcesContent":["import type { AccordionSingleProps } from '@radix-ui/react-accordion';\nimport React, { ComponentProps } from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport {\n AccordionContent,\n AccordionItem,\n AccordionRoot,\n AccordionTriggerProps,\n StyledAccordionHeader,\n StyledAccordionTrigger,\n} from '../Accordion';\nimport { INDICATOR_BASE_STYLES, RADIO_BASE_STYLES } from '../Radio';\n\nexport interface RadioAccordionRootProps\n extends Omit<AccordionSingleProps, 'type' | 'collapsible'>,\n Omit<VariantProps<typeof AccordionRoot>, 'type' | 'collapsible'> {\n css?: CSS; // could not skipped\n}\n\nexport const RadioAccordionRoot: (props: RadioAccordionRootProps) => JSX.Element = (props) => (\n <AccordionRoot {...props} type=\"single\" collapsible={false} />\n);\n\nexport interface RadioAccordionItemProps\n extends ComponentProps<typeof AccordionItem>,\n VariantProps<typeof AccordionItem> {}\nexport const RadioAccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionItem>,\n RadioAccordionItemProps\n>(({ value, children, ...props }, forwardedRef) => {\n return (\n <AccordionItem\n value={value}\n ref={forwardedRef}\n css={{ display: 'inherit', flexDirection: 'column' }}\n {...props}\n >\n {children}\n </AccordionItem>\n );\n});\n\nconst StyledRadio = styled('div', RADIO_BASE_STYLES, {\n width: 18,\n height: 18,\n mr: '$2',\n '[data-state=open] > &': {\n backgroundColor: '$radioIndicator',\n },\n});\n\nconst StyledIndicator = styled('div', INDICATOR_BASE_STYLES);\n\nconst StyledRadioAccordionTrigger = styled(StyledAccordionTrigger, {\n '@hover': {\n '&:hover': {\n [`& ${StyledRadio}`]: {\n boxShadow: 'inset 0 0 0 1px $colors$radioHoverBorder',\n },\n },\n },\n});\n\nexport interface RadioAccordionTriggerProps extends AccordionTriggerProps {}\nexport const RadioAccordionTrigger = React.forwardRef<\n React.ElementRef<typeof StyledRadioAccordionTrigger>,\n RadioAccordionTriggerProps\n>(({ children, ...props }, ref) => {\n return (\n <StyledAccordionHeader>\n <StyledRadioAccordionTrigger ref={ref} {...props}>\n <StyledRadio>\n <StyledIndicator />\n </StyledRadio>\n {children}\n </StyledRadioAccordionTrigger>\n </StyledAccordionHeader>\n );\n});\n\nexport const RadioAccordionContent = AccordionContent;\n"],"mappings":";;;;;;AAoBA,IAAa,sBAAuE,UAClF,oBAAC,eAAD;CAAe,GAAI;CAAO,MAAK;CAAS,aAAa;CAAS,CAAA;AAMhE,IAAa,qBAAqB,MAAM,YAGrC,EAAE,OAAO,UAAU,GAAG,SAAS,iBAAiB;AACjD,QACE,oBAAC,eAAD;EACS;EACP,KAAK;EACL,KAAK;GAAE,SAAS;GAAW,eAAe;GAAU;EACpD,GAAI;EAEH;EACa,CAAA;EAElB;AAEF,IAAM,cAAc,OAAO,OAAO,mBAAmB;CACnD,OAAO;CACP,QAAQ;CACR,IAAI;CACJ,yBAAyB,EACvB,iBAAiB,mBAClB;CACF,CAAC;AAEF,IAAM,kBAAkB,OAAO,OAAO,sBAAsB;AAE5D,IAAM,8BAA8B,OAAO,wBAAwB,EACjE,UAAU,EACR,WAAW,GACR,KAAK,gBAAgB,EACpB,WAAW,4CACZ,EACF,EACF,EACF,CAAC;AAGF,IAAa,wBAAwB,MAAM,YAGxC,EAAE,UAAU,GAAG,SAAS,QAAQ;AACjC,QACE,oBAAC,uBAAD,EAAA,UACE,qBAAC,6BAAD;EAAkC;EAAK,GAAI;YAA3C,CACE,oBAAC,aAAD,EAAA,UACE,oBAAC,iBAAD,EAAmB,CAAA,EACP,CAAA,EACb,SAC2B;KACR,CAAA;EAE1B;AAEF,IAAa,wBAAwB"}
|